Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Apollo PCBs to use wear levelling code #18411

Merged
merged 1 commit into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions keyboards/acheron/apollo/87h/delta/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define EEPROM_I2C_24LC256
//#define I2C1_CLOCK_SPEED 400000
//#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2

#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE

#define RGB_DI_PIN B15
Expand Down
4 changes: 1 addition & 3 deletions keyboards/acheron/apollo/87h/delta/halconf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2022 QMK
/* Copyright 2022 Gondolindrim <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -16,8 +16,6 @@

#pragma once

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE
#define HAL_USE_PAL TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/apollo/87h/delta/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#include_next <mcuconf.h>

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

Expand Down
3 changes: 2 additions & 1 deletion keyboards/acheron/apollo/87h/delta/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = WS2812
EEPROM_DRIVER = i2c
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = legacy

# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -DDEBUG_EEPROM_OUTPUT=TRUE
4 changes: 0 additions & 4 deletions keyboards/acheron/apollo/87h/gamma/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define EEPROM_I2C_24LC256
//#define I2C1_CLOCK_SPEED 400000
//#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2

#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE

// RGB Matrix defines
Expand Down
6 changes: 0 additions & 6 deletions keyboards/acheron/apollo/87h/gamma/gamma.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#include "gamma.h"

void board_init(void) {
setPinInput(B9);
setPinInput(B10);
}

#ifdef RGB_MATRIX_ENABLE
const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
/* Refer to IS31 manual for these locations
Expand Down Expand Up @@ -126,7 +121,6 @@ const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {

};


led_config_t g_led_config = { {
{ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 },
{ 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 },
Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/apollo/87h/gamma/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@

#define HAL_USE_I2C TRUE

// #define HAL_USE_PWM TRUE
// #define HAL_USE_PAL TRUE

#include_next <halconf.h>
6 changes: 0 additions & 6 deletions keyboards/acheron/apollo/87h/gamma/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,3 @@

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

// #undef STM32_PWM_USE_ADVANCED
// #define STM32_PWM_USE_ADVANCED TRUE

// #undef STM32_PWM_USE_TIM1
// #define STM32_PWM_USE_TIM1 TRUE
3 changes: 2 additions & 1 deletion keyboards/acheron/apollo/87h/gamma/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ AUDIO_ENABLE = no # Audio output
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = IS31FL3741
KEYBOARD_SHARED_EP = yes
EEPROM_DRIVER = i2c
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = legacy

# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -DDEBUG_EEPROM_OUTPUT=TRUE
2 changes: 0 additions & 2 deletions keyboards/acheron/apollo/87htsc/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#pragma once

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE
#define HAL_USE_PAL TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/apollo/87htsc/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#include_next <mcuconf.h>

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

Expand Down
3 changes: 3 additions & 0 deletions keyboards/acheron/apollo/87htsc/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = WS2812

EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = legacy
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -DDEBUG_EEPROM_OUTPUT=TRUE
5 changes: 0 additions & 5 deletions keyboards/acheron/apollo/88htsc/88htsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#include "88htsc.h"

void board_init(void) {
setPinInput(B9);
setPinInput(B10);
}

led_config_t g_led_config = { {
{ 16 , 15 , 14 , 13 , 12 , 11 , 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 },
{ 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 , 33 },
Expand Down
2 changes: 0 additions & 2 deletions keyboards/acheron/apollo/88htsc/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#pragma once

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE
#define HAL_USE_PAL TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/apollo/88htsc/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#include_next <mcuconf.h>

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

Expand Down
4 changes: 3 additions & 1 deletion keyboards/acheron/apollo/88htsc/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = WS2812
EEPROM_DRIVER = i2c

EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = legacy

# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -DDEBUG_EEPROM_OUTPUT=TRUE