X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Hal%2FHal.h;h=0d57348ab855a824c58594da29d7cd02dcb5eb84;hb=693bc78d94d8321baf1744ab7f4c2f695a1b7377;hp=cee0483a3128f243d89bcac4a9a65f5337cc26ad;hpb=ca5bd37eed3f758a3ecbf24f482c403b69a0141f;p=pulsecounter.git diff --git a/Hal/Hal.h b/Hal/Hal.h index cee0483..0d57348 100644 --- a/Hal/Hal.h +++ b/Hal/Hal.h @@ -26,9 +26,7 @@ extern "C" { #endif -extern int32_t buttonCnt; - -typedef void (*Hal_Handler)(void); +typedef void (*Hal_Handler)(uint8_t id); /** * --------- Hal_buttonEnable --------- @@ -49,7 +47,7 @@ typedef void (*Hal_Handler)(void); * BUTTON interrupt enabled * **/ -extern void Hal_buttonEnable(Hal_Handler handler); +extern void Hal_gpioEnable(Hal_Handler handler); /** * --------- Hal_connected --------- * @@ -294,6 +292,7 @@ extern void Hal_redLedToggle(void); * **/ extern void Hal_tickStart(uint16_t msecs, Hal_Handler Handler); +extern void Hal_tickStop(void); #ifdef __cplusplus }