![](/media/cache/profiles/74961657ae02e93fc17be9d9fc864620.50x50_q85.jpg)
main.h
- Committer:
- hugozijlmans
- Date:
- 2010-12-02
- Revision:
- 1:2c52307d223f
- Child:
- 2:f034e862af1f
File content as of revision 1:2c52307d223f:
#ifndef __main_h #define __main_h // BSP defines #define SYSCLK 96000000 #define EXTCLK 12000000 #define PLLCLK 288000000 #define PLLMULT (PLLCLK/2/EXTCLK)-1 #define TIMER0_FREQ 2 #define TIMER0_DIV (SYSCLK/TIMER0_FREQ)-1 #define RIT_FREQ 2 #define RIT_DIV (SYSCLK/RIT_FREQ)-1 #define LED_MASK 0x00B40000 #define LED1 0x00040000 #define LED2 0x00100000 #define LED3 0x00200000 #define LED4 0x00800000 typedef union { struct { unsigned Timer0_int:1; unsigned RIT_int:1; }; unsigned char All_Flags; } Tinterrupt_flags; extern Tinterrupt_flags i_flags; #endif