Skip to content

Instantly share code, notes, and snippets.

@electronut
Created October 29, 2017 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electronut/d68f2313cebd89130c0ac2e1d3ee9f46 to your computer and use it in GitHub Desktop.
Save electronut/d68f2313cebd89130c0ac2e1d3ee9f46 to your computer and use it in GitHub Desktop.
stm32-returns-3.c
/* StartDefaultTask function */
void StartDefaultTask(void const * argument)
{
/* USER CODE BEGIN 5 */
/* Infinite loop */
for(;;)
{
HAL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin);
osDelay(250);
HAL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin);
osDelay(250);
// signal thread
conway.signal();
osDelay(100);
}
/* USER CODE END 5 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment