Merge branch 'master' of https://bitbucket.org/Tectu/ugfx
commit
5c8f83ebc4
|
@ -57,8 +57,13 @@ static inline uint16_t read_data(GDisplay *g) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(GDISP_USE_DMA) || defined(__DOXYGEN__)
|
||||
//#error "GDISP - SSD1289: This interface does not support DMA"
|
||||
//Optional define if your board interface supports it
|
||||
//#define GDISP_USE_DMA TRUE
|
||||
|
||||
// Optional define - valid only when GDISP_USE_DMA is TRUE
|
||||
//#define GDISP_NO_DMA_FROM_STACK FALSE
|
||||
|
||||
#if defined(GDISP_USE_DMA) && GDISP_USE_DMA
|
||||
|
||||
static inline void dma_with_noinc(GDisplay *g, color_t *buffer, int area) {
|
||||
(void) g;
|
||||
|
|
|
@ -31,6 +31,12 @@
|
|||
#ifndef GDISP_INITIAL_BACKLIGHT
|
||||
#define GDISP_INITIAL_BACKLIGHT 100
|
||||
#endif
|
||||
#ifndef GDISP_USE_DMA
|
||||
#define GDISP_USE_DMA FALSE
|
||||
#endif
|
||||
#ifndef GDISP_NO_DMA_FROM_STACK
|
||||
#define GDISP_NO_DMA_FROM_STACK FALSE
|
||||
#endif
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver local functions. */
|
||||
|
@ -229,9 +235,13 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if GDISP_HARDWARE_FILLS && defined(GDISP_USE_DMA)
|
||||
#if GDISP_HARDWARE_FILLS && GDISP_USE_DMA
|
||||
LLDSPEC void gdisp_lld_fill_area(GDisplay *g) {
|
||||
uint16_t c;
|
||||
#if GDISP_NO_DMA_FROM_STACK
|
||||
static LLDCOLOR_TYPE c;
|
||||
#else
|
||||
LLDCOLOR_TYPE c;
|
||||
#endif
|
||||
|
||||
c = gdispColor2Native(g->p.color);
|
||||
acquire_bus(g);
|
||||
|
@ -242,7 +252,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if GDISP_HARDWARE_BITFILLS && defined(GDISP_USE_DMA)
|
||||
#if GDISP_HARDWARE_BITFILLS && GDISP_USE_DMA
|
||||
#if GDISP_PIXELFORMAT != GDISP_LLD_PIXELFORMAT
|
||||
#error "GDISP: SSD1289: BitBlit is only available in RGB565 pixel format"
|
||||
#endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#define GDISP_HARDWARE_STREAM_POS TRUE
|
||||
#define GDISP_HARDWARE_CONTROL TRUE
|
||||
|
||||
#if defined(GDISP_USE_DMA)
|
||||
#if defined(GDISP_USE_DMA) && GDISP_USE_DMA
|
||||
#define GDISP_HARDWARE_FILLS TRUE
|
||||
#if !defined(GDISP_PIXELFORMAT) || GDISP_PIXELFORMAT == 0x2565
|
||||
// Hardware BitBlts are only supported in native pixel format on this controller
|
||||
|
|
|
@ -57,8 +57,13 @@ static inline uint16_t read_data(GDisplay *g) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(GDISP_USE_DMA) || defined(__DOXYGEN__)
|
||||
//#error "GDISP - SSD2119: This interface does not support DMA"
|
||||
//Optional define if your board interface supports it
|
||||
//#define GDISP_USE_DMA TRUE
|
||||
|
||||
// Optional define - valid only when GDISP_USE_DMA is TRUE
|
||||
//#define GDISP_NO_DMA_FROM_STACK FALSE
|
||||
|
||||
#if defined(GDISP_USE_DMA) && GDISP_USE_DMA
|
||||
|
||||
static inline void dma_with_noinc(GDisplay *g, color_t *buffer, int area) {
|
||||
(void) g;
|
||||
|
|
|
@ -31,6 +31,12 @@
|
|||
#ifndef GDISP_INITIAL_BACKLIGHT
|
||||
#define GDISP_INITIAL_BACKLIGHT 100
|
||||
#endif
|
||||
#ifndef GDISP_USE_DMA
|
||||
#define GDISP_USE_DMA FALSE
|
||||
#endif
|
||||
#ifndef GDISP_NO_DMA_FROM_STACK
|
||||
#define GDISP_NO_DMA_FROM_STACK FALSE
|
||||
#endif
|
||||
|
||||
#include "drivers/gdisp/SSD2119/ssd2119.h"
|
||||
|
||||
|
@ -265,9 +271,13 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay* g) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if GDISP_HARDWARE_FILLS && defined(GDISP_USE_DMA)
|
||||
#if GDISP_HARDWARE_FILLS && GDISP_USE_DMA
|
||||
LLDSPEC void gdisp_lld_fill_area(GDisplay* g) {
|
||||
LLDCOLOR_TYPE c;
|
||||
#if GDISP_NO_DMA_FROM_STACK
|
||||
static LLDCOLOR_TYPE c;
|
||||
#else
|
||||
LLDCOLOR_TYPE c;
|
||||
#endif
|
||||
|
||||
c = gdispColor2Native(g->p.color);
|
||||
acquire_bus(g);
|
||||
|
@ -278,7 +288,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay* g) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if GDISP_HARDWARE_BITFILLS && defined(GDISP_USE_DMA)
|
||||
#if GDISP_HARDWARE_BITFILLS && GDISP_USE_DMA
|
||||
#if GDISP_PIXELFORMAT != GDISP_LLD_PIXELFORMAT
|
||||
#error "GDISP: SSD2119: BitBlit is only available in RGB565 pixel format"
|
||||
#endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#define GDISP_HARDWARE_STREAM_POS TRUE
|
||||
#define GDISP_HARDWARE_CONTROL TRUE
|
||||
|
||||
#if defined(GDISP_USE_DMA)
|
||||
#if defined(GDISP_USE_DMA) && GDISP_USE_DMA
|
||||
#define GDISP_HARDWARE_FILLS TRUE
|
||||
#if !defined(GDISP_PIXELFORMAT) || GDISP_PIXELFORMAT == 0x2565
|
||||
// Hardware BitBlts are only supported in native pixel format on this controller
|
||||
|
|
Loading…
Reference in New Issue