UIP and FatFS related fixes.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5743 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-05-19 09:09:53 +00:00
parent cfa75cd2d6
commit 071dd3e06c
3 changed files with 3 additions and 3 deletions

View File

@ -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);
} }

View File

@ -151,7 +151,7 @@ msg_t WebThread(void *p) {
* Event sources setup. * Event sources setup.
*/ */
chEvtRegister(macGetReceiveEventSource(&ETHD1), &el0, FRAME_RECEIVED_ID); chEvtRegister(macGetReceiveEventSource(&ETHD1), &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);

View File

@ -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;