((uint32_t)hcan->Init.Prescaler - 1); /* Request leave initialisation */ hcan->Instance->MCR &= ~(uint32_t)CAN_MCR_INRQ; /* Get timeout */ tickstart = HAL_GetTick(); /* Wait the acknowledge */ while((hcan->Instance->MSR & CAN_MSR_INAK) == CAN_MSR_INAK) { if((HAL...
-- Corrected SetBitrate function to leave Silent and Loopback mode as they were. -- Corrected SetMode function to clear Silent and Loopback mode when NORMAL mode is activated. -- Corrected MessageSend function to only access required data for sending. - EMAC: ETH DMA initialization is done ...
/* Check acknowledge */ if (HAL_IS_BIT_SET(hcan->Instance->MSR, CAN_MSR_INAK)){ /* Set...
/* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != ...
ETH_CheckLinkStatus函数用于获取PHY状态,实际上也是通过宏定义GET_PHY_LINK_STATUS()获取得到的,函数还根据PHY状态通知LwIP当前链路状态, gnetif是一个netif结构体类型变量,LwIP定义了netif结构体类型,用于指示某一网卡相关信息,LwIP是支持多个网卡设备,使用时需要为每个网卡设备定义一个netif类型变量。无操作系统时ETH_...
Files master doc include ld lib cm3 dispatch efm32 ethernet gd32 lm3s lm4f lpc13xx lpc17xx lpc43xx msp432 nrf pac55xx sam stm32 common f0 f1 f2 f3 f4 f7 g0 g4 h7 l0 l1 l4 can.c st_usbfs_v1.c st_usbfs_v2.c swm050 ...