DMX512 send/recv library with STM32 slave support originally from http://mbed.org/users/okini3939/notebook/dmx512

Fork of DMX by Suga koubou

Issue: STM32F103

Dear all,

I cant get the library working on a stm32f103. I got problems with the typedef _uart. Is there someone who got this working on such a device?

Thank you in advance

1 comment:

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;
        }