[RTduino][STM32] 优化内置ADC通道

This commit is contained in:
Meco Man
2023-04-08 04:08:50 -04:00
committed by Man, Jianting (Meco)
parent e9bbc2e349
commit 85294a8e86
16 changed files with 32 additions and 47 deletions

View File

@@ -9,7 +9,6 @@
*/
#include <Arduino.h>
#include <board.h>
#include "pins_arduino.h"
/*
@@ -35,6 +34,6 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(C,6), "pwm8", 1}, /* PWM */
{D12, GET_PIN(I,6), "pwm8", 2}, /* PWM */
{D13, GET_PIN(I,7), "pwm8", 3}, /* PWM */
{A0, RT_NULL, "adc1", 18}, /* ADC, On-Chip: internal temperature sensor, ADC_CHANNEL_TEMPSENSOR */
{A1, RT_NULL, "adc1", 17}, /* ADC, On-Chip: internal reference voltage, ADC_CHANNEL_VREFINT */
{A0, RT_NULL, "adc1", RT_ADC_INTERN_CH_VREF}, /* ADC, On-Chip: internal temperature sensor */
{A1, RT_NULL, "adc1", RT_ADC_INTERN_CH_TEMPER}, /* ADC, On-Chip: internal reference voltage */
};