X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=msp430%2FHal%2FHal.h;fp=msp430%2FHal%2FHal.h;h=a6131903630a603024a0af0b706fb79cf4b197d6;hb=61da112497ec35ae85641a250b06b1b08e3b55c3;hp=0c969c4c19f96b1682535dd5322b1491aef5fe1c;hpb=4e9dda3367ff17c80358426a6b4126704741c0b1;p=pulsecounter.git diff --git a/msp430/Hal/Hal.h b/msp430/Hal/Hal.h index 0c969c4..a613190 100644 --- a/msp430/Hal/Hal.h +++ b/msp430/Hal/Hal.h @@ -46,7 +46,7 @@ typedef void (*Hal_Handler)(uint8_t id); * BUTTON interrupt enabled * **/ -extern void Hal_gpioEnable(Hal_Handler handler); +extern void Hal_gpioEnable(Hal_Handler handler, void (*jhandler)(uint8_t id, uint32_t count)); /** * --------- Hal_connected --------- * @@ -236,23 +236,6 @@ extern void Hal_redLedToggle(void); extern uint16_t Hal_tickStart(uint16_t msecs, void (*handler)(uint16_t clock)); extern void Hal_tickStop(void); -/** - * --------- Hal_gpioCount --------- - * - * Returns the number of interrups encounted on gpio `id` - * - * Inputs: - * id if the gpio (0-2 for gpio 3-5) - * - * Returns: - * Counted interrupts - * - * Side Effects: - * Resets the accumulator (counting restarts from zero). - * - **/ -extern uint32_t Hal_gpioCount(uint8_t id); - #ifdef __cplusplus } #endif