2023-12-08 01:00 AM
Hello everyone,
Here i'm trying to implement USB CDC FS on STM32F107VCT6 using Standard Library(without HAL Library), but when i am trying to initialize clock for USB (RCC_APB1ENR_USBEN) its showing error that this register is not available for Connectivity line devices.
can anyone guide me how can i implement it.
Thanks in Advance,
2023-12-08 06:12 AM
Interesting, it does seem to be missing in the CMSIS header, along with I2C2.
You can define it yourself:
#define RCC_APB1ENR_USBEN_Pos (23U)
#define RCC_APB1ENR_USBEN_Msk (0x1UL << RCC_APB1ENR_USBEN_Pos) /*!< 0x00200000 */
#define RCC_APB1ENR_USBEN RCC_APB1ENR_USBEN_Msk /*!< USB clock enable */
2023-12-09 05:27 PM
Looking at the order chaos of the bit fields in that file, it is pretty clear why it is missing values...