Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface FATFileSystem GR-PEACH_video GraphicsFramework HttpServer_snapshot R_BSP mbed-rpc mbed-rtos mbed
Diff: main.cpp
- Revision:
- 14:212f66386982
- Parent:
- 12:6c002b871c4d
- Child:
- 15:ce8cc3b3f6cb
--- a/main.cpp Thu Mar 24 12:49:30 2016 +0000
+++ b/main.cpp Tue Apr 19 02:22:08 2016 +0000
@@ -55,10 +55,22 @@
EthernetInterface network;
RomRamFileSystem romramfs("romram");
+#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;
+#if defined(__ICCARM__)
+#pragma data_alignment=8
+static uint8_t JpegBuffer[2][1024 * 50]@ ".mirrorram"; //8 bytes aligned!;
+#pragma data_alignment=4
+#else
static uint8_t JpegBuffer[2][1024 * 50]__attribute((section("NC_BSS"),aligned(8))); //8 bytes aligned!;
+#endif
static size_t jcu_encode_size[2];
static int image_change = 0;
JPEG_Converter Jcu;