Yoshiyuki Uehara / Mbed 2 deprecated Maple

Dependencies:   mbed

Committer:
uehara00
Date:
Mon Oct 10 11:45:51 2011 +0000
Revision:
1:aefa1992ce0f
Parent:
0:0be38b583cf7
Child:
3:eec13a411e94
Date/time display to LCD, adjust by buttons, alarm, timer, clock-output control. Just an example of RTC funtions, not for a practical use.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
uehara00 1:aefa1992ce0f 1 //copyright 2011 Uehara Yoshiyuki
uehara00 1:aefa1992ce0f 2 //====================================================================
uehara00 1:aefa1992ce0f 3 //The author provide the programs without any guarantees or warranty.
uehara00 1:aefa1992ce0f 4 //The author is not responsible for any damage or losses of any kind
uehara00 1:aefa1992ce0f 5 //caused by using or misusing of the programs.
uehara00 1:aefa1992ce0f 6 //The author is under no obligation to provide support, service,
uehara00 1:aefa1992ce0f 7 //corrections, or upgrades to the programs.
uehara00 1:aefa1992ce0f 8 //====================================================================
uehara00 0:0be38b583cf7 9 // MAPLE board[MARM01-BASE]
uehara00 1:aefa1992ce0f 10 // common functions
uehara00 0:0be38b583cf7 11 #ifndef MAPLE_H_
uehara00 0:0be38b583cf7 12 #define MAPLE_H_
uehara00 0:0be38b583cf7 13
uehara00 0:0be38b583cf7 14 //prototypes
uehara00 1:aefa1992ce0f 15 char* copy_string(char destination_string[], int destination_position, int copy_length, const char source_string[]);
uehara00 1:aefa1992ce0f 16 char int_to_hex1(int i);
uehara00 1:aefa1992ce0f 17 char* int_to_hex2(int i, char h[]);
uehara00 0:0be38b583cf7 18 int bcd_to_int(char b);
uehara00 0:0be38b583cf7 19 char int_to_bcd(int i);
uehara00 1:aefa1992ce0f 20 char xxcrement_bcd(int flag, char bcd_data, char bcd_min, char bcd_max);
uehara00 1:aefa1992ce0f 21 const char* weekday_to_string(int w, const char* s);
uehara00 1:aefa1992ce0f 22 int bcd_to_year(char bcd_century, char bcd_year);
uehara00 0:0be38b583cf7 23 bool leap_year(int year);
uehara00 0:0be38b583cf7 24 int days_in_month(int year, int month);
uehara00 1:aefa1992ce0f 25 char bcd_days_in_month(char bcd_century, char bcd_year, char bcd_month);
uehara00 1:aefa1992ce0f 26 int bcd_date_to_weekday(char bcd_century, char bcd_year, char bcd_month, char bcd_day);
uehara00 0:0be38b583cf7 27
uehara00 1:aefa1992ce0f 28 //prototypes for test
uehara00 0:0be38b583cf7 29 void RTC_to_LCD_raw();
uehara00 0:0be38b583cf7 30 void LCD_display_all_char_shift();
uehara00 0:0be38b583cf7 31 static void LCD_display_32char_shift(char base);
uehara00 1:aefa1992ce0f 32 void LCD_display_all_char();
uehara00 0:0be38b583cf7 33 static void LCD_display_32char(char base);
uehara00 0:0be38b583cf7 34
uehara00 0:0be38b583cf7 35 #endif