UIP and FatFS related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5743 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
cfa75cd2d6
commit
071dd3e06c
|
@ -261,7 +261,7 @@ static void cmd_tree(BaseSequentialStream *chp, int argc, char *argv[]) {
|
||||||
chprintf(chp,
|
chprintf(chp,
|
||||||
"FS: %lu free clusters, %lu sectors per cluster, %lu bytes free\r\n",
|
"FS: %lu free clusters, %lu sectors per cluster, %lu bytes free\r\n",
|
||||||
clusters, (uint32_t)MMC_FS.csize,
|
clusters, (uint32_t)MMC_FS.csize,
|
||||||
clusters * (uint32_t)MMC_FS.csize * (uint32_t)MMC_SECTOR_SIZE);
|
clusters * (uint32_t)MMC_FS.csize * (uint32_t)MMCSD_BLOCK_SIZE);
|
||||||
fbuff[0] = 0;
|
fbuff[0] = 0;
|
||||||
scan_files(chp, (char *)fbuff);
|
scan_files(chp, (char *)fbuff);
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,7 +151,7 @@ msg_t WebThread(void *p) {
|
||||||
* Event sources setup.
|
* Event sources setup.
|
||||||
*/
|
*/
|
||||||
chEvtRegister(macGetReceiveEventSource(ÐD1), &el0, FRAME_RECEIVED_ID);
|
chEvtRegister(macGetReceiveEventSource(ÐD1), &el0, FRAME_RECEIVED_ID);
|
||||||
chEvtAddFlags(EVENT_MASK(FRAME_RECEIVED_ID)); /* In case some frames are already buffered */
|
chEvtAddEvents(EVENT_MASK(FRAME_RECEIVED_ID)); /* In case some frames are already buffered */
|
||||||
|
|
||||||
evtInit(&evt1, MS2ST(500));
|
evtInit(&evt1, MS2ST(500));
|
||||||
evtStart(&evt1);
|
evtStart(&evt1);
|
||||||
|
|
|
@ -135,7 +135,7 @@ typedef struct {
|
||||||
/**
|
/**
|
||||||
* @brief MAC address.
|
* @brief MAC address.
|
||||||
*/
|
*/
|
||||||
uint8_t *mac_address;
|
const uint8_t *mac_address;
|
||||||
/* End of the mandatory fields.*/
|
/* End of the mandatory fields.*/
|
||||||
} MACConfig;
|
} MACConfig;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue