#include "lpc2119.h"#include "types.h"Go to the source code of this file.
Data Structures | |
| struct | JEDEC |
| struct | cfi_query_system_interface_information |
| struct | CFI |
Defines | |
| #define | AB_LSB_16 1 |
| #define | AB_CHAIN_OFFSET 3 |
| #define | DB_CHAIN_OFFSET 27 |
| #define | OUT 1 |
| #define | IN 0 |
| #define | nCE 0 |
| #define | nOE 1 |
| #define | nWE 2 |
Typedefs | |
| typedef JEDEC | pJEDEC |
| typedef cfi_query_system_interface_information | cfi_query_system_interface_information_t |
| typedef CFI | pCFI |
Functions | |
| void | SetGPIOAddress (uint32_t address) |
| void | SetGPIOData (uint16_t data) |
| void | MemGPIOInit (void) |
| void | SetSignal (char const *, short, uint32_t) |
| uint32_t | ReadDB (uint32_t) |
| uint32_t | ReadDBEnd (void) |
| void | ReadDBStart (uint32_t) |
| void | MemGPIOCE (short) |
| void | MemGPIOWE (short) |
| void | MemGPIOOE (short) |
| pJEDEC | detect_jedec (void) |
| pCFI | detect_cfi (void) |
Variables | |
| uint8_t | chain [45] |
| #define AB_CHAIN_OFFSET 3 |
| #define AB_LSB_16 1 |
| #define DB_CHAIN_OFFSET 27 |
| #define nCE 0 |
| #define nOE 1 |
| #define nWE 2 |
| #define OUT 1 |
Definition at line 36 of file MAM.h.
Referenced by detect_cfi(), MemGPIOInit(), ReadDBEnd(), ReadDBStart(), ReadNext(), SetGPIO_AD(), and SetGPIOData().
| 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 | ) |
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 | ) |
Definition at line 50 of file MAM.c.
References GPIO1_IOCLR, and GPIO1_IOSET.
Referenced by SetSignal().
| void MemGPIOWE | ( | short | ) |
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 | ) |
Definition at line 119 of file MAM.c.
References OUT, SetGPIOAddress(), and SetSignal().
Referenced by ReadDB().
| 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 * | , | |
| short | , | |||
| uint32_t | ||||
| ) |
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().
Definition at line 114 of file MAM.h.
Referenced by MemGPIOInit(), SetGPIO_AD(), SetGPIOAddress(), SetGPIOData(), and SetSignal().
1.4.7