Initial USB2422 driver (#14835)
This commit is contained in:
		
							parent
							
								
									1b1f3ec68e
								
							
						
					
					
						commit
						0093d3d761
					
				
					 13 changed files with 277 additions and 205 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
#include "i2c_master.h"
 | 
			
		||||
#include "md_rgb_matrix.h" //For led keycodes
 | 
			
		||||
#include "usb/udi_cdc.h"
 | 
			
		||||
#include "usb/usb2422.h"
 | 
			
		||||
#include "usb/usb_hub.h"
 | 
			
		||||
 | 
			
		||||
#define LAYOUT_65_ansi_blocker( \
 | 
			
		||||
    K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13, K14, K15, \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -90,6 +90,15 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#define DEBUG_BOOT_TRACING_PORT     PB
 | 
			
		||||
#define DEBUG_BOOT_TRACING_PIN      23
 | 
			
		||||
 | 
			
		||||
/* USB2422 config */
 | 
			
		||||
#define USB2422_ADDRESS 0x58
 | 
			
		||||
#define USB2422_VENDOR_ID 0x04D8
 | 
			
		||||
#define USB2422_PRODUCT_ID 0xEEC5
 | 
			
		||||
#define USB2422_DEVICE_VER 0x0101
 | 
			
		||||
#define USB2422_MANUFACTURER "Massdrop Inc."
 | 
			
		||||
#define USB2422_PRODUCT "Massdrop Hub"
 | 
			
		||||
#define USB2422_ACTIVE_PIN A18
 | 
			
		||||
 | 
			
		||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
 | 
			
		||||
#define DEBOUNCE 5
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -89,6 +89,15 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#define DEBUG_BOOT_TRACING_PORT     PB
 | 
			
		||||
#define DEBUG_BOOT_TRACING_PIN      23
 | 
			
		||||
 | 
			
		||||
/* USB2422 config */
 | 
			
		||||
#define USB2422_ADDRESS 0x58
 | 
			
		||||
#define USB2422_VENDOR_ID 0x04D8
 | 
			
		||||
#define USB2422_PRODUCT_ID 0xEEC5
 | 
			
		||||
#define USB2422_DEVICE_VER 0x0101
 | 
			
		||||
#define USB2422_MANUFACTURER "Massdrop Inc."
 | 
			
		||||
#define USB2422_PRODUCT "Massdrop Hub"
 | 
			
		||||
#define USB2422_ACTIVE_PIN A18
 | 
			
		||||
 | 
			
		||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
 | 
			
		||||
#define DEBOUNCE 5
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
#include "i2c_master.h"
 | 
			
		||||
#include "md_rgb_matrix.h" //For led keycodes
 | 
			
		||||
#include "usb/udi_cdc.h"
 | 
			
		||||
#include "usb/usb2422.h"
 | 
			
		||||
#include "usb/usb_hub.h"
 | 
			
		||||
 | 
			
		||||
#define LAYOUT( \
 | 
			
		||||
    K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13, K14, K15, \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue