Part Number: CC1310
Hi team:
1.CC1310 ADC read

The chip uses the RHB (5-mm × 5-mm) Pinout package and the ADC pin is connected to DIO_10
The ADC is initialized as follows:
// Define name for ADC channel index
#define BATTERY_ADC 3
static ADC_Params params;
static ADC_Handle adcHandle;
void battery_init(void)
{
ADC_init();
ADC_Params_init(¶ms);
params.isProtected = true;
adcHandle = ADC_open(BATTERY_ADC, ¶ms);
}
uint32_t battery_capacity(void)
{
ADC_convert(adcHandle, &result);
MicroVolts = ADC_convertToMicroVolts(adcHandle, result);
return MicroVolts ;
}
Reading from the test ADC is incorrect. Changing the battery_ADC to 2 can be read correctly. From the table, DIO_7~DIO_14 have ADC functions.
The pin configuration for the ADC on CC1310_LAUNCHXL.h has been modified as follows:
/* Analog capable DIOs */
#define CC1310_LAUNCHXL_DIO23_ANALOG IOID_7
#define CC1310_LAUNCHXL_DIO24_ANALOG IOID_8
#define CC1310_LAUNCHXL_DIO25_ANALOG IOID_9
#define CC1310_LAUNCHXL_DIO26_ANALOG IOID_10
#define CC1310_LAUNCHXL_DIO27_ANALOG IOID_11
#define CC1310_LAUNCHXL_DIO28_ANALOG IOID_12
#define CC1310_LAUNCHXL_DIO29_ANALOG IOID_13
#define CC1310_LAUNCHXL_DIO30_ANALOG IOID_14
My question was:
(1)changing the macro definition battery_ADC to 2 ADC seems correct, from the macro definition battery_ADC to 2 in the manual reading the ADC that should be the DIO_9 pin is correct! Or do I understand it incorrectly?
(2)Changed macro definition battery_ADC to 3 ADC value read error, but incorrect value.
2.I created three threads based on official routines, one of which called Mailbox_pend(mbxHandle,&msg, BIOS_forever; blocked the other two processes
3、Range of the sleep function?
Best regards
Alex