esp-idf/components/hal/pcnt_hal.c

17 lines
348 B
C
Raw Normal View History

/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
2019-07-15 02:44:15 -04:00
// The HAL layer for PCNT (common part)
#include "hal/pcnt_hal.h"
2021-08-10 05:19:12 -04:00
#include "hal/pcnt_ll.h"
2019-07-15 02:44:15 -04:00
void pcnt_hal_init(pcnt_hal_context_t *hal, int pcnt_num)
{
//Get hardware instance.
hal->dev = PCNT_LL_GET_HW(pcnt_num);
}