-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reg::io_addr() and AVR_IO_SFR_OFFSET
+ Add a method to return the register address inside the I/O space. + Define a macro for each supported MCU to indicate the memory offset to map an I/O register into data memory space.
- Loading branch information
1 parent
c90595c
commit b4f6e51
Showing
4 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#pragma once | ||
|
||
#define AVR_IO_SFR_OFFSET 0x20 | ||
|
||
#include "avr/io/mcu/atmega328p/pins.hpp" | ||
#include "avr/io/mcu/atmega328p/regs.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#pragma once | ||
|
||
#define AVR_IO_SFR_OFFSET 0x20 | ||
|
||
#include "avr/io/mcu/attiny13a/pins.hpp" | ||
#include "avr/io/mcu/attiny13a/regs.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#pragma once | ||
|
||
#define AVR_IO_SFR_OFFSET 0x20 | ||
|
||
#include "avr/io/mcu/attiny85/pins.hpp" | ||
#include "avr/io/mcu/attiny85/regs.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters