#include "MAM.h"Go to the source code of this file.
Functions | |
| void | SetGPIO_AD (uint32_t address, uint16_t data) |
| void | SetGPIOAddress (uint32_t address) |
| void | MemGPIOWE (short sStaff) |
| void | MemGPIOOE (short sStaff) |
| void | MemGPIOCE (short sStaff) |
| void | SetSignal (char const *pName, short dir, uint32_t val) |
| void | MemGPIOInit (void) |
| void | SetGPIOData (uint16_t data) |
| uint16_t | ReadNext (uint32_t address) |
| uint32_t | ReadDB (uint32_t address) |
| void | ReadDBStart (uint32_t address) |
| uint32_t | ReadDBEnd (void) |
| pJEDEC | detect_jedec (void) |
| pCFI | detect_cfi (void) |
| pCFI detect_cfi | ( | void | ) |
Definition at line 142 of file MAM.c.
References AB_LSB_16, cfi, MemGPIOInit(), OUT, printf(), CFI::qsi, ReadDB(), ReadNext(), SetGPIOAddress(), SetGPIOData(), SetSignal(), CFI::sQ, CFI::sR, CFI::sY, cfi_query_system_interface_information::vcc_max_wev, cfi_query_system_interface_information::vcc_min_wev, and WD_Reset().
Referenced by main().
| pJEDEC detect_jedec | ( | void | ) |
Definition at line 133 of file MAM.c.
References AB_LSB_16, jedec, MemGPIOInit(), ReadDB(), JEDEC::sDevice, SetGPIO_AD(), and JEDEC::sManufacturer.
Referenced by main().
| void MemGPIOCE | ( | short | sStaff | ) |
Definition at line 57 of file MAM.c.
References GPIO1_IOCLR, and GPIO1_IOSET.
Referenced by SetSignal().
| void MemGPIOInit | ( | void | ) |
Definition at line 76 of file MAM.c.
References chain, GPIO1_IODIR, GPIO2_IOCLR, GPIO2_IODIR, GPIO3_IOCLR, GPIO3_IODIR, OUT, PCB_PINSEL2, SetSignal(), and WD_Reset().
Referenced by detect_cfi(), and detect_jedec().
| void MemGPIOOE | ( | short | sStaff | ) |
Definition at line 50 of file MAM.c.
References GPIO1_IOCLR, and GPIO1_IOSET.
Referenced by SetSignal().
| void MemGPIOWE | ( | short | sStaff | ) |
Definition at line 44 of file MAM.c.
References GPIO3_IOCLR, and GPIO3_IOSET.
Referenced by SetSignal().
Definition at line 115 of file MAM.c.
References ReadDBEnd(), and ReadDBStart().
Referenced by detect_cfi(), and detect_jedec().
| uint32_t ReadDBEnd | ( | void | ) |
Definition at line 126 of file MAM.c.
References GPIO2_IOPIN, OUT, and SetSignal().
Referenced by ReadDB().
| void ReadDBStart | ( | uint32_t | address | ) |
Definition at line 119 of file MAM.c.
References OUT, SetGPIOAddress(), and SetSignal().
Referenced by ReadDB().
Definition at line 102 of file MAM.c.
References GPIO2_IODIR, GPIO2_IOPIN, OUT, SetGPIOAddress(), SetSignal(), and WD_Reset().
Referenced by detect_cfi().
Definition at line 28 of file MAM.c.
References AB_CHAIN_OFFSET, chain, DB_CHAIN_OFFSET, GPIO2_IOCLR, GPIO2_IOSET, GPIO3_IOCLR, GPIO3_IOSET, nCE, OUT, and SetSignal().
Referenced by detect_jedec().
| void SetGPIOAddress | ( | uint32_t | address | ) |
Definition at line 39 of file MAM.c.
References AB_CHAIN_OFFSET, chain, GPIO3_IOCLR, and GPIO3_IOSET.
Referenced by detect_cfi(), ReadDBStart(), and ReadNext().
| void SetGPIOData | ( | uint16_t | data | ) |
Definition at line 94 of file MAM.c.
References chain, DB_CHAIN_OFFSET, GPIO2_IOCLR, GPIO2_IODIR, GPIO2_IOSET, OUT, and SetSignal().
Referenced by detect_cfi().
| void SetSignal | ( | char const * | pName, | |
| short | dir, | |||
| uint32_t | val | |||
| ) |
Definition at line 65 of file MAM.c.
References AB_CHAIN_OFFSET, chain, char2num(), MemGPIOCE(), MemGPIOOE(), MemGPIOWE(), nCE, nOE, NULL, nWE, printf(), strcmp(), strlen(), and WD_Reset().
Referenced by detect_cfi(), MemGPIOInit(), ReadDBEnd(), ReadDBStart(), ReadNext(), SetGPIO_AD(), and SetGPIOData().
1.4.7