generated from Template/H563ZI-HAL-CMake-Template
	 5beaf15efd
			
		
	
	5beaf15efd
	
	
		
			
	
		
	
	
		
			Some checks failed
		
		
	
	Build and Upload Artifact / build and upload-artifact (push) Has been cancelled
				
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			610 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			610 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "Helper/delay_helper.h"
 | |
| #include "stm32h563xx.h"
 | |
| 
 | |
| #include "Common/serial_port.hpp"
 | |
| #include "Helper/gpio_helper.hpp"
 | |
| #include "Center/common_center.hpp"
 | |
| 
 | |
| 
 | |
| void Setup() {
 | |
|     GpioHelper::EnableAllGpioPeripheral();
 | |
|     DelaySetup();
 | |
|     auto ultrasonic = CommonCenter::GetUltrasonic();
 | |
|     auto dfPlayer  = CommonCenter::GetDfPlayer();
 | |
|     auto canMv     = CommonCenter::GetCanMv();
 | |
| }
 | |
| 
 | |
| extern "C" void AppStart() {
 | |
|     Setup();
 | |
|     auto gpio = GpioHelper::GpioInit(GPIOB, GPIO_PIN_0, GPIO_MODE_OUTPUT_PP, GPIO_NOPULL, GPIO_PIN_SET);
 | |
|     while (true) {
 | |
|         gpio.Toggle();
 | |
|         DelayS(1);
 | |
|     }
 | |
| }
 |