diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-07-16 18:55:04 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-07-16 18:55:04 +1000 |
commit | b3028a78d15a325eee1ec9563047637908cab8f5 (patch) | |
tree | f3ba11b90c8c8c71a6eee82973548aad742bee57 /drivers/gdisp/STM32LTDC | |
parent | ea0f9922e7b265ac8b6321a6e6de33b56b049a28 (diff) | |
download | uGFX-b3028a78d15a325eee1ec9563047637908cab8f5.tar.gz uGFX-b3028a78d15a325eee1ec9563047637908cab8f5.tar.bz2 uGFX-b3028a78d15a325eee1ec9563047637908cab8f5.zip |
STM32F746 cleanup
Diffstat (limited to 'drivers/gdisp/STM32LTDC')
-rw-r--r-- | drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c b/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c index c4569949..75dbdab3 100644 --- a/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c +++ b/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c @@ -144,9 +144,8 @@ static void LTDC_LayerInit(LTDC_Layer_TypeDef* pLayReg, const ltdcLayerConfig* p pLayReg->CKCR = (pLayReg->CKCR & ~0x00FFFFFF) | (pCfg->keycolor & 0x00FFFFFF); pLayReg->CACR = (pLayReg->CACR & ~LTDC_LxCACR_CONSTA) | ((uint32_t)pCfg->alpha & LTDC_LxCACR_CONSTA); pLayReg->BFCR = (pLayReg->BFCR & ~(LTDC_LxBFCR_BF1 | LTDC_LxBFCR_BF2)) | ((uint32_t)pCfg->blending & (LTDC_LxBFCR_BF1 | LTDC_LxBFCR_BF2)); - for (start = 0; start < pCfg->palettelen; start++) { + for (start = 0; start < pCfg->palettelen; start++) pLayReg->CLUTWR = ((uint32_t)start << 24) | (pCfg->palette[start] & 0x00FFFFFF); - } // Final flags pLayReg->CR = (pLayReg->CR & ~LTDC_LEF_MASK) | ((uint32_t)pCfg->layerflags & LTDC_LEF_MASK); |