Skip to content

Commit

Permalink
Moved counter config to config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Mika Leppänen committed Jun 4, 2019
1 parent cf18063 commit 31fb8cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 6 additions & 0 deletions source/6LoWPAN/ws/ws_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,11 @@ extern int8_t DEVICE_MIN_SENS;
#define WS_BLACKLIST_PURGE_NBR 3
#define WS_BLACKLIST_PURGE_TIMER_TIMEOUT 60

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

#endif /* WS_CONFIG_H_ */
7 changes: 0 additions & 7 deletions source/6LoWPAN/ws/ws_pae_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@

#define TRACE_GROUP "wspc"

// Time interval (on seconds) between frame counter store operations
#define FRAME_COUNTER_STORE_INTERVAL 60
// How much frame counter is incremented on start up
#define FRAME_COUNTER_INCREMENT 1000
// How much frame counter must increment before it is stored
#define FRAME_COUNTER_STORE_THRESHOLD 800

typedef int8_t ws_pae_delete(protocol_interface_info_entry_t *interface_ptr);
typedef void ws_pae_timer(uint16_t ticks);
typedef int8_t ws_pae_br_addr_write(protocol_interface_info_entry_t *interface_ptr, const uint8_t *eui_64);
Expand Down

0 comments on commit 31fb8cd

Please sign in to comment.