git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4605 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
bfdc6428f1
commit
8ac1f4f7b2
|
@ -50,7 +50,7 @@ static const MACConfig mac_config = {macaddr.addr};
|
|||
static void network_device_send(void) {
|
||||
MACTransmitDescriptor td;
|
||||
|
||||
if (macWaitTransmitDescriptor(Ð1, &td, MS2ST(SEND_TIMEOUT)) == RDY_OK) {
|
||||
if (macWaitTransmitDescriptor(ÐD1, &td, MS2ST(SEND_TIMEOUT)) == RDY_OK) {
|
||||
if(uip_len <= UIP_LLH_LEN + UIP_TCPIP_HLEN)
|
||||
macWriteTransmitDescriptor(&td, uip_buf, uip_len);
|
||||
else {
|
||||
|
@ -70,7 +70,7 @@ static size_t network_device_read(void) {
|
|||
MACReceiveDescriptor rd;
|
||||
size_t size;
|
||||
|
||||
if (macWaitReceiveDescriptor(Ð1, &rd, TIME_IMMEDIATE) != RDY_OK)
|
||||
if (macWaitReceiveDescriptor(ÐD1, &rd, TIME_IMMEDIATE) != RDY_OK)
|
||||
return 0;
|
||||
size = rd.size;
|
||||
macReadReceiveDescriptor(&rd, uip_buf, size);
|
||||
|
@ -107,7 +107,7 @@ static void PeriodicTimerHandler(eventid_t id) {
|
|||
static void ARPTimerHandler(eventid_t id) {
|
||||
|
||||
(void)id;
|
||||
(void)macPollLinkStatus(Ð1);
|
||||
(void)macPollLinkStatus(ÐD1);
|
||||
uip_arp_timer();
|
||||
}
|
||||
|
||||
|
@ -154,7 +154,7 @@ msg_t WebThread(void *p) {
|
|||
/*
|
||||
* Event sources setup.
|
||||
*/
|
||||
chEvtRegister(macGetReceiveEventSource(Ð1), &el0, FRAME_RECEIVED_ID);
|
||||
chEvtRegister(macGetReceiveEventSource(ÐD1), &el0, FRAME_RECEIVED_ID);
|
||||
chEvtAddFlags(EVENT_MASK(FRAME_RECEIVED_ID)); /* In case some frames are already buffered */
|
||||
|
||||
evtInit(&evt1, MS2ST(500));
|
||||
|
@ -168,8 +168,8 @@ msg_t WebThread(void *p) {
|
|||
/*
|
||||
* EMAC driver start.
|
||||
*/
|
||||
macStart(Ð1, &mac_config);
|
||||
(void)macPollLinkStatus(Ð1);
|
||||
macStart(ÐD1, &mac_config);
|
||||
(void)macPollLinkStatus(ÐD1);
|
||||
|
||||
/*
|
||||
* uIP initialization.
|
||||
|
|
|
@ -60,7 +60,7 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../..
|
||||
include $(CHIBIOS)/boards/OLIMEX_STM32_P107/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F1xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F1xx/platform_f105_f107.mk
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F1xx/port.mk
|
||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
/*
|
||||
* USB driver system settings.
|
||||
*/
|
||||
#define STM32_USB_USE_OTG1 TRUE
|
||||
#define STM32_USB_USE_OTG1 FALSE
|
||||
#define STM32_USB_OTG1_IRQ_PRIORITY 14
|
||||
#define STM32_USB_OTG1_RX_FIFO_SIZE 512
|
||||
#define STM32_USB_OTG_THREAD_PRIO LOWPRIO
|
||||
|
|
|
@ -60,7 +60,7 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../..
|
||||
include $(CHIBIOS)/boards/OLIMEX_STM32_P107/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F1xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F1xx/platform_f105_f107.mk
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F1xx/port.mk
|
||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
/*
|
||||
* USB driver system settings.
|
||||
*/
|
||||
#define STM32_USB_USE_OTG1 TRUE
|
||||
#define STM32_USB_USE_OTG1 FALSE
|
||||
#define STM32_USB_OTG1_IRQ_PRIORITY 14
|
||||
#define STM32_USB_OTG1_RX_FIFO_SIZE 512
|
||||
#define STM32_USB_OTG_THREAD_PRIO LOWPRIO
|
||||
|
|
|
@ -60,7 +60,7 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../..
|
||||
include $(CHIBIOS)/boards/OLIMEX_STM32_P107/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F1xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F1xx/platform_f105_f107.mk
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F1xx/port.mk
|
||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
/*
|
||||
* USB driver system settings.
|
||||
*/
|
||||
#define STM32_USB_USE_OTG1 TRUE
|
||||
#define STM32_USB_USE_OTG1 FALSE
|
||||
#define STM32_USB_OTG1_IRQ_PRIORITY 14
|
||||
#define STM32_USB_OTG1_RX_FIFO_SIZE 512
|
||||
#define STM32_USB_OTG_THREAD_PRIO LOWPRIO
|
||||
|
|
Loading…
Reference in New Issue