Ignore:
Timestamp:
Nov 1, 2025, 5:29:27 PM (45 hours ago)
Author:
f.jahn
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fw_g473rct/Core/Src/gpio.c

    r26 r38  
    9191  GPIO_InitStruct.Pin = ADC_DATA_READY_Pin;
    9292  GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
    93   GPIO_InitStruct.Pull = GPIO_NOPULL;
     93  GPIO_InitStruct.Pull = GPIO_PULLUP;
    9494  HAL_GPIO_Init(ADC_DATA_READY_GPIO_Port, &GPIO_InitStruct);
    9595
    96   /*Configure GPIO pin : FAULT_Pin */
    97   GPIO_InitStruct.Pin = FAULT_Pin;
    98   GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
     96  /*Configure GPIO pin : FAULT_INT_Pin */
     97  GPIO_InitStruct.Pin = FAULT_INT_Pin;
     98  GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
    9999  GPIO_InitStruct.Pull = GPIO_PULLUP;
    100   HAL_GPIO_Init(FAULT_GPIO_Port, &GPIO_InitStruct);
     100  HAL_GPIO_Init(FAULT_INT_GPIO_Port, &GPIO_InitStruct);
    101101
    102102  /*Configure GPIO pin : COM_POWERPRO_RES_Pin */
     
    110110  HAL_NVIC_EnableIRQ(EXTI2_IRQn);
    111111
     112  HAL_NVIC_SetPriority(EXTI9_5_IRQn, 0, 0);
     113  HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);
     114
    112115}
    113116
    114117/* USER CODE BEGIN 2 */
    115 void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
    116 {
    117   if (GPIO_Pin == ADC_DATA_READY_Pin)
    118   {
    119     newCurrentValue=1;
    120118
    121      
    122   }
    123 }
    124119/* USER CODE END 2 */
Note: See TracChangeset for help on using the changeset viewer.