![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
STM32F446内蔵のADC, DAC用ライブラリの使用例. Example program of library for build-in ADC and DAC in STM32F446.
Diff: main.cpp
- Revision:
- 3:4173de2a1e88
- Parent:
- 2:7dfcf985dfc1
--- a/main.cpp Sat Nov 07 02:13:13 2020 +0000 +++ b/main.cpp Sun Dec 20 08:04:55 2020 +0000 @@ -5,7 +5,7 @@ // // ポーリング方式と割込み方式の2つの例を示す // -// 2020/11/07, Copyright (c) 2020 MIKAMI, Naoki +// 2020/12/20, Copyright (c) 2020 MIKAMI, Naoki //---------------------------------------------------------------------- #include "DSP_Dac.hpp" // DAC 用 @@ -25,7 +25,7 @@ int main() { - DspAdc_Polling myAdc(FS_, A1); // AD 変換器, ADC2使用(デフォルト) + DspAdcPolling myAdc(FS_, A1); // AD 変換器, ADC2使用(デフォルト) printf("\r\nポーリング方式\r\n"); while (true) @@ -40,7 +40,7 @@ #else #include "DSP_AdcIntr.hpp" -DspAdc_Intr myAdc_(FS_, A1); // AD 変換器, ADC2使用(デフォルト) +DspAdcIntr myAdc_(FS_, A1); // AD 変換器, ADC2使用(デフォルト) // ADC 変換終了割込みに対する割込みサービス・ルーチン void AdcIsr()