aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32L4xx
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/STM32L4xx')
-rw-r--r--os/hal/ports/STM32/STM32L4xx/hal_lld.c4
-rw-r--r--os/hal/ports/STM32/STM32L4xx/stm32_isr.c4
-rw-r--r--os/hal/ports/STM32/STM32L4xx/stm32_isr.h4
3 files changed, 8 insertions, 4 deletions
diff --git a/os/hal/ports/STM32/STM32L4xx/hal_lld.c b/os/hal/ports/STM32/STM32L4xx/hal_lld.c
index f02d2a3ba..d87f9b336 100644
--- a/os/hal/ports/STM32/STM32L4xx/hal_lld.c
+++ b/os/hal/ports/STM32/STM32L4xx/hal_lld.c
@@ -123,10 +123,14 @@ void hal_lld_init(void) {
/* Initializes the backup domain.*/
hal_lld_backup_domain_init();
+ /* DMA subsystems initialization.*/
#if defined(STM32_DMA_REQUIRED)
dmaInit();
#endif
+ /* IRQ subsystem initialization.*/
+ irqInit();
+
/* Programmable voltage detector enable.*/
#if STM32_PVD_ENABLE
PWR->CR2 = PWR_CR2_PVDE | (STM32_PLS & STM32_PLS_MASK);
diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_isr.c b/os/hal/ports/STM32/STM32L4xx/stm32_isr.c
index 5fc69894c..71907f00c 100644
--- a/os/hal/ports/STM32/STM32L4xx/stm32_isr.c
+++ b/os/hal/ports/STM32/STM32L4xx/stm32_isr.c
@@ -327,7 +327,7 @@ OSAL_IRQ_HANDLER(Vector140) {
*
* @notapi
*/
-void stm32_irq_enable(void) {
+void irqInit(void) {
#if HAL_USE_PAL || HAL_USE_EXT
nvicEnableVector(EXTI0_IRQn, STM32_IRQ_EXTI0_PRIORITY);
@@ -352,7 +352,7 @@ void stm32_irq_enable(void) {
*
* @notapi
*/
-void stm32_irq_disable(void) {
+void irqDeinit(void) {
#if HAL_USE_PAL || HAL_USE_EXT
nvicDisableVector(EXTI0_IRQn);
diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_isr.h b/os/hal/ports/STM32/STM32L4xx/stm32_isr.h
index 1cd5cc19d..76538a0a6 100644
--- a/os/hal/ports/STM32/STM32L4xx/stm32_isr.h
+++ b/os/hal/ports/STM32/STM32L4xx/stm32_isr.h
@@ -141,8 +141,8 @@
#ifdef __cplusplus
extern "C" {
#endif
- void stm32_irq_enable(void);
- void stm32_irq_disable(void);
+ void irqInit(void);
+ void irqDeinit(void);
#ifdef __cplusplus
}
#endif