Mohammad Mohammad
/
hw2
UCLA-EEM202A 2nd assignment. time synchronization
Diff: main.cpp
- Revision:
- 1:3f76ed8cd999
- Parent:
- 0:4d75b473d9c9
- Child:
- 2:2661fa86e1d3
--- a/main.cpp Thu Mar 06 07:52:19 2014 +0000 +++ b/main.cpp Thu Mar 06 08:23:41 2014 +0000 @@ -25,6 +25,8 @@ } void initialize_ticker(){ + //enable clock + SIM->SCGC6 |= SIM_SCGC6_PIT_MASK; //set to zero to enable PIT PIT->MCR = 0x00; //clear interrup before enabling it