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.
Revision 0:0d384a1d2092, committed 2021-11-20
- Comitter:
- pierreprovent
- Date:
- Sat Nov 20 14:26:08 2021 +0000
- Commit message:
- RTOS programme de base carte Nucleo F429ZI pour cours ELE118 du Cnam
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Nov 20 14:26:08 2021 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" + +Serial pc(USBTX,USBRX) ; + +Thread thread1; // instanciation du thread 1 +DigitalOut led1(LED1); + +void led1_thread() +{ + while (true) { + led1 = !led1; + Thread::wait(100) ; + } +} + +int main (void) +{ + pc.printf("\033[2J"); // Effacement de la console + pc.printf("\033[0;0H"); // Curseur en 0 ; 0 + pc.printf("Test de la carte Nucleo F429ZI sous RTOS MBED\n"); + pc.printf("Frequence de l'horloge systeme = %.2f MHz\n",SystemCoreClock/1000000.f) ; + thread1.start(led1_thread); + while(1) { + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Sat Nov 20 14:26:08 2021 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os.git/#4e222952d757e378d5a591ca7fd143dcda24fc7e