diff --git a/conf/airframes/examples/umarim_lite_v2.xml b/conf/airframes/examples/umarim_lite_v2.xml new file mode 100644 index 0000000000..90debb6a46 --- /dev/null +++ b/conf/airframes/examples/umarim_lite_v2.xml @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + + + + + + + +
+ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +
+ + +
+ +
+ + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ +
+ + + + + +
+ +
diff --git a/conf/boards/umarim_1.0.makefile b/conf/boards/umarim_1.0.makefile index 7a6a7554d8..c5c29cde6c 100644 --- a/conf/boards/umarim_1.0.makefile +++ b/conf/boards/umarim_1.0.makefile @@ -1,7 +1,7 @@ # # unami_1.0.makefile # -# prototype for Umarim board +# Umarim v1 board # ARCH=lpc21 @@ -41,7 +41,7 @@ GPS_LED = 2 endif ifndef SYS_TIME_LED -SYS_TIME_LED = none +SYS_TIME_LED = 1 endif diff --git a/conf/boards/umarim_lite_2.0.makefile b/conf/boards/umarim_lite_2.0.makefile new file mode 100644 index 0000000000..4d284e7b04 --- /dev/null +++ b/conf/boards/umarim_lite_2.0.makefile @@ -0,0 +1,79 @@ +# +# umarim_lite_2.0.makefile +# +# Umarim Lite v2 board +# + +ARCH=lpc21 + +BOARD=umarim +BOARD_VERSION=lite_2.0 + +BOARD_CFG=\"boards/$(BOARD)_$(BOARD_VERSION).h\" + + +ifndef FLASH_MODE +FLASH_MODE = IAP +endif + + +LPC21ISP_BAUD = 38400 +LPC21ISP_XTAL = 12000 + + +# +# default LED configuration +# +ifndef RADIO_CONTROL_LED +RADIO_CONTROL_LED = none +endif + +ifndef BARO_LED +BARO_LED = none +endif + +ifndef AHRS_ALIGNER_LED +AHRS_ALIGNER_LED = none +endif + +ifndef GPS_LED +GPS_LED = 2 +endif + +ifndef SYS_TIME_LED +SYS_TIME_LED = 1 +endif + + +# +# default uart settings +# +ifndef GPS_PORT +GPS_PORT = UART0 +endif +ifndef GPS_BAUD +GPS_BAUD = B38400 +endif + +ifndef MODEM_PORT +MODEM_PORT = UART1 +endif +ifndef MODEM_BAUD +MODEM_BAUD = B57600 +endif + + + +ADC_GENERIC_NB_SAMPLES = 16 + +# +# you can use different actuators by adding a configure option to your firmware section +# e.g. - + + 4, 0x01-> 1, 0x02 -> 2 */ +#define PBSD_BITS 0x02 +#define PBSD_VAL 2 + +/* Peripheral bus clock freq. */ +#define PCLK (CCLK / PBSD_VAL) + +/* Onboard LEDs */ +#ifndef USE_LED_1 +#define USE_LED_1 1 +#endif +#define LED_1_BANK 1 +#define LED_1_PIN 25 + +#ifndef USE_LED_2 +#define USE_LED_2 1 +#endif +#define LED_2_BANK 1 +#define LED_2_PIN 24 + +/* P0.5 aka MAT0.1 */ +#define SERVO_CLOCK_PIN 5 +#define SERVO_CLOCK_PINSEL PINSEL0 +#define SERVO_CLOCK_PINSEL_VAL 0x02 +#define SERVO_CLOCK_PINSEL_BIT 10 +/* p1.20 */ +#define SERVO_RESET_PIN 20 + +/* PPM : rc rx on P0.28 ( CAP0.2 ) */ +#define PPM_PINSEL PINSEL1 +#define PPM_PINSEL_VAL 0x02 +#define PPM_PINSEL_BIT 24 +#define PPM_CRI TIR_CR2I +#define PPM_CCR_CRF TCCR_CR2_F +#define PPM_CCR_CRR TCCR_CR2_R +#define PPM_CCR_CRI TCCR_CR2_I +#define PPM_CR T0CR2 + +/* ADC */ + +#define ADC_0 AdcBank1(5) +#ifdef USE_ADC_0 +#ifndef USE_AD1 +#define USE_AD1 +#endif +#define USE_AD1_5 +#endif + +#define ADC_1 AdcBank1(4) +#ifdef USE_ADC_1 +#ifndef USE_AD1 +#define USE_AD1 +#endif +#define USE_AD1_4 +#endif + +#define ADC_2 AdcBank1(3) +#ifdef USE_ADC_2 +#ifndef USE_AD1 +#define USE_AD1 +#endif +#define USE_AD1_3 +#endif + +#define ADC_3 AdcBank1(2) +#ifdef USE_ADC_3 +#ifndef USE_AD1 +#define USE_AD1 +#endif +#define USE_AD1_2 +#endif + + +/* battery */ +/* allow to define ADC_CHANNEL_VSUPPLY in the airframe file*/ +#ifndef ADC_CHANNEL_VSUPPLY +#define ADC_CHANNEL_VSUPPLY AdcBank0(2) +#ifndef USE_AD0 +#define USE_AD0 +#endif +#define USE_AD0_2 +#endif + +#define DefaultVoltageOfAdc(adc) (0.0247*adc) + +/* SPI (SSP) */ +#define SPI_SELECT_SLAVE0_PORT 0 +#define SPI_SELECT_SLAVE0_PIN 20 + +#define SPI1_DRDY_PINSEL PINSEL1 +#define SPI1_DRDY_PINSEL_BIT 0 +#define SPI1_DRDY_PINSEL_VAL 1 +#define SPI1_DRDY_EINT 0 +#define SPI1_DRDY_VIC_IT VIC_EINT0 + +#endif /* CONFIG_UMARIM_LITE_V2_0_H */