mirror of https://github.com/rusefi/openblt.git
- Bugfix in Init() for LPC2000 where the system clock speed was compared in the wrong units (kHz vs. MHz)
git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@7 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
parent
28897cf647
commit
98aee4817f
|
@ -132,11 +132,11 @@ static void Init(void)
|
|||
* Fcclk < 20 MHz: 1 clock cycle
|
||||
*/
|
||||
MAMCR = 0x0;
|
||||
#if (BOOT_CPU_SYSTEM_SPEED_KHZ >= 60)
|
||||
#if (BOOT_CPU_SYSTEM_SPEED_KHZ >= 60000)
|
||||
MAMTIM = 4;
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 40)
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 40000)
|
||||
MAMTIM = 3;
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 20)
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 20000)
|
||||
MAMTIM = 2;
|
||||
#else
|
||||
MAMTIM = 1;
|
||||
|
|
|
@ -127,11 +127,11 @@ static void Init(void)
|
|||
* Fcclk < 20 MHz: 1 clock cycle
|
||||
*/
|
||||
MAMCR = 0x0;
|
||||
#if (BOOT_CPU_SYSTEM_SPEED_KHZ >= 60)
|
||||
#if (BOOT_CPU_SYSTEM_SPEED_KHZ >= 60000)
|
||||
MAMTIM = 4;
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 40)
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 40000)
|
||||
MAMTIM = 3;
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 20)
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 20000)
|
||||
MAMTIM = 2;
|
||||
#else
|
||||
MAMTIM = 1;
|
||||
|
|
|
@ -132,11 +132,11 @@ static void Init(void)
|
|||
* Fcclk < 20 MHz: 1 clock cycle
|
||||
*/
|
||||
MAMCR = 0x0;
|
||||
#if (BOOT_CPU_SYSTEM_SPEED_KHZ >= 60)
|
||||
#if (BOOT_CPU_SYSTEM_SPEED_KHZ >= 60000)
|
||||
MAMTIM = 4;
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 40)
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 40000)
|
||||
MAMTIM = 3;
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 20)
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 20000)
|
||||
MAMTIM = 2;
|
||||
#else
|
||||
MAMTIM = 1;
|
||||
|
|
|
@ -127,11 +127,11 @@ static void Init(void)
|
|||
* Fcclk < 20 MHz: 1 clock cycle
|
||||
*/
|
||||
MAMCR = 0x0;
|
||||
#if (BOOT_CPU_SYSTEM_SPEED_KHZ >= 60)
|
||||
#if (BOOT_CPU_SYSTEM_SPEED_KHZ >= 60000)
|
||||
MAMTIM = 4;
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 40)
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 40000)
|
||||
MAMTIM = 3;
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 20)
|
||||
#elif (BOOT_CPU_SYSTEM_SPEED_KHZ >= 20000)
|
||||
MAMTIM = 2;
|
||||
#else
|
||||
MAMTIM = 1;
|
||||
|
|
Loading…
Reference in New Issue