Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2018, 03:39:58 15:39


Login with username, password and session length


Pages: [1]
Print
Author Topic: MCP794xx RTC driver (C language)  (Read 1854 times)
0 Members and 1 Guest are viewing this topic.
microchip
Newbie
*
Offline Offline

Posts: 7

Thank You
-Given: 4
-Receive: 5


« on: August 14, 2014, 11:35:09 23:35 »

Hello all:

One of my current projects is using a MCP79412 Real Time Clock by Microchip (essentially a DS1307 with many additional features and a small EEPROM) and so I have released the first version of my driver on GitHub. I will be adding documentation as well as additional features in the near future, but for now, here is V1.

https://github.com/ve4edj/mcp794xx

Please take a look and let me know if you find it useful / have suggestions / want to help me out!

Thanks!

Posted on: August 10, 2014, 10:21:08 22:21 - Automerged

Update:

Documentation has been added.
Logged
Nicolina1988
Junior Member
**
Offline Offline

Posts: 47

Thank You
-Given: 24
-Receive: 73


« Reply #1 on: August 24, 2014, 09:00:53 09:00 »

Which CCS version was tested to work this code?   V4.xxx and/or V5.xxx
Thanks
Logged
biko4710
Newbie
*
Offline Offline

Posts: 33

Thank You
-Given: 45
-Receive: 40


« Reply #2 on: August 25, 2014, 11:22:35 11:22 »

Code:
...

#include "MCP794xx.c"

#endif

In line 108 of the .h you include the .c file, why?
Or is this a CCS thing?
Logged
microchip
Newbie
*
Offline Offline

Posts: 7

Thank You
-Given: 4
-Receive: 5


« Reply #3 on: August 30, 2014, 08:34:06 20:34 »

Code:
...

#include "MCP794xx.c"

#endif

In line 108 of the .h you include the .c file, why?
Or is this a CCS thing?
This is a CCS thing, as CCS does not offer any standard method for compiling a program with separate compilation units.

Thanks for looking over the code!

Posted on: August 31, 2014, 03:32:53 03:32 - Automerged

Which CCS version was tested to work this code?   V4.xxx and/or V5.xxx
Thanks

I have tested it on V5.xxx, although I'm not using any CCS-specific features other than I2C, so it should work on v4.xxx as well!
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC