2021-08-16 23:37:56 索煒達(dá)電子 1810
項(xiàng)目編號(hào):E229
文件大小:9M
源碼說明:帶中文注釋
開發(fā)環(huán)境:C編譯器
簡(jiǎn)要概述
記錄STM32F103使用鴻蒙liteos_m OS的調(diào)試過程
本代碼原始代碼使用了@rtos_lover的代碼
目前程序可以燒錄在STM32F103RET6上面運(yùn)行 keil工程位于路徑kernel_liteos_m_stm32f103_keil\targets\stm32f103_keil\project下
文件列表:
目錄│文件列表:
└ kernel_liteos_m_stm32f103_keil
├ components
│ ├ backtrace
│ │ │ BUILD.gn
│ │ │ los_backtrace.c
│ │ └ los_backtrace.h
│ ├ cppsupport
│ │ │ BUILD.gn
│ │ │ los_cppsupport.c
│ │ └ los_cppsupport.h
│ ├ cpup
│ │ │ BUILD.gn
│ │ │ los_cpup.c
│ │ └ los_cpup.h
│ ├ exchook
│ │ │ BUILD.gn
│ │ │ los_exchook.c
│ │ │ los_exchook.h
│ │ │ los_exc_info.c
│ │ └ los_exc_info.h
│ ├ fs
│ │ │ BUILD.gn
│ │ │ fs.c
│ │ │ fs_operations.h
│ │ ├ fatfs
│ │ │ │ BUILD.gn
│ │ │ │ fatfs.c
│ │ │ └ fatfs.h
│ │ └ littlefs
│ │ │ BUILD.gn
│ │ │ lfs_api.c
│ │ └ lfs_api.h
│ └ net
│ └ lwip-2.1
│ ├ enhancement
│ │ └ src
│ │ └ fixme.c
│ └ porting
│ ├ include
│ │ │ lwipopts.h
│ │ ├ arch
│ │ │ │ cc.h
│ │ │ │ perf.h
│ │ │ └ sys_arch.h
│ │ └ lwip
│ │ │ inet.h
│ │ │ lwipopts.h
│ │ │ netdb.h
│ │ │ netif.h
│ │ │ netifapi.h
│ │ └ sockets.h
│ └ src
│ │ driverif.c
│ │ lwip_init.c
│ │ netdb_porting.c
│ │ sockets_porting.c
│ └ sys_arch.c
├ figures
│ │ architecture-of-openharmony-the-liteos-cortex-m-kernel.png
│ └ OpenHarmony-LiteOS-M核內(nèi)核架構(gòu)圖.png
├ kal
│ │ BUILD.gn
│ ├ cmsis
│ │ │ BUILD.gn
│ │ │ cmsis_liteos2.c
│ │ │ cmsis_os.h
│ │ │ cmsis_os2.h
│ │ │ hos_cmsis_adp.h
│ │ └ kal.h
│ └ posix
│ │ BUILD.gn
│ ├ include
│ │ └ libc.h
│ └ src
│ │ errno.c
│ │ fwrap.c
│ │ libc.c
│ │ libc_config.h
│ │ malloc.c
│ │ mqueue.c
│ │ mqueue_impl.h
│ │ pthread.c
│ │ pthread_attr.c
│ │ pthread_cond.c
│ │ pthread_mutex.c
│ │ semaphore.c
│ │ time.c
│ └ time_internal.h
├ kernel
│ │ BUILD.gn
│ ├ arch
│ │ ├ arm
│ │ │ ├ cortex-m3
│ │ │ │ └ keil
│ │ │ │ │ los_arch_atomic.h
│ │ │ │ │ los_arch_context.h
│ │ │ │ │ los_arch_interrupt.h
│ │ │ │ │ los_arch_timer.h
│ │ │ │ │ los_context.c
│ │ │ │ │ los_dispatch.S
│ │ │ │ │ los_exc.S
│ │ │ │ │ los_interrupt.c
│ │ │ │ │ los_startup.s
│ │ │ │ └ los_timer.c
│ │ │ ├ cortex-m33
│ │ │ │ ├ gcc
│ │ │ │ │ │ BUILD.gn
│ │ │ │ │ │ los_arch_atomic.h
│ │ │ │ │ │ los_arch_context.h
│ │ │ │ │ │ los_arch_interrupt.h
│ │ │ │ │ │ los_arch_timer.h
│ │ │ │ │ │ los_context.c
│ │ │ │ │ │ los_dispatch.S
│ │ │ │ │ │ los_exc.S
│ │ │ │ │ │ los_interrupt.c
│ │ │ │ │ └ los_timer.c
│ │ │ │ └ iar
│ │ │ │ ├ NTZ
│ │ │ │ │ │ los_arch_atomic.h
│ │ │ │ │ │ los_arch_context.h
│ │ │ │ │ │ los_arch_interrupt.h
│ │ │ │ │ │ los_arch_timer.h
│ │ │ │ │ │ los_context.c
│ │ │ │ │ │ los_dispatch.S
│ │ │ │ │ │ los_exc.S
│ │ │ │ │ │ los_interrupt.c
│ │ │ │ │ └ los_timer.c
│ │ │ │ └ TZ
│ │ │ │ ├ non_secure
│ │ │ │ │ │ los_arch_atomic.h
│ │ │ │ │ │ los_arch_context.h
│ │ │ │ │ │ los_arch_interrupt.h
│ │ │ │ │ │ los_arch_timer.h
│ │ │ │ │ │ los_context.c
│ │ │ │ │ │ los_dispatch.S
│ │ │ │ │ │ los_exc.S
│ │ │ │ │ │ los_interrupt.c
│ │ │ │ │ │ los_timer.c
│ │ │ │ │ │ los_trustzone.c
│ │ │ │ │ └ los_trustzone.h
│ │ │ │ └ secure
│ │ │ │ │ los_secure_context.c
│ │ │ │ │ los_secure_context.h
│ │ │ │ │ los_secure_context_asm.S
│ │ │ │ │ los_secure_heap.c
│ │ │ │ │ los_secure_heap.h
│ │ │ │ └ los_secure_macros.h
│ │ │ ├ cortex-m4
│ │ │ │ ├ gcc
│ │ │ │ │ │ BUILD.gn
│ │ │ │ │ │ los_arch_atomic.h
│ │ │ │ │ │ los_arch_context.h
│ │ │ │ │ │ los_arch_interrupt.h
│ │ │ │ │ │ los_arch_timer.h
│ │ │ │ │ │ los_context.c
│ │ │ │ │ │ los_dispatch.S
│ │ │ │ │ │ los_exc.S
│ │ │ │ │ │ los_interrupt.c
│ │ │ │ │ │ los_mpu.c
│ │ │ │ │ └ los_timer.c
│ │ │ │ └ iar
│ │ │ │ │ los_arch_atomic.h
│ │ │ │ │ los_arch_context.h
│ │ │ │ │ los_arch_interrupt.h
│ │ │ │ │ los_arch_timer.h
│ │ │ │ │ los_context.c
│ │ │ │ │ los_dispatch.S
│ │ │ │ │ los_exc.S
│ │ │ │ │ los_interrupt.c
│ │ │ │ │ los_mpu.c
│ │ │ │ └ los_timer.c
│ │ │ └ cortex-m7
│ │ │ ├ gcc
│ │ │ │ │ BUILD.gn
│ │ │ │ │ los_arch_atomic.h
│ │ │ │ │ los_arch_context.h
│ │ │ │ │ los_arch_interrupt.h
│ │ │ │ │ los_arch_timer.h
│ │ │ │ │ los_context.c
│ │ │ │ │ los_dispatch.S
│ │ │ │ │ los_exc.S
│ │ │ │ │ los_interrupt.c
│ │ │ │ └ los_timer.c
│ │ │ └ iar
│ │ │ │ los_arch_atomic.h
│ │ │ │ los_arch_context.h
│ │ │ │ los_arch_interrupt.h
│ │ │ │ los_arch_timer.h
│ │ │ │ los_context.c
│ │ │ │ los_dispatch.S
│ │ │ │ los_exc.S
│ │ │ │ los_interrupt.c
│ │ │ │ los_mpu.c
│ │ │ └ los_timer.c
│ │ ├ include
│ │ │ │ los_arch.h
│ │ │ │ los_atomic.h
│ │ │ │ los_context.h
│ │ │ │ los_interrupt.h
│ │ │ │ los_mpu.h
│ │ │ └ los_timer.h
│ │ └ risc-v
│ │ ├ nuclei
│ │ │ └ gcc
│ │ │ │ los_arch_context.h
│ │ │ │ los_arch_interrupt.h
│ │ │ │ los_arch_timer.h
│ │ │ │ los_context.c
│ │ │ │ los_dispatch.S
│ │ │ │ los_exc.S
│ │ │ │ los_interrupt.c
│ │ │ │ los_timer.c
│ │ │ └ nmsis
│ │ │ ├ Core
│ │ │ │ └ Include
│ │ │ │ │ core_compatiable.h
│ │ │ │ │ core_feature_base.h
│ │ │ │ │ core_feature_cache.h
│ │ │ │ │ core_feature_dsp.h
│ │ │ │ │ core_feature_eclic.h
│ │ │ │ │ core_feature_fpu.h
│ │ │ │ │ core_feature_pmp.h
│ │ │ │ │ core_feature_timer.h
│ │ │ │ │ nmsis_compiler.h
│ │ │ │ │ nmsis_core.h
│ │ │ │ │ nmsis_gcc.h
│ │ │ │ │ nmsis_version.h
│ │ │ │ │ riscv_bits.h
│ │ │ │ └ riscv_encoding.h
│ │ │ ├ DSP
│ │ │ │ └ Include
│ │ │ │ │ riscv_common_tables.h
│ │ │ │ │ riscv_const_structs.h
│ │ │ │ └ riscv_math.h
│ │ │ ├ Library
│ │ │ │ ├ DSP
│ │ │ │ │ └ GCC
│ │ │ │ │ │ libnmsis_dsp_rv32imac.a
│ │ │ │ │ │ libnmsis_dsp_rv32imacp.a
│ │ │ │ │ │ libnmsis_dsp_rv32imafc.a
│ │ │ │ │ │ libnmsis_dsp_rv32imafcp.a
│ │ │ │ │ │ libnmsis_dsp_rv32imafdc.a
│ │ │ │ │ │ libnmsis_dsp_rv32imafdcp.a
│ │ │ │ │ │ libnmsis_dsp_rv64imac.a
│ │ │ │ │ │ libnmsis_dsp_rv64imacp.a
│ │ │ │ │ │ libnmsis_dsp_rv64imafc.a
│ │ │ │ │ │ libnmsis_dsp_rv64imafcp.a
│ │ │ │ │ │ libnmsis_dsp_rv64imafdc.a
│ │ │ │ │ └ libnmsis_dsp_rv64imafdcp.a
│ │ │ │ ├ mathlib
│ │ │ │ │ └ GCC
│ │ │ │ │ └ libmathlib_rv64imafdcpv.a
│ │ │ │ └ NN
│ │ │ │ └ GCC
│ │ │ │ │ libnmsis_nn_rv32imac.a
│ │ │ │ │ libnmsis_nn_rv32imacp.a
│ │ │ │ │ libnmsis_nn_rv32imafc.a
│ │ │ │ │ libnmsis_nn_rv32imafcp.a
│ │ │ │ │ libnmsis_nn_rv32imafdc.a
│ │ │ │ │ libnmsis_nn_rv32imafdcp.a
│ │ │ │ │ libnmsis_nn_rv64imac.a
│ │ │ │ │ libnmsis_nn_rv64imacp.a