代码搜索结果
找到约 10,000 项符合
SPI 的代码
spi_drv.h
/*H**************************************************************************
* NAME: spi_drv.h
*----------------------------------------------------------------------------
* Copy
spi_drv.c
/*C**************************************************************************
* NAME: spi_drv.c
*----------------------------------------------------------------------------
* Copyright (c)
asmi_spi.h
#define na_spi_bulk_size (0x400000)
#define na_spi_sector_size (0x10000)
#define na_spi_page_size (0x100)
//#define usercode_size (na_sram_size - 0x20000)
#define usercode_size (na_sram_size)
#
asmi_spi.c
//TODO: Increase address from 2 bytes to 3
#include "excalibur.h"
#include "asmi_spi.h"
void nr_spi_init()
{
//Set slave select register
na_spi->np_spislaveselect = 1;
}
//wait until all the data
code_to_spi.c
// code_to_asmi.c
// Jeremy Fox, Altera UK
// 4/16/03
// Use this file to copy code from a RAM buffer into the EPCS4 flash device on the Nios cyclone
// development board. This code defaults to copy
spi_eeprom.c
/*
* linux/arch/mips/tx4938/toshiba_rbtx4938/spi_eeprom.c
* Copyright (C) 2000-2001 Toshiba Corporation
*
* 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
* terms of the
spi_test.c
#include "DSP28_Device.h"
unsigned int *LedReg = (unsigned int *)0x23FF;
unsigned int *Led8Lock = (unsigned int *)0x25FF;
const Uint16 LedCode[]={0x7F,0xBF,0xDF,0xEF,0xF7,0xFB,0xFD,0xFE,0xFF};
spi_test.c
#include "DSP28_Device.h"
unsigned int *LedReg = (unsigned int *)0x23FF;
unsigned int *Led8Lock = (unsigned int *)0x25FF;
const Uint16 LedCode[]={0x7F,0xBF,0xDF,0xEF,0xF7,0xFB,0xFD,0xFE,0xFF};