mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-24 08:36:14 +01:00
commit current
This commit is contained in:
parent
bcf8e27e43
commit
5955a9f593
11
defines.h
11
defines.h
|
@ -162,13 +162,14 @@
|
|||
#define SDA I2C_SDA
|
||||
#define SCL I2C_SCL
|
||||
|
||||
// these don't work...
|
||||
//extern const uint16_t PROGMEM port_to_input_PGM[];
|
||||
//extern const uint16_t PROGMEM port_to_output_PGM[];
|
||||
//extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[];
|
||||
//#define digitalPinToBitMask(P) ( pgm_read_byte( digital_pin_to_bit_mask_PGM + (P) ) )
|
||||
//#define portOutputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_output_PGM + (P))) )
|
||||
//#define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_input_PGM + (P))) )
|
||||
//#define digitalPinToBitMask(P) ( pgm_read_byte( digital_pin_to_bit_mask_PGM + (P) ) )
|
||||
#define portOutputRegister(port) ( &(port->OUT.reg) )
|
||||
#define portInputRegister(port) ( &(port->IN.reg) )
|
||||
//#define portModeRegister(port) ( &(port->DIR.reg) )
|
||||
char16_t digitalPinToBitMask(char16_t P) { return digitalPinToPinName(P);}
|
||||
|
||||
/* TODO when ready
|
||||
#elif defined(ARDUINO_ARCH_RP2040)
|
||||
#define ARDUINO_TYPE "RP2040"
|
||||
|
|
Loading…
Reference in New Issue
Block a user