Fixing delay loop for all STM32F7 devices

nxdn
Andy CA6JAU 2017-11-04 15:27:32 -03:00
parent cf448158cb
commit 6bbc716e4b
1 changed files with 1 additions and 1 deletions

View File

@ -909,7 +909,7 @@ void CIO::setP25Int(bool on)
// Example from: http://thehackerworkshop.com/?p=1209
void CIO::delayInt(unsigned int dly)
{
#if defined(STM32F7_NUCLEO)
#if defined(STM32F7XX)
unsigned int loopsPerMillisecond = (SystemCoreClock/1000);
#else
unsigned int loopsPerMillisecond = (SystemCoreClock/1000) / 3;