|
@@ -111,12 +111,15 @@ typedef struct
|
|
|
|
|
|
|
|
typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, const uint8_t *, uint16_t);
|
|
typedef int32_t (*stmdev_write_ptr)(void *, uint8_t, const uint8_t *, uint16_t);
|
|
|
typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *, uint16_t);
|
|
typedef int32_t (*stmdev_read_ptr)(void *, uint8_t, uint8_t *, uint16_t);
|
|
|
|
|
+typedef void (*stmdev_mdelay_ptr)(uint32_t millisec);
|
|
|
|
|
|
|
|
typedef struct
|
|
typedef struct
|
|
|
{
|
|
{
|
|
|
/** Component mandatory fields **/
|
|
/** Component mandatory fields **/
|
|
|
stmdev_write_ptr write_reg;
|
|
stmdev_write_ptr write_reg;
|
|
|
stmdev_read_ptr read_reg;
|
|
stmdev_read_ptr read_reg;
|
|
|
|
|
+ /** Component optional fields **/
|
|
|
|
|
+ stmdev_mdelay_ptr mdelay;
|
|
|
/** Customizable optional pointer **/
|
|
/** Customizable optional pointer **/
|
|
|
void *handle;
|
|
void *handle;
|
|
|
} stmdev_ctx_t;
|
|
} stmdev_ctx_t;
|