mirror of
https://github.com/supleed2/EIE4-FYP.git
synced 2024-11-10 04:15:49 +00:00
9 lines
185 B
C++
9 lines
185 B
C++
|
#include <generated/csr.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
void note(uint32_t frequency, unsigned int duration_ms) {
|
||
|
audio_targ_write(frequency);
|
||
|
busy_wait(duration_ms);
|
||
|
audio_targ_write(0);
|
||
|
}
|