1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Getting TOD |
From: | "Johnson, Andrew N. via Tech-talk" <[email protected]> |
To: | Stefen Paul <[email protected]>, EPICS Tech Talk <[email protected]> |
Date: | Wed, 27 Nov 2019 17:20:17 +0000 |
Hi Stefen, On 11/27/19 5:08 AM, Stefen Paul via Tech-talk wrote:
You should be able to build a vxWorks image for the mv6100 with INCLUDE_RTC enabled (by default it is excluded). The API they provide is not called by EPICS since it isn't standardized, but you should be able to write code to read and write the time using it (sysRtc.c even provides a setAnsiSysTime() routine that calls clock_settime() but I'm not sure if/when it might be called). The BSP documentation says about it: You should be able to write a clock-time provider for the EPICS generalTime system if you wanted to use that as a source of time for your IOCs, but I haven't tried doing that myself. Getting at the BSP's header files isn't trivial and it looks like you might need them to use the API. Alternatively you might want write your own driver; accessing the RTC is surprisingly easy. Dirk Zimoch's post here shows how, although he's only reading the chip's battery status bit. I would also look at the code in the BSP's m48t37.c and m48t37.h files. HTH, - Andrew -- Complexity comes for free, Simplicity you have to work for. |