OLD | NEW |
1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include <stm32f7xx_hal.h> | 5 #include <stm32f7xx_hal.h> |
6 #include <stm32746g_discovery_sdram.h> | 6 #include <stm32746g_discovery_sdram.h> |
7 #include <cmsis_os.h> | 7 #include <cmsis_os.h> |
8 | 8 |
9 #include "src/shared/assert.h" | 9 #include "src/shared/assert.h" |
10 | 10 |
11 #include "platforms/stm/disco_fletch/src/page_allocator.h" | 11 #include "platforms/stm/disco_dartino/src/page_allocator.h" |
12 #include "platforms/stm/disco_fletch/src/cmpctmalloc.h" | 12 #include "platforms/stm/disco_dartino/src/cmpctmalloc.h" |
13 #include "platforms/stm/disco_fletch/src/fletch_entry.h" | 13 #include "platforms/stm/disco_dartino/src/dartino_entry.h" |
14 | 14 |
15 // Definition of functions in generated/Src/mx_main.c. | 15 // Definition of functions in generated/Src/mx_main.c. |
16 extern "C" { | 16 extern "C" { |
17 void SystemClock_Config(void); | 17 void SystemClock_Config(void); |
18 void MX_GPIO_Init(void); | 18 void MX_GPIO_Init(void); |
19 void MX_DCMI_Init(void); | 19 void MX_DCMI_Init(void); |
20 void MX_DMA2D_Init(void); | 20 void MX_DMA2D_Init(void); |
21 void MX_FMC_Init(void); | 21 void MX_FMC_Init(void); |
22 void MX_ETH_Init(void); | 22 void MX_ETH_Init(void); |
23 void MX_I2C1_Init(void); | 23 void MX_I2C1_Init(void); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 MX_I2C1_Init(); | 124 MX_I2C1_Init(); |
125 MX_LTDC_Init(); | 125 MX_LTDC_Init(); |
126 MX_QUADSPI_Init(); | 126 MX_QUADSPI_Init(); |
127 MX_SDMMC1_SD_Init(); | 127 MX_SDMMC1_SD_Init(); |
128 MX_SPDIFRX_Init(); | 128 MX_SPDIFRX_Init(); |
129 MX_USART1_UART_Init(); | 129 MX_USART1_UART_Init(); |
130 | 130 |
131 // Initialize the SDRAM (including FMC). | 131 // Initialize the SDRAM (including FMC). |
132 BSP_SDRAM_Init(); | 132 BSP_SDRAM_Init(); |
133 | 133 |
134 osThreadDef(mainTask, FletchEntry, osPriorityNormal, 0, 4 * 1024); | 134 osThreadDef(mainTask, DartinoEntry, osPriorityNormal, 0, 4 * 1024); |
135 osThreadId mainTaskHandle = osThreadCreate(osThread(mainTask), NULL); | 135 osThreadId mainTaskHandle = osThreadCreate(osThread(mainTask), NULL); |
136 USE(mainTaskHandle); | 136 USE(mainTaskHandle); |
137 | 137 |
138 // Start the scheduler. | 138 // Start the scheduler. |
139 osKernelStart(); | 139 osKernelStart(); |
140 | 140 |
141 // We should never get as the scheduler should never terminate. | 141 // We should never get as the scheduler should never terminate. |
142 FATAL("Returned from scheduler"); | 142 FATAL("Returned from scheduler"); |
143 } | 143 } |
OLD | NEW |