Skip to content

Commit

Permalink
⚡ (video): LTDC - Add IRQHandler
Browse files Browse the repository at this point in the history
Co-Authored-By: Modar Nasser <11854124+Madour@users.noreply.github.com>
  • Loading branch information
YannLocatelli and Madour committed Mar 14, 2022
1 parent 53524d7 commit 152e320
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/CoreVideo/include/CoreLTDC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CoreLTDC : public interface::LTDCBase

void initialize() final;

[[nodiscard]] auto getHandle() const -> LTDC_HandleTypeDef;
[[nodiscard]] auto getHandle() -> LTDC_HandleTypeDef &;
[[nodiscard]] auto getLayerConfig() const -> LTDC_LayerCfgTypeDef;

private:
Expand Down
2 changes: 1 addition & 1 deletion drivers/CoreVideo/source/CoreLTDC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void CoreLTDC::configurePeriphClock()
_hal.HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
}

auto CoreLTDC::getHandle() const -> LTDC_HandleTypeDef
auto CoreLTDC::getHandle() -> LTDC_HandleTypeDef &
{
return _hltdc;
}
Expand Down
5 changes: 5 additions & 0 deletions spikes/lk_lcd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ void DMA2D_IRQHandler(void)
{
HAL_DMA2D_IRQHandler(&coredma2d.getHandle());
}

void LTDC_IRQHandler(void)
{
HAL_LTDC_IRQHandler(&coreltdc.getHandle());
}
}

void registerCallbacks()
Expand Down

0 comments on commit 152e320

Please sign in to comment.