diff options
author | mobyfab <mobyfab@free.fr> | 2012-10-17 19:12:33 +0200 |
---|---|---|
committer | mobyfab <mobyfab@free.fr> | 2012-10-17 19:12:33 +0200 |
commit | 3d87df438389a37a4e4ebf9c6dfe7e19530b1ca8 (patch) | |
tree | 1e38e95660a30002593bc87df3b87f1d93bdefad /drivers/gdisp/SSD1289/gdisp_lld.c | |
parent | ad070b0fec69fe8d04dd2b06023a2ec74d283ed5 (diff) | |
download | uGFX-3d87df438389a37a4e4ebf9c6dfe7e19530b1ca8.tar.gz uGFX-3d87df438389a37a4e4ebf9c6dfe7e19530b1ca8.tar.bz2 uGFX-3d87df438389a37a4e4ebf9c6dfe7e19530b1ca8.zip |
F2/F4 FSMC support for SSD1289
Diffstat (limited to 'drivers/gdisp/SSD1289/gdisp_lld.c')
-rw-r--r-- | drivers/gdisp/SSD1289/gdisp_lld.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index 81fe1fa9..75ed2506 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld.c +++ b/drivers/gdisp/SSD1289/gdisp_lld.c @@ -58,8 +58,14 @@ */
bool_t GDISP_LLD(init)(void) {
#ifdef GDISP_USE_FSMC
- /* FSMC setup. TODO: this only works for STM32F1 */
- rccEnableAHB(RCC_AHBENR_FSMCEN, 0);
+ #if defined(STM32F1XX) || defined(STM32F3XX)
+ /* FSMC clock init for F1/F3 */
+ rccEnableAHB(RCC_AHBENR_FSMCEN, 0);
+ #elif defined(STM32F4XX) || defined(STM32F2XX)
+ /* FSMC clock init for F2/F4 */
+ rccEnableAHB3(RCC_AHB3ENR_FSMCEN, 0);
+ #endif
+
int FSMC_Bank = 0;
/* timing structure */
/* from datasheet:
|