diff options
author | Perry Hung <iperry@alum.mit.edu> | 2010-03-31 21:29:29 -0400 |
---|---|---|
committer | Perry Hung <iperry@alum.mit.edu> | 2010-03-31 21:29:29 -0400 |
commit | 25c7ba0ed78aea0a368bc178dd720a845dd515ac (patch) | |
tree | 86be2502247dc0dd831191ae219a62875daad97c /core/comm/HardwareSerial.cpp | |
parent | 4e51e057bb5a8d6b3475d2202af8a2a2caf9ba7b (diff) | |
download | librambutan-25c7ba0ed78aea0a368bc178dd720a845dd515ac.tar.gz librambutan-25c7ba0ed78aea0a368bc178dd720a845dd515ac.zip |
Removed inttypes.h
Removed inttypes.h from libmaple. Will have another pass through to use
the standard libmaple types, but will come in another commit.
Diffstat (limited to 'core/comm/HardwareSerial.cpp')
-rw-r--r-- | core/comm/HardwareSerial.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/comm/HardwareSerial.cpp b/core/comm/HardwareSerial.cpp index 04d8d18..7a8fed9 100644 --- a/core/comm/HardwareSerial.cpp +++ b/core/comm/HardwareSerial.cpp @@ -44,14 +44,14 @@ #define USART3_RX_PORT GPIOB_BASE #define USART3_RX_PIN 11 -HardwareSerial::HardwareSerial(uint8_t usartNum) { +HardwareSerial::HardwareSerial(uint8 usartNum) { ASSERT(usartNum == 1 || usartNum == 2 || usartNum == 3); this->usartNum = usartNum; } -uint8_t HardwareSerial::read(void) { +uint8 HardwareSerial::read(void) { return usart_getc(usartNum); } @@ -64,7 +64,7 @@ void HardwareSerial::write(unsigned char ch) { usart_putc(usartNum, ch); } -void HardwareSerial::begin(uint32_t baud) { +void HardwareSerial::begin(uint32 baud) { ASSERT(!(baud > USART_MAX_BAUD)); /* Set appropriate pin modes */ |