⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lib_audio.h

📁 ATMEL AT91SAM926x 测试程序。在ADS环境下测试AT91SAM926x串口。
💻 H
字号:
//*----------------------------------------------------------------------------
//*         ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : main.h
//* Object              : main application written in C
//* Creation            : NLe   27/11/2002
//*
//*----------------------------------------------------------------------------

#ifndef MAIN_H
#define MAIN_H

#include "AT91SAM9260.h"
#include "lib_AT91SAM9260.h"
#include "sound.h"

 // C Standard
#define NULL 0 // null pointer constant

// SPI CLOCK
#define AT91C_SPI_CLK_AUDIODAC 				1000000

// Chip Select 3 : NPCS3 %0111
#define AT91C_SPI_PCS0_AUDIODAC				0xE

// Global declarations
#define AT91C_KEYBOARD_SENSIBILITY			100000	// Time to consider a key is pushed
#define AT91C_KEYBOARD_WAIT_FOR_REFRESH		300000	// Time to wait before a new key test

// IRQ level declaration
#define AT91C_IRQ_LEVEL_TWI			4
#define AT91C_IRQ_LEVEL_I2S			5	

// Constant declarations used by I2S mode
#define AT91C_I2S_NB_SLOT_BY_FRAME	2
#define AT91C_I2S_NB_BITS_BY_SLOT	16

// Following functions are defined in c_isr.c
void AT91F_I2S_Init_Handler(void);
void AT91F_I2S_Handler(void);

extern void AT91F_ASM_I2S_Init_Handler(void);
extern void AT91F_ASM_I2S_Handler(void);

// Following variables are defined in main.c
extern AT91PS_SSC				pSSC;

#endif // MAIN_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -