int main() { RCC* rcc = RCC::GetInstance(); rcc->SetAHBPrescalerDiv4(); rcc->SetAPB2PrescalerDiv1(); rcc->SetAPB2PrescalerDiv1(); rcc->SetADCPrescalerDiv2(); rcc->EnableHSI(3); mcp3008_test(); }
int main() { RCC* rcc = RCC::GetInstance(); rcc->SetAHBPrescalerDiv4(); rcc->SetAPB1PrescalerDiv1(); rcc->SetAPB2PrescalerDiv1(); rcc->SetADCPrescalerDiv2(); rcc->EnableHSI(3); test_pwm_capture(); }
int main() { RCC* rcc = RCC::GetInstance(); rcc->SetAHBPrescalerDiv4(); rcc->SetAPB1PrescalerDiv1(); rcc->SetAPB2PrescalerDiv1(); rcc->SetADCPrescalerDiv2(); rcc->EnableHSI(3); temp_read() ; }
int main() { RCC* rcc = RCC::GetInstance(); rcc->SetAHBPrescalerDiv4(); rcc->SetAPB1PrescalerDiv1(); rcc->SetAPB2PrescalerDiv1(); rcc->SetADCPrescalerDiv2(); rcc->EnableHSI(3); DAC_Test_DMA(); }