STM32 USB Library - USB_DELAY from any source other than SysTick??
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-03-19 6:51 AM
Posted on March 19, 2011 at 14:51
STM32 USB Library - USB_DELAY from any source other than SysTick??
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 5:28 AM
Posted on May 17, 2011 at 14:28
Couldn't you just spin on the core's DWT cycle counter?
CycleStart = *DWT_CYCCNT; while((*DWT_CYCCNT - CycleStart) < DelayCycles); [DEAD LINK /public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/ARM CortexM3 STM32/No definition for DWT in Core_cm3.h&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000626BE2B829C32145B9EB5739142DC17E¤tviews=158]See Here I'd also recommend you initialize things, and get the clock frequencies once rather than reading them every time you want a delay.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
