Skip to content

Commit

Permalink
Fix for energia#172 replace selectModule -> setModule
Browse files Browse the repository at this point in the history
  • Loading branch information
robertinant committed Feb 16, 2013
1 parent d14a87f commit 9c3dc14
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/shared/lib/keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ parseInt KEYWORD2
parseFloat KEYWORD2
readBytes KEYWORD2
readBytesUntil KEYWORD2
setModule KEYWORD2 SetModule

# TimerSerial keywords syntax colouring
begin KEYWORD2
Expand Down
2 changes: 1 addition & 1 deletion hardware/lm4f/cores/lm4f/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ HardwareSerial::begin(unsigned long baud)
}

void
HardwareSerial::selectModule(unsigned long module)
HardwareSerial::setModule(unsigned long module)
{
ROM_UARTIntDisable(UART_BASE, UART_INT_RX | UART_INT_RT);
ROM_IntDisable(g_ulUARTInt[uartModule]);
Expand Down
Binary file added hardware/lm4f/cores/lm4f/HardwareSerial.cpp.back
Binary file not shown.
2 changes: 1 addition & 1 deletion hardware/lm4f/cores/lm4f/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class HardwareSerial : public Stream
HardwareSerial(void);
HardwareSerial(unsigned long);
void begin(unsigned long);
void selectModule(unsigned long);
void setModule(unsigned long);
void end(void);
virtual int available(void);
virtual int peek(void);
Expand Down

0 comments on commit 9c3dc14

Please sign in to comment.