Laurent Huot
/
SPI
drtgddf
UART.cpp
- Committer:
- larryspaghetti
- Date:
- 2016-01-11
- Revision:
- 0:aab1f335cf6b
- Child:
- 1:2b2be189b4db
File content as of revision 0:aab1f335cf6b:
#include "UART.h" UART::UART() { //*PCLKSEL0 |= 0x000000C0; //Donne acces aux registres DLL et DLM pour set le baud rate *U0LCR |= 0x00000080; //On active les pins pour TXD0 *PINSEL0 &= ~0x00000020; *PINSEL0 |= 0x00000010; //On active le FIFO *U0FCR |= 0x00000001; //8 bits de data *U0LCR |= 0x00000003; //1 Seul stop bit, pas de parite *U0LCR &= ~0x0000000C; }