I was able to get dwelche's blinker01 example to work fine; thanks yet again Old Timer!
I headed over to the reference manual to trace through how that code works, and it's easy enough to follow.
- 1) Enabling Port C using bit 4 on the
- 2) Set bits 21 and 20 of the
01(output max 10Mhz)
- 2.1) GPIO_c_CRH is
0x4001 1000 GPIO Port C+
- 3) Sets bits 23 and 22 to
00for push-pull output
- 4) ...you get the point
The trouble I am having is probably a super simple thing from lack of experience:
I could not find out why port C is the one that's enabled? The Pin is called
PC13, and there are other pins:
PB15. Would I then enable Ports A and B for those pins?
Why then are there A through G? I also had trouble figuring out the Alternate Functions for this MCU. My experience with AF's is only from the Raspberry Pi.