Browse Source

analog.[ch]: remove unnecessary includes (#16471)

pull/16532/head 0.16.3
Ryan 2 years ago
committed by GitHub
parent
commit
d412854e37
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 6 deletions
  1. +2
    -0
      drivers/sensors/analog_joystick.c
  2. +0
    -3
      platforms/avr/drivers/analog.c
  3. +1
    -1
      platforms/avr/drivers/analog.h
  4. +0
    -1
      platforms/chibios/drivers/analog.c
  5. +1
    -1
      platforms/chibios/drivers/analog.h

+ 2
- 0
drivers/sensors/analog_joystick.c View File

@ -18,6 +18,8 @@
#include "analog.h"
#include "gpio.h"
#include "wait.h"
#include "timer.h"
#include <stdlib.h>
// Set Parameters
uint16_t minAxisValue = ANALOG_JOYSTICK_AXIS_MIN;


+ 0
- 3
platforms/avr/drivers/analog.c View File

@ -14,9 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <stdint.h>
#include "analog.h"
static uint8_t aref = ADC_REF_POWER;


+ 1
- 1
platforms/avr/drivers/analog.h View File

@ -17,7 +17,7 @@
#pragma once
#include <stdint.h>
#include "quantum.h"
#include "gpio.h"
#ifdef __cplusplus
extern "C" {


+ 0
- 1
platforms/chibios/drivers/analog.c View File

@ -14,7 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "analog.h"
#include <ch.h>
#include <hal.h>


+ 1
- 1
platforms/chibios/drivers/analog.h View File

@ -17,7 +17,7 @@
#pragma once
#include <stdint.h>
#include "quantum.h"
#include "gpio.h"
#ifdef __cplusplus
extern "C" {


Loading…
Cancel
Save