Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RTC.h
- Committer:
- SimonLie
- Date:
- 2017-03-28
- Revision:
- 0:34f429428d45
File content as of revision 0:34f429428d45:
#ifndef _RTC_H_
#define _RTC_H_
#include "mbed.h"
/* Defines */
#define nRTCADRESS_W 0xD0
#define nRTCADRESS_R 0xD1
/* Funktionen */
void vfStopRTCOszi();
void vfStartAndInitRTC(unsigned char bSeconds,
unsigned char bMinutes,
unsigned char bHours,
unsigned char bDay,
unsigned char bDate,
unsigned char bMonth,
unsigned char bYear,
unsigned char bControl);
void vfSetTime(unsigned char bSeconds,
unsigned char bMinutes,
unsigned char bHours);
void vfGetTime(unsigned char *bSeconds,
unsigned char *bMinutes,
unsigned char *bHours);
unsigned char bfBcdToDez(unsigned char bBcdValue);
char cfDezToBcd(unsigned char bDezValue);
#endif