BSP.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef __BSP_H__
  2. #define __BSP_H__
  3. #include "stm32f10x.h"
  4. #include "TIM1_CAP.h"
  5. #include "UART_ARM.h"
  6. #include "TIM6_1MS.h"
  7. #include "GPIO_LED.h"
  8. #include "WDG.h"
  9. #include "GPIO_SYS.h"
  10. #include "GPIO_FM1288.h"
  11. #include "GPIO_KEY.h"
  12. #include "app_def.h"
  13. #define OS_TICKS_PER_SEC (1000)
  14. #define OS_TIMER_5MS (5)
  15. #define OS_TIMER_10MS (10)
  16. #define OS_TIMER_15MS (15)
  17. #define OS_TIMER_20MS (20)
  18. #define OS_TIMER_30MS (30)
  19. #define OS_TIMER_35MS (35)
  20. #define OS_TIMER_50MS (50)
  21. #define OS_TIMER_80MS (80)
  22. #define OS_TIMER_100MS (100)
  23. #define OS_TIMER_200MS (200)
  24. #define OS_TIMER_300MS (300)
  25. #define OS_TIMER_350MS (350)
  26. #define OS_TIMER_500MS (500)
  27. #define OS_TIMER_800MS (800)
  28. #define OS_TIMER_1S (1000)
  29. #define OS_TIMER_2S (2000)
  30. #define OS_TIMER_3S (3000)
  31. #define OS_TIMER_5S (5000)
  32. #define OS_TIMER_10S (10000)
  33. #define OS_TIMER_12S (12000)
  34. #define OS_TIMER_15S (15000)
  35. extern int BSP_init(void);
  36. extern void BSP_Tick(void);
  37. extern unsigned int LocalTime;
  38. extern U16 BufSentTime;
  39. #endif