Skip to content

Change RingBuf on Arduino-ESP32 version 3.2.0 #36

@tresler

Description

@tresler

When compiling the library in the latest arduino-esp it reports an error:
RingBuf.h:38:68: error: impossible constraint in 'asm'
I fixed it (seems successful) with this:

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

#ifndef xt_rsil
    #define xt_rsil(level) ({ taskDISABLE_INTERRUPTS(); 0; })
#endif

#ifndef xt_wsr_ps
    #define xt_wsr_ps(state) taskENABLE_INTERRUPTS()
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions