Skip to content

Commit

Permalink
_SBUF
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Nov 25, 2023
1 parent ebac878 commit 1a5b735
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/sh68f90a.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <compiler.h>
#include <stdint.h>

#define _IOR(addr) static __xdata __at (addr) volatile uint8_t
#define _SBUF(addr) static __xdata __at (addr) volatile uint8_t

// CPU
SFR(ACC, 0xe0);
Expand Down Expand Up @@ -777,16 +777,16 @@ SBIT(PSPIL, 0x88, 6);
#define EP1_BUF_SIZE 16
#define EP2_BUF_SIZE 64

_IOR(0x1100) EP0_OUT_BUF[EP0_BUF_SIZE];
_IOR(0x1108) EP0_IN_BUF[EP0_BUF_SIZE];
_SBUF(0x1100) EP0_OUT_BUF[EP0_BUF_SIZE];
_SBUF(0x1108) EP0_IN_BUF[EP0_BUF_SIZE];

_IOR(0x1110) EP1_OUT_BUF[EP1_BUF_SIZE];
_IOR(0x1120) EP1_IN_BUF[EP1_BUF_SIZE];
_IOR(0x1130) EP1_COM_BUF[EP1_BUF_SIZE];
_SBUF(0x1110) EP1_OUT_BUF[EP1_BUF_SIZE];
_SBUF(0x1120) EP1_IN_BUF[EP1_BUF_SIZE];
_SBUF(0x1130) EP1_COM_BUF[EP1_BUF_SIZE];

_IOR(0x1140) EP2_OUT_BUF[EP2_BUF_SIZE];
_IOR(0x1180) EP2_IN_BUF[EP2_BUF_SIZE];
_IOR(0x11c0) EP2_COM_BUF[EP2_BUF_SIZE];
_SBUF(0x1140) EP2_OUT_BUF[EP2_BUF_SIZE];
_SBUF(0x1180) EP2_IN_BUF[EP2_BUF_SIZE];
_SBUF(0x11c0) EP2_COM_BUF[EP2_BUF_SIZE];

enum interrupt_index {
_INT_TIMER2 = 0,
Expand Down

0 comments on commit 1a5b735

Please sign in to comment.