diff --git a/CMakePresets.json b/CMakePresets.json index 201a630..8f47664 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -39,17 +39,16 @@ } }, { - "name": "robot", - "inherits": "Spool-end", + "name": "Spool_old", + "generator": "Ninja", + "toolchainFile": "${sourceDir}/gcc-arm-none-eabi.cmake", + "inherits": "default-release", "cacheVariables": { - "BUILD_RBCORE": "ON", - "BUILD_OPTIONAL": "ON", - "IOC_100PIN": true, - "USE_LUA_ST": true, - "USE_LUA_ST_CAN": true, - "USE_TALNET": true, - "USE_LWIP": true, - "USE_FREERTOS": true + "CMAKE_BUILD_TYPE": "Debug", + "MY_BUILD_STATIC": "OFF", + "A_BUILD_MAIN_AS_STATIC_LIB": "ON", + "BUILD_COMMON": "OFF", + "BUILD_SPOOLOLD": "ON" } } ] diff --git a/Core/Src/main.c b/Core/Src/main.c index 39bcd4e..5b43ba9 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -27,7 +27,9 @@ /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ +#ifdef BUILD_COMMON #include "common.h" +#endif /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ @@ -105,18 +107,15 @@ int main(void) /* Infinite loop */ /* USER CODE BEGIN WHILE */ +#ifdef BUILD_COMMON RD_INIT(); void Myprint_Init(void); Myprint_Init(); +#endif SpoolendInit(); while (1) { - SpoolendTask(); - printf("Hello world\n"); - HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); - HAL_GPIO_TogglePin(LED2_GPIO_Port, LED2_Pin); - HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); - HAL_Delay(500); + SpoolendTask(); /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ diff --git a/robot b/robot index 04ae58a..a126caa 160000 --- a/robot +++ b/robot @@ -1 +1 @@ -Subproject commit 04ae58a2aae3cf19c263f25ea298fa6e81208078 +Subproject commit a126caa4e7d46c198dddc87f3de42f6bdb62870c