OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [apps/] [spiflash/] [spiflash-program.c] - Diff between revs 393 and 408

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 393 Rev 408
Line 1... Line 1...
// Program that will erase and program an SPI flash
// Program that will erase and program an SPI flash
 
 
#include "or32-utils.h"
#include "cpu-utils.h"
#include "spr-defs.h"
 
#include "board.h"
#include "board.h"
#include "uart.h"
#include "uart.h"
#include "simple-spi.h"
#include "simple-spi.h"
#include "printf.h"
#include "printf.h"
 
 
Line 12... Line 12...
unsigned long programming_file_end;
unsigned long programming_file_end;
unsigned long programming_file_length;
unsigned long programming_file_length;
int spi_master;
int spi_master;
char slave;
char slave;
 
 
 
 
 
 
// Little program to dump the contents of the SPI flash memory it's connected 
// Little program to dump the contents of the SPI flash memory it's connected 
// to on the board
// to on the board
 
 
void
void
spi_write_ignore_read(int core, char dat)
spi_write_ignore_read(int core, char dat)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.