LonelyWolf / stm32

STM32 stuff
The Unlicense
949 stars 496 forks source link

error in delay function #9

Closed hamed-ta closed 7 years ago

hamed-ta commented 7 years ago

Delay_Init does not defined in delay.c and also it need to define this constants and variables

define DELAY_TICK_FREQUENCY_US 1000000 / = 1MHZ -> microseconds delay /

define DELAY_TICK_FREQUENCY_MS 1000 / = 1kHZ -> milliseconds delay /

static __IO uint32_t TimingDelay; // __IO -- volatile

LonelyWolf commented 7 years ago

Hmm... Looks like I've forgot to upload the new delay.c... Take a look at latest commit, it must be fine now. The new version is more convenient since it doesn't use the SysTick IRQ.

hamed-ta commented 7 years ago

yes the new one is optimize , thank you ;)