├── app ├── sys_littlefs.h ├── sys_spiffs.h ├── main.c ├── stm32f4xx.h ├── sys_spiffs.c ├── wujique_log.c ├── wujique_log.h ├── stm32f4xx_it.c ├── sys_littlefs.c ├── wujique_stm407.c ├── eth │ ├── inc │ │ ├── eth_app.h │ │ ├── stm32f4x7_eth_bsp.h │ │ ├── tcp_echoserver.h │ │ └── netconf.h │ └── src │ │ ├── eth_app.c │ │ └── stm32f4x7_eth_bsp.c ├── system_stm32f4xx.c ├── usb │ ├── inc │ │ └── usb_conf.h │ └── src │ │ ├── usb_bsp.c │ │ └── dual_func_demo.c ├── wujique_sysconf.c ├── wujique_sysconf.h ├── stm32f4xx.h~RF175963d.TMP ├── stm32f4xx.h~RF17fe5c4.TMP └── main.h ├── mcu_dev ├── mcu_can.h ├── mcu_adc.c ├── mcu_adc.h ├── mcu_can.c ├── mcu_dac.c ├── mcu_dac.h ├── mcu_i2c.c ├── mcu_i2c.h ├── mcu_i2s.c ├── mcu_rtc.c ├── mcu_rtc.h ├── mcu_spi.c ├── mcu_spi.h ├── mcu_dcmi.c ├── mcu_sdio.c ├── mcu_timer.c ├── mcu_uart.c ├── mcu_bsp_stm32.c ├── stm324xg_eval_fsmc_sram.c ├── mcu_dcmi.h ├── mcu_timer.h ├── mcu_i2s.h ├── mcu_bsp.h └── mcu_uart.h ├── prj ├── Objects │ ├── ExtDll.iex │ ├── wujique.bin │ └── wujique.sct └── DebugConfig │ ├── Target_1_STM32F407ZETx.dbgconf │ ├── wujique_STM32F407ZETx.dbgconf │ └── wujique_STM32F407ZGTx.dbgconf ├── .gitignore ├── Utilities ├── FreeRTOS │ ├── Source │ │ ├── portable │ │ │ ├── MPLAB │ │ │ │ └── PIC18F │ │ │ │ │ └── stdio.h │ │ │ ├── Keil │ │ │ │ └── See-also-the-RVDS-directory.txt │ │ │ ├── Rowley │ │ │ │ └── ARM7 │ │ │ │ │ └── readme.txt │ │ │ ├── IAR │ │ │ │ ├── AtmelSAM7S64 │ │ │ │ │ ├── lib_AT91SAM7X128.h │ │ │ │ │ └── lib_AT91SAM7X256.h │ │ │ │ ├── ARM_CM7 │ │ │ │ │ └── ReadMe.txt │ │ │ │ └── AtmelSAM9XE │ │ │ │ │ ├── portasm.s79 │ │ │ │ │ └── ISR_Support.h │ │ │ ├── GCC │ │ │ │ ├── ARM7_AT91SAM7S │ │ │ │ │ └── lib_AT91SAM7X256.h │ │ │ │ ├── ARM_CM7 │ │ │ │ │ └── ReadMe.txt │ │ │ │ ├── PPC405_Xilinx │ │ │ │ │ └── FPU_Macros.h │ │ │ │ └── PPC440_Xilinx │ │ │ │ │ └── FPU_Macros.h │ │ │ ├── MemMang │ │ │ │ └── ReadMe.url │ │ │ ├── Softune │ │ │ │ ├── MB91460 │ │ │ │ │ └── __STD_LIB_sbrk.c │ │ │ │ └── MB96340 │ │ │ │ │ └── __STD_LIB_sbrk.c │ │ │ ├── readme.txt │ │ │ ├── RVDS │ │ │ │ └── ARM_CM7 │ │ │ │ │ └── ReadMe.txt │ │ │ ├── Renesas │ │ │ │ ├── RX600v2 │ │ │ │ │ └── port_asm.src │ │ │ │ ├── RX100 │ │ │ │ │ └── port_asm.src │ │ │ │ ├── RX200 │ │ │ │ │ └── port_asm.src │ │ │ │ └── RX600 │ │ │ │ │ └── port_asm.src │ │ │ └── CCS │ │ │ │ └── MSP430X │ │ │ │ └── data_model.h │ │ ├── include │ │ │ ├── FreeRTOSConfig.h │ │ │ └── stdint.readme │ │ └── readme.txt │ ├── links_to_doc_pages_for_the_demo_projects.url │ ├── readme.txt │ └── License │ │ └── license.txt ├── lwip-1.4.1 │ ├── src │ │ ├── core │ │ │ ├── ipv6 │ │ │ │ └── README │ │ │ └── ipv4 │ │ │ │ └── inet.c │ │ ├── FILES │ │ ├── netif │ │ │ └── FILES │ │ └── include │ │ │ └── posix │ │ │ ├── netdb.h │ │ │ └── sys │ │ │ └── socket.h │ ├── CHANGELOG │ ├── FILES │ ├── test │ │ └── unit │ │ │ ├── core │ │ │ ├── test_mem.h │ │ │ └── test_mem.c │ │ │ ├── tcp │ │ │ ├── test_tcp.h │ │ │ ├── test_tcp_oos.h │ │ │ └── tcp_helper.h │ │ │ ├── udp │ │ │ ├── test_udp.h │ │ │ └── test_udp.c │ │ │ ├── etharp │ │ │ └── test_etharp.h │ │ │ ├── lwip_unittests.c │ │ │ └── lwip_check.h │ ├── port │ │ └── STM32F4x7 │ │ │ ├── FreeRTOS │ │ │ └── ethernetif.h │ │ │ ├── Standalone │ │ │ └── ethernetif.h │ │ │ └── arch │ │ │ ├── epstruct.h │ │ │ ├── bpstruct.h │ │ │ ├── lib.h │ │ │ ├── cpu.h │ │ │ ├── perf.h │ │ │ └── init.h │ ├── doc │ │ └── FILES │ └── COPYING ├── cmd │ ├── cmd.c │ ├── env.c │ ├── cmd_sys.c │ ├── command.h │ ├── console.c │ ├── readme.txt │ ├── cmd_env.h │ ├── console.h │ └── cmd_spiffs.c ├── font │ ├── font.c │ ├── font.h │ ├── font_8x8.c │ ├── font_6x12.c │ └── font_8x16.c ├── alloc │ ├── alloc.c │ └── alloc.h ├── tslib │ ├── src │ │ ├── tslib.h │ │ ├── ts_close.c │ │ ├── ts_open.c │ │ ├── ts_attach.c │ │ ├── ts_config.c │ │ ├── ts_parse_vars.c │ │ ├── tslib-filter.h │ │ ├── tslib-private.h │ │ ├── ts_load_module.c │ │ ├── ts_fd.c │ │ ├── ts_read_raw.c │ │ └── ts_read.c │ ├── plugins │ │ ├── linear.c │ │ ├── pthres.c │ │ ├── dejitter.c │ │ ├── stm32-raw.c │ │ └── variance.c │ └── tests │ │ ├── testutils.c │ │ ├── ts_calibrate.c │ │ └── testutils.h ├── fat_fs │ ├── doc │ │ ├── css_j.css │ │ ├── img │ │ │ ├── f1.png │ │ │ ├── f2.png │ │ │ ├── f3.png │ │ │ ├── f4.png │ │ │ ├── f5.png │ │ │ ├── f6.png │ │ │ ├── f7.png │ │ │ ├── funcs.png │ │ │ ├── layers.png │ │ │ ├── rwtest.png │ │ │ ├── layers1.png │ │ │ ├── layers2.png │ │ │ ├── layers3.png │ │ │ ├── mkfatimg.zip │ │ │ ├── modules.png │ │ │ ├── rwtest2.png │ │ │ ├── rwtest3.png │ │ │ ├── app1.c │ │ │ └── app2.c │ │ ├── css_p.css │ │ ├── ja │ │ │ ├── dinit.html │ │ │ ├── size.html │ │ │ ├── error.html │ │ │ ├── fattime.html │ │ │ ├── tell.html │ │ │ ├── eof.html │ │ │ ├── chdrive.html │ │ │ ├── dstat.html │ │ │ ├── closedir.html │ │ │ ├── truncate.html │ │ │ ├── close.html │ │ │ ├── sync.html │ │ │ ├── getcwd.html │ │ │ ├── sdir.html │ │ │ ├── putc.html │ │ │ ├── puts.html │ │ │ └── findnext.html │ │ └── en │ │ │ ├── error.html │ │ │ ├── size.html │ │ │ ├── tell.html │ │ │ ├── fattime.html │ │ │ ├── eof.html │ │ │ ├── dinit.html │ │ │ ├── chdrive.html │ │ │ ├── truncate.html │ │ │ ├── closedir.html │ │ │ └── dstat.html │ └── src │ │ ├── option │ │ └── unicode.c │ │ ├── integer.h │ │ └── 00readme.txt ├── littlefs-master │ ├── lfs.c │ ├── lfs.h │ ├── lfs_util.h │ ├── .gitignore │ ├── tests │ │ ├── stats.py │ │ ├── test_format.sh │ │ ├── test_orphan.sh │ │ └── test.py │ ├── lfs_util.c │ ├── Makefile │ ├── LICENSE.md │ └── emubd │ │ └── lfs_emubd.h └── spiffs-0.3.7 │ ├── afltests │ ├── 100 │ ├── 200 │ ├── b │ └── a │ ├── src │ ├── spiffs_config.h │ └── test │ │ ├── main.c │ │ └── testsuites.c │ ├── .travis.yml │ ├── files.mk │ ├── docs │ └── TODO │ ├── LICENSE │ └── FUZZING.md ├── sw.pdf ├── develop.txt ├── function ├── list.c ├── list.h ├── emenu.c ├── emenu.h ├── maths.c ├── soundplay.c ├── soundplay.h ├── emenu_test.c └── maths.h ├── board_dev ├── dev_key.c ├── dev_key.h ├── camera_api.c ├── dev_buzzer.c ├── dev_htu21d.c ├── dev_keypad.c ├── dev_keypad.h ├── dev_rs485.c ├── dev_wm8978.c ├── dev_wm8978.h ├── dev_dacsound.c ├── dev_esp8266.c ├── dev_rf24l01.c ├── dev_spiflash.c ├── dev_spiflash.h ├── dev_tea5767.c ├── dev_touchkey.c ├── dev_xpt2046.c ├── lcd │ ├── dev_lcd.c │ ├── dev_lcd.h │ ├── dev_IL3820.c │ ├── dev_IL91874.c │ ├── dev_ILI9325.c │ ├── dev_ILI9341.c │ ├── dev_lcdbus.c │ ├── dev_lcdbus.h │ ├── dev_st7735r.c │ ├── dev_st7789.c │ ├── dev_str7565.c │ ├── dev_ILI9325.h │ ├── dev_st7789.h │ ├── dev_st7735r.h │ ├── dev_IL3820.h │ ├── dev_IL91874.h │ ├── dev_str7565.h │ └── dev_ILI9341.h ├── dev_touchscreen.c ├── stm324xg_eval_sdio_sd.c ├── dev_rf24l01.h ├── dev_htu21d.h ├── dev_esp8266.h ├── dev_xpt2046.h ├── dev_buzzer.h ├── dev_touchscreen.h ├── dev_tea5767.h ├── dev_rs485.h ├── dev_dacsound.h └── dev_touchkey.h ├── StLib ├── STM32_USB_OTG_Driver │ └── src │ │ └── usb_hcd.c ├── STM32F4x7_ETH_Driver │ ├── inc │ │ └── stm32f4x7_eth.h │ └── src │ │ └── stm32f4x7_eth.c ├── STM32_USB_HOST_Library │ ├── Release_Notes.html │ └── Core │ │ └── src │ │ └── usbh_core.c ├── STM32F4xx_StdPeriph_Driver │ ├── Release_Notes.html │ └── src │ │ └── stm32f4xx_qspi.c └── STM32_USB_Device_Library │ ├── Core │ ├── src │ │ └── usbd_core.c │ └── inc │ │ └── usbd_conf_template.h │ └── Class │ ├── cdc │ └── inc │ │ └── usbd_cdc_if_template.h │ ├── dfu │ └── inc │ │ ├── usbd_otp_if.h │ │ └── usbd_mem_if_template.h │ └── msc │ └── inc │ └── usbd_msc_core.h └── README.md /app/sys_littlefs.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/sys_spiffs.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mcu_dev/mcu_can.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /prj/Objects/ExtDll.iex: -------------------------------------------------------------------------------- 1 | [EXTDLL] 2 | Count=0 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Listings/ 2 | si/ 3 | *.d 4 | *.crf 5 | *.o -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/MPLAB/PIC18F/stdio.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sw.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/sw.pdf -------------------------------------------------------------------------------- /app/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/main.c -------------------------------------------------------------------------------- /develop.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/develop.txt -------------------------------------------------------------------------------- /app/stm32f4xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/stm32f4xx.h -------------------------------------------------------------------------------- /function/list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/function/list.c -------------------------------------------------------------------------------- /function/list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/function/list.h -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/src/core/ipv6/README: -------------------------------------------------------------------------------- 1 | IPv6 support in lwIP is very experimental. 2 | -------------------------------------------------------------------------------- /app/sys_spiffs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/sys_spiffs.c -------------------------------------------------------------------------------- /app/wujique_log.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/wujique_log.c -------------------------------------------------------------------------------- /app/wujique_log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/wujique_log.h -------------------------------------------------------------------------------- /function/emenu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/function/emenu.c -------------------------------------------------------------------------------- /function/emenu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/function/emenu.h -------------------------------------------------------------------------------- /function/maths.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/function/maths.c -------------------------------------------------------------------------------- /mcu_dev/mcu_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_adc.c -------------------------------------------------------------------------------- /mcu_dev/mcu_adc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_adc.h -------------------------------------------------------------------------------- /mcu_dev/mcu_can.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_can.c -------------------------------------------------------------------------------- /mcu_dev/mcu_dac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_dac.c -------------------------------------------------------------------------------- /mcu_dev/mcu_dac.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_dac.h -------------------------------------------------------------------------------- /mcu_dev/mcu_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_i2c.c -------------------------------------------------------------------------------- /mcu_dev/mcu_i2c.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_i2c.h -------------------------------------------------------------------------------- /mcu_dev/mcu_i2s.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_i2s.c -------------------------------------------------------------------------------- /mcu_dev/mcu_rtc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_rtc.c -------------------------------------------------------------------------------- /mcu_dev/mcu_rtc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_rtc.h -------------------------------------------------------------------------------- /mcu_dev/mcu_spi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_spi.c -------------------------------------------------------------------------------- /mcu_dev/mcu_spi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_spi.h -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/Keil/See-also-the-RVDS-directory.txt: -------------------------------------------------------------------------------- 1 | Nothing to see here. -------------------------------------------------------------------------------- /Utilities/cmd/cmd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/cmd/cmd.c -------------------------------------------------------------------------------- /Utilities/cmd/env.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/cmd/env.c -------------------------------------------------------------------------------- /app/stm32f4xx_it.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/stm32f4xx_it.c -------------------------------------------------------------------------------- /app/sys_littlefs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/sys_littlefs.c -------------------------------------------------------------------------------- /app/wujique_stm407.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/wujique_stm407.c -------------------------------------------------------------------------------- /board_dev/dev_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_key.c -------------------------------------------------------------------------------- /board_dev/dev_key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_key.h -------------------------------------------------------------------------------- /function/soundplay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/function/soundplay.c -------------------------------------------------------------------------------- /function/soundplay.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/function/soundplay.h -------------------------------------------------------------------------------- /mcu_dev/mcu_dcmi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_dcmi.c -------------------------------------------------------------------------------- /mcu_dev/mcu_sdio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_sdio.c -------------------------------------------------------------------------------- /mcu_dev/mcu_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_timer.c -------------------------------------------------------------------------------- /mcu_dev/mcu_uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_uart.c -------------------------------------------------------------------------------- /Utilities/font/font.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/font/font.c -------------------------------------------------------------------------------- /Utilities/font/font.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/font/font.h -------------------------------------------------------------------------------- /app/eth/inc/eth_app.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/eth/inc/eth_app.h -------------------------------------------------------------------------------- /app/eth/src/eth_app.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/eth/src/eth_app.c -------------------------------------------------------------------------------- /app/system_stm32f4xx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/system_stm32f4xx.c -------------------------------------------------------------------------------- /app/usb/inc/usb_conf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/usb/inc/usb_conf.h -------------------------------------------------------------------------------- /app/usb/src/usb_bsp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/usb/src/usb_bsp.c -------------------------------------------------------------------------------- /app/wujique_sysconf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/wujique_sysconf.c -------------------------------------------------------------------------------- /app/wujique_sysconf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/wujique_sysconf.h -------------------------------------------------------------------------------- /board_dev/camera_api.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/camera_api.c -------------------------------------------------------------------------------- /board_dev/dev_buzzer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_buzzer.c -------------------------------------------------------------------------------- /board_dev/dev_htu21d.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_htu21d.c -------------------------------------------------------------------------------- /board_dev/dev_keypad.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_keypad.c -------------------------------------------------------------------------------- /board_dev/dev_keypad.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_keypad.h -------------------------------------------------------------------------------- /board_dev/dev_rs485.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_rs485.c -------------------------------------------------------------------------------- /board_dev/dev_wm8978.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_wm8978.c -------------------------------------------------------------------------------- /board_dev/dev_wm8978.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_wm8978.h -------------------------------------------------------------------------------- /function/emenu_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/function/emenu_test.c -------------------------------------------------------------------------------- /Utilities/alloc/alloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/alloc/alloc.c -------------------------------------------------------------------------------- /Utilities/cmd/cmd_sys.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/cmd/cmd_sys.c -------------------------------------------------------------------------------- /Utilities/cmd/command.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/cmd/command.h -------------------------------------------------------------------------------- /Utilities/cmd/console.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/cmd/console.c -------------------------------------------------------------------------------- /Utilities/cmd/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/cmd/readme.txt -------------------------------------------------------------------------------- /Utilities/font/font_8x8.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/font/font_8x8.c -------------------------------------------------------------------------------- /board_dev/dev_dacsound.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_dacsound.c -------------------------------------------------------------------------------- /board_dev/dev_esp8266.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_esp8266.c -------------------------------------------------------------------------------- /board_dev/dev_rf24l01.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_rf24l01.c -------------------------------------------------------------------------------- /board_dev/dev_spiflash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_spiflash.c -------------------------------------------------------------------------------- /board_dev/dev_spiflash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_spiflash.h -------------------------------------------------------------------------------- /board_dev/dev_tea5767.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_tea5767.c -------------------------------------------------------------------------------- /board_dev/dev_touchkey.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_touchkey.c -------------------------------------------------------------------------------- /board_dev/dev_xpt2046.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_xpt2046.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_lcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_lcd.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_lcd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_lcd.h -------------------------------------------------------------------------------- /mcu_dev/mcu_bsp_stm32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/mcu_bsp_stm32.c -------------------------------------------------------------------------------- /prj/Objects/wujique.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/prj/Objects/wujique.bin -------------------------------------------------------------------------------- /prj/Objects/wujique.sct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/prj/Objects/wujique.sct -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/Rowley/ARM7/readme.txt: -------------------------------------------------------------------------------- 1 | The Rowley ARM7 demo uses the GCC ARM7 port files. -------------------------------------------------------------------------------- /Utilities/font/font_6x12.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/font/font_6x12.c -------------------------------------------------------------------------------- /Utilities/font/font_8x16.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/font/font_8x16.c -------------------------------------------------------------------------------- /Utilities/tslib/src/tslib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/tslib.h -------------------------------------------------------------------------------- /board_dev/dev_touchscreen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/dev_touchscreen.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_IL3820.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_IL3820.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_IL91874.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_IL91874.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_ILI9325.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_ILI9325.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_ILI9341.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_ILI9341.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_lcdbus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_lcdbus.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_lcdbus.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_lcdbus.h -------------------------------------------------------------------------------- /board_dev/lcd/dev_st7735r.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_st7735r.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_st7789.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_st7789.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_str7565.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/lcd/dev_str7565.c -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/css_j.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/css_j.css -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/lwip-1.4.1/CHANGELOG -------------------------------------------------------------------------------- /Utilities/tslib/src/ts_close.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/ts_close.c -------------------------------------------------------------------------------- /Utilities/tslib/src/ts_open.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/ts_open.c -------------------------------------------------------------------------------- /app/stm32f4xx.h~RF175963d.TMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/stm32f4xx.h~RF175963d.TMP -------------------------------------------------------------------------------- /app/stm32f4xx.h~RF17fe5c4.TMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/stm32f4xx.h~RF17fe5c4.TMP -------------------------------------------------------------------------------- /app/usb/src/dual_func_demo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/usb/src/dual_func_demo.c -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/f1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/f1.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/f2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/f2.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/f3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/f3.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/f4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/f4.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/f5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/f5.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/f6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/f6.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/f7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/f7.png -------------------------------------------------------------------------------- /Utilities/littlefs-master/lfs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/littlefs-master/lfs.c -------------------------------------------------------------------------------- /Utilities/littlefs-master/lfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/littlefs-master/lfs.h -------------------------------------------------------------------------------- /Utilities/tslib/plugins/linear.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/plugins/linear.c -------------------------------------------------------------------------------- /Utilities/tslib/plugins/pthres.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/plugins/pthres.c -------------------------------------------------------------------------------- /Utilities/tslib/src/ts_attach.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/ts_attach.c -------------------------------------------------------------------------------- /Utilities/tslib/src/ts_config.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/ts_config.c -------------------------------------------------------------------------------- /app/eth/inc/stm32f4x7_eth_bsp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/eth/inc/stm32f4x7_eth_bsp.h -------------------------------------------------------------------------------- /app/eth/src/stm32f4x7_eth_bsp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/app/eth/src/stm32f4x7_eth_bsp.c -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/funcs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/funcs.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/layers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/layers.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/rwtest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/rwtest.png -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/afltests/100: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/spiffs-0.3.7/afltests/100 -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/afltests/200: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/spiffs-0.3.7/afltests/200 -------------------------------------------------------------------------------- /Utilities/tslib/plugins/dejitter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/plugins/dejitter.c -------------------------------------------------------------------------------- /Utilities/tslib/plugins/stm32-raw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/plugins/stm32-raw.c -------------------------------------------------------------------------------- /Utilities/tslib/plugins/variance.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/plugins/variance.c -------------------------------------------------------------------------------- /Utilities/tslib/src/ts_parse_vars.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/ts_parse_vars.c -------------------------------------------------------------------------------- /Utilities/tslib/src/tslib-filter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/tslib-filter.h -------------------------------------------------------------------------------- /Utilities/tslib/src/tslib-private.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/tslib-private.h -------------------------------------------------------------------------------- /Utilities/tslib/tests/testutils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/tests/testutils.c -------------------------------------------------------------------------------- /board_dev/stm324xg_eval_sdio_sd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/board_dev/stm324xg_eval_sdio_sd.c -------------------------------------------------------------------------------- /mcu_dev/stm324xg_eval_fsmc_sram.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/mcu_dev/stm324xg_eval_fsmc_sram.c -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/layers1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/layers1.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/layers2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/layers2.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/layers3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/layers3.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/mkfatimg.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/mkfatimg.zip -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/modules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/modules.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/rwtest2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/rwtest2.png -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/rwtest3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/fat_fs/doc/img/rwtest3.png -------------------------------------------------------------------------------- /Utilities/littlefs-master/lfs_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/littlefs-master/lfs_util.h -------------------------------------------------------------------------------- /Utilities/tslib/src/ts_load_module.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/src/ts_load_module.c -------------------------------------------------------------------------------- /Utilities/tslib/tests/ts_calibrate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/tslib/tests/ts_calibrate.c -------------------------------------------------------------------------------- /StLib/STM32_USB_OTG_Driver/src/usb_hcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/StLib/STM32_USB_OTG_Driver/src/usb_hcd.c -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/src/spiffs_config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/spiffs-0.3.7/src/spiffs_config.h -------------------------------------------------------------------------------- /function/maths.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __MATHS_H__ 3 | #define __MATHS_H__ 4 | 5 | extern int log2(int value); 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /StLib/STM32F4x7_ETH_Driver/inc/stm32f4x7_eth.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/StLib/STM32F4x7_ETH_Driver/inc/stm32f4x7_eth.h -------------------------------------------------------------------------------- /StLib/STM32F4x7_ETH_Driver/src/stm32f4x7_eth.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/StLib/STM32F4x7_ETH_Driver/src/stm32f4x7_eth.c -------------------------------------------------------------------------------- /StLib/STM32_USB_HOST_Library/Release_Notes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/StLib/STM32_USB_HOST_Library/Release_Notes.html -------------------------------------------------------------------------------- /StLib/STM32_USB_HOST_Library/Core/src/usbh_core.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/StLib/STM32_USB_HOST_Library/Core/src/usbh_core.c -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/include/FreeRTOSConfig.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/FreeRTOS/Source/include/FreeRTOSConfig.h -------------------------------------------------------------------------------- /Utilities/littlefs-master/.gitignore: -------------------------------------------------------------------------------- 1 | # Compilation output 2 | *.o 3 | *.d 4 | *.a 5 | 6 | # Testing things 7 | blocks/ 8 | lfs 9 | test.c 10 | -------------------------------------------------------------------------------- /board_dev/dev_rf24l01.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_RF24L01_H__ 2 | #define __DEV_RF24L01_H__ 3 | 4 | extern s32 dev_nrf24l01_init(void); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /StLib/STM32F4xx_StdPeriph_Driver/Release_Notes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/StLib/STM32F4xx_StdPeriph_Driver/Release_Notes.html -------------------------------------------------------------------------------- /StLib/STM32_USB_Device_Library/Core/src/usbd_core.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/StLib/STM32_USB_Device_Library/Core/src/usbd_core.c -------------------------------------------------------------------------------- /board_dev/lcd/dev_ILI9325.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_ILI9325_H__ 2 | #define __DEV_ILI9325_H__ 3 | 4 | extern _lcd_drv TftLcdILI9325Drv; 5 | 6 | #endif 7 | 8 | -------------------------------------------------------------------------------- /board_dev/lcd/dev_st7789.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_ST7789_H__ 2 | #define __DEV_ST7789_H__ 3 | 4 | extern _lcd_drv TftLcdST7789_Drv; 5 | 6 | #endif 7 | 8 | -------------------------------------------------------------------------------- /StLib/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/StLib/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/css_p.css: -------------------------------------------------------------------------------- 1 | body {margin: 8px; background-color: #ffecf0; font-color: black; font-family: serif; line-height: 133%; max-width: 1024px;} 2 | -------------------------------------------------------------------------------- /board_dev/lcd/dev_st7735r.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_ST7735R_H__ 2 | #define __DEV_ST7735R_H__ 3 | 4 | extern _lcd_drv TftLcdST7735R_Drv; 5 | 6 | #endif 7 | 8 | -------------------------------------------------------------------------------- /board_dev/lcd/dev_IL3820.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_IL3820_H__ 2 | #define __DEV_IL3820_H__ 3 | 4 | 5 | extern _lcd_drv TftLcdIL3820Drv; 6 | 7 | 8 | #endif 9 | 10 | -------------------------------------------------------------------------------- /board_dev/lcd/dev_IL91874.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_IL91874_H__ 2 | #define __DEV_IL91874_H__ 3 | 4 | 5 | extern _lcd_drv TftLcdIL91874Drv; 6 | 7 | 8 | #endif 9 | 10 | -------------------------------------------------------------------------------- /Utilities/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 | -------------------------------------------------------------------------------- /Utilities/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 | -------------------------------------------------------------------------------- /Utilities/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 | -------------------------------------------------------------------------------- /Utilities/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 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/IAR/AtmelSAM7S64/lib_AT91SAM7X128.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/FreeRTOS/Source/portable/IAR/AtmelSAM7S64/lib_AT91SAM7X128.h -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/IAR/AtmelSAM7S64/lib_AT91SAM7X256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/FreeRTOS/Source/portable/IAR/AtmelSAM7S64/lib_AT91SAM7X256.h -------------------------------------------------------------------------------- /board_dev/lcd/dev_str7565.h: -------------------------------------------------------------------------------- 1 | #ifndef __OLEDFONT_H 2 | #define __OLEDFONT_H 3 | 4 | extern _lcd_drv CogLcdST7565Drv; 5 | extern _lcd_drv OledLcdSSD1615rv; 6 | 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/GCC/ARM7_AT91SAM7S/lib_AT91SAM7X256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujique/stm32f407/HEAD/Utilities/FreeRTOS/Source/portable/GCC/ARM7_AT91SAM7S/lib_AT91SAM7X256.h -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/MemMang/ReadMe.url: -------------------------------------------------------------------------------- 1 | [{000214A0-0000-0000-C000-000000000046}] 2 | Prop3=19,2 3 | [InternetShortcut] 4 | URL=http://www.freertos.org/a00111.html 5 | IDList= 6 | -------------------------------------------------------------------------------- /board_dev/dev_htu21d.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_HTU21D_H_ 2 | #define __DEV_HTU21D_H_ 3 | 4 | 5 | #define HTU21D_READ_TEMP 1 6 | #define HTU21D_READ_HUMI 2 7 | 8 | #endif 9 | 10 | 11 | -------------------------------------------------------------------------------- /Utilities/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 | -------------------------------------------------------------------------------- /Utilities/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 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/links_to_doc_pages_for_the_demo_projects.url: -------------------------------------------------------------------------------- 1 | [{000214A0-0000-0000-C000-000000000046}] 2 | Prop3=19,2 3 | [InternetShortcut] 4 | URL=http://www.freertos.org/a00090.html 5 | IDList= 6 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/afltests/b: -------------------------------------------------------------------------------- 1 | b55 2 | O4 3 | W?W?W?W?W?f4 4 | WW:W;f4 5 | C4 6 | b45 7 | d5rh 8 | O4W?R4f4C4 9 | baa 10 | d5rh 11 | OaWaRafaCa 12 | d5rh 13 | OaWaRafaCa 14 | O4W?R4C4 15 | d5rh 16 | -------------------------------------------------------------------------------- /board_dev/dev_esp8266.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_ESP8266_H__ 2 | #define __DEV_ESP8266_H__ 3 | 4 | extern s32 dev_8266_init(void); 5 | extern s32 dev_8266_open(void); 6 | extern s32 dev_8266_close(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /board_dev/lcd/dev_ILI9341.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_ILI9341_H__ 2 | #define __DEV_ILI9341_H__ 3 | 4 | 5 | extern _lcd_drv TftLcdILI9341Drv; 6 | extern _lcd_drv TftLcdILI9341_8_Drv; 7 | 8 | 9 | #endif 10 | 11 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | 3 | compiler: 4 | - gcc 5 | 6 | before_script: 7 | 8 | script: make all && make clean && make test && make build-all && make clean test FLAGS=-DSPIFFS_OBJ_META_LEN=8 9 | -------------------------------------------------------------------------------- /board_dev/dev_xpt2046.h: -------------------------------------------------------------------------------- 1 | #ifndef _DEV_XPT2046_H_ 2 | #define _DEV_XPT2046_H_ 3 | 4 | extern s32 dev_xpt2046_init(void); 5 | extern s32 dev_xpt2046_open(void); 6 | extern s32 dev_xpt2046_close(void); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /board_dev/dev_buzzer.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_BUZZER_H__ 2 | #define __DEV_BUZZER_H__ 3 | 4 | extern s32 dev_buzzer_init(void); 5 | extern s32 dev_buzzer_open(void); 6 | extern s32 dev_buzzer_close(void); 7 | 8 | #endif 9 | 10 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/afltests/a: -------------------------------------------------------------------------------- 1 | b55 2 | O4W4R4C4D4 3 | b45 4 | d5rh 5 | O4W4R4f4C4 6 | baaU 7 | d5rh 8 | OaWaRafaCa 9 | cd5rh 10 | OaWaRafaCa 11 | O4S4W4R4C4 12 | d5rh 13 | O4W4S4R4C4 14 | d5rh 15 | O4W4R4S4C4 16 | d5rh 17 | O4W4R4C4 18 | d5rh 19 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/src/test/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifndef NO_TEST 4 | #include "testrunner.h" 5 | #endif 6 | 7 | int main(int argc, char **args) { 8 | #ifndef NO_TEST 9 | run_tests(argc, args); 10 | #endif 11 | exit(EXIT_SUCCESS); 12 | } 13 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/port/STM32F4x7/FreeRTOS/ethernetif.h: -------------------------------------------------------------------------------- 1 | #ifndef __ETHERNETIF_H__ 2 | #define __ETHERNETIF_H__ 3 | 4 | 5 | #include "lwip/err.h" 6 | #include "lwip/netif.h" 7 | 8 | err_t ethernetif_init(struct netif *netif); 9 | 10 | 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/port/STM32F4x7/Standalone/ethernetif.h: -------------------------------------------------------------------------------- 1 | #ifndef __ETHERNETIF_H__ 2 | #define __ETHERNETIF_H__ 3 | 4 | 5 | #include "lwip/err.h" 6 | #include "lwip/netif.h" 7 | 8 | err_t ethernetif_init(struct netif *netif); 9 | err_t ethernetif_input(struct netif *netif); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /board_dev/dev_touchscreen.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_TOUCHSCREEN_H__ 2 | #define __DEV_TOUCHSCREEN_H__ 3 | 4 | 5 | extern s32 dev_touchscreen_init(void); 6 | extern s32 dev_touchscreen_open(void); 7 | extern s32 dev_touchscreen_close(void); 8 | extern s32 dev_touchscreen_ioctrl(void); 9 | 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /Utilities/cmd/cmd_env.h: -------------------------------------------------------------------------------- 1 | #ifndef __WJQ_CMD_ENV_H 2 | 3 | #define __WJQ_CMD_ENV_H 1 4 | 5 | 6 | unsigned char env_get_char_memory (int index); 7 | unsigned char env_get_char (int index); 8 | unsigned char *env_get_addr (int index); 9 | void env_relocate (void); 10 | int get_default_env_size(void); 11 | 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/src/test/testsuites.c: -------------------------------------------------------------------------------- 1 | /* 2 | * testsuites.c 3 | * 4 | * Created on: Jun 19, 2013 5 | * Author: petera 6 | */ 7 | 8 | #include "testrunner.h" 9 | 10 | void add_suites(void) { 11 | //ADD_SUITE(dev_tests); 12 | ADD_SUITE(check_tests); 13 | ADD_SUITE(hydrogen_tests); 14 | ADD_SUITE(bug_tests); 15 | } 16 | -------------------------------------------------------------------------------- /board_dev/dev_tea5767.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_TEA5767_H__ 2 | #define __DEV_TEA5767_H__ 3 | 4 | 5 | extern s32 dev_tea5767_test(void); 6 | extern s32 dev_tea5767_init(void); 7 | extern s32 dev_tea5767_open(void); 8 | extern s32 dev_tea5767_close(void); 9 | extern void dev_tea5767_setfre(unsigned long fre); 10 | extern s32 dev_tea5767_search(u8 mode); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Utilities/cmd/console.h: -------------------------------------------------------------------------------- 1 | #ifndef _CONSOLE_H_ 2 | #define _CONSOLE_H_ 3 | 4 | int serial_getc (void); 5 | void serial_putc (const char c); 6 | int serial_tstc(void); 7 | int getc(void); 8 | int tstc(void); 9 | void putc(const char c); 10 | int ctrlc(void); 11 | int disable_ctrlc(int disable); 12 | int had_ctrlc (void); 13 | void clear_ctrlc(void); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/files.mk: -------------------------------------------------------------------------------- 1 | ifndef spiffs 2 | $(warn defaulting path to generic spiffs module, spiffs variable not set) 3 | spiffs = ../generic/spiffs 4 | endif 5 | FLAGS += -DCONFIG_BUILD_SPIFFS 6 | INC += -I${spiffs}/src 7 | CPATH += ${spiffs}/src 8 | CFILES += spiffs_nucleus.c 9 | CFILES += spiffs_gc.c 10 | CFILES += spiffs_hydrogen.c 11 | CFILES += spiffs_cache.c 12 | CFILES += spiffs_check.c 13 | -------------------------------------------------------------------------------- /board_dev/dev_rs485.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_RS485_H__ 2 | #define __DEV_RS485_H__ 3 | 4 | 5 | extern s32 dev_rs485_init(void); 6 | extern s32 dev_rs485_open(void); 7 | extern s32 dev_rs485_close(void); 8 | extern s32 dev_rs485_read(u8 *buf, s32 len); 9 | extern s32 dev_rs485_write(u8 *buf, s32 len); 10 | extern s32 dev_rs485_ioctl(void); 11 | extern s32 dev_rs485_test(u8 mode); 12 | 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /board_dev/dev_dacsound.h: -------------------------------------------------------------------------------- 1 | #ifndef _DEV_DACSOUND_H_ 2 | #define _DEV_DACSOUND_H_ 3 | 4 | extern s32 dev_dacsound_init(void); 5 | extern s32 dev_dacsound_open(void); 6 | extern s32 dev_dacsound_dataformat(u32 Freq, u8 Standard, u8 Format); 7 | extern s32 dev_dacsound_setbuf(u16 *buffer0,u16 *buffer1,u32 len); 8 | extern s32 dev_dacsound_transfer(u8 sta); 9 | extern s32 dev_dacsound_close(void); 10 | 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Utilities/alloc/alloc.h: -------------------------------------------------------------------------------- 1 | #ifndef __ALLOC_H_ 2 | #define __ALLOC_H_ 3 | 4 | 5 | extern void wjq_free_m( void *ap ); 6 | extern void* wjq_malloc_m( unsigned nbytes ); 7 | extern void *wjq_realloc(void *mem_address, unsigned int newsize); 8 | 9 | #define wjq_free(p) {wjq_free_m(p); p = 0;} 10 | //#define wjq_malloc(n) wjq_malloc_m(n, __FUNCTION__, __LINE__); 11 | #define wjq_malloc(n) wjq_malloc_m(n); 12 | 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /Utilities/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 | -------------------------------------------------------------------------------- /Utilities/tslib/src/ts_fd.c: -------------------------------------------------------------------------------- 1 | /* 2 | * tslib/src/ts_fd.c 3 | * 4 | * Copyright (C) 2002 Russell King. 5 | * 6 | * This file is placed under the LGPL. Please see the file 7 | * COPYING for more details. 8 | * 9 | * $Id: ts_fd.c,v 1.1 2002/01/15 16:18:07 rmk Exp $ 10 | * 11 | * Return the file descriptor for a touchscreen device. 12 | */ 13 | #include "tslib-private.h" 14 | 15 | int ts_fd(struct tsdev *ts) 16 | { 17 | return ts->fd; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Utilities/tslib/tests/testutils.h: -------------------------------------------------------------------------------- 1 | #ifndef _TESTUTILS_H 2 | #define _TESTUTILS_H 3 | /* 4 | * tslib/tests/testutils.h 5 | * 6 | * Copyright (C) 2004 Michael Opdenacker 7 | * 8 | * This file is placed under the LGPL. 9 | * 10 | * $Id: testutils.h 11 | * 12 | * Misc utils for ts test programs 13 | */ 14 | 15 | void getxy(struct tsdev *ts, int *x, int *y); 16 | void ts_flush (struct tsdev *ts); 17 | 18 | #endif /* _TESTUTILS_H */ 19 | -------------------------------------------------------------------------------- /mcu_dev/mcu_dcmi.h: -------------------------------------------------------------------------------- 1 | #ifndef _MCU_DCMI_H_ 2 | #define _MCU_DCMI_H_ 3 | 4 | #define DCMI_FLAG_BUF0 0X01 5 | #define DCMI_FLAG_BUF1 0X02 6 | #define DCMI_FLAG_FRAME 0X04 7 | 8 | extern void BUS_DCMI_HW_Init(void); 9 | extern void BUS_DCMI_Config(u16 pck, u16 vs, u16 hs); 10 | extern void BUS_DCMI_DMA_Init(u32 Memory0BaseAddr, u32 Memory1BaseAddr, u32 BufferSize); 11 | extern void DCMI_PWDN_RESET_Init(void); 12 | extern void MCO1_Init(void); 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /Utilities/fat_fs/src/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 | -------------------------------------------------------------------------------- /board_dev/dev_touchkey.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_TOUCHKEY_H__ 2 | #define __DEV_TOUCHKEY_H__ 3 | 4 | 5 | #define DEV_TOUCHKEY_IDLE 0X00 6 | #define DEV_TOUCHKEY_TOUCH 0X01 7 | #define DEV_TOUCHKEY_RELEASE 0X02 8 | 9 | extern s32 dev_touchkey_task(void); 10 | extern s32 dev_touchkey_test(void); 11 | extern s32 dev_touchkey_open(void); 12 | extern s32 dev_touchkey_init(void); 13 | extern s32 dev_touchkey_close(void); 14 | extern s32 dev_touchkey_read(u8 *buf, u32 count); 15 | 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /mcu_dev/mcu_timer.h: -------------------------------------------------------------------------------- 1 | #ifndef __MCU_TIMER_H__ 2 | #define __MCU_TIMER_H__ 3 | 4 | extern s32 mcu_timer_init(void); 5 | extern void mcu_tim4_pwm_init(u32 arr,u32 psc); 6 | extern void mcu_timer_cap_init(u32 arr,u16 psc); 7 | extern u32 mcu_timer_get_cap(void); 8 | 9 | extern void mcu_tim3_init(void); 10 | extern s32 mcu_tim3_start(void); 11 | extern s32 mcu_tim3_stop(void); 12 | 13 | extern void mcu_timer7_init(void); 14 | extern s32 mcu_tim7_start(u32 Delay_10us, void (*callback)(void), u8 type); 15 | 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /Utilities/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 | -------------------------------------------------------------------------------- /Utilities/tslib/src/ts_read_raw.c: -------------------------------------------------------------------------------- 1 | /* 2 | * tslib/src/ts_read_raw.c 3 | * 4 | * Copyright (C) 2003 Chris Larson. 5 | * 6 | * This file is placed under the LGPL. Please see the file 7 | * COPYING for more details. 8 | * 9 | * Read raw pressure, x, y, and timestamp from a touchscreen device. 10 | */ 11 | #include 12 | #include 13 | #include 14 | 15 | #include "tslib-private.h" 16 | 17 | int ts_read_raw(struct tsdev *ts, struct ts_sample *samp, int nr) 18 | { 19 | int result = ts->list_raw->ops->read(ts->list_raw, samp, nr); 20 | 21 | return result; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /mcu_dev/mcu_i2s.h: -------------------------------------------------------------------------------- 1 | #ifndef _MCU_I2S_H_ 2 | #define _MCU_I2S_H_ 3 | 4 | 5 | extern void mcu_i2s_init (void); 6 | extern void mcu_i2s_config(u32 AudioFreq, u16 Standard,u16 DataFormat); 7 | extern void mcu_i2s_dma_init(u16 *buffer0,u16 *buffer1,u32 len); 8 | extern void mcu_i2s_dma_start(void); 9 | extern void mcu_i2s_dma_stop(void); 10 | extern void mcu_i2s_dma_process(void); 11 | 12 | extern void mcu_i2sext_config(u32 AudioFreq, u16 Standard,u16 DataFormat); 13 | extern void mcu_i2sext_dma_init(u16* buf0, u16 *buf1, u32 len); 14 | extern void mcu_i2sext_dma_start(void); 15 | extern void mcu_i2sext_dma_stop(void); 16 | 17 | #endif 18 | 19 | -------------------------------------------------------------------------------- /Utilities/cmd/cmd_spiffs.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include "console.h" 4 | 5 | #include 6 | 7 | int cmd_spiffs_ls( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) 8 | { 9 | sys_spiffs_ls(); 10 | return 0; 11 | } 12 | 13 | REGISTER_CMD( 14 | spiffsls, 2 , 1, cmd_spiffs_ls, 15 | "spiffsls", 16 | "\t ls spiffs file " 17 | ); 18 | 19 | int cmd_spiffs_format( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) 20 | { 21 | sys_spiffs_format(); 22 | return 0; 23 | } 24 | 25 | REGISTER_CMD( 26 | spiffsformat, 2 , 1, cmd_spiffs_format, 27 | "format spiffs", 28 | "\t ls spiffs file " 29 | ); 30 | 31 | 32 | -------------------------------------------------------------------------------- /mcu_dev/mcu_bsp.h: -------------------------------------------------------------------------------- 1 | #ifndef _MCU_BSP_H_ 2 | #define _MCU_BSP_H_ 3 | 4 | #define DEV_NAME_SIZE 16 5 | 6 | typedef enum{ 7 | MCU_PORT_NULL = 0x00, 8 | MCU_PORT_A, 9 | MCU_PORT_B, 10 | MCU_PORT_C, 11 | MCU_PORT_D, 12 | MCU_PORT_E, 13 | MCU_PORT_F, 14 | MCU_PORT_G, 15 | MCU_PORT_H, 16 | MCU_PORT_I, 17 | MCU_PORT_J, 18 | MCU_PORT_K, 19 | }MCU_PORT; 20 | 21 | extern void mcu_io_config_in(MCU_PORT port, u16 pin); 22 | extern void mcu_io_config_out(MCU_PORT port, u16 pin); 23 | extern void mcu_io_output_setbit(MCU_PORT port, u16 pin); 24 | extern void mcu_io_output_resetbit(MCU_PORT port, u16 pin); 25 | extern u8 mcu_io_input_readbit(MCU_PORT port, u16 pin); 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /mcu_dev/mcu_uart.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEV_UART_H__ 2 | #define __DEV_UART_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | typedef enum { 9 | MCU_UART_1 =0, 10 | MCU_UART_2, 11 | MCU_UART_3, 12 | MCU_UART_MAX, 13 | } 14 | McuUartNum; 15 | 16 | 17 | #define PC_PORT MCU_UART_3 18 | 19 | extern s32 mcu_uart_init(void); 20 | extern s32 mcu_uart_open (McuUartNum comport); 21 | extern s32 mcu_uart_close (McuUartNum comport); 22 | extern s32 mcu_uart_write (McuUartNum comport, u8 *buf, s32 len); 23 | extern s32 mcu_uart_read (McuUartNum comport, u8 *buf, s32 len); 24 | extern s32 mcu_uart_set_baud (McuUartNum comport, s32 baud); 25 | extern s32 mcu_uart_tcflush (McuUartNum comport); 26 | extern void mcu_uart_test(void); 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/Softune/MB91460/__STD_LIB_sbrk.c: -------------------------------------------------------------------------------- 1 | #include "FreeRTOSConfig.h" 2 | #include 3 | 4 | static long brk_siz = 0; 5 | // #if configTOTAL_HEAP_SIZE != 0 6 | typedef int _heep_t; 7 | #define ROUNDUP(s) (((s)+sizeof(_heep_t)-1)&~(sizeof(_heep_t)-1)) 8 | static _heep_t _heep[ROUNDUP(configTOTAL_HEAP_SIZE)/sizeof(_heep_t)]; 9 | #define _heep_size ROUNDUP(configTOTAL_HEAP_SIZE) 10 | /* #else 11 | extern char *_heep; 12 | extern long _heep_size; 13 | #endif 14 | */ 15 | extern char *sbrk(int size) 16 | { 17 | if (brk_siz + size > _heep_size || brk_siz + size < 0) 18 | 19 | return((char*)-1); 20 | brk_siz += size; 21 | return( (char*)_heep + brk_siz - size); 22 | } 23 | 24 | -------------------------------------------------------------------------------- /Utilities/fat_fs/src/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _FF_INTEGER 6 | #define _FF_INTEGER 7 | 8 | #ifdef _WIN32 /* FatFs development platform */ 9 | 10 | #include 11 | #include 12 | 13 | #else /* Embedded platform */ 14 | 15 | /* This type MUST be 8 bit */ 16 | typedef unsigned char BYTE; 17 | 18 | /* These types MUST be 16 bit */ 19 | typedef short SHORT; 20 | typedef unsigned short WORD; 21 | typedef unsigned short WCHAR; 22 | 23 | /* These types MUST be 16 bit or 32 bit */ 24 | typedef int INT; 25 | typedef unsigned int UINT; 26 | 27 | /* These types MUST be 32 bit */ 28 | typedef long LONG; 29 | typedef unsigned long DWORD; 30 | 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/docs/TODO: -------------------------------------------------------------------------------- 1 | * When mending lost pages, also see if they fit into length specified in object index header 2 | 3 | SPIFFS2 thoughts 4 | 5 | * Instead of exact object id:s in the object lookup tables, use a hash of span index and object id. 6 | Eg. object id xor:ed with bit-reversed span index. 7 | This should decrease number of actual pages that needs to be visited when looking thru the obj lut. 8 | 9 | * Logical number of each block. When moving stuff in a garbage collected page, the free 10 | page is assigned the same number as the garbage collected. Thus, object index pages do not have to 11 | be rewritten. 12 | 13 | * Steal one page, use as a bit parity page. When starting an fs modification operation, write one bit 14 | as zero. When ending, write another bit as zero. On mount, if number of zeroes in page is uneven, a 15 | check is automatically run. -------------------------------------------------------------------------------- /Utilities/fat_fs/src/00readme.txt: -------------------------------------------------------------------------------- 1 | FatFs Module Source Files R0.11 2 | 3 | 4 | FILES 5 | 6 | 00readme.txt This file. 7 | history.txt Revision history. 8 | ffconf.h Configuration file for FatFs module. 9 | ff.h Common include file for FatFs and application module. 10 | ff.c FatFs module. 11 | diskio.h Common include file for FatFs and disk I/O module. 12 | diskio.c An example of glue function to attach existing disk I/O module to FatFs. 13 | integer.h Integer type definitions for FatFs. 14 | option Optional external functions. 15 | 16 | 17 | Low level disk I/O module is not included in this archive because the FatFs 18 | module is only a generic file system layer and not depend on any specific 19 | storage device. You have to provide a low level disk I/O module that written 20 | to control the target storage device. 21 | 22 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/readme.txt: -------------------------------------------------------------------------------- 1 | Each real time kernel port consists of three files that contain the core kernel 2 | components and are common to every port, and one or more files that are 3 | specific to a particular microcontroller and or compiler. 4 | 5 | + The FreeRTOS/Source directory contains the three files that are common to 6 | every port - list.c, queue.c and tasks.c. The kernel is contained within these 7 | three files. croutine.c implements the optional co-routine functionality - which 8 | is normally only used on very memory limited systems. 9 | 10 | + The FreeRTOS/Source/Portable directory contains the files that are specific to 11 | a particular microcontroller and or compiler. 12 | 13 | + The FreeRTOS/Source/include directory contains the real time kernel header 14 | files. 15 | 16 | See the readme file in the FreeRTOS/Source/Portable directory for more 17 | information. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ### This code repository stops updating and moves to the PetiteDrv code repository 3 | ### 本代码仓库停止更新,转移到PetiteDrv代码仓库 4 | 5 | --- 6 | # stm32f407 7 | some device driver base on stm32f407 8 | 在STM32F407的基础上做一些驱动设计: 9 | 个人认为比较有参考意义的是:SPI,SPI FLASH, LCD。 10 | 整个代码按照一个实际项目的模式层层递进: 11 | 本仓库是一个完整的代码。 12 | 13 | # 分支 14 | - master 15 | master 分支是从无到有,经历了驱动编写的过程。 16 | 17 | - sw_arch 18 | sw_arch是软件架构,在master分支完成了所有驱动功能验证的基础上,对spi, I2C,LCD,LCD接口, 19 | SPI FLASH等关键设备进行架构优化。并尽可能的对所有设备进行设备&驱动分离的方式设计。 20 | 21 | # BASE 22 | 硬件:屋脊雀F407(STM32F407ZG) 23 | 环境:MDK 24 | 25 | # 教程 26 | 每个驱动开发都有配套源码和教程: 27 | https://pan.baidu.com/s/12o0Vh4Tv4z_O8qh49JwLjg 28 | 29 | 官网:www.wujique.com 30 | github: https://github.com/wujique/stm32f407 31 | 淘宝:https://shop316863092.taobao.com/?spm=2013.1.1000126.2.3a8f4e6eb3rBdf 32 | 技术支持邮箱:code@wujique.com、github@wujique.com 33 | 资料下载:https://pan.baidu.com/s/12o0Vh4Tv4z_O8qh49JwLjg 34 | QQ群:767214262 35 | -------------------------------------------------------------------------------- /Utilities/littlefs-master/tests/stats.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import struct 4 | import sys 5 | import time 6 | import os 7 | import re 8 | 9 | def main(): 10 | with open('blocks/config') as file: 11 | s = struct.unpack('list->ops->read(ts->list, samp, nr); 29 | 30 | return result; 31 | 32 | } 33 | 34 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/include/stdint.readme: -------------------------------------------------------------------------------- 1 | 2 | #ifndef FREERTOS_STDINT 3 | #define FREERTOS_STDINT 4 | 5 | /******************************************************************************* 6 | * THIS IS NOT A FULL stdint.h IMPLEMENTATION - It only contains the definitions 7 | * necessary to build the FreeRTOS code. It is provided to allow FreeRTOS to be 8 | * built using compilers that do not provide their own stdint.h definition. 9 | * 10 | * To use this file: 11 | * 12 | * 1) Copy this file into the directory that contains your FreeRTOSConfig.h 13 | * header file, as that directory will already be in the compilers include 14 | * path. 15 | * 16 | * 2) Rename the copied file stdint.h. 17 | * 18 | */ 19 | 20 | typedef signed char int8_t; 21 | typedef unsigned char uint8_t; 22 | typedef short int16_t; 23 | typedef unsigned short uint16_t; 24 | typedef long int32_t; 25 | typedef unsigned long uint32_t; 26 | 27 | #endif /* FREERTOS_STDINT */ 28 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/readme.txt: -------------------------------------------------------------------------------- 1 | Directories: 2 | 3 | + The FreeRTOS/Source directory contains the FreeRTOS source code, and contains 4 | its own readme file. 5 | 6 | + The FreeRTOS/Demo directory contains a demo application for every official 7 | FreeRTOS port, and contains its own readme file. 8 | 9 | + See http://www.freertos.org/a00017.html for full details of the directory 10 | structure and information on locating the files you require. 11 | 12 | The easiest way to use FreeRTOS is to start with one of the pre-configured demo 13 | application projects (found in the FreeRTOS/Demo directory). That way you will 14 | have the correct FreeRTOS source files included, and the correct include paths 15 | configured. Once a demo application is building and executing you can remove 16 | the demo application file, and start to add in your own application source 17 | files. 18 | 19 | See also - 20 | http://www.freertos.org/FreeRTOS-quick-start-guide.html 21 | http://www.freertos.org/FAQHelp.html 22 | -------------------------------------------------------------------------------- /Utilities/littlefs-master/lfs_util.c: -------------------------------------------------------------------------------- 1 | /* 2 | * lfs util functions 3 | * 4 | * Copyright (c) 2017, Arm Limited. All rights reserved. 5 | * SPDX-License-Identifier: BSD-3-Clause 6 | */ 7 | #include "lfs_util.h" 8 | 9 | // Only compile if user does not provide custom config 10 | #ifndef LFS_CONFIG 11 | 12 | 13 | // Software CRC implementation with small lookup table 14 | void lfs_crc(uint32_t *restrict crc, const void *buffer, size_t size) { 15 | static const uint32_t rtable[16] = { 16 | 0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac, 17 | 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c, 18 | 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 19 | 0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c, 20 | }; 21 | 22 | const uint8_t *data = buffer; 23 | 24 | for (size_t i = 0; i < size; i++) { 25 | *crc = (*crc >> 4) ^ rtable[(*crc ^ (data[i] >> 0)) & 0xf]; 26 | *crc = (*crc >> 4) ^ rtable[(*crc ^ (data[i] >> 4)) & 0xf]; 27 | } 28 | } 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/test/unit/lwip_unittests.c: -------------------------------------------------------------------------------- 1 | #include "lwip_check.h" 2 | 3 | #include "udp/test_udp.h" 4 | #include "tcp/test_tcp.h" 5 | #include "tcp/test_tcp_oos.h" 6 | #include "core/test_mem.h" 7 | #include "etharp/test_etharp.h" 8 | 9 | #include "lwip/init.h" 10 | 11 | 12 | int main() 13 | { 14 | int number_failed; 15 | SRunner *sr; 16 | size_t i; 17 | suite_getter_fn* suites[] = { 18 | udp_suite, 19 | tcp_suite, 20 | tcp_oos_suite, 21 | mem_suite, 22 | etharp_suite 23 | }; 24 | size_t num = sizeof(suites)/sizeof(void*); 25 | LWIP_ASSERT("No suites defined", num > 0); 26 | 27 | lwip_init(); 28 | 29 | sr = srunner_create((suites[0])()); 30 | for(i = 1; i < num; i++) { 31 | srunner_add_suite(sr, ((suite_getter_fn*)suites[i])()); 32 | } 33 | 34 | #ifdef LWIP_UNITTESTS_NOFORK 35 | srunner_set_fork_status(sr, CK_NOFORK); 36 | #endif 37 | #ifdef LWIP_UNITTESTS_FORK 38 | srunner_set_fork_status(sr, CK_FORK); 39 | #endif 40 | 41 | srunner_run_all(sr, CK_NORMAL); 42 | number_failed = srunner_ntests_failed(sr); 43 | srunner_free(sr); 44 | return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; 45 | } 46 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/GCC/ARM_CM7/ReadMe.txt: -------------------------------------------------------------------------------- 1 | There are two options for running FreeRTOS on ARM Cortex-M7 microcontrollers. 2 | The best option depends on the revision of the ARM Cortex-M7 core in use. The 3 | revision is specified by an 'r' number, and a 'p' number, so will look something 4 | like 'r0p1'. Check the documentation for the microcontroller in use to find the 5 | revision of the Cortex-M7 core used in that microcontroller. If in doubt, use 6 | the FreeRTOS port provided specifically for r0p1 revisions, as that can be used 7 | with all core revisions. 8 | 9 | The first option is to use the ARM Cortex-M4F port, and the second option is to 10 | use the Cortex-M7 r0p1 port - the latter containing a minor errata workaround. 11 | 12 | If the revision of the ARM Cortex-M7 core is not r0p1 then either option can be 13 | used, but it is recommended to use the FreeRTOS ARM Cortex-M4F port located in 14 | the /FreeRTOS/Source/portable/GCC/ARM_CM4F directory. 15 | 16 | If the revision of the ARM Cortex-M7 core is r0p1 then use the FreeRTOS ARM 17 | Cortex-M7 r0p1 port located in the /FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 18 | directory. -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/IAR/ARM_CM7/ReadMe.txt: -------------------------------------------------------------------------------- 1 | There are two options for running FreeRTOS on ARM Cortex-M7 microcontrollers. 2 | The best option depends on the revision of the ARM Cortex-M7 core in use. The 3 | revision is specified by an 'r' number, and a 'p' number, so will look something 4 | like 'r0p1'. Check the documentation for the microcontroller in use to find the 5 | revision of the Cortex-M7 core used in that microcontroller. If in doubt, use 6 | the FreeRTOS port provided specifically for r0p1 revisions, as that can be used 7 | with all core revisions. 8 | 9 | The first option is to use the ARM Cortex-M4F port, and the second option is to 10 | use the Cortex-M7 r0p1 port - the latter containing a minor errata workaround. 11 | 12 | If the revision of the ARM Cortex-M7 core is not r0p1 then either option can be 13 | used, but it is recommended to use the FreeRTOS ARM Cortex-M4F port located in 14 | the /FreeRTOS/Source/portable/IAR/ARM_CM4F directory. 15 | 16 | If the revision of the ARM Cortex-M7 core is r0p1 then use the FreeRTOS ARM 17 | Cortex-M7 r0p1 port located in the /FreeRTOS/Source/portable/IAR/ARM_CM7/r0p1 18 | directory. -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/RVDS/ARM_CM7/ReadMe.txt: -------------------------------------------------------------------------------- 1 | There are two options for running FreeRTOS on ARM Cortex-M7 microcontrollers. 2 | The best option depends on the revision of the ARM Cortex-M7 core in use. The 3 | revision is specified by an 'r' number, and a 'p' number, so will look something 4 | like 'r0p1'. Check the documentation for the microcontroller in use to find the 5 | revision of the Cortex-M7 core used in that microcontroller. If in doubt, use 6 | the FreeRTOS port provided specifically for r0p1 revisions, as that can be used 7 | with all core revisions. 8 | 9 | The first option is to use the ARM Cortex-M4F port, and the second option is to 10 | use the Cortex-M7 r0p1 port - the latter containing a minor errata workaround. 11 | 12 | If the revision of the ARM Cortex-M7 core is not r0p1 then either option can be 13 | used, but it is recommended to use the FreeRTOS ARM Cortex-M4F port located in 14 | the /FreeRTOS/Source/portable/RVDS/ARM_CM4F directory. 15 | 16 | If the revision of the ARM Cortex-M7 core is r0p1 then use the FreeRTOS ARM 17 | Cortex-M7 r0p1 port located in the /FreeRTOS/Source/portable/RVDS/ARM_CM7/r0p1 18 | directory. -------------------------------------------------------------------------------- /Utilities/littlefs-master/tests/test_format.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -eu 3 | 4 | echo "=== Formatting tests ===" 5 | rm -rf blocks 6 | 7 | echo "--- Basic formatting ---" 8 | tests/test.py << TEST 9 | lfs_format(&lfs, &cfg) => 0; 10 | TEST 11 | 12 | echo "--- Invalid superblocks ---" 13 | ln -f -s /dev/zero blocks/0 14 | ln -f -s /dev/zero blocks/1 15 | tests/test.py << TEST 16 | lfs_format(&lfs, &cfg) => LFS_ERR_CORRUPT; 17 | TEST 18 | rm blocks/0 blocks/1 19 | 20 | echo "--- Basic mounting ---" 21 | tests/test.py << TEST 22 | lfs_format(&lfs, &cfg) => 0; 23 | TEST 24 | tests/test.py << TEST 25 | lfs_mount(&lfs, &cfg) => 0; 26 | lfs_unmount(&lfs) => 0; 27 | TEST 28 | 29 | echo "--- Invalid mount ---" 30 | tests/test.py << TEST 31 | lfs_format(&lfs, &cfg) => 0; 32 | TEST 33 | rm blocks/0 blocks/1 34 | tests/test.py << TEST 35 | lfs_mount(&lfs, &cfg) => LFS_ERR_CORRUPT; 36 | TEST 37 | 38 | echo "--- Valid corrupt mount ---" 39 | tests/test.py << TEST 40 | lfs_format(&lfs, &cfg) => 0; 41 | TEST 42 | rm blocks/0 43 | tests/test.py << TEST 44 | lfs_mount(&lfs, &cfg) => 0; 45 | lfs_unmount(&lfs) => 0; 46 | TEST 47 | 48 | echo "--- Results ---" 49 | tests/stats.py 50 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013-2017 Peter Andersson (pelleplutt1976gmail.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Utilities/littlefs-master/tests/test_orphan.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -eu 3 | 4 | echo "=== Orphan tests ===" 5 | rm -rf blocks 6 | tests/test.py << TEST 7 | lfs_format(&lfs, &cfg) => 0; 8 | TEST 9 | 10 | echo "--- Orphan test ---" 11 | tests/test.py << TEST 12 | lfs_mount(&lfs, &cfg) => 0; 13 | lfs_mkdir(&lfs, "parent") => 0; 14 | lfs_mkdir(&lfs, "parent/orphan") => 0; 15 | lfs_mkdir(&lfs, "parent/child") => 0; 16 | lfs_remove(&lfs, "parent/orphan") => 0; 17 | TEST 18 | # remove most recent file, this should be the update to the previous 19 | # linked-list entry and should orphan the child 20 | rm -v blocks/8 21 | tests/test.py << TEST 22 | lfs_mount(&lfs, &cfg) => 0; 23 | lfs_stat(&lfs, "parent/orphan", &info) => LFS_ERR_NOENT; 24 | unsigned before = 0; 25 | lfs_traverse(&lfs, test_count, &before) => 0; 26 | test_log("before", before); 27 | 28 | lfs_deorphan(&lfs) => 0; 29 | 30 | lfs_stat(&lfs, "parent/orphan", &info) => LFS_ERR_NOENT; 31 | unsigned after = 0; 32 | lfs_traverse(&lfs, test_count, &after) => 0; 33 | test_log("after", after); 34 | 35 | int diff = before - after; 36 | diff => 2; 37 | lfs_unmount(&lfs) => 0; 38 | TEST 39 | 40 | echo "--- Results ---" 41 | tests/stats.py 42 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/test/unit/lwip_check.h: -------------------------------------------------------------------------------- 1 | #ifndef __LWIP_CHECK_H__ 2 | #define __LWIP_CHECK_H__ 3 | 4 | /* Common header file for lwIP unit tests using the check framework */ 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | #define FAIL_RET() do { fail(); return; } while(0) 11 | #define EXPECT(x) fail_unless(x) 12 | #define EXPECT_RET(x) do { fail_unless(x); if(!(x)) { return; }} while(0) 13 | #define EXPECT_RETX(x, y) do { fail_unless(x); if(!(x)) { return y; }} while(0) 14 | #define EXPECT_RETNULL(x) EXPECT_RETX(x, NULL) 15 | 16 | /** typedef for a function returning a test suite */ 17 | typedef Suite* (suite_getter_fn)(void); 18 | 19 | /** Create a test suite */ 20 | static Suite* create_suite(const char* name, TFun *tests, size_t num_tests, SFun setup, SFun teardown) 21 | { 22 | size_t i; 23 | Suite *s = suite_create(name); 24 | 25 | for(i = 0; i < num_tests; i++) { 26 | /* Core test case */ 27 | TCase *tc_core = tcase_create("Core"); 28 | if ((setup != NULL) || (teardown != NULL)) { 29 | tcase_add_checked_fixture(tc_core, setup, teardown); 30 | } 31 | tcase_add_test(tc_core, tests[i]); 32 | suite_add_tcase(s, tc_core); 33 | } 34 | return s; 35 | } 36 | 37 | #endif /* __LWIP_CHECK_H__ */ 38 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/app1.c: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------/ 2 | / Open or create a file in append mode 3 | /------------------------------------------------------------*/ 4 | 5 | FRESULT open_append ( 6 | FIL* fp, /* [OUT] File object to create */ 7 | const char* path /* [IN] File name to be opened */ 8 | ) 9 | { 10 | FRESULT fr; 11 | 12 | /* Opens an existing file. If not exist, creates a new file. */ 13 | fr = f_open(fp, path, FA_WRITE | FA_OPEN_ALWAYS); 14 | if (fr == FR_OK) { 15 | /* Seek to end of the file to append data */ 16 | fr = f_lseek(fp, f_size(fp)); 17 | if (fr != FR_OK) 18 | f_close(fp); 19 | } 20 | return fr; 21 | } 22 | 23 | 24 | int main (void) 25 | { 26 | FRESULT fr; 27 | FATFS fs; 28 | FIL fil; 29 | 30 | /* Open or create a log file and ready to append */ 31 | f_mount(&fs, "", 0); 32 | fr = open_append(&fil, "logfile.txt"); 33 | if (fr != FR_OK) return 1; 34 | 35 | /* Append a line */ 36 | f_printf(&fil, "%02u/%02u/%u, %2u:%02u\n", Mday, Mon, Year, Hour, Min); 37 | 38 | /* Close the file */ 39 | f_close(&fil); 40 | 41 | return 0; 42 | } 43 | 44 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/Softune/MB96340/__STD_LIB_sbrk.c: -------------------------------------------------------------------------------- 1 | /* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */ 2 | /* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */ 3 | /* ELIGIBILITY FOR ANY PURPOSES. */ 4 | /* (C) Fujitsu Microelectronics Europe GmbH */ 5 | /*--------------------------------------------------------------------------- 6 | __STD_LIB_sbrk.C 7 | - Used by heap_3.c for memory accocation and deletion. 8 | 9 | /*---------------------------------------------------------------------------*/ 10 | 11 | #include "FreeRTOSConfig.h" 12 | #include 13 | 14 | static long brk_siz = 0; 15 | typedef int _heep_t; 16 | #define ROUNDUP(s) (((s)+sizeof(_heep_t)-1)&~(sizeof(_heep_t)-1)) 17 | static _heep_t _heep[ROUNDUP(configTOTAL_HEAP_SIZE)/sizeof(_heep_t)]; 18 | #define _heep_size ROUNDUP(configTOTAL_HEAP_SIZE) 19 | 20 | extern char *sbrk(int size) 21 | { 22 | if (brk_siz + size > _heep_size || brk_siz + size < 0) 23 | 24 | return((char*)-1); 25 | brk_siz += size; 26 | return( (char*)_heep + brk_siz - size); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/IAR/AtmelSAM9XE/portasm.s79: -------------------------------------------------------------------------------- 1 | RSEG ICODE:CODE 2 | CODE32 3 | 4 | EXTERN vTaskSwitchContext 5 | 6 | PUBLIC vPortYieldProcessor 7 | PUBLIC vPortStartFirstTask 8 | 9 | #include "ISR_Support.h" 10 | 11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 12 | ; Starting the first task is just a matter of restoring the context that 13 | ; was created by pxPortInitialiseStack(). 14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 15 | vPortStartFirstTask: 16 | portRESTORE_CONTEXT 17 | 18 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 19 | ; Manual context switch function. This is the SWI hander. 20 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 21 | vPortYieldProcessor: 22 | ADD LR, LR, #4 ; Add 4 to the LR to make the LR appear exactly 23 | ; as if the context was saved during and IRQ 24 | ; handler. 25 | 26 | portSAVE_CONTEXT ; Save the context of the current task... 27 | LDR R0, =vTaskSwitchContext ; before selecting the next task to execute. 28 | mov lr, pc 29 | BX R0 30 | portRESTORE_CONTEXT ; Restore the context of the selected task. 31 | 32 | 33 | END 34 | 35 | -------------------------------------------------------------------------------- /Utilities/littlefs-master/Makefile: -------------------------------------------------------------------------------- 1 | TARGET = lfs.a 2 | ifneq ($(wildcard test.c main.c),) 3 | override TARGET = lfs 4 | endif 5 | 6 | CC ?= gcc 7 | AR ?= ar 8 | SIZE ?= size 9 | 10 | SRC += $(wildcard *.c emubd/*.c) 11 | OBJ := $(SRC:.c=.o) 12 | DEP := $(SRC:.c=.d) 13 | ASM := $(SRC:.c=.s) 14 | 15 | TEST := $(patsubst tests/%.sh,%,$(wildcard tests/test_*)) 16 | 17 | SHELL = /bin/bash -o pipefail 18 | 19 | ifdef DEBUG 20 | override CFLAGS += -O0 -g3 21 | else 22 | override CFLAGS += -Os 23 | endif 24 | ifdef WORD 25 | override CFLAGS += -m$(WORD) 26 | endif 27 | override CFLAGS += -I. 28 | override CFLAGS += -std=c99 -Wall -pedantic -Wshadow -Wunused-parameter 29 | 30 | 31 | all: $(TARGET) 32 | 33 | asm: $(ASM) 34 | 35 | size: $(OBJ) 36 | $(SIZE) -t $^ 37 | 38 | .SUFFIXES: 39 | test: test_format test_dirs test_files test_seek test_truncate \ 40 | test_interspersed test_alloc test_paths test_orphan test_move test_corrupt 41 | @rm test.c 42 | test_%: tests/test_%.sh 43 | 44 | ifdef QUIET 45 | @./$< | sed -n '/^[-=]/p' 46 | else 47 | ./$< 48 | endif 49 | 50 | -include $(DEP) 51 | 52 | lfs: $(OBJ) 53 | $(CC) $(CFLAGS) $^ $(LFLAGS) -o $@ 54 | 55 | %.a: $(OBJ) 56 | $(AR) rcs $@ $^ 57 | 58 | %.o: %.c 59 | $(CC) -c -MMD $(CFLAGS) $< -o $@ 60 | 61 | %.s: %.c 62 | $(CC) -S $(CFLAGS) $< -o $@ 63 | 64 | clean: 65 | rm -f $(TARGET) 66 | rm -f $(OBJ) 67 | rm -f $(DEP) 68 | rm -f $(ASM) 69 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/src/netif/FILES: -------------------------------------------------------------------------------- 1 | This directory contains generic network interface device drivers that 2 | do not contain any hardware or architecture specific code. The files 3 | are: 4 | 5 | etharp.c 6 | Implements the ARP (Address Resolution Protocol) over 7 | Ethernet. The code in this file should be used together with 8 | Ethernet device drivers. Note that this module has been 9 | largely made Ethernet independent so you should be able to 10 | adapt this for other link layers (such as Firewire). 11 | 12 | ethernetif.c 13 | An example of how an Ethernet device driver could look. This 14 | file can be used as a "skeleton" for developing new Ethernet 15 | network device drivers. It uses the etharp.c ARP code. 16 | 17 | loopif.c 18 | A "loopback" network interface driver. It requires configuration 19 | through the define LWIP_LOOPIF_MULTITHREADING (see opt.h). 20 | 21 | slipif.c 22 | A generic implementation of the SLIP (Serial Line IP) 23 | protocol. It requires a sio (serial I/O) module to work. 24 | 25 | ppp/ Point-to-Point Protocol stack 26 | The PPP stack has been ported from ucip (http://ucip.sourceforge.net). 27 | It matches quite well to pppd 2.3.1 (http://ppp.samba.org), although 28 | compared to that, it has some modifications for embedded systems and 29 | the source code has been reordered a bit. -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/test/unit/udp/test_udp.c: -------------------------------------------------------------------------------- 1 | #include "test_udp.h" 2 | 3 | #include "lwip/udp.h" 4 | #include "lwip/stats.h" 5 | 6 | #if !LWIP_STATS || !UDP_STATS || !MEMP_STATS 7 | #error "This tests needs UDP- and MEMP-statistics enabled" 8 | #endif 9 | 10 | /* Helper functions */ 11 | static void 12 | udp_remove_all(void) 13 | { 14 | struct udp_pcb *pcb = udp_pcbs; 15 | struct udp_pcb *pcb2; 16 | 17 | while(pcb != NULL) { 18 | pcb2 = pcb; 19 | pcb = pcb->next; 20 | udp_remove(pcb2); 21 | } 22 | fail_unless(lwip_stats.memp[MEMP_UDP_PCB].used == 0); 23 | } 24 | 25 | /* Setups/teardown functions */ 26 | 27 | static void 28 | udp_setup(void) 29 | { 30 | udp_remove_all(); 31 | } 32 | 33 | static void 34 | udp_teardown(void) 35 | { 36 | udp_remove_all(); 37 | } 38 | 39 | 40 | /* Test functions */ 41 | 42 | START_TEST(test_udp_new_remove) 43 | { 44 | struct udp_pcb* pcb; 45 | LWIP_UNUSED_ARG(_i); 46 | 47 | fail_unless(lwip_stats.memp[MEMP_UDP_PCB].used == 0); 48 | 49 | pcb = udp_new(); 50 | fail_unless(pcb != NULL); 51 | if (pcb != NULL) { 52 | fail_unless(lwip_stats.memp[MEMP_UDP_PCB].used == 1); 53 | udp_remove(pcb); 54 | fail_unless(lwip_stats.memp[MEMP_UDP_PCB].used == 0); 55 | } 56 | } 57 | END_TEST 58 | 59 | 60 | /** Create the suite including all tests for this module */ 61 | Suite * 62 | udp_suite(void) 63 | { 64 | TFun tests[] = { 65 | test_udp_new_remove, 66 | }; 67 | return create_suite("UDP", tests, sizeof(tests)/sizeof(TFun), udp_setup, udp_teardown); 68 | } 69 | -------------------------------------------------------------------------------- /Utilities/littlefs-master/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017, Arm Limited. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without modification, 4 | are permitted provided that the following conditions are met: 5 | 6 | - Redistributions of source code must retain the above copyright notice, this 7 | list of conditions and the following disclaimer. 8 | - Redistributions in binary form must reproduce the above copyright notice, this 9 | list of conditions and the following disclaimer in the documentation and/or 10 | other materials provided with the distribution. 11 | - Neither the name of ARM nor the names of its contributors may be used to 12 | endorse or promote products derived from this software without specific prior 13 | written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 19 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 22 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/dinit.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - disk_initialize 10 | 11 | 12 | 13 | 14 |
15 |

disk_initialize

16 |

ストレージ デバイスを初期化します。

17 |
18 | DSTATUS disk_initialize (
19 |   BYTE pdrv      /* [IN] 物理ドライブ番号 */
20 | );
21 | 
22 |
23 | 24 |
25 |

引数

26 |
27 |
pdrv
28 |
対象のデバイスを識別する物理ドライブ番号(0-9)が指定されます。
29 |
30 |
31 | 32 | 33 |
34 |

戻り値

35 |

この関数は戻り値としてディスク ステータスを返します。ディスク ステータスの詳細に関してはdisk_status関数を参照してください。

36 |
37 | 38 |
39 |

解説

40 |

ストレージ デバイスを初期化し、データの読み書きなど全ての動作が可能な状態にします。関数が成功すると、戻り値のSTA_NOINITフラグがクリアされます。

41 |

この関数はFatFsの管理下にあり、自動マウント動作により必要に応じて呼び出されます。アプリケーションからはこの関数を呼び出してはなりません。さもないと、FATボリュームが破壊される可能性があります。再初期化が必要なときは、f_mount関数を使用してください。

42 |
43 | 44 |

戻る

45 | 46 | 47 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/size.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_size 10 | 11 | 12 | 13 | 14 |
15 |

f_size

16 |

ファイルのサイズを取得します。

17 |
18 | DWORD f_size (
19 |   FIL* fp   /* [IN] ファイル オブジェクト */
20 | );
21 | 
22 |
23 | 24 | 25 |
26 |

引数

27 |
28 |
fp
29 |
ファイル オブジェクト構造体へのポインタを指定します。
30 |
31 |
32 | 33 | 34 |
35 |

戻り値

36 |

バイト単位のファイル サイズが返ります。

37 |
38 | 39 | 40 |
41 |

解説

42 |

この関数は、現リビジョンではマクロとして実装されています。

43 |
44 | #define f_size(fp) ((fp)->fsize)
45 | 
46 |
47 | 48 | 49 |
50 |

対応情報

51 |

常に使用可能。

52 |
53 | 54 | 55 |
56 |

参照

57 |

f_open, f_lseek, FIL

58 |
59 | 60 |

戻る

61 | 62 | 63 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_error 10 | 11 | 12 | 13 | 14 |
15 |

f_error

16 |

エラー発生の有無を調べます。

17 |
18 | int f_error (
19 |   FIL* fp   /* [IN] ファイル オブジェクト */
20 | );
21 | 
22 |
23 | 24 | 25 |
26 |

引数

27 |
28 |
fp
29 |
ファイル オブジェクト構造体へのポインタを指定します。
30 |
31 |
32 | 33 | 34 |
35 |

戻り値

36 |

そのファイルにおいてハード エラーによって処理が中断されている場合は、0以外の値を返します。それ以外の時は0を返します。

37 |
38 | 39 | 40 |
41 |

解説

42 |

この関数は、現リビジョンではマクロとして実装されています。

43 |
44 | #define f_error(fp) ((fp)->err)
45 | 
46 |
47 | 48 | 49 |
50 |

対応情報

51 |

常に使用可能。

52 |
53 | 54 | 55 |
56 |

参照

57 |

f_open, FIL

58 |
59 | 60 |

戻る

61 | 62 | 63 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/test/unit/core/test_mem.c: -------------------------------------------------------------------------------- 1 | #include "test_mem.h" 2 | 3 | #include "lwip/mem.h" 4 | #include "lwip/stats.h" 5 | 6 | #if !LWIP_STATS || !MEM_STATS 7 | #error "This tests needs MEM-statistics enabled" 8 | #endif 9 | #if LWIP_DNS 10 | #error "This test needs DNS turned off (as it mallocs on init)" 11 | #endif 12 | 13 | /* Setups/teardown functions */ 14 | 15 | static void 16 | mem_setup(void) 17 | { 18 | } 19 | 20 | static void 21 | mem_teardown(void) 22 | { 23 | } 24 | 25 | 26 | /* Test functions */ 27 | 28 | /** Call mem_malloc, mem_free and mem_trim and check stats */ 29 | START_TEST(test_mem_one) 30 | { 31 | #define SIZE1 16 32 | #define SIZE1_2 12 33 | #define SIZE2 16 34 | void *p1, *p2; 35 | mem_size_t s1, s2; 36 | LWIP_UNUSED_ARG(_i); 37 | 38 | #if LWIP_DNS 39 | fail("This test needs DNS turned off (as it mallocs on init)"); 40 | #endif 41 | 42 | fail_unless(lwip_stats.mem.used == 0); 43 | 44 | p1 = mem_malloc(SIZE1); 45 | fail_unless(p1 != NULL); 46 | fail_unless(lwip_stats.mem.used >= SIZE1); 47 | s1 = lwip_stats.mem.used; 48 | 49 | p2 = mem_malloc(SIZE2); 50 | fail_unless(p2 != NULL); 51 | fail_unless(lwip_stats.mem.used >= SIZE2 + s1); 52 | s2 = lwip_stats.mem.used; 53 | 54 | mem_trim(p1, SIZE1_2); 55 | 56 | mem_free(p2); 57 | fail_unless(lwip_stats.mem.used <= s2 - SIZE2); 58 | 59 | mem_free(p1); 60 | fail_unless(lwip_stats.mem.used == 0); 61 | } 62 | END_TEST 63 | 64 | 65 | /** Create the suite including all tests for this module */ 66 | Suite * 67 | mem_suite(void) 68 | { 69 | TFun tests[] = { 70 | test_mem_one 71 | }; 72 | return create_suite("MEM", tests, sizeof(tests)/sizeof(TFun), mem_setup, mem_teardown); 73 | } 74 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/fattime.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - get_fattime 10 | 11 | 12 | 13 | 14 |
15 |

get_fattime

16 |

現在時刻を取得します。

17 |
18 | DWORD get_fattime (void);
19 | 
20 |
21 | 22 | 23 |
24 |

戻り値

25 |

現在のローカル タイムをDWORD値にパックして返します。ビット フィールドは次に示すようになります。

26 |
27 |
bit31:25
28 |
1980年を起点とした年を 0..127 でセット。
29 |
bit24:21
30 |
月を 1..12 の値でセット。
31 |
bit20:16
32 |
日を 1..31 の値でセット。
33 |
bit15:11
34 |
時を 0..23 の値でセット。
35 |
bit10:5
36 |
分を 0..59 の値でセット。
37 |
bit4:0
38 |
秒/2を 0..29 の値でセット
39 |
40 |
41 | 42 | 43 |
44 |

解説

45 |

RTCをサポートしないシステムでも、ダミーとして何らかの日付として有効な値を返すべきです。0などを返した場合、そのファイルのタイムスタンプは無効になります。

46 |
47 | 48 | 49 |
50 |

対応情報

51 |

リード オンリー構成(_FS_READONLY == 1)または、非RTCサポート構成(_RTC_NOUSE == 1)ではこの関数は必要とされません。

52 |
53 | 54 | 55 |

戻る

56 | 57 | 58 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/tell.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_tell 10 | 11 | 12 | 13 | 14 |
15 |

f_tell

16 |

現在のリード/ライト ポインタを取得します。

17 |
18 | DWORD f_tell (
19 |   FIL* fp   /* [IN] ファイル オブジェクト */
20 | );
21 | 
22 |
23 | 24 | 25 |
26 |

引数

27 |
28 |
fp
29 |
ファイル オブジェクト構造体へのポインタを指定します。
30 |
31 |
32 | 33 | 34 |
35 |

戻り値

36 |

現在のリード/ライト ポインタ(ファイル先頭からのバイト単位のオフセット)が返ります。

37 |
38 | 39 | 40 |
41 |

解説

42 |

f_tell関数は、現リビジョンではマクロとして実装されています。

43 |
44 | #define f_tell(fp) ((fp)->fptr)
45 | 
46 |
47 | 48 | 49 |
50 |

対応情報

51 |

常に使用可能。

52 |
53 | 54 | 55 |
56 |

参照

57 |

f_open, f_lseek, FIL

58 |
59 | 60 |

戻る

61 | 62 | 63 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/src/include/posix/netdb.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * This file is a posix wrapper for lwip/netdb.h. 4 | */ 5 | 6 | /* 7 | * Redistribution and use in source and binary forms, with or without modification, 8 | * are permitted provided that the following conditions are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright notice, 11 | * this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 3. The name of the author may not be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 27 | * OF SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | */ 32 | 33 | #include "lwip/netdb.h" 34 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/src/include/posix/sys/socket.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * This file is a posix wrapper for lwip/sockets.h. 4 | */ 5 | 6 | /* 7 | * Redistribution and use in source and binary forms, with or without modification, 8 | * are permitted provided that the following conditions are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright notice, 11 | * this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 3. The name of the author may not be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 27 | * OF SUCH DAMAGE. 28 | * 29 | * This file is part of the lwIP TCP/IP stack. 30 | * 31 | */ 32 | 33 | #include "lwip/sockets.h" 34 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/eof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_eof 10 | 11 | 12 | 13 | 14 |
15 |

f_eof

16 |

リード/ライト ポインタがファイル終端に達しているかどうか調べます。.

17 |
18 | int f_eof (
19 |   FIL* fp   /* [IN] ファイル オブジェクト */
20 | );
21 | 
22 |
23 | 24 | 25 |
26 |

引数

27 |
28 |
fp
29 |
ファイル オブジェクト構造体へのポインタを指定します。
30 |
31 |
32 | 33 | 34 |
35 |

戻り値

36 |

リード/ライト ポインタがファイル終端にあり読み出すデータがない場合は、0以外の値を返します。それ以外のときは0を返します。

37 |
38 | 39 | 40 |
41 |

解説

42 |

この関数は、現リビジョンではマクロとして実装されています。

43 |
44 | #define f_eof(fp) ((int)((fp)->fptr == (fp)->fsize))
45 | 
46 |
47 | 48 | 49 |
50 |

対応情報

51 |

常に使用可能。

52 |
53 | 54 | 55 |
56 |

参照

57 |

f_open, f_lseek, FIL

58 |
59 | 60 |

戻る

61 | 62 | 63 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/COPYING: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, 2002 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | 34 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/chdrive.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_chdrive 10 | 11 | 12 | 13 | 14 |
15 |

f_chdrive

16 |

カレント ドライブを変更します。

17 |
18 | FRESULT f_chdrive (
19 |   const TCHAR* path  /* [IN] 対象ドライブを指定します */
20 | );
21 | 
22 |
23 | 24 |
25 |

引数

26 |
27 |
path
28 |
カレント ドライブに設定する論理ドライブ番号を指定するパス名を指定します。
29 |
30 |
31 | 32 | 33 |
34 |

戻り値

35 |

36 | FR_OK, 37 | FR_INVALID_DRIVE 38 |

39 |
40 | 41 | 42 |
43 |

解説

44 |

カレント ドライブを変更します。システム起動時の初期値はドライブ0です。この設定はFatFsモジュールの静的変数に記録されるため、全てのタスクに対して影響を与えます。

45 |
46 | 47 | 48 |
49 |

対応情報

50 |

_FS_RPATH == 1で、且つ_VOLUMES > 1のときに使用可能となります。

51 |
52 | 53 | 54 |
55 |

参照

56 |

f_chdir

57 |
58 | 59 |

Return

60 | 61 | 62 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/dstat.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - disk_status 10 | 11 | 12 | 13 | 14 |
15 |

disk_status

16 |

ストレージ デバイスの状態を取得します。

17 |
18 | DSTATUS disk_status (
19 |   BYTE pdrv           /* [IN] 物理ドライブ番号 */
20 | );
21 | 
22 |
23 | 24 |
25 |

引数

26 |
27 |
pdrv
28 |
対象のデバイスを識別する物理ドライブ番号(0-9)が指定されます。物理ドライブが1台のときは、常に0になります。
29 |
30 |
31 | 32 | 33 |
34 |

戻り値

35 |

現在のストレージ デバイスの状態を次のフラグの組み合わせ値で返します。

36 |
37 |
STA_NOINIT
38 |
デバイスが初期化されていないことを示すフラグ。システム リセットやメディアの取り外し等でセットされ、disk_initialize関数の正常終了でクリア、失敗でセットされます。メディア交換は非同期に発生するイベントなので、過去にメディア交換があった場合もこのフラグに反映させる必要があります。FatFsモジュールは、このフラグを参照してマウント動作が必要かどうかを判断します。
39 |
STA_NODISK
40 |
メディアが存在しないことを示すフラグ。メディアが取り外されている間はセットされ、セットされている間はクリアされます。固定ディスクでは常にクリアします。なお、このフラグはFatFsモジュールでは参照されません。
41 |
STA_PROTECT
42 |
メディアがライト プロテクトされていることを示すフラグ。ライト プロテクト機能をサポートしないときは、常にクリアします。リード オンリ構成では参照されません。
43 |
44 |
45 | 46 |

戻る

47 | 48 | 49 | -------------------------------------------------------------------------------- /Utilities/spiffs-0.3.7/FUZZING.md: -------------------------------------------------------------------------------- 1 | # Fuzzing SPIFFS 2 | 3 | The SPIFFS test suite includes a test program designed for fuzzing with 4 | [AFL](http://lcamtuf.coredump.cx/afl/). This automatically exercises the 5 | SPIFFS API and verifies that the file system does not crash or interact incorrectly 6 | with the flash chip. 7 | 8 | There are two steps to fuzzing. The first is to build the test suite with 9 | the AFL version of gcc. The CC variable should point to your copy of afl-gcc. 10 | 11 | ``` 12 | make clean test CC=/usr/local/bin/afl-gcc 13 | ``` 14 | 15 | There is a new test `afl_test` that reads from stdin a list of commands 16 | and arguments. These are interpreted and executed on the API. The `afltests` 17 | directory contains a number of test cases that can be fed to the `afl_test` test. 18 | 19 | 20 | The second is to run this test suite under afl as follows (where findings is 21 | the output directory): 22 | 23 | ``` 24 | afl-fuzz -i afltests -o findings ./build/linux_spiffs_test -f afl_test 25 | ``` 26 | 27 | This run will take hours (or days) and will (hopefully) not find any crashes. 28 | If a crash (or hang) is found, then the input file that caused the crash is 29 | saved. This allows the specific test case to be debugged. 30 | 31 | ## Reducing the size of the file 32 | 33 | AFL comes with `afl-tmin` which can reduce the size of the test input file to 34 | make it easier to debug. 35 | 36 | ``` 37 | afl-tmin -i findings/crashes/ -o smalltest -- build/linux_spiffs_test -f afl_test 38 | ``` 39 | 40 | This will write a short version of the testcase file to `smalltest`. This can then be 41 | fed into the test program for debugging: 42 | 43 | ``` 44 | build/linux_spiffs_test -f afl_test < smalltest 45 | ``` 46 | 47 | This should still crash, but allows it to be run under a debugger. 48 | -------------------------------------------------------------------------------- /Utilities/littlefs-master/tests/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import re 4 | import sys 5 | import subprocess 6 | import os 7 | 8 | def generate(test): 9 | with open("tests/template.fmt") as file: 10 | template = file.read() 11 | 12 | lines = [] 13 | for line in re.split('(?<=[;{}])\n', test.read()): 14 | match = re.match('(?: *\n)*( *)(.*)=>(.*);', line, re.DOTALL | re.MULTILINE) 15 | if match: 16 | tab, test, expect = match.groups() 17 | lines.append(tab+'test = {test};'.format(test=test.strip())) 18 | lines.append(tab+'test_assert("{name}", test, {expect});'.format( 19 | name = re.match('\w*', test.strip()).group(), 20 | expect = expect.strip())) 21 | else: 22 | lines.append(line) 23 | 24 | # Create test file 25 | with open('test.c', 'w') as file: 26 | file.write(template.format(tests='\n'.join(lines))) 27 | 28 | # Remove build artifacts to force rebuild 29 | try: 30 | os.remove('test.o') 31 | os.remove('lfs') 32 | except OSError: 33 | pass 34 | 35 | def compile(): 36 | subprocess.check_call([ 37 | os.environ.get('MAKE', 'make'), 38 | '--no-print-directory', '-s']) 39 | 40 | def execute(): 41 | if 'EXEC' in os.environ: 42 | subprocess.check_call([os.environ['EXEC'], "./lfs"]) 43 | else: 44 | subprocess.check_call(["./lfs"]) 45 | 46 | def main(test=None): 47 | if test and not test.startswith('-'): 48 | with open(test) as file: 49 | generate(file) 50 | else: 51 | generate(sys.stdin) 52 | 53 | compile() 54 | 55 | if test == '-s': 56 | sys.exit(1) 57 | 58 | execute() 59 | 60 | if __name__ == "__main__": 61 | main(*sys.argv[1:]) 62 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_error 10 | 11 | 12 | 13 | 14 |
15 |

f_error

16 |

The f_error tests for an error on a file.

17 |
18 | int f_error (
19 |   FIL* fp   /* [IN] File object */
20 | );
21 | 
22 |
23 | 24 | 25 |
26 |

Parameters

27 |
28 |
fp
29 |
Pointer to the open file object structure.
30 |
31 |
32 | 33 | 34 |
35 |

Return Values

36 |

Returns a non-zero value if a hard error has occured; otherwise it returns a zero.

37 |
38 | 39 | 40 |
41 |

Description

42 |

In this revision, this function is implemented as a macro.

43 |
44 | #define f_error(fp) ((fp)->flag)
45 | 
46 |
47 | 48 | 49 |
50 |

QuickInfo

51 |

Always available.

52 |
53 | 54 | 55 |
56 |

See Also

57 |

f_open, FIL

58 |
59 | 60 |

Return

61 | 62 | 63 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/size.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_size 10 | 11 | 12 | 13 | 14 |
15 |

f_size

16 |

The f_size function gets the size of a file.

17 |
18 | DWORD f_size (
19 |   FIL* fp   /* [IN] File object */
20 | );
21 | 
22 |
23 | 24 | 25 |
26 |

Parameters

27 |
28 |
fp
29 |
Pointer to the open file object structure.
30 |
31 |
32 | 33 | 34 |
35 |

Return Values

36 |

Returns the size of the file in unit of byte.

37 |
38 | 39 | 40 |
41 |

Description

42 |

In this revision, the f_size function is implemented as a macro.

43 |
44 | #define f_size(fp) ((fp)->fsize)
45 | 
46 |
47 | 48 | 49 |
50 |

QuickInfo

51 |

Always available.

52 |
53 | 54 | 55 |
56 |

See Also

57 |

f_open, f_lseek, FIL

58 |
59 | 60 |

Return

61 | 62 | 63 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/Renesas/RX600v2/port_asm.src: -------------------------------------------------------------------------------- 1 | ;/* 2 | ; * FreeRTOS Kernel V10.0.0 3 | ; * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 | ; * 5 | ; * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | ; * this software and associated documentation files (the "Software"), to deal in 7 | ; * the Software without restriction, including without limitation the rights to 8 | ; * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | ; * the Software, and to permit persons to whom the Software is furnished to do so, 10 | ; * subject to the following conditions: 11 | ; * 12 | ; * The above copyright notice and this permission notice shall be included in all 13 | ; * copies or substantial portions of the Software. If you wish to use our Amazon 14 | ; * FreeRTOS name, please do so in a fair use way that does not cause confusion. 15 | ; * 16 | ; * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | ; * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | ; * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | ; * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | ; * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | ; * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | ; * 23 | ; * http://www.FreeRTOS.org 24 | ; * http://aws.amazon.com/freertos 25 | ; * 26 | ; * 1 tab == 4 spaces! 27 | ; */ 28 | .GLB _vSoftwareInterruptISR 29 | .GLB _vSoftwareInterruptEntry 30 | 31 | .SECTION P,CODE 32 | 33 | _vSoftwareInterruptEntry: 34 | 35 | BRA _vSoftwareInterruptISR 36 | 37 | .RVECTOR 27, _vSoftwareInterruptEntry 38 | 39 | .END 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/tell.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_tell 10 | 11 | 12 | 13 | 14 |
15 |

f_tell

16 |

The f_tell function gets the current read/write pointer of a file.

17 |
18 | DWORD f_tell (
19 |   FIL* fp   /* [IN] File object */
20 | );
21 | 
22 |
23 | 24 | 25 |
26 |

Parameters

27 |
28 |
fp
29 |
Pointer to the open file object structure.
30 |
31 |
32 | 33 | 34 |
35 |

Return Values

36 |

Returns current read/write pointer of the file.

37 |
38 | 39 | 40 |
41 |

Description

42 |

In this revision, the f_tell function is implemented as a macro.

43 |
44 | #define f_tell(fp) ((fp)->fptr)
45 | 
46 |
47 | 48 | 49 |
50 |

QuickInfo

51 |

Always available.

52 |
53 | 54 | 55 |
56 |

See Also

57 |

f_open, f_lseek, FIL

58 |
59 | 60 |

Return

61 | 62 | 63 | -------------------------------------------------------------------------------- /app/eth/inc/tcp_echoserver.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | */ 30 | #ifndef __TCP_ECHOSERVER_H__ 31 | #define __TCP_ECHOSERVER_H__ 32 | 33 | void tcp_echoserver_init(void); 34 | 35 | #endif /* __TCP_ECHOSERVER */ 36 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/port/STM32F4x7/arch/epstruct.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | #if defined(__IAR_SYSTEMS_ICC__) 34 | #pragma pack() 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/Renesas/RX100/port_asm.src: -------------------------------------------------------------------------------- 1 | ;/* 2 | ; * FreeRTOS Kernel V10.0.0 3 | ; * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 | ; * 5 | ; * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | ; * this software and associated documentation files (the "Software"), to deal in 7 | ; * the Software without restriction, including without limitation the rights to 8 | ; * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | ; * the Software, and to permit persons to whom the Software is furnished to do so, 10 | ; * subject to the following conditions: 11 | ; * 12 | ; * The above copyright notice and this permission notice shall be included in all 13 | ; * copies or substantial portions of the Software. If you wish to use our Amazon 14 | ; * FreeRTOS name, please do so in a fair use way that does not cause confusion. 15 | ; * 16 | ; * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | ; * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | ; * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | ; * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | ; * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | ; * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | ; * 23 | ; * http://www.FreeRTOS.org 24 | ; * http://aws.amazon.com/freertos 25 | ; * 26 | ; * 1 tab == 4 spaces! 27 | ; */ 28 | .GLB _vSoftwareInterruptISR 29 | .GLB _vSoftwareInterruptEntry 30 | 31 | .SECTION P,CODE 32 | 33 | _vSoftwareInterruptEntry: 34 | 35 | BRA _vSoftwareInterruptISR 36 | 37 | .RVECTOR 27, _vSoftwareInterruptEntry 38 | 39 | .END 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/Renesas/RX200/port_asm.src: -------------------------------------------------------------------------------- 1 | ;/* 2 | ; * FreeRTOS Kernel V10.0.0 3 | ; * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 | ; * 5 | ; * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | ; * this software and associated documentation files (the "Software"), to deal in 7 | ; * the Software without restriction, including without limitation the rights to 8 | ; * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | ; * the Software, and to permit persons to whom the Software is furnished to do so, 10 | ; * subject to the following conditions: 11 | ; * 12 | ; * The above copyright notice and this permission notice shall be included in all 13 | ; * copies or substantial portions of the Software. If you wish to use our Amazon 14 | ; * FreeRTOS name, please do so in a fair use way that does not cause confusion. 15 | ; * 16 | ; * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | ; * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | ; * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | ; * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | ; * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | ; * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | ; * 23 | ; * http://www.FreeRTOS.org 24 | ; * http://aws.amazon.com/freertos 25 | ; * 26 | ; * 1 tab == 4 spaces! 27 | ; */ 28 | .GLB _vSoftwareInterruptISR 29 | .GLB _vSoftwareInterruptEntry 30 | 31 | .SECTION P,CODE 32 | 33 | _vSoftwareInterruptEntry: 34 | 35 | BRA _vSoftwareInterruptISR 36 | 37 | .RVECTOR 27, _vSoftwareInterruptEntry 38 | 39 | .END 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/Renesas/RX600/port_asm.src: -------------------------------------------------------------------------------- 1 | ;/* 2 | ; * FreeRTOS Kernel V10.0.0 3 | ; * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 | ; * 5 | ; * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | ; * this software and associated documentation files (the "Software"), to deal in 7 | ; * the Software without restriction, including without limitation the rights to 8 | ; * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | ; * the Software, and to permit persons to whom the Software is furnished to do so, 10 | ; * subject to the following conditions: 11 | ; * 12 | ; * The above copyright notice and this permission notice shall be included in all 13 | ; * copies or substantial portions of the Software. If you wish to use our Amazon 14 | ; * FreeRTOS name, please do so in a fair use way that does not cause confusion. 15 | ; * 16 | ; * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | ; * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | ; * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | ; * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | ; * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | ; * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | ; * 23 | ; * http://www.FreeRTOS.org 24 | ; * http://aws.amazon.com/freertos 25 | ; * 26 | ; * 1 tab == 4 spaces! 27 | ; */ 28 | .GLB _vSoftwareInterruptISR 29 | .GLB _vSoftwareInterruptEntry 30 | 31 | .SECTION P,CODE 32 | 33 | _vSoftwareInterruptEntry: 34 | 35 | BRA _vSoftwareInterruptISR 36 | 37 | .RVECTOR 27, _vSoftwareInterruptEntry 38 | 39 | .END 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/port/STM32F4x7/arch/bpstruct.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | 33 | #if defined(__IAR_SYSTEMS_ICC__) 34 | #pragma pack(1) 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/port/STM32F4x7/arch/lib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __LIB_H__ 33 | #define __LIB_H__ 34 | 35 | #include 36 | 37 | 38 | #endif /* __LIB_H__ */ 39 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/port/STM32F4x7/arch/cpu.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __CPU_H__ 33 | #define __CPU_H__ 34 | 35 | #define BYTE_ORDER LITTLE_ENDIAN 36 | 37 | #endif /* __CPU_H__ */ 38 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/fattime.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - get_fattime 10 | 11 | 12 | 13 | 14 |
15 |

get_fattime

16 |

The get_fattime function gets current time.

17 |
18 | DWORD get_fattime (void);
19 | 
20 |
21 | 22 | 23 |
24 |

Return Value

25 |

Currnet local time is returned with packed into a DWORD value. The bit field is as follows:

26 |
27 |
bit31:25
28 |
Year origin from the 1980 (0..127)
29 |
bit24:21
30 |
Month (1..12)
31 |
bit20:16
32 |
Day of the month(1..31)
33 |
bit15:11
34 |
Hour (0..23)
35 |
bit10:5
36 |
Minute (0..59)
37 |
bit4:0
38 |
Second / 2 (0..29)
39 |
40 |
41 | 42 | 43 |
44 |

Description

45 |

The get_fattime function shall return any valid time even if the system does not support a real time clock. If a zero is returned, the file will not have a valid timestamp.

46 |
47 | 48 | 49 |
50 |

QuickInfo

51 |

This function is not needed when _FS_READONLY == 1 or _FS_NORTC == 1.

52 |
53 | 54 | 55 |

Return

56 | 57 | 58 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/img/app2.c: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------/ 2 | / Remove all contents of a directory 3 | / This function works regardless of _FS_RPATH. 4 | /------------------------------------------------------------*/ 5 | 6 | 7 | FRESULT empty_directory ( 8 | char* path /* Working buffer filled with start directory */ 9 | ) 10 | { 11 | UINT i, j; 12 | FRESULT fr; 13 | DIR dir; 14 | FILINFO fno; 15 | 16 | #if _USE_LFN 17 | fno.lfname = 0; /* Disable LFN output */ 18 | #endif 19 | fr = f_opendir(&dir, path); 20 | if (fr == FR_OK) { 21 | for (i = 0; path[i]; i++) ; 22 | path[i++] = '/'; 23 | for (;;) { 24 | fr = f_readdir(&dir, &fno); 25 | if (fr != FR_OK || !fno.fname[0]) break; 26 | if (_FS_RPATH && fno.fname[0] == '.') continue; 27 | j = 0; 28 | do 29 | path[i+j] = fno.fname[j]; 30 | while (fno.fname[j++]); 31 | if (fno.fattrib & AM_DIR) { 32 | fr = empty_directory(path); 33 | if (fr != FR_OK) break; 34 | } 35 | fr = f_unlink(path); 36 | if (fr != FR_OK) break; 37 | } 38 | path[--i] = '\0'; 39 | closedir(&dir); 40 | } 41 | 42 | return fr; 43 | } 44 | 45 | 46 | 47 | int main (void) 48 | { 49 | FRESULT fr; 50 | FATFS fs; 51 | char buff[64]; /* Working buffer */ 52 | 53 | 54 | 55 | f_mount(&fs, "", 0); 56 | 57 | strcpy(buff, "/"); /* Directory to be emptied */ 58 | fr = empty_directory(buff); 59 | 60 | if (fr) { 61 | printf("Function failed. (%u)\n", fr); 62 | return fr; 63 | } else { 64 | printf("All contents in the %s are successfully removed.\n", buff); 65 | return 0; 66 | } 67 | } 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/eof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_eof 10 | 11 | 12 | 13 | 14 |
15 |

f_eof

16 |

The f_eof function tests for end-of-file on a file.

17 |
18 | int f_eof (
19 |   FIL* fp   /* [IN] File object */
20 | );
21 | 
22 |
23 | 24 | 25 |
26 |

Parameters

27 |
28 |
fp
29 |
Pointer to the open file object structure.
30 |
31 |
32 | 33 | 34 |
35 |

Return Values

36 |

The f_eof function returns a non-zero value if the read/write pointer has reached end of the file; otherwise it returns a zero.

37 |
38 | 39 | 40 |
41 |

Description

42 |

In this revision, this function is implemented as a macro.

43 |
44 | #define f_eof(fp) ((int)((fp)->fptr == (fp)->fsize))
45 | 
46 |
47 | 48 | 49 |
50 |

QuickInfo

51 |

Always available.

52 |
53 | 54 | 55 |
56 |

See Also

57 |

f_open, f_lseek, FIL

58 |
59 | 60 |

Return

61 | 62 | 63 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/closedir.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_closedir 10 | 11 | 12 | 13 | 14 |
15 |

f_closedir

16 |

ディレクトリを閉じます。

17 |
18 | FRESULT f_closedir (
19 |   DIR* dp     /* [IN] ディレクトリ オブジェクトへのポインタ */
20 | );
21 | 
22 |
23 | 24 |
25 |

引数

26 |
27 |
dp
28 |
閉じようとするディレクトリのディレクトリ オブジェクト構造体へのポインタを指定します。
29 |
30 |
31 | 32 | 33 |
34 |

戻り値

35 |

36 | FR_OK, 37 | FR_INT_ERR, 38 | FR_INVALID_OBJECT, 39 | FR_TIMEOUT 40 |

41 |
42 | 43 | 44 |
45 |

解説

46 |

ディレクトリを閉じます。関数が正常終了すると、そのディレクトリ オブジェクトは無効になり、そのメモリも解放できます。

47 |

_FS_LOCKオプションが選択されていない場合は、この処理を行わずにディレクトリ オブジェクトを破棄することもできます。しかし、これは将来の互換性の点で推奨はされません。

48 |
49 | 50 | 51 |
52 |

対応情報

53 |

_FS_MINIMIZE <= 1のとき使用可能になります。

54 |
55 | 56 | 57 |
58 |

参照

59 | f_opendir, f_readdir, DIR 60 |
61 | 62 |

戻る

63 | 64 | 65 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/truncate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_truncate 10 | 11 | 12 | 13 | 14 |
15 |

f_truncate

16 |

ファイル長を切り詰めます。

17 |
18 | FRESULT f_truncate (
19 |   FIL* fp     /* [IN] ファイル オブジェクトへのポインタ */
20 | );
21 | 
22 |
23 | 24 |
25 |

引数

26 |
27 |
fp
28 |
切り詰め対象ファイルのファイル オブジェクトへのポインタ
29 |
30 |
31 | 32 | 33 |
34 |

戻り値

35 |

36 | FR_OK, 37 | FR_DISK_ERR, 38 | FR_INT_ERR, 39 | FR_DENIED, 40 | FR_INVALID_OBJECT, 41 | FR_TIMEOUT 42 |

43 |
44 | 45 | 46 |
47 |

解説

48 |

ファイルの長さが現在のリード/ライト ポインタに切り詰められます。リード/ライト ポインタが既にファイルの終端を指しているときは、この関数は何の効果も持ちません。

49 |
50 | 51 | 52 |
53 |

対応情報

54 |

_FS_READONLY == 0で、且つ_FS_MINIMIZE == 0のときに使用可能です。

55 |
56 | 57 | 58 |
59 |

参照

60 |

f_open, f_lseek, FIL

61 |
62 | 63 | 64 |

Return

65 | 66 | 67 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/port/STM32F4x7/arch/perf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __PERF_H__ 33 | #define __PERF_H__ 34 | 35 | #define PERF_START /* null definition */ 36 | #define PERF_STOP(x) /* null definition */ 37 | 38 | #endif /* __PERF_H__ */ 39 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/src/core/ipv4/inet.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * Functions common to all TCP/IPv4 modules, such as the byte order functions. 4 | * 5 | */ 6 | 7 | /* 8 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. 9 | * All rights reserved. 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met: 13 | * 14 | * 1. Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, 17 | * this list of conditions and the following disclaimer in the documentation 18 | * and/or other materials provided with the distribution. 19 | * 3. The name of the author may not be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 25 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 27 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 30 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 31 | * OF SUCH DAMAGE. 32 | * 33 | * This file is part of the lwIP TCP/IP stack. 34 | * 35 | * Author: Adam Dunkels 36 | * 37 | */ 38 | 39 | #include "lwip/opt.h" 40 | 41 | #include "lwip/inet.h" 42 | 43 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/dinit.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - disk_initialize 10 | 11 | 12 | 13 | 14 |
15 |

disk_initialize

16 |

The disk_initialize function initializes the storage device.

17 |
18 | DSTATUS disk_initialize (
19 |   BYTE pdrv           /* [IN] Physical drive number */
20 | );
21 | 
22 |
23 | 24 |
25 |

Parameter

26 |
27 |
pdrv
28 |
Physical drive number to identify the target device. Always zero at single drive system.
29 |
30 |
31 | 32 | 33 |
34 |

Return Values

35 |

This function returns the current drive status flags as the result. For details of the drive status, refer to the disk_status function.

36 |
37 | 38 |
39 |

Description

40 |

This function initializes the storage device and put it ready to generic read/write. When the function succeeded, STA_NOINIT flag in the return value is cleared.

41 |

This function is under control of FatFs module. Application program MUST NOT call this function, or FAT structure on the volume can be broken. To re-initialize the file system, use f_mount function instead.

42 |
43 | 44 |

Return

45 | 46 | 47 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/test/unit/tcp/tcp_helper.h: -------------------------------------------------------------------------------- 1 | #ifndef __TCP_HELPER_H__ 2 | #define __TCP_HELPER_H__ 3 | 4 | #include "../lwip_check.h" 5 | #include "lwip/arch.h" 6 | #include "lwip/tcp.h" 7 | #include "lwip/netif.h" 8 | 9 | /* counters used for test_tcp_counters_* callback functions */ 10 | struct test_tcp_counters { 11 | u32_t recv_calls; 12 | u32_t recved_bytes; 13 | u32_t recv_calls_after_close; 14 | u32_t recved_bytes_after_close; 15 | u32_t close_calls; 16 | u32_t err_calls; 17 | err_t last_err; 18 | char* expected_data; 19 | u32_t expected_data_len; 20 | }; 21 | 22 | struct test_tcp_txcounters { 23 | u32_t num_tx_calls; 24 | u32_t num_tx_bytes; 25 | u8_t copy_tx_packets; 26 | struct pbuf *tx_packets; 27 | }; 28 | 29 | /* Helper functions */ 30 | void tcp_remove_all(void); 31 | 32 | struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip, 33 | u16_t src_port, u16_t dst_port, void* data, size_t data_len, 34 | u32_t seqno, u32_t ackno, u8_t headerflags); 35 | struct pbuf* tcp_create_rx_segment(struct tcp_pcb* pcb, void* data, size_t data_len, 36 | u32_t seqno_offset, u32_t ackno_offset, u8_t headerflags); 37 | struct pbuf* tcp_create_rx_segment_wnd(struct tcp_pcb* pcb, void* data, size_t data_len, 38 | u32_t seqno_offset, u32_t ackno_offset, u8_t headerflags, u16_t wnd); 39 | void tcp_set_state(struct tcp_pcb* pcb, enum tcp_state state, ip_addr_t* local_ip, 40 | ip_addr_t* remote_ip, u16_t local_port, u16_t remote_port); 41 | void test_tcp_counters_err(void* arg, err_t err); 42 | err_t test_tcp_counters_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err); 43 | 44 | struct tcp_pcb* test_tcp_new_counters_pcb(struct test_tcp_counters* counters); 45 | 46 | void test_tcp_input(struct pbuf *p, struct netif *inp); 47 | 48 | void test_tcp_init_netif(struct netif *netif, struct test_tcp_txcounters *txcounters, 49 | ip_addr_t *ip_addr, ip_addr_t *netmask); 50 | 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /Utilities/lwip-1.4.1/port/STM32F4x7/arch/init.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without modification, 6 | * are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, 9 | * this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 3. The name of the author may not be used to endorse or promote products 14 | * derived from this software without specific prior written permission. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25 | * OF SUCH DAMAGE. 26 | * 27 | * This file is part of the lwIP TCP/IP stack. 28 | * 29 | * Author: Adam Dunkels 30 | * 31 | */ 32 | #ifndef __ARCH_INIT_H__ 33 | #define __ARCH_INIT_H__ 34 | 35 | #define TCPIP_INIT_DONE(arg) tcpip_init_done(arg) 36 | 37 | void tcpip_init_done(void *); 38 | int wait_for_tcpip_init(void); 39 | 40 | #endif /* __ARCH_INIT_H__ */ 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/chdrive.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_chdrive 10 | 11 | 12 | 13 | 14 |
15 |

f_chdrive

16 |

The f_chdrive function changes the current drive.

17 |
18 | FRESULT f_chdrive (
19 |   const TCHAR* path  /* [IN] Logical drive number */
20 | );
21 | 
22 |
23 | 24 |
25 |

Parameters

26 |
27 |
path
28 |
Specifies the logical drive number to be set as the current drive.
29 |
30 |
31 | 32 | 33 |
34 |

Return Values

35 |

36 | FR_OK, 37 | FR_INVALID_DRIVE 38 |

39 |
40 | 41 | 42 |
43 |

Description

44 |

The f_chdrive function changes the current drive. The initial value of the current drive number is 0. Note that the current drive is retained in a static variable so that it also affects other tasks that using the file functions.

45 |
46 | 47 |
48 |

QuickInfo

49 |

Available when _FS_RPATH >= 1 and _VOLUMES >= 2.

50 |
51 | 52 | 53 |
54 |

See Also

55 |

f_chdir, f_getcwd

56 |
57 | 58 |

Return

59 | 60 | 61 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/close.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_close 10 | 11 | 12 | 13 | 14 |
15 |

f_close

16 |

ファイルを閉じます。

17 |
18 | FRESULT f_close (
19 |   FIL* fp     /* [IN] ファイル オブジェクトへのポインタ */
20 | );
21 | 
22 |
23 | 24 |
25 |

引数

26 |
27 |
fp
28 |
閉じようとするファイルのファイル オブジェクト構造体へのポインタを指定します。
29 |
30 |
31 | 32 | 33 |
34 |

戻り値

35 |

36 | FR_OK, 37 | FR_DISK_ERR, 38 | FR_INT_ERR, 39 | FR_INVALID_OBJECT, 40 | FR_TIMEOUT 41 |

42 |
43 | 44 | 45 |
46 |

解説

47 |

ファイルを閉じます。何らかの書き込みの行われたファイルの場合、キャッシュされた状態(リード/ライト バッファ上のデータ、変更されたFATやディレクトリ項目)はディスクに書き戻されます。関数が正常終了すると、そのファイル オブジェクトは無効になり、そのメモリも解放できます。

48 |

ファイル オブジェクトが読み出し専用モードで、_FS_LOCKオプションが選択されていない場合は、ファイルを閉じずにファイル オブジェクトを破棄することもできます。しかし、これは将来の互換性の点で推奨はされません。

49 |
50 | 51 | 52 |
53 |

対応情報

54 |

全ての構成で使用可能です。

55 |
56 | 57 | 58 |
59 |

参照

60 | f_open, f_read, f_write, f_sync, FIL, FATFS 61 |
62 | 63 |

戻る

64 | 65 | 66 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/sync.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_sync 10 | 11 | 12 | 13 | 14 |
15 |

f_sync

16 |

書き込み中のファイルのキャッシュされた情報をフラッシュします。

17 |
18 | FRESULT f_sync (
19 |   FIL* fp     /* [IN] ファイル オブジェクト構造体へのポインタ */
20 | );
21 | 
22 |
23 | 24 |
25 |

引数

26 |
27 |
fp
28 |
syncするファイルのファイル オブジェクト構造体へのポインタを指定します。
29 |
30 |
31 | 32 | 33 |
34 |

戻り値

35 |

36 | FR_OK, 37 | FR_DISK_ERR, 38 | FR_INT_ERR, 39 | FR_INVALID_OBJECT, 40 | FR_TIMEOUT 41 |

42 |
43 | 44 | 45 |
46 |

解説

47 |

この関数はf_close関数と同じ処理を実行しますが、ファイルは引き続き開かれたままになり、読み書きを続行できます。ロギングなど、書き込みモードで長時間ファイルが開かれているアプリケーションにおいて、定期的または区切りの良いところでこの関数を使用することにより、不意の電源断やメディアの取り外しにより失われるデータを最小にすることができます。この背景については、アプリケーション ノートも参照してください。

48 |

実際のところ、f_close関数内ではこの関数を呼び出した後ファイル オブジェクトを無効化しているだけなので、f_close関数の直前にf_sync関数を置くことは無意味です。

49 |
50 | 51 | 52 |
53 |

対応情報

54 |

_FS_READONLY == 0のときに使用可能です。

55 |
56 | 57 | 58 |
59 |

参照

60 |

f_close

61 |
62 | 63 |

戻る

64 | 65 | 66 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/truncate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_truncate 10 | 11 | 12 | 13 | 14 |
15 |

f_truncate

16 |

The f_truncate function truncates the file size.

17 |
18 | FRESULT f_truncate (
19 |   FIL* fp     /* [IN] File object */
20 | );
21 | 
22 |
23 | 24 |
25 |

Parameter

26 |
27 |
fp
28 |
Pointer to the open file object to be truncated.
29 |
30 |
31 | 32 | 33 |
34 |

Return Values

35 |

36 | FR_OK, 37 | FR_DISK_ERR, 38 | FR_INT_ERR, 39 | FR_INVALID_OBJECT, 40 | FR_TIMEOUT 41 |

42 |
43 | 44 | 45 |
46 |

Description

47 |

The f_truncate function truncates the file size to the current file read/write pointer. This function has no effect if the file read/write pointer is already pointing end of the file.

48 |
49 | 50 | 51 |
52 |

QuickInfo

53 |

Available when _FS_READONLY == 0 and _FS_MINIMIZE == 0.

54 |
55 | 56 | 57 |
58 |

See Also

59 |

f_open, f_lseek, FIL

60 |
61 | 62 | 63 |

Return

64 | 65 | 66 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/getcwd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_getcwd 10 | 11 | 12 | 13 | 14 |
15 |

f_getcwd

16 |

カレント ディレクトリを得ます。

17 |
18 | FRESULT f_getcwd (
19 |   TCHAR* buff, /* [OUT] バッファ */
20 |   UINT len     /* [IN] バッファ サイズ */
21 | );
22 | 
23 |
24 | 25 |
26 |

引数

27 |
28 |
buff
29 |
カレント ディレクトリのパス名文字列を格納するバッファ
30 |
len
31 |
TCHAR単位のバッファ サイズ
32 |
33 |
34 | 35 | 36 |
37 |

戻り値

38 |

39 | FR_OK, 40 | FR_DISK_ERR, 41 | FR_INT_ERR, 42 | FR_NOT_READY, 43 | FR_NOT_ENABLED, 44 | FR_NO_FILESYSTEM, 45 | FR_TIMEOUT, 46 | FR_NOT_ENOUGH_CORE 47 |

48 |
49 | 50 | 51 |
52 |

解説

53 |

カレント ドライブのカレント ディレクトリのフル パス文字列を取得します。_VOLUMESが2以上のときは、論理ドライブ番号の付加されたパス名となります。

54 |
55 | 56 | 57 |
58 |

対応情報

59 |

_FS_RPATH == 2のとき使用可能です。

60 |
61 | 62 | 63 |
64 |

参照

65 |

f_chdrive, f_chdir

66 |
67 | 68 |

戻る

69 | 70 | 71 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/IAR/AtmelSAM9XE/ISR_Support.h: -------------------------------------------------------------------------------- 1 | EXTERN pxCurrentTCB 2 | EXTERN ulCriticalNesting 3 | 4 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 5 | ; Context save and restore macro definitions 6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 7 | 8 | portSAVE_CONTEXT MACRO 9 | 10 | ; Push R0 as we are going to use the register. 11 | STMDB SP!, {R0} 12 | 13 | ; Set R0 to point to the task stack pointer. 14 | STMDB SP, {SP}^ 15 | NOP 16 | SUB SP, SP, #4 17 | LDMIA SP!, {R0} 18 | 19 | ; Push the return address onto the stack. 20 | STMDB R0!, {LR} 21 | 22 | ; Now we have saved LR we can use it instead of R0. 23 | MOV LR, R0 24 | 25 | ; Pop R0 so we can save it onto the system mode stack. 26 | LDMIA SP!, {R0} 27 | 28 | ; Push all the system mode registers onto the task stack. 29 | STMDB LR, {R0-LR}^ 30 | NOP 31 | SUB LR, LR, #60 32 | 33 | ; Push the SPSR onto the task stack. 34 | MRS R0, SPSR 35 | STMDB LR!, {R0} 36 | 37 | LDR R0, =ulCriticalNesting 38 | LDR R0, [R0] 39 | STMDB LR!, {R0} 40 | 41 | ; Store the new top of stack for the task. 42 | LDR R1, =pxCurrentTCB 43 | LDR R0, [R1] 44 | STR LR, [R0] 45 | 46 | ENDM 47 | 48 | 49 | portRESTORE_CONTEXT MACRO 50 | 51 | ; Set the LR to the task stack. 52 | LDR R1, =pxCurrentTCB 53 | LDR R0, [R1] 54 | LDR LR, [R0] 55 | 56 | ; The critical nesting depth is the first item on the stack. 57 | ; Load it into the ulCriticalNesting variable. 58 | LDR R0, =ulCriticalNesting 59 | LDMFD LR!, {R1} 60 | STR R1, [R0] 61 | 62 | ; Get the SPSR from the stack. 63 | LDMFD LR!, {R0} 64 | MSR SPSR_cxsf, R0 65 | 66 | ; Restore all system mode registers for the task. 67 | LDMFD LR, {R0-R14}^ 68 | NOP 69 | 70 | ; Restore the return address. 71 | LDR LR, [LR, #+60] 72 | 73 | ; And return - correcting the offset in the LR to obtain the 74 | ; correct address. 75 | SUBS PC, LR, #4 76 | 77 | ENDM 78 | 79 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/sdir.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - DIR 10 | 11 | 12 | 13 | 14 |
15 |

DIR

16 |

DIR構造体は、f_opendir/f_readdir/f_findfirst/f_findnext関数のワーク エリアとして使用されます。アプリケーションは、この構造体のメンバを書き換えてはなりません。

17 |
18 | typedef struct {
19 |     FATFS*  fs;        /* 親ファイル システム オブジェクトへのポインタ */
20 |     WORD    id;        /* 親ファイル システム オブジェクトのマウントID */
21 |     WORD    index;     /* 次に検索開始するディレクトリ インデックス番号 */
22 |     DWORD   sclust;    /* テーブル開始クラスタ (0:ルート) */
23 |     DWORD   clust;     /* 現在のクラスタ番号 */
24 |     DWORD   sect;      /* 現在のセクタ番号 */
25 |     BYTE*   dir;       /* 現在のSFNエントリ(Win[]内)へのポインタ */
26 |     BYTE*   fn;        /* SFNバッファへのポインタ (in/out) {file[8],ext[3],status[1]} */
27 | #if _FS_LOCK
28 |     UINT    lockid;    /* サブ ディレクトリ ロックID (0:ルート) */
29 | #endif
30 | #if _USE_LFN
31 |     WCHAR*  lfn;       /* LFNバッファへのポインタ (in/out) */
32 |     WORD    lfn_idx;   /* LFNエントリの先頭インデックス (0xFFFF:無効) */
33 | #endif
34 | #if _USE_FIND
35 |     const TCHAR*  pat; /* マッチング パターンへのポインタ */
36 | #endif
37 | } DIR;
38 | 
39 |
40 | 41 |

戻る

42 | 43 | 44 | -------------------------------------------------------------------------------- /app/main.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file Project/STM32F4xx_StdPeriph_Templates/main.h 4 | * @author MCD Application Team 5 | * @version V1.8.0 6 | * @date 04-November-2016 7 | * @brief Header for main.c module 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2016 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __MAIN_H 30 | #define __MAIN_H 31 | 32 | /* Includes ------------------------------------------------------------------*/ 33 | #include "stm32f4xx.h" 34 | #include "wujique_log.h" 35 | #include "wujique_sysconf.h" 36 | 37 | /* Exported types ------------------------------------------------------------*/ 38 | /* Exported constants --------------------------------------------------------*/ 39 | /* Exported macro ------------------------------------------------------------*/ 40 | /* Exported functions ------------------------------------------------------- */ 41 | extern void Time_Update(void); 42 | extern void Delay(__IO uint32_t nTime); 43 | extern uint32_t Time_Get_LocalTime(void); 44 | #endif /* __MAIN_H */ 45 | 46 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 47 | -------------------------------------------------------------------------------- /StLib/STM32_USB_Device_Library/Class/cdc/inc/usbd_cdc_if_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_cdc_if_template.h 4 | * @author MCD Application Team 5 | * @version V1.2.0 6 | * @date 09-November-2015 7 | * @brief Header for dfu_mal.c file. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __USBD_CDC_IF_TEMPLATE_H 30 | #define __USBD_CDC_IF_TEMPLATE_H 31 | 32 | /* Includes ------------------------------------------------------------------*/ 33 | #include "usb_conf.h" 34 | #include "usbd_conf.h" 35 | #include "usbd_cdc_core.h" 36 | 37 | /* Exported types ------------------------------------------------------------*/ 38 | /* Exported constants --------------------------------------------------------*/ 39 | 40 | extern CDC_IF_Prop_TypeDef TEMPLATE_fops; 41 | 42 | /* Exported macro ------------------------------------------------------------*/ 43 | /* Exported functions ------------------------------------------------------- */ 44 | #endif /* __USBD_CDC_IF_TEMPLATE_H */ 45 | 46 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 47 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/CCS/MSP430X/data_model.h: -------------------------------------------------------------------------------- 1 | ;/* 2 | ; * FreeRTOS Kernel V10.0.0 3 | ; * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 | ; * 5 | ; * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | ; * this software and associated documentation files (the "Software"), to deal in 7 | ; * the Software without restriction, including without limitation the rights to 8 | ; * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | ; * the Software, and to permit persons to whom the Software is furnished to do so, 10 | ; * subject to the following conditions: 11 | ; * 12 | ; * The above copyright notice and this permission notice shall be included in all 13 | ; * copies or substantial portions of the Software. If you wish to use our Amazon 14 | ; * FreeRTOS name, please do so in a fair use way that does not cause confusion. 15 | ; * 16 | ; * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | ; * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | ; * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | ; * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | ; * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | ; * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | ; * 23 | ; * http://www.FreeRTOS.org 24 | ; * http://aws.amazon.com/freertos 25 | ; * 26 | ; * 1 tab == 4 spaces! 27 | ; */ 28 | 29 | .if $DEFINED( __LARGE_DATA_MODEL__ ) 30 | .define "pushm.a", pushm_x 31 | .define "popm.a", popm_x 32 | .define "push.a", push_x 33 | .define "pop.a", pop_x 34 | .define "mov.a", mov_x 35 | .else 36 | .define "pushm.w", pushm_x 37 | .define "popm.w", popm_x 38 | .define "push.w", push_x 39 | .define "pop.w", pop_x 40 | .define "mov.w", mov_x 41 | .endif 42 | 43 | .if $DEFINED( __LARGE_CODE_MODEL__ ) 44 | .define "calla", call_x 45 | .define "reta", ret_x 46 | .else 47 | .define "call", call_x 48 | .define "ret", ret_x 49 | .endif 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/putc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_putc 10 | 11 | 12 | 13 | 14 |
15 |

f_putc

16 |

ファイルに文字を書き込みます。

17 |
18 | int f_putc (
19 |   TCHAR chr,  /* [IN] 書き込む文字 */
20 |   FIL* fp     /* [IN] ファイル オブジェクト */
21 | );
22 | 
23 |
24 | 25 |
26 |

引数

27 |
28 |
chr
29 |
書き込む文字を指定します。
30 |
fp
31 |
ファイル オブジェクト構造体へのポインタを指定します。
32 |
33 |
34 | 35 | 36 |
37 |

戻り値

38 |

文字が正常に書き込まれると書き込んだ文字数が返されます。ディスクが満杯またはエラーにより書き込まれなかったときはEOF (-1)が返されます。

39 |

APIにUnicodeが選択(_LFN_UNICODEが1)されているときは、chrはUTF-16文字になりますが、ファイル上のエンコードは、_STRF_ENCODEオプションで選択できます。それ以外の時は無変換(1バイト/1文字)で書き込みます。

40 |
41 | 42 | 43 |
44 |

解説

45 |

1文字をファイルに書き込みます。

46 |
47 | 48 | 49 |
50 |

対応情報

51 |

この関数はf_write関数のラッパー関数です。_FS_READONLY == 0で、且つ_USE_STRFUNCが 1または 2のとき使用可能です。2を指定すると、'\n''\r'+'\n'に展開されてファイルに書き込まれます。

52 |
53 | 54 | 55 |
56 |

参照

57 |

f_open, f_puts, f_printf, f_gets, f_close, FIL

58 |
59 | 60 |

戻る

61 | 62 | 63 | -------------------------------------------------------------------------------- /Utilities/littlefs-master/emubd/lfs_emubd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Block device emulated on standard files 3 | * 4 | * Copyright (c) 2017, Arm Limited. All rights reserved. 5 | * SPDX-License-Identifier: BSD-3-Clause 6 | */ 7 | #ifndef LFS_EMUBD_H 8 | #define LFS_EMUBD_H 9 | 10 | #include "lfs.h" 11 | #include "lfs_util.h" 12 | 13 | #ifdef __cplusplus 14 | extern "C" 15 | { 16 | #endif 17 | 18 | 19 | // Config options 20 | #ifndef LFS_EMUBD_READ_SIZE 21 | #define LFS_EMUBD_READ_SIZE 1 22 | #endif 23 | 24 | #ifndef LFS_EMUBD_PROG_SIZE 25 | #define LFS_EMUBD_PROG_SIZE 1 26 | #endif 27 | 28 | #ifndef LFS_EMUBD_ERASE_SIZE 29 | #define LFS_EMUBD_ERASE_SIZE 512 30 | #endif 31 | 32 | #ifndef LFS_EMUBD_TOTAL_SIZE 33 | #define LFS_EMUBD_TOTAL_SIZE 524288 34 | #endif 35 | 36 | 37 | // The emu bd state 38 | typedef struct lfs_emubd { 39 | char *path; 40 | char *child; 41 | 42 | struct { 43 | uint64_t read_count; 44 | uint64_t prog_count; 45 | uint64_t erase_count; 46 | } stats; 47 | 48 | struct { 49 | uint32_t read_size; 50 | uint32_t prog_size; 51 | uint32_t block_size; 52 | uint32_t block_count; 53 | } cfg; 54 | } lfs_emubd_t; 55 | 56 | 57 | // Create a block device using path for the directory to store blocks 58 | int lfs_emubd_create(const struct lfs_config *cfg, const char *path); 59 | 60 | // Clean up memory associated with emu block device 61 | void lfs_emubd_destroy(const struct lfs_config *cfg); 62 | 63 | // Read a block 64 | int lfs_emubd_read(const struct lfs_config *cfg, lfs_block_t block, 65 | lfs_off_t off, void *buffer, lfs_size_t size); 66 | 67 | // Program a block 68 | // 69 | // The block must have previously been erased. 70 | int lfs_emubd_prog(const struct lfs_config *cfg, lfs_block_t block, 71 | lfs_off_t off, const void *buffer, lfs_size_t size); 72 | 73 | // Erase a block 74 | // 75 | // A block must be erased before being programmed. The 76 | // state of an erased block is undefined. 77 | int lfs_emubd_erase(const struct lfs_config *cfg, lfs_block_t block); 78 | 79 | // Sync the block device 80 | int lfs_emubd_sync(const struct lfs_config *cfg); 81 | 82 | 83 | #ifdef __cplusplus 84 | } /* extern "C" */ 85 | #endif 86 | 87 | #endif 88 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/closedir.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_closedir 10 | 11 | 12 | 13 | 14 |
15 |

f_closedir

16 |

The f_closedir function closes an open directory.

17 |
18 | FRESULT f_closedir (
19 |   DIR* dp     /* [IN] Pointer to the directory object */
20 | );
21 | 
22 |
23 | 24 |
25 |

Parameter

26 |
27 |
dp
28 |
Pointer to the open directory object structure to be closed.
29 |
30 |
31 | 32 | 33 |
34 |

Return Values

35 |

36 | FR_OK, 37 | FR_INT_ERR, 38 | FR_INVALID_OBJECT, 39 | FR_TIMEOUT 40 |

41 |
42 | 43 | 44 |
45 |

Description

46 |

The f_closedir function closes an open directory object. After the function succeeded, the directory object is no longer valid and it can be discarded.

47 |

Note that the directory object can also be discarded without this process if _FS_LOCK option is not enabled. However this is not recommended for future compatibility.

48 |
49 | 50 | 51 |
52 |

QuickInfo

53 |

Available when _FS_MINIMIZE <= 1.

54 |
55 | 56 | 57 |
58 |

See Also

59 |

f_opendir, f_readdir, DIR

60 |
61 | 62 |

Return

63 | 64 | 65 | -------------------------------------------------------------------------------- /prj/DebugConfig/Target_1_STM32F407ZETx.dbgconf: -------------------------------------------------------------------------------- 1 | // <<< Use Configuration Wizard in Context Menu >>> 2 | 3 | // Debug MCU Configuration 4 | // DBG_SLEEP Debug Sleep Mode 5 | // DBG_STOP Debug Stop Mode 6 | // DBG_STANDBY Debug Standby Mode 7 | // 8 | DbgMCU_CR = 0x00000007; 9 | 10 | // Debug MCU APB1 Freeze 11 | // DBG_TIM2_STOP Timer 2 Stopped when Core is halted 12 | // DBG_TIM3_STOP Timer 3 Stopped when Core is halted 13 | // DBG_TIM4_STOP Timer 4 Stopped when Core is halted 14 | // DBG_TIM5_STOP Timer 5 Stopped when Core is halted 15 | // DBG_TIM6_STOP Timer 6 Stopped when Core is halted 16 | // DBG_TIM7_STOP Timer 7 Stopped when Core is halted 17 | // DBG_TIM12_STOP Timer 12 Stopped when Core is halted 18 | // DBG_TIM13_STOP Timer 13 Stopped when Core is halted 19 | // DBG_TIM14_STOP Timer 14 Stopped when Core is halted 20 | // DBG_RTC_STOP RTC Stopped when Core is halted 21 | // DBG_WWDG_STOP Window Watchdog Stopped when Core is halted 22 | // DBG_IWDG_STOP Independent Watchdog Stopped when Core is halted 23 | // DBG_I2C1_SMBUS_TIMEOUT I2C1 SMBUS Timeout Mode Stopped when Core is halted 24 | // DBG_I2C2_SMBUS_TIMEOUT I2C2 SMBUS Timeout Mode Stopped when Core is halted 25 | // DBG_I2C3_SMBUS_TIMEOUT I2C3 SMBUS Timeout Mode Stopped when Core is halted 26 | // DBG_CAN1_STOP CAN1 Stopped when Core is halted 27 | // DBG_CAN2_STOP CAN2 Stopped when Core is halted 28 | // 29 | DbgMCU_APB1_Fz = 0x00000000; 30 | 31 | 32 | // Debug MCU APB2 Freeze 33 | // DBG_TIM1_STOP Timer 1 Stopped when Core is halted 34 | // DBG_TIM8_STOP Timer 8 Stopped when Core is halted 35 | // DBG_TIM9_STOP Timer 9 Stopped when Core is halted 36 | // DBG_TIM10_STOP Timer 10 Stopped when Core is halted 37 | // DBG_TIM11_STOP Timer 11 Stopped when Core is halted 38 | // 39 | DbgMCU_APB2_Fz = 0x00000000; 40 | 41 | // <<< end of configuration section >>> -------------------------------------------------------------------------------- /prj/DebugConfig/wujique_STM32F407ZETx.dbgconf: -------------------------------------------------------------------------------- 1 | // <<< Use Configuration Wizard in Context Menu >>> 2 | 3 | // Debug MCU Configuration 4 | // DBG_SLEEP Debug Sleep Mode 5 | // DBG_STOP Debug Stop Mode 6 | // DBG_STANDBY Debug Standby Mode 7 | // 8 | DbgMCU_CR = 0x00000007; 9 | 10 | // Debug MCU APB1 Freeze 11 | // DBG_TIM2_STOP Timer 2 Stopped when Core is halted 12 | // DBG_TIM3_STOP Timer 3 Stopped when Core is halted 13 | // DBG_TIM4_STOP Timer 4 Stopped when Core is halted 14 | // DBG_TIM5_STOP Timer 5 Stopped when Core is halted 15 | // DBG_TIM6_STOP Timer 6 Stopped when Core is halted 16 | // DBG_TIM7_STOP Timer 7 Stopped when Core is halted 17 | // DBG_TIM12_STOP Timer 12 Stopped when Core is halted 18 | // DBG_TIM13_STOP Timer 13 Stopped when Core is halted 19 | // DBG_TIM14_STOP Timer 14 Stopped when Core is halted 20 | // DBG_RTC_STOP RTC Stopped when Core is halted 21 | // DBG_WWDG_STOP Window Watchdog Stopped when Core is halted 22 | // DBG_IWDG_STOP Independent Watchdog Stopped when Core is halted 23 | // DBG_I2C1_SMBUS_TIMEOUT I2C1 SMBUS Timeout Mode Stopped when Core is halted 24 | // DBG_I2C2_SMBUS_TIMEOUT I2C2 SMBUS Timeout Mode Stopped when Core is halted 25 | // DBG_I2C3_SMBUS_TIMEOUT I2C3 SMBUS Timeout Mode Stopped when Core is halted 26 | // DBG_CAN1_STOP CAN1 Stopped when Core is halted 27 | // DBG_CAN2_STOP CAN2 Stopped when Core is halted 28 | // 29 | DbgMCU_APB1_Fz = 0x00000000; 30 | 31 | 32 | // Debug MCU APB2 Freeze 33 | // DBG_TIM1_STOP Timer 1 Stopped when Core is halted 34 | // DBG_TIM8_STOP Timer 8 Stopped when Core is halted 35 | // DBG_TIM9_STOP Timer 9 Stopped when Core is halted 36 | // DBG_TIM10_STOP Timer 10 Stopped when Core is halted 37 | // DBG_TIM11_STOP Timer 11 Stopped when Core is halted 38 | // 39 | DbgMCU_APB2_Fz = 0x00000000; 40 | 41 | // <<< end of configuration section >>> -------------------------------------------------------------------------------- /prj/DebugConfig/wujique_STM32F407ZGTx.dbgconf: -------------------------------------------------------------------------------- 1 | // <<< Use Configuration Wizard in Context Menu >>> 2 | 3 | // Debug MCU Configuration 4 | // DBG_SLEEP Debug Sleep Mode 5 | // DBG_STOP Debug Stop Mode 6 | // DBG_STANDBY Debug Standby Mode 7 | // 8 | DbgMCU_CR = 0x00000007; 9 | 10 | // Debug MCU APB1 Freeze 11 | // DBG_TIM2_STOP Timer 2 Stopped when Core is halted 12 | // DBG_TIM3_STOP Timer 3 Stopped when Core is halted 13 | // DBG_TIM4_STOP Timer 4 Stopped when Core is halted 14 | // DBG_TIM5_STOP Timer 5 Stopped when Core is halted 15 | // DBG_TIM6_STOP Timer 6 Stopped when Core is halted 16 | // DBG_TIM7_STOP Timer 7 Stopped when Core is halted 17 | // DBG_TIM12_STOP Timer 12 Stopped when Core is halted 18 | // DBG_TIM13_STOP Timer 13 Stopped when Core is halted 19 | // DBG_TIM14_STOP Timer 14 Stopped when Core is halted 20 | // DBG_RTC_STOP RTC Stopped when Core is halted 21 | // DBG_WWDG_STOP Window Watchdog Stopped when Core is halted 22 | // DBG_IWDG_STOP Independent Watchdog Stopped when Core is halted 23 | // DBG_I2C1_SMBUS_TIMEOUT I2C1 SMBUS Timeout Mode Stopped when Core is halted 24 | // DBG_I2C2_SMBUS_TIMEOUT I2C2 SMBUS Timeout Mode Stopped when Core is halted 25 | // DBG_I2C3_SMBUS_TIMEOUT I2C3 SMBUS Timeout Mode Stopped when Core is halted 26 | // DBG_CAN1_STOP CAN1 Stopped when Core is halted 27 | // DBG_CAN2_STOP CAN2 Stopped when Core is halted 28 | // 29 | DbgMCU_APB1_Fz = 0x00000000; 30 | 31 | 32 | // Debug MCU APB2 Freeze 33 | // DBG_TIM1_STOP Timer 1 Stopped when Core is halted 34 | // DBG_TIM8_STOP Timer 8 Stopped when Core is halted 35 | // DBG_TIM9_STOP Timer 9 Stopped when Core is halted 36 | // DBG_TIM10_STOP Timer 10 Stopped when Core is halted 37 | // DBG_TIM11_STOP Timer 11 Stopped when Core is halted 38 | // 39 | DbgMCU_APB2_Fz = 0x00000000; 40 | 41 | // <<< end of configuration section >>> -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/puts.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_puts 10 | 11 | 12 | 13 | 14 |
15 |

f_puts

16 |

ファイルに文字列を書き込みます。

17 |
18 | int f_puts (
19 |   const TCHAR* str,  /* [IN] 書き込む文字列 */
20 |   FIL* fp            /* [IN] ファイル オブジェクト */
21 | );
22 | 
23 |
24 | 25 |
26 |

引数

27 |
28 |
str
29 |
書き込むヌル文字'\0'終端の文字列を指すポインタを指定します。ヌル文字は書き込まれません。
30 |
fp
31 |
ファイル オブジェクト構造体へのポインタを指定します。
32 |
33 |
34 | 35 | 36 |
37 |

戻り値

38 |

文字列が正常に書き込まれると、書き込まれた文字数が返されます。ディスクが満杯またはエラーにより書き込みが中断されたときはEOF (-1)が返されます。

39 |

APIにUnicodeが選択(_LFN_UNICODEが1)されているときは、strはUTF-16文字列になりますが、ファイル上のエンコードは、_STRF_ENCODEオプションで選択できます。それ以外の時は無変換(1バイト/1文字)で書き込みます。

40 |
41 | 42 | 43 |
44 |

解説

45 |

文字列をファイルに書き込みます。

46 |
47 | 48 | 49 |
50 |

対応情報

51 |

この関数はf_write関数のラッパー関数です。_FS_READONLY == 0で、且つ_USE_STRFUNCが1または2のとき使用可能です。2を指定すると、文字列に含まれる'\n''\r'+'\n'に展開されてファイルに書き込まれます。

52 |
53 | 54 | 55 |
56 |

参照

57 |

f_open, f_putc, f_printf, f_gets, f_close, FIL

58 |
59 | 60 |

戻る

61 | 62 | 63 | -------------------------------------------------------------------------------- /StLib/STM32_USB_Device_Library/Class/dfu/inc/usbd_otp_if.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_otp_if.h 4 | * @author MCD Application Team 5 | * @version V1.2.0 6 | * @date 09-November-2015 7 | * @brief Header for usbd_otp_if.c file. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __OTP_IF_MAL_H 30 | #define __OTP_IF_MAL_H 31 | 32 | /* Includes ------------------------------------------------------------------*/ 33 | #include "usbd_dfu_mal.h" 34 | 35 | /* Exported types ------------------------------------------------------------*/ 36 | /* Exported constants --------------------------------------------------------*/ 37 | #define OTP_START_ADD 0x1FFF7800 38 | #define OTP_END_ADD (uint32_t)(OTP_START_ADD + 528) 39 | 40 | #define OTP_IF_STRING "@OTP Area /0x1FFF7800/01*512 g,01*016 g" 41 | 42 | extern DFU_MAL_Prop_TypeDef DFU_Otp_cb; 43 | 44 | /* Exported macro ------------------------------------------------------------*/ 45 | /* Exported functions ------------------------------------------------------- */ 46 | 47 | #endif /* __OTP_IF_MAL_H */ 48 | 49 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 50 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/License/license.txt: -------------------------------------------------------------------------------- 1 | The FreeRTOS kernel is released under the MIT open source license, the text of 2 | which is provided below. 3 | 4 | This license covers the FreeRTOS kernel source files, which are located in the 5 | /FreeRTOS/Source directory of the official FreeRTOS kernel download. It also 6 | covers most of the source files in the demo application projects, which are 7 | located in the /FreeRTOS/Demo directory of the official FreeRTOS download. The 8 | demo projects may also include third party software that is not part of FreeRTOS 9 | and is licensed separately to FreeRTOS. Examples of third party software 10 | includes header files provided by chip or tools vendors, linker scripts, 11 | peripheral drivers, etc. All the software in subdirectories of the /FreeRTOS 12 | directory is either open source or distributed with permission, and is free for 13 | use. For the avoidance of doubt, refer to the comments at the top of each 14 | source file. 15 | 16 | 17 | License text: 18 | ------------- 19 | 20 | Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 21 | Permission is hereby granted, free of charge, to any person obtaining a copy of 22 | this software and associated documentation files (the "Software"), to deal in 23 | the Software without restriction, including without limitation the rights to 24 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 25 | the Software, and to permit persons to whom the Software is furnished to do so, 26 | subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. If you wish to use our Amazon 30 | FreeRTOS name, please do so in a fair use way that does not cause confusion. 31 | 32 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 33 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 34 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 35 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 36 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 37 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 38 | 39 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/ja/findnext.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - f_findnext 10 | 11 | 12 | 13 | 14 |
15 |

f_findnext

16 |

次にマッチするオブジェクトを検索します。

17 |
18 | FRESULT f_findnext (
19 |   DIR* dp,              /* [IN] ディレクトリ構造体へのポインタ */
20 |   FILINFO* fno          /* [OUT] ファイル情報構造体へのポインタ */
21 | );
22 | 
23 |
24 | 25 |
26 |

引数

27 |
28 |
dp
29 |
f_findfirst関数で作成された有効なディレクトリ構造体へのポインタを指定します。
30 |
fno
31 |
マッチしたディレクトリ項目を格納するファイル情報構造体へのポインタを指定します。
32 |
33 |
34 | 35 | 36 |
37 |

戻り値

38 |

39 | FR_OK, 40 | FR_DISK_ERR, 41 | FR_INT_ERR, 42 | FR_INVALID_OBJECT, 43 | FR_TIMEOUT, 44 | FR_NOT_ENOUGH_CORE 45 |

46 |
47 | 48 | 49 |
50 |

解説

51 |

次に名前のマッチするディレクトリ項目を検索し、見つかった項目をファイル情報構造体にストアします。名前のマッチする項目が見つからずディレクトリの最後まで達した場合は、fno->fname[]にヌル文字列が返されます。

52 |
53 | 54 | 55 |
56 |

対応情報

57 |

この関数は、f_readdir関数のラッパー関数です。_USE_FIND == 1で、かつ_FS_MINIMIZE <= 1のとき使用可能になります。

58 |
59 | 60 | 61 |
62 |

参照

63 |

f_findfirst, f_closedir, DIR, FILINFO

64 |
65 | 66 |

戻る

67 | 68 | 69 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/GCC/PPC405_Xilinx/FPU_Macros.h: -------------------------------------------------------------------------------- 1 | /* 2 | * FreeRTOS Kernel V10.0.0 3 | * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | * this software and associated documentation files (the "Software"), to deal in 7 | * the Software without restriction, including without limitation the rights to 8 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | * the Software, and to permit persons to whom the Software is furnished to do so, 10 | * subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in all 13 | * copies or substantial portions of the Software. If you wish to use our Amazon 14 | * FreeRTOS name, please do so in a fair use way that does not cause confusion. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | * 23 | * http://www.FreeRTOS.org 24 | * http://aws.amazon.com/freertos 25 | * 26 | * 1 tab == 4 spaces! 27 | */ 28 | 29 | /* When switching out a task, if the task tag contains a buffer address then 30 | save the flop context into the buffer. */ 31 | #define traceTASK_SWITCHED_OUT() \ 32 | if( pxCurrentTCB->pxTaskTag != NULL ) \ 33 | { \ 34 | extern void vPortSaveFPURegisters( void * ); \ 35 | vPortSaveFPURegisters( ( void * ) ( pxCurrentTCB->pxTaskTag ) ); \ 36 | } 37 | 38 | /* When switching in a task, if the task tag contains a buffer address then 39 | load the flop context from the buffer. */ 40 | #define traceTASK_SWITCHED_IN() \ 41 | if( pxCurrentTCB->pxTaskTag != NULL ) \ 42 | { \ 43 | extern void vPortRestoreFPURegisters( void * ); \ 44 | vPortRestoreFPURegisters( ( void * ) ( pxCurrentTCB->pxTaskTag ) ); \ 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Utilities/FreeRTOS/Source/portable/GCC/PPC440_Xilinx/FPU_Macros.h: -------------------------------------------------------------------------------- 1 | /* 2 | * FreeRTOS Kernel V10.0.0 3 | * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | * this software and associated documentation files (the "Software"), to deal in 7 | * the Software without restriction, including without limitation the rights to 8 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | * the Software, and to permit persons to whom the Software is furnished to do so, 10 | * subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in all 13 | * copies or substantial portions of the Software. If you wish to use our Amazon 14 | * FreeRTOS name, please do so in a fair use way that does not cause confusion. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | * 23 | * http://www.FreeRTOS.org 24 | * http://aws.amazon.com/freertos 25 | * 26 | * 1 tab == 4 spaces! 27 | */ 28 | 29 | /* When switching out a task, if the task tag contains a buffer address then 30 | save the flop context into the buffer. */ 31 | #define traceTASK_SWITCHED_OUT() \ 32 | if( pxCurrentTCB->pxTaskTag != NULL ) \ 33 | { \ 34 | extern void vPortSaveFPURegisters( void * ); \ 35 | vPortSaveFPURegisters( ( void * ) ( pxCurrentTCB->pxTaskTag ) ); \ 36 | } 37 | 38 | /* When switching in a task, if the task tag contains a buffer address then 39 | load the flop context from the buffer. */ 40 | #define traceTASK_SWITCHED_IN() \ 41 | if( pxCurrentTCB->pxTaskTag != NULL ) \ 42 | { \ 43 | extern void vPortRestoreFPURegisters( void * ); \ 44 | vPortRestoreFPURegisters( ( void * ) ( pxCurrentTCB->pxTaskTag ) ); \ 45 | } 46 | 47 | -------------------------------------------------------------------------------- /StLib/STM32_USB_Device_Library/Class/dfu/inc/usbd_mem_if_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_mem_if_template.h 4 | * @author MCD Application Team 5 | * @version V1.2.0 6 | * @date 09-November-2015 7 | * @brief Header for usbd_mem_if_template.c file. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __MEM_IF_MAL_H 30 | #define __MEM_IF_MAL_H 31 | 32 | /* Includes ------------------------------------------------------------------*/ 33 | #include "usb_conf.h" 34 | 35 | #include "usbd_dfu_mal.h" 36 | 37 | /* Exported types ------------------------------------------------------------*/ 38 | /* Exported constants --------------------------------------------------------*/ 39 | #define MEM_START_ADD 0x00000000 /* Dummy start address */ 40 | #define MEM_END_ADD (uint32_t)(MEM_START_ADD + (5 * 1024)) /* Dummy Size = 5KB */ 41 | 42 | #define MEM_IF_STRING "@Dummy Memory /0x00000000/01*002Kg,03*001Kg" 43 | 44 | extern DFU_MAL_Prop_TypeDef DFU_Mem_cb; 45 | 46 | /* Exported macro ------------------------------------------------------------*/ 47 | /* Exported functions ------------------------------------------------------- */ 48 | 49 | #endif /* __MEM_IF_MAL_H */ 50 | 51 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 52 | -------------------------------------------------------------------------------- /StLib/STM32_USB_Device_Library/Class/msc/inc/usbd_msc_core.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_msc_core.h 4 | * @author MCD Application Team 5 | * @version V1.2.0 6 | * @date 09-November-2015 7 | * @brief header for the usbd_msc_core.c file 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef _USB_MSC_CORE_H_ 30 | #define _USB_MSC_CORE_H_ 31 | 32 | #include "usbd_ioreq.h" 33 | 34 | /** @addtogroup USBD_MSC_BOT 35 | * @{ 36 | */ 37 | 38 | /** @defgroup USBD_MSC 39 | * @brief This file is the Header file for USBD_msc.c 40 | * @{ 41 | */ 42 | 43 | 44 | /** @defgroup USBD_BOT_Exported_Defines 45 | * @{ 46 | */ 47 | 48 | 49 | #define BOT_GET_MAX_LUN 0xFE 50 | #define BOT_RESET 0xFF 51 | #define USB_MSC_CONFIG_DESC_SIZ 32 52 | 53 | #define MSC_EPIN_SIZE MSC_MAX_PACKET 54 | #define MSC_EPOUT_SIZE MSC_MAX_PACKET 55 | 56 | /** 57 | * @} 58 | */ 59 | 60 | /** @defgroup USB_CORE_Exported_Types 61 | * @{ 62 | */ 63 | 64 | extern USBD_Class_cb_TypeDef USBD_MSC_cb; 65 | /** 66 | * @} 67 | */ 68 | 69 | /** 70 | * @} 71 | */ 72 | #endif /* _USB_MSC_CORE_H_ */ 73 | /** 74 | * @} 75 | */ 76 | 77 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 78 | -------------------------------------------------------------------------------- /Utilities/fat_fs/doc/en/dstat.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | FatFs - disk_status 10 | 11 | 12 | 13 | 14 |
15 |

disk_status

16 |

The disk_status function returns the current drive status.

17 |
18 | DSTATUS disk_status (
19 |   BYTE pdrv     /* [IN] Physical drive number */
20 | );
21 | 
22 |
23 | 24 |
25 |

Parameter

26 |
27 |
pdrv
28 |
Physical drive number to identify the target device. Always zero at single drive system.
29 |
30 |
31 | 32 | 33 |
34 |

Return Values

35 |

The current drive status is returned in combination of status flags described below. FatFs refers only STA_NOINIT and STA_PROTECT.

36 |
37 |
STA_NOINIT
38 |
Indicates that the device is not initialized. This flag is set on system reset, media removal or failure of disk_initialize function. It is cleared on disk_initialize function succeeded. Media change that occurs asynchronously must be captured and reflect it to the status flags, or auto-mount feature will not work correctly. If the system does not support media change detect feature, application program needs to force de-initialize the file system object with f_mount function after the media change.
39 |
STA_NODISK
40 |
Indicates that no medium in the drive. This is always cleared on fixed disk drive. Note that FatFs does not refer this flag.
41 |
STA_PROTECT
42 |
Indicates that the medium is write protected. This is always cleared on the drives without write protect feature. Not valid if no medium in the drive.
43 |
44 |
45 | 46 |

Return

47 | 48 | 49 | -------------------------------------------------------------------------------- /app/eth/inc/netconf.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file netconf.h 4 | * @author MCD Application Team 5 | * @version V1.1.0 6 | * @date 31-July-2013 7 | * @brief This file contains all the functions prototypes for the netconf.c 8 | * file. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | *

© COPYRIGHT 2013 STMicroelectronics

13 | * 14 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 15 | * You may not use this file except in compliance with the License. 16 | * You may obtain a copy of the License at: 17 | * 18 | * http://www.st.com/software_license_agreement_liberty_v2 19 | * 20 | * Unless required by applicable law or agreed to in writing, software 21 | * distributed under the License is distributed on an "AS IS" BASIS, 22 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 23 | * See the License for the specific language governing permissions and 24 | * limitations under the License. 25 | * 26 | ****************************************************************************** 27 | */ 28 | 29 | /* Define to prevent recursive inclusion -------------------------------------*/ 30 | #ifndef __NETCONF_H 31 | #define __NETCONF_H 32 | 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | /* Includes ------------------------------------------------------------------*/ 38 | /* Exported types ------------------------------------------------------------*/ 39 | /* Exported constants --------------------------------------------------------*/ 40 | #define DHCP_START 1 41 | #define DHCP_WAIT_ADDRESS 2 42 | #define DHCP_ADDRESS_ASSIGNED 3 43 | #define DHCP_TIMEOUT 4 44 | #define DHCP_LINK_DOWN 5 45 | /* Exported macro ------------------------------------------------------------*/ 46 | /* Exported functions ------------------------------------------------------- */ 47 | void LwIP_Init(void); 48 | void LwIP_Pkt_Handle(void); 49 | void LwIP_Periodic_Handle(__IO uint32_t localtime); 50 | 51 | #ifdef __cplusplus 52 | } 53 | #endif 54 | 55 | #endif /* __NETCONF_H */ 56 | 57 | 58 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 59 | -------------------------------------------------------------------------------- /StLib/STM32_USB_Device_Library/Core/inc/usbd_conf_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file usbd_conf_template.h 4 | * @author MCD Application Team 5 | * @version V1.2.0 6 | * @date 30-June-2015 7 | * @brief usb device configuration template file 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT 2015 STMicroelectronics

12 | * 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 14 | * You may not use this file except in compliance with the License. 15 | * You may obtain a copy of the License at: 16 | * 17 | * http://www.st.com/software_license_agreement_liberty_v2 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | ****************************************************************************** 26 | */ 27 | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ 29 | #ifndef __USBD_CONF__H__ 30 | #define __USBD_CONF__H__ 31 | 32 | /* Includes ------------------------------------------------------------------*/ 33 | #include "usb_conf.h" 34 | 35 | /** @defgroup USB_CONF_Exported_Defines 36 | * @{ 37 | */ 38 | #define USE_USB_OTG_HS 39 | 40 | #define USBD_CFG_MAX_NUM 1 41 | #define USB_MAX_STR_DESC_SIZ 64 42 | #define USBD_EP0_MAX_PACKET_SIZE 64 43 | 44 | /** 45 | * @} 46 | */ 47 | 48 | 49 | /** @defgroup USB_CONF_Exported_Types 50 | * @{ 51 | */ 52 | /** 53 | * @} 54 | */ 55 | 56 | 57 | /** @defgroup USB_CONF_Exported_Macros 58 | * @{ 59 | */ 60 | /** 61 | * @} 62 | */ 63 | 64 | /** @defgroup USB_CONF_Exported_Variables 65 | * @{ 66 | */ 67 | /** 68 | * @} 69 | */ 70 | 71 | /** @defgroup USB_CONF_Exported_FunctionsPrototype 72 | * @{ 73 | */ 74 | /** 75 | * @} 76 | */ 77 | 78 | 79 | #endif //__USBD_CONF__H__ 80 | 81 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 82 | 83 | --------------------------------------------------------------------------------