forked from GeorgeHahn-Lab651/sensei_mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send out clock signal immediately when new clock is received via serial
- Loading branch information
Showing
6 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
|
||
#include "mesh_control.h" | ||
#include "transport_control.h" | ||
|
||
static mesh_control_t m_config; | ||
|
||
void mesh_control_init() { | ||
m_config.wake_interval = DEFAULT_WAKE_INTERVAL; | ||
m_config.hb_tx_power = RBC_MESH_TXPOWER_Neg4dBm; | ||
m_config.enable_ble = 0; | ||
} | ||
|
||
uint16_t mesh_control_get_wake_interval() { | ||
return m_config.wake_interval; | ||
} | ||
|
||
uint8_t mesh_control_get_hb_tx_power() { | ||
return m_config.hb_tx_power; | ||
} | ||
|
||
void mesh_control_update_config(mesh_control_t *new_config) { | ||
m_config = *new_config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters