HAL_ChibiOS: allow set of safety mask from IOMCU

This commit is contained in:
Andrew Tridgell 2018-10-31 15:44:44 +11:00
parent f2b8067023
commit 81fe8b7138
1 changed files with 6 additions and 1 deletions

View File

@ -141,6 +141,11 @@ public:
*/ */
void set_failsafe_pwm(uint32_t chmask, uint16_t period_us) override; void set_failsafe_pwm(uint32_t chmask, uint16_t period_us) override;
/*
set safety mask for IOMCU
*/
void set_safety_mask(uint16_t mask) { safety_mask = mask; }
private: private:
struct pwm_group { struct pwm_group {
// only advanced timers can do high clocks needed for more than 400Hz // only advanced timers can do high clocks needed for more than 400Hz