esp-idf/components/hal/pcnt_hal.c

17 wiersze
348 B
C
Czysty Zwykły widok Historia

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