/* * Copyright (c) 2023 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ----------------------------------------------------------------------------- * * $Revision: V1.0.0 * * Project: CMSIS-Driver Validation * Title: General-Purpose Input/Output (GPIO) driver validation * configuration file * * ----------------------------------------------------------------------------- */ #ifndef DV_GPIO_CONFIG_H_ #define DV_GPIO_CONFIG_H_ //-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- // GPIO // General-Purpose Input/Output (GPIO) driver validation configuration // Driver_GPIO# <0-255> // Choose the Driver_GPIO# instance to test. // For example to test Driver_GPIO0 select 0. // Configuration // Pins and Tests configuration. // Pin Under Test <0-255> // Select pin to be tested. // This pin should not have any external resistors or any external devices connected to it. // Auxiliary Pin // Select Auxiliary Pin with serial low resistance resistor connected to Pin Under Test. // Suggested resistance of this serial resistor is around 1 kOhm. // This pin should not have any external resistors or any external devices connected to it. // // Tests // Enable / disable tests. // GPIO_Setup // Enable / disable Setup function tests. // GPIO_SetDirection // Enable / disable SetDirection function tests. // GPIO_SetOutputMode // Enable / disable SetOutputMode function tests. // GPIO_SetPullResistor // Enable / disable SetPullResistor function tests. // GPIO_SetEventTrigger // Enable / disable SetEventTrigger function tests. // GPIO_SetOutput // Enable / disable SetOutput function tests. // GPIO_GetInput // Enable / disable GetInput function tests. // // #define DRV_GPIO 0 #define GPIO_CFG_PIN_UNDER_TEST 0 #define GPIO_CFG_PIN_AUX 0 #define GPIO_TC_SETUP_EN 1 #define GPIO_TC_SET_DIRECTION_EN 1 #define GPIO_TC_SET_OUTPUT_MODE_EN 1 #define GPIO_TC_SET_PULL_RESISTOR_EN 1 #define GPIO_TC_SET_EVENT_TRIGGER_EN 1 #define GPIO_TC_SET_OUTPUT_EN 1 #define GPIO_TC_GET_INPUT_EN 1 #endif /* DV_GPIO_CONFIG_H_ */