mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feat(hal): graudate the PCNT hal driver into a new component
This commit is contained in:
committed by
Chen Ji Chang
parent
8811f2ec07
commit
c84773f307
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user