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 #include "CallChain.h"
tvendov 0:6435b67ad23c 2 #include "cmsis.h"
tvendov 0:6435b67ad23c 3 #include "critical.h"
tvendov 0:6435b67ad23c 4
tvendov 0:6435b67ad23c 5 namespace mbed {
tvendov 0:6435b67ad23c 6
tvendov 0:6435b67ad23c 7 class CallChainLink {
tvendov 0:6435b67ad23c 8 public:
tvendov 0:6435b67ad23c 9 CallChainLink(): cb(), next(NULL) {
tvendov 0:6435b67ad23c 10 // No work to do
tvendov 0:6435b67ad23c 11 }
tvendov 0:6435b67ad23c 12
tvendov 0:6435b67ad23c 13 CallChainLink(Callback<void()> &callback): cb(callback), next(NULL) {
tvendov 0:6435b67ad23c 14 // No work to do
tvendov 0:6435b67ad23c 15 }
tvendov 0:6435b67ad23c 16 Callback<void()> cb;
tvendov 0:6435b67ad23c 17 CallChainLink * next;
tvendov 0:6435b67ad23c 18 };
tvendov 0:6435b67ad23c 19
tvendov 0:6435b67ad23c 20 CallChain::CallChain(int size) : _chain(NULL) {
tvendov 0:6435b67ad23c 21 // No work to do
tvendov 0:6435b67ad23c 22 }
tvendov 0:6435b67ad23c 23
tvendov 0:6435b67ad23c 24 CallChain::~CallChain() {
tvendov 0:6435b67ad23c 25 clear();
tvendov 0:6435b67ad23c 26 }
tvendov 0:6435b67ad23c 27
tvendov 0:6435b67ad23c 28 pFunctionPointer_t CallChain::add(Callback<void()> func) {
tvendov 0:6435b67ad23c 29 CallChainLink *new_link = new CallChainLink(func);
tvendov 0:6435b67ad23c 30 if (NULL == _chain) {
tvendov 0:6435b67ad23c 31 _chain = new_link;
tvendov 0:6435b67ad23c 32 return &new_link->cb;
tvendov 0:6435b67ad23c 33 }
tvendov 0:6435b67ad23c 34
tvendov 0:6435b67ad23c 35 CallChainLink *link = _chain;
tvendov 0:6435b67ad23c 36 while (true) {
tvendov 0:6435b67ad23c 37 if (NULL == link->next) {
tvendov 0:6435b67ad23c 38 link->next = new_link;
tvendov 0:6435b67ad23c 39 return &new_link->cb;
tvendov 0:6435b67ad23c 40 }
tvendov 0:6435b67ad23c 41 link = link->next;
tvendov 0:6435b67ad23c 42 }
tvendov 0:6435b67ad23c 43 }
tvendov 0:6435b67ad23c 44
tvendov 0:6435b67ad23c 45 pFunctionPointer_t CallChain::add_front(Callback<void()> func) {
tvendov 0:6435b67ad23c 46 CallChainLink *link = new CallChainLink(func);
tvendov 0:6435b67ad23c 47 link->next = _chain;
tvendov 0:6435b67ad23c 48 _chain = link->next;
tvendov 0:6435b67ad23c 49 return &link->cb;
tvendov 0:6435b67ad23c 50 }
tvendov 0:6435b67ad23c 51
tvendov 0:6435b67ad23c 52 int CallChain::size() const {
tvendov 0:6435b67ad23c 53 CallChainLink *link = _chain;
tvendov 0:6435b67ad23c 54 int elements = 0;
tvendov 0:6435b67ad23c 55 while (link != NULL) {
tvendov 0:6435b67ad23c 56 elements++;
tvendov 0:6435b67ad23c 57 link = link->next;
tvendov 0:6435b67ad23c 58 }
tvendov 0:6435b67ad23c 59 return elements;
tvendov 0:6435b67ad23c 60 }
tvendov 0:6435b67ad23c 61
tvendov 0:6435b67ad23c 62 pFunctionPointer_t CallChain::get(int idx) const {
tvendov 0:6435b67ad23c 63 CallChainLink *link = _chain;
tvendov 0:6435b67ad23c 64 for (int i = 0; i < idx; i++) {
tvendov 0:6435b67ad23c 65 if (NULL == link) {
tvendov 0:6435b67ad23c 66 break;
tvendov 0:6435b67ad23c 67 }
tvendov 0:6435b67ad23c 68 link = link->next;
tvendov 0:6435b67ad23c 69 }
tvendov 0:6435b67ad23c 70 return &link->cb;
tvendov 0:6435b67ad23c 71 }
tvendov 0:6435b67ad23c 72
tvendov 0:6435b67ad23c 73 int CallChain::find(pFunctionPointer_t f) const {
tvendov 0:6435b67ad23c 74 CallChainLink *link = _chain;
tvendov 0:6435b67ad23c 75 int i = 0;
tvendov 0:6435b67ad23c 76 while (link != NULL) {
tvendov 0:6435b67ad23c 77 if (f == &link->cb) {
tvendov 0:6435b67ad23c 78 return i;
tvendov 0:6435b67ad23c 79 }
tvendov 0:6435b67ad23c 80 i++;
tvendov 0:6435b67ad23c 81 link = link->next;
tvendov 0:6435b67ad23c 82 }
tvendov 0:6435b67ad23c 83 return -1;
tvendov 0:6435b67ad23c 84 }
tvendov 0:6435b67ad23c 85
tvendov 0:6435b67ad23c 86 void CallChain::clear() {
tvendov 0:6435b67ad23c 87 CallChainLink *link = _chain;
tvendov 0:6435b67ad23c 88 _chain = NULL;
tvendov 0:6435b67ad23c 89 while (link != NULL) {
tvendov 0:6435b67ad23c 90 CallChainLink *temp = link->next;
tvendov 0:6435b67ad23c 91 delete link;
tvendov 0:6435b67ad23c 92 link = temp;
tvendov 0:6435b67ad23c 93 }
tvendov 0:6435b67ad23c 94 }
tvendov 0:6435b67ad23c 95
tvendov 0:6435b67ad23c 96 bool CallChain::remove(pFunctionPointer_t f) {
tvendov 0:6435b67ad23c 97 CallChainLink *link = _chain;
tvendov 0:6435b67ad23c 98 while (link != NULL) {
tvendov 0:6435b67ad23c 99 if (f == &link->cb) {
tvendov 0:6435b67ad23c 100 delete link;
tvendov 0:6435b67ad23c 101 return true;
tvendov 0:6435b67ad23c 102 }
tvendov 0:6435b67ad23c 103 link = link->next;
tvendov 0:6435b67ad23c 104 }
tvendov 0:6435b67ad23c 105 return false;
tvendov 0:6435b67ad23c 106 }
tvendov 0:6435b67ad23c 107
tvendov 0:6435b67ad23c 108 void CallChain::call() {
tvendov 0:6435b67ad23c 109 CallChainLink *link = _chain;
tvendov 0:6435b67ad23c 110 while (link != NULL) {
tvendov 0:6435b67ad23c 111 link->cb.call();
tvendov 0:6435b67ad23c 112 link = link->next;
tvendov 0:6435b67ad23c 113 }
tvendov 0:6435b67ad23c 114 }
tvendov 0:6435b67ad23c 115
tvendov 0:6435b67ad23c 116 } // namespace mbed
tvendov 0:6435b67ad23c 117