Skip to content

Commit 53cc28f

Browse files
author
Seppo Takalo
committed
Remove some references to YOTTA_CFG.
1 parent 9d8ec61 commit 53cc28f

File tree

5 files changed

+3
-63
lines changed

5 files changed

+3
-63
lines changed

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/AbstractMesh.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919

2020
#include "AbstractNetworkInterface.h"
2121
#include "mbed.h"
22-
#ifdef YOTTA_CFG
23-
#include "core-util/FunctionPointer.h"
24-
25-
using namespace mbed;
26-
using namespace mbed::util;
27-
#endif
2822

2923
/**
3024
* \brief Abstract Mesh networking interface.
@@ -38,11 +32,7 @@ class AbstractMesh : public AbstractNetworkInterface
3832
/**
3933
* Typedef for network callback
4034
*/
41-
#ifdef YOTTA_CFG
42-
typedef FunctionPointer1<void, mesh_connection_status_t> mesh_network_handler_t;
43-
#else
4435
typedef FunctionPointerArg1<void, mesh_connection_status_t> mesh_network_handler_t;
45-
#endif
4636

4737
/**
4838
* Constructor

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/mesh_system.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
#include "nsdynmemLIB.h"
2121
#include "randLIB.h"
2222
#include "platform/arm_hal_timer.h"
23-
#ifdef YOTTA_CFG
24-
#include "sal-iface-6lowpan/ns_sal.h"
25-
#else
2623
#include "ns_hal_init.h"
27-
#endif
2824
#include "include/static_config.h"
2925
#include "include/mesh_system.h"
3026
// For tracing we need to define flag, have include and define group
@@ -60,23 +56,11 @@ static void mesh_system_heap_error_handler(heap_fail_t event)
6056
void mesh_system_init(void)
6157
{
6258
if (mesh_initialized == false) {
63-
#ifndef YOTTA_CFG
6459
ns_hal_init(app_stack_heap, MBED_MESH_API_HEAP_SIZE,
6560
mesh_system_heap_error_handler, NULL);
6661
eventOS_scheduler_mutex_wait();
6762
net_init_core();
6863
eventOS_scheduler_mutex_release();
69-
#else
70-
ns_dyn_mem_init(app_stack_heap, MBED_MESH_API_HEAP_SIZE,
71-
mesh_system_heap_error_handler, NULL);
72-
randLIB_seed_random();
73-
platform_timer_enable();
74-
eventOS_scheduler_init();
75-
trace_init(); // trace system needs to be initialized right after eventOS_scheduler_init
76-
net_init_core();
77-
/* initialize 6LoWPAN socket adaptation layer */
78-
ns_sal_init_stack();
79-
#endif
8064
mesh_initialized = true;
8165
}
8266
}

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/nd_tasklet.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
#include "include/nd_tasklet.h"
2424
#include "include/static_config.h"
2525
#include "include/mesh_system.h"
26-
#ifndef YOTTA_CFG
2726
#include "ns_event_loop.h"
28-
#endif
27+
2928
// For tracing we need to define flag, have include and define group
3029
#define HAVE_DEBUG 1
3130
#include "ns_trace.h"
@@ -386,9 +385,7 @@ int8_t nd_tasklet_connect(mesh_interface_cb callback, int8_t nwk_interface_id)
386385
// -2 memory allocation failure
387386
return tasklet_data_ptr->tasklet;
388387
}
389-
#ifndef YOTTA_CFG
390388
ns_event_loop_thread_start();
391-
#endif
392389
} else {
393390
tasklet_data_ptr->tasklet = tasklet_id;
394391
mesh_system_send_connect_event(tasklet_data_ptr->tasklet);

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/thread_tasklet.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@
2525
#include "include/thread_tasklet.h"
2626
#include "include/static_config.h"
2727
#include "include/mesh_system.h"
28-
#ifndef YOTTA_CFG
2928
#include "ns_event_loop.h"
30-
#endif
29+
3130
// For tracing we need to define flag, have include and define group
3231
#define HAVE_DEBUG 1
3332
#include "ns_trace.h"
@@ -396,9 +395,7 @@ int8_t thread_tasklet_connect(mesh_interface_cb callback, int8_t nwk_interface_i
396395
// -2 memory allocation failure
397396
return thread_tasklet_data_ptr->tasklet;
398397
}
399-
#ifndef YOTTA_CFG
400398
ns_event_loop_thread_start();
401-
#endif
402399
} else {
403400
thread_tasklet_data_ptr->tasklet = tasklet;
404401
mesh_system_send_connect_event(thread_tasklet_data_ptr->tasklet);
@@ -449,7 +446,7 @@ int8_t thread_tasklet_network_init(int8_t device_id)
449446

450447
void thread_tasklet_device_config_set(uint8_t *eui64, char *pskd)
451448
{
452-
(void) pskd; // this parameter is delivered via yotta configuration
449+
(void) pskd; // this parameter is delivered via mbed configuration
453450
memcpy(device_configuration.eui64, eui64, 8);
454451
}
455452

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/to_be_ported.c

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)