patacongo opened a new issue #5832:
URL: https://github.com/apache/incubator-nuttx/issues/5832


   ```
   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
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to