mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
ST ISM330DLC IMU driver
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
|
||||
#include <board_config.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/************************************************************************************
|
||||
* Name: board_dma_alloc_init
|
||||
*
|
||||
@@ -114,7 +116,7 @@ __EXPORT int board_get_dma_usage(uint16_t *dma_total, uint16_t *dma_used, uint16
|
||||
#if defined(BOARD_DMA_ALLOC_POOL_SIZE)
|
||||
__EXPORT void *board_dma_alloc(size_t size);
|
||||
#else
|
||||
#define board_dma_alloc(size) (NULL)
|
||||
#define board_dma_alloc(size) malloc(size)
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
@@ -131,5 +133,7 @@ __EXPORT void *board_dma_alloc(size_t size);
|
||||
#if defined(BOARD_DMA_ALLOC_POOL_SIZE)
|
||||
__EXPORT void board_dma_free(FAR void *memory, size_t size);
|
||||
#else
|
||||
#define board_dma_free(memory, size) ()
|
||||
#define board_dma_free(memory, size) free(memory)
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user