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.
const.h
- Committer:
- fpucher
- Date:
- 2018-11-15
- Revision:
- 0:397b5462e6d7
File content as of revision 0:397b5462e6d7:
/***********************************
name: const.h Version: 0.3
author: PE HTL BULME
email: pe@bulme.at
description:
Named constants definitions for registers
PCF8563 RTC on HIMBED M0 - LPC11U24
***********************************/
#ifndef CONST_H
#define CONST_H
// Address of RTC
const uint8_t RTC8563_ADR_WR = 0xA2;
const uint8_t RTC8563_ADR_RD = 0xA3;
// Control and status
const uint8_t CONTROL1 = 0x00;
const uint8_t CONTROL2 = 0x01;
// Time and date
const uint8_t SECONDS = 0x02;
const uint8_t MINUTES = 0x03;
const uint8_t HOURS = 0x04;
const uint8_t DAYS = 0x05;
const uint8_t WEEKDAYS = 0x06;
const uint8_t MONTHS = 0x07;
const uint8_t YEARS = 0x08;
// Alarm
const uint8_t MINUTE_ALARM = 0x09;
const uint8_t HOUR_ALARM = 0x0A;
const uint8_t DAY_ALARM = 0x0B;
const uint8_t WEEKDAY_ALARM = 0x0C;
// Clock and timer
const uint8_t CLOCKOUT_FREQ = 0x0D;
const uint8_t TIMER_CINTROL = 0x0E;
// Alternativ addressing: base + next address
//const uint8_t RTC8563_ADR = 0xA2;
//const uint8_t _READ = 0x01;
#endif