auto-sync
This commit is contained in:
parent
7ea8aa98e0
commit
4f0fc9ffd5
|
@ -31,8 +31,8 @@ OutputPin::OutputPin() {
|
|||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||
port = NULL;
|
||||
pin = 0;
|
||||
currentLogicValue = INITIAL_PIN_STATE;
|
||||
#endif
|
||||
currentLogicValue = INITIAL_PIN_STATE;
|
||||
}
|
||||
|
||||
bool OutputPin::isInitialized() {
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#include "main.h"
|
||||
#include "io_pins.h"
|
||||
|
||||
#define INITIAL_PIN_STATE -1
|
||||
|
||||
// mode >= 0 is always true since that's an unsigned
|
||||
#define assertOMode(mode) { \
|
||||
efiAssertVoid(mode <= OM_OPENDRAIN_INVERTED, "invalid pin_output_mode_e"); \
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
#include "efiGpio.h"
|
||||
|
||||
#define INITIAL_PIN_STATE -1
|
||||
|
||||
void initOutputPin(const char *msg, OutputPin *outputPin, ioportid_t port, uint32_t pinNumber);
|
||||
void initOutputPinExt(const char *msg, OutputPin *outputPin, ioportid_t port, uint32_t pinNumber, iomode_t mode);
|
||||
|
||||
|
|
|
@ -262,8 +262,6 @@ void chDbgStackOverflowPanic(Thread *otp) {
|
|||
chDbgPanic3(panicMessage, __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
extern engine_pins_s enginePins;
|
||||
|
||||
// todo: why is this method here and not in error_handling.cpp ?
|
||||
void firmwareError(const char *errorMsg, ...) {
|
||||
if (hasFirmwareErrorFlag)
|
||||
|
|
Loading…
Reference in New Issue