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 | */ |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 17 | #include "stubs_simple_platform.h" |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 18 | |
| 19 | #include "bsp_core_log.h" |
| 20 | |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 21 | #include <inttypes.h> |
| 22 | |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 23 | uint32_t GetCoreClock(void) |
| 24 | { |
| 25 | return 1; |
| 26 | } |
| 27 | |
| 28 | void GLCD_Initialize(void) {} |
| 29 | |
| 30 | void GLCD_Bitmap(unsigned int x, unsigned int y, |
| 31 | unsigned int w, unsigned int h, unsigned short *bitmap) |
| 32 | { |
| 33 | UNUSED(x); |
| 34 | UNUSED(y); |
| 35 | UNUSED(w); |
| 36 | UNUSED(h); |
| 37 | UNUSED(bitmap); |
| 38 | } |
| 39 | |
| 40 | void GLCD_Image(void *data, const uint32_t width, const uint32_t height, |
| 41 | const uint32_t channels, const uint32_t pos_x, |
| 42 | const uint32_t pos_y, const uint32_t downsample_factor) |
| 43 | { |
| 44 | UNUSED(data); |
| 45 | UNUSED(pos_x); |
| 46 | UNUSED(pos_y); |
| 47 | UNUSED(width); |
| 48 | UNUSED(height); |
| 49 | UNUSED(channels); |
| 50 | UNUSED(downsample_factor); |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 51 | debug("image display: (x, y, w, h) = " |
| 52 | "(%" PRIu32 ", %" PRIu32 ", %" PRIu32 ", %" PRIu32 ")\n", |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 53 | pos_x, pos_y, width, height); |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 54 | debug("image display: channels = %" PRIu32 ", downsample factor = %" PRIu32 "\n", |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 55 | channels, downsample_factor); |
| 56 | } |
| 57 | |
| 58 | void GLCD_Clear(unsigned short color) |
| 59 | { |
| 60 | UNUSED(color); |
| 61 | } |
| 62 | |
| 63 | void GLCD_SetTextColor(unsigned short color) |
| 64 | { |
| 65 | UNUSED(color); |
| 66 | } |
| 67 | |
| 68 | void GLCD_DisplayChar (unsigned int ln, unsigned int col, unsigned char fi, |
| 69 | unsigned char c) |
| 70 | { |
| 71 | UNUSED(ln); |
| 72 | UNUSED(col); |
| 73 | UNUSED(fi); |
| 74 | UNUSED(c); |
| 75 | } |
| 76 | |
| 77 | void GLCD_DisplayString(unsigned int ln, unsigned int col, unsigned char fi, |
| 78 | char *s) |
| 79 | { |
| 80 | UNUSED(ln); |
| 81 | UNUSED(col); |
| 82 | UNUSED(fi); |
| 83 | UNUSED(s); |
| 84 | debug("text display: %s\n", s); |
| 85 | } |
| 86 | |
| 87 | void GLCD_Box(unsigned int x, unsigned int y, unsigned int w, unsigned int h, |
| 88 | unsigned short color) |
| 89 | { |
| 90 | UNUSED(x); |
| 91 | UNUSED(y); |
| 92 | UNUSED(w); |
| 93 | UNUSED(h); |
| 94 | UNUSED(color); |
| 95 | } |
| 96 | |
| 97 | void LED_Initialize(uint32_t port) |
| 98 | { |
| 99 | UNUSED(port); |
| 100 | } |
| 101 | |
| 102 | void LED_On(uint32_t num, uint32_t port) |
| 103 | { |
| 104 | UNUSED(num); |
| 105 | UNUSED(port); |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 106 | debug("LED %" PRIu32 " ON\n", num); |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 107 | } |
| 108 | |
| 109 | void LED_Off(uint32_t num, uint32_t port) |
| 110 | { |
| 111 | UNUSED(num); |
| 112 | UNUSED(port); |
Kshitij Sisodia | 659fcd9 | 2021-05-19 10:30:06 +0100 | [diff] [blame] | 113 | debug("LED %" PRIu32 " OFF\n", num); |
alexander | 3c79893 | 2021-03-26 21:42:19 +0000 | [diff] [blame] | 114 | } |