Alternating buffers for DMA (works only with optimization)
This commit is contained in:
parent
fe332dea5d
commit
731bba0f0e
8 changed files with 106 additions and 40 deletions
|
@ -11,7 +11,10 @@
|
|||
#include "Config.h"
|
||||
#include "Pixel.h"
|
||||
|
||||
extern Pixel_t g_pixels[NUMPIXELS];
|
||||
extern uint8_t g_spibuffer[sizeof(g_pixels) * 8 / 2 + 1];
|
||||
extern pixel_t g_pixels[NUMPIXELS];
|
||||
|
||||
#define SPIBUFFER_SIZE (SPIBUFFER_PIXELS * sizeof(pixel_t) * 8 / 2)
|
||||
|
||||
extern uint8_t g_spibuffer[2][SPIBUFFER_SIZE];
|
||||
|
||||
#endif /* LEDBUFFERS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue