-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sound.h
29 lines (24 loc) · 785 Bytes
/
Sound.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Sound.h
// Runs on LM4F120 or TM4C123,
// edX lab 13
// Use the SysTick timer to request interrupts at a particular period.
// Daniel Valvano, Jonathan Valvano
// December 29, 2014
// **************Sound_Init*********************
// Initialize Systick periodic interrupts
// Also initializes DAC
// Input: none
// Output: none
void Sound_Init(void);
// **************Sound_Tone*********************
// Change SysTick periodic interrupts to start sound output
// Input: interrupt period
// Units of period are 12.5ns
// Maximum is 2^24-1
// Minimum is determined by length of ISR
// Output: none
void Sound_Tone(unsigned long period);
// **************Sound_Off*********************
// stop outputing to DAC
// Output: none
void Sound_Off(void);