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.
Diff: Maple.h
- Revision:
- 0:0be38b583cf7
- Child:
- 1:aefa1992ce0f
diff -r 000000000000 -r 0be38b583cf7 Maple.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Maple.h Sun Sep 25 11:37:21 2011 +0000 @@ -0,0 +1,27 @@ +// MAPLE board[MARM01-BASE] +// +#ifndef MAPLE_H_ +#define MAPLE_H_ + +//prototypes +char char_to_hex1(int c); +void char_to_hex(int c, char h[]); +int bcd_to_int(char b); +char int_to_bcd(int i); +char increment_bcd(char bcd_data, char bcd_min, char bcd_max); +char decrement_bcd(char bcd_data, char bcd_min, char bcd_max); +void int_to_weekday2(int weekday, char s[]); +void int_to_weekday3(int weekday, char s[]); +int bcd_to_year(char century, char bcd_year); +bool leap_year(int year); +int days_in_month(int year, int month); +char bcd_days_in_month(char century, char bcd_year, char bcd_month); +int bcd_date_to_weekday(char century, char bcd_year, char bcd_month, char bcd_day); + +void RTC_to_LCD_raw(); +void LCD_display_all_char_shift(); +static void LCD_display_32char_shift(char base); +void LCD_display_all_char(); +static void LCD_display_32char(char base); + +#endif