From f3c29d57d4dca9708f8b3c0bb312fd7102c68b6a Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Wed, 13 Jul 2022 12:11:47 -0400 Subject: [PATCH] cast csr locations to supress errors --- firmware/generate_csr_locations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/generate_csr_locations.py b/firmware/generate_csr_locations.py index f7585f3..c2dc2a9 100644 --- a/firmware/generate_csr_locations.py +++ b/firmware/generate_csr_locations.py @@ -20,7 +20,7 @@ for conv in iter(reg_names): for reg in reg_names[conv]: print(f"const csr_t {conv}_{reg}[{max_num}] =", "{") for i in range(0,max_num): - print("\t", get_reg(j, conv, i, reg), end='') + print("\t (csr_t)", get_reg(j, conv, i, reg), end='') if i != max_num - 1: print(",") print("\n};")