readme
来自「RT-LINUX2.2源代码,RT-LINUX是硬实时操作系统,在实时性要求高的」· 代码 · 共 19 行
TXT
19 行
/* #include "../../README" */This example demonstrates interrupt handling in real time.You will also find out how to pronounce "Linux" correctly! Since I'mnot sure that everyone will be able to make out the words, here they are:"Hello, this is Linus Torvalds. I'd like to pronounce `Linux': that's Linux!"I took this file from http://www.ssc.com/lj/images/english.au .The real-time process sets up the real-time clock (aka CMOS-clock) to generateinterrupts at 8192 Hz rate. On each interrupt it tries to get a sample from theRT-FIFO number 0. If successful, it transforms the sample from 8bit ulawencoding to 1-bit sample and turns the speaker on or off accordingly. Thistakes advantage of the fact that .au files are typically sampled at 8kHz.The sound quality is pretty low. 1-bit sampling is clearly not enough.To run the example type `make; make test;'
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?