Go to the documentation of this file. 21 #ifdef TARGET_LIKE_FREERTOS 23 #include "kubos-hal/uart.h" 25 #define K_TEST_MAIN() \ 26 static int __test_result = -1; \ 27 static int __test_main (void); \ 28 static void __test_task (void *p) { \ 29 __test_result = __test_main(); \ 32 static int __test_main (void) 34 #define K_TEST_RUN_MAIN() do { \ 35 k_uart_console_init(); \ 36 xTaskCreate(__test_task, "TESTS", configMINIMAL_STACK_SIZE * 4, NULL, 2, NULL); \ 37 vTaskStartScheduler(); \ 38 return __test_result; \ 41 #define K_TEST_MAIN() static int __test_main(void) 42 #define K_TEST_RUN_MAIN() return __test_main()