diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-09-05 18:34:44 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-09-05 22:58:36 -0400 |
commit | b6e3624a705b36b15e7f4c0637d133c7dab059bd (patch) | |
tree | 700df3f574cb1ea64faf719de4bd6607a1addc6e /wirish/comm/HardwareSPI.cpp | |
parent | 16b4c1fce5b1023cfb8210f9c12f09c71d4a755d (diff) | |
download | librambutan-b6e3624a705b36b15e7f4c0637d133c7dab059bd.tar.gz librambutan-b6e3624a705b36b15e7f4c0637d133c7dab059bd.zip |
timer refactor (c, not c++)
also removed an old ASSERT()
Diffstat (limited to 'wirish/comm/HardwareSPI.cpp')
-rw-r--r-- | wirish/comm/HardwareSPI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wirish/comm/HardwareSPI.cpp b/wirish/comm/HardwareSPI.cpp index eadcdd7..5f42db7 100644 --- a/wirish/comm/HardwareSPI.cpp +++ b/wirish/comm/HardwareSPI.cpp @@ -95,8 +95,8 @@ void HardwareSPI::begin(SPIFrequency freq, uint32 endianness, uint32 mode) { } /* Turn off PWM on shared pins */ - timer_set_mode(3, 2, TIMER_DISABLED); - timer_set_mode(3, 1, TIMER_DISABLED); + timer_set_mode(TIMER3, 2, TIMER_DISABLED); + timer_set_mode(TIMER3, 1, TIMER_DISABLED); } endianness = (endianness == LSBFIRST) ? SPI_LSBFIRST : SPI_MSBFIRST; |