]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
spejblarm: Added CPU_APB_HZ to compile the can library
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 9 Apr 2008 06:48:59 +0000 (08:48 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 9 Apr 2008 06:48:59 +0000 (08:48 +0200)
board/spejblarm/defines/system_def.h

index 01e7e00ca4b51c72cd506473518b12a115ec9cb7..22e28759df3b845381dd8c3e56ec0b6434c83f34 100644 (file)
 #define CPU_REF_HZ  7372000l   /* reference clock */
 #define CPU_SYS_HZ 60000000l   /* default system */
 
+/* This two lines were added only to compile the new
+ * can_init_baudrate() function. I'm not sure whether these numbers or
+ * correct for this board. */
+#define CPU_APB_HZ (CPU_SYS_HZ/2)/* APB clock */
+#define CPU_VPB_HZ CPU_APB_HZ   /* VPB clock = APB clock, multiple definition */
+
 unsigned long cpu_ref_hz;      /* actual external XTAL reference */
 unsigned long cpu_sys_hz;      /* actual system clock frequency  */