Skip to content

Commit

Permalink
Revert "Wear Leveling driver for SN32 platform"
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 authored Oct 27, 2022
1 parent 74b1b54 commit 0c6e12c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 112 deletions.
5 changes: 1 addition & 4 deletions builddefs/common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ else
endif
endif

VALID_WEAR_LEVELING_DRIVER_TYPES := custom embedded_flash spi_flash rp2040_flash legacy sn32_flash
VALID_WEAR_LEVELING_DRIVER_TYPES := custom embedded_flash spi_flash rp2040_flash legacy
WEAR_LEVELING_DRIVER ?= none
ifneq ($(strip $(WEAR_LEVELING_DRIVER)),none)
ifeq ($(filter $(WEAR_LEVELING_DRIVER),$(VALID_WEAR_LEVELING_DRIVER_TYPES)),)
Expand Down Expand Up @@ -277,9 +277,6 @@ ifneq ($(strip $(WEAR_LEVELING_DRIVER)),none)
COMMON_VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/flash
SRC += flash_stm32.c wear_leveling_legacy.c
POST_CONFIG_H += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/wear_leveling/wear_leveling_legacy_config.h
else ifeq ($(strip $(WEAR_LEVELING_DRIVER)), sn32_flash)
SRC += wear_leveling_sn32_flash.c
POST_CONFIG_H += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/wear_leveling/wear_leveling_sn32_flash_config.h
endif
endif
endif
Expand Down
2 changes: 0 additions & 2 deletions keyboards/handwired/onekey/sn32/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = sn32_flash
56 changes: 0 additions & 56 deletions platforms/chibios/drivers/wear_leveling/wear_leveling_sn32_flash.c

This file was deleted.

This file was deleted.

0 comments on commit 0c6e12c

Please sign in to comment.