Skip to content

Commit

Permalink
Start mvoing hardware drivers to /drivers/ (qmk#1433)
Browse files Browse the repository at this point in the history
* start driver isolation

* update nyquist and orthodox boards

* update atreus62

* move drivers to avr

* update avr conditional
  • Loading branch information
jackhumbert committed Jul 10, 2017
1 parent 8d190d5 commit 42d5a32
Show file tree
Hide file tree
Showing 19 changed files with 13 additions and 1,582 deletions.
6 changes: 5 additions & 1 deletion common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ LIB_PATH = $(TOP_DIR)/lib
QUANTUM_DIR = quantum
QUANTUM_PATH = $(TOP_DIR)/$(QUANTUM_DIR)

DRIVER_DIR = drivers
DRIVER_PATH = $(TOP_DIR)/$(DRIVER_DIR)

BUILD_DIR := $(TOP_DIR)/.build

COMMON_VPATH := $(TOP_DIR)
Expand All @@ -17,4 +20,5 @@ COMMON_VPATH += $(QUANTUM_PATH)
COMMON_VPATH += $(QUANTUM_PATH)/keymap_extras
COMMON_VPATH += $(QUANTUM_PATH)/audio
COMMON_VPATH += $(QUANTUM_PATH)/process_keycode
COMMON_VPATH += $(QUANTUM_PATH)/api
COMMON_VPATH += $(QUANTUM_PATH)/api
COMMON_VPATH += $(DRIVER_PATH)
2 changes: 1 addition & 1 deletion common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ endif

ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
OPT_DEFS += -DRGBLIGHT_ENABLE
SRC += $(QUANTUM_DIR)/light_ws2812.c
SRC += ws2812.c
SRC += $(QUANTUM_DIR)/rgblight.c
CIE1931_CURVE = yes
LED_BREATHING_TABLE = yes
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion keyboards/orthodox/ssd1306.c → drivers/avr/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string.h>
#include "print.h"
#include "lets_split.h"
#include "common/glcdfont.c"
#include "glcdfont.c"
#ifdef ADAFRUIT_BLE_ENABLE
#include "adafruit_ble.h"
#endif
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion quantum/light_ws2812.c → drivers/avr/ws2812.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "light_ws2812.h"
#include "ws2812.h"
#include <avr/interrupt.h>
#include <avr/io.h>
#include <util/delay.h>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion keyboards/handwired/promethium/rgbsps.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "light_ws2812.h"
#include "ws2812.h"
#include "rgbsps.h"

struct cRGB led[RGBSPS_NUM];
Expand Down
4 changes: 2 additions & 2 deletions keyboards/handwired/promethium/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ BLUETOOTH = AdafruitBLE
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend

SRC += $(QUANTUM_DIR)/light_ws2812.c
SRC += ws2812.c
SRC += rgbsps.c
SRC += $(QUANTUM_DIR)/analog.c
SRC += analog.c
SRC += matrix.c
Loading

0 comments on commit 42d5a32

Please sign in to comment.