Subversion Repositories NaviCtrl

Rev

Rev 134 | Rev 146 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 134 Rev 136
Line 55... Line 55...
55
// +  POSSIBILITY OF SUCH DAMAGE.
55
// +  POSSIBILITY OF SUCH DAMAGE.
56
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
56
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
57
#include "91x_lib.h"
57
#include "91x_lib.h"
58
#include "timer1.h"
58
#include "timer1.h"
59
#include "uart1.h"
59
#include "uart1.h"
-
 
60
#include "config.h"
Line 60... Line 61...
60
 
61
 
61
u32 CountMilliseconds;
62
u32 CountMilliseconds;
Line 62... Line 63...
62
DateTime_t SystemTime;
63
DateTime_t SystemTime;
Line 98... Line 99...
98
        TIM_Init (TIM1, &TIM_InitStructure);
99
        TIM_Init (TIM1, &TIM_InitStructure);
Line 99... Line 100...
99
 
100
 
100
        TIM_ITConfig(TIM1, TIM_IT_OC1, ENABLE);
101
        TIM_ITConfig(TIM1, TIM_IT_OC1, ENABLE);
Line 101... Line 102...
101
        TIM_CounterCmd(TIM1, TIM_START);
102
        TIM_CounterCmd(TIM1, TIM_START);
102
 
103
 
Line 103... Line 104...
103
        VIC_Config(TIM1_ITLine, VIC_IRQ, 7);
104
        VIC_Config(TIM1_ITLine, VIC_IRQ, PRIORITY_TIMER1);
104
        VIC_ITCmd(TIM1_ITLine, ENABLE);
105
        VIC_ITCmd(TIM1_ITLine, ENABLE);
105
 
106