Question
UARTs receive buffer in STM32F030
Hi all,
I'm trying to use a example which works and compile correctly on stm32f103 (cortex-m3) family.Now i want to use this example on stm32f030c8t6 ,but there is erorr on line 6:
BOOL
xFCPortSerialGetByte( CHAR * pucByte )
{
/* Return the byte in the UARTs receive buffer. This function is called
*/
*pucByte = (uint8_t)(huart1.Instance->DR & (uint8_t)0x00FF);
return TRUE;
}After i search about it,i found out there is NO DR register in Cortex-m0.
What should i use instead of the code above for cortex-m0?
Best Regards,
Danesh
