From d8da813562ee81407dd3d27ed3fdbc090444414e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 14 Jun 2017 14:53:45 -0600 Subject: [PATCH] stm32f103-minimum: Fix compiler error in MCP2415 logic. --- configs/stm32f103-minimum/src/stm32_mcp2515.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/stm32f103-minimum/src/stm32_mcp2515.c b/configs/stm32f103-minimum/src/stm32_mcp2515.c index 964af8ae8c..739cfe884a 100644 --- a/configs/stm32f103-minimum/src/stm32_mcp2515.c +++ b/configs/stm32f103-minimum/src/stm32_mcp2515.c @@ -70,9 +70,9 @@ struct stm32_mcp2515config_s /* Additional private definitions only known to this driver */ - MCP2515_HANDLE handle; /* The MCP2515 driver handle */ - mcp2515_handler_t handler; /* The MCP2515 interrupt handler */ - FAR void *arg; /* Argument to pass to the interrupt handler */ + FAR struct mcp2515_can_s *handle; /* The MCP2515 driver handle */ + mcp2515_handler_t handler; /* The MCP2515 interrupt handler */ + FAR void *arg; /* Argument to pass to the interrupt handler */ }; /**************************************************************************** @@ -146,7 +146,7 @@ static int mcp2515_attach(FAR struct mcp2515_config_s *state, (FAR struct stm32_mcp2515config_s *)state; irqstate_t flags; - caninfo("Saving handle %p\n", handler); + caninfo("Saving handler %p\n", handler); flags = enter_critical_section(); @@ -220,7 +220,7 @@ int stm32_mcp2515initialize(FAR const char *devpath) /* Save the opaque structure */ - g_mcp2515config.handle = (MCP2515_HANDLE) mcp2515; + g_mcp2515config.handle = mcp2515; /* Initialize the CAN Device with the MCP2515 operations */