mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-30 05:46:53 +08:00
Combine different part variants into a single port.c file.
This commit is contained in:
@ -184,11 +184,18 @@ static void prvSetupTimerInterrupt( void )
|
||||
TM0EQMK0 = 1; /* INTTM0EQ0 interrupt disable */
|
||||
TM0EQIF0 = 0; /* clear INTTM0EQ0 interrupt flag */
|
||||
|
||||
/* Set INTTM0EQ0 level 5 priority */
|
||||
#ifdef __IAR_V850ES_Fx3__
|
||||
{
|
||||
TM0CMP0 = (((configCPU_CLOCK_HZ / configTICK_RATE_HZ) / 2)-1); /* divided by 2 because peripherals only run at CPU_CLOCK/2 */
|
||||
}
|
||||
#else
|
||||
{
|
||||
TM0CMP0 = (configCPU_CLOCK_HZ / configTICK_RATE_HZ);
|
||||
}
|
||||
#endif
|
||||
|
||||
TM0EQIC0 &= 0xF8;
|
||||
TM0CTL0 = 0x00;
|
||||
TM0CMP0 = (((configCPU_CLOCK_HZ / configTICK_RATE_HZ) / 2)-1); /* divided by 2 because peripherals only run at CPU_CLOCK/2 */
|
||||
|
||||
TM0EQIF0 = 0; /* clear INTTM0EQ0 interrupt flag */
|
||||
TM0EQMK0 = 0; /* INTTM0EQ0 interrupt enable */
|
||||
TM0CE = 1; /* TMM0 operation enable */
|
||||
|
Reference in New Issue
Block a user