alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2021 Arm Limited. All rights reserved. |
| 3 | * SPDX-License-Identifier: Apache-2.0 |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
alexander | 31ae9f0 | 2022-02-10 16:15:54 +0000 | [diff] [blame] | 17 | #include "stubs/glcd.h" |
| 18 | #include "log_macros.h" |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 19 | |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 20 | #include <inttypes.h> |
| 21 | |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 22 | void GLCD_Initialize(void) {} |
| 23 | |
| 24 | void GLCD_Bitmap(unsigned int x, unsigned int y, |
| 25 | unsigned int w, unsigned int h, unsigned short *bitmap) |
| 26 | { |
| 27 | UNUSED(x); |
| 28 | UNUSED(y); |
| 29 | UNUSED(w); |
| 30 | UNUSED(h); |
| 31 | UNUSED(bitmap); |
| 32 | } |
| 33 | |
alexander | 31ae9f0 | 2022-02-10 16:15:54 +0000 | [diff] [blame] | 34 | void GLCD_Image(void *data, const unsigned int width, const unsigned int height, |
| 35 | const unsigned int channels, const unsigned int pos_x, |
| 36 | const unsigned int pos_y, const unsigned int downsample_factor) |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 37 | { |
| 38 | UNUSED(data); |
| 39 | UNUSED(pos_x); |
| 40 | UNUSED(pos_y); |
| 41 | UNUSED(width); |
| 42 | UNUSED(height); |
| 43 | UNUSED(channels); |
| 44 | UNUSED(downsample_factor); |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 45 | debug("image display: (x, y, w, h) = " |
| 46 | "(%" PRIu32 ", %" PRIu32 ", %" PRIu32 ", %" PRIu32 ")\n", |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 47 | pos_x, pos_y, width, height); |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 48 | debug("image display: channels = %" PRIu32 ", downsample factor = %" PRIu32 "\n", |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 49 | channels, downsample_factor); |
| 50 | } |
| 51 | |
| 52 | void GLCD_Clear(unsigned short color) |
| 53 | { |
| 54 | UNUSED(color); |
| 55 | } |
| 56 | |
| 57 | void GLCD_SetTextColor(unsigned short color) |
| 58 | { |
| 59 | UNUSED(color); |
| 60 | } |
| 61 | |
| 62 | void GLCD_DisplayChar (unsigned int ln, unsigned int col, unsigned char fi, |
| 63 | unsigned char c) |
| 64 | { |
| 65 | UNUSED(ln); |
| 66 | UNUSED(col); |
| 67 | UNUSED(fi); |
| 68 | UNUSED(c); |
| 69 | } |
| 70 | |
| 71 | void GLCD_DisplayString(unsigned int ln, unsigned int col, unsigned char fi, |
| 72 | char *s) |
| 73 | { |
| 74 | UNUSED(ln); |
| 75 | UNUSED(col); |
| 76 | UNUSED(fi); |
| 77 | UNUSED(s); |
| 78 | debug("text display: %s\n", s); |
| 79 | } |
| 80 | |
| 81 | void GLCD_Box(unsigned int x, unsigned int y, unsigned int w, unsigned int h, |
| 82 | unsigned short color) |
| 83 | { |
| 84 | UNUSED(x); |
| 85 | UNUSED(y); |
| 86 | UNUSED(w); |
| 87 | UNUSED(h); |
| 88 | UNUSED(color); |
| 89 | } |