summaryrefslogtreecommitdiff
path: root/samples/legacy
diff options
context:
space:
mode:
authorAndrew Boie <andrew.p.boie@intel.com>2016-11-07 10:36:20 -0800
committerAndrew Boie <andrew.p.boie@intel.com>2016-11-07 11:34:18 -0800
commit252144f6e8178498b4992f750db61e6f926bb44a (patch)
tree4c2795916693eeddcf5bbd7b67ceb2bad0b0883f /samples/legacy
parente51c4c2989059358c2ce9ff788ba3cd0c6bb49e2 (diff)
samples: remove old kernel support
Change-Id: I89ab1e1926e2e8f07f8c8d5538a7587a605cb36b Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Diffstat (limited to 'samples/legacy')
-rw-r--r--samples/legacy/cpp_synchronization/microkernel/src/main.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/samples/legacy/cpp_synchronization/microkernel/src/main.cpp b/samples/legacy/cpp_synchronization/microkernel/src/main.cpp
index bb7870674..59e46323b 100644
--- a/samples/legacy/cpp_synchronization/microkernel/src/main.cpp
+++ b/samples/legacy/cpp_synchronization/microkernel/src/main.cpp
@@ -52,11 +52,7 @@ public:
*/
class task_semaphore: public semaphore {
protected:
-#ifdef CONFIG_KERNEL_V2
struct k_sem _sema_internal;
-#else
- struct _k_sem_struct _sema_internal;
-#endif
ksem_t sema;
public:
task_semaphore();
@@ -69,13 +65,8 @@ public:
/*
* @brief task_semaphore basic constructor
*/
-#ifdef CONFIG_KERNEL_V2
task_semaphore::task_semaphore():
_sema_internal(K_SEM_INITIALIZER(_sema_internal, 0, UINT32_MAX))
-#else
-task_semaphore::task_semaphore():
- _sema_internal(__K_SEMAPHORE_DEFAULT)
-#endif
{
printf("Create semaphore %p\n", this);
sema = (ksem_t)&_sema_internal;