Go to the source code of this file.
◆ GD32_EXTI_TRIG_BOTH
Trigger on rising and falling edge 
 
 
◆ GD32_EXTI_TRIG_FALLING
      
        
          | #define GD32_EXTI_TRIG_FALLING   BIT(1) | 
        
      
 
 
◆ GD32_EXTI_TRIG_NONE
      
        
          | #define GD32_EXTI_TRIG_NONE   0U | 
        
      
 
 
◆ GD32_EXTI_TRIG_RISING
      
        
          | #define GD32_EXTI_TRIG_RISING   BIT(0) | 
        
      
 
 
◆ gd32_exti_cb_t
      
        
          | typedef void(* gd32_exti_cb_t) (uint8_t line, void *user) | 
        
      
 
Callback for EXTI interrupt. 
 
 
◆ gd32_exti_configure()
Configure EXTI interrupt callback. 
- Parameters
 - 
  
    | line | EXTI line.  | 
    | cb | Callback (NULL to disable).  | 
    | user | User data (optional). | 
  
   
- Return values
 - 
  
    | 0 | On success.  | 
    | -EALREADY | If callback is already set and cb is not NULL.  | 
  
   
 
 
◆ gd32_exti_disable()
      
        
          | void gd32_exti_disable  | 
          ( | 
          uint8_t  | 
          line | ) | 
           | 
        
      
 
Disable EXTI interrupt for the given line. 
- Parameters
 - 
  
  
 
 
 
◆ gd32_exti_enable()
      
        
          | void gd32_exti_enable  | 
          ( | 
          uint8_t  | 
          line | ) | 
           | 
        
      
 
Enable EXTI interrupt for the given line. 
- Parameters
 - 
  
  
 
 
 
◆ gd32_exti_trigger()
Configure EXTI interrupt trigger mode for the given line. 
- Parameters
 -