Daiki Kato / Mbed 2 deprecated GR-PEACH_LCD_4_3inch_sample

Dependencies:   GR-PEACH_video mbed-rtos mbed

Fork of GR-PEACH_LCD_sample by Daiki Kato

Files at this revision

API Documentation at this revision

Comitter:
dkato
Date:
Tue Apr 19 02:42:13 2016 +0000
Parent:
3:b5aaf7215800
Commit message:
Supports IAR.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Apr 07 07:28:19 2016 +0000
+++ b/main.cpp	Tue Apr 19 02:42:13 2016 +0000
@@ -109,7 +109,13 @@
 }
 #endif
 
+#if defined(__ICCARM__)
+#pragma data_alignment=16
+static uint8_t FrameBuffer_Video[VIDEO_BUFFER_STRIDE * VIDEO_BUFFER_HEIGHT]@ ".mirrorram";  //16 bytes aligned!;
+#pragma data_alignment=4
+#else
 static uint8_t FrameBuffer_Video[VIDEO_BUFFER_STRIDE * VIDEO_BUFFER_HEIGHT]__attribute((section("NC_BSS"),aligned(16)));  //16 bytes aligned!;
+#endif
 static volatile int32_t vsync_count = 0;
 static volatile int32_t vfield_count = 1;
 static int image_change = 0;
--- a/mbed.bld	Thu Apr 07 07:28:19 2016 +0000
+++ b/mbed.bld	Tue Apr 19 02:42:13 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file