Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2016, 02:49:24 02:49


Login with username, password and session length


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

Posts: 7

Thank You
-Given: 3
-Receive: 8


« on: August 15, 2014, 06:35:09 06: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: 41

Thank You
-Given: 17
-Receive: 68


« Reply #1 on: August 24, 2014, 04:00:53 16: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: 35
-Receive: 56


« Reply #2 on: August 25, 2014, 06:22:35 18: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: 3
-Receive: 8


« Reply #3 on: August 31, 2014, 03:34:06 03: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