NANO100_BSP V3.04.002
The Board Support Package for Nano100BN Series
Functions
NuEdu-Basic01_SPI_Flash_w_PDMA.c File Reference

NuEdu-Basic01_SPI_Flash_w_PDMA driver source file for NuEdu-SDK-Nano130. More...

#include <stdio.h>
#include "Nano100Series.h"
#include "NuEdu-Basic01_SPI_Flash_w_PDMA.h"
Include dependency graph for NuEdu-Basic01_SPI_Flash_w_PDMA.c:

Go to the source code of this file.

Functions

void PDMA_IRQHandler (void)
 PDMA interrupt handler. Check the PDMA interrupt flag and clear the corresponding event flag. More...
 
void Open_SPI_Flash (void)
 Open GPIO port for SPI interface and configure this SPI controller as Master, MSB first, clock idle low, TX at falling-edge, RX at rising-edge, 32-bit length transaction, disable the automatic hardware slave select function and SPI serial clock rate = 2 MHz. More...
 
void Init_PDMA_CH1_for_SPI0_TX (uint32_t u32SrcAddr)
 This function initializes the PDMA channel 1 for SPI0 transmitting TX and the data that will be transmiitted out are stored in the source buffer. More...
 
void Init_PDMA_CH2_for_SPI0_RX (uint32_t u32DstAddr)
 This function initializes the PDMA channel 2 for SPI0 receiving RX and the receiving data will be stored into the destination buffer. More...
 
unsigned int SpiFlash_w_PDMA_ReadMidDid (void)
 Read back the Manufacturer ID and Device ID from SPI Flash device. More...
 
void SpiFlash_w_PDMA_ChipErase (void)
 This function do the chip erasing to SPI Flash device. More...
 
unsigned int SpiFlash_w_PDMA_ReadStatusReg1 (void)
 Read back the Status Register 1 from SPI Flash device. More...
 
unsigned int SpiFlash_w_PDMA_ReadStatusReg2 (void)
 Read back the Status Register 2 from SPI Flash device. More...
 
void SpiFlash_w_PDMA_WaitReady (void)
 Waiting for the BUSY bit of SPI Flash that be cleared to 0. More...
 
void SpiFlash_w_PDMA_PageProgram (unsigned int StartAddress, unsigned int ByteCount)
 This function do the page programming to SPI Flash device. More...
 
void SpiFlash_w_PDMA_ReadData (unsigned int StartAddress, unsigned int ByteCount)
 This function do the data reading from SPI Flash device. More...
 

Detailed Description

NuEdu-Basic01_SPI_Flash_w_PDMA driver source file for NuEdu-SDK-Nano130.

Version
V1.00
Revision
5
Date
14/10/17 3:56p
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file NuEdu-Basic01_SPI_Flash_w_PDMA.c.