mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat(esp_rom): support esp32c2 rev2.0(ECO4) rom systimer hal
This commit is contained in:
parent
b5fe76b7dc
commit
86b0c1b6eb
@ -364,6 +364,11 @@ tx_pwctrl_background = 0x40002548;
|
|||||||
***************************************/
|
***************************************/
|
||||||
|
|
||||||
/* Functions */
|
/* Functions */
|
||||||
|
systimer_hal_init = 0x400002a8;
|
||||||
|
systimer_hal_get_time = 0x400002b0;
|
||||||
|
systimer_hal_set_alarm_target = 0x400002b4;
|
||||||
|
systimer_hal_set_alarm_period = 0x400002b8;
|
||||||
|
systimer_hal_counter_value_advance = 0x400002c8;
|
||||||
systimer_hal_deinit = 0x40002ea8;
|
systimer_hal_deinit = 0x40002ea8;
|
||||||
systimer_hal_set_tick_rate_ops = 0x40002eac;
|
systimer_hal_set_tick_rate_ops = 0x40002eac;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#if CONFIG_HAL_SYSTIMER_USE_ROM_IMPL
|
#if CONFIG_HAL_SYSTIMER_USE_ROM_IMPL
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32C2
|
#if CONFIG_IDF_TARGET_ESP32C2 && (CONFIG_ESP32C2_REV_MIN_FULL < 200)
|
||||||
void systimer_hal_init(systimer_hal_context_t *hal)
|
void systimer_hal_init(systimer_hal_context_t *hal)
|
||||||
{
|
{
|
||||||
hal->dev = &SYSTIMER;
|
hal->dev = &SYSTIMER;
|
||||||
@ -62,7 +62,7 @@ void systimer_hal_counter_value_advance(systimer_hal_context_t *hal, uint32_t co
|
|||||||
systimer_ll_set_counter_value(hal->dev, counter_id, new_count.val);
|
systimer_ll_set_counter_value(hal->dev, counter_id, new_count.val);
|
||||||
systimer_ll_apply_counter_value(hal->dev, counter_id);
|
systimer_ll_apply_counter_value(hal->dev, counter_id);
|
||||||
}
|
}
|
||||||
#endif // CONFIG_IDF_TARGET_ESP32C2
|
#endif // CONFIG_IDF_TARGET_ESP32C2 && (CONFIG_ESP32C2_REV_MIN_FULL < 200)
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2
|
#if CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2
|
||||||
void systimer_hal_init(systimer_hal_context_t *hal)
|
void systimer_hal_init(systimer_hal_context_t *hal)
|
||||||
|
Loading…
Reference in New Issue
Block a user