Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting pendsv spelling for more readability #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
};
};