File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -219,14 +219,12 @@ void loop(void);
219
219
void yield (void );
220
220
void optimistic_yield (uint32_t interval_us );
221
221
222
- // Get the bit location within the hardware port of the given virtual pin.
223
- // This comes from the pins_*.c file for the active board configuration.
224
222
#define digitalPinToPort (pin ) (0)
225
223
#define digitalPinToBitMask (pin ) (1UL << (pin))
226
224
#define digitalPinToTimer (pin ) (0)
227
- #define portOutputRegister (port ) ((volatile uint32_t*) GPO)
228
- #define portInputRegister (port ) ((volatile uint32_t*) GPI)
229
- #define portModeRegister (port ) ((volatile uint32_t*) GPE)
225
+ #define portOutputRegister (port ) ((volatile uint32_t*) & GPO)
226
+ #define portInputRegister (port ) ((volatile uint32_t*) & GPI)
227
+ #define portModeRegister (port ) ((volatile uint32_t*) & GPE)
230
228
231
229
#define NOT_A_PIN -1
232
230
#define NOT_A_PORT -1
You can’t perform that action at this time.
0 commit comments