Skip to content

Commit 1a833dd

Browse files
committed
Merge branch 'master' into o-codes
2 parents c5f31b9 + f7b127b commit 1a833dd

File tree

12 files changed

+22
-29
lines changed

12 files changed

+22
-29
lines changed

.github/workflows/pio-build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Cache pip
22-
uses: actions/cache@v3
22+
uses: actions/cache@v4
2323
with:
2424
path: ~/.cache/pip
2525
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
2626
restore-keys: |
2727
${{ runner.os }}-pip-
2828
- name: Cache PlatformIO
29-
uses: actions/cache@v3
29+
uses: actions/cache@v4
3030
with:
3131
path: ~/.platformio
3232
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
@@ -43,7 +43,7 @@ jobs:
4343
- name: Zip binaries
4444
run: zip ${{matrix.boards}}.zip .pio/build/${{matrix.boards}}/firmware.*
4545
- name: Upload binaries
46-
uses: actions/upload-artifact@v3
46+
uses: actions/upload-artifact@v4
4747
with:
4848
name: ${{matrix.boards}}
4949
path: ./${{matrix.boards}}.zip

.github/workflows/pio-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v4
3535
- name: Cache pip
36-
uses: actions/cache@v3
36+
uses: actions/cache@v4
3737
with:
3838
path: ~/.cache/pip
3939
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
4040
restore-keys: |
4141
${{ runner.os }}-pip-
4242
- name: Cache PlatformIO
43-
uses: actions/cache@v3
43+
uses: actions/cache@v4
4444
with:
4545
path: ~/.platformio
4646
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
@@ -57,7 +57,7 @@ jobs:
5757
- name: Zip binaries
5858
run: zip ${{matrix.boards}}.zip .pio/build/${{matrix.boards}}/firmware.*
5959
- name: Upload binaries
60-
uses: actions/upload-artifact@v3
60+
uses: actions/upload-artifact@v4
6161
with:
6262
name: ${{matrix.boards}}
6363
path: ./${{matrix.boards}}.zip

.github/workflows/pio-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Cache pip
15-
uses: actions/cache@v3
15+
uses: actions/cache@v4
1616
with:
1717
path: ~/.cache/pip
1818
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
1919
restore-keys: |
2020
${{ runner.os }}-pip-
2121
- name: Cache PlatformIO
22-
uses: actions/cache@v3
22+
uses: actions/cache@v4
2323
with:
2424
path: ~/.platformio
2525
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

platformio.ini

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,17 @@ extra_configs =
2121
uCNC/src/hal/boards/esp32/esp32.ini
2222
uCNC/src/hal/boards/rp2040/rp2040.ini
2323
uCNC/src/hal/mcus/virtual/virtual.ini
24-
uCNC/webconfig.ini
2524

2625
[env]
2726
framework = arduino
2827
monitor_speed = 115200
2928
monitor_eol = LF
3029
monitor_echo = yes
3130
monitor_filters = colorize, time
32-
; board = ${webconfig.board}
3331
extra_scripts =
3432
pre:ucnc_modules.py
35-
custom_ucnc_modules_url = ${webconfig.custom_ucnc_modules_url}
36-
custom_ucnc_modules = ${webconfig.custom_ucnc_modules}
37-
build_flags =
38-
${webconfig.build_flags}
39-
; add your custom build flags
40-
lib_deps =
41-
${webconfig.lib_deps}
42-
; add you custom library dependencies
43-
44-
33+
;user config
34+
custom_ucnc_modules_url =
35+
custom_ucnc_modules =
36+
lib_deps =
37+
build_flags =

uCNC/src/hal/boards/avr/avr.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ build_flags = ${common_avr.build_flags} -D BOARD=\"src/hal/boards/avr/boardmap_m
7474

7575
[env:AVR-CUSTOM]
7676
extends = common_avr
77+
build_flags = ${common_avr.build_flags} -DMCU=MCU_CUSTOM
7778
board = ${env.board}

uCNC/src/hal/boards/esp32/esp32.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ build_flags = ${common_esp32.build_flags} -D BOARD=BOARDMAP_FILE("src/hal/boards
5050

5151
[env:ESP32-CUSTOM]
5252
extends = common_esp32
53+
build_flags = ${common_esp32.build_flags} -DMCU=MCU_CUSTOM
5354
board = ${env.board}
5455

5556
#################

uCNC/src/hal/boards/lpc176x/lpc176x.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ build_flags = ${common_lpc176x.build_flags} -D BOARD=\"src/hal/boards/lpc176x/bo
3030

3131
[env:LPC176X-CUSTOM]
3232
extends = common_lpc176x
33+
build_flags = ${common_lpc176x.build_flags} -DMCU=MCU_CUSTOM
3334
board = ${env.board}

uCNC/src/hal/boards/rp2040/rp2040.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ build_flags = -D BOARD=\"src/hal/boards/rp2040/boardmap_rpi_pico_w.h\" -D ENABLE
6262

6363
[env:RP2040-CUSTOM]
6464
extends = common_rp2040
65+
build_flags = ${common_rp2040.build_flags} -DMCU=MCU_CUSTOM
6566
board = ${env.board}

uCNC/src/hal/boards/samd21/samd21.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ board_upload.offset_address = 0x00004000
3535

3636
[env:SAMD21-CUSTOM]
3737
extends = common_samd21
38+
build_flags = ${common_samd21.build_flags} -DMCU=MCU_CUSTOM
3839
board = ${env.board}

uCNC/src/hal/boards/stm32/stm32.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
[common_stm32]
66
platform = platformio/ststm32@^17.5.0
77
; debug with st-link
8-
upload_protocol = cmsis-dap
9-
debug_tool = cmsis-dap
8+
; upload_protocol = cmsis-dap
9+
; debug_tool = cmsis-dap
1010
debug_speed = 100
1111
platform_packages = platformio/tool-openocd
1212
debug_build_flags = -Og -g3 -ggdb3 -gdwarf-2
@@ -97,4 +97,5 @@ build_flags = ${common_stm32.build_flags} -D BOARD=\"src/hal/boards/stm32/boardm
9797

9898
[env:STM32-CUSTOM]
9999
extends = common_stm32
100+
build_flags = ${common_stm32.build_flags} -DMCU=MCU_CUSTOM
100101
board = ${env.board}

0 commit comments

Comments
 (0)