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-STM32F100R6
main.cpp
- Committer:
- mega64
- Date:
- 2016-01-25
- Revision:
- 1:5bc8c8e22eda
- Parent:
- 0:5057d688da32
- Child:
- 2:7cc544472c34
File content as of revision 1:5bc8c8e22eda:
#include "mbed.h"
#if 0
DigitalOut myled(PB_0);
int main()
{
// sysclk test
HAL_RCC_MCOConfig(RCC_MCO1, RCC_MCO1SOURCE_SYSCLK, RCC_MCODIV_1); // 24 MHz
while(1) {
myled = 1;
wait(0.99);
myled = 0;
wait(0.01);
myled = 1;
wait(0.8);
myled = 0;
wait(0.2);
myled = 1;
HAL_Delay(1000);
}
}
#endif
#if 1
//Serial pc(PA_9, PA_10); // tx, rx
DigitalOut myled(PB_0);
int main()
{
myled=0;
printf("Hello World!\n");
while(1) {
printf("Heartbeat!\n");
wait(1);
myled=!myled;
}
}
#endif