@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user