123456789101112131415161718192021222324252627282930 |
- #ifndef _U_RC_H_
- #define _U_RC_H_
- #include "u_global.h"
- #define RC_GPIO_PORT (0x14)
- #define RC_CODE_HIGH_PVT (6)
- extern uint8_t g_ir_code[4];
- extern uint8_t g_ir_recv_done_flag;
- enum //_capture_flow
- {
- RC_CAPTURE_IDLE,
- RC_CAPTURE_START_LOW,
- RC_CAPTURE_START_HIGH,
- RC_CAPTURE_STATE_CODE,
- };
- void rc_timer0_cb(void);
- void rc_timer1_cb(void);
- void u_gpio_int_handle(void);
- void rc_init(void);
- void rc_timer0_cb(void);
- void rc_timer1_cb(void);
- uint8_t *rc_decode(void);
- #endif
|