blob: ca32f4e268134b17b1e4b45f8bf39b955dbb9ceb [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#ifndef HAL_CONFIG_H
18#define HAL_CONFIG_H
19
20/* This header provides some basic configuration for HAL */
21
22/* Platform definitions for the systems we expect to support */
23#define PLATFORM_CORTEX_M_BAREMETAL 1U
24#define PLATFORM_UNKNOWN_LINUX_OS 3U
25
26/* This should come from compile time definition */
27#ifndef PLATFORM_HAL
28 #define PLATFORM_HAL PLATFORM_UNKNOWN_LINUX_OS /* Default platform */
29#endif /* PLATFORM_HAL */
30
31#if ((PLATFORM_HAL) == PLATFORM_CORTEX_M_BAREMETAL)
32 #include "bsp.h"
alexander31ae9f02022-02-10 16:15:54 +000033#endif
alexander3c798932021-03-26 21:42:19 +000034
35#if !defined (DESIGN_NAME)
36 #define DESIGN_NAME ("N/A")
37#endif /* !defined (DESIGN_NAME) */
38
39#endif /* HAL_CONFIG_H */