aboutsummaryrefslogtreecommitdiff
path: root/source/dsp1.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/dsp1.h')
-rw-r--r--source/dsp1.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/source/dsp1.h b/source/dsp1.h
index 5eba950..f631cfd 100644
--- a/source/dsp1.h
+++ b/source/dsp1.h
@@ -90,38 +90,38 @@
#ifndef _DSP1_H_
#define _DSP1_H_
-extern void (*SetDSP)(uint8, uint16);
-extern uint8(*GetDSP)(uint16);
+extern void (*SetDSP)(uint8_t, uint16_t);
+extern uint8_t(*GetDSP)(uint16_t);
-void DSP1SetByte(uint8 byte, uint16 address);
-uint8 DSP1GetByte(uint16 address);
+void DSP1SetByte(uint8_t byte, uint16_t address);
+uint8_t DSP1GetByte(uint16_t address);
-void DSP2SetByte(uint8 byte, uint16 address);
-uint8 DSP2GetByte(uint16 address);
+void DSP2SetByte(uint8_t byte, uint16_t address);
+uint8_t DSP2GetByte(uint16_t address);
-void DSP3SetByte(uint8 byte, uint16 address);
-uint8 DSP3GetByte(uint16 address);
+void DSP3SetByte(uint8_t byte, uint16_t address);
+uint8_t DSP3GetByte(uint16_t address);
-void DSP4SetByte(uint8 byte, uint16 address);
-uint8 DSP4GetByte(uint16 address);
+void DSP4SetByte(uint8_t byte, uint16_t address);
+uint8_t DSP4GetByte(uint16_t address);
typedef struct
{
- bool8 waiting4command;
- bool8 first_parameter;
- uint8 command;
- uint32 in_count;
- uint32 in_index;
- uint32 out_count;
- uint32 out_index;
- uint8 parameters [512];
+ bool waiting4command;
+ bool first_parameter;
+ uint8_t command;
+ uint32_t in_count;
+ uint32_t in_index;
+ uint32_t out_count;
+ uint32_t out_index;
+ uint8_t parameters [512];
//output was 512 for DSP-2 work, updated to reflect current thinking on DSP-3
- uint8 output [512];
+ uint8_t output [512];
} SDSP1;
void S9xResetDSP1();
-uint8 S9xGetDSP(uint16 Address);
-void S9xSetDSP(uint8 Byte, uint16 Address);
+uint8_t S9xGetDSP(uint16_t Address);
+void S9xSetDSP(uint8_t Byte, uint16_t Address);
extern SDSP1 DSP1;
//extern struct SDSP1 DSP1;