Lcd companion boards support (VKLCD50RTA & VKLCD70RT)

What is this ?

This is a demo program using Renesas RGA library & USB Camera to demonstrate VK-RZ/A1H's companion boards workability.


Supported companion Boards:

VKLCD50RTA

/media/uploads/tvendov/front_view_hmi_50.png /media/uploads/tvendov/side_view_hmi_50.png

VKLCD70RT

/media/uploads/tvendov/front_view_hmi_70.png/media/uploads/tvendov/side_view_hmi_70.png /media/uploads/tvendov/front_view_lvds.png/media/uploads/tvendov/back_view_lvds.png


How to Configure ?

You can choose which display is installed by altering the lcd_panel.h file

Leave the active one & comment out the others:

#define     LCD_VDC5_CH0_PANEL                  LCD_CH0_PANEL_VKLCD50RTA
//#define     LCD_VDC5_CH0_PANEL                  LCD_CH0_PANEL_VKLCD70RT

You can alter the whole demo with your pictures if you like:


How to compile ?

  • The Demo can be compiled in 3 modes:
    • I. Execution from the internal 10-MB on-chip SRAM.
      • After import in the online compiler just leave only the VKRZA1H_RAM.sct & delete all others linker files in the TOOLCHAIN_ARM_STD folder.
      • Save the result binary in the SD Card (<SD>:\vkrza1\lcd_sample ), altering vkrza1h.ini by this way
    • II. Execution from the on-board serial FALSH in dual (32-MB) mode.
      • After import in the online compiler just leave only the VKRZA1H_DOUBLE.sct & delete all others linker files in the TOOLCHAIN_ARM_STD folder.
      • Drag & drop the result binary in MBED disk, (previously inited in double flash mode)
    • III. Execution from the on-board serial FALSH in single (16-MB) mode.
      • After import in the online compiler just leave only the VKRZA1H_SINGLE.sct & delete all others linker files in the TOOLCHAIN_ARM_STD folder.
      • Drag & drop the result binary in MBED disk, (previously inited in single flash mode )

Quick presentation:


Other demos ?

More demos you can find on our FTP

Committer:
tvendov
Date:
Thu Feb 16 10:23:48 2017 +0000
Revision:
0:6435b67ad23c
Initial lcd support (VKLCD50RTA & VKLCD70RT companion boards)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tvendov 0:6435b67ad23c 1 /* mbed Microcontroller Library
tvendov 0:6435b67ad23c 2 * Copyright (c) 2006-2013 ARM Limited
tvendov 0:6435b67ad23c 3 *
tvendov 0:6435b67ad23c 4 * Licensed under the Apache License, Version 2.0 (the "License");
tvendov 0:6435b67ad23c 5 * you may not use this file except in compliance with the License.
tvendov 0:6435b67ad23c 6 * You may obtain a copy of the License at
tvendov 0:6435b67ad23c 7 *
tvendov 0:6435b67ad23c 8 * http://www.apache.org/licenses/LICENSE-2.0
tvendov 0:6435b67ad23c 9 *
tvendov 0:6435b67ad23c 10 * Unless required by applicable law or agreed to in writing, software
tvendov 0:6435b67ad23c 11 * distributed under the License is distributed on an "AS IS" BASIS,
tvendov 0:6435b67ad23c 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tvendov 0:6435b67ad23c 13 * See the License for the specific language governing permissions and
tvendov 0:6435b67ad23c 14 * limitations under the License.
tvendov 0:6435b67ad23c 15 */
tvendov 0:6435b67ad23c 16 #ifndef MBED_LOCALFILESYSTEM_H
tvendov 0:6435b67ad23c 17 #define MBED_LOCALFILESYSTEM_H
tvendov 0:6435b67ad23c 18
tvendov 0:6435b67ad23c 19 #include "platform.h"
tvendov 0:6435b67ad23c 20
tvendov 0:6435b67ad23c 21 #if DEVICE_LOCALFILESYSTEM
tvendov 0:6435b67ad23c 22
tvendov 0:6435b67ad23c 23 #include "FileSystemLike.h"
tvendov 0:6435b67ad23c 24 #include "PlatformMutex.h"
tvendov 0:6435b67ad23c 25
tvendov 0:6435b67ad23c 26 namespace mbed {
tvendov 0:6435b67ad23c 27
tvendov 0:6435b67ad23c 28 FILEHANDLE local_file_open(const char* name, int flags);
tvendov 0:6435b67ad23c 29
tvendov 0:6435b67ad23c 30 class LocalFileHandle : public FileHandle {
tvendov 0:6435b67ad23c 31
tvendov 0:6435b67ad23c 32 public:
tvendov 0:6435b67ad23c 33 LocalFileHandle(FILEHANDLE fh);
tvendov 0:6435b67ad23c 34
tvendov 0:6435b67ad23c 35 virtual int close();
tvendov 0:6435b67ad23c 36
tvendov 0:6435b67ad23c 37 virtual ssize_t write(const void *buffer, size_t length);
tvendov 0:6435b67ad23c 38
tvendov 0:6435b67ad23c 39 virtual ssize_t read(void *buffer, size_t length);
tvendov 0:6435b67ad23c 40
tvendov 0:6435b67ad23c 41 virtual int isatty();
tvendov 0:6435b67ad23c 42
tvendov 0:6435b67ad23c 43 virtual off_t lseek(off_t position, int whence);
tvendov 0:6435b67ad23c 44
tvendov 0:6435b67ad23c 45 virtual int fsync();
tvendov 0:6435b67ad23c 46
tvendov 0:6435b67ad23c 47 virtual off_t flen();
tvendov 0:6435b67ad23c 48
tvendov 0:6435b67ad23c 49 protected:
tvendov 0:6435b67ad23c 50 virtual void lock();
tvendov 0:6435b67ad23c 51 virtual void unlock();
tvendov 0:6435b67ad23c 52 FILEHANDLE _fh;
tvendov 0:6435b67ad23c 53 int pos;
tvendov 0:6435b67ad23c 54 PlatformMutex _mutex;
tvendov 0:6435b67ad23c 55 };
tvendov 0:6435b67ad23c 56
tvendov 0:6435b67ad23c 57 /** A filesystem for accessing the local mbed Microcontroller USB disk drive
tvendov 0:6435b67ad23c 58 *
tvendov 0:6435b67ad23c 59 * This allows programs to read and write files on the same disk drive that is used to program the
tvendov 0:6435b67ad23c 60 * mbed Microcontroller. Once created, the standard C file access functions are used to open,
tvendov 0:6435b67ad23c 61 * read and write files.
tvendov 0:6435b67ad23c 62 *
tvendov 0:6435b67ad23c 63 * @Note Synchronization level: Thread safe
tvendov 0:6435b67ad23c 64 *
tvendov 0:6435b67ad23c 65 * Example:
tvendov 0:6435b67ad23c 66 * @code
tvendov 0:6435b67ad23c 67 * #include "mbed.h"
tvendov 0:6435b67ad23c 68 *
tvendov 0:6435b67ad23c 69 * LocalFileSystem local("local"); // Create the local filesystem under the name "local"
tvendov 0:6435b67ad23c 70 *
tvendov 0:6435b67ad23c 71 * int main() {
tvendov 0:6435b67ad23c 72 * FILE *fp = fopen("/local/out.txt", "w"); // Open "out.txt" on the local file system for writing
tvendov 0:6435b67ad23c 73 * fprintf(fp, "Hello World!");
tvendov 0:6435b67ad23c 74 * fclose(fp);
tvendov 0:6435b67ad23c 75 * remove("/local/out.txt"); // Removes the file "out.txt" from the local file system
tvendov 0:6435b67ad23c 76 *
tvendov 0:6435b67ad23c 77 * DIR *d = opendir("/local"); // Opens the root directory of the local file system
tvendov 0:6435b67ad23c 78 * struct dirent *p;
tvendov 0:6435b67ad23c 79 * while((p = readdir(d)) != NULL) { // Print the names of the files in the local file system
tvendov 0:6435b67ad23c 80 * printf("%s\n", p->d_name); // to stdout.
tvendov 0:6435b67ad23c 81 * }
tvendov 0:6435b67ad23c 82 * closedir(d);
tvendov 0:6435b67ad23c 83 * }
tvendov 0:6435b67ad23c 84 * @endcode
tvendov 0:6435b67ad23c 85 *
tvendov 0:6435b67ad23c 86 * @note
tvendov 0:6435b67ad23c 87 * If the microcontroller program makes an access to the local drive, it will be marked as "removed"
tvendov 0:6435b67ad23c 88 * on the Host computer. This means it is no longer accessible from the Host Computer.
tvendov 0:6435b67ad23c 89 *
tvendov 0:6435b67ad23c 90 * The drive will only re-appear when the microcontroller program exists. Note that if the program does
tvendov 0:6435b67ad23c 91 * not exit, you will need to hold down reset on the mbed Microcontroller to be able to see the drive again!
tvendov 0:6435b67ad23c 92 */
tvendov 0:6435b67ad23c 93 class LocalFileSystem : public FileSystemLike {
tvendov 0:6435b67ad23c 94 // No modifiable state
tvendov 0:6435b67ad23c 95
tvendov 0:6435b67ad23c 96 public:
tvendov 0:6435b67ad23c 97 LocalFileSystem(const char* n) : FileSystemLike(n) {
tvendov 0:6435b67ad23c 98
tvendov 0:6435b67ad23c 99 }
tvendov 0:6435b67ad23c 100
tvendov 0:6435b67ad23c 101 virtual FileHandle *open(const char* name, int flags);
tvendov 0:6435b67ad23c 102 virtual int remove(const char *filename);
tvendov 0:6435b67ad23c 103 virtual DirHandle *opendir(const char *name);
tvendov 0:6435b67ad23c 104 };
tvendov 0:6435b67ad23c 105
tvendov 0:6435b67ad23c 106 } // namespace mbed
tvendov 0:6435b67ad23c 107
tvendov 0:6435b67ad23c 108 #endif
tvendov 0:6435b67ad23c 109
tvendov 0:6435b67ad23c 110 #endif
tvendov 0:6435b67ad23c 111