LEDs, again

    1. $ cargo run
    2. Breakpoint 1, main () at src/08-leds-again/src/main.rs:9
    3. 9 let (gpioe, rcc) = aux8::init();
    4. (gdb) continue
    5. Continuing.
    6. Program received signal SIGTRAP, Trace/breakpoint trap.
    7. 0x08000f3c in __bkpt ()
    8. (gdb) finish
    9. Run till exit from #0 0x08000f3c in __bkpt ()
    10. main () at src/08-leds-again/src/main.rs:25
    11. 25 aux8::bkpt();
    12. (gdb) p/x *gpioe
    13. $1 = stm32f30x::gpioc::RegisterBlock {
    14. moder: stm32f30x::gpioc::MODER {
    15. register: vcell::VolatileCell<u32> {
    16. value: core::cell::UnsafeCell<u32> {
    17. value: 0x0
    18. }
    19. }
    20. },
    21. otyper: stm32f30x::gpioc::OTYPER {
    22. register: vcell::VolatileCell<u32> {
    23. value: core::cell::UnsafeCell<u32> {
    24. value: 0x0
    25. }
    26. },
    27. register: vcell::VolatileCell<u32> {
    28. value: core::cell::UnsafeCell<u32> {
    29. value: 0x0
    30. }
    31. }
    32. },
    33. pupdr: stm32f30x::gpioc::PUPDR {
    34. register: vcell::VolatileCell<u32> {
    35. value: core::cell::UnsafeCell<u32> {
    36. value: 0x0
    37. }
    38. }
    39. },
    40. idr: stm32f30x::gpioc::IDR {
    41. register: vcell::VolatileCell<u32> {
    42. value: core::cell::UnsafeCell<u32> {
    43. value: 0x0
    44. }
    45. }
    46. },
    47. odr: stm32f30x::gpioc::ODR {
    48. register: vcell::VolatileCell<u32> {
    49. value: core::cell::UnsafeCell<u32> {
    50. value: 0x0
    51. }
    52. }
    53. },
    54. bsrr: stm32f30x::gpioc::BSRR {
    55. register: vcell::VolatileCell<u32> {
    56. value: 0x0
    57. }
    58. },
    59. lckr: stm32f30x::gpioc::LCKR {
    60. register: vcell::VolatileCell<u32> {
    61. value: core::cell::UnsafeCell<u32> {
    62. value: 0x0
    63. }
    64. }
    65. },
    66. afrl: stm32f30x::gpioc::AFRL {
    67. register: vcell::VolatileCell<u32> {
    68. value: core::cell::UnsafeCell<u32> {
    69. value: 0x0
    70. }
    71. }
    72. },
    73. afrh: stm32f30x::gpioc::AFRH {
    74. register: vcell::VolatileCell<u32> {
    75. value: core::cell::UnsafeCell<u32> {
    76. value: 0x0
    77. }
    78. }
    79. },
    80. brr: stm32f30x::gpioc::BRR {
    81. register: vcell::VolatileCell<u32> {
    82. value: core::cell::UnsafeCell<u32> {
    83. value: 0x0
    84. }
    85. }
    86. }