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.
Maple.h@0:0be38b583cf7, 2011-09-25 (annotated)
- Committer:
- uehara00
- Date:
- Sun Sep 25 11:37:21 2011 +0000
- Revision:
- 0:0be38b583cf7
- Child:
- 1:aefa1992ce0f
Preliminary. Alarm functions are not yet implimented.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| uehara00 | 0:0be38b583cf7 | 1 | // MAPLE board[MARM01-BASE] |
| uehara00 | 0:0be38b583cf7 | 2 | // |
| uehara00 | 0:0be38b583cf7 | 3 | #ifndef MAPLE_H_ |
| uehara00 | 0:0be38b583cf7 | 4 | #define MAPLE_H_ |
| uehara00 | 0:0be38b583cf7 | 5 | |
| uehara00 | 0:0be38b583cf7 | 6 | //prototypes |
| uehara00 | 0:0be38b583cf7 | 7 | char char_to_hex1(int c); |
| uehara00 | 0:0be38b583cf7 | 8 | void char_to_hex(int c, char h[]); |
| uehara00 | 0:0be38b583cf7 | 9 | int bcd_to_int(char b); |
| uehara00 | 0:0be38b583cf7 | 10 | char int_to_bcd(int i); |
| uehara00 | 0:0be38b583cf7 | 11 | char increment_bcd(char bcd_data, char bcd_min, char bcd_max); |
| uehara00 | 0:0be38b583cf7 | 12 | char decrement_bcd(char bcd_data, char bcd_min, char bcd_max); |
| uehara00 | 0:0be38b583cf7 | 13 | void int_to_weekday2(int weekday, char s[]); |
| uehara00 | 0:0be38b583cf7 | 14 | void int_to_weekday3(int weekday, char s[]); |
| uehara00 | 0:0be38b583cf7 | 15 | int bcd_to_year(char century, char bcd_year); |
| uehara00 | 0:0be38b583cf7 | 16 | bool leap_year(int year); |
| uehara00 | 0:0be38b583cf7 | 17 | int days_in_month(int year, int month); |
| uehara00 | 0:0be38b583cf7 | 18 | char bcd_days_in_month(char century, char bcd_year, char bcd_month); |
| uehara00 | 0:0be38b583cf7 | 19 | int bcd_date_to_weekday(char century, char bcd_year, char bcd_month, char bcd_day); |
| uehara00 | 0:0be38b583cf7 | 20 | |
| uehara00 | 0:0be38b583cf7 | 21 | void RTC_to_LCD_raw(); |
| uehara00 | 0:0be38b583cf7 | 22 | void LCD_display_all_char_shift(); |
| uehara00 | 0:0be38b583cf7 | 23 | static void LCD_display_32char_shift(char base); |
| uehara00 | 0:0be38b583cf7 | 24 | void LCD_display_all_char(); |
| uehara00 | 0:0be38b583cf7 | 25 | static void LCD_display_32char(char base); |
| uehara00 | 0:0be38b583cf7 | 26 | |
| uehara00 | 0:0be38b583cf7 | 27 | #endif |