├── .gitattributes
├── Doc
├── Xshell_Advanced.png
├── Xshell_Appearance.png
├── Xshell_Keyboard.png
├── Xshell_Terminal.png
├── Xshell_VT_Modes.png
└── demo.gif
├── LICENSE
├── Libraries
├── CMSIS
│ ├── core_cm3.c
│ ├── core_cm3.h
│ ├── startup
│ │ ├── startup_stm32f10x_cl.s
│ │ ├── startup_stm32f10x_hd.s
│ │ ├── startup_stm32f10x_hd_vl.s
│ │ ├── startup_stm32f10x_ld.s
│ │ ├── startup_stm32f10x_ld_vl.s
│ │ ├── startup_stm32f10x_md.s
│ │ ├── startup_stm32f10x_md_vl.s
│ │ └── startup_stm32f10x_xl.s
│ ├── stm32f10x.h
│ ├── system_stm32f10x.c
│ └── system_stm32f10x.h
└── FWlib
│ ├── inc
│ ├── misc.h
│ ├── stm32f10x_adc.h
│ ├── stm32f10x_bkp.h
│ ├── stm32f10x_can.h
│ ├── stm32f10x_cec.h
│ ├── stm32f10x_crc.h
│ ├── stm32f10x_dac.h
│ ├── stm32f10x_dbgmcu.h
│ ├── stm32f10x_dma.h
│ ├── stm32f10x_exti.h
│ ├── stm32f10x_flash.h
│ ├── stm32f10x_fsmc.h
│ ├── stm32f10x_gpio.h
│ ├── stm32f10x_i2c.h
│ ├── stm32f10x_iwdg.h
│ ├── stm32f10x_pwr.h
│ ├── stm32f10x_rcc.h
│ ├── stm32f10x_rtc.h
│ ├── stm32f10x_sdio.h
│ ├── stm32f10x_spi.h
│ ├── stm32f10x_tim.h
│ ├── stm32f10x_usart.h
│ └── stm32f10x_wwdg.h
│ └── src
│ ├── misc.c
│ ├── stm32f10x_adc.c
│ ├── stm32f10x_bkp.c
│ ├── stm32f10x_can.c
│ ├── stm32f10x_cec.c
│ ├── stm32f10x_crc.c
│ ├── stm32f10x_dac.c
│ ├── stm32f10x_dbgmcu.c
│ ├── stm32f10x_dma.c
│ ├── stm32f10x_exti.c
│ ├── stm32f10x_flash.c
│ ├── stm32f10x_fsmc.c
│ ├── stm32f10x_gpio.c
│ ├── stm32f10x_i2c.c
│ ├── stm32f10x_iwdg.c
│ ├── stm32f10x_pwr.c
│ ├── stm32f10x_rcc.c
│ ├── stm32f10x_rtc.c
│ ├── stm32f10x_sdio.c
│ ├── stm32f10x_spi.c
│ ├── stm32f10x_tim.c
│ ├── stm32f10x_usart.c
│ └── stm32f10x_wwdg.c
├── Project
└── RVMDK
│ ├── DebugConfig
│ ├── STM32F103_CLI_STM32F103C8.dbgconf
│ └── USART_STM32F103ZE.dbgconf
│ ├── JLinkSettings.ini
│ ├── Listing
│ ├── STM32F103_CLI.map
│ └── startup_stm32f10x_md.lst
│ ├── Output
│ ├── STM32F103_CLI.axf
│ ├── STM32F103_CLI.bin
│ ├── STM32F103_CLI.build_log.htm
│ ├── STM32F103_CLI.hex
│ ├── STM32F103_CLI.htm
│ ├── STM32F103_CLI.lnp
│ ├── STM32F103_CLI.sct
│ ├── STM32F103_CLI_STM32F103_CLI.dep
│ ├── STM32F103_CLI_sct.Bak
│ ├── app_led.crf
│ ├── app_led.d
│ ├── app_led.o
│ ├── bsp_led.crf
│ ├── bsp_led.d
│ ├── bsp_led.o
│ ├── bsp_usart.crf
│ ├── bsp_usart.d
│ ├── bsp_usart.o
│ ├── core_cm3.crf
│ ├── core_cm3.d
│ ├── core_cm3.o
│ ├── main.crf
│ ├── main.d
│ ├── main.o
│ ├── misc.crf
│ ├── misc.d
│ ├── misc.o
│ ├── startup_stm32f10x_md.d
│ ├── startup_stm32f10x_md.o
│ ├── stm32f10x_adc.crf
│ ├── stm32f10x_adc.d
│ ├── stm32f10x_adc.o
│ ├── stm32f10x_bkp.crf
│ ├── stm32f10x_bkp.d
│ ├── stm32f10x_bkp.o
│ ├── stm32f10x_can.crf
│ ├── stm32f10x_can.d
│ ├── stm32f10x_can.o
│ ├── stm32f10x_cec.crf
│ ├── stm32f10x_cec.d
│ ├── stm32f10x_cec.o
│ ├── stm32f10x_crc.crf
│ ├── stm32f10x_crc.d
│ ├── stm32f10x_crc.o
│ ├── stm32f10x_dac.crf
│ ├── stm32f10x_dac.d
│ ├── stm32f10x_dac.o
│ ├── stm32f10x_dbgmcu.crf
│ ├── stm32f10x_dbgmcu.d
│ ├── stm32f10x_dbgmcu.o
│ ├── stm32f10x_dma.crf
│ ├── stm32f10x_dma.d
│ ├── stm32f10x_dma.o
│ ├── stm32f10x_exti.crf
│ ├── stm32f10x_exti.d
│ ├── stm32f10x_exti.o
│ ├── stm32f10x_flash.crf
│ ├── stm32f10x_flash.d
│ ├── stm32f10x_flash.o
│ ├── stm32f10x_fsmc.crf
│ ├── stm32f10x_fsmc.d
│ ├── stm32f10x_fsmc.o
│ ├── stm32f10x_gpio.crf
│ ├── stm32f10x_gpio.d
│ ├── stm32f10x_gpio.o
│ ├── stm32f10x_i2c.crf
│ ├── stm32f10x_i2c.d
│ ├── stm32f10x_i2c.o
│ ├── stm32f10x_it.crf
│ ├── stm32f10x_it.d
│ ├── stm32f10x_it.o
│ ├── stm32f10x_iwdg.crf
│ ├── stm32f10x_iwdg.d
│ ├── stm32f10x_iwdg.o
│ ├── stm32f10x_pwr.crf
│ ├── stm32f10x_pwr.d
│ ├── stm32f10x_pwr.o
│ ├── stm32f10x_rcc.crf
│ ├── stm32f10x_rcc.d
│ ├── stm32f10x_rcc.o
│ ├── stm32f10x_rtc.crf
│ ├── stm32f10x_rtc.d
│ ├── stm32f10x_rtc.o
│ ├── stm32f10x_sdio.crf
│ ├── stm32f10x_sdio.d
│ ├── stm32f10x_sdio.o
│ ├── stm32f10x_spi.crf
│ ├── stm32f10x_spi.d
│ ├── stm32f10x_spi.o
│ ├── stm32f10x_tim.crf
│ ├── stm32f10x_tim.d
│ ├── stm32f10x_tim.o
│ ├── stm32f10x_usart.crf
│ ├── stm32f10x_usart.d
│ ├── stm32f10x_usart.o
│ ├── stm32f10x_wwdg.crf
│ ├── stm32f10x_wwdg.d
│ ├── stm32f10x_wwdg.o
│ ├── sys_command_line.crf
│ ├── sys_command_line.d
│ ├── sys_command_line.o
│ ├── sys_queue.crf
│ ├── sys_queue.d
│ ├── sys_queue.o
│ ├── system_stm32f10x.crf
│ ├── system_stm32f10x.d
│ └── system_stm32f10x.o
│ ├── STM32F103_CLI.uvguix.Administrator
│ ├── STM32F103_CLI.uvguix.yf22
│ ├── STM32F103_CLI.uvoptx
│ └── STM32F103_CLI.uvprojx
├── README.md
├── Tool
├── README.md
├── TrueSTUDIO_elf2bin.bat
├── arm-elf-objcopy.exe
├── axf_to_bin.bat
├── bin2hex-master.zip
├── cygwin1.dll
├── hex2bin.exe
├── hex_to_bin.bat
└── intelhex-master.zip
├── User
├── APP
│ ├── _K&R_format.bat
│ ├── app_led.c
│ └── app_led.h
├── BSP
│ ├── _K&R_format.bat
│ ├── bsp_led.c
│ ├── bsp_led.h
│ ├── bsp_usart.c
│ └── bsp_usart.h
├── COMPONENT
│ ├── AES
│ │ ├── README.md
│ │ ├── aes.c
│ │ └── aes.h
│ ├── AT
│ │ ├── README.md
│ │ ├── at.c
│ │ └── at.h
│ ├── BASE64
│ │ ├── README.md
│ │ ├── base64.c
│ │ └── base64.h
│ ├── BUTTON
│ │ ├── README.md
│ │ ├── button.c
│ │ └── button.h
│ ├── MD5
│ │ ├── README.md
│ │ ├── md5.c
│ │ └── md5.h
│ ├── RSA
│ │ ├── README.md
│ │ ├── Rsa.c
│ │ └── Rsa.h
│ ├── SECURE_BOOT
│ │ ├── README.md
│ │ ├── secure_boot.c
│ │ └── secure_boot.h
│ ├── SHA1
│ │ ├── README.md
│ │ ├── sha1.c
│ │ └── sha1.h
│ ├── SHA256
│ │ ├── README.md
│ │ ├── sha256.c
│ │ └── sha256.h
│ ├── SOFTWEAR_UART
│ │ ├── README.md
│ │ ├── s_uart.c
│ │ └── s_uart.h
│ ├── STDIO
│ │ ├── README.md
│ │ └── printf.c
│ ├── TEA
│ │ ├── README.md
│ │ ├── tea.c
│ │ └── tea.h
│ ├── TIMER
│ │ ├── README.md
│ │ ├── timer.c
│ │ └── timer.h
│ ├── UTIL
│ │ ├── README.md
│ │ ├── util.c
│ │ └── util.h
│ ├── assert
│ │ ├── HAPAssert.c
│ │ ├── HAPAssert.h
│ │ └── README.md
│ ├── base64_2
│ │ ├── base64.c
│ │ ├── base64.h
│ │ └── main.c
│ ├── cJSON
│ │ ├── cJSON
│ │ │ ├── .github
│ │ │ │ └── CONTRIBUTING.md
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── CMakeLists.txt
│ │ │ ├── CONTRIBUTORS.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── appveyor.yml
│ │ │ ├── cJSON.c
│ │ │ ├── cJSON.h
│ │ │ ├── cJSON_Utils.c
│ │ │ ├── cJSON_Utils.h
│ │ │ ├── fuzzing
│ │ │ │ ├── .gitignore
│ │ │ │ ├── CMakeLists.txt
│ │ │ │ ├── afl-prepare-linux.sh
│ │ │ │ ├── afl.c
│ │ │ │ ├── afl.sh
│ │ │ │ ├── inputs
│ │ │ │ │ ├── test1
│ │ │ │ │ ├── test10
│ │ │ │ │ ├── test11
│ │ │ │ │ ├── test2
│ │ │ │ │ ├── test3
│ │ │ │ │ ├── test3.bu
│ │ │ │ │ ├── test3.uf
│ │ │ │ │ ├── test3.uu
│ │ │ │ │ ├── test4
│ │ │ │ │ ├── test5
│ │ │ │ │ ├── test6
│ │ │ │ │ ├── test7
│ │ │ │ │ ├── test8
│ │ │ │ │ └── test9
│ │ │ │ └── json.dict
│ │ │ ├── library_config
│ │ │ │ ├── cJSONConfig.cmake.in
│ │ │ │ ├── cJSONConfigVersion.cmake.in
│ │ │ │ ├── libcjson.pc.in
│ │ │ │ └── libcjson_utils.pc.in
│ │ │ ├── test.c
│ │ │ ├── tests
│ │ │ │ ├── CMakeLists.txt
│ │ │ │ ├── cjson_add.c
│ │ │ │ ├── common.h
│ │ │ │ ├── compare_tests.c
│ │ │ │ ├── inputs
│ │ │ │ │ ├── test1
│ │ │ │ │ ├── test1.expected
│ │ │ │ │ ├── test10
│ │ │ │ │ ├── test10.expected
│ │ │ │ │ ├── test11
│ │ │ │ │ ├── test11.expected
│ │ │ │ │ ├── test2
│ │ │ │ │ ├── test2.expected
│ │ │ │ │ ├── test3
│ │ │ │ │ ├── test3.expected
│ │ │ │ │ ├── test4
│ │ │ │ │ ├── test4.expected
│ │ │ │ │ ├── test5
│ │ │ │ │ ├── test5.expected
│ │ │ │ │ ├── test6
│ │ │ │ │ ├── test7
│ │ │ │ │ ├── test7.expected
│ │ │ │ │ ├── test8
│ │ │ │ │ ├── test8.expected
│ │ │ │ │ ├── test9
│ │ │ │ │ └── test9.expected
│ │ │ │ ├── json-patch-tests
│ │ │ │ │ ├── .editorconfig
│ │ │ │ │ ├── .gitignore
│ │ │ │ │ ├── .npmignore
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── cjson-utils-tests.json
│ │ │ │ │ ├── package.json
│ │ │ │ │ ├── spec_tests.json
│ │ │ │ │ └── tests.json
│ │ │ │ ├── json_patch_tests.c
│ │ │ │ ├── misc_tests.c
│ │ │ │ ├── misc_utils_tests.c
│ │ │ │ ├── old_utils_tests.c
│ │ │ │ ├── parse_array.c
│ │ │ │ ├── parse_examples.c
│ │ │ │ ├── parse_hex4.c
│ │ │ │ ├── parse_number.c
│ │ │ │ ├── parse_object.c
│ │ │ │ ├── parse_string.c
│ │ │ │ ├── parse_value.c
│ │ │ │ ├── parse_with_opts.c
│ │ │ │ ├── print_array.c
│ │ │ │ ├── print_number.c
│ │ │ │ ├── print_object.c
│ │ │ │ ├── print_string.c
│ │ │ │ ├── print_value.c
│ │ │ │ ├── readme_examples.c
│ │ │ │ └── unity
│ │ │ │ │ ├── .gitattributes
│ │ │ │ │ ├── .gitignore
│ │ │ │ │ ├── .travis.yml
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── auto
│ │ │ │ │ ├── colour_prompt.rb
│ │ │ │ │ ├── colour_reporter.rb
│ │ │ │ │ ├── generate_config.yml
│ │ │ │ │ ├── generate_module.rb
│ │ │ │ │ ├── generate_test_runner.rb
│ │ │ │ │ ├── parse_output.rb
│ │ │ │ │ ├── stylize_as_junit.rb
│ │ │ │ │ ├── test_file_filter.rb
│ │ │ │ │ ├── type_sanitizer.rb
│ │ │ │ │ ├── unity_test_summary.py
│ │ │ │ │ ├── unity_test_summary.rb
│ │ │ │ │ └── unity_to_junit.py
│ │ │ │ │ ├── docs
│ │ │ │ │ ├── ThrowTheSwitchCodingStandard.md
│ │ │ │ │ ├── UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf
│ │ │ │ │ ├── UnityAssertionsReference.md
│ │ │ │ │ ├── UnityConfigurationGuide.md
│ │ │ │ │ ├── UnityGettingStartedGuide.md
│ │ │ │ │ ├── UnityHelperScriptsGuide.md
│ │ │ │ │ └── license.txt
│ │ │ │ │ ├── examples
│ │ │ │ │ ├── example_1
│ │ │ │ │ │ ├── makefile
│ │ │ │ │ │ ├── readme.txt
│ │ │ │ │ │ └── src
│ │ │ │ │ │ │ ├── ProductionCode.c
│ │ │ │ │ │ │ ├── ProductionCode.h
│ │ │ │ │ │ │ ├── ProductionCode2.c
│ │ │ │ │ │ │ └── ProductionCode2.h
│ │ │ │ │ ├── example_2
│ │ │ │ │ │ ├── makefile
│ │ │ │ │ │ ├── readme.txt
│ │ │ │ │ │ └── src
│ │ │ │ │ │ │ ├── ProductionCode.c
│ │ │ │ │ │ │ ├── ProductionCode.h
│ │ │ │ │ │ │ ├── ProductionCode2.c
│ │ │ │ │ │ │ └── ProductionCode2.h
│ │ │ │ │ ├── example_3
│ │ │ │ │ │ ├── helper
│ │ │ │ │ │ │ ├── UnityHelper.c
│ │ │ │ │ │ │ └── UnityHelper.h
│ │ │ │ │ │ ├── rakefile.rb
│ │ │ │ │ │ ├── rakefile_helper.rb
│ │ │ │ │ │ ├── readme.txt
│ │ │ │ │ │ ├── src
│ │ │ │ │ │ │ ├── ProductionCode.c
│ │ │ │ │ │ │ ├── ProductionCode.h
│ │ │ │ │ │ │ ├── ProductionCode2.c
│ │ │ │ │ │ │ └── ProductionCode2.h
│ │ │ │ │ │ └── target_gcc_32.yml
│ │ │ │ │ └── unity_config.h
│ │ │ │ │ ├── extras
│ │ │ │ │ ├── eclipse
│ │ │ │ │ │ └── error_parsers.txt
│ │ │ │ │ └── fixture
│ │ │ │ │ │ ├── rakefile.rb
│ │ │ │ │ │ ├── rakefile_helper.rb
│ │ │ │ │ │ ├── readme.txt
│ │ │ │ │ │ └── src
│ │ │ │ │ │ ├── unity_fixture.c
│ │ │ │ │ │ ├── unity_fixture.h
│ │ │ │ │ │ ├── unity_fixture_internals.h
│ │ │ │ │ │ └── unity_fixture_malloc_overrides.h
│ │ │ │ │ ├── release
│ │ │ │ │ ├── build.info
│ │ │ │ │ └── version.info
│ │ │ │ │ └── src
│ │ │ │ │ ├── unity.c
│ │ │ │ │ ├── unity.h
│ │ │ │ │ └── unity_internals.h
│ │ │ └── valgrind.supp
│ │ └── component.mk
│ ├── crc
│ │ ├── CRCJISUANQI.zip
│ │ ├── GCRC.zip
│ │ ├── README.md
│ │ ├── crc.c
│ │ └── crc.h
│ ├── debug
│ │ ├── debug.h
│ │ └── debug2.h
│ ├── http-parser
│ │ ├── component.mk
│ │ └── http-parser
│ │ │ ├── .gitignore
│ │ │ ├── .mailmap
│ │ │ ├── .travis.yml
│ │ │ ├── AUTHORS
│ │ │ ├── LICENSE-MIT
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── bench.c
│ │ │ ├── contrib
│ │ │ ├── parsertrace.c
│ │ │ └── url_parser.c
│ │ │ ├── http_parser.c
│ │ │ ├── http_parser.gyp
│ │ │ ├── http_parser.h
│ │ │ └── test.c
│ ├── json11
│ │ ├── json11.cpp
│ │ └── json11.hpp
│ ├── msg_queue
│ │ ├── msg_queue.c
│ │ └── msg_queue.h
│ └── qrcode
│ │ ├── QrCode.cc
│ │ └── QrCode.hpp
├── SYS
│ ├── _K&R_format.bat
│ ├── sys_command_line.c
│ ├── sys_command_line.h
│ ├── sys_queue.c
│ └── sys_queue.h
├── global.h
├── main.c
├── project_conf.h
├── stm32f10x_conf.h
├── stm32f10x_it.c
└── stm32f10x_it.h
└── keilkill.bat
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
3 | *.S text
4 | *.asm text
5 | *.c text
6 | *.cc text
7 | *.cpp text
8 | *.cxx text
9 | *.h text
10 | *.htm text
11 | *.html text
12 | *.in text
13 | *.ld text
14 | *.m4 text
15 | *.mak text
16 | *.mk text
17 | *.py text
18 | *.rb text
19 | *.s text
20 | *.sct text
21 | *.sh text
22 | *.txt text
23 | *.xml text
24 | Makefile text
25 | AUTHORS text
26 | COPYING text
27 |
28 | *.LZO -text
29 | *.Opt -text
30 | *.Uv2 -text
31 | *.ewp -text
32 | *.eww -text
33 | *.vcproj -text
34 | *.bat -text
35 | *.dos -text
36 | *.icf -text
37 | *.inf -text
38 | *.ini -text
39 | *.sct -text
40 | *.xsd -text
41 |
--------------------------------------------------------------------------------
/Doc/Xshell_Advanced.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Doc/Xshell_Advanced.png
--------------------------------------------------------------------------------
/Doc/Xshell_Appearance.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Doc/Xshell_Appearance.png
--------------------------------------------------------------------------------
/Doc/Xshell_Keyboard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Doc/Xshell_Keyboard.png
--------------------------------------------------------------------------------
/Doc/Xshell_Terminal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Doc/Xshell_Terminal.png
--------------------------------------------------------------------------------
/Doc/Xshell_VT_Modes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Doc/Xshell_VT_Modes.png
--------------------------------------------------------------------------------
/Doc/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Doc/demo.gif
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017-2018 ShareCat (sharecat73@gmail.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | 'Software'), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/Libraries/CMSIS/stm32f10x.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Libraries/CMSIS/stm32f10x.h
--------------------------------------------------------------------------------
/Libraries/CMSIS/system_stm32f10x.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file system_stm32f10x.h
4 | * @author MCD Application Team
5 | * @version V3.5.0
6 | * @date 11-March-2011
7 | * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Header File.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | *
© COPYRIGHT 2011 STMicroelectronics
19 | ******************************************************************************
20 | */
21 |
22 | /** @addtogroup CMSIS
23 | * @{
24 | */
25 |
26 | /** @addtogroup stm32f10x_system
27 | * @{
28 | */
29 |
30 | /**
31 | * @brief Define to prevent recursive inclusion
32 | */
33 | #ifndef __SYSTEM_STM32F10X_H
34 | #define __SYSTEM_STM32F10X_H
35 |
36 | #ifdef __cplusplus
37 | extern "C" {
38 | #endif
39 |
40 | /** @addtogroup STM32F10x_System_Includes
41 | * @{
42 | */
43 |
44 | /**
45 | * @}
46 | */
47 |
48 |
49 | /** @addtogroup STM32F10x_System_Exported_types
50 | * @{
51 | */
52 |
53 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
54 |
55 | /**
56 | * @}
57 | */
58 |
59 | /** @addtogroup STM32F10x_System_Exported_Constants
60 | * @{
61 | */
62 |
63 | /**
64 | * @}
65 | */
66 |
67 | /** @addtogroup STM32F10x_System_Exported_Macros
68 | * @{
69 | */
70 |
71 | /**
72 | * @}
73 | */
74 |
75 | /** @addtogroup STM32F10x_System_Exported_Functions
76 | * @{
77 | */
78 |
79 | extern void SystemInit(void);
80 | extern void SystemCoreClockUpdate(void);
81 | /**
82 | * @}
83 | */
84 |
85 | #ifdef __cplusplus
86 | }
87 | #endif
88 |
89 | #endif /*__SYSTEM_STM32F10X_H */
90 |
91 | /**
92 | * @}
93 | */
94 |
95 | /**
96 | * @}
97 | */
98 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
99 |
--------------------------------------------------------------------------------
/Libraries/FWlib/inc/stm32f10x_crc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32f10x_crc.h
4 | * @author MCD Application Team
5 | * @version V3.5.0
6 | * @date 11-March-2011
7 | * @brief This file contains all the functions prototypes for the CRC firmware
8 | * library.
9 | ******************************************************************************
10 | * @attention
11 | *
12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 | *
19 | * © COPYRIGHT 2011 STMicroelectronics
20 | ******************************************************************************
21 | */
22 |
23 | /* Define to prevent recursive inclusion -------------------------------------*/
24 | #ifndef __STM32F10x_CRC_H
25 | #define __STM32F10x_CRC_H
26 |
27 | #ifdef __cplusplus
28 | extern "C" {
29 | #endif
30 |
31 | /* Includes ------------------------------------------------------------------*/
32 | #include "stm32f10x.h"
33 |
34 | /** @addtogroup STM32F10x_StdPeriph_Driver
35 | * @{
36 | */
37 |
38 | /** @addtogroup CRC
39 | * @{
40 | */
41 |
42 | /** @defgroup CRC_Exported_Types
43 | * @{
44 | */
45 |
46 | /**
47 | * @}
48 | */
49 |
50 | /** @defgroup CRC_Exported_Constants
51 | * @{
52 | */
53 |
54 | /**
55 | * @}
56 | */
57 |
58 | /** @defgroup CRC_Exported_Macros
59 | * @{
60 | */
61 |
62 | /**
63 | * @}
64 | */
65 |
66 | /** @defgroup CRC_Exported_Functions
67 | * @{
68 | */
69 |
70 | void CRC_ResetDR(void);
71 | uint32_t CRC_CalcCRC(uint32_t Data);
72 | uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength);
73 | uint32_t CRC_GetCRC(void);
74 | void CRC_SetIDRegister(uint8_t IDValue);
75 | uint8_t CRC_GetIDRegister(void);
76 |
77 | #ifdef __cplusplus
78 | }
79 | #endif
80 |
81 | #endif /* __STM32F10x_CRC_H */
82 | /**
83 | * @}
84 | */
85 |
86 | /**
87 | * @}
88 | */
89 |
90 | /**
91 | * @}
92 | */
93 |
94 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
95 |
--------------------------------------------------------------------------------
/Libraries/FWlib/inc/stm32f10x_wwdg.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32f10x_wwdg.h
4 | * @author MCD Application Team
5 | * @version V3.5.0
6 | * @date 11-March-2011
7 | * @brief This file contains all the functions prototypes for the WWDG firmware
8 | * library.
9 | ******************************************************************************
10 | * @attention
11 | *
12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 | *
19 | * © COPYRIGHT 2011 STMicroelectronics
20 | ******************************************************************************
21 | */
22 |
23 | /* Define to prevent recursive inclusion -------------------------------------*/
24 | #ifndef __STM32F10x_WWDG_H
25 | #define __STM32F10x_WWDG_H
26 |
27 | #ifdef __cplusplus
28 | extern "C" {
29 | #endif
30 |
31 | /* Includes ------------------------------------------------------------------*/
32 | #include "stm32f10x.h"
33 |
34 | /** @addtogroup STM32F10x_StdPeriph_Driver
35 | * @{
36 | */
37 |
38 | /** @addtogroup WWDG
39 | * @{
40 | */
41 |
42 | /** @defgroup WWDG_Exported_Types
43 | * @{
44 | */
45 |
46 | /**
47 | * @}
48 | */
49 |
50 | /** @defgroup WWDG_Exported_Constants
51 | * @{
52 | */
53 |
54 | /** @defgroup WWDG_Prescaler
55 | * @{
56 | */
57 |
58 | #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
59 | #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
60 | #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
61 | #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
62 | #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
63 | ((PRESCALER) == WWDG_Prescaler_2) || \
64 | ((PRESCALER) == WWDG_Prescaler_4) || \
65 | ((PRESCALER) == WWDG_Prescaler_8))
66 | #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
67 | #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
68 |
69 | /**
70 | * @}
71 | */
72 |
73 | /**
74 | * @}
75 | */
76 |
77 | /** @defgroup WWDG_Exported_Macros
78 | * @{
79 | */
80 | /**
81 | * @}
82 | */
83 |
84 | /** @defgroup WWDG_Exported_Functions
85 | * @{
86 | */
87 |
88 | void WWDG_DeInit(void);
89 | void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
90 | void WWDG_SetWindowValue(uint8_t WindowValue);
91 | void WWDG_EnableIT(void);
92 | void WWDG_SetCounter(uint8_t Counter);
93 | void WWDG_Enable(uint8_t Counter);
94 | FlagStatus WWDG_GetFlagStatus(void);
95 | void WWDG_ClearFlag(void);
96 |
97 | #ifdef __cplusplus
98 | }
99 | #endif
100 |
101 | #endif /* __STM32F10x_WWDG_H */
102 |
103 | /**
104 | * @}
105 | */
106 |
107 | /**
108 | * @}
109 | */
110 |
111 | /**
112 | * @}
113 | */
114 |
115 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
116 |
--------------------------------------------------------------------------------
/Libraries/FWlib/src/stm32f10x_flash.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Libraries/FWlib/src/stm32f10x_flash.c
--------------------------------------------------------------------------------
/Libraries/FWlib/src/stm32f10x_i2c.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Libraries/FWlib/src/stm32f10x_i2c.c
--------------------------------------------------------------------------------
/Libraries/FWlib/src/stm32f10x_usart.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Libraries/FWlib/src/stm32f10x_usart.c
--------------------------------------------------------------------------------
/Project/RVMDK/JLinkSettings.ini:
--------------------------------------------------------------------------------
1 | [BREAKPOINTS]
2 | ForceImpTypeAny = 0
3 | ShowInfoWin = 1
4 | EnableFlashBP = 2
5 | BPDuringExecution = 0
6 | [CFI]
7 | CFISize = 0x00
8 | CFIAddr = 0x00
9 | [CPU]
10 | MonModeVTableAddr = 0xFFFFFFFF
11 | MonModeDebug = 0
12 | MaxNumAPs = 0
13 | LowPowerHandlingMode = 0
14 | OverrideMemMap = 0
15 | AllowSimulation = 1
16 | ScriptFile=""
17 | [FLASH]
18 | CacheExcludeSize = 0x00
19 | CacheExcludeAddr = 0x00
20 | MinNumBytesFlashDL = 0
21 | SkipProgOnCRCMatch = 1
22 | VerifyDownload = 1
23 | AllowCaching = 1
24 | EnableFlashDL = 2
25 | Override = 0
26 | Device="ARM7"
27 | [GENERAL]
28 | WorkRAMSize = 0x00
29 | WorkRAMAddr = 0x00
30 | RAMUsageLimit = 0x00
31 | [SWO]
32 | SWOLogFile=""
33 | [MEM]
34 | RdOverrideOrMask = 0x00
35 | RdOverrideAndMask = 0xFFFFFFFF
36 | RdOverrideAddr = 0xFFFFFFFF
37 | WrOverrideOrMask = 0x00
38 | WrOverrideAndMask = 0xFFFFFFFF
39 | WrOverrideAddr = 0xFFFFFFFF
40 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/STM32F103_CLI.axf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/STM32F103_CLI.axf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/STM32F103_CLI.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/STM32F103_CLI.bin
--------------------------------------------------------------------------------
/Project/RVMDK/Output/STM32F103_CLI.build_log.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/STM32F103_CLI.build_log.htm
--------------------------------------------------------------------------------
/Project/RVMDK/Output/STM32F103_CLI.lnp:
--------------------------------------------------------------------------------
1 | --cpu Cortex-M3
2 | ".\output\startup_stm32f10x_md.o"
3 | ".\output\core_cm3.o"
4 | ".\output\system_stm32f10x.o"
5 | ".\output\misc.o"
6 | ".\output\stm32f10x_adc.o"
7 | ".\output\stm32f10x_bkp.o"
8 | ".\output\stm32f10x_can.o"
9 | ".\output\stm32f10x_cec.o"
10 | ".\output\stm32f10x_crc.o"
11 | ".\output\stm32f10x_dac.o"
12 | ".\output\stm32f10x_dbgmcu.o"
13 | ".\output\stm32f10x_dma.o"
14 | ".\output\stm32f10x_exti.o"
15 | ".\output\stm32f10x_flash.o"
16 | ".\output\stm32f10x_fsmc.o"
17 | ".\output\stm32f10x_gpio.o"
18 | ".\output\stm32f10x_i2c.o"
19 | ".\output\stm32f10x_iwdg.o"
20 | ".\output\stm32f10x_pwr.o"
21 | ".\output\stm32f10x_rcc.o"
22 | ".\output\stm32f10x_rtc.o"
23 | ".\output\stm32f10x_sdio.o"
24 | ".\output\stm32f10x_spi.o"
25 | ".\output\stm32f10x_tim.o"
26 | ".\output\stm32f10x_usart.o"
27 | ".\output\stm32f10x_wwdg.o"
28 | ".\output\bsp_led.o"
29 | ".\output\bsp_usart.o"
30 | ".\output\sys_queue.o"
31 | ".\output\sys_command_line.o"
32 | ".\output\app_led.o"
33 | ".\output\main.o"
34 | ".\output\stm32f10x_it.o"
35 | --library_type=microlib --strict --scatter ".\Output\STM32F103_CLI.sct"
36 | --summary_stderr --info summarysizes --map --load_addr_map_info --xref --callgraph --symbols
37 | --info sizes --info totals --info unused --info veneers
38 | --list ".\Listing\STM32F103_CLI.map" -o .\Output\STM32F103_CLI.axf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/STM32F103_CLI.sct:
--------------------------------------------------------------------------------
1 | ; *************************************************************
2 | ; *** Scatter-Loading Description File generated by uVision ***
3 | ; *************************************************************
4 |
5 | LR_IROM1 0x08000000 0x00010000 { ; load region size_region
6 | ER_IROM1 0x08000000 0x00010000 { ; load address = execution address
7 | *.o (RESET, +First)
8 | *(InRoot$$Sections)
9 | .ANY (+RO)
10 | .ANY (+XO)
11 | }
12 | RW_IRAM1 0x20000000 0x00005000 { ; RW data
13 | .ANY (+RW +ZI)
14 | }
15 | }
16 |
17 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/STM32F103_CLI_sct.Bak:
--------------------------------------------------------------------------------
1 | ; *************************************************************
2 | ; *** Scatter-Loading Description File generated by uVision ***
3 | ; *************************************************************
4 |
5 | LR_IROM1 0x08000000 0x00010000 { ; load region size_region
6 | ER_IROM1 0x08000000 0x00010000 { ; load address = execution address
7 | *.o (RESET, +First)
8 | *(InRoot$$Sections)
9 | .ANY (+RO)
10 | }
11 | RW_IRAM1 0x20000000 0x00005000 { ; RW data
12 | .ANY (+RW +ZI)
13 | }
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/app_led.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/app_led.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/app_led.d:
--------------------------------------------------------------------------------
1 | .\output\app_led.o: ..\..\User\APP\app_led.c
2 | .\output\app_led.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdio.h
3 | .\output\app_led.o: ..\..\User\APP\../sys/sys_command_line.h
4 | .\output\app_led.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
5 | .\output\app_led.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\string.h
6 | .\output\app_led.o: ..\..\User\APP\../sys/sys_queue.h
7 | .\output\app_led.o: ..\..\User\global.h
8 | .\output\app_led.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\ctype.h
9 | .\output\app_led.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\time.h
10 | .\output\app_led.o: ..\..\User\project_conf.h
11 | .\output\app_led.o: ..\..\Libraries\CMSIS\stm32f10x.h
12 | .\output\app_led.o: ..\..\Libraries\CMSIS\core_cm3.h
13 | .\output\app_led.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
14 | .\output\app_led.o: ..\..\User\stm32f10x_conf.h
15 | .\output\app_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
16 | .\output\app_led.o: ..\..\Libraries\CMSIS\stm32f10x.h
17 | .\output\app_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
18 | .\output\app_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
19 | .\output\app_led.o: ..\..\Libraries\FWlib\inc\misc.h
20 | .\output\app_led.o: ..\..\User\APP\../bsp/bsp_led.h
21 | .\output\app_led.o: ..\..\User\APP\app_led.h
22 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/app_led.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/app_led.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/bsp_led.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/bsp_led.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/bsp_led.d:
--------------------------------------------------------------------------------
1 | .\output\bsp_led.o: ..\..\User\BSP\bsp_led.c
2 | .\output\bsp_led.o: ..\..\User\BSP\bsp_led.h
3 | .\output\bsp_led.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\bsp_led.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\bsp_led.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\bsp_led.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\bsp_led.o: ..\..\User\stm32f10x_conf.h
8 | .\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\bsp_led.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\bsp_led.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/bsp_led.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/bsp_led.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/bsp_usart.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/bsp_usart.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/bsp_usart.d:
--------------------------------------------------------------------------------
1 | .\output\bsp_usart.o: ..\..\User\BSP\bsp_usart.c
2 | .\output\bsp_usart.o: ..\..\User\BSP\bsp_usart.h
3 | .\output\bsp_usart.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdio.h
4 | .\output\bsp_usart.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
5 | .\output\bsp_usart.o: ..\..\Libraries\CMSIS\stm32f10x.h
6 | .\output\bsp_usart.o: ..\..\Libraries\CMSIS\core_cm3.h
7 | .\output\bsp_usart.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
8 | .\output\bsp_usart.o: ..\..\User\stm32f10x_conf.h
9 | .\output\bsp_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
10 | .\output\bsp_usart.o: ..\..\Libraries\CMSIS\stm32f10x.h
11 | .\output\bsp_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
12 | .\output\bsp_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
13 | .\output\bsp_usart.o: ..\..\Libraries\FWlib\inc\misc.h
14 | .\output\bsp_usart.o: ..\..\User\BSP\../sys/sys_queue.h
15 | .\output\bsp_usart.o: ..\..\User\global.h
16 | .\output\bsp_usart.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\string.h
17 | .\output\bsp_usart.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\ctype.h
18 | .\output\bsp_usart.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\time.h
19 | .\output\bsp_usart.o: ..\..\User\project_conf.h
20 | .\output\bsp_usart.o: ..\..\User\BSP\../sys/sys_command_line.h
21 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/bsp_usart.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/bsp_usart.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/core_cm3.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/core_cm3.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/core_cm3.d:
--------------------------------------------------------------------------------
1 | .\output\core_cm3.o: ..\..\Libraries\CMSIS\core_cm3.c
2 | .\output\core_cm3.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
3 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/core_cm3.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/core_cm3.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/main.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/main.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/main.d:
--------------------------------------------------------------------------------
1 | .\output\main.o: ..\..\User\main.c
2 | .\output\main.o: ..\..\Libraries\CMSIS\stm32f10x.h
3 | .\output\main.o: ..\..\Libraries\CMSIS\core_cm3.h
4 | .\output\main.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
5 | .\output\main.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
6 | .\output\main.o: ..\..\User\stm32f10x_conf.h
7 | .\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
8 | .\output\main.o: ..\..\Libraries\CMSIS\stm32f10x.h
9 | .\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
10 | .\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
11 | .\output\main.o: ..\..\Libraries\FWlib\inc\misc.h
12 | .\output\main.o: ..\..\User\./sys/sys_command_line.h
13 | .\output\main.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdio.h
14 | .\output\main.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\string.h
15 | .\output\main.o: ..\..\User\./sys/sys_queue.h
16 | .\output\main.o: ..\..\User\global.h
17 | .\output\main.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\ctype.h
18 | .\output\main.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\time.h
19 | .\output\main.o: ..\..\User\project_conf.h
20 | .\output\main.o: ..\..\User\./bsp/bsp_usart.h
21 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/main.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/main.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/misc.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/misc.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/misc.d:
--------------------------------------------------------------------------------
1 | .\output\misc.o: ..\..\Libraries\FWlib\src\misc.c
2 | .\output\misc.o: ..\..\Libraries\FWlib\inc\misc.h
3 | .\output\misc.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\misc.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\misc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\misc.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\misc.o: ..\..\User\stm32f10x_conf.h
8 | .\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\misc.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\misc.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/misc.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/misc.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/startup_stm32f10x_md.d:
--------------------------------------------------------------------------------
1 | .\output\startup_stm32f10x_md.o: ..\..\Libraries\CMSIS\startup\startup_stm32f10x_md.s
2 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/startup_stm32f10x_md.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/startup_stm32f10x_md.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_adc.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_adc.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_adc.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_adc.o: ..\..\Libraries\FWlib\src\stm32f10x_adc.c
2 | .\output\stm32f10x_adc.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h
3 | .\output\stm32f10x_adc.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_adc.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_adc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_adc.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_adc.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_adc.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_adc.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_adc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_adc.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_adc.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_adc.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_adc.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_bkp.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_bkp.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_bkp.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_bkp.o: ..\..\Libraries\FWlib\src\stm32f10x_bkp.c
2 | .\output\stm32f10x_bkp.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h
3 | .\output\stm32f10x_bkp.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_bkp.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_bkp.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_bkp.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_bkp.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_bkp.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_bkp.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_bkp.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_bkp.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_bkp.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_bkp.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_bkp.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_can.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_can.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_can.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_can.o: ..\..\Libraries\FWlib\src\stm32f10x_can.c
2 | .\output\stm32f10x_can.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h
3 | .\output\stm32f10x_can.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_can.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_can.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_can.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_can.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_can.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_can.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_can.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_can.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_can.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_can.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_can.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_cec.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_cec.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_cec.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_cec.o: ..\..\Libraries\FWlib\src\stm32f10x_cec.c
2 | .\output\stm32f10x_cec.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h
3 | .\output\stm32f10x_cec.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_cec.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_cec.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_cec.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_cec.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_cec.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_cec.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_cec.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_cec.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_cec.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_cec.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_cec.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_crc.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_crc.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_crc.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_crc.o: ..\..\Libraries\FWlib\src\stm32f10x_crc.c
2 | .\output\stm32f10x_crc.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h
3 | .\output\stm32f10x_crc.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_crc.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_crc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_crc.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_crc.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_crc.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_crc.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_crc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_crc.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_crc.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_crc.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_crc.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dac.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_dac.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dac.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_dac.o: ..\..\Libraries\FWlib\src\stm32f10x_dac.c
2 | .\output\stm32f10x_dac.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h
3 | .\output\stm32f10x_dac.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_dac.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_dac.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_dac.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_dac.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_dac.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_dac.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_dac.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_dac.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_dac.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dac.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_dac.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dbgmcu.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_dbgmcu.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dbgmcu.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\FWlib\src\stm32f10x_dbgmcu.c
2 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h
3 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_dbgmcu.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_dbgmcu.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_dbgmcu.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dbgmcu.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_dbgmcu.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dma.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_dma.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dma.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\src\stm32f10x_dma.c
2 | .\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h
3 | .\output\stm32f10x_dma.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_dma.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_dma.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_dma.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_dma.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_dma.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_dma.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_dma.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_exti.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_exti.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_exti.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\src\stm32f10x_exti.c
2 | .\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h
3 | .\output\stm32f10x_exti.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_exti.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_exti.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_exti.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_exti.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_exti.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_exti.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_exti.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_flash.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_flash.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_flash.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_flash.o: ..\..\Libraries\FWlib\src\stm32f10x_flash.c
2 | .\output\stm32f10x_flash.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h
3 | .\output\stm32f10x_flash.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_flash.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_flash.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_flash.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_flash.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_flash.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_flash.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_flash.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_flash.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_flash.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_flash.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_flash.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_fsmc.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_fsmc.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_fsmc.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\FWlib\src\stm32f10x_fsmc.c
2 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h
3 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_fsmc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_fsmc.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_fsmc.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_fsmc.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_fsmc.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_gpio.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_gpio.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_gpio.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\src\stm32f10x_gpio.c
2 | .\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
3 | .\output\stm32f10x_gpio.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_gpio.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_gpio.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_gpio.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_gpio.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
10 | .\output\stm32f10x_gpio.o: ..\..\Libraries\CMSIS\stm32f10x.h
11 | .\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_gpio.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_gpio.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_i2c.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_i2c.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_i2c.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\src\stm32f10x_i2c.c
2 | .\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h
3 | .\output\stm32f10x_i2c.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_i2c.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_i2c.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_i2c.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_i2c.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_i2c.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_i2c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_i2c.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_it.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_it.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_it.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_it.o: ..\..\User\stm32f10x_it.c
2 | .\output\stm32f10x_it.o: ..\..\User\stm32f10x_it.h
3 | .\output\stm32f10x_it.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_it.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_it.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_it.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_it.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_it.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\misc.h
13 | .\output\stm32f10x_it.o: ..\..\User\usart\../bsp/bsp_usart.h
14 | .\output\stm32f10x_it.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdio.h
15 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_it.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_it.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_iwdg.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_iwdg.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_iwdg.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\FWlib\src\stm32f10x_iwdg.c
2 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h
3 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_iwdg.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_iwdg.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_iwdg.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_iwdg.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_iwdg.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_pwr.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_pwr.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_pwr.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_pwr.o: ..\..\Libraries\FWlib\src\stm32f10x_pwr.c
2 | .\output\stm32f10x_pwr.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h
3 | .\output\stm32f10x_pwr.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_pwr.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_pwr.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_pwr.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_pwr.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_pwr.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_pwr.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_pwr.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_pwr.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_pwr.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_pwr.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_pwr.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_rcc.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_rcc.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_rcc.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\src\stm32f10x_rcc.c
2 | .\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
3 | .\output\stm32f10x_rcc.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_rcc.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_rcc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_rcc.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_rcc.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_rcc.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_rcc.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_rcc.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_rtc.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_rtc.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_rtc.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_rtc.o: ..\..\Libraries\FWlib\src\stm32f10x_rtc.c
2 | .\output\stm32f10x_rtc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h
3 | .\output\stm32f10x_rtc.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_rtc.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_rtc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_rtc.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_rtc.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_rtc.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_rtc.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_rtc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_rtc.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_rtc.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_rtc.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_rtc.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_sdio.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_sdio.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_sdio.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_sdio.o: ..\..\Libraries\FWlib\src\stm32f10x_sdio.c
2 | .\output\stm32f10x_sdio.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h
3 | .\output\stm32f10x_sdio.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_sdio.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_sdio.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_sdio.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_sdio.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_sdio.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_sdio.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_sdio.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_sdio.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_sdio.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_sdio.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_sdio.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_spi.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_spi.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_spi.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_spi.o: ..\..\Libraries\FWlib\src\stm32f10x_spi.c
2 | .\output\stm32f10x_spi.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h
3 | .\output\stm32f10x_spi.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_spi.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_spi.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_spi.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_spi.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_spi.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_spi.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_spi.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_spi.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_spi.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_spi.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_spi.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_tim.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_tim.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_tim.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\src\stm32f10x_tim.c
2 | .\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h
3 | .\output\stm32f10x_tim.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_tim.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_tim.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_tim.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_tim.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_tim.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_tim.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_tim.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_usart.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_usart.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_usart.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\src\stm32f10x_usart.c
2 | .\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
3 | .\output\stm32f10x_usart.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_usart.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_usart.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_usart.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_usart.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_usart.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_usart.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_usart.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_wwdg.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_wwdg.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_wwdg.d:
--------------------------------------------------------------------------------
1 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\FWlib\src\stm32f10x_wwdg.c
2 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h
3 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\CMSIS\stm32f10x.h
4 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\CMSIS\core_cm3.h
5 | .\output\stm32f10x_wwdg.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
6 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
7 | .\output\stm32f10x_wwdg.o: ..\..\User\stm32f10x_conf.h
8 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
9 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\CMSIS\stm32f10x.h
10 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
11 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
12 | .\output\stm32f10x_wwdg.o: ..\..\Libraries\FWlib\inc\misc.h
13 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/stm32f10x_wwdg.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/stm32f10x_wwdg.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/sys_command_line.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/sys_command_line.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/sys_command_line.d:
--------------------------------------------------------------------------------
1 | .\output\sys_command_line.o: ..\..\User\SYS\sys_command_line.c
2 | .\output\sys_command_line.o: ..\..\User\SYS\sys_command_line.h
3 | .\output\sys_command_line.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
4 | .\output\sys_command_line.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdio.h
5 | .\output\sys_command_line.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\string.h
6 | .\output\sys_command_line.o: ..\..\User\SYS\sys_queue.h
7 | .\output\sys_command_line.o: ..\..\User\global.h
8 | .\output\sys_command_line.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\ctype.h
9 | .\output\sys_command_line.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\time.h
10 | .\output\sys_command_line.o: ..\..\User\project_conf.h
11 | .\output\sys_command_line.o: ..\..\Libraries\CMSIS\stm32f10x.h
12 | .\output\sys_command_line.o: ..\..\Libraries\CMSIS\core_cm3.h
13 | .\output\sys_command_line.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
14 | .\output\sys_command_line.o: ..\..\User\stm32f10x_conf.h
15 | .\output\sys_command_line.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
16 | .\output\sys_command_line.o: ..\..\Libraries\CMSIS\stm32f10x.h
17 | .\output\sys_command_line.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
18 | .\output\sys_command_line.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
19 | .\output\sys_command_line.o: ..\..\Libraries\FWlib\inc\misc.h
20 | .\output\sys_command_line.o: ..\..\User\SYS\./../bsp/bsp_usart.h
21 | .\output\sys_command_line.o: ..\..\User\SYS\./../app/app_led.h
22 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/sys_command_line.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/sys_command_line.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/sys_queue.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/sys_queue.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/sys_queue.d:
--------------------------------------------------------------------------------
1 | .\output\sys_queue.o: ..\..\User\SYS\sys_queue.c
2 | .\output\sys_queue.o: ..\..\User\SYS\sys_queue.h
3 | .\output\sys_queue.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
4 | .\output\sys_queue.o: ..\..\User\global.h
5 | .\output\sys_queue.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdio.h
6 | .\output\sys_queue.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\string.h
7 | .\output\sys_queue.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\ctype.h
8 | .\output\sys_queue.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\time.h
9 | .\output\sys_queue.o: ..\..\User\project_conf.h
10 | .\output\sys_queue.o: ..\..\Libraries\CMSIS\stm32f10x.h
11 | .\output\sys_queue.o: ..\..\Libraries\CMSIS\core_cm3.h
12 | .\output\sys_queue.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
13 | .\output\sys_queue.o: ..\..\User\stm32f10x_conf.h
14 | .\output\sys_queue.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
15 | .\output\sys_queue.o: ..\..\Libraries\CMSIS\stm32f10x.h
16 | .\output\sys_queue.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
17 | .\output\sys_queue.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
18 | .\output\sys_queue.o: ..\..\Libraries\FWlib\inc\misc.h
19 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/sys_queue.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/sys_queue.o
--------------------------------------------------------------------------------
/Project/RVMDK/Output/system_stm32f10x.crf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/system_stm32f10x.crf
--------------------------------------------------------------------------------
/Project/RVMDK/Output/system_stm32f10x.d:
--------------------------------------------------------------------------------
1 | .\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\system_stm32f10x.c
2 | .\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\stm32f10x.h
3 | .\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\core_cm3.h
4 | .\output\system_stm32f10x.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
5 | .\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\system_stm32f10x.h
6 | .\output\system_stm32f10x.o: ..\..\User\stm32f10x_conf.h
7 | .\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h
8 | .\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\stm32f10x.h
9 | .\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h
10 | .\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h
11 | .\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\misc.h
12 |
--------------------------------------------------------------------------------
/Project/RVMDK/Output/system_stm32f10x.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Project/RVMDK/Output/system_stm32f10x.o
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # STM32CommandLine
2 |
3 | ___
4 |
5 | ## 1. DEMO
6 | - **1.1** :Connect the MCU and Xshell with UART port.
7 | ```
8 | | | | _.--------._
9 | .-----. | PC |
10 | --|o |----UART_TX----| Xshell |
11 | --| |----UART_RX----| |
12 | '-----' '----------'
13 | | | |
14 | ```
15 | - **1.2** :Check this demo: (My terminal: Xshell, you can also choose SecureCRT if you like)
16 |
17 |
18 | - **1.3** :Here is my configurations of Xshell:
19 | 
20 | 
21 | 
22 | 
23 | 
24 |
25 | ___
26 |
27 | ## 2. 介绍([English](#2-introduction))
28 | - **2.1** :一个**命令行**运行在stm32上,只需要提供一个串口即可实现。
29 | - **2.2** :配合队列处理串口数据,快速响应并退出中断。
30 | - **2.3** :可以移植到任意嵌入式系统,甚至51、AVR、PIC、stm8s、esp8266、esp32、Arduino等。
31 | - **2.4** :命令支持后续扩展,**支持多种颜色**的log输出到终端,方便调试。
32 | - **2.5** :支持历史命令查询,历史命令条数可自定义。
33 |
34 | ___
35 |
36 | ## 2. Introduction
37 |
38 | - **2.1** : This project is a shell, a CLI(command line interface) like linux shell, demo project is based on STM32(a serial com port is needed).
39 | - **2.2** : A fifo queue added for faster IRQ handler.
40 | - **2.3** : You can port this shell into an embeded system, even 51, AVR, PIC, stm8s, esp8266, esp32, Arduino and so on..
41 | - **2.4** : You can also add your own commands, it is helpful for programmers to debug, also support **colorful debug fonts**.
42 | - **2.5** : History command support, and modify the amount of history that you want to save.
43 |
44 | ## 3. TODO
45 | - Login Support.
46 | - Command Completion.
47 | - Need Your Advise.
48 |
--------------------------------------------------------------------------------
/Tool/README.md:
--------------------------------------------------------------------------------
1 |
2 | Some tools that will help you get the bin file :)
3 |
--------------------------------------------------------------------------------
/Tool/TrueSTUDIO_elf2bin.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | if exist .\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210C-EVAL\Debug\STM3210C-EVAL.elf ("arm-elf-objcopy.exe" -O binary ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210C-EVAL\Debug\STM3210C-EVAL.elf" ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210C-EVAL\Debug\STM3210C-EVAL_SysTick.bin")
4 | if exist .\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210B-EVAL\Debug\STM3210B-EVAL.elf ("arm-elf-objcopy.exe" -O binary ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210B-EVAL\Debug\STM3210B-EVAL.elf" ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210B-EVAL\Debug\STM3210B-EVAL_SysTick.bin")
5 | if exist .\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210E-EVAL\Debug\STM3210E-EVAL.elf ("arm-elf-objcopy.exe" -O binary ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210E-EVAL\Debug\STM3210E-EVAL.elf" ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210E-EVAL\Debug\STM3210E-EVAL_SysTick.bin")
6 | if exist .\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210E-EVAL_XL\Debug\STM32F10X_XL.elf ("arm-elf-objcopy.exe" -O binary ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210E-EVAL_XL\Debug\STM32F10X_XL.elf" ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM3210E-EVAL_XL\Debug\STM32F10X_XL_SysTick.bin")
7 | if exist .\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM32L152-EVAL\Debug\STM32L152-EVAL.elf ("arm-elf-objcopy.exe" -O binary ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM32L152-EVAL\Debug\STM32L152-EVAL.elf" ".\..\..\Project\Device_Firmware_Upgrade\binary_template\TrueSTUDIO\STM32L152-EVAL\Debug\STM32L152-EVAL_SysTick.bin")
8 |
9 | pause
10 |
11 |
--------------------------------------------------------------------------------
/Tool/arm-elf-objcopy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Tool/arm-elf-objcopy.exe
--------------------------------------------------------------------------------
/Tool/axf_to_bin.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | REM set fromelf.exe directory
4 | set FROMELF=C:\Keil_v5\ARM\ARMCC\bin\fromelf.exe
5 |
6 | REM check fromelf.exe existence
7 | if exist %FROMELF% (goto STEP2) else (goto STEP1)
8 |
9 | :STEP1
10 | echo fromelf.exe directory error
11 | pause & exit
12 |
13 | :STEP2
14 | REM if .\..\Output\STM32F103_CLI.axf exit, then convert it to bin
15 | if exist .\..\Output\STM32F103_CLI.axf (%FROMELF% ".\..\Output\STM32F103_CLI.axf" --bin --output ".\..\Output\STM32F103_CLI.bin")
16 |
17 | REM if STM32F103_CLI.bin convert success, then copy the bin file to this dir.
18 | if exist .\..\Output\STM32F103_CLI.bin (copy .\..\Output\STM32F103_CLI.bin .\)
19 |
20 | pause & exit
21 |
--------------------------------------------------------------------------------
/Tool/bin2hex-master.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Tool/bin2hex-master.zip
--------------------------------------------------------------------------------
/Tool/cygwin1.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Tool/cygwin1.dll
--------------------------------------------------------------------------------
/Tool/hex2bin.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Tool/hex2bin.exe
--------------------------------------------------------------------------------
/Tool/hex_to_bin.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | REM if .\..\Output\STM32F103_CLI.hex exit, then convert it to bin
4 | if exist .\..\Output\STM32F103_CLI.hex (hex2bin.exe .\..\Output\STM32F103_CLI.hex)
5 |
6 | REM if STM32F103_CLI.bin convert success, then copy the bin file to this dir.
7 | if exist .\..\Output\STM32F103_CLI.bin (copy .\..\Output\STM32F103_CLI.bin .\)
8 |
9 | pause & exit
10 |
--------------------------------------------------------------------------------
/Tool/intelhex-master.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/Tool/intelhex-master.zip
--------------------------------------------------------------------------------
/User/APP/_K&R_format.bat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/APP/_K&R_format.bat
--------------------------------------------------------------------------------
/User/APP/app_led.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/APP/app_led.c
--------------------------------------------------------------------------------
/User/APP/app_led.h:
--------------------------------------------------------------------------------
1 | #ifndef __APP_LED_H
2 | #define __APP_LED_H
3 |
4 | #include "stm32f10x.h"
5 |
6 |
7 | /* LED help */
8 | #define CLI_Cmd_LED \
9 | "[led]\r\n"\
10 | " * led 1: turn on led\r\n"\
11 | " * led 0: turn off led\r\n"\
12 | "\r\n"
13 |
14 |
15 | extern uint8_t CLI_LED_Init(void);
16 | extern uint8_t CLI_LED(void *para, uint8_t len);
17 |
18 |
19 |
20 | #endif /* __APP_LED_H */
21 |
--------------------------------------------------------------------------------
/User/BSP/_K&R_format.bat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/BSP/_K&R_format.bat
--------------------------------------------------------------------------------
/User/BSP/bsp_led.c:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | #include "bsp_led.h"
5 |
6 | /**
7 | * @brief LED GPIO init
8 | * @param null
9 | * @retval null
10 | */
11 | void LED_GPIO_Config(void)
12 | {
13 | GPIO_InitTypeDef GPIO_InitStructure;
14 |
15 | RCC_APB2PeriphClockCmd( LED1_GPIO_CLK, ENABLE);
16 | GPIO_InitStructure.GPIO_Pin = LED1_GPIO_PIN;
17 | GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
18 | GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
19 | GPIO_Init(LED1_GPIO_PORT, &GPIO_InitStructure);
20 |
21 | LED1_OFF;
22 | }
23 | /*********************************************END OF FILE**********************/
24 |
--------------------------------------------------------------------------------
/User/BSP/bsp_led.h:
--------------------------------------------------------------------------------
1 | #ifndef __LED_H
2 | #define __LED_H
3 |
4 | #include "stm32f10x.h"
5 |
6 |
7 | /************************************************************/
8 | #define LED1_GPIO_PORT GPIOC /* GPIO port */
9 | #define LED1_GPIO_CLK RCC_APB2Periph_GPIOC /* GPIO clock */
10 | #define LED1_GPIO_PIN GPIO_Pin_13 /* GPIO pin */
11 |
12 | /************************************************************/
13 |
14 |
15 | /* IO control */
16 | #define digitalHi(p,i) {p->BSRR=i;} //output 1
17 | #define digitalLo(p,i) {p->BRR=i;} //output 0
18 | #define digitalToggle(p,i) {p->ODR ^=i;} //toggle
19 |
20 | #define LED1_TOGGLE digitalToggle(LED1_GPIO_PORT,LED1_GPIO_PIN)
21 | #define LED1_OFF digitalHi(LED1_GPIO_PORT,LED1_GPIO_PIN)
22 | #define LED1_ON digitalLo(LED1_GPIO_PORT,LED1_GPIO_PIN)
23 |
24 |
25 | void LED_GPIO_Config(void);
26 |
27 | #endif /* __LED_H */
28 |
--------------------------------------------------------------------------------
/User/COMPONENT/AES/README.md:
--------------------------------------------------------------------------------
1 | # AES encryption
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/AES/aes.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/AES/aes.c
--------------------------------------------------------------------------------
/User/COMPONENT/AES/aes.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/AES/aes.h
--------------------------------------------------------------------------------
/User/COMPONENT/AT/README.md:
--------------------------------------------------------------------------------
1 | # AT command engine.
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/AT/at.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/AT/at.c
--------------------------------------------------------------------------------
/User/COMPONENT/AT/at.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/AT/at.h
--------------------------------------------------------------------------------
/User/COMPONENT/BASE64/README.md:
--------------------------------------------------------------------------------
1 | base64 encryption
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/BASE64/base64.c:
--------------------------------------------------------------------------------
1 | #include"base64.h"
2 |
3 | const char * base64char = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
4 |
5 | char * base64_encode( unsigned char * bindata, char * base64, int binlength )
6 | {
7 | int i, j;
8 | unsigned char current;
9 |
10 | for ( i = 0, j = 0 ; i < binlength ; i += 3 )
11 | {
12 | current = (bindata[i] >> 2) ;
13 | current &= (unsigned char)0x3F;
14 | base64[j++] = base64char[(int)current];
15 |
16 | current = ( (unsigned char)(bindata[i] << 4 ) ) & ( (unsigned char)0x30 ) ;
17 | if ( i + 1 >= binlength )
18 | {
19 | base64[j++] = base64char[(int)current];
20 | base64[j++] = '=';
21 | base64[j++] = '=';
22 | break;
23 | }
24 | current |= ( (unsigned char)(bindata[i+1] >> 4) ) & ( (unsigned char) 0x0F );
25 | base64[j++] = base64char[(int)current];
26 |
27 | current = ( (unsigned char)(bindata[i+1] << 2) ) & ( (unsigned char)0x3C ) ;
28 | if ( i + 2 >= binlength )
29 | {
30 | base64[j++] = base64char[(int)current];
31 | base64[j++] = '=';
32 | break;
33 | }
34 | current |= ( (unsigned char)(bindata[i+2] >> 6) ) & ( (unsigned char) 0x03 );
35 | base64[j++] = base64char[(int)current];
36 |
37 | current = ( (unsigned char)bindata[i+2] ) & ( (unsigned char)0x3F ) ;
38 | base64[j++] = base64char[(int)current];
39 | }
40 | base64[j] = '\0';
41 | return base64;
42 | }
43 |
44 | int base64_decode( char * base64, unsigned char * bindata )
45 | {
46 | int i, j;
47 | unsigned char k;
48 | unsigned char temp[4];
49 | for ( i = 0, j = 0; base64[i] != '\0' ; i += 4 )
50 | {
51 | memset( temp, 0xFF, sizeof(temp) );
52 | for ( k = 0 ; k < 64 ; k ++ )
53 | {
54 | if ( base64char[k] == base64[i] )
55 | temp[0]= k;
56 | }
57 | for ( k = 0 ; k < 64 ; k ++ )
58 | {
59 | if ( base64char[k] == base64[i+1] )
60 | temp[1]= k;
61 | }
62 | for ( k = 0 ; k < 64 ; k ++ )
63 | {
64 | if ( base64char[k] == base64[i+2] )
65 | temp[2]= k;
66 | }
67 | for ( k = 0 ; k < 64 ; k ++ )
68 | {
69 | if ( base64char[k] == base64[i+3] )
70 | temp[3]= k;
71 | }
72 |
73 | bindata[j++] = ((unsigned char)(((unsigned char)(temp[0] << 2))&0xFC)) |
74 | ((unsigned char)((unsigned char)(temp[1]>>4)&0x03));
75 | if ( base64[i+2] == '=' )
76 | break;
77 |
78 | bindata[j++] = ((unsigned char)(((unsigned char)(temp[1] << 4))&0xF0)) |
79 | ((unsigned char)((unsigned char)(temp[2]>>2)&0x0F));
80 | if ( base64[i+3] == '=' )
81 | break;
82 |
83 | bindata[j++] = ((unsigned char)(((unsigned char)(temp[2] << 6))&0xF0)) |
84 | ((unsigned char)(temp[3]&0x3F));
85 | }
86 | return j;
87 | }
88 |
--------------------------------------------------------------------------------
/User/COMPONENT/BASE64/base64.h:
--------------------------------------------------------------------------------
1 | #ifndef _BASE64_H__
2 | #define _BASE64_H__
3 |
4 | char * base64_encode( unsigned char * bindata, char * base64, int binlength );
5 | int base64_decode( char * base64, unsigned char * bindata );
6 |
7 | #endif
8 |
9 |
--------------------------------------------------------------------------------
/User/COMPONENT/BUTTON/README.md:
--------------------------------------------------------------------------------
1 | # Button scan.
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/BUTTON/button.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/BUTTON/button.h
--------------------------------------------------------------------------------
/User/COMPONENT/MD5/README.md:
--------------------------------------------------------------------------------
1 | # MD5 algorithm
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/MD5/md5.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/MD5/md5.c
--------------------------------------------------------------------------------
/User/COMPONENT/MD5/md5.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/MD5/md5.h
--------------------------------------------------------------------------------
/User/COMPONENT/RSA/README.md:
--------------------------------------------------------------------------------
1 | RSA encryption
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/RSA/Rsa.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/RSA/Rsa.c
--------------------------------------------------------------------------------
/User/COMPONENT/RSA/Rsa.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/RSA/Rsa.h
--------------------------------------------------------------------------------
/User/COMPONENT/SECURE_BOOT/README.md:
--------------------------------------------------------------------------------
1 | secure boot
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/SECURE_BOOT/secure_boot.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file: secure_boot.h
4 | * @author: Cat
5 | * @version: V1.0
6 | * @date: 2018-11-28
7 | * @brief: secure boot
8 | * @attention:
9 | ******************************************************************************
10 | */
11 |
12 |
13 | #ifndef __SECURE_BOOT_H
14 | #define __SECURE_BOOT_H
15 |
16 |
17 | #define SECURE_TRUE 1
18 | #define SECURE_FALSE 0
19 |
20 |
21 | extern uint8_t secure_boot_check(void);
22 |
23 |
24 | #endif /* __SECURE_BOOT_H */
25 |
--------------------------------------------------------------------------------
/User/COMPONENT/SHA1/README.md:
--------------------------------------------------------------------------------
1 | SHA1 encryption
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/SHA1/sha1.h:
--------------------------------------------------------------------------------
1 | #ifndef SHA1_H
2 | #define SHA1_H
3 |
4 | /*
5 | SHA-1 in C
6 | By Steve Reid
7 | 100% Public Domain
8 | */
9 |
10 | #include "stdint.h"
11 |
12 | typedef struct
13 | {
14 | uint32_t state[5];
15 | uint32_t count[2];
16 | unsigned char buffer[64];
17 | } SHA1_CTX;
18 |
19 | void SHA1Transform(
20 | uint32_t state[5],
21 | const unsigned char buffer[64]
22 | );
23 |
24 | void SHA1Init(
25 | SHA1_CTX * context
26 | );
27 |
28 | void SHA1Update(
29 | SHA1_CTX * context,
30 | const unsigned char *data,
31 | uint32_t len
32 | );
33 |
34 | void SHA1Final(
35 | unsigned char digest[20],
36 | SHA1_CTX * context
37 | );
38 |
39 | void SHA1(
40 | const char *str,
41 | int len,
42 | char *hash_out
43 | );
44 |
45 | #endif /* SHA1_H */
46 |
--------------------------------------------------------------------------------
/User/COMPONENT/SHA256/README.md:
--------------------------------------------------------------------------------
1 | SHA256 encryption
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/SHA256/sha256.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SHA-256 implementation.
3 | *
4 | * Copyright (c) 2010 Ilya O. Levin, http://www.literatecode.com
5 | *
6 | * Permission to use, copy, modify, and distribute this software for any
7 | * purpose with or without fee is hereby granted, provided that the above
8 | * copyright notice and this permission notice appear in all copies.
9 | *
10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 | */
18 | #ifdef _MSC_VER
19 | #ifndef uint8_t
20 | typedef unsigned __int8 uint8_t;
21 | #endif
22 | #ifndef uint32_t
23 | typedef unsigned __int32 uint32_t;
24 | #endif
25 | #ifndef uint64_t
26 | typedef __int64 int64_t;
27 | typedef unsigned __int64 uint64_t;
28 | #endif
29 | #else
30 | #include
31 | #endif
32 |
33 | #ifdef __cplusplus
34 | extern "C"
35 | {
36 | #endif
37 |
38 | typedef struct {
39 | uint32_t buf[16];
40 | uint32_t hash[8];
41 | uint32_t len[2];
42 | } sha256_context;
43 |
44 | void sha256_init(sha256_context *);
45 | void sha256_hash(sha256_context *, uint8_t * /* data */, uint32_t /* len */);
46 | void sha256_done(sha256_context *, uint8_t * /* hash */);
47 | void HAL_SHA256_Once(uint8_t * send_buffer,uint32_t send_buffer_len,uint8_t *recv_buffer);
48 | #ifdef __cplusplus
49 | }
50 | #endif
51 |
--------------------------------------------------------------------------------
/User/COMPONENT/SOFTWEAR_UART/README.md:
--------------------------------------------------------------------------------
1 | # Softwear UART.
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/SOFTWEAR_UART/s_uart.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/SOFTWEAR_UART/s_uart.c
--------------------------------------------------------------------------------
/User/COMPONENT/SOFTWEAR_UART/s_uart.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/SOFTWEAR_UART/s_uart.h
--------------------------------------------------------------------------------
/User/COMPONENT/STDIO/README.md:
--------------------------------------------------------------------------------
1 | 1. Implementation of several stdio.h methods, such as printf(), sprintf() and so on.
2 | 2. This reduces the memory footprint of the binary when using those methods, compared to the libc implementation.
3 |
--------------------------------------------------------------------------------
/User/COMPONENT/TEA/README.md:
--------------------------------------------------------------------------------
1 | TEA (Tiny Encryption Algorithm)
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/TEA/tea.h:
--------------------------------------------------------------------------------
1 | /******************************************************************************
2 | * File: TEA_Encrypt.h
3 | * Author: Bean
4 | * Email: notrynohigh@outlook.com
5 | * Every one can use this file free !
6 | ******************************************************************************/
7 |
8 | #ifndef __TEA_H__
9 | #define __TEA_H__
10 |
11 | /******************************************************************************
12 | * basic data type
13 | ******************************************************************************/
14 | typedef unsigned char TEA_U8;
15 | typedef signed char TEA_S8;
16 | typedef unsigned short TEA_U16;
17 | typedef signed short TEA_S16;
18 | typedef unsigned int TEA_U32;
19 | typedef signed int TEA_S32;
20 |
21 | #define TEA_NULL ((void *)0)
22 | /******************************************************************************
23 | * define
24 | ******************************************************************************/
25 | #define TEA_DEBUG_ENABLE 1
26 |
27 | #if TEA_DEBUG_ENABLE
28 | #define TEA_DEBUG(...) printf(__VA_ARGS__)
29 | #else
30 | #define TEA_DEBUG(...)
31 | #endif
32 |
33 | /******************************************************************************
34 | * typedef enum
35 | ******************************************************************************/
36 | typedef enum {
37 | TEA_ERROR,
38 | TEA_SUCCESS,
39 | TEA_MEMORY_ERROR,
40 | TEA_OTHERS
41 | } TEA_ErrorCode_t;
42 |
43 | /******************************************************************************
44 | * public functions
45 | ******************************************************************************/
46 |
47 | TEA_ErrorCode_t TEA_Config128bitsKey(TEA_U8 *key);
48 | TEA_ErrorCode_t TEA_ConfigEncryptTimes(TEA_U8 t);
49 |
50 | TEA_ErrorCode_t TEA_Encrypt(TEA_U8 *text, TEA_U32 size);
51 | TEA_ErrorCode_t TEA_Decrypt(TEA_U8 *text, TEA_U32 size);
52 |
53 | #endif /* __TEA_H__ */
54 | /******************************************************************************
55 | * Reserved !
56 | ******************************************************************************/
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/User/COMPONENT/TIMER/README.md:
--------------------------------------------------------------------------------
1 | # Timer component.
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/TIMER/timer.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 Zibin Zheng
3 | * All rights reserved
4 | */
5 |
6 | #include "timer.h"
7 |
8 | //timer handle list head.
9 | static struct Timer* head_handle = NULL;
10 |
11 | //Timer ticks
12 | static uint32_t _timer_ticks = 0;
13 |
14 | /**
15 | * @brief Initializes the timer struct handle.
16 | * @param handle: the timer handle strcut.
17 | * @param timeout_cb: timeout callback.
18 | * @param repeat: repeat interval time.
19 | * @retval None
20 | */
21 | void timer_init(struct Timer* handle, void(*timeout_cb)(), uint32_t timeout, uint32_t repeat)
22 | {
23 | // memset(handle, sizeof(struct Timer), 0);
24 | handle->timeout_cb = timeout_cb;
25 | handle->timeout = _timer_ticks + timeout;
26 | handle->repeat = repeat;
27 | }
28 |
29 | /**
30 | * @brief Start the timer work, add the handle into work list.
31 | * @param btn: target handle strcut.
32 | * @retval 0: succeed. -1: already exist.
33 | */
34 | int timer_start(struct Timer* handle)
35 | {
36 | struct Timer* target = head_handle;
37 | while(target) {
38 | if(target == handle) return -1; //already exist.
39 | target = target->next;
40 | }
41 | handle->next = head_handle;
42 | head_handle = handle;
43 | return 0;
44 | }
45 |
46 | /**
47 | * @brief Stop the timer work, remove the handle off work list.
48 | * @param handle: target handle strcut.
49 | * @retval None
50 | */
51 | void timer_stop(struct Timer* handle)
52 | {
53 | struct Timer** curr;
54 | for(curr = &head_handle; *curr; ) {
55 | struct Timer* entry = *curr;
56 | if (entry == handle) {
57 | *curr = entry->next;
58 | // free(entry);
59 | } else
60 | curr = &entry->next;
61 | }
62 | }
63 |
64 | /**
65 | * @brief main loop.
66 | * @param None.
67 | * @retval None
68 | */
69 | void timer_loop()
70 | {
71 | struct Timer* target;
72 | for(target=head_handle; target; target=target->next) {
73 | if(_timer_ticks >= target->timeout) {
74 | if(target->repeat == 0) {
75 | timer_stop(target);
76 | } else {
77 | target->timeout = _timer_ticks + target->repeat;
78 | }
79 | target->timeout_cb();
80 | }
81 | }
82 | }
83 |
84 | /**
85 | * @brief background ticks, timer repeat invoking interval 1ms.
86 | * @param None.
87 | * @retval None.
88 | */
89 | void timer_ticks()
90 | {
91 | _timer_ticks++;
92 | }
93 |
94 |
--------------------------------------------------------------------------------
/User/COMPONENT/TIMER/timer.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 Zibin Zheng
3 | * All rights reserved
4 | */
5 |
6 | #ifndef _TIMER_H_
7 | #define _TIMER_H_
8 |
9 | #include "stdint.h"
10 |
11 | typedef struct Timer {
12 | uint32_t timeout;
13 | uint32_t repeat;
14 | void (*timeout_cb)(void);
15 | struct Timer* next;
16 | }Timer;
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | void timer_init(struct Timer* handle, void(*timeout_cb)(), uint32_t timeout, uint32_t repeat);
23 | int timer_start(struct Timer* handle);
24 | void timer_stop(struct Timer* handle);
25 | void timer_ticks(void);
26 | void timer_loop(void);
27 |
28 | // void timer_again(struct Timer* handle);
29 | // void timer_set_repeat(struct Timer* handle, uint32_t repeat);
30 |
31 | #ifdef __cplusplus
32 | }
33 | #endif
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/User/COMPONENT/UTIL/README.md:
--------------------------------------------------------------------------------
1 | # Sone standard library functions.
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/UTIL/util.h:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ifndef __APP_UTIL_H
4 | #define __APP_UTIL_H
5 |
6 | #include
7 |
8 |
9 | /* 大小端转换宏 */
10 | #define BIG_LITTLE_SWAP16(A) ((((uint16_t)(A) & 0xff00) >> 8) \
11 | | (((uint16_t)(A) & 0x00ff) << 8))
12 |
13 | #define BIG_LITTLE_SWAP32(A) ((((uint32_t)(A) & 0xff000000) >> 24) \
14 | | (((uint32_t)(A) & 0x00ff0000) >> 8) \
15 | | (((uint32_t)(A) & 0x0000ff00) << 8) \
16 | | (((uint32_t)(A) & 0x000000ff) << 24))
17 |
18 |
19 | typedef enum bool_ {
20 | false,
21 | true
22 | } bool;
23 |
24 |
25 | extern int big_little_endian_check(void);
26 | extern int str_is_digit(char *p_str);
27 | extern int strcmpnum(char *s, char *t);
28 | extern void my_delete_char(char str[], char target);
29 | extern void my_str_remove_blank(char *str);
30 | extern void my_hex_to_str(unsigned char *pHex, unsigned char *pAscii, int nLen);
31 | extern int my_str_to_hex(char *str, unsigned char *out, unsigned int *outlen);
32 | extern void my_str_to_upper(char* str);
33 | extern void my_str_to_lower(char* str);
34 | extern int my_htoi(char s[]);
35 | extern int my_atoi(char *str);
36 | extern char* my_itoa(int value, char* string, int radix);
37 |
38 |
39 | #endif /* __APP_UTIL_H */
40 |
--------------------------------------------------------------------------------
/User/COMPONENT/assert/HAPAssert.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015-2019 The HomeKit ADK Contributors
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the “License”);
4 | // you may not use this file except in compliance with the License.
5 | // See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors.
6 |
7 | #undef HAP_DISALLOW_USE_IGNORED
8 | #define HAP_DISALLOW_USE_IGNORED 1
9 |
10 | #include "HAPPlatform.h"
11 |
12 | HAP_NORETURN
13 | void HAPAssertAbortInternal(void) {
14 | HAPPlatformAbort();
15 | }
16 |
17 | HAP_NORETURN
18 | void HAPAssertInternal(const char* callerFunction, const char* callerFile, int callerLine) {
19 | HAPLogFault(&kHAPLog_Default, "assertion failed - %s @ %s:%d", callerFunction, callerFile, callerLine);
20 | HAPPlatformAbort();
21 | }
22 |
23 | HAP_NORETURN
24 | void HAPAssertionFailureInternal(const char* callerFunction, const char* callerFile, int callerLine) {
25 | HAPLogFault(&kHAPLog_Default, "assertion failed - %s @ %s:%d", callerFunction, callerFile, callerLine);
26 | HAPPlatformAbort();
27 | }
28 |
29 | HAP_NORETURN
30 | void HAPPreconditionInternal(const char* condition, const char* callerFunction) {
31 | HAPLogFault(&kHAPLog_Default, "precondition failed: %s - %s", condition, callerFunction);
32 | HAPPlatformAbort();
33 | }
34 |
35 | HAP_NORETURN
36 | void HAPPreconditionFailureInternal(const char* callerFunction) {
37 | HAPLogFault(&kHAPLog_Default, "precondition failed - %s", callerFunction);
38 | HAPPlatformAbort();
39 | }
40 |
41 | HAP_NORETURN
42 | void HAPFatalErrorInternal(const char* callerFunction, const char* callerFile, int callerLine) {
43 | HAPLogFault(&kHAPLog_Default, "fatal error - %s @ %s:%d", callerFunction, callerFile, callerLine);
44 | HAPPlatformAbort();
45 | }
46 |
--------------------------------------------------------------------------------
/User/COMPONENT/assert/README.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/base64_2/base64.h:
--------------------------------------------------------------------------------
1 | #ifndef BASE64_H
2 | #define BASE64_H
3 |
4 | #define BASE64_ENCODE_OUT_SIZE(s) ((unsigned int)((((s) + 2) / 3) * 4 + 1))
5 | #define BASE64_DECODE_OUT_SIZE(s) ((unsigned int)(((s) / 4) * 3))
6 |
7 | /*
8 | * out is null-terminated encode string.
9 | * return values is out length, exclusive terminating `\0'
10 | */
11 | unsigned int
12 | base64_encode(const unsigned char *in, unsigned int inlen, char *out);
13 |
14 | /*
15 | * return values is out length
16 | */
17 | unsigned int
18 | base64_decode(const char *in, unsigned int inlen, unsigned char *out);
19 |
20 | #endif /* BASE64_H */
21 |
--------------------------------------------------------------------------------
/User/COMPONENT/base64_2/main.c:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 |
6 | #include "base64.h"
7 |
8 | static void
9 | test(unsigned char *encode, unsigned int encodelen,
10 | char *decode, unsigned int decodelen)
11 | {
12 | char *encode_out;;
13 | unsigned char *decode_out;
14 |
15 | encode_out = malloc(BASE64_ENCODE_OUT_SIZE(encodelen));
16 | decode_out = malloc(BASE64_DECODE_OUT_SIZE(decodelen));
17 | assert(encode_out);
18 | assert(decode_out);
19 |
20 | assert(base64_encode(encode, encodelen, encode_out) == decodelen);
21 | assert(memcmp(encode_out, decode, decodelen) == 0);
22 | assert(base64_decode(decode, decodelen, decode_out) == encodelen);
23 | assert(memcmp(decode_out, encode, encodelen) == 0);
24 |
25 | free(encode_out);
26 | free(decode_out);
27 | }
28 |
29 | int
30 | main(void)
31 | {
32 | test((void *)"", 0, "", 0);
33 | test((void *)"f", 1, "Zg==", 4);
34 | test((void *)"fo", 2, "Zm8=", 4);
35 | test((void *)"foo", 3, "Zm9v", 4);
36 | test((void *)"foob", 4, "Zm9vYg==", 8);
37 | test((void *)"fooba", 5, "Zm9vYmE=", 8);
38 | test((void *)"foobar", 6, "Zm9vYmFy", 8);
39 |
40 | return 0;
41 | }
42 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/.github/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Contribution Guidelines
2 | =======================
3 |
4 | Contributions to cJSON are welcome. If you find a bug or want to improve cJSON in another way, pull requests are appreciated.
5 |
6 | For bigger changes, in order to avoid wasted effort, please open an issue to discuss the technical details before creating a pull request.
7 |
8 | The further sections explain the process in more detail and provides some guidelines on how contributions should look like.
9 |
10 | Branches
11 | --------
12 | There are two branches to be aware of, the `master` and the `develop` branch. The `master` branch is reserved for the latest release, so only make pull requests to the `master` branch for small bug- or security fixes (these are usually just a few lines). In all other cases, please make a pull request to the `develop` branch.
13 |
14 | Coding Style
15 | ------------
16 | The coding style has been discussed in [#24](https://github.com/DaveGamble/cJSON/issues/24). The basics are:
17 |
18 | * Use 4 spaces for indentation
19 | * No oneliners (conditions, loops, variable declarations ...)
20 | * Always use parenthesis for control structures
21 | * Don't implicitly rely on operator precedence, use round brackets in expressions. e.g. `(a > b) && (c < d)` instead of `a>b && cbuffer == NULL))
36 | {
37 | return;
38 | }
39 | buffer_pointer = buffer->buffer + buffer->offset;
40 |
41 | buffer->offset += strlen((const char*)buffer_pointer);
42 | }
43 | ```
44 |
45 | Unit Tests
46 | ----------
47 | cJSON uses the [Unity](https://github.com/ThrowTheSwitch/Unity) library for unit tests. The tests are located in the `tests` directory. In order to add a new test, either add it to one of the existing files (if it fits) or add a new C file for the test. That new file has to be added to the list of tests in `tests/CMakeLists.txt`.
48 |
49 | All new features have to be covered by unit tests.
50 |
51 | Other Notes
52 | -----------
53 | * Internal functions are to be declared static.
54 | * Wrap the return type of external function in the `CJSON_PUBLIC` macro.
55 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/.gitignore:
--------------------------------------------------------------------------------
1 | .svn
2 | test
3 | *.o
4 | *.a
5 | *.so
6 | *.swp
7 | *.patch
8 | tags
9 | *.dylib
10 | build/
11 | cJSON_test
12 | cJSON_test_utils
13 | libcjson.so.*
14 | libcjson_utils.so.*
15 | *.orig
16 | .vscode
17 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/.travis.yml:
--------------------------------------------------------------------------------
1 | dist: trusty
2 | sudo: false
3 | language: c
4 | env:
5 | matrix:
6 | - VALGRIND=On SANITIZERS=Off
7 | - VALGRIND=Off SANITIZERS=Off
8 | - VALGRIND=Off SANITIZERS=On
9 | compiler:
10 | - gcc
11 | - clang
12 | addons:
13 | apt:
14 | packages:
15 | - valgrind
16 | - libasan0
17 | - lib32asan0
18 | # currently not supported on travis:
19 | # - libasan1
20 | # - libasan2
21 | # - libubsan0
22 | - llvm
23 | script:
24 | - mkdir build
25 | - cd build
26 | - cmake .. -DENABLE_CJSON_UTILS=On -DENABLE_VALGRIND="${VALGRIND}" -DENABLE_SAFE_STACK="${VALGRIND}" -DENABLE_SANITIZERS="${SANITIZERS}"
27 | - make
28 | - make test CTEST_OUTPUT_ON_FAILURE=On
29 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/CONTRIBUTORS.md:
--------------------------------------------------------------------------------
1 | Contributors
2 | ============
3 |
4 | Original Author: [Dave Gamble](https://github.com/DaveGamble)
5 | Current Maintainer: [Max Bruckner](https://github.com/FSMaxB)
6 |
7 | * [Ajay Bhargav](https://github.com/ajaybhargav)
8 | * [Alper Akcan](https://github.com/alperakcan)
9 | * [Anton Sergeev](https://github.com/anton-sergeev)
10 | * [Bob Kocisko](https://github.com/bobkocisko)
11 | * [Christian Schulze](https://github.com/ChristianSch)
12 | * [Casperinous](https://github.com/Casperinous)
13 | * [Debora Grosse](https://github.com/DeboraG)
14 | * [dieyushi](https://github.com/dieyushi)
15 | * [Dōngwén Huáng (黄东文)](https://github.com/DongwenHuang)
16 | * Eswar Yaganti
17 | * [Evan Todd](https://github.com/etodd)
18 | * [Fabrice Fontaine](https://github.com/ffontaine)
19 | * Ian Mobley
20 | * Irwan Djadjadi
21 | * [IvanVoid](https://github.com/npi3pak)
22 | * [Jakub Wilk](https://github.com/jwilk)
23 | * [Jiri Zouhar](https://github.com/loigu)
24 | * [Jonathan Fether](https://github.com/jfether)
25 | * [Julián Vásquez](https://github.com/juvasquezg)
26 | * [Kevin Branigan](https://github.com/kbranigan)
27 | * [Kyle Chisholm](https://github.com/ChisholmKyle)
28 | * [Linus Wallgren](https://github.com/ecksun)
29 | * Mike Pontillo
30 | * [Mike Jerris](https://github.com/mjerris)
31 | * [Mike Robinson](https://github.com/mhrobinson)
32 | * Paulo Antonio Alvarez
33 | * [Pawel Winogrodzki](https://github.com/PawelWMS)
34 | * [prefetchnta](https://github.com/prefetchnta)
35 | * [Rafael Leal Dias](https://github.com/rafaeldias)
36 | * [Robin Mallinson](https://github.com/rmallins)
37 | * [Rod Vagg](https://github.com/rvagg)
38 | * [Roland Meertens](https://github.com/rmeertens)
39 | * [Romain Porte](https://github.com/MicroJoe)
40 | * [Simon Ricaldone](https://github.com/simon-p-r)
41 | * [Stephan Gatzka](https://github.com/gatzka)
42 | * [Weston Schmidt](https://github.com/schmidtw)
43 | * [yangfl](https://github.com/yangfl)
44 | * [Zhao Zhixu](https://github.com/zhaozhixu)
45 |
46 | And probably more people on [SourceForge](https://sourceforge.net/p/cjson/bugs/search/?q=status%3Aclosed-rejected+or+status%3Aclosed-out-of-date+or+status%3Awont-fix+or+status%3Aclosed-fixed+or+status%3Aclosed&page=0)
47 |
48 | Also thanks to all the people who reported bugs and suggested new features.
49 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
21 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/appveyor.yml:
--------------------------------------------------------------------------------
1 | os: Visual Studio 2015
2 |
3 | # ENABLE_CUSTOM_COMPILER_FLAGS - on by default
4 | # ENABLE_SANITIZERS - off by default
5 | # ENABLE_PUBLIC_SYMBOLS - on by default
6 | # BUILD_SHARED_LIBS - on by default
7 | # ENABLE_TARGET_EXPORT - on by default
8 | # ENABLE_CJSON_UTILS - off by default
9 | # ENABLE_CJSON_TEST -on by default
10 | # ENABLE_VALGRIND - off by default
11 | # ENABLE_FUZZING - off by default
12 |
13 | environment:
14 | matrix:
15 | - GENERATOR: "Visual Studio 14 2015"
16 | BUILD_SHARED_LIBS: ON
17 | ENABLE_CJSON_TEST: OFF
18 | ENABLE_CJSON_UTILS: ON
19 |
20 | - GENERATOR: "Visual Studio 14 2015"
21 | BUILD_SHARED_LIBS: OFF
22 | ENABLE_CJSON_TEST: OFF
23 | ENABLE_CJSON_UTILS: ON
24 |
25 | - GENERATOR: "Visual Studio 12 2013"
26 | BUILD_SHARED_LIBS: ON
27 | ENABLE_CJSON_TEST: OFF
28 | ENABLE_CJSON_UTILS: ON
29 |
30 | - GENERATOR: "Visual Studio 12 2013"
31 | BUILD_SHARED_LIBS: OFF
32 | ENABLE_CJSON_TEST: OFF
33 | ENABLE_CJSON_UTILS: ON
34 |
35 | - GENERATOR: "Visual Studio 11 2012"
36 | BUILD_SHARED_LIBS: ON
37 | ENABLE_CJSON_TEST: OFF
38 | ENABLE_CJSON_UTILS: ON
39 |
40 | - GENERATOR: "Visual Studio 11 2012"
41 | BUILD_SHARED_LIBS: OFF
42 | ENABLE_CJSON_TEST: OFF
43 | ENABLE_CJSON_UTILS: ON
44 |
45 | - GENERATOR: "Visual Studio 10 2010"
46 | BUILD_SHARED_LIBS: ON
47 | ENABLE_CJSON_TEST: OFF
48 | ENABLE_CJSON_UTILS: ON
49 |
50 | - GENERATOR: "Visual Studio 10 2010"
51 | BUILD_SHARED_LIBS: OFF
52 | ENABLE_CJSON_TEST: OFF
53 | ENABLE_CJSON_UTILS: ON
54 |
55 | - GENERATOR: "Visual Studio 9 2008"
56 | BUILD_SHARED_LIBS: ON
57 | ENABLE_CJSON_TEST: OFF
58 | ENABLE_CJSON_UTILS: ON
59 |
60 | - GENERATOR: "Visual Studio 9 2008"
61 | BUILD_SHARED_LIBS: OFF
62 | ENABLE_CJSON_TEST: OFF
63 | ENABLE_CJSON_UTILS: ON
64 |
65 |
66 | platform:
67 | - x86
68 | - x64
69 | matrix:
70 | exclude:
71 | - platform: x64
72 | GENERATOR: "Visual Studio 9 2008"
73 |
74 | configuration:
75 | - Release
76 |
77 |
78 | build_script:
79 | - ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" }
80 | - cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DENABLE_CJSON_TEST=%ENABLE_CJSON_TEST% -H. -Bbuild
81 | - cmake --build build --config "%CONFIGURATION%"
82 |
83 |
84 | on_failure:
85 | - ps: if(Test-Path builds/CMakeFiles/CMakeOutput.log) { cat builds/CMakeFiles/CMakeOutput.log }
86 | - ps: if(Test-Path builds/CMakeFiles/CMakeError.log) { cat builds/CMakeFiles/CMakeError.log }
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/.gitignore:
--------------------------------------------------------------------------------
1 | afl-build
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | option(ENABLE_FUZZING "Create executables and targets for fuzzing cJSON with afl." Off)
2 | if (ENABLE_FUZZING)
3 | find_program(AFL_FUZZ afl-fuzz)
4 | if ("${AFL_FUZZ}" MATCHES "AFL_FUZZ-NOTFOUND")
5 | message(FATAL_ERROR "Couldn't find afl-fuzz.")
6 | endif()
7 |
8 | add_executable(afl-main afl.c)
9 | target_link_libraries(afl-main "${CJSON_LIB}")
10 |
11 | if (NOT ENABLE_SANITIZERS)
12 | message(FATAL_ERROR "Enable sanitizers with -DENABLE_SANITIZERS=On to do fuzzing.")
13 | endif()
14 |
15 | option(ENABLE_FUZZING_PRINT "Fuzz printing functions together with parser." On)
16 | set(fuzz_print_parameter "no")
17 | if (ENABLE_FUZZING_PRINT)
18 | set(fuzz_print_parameter "yes")
19 | endif()
20 |
21 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error")
22 |
23 | add_custom_target(afl
24 | COMMAND "${AFL_FUZZ}" -i "${CMAKE_CURRENT_SOURCE_DIR}/inputs" -o "${CMAKE_CURRENT_BINARY_DIR}/findings" -x "${CMAKE_CURRENT_SOURCE_DIR}/json.dict" -- "${CMAKE_CURRENT_BINARY_DIR}/afl-main" "@@" "${fuzz_print_parameter}"
25 | DEPENDS afl-main)
26 |
27 |
28 | endif()
29 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/afl-prepare-linux.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -x
4 | echo core | sudo tee /proc/sys/kernel/core_pattern
5 | echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
6 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/afl.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | mkdir -p afl-build || exit 1
4 | cd afl-build || exit 1
5 | #cleanup
6 | rm -r -- *
7 |
8 | CC=afl-clang-fast cmake ../.. -DENABLE_FUZZING=On -DENABLE_SANITIZERS=On -DBUILD_SHARED_LIBS=Off
9 | make afl
10 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test1:
--------------------------------------------------------------------------------
1 | bf{
2 | "glossary": {
3 | "title": "example glossary",
4 | "GlossDiv": {
5 | "title": "S",
6 | "GlossList": {
7 | "GlossEntry": {
8 | "ID": "SGML",
9 | "SortAs": "SGML",
10 | "GlossTerm": "Standard Generalized Markup Language",
11 | "Acronym": "SGML",
12 | "Abbrev": "ISO 8879:1986",
13 | "GlossDef": {
14 | "para": "A meta-markup language, used to create markup languages such as DocBook.",
15 | "GlossSeeAlso": ["GML", "XML"]
16 | },
17 | "GlossSee": "markup"
18 | }
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test10:
--------------------------------------------------------------------------------
1 | bf["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test11:
--------------------------------------------------------------------------------
1 | bf{
2 | "name": "Jack (\"Bee\") Nimble",
3 | "format": {"type": "rect",
4 | "width": 1920,
5 | "height": 1080,
6 | "interlace": false,"frame rate": 24
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test2:
--------------------------------------------------------------------------------
1 | bf{"menu": {
2 | "id": "file",
3 | "value": "File",
4 | "popup": {
5 | "menuitem": [
6 | {"value": "New", "onclick": "CreateNewDoc()"},
7 | {"value": "Open", "onclick": "OpenDoc()"},
8 | {"value": "Close", "onclick": "CloseDoc()"}
9 | ]
10 | }
11 | }}
12 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test3:
--------------------------------------------------------------------------------
1 | bf{"widget": {
2 | "debug": "on",
3 | "window": {
4 | "title": "Sample Konfabulator Widget",
5 | "name": "main_window",
6 | "width": 500,
7 | "height": 500
8 | },
9 | "image": {
10 | "src": "Images/Sun.png",
11 | "name": "sun1",
12 | "hOffset": 250,
13 | "vOffset": 250,
14 | "alignment": "center"
15 | },
16 | "text": {
17 | "data": "Click Here",
18 | "size": 36,
19 | "style": "bold",
20 | "name": "text1",
21 | "hOffset": 250,
22 | "vOffset": 100,
23 | "alignment": "center",
24 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
25 | }
26 | }}
27 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test3.bu:
--------------------------------------------------------------------------------
1 | bu{"widget": {
2 | "debug": "on",
3 | "window": {
4 | "title": "Sample Konfabulator Widget",
5 | "name": "main_window",
6 | "width": 500,
7 | "height": 500
8 | },
9 | "image": {
10 | "src": "Images/Sun.png",
11 | "name": "sun1",
12 | "hOffset": 250,
13 | "vOffset": 250,
14 | "alignment": "center"
15 | },
16 | "text": {
17 | "data": "Click Here",
18 | "size": 36,
19 | "style": "bold",
20 | "name": "text1",
21 | "hOffset": 250,
22 | "vOffset": 100,
23 | "alignment": "center",
24 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
25 | }
26 | }}
27 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test3.uf:
--------------------------------------------------------------------------------
1 | uf{"widget": {
2 | "debug": "on",
3 | "window": {
4 | "title": "Sample Konfabulator Widget",
5 | "name": "main_window",
6 | "width": 500,
7 | "height": 500
8 | },
9 | "image": {
10 | "src": "Images/Sun.png",
11 | "name": "sun1",
12 | "hOffset": 250,
13 | "vOffset": 250,
14 | "alignment": "center"
15 | },
16 | "text": {
17 | "data": "Click Here",
18 | "size": 36,
19 | "style": "bold",
20 | "name": "text1",
21 | "hOffset": 250,
22 | "vOffset": 100,
23 | "alignment": "center",
24 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
25 | }
26 | }}
27 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test3.uu:
--------------------------------------------------------------------------------
1 | uu{"widget": {
2 | "debug": "on",
3 | "window": {
4 | "title": "Sample Konfabulator Widget",
5 | "name": "main_window",
6 | "width": 500,
7 | "height": 500
8 | },
9 | "image": {
10 | "src": "Images/Sun.png",
11 | "name": "sun1",
12 | "hOffset": 250,
13 | "vOffset": 250,
14 | "alignment": "center"
15 | },
16 | "text": {
17 | "data": "Click Here",
18 | "size": 36,
19 | "style": "bold",
20 | "name": "text1",
21 | "hOffset": 250,
22 | "vOffset": 100,
23 | "alignment": "center",
24 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
25 | }
26 | }}
27 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test5:
--------------------------------------------------------------------------------
1 | bf{"menu": {
2 | "header": "SVG Viewer",
3 | "items": [
4 | {"id": "Open"},
5 | {"id": "OpenNew", "label": "Open New"},
6 | null,
7 | {"id": "ZoomIn", "label": "Zoom In"},
8 | {"id": "ZoomOut", "label": "Zoom Out"},
9 | {"id": "OriginalView", "label": "Original View"},
10 | null,
11 | {"id": "Quality"},
12 | {"id": "Pause"},
13 | {"id": "Mute"},
14 | null,
15 | {"id": "Find", "label": "Find..."},
16 | {"id": "FindAgain", "label": "Find Again"},
17 | {"id": "Copy"},
18 | {"id": "CopyAgain", "label": "Copy Again"},
19 | {"id": "CopySVG", "label": "Copy SVG"},
20 | {"id": "ViewSVG", "label": "View SVG"},
21 | {"id": "ViewSource", "label": "View Source"},
22 | {"id": "SaveAs", "label": "Save As"},
23 | null,
24 | {"id": "Help"},
25 | {"id": "About", "label": "About Adobe CVG Viewer..."}
26 | ]
27 | }}
28 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test6:
--------------------------------------------------------------------------------
1 | bf
2 |
3 |
4 |
5 |
9 | Application Error
10 |
11 |
12 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test7:
--------------------------------------------------------------------------------
1 | bf[
2 | {
3 | "precision": "zip",
4 | "Latitude": 37.7668,
5 | "Longitude": -122.3959,
6 | "Address": "",
7 | "City": "SAN FRANCISCO",
8 | "State": "CA",
9 | "Zip": "94107",
10 | "Country": "US"
11 | },
12 | {
13 | "precision": "zip",
14 | "Latitude": 37.371991,
15 | "Longitude": -122.026020,
16 | "Address": "",
17 | "City": "SUNNYVALE",
18 | "State": "CA",
19 | "Zip": "94085",
20 | "Country": "US"
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test8:
--------------------------------------------------------------------------------
1 | bf{
2 | "Image": {
3 | "Width": 800,
4 | "Height": 600,
5 | "Title": "View from 15th Floor",
6 | "Thumbnail": {
7 | "Url": "http:/*www.example.com/image/481989943",
8 | "Height": 125,
9 | "Width": "100"
10 | },
11 | "IDs": [116, 943, 234, 38793]
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/inputs/test9:
--------------------------------------------------------------------------------
1 | bf[
2 | [0, -1, 0],
3 | [1, 0, 0],
4 | [0, 0, 1]
5 | ]
6 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/fuzzing/json.dict:
--------------------------------------------------------------------------------
1 | #
2 | # AFL dictionary for JSON
3 | # -----------------------------
4 | #
5 |
6 | object_start="{"
7 | object_end="}"
8 | object_empty="{}"
9 | object_one_element="{\"one\":1}"
10 | object_two_elements="{\"1\":1,\"2\":2}"
11 | object_separator=":"
12 |
13 | array_start="["
14 | array_end="]"
15 | array_empty="[]"
16 | array_one_element="[1]"
17 | array_two_elements="[1,2]"
18 |
19 | separator=","
20 |
21 | escape_sequence_b="\\b"
22 | escape_sequence_f="\\f"
23 | escape_sequence_n="\\n"
24 | escape_sequence_r="\\r"
25 | escape_sequence_t="\\t"
26 | escape_sequence_quote="\\\""
27 | escape_sequence_backslash="\\\\"
28 | escape_sequence_slash="\\/"
29 | escape_sequence_utf16_base="\\u"
30 | escape_sequence_utf16="\\u12ab"
31 |
32 | number_integer="1"
33 | number_double="1.0"
34 | number_negative_integer="-1"
35 | number_negative_double="-1.0"
36 | number_engineering1="1e1"
37 | number_engineering2="1e-1"
38 | number_positive_integer="+1"
39 | number_positive_double="+1.0"
40 | number_e="e"
41 | number_plus="+"
42 | number_minus="-"
43 | number_separator="."
44 |
45 | null="null"
46 | true="true"
47 | false="false"
48 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/library_config/cJSONConfig.cmake.in:
--------------------------------------------------------------------------------
1 | # Whether the utils lib was build.
2 | set(CJSON_UTILS_FOUND @ENABLE_CJSON_UTILS@)
3 |
4 | # The include directories used by cJSON
5 | set(CJSON_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
6 | set(CJSON_INCLUDE_DIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
7 |
8 | get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
9 |
10 | # The cJSON library
11 | set(CJSON_LIBRARY "@CJSON_LIB@")
12 | if(@ENABLE_TARGET_EXPORT@)
13 | # Include the target
14 | include("${_dir}/cjson.cmake")
15 | endif()
16 |
17 | if(CJSON_UTILS_FOUND)
18 | # The cJSON utils library
19 | set(CJSON_UTILS_LIBRARY @CJSON_UTILS_LIB@)
20 | # All cJSON libraries
21 | set(CJSON_LIBRARIES "@CJSON_UTILS_LIB@" "@CJSON_LIB@")
22 | if(@ENABLE_TARGET_EXPORT@)
23 | # Include the target
24 | include("${_dir}/cjson_utils.cmake")
25 | endif()
26 | else()
27 | # All cJSON libraries
28 | set(CJSON_LIBRARIES "@CJSON_LIB@")
29 | endif()
30 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/library_config/cJSONConfigVersion.cmake.in:
--------------------------------------------------------------------------------
1 | set(PACKAGE_VERSION "@PROJECT_VERSION@")
2 |
3 | # Check whether the requested PACKAGE_FIND_VERSION is compatible
4 | if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
5 | set(PACKAGE_VERSION_COMPATIBLE FALSE)
6 | else()
7 | set(PACKAGE_VERSION_COMPATIBLE TRUE)
8 | if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
9 | set(PACKAGE_VERSION_EXACT TRUE)
10 | endif()
11 | endif()
12 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/library_config/libcjson.pc.in:
--------------------------------------------------------------------------------
1 | libdir=@CMAKE_INSTALL_FULL_LIBDIR@
2 | includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
3 |
4 | Name: libcjson
5 | Version: @PROJECT_VERSION@
6 | Description: Ultralightweight JSON parser in ANSI C
7 | URL: https://github.com/DaveGamble/cJSON
8 | Libs: -L${libdir} -lcjson
9 | Libs.Private: -lm
10 | Cflags: -I${includedir}
11 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/library_config/libcjson_utils.pc.in:
--------------------------------------------------------------------------------
1 | libdir=@CMAKE_INSTALL_FULL_LIBDIR@
2 | includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
3 |
4 | Name: libcjson_utils
5 | Version: @PROJECT_VERSION@
6 | Description: An implementation of JSON Pointer, Patch and Merge Patch based on cJSON.
7 | URL: https://github.com/DaveGamble/cJSON
8 | Libs: -L${libdir} -lcjson_utils
9 | Cflags: -I${includedir}
10 | Requires: libcjson
11 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test1:
--------------------------------------------------------------------------------
1 | {
2 | "glossary": {
3 | "title": "example glossary",
4 | "GlossDiv": {
5 | "title": "S",
6 | "GlossList": {
7 | "GlossEntry": {
8 | "ID": "SGML",
9 | "SortAs": "SGML",
10 | "GlossTerm": "Standard Generalized Markup Language",
11 | "Acronym": "SGML",
12 | "Abbrev": "ISO 8879:1986",
13 | "GlossDef": {
14 | "para": "A meta-markup language, used to create markup languages such as DocBook.",
15 | "GlossSeeAlso": ["GML", "XML"]
16 | },
17 | "GlossSee": "markup"
18 | }
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test1.expected:
--------------------------------------------------------------------------------
1 | {
2 | "glossary": {
3 | "title": "example glossary",
4 | "GlossDiv": {
5 | "title": "S",
6 | "GlossList": {
7 | "GlossEntry": {
8 | "ID": "SGML",
9 | "SortAs": "SGML",
10 | "GlossTerm": "Standard Generalized Markup Language",
11 | "Acronym": "SGML",
12 | "Abbrev": "ISO 8879:1986",
13 | "GlossDef": {
14 | "para": "A meta-markup language, used to create markup languages such as DocBook.",
15 | "GlossSeeAlso": ["GML", "XML"]
16 | },
17 | "GlossSee": "markup"
18 | }
19 | }
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test10:
--------------------------------------------------------------------------------
1 | ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
2 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test10.expected:
--------------------------------------------------------------------------------
1 | ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test11:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Jack (\"Bee\") Nimble",
3 | "format": {"type": "rect",
4 | "width": 1920,
5 | "height": 1080,
6 | "interlace": false,"frame rate": 24
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test11.expected:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Jack (\"Bee\") Nimble",
3 | "format": {
4 | "type": "rect",
5 | "width": 1920,
6 | "height": 1080,
7 | "interlace": false,
8 | "frame rate": 24
9 | }
10 | }
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test2:
--------------------------------------------------------------------------------
1 | {"menu": {
2 | "id": "file",
3 | "value": "File",
4 | "popup": {
5 | "menuitem": [
6 | {"value": "New", "onclick": "CreateNewDoc()"},
7 | {"value": "Open", "onclick": "OpenDoc()"},
8 | {"value": "Close", "onclick": "CloseDoc()"}
9 | ]
10 | }
11 | }}
12 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test2.expected:
--------------------------------------------------------------------------------
1 | {
2 | "menu": {
3 | "id": "file",
4 | "value": "File",
5 | "popup": {
6 | "menuitem": [{
7 | "value": "New",
8 | "onclick": "CreateNewDoc()"
9 | }, {
10 | "value": "Open",
11 | "onclick": "OpenDoc()"
12 | }, {
13 | "value": "Close",
14 | "onclick": "CloseDoc()"
15 | }]
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test3:
--------------------------------------------------------------------------------
1 | {"widget": {
2 | "debug": "on",
3 | "window": {
4 | "title": "Sample Konfabulator Widget",
5 | "name": "main_window",
6 | "width": 500,
7 | "height": 500
8 | },
9 | "image": {
10 | "src": "Images/Sun.png",
11 | "name": "sun1",
12 | "hOffset": 250,
13 | "vOffset": 250,
14 | "alignment": "center"
15 | },
16 | "text": {
17 | "data": "Click Here",
18 | "size": 36,
19 | "style": "bold",
20 | "name": "text1",
21 | "hOffset": 250,
22 | "vOffset": 100,
23 | "alignment": "center",
24 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
25 | }
26 | }}
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test3.expected:
--------------------------------------------------------------------------------
1 | {
2 | "widget": {
3 | "debug": "on",
4 | "window": {
5 | "title": "Sample Konfabulator Widget",
6 | "name": "main_window",
7 | "width": 500,
8 | "height": 500
9 | },
10 | "image": {
11 | "src": "Images/Sun.png",
12 | "name": "sun1",
13 | "hOffset": 250,
14 | "vOffset": 250,
15 | "alignment": "center"
16 | },
17 | "text": {
18 | "data": "Click Here",
19 | "size": 36,
20 | "style": "bold",
21 | "name": "text1",
22 | "hOffset": 250,
23 | "vOffset": 100,
24 | "alignment": "center",
25 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test4.expected:
--------------------------------------------------------------------------------
1 | {
2 | "web-app": {
3 | "servlet": [{
4 | "servlet-name": "cofaxCDS",
5 | "servlet-class": "org.cofax.cds.CDSServlet",
6 | "init-param": {
7 | "configGlossary:installationAt": "Philadelphia, PA",
8 | "configGlossary:adminEmail": "ksm@pobox.com",
9 | "configGlossary:poweredBy": "Cofax",
10 | "configGlossary:poweredByIcon": "/images/cofax.gif",
11 | "configGlossary:staticPath": "/content/static",
12 | "templateProcessorClass": "org.cofax.WysiwygTemplate",
13 | "templateLoaderClass": "org.cofax.FilesTemplateLoader",
14 | "templatePath": "templates",
15 | "templateOverridePath": "",
16 | "defaultListTemplate": "listTemplate.htm",
17 | "defaultFileTemplate": "articleTemplate.htm",
18 | "useJSP": false,
19 | "jspListTemplate": "listTemplate.jsp",
20 | "jspFileTemplate": "articleTemplate.jsp",
21 | "cachePackageTagsTrack": 200,
22 | "cachePackageTagsStore": 200,
23 | "cachePackageTagsRefresh": 60,
24 | "cacheTemplatesTrack": 100,
25 | "cacheTemplatesStore": 50,
26 | "cacheTemplatesRefresh": 15,
27 | "cachePagesTrack": 200,
28 | "cachePagesStore": 100,
29 | "cachePagesRefresh": 10,
30 | "cachePagesDirtyRead": 10,
31 | "searchEngineListTemplate": "forSearchEnginesList.htm",
32 | "searchEngineFileTemplate": "forSearchEngines.htm",
33 | "searchEngineRobotsDb": "WEB-INF/robots.db",
34 | "useDataStore": true,
35 | "dataStoreClass": "org.cofax.SqlDataStore",
36 | "redirectionClass": "org.cofax.SqlRedirection",
37 | "dataStoreName": "cofax",
38 | "dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver",
39 | "dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon",
40 | "dataStoreUser": "sa",
41 | "dataStorePassword": "dataStoreTestQuery",
42 | "dataStoreTestQuery": "SET NOCOUNT ON;select test='test';",
43 | "dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log",
44 | "dataStoreInitConns": 10,
45 | "dataStoreMaxConns": 100,
46 | "dataStoreConnUsageLimit": 100,
47 | "dataStoreLogLevel": "debug",
48 | "maxUrlLength": 500
49 | }
50 | }, {
51 | "servlet-name": "cofaxEmail",
52 | "servlet-class": "org.cofax.cds.EmailServlet",
53 | "init-param": {
54 | "mailHost": "mail1",
55 | "mailHostOverride": "mail2"
56 | }
57 | }, {
58 | "servlet-name": "cofaxAdmin",
59 | "servlet-class": "org.cofax.cds.AdminServlet"
60 | }, {
61 | "servlet-name": "fileServlet",
62 | "servlet-class": "org.cofax.cds.FileServlet"
63 | }, {
64 | "servlet-name": "cofaxTools",
65 | "servlet-class": "org.cofax.cms.CofaxToolsServlet",
66 | "init-param": {
67 | "templatePath": "toolstemplates/",
68 | "log": 1,
69 | "logLocation": "/usr/local/tomcat/logs/CofaxTools.log",
70 | "logMaxSize": "",
71 | "dataLog": 1,
72 | "dataLogLocation": "/usr/local/tomcat/logs/dataLog.log",
73 | "dataLogMaxSize": "",
74 | "removePageCache": "/content/admin/remove?cache=pages&id=",
75 | "removeTemplateCache": "/content/admin/remove?cache=templates&id=",
76 | "fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFolder",
77 | "lookInContext": 1,
78 | "adminGroupID": 4,
79 | "betaServer": true
80 | }
81 | }],
82 | "servlet-mapping": {
83 | "cofaxCDS": "/",
84 | "cofaxEmail": "/cofaxutil/aemail/*",
85 | "cofaxAdmin": "/admin/*",
86 | "fileServlet": "/static/*",
87 | "cofaxTools": "/tools/*"
88 | },
89 | "taglib": {
90 | "taglib-uri": "cofax.tld",
91 | "taglib-location": "/WEB-INF/tlds/cofax.tld"
92 | }
93 | }
94 | }
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test5:
--------------------------------------------------------------------------------
1 | {"menu": {
2 | "header": "SVG Viewer",
3 | "items": [
4 | {"id": "Open"},
5 | {"id": "OpenNew", "label": "Open New"},
6 | null,
7 | {"id": "ZoomIn", "label": "Zoom In"},
8 | {"id": "ZoomOut", "label": "Zoom Out"},
9 | {"id": "OriginalView", "label": "Original View"},
10 | null,
11 | {"id": "Quality"},
12 | {"id": "Pause"},
13 | {"id": "Mute"},
14 | null,
15 | {"id": "Find", "label": "Find..."},
16 | {"id": "FindAgain", "label": "Find Again"},
17 | {"id": "Copy"},
18 | {"id": "CopyAgain", "label": "Copy Again"},
19 | {"id": "CopySVG", "label": "Copy SVG"},
20 | {"id": "ViewSVG", "label": "View SVG"},
21 | {"id": "ViewSource", "label": "View Source"},
22 | {"id": "SaveAs", "label": "Save As"},
23 | null,
24 | {"id": "Help"},
25 | {"id": "About", "label": "About Adobe CVG Viewer..."}
26 | ]
27 | }}
28 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test5.expected:
--------------------------------------------------------------------------------
1 | {
2 | "menu": {
3 | "header": "SVG Viewer",
4 | "items": [{
5 | "id": "Open"
6 | }, {
7 | "id": "OpenNew",
8 | "label": "Open New"
9 | }, null, {
10 | "id": "ZoomIn",
11 | "label": "Zoom In"
12 | }, {
13 | "id": "ZoomOut",
14 | "label": "Zoom Out"
15 | }, {
16 | "id": "OriginalView",
17 | "label": "Original View"
18 | }, null, {
19 | "id": "Quality"
20 | }, {
21 | "id": "Pause"
22 | }, {
23 | "id": "Mute"
24 | }, null, {
25 | "id": "Find",
26 | "label": "Find..."
27 | }, {
28 | "id": "FindAgain",
29 | "label": "Find Again"
30 | }, {
31 | "id": "Copy"
32 | }, {
33 | "id": "CopyAgain",
34 | "label": "Copy Again"
35 | }, {
36 | "id": "CopySVG",
37 | "label": "Copy SVG"
38 | }, {
39 | "id": "ViewSVG",
40 | "label": "View SVG"
41 | }, {
42 | "id": "ViewSource",
43 | "label": "View Source"
44 | }, {
45 | "id": "SaveAs",
46 | "label": "Save As"
47 | }, null, {
48 | "id": "Help"
49 | }, {
50 | "id": "About",
51 | "label": "About Adobe CVG Viewer..."
52 | }]
53 | }
54 | }
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test6:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 | Application Error
10 |
11 |
12 |
15 |
16 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test7:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "precision": "zip",
4 | "Latitude": 37.7668,
5 | "Longitude": -122.3959,
6 | "Address": "",
7 | "City": "SAN FRANCISCO",
8 | "State": "CA",
9 | "Zip": "94107",
10 | "Country": "US"
11 | },
12 | {
13 | "precision": "zip",
14 | "Latitude": 37.371991,
15 | "Longitude": -122.026020,
16 | "Address": "",
17 | "City": "SUNNYVALE",
18 | "State": "CA",
19 | "Zip": "94085",
20 | "Country": "US"
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test7.expected:
--------------------------------------------------------------------------------
1 | [{
2 | "precision": "zip",
3 | "Latitude": 37.7668,
4 | "Longitude": -122.3959,
5 | "Address": "",
6 | "City": "SAN FRANCISCO",
7 | "State": "CA",
8 | "Zip": "94107",
9 | "Country": "US"
10 | }, {
11 | "precision": "zip",
12 | "Latitude": 37.371991,
13 | "Longitude": -122.02602,
14 | "Address": "",
15 | "City": "SUNNYVALE",
16 | "State": "CA",
17 | "Zip": "94085",
18 | "Country": "US"
19 | }]
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test8:
--------------------------------------------------------------------------------
1 | {
2 | "Image": {
3 | "Width": 800,
4 | "Height": 600,
5 | "Title": "View from 15th Floor",
6 | "Thumbnail": {
7 | "Url": "http:/*www.example.com/image/481989943",
8 | "Height": 125,
9 | "Width": "100"
10 | },
11 | "IDs": [116, 943, 234, 38793]
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test8.expected:
--------------------------------------------------------------------------------
1 | {
2 | "Image": {
3 | "Width": 800,
4 | "Height": 600,
5 | "Title": "View from 15th Floor",
6 | "Thumbnail": {
7 | "Url": "http:/*www.example.com/image/481989943",
8 | "Height": 125,
9 | "Width": "100"
10 | },
11 | "IDs": [116, 943, 234, 38793]
12 | }
13 | }
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test9:
--------------------------------------------------------------------------------
1 | [
2 | [0, -1, 0],
3 | [1, 0, 0],
4 | [0, 0, 1]
5 | ]
6 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/inputs/test9.expected:
--------------------------------------------------------------------------------
1 | [[0, -1, 0], [1, 0, 0], [0, 0, 1]]
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/json-patch-tests/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig is awesome: http://EditorConfig.org
2 |
3 | root = true
4 |
5 | [*]
6 | end_of_line = lf
7 | insert_final_newline = true
8 | charset = utf-8
9 | trim_trailing_whitespace = true
10 | indent_style = space
11 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/json-patch-tests/.gitignore:
--------------------------------------------------------------------------------
1 | *~
2 | \#*
3 | !.editorconfig
4 | !.gitignore
5 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/json-patch-tests/.npmignore:
--------------------------------------------------------------------------------
1 | .editorconfig
2 | .gitignore
3 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/json-patch-tests/README.md:
--------------------------------------------------------------------------------
1 | JSON Patch Tests
2 | ================
3 |
4 | These are test cases for implementations of [IETF JSON Patch (RFC6902)](http://tools.ietf.org/html/rfc6902).
5 |
6 | Some implementations can be found at [jsonpatch.com](http://jsonpatch.com).
7 |
8 |
9 | Test Format
10 | -----------
11 |
12 | Each test file is a JSON document that contains an array of test records. A
13 | test record is an object with the following members:
14 |
15 | - doc: The JSON document to test against
16 | - patch: The patch(es) to apply
17 | - expected: The expected resulting document, OR
18 | - error: A string describing an expected error
19 | - comment: A string describing the test
20 | - disabled: True if the test should be skipped
21 |
22 | All fields except 'doc' and 'patch' are optional. Test records consisting only
23 | of a comment are also OK.
24 |
25 |
26 | Files
27 | -----
28 |
29 | - tests.json: the main test file
30 | - spec_tests.json: tests from the RFC6902 spec
31 |
32 |
33 | Writing Tests
34 | -------------
35 |
36 | All tests should have a descriptive comment. Tests should be as
37 | simple as possible - just what's required to test a specific piece of
38 | behavior. If you want to test interacting behaviors, create tests for
39 | each behavior as well as the interaction.
40 |
41 | If an 'error' member is specified, the error text should describe the
42 | error the implementation should raise - *not* what's being tested.
43 | Implementation error strings will vary, but the suggested error should
44 | be easily matched to the implementation error string. Try to avoid
45 | creating error tests that might pass because an incorrect error was
46 | reported.
47 |
48 | Please feel free to contribute!
49 |
50 |
51 | Credits
52 | -------
53 |
54 | The seed test set was adapted from Byron Ruth's
55 | [jsonpatch-js](https://github.com/bruth/jsonpatch-js/blob/master/test.js) and
56 | extended by [Mike McCabe](https://github.com/mikemccabe).
57 |
58 |
59 | License
60 | -------
61 |
62 | Copyright 2014 The Authors
63 |
64 | Licensed under the Apache License, Version 2.0 (the "License");
65 | you may not use this file except in compliance with the License.
66 | You may obtain a copy of the License at
67 |
68 | http://www.apache.org/licenses/LICENSE-2.0
69 |
70 | Unless required by applicable law or agreed to in writing, software
71 | distributed under the License is distributed on an "AS IS" BASIS,
72 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
73 | See the License for the specific language governing permissions and
74 | limitations under the License.
75 |
76 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/json-patch-tests/cjson-utils-tests.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "comment": "1",
4 | "doc": { "foo": "bar"},
5 | "patch": [{ "op": "add", "path": "/baz", "value": "qux" }],
6 | "expected": {"baz": "qux", "foo": "bar"}
7 | },
8 | {
9 | "comment": "2",
10 | "doc": { "foo": [ "bar", "baz" ] },
11 | "patch": [{ "op": "add", "path": "/foo/1", "value": "qux" }],
12 | "expected": {"foo": [ "bar", "qux", "baz" ] }
13 | },
14 | {
15 | "comment": "3",
16 | "doc": {"baz": "qux","foo": "bar"},
17 | "patch": [{ "op": "remove", "path": "/baz" }],
18 | "expected": {"foo": "bar" }
19 | },
20 | {
21 | "comment": "4",
22 | "doc": { "foo": [ "bar", "qux", "baz" ] },
23 | "patch": [{ "op": "remove", "path": "/foo/1" }],
24 | "expected": {"foo": [ "bar", "baz" ] }
25 | },
26 | {
27 | "comment": "5",
28 | "doc": { "baz": "qux","foo": "bar"},
29 | "patch": [{ "op": "replace", "path": "/baz", "value": "boo" }],
30 | "expected": {"baz": "boo","foo": "bar"}
31 | },
32 | {
33 | "comment": "6",
34 | "doc": {"foo": {"bar": "baz","waldo": "fred"},"qux": {"corge": "grault"}},
35 | "patch": [{ "op": "move", "from": "/foo/waldo", "path": "/qux/thud" }],
36 | "expected": {"foo": {"bar": "baz"},"qux": {"corge": "grault","thud": "fred"}}
37 | },
38 | {
39 | "comment": "7",
40 | "doc": { "foo": [ "all", "grass", "cows", "eat" ] },
41 | "patch": [ { "op": "move", "from": "/foo/1", "path": "/foo/3" }],
42 | "expected": { "foo": [ "all", "cows", "eat", "grass" ] }
43 | },
44 | {
45 | "comment": "8",
46 | "doc": {"baz": "qux","foo": [ "a", 2, "c" ]},
47 | "patch": [{ "op": "test", "path": "/baz", "value": "qux" },{ "op": "test", "path": "/foo/1", "value": 2 }]
48 | },
49 | {
50 | "comment": "9",
51 | "doc": { "baz": "qux" },
52 | "patch": [ { "op": "test", "path": "/baz", "value": "bar" }],
53 | "error": "\"bar\" doesn't exist"
54 | },
55 | {
56 | "comment": "10",
57 | "doc": { "foo": "bar" },
58 | "patch": [{ "op": "add", "path": "/child", "value": { "grandchild": { } } }],
59 | "expected": {"foo": "bar","child": {"grandchild": {}}}
60 | },
61 | {
62 | "comment": "11",
63 | "doc": { "foo": "bar" },
64 | "patch": [{ "op": "add", "path": "/baz", "value": "qux", "xyz": 123 }],
65 | "expected": {"foo": "bar","baz": "qux"}
66 | },
67 | {
68 | "comment": "12",
69 | "doc": { "foo": "bar" },
70 | "patch": [{ "op": "add", "path": "/baz/bat", "value": "qux" }],
71 | "error": "Can't add to nonexistent object"
72 | },
73 | {
74 | "comment": "13",
75 | "doc": {"/": 9,"~1": 10},
76 | "patch": [{"op": "test", "path": "/~01", "value": 10}]
77 | },
78 | {
79 | "comment": "14",
80 | "doc": { "foo": ["bar"] },
81 | "patch": [ { "op": "add", "path": "/foo/-", "value": ["abc", "def"] }],
82 | "expected": {"foo": ["bar", ["abc", "def"]] }
83 | },
84 |
85 | {
86 | "comment": "15",
87 | "doc": {"foo": {"bar": 1}},
88 | "patch": [{"op": "add", "path": "/foo/bar/baz", "value": "5"}],
89 | "error": "attempting to add to subfield of non-object"
90 | }
91 | ]
92 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/json-patch-tests/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "json-patch-test-suite",
3 | "version": "1.1.0",
4 | "description": "JSON Patch RFC 6902 test suite",
5 | "repository": "github:json-patch/json-patch-tests",
6 | "homepage": "https://github.com/json-patch/json-patch-tests",
7 | "bugs": "https://github.com/json-patch/json-patch-tests/issues",
8 | "keywords": [
9 | "JSON",
10 | "Patch",
11 | "test",
12 | "suite"
13 | ],
14 | "license": "Apache-2.0"
15 | }
16 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/parse_hex4.c:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy
5 | of this software and associated documentation files (the "Software"), to deal
6 | in the Software without restriction, including without limitation the rights
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the Software is
9 | furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in
12 | all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | THE SOFTWARE.
21 | */
22 |
23 | #include
24 | #include
25 | #include
26 |
27 | #include "unity/examples/unity_config.h"
28 | #include "unity/src/unity.h"
29 | #include "common.h"
30 |
31 | static void parse_hex4_should_parse_all_combinations(void)
32 | {
33 | unsigned int number = 0;
34 | unsigned char digits_lower[6];
35 | unsigned char digits_upper[6];
36 | /* test all combinations */
37 | for (number = 0; number <= 0xFFFF; number++)
38 | {
39 | TEST_ASSERT_EQUAL_INT_MESSAGE(4, sprintf((char*)digits_lower, "%.4x", number), "sprintf failed.");
40 | TEST_ASSERT_EQUAL_INT_MESSAGE(4, sprintf((char*)digits_upper, "%.4X", number), "sprintf failed.");
41 |
42 | TEST_ASSERT_EQUAL_INT_MESSAGE(number, parse_hex4(digits_lower), "Failed to parse lowercase digits.");
43 | TEST_ASSERT_EQUAL_INT_MESSAGE(number, parse_hex4(digits_upper), "Failed to parse uppercase digits.");
44 | }
45 | }
46 |
47 | static void parse_hex4_should_parse_mixed_case(void)
48 | {
49 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"beef"));
50 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"beeF"));
51 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"beEf"));
52 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"beEF"));
53 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"bEef"));
54 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"bEeF"));
55 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"bEEf"));
56 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"bEEF"));
57 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"Beef"));
58 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"BeeF"));
59 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"BeEf"));
60 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"BeEF"));
61 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"BEef"));
62 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"BEeF"));
63 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"BEEf"));
64 | TEST_ASSERT_EQUAL_INT(0xBEEF, parse_hex4((const unsigned char*)"BEEF"));
65 | }
66 |
67 | int main(void)
68 | {
69 | UNITY_BEGIN();
70 | RUN_TEST(parse_hex4_should_parse_all_combinations);
71 | RUN_TEST(parse_hex4_should_parse_mixed_case);
72 | return UNITY_END();
73 | }
74 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/print_string.c:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy
5 | of this software and associated documentation files (the "Software"), to deal
6 | in the Software without restriction, including without limitation the rights
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the Software is
9 | furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in
12 | all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | THE SOFTWARE.
21 | */
22 |
23 | #include "unity/examples/unity_config.h"
24 | #include "unity/src/unity.h"
25 | #include "common.h"
26 |
27 | static void assert_print_string(const char *expected, const char *input)
28 | {
29 | unsigned char printed[1024];
30 | printbuffer buffer = { 0, 0, 0, 0, 0, 0, { 0, 0, 0 } };
31 | buffer.buffer = printed;
32 | buffer.length = sizeof(printed);
33 | buffer.offset = 0;
34 | buffer.noalloc = true;
35 | buffer.hooks = global_hooks;
36 |
37 | TEST_ASSERT_TRUE_MESSAGE(print_string_ptr((const unsigned char*)input, &buffer), "Failed to print string.");
38 | TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, printed, "The printed string isn't as expected.");
39 | }
40 |
41 | static void print_string_should_print_empty_strings(void)
42 | {
43 | assert_print_string("\"\"", "");
44 | assert_print_string("\"\"", NULL);
45 | }
46 |
47 | static void print_string_should_print_ascii(void)
48 | {
49 | char ascii[0x7F];
50 | size_t i = 1;
51 |
52 | /* create ascii table */
53 | for (i = 1; i < 0x7F; i++)
54 | {
55 | ascii[i-1] = (char)i;
56 | }
57 | ascii[0x7F-1] = '\0';
58 |
59 | assert_print_string("\"\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\"",
60 | ascii);
61 | }
62 |
63 | static void print_string_should_print_utf8(void)
64 | {
65 | assert_print_string("\"ü猫慕\"", "ü猫慕");
66 | }
67 |
68 | int main(void)
69 | {
70 | /* initialize cJSON item */
71 | UNITY_BEGIN();
72 |
73 | RUN_TEST(print_string_should_print_empty_strings);
74 | RUN_TEST(print_string_should_print_ascii);
75 | RUN_TEST(print_string_should_print_utf8);
76 |
77 | return UNITY_END();
78 | }
79 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
3 | # These files are text and should be normalized (convert crlf to lf)
4 | *.rb text
5 | *.test text
6 | *.c text
7 | *.cpp text
8 | *.h text
9 | *.txt text
10 | *.yml text
11 | *.s79 text
12 | *.bat text
13 | *.xcl text
14 | *.inc text
15 | *.info text
16 | *.md text
17 | makefile text
18 | rakefile text
19 |
20 |
21 | #These files are binary and should not be normalized
22 | *.doc binary
23 | *.odt binary
24 | *.pdf binary
25 | *.ewd binary
26 | *.eww binary
27 | *.dni binary
28 | *.wsdt binary
29 | *.dbgdt binary
30 | *.mac binary
31 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/.gitignore:
--------------------------------------------------------------------------------
1 | build/
2 | test/sandbox
3 | .DS_Store
4 | examples/example_1/test1.exe
5 | examples/example_1/test2.exe
6 | examples/example_2/all_tests.exe
7 | examples/example_1/test1.out
8 | examples/example_1/test2.out
9 | examples/example_2/all_tests.out
10 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/.travis.yml:
--------------------------------------------------------------------------------
1 | language: c
2 |
3 | matrix:
4 | include:
5 | - os: osx
6 | compiler: clang
7 | osx_image: xcode7.3
8 | - os: linux
9 | dist: trusty
10 | compiler: gcc
11 |
12 | before_install:
13 | - if [ "$TRAVIS_OS_NAME" == "osx" ]; then rvm install 2.1 && rvm use 2.1 && ruby -v; fi
14 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install --assume-yes --quiet gcc-multilib; fi
15 | install:
16 | - gem install rspec
17 | - gem install rubocop
18 | script:
19 | - cd test && rake ci
20 | - make -s
21 | - make -s DEBUG=-m32 #32-bit architecture with 64-bit support
22 | - make -s DEBUG=-m32 UNITY_SUPPORT_64= #32-bit build without 64-bit types
23 | - make -s UNITY_INCLUDE_DOUBLE= # without double
24 | - cd ../extras/fixture/test && rake ci
25 | - make -s default noStdlibMalloc
26 | - make -s C89
27 | - cd ../../../examples/example_1 && make -s ci
28 | - cd ../example_2 && make -s ci
29 | - cd ../example_3 && rake
30 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/auto/colour_reporter.rb:
--------------------------------------------------------------------------------
1 | # ==========================================
2 | # Unity Project - A Test Framework for C
3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4 | # [Released under MIT License. Please refer to license.txt for details]
5 | # ==========================================
6 |
7 | require "#{File.expand_path(File.dirname(__FILE__))}/colour_prompt"
8 |
9 | $colour_output = true
10 |
11 | def report(message)
12 | if !$colour_output
13 | $stdout.puts(message)
14 | else
15 | message = message.join('\n') if message.class == Array
16 | message.each_line do |line|
17 | line.chomp!
18 | colour = case line
19 | when /(?:total\s+)?tests:?\s+(\d+)\s+(?:total\s+)?failures:?\s+\d+\s+Ignored:?/i
20 | Regexp.last_match(1).to_i.zero? ? :green : :red
21 | when /PASS/
22 | :green
23 | when /^OK$/
24 | :green
25 | when /(?:FAIL|ERROR)/
26 | :red
27 | when /IGNORE/
28 | :yellow
29 | when /^(?:Creating|Compiling|Linking)/
30 | :white
31 | else
32 | :silver
33 | end
34 | colour_puts(colour, line)
35 | end
36 | end
37 | $stdout.flush
38 | $stderr.flush
39 | end
40 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/auto/generate_config.yml:
--------------------------------------------------------------------------------
1 | #this is a sample configuration file for generate_module
2 | #you would use it by calling generate_module with the -ygenerate_config.yml option
3 | #files like this are useful for customizing generate_module to your environment
4 | :generate_module:
5 | :defaults:
6 | #these defaults are used in place of any missing options at the command line
7 | :path_src: ../src/
8 | :path_inc: ../src/
9 | :path_tst: ../test/
10 | :update_svn: true
11 | :includes:
12 | #use [] for no additional includes, otherwise list the includes on separate lines
13 | :src:
14 | - Defs.h
15 | - Board.h
16 | :inc: []
17 | :tst:
18 | - Defs.h
19 | - Board.h
20 | - Exception.h
21 | :boilerplates:
22 | #these are inserted at the top of generated files.
23 | #just comment out or remove if not desired.
24 | #use %1$s where you would like the file name to appear (path/extension not included)
25 | :src: |
26 | //-------------------------------------------
27 | // %1$s.c
28 | //-------------------------------------------
29 | :inc: |
30 | //-------------------------------------------
31 | // %1$s.h
32 | //-------------------------------------------
33 | :tst: |
34 | //-------------------------------------------
35 | // Test%1$s.c : Units tests for %1$s.c
36 | //-------------------------------------------
37 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/auto/test_file_filter.rb:
--------------------------------------------------------------------------------
1 | # ==========================================
2 | # Unity Project - A Test Framework for C
3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4 | # [Released under MIT License. Please refer to license.txt for details]
5 | # ==========================================
6 |
7 | require'yaml'
8 |
9 | module RakefileHelpers
10 | class TestFileFilter
11 | def initialize(all_files = false)
12 | @all_files = all_files
13 |
14 | return false unless @all_files
15 | return false unless File.exist?('test_file_filter.yml')
16 |
17 | filters = YAML.load_file('test_file_filter.yml')
18 | @all_files = filters[:all_files]
19 | @only_files = filters[:only_files]
20 | @exclude_files = filters[:exclude_files]
21 | end
22 |
23 | attr_accessor :all_files, :only_files, :exclude_files
24 | end
25 | end
26 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/auto/type_sanitizer.rb:
--------------------------------------------------------------------------------
1 | module TypeSanitizer
2 | def self.sanitize_c_identifier(unsanitized)
3 | # convert filename to valid C identifier by replacing invalid chars with '_'
4 | unsanitized.gsub(/[-\/\\\.\,\s]/, '_')
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/cJSON/cJSON/tests/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/docs/license.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all 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,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_1/makefile:
--------------------------------------------------------------------------------
1 | # ==========================================
2 | # Unity Project - A Test Framework for C
3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4 | # [Released under MIT License. Please refer to license.txt for details]
5 | # ==========================================
6 |
7 | #We try to detect the OS we are running on, and adjust commands as needed
8 | ifeq ($(OS),Windows_NT)
9 | ifeq ($(shell uname -s),) # not in a bash-like shell
10 | CLEANUP = del /F /Q
11 | MKDIR = mkdir
12 | else # in a bash-like shell, like msys
13 | CLEANUP = rm -f
14 | MKDIR = mkdir -p
15 | endif
16 | TARGET_EXTENSION=.exe
17 | else
18 | CLEANUP = rm -f
19 | MKDIR = mkdir -p
20 | TARGET_EXTENSION=.out
21 | endif
22 |
23 | C_COMPILER=gcc
24 | ifeq ($(shell uname -s), Darwin)
25 | C_COMPILER=clang
26 | endif
27 |
28 | UNITY_ROOT=../..
29 |
30 | CFLAGS=-std=c89
31 | CFLAGS += -Wall
32 | CFLAGS += -Wextra
33 | CFLAGS += -Wpointer-arith
34 | CFLAGS += -Wcast-align
35 | CFLAGS += -Wwrite-strings
36 | CFLAGS += -Wswitch-default
37 | CFLAGS += -Wunreachable-code
38 | CFLAGS += -Winit-self
39 | CFLAGS += -Wmissing-field-initializers
40 | CFLAGS += -Wno-unknown-pragmas
41 | CFLAGS += -Wstrict-prototypes
42 | CFLAGS += -Wundef
43 | CFLAGS += -Wold-style-definition
44 |
45 | TARGET_BASE1=test1
46 | TARGET_BASE2=test2
47 | TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)
48 | TARGET2 = $(TARGET_BASE2)$(TARGET_EXTENSION)
49 | SRC_FILES1=$(UNITY_ROOT)/src/unity.c src/ProductionCode.c test/TestProductionCode.c test/test_runners/TestProductionCode_Runner.c
50 | SRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.c
51 | INC_DIRS=-Isrc -I$(UNITY_ROOT)/src
52 | SYMBOLS=
53 |
54 | all: clean default
55 |
56 | default: $(SRC_FILES1) $(SRC_FILES2)
57 | $(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
58 | $(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
59 | - ./$(TARGET1)
60 | ./$(TARGET2)
61 |
62 | test/test_runners/TestProductionCode_Runner.c: test/TestProductionCode.c
63 | ruby $(UNITY_ROOT)/auto/generate_test_runner.rb test/TestProductionCode.c test/test_runners/TestProductionCode_Runner.c
64 | test/test_runners/TestProductionCode2_Runner.c: test/TestProductionCode2.c
65 | ruby $(UNITY_ROOT)/auto/generate_test_runner.rb test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.c
66 |
67 | clean:
68 | $(CLEANUP) $(TARGET1) $(TARGET2)
69 |
70 | ci: CFLAGS += -Werror
71 | ci: default
72 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_1/readme.txt:
--------------------------------------------------------------------------------
1 | Example 1
2 | =========
3 |
4 | Close to the simplest possible example of Unity, using only basic features.
5 | Run make to build & run the example tests.
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_1/src/ProductionCode.c:
--------------------------------------------------------------------------------
1 |
2 | #include "ProductionCode.h"
3 |
4 | int Counter = 0;
5 | int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; /* some obnoxious array to search that is 1-based indexing instead of 0. */
6 |
7 | /* This function is supposed to search through NumbersToFind and find a particular number.
8 | * If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since
9 | * NumbersToFind is indexed from 1. Unfortunately it's broken
10 | * (and should therefore be caught by our tests) */
11 | int FindFunction_WhichIsBroken(int NumberToFind)
12 | {
13 | int i = 0;
14 | while (i <= 8) /* Notice I should have been in braces */
15 | i++;
16 | if (NumbersToFind[i] == NumberToFind) /* Yikes! I'm getting run after the loop finishes instead of during it! */
17 | return i;
18 | return 0;
19 | }
20 |
21 | int FunctionWhichReturnsLocalVariable(void)
22 | {
23 | return Counter;
24 | }
25 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_1/src/ProductionCode.h:
--------------------------------------------------------------------------------
1 |
2 | int FindFunction_WhichIsBroken(int NumberToFind);
3 | int FunctionWhichReturnsLocalVariable(void);
4 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_1/src/ProductionCode2.c:
--------------------------------------------------------------------------------
1 |
2 | #include "ProductionCode2.h"
3 |
4 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction)
5 | {
6 | (void)Poor;
7 | (void)LittleFunction;
8 | /* Since There Are No Tests Yet, This Function Could Be Empty For All We Know.
9 | * Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget */
10 | return (char*)0;
11 | }
12 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_1/src/ProductionCode2.h:
--------------------------------------------------------------------------------
1 |
2 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
3 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_2/makefile:
--------------------------------------------------------------------------------
1 | # ==========================================
2 | # Unity Project - A Test Framework for C
3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4 | # [Released under MIT License. Please refer to license.txt for details]
5 | # ==========================================
6 |
7 | #We try to detect the OS we are running on, and adjust commands as needed
8 | ifeq ($(OS),Windows_NT)
9 | ifeq ($(shell uname -s),) # not in a bash-like shell
10 | CLEANUP = del /F /Q
11 | MKDIR = mkdir
12 | else # in a bash-like shell, like msys
13 | CLEANUP = rm -f
14 | MKDIR = mkdir -p
15 | endif
16 | TARGET_EXTENSION=.exe
17 | else
18 | CLEANUP = rm -f
19 | MKDIR = mkdir -p
20 | TARGET_EXTENSION=.out
21 | endif
22 |
23 | C_COMPILER=gcc
24 | ifeq ($(shell uname -s), Darwin)
25 | C_COMPILER=clang
26 | endif
27 |
28 | UNITY_ROOT=../..
29 |
30 | CFLAGS=-std=c99
31 | CFLAGS += -Wall
32 | CFLAGS += -Wextra
33 | CFLAGS += -Wpointer-arith
34 | CFLAGS += -Wcast-align
35 | CFLAGS += -Wwrite-strings
36 | CFLAGS += -Wswitch-default
37 | CFLAGS += -Wunreachable-code
38 | CFLAGS += -Winit-self
39 | CFLAGS += -Wmissing-field-initializers
40 | CFLAGS += -Wno-unknown-pragmas
41 | CFLAGS += -Wstrict-prototypes
42 | CFLAGS += -Wundef
43 | CFLAGS += -Wold-style-definition
44 |
45 | TARGET_BASE1=all_tests
46 | TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)
47 | SRC_FILES1=\
48 | $(UNITY_ROOT)/src/unity.c \
49 | $(UNITY_ROOT)/extras/fixture/src/unity_fixture.c \
50 | src/ProductionCode.c \
51 | src/ProductionCode2.c \
52 | test/TestProductionCode.c \
53 | test/TestProductionCode2.c \
54 | test/test_runners/TestProductionCode_Runner.c \
55 | test/test_runners/TestProductionCode2_Runner.c \
56 | test/test_runners/all_tests.c
57 | INC_DIRS=-Isrc -I$(UNITY_ROOT)/src -I$(UNITY_ROOT)/extras/fixture/src
58 | SYMBOLS=
59 |
60 | all: clean default
61 |
62 | default:
63 | $(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
64 | - ./$(TARGET1) -v
65 |
66 | clean:
67 | $(CLEANUP) $(TARGET1)
68 |
69 | ci: CFLAGS += -Werror
70 | ci: default
71 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_2/readme.txt:
--------------------------------------------------------------------------------
1 | Example 2
2 | =========
3 |
4 | Same as the first example, but now using Unity's test fixture to group tests
5 | together. Using the test fixture also makes writing test runners much easier.
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_2/src/ProductionCode.c:
--------------------------------------------------------------------------------
1 |
2 | #include "ProductionCode.h"
3 |
4 | int Counter = 0;
5 | int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; //some obnoxious array to search that is 1-based indexing instead of 0.
6 |
7 | // This function is supposed to search through NumbersToFind and find a particular number.
8 | // If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since
9 | // NumbersToFind is indexed from 1. Unfortunately it's broken
10 | // (and should therefore be caught by our tests)
11 | int FindFunction_WhichIsBroken(int NumberToFind)
12 | {
13 | int i = 0;
14 | while (i <= 8) //Notice I should have been in braces
15 | i++;
16 | if (NumbersToFind[i] == NumberToFind) //Yikes! I'm getting run after the loop finishes instead of during it!
17 | return i;
18 | return 0;
19 | }
20 |
21 | int FunctionWhichReturnsLocalVariable(void)
22 | {
23 | return Counter;
24 | }
25 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_2/src/ProductionCode.h:
--------------------------------------------------------------------------------
1 |
2 | int FindFunction_WhichIsBroken(int NumberToFind);
3 | int FunctionWhichReturnsLocalVariable(void);
4 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_2/src/ProductionCode2.c:
--------------------------------------------------------------------------------
1 |
2 | #include "ProductionCode2.h"
3 |
4 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction)
5 | {
6 | (void)Poor;
7 | (void)LittleFunction;
8 | //Since There Are No Tests Yet, This Function Could Be Empty For All We Know.
9 | // Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget
10 | return (char*)0;
11 | }
12 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_2/src/ProductionCode2.h:
--------------------------------------------------------------------------------
1 |
2 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
3 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/helper/UnityHelper.c:
--------------------------------------------------------------------------------
1 | #include "unity.h"
2 | #include "UnityHelper.h"
3 | #include
4 | #include
5 |
6 | void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line)
7 | {
8 | UNITY_TEST_ASSERT_EQUAL_INT(expected.x, actual.x, line, "Example Struct Failed For Field x");
9 | UNITY_TEST_ASSERT_EQUAL_INT(expected.y, actual.y, line, "Example Struct Failed For Field y");
10 | }
11 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/helper/UnityHelper.h:
--------------------------------------------------------------------------------
1 | #ifndef _TESTHELPER_H
2 | #define _TESTHELPER_H
3 |
4 | #include "Types.h"
5 |
6 | void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line);
7 |
8 | #define UNITY_TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual, line, message) AssertEqualExampleStruct(expected, actual, line);
9 |
10 | #define TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual) UNITY_TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual, __LINE__, NULL);
11 |
12 | #endif // _TESTHELPER_H
13 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/rakefile.rb:
--------------------------------------------------------------------------------
1 | HERE = File.expand_path(File.dirname(__FILE__)) + '/'
2 | UNITY_ROOT = File.expand_path(File.dirname(__FILE__)) + '/../..'
3 |
4 | require 'rake'
5 | require 'rake/clean'
6 | require HERE + 'rakefile_helper'
7 |
8 | TEMP_DIRS = [
9 | File.join(HERE, 'build')
10 | ].freeze
11 |
12 | TEMP_DIRS.each do |dir|
13 | directory(dir)
14 | CLOBBER.include(dir)
15 | end
16 |
17 | task prepare_for_tests: TEMP_DIRS
18 |
19 | include RakefileHelpers
20 |
21 | # Load default configuration, for now
22 | DEFAULT_CONFIG_FILE = 'target_gcc_32.yml'.freeze
23 | configure_toolchain(DEFAULT_CONFIG_FILE)
24 |
25 | task unit: [:prepare_for_tests] do
26 | run_tests unit_test_files
27 | end
28 |
29 | desc 'Generate test summary'
30 | task :summary do
31 | report_summary
32 | end
33 |
34 | desc 'Build and test Unity'
35 | task all: %i(clean unit summary)
36 | task default: %i(clobber all)
37 | task ci: [:default]
38 | task cruise: [:default]
39 |
40 | desc 'Load configuration'
41 | task :config, :config_file do |_t, args|
42 | configure_toolchain(args[:config_file])
43 | end
44 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/readme.txt:
--------------------------------------------------------------------------------
1 | Example 3
2 | =========
3 |
4 | This example project gives an example of some passing, ignored, and failing tests.
5 | It's simple and meant for you to look over and get an idea for what all of this stuff does.
6 |
7 | You can build and test using rake. The rake version will let you test with gcc or a couple
8 | versions of IAR. You can tweak the yaml files to get those versions running.
9 |
10 | Ruby is required if you're using the rake version (obviously). This version shows off most of
11 | Unity's advanced features (automatically creating test runners, fancy summaries, etc.)
12 | Without ruby, you have to maintain your own test runners. Do that for a while and you'll learn
13 | why you really want to start using the Ruby tools.
14 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/src/ProductionCode.c:
--------------------------------------------------------------------------------
1 |
2 | #include "ProductionCode.h"
3 |
4 | int Counter = 0;
5 | int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; //some obnoxious array to search that is 1-based indexing instead of 0.
6 |
7 | // This function is supposed to search through NumbersToFind and find a particular number.
8 | // If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since
9 | // NumbersToFind is indexed from 1. Unfortunately it's broken
10 | // (and should therefore be caught by our tests)
11 | int FindFunction_WhichIsBroken(int NumberToFind)
12 | {
13 | int i = 0;
14 | while (i <= 8) //Notice I should have been in braces
15 | i++;
16 | if (NumbersToFind[i] == NumberToFind) //Yikes! I'm getting run after the loop finishes instead of during it!
17 | return i;
18 | return 0;
19 | }
20 |
21 | int FunctionWhichReturnsLocalVariable(void)
22 | {
23 | return Counter;
24 | }
25 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/src/ProductionCode.h:
--------------------------------------------------------------------------------
1 |
2 | int FindFunction_WhichIsBroken(int NumberToFind);
3 | int FunctionWhichReturnsLocalVariable(void);
4 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/src/ProductionCode2.c:
--------------------------------------------------------------------------------
1 |
2 | #include "ProductionCode2.h"
3 |
4 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction)
5 | {
6 | (void)Poor;
7 | (void)LittleFunction;
8 | //Since There Are No Tests Yet, This Function Could Be Empty For All We Know.
9 | // Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget
10 | return (char*)0;
11 | }
12 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/src/ProductionCode2.h:
--------------------------------------------------------------------------------
1 |
2 | char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
3 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/examples/example_3/target_gcc_32.yml:
--------------------------------------------------------------------------------
1 | # Copied from ~Unity/targets/gcc_32.yml
2 | unity_root: &unity_root '../..'
3 | compiler:
4 | path: gcc
5 | source_path: 'src/'
6 | unit_tests_path: &unit_tests_path 'test/'
7 | build_path: &build_path 'build/'
8 | options:
9 | - '-c'
10 | - '-m32'
11 | - '-Wall'
12 | - '-Wno-address'
13 | - '-std=c99'
14 | - '-pedantic'
15 | includes:
16 | prefix: '-I'
17 | items:
18 | - 'src/'
19 | - '../../src/'
20 | - *unit_tests_path
21 | defines:
22 | prefix: '-D'
23 | items:
24 | - UNITY_INCLUDE_DOUBLE
25 | - UNITY_SUPPORT_TEST_CASES
26 | object_files:
27 | prefix: '-o'
28 | extension: '.o'
29 | destination: *build_path
30 | linker:
31 | path: gcc
32 | options:
33 | - -lm
34 | - '-m32'
35 | includes:
36 | prefix: '-I'
37 | object_files:
38 | path: *build_path
39 | extension: '.o'
40 | bin_files:
41 | prefix: '-o'
42 | extension: '.exe'
43 | destination: *build_path
44 | colour: true
45 | :unity:
46 | :plugins: []
47 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/extras/eclipse/error_parsers.txt:
--------------------------------------------------------------------------------
1 | Eclipse error parsers
2 | =====================
3 |
4 | These are a godsend for extracting & quickly navigating to
5 | warnings & error messages from console output. Unforunately
6 | I don't know how to write an Eclipse plugin so you'll have
7 | to add them manually.
8 |
9 | To add a console parser to Eclipse, go to Window --> Preferences
10 | --> C/C++ --> Build --> Settings. Click on the 'Error Parsers'
11 | tab and then click the 'Add...' button. See the table below for
12 | the parser fields to add.
13 |
14 | Eclipse will only parse the console output during a build, so
15 | running your unit tests must be part of your build process.
16 | Either add this to your make/rakefile, or add it as a post-
17 | build step in your Eclipse project settings.
18 |
19 |
20 | Unity unit test error parsers
21 | -----------------------------
22 | Severity Pattern File Line Description
23 | -------------------------------------------------------------------------------
24 | Error (\.+)(.*?):(\d+):(.*?):FAIL: (.*) $2 $3 $5
25 | Warning (\.+)(.*?):(\d+):(.*?):IGNORE: (.*) $2 $3 $5
26 | Warning (\.+)(.*?):(\d+):(.*?):IGNORE\s*$ $2 $3 Ignored test
27 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/extras/fixture/rakefile.rb:
--------------------------------------------------------------------------------
1 | # ==========================================
2 | # Unity Project - A Test Framework for C
3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4 | # [Released under MIT License. Please refer to license.txt for details]
5 | # ==========================================
6 |
7 | HERE = File.expand_path(File.dirname(__FILE__)) + '/'
8 |
9 | require 'rake'
10 | require 'rake/clean'
11 | require 'rake/testtask'
12 | require HERE + 'rakefile_helper'
13 |
14 | TEMP_DIRS = [
15 | File.join(HERE, 'build')
16 | ].freeze
17 |
18 | TEMP_DIRS.each do |dir|
19 | directory(dir)
20 | CLOBBER.include(dir)
21 | end
22 |
23 | task prepare_for_tests: TEMP_DIRS
24 |
25 | include RakefileHelpers
26 |
27 | # Load default configuration, for now
28 | DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'.freeze
29 | configure_toolchain(DEFAULT_CONFIG_FILE)
30 |
31 | task unit: [:prepare_for_tests] do
32 | run_tests
33 | end
34 |
35 | desc 'Build and test Unity Framework'
36 | task all: %i(clean unit)
37 | task default: %i(clobber all)
38 | task ci: %i(no_color default)
39 | task cruise: %i(no_color default)
40 |
41 | desc 'Load configuration'
42 | task :config, :config_file do |_t, args|
43 | configure_toolchain(args[:config_file])
44 | end
45 |
46 | task :no_color do
47 | $colour_output = false
48 | end
49 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/extras/fixture/readme.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010 James Grenning and Contributed to Unity Project
2 |
3 | Unity Project - A Test Framework for C
4 | Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
5 | [Released under MIT License. Please refer to license.txt for details]
6 |
7 | This Framework is an optional add-on to Unity. By including unity_framework.h in place of unity.h,
8 | you may now work with Unity in a manner similar to CppUTest. This framework adds the concepts of
9 | test groups and gives finer control of your tests over the command line.
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/extras/fixture/src/unity_fixture_internals.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2010 James Grenning and Contributed to Unity Project
2 | * ==========================================
3 | * Unity Project - A Test Framework for C
4 | * Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
5 | * [Released under MIT License. Please refer to license.txt for details]
6 | * ========================================== */
7 |
8 | #ifndef UNITY_FIXTURE_INTERNALS_H_
9 | #define UNITY_FIXTURE_INTERNALS_H_
10 |
11 | #ifdef __cplusplus
12 | extern "C"
13 | {
14 | #endif
15 |
16 | struct UNITY_FIXTURE_T
17 | {
18 | int Verbose;
19 | unsigned int RepeatCount;
20 | const char* NameFilter;
21 | const char* GroupFilter;
22 | };
23 | extern struct UNITY_FIXTURE_T UnityFixture;
24 |
25 | typedef void unityfunction(void);
26 | void UnityTestRunner(unityfunction* setup,
27 | unityfunction* body,
28 | unityfunction* teardown,
29 | const char* printableName,
30 | const char* group,
31 | const char* name,
32 | const char* file, unsigned int line);
33 |
34 | void UnityIgnoreTest(const char* printableName, const char* group, const char* name);
35 | void UnityMalloc_StartTest(void);
36 | void UnityMalloc_EndTest(void);
37 | int UnityGetCommandLineOptions(int argc, const char* argv[]);
38 | void UnityConcludeFixtureTest(void);
39 |
40 | void UnityPointer_Set(void** ptr, void* newValue, UNITY_LINE_TYPE line);
41 | void UnityPointer_UndoAllSets(void);
42 | void UnityPointer_Init(void);
43 | #ifndef UNITY_MAX_POINTERS
44 | #define UNITY_MAX_POINTERS 5
45 | #endif
46 |
47 | #ifdef __cplusplus
48 | }
49 | #endif
50 |
51 | #endif /* UNITY_FIXTURE_INTERNALS_H_ */
52 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/extras/fixture/src/unity_fixture_malloc_overrides.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2010 James Grenning and Contributed to Unity Project
2 | * ==========================================
3 | * Unity Project - A Test Framework for C
4 | * Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
5 | * [Released under MIT License. Please refer to license.txt for details]
6 | * ========================================== */
7 |
8 | #ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_
9 | #define UNITY_FIXTURE_MALLOC_OVERRIDES_H_
10 |
11 | #include
12 |
13 | #ifdef UNITY_EXCLUDE_STDLIB_MALLOC
14 | /* Define this macro to remove the use of stdlib.h, malloc, and free.
15 | * Many embedded systems do not have a heap or malloc/free by default.
16 | * This internal unity_malloc() provides allocated memory deterministically from
17 | * the end of an array only, unity_free() only releases from end-of-array,
18 | * blocks are not coalesced, and memory not freed in LIFO order is stranded. */
19 | #ifndef UNITY_INTERNAL_HEAP_SIZE_BYTES
20 | #define UNITY_INTERNAL_HEAP_SIZE_BYTES 256
21 | #endif
22 | #endif
23 |
24 | /* These functions are used by the Unity Fixture to allocate and release memory
25 | * on the heap and can be overridden with platform-specific implementations.
26 | * For example, when using FreeRTOS UNITY_FIXTURE_MALLOC becomes pvPortMalloc()
27 | * and UNITY_FIXTURE_FREE becomes vPortFree(). */
28 | #if !defined(UNITY_FIXTURE_MALLOC) || !defined(UNITY_FIXTURE_FREE)
29 | #include
30 | #define UNITY_FIXTURE_MALLOC(size) malloc(size)
31 | #define UNITY_FIXTURE_FREE(ptr) free(ptr)
32 | #else
33 | extern void* UNITY_FIXTURE_MALLOC(size_t size);
34 | extern void UNITY_FIXTURE_FREE(void* ptr);
35 | #endif
36 |
37 | #define malloc unity_malloc
38 | #define calloc unity_calloc
39 | #define realloc unity_realloc
40 | #define free unity_free
41 |
42 | void* unity_malloc(size_t size);
43 | void* unity_calloc(size_t num, size_t size);
44 | void* unity_realloc(void * oldMem, size_t size);
45 | void unity_free(void * mem);
46 |
47 | #endif /* UNITY_FIXTURE_MALLOC_OVERRIDES_H_ */
48 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/release/build.info:
--------------------------------------------------------------------------------
1 | 122
2 |
3 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/tests/unity/release/version.info:
--------------------------------------------------------------------------------
1 | 2.4.3
2 |
3 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/cJSON/valgrind.supp:
--------------------------------------------------------------------------------
1 | {
2 | suppress_ld_on_armv7
3 | Memcheck:Cond
4 | ...
5 | obj:*/ld-*.so
6 | }
7 |
--------------------------------------------------------------------------------
/User/COMPONENT/cJSON/component.mk:
--------------------------------------------------------------------------------
1 |
2 | INC_DIRS += $(cJSON_ROOT)/cJSON
3 |
4 | cJSON_INC_DIR = $(cJSON_ROOT)/cJSON
5 | cJSON_SRC_DIR = $(cJSON_ROOT)/cJSON
6 |
7 | $(eval $(call component_compile_rules,cJSON))
8 |
9 |
--------------------------------------------------------------------------------
/User/COMPONENT/crc/CRCJISUANQI.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/crc/CRCJISUANQI.zip
--------------------------------------------------------------------------------
/User/COMPONENT/crc/GCRC.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/COMPONENT/crc/GCRC.zip
--------------------------------------------------------------------------------
/User/COMPONENT/crc/README.md:
--------------------------------------------------------------------------------
1 | # crc-lib-c
2 | 基于C语言的CRC校验库,包括常用的21个CRC参数模型实现
3 |
4 | #### 常用的CRC参数模型
5 |
6 | | CRC算法名称 | 多项式公式 | WIDTH | POLY | INIT | XOROUT | REFIN | REFOUT |
7 | | ------------------ | ------------------------------------------------------------ | ----- | -------- | -------- | -------- | ----- | ------ |
8 | | CRC-4/ITU | x4 + x + 1 | 4 | 03 | 00 | 00 | TRUE | TRUE |
9 | | CRC-5/EPC | x5 + x3 + 1 | 5 | 09 | 09 | 00 | FALSE | FALSE |
10 | | CRC-5/ITU | x5 + x4 + x2 + 1 | 5 | 15 | 00 | 00 | TRUE | TRUE |
11 | | CRC-5/USB | x5 + x2 + 1 | 5 | 05 | 1F | 1F | TRUE | TRUE |
12 | | CRC-6/ITU | x6 + x + 1 | 6 | 03 | 00 | 00 | TRUE | TRUE |
13 | | CRC-7/MMC | x7 + x3 + 1 | 7 | 09 | 00 | 00 | FALSE | FALSE |
14 | | CRC-8 | x8 + x2 + x + 1 | 8 | 07 | 00 | 00 | FALSE | FALSE |
15 | | CRC-8/ITU | x8 + x2 + x + 1 | 8 | 07 | 00 | 55 | FALSE | FALSE |
16 | | CRC-8/ROHC | x8 + x2 + x + 1 | 8 | 07 | FF | 00 | TRUE | TRUE |
17 | | CRC-8/MAXIM | x8 + x5 + x4 + 1 | 8 | 31 | 00 | 00 | TRUE | TRUE |
18 | | CRC-16/IBM | x16 + x15 + x2 + 1 | 16 | 8005 | 0000 | 0000 | TRUE | TRUE |
19 | | CRC-16/MAXIM | x16 + x15 + x2 + 1 | 16 | 8005 | 0000 | FFFF | TRUE | TRUE |
20 | | CRC-16/USB | x16 + x15 + x2 + 1 | 16 | 8005 | FFFF | FFFF | TRUE | TRUE |
21 | | CRC-16/MODBUS | x16 + x15 + x2 + 1 | 16 | 8005 | FFFF | 0000 | TRUE | TRUE |
22 | | CRC-16/CCITT | x16 + x12 + x5 + 1 | 16 | 1021 | 0000 | 0000 | TRUE | TRUE |
23 | | CRC-16/CCITT-FALSE | x16 + x12 + x5 + 1 | 16 | 1021 | FFFF | 0000 | FALSE | FALSE |
24 | | CRC-16/X25 | x16 + x12 + x5 + 1 | 16 | 1021 | FFFF | FFFF | TRUE | TRUE |
25 | | CRC-16/XMODEM | x16 + x12 + x5 + 1 | 16 | 1021 | 0000 | 0000 | FALSE | FALSE |
26 | | CRC-16/DNP | x16 + x13 + x12 + x11 + x10 + x8 + x6 + x5 + x2 + 1 | 16 | 3D65 | 0000 | FFFF | TRUE | TRUE |
27 | | CRC-32 | x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1 | 32 | 04C11DB7 | FFFFFFFF | FFFFFFFF | TRUE | TRUE |
28 | | CRC-32/MPEG-2 | x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1 | 32 | 04C11DB7 | FFFFFFFF | 0 | FALSE | FALSE |
29 |
30 | #### CRC计算工具
31 |
32 | 在线计算工具:www.ip33.com/crc.html
33 |
34 | 离线计算工具:
35 |
36 | - CRC_Calc v0.1:http://xz.w10a.com/Small/CRCJISUANQI.zip
37 | - 格西CRC计算器:http://www.geshe.com/home/products/GToolbox/bin/GCRC.exe
38 |
--------------------------------------------------------------------------------
/User/COMPONENT/crc/crc.h:
--------------------------------------------------------------------------------
1 | #ifndef __CRC_H__
2 | #define __CRC_H__
3 |
4 | #include "stdint.h"
5 |
6 | uint8_t crc4_itu(uint8_t *data, uint16_t length);
7 | uint8_t crc5_epc(uint8_t *data, uint16_t length);
8 | uint8_t crc5_itu(uint8_t *data, uint16_t length);
9 | uint8_t crc5_usb(uint8_t *data, uint16_t length);
10 | uint8_t crc6_itu(uint8_t *data, uint16_t length);
11 | uint8_t crc7_mmc(uint8_t *data, uint16_t length);
12 | uint8_t crc8(uint8_t *data, uint16_t length);
13 | uint8_t crc8_itu(uint8_t *data, uint16_t length);
14 | uint8_t crc8_rohc(uint8_t *data, uint16_t length);
15 | uint8_t crc8_maxim(uint8_t *data, uint16_t length);//DS18B20
16 | uint16_t crc16_ibm(uint8_t *data, uint16_t length);
17 | uint16_t crc16_maxim(uint8_t *data, uint16_t length);
18 | uint16_t crc16_usb(uint8_t *data, uint16_t length);
19 | uint16_t crc16_modbus(uint8_t *data, uint16_t length);
20 | uint16_t crc16_ccitt(uint8_t *data, uint16_t length);
21 | uint16_t crc16_ccitt_false(uint8_t *data, uint16_t length);
22 | uint16_t crc16_x25(uint8_t *data, uint16_t length);
23 | uint16_t crc16_xmodem(uint8_t *data, uint16_t length);
24 | uint16_t crc16_dnp(uint8_t *data, uint16_t length);
25 | uint32_t crc32(uint8_t *data, uint16_t length);
26 | uint32_t crc32_mpeg_2(uint8_t *data, uint16_t length);
27 |
28 |
29 | #endif // __CRC_H__
30 |
--------------------------------------------------------------------------------
/User/COMPONENT/http-parser/component.mk:
--------------------------------------------------------------------------------
1 | # Component makefile for extras/http-parser
2 |
3 | # Include it as 'http-parser/http_parser.h'
4 | INC_DIRS += $(http-parser_ROOT)
5 |
6 | # args for passing into compile rule generation
7 | http-parser_INC_DIR =
8 | http-parser_SRC_DIR = $(http-parser_ROOT)http-parser
9 | http-parser_SRC_FILES = $(http-parser_SRC_DIR)/http_parser.c
10 |
11 | $(eval $(call component_compile_rules,http-parser))
12 |
--------------------------------------------------------------------------------
/User/COMPONENT/http-parser/http-parser/.gitignore:
--------------------------------------------------------------------------------
1 | /out/
2 | core
3 | tags
4 | *.o
5 | test
6 | test_g
7 | test_fast
8 | bench
9 | url_parser
10 | parsertrace
11 | parsertrace_g
12 | *.mk
13 | *.Makefile
14 | *.so.*
15 | *.exe.*
16 | *.exe
17 | *.a
18 |
19 |
20 | # Visual Studio uglies
21 | *.suo
22 | *.sln
23 | *.vcxproj
24 | *.vcxproj.filters
25 | *.vcxproj.user
26 | *.opensdf
27 | *.ncrunchsolution*
28 | *.sdf
29 | *.vsp
30 | *.psess
31 |
--------------------------------------------------------------------------------
/User/COMPONENT/http-parser/http-parser/.mailmap:
--------------------------------------------------------------------------------
1 | # update AUTHORS with:
2 | # git log --all --reverse --format='%aN <%aE>' | perl -ne 'BEGIN{print "# Authors ordered by first contribution.\n"} print unless $h{$_}; $h{$_} = 1' > AUTHORS
3 | Ryan Dahl
4 | Salman Haq
5 | Simon Zimmermann
6 | Thomas LE ROUX LE ROUX Thomas
7 | Thomas LE ROUX Thomas LE ROUX
8 | Fedor Indutny
9 |
--------------------------------------------------------------------------------
/User/COMPONENT/http-parser/http-parser/.travis.yml:
--------------------------------------------------------------------------------
1 | language: c
2 |
3 | compiler:
4 | - clang
5 | - gcc
6 |
7 | script:
8 | - "make"
9 |
10 | notifications:
11 | email: false
12 | irc:
13 | - "irc.freenode.net#node-ci"
14 |
--------------------------------------------------------------------------------
/User/COMPONENT/http-parser/http-parser/AUTHORS:
--------------------------------------------------------------------------------
1 | # Authors ordered by first contribution.
2 | Ryan Dahl
3 | Jeremy Hinegardner
4 | Sergey Shepelev
5 | Joe Damato
6 | tomika
7 | Phoenix Sol
8 | Cliff Frey
9 | Ewen Cheslack-Postava
10 | Santiago Gala
11 | Tim Becker
12 | Jeff Terrace
13 | Ben Noordhuis
14 | Nathan Rajlich
15 | Mark Nottingham
16 | Aman Gupta
17 | Tim Becker
18 | Sean Cunningham
19 | Peter Griess
20 | Salman Haq
21 | Cliff Frey
22 | Jon Kolb
23 | Fouad Mardini
24 | Paul Querna
25 | Felix Geisendörfer
26 | koichik
27 | Andre Caron
28 | Ivo Raisr
29 | James McLaughlin
30 | David Gwynne
31 | Thomas LE ROUX
32 | Randy Rizun
33 | Andre Louis Caron
34 | Simon Zimmermann
35 | Erik Dubbelboer
36 | Martell Malone
37 | Bertrand Paquet
38 | BogDan Vatra
39 | Peter Faiman
40 | Corey Richardson
41 | Tóth Tamás
42 | Cam Swords
43 | Chris Dickinson
44 | Uli Köhler
45 | Charlie Somerville
46 | Patrik Stutz
47 | Fedor Indutny
48 | runner
49 | Alexis Campailla
50 | David Wragg
51 | Vinnie Falco
52 | Alex Butum
53 | Rex Feng
54 | Alex Kocharin
55 | Mark Koopman
56 | Helge Heß
57 | Alexis La Goutte
58 | George Miroshnykov
59 | Maciej Małecki
60 | Marc O'Morain
61 | Jeff Pinner
62 | Timothy J Fontaine
63 | Akagi201
64 | Romain Giraud
65 | Jay Satiro
66 | Arne Steen
67 | Kjell Schubert
68 | Olivier Mengué
69 |
--------------------------------------------------------------------------------
/User/COMPONENT/http-parser/http-parser/LICENSE-MIT:
--------------------------------------------------------------------------------
1 | http_parser.c is based on src/http/ngx_http_parse.c from NGINX copyright
2 | Igor Sysoev.
3 |
4 | Additional changes are licensed under the same terms as NGINX and
5 | copyright Joyent, Inc. and other Node contributors. All rights reserved.
6 |
7 | Permission is hereby granted, free of charge, to any person obtaining a copy
8 | of this software and associated documentation files (the "Software"), to
9 | deal in the Software without restriction, including without limitation the
10 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11 | sell copies of the Software, and to permit persons to whom the Software is
12 | furnished to do so, subject to the following conditions:
13 |
14 | The above copyright notice and this permission notice shall be included in
15 | all copies or substantial portions of the Software.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23 | IN THE SOFTWARE.
24 |
--------------------------------------------------------------------------------
/User/COMPONENT/http-parser/http-parser/contrib/url_parser.c:
--------------------------------------------------------------------------------
1 | #include "http_parser.h"
2 | #include
3 | #include
4 |
5 | void
6 | dump_url (const char *url, const struct http_parser_url *u)
7 | {
8 | unsigned int i;
9 |
10 | printf("\tfield_set: 0x%x, port: %u\n", u->field_set, u->port);
11 | for (i = 0; i < UF_MAX; i++) {
12 | if ((u->field_set & (1 << i)) == 0) {
13 | printf("\tfield_data[%u]: unset\n", i);
14 | continue;
15 | }
16 |
17 | printf("\tfield_data[%u]: off: %u, len: %u, part: %.*s\n",
18 | i,
19 | u->field_data[i].off,
20 | u->field_data[i].len,
21 | u->field_data[i].len,
22 | url + u->field_data[i].off);
23 | }
24 | }
25 |
26 | int main(int argc, char ** argv) {
27 | struct http_parser_url u;
28 | int len, connect, result;
29 |
30 | if (argc != 3) {
31 | printf("Syntax : %s connect|get url\n", argv[0]);
32 | return 1;
33 | }
34 | len = strlen(argv[2]);
35 | connect = strcmp("connect", argv[1]) == 0 ? 1 : 0;
36 | printf("Parsing %s, connect %d\n", argv[2], connect);
37 |
38 | http_parser_url_init(&u);
39 | result = http_parser_parse_url(argv[2], len, connect, &u);
40 | if (result != 0) {
41 | printf("Parse error : %d\n", result);
42 | return result;
43 | }
44 | printf("Parse ok, result : \n");
45 | dump_url(argv[2], &u);
46 | return 0;
47 | }
48 |
--------------------------------------------------------------------------------
/User/COMPONENT/http-parser/http-parser/http_parser.gyp:
--------------------------------------------------------------------------------
1 | # This file is used with the GYP meta build system.
2 | # http://code.google.com/p/gyp/
3 | # To build try this:
4 | # svn co http://gyp.googlecode.com/svn/trunk gyp
5 | # ./gyp/gyp -f make --depth=`pwd` http_parser.gyp
6 | # ./out/Debug/test
7 | {
8 | 'target_defaults': {
9 | 'default_configuration': 'Debug',
10 | 'configurations': {
11 | # TODO: hoist these out and put them somewhere common, because
12 | # RuntimeLibrary MUST MATCH across the entire project
13 | 'Debug': {
14 | 'defines': [ 'DEBUG', '_DEBUG' ],
15 | 'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ],
16 | 'msvs_settings': {
17 | 'VCCLCompilerTool': {
18 | 'RuntimeLibrary': 1, # static debug
19 | },
20 | },
21 | },
22 | 'Release': {
23 | 'defines': [ 'NDEBUG' ],
24 | 'cflags': [ '-Wall', '-Wextra', '-O3' ],
25 | 'msvs_settings': {
26 | 'VCCLCompilerTool': {
27 | 'RuntimeLibrary': 0, # static release
28 | },
29 | },
30 | }
31 | },
32 | 'msvs_settings': {
33 | 'VCCLCompilerTool': {
34 | },
35 | 'VCLibrarianTool': {
36 | },
37 | 'VCLinkerTool': {
38 | 'GenerateDebugInformation': 'true',
39 | },
40 | },
41 | 'conditions': [
42 | ['OS == "win"', {
43 | 'defines': [
44 | 'WIN32'
45 | ],
46 | }]
47 | ],
48 | },
49 |
50 | 'targets': [
51 | {
52 | 'target_name': 'http_parser',
53 | 'type': 'static_library',
54 | 'include_dirs': [ '.' ],
55 | 'direct_dependent_settings': {
56 | 'defines': [ 'HTTP_PARSER_STRICT=0' ],
57 | 'include_dirs': [ '.' ],
58 | },
59 | 'defines': [ 'HTTP_PARSER_STRICT=0' ],
60 | 'sources': [ './http_parser.c', ],
61 | 'conditions': [
62 | ['OS=="win"', {
63 | 'msvs_settings': {
64 | 'VCCLCompilerTool': {
65 | # Compile as C++. http_parser.c is actually C99, but C++ is
66 | # close enough in this case.
67 | 'CompileAs': 2,
68 | },
69 | },
70 | }]
71 | ],
72 | },
73 |
74 | {
75 | 'target_name': 'http_parser_strict',
76 | 'type': 'static_library',
77 | 'include_dirs': [ '.' ],
78 | 'direct_dependent_settings': {
79 | 'defines': [ 'HTTP_PARSER_STRICT=1' ],
80 | 'include_dirs': [ '.' ],
81 | },
82 | 'defines': [ 'HTTP_PARSER_STRICT=1' ],
83 | 'sources': [ './http_parser.c', ],
84 | 'conditions': [
85 | ['OS=="win"', {
86 | 'msvs_settings': {
87 | 'VCCLCompilerTool': {
88 | # Compile as C++. http_parser.c is actually C99, but C++ is
89 | # close enough in this case.
90 | 'CompileAs': 2,
91 | },
92 | },
93 | }]
94 | ],
95 | },
96 |
97 | {
98 | 'target_name': 'test-nonstrict',
99 | 'type': 'executable',
100 | 'dependencies': [ 'http_parser' ],
101 | 'sources': [ 'test.c' ]
102 | },
103 |
104 | {
105 | 'target_name': 'test-strict',
106 | 'type': 'executable',
107 | 'dependencies': [ 'http_parser_strict' ],
108 | 'sources': [ 'test.c' ]
109 | }
110 | ]
111 | }
112 |
--------------------------------------------------------------------------------
/User/COMPONENT/msg_queue/msg_queue.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file: msg_queue.h
4 | * @author: 孙关平
5 | * @version: V1.0
6 | * @date: 2018-1-18
7 | * @brief: 消息队列
8 | * @attention:
9 | ******************************************************************************
10 | */
11 |
12 |
13 | #ifndef __MSG_QUEUE_H_
14 | #define __MSG_QUEUE_H_
15 |
16 |
17 | #include "stdint.h"
18 |
19 |
20 | // *********************
21 |
22 | typedef struct {
23 | uint8_t *buf_ptr; /* 指向buff空间,必须是连续的,如buff[2][8],表示2个buff,每个buff8个字节,那么初始化时候buf_size为2,buf_len为8 */
24 | volatile uint16_t rd;
25 | volatile uint16_t wr;
26 | uint16_t buf_size; /* 消息队列中buff的个数 */
27 | uint16_t buf_len; /* 消息队列中每个buff的字节数 */
28 | } t_msg_queue;
29 |
30 |
31 | // *********************
32 | uint16_t msg_queue_get_size(t_msg_queue *p_m_q);
33 | uint16_t msg_queue_get_used(t_msg_queue *p_m_q);
34 | uint16_t msg_queue_get_free(t_msg_queue *p_m_q);
35 | void msg_queue_clear_all_msg(t_msg_queue *p_m_q);
36 | uint8_t msg_queue_get_msg(t_msg_queue *p_m_q, uint8_t *msg, uint16_t num);
37 | uint8_t msg_queue_put_msg(t_msg_queue *p_m_q, uint8_t *msg, uint16_t num);
38 | uint8_t msg_queue_put_msg_renew(t_msg_queue *p_m_q, uint8_t *msg, uint16_t num);
39 | void msg_queue_init(t_msg_queue *p_m_q, const void *buffer, const uint16_t buffer_size, uint16_t buffer_len);
40 |
41 | // *********************
42 |
43 | #endif // ifndef __MSG_QUEUE_H_
44 |
--------------------------------------------------------------------------------
/User/SYS/_K&R_format.bat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/SYS/_K&R_format.bat
--------------------------------------------------------------------------------
/User/SYS/sys_command_line.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/SYS/sys_command_line.h
--------------------------------------------------------------------------------
/User/SYS/sys_queue.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file: sys_queue.c
4 | * @author: Cat
5 | * @version: V1.0
6 | * @date: 2018-1-18
7 | * @brief: queue
8 | * @attention:
9 | ******************************************************************************
10 | */
11 |
12 |
13 | #include "sys_queue.h"
14 |
15 |
16 | /**
17 | * @brief queue_init
18 | * @param Front , Rear , PBase , Len
19 | * @retval True
20 | */
21 | uint8_t queue_init(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len)
22 | {
23 | uint16_t index;
24 |
25 | for(index = 0; index < Len; index++) {
26 | PBase[index] = NULL;
27 | }
28 |
29 | *Front = *Rear = 0;
30 | return TRUE;
31 | }
32 |
33 |
34 | /**
35 | * @brief queue_full
36 | * @param Front , Rear , PBase , Len
37 | * @retval Result of Queue Operation as Enum
38 | */
39 | uint8_t queue_full(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len)
40 | {
41 | if((((*Rear) + 1) % Len) == *Front) {
42 | return TRUE;
43 | } else {
44 | return FALSE;
45 | }
46 | }
47 |
48 | /**
49 | * @brief queue_empty
50 | * @param Front , Rear , PBase , Len
51 | * @retval Result of Queue Operation as Enum
52 | */
53 | uint8_t queue_empty(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len)
54 | {
55 | if(*Front == *Rear) {
56 | return TRUE;
57 | } else {
58 | return FALSE;
59 | }
60 | }
61 |
62 |
63 | /**
64 | * @brief queue_in
65 | * @param Front , Rear , PBase , Len
66 | * @retval Result of Queue Operation as Enum
67 | */
68 | uint8_t queue_in(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len, uint8_t *PData)
69 | {
70 | //DISABLE_ALL_IRQ();
71 |
72 | if(queue_full(Front, Rear, PBase, Len)) {
73 | return FALSE;
74 | }
75 |
76 | PBase[*Rear] = *PData;
77 | *Rear = ((*Rear) + 1) % Len;
78 |
79 | //ENABLE_ALL_IRQ();
80 |
81 | return TRUE;
82 | }
83 |
84 |
85 | /**
86 | * @brief queue_out
87 | * @param Front , Rear , PBase , Len
88 | * @retval Result of Queue Operation as Enum
89 | */
90 |
91 | uint8_t queue_out(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len, uint8_t *PData)
92 | {
93 | //DISABLE_ALL_IRQ();
94 |
95 | if(queue_empty(Front, Rear, PBase, Len)) {
96 | return FALSE;
97 | }
98 |
99 | *PData = PBase[*Front];
100 | *Front = ((*Front) + 1) % Len;
101 |
102 | //ENABLE_ALL_IRQ();
103 |
104 | return TRUE;
105 | }
106 |
107 |
108 |
--------------------------------------------------------------------------------
/User/SYS/sys_queue.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file: sys_queue.h
4 | * @author: Cat
5 | * @version: V1.0
6 | * @date: 2018-1-18
7 | * @brief: queue
8 | * @attention:
9 | ******************************************************************************
10 | */
11 |
12 |
13 | #ifndef __SYS_QUEUE_H
14 | #define __SYS_QUEUE_H
15 |
16 | #include
17 | #include "global.h"
18 |
19 |
20 |
21 | #define ENABLE_ALL_IRQ() __enable_irq() /* disable all interrupt */
22 | #define DISABLE_ALL_IRQ() __disable_irq() /* enable all interrupt */
23 |
24 |
25 | extern uint8_t queue_init(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len);
26 | extern uint8_t queue_full(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len);
27 | extern uint8_t queue_empty(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len);
28 | extern uint8_t queue_in(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len, uint8_t *PData);
29 | extern uint8_t queue_out(uint16_t *Front, uint16_t *Rear, uint8_t *PBase, uint16_t Len, uint8_t *PData);
30 |
31 | //queue init.
32 | #define QUEUE_INIT(q) queue_init((uint16_t *) &(q.Front),(uint16_t *) &(q.Rear),(uint8_t *) &(q.PBase[0]),(uint16_t) (sizeof(q.PBase)))
33 | //queue full?
34 | #define QUEUE_FULL(q) queue_full((uint16_t *) &(q.Front),(uint16_t *) &(q.Rear),(uint8_t *) &(q.PBase[0]),(uint16_t) (sizeof(q.PBase)))
35 | //queue empty?
36 | #define QUEUE_EMPTY(q) queue_empty((uint16_t *) &(q.Front),(uint16_t *) &(q.Rear),(uint8_t *) &(q.PBase[0]),(uint16_t) (sizeof(q.PBase)))
37 | //put pdata in queue
38 | #define QUEUE_IN(q, pdata) queue_in((uint16_t *) &(q.Front),(uint16_t *) &(q.Rear),(uint8_t *) &(q.PBase[0]),(uint16_t) (sizeof(q.PBase)),(uint8_t *) &pdata)
39 | //get byte from queue
40 | #define QUEUE_OUT(q, pdata) queue_out((uint16_t *) &(q.Front),(uint16_t *) &(q.Rear),(uint8_t *) &(q.PBase[0]),(uint16_t) (sizeof(q.PBase)),(uint8_t *) &pdata)
41 |
42 | //8 Bytes Queue Struct
43 | __packed typedef struct queue8 {
44 | uint16_t Front;
45 | uint16_t Rear;
46 | uint8_t PBase[8 + 1];
47 | } QUEUE8_S;
48 |
49 | //16 Bytes Queue Struct
50 | __packed typedef struct queue16 {
51 | uint16_t Front;
52 | uint16_t Rear;
53 | uint8_t PBase[16 + 1];
54 | } QUEUE16_S;
55 |
56 | //32 Bytes Queue Struct
57 | __packed typedef struct queue32 {
58 | uint16_t Front;
59 | uint16_t Rear;
60 | uint8_t PBase[32 + 1];
61 | } QUEUE32_S;
62 |
63 | //64 Bytes Queue Struct
64 | __packed typedef struct queue64 {
65 | uint16_t Front;
66 | uint16_t Rear;
67 | uint8_t PBase[64 + 1];
68 | } QUEUE64_S;
69 |
70 | //128 Bytes Queue Struct
71 | __packed typedef struct queue128 {
72 | uint16_t Front;
73 | uint16_t Rear;
74 | uint8_t PBase[128 + 1];
75 | } QUEUE128_S;
76 |
77 | //256 Bytes Queue Struct
78 | __packed typedef struct queue256 {
79 | uint16_t Front;
80 | uint16_t Rear;
81 | uint8_t PBase[256 + 1];
82 | } QUEUE256_S;
83 |
84 | __packed typedef struct queue1024 {
85 | uint16_t Front;
86 | uint16_t Rear;
87 | uint8_t PBase[1024 + 1];
88 | } QUEUE1024_S;
89 |
90 | __packed typedef struct queue2048 {
91 | uint16_t Front;
92 | uint16_t Rear;
93 | uint8_t PBase[2048 + 1];
94 | } QUEUE2048_S;
95 |
96 |
97 | #endif /* __SYS_QUEUE_H */
98 |
99 |
--------------------------------------------------------------------------------
/User/global.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/global.h
--------------------------------------------------------------------------------
/User/main.c:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | #include "stm32f10x.h"
5 | #include "./sys/sys_command_line.h"
6 | #include "./bsp/bsp_usart.h"
7 |
8 |
9 | void Delay(__IO uint32_t nCount) //delay
10 | {
11 | for(; nCount != 0; nCount--);
12 | }
13 |
14 |
15 | /**
16 | * @brief main
17 | * @param null
18 | * @retval null
19 | */
20 | int main(void)
21 | {
22 | /*Command Line init, 115200 8-N-1 */
23 | CLI_INIT(CLI_BAUDRATE);
24 |
25 | while(1) {
26 | CLI_RUN();
27 | Delay(0xFFFF);
28 | }
29 | }
30 | /*********************************************END OF FILE**********************/
31 |
--------------------------------------------------------------------------------
/User/project_conf.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/project_conf.h
--------------------------------------------------------------------------------
/User/stm32f10x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file Project/STM32F10x_StdPeriph_Template/stm32f10x_conf.h
4 | * @author MCD Application Team
5 | * @version V3.5.0
6 | * @date 08-April-2011
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2011 STMicroelectronics
19 | ******************************************************************************
20 | */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __STM32F10x_CONF_H
24 | #define __STM32F10x_CONF_H
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | /* Uncomment/Comment the line below to enable/disable peripheral header file inclusion */
28 | //#include "stm32f10x_adc.h"
29 | //#include "stm32f10x_bkp.h"
30 | //#include "stm32f10x_can.h"
31 | //#include "stm32f10x_cec.h"
32 | //#include "stm32f10x_crc.h"
33 | //#include "stm32f10x_dac.h"
34 | //#include "stm32f10x_dbgmcu.h"
35 | //#include "stm32f10x_dma.h"
36 | //#include "stm32f10x_exti.h"
37 | //#include "stm32f10x_flash.h"
38 | //#include "stm32f10x_fsmc.h"
39 | #include "stm32f10x_gpio.h"
40 | //#include "stm32f10x_i2c.h"
41 | //#include "stm32f10x_iwdg.h"
42 | //#include "stm32f10x_pwr.h"
43 | #include "stm32f10x_rcc.h"
44 | //#include "stm32f10x_rtc.h"
45 | //#include "stm32f10x_sdio.h"
46 | //#include "stm32f10x_spi.h"
47 | //#include "stm32f10x_tim.h"
48 | #include "stm32f10x_usart.h"
49 | //#include "stm32f10x_wwdg.h"
50 | #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
51 |
52 | /* Exported types ------------------------------------------------------------*/
53 | /* Exported constants --------------------------------------------------------*/
54 | /* Uncomment the line below to expanse the "assert_param" macro in the
55 | Standard Peripheral Library drivers code */
56 | /* #define USE_FULL_ASSERT 1 */
57 |
58 | /* Exported macro ------------------------------------------------------------*/
59 | #ifdef USE_FULL_ASSERT
60 |
61 | /**
62 | * @brief The assert_param macro is used for function's parameters check.
63 | * @param expr: If expr is false, it calls assert_failed function which reports
64 | * the name of the source file and the source line number of the call
65 | * that failed. If expr is true, it returns no value.
66 | * @retval None
67 | */
68 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
69 | /* Exported functions ------------------------------------------------------- */
70 | void assert_failed(uint8_t* file, uint32_t line);
71 | #else
72 | #define assert_param(expr) ((void)0)
73 | #endif /* USE_FULL_ASSERT */
74 |
75 | #endif /* __STM32F10x_CONF_H */
76 |
77 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
78 |
--------------------------------------------------------------------------------
/User/stm32f10x_it.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/User/stm32f10x_it.c
--------------------------------------------------------------------------------
/User/stm32f10x_it.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file Project/STM32F10x_StdPeriph_Template/stm32f10x_it.h
4 | * @author MCD Application Team
5 | * @version V3.5.0
6 | * @date 08-April-2011
7 | * @brief This file contains the headers of the interrupt handlers.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2011 STMicroelectronics
19 | ******************************************************************************
20 | */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __STM32F10x_IT_H
24 | #define __STM32F10x_IT_H
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32f10x.h"
32 |
33 | /* Exported types ------------------------------------------------------------*/
34 | /* Exported constants --------------------------------------------------------*/
35 | /* Exported macro ------------------------------------------------------------*/
36 | /* Exported functions ------------------------------------------------------- */
37 |
38 | void NMI_Handler(void);
39 | void HardFault_Handler(void);
40 | void MemManage_Handler(void);
41 | void BusFault_Handler(void);
42 | void UsageFault_Handler(void);
43 | void SVC_Handler(void);
44 | void DebugMon_Handler(void);
45 | void PendSV_Handler(void);
46 | void SysTick_Handler(void);
47 |
48 | #ifdef __cplusplus
49 | }
50 | #endif
51 |
52 | #endif /* __STM32F10x_IT_H */
53 |
54 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
55 |
--------------------------------------------------------------------------------
/keilkill.bat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ShareCat/STM32CommandLine/1eb0f008400ecae14c074fecb7bfbd14beff648f/keilkill.bat
--------------------------------------------------------------------------------