Skip to content

Commit

Permalink
Fixing delay loop for all STM32F7 devices
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed Nov 4, 2017
1 parent cf44815 commit 6bbc716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IOSTM.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 6bbc716

Please sign in to comment.