Browse Source

update

master
zhaohe 2 years ago
parent
commit
d40309cde4
  1. 2
      dep/libiflytop_micro
  2. 9
      src/umain.cpp

2
dep/libiflytop_micro

@ -1 +1 @@
Subproject commit 292e3521d70c7daecfeeef31027b0105e4bf9fe5
Subproject commit 596e26cbb180b81fd6c737fc0cfae87e3bdeed40

9
src/umain.cpp

@ -96,7 +96,14 @@ void Main::main(int argc, char const *argv[]) {
HAL_Delay(1500);
m_ad77681.initialize("ad77681", &m_hardware, &hspi2, &PB12, ADC_default_init_param);
m_ad77681.startAdcDmaRead();
#if 0
while (true) {
int32_t advvalue = m_ad77681.read_adc();
printf("{plotter}%f\n", m_ad77681.data_to_voltage(advvalue));
HAL_IWDG_Refresh(&hiwdg);
HAL_Delay(10);
}
#endif
// 初始化音频采集定时器
STM32_TIM2.initialize(&htim2, STM32_TIM::kTimMode_timer);
STM32_TIM2.regListener(this);

Loading…
Cancel
Save