esp-idf/components/hal/ppa_hal.c
Song Ruo Jing 346bc077c5 feat(ppa): add PPA driver support for ESP32P4
Added doxygen
Refactored driver to malloc trans_elm memory when registering the client
Cleaned up driver
Added API check
One client now only responsible for one operation
2024-05-23 16:40:56 +08:00

20 lines
334 B
C

/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stddef.h>
#include "hal/ppa_hal.h"
#include "hal/ppa_ll.h"
void ppa_hal_init(ppa_hal_context_t *hal)
{
hal->dev = PPA_LL_GET_HW;
}
void ppa_hal_deinit(ppa_hal_context_t *hal)
{
hal->dev = NULL;
}