Skip to content

Commit

Permalink
drivers: serial: ambiq uart update
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
RichardSWheatley authored and nashif committed Sep 9, 2024
1 parent 5032f09 commit 968f674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/uart_pl011_ambiq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 968f674

Please sign in to comment.