blob: 55db9736d113c45ddf843549a795d90a102901c8 [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"
33#elif ((PLATFORM_HAL) == PLATFORM_UNKNOWN_LINUX_OS)
34 #include "dummy_log.h"
35#else
36 #error "Invalid platform!"
37#endif /* PLATFORM_HAL==PLATFORM_CORTEX_M_BAREMETAL */
38
39#if !defined (DESIGN_NAME)
40 #define DESIGN_NAME ("N/A")
41#endif /* !defined (DESIGN_NAME) */
42
43#endif /* HAL_CONFIG_H */