rt-thread-official/bsp/apollo2/board/pdm.h

26 lines
475 B
C
Raw Normal View History

/*
2021-03-29 07:20:47 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
*
2021-03-29 07:20:47 +08:00
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-12-04 Haley the first version
*/
#ifndef __PDM_H_
#define __PDM_H_
#include <rtthread.h>
/**
* @brief External function definitions
*
*/
2018-09-21 16:10:44 +08:00
int rt_pdm_init(void);
rt_uint8_t am_pdm_data_get(rt_uint8_t *buff, rt_uint16_t size);
void am_pdm_start(void);
void am_pdm_stop(void);
#endif // __PDM_H_