talkthrough.h File Reference

アプリケーション・インクルード ファイル More...

#include "i2s_subsystem.h"
#include "i2c_subsystem.h"
#include "adc_subsystem.h"
#include "codec_subsystem.h"
#include "target_test.h"

Go to the source code of this file.

Functions

void main_task (intptr_t exinf)
 メインタスク
void audio_task (intptr_t exinf)
 オーディオDMAに同期して動くタスク
void dma_intr_handler (intptr_t exinf)
 DMAハンドラ.

Detailed Description

アプリケーション・インクルード ファイル


Function Documentation

void audio_task ( intptr_t  exinf  ) 

オーディオDMAに同期して動くタスク

Parameters:
exinf コンフィギュレータがタスクに引き渡す変数。このタスクは無視する。

dma_intr_handler からのSEM_I2SDMA セマフォ・シグナルを受けて しかるべきデータ・バッファを特定し、信号処理を行う。

なお、このタスクはシステム起動時にはインアクティブである。 main_task から明示的にアクティベートして始めて動作を開始する。

void dma_intr_handler ( intptr_t  exinf  ) 

DMAハンドラ.

このハンドラは全DMAに対して共通に呼ばれる.

呼ばれると、DMAのバッファ終了割り込みステータスを確認する。それがI2S DMAバッファの 終了割り込みなら、割り込みをクリアしてタスクに通知する。

Todo:
DMAチャンネルの番号は決め打ちである。適切なDMA管理機構を使った方式への変更が必要である。
void main_task ( intptr_t  exinf  ) 

メインタスク

Parameters:
exinf コンフィギュレータから受け取る引数。このタスクでは無視する。

一連の初期化のあと、オーディオタスクを動かしてダミーループに入る。

 All Data Structures Files Functions Variables Typedefs Defines
Generated on Sun Feb 20 21:24:43 2011 for TalkTrhough by  doxygen 1.6.3