فهرست منبع

deleted main.c file

Leftover from fromer FreeRTOS example
Robin Mueller 4 سال پیش
والد
کامیت
8b71e9551f
1فایلهای تغییر یافته به همراه0 افزوده شده و 69 حذف شده
  1. 0 69
      examples/freertos/main.c

+ 0 - 69
examples/freertos/main.c

@@ -1,69 +0,0 @@
-#include <FreeRTOS.h>
-#include <task.h>
-#include <timers.h>
-
-#include <stm32f4xx_hal.h>
-
-// 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(;;);
-}