V1.9
This commit is contained in:
@@ -166,7 +166,7 @@ void DMA_Tx_Init(DMA_Channel_TypeDef *DMA_CHx, u32 ppadr, u32 memadr, u16 bufsiz
|
||||
*/
|
||||
u16 Get_ConversionVal1(s16 val)
|
||||
{
|
||||
if((val + Calibrattion_Val1) < 0)
|
||||
if((val + Calibrattion_Val1) < 0|| val==0)
|
||||
return 0;
|
||||
if((Calibrattion_Val1 + val) > 4095||val==4095)
|
||||
return 4095;
|
||||
|
||||
@@ -205,6 +205,7 @@ void SystemCoreClockUpdate (void)
|
||||
*/
|
||||
static void SetSysClock(void)
|
||||
{
|
||||
//GPIO_IPD_Unused();
|
||||
#ifdef SYSCLK_FREQ_HSE
|
||||
SetSysClockToHSE();
|
||||
#elif defined SYSCLK_FREQ_48MHz_HSE
|
||||
|
||||
Reference in New Issue
Block a user