ArteryTek / AT32F421_Firmware_Library

The AT32F421 Firmware Library is a firmware package which contains the drivers for all of the peripherals for AT32F421.
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

ADC header file has bits that are not documented #2

Closed DualTachyon closed 1 year ago

DualTachyon commented 1 year ago

If you check in the header file below ADC register ctrl2 has 2 bits at [24] and [25],

https://github.com/ArteryTek/AT32F421_Firmware_Library/blob/master/libraries/drivers/inc/at32f421_adc.h#L264

However, the Reference Manual describes those bits as "reserved".

Reference Manual: www.arterychip.com/download/RM/RM_AT32F421_EN_V2.03.pdf

The reference manual specifies that OCTESEL is 3 bits long, so it is unclear what a 4th bit (octesel_h) would do.

ArteryTek commented 1 year ago

The reference manual is correct,BSP will fixed at next release version. Thanks for your feedback.