Skip to content

Commit bbe344c

Browse files
Fixed some warnings
1 parent 721feba commit bbe344c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

general/include/lan8670.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ typedef int32_t (*lan8670_Init_Func) (void);
2424
typedef int32_t (*lan8670_DeInit_Func) (void);
2525
typedef int32_t (*lan8670_ReadReg_Func) (uint32_t, uint32_t, uint32_t *);
2626
typedef int32_t (*lan8670_WriteReg_Func) (uint32_t, uint32_t, uint32_t);
27-
typedef int32_t (*lan8670_GetTick_Func) (void);
27+
typedef uint32_t (*lan8670_GetTick_Func) (void);
2828

2929
/* IO STRUCT */
3030
typedef struct
@@ -174,4 +174,12 @@ int32_t LAN8670_PLCA_Set_Node_Id(lan8670_t *lan, uint8_t id);
174174
*/
175175
int32_t LAN8670_Get_Link_State(lan8670_t *lan, uint8_t *state);
176176

177+
/**
178+
* @brief Registers HAL ethernet functions for use in this driver.
179+
*
180+
* @param lan Pointer to the lan8670_t instance.
181+
* @param ioctx Pointer to the lan8670_IOCtx_t instance containing the HAL functions.
182+
* @return Status.
183+
*/
184+
int32_t LAN8670_RegisterBusIO(lan8670_t *lan, lan8670_IOCtx_t *ioctx);
177185
// clang-format on

0 commit comments

Comments
 (0)