Hi,
I may be wrong but -as far as I see it- there is no "delay_ms" (or equivalent) in libopencm3. I started doing some more work on my FPGA programmer on a STM32F103 and -to port the arduino library to libopencm3- I need both the "delay_ms" and "millis" functions. Therefor I am working on a generic library for this, using the cortex-M "systick" interrupt. Question: As the reload-value used by systick is directly related to the clockspeed of the CPU, is there in libopencm3 a generic way to determine the clockspeed of the CPU? My goal is to determine if the speed of the CPU has been changed. For the STM32, I found there are a number of external variables that I might use (rcc_ahb_frequency, rcc_apb1_frequency and rcc_apb2_frequency) but I guess these are specific for that processor. Cheerio! kr. Bonne. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ libopencm3-devel mailing list libopencm3-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libopencm3-devel