fix missing includes
This commit is contained in:
parent
2956431e67
commit
6dc3361d06
@ -23,5 +23,6 @@
|
|||||||
#include "boot.h"
|
#include "boot.h"
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
#include "antenna.h"
|
#include "antenna.h"
|
||||||
|
#include "button.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -100,6 +100,5 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern PayloadConvert payload;
|
extern PayloadConvert payload;
|
||||||
extern int8_t batt_level;
|
|
||||||
|
|
||||||
#endif // _PAYLOAD_H_
|
#endif // _PAYLOAD_H_
|
||||||
|
@ -53,11 +53,13 @@ typedef uint8_t (*mapFn_t)(uint16_t, uint16_t, uint16_t);
|
|||||||
uint16_t read_voltage(void);
|
uint16_t read_voltage(void);
|
||||||
void calibrate_voltage(void);
|
void calibrate_voltage(void);
|
||||||
bool batt_sufficient(void);
|
bool batt_sufficient(void);
|
||||||
|
extern int8_t batt_level;
|
||||||
|
|
||||||
#ifdef HAS_PMU
|
#ifdef HAS_PMU
|
||||||
#include <XPowersLib.h>
|
#include <XPowersLib.h>
|
||||||
extern XPowersPMU pmu;
|
extern XPowersPMU pmu;
|
||||||
enum pmu_power_t { pmu_power_on, pmu_power_off, pmu_power_sleep };
|
enum pmu_power_t { pmu_power_on, pmu_power_off, pmu_power_sleep };
|
||||||
|
void IRAM_ATTR PMUIRQ();
|
||||||
void AXP192_powerevent_IRQ(void);
|
void AXP192_powerevent_IRQ(void);
|
||||||
void AXP192_power(pmu_power_t powerlevel);
|
void AXP192_power(pmu_power_t powerlevel);
|
||||||
void AXP192_init(void);
|
void AXP192_init(void);
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include "timesync.h"
|
#include "timesync.h"
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
#include "antenna.h"
|
#include "antenna.h"
|
||||||
|
#include "payload.h"
|
||||||
|
|
||||||
// maximum number of elements in rcommand interpreter queue
|
// maximum number of elements in rcommand interpreter queue
|
||||||
#define RCMD_QUEUE_SIZE 5
|
#define RCMD_QUEUE_SIZE 5
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include "lorawan.h"
|
#include "lorawan.h"
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include "sdcard.h"
|
#include "sdcard.h"
|
||||||
|
#include "payload.h"
|
||||||
|
|
||||||
void SendPayload(uint8_t port);
|
void SendPayload(uint8_t port);
|
||||||
void sendData(void);
|
void sendData(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user