Éric Bisson
/
Code_APP3_R
app3
Fork of Code_APP1 by
Diff: main.cpp
- Revision:
- 6:2ec2a74c807f
- Parent:
- 5:1a60144f7163
- Child:
- 7:a57409bdf777
--- a/main.cpp Mon Jan 16 20:52:12 2017 +0000 +++ b/main.cpp Mon Jan 16 21:37:15 2017 +0000 @@ -1,8 +1,6 @@ #include "mbed.h" #include "header.h" -#define PI 3.1416 - Serial pc(USBTX, USBRX); SPI spi(p11, p12, p13); DigitalOut cs(p14); @@ -28,6 +26,15 @@ int addrChip = 0x3A; char buffer[3] = {0,0,0}; + *power_ptr = PCUART0; + *enableDataFlow_ptr = TXE0; + *clk_ptr = PCLK_UART0; + *baudRate_ptr = DLAB_ACTIVATE; + *baudRate_ptr = DLMSB; + *baudRate_ptr = DLLSB; + *enableFIFO_ptr = FIFO_ACTIVATE; + *pinSelect_ptr = PIN9_TX; + SetClockAndMode(250000, 0); change_dots(0x02);