代码搜索结果
找到约 10,000 项符合
DMA 的代码
dma范例.txt
/*
* 声明:本范例源于书籍‘NiosII软件架构解析’
* 作者:蔡伟纲
* 博客地址: http://NiosII.cublog.cn
*
* 一、功能: <mark>DMA</mark>(Memory to Memory)驱动演示代码.
* 二、运行前提: 本范例需要硬件开发板的支持,
* 要求NiosII系统包含名为”<mark>dma</mark>”的<mark>DMA</mark>模块,
* 且<mark>DMA</mark>的长度寄存 ...
dma.c
#undef __DEBUG_VERSION
#include "def.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"
#include "DMAAdmin.h"
#define DMA_CHECK_ATTR 1
typedef struct{ //can't use __pa
dma范例.txt
/*
* 声明:本范例源于书籍‘NiosII软件架构解析’
* 作者:蔡伟纲
* 博客地址: http://NiosII.cublog.cn
*
* 一、功能: <mark>DMA</mark>(Memory to Memory)驱动演示代码.
* 二、运行前提: 本范例需要硬件开发板的支持,
* 要求NiosII系统包含名为”<mark>dma</mark>”的<mark>DMA</mark>模块,
* 且<mark>DMA</mark>的长度寄存 ...
dma.c
#undef __DEBUG_VERSION
#include "def.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"
#include "DMAAdmin.h"
#define DMA_CHECK_ATTR 1
typedef struct{
volatile U32 DI
dma.c
#undef __DEBUG_VERSION
#include "def.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"
#include "DMAAdmin.h"
#define DMA_CHECK_ATTR 1
typedef struct{ //can't use __pa
dma.c
#undef __DEBUG_VERSION
#include "def.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"
#include "DMAAdmin.h"
#define DMA_CHECK_ATTR 1
typedef struct{ //can't use __pa
dma.h
#ifndef __DMA_H__
#define __DMA_H__
void Test_DMA(void);
#endif /*__DMA_H__*/
dma.h
#ifndef DMA_ADMIN_H
#define DMA_ADMIN_H
#define MAX_DMA_CHANNEL 4
//#define DMA_IS_USED 1
#define DMA_IS_HWTRIG 2
#define DMA_IS_SWTRIG 1
#define DMA_IS_FREE 0
// request source
#define R
dma.c
#include "def.h"
#include "config.h"
#include "board.h"
#include "2410addr.h"
#include "dma.h"
#define DMA_CHECK_ATTR 1
typedef struct{ //can't use __packed???
volatile U32 DISRC;
dma.h
#ifndef __DMA_H__
#define __DMA_H__
void Test_DMA(void);
#endif /*__DMA_H__*/