Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
8e008449
Commit
8e008449
authored
Jan 31, 2017
by
Damien George
Browse files
stmhal: Fix build issue when MICROPY_PY_THREAD is disabled.
parent
00e71766
Changes
2
Hide whitespace changes
Inline
Side-by-side
stmhal/main.c
View file @
8e008449
...
...
@@ -454,7 +454,9 @@ int main(void) {
#endif
// basic sub-system init
#if MICROPY_PY_THREAD
pyb_thread_init
(
&
pyb_thread_main
);
#endif
pendsv_init
();
led_init
();
#if MICROPY_HW_HAS_SWITCH
...
...
stmhal/stm32_it.c
View file @
8e008449
...
...
@@ -289,10 +289,12 @@ void SysTick_Handler(void) {
dma_idle_handler
(
uwTick
);
}
#if MICROPY_PY_THREAD
// signal a thread switch at 4ms=250Hz
if
(
pyb_thread_enabled
&&
(
uwTick
&
0x03
)
==
0x03
)
{
SCB
->
ICSR
=
SCB_ICSR_PENDSVSET_Msk
;
}
#endif
}
/******************************************************************************/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment