Skip to content

Commit

Permalink
drv_pwm_output: remove unused PWM_ defines
Browse files Browse the repository at this point in the history
  • Loading branch information
MaEtUgR committed Jun 16, 2023
1 parent aa4a3e2 commit bee2f4b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 46 deletions.
8 changes: 0 additions & 8 deletions boards/bitcraze/crazyflie/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,7 @@

#define PX4_PWM_ALTERNATE_RANGES
#define PWM_LOWEST_MIN 0
#define PWM_MOTOR_OFF 0
#define PWM_SERVO_STOP 0
#define PWM_DEFAULT_MIN 20
#define PWM_HIGHEST_MIN 0
#define PWM_HIGHEST_MAX 255
#define PWM_DEFAULT_MAX 255
#define PWM_LOWEST_MAX 255
#define PWM_DEFAULT_TRIM 1500


/* High-resolution timer */
#define HRT_TIMER 8 /* use timer8 for the HRT */
Expand Down
8 changes: 0 additions & 8 deletions boards/bitcraze/crazyflie21/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,7 @@

#define PX4_PWM_ALTERNATE_RANGES
#define PWM_LOWEST_MIN 0
#define PWM_MOTOR_OFF 0
#define PWM_SERVO_STOP 0
#define PWM_DEFAULT_MIN 20
#define PWM_HIGHEST_MIN 0
#define PWM_HIGHEST_MAX 255
#define PWM_DEFAULT_MAX 255
#define PWM_LOWEST_MAX 255
#define PWM_DEFAULT_TRIM 1500


/* High-resolution timer */
#define HRT_TIMER 8 /* use timer8 for the HRT */
Expand Down
30 changes: 0 additions & 30 deletions src/drivers/drv_pwm_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,41 +61,11 @@ __BEGIN_DECLS
*/
#define PWM_LOWEST_MIN 90

/**
* Default value for a shutdown motor
*/
#define PWM_MOTOR_OFF 900

/**
* Default minimum PWM in us
*/
#define PWM_DEFAULT_MIN 1000

/**
* Highest PWM allowed as the minimum PWM
*/
#define PWM_HIGHEST_MIN 1600

/**
* Highest maximum PWM in us
*/
#define PWM_HIGHEST_MAX 2500

/**
* Default maximum PWM in us
*/
#define PWM_DEFAULT_MAX 2000

/**
* Default trim PWM in us
*/
#define PWM_DEFAULT_TRIM 0

/**
* Lowest PWM allowed as the maximum PWM
*/
#define PWM_LOWEST_MAX 200

#endif // not PX4_PWM_ALTERNATE_RANGES

/**
Expand Down

0 comments on commit bee2f4b

Please sign in to comment.