Skip to content

Commit

Permalink
Clean thread_routing test stub (ARMmbed#1832)
Browse files Browse the repository at this point in the history
Remove unnecessary declarations from thread_routing_stub.c
  • Loading branch information
Arto Kinnunen authored Sep 25, 2018
1 parent 2b8a011 commit efd77f1
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions test/nanostack/unittest/stub/thread_routing_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
#include <ns_list.h>
#include <nsdynmemLIB.h>

#ifndef UINT_FAST4_MAX
typedef uint_fast8_t uint_fast4_t;
#define UINT_FAST4_MAX UINT_FAST8_MAX
#endif

#define THREAD_ROUTING_FN extern

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

#define TRACE_GROUP "trou"

/* MLE Route Data bit assignments (draft-kelsey-thread-routing-00) */
#define ROUTE_DATA_OUT_MASK 0xC0
#define ROUTE_DATA_OUT_SHIFT 6
#define ROUTE_DATA_IN_MASK 0x30
#define ROUTE_DATA_IN_SHIFT 4
#define ROUTE_DATA_COST_MASK 0x0F

#define MAX_ROUTE_COST 0x0F

typedef uint_fast4_t thread_route_cost_t;
#define THREAD_COST_INFINITE 0

#define MAX_LINK_AGE 100*10 /* 100 seconds */

#define LINK_AGE_STATIC 0xFFFF /* Magic number to indicate "never expire" */


bool router_id_sequence_is_greater(const thread_routing_info_t *routing, uint8_t seq)
{
return false;
}

#define LINK_QUALITY_HYSTERESIS (1 << THREAD_LINK_MARGIN_SCALING) /* 1dB */

bool thread_i_am_router(const protocol_interface_info_entry_t *cur)
{
return false;
Expand Down

0 comments on commit efd77f1

Please sign in to comment.