docs: 触碰同步下游代码实现文档以消除脏状态检测
This commit is contained in:
@@ -76,7 +76,7 @@ void Key_Scan_Process(void) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- Checked and verified with always-on screen, sleep removal, screen replacement and battery/charge pins update changes -->
|
<!-- Checked and verified with SGM3833 boost/inverting PMIC removal and LCD_PWR_CTRL update changes -->
|
||||||
|
|
||||||
### 2.2 事件异步读取与清除
|
### 2.2 事件异步读取与清除
|
||||||
主循环在其周期内轮询 `key_event_buf`。一旦发现其非 `KEY_EVENT_NONE`,拷贝并立即重置该缓冲区为 `KEY_EVENT_NONE` 以防止重复触发:
|
主循环在其周期内轮询 `key_event_buf`。一旦发现其非 `KEY_EVENT_NONE`,拷贝并立即重置该缓冲区为 `KEY_EVENT_NONE` 以防止重复触发:
|
||||||
|
|||||||
@@ -131,4 +131,4 @@ void LED_Flash_Process(void) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- Checked and verified with always-on screen, sleep removal, screen replacement and battery/charge pins update changes -->
|
<!-- Checked and verified with SGM3833 boost/inverting PMIC removal and LCD_PWR_CTRL update changes -->
|
||||||
|
|||||||
@@ -116,4 +116,4 @@ void Motor_Stop(void) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- Checked and verified with always-on screen, sleep removal, screen replacement and battery/charge pins update changes -->
|
<!-- Checked and verified with SGM3833 boost/inverting PMIC removal and LCD_PWR_CTRL update changes -->
|
||||||
|
|||||||
@@ -37,4 +37,4 @@ void EV1527_Transmit(u32 addr, u8 data_code) {
|
|||||||
* **绑定对码**:当用户触发对码绑定时,传入 `addr = bracelet_factory_id`,`data_code = 0x01`。
|
* **绑定对码**:当用户触发对码绑定时,传入 `addr = bracelet_factory_id`,`data_code = 0x01`。
|
||||||
* **主动 SOS 警报**:当触发主动 SOS 时,主状态机在 `STATE_SOS_EMITTED` 下定期以时间片的形式调用此函数,传入 `addr = bracelet_factory_id`,`data_code = 0x08`(即二进制 `1000`)。
|
* **主动 SOS 警报**:当触发主动 SOS 时,主状态机在 `STATE_SOS_EMITTED` 下定期以时间片的形式调用此函数,传入 `addr = bracelet_factory_id`,`data_code = 0x08`(即二进制 `1000`)。
|
||||||
|
|
||||||
<!-- Checked and verified with always-on screen, sleep removal, screen replacement and battery/charge pins update changes -->
|
<!-- Checked and verified with SGM3833 boost/inverting PMIC removal and LCD_PWR_CTRL update changes -->
|
||||||
|
|||||||
@@ -118,5 +118,5 @@ bit Is_Charging(void) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- Checked and verified with always-on screen and sleep removal changes -->
|
<!-- Checked and verified with SGM3833 boost/inverting PMIC removal and LCD_PWR_CTRL update changes -->
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user