Commit 5fd97f80 authored by DevDoggo's avatar DevDoggo

Maybe Done. Unsure what is specifically an Access Code

parent a6b2331b
......@@ -5,5 +5,5 @@
#cargo build --target thumbv7em-none-eabihf --example bare1
#cargo build --target thumbv7em-none-eabihf --example bare2
#cargo build --target thumbv7em-none-eabihf --release --example bare2
cargo build --target thumbv7em-none-eabihf --example bare3
#cargo build --target thumbv7em-none-eabihf --example bare3
cargo build --target thumbv7em-none-eabihf --example bare4
......@@ -69,6 +69,8 @@ fn main() {
// 1. build and run the application (debug build)
// did you enjoy the blinking?
//
// >> Yeah I enjoyed the blinking, that's pretty cool :)
// ** your answer here **
//
// now lookup the data-sheets, and read each section referred,
......@@ -77,10 +79,28 @@ fn main() {
// document each low level access *code* by the appropriate section in the
// data sheet
//
// >>> 6.3.11:
// RCC APB1 peripheral clock enable registe
// Address Offset: 0x40
//
// >>> 8.4.1:
// GPIO port mode register
// Address offset: 0x00
// > Reset:
// Port A: 0x0c00000
// Port B: 0x00000280
// Other: 0x00000000
// >>> 8.4.7:
// GPIO port bit set reset register
// Address offset: 0x18
// Rset Value: 0x00000000
// Access Mode: Word, Half-word, Bye
//
// commit your answers (bare4_1)
//
// 2. comment out line 30 and uncomment line 31 (essentially omitting the `unsafe`)
// what was the error message and explain why,
//
// ** your answer here **
//
// digging a bit deeper, why do you think `read_volatile` is declared `unsafe`
......
......@@ -6,5 +6,5 @@ TARGET=thumbv7em-none-eabihf
#arm-none-eabi-gdb target/$TARGET/debug/examples/bare1
#arm-none-eabi-gdb target/$TARGET/debug/examples/bare2
#arm-none-eabi-gdb target/$TARGET/release/examples/bare2
arm-none-eabi-gdb target/$TARGET/debug/examples/bare3
#arm-none-eabi-gdb target/$TARGET/debug/examples/bare3
arm-none-eabi-gdb target/$TARGET/debug/examples/bare4
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment