File tree Expand file tree Collapse file tree 8 files changed +38
-8
lines changed
libraries/tests/rtos/mbed Expand file tree Collapse file tree 8 files changed +38
-8
lines changed Original file line number Diff line number Diff line change 13
13
#define STACK_SIZE DEFAULT_STACK_SIZE/2
14
14
#elif (defined(TARGET_STM32F030R8)) && defined(TOOLCHAIN_IAR)
15
15
#define STACK_SIZE DEFAULT_STACK_SIZE/2
16
+ #elif defined(TARGET_MCU_NRF51822)
17
+ #define STACK_SIZE 512
16
18
#else
17
19
#define STACK_SIZE DEFAULT_STACK_SIZE
18
20
#endif
@@ -34,6 +36,8 @@ void led2_thread(void const *argument) {
34
36
}
35
37
36
38
int main () {
39
+ setbuf (stdout, NULL );
40
+
37
41
MBED_HOSTTEST_TIMEOUT (15 );
38
42
MBED_HOSTTEST_SELECT (wait_us_auto);
39
43
MBED_HOSTTEST_DESCRIPTION (Basic thread);
Original file line number Diff line number Diff line change 16
16
#define STACK_SIZE DEFAULT_STACK_SIZE/4
17
17
#elif (defined(TARGET_STM32F030R8)) && defined(TOOLCHAIN_IAR)
18
18
#define STACK_SIZE DEFAULT_STACK_SIZE/2
19
+ #elif defined(TARGET_MCU_NRF51822)
20
+ #define STACK_SIZE 512
19
21
#else
20
22
#define STACK_SIZE DEFAULT_STACK_SIZE
21
23
#endif
@@ -38,6 +40,8 @@ void queue_thread(void const *argument) {
38
40
}
39
41
40
42
int main (void ) {
43
+ setbuf (stdout, NULL );
44
+
41
45
MBED_HOSTTEST_TIMEOUT (20 );
42
46
MBED_HOSTTEST_SELECT (default_auto);
43
47
MBED_HOSTTEST_DESCRIPTION (ISR (Queue));
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ typedef struct {
24
24
#define STACK_SIZE DEFAULT_STACK_SIZE/2
25
25
#elif (defined(TARGET_STM32F030R8)) && defined(TOOLCHAIN_IAR)
26
26
#define STACK_SIZE DEFAULT_STACK_SIZE/2
27
+ #elif defined(TARGET_MCU_NRF51822)
28
+ #define STACK_SIZE 512
27
29
#else
28
30
#define STACK_SIZE DEFAULT_STACK_SIZE
29
31
#endif
@@ -44,6 +46,8 @@ void send_thread (void const *argument) {
44
46
}
45
47
46
48
int main (void ) {
49
+ setbuf (stdout, NULL );
50
+
47
51
MBED_HOSTTEST_TIMEOUT (20 );
48
52
MBED_HOSTTEST_SELECT (default_auto);
49
53
MBED_HOSTTEST_DESCRIPTION (Mail messaging);
Original file line number Diff line number Diff line change 17
17
#elif defined(TARGET_STM32F334R8) && defined(TOOLCHAIN_IAR)
18
18
#define STACK_SIZE DEFAULT_STACK_SIZE/4
19
19
#elif defined(TARGET_STM32F030R8) && defined(TOOLCHAIN_IAR)
20
- #define STACK_SIZE DEFAULT_STACK_SIZE/4
20
+ #define STACK_SIZE DEFAULT_STACK_SIZE/4
21
21
#elif defined(TARGET_STM32F070RB) && defined(TOOLCHAIN_IAR)
22
- #define STACK_SIZE DEFAULT_STACK_SIZE/2
22
+ #define STACK_SIZE DEFAULT_STACK_SIZE/2
23
23
#elif defined(TARGET_STM32F072RB) && defined(TOOLCHAIN_IAR)
24
- #define STACK_SIZE DEFAULT_STACK_SIZE/2
24
+ #define STACK_SIZE DEFAULT_STACK_SIZE/2
25
25
#elif defined(TARGET_STM32F302R8) && defined(TOOLCHAIN_IAR)
26
- #define STACK_SIZE DEFAULT_STACK_SIZE/2
26
+ #define STACK_SIZE DEFAULT_STACK_SIZE/2
27
27
#elif defined(TARGET_STM32F303K8) && defined(TOOLCHAIN_IAR)
28
28
#define STACK_SIZE DEFAULT_STACK_SIZE/2
29
+ #elif defined(TARGET_MCU_NRF51822)
30
+ #define STACK_SIZE 512
29
31
#else
30
32
#define STACK_SIZE DEFAULT_STACK_SIZE
31
33
#endif
@@ -73,6 +75,8 @@ void test_thread(void const *args) {
73
75
}
74
76
75
77
int main () {
78
+ setbuf (stdout, NULL );
79
+
76
80
MBED_HOSTTEST_TIMEOUT (20 );
77
81
MBED_HOSTTEST_SELECT (default );
78
82
MBED_HOSTTEST_DESCRIPTION (Mutex resource lock);
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ typedef struct {
24
24
#define STACK_SIZE DEFAULT_STACK_SIZE/4
25
25
#elif (defined(TARGET_STM32F030R8)) && defined(TOOLCHAIN_IAR)
26
26
#define STACK_SIZE DEFAULT_STACK_SIZE/2
27
+ #elif defined(TARGET_MCU_NRF51822)
28
+ #define STACK_SIZE 512
27
29
#else
28
30
#define STACK_SIZE DEFAULT_STACK_SIZE
29
31
#endif
@@ -46,6 +48,8 @@ void send_thread (void const *argument) {
46
48
}
47
49
48
50
int main (void ) {
51
+ setbuf (stdout, NULL );
52
+
49
53
MBED_HOSTTEST_TIMEOUT (20 );
50
54
MBED_HOSTTEST_SELECT (default_auto);
51
55
MBED_HOSTTEST_DESCRIPTION (Queue messaging);
Original file line number Diff line number Diff line change 20
20
#elif defined(TARGET_STM32F103RB) && defined(TOOLCHAIN_IAR)
21
21
#define STACK_SIZE DEFAULT_STACK_SIZE/4
22
22
#elif defined(TARGET_STM32F030R8) && defined(TOOLCHAIN_IAR)
23
- #define STACK_SIZE DEFAULT_STACK_SIZE/4
23
+ #define STACK_SIZE DEFAULT_STACK_SIZE/4
24
24
#elif defined(TARGET_STM32F070RB) && defined(TOOLCHAIN_IAR)
25
- #define STACK_SIZE DEFAULT_STACK_SIZE/2
25
+ #define STACK_SIZE DEFAULT_STACK_SIZE/2
26
26
#elif defined(TARGET_STM32F072RB) && defined(TOOLCHAIN_IAR)
27
- #define STACK_SIZE DEFAULT_STACK_SIZE/2
27
+ #define STACK_SIZE DEFAULT_STACK_SIZE/2
28
28
#elif defined(TARGET_STM32F302R8) && defined(TOOLCHAIN_IAR)
29
- #define STACK_SIZE DEFAULT_STACK_SIZE/2
29
+ #define STACK_SIZE DEFAULT_STACK_SIZE/2
30
30
#elif defined(TARGET_STM32F303K8) && defined(TOOLCHAIN_IAR)
31
31
#define STACK_SIZE DEFAULT_STACK_SIZE/4
32
+ #elif defined(TARGET_MCU_NRF51822)
33
+ #define STACK_SIZE 512
32
34
#else
33
35
#define STACK_SIZE DEFAULT_STACK_SIZE
34
36
#endif
@@ -64,6 +66,8 @@ void test_thread(void const *delay) {
64
66
}
65
67
66
68
int main (void ) {
69
+ setbuf (stdout, NULL );
70
+
67
71
MBED_HOSTTEST_TIMEOUT (20 );
68
72
MBED_HOSTTEST_SELECT (default_auto);
69
73
MBED_HOSTTEST_DESCRIPTION (Semaphore resource lock);
Original file line number Diff line number Diff line change 15
15
#define STACK_SIZE DEFAULT_STACK_SIZE/4
16
16
#elif (defined(TARGET_STM32F030R8)) && defined(TOOLCHAIN_IAR)
17
17
#define STACK_SIZE DEFAULT_STACK_SIZE/2
18
+ #elif defined(TARGET_MCU_NRF51822)
19
+ #define STACK_SIZE 512
18
20
#else
19
21
#define STACK_SIZE DEFAULT_STACK_SIZE
20
22
#endif
@@ -32,6 +34,8 @@ void led_thread(void const *argument) {
32
34
}
33
35
34
36
int main (void ) {
37
+ setbuf (stdout, NULL );
38
+
35
39
MBED_HOSTTEST_TIMEOUT (20 );
36
40
MBED_HOSTTEST_SELECT (default_auto);
37
41
MBED_HOSTTEST_DESCRIPTION (Signals messaging);
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ void blink(void const *n) {
23
23
}
24
24
25
25
int main (void ) {
26
+ setbuf (stdout, NULL );
27
+
26
28
MBED_HOSTTEST_TIMEOUT (15 );
27
29
MBED_HOSTTEST_SELECT (wait_us_auto);
28
30
MBED_HOSTTEST_DESCRIPTION (Timer);
You can’t perform that action at this time.
0 commit comments