fixed transfer binary issue for STM8 example

This commit is contained in:
2018-01-18 07:53:40 +08:00
parent c5be03d233
commit 2e1578a83f
6 changed files with 419 additions and 334 deletions

View File

@@ -5,137 +5,198 @@
<configuration>
<name>Debug</name>
<outputs>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_binary_parse.o</file>
<file>$TOOLKIT_DIR$\inc\c\string.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_clk.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_defs.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_decode.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_forbidden_info.o</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_tim3.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_build_frame.o</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_it.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_utils.h</file>
<file>$TOOLKIT_DIR$\inc\c\xencoding_limits.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_apply.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_frame_info.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_build_frame.pbi</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Defaults.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_control.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_build_frame.h</file>
<file>$PROJ_DIR$\src\stm8s_it.c</file>
<file>$PROJ_DIR$\Debug\Obj\ir_utils.o</file>
<file>$TOOLKIT_DIR$\inc\c\stdlib.h</file>
<file>$PROJ_DIR$\Debug\Obj\main.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_apply.pbi</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_wwdg.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_parameter.pbi</file>
<file>$PROJ_DIR$\src\main.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_decode.o</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.o</file>
<file>$PROJ_DIR$\Debug\Obj\ir_utils.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\ir_tv_control.o</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_parameter.o</file>
<file>$PROJ_DIR$\src\lib\src\stm8s_gpio.c</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_itc.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_iwdg.h</file>
<file>$PROJ_DIR$\src\lib\src\stm8s_uart3.c</file>
<file>$TOOLKIT_DIR$\lib\dbgstm8smd.a</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_gpio.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_apply.o</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_frame_info.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_binary_parse.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_uart3.o</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_clk.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_control.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_forbidden_info.pbi</file>
<file>$PROJ_DIR$\src\lib\src\stm8s_tim4.c</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_it.pbi</file>
<file>$TOOLKIT_DIR$\inc\c\stdio.h</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_binary_parse.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_build_frame.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_control.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_parse_forbidden_info.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_parse_frame_info.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_apply.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_parse_parameter.c</file>
<file>$PROJ_DIR$\src\lib\src\stm8s_clk.c</file>
<file>$PROJ_DIR$\src\stm8s_it.c</file>
<file>$PROJ_DIR$\src\main.c</file>
<file>$PROJ_DIR$\src\lib\src\stm8s_gpio.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_decode.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_parse_forbidden_info.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_build_frame.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_parse_frame_info.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_parse_parameter.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_tv_control.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_utils.c</file>
<file>$PROJ_DIR$\src\main.c</file>
<file>$PROJ_DIR$\src\lib\src\stm8s_clk.c</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_flash.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_rst.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Threads.h</file>
<file>$TOOLKIT_DIR$\inc\c\yvals.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_awu.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_decode.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_adc2.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_tv_control.h</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_control.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_apply.c</file>
<file>$PROJ_DIR$\src\irext\src\ir_ac_binary_parse.c</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_clk.o</file>
<file>$TOOLKIT_DIR$\inc\c\xencoding_limits.h</file>
<file>$PROJ_DIR$\src\stm8s_it.h</file>
<file>$PROJ_DIR$\Debug\Obj\main.o</file>
<file>$PROJ_DIR$\Debug\Obj\ir_tv_control.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_parse_frame_info.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_spi.h</file>
<file>$TOOLKIT_DIR$\lib\dlstm8smf.a</file>
<file>$TOOLKIT_DIR$\lib\dlstm8smf.h</file>
<file>$PROJ_DIR$\Debug\Obj\STM8_Demo.pbd</file>
<file>$TOOLKIT_DIR$\inc\c\ycheck.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_clk.pbi</file>
<file>$PROJ_DIR$\Debug\Exe\STM8_Demo.hex</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.pbi</file>
<file>$TOOLKIT_DIR$\config\lnkstm8s207k8.icf</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_uart3.h</file>
<file>$TOOLKIT_DIR$\inc\c\intrinsics.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_binary_parse.pbi</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_parse_forbidden_info.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_tim1.h</file>
<file>$PROJ_DIR$\src\stm8s_conf.h</file>
<file>$TOOLKIT_DIR$\inc\c\ysizet.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_parse_parameter.h</file>
<file>$TOOLKIT_DIR$\inc\c\ystdio.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_control.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.pbi</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_exti.h</file>
<file>$PROJ_DIR$\Debug\Exe\templproj.out</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_tim2.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_tim4.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_uart3.pbi</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_uart1.h</file>
<file>$PROJ_DIR$\src\lib\src\stm8s_uart3.c</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_apply.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_tv_control.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_forbidden_info.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_uart3.o</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_apply.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_frame_info.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_control.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_defs.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_flash.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_iwdg.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_tv_control.pbi</file>
<file>$TOOLKIT_DIR$\lib\dlstm8smf.a</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_awu.h</file>
<file>$PROJ_DIR$\src\main.h</file>
<file>$TOOLKIT_DIR$\lib\dbgstm8smd.a</file>
<file>$PROJ_DIR$\Debug\Obj\ir_decode.pbi</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Threads.h</file>
<file>$TOOLKIT_DIR$\inc\c\ysizet.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_binary_parse.h</file>
<file>$TOOLKIT_DIR$\inc\c\ycheck.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_binary_parse.o</file>
<file>$PROJ_DIR$\Debug\Obj\ir_utils.o</file>
<file>$PROJ_DIR$\src\stm8s_conf.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_binary_parse.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\main.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_apply.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_decode.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_wwdg.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.o</file>
<file>$TOOLKIT_DIR$\lib\dlstm8smf.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_it.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\main.pbi</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_gpio.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_build_frame.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_build_frame.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_parse_parameter.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_decode.o</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_spi.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_build_frame.pbi</file>
<file>$PROJ_DIR$\Debug\Obj\ir_tv_control.o</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_adc2.h</file>
<file>$TOOLKIT_DIR$\inc\c\yvals.h</file>
<file>$TOOLKIT_DIR$\inc\c\stdio.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_it.o</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_i2c.h</file>
<file>$PROJ_DIR$\Debug\Obj\STM8_Demo.pbd</file>
<file>$PROJ_DIR$\Debug\Exe\templproj.out</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_rst.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_parse_frame_info.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_itc.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_utils.pbi</file>
<file>$TOOLKIT_DIR$\config\lnkstm8s207k8.icf</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product.h</file>
<file>$PROJ_DIR$\Debug\Exe\STM8_Demo.hex</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_tim2.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_forbidden_info.o</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_clk.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.pbi</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_tim1.h</file>
<file>$TOOLKIT_DIR$\inc\c\string.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_parameter.pbi</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Defaults.h</file>
<file>$TOOLKIT_DIR$\inc\c\stdlib.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_frame_info.pbi</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_tim3.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_control.o</file>
<file>$PROJ_DIR$\src\irext\include\ir_ac_parse_forbidden_info.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.o</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_exti.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_uart1.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_clk.pbi</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_tim4.h</file>
<file>$TOOLKIT_DIR$\inc\c\ystdio.h</file>
<file>$PROJ_DIR$\src\irext\include\ir_utils.h</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_parse_parameter.o</file>
<file>$PROJ_DIR$\Debug\Obj\ir_ac_control.pbi</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_beep.h</file>
<file>$TOOLKIT_DIR$\inc\c\intrinsics.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s.h</file>
<file>$PROJ_DIR$\src\lib\inc\stm8s_uart3.h</file>
<file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.pbi</file>
<file>$TOOLKIT_DIR$\inc\iostm8s207k8.h</file>
</outputs>
<file>
<name>[ROOT_NODE]</name>
<name>$PROJ_DIR$\src\lib\src\stm8s_tim4.c</name>
<outputs>
<tool>
<name>ILINK</name>
<file> 94</file>
<name>ICCSTM8</name>
<file> 48</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 77</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 91 98 42 60 32 96 76 88 28 52 64 69 29 67 57 78 74 84 89 99 47 97</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 32 98 29 42 28 74 47 76 64 57 84 97 60 96 88 52 69 67 78 91 89 99</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\lib\src\stm8s_clk.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 15</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 90</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 76 98 42 60 32 96 88 28 52 64 69 29 67 57 78 74 84 91 89 99 47 97</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 29 98 32 42 28 74 47 76 64 57 84 97 60 96 88 52 69 67 78 91 89 99</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\stm8s_it.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 9</file>
<file> 63</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 45</file>
<file> 50</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 68 4 87 66 64 100 2 93 59 36 99 32 33 61 73 86 95 7 96 98 82 23 83 25 65 46 77 63 15 75 60 11 62 88 90 3 42 67</file>
<file> 17 98 42 60 32 96 76 88 28 52 64 69 29 67 57 78 74 84 91 89 99 47 97 33 46 62 39 61 81 49 72 16 36 37 92 27 26 21</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 75 4 65 36 63 83 100 61 98 42 15 25 66 93 32 86 96 82 46 90 60 68 87 64 2 59 99 33 73 95 7 23 3 67 77 88 11 62</file>
<file> 49 98 46 52 61 97 96 67 89 26 81 33 60 88 69 78 91 99 62 92 72 17 42 32 76 28 64 29 57 74 84 47 27 21 39 37 16 36</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\main.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 44</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 51</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 79 39 61 81 49 72 16 36 37 98 42 60 32 96 76 88 28 52 64 69 29 67 57 78 74 84 91 89 99 47 97 82 62 92 33 46 27 26 21</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 28 27 39 47 33 42 74 98 21 82 37 16 32 29 62 61 36 76 64 57 84 46 79 81 49 72 97 60 96 88 52 69 67 78 91 89 99 92 26</file>
</tool>
</inputs>
</file>
@@ -144,136 +205,53 @@
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 27</file>
<file> 87</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 92</file>
<file> 100</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 36 4 87 66 64 100 2 93 59 99 32 33 61 73 86 95 7 96 98 82 23 83</file>
<file> 52 98 42 60 32 96 76 88 28 64 69 29 67 57 78 74 84 91 89 99 47 97</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 36 83 4 100 61 98 66 93 32 86 96 82 87 64 2 59 99 33 73 95 7 23</file>
<file> 52 97 98 96 67 89 60 88 69 78 91 99 42 32 76 28 64 29 57 74 84 47</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\lib\src\stm8s_uart3.c</name>
<name>[ROOT_NODE]</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 40</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 97</file>
<name>ILINK</name>
<file> 66</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 82 4 87 66 64 100 2 93 59 36 99 32 33 61 73 86 95 7 96 98 23 83</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 4 36 83 100 61 98 66 93 32 86 96 82 87 64 2 59 99 33 73 95 7 23</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\lib\src\stm8s_tim4.c</name>
<name>$PROJ_DIR$\src\irext\src\ir_decode.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 71</file>
<file> 56</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 80</file>
<file> 35</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 96 4 87 66 64 100 2 93 59 36 99 32 33 61 73 86 95 7 98 82 23 83</file>
<file> 62 39 61 81 49 72 16 36 37 92 82 79 46 27 26 21 93 53 45</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 64 4 33 87 59 95 23 2 99 73 7 83 66 100 93 36 32 61 86 96 98 82</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_ac_binary_parse.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 0</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 84</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 20 77 63 15 75 60 11 62 88 39 3 65 46 90 42 67</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 63 88 65 77 62 3 42 39 11 46 90 20 15 75 60 67</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_ac_build_frame.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 8</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 14</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 17 3 65 46 77 63 15 75 60 11 62 88 90 42 67</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 3 42 63 75 46 15 65 67 90 60 17 77 88 11 62</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_ac_control.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 16</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 91</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 20 77 63 15 75 60 11 62 88 46 90 1 42 3 39 65 67 89 85 72 10</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 3 72 88 46 39 11 60 77 1 89 63 15 75 42 65 85 10 62 90 20 67</file>
<file> 62 39 16 93 37 46 79 45 36 61 26 27 82 53 92 81 49 72 21</file>
</tool>
</inputs>
</file>
@@ -282,53 +260,7 @@
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 6</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 43</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 46 77 63 15 75 60 11 62 88 90 20 1 65 3 42 67 85</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 60 90 63 67 85 1 15 75 77 11 3 20 65 88 62 46 42</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_ac_parse_frame_info.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 38</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 13</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 20 77 63 15 75 60 11 62 88 46 90 1 10 3 65 42 67 72</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 11 77 72 63 42 1 88 62 90 65 46 10 15 75 60 3 67 20</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_ac_apply.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 37</file>
<file> 75</file>
</tool>
<tool>
<name>BICOMP</name>
@@ -338,11 +270,57 @@
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 10 3 65 46 77 63 15 75 60 11 62 88 90 42 67 12</file>
<file> 62 39 61 81 49 72 16 36 37 92 82 79 46 27 26 21 86</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 63 3 67 77 46 90 11 12 65 42 88 62 10 15 75 60</file>
<file> 72 92 61 21 86 79 81 49 39 16 27 82 46 37 36 62 26</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_ac_build_frame.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 54</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 58</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 53 27 46 62 39 61 81 49 72 16 36 37 92 26 21</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 27 26 61 49 62 81 46 21 92 72 53 39 37 16 36</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_ac_parse_frame_info.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 25</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 83</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 82 39 61 81 49 72 16 36 37 62 92 79 93 27 46 26 21 68</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 16 39 68 61 26 79 37 36 92 46 62 93 81 49 72 27 21 82</file>
</tool>
</inputs>
</file>
@@ -351,44 +329,21 @@
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 30</file>
<file> 94</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 24</file>
<file> 80</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 20 77 63 15 75 60 11 62 88 46 90 1 10 3 65 42 67 89</file>
<file> 82 39 61 81 49 72 16 36 37 62 92 79 93 27 46 26 21 55</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 63 90 89 88 62 42 1 77 11 65 3 46 10 15 75 60 20 67</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_decode.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 26</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 5</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 46 77 63 15 75 60 11 62 88 90 20 1 65 3 42 67 10 17 12</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 46 77 11 10 88 65 1 12 62 63 42 3 20 17 90 15 75 60 67</file>
<file> 61 92 55 37 36 26 79 39 16 46 27 62 93 81 49 72 82 21</file>
</tool>
</inputs>
</file>
@@ -397,7 +352,30 @@
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 29</file>
<file> 59</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 30</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 79 39 61 81 49 72 16 36 37 27 46 62 92 26 21</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 49 61 26 81 39 46 72 62 37 27 21 16 36 92 79</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_utils.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 41</file>
</tool>
<tool>
<name>BICOMP</name>
@@ -407,72 +385,103 @@
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 1 77 63 15 75 60 11 62 88 3 65 46 90 42 67</file>
<file> 93 27 46 62 39 61 81 49 72 16 36 37 92 26 21</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 75 63 42 15 77 65 60 46 88 3 67 11 62 90 1</file>
<file> 26 27 92 49 61 46 62 81 21 39 37 72 93 16 36</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\irext\src\ir_utils.c</name>
<name>$PROJ_DIR$\src\irext\src\ir_ac_control.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 19</file>
<file> 85</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 28</file>
<file> 95</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 10 3 65 46 77 63 15 75 60 11 62 88 90 42 67</file>
<file> 82 39 61 81 49 72 16 36 37 62 92 79 26 27 38 46 21 55 86 68 93</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 42 3 90 75 63 65 46 15 67 77 88 60 10 11 62</file>
<file> 27 68 37 62 38 16 72 39 79 55 61 81 49 26 46 86 93 36 92 82 21</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\main.c</name>
<name>$PROJ_DIR$\src\irext\src\ir_ac_apply.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 20</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 21</file>
<file> 24</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 1 77 63 15 75 60 11 62 88 4 87 66 64 100 2 93 59 36 99 32 33 61 73 86 95 7 96 98 82 23 83 20 46 90 25 65 3 42 67</file>
<file> 93 27 46 62 39 61 81 49 72 16 36 37 92 26 21 45</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 61 27 21 39 62 92 16 45 46 26 37 36 93 81 49 72</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\lib\src\stm8s_clk.c</name>
<name>$PROJ_DIR$\src\irext\src\ir_ac_binary_parse.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 41</file>
<file> 40</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 78</file>
<file> 43</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 2 4 87 66 64 100 93 59 36 99 32 33 61 73 86 95 7 96 98 82 23 83</file>
<file> 82 39 61 81 49 72 16 36 37 38 27 46 62 92 26 21</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 33 4 64 87 59 95 23 2 99 73 7 83 66 100 93 36 32 61 86 96 98 82</file>
<file> 61 37 46 39 36 27 26 38 16 62 92 82 81 49 72 21</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\src\lib\src\stm8s_uart3.c</name>
<outputs>
<tool>
<name>ICCSTM8</name>
<file> 23</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 18</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCSTM8</name>
<file> 99 98 42 60 32 96 76 88 28 52 64 69 29 67 57 78 74 84 91 89 47 97</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 98 52 97 96 67 89 60 88 69 78 91 99 42 32 76 28 64 29 57 74 84 47</file>
</tool>
</inputs>
</file>
@@ -481,13 +490,13 @@
<outputs>
<tool>
<name>OBJCOPY</name>
<file> 79</file>
<file> 73</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ILINK</name>
<file> 81 37 0 8 16 6 38 30 26 29 19 69 41 27 9 71 40 74 35</file>
<file> 71 20 40 54 85 75 25 94 56 59 41 44 15 87 63 48 23 31 34</file>
</tool>
</inputs>
</file>

File diff suppressed because one or more lines are too long

View File

@@ -48,7 +48,7 @@
<Freq>16000000</Freq>
</Simulator>
<DebugChecksum>
<Checksum>2493156399</Checksum>
<Checksum>113740736</Checksum>
</DebugChecksum>
<CallStack>
<ShowArgs>0</ShowArgs>
@@ -66,6 +66,9 @@
<GraphEnabled>0</GraphEnabled>
<ShowTimeLog>1</ShowTimeLog>
</DataSample>
<Breakpoints>
<Count>0</Count>
</Breakpoints>
<LogFile>
<LoggingEnabled>_ 0</LoggingEnabled>
<LogFile>_ ""</LogFile>
@@ -75,9 +78,6 @@
<LoggingEnabled>_ 0</LoggingEnabled>
<LogFile>_ ""</LogFile>
</TermIOLog>
<Breakpoints>
<Count>0</Count>
</Breakpoints>
<Aliases>
<Count>0</Count>
<SuppressDialog>0</SuppressDialog>

File diff suppressed because one or more lines are too long

View File

@@ -37,6 +37,7 @@
#define REQ_ERR 0x52
#define REQ_READ 0x53
#define REQ_CATEGORY 0x54
#define REQ_COMMAND 0x55
#define RSP_READY 0x60
#define RSP_INDEX 0x61
@@ -45,6 +46,8 @@
#define RSP_DONE 0x64
#define RSP_INDEX_DONE 0x65
#define RSP_CMD_ERR 0x66
#define RSP_IR_OPENED 0x67
#define RSP_IR_FAILURE 0x68
#define BLOCK_BYTES 16
@@ -84,6 +87,9 @@ static void IRext_processUartMsg();
static void HandleBinReady();
static void HandleBinWrite();
static void HandleBinCategory();
static void HandleCommand();
static void PrepareDecoding();
static void ParseCommand(uint8_t* data, uint16_t len);
static void TransportDataToUart(uint8_t* data, uint16_t len);
@@ -135,7 +141,7 @@ void init_GPIO()
void init_UART()
{
UART3_DeInit();
UART3_Init((uint32_t)9600, UART3_WORDLENGTH_8D, UART3_STOPBITS_1, UART3_PARITY_NO,
UART3_Init((uint32_t)115200, UART3_WORDLENGTH_8D, UART3_STOPBITS_1, UART3_PARITY_NO,
UART3_MODE_TXRX_ENABLE);
#if defined UART_INT
@@ -249,6 +255,8 @@ static void IRext_processUartMsg()
case REQ_CATEGORY:
HandleBinCategory();
break;
case REQ_COMMAND:
HandleCommand();
default:
break;
}
@@ -265,6 +273,7 @@ static void HandleBinReady()
*/
dccb.decoded_length = 0;
memset(dccb.source_code, BINARY_SOURCE_SIZE_MAX, 0x00);
dccb.recv_index = 0;
dccb.source_code_length = 0;
putchar(RSP_READY);
}
@@ -285,7 +294,7 @@ static void HandleBinWrite()
// receive bin block index
expected_index = getchar();
// prepare the offset for the next write
dccb.recv_index = expected_index * BLOCK_BYTES;
dccb.recv_index = expected_index << 4;
// receive expected length of next transfer
expected_length = getchar();
@@ -301,6 +310,7 @@ static void HandleBinWrite()
{
dccb.source_code[dccb.recv_index + received] = getchar();
}
dccb.source_code_length = dccb.recv_index + received;
putchar(RSP_INDEX_DONE);
}
}
@@ -317,6 +327,19 @@ static void HandleBinCategory()
dccb.ir_type = (ir_type_t)getchar();
// bin transfer done
putchar(RSP_DONE);
PrepareDecoding();
}
static void HandleCommand()
{
/*
Request for write category
+----------------------+
| 0x55 | cate (1 byte) |
+----------------------+
*/
}
@@ -357,6 +380,42 @@ static void ParseCommand(uint8_t* data, uint16_t len)
}
static void PrepareDecoding()
{
// parse IREXT binary automatically
if (IR_TYPE_TV == dccb.ir_type)
{
if (IR_DECODE_SUCCEEDED ==
ir_binary_open(IR_CATEGORY_TV, 1, dccb.source_code, dccb.source_code_length))
{
dccb.ir_state = IR_STATE_OPENED;
putchar(RSP_IR_OPENED);
}
else
{
putchar(RSP_IR_FAILURE);
}
}
else if (IR_TYPE_AC == dccb.ir_type)
{
if (IR_DECODE_SUCCEEDED ==
ir_binary_open(IR_CATEGORY_AC, 1, dccb.source_code, dccb.source_code_length))
{
dccb.ir_state = IR_STATE_OPENED;
putchar(RSP_IR_OPENED);
}
else
{
putchar(RSP_IR_FAILURE);
}
}
else
{
putchar(RSP_IR_FAILURE);
}
}
static void TransportDataToUart(uint8_t* data, uint16_t len)
{
for (uint16_t i = 0; i < len; i++)

View File

@@ -70,7 +70,7 @@ typedef struct
{
ir_type_t ir_type;
ir_state_t ir_state;
uint8_t recv_index;
uint16_t recv_index;
uint8_t source_code[BINARY_SOURCE_SIZE_MAX];
uint16_t source_code_length;
uint16_t ir_decoded[USER_DATA_SIZE];