From cd22eaa609f34951c4c393c08a2b5a87f4818f34 Mon Sep 17 00:00:00 2001 From: Scheiffler Date: Thu, 13 Jul 2023 09:44:18 -0500 Subject: [PATCH] Adding weak definition of GPIO0 handler to MAX32666's MAXREFDES178 BSP --- Libraries/Boards/MAX32665/MAXREFDES178/Source/board.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Libraries/Boards/MAX32665/MAXREFDES178/Source/board.c b/Libraries/Boards/MAX32665/MAXREFDES178/Source/board.c index 3c6b0fbe166..2ced62d098d 100644 --- a/Libraries/Boards/MAX32665/MAXREFDES178/Source/board.c +++ b/Libraries/Boards/MAX32665/MAXREFDES178/Source/board.c @@ -67,6 +67,17 @@ __weak void GPIO1_IRQHandler(void) MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO1)); } +/******************************************************************************/ +/** + * NOTE: This is a legacy definition from the previous implementation of pb.c. This + * definition will prevent the MAXREFDES178 from hanging until a permanent fix + * is added to the MaximIntegratedAI/refdes github repository. + **/ +__weak void GPIO0_IRQHandler(void) +{ + MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO0)); +} + /******************************************************************************/ static int ext_flash_board_init(void) {