-
Notifications
You must be signed in to change notification settings - Fork 4
Generic peripheral bridge for the interdevice link #3
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5b79da8
Generic peripheral bridge for the interdevice link
caveman99 0bf7988
Interdevice payload bounds: 256B I2C, full-length filenames, 64 bit f…
caveman99 b072049
Compute SD statistics in the background
caveman99 7d0e10e
Harden the link RX path and correlate responses
caveman99 0c2bfd4
Address review: stats retry on transient failure, Wire timeout, full-…
caveman99 598a30e
Move SD ownership to core1, answer ping, buffer NMEA downlink
caveman99 148e023
Link resync, ping/stats protocol update, scan cap, watchdog
caveman99 0797cf5
Regen protos for I2CResult UNSPECIFIED, drop core debug port define
caveman99 954da28
Nack unhandled requests, classify I2C errors with a probe
caveman99 cb0b9dd
Version handshake: answer ping with the protocol version we speak
caveman99 1ca576c
Regen protos: interdevice protocol version 2
caveman99 109ff26
Report a status per file operation, keep maintenance off the request …
caveman99 cf1c3b7
Do not report a card as absent while it is being mounted, bound the s…
caveman99 71a265e
Detect a pulled card on reads, list directories without reopening ent…
caveman99 deab3ec
Announce ourselves at boot, account free space instead of rescanning
caveman99 739887e
Suppress library warnings
caveman99 8e32a0b
wire up github
caveman99 836e07e
Regen protos: FileStatus back on the original tags
caveman99 f0eb58a
Regen protos: ping/pong carry the InterdeviceVersion enum
caveman99 5f308d0
Point the protobufs submodule at the merged upstream commit
caveman99 dc17e2c
Pin PlatformIO Core to a fixed commit in both workflows
caveman99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| enable=all | ||
| source-path=SCRIPTDIR | ||
| disable=SC2154 | ||
|
|
||
| # If you're having issues with shellcheck following source, disable the errors via: | ||
| # disable=SC1090 | ||
| # disable=SC1091 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "files.associations": { | ||
| "random": "cpp", | ||
| "array": "cpp", | ||
| "deque": "cpp", | ||
| "list": "cpp", | ||
| "string": "cpp", | ||
| "unordered_map": "cpp", | ||
| "vector": "cpp", | ||
| "string_view": "cpp", | ||
| "format": "cpp", | ||
| "initializer_list": "cpp", | ||
| "span": "cpp", | ||
| "text_encoding": "cpp", | ||
| "regex": "cpp", | ||
| "chrono": "cpp" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,36 @@ | ||
| ; PlatformIO Project Configuration File | ||
| ; | ||
| ; Build options: build flags, source filter | ||
| ; Upload options: custom upload port, speed and extra flags | ||
| ; Library options: dependencies, extra library storages | ||
| ; Advanced options: extra scripting | ||
| ; | ||
| ; Please visit documentation for the other options and examples | ||
| ; https://docs.platformio.org/page/projectconf.html | ||
|
|
||
| [env:seeed_indicator_rp2040] | ||
| platform = https://github.com/maxgerhardt/platform-raspberrypi.git#c7502925e3b08af70e9f924d54ab9d00a7e64781 | ||
| platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#4.4.4 | ||
| framework = arduino | ||
|
|
||
| board = seeed_indicator_rp2040 | ||
| board_build.core = earlephilhower | ||
| board_build.filesystem_size = 0.5m | ||
|
|
||
| build_flags = | ||
| -Wno-missing-field-initializers | ||
| -Wno-format | ||
| -Isrc | ||
| -Isrc/generated | ||
| -Wl,-Map,.pio/build/output.map | ||
| -Os | ||
| -Wno-unused-variable | ||
| -Wcast-align | ||
| -D__PLAT_RP2040__ | ||
|
|
||
| lib_deps = | ||
| sensirion/Sensirion Core@0.7.1 | ||
| sensirion/Sensirion I2C SCD4x@1.0.0 | ||
| sensirion/Sensirion I2C SGP40@0.1.0 | ||
| sensirion/Sensirion Gas Index Algorithm@3.2.3 | ||
| nanopb/Nanopb@0.4.91 | ||
| https://github.com/Seeed-Studio/Seeed_Arduino_AHT20.git#v1.0.1 | ||
|
|
||
|
|
||
| monitor_speed = 115200 | ||
| ; PlatformIO Project Configuration File | ||
| ; | ||
| ; Build options: build flags, source filter | ||
| ; Upload options: custom upload port, speed and extra flags | ||
| ; Library options: dependencies, extra library storages | ||
| ; Advanced options: extra scripting | ||
| ; | ||
| ; Please visit documentation for the other options and examples | ||
| ; https://docs.platformio.org/page/projectconf.html | ||
|
|
||
| [env:seeed_indicator_rp2040] | ||
| platform = https://github.com/maxgerhardt/platform-raspberrypi.git#aa70b802be8851668053d4f09734e4089fe41932 | ||
| framework = arduino | ||
|
|
||
| board = seeed_indicator_rp2040 | ||
| board_build.core = earlephilhower | ||
|
|
||
| build_flags = | ||
| -Wno-missing-field-initializers | ||
| -Wno-format | ||
| -Isrc | ||
| -Wl,-Map,.pio/build/output.map | ||
| -Os | ||
| -Wno-unused-variable | ||
| -Wcast-align | ||
| -D__PLAT_RP2040__ | ||
| -DDEBUG_RP2040_PORT=Serial | ||
| -DHW_SPI1_DEVICE | ||
|
|
||
| lib_deps = | ||
| # renovate: datasource=custom.pio depName=Nanopb packageName=nanopb/library/Nanopb | ||
| nanopb/Nanopb@0.4.91 | ||
|
|
||
| monitor_speed = 115200 | ||
|
|
||
| debug_tool = cmsis-dap |
Submodule protobufs
updated
72 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #include "buzzer.h" | ||
|
|
||
| uint32_t buzz_off = 0; | ||
|
|
||
| void beep_init(void) { pinMode(BUZZER_GPIO, OUTPUT); } | ||
| void beep_off(void) { digitalWrite(BUZZER_GPIO, LOW); } | ||
| void beep_on(uint32_t duration) { | ||
| analogWrite(BUZZER_GPIO, 127); | ||
| buzz_off = millis() + duration; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #pragma once | ||
|
|
||
| #ifndef BUZZER_H | ||
| #define BUZZER_H | ||
|
|
||
| #define BUZZER_GPIO 19 | ||
|
|
||
| #include <Arduino.h> | ||
|
|
||
| extern uint32_t buzz_off; | ||
|
|
||
| void beep_init(void); | ||
| void beep_off(void); | ||
| void beep_on(uint32_t duration); | ||
|
|
||
| #endif // BUZZER_H |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.