mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-15 08:14:12 +02:00
Fixing delay loop for all STM32F7 devices
This commit is contained in:
@@ -909,7 +909,7 @@ void CIO::setP25Int(bool on)
|
|||||||
// Example from: http://thehackerworkshop.com/?p=1209
|
// Example from: http://thehackerworkshop.com/?p=1209
|
||||||
void CIO::delayInt(unsigned int dly)
|
void CIO::delayInt(unsigned int dly)
|
||||||
{
|
{
|
||||||
#if defined(STM32F7_NUCLEO)
|
#if defined(STM32F7XX)
|
||||||
unsigned int loopsPerMillisecond = (SystemCoreClock/1000);
|
unsigned int loopsPerMillisecond = (SystemCoreClock/1000);
|
||||||
#else
|
#else
|
||||||
unsigned int loopsPerMillisecond = (SystemCoreClock/1000) / 3;
|
unsigned int loopsPerMillisecond = (SystemCoreClock/1000) / 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user