From 4a54fd4018adf931fb436acba2399efc6d6d1176 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Mon, 3 Nov 2014 15:26:54 +0100 Subject: use stdint/stdbool --- source/seta.h | 70 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'source/seta.h') diff --git a/source/seta.h b/source/seta.h index d50e588..fc8f5ce 100644 --- a/source/seta.h +++ b/source/seta.h @@ -97,54 +97,54 @@ #define ST_011 0x02 #define ST_018 0x03 -uint8 S9xGetSetaDSP(uint32 Address); -void S9xSetSetaDSP(uint8 byte, uint32 Address); -uint8 S9xGetST018(uint32 Address); -void S9xSetST018(uint8 Byte, uint32 Address); +uint8_t S9xGetSetaDSP(uint32_t Address); +void S9xSetSetaDSP(uint8_t byte, uint32_t Address); +uint8_t S9xGetST018(uint32_t Address); +void S9xSetST018(uint8_t Byte, uint32_t Address); -uint8 S9xGetST010(uint32 Address); -void S9xSetST010(uint32 Address, uint8 Byte); -uint8 S9xGetST011(uint32 Address); -void S9xSetST011(uint32 Address, uint8 Byte); +uint8_t S9xGetST010(uint32_t Address); +void S9xSetST010(uint32_t Address, uint8_t Byte); +uint8_t S9xGetST011(uint32_t Address); +void S9xSetST011(uint32_t Address, uint8_t Byte); -extern void (*SetSETA)(uint32, uint8); -extern uint8(*GetSETA)(uint32); +extern void (*SetSETA)(uint32_t, uint8_t); +extern uint8_t(*GetSETA)(uint32_t); typedef struct SETA_ST010_STRUCT { - uint8 input_params[16]; - uint8 output_params[16]; - uint8 op_reg; - uint8 execute; - bool8 control_enable; + uint8_t input_params[16]; + uint8_t output_params[16]; + uint8_t op_reg; + uint8_t execute; + bool control_enable; } ST010_Regs; typedef struct SETA_ST011_STRUCT { - bool8 waiting4command; - uint8 status; - uint8 command; - uint32 in_count; - uint32 in_index; - uint32 out_count; - uint32 out_index; - uint8 parameters [512]; - uint8 output [512]; + bool waiting4command; + uint8_t status; + uint8_t command; + uint32_t in_count; + uint32_t in_index; + uint32_t out_count; + uint32_t out_index; + uint8_t parameters [512]; + uint8_t output [512]; } ST011_Regs; typedef struct SETA_ST018_STRUCT { - bool8 waiting4command; - uint8 status; - uint8 part_command; - uint8 pass; - uint32 command; - uint32 in_count; - uint32 in_index; - uint32 out_count; - uint32 out_index; - uint8 parameters [512]; - uint8 output [512]; + bool waiting4command; + uint8_t status; + uint8_t part_command; + uint8_t pass; + uint32_t command; + uint32_t in_count; + uint32_t in_index; + uint32_t out_count; + uint32_t out_index; + uint8_t parameters [512]; + uint8_t output [512]; } ST018_Regs; #endif -- cgit v1.2.3