debug code removed
This commit is contained in:
@ -31,14 +31,14 @@ void measureInit(void *handleArg) {
|
|||||||
void measureCollectAndProcessConversion(void *handleArg);
|
void measureCollectAndProcessConversion(void *handleArg);
|
||||||
|
|
||||||
void measureStartConversion(void *handleArg) {
|
void measureStartConversion(void *handleArg) {
|
||||||
gpioSetPin(TESTPIN1, HIGH);
|
//gpioSetPin(TESTPIN1, HIGH);
|
||||||
ADC10CTL0 |= ENC | ADC10SC;
|
ADC10CTL0 |= ENC | ADC10SC;
|
||||||
schAdd(measureCollectAndProcessConversion, NULL, 10, 0);
|
schAdd(measureCollectAndProcessConversion, NULL, 10, 0);
|
||||||
gpioSetPin(TESTPIN1, LOW);
|
//gpioSetPin(TESTPIN1, LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
void measureCollectAndProcessConversion(void *handleArg) {
|
void measureCollectAndProcessConversion(void *handleArg) {
|
||||||
gpioSetPin(TESTPIN2, HIGH);
|
//gpioSetPin(TESTPIN2, HIGH);
|
||||||
uint16_t n = 0xffff;
|
uint16_t n = 0xffff;
|
||||||
if ((ADC10CTL0 & ADC10IFG) != 0) {
|
if ((ADC10CTL0 & ADC10IFG) != 0) {
|
||||||
n = ADC10MEM;
|
n = ADC10MEM;
|
||||||
@ -53,7 +53,7 @@ void measureCollectAndProcessConversion(void *handleArg) {
|
|||||||
uint8_t temperature = (uint8_t)t;
|
uint8_t temperature = (uint8_t)t;
|
||||||
|
|
||||||
displaySetValue(temperature);
|
displaySetValue(temperature);
|
||||||
gpioSetPin(TESTPIN2, LOW);
|
//gpioSetPin(TESTPIN2, LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,13 +19,13 @@ ISR(TIMER0_A0, TA0_ISR) {
|
|||||||
timestamp++;
|
timestamp++;
|
||||||
schUpdate();
|
schUpdate();
|
||||||
|
|
||||||
P1OUT ^= BIT0;
|
//P1OUT ^= BIT0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void timeInit() {
|
void timeInit() {
|
||||||
timestamp = 0;
|
timestamp = 0;
|
||||||
|
|
||||||
P1DIR |= BIT0;
|
//P1DIR |= BIT0;
|
||||||
|
|
||||||
TACCR0 = 32;
|
TACCR0 = 32;
|
||||||
TACCTL0 = CCIE;
|
TACCTL0 = CCIE;
|
||||||
|
Reference in New Issue
Block a user