2 * Copyright (c) 2023 Arm Limited. All rights reserved.
4 * SPDX-License-Identifier: Apache-2.0
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 * -----------------------------------------------------------------------------
22 * Project: CMSIS-Driver Validation
23 * Title: General-Purpose Input/Output (GPIO) driver validation
26 * -----------------------------------------------------------------------------
29 #ifndef DV_GPIO_CONFIG_H_
30 #define DV_GPIO_CONFIG_H_
32 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
35 // <i> General-Purpose Input/Output (GPIO) driver validation configuration
36 // <o0> Driver_GPIO# <0-255>
37 // <i> Choose the Driver_GPIO# instance to test.
38 // <i> For example to test Driver_GPIO0 select 0.
40 // <i> Pins and Tests configuration.
41 // <o1> Pin Under Test <0-255>
42 // <i> Select pin to be tested.
43 // <i> This pin should not have any external resistors or any external devices connected to it.
45 // <i> Select Auxiliary Pin with serial low resistance resistor connected to Pin Under Test.
46 // <i> Suggested resistance of this serial resistor is around 1 kOhm.
47 // <i> This pin should not have any external resistors or any external devices connected to it.
50 // <i> Enable / disable tests.
52 // <i> Enable / disable Setup function tests.
53 // <q4> GPIO_SetDirection
54 // <i> Enable / disable SetDirection function tests.
55 // <q5> GPIO_SetOutputMode
56 // <i> Enable / disable SetOutputMode function tests.
57 // <q6> GPIO_SetPullResistor
58 // <i> Enable / disable SetPullResistor function tests.
59 // <q7> GPIO_SetEventTrigger
60 // <i> Enable / disable SetEventTrigger function tests.
61 // <q8> GPIO_SetOutput
62 // <i> Enable / disable SetOutput function tests.
64 // <i> Enable / disable GetInput function tests.
69 #define GPIO_CFG_PIN_UNDER_TEST 0
\r
70 #define GPIO_CFG_PIN_AUX 0
\r
71 #define GPIO_TC_SETUP_EN 1
\r
72 #define GPIO_TC_SET_DIRECTION_EN 1
\r
73 #define GPIO_TC_SET_OUTPUT_MODE_EN 1
\r
74 #define GPIO_TC_SET_PULL_RESISTOR_EN 1
\r
75 #define GPIO_TC_SET_EVENT_TRIGGER_EN 1
\r
76 #define GPIO_TC_SET_OUTPUT_EN 1
\r
77 #define GPIO_TC_GET_INPUT_EN 1
\r
79 #endif /* DV_GPIO_CONFIG_H_ */