#BL602's Internal Temperature Sensor is connected to the Analog-to-Digital Converter ... Which is NOT yet supported on #NuttX OS ... Let's port the ADC HAL from BL602 MCU SDK
https://nuttx.apache.org/docs/latest/platforms/risc-v/bl602/index.html
Some parts of #BL602 GLB HAL won't build nicely on #NuttX OS ... So we disable them out when compiling our ADC HAL
https://github.com/lupyuen/bl602_adc/blob/main/bl602_glb.h#L637-L667
To read #BL602's Internal Temperature on #NuttX OS, we call the ADC HAL like so
https://github.com/lupyuen/bl602_adc_test/blob/main/bl602_adc_test_main.c#L49-L111
We copied 3 C Source Files from #BL602 MCU SDK to #NuttX OS ... Plus a bunch of Header Files ... To make BL602 ADC work on NuttX
https://github.com/lupyuen/bl602_adc