URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
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)
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.