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
|
@ -18,14 +18,14 @@ typedef struct {
|
|||
uint8_t g;
|
||||
uint8_t r;
|
||||
uint8_t b;
|
||||
} Pixel_t;
|
||||
} pixel_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
struct Pixel : public Pixel_t {
|
||||
struct Pixel : public pixel_t {
|
||||
Pixel(uint8_t _r, uint8_t _g, uint8_t _b) {
|
||||
g =_g;
|
||||
r = _r;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue