18 Commits

Author SHA1 Message Date
Gabriel Wang
c7d7567b17 improve support for IAR 2021-10-29 00:10:53 +01:00
Gabriel Wang
20054b434b add license to lib folder 2021-07-27 16:09:45 +01:00
Gabriel Wang
ae5afb0ca1 minor update 2021-07-20 00:05:17 +01:00
Gabriel Wang
5483710769 Add a dedicated library for gcc 2021-07-19 23:55:51 +01:00
Gabriel Wang
4ae1b3202c fix issue #1
now you can use delay_us with start_perf_counter() and stop_perf_counter.
2021-06-08 11:21:18 +01:00
Gabriel Wang
4864c033b0 minor improvement 2021-06-07 16:30:39 +01:00
Gabriel Wang
d3ecc136d1 Major update
- introduce get_system_ticks()
- rework on __cycleof__
- update other macros to support gcc extension: ({;;;;})
- update example
2021-03-24 14:44:46 +00:00
Gabriel Wang
04712e54d8 use the longest period during the initialization if the systick is not occupied by user applications 2021-03-24 11:20:23 +00:00
Gabriel Wang
f06324c00d resolve potential conflicts among macro definitions 2021-03-24 11:17:28 +00:00
Gabriel Wang
ffbdc8e296 remove duplicated macro safe_atom_code() 2021-03-24 10:51:39 +00:00
Gabriel Wang
c2aa5423c6 remove definition of _ which conflicts with other libraries, e.g. PLOOC 2021-03-24 10:49:06 +00:00
Gabriel Wang
312b9e1d4c add compenstation (tested in Cortex-M3) to delay_us 2021-01-14 13:53:08 +00:00
Gabriel Wang
2e465bc4c2 found some racing condition and fixed them
- fixed the racing condition
- introduce a minimal systick LOAD restriction
- add some comments
2021-01-11 18:50:02 +00:00
Gabriel Wang
6ec7874669 fix the issue when long time delay (>1 s), delay_us might have 25% accumulative error 2021-01-11 10:52:55 +00:00
Gabriel Wang
4fb5635605 support all cortex-m processors (including M0/M0+) 2021-01-09 21:08:09 +00:00
Gabriel Wang
30337b59f9 add comments for how to use clock() 2021-01-09 13:51:30 +00:00
Gabriel Wang
8b0ee08ee2 clean up the license info 2021-01-09 13:18:39 +00:00
Gabriel Wang
ffe8ad3fca
upload content 2021-01-09 13:10:37 +00:00