File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 3838#define  SPI_HOWMANY     (1u)
3939#define  WIRE_HOWMANY    (2u)
4040
41+ // Pin overrides specific to the QT Py RP2040 
42+ #define  __PIN_A0  (29u)
43+ #define  __PIN_A1  (28u)
44+ #define  __PIN_A2  (27u)
45+ #define  __PIN_A3  (26u)
46+ 
4147#include  "../generic/common.h" 
Original file line number Diff line number Diff line change @@ -39,10 +39,29 @@ static const uint8_t D27 = (27u);
3939static  const  uint8_t  D28  =  (28u );
4040static  const  uint8_t  D29  =  (29u );
4141
42- static  const  uint8_t  A0  =  (26u );
43- static  const  uint8_t  A1  =  (27u );
44- static  const  uint8_t  A2  =  (28u );
45- static  const  uint8_t  A3  =  (29u );
42+ #ifdef  __PIN_A0 
43+ 	static  const  uint8_t  A0  =  __PIN_A0 ;
44+ #else 
45+ 	static  const  uint8_t  A0  =  (26u );
46+ #endif 
47+ 
48+ #ifdef  __PIN_A1 
49+ 	static  const  uint8_t  A1  =  __PIN_A1 ;
50+ #else 
51+ 	static  const  uint8_t  A1  =  (27u );
52+ #endif 
53+ 
54+ #ifdef  __PIN_A2 
55+ 	static  const  uint8_t  A2  =  __PIN_A2 ;
56+ #else 
57+ 	static  const  uint8_t  A2  =  (28u );
58+ #endif 
59+ 
60+ #ifdef  __PIN_A3 
61+ 	static  const  uint8_t  A3  =  __PIN_A3 ;
62+ #else 
63+ 	static  const  uint8_t  A3  =  (29u );
64+ #endif 
4665
4766static  const  uint8_t  SS  =  PIN_SPI0_SS ;
4867static  const  uint8_t  MOSI  =  PIN_SPI0_MOSI ;
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments