spi_flash.c (161197) | spi_flash.c (163533) |
---|---|
1/****************************************************************************** 2 * 3 * Filename: spi_flash.c 4 * 5 * Instantiation of SPI flash control routines supporting AT45DB161B 6 * 7 * Revision information: 8 * --- 5 unchanged lines hidden (view full) --- 14 * No warranty, expressed or implied, is included with this software. It is 15 * provided "AS IS" and no warranty of any kind including statutory or aspects 16 * relating to merchantability or fitness for any purpose is provided. All 17 * intellectual property rights of others is maintained with the respective 18 * owners. This software is not copyrighted and is intended for reference 19 * only. 20 * END_BLOCK 21 * | 1/****************************************************************************** 2 * 3 * Filename: spi_flash.c 4 * 5 * Instantiation of SPI flash control routines supporting AT45DB161B 6 * 7 * Revision information: 8 * --- 5 unchanged lines hidden (view full) --- 14 * No warranty, expressed or implied, is included with this software. It is 15 * provided "AS IS" and no warranty of any kind including statutory or aspects 16 * relating to merchantability or fitness for any purpose is provided. All 17 * intellectual property rights of others is maintained with the respective 18 * owners. This software is not copyrighted and is intended for reference 19 * only. 20 * END_BLOCK 21 * |
22 * $FreeBSD: head/sys/boot/arm/at91/libat91/spi_flash.c 161197 2006-08-10 18:14:35Z imp $ | 22 * $FreeBSD: head/sys/boot/arm/at91/libat91/spi_flash.c 163533 2006-10-20 09:12:05Z imp $ |
23 *****************************************************************************/ 24 25#include "at91rm9200.h" 26#include "spi_flash.h" 27#include "lib.h" 28 29/*********************** PRIVATE FUNCTIONS/DATA ******************************/ 30 --- 198 unchanged lines hidden (view full) --- 229 230 value = pSPI->SPI_RDR; 231 value = pSPI->SPI_SR; 232 233 // Increment real time counter every SLCK 234 AT91C_BASE_ST->ST_RTMR = 1; 235 236 if (((value = GetFlashStatus()) & 0xFC) != 0xBC) | 23 *****************************************************************************/ 24 25#include "at91rm9200.h" 26#include "spi_flash.h" 27#include "lib.h" 28 29/*********************** PRIVATE FUNCTIONS/DATA ******************************/ 30 --- 198 unchanged lines hidden (view full) --- 229 230 value = pSPI->SPI_RDR; 231 value = pSPI->SPI_SR; 232 233 // Increment real time counter every SLCK 234 AT91C_BASE_ST->ST_RTMR = 1; 235 236 if (((value = GetFlashStatus()) & 0xFC) != 0xBC) |
237 printf(" Bad SPI status: 0x%x\r\n", value); | 237 printf(" Bad SPI status: 0x%x\n", value); |
238} | 238} |