|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
宏定义 | |
| #define | THREAD_MODE_PRIORITY 4 |
| #define | __return_address() ((uintptr_t)0) |
| #define | NON_OS_NMI_CWDT_INT_FLAG BIT(NMI_CWDT) |
| #define | NON_OS_NMI_XIP_CTRL_INT_FLAG BIT(NMI_XIP_CTRL) |
| #define | NON_OS_NMI_XIP_CACHE_INT_FLAG BIT(NMI_XIP_CACHE) |
| #define | NON_OS_NMI_MDMA_INT_FLAG BIT(NMI_MDMA) |
| #define | NON_OS_NMI_SMDMAINT_FLAG BIT(NMI_SMDMA) |
| #define | NON_OS_BT_NMI_MASK_REG 0x59000300 |
| #define | NON_OS_BT_NMI_STATUS_REG 0x59000304 |
| #define | NON_OS_BNMI_BT_INT_FLAG BIT(BNMI_BT_INT) |
| #define | NON_OS_BNMI_BLE_INT_FLAG BIT(BNMI_BLE_INT) |
| #define | NON_OS_BNMI_BWDT_INT_FLAG BIT(BNMI_BWDT) |
类型定义 | |
| typedef enum AON_INIT_BIT_E | aon_init_bit_e |
| typedef void(* | critical_statistic_handler) (critical_statistic_mode_e mode, uint32_t address) |
| hook function type for crititcal interval statisitic tool | |
| typedef void(* | critical_record_handler) (critical_statistic_mode_e mode, uint32_t address, uint16_t nestings) |
| hook function type for crititcal interval record tool | |
函数 | |
| cassert (DRIVER_INIT_MAX_VALUE<=64, NON_OS_H_) | |
| void | non_os_enter_critical (void) |
| Enter in a critical section. | |
| void | non_os_exit_critical (void) |
| Exit a critical section. | |
| bool | non_os_is_in_critical_section (void) |
| Checks if the system is running on a critical section. | |
| void | non_os_critical_section_init (void) |
| Ensures interrupts are enabled and the interrupt nested counter is reset. | |
| bool | non_os_is_driver_initialised (driver_init_bit_e driver) |
| Gets the value of the drivers flag bit, then converts into a bool | |
| void | non_os_set_driver_initalised (driver_init_bit_e driver, bool value) |
| Sets the value of the specified bit | |
| bool | non_os_is_aon_flag_initialised (aon_init_bit_e driver) |
| check aon flag is set flag save on aon only rst when all rst(not only cpu reset) | |
| void | non_os_set_aon_flag_initalised (aon_init_bit_e driver, bool value) |
| set aon flag flag save on aon only rst when all rst(not only cpu reset) | |
| void | non_os_register_critical_statistic (critical_statistic_handler handler) |
| register critical statistic hook function | |
| void | non_os_unregister_critical_statistic (void) |
| unregister critical statistic hook function | |
| void | non_os_register_critical_record (critical_record_handler handler) |
| register critical record hook function | |
| void | non_os_unregister_critical_record (void) |
| unregister critical record hook function | |
| void | non_os_nmi_config (nmi_types_e nmi, bool on) |
| Config the nmi. | |
| uint16_t | non_os_get_nmi_mask_status (void) |
| Get NMI interrupt status after mask. | |
| uint16_t | non_os_get_nmi_raw_status (void) |
| get NMI raw interrupt status. | |
| nmi_types_e | non_os_get_nmi_type (void) |
| get NMI mask interrupt type. | |
| const char * | non_os_get_bt_rom_version (void) |
| get bt rom version. | |
| bool | non_os_is_dcache_enabled (void) |
| Checks if the DCache is enabled. | |
| #define __return_address | ( | ) | ((uintptr_t)0) |
| #define NON_OS_BNMI_BLE_INT_FLAG BIT(BNMI_BLE_INT) |
| #define NON_OS_BNMI_BT_INT_FLAG BIT(BNMI_BT_INT) |
| #define NON_OS_BT_NMI_MASK_REG 0x59000300 |
| #define NON_OS_BT_NMI_STATUS_REG 0x59000304 |
| #define NON_OS_NMI_XIP_CACHE_INT_FLAG BIT(NMI_XIP_CACHE) |
| #define NON_OS_NMI_XIP_CTRL_INT_FLAG BIT(NMI_XIP_CTRL) |
| #define THREAD_MODE_PRIORITY 4 |
| typedef enum AON_INIT_BIT_E aon_init_bit_e |
flag save on aon only rst when all rst(not only cpu reset)
| typedef void(* critical_record_handler) (critical_statistic_mode_e mode, uint32_t address, uint16_t nestings) |
hook function type for crititcal interval record tool
| mode | Mark the mode if enter or exit critical |
| address | Record LR address for locating which function entered critical |
| nestings | the nesting number of enter critical. |
| typedef void(* critical_statistic_handler) (critical_statistic_mode_e mode, uint32_t address) |
hook function type for crititcal interval statisitic tool
| mode | Mark the mode if enter or exit critical |
| address | Record LR address for locating which function entered critical |
| enum AON_INIT_BIT_E |
| enum bnmi_types_e |
| enum driver_init_bit_e |
| enum nmi_types_e |
| cassert | ( | DRIVER_INIT_MAX_VALUE<= | 64, |
| NON_OS_H_ | |||
| ) |
| void non_os_critical_section_init | ( | void | ) |
Ensures interrupts are enabled and the interrupt nested counter is reset.
| void non_os_enter_critical | ( | void | ) |
Enter in a critical section.
| void non_os_exit_critical | ( | void | ) |
Exit a critical section.
| const char * non_os_get_bt_rom_version | ( | void | ) |
get bt rom version.
| uint16_t non_os_get_nmi_mask_status | ( | void | ) |
Get NMI interrupt status after mask.
| uint16_t non_os_get_nmi_raw_status | ( | void | ) |
get NMI raw interrupt status.
| nmi_types_e non_os_get_nmi_type | ( | void | ) |
get NMI mask interrupt type.
| bool non_os_is_aon_flag_initialised | ( | aon_init_bit_e | driver | ) |
check aon flag is set flag save on aon only rst when all rst(not only cpu reset)
check aon flag is set flag save on aon only rst when all rst(not only cpu reset)
| bool non_os_is_dcache_enabled | ( | void | ) |
Checks if the DCache is enabled.
| bool non_os_is_driver_initialised | ( | driver_init_bit_e | driver | ) |
Gets the value of the drivers flag bit, then converts into a bool
| driver | The driver that you wish to check is initialised |
| bool non_os_is_in_critical_section | ( | void | ) |
Checks if the system is running on a critical section.
| void non_os_nmi_config | ( | nmi_types_e | nmi, |
| bool | on | ||
| ) |
Config the nmi.
| nmi | Types of the nmi. |
| on | True for on, false for off. |
| void non_os_register_critical_record | ( | critical_record_handler | handler | ) |
register critical record hook function
| handler | Function pointer of critical record |
| void non_os_register_critical_statistic | ( | critical_statistic_handler | handler | ) |
register critical statistic hook function
| handler | Function pointer of critical statistic |
| void non_os_set_aon_flag_initalised | ( | aon_init_bit_e | driver, |
| bool | value | ||
| ) |
set aon flag flag save on aon only rst when all rst(not only cpu reset)
set aon flag flag save on aon only rst when all rst(not only cpu reset)
| void non_os_set_driver_initalised | ( | driver_init_bit_e | driver, |
| bool | value | ||
| ) |
Sets the value of the specified bit
| driver | The driver whose bit you wish to set |
| value | The value to set the bit to |
| void non_os_unregister_critical_record | ( | void | ) |
unregister critical record hook function
| void non_os_unregister_critical_statistic | ( | void | ) |
unregister critical statistic hook function