This commit is contained in:
MultiMote 2016-02-03 21:44:39 +03:00
parent 451924250c
commit 3ef160f251

View File

@ -21,13 +21,13 @@
// Sets all of port pins to OUTPUT mode // Sets all of port pins to OUTPUT mode
// //
// Example for PORTD: PORT_AS_OUTPUT(PORTD) // Example for PORTD: PORT_AS_OUTPUT(DDRD)
#define PORT_AS_OUTPUT(port) ((port) = 0xFF) #define PORT_AS_OUTPUT(ddr) ((ddr) = 0xFF)
// Sets all of port pins to INPUT mode // Sets all of port pins to INPUT mode
// //
// Example for PORTD: PORT_AS_INPUT(PORTD) // Example for PORTD: PORT_AS_INPUT(DDRD)
#define PORT_AS_INPUT(port) ((port) = 0x00) #define PORT_AS_INPUT(ddr) ((ddr) = 0x00)
// Sets pin of port to OUTPUT mode // Sets pin of port to OUTPUT mode
// //