diff --git a/src/os.c b/src/os.c index 4b691b9..5f82834 100644 --- a/src/os.c +++ b/src/os.c @@ -83,7 +83,7 @@ void dissable_interrupts() { * Sets the priority of PenSV interrupt to the lowest * This is because the PendSV interrupt handler is used for job scheduling */ -void set_pensv_priority_to_low() { +void set_pendsv_priority_to_low() { // Set the Priority of the PendSV interrupt to minimum *(unsigned long int volatile *) 0xE000ED20 |= (0xFFU << 16); @@ -175,7 +175,7 @@ static void add_to_execution_queue(tcb_ *tcb) { */ void system_init() { dissable_interrupts(); - set_pensv_priority_to_low(); + set_pendsv_priority_to_low(); setup_systick_timer(); total_tasks = 0; @@ -376,4 +376,4 @@ __attribute__ ((section(".isr_vector"))) void (*const vectors[])() = default_handler, // PWM 1 Generator 2 default_handler, // PWM 1 Generator 3 default_handler // PWM 1 Fault -}; \ No newline at end of file +};