Ejemplo n.º 1
0
void __attribute__ ((interrupt)) AccelDataReady_ISR(void)
{
	OS_ISREnter();
	//is it this interrupt
	if (!(PORTB_PCR7 & PORT_PCR_ISF_MASK))
	{
		OS_ISRExit();
		return;
	}

	//clear the interrupt on the k70
	PORTB_PCR7 |= PORT_PCR_ISF_MASK;

	//clear the interrupt on the mma by reading the data.
	(DataCallback)(DataCallbackArgument);
	OS_ISRExit();
}
Ejemplo n.º 2
0
void __attribute__ ((interrupt)) PIT_ISR(void)
{
  PIT_TFLG0 |= PIT_TFLG_TIF_MASK; //Clear the Interrupt Flag

  OS_ISREnter();
  ISRCallBack(CallBackArguments); //Invoke the Call-back function
  OS_ISRExit();
}
Ejemplo n.º 3
0
void __attribute__ ((interrupt)) RTC_ISR(void)
{
  OS_ISREnter();
  OS_SemaphoreSignal(RTCCallbackSemaphore);
  OS_ISRExit();
}
Ejemplo n.º 4
0
void __attribute__ ((interrupt)) RTC_ISR(void)
{
  OS_ISREnter();
  ISRCallBack(CallBackArguments);       //Invoke the ISR Callback function
  OS_ISRExit();
}