Skip to content

Commit 15133e5

Browse files
committed
Add support for src/app.ini as user side ini file.
Add support for newest hardware versions. Signed-off-by: Jean Alinei <jean.alinei@owntech.org>
1 parent 1a288df commit 15133e5

5 files changed

Lines changed: 803 additions & 28 deletions

File tree

platformio.ini

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,43 @@
1111
# The following selects the default environment that is used by VS Code "build" and "upload" buttons
1212
# Available environments:
1313
# - USB (default) -- Upload to the board using USB serial
14-
# - STLink -- Upload to the board using ST Link (requires an aditional ST Link; allows debug)
14+
# - STLink -- Upload to the board using ST Link (requires an additional ST Link; allows debug)
1515
default_envs = USB
1616

1717
# Do not edit or remove the following line
18-
extra_configs = owntech/pio_extra.ini
18+
extra_configs =
19+
owntech/pio_extra.ini
20+
src/app.ini
1921

2022
lib_dir = owntech/lib
2123
libdeps_dir = owntech/lib
2224

2325
# Do not edit or remove the following line
2426
[env]
2527

26-
# Defines board
27-
# Supported boards:
28-
# - spin (default)
29-
# - nucleo_g474re
30-
board = spin
28+
# |-----------------------------------------------------|
29+
# | Supported Board Options |
30+
# |-----------------------------------------------------|
31+
# | Board Name | Board Versions |
32+
# |-----------------|-----------------------------------|
33+
# | spin | 1_0_0, 1_1_0, 1_2_0 |
34+
# |-----------------------------------------------------|
35+
# | Supported Shield Options |
36+
# |-----------------------------------------------------|
37+
# | Shield Name | Shield Versions |
38+
# |-----------------|-----------------------------------|
39+
# | twist | 1_2_0, 1_3_0, 1_4_0, 1_4_1, 1_4_2 |
40+
# | ownverter | 0_9_0, 1_0_0, 1_1_0 |
41+
# |-----------------------------------------------------|
3142

32-
# Defines board version
33-
# Supported version:
34-
# - 1_0_0
35-
# - 1_1_0
43+
# Selected Board and Version
44+
board = spin
3645
board_version = 1_2_0
3746

38-
# Defines shield
39-
# Supported shields:
40-
# - twist
41-
# - ownverter
47+
# Selected Shield Name and Version
4248
board_shield = twist
43-
44-
# Defines shield version
45-
# Refers to shield silkscreen to set shield version.
46-
# Supported version twist:
47-
# - 1_2_0
48-
# - 1_3_0
49-
# - 1_4_0
50-
# - 1_4_1
51-
# Supported version ownverter:
52-
# - 0_9_0
53-
# - 1_0_0
54-
board_shield_version = 1_4_1
49+
board_shield_version = 1_4_2
50+
# To remove the shield entirely, comment out both `board_shield` and `board_shield_version` lines.
5551

5652
# Compiler settings
5753
build_flags =
@@ -66,7 +62,7 @@ monitor_speed = 115200
6662
# board_id = 0123456789ABCDEF
6763

6864
# PlatformIO libraries: uncomment a line to enable an OwnTech Power API Library,
69-
# or add the name of a PlatformIO libray to enable it.
65+
# or add the name of a PlatformIO library to enable it.
7066
# One library per line, 4 spaces at the beginning of the line.
7167
lib_deps=
7268
control_library = https://github.com/owntech-foundation/control_library.git
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONFIG_OWNTECH_NGND_DRIVER=n
2+
CONFIG_OWNTECH_UART_API=n
3+
4+
CONFIG_USB_DEVICE_MANUFACTURER="OwnTech Technologies"
5+
CONFIG_USB_DEVICE_PRODUCT="OWNVERTER_V1_1_0"

0 commit comments

Comments
 (0)