레거시 코드 삭제 #3

Open
opened 2 weeks ago by bless · 0 comments
bless commented 2 weeks ago
Collaborator

레거시 코드 인것 같습니다 ADC사용 안함으로 삭제 해야합니다

void ADC_ReadAndSend_UART(void)
{
    static const uint8_t ADC_CHANNELS[ADC_NUM_CH] = { 0x02,0x03,0x04,0x05};
    
    uint16_t adc_value;
    float voltage;
    int i;
    
    g_adc_len = 0;

    for (i = 0; i < ADC_NUM_CH; i++) {
        ADS = ADC_CHANNELS[i];     // 채널 선택
        R_ADC_Start();               // 변환 시작
        while (ADIF == 0U);          // 변환 완료 대기
        ADIF = 0U;

        R_ADC_Get_Result(&adc_value);
        R_ADC_Stop(); // 

        /* V 계산 */
        voltage = (adc_value / ADC_RESOLUTION) * VREF;

        g_adc_bytes[i] = voltage;
        g_adc_len++;
    }

}

관련 ADC기능이 지금 빌드 오류를 내고 있습니다

확인 부탁드립니다

레거시 코드 인것 같습니다 ADC사용 안함으로 삭제 해야합니다 ```c void ADC_ReadAndSend_UART(void) { static const uint8_t ADC_CHANNELS[ADC_NUM_CH] = { 0x02,0x03,0x04,0x05}; uint16_t adc_value; float voltage; int i; g_adc_len = 0; for (i = 0; i < ADC_NUM_CH; i++) { ADS = ADC_CHANNELS[i]; // 채널 선택 R_ADC_Start(); // 변환 시작 while (ADIF == 0U); // 변환 완료 대기 ADIF = 0U; R_ADC_Get_Result(&adc_value); R_ADC_Stop(); // /* V 계산 */ voltage = (adc_value / ADC_RESOLUTION) * VREF; g_adc_bytes[i] = voltage; g_adc_len++; } } ``` 관련 ADC기능이 지금 빌드 오류를 내고 있습니다 확인 부탁드립니다
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.