Dependencies: DM_FATFileSystem EthernetInterface HTTPClient mbed-rtos mbed-src
Fork of DMSupport by
Diff: Display/BiosDisplay.cpp
- Revision:
- 31:d47cffcb0a3e
- Parent:
- 22:1a58a518435c
- Child:
- 39:e1cb4dd9bfeb
diff -r a97015441bb4 -r d47cffcb0a3e Display/BiosDisplay.cpp --- a/Display/BiosDisplay.cpp Mon Jan 26 15:24:15 2015 +0100 +++ b/Display/BiosDisplay.cpp Tue Feb 17 10:41:48 2015 +0100 @@ -164,6 +164,14 @@ return NULL; } +void* BiosDisplay::allocateFramebuffers(uint32_t num, Display::Resolution res) +{ + if (_initialized && num>0) { + return malloc(fbSize()*num); + } + return NULL; +} + void BiosDisplay::setFramebuffer(void* buff) { LPC_LCD->UPBASE = (uint32_t)buff;