mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
[UCPD] Enable dead-battery support in example
This commit is contained in:
parent
57ca072dc3
commit
7b80de5e3d
@ -49,8 +49,9 @@ async fn wait_attached<T: ucpd::Instance>(cc_phy: &mut CcPhy<'_, T>) -> CableOri
|
|||||||
|
|
||||||
#[embassy_executor::main]
|
#[embassy_executor::main]
|
||||||
async fn main(_spawner: Spawner) {
|
async fn main(_spawner: Spawner) {
|
||||||
// TODO: Disable DBCC pin functionality by default but have flag in the config to keep it enabled when required.
|
let mut config = Config::default();
|
||||||
let p = embassy_stm32::init(Config::default());
|
config.enable_ucpd1_dead_battery = true;
|
||||||
|
let p = embassy_stm32::init(config);
|
||||||
|
|
||||||
info!("Hello World!");
|
info!("Hello World!");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user