简单的修改,64000后面先添加几个0测试就行:/* Fixed timeout value for ADC calibration. */
/* Values defined to be higher than worst cases: low clock frequency, */
/* maximum prescalers. */
/* Ex of profile low frequency : f_ADC at 0.35 MHz (minimum value */
/* according to Data sheet), calibration_time MAX = 112 / f_ADC */
/* 112 / 350,000 = 0.32 ms */
/* At maximum CPU speed (200 MHz), this means */
/* 0.8 ms * 200 MHz = 64000 CPU cycles */
#define ADC_CALIBRATION_TIMEOUT ((uint32_t) 64000) /*!< ADC calibration time-out value */ |