public.h 729 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __PUBLIC_H
  2. #define __PUBLIC_H
  3. #include <ioCC2530.h>
  4. #include "OnBoard.h"
  5. #include "hal_uart.h"
  6. #include "hal_adc.h"
  7. #include <stdio.h>
  8. #include <string.h>
  9. #include <stdlib.h>
  10. #include <math.h>
  11. typedef void (*pvFunction)(void);
  12. #define uint unsigned int
  13. #define uchar unsigned char
  14. #define uint8_t unsigned char //¶¨Òåuint8_t
  15. #define int16_t int //¶¨Òåint16_t
  16. #define uint32_t unsigned long //¶¨Òåuint32_t
  17. void system_delay_us(unsigned int n);
  18. void system_delay_ms(unsigned int n);
  19. void InitTimer4(void);
  20. void Init_P1Prot_Exti(void);
  21. void InitTimer3(void);
  22. void SYSTEM_TICK_Init(pvFunction user_time_cb,uint16 time);
  23. uint32_t get_sys_timer_run_sec(void);
  24. uint32_t get_sys_timer_run_ms(void);
  25. #endif