release v1.2.0
This commit is contained in:
2
VERSION
2
VERSION
@@ -1,5 +1,5 @@
|
|||||||
VERSION_MAJOR = 1
|
VERSION_MAJOR = 1
|
||||||
VERSION_MINOR = 1
|
VERSION_MINOR = 2
|
||||||
PATCHLEVEL = 99
|
PATCHLEVEL = 99
|
||||||
VERSION_TWEAK = 0
|
VERSION_TWEAK = 0
|
||||||
EXTRAVERSION = 0
|
EXTRAVERSION = 0
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#ifndef CHERRYUSB_CONFIG_H
|
#ifndef CHERRYUSB_CONFIG_H
|
||||||
#define CHERRYUSB_CONFIG_H
|
#define CHERRYUSB_CONFIG_H
|
||||||
|
|
||||||
#define CHERRYUSB_VERSION 0x010100
|
#define CHERRYUSB_VERSION 0x010200
|
||||||
#define CHERRYUSB_VERSION_STR "v1.1.0"
|
#define CHERRYUSB_VERSION_STR "v1.2.0"
|
||||||
|
|
||||||
/* ================ USB common Configuration ================ */
|
/* ================ USB common Configuration ================ */
|
||||||
|
|
||||||
|
|||||||
@@ -111,19 +111,6 @@ hub 结构体
|
|||||||
uint8_t *int_buffer;
|
uint8_t *int_buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
usbh_alloc_bus
|
|
||||||
""""""""""""""""""""""""""""""""""""
|
|
||||||
|
|
||||||
``usbh_alloc_bus`` 用于创建一个 bus,并且根据 reg_base 分配一个 hcd
|
|
||||||
|
|
||||||
.. code-block:: C
|
|
||||||
|
|
||||||
struct usbh_bus *usbh_alloc_bus(uint8_t busid, uint32_t reg_base);
|
|
||||||
|
|
||||||
- **busid** bus id,从 0开始,不能超过 `CONFIG_USBHOST_MAX_BUS`
|
|
||||||
- **reg_base** hcd 寄存器基地址
|
|
||||||
- 返回 bus 句柄
|
|
||||||
|
|
||||||
usbh_initialize
|
usbh_initialize
|
||||||
""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
@@ -131,9 +118,11 @@ usbh_initialize
|
|||||||
|
|
||||||
.. code-block:: C
|
.. code-block:: C
|
||||||
|
|
||||||
int usbh_initialize(struct usbh_bus *bus);
|
int usbh_initialize(uint8_t busid, uint32_t reg_base);
|
||||||
|
|
||||||
- **bus** bus 句柄
|
- **busid** bus id,从 0开始,不能超过 `CONFIG_USBHOST_MAX_BUS`
|
||||||
|
- **reg_base** hcd 寄存器基地址
|
||||||
|
- **return** 0 表示正常其他表示错误
|
||||||
|
|
||||||
usbh_find_class_instance
|
usbh_find_class_instance
|
||||||
""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ project = 'CherryUSB'
|
|||||||
copyright = '2024, sakumisu'
|
copyright = '2024, sakumisu'
|
||||||
author = 'sakumisu'
|
author = 'sakumisu'
|
||||||
|
|
||||||
release = '1.1.0'
|
release = '1.2.0'
|
||||||
version = '1.1.0'
|
version = '1.2.0'
|
||||||
|
|
||||||
# -- General configuration
|
# -- General configuration
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user