Skip to content

Commit

Permalink
Support for OVMS hardware v3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
markwj committed Jan 10, 2018
1 parent 7172661 commit 9504df7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vehicle/OVMS.V3/main/Kconfig
Expand Up @@ -16,12 +16,18 @@ choice OVMS_HW_MODEL
default OVMS_HW_BASE_3_0
depends on OVMS
help
OVMS_HW_BASE_3_0 OVMS base hardware v3.0
OVMS_HW_BASE_3_0 OVMS base (early developer) hardware v3.0
OVMS_HW_BASE_3_1 OVMS base production hardware v3.1

config OVMS_HW_BASE_3_0
bool "OVMS base hardware v3.0"
help
Select this: OVMS base hardware v3.0
Select this: OVMS base (early developer) hardware v3.0

config OVMS_HW_BASE_3_1
bool "OVMS base hardware v3.1"
help
Select this: OVMS base production hardware v3.1

endchoice # OVMS_HW_MODEL

Expand Down
7 changes: 7 additions & 0 deletions vehicle/OVMS.V3/main/ovms_peripherals.h
Expand Up @@ -88,10 +88,17 @@
#define MAX7317_EGPIO_7 8
#define MAX7317_EGPIO_8 9

#ifdef CONFIG_OVMS_HW_BASE_3_0
#define MODEM_GPIO_RX 16
#define MODEM_GPIO_TX 17
#define MODEM_PIN_RX 27
#define MODEM_PIN_TX 28
#else // #ifdef CONFIG_OVMS_HW_BASE_3_0
#define MODEM_GPIO_RX 4
#define MODEM_GPIO_TX 13
#define MODEM_PIN_RX 26
#define MODEM_PIN_TX 16
#endif // #ifdef CONFIG_OVMS_HW_BASE_3_0
#define MODEM_EGPIO_PWR 0
#define MODEM_EGPIO_DTR 3

Expand Down

0 comments on commit 9504df7

Please sign in to comment.