drivers: serial: ambiq uart update
The number of modules is different for each soc. There is a macro in the HAL that should have been used. Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
This commit is contained in:
parent
5032f099c6
commit
968f674c66
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ typedef struct {
|
|||
uint32_t regIFLS;
|
||||
uint32_t regIER;
|
||||
} uart_register_state_t;
|
||||
static uart_register_state_t sRegState[2];
|
||||
static uart_register_state_t sRegState[AM_REG_UART_NUM_MODULES];
|
||||
|
||||
static int uart_ambiq_pm_action(const struct device *dev, enum pm_device_action action)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue