feat(rmt): introduce RMT_ENCODER_FUNC_ATTR for encoder functions
Closes https://github.com/espressif/esp-idf/issues/15832
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_err.h"
|
||||
#include "esp_attr.h"
|
||||
#include "hal/rmt_types.h"
|
||||
#include "driver/rmt_types.h"
|
||||
|
||||
@@ -69,6 +71,12 @@ struct rmt_encoder_t {
|
||||
esp_err_t (*del)(rmt_encoder_t *encoder);
|
||||
};
|
||||
|
||||
#if CONFIG_RMT_ENCODER_FUNC_IN_IRAM
|
||||
#define RMT_ENCODER_FUNC_ATTR IRAM_ATTR
|
||||
#else
|
||||
#define RMT_ENCODER_FUNC_ATTR
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Callback for simple callback encoder
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user