Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Multi_WS2811 mbed
Fork of Multi_WS2811_test by
Diff: WS2811.h
- Revision:
- 23:33df42ff2541
- Parent:
- 22:abfed71656bd
- Child:
- 30:52e9205a8059
--- a/WS2811.h Thu Jan 02 02:31:24 2014 +0000
+++ b/WS2811.h Thu Jan 02 10:30:25 2014 +0000
@@ -21,6 +21,8 @@
#define MAX_LEDS_PER_STRIP 60
+extern "C" void DMA0_IRQHandler();
+
class WS2811 : public LedStrip
{
public:
@@ -30,8 +32,10 @@
virtual void show();
virtual void blank();
+ static void startDMA();
+ static bool is_dma_done();
+
private:
- Timer guardtime;
uint32_t pinMask;
void writePixel(unsigned n, uint8_t *p);
@@ -40,11 +44,9 @@
static bool initialized;
static uint32_t enabledPins;
+ static Timer guardtime;
static void writeByte(uint8_t byte, uint32_t mask, uint32_t *dest);
- static void startDMA();
-
- static bool is_dma_done();
static void hw_init();
static void io_init();
@@ -52,6 +54,8 @@
static void dma_init();
static void tpm_init();
static void dma_data_init();
+
+ friend void DMA0_IRQHandler();
};
#endif
