Kshitij Sisodia | a1256e3 | 2022-02-23 14:40:45 +0000 | [diff] [blame] | 1 | /* |
Richard Burton | f32a86a | 2022-11-15 11:46:11 +0000 | [diff] [blame^] | 2 | * SPDX-FileCopyrightText: Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com> |
Kshitij Sisodia | a1256e3 | 2022-02-23 14:40:45 +0000 | [diff] [blame] | 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 | |
| 18 | #ifndef PLATFORM_DRIVERS_H |
| 19 | #define PLATFORM_DRIVERS_H |
| 20 | |
| 21 | #include "log_macros.h" /* Logging related helpers. */ |
Kshitij Sisodia | c22e80e | 2022-03-14 09:26:48 +0000 | [diff] [blame] | 22 | #include "lcd_img.h" /* LCD functions */ |
| 23 | #include "user_input.h" /* User input function */ |
Kshitij Sisodia | da2ec06 | 2022-04-01 14:43:53 +0100 | [diff] [blame] | 24 | #include "timer_native.h" /* Native platform timer/profiler support */ |
Kshitij Sisodia | a1256e3 | 2022-02-23 14:40:45 +0000 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * @brief Initialises the platform components. |
| 28 | * @return 0 if successful, error code otherwise. |
| 29 | */ |
| 30 | int platform_init(void); |
| 31 | |
| 32 | /** |
| 33 | * @brief Teardown for platform components. |
| 34 | */ |
| 35 | void platform_release(void); |
| 36 | |
| 37 | /** |
Kshitij Sisodia | 4cc4021 | 2022-04-08 09:54:53 +0100 | [diff] [blame] | 38 | * @brief Gets the platform name. |
| 39 | * @return Pointer to the name |
Kshitij Sisodia | a1256e3 | 2022-02-23 14:40:45 +0000 | [diff] [blame] | 40 | */ |
Kshitij Sisodia | 4cc4021 | 2022-04-08 09:54:53 +0100 | [diff] [blame] | 41 | const char* platform_name(void); |
Kshitij Sisodia | a1256e3 | 2022-02-23 14:40:45 +0000 | [diff] [blame] | 42 | |
| 43 | #endif /* PLATFORM_DRIVERS_H */ |