Hi Folks,
I'm trying to get the eCAP functionality to work in my modified Lab10a code. Since there's no Motorware example I have to look at the Controlsuite
and the TI eCAP pdf (SPRUFZ8A May 2009) for help. I've added the below code to my main.c code. The code compiles but the it gives me 2 warnings:
"#552-D variable "capPeriod1" was set but never used". I also can't set a breakpoint here. When I try I get the following message:
"No code associated with line #10".
|
1
2
3
4
5
6
7
8
9
10
11
12
|
uint32_t DutyOnTime1 = 0; uint32_t DutyOffTime1 = 0; uint32_t DutyOnTime2 = 0; uint32_t DutyOffTime2 = 0; uint32_t capPeriod1 = 0; uint32_t capPeriod2 = 0; DutyOnTime1 = CAP_getCap2(halHandle->capHandle); DutyOffTime1 = CAP_getCap3(halHandle->capHandle); DutyOnTime2 = CAP_getCap4(halHandle->capHandle); DutyOffTime2 = CAP_getCap1(halHandle->capHandle); capPeriod1 = DutyOnTime1 + DutyOffTime1; capPeriod2 = DutyOnTime2 + DutyOffTime2; |
Any suggestions on what I need to change?
Thanks again,
Richard