Remove matrix_init_quantum/matrix_scan_quantum (#19806)
This commit is contained in:
		
							parent
							
								
									9991894514
								
							
						
					
					
						commit
						11d49d00e7
					
				
					 76 changed files with 148 additions and 319 deletions
				
			
		| 
						 | 
				
			
			@ -308,7 +308,7 @@ void matrix_init(void) {
 | 
			
		|||
 | 
			
		||||
    debounce_init(ROWS_PER_HAND);
 | 
			
		||||
 | 
			
		||||
    matrix_init_quantum();
 | 
			
		||||
    matrix_init_kb();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#ifdef SPLIT_KEYBOARD
 | 
			
		||||
| 
						 | 
				
			
			@ -342,7 +342,7 @@ uint8_t matrix_scan(void) {
 | 
			
		|||
    changed = debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed) | matrix_post_scan();
 | 
			
		||||
#else
 | 
			
		||||
    changed = debounce(raw_matrix, matrix, ROWS_PER_HAND, changed);
 | 
			
		||||
    matrix_scan_quantum();
 | 
			
		||||
    matrix_scan_kb();
 | 
			
		||||
#endif
 | 
			
		||||
    return (uint8_t)changed;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,10 +67,6 @@ void matrix_io_delay(void);
 | 
			
		|||
void matrix_power_up(void);
 | 
			
		||||
void matrix_power_down(void);
 | 
			
		||||
 | 
			
		||||
/* executes code for Quantum */
 | 
			
		||||
void matrix_init_quantum(void);
 | 
			
		||||
void matrix_scan_quantum(void);
 | 
			
		||||
 | 
			
		||||
void matrix_init_kb(void);
 | 
			
		||||
void matrix_scan_kb(void);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -111,7 +111,7 @@ bool matrix_post_scan(void) {
 | 
			
		|||
 | 
			
		||||
        if (changed) memcpy(matrix + thatHand, slave_matrix, sizeof(slave_matrix));
 | 
			
		||||
 | 
			
		||||
        matrix_scan_quantum();
 | 
			
		||||
        matrix_scan_kb();
 | 
			
		||||
    } else {
 | 
			
		||||
        transport_slave(matrix + thatHand, matrix + thisHand);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -162,7 +162,7 @@ __attribute__((weak)) void matrix_init(void) {
 | 
			
		|||
 | 
			
		||||
    debounce_init(ROWS_PER_HAND);
 | 
			
		||||
 | 
			
		||||
    matrix_init_quantum();
 | 
			
		||||
    matrix_init_kb();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
__attribute__((weak)) uint8_t matrix_scan(void) {
 | 
			
		||||
| 
						 | 
				
			
			@ -172,7 +172,7 @@ __attribute__((weak)) uint8_t matrix_scan(void) {
 | 
			
		|||
    changed = debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed) | matrix_post_scan();
 | 
			
		||||
#else
 | 
			
		||||
    changed = debounce(raw_matrix, matrix, ROWS_PER_HAND, changed);
 | 
			
		||||
    matrix_scan_quantum();
 | 
			
		||||
    matrix_scan_kb();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    return changed;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -453,14 +453,6 @@ void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
 | 
			
		|||
    layer_state_set(update_tri_layer_state(layer_state, layer1, layer2, layer3));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO: remove legacy api
 | 
			
		||||
void matrix_init_quantum(void) {
 | 
			
		||||
    matrix_init_kb();
 | 
			
		||||
}
 | 
			
		||||
void matrix_scan_quantum(void) {
 | 
			
		||||
    matrix_scan_kb();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//------------------------------------------------------------------------------
 | 
			
		||||
// Override these functions in your keymap file to play different tunes on
 | 
			
		||||
// different events such as startup and bootloader jump
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue