mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-08 19:13:44 +08:00
*** empty log message ***
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
#ifndef CONFIG_BOOZ2_V1_0_H
|
||||
#define CONFIG_BOOZ2_V1_0_H
|
||||
|
||||
/* Master oscillator freq. */
|
||||
#define FOSC (12000000)
|
||||
|
||||
/* PLL multiplier */
|
||||
#define PLL_MUL (5)
|
||||
|
||||
/* CPU clock freq. */
|
||||
#define CCLK (FOSC * PLL_MUL)
|
||||
|
||||
/* Peripheral bus speed mask 0x00->4, 0x01-> 1, 0x02 -> 2 */
|
||||
#define PBSD_BITS 0x00
|
||||
#define PBSD_VAL 4
|
||||
|
||||
/* Peripheral bus clock freq. */
|
||||
#define PCLK (CCLK / PBSD_VAL)
|
||||
|
||||
/* Onboard LEDs */
|
||||
#define LED_1_BANK 1
|
||||
#define LED_1_PIN 25
|
||||
|
||||
#define LED_2_BANK 1
|
||||
#define LED_2_PIN 24
|
||||
|
||||
#define LED_3_BANK 1
|
||||
#define LED_3_PIN 23
|
||||
|
||||
#define LED_4_BANK 1
|
||||
#define LED_4_PIN 31
|
||||
|
||||
// damit, we have two of them now
|
||||
//#define POWER_SWITCH_LED 3
|
||||
|
||||
/* 4017 servo driver on CAM connector */
|
||||
/* P0.28 aka MAT0.2 */
|
||||
//#define SERVO_CLOCK_PIN 28
|
||||
//#define SERVO_CLOCK_PINSEL PINSEL0
|
||||
//#define SERVO_CLOCK_PINSEL_VAL 0x02
|
||||
//#define SERVO_CLOCK_PINSEL_BIT 10
|
||||
/* p1.23 */
|
||||
//#define SERVO_DATA_PIN 23
|
||||
/* p1.24 */
|
||||
//#define SERVO_RESET_PIN 24
|
||||
|
||||
/* PPM : rc rx on P0.28 ( CAP0.2 ) */
|
||||
#define PPM_PINSEL PINSEL0
|
||||
#define PPM_PINSEL_VAL 0x02
|
||||
#define PPM_PINSEL_BIT 12
|
||||
|
||||
/* ADC */
|
||||
|
||||
#define ADC_0 AdcBank0(3)
|
||||
#ifdef USE_ADC_0
|
||||
#ifndef USE_AD0
|
||||
#define USE_AD0
|
||||
#endif
|
||||
#define USE_AD0_3
|
||||
#endif
|
||||
|
||||
#define ADC_CHANNEL_VSUPPLY AdcBank1(6)
|
||||
#ifndef USE_AD1
|
||||
#define USE_AD1
|
||||
#endif
|
||||
#define USE_AD1_6
|
||||
|
||||
#ifndef VoltageOfAdc
|
||||
#define VoltageOfAdc(adc) (0.01787109375*adc)
|
||||
#endif
|
||||
|
||||
#define SPI_SELECT_SLAVE0_PORT 0
|
||||
#define SPI_SELECT_SLAVE0_PIN 20
|
||||
|
||||
#define SPI1_DRDY_PINSEL PINSEL0
|
||||
#define SPI1_DRDY_PINSEL_BIT 14
|
||||
#define SPI1_DRDY_PINSEL_VAL 3
|
||||
#define SPI1_DRDY_EINT 2
|
||||
#define SPI1_DRDY_VIC_IT VIC_EINT2
|
||||
|
||||
#endif /* CONFIG_BOOZ2_V1_0_H */
|
||||
Reference in New Issue
Block a user