forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
320 additions
and
200 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
15 changes: 15 additions & 0 deletions
15
keyboards/yandrstudio/biu_nrf52_ble_lib/tmk_core/protocol/chibios/biu_ble_doc.md
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
定时器: | ||
state.last_reset_update // 重启nrf模块计数器,每次重启一次开始计时,重启间隔为BiuNrf52ResetTimeout,默认30秒。模块开始工作后停止计时和重启 | ||
state.last_battery_update // 电池电压更新计时器,间隔BatteryUpdateInterval更新一次。 | ||
state.last_connection_update // 连接更新计时器,每次发送成功到nrf的包更新一次,(发送电池信息不更新 | ||
) | ||
state.last_system_off_update // nrf休眠计时器,在非连接状态时进行计数,即用户进行配对且配对失败的情况下超时休眠 | ||
|
||
state.keep_connection_update // 用来保持连接的计时器,定时更新nrf的状态 | ||
|
||
休眠逻辑: | ||
1:如果是连接状态,判断last_connection_update是否超时(超时间隔BiuNrf52SystemOffTimeout),即一段时间内没有按键 | ||
2:非连接状态,判断last_system_off_update是否超时(超时间隔BiuNrf52SystemOffTimeoutFast),即一段时间内没有连接,或者意外断开连接后一段时间 | ||
|
||
唤醒逻辑: | ||
|
Oops, something went wrong.