extern
porcupine
demo
mcu
stm32h735
stm32h735g-dk
AudioCapture
audio_mem_mgnt.h
Go to the documentation of this file.
1
18
/* Define to prevent recursive inclusion -------------------------------------*/
19
#ifndef __AUDIO_MEM_MGNT_H
20
#define __AUDIO_MEM_MGNT_H
21
22
23
24
#include <stdint.h>
25
#include <string.h>
26
27
#define AUDIO_MEM_HEAP_FAST (int32_t)1U
28
#define AUDIO_MEM_HEAP_SLOW (int32_t)2U
29
#define AUDIO_MEM_HEAP_FASTB (int32_t)3U
30
#define AUDIO_MEM_NOCACHED (int32_t)4U
31
32
33
#if defined ( __GNUC__ )
34
#ifndef __weak
35
#define __weak __attribute__((weak))
36
#endif
/* __weak */
37
#ifndef __packed
38
#define __packed __attribute__((__packed__))
39
#endif
/* __packed */
40
#endif
/* __GNUC__ */
41
42
/* In HS mode and when the DMA is used, all variables and data structures dealing
43
with the DMA during the transaction process should be 4-bytes aligned */
44
45
#if defined (__GNUC__)
/* GNU Compiler */
46
#define __ALIGN_END __attribute__ ((aligned (4)))
47
#define __ALIGN_BEGIN
48
#else
49
#define __ALIGN_END
50
#if defined (__CC_ARM)
/* ARM Compiler */
51
#define __ALIGN_BEGIN __align(4)
52
#elif defined (__ICCARM__)
/* IAR Compiler */
53
#define __ALIGN_BEGIN
54
#elif defined (__TASKING__)
/* TASKING Compiler */
55
#define __ALIGN_BEGIN __align(4)
56
#endif
/* __CC_ARM */
57
#endif
/* __GNUC__ */
58
59
60
61
void
CPU_CACHE_Flush
(uint8_t *
const
buffer, uint32_t
const
length_in_bytes);
62
63
void
*
AudioMalloc
(
size_t
const
size, int32_t
const
type);
64
void
AudioFree
(
void
*
const
pMemToFree, int32_t
const
type);
65
66
#endif
/* __AUDIO_MEM_MGNT_H */
67
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
CPU_CACHE_Flush
void CPU_CACHE_Flush(uint8_t *const buffer, uint32_t const length_in_bytes)
Definition:
audio_mem_mgnt.c:44
AudioFree
void AudioFree(void *const pMemToFree, int32_t const type)
Definition:
audio_mem_mgnt.c:146
AudioMalloc
void * AudioMalloc(size_t const size, int32_t const type)
Definition:
audio_mem_mgnt.c:121
picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:13:47