Power: bq25896 and bq27220 drivers, portable power api. (#224)
* Power: add portability layer, port to F3. * F3: bq25896 driver stab * GUI: new primary and secondary fonts * F3: bq25896 register map, basic functions * F3: move bq27220 command descritpion to separate file. Code format. * Power: OTG enable/disable * Power: choose more correct profile * F3: pet bq25896 watchdog sometimes
This commit is contained in:
18
firmware/targets/f3/Inc/bq25896.h
Normal file
18
firmware/targets/f3/Inc/bq25896.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
/* Initialize Driver */
|
||||
void bq25896_init();
|
||||
|
||||
/* Send device into shipping mode */
|
||||
void bq25896_poweroff();
|
||||
|
||||
/* Is currently charging */
|
||||
bool bq25896_is_charging();
|
||||
|
||||
/* Enable otg */
|
||||
void bq25896_enable_otg();
|
||||
|
||||
/* Disable otg */
|
||||
void bq25896_disable_otg();
|
Reference in New Issue
Block a user