Skip to content

Commit

Permalink
added new pwm board.h function to test board
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutherland333 committed Jul 1, 2024
1 parent c22051d commit 437a652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ float testBoard::rc_read(uint8_t channel)
return static_cast<float>(rc_values[channel] - 1000) / 1000.0;
}
void testBoard::pwm_write(uint8_t channel, float value) {}
void testBoard::pwm_write_multi(float *value, uint32_t channels) {}
void testBoard::pwm_init(uint32_t refresh_rate, uint16_t idle_pwm) {}
void testBoard::pwm_init_multi(const float *rate, uint32_t channels) {}
void testBoard::pwm_disable() {}

// non-volatile memory
Expand Down
2 changes: 2 additions & 0 deletions test/test_board.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ class testBoard : public Board

// PWM
void pwm_init(uint32_t refresh_rate, uint16_t idle_pwm) override;
void pwm_init_multi(const float *rate, uint32_t channels) override;
void pwm_disable() override;
void pwm_write(uint8_t channel, float value) override;
void pwm_write_multi(float *value, uint32_t channels) override;

// non-volatile memory
void memory_init() override;
Expand Down

0 comments on commit 437a652

Please sign in to comment.