Skip to content

Commit efd77f1

Browse files
author
Arto Kinnunen
authored
Clean thread_routing test stub (ARMmbed#1832)
Remove unnecessary declarations from thread_routing_stub.c
1 parent 2b8a011 commit efd77f1

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

test/nanostack/unittest/stub/thread_routing_stub.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
#include <ns_list.h>
2222
#include <nsdynmemLIB.h>
2323

24-
#ifndef UINT_FAST4_MAX
25-
typedef uint_fast8_t uint_fast4_t;
26-
#define UINT_FAST4_MAX UINT_FAST8_MAX
27-
#endif
28-
2924
#define THREAD_ROUTING_FN extern
3025

3126
#include <net_thread_test.h>
@@ -40,30 +35,11 @@ typedef uint_fast8_t uint_fast4_t;
4035

4136
#define TRACE_GROUP "trou"
4237

43-
/* MLE Route Data bit assignments (draft-kelsey-thread-routing-00) */
44-
#define ROUTE_DATA_OUT_MASK 0xC0
45-
#define ROUTE_DATA_OUT_SHIFT 6
46-
#define ROUTE_DATA_IN_MASK 0x30
47-
#define ROUTE_DATA_IN_SHIFT 4
48-
#define ROUTE_DATA_COST_MASK 0x0F
49-
50-
#define MAX_ROUTE_COST 0x0F
51-
52-
typedef uint_fast4_t thread_route_cost_t;
53-
#define THREAD_COST_INFINITE 0
54-
55-
#define MAX_LINK_AGE 100*10 /* 100 seconds */
56-
57-
#define LINK_AGE_STATIC 0xFFFF /* Magic number to indicate "never expire" */
58-
59-
6038
bool router_id_sequence_is_greater(const thread_routing_info_t *routing, uint8_t seq)
6139
{
6240
return false;
6341
}
6442

65-
#define LINK_QUALITY_HYSTERESIS (1 << THREAD_LINK_MARGIN_SCALING) /* 1dB */
66-
6743
bool thread_i_am_router(const protocol_interface_info_entry_t *cur)
6844
{
6945
return false;

0 commit comments

Comments
 (0)