|
|
@@ -432,6 +432,8 @@ void timer_group_clr_intr_sta_in_isr(timer_group_t group_num, timer_intr_t intr_
|
|
|
bool timer_group_get_auto_reload_in_isr(timer_group_t group_num, timer_idx_t timer_num);
|
|
|
|
|
|
/** @brief Take timer spinlock to enter critical protect
|
|
|
+ *
|
|
|
+ * @note Deprecated, the recommended way is to use ISR callbacks instead, see timer_group_example_main
|
|
|
*
|
|
|
* @param group_num Timer group number, 0 for TIMERG0 or 1 for TIMERG1
|
|
|
*
|
|
|
@@ -439,9 +441,11 @@ bool timer_group_get_auto_reload_in_isr(timer_group_t group_num, timer_idx_t tim
|
|
|
* - ESP_OK Success
|
|
|
* - ESP_ERR_INVALID_ARG Parameter error
|
|
|
*/
|
|
|
-esp_err_t timer_spinlock_take(timer_group_t group_num);
|
|
|
+esp_err_t timer_spinlock_take(timer_group_t group_num) __attribute__ ((deprecated));
|
|
|
|
|
|
/** @brief Give timer spinlock to exit critical protect
|
|
|
+ *
|
|
|
+ * @note Deprecated, the recommended way is to use ISR callbacks instead, see timer_group_example_main
|
|
|
*
|
|
|
* @param group_num Timer group number, 0 for TIMERG0 or 1 for TIMERG1
|
|
|
*
|
|
|
@@ -449,7 +453,7 @@ esp_err_t timer_spinlock_take(timer_group_t group_num);
|
|
|
* - ESP_OK Success
|
|
|
* - ESP_ERR_INVALID_ARG Parameter error
|
|
|
*/
|
|
|
-esp_err_t timer_spinlock_give(timer_group_t group_num);
|
|
|
+esp_err_t timer_spinlock_give(timer_group_t group_num) __attribute__ ((deprecated));
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
}
|