1
0
forked from me/IronOS

Move to basic DMA I2C | handle poll FUSB better

This commit is contained in:
Ben V. Brown
2020-09-25 18:50:41 +10:00
parent cd69dc1e4c
commit c9172f0f9b
9 changed files with 375 additions and 321 deletions

View File

@@ -293,7 +293,7 @@ enum fusb_typec_current fusb_get_typec_current();
/*
* Initialization routine for the FUSB302B
*/
void fusb_setup();
bool fusb_setup();
/*
* Reset the FUSB302B

View File

@@ -18,10 +18,11 @@
void fusb302_start_processing() {
/* Initialize the FUSB302B */
fusb_setup();
PolicyEngine::init();
ProtocolTransmit::init();
ProtocolReceive::init();
InterruptHandler::init();
if (fusb_setup()) {
PolicyEngine::init();
ProtocolTransmit::init();
ProtocolReceive::init();
InterruptHandler::init();
}
}
#endif