task_accelerometer.c
/******************************************************************************
* Top Half of ADC14 Handler.
******************************************************************************/
Top Half of ADC14 Handler.
Top Half of ADC14 Handler .
void ADC14_IRQHandler(void)
{
    BaseType_t xHigherPriorityTaskWoken = pdFALSE;
    ACC_X_DIR = ADC14->MEM[0]; 
    ACC_Y_DIR = ADC14->MEM[1];
    ACC_Z_DIR = ADC14->MEM[2]; 
    vTaskNotifyGiveFromISR(Task_Accelerometer_Bottom_Half_Handle,&xHigherPriorityTaskWoken);
    portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
}
void ADC14_IRQHandler ( void ) { BaseType_t xHigherPriorityTaskWoken = pdFALSE ; ACC_X_DIR = ADC14 -> MEM [ 0 ] ; ACC_Y_DIR = ADC14 -> MEM [ 1 ] ; ACC_Z_DIR = ADC14 -> MEM [ 2 ] ; vTaskNotifyGiveFromISR ( Task_Accelerometer_Bottom_Half_Handle , & xHigherPriorityTaskWoken ) ; portYIELD_FROM_ISR ( xHigherPriorityTaskWoken ) ; }
Top Half of ADC14 Handler.
Top Half of ADC14 Handler .
// Read the value and clear the interrupt //assign values to their x y and z directions /*
     * Send a task notification to Task_Accelerometer_Bottom_Half
     */