Skip to content

Commit 31fb8cd

Browse files
author
Mika Leppänen
committed
Moved counter config to config.h
1 parent cf18063 commit 31fb8cd

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

source/6LoWPAN/ws/ws_config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,11 @@ extern int8_t DEVICE_MIN_SENS;
120120
#define WS_BLACKLIST_PURGE_NBR 3
121121
#define WS_BLACKLIST_PURGE_TIMER_TIMEOUT 60
122122

123+
/*
124+
* MAC frame counter NVM storing configuration
125+
*/
126+
#define FRAME_COUNTER_STORE_INTERVAL 60 // Time interval (on seconds) between frame counter store operations
127+
#define FRAME_COUNTER_INCREMENT 1000 // How much frame counter is incremented on start up
128+
#define FRAME_COUNTER_STORE_THRESHOLD 800 // How much frame counter must increment before it is stored
123129

124130
#endif /* WS_CONFIG_H_ */

source/6LoWPAN/ws/ws_pae_controller.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@
3939

4040
#define TRACE_GROUP "wspc"
4141

42-
// Time interval (on seconds) between frame counter store operations
43-
#define FRAME_COUNTER_STORE_INTERVAL 60
44-
// How much frame counter is incremented on start up
45-
#define FRAME_COUNTER_INCREMENT 1000
46-
// How much frame counter must increment before it is stored
47-
#define FRAME_COUNTER_STORE_THRESHOLD 800
48-
4942
typedef int8_t ws_pae_delete(protocol_interface_info_entry_t *interface_ptr);
5043
typedef void ws_pae_timer(uint16_t ticks);
5144
typedef int8_t ws_pae_br_addr_write(protocol_interface_info_entry_t *interface_ptr, const uint8_t *eui_64);

0 commit comments

Comments
 (0)