Changeset 77 for ctrl/firmware/Main/SES/Core/Src
- Timestamp:
- Feb 3, 2025, 3:27:37 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ctrl/firmware/Main/SES/Core/Src/main_task.cpp
r76 r77 5 5 #include "task.h" 6 6 7 #include "lwip.h"8 9 7 #include "ff.h" 10 8 #include "fatfs.h" 11 9 #include "main_task.h" 12 10 #include "utils.h" 11 12 #include "dhcp.h" 13 13 14 14 … … 22 22 23 23 static FATFS fs;// __attribute__((section(".DTCM_RAM"))); // Filesystem object 24 static uint8_t dhcp_buffer[256]; 24 25 25 26 FRESULT scan_files (TCHAR* path); … … 32 33 (void)argument; 33 34 34 MX_LWIP_Init(); 35 HAL_GPIO_WritePin(ETH_SPI_PWR_GPIO_Port, ETH_SPI_PWR_Pin, GPIO_PIN_RESET); 36 vTaskDelay(pdMS_TO_TICKS(100U)); 37 HAL_GPIO_WritePin(ETH_SPI_RST_GPIO_Port, ETH_SPI_RST_Pin, GPIO_PIN_SET); 38 vTaskDelay(pdMS_TO_TICKS(65U)); // Min 60.3ms 39 40 DHCP_init(0, dhcp_buffer); 41 42 //MX_LWIP_Init(); 35 43 36 44 FRESULT r = f_mount(&fs, (const TCHAR*)"", 1); // Mount the default drive
Note: See TracChangeset
for help on using the changeset viewer.