alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 1 | /* |
Richard Burton | f32a86a | 2022-11-15 11:46:11 +0000 | [diff] [blame] | 2 | * SPDX-FileCopyrightText: Copyright 2021-2022 Arm Limited and/or its affiliates <open-source-office@arm.com> |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 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 | */ |
Kshitij Sisodia | c22e80e | 2022-03-14 09:26:48 +0000 | [diff] [blame] | 17 | #include "glcd.h" |
alexander | 31ae9f0 | 2022-02-10 16:15:54 +0000 | [diff] [blame] | 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 | |
Kshitij Sisodia | a1256e3 | 2022-02-23 14:40:45 +0000 | [diff] [blame] | 34 | void GLCD_Image(const void *data, const uint32_t width, |
| 35 | const uint32_t height, const uint32_t channels, |
| 36 | const uint32_t pos_x, const uint32_t pos_y, |
| 37 | const uint32_t downsample_factor) |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 38 | { |
| 39 | UNUSED(data); |
| 40 | UNUSED(pos_x); |
| 41 | UNUSED(pos_y); |
| 42 | UNUSED(width); |
| 43 | UNUSED(height); |
| 44 | UNUSED(channels); |
| 45 | UNUSED(downsample_factor); |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 46 | debug("image display: (x, y, w, h) = " |
| 47 | "(%" PRIu32 ", %" PRIu32 ", %" PRIu32 ", %" PRIu32 ")\n", |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 48 | pos_x, pos_y, width, height); |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 49 | debug("image display: channels = %" PRIu32 ", downsample factor = %" PRIu32 "\n", |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 50 | channels, downsample_factor); |
| 51 | } |
| 52 | |
| 53 | void GLCD_Clear(unsigned short color) |
| 54 | { |
| 55 | UNUSED(color); |
| 56 | } |
| 57 | |
| 58 | void GLCD_SetTextColor(unsigned short color) |
| 59 | { |
| 60 | UNUSED(color); |
| 61 | } |
| 62 | |
| 63 | void GLCD_DisplayChar (unsigned int ln, unsigned int col, unsigned char fi, |
| 64 | unsigned char c) |
| 65 | { |
| 66 | UNUSED(ln); |
| 67 | UNUSED(col); |
| 68 | UNUSED(fi); |
| 69 | UNUSED(c); |
| 70 | } |
| 71 | |
| 72 | void GLCD_DisplayString(unsigned int ln, unsigned int col, unsigned char fi, |
| 73 | char *s) |
| 74 | { |
| 75 | UNUSED(ln); |
| 76 | UNUSED(col); |
| 77 | UNUSED(fi); |
| 78 | UNUSED(s); |
| 79 | debug("text display: %s\n", s); |
| 80 | } |
| 81 | |
| 82 | void GLCD_Box(unsigned int x, unsigned int y, unsigned int w, unsigned int h, |
| 83 | unsigned short color) |
| 84 | { |
| 85 | UNUSED(x); |
| 86 | UNUSED(y); |
| 87 | UNUSED(w); |
| 88 | UNUSED(h); |
| 89 | UNUSED(color); |
| 90 | } |