[X9D] EEPROM bug fixes

This commit is contained in:
bsongis
2013-01-06 12:49:46 +00:00
parent a8f3e77e22
commit 8f5aaad3d6
7 changed files with 103 additions and 13 deletions
@@ -148,8 +148,9 @@
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */
#define PLL_M 25
#define PLL_N 240
// Gives 60MHz
#define PLL_M 12
#define PLL_N 120
/* SYSCLK = PLL_VCO / PLL_P */
#define PLL_P 2
@@ -185,6 +186,10 @@
* @{
*/
extern uint32_t Master_frequency ;
uint32_t Peri1_frequency ;
uint32_t Peri2_frequency ;
static void SetSysClock(void);
#ifdef DATA_IN_ExtSRAM
static void SystemInit_ExtMemCtl(void);
@@ -400,6 +405,9 @@ static void SetSysClock(void)
configuration. User can add here some code to deal with this error */
}
Master_frequency = 60000000 ;
Peri1_frequency = 30000000 ;
Peri2_frequency = 15000000 ;
}
/**