Browse Source

Fixing main.c

main
Goran Mahovlic 2 years ago
parent
commit
7284bf9066
  1. 16
      Core/Src/main.c
  2. 60070
      Debug/stm32f746g-disco.hex

16
Core/Src/main.c

@ -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
@ -83,7 +85,12 @@ 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 */

60070
Debug/stm32f746g-disco.hex

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save