auto-sync

This commit is contained in:
rusEfi 2016-07-23 19:03:19 -04:00
parent 7ea8aa98e0
commit 4f0fc9ffd5
4 changed files with 3 additions and 5 deletions

View File

@ -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() {

View File

@ -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"); \

View File

@ -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);

View File

@ -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)