Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 2:8af0223a6c51
- Parent:
- 1:8fc51018d66d
- Child:
- 3:bbfc2638e858
--- a/main.cpp Sat Mar 21 16:07:43 2015 +0000 +++ b/main.cpp Sun Mar 22 14:53:13 2015 +0000 @@ -1,18 +1,32 @@ /********************************************************************************** * @file main.cpp -* @author Name +* @author Petr Dousa * @version V0.1 * @date 09-March-2015 -* @brief Does something. -* Even this! +* @brief Read PC_15, PC_14 and PC_13 and if there are on log.1, LED is blinking, ***********************************************************************************/ +/**************************************************************************************************************************************************/ +/* Table how to find 0xE000 */ +/**************************************************************************************************************************************************/ +/* Num. | 15 | 14 | 13 | 12 || 11 | 10 | 9 | 8 || 7 | 6 | 5 | 4 || 3 | 2 | 1 | 0 */ +/* Num. of pin | PC_15 | PC_14 | PC_13 | PC_12 || PC_11 | PC_10 | PC_9 | PC_8 || PC_7 | PC_6 | PC_5 | PC_4 || PC_3 | PC_2 | PC_1 | PC_0 */ +/* Num. in BIN | 1 | 1 | 1 | 0 || 0 | 0 | 0 | 0 || 0 | 0 | 0 | 0 || 0 | 0 | 0 | 0 */ +/* Num. in HEX | E || 0 || 0 || 0 */ +/**************************************************************************************************************************************************/ + /* Includes ----------------------------------------------------------------------*/ #include "mbed.h" - + +/* Defines -----------------------------------------------------------------------*/ + +/* Function prototypes -----------------------------------------------------------*/ + +/* Variables ---------------------------------------------------------------------*/ + //mbed - initialization of peripherals -PortIn myIOs(PortC, 0xE000); // PC_15 + PC_14 + PC_13 -DigitalOut myled(LED1); +PortIn myIOs(PortC, 0xE000); // inicialize port PC_15 + PC_14 + PC_13 +DigitalOut myled(LED1); // inicialize LED /* Functions----------------------------------------------------------------------*/