Suppressing 'warning: missing initializer for member ... [-Wmissing-field-initializers]'
This commit is contained in:
parent
a7503e1d30
commit
908a57a28e
|
@ -51,7 +51,8 @@ void boardInit(void) {
|
|||
}
|
||||
|
||||
// Note. See the enum of pin names in board.h
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
|
||||
|
@ -113,6 +114,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpiod, NULL, NULL, 1, 0, ADCx}, /* PD2 */
|
||||
{&gpiod, NULL, NULL, 2, 0, ADCx}, /* PD2 */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
PA0, PA1, PA2, PA3, PA6, PA7, PA8, PA9, PA10, PB0, PB1, PB6, PB7, PB8, PB9
|
||||
|
|
|
@ -51,7 +51,8 @@ void boardInit(void) {
|
|||
}
|
||||
|
||||
// Note. See the enum of pin names in board.h
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
|
||||
|
@ -93,9 +94,8 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpioc, NULL, NULL, 14, 0, ADCx}, /* PC14 */
|
||||
{&gpioc, NULL, NULL, 15, 0, ADCx}, /* PC15 */
|
||||
|
||||
|
||||
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
PB0, PA7, PA6, PA3, PA2, PA1, PA0, PB7, PB6, PA10, PA9, PA8
|
||||
|
|
|
@ -51,7 +51,8 @@ void boardInit(void) {
|
|||
}
|
||||
|
||||
// Note. See the enum of pin names in board.h
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
|
||||
|
@ -92,10 +93,8 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpioc, NULL, NULL, 13, 0, ADCx}, /* PC13 */
|
||||
{&gpioc, NULL, NULL, 14, 0, ADCx}, /* PC14 */
|
||||
{&gpioc, NULL, NULL, 15, 0, ADCx}, /* PC15 */
|
||||
|
||||
|
||||
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
PB0, PA7, PA6, PA3, PA2, PA1, PA0, PB7, PB6, PA10, PA9, PA8
|
||||
|
|
|
@ -69,7 +69,8 @@ void boardInit(void) {
|
|||
// - Timer channel (1 to 4, for PWM), or 0 if none
|
||||
// - ADC device, or NULL if none
|
||||
// - ADC channel, or ADCx if none
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
/*
|
||||
gpio_dev *gpio_device; GPIO device
|
||||
|
@ -137,6 +138,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpiod, NULL, NULL, 1, 0, ADCx} , /* PD1 OSC_OUT */
|
||||
{&gpiod, NULL, NULL, 2, 0, ADCx} , /* PD2 TIM3_ETR/UART5_RX SDIO_CMD */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/* Basically everything that is defined as having a timer us PWM */
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
|
|
|
@ -51,7 +51,8 @@ void boardInit(void) {
|
|||
}
|
||||
|
||||
// Note. See the enum of pin names in board.h
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
|
||||
|
@ -111,6 +112,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
|
||||
{&gpiod, NULL, NULL, 2, 0, ADCx}, /* PD2 */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
PB0, PA7, PA6, PA3, PA2, PA1, PA0, PB7, PB6, PA10, PA9, PA8, PC6, PC7, PC8, PC9
|
||||
|
|
|
@ -51,7 +51,8 @@ void boardInit(void) {
|
|||
}
|
||||
|
||||
// Note. See the enum of pin names in board.h
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
|
||||
|
@ -81,6 +82,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpiob, &timer4, NULL, 6, 1, ADCx}, /* PB6 */
|
||||
{&gpiob, &timer4, NULL, 7, 2, ADCx}, /* PB7 */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
PB0, PA7, PA6, PA3, PA2, PA1, PA0, PB7, PB6, PA10, PA9, PA8
|
||||
|
|
|
@ -68,7 +68,8 @@ void boardInit(void) {
|
|||
// - Timer channel (1 to 4, for PWM), or 0 if none
|
||||
// - ADC device, or NULL if none
|
||||
// - ADC channel, or ADCx if none
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
/*
|
||||
gpio_dev *gpio_device; GPIO device
|
||||
|
@ -166,6 +167,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpioe, NULL, NULL, 15, 0, ADCx} , /* PE15 FSMC_D12 */
|
||||
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/* Basically everything that is defined as having a timer us PWM */
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
|
|
|
@ -69,6 +69,8 @@ void boardInit(void) {
|
|||
// - ADC device, or NULL if none
|
||||
// - ADC channel, or ADCx if none
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
/*
|
||||
gpio_dev *gpio_device; GPIO device
|
||||
|
@ -201,6 +203,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpiog, NULL, NULL, 14, 0, ADCx} , /* PG14 */
|
||||
{&gpiog, NULL, NULL, 15, 0, ADCx} /* PG15 */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/* Basically everything that is defined as having a timer us PWM */
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
|
|
|
@ -51,7 +51,8 @@ void boardInit(void) {
|
|||
}
|
||||
|
||||
// Note. See the enum of pin names in board.h
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
|
||||
|
@ -82,6 +83,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpiob, &timer4, NULL, 7, 2, ADCx}, /* PB7 */
|
||||
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
PB0, PA7, PA6, PA3, PA2, PA1, PA0, PB7, PB6, PA10, PA9, PA8
|
||||
|
|
|
@ -68,6 +68,8 @@ void boardInit(void) {
|
|||
// - Timer channel (1 to 4, for PWM), or 0 if none
|
||||
// - ADC device, or NULL if none
|
||||
// - ADC channel, or ADCx if none
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
/* Top header */
|
||||
|
@ -126,6 +128,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
PMAP_ROW(&gpiob, 3, NULL, 0, NULL, ADCx), /* D42/PB3 */
|
||||
PMAP_ROW(&gpiob, 4, NULL, 0, NULL, ADCx), /* D43/PB4 */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
// Array of pins you can use for pwmWrite(). Keep it in Flash because
|
||||
// it doesn't change, and so we don't waste RAM.
|
||||
|
|
|
@ -50,6 +50,8 @@ void boardInit(void) {
|
|||
#endif
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
/* Top header */
|
||||
|
@ -92,6 +94,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{&gpiob, &timer4, NULL, 8, 3, ADCx}, /* D32/PB8 */
|
||||
{&gpiob, &timer3, &adc1, 1, 4, 9}, /* D33/PB1 */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
3, 4, 5, 8, 9, 10, 11, 15, 16, 25, 26, 27
|
||||
|
|
|
@ -69,6 +69,8 @@ void boardInit(void) {
|
|||
// - ADC device, or NULL if none
|
||||
// - ADC channel, or ADCx if none
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
/*
|
||||
gpio_dev *gpio_device; GPIO device
|
||||
|
@ -143,6 +145,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
{ &gpiod, NULL, NULL, 1, 0, ADCx }, /* PD1 OSC_OUT */
|
||||
{ &gpiob, NULL, NULL, 2, 0, ADCx }, /* PB2 */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/* Basically everything that is defined as having a timer us PWM */
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
|
|
|
@ -51,6 +51,8 @@ void boardInit(void) {
|
|||
#endif
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
|
||||
|
@ -84,6 +86,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
// FIXME: find out which pin is the button, if any
|
||||
{&gpiob, NULL, NULL, 8, 0, ADCx}, /* D24/PB8??/Button */
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
|
||||
0, 1, 4, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 23
|
||||
|
|
|
@ -93,6 +93,8 @@ rcc_pll_cfg w_board_pll_cfg = {RCC_PLLSRC_HSI_DIV_2, &pll_data};
|
|||
|
||||
// 0 1 3 4 2 5
|
||||
// 0 1 2 4 2 5
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
||||
|
||||
/* Arduino-like header, right connectors */
|
||||
|
@ -149,6 +151,7 @@ extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = {
|
|||
// PMAP_ROW(&gpioa, 14, NULL, 0, NULL, ADCx), /* D42/PA14 do not use*/
|
||||
// PMAP_ROW(&gpioa, 15, &timer2, 1, NULL, ADCx), /* D43/PA15 do not use*/
|
||||
};
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
// Array of pins you can use for pwmWrite(). Keep it in Flash because
|
||||
// it doesn't change, and so we don't waste RAM.
|
||||
|
|
Loading…
Reference in New Issue