Makefile now ok with the ersky9x board

This commit is contained in:
bsongis
2012-03-23 23:46:41 +00:00
parent bdda7c3ddf
commit 35ba45c1d5
12 changed files with 900 additions and 394 deletions
+22 -2
View File
@@ -91,6 +91,20 @@ uint16_t Sine_values64[] =
633, 779, 936,1105,1282,1467,1657,1851
} ;
const uint16_t PianoTones[] =
{
28, 29, 31, 33, 35, 37, 39, 41, 44, 46,
49, 52, 55, 58, 62, 65, 69, 73, 78, 82,
87, 92, 98, 104, 110, 117, 123, 131, 139, 147,
156, 165, 175, 185, 196, 208, 220, 233, 247, 262,
277, 294, 311, 330, 349, 370, 392, 415, 440, 466,
494, 523, 554, 587, 622, 659, 698, 740, 784, 831,
880, 932, 988, 1047, 1109, 1175, 1245, 1319, 1397, 1480,
1568, 1661, 1760, 1865, 1976, 2093, 2217, 2349, 2489, 2637,
2794, 2960, 3136, 3322, 3520 ,3729, 3951, 4186
} ;
// Sound routines
void start_sound()
@@ -244,6 +258,14 @@ void end_sound()
PMC->PMC_PCER0 &= ~0x40000000L ; // Disable peripheral clock to DAC
}
void playTone( uint32_t frequency, uint32_t time )
{
set_frequency( frequency ) ;
tone_start( time ) ;
}
// Time is in milliseconds
void tone_start( register uint32_t time )
{
@@ -340,5 +362,3 @@ void audioDefevent(uint8_t e)
}