实现功能 但似乎可以不用中断实现

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2022-05-02 19:14:55 +08:00
parent 8a3d91d0c2
commit e15506fa7e
21 changed files with 3176 additions and 2258 deletions
+25 -1
View File
@@ -5,7 +5,31 @@
void play_ones(uint16_t freq,uint8_t dutya);
typedef struct note
{
struct note *next;
uint16_t freq; //??
uint8_t duty; //???
uint16_t delay; //????
}note;
typedef struct notes_buff
{
note *head;
note *end;
uint32_t play_time;
uint8_t play_busy:1;
}notes_buff;
void BUZZER_PLAY_INIT();
void BUZZER_PLAY_NOTES(uint16_t freq,uint16_t delay,uint8_t duty);
void BUZZER_PLAY_SERVER();
void BUZZER_PLAY(uint16_t freq,float duty);
#endif /* BUZZER_H_ */