Exemple fait en classe th4 du cours 247-637 (2017)

Dependencies:   mbed

processusUART.cpp

Committer:
YROY2004
Date:
2017-09-15
Revision:
1:204d168becaa
Parent:
0:669a6bff2494

File content as of revision 1:204d168becaa:

#include "mbed.h"
#include "processusUART.h"


Serial pc(SERIAL_TX, SERIAL_RX);

uint16_t messagePret;

void initialiseUART(void)
{
    messagePret = 0; 
    
}

void gereUART(void)
{
    if (messagePret == 1)
    {
        pc.printf("bouton.\n");
    }

}