Honor micro hal

This commit is contained in:
David Sidrane
2016-12-21 08:34:20 +01:00
committed by Lorenz Meier
parent 9db89ea4cf
commit ddb9bc3242
8 changed files with 10 additions and 32 deletions
+4 -2
View File
@@ -58,8 +58,7 @@
#include <drivers/drv_hrt.h>
#include <drivers/drv_adc.h>
#include <arch/stm32/chip.h>
#include <stm32.h>
#include <stm32_adc.h>
#include <stm32_gpio.h>
#include <systemlib/err.h>
@@ -68,6 +67,7 @@
#include <uORB/topics/system_power.h>
#include <uORB/topics/adc_report.h>
#if defined(ADC_CHANNELS)
/*
* Register accessors.
* For now, no reason not to just use ADC1.
@@ -363,6 +363,7 @@ ADC::update_system_power(hrt_abstime now)
*/
// these are not ADC related, but it is convenient to
// publish these to the same topic
system_power.usb_connected = BOARD_ADC_USB_CONNECTED;
system_power.brick_valid = BOARD_ADC_BRICK_VALID;
@@ -482,3 +483,4 @@ adc_main(int argc, char *argv[])
exit(0);
}
#endif
-5
View File
@@ -76,11 +76,6 @@
#include "drv_input_capture.h"
#include <chip.h>
#include <up_internal.h>
#include <up_arch.h>
#include <stm32.h>
#include <stm32_gpio.h>
#include <stm32_tim.h>
-5
View File
@@ -60,11 +60,6 @@
#include "drv_io_timer.h"
#include <chip.h>
#include <up_internal.h>
#include <up_arch.h>
#include <stm32.h>
#include <stm32_gpio.h>
#include <stm32_tim.h>
-5
View File
@@ -61,11 +61,6 @@
#include "drv_io_timer.h"
#include "drv_pwm_servo.h"
#include <chip.h>
#include <up_internal.h>
#include <up_arch.h>
#include <stm32.h>
#include <stm32_tim.h>
int up_pwm_servo_set(unsigned channel, servo_position_t value)
+2 -10
View File
@@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (C) 2013 PX4 Development Team. All rights reserved.
* Copyright (C) 2013, 2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -107,14 +107,6 @@
#include <board_config.h>
#include <drivers/drv_hrt.h>
#include <arch/stm32/chip.h>
#include <up_internal.h>
#include <up_arch.h>
#include <stm32.h>
#include <stm32_gpio.h>
#include <stm32_tim.h>
#include <systemlib/err.h>
#include <systemlib/circuit_breaker.h>
@@ -830,7 +822,7 @@ ToneAlarm::next_note()
// tune looks bad (unexpected EOF, bad character, etc.)
tune_error:
lowsyslog("tune error\n");
syslog(LOG_ERR, "tune error\n");
_repeat = false; // don't loop on error
// stop (and potentially restart) the tune