Enable load short circuit comparator

The load driver had to be moved to a .c file to allow attaching interrupt
in Zephyr.
This commit is contained in:
Martin Jäger
2020-05-06 12:53:26 +02:00
parent 9f258b6e69
commit e76709f2af
5 changed files with 57 additions and 35 deletions
+14
View File
@@ -17,6 +17,8 @@
#include <stdbool.h>
#include <time.h>
#ifdef __cplusplus
#include "power_port.h"
/**
@@ -166,6 +168,12 @@ private:
*/
int ov_debounce_counter = 0;
};
#endif
#ifdef __cplusplus
extern "C" {
#endif
void load_out_init();
void usb_out_init();
@@ -173,4 +181,10 @@ void usb_out_init();
void load_out_set(bool);
void usb_out_set(bool);
void load_short_circuit_stop();
#ifdef __cplusplus
}
#endif
#endif /* LOAD_H */