Skip to content

Commit

Permalink
ch375: needed for the rcbus Z180 now it has CH375 card support
Browse files Browse the repository at this point in the history
  • Loading branch information
EtchedPixels committed Jun 26, 2024
1 parent 4f38e57 commit ef50307
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Kernel/platform/platform-rcbus-z180/plt_ch375.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extern void nap20(void);
extern void ch375_rblock(uint8_t *ptr) __z88dk_fastcall;
extern void ch375_wblock(uint8_t *ptr) __z88dk_fastcall;

__sfr __at 0xBE ch375_dport;
__sfr __at 0xBF ch375_sport;

#define ch375_rdata() ch375_dport
#define ch375_rstatus() ch375_sport

#define ch375_wdata(x) do {ch375_dport = (x); } while(0)
#define ch375_wcmd(x) do {ch375_sport = (x); } while(0)

0 comments on commit ef50307

Please sign in to comment.