update
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#ifndef _BSP_buzzer_H_
|
||||
#define _BSP_buzzer_H_
|
||||
|
||||
#include "main.h"
|
||||
|
||||
/*ʹÄÜ¿ª¹Ø*/
|
||||
typedef struct
|
||||
{
|
||||
u8 sw;
|
||||
}bsp_buzzer_flash_data_t;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 state;
|
||||
bsp_buzzer_flash_data_t *p_flash_data;
|
||||
void (*init)(void);
|
||||
void (*task)(void);
|
||||
struct
|
||||
{
|
||||
void (*on)(void);
|
||||
void (*off)(void);
|
||||
void (*enable)(void);
|
||||
void (*disable)(void);
|
||||
}set;
|
||||
}bsp_buzzer_t;
|
||||
|
||||
extern bsp_buzzer_t buzzer;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user