|
| 1 | +/* |
| 2 | + * Copyright (c) 2023 Arm Limited. All rights reserved. |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + * |
| 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 |
| 9 | + * |
| 10 | + * www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 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. |
| 17 | + * |
| 18 | + * ----------------------------------------------------------------------------- |
| 19 | + * |
| 20 | + * $Revision: V1.0.0 |
| 21 | + * |
| 22 | + * Project: CMSIS-Driver Validation |
| 23 | + * Title: General-Purpose Input/Output (GPIO) driver validation |
| 24 | + * configuration file |
| 25 | + * |
| 26 | + * ----------------------------------------------------------------------------- |
| 27 | + */ |
| 28 | + |
| 29 | +#ifndef DV_GPIO_CONFIG_H_ |
| 30 | +#define DV_GPIO_CONFIG_H_ |
| 31 | + |
| 32 | +//-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- |
| 33 | + |
| 34 | +// <h> GPIO |
| 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. |
| 39 | +// <h> Configuration |
| 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. |
| 44 | +// <o2> Auxiliary Pin |
| 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. |
| 48 | +// </h> |
| 49 | +// <h> Tests |
| 50 | +// <i> Enable / disable tests. |
| 51 | +// <q3> GPIO_Setup |
| 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. |
| 63 | +// <q9> GPIO_GetInput |
| 64 | +// <i> Enable / disable GetInput function tests. |
| 65 | +// </h> |
| 66 | +// </h> |
| 67 | + |
| 68 | +#define DRV_GPIO 0 |
| 69 | +#define GPIO_CFG_PIN_UNDER_TEST 0 |
| 70 | +#define GPIO_CFG_PIN_AUX 0 |
| 71 | +#define GPIO_TC_SETUP_EN 1 |
| 72 | +#define GPIO_TC_SET_DIRECTION_EN 1 |
| 73 | +#define GPIO_TC_SET_OUTPUT_MODE_EN 1 |
| 74 | +#define GPIO_TC_SET_PULL_RESISTOR_EN 1 |
| 75 | +#define GPIO_TC_SET_EVENT_TRIGGER_EN 1 |
| 76 | +#define GPIO_TC_SET_OUTPUT_EN 1 |
| 77 | +#define GPIO_TC_GET_INPUT_EN 1 |
| 78 | + |
| 79 | +#endif /* DV_GPIO_CONFIG_H_ */ |
0 commit comments