feat(hal): graudate the PCNT hal driver into a new component

This commit is contained in:
Chen Jichang
2025-11-21 11:22:41 +08:00
committed by Chen Ji Chang
parent 8811f2ec07
commit c84773f307
44 changed files with 339 additions and 122 deletions
+16
View File
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
// The HAL layer for PCNT (common part)
#include "hal/pcnt_hal.h"
#include "hal/pcnt_ll.h"
void pcnt_hal_init(pcnt_hal_context_t *hal, int pcnt_num)
{
//Get hardware instance.
hal->dev = PCNT_LL_GET_HW(pcnt_num);
}