-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(*): use latest atat, with new urc channel & replace fugit with …
…embassy-time (#83) * - Update ATAT, and implement the new URC subscriber channels - Remove `fugit` and replace it with `embassy-time` - Update `ublox-sockets`, facilitating both of above changes - Remove unimplemented sms, voice and location service skeletons - Remove pin generics in favor of a single `CellularConfig` trait with associated types * Make flowcontrol a bool in config trait, and export config trait * Use latest atat git rev * Fix sometimes stuck in infinite loop at AT probing on initialization * Update CI to use nightly and remove unused workflows
- Loading branch information
1 parent
0fe4634
commit 15efe78
Showing
31 changed files
with
382 additions
and
1,117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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,56 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
name: CI | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: Build & Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- uses: dsherret/rust-toolchain-file@v1 | ||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --all --features "defmt-impl,lara-r6" --target thumbv7em-none-eabihf | ||
|
||
- name: Test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --lib --features "log,lara-r6" | ||
env: | ||
DEFMT_LOG: off | ||
|
||
rustfmt: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- uses: dsherret/rust-toolchain-file@v1 | ||
- name: Rustfmt | ||
run: cargo fmt -- --check | ||
|
||
clippy: | ||
name: clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- uses: dsherret/rust-toolchain-file@v1 | ||
- name: Run clippy | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --features "lara-r6" -- ${{ env.CLIPPY_PARAMS }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 @@ | ||
[toolchain] | ||
channel = "nightly-2023-06-28" | ||
components = [ "rust-src", "rustfmt", "llvm-tools-preview", "clippy" ] | ||
targets = [ | ||
"x86_64-unknown-linux-gnu", | ||
"thumbv7em-none-eabihf" | ||
] |
This file contains 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 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,21 @@ | ||
use embassy_time::{Duration, Instant}; | ||
|
||
pub struct BlockingTimer { | ||
expires_at: Instant, | ||
} | ||
|
||
impl BlockingTimer { | ||
pub fn after(duration: Duration) -> Self { | ||
Self { | ||
expires_at: Instant::now() + duration, | ||
} | ||
} | ||
|
||
pub fn wait(self) { | ||
loop { | ||
if self.expires_at <= Instant::now() { | ||
break; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.