diff options
| author | onelife.real <[email protected]> | 2011-06-20 01:56:28 +0000 |
|---|---|---|
| committer | onelife.real <[email protected]> | 2011-06-20 01:56:28 +0000 |
| commit | 69ad018bc04639dd295de0005dc128b99721064f (patch) | |
| tree | 64dd0b0235b9d81c38a2c1818456cb036b4f9ce5 /bsp/efm32/dev_sflash.h | |
| parent | 1eca19cb01309eaddbdc42cb12c17f1425124800 (diff) | |
*** EFM32 branch ***
1. Add SD card driver (SPI mode)
2. Add ELM ChaN FatFs support (Please read "Readme.txt")
- Warning: FatFs is really FAT! (35KB)
3. Upgrade EFM32 libraries (CMSIS and efm32lib) to version 2.0.0
4. Merge all of the C source code in "libcpu\arm\cortex-m3\" into "cpuport.c"
5. Merge all of the assembly source code in "libcpu\arm\cortex-m3\" into "context_gcc.S" (except "start_gcc.S")
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1525 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/efm32/dev_sflash.h')
| -rw-r--r-- | bsp/efm32/dev_sflash.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bsp/efm32/dev_sflash.h b/bsp/efm32/dev_sflash.h index 1a10999331..7eb8c1e168 100644 --- a/bsp/efm32/dev_sflash.h +++ b/bsp/efm32/dev_sflash.h @@ -12,7 +12,7 @@ **********************************************************************
* @section Change Logs
* Date Author Notes
- * 2010-05-06 onelife Initial creation for using EFM32 USART module
+ * 2011-05-06 onelife Initial creation for using EFM32 USART module
*********************************************************************/
#ifndef __DEV_SFLASH_H__
#define __DEV_SFLASH_H__
@@ -48,6 +48,9 @@ enum sflash_inst_type_t /* Exported constants ---------------------------------------------------------*/
/* Exported macro -------------------------------------------------------------*/
+#define SFLASH_SPI_COMMAND_SKIP (1)
+#define SFLASH_SPI_READ_SKIP (2)
+
#define SFLASH_INST_CODE_WREN (0x06)
#define SFLASH_INST_CODE_WRDI (0x04)
#define SFLASH_INST_CODE_RDID_L (0x9F)
@@ -91,9 +94,9 @@ enum sflash_inst_type_t #define SFLASH_REPLY_LEN_RDP (0)
/* Exported functions --------------------------------------------------------- */
-rt_err_t efm_spiFash_init(void);
-rt_err_t efm_spiFash_deinit(void);
-rt_uint32_t efm_spiFash_cmd(
+rt_err_t efm_spiFlash_init(void);
+rt_err_t efm_spiFlash_deinit(void);
+rt_uint32_t efm_spiFlash_cmd(
enum sflash_inst_type_t command,
rt_uint32_t address,
rt_uint8_t *buffer,
|
