From b578a708700a8b083639c6c843f647a3deee8ed4 Mon Sep 17 00:00:00 2001 From: kiu Date: Sat, 21 May 2011 10:25:05 +0200 Subject: [PATCH] removed default interrupt handling implementation --- basic/basic.c | 3 +- core/gpio/gpio.c | 80 ------------------------------------------------ 2 files changed, 1 insertion(+), 82 deletions(-) diff --git a/basic/basic.c b/basic/basic.c index fd015f2..2c4e0e0 100644 --- a/basic/basic.c +++ b/basic/basic.c @@ -109,8 +109,7 @@ void rbInit() { gpioSetPullup (&RB_BUSINT_IO, gpioPullupMode_PullUp); gpioSetInterrupt(RB_BUSINT, gpioInterruptSense_Edge, gpioInterruptEdge_Single, gpioInterruptEvent_ActiveLow); gpioIntEnable(RB_BUSINT); - // 1. remove PIOINT3_IRQHandler from gpio/gpio.c - // 2. add this to catch interrupt: + // add this to catch interrupt: /* void PIOINT3_IRQHandler(void) { if (gpioIntStatus(RB_BUSINT)) { diff --git a/core/gpio/gpio.c b/core/gpio/gpio.c index 5e08a24..63fa640 100644 --- a/core/gpio/gpio.c +++ b/core/gpio/gpio.c @@ -49,86 +49,6 @@ volatile uint32_t chibi_counter = 0; static bool _gpioInitialised = false; -/**************************************************************************/ -/*! - @brief IRQ Handler for GPIO port 0 (currently checks pin 0.1) -*/ -/**************************************************************************/ -void PIOINT0_IRQHandler(void) -{ - uint32_t regVal; - - regVal = gpioIntStatus(0, 1); - if (regVal) - { - gpioIntClear(0, 1); - } - return; -} - -/**************************************************************************/ -/*! - @brief IRQ Handler for GPIO port 1 (currently checks pin 1.1) -*/ -/**************************************************************************/ -void PIOINT1_IRQHandler(void) -{ - uint32_t regVal; - -#ifdef CFG_CHIBI - // Check for interrupt on 1.8 - regVal = gpioIntStatus(1, 8); - if (regVal) - { - chibi_counter++; - chb_ISR_Handler(); - gpioIntClear(1, 8); - } -#else - regVal = gpioIntStatus(1, 1); - if ( regVal ) - { - gpioIntClear(1, 1); - } -#endif - - return; -} - -/**************************************************************************/ -/*! - @brief IRQ Handler for GPIO port 2 (currently checks pin 2.1) -*/ -/**************************************************************************/ -void PIOINT2_IRQHandler(void) -{ - uint32_t regVal; - - regVal = gpioIntStatus(2, 1); - if ( regVal ) - { - gpioIntClear(2, 1); - } - return; -} - -/**************************************************************************/ -/*! - @brief IRQ Handler for GPIO port 3 (currently checks pin 3.1) -*/ -/**************************************************************************/ -void PIOINT3_IRQHandler(void) -{ - uint32_t regVal; - - regVal = gpioIntStatus(3, 1); - if ( regVal ) - { - gpioIntClear(3, 1); - } - return; -} - /**************************************************************************/ /*! @brief Initialises GPIO and enables the GPIO interrupt