完成转向功能测试;加入手动自动的基础功能;计划执行部分写完,未实际测试
This commit is contained in:
parent
7d46287def
commit
ec2ed2d196
21 changed files with 2020 additions and 1680 deletions
|
|
@ -24,7 +24,7 @@
|
|||
/*
|
||||
* ÔÆÌ¨
|
||||
*/
|
||||
#define ORIENT_UARTX UART1 // PTC3,PTC4
|
||||
#define ORIENT_UARTX UART1 // PTC3,PTC4
|
||||
#define RE_DE_PINX PTC1
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ void orient_init(void);
|
|||
|
||||
void orient_setspeed(uint8_t addr, orient ori, uint8_t spd);
|
||||
|
||||
void orient_setpreset(uint8_t addr, preset_op op, uint8_t npre);
|
||||
void orient_presetop(uint8_t addr, preset_op op, uint8_t npre);
|
||||
|
||||
void orient_setmode(uint8_t addr, orient_mode mod);
|
||||
|
||||
|
|
|
|||
|
|
@ -11,4 +11,5 @@ void plan_handle_init(void);
|
|||
|
||||
void plan_handle(void);
|
||||
|
||||
void tft_to_plan_input(uint8_t objn);
|
||||
void key_func(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ void pm_flash_init(void);
|
|||
void flash_write(uint8_t *saddr, uint16_t nbyte);
|
||||
|
||||
|
||||
void flash_read(uint8_t *daddr, uint8_t nbyte);
|
||||
void flash_read(uint8_t *daddr, uint16_t nbyte);
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ typedef struct calendar_info_
|
|||
uint16_t yday;
|
||||
} calendar_info;
|
||||
|
||||
enum { START_YEAR = 2000, SEC_IN_DAY = 24 * 60 * 60};
|
||||
|
||||
uint8_t is_leapyear(uint16_t year);
|
||||
|
||||
|
|
|
|||
|
|
@ -34,3 +34,7 @@ enum { PLAN_DATA_NUM = 19 };
|
|||
extern plan_input plan_in[PLAN_DATA_NUM];
|
||||
|
||||
extern kv_pair kvp_obj_set[][PLAN_DATA_NUM];
|
||||
|
||||
|
||||
|
||||
void tft_to_plan_input(uint8_t objn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue