You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
582 B
37 lines
582 B
#ifndef _BSP_LED_H_
|
|
#define _BSP_LED_H_
|
|
|
|
#include "bsp_config.h"
|
|
#include "msp_uart1.h"
|
|
#include "TTSS_task.h"
|
|
|
|
typedef struct
|
|
{
|
|
u8 pool;
|
|
u8 now;
|
|
u8 val;
|
|
}TS_key_;
|
|
extern TS_key_ ts_key;
|
|
|
|
typedef struct
|
|
{
|
|
TS_task task;
|
|
u8 ch;
|
|
u8 ok;
|
|
u8 loc_now;////当前的位置
|
|
u8 loc_want;////想要达到的位置;
|
|
|
|
u8 loc_max;////最大位置;
|
|
u8 loc_min;////最小位置;
|
|
|
|
u8 tmp;
|
|
|
|
}TS_task_keyled_;
|
|
extern TS_task_keyled_ ts_task_keyled;
|
|
|
|
extern void L2_task_keyled_register(void);
|
|
extern void L2_task_keyled_handle(TS_task_keyled_ *s);
|
|
|
|
|
|
#endif////#ifndef _BSP_LED_H_
|
|
|
|
|