From d82837cb93b8675a6e589548e157f31e41aaa039 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 20 Nov 2020 09:24:04 -0700 Subject: Added NVIC definition --- 02-usart/test_harness/fake_env.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '02-usart/test_harness') diff --git a/02-usart/test_harness/fake_env.c b/02-usart/test_harness/fake_env.c index f9c2a4d..d1dba35 100644 --- a/02-usart/test_harness/fake_env.c +++ b/02-usart/test_harness/fake_env.c @@ -23,6 +23,12 @@ DEFINE_MEMORY_SEGMENT(ahb2, 0x48000000, 0x50060C00) /* System Control Block */ DEFINE_MEMORY_SEGMENT(scb, 0xE000E008, 0xE000EF04) +/* Nested Vector Interrupt Controller (NVIC) */ +/* Note that this memory space acutally overlaps with the SCB, but + * they are functionally distinct entitites and such are modeled as + * separate structures in memeory. */ +DEFINE_MEMORY_SEGMENT(nvic, 0xE000E004, 0xE000E4F0) + /* SRAM */ DEFINE_MEMORY_SEGMENT(sram1, 0x20000000, 0x2000C000) DEFINE_MEMORY_SEGMENT(sram2, 0x2000C000, 0x20018000) -- cgit