diff options
| author | Daniel Campora | 2015-07-08 13:13:37 +0200 |
|---|---|---|
| committer | Daniel Campora | 2015-07-08 13:13:37 +0200 |
| commit | 9220dc466a8d098ed669a33a617edd1118a3e35d (patch) | |
| tree | 2ee5a99e3d86d47d790ace5fbd8d34fa3df4b380 /cc3200/hal/cc3200_hal.c | |
| parent | d18ced9cddb4123ba793824bf7370a6593c9a3ae (diff) | |
cc3200: Correct udelay us to ticks calculation.
Diffstat (limited to 'cc3200/hal/cc3200_hal.c')
| -rw-r--r-- | cc3200/hal/cc3200_hal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cc3200/hal/cc3200_hal.c b/cc3200/hal/cc3200_hal.c index afc5fb724..526211fee 100644 --- a/cc3200/hal/cc3200_hal.c +++ b/cc3200/hal/cc3200_hal.c @@ -123,9 +123,7 @@ void HAL_Delay(uint32_t delay) { #endif } else { for (int ms = 0; ms < delay; ms++) { - // 500 instead of 1000 us to compensate the overhead of the for loop - // and the function call - UtilsDelay(UTILS_DELAY_US_TO_COUNT(500)); + UtilsDelay(UTILS_DELAY_US_TO_COUNT(1000)); } } } |
