#pragma vector=WDT_VECTOR
__interrupt void watchdog_timer(void)
{
TA0CCTL1 ^= CCIS0; // Create SW capture of CCR1
// IE2 |= UCA0TXIE;
__bic_SR_register_on_exit(LPM3_bits); // Exit LPM3 on reti
}
#pragma vector = TIMER0_A0_VECTOR
__interrupt void Timer0_A0(void) {
//timer_count++;
//if (timer_count > 32) {
//timer_count = 0;
start_conversion();
//IE2 |= UCA0TXIE;
}
#pragma vector = USCIAB0TX_VECTOR
__interrupt void USCI0TX_ISR(void){
P1OUT |= 0x01;
unsigned int i = 0; // iterator pointers
sprintf(buffer,"count :" "%d, %d \n\r", (unsigned int)(meas_cnt), (long)(IntDegC/10));
while(buffer[i] != '\0'){
while (!(IFG2 & UCA0TXIFG)); // USCI_A0 TX buffer ready?
UCA0TXBUF = buffer[i++];
__delay_cycles(10);
}
buffer[i++] ^=0;
P1OUT &= ~0x01;
IE2 &= ~UCA0TXIFG;
}
I want to use this source in ENERGIA
But, I got a error message like this.
I'm very confused because of wiring.c, usci_isr_handler.c in error message and look in to ENERGIA REFERENCE.
Error message is like this
core.a(wiring.c.o): In function `watchdog_isr':
C:\Users\Administrator\Desktop\energia-0101E0009\hardware\msp430\cores\msp430/wiring.c:219: multiple definition of `__isr_10'
temperature_wireless_cap_3.cpp.o:C:\Users\ADMINI~1\AppData\Local\Temp\build2604091371021042227.tmp/temperature_wireless_cap_3.cpp:317: first defined here
core.a(usci_isr_handler.c.o): In function `USCIAB0TX_ISR':
C:\Users\Administrator\Desktop\energia-0101E0009\hardware\msp430\cores\msp430/usci_isr_handler.c:36: multiple definition of `__isr_6'
temperature_wireless_cap_3.cpp.o:temperature_wireless_cap_3.cpp:(.text._Z11USCI0TX_ISRv+0x0): first defined here
collect2: ld returned 1 exit status
I'm wonder that in wiring.c this function same works in CCS?
wiring.c
__attribute__((interrupt(WDT_VECTOR)))
void watchdog_isr (void)
{
wdtCounter++;
/* Exit from LMP3 on reti (this includes LMP0) */
__bic_status_register_on_exit(LPM3_bits);
}
Project CCS
#pragma vector=WDT_VECTOR
__interrupt void watchdog_timer(void)
{
TA0CCTL1 ^= CCIS0; // Create SW capture of CCR1
// IE2 |= UCA0TXIE;
__bic_SR_register_on_exit(LPM3_bits); // Exit LPM3 on reti
}
Is this multiple definition?
If it is right then how can i modify this source?
And How can I solve another problem in error message?