mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
OLIMEXINO - Initial support for the OLIMEXINO board.
PWM and ADC configuration is the same as the naze32 for now. Requires an accelerometer is connected via I2C2. I2C signals SDA2 and SCL2 are on the UEXT header (Pins 6 and 5 respectively) USART signals TX and RX are on the CON3/CON4 headers (TX = D7, RX = D8) Onboard LEDs (LED1/LED2) working. Buzzer support removed for now as it conflicted with PWM map and LEDs. mma845x support disabled as it conflicted with an LED. Relocated some NAZE specific comments. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@302 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
880b7418fd
commit
f2a931d248
7 changed files with 70 additions and 24 deletions
|
@ -48,10 +48,10 @@ void systemInit(void)
|
|||
uint32_t i;
|
||||
|
||||
gpio_config_t gpio_cfg[] = {
|
||||
{ LED0_GPIO, LED0_PIN, GPIO_Mode_Out_PP }, // PB3 (LED)
|
||||
{ LED1_GPIO, LED1_PIN, GPIO_Mode_Out_PP }, // PB4 (LED)
|
||||
#ifndef FY90Q
|
||||
{ BEEP_GPIO, BEEP_PIN, GPIO_Mode_Out_OD }, // PA12 (Buzzer)
|
||||
{ LED0_GPIO, LED0_PIN, GPIO_Mode_Out_PP },
|
||||
{ LED1_GPIO, LED1_PIN, GPIO_Mode_Out_PP },
|
||||
#ifdef BUZZER
|
||||
{ BEEP_GPIO, BEEP_PIN, GPIO_Mode_Out_OD },
|
||||
#endif
|
||||
};
|
||||
uint8_t gpio_count = sizeof(gpio_cfg) / sizeof(gpio_cfg[0]);
|
||||
|
@ -164,7 +164,7 @@ void systemReset(bool toBootloader)
|
|||
// 1FFFF000 -> 20000200 -> SP
|
||||
// 1FFFF004 -> 1FFFF021 -> PC
|
||||
*((uint32_t *)0x20004FF0) = 0xDEADBEEF; // 20KB STM32F103
|
||||
}
|
||||
}
|
||||
|
||||
// Generate system reset
|
||||
SCB->AIRCR = AIRCR_VECTKEY_MASK | (uint32_t)0x04;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue