Skip to content

Commit cc94f66

Browse files
authored
Define linkage for the vStream and GPIO driver access structure (#231)
1 parent b7f79bb commit cc94f66

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CMSIS/Driver/Include/Driver_GPIO.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023 ARM Limited. All rights reserved.
2+
* Copyright (c) 2023-2025 ARM Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -15,7 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*
18-
* $Date: 2. March 2023
18+
* $Date: 24. April 2025
1919
* $Revision: V1.0
2020
*
2121
* Project: GPIO (General-purpose Input/Output) Driver definitions
@@ -137,7 +137,7 @@ typedef void (*ARM_GPIO_SignalEvent_t) (ARM_GPIO_Pin_t pin, uint32_t event); /*
137137
/**
138138
\brief Access structure of the GPIO Driver.
139139
*/
140-
typedef struct {
140+
typedef struct _ARM_DRIVER_GPIO {
141141
int32_t (*Setup) (ARM_GPIO_Pin_t pin, ARM_GPIO_SignalEvent_t cb_event); ///< Pointer to \ref ARM_GPIO_Setup : Setup GPIO Interface.
142142
int32_t (*SetDirection) (ARM_GPIO_Pin_t pin, ARM_GPIO_DIRECTION direction); ///< Pointer to \ref ARM_GPIO_SetDirection : Set GPIO Direction.
143143
int32_t (*SetOutputMode) (ARM_GPIO_Pin_t pin, ARM_GPIO_OUTPUT_MODE mode); ///< Pointer to \ref ARM_GPIO_SetOutputMode : Set GPIO Output Mode.

CMSIS/Driver/vStream/Include/cmsis_vstream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ typedef void (*vStreamEvent_t) (uint32_t event_flags); ///< Pointer to \ref vSt
104104
/**
105105
\brief Access structure of the Virtual Streaming interface Driver.
106106
*/
107-
typedef struct {
107+
typedef struct vStreamDriver_s {
108108
int32_t (*Initialize) (vStreamEvent_t event_cb); ///< Pointer to \ref vStreamInitialize : Initialize Virtual Streaming interface.
109109
int32_t (*Uninitialize) (void); ///< Pointer to \ref vStreamUninitialize : De-initialize Virtual Streaming interface.
110110
int32_t (*SetBuf) (void *buf, uint32_t buf_size, uint32_t block_size); ///< Pointer to \ref vStreamSetBuf : Set Virtual Streaming data buffer.

0 commit comments

Comments
 (0)