diff --git a/Doxyfile b/Doxyfile
index 5fba638..2685234 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -38,7 +38,7 @@ PROJECT_NAME = perf_counter
# could be handy for archiving the generated documentation or if some version
# control system is used.
-PROJECT_NUMBER = v2.2.0
+PROJECT_NUMBER = v2.2.1
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
diff --git a/GorgonMeducer.perf_counter.pdsc b/GorgonMeducer.perf_counter.pdsc
index eec3657..88cce4c 100644
--- a/GorgonMeducer.perf_counter.pdsc
+++ b/GorgonMeducer.perf_counter.pdsc
@@ -16,6 +16,9 @@
https://github.com/GorgonMeducer/perf_counter.git
+
+ - Update perfc_is_time_out_ms and perf_is_time_out_us
+
- Enhance Timer Services
- Other minor changes
@@ -234,7 +237,7 @@
-->
-
+
A dedicated performance counter for Cortex-M systick.
@@ -252,7 +255,7 @@
#define __PERF_COUNTER_CFG_USE_SYSTICK_WRAPPER__ 1
-
+
A dedicated performance counter for Cortex-M systick.
@@ -295,7 +298,7 @@
-
+
A Patch for RTX5
@@ -307,7 +310,7 @@
-
+
A Patch for FreeRTOS
@@ -330,7 +333,7 @@ extern void __freertos_evr_on_task_switched_in(void *ptTCB, unsigned int uxTopPr
-
+
A Patch for RT-Thread
@@ -348,7 +351,7 @@ extern void __rt_thread_scheduler_hook(struct rt_thread *from, struct rt_thread
-
+
A Patch for ThreadX
diff --git a/README.md b/README.md
index 21186ac..74f3128 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# perf_counter (v2.2.0)
+# perf_counter (v2.2.1)
A dedicated performance counter for Cortex-M Systick. It shares the SysTick with users' original SysTick function(s) without interfering with it. This library will bring new functionalities, such as performance counter,` delay_us` and `clock()` service defined in `time.h`.
### Features:
diff --git a/cmsis-pack/GorgonMeducer.perf_counter.2.2.0.pack b/cmsis-pack/GorgonMeducer.perf_counter.2.2.1.pack
similarity index 84%
rename from cmsis-pack/GorgonMeducer.perf_counter.2.2.0.pack
rename to cmsis-pack/GorgonMeducer.perf_counter.2.2.1.pack
index ee97f8e..75baf9e 100644
Binary files a/cmsis-pack/GorgonMeducer.perf_counter.2.2.0.pack and b/cmsis-pack/GorgonMeducer.perf_counter.2.2.1.pack differ
diff --git a/cmsis-pack/GorgonMeducer.perf_counter.pdsc b/cmsis-pack/GorgonMeducer.perf_counter.pdsc
index eec3657..88cce4c 100644
--- a/cmsis-pack/GorgonMeducer.perf_counter.pdsc
+++ b/cmsis-pack/GorgonMeducer.perf_counter.pdsc
@@ -16,6 +16,9 @@
https://github.com/GorgonMeducer/perf_counter.git
+
+ - Update perfc_is_time_out_ms and perf_is_time_out_us
+
- Enhance Timer Services
- Other minor changes
@@ -234,7 +237,7 @@
-->
-
+
A dedicated performance counter for Cortex-M systick.
@@ -252,7 +255,7 @@
#define __PERF_COUNTER_CFG_USE_SYSTICK_WRAPPER__ 1
-
+
A dedicated performance counter for Cortex-M systick.
@@ -295,7 +298,7 @@
-
+
A Patch for RTX5
@@ -307,7 +310,7 @@
-
+
A Patch for FreeRTOS
@@ -330,7 +333,7 @@ extern void __freertos_evr_on_task_switched_in(void *ptTCB, unsigned int uxTopPr
-
+
A Patch for RT-Thread
@@ -348,7 +351,7 @@ extern void __rt_thread_scheduler_hook(struct rt_thread *from, struct rt_thread
-
+
A Patch for ThreadX
diff --git a/example/example.uvoptx b/example/example.uvoptx
index 310ac4b..75e7724 100644
--- a/example/example.uvoptx
+++ b/example/example.uvoptx
@@ -75,7 +75,7 @@
1
0
- 1
+ 0
7
@@ -297,7 +297,7 @@
1
0
- 0
+ 1
7
diff --git a/lib/libperf_counter_gcc.a b/lib/libperf_counter_gcc.a
index 1296202..d1eb553 100644
Binary files a/lib/libperf_counter_gcc.a and b/lib/libperf_counter_gcc.a differ
diff --git a/lib/perf_counter.h b/lib/perf_counter.h
index 1b9c631..bf3ca37 100644
--- a/lib/perf_counter.h
+++ b/lib/perf_counter.h
@@ -397,7 +397,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
/*!
* \brief set an alarm with given period in us and check the status
*
- * \param[in] __ms a time period in microsecond
+ * \param[in] __us a time period in microsecond
* \param[in] __timestamp_ptr an optional timestamp holder
* \param[in] __auto_reload whether starting next period after a timeout event
*
@@ -411,7 +411,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
/*!
* \brief set an alarm with given period in us and check the status
*
- * \param[in] __ms a time period in microsecond
+ * \param[in] __us a time period in microsecond
* \param[in] __timestamp_ptr an optional timestamp holder
*
* \return bool whether it is timeout
@@ -423,7 +423,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
/*!
* \brief set an alarm with given period in us and check the status
*
- * \param[in] __ms a time period in microsecond
+ * \param[in] __us a time period in microsecond
* \param[in] __timestamp_ptr an optional timestamp holder
*
* \return bool whether it is timeout
@@ -434,7 +434,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
/*!
* \brief set an alarm with given period in us and check the status
*
- * \param[in] __ms a time period in microsecond
+ * \param[in] __us a time period in microsecond
* \param[in] ... an optional timestamp holder
* \param[in] ... an optional indicator for whether starting next period after a timeout event
*
diff --git a/lib/perf_counter.lib b/lib/perf_counter.lib
index 96f7b42..df6706b 100644
Binary files a/lib/perf_counter.lib and b/lib/perf_counter.lib differ
diff --git a/perf_counter.h b/perf_counter.h
index 1b9c631..bf3ca37 100644
--- a/perf_counter.h
+++ b/perf_counter.h
@@ -397,7 +397,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
/*!
* \brief set an alarm with given period in us and check the status
*
- * \param[in] __ms a time period in microsecond
+ * \param[in] __us a time period in microsecond
* \param[in] __timestamp_ptr an optional timestamp holder
* \param[in] __auto_reload whether starting next period after a timeout event
*
@@ -411,7 +411,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
/*!
* \brief set an alarm with given period in us and check the status
*
- * \param[in] __ms a time period in microsecond
+ * \param[in] __us a time period in microsecond
* \param[in] __timestamp_ptr an optional timestamp holder
*
* \return bool whether it is timeout
@@ -423,7 +423,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
/*!
* \brief set an alarm with given period in us and check the status
*
- * \param[in] __ms a time period in microsecond
+ * \param[in] __us a time period in microsecond
* \param[in] __timestamp_ptr an optional timestamp holder
*
* \return bool whether it is timeout
@@ -434,7 +434,7 @@ __asm(".global __ensure_systick_wrapper\n\t");
/*!
* \brief set an alarm with given period in us and check the status
*
- * \param[in] __ms a time period in microsecond
+ * \param[in] __us a time period in microsecond
* \param[in] ... an optional timestamp holder
* \param[in] ... an optional indicator for whether starting next period after a timeout event
*