/** * @brief EXTI line detection callbacks * @param GPIO_Pin: Specifies the pins connected EXTI line * @retval None */ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if (GPIO_Pin == GPIO_PIN_9) { /* Send udp data */ udp_echoclient_send(); } }
/** * @brief EXTI line detection callbacks * @param GPIO_Pin: Specifies the pins connected EXTI line * @retval None */ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if (GPIO_Pin == GPIO_PIN_14) { ethernetif_set_link(&gnetif); } else if (GPIO_Pin == GPIO_PIN_15) { /* Send udp data */ udp_echoclient_send(); } }
/** * @brief EXTI line detection callbacks * @param GPIO_Pin: Specifies the pins connected EXTI line * @retval None */ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if (GPIO_Pin == GPIO_PIN_8) { /* Get the IT status register value */ if(BSP_IO_ITGetStatus(MII_INT_PIN)) { ethernetif_set_link(&gnetif); } BSP_IO_ITClear(); } else if (GPIO_Pin == GPIO_PIN_13) { /*connect to tcp server */ udp_echoclient_send(); } }