HAL_Delay not affecting frequency of a Blinking Light
I am new to STM32, and I am using a STM32L152c discovery board to run a sample blinking light program. I am using HAL_Delay to control the frequency of the blinking light. However, the frequency does not change when I change the argument to HAL_Delay, or even if I remove HAL_Delay altogether. I would appreciate any assistance. I have included the main function and the HAL_Delay code that was provided in the project setup.
Also, where can I find code documentation? I was trying to find something to help explain HAL_Delay and other functions, but I could not find anything.
int main(void){
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_ADC_Init();
MX_LCD_Init();
MX_TS_Init();
while (1){
HAL_GPIO_TogglePin(LD3_GPIO_Port, LD3_Pin);
HAL_Delay(1000);
}
}//This function was sourced from the stm32l1xx_hal.c file generated at project start
__weak void HAL_Delay(uint32_t Delay){
uint32_t tickstart = HAL_GetTick();
uint32_t wait = Delay;
/* Add a period to guaranty minimum wait */
if (wait < HAL_MAX_DELAY)
{
wait += (uint32_t)(uwTickFreq);
}
while((HAL_GetTick() - tickstart) < wait)
{
}
}