Skip to content

Commit

Permalink
release v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sakumisu committed Mar 29, 2024
1 parent 7b5d8f2 commit a6d5397
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_MAJOR = 1
VERSION_MINOR = 1
VERSION_MINOR = 2
PATCHLEVEL = 99
VERSION_TWEAK = 0
EXTRAVERSION = 0
4 changes: 2 additions & 2 deletions cherryusb_config_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#ifndef CHERRYUSB_CONFIG_H
#define CHERRYUSB_CONFIG_H

#define CHERRYUSB_VERSION 0x010100
#define CHERRYUSB_VERSION_STR "v1.1.0"
#define CHERRYUSB_VERSION 0x010200
#define CHERRYUSB_VERSION_STR "v1.2.0"

/* ================ USB common Configuration ================ */

Expand Down
19 changes: 4 additions & 15 deletions docs/source/api/api_host.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,29 +111,18 @@ hub 结构体
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`` 用来初始化 usb 主机协议栈,包括:初始化 usb 主机控制器,创建 roothub 设备,创建 hub 检测线程。

.. 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
""""""""""""""""""""""""""""""""""""
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
copyright = '2024, sakumisu'
author = 'sakumisu'

release = '1.1.0'
version = '1.1.0'
release = '1.2.0'
version = '1.2.0'

# -- General configuration

Expand Down

0 comments on commit a6d5397

Please sign in to comment.