David Knight / PololuLedStrip

Fork of PololuLedStrip by David Grayson

Revision:
26:c3193bc73cff
Parent:
25:d72818ba17cc
Child:
27:9a62663f3de2
--- a/PololuLedStrip.cpp	Thu Nov 03 21:02:47 2016 +0000
+++ b/PololuLedStrip.cpp	Wed Nov 01 23:11:49 2017 +0000
@@ -1,5 +1,12 @@
 #include "PololuLedStrip.h"
 
+// Our assembly code currently does not work with chip families like the STM32F4
+// that use the same register and a different mask for setting and clearing
+// outputs.
+#ifdef GPIO_IP_WITHOUT_BRR
+#error This chip is not supported: does not have separate registers for setting and clearing GPIO outputs.
+#endif
+
 bool PololuLedStrip::interruptFriendly = false;
 
 // The two timed delays, in units of half-cycles.