Skip to content

Commit 0e77669

Browse files
committed
Fix C interface not compiling due to optional TLS.
Cleanup examples more.
1 parent 1f28b23 commit 0e77669

19 files changed

Lines changed: 18 additions & 18 deletions

File tree

build/example/blinky/example.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk.h>
1211
#include <sync/stk_sync_eventflags.h>
1312
#include "example.h"
@@ -52,7 +51,7 @@ class MyTask : public stk::Task<TASK_STACK_SIZE, _AccessMode>
5251
void Run() override
5352
{
5453
// we switch LEDs with 1s period
55-
const stk::Timeout period = stk::GetTicksFromMs(1000);
54+
const stk::Ticks period = stk::GetTicksFromMs(1000);
5655

5756
// get a start of the timeline
5857
g_Timeline = stk::GetTicks();

build/example/blinky_c/example.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk_c.h>
1211
#include <stk_c_time.h>
1312
#include <stk_c_memory.h>

build/example/blinky_fp/example.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk.h>
1211
#include "example.h"
1312

build/example/blinky_mc/example.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk.h>
1211
#include "example.h"
1312

build/example/blinky_swrr/example.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk.h>
1211
#include "example.h"
1312

build/example/critical_section/example.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk.h>
1211
#include "example.h"
1312
#ifdef _WIN32

build/example/hrt/example.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk.h>
1211
#include <time/stk_time.h>
1312
#include "example.h"

build/example/once/example.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk.h>
1211
#include "example.h"
1312

build/example/project/msvc/tls/stk_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212

1313
#define _STK_ARCH_X86_WIN32
1414

15+
// Use TLS.
16+
#define STK_TLS (1)
17+
1518
#endif /* STK_CONFIG_H_ */

build/example/secure_task/example.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* License: MIT License, see LICENSE for a full text.
88
*/
99

10-
#include <stk_config.h>
1110
#include <stk.h>
1211
#include "example.h"
1312

0 commit comments

Comments
 (0)