My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rtc176x.h 448B

12345678910111213141516171819202122
  1. #ifndef _RTC_DEFINED
  2. #define _RTC_DEFINE
  3. #include "integer.h"
  4. #include "LPC176x.h"
  5. typedef struct {
  6. WORD year; /* 1..4095 */
  7. BYTE month; /* 1..12 */
  8. BYTE mday; /* 1.. 31 */
  9. BYTE wday; /* 1..7 */
  10. BYTE hour; /* 0..23 */
  11. BYTE min; /* 0..59 */
  12. BYTE sec; /* 0..59 */
  13. } RTC;
  14. int rtc_initialize (void); /* Initialize RTC */
  15. int rtc_gettime (RTC*); /* Get time */
  16. int rtc_settime (const RTC*); /* Set time */
  17. DWORD get_fattime (void);
  18. #endif