mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Cleanup/uncrustify
This commit is contained in:
parent
0d714fb861
commit
3fd75273f5
@ -172,7 +172,7 @@
|
||||
/* Task stack sizes */
|
||||
/* #define PIOS_ACTUATOR_STACK_SIZE 1020 */
|
||||
/* #define PIOS_MANUAL_STACK_SIZE 800 */
|
||||
#define PIOS_SYSTEM_STACK_SIZE 1536
|
||||
#define PIOS_SYSTEM_STACK_SIZE 1536
|
||||
/* #define PIOS_STABILIZATION_STACK_SIZE 524 */
|
||||
/* #define PIOS_TELEM_STACK_SIZE 500 */
|
||||
/* #define PIOS_EVENTDISPATCHER_STACK_SIZE 130 */
|
||||
|
@ -734,10 +734,10 @@ void PIOS_Board_Init(void)
|
||||
#ifdef PIOS_INCLUDE_ADC
|
||||
uint8_t adc_config[HWSETTINGS_ADCROUTING_NUMELEM];
|
||||
HwSettingsADCRoutingArrayGet(adc_config);
|
||||
for(uint32_t i = 0; i < HWSETTINGS_ADCROUTING_NUMELEM; i++){
|
||||
if(adc_config[i] != HWSETTINGS_ADCROUTING_DISABLED){
|
||||
PIOS_ADC_PinSetup(i);
|
||||
}
|
||||
for (uint32_t i = 0; i < HWSETTINGS_ADCROUTING_NUMELEM; i++) {
|
||||
if (adc_config[i] != HWSETTINGS_ADCROUTING_DISABLED) {
|
||||
PIOS_ADC_PinSetup(i);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -41,23 +41,6 @@ extern "C" {
|
||||
/* Global Variables */
|
||||
|
||||
/* Local Variables */
|
||||
#define INCLUDE_TEST_TASKS 0
|
||||
#if INCLUDE_TEST_TASKS
|
||||
static uint8_t sdcard_available;
|
||||
#endif
|
||||
char Buffer[1024];
|
||||
uint32_t Cache;
|
||||
|
||||
/* Function Prototypes */
|
||||
#if INCLUDE_TEST_TASKS
|
||||
static void TaskTick(void *pvParameters);
|
||||
static void TaskTesting(void *pvParameters);
|
||||
static void TaskHIDTest(void *pvParameters);
|
||||
static void TaskServos(void *pvParameters);
|
||||
static void TaskSDCard(void *pvParameters);
|
||||
#endif
|
||||
int32_t CONSOLE_Parse(uint8_t port, char c);
|
||||
void OP_ADC_NotifyChange(uint32_t pin, uint32_t pin_value);
|
||||
|
||||
/* Prototype of PIOS_Board_Init() function */
|
||||
extern void PIOS_Board_Init(void);
|
||||
|
@ -284,17 +284,17 @@ extern uint32_t pios_packet_handler;
|
||||
// -------------------------
|
||||
#define PIOS_DMA_PIN_CONFIG \
|
||||
{ \
|
||||
{ GPIOB, GPIO_Pin_1, ADC_Channel_9, false},/* FLEXI-IO PIN 4 */ \
|
||||
{ GPIOB, GPIO_Pin_0, ADC_Channel_8, false},/* FLEXI-IO PIN 5 */ \
|
||||
{ GPIOA, GPIO_Pin_7, ADC_Channel_7, false},/* FLEXI-IO PIN 6 */ \
|
||||
{ GPIOA, GPIO_Pin_6, ADC_Channel_6, false},/* FLEXI-IO PIN 7 */ \
|
||||
{ GPIOA, GPIO_Pin_5, ADC_Channel_5, false},/* FLEXI-IO PIN 8 */ \
|
||||
{ GPIOB, GPIO_Pin_1, ADC_Channel_9, false }, /* FLEXI-IO PIN 4 */ \
|
||||
{ GPIOB, GPIO_Pin_0, ADC_Channel_8, false }, /* FLEXI-IO PIN 5 */ \
|
||||
{ GPIOA, GPIO_Pin_7, ADC_Channel_7, false }, /* FLEXI-IO PIN 6 */ \
|
||||
{ GPIOA, GPIO_Pin_6, ADC_Channel_6, false }, /* FLEXI-IO PIN 7 */ \
|
||||
{ GPIOA, GPIO_Pin_5, ADC_Channel_5, false }, /* FLEXI-IO PIN 8 */ \
|
||||
\
|
||||
{ GPIOA, GPIO_Pin_0, ADC_Channel_0, false},/* SERVO PIN 5 */ \
|
||||
{ GPIOA, GPIO_Pin_1, ADC_Channel_1, false},/* SERVO PIN 6 */ \
|
||||
{ GPIOA, GPIO_Pin_0, ADC_Channel_0, false }, /* SERVO PIN 5 */ \
|
||||
{ GPIOA, GPIO_Pin_1, ADC_Channel_1, false }, /* SERVO PIN 6 */ \
|
||||
\
|
||||
{ NULL, 0, ADC_Channel_Vrefint, false}, /* Voltage reference */ \
|
||||
{ NULL, 0, ADC_Channel_TempSensor, false}, /* Temperature sensor */ \
|
||||
{ NULL, 0, ADC_Channel_Vrefint, false }, /* Voltage reference */ \
|
||||
{ NULL, 0, ADC_Channel_TempSensor, false }, /* Temperature sensor */ \
|
||||
}
|
||||
|
||||
/* we have to do all this to satisfy the PIOS_ADC_MAX_SAMPLES define in pios_adc.h */
|
||||
|
Loading…
Reference in New Issue
Block a user