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
00001 /*********************************** 00002 name: const.h Version: 0.3 00003 author: PE HTL BULME 00004 email: pe@bulme.at 00005 description: 00006 Named constants definitions for registers 00007 PCF8563 RTC on HIMBED M0 - LPC11U24 00008 ***********************************/ 00009 00010 #ifndef CONST_H 00011 #define CONST_H 00012 00013 // Address of RTC 00014 const uint8_t PCF8563_ADR_WR = 0xA2; 00015 const uint8_t PCF8563_ADR_RD = 0xA3; 00016 // Control and status 00017 const uint8_t CONTROL1 = 0x00; 00018 const uint8_t CONTROL2 = 0x01; 00019 // Time and date 00020 const uint8_t SECONDS = 0x02; 00021 const uint8_t MINUTES = 0x03; 00022 const uint8_t HOURS = 0x04; 00023 const uint8_t DAYS = 0x05; 00024 const uint8_t WEEKDAYS = 0x06; 00025 const uint8_t MONTHS = 0x07; 00026 const uint8_t YEARS = 0x08; 00027 // Alarm 00028 const uint8_t MINUTE_ALARM = 0x09; 00029 const uint8_t HOUR_ALARM = 0x0A; 00030 const uint8_t DAY_ALARM = 0x0B; 00031 const uint8_t WEEKDAY_ALARM = 0x0C; 00032 // Clock and timer 00033 const uint8_t CLOCKOUT_FREQ = 0x0D; 00034 const uint8_t TIMER_CINTROL = 0x0E; 00035 00036 // Alternativ addressing: base + next address 00037 //const uint8_t PCF8563_ADR = 0xA2; 00038 //const uint8_t _READ = 0x01; 00039 00040 #endif
Generated on Tue Jul 12 2022 18:57:21 by
