Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
3078a4b2
Commit
3078a4b2
authored
Dec 17, 2019
by
iabdalkader
Committed by
Damien George
Dec 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32/timer: Add missing TIM 1/15/16/17 IRQ handlers for H7 MCUs.
parent
8449e418
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
ports/stm32/stm32_it.c
ports/stm32/stm32_it.c
+28
-0
ports/stm32/timer.c
ports/stm32/timer.c
+3
-1
No files found.
ports/stm32/stm32_it.c
View file @
3078a4b2
...
...
@@ -609,6 +609,14 @@ void TIM1_UP_TIM16_IRQHandler(void) {
}
#endif
#if defined(STM32H7)
void
TIM1_UP_IRQHandler
(
void
)
{
IRQ_ENTER
(
TIM1_UP_IRQn
);
timer_irq_handler
(
1
);
IRQ_EXIT
(
TIM1_UP_IRQn
);
}
#endif
void
TIM1_TRG_COM_TIM11_IRQHandler
(
void
)
{
IRQ_ENTER
(
TIM1_TRG_COM_TIM11_IRQn
);
timer_irq_handler
(
11
);
...
...
@@ -705,6 +713,26 @@ void TIM8_TRG_COM_TIM14_IRQHandler(void) {
}
#endif
#if defined(STM32H7)
void
TIM15_IRQHandler
(
void
)
{
IRQ_ENTER
(
TIM15_IRQn
);
timer_irq_handler
(
15
);
IRQ_EXIT
(
TIM15_IRQn
);
}
void
TIM16_IRQHandler
(
void
)
{
IRQ_ENTER
(
TIM16_IRQn
);
timer_irq_handler
(
16
);
IRQ_EXIT
(
TIM16_IRQn
);
}
void
TIM17_IRQHandler
(
void
)
{
IRQ_ENTER
(
TIM17_IRQn
);
timer_irq_handler
(
17
);
IRQ_EXIT
(
TIM17_IRQn
);
}
#endif
// UART/USART IRQ handlers
void
USART1_IRQHandler
(
void
)
{
IRQ_ENTER
(
USART1_IRQn
);
...
...
ports/stm32/timer.c
View file @
3078a4b2
...
...
@@ -759,6 +759,8 @@ STATIC const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = {
TIM_ENTRY
(
1
,
TIM1_BRK_UP_TRG_COM_IRQn
),
#elif defined(STM32F4) || defined(STM32F7)
TIM_ENTRY
(
1
,
TIM1_UP_TIM10_IRQn
),
#elif defined(STM32H7)
TIM_ENTRY
(
1
,
TIM1_UP_IRQn
),
#elif defined(STM32L4)
TIM_ENTRY
(
1
,
TIM1_UP_TIM16_IRQn
),
#endif
...
...
@@ -780,7 +782,7 @@ STATIC const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = {
TIM_ENTRY
(
7
,
TIM7_IRQn
),
#endif
#if defined(TIM8)
#if defined(STM32F4) || defined(STM32F7)
#if defined(STM32F4) || defined(STM32F7)
|| defined(STM32H7)
TIM_ENTRY
(
8
,
TIM8_UP_TIM13_IRQn
),
#elif defined(STM32L4)
TIM_ENTRY
(
8
,
TIM8_UP_IRQn
),
...
...
Write
Preview
Markdown
is supported
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