123456789101112131415161718192021222324252627282930 |
- #ifndef __PUBLIC_H
- #define __PUBLIC_H
- #include <ioCC2530.h>
- #include "OnBoard.h"
- #include "hal_uart.h"
- #include "hal_adc.h"
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <math.h>
- typedef void (*pvFunction)(void);
- #define uint unsigned int
- #define uchar unsigned char
- #define uint8_t unsigned char //¶¨Òåuint8_t
- #define int16_t int //¶¨Òåint16_t
- #define uint32_t unsigned long //¶¨Òåuint32_t
- void system_delay_us(unsigned int n);
- void system_delay_ms(unsigned int n);
- void InitTimer4(void);
- void Init_P1Prot_Exti(void);
- void InitTimer3(void);
- void SYSTEM_TICK_Init(pvFunction user_time_cb,uint16 time);
- uint32_t get_sys_timer_run_sec(void);
- uint32_t get_sys_timer_run_ms(void);
- #endif
|