Skip to content

Commit

Permalink
avr_pdi: Moved all the PDI registers definitions to the header
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Feb 5, 2024
1 parent 180817a commit 21ebb4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/target/avr_pdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@

#define PDI_MODE_MASK 0xf3U

#define PDI_REG_STATUS 0U
#define PDI_REG_RESET 1U
#define PDI_REG_CTRL 2U

#define PDI_RESET 0x59U

typedef enum pdi_key {
Expand Down
7 changes: 5 additions & 2 deletions src/target/avr_pdi.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ typedef struct __attribute__((packed)) avr_regs {
#define PDI_DATA_24 0x02U
#define PDI_DATA_32 0x03U

#define PDI_REG_R3 3U
#define PDI_REG_R4 4U
#define PDI_REG_STATUS 0U
#define PDI_REG_RESET 1U
#define PDI_REG_CTRL 2U
#define PDI_REG_R3 3U
#define PDI_REG_R4 4U

#define PDI_MODE_IND_PTR 0x00U
#define PDI_MODE_IND_INCPTR 0x04U
Expand Down

0 comments on commit 21ebb4f

Please sign in to comment.