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

📄 timing.h

📁 Source Code for the Flash Audio Head Unit Player
💻 H
字号:
#ifndef TIMING_H
#define TIMING_H

/* 
**  PHILIPS ARM 2005 DESIGN CONTEST
**  ENTRY AR1757
**  FLASH CARD AUDIO PLAYER FOR HEAD END UNIT
**                                                                          
**  TIMING.H:  Timer and Stereo DAC output generation                                
*/  

#include "types.h"

extern void init_timing(void);

// set sample frequency
void set_dac_rate(int Hz);

// timing functions
u32 mark(void);

u32 elapsed_sec(u32 mark);

void delay(int ticks);
   
void delay_100ms(void);

// size of output buffer. must be multiple of 512
#define BUFSIZE 2048
	
// get free sample buffer (double buffered) calling the designated polling function	
s16 *get_buffer(int (*poll_fn)());

// clear sample buffers
void clear_buffers(void);

#endif

⌨️ 快捷键说明

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