summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authoryygg_you <[email protected]>2017-10-06 08:58:24 +0800
committeryygg_you <[email protected]>2017-10-06 08:58:24 +0800
commit2e01bafa71dc0309abfca352edae8872d27038fc (patch)
treea4208429d31866a5938ee6484ae25b525d0180d7 /components
parentad1d3375f222c5746514ab16003dc18c0df83dad (diff)
parenta15d90a6865fa05e2420205556df7cece5f5c134 (diff)
Merge branch 'master' of https://github.com/yygg/rt-thread
Diffstat (limited to 'components')
-rwxr-xr-xcomponents/cplusplus/crt_init.c4
-rw-r--r--components/dfs/filesystems/romfs/romfs.c4
-rw-r--r--components/drivers/KConfig17
-rw-r--r--components/drivers/spi/sfud/README.md6
-rw-r--r--components/drivers/spi/sfud/inc/sfud_def.h2
-rw-r--r--components/drivers/spi/sfud/inc/sfud_flash_def.h2
-rw-r--r--components/net/lwip-2.0.0/src/arch/sys_arch.c2
-rw-r--r--components/net/lwip-2.0.2/src/arch/sys_arch.c4
-rw-r--r--components/net/lwip-2.0.2/src/netif/ethernetif.c2
9 files changed, 32 insertions, 11 deletions
diff --git a/components/cplusplus/crt_init.c b/components/cplusplus/crt_init.c
index ebcc4af37d..12c92dc6fb 100755
--- a/components/cplusplus/crt_init.c
+++ b/components/cplusplus/crt_init.c
@@ -44,11 +44,11 @@ void _fini()
{
}
-WEAK void *__dso_handle = 0;
+RT_WEAK void *__dso_handle = 0;
#endif
-WEAK
+RT_WEAK
int cplusplus_system_init(void)
{
#if defined(__GNUC__) && !defined(__CC_ARM)
diff --git a/components/dfs/filesystems/romfs/romfs.c b/components/dfs/filesystems/romfs/romfs.c
index ff4b353059..a571c36ec6 100644
--- a/components/dfs/filesystems/romfs/romfs.c
+++ b/components/dfs/filesystems/romfs/romfs.c
@@ -39,13 +39,13 @@ const static unsigned char _dummy_txt[] =
0x74,0x68,0x69,0x73,0x20,0x69,0x73,0x20,0x61,0x20,0x66,0x69,0x6c,0x65,0x21,0x0d,0x0a,
};
-const struct romfs_dirent WEAK _root_dirent[] =
+const struct romfs_dirent RT_WEAK _root_dirent[] =
{
{ROMFS_DIRENT_DIR, "dummy", (rt_uint8_t *)_dummy, sizeof(_dummy)/sizeof(_dummy[0])},
{ROMFS_DIRENT_FILE, "dummy.txt", _dummy_txt, sizeof(_dummy_txt)},
};
-const struct romfs_dirent WEAK romfs_root =
+const struct romfs_dirent RT_WEAK romfs_root =
{
ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_root_dirent, sizeof(_root_dirent)/sizeof(_root_dirent[0])
};
diff --git a/components/drivers/KConfig b/components/drivers/KConfig
index 7679ea4493..663b35c188 100644
--- a/components/drivers/KConfig
+++ b/components/drivers/KConfig
@@ -45,6 +45,23 @@ config RT_USING_SPI
default n
if RT_USING_SPI
+ config RT_USING_SFUD
+ bool "Using Serial Flash Universal Driver"
+ default n
+ if RT_USING_SFUD
+ config RT_SFUD_USING_SFDP
+ bool "Using auto probe flash JEDEC SFDP parameter"
+ default y
+
+ config RT_SFUD_USING_FLASH_INFO_TABLE
+ bool "Using defined supported flash chip information table"
+ default y
+
+ config RT_SFUD_DEBUG
+ bool "Show more SFUD debug information"
+ default n
+ endif
+
config RT_USING_W25QXX
bool "Using W25QXX SPI NorFlash"
default n
diff --git a/components/drivers/spi/sfud/README.md b/components/drivers/spi/sfud/README.md
index 13ef219154..4ad5f0ee44 100644
--- a/components/drivers/spi/sfud/README.md
+++ b/components/drivers/spi/sfud/README.md
@@ -37,14 +37,16 @@
|[MX25L3206E](http://www.macronix.com/Lists/DataSheet/Attachments/3199/MX25L3206E,%203V,%2032Mb,%20v1.5.pdf)|Macronix|32Mb|86MHz|支持||
|[KH25L3206E](http://www.macronix.com.hk/Lists/Datasheet/Attachments/131/KH25L3206E.pdf)|Macronix|32Mb|86Mhz|支持||
|[SST25VF016B](http://ww1.microchip.com/downloads/en/DeviceDoc/20005044C.pdf)|Microchip|16Mb|50MHz|不支持| SST 已被 Microchip 收购|
+|[M25P40](https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/m25p/m25p40.pdf)|Micron|4Mb|75Mhz|不支持| by [redocCheng](https://github.com/redocCheng)|
+|[M25P80](https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/m25p/m25p80.pdf)|Micron|8Mb|75Mhz|不支持| by [redocCheng](https://github.com/redocCheng)|
|[M25P32](https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/m25p/m25p32.pdf)|Micron|32Mb|75Mhz|不支持||
|[EN25Q32B](http://www.kean.com.au/oshw/WR703N/teardown/EN25Q32B%2032Mbit%20SPI%20Flash.pdf)|EON|32Mb|104MHz|不支持||
-|[GD25Q64B](http://www.gigadevice.com/product/detail/5/364.html)|GigaDevice|64Mb|120Mhz|不支持||
|[GD25Q16B](http://www.gigadevice.com/product/detail/5/410.html)|GigaDevice|16Mb|120Mhz|不支持| by [TanekLiang](https://github.com/TanekLiang) |
+|[GD25Q64B](http://www.gigadevice.com/product/detail/5/364.html)|GigaDevice|64Mb|120Mhz|不支持||
|[S25FL216K](http://www.cypress.com/file/197346/download)|Cypress|16Mb|65Mhz|不支持||
|[S25FL164K](http://www.cypress.com/file/196886/download)|Cypress|64Mb|108Mhz|支持||
-|[A25LQ64](http://www.amictechnology.com/datasheets/A25LQ64.pdf)|AMIC|64Mb|104Mhz|支持||
|[A25L080](http://www.amictechnology.com/datasheets/A25L080.pdf)|AMIC|8Mb|100Mhz|不支持||
+|[A25LQ64](http://www.amictechnology.com/datasheets/A25LQ64.pdf)|AMIC|64Mb|104Mhz|支持||
|[F25L004](http://www.esmt.com.tw/db/manager/upload/f25l004.pdf)|ESMT|4Mb|100Mhz|不支持||
|[PCT25VF016B](http://pctgroup.com.tw/attachments/files/files/248_25VF016B-P.pdf)|PCT|16Mb|80Mhz|不支持|SST 授权许可,会被识别为 SST25VF016B|
|[AT45DB161E](http://www.adestotech.com/wp-content/uploads/doc8782.pdf)|ADESTO|16Mb|85MHz|不支持|ADESTO 收购 Atmel 串行闪存产品线|
diff --git a/components/drivers/spi/sfud/inc/sfud_def.h b/components/drivers/spi/sfud/inc/sfud_def.h
index cc38c3fa1a..1b5636c1b4 100644
--- a/components/drivers/spi/sfud/inc/sfud_def.h
+++ b/components/drivers/spi/sfud/inc/sfud_def.h
@@ -77,7 +77,7 @@ if (!(EXPR)) \
else {if (__delay_temp) {__delay_temp();} retry --;}
/* software version number */
-#define SFUD_SW_VERSION "1.0.1"
+#define SFUD_SW_VERSION "1.0.2"
/*
* all defined supported command
*/
diff --git a/components/drivers/spi/sfud/inc/sfud_flash_def.h b/components/drivers/spi/sfud/inc/sfud_flash_def.h
index 06c95b775a..26b5ace3b4 100644
--- a/components/drivers/spi/sfud/inc/sfud_flash_def.h
+++ b/components/drivers/spi/sfud/inc/sfud_flash_def.h
@@ -113,6 +113,8 @@ typedef struct {
{"W25Q40BV", SFUD_MF_ID_WINBOND, 0x40, 0x13, 512*1024, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"SST25VF016B", SFUD_MF_ID_SST, 0x25, 0x41, 2*1024*1024, SFUD_WM_BYTE|SFUD_WM_AAI, 4096, 0x20}, \
{"M25P32", SFUD_MF_ID_MICRON, 0x20, 0x16, 4*1024*1024, SFUD_WM_PAGE_256B, 64*1024, 0xD8}, \
+ {"M25P80", SFUD_MF_ID_MICRON, 0x20, 0x14, 1*1024*1024, SFUD_WM_PAGE_256B, 64*1024, 0xD8}, \
+ {"M25P40", SFUD_MF_ID_MICRON, 0x20, 0x13, 512*1024, SFUD_WM_PAGE_256B, 64*1024, 0xD8}, \
{"EN25Q32B", SFUD_MF_ID_EON, 0x30, 0x16, 4*1024*1024, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"GD25Q64B", SFUD_MF_ID_GIGADEVICE, 0x40, 0x17, 8*1024*1024, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"GD25Q16B", SFUD_MF_ID_GIGADEVICE, 0x40, 0x15, 2*1024*1024, SFUD_WM_PAGE_256B, 4096, 0x20}, \
diff --git a/components/net/lwip-2.0.0/src/arch/sys_arch.c b/components/net/lwip-2.0.0/src/arch/sys_arch.c
index 7db873f130..c5b4dbbf47 100644
--- a/components/net/lwip-2.0.0/src/arch/sys_arch.c
+++ b/components/net/lwip-2.0.0/src/arch/sys_arch.c
@@ -600,7 +600,7 @@ u32_t sys_now(void)
return rt_tick_get() * (1000 / RT_TICK_PER_SECOND);
}
-WEAK
+RT_WEAK
void mem_init(void)
{
}
diff --git a/components/net/lwip-2.0.2/src/arch/sys_arch.c b/components/net/lwip-2.0.2/src/arch/sys_arch.c
index cd76a73abe..bb809ac6ad 100644
--- a/components/net/lwip-2.0.2/src/arch/sys_arch.c
+++ b/components/net/lwip-2.0.2/src/arch/sys_arch.c
@@ -177,7 +177,7 @@ int lwip_system_init(void)
return 0;
}
-//INIT_COMPONENT_EXPORT(lwip_system_init);
+INIT_COMPONENT_EXPORT(lwip_system_init);
void sys_init(void)
{
@@ -602,7 +602,7 @@ u32_t sys_now(void)
}
-WEAK
+RT_WEAK
void mem_init(void)
{
}
diff --git a/components/net/lwip-2.0.2/src/netif/ethernetif.c b/components/net/lwip-2.0.2/src/netif/ethernetif.c
index c648dcf1a9..5b82649662 100644
--- a/components/net/lwip-2.0.2/src/netif/ethernetif.c
+++ b/components/net/lwip-2.0.2/src/netif/ethernetif.c
@@ -451,7 +451,7 @@ int eth_system_device_init(void)
return (int)result;
}
-//INIT_DEVICE_EXPORT(eth_system_device_init);
+INIT_DEVICE_EXPORT(eth_system_device_init);
#ifdef RT_USING_FINSH
#include <finsh.h>