@ -67,6 +67,8 @@ void MX_FREERTOS_Init(void);
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
void MY_LCD_Init();
int _gettimeofday( struct timeval *tv, void *tzvp )
{
uint64_t t = 0;//__your_system_time_function_here__(); // get uptime in nanoseconds
@ -82,8 +84,13 @@ int _gettimeofday( struct timeval *tv, void *tzvp )
*/
int main(void)
/* USER CODE BEGIN 1 */
#if 0
HAL_Init();
SystemClock_Config();
PeriphCommonClock_Config();
//MY_LCD_Init();
#else
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
@ -117,10 +124,11 @@ int main(void)
MX_TIM1_Init();
MX_FATFS_Init();
/* USER CODE BEGIN 2 */
#endif
/* USER CODE END 2 */
/* Call init function for freertos objects (in freertos.c) */
/* Init scheduler */
osKernelInitialize(); /* Call init function for freertos objects (in freertos.c) */
MX_FREERTOS_Init();
/* Start scheduler */
@ -132,7 +140,7 @@ int main(void)
while (1)
/* USER CODE END WHILE */
__NOP();
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */