mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-07 13:28:48 +00:00
[fix][adc] fix adc device channel table for ch6 and ch7
This commit is contained in:
parent
2c6382a4e1
commit
98043ff151
2 changed files with 4 additions and 7 deletions
|
@ -121,8 +121,8 @@ uint8_t adc_check_channel_status(uint8_t *pos_list, uint8_t *neg_list, uint16_t
|
|||
GPIO_PIN_11, /* CH3 IO */
|
||||
GPIO_PIN_12, /* CH4 IO */
|
||||
GPIO_PIN_14, /* CH5 IO */
|
||||
0xff, /* CH6 IO */
|
||||
0xff, /* CH7 IO */
|
||||
GPIO_PIN_7, /* CH6 IO */
|
||||
GPIO_PIN_9, /* CH7 IO */
|
||||
GPIO_PIN_18, /* CH8 IO */
|
||||
GPIO_PIN_19, /* CH9 IO */
|
||||
GPIO_PIN_20, /* CH10 IO */
|
||||
|
@ -135,10 +135,6 @@ uint8_t adc_check_channel_status(uint8_t *pos_list, uint8_t *neg_list, uint16_t
|
|||
continue;
|
||||
}
|
||||
|
||||
if (channel_io_reference_table[pos_list[i]] == 0xff) {
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
if (GLB_GPIO_Get_Fun(channel_io_reference_table[pos_list[i]]) != GPIO_FUN_ANALOG) {
|
||||
return ERROR;
|
||||
}
|
||||
|
|
|
@ -622,6 +622,7 @@ BL_Mask_Type ADC_IntGetMask(ADC_INT_Type intType)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/****************************************************************************/ /**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue