Commit c4fdf052 authored by Vladimir Umek's avatar Vladimir Umek Committed by Sudan Landge
Browse files

Define linkage for the vStream and GPIO driver access structure (#231)

parent 8e52930c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2023 ARM Limited. All rights reserved.
 * Copyright (c) 2023-2025 ARM Limited. All rights reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 *
@@ -15,7 +15,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * $Date:        2. March 2023
 * $Date:        24. April 2025
 * $Revision:    V1.0
 *
 * 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); /*
/**
\brief Access structure of the GPIO Driver.
*/
typedef struct {
typedef struct _ARM_DRIVER_GPIO {
  int32_t  (*Setup)           (ARM_GPIO_Pin_t pin, ARM_GPIO_SignalEvent_t cb_event); ///< Pointer to \ref ARM_GPIO_Setup : Setup GPIO Interface.
  int32_t  (*SetDirection)    (ARM_GPIO_Pin_t pin, ARM_GPIO_DIRECTION direction);    ///< Pointer to \ref ARM_GPIO_SetDirection : Set GPIO Direction.
  int32_t  (*SetOutputMode)   (ARM_GPIO_Pin_t pin, ARM_GPIO_OUTPUT_MODE mode);       ///< Pointer to \ref ARM_GPIO_SetOutputMode : Set GPIO Output Mode.
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ typedef void (*vStreamEvent_t) (uint32_t event_flags); ///< Pointer to \ref vSt
/**
\brief Access structure of the Virtual Streaming interface Driver.
*/
typedef struct {
typedef struct vStreamDriver_s {
  int32_t         (*Initialize)   (vStreamEvent_t event_cb);                              ///< Pointer to \ref vStreamInitialize : Initialize Virtual Streaming interface.
  int32_t         (*Uninitialize) (void);                                                 ///< Pointer to \ref vStreamUninitialize : De-initialize Virtual Streaming interface.
  int32_t         (*SetBuf)       (void *buf, uint32_t buf_size, uint32_t block_size);    ///< Pointer to \ref vStreamSetBuf : Set Virtual Streaming data buffer.