-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
54 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* @file nvicConfig.h | ||
* @author Jacob Chisholm (Jchisholm204.github.io) | ||
* @brief | ||
* @version 0.1 | ||
* @date 2023-11-20 | ||
* | ||
* @copyright Copyright (c) 2023 | ||
* | ||
* This file exists because of some odd errors surrounding FreeRTOS and the NVIC. | ||
* | ||
* In order to avoid deadlocks within an interrupt: Do NOT exceed these parameters. | ||
* EX: | ||
* NVIC_SetPriority(USART2_IRQn, NVIC_Priority_MAX); | ||
* NVIC_SetPriority(USART2_IRQn, NVIC_Priority_MAX+5); | ||
* NVIC_SetPriority(USART2_IRQn, NVIC_Priority_MIN-10); | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
// Highest Priority that can be given to an NVIC Interrupt | ||
#define NVIC_Priority_MAX 21 | ||
// Highest Priority that can be given to an NVIC Interrupt | ||
#define NVIC_Priority_MIN 79 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters