int main (void)
{
// Insert system clock initialization code here (sysclk_init()).
board_init();
init_timer();
init_uart();
tx_clk();
spimstr_init();
init_pwm();
while(1)
{
key();
if(key_status==key_pres)
{
if(playback_cmplete)
key_status=no_key_pres;
h=hr;
m=min;
continuous_pg_read(start_addr[h],0x00,wav_len[h]); //Function call to play first wav file
delay_ms(400);
continuous_pg_read(start_addr[m],0x00,wav_len[m]); //Function call to play second wav file
}
}
// Insert application code here, after the board has been initialized.
}