-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GPIO CMSIS-Driver Validation tests (#13)
- Loading branch information
Showing
12 changed files
with
969 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* | ||
* 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 >>> -------------------- | ||
|
||
// <h> GPIO | ||
// <i> General-Purpose Input/Output (GPIO) driver validation configuration | ||
// <o0> Driver_GPIO# <0-255> | ||
// <i> Choose the Driver_GPIO# instance to test. | ||
// <i> For example to test Driver_GPIO0 select 0. | ||
// <h> Configuration | ||
// <i> Pins and Tests configuration. | ||
// <o1> Pin Under Test <0-255> | ||
// <i> Select pin to be tested. | ||
// <i> This pin should not have any external resistors or any external devices connected to it. | ||
// <o2> Auxiliary Pin | ||
// <i> Select Auxiliary Pin with serial low resistance resistor connected to Pin Under Test. | ||
// <i> Suggested resistance of this serial resistor is around 1 kOhm. | ||
// <i> This pin should not have any external resistors or any external devices connected to it. | ||
// </h> | ||
// <h> Tests | ||
// <i> Enable / disable tests. | ||
// <q3> GPIO_Setup | ||
// <i> Enable / disable Setup function tests. | ||
// <q4> GPIO_SetDirection | ||
// <i> Enable / disable SetDirection function tests. | ||
// <q5> GPIO_SetOutputMode | ||
// <i> Enable / disable SetOutputMode function tests. | ||
// <q6> GPIO_SetPullResistor | ||
// <i> Enable / disable SetPullResistor function tests. | ||
// <q7> GPIO_SetEventTrigger | ||
// <i> Enable / disable SetEventTrigger function tests. | ||
// <q8> GPIO_SetOutput | ||
// <i> Enable / disable SetOutput function tests. | ||
// <q9> GPIO_GetInput | ||
// <i> Enable / disable GetInput function tests. | ||
// </h> | ||
// </h> | ||
|
||
#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_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*=======0=========1=========2=========3=========4=========5=========6=========7=========8=========9=========0=========1====*/ | ||
/** | ||
\defgroup gpio_config Configuration | ||
\ingroup dv_gpio | ||
|
||
The GPIO driver validation settings are available in the <b>DV_GPIO_Config.h</b> configuration file. | ||
|
||
\image html dv_gpio_config_h.png "DV_GPIO_Config.h configuration file in Configuration Wizard view mode" | ||
|
||
\section gpio_config_detail Configuration settings | ||
|
||
<b>Driver_GPIO#</b> selects the driver instance that will be tested.<br> | ||
For example if we want to test <c>Driver_GPIO0</c> then this setting would be set to <c>0</c>. | ||
|
||
<b>Configuration</b> section contains configuration of two pins: | ||
- <b>Pin Under Test</b> specifying the pin that will be tested.<br> | ||
- <b>Auxiliary Pin</b> specifies the auxiliary pin with serial low resistance resistor connected to Pin Under Test. | ||
Suggested resistance of this serial resistor is around 1 kOhm.<br> | ||
|
||
<b>Pins</b> should not have any external resistors or any external devices connected to it except the low resistance resistor used for testing.<br> | ||
|
||
<b>Tests</b> section contains selections of tests to be executed. | ||
For details on tests performed by each test function please refer to \ref gpio_tests "GPIO Tests". | ||
|
||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.