blob: df11adb32c0037903c374433bd1cd4ba2f92b595 [file] [log] [blame]
alexander3c798932021-03-26 21:42:19 +00001/*
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 Sisodia659fcd92021-05-19 10:30:06 +010017#include "stubs_simple_platform.h"
alexander3c798932021-03-26 21:42:19 +000018
19#include "bsp_core_log.h"
20
Kshitij Sisodia659fcd92021-05-19 10:30:06 +010021#include <inttypes.h>
22
alexander3c798932021-03-26 21:42:19 +000023uint32_t GetCoreClock(void)
24{
25 return 1;
26}
27
28void GLCD_Initialize(void) {}
29
30void 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
40void 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 Sisodia659fcd92021-05-19 10:30:06 +010051 debug("image display: (x, y, w, h) = "
52 "(%" PRIu32 ", %" PRIu32 ", %" PRIu32 ", %" PRIu32 ")\n",
alexander3c798932021-03-26 21:42:19 +000053 pos_x, pos_y, width, height);
Kshitij Sisodia659fcd92021-05-19 10:30:06 +010054 debug("image display: channels = %" PRIu32 ", downsample factor = %" PRIu32 "\n",
alexander3c798932021-03-26 21:42:19 +000055 channels, downsample_factor);
56}
57
58void GLCD_Clear(unsigned short color)
59{
60 UNUSED(color);
61}
62
63void GLCD_SetTextColor(unsigned short color)
64{
65 UNUSED(color);
66}
67
68void 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
77void 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
87void 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
97void LED_Initialize(uint32_t port)
98{
99 UNUSED(port);
100}
101
102void LED_On(uint32_t num, uint32_t port)
103{
104 UNUSED(num);
105 UNUSED(port);
Kshitij Sisodia659fcd92021-05-19 10:30:06 +0100106 debug("LED %" PRIu32 " ON\n", num);
alexander3c798932021-03-26 21:42:19 +0000107}
108
109void LED_Off(uint32_t num, uint32_t port)
110{
111 UNUSED(num);
112 UNUSED(port);
Kshitij Sisodia659fcd92021-05-19 10:30:06 +0100113 debug("LED %" PRIu32 " OFF\n", num);
alexander3c798932021-03-26 21:42:19 +0000114}