Skip to content

Instantly share code, notes, and snippets.

View bobmcwhirter's full-sized avatar

Bob McWhirter bobmcwhirter

View GitHub Profile
2c2
< block/GPIO:
---
> block/GPIOA:
8d7
< reset_value: 2818572288
13d11
< reset_value: 0
18d15
< reset_value: 0
/*
* Project mw
* Description:
* Author:
* Date:
*/
#include "application.h"
#include <GxEPD.h>
Compiling drogue-async v0.1.0 (/Users/bob/repos/drogue/drogue-async)
error[E0432]: unresolved imports `crate::executor::spawn`, `crate::executor::defer`
--> src/executor.rs:361:37
|
361 | use crate::executor::{Executor, spawn, run, defer};
| ^^^^^ ^^^^^ no `defer` in `executor`
| |
| no `spawn` in `executor`
error: aborting due to previous error
Compiling drogue-async v0.1.0 (/Users/bob/repos/drogue/drogue-async)
Finished test [unoptimized + debuginfo] target(s) in 1.93s
Running target/debug/deps/drogue_async-bf1f29af935d1cee
running 1 test
2020-12-07 09:33:51,109 ERROR [drogue_async::executor::tests] WHAT
2020-12-07 09:33:51,110 ERROR [drogue_async::executor] spawn!!!
2020-12-07 09:33:51,110 ERROR [drogue_async::executor] spawn!!!
run!
2020-12-07 09:33:51,110 TRACE [drogue_async::executor] root-1 is ready? 0x101cc0778 1
let host: &mut BlueNrgHost<'_> = ctx.resources.ble_host;
let params = LeSetAdvertisingParameters {
min_interval: Milliseconds(500),
max_interval: Milliseconds(500),
advertising_type: AdvertisingType::ConnectableAndScannableUndirected,
own_address_type: Default::default(),
peer_address_type: Default::default(),
peer_address: Address([0, 0, 0, 0, 0, 0]),
channel_map: Default::default(),
11c11
< * Copyright (C) 2006-2018, ARM Limited, All Rights Reserved
---
> * Copyright The Mbed TLS Contributors
25,26d24
< *
< * This file is part of mbed TLS (https://tls.mbed.org)
32d29
<
136c133
15:21:15.285 INFO - firmware: Ok(FirmwareInfo { major: 1, minor: 7, patch: 0, build: 0 })
15:21:15.285 INFO - writing command AT+CWJAP_CUR="oddly","scarletbegonias"
15:21:15.539 INFO - wifi connected
15:21:15.792 INFO - wifi disconnect
15:21:18.329 INFO - wifi connected
15:21:19.600 INFO - wifi got ip
15:21:20.609 INFO - joined wifi Ok(())
15:21:20.609 INFO - writing command AT+CIPSTA_CUR?
15:21:20.609 INFO - IP Ok(IpAddresses { ip: 192.168.1.250, gateway: 192.168.1.1, netmask: 255.255.255.0 })
15:21:20.609 INFO - network intialized
static mut ALLOCATOR: Option<CortexMHeap> = Option::None;
pub fn setup_platform(start: usize, size: usize) {
let mut heap = CortexMHeap::empty();
unsafe {
heap.init(start, size);
ALLOCATOR.replace(heap);
}
unsafe { platform_set_calloc_free(Some(platform_calloc_f), Some(platform_free_f)) };
}
16:23:55.925 INFO - about to panic
#[inline(never)]
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
use cortex_m::interrupt;
interrupt::disable();
rprintln!("panic");
rprintln!("{}", info);