AVRly - AVR Development Resources
pin_defines.h File Reference

Pin and port definitions for the project. More...

#include <avr/io.h>

Go to the source code of this file.

Macros

#define OBJECT_PORT   PORTB
 Defines the AVR port we have wired our peripheral to. More...
 
#define OBJECT_DDR   DDRB
 Defines the Data Direction Register for the GPIO connected to our peripheral. More...
 
#define OBJECT_GPIO   PB0
 Defines the GPIO number the peripheral is wired to. More...
 

Detailed Description

Pin and port definitions for the project.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Author
Your Name Here
Date
15th March 2022
See also
Datasheets or other links can go here.

Definition in file pin_defines.h.

Macro Definition Documentation

◆ OBJECT_PORT

#define OBJECT_PORT   PORTB

Defines the AVR port we have wired our peripheral to.

Definition at line 43 of file pin_defines.h.

◆ OBJECT_DDR

#define OBJECT_DDR   DDRB

Defines the Data Direction Register for the GPIO connected to our peripheral.

Definition at line 48 of file pin_defines.h.

◆ OBJECT_GPIO

#define OBJECT_GPIO   PB0

Defines the GPIO number the peripheral is wired to.

Definition at line 53 of file pin_defines.h.