[stm32f4-ltdc] Helper function to wait for SRCR reload to complete

This commit is contained in:
Oliver Meier 2015-01-11 19:09:06 +01:00 committed by Piotr Esden-Tempski
parent 4b8f5e613b
commit 7fbd49b3fc

View File

@ -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)