mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 16:03:33 +08:00
Tweak configs for CF2
Fix build error Capitalization mistake for headers Non-Mac compiler issue Baudrate for crazyflie nrf and fix code style Save space Cleanup mpu9250 driver
This commit is contained in:
committed by
Lorenz Meier
parent
5100785f51
commit
e6b98b2ab8
@@ -112,17 +112,17 @@ __BEGIN_DECLS
|
||||
#define ADC_BATTERY_CURRENT_CHANNEL ((uint8_t)(-1))
|
||||
#define ADC_AIRSPEED_VOLTAGE_CHANNEL ((uint8_t)(-1))
|
||||
|
||||
/* PWM
|
||||
*
|
||||
* Four PWM motor outputs are configured.
|
||||
*
|
||||
* Pins:
|
||||
*
|
||||
* CH1 : PA1 : TIM2_CH2
|
||||
* CH2 : PB11 : TIM2_CH4
|
||||
* CH3 : PA15 : TIM2_CH1
|
||||
* CH4 : PB9 : TIM4_CH4
|
||||
*/
|
||||
/* PWM
|
||||
*
|
||||
* Four PWM motor outputs are configured.
|
||||
*
|
||||
* Pins:
|
||||
*
|
||||
* CH1 : PA1 : TIM2_CH2
|
||||
* CH2 : PB11 : TIM2_CH4
|
||||
* CH3 : PA15 : TIM2_CH1
|
||||
* CH4 : PB9 : TIM4_CH4
|
||||
*/
|
||||
|
||||
#define GPIO_TIM2_CH2OUT GPIO_TIM2_CH2OUT_1
|
||||
#define GPIO_TIM2_CH4OUT GPIO_TIM2_CH4OUT_2
|
||||
|
||||
@@ -102,6 +102,17 @@
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Name: board_peripheral_reset
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
************************************************************************************/
|
||||
__EXPORT void board_peripheral_reset(int ms)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_boardinitialize
|
||||
*
|
||||
@@ -129,20 +140,6 @@ stm32_boardinitialize(void)
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#if 0
|
||||
#ifdef __cplusplus
|
||||
__EXPORT int matherr(struct __exception *e)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
__EXPORT int matherr(struct exception *e)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
__EXPORT int nsh_archinitialize(void)
|
||||
{
|
||||
int result;
|
||||
@@ -177,13 +174,9 @@ __EXPORT int nsh_archinitialize(void)
|
||||
result = board_i2c_initialize();
|
||||
|
||||
if (result != OK) {
|
||||
// up_ledon(LED_AMBER);
|
||||
led_on(1);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TODO: Initialize i2c buses right here
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user