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