git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-lib/examples/megaduck/laptop_rtc/src/megaduck_rtc.h

      1 #include <gbdk/platform.h>
      2 #include <stdint.h>
      3 #include <stdbool.h>
      4 
      5 #ifndef _MEGADUCK_RTC_H
      6 #define _MEGADUCK_RTC_H
      7 
      8 
      9 // RTC data
     10 typedef struct duck_rtc_data_t {
     11     uint16_t year;
     12     uint8_t  mon;
     13     uint8_t  day;
     14     uint8_t  weekday;
     15 
     16     uint8_t  ampm;
     17     uint8_t  hour;
     18     uint8_t  min;
     19     uint8_t  sec;
     20 } duck_rtc_data_t;
     21 
     22 
     23 bool duck_io_set_rtc(duck_rtc_data_t * p_rtc);
     24 bool duck_io_get_rtc(duck_rtc_data_t * p_rtc);
     25 
     26 #endif // _MEGADUCK_RTC_H

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.