Skip to content
Snippets Groups Projects
Commit fc80d1c2 authored by Carl Österberg's avatar Carl Österberg
Browse files

deadline friday tasks

parent 3db6ef9d
No related branches found
No related tags found
No related merge requests found
......@@ -71,10 +71,12 @@ const APP: () = {
loop {
// set PA5 high
//8.4.7
write_u32(GPIOA_BSRR, 1 << 5); // set bit, output hight (turn on led)
wait(10_000);
// set PA5 low
//8.4.7
write_u32(GPIOA_BSRR, 1 << (5 + 16)); // clear bit, output low (turn off led)
wait(10_000);
}
......@@ -97,7 +99,6 @@ const APP: () = {
//
// 2. Comment out line 38 and uncomment line 39 (essentially omitting the `unsafe`)
//
// //unsafe { core::ptr::read_volatile(addr as *const _) }
// core::ptr::read_volatile(addr as *const _)
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment