From 760907efe46d287190b6770b131152f2444da8aa Mon Sep 17 00:00:00 2001 From: ks6n19 <ks6n19@soton.ac.uk> Date: Thu, 6 Aug 2020 03:07:03 +0100 Subject: [PATCH] Update software/code/main.c --- software/code/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/software/code/main.c b/software/code/main.c index 18faee0..f59e150 100644 --- a/software/code/main.c +++ b/software/code/main.c @@ -17,8 +17,8 @@ // OUT_REGS[0] // OUT_REGS[1] // -volatile uint16_t* SW_REGS = (volatile uint16_t*) AHB_SW_BASE; -volatile uint16_t* OUT_REGS = (volatile uint16_t*) AHB_OUT_BASE; +volatile uint32_t* SW_REGS = (volatile uint32_t*) AHB_SW_BASE; +volatile uint32_t* OUT_REGS = (volatile uint32_t*) AHB_OUT_BASE; #include <stdint.h> @@ -26,22 +26,22 @@ volatile uint16_t* OUT_REGS = (volatile uint16_t*) AHB_OUT_BASE; // Functions provided to access i/o devices ////////////////////////////////////////////////////////////////// -void write_out_0(uint16_t value_0) { +void write_out_0(uint32_t value_0) { OUT_REGS[0] = value_0; } -void write_out_1(uint16_t value_1) { +void write_out_1(uint32_t value_1) { OUT_REGS[1] = value_1; } -void write_out_2(uint16_t value_2) { +void write_out_2(uint32_t value_2) { OUT_REGS[2] = value_2; } -void write_out_3(uint16_t value_3) { +void write_out_3(uint32_t value_3) { OUT_REGS[3] = value_3; -- GitLab