mbed support for LPC4088 Display Module

Dependencies:   DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos mbed-src

Dependents:   emptyProgram

Fork of DMSupport by Embedded Artists

Revision:
31:d47cffcb0a3e
Parent:
22:1a58a518435c
Child:
39:e1cb4dd9bfeb
--- a/Display/Display.h	Mon Jan 26 15:24:15 2015 +0100
+++ b/Display/Display.h	Tue Feb 17 10:41:48 2015 +0100
@@ -133,9 +133,26 @@
      *
      * Free the allocated memory when done using the free() function.
      *
+     *  @param res the resolution (default is the one that the display is using)
      *  @returns a new framebuffer or NULL if out of memory 
      */
     virtual void* allocateFramebuffer(Resolution res=Resolution_16bit_rgb565) = 0;
+    
+    /** Allocate enough memory for one or more consequtive framebuffers
+     *
+     * This function is a to make it easier to allocate memory for framebuffers
+     * as the number of bytes needed depends on width, height and bytes per pixel.
+     *
+     * Free the allocated memory when done using the free() function.
+     *
+     * Use the default parameters to get one framebuffer for the display's current
+     * resolution.
+     *
+     *  @param num the number of framebuffers, should be >= 1
+     *  @param res the resolution (default is the one that the display is using)
+     *  @returns new framebuffers or NULL if out of memory 
+     */
+    virtual void* allocateFramebuffers(uint32_t num=1, Resolution res=Resolution_16bit_rgb565) = 0;
 };
 
 #endif