aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@robocracy.org>2015-06-12 03:06:02 -0700
committerbryan newbold <bnewbold@robocracy.org>2015-06-12 03:16:03 -0700
commit8038a6e3386d59af6a1a099e21234a93be15ef15 (patch)
tree4f7e265affae3490783c607e0b7b89ee1b1d5936 /wirish
parent035a069b838a1b5a7df2d254d3c8617ea3dc98b5 (diff)
downloadlibrambutan-8038a6e3386d59af6a1a099e21234a93be15ef15.tar.gz
librambutan-8038a6e3386d59af6a1a099e21234a93be15ef15.zip
wirish: enable HardwareSPI for STM32F2-4
Diffstat (limited to 'wirish')
-rw-r--r--wirish/include/wirish/wirish.h2
-rw-r--r--wirish/rules.mk2
2 files changed, 1 insertions, 3 deletions
diff --git a/wirish/include/wirish/wirish.h b/wirish/include/wirish/wirish.h
index 606aac0..75a2d6d 100644
--- a/wirish/include/wirish/wirish.h
+++ b/wirish/include/wirish/wirish.h
@@ -44,9 +44,7 @@
#include <wirish/wirish_debug.h>
#include <wirish/wirish_math.h>
#include <wirish/wirish_time.h>
-#if STM32_MCU_SERIES == STM32_SERIES_F1 /* FIXME [0.0.13?] port to F2 */
#include <wirish/HardwareSPI.h>
-#endif
#include <wirish/HardwareSerial.h>
#include <wirish/HardwareTimer.h>
#include <wirish/usb_serial.h>
diff --git a/wirish/rules.mk b/wirish/rules.mk
index 13da229..38936c1 100644
--- a/wirish/rules.mk
+++ b/wirish/rules.mk
@@ -41,8 +41,8 @@ cppSRCS_$(d) += Print.cpp
cppSRCS_$(d) += pwm.cpp
ifeq ($(MCU_SERIES), stm32f1)
cppSRCS_$(d) += usb_serial.cpp # HACK: this is currently STM32F1 only.
-cppSRCS_$(d) += HardwareSPI.cpp # FIXME: port to F2 and fix wirish.h
endif
+cppSRCS_$(d) += HardwareSPI.cpp # FIXME: port to F2 and fix wirish.h
cppSRCS_$(d) += wirish_analog.cpp
cppSRCS_$(d) += wirish_digital.cpp
cppSRCS_$(d) += wirish_math.cpp