Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab26294
)
Use fixed version of IRQ priority helpers
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Mon, 7 Feb 2022 02:12:21 +0000
(
03:12
+0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000
(17:03 +0100)
core/systick.c
patch
|
blob
|
history
diff --git
a/core/systick.c
b/core/systick.c
index
78a8dae
..
2095f42
100644
(file)
--- a/
core/systick.c
+++ b/
core/systick.c
@@
-244,8
+244,8
@@
void systick_timer_on(uint32_t ms)
/* For the LPC122x the system tick clock is fixed to half the frequency of the system clock */
usleep_us_count = (usleep_us_count >> 1); /* Divide by two */
- /*
FIXME : document this
*/
- NVIC_SetPriority(SYSTICK_IRQ,
((1 << LPC_NVIC_PRIO_BITS) - 1)
);
+ /*
Set to lowest priority (0 is highest, 3 is lowest)
*/
+ NVIC_SetPriority(SYSTICK_IRQ,
3
);
}
/* Removes the main clock from the selected timer block */
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !