Пример #1
0
// This thread handles the MIDI indicate LED's
// It also makes sure that the codec gets initialized.
static void myMidiIndicateThread(void *dummy)
{	
	//make sure update codec get's called if we already have lock
	DAL_STATUS		dalStatus;
	dalGetCurrentStatus  (eDAL_INTERFACE_1, &dalStatus);
	updateCodec(&dalStatus);

	DO_FOREVER
	{	
		TCTaskWait(200); //every 200ms
		uint8 act = uart1_activity ();
		amDisplayLed (AM_LED_MIDI_IN,act&UART_RX_ACTIVITY);
		amDisplayLed (AM_LED_MIDI_OUT,act&UART_TX_ACTIVITY);
	}
}
Пример #2
0
static HRESULT cliLED (uint32 bit, uint32 val)
{
	amDisplayLed(bit, !val); 
	return NO_ERROR;
}
Пример #3
0
// This function updates the status LED's, this way we can get the status
// back after leaving Meter mode.
static void updateStatusLEDs(void)
{	
	amDisplayLed (AM_LED_IS_LOCKED,isLocked);
	amDisplayLed (AM_LED_IS_ATTACHED,driverAttached);
}
Пример #4
0
// This function updates the status LED's, this way we can get the status
// back after leaving Meter mode.
static void updateStatusLEDs(void)
{	
	amDisplayLed (3,isLocked);
	amDisplayLed (4,driverAttached);
}