From e5d69abf020920c31cc721547cf5f0fb9ff9975c Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 17 Dec 2014 10:49:09 +1000 Subject: Update SSD1289 and SSD2119 drivers to support using CCM memory for stack when using DMA. Use GDISP_NO_DMA_FROM_STACK. --- drivers/gdisp/SSD1289/board_SSD1289_template.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'drivers/gdisp/SSD1289/board_SSD1289_template.h') 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; -- cgit v1.2.3