Browse Source

添加ADC模块,实现直流母线电压采集,编码器读取

div1
QQyyblithe 2 years ago
parent
commit
e9ff723f7c
12 changed files with 371 additions and 246 deletions
  1. +4
    -4
      IAR/settings/test01.dbgdt
  2. +1
    -1
      IAR/settings/test01.dnx
  3. +9
    -9
      IAR/settings/test01.wsdt
  4. +246
    -200
      IAR/test01.dep
  5. +6
    -0
      IAR/test01.ewp
  6. +6
    -0
      IAR/test01.ewt
  7. +41
    -0
      user/adc_Interrupt.c
  8. +10
    -0
      user/adc_Interrupt.h
  9. +13
    -7
      user/main.c
  10. +1
    -1
      user/pin_Init.c
  11. +33
    -24
      user/uart_Interrupt.c
  12. +1
    -0
      user/uart_Interrupt.h

+ 4
- 4
IAR/settings/test01.dbgdt View File

@@ -156,11 +156,11 @@
<RecentlyUsedMenus>1</RecentlyUsedMenus>
<MenuShadows>1</MenuShadows>
<ShowAllMenusAfterDelay>1</ShowAllMenusAfterDelay>
<CommandsUsage>880300001E00138600001A000000108600009800000020810000020000005F860000010000000F810000020000001D810000010000000C810000330000000486000003000000178100000100000056860000640100005584000001000000838600000200000000810000010000005E860000070000000E810000340000001F8100000500000009860000010000008E860000040000000B8100000100000069860000010000001486000026000000028400000100000027810000020000001186000050000000058100000200000046810000800000001084000005000000608600000300000008860000020000005D86000001000000</CommandsUsage>
<CommandsUsage>8E0300001E00138600001A000000108600009B00000020810000020000005F860000010000000F810000020000001D810000010000000C810000330000000486000003000000178100000100000056860000640100005584000001000000838600000200000000810000010000005E860000070000000E810000340000001F8100000500000009860000010000008E860000040000000B8100000100000069860000010000001486000026000000028400000100000027810000020000001186000050000000058100000200000046810000830000001084000005000000608600000300000008860000020000005D86000001000000</CommandsUsage>
</MFCToolBarParameters>
<CommandManager>
<CommandsWithoutImages>19000D8400000F84000008840000FFFFFFFF54840000328100001C81000009840000838600005886000004DC00007784000007840000808C000044D500007486000000DC000001DC000002DC000003DC00002AE10000008200001C8200000182000067860000</CommandsWithoutImages>
<MenuUserImages>4F001386000031000000048400007E000000578600001C000000768600003B000000108600002F00000015810000560000002CE1000074000000848600003C0000003184000085000000239200000000000007E100006C000000208100005D0000000F810000550000000A8600002D00000004E100006A0000005F860000650000000C81000052000000078600002A0000000D8000004800000001E100006700000023E100006E0000000684000080000000048600002700000019820000460000005686000035000000038400007D0000009A8600001A00000017810000580000004A810000780000001682000044000000008400007A00000014810000550000002BE10000730000000E840000820000003084000084000000008100004A0000005E860000370000001F8100005C0000000E81000054000000098600002C0000001A8600003400000003E100006900000025E10000700000002F820000470000008E8600003D0000000B81000051000000068600002900000000E100006600000022E100006D0000001486000032000000D184000020000000058400007F000000698600003A00000041E100007600000018820000450000001186000030000000028400007C0000005586000008000000168100005700000049810000770000004681000064000000108400008300000032840000860000000E8600001B00000060860000390000000B8600002E000000518400008700000005E100006B0000005D860000360000000A84000081000000088600002B000000C386000004000000A18600003E0000000D8100005300000002E10000680000001686000033000000C08600000E00000037870000030000000586000028000000</MenuUserImages>
<MenuUserImages>4F00578600001C000000048400007E00000013860000310000002CE10000740000001581000056000000108600002F000000768600003B00000007E100006C00000023920000000000003184000085000000848600003C0000005F8600006500000004E100006A0000000A8600002D0000000F81000055000000208100005D00000023E100006E00000001E10000670000000D80000048000000078600002A0000000C8100005200000019820000460000000486000027000000068400008000000016820000440000004A8100007800000017810000580000009A8600001A000000038400007D00000056860000350000002BE10000730000001481000055000000008400007A000000008100004A00000030840000840000000E840000820000002F8200004700000025E100007000000003E10000690000001A86000034000000098600002C0000000E810000540000001F8100005C0000005E8600003700000022E100006D00000000E100006600000006860000290000000B810000510000008E8600003D000000188200004500000041E1000076000000698600003A000000058400007F000000D1840000200000001486000032000000498100007700000016810000570000005586000008000000028400007C00000011860000300000000E8600001B00000032840000860000001084000083000000468100006400000005E100006B00000051840000870000000B8600002E000000608600003900000002E10000680000000D81000053000000A18600003E000000C386000004000000088600002B0000000A840000810000005D8600003600000005860000280000003787000003000000C08600000E0000001686000033000000</MenuUserImages>
</CommandManager>
<Pane-59393>
<ID>0</ID>
@@ -1142,7 +1142,7 @@
</BasePane-34048>
<MFCToolBar-34049>
<Name>Debug</Name>
<Buttons>00200000010000000800FFFF01001100434D4643546F6F6C426172427574746F6E568600000000000035000000FFFEFF0000000000000000000000000001000000010000000180138600000000000031000000FFFEFF00000000000000000000000000010000000100000001805E8600000000000037000000FFFEFF0000000000000000000000000001000000010000000180608600000000000039000000FFFEFF00000000000000000000000000010000000100000001805D8600000000040036000000FFFEFF000000000000000000000000000100000001000000018010860000000000002F000000FFFEFF0000000000000000000000000001000000010000000180118600000000040030000000FFFEFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E148600000000000032000000FFFEFF205200650073006500740020007400680065002000640065006200750067006700650064002000700072006F006700720061006D000A00520065007300650074000000000000000000000000000100000001000000000000000000000001000000020009800000000000000400FFFFFFFFFFFEFF000000000000000000000000000100000001000000000000000000000001000000000009801986000000000000FFFFFFFFFFFEFF000100000000000000000000000100000001000000000000000000000001000000000000000000FFFEFF0544006500620075006700C6000000</Buttons>
<Buttons>00200000010000000800FFFF01001100434D4643546F6F6C426172427574746F6E568600000000040035000000FFFEFF0000000000000000000000000001000000010000000180138600000000040031000000FFFEFF00000000000000000000000000010000000100000001805E8600000000040037000000FFFEFF0000000000000000000000000001000000010000000180608600000000040039000000FFFEFF00000000000000000000000000010000000100000001805D8600000000040036000000FFFEFF000000000000000000000000000100000001000000018010860000000004002F000000FFFEFF0000000000000000000000000001000000010000000180118600000000000030000000FFFEFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E148600000000040032000000FFFEFF205200650073006500740020007400680065002000640065006200750067006700650064002000700072006F006700720061006D000A00520065007300650074000000000000000000000000000100000001000000000000000000000001000000020009800000000000000400FFFFFFFFFFFEFF000000000000000000000000000100000001000000000000000000000001000000000009801986000000000000FFFFFFFFFFFEFF000100000000000000000000000100000001000000000000000000000001000000000000000000FFFEFF0544006500620075006700C6000000</Buttons>
</MFCToolBar-34049>
<Pane-34049>
<ID>34049</ID>
@@ -1176,7 +1176,7 @@
</BasePane-34050>
<MFCToolBar-34051>
<Name>Main</Name>
<Buttons>00200000010000002100FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000067000000FFFEFF000000000000000000000000000100000001000000018001E100000000000068000000FFFEFF000000000000000000000000000100000001000000018003E10000000000006A000000FFFEFF000000000000000000000000000100000001000000018000810000000000004B000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E10000000000006D000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E10000000004006F000000FFFEFF000000000000000000000000000100000001000000018022E10000000004006E000000FFFEFF000000000000000000000000000100000001000000018025E100000000000071000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040074000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040075000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000000FFFFFFFFFFFEFF0001000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF0096000000000000000000018021810000000004005E000000FFFEFF000000000000000000000000000100000001000000018024E100000000000070000000FFFEFF000000000000000000000000000100000001000000018028E100000000040072000000FFFEFF000000000000000000000000000100000001000000018029E100000000000073000000FFFEFF000000000000000000000000000100000001000000018002810000000000004D000000FFFEFF0000000000000000000000000001000000010000000180298100000000000062000000FFFEFF0000000000000000000000000001000000010000000180278100000000000060000000FFFEFF0000000000000000000000000001000000010000000180288100000000000061000000FFFEFF00000000000000000000000000010000000100000001801D810000000000005A000000FFFEFF00000000000000000000000000010000000100000001801E810000000004005B000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B8100000000000051000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000052000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000066000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001801F810000000000005C000000FFFEFF000000000000000000000000000100000001000000018020810000000000005D000000FFFEFF0000000000000000000000000001000000010000000180468100000000000064000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00FF020000</Buttons>
<Buttons>00200000010000002100FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000067000000FFFEFF000000000000000000000000000100000001000000018001E100000000000068000000FFFEFF000000000000000000000000000100000001000000018003E10000000000006A000000FFFEFF000000000000000000000000000100000001000000018000810000000000004B000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E10000000000006D000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E10000000004006F000000FFFEFF000000000000000000000000000100000001000000018022E10000000004006E000000FFFEFF000000000000000000000000000100000001000000018025E100000000000071000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040074000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040075000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000000FFFFFFFFFFFEFF0000000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF0096000000000000000000018021810000000004005E000000FFFEFF000000000000000000000000000100000001000000018024E100000000000070000000FFFEFF000000000000000000000000000100000001000000018028E100000000040072000000FFFEFF000000000000000000000000000100000001000000018029E100000000000073000000FFFEFF000000000000000000000000000100000001000000018002810000000000004D000000FFFEFF0000000000000000000000000001000000010000000180298100000000000062000000FFFEFF0000000000000000000000000001000000010000000180278100000000000060000000FFFEFF0000000000000000000000000001000000010000000180288100000000000061000000FFFEFF00000000000000000000000000010000000100000001801D810000000000005A000000FFFEFF00000000000000000000000000010000000100000001801E810000000004005B000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B8100000000000051000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000052000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000066000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001801F810000000000005C000000FFFEFF000000000000000000000000000100000001000000018020810000000000005D000000FFFEFF0000000000000000000000000001000000010000000180468100000000020064000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00FF020000</Buttons>
</MFCToolBar-34051>
<Pane-34051>
<ID>34051</ID>


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

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


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


+ 246
- 200
IAR/test01.dep View File

@@ -1,249 +1,257 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<fileVersion>4</fileVersion>
<fileChecksum>1415475508</fileChecksum>
<fileChecksum>14492896</fileChecksum>
<configuration>
<name>Debug</name>
<outputs>
<file>$PROJ_DIR$\..\drivers\fsl_common.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_uart.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_port.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_gpio.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_clock.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_common.h</file>
<file>$PROJ_DIR$\Debug\List\test01.map</file>
<file>$TOOLKIT_DIR$\inc\c\string.h</file>
<file>$TOOLKIT_DIR$\lib\rt7M_tl.a</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.__cstat.et</file>
<file>$PROJ_DIR$\..\user\delay.c</file>
<file>$PROJ_DIR$\Debug\Obj\startup_MKV56F24.o</file>
<file>$TOOLKIT_DIR$\inc\c\stdarg.h</file>
<file>$PROJ_DIR$\..\user\uart_Interrupt.h</file>
<file>$PROJ_DIR$\..\user\main.c</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.o</file>
<file>$TOOLKIT_DIR$\inc\c\stdbool.h</file>
<file>$TOOLKIT_DIR$\inc\c\math.h</file>
<file>$PROJ_DIR$\..\startup\system_MKV56F24.c</file>
<file>$PROJ_DIR$\..\startup\MKV56F24.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.o</file>
<file>$PROJ_DIR$\Debug\Obj\delay.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\main.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\uart_adapter.__cstat.et</file>
<file>$PROJ_DIR$\..\Include\core_cm7.h</file>
<file>$PROJ_DIR$\..\utilities\serial_manager.h</file>
<file>$TOOLKIT_DIR$\lib\m7M_tls.a</file>
<file>$PROJ_DIR$\..\drivers\fsl_adc16.h</file>
<file>$TOOLKIT_DIR$\inc\c\assert.h</file>
<file>$PROJ_DIR$\..\utilities\serial_manager.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_gpio.h</file>
<file>$PROJ_DIR$\..\startup\fsl_device_registers.h</file>
<file>$PROJ_DIR$\..\utilities\str\fsl_str.c</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.o</file>
<file>$PROJ_DIR$\Debug\Obj\uart_adapter.o</file>
<file>$PROJ_DIR$\Debug\Obj\generic_list.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\uart_adapter.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.xcl</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_float_setup.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_debug_console.o</file>
<file>$TOOLKIT_DIR$\config\linker\NXP\MKV5xF512xxx24.icf</file>
<file>$PROJ_DIR$\..\Include\cmsis_iccarm.h</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.o</file>
<file>$PROJ_DIR$\..\user\pin_Init.c</file>
<file>$PROJ_DIR$\..\user\delay.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Defaults.h</file>
<file>$PROJ_DIR$\..\user\uart_Interrupt.c</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.__cstat.et</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console_conf.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.__cstat.et</file>
<file>$PROJ_DIR$\..\utilities\serial_port_uart.h</file>
<file>$PROJ_DIR$\..\startup\system_MKV56F24.h</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\delay.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.o</file>
<file>$PROJ_DIR$\..\Include\cmsis_compiler.h</file>
<file>$PROJ_DIR$\..\utilities\str\fsl_str.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_debug_console.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.__cstat.et</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.c</file>
<file>$PROJ_DIR$\..\Include\cmsis_version.h</file>
<file>$PROJ_DIR$\..\startup\startup_MKV56F24.s</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.xcl</file>
<file>$PROJ_DIR$\Debug\List\test01.map</file>
<file>$PROJ_DIR$\Debug\Obj\main.o</file>
<file>$PROJ_DIR$\..\utilities\str\fsl_str.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.xcl</file>
<file>$TOOLKIT_DIR$\config\linker\NXP\MKV5xF512xxx24.icf</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.o</file>
<file>$TOOLKIT_DIR$\inc\c\iccarm_builtin.h</file>
<file>$PROJ_DIR$\..\user\delay.h</file>
<file>$PROJ_DIR$\Debug\Obj\adc_Interrupt.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_adc16.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.__cstat.et</file>
<file>$TOOLKIT_DIR$\inc\c\stdarg.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.__cstat.et</file>
<file>$PROJ_DIR$\..\drivers\fsl_common.h</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.c</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.o</file>
<file>$PROJ_DIR$\..\drivers\fsl_clock.h</file>
<file>$TOOLKIT_DIR$\inc\c\ysizet.h</file>
<file>$PROJ_DIR$\..\Include\mpu_armv7.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\test01.pbd</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.__cstat.et</file>
<file>$TOOLKIT_DIR$\inc\c\stdlib.h</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.o</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_float_setup.h</file>
<file>$TOOLKIT_DIR$\lib\dl7M_tln.a</file>
<file>$PROJ_DIR$\..\drivers\fsl_gpio.h</file>
<file>$TOOLKIT_DIR$\lib\m7M_tls.a</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.o</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product.h</file>
<file>$TOOLKIT_DIR$\inc\c\iccarm_builtin.h</file>
<file>$TOOLKIT_DIR$\inc\c\stddef.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product_string.h</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.xcl</file>
<file>$PROJ_DIR$\..\Include\core_cm7.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.xcl</file>
<file>$TOOLKIT_DIR$\inc\c\stdbool.h</file>
<file>$PROJ_DIR$\Debug\Obj\delay.o</file>
<file>$TOOLKIT_DIR$\inc\c\stdint.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\main.__cstat.et</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.xcl</file>
<file>$TOOLKIT_DIR$\inc\c\string.h</file>
<file>$PROJ_DIR$\Debug\Obj\delay.xcl</file>
<file>$PROJ_DIR$\..\utilities\fsl_assert.c</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_debug_console.__cstat.et</file>
<file>$PROJ_DIR$\..\utilities\serial_port_uart.h</file>
<file>$PROJ_DIR$\..\Include\cmsis_compiler.h</file>
<file>$PROJ_DIR$\..\Include\cmsis_iccarm.h</file>
<file>$PROJ_DIR$\..\utilities\serial_port_internal.h</file>
<file>$PROJ_DIR$\..\utilities\serial_manager.c</file>
<file>$TOOLKIT_DIR$\inc\c\ycheck.h</file>
<file>$PROJ_DIR$\..\startup\fsl_device_registers.h</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console_conf.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_debug_console.o</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_uart.o</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product_stdlib.h</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\main.xcl</file>
<file>$PROJ_DIR$\..\Include\cmsis_version.h</file>
<file>$TOOLKIT_DIR$\lib\rt7M_tl.a</file>
<file>$PROJ_DIR$\Debug\Obj\startup_MKV56F24.o</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product_string.h</file>
<file>$PROJ_DIR$\Debug\Obj\pin_Init.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.xcl</file>
<file>$PROJ_DIR$\..\drivers\fsl_port.h</file>
<file>$PROJ_DIR$\..\utilities\serial_port_uart.c</file>
<file>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.h</file>
<file>$PROJ_DIR$\..\startup\MKV56F24_features.h</file>
<file>$TOOLKIT_DIR$\inc\c\assert.h</file>
<file>$PROJ_DIR$\..\utilities\str\fsl_str.c</file>
<file>$PROJ_DIR$\Debug\Obj\delay.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\serial_port_uart.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\serial_port_uart.xcl</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product.h</file>
<file>$TOOLKIT_DIR$\inc\c\yvals.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_gpio.__cstat.et</file>
<file>$PROJ_DIR$\..\user\main.c</file>
<file>$PROJ_DIR$\..\user\uart_Interrupt.c</file>
<file>$PROJ_DIR$\..\drivers\fsl_gpio.c</file>
<file>$PROJ_DIR$\..\user\uart_Interrupt.h</file>
<file>$PROJ_DIR$\Debug\Exe\test01.out</file>
<file>$PROJ_DIR$\..\startup\system_MKV56F24.c</file>
<file>$PROJ_DIR$\Debug\Obj\generic_list.o</file>
<file>$PROJ_DIR$\..\drivers\fsl_clock.c</file>
<file>$PROJ_DIR$\Debug\Obj\generic_list.xcl</file>
<file>$PROJ_DIR$\..\drivers\fsl_uart.h</file>
<file>$PROJ_DIR$\..\user\delay.c</file>
<file>$TOOLKIT_DIR$\lib\shb_l.a</file>
<file>$PROJ_DIR$\Debug\Exe\test01.out</file>
<file>$PROJ_DIR$\..\utilities\serial_port_internal.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_common.c</file>
<file>$TOOLKIT_DIR$\inc\c\stdint.h</file>
<file>$PROJ_DIR$\..\startup\MKV56F24.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_uart.c</file>
<file>$PROJ_DIR$\..\startup\startup_MKV56F24.s</file>
<file>$PROJ_DIR$\..\user\pin_Init.c</file>
<file>$PROJ_DIR$\..\user\adc_Interrupt.c</file>
<file>$PROJ_DIR$\..\utilities\generic_list.h</file>
<file>$PROJ_DIR$\..\user\pin_Init.h</file>
<file>$PROJ_DIR$\..\startup\system_MKV56F24.h</file>
<file>$PROJ_DIR$\Debug\Obj\system_MKV56F24.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_common.xcl</file>
<file>$PROJ_DIR$\..\user\adc_Interrupt.h</file>
<file>$PROJ_DIR$\..\drivers\fsl_adc16.c</file>
<file>$TOOLKIT_DIR$\inc\c\stdlib.h</file>
<file>$PROJ_DIR$\Debug\Obj\uart_Interrupt.xcl</file>
<file>$TOOLKIT_DIR$\lib\dl7M_tln.a</file>
<file>$TOOLKIT_DIR$\inc\c\ycheck.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_str.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_adc16.o</file>
<file>$PROJ_DIR$\..\utilities\uart_adapter.c</file>
<file>$PROJ_DIR$\Debug\Obj\serial_manager.o</file>
<file>$PROJ_DIR$\Debug\Obj\main.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.__cstat.et</file>
<file>$PROJ_DIR$\..\startup\MKV56F24_features.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Defaults.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.__cstat.et</file>
<file>$PROJ_DIR$\..\drivers\fsl_clock.h</file>
<file>$PROJ_DIR$\..\Include\mpu_armv7.h</file>
<file>$PROJ_DIR$\Debug\Obj\serial_port_uart.o</file>
<file>$PROJ_DIR$\Debug\Obj\serial_manager.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\serial_port_uart.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\uart_adapter.o</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Product_stdlib.h</file>
<file>$TOOLKIT_DIR$\inc\c\math.h</file>
<file>$TOOLKIT_DIR$\inc\c\stddef.h</file>
<file>$TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h</file>
<file>$PROJ_DIR$\..\utilities\generic_list.c</file>
<file>$PROJ_DIR$\Debug\Obj\uart_adapter.xcl</file>
<file>$PROJ_DIR$\..\utilities\uart_adapter.c</file>
<file>$PROJ_DIR$\Debug\Obj\generic_list.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\generic_list.__cstat.et</file>
<file>$PROJ_DIR$\..\utilities\serial_port_uart.c</file>
<file>$PROJ_DIR$\..\utilities\serial_manager.h</file>
<file>$PROJ_DIR$\..\utilities\generic_list.h</file>
<file>$PROJ_DIR$\Debug\Obj\serial_port_uart.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\uart_adapter.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\generic_list.o</file>
<file>$PROJ_DIR$\..\utilities\uart.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_clock.o</file>
<file>$PROJ_DIR$\Debug\Obj\serial_manager.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\serial_manager.xcl</file>
<file>$PROJ_DIR$\Debug\Obj\serial_manager.o</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_assert.o</file>
<file>$TOOLKIT_DIR$\inc\c\ysizet.h</file>
<file>$PROJ_DIR$\..\utilities\uart.h</file>
<file>$PROJ_DIR$\Debug\Obj\fsl_debug_console.__cstat.et</file>
<file>$PROJ_DIR$\Debug\Obj\adc_Interrupt.xcl</file>
</outputs>
<file>
<name>[ROOT_NODE]</name>
<outputs>
<tool>
<name>ILINK</name>
<file> 95 6</file>
</tool>
</outputs>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_common.c</name>
<name>$PROJ_DIR$\..\utilities\serial_manager.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 48</file>
<file> 103</file>
</tool>
<tool>
<name>__cstat</name>
<file> 51</file>
<file> 118</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 68</file>
<file> 119</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45</file>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 3 26 122 83</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_uart.c</name>
<name>$PROJ_DIR$\..\utilities\str\fsl_str.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 83</file>
<file> 100</file>
</tool>
<tool>
<name>__cstat</name>
<file> 30</file>
<file> 43</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 29</file>
<file> 50</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 93 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45</file>
<file> 113 99 69 107 115 68 16 42 96 121 112 32 44 6 51 85 54 60 114 9 86 2 57 31 19 37 110 27 106 109 24</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_gpio.c</name>
<name>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 44</file>
<file> 17</file>
</tool>
<tool>
<name>__cstat</name>
<file> 52</file>
<file> 123</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 35</file>
<file> 33</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 57 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45</file>
<file> 42 96 99 69 107 115 68 121 112 24 44 6 51 85 54 60 114 9 86 2 57 31 19 37 110 27 106 109 32 3 26 122 65</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_clock.c</name>
<name>$PROJ_DIR$\..\utilities\fsl_assert.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 16</file>
<file> 120</file>
</tool>
<tool>
<name>__cstat</name>
<file> 36</file>
<file> 108</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 40</file>
<file> 21</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 45 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88</file>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 65 3 26 122</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\user\delay.c</name>
<name>[ROOT_NODE]</name>
<outputs>
<tool>
<name>ILINK</name>
<file> 75 34</file>
</tool>
</outputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\serial_port_uart.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 66</file>
<file> 111</file>
</tool>
<tool>
<name>__cstat</name>
<file> 91</file>
<file> 66</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 22</file>
<file> 67</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45 25</file>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 3 26 122 83</file>
</tool>
</inputs>
</file>
@@ -252,229 +260,267 @@
<outputs>
<tool>
<name>ICCARM</name>
<file> 38</file>
<file> 35</file>
</tool>
<tool>
<name>__cstat</name>
<file> 69</file>
<file> 104</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 86</file>
<file> 0</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45 57 96 25 14 93</file>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 8 92 38 74 94 80</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\startup\system_MKV56F24.c</name>
<name>$PROJ_DIR$\..\user\uart_Interrupt.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 23</file>
<file> 11</file>
</tool>
<tool>
<name>__cstat</name>
<file> 98</file>
<file> 41</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 64</file>
<file> 97</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 67 78 92 26 70 60 79 20 65 32 74 75 61 47 97 88</file>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 74 80 92 8 94</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\user\pin_Init.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_gpio.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 54</file>
<file> 46</file>
</tool>
<tool>
<name>__cstat</name>
<file> 82</file>
<file> 70</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 41</file>
<file> 62</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45 2 57 96 93</file>
<file> 8 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\user\uart_Interrupt.c</name>
<name>$PROJ_DIR$\Debug\Exe\test01.out</name>
<outputs>
<tool>
<name>ILINK</name>
<file> 34</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ILINK</name>
<file> 18 39 52 101 117 36 46 30 35 20 59 22 11 82 58 4 98</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\startup\system_MKV56F24.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 59</file>
<file> 22</file>
</tool>
<tool>
<name>__cstat</name>
<file> 10</file>
<file> 23</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 85</file>
<file> 15</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45 14 93 96 57</file>
<file> 85 99 69 107 115 68 9 86 2 57 31 19 37 110 27 106</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\debug_console\fsl_debug_console.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_clock.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 81</file>
<file> 117</file>
</tool>
<tool>
<name>__cstat</name>
<file> 72</file>
<file> 105</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 28</file>
<file> 47</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 13 53 78 92 26 70 60 46 84 80 5 89 17 67 7 63 62 79 20 65 32 74 75 61 47 97 88 45 39 109 73 114 87</file>
<file> 109 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\startup\startup_MKV56F24.s</name>
<name>$PROJ_DIR$\..\user\delay.c</name>
<outputs>
<tool>
<name>AARM</name>
<file> 12</file>
<name>ICCARM</name>
<file> 52</file>
</tool>
<tool>
<name>__cstat</name>
<file> 29</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 55</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 38</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\fsl_assert.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_common.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 50</file>
<file> 36</file>
</tool>
<tool>
<name>__cstat</name>
<file> 34</file>
<file> 25</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 37</file>
<file> 93</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45 87 109 73 114</file>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\serial_manager.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_uart.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 116</file>
<file> 30</file>
</tool>
<tool>
<name>__cstat</name>
<file> 100</file>
<file> 49</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 115</file>
<file> 53</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45 109 73 114 76</file>
<file> 80 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\str\fsl_str.c</name>
<name>$PROJ_DIR$\..\startup\startup_MKV56F24.s</name>
<outputs>
<tool>
<name>AARM</name>
<file> 59</file>
</tool>
</outputs>
</file>
<file>
<name>$PROJ_DIR$\..\user\pin_Init.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 21</file>
<file> 20</file>
</tool>
<tool>
<name>__cstat</name>
<file> 43</file>
<file> 28</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 9</file>
<file> 61</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 18 78 92 26 70 60 55 13 53 46 84 39 5 89 17 67 7 63 62 79 20 65 32 74 75 61 47 97 88 45 80</file>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 63 8 92 80</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\Debug\Exe\test01.out</name>
<name>$PROJ_DIR$\..\user\adc_Interrupt.c</name>
<outputs>
<tool>
<name>ILINK</name>
<file> 6</file>
<name>ICCARM</name>
<file> 39</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 124</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ILINK</name>
<file> 42 66 16 48 44 83 38 54 12 23 59 94 8 58 56</file>
<name>ICCARM</name>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 63 8 94 5</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\generic_list.c</name>
<name>$PROJ_DIR$\..\drivers\fsl_adc16.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 113</file>
</tool>
<tool>
<name>__cstat</name>
<file> 107</file>
<file> 101</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 106</file>
<file> 40</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 110 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45</file>
<file> 5 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109</file>
</tool>
</inputs>
</file>
@@ -483,44 +529,44 @@
<outputs>
<tool>
<name>ICCARM</name>
<file> 102</file>
<file> 12</file>
</tool>
<tool>
<name>__cstat</name>
<file> 112</file>
<file> 1</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 104</file>
<file> 14</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45 93 114</file>
<file> 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109 80 122</file>
</tool>
</inputs>
</file>
<file>
<name>$PROJ_DIR$\..\utilities\serial_port_uart.c</name>
<name>$PROJ_DIR$\..\utilities\generic_list.c</name>
<outputs>
<tool>
<name>ICCARM</name>
<file> 99</file>
<file> 77</file>
</tool>
<tool>
<name>__cstat</name>
<file> 111</file>
<file> 13</file>
</tool>
<tool>
<name>BICOMP</name>
<file> 101</file>
<file> 79</file>
</tool>
</outputs>
<inputs>
<tool>
<name>ICCARM</name>
<file> 5 89 78 92 26 70 60 17 67 7 46 63 53 84 62 79 20 65 32 74 75 61 47 97 88 45 109 73 114 76</file>
<file> 91 44 6 99 69 107 115 68 51 85 54 121 60 96 112 114 9 86 2 57 31 19 37 110 27 106 109</file>
</tool>
</inputs>
</file>


+ 6
- 0
IAR/test01.ewp View File

@@ -2109,6 +2109,9 @@
</configuration>
<group>
<name>drivers</name>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_adc16.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_clock.c</name>
</file>
@@ -2139,6 +2142,9 @@
</group>
<group>
<name>user</name>
<file>
<name>$PROJ_DIR$\..\user\adc_Interrupt.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\user\delay.c</name>
</file>


+ 6
- 0
IAR/test01.ewt View File

@@ -2371,6 +2371,9 @@
</configuration>
<group>
<name>drivers</name>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_adc16.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\drivers\fsl_clock.c</name>
</file>
@@ -2401,6 +2404,9 @@
</group>
<group>
<name>user</name>
<file>
<name>$PROJ_DIR$\..\user\adc_Interrupt.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\user\delay.c</name>
</file>


+ 41
- 0
user/adc_Interrupt.c View File

@@ -0,0 +1,41 @@
/*****************Í·Îļþ*************************/
#include "fsl_common.h"
#include "fsl_port.h"
#include "fsl_gpio.h"
#include "adc_Interrupt.h"
#include "fsl_adc16.h"


uint32_t g_Adc16ConversionValue = 0;
uint32_t g_Adc16Count = 0;

/*****************ADC³õʼ»¯*************************/
void ADC16_InterrputInit() //ADC³õʼ»¯
{
adc16_config_t adc16ConfigStruct;
adc16_channel_config_t adc16ChannelConfigStruct;
EnableIRQ(ADC0_IRQn);
ADC16_GetDefaultConfig(&adc16ConfigStruct);
adc16ConfigStruct.enableContinuousConversion = true;
ADC16_Init(ADC0, &adc16ConfigStruct);
ADC16_EnableHardwareTrigger(ADC0, false); /* Make sure the software trigger is used. */
adc16ChannelConfigStruct.channelNumber = 2u;
adc16ChannelConfigStruct.enableInterruptOnConversionCompleted = true; /* Enable the interrupt. */
ADC16_SetChannelConfig(ADC0, 0u, &adc16ChannelConfigStruct);
}

uint32_t adc_ReturnValue()
{
return g_Adc16ConversionValue;
}

void ADC0_IRQHandler(void)
{

/* Read conversion result to clear the conversion completed flag. */
g_Adc16ConversionValue = ADC16_GetChannelConversionValue(ADC0, 0u);
g_Adc16Count++;
g_Adc16Count %= 1000;
SDK_ISR_EXIT_BARRIER;
}


+ 10
- 0
user/adc_Interrupt.h View File

@@ -0,0 +1,10 @@
#ifndef _ADC_INTERRUPT_H_
#define _ADC_INTERRUPT_H_

/*****************宏定义*************************/


/*****************函数声明*************************/
void ADC16_InterrputInit(); //ADC初始化
uint32_t adc_ReturnValue();
#endif

+ 13
- 7
user/main.c View File

@@ -4,6 +4,7 @@
#include "pin_Init.h"
#include "delay.h"
#include "uart_Interrupt.h"
#include "adc_Interrupt.h"
#include "fsl_uart.h"
#include "system_MKV56F24.h"
/*********************************************
@@ -14,14 +15,16 @@ void main()
{
MCG->C4 = 0x40;
SystemCoreClockUpdate ();
NVIC_SetPriorityGrouping(3u); //设置优先级分组3
NVIC_SetPriority(SysTick_IRQn, NVIC_EncodePriority(3u, 3, 2)); //抢占优先级2,子优先级2
NVIC_SetPriority(UART1_RX_TX_IRQn, NVIC_EncodePriority(3u, 1, 2)); //抢占优先级1,子优先级2
NVIC_SetPriority(UART2_RX_TX_IRQn, NVIC_EncodePriority(3u, 2, 2)); //抢占优先级1,子优先级2
// NVIC_SetPriorityGrouping(3u); //设置优先级分组3
// NVIC_SetPriority(SysTick_IRQn, NVIC_EncodePriority(3u, 3, 2)); //抢占优先级3,子优先级2
// NVIC_SetPriority(UART1_RX_TX_IRQn, NVIC_EncodePriority(3u, 1, 2)); //抢占优先级1,子优先级2
//NVIC_SetPriority(UART2_RX_TX_IRQn, NVIC_EncodePriority(3u, 2, 1)); //抢占优先级1,子优先级2
//NVIC_SetPriority(ADC0_IRQn, NVIC_EncodePriority(3u, 2, 2)); //抢占优先级1,子优先级2
Delay_Init(); //延时函数初始化
pin_Init(); //GPIO初始化
UART1_InterrputInit(); //UART1初始化
UART2_InterrputInit(); //UART2初始化
ADC16_InterrputInit(); //ADC初始化
while (1)
{
// GPIO_PinWrite(GPIOA, 15, 0);
@@ -29,10 +32,13 @@ void main()
// GPIO_PinWrite(GPIOA, 15, 1);
// Delay_ms(100U);
UART1_sendData();
Delay_ms(300U);
UART2_sendData();
Delay_ms(300U);
Delay_ms(500U);
RS485_Recieve_Data();
ADC16_Recieve_Data();
UART2_sendData();
Delay_ms(500U);

}

}


+ 1
- 1
user/pin_Init.c View File

@@ -15,7 +15,7 @@ void pin_Init()
kPORT_FastSlewRate, //快速压摆率
kPORT_PassiveFilterDisable, //无源滤波器
kPORT_OpenDrainDisable, //推挽输出
kPORT_LowDriveStrength, //低驱动力
kPORT_HighDriveStrength, //高驱动力
kPORT_MuxAsGpio, //普通GPIO模式
kPORT_UnlockRegister, //
};


+ 33
- 24
user/uart_Interrupt.c View File

@@ -4,20 +4,21 @@
#include "fsl_uart.h"
#include "pin_Init.h"
#include "fsl_gpio.h"
#include "adc_Interrupt.h"

/*****************变量声明*************************/
uint8_t demoRingBuffer[DEMO_RING_BUFFER_SIZE];
uint16_t txIndex; //发送数据计数
uint16_t rxIndex; //接收数据计数
uint16_t UART1rxIndex = 0; //接收数据计数
volatile uint16_t UART1rxIndex = 0; //接收数据计数
uint8_t RS485_Buf_Arr[DEMO_RS485_ARR_SIZE]; //RS485缓存数据数组
uint16_t UART2_SendData_len; //记录UART2发送数据长度
uint8_t UART2_SendData_OK; //UART2发送结束标志
uint16_t UART2_SendData_OK; //UART2发送结束标志
uint8_t g_tipString1[] = "\r\n\r\n编码器位置\t";
uint8_t g_tipString2[] = "\t圈数\t";
uint8_t g_tipString2[] = "\t电压\t";
uint32_t BMQ_Location_Num; //编码器位置
uint32_t BMQ_Circle_Num; //编码器圈数
uint8_t UART2_Buf_Arr[DEMO_UART2_ARR_SIZE]; //RS485缓存数据数组
uint32_t adc_GetValue = 0; //接收母线直流电压值
/*****************UART1初始化*************************/
void UART1_InterrputInit()
{
@@ -97,13 +98,17 @@ void UART2_RX_TX_IRQHandler(void)
/**************发送一帧数据*************/
void UART1_sendData()
{
if (UART2_SendData_OK == 1)
{
return;
}
// if (UART2_SendData_OK == 1)
// {
// return;
// }
UART2_SendData_OK ++;
UART2_SendData_OK %= 100;
GPIO_PinWrite(GPIOE, 3, 1); //PTE3写
UART_WriteByte(UART1, 0x1A); //发送一帧数据(一个字节,8个数据位)
UART_WriteByte(UART1, 0x2A); //发送一帧数据(一个字节,8个数据位)
UART_WriteByte(UART1, 0x1A); //发送一帧数据(一个字节,8个数据位)
UART_WriteByte(UART1, 0x1A); //发送一帧数据(一个字节,8个数据位)
// UART_WriteByte(UART1, 0x00); //发送一帧数据(一个字节,8个数据位)
while (!(kUART_TxDataRegEmptyFlag & UART_GetStatusFlags(UART1))); //发送中断标志
UART_ClearStatusFlags(UART1, kUART_TransmissionCompleteFlag);
GPIO_PinWrite(GPIOE, 3, 0); //PTE3写
@@ -111,8 +116,7 @@ void UART1_sendData()

/**************UART2发送数据*******************/
void UART2_sendData()
{
UART2_SendData_OK = 1;
{
if (UART2_SendData_len != 0)
{
UART_WriteBlocking(DEMO_UART, g_tipString1, sizeof(g_tipString1) / sizeof(g_tipString1[0])-1);
@@ -123,37 +127,42 @@ void UART2_sendData()
UART_ClearStatusFlags(DEMO_UART, kUART_TransmissionCompleteFlag);
}
UART_WriteBlocking(DEMO_UART, g_tipString2, sizeof(g_tipString2) / sizeof(g_tipString2[0])-1);
for (uint8_t i = 0; i < 5; i++ )
for (uint8_t i = 0; i < 6; i++ )
{
UART_WriteByte(DEMO_UART, UART2_Buf_Arr[i+6]);
while (!(kUART_TxDataRegEmptyFlag & UART_GetStatusFlags(DEMO_UART))); //等待发送结束
UART_ClearStatusFlags(DEMO_UART, kUART_TransmissionCompleteFlag);
}
}
UART2_SendData_OK = 0;
}

/***************RS485接收数据*********************/
void RS485_Recieve_Data()
{
for (uint8_t i = 0; i < UART1rxIndex; i++ )
{
RS485_Buf_Arr[i] = demoRingBuffer[i];
}
BMQ_Location_Num = (RS485_Buf_Arr[4] << 16) + (RS485_Buf_Arr[3] << 8) + (RS485_Buf_Arr[2]);
// for (uint8_t i = 0; i < UART1rxIndex; i++ )
// {
// RS485_Buf_Arr[i] = demoRingBuffer[i];
// }
// BMQ_Location_Num = (RS485_Buf_Arr[4] << 16) + (RS485_Buf_Arr[3] << 8) + (RS485_Buf_Arr[2]);
BMQ_Location_Num = (demoRingBuffer[4] << 16) + (demoRingBuffer[3] << 8) + (demoRingBuffer[2]);
UART2_Buf_Arr[0] = (BMQ_Location_Num / 100000) + '0';
UART2_Buf_Arr[1] = (BMQ_Location_Num % 100000 / 10000) + '0';
UART2_Buf_Arr[2] = (BMQ_Location_Num % 10000 / 1000) + '0';
UART2_Buf_Arr[3] = (BMQ_Location_Num % 1000 / 100) + '0';
UART2_Buf_Arr[4] = (BMQ_Location_Num % 100 / 10) + '0';
UART2_Buf_Arr[5] = (BMQ_Location_Num % 10) + '0';
BMQ_Circle_Num = (RS485_Buf_Arr[7] << 8) + (RS485_Buf_Arr[6]);
UART2_Buf_Arr[6] = (BMQ_Circle_Num % 100000 / 10000) + '0';
UART2_Buf_Arr[7] = (BMQ_Circle_Num % 10000 / 1000) + '0';
UART2_Buf_Arr[8] = (BMQ_Circle_Num % 1000 / 100) + '0';
UART2_Buf_Arr[9] = (BMQ_Circle_Num % 100 / 10) + '0';
UART2_Buf_Arr[10] = (BMQ_Circle_Num % 10) + '0';
UART2_SendData_len = UART1rxIndex;
UART1rxIndex = 0;
}

/*************刷新电压数据******************/
void ADC16_Recieve_Data()
{
adc_GetValue = adc_ReturnValue();
UART2_Buf_Arr[6] = (adc_GetValue / 100000) + '0';
UART2_Buf_Arr[7] = (adc_GetValue % 100000 / 10000) + '0';
UART2_Buf_Arr[8] = (adc_GetValue % 10000 / 1000) + '0';
UART2_Buf_Arr[9] = (adc_GetValue % 1000 / 100) + '0';
UART2_Buf_Arr[10] = (adc_GetValue % 100 / 10) + '0';
UART2_Buf_Arr[11] = (adc_GetValue % 10) + '0';
}

+ 1
- 0
user/uart_Interrupt.h View File

@@ -15,6 +15,7 @@ void UART1_InterrputInit(); //UART0
void UART1_sendData(); //UART1发送1帧数据
void UART2_sendData(); //UART2发送数组
void RS485_Recieve_Data(); //RS485接收数据
void ADC16_Recieve_Data(); //转换发送的电压数值


#endif

Loading…
Cancel
Save