more feature

This commit is contained in:
sharandac
2020-07-09 16:43:48 +02:00
parent dbe29b31b1
commit 8ac776e670
49 changed files with 1638 additions and 442 deletions

19
src/hardware/pmu.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef _PMU_H
#define _PMU_H
#define PMU_EVENT_AXP_INT _BV(0)
/*
* @brief setup pmu: axp202
*
* @param ttgo pointer to an TTGOClass
*/
void pmu_setup( TTGOClass *ttgo );
/*
* @brief pmu loop routine, call from powermgm. not for user use
*
* @param ttgo pointer to an TTGOClass
*/
void pmu_loop( TTGOClass *ttgo );
#endif // _PMU_H