blob: e2dc414545df161a60eea91ee690d930d566e82b [file] [log] [blame]
alexander31ae9f02022-02-10 16:15:54 +00001/*
Richard Burtonf32a86a2022-11-15 11:46:11 +00002 * SPDX-FileCopyrightText: Copyright 2021-2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
alexander31ae9f02022-02-10 16:15:54 +00003 * 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
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000018#ifndef PLATFORM_DRIVERS_H
19#define PLATFORM_DRIVERS_H
alexander31ae9f02022-02-10 16:15:54 +000020
21#include "log_macros.h" /* Logging related helpers. */
22
23/* Platform components */
Kshitij Sisodia6a2ac462022-03-01 17:36:06 +000024#include "RTE_Components.h" /* For CPU related defintiions */
Kshitij Sisodiac22e80e2022-03-14 09:26:48 +000025#include "timer_simple_platform.h" /* timer implementation */
Kshitij Sisodiada2ec062022-04-01 14:43:53 +010026#include "platform_pmu.h" /* PMU definitions and API */
27#include "user_input.h" /* User input functions */
Kshitij Sisodiac22e80e2022-03-14 09:26:48 +000028#include "lcd_img.h" /* LCD functions */
alexander31ae9f02022-02-10 16:15:54 +000029
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000030/**
31 * @brief Initialises the platform components.
32 * @return 0 if successful, error code otherwise.
33 */
34int platform_init(void);
35
36/**
37 * @brief Teardown for platform components.
38 */
39void platform_release(void);
40
41/**
Kshitij Sisodia4cc40212022-04-08 09:54:53 +010042 * @brief Gets the platform name.
43 * @return Pointer to the name
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000044 */
Kshitij Sisodia4cc40212022-04-08 09:54:53 +010045const char* platform_name(void);
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000046
47#endif /* PLATFORM_DRIVERS_H */