From 0e59b999fa976de2d00490f552a1ff0a27d40f63 Mon Sep 17 00:00:00 2001 From: João Silva Date: Sun, 29 Jan 2017 04:55:23 +0000 Subject: Converted most types to stdint-style (fixing a few in the process). --- source/obc1.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'source/obc1.c') diff --git a/source/obc1.c b/source/obc1.c index f0afdd4..2d46238 100644 --- a/source/obc1.c +++ b/source/obc1.c @@ -6,9 +6,9 @@ static uint8_t* OBC1_RAM = NULL; -int OBC1_Address; -int OBC1_BasePtr; -int OBC1_Shift; +int32_t OBC1_Address; +int32_t OBC1_BasePtr; +int32_t OBC1_Shift; uint8_t GetOBC1(uint16_t Address) { @@ -63,8 +63,7 @@ void SetOBC1(uint8_t Byte, uint16_t Address) case 0x7ff4: { - unsigned char Temp; - + uint8_t Temp; Temp = OBC1_RAM[OBC1_BasePtr + (OBC1_Address >> 2) + 0x200]; Temp = (Temp & ~(3 << OBC1_Shift)) | ((Byte & 3) << OBC1_Shift); OBC1_RAM[OBC1_BasePtr + (OBC1_Address >> 2) + 0x200] = Temp; -- cgit v1.2.3