Skip to content

Instantly share code, notes, and snippets.

![feature(async_await, await_macro, futures_api, pin, arbitrary_self_types)]
use std::future::{Future, FutureObj};
use std::mem::PinMut;
use std::sync::{Arc, Mutex};
use std::sync::mpsc::{sync_channel, SyncSender, SendError, Receiver};
use std::task::{
self,
local_waker_from_nonlocal,
Context,
![feature(async_await, await_macro, futures_api, pin, arbitrary_self_types)]
use std::future::{Future, FutureObj};
use std::mem::PinMut;
use std::sync::{Arc, Mutex};
use std::sync::mpsc::{sync_channel, SyncSender, SendError, Receiver};
use std::task::{
self,
local_waker_from_nonlocal,
Context,
.section ".text.boot"
.global _start
PERIPHERAL_BASE = 0x3F000000 // Raspberry Pi 3 Peripheral Base Address
GPBASE = 0x200000 // $3F200000
GPFSEL4 = 0x10 // $3F200010
GPSET1 = 0x20 // $3F200020
GPCLR1 = 0x2C // $3F20002C
...CCCC...
..C....C..
.C......C.
C.........
C.........
C.........
.C......C.
..C....C..
...CCCC...