I am building a USBPD sink with reference to the UM2552, but in the sample code on page 16, it seems that the ")" corresponding to the IF on the 9th line has disappeared, is this a typo? Also, is there a correct example somewhere?
Regarding LL_AHB1_GRP1_EnableClock, after setting bit in the function, it is read to "tmprg" and cast to void type. What is the reason for reading?__STATIC_INLINE void LL_AHB1_GRP1_EnableClock(uint32_t Periphs){ __IO uint32_t tmpreg; SET_BIT(RCC->AHB...
I am building a UCPD sink by referring to the following page. https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Getting_started_with_USB-Power_Delivery_SinkI would like to build a UCPD sink using interrupts etc. without using the RTOS. Is there any c...
I want to perform a timer interrupt using the output comparison mode.When the frequency is set to 2000Hz, ARR : 20, CCR1 : 25, I think that interrupt does not occur because ARR <CCR1, but interrupt occurs. Why do interrupts occur?
We are planning to use STM32G071 in our next project.We would like to have 9V@3A in PDO1.So we edited the PDO1 data in the usbpd_pdo_defs.h file as follows.[0x0202D12C]00 0 0 0 0 1 00 000 0010110100 0100101100Bit Description ...
Hello @Dominique As a result of reviewing the code based on the materials you provided, I was able to extract an arbitrary voltage without using an RTOS. Thank you for your cooperation.BR
thank you for your answer.As a first step I'm trying to recreate the selected PDO retrieval system running on the Wiki without an RTOS.In the sample, I think that the following two tasks are executed within the RTOS・USBPD_CAD_Task (cable detection:...
thank you for your answer. I have one more question. I am thinking about USBPD_SINK referring to the following Wiki. In this sample, https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Getting_started_with_USB-Power_Delivery_SinkI think that PD is ma...
thank you for your answer. I'm trying to build a USBPD on bare metal without RTOS. So I was trying to refer to the "do~while" of the USBPD_DPM_Run functionI'm trying to build a USBPD_SINK to pick up an arbitrary voltage. I think that the necessary de...