-
stm32cubemx中freertosV10.0.1与cmsis_v2配合是否有问题
在cmsis_os2.c中有:#ifdefined(SysTick)/*FreeRTOSticktimerinterrupthandlerprototype*/externvoidxPortSysTickHandler(void);/*SysTickhandlerimplementationthatalsoclearsoverflowflag.*/voidSysTick_Handler(void){/*Clearoverflowflag*/SysTick->CTRL;/*Calltickhandler*/xPortSysTickHandler();}#endif/*SysTick*/在FreeRTOSConfig.h有#definexPortSysTickHandlerSysTick_Handler在port.cvoidxPortSysTickHandler(void){/*TheSysTickrunsatthelowestinterruptpriority,sowhenthisinterruptexecutesallinterruptsmustbeunmasked.Thereisthereforenoneedtosaveandthenrestoretheinterruptmaskvalueasitsvalueisalreadyknown.*/portDISABLE_INTERRUPTS();{/*IncrementtheRTOStick.*/if(xTaskIncrementTick()!=pdFALSE){/*Acontextswitchisrequired.ContextswitchingisperformedinthePendSVinterrupt.PendthePendSVinterrupt.*/portNVIC_INT_CTRL_REG=portNVIC_PENDSVSET_BIT;}}portENABLE_INTERRUPTS();}
2021-06-03 0 -
stm32f303cct6中Vbat内部两个电阻是50k,有范围值吗
Table80.VBATmonitoringcharacteristicsSymbolParameterMinTypMaxUnitRResistorbridgeforVBAT-50-KΩQRatioonVBATmeasurement-2-Er(1)ErroronQ-1-+1%TS_vbat(1)(2)ADCsamplingtimewhenreadingtheVBAT1mVaccuracy2.2--µs1.Guaranteedbydesign.2.Shortestsamplingtimecanbedeterminedintheapplicationbymultipleiterations.
2021-03-30 1