Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default values for pin mappings if not provided #275

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions src/PinMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,46 @@
#define CMT_SDIO -1
#endif

#ifndef VICTRON_PIN_TX
#define VICTRON_PIN_TX -1
#endif

#ifndef VICTRON_PIN_RX
#define VICTRON_PIN_RX -1
#endif

#ifndef PYLONTECH_PIN_RX
#define PYLONTECH_PIN_RX -1
#endif

#ifndef PYLONTECH_PIN_TX
#define PYLONTECH_PIN_TX -1
#endif

#ifndef HUAWEI_PIN_MISO
#define HUAWEI_PIN_MISO -1
#endif

#ifndef HUAWEI_PIN_MOSI
#define HUAWEI_PIN_MOSI -1
#endif

#ifndef HUAWEI_PIN_SCLK
#define HUAWEI_PIN_SCLK -1
#endif

#ifndef HUAWEI_PIN_CS
#define HUAWEI_PIN_CS -1
#endif

#ifndef HUAWEI_PIN_IRQ
#define HUAWEI_PIN_IRQ -1
#endif

#ifndef HUAWEI_PIN_POWER
#define HUAWEI_PIN_POWER -1
#endif

PinMappingClass PinMapping;

PinMappingClass::PinMappingClass()
Expand Down