├── drivers ├── drv_pwm.h ├── drv_hwtimer.h ├── drv_qspi.c ├── drv_usbd.h ├── drv_usart.h ├── drv_wakeup.h ├── drv_clock.h ├── drv_wlan.h ├── audio │ ├── drv_audio.h │ └── drv_es8388.h ├── drv_i2c.h ├── linker_scripts │ ├── stm32l475ve.sct │ └── stm32l475ve_app.sct ├── drv_qspi.h ├── drv_log.h ├── drv_pmtimer.h └── drv_spi_tfcard.c ├── packages ├── pkgs_error.json ├── EasyFlash-v3.2.1 │ ├── docs │ │ ├── en │ │ │ ├── api.md │ │ │ └── readme.md │ │ ├── zh │ │ │ ├── images │ │ │ │ └── BackupAreaPartition.jpg │ │ │ └── readme.md │ │ └── readme.md │ ├── SConscript │ └── .gitattributes ├── micropython-v1.10.1 │ ├── port │ │ ├── qstrdefsport.h │ │ ├── native │ │ │ ├── native_module.py │ │ │ └── easyflash_module.py │ │ └── genhdr │ │ │ └── mpversion.h │ ├── extmod │ │ ├── axtls-include │ │ │ └── version.h │ │ ├── uzlib │ │ │ ├── tinf.h │ │ │ ├── tinf_compat.h │ │ │ └── uzlib_conf.h │ │ ├── lwip-include │ │ │ └── arch │ │ │ │ └── perf.h │ │ ├── modwebsocket.h │ │ └── moduwebsocket.h │ ├── docs │ │ ├── assets │ │ │ ├── c-gen.png │ │ │ ├── IoT_Board.png │ │ │ ├── mount_fs.png │ │ │ ├── W60x_HW_origin.png │ │ │ ├── add_main_stack.png │ │ │ ├── check_memory.png │ │ │ ├── config_runtime.png │ │ │ ├── w601_examples.png │ │ │ ├── en_connect_board.gif │ │ │ ├── sparrow_example.png │ │ │ ├── 08_direct_run_files.gif │ │ │ ├── select_micropython.png │ │ │ ├── select_mpy_package.png │ │ │ ├── sparrow_one_board.png │ │ │ ├── open_filesync_option.png │ │ │ └── check_pandora_examples.png │ │ ├── spec-librarys │ │ │ ├── network.md │ │ │ └── rtthread.md │ │ ├── std-librarys │ │ │ ├── uzlib.md │ │ │ ├── uheapq.md │ │ │ ├── gc.md │ │ │ ├── uerrno.md │ │ │ └── _thread.md │ │ └── micropython-mpy.md │ ├── lib │ │ └── oofatfs │ │ │ └── option │ │ │ └── unicode.c │ └── py │ │ ├── emitnarm.c │ │ ├── emitnx64.c │ │ ├── emitnthumb.c │ │ └── emitnxtensa.c ├── tinycrypt-v1.0.0 │ ├── README.md │ ├── SConscript │ └── .gitignore ├── packages.dbsqlite ├── netutils-v1.1.0 │ ├── tools │ │ └── jperf.rar │ ├── images │ │ ├── iperfc.png │ │ ├── iperfs.png │ │ ├── iperfc-udp.png │ │ ├── iperfs-udp.png │ │ ├── tftpd_cfg.png │ │ ├── tftpd_get.png │ │ ├── tftpd_put.png │ │ ├── netio_tested.png │ │ ├── telnet_connect_cfg.png │ │ └── telnet_connected.png │ ├── ntp │ │ └── SConscript │ ├── ping │ │ └── SConscript │ ├── tftp │ │ └── SConscript │ ├── iperf │ │ └── SConscript │ ├── netio │ │ └── SConscript │ ├── tcpdump │ │ └── SConscript │ ├── telnet │ │ └── SConscript │ └── SConscript ├── fal-v0.3.0 │ ├── samples │ │ └── README.md │ ├── SConscript │ └── .gitignore ├── stm32_sdio-v1.0.2 │ └── SConscript ├── SConscript └── pkgs.json ├── rt-thread ├── components │ ├── net │ │ ├── lwip-2.0.2 │ │ │ ├── test │ │ │ │ ├── fuzz │ │ │ │ │ └── config.h │ │ │ │ └── unit │ │ │ │ │ ├── core │ │ │ │ │ ├── test_mem.h │ │ │ │ │ └── test_pbuf.h │ │ │ │ │ ├── tcp │ │ │ │ │ ├── test_tcp.h │ │ │ │ │ └── test_tcp_oos.h │ │ │ │ │ ├── udp │ │ │ │ │ └── test_udp.h │ │ │ │ │ ├── dhcp │ │ │ │ │ └── test_dhcp.h │ │ │ │ │ ├── mdns │ │ │ │ │ └── test_mdns.h │ │ │ │ │ └── etharp │ │ │ │ │ └── test_etharp.h │ │ │ ├── doc │ │ │ │ ├── doxygen │ │ │ │ │ ├── generate.bat │ │ │ │ │ ├── generate.sh │ │ │ │ │ └── output │ │ │ │ │ │ └── index.html │ │ │ │ ├── doxygen_docs.zip │ │ │ │ └── FILES │ │ │ ├── src │ │ │ │ ├── apps │ │ │ │ │ ├── httpd │ │ │ │ │ │ ├── fs │ │ │ │ │ │ │ ├── img │ │ │ │ │ │ │ │ └── sics.gif │ │ │ │ │ │ │ └── 404.html │ │ │ │ │ │ └── makefsdata │ │ │ │ │ │ │ └── readme.txt │ │ │ │ │ └── README.md │ │ │ │ ├── include │ │ │ │ │ ├── lwip │ │ │ │ │ │ └── apps │ │ │ │ │ │ │ └── FILES │ │ │ │ │ └── netif │ │ │ │ │ │ └── etharp.h │ │ │ │ ├── lwippools.h │ │ │ │ └── FILES │ │ │ └── FILES │ │ ├── lwip-2.1.0 │ │ │ ├── test │ │ │ │ ├── fuzz │ │ │ │ │ └── config.h │ │ │ │ └── unit │ │ │ │ │ ├── core │ │ │ │ │ ├── test_def.h │ │ │ │ │ ├── test_mem.h │ │ │ │ │ ├── test_netif.h │ │ │ │ │ ├── test_pbuf.h │ │ │ │ │ └── test_timers.h │ │ │ │ │ ├── ip4 │ │ │ │ │ └── test_ip4.h │ │ │ │ │ ├── ip6 │ │ │ │ │ └── test_ip6.h │ │ │ │ │ ├── tcp │ │ │ │ │ ├── test_tcp.h │ │ │ │ │ └── test_tcp_oos.h │ │ │ │ │ ├── udp │ │ │ │ │ └── test_udp.h │ │ │ │ │ ├── dhcp │ │ │ │ │ └── test_dhcp.h │ │ │ │ │ ├── mdns │ │ │ │ │ └── test_mdns.h │ │ │ │ │ ├── mqtt │ │ │ │ │ └── test_mqtt.h │ │ │ │ │ ├── api │ │ │ │ │ └── test_sockets.h │ │ │ │ │ └── etharp │ │ │ │ │ └── test_etharp.h │ │ │ ├── doc │ │ │ │ ├── doxygen │ │ │ │ │ ├── generate.bat │ │ │ │ │ ├── generate.sh │ │ │ │ │ └── output │ │ │ │ │ │ └── index.html │ │ │ │ └── FILES │ │ │ ├── src │ │ │ │ ├── apps │ │ │ │ │ ├── http │ │ │ │ │ │ ├── fs │ │ │ │ │ │ │ ├── img │ │ │ │ │ │ │ │ └── sics.gif │ │ │ │ │ │ │ └── 404.html │ │ │ │ │ │ └── makefsdata │ │ │ │ │ │ │ └── readme.txt │ │ │ │ │ └── README.md │ │ │ │ ├── include │ │ │ │ │ ├── lwip │ │ │ │ │ │ └── apps │ │ │ │ │ │ │ ├── FILES │ │ │ │ │ │ │ └── snmp_snmpv2_usm.h │ │ │ │ │ └── netif │ │ │ │ │ │ └── etharp.h │ │ │ │ ├── lwippools.h │ │ │ │ └── FILES │ │ │ ├── FILES │ │ │ └── READTEST.md │ │ ├── uip │ │ │ ├── apps │ │ │ │ ├── resolv │ │ │ │ │ └── Makefile.resolv │ │ │ │ ├── webserver │ │ │ │ │ ├── httpd-fs │ │ │ │ │ │ ├── footer.html │ │ │ │ │ │ ├── fade.png │ │ │ │ │ │ ├── 404.html │ │ │ │ │ │ ├── tcp.shtml │ │ │ │ │ │ ├── processes.shtml │ │ │ │ │ │ └── header.html │ │ │ │ │ └── Makefile.webserver │ │ │ │ ├── dhcpc │ │ │ │ │ └── Makefile.dhcpc │ │ │ │ ├── hello-world │ │ │ │ │ └── Makefile.hello-world │ │ │ │ ├── smtp │ │ │ │ │ ├── Makefile.smtp │ │ │ │ │ └── smtp-strings │ │ │ │ ├── telnetd │ │ │ │ │ └── Makefile.telnetd │ │ │ │ ├── webclient │ │ │ │ │ └── Makefile.webclient │ │ │ │ └── README │ │ │ ├── doc │ │ │ │ ├── uip-code-style.txt │ │ │ │ ├── sicslogo.pdf │ │ │ │ ├── html │ │ │ │ │ ├── doxygen.png │ │ │ │ │ ├── ftv2doc.png │ │ │ │ │ ├── tab_b.gif │ │ │ │ │ ├── tab_l.gif │ │ │ │ │ ├── tab_r.gif │ │ │ │ │ ├── ftv2blank.png │ │ │ │ │ ├── ftv2link.png │ │ │ │ │ ├── ftv2mnode.png │ │ │ │ │ ├── ftv2node.png │ │ │ │ │ ├── ftv2pnode.png │ │ │ │ │ ├── ftv2lastnode.png │ │ │ │ │ ├── ftv2vertline.png │ │ │ │ │ ├── ftv2folderopen.png │ │ │ │ │ ├── ftv2mlastnode.png │ │ │ │ │ ├── ftv2plastnode.png │ │ │ │ │ ├── ftv2folderclosed.png │ │ │ │ │ └── index.html │ │ │ │ ├── mobisys2003.pdf │ │ │ │ ├── uip-refman.pdf │ │ │ │ ├── Makefile │ │ │ │ └── README │ │ │ ├── uip │ │ │ │ ├── uip.c │ │ │ │ └── uip_timer.c │ │ │ ├── rt-thread │ │ │ │ ├── uip_addr.h │ │ │ │ ├── readme.txt │ │ │ │ ├── uip_etharp.h │ │ │ │ └── uip_ipaddr.h │ │ │ └── README │ │ ├── lwip-1.4.1 │ │ │ ├── src │ │ │ │ ├── core │ │ │ │ │ └── ipv6 │ │ │ │ │ │ └── README │ │ │ │ └── FILES │ │ │ ├── CHANGELOG │ │ │ ├── FILES │ │ │ ├── test │ │ │ │ └── unit │ │ │ │ │ ├── core │ │ │ │ │ └── test_mem.h │ │ │ │ │ ├── tcp │ │ │ │ │ ├── test_tcp.h │ │ │ │ │ └── test_tcp_oos.h │ │ │ │ │ ├── udp │ │ │ │ │ └── test_udp.h │ │ │ │ │ └── etharp │ │ │ │ │ └── test_etharp.h │ │ │ ├── doc │ │ │ │ └── FILES │ │ │ └── READTEST.md │ │ ├── freemodbus │ │ │ └── modbus │ │ │ │ └── include │ │ │ │ └── mb_m.h │ │ ├── lwip_nat │ │ │ └── SConscript │ │ ├── netdev │ │ │ ├── SConscript │ │ │ └── include │ │ │ │ └── arpa │ │ │ │ └── inet.h │ │ ├── sal_socket │ │ │ └── include │ │ │ │ ├── socket │ │ │ │ └── netinet │ │ │ │ │ ├── tcp.h │ │ │ │ │ ├── udp.h │ │ │ │ │ └── in.h │ │ │ │ └── dfs_net │ │ │ │ ├── sys_select │ │ │ │ └── sys │ │ │ │ │ └── select.h │ │ │ │ └── dfs_net.h │ │ ├── lwip_dhcpd │ │ │ └── SConscript │ │ ├── SConscript │ │ └── at │ │ │ ├── include │ │ │ └── at_log.h │ │ │ └── SConscript │ ├── dfs │ │ ├── filesystems │ │ │ ├── uffs │ │ │ │ ├── AUTHORS │ │ │ │ ├── tools │ │ │ │ │ ├── make_package.sh │ │ │ │ │ ├── format_code.rb │ │ │ │ │ └── chomp_uffs_perror.rb │ │ │ │ ├── TODO │ │ │ │ ├── doc │ │ │ │ │ ├── Understanding-UFFS.odp │ │ │ │ │ ├── Understanding-UFFS.pdf │ │ │ │ │ └── uffs-serial-num-relationship.JPG │ │ │ │ └── src │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── platform │ │ │ │ │ └── CMakeLists.txt │ │ │ │ │ ├── utils │ │ │ │ │ └── CMakeLists.txt │ │ │ │ │ └── emu │ │ │ │ │ └── CMakeLists.txt │ │ │ ├── jffs2 │ │ │ │ ├── kernel │ │ │ │ │ ├── linux │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── init.h │ │ │ │ │ │ ├── vmalloc.h │ │ │ │ │ │ ├── mtd │ │ │ │ │ │ │ ├── mtd.h │ │ │ │ │ │ │ └── compatmac.h │ │ │ │ │ │ ├── fs.h │ │ │ │ │ │ ├── string.h │ │ │ │ │ │ ├── version.h │ │ │ │ │ │ ├── compiler.h │ │ │ │ │ │ ├── crc32.h │ │ │ │ │ │ ├── zutil.h │ │ │ │ │ │ ├── sched.h │ │ │ │ │ │ ├── types.h │ │ │ │ │ │ ├── completion.h │ │ │ │ │ │ ├── timer.h │ │ │ │ │ │ ├── config.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── slab.h │ │ │ │ │ │ ├── zlib.h │ │ │ │ │ │ ├── workqueue.h │ │ │ │ │ │ ├── TODO │ │ │ │ │ │ ├── pagemap.h │ │ │ │ │ │ └── wait.h │ │ │ │ │ └── asm │ │ │ │ │ │ ├── bug.h │ │ │ │ │ │ ├── atomic.h │ │ │ │ │ │ └── page.h │ │ │ │ ├── src │ │ │ │ │ ├── histo_mips.h │ │ │ │ │ ├── dir.txt │ │ │ │ │ ├── histo.h │ │ │ │ │ └── compr_rubin.h │ │ │ │ ├── cyg │ │ │ │ │ └── compress │ │ │ │ │ │ ├── ChangeLog │ │ │ │ │ │ └── src │ │ │ │ │ │ ├── ChangeLog │ │ │ │ │ │ └── inffast.h │ │ │ │ └── dfs_jffs2.h │ │ │ ├── ramfs │ │ │ │ └── SConscript │ │ │ ├── nfs │ │ │ │ ├── dfs_nfs.h │ │ │ │ └── SConscript │ │ │ ├── devfs │ │ │ │ ├── SConscript │ │ │ │ └── devfs.h │ │ │ ├── skeleton │ │ │ │ └── skeleton.h │ │ │ ├── SConscript │ │ │ ├── romfs │ │ │ │ └── SConscript │ │ │ └── elmfat │ │ │ │ ├── option │ │ │ │ └── unicode.c │ │ │ │ └── dfs_elm.h │ │ └── include │ │ │ ├── dfs_select.h │ │ │ └── dfs_private.h │ ├── libc │ │ ├── compilers │ │ │ ├── dlib │ │ │ │ ├── sys │ │ │ │ │ ├── README.md │ │ │ │ │ └── stat.h │ │ │ │ ├── README.md │ │ │ │ ├── fcntl.h │ │ │ │ ├── syscalls.h │ │ │ │ ├── environ.c │ │ │ │ ├── unistd.h │ │ │ │ ├── termios.h │ │ │ │ ├── syscall_remove.c │ │ │ │ ├── libc.h │ │ │ │ ├── syscall_mem.c │ │ │ │ ├── syscall_close.c │ │ │ │ ├── SConscript │ │ │ │ └── syscall_lseek.c │ │ │ ├── armlibc │ │ │ │ ├── sys │ │ │ │ │ ├── README.md │ │ │ │ │ ├── stat.h │ │ │ │ │ └── errno.h │ │ │ │ ├── unistd.h │ │ │ │ ├── fcntl.h │ │ │ │ ├── termios.h │ │ │ │ ├── libc.h │ │ │ │ └── SConscript │ │ │ ├── newlib │ │ │ │ ├── sys │ │ │ │ │ ├── termios.h │ │ │ │ │ └── statfs.h │ │ │ │ ├── termios.h │ │ │ │ └── SConscript │ │ │ ├── common │ │ │ │ └── SConscript │ │ │ ├── minilibc │ │ │ │ ├── inttypes.h │ │ │ │ ├── stddef.h │ │ │ │ ├── math.h │ │ │ │ ├── errno.h │ │ │ │ ├── SConscript │ │ │ │ ├── ctype.h │ │ │ │ ├── stdio.h │ │ │ │ └── time.h │ │ │ └── SConscript │ │ ├── pthreads │ │ │ └── SConscript │ │ ├── time │ │ │ ├── SConscript │ │ │ └── posix_sleep.c │ │ ├── aio │ │ │ └── SConscript │ │ ├── mmap │ │ │ └── SConscript │ │ ├── signal │ │ │ └── SConscript │ │ ├── termios │ │ │ └── SConscript │ │ ├── libdl │ │ │ ├── SConscript │ │ │ ├── dlerror.c │ │ │ └── dlfcn.h │ │ └── SConscript │ ├── cplusplus │ │ ├── Kconfig │ │ ├── SConscript │ │ ├── Lock.h │ │ └── crt.h │ ├── drivers │ │ ├── spi │ │ │ ├── sfud │ │ │ │ └── src │ │ │ │ │ └── sfud_sfdp.c │ │ │ ├── device_driver_list.txt │ │ │ ├── spi_flash_gd.h │ │ │ ├── spi_flash_w25qxx.h │ │ │ └── spi_flash_w25qxx_mtd.h │ │ ├── wlan │ │ │ └── SConscript │ │ ├── audio │ │ │ └── SConscript │ │ ├── can │ │ │ └── SConscript │ │ ├── serial │ │ │ └── SConscript │ │ ├── watchdog │ │ │ └── SConscript │ │ ├── hwtimer │ │ │ └── SConscript │ │ ├── pm │ │ │ └── SConscript │ │ ├── SConscript │ │ ├── usb │ │ │ ├── SConscript │ │ │ └── usbdevice │ │ │ │ └── class │ │ │ │ └── winusb.h │ │ ├── src │ │ │ └── SConscript │ │ ├── cputime │ │ │ └── SConscript │ │ ├── sensors │ │ │ └── SConscript │ │ ├── sdio │ │ │ └── SConscript │ │ ├── i2c │ │ │ ├── SConscript │ │ │ └── fm24clxx.h │ │ ├── misc │ │ │ └── SConscript │ │ ├── include │ │ │ ├── drivers │ │ │ │ ├── wlan.h │ │ │ │ ├── rtc.h │ │ │ │ └── cputime.h │ │ │ └── ipc │ │ │ │ └── completion.h │ │ └── rtc │ │ │ └── SConscript │ ├── utilities │ │ ├── utest │ │ │ └── SConscript │ │ ├── ymodem │ │ │ └── SConscript │ │ ├── SConscript │ │ └── ulog │ │ │ └── SConscript │ ├── lwp │ │ ├── Kconfig │ │ └── lwp_mem.h │ ├── vmm │ │ ├── SConscript │ │ └── vmm_context.h │ ├── SConscript │ ├── finsh │ │ ├── finsh_heap.h │ │ ├── finsh_parser.h │ │ ├── finsh_error.h │ │ ├── msh.h │ │ └── SConscript │ └── vbus │ │ └── SConscript ├── tools │ ├── kconfig-frontends │ │ ├── .version │ │ ├── libs │ │ │ └── parser │ │ │ │ ├── kconfig-parser.pc.in │ │ │ │ └── hconf.gperf.patch │ │ ├── AUTHORS │ │ ├── frontends │ │ │ └── qconf │ │ │ │ └── qconf.cc.patch │ │ └── SConstruct │ └── as.sh ├── Kconfig ├── libcpu │ ├── arm │ │ ├── sep4020 │ │ │ ├── start_rvds.S │ │ │ └── SConscript │ │ ├── common │ │ │ ├── div0.c │ │ │ └── SConscript │ │ ├── s3c24x0 │ │ │ ├── rtc.h │ │ │ └── SConscript │ │ ├── SConscript │ │ ├── zynq7000 │ │ │ ├── interrupt.h │ │ │ ├── cp15.h │ │ │ └── SConscript │ │ ├── realview-a8-vmm │ │ │ ├── cp15.h │ │ │ ├── SConscript │ │ │ ├── pmu.c │ │ │ └── cpu.c │ │ ├── am335x │ │ │ └── SConscript │ │ ├── armv6 │ │ │ └── SConscript │ │ ├── dm36x │ │ │ └── SConscript │ │ ├── AT91SAM7S │ │ │ ├── SConscript │ │ │ ├── cpu.c │ │ │ └── trap.c │ │ ├── AT91SAM7X │ │ │ ├── SConscript │ │ │ └── cpu.c │ │ ├── cortex-a │ │ │ ├── SConscript │ │ │ ├── pmu.c │ │ │ └── cp15.h │ │ ├── cortex-m0 │ │ │ └── SConscript │ │ ├── cortex-m23 │ │ │ └── SConscript │ │ ├── cortex-m3 │ │ │ └── SConscript │ │ ├── cortex-m4 │ │ │ └── SConscript │ │ ├── cortex-m7 │ │ │ └── SConscript │ │ ├── cortex-r4 │ │ │ └── SConscript │ │ ├── lpc214x │ │ │ └── SConscript │ │ ├── lpc24xx │ │ │ ├── SConscript │ │ │ └── cpu.c │ │ ├── s3c44b0 │ │ │ └── SConscript │ │ └── arm926 │ │ │ ├── machine.c │ │ │ └── SConscript │ └── SConscript └── include │ └── libc │ └── libc_dirent.h ├── bin └── wifi_image_1.0.rbl ├── docs ├── assets │ ├── IoT_Board.png │ └── check_pandora_examples.png └── board │ └── Pandora_STM32L4_Board_V2.4_SCH.pdf ├── libraries ├── wifi │ ├── libwifi_6181_0.2.5_armcm4_gcc.a │ ├── libwifi_6181_0.2.5_armcm4_iar.a │ ├── libwifi_6181_0.2.5_armcm4_keil.lib │ └── SConscript ├── cloudsdk │ ├── libs │ │ ├── libcloudsdk_2.0.0_armcm4_gcc.a │ │ └── libcloudsdk_2.0.0_armcm4_iar.a │ └── SConscript ├── CMSIS │ ├── Device │ │ └── ST │ │ │ └── STM32L4xx │ │ │ └── Include │ │ │ ├── stm32l4xx.h │ │ │ ├── stm32l475xx.h │ │ │ └── stm32l496xx.h │ └── SConscript ├── STM32L4xx_HAL_Driver │ └── src │ │ ├── stm32l4xx_hal_cryp.c │ │ ├── stm32l4xx_hal_swpmi.c │ │ └── stm32l4xx_hal_wwdg.c ├── rt_ota │ ├── libs │ │ ├── librt_ota_noalgo_0.1.2_stm32l4_gcc.a │ │ ├── librt_ota_noalgo_0.1.2_stm32l4_iar.a │ │ └── librt_ota_noalgo_0.1.2_stm32l4_keil.lib │ └── SConscript ├── smartconfig │ ├── libs │ │ ├── libsmartconfig_1.0.0_armcm4_gcc.a │ │ └── libsmartconfig_1.0.0_armcm4_iar.a │ └── SConscript ├── SConscript └── Kconfig ├── project.eww ├── applications └── SConscript ├── ports ├── wifi │ └── SConscript ├── easyflash │ └── SConscript ├── SConscript └── fal │ └── SConscript ├── SConscript ├── .gitignore └── Kconfig /drivers/drv_pwm.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/drv_hwtimer.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/pkgs_error.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /packages/EasyFlash-v3.2.1/docs/en/api.md: -------------------------------------------------------------------------------- 1 | # Coming soon... -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/fuzz/config.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/fuzz/config.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/port/qstrdefsport.h: -------------------------------------------------------------------------------- 1 | // qstrs specific to this port 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/doc/doxygen/generate.bat: -------------------------------------------------------------------------------- 1 | doxygen lwip.Doxyfile 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/doc/doxygen/generate.bat: -------------------------------------------------------------------------------- 1 | doxygen lwip.Doxyfile 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/resolv/Makefile.resolv: -------------------------------------------------------------------------------- 1 | APP_SOURCES += resolv.c 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/webserver/httpd-fs/footer.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/dhcpc/Makefile.dhcpc: -------------------------------------------------------------------------------- 1 | APP_SOURCES += dhcpc.c timer.c 2 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/AUTHORS: -------------------------------------------------------------------------------- 1 | Ricky Zheng 2 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/extmod/axtls-include/version.h: -------------------------------------------------------------------------------- 1 | #define AXTLS_VERSION "(no version)" 2 | -------------------------------------------------------------------------------- /packages/tinycrypt-v1.0.0/README.md: -------------------------------------------------------------------------------- 1 | # tinycrypt 2 | 3 | A simple and configurable crypt library 4 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/src/core/ipv6/README: -------------------------------------------------------------------------------- 1 | IPv6 support in lwIP is very experimental. 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/hello-world/Makefile.hello-world: -------------------------------------------------------------------------------- 1 | APP_SOURCES += hello-world.c 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/smtp/Makefile.smtp: -------------------------------------------------------------------------------- 1 | APP_SOURCES += smtp.c smtp-strings.c memb.c 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/telnetd/Makefile.telnetd: -------------------------------------------------------------------------------- 1 | APP_SOURCES += telnetd.c shell.c memb.c 2 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/uip-code-style.txt: -------------------------------------------------------------------------------- 1 | /** 2 | \example uip-code-style.c 3 | */ 4 | -------------------------------------------------------------------------------- /drivers/drv_qspi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/drivers/drv_qspi.c -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/doc/doxygen/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | doxygen lwip.Doxyfile 4 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/doc/doxygen/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | doxygen lwip.Doxyfile 4 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/webclient/Makefile.webclient: -------------------------------------------------------------------------------- 1 | APP_SOURCES += webclient-strings.c webclient.c 2 | -------------------------------------------------------------------------------- /bin/wifi_image_1.0.rbl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/bin/wifi_image_1.0.rbl -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/sys/README.md: -------------------------------------------------------------------------------- 1 | Because IAR leaks some system header file, we put them in here. -------------------------------------------------------------------------------- /rt-thread/tools/kconfig-frontends/.version: -------------------------------------------------------------------------------- 1 | 4.11.0 a351e9b9fc24e982ec2f0e76379a49826036da12 Fearless Coyote 2 | 1 3 | -------------------------------------------------------------------------------- /docs/assets/IoT_Board.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/docs/assets/IoT_Board.png -------------------------------------------------------------------------------- /packages/packages.dbsqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/packages.dbsqlite -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/errno.h: -------------------------------------------------------------------------------- 1 | //#include 2 | #include "port/codes.h" //fixme 3 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/armlibc/sys/README.md: -------------------------------------------------------------------------------- 1 | Because Keil MDK leaks some system header file, we put them in here. -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/webserver/Makefile.webserver: -------------------------------------------------------------------------------- 1 | APP_SOURCES += httpd.c http-strings.c httpd-fs.c httpd-cgi.c 2 | -------------------------------------------------------------------------------- /rt-thread/Kconfig: -------------------------------------------------------------------------------- 1 | source "$RTT_DIR/src/Kconfig" 2 | source "$RTT_DIR/libcpu/Kconfig" 3 | source "$RTT_DIR/components/Kconfig" 4 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/init.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_INIT_H__ 2 | #define __LINUX_INIT_H__ 3 | #endif 4 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/vmalloc.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_VMALLOC_H__ 2 | #define __LINUX_VMALLOC_H__ 3 | #endif 4 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/README: -------------------------------------------------------------------------------- 1 | This directory contains a few example applications. They are not all 2 | heavily tested, however. 3 | -------------------------------------------------------------------------------- /docs/assets/check_pandora_examples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/docs/assets/check_pandora_examples.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/uip/uip.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/uip/uip.c -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/tools/jperf.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/tools/jperf.rar -------------------------------------------------------------------------------- /rt-thread/components/net/uip/rt-thread/uip_addr.h: -------------------------------------------------------------------------------- 1 | 2 | #include "rtdef.h" 3 | 4 | 5 | 6 | struct ip_addr { 7 | rt_uint16_t uip_ip4addr_t[2]; 8 | } ; -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/sep4020/start_rvds.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/libcpu/arm/sep4020/start_rvds.S -------------------------------------------------------------------------------- /packages/fal-v0.3.0/samples/README.md: -------------------------------------------------------------------------------- 1 | | 文件夹 | 说明 | 2 | | :------ | :----------------------- | 3 | | porting | 移植相关的示例代码及文档 | 4 | 5 | -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/iperfc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/iperfc.png -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/iperfs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/iperfs.png -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/tools/make_package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | git ls-tree --name-only --full-name -r $1 | xargs tar -jcvf uffs-$1.tar.bz2 -------------------------------------------------------------------------------- /rt-thread/components/net/uip/uip/uip_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/uip/uip_timer.c -------------------------------------------------------------------------------- /docs/board/Pandora_STM32L4_Board_V2.4_SCH.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/docs/board/Pandora_STM32L4_Board_V2.4_SCH.pdf -------------------------------------------------------------------------------- /libraries/wifi/libwifi_6181_0.2.5_armcm4_gcc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/wifi/libwifi_6181_0.2.5_armcm4_gcc.a -------------------------------------------------------------------------------- /libraries/wifi/libwifi_6181_0.2.5_armcm4_iar.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/wifi/libwifi_6181_0.2.5_armcm4_iar.a -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/iperfc-udp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/iperfc-udp.png -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/iperfs-udp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/iperfs-udp.png -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/tftpd_cfg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/tftpd_cfg.png -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/tftpd_get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/tftpd_get.png -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/tftpd_put.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/tftpd_put.png -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/lwip-1.4.1/CHANGELOG -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/sicslogo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/sicslogo.pdf -------------------------------------------------------------------------------- /libraries/wifi/libwifi_6181_0.2.5_armcm4_keil.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/wifi/libwifi_6181_0.2.5_armcm4_keil.lib -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/netio_tested.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/netio_tested.png -------------------------------------------------------------------------------- /rt-thread/components/cplusplus/Kconfig: -------------------------------------------------------------------------------- 1 | menu "C++ features" 2 | 3 | config RT_USING_CPLUSPLUS 4 | bool "Support C++ features" 5 | default n 6 | 7 | endmenu 8 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/doxygen.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2doc.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/tab_b.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/tab_b.gif -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/tab_l.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/tab_l.gif -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/tab_r.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/tab_r.gif -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/mobisys2003.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/mobisys2003.pdf -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/uip-refman.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/uip-refman.pdf -------------------------------------------------------------------------------- /rt-thread/components/net/uip/rt-thread/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/rt-thread/readme.txt -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/c-gen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/c-gen.png -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/src/histo_mips.h: -------------------------------------------------------------------------------- 1 | #define BIT_DIVIDER_MIPS 1043 2 | static int bits_mips[8] = { 277,249,290,267,229,341,212,241}; /* mips32 */ 3 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/README.md: -------------------------------------------------------------------------------- 1 | Dlib(IAR) porting for RT-Thread. 2 | 3 | Please define RT_USING_LIBC and compile RT-Thread with IAR compiler. 4 | 5 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2blank.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2link.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2mnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2mnode.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2node.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2pnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2pnode.png -------------------------------------------------------------------------------- /libraries/cloudsdk/libs/libcloudsdk_2.0.0_armcm4_gcc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/cloudsdk/libs/libcloudsdk_2.0.0_armcm4_gcc.a -------------------------------------------------------------------------------- /libraries/cloudsdk/libs/libcloudsdk_2.0.0_armcm4_iar.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/cloudsdk/libs/libcloudsdk_2.0.0_armcm4_iar.a -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/IoT_Board.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/IoT_Board.png -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/mount_fs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/mount_fs.png -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/telnet_connect_cfg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/telnet_connect_cfg.png -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/images/telnet_connected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/netutils-v1.1.0/images/telnet_connected.png -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/mtd/mtd.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_MTD_MTD_H__ 2 | #define __LINUX_MTD_MTD_H__ 3 | 4 | 5 | #endif /* __LINUX_MTD_MTD_H__ */ 6 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/src/dir.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/dfs/filesystems/jffs2/src/dir.txt -------------------------------------------------------------------------------- /rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2lastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2lastnode.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2vertline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2vertline.png -------------------------------------------------------------------------------- /libraries/CMSIS/Device/ST/STM32L4xx/Include/stm32l4xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/CMSIS/Device/ST/STM32L4xx/Include/stm32l4xx.h -------------------------------------------------------------------------------- /libraries/STM32L4xx_HAL_Driver/src/stm32l4xx_hal_cryp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/STM32L4xx_HAL_Driver/src/stm32l4xx_hal_cryp.c -------------------------------------------------------------------------------- /libraries/STM32L4xx_HAL_Driver/src/stm32l4xx_hal_swpmi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/STM32L4xx_HAL_Driver/src/stm32l4xx_hal_swpmi.c -------------------------------------------------------------------------------- /libraries/STM32L4xx_HAL_Driver/src/stm32l4xx_hal_wwdg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/STM32L4xx_HAL_Driver/src/stm32l4xx_hal_wwdg.c -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/port/native/native_module.py: -------------------------------------------------------------------------------- 1 | import ffi 2 | 3 | show = ffi.func("v", "native_module_show", "s") 4 | add = ffi.func("i", "native_module_add", "ii") 5 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/doc/doxygen_docs.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/lwip-2.0.2/doc/doxygen_docs.zip -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2folderopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2folderopen.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2mlastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2mlastnode.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2plastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2plastnode.png -------------------------------------------------------------------------------- /libraries/CMSIS/Device/ST/STM32L4xx/Include/stm32l475xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/CMSIS/Device/ST/STM32L4xx/Include/stm32l475xx.h -------------------------------------------------------------------------------- /libraries/CMSIS/Device/ST/STM32L4xx/Include/stm32l496xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/CMSIS/Device/ST/STM32L4xx/Include/stm32l496xx.h -------------------------------------------------------------------------------- /libraries/rt_ota/libs/librt_ota_noalgo_0.1.2_stm32l4_gcc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/rt_ota/libs/librt_ota_noalgo_0.1.2_stm32l4_gcc.a -------------------------------------------------------------------------------- /libraries/rt_ota/libs/librt_ota_noalgo_0.1.2_stm32l4_iar.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/rt_ota/libs/librt_ota_noalgo_0.1.2_stm32l4_iar.a -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/W60x_HW_origin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/W60x_HW_origin.png -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/add_main_stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/add_main_stack.png -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/check_memory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/check_memory.png -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/config_runtime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/config_runtime.png -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/w601_examples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/w601_examples.png -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/fs.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_FS_H__ 2 | #define __LINUX_FS_H__ 3 | 4 | #include 5 | 6 | #endif /* __LINUX_FS_H__ */ 7 | -------------------------------------------------------------------------------- /rt-thread/components/net/freemodbus/modbus/include/mb_m.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/freemodbus/modbus/include/mb_m.h -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/ftv2folderclosed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/doc/html/ftv2folderclosed.png -------------------------------------------------------------------------------- /libraries/rt_ota/libs/librt_ota_noalgo_0.1.2_stm32l4_keil.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/rt_ota/libs/librt_ota_noalgo_0.1.2_stm32l4_keil.lib -------------------------------------------------------------------------------- /libraries/smartconfig/libs/libsmartconfig_1.0.0_armcm4_gcc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/smartconfig/libs/libsmartconfig_1.0.0_armcm4_gcc.a -------------------------------------------------------------------------------- /libraries/smartconfig/libs/libsmartconfig_1.0.0_armcm4_iar.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/libraries/smartconfig/libs/libsmartconfig_1.0.0_armcm4_iar.a -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/en_connect_board.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/en_connect_board.gif -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/sparrow_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/sparrow_example.png -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/webserver/httpd-fs/fade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/uip/apps/webserver/httpd-fs/fade.png -------------------------------------------------------------------------------- /packages/EasyFlash-v3.2.1/docs/zh/images/BackupAreaPartition.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/EasyFlash-v3.2.1/docs/zh/images/BackupAreaPartition.jpg -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/08_direct_run_files.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/08_direct_run_files.gif -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/select_micropython.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/select_micropython.png -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/select_mpy_package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/select_mpy_package.png -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/sparrow_one_board.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/sparrow_one_board.png -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/string.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_STRING_H__ 2 | #define __LINUX_STRING_H__ 3 | 4 | #include 5 | 6 | #endif /* __LINUX_STRING_H__ */ 7 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/TODO: -------------------------------------------------------------------------------- 1 | TODO list for v1.3: 2 | 3 | * New API: int uffs_SkipObject(uffs_Object *obj, int size); 4 | * Introduce buffer group 5 | * Interface to Linux MTD 6 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/Makefile: -------------------------------------------------------------------------------- 1 | all: htmldoc pdfdoc 2 | 3 | htmldoc: 4 | doxygen Doxyfile 5 | 6 | pdfdoc: htmldoc 7 | cd latex; make refman.pdf && mv refman.pdf ../uip-refman.pdf 8 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/open_filesync_option.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/open_filesync_option.png -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/cyg/compress/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/dfs/filesystems/jffs2/cyg/compress/ChangeLog -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/mtd/compatmac.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_MTD_COMPATMAC_H__ 2 | #define __LINUX_MTD_COMPATMAC_H__ 3 | 4 | 5 | #endif /* __LINUX_MTD_COMPATMAC_H__ */ 6 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/version.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_VERSION_H__ 2 | #define __LINUX_VERSION_H__ 3 | 4 | #include 5 | 6 | #endif /* __LINUX_VERSION_H__ */ 7 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/FILES: -------------------------------------------------------------------------------- 1 | src/ - The source code for the lwIP TCP/IP stack. 2 | doc/ - The documentation for lwIP. 3 | 4 | See also the FILES file in each subdirectory. 5 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/test/unit/core/test_mem.h: -------------------------------------------------------------------------------- 1 | #ifndef __TEST_MEM_H__ 2 | #define __TEST_MEM_H__ 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *mem_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/test/unit/tcp/test_tcp.h: -------------------------------------------------------------------------------- 1 | #ifndef __TEST_TCP_H__ 2 | #define __TEST_TCP_H__ 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *tcp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/test/unit/udp/test_udp.h: -------------------------------------------------------------------------------- 1 | #ifndef __TEST_UDP_H__ 2 | #define __TEST_UDP_H__ 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* udp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/src/apps/httpd/fs/img/sics.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/lwip-2.0.2/src/apps/httpd/fs/img/sics.gif -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/apps/http/fs/img/sics.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/net/lwip-2.1.0/src/apps/http/fs/img/sics.gif -------------------------------------------------------------------------------- /rt-thread/tools/as.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | astyle --style=allman --indent=spaces=4 --pad-oper --pad-header --unpad-paren --suffix=none --align-pointer=name --lineend=linux --convert-tabs --verbose $1 4 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/assets/check_pandora_examples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/packages/micropython-v1.10.1/docs/assets/check_pandora_examples.png -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/cyg/compress/src/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/dfs/filesystems/jffs2/cyg/compress/src/ChangeLog -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/doc/Understanding-UFFS.odp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/dfs/filesystems/uffs/doc/Understanding-UFFS.odp -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/doc/Understanding-UFFS.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/dfs/filesystems/uffs/doc/Understanding-UFFS.pdf -------------------------------------------------------------------------------- /packages/EasyFlash-v3.2.1/docs/en/readme.md: -------------------------------------------------------------------------------- 1 | |File name |Description| 2 | |:----- |:----| 3 | |api.md |API description| -------------------------------------------------------------------------------- /project.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\project.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/src/apps/README.md: -------------------------------------------------------------------------------- 1 | Some net apps for current version LwIP. 2 | 3 | The RT-Thread develop team ported apps. It's easy to use it on finsh/msh. 4 | 5 | - ping 6 | - tftp 7 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/src/include/lwip/apps/FILES: -------------------------------------------------------------------------------- 1 | This directory contains application headers. 2 | Every application shall provide one api file APP.h and optionally one options file APP_opts.h 3 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/src/include/netif/etharp.h: -------------------------------------------------------------------------------- 1 | /* ARP has been moved to core/ipv4, provide this #include for compatibility only */ 2 | #include "lwip/etharp.h" 3 | #include "netif/ethernet.h" 4 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/unit/core/test_mem.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_MEM_H 2 | #define LWIP_HDR_TEST_MEM_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *mem_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/unit/tcp/test_tcp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_TCP_H 2 | #define LWIP_HDR_TEST_TCP_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *tcp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/unit/udp/test_udp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_UDP_H 2 | #define LWIP_HDR_TEST_UDP_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* udp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/apps/README.md: -------------------------------------------------------------------------------- 1 | Some net apps for current version LwIP. 2 | 3 | The RT-Thread develop team ported apps. It's easy to use it on finsh/msh. 4 | 5 | - ping 6 | - tftp 7 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/include/lwip/apps/FILES: -------------------------------------------------------------------------------- 1 | This directory contains application headers. 2 | Every application shall provide one api file APP.h and optionally one options file APP_opts.h 3 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/include/netif/etharp.h: -------------------------------------------------------------------------------- 1 | /* ARP has been moved to core/ipv4, provide this #include for compatibility only */ 2 | #include "lwip/etharp.h" 3 | #include "netif/ethernet.h" 4 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/core/test_def.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_DEF_H 2 | #define LWIP_HDR_TEST_DEF_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *def_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/core/test_mem.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_MEM_H 2 | #define LWIP_HDR_TEST_MEM_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *mem_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/ip4/test_ip4.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_IP4_H 2 | #define LWIP_HDR_TEST_IP4_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* ip4_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/ip6/test_ip6.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_IP6_H 2 | #define LWIP_HDR_TEST_IP6_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* ip6_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/tcp/test_tcp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_TCP_H 2 | #define LWIP_HDR_TEST_TCP_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *tcp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/udp/test_udp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_UDP_H 2 | #define LWIP_HDR_TEST_UDP_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* udp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/test/unit/etharp/test_etharp.h: -------------------------------------------------------------------------------- 1 | #ifndef __TEST_ETHARP_H__ 2 | #define __TEST_ETHARP_H__ 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* etharp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/test/unit/tcp/test_tcp_oos.h: -------------------------------------------------------------------------------- 1 | #ifndef __TEST_TCP_OOS_H__ 2 | #define __TEST_TCP_OOS_H__ 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *tcp_oos_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/unit/core/test_pbuf.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_PBUF_H 2 | #define LWIP_HDR_TEST_PBUF_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *pbuf_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/unit/dhcp/test_dhcp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_DHCP_H 2 | #define LWIP_HDR_TEST_DHCP_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* dhcp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/unit/mdns/test_mdns.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_MDNS_H__ 2 | #define LWIP_HDR_TEST_MDNS_H__ 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* mdns_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/core/test_netif.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_NETIF_H 2 | #define LWIP_HDR_TEST_NETIF_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *netif_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/core/test_pbuf.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_PBUF_H 2 | #define LWIP_HDR_TEST_PBUF_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *pbuf_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/dhcp/test_dhcp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_DHCP_H 2 | #define LWIP_HDR_TEST_DHCP_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* dhcp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/mdns/test_mdns.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_MDNS_H__ 2 | #define LWIP_HDR_TEST_MDNS_H__ 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* mdns_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/mqtt/test_mqtt.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_MQTT_H__ 2 | #define LWIP_HDR_TEST_MQTT_H__ 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* mqtt_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/extmod/uzlib/tinf.h: -------------------------------------------------------------------------------- 1 | /* Compatibility header for the original tinf lib/older versions of uzlib. 2 | Note: may be removed in the future, please migrate to uzlib.h. */ 3 | #include "uzlib.h" 4 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/core/test_timers.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_TIMERS_H 2 | #define LWIP_HDR_TEST_TIMERS_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *timers_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/doc/uffs-serial-num-relationship.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SummerGift/micropython_for_pandora/HEAD/rt-thread/components/dfs/filesystems/uffs/doc/uffs-serial-num-relationship.JPG -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/unit/etharp/test_etharp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_ETHARP_H 2 | #define LWIP_HDR_TEST_ETHARP_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* etharp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/test/unit/tcp/test_tcp_oos.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_TCP_OOS_H 2 | #define LWIP_HDR_TEST_TCP_OOS_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *tcp_oos_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/api/test_sockets.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_SOCKETS_H 2 | #define LWIP_HDR_TEST_SOCKETS_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *sockets_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/etharp/test_etharp.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_ETHARP_H 2 | #define LWIP_HDR_TEST_ETHARP_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite* etharp_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/test/unit/tcp/test_tcp_oos.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_HDR_TEST_TCP_OOS_H 2 | #define LWIP_HDR_TEST_TCP_OOS_H 3 | 4 | #include "../lwip_check.h" 5 | 6 | Suite *tcp_oos_suite(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/port/genhdr/mpversion.h: -------------------------------------------------------------------------------- 1 | // This file was generated by py/makeversionhdr.py 2 | #define MICROPY_GIT_TAG "v1.10.3.99" 3 | #define MICROPY_GIT_HASH "ed1a88e-dirty" 4 | #define MICROPY_BUILD_DATE "2019-09-24" 5 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/compiler.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_COMPILER_H__ 2 | #define __LINUX_COMPILER_H__ 3 | 4 | #define likely(x) (x) 5 | #define unlikely(x) (x) 6 | 7 | #endif /* __LINUX_COMPILER_H__ */ 8 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/src/histo.h: -------------------------------------------------------------------------------- 1 | /* This file provides the bit-probabilities for the input file */ 2 | #define BIT_DIVIDER 629 3 | static int bits[9] = { 179,167,183,165,159,198,178,119,}; /* ia32 .so files */ 4 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/crc32.h: -------------------------------------------------------------------------------- 1 | #ifndef CRC32_H 2 | #define CRC32_H 3 | 4 | #include 5 | 6 | #define crc32(val, s, len) cyg_crc32_accumulate(val, (unsigned char *)s, len) 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/zutil.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_ZUTIL_H__ 2 | #define __LINUX_ZUTIL_H__ 3 | 4 | #define PRESET_DICT 0x20 /* preset dictionary flag in zlib header */ 5 | 6 | #endif /* __LINUX_ZUTIL_H__ */ 7 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/fcntl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/sys/stat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | -------------------------------------------------------------------------------- /packages/EasyFlash-v3.2.1/docs/zh/readme.md: -------------------------------------------------------------------------------- 1 | |文件名 |描述| 2 | |:----- |:----| 3 | |api.md |API 说明| 4 | |port.md |移植说明| -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/asm/bug.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_BUG_H__ 2 | #define __ASM_BUG_H__ 3 | 4 | #define BUG() do { printf("BUG() at %s %d\n", __FILE__, __LINE__); *(int *)0=0; } while (0) 5 | 6 | #endif /* __ASM_BUG_H__ */ 7 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/sched.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_SCHED_H__ 2 | #define __LINUX_SCHED_H__ 3 | 4 | #define cond_resched() do { } while(0) 5 | #define signal_pending(x) (0) 6 | 7 | #endif /* __LINUX_SCHED_H__ */ 8 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/armlibc/sys/stat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/newlib/sys/termios.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/webserver/httpd-fs/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |

404 - file not found

5 |

Go here instead.

6 |
7 | 8 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/port/native/easyflash_module.py: -------------------------------------------------------------------------------- 1 | import ffi 2 | 3 | print = ffi.func("v", "ef_print_env", "v") 4 | set = ffi.func("i", "ef_set_env", "ss") 5 | get = ffi.func("s", "ef_get_env", "s") 6 | remove = ffi.func("i", "ef_del_env", "s") 7 | -------------------------------------------------------------------------------- /applications/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [str(Dir('#')), cwd] 6 | 7 | group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) 8 | 9 | Return('group') 10 | -------------------------------------------------------------------------------- /packages/EasyFlash-v3.2.1/docs/readme.md: -------------------------------------------------------------------------------- 1 | |File or folder name |Description| 2 | |:----- |:----| 3 | |en |English documents| 4 | |zh |中文文档(简体)| -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/types.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TYPES_H__ 2 | #define __LINUX_TYPES_H__ 3 | 4 | #include "cyg/infra/cyg_type.h" 5 | 6 | #define loff_t off_t 7 | 8 | #define kvec iovec 9 | #endif /* __LINUX_TYPES_H__ */ 10 | -------------------------------------------------------------------------------- /rt-thread/components/utilities/utest/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd] 6 | group = DefineGroup('utest', src, depend = ['RT_USING_UTEST'], CPPPATH = CPPPATH) 7 | 8 | Return('group') 9 | -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/ntp/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | 6 | CPPPATH = [cwd] 7 | 8 | group = DefineGroup('NetUtils', src, depend = ['PKG_NETUTILS_NTP'], CPPPATH = CPPPATH) 9 | 10 | Return('group') -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/ping/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | 6 | CPPPATH = [cwd] 7 | 8 | group = DefineGroup('NetUtils', src, depend = ['PKG_NETUTILS_PING'], CPPPATH = CPPPATH) 9 | 10 | Return('group') -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/tftp/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | 6 | CPPPATH = [cwd] 7 | 8 | group = DefineGroup('NetUtils', src, depend = ['PKG_NETUTILS_TFTP'], CPPPATH = CPPPATH) 9 | 10 | Return('group') -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ADD_SUBDIRECTORY(emu) 2 | ADD_SUBDIRECTORY(uffs) 3 | ADD_SUBDIRECTORY(utils) 4 | ADD_SUBDIRECTORY(example) 5 | ADD_SUBDIRECTORY(platform) 6 | ADD_SUBDIRECTORY(test/api_test) 7 | ADD_SUBDIRECTORY(test/clients) 8 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/wlan/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd] 6 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_WIFI'], CPPPATH = CPPPATH) 7 | 8 | Return('group') 9 | -------------------------------------------------------------------------------- /rt-thread/components/utilities/ymodem/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd] 6 | group = DefineGroup('Utilities', src, depend = ['RT_USING_RYM'], CPPPATH = CPPPATH) 7 | 8 | Return('group') 9 | -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/iperf/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | 6 | CPPPATH = [cwd] 7 | 8 | group = DefineGroup('NetUtils', src, depend = ['PKG_NETUTILS_IPERF'], CPPPATH = CPPPATH) 9 | 10 | Return('group') -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/netio/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | 6 | CPPPATH = [cwd] 7 | 8 | group = DefineGroup('NetUtils', src, depend = ['PKG_NETUTILS_NETIO'], CPPPATH = CPPPATH) 9 | 10 | Return('group') -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/tcpdump/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | 6 | CPPPATH = [cwd] 7 | 8 | group = DefineGroup('NetUtils', src, depend = ['PKG_NETUTILS_TCPDUMP'], CPPPATH = CPPPATH) 9 | 10 | Return('group') -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/telnet/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | 6 | CPPPATH = [cwd] 7 | 8 | group = DefineGroup('NetUtils', src, depend = ['PKG_NETUTILS_TELNET'], CPPPATH = CPPPATH) 9 | 10 | Return('group') -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/FILES: -------------------------------------------------------------------------------- 1 | src/ - The source code for the lwIP TCP/IP stack. 2 | doc/ - The documentation for lwIP. 3 | test/ - Some code to test whether the sources do what they should. 4 | 5 | See also the FILES file in each subdirectory. 6 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/FILES: -------------------------------------------------------------------------------- 1 | src/ - The source code for the lwIP TCP/IP stack. 2 | doc/ - The documentation for lwIP. 3 | test/ - Some code to test whether the sources do what they should. 4 | 5 | See also the FILES file in each subdirectory. 6 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/armlibc/unistd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #include "sys/unistd.h" 10 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/audio/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd] 6 | 7 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_AUDIO'], CPPPATH = CPPPATH) 8 | 9 | Return('group') 10 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/can/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd + '/../include'] 6 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_CAN'], CPPPATH = CPPPATH) 7 | 8 | Return('group') 9 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/serial/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd + '/../include'] 6 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SERIAL'], CPPPATH = CPPPATH) 7 | 8 | Return('group') 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/webserver/httpd-fs/tcp.shtml: -------------------------------------------------------------------------------- 1 | %!: /header.html 2 |

Current connections


3 | 4 | %! tcp-connections 5 | %!: /footer.html -------------------------------------------------------------------------------- /rt-thread/components/drivers/watchdog/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd + '/../include'] 6 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_WDT'], CPPPATH = CPPPATH) 7 | 8 | Return('group') 9 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip_nat/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | 6 | CPPPATH = [cwd] 7 | 8 | group = DefineGroup('LwIP', src, depend = ['RT_USING_LWIP', 'LWIP_USING_NAT'], CPPPATH = CPPPATH) 9 | 10 | Return('group') 11 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/webserver/httpd-fs/processes.shtml: -------------------------------------------------------------------------------- 1 | %!: /header.html 2 |

System processes


LocalRemoteStateRetransmissionsTimerFlags
3 | 4 | %! processes 5 | %!: /footer.html -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/common/div0.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | void __div0 (void) 10 | { 11 | while (1) ; 12 | } 13 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/hwtimer/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd + '/../include'] 6 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_HWTIMER'], CPPPATH = CPPPATH) 7 | 8 | Return('group') 9 | -------------------------------------------------------------------------------- /ports/wifi/SConscript: -------------------------------------------------------------------------------- 1 | 2 | from building import * 3 | import rtconfig 4 | 5 | cwd = GetCurrentDir() 6 | 7 | src = [] 8 | 9 | src += Glob('*.c') 10 | CPPPATH = [cwd] 11 | 12 | group = DefineGroup('wifi', src, depend = ['BSP_USING_WIFI'], CPPPATH = CPPPATH) 13 | 14 | Return('group') 15 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/syscalls.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-01-28 Bernard first version 9 | */ 10 | 11 | -------------------------------------------------------------------------------- /rt-thread/components/libc/pthreads/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd] 6 | 7 | group = DefineGroup('pthreads', src, 8 | depend = ['RT_USING_PTHREADS', 'RT_USING_LIBC'], CPPPATH = CPPPATH) 9 | 10 | Return('group') 11 | -------------------------------------------------------------------------------- /ports/easyflash/SConscript: -------------------------------------------------------------------------------- 1 | 2 | from building import * 3 | import rtconfig 4 | 5 | cwd = GetCurrentDir() 6 | 7 | src = [] 8 | 9 | src += Glob('*.c') 10 | CPPPATH = [cwd] 11 | 12 | group = DefineGroup('EasyFlash', src, depend = ['PKG_USING_EASYFLASH'], CPPPATH = CPPPATH) 13 | 14 | Return('group') 15 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/asm/atomic.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_ATOMIC_H__ 2 | #define __ASM_ATOMIC_H__ 3 | 4 | #define atomic_t int 5 | #define atomic_inc(atom) (*atom)++ 6 | #define atomic_dec(atom) (*atom)-- 7 | #define atomic_read(atom) (*atom) 8 | 9 | 10 | #endif /* __ASM_ATOMIC_H__ */ 11 | -------------------------------------------------------------------------------- /packages/stm32_sdio-v1.0.2/SConscript: -------------------------------------------------------------------------------- 1 | Import('RTT_ROOT') 2 | Import('rtconfig') 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') 7 | 8 | CPPPATH = [cwd] 9 | 10 | group = DefineGroup('stm32_sdio', src, depend = ['PKG_USING_STM32_SDIO'], CPPPATH = CPPPATH) 11 | 12 | Return('group') 13 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/common/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | Import('rtconfig') 4 | 5 | src = Glob('*.c') 6 | cwd = GetCurrentDir() 7 | group = [] 8 | CPPPATH = [cwd] 9 | 10 | group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], CPPPATH = CPPPATH) 11 | 12 | Return('group') 13 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/spec-librarys/network.md: -------------------------------------------------------------------------------- 1 | ## network – 网络配置 2 | 3 | 此模块提供网络驱动程序和路由配置。特定硬件的网络驱动程序在此模块中可用,用于配置硬件网络接口。然后,配置接口提供的网络服务可以通过 `usocket` 模块使用。 4 | 5 | ### 专用的网络类配置 6 | 7 | 下面具体的类实现了抽象网卡的接口,并提供了一种控制各种网络接口的方法。 8 | 9 | - [class WLAN – control built-in WiFi interfaces](network/wlan.md) 10 | 11 | -------------------------------------------------------------------------------- /ports/SConscript: -------------------------------------------------------------------------------- 1 | import os 2 | from building import * 3 | 4 | objs = [] 5 | cwd = GetCurrentDir() 6 | list = os.listdir(cwd) 7 | 8 | for item in list: 9 | if os.path.isfile(os.path.join(cwd, item, 'SConscript')): 10 | objs = objs + SConscript(os.path.join(item, 'SConscript')) 11 | 12 | Return('objs') 13 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/ramfs/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd] 6 | 7 | group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS', 'RT_USING_MEMHEAP', 'RT_USING_DFS_RAMFS'], CPPPATH = CPPPATH) 8 | 9 | Return('group') 10 | -------------------------------------------------------------------------------- /rt-thread/components/lwp/Kconfig: -------------------------------------------------------------------------------- 1 | config RT_USING_LWP 2 | bool "Using light-weight process" 3 | select RT_USING_DFS 4 | select RT_USING_LIBC 5 | depends on ARCH_ARM_CORTEX_M || ARCH_ARM_ARM9 || ARCH_ARM_CORTEX_A 6 | default n 7 | help 8 | The lwP is a light weight process running in user mode. 9 | -------------------------------------------------------------------------------- /libraries/SConscript: -------------------------------------------------------------------------------- 1 | import os 2 | from building import * 3 | 4 | objs = [] 5 | cwd = GetCurrentDir() 6 | list = os.listdir(cwd) 7 | 8 | for item in list: 9 | if os.path.isfile(os.path.join(cwd, item, 'SConscript')): 10 | objs = objs + SConscript(os.path.join(item, 'SConscript')) 11 | 12 | Return('objs') 13 | -------------------------------------------------------------------------------- /packages/SConscript: -------------------------------------------------------------------------------- 1 | import os 2 | from building import * 3 | 4 | objs = [] 5 | cwd = GetCurrentDir() 6 | list = os.listdir(cwd) 7 | 8 | for item in list: 9 | if os.path.isfile(os.path.join(cwd, item, 'SConscript')): 10 | objs = objs + SConscript(os.path.join(item, 'SConscript')) 11 | 12 | Return('objs') 13 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/smtp/smtp-strings: -------------------------------------------------------------------------------- 1 | smtp_220 "220" 2 | smtp_helo "HELO " 3 | smtp_mail_from "MAIL FROM: " 4 | smtp_rcpt_to "RCPT TO: " 5 | smtp_data "DATA\r\n" 6 | smtp_to "To: " 7 | smtp_from "From: " 8 | smtp_subject "Subject: " 9 | smtp_quit "QUIT\r\n" 10 | smtp_crnl "\r\n" 11 | smtp_crnlperiodcrnl "\r\n.\r\n" -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/std-librarys/uzlib.md: -------------------------------------------------------------------------------- 1 | ## **uzlib** – zlib 解压缩 2 | 3 | `uzlib` 模块实现了使用 DEFLATE 算法解压缩二进制数据 (常用的 zlib 库和 gzip 文档)。目前不支持压缩。 4 | 5 | ### 函数 6 | 7 | #### **uzlib.decompress**(data) 8 | 返回解压后的 bytes 数据。 9 | 10 | 更多内容可参考 [uzlib](http://docs.micropython.org/en/latest/pyboard/library/uzlib.html) 。 11 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/extmod/lwip-include/arch/perf.h: -------------------------------------------------------------------------------- 1 | #ifndef MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_PERF_H 2 | #define MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_PERF_H 3 | 4 | #define PERF_START /* null definition */ 5 | #define PERF_STOP(x) /* null definition */ 6 | 7 | #endif // MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_PERF_H 8 | -------------------------------------------------------------------------------- /packages/netutils-v1.1.0/SConscript: -------------------------------------------------------------------------------- 1 | import os 2 | from building import * 3 | 4 | objs = [] 5 | cwd = GetCurrentDir() 6 | list = os.listdir(cwd) 7 | 8 | for item in list: 9 | if os.path.isfile(os.path.join(cwd, item, 'SConscript')): 10 | objs = objs + SConscript(os.path.join(item, 'SConscript')) 11 | 12 | Return('objs') 13 | -------------------------------------------------------------------------------- /rt-thread/components/cplusplus/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.cpp') + Glob('*.c') 7 | 8 | CPPPATH = [cwd] 9 | 10 | group = DefineGroup('CPlusPlus', src, depend = ['RT_USING_CPLUSPLUS'], CPPPATH = CPPPATH) 11 | 12 | Return('group') 13 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/nfs/dfs_nfs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | 10 | #ifndef __NFS_H__ 11 | #define __NFS_H__ 12 | 13 | int nfs_init(void); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /rt-thread/components/libc/time/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') + Glob('*.cpp') 7 | CPPPATH = [cwd] 8 | 9 | group = DefineGroup('pthreads', src, 10 | depend = ['RT_USING_PTHREADS'], CPPPATH = CPPPATH) 11 | 12 | Return('group') 13 | -------------------------------------------------------------------------------- /rt-thread/components/net/netdev/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | 7 | src = Glob('src/*.c') 8 | 9 | CPPPATH = [cwd + '/include'] 10 | 11 | group = DefineGroup('netdev', src, depend = ['RT_USING_NETDEV'], CPPPATH = CPPPATH) 12 | 13 | Return('group') 14 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/devfs/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') 7 | CPPPATH = [cwd] 8 | 9 | group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS', 'RT_USING_DFS_DEVFS'], CPPPATH = CPPPATH) 10 | 11 | Return('group') 12 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/environ.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-01-28 Bernard first version 9 | */ 10 | 11 | const char *__environ = "OS=RT-Thread"; 12 | 13 | -------------------------------------------------------------------------------- /packages/tinycrypt-v1.0.0/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('src/*.c') + Glob('src/*.cpp') 7 | CPPPATH = [cwd + '/include'] 8 | 9 | group = DefineGroup('TinyCrypt', src, depend = ['PKG_USING_TINYCRYPT'], CPPPATH = CPPPATH) 10 | 11 | Return('group') 12 | -------------------------------------------------------------------------------- /rt-thread/components/libc/aio/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') + Glob('*.cpp') 7 | CPPPATH = [cwd] 8 | 9 | group = DefineGroup('aio', src, depend = ['RT_USING_POSIX', 'RT_USING_POSIX_AIO'], CPPPATH = CPPPATH) 10 | 11 | Return('group') 12 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/armlibc/sys/errno.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef SYS_ERRNO_H__ 10 | #define SYS_ERRNO_H__ 11 | 12 | #include 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/minilibc/inttypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __INTTYPES_H__ 10 | #define __INTTYPES_H__ 11 | 12 | #include "stdint.h" 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /SConscript: -------------------------------------------------------------------------------- 1 | # for module compiling 2 | import os 3 | Import('RTT_ROOT') 4 | 5 | cwd = str(Dir('#')) 6 | objs = [] 7 | list = os.listdir(cwd) 8 | 9 | for d in list: 10 | path = os.path.join(cwd, d) 11 | if os.path.isfile(os.path.join(path, 'SConscript')): 12 | objs = objs + SConscript(os.path.join(d, 'SConscript')) 13 | 14 | Return('objs') 15 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/extmod/modwebsocket.h: -------------------------------------------------------------------------------- 1 | #ifndef MICROPY_INCLUDED_EXTMOD_MODWEBSOCKET_H 2 | #define MICROPY_INCLUDED_EXTMOD_MODWEBSOCKET_H 3 | 4 | #define FRAME_OPCODE_MASK 0x0f 5 | enum { 6 | FRAME_CONT, FRAME_TXT, FRAME_BIN, 7 | FRAME_CLOSE = 0x8, FRAME_PING, FRAME_PONG 8 | }; 9 | 10 | #endif // MICROPY_INCLUDED_EXTMOD_MODWEBSOCKET_H 11 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/dfs_jffs2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __DFS_JFFS2_H__ 10 | #define __DFS_JFFS2_H__ 11 | 12 | int dfs_jffs2_init(void); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/nfs/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') + Glob('rpc/*.c') 7 | CPPPATH = [cwd] 8 | 9 | group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS', 'RT_USING_DFS_NFS'], CPPPATH = CPPPATH) 10 | 11 | Return('group') 12 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/unistd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef _UNISTD_H_ 10 | #define _UNISTD_H_ 11 | 12 | # include "sys/unistd.h" 13 | 14 | #endif /* _UNISTD_H_ */ 15 | -------------------------------------------------------------------------------- /rt-thread/include/libc/libc_dirent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | */ 6 | 7 | #ifndef LIBC_DIRENT_H__ 8 | #define LIBC_DIRENT_H__ 9 | 10 | #define DT_UNKNOWN 0x00 11 | #define DT_REG 0x01 12 | #define DT_DIR 0x02 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /rt-thread/tools/kconfig-frontends/libs/parser/kconfig-parser.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=${prefix}/include 5 | 6 | Name: kconfig-parser 7 | Description: kconfig-parser library 8 | Requires: 9 | Version: @KCONFIGPARSER_LIB_VERSION@ 10 | Libs: -L${libdir} -lkconfig-parser 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/extmod/moduwebsocket.h: -------------------------------------------------------------------------------- 1 | #ifndef MICROPY_INCLUDED_EXTMOD_MODUWEBSOCKET_H 2 | #define MICROPY_INCLUDED_EXTMOD_MODUWEBSOCKET_H 3 | 4 | #define FRAME_OPCODE_MASK 0x0f 5 | enum { 6 | FRAME_CONT, FRAME_TXT, FRAME_BIN, 7 | FRAME_CLOSE = 0x8, FRAME_PING, FRAME_PONG 8 | }; 9 | 10 | #endif // MICROPY_INCLUDED_EXTMOD_MODUWEBSOCKET_H 11 | -------------------------------------------------------------------------------- /rt-thread/components/libc/mmap/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') + Glob('*.cpp') 7 | CPPPATH = [cwd] 8 | 9 | group = DefineGroup('libc', src, 10 | depend = ['RT_USING_DFS', 'RT_USING_POSIX_MMAP'], 11 | CPPPATH = CPPPATH) 12 | 13 | Return('group') 14 | -------------------------------------------------------------------------------- /rt-thread/libcpu/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for bridge 2 | 3 | import os 4 | from building import * 5 | 6 | Import('rtconfig') 7 | 8 | cwd = GetCurrentDir() 9 | group = [] 10 | list = os.listdir(cwd) 11 | 12 | if rtconfig.ARCH in list: 13 | group = group + SConscript(os.path.join(rtconfig.ARCH, 'SConscript')) 14 | 15 | Return('group') 16 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/pm/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = [] 5 | CPPPATH = [cwd + '/../include'] 6 | group = [] 7 | 8 | if GetDepend(['RT_USING_PM']): 9 | src = src + ['pm.c'] 10 | 11 | if len(src): 12 | group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) 13 | 14 | Return('group') 15 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | uIP 1.0 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/armlibc/fcntl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef FCNTL_H__ 10 | #define FCNTL_H__ 11 | 12 | #ifdef RT_USING_DFS 13 | #include 14 | #endif 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/termios.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef _TERMIOS_H__ 10 | #define _TERMIOS_H__ 11 | 12 | #include 13 | #include 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /packages/EasyFlash-v3.2.1/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | # get current directory 4 | cwd = GetCurrentDir() 5 | # The set of source files associated with this SConscript file. 6 | src = Glob('src/*.c') 7 | 8 | path = [cwd + '/inc'] 9 | 10 | group = DefineGroup('EasyFlash', src, depend = ['PKG_USING_EASYFLASH'], CPPPATH = path) 11 | 12 | Return('group') 13 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/completion.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_COMPLETION_H__ 2 | #define __LINUX_COMPLETION_H__ 3 | 4 | #if defined (__GNUC__) 5 | struct completion { } ; 6 | #elif defined (MSVC) 7 | struct completion {int no; } ; 8 | #else 9 | #error "please use a right C compiler" 10 | #endif 11 | 12 | #endif /* __LINUX_COMPLETION_H__ */ 13 | 14 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/armlibc/termios.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef _TERMIOS_H__ 10 | #define _TERMIOS_H__ 11 | 12 | #include 13 | #include 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/newlib/termios.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef _TERMIOS_H__ 10 | #define _TERMIOS_H__ 11 | 12 | #include 13 | #include 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/timer.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_TIMER_H__ 2 | #define __LINUX_TIMER_H__ 3 | 4 | /* Not yet */ 5 | 6 | #if defined (__GNUC__) 7 | struct timer_list { } ; 8 | #elif defined (MSVC) 9 | struct timer_list {int no; } ; 10 | #else 11 | #error "please use a right C compiler" 12 | #endif 13 | 14 | #endif /* __LINUX_TIMER_H__ */ 15 | 16 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/minilibc/stddef.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __STDDEF_H__ 10 | #define __STDDEF_H__ 11 | 12 | #include 13 | typedef signed long ptrdiff_t; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /rt-thread/components/libc/signal/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') + Glob('*.cpp') 7 | CPPPATH = [cwd] 8 | 9 | group = DefineGroup('libc', src, 10 | depend = ['RT_USING_SIGNALS', 'RT_USING_PTHREADS', 'RT_USING_LIBC'], 11 | CPPPATH = CPPPATH) 12 | 13 | Return('group') 14 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/devfs/devfs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | 10 | #ifndef __DEVICE_FS_H__ 11 | #define __DEVICE_FS_H__ 12 | 13 | #include 14 | 15 | int devfs_init(void); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /rt-thread/components/libc/termios/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') + Glob('*.cpp') 7 | CPPPATH = [cwd] 8 | 9 | group = DefineGroup('libc', src, 10 | depend = ['RT_USING_LIBC', 'RT_USING_POSIX', 'RT_USING_POSIX_TERMIOS'], 11 | CPPPATH = CPPPATH) 12 | 13 | Return('group') 14 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/s3c24x0/rtc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2010-03-20 yi.qiu the first version 9 | */ 10 | 11 | #ifndef __RTC_H__ 12 | #define __RTC_H__ 13 | 14 | void rt_hw_rtc_init(void); 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/skeleton/skeleton.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | 10 | #ifndef __SKELETON_H__ 11 | #define __SKELETON_H__ 12 | 13 | #include 14 | 15 | int dfs_skt_init(void); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/SConscript: -------------------------------------------------------------------------------- 1 | # for module compiling 2 | import os 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | objs = [] 7 | list = os.listdir(cwd) 8 | 9 | for d in list: 10 | path = os.path.join(cwd, d) 11 | if os.path.isfile(os.path.join(path, 'SConscript')): 12 | objs = objs + SConscript(os.path.join(d, 'SConscript')) 13 | 14 | Return('objs') 15 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/config.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_CONFIG_H__ 2 | #define __LINUX_CONFIG_H__ 3 | 4 | #define GFP_KERNEL 0 5 | 6 | /* #define CONFIG_JFFS2_FS_WRITEBUFFER 0 */ 7 | /* #define CONFIG_JFFS2_PROC */ 8 | /* #define CONFIG_JFFS2_RTIME */ 9 | /* #define CONFIG_JFFS2_RUBIN */ 10 | /* #define CONFIG_JFFS2_ZLIB */ 11 | 12 | #endif /* __LINUX_CONFIG_H__ */ 13 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/usb/SConscript: -------------------------------------------------------------------------------- 1 | # for module compiling 2 | import os 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | objs = [] 7 | list = os.listdir(cwd) 8 | 9 | for d in list: 10 | path = os.path.join(cwd, d) 11 | if os.path.isfile(os.path.join(path, 'SConscript')): 12 | objs = objs + SConscript(os.path.join(d, 'SConscript')) 13 | Return('objs') 14 | -------------------------------------------------------------------------------- /rt-thread/components/libc/libdl/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | Import('rtconfig') 3 | 4 | src = Glob('*.c') + Glob('*.cpp') + Glob('arch/*.c') 5 | cwd = GetCurrentDir() 6 | group = [] 7 | CPPPATH = [cwd] 8 | 9 | if rtconfig.PLATFORM == 'gcc': 10 | group = DefineGroup('libc', src, 11 | depend = ['RT_USING_MODULE'], 12 | CPPPATH = CPPPATH) 13 | 14 | Return('group') 15 | -------------------------------------------------------------------------------- /rt-thread/components/net/netdev/include/arpa/inet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-02-17 Bernard First version 9 | */ 10 | 11 | #ifndef __INET_H__ 12 | #define __INET_H__ 13 | 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/src/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | CPPPATH = [cwd + '/../include'] 6 | 7 | if not GetDepend('RT_USING_HEAP'): 8 | SrcRemove(src, 'dataqueue.c') 9 | SrcRemove(src, 'pipe.c') 10 | 11 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE_IPC'], CPPPATH = CPPPATH) 12 | 13 | Return('group') 14 | -------------------------------------------------------------------------------- /rt-thread/components/net/sal_socket/include/socket/netinet/tcp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-02-17 Bernard First version 9 | */ 10 | 11 | #ifndef TCP_H__ 12 | #define TCP_H__ 13 | 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /rt-thread/components/net/sal_socket/include/socket/netinet/udp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-02-17 Bernard First version 9 | */ 10 | 11 | #ifndef UDP_H__ 12 | #define UDP_H__ 13 | 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/stat.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_STAT_H__ 2 | #define __LINUX_STAT_H__ 3 | 4 | 5 | #include "port/sys/stat.h" //mod by prife 6 | 7 | #define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH) 8 | #define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH) 9 | #define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH) 10 | #define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO) 11 | 12 | #endif /* __LINUX_STAT_H__ */ 13 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/cputime/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | CPPPATH = [cwd + '/../include'] 5 | src = Split(''' 6 | cputime.c 7 | ''') 8 | 9 | if GetDepend('RT_USING_CPUTIME_CORTEXM'): 10 | src += ['cputime_cortexm.c'] 11 | 12 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_CPUTIME'], CPPPATH = CPPPATH) 13 | 14 | Return('group') 15 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for bridge 2 | 3 | import os 4 | from building import * 5 | 6 | Import('rtconfig') 7 | 8 | cwd = GetCurrentDir() 9 | 10 | # add common code files 11 | group = SConscript(os.path.join('common', 'SConscript')) 12 | 13 | # cpu porting code files 14 | group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript')) 15 | 16 | Return('group') 17 | -------------------------------------------------------------------------------- /rt-thread/components/libc/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for bridge 2 | 3 | import os 4 | from building import * 5 | 6 | cwd = GetCurrentDir() 7 | objs = [] 8 | list = os.listdir(cwd) 9 | 10 | for d in list: 11 | path = os.path.join(cwd, d) 12 | if os.path.isfile(os.path.join(path, 'SConscript')): 13 | objs = objs + SConscript(os.path.join(d, 'SConscript')) 14 | 15 | Return('objs') 16 | -------------------------------------------------------------------------------- /drivers/drv_usbd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2017-10-30 ZYH the first version 9 | */ 10 | #ifndef __STM32_USBD_H__ 11 | #define __STM32_USBD_H__ 12 | #include 13 | 14 | int stm32l4_usbd_register(void); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/minilibc/math.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __MATH_H__ 10 | #define __MATH_H__ 11 | 12 | #define M_PI 3.141592653589793238462643 13 | 14 | double sin(double x); 15 | double cos(double x); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip_dhcpd/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | 5 | if GetDepend('RT_USING_LWIP202') or GetDepend('RT_USING_LWIP210') : 6 | src = ['dhcp_server_raw.c'] 7 | else: 8 | src = ['dhcp_server.c'] 9 | 10 | CPPPATH = [cwd] 11 | 12 | group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'LWIP_USING_DHCPD'], CPPPATH = CPPPATH) 13 | 14 | Return('group') 15 | -------------------------------------------------------------------------------- /rt-thread/components/net/sal_socket/include/dfs_net/sys_select/sys/select.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-05-02 Bernard First version 9 | */ 10 | 11 | #ifndef SELECT_H__ 12 | #define SELECT_H__ 13 | 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /rt-thread/components/utilities/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for bridge 2 | 3 | import os 4 | from building import * 5 | 6 | cwd = GetCurrentDir() 7 | objs = [] 8 | list = os.listdir(cwd) 9 | 10 | for d in list: 11 | path = os.path.join(cwd, d) 12 | if os.path.isfile(os.path.join(path, 'SConscript')): 13 | objs = objs + SConscript(os.path.join(d, 'SConscript')) 14 | 15 | Return('objs') 16 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for bridge 2 | 3 | import os 4 | from building import * 5 | 6 | cwd = GetCurrentDir() 7 | objs = [] 8 | list = os.listdir(cwd) 9 | 10 | for d in list: 11 | path = os.path.join(cwd, d) 12 | if os.path.isfile(os.path.join(path, 'SConscript')): 13 | objs = objs + SConscript(os.path.join(d, 'SConscript')) 14 | 15 | Return('objs') 16 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/slab.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_SLAB_H__ 2 | #define __LINUX_SLAB_H__ 3 | 4 | //#include //prife 5 | 6 | #include /* Don't ask. Linux headers are a mess. */ 7 | 8 | #define kmalloc(x, y) rt_malloc(x) 9 | #define kfree(x) rt_free(x) 10 | #define vmalloc(x) rt_malloc(x) 11 | #define vfree(x) rt_free(x) 12 | 13 | #endif /* __LINUX_SLAB_H__ */ 14 | 15 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for bridge 2 | 3 | import os 4 | from building import * 5 | 6 | cwd = GetCurrentDir() 7 | objs = [] 8 | list = os.listdir(cwd) 9 | 10 | for d in list: 11 | path = os.path.join(cwd, d) 12 | if os.path.isfile(os.path.join(path, 'SConscript')): 13 | objs = objs + SConscript(os.path.join(d, 'SConscript')) 14 | 15 | Return('objs') 16 | -------------------------------------------------------------------------------- /rt-thread/components/libc/libdl/dlerror.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2010-11-17 yi.qiu first version 9 | */ 10 | 11 | #include 12 | #include 13 | 14 | const char *dlerror(void) 15 | { 16 | return "TODO"; 17 | } 18 | RTM_EXPORT(dlerror) 19 | -------------------------------------------------------------------------------- /drivers/drv_usart.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2009-01-05 Bernard the first version 9 | */ 10 | 11 | #ifndef __USART_H__ 12 | #define __USART_H__ 13 | 14 | #include 15 | #include 16 | 17 | int stm32_hw_usart_init(void); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/sensors/SConscript: -------------------------------------------------------------------------------- 1 | # SConscript for sensor framework 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = ['sensor.c'] 7 | CPPPATH = [cwd, cwd + '/../include'] 8 | 9 | if GetDepend('RT_USING_SENSOR_CMD'): 10 | src += ['sensor_cmd.c']; 11 | 12 | group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH) 13 | 14 | Return('group') 15 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/spi/device_driver_list.txt: -------------------------------------------------------------------------------- 1 | spi_wifi_rw009.c/spi_wifi_rw009.h 2 | RW009 3 | http://www.rt-thread.com/ 4 | 5 | enc28j60.c/enc28j60.h 6 | http://www.microchip.com/ 7 | 8 | spi_flash_at45dbxx.c/spi_flash_at45dbxx.h 9 | http://www.atmel.com/ 10 | 11 | spi_flash_sst25vfxx.c/spi_flash_sst25vfxx.h 12 | http://www.microchip.com/ 13 | 14 | spi_flash_w25qxx.c/spi_flash_w25qxx.h 15 | http://www.winbond.com/ 16 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/src/lwippools.h: -------------------------------------------------------------------------------- 1 | #if 1 2 | LWIP_MALLOC_MEMPOOL_START 3 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 256) 4 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 512) 5 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 1024) 6 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 1514) 7 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 1536) 8 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 4096) 9 | LWIP_MALLOC_MEMPOOL_END 10 | #endif 11 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/lwippools.h: -------------------------------------------------------------------------------- 1 | #if 1 2 | LWIP_MALLOC_MEMPOOL_START 3 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 256) 4 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 512) 5 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 1024) 6 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 1514) 7 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 1536) 8 | LWIP_MALLOC_MEMPOOL((unsigned char)128, 4096) 9 | LWIP_MALLOC_MEMPOOL_END 10 | #endif 11 | -------------------------------------------------------------------------------- /drivers/drv_wakeup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-08-07 Tanek first implementation 9 | */ 10 | 11 | #ifndef __DRV_WAKEUP_H__ 12 | #define __DRV_WAKEUP_H__ 13 | 14 | extern void bsp_register_wakeup(void (*hook)(void)); 15 | 16 | #endif /* __DRV_WAKEUP_H__ */ 17 | 18 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/doc/doxygen/output/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Redirection 5 | 6 | 7 | 8 | index.html 9 | 10 | 11 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/doc/doxygen/output/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Redirection 5 | 6 | 7 | 8 | index.html 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/extmod/uzlib/tinf_compat.h: -------------------------------------------------------------------------------- 1 | /* This header contains compatibility defines for the original tinf API 2 | and uzlib 2.x and below API. These defines are deprecated and going 3 | to be removed in the future, so applications should migrate to new 4 | uzlib API. */ 5 | #define TINF_DATA struct uzlib_uncomp 6 | 7 | #define destSize dest_size 8 | #define destStart dest_start 9 | #define readSource source_read_cb 10 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/sdio/SConscript: -------------------------------------------------------------------------------- 1 | Import('RTT_ROOT') 2 | from building import * 3 | 4 | cwd = GetCurrentDir() 5 | src = Split(""" 6 | block_dev.c 7 | mmcsd_core.c 8 | sd.c 9 | sdio.c 10 | mmc.c 11 | """) 12 | 13 | # The set of source files associated with this SConscript file. 14 | path = [cwd + '/../include'] 15 | 16 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SDIO'], CPPPATH = path) 17 | 18 | Return('group') 19 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/std-librarys/uheapq.md: -------------------------------------------------------------------------------- 1 | ## **uheapq** – 堆排序算法 2 | 3 | `uheapq` 模块提供了堆排序相关算法,堆队列是一个列表,它的元素以特定的方式存储。 4 | 5 | ### 函数 6 | 7 | #### **uheapq.heappush**(heap, item) 8 | 将对象压入堆中。 9 | 10 | #### **uheapq.heappop**(heap) 11 | 从 heap 弹出第一个元素并返回。 如果是堆时空的会抛出 IndexError。 12 | 13 | #### **uheapq.heapify**(x) 14 | 将列表 x 转换成堆。 15 | 16 | 更多内容可参考 [uheapq](http://docs.micropython.org/en/latest/pyboard/library/uheapq.html) 。 17 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/asm/page.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_PAGE_H__ 2 | #define __ASM_PAGE_H__ 3 | 4 | //#include //mod by prife 5 | #include "jffs2_config.h" 6 | #define PAGE_SHIFT CONFIG_JFFS2_PAGE_SHIFT 7 | /* These aren't used by much yet. If that changes, you might want 8 | to make them actually correct :) */ 9 | #define PAGE_SIZE (0x1 << PAGE_SHIFT) 10 | 11 | 12 | #endif /* __ASM_PAGE_H__ */ 13 | -------------------------------------------------------------------------------- /rt-thread/components/vmm/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') 7 | src += Glob('utilities/rshell.c') 8 | if GetDepend('RT_USING_VMM_RFS'): 9 | src += Glob('utilities/rfs.c') 10 | 11 | CPPPATH = [cwd, os.path.join(cwd, 'share_hdr')] 12 | 13 | group = DefineGroup('VMM', src, depend = ['RT_USING_VMM'], CPPPATH = CPPPATH) 14 | 15 | Return('group') 16 | -------------------------------------------------------------------------------- /drivers/drv_clock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-08-09 Tanek the first version 9 | */ 10 | 11 | #ifndef __DRV_CLOCK_H__ 12 | #define __DRV_CLOCK_H__ 13 | 14 | void SystemClock_Config(void); 15 | void rt_update_system_clock(void); 16 | 17 | #endif /* __DRV_CLOCK_H__ */ 18 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/minilibc/errno.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __ERRNO_H__ 10 | #define __ERRNO_H__ 11 | 12 | #include "libc/libc_errno.h" 13 | /* Others defined in libc/libc_errno.h */ 14 | #define ENSRNOTFOUND 163 /* Domain name not found */ 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /rt-thread/components/SConscript: -------------------------------------------------------------------------------- 1 | # for module compiling 2 | import os 3 | Import('remove_components') 4 | from building import * 5 | 6 | objs = [] 7 | cwd = GetCurrentDir() 8 | list = os.listdir(cwd) 9 | 10 | for item in list: 11 | if item in remove_components: 12 | continue 13 | 14 | if os.path.isfile(os.path.join(cwd, item, 'SConscript')): 15 | objs = objs + SConscript(os.path.join(item, 'SConscript')) 16 | 17 | Return('objs') 18 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/doc/FILES: -------------------------------------------------------------------------------- 1 | savannah.txt - How to obtain the current development source code. 2 | contrib.txt - How to contribute to lwIP as a developer. 3 | rawapi.txt - The documentation for the core API of lwIP. 4 | Also provides an overview about the other APIs and multithreading. 5 | snmp_agent.txt - The documentation for the lwIP SNMP agent. 6 | sys_arch.txt - The documentation for a system abstraction layer of lwIP. 7 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/zynq7000/interrupt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2013-07-20 Bernard first version 9 | */ 10 | 11 | #ifndef __INTERRUPT_H__ 12 | #define __INTERRUPT_H__ 13 | 14 | void rt_hw_interrupt_clear(int vector); 15 | 16 | #endif /* end of include guard: __INTERRUPT_H__ */ 17 | 18 | -------------------------------------------------------------------------------- /rt-thread/components/utilities/ulog/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = Glob('*.c') 5 | path = [cwd] 6 | 7 | if GetDepend('ULOG_BACKEND_USING_CONSOLE'): 8 | src += ['backend/console_be.c'] 9 | 10 | if GetDepend('ULOG_USING_SYSLOG'): 11 | path += [cwd + '/syslog'] 12 | src += Glob('syslog/*.c') 13 | 14 | group = DefineGroup('Utilities', src, depend = ['RT_USING_ULOG'], CPPPATH = path) 15 | 16 | Return('group') 17 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/std-librarys/gc.md: -------------------------------------------------------------------------------- 1 | ## **gc** – 控制垃圾回收 2 | 3 | **gc** 模块提供了垃圾收集器的控制接口。 4 | 5 | ### 函数 6 | 7 | #### **gc.enable**() 8 | 允许自动回收内存碎片。 9 | 10 | #### **gc.disable**() 11 | 禁止自动回收,但可以通过collect()函数进行手动回收内存碎片。 12 | 13 | #### **gc.collect**() 14 | 运行一次垃圾回收。 15 | 16 | #### **gc.mem_alloc**() 17 | 返回已分配的内存数量。 18 | 19 | #### **gc.mem_free**() 20 | 返回剩余的内存数量。 21 | 22 | 更多内容可参考 [gc](http://docs.micropython.org/en/latest/pyboard/library/gc.html) 。 23 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/minilibc/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | Import('rtconfig') 3 | 4 | src = Glob('*.c') + Glob('*.cpp') 5 | cwd = GetCurrentDir() 6 | group = [] 7 | 8 | CPPPATH = [cwd] 9 | CPPDEFINES = ['RT_USING_MINILIBC'] 10 | 11 | if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim' and not GetDepend('RT_USING_LIBC'): 12 | group = DefineGroup('libc', src, depend = [''], 13 | CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) 14 | 15 | Return('group') 16 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/romfs/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('*.c') 7 | CPPPATH = [cwd] 8 | 9 | if GetDepend('DFS_ROMFS_ROOT'): 10 | # A new ROMFS root has been defined, we should remove the romfs.c 11 | SrcRemove(src, ['romfs.c']) 12 | 13 | group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS','RT_USING_DFS_ROMFS'], CPPPATH = CPPPATH) 14 | 15 | Return('group') 16 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/src/platform/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | IF (UNIX) 2 | SET (libplatform_SRCS posix/uffs_os.c posix/uffs_config.h) 3 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/platform/posix) 4 | ENDIF() 5 | 6 | IF (WIN32) 7 | SET (libplatform_SRCS win32/uffs_os.c win32/uffs_config.h) 8 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/platform/win32) 9 | ENDIF() 10 | 11 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/inc) 12 | ADD_LIBRARY(platform STATIC ${libplatform_SRCS} ) 13 | 14 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/i2c/SConscript: -------------------------------------------------------------------------------- 1 | Import('RTT_ROOT') 2 | from building import * 3 | 4 | cwd = GetCurrentDir() 5 | src = Split(""" 6 | i2c_core.c 7 | i2c_dev.c 8 | """) 9 | 10 | if GetDepend('RT_USING_I2C_BITOPS'): 11 | src = src + ['i2c-bit-ops.c'] 12 | 13 | # The set of source files associated with this SConscript file. 14 | path = [cwd + '/../include'] 15 | 16 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_I2C'], CPPPATH = path) 17 | 18 | Return('group') 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.map 3 | *.dblite 4 | *.elf 5 | *.bin 6 | *.hex 7 | *.axf 8 | *.exe 9 | *.pdb 10 | *.idb 11 | *.ilk 12 | *.old 13 | build 14 | Debug 15 | documentation/html 16 | *~ 17 | *.o 18 | *.obj 19 | *.out 20 | *.bak 21 | *.dep 22 | *.i 23 | *.d 24 | .DS_Stor* 25 | .config 3 26 | .config 4 27 | .config 5 28 | Midea-X1 29 | *.uimg 30 | GPATH 31 | GRTAGS 32 | GTAGS 33 | .vscode 34 | JLinkLog.txt 35 | JLinkSettings.ini 36 | DebugConfig/ 37 | RTE/ 38 | settings/ 39 | *.uvguix* 40 | cconfig.h 41 | -------------------------------------------------------------------------------- /packages/fal-v0.3.0/SConscript: -------------------------------------------------------------------------------- 1 | 2 | from building import * 3 | import rtconfig 4 | 5 | cwd = GetCurrentDir() 6 | src = Glob('src/*.c') 7 | CPPPATH = [cwd + '/inc'] 8 | LOCAL_CCFLAGS = '' 9 | 10 | if rtconfig.CROSS_TOOL == 'gcc': 11 | LOCAL_CCFLAGS += ' -std=c99' 12 | elif rtconfig.CROSS_TOOL == 'keil': 13 | LOCAL_CCFLAGS += ' --c99' 14 | 15 | group = DefineGroup('fal', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS) 16 | 17 | Return('group') 18 | -------------------------------------------------------------------------------- /ports/fal/SConscript: -------------------------------------------------------------------------------- 1 | 2 | from building import * 3 | import rtconfig 4 | 5 | cwd = GetCurrentDir() 6 | 7 | src = [] 8 | 9 | src += Glob('*.c') 10 | CPPPATH = [cwd] 11 | LOCAL_CCFLAGS = '' 12 | 13 | if rtconfig.CROSS_TOOL == 'gcc': 14 | LOCAL_CCFLAGS += ' -std=c99' 15 | elif rtconfig.CROSS_TOOL == 'keil': 16 | LOCAL_CCFLAGS += ' --c99' 17 | 18 | group = DefineGroup('fal', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS) 19 | 20 | Return('group') 21 | -------------------------------------------------------------------------------- /rt-thread/components/finsh/finsh_heap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2010-03-22 Bernard first version 9 | */ 10 | #include 11 | 12 | #ifndef __FINSH_HEAP_H__ 13 | #define __FINSH_HEAP_H__ 14 | 15 | int finsh_heap_init(void); 16 | void* finsh_heap_allocate(size_t size); 17 | void finsh_heap_free(void*ptr); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/micropython-mpy.md: -------------------------------------------------------------------------------- 1 | # MicroPython .mpy 文件详解 2 | 3 | MicroPython 定义了 `.mpy` 文件的概念,该文件是一种二进制容器文件格式,在其中包含了预编译的 Python 代码,这种类型的文件可以像普通的 `.py` 模块一样被导入到 MicroPython 程序中。举个例子来说明这种类型文件的使用方法。例如,只要 `foo.mpy` 存在于指定的路径中,我们就可以通过 `import foo` 语句来导入 `foo.mpy` 文件。 4 | 5 | 这种类型文件的导入规则是这样的,首先按顺序搜索 `sys.path` 中列出的每个目录。当搜索特定目录时,首先查找 `foo.py`,如果找不到该目录,则查找 `foo.mpy`,如果没有找到,则在下一个目录中继续搜索。通过这种方式,`foo.py` 文件的优先级将高于 `foo.mpy` 文件。这些 `.mpy` 文件中的主要内容是字节码,这种类型的文件可以通过 `mpy-cross` 程序从 Python 源文件(`.py`文件)生成。 6 | 7 | -------------------------------------------------------------------------------- /drivers/drv_wlan.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-08-30 ZeroFree the first version 9 | */ 10 | 11 | #ifndef __DRV_WLAN_H__ 12 | #define __DRV_WLAN_H__ 13 | 14 | #include 15 | 16 | int rt_hw_wlan_init(void); 17 | int rt_hw_wlan_get_initialize_status(void); 18 | int rt_hw_wlan_wait_init_done(rt_uint32_t time_ms); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/elmfat/option/unicode.c: -------------------------------------------------------------------------------- 1 | #include "../ff.h" 2 | 3 | #if _USE_LFN != 0 4 | 5 | #if _CODE_PAGE == 932 /* Japanese Shift_JIS */ 6 | #include "cc932.c" 7 | #elif _CODE_PAGE == 936 /* Simplified Chinese GBK */ 8 | #include "cc936.c" 9 | #elif _CODE_PAGE == 949 /* Korean */ 10 | #include "cc949.c" 11 | #elif _CODE_PAGE == 950 /* Traditional Chinese Big5 */ 12 | #include "cc950.c" 13 | #else /* Single Byte Character-Set */ 14 | #include "ccsbcs.c" 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/cyg/compress/src/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /rt-thread/components/net/sal_socket/include/socket/netinet/in.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-02-17 Bernard First version 9 | */ 10 | 11 | #ifndef IN_H__ 12 | #define IN_H__ 13 | 14 | #include 15 | 16 | #ifndef IN6_IS_ADDR_MULTICAST 17 | #define IN6_IS_ADDR_MULTICAST(a) (((uint8_t *) (a))[0] == 0xff) 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/rt-thread/uip_etharp.h: -------------------------------------------------------------------------------- 1 | #include "uip_pbuf.h" 2 | #include "uip-conf.h" 3 | #include "rtdef.h" 4 | 5 | 6 | struct eth_hdr { 7 | u8_t ip_addrdest[6]; 8 | u8_t ip_addrsrc[6]; 9 | u16_t type; 10 | } ; 11 | #define ETHTYPE_ARP UIP_ETHTYPE_ARP 12 | #define ETHTYPE_IP UIP_ETHTYPE_IP 13 | #define ETHTYPE_VLAN 0x8100 14 | #define ETHTYPE_PPPOEDISC 0x8863 /* PPP Over Ethernet Discovery Stage */ 15 | #define ETHTYPE_PPPOE 0x8864 /* PPP Over Ethernet Session Stage */ 16 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/lib/oofatfs/option/unicode.c: -------------------------------------------------------------------------------- 1 | #include "../ff.h" 2 | 3 | #if _USE_LFN != 0 4 | 5 | #if _CODE_PAGE == 932 /* Japanese Shift_JIS */ 6 | #include "cc932.c" 7 | #elif _CODE_PAGE == 936 /* Simplified Chinese GBK */ 8 | #include "cc936.c" 9 | #elif _CODE_PAGE == 949 /* Korean */ 10 | #include "cc949.c" 11 | #elif _CODE_PAGE == 950 /* Traditional Chinese Big5 */ 12 | #include "cc950.c" 13 | #else /* Single Byte Character-Set */ 14 | #include "ccsbcs.c" 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/elmfat/dfs_elm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2010-02-06 Bernard Add elm_init function declaration 9 | */ 10 | 11 | #ifndef __DFS_ELM_H__ 12 | #define __DFS_ELM_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | int elm_init(void); 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/spi/spi_flash_gd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-10-11 fullhan copy from winbond flash 9 | */ 10 | 11 | #ifndef SPI_FLASH_GD_H_ 12 | #define SPI_FLASH_GD_H_ 13 | 14 | #include 15 | 16 | extern rt_err_t gd_init(const char * flash_device_name, const char * spi_device_name); 17 | 18 | #endif /* SPI_FLASH_GD_H_ */ 19 | -------------------------------------------------------------------------------- /rt-thread/components/finsh/finsh_parser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2010-03-22 Bernard first version 9 | */ 10 | #ifndef __FINSH_PARSER_H__ 11 | #define __FINSH_PARSER_H__ 12 | 13 | #include 14 | 15 | int finsh_parser_init(struct finsh_parser* self); 16 | void finsh_parser_run(struct finsh_parser* self, const uint8_t* string); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/misc/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = [] 5 | CPPPATH = [cwd + '/../include'] 6 | group = [] 7 | 8 | if GetDepend(['RT_USING_PIN']): 9 | src = src + ['pin.c'] 10 | 11 | if GetDepend(['RT_USING_ADC']): 12 | src = src + ['adc.c'] 13 | 14 | if GetDepend(['RT_USING_PWM']): 15 | src = src + ['rt_drv_pwm.c'] 16 | 17 | if len(src): 18 | group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) 19 | 20 | Return('group') 21 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/doc/README: -------------------------------------------------------------------------------- 1 | The files in this directory comprise the uIP documentation. The files 2 | are: 3 | 4 | html/ The uIP reference manual in HTML format. 5 | 6 | uip-refman.pdf The uIP reference manual in a printable PDF version. 7 | 8 | mobisys2003.pdf Conference paper about uIP from the First 9 | International Conference on Mobile Systems, 10 | Applications and Services (MobiSys), San 11 | Francisco, May 2003. 12 | 13 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/realview-a8-vmm/cp15.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __CP15_H__ 10 | #define __CP15_H__ 11 | 12 | unsigned long rt_cpu_get_smp_id(void); 13 | 14 | void rt_cpu_mmu_disable(void); 15 | void rt_cpu_mmu_enable(void); 16 | void rt_cpu_tlb_set(volatile unsigned long*); 17 | 18 | void rt_cpu_vector_set_base(unsigned int addr); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/zlib.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_ZLIB_H__ 2 | #define __LINUX_ZLIB_H__ 3 | 4 | #include 5 | 6 | #define zlib_deflateInit(x,y) deflateInit(x,y) 7 | #define zlib_deflate(x,y) deflate(x,y) 8 | #define zlib_deflateEnd(x) deflateEnd(x) 9 | #define zlib_inflateInit(x) inflateInit(x) 10 | #define zlib_inflateInit2(x,y) inflateInit2(x,y) 11 | #define zlib_inflate(x,y) inflate(x,y) 12 | #define zlib_inflateEnd(x) inflateEnd(x) 13 | 14 | 15 | #endif /* __LINUX_ZLIB_H__ */ 16 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/spec-librarys/rtthread.md: -------------------------------------------------------------------------------- 1 | ## **rtthread** – 系统相关函数 2 | 3 | **rtthread** 模块提供了与 RT-Thread 操作系统相关的功能,如查看栈使用情况等。 4 | 5 | ### 函数 6 | 7 | #### rtthread.current_tid() 8 | 返回当前线程的 id 。 9 | 10 | #### rtthread.is_preempt_thread() 11 | 返回是否是可抢占线程。 12 | 13 | ### 示例 14 | 15 | ``` 16 | >>> import rtthread 17 | >>> 18 | >>> rtthread.is_preempt_thread() # determine if it's a preemptible thread 19 | True 20 | >>> rtthread.current_tid() # current thread id 21 | 268464956 22 | >>> 23 | ``` 24 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/include/drivers/wlan.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-09-15 tyx the first version 9 | */ 10 | 11 | #ifndef __WLAN_H__ 12 | #define __WLAN_H__ 13 | 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /drivers/audio/drv_audio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-11-14 ZeroFree first implementation 9 | */ 10 | 11 | #ifndef __DRV_AUDIO_H__ 12 | #define __DRV_AUDIO_H__ 13 | 14 | #include 15 | #include 16 | #include 17 | 18 | int SAIA_SampleRate_Set(uint32_t samplerate); 19 | int rt_hw_audio_init(char *i2c_bus_name); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/workqueue.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_WORKQUEUE_H__ 2 | #define __LINUX_WORKQUEUE_H__ 3 | 4 | /* We don't do this yet */ 5 | #if defined (__GNUC__) 6 | struct work_struct { } ; 7 | #elif defined (MSVC) 8 | struct work_struct {int no; } ; 9 | #else 10 | #error "please use a right C compiler" 11 | #endif 12 | 13 | 14 | #define INIT_WORK(x,y,z) /* */ 15 | #define schedule_work(x) do { } while(0) 16 | #define flush_scheduled_work() do { } while(0) 17 | 18 | #endif /* __LINUX_WORKQUEUE_H__ */ 19 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/README: -------------------------------------------------------------------------------- 1 | uIP is a very small implementation of the TCP/IP stack that is written 2 | by Adam Dunkels . More information can be obtained 3 | at the uIP homepage at http://www.sics.se/~adam/uip/. 4 | 5 | This is version $Name: uip-1-0 $. 6 | 7 | The directory structure look as follows: 8 | 9 | apps/ - Example applications 10 | doc/ - Documentation 11 | lib/ - Library code used by some applications 12 | uip/ - uIP TCP/IP stack code 13 | unix/ - uIP as a user space process under FreeBSD or Linux 14 | -------------------------------------------------------------------------------- /drivers/drv_i2c.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2017-06-05 tanek first implementation. 9 | * 2018-09-15 BalanceTWK Change to hardware i2c. 10 | */ 11 | 12 | #ifndef __DRV_I2C__ 13 | #define __DRV_I2C__ 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | #include "stm32l4xx_hal.h" 20 | 21 | int hw_i2c_init(void); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /rt-thread/tools/kconfig-frontends/libs/parser/hconf.gperf.patch: -------------------------------------------------------------------------------- 1 | diff --git a/libs/parser/hconf.gperf b/libs/parser/hconf.gperf 2 | index ead02ed..e5f0af7 100644 3 | --- a/libs/parser/hconf.gperf 4 | +++ b/libs/parser/hconf.gperf 5 | @@ -9,7 +9,7 @@ 6 | 7 | struct kconf_id; 8 | 9 | -static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len); 10 | +static const struct kconf_id *kconf_id_lookup(register const char *str, register GPERF_LEN_TYPE len); 11 | 12 | %% 13 | mainmenu, T_MAINMENU, TF_COMMAND 14 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/rt-thread/uip_ipaddr.h: -------------------------------------------------------------------------------- 1 | 2 | #include "rtdef.h" 3 | 4 | 5 | 6 | 7 | 8 | 9 | /* ethernetif APIs */ 10 | #define IP_ADDR_ANY_VALUE 0x00000000UL 11 | #define IP_ADDR_BROADCAST_VALUE 0xffffffffUL 12 | 13 | //extern const struct ip_addr ip_addr_any; 14 | //extern const struct ip_addr ip_addr_broadcast; 15 | 16 | /** IP_ADDR_ can be used as a fixed IP address 17 | * for the wildcard and the broadcast address 18 | */ 19 | #define IP_ADDR_ANY ((struct ip_addr *)0) 20 | #define IP_ADDR_BROADCAST ((struct ip_addr *)0) -------------------------------------------------------------------------------- /drivers/linker_scripts/stm32l475ve.sct: -------------------------------------------------------------------------------- 1 | ; ************************************************************* 2 | ; *** Scatter-Loading Description File generated by uVision *** 3 | ; ************************************************************* 4 | 5 | LR_IROM1 0x08000000 0x00100000 { ; load region size_region 6 | ER_IROM1 0x08000000 0x00100000 { ; load address = execution address 7 | *.o (RESET, +First) 8 | *(InRoot$$Sections) 9 | .ANY (+RO) 10 | } 11 | RW_IRAM1 0x20000000 0x00020000 { ; RW data 12 | .ANY (+RW +ZI) 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/newlib/sys/statfs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __RTT_STATFS_H__ 10 | #define __RTT_STATFS_H__ 11 | 12 | #include 13 | 14 | struct statfs 15 | { 16 | rt_size_t f_bsize; /* block size */ 17 | rt_size_t f_blocks; /* total data blocks in file system */ 18 | rt_size_t f_bfree; /* free blocks in file system */ 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /drivers/drv_qspi.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-08-17 zylx the first version 9 | */ 10 | 11 | #ifndef __STM32_QSPI_H_ 12 | #define __STM32_QSPI_H_ 13 | #include 14 | #include 15 | #include "board.h" 16 | #include 17 | 18 | rt_err_t stm32_qspi_bus_attach_device(rt_uint32_t pin, const char *bus_name, const char *device_name); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /drivers/linker_scripts/stm32l475ve_app.sct: -------------------------------------------------------------------------------- 1 | ; ************************************************************* 2 | ; *** Scatter-Loading Description File generated by uVision *** 3 | ; ************************************************************* 4 | 5 | LR_IROM1 0x08010000 0x00080000 { ; load region size_region 6 | ER_IROM1 0x08010000 0x00080000 { ; load address = execution address 7 | *.o (RESET, +First) 8 | *(InRoot$$Sections) 9 | .ANY (+RO) 10 | } 11 | RW_IRAM1 0x20000000 0x00020000 { ; RW data 12 | .ANY (+RW +ZI) 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/tools/format_code.rb: -------------------------------------------------------------------------------- 1 | #usage: 2 | # find . -name "*.c" | xargs /usr/bin/ruby path/to/format_code.rb 3 | # 4 | 5 | ARGV.each do |file| 6 | lines = [] 7 | count = 0 8 | File.open(file).each_line do |line| 9 | if line =~ /^(.*)\s$/ 10 | lines << $1.dup 11 | count += 1 12 | else 13 | lines << line 14 | end 15 | end 16 | if count > 0 17 | f = File.open(file, "w") 18 | lines.each do |s| 19 | f.puts s 20 | end 21 | f.close 22 | puts "Fix file #{file}, modified lines: #{count}" 23 | end 24 | end 25 | -------------------------------------------------------------------------------- /rt-thread/components/cplusplus/Lock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2016/10/1 Bernard The first version 9 | */ 10 | 11 | #pragma once 12 | 13 | #include 14 | #include 15 | 16 | namespace rtthread { 17 | 18 | class Lock 19 | { 20 | public: 21 | Lock(Mutex& mutex) : m(mutex) {m.lock();} 22 | ~Lock() {m.unlock();} 23 | 24 | protected: 25 | Mutex &m; 26 | }; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/TODO: -------------------------------------------------------------------------------- 1 | 2 | This contains a very limited set of Linux-compatibility headers, initially 3 | just for getting JFFS2 to build. 4 | 5 | Some things are simply stubs which don't _work_, to allow the JFFS2 code 6 | to compile. Note that you may need to implement these _properly_ in order 7 | to use these for making other Linux code work, or indeed for making the 8 | JFFS2 NAND support work. 9 | 10 | The non-working parts include, but are not limited to: 11 | workqueue.h, wait.h, timer.h, spinlock.h, sched.h, compiler.h 12 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/include/dfs_select.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | 10 | #ifndef DFS_SELECT_H__ 11 | #define DFS_SELECT_H__ 12 | 13 | #include 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | 25 | #endif 26 | 27 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/pagemap.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_PAGEMAP_H__ 2 | #define __LINUX_PAGEMAP_H__ 3 | 4 | #include 5 | #include 6 | 7 | #define PAGE_CACHE_SHIFT PAGE_SHIFT 8 | #define PAGE_CACHE_SIZE PAGE_SIZE 9 | 10 | #define PageLocked(pg) 1 11 | #define Page_Uptodate(pg) 0 12 | #define UnlockPage(pg) 13 | #define PAGE_BUG(pg) BUG() 14 | #define ClearPageUptodate(pg) 15 | #define SetPageError(pg) 16 | #define ClearPageError(pg) 17 | #define SetPageUptodate(pg) 18 | 19 | #endif /* __LINUX_PAGEMAP_H__ */ 20 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/minilibc/ctype.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2008-08-14 Bernard the first version 9 | */ 10 | #ifndef __CTYPE_H__ 11 | #define __CTYPE_H__ 12 | 13 | int isprint(int c) __attribute__ ((__const__)); 14 | int isalpha (int c) __attribute__ ((__const__)); 15 | int isdigit (int ch) __attribute__ ((__const__)); 16 | int isspace(int ch) __attribute__ ((__const__)); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/zynq7000/cp15.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2013-07-20 Bernard first version 9 | */ 10 | 11 | #ifndef __CP15_H__ 12 | #define __CP15_H__ 13 | 14 | unsigned long rt_cpu_get_smp_id(void); 15 | 16 | void rt_cpu_mmu_disable(void); 17 | void rt_cpu_mmu_enable(void); 18 | void rt_cpu_tlb_set(volatile unsigned long*); 19 | 20 | void rt_cpu_vector_set_base(unsigned int addr); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /rt-thread/components/finsh/finsh_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2010-03-22 Bernard first version 9 | */ 10 | #ifndef __FINSH_ERROR_H__ 11 | #define __FINSH_ERROR_H__ 12 | 13 | #include 14 | 15 | int finsh_error_init(void); 16 | 17 | /* get error number */ 18 | uint8_t finsh_errno(void); 19 | 20 | int finsh_error_set(uint8_t type); 21 | const char* finsh_error_string(uint8_t type); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/py/emitnarm.c: -------------------------------------------------------------------------------- 1 | // ARM specific stuff 2 | 3 | #include "py/mpconfig.h" 4 | 5 | #if MICROPY_EMIT_ARM 6 | 7 | // This is defined so that the assembler exports generic assembler API macros 8 | #define GENERIC_ASM_API (1) 9 | #include "py/asmarm.h" 10 | 11 | // Word indices of REG_LOCAL_x in nlr_buf_t 12 | #define NLR_BUF_IDX_LOCAL_1 (3) // r4 13 | #define NLR_BUF_IDX_LOCAL_2 (4) // r5 14 | #define NLR_BUF_IDX_LOCAL_3 (5) // r6 15 | 16 | #define N_ARM (1) 17 | #define EXPORT_FUN(name) emit_native_arm_##name 18 | #include "py/emitnative.c" 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/py/emitnx64.c: -------------------------------------------------------------------------------- 1 | // x64 specific stuff 2 | 3 | #include "py/mpconfig.h" 4 | 5 | #if MICROPY_EMIT_X64 6 | 7 | // This is defined so that the assembler exports generic assembler API macros 8 | #define GENERIC_ASM_API (1) 9 | #include "py/asmx64.h" 10 | 11 | // Word indices of REG_LOCAL_x in nlr_buf_t 12 | #define NLR_BUF_IDX_LOCAL_1 (5) // rbx 13 | #define NLR_BUF_IDX_LOCAL_2 (6) // r12 14 | #define NLR_BUF_IDX_LOCAL_3 (7) // r13 15 | 16 | #define N_X64 (1) 17 | #define EXPORT_FUN(name) emit_native_x64_##name 18 | #include "py/emitnative.c" 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/syscall_remove.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-01-28 Bernard first version 9 | */ 10 | #include 11 | #ifdef RT_USING_DFS 12 | #include 13 | #endif 14 | #include 15 | 16 | #pragma module_name = "?remove" 17 | int remove(const char *val) 18 | { 19 | #ifdef RT_USING_DFS 20 | dfs_file_unlink(val); 21 | #endif 22 | 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/src/FILES: -------------------------------------------------------------------------------- 1 | api/ - The code for the high-level wrapper API. Not needed if 2 | you use the lowel-level call-back/raw API. 3 | 4 | core/ - The core of the TPC/IP stack; protocol implementations, 5 | memory and buffer management, and the low-level raw API. 6 | 7 | include/ - lwIP include files. 8 | 9 | netif/ - Generic network interface device drivers are kept here, 10 | as well as the ARP module. 11 | 12 | For more information on the various subdirectories, check the FILES 13 | file in each directory. 14 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/am335x/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/armv6/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/common/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/dm36x/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /libraries/cloudsdk/SConscript: -------------------------------------------------------------------------------- 1 | Import('rtconfig') 2 | from building import * 3 | 4 | cwd = GetCurrentDir() 5 | src = [] 6 | path = [cwd + '/inc'] 7 | libs = [''] 8 | libpath = [cwd + '/libs'] 9 | 10 | if rtconfig.CROSS_TOOL == 'gcc': 11 | libs += ['libcloudsdk_2.0.0_armcm4_gcc'] 12 | elif rtconfig.CROSS_TOOL == 'keil': 13 | libs += ['libcloudsdk_2.0.0_armcm4_keil'] 14 | else: 15 | libs += ['libcloudsdk_2.0.0_armcm4_iar'] 16 | 17 | group = DefineGroup('cloudsdk', src, depend = ['RT_USING_CLOUDSDK_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath) 18 | 19 | Return('group') 20 | 21 | -------------------------------------------------------------------------------- /libraries/rt_ota/SConscript: -------------------------------------------------------------------------------- 1 | Import('rtconfig') 2 | from building import * 3 | 4 | cwd = GetCurrentDir() 5 | src = [] 6 | path = [cwd + '/inc'] 7 | libs = [''] 8 | libpath = [cwd + '/libs'] 9 | 10 | if rtconfig.CROSS_TOOL == 'gcc': 11 | libs += ['rt_ota_noalgo_0.1.2_stm32l4_gcc'] 12 | elif rtconfig.CROSS_TOOL == 'keil': 13 | libs += ['librt_ota_noalgo_0.1.2_stm32l4_keil'] 14 | else: 15 | libs += ['librt_ota_noalgo_0.1.2_stm32l4_iar'] 16 | 17 | group = DefineGroup('rt_ota', src, depend = ['RT_USING_OTA_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath) 18 | 19 | Return('group') 20 | -------------------------------------------------------------------------------- /libraries/wifi/SConscript: -------------------------------------------------------------------------------- 1 | Import('rtconfig') 2 | from building import * 3 | 4 | cwd = GetCurrentDir() 5 | 6 | LIBS = [] 7 | LIBPATH = [] 8 | src = [] 9 | 10 | LIBPATH = [cwd] 11 | if rtconfig.CROSS_TOOL == 'gcc': 12 | LIBS += ['wifi_6181_0.2.5_armcm4_gcc'] 13 | elif rtconfig.CROSS_TOOL == 'keil': 14 | LIBS += ['libwifi_6181_0.2.5_armcm4_keil'] 15 | else: 16 | LIBS += ['libwifi_6181_0.2.5_armcm4_iar'] 17 | 18 | path = [cwd] 19 | 20 | group = DefineGroup('wifi', src, depend = ['RT_USING_WIFI_6181_LIB'], CPPPATH = path, LIBS = LIBS, LIBPATH = LIBPATH) 21 | 22 | Return('group') 23 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/py/emitnthumb.c: -------------------------------------------------------------------------------- 1 | // thumb specific stuff 2 | 3 | #include "py/mpconfig.h" 4 | 5 | #if MICROPY_EMIT_THUMB 6 | 7 | // this is defined so that the assembler exports generic assembler API macros 8 | #define GENERIC_ASM_API (1) 9 | #include "py/asmthumb.h" 10 | 11 | // Word indices of REG_LOCAL_x in nlr_buf_t 12 | #define NLR_BUF_IDX_LOCAL_1 (3) // r4 13 | #define NLR_BUF_IDX_LOCAL_2 (4) // r5 14 | #define NLR_BUF_IDX_LOCAL_3 (5) // r6 15 | 16 | #define N_THUMB (1) 17 | #define EXPORT_FUN(name) emit_native_thumb_##name 18 | #include "py/emitnative.c" 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/AT91SAM7S/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/AT91SAM7X/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-a/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-m0/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-m23/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-m3/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-m4/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-m7/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-r4/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/lpc214x/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/lpc24xx/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/s3c24x0/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/s3c44b0/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/sep4020/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/zynq7000/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/std-librarys/uerrno.md: -------------------------------------------------------------------------------- 1 | ## **uerrno** – 系统错误码模块 2 | 3 | `uerrno` 模块提供了标准的 errno 系统符号,每个符号都有对应的整数值。 4 | 5 | ### 示例 6 | 7 | ```python 8 | try: 9 | uos.mkdir("my_dir") 10 | except OSError as exc: 11 | if exc.args[0] == uerrno.EEXIST: 12 | print("Directory already exists") 13 | uerrno.errorcode 14 | Dictionary mapping numeric error codes to strings with symbolic error code (see above): 15 | 16 | >>> print(uerrno.errorcode[uerrno.EEXIST]) 17 | EEXIST 18 | ``` 19 | 20 | 更多内容可参考 [uerrno](http://docs.micropython.org/en/latest/pyboard/library/uerrno.html) 。 21 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/realview-a8-vmm/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | 11 | if rtconfig.PLATFORM == 'armcc': 12 | src += Glob('*_rvds.S') 13 | 14 | if rtconfig.PLATFORM == 'gcc': 15 | src += Glob('*_init.S') 16 | src += Glob('*_gcc.S') 17 | 18 | if rtconfig.PLATFORM == 'iar': 19 | src += Glob('*_iar.S') 20 | 21 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/py/emitnxtensa.c: -------------------------------------------------------------------------------- 1 | // Xtensa specific stuff 2 | 3 | #include "py/mpconfig.h" 4 | 5 | #if MICROPY_EMIT_XTENSA 6 | 7 | // this is defined so that the assembler exports generic assembler API macros 8 | #define GENERIC_ASM_API (1) 9 | #include "py/asmxtensa.h" 10 | 11 | // Word indices of REG_LOCAL_x in nlr_buf_t 12 | #define NLR_BUF_IDX_LOCAL_1 (8) // a12 13 | #define NLR_BUF_IDX_LOCAL_2 (9) // a13 14 | #define NLR_BUF_IDX_LOCAL_3 (10) // a14 15 | 16 | #define N_XTENSA (1) 17 | #define EXPORT_FUN(name) emit_native_xtensa_##name 18 | #include "py/emitnative.c" 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/rtc/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | src = [] 5 | 6 | rtc = ['rtc.c'] 7 | 8 | rtc_alarm = ['alarm.c'] 9 | 10 | soft_rtc = ['soft_rtc.c'] 11 | 12 | CPPPATH = [cwd + '/../include'] 13 | group = [] 14 | 15 | if GetDepend(['RT_USING_RTC']): 16 | src = src + rtc 17 | if GetDepend(['RT_USING_ALARM']): 18 | src = src + rtc_alarm 19 | if GetDepend(['RT_USING_SOFT_RTC']): 20 | src = src + soft_rtc 21 | 22 | group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH) 23 | 24 | Return('group') -------------------------------------------------------------------------------- /rt-thread/components/drivers/include/drivers/rtc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2012-10-10 aozima first version. 9 | */ 10 | 11 | #ifndef __RTC_H__ 12 | #define __RTC_H__ 13 | 14 | rt_err_t set_date(rt_uint32_t year, rt_uint32_t month, rt_uint32_t day); 15 | rt_err_t set_time(rt_uint32_t hour, rt_uint32_t minute, rt_uint32_t second); 16 | 17 | int rt_soft_rtc_init(void); 18 | int rt_rtc_ntp_sync_init(void); 19 | 20 | #endif /* __RTC_H__ */ 21 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/include/lwip/apps/snmp_snmpv2_usm.h: -------------------------------------------------------------------------------- 1 | /* 2 | Generated by LwipMibCompiler 3 | */ 4 | 5 | #ifndef LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H 6 | #define LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H 7 | 8 | #include "lwip/apps/snmp_opts.h" 9 | #if LWIP_SNMP 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif /* __cplusplus */ 14 | 15 | #include "lwip/apps/snmp_core.h" 16 | 17 | extern const struct snmp_mib snmpusmmib; 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif /* __cplusplus */ 22 | 23 | #endif /* LWIP_SNMP */ 24 | #endif /* LWIP_HDR_APPS_SNMP_USER_BASED_SM_MIB_H */ 25 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-a/pmu.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #include 10 | #include "pmu.h" 11 | 12 | void rt_hw_pmu_dump_feature(void) 13 | { 14 | unsigned long reg; 15 | 16 | reg = rt_hw_pmu_get_control(); 17 | rt_kprintf("ARM PMU Implementor: %c, ID code: %02x, %d counters\n", 18 | reg >> 24, (reg >> 16) & 0xff, (reg >> 11) & 0x1f); 19 | RT_ASSERT(ARM_PMU_CNTER_NR == ((reg >> 11) & 0x1f)); 20 | } 21 | -------------------------------------------------------------------------------- /libraries/smartconfig/SConscript: -------------------------------------------------------------------------------- 1 | Import('rtconfig') 2 | from building import * 3 | 4 | cwd = GetCurrentDir() 5 | src = [] 6 | path = [cwd + '/inc'] 7 | libs = [''] 8 | libpath = [cwd + '/libs'] 9 | 10 | if rtconfig.CROSS_TOOL == 'gcc': 11 | libs += ['libsmartconfig_1.0.0_armcm4_gcc'] 12 | elif rtconfig.CROSS_TOOL == 'keil': 13 | libs += ['libsmartconfig_1.0.0_armcm4_keil'] 14 | else: 15 | libs += ['libsmartconfig_1.0.0_armcm4_iar'] 16 | 17 | group = DefineGroup('smartconfig', src, depend = ['RT_USING_SMARTCONFIG_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath) 18 | 19 | Return('group') 20 | 21 | -------------------------------------------------------------------------------- /rt-thread/components/libc/time/posix_sleep.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #include 10 | #include 11 | 12 | #include 13 | 14 | unsigned int sleep(unsigned int seconds) 15 | { 16 | rt_tick_t delta_tick; 17 | 18 | delta_tick = rt_tick_get(); 19 | rt_thread_delay(seconds * RT_TICK_PER_SECOND); 20 | delta_tick = rt_tick_get() - delta_tick; 21 | 22 | return seconds - delta_tick/RT_TICK_PER_SECOND; 23 | } 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/realview-a8-vmm/pmu.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #include 10 | #include "pmu.h" 11 | 12 | void rt_hw_pmu_dump_feature(void) 13 | { 14 | unsigned long reg; 15 | 16 | reg = rt_hw_pmu_get_control(); 17 | rt_kprintf("ARM PMU Implementor: %c, ID code: %02x, %d counters\n", 18 | reg >> 24, (reg >> 16) & 0xff, (reg >> 11) & 0x1f); 19 | RT_ASSERT(ARM_PMU_CNTER_NR == ((reg >> 11) & 0x1f)); 20 | } 21 | -------------------------------------------------------------------------------- /rt-thread/components/net/SConscript: -------------------------------------------------------------------------------- 1 | # for network related component 2 | import os 3 | Import('RTT_ROOT') 4 | from building import * 5 | 6 | objs = [] 7 | cwd = GetCurrentDir() 8 | list = os.listdir(cwd) 9 | 10 | # the default version of LWIP is 2.0.2 11 | if not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202') and not GetDepend('RT_USING_LWIP210'): 12 | AddDepend('RT_USING_LWIP202') 13 | 14 | for d in list: 15 | path = os.path.join(cwd, d) 16 | if os.path.isfile(os.path.join(path, 'SConscript')): 17 | objs = objs + SConscript(os.path.join(d, 'SConscript')) 18 | 19 | Return('objs') 20 | -------------------------------------------------------------------------------- /rt-thread/tools/kconfig-frontends/AUTHORS: -------------------------------------------------------------------------------- 1 | Authors of kconfig-frontends. 2 | 3 | The developers of the Linux kernel are the original authors of the kconfig 4 | parser and frontends. The list is too long to reproduce here, but you can 5 | get a pretty complete list from the Linux kernel repository logs: 6 | git shortlog scripts/kconfig 7 | 8 | The packaging uses the GNU autotools build system, of which I 9 | will not try to list the many authors here. 10 | 11 | The initial packaging was done by: 12 | "Yann E. MORIN" 13 | 14 | For a complete list, see the commit-logs of the kconfig repository. 15 | -------------------------------------------------------------------------------- /rt-thread/components/finsh/msh.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2013-03-30 Bernard the first verion for FinSH 9 | */ 10 | 11 | #ifndef __M_SHELL__ 12 | #define __M_SHELL__ 13 | 14 | #include 15 | 16 | rt_bool_t msh_is_used(void); 17 | int msh_exec(char *cmd, rt_size_t length); 18 | void msh_auto_complete(char *prefix); 19 | 20 | int msh_exec_module(const char *cmd_line, int size); 21 | int msh_exec_script(const char *cmd_line, int size); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /rt-thread/components/lwp/lwp_mem.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-06-10 Bernard first version 9 | */ 10 | 11 | #ifndef __LWP_MEM_H__ 12 | #define __LWP_MEM_H__ 13 | 14 | extern void rt_lwp_mem_init(struct rt_lwp *lwp); 15 | extern void rt_lwp_mem_deinit(struct rt_lwp *lwp); 16 | 17 | extern void *rt_lwp_mem_malloc(rt_uint32_t size); 18 | extern void rt_lwp_mem_free(void *addr); 19 | extern void *rt_lwp_mem_realloc(void *rmem, rt_size_t newsize); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/doc/FILES: -------------------------------------------------------------------------------- 1 | doxygen/ - Configuration files and scripts to create the lwIP doxygen source 2 | documentation (found at http://www.nongnu.org/lwip/) 3 | 4 | savannah.txt - How to obtain the current development source code. 5 | contrib.txt - How to contribute to lwIP as a developer. 6 | rawapi.txt - The documentation for the core API of lwIP. 7 | Also provides an overview about the other APIs and multithreading. 8 | sys_arch.txt - The documentation for a system abstraction layer of lwIP. 9 | ppp.txt - Documentation of the PPP interface for lwIP. 10 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/doc/FILES: -------------------------------------------------------------------------------- 1 | doxygen/ - Configuration files and scripts to create the lwIP doxygen source 2 | documentation (found at http://www.nongnu.org/lwip/) 3 | 4 | savannah.txt - How to obtain the current development source code. 5 | contrib.txt - How to contribute to lwIP as a developer. 6 | rawapi.txt - The documentation for the core API of lwIP. 7 | Also provides an overview about the other APIs and multithreading. 8 | sys_arch.txt - The documentation for a system abstraction layer of lwIP. 9 | ppp.txt - Documentation of the PPP interface for lwIP. 10 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/spi/spi_flash_w25qxx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2011-12-16 aozima the first version 9 | * 2012-08-23 aozima add flash lock. 10 | */ 11 | 12 | #ifndef SPI_FLASH_W25QXX_H_INCLUDED 13 | #define SPI_FLASH_W25QXX_H_INCLUDED 14 | 15 | #include 16 | 17 | extern rt_err_t w25qxx_init(const char * flash_device_name, 18 | const char * spi_device_name); 19 | 20 | #endif // SPI_FLASH_W25QXX_H_INCLUDED 21 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/tools/chomp_uffs_perror.rb: -------------------------------------------------------------------------------- 1 | #usage: 2 | # find . -name "*.c" | xargs /usr/bin/ruby path/to/chomp_uffs_perror.rb 3 | # 4 | 5 | ARGV.each do |file| 6 | lines = [] 7 | count = 0 8 | File.open(file).each_line do |line| 9 | if line =~ /^(.*uffs_Perror.+)PFX(\s*".+)$/ 10 | lines << ($1 + $2) 11 | count += 1 12 | #puts ($1 + $2) 13 | else 14 | lines << line 15 | end 16 | end 17 | if count > 0 18 | f = File.open(file, "w") 19 | lines.each do |s| 20 | f.puts s 21 | end 22 | f.close 23 | puts "Fix file #{file}, modified lines: #{count}" 24 | end 25 | end 26 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/arm926/machine.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-02-08 RT-Thread the first version 9 | */ 10 | 11 | #include 12 | #include 13 | 14 | RT_WEAK void machine_reset(void) 15 | { 16 | rt_kprintf("reboot system...\n"); 17 | rt_hw_interrupt_disable(); 18 | while (1); 19 | } 20 | 21 | RT_WEAK void machine_shutdown(void) 22 | { 23 | rt_kprintf("shutdown...\n"); 24 | rt_hw_interrupt_disable(); 25 | while (1); 26 | } 27 | 28 | -------------------------------------------------------------------------------- /drivers/audio/drv_es8388.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-11-15 ZeroFree first implementation 9 | */ 10 | 11 | #ifndef __DRV_ES8388_H__ 12 | #define __DRV_ES8388_H__ 13 | 14 | #include 15 | #include 16 | 17 | int es8388_init(struct rt_i2c_bus_device *dev); 18 | void es8388_reset(struct rt_i2c_bus_device *dev); 19 | void es8388_suspend(struct rt_i2c_bus_device *dev); 20 | void es8388_set_volume(struct rt_i2c_bus_device *dev, uint16_t v); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /packages/EasyFlash-v3.2.1/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | *.S text 4 | *.asm text 5 | *.c text 6 | *.cc text 7 | *.cpp text 8 | *.cxx text 9 | *.h text 10 | *.htm text 11 | *.html text 12 | *.in text 13 | *.ld text 14 | *.m4 text 15 | *.mak text 16 | *.mk text 17 | *.py text 18 | *.rb text 19 | *.s text 20 | *.sct text 21 | *.sh text 22 | *.txt text 23 | *.xml text 24 | Makefile text 25 | AUTHORS text 26 | COPYING text 27 | 28 | *.LZO -text 29 | *.Opt -text 30 | *.Uv2 -text 31 | *.ewp -text 32 | *.eww -text 33 | *.vcproj -text 34 | *.bat -text 35 | *.dos -text 36 | *.icf -text 37 | *.inf -text 38 | *.ini -text 39 | *.sct -text 40 | *.xsd -text 41 | -------------------------------------------------------------------------------- /rt-thread/components/vbus/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | import SCons, os 4 | from building import * 5 | 6 | group = [] 7 | if not GetDepend(['RT_USING_VBUS']): 8 | Return('group') 9 | 10 | cwd = GetCurrentDir() 11 | src = Glob('*.c') 12 | 13 | for c, f in [['RT_USING_VBUS_RFS', 'utilities/rfs.c'], 14 | ['RT_USING_VBUS_RSHELL', 'utilities/rshell.c'], 15 | ]: 16 | if GetDepend(c): 17 | src += Glob(f) 18 | 19 | CPPPATH = [cwd, os.path.join(cwd, 'share_hdr')] 20 | 21 | group = DefineGroup('VBus', src, depend = ['RT_USING_VBUS'], CPPPATH = CPPPATH) 22 | 23 | Return('group') 24 | -------------------------------------------------------------------------------- /rt-thread/tools/kconfig-frontends/frontends/qconf/qconf.cc.patch: -------------------------------------------------------------------------------- 1 | diff --git a/frontends/qconf/qconf.cc b/frontends/qconf/qconf.cc 2 | --- a/frontends/qconf/qconf.cc 3 | +++ b/frontends/qconf/qconf.cc 4 | @@ -32,7 +32,7 @@ 5 | #include "qconf.h" 6 | 7 | #include "qconf.moc" 8 | -#include "images.c" 9 | +#include "images.h" 10 | 11 | #ifdef _ 12 | # undef _ 13 | @@ -318,7 +318,7 @@ 14 | showName(false), showRange(false), showData(false), mode(singleMode), optMode(normalOpt), 15 | rootEntry(0), headerPopup(0) 16 | { 17 | - int i; 18 | + int i __attribute__((unused)); 19 | 20 | setObjectName(name); 21 | setSortingEnabled(false); 22 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/spi/spi_flash_w25qxx_mtd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2011-12-16 aozima the first version 9 | * 2012-08-23 aozima add flash lock. 10 | * 2017-02-11 urey add mtd fucntion 11 | */ 12 | 13 | #ifndef SPI_FLASH_W25QXX_H_INCLUDED 14 | #define SPI_FLASH_W25QXX_H_INCLUDED 15 | 16 | #include 17 | 18 | extern rt_err_t w25qxx_mtd_init(const char *mtd_name,const char * spi_device_name); 19 | 20 | #endif // SPI_FLASH_W25QXX_H_INCLUDED 21 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/armlibc/libc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2017/10/15 bernard the first version 9 | */ 10 | #ifndef __RTT_LIBC_H__ 11 | #define __RTT_LIBC_H__ 12 | 13 | #include 14 | 15 | int libc_system_init(void); 16 | 17 | int libc_stdio_set_console(const char* device_name, int mode); 18 | int libc_stdio_get_console(void); 19 | int libc_stdio_read (void *buffer, size_t size); 20 | int libc_stdio_write(const void *buffer, size_t size); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/minilibc/stdio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __STDIO_H__ 10 | #define __STDIO_H__ 11 | 12 | #define BUFSIZ 128 13 | #define EOF (-1) 14 | 15 | #ifndef SEEK_SET 16 | #define SEEK_SET 0 /* set file offset to offset */ 17 | #endif 18 | #ifndef SEEK_CUR 19 | #define SEEK_CUR 1 /* set file offset to current plus offset */ 20 | #endif 21 | #ifndef SEEK_END 22 | #define SEEK_END 2 /* set file offset to EOF plus offset */ 23 | #endif 24 | 25 | #endif 26 | 27 | -------------------------------------------------------------------------------- /drivers/drv_log.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-11-15 SummerGift first version 9 | */ 10 | 11 | /* 12 | * NOTE: DO NOT include this file on the header file. 13 | */ 14 | 15 | #ifndef LOG_TAG 16 | #define DBG_TAG "drv" 17 | #else 18 | #define DBG_TAG LOG_TAG 19 | #endif /* LOG_TAG */ 20 | 21 | #ifdef DRV_DEBUG 22 | #define DBG_LVL DBG_LOG 23 | #else 24 | #define DBG_LVL DBG_INFO 25 | #endif /* DRV_DEBUG */ 26 | 27 | #include 28 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/armlibc/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | Import('rtconfig') 3 | 4 | src = Glob('*.c') + Glob('*.cpp') 5 | cwd = GetCurrentDir() 6 | group = [] 7 | 8 | CPPPATH = [cwd] 9 | CPPDEFINES = ['RT_USING_ARM_LIBC'] 10 | 11 | if GetDepend('RT_USING_DFS') == False: 12 | SrcRemove(src, ['stdio.c']) 13 | 14 | if GetDepend('RT_USING_MODULE') == False: 15 | SrcRemove(src, ['libc_syms.c']) 16 | 17 | if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang': 18 | group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], 19 | CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) 20 | 21 | Return('group') 22 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/libc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2017/10/15 bernard the first version 9 | */ 10 | 11 | #ifndef __RTT_LIBC_H__ 12 | #define __RTT_LIBC_H__ 13 | 14 | #include 15 | 16 | int libc_system_init(void); 17 | 18 | int libc_stdio_set_console(const char* device_name, int mode); 19 | int libc_stdio_get_console(void); 20 | int libc_stdio_read (void *buffer, size_t size); 21 | int libc_stdio_write(const void *buffer, size_t size); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/arm926/SConscript: -------------------------------------------------------------------------------- 1 | # RT-Thread building script for component 2 | 3 | from building import * 4 | 5 | Import('rtconfig') 6 | 7 | cwd = GetCurrentDir() 8 | src = Glob('*.c') + Glob('*.cpp') 9 | CPPPATH = [cwd] 10 | ASFLAGS = '' 11 | 12 | if rtconfig.PLATFORM == 'armcc': 13 | src += Glob('*_rvds.S') 14 | ASFLAGS = ' --cpreproc' 15 | 16 | if rtconfig.PLATFORM == 'gcc': 17 | src += Glob('*_init.S') 18 | src += Glob('*_gcc.S') 19 | 20 | if rtconfig.PLATFORM == 'iar': 21 | src += Glob('*_iar.S') 22 | 23 | group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS) 24 | 25 | Return('group') 26 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/cortex-a/cp15.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-03-25 quanzhao the first version 9 | */ 10 | #ifndef __CP15_H__ 11 | #define __CP15_H__ 12 | 13 | unsigned long rt_cpu_get_smp_id(void); 14 | 15 | void rt_cpu_mmu_disable(void); 16 | void rt_cpu_mmu_enable(void); 17 | void rt_cpu_tlb_set(volatile unsigned long*); 18 | 19 | void rt_cpu_dcache_clean_flush(void); 20 | void rt_cpu_icache_flush(void); 21 | 22 | void rt_cpu_vector_set_base(unsigned int addr); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /rt-thread/components/cplusplus/crt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-03-07 Bernard Add copyright header. 9 | */ 10 | 11 | #ifndef CRT_H_ 12 | #define CRT_H_ 13 | 14 | #include 15 | #include 16 | 17 | void *operator new(size_t size); 18 | void *operator new[](size_t size); 19 | 20 | void operator delete(void * ptr); 21 | void operator delete[](void *ptr); 22 | 23 | extern "C" void __cxa_pure_virtual(void); 24 | extern "C" int cplusplus_system_init(void); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/src/compr_rubin.h: -------------------------------------------------------------------------------- 1 | /* Rubin encoder/decoder header */ 2 | /* work started at : aug 3, 1994 */ 3 | /* last modification : aug 15, 1994 */ 4 | /* $Id: compr_rubin.h,v 1.6 2002/01/25 01:49:26 dwmw2 Exp $ */ 5 | 6 | #include "pushpull.h" 7 | 8 | #define RUBIN_REG_SIZE 16 9 | #define UPPER_BIT_RUBIN (((long) 1)<<(RUBIN_REG_SIZE-1)) 10 | #define LOWER_BITS_RUBIN ((((long) 1)<<(RUBIN_REG_SIZE-1))-1) 11 | 12 | 13 | struct rubin_state { 14 | unsigned long p; 15 | unsigned long q; 16 | unsigned long rec_q; 17 | long bit_number; 18 | struct pushpull pp; 19 | int bit_divider; 20 | int bits[8]; 21 | }; 22 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/src/FILES: -------------------------------------------------------------------------------- 1 | api/ - The code for the high-level wrapper API. Not needed if 2 | you use the lowel-level call-back/raw API. 3 | 4 | apps/ - Higher layer applications that are specifically programmed 5 | with the lwIP low-level raw API. 6 | 7 | core/ - The core of the TPC/IP stack; protocol implementations, 8 | memory and buffer management, and the low-level raw API. 9 | 10 | include/ - lwIP include files. 11 | 12 | netif/ - Generic network interface device drivers are kept here. 13 | 14 | For more information on the various subdirectories, check the FILES 15 | file in each directory. 16 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/FILES: -------------------------------------------------------------------------------- 1 | api/ - The code for the high-level wrapper API. Not needed if 2 | you use the lowel-level call-back/raw API. 3 | 4 | apps/ - Higher layer applications that are specifically programmed 5 | with the lwIP low-level raw API. 6 | 7 | core/ - The core of the TPC/IP stack; protocol implementations, 8 | memory and buffer management, and the low-level raw API. 9 | 10 | include/ - lwIP include files. 11 | 12 | netif/ - Generic network interface device drivers are kept here. 13 | 14 | For more information on the various subdirectories, check the FILES 15 | file in each directory. 16 | -------------------------------------------------------------------------------- /rt-thread/components/net/sal_socket/include/dfs_net/dfs_net.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-02-17 Bernard First version 9 | * 2016-05-05 Bernard rename dfs_lwip to dfs_net. 10 | */ 11 | 12 | #ifndef DFS_NET_H__ 13 | #define DFS_NET_H__ 14 | 15 | #include 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | const struct dfs_file_ops* dfs_net_get_fops(void); 22 | int dfs_net_getsocket(int fd); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/AT91SAM7X/cpu.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2006-08-23 Bernard first version 9 | */ 10 | 11 | #include 12 | 13 | 14 | /** 15 | * @addtogroup AT91SAM7X 16 | */ 17 | /*@{*/ 18 | 19 | /** 20 | * this function will reset CPU 21 | * 22 | */ 23 | void rt_hw_cpu_reset() 24 | { 25 | } 26 | 27 | /** 28 | * this function will shutdown CPU 29 | * 30 | */ 31 | void rt_hw_cpu_shutdown() 32 | { 33 | rt_kprintf("shutdown...\n"); 34 | 35 | while (1); 36 | } 37 | 38 | /*@}*/ 39 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/realview-a8-vmm/cpu.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2011-09-15 Bernard first version 9 | */ 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | /** 16 | * @addtogroup AM33xx 17 | */ 18 | /*@{*/ 19 | 20 | /** shutdown CPU */ 21 | void rt_hw_cpu_shutdown() 22 | { 23 | rt_uint32_t level; 24 | rt_kprintf("shutdown...\n"); 25 | 26 | level = rt_hw_interrupt_disable(); 27 | while (level) 28 | { 29 | RT_ASSERT(0); 30 | } 31 | } 32 | 33 | /*@}*/ 34 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/docs/std-librarys/_thread.md: -------------------------------------------------------------------------------- 1 | ## _thread – 多线程支持 2 | 3 | `_thread` 模块提供了用于处理多线程的基本方法——多个控制线程共享它们的全局数据空间。为了实现同步,提供了简单的锁(也称为互斥锁或二进制信号量)。 4 | 5 | ### 示例 6 | 7 | ```python 8 | import _thread 9 | import time 10 | def testThread(): 11 | while True: 12 | print("Hello from thread") 13 | time.sleep(2) 14 | 15 | _thread.start_new_thread(testThread, ()) 16 | while True: 17 | pass 18 | ``` 19 | 20 | 输出结果(启动新的线程,每隔两秒打印字符): 21 | 22 | Hello from thread 23 | Hello from thread 24 | Hello from thread 25 | Hello from thread 26 | Hello from thread 27 | 28 | 更多内容可参考 [_thread](http://docs.micropython.org/en/latest/pyboard/library/_thread.html) 。 29 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/src/utils/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | IF (UNIX) 2 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/platform/posix) 3 | ENDIF() 4 | IF (WIN32) 5 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/platform/win32) 6 | ENDIF() 7 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/inc) 8 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/emu) 9 | 10 | LINK_DIRECTORIES(${uffs_BINARY_DIR}/src/emu) 11 | LINK_DIRECTORIES(${uffs_BINARY_DIR}/src/uffs) 12 | 13 | SET(mkuffs_SRCS mkuffs.c) 14 | ADD_EXECUTABLE(mkuffs ${mkuffs_SRCS}) 15 | TARGET_LINK_LIBRARIES(mkuffs emu uffs emu platform apitest_server) 16 | IF (UNIX) 17 | TARGET_LINK_LIBRARIES(mkuffs pthread) 18 | ENDIF () 19 | 20 | 21 | -------------------------------------------------------------------------------- /rt-thread/components/net/at/include/at_log.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-10-12 armink first version 9 | */ 10 | 11 | /* 12 | * NOTE: DO NOT include this file on the header file. 13 | */ 14 | 15 | #ifndef LOG_TAG 16 | #define DBG_TAG "at" 17 | #else 18 | #define DBG_TAG LOG_TAG 19 | #endif /* LOG_TAG */ 20 | 21 | #ifdef AT_DEBUG 22 | #define DBG_LVL DBG_LOG 23 | #else 24 | #define DBG_LVL DBG_INFO 25 | #endif /* AT_DEBUG */ 26 | 27 | #include 28 | -------------------------------------------------------------------------------- /rt-thread/tools/kconfig-frontends/SConstruct: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | env = Environment() 4 | env['CPPPATH'] = ['libs/parser', 'libs'] 5 | env['CPPDEFINES'] = ['CURSES_LOC=\\"ncurses.h\\"', 'HAVE_CONFIG_H', 6 | 'ROOTMENU=\\"Configuration\\"', 7 | 'CONFIG_=\\"CONFIG_\\"', 8 | 'KBUILD_NO_NLS', 9 | 'GPERF_LEN_TYPE=unsigned int'] 10 | env['LIBS'] = ['ncurses'] 11 | 12 | src = Split(''' 13 | libs/lxdialog/checklist.c 14 | libs/lxdialog/inputbox.c 15 | libs/lxdialog/menubox.c 16 | libs/lxdialog/textbox.c 17 | libs/lxdialog/util.c 18 | libs/lxdialog/yesno.c 19 | 20 | libs/parser/yconf.c 21 | 22 | frontends/mconf/mconf.c 23 | ''') 24 | 25 | env.Program('kconfig-mconf', src) 26 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/minilibc/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef __TIME_H__ 10 | #define __TIME_H__ 11 | 12 | #include 13 | 14 | time_t mktime(struct tm * const t); 15 | 16 | char *asctime(const struct tm *timeptr); 17 | char *ctime(const time_t *timep); 18 | struct tm* localtime(const time_t* t); 19 | 20 | char *asctime_r(const struct tm *t, char *buf); 21 | struct tm *gmtime_r(const time_t *timep, struct tm *r); 22 | struct tm* localtime_r(const time_t* t, struct tm* r); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/src/apps/httpd/fs/404.html: -------------------------------------------------------------------------------- 1 | 2 | lwIP - A Lightweight TCP/IP Stack 3 | 4 | 5 |
IDNamePriorityPoll handlerEvent handlerProcstate
6 | 19 |
7 | SICS logo 9 | 10 |

lwIP - A Lightweight TCP/IP Stack

11 |

404 - Page not found

12 |

13 | Sorry, the page you are requesting was not found on this 14 | server. 15 |

16 |
17 |   18 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/apps/http/fs/404.html: -------------------------------------------------------------------------------- 1 | 2 | lwIP - A Lightweight TCP/IP Stack 3 | 4 | 5 | 6 | 19 |
7 | SICS logo 9 | 10 |

lwIP - A Lightweight TCP/IP Stack

11 |

404 - Page not found

12 |

13 | Sorry, the page you are requesting was not found on this 14 | server. 15 |

16 |
17 |   18 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/lpc24xx/cpu.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2008-12-11 XuXinming first version 9 | */ 10 | 11 | #include 12 | #include "LPC24xx.h" 13 | 14 | /** 15 | * @addtogroup LPC2478 16 | */ 17 | /*@{*/ 18 | 19 | /** 20 | * this function will reset CPU 21 | * 22 | */ 23 | void rt_hw_cpu_reset() 24 | { 25 | } 26 | 27 | /** 28 | * this function will shutdown CPU 29 | * 30 | */ 31 | void rt_hw_cpu_shutdown() 32 | { 33 | rt_kprintf("shutdown...\n"); 34 | 35 | while (1); 36 | } 37 | 38 | /*@}*/ 39 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/uffs/src/emu/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET (libemu_SRCS 2 | cmdline.c 3 | cmdline.h 4 | helper_cmds.c 5 | uffs_fileem.c 6 | uffs_fileem_share.c 7 | uffs_fileem_wrap.c 8 | uffs_fileem_ecc_soft.c 9 | uffs_fileem_ecc_hw.c 10 | uffs_fileem_ecc_hw_auto.c 11 | uffs_fileem.h 12 | test_cmds.c 13 | ) 14 | 15 | IF (UNIX) 16 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/platform/posix) 17 | ENDIF() 18 | IF (WIN32) 19 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/platform/win32) 20 | ENDIF() 21 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/inc) 22 | INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/test/api_test) 23 | ADD_LIBRARY(emu STATIC ${libemu_SRCS} ) 24 | 25 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/AT91SAM7S/cpu.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2006-08-23 Bernard first version 9 | */ 10 | 11 | #include 12 | #include "AT91SAM7S.h" 13 | 14 | /** 15 | * @addtogroup AT91SAM7 16 | */ 17 | /*@{*/ 18 | 19 | /** 20 | * this function will reset CPU 21 | * 22 | */ 23 | void rt_hw_cpu_reset() 24 | { 25 | } 26 | 27 | /** 28 | * this function will shutdown CPU 29 | * 30 | */ 31 | void rt_hw_cpu_shutdown() 32 | { 33 | rt_kprintf("shutdown...\n"); 34 | 35 | while (1); 36 | } 37 | 38 | /*@}*/ 39 | -------------------------------------------------------------------------------- /Kconfig: -------------------------------------------------------------------------------- 1 | mainmenu "RT-Thread Configuration" 2 | 3 | config $BSP_DIR 4 | string 5 | option env="BSP_ROOT" 6 | default "." 7 | 8 | config $RTT_DIR 9 | string 10 | option env="RTT_ROOT" 11 | default "rt-thread" 12 | 13 | # you can change the RTT_ROOT default "rt-thread" 14 | # example : default "F:/git_repositories/rt-thread" 15 | 16 | config $PKGS_DIR 17 | string 18 | option env="PKGS_ROOT" 19 | default "packages" 20 | 21 | config $ENV_DIR 22 | string 23 | option env="ENV_ROOT" 24 | default "/" 25 | 26 | source "$RTT_DIR/Kconfig" 27 | source "$PKGS_DIR/Kconfig" 28 | source "$BSP_DIR/drivers/Kconfig" 29 | source "$BSP_DIR/libraries/Kconfig" 30 | -------------------------------------------------------------------------------- /drivers/drv_pmtimer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2012-08-21 heyuanjie87 the first version 9 | */ 10 | 11 | #ifndef __DRV_PMTIMER_H__ 12 | #define __DRV_PMTIMER_H__ 13 | 14 | #include 15 | 16 | extern rt_uint32_t stm32l4_lptim_get_countfreq(void); 17 | extern rt_uint32_t stm32l4_lptim_get_tick_max(void); 18 | extern rt_uint32_t stm32l4_lptim_get_current_tick(void); 19 | 20 | extern rt_err_t stm32l4_lptim_start(rt_uint32_t load); 21 | extern void stm32l4_lptim_stop(void); 22 | 23 | #endif /* __DRV_PMTIMER_H__ */ 24 | -------------------------------------------------------------------------------- /packages/fal-v0.3.0/.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 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | -------------------------------------------------------------------------------- /packages/pkgs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "path": "/packages/iot/netutils", 4 | "ver": "v1.1.0", 5 | "name": "NETUTILS" 6 | }, 7 | { 8 | "path": "/packages/security/tinycrypt", 9 | "ver": "v1.0.0", 10 | "name": "TINYCRYPT" 11 | }, 12 | { 13 | "path": "/packages/language/micropython", 14 | "ver": "v1.10.1", 15 | "name": "MICROPYTHON" 16 | }, 17 | { 18 | "path": "/packages/tools/EasyFlash", 19 | "ver": "v3.2.1", 20 | "name": "EASYFLASH" 21 | }, 22 | { 23 | "path": "/packages/system/fal", 24 | "ver": "v0.3.0", 25 | "name": "FAL" 26 | }, 27 | { 28 | "path": "/packages/peripherals/stm32_sdio", 29 | "ver": "v1.0.2", 30 | "name": "STM32_SDIO" 31 | } 32 | ] -------------------------------------------------------------------------------- /rt-thread/components/net/at/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | cwd = GetCurrentDir() 4 | path = [cwd + '/include'] 5 | 6 | src = Glob('src/at_utils.c') 7 | 8 | if GetDepend(['AT_USING_CLI']): 9 | src += Glob('src/at_cli.c') 10 | 11 | if GetDepend(['AT_USING_SERVER']): 12 | src += Split(''' 13 | src/at_server.c 14 | src/at_base_cmd.c 15 | ''') 16 | 17 | if GetDepend(['AT_USING_CLIENT']): 18 | src += Glob('src/at_client.c') 19 | 20 | if GetDepend(['AT_USING_SOCKET']): 21 | src += Glob('at_socket/*.c') 22 | path += [cwd + '/at_socket'] 23 | 24 | group = DefineGroup('AT', src, depend = ['RT_USING_AT'], CPPPATH = path) 25 | 26 | Return('group') 27 | -------------------------------------------------------------------------------- /packages/micropython-v1.10.1/extmod/uzlib/uzlib_conf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * uzlib - tiny deflate/inflate library (deflate, gzip, zlib) 3 | * 4 | * Copyright (c) 2014-2018 by Paul Sokolovsky 5 | */ 6 | 7 | #ifndef UZLIB_CONF_H_INCLUDED 8 | #define UZLIB_CONF_H_INCLUDED 9 | 10 | #ifndef UZLIB_CONF_DEBUG_LOG 11 | /* Debug logging level 0, 1, 2, etc. */ 12 | #define UZLIB_CONF_DEBUG_LOG 0 13 | #endif 14 | 15 | #ifndef UZLIB_CONF_PARANOID_CHECKS 16 | /* Perform extra checks on the input stream, even if they aren't proven 17 | to be strictly required (== lack of them wasn't proven to lead to 18 | crashes). */ 19 | #define UZLIB_CONF_PARANOID_CHECKS 0 20 | #endif 21 | 22 | #endif /* UZLIB_CONF_H_INCLUDED */ 23 | -------------------------------------------------------------------------------- /packages/tinycrypt-v1.0.0/.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 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | -------------------------------------------------------------------------------- /drivers/drv_spi_tfcard.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2018-8-23 SummerGift the first version 9 | */ 10 | 11 | #include 12 | #include 13 | #include "drv_spi.h" 14 | #include "spi_msd.h" 15 | 16 | #ifdef BSP_USING_TF_CARD 17 | 18 | static int rt_hw_spi1_tfcard(void) 19 | { 20 | __HAL_RCC_GPIOC_CLK_ENABLE(); 21 | rt_hw_spi_device_attach("spi1", "spi10", GPIOC, GPIO_PIN_3); 22 | return msd_init("sd0", "spi10"); 23 | } 24 | INIT_COMPONENT_EXPORT(rt_hw_spi1_tfcard); 25 | 26 | #endif /*BSP_USING_TF_CARD*/ 27 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/i2c/fm24clxx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2017-07-14 aubr.cool 1st version 9 | */ 10 | 11 | #ifndef __FM24CLXX_H__ 12 | #define __FM24CLXX_H__ 13 | 14 | #include 15 | 16 | struct fm24clxx_config 17 | { 18 | rt_uint32_t size; 19 | rt_uint16_t addr; 20 | rt_uint16_t flags; 21 | }; 22 | 23 | extern rt_err_t fm24clxx_register(const char *e2m_device_name, 24 | const char *i2c_bus, void *user_data); 25 | 26 | #endif /*__FM24CLXX_H__*/ -------------------------------------------------------------------------------- /rt-thread/components/drivers/usb/usbdevice/class/winusb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2017-11-16 ZYH first version 9 | */ 10 | #ifndef __WINUSB_H__ 11 | #define __WINUSB_H__ 12 | #include 13 | struct winusb_descriptor 14 | { 15 | #ifdef RT_USB_DEVICE_COMPOSITE 16 | struct uiad_descriptor iad_desc; 17 | #endif 18 | struct uinterface_descriptor intf_desc; 19 | struct uendpoint_descriptor ep_out_desc; 20 | struct uendpoint_descriptor ep_in_desc; 21 | }; 22 | typedef struct winusb_descriptor* winusb_desc_t; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/syscall_mem.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-01-28 Bernard first version 9 | */ 10 | #include 11 | 12 | #ifdef RT_USING_HEAP 13 | void *malloc(rt_size_t n) 14 | { 15 | return rt_malloc(n); 16 | } 17 | 18 | void *realloc(void *rmem, rt_size_t newsize) 19 | { 20 | return rt_realloc(rmem, newsize); 21 | } 22 | 23 | void *calloc(rt_size_t nelem, rt_size_t elsize) 24 | { 25 | return rt_calloc(nelem, elsize); 26 | } 27 | 28 | void free(void *rmem) 29 | { 30 | rt_free(rmem); 31 | } 32 | #endif 33 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/syscall_close.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-01-28 Bernard first version 9 | */ 10 | #include 11 | #ifdef RT_USING_DFS 12 | #include 13 | #endif 14 | #include 15 | 16 | #pragma module_name = "?__close" 17 | int __close(int handle) 18 | { 19 | if (handle == _LLIO_STDOUT || 20 | handle == _LLIO_STDERR || 21 | handle == _LLIO_STDIN) 22 | return _LLIO_ERROR; 23 | 24 | #ifdef RT_USING_DFS 25 | return close(handle); 26 | #else 27 | return 0; 28 | #endif 29 | } 30 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/newlib/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | Import('rtconfig') 3 | 4 | src = Glob('*.c') 5 | cwd = GetCurrentDir() 6 | group = [] 7 | 8 | CPPPATH = [cwd] 9 | CPPDEFINES = ['RT_USING_NEWLIB'] 10 | 11 | # link with libc and libm: 12 | # libm is a frequently used lib. Newlib is compiled with -ffunction-sections in 13 | # recent GCC tool chains. The linker would just link in the functions that have 14 | # been referenced. So setting this won't result in bigger text size. 15 | LIBS = ['c', 'm'] 16 | 17 | if rtconfig.PLATFORM == 'gcc': 18 | group = DefineGroup('newlib', src, depend = ['RT_USING_LIBC'], 19 | CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS) 20 | 21 | Return('group') 22 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.0.2/src/apps/httpd/makefsdata/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains a script ('makefsdata') to create C code suitable for 2 | httpd for given html pages (or other files) in a directory. 3 | 4 | There is also a plain C console application doing the same and extended a bit. 5 | 6 | Usage: htmlgen [targetdir] [-s] [-i]s 7 | targetdir: relative or absolute path to files to convert 8 | switch -s: toggle processing of subdirectories (default is on) 9 | switch -e: exclude HTTP header from file (header is created at runtime, default is on) 10 | switch -11: include HTTP 1.1 header (1.0 is default) 11 | 12 | if targetdir not specified, makefsdata will attempt to 13 | process files in subdirectory 'fs'. 14 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/src/apps/http/makefsdata/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains a script ('makefsdata') to create C code suitable for 2 | httpd for given html pages (or other files) in a directory. 3 | 4 | There is also a plain C console application doing the same and extended a bit. 5 | 6 | Usage: htmlgen [targetdir] [-s] [-i]s 7 | targetdir: relative or absolute path to files to convert 8 | switch -s: toggle processing of subdirectories (default is on) 9 | switch -e: exclude HTTP header from file (header is created at runtime, default is on) 10 | switch -11: include HTTP 1.1 header (1.0 is default) 11 | 12 | if targetdir not specified, makefsdata will attempt to 13 | process files in subdirectory 'fs'. 14 | -------------------------------------------------------------------------------- /rt-thread/libcpu/arm/AT91SAM7S/trap.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2006-08-25 Bernard first version 9 | */ 10 | 11 | #include 12 | #include 13 | 14 | #include "AT91SAM7S.h" 15 | 16 | /** 17 | * @addtogroup AT91SAM7 18 | */ 19 | /*@{*/ 20 | 21 | void rt_hw_trap_irq() 22 | { 23 | rt_isr_handler_t hander = (rt_isr_handler_t)AT91C_AIC_IVR; 24 | 25 | hander(AT91C_AIC_ISR); 26 | 27 | /* end of interrupt */ 28 | AT91C_AIC_EOICR = 0; 29 | } 30 | 31 | void rt_hw_trap_fiq() 32 | { 33 | rt_kprintf("fast interrupt request\n"); 34 | } 35 | 36 | /*@}*/ 37 | -------------------------------------------------------------------------------- /libraries/CMSIS/SConscript: -------------------------------------------------------------------------------- 1 | import rtconfig 2 | from building import * 3 | 4 | cwd = GetCurrentDir() 5 | 6 | src = ['Device/ST/STM32L4xx/Source/Templates/system_stm32l4xx.c'] 7 | 8 | #add for startup script 9 | if rtconfig.CROSS_TOOL == 'gcc': 10 | src += ['Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l475xx.s'] 11 | elif rtconfig.CROSS_TOOL == 'keil': 12 | src += ['Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l475xx.s'] 13 | elif rtconfig.CROSS_TOOL == 'iar': 14 | src += ['Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l475xx.s'] 15 | 16 | path = [cwd + '/Device/ST/STM32L4xx/Include', cwd + '/Include'] 17 | 18 | group = DefineGroup('STM32L4xx_HAL_Driver', src, depend = [''], CPPPATH = path) 19 | 20 | Return('group') 21 | -------------------------------------------------------------------------------- /rt-thread/components/libc/libdl/dlfcn.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2010-11-17 yi.qiu first version 9 | */ 10 | 11 | #ifndef __DLFCN_H_ 12 | #define __DLFCN_H_ 13 | 14 | #define RTLD_LAZY 0x00000 15 | #define RTLD_NOW 0x00001 16 | 17 | #define RTLD_LOCAL 0x00000 18 | #define RTLD_GLOBAL 0x10000 19 | 20 | #define RTLD_DEFAULT ((void*)1) 21 | #define RTLD_NEXT ((void*)2) 22 | 23 | void *dlopen (const char *filename, int flag); 24 | const char *dlerror(void); 25 | void *dlsym(void *handle, const char *symbol); 26 | int dlclose (void *handle); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-1.4.1/READTEST.md: -------------------------------------------------------------------------------- 1 | Porting network interface device for RT-Thread in lwIP. 2 | The major jobs following RT-Thread Team. The RT-Thread network interface device need to synchronize some network status and address information in lwIP, so it need to make some changes in the lwIP netwrok status and address operations function. 3 | The specific changes are as follows: 4 | 5 | - netif.c: add RT-Thread netdev header file , status synchronize(UP, LINK_UP), address synchronize(IP, netmask, gateway); 6 | 7 | - dns.c: add RT-Thread header file, dns servers synchronize; 8 | 9 | - sockets.c: custom 'select' function implementation in RT-Thread by the wait queue mode. 10 | 11 | by ChenYong 2019/3/26 10:00 AM 12 | chenyong@rt-thread.com 13 | -------------------------------------------------------------------------------- /rt-thread/components/net/lwip-2.1.0/READTEST.md: -------------------------------------------------------------------------------- 1 | Porting network interface device for RT-Thread in lwIP. 2 | The major jobs following RT-Thread Team. The RT-Thread network interface device need to synchronize some network status and address information in lwIP, so it need to make some changes in the lwIP netwrok status and address operations function. 3 | The specific changes are as follows: 4 | 5 | - netif.c: add RT-Thread netdev header file , status synchronize(UP, LINK_UP), address synchronize(IP, netmask, gateway); 6 | 7 | - dns.c: add RT-Thread header file, dns servers synchronize; 8 | 9 | - sockets.c: custom 'select' function implementation in RT-Thread by the wait queue mode. 10 | 11 | by ChenYong 2019/3/26 10:00 AM 12 | chenyong@rt-thread.com 13 | -------------------------------------------------------------------------------- /rt-thread/components/net/uip/apps/webserver/httpd-fs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to the uIP web server! 5 | 6 | 7 | 8 | 9 | 17 | 18 |
19 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/filesystems/jffs2/kernel/linux/wait.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_WAIT_H__ 2 | #define __LINUX_WAIT_H__ 3 | 4 | 5 | #if defined (__GNUC__) 6 | typedef struct { } wait_queue_head_t; 7 | #elif defined (MSVC) 8 | typedef struct {int no; } wait_queue_head_t; 9 | #else 10 | #error "please use a right C compiler" 11 | #endif 12 | 13 | #define init_waitqueue_head(wait) do{} while (0) 14 | #define add_wait_queue(wait,new_wait) do{} while (0) 15 | #define remove_wait_queue(wait,old_wait) do{} while (0) 16 | #define DECLARE_WAITQUEUE(wait,current) do{} while (0) 17 | 18 | static inline void wake_up(wait_queue_head_t *erase_wait) 19 | { /* Only used for waking up threads blocks on erases. Not used in eCos */ } 20 | 21 | #endif /* __LINUX_WAIT_H__ */ 22 | -------------------------------------------------------------------------------- /rt-thread/components/dfs/include/dfs_private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | 10 | #ifndef DFS_PRIVATE_H__ 11 | #define DFS_PRIVATE_H__ 12 | 13 | #include 14 | 15 | #define DBG_TAG "DFS" 16 | #define DBG_LVL DBG_INFO 17 | #include 18 | 19 | #define NO_WORKING_DIR "system does not support working directory\n" 20 | 21 | /* extern variable */ 22 | extern const struct dfs_filesystem_ops *filesystem_operation_table[]; 23 | extern struct dfs_filesystem filesystem_table[]; 24 | extern const struct dfs_mount_tbl mount_table[]; 25 | 26 | extern char working_directory[]; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /rt-thread/components/vmm/vmm_context.h: -------------------------------------------------------------------------------- 1 | /* 2 | * COPYRIGHT (C) 2013-2014, Real-Thread Information Technology Ltd 3 | * All rights reserved 4 | * 5 | * SPDX-License-Identifier: Apache-2.0 6 | * 7 | * Change Logs: 8 | * Date Author Notes 9 | * 2013-11-04 Grissiom add comment 10 | */ 11 | 12 | #ifndef __VMM_CONTEXT_H__ 13 | #define __VMM_CONTEXT_H__ 14 | 15 | #include // for struct rt_hw_stack 16 | 17 | #include "vmm.h" 18 | 19 | void vmm_context_init(void *context_addr); 20 | #ifdef RT_VMM_USING_DOMAIN 21 | void vmm_context_init_domain(struct vmm_domain *domain); 22 | #endif 23 | void vmm_virq_pending(int irq); 24 | void vmm_verify_guest_status(struct rt_hw_stack *sp); 25 | 26 | void vmm_show_guest(void); 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /rt-thread/components/finsh/SConscript: -------------------------------------------------------------------------------- 1 | Import('rtconfig') 2 | from building import * 3 | 4 | cwd = GetCurrentDir() 5 | src = Split(''' 6 | shell.c 7 | symbol.c 8 | cmd.c 9 | ''') 10 | 11 | fsh_src = Split(''' 12 | finsh_compiler.c 13 | finsh_error.c 14 | finsh_heap.c 15 | finsh_init.c 16 | finsh_node.c 17 | finsh_ops.c 18 | finsh_parser.c 19 | finsh_var.c 20 | finsh_vm.c 21 | finsh_token.c 22 | ''') 23 | 24 | msh_src = Split(''' 25 | msh.c 26 | msh_cmd.c 27 | msh_file.c 28 | ''') 29 | 30 | CPPPATH = [cwd] 31 | 32 | if GetDepend('FINSH_USING_MSH'): 33 | src = src + msh_src 34 | if not GetDepend('FINSH_USING_MSH_ONLY'): 35 | src = src + fsh_src 36 | 37 | group = DefineGroup('finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH) 38 | 39 | Return('group') 40 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/include/drivers/cputime.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2017-12-23 Bernard first version 9 | */ 10 | 11 | #ifndef CPUTIME_H__ 12 | #define CPUTIME_H__ 13 | 14 | struct rt_clock_cputime_ops 15 | { 16 | float (*cputime_getres) (void); 17 | uint32_t (*cputime_gettime)(void); 18 | }; 19 | 20 | float clock_cpu_getres(void); 21 | uint32_t clock_cpu_gettime(void); 22 | 23 | uint32_t clock_cpu_microsecond(uint32_t cpu_tick); 24 | uint32_t clock_cpu_millisecond(uint32_t cpu_tick); 25 | 26 | int clock_cpu_setops(const struct rt_clock_cputime_ops *ops); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /libraries/Kconfig: -------------------------------------------------------------------------------- 1 | menu "External Libraries" 2 | 3 | config RT_USING_WIFI_6181_LIB 4 | bool "Using Wifi(AP6181) Library" 5 | default n 6 | 7 | config RT_USING_OTA_LIB 8 | bool "Using RT-Thrad OTA Library" 9 | default n 10 | 11 | config RT_USING_CLOUDSDK_LIB 12 | bool "Using CloudSDK(RTT Cloud) Library" 13 | default n 14 | select RT_USING_OTA_LIB 15 | select PKG_USING_CJSON 16 | select PKG_USING_EASYFLASH 17 | select PKG_USING_FAL 18 | select PKG_USING_PAHOMQTT 19 | select PKG_USING_TINYCRYPT 20 | select PKG_USING_WEBCLIENT 21 | 22 | config RT_USING_SMARTCONFIG_LIB 23 | bool "Using RT-Thrad SmartConfig Library" 24 | default n 25 | 26 | endmenu 27 | -------------------------------------------------------------------------------- /rt-thread/components/drivers/include/ipc/completion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | */ 9 | #ifndef COMPLETION_H_ 10 | #define COMPLETION_H_ 11 | 12 | #include 13 | 14 | /** 15 | * Completion 16 | */ 17 | 18 | struct rt_completion 19 | { 20 | rt_uint32_t flag; 21 | 22 | /* suspended list */ 23 | rt_list_t suspended_list; 24 | }; 25 | 26 | void rt_completion_init(struct rt_completion *completion); 27 | rt_err_t rt_completion_wait(struct rt_completion *completion, 28 | rt_int32_t timeout); 29 | void rt_completion_done(struct rt_completion *completion); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/SConscript: -------------------------------------------------------------------------------- 1 | from building import * 2 | 3 | Import('rtconfig') 4 | 5 | src = Glob('*.c') 6 | cwd = GetCurrentDir() 7 | group = [] 8 | 9 | CPPPATH = [cwd] 10 | CPPDEFINES = ['RT_USING_DLIBC'] 11 | 12 | if rtconfig.PLATFORM == 'iar': 13 | 14 | if GetDepend('RT_USING_DFS'): 15 | from distutils.version import LooseVersion 16 | from iar import IARVersion 17 | 18 | CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR'] 19 | 20 | if LooseVersion(IARVersion()) < LooseVersion("8.20.1"): 21 | CPPDEFINES = CPPDEFINES + ['_DLIB_THREAD_SUPPORT'] 22 | 23 | group = DefineGroup('dlib', src, depend = ['RT_USING_LIBC'], 24 | CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) 25 | 26 | Return('group') 27 | -------------------------------------------------------------------------------- /rt-thread/components/libc/compilers/dlib/syscall_lseek.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006-2018, RT-Thread Development Team 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Change Logs: 7 | * Date Author Notes 8 | * 2015-01-28 Bernard first version 9 | */ 10 | #include 11 | #ifdef RT_USING_DFS 12 | #include 13 | #endif 14 | #include 15 | 16 | #pragma module_name = "?__lseek" 17 | long __lseek(int handle, long offset, int whence) 18 | { 19 | if (handle == _LLIO_STDOUT || 20 | handle == _LLIO_STDERR || 21 | handle == _LLIO_STDIN) 22 | return _LLIO_ERROR; 23 | 24 | #ifdef RT_USING_DFS 25 | return lseek(handle, offset, whence); 26 | #else 27 | return _LLIO_ERROR; 28 | #endif 29 | } 30 | --------------------------------------------------------------------------------