diff options
Diffstat (limited to 'cc3200/hal')
-rw-r--r-- | cc3200/hal/cc3200_hal.c | 4 | ||||
-rw-r--r-- | cc3200/hal/cc3200_hal.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/cc3200/hal/cc3200_hal.c b/cc3200/hal/cc3200_hal.c index afc5fb7241..526211fee2 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)); } } } diff --git a/cc3200/hal/cc3200_hal.h b/cc3200/hal/cc3200_hal.h index 5ce93edd2a..dfffe0b7a8 100644 --- a/cc3200/hal/cc3200_hal.h +++ b/cc3200/hal/cc3200_hal.h @@ -37,7 +37,7 @@ #define HAL_FCPU_MHZ 80U #define HAL_FCPU_HZ (1000000U * HAL_FCPU_MHZ) #define HAL_SYSTICK_PERIOD_US 1000U -#define UTILS_DELAY_US_TO_COUNT(us) (((us) * HAL_FCPU_MHZ) / 3) +#define UTILS_DELAY_US_TO_COUNT(us) (((us) * HAL_FCPU_MHZ) / 6) #define HAL_NVIC_INT_CTRL_REG (*((volatile uint32_t *) 0xE000ED04 ) ) #define HAL_VECTACTIVE_MASK (0x1FUL) |