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

📄 lib_audio.h

📁 关于测试at91sam9260的各种驱动和功能的测试源代码。
💻 H
字号:
/*************************************** Copyright (c) *************************************************
*
*			            POLAR STAR
*				   北天星国际有限公司
*				   http://www.po-star.com
*
*文 件 名: mci.h 
*
*编译环境:ADS1.2
*
********************************************************************************************************/



#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 + -