Topic: STM9s-Discovery UART2 interrupt
Hello
i'm try receive data from hyper with interrupt it not work . i'm using polling receive data from hyper it ok!!
in struct
typedef enum
{
UART2_FLAG_TXE = (u16)0x0080, /*!< Transmit Data Register Empty flag */
UART2_FLAG_TC = (u16)0x0040, /*!< Transmission Complete flag */
UART2_FLAG_RXNE = (u16)0x0020, /*!< Read Data Register Not Empty flag */
UART2_FLAG_IDLE = (u16)0x0010, /*!< Idle line detected flag */
UART2_FLAG_OR_LHE = (u16)0x0008, /*!< OverRun error flag */
UART2_FLAG_NF = (u16)0x0004, /*!< Noise error flag */
UART2_FLAG_FE = (u16)0x0002, /*!< Framing Error flag */
UART2_FLAG_PE = (u16)0x0001, /*!< Parity Error flag */
UART2_FLAG_SBK = (u16)0x0101, /**< Send Break Complete interrupt flag */
UART2_FLAG_LBDF = (u16)0x0210, /**< LIN Break Detection Flag */
UART2_FLAG_LHDF = (u16)0x0302, /**< LIN Header Detection Flag*/
UART2_FLAG_LSF = (u16)0x0301 /**< LIN Sync Field Flag*/
} UART2_Flag_TypeDef;
i don't use it! please help me