xiaoxiang781216 commented on code in PR #18896: URL: https://github.com/apache/nuttx/pull/18896#discussion_r3258635583
########## boards/risc-v/esp32p4/esp32p4-function-ev-board/src/esp32p4_buttons.c: ########## @@ -46,12 +46,135 @@ /* Arch */ #include "espressif/esp_gpio.h" +#ifdef CONFIG_ESPRESSIF_TOUCH +# include "espressif/esp_touch.h" +#endif /* Board */ #include "esp32p4-function-ev-board.h" #include <arch/board/board.h> +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#ifndef ARRAY_SIZE +# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) Review Comment: nitems -- 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]
