소스 검색

firmware/timer: move constants to header files

ikari 12 년 전
부모
커밋
d88fbb6124
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      src/timer.c
  2. 4 0
      src/timer.h

+ 1 - 5
src/timer.c

@@ -1,6 +1,7 @@
 /* ___INGO___ */
 
 #include <arm/NXP/LPC17xx/LPC17xx.h>
+#include "power.h"
 #include "bits.h"
 #include "config.h"
 #include "timer.h"
@@ -9,11 +10,6 @@
 #include "sdnative.h"
 #include "snes.h"
 
-/* bit definitions */
-#define RITINT 0
-#define RITEN  3
-
-#define PCRIT 16
 
 extern volatile int sd_changed;
 extern volatile int reset_changed;

+ 4 - 0
src/timer.h

@@ -8,6 +8,10 @@ typedef unsigned int tick_t;
 extern volatile tick_t ticks;
 #define HZ 100
 
+/* bit definitions */
+#define RITINT 0
+#define RITEN  3
+
 /**
  * getticks - return the current system tick count
  *