From cdaaa6727a02a7611b664ff85aac8bbad826fea9 Mon Sep 17 00:00:00 2001 From: Jaup <270995079@qq.com> Date: Mon, 29 Aug 2016 09:06:20 +0000 Subject: [PATCH] init --- button.c | 3 --- button.h | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/button.c b/button.c index 9dcf3a5..233699c 100644 --- a/button.c +++ b/button.c @@ -1,11 +1,9 @@ #include "button.h" -#include "string.h" //MultiButton #define HIGH 1 #define LOW 0 - #define TICKS_INTERVAL 5 //ms const uint8_t kDebounceTicks = 3; @@ -14,7 +12,6 @@ const uint16_t kLongTicks = (1000/TICKS_INTERVAL); static struct Button* head_handle = NULL; - /** * @brief Initializes the button struct handle. * @param handle: the button handle strcut. diff --git a/button.h b/button.h index d20629f..0427096 100644 --- a/button.h +++ b/button.h @@ -1,7 +1,8 @@ #ifndef _BUTTON_H_ #define _BUTTON_H_ -#include +#include "stdint.h" +#include "string.h" typedef void (*CallBackFunc)(void);