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.
Diff: UART.h
- Revision:
- 1:2b2be189b4db
- Parent:
- 0:aab1f335cf6b
--- a/UART.h Mon Jan 11 19:10:09 2016 +0000
+++ b/UART.h Mon Jan 11 21:09:20 2016 +0000
@@ -2,7 +2,7 @@
{
public:
//Le constructeur prend en parametre des valeurs de REGISTRES pour les pins, pas les "pin names"
- UART(int registreTx, int registreRx);
+ UART();
//Ecrit un caractere
int putc(int c);
//Sert a savoir si un bit peut etre ecrit dans le registre
@@ -11,22 +11,15 @@
private:
//Registre du POWER
int * PCOMP;
- PCOMP = 0x400FC0C4;
//Registre du CLOCK
int * PCLKSEL0;
- PCLKSEL0 = 0x400FC1A8;
//Registre pour le BAUD RATE
int * U0LCR;
- U0LCR = 0x4000C00C;
//Registre pour le BAUD RATE
int * U0DLL;
- U0DLL = 0x4000C000;
//Registre pour le BAUD RATE
int * U0DLM;
- U0DLM = 0x4000C004;
//Registre du FIFO
int * U0FCR;
- U0FCR = 0x4000C008;
int * PINSEL0;
- PINSEL0 = 0x4002C000;
-}
\ No newline at end of file
+};
\ No newline at end of file