MicrOS
startup_music.h
Go to the documentation of this file.
1 #ifndef STARTUP_MUSIC_H
2 #define STARTUP_MUSIC_H
3 
4 #include <stdint.h>
6 #include <stdlib.h>
7 #include <ktime.h>
8 
9 #define C4_NOTE 262
10 #define CS4_NOTE 277
11 #define D4_NOTE 294
12 #define DS4_NOTE 311
13 #define E4_NOTE 330
14 #define F4_NOTE 439
15 #define FS4_NOTE 370
16 #define G4_NOTE 392
17 #define GS4_NOTE 415
18 #define A4_NOTE 440
19 #define AS4_NOTE 466
20 #define B4_NOTE 494
21 #define C5_NOTE 523
22 #define CS5_NOTE 554
23 #define D5_NOTE 587
24 #define DS5_NOTE 622
25 #define E5_NOTE 659
26 #define F5_NOTE 698
27 #define FS5_NOTE 740
28 #define G5_NOTE 784
29 #define GS5_NOTE 831
30 #define A5_NOTE 880
31 
37 void startup_music_set_bmp(uint8_t new_bpm);
39 void startup_music_play();
40 
41 #endif
time_t time(time_t *timer)
Get current time.
Definition: time.c:5
uint32_t startup_music_whole_note()
Definition: startup_music.c:15
void startup_music_play()
Definition: startup_music.c:42
void startup_music_play_note(uint32_t freq, uint32_t time)
Definition: startup_music.c:35
uint32_t startup_music_eighth_note()
Definition: startup_music.c:20
uint32_t startup_music_quater_note()
Definition: startup_music.c:5
uint32_t startup_music_half_note()
Definition: startup_music.c:10
uint32_t startup_music_sixteenth_note()
Definition: startup_music.c:25
size_t uint32_t
Unsigned integral type.
Definition: string.h:8
void startup_music_set_bmp(uint8_t new_bpm)
Definition: startup_music.c:30