├── .gitignore ├── .gitmodules ├── MicroLink ├── .gitignore ├── README_en.md ├── README_zh.md ├── doc │ ├── sdk_cmake_api.png │ └── start_gui_demo.png ├── external │ ├── DAP │ │ ├── Config │ │ │ └── DAP_config.h │ │ ├── Include │ │ │ └── DAP.h │ │ └── Source │ │ │ ├── DAP.c │ │ │ ├── DAP_vendor.c │ │ │ ├── JTAG_DP.c │ │ │ ├── SWO.c │ │ │ ├── SW_DP.c │ │ │ ├── SW_DP_SPI.c │ │ │ └── UART.c │ └── pikapython │ │ ├── FLMConfig.pyi │ │ ├── PikaDebug.pyi │ │ ├── PikaObj.pyi │ │ ├── PikaStdData.pyi │ │ ├── PikaStdDevice.pyi │ │ ├── PikaStdLib.pyi │ │ ├── PikaStdTask.pyi │ │ ├── RTTView.pyi │ │ ├── builtins.pyi │ │ ├── load.pyi │ │ ├── main.py │ │ ├── pikaPackage.exe │ │ ├── pikascript-api │ │ ├── FLMConfig.h │ │ ├── FLMConfig_ReadFlm.h │ │ ├── PikaDebug.h │ │ ├── PikaDebug_Debuger.h │ │ ├── PikaMain.h │ │ ├── PikaStdData.h │ │ ├── PikaStdData_ByteArray.h │ │ ├── PikaStdData_Dict.h │ │ ├── PikaStdData_FILEIO.h │ │ ├── PikaStdData_List.h │ │ ├── PikaStdData_String.h │ │ ├── PikaStdData_Tuple.h │ │ ├── PikaStdData_Utils.h │ │ ├── PikaStdData_dict_items.h │ │ ├── PikaStdData_dict_keys.h │ │ ├── PikaStdDevice.h │ │ ├── PikaStdDevice_ADC.h │ │ ├── PikaStdDevice_BaseDev.h │ │ ├── PikaStdDevice_CAN.h │ │ ├── PikaStdDevice_DAC.h │ │ ├── PikaStdDevice_GPIO.h │ │ ├── PikaStdDevice_IIC.h │ │ ├── PikaStdDevice_PWM.h │ │ ├── PikaStdDevice_SPI.h │ │ ├── PikaStdDevice_Timer.h │ │ ├── PikaStdDevice_UART.h │ │ ├── PikaStdLib.h │ │ ├── PikaStdLib_MemChecker.h │ │ ├── PikaStdLib_REPL.h │ │ ├── PikaStdLib_SysObj.h │ │ ├── PikaStdTask.h │ │ ├── PikaStdTask_Task.h │ │ ├── RTTView.h │ │ ├── __asset_pikaModules_py_a.c │ │ ├── __pikaBinding.c │ │ ├── builtins.h │ │ ├── builtins_ArithmeticError.h │ │ ├── builtins_AssertionError.h │ │ ├── builtins_AttributeError.h │ │ ├── builtins_BaseException.h │ │ ├── builtins_BlockingIOError.h │ │ ├── builtins_BrokenPipeError.h │ │ ├── builtins_BufferError.h │ │ ├── builtins_BytesWarning.h │ │ ├── builtins_ChildProcessError.h │ │ ├── builtins_ConnectionAbortedError.h │ │ ├── builtins_ConnectionError.h │ │ ├── builtins_ConnectionRefusedError.h │ │ ├── builtins_ConnectionResetError.h │ │ ├── builtins_DeprecationWarning.h │ │ ├── builtins_EOFError.h │ │ ├── builtins_Exception.h │ │ ├── builtins_FileExistsError.h │ │ ├── builtins_FileNotFoundError.h │ │ ├── builtins_FloatingPointError.h │ │ ├── builtins_FutureWarning.h │ │ ├── builtins_GeneratorExit.h │ │ ├── builtins_ImportError.h │ │ ├── builtins_ImportWarning.h │ │ ├── builtins_IndentationError.h │ │ ├── builtins_IndexError.h │ │ ├── builtins_InterruptedError.h │ │ ├── builtins_IsADirectoryError.h │ │ ├── builtins_KeyError.h │ │ ├── builtins_KeyboardInterrupt.h │ │ ├── builtins_LookupError.h │ │ ├── builtins_MemoryError.h │ │ ├── builtins_ModuleNotFoundError.h │ │ ├── builtins_NameError.h │ │ ├── builtins_NotADirectoryError.h │ │ ├── builtins_NotImplementedError.h │ │ ├── builtins_OSError.h │ │ ├── builtins_OverflowError.h │ │ ├── builtins_PendingDeprecationWarning.h │ │ ├── builtins_PermissionError.h │ │ ├── builtins_ProcessLookupError.h │ │ ├── builtins_RangeObj.h │ │ ├── builtins_RecursionError.h │ │ ├── builtins_ReferenceError.h │ │ ├── builtins_ResourceWarning.h │ │ ├── builtins_RuntimeError.h │ │ ├── builtins_RuntimeWarning.h │ │ ├── builtins_StopAsyncIteration.h │ │ ├── builtins_StopIteration.h │ │ ├── builtins_StringObj.h │ │ ├── builtins_SyntaxError.h │ │ ├── builtins_SyntaxWarning.h │ │ ├── builtins_SystemError.h │ │ ├── builtins_SystemExit.h │ │ ├── builtins_TabError.h │ │ ├── builtins_TimeoutError.h │ │ ├── builtins_TypeError.h │ │ ├── builtins_UnboundLocalError.h │ │ ├── builtins_UnicodeDecodeError.h │ │ ├── builtins_UnicodeEncodeError.h │ │ ├── builtins_UnicodeError.h │ │ ├── builtins_UnicodeTranslateError.h │ │ ├── builtins_UnicodeWarning.h │ │ ├── builtins_UserWarning.h │ │ ├── builtins_ValueError.h │ │ ├── builtins_Warning.h │ │ ├── builtins_ZeroDivisionError.h │ │ ├── builtins_bytearray.h │ │ ├── builtins_object.h │ │ ├── load.h │ │ ├── module_list_default.txt │ │ ├── pikaScript.c │ │ ├── pikaScript.h │ │ └── ym.h │ │ ├── pikascript-core │ │ ├── BaseObj.c │ │ ├── BaseObj.h │ │ ├── CMakeLists.txt │ │ ├── PikaCompiler.c │ │ ├── PikaCompiler.h │ │ ├── PikaObj.c │ │ ├── PikaObj.h │ │ ├── PikaParser.c │ │ ├── PikaParser.h │ │ ├── PikaPlatform.c │ │ ├── PikaPlatform.h │ │ ├── PikaVM.c │ │ ├── PikaVM.h │ │ ├── PikaVersion.h │ │ ├── README.md │ │ ├── TinyObj.c │ │ ├── TinyObj.h │ │ ├── __default_filter_msg_table.h │ │ ├── __default_filter_msg_template.h │ │ ├── __instruction_table.h │ │ ├── __instruction_template.h │ │ ├── __pika_ooc.h │ │ ├── dataArg.c │ │ ├── dataArg.h │ │ ├── dataArgs.c │ │ ├── dataArgs.h │ │ ├── dataLink.c │ │ ├── dataLink.h │ │ ├── dataLinkNode.c │ │ ├── dataLinkNode.h │ │ ├── dataMemory.c │ │ ├── dataMemory.h │ │ ├── dataQueue.c │ │ ├── dataQueue.h │ │ ├── dataQueueObj.c │ │ ├── dataQueueObj.h │ │ ├── dataStack.c │ │ ├── dataStack.h │ │ ├── dataString.c │ │ ├── dataString.h │ │ ├── dataStrs.c │ │ ├── dataStrs.h │ │ ├── pika_adapter_mpy.h │ │ ├── pika_adapter_old_api.h │ │ ├── pika_adapter_rtt.h │ │ └── pika_config_valid.h │ │ ├── pikascript-lib │ │ ├── FLMConfig │ │ │ └── FLMConfig_ReadFlm.c │ │ ├── PikaStdLib │ │ │ ├── PikaDebuger_Debuger.c │ │ │ ├── PikaStdData_ByteArray.c │ │ │ ├── PikaStdData_Dict.c │ │ │ ├── PikaStdData_FILEIO.c │ │ │ ├── PikaStdData_List.c │ │ │ ├── PikaStdData_String.c │ │ │ ├── PikaStdData_String_Util.h │ │ │ ├── PikaStdData_Tuple.c │ │ │ ├── PikaStdData_Utils.c │ │ │ ├── PikaStdLib_MemChecker.c │ │ │ ├── PikaStdLib_RangeObj.c │ │ │ ├── PikaStdLib_StringObj.c │ │ │ ├── PikaStdLib_SysObj.c │ │ │ └── PikaStdTask_Task.c │ │ ├── RTTView │ │ │ ├── RTTView.c │ │ │ └── SEGGER_RTTView.h │ │ ├── load │ │ │ └── load.c │ │ └── ym │ │ │ └── ym_lib.c │ │ ├── requestment.txt │ │ ├── rust-msc-latest-win10.exe │ │ └── ym.pyi ├── hpm5301evklite │ ├── CMakeLists.txt │ ├── README_en.md │ ├── README_zh.md │ ├── board.c │ ├── board.h │ ├── doc │ │ └── hpm5301evklite.png │ ├── hpm5301evklite.cfg │ ├── hpm5301evklite.yaml │ ├── pinmux.c │ └── pinmux.h └── microlink_app │ ├── .version │ ├── CMakeLists.txt │ ├── config │ ├── DAP_config.h │ ├── pika_config.c │ ├── pika_config.h │ ├── usb_config.h │ └── user_app_cfg.h │ ├── hpm_sdk_localized_for_hpm5301evklite │ ├── CMakeLists.txt │ ├── LICENSE │ ├── VERSION │ ├── arch │ │ ├── CMakeLists.txt │ │ └── riscv │ │ │ └── riscv_core.h │ ├── boards │ │ ├── CMakeLists.txt │ │ └── openocd │ │ │ ├── boards │ │ │ ├── hpm5300evk.cfg │ │ │ ├── hpm5301evklite.cfg │ │ │ ├── hpm6200evk.cfg │ │ │ ├── hpm6300evk.cfg │ │ │ ├── hpm6750evk2.cfg │ │ │ ├── hpm6750evkmini.cfg │ │ │ ├── hpm6800evk.cfg │ │ │ └── hpm6e00evk.cfg │ │ │ ├── hpm5300_all_in_one.cfg │ │ │ ├── hpm6280_all_in_one.cfg │ │ │ ├── hpm6300_all_in_one.cfg │ │ │ ├── hpm6750_all_in_one.cfg │ │ │ ├── hpm6800_all_in_one.cfg │ │ │ ├── hpm6e00_all_in_one.cfg │ │ │ ├── probes │ │ │ ├── cmsis_dap.cfg │ │ │ ├── ft2232.cfg │ │ │ ├── ft232.cfg │ │ │ ├── jlink.cfg │ │ │ └── nds_aice_micro.cfg │ │ │ └── soc │ │ │ ├── hpm5300.cfg │ │ │ ├── hpm6280-dual-core.cfg │ │ │ ├── hpm6280-single-core.cfg │ │ │ ├── hpm6360.cfg │ │ │ ├── hpm6750-dual-core.cfg │ │ │ ├── hpm6750-single-core.cfg │ │ │ ├── hpm6880.cfg │ │ │ ├── hpm6e80-dual-core.cfg │ │ │ ├── hpm6e80-single-core.cfg │ │ │ ├── hpm_common_csr.cfg │ │ │ └── hpm_common_csr_lite.cfg │ ├── cmake │ │ ├── application.cmake │ │ ├── ccache.cmake │ │ ├── cleanup.cmake │ │ ├── cmake-ext.cmake │ │ ├── compare_target_sdk_version.cmake │ │ ├── extra_flags.cmake │ │ ├── gen_version_h.cmake │ │ ├── hex.cmake │ │ ├── hpm-sdk-config.cmake │ │ ├── ide.cmake │ │ ├── ide │ │ │ ├── iar.cmake │ │ │ └── segger.cmake │ │ ├── localize_sdk.cmake │ │ ├── python.cmake │ │ ├── toolchain.cmake │ │ ├── toolchain │ │ │ ├── gcc.cmake │ │ │ ├── ld.cmake │ │ │ ├── lld.cmake │ │ │ ├── llvm.cmake │ │ │ └── zcc.cmake │ │ └── version.cmake │ ├── components │ │ ├── CMakeLists.txt │ │ ├── debug_console │ │ │ ├── CMakeLists.txt │ │ │ ├── hpm_debug_console.c │ │ │ └── hpm_debug_console.h │ │ ├── dma_mgr │ │ │ ├── CMakeLists.txt │ │ │ ├── hpm_dma_mgr.c │ │ │ └── hpm_dma_mgr.h │ │ └── usb │ │ │ └── device │ │ │ ├── CMakeLists.txt │ │ │ ├── hpm_usb_device.c │ │ │ └── hpm_usb_device.h │ ├── drivers │ │ ├── CMakeLists.txt │ │ ├── inc │ │ │ ├── hpm_acmp_drv.h │ │ │ ├── hpm_adc12_drv.h │ │ │ ├── hpm_adc16_drv.h │ │ │ ├── hpm_bacc_drv.h │ │ │ ├── hpm_bgpr_drv.h │ │ │ ├── hpm_bkey_drv.h │ │ │ ├── hpm_butn_drv.h │ │ │ ├── hpm_cam_drv.h │ │ │ ├── hpm_can_drv.h │ │ │ ├── hpm_clc_drv.h │ │ │ ├── hpm_common.h │ │ │ ├── hpm_crc_drv.h │ │ │ ├── hpm_csr_drv.h │ │ │ ├── hpm_dac_drv.h │ │ │ ├── hpm_dao_drv.h │ │ │ ├── hpm_display_common.h │ │ │ ├── hpm_dma_drv.h │ │ │ ├── hpm_dmamux_drv.h │ │ │ ├── hpm_dmav2_drv.h │ │ │ ├── hpm_enc_pos_drv.h │ │ │ ├── hpm_enet_drv.h │ │ │ ├── hpm_esc_drv.h │ │ │ ├── hpm_ewdg_drv.h │ │ │ ├── hpm_femc_drv.h │ │ │ ├── hpm_ffa_drv.h │ │ │ ├── hpm_gpio_drv.h │ │ │ ├── hpm_gpiom_drv.h │ │ │ ├── hpm_gptmr_drv.h │ │ │ ├── hpm_gwc_drv.h │ │ │ ├── hpm_hall_drv.h │ │ │ ├── hpm_i2c_drv.h │ │ │ ├── hpm_i2s_common.h │ │ │ ├── hpm_i2s_drv.h │ │ │ ├── hpm_jpeg_drv.h │ │ │ ├── hpm_lcb_drv.h │ │ │ ├── hpm_lcdc_drv.h │ │ │ ├── hpm_lin_drv.h │ │ │ ├── hpm_linv2_drv.h │ │ │ ├── hpm_lobs_drv.h │ │ │ ├── hpm_lvb_drv.h │ │ │ ├── hpm_mbx_drv.h │ │ │ ├── hpm_mcan_drv.h │ │ │ ├── hpm_mchtmr_drv.h │ │ │ ├── hpm_mipi_csi_drv.h │ │ │ ├── hpm_mipi_csi_phy_drv.h │ │ │ ├── hpm_mipi_dsi_drv.h │ │ │ ├── hpm_mipi_dsi_phy_drv.h │ │ │ ├── hpm_mmc_drv.h │ │ │ ├── hpm_mono_drv.h │ │ │ ├── hpm_mtg_drv.h │ │ │ ├── hpm_mtgv2_drv.h │ │ │ ├── hpm_opamp_drv.h │ │ │ ├── hpm_pdgo_drv.h │ │ │ ├── hpm_pdm_drv.h │ │ │ ├── hpm_pdma_drv.h │ │ │ ├── hpm_pixelmux_drv.h │ │ │ ├── hpm_pla_drv.h │ │ │ ├── hpm_plb_drv.h │ │ │ ├── hpm_pllctl_drv.h │ │ │ ├── hpm_pllctlv2_drv.h │ │ │ ├── hpm_pmon_drv.h │ │ │ ├── hpm_pmp_drv.h │ │ │ ├── hpm_ppi_drv.h │ │ │ ├── hpm_psec_drv.h │ │ │ ├── hpm_ptpc_drv.h │ │ │ ├── hpm_pwm_drv.h │ │ │ ├── hpm_pwmv2_drv.h │ │ │ ├── hpm_qei_drv.h │ │ │ ├── hpm_qeiv2_drv.h │ │ │ ├── hpm_qeo_drv.h │ │ │ ├── hpm_qeov2_drv.h │ │ │ ├── hpm_rdc_drv.h │ │ │ ├── hpm_rng_drv.h │ │ │ ├── hpm_romapi_xpi_def.h │ │ │ ├── hpm_romapi_xpi_nor_def.h │ │ │ ├── hpm_romapi_xpi_ram_def.h │ │ │ ├── hpm_rtc_drv.h │ │ │ ├── hpm_sdm_drv.h │ │ │ ├── hpm_sdp_drv.h │ │ │ ├── hpm_sdxc_drv.h │ │ │ ├── hpm_sei_drv.h │ │ │ ├── hpm_smix_drv.h │ │ │ ├── hpm_spi_drv.h │ │ │ ├── hpm_synt_drv.h │ │ │ ├── hpm_tamp_drv.h │ │ │ ├── hpm_trgm_drv.h │ │ │ ├── hpm_tsns_drv.h │ │ │ ├── hpm_tsw_drv.h │ │ │ ├── hpm_uart_drv.h │ │ │ ├── hpm_usb_drv.h │ │ │ ├── hpm_vad_drv.h │ │ │ ├── hpm_vsc_drv.h │ │ │ └── hpm_wdg_drv.h │ │ └── src │ │ │ ├── hpm_acmp_drv.c │ │ │ ├── hpm_adc16_drv.c │ │ │ ├── hpm_crc_drv.c │ │ │ ├── hpm_dmav2_drv.c │ │ │ ├── hpm_ewdg_drv.c │ │ │ ├── hpm_gpio_drv.c │ │ │ ├── hpm_gptmr_drv.c │ │ │ ├── hpm_i2c_drv.c │ │ │ ├── hpm_mchtmr_drv.c │ │ │ ├── hpm_pcfg_drv.c │ │ │ ├── hpm_pllctlv2_drv.c │ │ │ ├── hpm_pmp_drv.c │ │ │ ├── hpm_spi_drv.c │ │ │ ├── hpm_tsns_drv.c │ │ │ ├── hpm_uart_drv.c │ │ │ └── hpm_usb_drv.c │ ├── hpm_sdk_version.h.in │ ├── middleware │ │ ├── CMSIS │ │ │ └── CMakeLists.txt │ │ ├── CMakeLists.txt │ │ ├── cherryrb │ │ │ ├── CMakeLists.txt │ │ │ ├── chry_ringbuffer.c │ │ │ └── chry_ringbuffer.h │ │ ├── cherryusb │ │ │ ├── CMakeLists.txt │ │ │ ├── cherryusb_config_template.h │ │ │ ├── class │ │ │ │ ├── audio │ │ │ │ │ ├── usb_audio.h │ │ │ │ │ ├── usbd_audio.h │ │ │ │ │ └── usbh_audio.h │ │ │ │ ├── cdc │ │ │ │ │ ├── usb_cdc.h │ │ │ │ │ ├── usbd_cdc.h │ │ │ │ │ ├── usbd_cdc_acm.c │ │ │ │ │ ├── usbd_cdc_acm.h │ │ │ │ │ ├── usbd_cdc_ecm.h │ │ │ │ │ ├── usbh_cdc_acm.h │ │ │ │ │ ├── usbh_cdc_ecm.h │ │ │ │ │ └── usbh_cdc_ncm.h │ │ │ │ ├── hid │ │ │ │ │ ├── usb_hid.h │ │ │ │ │ ├── usbd_hid.h │ │ │ │ │ └── usbh_hid.h │ │ │ │ ├── hub │ │ │ │ │ ├── usb_hub.h │ │ │ │ │ └── usbh_hub.h │ │ │ │ ├── midi │ │ │ │ │ └── usb_midi.h │ │ │ │ ├── msc │ │ │ │ │ ├── usb_msc.h │ │ │ │ │ ├── usb_scsi.h │ │ │ │ │ ├── usbd_msc.c │ │ │ │ │ ├── usbd_msc.h │ │ │ │ │ └── usbh_msc.h │ │ │ │ ├── video │ │ │ │ │ ├── usb_video.h │ │ │ │ │ ├── usbd_video.h │ │ │ │ │ └── usbh_video.h │ │ │ │ └── wireless │ │ │ │ │ ├── ndis.h │ │ │ │ │ ├── rndis_protocol.h │ │ │ │ │ ├── usbd_rndis.h │ │ │ │ │ ├── usbh_bluetooth.h │ │ │ │ │ └── usbh_rndis.h │ │ │ ├── common │ │ │ │ ├── usb_dc.h │ │ │ │ ├── usb_def.h │ │ │ │ ├── usb_errno.h │ │ │ │ ├── usb_hc.h │ │ │ │ ├── usb_list.h │ │ │ │ ├── usb_log.h │ │ │ │ ├── usb_memcpy.h │ │ │ │ ├── usb_osal.h │ │ │ │ ├── usb_util.h │ │ │ │ └── usb_version.h │ │ │ ├── core │ │ │ │ ├── usbd_core.c │ │ │ │ ├── usbd_core.h │ │ │ │ └── usbh_core.h │ │ │ └── port │ │ │ │ ├── ehci │ │ │ │ ├── usb_ehci_reg.h │ │ │ │ └── usb_hc_ehci.h │ │ │ │ └── hpm │ │ │ │ └── usb_dc_hpm.c │ │ ├── eclipse_threadx │ │ │ └── CMakeLists.txt │ │ ├── fatfs │ │ │ ├── CMakeLists.txt │ │ │ └── src │ │ │ │ ├── common │ │ │ │ ├── ff.c │ │ │ │ ├── ff.h │ │ │ │ ├── ffconf.h │ │ │ │ └── ffunicode.c │ │ │ │ └── portable │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── diskio.c │ │ │ │ ├── diskio.h │ │ │ │ ├── ram_flash │ │ │ │ ├── hpm_ram_flash.c │ │ │ │ └── hpm_ram_flash.h │ │ │ │ ├── sdxc │ │ │ │ └── hpm_sdmmc_disk.h │ │ │ │ ├── spi_sd │ │ │ │ └── hpm_spi_sd_disk.h │ │ │ │ └── usb │ │ │ │ └── hpm_fatfs_usb.h │ │ ├── ptpd │ │ │ └── CMakeLists.txt │ │ └── wifi │ │ │ └── CMakeLists.txt │ ├── scripts │ │ ├── bin2c.py │ │ ├── check_board_cap.py │ │ ├── check_excluded_app.py │ │ ├── check_excluded_boards.py │ │ ├── check_excluded_targets.py │ │ ├── check_nds_toolchain.py │ │ ├── clang_tidy │ │ │ ├── .clang-tidy │ │ │ ├── .clang_tidy_excluded_app.yaml │ │ │ ├── .clang_tidy_excluded_included_path.yaml │ │ │ ├── clang_tidy_check.py │ │ │ ├── clang_tidy_check_excluded_app.py │ │ │ ├── clang_tidy_json_deduplication.py │ │ │ ├── clang_tidy_json_full_check_sample_handle.py │ │ │ └── run-clang-tidy.py │ │ ├── generate_cmake_rst.py │ │ ├── get_app_debug_info.py │ │ ├── get_app_info.py │ │ ├── get_board_info.py │ │ ├── get_gcc_version.py │ │ ├── get_min_sdk_version.py │ │ ├── ide │ │ │ ├── hpm_sdk_proj_gen.py │ │ │ ├── iar │ │ │ │ ├── embedded_workbench_debug_tmpl.xml │ │ │ │ ├── embedded_workbench_proj_gen.py │ │ │ │ └── embedded_workbench_proj_tmpl.xml │ │ │ └── segger │ │ │ │ ├── embedded_studio_proj_gen.py │ │ │ │ └── embedded_studio_proj_tmpl.xml │ │ ├── linux │ │ │ ├── README │ │ │ └── udev_rules │ │ │ │ ├── 90-usbpermission.rules │ │ │ │ ├── 99-daplink.rules │ │ │ │ ├── 99-jlink.rules │ │ │ │ ├── 99-ndsusb-v1.rules │ │ │ │ └── ftdi_script-v1.sh │ │ ├── localize_sdk.py │ │ └── requirements.txt │ ├── soc │ │ ├── CMakeLists.txt │ │ └── HPM5300 │ │ │ ├── HPM5301 │ │ │ ├── CMakeLists.txt │ │ │ ├── HPM5301_svd.xml │ │ │ ├── boot │ │ │ │ ├── hpm_bootheader.c │ │ │ │ └── hpm_bootheader.h │ │ │ ├── hpm_clock_drv.c │ │ │ ├── hpm_clock_drv.h │ │ │ ├── hpm_csr_regs.h │ │ │ ├── hpm_dmamux_src.h │ │ │ ├── hpm_gpiom_soc_drv.h │ │ │ ├── hpm_interrupt.h │ │ │ ├── hpm_iomux.h │ │ │ ├── hpm_l1c_drv.c │ │ │ ├── hpm_l1c_drv.h │ │ │ ├── hpm_misc.h │ │ │ ├── hpm_otp_drv.c │ │ │ ├── hpm_otp_drv.h │ │ │ ├── hpm_otp_table.h │ │ │ ├── hpm_pcfg_drv.h │ │ │ ├── hpm_plic_drv.h │ │ │ ├── hpm_pmic_iomux.h │ │ │ ├── hpm_ppor_drv.h │ │ │ ├── hpm_romapi.h │ │ │ ├── hpm_romapi_xpi_soc_def.h │ │ │ ├── hpm_ses_reg.xml │ │ │ ├── hpm_ses_riscv_cpu_regs.xml │ │ │ ├── hpm_soc.h │ │ │ ├── hpm_soc_feature.h │ │ │ ├── hpm_soc_ip_feature.h │ │ │ ├── hpm_soc_irq.h │ │ │ ├── hpm_sysctl_drv.c │ │ │ ├── hpm_sysctl_drv.h │ │ │ ├── soc_modules.list │ │ │ ├── system.c │ │ │ └── toolchains │ │ │ │ ├── gcc │ │ │ │ ├── flash.ld │ │ │ │ ├── flash_uf2.ld │ │ │ │ ├── flash_xip.ld │ │ │ │ ├── initfini.c │ │ │ │ ├── ram.ld │ │ │ │ └── start.S │ │ │ │ ├── iar │ │ │ │ ├── flash_uf2.icf │ │ │ │ ├── flash_xip.icf │ │ │ │ ├── ram.icf │ │ │ │ └── startup.s │ │ │ │ ├── reset.c │ │ │ │ ├── segger │ │ │ │ ├── flash.icf │ │ │ │ ├── flash_uf2.icf │ │ │ │ ├── flash_xip.icf │ │ │ │ ├── ram.icf │ │ │ │ └── startup.s │ │ │ │ ├── trap.c │ │ │ │ └── vectors.h │ │ │ └── ip │ │ │ ├── hpm_acmp_regs.h │ │ │ ├── hpm_adc16_regs.h │ │ │ ├── hpm_crc_regs.h │ │ │ ├── hpm_dac_regs.h │ │ │ ├── hpm_dmamux_regs.h │ │ │ ├── hpm_dmav2_regs.h │ │ │ ├── hpm_ewdg_regs.h │ │ │ ├── hpm_gpio_regs.h │ │ │ ├── hpm_gpiom_regs.h │ │ │ ├── hpm_gptmr_regs.h │ │ │ ├── hpm_i2c_regs.h │ │ │ ├── hpm_ioc_regs.h │ │ │ ├── hpm_keym_regs.h │ │ │ ├── hpm_linv2_regs.h │ │ │ ├── hpm_mbx_regs.h │ │ │ ├── hpm_mcan_regs.h │ │ │ ├── hpm_mchtmr_regs.h │ │ │ ├── hpm_mmc_regs.h │ │ │ ├── hpm_mon_regs.h │ │ │ ├── hpm_opamp_regs.h │ │ │ ├── hpm_otp_regs.h │ │ │ ├── hpm_pcfg_regs.h │ │ │ ├── hpm_pdgo_regs.h │ │ │ ├── hpm_pgpr_regs.h │ │ │ ├── hpm_plb_regs.h │ │ │ ├── hpm_plic_regs.h │ │ │ ├── hpm_plic_sw_regs.h │ │ │ ├── hpm_pllctlv2_regs.h │ │ │ ├── hpm_ppor_regs.h │ │ │ ├── hpm_ptpc_regs.h │ │ │ ├── hpm_pwm_regs.h │ │ │ ├── hpm_qeiv2_regs.h │ │ │ ├── hpm_qeo_regs.h │ │ │ ├── hpm_rdc_regs.h │ │ │ ├── hpm_rng_regs.h │ │ │ ├── hpm_sdp_regs.h │ │ │ ├── hpm_sec_regs.h │ │ │ ├── hpm_sei_regs.h │ │ │ ├── hpm_spi_regs.h │ │ │ ├── hpm_synt_regs.h │ │ │ ├── hpm_sysctl_regs.h │ │ │ ├── hpm_trgm_regs.h │ │ │ ├── hpm_tsns_regs.h │ │ │ ├── hpm_uart_regs.h │ │ │ └── hpm_usb_regs.h │ └── utils │ │ ├── CMakeLists.txt │ │ ├── hpm_crc32.c │ │ ├── hpm_crc32.h │ │ ├── hpm_ffssi.c │ │ ├── hpm_sbrk.c │ │ ├── hpm_swap.c │ │ └── hpm_swap.h │ ├── linkers │ ├── gcc │ │ ├── flash.ld │ │ ├── flash_uf2.ld │ │ ├── flash_xip.ld │ │ ├── initfini.c │ │ ├── ram.ld │ │ ├── start.S │ │ └── user_linker.ld │ ├── iar │ │ ├── flash_uf2.icf │ │ ├── flash_xip.icf │ │ ├── ram.icf │ │ ├── startup.s │ │ └── user_linker.icf │ └── segger │ │ ├── flash.icf │ │ ├── flash_uf2.icf │ │ ├── flash_xip.icf │ │ ├── ram.icf │ │ ├── startup.s │ │ └── user_linker.icf │ ├── readme.txt │ ├── src │ ├── USB2MSC │ │ ├── usb2msc.c │ │ └── usb2msc.h │ ├── USB2Python │ │ ├── usb2python.c │ │ └── usb2python.h │ ├── USB2UART │ │ ├── usb2uart.c │ │ └── usb2uart.h │ ├── dap_main.c │ ├── dap_main.h │ ├── flash_fatfs.c │ ├── main.c │ ├── swd_host │ │ ├── debug_cm.h │ │ ├── swd_common.h │ │ ├── swd_host.c │ │ └── swd_host.h │ ├── usb_configuration.c │ ├── usb_configuration.h │ └── ymodem_send │ │ ├── ymodem_send.c │ │ └── ymodem_send.h │ └── vfs │ ├── cmsis-core │ ├── cachel1_armv7.h │ ├── cmsis_armcc.h │ ├── cmsis_armclang.h │ ├── cmsis_armclang_ltm.h │ ├── cmsis_compiler.h │ ├── cmsis_gcc.h │ ├── cmsis_iccarm.h │ ├── cmsis_version.h │ ├── core_armv81mml.h │ ├── core_armv8mbl.h │ ├── core_armv8mml.h │ ├── core_cm0.h │ ├── core_cm0plus.h │ ├── core_cm1.h │ ├── core_cm23.h │ ├── core_cm3.h │ ├── core_cm33.h │ ├── core_cm35p.h │ ├── core_cm4.h │ ├── core_cm55.h │ ├── core_cm7.h │ ├── core_sc000.h │ ├── core_sc300.h │ ├── mpu_armv7.h │ ├── mpu_armv8.h │ ├── pmu_armv8.h │ └── tz_context.h │ ├── compiler.h │ ├── daplink_debug.h │ ├── drag-n-drop │ ├── file_stream.c │ ├── file_stream.h │ ├── intelhex.c │ ├── intelhex.h │ ├── vfs_manager.c │ └── vfs_manager.h │ ├── error.c │ ├── error.h │ ├── target │ ├── flash_blob.h │ ├── flash_decoder.c │ ├── flash_decoder.h │ ├── flash_intf.h │ ├── flash_manager.c │ ├── flash_manager.h │ ├── target_board.c │ ├── target_board.h │ ├── target_config.h │ ├── target_default.c │ ├── target_family.c │ ├── target_family.h │ └── target_flash.c │ ├── util.c │ ├── util.h │ ├── validation.c │ └── validation.h ├── README.md ├── images ├── .$NewUpada.drawio.bkp ├── .$NewUpada1.drawio.bkp ├── .$flash.drawio.bkp ├── .$flash_user.drawio.bkp ├── .$frame.drawio.bkp ├── .$updata.drawio.bkp ├── NewUpada.drawio ├── NewUpada.png ├── NewUpada1.drawio ├── NewUpada1.png ├── USB_1.jpg ├── USB_2.png ├── USB_3.png ├── USB_4.jpg ├── components │ ├── queue │ │ ├── for.jpg │ │ └── queue.jpg │ └── signals_slots │ │ └── signals_slots.png ├── favicon.ico ├── flash.drawio ├── flash.png ├── flash_user.drawio ├── flash_user.png ├── frame.drawio ├── frame.png ├── microlink │ ├── 10M.png │ ├── 10M_Baud.jpg │ ├── 10M_TTL.jpg │ ├── ARMLINK.png │ ├── ARMLINK1.jpg │ ├── DEBUG.png │ ├── DETAILS.png │ ├── EventDebug.jpg │ ├── EventPrint.png │ ├── EventRE.png │ ├── EventRE1.png │ ├── FAIL.png │ ├── FLM.jpg │ ├── FLMTool.png │ ├── JLINK_Download.jpg │ ├── JLINK_V12_Download.jpg │ ├── JTAG.jpg │ ├── MAX_Clock.jpg │ ├── MicroLink.jpg │ ├── MicroLink_Download.jpg │ ├── MicroLink_Download.png │ ├── MicroLink_Jlink.jpg │ ├── RTT.jpg │ ├── RTTView.jpg │ ├── RTTView_CMD.jpg │ ├── RTTView_baiduyun.jpg │ ├── RTT_MAP.png │ ├── SEGGER_JLINK.png │ ├── SES1.jpg │ ├── SES2.jpg │ ├── SES3.jpg │ ├── SJTB.png │ ├── STM32FLMO.jpg │ ├── SWD.jpg │ ├── Upan.png │ ├── WX.jpg │ ├── XZSF.jpg │ ├── clk.jpg │ ├── daoban.png │ ├── data_flow.jpg │ ├── defective.png │ ├── error1.png │ ├── error2.png │ ├── flmo.jpg │ ├── jscope.jpg │ ├── loadbin.png │ ├── microlink.pack.png │ ├── printf.png │ ├── python.jpg │ ├── readdocs.png │ ├── rtt_code.jpg │ ├── sct.jpg │ ├── sct1.jpg │ ├── shebei.png │ ├── sin.gif │ ├── sin.jpg │ ├── sine.jpg │ ├── sine_add.jpg │ └── weixin.jpg ├── quick-start │ ├── cmsis_pack.png │ ├── cmsis_pack_10.jpg │ ├── cmsis_pack_11.jpg │ ├── cmsis_pack_12.jpg │ ├── cmsis_pack_13.png │ ├── cmsis_pack_14.jpg │ ├── cmsis_pack_15.jpg │ ├── cmsis_pack_16.png │ ├── cmsis_pack_17.png │ ├── cmsis_pack_18.jpg │ ├── cmsis_pack_2.png │ ├── cmsis_pack_3.jpg │ ├── cmsis_pack_4.jpg │ ├── cmsis_pack_5.jpg │ ├── cmsis_pack_6.jpg │ ├── cmsis_pack_7.jpg │ ├── cmsis_pack_8.png │ └── cmsis_pack_9.png ├── updata.drawio └── updata.png ├── ota_packager ├── errlog.txt ├── fastlz.dll ├── quicklz150_32_3.dll ├── rt_ota_packaging_tool.exe └── rt_ota_packaging_tool.exe.config ├── 原理图 V2.0 ├── __Previews │ ├── 5301.SchDocPreview │ ├── HMP5301.SchDocPreview │ ├── SH-5301 V1.1.PcbDocPreview │ ├── SH-5301 V1.2.PcbDocPreview │ ├── SH-5301.PcbDocPreview │ └── XL8812x3.SchDocPreview └── 主控.pdf └── 固件 └── MicroLink_V2.1.1.rbl /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.so 27 | *.so.* 28 | *.dylib 29 | 30 | # Executables 31 | *.out 32 | *.app 33 | *.i*86 34 | *.x86_64 35 | *.hex 36 | 37 | # Debug files 38 | *.dSYM/ 39 | *.su 40 | *.idb 41 | *.pdb 42 | 43 | # Kernel Module Compile Results 44 | *.mod* 45 | *.cmd 46 | .tmp_versions/ 47 | modules.order 48 | Module.symvers 49 | Mkfile.old 50 | dkms.conf 51 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "MicroLink/external/MicroBoot"] 2 | path = MicroLink/external/MicroBoot 3 | url = https://github.com/Aladdin-Wang/MicroBoot.git -------------------------------------------------------------------------------- /MicroLink/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .swp 3 | .bak 4 | cscope.* 5 | *.orig 6 | *.patch 7 | 8 | build 9 | *_build 10 | cmake-build* 11 | .idea 12 | .vscode 13 | 14 | *.log 15 | *.jou 16 | .settings 17 | .cproject 18 | .project 19 | 20 | doctrees 21 | doc/output/* 22 | 23 | hpm5301evklite_flash_xip_debug 24 | segger_embedded_studio 25 | *.pyc 26 | sec_core_img.c 27 | *.o 28 | 29 | -------------------------------------------------------------------------------- /MicroLink/doc/sdk_cmake_api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/MicroLink/doc/sdk_cmake_api.png -------------------------------------------------------------------------------- /MicroLink/doc/start_gui_demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/MicroLink/doc/start_gui_demo.png -------------------------------------------------------------------------------- /MicroLink/external/pikapython/FLMConfig.pyi: -------------------------------------------------------------------------------- 1 | class ReadFlm: 2 | def load(self, *val)->int:... -------------------------------------------------------------------------------- /MicroLink/external/pikapython/PikaDebug.pyi: -------------------------------------------------------------------------------- 1 | class Debuger: 2 | def __init__(self): 3 | pass 4 | 5 | def set_trace(self): 6 | pass 7 | 8 | def set_trace(): 9 | pass 10 | 11 | def set_break(module: str, pc_break: int): 12 | pass 13 | 14 | def reset_break(module: str, pc_break: int): 15 | pass 16 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/PikaObj.pyi: -------------------------------------------------------------------------------- 1 | class TinyObj: 2 | ... 3 | 4 | 5 | class BaseObj(TinyObj): 6 | ... 7 | 8 | 9 | class pointer: 10 | ... 11 | 12 | 13 | class any: 14 | ... 15 | 16 | 17 | class int64: 18 | ... 19 | 20 | 21 | def printNoEnd(val: any): ... 22 | def abstractmethod(fn): ... 23 | def PIKA_C_MACRO_IF(fn): ... 24 | def PIKA_C_MACRO_IFDEF(fn): ... 25 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/PikaStdLib.pyi: -------------------------------------------------------------------------------- 1 | from PikaObj import * 2 | 3 | 4 | class MemChecker: 5 | def max(self): ... 6 | def now(self): ... 7 | 8 | @PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE") 9 | def getMax(self) -> float: ... 10 | 11 | @PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE") 12 | def getNow(self) -> float: ... 13 | 14 | @PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE") 15 | def resetMax(self): ... 16 | 17 | 18 | class REPL: 19 | def setEcho(self, echo: bool): ... 20 | 21 | 22 | class SysObj: 23 | pass 24 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/PikaStdTask.pyi: -------------------------------------------------------------------------------- 1 | import PikaStdData 2 | import PikaStdLib 3 | 4 | 5 | class Task(PikaStdLib.SysObj): 6 | calls = PikaStdData.List() 7 | 8 | def __init__(self): 9 | pass 10 | 11 | # regist a function to be called always 12 | def call_always(self, fun_todo: any): 13 | pass 14 | 15 | # regist a function to be called when fun_when() return 'True' 16 | def call_when(self, fun_todo: any, fun_when: any): 17 | pass 18 | 19 | # regist a function to be called periodically 20 | def call_period_ms(self, fun_todo: any, period_ms: int): 21 | pass 22 | 23 | # run all registed function once 24 | def run_once(self): 25 | pass 26 | 27 | # run all registed function forever 28 | def run_forever(self): 29 | pass 30 | 31 | # run all registed function until time is up 32 | def run_until_ms(self, until_ms: int): 33 | pass 34 | 35 | # need be overried to supply the system tick 36 | def platformGetTick(self): 37 | pass 38 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/RTTView.pyi: -------------------------------------------------------------------------------- 1 | def start(self, *val):... 2 | def stop(self, *val):... -------------------------------------------------------------------------------- /MicroLink/external/pikapython/load.pyi: -------------------------------------------------------------------------------- 1 | def bin(self, *val):... 2 | def hex(self, *val):... -------------------------------------------------------------------------------- /MicroLink/external/pikapython/main.py: -------------------------------------------------------------------------------- 1 | import PikaStdLib 2 | import FLMConfig 3 | import load 4 | import ym 5 | import RTTView 6 | print('hello pikapython!') -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikaPackage.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/MicroLink/external/pikapython/pikaPackage.exe -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/FLMConfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __FLMConfig__H 13 | #define __FLMConfig__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_FLMConfig(Args *args); 19 | 20 | Arg* FLMConfig_ReadFlm(PikaObj *self); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/FLMConfig_ReadFlm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __FLMConfig_ReadFlm__H 13 | #define __FLMConfig_ReadFlm__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_FLMConfig_ReadFlm(Args *args); 19 | 20 | int FLMConfig_ReadFlm_load(PikaObj *self, PikaTuple* val); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaDebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaDebug__H 13 | #define __PikaDebug__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaDebug(Args *args); 19 | 20 | Arg* PikaDebug_Debuger(PikaObj *self); 21 | void PikaDebug_reset_break(PikaObj *self, char* module, int pc_break); 22 | void PikaDebug_set_break(PikaObj *self, char* module, int pc_break); 23 | void PikaDebug_set_trace(PikaObj *self); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaDebug_Debuger.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaDebug_Debuger__H 13 | #define __PikaDebug_Debuger__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaDebug_Debuger(Args *args); 19 | 20 | void PikaDebug_Debuger___init__(PikaObj *self); 21 | void PikaDebug_Debuger_set_trace(PikaObj *self); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaMain.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaMain__H 13 | #define __PikaMain__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaMain(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdData.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdData__H 13 | #define __PikaStdData__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdData(Args *args); 19 | 20 | Arg* PikaStdData_ByteArray(PikaObj *self); 21 | Arg* PikaStdData_Dict(PikaObj *self); 22 | Arg* PikaStdData_FILEIO(PikaObj *self); 23 | Arg* PikaStdData_List(PikaObj *self); 24 | Arg* PikaStdData_String(PikaObj *self); 25 | Arg* PikaStdData_Tuple(PikaObj *self); 26 | Arg* PikaStdData_Utils(PikaObj *self); 27 | Arg* PikaStdData_dict_items(PikaObj *self); 28 | Arg* PikaStdData_dict_keys(PikaObj *self); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdData_ByteArray.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdData_ByteArray__H 13 | #define __PikaStdData_ByteArray__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdData_ByteArray(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdData_FILEIO.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdData_FILEIO__H 13 | #define __PikaStdData_FILEIO__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdData_FILEIO(Args *args); 19 | 20 | void PikaStdData_FILEIO_close(PikaObj *self); 21 | int PikaStdData_FILEIO_init(PikaObj *self, char* path, char* mode); 22 | Arg* PikaStdData_FILEIO_read(PikaObj *self, PikaTuple* size); 23 | char* PikaStdData_FILEIO_readline(PikaObj *self); 24 | PikaObj* PikaStdData_FILEIO_readlines(PikaObj *self); 25 | int PikaStdData_FILEIO_seek(PikaObj *self, int offset, PikaTuple* fromwhere); 26 | int PikaStdData_FILEIO_tell(PikaObj *self); 27 | int PikaStdData_FILEIO_write(PikaObj *self, Arg* s); 28 | void PikaStdData_FILEIO_writelines(PikaObj *self, PikaObj* lines); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdData_List.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdData_List__H 13 | #define __PikaStdData_List__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdData_List(Args *args); 19 | 20 | PikaObj* PikaStdData_List___add__(PikaObj *self, PikaObj* others); 21 | void PikaStdData_List___init__(PikaObj *self); 22 | PikaObj* PikaStdData_List___mul__(PikaObj *self, int n); 23 | void PikaStdData_List___setitem__(PikaObj *self, Arg* __key, Arg* __val); 24 | char* PikaStdData_List___str__(PikaObj *self); 25 | void PikaStdData_List_append(PikaObj *self, Arg* arg); 26 | void PikaStdData_List_insert(PikaObj *self, int i, Arg* arg); 27 | Arg* PikaStdData_List_pop(PikaObj *self, PikaTuple* index); 28 | void PikaStdData_List_remove(PikaObj *self, Arg* val); 29 | void PikaStdData_List_reverse(PikaObj *self); 30 | void PikaStdData_List_set(PikaObj *self, int i, Arg* arg); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdData_Tuple.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdData_Tuple__H 13 | #define __PikaStdData_Tuple__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdData_Tuple(Args *args); 19 | 20 | PikaObj* PikaStdData_Tuple___add__(PikaObj *self, PikaObj* others); 21 | void PikaStdData_Tuple___del__(PikaObj *self); 22 | int PikaStdData_Tuple___eq__(PikaObj *self, Arg* other); 23 | Arg* PikaStdData_Tuple___getitem__(PikaObj *self, Arg* __key); 24 | void PikaStdData_Tuple___init__(PikaObj *self); 25 | Arg* PikaStdData_Tuple___iter__(PikaObj *self); 26 | int PikaStdData_Tuple___len__(PikaObj *self); 27 | PikaObj* PikaStdData_Tuple___mul__(PikaObj *self, int n); 28 | Arg* PikaStdData_Tuple___next__(PikaObj *self); 29 | char* PikaStdData_Tuple___str__(PikaObj *self); 30 | Arg* PikaStdData_Tuple_get(PikaObj *self, int i); 31 | int PikaStdData_Tuple_len(PikaObj *self); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdData_Utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdData_Utils__H 13 | #define __PikaStdData_Utils__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdData_Utils(Args *args); 19 | 20 | Arg* PikaStdData_Utils_int_to_bytes(PikaObj *self, int val); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdData_dict_items.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdData_dict_items__H 13 | #define __PikaStdData_dict_items__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdData_dict_items(Args *args); 19 | 20 | Arg* PikaStdData_dict_items___iter__(PikaObj *self); 21 | int PikaStdData_dict_items___len__(PikaObj *self); 22 | Arg* PikaStdData_dict_items___next__(PikaObj *self); 23 | char* PikaStdData_dict_items___str__(PikaObj *self); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdData_dict_keys.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdData_dict_keys__H 13 | #define __PikaStdData_dict_keys__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdData_dict_keys(Args *args); 19 | 20 | Arg* PikaStdData_dict_keys___iter__(PikaObj *self); 21 | int PikaStdData_dict_keys___len__(PikaObj *self); 22 | Arg* PikaStdData_dict_keys___next__(PikaObj *self); 23 | char* PikaStdData_dict_keys___str__(PikaObj *self); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdDevice.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdDevice__H 13 | #define __PikaStdDevice__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdDevice(Args *args); 19 | 20 | PikaObj* PikaStdDevice_Time(PikaObj *self); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdDevice_ADC.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdDevice_ADC__H 13 | #define __PikaStdDevice_ADC__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdDevice_ADC(Args *args); 19 | 20 | void PikaStdDevice_ADC___init__(PikaObj *self); 21 | void PikaStdDevice_ADC_close(PikaObj *self); 22 | void PikaStdDevice_ADC_disable(PikaObj *self); 23 | void PikaStdDevice_ADC_enable(PikaObj *self); 24 | pika_float PikaStdDevice_ADC_read(PikaObj *self); 25 | void PikaStdDevice_ADC_setPin(PikaObj *self, char* pin); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdDevice_BaseDev.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdDevice_BaseDev__H 13 | #define __PikaStdDevice_BaseDev__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdDevice_BaseDev(Args *args); 19 | 20 | void PikaStdDevice_BaseDev_addEventCallBack(PikaObj *self, Arg* eventCallback); 21 | void PikaStdDevice_BaseDev_addEventCallback(PikaObj *self, Arg* eventCallback); 22 | void PikaStdDevice_BaseDev_platformGetEventId(PikaObj *self); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdDevice_CAN.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdDevice_CAN__H 13 | #define __PikaStdDevice_CAN__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdDevice_CAN(Args *args); 19 | 20 | void PikaStdDevice_CAN___init__(PikaObj *self); 21 | void PikaStdDevice_CAN_addFilter(PikaObj *self, int id, int ide, int rtr, int mode, int mask, int hdr); 22 | void PikaStdDevice_CAN_disable(PikaObj *self); 23 | void PikaStdDevice_CAN_enable(PikaObj *self); 24 | char* PikaStdDevice_CAN_read(PikaObj *self, int length); 25 | Arg* PikaStdDevice_CAN_readBytes(PikaObj *self, int length); 26 | void PikaStdDevice_CAN_setBaudRate(PikaObj *self, int baudRate); 27 | void PikaStdDevice_CAN_setId(PikaObj *self, int id); 28 | void PikaStdDevice_CAN_setMode(PikaObj *self, char* mode); 29 | void PikaStdDevice_CAN_setName(PikaObj *self, char* name); 30 | void PikaStdDevice_CAN_write(PikaObj *self, char* data); 31 | void PikaStdDevice_CAN_writeBytes(PikaObj *self, uint8_t* data, int length); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdDevice_DAC.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdDevice_DAC__H 13 | #define __PikaStdDevice_DAC__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdDevice_DAC(Args *args); 19 | 20 | void PikaStdDevice_DAC___init__(PikaObj *self); 21 | void PikaStdDevice_DAC_close(PikaObj *self); 22 | void PikaStdDevice_DAC_disable(PikaObj *self); 23 | void PikaStdDevice_DAC_enable(PikaObj *self); 24 | void PikaStdDevice_DAC_setPin(PikaObj *self, char* pin); 25 | void PikaStdDevice_DAC_write(PikaObj *self, pika_float val); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdDevice_IIC.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdDevice_IIC__H 13 | #define __PikaStdDevice_IIC__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdDevice_IIC(Args *args); 19 | 20 | void PikaStdDevice_IIC___init__(PikaObj *self); 21 | void PikaStdDevice_IIC_disable(PikaObj *self); 22 | void PikaStdDevice_IIC_enable(PikaObj *self); 23 | char* PikaStdDevice_IIC_read(PikaObj *self, int addr, int length); 24 | Arg* PikaStdDevice_IIC_readBytes(PikaObj *self, int addr, int length); 25 | void PikaStdDevice_IIC_setDeviceAddr(PikaObj *self, int addr); 26 | void PikaStdDevice_IIC_setPinSCL(PikaObj *self, char* pin); 27 | void PikaStdDevice_IIC_setPinSDA(PikaObj *self, char* pin); 28 | void PikaStdDevice_IIC_write(PikaObj *self, int addr, char* data); 29 | void PikaStdDevice_IIC_writeBytes(PikaObj *self, int addr, uint8_t* data, int length); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdDevice_PWM.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdDevice_PWM__H 13 | #define __PikaStdDevice_PWM__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdDevice_PWM(Args *args); 19 | 20 | void PikaStdDevice_PWM___init__(PikaObj *self); 21 | void PikaStdDevice_PWM_close(PikaObj *self); 22 | void PikaStdDevice_PWM_disable(PikaObj *self); 23 | void PikaStdDevice_PWM_enable(PikaObj *self); 24 | int PikaStdDevice_PWM_getChannel(PikaObj *self); 25 | pika_float PikaStdDevice_PWM_getDuty(PikaObj *self); 26 | int PikaStdDevice_PWM_getFrequency(PikaObj *self); 27 | char* PikaStdDevice_PWM_getName(PikaObj *self); 28 | void PikaStdDevice_PWM_setChannel(PikaObj *self, int ch); 29 | void PikaStdDevice_PWM_setDuty(PikaObj *self, pika_float duty); 30 | void PikaStdDevice_PWM_setFreq(PikaObj *self, int freq); 31 | void PikaStdDevice_PWM_setFrequency(PikaObj *self, int freq); 32 | void PikaStdDevice_PWM_setName(PikaObj *self, char* name); 33 | void PikaStdDevice_PWM_setPin(PikaObj *self, char* pin); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdDevice_Timer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdDevice_Timer__H 13 | #define __PikaStdDevice_Timer__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdDevice_Timer(Args *args); 19 | 20 | void PikaStdDevice_Timer___init__(PikaObj *self); 21 | void PikaStdDevice_Timer_close(PikaObj *self); 22 | void PikaStdDevice_Timer_disable(PikaObj *self); 23 | void PikaStdDevice_Timer_enable(PikaObj *self); 24 | int PikaStdDevice_Timer_getId(PikaObj *self); 25 | char* PikaStdDevice_Timer_getName(PikaObj *self); 26 | void PikaStdDevice_Timer_setCallback(PikaObj *self, Arg* callback, int filter); 27 | void PikaStdDevice_Timer_setId(PikaObj *self, int id); 28 | void PikaStdDevice_Timer_setMode(PikaObj *self, char* mode); 29 | void PikaStdDevice_Timer_setName(PikaObj *self, char* name); 30 | void PikaStdDevice_Timer_setPeriod(PikaObj *self, int period_ms); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdLib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdLib__H 13 | #define __PikaStdLib__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdLib(Args *args); 19 | 20 | Arg* PikaStdLib_MemChecker(PikaObj *self); 21 | Arg* PikaStdLib_REPL(PikaObj *self); 22 | Arg* PikaStdLib_SysObj(PikaObj *self); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdLib_MemChecker.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdLib_MemChecker__H 13 | #define __PikaStdLib_MemChecker__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdLib_MemChecker(Args *args); 19 | 20 | pika_float PikaStdLib_MemChecker_getMax(PikaObj *self); 21 | pika_float PikaStdLib_MemChecker_getNow(PikaObj *self); 22 | void PikaStdLib_MemChecker_max(PikaObj *self); 23 | void PikaStdLib_MemChecker_now(PikaObj *self); 24 | void PikaStdLib_MemChecker_resetMax(PikaObj *self); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdLib_REPL.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdLib_REPL__H 13 | #define __PikaStdLib_REPL__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdLib_REPL(Args *args); 19 | 20 | void PikaStdLib_REPL_setEcho(PikaObj *self, pika_bool echo); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdLib_SysObj.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdLib_SysObj__H 13 | #define __PikaStdLib_SysObj__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdLib_SysObj(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdTask.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdTask__H 13 | #define __PikaStdTask__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdTask(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/PikaStdTask_Task.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __PikaStdTask_Task__H 13 | #define __PikaStdTask_Task__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_PikaStdTask_Task(Args *args); 19 | 20 | void PikaStdTask_Task___init__(PikaObj *self); 21 | void PikaStdTask_Task_call_always(PikaObj *self, Arg* fun_todo); 22 | void PikaStdTask_Task_call_period_ms(PikaObj *self, Arg* fun_todo, int period_ms); 23 | void PikaStdTask_Task_call_when(PikaObj *self, Arg* fun_todo, Arg* fun_when); 24 | void PikaStdTask_Task_platformGetTick(PikaObj *self); 25 | void PikaStdTask_Task_run_forever(PikaObj *self); 26 | void PikaStdTask_Task_run_once(PikaObj *self); 27 | void PikaStdTask_Task_run_until_ms(PikaObj *self, int until_ms); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/RTTView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __RTTView__H 13 | #define __RTTView__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_RTTView(Args *args); 19 | 20 | void RTTView_start(PikaObj *self, PikaTuple* val); 21 | void RTTView_stop(PikaObj *self, PikaTuple* val); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ArithmeticError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ArithmeticError__H 13 | #define __builtins_ArithmeticError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ArithmeticError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_AssertionError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_AssertionError__H 13 | #define __builtins_AssertionError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_AssertionError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_AttributeError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_AttributeError__H 13 | #define __builtins_AttributeError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_AttributeError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_BaseException.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_BaseException__H 13 | #define __builtins_BaseException__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_BaseException(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_BlockingIOError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_BlockingIOError__H 13 | #define __builtins_BlockingIOError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_BlockingIOError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_BrokenPipeError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_BrokenPipeError__H 13 | #define __builtins_BrokenPipeError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_BrokenPipeError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_BufferError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_BufferError__H 13 | #define __builtins_BufferError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_BufferError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_BytesWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_BytesWarning__H 13 | #define __builtins_BytesWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_BytesWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ChildProcessError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ChildProcessError__H 13 | #define __builtins_ChildProcessError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ChildProcessError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ConnectionAbortedError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ConnectionAbortedError__H 13 | #define __builtins_ConnectionAbortedError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ConnectionAbortedError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ConnectionError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ConnectionError__H 13 | #define __builtins_ConnectionError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ConnectionError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ConnectionRefusedError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ConnectionRefusedError__H 13 | #define __builtins_ConnectionRefusedError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ConnectionRefusedError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ConnectionResetError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ConnectionResetError__H 13 | #define __builtins_ConnectionResetError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ConnectionResetError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_DeprecationWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_DeprecationWarning__H 13 | #define __builtins_DeprecationWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_DeprecationWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_EOFError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_EOFError__H 13 | #define __builtins_EOFError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_EOFError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_Exception.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_Exception__H 13 | #define __builtins_Exception__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_Exception(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_FileExistsError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_FileExistsError__H 13 | #define __builtins_FileExistsError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_FileExistsError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_FileNotFoundError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_FileNotFoundError__H 13 | #define __builtins_FileNotFoundError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_FileNotFoundError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_FloatingPointError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_FloatingPointError__H 13 | #define __builtins_FloatingPointError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_FloatingPointError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_FutureWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_FutureWarning__H 13 | #define __builtins_FutureWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_FutureWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_GeneratorExit.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_GeneratorExit__H 13 | #define __builtins_GeneratorExit__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_GeneratorExit(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ImportError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ImportError__H 13 | #define __builtins_ImportError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ImportError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ImportWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ImportWarning__H 13 | #define __builtins_ImportWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ImportWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_IndentationError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_IndentationError__H 13 | #define __builtins_IndentationError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_IndentationError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_IndexError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_IndexError__H 13 | #define __builtins_IndexError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_IndexError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_InterruptedError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_InterruptedError__H 13 | #define __builtins_InterruptedError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_InterruptedError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_IsADirectoryError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_IsADirectoryError__H 13 | #define __builtins_IsADirectoryError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_IsADirectoryError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_KeyError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_KeyError__H 13 | #define __builtins_KeyError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_KeyError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_KeyboardInterrupt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_KeyboardInterrupt__H 13 | #define __builtins_KeyboardInterrupt__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_KeyboardInterrupt(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_LookupError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_LookupError__H 13 | #define __builtins_LookupError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_LookupError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_MemoryError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_MemoryError__H 13 | #define __builtins_MemoryError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_MemoryError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ModuleNotFoundError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ModuleNotFoundError__H 13 | #define __builtins_ModuleNotFoundError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ModuleNotFoundError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_NameError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_NameError__H 13 | #define __builtins_NameError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_NameError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_NotADirectoryError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_NotADirectoryError__H 13 | #define __builtins_NotADirectoryError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_NotADirectoryError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_NotImplementedError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_NotImplementedError__H 13 | #define __builtins_NotImplementedError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_NotImplementedError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_OSError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_OSError__H 13 | #define __builtins_OSError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_OSError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_OverflowError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_OverflowError__H 13 | #define __builtins_OverflowError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_OverflowError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_PendingDeprecationWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_PendingDeprecationWarning__H 13 | #define __builtins_PendingDeprecationWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_PendingDeprecationWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_PermissionError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_PermissionError__H 13 | #define __builtins_PermissionError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_PermissionError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ProcessLookupError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ProcessLookupError__H 13 | #define __builtins_ProcessLookupError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ProcessLookupError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_RangeObj.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_RangeObj__H 13 | #define __builtins_RangeObj__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_RangeObj(Args *args); 19 | 20 | Arg* builtins_RangeObj___next__(PikaObj *self); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_RecursionError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_RecursionError__H 13 | #define __builtins_RecursionError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_RecursionError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ReferenceError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ReferenceError__H 13 | #define __builtins_ReferenceError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ReferenceError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ResourceWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ResourceWarning__H 13 | #define __builtins_ResourceWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ResourceWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_RuntimeError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_RuntimeError__H 13 | #define __builtins_RuntimeError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_RuntimeError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_RuntimeWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_RuntimeWarning__H 13 | #define __builtins_RuntimeWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_RuntimeWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_StopAsyncIteration.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_StopAsyncIteration__H 13 | #define __builtins_StopAsyncIteration__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_StopAsyncIteration(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_StopIteration.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_StopIteration__H 13 | #define __builtins_StopIteration__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_StopIteration(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_StringObj.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_StringObj__H 13 | #define __builtins_StringObj__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_StringObj(Args *args); 19 | 20 | Arg* builtins_StringObj___next__(PikaObj *self); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_SyntaxError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_SyntaxError__H 13 | #define __builtins_SyntaxError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_SyntaxError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_SyntaxWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_SyntaxWarning__H 13 | #define __builtins_SyntaxWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_SyntaxWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_SystemError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_SystemError__H 13 | #define __builtins_SystemError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_SystemError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_SystemExit.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_SystemExit__H 13 | #define __builtins_SystemExit__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_SystemExit(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_TabError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_TabError__H 13 | #define __builtins_TabError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_TabError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_TimeoutError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_TimeoutError__H 13 | #define __builtins_TimeoutError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_TimeoutError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_TypeError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_TypeError__H 13 | #define __builtins_TypeError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_TypeError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_UnboundLocalError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_UnboundLocalError__H 13 | #define __builtins_UnboundLocalError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_UnboundLocalError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_UnicodeDecodeError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_UnicodeDecodeError__H 13 | #define __builtins_UnicodeDecodeError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_UnicodeDecodeError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_UnicodeEncodeError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_UnicodeEncodeError__H 13 | #define __builtins_UnicodeEncodeError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_UnicodeEncodeError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_UnicodeError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_UnicodeError__H 13 | #define __builtins_UnicodeError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_UnicodeError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_UnicodeTranslateError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_UnicodeTranslateError__H 13 | #define __builtins_UnicodeTranslateError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_UnicodeTranslateError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_UnicodeWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_UnicodeWarning__H 13 | #define __builtins_UnicodeWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_UnicodeWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_UserWarning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_UserWarning__H 13 | #define __builtins_UserWarning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_UserWarning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ValueError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ValueError__H 13 | #define __builtins_ValueError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ValueError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_Warning.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_Warning__H 13 | #define __builtins_Warning__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_Warning(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_ZeroDivisionError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_ZeroDivisionError__H 13 | #define __builtins_ZeroDivisionError__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_ZeroDivisionError(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_bytearray.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_bytearray__H 13 | #define __builtins_bytearray__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_bytearray(Args *args); 19 | 20 | int builtins_bytearray___contains__(PikaObj *self, Arg* others); 21 | int builtins_bytearray___getitem__(PikaObj *self, int __key); 22 | void builtins_bytearray___init__(PikaObj *self, Arg* bytes); 23 | Arg* builtins_bytearray___iter__(PikaObj *self); 24 | int builtins_bytearray___len__(PikaObj *self); 25 | Arg* builtins_bytearray___next__(PikaObj *self); 26 | void builtins_bytearray___setitem__(PikaObj *self, int __key, int __val); 27 | char* builtins_bytearray___str__(PikaObj *self); 28 | char* builtins_bytearray_decode(PikaObj *self); 29 | PikaObj* builtins_bytearray_split(PikaObj *self, PikaTuple* vars); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/builtins_object.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __builtins_object__H 13 | #define __builtins_object__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_builtins_object(Args *args); 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/load.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __load__H 13 | #define __load__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_load(Args *args); 19 | 20 | void load_bin(PikaObj *self, PikaTuple* val); 21 | void load_hex(PikaObj *self, PikaTuple* val); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/module_list_default.txt: -------------------------------------------------------------------------------- 1 | main 2 | PikaStdLib 3 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/pikaScript.c: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #include "PikaMain.h" 13 | #include 14 | #include 15 | 16 | volatile PikaObj *__pikaMain; 17 | PikaObj *pikaPythonInit(void){ 18 | pika_platform_printf("======[pikapython packages installed]======\r\n"); 19 | pika_printVersion(); 20 | pika_platform_printf("PikaStdLib===v1.13.4\r\n"); 21 | pika_platform_printf("===========================================\r\n"); 22 | PikaObj* pikaMain = newRootObj("pikaMain", New_PikaMain); 23 | __pikaMain = pikaMain; 24 | extern unsigned char pikaModules_py_a[]; 25 | obj_linkLibrary(pikaMain, pikaModules_py_a); 26 | #if PIKA_INIT_STRING_ENABLE 27 | obj_run(pikaMain, 28 | "import PikaStdLib \n" 29 | "import FLMConfig\n" 30 | "import load\n" 31 | "import ym\n" 32 | "import RTTView\n" 33 | "print('hello pikapython!')\n" 34 | "\n"); 35 | #else 36 | obj_runModule((PikaObj*)pikaMain, "main"); 37 | #endif 38 | return pikaMain; 39 | } 40 | 41 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/pikaScript.h: -------------------------------------------------------------------------------- 1 | /* ******************************** */ 2 | /* Warning! Don't modify this file! */ 3 | /* ******************************** */ 4 | #ifndef __pikaScript__H 5 | #define __pikaScript__H 6 | #include 7 | #include 8 | #include "PikaObj.h" 9 | #include "PikaMain.h" 10 | 11 | PikaObj * pikaPythonInit(void); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-api/ym.h: -------------------------------------------------------------------------------- 1 | /* 2 | * [Warning!] This file is auto-generated by pika compiler. 3 | * Do not edit it manually. 4 | * The source code is *.pyi file. 5 | * More details: 6 | * English Doc: 7 | * https://pikadoc-en.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 8 | * Chinese Doc: 9 | * http://pikapython.com/doc/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html 10 | */ 11 | 12 | #ifndef __ym__H 13 | #define __ym__H 14 | #include 15 | #include 16 | #include "PikaObj.h" 17 | 18 | PikaObj *New_ym(Args *args); 19 | 20 | void ym_receive(PikaObj *self, PikaTuple* val); 21 | void ym_send(PikaObj *self, PikaTuple* val); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-core/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #设置 BINARY 为项目名IndexProject 2 | set(BINARY ${CMAKE_PROJECT_NAME}) 3 | 4 | file(GLOB_RECURSE SOURCES LIST_DIRECTORIES true *.h *.c) 5 | set(SOURCES ${SOURCES}) 6 | 7 | add_library(${BINARY}-core 8 | STATIC 9 | ${SOURCES}) 10 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-core/PikaVersion.h: -------------------------------------------------------------------------------- 1 | #define PIKA_VERSION_MAJOR 1 2 | #define PIKA_VERSION_MINOR 13 3 | #define PIKA_VERSION_MICRO 4 4 | 5 | #define PIKA_EDIT_TIME "2024/08/09 03:29:21" 6 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-core/README.md: -------------------------------------------------------------------------------- 1 | # PikaScript 运行时内核 2 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-core/dataLinkNode.c: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the PikaPython project. 3 | * http://github.com/pikastech/pikapython 4 | * 5 | * MIT License 6 | * 7 | * Copyright (c) 2021 lyon liang6516@outlook.com 8 | * 9 | * Permission is hereby granted, free of charge, to any person obtaining a 10 | * copy of this software and associated documentation files (the "Software"), 11 | * to deal in the Software without restriction, including without limitation 12 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 13 | * and/or sell copies of the Software, and to permit persons to whom the 14 | * Software is furnished to do so, subject to the following conditions: 15 | * 16 | * The above copyright notice and this permission notice shall be included in 17 | * all copies or substantial portions of the Software. 18 | * 19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 22 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 24 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 | * DEALINGS IN THE SOFTWARE. 26 | */ 27 | #include "dataLinkNode.h" 28 | #include "dataArg.h" 29 | #include "dataMemory.h" 30 | 31 | void linkNode_deinit(LinkNode* self) { 32 | arg_deinit((Arg*)self); 33 | } 34 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/PikaStdLib/PikaDebuger_Debuger.c: -------------------------------------------------------------------------------- 1 | #include "PikaVM.h" 2 | #include "dataStrs.h" 3 | 4 | void PikaDebug_Debuger___init__(PikaObj* self) { 5 | /* global enable contral */ 6 | obj_setInt(self, "enable", 1); 7 | } 8 | 9 | void PikaDebug_Debuger_set_trace(PikaObj* self) { 10 | pika_debug_set_trace(self); 11 | } 12 | 13 | void PikaDebug_set_trace(PikaObj* self) { 14 | PikaDebug_Debuger_set_trace(self); 15 | } 16 | 17 | void PikaDebug_set_break(PikaObj* self, char* module, int pc_break) { 18 | pika_debug_set_break(module, pc_break); 19 | } 20 | 21 | void PikaDebug_reset_break(PikaObj* self, char* module, int pc_break) { 22 | pika_debug_reset_break(module, pc_break); 23 | } 24 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/PikaStdLib/PikaStdData_ByteArray.c: -------------------------------------------------------------------------------- 1 | #include "PikaStdData_ByteArray.h" 2 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/PikaStdLib/PikaStdData_String_Util.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #if PIKA_STRING_UTF8_ENABLE 4 | 5 | int _valid_utf8(const char* string, int length); 6 | int _utf8_get(const char* string, int length, int at, char* out_buf); 7 | int _utf8_get_offset(const char* string, int length, int at, int* out_char_len); 8 | int _utf8_strlen(const char* string, int length); 9 | int __str_repl(PikaObj* self, 10 | char* str, 11 | int str_len, 12 | int repl_at, 13 | int repl_len, 14 | char* val, 15 | int val_len); 16 | 17 | int __utf8_to_utf32_LE_withBOM(const char* utf8, int len, char* out_buf); 18 | int __utf8_to_utf32_LE_noBOM(const char* utf8, int len, char* out_buf); 19 | int __utf8_to_utf32_LE_noBOM_get_size(const char* utf8, int len); 20 | 21 | int __utf8_to_utf16_LE_withBOM(const char* utf8, int len, char* out_buf); 22 | int __utf8_to_utf16_LE_noBOM(const char* utf8, int len, char* out_buf); 23 | int __utf8_to_utf16_LE_noBOM_get_size(const char* utf8, int len); 24 | Arg* _str_encode(char* str, char* encoding); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/PikaStdLib/PikaStdData_Utils.c: -------------------------------------------------------------------------------- 1 | #include "PikaStdData_Utils.h" 2 | #include "dataStrs.h" 3 | 4 | Arg* PikaStdData_Utils_int_to_bytes(PikaObj* self, int val) { 5 | if (val > 0xFF) { 6 | obj_setErrorCode(self, 1); 7 | obj_setSysOut(self, 8 | "OverflowError: cannot convert value larger than 0xFF to " 9 | "bytes"); 10 | return arg_newNone(); 11 | } 12 | uint8_t val_bytes = (uint8_t)val; 13 | return arg_newBytes(&val_bytes, 1); 14 | } 15 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/PikaStdLib/PikaStdLib_MemChecker.c: -------------------------------------------------------------------------------- 1 | #include "PikaStdLib_MemChecker.h" 2 | #include "BaseObj.h" 3 | #include "dataStrs.h" 4 | 5 | void PikaStdLib_MemChecker_max(PikaObj* self) { 6 | __platform_printf("%0.2f kB\r\n", pikaMemMax() / 1024.0); 7 | } 8 | 9 | void PikaStdLib_MemChecker_now(PikaObj* self) { 10 | __platform_printf("%0.2f kB\r\n", pikaMemNow() / 1024.0); 11 | } 12 | 13 | void PikaStdLib_MemChecker_resetMax(PikaObj* self) { 14 | pikaMemMaxReset(); 15 | } 16 | 17 | pika_float PikaStdLib_MemChecker_getMax(PikaObj* self) { 18 | return pikaMemMax() / 1024.0; 19 | } 20 | 21 | pika_float PikaStdLib_MemChecker_getNow(PikaObj* self) { 22 | return pikaMemNow() / 1024.0; 23 | } 24 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/PikaStdLib/PikaStdLib_RangeObj.c: -------------------------------------------------------------------------------- 1 | #include "PikaObj.h" 2 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/PikaStdLib/PikaStdLib_StringObj.c: -------------------------------------------------------------------------------- 1 | #include "PikaObj.h" 2 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/PikaStdLib/PikaStdLib_SysObj.c: -------------------------------------------------------------------------------- 1 | #include "PikaStdLib_SysObj.h" 2 | #include "PikaStdData_FILEIO.h" 3 | #include "PikaStdLib_REPL.h" 4 | #include "PikaVM.h" 5 | #include "dataStrs.h" 6 | 7 | void PikaStdLib_REPL_setEcho(PikaObj* self, pika_bool echo) { 8 | pikaShellSetEcho(echo); 9 | } 10 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/pikascript-lib/ym/ym_lib.c: -------------------------------------------------------------------------------- 1 | #include "pikaScript.h" 2 | #include "ff.h" 3 | #include "diskio.h" 4 | #include "board.h" 5 | #include "ymodem_send.h" 6 | 7 | extern void ymodme_agent_register(void); 8 | extern void ymodme_unagent_register(void); 9 | 10 | ymodem_lib_send_t tYmodemLibSend; 11 | 12 | 13 | void ymodem_state_handler(ymodem_state_t state) 14 | { 15 | ymodme_unagent_register(); 16 | } 17 | 18 | void ym_send(PikaObj *self, PikaTuple* val) 19 | { 20 | 21 | tYmodemLibSend.tYmodemSent.chfileNum = pikaTuple_getSize(val); 22 | pika_platform_printf("file_count = %d\r\n",tYmodemLibSend.tYmodemSent.chfileNum); 23 | if(tYmodemLibSend.tYmodemSent.chfileNum > 0){ 24 | for(uint8_t i = 0 ; i < tYmodemLibSend.tYmodemSent.chfileNum && i < 5 ; i++){ 25 | Arg* arg = pikaTuple_getArg(val, i); 26 | char *pchFileName = arg_getStr(arg); 27 | strncpy(tYmodemLibSend.tYmodemSent.chFileName[i], pchFileName, strlen(pchFileName)); 28 | pika_platform_printf("file%d name %s\r\n",i,tYmodemLibSend.tYmodemSent.chFileName[i]); 29 | } 30 | ymodme_agent_register(); 31 | }else{ 32 | pika_platform_printf("Wrong number of parameters\r\n"); 33 | } 34 | } 35 | 36 | 37 | 38 | void ym_receive(PikaObj *self, PikaTuple* val) 39 | { 40 | 41 | 42 | 43 | pika_platform_printf("ymodem_receive\r\n"); 44 | 45 | } 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /MicroLink/external/pikapython/requestment.txt: -------------------------------------------------------------------------------- 1 | pikascript-core==v1.13.4 2 | PikaStdLib==v1.13.4 -------------------------------------------------------------------------------- /MicroLink/external/pikapython/rust-msc-latest-win10.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/MicroLink/external/pikapython/rust-msc-latest-win10.exe -------------------------------------------------------------------------------- /MicroLink/external/pikapython/ym.pyi: -------------------------------------------------------------------------------- 1 | def send(self, *val):... 2 | def receive(self, *val):... -------------------------------------------------------------------------------- /MicroLink/hpm5301evklite/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | 5 | sdk_inc(.) 6 | sdk_src(pinmux.c) 7 | sdk_src(board.c) 8 | -------------------------------------------------------------------------------- /MicroLink/hpm5301evklite/doc/hpm5301evklite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/MicroLink/hpm5301evklite/doc/hpm5301evklite.png -------------------------------------------------------------------------------- /MicroLink/hpm5301evklite/hpm5301evklite.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | board: 5 | soc: HPM5301 6 | device: HPM5301xEGx 7 | openocd-soc: hpm5300 8 | openocd-probe: cmsis_dap 9 | on-board-flash: 10 | type: qspi-nor-flash 11 | size: 1M 12 | feature: 13 | - board_gpt_pin 14 | -------------------------------------------------------------------------------- /MicroLink/hpm5301evklite/pinmux.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2023 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_PINMUX_H 9 | #define HPM_PINMUX_H 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | void init_py_pins_as_pgpio(void); 15 | void init_uart_pins(UART_Type *ptr); 16 | void init_uart_pin_as_gpio(UART_Type *ptr); 17 | void init_i2c_pins(I2C_Type *ptr); 18 | void init_gpio_pins(void); 19 | void init_spi_pins(SPI_Type *ptr); 20 | void init_spi_pins_with_gpio_as_cs(SPI_Type *ptr); 21 | void init_gptmr_pins(GPTMR_Type *ptr); 22 | void init_butn_pins(void); 23 | void init_acmp_pins(void); 24 | void init_adc_pins(void); 25 | void init_adc_bldc_pins(void); 26 | void init_usb_pins(USB_Type *ptr); 27 | void init_led_pins_as_gpio(void); 28 | void init_uart_break_signal_pin(void); 29 | void init_gptmr_channel_pin(GPTMR_Type *ptr, uint32_t channel, bool as_comp); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | #endif /* HPM_PINMUX_H */ 35 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/.version: -------------------------------------------------------------------------------- 1 | 1.0.0 -------------------------------------------------------------------------------- /MicroLink/microlink_app/config/pika_config.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/VERSION: -------------------------------------------------------------------------------- 1 | VERSION_MAJOR = 1 2 | VERSION_MINOR = 8 3 | PATCHLEVEL = 0 4 | VERSION_TWEAK = 0 5 | EXTRAVERSION = 0 6 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/arch/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(.) 5 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | if(BOARD_SEARCH_DIR) 5 | add_subdirectory(${BOARD_SEARCH_DIR} ${BOARD}) 6 | else() 7 | add_subdirectory(${HPM_BOARD_DIR}) 8 | endif() 9 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/boards/hpm6200evk.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | flash bank xpi0 hpm_xpi 0x80000000 0x1000000 1 1 $_TARGET0 0xF3040000 5 | 6 | proc init_clock {} { 7 | $::_TARGET0 riscv dmi_write 0x39 0xF4002000 8 | $::_TARGET0 riscv dmi_write 0x3C 0x1 9 | 10 | $::_TARGET0 riscv dmi_write 0x39 0xF4002000 11 | $::_TARGET0 riscv dmi_write 0x3C 0x2 12 | 13 | $::_TARGET0 riscv dmi_write 0x39 0xF4000800 14 | $::_TARGET0 riscv dmi_write 0x3C 0xFFFFFFFF 15 | 16 | $::_TARGET0 riscv dmi_write 0x39 0xF4000810 17 | $::_TARGET0 riscv dmi_write 0x3C 0xFFFFFFFF 18 | 19 | $::_TARGET0 riscv dmi_write 0x39 0xF4000820 20 | $::_TARGET0 riscv dmi_write 0x3C 0xFFFFFFFF 21 | 22 | $::_TARGET0 riscv dmi_write 0x39 0xF4000830 23 | $::_TARGET0 riscv dmi_write 0x3C 0xFFFFFFFF 24 | echo "clocks has been enabled!" 25 | } 26 | 27 | $_TARGET0 configure -event reset-init { 28 | init_clock 29 | } 30 | 31 | $_TARGET0 configure -event gdb-attach { 32 | reset halt 33 | } 34 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/hpm5300_all_in_one.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | # 4 | # assumptions: 5 | # - HPM_SDK_BASE has been defined as environment variable pointing to correct hpm_sdk path 6 | # - current directory is ${HPM_SDK_BASE}/boards/openocd 7 | # 8 | # usage: 9 | # # connect hpm5300evk via ft2232, debugging single core 10 | # *unix: 11 | # $ openocd -c "set HPM_SDK_BASE ${HPM_SDK_BASE}; set BOARD hpm5300evk; set PROBE ft2232;" -f hpm5300_all_in_one.cfg 12 | # Windows DOS batch: 13 | # $ openocd -c "set HPM_SDK_BASE %HPM_SDK_BASE:\=/%; set BOARD hpm5300evk; set PROBE ft2232;" -f hpm5300_all_in_one.cfg 14 | # 15 | # # supported board to be set to BOARD: 16 | # - hpm5300evk 17 | # # supported probes to be set to PROBE: 18 | # - ft2232 19 | # - ft232 20 | # - jlink 21 | # - cmsis_dap 22 | # - nds_aice_micro 23 | 24 | set HPM_OPENOCD_CONFIG ${HPM_SDK_BASE}/boards/openocd 25 | 26 | if { ![info exists PROBE ] } { 27 | set PROBE ft2232 28 | } 29 | 30 | if { ![info exists BOARD] } { 31 | set BOARD hpm5300evk 32 | } 33 | 34 | source ${HPM_OPENOCD_CONFIG}/probes/${PROBE}.cfg 35 | source ${HPM_OPENOCD_CONFIG}/soc/hpm5300.cfg 36 | source ${HPM_OPENOCD_CONFIG}/boards/${BOARD}.cfg 37 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/hpm6300_all_in_one.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2022 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | # 4 | # assumptions: 5 | # - HPM_SDK_BASE has been defined as environment variable pointing to correct hpm_sdk path 6 | # - current directory is ${HPM_SDK_BASE}/boards/openocd 7 | # 8 | # usage: 9 | # # connect hpm6300evk via ft2232, debugging single core 10 | # *unix: 11 | # $ openocd -c "set HPM_SDK_BASE ${HPM_SDK_BASE}; set BOARD hpm6300evk; set PROBE ft2232;" -f hpm6300_all_in_one.cfg 12 | # Windows DOS batch: 13 | # $ openocd -c "set HPM_SDK_BASE %HPM_SDK_BASE:\=/%; set BOARD hpm6300evk; set PROBE ft2232;" -f hpm6300_all_in_one.cfg 14 | # 15 | # # supported board to be set to BOARD: 16 | # - hpm6300evk 17 | # - hpm6360evk 18 | # # supported probes to be set to PROBE: 19 | # - ft2232 20 | # - ft232 21 | # - jlink 22 | # - cmsis_dap 23 | # - nds_aice_micro 24 | 25 | set HPM_OPENOCD_CONFIG ${HPM_SDK_BASE}/boards/openocd 26 | 27 | if { ![info exists PROBE ] } { 28 | set PROBE ft2232 29 | } 30 | 31 | if { ![info exists BOARD] } { 32 | set BOARD hpm6300evk 33 | } 34 | 35 | source ${HPM_OPENOCD_CONFIG}/probes/${PROBE}.cfg 36 | source ${HPM_OPENOCD_CONFIG}/soc/hpm6360.cfg 37 | source ${HPM_OPENOCD_CONFIG}/boards/${BOARD}.cfg 38 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/hpm6800_all_in_one.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | # 4 | # assumptions: 5 | # - HPM_SDK_BASE has been defined as environment variable pointing to correct hpm_sdk path 6 | # - current directory is ${HPM_SDK_BASE}/boards/openocd 7 | # 8 | # usage: 9 | # # connect hpm6800evk via ft2232, debugging single core 10 | # *unix: 11 | # $ openocd -c "set HPM_SDK_BASE ${HPM_SDK_BASE}; set BOARD hpm6800evk; set PROBE ft2232;" -f hpm6800_all_in_one.cfg 12 | # Windows DOS batch: 13 | # $ openocd -c "set HPM_SDK_BASE %HPM_SDK_BASE:\=/%; set BOARD hpm6800evk; set PROBE ft2232;" -f hpm6800_all_in_one.cfg 14 | # 15 | # # supported board to be set to BOARD: 16 | # - hpm6800evk 17 | # # supported probes to be set to PROBE: 18 | # - ft2232 19 | # - ft232 20 | # - jlink 21 | # - cmsis_dap 22 | # - nds_aice_micro 23 | 24 | set HPM_OPENOCD_CONFIG ${HPM_SDK_BASE}/boards/openocd 25 | 26 | if { ![info exists PROBE ] } { 27 | set PROBE ft2232 28 | } 29 | 30 | if { ![info exists BOARD] } { 31 | set BOARD hpm6800evk 32 | } 33 | 34 | source ${HPM_OPENOCD_CONFIG}/probes/${PROBE}.cfg 35 | source ${HPM_OPENOCD_CONFIG}/soc/hpm6880.cfg 36 | source ${HPM_OPENOCD_CONFIG}/boards/${BOARD}.cfg 37 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/probes/cmsis_dap.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | bindto 0.0.0.0 5 | adapter speed 8000 6 | adapter srst delay 500 7 | 8 | source [find interface/cmsis-dap.cfg] 9 | 10 | transport select jtag 11 | reset_config srst_only 12 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/probes/ft2232.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | bindto 0.0.0.0 5 | adapter speed 10000 6 | 7 | adapter driver ftdi 8 | ftdi_vid_pid 0x0403 0x6010 9 | 10 | ftdi_layout_init 0x0208 0x020b 11 | ftdi_layout_signal nTRST -data 0x0200 -noe 0x0400 12 | ftdi_layout_signal nSRST -data 0x0100 -noe 0x0800 13 | 14 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/probes/ft232.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | bindto 0.0.0.0 5 | adapter speed 10000 6 | reset_config trst_and_srst 7 | adapter srst delay 50 8 | 9 | adapter driver ftdi 10 | ftdi_vid_pid 0x0403 0x6014 11 | 12 | ftdi_layout_init 0x0018 0x001b 13 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 14 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 15 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/probes/jlink.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | bindto 0.0.0.0 5 | adapter speed 10000 6 | adapter srst delay 500 7 | 8 | source [find interface/jlink.cfg] 9 | 10 | transport select jtag 11 | reset_config srst_only 12 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/probes/nds_aice_micro.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | bindto 0.0.0.0 5 | adapter speed 10000 6 | adapter srst delay 500 7 | reset_config srst_only 8 | 9 | adapter driver ftdi 10 | ftdi_vid_pid 0x0403 0x6010 11 | 12 | ftdi_layout_init 0x0008 0x010b 13 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 14 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 15 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/soc/hpm5300.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | set _CHIP hpm5361 5 | set _CPUTAPID 0x1000563D 6 | jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID 7 | 8 | set _TARGET0 $_CHIP.cpu0 9 | target create $_TARGET0 riscv -chain-position $_CHIP.cpu -coreid 0 10 | 11 | $_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0 12 | 13 | targets $_TARGET0 14 | 15 | source [find soc/hpm_common_csr_lite.cfg] 16 | 17 | proc reset_soc {} { 18 | $::_TARGET0 riscv dmi_write 0x39 0xF410001C 19 | $::_TARGET0 riscv dmi_write 0x3C 24000000 20 | } 21 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/soc/hpm6280-single-core.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | set _CHIP hpm6280 5 | set _CPUTAPID 0x1000563D 6 | jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID 7 | 8 | set _TARGET0 $_CHIP.cpu0 9 | target create $_TARGET0 riscv -chain-position $_CHIP.cpu -coreid 0 10 | 11 | $_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0 12 | 13 | targets $_TARGET0 14 | 15 | source [find soc/hpm_common_csr.cfg] 16 | 17 | proc reset_soc {} { 18 | $::_TARGET0 riscv dmi_write 0x39 0xF40C001C 19 | $::_TARGET0 riscv dmi_write 0x3C 24000000 20 | } 21 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/soc/hpm6360.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | set _CHIP hpm6360 5 | set _CPUTAPID 0x1000563D 6 | jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID 7 | 8 | set _TARGET0 $_CHIP.cpu0 9 | target create $_TARGET0 riscv -chain-position $_CHIP.cpu -coreid 0 10 | 11 | $_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0 12 | 13 | targets $_TARGET0 14 | 15 | source [find soc/hpm_common_csr.cfg] 16 | 17 | proc reset_soc {} { 18 | $::_TARGET0 riscv dmi_write 0x39 0xF40C001C 19 | $::_TARGET0 riscv dmi_write 0x3C 24000000 20 | } 21 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/soc/hpm6750-single-core.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | set _CHIP hpm6750 5 | set _CPUTAPID 0x1000563D 6 | jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID 7 | 8 | set _TARGET0 $_CHIP.cpu0 9 | target create $_TARGET0 riscv -chain-position $_CHIP.cpu -coreid 0 10 | 11 | $_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0 12 | 13 | targets $_TARGET0 14 | 15 | source [find soc/hpm_common_csr.cfg] 16 | 17 | proc reset_soc {} { 18 | $::_TARGET0 riscv dmi_write 0x39 0xF40C001C 19 | $::_TARGET0 riscv dmi_write 0x3C 24000000 20 | } 21 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/soc/hpm6880.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | set _CHIP hpm6880 5 | set _CPUTAPID 0x1000563D 6 | jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID 7 | 8 | set _TARGET0 $_CHIP.cpu0 9 | target create $_TARGET0 riscv -chain-position $_CHIP.cpu -coreid 0 10 | 11 | $_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0 12 | 13 | targets $_TARGET0 14 | 15 | source [find soc/hpm_common_csr.cfg] 16 | 17 | proc reset_soc {} { 18 | $::_TARGET0 riscv dmi_write 0x39 0xF410001C 19 | $::_TARGET0 riscv dmi_write 0x3C 24000000 20 | } 21 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/boards/openocd/soc/hpm6e80-single-core.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | set _CHIP hpm6e00 5 | set _CPUTAPID 0x1000563D 6 | jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID 7 | 8 | set _TARGET0 $_CHIP.cpu0 9 | target create $_TARGET0 riscv -chain-position $_CHIP.cpu -coreid 0 10 | 11 | $_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0 12 | 13 | targets $_TARGET0 14 | 15 | source [find soc/hpm_common_csr.cfg] 16 | 17 | proc reset_soc {} { 18 | $::_TARGET0 riscv dmi_write 0x39 0xF410001C 19 | $::_TARGET0 riscv dmi_write 0x3C 24000000 20 | } 21 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/ccache.cmake: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | 3 | # Use ccache if it is installed, unless the user explicitly disables 4 | # it by setting USE_CCACHE=0. 5 | 6 | if(USE_CCACHE STREQUAL "0") 7 | else() 8 | find_program(CCACHE_FOUND ccache) 9 | if(CCACHE_FOUND) 10 | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) 11 | set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) 12 | endif() 13 | endif() 14 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/cleanup.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | get_filename_component(BINARY_DIR ${BIN_DIR} REALPATH) 5 | get_filename_component(SOURCE_DIR ${SRC_DIR} REALPATH) 6 | string(FIND ${SRC_DIR} ${BIN_DIR} INDEX) 7 | if (NOT INDEX EQUAL -1) 8 | message(FATAL_ERROR "Can not run distclean in in-source build folder") 9 | endif() 10 | 11 | file(GLOB contents ${BIN_DIR}/*) 12 | foreach(f ${contents}) 13 | if(EXISTS ${f}) 14 | file(REMOVE_RECURSE ${f}) 15 | endif() 16 | endforeach() 17 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/compare_target_sdk_version.cmake: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | 3 | cmake_minimum_required(VERSION 3.13.0) 4 | 5 | include(${HPM_SDK_BASE}/cmake/hex.cmake) 6 | 7 | if(REQUIRED_MINIMUM_SDK_VERSION) 8 | set(min_major 0) 9 | set(min_minor 0) 10 | set(min_patch 0) 11 | string(REGEX MATCH "^([0-9]*)\.([0-9]*)\.([0-9]*)" out ${REQUIRED_MINIMUM_SDK_VERSION}) 12 | if(out) 13 | set(min_major ${CMAKE_MATCH_1}) 14 | set(min_minor ${CMAKE_MATCH_2}) 15 | set(min_patch ${CMAKE_MATCH_3}) 16 | endif() 17 | if((${min_major} STRGREATER ${SDK_VERSION_MAJOR}) OR (${min_minor} STRGREATER ${SDK_VERSION_MINOR}) OR (${min_patch} STRGREATER ${SDK_PATCHLEVEL})) 18 | message(FATAL_ERROR "Current SDK (${SDK_VERSION_MAJOR}.${SDK_VERSION_MINOR}.${SDK_PATCHLEVEL}) is not supported, the required minimum SDK version for this application is ${min_major}.${min_minor}.${min_patch}") 19 | endif() 20 | unset(min_major) 21 | unset(min_minor) 22 | unset(min_patch) 23 | endif() 24 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/extra_flags.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | separate_arguments(EXTRA_C_FLAGS_LIST UNIX_COMMAND ${EXTRA_C_FLAGS}) 5 | separate_arguments(EXTRA_LD_FLAGS_LIST UNIX_COMMAND ${EXTRA_LD_FLAGS}) 6 | separate_arguments(EXTRA_LD_SYMBOLS_LIST UNIX_COMMAND ${EXTRA_LD_SYMBOLS}) 7 | separate_arguments(EXTRA_AS_FLAGS_LIST UNIX_COMMAND ${EXTRA_AS_FLAGS}) 8 | 9 | if(EXTRA_C_FLAGS_LIST) 10 | foreach(flag ${EXTRA_C_FLAGS_LIST}) 11 | sdk_compile_options(${flag}) 12 | endforeach() 13 | endif() 14 | 15 | if(EXTRA_AS_FLAGS_LIST) 16 | foreach(flag ${EXTRA_AS_FLAGS_LIST}) 17 | sdk_compile_options(${flag}) 18 | endforeach() 19 | endif() 20 | 21 | if(EXTRA_LD_FLAGS_LIST) 22 | foreach(flag ${EXTRA_LD_FLAGS_LIST}) 23 | sdk_ld_options(${EXTRA_LD_FLAGS}) 24 | endforeach() 25 | endif() 26 | 27 | if(EXTRA_LD_SYMBOLS_LIST) 28 | foreach(flag ${EXTRA_LD_SYMBOLS_LIST}) 29 | sdk_linker_global_symbols(${EXTRA_LD_SYMBOLS}) 30 | endforeach() 31 | endif() 32 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/gen_version_h.cmake: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | 3 | cmake_minimum_required(VERSION 3.13.0) 4 | 5 | if(NOT DEFINED BUILD_VERSION) 6 | find_package(Git QUIET) 7 | if(GIT_FOUND AND EXISTS ${HPM_SDK_BASE}/.git) 8 | execute_process( 9 | COMMAND ${GIT_EXECUTABLE} describe --abbrev=12 --always 10 | WORKING_DIRECTORY ${HPM_SDK_BASE} 11 | OUTPUT_VARIABLE BUILD_VERSION 12 | OUTPUT_STRIP_TRAILING_WHITESPACE 13 | ERROR_STRIP_TRAILING_WHITESPACE 14 | ERROR_VARIABLE stderr 15 | RESULT_VARIABLE return_code 16 | ) 17 | if(return_code) 18 | message(STATUS "git describe failed: ${stderr}") 19 | elseif(NOT "${stderr}" STREQUAL "") 20 | message(STATUS "git describe warned: ${stderr}") 21 | endif() 22 | endif() 23 | endif() 24 | 25 | configure_file(${HPM_SDK_BASE}/hpm_sdk_version.h.in ${OUT_FILE}) 26 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/hpm-sdk-config.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | if(NOT DEFINED ENV{HPM_SDK_BASE}) 5 | message(FATAL_ERROR "HPM_SDK_BASE is not set yet") 6 | endif() 7 | 8 | set(HPM_SDK_BASE $ENV{HPM_SDK_BASE}) 9 | set(CMAKE_EXPORT_COMPILE_COMMANDS ON) 10 | 11 | include(${HPM_SDK_BASE}/cmake/application.cmake) 12 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/ide.cmake: -------------------------------------------------------------------------------- 1 | # Copyright 2023 hpmicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | if(EXCLUDED_IDES) 5 | foreach(ide IN ITEMS ${EXCLUDED_IDES}) 6 | if(${ide} STREQUAL "iar") 7 | set(EXCLUDED_IDE_IAR 1) 8 | elseif(${ide} STREQUAL "ses") 9 | set(EXCLUDED_IDE_SES 1) 10 | endif() 11 | endforeach() 12 | endif() 13 | 14 | include(${HPM_SDK_BASE}/cmake/ide/iar.cmake) 15 | include(${HPM_SDK_BASE}/cmake/ide/segger.cmake) 16 | 17 | function (generate_ide_projects) 18 | if(NOT EXCLUDED_IDE_IAR OR NOT ${EXCLUDED_IDE_IAR}) 19 | generate_iar_project() 20 | endif() 21 | if(NOT EXCLUDED_IDE_SES OR NOT ${EXCLUDED_IDE_SES}) 22 | generate_ses_project() 23 | endif() 24 | endfunction() 25 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/python.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | find_program(python_exec "python3") 5 | if(python_exec) 6 | execute_process( 7 | COMMAND 8 | "${python_exec}" -c "import sys; sys.stdout.write('.'.join([str(x) for x in system.version_info[:2]]))" 9 | RESULT_VARIABLE result 10 | OUTPUT_VARIABLE version 11 | ERROR_QUIET 12 | OUTPUT_STRIP_TRAILING_WHITESPACE 13 | ) 14 | else() 15 | # python3 does not exist on Windows once Python 3.x is installed, but python does 16 | find_program(python_exec "python") 17 | if(python_exec) 18 | execute_process( 19 | COMMAND 20 | "${python_exec}" -c "import sys; sys.stdout.write('.'.join([str(x) for x in system.version_info[:2]]))" 21 | RESULT_VARIABLE result 22 | OUTPUT_VARIABLE version 23 | ERROR_QUIET 24 | OUTPUT_STRIP_TRAILING_WHITESPACE 25 | ) 26 | else() 27 | message(FATAL_ERROR "python can't be found in $ENV{PATH}") 28 | endif() 29 | endif() 30 | set(PYTHON_EXECUTABLE ${python_exec}) 31 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/toolchain/gcc.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_compile_options("-Wall") 5 | sdk_compile_options("-Wundef") 6 | sdk_compile_options("-Wno-format") 7 | sdk_compile_options("-fomit-frame-pointer") 8 | sdk_compile_options("-fno-builtin") 9 | sdk_compile_options("-ffunction-sections") 10 | sdk_compile_options("-fdata-sections") 11 | 12 | if("${TOOLCHAIN_VARIANT}" STREQUAL "nds-gcc") 13 | # By default, Andes' gcc toolchain uses lld as linker 14 | include(${HPM_SDK_BASE}/cmake/toolchain/lld.cmake) 15 | elseif("${TOOLCHAIN_VARIANT}" STREQUAL "gcc") 16 | include(${HPM_SDK_BASE}/cmake/toolchain/ld.cmake) 17 | 18 | if(NOT HPM_SDK_LD_NO_NANO_SPECS) 19 | sdk_ld_options("--specs=nano.specs") 20 | sdk_ld_options("-u _printf_float") 21 | sdk_ld_options("-u _scanf_float") 22 | endif() 23 | 24 | endif() 25 | 26 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/toolchain/ld.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_ld_options("-static") 5 | sdk_ld_options("-nostartfiles") 6 | sdk_ld_options("-Wl,--gc-sections") 7 | sdk_ld_options("-Wl,--print-memory-usage") 8 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/toolchain/lld.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_ld_options("-static") 5 | sdk_ld_options("-nostartfiles") 6 | sdk_ld_options("-Wl,--gc-sections") 7 | sdk_ld_options("-Wl,--orphan-handling=place") 8 | #sdk_zcc_ld_options("-Wl,--andes-relax-gp") 9 | sdk_zcc_ld_options("-ffunction-sections") 10 | sdk_zcc_ld_options("-fdata-sections") 11 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/toolchain/llvm.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_compile_options("-Wall") 5 | sdk_compile_options("-Wundef") 6 | sdk_compile_options("-Wno-format") 7 | sdk_compile_options("-fomit-frame-pointer") 8 | sdk_compile_options("-fno-builtin") 9 | sdk_compile_options("-ffunction-sections") 10 | sdk_compile_options("-fdata-sections") 11 | 12 | include(${HPM_SDK_BASE}/cmake/toolchain/lld.cmake) 13 | 14 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/cmake/toolchain/zcc.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_compile_options("-Wall") 5 | sdk_compile_options("-Wundef") 6 | sdk_compile_options("-Wno-format") 7 | sdk_compile_options("-Wno-ignored-attributes") 8 | sdk_compile_options("-fomit-frame-pointer") 9 | sdk_compile_options("-fno-builtin") 10 | sdk_compile_options("-ffunction-sections") 11 | sdk_compile_options("-fdata-sections") 12 | 13 | sdk_zcc_compile_options("--target=riscv32-unknown-elf") 14 | include(${HPM_SDK_BASE}/cmake/toolchain/lld.cmake) 15 | sdk_zcc_ld_options("--target=riscv32-unknown-elf") 16 | 17 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/components/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021-2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | add_subdirectory_ifdef(CONFIG_ENET_PHY enet_phy) 5 | add_subdirectory_ifdef(CONFIG_TSW_PHY tsw_phy) 6 | add_subdirectory(debug_console) 7 | add_subdirectory_ifdef(CONFIG_CAMERA camera) 8 | add_subdirectory_ifdef(CONFIG_CODEC codec) 9 | add_subdirectory_ifdef(CONFIG_USB_DEVICE usb/device) 10 | add_subdirectory_ifdef(CONFIG_TOUCH touch) 11 | add_subdirectory_ifdef(CONFIG_HPM_ADC adc) 12 | add_subdirectory_ifdef(CONFIG_HPM_SPI spi) 13 | add_subdirectory_ifdef(CONFIG_DMA_MGR dma_mgr) 14 | add_subdirectory_ifdef(CONFIG_IPC_EVENT_MGR ipc_event_mgr) 15 | add_subdirectory_ifdef(CONFIG_HPM_SCCB sccb) 16 | add_subdirectory_ifdef(CONFIG_HPM_SMBUS smbus) 17 | add_subdirectory_ifdef(CONFIG_HPM_UART_LIN uart_lin) 18 | add_subdirectory_ifdef(CONFIG_EEPROM_EMULATION eeprom_emulation) 19 | add_subdirectory_ifdef(CONFIG_SPI_NOR_FLASH serial_nor) 20 | add_subdirectory_ifdef(CONFIG_HPM_PANEL panel) 21 | add_subdirectory_ifdef(CONFIG_HPM_PPI ppi) 22 | add_subdirectory_ifdef(CONFIG_HPM_I2S_OVER_SPI i2s_over_spi) 23 | add_subdirectory_ifdef(CONFIG_HPM_PLB_QEI_ENCODER plb/qei_encoder) 24 | add_subdirectory_ifdef(CONFIG_HPM_PLB_LIN_CLOCK_DETECTION plb/lin_clock_detection) 25 | add_subdirectory_ifdef(CONFIG_HPM_PLB_FILTER plb/filter) 26 | add_subdirectory_ifdef(CONFIG_HPM_PMBUS pmbus smbus) 27 | add_subdirectory_ifdef(CONFIG_HPM_I2C i2c) 28 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/components/debug_console/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021,2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(.) 5 | sdk_src(hpm_debug_console.c) 6 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/components/debug_console/hpm_debug_console.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2024 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef _HPM_DEBUG_CONSOLE_H 9 | #define _HPM_DEBUG_CONSOLE_H 10 | #include "hpm_common.h" 11 | 12 | #define CONSOLE_TYPE_UART 0 13 | 14 | typedef struct { 15 | uint32_t type; 16 | uint32_t base; 17 | uint32_t src_freq_in_hz; 18 | uint32_t baudrate; 19 | } console_config_t; 20 | 21 | 22 | #if defined(__cplusplus) 23 | extern "C" { 24 | #endif /* __cplusplus */ 25 | 26 | hpm_stat_t console_init(console_config_t *cfg); 27 | 28 | uint8_t console_receive_byte(void); 29 | uint8_t console_try_receive_byte(void); 30 | void console_send_byte(uint8_t c); 31 | 32 | #if defined(__cplusplus) 33 | } 34 | #endif /* __cplusplus */ 35 | 36 | #endif /* _HPM_CONSOLE_H */ 37 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/components/dma_mgr/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2022-2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(.) 5 | sdk_src(hpm_dma_mgr.c) 6 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/components/usb/device/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(.) 5 | sdk_src(hpm_usb_device.c) 6 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/drivers/inc/hpm_enc_pos_drv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2023 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_ENC_POS_COMMON_H 9 | #define HPM_ENC_POS_COMMON_H 10 | 11 | #include "hpm_common.h" 12 | 13 | /** 14 | * 15 | * @brief enc pos driver APIs 16 | * @defgroup enc_pos_interface Encode Position driver APIs 17 | * @ingroup io_interface 18 | * @{ 19 | */ 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | /** 26 | * @brief caculate degree of angle from pos 27 | * 28 | * @param[in] pos position value 29 | * @return degree of angle. 30 | */ 31 | float encoder_position_to_deg(uint32_t pos); 32 | 33 | /** 34 | * @brief caculate posistion from degree of angle 35 | * 36 | * @param[in] deg degree of angle 37 | * @return position value. 38 | */ 39 | uint32_t encoder_deg_to_position(float deg); 40 | 41 | /** 42 | * @brief caculate radian of angle from pos 43 | * 44 | * @param[in] pos position value 45 | * @return radian of angle. 46 | */ 47 | float encoder_position_to_rad(uint32_t pos); 48 | 49 | /** 50 | * @brief caculate posistion from radian of angle 51 | * 52 | * @param[in] rad radian of angle 53 | * @return position value. 54 | */ 55 | uint32_t encoder_rad_to_position(float rad); 56 | 57 | #ifdef __cplusplus 58 | } 59 | #endif 60 | 61 | /** 62 | * @} 63 | */ 64 | 65 | #endif /* HPM_ENC_POS_COMMON_H */ 66 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/drivers/inc/hpm_mipi_dsi_phy_drv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2023 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_MIPI_DSI_PHY_DRV_H 9 | #define HPM_MIPI_DSI_PHY_DRV_H 10 | 11 | /** 12 | * @brief MIPI_DSI_PHY APIs 13 | * @defgroup mipi_dsi_phy_interface MIPI_DSI_PHY driver APIs 14 | * @ingroup mipi_dsi_phy_interfaces 15 | * @{ 16 | */ 17 | 18 | #include "hpm_common.h" 19 | #include "hpm_soc.h" 20 | #include "hpm_mipi_dsi_phy_regs.h" 21 | 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | typedef struct mipi_dsi_phy_config { 28 | uint32_t lane_mbps; /*!< lane speed */ 29 | uint8_t lanes; /*!< number of lane */ 30 | } mipi_dsi_phy_config_t; 31 | 32 | /** 33 | * @brief MIPI_DSI_PHY init 34 | * 35 | * @param ptr MIPI_DSI_PHY base address 36 | * @param cfg config of MIPI_DSI_PHY 37 | */ 38 | void mipi_dsi_phy_init(MIPI_DSI_PHY_Type *ptr, mipi_dsi_phy_config_t *cfg); 39 | 40 | #ifdef __cplusplus 41 | } 42 | #endif 43 | 44 | /** 45 | * @} 46 | */ 47 | #endif /* HPM_MIPI_DSI_PHY_DRV_H */ 48 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/drivers/inc/hpm_mono_drv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_MONO_DRV_H 9 | #define HPM_MONO_DRV_H 10 | 11 | #include "hpm_common.h" 12 | #include "hpm_mono_regs.h" 13 | 14 | /** 15 | * 16 | * @brief MONO driver APIs 17 | * @defgroup mono_interface MONO driver APIs 18 | * @ingroup io_interfaces 19 | * @{ 20 | */ 21 | 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | /** 28 | * @brief Get counter 29 | * 30 | * @param[in] ptr MONO base address 31 | * 32 | * @return 64 bits counter value 33 | */ 34 | static inline uint64_t mono_get_counter(MONO_Type *ptr) 35 | { 36 | return (uint64_t)(((uint64_t)(ptr->MONOH) << 32) 37 | | (uint64_t)(ptr->MONOL)); 38 | } 39 | 40 | /** 41 | * @brief Update MONO counter by 1 42 | * 43 | * @param[in] ptr MONO base 44 | */ 45 | static inline void mono_update(MONO_Type *ptr) 46 | { 47 | ptr->MONOL = 1; 48 | } 49 | 50 | #ifdef __cplusplus 51 | } 52 | #endif 53 | /** 54 | * @} 55 | */ 56 | #endif /* HPM_MONO_DRV_H */ 57 | 58 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/drivers/src/hpm_mchtmr_drv.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #include "hpm_mchtmr_drv.h" 9 | 10 | void mchtmr_init_counter(MCHTMR_Type *ptr, uint64_t v) 11 | { 12 | volatile uint32_t *p = (volatile uint32_t *) &ptr->MTIME; 13 | /* 14 | * When [31:29] == 7, low 32 bits need to be set to 0 first, 15 | * then set high 32 bits and low 32 bits; otherwise, 16 | * low 32 bit can be set firstly then high 32 bits. 17 | */ 18 | if ((v & 0xE0000000) == 0xE0000000) { 19 | *p = 0; 20 | *(p + 1) = v >> 32; 21 | *p = v & 0xFFFFFFFF; 22 | } else { 23 | *p = v & 0xFFFFFFFF; 24 | *(p + 1) = v >> 32; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/hpm_sdk_version.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_SDK_VERSION_H 9 | #define HPM_SDK_VERSION_H 10 | 11 | #cmakedefine SDK_VERSION_CODE @SDK_VERSION_CODE@ 12 | #define SDK_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 13 | 14 | #define SDKVERSION @SDKVERSION@ 15 | #define SDK_VERSION_NUMBER @SDK_VERSION_NUMBER@ 16 | #define SDK_VERSION_MAJOR @SDK_VERSION_MAJOR@ 17 | #define SDK_VERSION_MINOR @SDK_VERSION_MINOR@ 18 | #define SDK_PATCHLEVEL @SDK_PATCHLEVEL@ 19 | #define SDK_VERSION_STRING @SDK_VERSION_STRING@ 20 | 21 | #define BUILD_VERSION @BUILD_VERSION@ 22 | 23 | 24 | #endif /* HPM_SDK_VERSION_H */ 25 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/CMSIS/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | add_subdirectory_ifdef(CONFIG_CMSIS_RTOS2 RTOS2) 5 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryrb/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021-2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(.) 5 | sdk_src(chry_ringbuffer.c) 6 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/class/cdc/usbd_cdc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2024, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USBD_CDC_H 7 | #define USBD_CDC_H 8 | 9 | // legacy for old version 10 | 11 | #include "usbd_cdc_acm.h" 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/class/cdc/usbd_cdc_acm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USBD_CDC_ACM_H 7 | #define USBD_CDC_ACM_H 8 | 9 | #include "usb_cdc.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | /* Init cdc acm interface driver */ 16 | struct usbd_interface *usbd_cdc_acm_init_intf(uint8_t busid, struct usbd_interface *intf); 17 | 18 | /* Setup request command callback api */ 19 | void usbd_cdc_acm_set_line_coding(uint8_t busid, uint8_t intf, struct cdc_line_coding *line_coding); 20 | void usbd_cdc_acm_get_line_coding(uint8_t busid, uint8_t intf, struct cdc_line_coding *line_coding); 21 | void usbd_cdc_acm_set_dtr(uint8_t busid, uint8_t intf, bool dtr); 22 | void usbd_cdc_acm_set_rts(uint8_t busid, uint8_t intf, bool rts); 23 | void usbd_cdc_acm_send_break(uint8_t busid, uint8_t intf); 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | 29 | #endif /* USBD_CDC_ACM_H */ 30 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/class/cdc/usbd_cdc_ecm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USBD_CDC_ECM_H 7 | #define USBD_CDC_ECM_H 8 | 9 | #include "usb_cdc.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | /* Init cdc ecm interface driver */ 16 | struct usbd_interface *usbd_cdc_ecm_init_intf(struct usbd_interface *intf, const uint8_t int_ep, const uint8_t out_ep, const uint8_t in_ep); 17 | 18 | void usbd_cdc_ecm_set_connect(bool connect, uint32_t speed[2]); 19 | 20 | void usbd_cdc_ecm_data_recv_done(uint32_t len); 21 | void usbd_cdc_ecm_data_send_done(uint32_t len); 22 | int usbd_cdc_ecm_start_write(uint8_t *buf, uint32_t len); 23 | int usbd_cdc_ecm_start_read(uint8_t *buf, uint32_t len); 24 | 25 | #ifdef CONFIG_USBDEV_CDC_ECM_USING_LWIP 26 | #include "lwip/netif.h" 27 | #include "lwip/pbuf.h" 28 | struct pbuf *usbd_cdc_ecm_eth_rx(void); 29 | int usbd_cdc_ecm_eth_tx(struct pbuf *p); 30 | #endif 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | #endif /* USBD_CDC_ECM_H */ 37 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/class/hid/usbd_hid.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USBD_HID_H 7 | #define USBD_HID_H 8 | 9 | #include "usb_hid.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | /* Init hid interface driver */ 16 | struct usbd_interface *usbd_hid_init_intf(uint8_t busid, struct usbd_interface *intf, const uint8_t *desc, uint32_t desc_len); 17 | 18 | /* Register desc api */ 19 | void usbd_hid_descriptor_register(uint8_t busid, uint8_t intf_num, const uint8_t *desc); 20 | void usbd_hid_report_descriptor_register(uint8_t busid, uint8_t intf_num, const uint8_t *desc, uint32_t desc_len); 21 | 22 | /* Setup request command callback api */ 23 | void usbd_hid_get_report(uint8_t busid, uint8_t intf, uint8_t report_id, uint8_t report_type, uint8_t **data, uint32_t *len); 24 | uint8_t usbd_hid_get_idle(uint8_t busid, uint8_t intf, uint8_t report_id); 25 | uint8_t usbd_hid_get_protocol(uint8_t busid, uint8_t intf); 26 | void usbd_hid_set_report(uint8_t busid, uint8_t intf, uint8_t report_id, uint8_t report_type, uint8_t *report, uint32_t report_len); 27 | void usbd_hid_set_idle(uint8_t busid, uint8_t intf, uint8_t report_id, uint8_t duration); 28 | void usbd_hid_set_protocol(uint8_t busid, uint8_t intf, uint8_t protocol); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | 34 | #endif /* USBD_HID_H */ 35 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/class/hub/usbh_hub.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USBH_HUB_H 7 | #define USBH_HUB_H 8 | 9 | #include "usb_hub.h" 10 | 11 | struct usbh_hub; 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | int usbh_hub_set_feature(struct usbh_hub *hub, uint8_t port, uint8_t feature); 18 | int usbh_hub_clear_feature(struct usbh_hub *hub, uint8_t port, uint8_t feature); 19 | 20 | void usbh_hub_thread_wakeup(struct usbh_hub *hub); 21 | 22 | int usbh_hub_initialize(struct usbh_bus *bus); 23 | int usbh_hub_deinitialize(struct usbh_bus *bus); 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | 29 | #endif /* USBH_HUB_H */ 30 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/class/msc/usbd_msc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, sakumisu 3 | * Copyright (c) 2024, zhihong chen 4 | * 5 | * SPDX-License-Identifier: Apache-2.0 6 | */ 7 | #ifndef USBD_MSC_H 8 | #define USBD_MSC_H 9 | 10 | #include "usb_msc.h" 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /* Init msc interface driver */ 17 | struct usbd_interface *usbd_msc_init_intf(uint8_t busid, struct usbd_interface *intf, 18 | const uint8_t out_ep, 19 | const uint8_t in_ep); 20 | 21 | void usbd_msc_get_cap(uint8_t busid, uint8_t lun, uint32_t *block_num, uint32_t *block_size); 22 | int usbd_msc_sector_read(uint8_t busid, uint8_t lun, uint32_t sector, uint8_t *buffer, uint32_t length); 23 | int usbd_msc_sector_write(uint8_t busid, uint8_t lun, uint32_t sector, uint8_t *buffer, uint32_t length); 24 | 25 | void usbd_msc_set_readonly(uint8_t busid, bool readonly); 26 | bool usbd_msc_get_popup(uint8_t busid); 27 | 28 | void usbd_msc_polling(uint8_t busid); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | 34 | #endif /* USBD_MSC_H */ 35 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/class/video/usbd_video.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USBD_VIDEO_H 7 | #define USBD_VIDEO_H 8 | 9 | #include "usb_video.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | /* Init video interface driver */ 16 | struct usbd_interface *usbd_video_init_intf(uint8_t busid, struct usbd_interface *intf, 17 | uint32_t dwFrameInterval, 18 | uint32_t dwMaxVideoFrameSize, 19 | uint32_t dwMaxPayloadTransferSize); 20 | 21 | void usbd_video_open(uint8_t busid, uint8_t intf); 22 | void usbd_video_close(uint8_t busid, uint8_t intf); 23 | 24 | bool usbd_video_stream_split_transfer(uint8_t busid, uint8_t ep); 25 | int usbd_video_stream_start_write(uint8_t busid, uint8_t ep, uint8_t *ep_buf0, uint8_t *ep_buf1, uint32_t ep_bufsize, uint8_t *stream_buf, uint32_t stream_len); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | #endif /* USBD_VIDEO_H */ 32 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/class/wireless/usbd_rndis.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USBD_RNDIS_H 7 | #define USBD_RNDIS_H 8 | 9 | #include "usb_cdc.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | /* Init rndis interface driver */ 16 | struct usbd_interface *usbd_rndis_init_intf(struct usbd_interface *intf, 17 | const uint8_t out_ep, 18 | const uint8_t in_ep, 19 | const uint8_t int_ep, uint8_t mac[6]); 20 | 21 | void usbd_rndis_data_recv_done(uint32_t len); 22 | void usbd_rndis_data_send_done(uint32_t len); 23 | 24 | #ifdef CONFIG_USBDEV_RNDIS_USING_LWIP 25 | struct pbuf *usbd_rndis_eth_rx(void); 26 | int usbd_rndis_eth_tx(struct pbuf *p); 27 | #endif 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | 33 | #endif /* USBD_RNDIS_H */ 34 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/common/usb_errno.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2023, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USB_ERRNO_H 7 | #define USB_ERRNO_H 8 | 9 | #define USB_ERR_NOMEM 1 10 | #define USB_ERR_INVAL 2 11 | #define USB_ERR_NODEV 3 12 | #define USB_ERR_NOTCONN 4 13 | #define USB_ERR_NOTSUPP 5 14 | #define USB_ERR_BUSY 6 15 | #define USB_ERR_RANGE 7 16 | #define USB_ERR_STALL 8 17 | #define USB_ERR_BABBLE 9 18 | #define USB_ERR_NAK 10 19 | #define USB_ERR_DT 11 20 | #define USB_ERR_IO 12 21 | #define USB_ERR_SHUTDOWN 13 22 | #define USB_ERR_TIMEOUT 14 23 | 24 | #endif /* USB_ERRNO_H */ 25 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/cherryusb/common/usb_version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2024, sakumisu 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | #ifndef USB_VERSION_H 7 | #define USB_VERSION_H 8 | 9 | #ifdef CHERRYUSB_VERSION 10 | #warning "Please do not define CHERRYUSB_VERSION in usb_config.h" 11 | #undef CHERRYUSB_VERSION 12 | #endif 13 | #ifdef CHERRYUSB_VERSION_STR 14 | #warning "Please do not define CHERRYUSB_VERSION_STR in usb_config.h" 15 | #undef CHERRYUSB_VERSION_STR 16 | #endif 17 | 18 | #define CHERRYUSB_VERSION 0x010401 19 | #define CHERRYUSB_VERSION_STR "v1.4.1" 20 | 21 | #endif -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/eclipse_threadx/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | if(CONFIG_ECLIPSE_THREADX OR CONFIG_ECLIPSE_THREADX_FILEX 5 | OR CONFIG_ECLIPSE_THREADX_USBX OR CONFIG_ECLIPSE_THREADX_GUIX) 6 | set(THREADX_ARCH "riscv32") 7 | set(THREADX_TOOLCHAIN "gnu") 8 | endif() 9 | 10 | add_subdirectory_ifdef(CONFIG_ECLIPSE_THREADX threadx) 11 | add_subdirectory_ifdef(CONFIG_ECLIPSE_THREADX_FILEX filex) 12 | add_subdirectory_ifdef(CONFIG_ECLIPSE_THREADX_USBX usbx) 13 | add_subdirectory_ifdef(CONFIG_ECLIPSE_THREADX_NETXDUO netxduo) 14 | add_subdirectory_ifdef(CONFIG_ECLIPSE_THREADX_GUIX guix) 15 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/fatfs/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(src/common) 5 | sdk_src(src/common/ff.c) 6 | sdk_src(src/common/ffunicode.c) 7 | 8 | add_subdirectory(src/portable) 9 | 10 | if(DEFINED CONFIG_SDMMC) 11 | sdk_compile_definitions(-DSD_FATFS_ENABLE=1) 12 | endif() 13 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/fatfs/src/portable/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(.) 5 | sdk_src(diskio.c) 6 | 7 | sdk_inc_ifdef(CONFIG_USB_FATFS usb) 8 | sdk_src_ifdef(CONFIG_USB_FATFS_TINYUSB usb/hpm_fatfs_tinyusb.c) 9 | sdk_src_ifdef(CONFIG_USB_FATFS_CHERRYUSB usb/hpm_fatfs_cherryusb.c) 10 | 11 | if(NOT DEFINED CONFIG_HPM_SPI_SDCARD) 12 | sdk_inc_ifdef(CONFIG_SDMMC sdxc) 13 | sdk_src_ifdef(CONFIG_SDMMC sdxc/hpm_sdmmc_disk.c) 14 | sdk_inc_ifdef(CONFIG_RAMFLASH ram_flash) 15 | sdk_src_ifdef(CONFIG_RAMFLASH ram_flash/hpm_ram_flash.c) 16 | else() 17 | sdk_inc_ifdef(CONFIG_HPM_SPI_SDCARD spi_sd) 18 | sdk_src_ifdef(CONFIG_HPM_SPI_SDCARD spi_sd/hpm_spi_sd_disk.c) 19 | endif() -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/fatfs/src/portable/ram_flash/hpm_ram_flash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2023 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_RAM_FLASH_DISK_H 9 | #define HPM_RAM_FLASH_DISK_H 10 | 11 | #include "ff.h" 12 | #include "diskio.h" 13 | 14 | 15 | #if defined(__cplusplus) 16 | extern "C" { 17 | #endif /* __cplusplus */ 18 | 19 | DSTATUS flash_disk_initialize(BYTE pdrv); 20 | 21 | DSTATUS flash_disk_status(BYTE pdrv); 22 | 23 | DSTATUS flash_disk_read(BYTE pdrv, BYTE *buff, LBA_t sector, UINT count); 24 | 25 | DSTATUS flash_disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count); 26 | 27 | DRESULT flash_disk_ioctl(BYTE pdrv, BYTE cmd, void *buff); 28 | 29 | #if defined(__cplusplus) 30 | } 31 | #endif /* __cplusplus */ 32 | 33 | #endif /* HPM_SPI_SD_DISK_H */ 34 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/fatfs/src/portable/sdxc/hpm_sdmmc_disk.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2022 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_SDMMC_DISK_H 9 | #define HPM_SDMMC_DISK_H 10 | 11 | #include "ff.h" 12 | #include "diskio.h" 13 | 14 | 15 | 16 | #define MAX_ALIGNED_BUF_SIZE (16384U) 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | DSTATUS sd_disk_initialize(BYTE pdrv); 23 | 24 | DSTATUS sd_disk_deinitialize(BYTE pdrv); 25 | 26 | DSTATUS sd_disk_status(BYTE pdrv); 27 | 28 | DSTATUS sd_disk_read(BYTE pdrv, BYTE *buff, LBA_t sector, UINT count); 29 | 30 | DSTATUS sd_disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count); 31 | 32 | DRESULT sd_disk_ioctl(BYTE pdrv, BYTE cmd, void *buff); 33 | 34 | DSTATUS emmc_disk_initialize(BYTE pdrv); 35 | 36 | DSTATUS emmc_disk_deinitialize(BYTE pdrv); 37 | 38 | DSTATUS emmc_disk_status(BYTE pdrv); 39 | 40 | DSTATUS emmc_disk_read(BYTE pdrv, BYTE *buff, LBA_t sector, UINT count); 41 | 42 | DSTATUS emmc_disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count); 43 | 44 | DRESULT emmc_disk_ioctl(BYTE pdrv, BYTE cmd, void *buff); 45 | 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif /* HPM_SDMMC_DISK_H */ 52 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/fatfs/src/portable/spi_sd/hpm_spi_sd_disk.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2023 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_SPI_SD_DISK_H 9 | #define HPM_SPI_SD_DISK_H 10 | 11 | #include "ff.h" 12 | #include "diskio.h" 13 | #include "hpm_spi_sdcard.h" 14 | #include "hpm_sdmmc_card.h" 15 | 16 | #if defined(__cplusplus) 17 | extern "C" { 18 | #endif /* __cplusplus */ 19 | 20 | DSTATUS spi_sd_disk_initialize(BYTE pdrv); 21 | 22 | DSTATUS spi_sd_disk_deinitialize(BYTE pdrv); 23 | 24 | DSTATUS spi_sd_disk_status(BYTE pdrv); 25 | 26 | DSTATUS spi_sd_disk_read(BYTE pdrv, BYTE *buff, LBA_t sector, UINT count); 27 | 28 | DSTATUS spi_sd_disk_write(BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count); 29 | 30 | DRESULT spi_sd_disk_ioctl(BYTE pdrv, BYTE cmd, void *buff); 31 | 32 | #if defined(__cplusplus) 33 | } 34 | #endif /* __cplusplus */ 35 | 36 | #endif /* HPM_SPI_SD_DISK_H */ 37 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/fatfs/src/portable/usb/hpm_fatfs_usb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_FATFS_USB_H 9 | #define HPM_FATFS_USB_H 10 | 11 | #include "diskio.h" 12 | 13 | #if defined(__cplusplus) 14 | extern "C" { 15 | #endif /* __cplusplus */ 16 | 17 | void usb_disk_deinitialize(void); 18 | void usb_disk_set_active_msc_class(BYTE pdrv, void *ptr); 19 | uint8_t usb_disk_free_active_msc_class(void *ptr); 20 | DSTATUS usb_disk_initialize(BYTE pdrv); 21 | DSTATUS usb_disk_status(BYTE pdrv); 22 | DRESULT usb_disk_read(BYTE pdrv, BYTE *buff, DWORD sector, BYTE count); 23 | DRESULT usb_disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, BYTE count); 24 | DRESULT usb_disk_ioctl(BYTE pdrv, BYTE cmd, void *buff); 25 | 26 | #if defined(__cplusplus) 27 | } 28 | #endif /* __cplusplus */ 29 | #endif /* HPM_FATFS_USB_H */ -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/ptpd/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | add_subdirectory_ifdef(CONFIG_PTPD_V1 v1) 5 | add_subdirectory_ifdef(CONFIG_PTPD_V2 v2) 6 | 7 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/middleware/wifi/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | if (CONFIG_MHD_4345X) 5 | set(CONFIG_MHD_WIFI 1) 6 | endif () 7 | add_subdirectory_ifdef(CONFIG_MHD_WIFI mhd_wifi) -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/check_excluded_app.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2022 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | import sys 5 | import yaml 6 | 7 | def check_excluded_app(input_yml, board, app): 8 | excluded = False 9 | with open(input_yml, 'r', encoding='utf-8', errors='ignore') as stream: 10 | try: 11 | info = yaml.safe_load(stream) 12 | if not info is None and board in info.keys(): 13 | for t in info[board]: 14 | if t == app: 15 | excluded = True; 16 | break 17 | except yaml.YAMLError as e: 18 | pass 19 | stream.close() 20 | if excluded: 21 | sys.exit(1) 22 | else: 23 | sys.exit(0) 24 | 25 | if __name__ == "__main__": 26 | check_excluded_app(sys.argv[1], sys.argv[2], sys.argv[3]) 27 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/check_excluded_boards.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2022 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | import sys 5 | import yaml 6 | 7 | EXCLUDED_boards="excluded_boards" 8 | 9 | def get_excluded_boards(input_yml): 10 | excluded = [] 11 | with open(input_yml, 'r', encoding='utf-8', errors='ignore') as stream: 12 | try: 13 | info = yaml.safe_load(stream) 14 | if not info is None and EXCLUDED_boards in info.keys(): 15 | for t in info[EXCLUDED_boards]: 16 | excluded.append(t.strip().lower()) 17 | except yaml.YAMLError as e: 18 | pass 19 | stream.close() 20 | if len(excluded): 21 | sys.stdout.write("%s\n" % (";".join(excluded))) 22 | 23 | return excluded 24 | 25 | def check_excluded_boards(input_yml, board_type): 26 | exc_tar = get_excluded_boards(input_yml) 27 | if len(exc_tar) != 0: 28 | if board_type in exc_tar: 29 | sys.exit(1) 30 | else: 31 | sys.exit(0) 32 | else: 33 | sys.exit(0) 34 | 35 | if __name__ == "__main__": 36 | get_excluded_boards(sys.argv[1]) -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/check_nds_toolchain.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | import sys 5 | import yaml 6 | 7 | def check_nds_toolchain(input_yml, toolchain, app): 8 | nds_gcc = False 9 | with open(input_yml, 'r', encoding='utf-8', errors='ignore') as stream: 10 | try: 11 | info = yaml.safe_load(stream) 12 | if not info is None and toolchain in info.keys(): 13 | for t in info[toolchain]: 14 | if t == app: 15 | nds_gcc = True 16 | break 17 | except yaml.YAMLError as e: 18 | pass 19 | stream.close() 20 | if nds_gcc: 21 | sys.exit(1) 22 | else: 23 | sys.exit(0) 24 | 25 | if __name__ == "__main__": 26 | check_nds_toolchain(sys.argv[1], sys.argv[2], sys.argv[3]) 27 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/clang_tidy/.clang-tidy: -------------------------------------------------------------------------------- 1 | 2 | Checks: ' 3 | -clang-analyzer-security.insecureAPI.* 4 | ' 5 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/clang_tidy/.clang_tidy_excluded_app.yaml: -------------------------------------------------------------------------------- 1 | excluded_sample: 2 | - freemaster 3 | - openocd_algo 4 | - coremark 5 | - dhrystone 6 | - multicore/console_coremark 7 | - multicore/lvgl_coremark 8 | - tinycrypt 9 | - audio_codec/lvgl_audio_player 10 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/clang_tidy/.clang_tidy_excluded_included_path.yaml: -------------------------------------------------------------------------------- 1 | excluded_file_path: 2 | - hpm_sdk/soc 3 | - hpm_sdk/boards 4 | - hpm_sdk/drivers 5 | - hpm_sdk/middleware 6 | - hpm_sdk/utils 7 | - hpm_sdk/components/debug_console 8 | - hpm_sdk/samples/motor_ctrl/bldc_littlevgl_foc/lvgl_v835 9 | 10 | included_file_path: 11 | - hpm_sdk/middleware/hpm_* 12 | - hpm_sdk/middleware/audio_codec 13 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/clang_tidy/clang_tidy_check.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | # Copyright (c) 2024 HPMicro 4 | # SPDX-License-Identifier: BSD-3-Clause 5 | 6 | import os 7 | import sys 8 | 9 | EXCLUDED_SAMPLE_NAME="hello_world" 10 | 11 | sys.path.append(os.path.dirname(sys.argv[0])) 12 | 13 | if __name__ == "__main__": 14 | if (os.environ.get('HPM_SDK_BASE')==None): 15 | print("Please set HPM_SDK_BASE environment variable") 16 | sys.exit(1) 17 | 18 | if (os.environ.get('CLANG_TIDY_EXTRA_ARG')==None): 19 | print("Please set CLANG_TIDY_EXTRA_ARG environment variable") 20 | sys.exit(1) 21 | 22 | if (EXCLUDED_SAMPLE_NAME not in os.getcwd()): 23 | os.system('{}/scripts/clang_tidy/clang_tidy_json_deduplication.py {}/scripts/clang_tidy/.clang_tidy_excluded_included_path.yaml'.format(os.environ.get('HPM_SDK_BASE'), os.environ.get('HPM_SDK_BASE'))) 24 | else: 25 | os.system('{}/scripts/clang_tidy/clang_tidy_json_full_check_sample_handle.py'.format(os.environ.get('HPM_SDK_BASE'))) 26 | 27 | ret = os.system('run-clang-tidy.py {} -config-file={}/scripts/clang_tidy/.clang-tidy -warnings-as-errors=*'.format(os.environ.get('CLANG_TIDY_EXTRA_ARG'), os.environ.get('HPM_SDK_BASE'))) 28 | sys.exit(ret) 29 | 30 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/clang_tidy/clang_tidy_check_excluded_app.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | import sys 5 | import yaml 6 | 7 | def check_excluded_app(input_yml, app): 8 | excluded = False 9 | with open(input_yml, 'r', encoding='utf-8', errors='ignore') as stream: 10 | try: 11 | info = yaml.safe_load(stream) 12 | if not info is None: 13 | for t in info['excluded_sample']: 14 | if t in app: 15 | excluded = True 16 | break 17 | except yaml.YAMLError as e: 18 | print("Load {} failed!".format(input_yml)) 19 | stream.close() 20 | sys.exit(2) 21 | stream.close() 22 | 23 | if excluded: 24 | sys.exit(1) 25 | else: 26 | sys.exit(0) 27 | 28 | if __name__ == "__main__": 29 | check_excluded_app(sys.argv[1], sys.argv[2]) 30 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/get_gcc_version.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | import re 5 | import sys 6 | 7 | def get_gcc_version(version_text): 8 | version_text = re.sub(r'\n', r' ', version_text) 9 | m = re.match(r'.*\s+([0-9]+\.[0-9]+\.[0-9]+)\s*', version_text) 10 | if m is not None: 11 | print(m.group(1)) 12 | sys.exit(0) 13 | else: 14 | sys.exit(1) 15 | 16 | if __name__ == "__main__": 17 | get_gcc_version(sys.argv[1]) 18 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/get_min_sdk_version.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | import sys 5 | import yaml 6 | 7 | MIN_SDK_VERSION="minimum_sdk_version" 8 | 9 | def get_min_sdk_version(input_yml): 10 | min_version = "" 11 | with open(input_yml, "r", encoding="utf-8", errors="ignore") as stream: 12 | try: 13 | info = yaml.safe_load(stream) 14 | if not info is None and MIN_SDK_VERSION in info.keys() and info[MIN_SDK_VERSION] is not None: 15 | for t in info[MIN_SDK_VERSION]: 16 | min_version = (t.strip().lower()) 17 | except yaml.YAMLError as e: 18 | pass 19 | stream.close() 20 | if len(min_version): 21 | sys.stdout.write("%s\n" % (min_version)) 22 | 23 | return min_version 24 | 25 | if __name__ == "__main__": 26 | get_min_sdk_version(sys.argv[1]) 27 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/linux/README: -------------------------------------------------------------------------------- 1 | install usb drivers for probes 2 | 3 | - Copy rule files under udev_rules to /etc/udev/rules.d 4 | - firedap: udev_rules/99-daplink.rules 5 | - jlink: udev_rules/99-jlink.rules 6 | - aice and ftdi (ft2x32): 7 | - udev_rules/99-ndsusb-v1.rules 8 | - udev_rules/ftdi_script-v1.sh 9 | - grant access of usb to "users" 10 | - udev_rules/90-usbpermission.rules 11 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/linux/udev_rules/90-usbpermission.rules: -------------------------------------------------------------------------------- 1 | SUBSYSTEM=="usb",GROUP="users",MODE="0666" 2 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/linux/udev_rules/99-daplink.rules: -------------------------------------------------------------------------------- 1 | # 1fc9:5601 firedap 2 | SUBSYSTEM="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="5601", MODE:="666" 3 | 4 | ATTRS{product}=="*CMSIS-DAP*", MODE="666", GROUP="dialout" 5 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/linux/udev_rules/99-ndsusb-v1.rules: -------------------------------------------------------------------------------- 1 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="1cfc", ATTR{idProduct}=="0000", MODE="0666" 2 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="1cfc", ATTR{idProduct}=="0001", MODE="0666" 3 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="15ba", ATTR{idProduct}=="002a", MODE="0666" 4 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", MODE="0666", RUN+="/etc/udev/rules.d/ftdi_script-v1.sh" 5 | 6 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/linux/udev_rules/ftdi_script-v1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo $DEVPATH | awk 'match($0,/[0-9](-[0-9])+(\.[0-9])*\:[0-9](\.[0-9])+/) { print substr($0,RSTART,RLENGTH) }' > /sys/bus/usb/drivers/ftdi_sio/unbind 4 | 5 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/scripts/requirements.txt: -------------------------------------------------------------------------------- 1 | PyYAML 2 | jinja2 3 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/soc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021,2024 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(${HPM_SOC_SERIES}/${HPM_SOC}) 5 | sdk_inc(${HPM_SOC_SERIES}/ip) 6 | add_subdirectory(${HPM_SOC_SERIES}/${HPM_SOC}) 7 | 8 | if(NOT "${SOC_LINKER_SCRIPT}" STREQUAL "") 9 | set(LINKER_SCRIPT ${SOC_LINKER_SCRIPT} PARENT_SCOPE) 10 | endif() 11 | 12 | if("${TOOLCHAIN_VARIANT}" STREQUAL "gcc") 13 | sdk_compile_options("-mabi=${RV_ABI}") 14 | sdk_ld_options("-mabi=${RV_ABI}") 15 | 16 | sdk_compile_options("-march=${RV_ARCH}") 17 | sdk_ld_options("-march=${RV_ARCH}") 18 | elseif("${TOOLCHAIN_VARIANT}" STREQUAL "zcc") 19 | sdk_compile_options("-mabi=${RV_ABI}") 20 | sdk_ld_options("-mabi=${RV_ABI}") 21 | 22 | if(CONFIG_HPM_ENABLE_DSP) 23 | set(RV_ARCH "${RV_ARCH}_zp052b") 24 | endif() 25 | sdk_compile_options("-march=${RV_ARCH}_xandes") 26 | sdk_ld_options("-march=${RV_ARCH}_xandes") 27 | endif() 28 | 29 | sdk_zcc_compile_options("-mtune=andes-kavalan") 30 | sdk_zcc_ld_options("-mtune=andes-kavalan") 31 | sdk_zcc_ld_options(-Wl,-mllvm,--align-all-nofallthru-blocks=2) 32 | sdk_zcc_ld_options(-falign-functions=4) 33 | sdk_zcc_ld_options(-flate-loop-unroll) 34 | sdk_zcc_ld_options(-Wl,-mllvm,--jump-is-expensive=true) 35 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/soc/HPM5300/HPM5301/hpm_gpiom_soc_drv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef HPM_GPIOM_SOC_DRV_H 9 | #define HPM_GPIOM_SOC_DRV_H 10 | 11 | /** 12 | * @addtogroup gpiom_interface GPIOM driver APIs 13 | * @{ 14 | */ 15 | 16 | /* @brief gpiom control module */ 17 | typedef enum gpiom_gpio { 18 | gpiom_soc_gpio0 = 0, 19 | gpiom_core0_fast = 2, 20 | } gpiom_gpio_t; 21 | 22 | /** 23 | * @} 24 | */ 25 | 26 | #endif /* HPM_GPIOM_SOC_DRV_H */ 27 | 28 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/soc/HPM5300/HPM5301/hpm_soc_ip_feature.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2024 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | #ifndef HPM_SOC_IP_FEATURE_H 8 | #define HPM_SOC_IP_FEATURE_H 9 | 10 | /* GPTMR related feature */ 11 | #define HPM_IP_FEATURE_GPTMR_MONITOR 1 12 | #define HPM_IP_FEATURE_GPTMR_OP_MODE 1 13 | 14 | /* UART related feature */ 15 | #define HPM_IP_FEATURE_UART_RX_IDLE_DETECT 1 16 | #define HPM_IP_FEATURE_UART_FCRR 1 17 | #define HPM_IP_FEATURE_UART_RX_EN 1 18 | #define HPM_IP_FEATURE_UART_E00018_FIX 1 19 | #define HPM_IP_FEATURE_UART_9BIT_MODE 1 20 | #define HPM_IP_FEATURE_UART_ADDR_MATCH 1 21 | #define HPM_IP_FEATURE_UART_TRIG_MODE 1 22 | #define HPM_IP_FEATURE_UART_FINE_FIFO_THRLD 1 23 | #define HPM_IP_FEATURE_UART_IIR2 1 24 | 25 | /* I2C related feature */ 26 | #define HPM_IP_FEATURE_I2C_SUPPORT_RESET 1 27 | 28 | /* SPI related feature */ 29 | #define HPM_IP_FEATURE_SPI_NEW_TRANS_COUNT 1 30 | #define HPM_IP_FEATURE_SPI_CS_SELECT 1 31 | #define HPM_IP_FEATURE_SPI_SUPPORT_DIRECTIO 1 32 | 33 | /* ADC16 related feature */ 34 | #define HPM_IP_FEATURE_ADC16_HAS_MOT_EN 1 35 | 36 | #endif /* HPM_SOC_IP_FEATURE_H */ -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/soc/HPM5300/HPM5301/soc_modules.list: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2024 HPMicro 3 | # 4 | # SPDX-License-Identifier: BSD-3-Clause 5 | # 6 | 7 | HPMSOC_HAS_HPMSDK_GPIO=y 8 | HPMSOC_HAS_HPMSDK_PLIC=y 9 | HPMSOC_HAS_HPMSDK_MCHTMR=y 10 | HPMSOC_HAS_HPMSDK_PLICSW=y 11 | HPMSOC_HAS_HPMSDK_GPTMR=y 12 | HPMSOC_HAS_HPMSDK_UART=y 13 | HPMSOC_HAS_HPMSDK_I2C=y 14 | HPMSOC_HAS_HPMSDK_SPI=y 15 | HPMSOC_HAS_HPMSDK_CRC=y 16 | HPMSOC_HAS_HPMSDK_TSNS=y 17 | HPMSOC_HAS_HPMSDK_MBX=y 18 | HPMSOC_HAS_HPMSDK_EWDG=y 19 | HPMSOC_HAS_HPMSDK_DMAMUX=y 20 | HPMSOC_HAS_HPMSDK_DMAV2=y 21 | HPMSOC_HAS_HPMSDK_GPIOM=y 22 | HPMSOC_HAS_HPMSDK_USB=y 23 | HPMSOC_HAS_HPMSDK_SEC=y 24 | HPMSOC_HAS_HPMSDK_MON=y 25 | HPMSOC_HAS_HPMSDK_OTP=y 26 | HPMSOC_HAS_HPMSDK_KEYM=y 27 | HPMSOC_HAS_HPMSDK_ADC16=y 28 | HPMSOC_HAS_HPMSDK_ACMP=y 29 | HPMSOC_HAS_HPMSDK_SYSCTL=y 30 | HPMSOC_HAS_HPMSDK_IOC=y 31 | HPMSOC_HAS_HPMSDK_PLLCTLV2=y 32 | HPMSOC_HAS_HPMSDK_PPOR=y 33 | HPMSOC_HAS_HPMSDK_PCFG=y 34 | HPMSOC_HAS_HPMSDK_PGPR=y 35 | HPMSOC_HAS_HPMSDK_PDGO=y 36 | HPMSOC_HAS_HPMSDK_PMP=y 37 | 38 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/soc/HPM5300/ip/hpm_mchtmr_regs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2024 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | 9 | #ifndef HPM_MCHTMR_H 10 | #define HPM_MCHTMR_H 11 | 12 | typedef struct { 13 | __RW uint64_t MTIME; /* 0x0: Machine Time */ 14 | __RW uint64_t MTIMECMP; /* 0x8: Machine Time Compare */ 15 | } MCHTMR_Type; 16 | 17 | 18 | /* Bitfield definition for register: MTIME */ 19 | /* 20 | * MTIME (RW) 21 | * 22 | * Machine time 23 | */ 24 | #define MCHTMR_MTIME_MTIME_MASK (0xFFFFFFFFFFFFFFFFULL) 25 | #define MCHTMR_MTIME_MTIME_SHIFT (0U) 26 | #define MCHTMR_MTIME_MTIME_SET(x) (((uint64_t)(x) << MCHTMR_MTIME_MTIME_SHIFT) & MCHTMR_MTIME_MTIME_MASK) 27 | #define MCHTMR_MTIME_MTIME_GET(x) (((uint64_t)(x) & MCHTMR_MTIME_MTIME_MASK) >> MCHTMR_MTIME_MTIME_SHIFT) 28 | 29 | /* Bitfield definition for register: MTIMECMP */ 30 | /* 31 | * MTIMECMP (RW) 32 | * 33 | * Machine time compare 34 | */ 35 | #define MCHTMR_MTIMECMP_MTIMECMP_MASK (0xFFFFFFFFFFFFFFFFULL) 36 | #define MCHTMR_MTIMECMP_MTIMECMP_SHIFT (0U) 37 | #define MCHTMR_MTIMECMP_MTIMECMP_SET(x) (((uint64_t)(x) << MCHTMR_MTIMECMP_MTIMECMP_SHIFT) & MCHTMR_MTIMECMP_MTIMECMP_MASK) 38 | #define MCHTMR_MTIMECMP_MTIMECMP_GET(x) (((uint64_t)(x) & MCHTMR_MTIMECMP_MTIMECMP_MASK) >> MCHTMR_MTIMECMP_MTIMECMP_SHIFT) 39 | 40 | 41 | 42 | 43 | #endif /* HPM_MCHTMR_H */ 44 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/utils/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021 HPMicro 2 | # SPDX-License-Identifier: BSD-3-Clause 3 | 4 | sdk_inc(.) 5 | sdk_src(hpm_sbrk.c) 6 | sdk_src(hpm_swap.c) 7 | sdk_src(hpm_ffssi.c) 8 | sdk_src(hpm_crc32.c) 9 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/utils/hpm_crc32.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2023 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #include "hpm_crc32.h" 9 | 10 | 11 | uint32_t crc32(const uint8_t *buf, uint32_t len) 12 | { 13 | uint8_t i; 14 | uint32_t crc = 0xFFFFFFFF; 15 | while (len--) { 16 | crc ^= *buf++; 17 | for (i = 0; i < 8; ++i) { 18 | if (crc & 1) 19 | crc = (crc >> 1) ^ 0xEDB88320; 20 | else 21 | crc = (crc >> 1); 22 | } 23 | } 24 | 25 | return ~crc; 26 | } 27 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/utils/hpm_crc32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2023 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef _HPM_CRC32_H 9 | #define _HPM_CRC32_H 10 | 11 | #include 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif /* __cplusplus */ 15 | 16 | uint32_t crc32(const uint8_t *buf, uint32_t len); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif /* __cplusplus */ 21 | #endif -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/utils/hpm_ffssi.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #include "hpm_common.h" 9 | 10 | int __ffssi2(int x) 11 | { 12 | uint32_t i = 0; 13 | if (!x) { 14 | return 0; 15 | } 16 | for (i = 0; (i < sizeof(x) * 8 - 1); i++) { 17 | if ((x >> i) & 1) { 18 | break; 19 | } 20 | } 21 | return i + 1; 22 | } 23 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/utils/hpm_sbrk.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifdef __GNUC__ 9 | #include 10 | #include 11 | #include "hpm_common.h" 12 | 13 | void *_sbrk(int incr) 14 | { 15 | extern char __heap_start__, __heap_end__; 16 | static char *heap_end; 17 | char *prev_heap_end; 18 | void *ret; 19 | 20 | if (heap_end == NULL) 21 | { 22 | heap_end = &__heap_start__; 23 | } 24 | 25 | prev_heap_end = heap_end; 26 | 27 | if ((unsigned int)heap_end + (unsigned int)incr > (unsigned int)(&__heap_end__)) 28 | { 29 | errno = ENOMEM; 30 | 31 | ret = (void *)-1; 32 | } 33 | else 34 | { 35 | heap_end = (char *)((unsigned int)heap_end + (unsigned int)incr); 36 | 37 | ret = (void *)prev_heap_end; 38 | } 39 | 40 | return ret; 41 | } 42 | #endif 43 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/utils/hpm_swap.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2024 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #include "hpm_common.h" 9 | 10 | #if !defined(__SEGGER_RTL_VERSION) 11 | uint32_t __bswapsi2 (uint32_t u) 12 | { 13 | return ((((u) & 0xff000000) >> 24) 14 | | (((u) & 0x00ff0000) >> 8) 15 | | (((u) & 0x0000ff00) << 8) 16 | | (((u) & 0x000000ff) << 24)); 17 | } 18 | 19 | uint64_t __bswapdi2 (uint64_t u) 20 | { 21 | return ((((u) & 0xff00000000000000ull) >> 56) 22 | | (((u) & 0x00ff000000000000ull) >> 40) 23 | | (((u) & 0x0000ff0000000000ull) >> 24) 24 | | (((u) & 0x000000ff00000000ull) >> 8) 25 | | (((u) & 0x00000000ff000000ull) << 8) 26 | | (((u) & 0x0000000000ff0000ull) << 24) 27 | | (((u) & 0x000000000000ff00ull) << 40) 28 | | (((u) & 0x00000000000000ffull) << 56)); 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/hpm_sdk_localized_for_hpm5301evklite/utils/hpm_swap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2024 HPMicro 3 | * 4 | * SPDX-License-Identifier: BSD-3-Clause 5 | * 6 | */ 7 | 8 | #ifndef _HPM_SWAP_H 9 | #define _HPM_SWAP_H 10 | 11 | #include 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif /* __cplusplus */ 15 | 16 | uint32_t __bswapsi2(uint32_t u); 17 | uint64_t __bswapdi2(uint64_t u); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif /* __cplusplus */ 22 | #endif 23 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/readme.txt: -------------------------------------------------------------------------------- 1 | 第三方库:CherryUSB、CMISIS-DAP、ARM2D、OPENOCD、PikaPython、SLCAN、OPENCAN 2 | 3 | ffconf.h 修改 #define FF_MAX_SS 4096 4 | 增加ram_flash文件 -------------------------------------------------------------------------------- /MicroLink/microlink_app/src/USB2MSC/usb2msc.h: -------------------------------------------------------------------------------- 1 | #ifndef HSLINK_PRO_USB2MSC_H 2 | #define HSLINK_PRO_USB2MSC_H 3 | 4 | #define USB_CHIP_FLASH_OFFSET DOWNLOAD_PART_ADDR 5 | 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/src/USB2Python/usb2python.h: -------------------------------------------------------------------------------- 1 | #ifndef HSLINK_PRO_USB2PYTHON_H 2 | #define HSLINK_PRO_USB2PYTHON_H 3 | #include "usb_configuration.h" 4 | 5 | 6 | extern USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t cdc1_tmpbuffer[]; 7 | 8 | extern volatile struct cdc_line_coding g_cdc1_lincoding; 9 | extern void chry_dap_pikapython_handle(void); 10 | extern void pika_script_Init(void); 11 | extern volatile uint8_t config_uart_python; 12 | #endif //HSLINK_PRO_USB2UART_H 13 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/src/USB2UART/usb2uart.h: -------------------------------------------------------------------------------- 1 | #ifndef HSLINK_PRO_USB2UART_H 2 | #define HSLINK_PRO_USB2UART_H 3 | #include "usb_configuration.h" 4 | #include "microboot.h" 5 | 6 | 7 | typedef struct 8 | { 9 | SIG_SLOT_OBJ; 10 | uint8_t Byte; 11 | uint16_t hwLen; 12 | }uart_data_msg_t; 13 | extern uart_data_msg_t tUartMsgObj; 14 | 15 | signals(uart_sig,uart_data_msg_t *ptThis, 16 | args( 17 | uint8_t *pchByte, 18 | uint16_t hwLen 19 | )); 20 | 21 | extern volatile uint8_t config_uart_transfer; 22 | extern volatile uint8_t usbrx_idle_flag; 23 | extern volatile uint8_t usbtx_idle_flag; 24 | extern volatile uint8_t uarttx_idle_flag; 25 | extern volatile struct cdc_line_coding g_cdc_lincoding; 26 | extern volatile uint8_t config_uart; 27 | 28 | extern USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t cdc_tmpbuffer[DAP_PACKET_SIZE]; 29 | 30 | void uartx_preinit(void); 31 | void usb2uart_handler(void); 32 | 33 | #endif //HSLINK_PRO_USB2UART_H 34 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/src/dap_main.h: -------------------------------------------------------------------------------- 1 | #ifndef DAP_MAIN_H 2 | #define DAP_MAIN_H 3 | 4 | 5 | #include "usb_configuration.h" 6 | 7 | 8 | #ifdef CONFIG_USB_HS 9 | #if DAP_PACKET_SIZE != 512 10 | #error "DAP_PACKET_SIZE must be 512 in hs" 11 | #endif 12 | #else 13 | #if DAP_PACKET_SIZE != 64 14 | #error "DAP_PACKET_SIZE must be 64 in fs" 15 | #endif 16 | #endif 17 | 18 | extern volatile uint8_t USB_RequestIdle; 19 | extern USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t USB_Request[DAP_PACKET_COUNT][DAP_PACKET_SIZE]; 20 | 21 | void chry_dap_handle(void); 22 | void chry_dap_usb2uart_handle(void); 23 | 24 | 25 | #endif -------------------------------------------------------------------------------- /MicroLink/microlink_app/src/ymodem_send/ymodem_send.h: -------------------------------------------------------------------------------- 1 | #ifndef APPLICATIONS_CHECK_AGENT_XMODEM_SEND_H_ 2 | #define APPLICATIONS_CHECK_AGENT_XMODEM_SEND_H_ 3 | #include "microboot.h" 4 | 5 | typedef struct ymodem_send_t { 6 | ymodem_t parent; 7 | char chFileName[5][32]; 8 | uint8_t chfileNum; 9 | peek_byte_t *ptReadByte; 10 | uint32_t wFileSize; 11 | uint32_t wOffSet; 12 | SIG_SLOT_OBJ; 13 | } ymodem_send_t; 14 | 15 | typedef struct ymodem_lib_send_t { 16 | check_agent_t tCheckAgent; 17 | ymodem_send_t tYmodemSent; 18 | } ymodem_lib_send_t; 19 | 20 | signals(ymodem_send_sig, ymodem_send_t *ptThis, 21 | args( 22 | uint8_t *pchByte, 23 | uint16_t hwLen 24 | )); 25 | 26 | ymodem_lib_send_t *ymodem_lib_send_init(ymodem_lib_send_t *ptObj, peek_byte_t *ptReadByte); 27 | #endif /* APPLICATIONS_CHECK_AGENT_XMODEM_H_ */ 28 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/vfs/target/flash_blob.h: -------------------------------------------------------------------------------- 1 | #ifndef FLASH_BLOB_H 2 | #define FLASH_BLOB_H 3 | #include "flash_algo.h" 4 | 5 | #ifndef RAM_SIZE 6 | #define RAM_SIZE 0x20000 7 | #endif 8 | 9 | typedef struct { 10 | uint32_t breakpoint; 11 | uint32_t static_base; 12 | uint32_t stack_pointer; 13 | } program_syscall_t; 14 | 15 | typedef struct { 16 | uint32_t init; 17 | uint32_t uninit; 18 | uint32_t erase_chip; 19 | uint32_t erase_sector; 20 | uint32_t program_page; 21 | uint32_t verify; 22 | program_syscall_t sys_call_s; 23 | uint32_t program_buffer; 24 | uint32_t algo_start; 25 | uint32_t algo_size; 26 | uint32_t *algo_blob; 27 | uint32_t program_buffer_size; 28 | uint32_t algo_flags; /*!< Combination of kAlgoVerifyReturnsAddress, kAlgoSingleInitType and kAlgoSkipChipErase*/ 29 | } program_target_t; 30 | 31 | typedef struct { 32 | program_target_t target; 33 | uint32_t sector_info_length; 34 | uint32_t prog_blob[4096 * 5]; 35 | }flash_blob_t; 36 | 37 | extern flash_blob_t tFlashBlob; 38 | 39 | uint32_t target_flash_blob(char *chFileName,int wFlashAddr,int wRamBase); 40 | 41 | #endif 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/vfs/target/flash_manager.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file flash_manager.h 3 | * @brief Handling of file steam decode and prep for writing 4 | * 5 | * DAPLink Interface Firmware 6 | * Copyright (c) 2009-2019, ARM Limited, All Rights Reserved 7 | * SPDX-License-Identifier: Apache-2.0 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 10 | * not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 17 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #ifndef FLASH_MANAGER_H 23 | #define FLASH_MANAGER_H 24 | 25 | #include 26 | #include 27 | #include "flash_intf.h" 28 | #include "error.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | error_t flash_manager_init(const flash_intf_t *flash_intf); 35 | error_t flash_manager_data(uint32_t addr, const uint8_t *data, uint32_t size); 36 | error_t flash_manager_uninit(void); 37 | void flash_manager_set_page_erase(bool enabled); 38 | 39 | #ifdef __cplusplus 40 | } 41 | #endif 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/vfs/target/target_default.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @file target_default.c 3 | * @brief Default target board info 4 | * 5 | * DAPLink Interface Firmware 6 | * Copyright (c) 2009-2021, Arm Limited, All Rights Reserved 7 | * SPDX-License-Identifier: Apache-2.0 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 10 | * not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 17 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | #include "target_board.h" 24 | 25 | // g_board_info needed to be moved away from target_board.c to prevent 26 | // compilers from make optimization decisions based on it. 27 | 28 | // Default empty board info. 29 | 30 | const board_info_t g_board_info = { 31 | .info_version = kBoardInfoVersion, 32 | .board_id = "0001", 33 | .target_cfg = &target_device, 34 | .board_vendor = "MicroLink", 35 | .board_name = "MicroLink CMSIS-DAP", 36 | }; 37 | -------------------------------------------------------------------------------- /MicroLink/microlink_app/vfs/validation.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file validation.h 3 | * @brief Helper functions to determine if a hex or binary file is valid 4 | * 5 | * DAPLink Interface Firmware 6 | * Copyright (c) 2009-2020, ARM Limited, All Rights Reserved 7 | * SPDX-License-Identifier: Apache-2.0 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 10 | * not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 17 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #ifndef VALIDATION_H 23 | #define VALIDATION_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | uint8_t validate_bin_nvic(const uint8_t *buf); 32 | uint8_t validate_hexfile(const uint8_t *buf); 33 | uint8_t validate_rblfile(const uint8_t *buf); 34 | /*! 35 | * @brief Baseline implementation of NVIC validator. 36 | * 37 | * This version does not include the redirection to a target family validator if 38 | * one is supplied in the target family struct. 39 | */ 40 | uint8_t validate_bin_nvic_base(const uint8_t *buf); 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /images/NewUpada.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/NewUpada.png -------------------------------------------------------------------------------- /images/NewUpada1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/NewUpada1.png -------------------------------------------------------------------------------- /images/USB_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/USB_1.jpg -------------------------------------------------------------------------------- /images/USB_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/USB_2.png -------------------------------------------------------------------------------- /images/USB_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/USB_3.png -------------------------------------------------------------------------------- /images/USB_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/USB_4.jpg -------------------------------------------------------------------------------- /images/components/queue/for.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/components/queue/for.jpg -------------------------------------------------------------------------------- /images/components/queue/queue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/components/queue/queue.jpg -------------------------------------------------------------------------------- /images/components/signals_slots/signals_slots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/components/signals_slots/signals_slots.png -------------------------------------------------------------------------------- /images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/favicon.ico -------------------------------------------------------------------------------- /images/flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/flash.png -------------------------------------------------------------------------------- /images/flash_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/flash_user.png -------------------------------------------------------------------------------- /images/frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/frame.png -------------------------------------------------------------------------------- /images/microlink/10M.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/10M.png -------------------------------------------------------------------------------- /images/microlink/10M_Baud.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/10M_Baud.jpg -------------------------------------------------------------------------------- /images/microlink/10M_TTL.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/10M_TTL.jpg -------------------------------------------------------------------------------- /images/microlink/ARMLINK.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/ARMLINK.png -------------------------------------------------------------------------------- /images/microlink/ARMLINK1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/ARMLINK1.jpg -------------------------------------------------------------------------------- /images/microlink/DEBUG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/DEBUG.png -------------------------------------------------------------------------------- /images/microlink/DETAILS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/DETAILS.png -------------------------------------------------------------------------------- /images/microlink/EventDebug.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/EventDebug.jpg -------------------------------------------------------------------------------- /images/microlink/EventPrint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/EventPrint.png -------------------------------------------------------------------------------- /images/microlink/EventRE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/EventRE.png -------------------------------------------------------------------------------- /images/microlink/EventRE1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/EventRE1.png -------------------------------------------------------------------------------- /images/microlink/FAIL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/FAIL.png -------------------------------------------------------------------------------- /images/microlink/FLM.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/FLM.jpg -------------------------------------------------------------------------------- /images/microlink/FLMTool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/FLMTool.png -------------------------------------------------------------------------------- /images/microlink/JLINK_Download.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/JLINK_Download.jpg -------------------------------------------------------------------------------- /images/microlink/JLINK_V12_Download.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/JLINK_V12_Download.jpg -------------------------------------------------------------------------------- /images/microlink/JTAG.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/JTAG.jpg -------------------------------------------------------------------------------- /images/microlink/MAX_Clock.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/MAX_Clock.jpg -------------------------------------------------------------------------------- /images/microlink/MicroLink.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/MicroLink.jpg -------------------------------------------------------------------------------- /images/microlink/MicroLink_Download.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/MicroLink_Download.jpg -------------------------------------------------------------------------------- /images/microlink/MicroLink_Download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/MicroLink_Download.png -------------------------------------------------------------------------------- /images/microlink/MicroLink_Jlink.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/MicroLink_Jlink.jpg -------------------------------------------------------------------------------- /images/microlink/RTT.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/RTT.jpg -------------------------------------------------------------------------------- /images/microlink/RTTView.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/RTTView.jpg -------------------------------------------------------------------------------- /images/microlink/RTTView_CMD.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/RTTView_CMD.jpg -------------------------------------------------------------------------------- /images/microlink/RTTView_baiduyun.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/RTTView_baiduyun.jpg -------------------------------------------------------------------------------- /images/microlink/RTT_MAP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/RTT_MAP.png -------------------------------------------------------------------------------- /images/microlink/SEGGER_JLINK.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/SEGGER_JLINK.png -------------------------------------------------------------------------------- /images/microlink/SES1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/SES1.jpg -------------------------------------------------------------------------------- /images/microlink/SES2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/SES2.jpg -------------------------------------------------------------------------------- /images/microlink/SES3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/SES3.jpg -------------------------------------------------------------------------------- /images/microlink/SJTB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/SJTB.png -------------------------------------------------------------------------------- /images/microlink/STM32FLMO.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/STM32FLMO.jpg -------------------------------------------------------------------------------- /images/microlink/SWD.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/SWD.jpg -------------------------------------------------------------------------------- /images/microlink/Upan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/Upan.png -------------------------------------------------------------------------------- /images/microlink/WX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/WX.jpg -------------------------------------------------------------------------------- /images/microlink/XZSF.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/XZSF.jpg -------------------------------------------------------------------------------- /images/microlink/clk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/clk.jpg -------------------------------------------------------------------------------- /images/microlink/daoban.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/daoban.png -------------------------------------------------------------------------------- /images/microlink/data_flow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/data_flow.jpg -------------------------------------------------------------------------------- /images/microlink/defective.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/defective.png -------------------------------------------------------------------------------- /images/microlink/error1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/error1.png -------------------------------------------------------------------------------- /images/microlink/error2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/error2.png -------------------------------------------------------------------------------- /images/microlink/flmo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/flmo.jpg -------------------------------------------------------------------------------- /images/microlink/jscope.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/jscope.jpg -------------------------------------------------------------------------------- /images/microlink/loadbin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/loadbin.png -------------------------------------------------------------------------------- /images/microlink/microlink.pack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/microlink.pack.png -------------------------------------------------------------------------------- /images/microlink/printf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/printf.png -------------------------------------------------------------------------------- /images/microlink/python.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/python.jpg -------------------------------------------------------------------------------- /images/microlink/readdocs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/readdocs.png -------------------------------------------------------------------------------- /images/microlink/rtt_code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/rtt_code.jpg -------------------------------------------------------------------------------- /images/microlink/sct.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/sct.jpg -------------------------------------------------------------------------------- /images/microlink/sct1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/sct1.jpg -------------------------------------------------------------------------------- /images/microlink/shebei.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/shebei.png -------------------------------------------------------------------------------- /images/microlink/sin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/sin.gif -------------------------------------------------------------------------------- /images/microlink/sin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/sin.jpg -------------------------------------------------------------------------------- /images/microlink/sine.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/sine.jpg -------------------------------------------------------------------------------- /images/microlink/sine_add.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/sine_add.jpg -------------------------------------------------------------------------------- /images/microlink/weixin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/microlink/weixin.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack.png -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_10.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_11.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_12.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_13.png -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_14.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_15.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_16.png -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_17.png -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_18.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_2.png -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_3.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_4.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_5.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_6.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_7.jpg -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_8.png -------------------------------------------------------------------------------- /images/quick-start/cmsis_pack_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/quick-start/cmsis_pack_9.png -------------------------------------------------------------------------------- /images/updata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/images/updata.png -------------------------------------------------------------------------------- /ota_packager/errlog.txt: -------------------------------------------------------------------------------- 1 | 2 | ---------------------------------Error 时间:2024/7/16 10:27:42--------------------------------- 3 | 导致错误信息 : 文件“E:\software\HPM5300\cdc_acm_hid_msc_freertos\hpm5301evklite_flash_xip\segger_embedded_studio\Output\Debug\Exe\demo.rbl”正由另一进程使用,因此该进程无法访问此文件。 4 | 导致错误的方法 :System.IO.__Error.WinIOError 5 | 6 | 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 7 | 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 8 | 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) 9 | 在 System.IO.FileStream..ctor(String path, FileMode mode) 10 | 在 rt_ota_packaging_tool.FirmwarePack.btnCreate_Click(Object sender, EventArgs e) 11 | -------------------------------------------------------------------------------- /ota_packager/fastlz.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/ota_packager/fastlz.dll -------------------------------------------------------------------------------- /ota_packager/quicklz150_32_3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/ota_packager/quicklz150_32_3.dll -------------------------------------------------------------------------------- /ota_packager/rt_ota_packaging_tool.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/ota_packager/rt_ota_packaging_tool.exe -------------------------------------------------------------------------------- /ota_packager/rt_ota_packaging_tool.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /原理图 V2.0/主控.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/原理图 V2.0/主控.pdf -------------------------------------------------------------------------------- /固件/MicroLink_V2.1.1.rbl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Aladdin-Wang/MicroLink/448b486ba43b54b275f67fb2ee9738f1c88366b4/固件/MicroLink_V2.1.1.rbl --------------------------------------------------------------------------------