Skip to content

Commit ad186bb

Browse files
committed
Merge branch 'main' into release_candidate
2 parents 5cc0cda + 99dedc8 commit ad186bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1690
-612
lines changed

.github/workflows/mkdocs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Run mkdocs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-python@v4
12+
with:
13+
python-version: 3.x
14+
- run: pip install mkdocs-material mkdocs-monorepo-plugin
15+
- run: mkdocs gh-deploy --force
Binary file not shown.
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@echo off
2+
if [%1]==[] goto usage
3+
4+
@echo Programming for SparkFun LoRaSerial
5+
@pause
6+
:loop
7+
8+
@echo -
9+
@echo Programming binary: %1
10+
11+
@echo Unlock bootloader
12+
atprogram.exe -t samice -i swd -cl 20mhz -d atsamd21g18a write --fuses --offset 0x804000 --values 0xFFC7E0D8
13+
14+
@echo Programming firmware
15+
atprogram.exe -t samice -i swd -cl 20mhz -d atsamd21g18a chiperase program -f %1 --verify
16+
17+
@echo Lock bootloader
18+
atprogram.exe -t samice -i swd -cl 20mhz -d atsamd21g18a write --fuses --offset 0x804000 --values 0xFAC7E0D8
19+
20+
@echo Done programming! Ready for next board.
21+
@pause
22+
23+
goto loop
24+
25+
:usage
26+
@echo Missing the hex file. Ex: batch_program.bat LoRaSerial_Firmware_v10_Combined.hex
121 KB
Binary file not shown.
121 KB
Binary file not shown.

Firmware/LoRaSerial/build.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
//Be aware turning on debug prints will mess with all sorts of radio timing
3+
#if defined(ENABLE_DEVELOPER)
4+
#define LRS_DEBUG
5+
#endif
6+
7+
#if !defined(LRS_DEBUG_PORT)
8+
#define LRS_DEBUG_PORT Serial
9+
#endif
10+
11+
#if defined(LRS_DEBUG)
12+
#define LRS_DEBUG_PRINT(...) { LRS_DEBUG_PORT.print(__VA_ARGS__); }
13+
#define LRS_DEBUG_PRINTLN(...) { LRS_DEBUG_PORT.println(__VA_ARGS__); }
14+
#else
15+
#define LRS_DEBUG_PRINT(...) {}
16+
#define LRS_DEBUG_PRINTLN(...) {}
17+
#endif

0 commit comments

Comments
 (0)