diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-12-17 10:49:09 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-12-17 10:49:09 +1000 |
commit | e5d69abf020920c31cc721547cf5f0fb9ff9975c (patch) | |
tree | 2325b80cfc4f5c524ea62f6eb8925935fb5366be /drivers/gdisp/SSD1289/board_SSD1289_template.h | |
parent | 05354e057d59b3d6fe47a6e3c0c979080b091108 (diff) | |
download | uGFX-e5d69abf020920c31cc721547cf5f0fb9ff9975c.tar.gz uGFX-e5d69abf020920c31cc721547cf5f0fb9ff9975c.tar.bz2 uGFX-e5d69abf020920c31cc721547cf5f0fb9ff9975c.zip |
Update SSD1289 and SSD2119 drivers to support using CCM memory for stack when using DMA.
Use GDISP_NO_DMA_FROM_STACK.
Diffstat (limited to 'drivers/gdisp/SSD1289/board_SSD1289_template.h')
-rw-r--r-- | drivers/gdisp/SSD1289/board_SSD1289_template.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gdisp/SSD1289/board_SSD1289_template.h b/drivers/gdisp/SSD1289/board_SSD1289_template.h index b86d9579..346519c4 100644 --- a/drivers/gdisp/SSD1289/board_SSD1289_template.h +++ b/drivers/gdisp/SSD1289/board_SSD1289_template.h @@ -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; |