blob: da3af1e2ed90e4c634d7c72e1b28bd0d8c96c2db [file] [log] [blame]
alexander3c798932021-03-26 21:42:19 +00001/*
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +00002 * Copyright (c) 2021-2022 Arm Limited. All rights reserved.
alexander3c798932021-03-26 21:42:19 +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 */
alexander3c798932021-03-26 21:42:19 +000017
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000018#ifndef PLATFORM_DRIVERS_H
19#define PLATFORM_DRIVERS_H
alexander31ae9f02022-02-10 16:15:54 +000020
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000021#include "log_macros.h" /* Logging related helpers. */
22
23/* Platform components */
alexander3c798932021-03-26 21:42:19 +000024#include "timer_mps3.h" /* Timer functions. */
Kshitij Sisodiafb93fa72022-02-24 09:51:02 +000025#include "RTE_components.h" /* For CPU related defintiions */
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000026#include "glcd_mps3.h" /* LCD functions. */
alexander3c798932021-03-26 21:42:19 +000027
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000028/** Platform definitions. TODO: These should be removed. */
29#include "peripheral_memmap.h" /* Peripheral memory map definitions. */
30#include "peripheral_irqs.h" /* IRQ numbers for this platform. */
31
32/**
33 * @brief Initialises the platform components.
34 * @return 0 if successful, error code otherwise.
35 */
36int platform_init(void);
37
38/**
39 * @brief Teardown for platform components.
40 */
41void platform_release(void);
42
43/**
44 * @brief Sets the platform name.
45 * @param[out] name Name of the platform to be set
46 * @param[in] size Size of the input buffer
47 */
48void platform_name(char* name, size_t size);
49
50#endif /* PLATFORM_DRIVERS_H */