Subversion Repositories Code-Repo

Rev

Rev 276 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 276 Rev 290
Line 6... Line 6...
6
#include <xc.h>
6
#include <xc.h>
7
#include <plib.h>
7
#include <plib.h>
8
#include <stdint.h>
8
#include <stdint.h>
9
 
9
 
10
// Uncomment ONE of the following:
10
// Uncomment ONE of the following:
11
//#define CEREBOT_32MX7
11
#define CEREBOT_32MX7
12
 #define CEREBOT_MX7CK
12
// #define CEREBOT_MX7CK
13
 
13
 
14
#define CPU_CLOCK_HZ    80000000UL
14
#define CPU_CLOCK_HZ    80000000UL
15
#define PERIPHERAL_CLOCK_HZ 80000000UL
15
#define PERIPHERAL_CLOCK_HZ 80000000UL
16
#define CPU_CT_HZ       (CPU_CLOCK_HZ/2UL)
16
#define CPU_CT_HZ       (CPU_CLOCK_HZ/2UL)
17
#define MS_TO_CT_TICKS  (CPU_CLOCK_HZ/2000UL)
17
#define MS_TO_CT_TICKS  (CPU_CLOCK_HZ/2000UL)