Skip to content

Commit

Permalink
esc driver write hot path, iram_attr
Browse files Browse the repository at this point in the history
  • Loading branch information
rtlopez committed Apr 18, 2024
1 parent e458fce commit ced232f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/EscDriver/src/EscDriverEsp32.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ class EscDriverEsp32: public EscDriverBase
int begin(const EscConfig& conf);
void end();
int attach(size_t channel, int pin, int pulse);
int write(size_t channel, int pulse);
void apply();
int write(size_t channel, int pulse) IRAM_ATTR;
void apply() IRAM_ATTR;
int pin(size_t channel) const;
uint32_t telemetry(size_t channel) const;
uint32_t telemetry(size_t channel) const IRAM_ATTR;

private:
void initChannel(int channel, gpio_num_t pin, int pulse);
Expand All @@ -97,8 +97,8 @@ class EscDriverEsp32: public EscDriverBase
void disableRx(rmt_channel_t channel) IRAM_ATTR;
static void txDoneCallback(rmt_channel_t channel, void *arg) IRAM_ATTR;
void transmitOne(uint8_t i) IRAM_ATTR;
void transmitAll();
void readTelemetry();
void transmitAll() IRAM_ATTR;
void readTelemetry() IRAM_ATTR;
void writeAnalogCommand(uint8_t channel, int32_t pulse) IRAM_ATTR;
void writeDshotCommand(uint8_t channel, int32_t pulse) IRAM_ATTR;
void transmitCommand(uint8_t channel) IRAM_ATTR;
Expand Down

0 comments on commit ced232f

Please sign in to comment.