modify webserver function using mongoose.a(compile using arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620)
This commit is contained in:
@@ -25,6 +25,7 @@ menuconfig BSP_USING_ETHERNET
|
||||
menuconfig BSP_USING_W5500
|
||||
bool "Using W5500 ethernet device"
|
||||
default n
|
||||
select BSP_USING_ETHERNET
|
||||
select BSP_USING_LWIP
|
||||
select BSP_USING_SPI
|
||||
select BSP_USING_SPI1
|
||||
@@ -55,7 +56,7 @@ menuconfig BSP_USING_SPI
|
||||
|
||||
menuconfig BSP_USING_SDRAM
|
||||
bool "Using SDRAM IS42S16400J"
|
||||
default y
|
||||
default n
|
||||
if BSP_USING_SDRAM
|
||||
source "$BSP_DIR/third_party_driver/sdram/Kconfig"
|
||||
endif
|
||||
|
||||
@@ -303,7 +303,7 @@ static int GpioPinIndex(uint16_t pin)
|
||||
int ret = 0;
|
||||
for (; ret <= MAX_PIN_INDEX; ret++) { // ret must be 16-bit
|
||||
if ((0x0001U << ret) & pin) {
|
||||
KPrintf("the int pin is %d\n", ret);
|
||||
// KPrintf("the int pin is %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -214,9 +214,9 @@ static struct SdioDevDone dev_done = {
|
||||
static int MountSDCardFs(enum FilesystemType fs_type)
|
||||
{
|
||||
if (MountFilesystem(SDIO_BUS_NAME, SDIO_DEVICE_NAME, SDIO_DRIVER_NAME, fs_type, "/") == 0)
|
||||
KPrintf("Sd card mount to '/'");
|
||||
KPrintf("Sd card mount to '/'\n");
|
||||
else
|
||||
KPrintf("Sd card mount to '/' failed!");
|
||||
KPrintf("Sd card mount to '/' failed!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -291,7 +291,7 @@ int MountSDCard()
|
||||
{
|
||||
int sd_card_task = 0;
|
||||
sd_card_task = KTaskCreate("sd_card", SdCardTask, NONE,
|
||||
SD_CARD_STACK_SIZE, 8);
|
||||
SD_CARD_STACK_SIZE, 17);
|
||||
if (sd_card_task < 0) {
|
||||
KPrintf("sd_card_task create failed ...%s %d.\n", __FUNCTION__, __LINE__);
|
||||
return ERROR;
|
||||
|
||||
@@ -78,7 +78,7 @@ char lwip_eth0_gwaddr[20] = { 192, 168, 130, 1 };
|
||||
|
||||
char lwip_eth1_ipaddr[20] = { 192, 168, 131, 88 };
|
||||
char lwip_eth1_netmask[20] = { 255, 255, 254, 0 };
|
||||
char lwip_eth1_gwaddr[20] = { 192, 168, 130, 1 };
|
||||
char lwip_eth1_gwaddr[20] = { 192, 168, 131, 1 };
|
||||
|
||||
char lwip_flag = 0;
|
||||
|
||||
@@ -256,11 +256,11 @@ err_t sys_mbox_new(sys_mbox_t* mbox, int size)
|
||||
}
|
||||
#endif /* SYS_STATS */
|
||||
if (*mbox < 0) {
|
||||
lw_print("lw: [%s] alloc %d mbox %p failed\n", __func__, size, mbox);
|
||||
lw_error("lw: [%s] alloc %d mbox %p failed\n", __func__, size, mbox);
|
||||
return ERR_MEM;
|
||||
}
|
||||
|
||||
lw_print("lw: [%s] alloc %d mbox %p ok!\n", __func__, size, mbox);
|
||||
// lw_print("lw: [%s] alloc %d mbox %p ok!\n", __func__, size, mbox);
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user