- dcdc_port_t renamed to power_port_t for future use in PWM charge controllers - structs.h split into battery.h, log.h and charger.h - bat_charger.cpp/h split into battery.cpp/h and charger.cpp/h
18 lines
363 B
C
18 lines
363 B
C
|
|
|
|
#ifndef __HARDWARE_H_
|
|
#define __HARDWARE_H_
|
|
|
|
void init_load();
|
|
void hw_load_switch(bool enabled);
|
|
void hw_usb_out(bool enabled);
|
|
|
|
void init_watchdog(float timeout); // timeout in seconds
|
|
void feed_the_dog();
|
|
|
|
void control_timer_start(int freq_Hz);
|
|
void system_control(); // is implemented in main.cpp
|
|
|
|
void start_dfu_bootloader();
|
|
|
|
#endif /* HARDWARE_H */ |