Skip to content

Fixed UART interrupts #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion targets/arm/mikroe/core/include/hal_ll_core_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ extern "C"{

#define NVIC_IPR ((NVIC_IPR_Type *) 0xE000E400UL)

#define hal_ll_core_irq(irq_val) (1 << irq_val)
#define hal_ll_core_irq(irq_val) (1 << (irq_val & HAL_LL_CORE_IRQ_MASK))
#define hal_ll_core_pri(irq_pri) (irq_pri << 4)

#define HAL_LL_CORE_IRQ_MASK 0x1F
Expand Down
4 changes: 2 additions & 2 deletions targets/arm/mikroe/core/src/renesas/m4/hal_ll_core_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ void hal_ll_core_port_nvic_enable_irq( uint8_t IRQn )
{
// Application vectors
if (( IRQn <= 31 ) && ( IRQn >= 0 ))
set_reg_bits( HAL_LL_CORE_NVIC_ISER_0, ( ( hal_ll_core_irq( IRQn ) ) & HAL_LL_CORE_IRQ_MASK ) );
set_reg_bits( HAL_LL_CORE_NVIC_ISER_0, hal_ll_core_irq( IRQn ));
}

void hal_ll_core_port_nvic_disable_irq( uint8_t IRQn )
{
// Application vectors
if (( IRQn <= 31 ) && ( IRQn >= 0 ))
set_reg_bits( HAL_LL_CORE_NVIC_ICER_0, ( ( hal_ll_core_irq( IRQn ) ) & HAL_LL_CORE_IRQ_MASK ) );
set_reg_bits( HAL_LL_CORE_NVIC_ICER_0, hal_ll_core_irq( IRQn ));
}

void hal_ll_core_port_nvic_set_priority_irq( uint8_t IRQn, uint8_t IRQn_priority )
Expand Down