diff options
author | Sam Nelson <sam.nelson@ti.com> | 2017-01-05 17:18:51 -0500 |
---|---|---|
committer | Angela Stegmaier <angelabaker@ti.com> | 2017-01-11 10:05:00 -0600 |
commit | 55d78d9bf7b26bb6562288f063aba1b073d9ad46 (patch) | |
tree | d3d8581b3d85b5d84c7265ed5958bc7c0c7d4840 | |
parent | 8ea70c400a70535b968537df4dbf0c23c5057d73 (diff) | |
download | ipc-55d78d9bf7b26bb6562288f063aba1b073d9ad46.tar.gz |
watchdog: enable __FAR__ for static variable
This allows freedom in memory placement of data memory sections.
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rw-r--r-- | packages/ti/deh/Watchdog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/ti/deh/Watchdog.c b/packages/ti/deh/Watchdog.c index 10bfedb..7407513 100644 --- a/packages/ti/deh/Watchdog.c +++ b/packages/ti/deh/Watchdog.c @@ -35,7 +35,7 @@ * ======== Watchdog.c ======== * */ - +#include <xdc/std.h> #include <xdc/runtime/Assert.h> #include <xdc/runtime/System.h> #include <xdc/runtime/Error.h> @@ -162,7 +162,7 @@ Void Watchdog_init( Void (*timerFxn)(Void) ) Types_FreqHz tFreq; volatile Watchdog_TimerRegs *timer; Int i; - static Bool first = TRUE; + static __FAR__ Bool first = TRUE; tHandle = Timer_Object_get(NULL, 0); Timer_getFreq(tHandle, &tFreq); /* get timer frequency */ |