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-2015 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_FUNCTIONPOINTER_H
tvendov 0:6435b67ad23c 17 #define MBED_FUNCTIONPOINTER_H
tvendov 0:6435b67ad23c 18
tvendov 0:6435b67ad23c 19 #include "Callback.h"
tvendov 0:6435b67ad23c 20 #include "toolchain.h"
tvendov 0:6435b67ad23c 21 #include <string.h>
tvendov 0:6435b67ad23c 22 #include <stdint.h>
tvendov 0:6435b67ad23c 23
tvendov 0:6435b67ad23c 24 namespace mbed {
tvendov 0:6435b67ad23c 25
tvendov 0:6435b67ad23c 26
tvendov 0:6435b67ad23c 27 // Declarations for backwards compatibility
tvendov 0:6435b67ad23c 28 // To be foward compatible, code should adopt the Callback class
tvendov 0:6435b67ad23c 29 template <typename R, typename A1>
tvendov 0:6435b67ad23c 30 class FunctionPointerArg1 : public Callback<R(A1)> {
tvendov 0:6435b67ad23c 31 public:
tvendov 0:6435b67ad23c 32 MBED_DEPRECATED_SINCE("mbed-os-5.1",
tvendov 0:6435b67ad23c 33 "FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>")
tvendov 0:6435b67ad23c 34 FunctionPointerArg1(R (*function)(A1) = 0)
tvendov 0:6435b67ad23c 35 : Callback<R(A1)>(function) {}
tvendov 0:6435b67ad23c 36
tvendov 0:6435b67ad23c 37 template<typename T>
tvendov 0:6435b67ad23c 38 MBED_DEPRECATED_SINCE("mbed-os-5.1",
tvendov 0:6435b67ad23c 39 "FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>")
tvendov 0:6435b67ad23c 40 FunctionPointerArg1(T *object, R (T::*member)(A1))
tvendov 0:6435b67ad23c 41 : Callback<R(A1)>(object, member) {}
tvendov 0:6435b67ad23c 42
tvendov 0:6435b67ad23c 43 R (*get_function())(A1) {
tvendov 0:6435b67ad23c 44 return *reinterpret_cast<R (**)(A1)>(this);
tvendov 0:6435b67ad23c 45 }
tvendov 0:6435b67ad23c 46 };
tvendov 0:6435b67ad23c 47
tvendov 0:6435b67ad23c 48 template <typename R>
tvendov 0:6435b67ad23c 49 class FunctionPointerArg1<R, void> : public Callback<R()> {
tvendov 0:6435b67ad23c 50 public:
tvendov 0:6435b67ad23c 51 MBED_DEPRECATED_SINCE("mbed-os-5.1",
tvendov 0:6435b67ad23c 52 "FunctionPointer has been replaced by Callback<void()>")
tvendov 0:6435b67ad23c 53 FunctionPointerArg1(R (*function)() = 0)
tvendov 0:6435b67ad23c 54 : Callback<R()>(function) {}
tvendov 0:6435b67ad23c 55
tvendov 0:6435b67ad23c 56 template<typename T>
tvendov 0:6435b67ad23c 57 MBED_DEPRECATED_SINCE("mbed-os-5.1",
tvendov 0:6435b67ad23c 58 "FunctionPointer has been replaced by Callback<void()>")
tvendov 0:6435b67ad23c 59 FunctionPointerArg1(T *object, R (T::*member)())
tvendov 0:6435b67ad23c 60 : Callback<R()>(object, member) {}
tvendov 0:6435b67ad23c 61
tvendov 0:6435b67ad23c 62 R (*get_function())() {
tvendov 0:6435b67ad23c 63 return *reinterpret_cast<R (**)()>(this);
tvendov 0:6435b67ad23c 64 }
tvendov 0:6435b67ad23c 65 };
tvendov 0:6435b67ad23c 66
tvendov 0:6435b67ad23c 67 typedef FunctionPointerArg1<void, void> FunctionPointer;
tvendov 0:6435b67ad23c 68
tvendov 0:6435b67ad23c 69
tvendov 0:6435b67ad23c 70 } // namespace mbed
tvendov 0:6435b67ad23c 71
tvendov 0:6435b67ad23c 72 #endif
tvendov 0:6435b67ad23c 73