Merge pull request #7 from mobyfab/master
FSMC support for STM32F2/F4 for SSD1289
This commit is contained in:
commit
880d8a4b72
1 changed files with 8 additions and 2 deletions
|
@ -58,8 +58,14 @@
|
||||||
*/
|
*/
|
||||||
bool_t GDISP_LLD(init)(void) {
|
bool_t GDISP_LLD(init)(void) {
|
||||||
#ifdef GDISP_USE_FSMC
|
#ifdef GDISP_USE_FSMC
|
||||||
/* FSMC setup. TODO: this only works for STM32F1 */
|
#if defined(STM32F1XX) || defined(STM32F3XX)
|
||||||
|
/* FSMC clock init for F1/F3 */
|
||||||
rccEnableAHB(RCC_AHBENR_FSMCEN, 0);
|
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;
|
int FSMC_Bank = 0;
|
||||||
/* timing structure */
|
/* timing structure */
|
||||||
/* from datasheet:
|
/* from datasheet:
|
||||||
|
|
Loading…
Add table
Reference in a new issue