From 8b71e9551f0715af1eb9b9d1ae5a362c368a184e Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 8 Aug 2021 16:05:50 +0200 Subject: [PATCH] deleted main.c file Leftover from fromer FreeRTOS example --- examples/freertos/main.c | 69 ---------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 examples/freertos/main.c diff --git a/examples/freertos/main.c b/examples/freertos/main.c deleted file mode 100644 index 18b28c9d..00000000 --- a/examples/freertos/main.c +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include -#include - -#include - -// STM32F4-Discovery green led - PD12 -#define LED_PORT GPIOD -#define LED_PIN GPIO_PIN_12 -#define LED_PORT_CLK_ENABLE __HAL_RCC_GPIOD_CLK_ENABLE - -static void blinky(void *arg) -{ - for(;;) - { - vTaskDelay(500); - HAL_GPIO_TogglePin(LED_PORT, LED_PIN); - } -} - -void initGPIO() -{ - GPIO_InitTypeDef GPIO_Config; - - GPIO_Config.Mode = GPIO_MODE_OUTPUT_PP; - GPIO_Config.Pull = GPIO_NOPULL; - GPIO_Config.Speed = GPIO_SPEED_FREQ_HIGH; - - GPIO_Config.Pin = LED_PIN; - - LED_PORT_CLK_ENABLE(); - HAL_GPIO_Init(LED_PORT, &GPIO_Config); -} - -int main(void) -{ - SystemInit(); - initGPIO(); - - xTaskCreate(blinky, "blinky", configMINIMAL_STACK_SIZE * 4, NULL, tskIDLE_PRIORITY + 1, NULL); - - vTaskStartScheduler(); - for (;;); - - return 0; -} - -void vApplicationTickHook(void) -{ -} - -void vApplicationIdleHook(void) -{ -} - -void vApplicationMallocFailedHook(void) -{ - taskDISABLE_INTERRUPTS(); - for(;;); -} - -void vApplicationStackOverflowHook(TaskHandle_t pxTask, char *pcTaskName) -{ - (void) pcTaskName; - (void) pxTask; - - taskDISABLE_INTERRUPTS(); - for(;;); -}