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

📄 readme

📁 rtlinux的源代码
💻
字号:
/* #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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -