added ISR register to vPortSetupTimer() function

This commit is contained in:
mariusmonton 2019-02-11 20:36:16 +01:00
parent d62892e3dc
commit 111bf08297
2 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,6 @@ int main( void )
printf("Starting FreeRTOS test\n");
/* register ISR */
register_timer_isr();
my_queue = xQueueCreate(10, sizeof(int));
/* Create tasks */

View File

@ -189,6 +189,9 @@ void vPortSetupTimer(void)
#endif
volatile uint32_t timer_value;
register_timer_isr();
timer_value = TIMER;
// timer_value += configTICK_CLOCK_HZ / configTICK_RATE_HZ;
timer_value += 10000 - 620; // timer set to 100 Hz and corrected