mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
STM32 serial: MAke uart_devs[] const. From Freddie Chopin
This commit is contained in:
@@ -988,7 +988,7 @@ static struct up_dev_s g_uart8priv =
|
|||||||
|
|
||||||
/* This table lets us iterate over the configured USARTs */
|
/* This table lets us iterate over the configured USARTs */
|
||||||
|
|
||||||
static struct up_dev_s *uart_devs[STM32_NUSART] =
|
static struct up_dev_s * const uart_devs[STM32_NUSART] =
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_STM32_USART1
|
#ifdef CONFIG_STM32_USART1
|
||||||
[0] = &g_usart1priv,
|
[0] = &g_usart1priv,
|
||||||
|
|||||||
Reference in New Issue
Block a user