Browse Source

UART1波特率设置25M

div1
QQyyblithe 2 years ago
parent
commit
4856675f22
6 changed files with 293 additions and 205 deletions
  1. +87
    -21
      IAR/settings/test01.dbgdt
  2. +1
    -1
      IAR/settings/test01.dnx
  3. +33
    -16
      IAR/settings/test01.wsdt
  4. +163
    -163
      IAR/test01.dep
  5. +6
    -1
      user/main.c
  6. +3
    -3
      user/uart_Interrupt.c

+ 87
- 21
IAR/settings/test01.dbgdt
File diff suppressed because it is too large
View File


+ 1
- 1
IAR/settings/test01.dnx View File

@@ -35,7 +35,7 @@
<LeaveTargetRunning>_ 0</LeaveTargetRunning>
</JLinkDriver>
<DebugChecksum>
<Checksum>1035944093</Checksum>
<Checksum>1093669819</Checksum>
</DebugChecksum>
<Exceptions>
<StopOnUncaught>_ 0</StopOnUncaught>


+ 33
- 16
IAR/settings/test01.wsdt
File diff suppressed because it is too large
View File


+ 163
- 163
IAR/test01.dep View File

@@ -5,398 +5,398 @@
<configuration>
<name>Debug</name>
<outputs>
<file>$PROJ_DIR$\..\drivers\fsl_common.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_gpio.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_port.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_uart.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_clock.c</file>
<file>$PROJ_DIR$\..\user\delay.h</file>
<file>$PROJ_DIR$\Debug\Obj\delay.o</file>
<file>$PROJ_DIR$\..\user\uart_Interrupt.c</file>
<file>$PROJ_DIR$\..\user\uart_Interrupt.h</file>
<file>$PROJ_DIR$\..\user\main.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_common.h</file>
<file>$TOOLKIT_DIR$\inc\c\ysizet.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product.h</file>
<file>$PROJ_DIR$\..\startup\MKV56F24.h</file>
<file>$PROJ_DIR$\..\Include\core_cm7.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.xcl</file>
<file>$PROJ_DIR$\Debug\Exe\test01.out</file>
<file>$PROJ_DIR$\..\Include\cmsis_version.h</file>
<file>$PROJ_DIR$\Debug\List\test01.map</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.xcl</file>
<file>$TOOLKIT_DIR$\inc\c\stdbool.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.__cstat.et</file>
<file>$PROJ_DIR$\..\utilities\str\fsl_str.c</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_debug_console.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\delay.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.o</file>
<file>$TOOLKIT_DIR$\lib\dl7M_tln.a</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.xcl</file>
<file>$TOOLKIT_DIR$\inc\c\string.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.o</file>
<file>$PROJ_DIR$\..\user\delay.c</file>
<file>$PROJ_DIR$\..\user\pin_Init.c</file>
<file>$TOOLKIT_DIR$\inc\c\iccarm_builtin.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\main.__cstat.et</file>
<file>$PROJ_DIR$\..\drivers\fsl_uart.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product_string.h</file>
<file>$PROJ_DIR$\..\Include\mpu_armv7.h</file>
<file>$PROJ_DIR$\..\startup\system_MKV56F24.c</file>
<file>$PROJ_DIR$\..\startup\startup_MKV56F24.s</file>
<file>$TOOLKIT_DIR$\inc\c\stddef.h</file>
<file>$TOOLKIT_DIR$\inc\c\yvals.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.__cstat.et</file>
<file>$TOOLKIT_DIR$\lib\rt7M_tl.a</file>
<file>$TOOLKIT_DIR$\config\linker\NXP\MKV5xF512xxx24.icf</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.__cstat.et</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.c</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product_stdlib.h</file>
<file>$PROJ_DIR$\Debug\Obj\test01.pbd</file>
<file>$PROJ_DIR$\..\utilities\str\fsl_str.h</file>
<file>$TOOLKIT_DIR$\inc\c\math.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_clock.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_float_setup.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.__cstat.et</file>
<file>$TOOLKIT_DIR$\inc\c\stdlib.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.o</file>
<file>$TOOLKIT_DIR$\lib\shb_l.a</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.o</file>
<file>$TOOLKIT_DIR$\inc\c\stdarg.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.xcl</file>
<file>$PROJ_DIR$\..\drivers\fsl_gpio.h</file>
<file>$PROJ_DIR$\..\utilities\fsl_assert.c</file>
<file>$PROJ_DIR$\..\Include\cmsis_iccarm.h</file>
<file>$PROJ_DIR$\..\user\pin_Init.h</file>
<file>$PROJ_DIR$\Debug\Obj\delay.__cstat.et</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Defaults.h</file>
<file>$PROJ_DIR$\..\startup\system_MKV56F24.h</file>
<file>$PROJ_DIR$\..\startup\MKV56F24_features.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.xcl</file>
<file>$PROJ_DIR$\..\Include\cmsis_compiler.h</file>
<file>$TOOLKIT_DIR$\lib\m7M_tls.a</file>
<file>$PROJ_DIR$\..\utilities\str\fsl_str.c</file>
<file>$TOOLKIT_DIR$\inc\c\ycheck.h</file>
<file>$PROJ_DIR$\..\Include\core_cm7.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.__cstat.et</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console_conf.h</file>
<file>$PROJ_DIR$\..\utilities\fsl_assert.c</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.c</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.o</file>
<file>$PROJ_DIR$\..\startup\fsl_device_registers.h</file>
<file>$PROJ_DIR$\Debug\Obj\main.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.o</file>
<file>$TOOLKIT_DIR$\lib\m7M_tls.a</file>
<file>$PROJ_DIR$\..\Include\cmsis_version.h</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console_conf.h</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.o</file>
<file>$TOOLKIT_DIR$\inc\c\assert.h</file>
<file>$TOOLKIT_DIR$\inc\c\math.h</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.__cstat.et</file>
<file>$TOOLKIT_DIR$\lib\rt7M_tl.a</file>
<file>$PROJ_DIR$\Debug\Obj\main.o</file>
<file>$PROJ_DIR$\..\Include\cmsis_iccarm.h</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.o</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_float_setup.h</file>
<file>$TOOLKIT_DIR$\inc\c\stdlib.h</file>
<file>$PROJ_DIR$\Debug\Obj\startup_MKV56F24.o</file>
<file>$PROJ_DIR$\..\startup\fsl_device_registers.h</file>
<file>$TOOLKIT_DIR$\inc\c\assert.h</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.xcl</file>
<file>$TOOLKIT_DIR$\inc\c\ycheck.h</file>
<file>$PROJ_DIR$\..\startup\MKV56F24_features.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.o</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product_stdlib.h</file>
<file>$PROJ_DIR$\..\Include\cmsis_compiler.h</file>
<file>$TOOLKIT_DIR$\config\linker\NXP\MKV5xF512xxx24.icf</file>
<file>$PROJ_DIR$\Debug\Obj\startup_MKV56F24.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.xcl</file>
<file>$TOOLKIT_DIR$\inc\c\stdint.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_clock.h</file>
<file>$PROJ_DIR$\Debug\Obj\delay.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.o</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Defaults.h</file>
<file>$TOOLKIT_DIR$\lib\dl7M_tln.a</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.o</file>
<file>$TOOLKIT_DIR$\inc\c\stdbool.h</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.o</file>
<file>$PROJ_DIR$\..\drivers\fsl_uart.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.o</file>
<file>$PROJ_DIR$\Debug\Obj\delay.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.__cstat.et</file>
<file>$TOOLKIT_DIR$\inc\c\stdarg.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_debug_console.xcl</file>
<file>$PROJ_DIR$\..\user\pin_Init.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.__cstat.et</file>
<file>$TOOLKIT_DIR$\lib\shb_l.a</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.o</file>
<file>$PROJ_DIR$\..\drivers\fsl_common.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_clock.c</file>
<file>$TOOLKIT_DIR$\inc\c\ysizet.h</file>
<file>$PROJ_DIR$\Debug\Obj\delay.o</file>
<file>$PROJ_DIR$\Debug\Obj\test01.pbd</file>
<file>$PROJ_DIR$\..\utilities\str\fsl_str.h</file>
<file>$PROJ_DIR$\..\startup\MKV56F24.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.xcl</file>
<file>$PROJ_DIR$\..\startup\startup_MKV56F24.s</file>
<file>$PROJ_DIR$\Debug\Obj\main.__cstat.et</file>
<file>$PROJ_DIR$\..\drivers\fsl_gpio.h</file>
<file>$PROJ_DIR$\Debug\Exe\test01.out</file>
<file>$PROJ_DIR$\..\user\delay.h</file>
<file>$PROJ_DIR$\..\Include\mpu_armv7.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_uart.c</file>
<file>$PROJ_DIR$\..\startup\system_MKV56F24.c</file>
<file>$PROJ_DIR$\..\user\uart_Interrupt.h</file>
<file>$TOOLKIT_DIR$\inc\c\yvals.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product.h</file>
<file>$TOOLKIT_DIR$\inc\c\iccarm_builtin.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_common.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.__cstat.et</file>
<file>$PROJ_DIR$\Debug\List\test01.map</file>
<file>$TOOLKIT_DIR$\inc\c\stddef.h</file>
<file>$PROJ_DIR$\..\user\main.c</file>
<file>$PROJ_DIR$\..\user\uart_Interrupt.c</file>
<file>$PROJ_DIR$\..\user\delay.c</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.xcl</file>
<file>$PROJ_DIR$\..\drivers\fsl_gpio.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_port.h</file>
<file>$PROJ_DIR$\..\user\pin_Init.c</file>
</outputs>
<file>
<name>[ROOT_NODE]</name>
<outputs>
<tool>
<name>ILINK</name>
<file> 16 18</file>
<file> 73 84</file>
</tool>
</outputs>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_common.c</name>
<name>$PROJ_DIR$\..\utilities\str\fsl_str.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 77</file>
<file> 36</file>
</tool>
<tool>
<name>__cstat</name>
<file> 33</file>
<file> 7</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 15</file>
<file> 89</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46 72</file>
<file> 46 50 79 31 26 80 19 25 21 64 55 67 82 45 3 60 15 17 85 37 68 33 42 56 28 81 75 32 51 18 43</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_gpio.c</name>
<name>$PROJ_DIR$\..\utilities\fsl_assert.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 21</file>
<file> 10</file>
</tool>
<tool>
<name>__cstat</name>
<file> 55</file>
<file> 52</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 47</file>
<file> 1</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 44 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46 72</file>
<file> 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51 18</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_uart.c</name>
<name>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 82</file>
</tool>
<tool>
<name>__cstat</name>
<file> 86</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 85</file>
<file> 8</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 81 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46 72</file>
<file> 25 21 50 79 31 26 80 64 55 43 82 45 3 60 15 17 85 37 68 33 42 56 28 81 75 32 51 18 67</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_clock.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_common.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 52</file>
<file> 22</file>
</tool>
<tool>
<name>__cstat</name>
<file> 90</file>
<file> 83</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 25</file>
<file> 53</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 72 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46</file>
<file> 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51 18</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\user\uart_Interrupt.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_clock.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 74</file>
<file> 34</file>
</tool>
<tool>
<name>__cstat</name>
<file> 79</file>
<file> 13</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 68</file>
<file> 69</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46 72 8 81 89</file>
<file> 18 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\user\main.c</name>
<name>$PROJ_DIR$\..\startup\startup_MKV56F24.s</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 60</file>
</tool>
<tool>
<name>__cstat</name>
<file> 26</file>
</tool>
<tool>
<name>BICOMP</name>
<name>AARM</name>
<file> 58</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46 72 44 89 5 8</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\Debug\Exe\test01.out</name>
<outputs>
<tool>
<name>ILINK</name>
<file> 18</file>
<file> 84</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ILINK</name>
<file> 35 6 52 77 21 82 60 80 65 62 74 91 34 49 76</file>
<file> 57 65 34 22 40 4 49 44 58 24 61 23 48 41 11</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\user\delay.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_uart.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 6</file>
<file> 4</file>
</tool>
<tool>
<name>__cstat</name>
<file> 83</file>
<file> 5</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 73</file>
<file> 2</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46 72 5</file>
<file> 16 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51 18</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\user\pin_Init.c</name>
<name>$PROJ_DIR$\..\startup\system_MKV56F24.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 80</file>
<file> 24</file>
</tool>
<tool>
<name>__cstat</name>
<file> 69</file>
<file> 47</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 84</file>
<file> 0</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46 72 2 44 89 81</file>
<file> 60 50 79 31 26 80 37 68 33 42 56 28 81 75 32 51</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\startup\system_MKV56F24.c</name>
<name>$PROJ_DIR$\..\user\main.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 62</file>
<file> 49</file>
</tool>
<tool>
<name>__cstat</name>
<file> 59</file>
<file> 71</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 54</file>
<file> 38</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 71 51 32 75 42 12 66 13 14 17 48 61 24 28 45 46</file>
<file> 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51 18 72 29 74 78 16</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\startup\startup_MKV56F24.s</name>
<name>$PROJ_DIR$\..\user\uart_Interrupt.c</name>
<outputs>
<tool>
<name>AARM</name>
<file> 65</file>
<name>ICCARM</name>
<file> 61</file>
</tool>
<tool>
<name>__cstat</name>
<file> 39</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 14</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51 18 78 16 29</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.c</name>
<name>$PROJ_DIR$\..\user\delay.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 65</file>
</tool>
<tool>
<name>__cstat</name>
<file> 30</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 88</file>
<file> 9</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 87 64 51 32 75 42 12 11 38 56 10 67 78 71 19 27 31 66 13 14 17 48 61 24 28 45 46 72 40</file>
<file> 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51 18 74</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\str\fsl_str.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_gpio.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 70</file>
<file> 40</file>
</tool>
<tool>
<name>__cstat</name>
<file> 36</file>
<file> 20</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 43</file>
<file> 59</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 41 51 32 75 42 12 63 87 64 11 38 40 10 67 78 71 19 27 31 66 13 14 17 48 61 24 28 45 46 72 56</file>
<file> 72 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51 18</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\fsl_assert.c</name>
<name>$PROJ_DIR$\..\user\pin_Init.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 92</file>
<file> 44</file>
</tool>
<tool>
<name>__cstat</name>
<file> 20</file>
<file> 54</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 53</file>
<file> 12</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 10 67 51 32 75 42 12 78 71 19 11 27 64 38 31 66 13 14 17 48 61 24 28 45 46 72</file>
<file> 82 45 50 79 31 26 80 3 60 15 64 17 21 55 85 37 68 33 42 56 28 81 75 32 51 18 91 72 29 16</file>
</tool>
</inputs>
</file>


+ 6
- 1
user/main.c View File

@@ -4,22 +4,27 @@
#include "pin_Init.h"
#include "delay.h"
#include "uart_Interrupt.h"
#include "fsl_uart.h"
#include "system_MKV56F24.h"
/*********************************************
PTA15——LED灯闪烁
**********************************************/

void main()
{
MCG->C4 = 0x20;
SystemCoreClockUpdate ();
Delay_Init(); //延时函数初始化
pin_Init(); //GPIO初始化
UART1_InterrputInit(); //UART0初始化
UART2_InterrputInit(); //UART2初始化
while (1)
{
GPIO_PinWrite(GPIOA, 15, 0);
GPIO_PinWrite(GPIOA, 15, 0);
Delay_ms(500U);
GPIO_PinWrite(GPIOA, 15, 1);
Delay_ms(500U);
UART_WriteByte(UART1, 0x1A); //发送一帧数据(一个字节,8个数据位)
}

}


+ 3
- 3
user/uart_Interrupt.c View File

@@ -6,8 +6,8 @@

/*****************变量声明*************************/
uint8_t demoRingBuffer[DEMO_RING_BUFFER_SIZE];
uint16_t txIndex; //发送数据计数变量
volatile uint16_t rxIndex; //接收数据计数变量
uint16_t txIndex; //发送数据计数
volatile uint16_t rxIndex; //接收数据计数

/*****************UART1初始化*************************/
void UART1_InterrputInit()
@@ -15,7 +15,7 @@ void UART1_InterrputInit()
UART1_InitPins(); //UART1引脚初始化
uart_config_t config; //参数设置
UART_GetDefaultConfig(&config);
config.baudRate_Bps = 9600; //设置波特率
config.baudRate_Bps = 2500000u; //设置波特率
config.enableTx = true;
config.enableRx = true;
UART_Init(UART1, &config, SystemCoreClock); //初始化配置


Loading…
Cancel
Save