User Activity

Hi,It may seem simple to you, but it confuses me for a bit of time after I saw:uint32_t isrflags  = READ_REG(huart->Instance->SR);and#define READ_REG(REG)     ((REG))​I have 2 questions here:​huart->Instance->SR should be an address, how does READ_RE...
HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size){ /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) {  if ((pData == NULL) || (Size == 0U))  {   return HAL_...
Posted on March 03, 2016 at 09:22Hi all,Thanks in advance for your time spent on this topic.I have spent several months on STM32 project, fine with software coding, but keep confusion on the startup file, which would appear inalmost every project as...
Posted on October 29, 2015 at 08:59Hi all,Recently I am working on a demon code using STM32F103.In this demon code,it defines the PE2, PE3 as the I2C interface, as below:/* Configure I2C pins: PE2->SCL and PE3->SDA */ GPIO_InitStructure.GPIO_Pin = G...
Posted on August 12, 2015 at 10:38Hi all,I am a beginner of MCU, and right now is digging into STM32F1xx serial MCU, which is pretty old, but simple enough for beginner. I have spent a lot of time on some example codes, still with the confusion that...