File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
targets/TARGET_ARM_FM/TARGET_FVP_MPS2/drivers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
#include "lan91c111.h"
19
19
#include <stddef.h>
20
20
21
- static lan91_handle_t * lan91c111_handle ;
21
+ static lan91_handle_t lan91c111_handle ;
22
22
23
23
void LAN91_init (void )
24
24
{
@@ -95,8 +95,8 @@ void read_MACaddr(uint8_t *addr)
95
95
void LAN91_SetCallback (lan91_callback_t callback , void * userData )
96
96
{
97
97
/* Set callback and userData. */
98
- lan91c111_handle -> callback = callback ;
99
- lan91c111_handle -> userData = userData ;
98
+ lan91c111_handle . callback = callback ;
99
+ lan91c111_handle . userData = userData ;
100
100
}
101
101
102
102
@@ -216,8 +216,8 @@ void ETHERNET_Handler(void)
216
216
if ((LREG (uint8_t , B2_IST ) & IST_RCV ) != 0 ) {
217
217
LREG (uint8_t , B2_MSK ) = 0 ;
218
218
/* Callback function. */
219
- if (lan91c111_handle -> callback ) {
220
- lan91c111_handle -> callback (LAN91_RxEvent , lan91c111_handle -> userData );
219
+ if (lan91c111_handle . callback ) {
220
+ lan91c111_handle . callback (LAN91_RxEvent , lan91c111_handle . userData );
221
221
}
222
222
}
223
223
}
You can’t perform that action at this time.
0 commit comments