Skip to content

Commit 4846756

Browse files
0xc0170Bartek Szatkowski
authored andcommitted
lwip: lpc17emac - fix for rtx2
osTimerDef is no longer valid, we use timer new API to create a timer. const in the callback is not valid, timer callback argument is just void pointer
1 parent 52f8de3 commit 4846756

File tree

1 file changed

+2
-2
lines changed
  • features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP

1 file changed

+2
-2
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,10 +947,10 @@ err_t lpc_etharp_output_ipv6(struct netif *netif, struct pbuf *q,
947947

948948
#if NO_SYS == 0
949949
/* periodic PHY status update */
950-
void phy_update(void const *nif) {
950+
void phy_update(void *nif) {
951951
lpc_phy_sts_sm((struct netif*)nif);
952952
}
953-
osTimerDef(phy_update, phy_update);
953+
954954
#endif
955955

956956
/**

0 commit comments

Comments
 (0)