From 7fbd49b3fc68e43097b653fddc3a39f176d62f58 Mon Sep 17 00:00:00 2001 From: Oliver Meier Date: Sun, 11 Jan 2015 19:09:06 +0100 Subject: [PATCH] [stm32f4-ltdc] Helper function to wait for SRCR reload to complete --- include/libopencm3/stm32/f4/ltdc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/libopencm3/stm32/f4/ltdc.h b/include/libopencm3/stm32/f4/ltdc.h index f09b6ba0..a35e2133 100644 --- a/include/libopencm3/stm32/f4/ltdc.h +++ b/include/libopencm3/stm32/f4/ltdc.h @@ -168,6 +168,16 @@ void ltdc_setup_windowing( uint16_t active_width, uint16_t active_height ); + + +/** + * Helper function to wait for SRCR reload to complete or so + */ + +#define LTDC_SRCR_IS_RELOADING (LTDC_SRCR&(LTDC_SRCR_RELOAD_VBR|LTDC_SRCR_RELOAD_IMR)) + + + /** * color conversion helper function * (simulate the ltdc color conversion)