File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ void noInterrupts();
65
65
#define digitalPinToTimer (pin ) (0 )
66
66
#define digitalPinToInterrupt (pin ) (pin)
67
67
#define NOT_AN_INTERRUPT (-1 )
68
- #define portOutputRegister (port ) ((volatile uint32_t *) sio_hw->gpio_out)
69
- #define portInputRegister (port ) ((volatile uint32_t *) sio_hw->gpio_in)
70
- #define portModeRegister (port ) ((volatile uint32_t *) sio_hw->gpio_oe)
68
+ #define portOutputRegister (port ) ((volatile uint32_t *)&( sio_hw->gpio_out) )
69
+ #define portInputRegister (port ) ((volatile uint32_t *)&( sio_hw->gpio_in) )
70
+ #define portModeRegister (port ) ((volatile uint32_t *)&( sio_hw->gpio_oe) )
71
71
#define digitalWriteFast (pin, val ) (val ? sio_hw->gpio_set = (1 << pin) : sio_hw->gpio_clr = (1 << pin))
72
72
#define digitalReadFast (pin ) ((1 << pin) & sio_hw->gpio_in)
73
73
#define sei () interrupts()
You can’t perform that action at this time.
0 commit comments