Skip to content

Commit

Permalink
Move optical sensor code to drivers folder
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Jun 7, 2021
1 parent 680cc1f commit 3e88d05
Show file tree
Hide file tree
Showing 23 changed files with 13 additions and 637 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "spi_master.h"
#include "quantum.h"
#include "adns9800_srom_A6.h"
#include "adns.h"
#include "adns9800.h"

// registers
#define REG_Product_ID 0x00
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "dactyl_manuform.h"
#include "quantum.h"
#include "spi_master.h"
#include "pmw3360.h"
#include "drivers/sensors/pmw3360.h"
#include "pointing_device.h"


Expand Down
221 changes: 0 additions & 221 deletions keyboards/handwired/dactyl_manuform/5x6_right_trackball/pmw3360.c

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ MOUSE_SHARED_EP = no
SPLIT_KEYBOARD = yes
SPLIT_TRANSPORT = custom

SRC += pmw3360.c
SRC += drivers/sensors/pmw3360.c
QUANTUM_LIB_SRC += pointer_transport.c serial.c i2c_master.c i2c_slave.c spi_master.c
2 changes: 1 addition & 1 deletion keyboards/oddball/optical_sensor/optical_sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/* common interface for opitcal sensors */

#if defined ADNS_9800
#include "../adns/adns.h"
#include "drivers/sensors/adns9800.h"
#define config_optical_sensor_t config_adns_t
#define report_optical_sensor_t report_adns_t
#define optical_sensor_init adns_init
Expand Down
2 changes: 1 addition & 1 deletion keyboards/oddball/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ POINTING_DEVICE_ENABLE = yes
DEFAULT_FOLDER = oddball/v1

SRC += spi_master.c
SRC += adns/adns.c
SRC += drivers/sensors/adns9800.c
SRC += pmw/pmw.c
2 changes: 1 addition & 1 deletion keyboards/ploopyco/mouse/mouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "quantum.h"
#include "spi_master.h"
#include "pmw3360.h"
#include "drivers/sensors/pmw3360.h"
#include "analog.h"
#include "opt_encoder.h"
#include "pointing_device.h"
Expand Down
2 changes: 1 addition & 1 deletion keyboards/ploopyco/mouse/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ POINTING_DEVICE_ENABLE = yes
MOUSEKEY_ENABLE = yes # Mouse keys

QUANTUM_LIB_SRC += analog.c spi_master.c
SRC += pmw3360.c opt_encoder.c
SRC += drivers/sensors/pmw3360.c opt_encoder.c
103 changes: 0 additions & 103 deletions keyboards/ploopyco/pmw3360.h

This file was deleted.

Loading

0 comments on commit 3e88d05

Please sign in to comment.