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
| #!/usr/bin/env bash | |
| # ideally in the future this script is deprecated for a cargo tools bin method | |
| # https://matklad.github.io/2018/01/03/make-your-own-make.html | |
| # but were waiting on the ability to run std build scripts in a no_std project | |
| # https://github.com/rust-embedded/wg/issues/256#issuecomment-438483578 | |
| # alternatively you could attach a programmer like an stlink and use openocd here instead of dfu | |
| # https://gist.github.com/todbot/6b8da4bed3545313ae976be6be7ffc40 |
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
| use std::thread; | |
| use std::time::{Duration, Instant}; | |
| use std::fs; | |
| use std::io; | |
| use std::io::BufRead; | |
| static DB_PATH: &str = "./file.db"; | |
| struct Row { |
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
| Compiling leveldb v0.8.4 | |
| error[E0308]: mismatched types | |
| --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/leveldb-0.8.4/src/database/mod.rs:112:35 | |
| | | |
| 112 | ... c_string.as_bytes_with_nul().as_ptr() as *const i8, | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found i8 | |
| | | |
| = note: expected type `*const u8` | |
| found type `*const i8` |
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
| diff --git a/upstream b/his | |
| index 014cd90..5d7a54c 100644 | |
| --- a/upstream | |
| +++ b/his | |
| @@ -23,32 +23,22 @@ alloc_ep -> EndpointAddress(128) | |
| UsbBus::enable | |
| -USB_OTHER | |
| -PollResult::Suspend |
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
| diff --git a/upstream b/his | |
| index da9773a..a73f9f4 100644 | |
| --- a/upstream | |
| +++ b/his | |
| @@ -1,4 +1,5 @@ | |
| + | |
| ******** UsbBus::new | |
| UsbBus::alloc_ep dir=In addr=None type=Interrupt max_packet_size=8 interval=255 |
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
| diff --git a/his b/his-mine2 | |
| index a73f9f4..933e6db 100644 | |
| --- a/his | |
| +++ b/his-mine2 | |
| @@ -32,14 +32,14 @@ UsbBus::reset | |
| USB_OTHER | |
| ep 0 GOT SETUP | |
| -UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 5, 31, 0, 0, 0, 0, 0] | |
| +UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 5, 29, 0, 0, 0, 0, 0] |
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
| diff --git a/his-no-fail b/interrupts-and-dadd-and-rxstp-noep0 | |
| index 1bb2661..b8ad1c8 100644 | |
| --- a/his-no-fail | |
| +++ b/interrupts-and-dadd-and-rxstp-noep0 | |
| @@ -1,4 +1,5 @@ | |
| + | |
| ******** UsbBus::new | |
| UsbBus::alloc_ep dir=In addr=None type=Interrupt max_packet_size=8 interval=255 |
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
Show hidden characters
| { | |
| "folders": [ | |
| { | |
| "path": "." | |
| } | |
| ], | |
| "settings": { | |
| "LSP": { | |
| "rls": { | |
| "settings": { |
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
| jacob@j:~/Downloads/microbit (master)$ RUST_LOG=debug cargo flash --release --example blinky --chip nRF51422_xxAA | |
| Finished release [optimized + debuginfo] target(s) in 0.02s | |
| DEBUG cargo_project > Project::query(path=/home/jacob/Downloads/microbit): root=/home/jacob/Downloads/microbit | |
| DEBUG cargo_project > workspace search: cwd=/home/jacob/Downloads | |
| Flashing /home/jacob/Downloads/microbit/target/thumbv6m-none-eabi/release/examples/blinky | |
| DEBUG jaylink > libusb 1.0.21.11156 | |
| DEBUG jaylink > libusb has capability API: true | |
| DEBUG jaylink > libusb has HID access: true | |
| DEBUG jaylink > libusb has hotplug support: true | |
| DEBUG jaylink > libusb can detach kernel driver: true |
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
| jacob@j:~/Downloads/nrf52-hal/boards/nRF52840-DK (master)$ RUST_LOG=debug cargo flash --release --example blinky --chip nRF52840_xxAA | |
| Finished release [optimized + debuginfo] target(s) in 0.06s | |
| DEBUG cargo_project > Project::query(path=/home/jacob/Downloads/nrf52-hal/boards/nRF52840-DK): root=/home/jacob/Downloads/nrf52-hal/boards/nRF52840-DK | |
| DEBUG cargo_project > workspace search: cwd=/home/jacob/Downloads/nrf52-hal/boards | |
| DEBUG cargo_project > found workspace: cwd=/home/jacob/Downloads/nrf52-hal/boards, outer_root=/home/jacob/Downloads/nrf52-hal, members=["boards/adafruit_nrf52pro", "boards/adafruit-nrf52-bluefruit-le", "boards/nRF52-DK", "boards/nRF52840-DK", "boards/nRF9160-DK", "boards/actinius-icarus", "nrf52810-hal", "nrf52832-hal", "nrf52840-hal", "nrf9160-hal", "examples/rtfm-demo", "examples/spi-demo", "examples/twi-ssd1306"] | |
| DEBUG cargo_project > workspace search: cwd=/home/jacob/Downloads | |
| Flashing /home/jacob/Downloads/nrf52-hal/target/thumbv7em-none-eabihf/release/examples/blinky | |
| DEB |