Browse Source

move rtc to header

SBird1337 6 years ago
parent
commit
9f7fa2f999
1 changed files with 1 additions and 10 deletions
  1. 1
    10
      src/rtc/rtc.c

+ 1
- 10
src/rtc/rtc.c View File

1
 #include <pokeagb/pokeagb.h>
1
 #include <pokeagb/pokeagb.h>
2
+#include <rtc.h>
2
 
3
 
3
 #define HIGH 1
4
 #define HIGH 1
4
 #define LOW 0
5
 #define LOW 0
5
 #define IN 0
6
 #define IN 0
6
 #define OUT 1
7
 #define OUT 1
7
 
8
 
8
-struct RtcTimestamp {
9
-    u8 year;
10
-    u8 month;
11
-    u8 day;
12
-    u8 day_of_week;
13
-    u8 hour;
14
-    u8 minute;
15
-    u8 second;
16
-};
17
-
18
 struct RtcGpioData {
9
 struct RtcGpioData {
19
     u16 sck : 1;
10
     u16 sck : 1;
20
     u16 sio : 1;
11
     u16 sio : 1;