X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Feasymega-v1.0%2Fao_pins.h;h=f8f9cf1851555ec82a9e84f413d30bcbbe21e59f;hb=refs%2Fheads%2Feasymega-pwm-hacks;hp=a5e556384615a6e6a52b2b4b615de5302c119b66;hpb=0fd370af8bc8842000415c4d182d84b4bf6f90fa;p=fw%2Faltos diff --git a/src/easymega-v1.0/ao_pins.h b/src/easymega-v1.0/ao_pins.h index a5e55638..f8f9cf18 100644 --- a/src/easymega-v1.0/ao_pins.h +++ b/src/easymega-v1.0/ao_pins.h @@ -78,7 +78,7 @@ #define HAS_RADIO 0 #define HAS_TELEMETRY 0 #define HAS_APRS 0 -#define HAS_COMPANION 1 +#define HAS_COMPANION 0 #define HAS_SPI_1 1 #define SPI_1_PA5_PA6_PA7 1 /* Barometer */ @@ -353,4 +353,20 @@ struct ao_adc { #define AO_PROFILE 0 #endif +/* + * PWM output + */ + +#define NUM_PWM 2 +#define PWM_MAX 1023 +#define AO_PWM_TIMER stm_tim4 +#define AO_PWM_TIMER_ENABLE STM_RCC_APB1ENR_TIM4EN +#define AO_PWM_TIMER_SCALE 1 + +#define AO_PWM_0_GPIO (&stm_gpiob) +#define AO_PWM_0_PIN 6 + +#define AO_PWM_1_GPIO (&stm_gpiob) +#define AO_PWM_1_PIN 7 + #endif /* _AO_PINS_H_ */