Alternating buffers for DMA (works only with optimization)

This commit is contained in:
Attila Body 2020-12-01 14:35:47 +01:00
parent fe332dea5d
commit 731bba0f0e
8 changed files with 106 additions and 40 deletions

View file

@ -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_ */