diff --git a/Libraries/Boards/MAX32572/EvKit_V1/Source/board.c b/Libraries/Boards/MAX32572/EvKit_V1/Source/board.c index ff0b7e2295c..8429f529759 100644 --- a/Libraries/Boards/MAX32572/EvKit_V1/Source/board.c +++ b/Libraries/Boards/MAX32572/EvKit_V1/Source/board.c @@ -51,18 +51,16 @@ mxc_uart_regs_t *ConsoleUart = MXC_UART_GET_UART(CONSOLE_UART); extern uint32_t SystemCoreClock; -// clang-format off const mxc_gpio_cfg_t pb_pin[] = { { MXC_GPIO0, MXC_GPIO_PIN_31, MXC_GPIO_FUNC_IN, - MXC_GPIO_PAD_PULL_UP, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 } - ,{ MXC_GPIO1, MXC_GPIO_PIN_29, MXC_GPIO_FUNC_IN, - MXC_GPIO_PAD_PULL_UP, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 } }; + MXC_GPIO_PAD_PULL_UP, MXC_GPIO_VSSEL_VDDIO }, + { MXC_GPIO1, MXC_GPIO_PIN_29, MXC_GPIO_FUNC_IN, + MXC_GPIO_PAD_PULL_UP, MXC_GPIO_VSSEL_VDDIO } }; const unsigned int num_pbs = (sizeof(pb_pin) / sizeof(mxc_gpio_cfg_t)); const mxc_gpio_cfg_t led_pin[] = { { MXC_GPIO1, MXC_GPIO_PIN_30, MXC_GPIO_FUNC_OUT, - MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 } - ,{ MXC_GPIO1, MXC_GPIO_PIN_31, MXC_GPIO_FUNC_OUT, - MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO, MXC_GPIO_DRVSTR_0 } - }; + MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO }, + { MXC_GPIO1, MXC_GPIO_PIN_31, MXC_GPIO_FUNC_OUT, + MXC_GPIO_PAD_NONE, MXC_GPIO_VSSEL_VDDIO } }; const unsigned int num_leds = (sizeof(led_pin) / sizeof(mxc_gpio_cfg_t)); // clang-format on @@ -86,8 +84,8 @@ __weak void GPIO0_IRQHandler(void) /******************************************************************************/ /** - * NOTE: This weak definition is included to support Push Button interrupts in - * case the user does not define this interrupt handler in their application. + * NOTE: This weak definition is included to support Push Button/Touchscreen interrupts + * in case the user does not define this interrupt handler in their application. **/ __weak void GPIO1_IRQHandler(void) {