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
Default host: x86_64-apple-darwin | |
rustup home: /Users/bob/.rustup | |
installed toolchains | |
-------------------- | |
stable-x86_64-apple-darwin | |
beta-x86_64-apple-darwin | |
nightly-x86_64-apple-darwin (default) |
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
fn parse(&self, resp: &[u8]) -> Result<Self::Response, Error> { | |
let mut ip = Option::None; | |
let mut gateway = Option::None; | |
let mut netmask = Option::None; | |
for chunk in resp.split(|e| *e == b'\n') { | |
let line = core::str::from_utf8(chunk); | |
if let Ok(line) = line { | |
if let Some(addr_type) = extract_between(line, ':') { | |
if let Some(addr_value) = extract_between(line, '"') { | |
if let Some(addr_value) = to_address(addr_value) { |
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
murray:esp8266-tcp bob$ miniterm.py /dev/tty.usbserial-AB0JSKDU 115200 | |
--- Miniterm on /dev/tty.usbserial-AB0JSKDU 115200,8,N,1 --- | |
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- | |
r␘␂␀l��r�␀�c␂�n�␄␘�␌␘�␌␜��␜p�|���␀�8␂��ǒ��␜p␌␘␌�nn�␂�;�n����␌␛�␌b�#l`␛$`␛␄nn���␀␌␜���l␜�␌␟�␌␜�␌b�␄n��n�䎀l��␌b�ľ~�n�␃����␀l`␛��␒�#�n�␄�r␘␂␎␂nr���;␂��␌?␐��;�␂p�n��܀␌␜�r�␜��␜b��␌␜�␌b�␄n��n�$␏�␜p␌␘��nn�␃��␌␘r␘␂�␒�#�n�␄␏r␘␂␎␂nr���;␂��␌?␐��␂␎r�ےn�␄���߬� | |
============================== | |
LoBo ESP8266 Bootloader v1.2.0 | |
============================== | |
Flash map: 2, 1MB (512+512) | |
Flash mode: DOUT, [ESP8285] | |
Reset reason: POWER_ON |
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
15:52:30.616 waiting for ready | |
15:52:30.870 esp8266 is online | |
15:52:30.870 running app via RTIC | |
15:52:30.870 starting dma | |
15:52:30.870 DEBUG - Sending command: "AT+CIPMUX=1\r\n" | |
15:52:30.870 dma irq | |
15:52:30.870 | |
15:52:30.870 | |
15:52:30.870 A | |
15:52:30.870 T |
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/src/dma/traits.rs b/src/dma/traits.rs | |
index 09cf1c3..f414132 100644 | |
--- a/src/dma/traits.rs | |
+++ b/src/dma/traits.rs | |
@@ -2,6 +2,7 @@ use super::*; | |
use crate::{ | |
bb, | |
pac::{self, DMA1, DMA2, RCC}, | |
+ serial::{RxDma, TxDma}, | |
}; |
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/src/dma/traits.rs b/src/dma/traits.rs | |
index 09cf1c3..c49aca3 100644 | |
--- a/src/dma/traits.rs | |
+++ b/src/dma/traits.rs | |
@@ -2,6 +2,7 @@ use super::*; | |
use crate::{ | |
bb, | |
pac::{self, DMA1, DMA2, RCC}, | |
+ serial::{Rx, Tx, RxDma, TxDma}, | |
}; |
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
15:00:12.830 startup | |
15:00:13.337 esp8266 is online | |
15:00:13.337 disabling echo | |
15:00:13.337 disabling echo success | |
15:00:13.337 disabling ap | |
15:00:13.337 disabling ap success | |
15:00:13.337 enabling mux | |
15:00:13.337 enabling mux success | |
15:00:13.337 connecting wifi | |
15:00:16.375 connecting wifi success |
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
myapp v0.1.0 (/Users/bob/repos/drogue/myapp) | |
├── bbqueue v0.4.8 | |
│ └── generic-array v0.13.2 | |
│ └── typenum v1.12.0 | |
├── cortex-m v0.6.2 | |
│ ├── aligned v0.3.2 | |
│ │ └── as-slice v0.1.3 | |
│ │ ├── generic-array v0.12.3 | |
│ │ │ └── typenum v1.12.0 | |
│ │ ├── generic-array v0.13.2 (*) |
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
#![no_std] | |
#![no_main] | |
mod esp; | |
mod at_parser; | |
//use cortex_m; | |
//use embedded_hal::digital::v2::OutputPin; | |
use cortex_m_rt::entry; | |
use generic_array::{arr, GenericArray}; |
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
#[idle] | |
fn idle(ctx: idle::Context) -> ! { | |
let mut i = 0; | |
loop { | |
if ( i == 800_000 ) { | |
rprintln!("idle"); | |
i = 0; | |
} else { | |
i += 1; | |
} |