🐛 Fix LPC176x M43 Pins Debugging (#22611)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							73ef26a106
						
					
				
				
					commit
					d8ef23eda7
				
			@@ -30,6 +30,7 @@
 | 
			
		||||
#define PRINT_PORT(p)
 | 
			
		||||
#define PRINT_ARRAY_NAME(x) do{ sprintf_P(buffer, PSTR("%-" STRINGIFY(MAX_NAME_LENGTH) "s"), pin_array[x].name); SERIAL_ECHO(buffer); }while(0)
 | 
			
		||||
#define PRINT_PIN(p) do{ sprintf_P(buffer, PSTR("%02d"), p); SERIAL_ECHO(buffer); }while(0)
 | 
			
		||||
#define PRINT_PIN_ANALOG(p) do{ sprintf_P(buffer, PSTR(" (A%2d)  "), DIGITAL_PIN_TO_ANALOG_PIN(pin)); SERIAL_ECHO(buffer); }while(0)
 | 
			
		||||
#define GET_ARRAY_PIN(p) pin_array[p].pin
 | 
			
		||||
#define GET_ARRAY_IS_DIGITAL(p) pin_array[p].is_digital
 | 
			
		||||
#define VALID_PIN(pin) (pin >= 0 && pin < (int8_t)NUMBER_PINS_TOTAL ? 1 : 0)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user