Example program for Port access. Blink the LED using the registers.
Revision 1:65c259961c26, committed 2019-07-22
- Comitter:
- Ladon
- Date:
- Mon Jul 22 12:32:29 2019 +0000
- Parent:
- 0:e637d54ba0a3
- Child:
- 2:f72c56822d58
- Commit message:
- Added a book reference.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Jul 21 19:23:35 2019 +0000 +++ b/main.cpp Mon Jul 22 12:32:29 2019 +0000 @@ -1,15 +1,20 @@ #include <mbed.h> -// Board: NUCLEO-F303RE. +// Board: NUCLEO-F303RE (STM32F303RE). // - // We shall write to PA5 where the LED is.. // Info: LEDs: // https://www.st.com/resource/en/user_manual/dm00105823.pdf (UM1724: STM32 Nucleo-64 boards (MB1136)) +// // Info: Talking to ports: // https://developer.arm.com/tools-and-software/embedded/legacy-tools/ds-5-development-studio/resources/tutorials/accessing-memory-mapped-peripherals +// More info: Chapter 25.4.1 from "2014 Programming Principles and Practice Using C++" +/// (https://archive.org/details/2014ProgrammingPrinciplesAndPracticeUsingCPlusPlus/page/n636) +// // Info: #defines : // https://raw.githubusercontent.com/ARMmbed/mbed-os/master/targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/device/stm32f303xe.h +// // Reference manual: // https://www.st.com/resource/en/reference_manual/dm00043574.pdf // -
Spyros Papanastasiou