From de95f58dee049ab43040d956dc48093c0343b635 Mon Sep 17 00:00:00 2001 From: "ANALOG\\OKilic" Date: Wed, 9 Oct 2024 15:45:25 +0300 Subject: [PATCH] fix(Boards): Add GPIO2_IRQ_Handler for MAX78000 FTHR_RevA --- Libraries/Boards/MAX78000/FTHR_RevA/Source/board.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Libraries/Boards/MAX78000/FTHR_RevA/Source/board.c b/Libraries/Boards/MAX78000/FTHR_RevA/Source/board.c index 034b5bf1c7b..39ebd0e3b7d 100644 --- a/Libraries/Boards/MAX78000/FTHR_RevA/Source/board.c +++ b/Libraries/Boards/MAX78000/FTHR_RevA/Source/board.c @@ -80,6 +80,16 @@ __weak void GPIO1_IRQHandler(void) { MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO1)); } +/******************************************************************************/ +/** + * NOTE: This weak definition is included to support to catch interrupts from + * GPIO2 pins in case user does not define this interrupt handler in their + * application. + **/ +__weak void GPIO2_IRQHandler(void) +{ + MXC_GPIO_Handler(MXC_GPIO_GET_IDX(MXC_GPIO2)); +} /******************************************************************************/ int Board_Init(void)