summaryrefslogtreecommitdiff
path: root/bsp/apollo2/board/pdm.h
blob: 2975c8aad11b5408d1925a20a98725c7a940cb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * 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
 *
 */
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_