Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
Fix for gg 10 (qmk#9485)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalloc committed Jan 9, 2021
1 parent 03a76ef commit 6fa1748
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion keyboards/massdrop/carina/keymaps/vmalloc/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum ctrl_keycodes {

#define TG_NKRO MAGIC_TOGGLE_NKRO // Toggle 6KRO / NKRO mode

keymap_config_t keymap_config;
//keymap_config_t keymap_config;

// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
Expand Down
1 change: 0 additions & 1 deletion keyboards/massdrop/carina/keymaps/vmalloc/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
OPT_DEFS += -DRGB_MATRIX_STARTUP_MODE=RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
OPT_DEFS += -DRGB_MATRIX_FRAMEBUFFER_EFFECTS
3 changes: 3 additions & 0 deletions tmk_core/protocol/arm_atsam/i2c_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define I2C_LED_USE_DMA 1 //Set 1 to use background DMA transfers for leds, Set 0 to use inline software transfers

DmacDescriptor dmac_desc;
DmacDescriptor dmac_desc_wb;

static uint8_t i2c_led_q[I2C_Q_SIZE]; //I2C queue circular buffer
static uint8_t i2c_led_q_s; //Start of circular buffer
static uint8_t i2c_led_q_e; //End of circular buffer
Expand Down
6 changes: 4 additions & 2 deletions tmk_core/protocol/arm_atsam/i2c_master.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "issi3733_driver.h"
#include "config.h"

__attribute__((__aligned__(16)))


extern __attribute__((__aligned__(16)))
DmacDescriptor dmac_desc;
__attribute__((__aligned__(16)))
extern __attribute__((__aligned__(16)))
DmacDescriptor dmac_desc_wb;

uint8_t I2C3733_Init_Control(void);
Expand Down
2 changes: 1 addition & 1 deletion tmk_core/protocol/arm_atsam/led_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ uint32_t power_sum_last; //Sum of RGB values for previous LED pat

int8_t gcr_change_counter; //GCR increase and decrease calls are counted here and acted upon when a count limit is hit
uint16_t v_5v_cat_hit; //Flag for when 5v catastrophic level has been reached, and timer for recovery period
uint64_t v_5v_low_timer; //Timer for disabling USB extra device after causing a low voltage situation for an amount of time (-1 indicates timer not active)
extern uint64_t v_5v_low_timer; //Timer for disabling USB extra device after causing a low voltage situation for an amount of time (-1 indicates timer not active)

uint8_t led_mfg_test_mode = LED_MFG_TEST_MODE_OFF;

Expand Down

0 comments on commit 6fa1748

Please sign in to comment.