mirror of https://github.com/ARMmbed/mbed-os.git
STM32: pins: move pin_lines_desc table to const
parent
273ac81680
commit
73955b678e
|
@ -53,7 +53,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0_1
|
// EXTI0_1
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_1_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_1_IRQn}, // pin 0
|
||||||
|
|
|
@ -58,7 +58,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0
|
// EXTI0
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
||||||
|
|
|
@ -85,7 +85,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0
|
// EXTI0
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
||||||
|
|
|
@ -58,7 +58,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0
|
// EXTI0
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
||||||
|
|
|
@ -85,7 +85,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0
|
// EXTI0
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
||||||
|
|
|
@ -85,7 +85,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0
|
// EXTI0
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
||||||
|
|
|
@ -54,7 +54,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0_1
|
// EXTI0_1
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_1_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_1_IRQn}, // pin 0
|
||||||
|
|
|
@ -58,7 +58,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0
|
// EXTI0
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
||||||
|
|
|
@ -58,7 +58,7 @@ typedef struct exti_lines {
|
||||||
} exti_lines_t;
|
} exti_lines_t;
|
||||||
|
|
||||||
// Used to return the index for channels array.
|
// Used to return the index for channels array.
|
||||||
static exti_lines_t pin_lines_desc[16] =
|
static const exti_lines_t pin_lines_desc[16] =
|
||||||
{
|
{
|
||||||
// EXTI0
|
// EXTI0
|
||||||
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
{.gpio_idx = 0, .irq_index = 0, .irq_n = EXTI0_IRQn}, // pin 0
|
||||||
|
|
Loading…
Reference in New Issue