Fixed bug #543.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7431 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
82e9c928eb
commit
fd79f8b4ce
|
@ -156,6 +156,7 @@
|
||||||
#define MII_STE101P_ID 0x00061C50
|
#define MII_STE101P_ID 0x00061C50
|
||||||
#define MII_DP83848I_ID 0x20005C90
|
#define MII_DP83848I_ID 0x20005C90
|
||||||
#define MII_LAN8710A_ID 0x0007C0F1
|
#define MII_LAN8710A_ID 0x0007C0F1
|
||||||
|
#define MII_LAN8720_ID 0x0007C0F0
|
||||||
|
|
||||||
#endif /* _MII_H_ */
|
#endif /* _MII_H_ */
|
||||||
|
|
||||||
|
|
|
@ -263,7 +263,7 @@ msg_t lwip_thread(void *p) {
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
eventmask_t mask = chEvtWaitAny(ALL_EVENTS);
|
eventmask_t mask = chEvtWaitAny(ALL_EVENTS);
|
||||||
if (mask & PERIODIC_TIMER_ID) {
|
if (mask & PERIODIC_TIMER_ID) {
|
||||||
bool_t current_link_status = macPollLinkStatus(ÐD1);
|
bool current_link_status = macPollLinkStatus(ÐD1);
|
||||||
if (current_link_status != netif_is_link_up(&thisif)) {
|
if (current_link_status != netif_is_link_up(&thisif)) {
|
||||||
if (current_link_status)
|
if (current_link_status)
|
||||||
tcpip_callback_with_block((tcpip_callback_fn) netif_set_link_up,
|
tcpip_callback_with_block((tcpip_callback_fn) netif_set_link_up,
|
||||||
|
|
Loading…
Reference in New Issue