diff options
| author | sakimisu <[email protected]> | 2023-07-13 20:30:12 +0800 |
|---|---|---|
| committer | sakimisu <[email protected]> | 2023-07-13 20:34:11 +0800 |
| commit | 513772a534ff87a18fbcf81c18ef75ea2204ec69 (patch) | |
| tree | 2405b9dc13b319e81ae25c451c96e91943ed15fa /docs/source/api/api_common.rst | |
| parent | e45a2857dfdf0ff79f49f49279cd9a0bdb0fb3c5 (diff) | |
update doc
Diffstat (limited to 'docs/source/api/api_common.rst')
| -rw-r--r-- | docs/source/api/api_common.rst | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/docs/source/api/api_common.rst b/docs/source/api/api_common.rst deleted file mode 100644 index 3c4653d9..00000000 --- a/docs/source/api/api_common.rst +++ /dev/null @@ -1,48 +0,0 @@ -其他 -========================= - -usb_malloc -"""""""""""""""""""""""""""""""""""" - -``usb_malloc`` 用来申请内存。 - -.. code-block:: C - - void *usb_malloc(size_t size); - -- **size** 要申请的内存大小 -- **return** 申请的内存地址 - -usb_free -"""""""""""""""""""""""""""""""""""" - -``usb_free`` 用来释放申请的内存。 - -.. code-block:: C - - void usb_free(void *ptr); - -- **ptr** 要释放的内存地址 - -usb_iomalloc -"""""""""""""""""""""""""""""""""""" - -``usb_iomalloc`` 用来申请内存,并按照 `CONFIG_DCACHE_LINE_SIZE` 对齐,一般使用到 dcache 和 dma 需要对齐操作的时候使用。 - -.. code-block:: C - - void *usb_iomalloc(size_t size); - -- **size** 要申请的内存大小 -- **return** 申请的内存地址 - -usb_iofree -"""""""""""""""""""""""""""""""""""" - -``usb_iofree`` 用来释放申请的内存。 - -.. code-block:: C - - void usb_iofree(void *ptr); - -- **ptr** 要释放的内存地址 |
