stm32100e_eval_fsmc_onenand.c File Reference

This file provides a set of functions needed to drive the KFG1216x2A-xxB5 OneNAND memory mounted on STM32100E-EVAL board. More...

#include "stm32100e_eval_fsmc_onenand.h"
#include "stm32f10x.h"

Go to the source code of this file.

Defines

#define ADDR_SHIFT(A)   (Bank1_NOR1_ADDR + (2 * (A)))
#define Bank1_NOR1_ADDR   ((uint32_t)0x60000000)
#define ONENAND_BOOTPARTITION_ADDR   ((uint32_t)Bank1_NOR1_ADDR)
#define OneNAND_WRITE(Address, Data)   (*(__IO uint16_t *)(Address) = (Data))

Functions

void OneNAND_AsynchronousRead (uint16_t *pBuffer, uint32_t ReadAddr, uint32_t NumHalfwordToRead)
 Reads a block of data from the OneNAND memory.
uint16_t OneNAND_EraseBlock (uint32_t BlockAddr)
 Erases the specified OneNAND memory block.
void OneNAND_Init (void)
 Configures the FSMC and GPIOs to interface with the OneNAND memory.
uint16_t OneNAND_ReadControllerStatus (void)
 Reads the OneNAND Controller status.
void OneNAND_ReadID (OneNAND_IDTypeDef *OneNAND_ID)
 Reads OneNAND memory's Manufacturer and Device Code.
uint16_t OneNAND_ReadStatus (void)
 Reads the OneNAND memory status.
void OneNAND_Reset (void)
 Resets the OneNAND memory.
void OneNAND_SynchronousRead (uint16_t *pBuffer, uint32_t ReadAddr, uint32_t NumHalfwordToRead)
 Reads a block of data from the OneNAND memory.
uint16_t OneNAND_Unlock (void)
 Unlocks the OneNAND memory.
uint16_t OneNAND_WriteBuffer (uint16_t *pBuffer, uint32_t WriteAddr, uint32_t NumHalfwordToWrite)
 Writes a Half-word buffer to the OneNAND memory.

Detailed Description

This file provides a set of functions needed to drive the KFG1216x2A-xxB5 OneNAND memory mounted on STM32100E-EVAL board.

Author:
MCD Application Team
Version:
V4.3.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file stm32100e_eval_fsmc_onenand.c.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32