1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/******************************************************************************/
/* FLASH_NOR.ini: NOR Initialization File */
/******************************************************************************/
// <<< Use Configuration Wizard in Context Menu >>> //
/******************************************************************************/
/* This file is part of the uVision/ARM development tools. */
/* Copyright (c) 2005-2006 Keil Software. All rights reserved. */
/* This software may only be used under the terms of a valid, current, */
/* end user licence from KEIL for a compatible version of KEIL software */
/* development tools. Nothing else gives you the right to use this software. */
/******************************************************************************/
FUNC void Setup(void) {
_WDWORD(0x40021014, 0x00000114); // FSMC clock enable
_WDWORD(0x40021018, 0x000001FD); // GPIOD~G clock enable
_WDWORD(0x40011400, 0x44BB44BB); // GPIOD config
_WDWORD(0x40011404, 0xBBBBBBBB); // GPIOD config
_WDWORD(0x40011800, 0xBBBBB444); // GPIOE config
_WDWORD(0x40011804, 0xBBBBBBBB); // GPIOE config
_WDWORD(0x40011C00, 0x44BBBBBB); // GPIOF config
_WDWORD(0x40011C04, 0xBBBB4444); // GPIOF config
_WDWORD(0x40012000, 0x44BBBBBB); // GPIOG config
_WDWORD(0x40012004, 0x444444B4); // GPIOG config
_WDWORD(0xA0000000, 0x000030DB); // FSMC config
_WDWORD(0xA0000008, 0x00001059); // FSMC config
_WDWORD(0xA000000C, 0x10000705); // FSMC config
_WDWORD(0xA0000104, 0x0FFFFFFF); // FSMC config
}
Setup();
|