#include #include #include #include #include #include /* Support for M25P16 2Mbyte flash RAM BEWARE Programming can only set bits to zero. IT CANNOT CHANGE A ZERO TO A ONE You must use the Bulk or sector erase to set bits back to a one RAM_PORT PORT for the RAM CS signal RAM_CS and RAM registers RAM_RDID RAM_WREN RAM_BE RAM_PP RAM_RDSR and of functions: xmit_spi recv_spi Additionally, RAM_CS must be defined as an output on the appropriate DDR */ void read_ram_id(uint8_t* mem_ptr) { RAM_PORT &= ~(1<