Other Parts Discussed in Thread: ENERGIA
Hi,
We are designing a sensor box which contains smoke detector with TPS8802.
We got TPS8802_MSP430_firmware example code and trying to convert it according to the our host controller. But we got below errors, there are more that I didn't copy.
In the "DualRaySmokeAFE_HAL_Config_FR235x_TPS880x_Private.h" file, it is defined as shown below in red line, but TB0CCTL0, CCIE etc. identifier definitions aren't placed in the project folder. Probably these are related to MSP430 MCU timer registers. But we don't know what these parts do, what is the purpose of these commands, so we don't know how we can convert it according to the our host platform. We need your support at these point.
In this example project that we have, we think there are detailed scenarios as timers, alerts and etc. We basically need just calculating CO level and smoke detection. So I will appreciate if you can share an example code just contains these parts basically.
Thanks.
BR
Burak
#define DUALRAYSMOKEAFE_HAL_TIMING_GPTIMER_COMPAREINIT(x) \
{TB0CCTL0 = CCIE; TB0CCR0 = x;}
compiling DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c...
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\tps880x_msp430_i2c/tps880x_msp430_i2c.h(53): warning: #1295-D: Deprecated declaration tps880x_msp430_i2c_Reset - give arg types
extern int8_t tps880x_msp430_i2c_Reset();
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(323): error: #20: identifier "TB0CCTL0" is undefined
DUALRAYSMOKEAFE_HAL_TIMING_GPTIMER_COMPAREINIT(delay_cycles); // Initialize timer in capture mode
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(323): error: #20: identifier "CCIE" is undefined
DUALRAYSMOKEAFE_HAL_TIMING_GPTIMER_COMPAREINIT(delay_cycles); // Initialize timer in capture mode
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(323): error: #20: identifier "TB0CCR0" is undefined
DUALRAYSMOKEAFE_HAL_TIMING_GPTIMER_COMPAREINIT(delay_cycles); // Initialize timer in capture mode
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(324): error: #20: identifier "TB0CTL" is undefined
DUALRAYSMOKEAFE_HAL_TIMING_GPTIMER_LPCOMPARESTART(); // Start timer
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(324): error: #20: identifier "TBSSEL__ACLK" is undefined
DUALRAYSMOKEAFE_HAL_TIMING_GPTIMER_LPCOMPARESTART(); // Start timer
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(324): error: #20: identifier "MC__UP" is undefined
DUALRAYSMOKEAFE_HAL_TIMING_GPTIMER_LPCOMPARESTART(); // Start timer
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(324): error: #20: identifier "TBCLR" is undefined
DUALRAYSMOKEAFE_HAL_TIMING_GPTIMER_LPCOMPARESTART(); // Start timer
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(329): warning: #223-D: function "__bis_SR_register" declared implicitly
__bis_SR_register(LPM3_bits + GIE);
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(329): error: #20: identifier "LPM3_bits" is undefined
__bis_SR_register(LPM3_bits + GIE);
..\TPS8802\Src\DualRaySmokeAFE_HAL\MSP430FR235x_TPS880x\DualRaySmokeAFE_HAL_Timing_FR235x_TPS880x.c(329): error: #20: identifier "GIE" is undefined
__bis_SR_register(LPM3_bits + GIE);