6 * The stack size is defined in cmsis_os.h mainly dependent on the underlying toolchain and
7 * the C standard library. For GCC, ARM_STD and IAR it is defined with a size of 2048 bytes
8 * and for ARM_MICRO 512. Because of reduce RAM size some targets need a reduced stacksize.
10 #if defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8)
11 #define STACK_SIZE DEFAULT_STACK_SIZE/4
13 #define STACK_SIZE DEFAULT_STACK_SIZE
16 void print_char(char c = '*') {
21 DigitalOut led1(LED1);
22 DigitalOut led2(LED2);
24 void led2_thread(void const *argument) {
33 MBED_HOSTTEST_TIMEOUT(15);
34 MBED_HOSTTEST_SELECT(wait_us_auto);
35 MBED_HOSTTEST_DESCRIPTION(Basic thread);
36 MBED_HOSTTEST_START("RTOS_1");
38 Thread thread(led2_thread, NULL, osPriorityNormal, STACK_SIZE);