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@3:eec13a411e94, 2011-10-30 (annotated)
- Committer:
- uehara00
- Date:
- Sun Oct 30 21:20:23 2011 +0000
- Revision:
- 3:eec13a411e94
- Parent:
- 1:aefa1992ce0f
OLED(MARY-OB) drivers and demonstrations are added.
Who changed what in which revision?
| User | Revision | Line number | New 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 | 0:0be38b583cf7 | 28 | #endif |