David Grayson / PololuLedStrip

Dependents:   WoYaoChengGOng V2-WoYaoChengGOng STM32_MagneticLight tape_Led_Sample ... more

Files at this revision

API Documentation at this revision

Comitter:
DavidEGrayson
Date:
Wed Nov 01 23:11:49 2017 +0000
Parent:
25:d72818ba17cc
Commit message:
Make it be a compile-time error if GPIO_IP_WITHOUT_BRR is set.

Changed in this revision

PololuLedStrip.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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.