DMX512 send/recv library with STM32 slave support originally from http://mbed.org/users/okini3939/notebook/dmx512
Fork of
DMX
by Suga koubou
1 comment:
JanWeinands
#
27 Apr 2017
A bit more information:
_uart->ISR & ICR are not available in the USART typedef for the F103RB.
These are included in the F303, the chip where the library was ment for.
Does anyone have an idea how i can make a 'work around'?
void DMX::int_rx () {
int flg, dat;
#ifdef TARGET_STM
dat = _dmx.getc();
flg = (_uart->ISR & (USART_FLAG_FE | USART_ISR_IDLE)) == (USART_FLAG_FE | USART_ISR_IDLE);
if (flg) {
_uart->ICR = USART_ICR_FECF;
}
A bit more information: _uart->ISR & ICR are not available in the USART typedef for the F103RB. These are included in the F303, the chip where the library was ment for.
Does anyone have an idea how i can make a 'work around'?