debug code removed

This commit is contained in:
Wolfgang Hottgenroth
2016-08-31 16:54:21 +02:00
parent 1dc39fe8df
commit 1ae9e86277
2 changed files with 6 additions and 6 deletions

View File

@ -31,14 +31,14 @@ void measureInit(void *handleArg) {
void measureCollectAndProcessConversion(void *handleArg);
void measureStartConversion(void *handleArg) {
gpioSetPin(TESTPIN1, HIGH);
//gpioSetPin(TESTPIN1, HIGH);
ADC10CTL0 |= ENC | ADC10SC;
schAdd(measureCollectAndProcessConversion, NULL, 10, 0);
gpioSetPin(TESTPIN1, LOW);
//gpioSetPin(TESTPIN1, LOW);
}
void measureCollectAndProcessConversion(void *handleArg) {
gpioSetPin(TESTPIN2, HIGH);
//gpioSetPin(TESTPIN2, HIGH);
uint16_t n = 0xffff;
if ((ADC10CTL0 & ADC10IFG) != 0) {
n = ADC10MEM;
@ -53,7 +53,7 @@ void measureCollectAndProcessConversion(void *handleArg) {
uint8_t temperature = (uint8_t)t;
displaySetValue(temperature);
gpioSetPin(TESTPIN2, LOW);
//gpioSetPin(TESTPIN2, LOW);
}

View File

@ -19,13 +19,13 @@ ISR(TIMER0_A0, TA0_ISR) {
timestamp++;
schUpdate();
P1OUT ^= BIT0;
//P1OUT ^= BIT0;
}
void timeInit() {
timestamp = 0;
P1DIR |= BIT0;
//P1DIR |= BIT0;
TACCR0 = 32;
TACCTL0 = CCIE;