FIR filter using DSP instructions for ST Nucleo F401RE.
Dependencies: UITDSP_ADDA mbed
Diff: main.cpp
- Revision:
- 3:bfb6d1e6deee
- Parent:
- 1:a2ca73edd772
- Child:
- 4:0b3b70b0af0b
--- a/main.cpp Wed Oct 22 09:04:56 2014 +0000 +++ b/main.cpp Thu Oct 23 00:19:42 2014 +0000 @@ -2,7 +2,7 @@ // FIR フィルタ,基本的な構造, 固定小数点演算用 DSP 命令を使う // Analog Input : A0 // Analog Output: MCP4922 using SPI -// 2014/10/22, Copyright (c) 2014 MIKAMI, Naoki +// 2014/10/23, Copyright (c) 2014 MIKAMI, Naoki //-------------------------------------------------------------- #include "mbed.h" @@ -14,9 +14,9 @@ using namespace Mikami; -const int FS_ = 12000; // Sampling frequency: 12 kHz -ADC_Base adc_(A0, FS_); // for AD -DAC_MCP4922 myDac_(DAC_MCP4922::DAC_A); // for DA +const int FS_ = 12000; // Sampling frequency: 12 kHz +ADC_Base adc_(A0, FS_); // for AD +DAC_MCP4922 myDac_; // for DA int main() {