Browse Source

AP_HAL_Linux: Fix compiler warning of MAX_PWMS redefinition (previously defined)

master
mirkix 10 years ago committed by Andrew Tridgell
parent
commit
445f358839
  1. 4
      libraries/AP_HAL_Linux/RCOutput_ZYNQ.h

4
libraries/AP_HAL_Linux/RCOutput_ZYNQ.h

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include <AP_HAL_Linux.h>
#define RCOUT_ZYNQ_PWM_BASE 0x43c00000 //FIXME hardcoding is the devil's work
#define MAX_PWMS 8 //FIXME
#define MAX_ZYNQ_PWMS 8 /* number of pwm channels */
#define PWM_CMD_CONFIG 0 /* full configuration in one go */
#define PWM_CMD_ENABLE 1 /* enable a pwm */
#define PWM_CMD_DISABLE 2 /* disable a pwm */
@ -35,7 +35,7 @@ private: @@ -35,7 +35,7 @@ private:
uint32_t hi;
};
struct pwm_cmd {
struct s_period_hi periodhi[MAX_PWMS];
struct s_period_hi periodhi[MAX_ZYNQ_PWMS];
};
volatile struct pwm_cmd *sharedMem_cmd;
};

Loading…
Cancel
Save