Commit Graph

265 Commits (323ed54989992b613d65a0bb9711728ac24cf22a)

Author SHA1 Message Date
Robert Jördens 3165c680d6 dma: don't swap buffers
* This uses a new closure-based method to the DMA HAL implementation which
  gives access to the inactive buffer directly.
* It removes changing addresses, the third buffer for DBM, the inactive
  address poisoning, and allows the cancellation of the redundant repeat
  memory barriers and compiler fences.
* This is now around 20 instructions per buffer down from about 100 cycles
  before.
* Also introduces a new `SampleBuffer` type alias.
* The required unpacking of the resources structure is a bit annoying
  but could probably abstraced away.

TODO:

* Test
* Adapt `lockin`
2021-05-24 20:56:11 +02:00
Robert Jördens e58e7f179e clean up item visibility
* There isn't much API that would only be used accross modules within
  stabilizer/dsp but should not be pub beyond stabilizer/dsp.
* Therefore it's easier to let the definition determine visibility and
  the mod.rs/lib.rs determine location in the namesapce.
* Blanket use pub items in mod and lib.
2021-05-17 13:01:45 +02:00
Ryan Summers 21ca8e1c8f Adding initial streaming implementation 2021-05-17 12:43:04 +02:00
Robert Jördens b3c7a450f5 deps: adjust mcp23017 git after merging 2021-05-17 09:29:43 +02:00
Robert Jördens 4d5f1ab5e9 itcm: implement in rust and execute during setup() 2021-05-14 17:23:38 +02:00
Robert Jördens bd8b3cd6f3 Merge remote-tracking branch 'origin/master' into rj/itcm
* origin/master:
  deps: fix rtt-logger->rtt-target, cleanup, bump cortex-m
  build(deps): bump embedded-hal from 0.2.4 to 0.2.5
  Bump rtt-target from 0.2.2 to 0.3.1
  Bump serde from 1.0.125 to 1.0.126
  remove unused dependencies
  remove unused dependencies
2021-05-14 08:18:33 +02:00
Robert Jördens b9cee6345a deps: fix rtt-logger->rtt-target, cleanup, bump cortex-m 2021-05-14 07:16:47 +02:00
dependabot[bot] 012c4fe375
build(deps): bump embedded-hal from 0.2.4 to 0.2.5
Bumps [embedded-hal](https://github.com/rust-embedded/embedded-hal) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/rust-embedded/embedded-hal/releases)
- [Changelog](https://github.com/rust-embedded/embedded-hal/blob/v0.2.5/CHANGELOG.md)
- [Commits](https://github.com/rust-embedded/embedded-hal/compare/v0.2.4...v0.2.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-13 17:15:34 +00:00
dependabot[bot] d8469cac92
Bump rtt-target from 0.2.2 to 0.3.1
Bumps [rtt-target](https://github.com/mvirkkunen/rtt-target) from 0.2.2 to 0.3.1.
- [Release notes](https://github.com/mvirkkunen/rtt-target/releases)
- [Commits](https://github.com/mvirkkunen/rtt-target/compare/v0.2.2...v0.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-13 16:53:07 +00:00
dependabot[bot] 0e2eaa3d1d
Bump serde from 1.0.125 to 1.0.126
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.125 to 1.0.126.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-13 16:35:43 +00:00
Robert Jördens 5d37963ec2 Merge remote-tracking branch 'origin/master' into rj/log
* origin/master:
  remove unused dependencies
  remove unused dependencies
2021-05-13 18:27:11 +02:00
Robert Jördens 8eef23da6b Merge branch 'rj/log' into rj/itcm
* rj/log:
  refine panic handler and add some logging info
  hitl: kill probe-run cleanly
  set target-cpu=cortex-m7, MSRV 1.52.0, use probe-run
  README: document lockin, cleanup instructions, use probe-run
  CHANGELOG: update
  README: streamline docs a bit, add probe-run
  update hitl script
  remove rtt feature
  use rtt logging
  dsp/lowpass,lockin: const generics
2021-05-13 15:20:20 +02:00
Robert Jördens 401e1b0681 remove rtt feature 2021-05-13 11:14:03 +02:00
Robert Jördens 5b616a2874 use rtt logging 2021-05-13 10:55:43 +02:00
Robert Jördens 057f3dccf6 remove unused dependencies 2021-05-12 13:09:22 +02:00
Robert Jördens 31332d220e remove unused dependencies 2021-05-12 12:59:58 +02:00
Robert Jördens bcdb5e3c0f dsp/lowpass,lockin: const generics 2021-05-10 17:31:53 +02:00
Robert Jördens 66184ca089 Merge remote-tracking branch 'origin/master' into rj/itcm
* origin/master: (34 commits)
  Simplifying unit conversions
  Cleaning up conversion + comments
  Addressing review feedback
  Update src/hardware/dac.rs
  Renaming AdcSample -> AdcCode
  Updating float conversion
  Adding adc/dac code conversion utilities
  Simplifying settings lock
  Updating after review
  Updating delay
  Fixing merge
  Formatting
  Updating dependencies
  Fixing clippy
  Finalizing merge
  Merging lockin app functions
  Fixing system timer
  Fixing build, formatting
  Adding documentation
  Renaming files
  ...
2021-05-10 17:00:57 +02:00
Robert Jördens bd491cf584
Merge branch 'master' into rj/itcm 2021-05-10 12:09:01 +02:00
Ryan Summers eeee5af296 Updating dependencies 2021-05-06 16:32:57 +02:00
Ryan Summers 8144b3acf2 Updating constructors 2021-05-05 16:16:54 +02:00
Ryan Summers 06b328ff52 Adding WIP updates for telemetry 2021-05-05 14:42:17 +02:00
Robert Jördens f0c50d9678 Merge branch 'master' into rj/itcm
* master: (70 commits)
  Updating JSON syntax
  Updating trigger
  Adding bors timeout
  dual-iir: add some mqtt parameter docs
  changelog: spelling
  update lock
  let bors handle hitl
  prepare v0.5.0 release
  Updating code after review
  Adding comment, reverting change
  Adding sleep to HITL run
  Updating ping deadline
  Reverting unintended change
  Updating dependency revision
  Renaming interface to avoid confusion
  dual-iir: use InputPin re-export, rename digital_input
  Updating dependency
  dual-iir: add enable_hold, force_hold
  fix bench
  hardware: add digital input support
  ...
2021-04-29 17:28:58 +02:00
Robert Jördens 9e66054d21 bump cortex-m-rt to 0.6.13+git 2021-04-29 16:45:30 +02:00
Ryan Summers eeb15efdff Adding lockfile 2021-04-29 13:20:26 +02:00
Ryan Summers aad026161f Refactoring to support DHCP 2021-04-29 11:28:35 +02:00
Ryan Summers 01349a39b3 Merge branch 'master' into feature/mqtt-rework 2021-04-29 11:07:00 +02:00
Ryan Summers 0922cc42af Adding new miniconf implementation 2021-04-28 21:03:38 +02:00
Ryan Summers f38e3b9608 Simplifying MQTT handling 2021-04-22 15:57:24 +02:00
Ryan Summers 36cc423f70 Refactoring MQTT to support telemetry 2021-04-22 15:16:33 +02:00
Robert Jördens d9129ed028 update lock 2021-04-21 16:38:10 +02:00
Ryan Summers b2285d1ba2 Updating dependency revision 2021-04-19 15:55:02 +02:00
Ryan Summers d333a25301 Updating dependency 2021-04-15 12:24:49 +02:00
Ryan Summers 1b4d31dbd9 Updating NAL to support TCP port randomization 2021-04-08 15:28:11 +02:00
Ryan Summers c24eb17d1e Using main branch commit 2021-04-08 14:02:56 +02:00
Ryan Summers 164fd5969d Updating smoltcp-nal 2021-04-08 13:56:57 +02:00
Ryan Summers d0c1bef55f Updating dependencies 2021-04-08 13:37:24 +02:00
Ryan Summers 885cc1fb27 Merge branch 'master' into feature/phy-reset 2021-04-08 13:35:59 +02:00
dependabot[bot] b39a827aff
build(deps): bump ndarray from 0.14.0 to 0.15.1
Bumps [ndarray](https://github.com/rust-ndarray/ndarray) from 0.14.0 to 0.15.1.
- [Release notes](https://github.com/rust-ndarray/ndarray/releases)
- [Changelog](https://github.com/rust-ndarray/ndarray/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-ndarray/ndarray/compare/ndarray-rand-0.14.0...0.15.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-07 15:00:06 +00:00
Robert Jördens f9347e6e29 deps: bulk update 2021-04-07 16:54:02 +02:00
Robert Jördens 46902b39b4 dependencies: update, move hashes to Cargo.toml
cargo update -p doesn't work well if the hashes are only on .lock
2021-04-07 16:44:39 +02:00
Robert Jördens 1ca8aa98b0 hal 0.9.0 2021-04-07 16:35:57 +02:00
Ryan Summers e51336dc90
Merge branch 'master' into update-hal 2021-04-07 13:41:48 +02:00
Robert Jördens 14bae09935 load process into itcm
needs newer fixed cortex-m-rt 0.6.13+unreleased
relevant? https://reviews.llvm.org/D81986
2021-03-29 17:34:17 +02:00
dependabot[bot] 6c892f4ea3
Bump num from 0.3.1 to 0.4.0
Bumps [num](https://github.com/rust-num/num) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/rust-num/num/releases)
- [Changelog](https://github.com/rust-num/num/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num/compare/num-0.3.1...num-0.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-25 08:40:58 +00:00
Ryan Summers 4b9954761e Updating smoltcp dependency 2021-03-25 09:24:58 +01:00
Ryan Summers 9459152f6f Updating dependencies 2021-03-24 13:40:17 +01:00
Ryan Summers a717630c53 Adding prototype PHY reset detection 2021-03-17 20:16:39 +01:00
dependabot[bot] e4b476e497
Bump serde from 1.0.123 to 1.0.124
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.123 to 1.0.124.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-17 15:46:45 +00:00
dependabot[bot] eed190be12
build(deps): bump paste from 1.0.4 to 1.0.5
Bumps [paste](https://github.com/dtolnay/paste) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/paste/releases)
- [Commits](https://github.com/dtolnay/paste/compare/1.0.4...1.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-17 15:36:37 +00:00
dependabot[bot] 1b328a3d28
build(deps): bump heapless from 0.5.6 to 0.6.1
Bumps [heapless](https://github.com/japaric/heapless) from 0.5.6 to 0.6.1.
- [Release notes](https://github.com/japaric/heapless/releases)
- [Changelog](https://github.com/japaric/heapless/blob/master/CHANGELOG.md)
- [Commits](https://github.com/japaric/heapless/compare/v0.5.6...v0.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-17 15:28:50 +00:00
Ryan Summers 0577a99bbe Updating dependencies 2021-03-17 15:55:30 +01:00
Ryan Summers 331e21b00a Updating dependencies 2021-03-17 14:47:14 +01:00
Ryan Summers 8c616cebec Adding unstaged changes 2021-03-15 12:30:18 +01:00
Ryan Summers 4a9c2fe23a Updating after DHCP PR review 2021-03-15 11:41:13 +01:00
Ryan Summers e5505925a9 Merge branch 'master' into feature/dhcp-support 2021-03-15 11:38:28 +01:00
David Nadlinger 4606d93900 Update stm32h7xx-hal
I haven't done any runtime tests using Pounder, but it seems
like the API change is just a consequence of making the QSPI
address width runtime-configurable.
2021-03-07 16:48:55 +00:00
Ryan Summers c2cb9a440c Adding initial DHCP support prototype 2021-03-04 17:26:10 +01:00
Robert Jördens e1247ec970
Merge branch 'master' into panic-led 2021-03-04 15:17:15 +01:00
dependabot[bot] d47c44de9a
build(deps): bump cortex-m-rtic from 0.5.5 to 0.5.6
Bumps [cortex-m-rtic](https://github.com/rtic-rs/cortex-m-rtic) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/rtic-rs/cortex-m-rtic/releases)
- [Changelog](https://github.com/rtic-rs/cortex-m-rtic/blob/v0.5.6/CHANGELOG.md)
- [Commits](https://github.com/rtic-rs/cortex-m-rtic/compare/v0.5.5...v0.5.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-04 04:07:51 +00:00
Robert Jördens 843173f29d panic: always turn on red leds, and halt 2021-03-03 16:36:10 +01:00
Ryan Summers 6f1532c2a3 Updating dependencies 2021-03-02 17:11:19 +01:00
Ryan Summers 40c04c67c5 Updating dependencies 2021-03-02 17:00:11 +01:00
Ryan Summers c2b00db9e9 Updating minimq/miniconf dependencies 2021-03-02 16:43:19 +01:00
Ryan Summers c553e72df4 Updating miniconf dependencies 2021-03-01 14:46:12 +01:00
Robert Jördens 6c6c2e64a7 lockin: make order generic 2021-02-23 16:58:13 +01:00
Ryan Summers 04dff30dce Fixing dependencies: 2021-02-19 10:45:53 +01:00
Ryan Summers c6ef78cdc5 Pulling back easybench changes 2021-02-19 10:44:46 +01:00
Ryan Summers 2ac7568d5b Updating dependencies 2021-02-19 10:36:39 +01:00
Robert Jördens 9983fad041 dsp: use num 2021-02-18 14:07:43 +01:00
Robert Jördens 43c0ba9ea0 dependencies: bump 2021-02-15 09:18:31 +01:00
Robert Jördens efbf750b20 Merge remote-tracking branch 'origin/master' into rj/misc
* origin/master:
  Upgrade to serde-json-core v0.2.0
2021-02-15 08:55:40 +01:00
Robert Jördens cfc4cb382d dependencies: hal ref is on master now [nfc] 2021-02-15 08:53:55 +01:00
David Nadlinger 4130292706 Upgrade to serde-json-core v0.2.0
This also fixes the network interface for writing IIR coefficients.
2021-02-13 00:07:15 +00:00
Robert Jördens 208ba8379a dsp, lockin: use cascaded 1st order lowpasses 2021-02-09 20:37:46 +01:00
Robert Jördens c5fde8563c deps: bump hal and smoltcp, adapt 2021-02-03 13:16:22 +01:00
Robert Jördens a8c5502441 Merge remote-tracking branch 'origin/dependabot/cargo/stm32h7xx-hal-2b8a04c' into rj/bump-hal-smoltcp
* origin/dependabot/cargo/stm32h7xx-hal-2b8a04c:
  build(deps): bump stm32h7xx-hal from `3da22d4` to `2b8a04c`
2021-02-03 13:05:27 +01:00
Robert Jördens 5fc4720593 Merge remote-tracking branch 'origin/dependabot/cargo/smoltcp-0.7.0' into rj/bump-hal-smoltcp
* origin/dependabot/cargo/smoltcp-0.7.0:
  build(deps): bump smoltcp from 0.6.0 to 0.7.0
2021-02-03 13:04:16 +01:00
Robert Jördens fdae9d54e8 Merge remote-tracking branch 'origin/master'
* origin/master:
  update cargosha256
  build(deps): bump log from 0.4.13 to 0.4.14
  build(deps): bump cortex-m-log from 0.6.2 to 0.7.0
  build(deps): bump serde from 1.0.120 to 1.0.123
2021-02-01 12:28:01 +01:00
Robert Jördens a8f2f81833
Merge pull request #250 from quartiq/dependabot/cargo/log-0.4.14
build(deps): bump log from 0.4.13 to 0.4.14
2021-02-01 08:51:48 +01:00
dependabot[bot] 7e37ac7b02
build(deps): bump log from 0.4.13 to 0.4.14
Bumps [log](https://github.com/rust-lang/log) from 0.4.13 to 0.4.14.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.13...0.4.14)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-31 22:28:52 +00:00
dependabot[bot] 8317185e07
build(deps): bump stm32h7xx-hal from `3da22d4` to `2b8a04c`
Bumps [stm32h7xx-hal](https://github.com/stm32-rs/stm32h7xx-hal) from `3da22d4` to `2b8a04c`.
- [Release notes](https://github.com/stm32-rs/stm32h7xx-hal/releases)
- [Commits](3da22d4935...2b8a04caac)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-31 22:28:48 +00:00
Robert Jördens e3e97805ed
Merge pull request #238 from quartiq/dependabot/cargo/serde-1.0.123
build(deps): bump serde from 1.0.120 to 1.0.123
2021-01-31 23:28:19 +01:00
Robert Jördens 2d43b8970b lockin: cleanup 2021-01-31 20:49:14 +01:00
dependabot[bot] b8fcf416cb
build(deps): bump cortex-m-log from 0.6.2 to 0.7.0
Bumps [cortex-m-log](https://github.com/DoumanAsh/cortex-m-log) from 0.6.2 to 0.7.0.
- [Release notes](https://github.com/DoumanAsh/cortex-m-log/releases)
- [Commits](https://github.com/DoumanAsh/cortex-m-log/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-31 18:00:41 +00:00
dependabot[bot] d679a9af61
build(deps): bump serde from 1.0.120 to 1.0.123
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.120 to 1.0.123.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.123)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-31 17:32:08 +00:00
dependabot[bot] b6c10dbd8a
build(deps): bump criterion from 0.3.3 to 0.3.4
Bumps [criterion](https://github.com/bheisler/criterion.rs) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/bheisler/criterion.rs/releases)
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-31 17:32:07 +00:00
Robert Jördens 183d84ad7a cargo.lock: update 2021-01-30 20:57:44 +01:00
dependabot[bot] 19a9d92220
Merge pull request #233 from quartiq/dependabot/cargo/serde-1.0.120 2021-01-20 14:12:58 +00:00
dependabot[bot] 1f43e4d0b5
build(deps): bump serde from 1.0.118 to 1.0.120
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.118 to 1.0.120.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.120)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-20 04:01:24 +00:00
dependabot[bot] 7134df9749
build(deps): bump smoltcp from 0.6.0 to 0.7.0
Bumps [smoltcp](https://github.com/smoltcp-rs/smoltcp) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/smoltcp-rs/smoltcp/releases)
- [Changelog](https://github.com/smoltcp-rs/smoltcp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smoltcp-rs/smoltcp/compare/v0.6.0...v0.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-20 04:01:23 +00:00
dependabot[bot] c0f6c2d445
build(deps): bump log from 0.4.11 to 0.4.13
Bumps [log](https://github.com/rust-lang/log) from 0.4.11 to 0.4.13.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.11...0.4.13)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-12 04:03:23 +00:00
Ryan Summers 29a89637f8 Merge branch 'master' into feature/pounder-timestamping 2021-01-06 14:45:56 +01:00
Ryan Summers a2fb4630b8
Merge pull request #195 from vertigo-designs/feature/digital-input-stamp
Feature/digital input stamp
2021-01-06 05:45:04 -08:00
Ryan Summers 3332a8e927 Updating branch dependencies 2021-01-06 12:59:24 +01:00
Ryan Summers 67b6990fc0 Addressing PR review 2021-01-04 17:12:24 +01:00
Robert Jördens a85738a651 dsp: add host benchmark 2020-12-11 15:19:13 +01:00
dependabot[bot] afef1b0c26
build(deps): bump paste from 1.0.3 to 1.0.4
Bumps [paste](https://github.com/dtolnay/paste) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/paste/releases)
- [Commits](https://github.com/dtolnay/paste/compare/1.0.3...1.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-10 04:04:37 +00:00
Ryan Summers 72d14adfbf Adding support for pounder ETR timestamping 2020-12-09 18:19:33 +01:00
Ryan Summers fc81c8b5d8 Updating API 2020-12-07 17:29:36 +01:00