FreeHIL
Loading...
Searching...
No Matches
FH_DevicePeripherals.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief
4 * <b>File Map:</b>\n
5 * <b>FH_Setup</b>, Section <b>FH_DevicePeripherals</b> \n
6 * <b>FH</b> user should set the maximum number of peripherals for his/her interested HIL Simulator here\n
7 *
8 *@note
9 *Regarding the limitations of the interested micro-controller on which <b>FH</b> source code is ported (Memory, Peripherals , ...),\n
10 *The number of the peripherals could be decreased to the minimum possible values\n
11 *
12 * @attention There are a total number of <b>1 attention</b> (Attention 1) (<b>FH</b> user defined data) in this file where <b>FH</b> user shall insert some data\n
13 * Other parts could be left intact
14 *
15 *******************************************************************************
16 * SPDX-License-Identifier: Apache-2.0
17 *
18 * Copyright 2026 Vahid Hasirchi
19 *
20 * Licensed under the Apache License, Version 2.0 (the "License");
21 * you may not use this file except in compliance with the License.
22 * You may obtain a copy of the License at
23 *
24 * http://www.apache.org/licenses/LICENSE-2.0
25 *
26 * Unless required by applicable law or agreed to in writing, software
27 * distributed under the License is distributed on an "AS IS" BASIS,
28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29 * See the License for the specific language governing permissions and
30 * limitations under the License.
31 ********************************************************************************
32
33 *
34 * <b>For more information refer to FreeHIL.com</b>
35 *
36*/
37/* Define to prevent recursive inclusion -------------------------------------*/
38#ifndef FH_DevicePeripherals_H
39#define FH_DevicePeripherals_H
40
41// Attention 1: FH user defined data (set the maximum number of peripherals here)
42
43/*!
44 <b>FH_DO_MaxPeripheralNumber</b> is the maximum number of the DO (Digital Output)\n
45 Minimum Possible Value is 0 and Maximum Possible Value is 64\n
46*/
47#define FH_DO_MaxPeripheralNumber 64
48
49/*!
50 <b>FH_DI_MaxPeripheralNumber</b> is the maximum number of the DI (Digital Input)\n
51 Minimum Possible Value is 0 and Maximum Possible Value is 64\n
52*/
53#define FH_DI_MaxPeripheralNumber 64
54
55/*!
56 <b>FH_AO_MaxPeripheralNumber</b> is the maximum number of the AO (Analog Output)\n
57 Minimum Possible Value is 0 and Maximum Possible Value is 64\n
58*/
59#define FH_AO_MaxPeripheralNumber 64
60
61/*!
62 <b>FH_AI_MaxPeripheralNumber</b> is the maximum number of the AI (Analog Input)\n
63 Minimum Possible Value is 0 and Maximum Possible Value is 64\n
64*/
65#define FH_AI_MaxPeripheralNumber 64
66
67/*!
68 <b>FH_PWMO_MaxPeripheralNumber</b> is the maximum number of the PWMO (PWM Output)\n
69 Minimum Possible Value is 0 and Maximum Possible Value is 64\n
70*/
71#define FH_PWMO_MaxPeripheralNumber 64
72
73/*!
74 <b>FH_PWMI_MaxPeripheralNumber</b> is the maximum number of the PWMI (PWM Input)\n
75 Minimum Possible Value is 0 and Maximum Possible Value is 64\n
76*/
77#define FH_PWMI_MaxPeripheralNumber 64
78
79/*!
80 <b>FH_UART_MaxPeripheralNumber</b> is the maximum number of the UART\n
81 Minimum Possible Value is 0 and Maximum Possible Value is 8\n
82*/
83#define FH_UART_MaxPeripheralNumber 8
84
85/*!
86 <b>FH_CAN_MaxPeripheralNumber</b> is the maximum number of the CAN\n
87 Minimum Possible Value is 0 and Maximum Possible Value is 8\n
88*/
89#define FH_CAN_MaxPeripheralNumber 8
90
91//
92
93#endif // FH_DevicePeripherals_H