mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 07:27:11 +00:00
Futher NAND development
This commit is contained in:
parent
854e50b48e
commit
d421eb4fd6
5 changed files with 87 additions and 4 deletions
|
|
@ -51,6 +51,8 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-Processor Definitions
|
||||
****************************************************************************/
|
||||
|
|
@ -84,6 +86,7 @@ extern "C"
|
|||
* Probe and initialize NAND.
|
||||
*
|
||||
* Input parameters:
|
||||
* raw - Raw NAND FLASH MTD interface
|
||||
* cmdaddr - NAND command address base
|
||||
* addraddr - NAND address address base
|
||||
* dataaddr - NAND data address
|
||||
|
|
@ -93,7 +96,8 @@ extern "C"
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
int nand_initialize(uintptr_t cmdaddr, uintptr_t addraddr, uintptr_t dataaddr);
|
||||
int nand_initialize(FAR struct mtd_dev_s *raw,
|
||||
uintptr_t cmdaddr, uintptr_t addraddr, uintptr_t dataaddr);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue