apache / apache/nuttx

STM3240-G Build is Broken

Open
#5,832 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

```
CC: board/stm32_buttons.c
In file included from board/stm32_buttons.c:34:0:
board/stm3240g-eval.h:106:26: error: 'GPIO_INPUT' undeclared here (not in a function); did you mean 'MAX_INPUT'?
#define GPIO_BTN_WAKEUP (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTA|GPIO_PIN0)
^
board/stm32_buttons.c:56:3: note: in expansion of macro 'GPIO_BTN_WAKEUP'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~~~
board/stm3240g-eval.h:106:37: error: 'GPIO_FLOAT' undeclared here (not in a function); did you mean 'GPIO_INPUT'?
#define GPIO_BTN_WAKEUP (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTA|GPIO_PIN0)
^
board/stm32_buttons.c:56:3: note: in expansion of macro 'GPIO_BTN_WAKEUP'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~~~
board/stm3240g-eval.h:106:48: error: 'GPIO_EXTI' undeclared here (not in a function); did you mean 'GPIO_LED1'?
#define GPIO_BTN_WAKEUP (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTA|GPIO_PIN0)
^
board/stm32_buttons.c:56:3: note: in expansion of macro 'GPIO_BTN_WAKEUP'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~~~
board/stm3240g-eval.h:106:58: error: 'GPIO_PORTA' undeclared here (not in a function); did you mean 'GPIO_EXTI'?
#define GPIO_BTN_WAKEUP (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTA|GPIO_PIN0)
^
board/stm32_buttons.c:56:3: note: in expansion of macro 'GPIO_BTN_WAKEUP'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~~~
board/stm3240g-eval.h:106:69: error: 'GPIO_PIN0' undeclared here (not in a function); did you mean 'GPIO_PORTA'?
#define GPIO_BTN_WAKEUP (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTA|GPIO_PIN0)
^
board/stm32_buttons.c:56:3: note: in expansion of macro 'GPIO_BTN_WAKEUP'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~~~
board/stm3240g-eval.h:107:58: error: 'GPIO_PORTC' undeclared here (not in a function); did you mean 'GPIO_PORTA'?
#define GPIO_BTN_TAMPER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTC|GPIO_PIN13)
^
board/stm32_buttons.c:56:20: note: in expansion of macro 'GPIO_BTN_TAMPER'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~~~
board/stm3240g-eval.h:107:69: error: 'GPIO_PIN13' undeclared here (not in a function); did you mean 'GPIO_PIN0'?
#define GPIO_BTN_TAMPER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTC|GPIO_PIN13)
^
board/stm32_buttons.c:56:20: note: in expansion of macro 'GPIO_BTN_TAMPER'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~~~
board/stm3240g-eval.h:108:58: error: 'GPIO_PORTG' undeclared here (not in a function); did you mean 'GPIO_PORTC'?
#define GPIO_BTN_USER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTG|GPIO_PIN15)
^
board/stm32_buttons.c:56:37: note: in expansion of macro 'GPIO_BTN_USER'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~
board/stm3240g-eval.h:108:69: error: 'GPIO_PIN15' undeclared here (not in a function); did you mean 'GPIO_PIN13'?
#define GPIO_BTN_USER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTG|GPIO_PIN15)
^
board/stm32_buttons.c:56:37: note: in expansion of macro 'GPIO_BTN_USER'
GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER
^~~~~~~~~~~~~
board/stm32_buttons.c: In function 'board_button_initialize':
board/stm32_buttons.c:84:7: warning: implicit declaration of function 'stm32_configgpio'; did you mean 'stm32_bringup'? [-Wimplicit-function-declaration]
stm32_configgpio(g_buttons[i]);
^~~~~~~~~~~~~~~~
stm32_bringup
board/stm32_buttons.c: In function 'board_buttons':
board/stm32_buttons.c:107:23: warning: implicit declaration of function 'stm32_gpioread'; did you mean 'stm32_bringup'? [-Wimplicit-function-declaration]
bool released = stm32_gpioread(g_buttons[i]);
^~~~~~~~~~~~~~
stm32_bringup

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.