Merge branch 'next' of https://github.com/opentx/opentx into TaranisPlus
Conflicts: companion/src/firmwares/opentx/opentxinterface.cpp radio/src/haptic.cpp radio/src/targets/gruvin9x/board_gruvin9x.h radio/src/targets/mega2560/board_mega2560.h radio/src/targets/sky9x/board_sky9x.h radio/src/targets/stock/board_stock.h radio/src/targets/taranis/board_taranis.h radio/src/targets/taranis/haptic_driver.cpp
This commit is contained in:
@@ -39,22 +39,26 @@
|
||||
void hapticOff(void)
|
||||
{
|
||||
#if defined(REVPLUS)
|
||||
return; //TODO PWM support
|
||||
GPIO_ResetBits(GPIO_HAPTIC, PIN_HAPTIC); // Temp, TODO PWM support
|
||||
return;
|
||||
#else
|
||||
GPIO_ResetBits(GPIO_HAPTIC, PIN_HAPTIC);
|
||||
#endif
|
||||
}
|
||||
|
||||
void hapticOn(uint32_t pwmPercent)
|
||||
{
|
||||
#if defined(REVPLUS)
|
||||
// pwmPercent 0-100
|
||||
return; //TODO PWM support
|
||||
void hapticOn(uint32_t pwmPercent)
|
||||
{ // pwmPercent 0-100
|
||||
GPIO_SetBits(GPIO_HAPTIC, PIN_HAPTIC); // Temp, TODO PWM support
|
||||
return;
|
||||
}
|
||||
#else
|
||||
void hapticOn()
|
||||
{
|
||||
// No PWM before REVPLUS
|
||||
GPIO_SetBits(GPIO_HAPTIC, PIN_HAPTIC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
void hapticInit(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user