diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-10-26 13:07:07 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-10-26 13:07:07 +0000 |
commit | fd79f8b4ceb7d40d076503b5963a15a51f5171dd (patch) | |
tree | 71c8a4eda50730465bef35af442280b4a81a5848 | |
parent | 82e9c928eb0adc2508bbd70b458362efa512049b (diff) | |
download | ChibiOS-fd79f8b4ceb7d40d076503b5963a15a51f5171dd.tar.gz ChibiOS-fd79f8b4ceb7d40d076503b5963a15a51f5171dd.tar.bz2 ChibiOS-fd79f8b4ceb7d40d076503b5963a15a51f5171dd.zip |
Fixed bug #543.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7431 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/include/mii.h | 1 | ||||
-rw-r--r-- | os/various/lwip_bindings/lwipthread.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/include/mii.h b/os/hal/include/mii.h index 5a2614397..b8176f287 100644 --- a/os/hal/include/mii.h +++ b/os/hal/include/mii.h @@ -156,6 +156,7 @@ #define MII_STE101P_ID 0x00061C50
#define MII_DP83848I_ID 0x20005C90
#define MII_LAN8710A_ID 0x0007C0F1
+#define MII_LAN8720_ID 0x0007C0F0
#endif /* _MII_H_ */
diff --git a/os/various/lwip_bindings/lwipthread.c b/os/various/lwip_bindings/lwipthread.c index dd2a835c2..89befa9f0 100644 --- a/os/various/lwip_bindings/lwipthread.c +++ b/os/various/lwip_bindings/lwipthread.c @@ -263,7 +263,7 @@ msg_t lwip_thread(void *p) { while (TRUE) {
eventmask_t mask = chEvtWaitAny(ALL_EVENTS);
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)
tcpip_callback_with_block((tcpip_callback_fn) netif_set_link_up,
|