Commit 52127a20 authored by Carlos Pereira Atencio's avatar Carlos Pereira Atencio Committed by Sandeep Mistry

Fix Arduino.h portOutputRegister() and portModeRegister()

This functions were using the OUTSET and DIRSET registers instead
of SET and DIR. The xxxSET registers only do something when a "1"
is written to any of their bits, writting a "0" does nothing.
parent 75baa76b
......@@ -109,9 +109,9 @@ void loop( void ) ;
#error "Unsupported GPIO_COUNT"
#endif
#define portOutputRegister(port) ( &(port->OUTSET) )
#define portOutputRegister(port) ( &(port->OUT) )
#define portInputRegister(port) ( &(port->IN) )
#define portModeRegister(port) ( &(port->DIRSET) )
#define portModeRegister(port) ( &(port->DIR) )
#define digitalPinHasPWM(P) ( true )
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment