Skip to content

Commit 0a3f508

Browse files
committed
doc: enable UCPD dead battery behavior
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 03b45eb commit 0a3f508

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

_custom/Custom-definitions.md

+17
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Several definitions can be redefined by the end user by different ways:
1717
* [F_CPU](#f_cpu)
1818
* [Serial Rx/Tx buffer size](#serial-rxtx-buffer-size)
1919
* [systemclock_config](#systemclock_config)
20+
* [Enable UCPD dead battery behavior](#enable-ucpd-dead-battery-behavior)
2021

2122
## Change interrupt priority values
2223

@@ -261,3 +262,19 @@ extern "C" void SystemClock_Config() {
261262
// new clock config
262263
}
263264
```
265+
266+
## Enable UCPD dead battery behavior
267+
268+
> [!NOTE]
269+
> Available with STM32 core version higher than 2.9.0.
270+
271+
By default, UCPD dead battery behavior is disabled after reset.
272+
After user request to be able to not disable it, user can use this definition to
273+
not disable it:
274+
275+
`SKIP_DISABLING_UCPD_DEAD_BATTERY`
276+
277+
It can be defined thanks the `variant.h`, `build_opt.h` or `hal_conf_extra.h`
278+
279+
> [!WARNING]
280+
> Enable it is under user responsability.

0 commit comments

Comments
 (0)