mirror of
				https://github.com/IcedRooibos/py32f0-template.git
				synced 2025-10-31 01:42:04 -07:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			722 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			722 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "main.h"
 | |
| #include "py32f0xx_it.h"
 | |
| 
 | |
| /**
 | |
|   * @brief This function handles Non maskable interrupt.
 | |
|   */
 | |
| void NMI_Handler(void)
 | |
| {
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief This function handles Hard fault interrupt.
 | |
|   */
 | |
| void HardFault_Handler(void)
 | |
| {
 | |
|   while (1)
 | |
|   {
 | |
|   }
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief This function handles System service call via SWI instruction.
 | |
|   */
 | |
| void SVC_Handler(void)
 | |
| {
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief This function handles Pendable request for system service.
 | |
|   */
 | |
| void PendSV_Handler(void)
 | |
| {
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief This function handles System tick timer.
 | |
|   */
 | |
| void SysTick_Handler(void)
 | |
| {
 | |
| }
 | |
| 
 | |
| void ADC_COMP_IRQHandler(void)
 | |
| {
 | |
|   if(LL_ADC_IsActiveFlag_AWD(ADC1) != 0)
 | |
|   {
 | |
|     LL_ADC_ClearFlag_AWD(ADC1);
 | |
|     APP_AdcAnalogWatchdogCallback();
 | |
|   }
 | |
| } | 
