Make headers in extras more cpp friendly
This commit is contained in:
parent
2994a566a6
commit
57cb9b925c
12 changed files with 130 additions and 29 deletions
|
|
@ -28,6 +28,10 @@
|
|||
#include <stdbool.h>
|
||||
#include "esp/slc_regs.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*i2s_dma_isr_t)(void);
|
||||
|
||||
typedef struct dma_descriptor {
|
||||
|
|
@ -113,4 +117,8 @@ inline dma_descriptor_t *i2s_dma_get_eof_descriptor()
|
|||
return (dma_descriptor_t*)SLC.RX_EOF_DESCRIPTOR_ADDR;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __I2S_DMA_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue