diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.elf b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.elf index 8d447c6a..aac88247 100644 Binary files a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.elf and b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.elf differ diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.map b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.map index 1794801f..1a0559c8 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.map +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.map @@ -1279,7 +1279,7 @@ Linker script and memory map 0x00000001 . = ASSERT (((__init_end__ >= __FLASH_segment_start__) && (__init_end__ <= __FLASH_segment_end__)), error: .init is too large to fit in FLASH memory segment) 0x000001f8 __text_load_start__ = ALIGN (__init_end__, 0x4) -.text 0x000001f8 0x55e4 +.text 0x000001f8 0x55f4 0x000001f8 __text_start__ = . *(.text .text.* .glue_7t .glue_7 .gnu.linkonce.t.* .gcc_except_table .ARM.extab* .gnu.linkonce.armextab.*) .glue_7 0x00000000 0x0 linker stubs @@ -1462,320 +1462,320 @@ Linker script and memory map 0x00001d4c 0x28 THUMB Debug/../../obj/hooks.o 0x00001d4c FileFirmwareUpdateStartedHook .text.FileFirmwareUpdateCompletedHook - 0x00001d74 0x30 THUMB Debug/../../obj/hooks.o + 0x00001d74 0x40 THUMB Debug/../../obj/hooks.o 0x00001d74 FileFirmwareUpdateCompletedHook .text.FileFirmwareUpdateErrorHook - 0x00001da4 0x14 THUMB Debug/../../obj/hooks.o - 0x00001da4 FileFirmwareUpdateErrorHook + 0x00001db4 0x14 THUMB Debug/../../obj/hooks.o + 0x00001db4 FileFirmwareUpdateErrorHook .text.FileFirmwareUpdateLogHook - 0x00001db8 0x48 THUMB Debug/../../obj/hooks.o - 0x00001db8 FileFirmwareUpdateLogHook + 0x00001dc8 0x48 THUMB Debug/../../obj/hooks.o + 0x00001dc8 FileFirmwareUpdateLogHook .text.startup.main - 0x00001e00 0x2c THUMB Debug/../../obj/main.o - 0x00001e00 main + 0x00001e10 0x2c THUMB Debug/../../obj/main.o + 0x00001e10 main .text.UnusedISR - 0x00001e2c 0xc THUMB Debug/../../obj/vectors.o - 0x00001e2c UnusedISR + 0x00001e3c 0xc THUMB Debug/../../obj/vectors.o + 0x00001e3c UnusedISR .text.CpuStartUserProgram - 0x00001e38 0x30 THUMB Debug/../../obj/cpu.o - 0x00001e38 CpuStartUserProgram + 0x00001e48 0x30 THUMB Debug/../../obj/cpu.o + 0x00001e48 CpuStartUserProgram .text.CpuMemCopy - 0x00001e68 0x1e THUMB Debug/../../obj/cpu.o - 0x00001e68 CpuMemCopy - *fill* 0x00001e86 0x2 00 + 0x00001e78 0x1e THUMB Debug/../../obj/cpu.o + 0x00001e78 CpuMemCopy + *fill* 0x00001e96 0x2 00 .text.FlashGetSector - 0x00001e88 0x38 THUMB Debug/../../obj/flash.o + 0x00001e98 0x38 THUMB Debug/../../obj/flash.o .text.FlashWriteBlock - 0x00001ec0 0x4e THUMB Debug/../../obj/flash.o - *fill* 0x00001f0e 0x2 00 + 0x00001ed0 0x4e THUMB Debug/../../obj/flash.o + *fill* 0x00001f1e 0x2 00 .text.FlashSwitchBlock - 0x00001f10 0x4c THUMB Debug/../../obj/flash.o + 0x00001f20 0x4c THUMB Debug/../../obj/flash.o .text.FlashAddToBlock - 0x00001f5c 0x80 THUMB Debug/../../obj/flash.o + 0x00001f6c 0x80 THUMB Debug/../../obj/flash.o .text.FlashInit - 0x00001fdc 0x18 THUMB Debug/../../obj/flash.o - 0x00001fdc FlashInit + 0x00001fec 0x18 THUMB Debug/../../obj/flash.o + 0x00001fec FlashInit .text.FlashWrite - 0x00001ff4 0x48 THUMB Debug/../../obj/flash.o - 0x00001ff4 FlashWrite + 0x00002004 0x48 THUMB Debug/../../obj/flash.o + 0x00002004 FlashWrite .text.FlashErase - 0x0000203c 0xc0 THUMB Debug/../../obj/flash.o - 0x0000203c FlashErase + 0x0000204c 0xc0 THUMB Debug/../../obj/flash.o + 0x0000204c FlashErase .text.FlashWriteChecksum - 0x000020fc 0x40 THUMB Debug/../../obj/flash.o - 0x000020fc FlashWriteChecksum + 0x0000210c 0x40 THUMB Debug/../../obj/flash.o + 0x0000210c FlashWriteChecksum .text.FlashVerifyChecksum - 0x0000213c 0x48 THUMB Debug/../../obj/flash.o - 0x0000213c FlashVerifyChecksum + 0x0000214c 0x48 THUMB Debug/../../obj/flash.o + 0x0000214c FlashVerifyChecksum .text.FlashDone - 0x00002184 0x34 THUMB Debug/../../obj/flash.o - 0x00002184 FlashDone + 0x00002194 0x34 THUMB Debug/../../obj/flash.o + 0x00002194 FlashDone .text.FlashGetUserProgBaseAddress - 0x000021b8 0x6 THUMB Debug/../../obj/flash.o - 0x000021b8 FlashGetUserProgBaseAddress - .text.NvmInit 0x000021be 0x4 THUMB Debug/../../obj/nvm.o - 0x000021be NvmInit + 0x000021c8 0x6 THUMB Debug/../../obj/flash.o + 0x000021c8 FlashGetUserProgBaseAddress + .text.NvmInit 0x000021ce 0x4 THUMB Debug/../../obj/nvm.o + 0x000021ce NvmInit .text.NvmWrite - 0x000021c2 0x4 THUMB Debug/../../obj/nvm.o - 0x000021c2 NvmWrite + 0x000021d2 0x4 THUMB Debug/../../obj/nvm.o + 0x000021d2 NvmWrite .text.NvmErase - 0x000021c6 0x4 THUMB Debug/../../obj/nvm.o - 0x000021c6 NvmErase + 0x000021d6 0x4 THUMB Debug/../../obj/nvm.o + 0x000021d6 NvmErase .text.NvmVerifyChecksum - 0x000021ca 0x4 THUMB Debug/../../obj/nvm.o - 0x000021ca NvmVerifyChecksum + 0x000021da 0x4 THUMB Debug/../../obj/nvm.o + 0x000021da NvmVerifyChecksum .text.NvmGetUserProgBaseAddress - 0x000021ce 0x4 THUMB Debug/../../obj/nvm.o - 0x000021ce NvmGetUserProgBaseAddress - .text.NvmDone 0x000021d2 0x12 THUMB Debug/../../obj/nvm.o - 0x000021d2 NvmDone + 0x000021de 0x4 THUMB Debug/../../obj/nvm.o + 0x000021de NvmGetUserProgBaseAddress + .text.NvmDone 0x000021e2 0x12 THUMB Debug/../../obj/nvm.o + 0x000021e2 NvmDone .text.TimerInit - 0x000021e4 0x20 THUMB Debug/../../obj/timer.o - 0x000021e4 TimerInit + 0x000021f4 0x20 THUMB Debug/../../obj/timer.o + 0x000021f4 TimerInit .text.TimerReset - 0x00002204 0xc THUMB Debug/../../obj/timer.o - 0x00002204 TimerReset + 0x00002214 0xc THUMB Debug/../../obj/timer.o + 0x00002214 TimerReset .text.TimerUpdate - 0x00002210 0x1c THUMB Debug/../../obj/timer.o - 0x00002210 TimerUpdate + 0x00002220 0x1c THUMB Debug/../../obj/timer.o + 0x00002220 TimerUpdate .text.TimerGet - 0x0000222c 0x10 THUMB Debug/../../obj/timer.o - 0x0000222c TimerGet + 0x0000223c 0x10 THUMB Debug/../../obj/timer.o + 0x0000223c TimerGet .text.UartInit - 0x0000223c 0x28 THUMB Debug/../../obj/uart.o - 0x0000223c UartInit + 0x0000224c 0x28 THUMB Debug/../../obj/uart.o + 0x0000224c UartInit .text.UartTransmitPacket - 0x00002264 0x6c THUMB Debug/../../obj/uart.o - 0x00002264 UartTransmitPacket + 0x00002274 0x6c THUMB Debug/../../obj/uart.o + 0x00002274 UartTransmitPacket .text.UartReceivePacket - 0x000022d0 0x90 THUMB Debug/../../obj/uart.o - 0x000022d0 UartReceivePacket + 0x000022e0 0x90 THUMB Debug/../../obj/uart.o + 0x000022e0 UartReceivePacket .text.AssertFailure - 0x00002360 0x18 THUMB Debug/../../obj/assert.o - 0x00002360 AssertFailure + 0x00002370 0x18 THUMB Debug/../../obj/assert.o + 0x00002370 AssertFailure .text.BackDoorCheck - 0x00002378 0x48 THUMB Debug/../../obj/backdoor.o - 0x00002378 BackDoorCheck + 0x00002388 0x48 THUMB Debug/../../obj/backdoor.o + 0x00002388 BackDoorCheck .text.BackDoorInit - 0x000023c0 0x20 THUMB Debug/../../obj/backdoor.o - 0x000023c0 BackDoorInit + 0x000023d0 0x20 THUMB Debug/../../obj/backdoor.o + 0x000023d0 BackDoorInit .text.BootInit - 0x000023e0 0x1e THUMB Debug/../../obj/boot.o - 0x000023e0 BootInit + 0x000023f0 0x1e THUMB Debug/../../obj/boot.o + 0x000023f0 BootInit .text.BootTask - 0x000023fe 0x1a THUMB Debug/../../obj/boot.o - 0x000023fe BootTask - .text.ComInit 0x00002418 0x20 THUMB Debug/../../obj/com.o - 0x00002418 ComInit - .text.ComTask 0x00002438 0x3c THUMB Debug/../../obj/com.o - 0x00002438 ComTask - .text.ComFree 0x00002474 0x2 THUMB Debug/../../obj/com.o - 0x00002474 ComFree - *fill* 0x00002476 0x2 00 + 0x0000240e 0x1a THUMB Debug/../../obj/boot.o + 0x0000240e BootTask + .text.ComInit 0x00002428 0x20 THUMB Debug/../../obj/com.o + 0x00002428 ComInit + .text.ComTask 0x00002448 0x3c THUMB Debug/../../obj/com.o + 0x00002448 ComTask + .text.ComFree 0x00002484 0x2 THUMB Debug/../../obj/com.o + 0x00002484 ComFree + *fill* 0x00002486 0x2 00 .text.ComTransmitPacket - 0x00002478 0x30 THUMB Debug/../../obj/com.o - 0x00002478 ComTransmitPacket + 0x00002488 0x30 THUMB Debug/../../obj/com.o + 0x00002488 ComTransmitPacket .text.ComGetActiveInterfaceMaxRxLen - 0x000024a8 0x14 THUMB Debug/../../obj/com.o - 0x000024a8 ComGetActiveInterfaceMaxRxLen + 0x000024b8 0x14 THUMB Debug/../../obj/com.o + 0x000024b8 ComGetActiveInterfaceMaxRxLen .text.ComGetActiveInterfaceMaxTxLen - 0x000024bc 0x14 THUMB Debug/../../obj/com.o - 0x000024bc ComGetActiveInterfaceMaxTxLen + 0x000024cc 0x14 THUMB Debug/../../obj/com.o + 0x000024cc ComGetActiveInterfaceMaxTxLen .text.ComIsConnected - 0x000024d0 0x4 THUMB Debug/../../obj/com.o - 0x000024d0 ComIsConnected - .text.CopInit 0x000024d4 0x2 THUMB Debug/../../obj/cop.o - 0x000024d4 CopInit + 0x000024e0 0x4 THUMB Debug/../../obj/com.o + 0x000024e0 ComIsConnected + .text.CopInit 0x000024e4 0x2 THUMB Debug/../../obj/cop.o + 0x000024e4 CopInit .text.CopService - 0x000024d6 0x2 THUMB Debug/../../obj/cop.o - 0x000024d6 CopService + 0x000024e6 0x2 THUMB Debug/../../obj/cop.o + 0x000024e6 CopService .text.XcpSetCtoError - 0x000024d8 0x14 THUMB Debug/../../obj/xcp.o - .text.XcpInit 0x000024ec 0x1c THUMB Debug/../../obj/xcp.o - 0x000024ec XcpInit + 0x000024e8 0x14 THUMB Debug/../../obj/xcp.o + .text.XcpInit 0x000024fc 0x1c THUMB Debug/../../obj/xcp.o + 0x000024fc XcpInit .text.XcpIsConnected - 0x00002508 0x10 THUMB Debug/../../obj/xcp.o - 0x00002508 XcpIsConnected - .text.XcpPacketTransmitted 0x00002518 0x10 THUMB Debug/../../obj/xcp.o - 0x00002518 XcpPacketTransmitted + 0x00002518 XcpIsConnected + .text.XcpPacketTransmitted + 0x00002528 0x10 THUMB Debug/../../obj/xcp.o + 0x00002528 XcpPacketTransmitted .text.XcpPacketReceived - 0x00002528 0x21c THUMB Debug/../../obj/xcp.o - 0x00002528 XcpPacketReceived + 0x00002538 0x21c THUMB Debug/../../obj/xcp.o + 0x00002538 XcpPacketReceived .text.FileLibHexStringToByte - 0x00002744 0x42 THUMB Debug/../../obj/file.o - *fill* 0x00002786 0x2 00 + 0x00002754 0x42 THUMB Debug/../../obj/file.o + *fill* 0x00002796 0x2 00 .text.FileLibLongToIntString.constprop.0 - 0x00002788 0x38 THUMB Debug/../../obj/file.o + 0x00002798 0x38 THUMB Debug/../../obj/file.o .text.FileLibByteToHexString - 0x000027c0 0x3a THUMB Debug/../../obj/file.o - *fill* 0x000027fa 0x2 00 + 0x000027d0 0x3a THUMB Debug/../../obj/file.o + *fill* 0x0000280a 0x2 00 .text.FileInit - 0x000027fc 0x2c THUMB Debug/../../obj/file.o - 0x000027fc FileInit + 0x0000280c 0x2c THUMB Debug/../../obj/file.o + 0x0000280c FileInit .text.FileIsIdle - 0x00002828 0x14 THUMB Debug/../../obj/file.o - 0x00002828 FileIsIdle + 0x00002838 0x14 THUMB Debug/../../obj/file.o + 0x00002838 FileIsIdle .text.FileHandleFirmwareUpdateRequest - 0x0000283c 0x28 THUMB Debug/../../obj/file.o - 0x0000283c FileHandleFirmwareUpdateRequest + 0x0000284c 0x28 THUMB Debug/../../obj/file.o + 0x0000284c FileHandleFirmwareUpdateRequest .text.FileSrecGetLineType - 0x00002864 0x38 THUMB Debug/../../obj/file.o - 0x00002864 FileSrecGetLineType + 0x00002874 0x38 THUMB Debug/../../obj/file.o + 0x00002874 FileSrecGetLineType .text.FileSrecVerifyChecksum - 0x0000289c 0x3c THUMB Debug/../../obj/file.o - 0x0000289c FileSrecVerifyChecksum + 0x000028ac 0x3c THUMB Debug/../../obj/file.o + 0x000028ac FileSrecVerifyChecksum .text.FileSrecParseLine - 0x000028d8 0x138 THUMB Debug/../../obj/file.o - 0x000028d8 FileSrecParseLine + 0x000028e8 0x138 THUMB Debug/../../obj/file.o + 0x000028e8 FileSrecParseLine .text.FileTask - 0x00002a10 0x338 THUMB Debug/../../obj/file.o - 0x00002a10 FileTask - .text.mem_cpy 0x00002d48 0x12 THUMB Debug/../../obj/ff.o - .text.sum_sfn 0x00002d5a 0x1e THUMB Debug/../../obj/ff.o + 0x00002a20 0x338 THUMB Debug/../../obj/file.o + 0x00002a20 FileTask + .text.mem_cpy 0x00002d58 0x12 THUMB Debug/../../obj/ff.o + .text.sum_sfn 0x00002d6a 0x1e THUMB Debug/../../obj/ff.o .text.validate - 0x00002d78 0x2a THUMB Debug/../../obj/ff.o + 0x00002d88 0x2a THUMB Debug/../../obj/ff.o .text.get_fileinfo - 0x00002da2 0xee THUMB Debug/../../obj/ff.o + 0x00002db2 0xee THUMB Debug/../../obj/ff.o .text.ld_clust.isra.0 - 0x00002e90 0x1c THUMB Debug/../../obj/ff.o + 0x00002ea0 0x1c THUMB Debug/../../obj/ff.o .text.check_fs - 0x00002eac 0x88 THUMB Debug/../../obj/ff.o + 0x00002ebc 0x88 THUMB Debug/../../obj/ff.o .text.chk_mounted - 0x00002f34 0x314 THUMB Debug/../../obj/ff.o + 0x00002f44 0x314 THUMB Debug/../../obj/ff.o .text.sync_window - 0x00003248 0x4e THUMB Debug/../../obj/ff.o - .text.sync_fs 0x00003296 0xb2 THUMB Debug/../../obj/ff.o + 0x00003258 0x4e THUMB Debug/../../obj/ff.o + .text.sync_fs 0x000032a6 0xb2 THUMB Debug/../../obj/ff.o .text.move_window - 0x00003348 0x2e THUMB Debug/../../obj/ff.o + 0x00003358 0x2e THUMB Debug/../../obj/ff.o .text.clust2sect - 0x00003376 0x18 THUMB Debug/../../obj/ff.o - 0x00003376 clust2sect - .text.get_fat 0x0000338e 0xca THUMB Debug/../../obj/ff.o - 0x0000338e get_fat - .text.dir_sdi 0x00003458 0x84 THUMB Debug/../../obj/ff.o - .text.put_fat 0x000034dc 0xf6 THUMB Debug/../../obj/ff.o - 0x000034dc put_fat + 0x00003386 0x18 THUMB Debug/../../obj/ff.o + 0x00003386 clust2sect + .text.get_fat 0x0000339e 0xca THUMB Debug/../../obj/ff.o + 0x0000339e get_fat + .text.dir_sdi 0x00003468 0x84 THUMB Debug/../../obj/ff.o + .text.put_fat 0x000034ec 0xf6 THUMB Debug/../../obj/ff.o + 0x000034ec put_fat .text.create_chain - 0x000035d2 0x9a THUMB Debug/../../obj/ff.o + 0x000035e2 0x9a THUMB Debug/../../obj/ff.o .text.dir_next - 0x0000366c 0xf0 THUMB Debug/../../obj/ff.o + 0x0000367c 0xf0 THUMB Debug/../../obj/ff.o .text.dir_find.part.6 - 0x0000375c 0x12c THUMB Debug/../../obj/ff.o + 0x0000376c 0x12c THUMB Debug/../../obj/ff.o .text.follow_path - 0x00003888 0x280 THUMB Debug/../../obj/ff.o + 0x00003898 0x280 THUMB Debug/../../obj/ff.o .text.dir_remove - 0x00003b08 0x4e THUMB Debug/../../obj/ff.o - *fill* 0x00003b56 0x2 00 + 0x00003b18 0x4e THUMB Debug/../../obj/ff.o + *fill* 0x00003b66 0x2 00 .text.dir_read.constprop.8 - 0x00003b58 0x100 THUMB Debug/../../obj/ff.o + 0x00003b68 0x100 THUMB Debug/../../obj/ff.o .text.remove_chain - 0x00003c58 0x54 THUMB Debug/../../obj/ff.o + 0x00003c68 0x54 THUMB Debug/../../obj/ff.o .text.gen_numname - 0x00003cac 0x78 THUMB Debug/../../obj/ff.o - 0x00003cac gen_numname + 0x00003cbc 0x78 THUMB Debug/../../obj/ff.o + 0x00003cbc gen_numname .text.dir_register - 0x00003d24 0x1c8 THUMB Debug/../../obj/ff.o - .text.f_mount 0x00003eec 0x20 THUMB Debug/../../obj/ff.o - 0x00003eec f_mount - .text.f_open 0x00003f0c 0x160 THUMB Debug/../../obj/ff.o - 0x00003f0c f_open - .text.f_read 0x0000406c 0x164 THUMB Debug/../../obj/ff.o - 0x0000406c f_read - .text.f_write 0x000041d0 0x192 THUMB Debug/../../obj/ff.o - 0x000041d0 f_write - .text.f_sync 0x00004362 0xac THUMB Debug/../../obj/ff.o - 0x00004362 f_sync - .text.f_close 0x0000440e 0xe THUMB Debug/../../obj/ff.o - 0x0000440e f_close - .text.f_lseek 0x0000441c 0x13c THUMB Debug/../../obj/ff.o - 0x0000441c f_lseek - .text.f_stat 0x00004558 0x48 THUMB Debug/../../obj/ff.o - 0x00004558 f_stat + 0x00003d34 0x1c8 THUMB Debug/../../obj/ff.o + .text.f_mount 0x00003efc 0x20 THUMB Debug/../../obj/ff.o + 0x00003efc f_mount + .text.f_open 0x00003f1c 0x160 THUMB Debug/../../obj/ff.o + 0x00003f1c f_open + .text.f_read 0x0000407c 0x164 THUMB Debug/../../obj/ff.o + 0x0000407c f_read + .text.f_write 0x000041e0 0x192 THUMB Debug/../../obj/ff.o + 0x000041e0 f_write + .text.f_sync 0x00004372 0xac THUMB Debug/../../obj/ff.o + 0x00004372 f_sync + .text.f_close 0x0000441e 0xe THUMB Debug/../../obj/ff.o + 0x0000441e f_close + .text.f_lseek 0x0000442c 0x13c THUMB Debug/../../obj/ff.o + 0x0000442c f_lseek + .text.f_stat 0x00004568 0x48 THUMB Debug/../../obj/ff.o + 0x00004568 f_stat .text.f_unlink - 0x000045a0 0xc0 THUMB Debug/../../obj/ff.o - 0x000045a0 f_unlink - .text.f_gets 0x00004660 0x48 THUMB Debug/../../obj/ff.o - 0x00004660 f_gets - .text.f_putc 0x000046a8 0x30 THUMB Debug/../../obj/ff.o - 0x000046a8 f_putc - .text.f_puts 0x000046d8 0x20 THUMB Debug/../../obj/ff.o - 0x000046d8 f_puts + 0x000045b0 0xc0 THUMB Debug/../../obj/ff.o + 0x000045b0 f_unlink + .text.f_gets 0x00004670 0x48 THUMB Debug/../../obj/ff.o + 0x00004670 f_gets + .text.f_putc 0x000046b8 0x30 THUMB Debug/../../obj/ff.o + 0x000046b8 f_putc + .text.f_puts 0x000046e8 0x20 THUMB Debug/../../obj/ff.o + 0x000046e8 f_puts .text.ff_convert - 0x000046f8 0x38 THUMB Debug/../../obj/unicode.o - 0x000046f8 ff_convert + 0x00004708 0x38 THUMB Debug/../../obj/unicode.o + 0x00004708 ff_convert .text.ff_wtoupper - 0x00004730 0x24 THUMB Debug/../../obj/unicode.o - 0x00004730 ff_wtoupper - .text.chksum 0x00004754 0x38 THUMB Debug/../../obj/uip.o + 0x00004740 0x24 THUMB Debug/../../obj/unicode.o + 0x00004740 ff_wtoupper + .text.chksum 0x00004764 0x38 THUMB Debug/../../obj/uip.o .text.upper_layer_chksum - 0x0000478c 0x40 THUMB Debug/../../obj/uip.o + 0x0000479c 0x40 THUMB Debug/../../obj/uip.o .text.uip_add32 - 0x000047cc 0x54 THUMB Debug/../../obj/uip.o - 0x000047cc uip_add32 + 0x000047dc 0x54 THUMB Debug/../../obj/uip.o + 0x000047dc uip_add32 .text.unlikely.uip_add_rcv_nxt - 0x00004820 0x2c THUMB Debug/../../obj/uip.o + 0x00004830 0x2c THUMB Debug/../../obj/uip.o .text.uip_ipchksum - 0x0000484c 0x24 THUMB Debug/../../obj/uip.o - 0x0000484c uip_ipchksum + 0x0000485c 0x24 THUMB Debug/../../obj/uip.o + 0x0000485c uip_ipchksum .text.uip_tcpchksum - 0x00004870 0x6 THUMB Debug/../../obj/uip.o - 0x00004870 uip_tcpchksum - *fill* 0x00004876 0x2 00 + 0x00004880 0x6 THUMB Debug/../../obj/uip.o + 0x00004880 uip_tcpchksum + *fill* 0x00004886 0x2 00 .text.uip_init - 0x00004878 0x2c THUMB Debug/../../obj/uip.o - 0x00004878 uip_init + 0x00004888 0x2c THUMB Debug/../../obj/uip.o + 0x00004888 uip_init .text.uip_listen - 0x000048a4 0x1c THUMB Debug/../../obj/uip.o - 0x000048a4 uip_listen + 0x000048b4 0x1c THUMB Debug/../../obj/uip.o + 0x000048b4 uip_listen .text.uip_process - 0x000048c0 0x9b8 THUMB Debug/../../obj/uip.o - 0x000048c0 uip_process - .text.htons 0x00005278 0xa THUMB Debug/../../obj/uip.o - 0x00005278 htons - *fill* 0x00005282 0x2 00 + 0x000048d0 0x9b8 THUMB Debug/../../obj/uip.o + 0x000048d0 uip_process + .text.htons 0x00005288 0xa THUMB Debug/../../obj/uip.o + 0x00005288 htons + *fill* 0x00005292 0x2 00 .text.uip_send - 0x00005284 0x24 THUMB Debug/../../obj/uip.o - 0x00005284 uip_send + 0x00005294 0x24 THUMB Debug/../../obj/uip.o + 0x00005294 uip_send .text.uip_arp_update.constprop.0 - 0x000052a8 0xd4 THUMB Debug/../../obj/uip_arp.o + 0x000052b8 0xd4 THUMB Debug/../../obj/uip_arp.o .text.uip_arp_timer - 0x0000537c 0x58 THUMB Debug/../../obj/uip_arp.o - 0x0000537c uip_arp_timer + 0x0000538c 0x58 THUMB Debug/../../obj/uip_arp.o + 0x0000538c uip_arp_timer .text.uip_arp_arpin - 0x000053d4 0xbc THUMB Debug/../../obj/uip_arp.o - 0x000053d4 uip_arp_arpin + 0x000053e4 0xbc THUMB Debug/../../obj/uip_arp.o + 0x000053e4 uip_arp_arpin .text.uip_arp_out - 0x00005490 0x140 THUMB Debug/../../obj/uip_arp.o - 0x00005490 uip_arp_out - .text.NetInit 0x000055d0 0x6c THUMB Debug/../../obj/net.o - 0x000055d0 NetInit + 0x000054a0 0x140 THUMB Debug/../../obj/uip_arp.o + 0x000054a0 uip_arp_out + .text.NetInit 0x000055e0 0x6c THUMB Debug/../../obj/net.o + 0x000055e0 NetInit .text.NetTransmitPacket - 0x0000563c 0x38 THUMB Debug/../../obj/net.o - 0x0000563c NetTransmitPacket + 0x0000564c 0x38 THUMB Debug/../../obj/net.o + 0x0000564c NetTransmitPacket .text.NetReceivePacket - 0x00005674 0xb0 THUMB Debug/../../obj/net.o - 0x00005674 NetReceivePacket - .text.NetApp 0x00005724 0x6c THUMB Debug/../../obj/net.o - 0x00005724 NetApp + 0x00005684 0xb0 THUMB Debug/../../obj/net.o + 0x00005684 NetReceivePacket + .text.NetApp 0x00005734 0x6c THUMB Debug/../../obj/net.o + 0x00005734 NetApp .text.libc.isdigit - 0x00005790 0xc C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) - 0x00005790 isdigit + 0x000057a0 0xc C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) + 0x000057a0 isdigit .text.libc.toupper - 0x0000579c 0xe C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) - 0x0000579c toupper - *fill* 0x000057aa 0x2 00 + 0x000057ac 0xe C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) + 0x000057ac toupper + *fill* 0x000057ba 0x2 00 .text.libc.memcpy - 0x000057ac 0x1c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o) - 0x000057ac __aeabi_memcpy - 0x000057ac __aeabi_memcpy4 - 0x000057ac __aeabi_memcpy8 - 0x000057ac memcpy + 0x000057bc 0x1c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o) + 0x000057bc __aeabi_memcpy + 0x000057bc __aeabi_memcpy4 + 0x000057bc __aeabi_memcpy8 + 0x000057bc memcpy .text.libc.memset - 0x000057c8 0x14 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o) - 0x000057c8 memset - 0x000057dc __text_end__ = (__text_start__ + SIZEOF (.text)) - 0x000057dc __text_load_end__ = __text_end__ + 0x000057d8 0x14 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o) + 0x000057d8 memset + 0x000057ec __text_end__ = (__text_start__ + SIZEOF (.text)) + 0x000057ec __text_load_end__ = __text_end__ .vfp11_veneer 0x00000000 0x0 .vfp11_veneer 0x00000000 0x0 linker stubs @@ -1786,101 +1786,101 @@ Linker script and memory map .iplt 0x00000000 0x0 .iplt 0x00000000 0x0 THUMB Debug/../../obj/sysctl.o 0x00000001 . = ASSERT (((__text_end__ >= __FLASH_segment_start__) && (__text_end__ <= __FLASH_segment_end__)), error: .text is too large to fit in FLASH memory segment) - 0x000057dc __dtors_load_start__ = ALIGN (__text_end__, 0x4) + 0x000057ec __dtors_load_start__ = ALIGN (__text_end__, 0x4) -.dtors 0x000057dc 0x0 - 0x000057dc __dtors_start__ = . +.dtors 0x000057ec 0x0 + 0x000057ec __dtors_start__ = . *(SORT(.dtors.*)) *(.dtors) *(.fini_array .fini_array.*) - 0x000057dc __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors)) - 0x000057dc __dtors_load_end__ = __dtors_end__ + 0x000057ec __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors)) + 0x000057ec __dtors_load_end__ = __dtors_end__ 0x00000001 . = ASSERT (((__dtors_end__ >= __FLASH_segment_start__) && (__dtors_end__ <= __FLASH_segment_end__)), error: .dtors is too large to fit in FLASH memory segment) - 0x000057dc __ctors_load_start__ = ALIGN (__dtors_end__, 0x4) + 0x000057ec __ctors_load_start__ = ALIGN (__dtors_end__, 0x4) -.ctors 0x000057dc 0x0 - 0x000057dc __ctors_start__ = . +.ctors 0x000057ec 0x0 + 0x000057ec __ctors_start__ = . *(SORT(.ctors.*)) *(.ctors) *(.init_array .init_array.*) - 0x000057dc __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors)) - 0x000057dc __ctors_load_end__ = __ctors_end__ + 0x000057ec __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors)) + 0x000057ec __ctors_load_end__ = __ctors_end__ 0x00000001 . = ASSERT (((__ctors_end__ >= __FLASH_segment_start__) && (__ctors_end__ <= __FLASH_segment_end__)), error: .ctors is too large to fit in FLASH memory segment) - 0x000057dc __rodata_load_start__ = ALIGN (__ctors_end__, 0x4) + 0x000057ec __rodata_load_start__ = ALIGN (__ctors_end__, 0x4) -.rodata 0x000057dc 0xc46 - 0x000057dc __rodata_start__ = . +.rodata 0x000057ec 0xc46 + 0x000057ec __rodata_start__ = . *(.rodata .rodata.* .gnu.linkonce.r.*) .rodata.g_pulXtals - 0x000057dc 0x6c THUMB Debug/../../obj/sysctl.o + 0x000057ec 0x6c THUMB Debug/../../obj/sysctl.o .rodata.str1.1 - 0x00005848 0x6b THUMB Debug/../../obj/sysctl.o - *fill* 0x000058b3 0x1 00 + 0x00005858 0x6b THUMB Debug/../../obj/sysctl.o + *fill* 0x000058c3 0x1 00 .rodata.g_pulRCGCRegs - 0x000058b4 0xc THUMB Debug/../../obj/sysctl.o + 0x000058c4 0xc THUMB Debug/../../obj/sysctl.o .rodata.g_pulSRCRRegs - 0x000058c0 0xc THUMB Debug/../../obj/sysctl.o + 0x000058d0 0xc THUMB Debug/../../obj/sysctl.o .rodata.str1.1 - 0x000058cc 0x69 THUMB Debug/../../obj/gpio.o + 0x000058dc 0x69 THUMB Debug/../../obj/gpio.o .rodata.str1.1 - 0x00005935 0x6d THUMB Debug/../../obj/flashlib.o + 0x00005945 0x6d THUMB Debug/../../obj/flashlib.o .rodata.str1.1 - 0x000059a2 0x6c THUMB Debug/../../obj/uartlib.o + 0x000059b2 0x6c THUMB Debug/../../obj/uartlib.o .rodata.str1.1 - 0x00005a0e 0x68 THUMB Debug/../../obj/ssi.o + 0x00005a1e 0x68 THUMB Debug/../../obj/ssi.o .rodata.str1.1 - 0x00005a76 0x6d THUMB Debug/../../obj/ethernet.o + 0x00005a86 0x6d THUMB Debug/../../obj/ethernet.o .rodata.firmwareFilename - 0x00005ae3 0x1b THUMB Debug/../../obj/hooks.o + 0x00005af3 0x1b THUMB Debug/../../obj/hooks.o .rodata.str1.1 - 0x00005afe 0xd THUMB Debug/../../obj/hooks.o + 0x00005b0e 0xd THUMB Debug/../../obj/hooks.o .rodata.str1.1 - 0x00005b0b 0x85 THUMB Debug/../../obj/vectors.o + 0x00005b1b 0x85 THUMB Debug/../../obj/vectors.o .rodata.flashLayout - 0x00005b90 0xc0 THUMB Debug/../../obj/flash.o + 0x00005ba0 0xc0 THUMB Debug/../../obj/flash.o .rodata.str1.1 - 0x00005c50 0x77 THUMB Debug/../../obj/uart.o + 0x00005c60 0x77 THUMB Debug/../../obj/uart.o .rodata.xcpStationId - 0x00005cc7 0x8 THUMB Debug/../../obj/xcp.o + 0x00005cd7 0x8 THUMB Debug/../../obj/xcp.o .rodata.str1.1 - 0x00005ccf 0x1ef THUMB Debug/../../obj/file.o + 0x00005cdf 0x1ef THUMB Debug/../../obj/file.o 0x1fb (size before relaxing) .rodata.str1.1 - 0x00005ebe 0x10 THUMB Debug/../../obj/ff.o - .rodata.ExCvt 0x00005ece 0x80 THUMB Debug/../../obj/ff.o + 0x00005ece 0x10 THUMB Debug/../../obj/ff.o + .rodata.ExCvt 0x00005ede 0x80 THUMB Debug/../../obj/ff.o .rodata.LfnOfs - 0x00005f4e 0xd THUMB Debug/../../obj/ff.o - *fill* 0x00005f5b 0x1 00 + 0x00005f5e 0xd THUMB Debug/../../obj/ff.o + *fill* 0x00005f6b 0x1 00 .rodata.tbl_lower.3809 - 0x00005f5c 0x1e0 THUMB Debug/../../obj/unicode.o - .rodata.Tbl 0x0000613c 0x100 THUMB Debug/../../obj/unicode.o + 0x00005f6c 0x1e0 THUMB Debug/../../obj/unicode.o + .rodata.Tbl 0x0000614c 0x100 THUMB Debug/../../obj/unicode.o .rodata.tbl_upper.3810 - 0x0000623c 0x1e0 THUMB Debug/../../obj/unicode.o + 0x0000624c 0x1e0 THUMB Debug/../../obj/unicode.o .rodata.broadcast_ethaddr - 0x0000641c 0x6 THUMB Debug/../../obj/uip_arp.o - 0x00006422 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata)) - 0x00006422 __rodata_load_end__ = __rodata_end__ + 0x0000642c 0x6 THUMB Debug/../../obj/uip_arp.o + 0x00006432 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata)) + 0x00006432 __rodata_load_end__ = __rodata_end__ .rel.dyn 0x00000000 0x0 .rel.iplt 0x00000000 0x0 THUMB Debug/../../obj/sysctl.o 0x00000001 . = ASSERT (((__rodata_end__ >= __FLASH_segment_start__) && (__rodata_end__ <= __FLASH_segment_end__)), error: .rodata is too large to fit in FLASH memory segment) - 0x00006424 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4) + 0x00006434 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4) -.ARM.exidx 0x00006424 0x0 - 0x00006424 __ARM.exidx_start__ = . - 0x00006424 __exidx_start = __ARM.exidx_start__ +.ARM.exidx 0x00006434 0x0 + 0x00006434 __ARM.exidx_start__ = . + 0x00006434 __exidx_start = __ARM.exidx_start__ *(.ARM.exidx .ARM.exidx.*) - 0x00006424 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx)) - 0x00006424 __exidx_end = __ARM.exidx_end__ - 0x00006424 __ARM.exidx_load_end__ = __ARM.exidx_end__ + 0x00006434 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx)) + 0x00006434 __exidx_end = __ARM.exidx_end__ + 0x00006434 __ARM.exidx_load_end__ = __ARM.exidx_end__ 0x00000001 . = ASSERT (((__ARM.exidx_end__ >= __FLASH_segment_start__) && (__ARM.exidx_end__ <= __FLASH_segment_end__)), error: .ARM.exidx is too large to fit in FLASH memory segment) - 0x00006424 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4) + 0x00006434 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4) -.fast 0x20000000 0x0 load address 0x00006424 +.fast 0x20000000 0x0 load address 0x00006434 0x20000000 __fast_start__ = . *(.fast .fast.*) 0x20000000 __fast_end__ = (__fast_start__ + SIZEOF (.fast)) - 0x00006424 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast)) + 0x00006434 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast)) 0x00000001 . = ASSERT (((__fast_load_end__ >= __FLASH_segment_start__) && (__fast_load_end__ <= __FLASH_segment_end__)), error: .fast is too large to fit in FLASH memory segment) .fast_run 0x20000000 0x0 @@ -1889,22 +1889,22 @@ Linker script and memory map 0x20000000 __fast_run_end__ = (__fast_run_start__ + SIZEOF (.fast_run)) 0x20000000 __fast_run_load_end__ = __fast_run_end__ 0x00000001 . = ASSERT (((__fast_run_end__ >= __SRAM_segment_start__) && (__fast_run_end__ <= __SRAM_segment_end__)), error: .fast_run is too large to fit in SRAM memory segment) - 0x00006424 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4) + 0x00006434 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4) -.data 0x20000000 0x2 load address 0x00006424 +.data 0x20000000 0x2 load address 0x00006434 0x20000000 __data_start__ = . *(.data .data.* .gnu.linkonce.d.*) .data.Stat 0x20000000 0x1 THUMB Debug/../../obj/mmc.o .data.comActiveInterface 0x20000001 0x1 THUMB Debug/../../obj/com.o 0x20000002 __data_end__ = (__data_start__ + SIZEOF (.data)) - 0x00006426 __data_load_end__ = (__data_load_start__ + SIZEOF (.data)) + 0x00006436 __data_load_end__ = (__data_load_start__ + SIZEOF (.data)) .igot.plt 0x00000000 0x0 .igot.plt 0x00000000 0x0 THUMB Debug/../../obj/sysctl.o 0x00000001 . = ASSERT (((__data_load_end__ >= __FLASH_segment_start__) && (__data_load_end__ <= __FLASH_segment_end__)), error: .data is too large to fit in FLASH memory segment) -.data_run 0x20000000 0x2 load address 0x00006424 +.data_run 0x20000000 0x2 load address 0x00006434 0x20000000 __data_run_start__ = . 0x20000002 . = MAX ((__data_run_start__ + SIZEOF (.data)), .) *fill* 0x20000000 0x2 00 @@ -2068,14 +2068,14 @@ Linker script and memory map 0x20001924 __tbss_end__ = (__tbss_start__ + SIZEOF (.tbss)) 0x20001924 __tbss_load_end__ = __tbss_end__ 0x00000001 . = ASSERT (((__tbss_end__ >= __SRAM_segment_start__) && (__tbss_end__ <= __SRAM_segment_end__)), error: .tbss is too large to fit in SRAM memory segment) - 0x00006428 __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + 0x00006438 __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) -.tdata 0x20001924 0x0 load address 0x00006428 +.tdata 0x20001924 0x0 load address 0x00006438 0x20001924 __tdata_start__ = . *(.tdata .tdata.*) 0x20001924 __tdata_end__ = (__tdata_start__ + SIZEOF (.tdata)) - 0x00006428 __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata)) - 0x00006428 __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata)) + 0x00006438 __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata)) + 0x00006438 __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata)) 0x00000001 . = ASSERT (((__tdata_load_end__ >= __FLASH_segment_start__) && (__tdata_load_end__ <= __FLASH_segment_end__)), error: .tdata is too large to fit in FLASH memory segment) .tdata_run 0x20001924 0x0 @@ -2162,7 +2162,7 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B .debug_frame 0x0000291c 0x11e4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) .debug_frame 0x00003b00 0x120 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o) -.debug_info 0x00000000 0x113c1 +.debug_info 0x00000000 0x113f8 .debug_info 0x00000000 0xef6 THUMB Debug/../../obj/sysctl.o .debug_info 0x00000ef6 0x1b47 THUMB Debug/../../obj/gpio.o .debug_info 0x00002a3d 0x5ed THUMB Debug/../../obj/flashlib.o @@ -2171,30 +2171,30 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B .debug_info 0x00005232 0xde2 THUMB Debug/../../obj/ethernet.o .debug_info 0x00006014 0x10f2 THUMB Debug/../../obj/mmc.o .debug_info 0x00007106 0x537 THUMB Debug/../../obj/netdev.o - .debug_info 0x0000763d 0x73c THUMB Debug/../../obj/hooks.o - .debug_info 0x00007d79 0x157 THUMB Debug/../../obj/main.o - .debug_info 0x00007ed0 0xfd THUMB Debug/../../obj/cstart.o - .debug_info 0x00007fcd 0x13b THUMB Debug/../../obj/vectors.o - .debug_info 0x00008108 0x1de THUMB Debug/../../obj/cpu.o - .debug_info 0x000082e6 0x89d THUMB Debug/../../obj/flash.o - .debug_info 0x00008b83 0x285 THUMB Debug/../../obj/nvm.o - .debug_info 0x00008e08 0x14c THUMB Debug/../../obj/timer.o - .debug_info 0x00008f54 0x51a THUMB Debug/../../obj/uart.o - .debug_info 0x0000946e 0x106 THUMB Debug/../../obj/assert.o - .debug_info 0x00009574 0x15d THUMB Debug/../../obj/backdoor.o - .debug_info 0x000096d1 0x175 THUMB Debug/../../obj/boot.o - .debug_info 0x00009846 0x381 THUMB Debug/../../obj/com.o - .debug_info 0x00009bc7 0x96 THUMB Debug/../../obj/cop.o - .debug_info 0x00009c5d 0x81d THUMB Debug/../../obj/xcp.o - .debug_info 0x0000a47a 0x118c THUMB Debug/../../obj/file.o - .debug_info 0x0000b606 0x3525 THUMB Debug/../../obj/ff.o - .debug_info 0x0000eb2b 0x169 THUMB Debug/../../obj/unicode.o - .debug_info 0x0000ec94 0xd71 THUMB Debug/../../obj/uip.o - .debug_info 0x0000fa05 0x65f THUMB Debug/../../obj/uip_arp.o - .debug_info 0x00010064 0x677 THUMB Debug/../../obj/net.o - .debug_info 0x000106db 0xce6 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) + .debug_info 0x0000763d 0x775 THUMB Debug/../../obj/hooks.o + .debug_info 0x00007db2 0x157 THUMB Debug/../../obj/main.o + .debug_info 0x00007f09 0xfd THUMB Debug/../../obj/cstart.o + .debug_info 0x00008006 0x13b THUMB Debug/../../obj/vectors.o + .debug_info 0x00008141 0x1de THUMB Debug/../../obj/cpu.o + .debug_info 0x0000831f 0x89d THUMB Debug/../../obj/flash.o + .debug_info 0x00008bbc 0x285 THUMB Debug/../../obj/nvm.o + .debug_info 0x00008e41 0x14c THUMB Debug/../../obj/timer.o + .debug_info 0x00008f8d 0x51a THUMB Debug/../../obj/uart.o + .debug_info 0x000094a7 0x106 THUMB Debug/../../obj/assert.o + .debug_info 0x000095ad 0x15d THUMB Debug/../../obj/backdoor.o + .debug_info 0x0000970a 0x175 THUMB Debug/../../obj/boot.o + .debug_info 0x0000987f 0x381 THUMB Debug/../../obj/com.o + .debug_info 0x00009c00 0x96 THUMB Debug/../../obj/cop.o + .debug_info 0x00009c96 0x81d THUMB Debug/../../obj/xcp.o + .debug_info 0x0000a4b3 0x118c THUMB Debug/../../obj/file.o + .debug_info 0x0000b63f 0x3526 THUMB Debug/../../obj/ff.o + .debug_info 0x0000eb65 0x169 THUMB Debug/../../obj/unicode.o + .debug_info 0x0000ecce 0xd71 THUMB Debug/../../obj/uip.o + .debug_info 0x0000fa3f 0x65f THUMB Debug/../../obj/uip_arp.o + .debug_info 0x0001009e 0x674 THUMB Debug/../../obj/net.o + .debug_info 0x00010712 0xce6 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) -.debug_abbrev 0x00000000 0x327c +.debug_abbrev 0x00000000 0x329a .debug_abbrev 0x00000000 0x227 THUMB Debug/../../obj/sysctl.o .debug_abbrev 0x00000227 0x182 THUMB Debug/../../obj/gpio.o .debug_abbrev 0x000003a9 0x203 THUMB Debug/../../obj/flashlib.o @@ -2203,28 +2203,28 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B .debug_abbrev 0x0000096d 0x224 THUMB Debug/../../obj/ethernet.o .debug_abbrev 0x00000b91 0x348 THUMB Debug/../../obj/mmc.o .debug_abbrev 0x00000ed9 0x1c1 THUMB Debug/../../obj/netdev.o - .debug_abbrev 0x0000109a 0x1dc THUMB Debug/../../obj/hooks.o - .debug_abbrev 0x00001276 0xd3 THUMB Debug/../../obj/main.o - .debug_abbrev 0x00001349 0x14 THUMB Debug/../../obj/cstart.o - .debug_abbrev 0x0000135d 0xf7 THUMB Debug/../../obj/vectors.o - .debug_abbrev 0x00001454 0x10e THUMB Debug/../../obj/cpu.o - .debug_abbrev 0x00001562 0x2df THUMB Debug/../../obj/flash.o - .debug_abbrev 0x00001841 0x123 THUMB Debug/../../obj/nvm.o - .debug_abbrev 0x00001964 0x101 THUMB Debug/../../obj/timer.o - .debug_abbrev 0x00001a65 0x1fd THUMB Debug/../../obj/uart.o - .debug_abbrev 0x00001c62 0x9b THUMB Debug/../../obj/assert.o - .debug_abbrev 0x00001cfd 0x9d THUMB Debug/../../obj/backdoor.o - .debug_abbrev 0x00001d9a 0x6e THUMB Debug/../../obj/boot.o - .debug_abbrev 0x00001e08 0x192 THUMB Debug/../../obj/com.o - .debug_abbrev 0x00001f9a 0x42 THUMB Debug/../../obj/cop.o - .debug_abbrev 0x00001fdc 0x291 THUMB Debug/../../obj/xcp.o - .debug_abbrev 0x0000226d 0x2cc THUMB Debug/../../obj/file.o - .debug_abbrev 0x00002539 0x3a5 THUMB Debug/../../obj/ff.o - .debug_abbrev 0x000028de 0xa8 THUMB Debug/../../obj/unicode.o - .debug_abbrev 0x00002986 0x34b THUMB Debug/../../obj/uip.o - .debug_abbrev 0x00002cd1 0x208 THUMB Debug/../../obj/uip_arp.o - .debug_abbrev 0x00002ed9 0x240 THUMB Debug/../../obj/net.o - .debug_abbrev 0x00003119 0x163 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) + .debug_abbrev 0x0000109a 0x1fa THUMB Debug/../../obj/hooks.o + .debug_abbrev 0x00001294 0xd3 THUMB Debug/../../obj/main.o + .debug_abbrev 0x00001367 0x14 THUMB Debug/../../obj/cstart.o + .debug_abbrev 0x0000137b 0xf7 THUMB Debug/../../obj/vectors.o + .debug_abbrev 0x00001472 0x10e THUMB Debug/../../obj/cpu.o + .debug_abbrev 0x00001580 0x2df THUMB Debug/../../obj/flash.o + .debug_abbrev 0x0000185f 0x123 THUMB Debug/../../obj/nvm.o + .debug_abbrev 0x00001982 0x101 THUMB Debug/../../obj/timer.o + .debug_abbrev 0x00001a83 0x1fd THUMB Debug/../../obj/uart.o + .debug_abbrev 0x00001c80 0x9b THUMB Debug/../../obj/assert.o + .debug_abbrev 0x00001d1b 0x9d THUMB Debug/../../obj/backdoor.o + .debug_abbrev 0x00001db8 0x6e THUMB Debug/../../obj/boot.o + .debug_abbrev 0x00001e26 0x192 THUMB Debug/../../obj/com.o + .debug_abbrev 0x00001fb8 0x42 THUMB Debug/../../obj/cop.o + .debug_abbrev 0x00001ffa 0x291 THUMB Debug/../../obj/xcp.o + .debug_abbrev 0x0000228b 0x2cc THUMB Debug/../../obj/file.o + .debug_abbrev 0x00002557 0x3a5 THUMB Debug/../../obj/ff.o + .debug_abbrev 0x000028fc 0xa8 THUMB Debug/../../obj/unicode.o + .debug_abbrev 0x000029a4 0x34b THUMB Debug/../../obj/uip.o + .debug_abbrev 0x00002cef 0x208 THUMB Debug/../../obj/uip_arp.o + .debug_abbrev 0x00002ef7 0x240 THUMB Debug/../../obj/net.o + .debug_abbrev 0x00003137 0x163 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) .debug_loc 0x00000000 0xc9c1 .debug_loc 0x00000000 0xcc5 THUMB Debug/../../obj/sysctl.o @@ -2348,7 +2348,7 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B .debug_ranges 0x00000f48 0x28 THUMB Debug/../../obj/net.o .debug_ranges 0x00000f70 0x4d8 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) -.debug_line 0x00000000 0x7063 +.debug_line 0x00000000 0x7132 .debug_line 0x00000000 0x955 THUMB Debug/../../obj/sysctl.o .debug_line 0x00000955 0x7dc THUMB Debug/../../obj/gpio.o .debug_line 0x00001131 0x455 THUMB Debug/../../obj/flashlib.o @@ -2357,30 +2357,30 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B .debug_line 0x00002269 0x5c9 THUMB Debug/../../obj/ethernet.o .debug_line 0x00002832 0x50f THUMB Debug/../../obj/mmc.o .debug_line 0x00002d41 0x395 THUMB Debug/../../obj/netdev.o - .debug_line 0x000030d6 0x300 THUMB Debug/../../obj/hooks.o - .debug_line 0x000033d6 0x17d THUMB Debug/../../obj/main.o - .debug_line 0x00003553 0x12d THUMB Debug/../../obj/cstart.o - .debug_line 0x00003680 0x1a2 THUMB Debug/../../obj/vectors.o - .debug_line 0x00003822 0x171 THUMB Debug/../../obj/cpu.o - .debug_line 0x00003993 0x363 THUMB Debug/../../obj/flash.o - .debug_line 0x00003cf6 0x121 THUMB Debug/../../obj/nvm.o - .debug_line 0x00003e17 0xf8 THUMB Debug/../../obj/timer.o - .debug_line 0x00003f0f 0x2aa THUMB Debug/../../obj/uart.o - .debug_line 0x000041b9 0x127 THUMB Debug/../../obj/assert.o - .debug_line 0x000042e0 0x163 THUMB Debug/../../obj/backdoor.o - .debug_line 0x00004443 0xf5 THUMB Debug/../../obj/boot.o - .debug_line 0x00004538 0x1d4 THUMB Debug/../../obj/com.o - .debug_line 0x0000470c 0xa9 THUMB Debug/../../obj/cop.o - .debug_line 0x000047b5 0x263 THUMB Debug/../../obj/xcp.o - .debug_line 0x00004a18 0x472 THUMB Debug/../../obj/file.o - .debug_line 0x00004e8a 0xe05 THUMB Debug/../../obj/ff.o - .debug_line 0x00005c8f 0x182 THUMB Debug/../../obj/unicode.o - .debug_line 0x00005e11 0x73f THUMB Debug/../../obj/uip.o - .debug_line 0x00006550 0x28f THUMB Debug/../../obj/uip_arp.o - .debug_line 0x000067df 0x2d1 THUMB Debug/../../obj/net.o - .debug_line 0x00006ab0 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) + .debug_line 0x000030d6 0x371 THUMB Debug/../../obj/hooks.o + .debug_line 0x00003447 0x17d THUMB Debug/../../obj/main.o + .debug_line 0x000035c4 0x12d THUMB Debug/../../obj/cstart.o + .debug_line 0x000036f1 0x1a2 THUMB Debug/../../obj/vectors.o + .debug_line 0x00003893 0x171 THUMB Debug/../../obj/cpu.o + .debug_line 0x00003a04 0x363 THUMB Debug/../../obj/flash.o + .debug_line 0x00003d67 0x121 THUMB Debug/../../obj/nvm.o + .debug_line 0x00003e88 0xf8 THUMB Debug/../../obj/timer.o + .debug_line 0x00003f80 0x2a9 THUMB Debug/../../obj/uart.o + .debug_line 0x00004229 0x127 THUMB Debug/../../obj/assert.o + .debug_line 0x00004350 0x163 THUMB Debug/../../obj/backdoor.o + .debug_line 0x000044b3 0xf5 THUMB Debug/../../obj/boot.o + .debug_line 0x000045a8 0x1d3 THUMB Debug/../../obj/com.o + .debug_line 0x0000477b 0xa8 THUMB Debug/../../obj/cop.o + .debug_line 0x00004823 0x263 THUMB Debug/../../obj/xcp.o + .debug_line 0x00004a86 0x472 THUMB Debug/../../obj/file.o + .debug_line 0x00004ef8 0xe57 THUMB Debug/../../obj/ff.o + .debug_line 0x00005d4f 0x182 THUMB Debug/../../obj/unicode.o + .debug_line 0x00005ed1 0x748 THUMB Debug/../../obj/uip.o + .debug_line 0x00006619 0x295 THUMB Debug/../../obj/uip_arp.o + .debug_line 0x000068ae 0x2d1 THUMB Debug/../../obj/net.o + .debug_line 0x00006b7f 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) -.debug_str 0x00000000 0x3c03 +.debug_str 0x00000000 0x3c0f .debug_str 0x00000000 0x693 THUMB Debug/../../obj/sysctl.o 0x6e9 (size before relaxing) .debug_str 0x00000693 0x411 THUMB Debug/../../obj/gpio.o @@ -2397,47 +2397,47 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B 0x34c (size before relaxing) .debug_str 0x00001798 0xe6 THUMB Debug/../../obj/netdev.o 0x2f1 (size before relaxing) - .debug_str 0x0000187e 0x38d THUMB Debug/../../obj/hooks.o - 0x4c2 (size before relaxing) - .debug_str 0x00001c0b 0x6d THUMB Debug/../../obj/main.o + .debug_str 0x0000187e 0x399 THUMB Debug/../../obj/hooks.o + 0x4e2 (size before relaxing) + .debug_str 0x00001c17 0x6d THUMB Debug/../../obj/main.o 0x163 (size before relaxing) - .debug_str 0x00001c78 0xb4 THUMB Debug/../../obj/vectors.o + .debug_str 0x00001c84 0xb4 THUMB Debug/../../obj/vectors.o 0x18c (size before relaxing) - .debug_str 0x00001d2c 0x126 THUMB Debug/../../obj/cpu.o + .debug_str 0x00001d38 0x126 THUMB Debug/../../obj/cpu.o 0x1fa (size before relaxing) - .debug_str 0x00001e52 0x265 THUMB Debug/../../obj/flash.o + .debug_str 0x00001e5e 0x265 THUMB Debug/../../obj/flash.o 0x3ab (size before relaxing) - .debug_str 0x000020b7 0x98 THUMB Debug/../../obj/nvm.o + .debug_str 0x000020c3 0x98 THUMB Debug/../../obj/nvm.o 0x218 (size before relaxing) - .debug_str 0x0000214f 0xb9 THUMB Debug/../../obj/timer.o + .debug_str 0x0000215b 0xb9 THUMB Debug/../../obj/timer.o 0x18e (size before relaxing) - .debug_str 0x00002208 0x120 THUMB Debug/../../obj/uart.o + .debug_str 0x00002214 0x120 THUMB Debug/../../obj/uart.o 0x2ca (size before relaxing) - .debug_str 0x00002328 0x95 THUMB Debug/../../obj/assert.o + .debug_str 0x00002334 0x95 THUMB Debug/../../obj/assert.o 0x182 (size before relaxing) - .debug_str 0x000023bd 0xe2 THUMB Debug/../../obj/backdoor.o + .debug_str 0x000023c9 0xe2 THUMB Debug/../../obj/backdoor.o 0x1c9 (size before relaxing) - .debug_str 0x0000249f 0x95 THUMB Debug/../../obj/boot.o + .debug_str 0x000024ab 0x95 THUMB Debug/../../obj/boot.o 0x1a1 (size before relaxing) - .debug_str 0x00002534 0x17e THUMB Debug/../../obj/com.o + .debug_str 0x00002540 0x17e THUMB Debug/../../obj/com.o 0x2c3 (size before relaxing) - .debug_str 0x000026b2 0x6a THUMB Debug/../../obj/cop.o + .debug_str 0x000026be 0x6a THUMB Debug/../../obj/cop.o 0x133 (size before relaxing) - .debug_str 0x0000271c 0x224 THUMB Debug/../../obj/xcp.o + .debug_str 0x00002728 0x224 THUMB Debug/../../obj/xcp.o 0x3f2 (size before relaxing) - .debug_str 0x00002940 0x366 THUMB Debug/../../obj/file.o + .debug_str 0x0000294c 0x366 THUMB Debug/../../obj/file.o 0x7dd (size before relaxing) - .debug_str 0x00002ca6 0x30e THUMB Debug/../../obj/ff.o + .debug_str 0x00002cb2 0x30e THUMB Debug/../../obj/ff.o 0x74c (size before relaxing) - .debug_str 0x00002fb4 0x9f THUMB Debug/../../obj/unicode.o + .debug_str 0x00002fc0 0x9f THUMB Debug/../../obj/unicode.o 0x16b (size before relaxing) - .debug_str 0x00003053 0x406 THUMB Debug/../../obj/uip.o + .debug_str 0x0000305f 0x406 THUMB Debug/../../obj/uip.o 0x5be (size before relaxing) - .debug_str 0x00003459 0x17e THUMB Debug/../../obj/uip_arp.o + .debug_str 0x00003465 0x17e THUMB Debug/../../obj/uip_arp.o 0x36e (size before relaxing) - .debug_str 0x000035d7 0xbd THUMB Debug/../../obj/net.o + .debug_str 0x000035e3 0xbd THUMB Debug/../../obj/net.o 0x3b6 (size before relaxing) - .debug_str 0x00003694 0x56f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) + .debug_str 0x000036a0 0x56f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o) 0x655 (size before relaxing) .comment 0x00000000 0x4e diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.srec b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.srec index d75a4fc4..52fd1285 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.srec +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/bin/openbtl_ek_lm3s6965.srec @@ -1,19 +1,19 @@ S02B0000433A2F576F726B2F736F6674776172652F4F70656E424C542F5461726765742F44656D6F2F41524DEF -S113000024190020F10000002D1E00002D1E000008 -S11300102D1E00002D1E00002D1E00002D1E0000B0 -S11300202D1E00002D1E00002D1E00002D1E0000A0 -S11300302D1E00002D1E00002D1E00002D1E000090 -S11300402D1E00002D1E00002D1E00002D1E000080 -S11300502D1E00002D1E00002D1E00002D1E000070 -S11300602D1E00002D1E00002D1E00002D1E000060 -S11300702D1E00002D1E00002D1E00002D1E000050 -S11300802D1E00002D1E00002D1E00002D1E000040 -S11300902D1E00002D1E00002D1E00002D1E000030 -S11300A02D1E00002D1E00002D1E00002D1E000020 -S11300B02D1E00002D1E00002D1E00002D1E000010 -S11300C02D1E00002D1E00002D1E00002D1E000000 -S11300D02D1E00002D1E00002D1E00002D1E0000F0 -S11300E02D1E00002D1E00002D1E00002D1E0000E0 +S113000024190020F10000003D1E00003D1E0000E8 +S11300103D1E00003D1E00003D1E00003D1E000070 +S11300203D1E00003D1E00003D1E00003D1E000060 +S11300303D1E00003D1E00003D1E00003D1E000050 +S11300403D1E00003D1E00003D1E00003D1E000040 +S11300503D1E00003D1E00003D1E00003D1E000030 +S11300603D1E00003D1E00003D1E00003D1E000020 +S11300703D1E00003D1E00003D1E00003D1E000010 +S11300803D1E00003D1E00003D1E00003D1E000000 +S11300903D1E00003D1E00003D1E00003D1E0000F0 +S11300A03D1E00003D1E00003D1E00003D1E0000E0 +S11300B03D1E00003D1E00003D1E00003D1E0000D0 +S11300C03D1E00003D1E00003D1E00003D1E0000C0 +S11300D03D1E00003D1E00003D1E00003D1E0000B0 +S11300E03D1E00003D1E00003D1E00003D1E0000A0 S11300F072B62949072291438D4628482849294A3E S113010000F039F828482949294A00F034F82948E8 S113011029492A4A00F02FF829482A492A4A00F096 @@ -24,13 +24,13 @@ S113015001601C481C49884205D00268043003B47D S1130160904703BCF7E700208646EC4600200021B8 S1130170204A9047FEE7884207D0521A05D00378F8 S113018001300B700131013AF9D17047884202D035 -S113019002700130FAE7704724190020246400003B +S113019002700130FAE7704724190020346400002B S11301A00000002002000020F8010000F801000017 -S11301B0DC57000024640000000000200000002040 -S11301C0DC570000DC570000DC570000DC5700005F -S11301D0DC570000DC570000DC570000DC5700004F -S11301E02264000004000020A4160020A4160020AD -S10B01F024170020011E000089 +S11301B0EC57000034640000000000200000002020 +S11301C0EC570000EC570000EC570000EC5700001F +S11301D0EC570000EC570000EC570000EC5700000F +S11301E03264000004000020A4160020A41600209D +S10B01F024170020111E000079 S11301F8A0F58013591E012940F20181814A9042D9 S113020800F0FD8002F58073984200F0F88003F551 S11302180071884200F0F3807B4A904200F0EF803E @@ -71,7 +71,7 @@ S1130438004800F080000030005000F01000003048 S1130448014000F000010010021C00F02000003000 S113045801001010040400F001000010031800F05B S11304680100102000101000005C00F013B50446D1 -S1130478FFF7BEFE20B91F4840F2313101F06CFF8E +S1130478FFF7BEFE20B91F4840F2313101F074FF86 S113048804F07043B3F1704F1AD1E1B2C4F30724F6 S113049804F57E228B0002F5A06143F0844021F428 S11304A8700340EA43140120206000200190019A5F @@ -79,13 +79,13 @@ S11304B80F2A02D8019B581CF8E70021216018E094 S11304C8220FA1B2C4F3044401FA04F40A4850F810 S11304D822301A6844EA0200186000220192019A44 S11304E80F2A02D80198421CF8E7196821EA040483 -S11304F81C601CBD48580000C058000010B50446D4 -S1130508FFF776FE20B9144840F2963101F024FF33 +S11304F81C601CBD58580000D058000010B50446B4 +S1130508FFF776FE20B9144840F2963101F02CFF2B S113051804F07043B3F1704F10D1C4F30721E0B273 S113052801F57E24830004F5C06043F0844220F47E S1130538700342EA43140122226010BD220FA1B2C3 S1130548C4F3044401FA04F4044850F822301A6845 -S113055814431C6010BD00BF48580000B458000084 +S113055814431C6010BD00BF58580000C458000064 S113056801387FF4FDAF70474E4B2DE9F0411A680E S1130578044612F0E04F05D018684B490140B1F128 S1130588805F02D1002CC0F28A80484F48483B68FB @@ -132,7 +132,7 @@ S113080811F4804F18BF4008090448BF800842F417 S11308188002510216D5002B0DDA590005D51A05A8 S113082803D44000C3F3865201E0C3F3C552531CFA S1130838B0FBF3F070BDC2F3C353591CB0FBF1F025 -S113084870BD002070BD00BF60E00F40DC570000A1 +S113084870BD002070BD00BF60E00F40EC57000091 S113085800E00F400000FF700000011000000310CA S11308680024F40000093D00C0E1E400001BB700C7 S113087870383900C0C62D0064E00F40B0F1402F35 @@ -149,16 +149,16 @@ S113091802F58053984211D003F5805188420DD0D6 S113092801F58052904209D002F58053984205D0CF S113093803F58051421A50425041704701207047D4 S11309480080054070B504460D461646FFF796FF2D -S113095820B911484FF4907101F0FEFC022E04D91D -S11309680D484FF4917101F0F7FCD4F8003416F0F7 +S113095820B911484FF4907101F006FD022E04D914 +S11309680D484FF4917101F0FFFCD4F8003416F0EF S1130978010F14BF2B43AB4304F580621360D4F812 S1130988200416F0020F04F5846114BF054320EA1D -S113099805050D6070BD00BFCC580000F8B50446CD +S113099805050D6070BD00BFDC580000F8B50446BD S11309A80D4617461E46FFF769FF20B93C4840F23A -S11309B8FF1101F0D1FC7B1E012B08D9042F06D0AE -S11309C80C2F04D0364840F2032101F0C5FC082E50 +S11309B8FF1101F0D9FC7B1E012B08D9042F06D0A6 +S11309C80C2F04D0364840F2032101F0CDFC082E48 S11309D80BD00A2E09D00C2E07D0092E05D026B12B -S11309E82F484FF4027101F0B7FCD4F8000517F052 +S11309E82F484FF4027101F0BFFCD4F8000517F04A S11309F8010F14BF2843A84304F5A0621060D4F87B S1130A08041517F0020F14BF2943A94304F2045331 S1130A181960D4F8080517F0040F14BF2843A84335 @@ -170,29 +170,29 @@ S1130A681960D4F8140516F0040F14BF2843A843DA S1130A7804F214521060D4F81C1516F0080F04F28E S1130A881C5314BF2943A943196004F5A560D4F87D S1130A9828250EB9154301E022EA05050560F8BDCD -S1130AA8CC58000070B504460D461646FFF7E6FE1E -S1130AB820B9044840F2853101F04EFC44F8256021 -S1130AC870BD00BFCC58000070B505460C46FFF752 -S1130AD8D5FE20B9084840F2524101F03DFC2846B1 +S1130AA8DC58000070B504460D461646FFF7E6FE0E +S1130AB820B9044840F2853101F056FC44F8256019 +S1130AC870BD00BFDC58000070B505460C46FFF742 +S1130AD8D5FE20B9084840F2524101F045FC2846A9 S1130AE821460222FFF72EFF284621460422082326 -S1130AF8BDE87040FFF752BFCC58000038B5054632 +S1130AF8BDE87040FFF752BFDC58000038B5054622 S1130B080C46FFF7BBFE20B9084840F2F14101F05A -S1130B1823FC2846214601220823FFF73FFF2846E5 -S1130B2821460122BDE83840FFF70CBFCC5800002D +S1130B182BFC2846214601220823FFF73FFF2846DD +S1130B2821460122BDE83840FFF70CBFDC5800001D S1130B3870B505460C46FFF7A1FE20B9084840F2F7 -S1130B48966101F009FC284621460222FFF7FAFEC5 +S1130B48966101F011FC284621460222FFF7FAFEBD S1130B582846214601220823BDE87040FFF71EBF3E -S1130B68CC58000070B505460C46FFF787FE20B93F -S1130B78084840F2EA6101F0EFFB284621460222C8 +S1130B68DC58000070B505460C46FFF787FE20B92F +S1130B78084840F2EA6101F0F7FB284621460222C0 S1130B88FFF7E0FE2846214601220823BDE870400D -S1130B98FFF704BFCC580000830510B5044603D002 -S1130BA80D489C2101F0D8FB0C4B40F601221A6039 +S1130B98FFF704BFDC580000830510B5044603D0F2 +S1130BA80D489C2101F0E0FB0C4B40F601221A6031 S1130BB80B4843F8144C143B0833186019688A0727 S1130BC8FCD4084A40F6012013681840002814BFD2 -S1130BD84FF0FF30002010BD3559000014D00F40ED +S1130BD84FF0FF30002010BD4559000014D00F40DD S1130BE8020042A40CD00F4070B50C46A10706467B -S1130BF8154603D02748DF2101F0AEFBAA0703D02E -S1130C082448E02101F0A8FB234B42F20162234867 +S1130BF8154603D02748DF2101F0B6FBAA0703D026 +S1130C082448E02101F0B0FB234B42F2016223485F S1130C181A600168CB0719D423462DE075B1204A20 S1130C28043D881853F8041B0160A11B5A1812F0DC S1130C387C01F3D11B4800680028EFD01A4C1B4EE6 @@ -201,75 +201,75 @@ S1130C5824F07F0018603346E7E7164842F2016241 S1130C6801680A40002A14BF4FF0FF30002070BD0D S1130C780268D107FCD404332A199A42EDD00C48EF S1130C88311B0360C8580C4A08491060101D0160E4 -S1130C98EEE700BF3559000014D00F40A0E10F4023 +S1130C98EEE700BF4559000014D00F40A0E10F4013 S1130CA800D10F4030D00F4020D00F40010042A4A3 S1130CB800D00F400CD00F4004D00F4038B50C467C -S1130CC8054620B910484FF4217101F045FB24B9B9 -S1130CD80D4840F2852101F03FFB0C4B1A6812F0D5 +S1130CC8054620B910484FF4217101F04DFB24B9B1 +S1130CD80D4840F2852101F047FB0C4B1A6812F0CD S1130CE8E04F0DD018680A490140B1F1805F07D080 S1130CF8084B09481A682A6001680020216038BD39 -S1130D084FF0FF3038BD00BF3559000000E00F40F8 +S1130D084FF0FF3038BD00BF4559000000E00F40E8 S1130D180000FF70E0E10F40E4E10F40114B9842FE S1130D281DD003F58051884219D001F580529042B4 S1130D3815D002F58053984211D003F580518842AA S1130D480DD001F58052904209D002F580539842A3 S1130D5805D003F58051421A504250417047012092 S1130D68704700BF00C0004010B50446FFF7D6FF27 -S1130D7820B908484FF4FB7101F0EEFAE36A43F036 +S1130D7820B908484FF4FB7101F0F6FAE36A43F02E S1130D881000E062216B41F4407242F001032363D6 -S1130D9810BD00BFA259000010B50446FFF7BEFFFE -S1130DA820B9094840F2162101F0D6FAA3691907B7 +S1130D9810BD00BFB259000010B50446FFF7BEFFEE +S1130DA820B9094840F2162101F0DEFAA3691907AF S1130DB8FCD4E06A20F01001E162226B22F4407353 -S1130DC823F00100206310BDA2590000F8B50446C1 +S1130DC823F00100206310BDB2590000F8B50446B1 S1130DD80E4615461F46FFF7A1FF20B92A484FF4CF -S1130DE8B07101F0B9FA25B9274840F2611101F050 -S1130DF8B3FA264A136813F0E04F1CD0116824484C +S1130DE8B07101F0C1FA25B9274840F2611101F048 +S1130DF8BBFA264A136813F0E04F1CD01168244844 S1130E080840B0F1805F16D0136821492148194081 S1130E18814203D1126893B2022B0CD01B481C4A9E S1130E2801681D4B0A409A4201D0082204E0006878 S1130E3881B20029F9D110226A43964204D2124899 -S1130E484FF4B17101F088FA2046FFF7A5FFB6EB1D +S1130E484FF4B17101F090FA2046FFF7A5FFB6EB15 S1130E58051F236B04D243F0200121636D0802E0CF S1130E6823F020002063F600B6FBF5F56A1C002089 S1130E78D309C2F345056362A562E762A06120460F -S1130E88BDE8F840FFF770BFA259000000E00F402A +S1130E88BDE8F840FFF770BFB259000000E00F401A S1130E980000FF70000001100000031010B50446A4 -S1130EA8FFF73CFF20B9054840F2554101F054FAD8 -S1130EB8A06980F02001C1F3401010BDA2590000C0 +S1130EA8FFF73CFF20B9054840F2554101F05CFAD0 +S1130EB8A06980F02001C1F3401010BDB2590000B0 S1130EC810B50446FFF72AFF20B9064840F27641D8 -S1130ED801F042FAA369D80654BF20684FF0FF30E6 -S1130EE810BD00BFA259000038B504460D46FFF7EF -S1130EF815FF20B9064840F2C94101F02DFAA3694B +S1130ED801F04AFAA369D80654BF20684FF0FF30DE +S1130EE810BD00BFB259000038B504460D46FFF7DF +S1130EF815FF20B9064840F2C94101F035FAA36943 S1130F089A0602D42560012038BD002038BD00BFF0 -S1130F18A259000010B50446FFF700FF20B90448A1 -S1130F2840F23B5101F018FAA069C0F3C00010BDAB -S1130F38A2590000094B98420DD003F5805188420C +S1130F18B259000010B50446FFF700FF20B9044891 +S1130F2840F23B5101F020FAA069C0F3C00010BDA3 +S1130F38B2590000094B98420DD003F580518842FC S1130F4809D001F58052904205D002F58053C11AA8 S1130F584842484170470120704700BF0080004064 S1130F682DE9F843089F0646884614461D46DDF8D1 -S1130F782490FFF7DFFF18B92C48CC2101F0ECF9D5 +S1130F782490FFF7DFFF18B92C48CC2101F0F4F9CD S1130F886CB1022C0BD0012C09D0032C07D0102CE7 -S1130F9805D0202C03D02548D22101F0DDF9022DFB -S1130FA804D92248D52101F0D7F908E03DB9B7EBB7 -S1130FB8580F09D91D48D72101F0CEF904E00C23B4 +S1130F9805D0202C03D02548D22101F0E5F9022DF3 +S1130FA804D92248D52101F0DFF908E03DB9B7EBAF +S1130FB8580F09D91D48D72101F0D6F904E00C23AC S1130FC8B8FBF3F08742F5D8B8FBF7F7B7F57E4FCF -S1130FD803D91648D82101F0BFF9A9F104010C2955 -S1130FE803D91248D92101F0B7F9022D02D025B14D +S1130FD803D91648D82101F0C7F9A9F104010C294D +S1130FE803D91248D92101F0BFF9022D02D025B145 S1130FF8002500E00825042200E02A461543756010 S113100800230233B7FBF3F0411EFF29F9D8A201EC S1131018336104F03004D3B21C4309F1FF3C44EAC1 -S11310280C0949EA01203060BDE8F8830E5A000033 +S11310280C0949EA01203060BDE8F8831E5A000023 S113103810B50446FFF77EFF20B905484FF48571C3 -S113104801F08AF9636843F00200606010BD00BFD4 -S11310580E5A000010B50446FFF76CFF20B9054886 -S113106840F2231101F078F9636823F0020060600C -S113107810BD00BF0E5A000038B504460D46FFF7F0 -S113108859FF20B90B4840F2232101F065F9236880 +S113104801F092F9636843F00200606010BD00BFCC +S11310581E5A000010B50446FFF76CFF20B9054876 +S113106840F2231101F080F9636823F00200606004 +S113107810BD00BF1E5A000038B504460D46FFF7E0 +S113108859FF20B90B4840F2232101F06DF9236878 S11310986FF0010203F00F0002FA00F1294204D0B4 -S11310A8044840F2252101F057F9E3689A07FCD572 -S11310B8A56038BD0E5A000038B504460D46FFF742 -S11310C839FF20B9054840F27F2101F045F9E3686A -S11310D85907FCD5A068286038BD00BF0E5A000027 +S11310A8044840F2252101F05FF9E3689A07FCD56A +S11310B8A56038BD1E5A000038B504460D46FFF732 +S11310C839FF20B9054840F27F2101F04DF9E36862 +S11310D85907FCD5A068286038BD00BF1E5A000017 S11310E80369F0B500F1100C9EB20546180C1C0EED S11310F80870B01F4C7002239042B4BF04461446D3 S1131108E71E9F4204DDDCF80070CF500433F7E794 @@ -285,52 +285,52 @@ S113119899785B781B0243EA014121430CE0941ED1 S11311A8A34205D1CC5CCB18597844EA012103E069 S11311B8541EA34201D1C95C016101218163104617 S11311C830BD000038B5074B044698420D4603D09D -S11311D805485D2101F0C0F80448B5FBF0F1CDB233 -S11311E8656238BD00800440765A0000404B4C00CC +S11311D805485D2101F0C8F80448B5FBF0F1CDB22B +S11311E8656238BD00800440865A0000404B4C00BC S11311F838B5134B044698420D4603D01148A6212E -S113120801F0AAF825F4873020F0160119B10D4829 -S1131218AA2101F0A1F8E268E8B222F01603034318 +S113120801F0B2F825F4873020F0160119B10D4821 +S1131218AA2101F0A9F8E268E8B222F01603034310 S1131228E360A168C5F3072221F00E031343A3600A S1131238E06BC5F3074520F001010D43E56338BDB4 -S113124800800440765A0000144B37B5984205468E -S11312580C4604D0124840F2131101F07DF824B969 -S11312680F484FF48A7101F077F820786178A278F2 +S113124800800440865A0000144B37B5984205467E +S11312580C4604D0124840F2131101F085F824B961 +S11312680F484FF48A7101F07FF820786178A278EA S1131278E3788DF805108DF804008DF806208DF8B4 S113128807300198002168612279637901918DF80A S113129804208DF805300198A8613EBD0080044003 -S11312A8765A00000D4B10B59842044604D00C48F9 -S11312B840F2691101F050F8A06840F01001A160F3 +S11312A8865A00000D4B10B59842044604D00C48E9 +S11312B840F2691101F058F8A06840F01001A160EB S11312C8A26842F00103A360E06840F00101E16014 S11312D8A26842F01003A36010BD00BF0080044060 -S11312E8765A0000124B70B5984204460E461546CD -S11312F804D0104840F28F2101F02EF826B90D4889 -S11313084FF4247101F028F8002D04DC094840F258 -S1131318912101F021F8606B10F03F0006D02046BF +S11312E8865A0000124B70B5984204460E461546BD +S11312F804D0104840F28F2101F036F826B90D4881 +S11313084FF4247101F030F8002D04DC094840F250 +S1131318912101F029F8606B10F03F0006D02046B7 S113132831462A46BDE87040FFF7DABE70BD00BFFB -S113133800800440765A0000144B70B59842054664 -S11313480E46144604D0124840F29E3101F004F8C7 -S113135826B90F4840F29F3100F0FEFF002C04DC50 -S11313680B484FF4687100F0F7FFA86BC107FCD471 +S113133800800440865A0000144B70B59842054654 +S11313480E46144604D0124840F29E3101F00CF8BF +S113135826B90F4840F29F3101F006F8002C04DC4E +S11313680B484FF4687100F0FFFFA86BC107FCD469 S113137840F2FE718C4201DD604270BD2846314660 S11313882246BDE87040FFF7E9BE00BF0080044074 -S1131398765A000038B50B4B044698420D4604D0E3 -S11313A8094840F2474100F0D7FF35F07F0304D0E5 -S11313B8054840F24A4100F0CFFF606820EA05057D -S11313C8656038BD00800440765A000038B5074B84 +S1131398865A000038B50B4B044698420D4604D0D3 +S11313A8094840F2474100F0DFFF35F07F0304D0DD +S11313B8054840F24A4100F0D7FF606820EA050575 +S11313C8656038BD00800440865A000038B5074B74 S11313D8044698420D4604D0054840F26A4100F09C -S11313E8BBFF20680DB16168084038BD0080044027 -S11313F8765A000038B50A4B044698420D4604D084 -S1131408084840F29F4100F0A7FF35F07F0304D05D -S1131418044840F2A24100F09FFF256038BD00BF98 -S113142800800440765A000038B50D4B04469842B3 -S11314380D4604D00B4840F2125100F08DFF226A89 +S11313E8C3FF20680DB16168084038BD008004401F +S11313F8865A000038B50A4B044698420D4604D074 +S1131408084840F29F4100F0AFFF35F07F0304D055 +S1131418044840F2A24100F0A7FF256038BD00BF90 +S113142800800440865A000038B50D4B04469842A3 +S11314380D4604D00B4840F2125100F095FF226A81 S113144804F12001D207FAD4E800C5B245F0010539 S11314580D600B68D807FCD4216B88B238BD00BF77 -S113146800800440765A000013B5064C0146204615 +S113146800800440865A000013B5064C0146204605 S1131478FFF702FE204601A9FFF71EFE9DF80400AF -S11314881CBD00BF0080004038B500F0CBFE00F55D +S11314881CBD00BF0080004038B500F0D3FE00F555 S1131498FA75FF20FFF7E8FFFF28044603D000F0A1 -S11314A8C1FEA842F5D3B4F1FF035842584138BDF0 +S11314A8C9FEA842F5D3B4F1FF035842584138BDE8 S11314B8012108B504480A46FFF7F4FAFF20BDE8FD S11314C80840FFF7D1BF00BF0070004010B50121EC S11314D800220848FFF7E6FAFF20FFF7C5FFFFF7E9 @@ -347,9 +347,9 @@ S113157838BDFF2038BD38B505460024285DFFF77F S113158873FF2B1958780234FFF76EFFB4F5007F08 S1131598F4D1FF20FFF768FFFF20FFF765FFFF2066 S11315A8FFF762FF00F01F00B0F1050EDEF1000145 -S11315B851EB0E0038BD70B505460E4600F032FEFC +S11315B851EB0E0038BD70B505460E4600F03AFEF4 S11315C800F16404FF20FFF74FFFFF2805D100F066 -S11315D829FEA042F6D3002070BDFE28FBD1AC1C26 +S11315D831FEA042F6D3002070BDFE28FBD1AC1C1E S11315E8FF20FFF741FF04F8020CFF20FFF73CFF40 S11315F8AB1904F8010C0234981CA042F0D1FF2066 S1131608FFF732FFFF20FFF72FFF012070BD000016 @@ -366,18 +366,18 @@ S11316A8FFF72CFA20214FF040200A46FFF7FAF9F9 S11316B80A24FF215D48FFF7DFFC5C4803A9FFF714 S11316C8FBFC013CF5D120214FF04020FFF730FA14 S11316D8012154482246FFF7E5F920462146FFF741 -S11316E80BFF0128064601D0002466E000F09AFDAD +S11316E80BFF0128064601D0002466E000F0A2FDA5 S11316F84FF4D57100F57A750820FFF7FDFE01282F S113170839D1FF20FFF7B0FE02AB18550134042C81 S1131718F7D19DF80A100129E6D19DF80B20AA2AD1 -S1131728E2D100F07FFDA84204D300F07BFDA8427B +S1131728E2D100F087FDA84204D300F083FDA8426B S1131738DAD207E0A9204FF08041FFF7DDFE002848 S1131748EFD1F2E73A200021FFF7D6FE0028CBD1EB S11317580446FF20FFF788FE02AB18550134042C19 S1131768F7D19DF8080000F04001CAB2002A0CBF66 S113177804240C2421E0A9202146FFF7BDFE0128FA -S113178802D80224A92600E0344600F04BFDA84202 -S11317980CD300F047FDA842A6D210204FF40071E4 +S113178802D80224A92600E0344600F053FDA842FA +S11317980CD300F04FFDA842A6D210204FF40071DC S11317A8FFF7AAFE002818BF002406E030460021EF S11317B8FFF7A2FE0028E8D1EBE71D4B1C60FFF7FA S11317C877FE14480178DCB101F0FE040470174870 @@ -448,8 +448,8 @@ S1131BC883FF3C487F21FFF7E5FB00213948FFF7F5 S1131BD8FDFB01463748FFF70DFCFEF775FD01468E S1131BE83448FFF7EFFA16213248FFF701FB314872 S1131BF8FFF758FB01212F48FFF716FC044600F0B5 -S1131C0811FB00F59C5000F10805600708D4012178 -S1131C182848FFF709FC044600F004FBA842F4D363 +S1131C0819FB00F59C5000F10805600708D4012170 +S1131C182848FFF709FC044600F00CFBA842F4D35B S1131C280021082369208DF80910452127228DF801 S1131C3808308DF80B005B238DF80D10684601A958 S1131C488DF80A208DF80C30FFF738F8009A531CE9 @@ -465,1143 +465,1144 @@ S1131CD814F0010007D00448044940F24262BDE808 S1131CE81040FFF7FFBA10BD00800440CA0F00205F S1131CF8024B034803491A88FFF71EBBC00F002094 S1131D0800800440CA0F002000B589B0002168464D -S1131D18202203F055FD0848694602F019FC40B931 +S1131D18202203F05DFD0848694602F021FC40B921 S1131D28009838B19DF8080080F01001C1F3001044 -S1131D3800E0002009B000BDE35A000000487047E5 -S1131D48E35A000010B5074C0023204606490A222E -S1131D5884F8243202F0D6F810B9012084F8240259 -S1131D6810BD00BF08000020FE5A000008B508484E -S1131D7890F82432012B01D102F045FB0548FFF706 -S1131D88C9F80128FAD00448BDE8084002F004BCA8 -S1131D980800002000C00040E35A0000034890F8FF -S1131DA82432012B01D102F02EBB70470800002019 -S1131DB838B50F4C054694F82432012B0AD1214634 -S1131DC802F086FC002805DA002084F82402204664 -S1131DD802F019FB6C1E14F8011F41B10548FFF706 -S1131DE883F80448FFF75AF80028FAD0F3E738BD17 -S1131DF80800002000C0004008B50848FEF7B4FBFE -S1131E080748FEF77BFB4FF040200321FEF7AAFEAC -S1131E1800F0E2FA00F0EFFAFCE700BF8003C0012B -S1131E280100002001483D2100F096BA0B5B000038 -S1131E3808B500F0C6F978B100F018FB00F0DEF937 -S1131E4800F0C1F9054B20F0604020F07F011960D3 -S1131E5800F0B9F94268904708BD00BF08ED00E0FA -S1131E68F8B505460E4617460024A3B29F4205D08E -S1131E78A05D605500F02BFB0134F6E7F8BD0000C7 -S1131E8870B500240646254600F021FB094BE258AC -S1131E98964209D3191948681218964204D20C219B -S1131EA801FB0535287A70BD0C340135C02CEBD103 -S1131EB8FF2070BD905B00002DE9F34105460068E2 -S1131EC8FFF7DEFFFF2801D100201AE000242B19B8 -S1131ED858682F6802AE46F8040D04EB070800F0B2 -S1131EE8F6FA304641460422FEF77EFE0028EBD17E -S1131EF8E25901998A42E7D10434B4F5007FE6D166 -S1131F080120BDE8FC81000038B5104B0446984216 -S1131F180D4606D0B1F5004F05D0FFF7CDFF18B92F -S1131F2810E00B4C00E01C46EB050BD12068A842DE -S1131F3809D0204640F8045B29464FF40072FFF7A5 -S1131F488FFF00E00024204638BD00BF3002002087 -S1131F58340400202DE9F8439946036821F4FF75F9 -S1131F68013304460E46904625F0010506D140F893 -S1131F78045B29464FF40072FFF772FF2068A842F9 -S1131F8808D020462946FFF7BFFF044610B90020B1 -S1131F98BDE8F88321684746761AA219161D00F091 -S1131FA896FA231DF01AB0F5007F08D3204605F5EC -S1131FB80071FFF7A9FF04460028E8D0061D17F8AA -S1131FC8011B08EB0902974206F8011BE7D101201F -S1131FD8BDE8F883034A04484FF0FF3313600360F5 -S1131FE8704700BF340400203002002070B5044656 -S1131FF80D461646FFF744FFFF2815D0601E40190A -S1132008FFF73EFFFF280FD024F4FF7323F00101EC -S1132018B1F5004F0CBF05480548214632462B460A -S1132028BDE87040FFF796BF002070BD3002002065 -S113203834040020F8B505460E46FFF721FF044690 -S1132048681E8019FFF71CFFFF2C05464DD0FF289A -S11320584BD0844249D8032C47D9132845D80026A5 -S113206800F035FA224B0C2202FB06310F7AA74204 -S113207801D10C6804E00136102EF1D14FF0FF3481 -S1132088002700F024FA1A4A0C2000FB0723197AC7 -S1132098A94201D11F6804E00137102FF1D14FF094 -S11320A8FF37002600F013FA114A0C2000FB062320 -S11320B8197AA94201D15D6803E00136102EF1D1E5 -S11320C800253F1B7819C0F38F270025BD420AD28B -S11320D800F0FDF92046FEF75FFD04F5806420B9A1 -S11320E86A1C95B2F2E70120F8BD0020F8BD00BFD4 -S11320F8905B00000E4B07B51A68013216D0586879 -S11321089968DA680918881819695A694018811889 -S11321189869DB690A18D118484202AA42F8040DE2 -S1132128042148F2F000FFF761FF00E001200EBD32 -S11321383002002048F204034FF400410A6818688A -S113214848F2080319688018421848F20C0003681A -S1132158D11848F21002106848F214031A680918D2 -S1132168881848F218010B68C21848F2F000016890 -S11321785318D3F1010038BF002070470A4808B546 -S11321880368013305D1094801684B1C06D10120B5 -S113219808BDFFF791FE0028F5D108BDFFF78CFEB6 -S11321A8003018BF012008BD30020020340400208C -S11321B84FF400407047FFF70DBFFFF717BFFFF755 -S11321C839BFFFF7B7BFFFF7F3BF08B5FFF792FFB3 -S11321D818B1BDE80840FFF7D1BF08BD054B002280 -S11321E84CF24F3105201A6059609A601860024B0E -S11321F81A60704710E000E038060020014B002206 -S11322081A60704710E000E0044B1868C30303D554 -S113221803490A68531C0B60704700BF10E000E0D4 -S11322283806002008B5FFF7EFFF014B186808BD12 -S11322383806002010B50748FEF760F9FEF744FA9F -S1132248014605484FF461426023BDE81040FEF79B -S1132258BDBD00BF0100001000C00040402970B59A -S113226806460D4603D91648602100F075F815484E -S11322782946FEF739FE30B11248FEF70FFE30B991 -S113228800F025F9F8E70E48642100F065F8002409 -S1132298A3B2AB4213D200F01AF90A48315DFEF733 -S11322A823FE30B10748FEF7F9FD30B900F00FF905 -S11322B8F8E703486D2100F04FF80134E8E770BDF2 -S11322C8505C000000C00040F8B51E4C0646257856 -S11322D8A5B91D48FEF7F4FD421C01D10020F8BD44 -S11322E81A4AC0B210700028F8D0FFF79BFF184BA9 -S11322F81849186001200D702070EFE7154D124839 -S11323082F78FEF7DDFD0137431C10D00F49C8555F -S11323182878421CD3B20A782B709A42DED1304610 -S11323280131FFF79DFD002121700120F8BDFFF761 -S113233879FF074B196864318842CFD9002020708F -S1132348F8BD00BF7E06002000C000403C06002007 -S1132358800600207D06002008B5034B186003485A -S1132368016000F0B4F8FCE7840600208806002029 -S113237810B500F0A9F8012818D000F051FAA8B156 -S11323880B4C2378012B11D1FFF74CFF09490A683C -S113239802F51C531033834208D80020207000F043 -S11323A849FA18B9BDE81040FFF742BD10BD00BF97 -S11323B88C0600209006002008B5054B01221A70EF -S11323C8FFF730FF03490860BDE80840FFF7D0BFB6 -S11323D88C0600209006002008B500F077F8FFF777 -S11323E8FDFEFFF7E8FE00F005FA00F011F8BDE87D -S11323F80840FFF7E1BF08B500F069F8FFF704FFEC -S113240800F002FB00F014F8BDE80840FFF7B0BF85 -S113241810B5064C00F066F8FFF70CFF0023237094 -S113242803F0D2F80320207010BD00BF0100002083 -S113243808B50C48FFF748FF012805D10A4B0022CC -S113244808481A7000F06CF8064803F00FF90128E0 -S113245807D10549032008700248BDE8084000F088 -S11324685FB808BD940600200100002070470000F2 -S11324780A4B70B51A7806460C461D4612B9C9B2FD -S1132488FFF7ECFE2878032803D13046E1B203F0C5 -S1132498D1F8BDE8704000F03BB800BF010000204F -S11324A8034B1878411E01298CBF40200020704737 -S11324B801000020034B1878411E01298CBF4020DD -S11324C8002070470100002000F01AB870477047D8 -S11324D8034BFE2218710220DA70A3F844007047F7 -S11324E8D4060020054B00221A709A6483F843200E -S11324F8A3F844209A705A70704700BFD40600208D -S1132508024B1878003018BF01207047D406002009 -S1132518024B002283F84320704700BFD4060020F2 -S1132528F8B506780546FF2E824C19D100F078F9E3 -S113253808B91020E4E000230125102063706371BA -S11325482570E6702071FFF7ABFFA071FFF7B2FFAB -S1132558E071FFF7AFFF010A21726572A57281E08D -S11325682778012F40F0E480F32E57D01FD8CF2EC0 -S113257800F0BC8006D8C92E00F08580CC2E40F02F -S1132588BE80BAE0D12E00F0AB80C0F08E80D22E8F -S113259840F0B5800025FF21E17025716571FFF7D2 -S11325A87FFFE571A07125726572072229E0FA2E72 -S11325B84DD00AD8F52E11D026D3F62E40F09F80A0 -S11325C8FF21E1704268A26494E0FD2E4CD0FE2EF7 -S11325D855D0FC2E40F09380002091E0FFF760FF77 -S11325E86A78904201DC22208AE0A16C201DFFF762 -S11325F837FCFF20E070A26C69788B18A3646878B4 -S1132608421CA4F844207DE0FFF74AFF6B78984207 -S1132618E9DD6968201DA1646A78E8E7FF22E270B1 -S1132628A36C446800221C19A34204D013F8010BBC -S11326381118CAB2F8E73F4B0021C3F8072001205C -S11326480822187159719971A3F844205AE03A4B39 -S11326580020FF220721E270A36420716071A07139 -S1132668C4F807100822CCE761780020FF23E37040 -S113267820716171A071E07120720622C1E7002106 -S11326882170617034E0A66CFFF70AFF6A1C411ED2 -S11326983046FFF792FD80B3FF23A56CE370FFF784 -S11326A8FFFE013D2818A06424E0FFF7F9FE6B78CB -S11326B80138984297DDFF21E170A4F844706978E5 -S11326C819B9FFF782FDE8B917E01A4CAA1CA06CE7 -S11326D8FFF773FD88B16A78A06C1318A36411E03E -S11326E8A06C6968FFF76BFD10B906E0FFF7A0FB63 -S11326F8FF22E270A4F8447004E0312000E02020B6 -S1132708FFF7E6FE0B4C94F84320012A02D110206F -S1132718FFF7DEFEB4F8441006480BB2002B07DDC1 -S1132728012280F843200330BDE8F840FFF7A0BE3B -S1132738F8BD00BFD4060020C75C000070B50025B2 -S113274806462C46705D03F025F8C0B2A0F13003AC -S1132758DAB2162A10D8A0F13A0106290CD9092AA6 -S113276884BFA0F13702D2B2013502EB0414022D62 -S113277804F0FF0401D0E5E70024204670BD000002 -S113278810B503460B4819460A24B1FBF4F1024676 -S113279801300029F8D102F801190A24B3FBF4F135 -S11327A804FB11333033104602F801390B46002973 -S11327B8F3D110BD2107002038B50309092B0546BC -S11327C80C46184601D9373003E0303002F0E2FFF6 -S11327D8C0B2207005F00F00092801D9373003E092 -S11327E8303002F0D7FFC0B260700020A0702046DD -S11327F838BD000008B5074B00200749187001F0E0 -S113280871FB28B105487C21BDE80840FFF7A4BD49 -S113281808BD00BF600700206C070020CF5C0000E3 -S1132828034B1878D0F1010038BF0020704700BF6F -S11328386007002010B5FFF747FE012801D10020EA -S113284810BD054C2378002BF9D1FFF75DFA012858 -S1132858F5D1207010BD00BF6007002010B50446F4 -S1132868007802F097FF532801D0032010BD607848 -S113287802F08AFF0028F8D06078312806D0322880 -S113288806D0332814BF0320022010BD002010BD39 -S1132898012010BDF8B505460230FFF74FFF043597 -S11328A80446074600262846FFF748FF013EB6B20D -S11328B8BB1999B2201802350129C4B2F3D82846A5 -S11328C8FFF73CFFE243D4B2231A58425841F8BDFB -S11328D82DE9F041044616460D4601B120B9494890 -S11328E840F23621FFF738FD2046FFF7B7FF0328EB -S11328F8074600F082802046FFF7CCFF002879D0F5 -S1132908012F23D002D3022F77D146E0A01CFFF772 -S113291815FF8046201DFFF711FF07022F60A01D39 -S1132928FFF70CFF38182860A8F103050834ADB286 -S1132938002E63D0002729B28F425FDA2046FFF7C2 -S1132948FDFEF05501370234BFB2F4E7A01CFFF7CF -S1132958F5FE8046201DFFF7F1FE07042F60A01D39 -S1132968FFF7ECFE07EB00272F6004F10800FFF7E0 -S1132978E5FEA8F104023B182B600A3495B2002E38 -S11329883CD0002728B2874238DA2046FFF7D6FE23 -S1132998791CF05502348FB2F4E7A01CFFF7CEFE81 -S11329A88046201DFFF7CAFE07062F60A01DFFF70B -S11329B8C5FE07EB00472F6004F10800FFF7BEFED1 -S11329C807EB00272F6004F10A00FFF7B7FEA8F110 -S11329D80501381828600C348DB27EB100272BB25B -S11329E89F420BDA2046FFF7A9FE7A1CF055023401 -S11329F897B2F4E74FF6FF7500E0002528B2BDE86A -S1132A08F08100BFCF5C00002DE9F041A54E357878 -S1132A18002D00F08B81012D26D1FFF793F9A248F0 -S1132A28FFF7C6F9A148FFF7C3F9FFF787F92A4664 -S1132A3801469F4801F066FA044638B19D48FFF7FD -S1132A48B7F92846BDE8F041FFF7A8B99A48FFF757 -S1132A58AFF99A48FFF7ACF99948FFF7A9F99948EB -S1132A68022304604460BCE0022D40F08D80964F40 -S1132A78964C4FF48071204607F50D7201F0ECFD79 -S1132A8897F93A12002901DA8A48A0E0F0B1002245 -S1132A98204604F5C071FFF71BFF421C04D185488A -S1132AA8FFF786F9032095E000280FDD854D696856 -S1132AB821B9D4F880116860296007E0D4F880311E -S1132AC82C684018A34238BF2B6068607E4DD5F847 -S1132AD83C22D5F840329A4240F0288105F50D7021 -S1132AE8002101F097FC70B17248FFF761F90420E6 -S1132AF8FFF754F905F50D7001F085FC694A0021CA -S1132B081170BDE8F0816F4C6B48FFF751F97048BC -S1132B18FFF74EF96068FFF733FE6E48FFF748F990 -S1132B286D48FFF745F9E0786A49FFF745FEA07854 -S1132B386A49FFF741FE60786949FFF73DFE694934 -S1132B482078FFF739FE6348FFF732F96648FFF744 -S1132B582FF994E80300FFF732FB524C064660B99C -S1132B685448FFF725F90520FFF718F905F50D7006 -S1132B7801F049FC2670BDE8F0814F48FFF718F9C9 -S1132B8803202070BDE8F081032D40F0CF804E4F24 -S1132B984E4C4FF48071204607F50D7201F05CFD30 -S1132BA897F93A32002B04DA5048FFF701F902206A -S1132BB810E0002859D0204604F5C07104F580724D -S1132BC8FFF786FEB0F1FF3F80460DD14848FFF776 -S1132BD8EFF82846FFF7E2F807F50D7001F013FC4B -S1132BE800233370BDE8F08100283EDD4148FFF73B -S1132BF8DFF84046FFF7C4FD3648FFF7D9F83E48EA -S1132C08FFF7D6F894F883013249FFF7D5FD94F815 -S1132C1882013249FFF7D0FD94F881013049FFF76A -S1132C28CBFD304994F88001FFF7C6FD2948FFF72A -S1132C38BFF82D48FFF7BCF8D4F8800104F580727A -S1132C484146FFF7BAFA044660B91A48FFF7B0F8E4 -S1132C580620FFF7A3F807F50D7001F0D4FB3470D4 -S1132C68BDE8F0811448FFF7A3F8174CD4F83C22C8 -S1132C78D4F84002824259D12048FFF799F8FFF767 -S1132C88A4FA054600283BD10A48FFF791F8072023 -S1132C98FFF784F804F50D7001F0B5FB014A1570CF -S1132CA8BDE8F081600700203A5D00005D5D00002A -S1132CB8A0090020355E0000825D0000875D0000E9 -S1132CC8AB5D0000640700206C070020C40B0020E3 -S1132CD8D95D000020070020E25D000022070020E3 -S1132CE82407002026070020D55D0000FB5D0000B6 -S1132CF81C5E00003D5E00004A5E0000615E00004C -S1132D080B48FFF755F80B48FFF752F804F50D7018 -S1132D1801F079FB0848FFF74BF8084B00211970BC -S1132D28FFF724F8BDE8F041FFF782B8BDE8F08169 -S1132D38825D00007D5E0000955E00006007002053 -S1132D4810B50023934203D0CC5CC4540133F9E793 -S1132D5810BD002310B5044618464208E15C42EA57 -S1132D68C010013342180B2B02F0FF00F5D110BD3F -S1132D7808B580B1036873B11A7862B1D9888088BC -S1132D88814208D15878FEF757FD10F0010F0CBFA7 -S1132D980020032008BD092008BDF8B503690C46C6 -S1132DA801F10902002B4DD0436911461F7B002510 -S1132DB85E5D0A46202E13D0052E14BF3246E52246 -S1132DC807F00806F6B22EB1A2F14106192E01D871 -S1132DD82032D2B2013501F8012B082D0A46E7D179 -S1132DE81E7A202E17D02E2201F8012B08269D5D6D -S1132DF80A46202D0FD007F01002D2B22AB1A5F14D -S1132E084102192A01D82035EDB2013601F8015BD7 -S1132E180B2E0A46EBD1D97A21729E7FDD7F3104CD -S1132E2841EA05661D7F597F2E4346EA012626603E -S1132E385D7E197E41EA0526A680DD7D9B7D43EAF9 -S1132E480521E18000251570A669E6B1E269D2B1D1 -S1132E5803690BB9002514E0018C4FF6FF72914207 -S1132E68F8D0C76937F8150058B1002101F040FCC3 -S1132E780028EFD0E369591E8D42EBD27055013515 -S1132E88F0E700207055F8BDCA7E8B7E032843EA1C -S1132E98022305D1487D097D41EA002243EA024321 -S1132EA81846704710B504460A46407804F13401C0 -S1132EB80123FEF7C9FC80BB94F8332294F832321C -S1132EC843EA0221174B0AB29A4228D194F86C209B -S1132ED894F86D10130494F86A2043EA016194F895 -S1132EE86B30114341EA03210F4B21F07F429A4290 -S1132EF816D094F8880094F88910020494F886008F -S1132F0842EA016194F88720014341EA022121F051 -S1132F187F40C01A18BF012010BD032010BD022035 -S1132F2810BD00BF55AAFFFF464154002DE9F041EA -S1132F38154602681378303B092B05D854783A2C87 -S1132F4802D10232026000E0002300200860002B56 -S1132F5840F05A81B54C2468002C00F058810C606C -S1132F68217881B16078FEF767FCC1070BD4002D86 -S1132F7800F0508100F00401C8B2002814BF0A20F0 -S1132F880020BDE8F081002020706070FEF740FB4F -S1132F98C20700F142812DB100F00403DAB2002A1D -S1132FA840F03E8100212046FFF77CFF012818D11C -S1132FB894F8F60110B90D20BDE8F08194F8FC519D -S1132FC894F8FD112B0494F8FA0143EA016294F889 -S1132FD8FB11024342EA012520462946FFF762FF16 -S1132FE800E00025032800F01E810028E3D194F8AE -S1132FF8402094F83F3043EA0220B0F5007FDAD14C -S113300894F84B6094F84A1051EA06210DD194F8CB -S11330185A3094F85B2094F85810180440EA026671 -S113302894F859200E4346EA022194F84460E16179 -S1133038731E012BE670BED894F84120A270002AB2 -S1133048B9D0501E1042B6D194F8460094F84530D1 -S113305843EA002398B21B072081ACD194F8487046 -S113306894F8473053EA07230DD194F8563094F86E -S113307857701B0443EA076394F854703B4394F86D -S1133088557043EA072394F8438094F8427057EA4A -S1133098082890D006FB01FC08EB10176744BB42D4 -S11330A889D3DB1BB3FBF2F3002B84D040F6F5760F -S11330B8B34206D94FF6F57293428CBF0326022613 -S11330C800E00126023305EB08027F19032EA361F1 -S11330D825626262E76213D100287FF46CAF94F82A -S11330E8622094F86300120442EA006294F86000D3 -S11330F8024394F8610042EA0022A26298000FE0B9 -S113310800283FF458AF0CEB0200022EA06201D154 -S1133118580005E003225A4303F0010303EB52006D -S113312800F2FF13B1EB532FFFF445AF00204FF02B -S1133138FF31032E2161E0605AD194F8652094F898 -S11331486430607143EA02216A186261607804F1AC -S113315834010123FEF778FB002849D194F833029F -S113316894F8322242EA0023314819B281423FD10D -S113317894F8362094F83730110441EA036094F83F -S1133188343094F83520184340EA02212948814212 -S11331982ED194F81A2294F81B32110441EA0360E0 -S11331A894F8183294F81922184340EA0221224864 -S11331B881421DD194F8223294F82322190441EA59 -S11331C8026094F8202294F82132104394F81E22C5 -S11331D840EA032194F81F021304E16043EA006102 -S11331E894F81C0294F81D22014341EA0223236146 -S11331F8124926700888421C93B200200B80E38091 -S113320820632071BDE8F0810B20BDE8F0810C201B -S1133218BDE8F0812846BDE8F0810320BDE8F081CF -S11332280A20BDE8F0810120BDE8F0814C0F0020A0 -S113323855AAFFFF5252614172724161480F002042 -S1133248F8B50446007908B3256B04F134076078AF -S113325839462A460123FEF73BFBB0B9636A20715D -S11332689D4201D20020F8BDE26998188542F9D23E -S1133278E678012EF6D9E16960786D182A46394650 -S11332880123FEF725FB013EF3E70120F8BD38B51D -S11332980446FFF7D5FF0346002B50D12278032AB2 -S11332A845D16079002842D0236304F13401002514 -S11332B8CD540133B3F5007FF9D1522384F8343067 -S11332C884F835306123AA2084F8363084F81B3218 -S11332D8236984F833027220552284F8180284F88A -S11332E81902180C84F8322284F81E024122E0687C -S11332F884F8372084F81A2284F81C32C3F307228E -S11333081B0E84F81D2284F81F32C0F30722030C15 -S113331884F82002000E84F8212284F8223284F8EA -S11333282302626960780123FEF7D2FA65710021ED -S113333860780A46FEF72EFB003018BF012038BD1E -S113334838B5036B044699420D460CD0FFF778FF55 -S113335858B9607804F134012A460123FEF774FA57 -S113336818B9256338BD002038BD012038BD8369EC -S113337802399A1E914204D28278C06A02FB010083 -S11333887047002070470129F8B504460D465DD9F9 -S1133398836999425AD20178022928D0032937D05F -S11333A8012950D1426A05EB550602EB5621FFF775 -S11333B8C7FF002847D1636AF005013604EBD057EC -S11333C803EB5621204697F83470FFF7B9FF00281D -S11333D839D1F60504EBD65494F83410EB0747EAD0 -S11333E8012201D51009F8BD1005000DF8BD426A87 -S11333F802EB1521FFF7A4FF28BB2D06ED0D61197B -S1133408641991F8343094F8350043EA0020F8BD83 -S1133418436A03EBD511FFF793FFA0B96D06ED0DD1 -S1133428611991F8370091F8362034310306497848 -S1133438641943EA024294F8343042EA01201843FA -S113344820F07040F8BD4FF0FF30F8BD0120F8BD02 -S113345870B504460D46E1808168012901D1022036 -S113346870BD03689A699142F9D271B91878032832 -S113347801D1996A49B919890020A942E060EED9B5 -S11334889B6A03EB1512226119E09E783601B54256 -S11334980ED32068FFF777FF421C014618D0012895 -S11334A8DDD923689A699042D9D2AD1BADB2EEE753 -S11334B8E1602068FFF75BFF00EB151121612068CC -S11334C805F00F0500EB451134316161002070BD32 -S11334D8012070BD0129F8B504460D46164672D977 -S11334E8836999426FD2017802293AD0032949D0D5 -S11334F8012964D1426A05EB550702EB5721FFF70E -S11335081FFF00285CD1F805C20D15F00105F3B2C0 -S113351807D0A11891F8340000F00F0141EA031311 -S1133528DBB2616A0120A2180137207182F83430B5 -S1133538204601EB5721FFF703FF002840D1FF0580 -S1133548FA0D15B1C6F3071607E0A31893F834105B -S1133558C6F3032621F00F073E43A71887F8346003 -S11335682EE0416A01EB1521FFF7EAFE40BB2D0668 -S1133578EB0DE21882F83460C6F30726154682F884 -S113358835601DE0426A02EBD511FFF7D9FEB8B9E0 -S11335986D06EB0DE11891F837200D46130603F07C -S11335A870421643C6F30723320C81F83460360E92 -S11335B881F8353081F8362081F8376000E0022040 -S11335C801212171F8BD0220F8BDF8B505460F4662 -S11335D831B9C6686EB18069864228BF012609E000 -S11335E8FFF7D1FE01283BD9AB69984239D33E464F -S11335F800E001263446A96901348C4204D3012E23 -S113360801D80020F8BD022428462146FFF7BBFE56 -S113361848B1431C02D14FF0FF30F8BD01281FD038 -S1133628B442E8D1EDE7284621466FF07042FFF72F -S113363851FF98B947B92A69EC60511C0CD0531E44 -S113364801202B61687107E0284639462246FFF7B6 -S113365841FF0028EFD001E02046F8BD0128DAD068 -S11336680120F8BD2DE9F843C6880446701C86B2CB -S11336780F4616B90420BDE8F8832369002BF9D056 -S113368816F00F085AD1591C2161E168206819B94C -S11336980289B242EED951E08278531E13EA161217 -S11336A84CD1FFF770FE0128054602D80220BDE878 -S11336B8F883411C02D10120BDE8F88320688169A0 -S11336C88D4235D3002FD5D0E168FFF77EFF05463C -S11336D800283CD00128E9D0421CECD02068FFF730 -S11336E8AFFD0028E7D1226834320027175401308F -S11336F8B0F5007FF9D1D4F8009029464846FFF781 -S113370836FEC9F8300020688378BB420DD90122FF -S113371802712068FFF794FD0028CCD12068013796 -S1133728036BFFB2591C0163EDE7016BCF1B076301 -S1133738E56020682946FFF71AFE20612068E680C4 -S113374800EB4813343363610020BDE8F883072095 -S1133758BDE8F8832DE9F84F4FF0FF0906464C46BB -S113376830683169FFF7ECFD8046002840F083801B -S113377875692F78002F78D0EA7AE52F02F03F0395 -S113378869D002F00800C1B211B10F2B63D101E076 -S11337980F2B4AD1D6F81CB0BBF1000F5CD007F050 -S11337A84000C1B231B1F48895F80D9007F0BF0715 -S11337B8348401E0A7424ED16B7B4B454BD12A7828 -S11337C80D2122F04000441E4C434FF001084FF0F5 -S11337D8000A2A4B1AF803106A1850786B5C43EAFB -S11337E80020B8F1000F0BD000F09EFFFE2C80469D -S11337F831D83BF8140000F097FF0134804502E00B -S11338084FF6FF71884226D10AF1010ABAF10D0F69 -S1133818DFD12A7802F04000C3B24BB3B8F1000FED -S113382826D03BF814401CB315E024B92846FFF70A -S113383890FA81451FD04FF6FF723284B269D37A69 -S113384813F0010307D1E85CD15C0133884202D14B -S11338580B2BF8D10FE0FF2430460021FFF702FFBD -S1133868804600283FF47CAF05E04FF0040802E0EE -S1133878791ECCB2F0E74046BDE8F88F4E5F0000F1 -S11338882DE9F74F0B7806462F2B894601D05C2B80 -S113389801D109F101090024B46099F800001F2836 -S11338A800F2948030462146FFF7D2FD74611FE18F -S11338B85C2900F08B80D6F81CB00025785D6C1C60 -S11338C81F2800F28B8007EB04091F2894BF0424E7 -S11338D800240BEB4500002D00F0048130F8021D94 -S11338E8202900F098802E2900F095800023B269E1 -S11338F80BEB45072BF815302020D05401330B2B44 -S1133908FAD14FF000083BF81810202900F0858000 -S11339182E2900F08280B8F1000F01D044F003048E -S11339283B4633F8027D2E2F01D0013DF9D1002208 -S11339384FF0080A17463BF8183008F10108002B25 -S11339486ED1B3691978E52901D105201870BAF147 -S1133958080F01D1BA00D7B207F00C030C2B00F002 -S1133968A88007F00301032900F0A38004F00200F3 -S1133978C2B24AB907F00307012F08BF44F0100484 -S1133988042B08BF44F00804B3693046DC720021F4 -S1133998FFF75EFD10B93046FFF7DCFEB169CA7A5D -S11339A8002840F0898002F00403D9B2002940F0CD -S11339B89F807169C87A00F01002D3B2002B00F01E -S11339C8858034682078FFF75FFAB0604F4639780D -S11339D809F101092F297FF46BAFF7E72F283FF48A -S11339E872AF5C283FF46FAFB4F5807F7AD00121C1 -S11339F800F07EFE002875D07F2806D83D4A12F8CC -S1133A08013F13B18342FAD16CE00BEB440525F86E -S1133A18020C254652E7013D5DE708F1010872E70B -S1133A28202B03D02E2B04D1A8455DD044F00304E9 -S1133A3881E7524502D2A84515D155E0BAF10B0FDA -S1133A4804D144F003044FF00B0A7AE7A84503D0E5 -S1133A5844F003043FF675AFBF00FFB2A8464FF029 -S1133A680B0A082267E77F2B0ED91846002101921A -S1133A7800F03EFE019A034618B11F48C11811F818 -S1133A88803C44F002042BB11C4810F8011F29B1F2 -S1133A989942FAD144F003045F2306E0A3F14100FC -S1133AA881B2192914D847F00207B0698354013246 -S1133AB841E744F0020459E7042819D102F004014B -S1133AC8C8B2002814BF0420052011E005200FE027 -S1133AD8A3F1610081B21929E7D8203B47F0010717 -S1133AE89BB2E2E7062003E0BAF10B0FB4D1A8E7D2 -S1133AF8BDE8FE8FBD5E0000CE5E0000C65E00001D -S1133B0838B5018CC5884FF6FF73994208BF29461A -S1133B180446FFF79DFC0146B8B921692068FFF700 -S1133B280FFC014670B96069E52202702368012020 -S1133B381871E288AA4208D22046FFF793FD01468D -S1133B480028EAD0042908BF0221084638BD00002D -S1133B582DE9F041FF2704463D4604262169002942 -S1133B6867D02068FFF7ECFB0646002862D163693A -S1133B781A78002A64D0E52AD97A51D02E2A4FD04F -S1133B8801F03F0008284BD00F283FD102F040062F -S1133B98F1B229B1E5885F7B02F0BF02258401E018 -S1133BA8AA423DD1587BB8423AD119780D2001F088 -S1133BB83F05691EE66941434FF0010E0020234D7D -S1133BC810F805C003EB0C0595F8018013F80C50A8 -S1133BD845EA0825BEF1000F06D0FE2920D826F8AC -S1133BE81150AE46013103E04FF6FF7C654517D10D -S1133BF801300D28E3D11B7803F04005E8B2E0B1A9 -S1133C08FE290DD8002326F8113016E025B91846E8 -S1133C18FFF79FF8874215D04FF6FF73238411E00E -S1133C28FF2520460021FFF71DFD0646002895D0F4 -S1133C3800E03EB10021216104E0013AD5B2F0E789 -S1133C480426F7E73046BDE8F08100BF4E5F000068 -S1133C58012970B504460D4622D9836999421FD2B9 -S1133C68A069854205D220462946FFF78CFB064603 -S1133C7808B9002070BD012812D0431C0ED020467C -S1133C8829460022FFF726FC58B92169481C03D0AD -S1133C984A1C0125226165713546E1E7012070BDA2 -S1133CA8022070BD73B51C4616460B220546FFF765 -S1133CB847F8052C0AD9B21E32F8020F630843EA02 -S1133CC8C434538821188CB2002BF5D1072304F08F -S1133CD80F0000F13002392A88BF00F137020DF8CD -S1133CE80320013B2409F2D102A9C8187E2200F856 -S1133CF8082C9C4204D0295D202901D00134F8E71E -S1133D08072B05D802AAD11811F8080C013300E0D2 -S1133D18202028550134072CF2D97CBD2DE9FF4118 -S1133D288669D0F81C800C220446314601A8FFF7A6 -S1133D3807F89DF80F30DA0722D50020F072012722 -S1133D48E061304601A942463B46FFF7ABFF2046F7 -S1133D580021FFF77DFB054650B92046FFF7FAFC22 -S1133D68054628B90137BFB2642FEAD10725B2E066 -S1133D78042D40F0B0809DF80F10F172C4F81C8037 -S1133D889DF80F2002F00205EBB20BB901270CE0F5 -S1133D98002038F8107017B1471CB8B2F9E700F1E1 -S1133DA819010D2291FBF2F5AFB220460021FFF76D -S1133DB84FFB0546002840F08E800646206821699E -S1133DC8FFF7BEFA0546002840F085806369187835 -S1133DD8E52800D018B90136BE4201D108E02E46C4 -S1133DE820460121FFF73EFC05460028E6D072E094 -S1133DF8013EB6B2002E53D0E18820468A1B91B208 -S1133E08FFF726FB0546002865D1A069FEF7A1FF48 -S1133E18074620682169FFF793FA034605460028F8 -S1133E2859D162690F20F5B2D4F81CE0691ED0722A -S1133E380D204143577313739376D37618464FF680 -S1133E48FF7CDFF89C80634518BF3EF8113010F8FA -S1133E5808C04FEA132802F80C30944418BF013103 -S1133E688CF8018001304FF6FF7C002B08BF6346B5 -S1133E780D28E4D1634502D03EF8113013B946F059 -S1133E884005EDB21570216801220A71204600210F -S1133E98FFF7E8FB0546F0B9013EB6B2002EB8D1EB -S1133EA820682169FFF74CFA0546A0B960692B46DA -S1133EB80021C1540133202BFAD16069A1690B2276 -S1133EC8FEF73EFFA2696069D17A012201F0180366 -S1133ED8037320680271284604B0BDE8F08100BF6E -S1133EE84E5F000048B9064A136803B1187009B157 -S1133EF8002008701160002070470B20704700BF35 -S1133F084C0F00202DE9F0478EB001911646054666 -S1133F18002800F098800023036005A901A802F096 -S1133F281E02FFF703F88046002840F095804C49AC -S1133F3802A80B900C9105A80199FFF7A1FC0A9C13 -S1133F4818B9002C0CBF0620002016F01C0F06F030 -S1133F581F0748D048B1042802D105A8FFF7DEFEA0 -S1133F6847F008070A9C48B175E0E17A11F0110F8F -S1133F7870D106F00403DEB2002E67D107F0080200 -S1133F88D0B200283DD0FDF703FEC0F30726E67340 -S1133F98010C0026030EDDF814902174E6722677CE -S1133FA86677A677E677A073637499F800002146CC -S1133FB8FEF76AFF0122A676E6762675667589F805 -S1133FC804200646E8B148463146D9F830A0FFF740 -S1133FD83FFE00283FD10598013EC6605146FFF7D1 -S1133FE8AFF970B137E0002835D1E37A03F0100255 -S1133FF8D0B200282CD106F00206F6B20EB1D907C9 -S113400828D407F00800C1B209B147F02007059E7B -S11340182146336B2C62EB61AF713078FEF734FFC5 -S11340282861A07FE27F010441EA0263227F607F66 -S11340381343F28843EA00210023E960AB60AB61D3 -S11340482E60AA8008E04FF0090805E0082002E085 -S1134058042000E00720804640460EB0BDE8F08703 -S1134068480D00202DE9F74F9A460023CAF800307E -S1134078044688461746FEF77BFE0546002840F0AE -S1134088A080A179080600F19980C90740F19880B9 -S1134098E068A268861AB74238BF3E46002E00F090 -S11340A89080A168CB0570D1206883785A1E02EAF3 -S11340B8512313F0FF030CD109B9206904E06169A5 -S11340C80193FFF760F9019B01280BD9421C55D0D5 -S11340D86061D4F800B0616958460193FFF747F965 -S11340E8019B20B9A07960F07F03A37166E05FEAC1 -S11340F8562900EB030724D09BF8022009EB0300A0 -S1134108904288BFC3EB020941469BF801003A4636 -S11341185FFA89F3FDF798FBA17980BB01F04001B0 -S1134128CBB25BB1A269D71B4F4507D208EB472036 -S113413804F124014FF40072FEF702FE4FEA492706 -S113414831E0A269BA421FD0A07900F04001CBB295 -S11341585BB104F124019BF801000123FDF7B8FBCE -S1134168A17960B921F04002A271214651F8240BCB -S11341783A4640780123FDF767FB28B1A17961F03D -S11341887F05A57101251CE0A761A7684046F905CC -S1134198CB0DC3F50077BE4238BF3746E11824314A -S11341A83A46FEF7CDFDA068DAF80030C119DA19ED -S11341B8A160B844CAF80020F61B6FE7022500E0A6 -S11341C807252846BDE8FE8F2DE9F74F99460023B9 -S11341D8C9F80030044688461746FEF7C9FD054667 -S11341E8002840F0B780A079010657D400F00201F6 -S11341F8CAB2002A00F0AD80E368DF4228BF002776 -S113420830E05FEA572B00EB0A0674D098780BEB82 -S11342180A01814288BFCAEB000B414658783246EE -S11342285FFA8BF3FDF754FB002873D1A3699E1B37 -S11342385E450BD204F124004FF4007208EB4621CA -S1134248FEF77EFDA27922F04000A0714FEA4B26CA -S1134258A168D9F800208B199019A360B044C9F853 -S11342680000BF1B0FB3A168CA055AD1206890F893 -S113427802A00AF1FF3202EA512313F0FF0A1DD10A -S113428871B9216921B9FFF7A0F90146206161B12B -S11342980129A3790FD163F07F01A171022559E0A7 -S11342A86169FFF792F90146F1E7A068E268904274 -S11342B84AD9E06048E04A1C2DD06161A07900F039 -S11342C84001CAB262B1214651F8243BA269587828 -S11342D80123FDF7FDFAA379E8B923F04000A071A2 -S11342E82268616910460192FFF741F8019B002892 -S11342F887D1A379CFE7A169B14211D0A068E26858 -S113430890420DD2587804F1240132460123FDF776 -S11343189BFA28B1A37963F07F05A571012519E0FB -S1134328A661A668F305D90DC1F500766018B742F1 -S113433838BF3E46243032464146FEF701FDA07997 -S113434840F04002A27183E7A37943F02001A171F0 -S113435800E007252846BDE8FE8F70B50446FEF741 -S113436807FD00284ED1A37903F02002D1B2002919 -S113437848D003F04000C3B26BB1214651F8242B56 -S113438801235078A269FDF7A3FA002839D1A67948 -S113439826F04001A1712068E169FEF7D1FF0646C5 -S11343A8002E2FD1256AE87A40F02003EB72E268E8 -S11343B82A77A189080A6877E389AB77E27BEA77E9 -S11343C821690B0C1A0AC1F30720A9762B756A75A3 -S11343D8E876FDF7DDFBA875030CC0F30721000E92 -S11343E8E97568762B76AE74EE74A2792368012099 -S11343F822F02001A17118712068BDE87040FEF711 -S113440846BF012070BD10B50446FFF7A6FF00B9EA -S1134418206010BDF8B504460D46FEF7A9FC064613 -S1134428002840F09380A279110600F18E80E36899 -S11344389D4205D902F00200C1B2002908BF1D46F9 -S11344480022A368A2600DB900254DE02068877892 -S11344587F026BB1013B691EB1FBF7F1B3FBF7F2C5 -S1134468914205D378420340A360ED1A61690AE0DA -S1134478216939B9FFF7A9F8012801462DD0431C51 -S113448852D0206161610029DED0BD421CD9A379D4 -S1134498206803F00202D3B223B1FFF796F801466D -S11344A818B910E0FEF76FFF0146481C3CD00129FB -S11344B813D92068826991420FD2A3686161D8191F -S11344C8A060ED1BE1E73D46A2685319A360EB0524 -S11344D8BAD02068FEF74BFF20B9A07960F07F02BC -S11344E8A27132E000EB5525A168CB0523D0A2695F -S11344F8954220D0A07900F04003D9B259B12146A1 -S113450851F8240B01234078FDF7E2F9A17960B949 -S113451821F04002A271214651F8243B2A465878DA -S11345280123FDF791F928B1A17961F07F06A671FD -S113453801260BE0A561A168E068814206D9A27949 -S1134548E16042F02003A37100E002263046F8BD82 -S113455830B58FB00EAB43F8340D0D46184605A997 -S11345680022FEF7E3FC044688B90A4902A80B9026 -S11345780C9105A80199FFF783F9044638B90A9AFA -S113458822B105A82946FEF708FC00E006242046C7 -S11345980FB030BD480D002070B598B018AB43F883 -S11345A85C0D184606A90122FEF7C0FC0446002843 -S11345B84DD1284903A80C900D9106A80199FFF73D -S11345C85FF90446002842D10B9E36B1F27A12F004 -S11345D8010F0CBF0024072400E00624069D314681 -S11345E82878FEF751FC0546002C30D1F47A04F003 -S11345F81003D8B2C8B1012D13D90FA806A92422D3 -S1134608FEF79EFB0FA802211195FEF721FF044631 -S1134618E8B90FA8FFF79CFA044620B1042804D08F -S113462815E0022413E0072411E006A8FFF768FA4E -S1134638044660B925B90698FEF729FE044606E043 -S113464806982946FFF704FB04460028F3D02046C1 -S113465818B070BD480D00202DE9F34106460F46F9 -S11346689046054600247B1E9C4211DA01224046EE -S1134678694601ABFFF7F6FC0198012808D19DF8BB -S113468800100D29EFD001340A2905F8011BEAD1DD -S113469800222A70944214BF30461046BDE8FC81BB -S11346A80A2837B504460D4602D10D20FFF7F8FF56 -S11346B802A901F8084D28466946012201ABFFF713 -S11346C883FD0198012814BF4FF0FF3001203EBD3F -S11346D870B505460E460024285D38B13146FFF70B -S11346E8DFFF431C01D00134F6E70446204670BDC1 -S11346F87F2816D931B1FF2812D80A49803831F8F1 -S113470810007047074A8BB232F81120824203D056 -S113471801318029F6D10B4603F18000C0B27047FD -S1134728002070473C6100000023064A32F8131049 -S113473831B1884201D00133F7E7034830F8130058 -S1134748704700BF5C5F00003C62000010B5013A8E -S11347588A1891420CD20C784B7803EB04239BB251 -S1134768181880B2984201D2431C98B20231F0E77B -S113477807D10B781902081880B2884201D2421C6A -S113478890B210BD38B50E4C0822657C237C143DCC -S113479805EB03218DB2401904F11A0180B2FFF729 -S11347A8D5FF04F122012A46FFF7D0FF20B1020AFF -S11347B842EA002398B238BD4FF6FF7038BD00BFF7 -S11347C8CA0F002070B5C478124B0A19D4B2DC7031 -S11347D885780E0A7219D2B29A704578B2425D7021 -S11347E80078187005D20135EDB25D700DB901304D -S11347F81870C9B28C420CDA531C0648DAB28270BB -S11348083AB941784B1CDAB2427012B901784B1CA0 -S1134818037070BD1916002010B5084C01462068B5 -S11348280830FFF7CFFF064A2368117850781972C9 -S11348389178D27858729972DA7210BD500F0020AC -S11348481916002008B5002006491422FFF77EFF38 -S113485820B1030A43EA002080B208BD4FF6FF7076 -S113486808BD00BFD80F00200620FFF78BBF00004B -S1134878064900231A460B80054B01200549187088 -S113488805484A764FF48062028070472A16002051 -S113489828160020540F00201E160020044A054B39 -S11348A8118811B919701080704701201870704769 -S11348B82A16002028160020F8B5834B83491C6863 -S11348C8834B032803F136020A6082490A600AD13D -S11348D8607E00F00F03032B40F0BE84218A002978 -S11348E840F0BA846DE002286FD17B48C278511C2D -S11348F8CBB2C37063B98278511CCBB283703BB915 -S11349084278511CCBB2437013B90278511C017020 -S1134918724B734A002018801080607E072801D0EB -S113492805280AD1A07E431CD9B27829A17640F083 -S113493893840022627600F08FBC002800F08C84F7 -S1134948218A002938D0A27E511EA176002A40F07F -S11349588384E37E082B04D0421E012A09D8052B40 -S113496807D100235F4A80216376117000F0D6FED8 -S113497860E3042B04D8032202FA03F2D1B200E064 -S1134988302100F00F00A1760133411EE376072998 -S113499800F26284DFE811F0800108000A00EC02EA -S11349A86004EC026004EC02002576E14D4B04221D -S11349B81A7000F0B3FE5CE300F00F03032B40F021 -S11349C84B844848082202709DE2987B452840F0B1 -S11349D8438442481E7C5A7C018802EB06268E4298 -S11349E800F33A841A7DB6B29206068040F0348405 -S11349F85B7D002B40F030843B4804880CB9418827 -S1134A0849B1334AD38BA34240F02684118C4088A1 -S1134A18814240F02184FFF715FF4FF6FF72904260 -S1134A28074640F019842A4DEB7D062B1DD0012B37 -S1134A3840F0128495F82210082940F00D84AB8CBC -S1134A484FF6F6720020934285F8220001D9093303 -S1134A5800E008331E49AB84488B234A8B8BC883F8 -S1134A6850880B844C838883DFE3FFF7FDFEB8424C -S1134A7840F0F2831D4B5C7E84B1A98C9A889142E4 -S1134A880CD1688CD988884208D1688B1A889042DE -S1134A9804D1A98B5888814200F01A810C4B93F8F1 -S1134AA82F2002F03F0102292AD19A8C104811467E -S1134AB802801048104B008882421FD1002C74D108 -S1134AC800241C70094C7AE0500F00200C160020BA -S1134AD8CA0F00202C16002010160020C00F00203A -S1134AE8C80F00201816002014160020540F0020A8 -S1134AF8201600202A1600202816002001221A70E9 -S1134B087B4B93F82F1001F00400C2B2002A40F046 -S1134B18A38393F82D207749142528240C8083F83F -S1134B282F5093F8294093F82C5083F8292093F8B0 -S1134B382B20502093F8271083F82E0083F8272081 -S1134B4893F8280093F8262083F828506A4D0134F6 -S1134B582A7093F82A5083F82C0083F82650E5B27B -S1134B6883F82B1083F82A2083F82D5065B9013077 -S1134B78C4B283F82C403CB90131CDB283F82B5030 -S1134B8815B9013283F82A20594B5C4C588C5D8B3B -S1134B982080998C98845A4859849A8B048841882F -S1134BA8DD831A845C83998317E356480122072C12 -S1134BB80CBF044600241A70002C00F04D83524D9B -S1134BC80326A6762676042300262C60484DE37532 -S1134BD8A675E676A18095F8221095F823006B8BCC -S1134BE841EA0022E280A98B484A23806180137835 -S1134BF8517823736173937895F82910D278A37345 -S1134C08E27395F8283095F82720E17295F8261074 -S1134C18012060762082A37262722172FFF7FCFD84 -S1134C2895F82E5005F0F000502835DD2B09384949 -S1134C385A1F95000A783346AB4229DA2C48C11822 -S1134C4891F8362022B3012A01D101331EE0022A49 -S1134C5817D191F83760042E13D12D48264D0270D0 -S1134C6891F8382091F839102B70244D41EA022329 -S1134C7840F20A602B80834228BF03466382A382E2 -S1134C880AE0C01890F8371011B1CB18DBB2D3E79B -S1134C9819491F4D0B702A7010251548144B80F8BC -S1134CA82F5093F82F10042041F00202022583F8B4 -S1134CB837001048062183F82F2083F836500A223B -S1134CC82C2583F8381083F83920058060214AE2BE -S1134CD80D4F95F82F203B600E4902F00407002081 -S1134CE8FFB20870C7B1587620230B70E8E100BF03 -S1134CF8CA0F0020C00F002028160020201600200C -S1134D0814160020540F0020500F00201016002005 -S1134D18301600201816002095F82E30143E190974 -S1134D288800964B361A964904F00F04B6B2022C42 -S1134D3818700E8003D102F03F0012280ED00EB96D -S1134D4894070BD08F49904BCC8C1889844240F03F -S1134D580082098D5B89994240F0FB8102F01002C0 -S1134D68D4B2002C44D0884C218A002940D004F1C4 -S1134D780C00FFF727FD834A844B92F82A001D781C -S1134D88854235D192F82B105878884230D192F860 -S1134D982C609978B1422BD192F82D20DB7893427C -S1134DA826D16073E07E2573A173E373C0B9227EB4 -S1134DB8A37EA17DD01AA0EBD102D3B2DAB25918DE -S1134DC8C9B21006A17501D55C42E2B26E4BD87D1A -S1134DD8A0EB9004A218D0B200EBD101D8751976D3 -S1134DE869486B4B027E012400211C708276018283 -S1134DF8654B674A597E01F00F04601E072800F2CC -S1134E082B82DFE810F008001D008D00600181018D -S1134E189D01A601540111785D4CCA0740F11C821A -S1134E280320002158761982554B40221888227095 -S1134E38002800F0EF8042222270FFF7EDFCE9E041 -S1134E481478E30762D54F4B93F82F2002F03F0004 -S1134E5812285BD193F82E3003F0F002502A36DD85 -S1134E684C491809441F0A78A4000023A3422ADAEB -S1134E784448C11891F836202AB3012A01D10133D4 -S1134E881FE0022A18D191F83750042D14D1414853 -S1134E983A4C027091F8382091F8391023703E4B3F -S1134EA841EA022440F20A60374A1C80844228BF3F -S1134EB80446548294820AE0C01890F8371011B15D -S1134EC8CB18DBB2D2E72D49324C0B7022702E4C32 -S1134ED82C4B032093F8262093F82710607693F838 -S1134EE8280093F8293022726172A072E3720120BB -S1134EF8FFF792FC264942220A70214B274A0020D8 -S1134F0820821880108000F009FC89E0204C2021C0 -S1134F18217000F003FC224B002218684276EFE56A -S1134F28184C94F82F30D8073CD501F01002D0B2B1 -S1134F38002837D11448018A002940F08D81104D8A -S1134F482A88541CA0B2FFF767FC114B2D881878E7 -S1134F5840F01001197015B140F012021A700A4C91 -S1134F6800F0DCFB01230820002123826076E1762F -S1134F781122044D85F82F20F0E000BF28160020E8 -S1134F88C00F0020CA0F0020540F0020191600205B -S1134F98181600203016002020160020C80F002004 -S1134FA8500F002003F02004E3B273B1A04AA14BD0 -S1134FB892F8340092F8354044EA002218688418BC -S1134FC81C609D4B1888821A1A809B4C208850B10B -S1134FD801F01001CBB233B9984C227842F00201A7 -S1134FE82170FFF719FC924890F8304090F831305E -S1134FF8934803EB0422818A94B2924B8C421C801E -S113500800D804B919808D4C1A88237842829A07EB -S113501800F022818C480024048000F07FFB884C37 -S1135028864B894A1B7803F02001C9B221B10023B9 -S11350381380637614229CE703F01000C0B230B1E9 -S113504801250420118025826076E17690E7118895 -S113505869B1DB0748BF2082228A7B4B32B9608A58 -S1135068814288BF18801988218200E01A800022B2 -S1135078E276764B744A18686E491388086033B12F -S1135088208A20B16C4B2830188018220BE06B4919 -S11350980A7802F00203D8B2002800F0DD806648DE -S11350A8282505801022624981F82F2059E01178BB -S11350B8CA0740F1D18000245C76604B1020187038 -S11350C800F02CFBC8E05C48008808B1FFF7A4FB9B -S11350D8574B5A4993F82F20087812F001040CD042 -S11350E810F0010F564D05D0002207236B76AA76DF -S11350F82A8218E006246C7615E0C0071CD55048AF -S1135108052141760482A7E04B48008808B1FFF7DF -S113511883FB474B93F82F20D1070DD5484D072122 -S113512800246976AC760120FFF776FB434910200A -S1135138087000F0F3FA0CE03F4B1A884AB98BE088 -S11351481278D20740F188800721002459769C768A -S113515882E0374910253A4C81F82F50364B2820E5 -S11351681880334B502183F82E10227A304D85F85D -S11351782A20607A85F82B00A17A85F82C10E37A26 -S113518885F82D30227B85F82620607B062285F859 -S11351982700A17B85F82810E37BEA7585F8293078 -S11351A8A0882B4B6884E188A98418885988688367 -S11351B8A9832388EB8360882884647E04F0100123 -S11351C8CBB22BB1002085F8310085F8300004E01B -S11351D885F830200A2285F831201749144C0B88A9 -S11351E840251A0AA57500252274637484F835507D -S11351F884F8345084F8325084F83350FFF734FB81 -S1135208144AC043608613884521581CA17381B28F -S113521811800A0AE57365752575A274E17425760B -S11352286576FFF70FFBC3432383002218E000BF12 -S1135238CA0F00200C160020C00F002018160020EA -S1135248540F002020160020C80F00202C16002020 -S113525814160020C20F0020034900231A460B80AD -S113526802480270F8BD00BFC00F002018160020C5 -S1135278030A43EA002080B2704700000A1E03466E -S113528809DD0548054900680A80834203D01946A8 -S113529892B200F087BA70472C160020C80F00207D -S11352A838B52C4B988BDD8B0023072B11D80C2297 -S11352B85A4329498C18895A41B1628832B18842C3 -S11352C804D1954202D12548037039E00133DBB299 -S11352D8EBE70023072B0DD80C2058431E490A5A24 -S11352E80C1822B9618811B91C48037023E00133F2 -S11352F8DBB2EFE7194A082B13701CD118480023B6 -S1135308057819461A46072A13480BD80C2404FBB7 -S11353180200847A281B9842C4BFC3B211460132E2 -S1135328D2B2F0E70F4C0D4A23700C2404FB01049D -S11353380D4B1170197020460C49042200F032FA02 -S11353480B490622201D00F02DFA05490A78A2729D -S113535838BD00BFCA0F00203416002031160020C3 -S1135368951600203216002094160020E60F00201F -S1135378E00F002008B5124B00211A78501C187051 -S1135388104801700F490B78072B17D80C2043439A -S11353980D4AD0184188D35A41EA030291B249B15F -S11353A8074B817A1A78531A772B03DD00210422DC -S11353B800F006FA03480278511CE2E708BD00BF72 -S11353C8951600203116002034160020F8B52A4D11 -S11353D82B88292B4FF000033DD9284C1F46A08A5F -S11353E82B80B0F5807F03D0B0F5007F42D134E044 -S11353F8234EE18C328891423CD1208D73889842A7 -S113540838D1FFF74DFF02216175062204F1160118 -S113541804F12000277500F0C5F91A49062204F1A1 -S1135428160000F0BFF917490622A01D00F0BAF9CA -S113543804F120010622204600F0B4F9A28BE08B87 -S113544833887188E284208508220620A383E183B7 -S1135458227360732A232B80F8BD094BE18C1A88C8 -S1135468914207D1208D5B88984203D1BDE8F8406A -S1135478FFF716BFF8BD00BFC00F0020CA0F0020F9 -S11354881416002022160020434838B5C38B4FF663 -S1135498FF72934204D1028C9A4201D13F4968E0D9 -S11354A83F4C404A258810885D40054207D13A4D53 -S11354B86488288C528880EA0405154206D03A4D3F -S11354C83A4B28886A8818805A8002E0374C23802F -S11354D86080364C002520886488072D0CD80C235E -S11354E86B43334AD118D25A824202D14B88A34221 -S11354F83BD00135EDB2F0E72E4B082D1D7036D1A7 -S1135508254CFF212046062200F05AF904F1200018 -S11355180021062200F054F9A01D2749062200F0B4 -S113552841F904F116002449062200F03BF91F4909 -S11355381B4B08884A88E0841988588800232375F7 -S1135548A37363742285A183E083062101220420C6 -S11355581A4B61736275E2732574A174E074257340 -S113556836341C602A21164813E0124805700A488C -S11355780431062200F016F90F490622114800F0FA -S113558811F90549082200230D480A734B73018851 -S11355980E31018038BD00BFCA0F00201C64000012 -S11355A814160020BC0F0020C40F002096160020FB -S11355B83416002031160020221600200C16002074 -S11355C8C00F0020D00F002008B5FCF7E5FAFCF75F -S11355D829FE134B00F5FA701860FCF723FE114AF4 -S11355E800F51C5110311160FFF742F90E484FF6CF -S11355F8A96243F61373028043800C484FF6FF7187 -S11356080023018043800A48028040F2131242803A -S11356184EF60300FFF742F9BDE80840FCF7C8BAA4 -S1135628A01600209C16002014160020BC0F002091 -S1135638C40F002038B50C4B1C680023E2692262B1 -S11356489AB28A4205D2C55CE21882F82450013322 -S1135658F6E70431A4F8641004F12000FFF70EFE05 -S1135668E069411CE16138BD500F002070B5FCF7BA -S113567825FB00B3234C244D20804FF40060AE89F1 -S1135688FFF7F6FD864207D10120FFF715F92088B8 -S113569888B1FFF7F9FE0AE040F60600AD89FFF786 -S11356A8E7FD854207D1FFF791FE23881BB1FCF77C -S11356B81FFB00212180FCF7B5FD144B1A689042AA -S11356C811D302F5FA74124812491C600D4C086093 -S11356D80220FFF7F1F823882BB1FFF7D5FEFCF77A -S11356E807FB00222280FCF79DFD0B490B689842BA -S11356F805D303F51C5010300860FFF73BFE00206B -S113570870BD00BFC00F0020CA0F0020A0160020E3 -S1135718540F0020500F00209C16002010B5174B82 -S113572817481C68037803F04002D0B228B101235B -S11357380022E361A4F8642010BDD90703F0040132 -S1135748CBB248BFA4F8640033B1B4F8641019B1FB -S113575804F12000FFF792FD094A107800F00201D5 -S1135768CBB24BB1074800220168A4F86420081D95 -S1135778BDE81040FCF7D4BE10BD00BF500F002098 -S1135788181600200C160020303809288CBF002079 -S113579801207047A0F16103D9B2192998BF2038B4 -S11357A8704700004FF00003002A07D011F803C027 -S11357B800F803C003F10103013AF7D1704700BFB1 -S11357C80346002A00F0048003F8011B013AFBD1C8 -S10757D8704700BF53 -S11357DC40420F0000201C0080841E000080250025 -S11357EC999E36000040380000093D0000803E00C0 -S11357FC00004B00404B4C0000204E00808D5B00A1 -S113580C00C05D000080700000127A0000007D0072 -S113581C80969800001BB7000080BB00C0E8CE0047 -S113582C647ADA000024F4000000FA0080A8120163 -S113583C002D310100366E0140787D01433A2F571B -S113584C6F726B2F736F6674776172652F4F70650F -S113585C6E424C542F5461726765742F44656D6F9E -S113586C2F41524D434D335F4C4D33535F454B5F8A -S113587C4C4D3353363936355F43726F7373776FD0 -S113588C726B732F426F6F742F6964652F2E2E2FDA -S113589C6C69622F6472697665726C69622F7379B4 -S11358AC7363746C2E63000000E10F4004E10F403D -S11358BC08E10F4040E00F4044E00F4048E00F4047 -S11358CC433A2F576F726B2F736F667477617265DF -S11358DC2F4F70656E424C542F5461726765742F50 -S11358EC44656D6F2F41524D434D335F4C4D3353D3 -S11358FC5F454B5F4C4D3353363936355F43726FCE -S113590C7373776F726B732F426F6F742F69646547 -S113591C2F2E2E2F6C69622F6472697665726C69F6 -S113592C622F6770696F2E6300433A2F576F726B47 -S113593C2F736F6674776172652F4F70656E424C6E -S113594C542F5461726765742F44656D6F2F4152E7 -S113595C4D434D335F4C4D33535F454B5F4C4D338F -S113596C53363936355F43726F7373776F726B735B -S113597C2F426F6F742F6964652F2E2E2F6C696202 -S113598C2F6472697665726C69622F666C617368D8 -S113599C6C69622E6300433A2F576F726B2F736FCF -S11359AC6674776172652F4F70656E424C542F5438 -S11359BC61726765742F44656D6F2F41524D434D71 -S11359CC335F4C4D33535F454B5F4C4D335336393A -S11359DC36355F43726F7373776F726B732F426FCD -S11359EC6F742F6964652F2E2E2F6C69622F64726D -S11359FC697665726C69622F756172746C69622E5A -S1135A0C6300433A2F576F726B2F736F6674776111 -S1135A1C72652F4F70656E424C542F5461726765DA -S1135A2C742F44656D6F2F41524D434D335F4C4D74 -S1135A3C33535F454B5F4C4D3353363936355F43E7 -S1135A4C726F7373776F726B732F426F6F742F69EE -S1135A5C64652F2E2E2F6C69622F647269766572C1 -S1135A6C6C69622F7373692E6300433A2F576F72FC -S1135A7C6B2F736F6674776172652F4F70656E420E -S1135A8C4C542F5461726765742F44656D6F2F41AC -S1135A9C524D434D335F4C4D33535F454B5F4C4D2F -S1135AAC3353363936355F43726F7373776F726B5A -S1135ABC732F426F6F742F6964652F2E2E2F6C69B0 -S1135ACC622F6472697665726C69622F657468659D -S1135ADC726E65742E63002F64656D6F70726F67E0 -S1135AEC5F656B5F6C6D3373363936352E73726547 -S1135AFC63002F626F6F746C6F672E74787400433D -S1135B0C3A2F576F726B2F736F6674776172652FB0 -S1135B1C4F70656E424C542F5461726765742F44F8 -S1135B2C656D6F2F41524D434D335F4C4D33535F75 -S1135B3C454B5F4C4D3353363936355F43726F7377 -S1135B4C73776F726B732F426F6F742F6964652F49 -S1135B5C2E2E2F2E2E2F2E2E2F2E2E2F536F757260 -S1135B6C63652F41524D434D335F4C4D33532F439B -S1135B7C726F7373776F726B732F766563746F7256 -S1135B8C732E63000080000000200000040000005D -S1135B9C00A00000002000000500000000C0000070 -S1135BAC002000000600000000E0000000200000BF -S1135BBC07000000000001000020000008000000A5 -S1135BCC002001000020000009000000004001003A -S1135BDC002000000A00000000600100002000000A -S1135BEC0B00000000800100002000000C000000ED -S1135BFC00A00100002000000D00000000C0010006 -S1135C0C002000000E00000000E001000020000055 -S1135C1C0F000000000002000080000010000000D3 -S1135C2C008002000080000011000000000003004E -S1135C3C00800000120000000080030000800000BF -S1135C4C13000000433A2F576F726B2F736F6674F7 -S1135C5C776172652F4F70656E424C542F5461728C -S1135C6C6765742F44656D6F2F41524D434D335FFF -S1135C7C4C4D33535F454B5F4C4D335336393635AE -S1135C8C5F43726F7373776F726B732F426F6F74A2 -S1135C9C2F6964652F2E2E2F2E2E2F2E2E2F2E2E67 -S1135CAC2F536F757263652F41524D434D335F4CC7 -S1135CBC4D33532F756172742E63004F70656E42B1 -S1135CCC4C5400433A2F576F726B2F736F66747773 -S1135CDC6172652F4F70656E424C542F546172671C -S1135CEC65742F44656D6F2F41524D434D335F4C9A -S1135CFC4D33535F454B5F4C4D3353363936355F1B -S1135D0C43726F7373776F726B732F426F6F742F51 -S1135D1C6964652F2E2E2F2E2E2F2E2E2F2E2E2FE6 -S1135D2C536F757263652F66696C652E63004669E3 -S1135D3C726D77617265207570646174652072652B -S1135D4C71756573742064657465637465640A0D98 -S1135D5C004F70656E696E67206669726D7761724B -S1135D6C652066696C6520666F7220726561646972 -S1135D7C6E672E2E2E004F4B0A0D005374617274F5 -S1135D8C696E67207468652070726F6772616D6DDF -S1135D9C696E672073657175656E63650A0D0050D5 -S1135DAC617273696E67206669726D7761726520C2 -S1135DBC66696C6520746F206F627461696E20650E -S1135DCC726173652073697A652E2E2E004572619B -S1135DDC73696E6720002062797465732066726F34 -S1135DEC6D206D656D6F727920617420307800526E -S1135DFC656164696E67206C696E652066726F6D8F -S1135E0C2066696C652E2E2E4552524F520A0D0097 -S1135E1C496E76616C696420636865636B73756D38 -S1135E2C20666F756E642E2E2E4552524F520A0DFB -S1135E3C0050726F6772616D6D696E67200020622D -S1135E4C7974657320746F206D656D6F7279206140 -S1135E5C742030780057726974696E672070726FA1 -S1135E6C6772616D20636865636B73756D2E2E2E7E -S1135E7C00436C6F73696E67206669726D7761722B -S1135E8C652066696C650A0D004669726D776172EE -S1135E9C65207570646174652073756363657373D1 -S1135EAC66756C6C7920636F6D706C657465640ACF -S1135EBC0D00222A3A3C3E3F7C7F002B2C3B3D5B61 -S1135ECC5D00809A90418E418F80454545494949F2 -S1135EDC8E8F9092924F994F555559999A9B9C9DA0 -S1135EEC9E9F41494F55A5A5A6A7A8A9AAABAC212D -S1135EFCAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBD3A -S1135F0CBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCD29 -S1135F1CCECFD0D1D2D3D4D5D6D7D8D9DADBDCDD19 -S1135F2CDEDFE0E1E2E3E4E5E6E7E8E9EAEBECED09 -S1135F3CEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDF9 -S1135F4CFEFF01030507090E10121416181C1E007F -S1135F5C610062006300640065006600670068000D -S1135F6C69006A006B006C006D006E006F007000BD -S1135F7C710072007300740075007600770078006D -S1135F8C79007A00A100A200A300A500AC00AF0028 -S1135F9CE000E100E200E300E400E500E600E700D5 -S1135FACE800E900EA00EB00EC00ED00EE00EF0085 -S1135FBCF000F100F200F300F400F500F600F80034 -S1135FCCF900FA00FB00FC00FD00FE00FF000101DB -S1135FDC03010501070109010B010D010F01110159 -S1135FEC13011501170119011B011D011F012101C9 -S1135FFC23012501270129012B012D012F01310139 -S113600C3301350137013A013C013E0140014201A3 -S113601C4401460148014B014D014F01510153010B -S113602C5501570159015B015D015F016101630178 -S113603C6501670169016B016D016F0171017301E8 -S113604C750177017A017C017E019201B103B203DF -S113605CB303B403B503B603B703B803B903BA0364 -S113606CBB03BC03BD03BE03BF03C003C103C30313 -S113607CC403C503C603C703C803C903CA03300456 -S113608C310432043304340435043604370438043C -S113609C39043A043B043C043D043E043F044004EC -S11360AC410442044304440445044604470448049C -S11360BC49044A044B044C044D044E044F0451044B -S11360CC52045304540455045604570458045904F4 -S11360DC5A045B045C045E045F0470217121722118 -S11360EC73217421752176217721782179217A21E4 -S11360FC7B217C217D217E217F2141FF42FF43FFB7 -S113610C44FF45FF46FF47FF48FF49FF4AFF4BFF4B -S113611C4CFF4DFF4EFF4FFF50FF51FF52FF53FFFB -S113612C54FF55FF56FF57FF58FF59FF5AFF000005 -S113613CC700FC00E900E200E400E000E500E70031 -S113614CEA00EB00E800EF00EE00EC00C400C50030 -S113615CC900E600C600F400F600F200FB00F900EA -S113616CFF00D600DC00A200A300A500A72092012A -S113617CE100ED00F300FA00F100D100AA00BA002E -S113618CBF001023AC00BD00BC00A100AB00BB00E1 -S113619C91259225932502252425612562255625D2 -S11361AC55256325512557255D255C255B25102533 -S11361BC142534252C251C2500253C255E255F251E -S11361CC5A25542569256625602550256C25672597 -S11361DC68256425652559255825522553256B2595 -S11361EC6A2518250C25882584258C259025802541 -S11361FCB103DF009303C003A303C303B500C403BB -S113620CA6039803A903B4031E22C603B5032922CB -S113621C6122B1006522642220232123F700482245 -S113622CB0001922B7001A227F20B200A025A000CA -S113623C410042004300440045004600470048002A -S113624C49004A004B004C004D004E004F005000DA -S113625C510052005300540055005600570058008A -S113626C59005A002100E0FFE1FFE5FFE2FFE3FFE4 -S113627CC000C100C200C300C400C500C600C700F2 -S113628CC800C900CA00CB00CC00CD00CE00CF00A2 -S113629CD000D100D200D300D400D500D600D80051 -S11362ACD900DA00DB00DC00DD00DE00780100013F -S11362BC02010401060108010A010C010E0110017E -S11362CC12011401160118011A011C011E012001EE -S11362DC22012401260128012A012C012E0130015E -S11362EC32013401360139013B013D013F014101C9 -S11362FC4301450147014A014C014E015001520131 -S113630C5401560158015A015C015E01600162019D -S113631C6401660168016A016C016E01700172010D -S113632C7401760179017B017D0191019103920342 -S113633C93039403950396039703980399039A0381 -S113634C9B039C039D039E039F03A003A103A30330 -S113635CA403A503A603A703A803A903AA03100473 -S113636C1104120413041404150416041704180459 -S113637C19041A041B041C041D041E041F04200409 -S113638C21042204230424042504260427042804B9 -S113639C29042A042B042C042D042E042F04010498 -S11363AC0204030404040504060407040804090491 -S11363BC0A040B040C040E040F04602161216221F5 -S11363CC63216421652166216721682169216A2181 -S11363DC6B216C216D216E216F2121FF22FF23FF84 -S11363EC24FF25FF26FF27FF28FF29FF2AFF2BFF69 -S11363FC2CFF2DFF2EFF2FFF30FF31FF32FF33FF19 -S113640C34FF35FF36FF37FF38FF39FF3AFF000002 -S109641CFFFFFFFFFFFF7C -S105642401046D +S1131D3800E0002009B000BDF35A000000487047D5 +S1131D48F35A000010B5074C0023204606490A221E +S1131D5884F8243202F0DEF810B9012084F8240251 +S1131D6810BD00BF080000200E5B000010B50C4831 +S1131D7890F82432012B01D102F04DFB00F05AFAFD +S1131D8800F164040748FFF7C5F8012803D100F0FF +S1131D9851FAA042F6D90448BDE8104002F004BC48 +S1131DA80800002000C00040F35A0000034890F8DF +S1131DB82432012B01D102F02EBB70470800002009 +S1131DC838B50F4C054694F82432012B0AD1214624 +S1131DD802F086FC002805DA002084F82402204654 +S1131DE802F019FB6C1E14F8011F41B10548FFF7F6 +S1131DF87BF80448FFF752F80028FAD0F3E738BD17 +S1131E080800002000C0004008B50848FEF7ACFBF5 +S1131E180748FEF773FB4FF040200321FEF7A2FEAC +S1131E2800F0E2FA00F0EFFAFCE700BF8003C0011B +S1131E38010000200148382100F096BA1B5B00001D +S1131E4808B500F0C6F978B100F018FB00F0DEF927 +S1131E5800F0C1F9054B20F0604020F07F011960C3 +S1131E6800F0B9F94268904708BD00BF08ED00E0EA +S1131E78F8B505460E4617460024A3B29F4205D07E +S1131E88A05D605500F02BFB0134F6E7F8BD0000B7 +S1131E9870B500240646254600F021FB094BE2589C +S1131EA8964209D3191948681218964204D20C218B +S1131EB801FB0535287A70BD0C340135C02CEBD1F3 +S1131EC8FF2070BDA05B00002DE9F34105460068C2 +S1131ED8FFF7DEFFFF2801D100201AE000242B19A8 +S1131EE858682F6802AE46F8040D04EB070800F0A2 +S1131EF8F6FA304641460422FEF776FE0028EBD176 +S1131F08E25901998A42E7D10434B4F5007FE6D155 +S1131F180120BDE8FC81000038B5104B0446984206 +S1131F280D4606D0B1F5004F05D0FFF7CDFF18B91F +S1131F3810E00B4C00E01C46EB050BD12068A842CE +S1131F4809D0204640F8045B29464FF40072FFF795 +S1131F588FFF00E00024204638BD00BF3002002077 +S1131F68340400202DE9F8439946036821F4FF75E9 +S1131F78013304460E46904625F0010506D140F883 +S1131F88045B29464FF40072FFF772FF2068A842E9 +S1131F9808D020462946FFF7BFFF044610B90020A1 +S1131FA8BDE8F88321684746761AA219161D00F081 +S1131FB896FA231DF01AB0F5007F08D3204605F5DC +S1131FC80071FFF7A9FF04460028E8D0061D17F89A +S1131FD8011B08EB0902974206F8011BE7D101200F +S1131FE8BDE8F883034A04484FF0FF3313600360E5 +S1131FF8704700BF340400203002002070B5044646 +S11320080D461646FFF744FFFF2815D0601E4019F9 +S1132018FFF73EFFFF280FD024F4FF7323F00101DC +S1132028B1F5004F0CBF05480548214632462B46FA +S1132038BDE87040FFF796BF002070BD3002002055 +S113204834040020F8B505460E46FFF721FF044680 +S1132058681E8019FFF71CFFFF2C05464DD0FF288A +S11320684BD0844249D8032C47D9132845D8002695 +S113207800F035FA224B0C2202FB06310F7AA742F4 +S113208801D10C6804E00136102EF1D14FF0FF3471 +S1132098002700F024FA1A4A0C2000FB0723197AB7 +S11320A8A94201D11F6804E00137102FF1D14FF084 +S11320B8FF37002600F013FA114A0C2000FB062310 +S11320C8197AA94201D15D6803E00136102EF1D1D5 +S11320D800253F1B7819C0F38F270025BD420AD27B +S11320E800F0FDF92046FEF757FD04F5806420B999 +S11320F86A1C95B2F2E70120F8BD0020F8BD00BFC4 +S1132108A05B00000E4B07B51A68013216D0586858 +S11321189968DA680918881819695A694018811879 +S11321289869DB690A18D118484202AA42F8040DD2 +S1132138042148F2F000FFF761FF00E001200EBD22 +S11321483002002048F204034FF400410A6818687A +S113215848F2080319688018421848F20C0003680A +S1132168D11848F21002106848F214031A680918C2 +S1132178881848F218010B68C21848F2F000016880 +S11321885318D3F1010038BF002070470A4808B536 +S11321980368013305D1094801684B1C06D10120A5 +S11321A808BDFFF791FE0028F5D108BDFFF78CFEA6 +S11321B8003018BF012008BD30020020340400207C +S11321C84FF400407047FFF70DBFFFF717BFFFF745 +S11321D839BFFFF7B7BFFFF7F3BF08B5FFF792FFA3 +S11321E818B1BDE80840FFF7D1BF08BD054B002270 +S11321F84CF24F3105201A6059609A601860024BFE +S11322081A60704710E000E038060020014B0022F5 +S11322181A60704710E000E0044B1868C30303D544 +S113222803490A68531C0B60704700BF10E000E0C4 +S11322383806002008B5FFF7EFFF014B186808BD02 +S11322483806002010B50748FEF758F9FEF73CFA9F +S1132258014605484FF461426023BDE81040FEF78B +S1132268B5BD00BF0100001000C00040402970B592 +S113227806460D4603D916485B2100F075F8154843 +S11322882946FEF731FE30B11248FEF707FE30B991 +S113229800F025F9F8E70E485F2100F065F80024FE +S11322A8A3B2AB4213D200F01AF90A48315DFEF723 +S11322B81BFE30B10748FEF7F1FD30B900F00FF905 +S11322C8F8E70348682100F04FF80134E8E770BDE7 +S11322D8605C000000C00040F8B51E4C0646257836 +S11322E8A5B91D48FEF7ECFD421C01D10020F8BD3C +S11322F81A4AC0B210700028F8D0FFF79BFF184B99 +S11323081849186001200D702070EFE7154D124828 +S11323182F78FEF7D5FD0137431C10D00F49C85557 +S11323282878421CD3B20A782B709A42DED1304600 +S11323380131FFF79DFD002121700120F8BDFFF751 +S113234879FF074B196864318842CFD9002020707F +S1132358F8BD00BF7E06002000C000403C060020F7 +S1132368800600207D06002008B5034B186003484A +S1132378016000F0B4F8FCE7840600208806002019 +S113238810B500F0A9F8012818D000F051FAA8B146 +S11323980B4C2378012B11D1FFF74CFF09490A682C +S11323A802F51C531033834208D80020207000F033 +S11323B849FA18B9BDE81040FFF742BD10BD00BF87 +S11323C88C0600209006002008B5054B01221A70DF +S11323D8FFF730FF03490860BDE80840FFF7D0BFA6 +S11323E88C0600209006002008B500F077F8FFF767 +S11323F8FDFEFFF7E8FE00F005FA00F011F8BDE86D +S11324080840FFF7E1BF08B500F069F8FFF704FFDB +S113241800F002FB00F014F8BDE80840FFF7B0BF75 +S113242810B5064C00F066F8FFF70CFF0023237084 +S113243803F0D2F80320207010BD00BF0100002073 +S113244808B50C48FFF748FF012805D10A4B0022BC +S113245808481A7000F06CF8064803F00FF90128D0 +S113246807D10549032008700248BDE8084000F078 +S11324785FB808BD940600200100002070470000E2 +S11324880A4B70B51A7806460C461D4612B9C9B2ED +S1132498FFF7ECFE2878032803D13046E1B203F0B5 +S11324A8D1F8BDE8704000F03BB800BF010000203F +S11324B8034B1878411E01298CBF40200020704727 +S11324C801000020034B1878411E01298CBF4020CD +S11324D8002070470100002000F01AB870477047C8 +S11324E8034BFE2218710220DA70A3F844007047E7 +S11324F8D4060020054B00221A709A6483F84320FE +S1132508A3F844209A705A70704700BFD40600207C +S1132518024B1878003018BF01207047D4060020F9 +S1132528024B002283F84320704700BFD4060020E2 +S1132538F8B506780546FF2E824C19D100F078F9D3 +S113254808B91020E4E000230125102063706371AA +S11325582570E6702071FFF7ABFFA071FFF7B2FF9B +S1132568E071FFF7AFFF010A21726572A57281E07D +S11325782778012F40F0E480F32E57D01FD8CF2EB0 +S113258800F0BC8006D8C92E00F08580CC2E40F01F +S1132598BE80BAE0D12E00F0AB80C0F08E80D22E7F +S11325A840F0B5800025FF21E17025716571FFF7C2 +S11325B87FFFE571A07125726572072229E0FA2E62 +S11325C84DD00AD8F52E11D026D3F62E40F09F8090 +S11325D8FF21E1704268A26494E0FD2E4CD0FE2EE7 +S11325E855D0FC2E40F09380002091E0FFF760FF67 +S11325F86A78904201DC22208AE0A16C201DFFF752 +S113260837FCFF20E070A26C69788B18A3646878A3 +S1132618421CA4F844207DE0FFF74AFF6B789842F7 +S1132628E9DD6968201DA1646A78E8E7FF22E270A1 +S1132638A36C446800221C19A34204D013F8010BAC +S11326481118CAB2F8E73F4B0021C3F8072001204C +S11326580822187159719971A3F844205AE03A4B29 +S11326680020FF220721E270A36420716071A07129 +S1132678C4F807100822CCE761780020FF23E37030 +S113268820716171A071E07120720622C1E70021F6 +S11326982170617034E0A66CFFF70AFF6A1C411EC2 +S11326A83046FFF792FD80B3FF23A56CE370FFF774 +S11326B8FFFE013D2818A06424E0FFF7F9FE6B78BB +S11326C80138984297DDFF21E170A4F844706978D5 +S11326D819B9FFF782FDE8B917E01A4CAA1CA06CD7 +S11326E8FFF773FD88B16A78A06C1318A36411E02E +S11326F8A06C6968FFF76BFD10B906E0FFF7A0FB53 +S1132708FF22E270A4F8447004E0312000E02020A5 +S1132718FFF7E6FE0B4C94F84320012A02D110205F +S1132728FFF7DEFEB4F8441006480BB2002B07DDB1 +S1132738012280F843200330BDE8F840FFF7A0BE2B +S1132748F8BD00BFD4060020D75C000070B5002592 +S113275806462C46705D03F025F8C0B2A0F130039C +S1132768DAB2162A10D8A0F13A0106290CD9092A96 +S113277884BFA0F13702D2B2013502EB0414022D52 +S113278804F0FF0401D0E5E70024204670BD0000F2 +S113279810B503460B4819460A24B1FBF4F1024666 +S11327A801300029F8D102F801190A24B3FBF4F125 +S11327B804FB11333033104602F801390B46002963 +S11327C8F3D110BD2107002038B50309092B0546AC +S11327D80C46184601D9373003E0303002F0E2FFE6 +S11327E8C0B2207005F00F00092801D9373003E082 +S11327F8303002F0D7FFC0B260700020A0702046CD +S113280838BD000008B5074B00200749187001F0CF +S113281871FB28B105487721BDE80840FFF7A4BD3E +S113282808BD00BF600700206C070020DF5C0000C3 +S1132838034B1878D0F1010038BF0020704700BF5F +S11328486007002010B5FFF747FE012801D10020DA +S113285810BD054C2378002BF9D1FFF755FA012850 +S1132868F5D1207010BD00BF6007002010B50446E4 +S1132878007802F097FF532801D0032010BD607838 +S113288802F08AFF0028F8D06078312806D0322870 +S113289806D0332814BF0320022010BD002010BD29 +S11328A8012010BDF8B505460230FFF74FFF043587 +S11328B80446074600262846FFF748FF013EB6B2FD +S11328C8BB1999B2201802350129C4B2F3D8284695 +S11328D8FFF73CFFE243D4B2231A58425841F8BDEB +S11328E82DE9F041044616460D4601B120B9494880 +S11328F840F23121FFF738FD2046FFF7B7FF0328E0 +S1132908074600F082802046FFF7CCFF002879D0E4 +S1132918012F23D002D3022F77D146E0A01CFFF762 +S113292815FF8046201DFFF711FF07022F60A01D29 +S1132938FFF70CFF38182860A8F103050834ADB276 +S1132948002E63D0002729B28F425FDA2046FFF7B2 +S1132958FDFEF05501370234BFB2F4E7A01CFFF7BF +S1132968F5FE8046201DFFF7F1FE07042F60A01D29 +S1132978FFF7ECFE07EB00272F6004F10800FFF7D0 +S1132988E5FEA8F104023B182B600A3495B2002E28 +S11329983CD0002728B2874238DA2046FFF7D6FE13 +S11329A8791CF05502348FB2F4E7A01CFFF7CEFE71 +S11329B88046201DFFF7CAFE07062F60A01DFFF7FB +S11329C8C5FE07EB00472F6004F10800FFF7BEFEC1 +S11329D807EB00272F6004F10A00FFF7B7FEA8F100 +S11329E80501381828600C348DB27EB100272BB24B +S11329F89F420BDA2046FFF7A9FE7A1CF0550234F1 +S1132A0897B2F4E74FF6FF7500E0002528B2BDE859 +S1132A18F08100BFDF5C00002DE9F041A54E357858 +S1132A28002D00F08B81012D26D1FFF78BF9A248E8 +S1132A38FFF7C6F9A148FFF7C3F9FFF77FF92A465C +S1132A4801469F4801F066FA044638B19D48FFF7ED +S1132A58B7F92846BDE8F041FFF7A8B99A48FFF747 +S1132A68AFF99A48FFF7ACF99948FFF7A9F99948DB +S1132A78022304604460BCE0022D40F08D80964F30 +S1132A88964C4FF48071204607F50D7201F0ECFD69 +S1132A9897F93A12002901DA8A48A0E0F0B1002235 +S1132AA8204604F5C071FFF71BFF421C04D185487A +S1132AB8FFF786F9032095E000280FDD854D696846 +S1132AC821B9D4F880116860296007E0D4F880310E +S1132AD82C684018A34238BF2B6068607E4DD5F837 +S1132AE83C22D5F840329A4240F0288105F50D7011 +S1132AF8002101F097FC70B17248FFF761F90420D6 +S1132B08FFF754F905F50D7001F085FC694A0021B9 +S1132B181170BDE8F0816F4C6B48FFF751F97048AC +S1132B28FFF74EF96068FFF733FE6E48FFF748F980 +S1132B386D48FFF745F9E0786A49FFF745FEA07844 +S1132B486A49FFF741FE60786949FFF73DFE694924 +S1132B582078FFF739FE6348FFF732F96648FFF734 +S1132B682FF994E80300FFF732FB524C064660B98C +S1132B785448FFF725F90520FFF718F905F50D70F6 +S1132B8801F049FC2670BDE8F0814F48FFF718F9B9 +S1132B9803202070BDE8F081032D40F0CF804E4F14 +S1132BA84E4C4FF48071204607F50D7201F05CFD20 +S1132BB897F93A32002B04DA5048FFF701F902205A +S1132BC810E0002859D0204604F5C07104F580723D +S1132BD8FFF786FEB0F1FF3F80460DD14848FFF766 +S1132BE8EFF82846FFF7E2F807F50D7001F013FC3B +S1132BF800233370BDE8F08100283EDD4148FFF72B +S1132C08DFF84046FFF7C4FD3648FFF7D9F83E48D9 +S1132C18FFF7D6F894F883013249FFF7D5FD94F805 +S1132C2882013249FFF7D0FD94F881013049FFF75A +S1132C38CBFD304994F88001FFF7C6FD2948FFF71A +S1132C48BFF82D48FFF7BCF8D4F8800104F580726A +S1132C584146FFF7BAFA044660B91A48FFF7B0F8D4 +S1132C680620FFF7A3F807F50D7001F0D4FB3470C4 +S1132C78BDE8F0811448FFF7A3F8174CD4F83C22B8 +S1132C88D4F84002824259D12048FFF799F8FFF757 +S1132C98A4FA054600283BD10A48FFF791F8072013 +S1132CA8FFF784F804F50D7001F0B5FB014A1570BF +S1132CB8BDE8F081600700204A5D00006D5D0000FA +S1132CC8A0090020455E0000925D0000975D0000A9 +S1132CD8BB5D0000640700206C070020C40B0020C3 +S1132CE8E95D000020070020F25D000022070020B3 +S1132CF82407002026070020E55D00000B5E000085 +S1132D082C5E00004D5E00005A5E0000715E0000FB +S1132D180B48FFF755F80B48FFF752F804F50D7008 +S1132D2801F079FB0848FFF74BF8084B00211970AC +S1132D38FFF71CF8BDE8F041FFF782B8BDE8F08161 +S1132D48925D00008D5E0000A55E00006007002013 +S1132D5810B50023934203D0CC5CC4540133F9E783 +S1132D6810BD002310B5044618464208E15C42EA47 +S1132D78C010013342180B2B02F0FF00F5D110BD2F +S1132D8808B580B1036873B11A7862B1D9888088AC +S1132D98814208D15878FEF74FFD10F0010F0CBF9F +S1132DA80020032008BD092008BDF8B503690C46B6 +S1132DB801F10902002B4DD0436911461F7B002500 +S1132DC85E5D0A46202E13D0052E14BF3246E52236 +S1132DD807F00806F6B22EB1A2F14106192E01D861 +S1132DE82032D2B2013501F8012B082D0A46E7D169 +S1132DF81E7A202E17D02E2201F8012B08269D5D5D +S1132E080A46202D0FD007F01002D2B22AB1A5F13C +S1132E184102192A01D82035EDB2013601F8015BC7 +S1132E280B2E0A46EBD1D97A21729E7FDD7F3104BD +S1132E3841EA05661D7F597F2E4346EA012626602E +S1132E485D7E197E41EA0526A680DD7D9B7D43EAE9 +S1132E580521E18000251570A669E6B1E269D2B1C1 +S1132E6803690BB9002514E0018C4FF6FF729142F7 +S1132E78F8D0C76937F8150058B1002101F040FCB3 +S1132E880028EFD0E369591E8D42EBD27055013505 +S1132E98F0E700207055F8BDCA7E8B7E032843EA0C +S1132EA8022305D1487D097D41EA002243EA024311 +S1132EB81846704710B504460A46407804F13401B0 +S1132EC80123FEF7C1FC80BB94F8332294F8323214 +S1132ED843EA0221174B0AB29A4228D194F86C208B +S1132EE894F86D10130494F86A2043EA016194F885 +S1132EF86B30114341EA03210F4B21F07F429A4280 +S1132F0816D094F8880094F88910020494F886007E +S1132F1842EA016194F88720014341EA022121F041 +S1132F287F40C01A18BF012010BD032010BD022025 +S1132F3810BD00BF55AAFFFF464154002DE9F041DA +S1132F48154602681378303B092B05D854783A2C77 +S1132F5802D10232026000E0002300200860002B46 +S1132F6840F05A81B54C2468002C00F058810C605C +S1132F78217881B16078FEF75FFCC1070BD4002D7E +S1132F8800F0508100F00401C8B2002814BF0A20E0 +S1132F980020BDE8F081002020706070FEF738FB47 +S1132FA8C20700F142812DB100F00403DAB2002A0D +S1132FB840F03E8100212046FFF77CFF012818D10C +S1132FC894F8F60110B90D20BDE8F08194F8FC518D +S1132FD894F8FD112B0494F8FA0143EA016294F879 +S1132FE8FB11024342EA012520462946FFF762FF06 +S1132FF800E00025032800F01E810028E3D194F89E +S1133008402094F83F3043EA0220B0F5007FDAD13B +S113301894F84B6094F84A1051EA06210DD194F8BB +S11330285A3094F85B2094F85810180440EA026661 +S113303894F859200E4346EA022194F84460E16169 +S1133048731E012BE670BED894F84120A270002AA2 +S1133058B9D0501E1042B6D194F8460094F84530C1 +S113306843EA002398B21B072081ACD194F8487036 +S113307894F8473053EA07230DD194F8563094F85E +S113308857701B0443EA076394F854703B4394F85D +S1133098557043EA072394F8438094F8427057EA3A +S11330A8082890D006FB01FC08EB10176744BB42C4 +S11330B889D3DB1BB3FBF2F3002B84D040F6F576FF +S11330C8B34206D94FF6F57293428CBF0326022603 +S11330D800E00126023305EB08027F19032EA361E1 +S11330E825626262E76213D100287FF46CAF94F81A +S11330F8622094F86300120442EA006294F86000C3 +S1133108024394F8610042EA0022A26298000FE0A8 +S113311800283FF458AF0CEB0200022EA06201D144 +S1133128580005E003225A4303F0010303EB52005D +S113313800F2FF13B1EB532FFFF445AF00204FF01B +S1133148FF31032E2161E0605AD194F8652094F888 +S11331586430607143EA02216A186261607804F19C +S113316834010123FEF770FB002849D194F8330297 +S113317894F8322242EA0023314819B281423FD1FD +S113318894F8362094F83730110441EA036094F82F +S1133198343094F83520184340EA02212948814202 +S11331A82ED194F81A2294F81B32110441EA0360D0 +S11331B894F8183294F81922184340EA0221224854 +S11331C881421DD194F8223294F82322190441EA49 +S11331D8026094F8202294F82132104394F81E22B5 +S11331E840EA032194F81F021304E16043EA0061F2 +S11331F894F81C0294F81D22014341EA0223236136 +S1133208124926700888421C93B200200B80E38080 +S113321820632071BDE8F0810B20BDE8F0810C200B +S1133228BDE8F0812846BDE8F0810320BDE8F081BF +S11332380A20BDE8F0810120BDE8F0814C0F002090 +S113324855AAFFFF5252614172724161480F002032 +S1133258F8B50446007908B3256B04F1340760789F +S113326839462A460123FEF733FBB0B9636A207155 +S11332789D4201D20020F8BDE26998188542F9D22E +S1133288E678012EF6D9E16960786D182A46394640 +S11332980123FEF71DFB013EF3E70120F8BD38B515 +S11332A80446FFF7D5FF0346002B50D12278032AA2 +S11332B845D16079002842D0236304F13401002504 +S11332C8CD540133B3F5007FF9D1522384F8343057 +S11332D884F835306123AA2084F8363084F81B3208 +S11332E8236984F833027220552284F8180284F87A +S11332F81902180C84F8322284F81E024122E0686C +S113330884F8372084F81A2284F81C32C3F307227D +S11333181B0E84F81D2284F81F32C0F30722030C05 +S113332884F82002000E84F8212284F8223284F8DA +S11333382302626960780123FEF7CAFA65710021E5 +S113334860780A46FEF726FB003018BF012038BD16 +S113335838B5036B044699420D460CD0FFF778FF45 +S113336858B9607804F134012A460123FEF76CFA4F +S113337818B9256338BD002038BD012038BD8369DC +S113338802399A1E914204D28278C06A02FB010073 +S11333987047002070470129F8B504460D465DD9E9 +S11333A8836999425AD20178022928D0032937D04F +S11333B8012950D1426A05EB550602EB5621FFF765 +S11333C8C7FF002847D1636AF005013604EBD057DC +S11333D803EB5621204697F83470FFF7B9FF00280D +S11333E839D1F60504EBD65494F83410EB0747EAC0 +S11333F8012201D51009F8BD1005000DF8BD426A77 +S113340802EB1521FFF7A4FF28BB2D06ED0D61196A +S1133418641991F8343094F8350043EA0020F8BD73 +S1133428436A03EBD511FFF793FFA0B96D06ED0DC1 +S1133438611991F8370091F8362034310306497838 +S1133448641943EA024294F8343042EA01201843EA +S113345820F07040F8BD4FF0FF30F8BD0120F8BDF2 +S113346870B504460D46E1808168012901D1022026 +S113347870BD03689A699142F9D271B91878032822 +S113348801D1996A49B919890020A942E060EED9A5 +S11334989B6A03EB1512226119E09E783601B54246 +S11334A80ED32068FFF777FF421C014618D0012885 +S11334B8DDD923689A699042D9D2AD1BADB2EEE743 +S11334C8E1602068FFF75BFF00EB151121612068BC +S11334D805F00F0500EB451134316161002070BD22 +S11334E8012070BD0129F8B504460D46164672D967 +S11334F8836999426FD2017802293AD0032949D0C5 +S1133508012964D1426A05EB550702EB5721FFF7FD +S11335181FFF00285CD1F805C20D15F00105F3B2B0 +S113352807D0A11891F8340000F00F0141EA031301 +S1133538DBB2616A0120A2180137207182F83430A5 +S1133548204601EB5721FFF703FF002840D1FF0570 +S1133558FA0D15B1C6F3071607E0A31893F834104B +S1133568C6F3032621F00F073E43A71887F83460F3 +S11335782EE0416A01EB1521FFF7EAFE40BB2D0658 +S1133588EB0DE21882F83460C6F30726154682F874 +S113359835601DE0426A02EBD511FFF7D9FEB8B9D0 +S11335A86D06EB0DE11891F837200D46130603F06C +S11335B870421643C6F30723320C81F83460360E82 +S11335C881F8353081F8362081F8376000E0022030 +S11335D801212171F8BD0220F8BDF8B505460F4652 +S11335E831B9C6686EB18069864228BF012609E0F0 +S11335F8FFF7D1FE01283BD9AB69984239D33E463F +S113360800E001263446A96901348C4204D3012E12 +S113361801D80020F8BD022428462146FFF7BBFE46 +S113362848B1431C02D14FF0FF30F8BD01281FD028 +S1133638B442E8D1EDE7284621466FF07042FFF71F +S113364851FF98B947B92A69EC60511C0CD0531E34 +S113365801202B61687107E0284639462246FFF7A6 +S113366841FF0028EFD001E02046F8BD0128DAD058 +S11336780120F8BD2DE9F843C6880446701C86B2BB +S11336880F4616B90420BDE8F8832369002BF9D046 +S113369816F00F085AD1591C2161E168206819B93C +S11336A80289B242EED951E08278531E13EA161207 +S11336B84CD1FFF770FE0128054602D80220BDE868 +S11336C8F883411C02D10120BDE8F8832068816990 +S11336D88D4235D3002FD5D0E168FFF77EFF05462C +S11336E800283CD00128E9D0421CECD02068FFF720 +S11336F8AFFD0028E7D1226834320027175401307F +S1133708B0F5007FF9D1D4F8009029464846FFF770 +S113371836FEC9F8300020688378BB420DD90122EF +S113372802712068FFF794FD0028CCD12068013786 +S1133738036BFFB2591C0163EDE7016BCF1B0763F1 +S1133748E56020682946FFF71AFE20612068E680B4 +S113375800EB4813343363610020BDE8F883072085 +S1133768BDE8F8832DE9F84F4FF0FF0906464C46AB +S113377830683169FFF7ECFD8046002840F083800B +S113378875692F78002F78D0EA7AE52F02F03F0385 +S113379869D002F00800C1B211B10F2B63D101E066 +S11337A80F2B4AD1D6F81CB0BBF1000F5CD007F040 +S11337B84000C1B231B1F48895F80D9007F0BF0705 +S11337C8348401E0A7424ED16B7B4B454BD12A7818 +S11337D80D2122F04000441E4C434FF001084FF0E5 +S11337E8000A2A4B1AF803106A1850786B5C43EAEB +S11337F80020B8F1000F0BD000F09EFFFE2C80468D +S113380831D83BF8140000F097FF0134804502E0FA +S11338184FF6FF71884226D10AF1010ABAF10D0F59 +S1133828DFD12A7802F04000C3B24BB3B8F1000FDD +S113383826D03BF814401CB315E024B92846FFF7FA +S113384890FA81451FD04FF6FF723284B269D37A59 +S113385813F0010307D1E85CD15C0133884202D13B +S11338680B2BF8D10FE0FF2430460021FFF702FFAD +S1133878804600283FF47CAF05E04FF0040802E0DE +S1133888791ECCB2F0E74046BDE8F88F5E5F0000D1 +S11338982DE9F74F0B7806462F2B894601D05C2B70 +S11338A801D109F101090024B46099F800001F2826 +S11338B800F2948030462146FFF7D2FD74611FE17F +S11338C85C2900F08B80D6F81CB00025785D6C1C50 +S11338D81F2800F28B8007EB04091F2894BF0424D7 +S11338E800240BEB4500002D00F0048130F8021D84 +S11338F8202900F098802E2900F095800023B269D1 +S11339080BEB45072BF815302020D05401330B2B33 +S1133918FAD14FF000083BF81810202900F08580F0 +S11339282E2900F08280B8F1000F01D044F003047E +S11339383B4633F8027D2E2F01D0013DF9D10022F8 +S11339484FF0080A17463BF8183008F10108002B15 +S11339586ED1B3691978E52901D105201870BAF137 +S1133968080F01D1BA00D7B207F00C030C2B00F0F2 +S1133978A88007F00301032900F0A38004F00200E3 +S1133988C2B24AB907F00307012F08BF44F0100474 +S1133998042B08BF44F00804B3693046DC720021E4 +S11339A8FFF75EFD10B93046FFF7DCFEB169CA7A4D +S11339B8002840F0898002F00403D9B2002940F0BD +S11339C89F807169C87A00F01002D3B2002B00F00E +S11339D8858034682078FFF75FFAB0604F463978FD +S11339E809F101092F297FF46BAFF7E72F283FF47A +S11339F872AF5C283FF46FAFB4F5807F7AD00121B1 +S1133A0800F07EFE002875D07F2806D83D4A12F8BB +S1133A18013F13B18342FAD16CE00BEB440525F85E +S1133A28020C254652E7013D5DE708F1010872E7FB +S1133A38202B03D02E2B04D1A8455DD044F00304D9 +S1133A4881E7524502D2A84515D155E0BAF10B0FCA +S1133A5804D144F003044FF00B0A7AE7A84503D0D5 +S1133A6844F003043FF675AFBF00FFB2A8464FF019 +S1133A780B0A082267E77F2B0ED91846002101920A +S1133A8800F03EFE019A034618B11F48C11811F808 +S1133A98803C44F002042BB11C4810F8011F29B1E2 +S1133AA89942FAD144F003045F2306E0A3F14100EC +S1133AB881B2192914D847F00207B0698354013236 +S1133AC841E744F0020459E7042819D102F004013B +S1133AD8C8B2002814BF0420052011E005200FE017 +S1133AE8A3F1610081B21929E7D8203B47F0010707 +S1133AF89BB2E2E7062003E0BAF10B0FB4D1A8E7C2 +S1133B08BDE8FE8FCD5E0000DE5E0000D65E0000DC +S1133B1838B5018CC5884FF6FF73994208BF29460A +S1133B280446FFF79DFC0146B8B921692068FFF7F0 +S1133B380FFC014670B96069E52202702368012010 +S1133B481871E288AA4208D22046FFF793FD01467D +S1133B580028EAD0042908BF0221084638BD00001D +S1133B682DE9F041FF2704463D4604262169002932 +S1133B7867D02068FFF7ECFB0646002862D163692A +S1133B881A78002A64D0E52AD97A51D02E2A4FD03F +S1133B9801F03F0008284BD00F283FD102F040061F +S1133BA8F1B229B1E5885F7B02F0BF02258401E008 +S1133BB8AA423DD1587BB8423AD119780D2001F078 +S1133BC83F05691EE66941434FF0010E0020234D6D +S1133BD810F805C003EB0C0595F8018013F80C5098 +S1133BE845EA0825BEF1000F06D0FE2920D826F89C +S1133BF81150AE46013103E04FF6FF7C654517D1FD +S1133C0801300D28E3D11B7803F04005E8B2E0B198 +S1133C18FE290DD8002326F8113016E025B91846D8 +S1133C28FFF79FF8874215D04FF6FF73238411E0FE +S1133C38FF2520460021FFF71DFD0646002895D0E4 +S1133C4800E03EB10021216104E0013AD5B2F0E779 +S1133C580426F7E73046BDE8F08100BF5E5F000048 +S1133C68012970B504460D4622D9836999421FD2A9 +S1133C78A069854205D220462946FFF78CFB0646F3 +S1133C8808B9002070BD012812D0431C0ED020466C +S1133C9829460022FFF726FC58B92169481C03D09D +S1133CA84A1C0125226165713546E1E7012070BD92 +S1133CB8022070BD73B51C4616460B220546FFF755 +S1133CC847F8052C0AD9B21E32F8020F630843EAF2 +S1133CD8C434538821188CB2002BF5D1072304F07F +S1133CE80F0000F13002392A88BF00F137020DF8BD +S1133CF80320013B2409F2D102A9C8187E2200F846 +S1133D08082C9C4204D0295D202901D00134F8E70D +S1133D18072B05D802AAD11811F8080C013300E0C2 +S1133D28202028550134072CF2D97CBD2DE9FF4108 +S1133D388669D0F81C800C220446314601A8FFF796 +S1133D4807F89DF80F30DA0722D50020F072012712 +S1133D58E061304601A942463B46FFF7ABFF2046E7 +S1133D680021FFF77DFB054650B92046FFF7FAFC12 +S1133D78054628B90137BFB2642FEAD10725B2E056 +S1133D88042D40F0B0809DF80F10F172C4F81C8027 +S1133D989DF80F2002F00205EBB20BB901270CE0E5 +S1133DA8002038F8107017B1471CB8B2F9E700F1D1 +S1133DB819010D2291FBF2F5AFB220460021FFF75D +S1133DC84FFB0546002840F08E800646206821698E +S1133DD8FFF7BEFA0546002840F085806369187825 +S1133DE8E52800D018B90136BE4201D108E02E46B4 +S1133DF820460121FFF73EFC05460028E6D072E084 +S1133E08013EB6B2002E53D0E18820468A1B91B2F7 +S1133E18FFF726FB0546002865D1A069FEF7A1FF38 +S1133E28074620682169FFF793FA034605460028E8 +S1133E3859D162690F20F5B2D4F81CE0691ED0721A +S1133E480D204143577313739376D37618464FF670 +S1133E58FF7CDFF89C80634518BF3EF8113010F8EA +S1133E6808C04FEA132802F80C30944418BF0131F3 +S1133E788CF8018001304FF6FF7C002B08BF6346A5 +S1133E880D28E4D1634502D03EF8113013B946F049 +S1133E984005EDB21570216801220A7120460021FF +S1133EA8FFF7E8FB0546F0B9013EB6B2002EB8D1DB +S1133EB820682169FFF74CFA0546A0B960692B46CA +S1133EC80021C1540133202BFAD16069A1690B2266 +S1133ED8FEF73EFFA2696069D17A012201F0180356 +S1133EE8037320680271284604B0BDE8F08100BF5E +S1133EF85E5F000048B9064A136803B1187009B137 +S1133F08002008701160002070470B20704700BF24 +S1133F184C0F00202DE9F0478EB001911646054656 +S1133F28002800F098800023036005A901A802F086 +S1133F381E02FFF703F88046002840F095804C499C +S1133F4802A80B900C9105A80199FFF7A1FC0A9C03 +S1133F5818B9002C0CBF0620002016F01C0F06F020 +S1133F681F0748D048B1042802D105A8FFF7DEFE90 +S1133F7847F008070A9C48B175E0E17A11F0110F7F +S1133F8870D106F00403DEB2002E67D107F00802F0 +S1133F98D0B200283DD0FDF7FBFDC0F30726E67339 +S1133FA8010C0026030EDDF814902174E6722677BE +S1133FB86677A677E677A073637499F800002146BC +S1133FC8FEF76AFF0122A676E6762675667589F8F5 +S1133FD804200646E8B148463146D9F830A0FFF730 +S1133FE83FFE00283FD10598013EC6605146FFF7C1 +S1133FF8AFF970B137E0002835D1E37A03F0100245 +S1134008D0B200282CD106F00206F6B20EB1D907B8 +S113401828D407F00800C1B209B147F02007059E6B +S11340282146336B2C62EB61AF713078FEF734FFB5 +S11340382861A07FE27F010441EA0263227F607F56 +S11340481343F28843EA00210023E960AB60AB61C3 +S11340582E60AA8008E04FF0090805E0082002E075 +S1134068042000E00720804640460EB0BDE8F087F3 +S1134078480D00202DE9F74F9A460023CAF800306E +S1134088044688461746FEF77BFE0546002840F09E +S1134098A080A179080600F19980C90740F19880A9 +S11340A8E068A268861AB74238BF3E46002E00F080 +S11340B89080A168CB0570D1206883785A1E02EAE3 +S11340C8512313F0FF030CD109B9206904E0616995 +S11340D80193FFF760F9019B01280BD9421C55D0C5 +S11340E86061D4F800B0616958460193FFF747F955 +S11340F8019B20B9A07960F07F03A37166E05FEAB1 +S1134108562900EB030724D09BF8022009EB03008F +S1134118904288BFC3EB020941469BF801003A4626 +S11341285FFA89F3FDF790FBA17980BB01F04001A8 +S1134138CBB25BB1A269D71B4F4507D208EB472026 +S113414804F124014FF40072FEF702FE4FEA4927F6 +S113415831E0A269BA421FD0A07900F04001CBB285 +S11341685BB104F124019BF801000123FDF7B0FBC6 +S1134178A17960B921F04002A271214651F8240BBB +S11341883A4640780123FDF75FFB28B1A17961F035 +S11341987F05A57101251CE0A761A7684046F905BC +S11341A8CB0DC3F50077BE4238BF3746E11824313A +S11341B83A46FEF7CDFDA068DAF80030C119DA19DD +S11341C8A160B844CAF80020F61B6FE7022500E096 +S11341D807252846BDE8FE8F2DE9F74F99460023A9 +S11341E8C9F80030044688461746FEF7C9FD054657 +S11341F8002840F0B780A079010657D400F00201E6 +S1134208CAB2002A00F0AD80E368DF4228BF002765 +S113421830E05FEA572B00EB0A0674D098780BEB72 +S11342280A01814288BFCAEB000B414658783246DE +S11342385FFA8BF3FDF74CFB002873D1A3699E1B2F +S11342485E450BD204F124004FF4007208EB4621BA +S1134258FEF77EFDA27922F04000A0714FEA4B26BA +S1134268A168D9F800208B199019A360B044C9F843 +S11342780000BF1B0FB3A168CA055AD1206890F883 +S113428802A00AF1FF3202EA512313F0FF0A1DD1FA +S113429871B9216921B9FFF7A0F90146206161B11B +S11342A80129A3790FD163F07F01A171022559E097 +S11342B86169FFF792F90146F1E7A068E268904264 +S11342C84AD9E06048E04A1C2DD06161A07900F029 +S11342D84001CAB262B1214651F8243BA269587818 +S11342E80123FDF7F5FAA379E8B923F04000A0719A +S11342F82268616910460192FFF741F8019B002882 +S113430887D1A379CFE7A169B14211D0A068E26847 +S113431890420DD2587804F1240132460123FDF766 +S113432893FA28B1A37963F07F05A571012519E0F3 +S1134338A661A668F305D90DC1F500766018B742E1 +S113434838BF3E46243032464146FEF701FDA07987 +S113435840F04002A27183E7A37943F02001A171E0 +S113436800E007252846BDE8FE8F70B50446FEF731 +S113437807FD00284ED1A37903F02002D1B2002909 +S113438848D003F04000C3B26BB1214651F8242B46 +S113439801235078A269FDF79BFA002839D1A67940 +S11343A826F04001A1712068E169FEF7D1FF0646B5 +S11343B8002E2FD1256AE87A40F02003EB72E268D8 +S11343C82A77A189080A6877E389AB77E27BEA77D9 +S11343D821690B0C1A0AC1F30720A9762B756A7593 +S11343E8E876FDF7D5FBA875030CC0F30721000E8A +S11343F8E97568762B76AE74EE74A2792368012089 +S113440822F02001A17118712068BDE87040FEF700 +S113441846BF012070BD10B50446FFF7A6FF00B9DA +S1134428206010BDF8B504460D46FEF7A9FC064603 +S1134438002840F09380A279110600F18E80E36889 +S11344489D4205D902F00200C1B2002908BF1D46E9 +S11344580022A368A2600DB900254DE02068877882 +S11344687F026BB1013B691EB1FBF7F1B3FBF7F2B5 +S1134478914205D378420340A360ED1A61690AE0CA +S1134488216939B9FFF7A9F8012801462DD0431C41 +S113449852D0206161610029DED0BD421CD9A379C4 +S11344A8206803F00202D3B223B1FFF796F801465D +S11344B818B910E0FEF76FFF0146481C3CD00129EB +S11344C813D92068826991420FD2A3686161D8190F +S11344D8A060ED1BE1E73D46A2685319A360EB0514 +S11344E8BAD02068FEF74BFF20B9A07960F07F02AC +S11344F8A27132E000EB5525A168CB0523D0A2694F +S1134508954220D0A07900F04003D9B259B1214690 +S113451851F8240B01234078FDF7DAF9A17960B941 +S113452821F04002A271214651F8243B2A465878CA +S11345380123FDF789F928B1A17961F07F06A671F5 +S113454801260BE0A561A168E068814206D9A27939 +S1134558E16042F02003A37100E002263046F8BD72 +S113456830B58FB00EAB43F8340D0D46184605A987 +S11345780022FEF7E3FC044688B90A4902A80B9016 +S11345880C9105A80199FFF783F9044638B90A9AEA +S113459822B105A82946FEF708FC00E006242046B7 +S11345A80FB030BD480D002070B598B018AB43F873 +S11345B85C0D184606A90122FEF7C0FC0446002833 +S11345C84DD1284903A80C900D9106A80199FFF72D +S11345D85FF90446002842D10B9E36B1F27A12F0F4 +S11345E8010F0CBF0024072400E00624069D314671 +S11345F82878FEF751FC0546002C30D1F47A04F0F3 +S11346081003D8B2C8B1012D13D90FA806A92422C2 +S1134618FEF79EFB0FA802211195FEF721FF044621 +S1134628E8B90FA8FFF79CFA044620B1042804D07F +S113463815E0022413E0072411E006A8FFF768FA3E +S1134648044660B925B90698FEF729FE044606E033 +S113465806982946FFF704FB04460028F3D02046B1 +S113466818B070BD480D00202DE9F34106460F46E9 +S11346789046054600247B1E9C4211DA01224046DE +S1134688694601ABFFF7F6FC0198012808D19DF8AB +S113469800100D29EFD001340A2905F8011BEAD1CD +S11346A800222A70944214BF30461046BDE8FC81AB +S11346B80A2837B504460D4602D10D20FFF7F8FF46 +S11346C802A901F8084D28466946012201ABFFF703 +S11346D883FD0198012814BF4FF0FF3001203EBD2F +S11346E870B505460E460024285D38B13146FFF7FB +S11346F8DFFF431C01D00134F6E70446204670BDB1 +S11347087F2816D931B1FF2812D80A49803831F8E0 +S113471810007047074A8BB232F81120824203D046 +S113472801318029F6D10B4603F18000C0B27047ED +S1134738002070474C6100000023064A32F8131029 +S113474831B1884201D00133F7E7034830F8130048 +S1134758704700BF6C5F00004C62000010B5013A5E +S11347688A1891420CD20C784B7803EB04239BB241 +S1134778181880B2984201D2431C98B20231F0E76B +S113478807D10B781902081880B2884201D2421C5A +S113479890B210BD38B50E4C0822657C237C143DBC +S11347A805EB03218DB2401904F11A0180B2FFF719 +S11347B8D5FF04F122012A46FFF7D0FF20B1020AEF +S11347C842EA002398B238BD4FF6FF7038BD00BFE7 +S11347D8CA0F002070B5C478124B0A19D4B2DC7021 +S11347E885780E0A7219D2B29A704578B2425D7011 +S11347F80078187005D20135EDB25D700DB901303D +S11348081870C9B28C420CDA531C0648DAB28270AA +S11348183AB941784B1CDAB2427012B901784B1C90 +S1134828037070BD1916002010B5084C01462068A5 +S11348380830FFF7CFFF064A2368117850781972B9 +S11348489178D27858729972DA7210BD500F00209C +S11348581916002008B5002006491422FFF77EFF28 +S113486820B1030A43EA002080B208BD4FF6FF7066 +S113487808BD00BFD80F00200620FFF78BBF00003B +S1134888064900231A460B80054B01200549187078 +S113489805484A764FF48062028070472A16002041 +S11348A828160020540F00201E160020044A054B29 +S11348B8118811B919701080704701201870704759 +S11348C82A16002028160020F8B5834B83491C6853 +S11348D8834B032803F136020A6082490A600AD12D +S11348E8607E00F00F03032B40F0BE84218A002968 +S11348F840F0BA846DE002286FD17B48C278511C1D +S1134908CBB2C37063B98278511CCBB283703BB904 +S11349184278511CCBB2437013B90278511C017010 +S1134928724B734A002018801080607E072801D0DB +S113493805280AD1A07E431CD9B27829A17640F073 +S113494893840022627600F08FBC002800F08C84E7 +S1134958218A002938D0A27E511EA176002A40F06F +S11349688384E37E082B04D0421E012A09D8052B30 +S113497807D100235F4A80216376117000F0D6FEC8 +S113498860E3042B04D8032202FA03F2D1B200E054 +S1134998302100F00F00A1760133411EE376072988 +S11349A800F26284DFE811F0800108000A00EC02DA +S11349B86004EC026004EC02002576E14D4B04220D +S11349C81A7000F0B3FE5CE300F00F03032B40F011 +S11349D84B844848082202709DE2987B452840F0A1 +S11349E8438442481E7C5A7C018802EB06268E4288 +S11349F800F33A841A7DB6B29206068040F03484F5 +S1134A085B7D002B40F030843B4804880CB9418816 +S1134A1849B1334AD38BA34240F02684118C408891 +S1134A28814240F02184FFF715FF4FF6FF72904250 +S1134A38074640F019842A4DEB7D062B1DD0012B27 +S1134A4840F0128495F82210082940F00D84AB8CAC +S1134A584FF6F6720020934285F8220001D90933F3 +S1134A6800E008331E49AB84488B234A8B8BC883E8 +S1134A7850880B844C838883DFE3FFF7FDFEB8423C +S1134A8840F0F2831D4B5C7E84B1A98C9A889142D4 +S1134A980CD1688CD988884208D1688B1A889042CE +S1134AA804D1A98B5888814200F01A810C4B93F8E1 +S1134AB82F2002F03F0102292AD19A8C104811466E +S1134AC802801048104B008882421FD1002C74D1F8 +S1134AD800241C70094C7AE0500F00200C160020AA +S1134AE8CA0F00202C16002010160020C00F00202A +S1134AF8C80F00201816002014160020540F002098 +S1134B08201600202A1600202816002001221A70D8 +S1134B187B4B93F82F1001F00400C2B2002A40F036 +S1134B28A38393F82D207749142528240C8083F82F +S1134B382F5093F8294093F82C5083F8292093F8A0 +S1134B482B20502093F8271083F82E0083F8272071 +S1134B5893F8280093F8262083F828506A4D0134E6 +S1134B682A7093F82A5083F82C0083F82650E5B26B +S1134B7883F82B1083F82A2083F82D5065B9013067 +S1134B88C4B283F82C403CB90131CDB283F82B5020 +S1134B9815B9013283F82A20594B5C4C588C5D8B2B +S1134BA82080998C98845A4859849A8B048841881F +S1134BB8DD831A845C83998317E356480122072C02 +S1134BC80CBF044600241A70002C00F04D83524D8B +S1134BD80326A6762676042300262C60484DE37522 +S1134BE8A675E676A18095F8221095F823006B8BBC +S1134BF841EA0022E280A98B484A23806180137825 +S1134C08517823736173937895F82910D278A37334 +S1134C18E27395F8283095F82720E17295F8261064 +S1134C28012060762082A37262722172FFF7FCFD74 +S1134C3895F82E5005F0F000502835DD2B09384939 +S1134C485A1F95000A783346AB4229DA2C48C11812 +S1134C5891F8362022B3012A01D101331EE0022A39 +S1134C6817D191F83760042E13D12D48264D0270C0 +S1134C7891F8382091F839102B70244D41EA022319 +S1134C8840F20A602B80834228BF03466382A382D2 +S1134C980AE0C01890F8371011B1CB18DBB2D3E78B +S1134CA819491F4D0B702A7010251548144B80F8AC +S1134CB82F5093F82F10042041F00202022583F8A4 +S1134CC837001048062183F82F2083F836500A222B +S1134CD82C2583F8381083F83920058060214AE2AE +S1134CE80D4F95F82F203B600E4902F00407002071 +S1134CF8FFB20870C7B1587620230B70E8E100BFF3 +S1134D08CA0F0020C00F00202816002020160020FB +S1134D1814160020540F0020500F002010160020F5 +S1134D28301600201816002095F82E30143E190964 +S1134D388800964B361A964904F00F04B6B2022C32 +S1134D4818700E8003D102F03F0012280ED00EB95D +S1134D5894070BD08F49904BCC8C1889844240F02F +S1134D680082098D5B89994240F0FB8102F01002B0 +S1134D78D4B2002C44D0884C218A002940D004F1B4 +S1134D880C00FFF727FD834A844B92F82A001D780C +S1134D98854235D192F82B105878884230D192F850 +S1134DA82C609978B1422BD192F82D20DB7893426C +S1134DB826D16073E07E2573A173E373C0B9227EA4 +S1134DC8A37EA17DD01AA0EBD102D3B2DAB25918CE +S1134DD8C9B21006A17501D55C42E2B26E4BD87D0A +S1134DE8A0EB9004A218D0B200EBD101D8751976C3 +S1134DF869486B4B027E012400211C708276018273 +S1134E08654B674A597E01F00F04601E072800F2BB +S1134E182B82DFE810F008001D008D00600181017D +S1134E289D01A601540111785D4CCA0740F11C820A +S1134E380320002158761982554B40221888227085 +S1134E48002800F0EF8042222270FFF7EDFCE9E031 +S1134E581478E30762D54F4B93F82F2002F03F00F4 +S1134E6812285BD193F82E3003F0F002502A36DD75 +S1134E784C491809441F0A78A4000023A3422ADADB +S1134E884448C11891F836202AB3012A01D10133C4 +S1134E981FE0022A18D191F83750042D14D1414843 +S1134EA83A4C027091F8382091F8391023703E4B2F +S1134EB841EA022440F20A60374A1C80844228BF2F +S1134EC80446548294820AE0C01890F8371011B14D +S1134ED8CB18DBB2D2E72D49324C0B7022702E4C22 +S1134EE82C4B032093F8262093F82710607693F828 +S1134EF8280093F8293022726172A072E3720120AB +S1134F08FFF792FC264942220A70214B274A0020C7 +S1134F1820821880108000F009FC89E0204C2021B0 +S1134F28217000F003FC224B002218684276EFE55A +S1134F38184C94F82F30D8073CD501F01002D0B2A1 +S1134F48002837D11448018A002940F08D81104D7A +S1134F582A88541CA0B2FFF767FC114B2D881878D7 +S1134F6840F01001197015B140F012021A700A4C81 +S1134F7800F0DCFB01230820002123826076E1761F +S1134F881122044D85F82F20F0E000BF28160020D8 +S1134F98C00F0020CA0F0020540F0020191600204B +S1134FA8181600203016002020160020C80F0020F4 +S1134FB8500F002003F02004E3B273B1A04AA14BC0 +S1134FC892F8340092F8354044EA002218688418AC +S1134FD81C609D4B1888821A1A809B4C208850B1FB +S1134FE801F01001CBB233B9984C227842F0020197 +S1134FF82170FFF719FC924890F8304090F831304E +S1135008934803EB0422818A94B2924B8C421C800D +S113501800D804B919808D4C1A88237842829A07DB +S113502800F022818C480024048000F07FFB884C27 +S1135038864B894A1B7803F02001C9B221B10023A9 +S11350481380637614229CE703F01000C0B230B1D9 +S113505801250420118025826076E17690E7118885 +S113506869B1DB0748BF2082228A7B4B32B9608A48 +S1135078814288BF18801988218200E01A800022A2 +S1135088E276764B744A18686E491388086033B11F +S1135098208A20B16C4B2830188018220BE06B4909 +S11350A80A7802F00203D8B2002800F0DD806648CE +S11350B8282505801022624981F82F2059E01178AB +S11350C8CA0740F1D18000245C76604B1020187028 +S11350D800F02CFBC8E05C48008808B1FFF7A4FB8B +S11350E8574B5A4993F82F20087812F001040CD032 +S11350F810F0010F564D05D0002207236B76AA76CF +S11351082A8218E006246C7615E0C0071CD550489E +S1135118052141760482A7E04B48008808B1FFF7CF +S113512883FB474B93F82F20D1070DD5484D072112 +S113513800246976AC760120FFF776FB43491020FA +S1135148087000F0F3FA0CE03F4B1A884AB98BE078 +S11351581278D20740F188800721002459769C767A +S113516882E0374910253A4C81F82F50364B2820D5 +S11351781880334B502183F82E10227A304D85F84D +S11351882A20607A85F82B00A17A85F82C10E37A16 +S113519885F82D30227B85F82620607B062285F849 +S11351A82700A17B85F82810E37BEA7585F8293068 +S11351B8A0882B4B6884E188A98418885988688357 +S11351C8A9832388EB8360882884647E04F0100113 +S11351D8CBB22BB1002085F8310085F8300004E00B +S11351E885F830200A2285F831201749144C0B8899 +S11351F840251A0AA57500252274637484F835506D +S113520884F8345084F8325084F83350FFF734FB70 +S1135218144AC043608613884521581CA17381B27F +S113522811800A0AE57365752575A274E1742576FB +S11352386576FFF70FFBC3432383002218E000BF02 +S1135248CA0F00200C160020C00F002018160020DA +S1135258540F002020160020C80F00202C16002010 +S113526814160020C20F0020034900231A460B809D +S113527802480270F8BD00BFC00F002018160020B5 +S1135288030A43EA002080B2704700000A1E03465E +S113529809DD0548054900680A80834203D0194698 +S11352A892B200F087BA70472C160020C80F00206D +S11352B838B52C4B988BDD8B0023072B11D80C2287 +S11352C85A4329498C18895A41B1628832B18842B3 +S11352D804D1954202D12548037039E00133DBB289 +S11352E8EBE70023072B0DD80C2058431E490A5A14 +S11352F80C1822B9618811B91C48037023E00133E2 +S1135308DBB2EFE7194A082B13701CD118480023A5 +S1135318057819461A46072A13480BD80C2404FBA7 +S11353280200847A281B9842C4BFC3B211460132D2 +S1135338D2B2F0E70F4C0D4A23700C2404FB01048D +S11353480D4B1170197020460C49042200F032FAF2 +S11353580B490622201D00F02DFA05490A78A2728D +S113536838BD00BFCA0F00203416002031160020B3 +S1135378951600203216002094160020E60F00200F +S1135388E00F002008B5124B00211A78501C187041 +S1135398104801700F490B78072B17D80C2043438A +S11353A80D4AD0184188D35A41EA030291B249B14F +S11353B8074B817A1A78531A772B03DD00210422CC +S11353C800F006FA03480278511CE2E708BD00BF62 +S11353D8951600203116002034160020F8B52A4D01 +S11353E82B88292B4FF000033DD9284C1F46A08A4F +S11353F82B80B0F5807F03D0B0F5007F42D134E034 +S1135408234EE18C328891423CD1208D7388984296 +S113541838D1FFF74DFF02216175062204F1160108 +S113542804F12000277500F0C5F91A49062204F191 +S1135438160000F0BFF917490622A01D00F0BAF9BA +S113544804F120010622204600F0B4F9A28BE08B77 +S113545833887188E284208508220620A383E183A7 +S1135468227360732A232B80F8BD094BE18C1A88B8 +S1135478914207D1208D5B88984203D1BDE8F8405A +S1135488FFF716BFF8BD00BFC00F0020CA0F0020E9 +S11354981416002022160020434838B5C38B4FF653 +S11354A8FF72934204D1028C9A4201D13F4968E0C9 +S11354B83F4C404A258810885D40054207D13A4D43 +S11354C86488288C528880EA0405154206D03A4D2F +S11354D83A4B28886A8818805A8002E0374C23801F +S11354E86080364C002520886488072D0CD80C234E +S11354F86B43334AD118D25A824202D14B88A34211 +S11355083BD00135EDB2F0E72E4B082D1D7036D196 +S1135518254CFF212046062200F05AF904F1200008 +S11355280021062200F054F9A01D2749062200F0A4 +S113553841F904F116002449062200F03BF91F49F9 +S11355481B4B08884A88E0841988588800232375E7 +S1135558A37363742285A183E083062101220420B6 +S11355681A4B61736275E2732574A174E074257330 +S113557836341C602A21164813E0124805700A487C +S11355880431062200F016F90F490622114800F0EA +S113559811F90549082200230D480A734B73018841 +S11355A80E31018038BD00BFCA0F00202C640000F2 +S11355B814160020BC0F0020C40F002096160020EB +S11355C83416002031160020221600200C16002064 +S11355D8C00F0020D00F002008B5FCF7DDFAFCF757 +S11355E829FE134B00F5FA701860FCF723FE114AE4 +S11355F800F51C5110311160FFF742F90E484FF6BF +S1135608A96243F61373028043800C484FF6FF7176 +S11356180023018043800A48028040F2131242802A +S11356284EF60300FFF742F9BDE80840FCF7C0BA9C +S1135638A01600209C16002014160020BC0F002081 +S1135648C40F002038B50C4B1C680023E2692262A1 +S11356589AB28A4205D2C55CE21882F82450013312 +S1135668F6E70431A4F8641004F12000FFF70EFEF5 +S1135678E069411CE16138BD500F002070B5FCF7AA +S11356881DFB00B3234C244D20804FF40060AE89E9 +S1135698FFF7F6FD864207D10120FFF715F92088A8 +S11356A888B1FFF7F9FE0AE040F60600AD89FFF776 +S11356B8E7FD854207D1FFF791FE23881BB1FCF76C +S11356C817FB00212180FCF7B5FD144B1A689042A2 +S11356D811D302F5FA74124812491C600D4C086083 +S11356E80220FFF7F1F823882BB1FFF7D5FEFCF76A +S11356F8FFFA00222280FCF79DFD0B490B689842B3 +S113570805D303F51C5010300860FFF73BFE00205A +S113571870BD00BFC00F0020CA0F0020A0160020D3 +S1135728540F0020500F00209C16002010B5174B72 +S113573817481C68037803F04002D0B228B101234B +S11357480022E361A4F8642010BDD90703F0040122 +S1135758CBB248BFA4F8640033B1B4F8641019B1EB +S113576804F12000FFF792FD094A107800F00201C5 +S1135778CBB24BB1074800220168A4F86420081D85 +S1135788BDE81040FCF7D4BE10BD00BF500F002088 +S1135798181600200C160020303809288CBF002069 +S11357A801207047A0F16103D9B2192998BF2038A4 +S11357B8704700004FF00003002A07D011F803C017 +S11357C800F803C003F10103013AF7D1704700BFA1 +S11357D80346002A00F0048003F8011B013AFBD1B8 +S10757E8704700BF43 +S11357EC40420F0000201C0080841E000080250015 +S11357FC999E36000040380000093D0000803E00B0 +S113580C00004B00404B4C0000204E00808D5B0090 +S113581C00C05D000080700000127A0000007D0062 +S113582C80969800001BB7000080BB00C0E8CE0037 +S113583C647ADA000024F4000000FA0080A8120153 +S113584C002D310100366E0140787D01433A2F570B +S113585C6F726B2F736F6674776172652F4F7065FF +S113586C6E424C542F5461726765742F44656D6F8E +S113587C2F41524D434D335F4C4D33535F454B5F7A +S113588C4C4D3353363936355F43726F7373776FC0 +S113589C726B732F426F6F742F6964652F2E2E2FCA +S11358AC6C69622F6472697665726C69622F7379A4 +S11358BC7363746C2E63000000E10F4004E10F402D +S11358CC08E10F4040E00F4044E00F4048E00F4037 +S11358DC433A2F576F726B2F736F667477617265CF +S11358EC2F4F70656E424C542F5461726765742F40 +S11358FC44656D6F2F41524D434D335F4C4D3353C3 +S113590C5F454B5F4C4D3353363936355F43726FBD +S113591C7373776F726B732F426F6F742F69646537 +S113592C2F2E2E2F6C69622F6472697665726C69E6 +S113593C622F6770696F2E6300433A2F576F726B37 +S113594C2F736F6674776172652F4F70656E424C5E +S113595C542F5461726765742F44656D6F2F4152D7 +S113596C4D434D335F4C4D33535F454B5F4C4D337F +S113597C53363936355F43726F7373776F726B734B +S113598C2F426F6F742F6964652F2E2E2F6C6962F2 +S113599C2F6472697665726C69622F666C617368C8 +S11359AC6C69622E6300433A2F576F726B2F736FBF +S11359BC6674776172652F4F70656E424C542F5428 +S11359CC61726765742F44656D6F2F41524D434D61 +S11359DC335F4C4D33535F454B5F4C4D335336392A +S11359EC36355F43726F7373776F726B732F426FBD +S11359FC6F742F6964652F2E2E2F6C69622F64725D +S1135A0C697665726C69622F756172746C69622E49 +S1135A1C6300433A2F576F726B2F736F6674776101 +S1135A2C72652F4F70656E424C542F5461726765CA +S1135A3C742F44656D6F2F41524D434D335F4C4D64 +S1135A4C33535F454B5F4C4D3353363936355F43D7 +S1135A5C726F7373776F726B732F426F6F742F69DE +S1135A6C64652F2E2E2F6C69622F647269766572B1 +S1135A7C6C69622F7373692E6300433A2F576F72EC +S1135A8C6B2F736F6674776172652F4F70656E42FE +S1135A9C4C542F5461726765742F44656D6F2F419C +S1135AAC524D434D335F4C4D33535F454B5F4C4D1F +S1135ABC3353363936355F43726F7373776F726B4A +S1135ACC732F426F6F742F6964652F2E2E2F6C69A0 +S1135ADC622F6472697665726C69622F657468658D +S1135AEC726E65742E63002F64656D6F70726F67D0 +S1135AFC5F656B5F6C6D3373363936352E73726537 +S1135B0C63002F626F6F746C6F672E74787400432C +S1135B1C3A2F576F726B2F736F6674776172652FA0 +S1135B2C4F70656E424C542F5461726765742F44E8 +S1135B3C656D6F2F41524D434D335F4C4D33535F65 +S1135B4C454B5F4C4D3353363936355F43726F7367 +S1135B5C73776F726B732F426F6F742F6964652F39 +S1135B6C2E2E2F2E2E2F2E2E2F2E2E2F536F757250 +S1135B7C63652F41524D434D335F4C4D33532F438B +S1135B8C726F7373776F726B732F766563746F7246 +S1135B9C732E63000080000000200000040000004D +S1135BAC00A00000002000000500000000C0000060 +S1135BBC002000000600000000E0000000200000AF +S1135BCC0700000000000100002000000800000095 +S1135BDC002001000020000009000000004001002A +S1135BEC002000000A0000000060010000200000FA +S1135BFC0B00000000800100002000000C000000DD +S1135C0C00A00100002000000D00000000C00100F5 +S1135C1C002000000E00000000E001000020000045 +S1135C2C0F000000000002000080000010000000C3 +S1135C3C008002000080000011000000000003003E +S1135C4C00800000120000000080030000800000AF +S1135C5C13000000433A2F576F726B2F736F6674E7 +S1135C6C776172652F4F70656E424C542F5461727C +S1135C7C6765742F44656D6F2F41524D434D335FEF +S1135C8C4C4D33535F454B5F4C4D3353363936359E +S1135C9C5F43726F7373776F726B732F426F6F7492 +S1135CAC2F6964652F2E2E2F2E2E2F2E2E2F2E2E57 +S1135CBC2F536F757263652F41524D434D335F4CB7 +S1135CCC4D33532F756172742E63004F70656E42A1 +S1135CDC4C5400433A2F576F726B2F736F66747763 +S1135CEC6172652F4F70656E424C542F546172670C +S1135CFC65742F44656D6F2F41524D434D335F4C8A +S1135D0C4D33535F454B5F4C4D3353363936355F0A +S1135D1C43726F7373776F726B732F426F6F742F41 +S1135D2C6964652F2E2E2F2E2E2F2E2E2F2E2E2FD6 +S1135D3C536F757263652F66696C652E63004669D3 +S1135D4C726D77617265207570646174652072651B +S1135D5C71756573742064657465637465640A0D88 +S1135D6C004F70656E696E67206669726D7761723B +S1135D7C652066696C6520666F7220726561646962 +S1135D8C6E672E2E2E004F4B0A0D005374617274E5 +S1135D9C696E67207468652070726F6772616D6DCF +S1135DAC696E672073657175656E63650A0D0050C5 +S1135DBC617273696E67206669726D7761726520B2 +S1135DCC66696C6520746F206F627461696E2065FE +S1135DDC726173652073697A652E2E2E004572618B +S1135DEC73696E6720002062797465732066726F24 +S1135DFC6D206D656D6F727920617420307800525E +S1135E0C656164696E67206C696E652066726F6D7E +S1135E1C2066696C652E2E2E4552524F520A0D0087 +S1135E2C496E76616C696420636865636B73756D28 +S1135E3C20666F756E642E2E2E4552524F520A0DEB +S1135E4C0050726F6772616D6D696E67200020621D +S1135E5C7974657320746F206D656D6F7279206130 +S1135E6C742030780057726974696E672070726F91 +S1135E7C6772616D20636865636B73756D2E2E2E6E +S1135E8C00436C6F73696E67206669726D7761721B +S1135E9C652066696C650A0D004669726D776172DE +S1135EAC65207570646174652073756363657373C1 +S1135EBC66756C6C7920636F6D706C657465640ABF +S1135ECC0D00222A3A3C3E3F7C7F002B2C3B3D5B51 +S1135EDC5D00809A90418E418F80454545494949E2 +S1135EEC8E8F9092924F994F555559999A9B9C9D90 +S1135EFC9E9F41494F55A5A5A6A7A8A9AAABAC211D +S1135F0CAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBD29 +S1135F1CBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCD19 +S1135F2CCECFD0D1D2D3D4D5D6D7D8D9DADBDCDD09 +S1135F3CDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDF9 +S1135F4CEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDE9 +S1135F5CFEFF01030507090E10121416181C1E006F +S1135F6C61006200630064006500660067006800FD +S1135F7C69006A006B006C006D006E006F007000AD +S1135F8C710072007300740075007600770078005D +S1135F9C79007A00A100A200A300A500AC00AF0018 +S1135FACE000E100E200E300E400E500E600E700C5 +S1135FBCE800E900EA00EB00EC00ED00EE00EF0075 +S1135FCCF000F100F200F300F400F500F600F80024 +S1135FDCF900FA00FB00FC00FD00FE00FF000101CB +S1135FEC03010501070109010B010D010F01110149 +S1135FFC13011501170119011B011D011F012101B9 +S113600C23012501270129012B012D012F01310128 +S113601C3301350137013A013C013E014001420193 +S113602C4401460148014B014D014F0151015301FB +S113603C5501570159015B015D015F016101630168 +S113604C6501670169016B016D016F0171017301D8 +S113605C750177017A017C017E019201B103B203CF +S113606CB303B403B503B603B703B803B903BA0354 +S113607CBB03BC03BD03BE03BF03C003C103C30303 +S113608CC403C503C603C703C803C903CA03300446 +S113609C310432043304340435043604370438042C +S11360AC39043A043B043C043D043E043F044004DC +S11360BC410442044304440445044604470448048C +S11360CC49044A044B044C044D044E044F0451043B +S11360DC52045304540455045604570458045904E4 +S11360EC5A045B045C045E045F0470217121722108 +S11360FC73217421752176217721782179217A21D4 +S113610C7B217C217D217E217F2141FF42FF43FFA6 +S113611C44FF45FF46FF47FF48FF49FF4AFF4BFF3B +S113612C4CFF4DFF4EFF4FFF50FF51FF52FF53FFEB +S113613C54FF55FF56FF57FF58FF59FF5AFF0000F5 +S113614CC700FC00E900E200E400E000E500E70021 +S113615CEA00EB00E800EF00EE00EC00C400C50020 +S113616CC900E600C600F400F600F200FB00F900DA +S113617CFF00D600DC00A200A300A500A72092011A +S113618CE100ED00F300FA00F100D100AA00BA001E +S113619CBF001023AC00BD00BC00A100AB00BB00D1 +S11361AC91259225932502252425612562255625C2 +S11361BC55256325512557255D255C255B25102523 +S11361CC142534252C251C2500253C255E255F250E +S11361DC5A25542569256625602550256C25672587 +S11361EC68256425652559255825522553256B2585 +S11361FC6A2518250C25882584258C259025802531 +S113620CB103DF009303C003A303C303B500C403AA +S113621CA6039803A903B4031E22C603B5032922BB +S113622C6122B1006522642220232123F700482235 +S113623CB0001922B7001A227F20B200A025A000BA +S113624C410042004300440045004600470048001A +S113625C49004A004B004C004D004E004F005000CA +S113626C510052005300540055005600570058007A +S113627C59005A002100E0FFE1FFE5FFE2FFE3FFD4 +S113628CC000C100C200C300C400C500C600C700E2 +S113629CC800C900CA00CB00CC00CD00CE00CF0092 +S11362ACD000D100D200D300D400D500D600D80041 +S11362BCD900DA00DB00DC00DD00DE00780100012F +S11362CC02010401060108010A010C010E0110016E +S11362DC12011401160118011A011C011E012001DE +S11362EC22012401260128012A012C012E0130014E +S11362FC32013401360139013B013D013F014101B9 +S113630C4301450147014A014C014E015001520120 +S113631C5401560158015A015C015E01600162018D +S113632C6401660168016A016C016E0170017201FD +S113633C7401760179017B017D0191019103920332 +S113634C93039403950396039703980399039A0371 +S113635C9B039C039D039E039F03A003A103A30320 +S113636CA403A503A603A703A803A903AA03100463 +S113637C1104120413041404150416041704180449 +S113638C19041A041B041C041D041E041F042004F9 +S113639C21042204230424042504260427042804A9 +S11363AC29042A042B042C042D042E042F04010488 +S11363BC0204030404040504060407040804090481 +S11363CC0A040B040C040E040F04602161216221E5 +S11363DC63216421652166216721682169216A2171 +S11363EC6B216C216D216E216F2121FF22FF23FF74 +S11363FC24FF25FF26FF27FF28FF29FF2AFF2BFF59 +S113640C2CFF2DFF2EFF2FFF30FF31FF32FF33FF08 +S113641C34FF35FF36FF37FF38FF39FF3AFF0000F2 +S109642CFFFFFFFFFFFF6C +S105643401045D S90300F10B diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/hooks.c b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/hooks.c index b6e40f1c..ff170d9c 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/hooks.c +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/hooks.c @@ -390,13 +390,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while (UARTBusy(UART0_BASE) == true); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while (UARTBusy(UART0_BASE) == true) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/ide/lm3s6965_crossworks.hzs b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/ide/lm3s6965_crossworks.hzs index e979feee..7699bd6f 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/ide/lm3s6965_crossworks.hzs +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/ide/lm3s6965_crossworks.hzs @@ -21,8 +21,6 @@ - - @@ -53,7 +51,7 @@ - + - + diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.bin b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.bin index 8b4aed84..1ce7666e 100644 Binary files a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.bin and b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.bin differ diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.elf b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.elf index 1ed7f86c..de0ff95f 100644 Binary files a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.elf and b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.elf differ diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.map b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.map index da632cc9..c7e42ed6 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.map +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/bin/openbtl_ek_lm3s6965.map @@ -7,38 +7,38 @@ start address 0x00000000 Program Header: LOAD off 0x00008000 vaddr 0x00000000 paddr 0x00000000 align 2**15 - filesz 0x0000601c memsz 0x0000601c flags r-x - LOAD off 0x00010000 vaddr 0x20000000 paddr 0x0000601c align 2**15 + filesz 0x0000602c memsz 0x0000602c flags r-x + LOAD off 0x00010000 vaddr 0x20000000 paddr 0x0000602c align 2**15 filesz 0x00000008 memsz 0x000018ac flags rw- private flags = 5000200: [Version5 EABI] [soft-float ABI] Sections: Idx Name Size VMA LMA File off Algn - 0 .text 0000601c 00000000 00000000 00008000 2**2 + 0 .text 0000602c 00000000 00000000 00008000 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 1 .data 00000008 20000000 0000601c 00010000 2**2 + 1 .data 00000008 20000000 0000602c 00010000 2**2 CONTENTS, ALLOC, LOAD, DATA - 2 .bss 000018a4 20000008 00006024 00010008 2**2 + 2 .bss 000018a4 20000008 00006034 00010008 2**2 ALLOC - 3 .debug_info 0000f8d4 00000000 00000000 00010008 2**0 + 3 .debug_info 0000f90a 00000000 00000000 00010008 2**0 CONTENTS, READONLY, DEBUGGING - 4 .debug_abbrev 00002fcf 00000000 00000000 0001f8dc 2**0 + 4 .debug_abbrev 00002ffc 00000000 00000000 0001f912 2**0 CONTENTS, READONLY, DEBUGGING - 5 .debug_loc 0000b679 00000000 00000000 000228ab 2**0 + 5 .debug_loc 0000b6de 00000000 00000000 0002290e 2**0 CONTENTS, READONLY, DEBUGGING - 6 .debug_aranges 00000de8 00000000 00000000 0002df24 2**0 + 6 .debug_aranges 00000de8 00000000 00000000 0002dfec 2**0 CONTENTS, READONLY, DEBUGGING - 7 .debug_ranges 00000e80 00000000 00000000 0002ed0c 2**0 + 7 .debug_ranges 00000e80 00000000 00000000 0002edd4 2**0 CONTENTS, READONLY, DEBUGGING - 8 .debug_line 00004db6 00000000 00000000 0002fb8c 2**0 + 8 .debug_line 00004e58 00000000 00000000 0002fc54 2**0 CONTENTS, READONLY, DEBUGGING - 9 .debug_str 00002dd6 00000000 00000000 00034942 2**0 + 9 .debug_str 00002de2 00000000 00000000 00034aac 2**0 CONTENTS, READONLY, DEBUGGING - 10 .comment 00000030 00000000 00000000 00037718 2**0 + 10 .comment 00000030 00000000 00000000 0003788e 2**0 CONTENTS, READONLY - 11 .ARM.attributes 00000033 00000000 00000000 00037748 2**0 + 11 .ARM.attributes 00000033 00000000 00000000 000378be 2**0 CONTENTS, READONLY - 12 .debug_frame 00002ad8 00000000 00000000 0003777c 2**2 + 12 .debug_frame 00002ad8 00000000 00000000 000378f4 2**2 CONTENTS, READONLY, DEBUGGING SYMBOL TABLE: 00000000 l d .text 00000000 .text @@ -56,32 +56,32 @@ SYMBOL TABLE: 00000000 l d .debug_frame 00000000 .debug_frame 00000000 l df *ABS* 00000000 vectors.c 00000000 l df *ABS* 00000000 hooks.c -000055b8 l O .text 0000001b firmwareFilename +000055c8 l O .text 0000001b firmwareFilename 20000008 l O .bss 00000228 logfile 00000000 l df *ABS* 00000000 main.c 00000000 l df *ABS* 00000000 ethernet.c -00000210 l F .text 00000084 EthernetPacketGetInternal -00000294 l F .text 00000066 EthernetPacketPutInternal.part.0 +00000220 l F .text 00000084 EthernetPacketGetInternal +000002a4 l F .text 00000066 EthernetPacketPutInternal.part.0 00000000 l df *ABS* 00000000 flashlib.c 00000000 l df *ABS* 00000000 sysctl.c -00000738 l F .text 00000154 SysCtlPeripheralValid -00005618 l O .text 0000006c g_pulXtals -000056a0 l O .text 0000000c g_pulRCGCRegs -000056ac l O .text 0000000c g_pulSRCRRegs +00000748 l F .text 00000154 SysCtlPeripheralValid +00005628 l O .text 0000006c g_pulXtals +000056b0 l O .text 0000000c g_pulRCGCRegs +000056bc l O .text 0000000c g_pulSRCRRegs 00000000 l df *ABS* 00000000 gpio.c -00000c84 l F .text 00000054 GPIOBaseValid +00000c94 l F .text 00000054 GPIOBaseValid 00000000 l df *ABS* 00000000 uartlib.c -00000f28 l F .text 00000020 UARTBaseValid +00000f38 l F .text 00000020 UARTBaseValid 00000000 l df *ABS* 00000000 ssi.c -00001114 l F .text 00000014 SSIBaseValid +00001124 l F .text 00000014 SSIBaseValid 00000000 l df *ABS* 00000000 mmc.c -000012a0 l F .text 00000020 xchg_spi -000012c0 l F .text 00000028 wait_ready -000012e8 l F .text 0000001c deselect -00001304 l F .text 0000002c select -00001330 l F .text 0000007e send_cmd -000013ae l F .text 0000003a xmit_datablock.part.1 -000013e8 l F .text 00000058 rcvr_datablock +000012b0 l F .text 00000020 xchg_spi +000012d0 l F .text 00000028 wait_ready +000012f8 l F .text 0000001c deselect +00001314 l F .text 0000002c select +00001340 l F .text 0000007e send_cmd +000013be l F .text 0000003a xmit_datablock.part.1 +000013f8 l F .text 00000058 rcvr_datablock 20000230 l O .bss 00000004 CardType 20000000 l O .data 00000001 Stat 00000000 l df *ABS* 00000000 netdev.c @@ -90,18 +90,18 @@ SYMBOL TABLE: 20000234 l O .bss 00000040 xcpCtoReqPacket.4387 20000001 l O .data 00000001 comActiveInterface 00000000 l df *ABS* 00000000 xcp.c -00001c0c l F .text 00000014 XcpSetCtoError -000056ff l O .text 00000008 xcpStationId +00001c1c l F .text 00000014 XcpSetCtoError +0000570f l O .text 00000008 xcpStationId 20000274 l O .bss 0000004c xcpInfo 00000000 l df *ABS* 00000000 backdoor.c 200002c0 l O .bss 00000001 backdoorOpen 200002c4 l O .bss 00000004 backdoorOpenTime 00000000 l df *ABS* 00000000 cop.c 00000000 l df *ABS* 00000000 file.c -00001edc l F .text 0000002c FileLibByteNibbleToChar -00001f08 l F .text 0000001e FileLibByteToHexString -00001f28 l F .text 00000058 FileLibHexStringToByte -00001f80 l F .text 00000038 FileLibLongToIntString.constprop.0 +00001eec l F .text 0000002c FileLibByteNibbleToChar +00001f18 l F .text 0000001e FileLibByteToHexString +00001f38 l F .text 00000058 FileLibHexStringToByte +00001f90 l F .text 00000038 FileLibLongToIntString.constprop.0 200002c8 l O .bss 00000040 loggingStr 20000308 l O .bss 00000001 firmwareUpdateState 2000030c l O .bss 00000008 eraseInfo @@ -114,39 +114,39 @@ SYMBOL TABLE: 200008f8 l O .bss 00000004 assert_failure_file 200008fc l O .bss 00000004 assert_failure_line 00000000 l df *ABS* 00000000 ff.c -000026dc l F .text 00000012 mem_cpy -000026ee l F .text 0000001e sum_sfn -0000270c l F .text 0000002a validate -00002736 l F .text 000000ea get_fileinfo -00002820 l F .text 0000001c ld_clust.isra.0 -0000283c l F .text 00000088 check_fs -000028c4 l F .text 0000030c chk_mounted -00002bd0 l F .text 0000004a sync_window.part.2 -00002c1a l F .text 0000000c sync_window -00002c26 l F .text 0000002e move_window -00002c54 l F .text 000000b6 sync_fs -00002dee l F .text 00000084 dir_sdi -00002f64 l F .text 0000009a create_chain -00002ffe l F .text 000000f2 dir_next -000030f0 l F .text 0000012c dir_find.part.6 -0000321c l F .text 0000026c follow_path -00003488 l F .text 0000004e dir_remove -000034d8 l F .text 000000fc dir_read.constprop.8 -000035d4 l F .text 00000054 remove_chain -000036a8 l F .text 000001b0 dir_register +000026ec l F .text 00000012 mem_cpy +000026fe l F .text 0000001e sum_sfn +0000271c l F .text 0000002a validate +00002746 l F .text 000000ea get_fileinfo +00002830 l F .text 0000001c ld_clust.isra.0 +0000284c l F .text 00000088 check_fs +000028d4 l F .text 0000030c chk_mounted +00002be0 l F .text 0000004a sync_window.part.2 +00002c2a l F .text 0000000c sync_window +00002c36 l F .text 0000002e move_window +00002c64 l F .text 000000b6 sync_fs +00002dfe l F .text 00000084 dir_sdi +00002f74 l F .text 0000009a create_chain +0000300e l F .text 000000f2 dir_next +00003100 l F .text 0000012c dir_find.part.6 +0000322c l F .text 0000026c follow_path +00003498 l F .text 0000004e dir_remove +000034e8 l F .text 000000fc dir_read.constprop.8 +000035e4 l F .text 00000054 remove_chain +000036b8 l F .text 000001b0 dir_register 20000900 l O .bss 00000200 LfnBuf 20000b00 l O .bss 00000002 Fsid -000058b2 l O .text 00000080 ExCvt -00005932 l O .text 0000000d LfnOfs +000058c2 l O .text 00000080 ExCvt +00005942 l O .text 0000000d LfnOfs 20000b04 l O .bss 00000004 FatFs 00000000 l df *ABS* 00000000 unicode.c -00005940 l O .text 000001e0 tbl_lower.4259 -00005b20 l O .text 00000100 Tbl -00005c20 l O .text 000001e0 tbl_upper.4260 +00005950 l O .text 000001e0 tbl_lower.4259 +00005b30 l O .text 00000100 Tbl +00005c30 l O .text 000001e0 tbl_upper.4260 00000000 l df *ABS* 00000000 uip.c -000040a0 l F .text 00000038 chksum -000040d8 l F .text 0000003c upper_layer_chksum -00004168 l F .text 0000002c uip_add_rcv_nxt +000040b0 l F .text 00000038 chksum +000040e8 l F .text 0000003c upper_layer_chksum +00004178 l F .text 0000002c uip_add_rcv_nxt 20000b08 l O .bss 00000002 tmp16 20000b0a l O .bss 00000002 ipid 20000b0c l O .bss 00000004 iss @@ -154,11 +154,11 @@ SYMBOL TABLE: 20000b18 l O .bss 00000001 c 20000b19 l O .bss 00000001 opt 00000000 l df *ABS* 00000000 uip_arp.c -00004bb0 l F .text 000000e4 uip_arp_update.constprop.0 +00004bc0 l F .text 000000e4 uip_arp_update.constprop.0 20000b1a l O .bss 00000001 i 20000b1b l O .bss 00000001 tmpage 20000b1c l O .bss 00000060 arp_table -00005e00 l O .text 00000006 broadcast_ethaddr +00005e10 l O .text 00000006 broadcast_ethaddr 20000b7c l O .bss 00000001 c 20000b7d l O .bss 00000001 arptime 20000b7e l O .bss 00000004 ipaddr @@ -172,181 +172,181 @@ SYMBOL TABLE: 00000000 l df *ABS* 00000000 timer.c 20000bcc l O .bss 00000004 millisecond_counter 00000000 l df *ABS* 00000000 flash.c -000050d4 l F .text 00000034 FlashGetSector -00005108 l F .text 0000004c FlashWriteBlock -00005154 l F .text 00000050 FlashSwitchBlock -000051a4 l F .text 00000080 FlashAddToBlock -00005e2c l O .text 000000c0 flashLayout +000050e4 l F .text 00000034 FlashGetSector +00005118 l F .text 0000004c FlashWriteBlock +00005164 l F .text 00000050 FlashSwitchBlock +000051b4 l F .text 00000080 FlashAddToBlock +00005e3c l O .text 000000c0 flashLayout 20000bd0 l O .bss 00000204 bootBlockInfo 20000dd4 l O .bss 00000204 blockInfo 00000000 l df *ABS* 00000000 cstart.c -0000544a l F .text 00000000 zero_loop +0000545a l F .text 00000000 zero_loop 00000000 l df *ABS* 00000000 memcpy-stub.c 00000000 l df *ABS* 00000000 memset.c 00000000 l df *ABS* 00000000 ctype_.c 00000000 l df *ABS* 00000000 00000200 l *ABS* 00000000 __STACKSIZE__ -00001b50 g F .text 00000020 ComInit -0000523c g F .text 00000048 FlashWrite -00003fa0 g F .text 0000004e f_gets -000026c4 g F .text 00000018 AssertFailure -00002d22 g F .text 000000cc get_fat -00000ec0 g F .text 00000034 GPIOPinTypeSSI -00005428 g F .text 00000040 reset_handler -00001278 g F .text 00000028 SSIDataGet -000050a8 g F .text 0000001c TimerUpdate -00001c4c g F .text 00000010 XcpPacketTransmitted -00001b70 g F .text 0000003c ComTask -000011f0 g F .text 00000024 SSIEnable -00000980 g F .text 00000008 SysCtlDelay +00001b60 g F .text 00000020 ComInit +0000524c g F .text 00000048 FlashWrite +00003fb0 g F .text 0000004e f_gets +000026d4 g F .text 00000018 AssertFailure +00002d32 g F .text 000000cc get_fat +00000ed0 g F .text 00000034 GPIOPinTypeSSI +00005438 g F .text 00000040 reset_handler +00001288 g F .text 00000028 SSIDataGet +000050b8 g F .text 0000001c TimerUpdate +00001c5c g F .text 00000010 XcpPacketTransmitted +00001b80 g F .text 0000003c ComTask +00001200 g F .text 00000024 SSIEnable +00000990 g F .text 00000008 SysCtlDelay 20000fd8 g O .bss 00000002 uip_len 20000b12 g O .bss 00000006 uip_ethaddr -00004114 g F .text 00000054 uip_add32 -00001b18 g F .text 0000001e BootInit -00002064 g F .text 0000003e FileSrecVerifyChecksum -00001eb8 g F .text 00000020 BackDoorInit -00001128 g F .text 000000c8 SSIConfigSetExpClk -00001eda g F .text 00000002 CopService -0000601c g .text 00000000 _etext -0000088c g F .text 00000090 SysCtlPeripheralReset -0000407c g F .text 00000024 ff_wtoupper -00000e34 g F .text 00000024 GPIOPinWrite -00001acc g F .text 00000034 netdev_read -00004204 g F .text 00000980 uip_process -00005414 g F .text 00000006 FlashGetUserProgBaseAddress -00005470 g F .text 000000a6 memcpy -000021e0 g F .text 00000328 FileTask -0000107c g F .text 00000024 UARTSpaceAvail -0000509c g F .text 0000000c TimerReset -00001440 g F .text 00000228 disk_initialize +00004124 g F .text 00000054 uip_add32 +00001b28 g F .text 0000001e BootInit +00002074 g F .text 0000003e FileSrecVerifyChecksum +00001ec8 g F .text 00000020 BackDoorInit +00001138 g F .text 000000c8 SSIConfigSetExpClk +00001eea g F .text 00000002 CopService +0000602c g .text 00000000 _etext +0000089c g F .text 00000090 SysCtlPeripheralReset +0000408c g F .text 00000024 ff_wtoupper +00000e44 g F .text 00000024 GPIOPinWrite +00001adc g F .text 00000034 netdev_read +00004214 g F .text 00000980 uip_process +00005424 g F .text 00000006 FlashGetUserProgBaseAddress +00005480 g F .text 000000a6 memcpy +000021f0 g F .text 00000328 FileTask +0000108c g F .text 00000024 UARTSpaceAvail +000050ac g F .text 0000000c TimerReset +00001450 g F .text 00000228 disk_initialize 20000fdc g O .bss 00000004 uip_sappdata -000019a8 g F .text 00000018 netdev_init +000019b8 g F .text 00000018 netdev_init 20000fe0 g O .bss 00000004 uip_acc32 -00004194 g F .text 00000020 uip_ipchksum -000010c8 g F .text 0000002c UARTCharPutNonBlocking -00001b36 g F .text 0000001a BootTask -00005354 g F .text 00000044 FlashWriteChecksum -00001bb0 g F .text 00000030 ComTransmitPacket -000002fc g F .text 0000002c EthernetInitExpClk -00001668 g F .text 00000014 disk_status -000020a4 g F .text 0000013c FileSrecParseLine -000041e8 g F .text 0000001c uip_listen -00001b00 g F .text 00000018 netdev_send -000017c0 g F .text 000001e0 disk_ioctl -00001ff8 g F .text 00000028 FileHandleFirmwareUpdateRequest -00000474 g F .text 0000005c EthernetPacketPut -0000091c g F .text 00000064 SysCtlPeripheralEnable -00003628 g F .text 0000007e gen_numname +000041a4 g F .text 00000020 uip_ipchksum +000010d8 g F .text 0000002c UARTCharPutNonBlocking +00001b46 g F .text 0000001a BootTask +00005364 g F .text 00000044 FlashWriteChecksum +00001bc0 g F .text 00000030 ComTransmitPacket +0000030c g F .text 0000002c EthernetInitExpClk +00001678 g F .text 00000014 disk_status +000020b4 g F .text 0000013c FileSrecParseLine +000041f8 g F .text 0000001c uip_listen +00001b10 g F .text 00000018 netdev_send +000017d0 g F .text 000001e0 disk_ioctl +00002008 g F .text 00000028 FileHandleFirmwareUpdateRequest +00000484 g F .text 0000005c EthernetPacketPut +0000092c g F .text 00000064 SysCtlPeripheralEnable +00003638 g F .text 0000007e gen_numname 20000fe4 g O .bss 00000001 uip_flags -00000158 g F .text 00000030 FileFirmwareUpdateCompletedHook -00001c3c g F .text 00000010 XcpIsConnected -00003ee4 g F .text 000000bc f_unlink -00005054 g F .text 00000004 NvmInit -00005224 g F .text 00000018 FlashInit -00005064 g F .text 00000004 NvmGetUserProgBaseAddress +00000158 g F .text 00000040 FileFirmwareUpdateCompletedHook +00001c4c g F .text 00000010 XcpIsConnected +00003ef4 g F .text 000000bc f_unlink +00005064 g F .text 00000004 NvmInit +00005234 g F .text 00000018 FlashInit +00005074 g F .text 00000004 NvmGetUserProgBaseAddress 200016aa g .bss 00000000 _ebss -00003fee g F .text 00000032 f_putc -00004020 g F .text 0000001e f_puts -0000541c g F .text 0000000c UnusedISR -00000420 g F .text 00000054 EthernetPacketGetNonBlocking -00001bac g F .text 00000002 ComFree -00000e58 g F .text 00000034 GPIOPinTypeEthernetLED -00004f30 g F .text 00000028 UartInit -0000505c g F .text 00000004 NvmErase -000019c0 g F .text 0000010c netdev_init_mac -000010a0 g F .text 00000028 UARTCharGetNonBlocking -00001238 g F .text 00000040 SSIDataPut +00003ffe g F .text 00000032 f_putc +00004030 g F .text 0000001e f_puts +0000542c g F .text 0000000c UnusedISR +00000430 g F .text 00000054 EthernetPacketGetNonBlocking +00001bbc g F .text 00000002 ComFree +00000e68 g F .text 00000034 GPIOPinTypeEthernetLED +00004f40 g F .text 00000028 UartInit +0000506c g F .text 00000004 NvmErase +000019d0 g F .text 0000010c netdev_init_mac +000010b0 g F .text 00000028 UARTCharGetNonBlocking +00001248 g F .text 00000040 SSIDataPut 20000008 g .bss 00000000 _bss -00003d54 g F .text 0000000e f_close -00001c5c g F .text 00000214 XcpPacketReceived -000041b4 g F .text 00000006 uip_tcpchksum -000039b8 g F .text 00000160 f_read -000053e0 g F .text 00000034 FlashDone +00003d64 g F .text 0000000e f_close +00001c6c g F .text 00000214 XcpPacketReceived +000041c4 g F .text 00000006 uip_tcpchksum +000039c8 g F .text 00000160 f_read +000053f0 g F .text 00000034 FlashDone 20000fe8 g O .bss 00000004 uip_appdata 20000fec g O .bss 00000004 uip_conn 20000ff0 g O .bss 00000068 uip_conns -000005f4 g F .text 000000e4 FlashProgram -000019a0 g F .text 00000008 get_fattime -00001c20 g F .text 0000001c XcpInit -00001fb8 g F .text 0000002c FileInit -00000508 g F .text 00000028 EthernetIntStatus -00004d9c g F .text 00000144 uip_arp_out -00005284 g F .text 000000d0 FlashErase -00005518 g F .text 0000009e memset -00000188 g F .text 00000014 FileFirmwareUpdateErrorHook -000001e4 g F .text 0000002c main -00003caa g F .text 000000aa f_sync -00000ad8 g F .text 000001ac SysCtlClockGet -00002020 g F .text 00000044 FileSrecGetLineType -00000f78 g F .text 00000034 UARTDisable -00005068 g F .text 00000012 NvmDone -000003e0 g F .text 00000040 EthernetEnable -00003858 g F .text 00000020 f_mount -00004f58 g F .text 0000006c UartTransmitPacket -00005060 g F .text 00000004 NvmVerifyChecksum -00004f10 g F .text 0000001e CpuMemCopy -00002e72 g F .text 000000f2 put_fat -00003d62 g F .text 00000138 f_lseek -00004cec g F .text 000000b0 uip_arp_arpin -00001bf4 g F .text 00000014 ComGetActiveInterfaceMaxTxLen -00004fc4 g F .text 00000090 UartReceivePacket +00000604 g F .text 000000e4 FlashProgram +000019b0 g F .text 00000008 get_fattime +00001c30 g F .text 0000001c XcpInit +00001fc8 g F .text 0000002c FileInit +00000518 g F .text 00000028 EthernetIntStatus +00004dac g F .text 00000144 uip_arp_out +00005294 g F .text 000000d0 FlashErase +00005528 g F .text 0000009e memset +00000198 g F .text 00000014 FileFirmwareUpdateErrorHook +000001f4 g F .text 0000002c main +00003cba g F .text 000000aa f_sync +00000ae8 g F .text 000001ac SysCtlClockGet +00002030 g F .text 00000044 FileSrecGetLineType +00000f88 g F .text 00000034 UARTDisable +00005078 g F .text 00000012 NvmDone +000003f0 g F .text 00000040 EthernetEnable +00003868 g F .text 00000020 f_mount +00004f68 g F .text 0000006c UartTransmitPacket +00005070 g F .text 00000004 NvmVerifyChecksum +00004f20 g F .text 0000001e CpuMemCopy +00002e82 g F .text 000000f2 put_fat +00003d72 g F .text 00000138 f_lseek +00004cfc g F .text 000000b0 uip_arp_arpin +00001c04 g F .text 00000014 ComGetActiveInterfaceMaxTxLen +00004fd4 g F .text 00000090 UartReceivePacket 00000128 g F .text 00000008 FileGetFirmwareFilenameHook -00000380 g F .text 00000060 EthernetMACAddrSet -00004c94 g F .text 00000058 uip_arp_timer +00000390 g F .text 00000060 EthernetMACAddrSet +00004ca4 g F .text 00000058 uip_arp_timer 20001058 g O .bss 00000002 uip_listenports 2000105a g O .bss 00000004 uip_draddr 20000000 g .data 00000000 _data -00000564 g F .text 00000040 EthernetPHYRead -00003e9c g F .text 00000048 f_stat -00001ed8 g F .text 00000002 CopInit -00001214 g F .text 00000024 SSIDisable -00005058 g F .text 00000004 NvmWrite -00004ee0 g F .text 00000030 CpuStartUserProgram -00002d0a g F .text 00000018 clust2sect +00000574 g F .text 00000040 EthernetPHYRead +00003eac g F .text 00000048 f_stat +00001ee8 g F .text 00000002 CopInit +00001224 g F .text 00000024 SSIDisable +00005068 g F .text 00000004 NvmWrite +00004ef0 g F .text 00000030 CpuStartUserProgram +00002d1a g F .text 00000018 clust2sect 200018ac g .bss 00000000 _estack -00000328 g F .text 00000058 EthernetConfigSet -00005398 g F .text 00000048 FlashVerifyChecksum -00002574 g F .text 0000003c NetTransmitPacket +00000338 g F .text 00000058 EthernetConfigSet +000053a8 g F .text 00000048 FlashVerifyChecksum +00002584 g F .text 0000003c NetTransmitPacket 20000008 g .data 00000000 _edata -00001fe4 g F .text 00000014 FileIsIdle -00004b84 g F .text 00000006 htons -00003b18 g F .text 00000192 f_write +00001ff4 g F .text 00000014 FileIsIdle +00004b94 g F .text 00000006 htons +00003b28 g F .text 00000192 f_write 00000000 g O .text 000000f0 _vectab -000006d8 g F .text 00000060 FlashUserGet -00000ef4 g F .text 00000034 GPIOPinTypeUART -00003878 g F .text 00000140 f_open -00001700 g F .text 000000c0 disk_write -00000e8c g F .text 00000034 GPIOPinTypeGPIOOutput -0000019c g F .text 00000048 FileFirmwareUpdateLogHook +000006e8 g F .text 00000060 FlashUserGet +00000f04 g F .text 00000034 GPIOPinTypeUART +00003888 g F .text 00000140 f_open +00001710 g F .text 000000c0 disk_write +00000e9c g F .text 00000034 GPIOPinTypeGPIOOutput +000001ac g F .text 00000048 FileFirmwareUpdateLogHook 20000004 g O .data 00000004 __ctype_ptr__ -00001c08 g F .text 00000004 ComIsConnected -000004d0 g F .text 00000038 EthernetIntDisable -00005f18 g O .text 00000101 _ctype_ -00000530 g F .text 00000034 EthernetIntClear +00001c18 g F .text 00000004 ComIsConnected +000004e0 g F .text 00000038 EthernetIntDisable +00005f28 g O .text 00000101 _ctype_ +00000540 g F .text 00000034 EthernetIntClear 000000f0 g F .text 00000038 FileIsFirmwareUpdateRequestedHook -000010f4 g F .text 00000020 UARTBusy -000041bc g F .text 0000002c uip_init -00001be0 g F .text 00000014 ComGetActiveInterfaceMaxRxLen -000025b0 g F .text 000000b0 NetReceivePacket -00000cd8 g F .text 00000058 GPIODirModeSet -0000167c g F .text 00000084 disk_read -00001e70 g F .text 00000048 BackDoorCheck +00001104 g F .text 00000020 UARTBusy +000041cc g F .text 0000002c uip_init +00001bf0 g F .text 00000014 ComGetActiveInterfaceMaxRxLen +000025c0 g F .text 000000b0 NetReceivePacket +00000ce8 g F .text 00000058 GPIODirModeSet +0000168c g F .text 00000084 disk_read +00001e80 g F .text 00000048 BackDoorCheck 200016aa g .bss 00000000 _stack 2000105e g O .bss 00000004 uip_netmask 20001062 g O .bss 00000004 uip_hostaddr -00004040 g F .text 0000003c ff_convert -000050c4 g F .text 00000010 TimerGet -00002660 g F .text 00000064 NetApp -00000fac g F .text 000000d0 UARTConfigSetExpClk -00002508 g F .text 0000006c NetInit -00000988 g F .text 00000150 SysCtlClockSet -00000d30 g F .text 00000104 GPIOPadConfigSet -0000507c g F .text 00000020 TimerInit +00004050 g F .text 0000003c ff_convert +000050d4 g F .text 00000010 TimerGet +00002670 g F .text 00000064 NetApp +00000fbc g F .text 000000d0 UARTConfigSetExpClk +00002518 g F .text 0000006c NetInit +00000998 g F .text 00000150 SysCtlClockSet +00000d40 g F .text 00000104 GPIOPadConfigSet +0000508c g F .text 00000020 TimerInit 20001066 g O .bss 00000642 uip_buf -000005a4 g F .text 00000050 FlashClear -00004b8c g F .text 00000024 uip_send +000005b4 g F .text 00000050 FlashClear +00004b9c g F .text 00000024 uip_send 200016a8 g O .bss 00000002 uip_slen 00000130 g F .text 00000028 FileFirmwareUpdateStartedHook -00000f48 g F .text 00000030 UARTEnable +00000f58 g F .text 00000030 UARTEnable diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/hooks.c b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/hooks.c index 15ada88c..d3c45836 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_GCC/Boot/hooks.c @@ -390,13 +390,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while (UARTBusy(UART0_BASE) == true); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while (UARTBusy(UART0_BASE) == true) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/bin/openbtl_ek_lm3s6965.out b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/bin/openbtl_ek_lm3s6965.out index 0f2e9ab7..b96c504a 100644 Binary files a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/bin/openbtl_ek_lm3s6965.out and b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/bin/openbtl_ek_lm3s6965.out differ diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/bin/openbtl_ek_lm3s6965.srec b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/bin/openbtl_ek_lm3s6965.srec index 90fa7de5..e8501f43 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/bin/openbtl_ek_lm3s6965.srec +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/bin/openbtl_ek_lm3s6965.srec @@ -1,19 +1,19 @@ S01B00006F70656E62746C5F656B5F6C6D3373363936352E737265632E -S1130000A0180020B17B0000F57B0000F57B000008 -S1130010F57B0000F57B0000F57B0000F57B00001C -S1130020F57B0000F57B0000F57B0000F57B00000C -S1130030F57B0000F57B0000F57B0000F57B0000FC -S1130040F57B0000F57B0000F57B0000F57B0000EC -S1130050F57B0000F57B0000F57B0000F57B0000DC -S1130060F57B0000F57B0000F57B0000F57B0000CC -S1130070F57B0000F57B0000F57B0000F57B0000BC -S1130080F57B0000F57B0000F57B0000F57B0000AC -S1130090F57B0000F57B0000F57B0000F57B00009C -S11300A0F57B0000F57B0000F57B0000F57B00008C -S11300B0F57B0000F57B0000F57B0000F57B00007C -S11300C0F57B0000F57B0000F57B0000F57B00006C -S11300D0F57B0000F57B0000F57B0000F57B00005C -S11300E0F57B0000F57B0000F57B0000F57B00004C +S1130000A0180020C17B0000057C0000057C0000D6 +S1130010057C0000057C0000057C0000057C0000D8 +S1130020057C0000057C0000057C0000057C0000C8 +S1130030057C0000057C0000057C0000057C0000B8 +S1130040057C0000057C0000057C0000057C0000A8 +S1130050057C0000057C0000057C0000057C000098 +S1130060057C0000057C0000057C0000057C000088 +S1130070057C0000057C0000057C0000057C000078 +S1130080057C0000057C0000057C0000057C000068 +S1130090057C0000057C0000057C0000057C000058 +S11300A0057C0000057C0000057C0000057C000048 +S11300B0057C0000057C0000057C0000057C000038 +S11300C0057C0000057C0000057C0000057C000028 +S11300D0057C0000057C0000057C0000057C000018 +S11300E0057C0000057C0000057C0000057C000008 S11300F003E00B780370491C401C13005A1E002BAC S1130100F7D1704701E00170401C13005A1E002B08 S1130110F9D1704710B400231400621E002C06D0DD @@ -343,7 +343,7 @@ S1131540211250EA012094F820120843E06094F834 S11315501F0294F81E12090451EA006094F81D1247 S113156050EA012094F81C12084320612670DFF829 S1131570D8090088401CDFF8D0190880E0800020DA -S11315802063002020710020F2BD0000C47B000015 +S11315802063002020710020F2BD0000D47B000005 S113159080B500280BD00168002908D001680978BB S11315A0002904D00168C9888288914201D00920A9 S11315B008E00068407800F061FFC00701D503200F @@ -374,8 +374,8 @@ S1131730E0612762F6B2002E19D1A5713900009834 S1131740FFF76BF82061F87FB97F090451EA006064 S1131750797F50EA0120397F0843E0600020A060CF S11317600020A061009820600098C088A08030000C -S1131770C0B20DB0BDE8F083047C0000F07400003A -S1131780407C00002DE9F047050016001F000C0006 +S1131770C0B20DB0BDE8F083147C00000075000019 +S1131780507C00002DE9F047050016001F000C00F6 S1131790002038602800FFF7FBFEC0B2002801D00B S11317A0C0B2E7E0A879000601D50220E2E0A879FA S11317B0C00701D40720DDE0E868A968401AB042F8 @@ -653,7 +653,7 @@ S11328A0F4D111F18000C1B2080080B27047002158 S11328B000E0491C0B4A32F81120002A05D0094ACD S11328C032F8112080B29042F3D1064A32F8112036 S11328D0002A03D0044830F81100FFE780B27047A3 -S11328E030730000706F000050710000B0F1402F91 +S11328E040730000806F000060710000B0F1402F61 S11328F05BD0DFF83813884257D0DFF834138842AE S113290053D0DFF8301388424FD0DFF82C138842BD S11329104BD0DFF82813884247D0DFF824138842CD @@ -718,7 +718,7 @@ S1132CB0002804D140F2EA610F4800F0A3FD02228B S1132CC02900C9B22000FFF775FE0823012229005C S1132CD0C9B22000FFF7AAFE31BD00000000064083 S1132CE00010064000200640003006400040064028 -S1132CF00050064000600640BC770000DFF8C011B9 +S1132CF00050064000600640CC770000DFF8C011A9 S1132D0088420BD0DFF8BC11884207D0DFF8B81135 S1132D10884203D0DFF8B411884201D1012000E0D9 S1132D200020C0B270472DE9F84304000F001500DD @@ -748,7 +748,7 @@ S1132E90E0688007FCD5A56031BD38B504000D009D S1132EA02000FFF72BFF002804D140F27F210848BF S1132EB000F0A8FCE0684007FCD5A068286031BD9C S1132EC0008000400090004000A0004000B000409E -S1132ED018780000DFF8DC13884200F04A81DFF83C +S1132ED028780000DFF8DC13884200F04A81DFF82C S1132EE0D813884200F04581DFF8D013884200F0FF S1132EF04081DFF8CC13884200F03B81DFF8C41333 S1132F00884200F03681DFF8C013884200F0318136 @@ -882,11 +882,11 @@ S11336F01FD5002A18D5530010D5DFF884301340A5 S113370013F1004F03D0002A08D4090506D4400061 S1133710C2F38651491CB0FBF1F00AE0C2F3C55173 S1133720491CB0FBF1F004E0C1F3C351491CB0FBE8 -S1133730F1F030BC704700009C760000055C00F09E -S113374000E50F4000E60F401C7C0000287C0000D0 +S1133730F1F030BC70470000AC760000055C00F08E +S113374000E50F4000E60F402C7C0000387C0000B0 S113375060E00F4058E00F4050E00F4000E00F40A1 S11337600000FF7070E00F408FFFFF7F300000808B -S1133770FCFF3FF80300C0070000404070750000E4 +S1133770FCFF3FF80300C0070000404080750000D4 S11337800008008064E00F40C0E1E4000000011084 S113379000000310001BB7000024F4007038390047 S11337A0C0C62D0000093D0080B500F00EF8114898 @@ -1180,7 +1180,7 @@ S113499048752549087525480088401C2349088026 S11349A021482249098889B2090A81741E481F498D S11349B00988C1741C4800210183FEF79FFFC0438E S11349C019490883164800210170FFF772B80000E6 -S11349D060160020687C000080B2010A51EA0020C1 +S11349D060160020787C000080B2010A51EA0020B1 S11349E080B2704780B501290CDB114A118011494E S11349F00968884206D00E490A8801000D480068FB S1134A0000F038F901BD000054140020971600206E @@ -1320,7 +1320,7 @@ S1135250886410BD80B541680E48806C01F075F912 S1135260002803D13120FFF792FE06E00948FF2110 S1135270C17008480121A0F8441001BD10B5040014 S113528001F032F90348FF21C17002480121A0F85E -S1135290441010BD1C1500201F150020607C000068 +S1135290441010BD1C1500201F150020707C000058 S11352A0201500202315002080B53120FFF76FFE64 S11352B001BD000080B5DFF8C8030078401CDFF8AA S11352C0C0130870DFF8B003002101701EE0DFF89E @@ -1385,8 +1385,8 @@ S1135660FFF708FB0A4808218181084800880E30AA S11356700649088001BD000099160020BC140020D2 S11356809B1600209C1600209A16002086160020E7 S113569004000020601600201A00002020000020D2 -S11356A024000020341600200A0000206C7C000036 -S11356B0587C000068160020801600206416002024 +S11356A024000020341600200A0000207C7C000026 +S11356B0687C000068160020801600206416002014 S11356C06C1600203A00002062B38B0708D0521EEB S11356D011F8013B00F8013B00F024808B07F6D160 S11356E0830740F0208000BF103A07D330B4B1E8FC @@ -1449,7 +1449,7 @@ S1135A60A2411148FDF7CEFE256031BD38B50400D2 S1135A700D000C48844204D040F212510A48FDF74C S1135A80C1FE206AC007FCD4EDB2E80010F0F800B3 S1135A9050F001002062206AC007FCD4206B80B261 -S1135AA032BD000000800440DC750000A025260003 +S1135AA032BD000000800440EC750000A0252600F3 S1135AB0E9F1FEFF10B50400A00504D09C21DFF835 S1135AC06001FDF79FFEDFF85C0140F601210160F3 S1135AD0DFF854010460DFF85401DFF85411016069 @@ -1473,7 +1473,7 @@ S1135BE011FE002C04D140F285210D48FDF70AFE78 S1135BF01748006810F0E04F06D0154800681549B2 S1135C000840B0F1805F02D15FF0FF3006E0124837 S1135C1000682860114800682060002032BD000040 -S1135C203C76000014D00F4000D00F4008D00F4045 +S1135C204C76000014D00F4000D00F4008D00F4035 S1135C30020042A40CD00F40A0E10F4000D10F405D S1135C4030D00F4020D00F40010042A404D00F40B8 S1135C5000E00F400000FF70E0E10F40E4E10F407E @@ -1492,7 +1492,7 @@ S1135D10022807D004D3032806D007E0402006E079 S1135D20002004E0002002E0402000E0402080B297 S1135D307047000000000020AC15002080B5FFF77C S1135D408AF802BD80B5DFF8780600210170DFF81B -S1135D5074160020FBF737FCC0B2002804D07C2165 +S1135D5074160020FBF737FCC0B2002804D077216A S1135D60DFF86406FDF74EFD01BDDFF85406007848 S1135D70002801D1012000E00020704780B5FFF722 S1135D80DDFF012801D1002011E0DFF8340600789E @@ -1500,20 +1500,20 @@ S1135D90002801D000200AE000F0A8FC012805D169 S1135DA0DFF81C0601210170012000E0002002BD83 S1135DB010B50024DFF808060078002800F0FF8101 S1135DC0DFF8FC050078012834D100F0A9FCDFF8E5 -S1135DD0FC0500F0D2FCDFF8F80500F0CEFC00F082 +S1135DD0FC0500F0DAFCDFF8F80500F0D6FC00F072 S1135DE09DFC01220100DFF8EC05FBF705FC00280F -S1135DF007D0DFF8E40500F0C0FC012000F0B3FC9C -S1135E00DDE1DFF8D80500F0B8FCDFF8D40500F0D8 -S1135E10B4FCDFF8D00500F0B0FCDFF8CC050021BD +S1135DF007D0DFF8E40500F0C8FC012000F0BBFC8C +S1135E00DDE1DFF8D80500F0C0FCDFF8D40500F0D0 +S1135E10BCFCDFF8D00500F0B8FCDFF8CC050021AD S1135E200160DFF8C40500214160DFF89405022118 S1135E300170C4E1DFF888050078022840F0F7809B S1135E40DFF890254FF48071DFF8A005FCF780F8A7 S1135E50DFF8701591F83A12C1F3C01111F0010185 -S1135E6001290FDBDFF8700500F087FC022000F049 -S1135E707AFCDFF86005FBF7EAFEDFF84405002151 +S1135E6001290FDBDFF8700500F08FFC022000F041 +S1135E7082FCDFF86005FBF7EAFEDFF84405002149 S1135E8001709CE100281BD00022DFF86415DFF8C4 S1135E905C0500F0D5F9040024B214F1010F0FD110 -S1135EA0DFF8340500F069FC032000F05CFCDFF847 +S1135EA0DFF8340500F071FC032000F064FCDFF837 S1135EB02405FBF7CCFEDFF80805002101707EE124 S1135EC024B2012C28DBDFF82005406800280BD120 S1135ED0DFF81805D0F88001DFF80C150860DFF84A @@ -1523,48 +1523,48 @@ S1135F008001DFF8E4140860DFF8DC04406824B2A0 S1135F102018DFF8D4144860DFF8A804D0F83C0255 S1135F20DFF8A014D1F84012884201D1012000E02A S1135F3000200128C0F243810021DFF89804FBF718 -S1135F4092FE00280FD0DFF8900400F016FC042025 -S1135F5000F009FCDFF87C04FBF779FEDFF860044D -S1135F60002101702BE1DFF8740400F006FCDFF877 -S1135F70840400F002FCDFF88014DFF86C0440684D -S1135F8000F074FADFF8700400F0F7FBDFF86C043B -S1135F9000F0F3FBDFF86014DFF84C040068000E37 +S1135F4092FE00280FD0DFF8900400F01EFC04201D +S1135F5000F011FCDFF87C04FBF779FEDFF8600445 +S1135F60002101702BE1DFF8740400F00EFCDFF86F +S1135F70840400F00AFCDFF88014DFF86C04406845 +S1135F8000F074FADFF8700400F0FFFBDFF86C0433 +S1135F9000F0FBFBDFF86014DFF84C040068000E2F S1135FA0C0B200F052FADFF85814DFF83C0400687D S1135FB0000CC0B200F049FADFF84814DFF82804F6 S1135FC00068000AC0B200F040FADFF83C14DFF8C1 S1135FD018040068C0B200F038FADFF81C0400F0BE -S1135FE0CCFB77A000F0C9FBDFF8FC034168DFF8C5 +S1135FE0D4FB77A000F0D1FBDFF8FC034168DFF8B5 S1135FF0F803006800F0A9FA00280FD1DFF8D803ED -S113600000F0BBFB052000F0AEFBDFF8C803FBF794 +S113600000F0C3FB052000F0B6FBDFF8C803FBF784 S11360101EFEDFF8AC0300210170D0E0DFF8BC0302 -S113602000F0ABFBDFF8980303210170C7E0DFF851 +S113602000F0B3FBDFF8980303210170C7E0DFF849 S113603090030078032840F0C280DFF898234FF4DF S11360408071DFF8A803FBF783FFDFF8781391F87A S11360503A12C1F3C01111F0010101290EDBDFF87E -S1136060AC0300F08AFB022000F07DFBDFF8640340 +S1136060AC0300F092FB022000F085FBDFF8640330 S1136070FBF7EDFDD24800210170A0E000281AD002 S1136080DFF88C23DFF86813DFF8600300F0D8F83A S1136090040024B214F1010F0DD1DFF8780300F0ED -S11360A06CFB032000F05FFBCA48FBF7D0FDC4483B +S11360A074FB032000F067FBCA48FBF7D0FDC4482B S11360B00021017083E024B2012C4CDBD64800F0AF -S11360C05CFBCD4924B2200000F0D0F9CA4800F0AE -S11360D054FBD24800F051FBC749C448D0F88001B2 +S11360C064FBCD4924B2200000F0D0F9CA4800F0A6 +S11360D05CFBD24800F059FBC749C448D0F88001A2 S11360E0000EC0B200F0B1F9C549C048D0F8800133 S11360F0000CC0B200F0A9F9C249BC48D0F8800134 S1136100000AC0B200F0A1F9BF49B848D0F8800134 -S1136110C0B200F09AF9B84800F02FFB28A000F0B4 -S11361202CFBBB4A24B22100B048D0F8800100F017 -S113613008FA00280CD1A84800F01FFB062000F044 -S113614012FBA448FBF783FD9D480021017036E053 -S1136150A24800F012FB9B48D0F83C029949D1F8C0 +S1136110C0B200F09AF9B84800F037FB28A000F0AC +S113612034FBBB4A24B22100B048D0F8800100F00F +S113613008FA00280CD1A84800F027FB062000F03C +S11361401AFBA448FBF783FD9D480021017036E04B +S1136150A24800F01AFB9B48D0F83C029949D1F8B8 S11361604012884201D1012000E00020012826DBF2 -S1136170AB4800F002FB00F0F4F900280CD196487B -S113618000F0FBFA072000F0EEFA9248FBF75FFDFF -S11361908B480021017012E0904800F0EEFAA1480B -S11361A000F0EBFA8B48FBF752FD9F4800F0E5FA4C +S1136170AB4800F00AFB00F0F4F900280CD1964873 +S113618000F003FB072000F0F6FA9248FBF75FFDEE +S11361908B480021017012E0904800F0F6FAA14803 +S11361A000F0F3FA8B48FBF752FD9F4800F0EDFA3C S11361B083480021017000F0C4FA00F095F910BD85 -S11361C02E2E2E0010B50400207800F001FB532879 -S11361D004D1607800F000FB002801D103200FE017 +S11361C02E2E2E0010B50400207800F009FB532871 +S11361D004D1607800F008FB002801D103200FE00F S11361E06078312801D100200AE06078322801D19A S11361F0012005E06078332801D1022000E003206B S113620010BD70B504000026A41C200000F047F95E @@ -1572,7 +1572,7 @@ S11362100500AE19A41C200000F041F986196D1E7A S1136220A41CADB2022DF6DAF6B2F643200000F05B S113623036F9F6B2864201D0002000E0012070BD9C S11362402DE9F04105000E0014005FF00008002E57 -S113625001D0002D04D140F236215B48FDF7D2FA7B +S113625001D0002D04D140F231215B48FDF7D2FA80 S11362602800FFF7AFFF0700FFB2032F01D1002082 S1136270A3E02800FFF7C5FF002802D15FF0FF303C S11362809BE0FFB2002F03D0022F5AD028D392E014 @@ -1595,15 +1595,15 @@ S11363800080280000F08BF810EB08003060AD1C92 S1136390B7F10508002C0DD0002606E0280000F017 S11363A07EF8B6B23055AD1C761CB6B20FFA88F83A S11363B04645F3DBFFE7404600B2BDE8F08100004C -S11363C093160020480600205C790000387A00000B -S11363D0E87900007C080020487C0000507C000024 -S11363E05C7A00008C7900002C160020D01200206A -S11363F050140020107C0000EC150020EC7A000002 -S1136400EE150020F0150020F2150020807A00001F -S1136410D0130020A47A0000D47B0000407B00004D -S1136420087B0000587B0000BC79000080B50100A7 +S11363C093160020480600206C790000487A0000EB +S11363D0F87900007C080020587C0000607C0000F4 +S11363E06C7A00009C7900002C160020D01200204A +S11363F050140020207C0000EC150020FC7A0000E2 +S1136400EE150020F0150020F2150020907A00000F +S1136410D0130020B47A0000E47B0000507B00001D +S1136420187B0000687B0000CC79000080B5010077 S113643011F00F003030C9B20A2901DBC01D02E09F -S1136440C0B200F0C5F9C0B202BD38B504000D00F9 +S1136440C0B200F0CDF9C0B202BD38B504000D00F1 S1136450E4B22009FFF7EAFF287014F00F00FFF7F9 S1136460E5FF68700020A870280032BD0200491CB6 S11364700A23B2FBF3F2002AF9D100220A700200C7 @@ -1611,25 +1611,25 @@ S1136480491E0A20B2FBF0F300FB132030300870E1 S11364900A20B2FBF0F2002AF2D10800704770B56E S11364A004000025002609E03038C0B20A2800DBC9 S11364B0C01FEDB2C0B210EB0515761CF6B2022E69 -S11364C00FDAF6B2305D00F083F9C0B2B0F13001FA +S11364C00FDAF6B2305D00F08BF9C0B2B0F13001F2 S11364D0172904D2C0B2B0F13A010729E4D200204E S11364E001E02800C0B270BD80B500F032F8002889 S11364F00DD0FFF7DBFBFDF768F900F02EF8044937 S113650008400449086000F028F84068804701BD4D S113651080FFFF1F08ED00E070B504000D001600B9 S113652005E0287820706D1C641CFDF778F93000B4 -S1136530461E80B20028F4D170BD80B500F054F935 -S113654001BD80B500F05BF902BD80B500F081F9B2 -S113655002BD80B500F0DAF902BD80B500F019FA89 -S113656002BD80B500F08FF9002801D1002001E0C0 -S113657000F0F4F902BD10B5040010000A00010097 -S1136580200000F055FB200010BD000080B54F48EE +S1136530461E80B20028F4D170BD80B500F05CF92D +S113654001BD80B500F063F902BD80B500F089F9A2 +S113655002BD80B500F0E2F902BD80B500F021FA79 +S113656002BD80B500F097F9002801D1002001E0B8 +S113657000F0FCF902BD10B5040010000A0001008F +S1136580200000F05DFB200010BD000080B54F48E6 S1136590FCF759FEFCF7D4FF60234FF4614201007D -S11365A04B4800F09EFB01BD70B504000D00EDB238 -S11365B0412D03DB60214748FDF724F92800C0B2D0 -S11365C000F071F8C0B2012803D064214148FDF7FE +S11365A04B4800F0A6FB01BD70B504000D00EDB230 +S11365B0412D03DB5B214748FDF724F92800C0B2D5 +S11365C000F071F8C0B2012803D05F214148FDF703 S11365D019F900260DE0FDF722F9B6B2305D00F09E -S11365E062F8C0B2012803D06D213A48FDF70AF9D8 +S11365E062F8C0B2012803D068213A48FDF70AF9DD S11365F0761C2800C0B2B6B280B28642EBD370BD1E S113660010B5040034480078002813D1334800F052 S11366103DF8012838D131480078002834D0FDF7FE @@ -1640,355 +1640,356 @@ S11366502448007821490978884215D121480278D4 S113666092B221492000FFF757FF1B480021017017 S113667001200AE0FDF7B7F819490968643181423D S113668002D2154800210170002010BD10B504008D -S11366900F4800F0E4FB10F1010F02D0207001203C +S11366900F4800F0ECFB10F1010F02D02070012034 S11366A000E0002010BD80B50100C9B2084800F028 -S11366B0EBFB002803D1002007E0FDF7B0F8044805 -S11366C000F0B7FB0028F8D0012002BD0100001043 -S11366D000C00040B878000095160020681500201E +S11366B0F3FB002803D1002007E0FDF7B0F80448FD +S11366C000F0BFFB0028F8D0012002BD010000103B +S11366D000C00040C878000095160020681500200E S11366E05C160020941600206915002000B589B0BE -S11366F000A8202100F00CFC00A93148FBF790FB16 +S11366F000A8202100F014FC00A93548FBF790FB0A S1136700002808D10098002805D09DF80800C0068C -S113671001D4012000E0002009B000BD28487047E2 -S113672080B52848002180F824120A2226492548E9 -S1136730FAF762FF002803D12248012180F82412CD -S113674001BD80B51F4890F82402012802D11D48DC -S1136750FBF77DFA1D4800F0ADFB0128FAD018487C -S1136760FBF788FB01BD80B5164890F82402012888 -S113677002D11448FBF76BFA01BD10B504001148AF -S113678090F82402012817D10E492000FBF723FCBE -S1136790002811D50B48002180F824120948FBF782 -S11367A056FA09E02178094800F06EFB074800F02A -S11367B040FB0028FAD0641C20780028F2D110BDD8 -S11367C0247B0000A00A0020E47B000000C00040FD -S11367D080B500F0A0FB02BD30380A2801D20120A8 -S11367E000E00020C0B27047DFF838045FF0FF31EA -S11367F00160DFF834045FF0FF310160704770B569 -S113680004000D001600200000F0A8F9FF2805D0B0 -S11368102819401E00F0A2F9FF2801D1002017E03A -S1136820600A4FF400714843DFF800140968884295 -S113683007D12B0032002100DFF8EC0300F0E4F86C -S113684006E02B0032002100DFF8D80300F0DCF86A -S113685070BD70B504000D00200000F07FF9060043 -S11368602819401E00F07AF9F6B2FF2E02D0C0B209 -S1136870FF2801D1002005E00100C9B23000C0B2F8 -S113688000F02FF970BD80B500200090DFF8980368 -S1136890006810F1010F01D1012036E00098DFF803 -S11368A088134968081800900098DFF87C138968F9 -S11368B0081800900098DFF87013C9680818009051 -S11368C00098DFF864130969081800900098DFF84D -S11368D058134969081800900098DFF84C13896927 -S11368E0081800900098DFF84013C9690818009050 -S11368F00098C04300900098401C009000AA042116 -S1136900CA480068F030FFF77AFF02BD0020C7498B -S1136910096809680818C549096849680818C34915 -S1136920096889680818C1490968C9680818BF490D -S1136930096809690818BD49096849690818BB4903 -S1136940096889690818B9490968D1F8F010081864 -S1136950002801D1012000E00020704780B5B24832 -S1136960006810F1010F06D0AF4800F090F800283D -S113697001D100200CE0AB48006810F1010F06D0F3 -S1136980A84800F084F8002801D1002000E001208C -S113699002BDA6480068704780B54FF40072B1FB91 -S11369A0F2F303FB1213002B01D000200BE002686A -S11369B08A4201D1012006E001604FF40072001DFB -S11369C0FFF7AAFD012002BD38B504000D0096486A -S11369D0844208D1934C29002000FFF7DDFF0028F2 -S11369E010D100200FE091480068854203D18E4CFD -S11369F08E480568EFE7200000F049F80028EAD146 -S1136A00002000E0200032BD2DE9F04104000F0019 -S1136A1015001E00780A4FF4007101FB00F820688D -S1136A2010F1010F07D141462000FFF7B5FF002800 -S1136A3001D1002029E02068404508D041462000CB -S1136A40FFF7C2FF0400002C01D100201DE02068E4 -S1136A50381A0019071DFCF7E2FE201D381AB0F59C -S1136A60007F0AD318F500712000FFF7ADFF040082 -S1136A70002C01D1002008E0271D287838707F1CE5 -S1136A806D1C761E002EE6D10120BDE8F081F8B51C -S1136A9005000124286800F061F8C0B2FF2801D184 -S1136AA000201DE0002600E0761C802E16D2286807 -S1136AB010EB860715EB860040680090FCF7AFFEEC -S1136AC00422390000A8FFF71CF8002801D0002494 -S1136AD004E0386800998842E6D000242000C0B25F -S1136AE0F2BD70B50D00EDB2C0B2854201D20020F6 -S1136AF033E04E49097AC0B2884205D34B4991F834 -S1136B00BC10EDB2A94201D2002026E0C0B200F0D0 -S1136B104FF804002800C0B200F04AF8060028002C -S1136B20C0B200F062F88019401E001B401C850AA8 -S1136B30002600E0761CB6B2ADB2AE420CD2FCF731 -S1136B406EFEB6B24FF4806000FB0640FEF7B2FF63 -S1136B500028EFD0002000E0012070BD38B504000B -S1136B60002500E06D1CEDB2102D1FD2FCF757FE7E -S1136B70EDB20C202D4900FB051000688442F1D3CE -S1136B80EDB20C20294900FB05100068EDB20C2180 -S1136B90264A01FB0521496808188442E2D2EDB275 -S1136BA00C20224900FB0510007A00E0FF2032BDD2 -S1136BB038B50400002500E06D1CEDB2102D11D293 -S1136BC0FCF72DFEEDB20C20184900FB0510007AED -S1136BD0E4B2A042F0D1EDB20C20144900FB051040 -S1136BE0006801E05FF0FF3032BD38B504000025D5 -S1136BF000E06D1CEDB2102D11D2FCF710FEEDB2C9 -S1136C000C200A4900FB0510007AE4B2A042F0D13E -S1136C10EDB20C20054900FB0510406800E000209F -S1136C2032BD0000C80C0020CC0E002030740000DF -S1136C3062F30F2262F31F42401810F0030308D0DE -S1136C40C91A1FD3DB0748BF00F8012D28BF20F85D -S1136C50022D130030B414461546103928BF20E91C -S1136C603C00FAD8490728BF20E90C0048BF40F887 -S1136C70042D890028BF20F8022D48BF00F8012DFB -S1136C8030BC7047C91818BF00F8012DCB0728BFC6 -S1136C9000F8012D70470000DFF83C1288421BD039 -S1136CA0DFF83812884217D0DFF83412884213D044 -S1136CB0DFF8301288420FD0DFF82C1288420BD054 -S1136CC0DFF82812884207D0DFF82412884203D064 -S1136CD0DFF82012884201D1012000E00020C0B278 -S1136CE07047F8B504000E0017001D002000FFF7E0 -S1136CF0D3FF002805D14FF4B071DFF8FC01FCF795 -S1136D0081FD002F05D140F26111DFF8EC01FCF7A1 -S1136D1079FDDFF8E801006810F0E04F27D0DFF8D4 -S1136D20DC010068DFF8D8110840B0F1805F1ED0A4 -S1136D30DFF8C8010068DFF8C8110840DFF8C411A3 -S1136D40884205D1DFF8B401006880B202280ED071 -S1136D50DFF8A8010068DFF8A8110840DFF8A811DF -S1136D60884206D1DFF894010068000401D11020A4 -S1136D7000E0082000FB07F0864205D24FF4B17111 -S1136D80DFF87401FCF73EFD200000F038F8B6EBA4 -S1136D90071F05D2206B50F0200020637F0803E01A -S1136DA0206B30F020002063F000B0FBF7F0401CB3 -S1136DB04008810961624021B0FBF1F202FB11023B -S1136DC0A262E5620020A061200000F001F8F1BD9C -S1136DD010B504002000FFF75FFF002805D14FF431 -S1136DE0FB71DFF81401FCF70DFDE06A50F01000B0 -S1136DF0E062206B40F201310843206310BD10B5FE -S1136E0004002000FFF748FF002805D140F21621B6 -S1136E10DFF8E400FCF7F6FCA0690007FCD4E06AA4 -S1136E2030F01000E062206BDFF8E01008402063CF -S1136E3010BD10B504002000FFF72EFF002805D177 -S1136E4040F25541DFF8B000FCF7DCFCA069C0F368 -S1136E50401010F0010090F00100C0B210BD10B558 -S1136E6004002000FFF718FF002805D140F2764106 -S1136E70DFF88400FCF7C6FCA069C00601D42068D2 -S1136E8001E05FF0FF3010BD38B504000D002000B4 -S1136E90FFF702FF002804D140F2C9411648FCF76D -S1136EA0B1FCA069800603D4EDB22560012000E0A6 -S1136EB0002032BD10B504002000FFF7EDFE0028CD -S1136EC004D140F23B510C48FCF79CFCA069C0F390 -S1136ED0C00010F0010010BD00C0004000D0004010 -S1136EE000E0004000F000400000014000100140BC -S1136EF00020014000300140FC76000000E00F401B -S1136F000000FF700000011000000310FEFCFFFFF2 -S1136F10002200F00BB810B50400200000F01FF8A8 -S1136F20002801D0203CFFE7200010BD00B500BFC1 -S1136F30130096469446103928BFA0E80C50FAD89E -S1136F405FEA417C28BF0CC048BF40F8042BC90746 -S1136F5028BF20F8022B48BF00F8012B00BD613880 -S1136F601A2801D2012000E00020C0B270470000BE -S1136F7061006200630064006500660067006800E9 -S1136F8069006A006B006C006D006E006F00700099 -S1136F907100720073007400750076007700780049 -S1136FA079007A00A100A200A300A500AC00AF0004 -S1136FB0E000E100E200E300E400E500E600E700B1 -S1136FC0E800E900EA00EB00EC00ED00EE00EF0061 -S1136FD0F000F100F200F300F400F500F600F80010 -S1136FE0F900FA00FB00FC00FD00FE00FF000101B7 -S1136FF003010501070109010B010D010F01110135 -S113700013011501170119011B011D011F012101A4 -S113701023012501270129012B012D012F01310114 -S11370203301350137013A013C013E01400142017F -S11370304401460148014B014D014F0151015301E7 -S11370405501570159015B015D015F016101630154 -S11370506501670169016B016D016F0171017301C4 -S1137060750177017A017C017E019201B103B203BB -S1137070B303B403B503B603B703B803B903BA0340 -S1137080BB03BC03BD03BE03BF03C003C103C303EF -S1137090C403C503C603C703C803C903CA03300432 -S11370A03104320433043404350436043704380418 -S11370B039043A043B043C043D043E043F044004C8 -S11370C04104420443044404450446044704480478 -S11370D049044A044B044C044D044E044F04510427 -S11370E052045304540455045604570458045904D0 -S11370F05A045B045C045E045F04702171217221F4 -S113710073217421752176217721782179217A21BF -S11371107B217C217D217E217F2141FF42FF43FF92 -S113712044FF45FF46FF47FF48FF49FF4AFF4BFF27 -S11371304CFF4DFF4EFF4FFF50FF51FF52FF53FFD7 -S113714054FF55FF56FF57FF58FF59FF5AFF0000E1 -S11371504100420043004400450046004700480007 -S113716049004A004B004C004D004E004F005000B7 -S11371705100520053005400550056005700580067 -S113718059005A002100E0FFE1FFE5FFE2FFE3FFC1 -S1137190C000C100C200C300C400C500C600C700CF -S11371A0C800C900CA00CB00CC00CD00CE00CF007F -S11371B0D000D100D200D300D400D500D600D8002E -S11371C0D900DA00DB00DC00DD00DE00780100011C -S11371D002010401060108010A010C010E0110015B -S11371E012011401160118011A011C011E012001CB -S11371F022012401260128012A012C012E0130013B -S113720032013401360139013B013D013F014101A5 -S11372104301450147014A014C014E01500152010D -S11372205401560158015A015C015E01600162017A -S11372306401660168016A016C016E0170017201EA -S11372407401760179017B017D019101910392031F -S113725093039403950396039703980399039A035E -S11372609B039C039D039E039F03A003A103A3030D -S1137270A403A503A603A703A803A903AA03100450 -S11372801104120413041404150416041704180436 -S113729019041A041B041C041D041E041F042004E6 -S11372A02104220423042404250426042704280496 -S11372B029042A042B042C042D042E042F04010475 -S11372C0020403040404050406040704080409046E -S11372D00A040B040C040E040F04602161216221D2 -S11372E063216421652166216721682169216A215E -S11372F06B216C216D216E216F2121FF22FF23FF61 -S113730024FF25FF26FF27FF28FF29FF2AFF2BFF45 -S11373102CFF2DFF2EFF2FFF30FF31FF32FF33FFF5 -S113732034FF35FF36FF37FF38FF39FF3AFF0000DF -S1137330C700FC00E900E200E400E000E500E7002B -S1137340EA00EB00E800EF00EE00EC00C400C5002A -S1137350C900E600C600F400F600F200FB00F900E4 -S1137360FF00D600DC00A200A300A500A720920124 -S1137370E100ED00F300FA00F100D100AA00BA0028 -S1137380BF001023AC00BD00BC00A100AB00BB00DB -S113739091259225932502252425612562255625CC -S11373A055256325512557255D255C255B2510252D -S11373B0142534252C251C2500253C255E255F2518 -S11373C05A25542569256625602550256C25672591 -S11373D068256425652559255825522553256B258F -S11373E06A2518250C25882584258C25902580253B -S11373F0B103DF009303C003A303C303B500C403B5 -S1137400A6039803A903B4031E22C603B5032922C5 -S11374106122B1006522642220232123F70048223F -S1137420B0001922B7001A227F20B200A025A000C4 -S113743000800000002000000400000000A0000004 -S1137440002000000500000000C000000020000033 -S11374500600000000E0000000200000070000001B -S113746000000100002000000800000000200100CE -S1137470002000000900000000400100002000007E -S11374800A00000000600100002000000B00000062 -S113749000800100002000000C00000000A001009A -S11374A0002000000D00000000C0010000200000CA -S11374B00E00000000E00100002000000F000000AA -S11374C000000200008000001000000000800200A4 -S11374D00080000011000000000003000080000094 -S11374E01200000000800300008000001300000070 -S11374F0809A90418E418F804545454949498E8FF8 -S11375009092924F994F555559999A9B9C9D9E9F45 -S113751041494F55A5A5A6A7A8A9AAABAC21AEAFD2 -S1137520B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFDF -S1137530C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFCF -S1137540D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFBF -S1137550E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFAF -S1137560F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF9F -S113757040420F0000201C0080841E000080250073 -S1137580999E36000040380000093D0000803E000E -S113759000004B00404B4C0000204E00808D5B00EF -S11375A000C05D000080700000127A0000007D00C1 -S11375B080969800001BB7000080BB00C0E8CE0096 -S11375C0647ADA000024F4000000FA0080A81201B2 -S11375D0002D310100366E0140787D01433A5C573D -S11375E06F726B5C736F6674776172655C4F706504 -S11375F06E424C545C5461726765745C44656D6F93 -S11376005C41524D434D335F4C4D33535F454B5FAB -S11376104C4D3353363936355F4941525C426F6FB6 -S1137620745C6C69625C6472697665726C69625CD4 -S113763065746865726E65742E630000433A5C5726 -S11376406F726B5C736F6674776172655C4F7065A3 -S11376506E424C545C5461726765745C44656D6F32 -S11376605C41524D434D335F4C4D33535F454B5F4B -S11376704C4D3353363936355F4941525C426F6F56 -S1137680745C6C69625C6472697665726C69625C74 -S1137690666C6173686C69622E630000433A5C57E0 -S11376A06F726B5C736F6674776172655C4F706543 -S11376B06E424C545C5461726765745C44656D6FD2 -S11376C05C41524D434D335F4C4D33535F454B5FEB -S11376D04C4D3353363936355F4941525C426F6FF6 -S11376E0745C6C69625C6472697665726C69625C14 -S11376F073797363746C2E6300000000433A5C5723 -S11377006F726B5C736F6674776172655C4F7065E2 -S11377106E424C545C5461726765745C44656D6F71 -S11377205C41524D434D335F4C4D33535F454B5F8A -S11377304C4D3353363936355F4941525C426F6F95 -S1137740745C6C69625C6472697665726C69625CB3 -S1137750756172746C69622E6300000080B515480F -S113776001210170FCF73FF81349086000F001F8AB -S113777001BD80B5FEF7E2FA012819D0FEF7F5FA4B -S1137780002815D00B480078012811D1FCF72BF8FC -S11377900949096801F51C511031884208D305488C -S11377A000210170FEF7EAFA002801D1FEF79CFEE1 -S11377B001BD00009216002044160020433A5C5795 -S11377C06F726B5C736F6674776172655C4F706522 -S11377D06E424C545C5461726765745C44656D6FB1 -S11377E05C41524D434D335F4C4D33535F454B5FCA -S11377F04C4D3353363936355F4941525C426F6FD5 -S1137800745C6C69625C6472697665726C69625CF2 -S11378106770696F2E630000433A5C576F726B5C4C -S1137820736F6674776172655C4F70656E424C5419 -S11378305C5461726765745C44656D6F5C41524D64 -S1137840434D335F4C4D33535F454B5F4C4D335386 -S1137850363936355F4941525C426F6F745C6C69EE -S1137860625C6472697665726C69625C7373692EBA -S113787063000000433A5C576F726B5C736F66740D -S1137880776172655C4F70656E424C545C546172F2 -S11378906765745C536F757263655C41524D434D0B -S11378A0335F4C4D33535C4941525C766563746F6E -S11378B072732E6300000000433A5C576F726B5C76 -S11378C0736F6674776172655C4F70656E424C5479 -S11378D05C5461726765745C536F757263655C4177 -S11378E0524D434D335F4C4D33535C756172742E6E -S11378F06300000080B5FBF791FFFBF755FFFEF72F -S11379001CFEFEF71FFAFEF7ABF9FFF727FF01BDD8 -S113791080B5FBF784FFFBF75CFFFEF749FAFEF73F -S1137920ADF9FFF726FF01BD80B500F005F8FFF7BC -S1137930E1FFFFF7EDFFFCE780B50648FBF7FCFC31 -S11379400548FBF780FC03215FF04020FBF7AAF910 -S113795001BD00008003C00101000020433A5C57D0 -S11379606F726B5C736F6674776172655C4F706580 -S11379706E424C545C5461726765745C536F7572EB -S113798063655C66696C652E630000005061727308 -S1137990696E67206669726D776172652066696CCD -S11379A06520746F206F627461696E206572617303 -S11379B0652073697A652E2E2E0000004669726D6B -S11379C07761726520757064617465207375636393 -S11379D065737366756C6C7920636F6D706C657418 -S11379E065640A0D000000004F70656E696E6720C3 -S11379F06669726D776172652066696C6520666F71 -S1137A00722072656164696E672E2E2E000000007C -S1137A1010B5074979441831064C7C44163404E007 -S1137A200A68081D511888470146A142F8D110BDC3 -S1137A3098000000B80000004669726D77617265B5 -S1137A402075706461746520726571756573742046 -S1137A5064657465637465640A0D0000537461722F -S1137A6074696E67207468652070726F6772616DE7 -S1137A706D696E672073657175656E63650A0D00C7 -S1137A8052656164696E67206C696E652066726F09 -S1137A906D2066696C652E2E2E4552524F520A0D8A -S1137AA000000000496E76616C6964206368656358 -S1137AB06B73756D20666F756E642E2E2E45525253 -S1137AC04F520A0D00000000BBD1FFFF9C160000BE -S1137AD004000020000000002BA5FFFF04000000AC -S1137AE09001000000000020000000002062797472 -S1137AF065732066726F6D206D656D6F727920619C -S1137B00742030780000000057726974696E672031 -S1137B1070726F6772616D20636865636B73756DF6 -S1137B202E2E2E002F64656D6F70726F675F656B0C -S1137B305F6C6D3373363936352E737265630000AE -S1137B4020627974657320746F206D656D6F72792E -S1137B502061742030780000436C6F73696E672075 -S1137B606669726D776172652066696C650A0D00DD -S1137B7000F009F8002801D0FFF74AFF0020FFF7C2 -S1137B80D3FE00F002F80120704700F001B80000B5 -S1137B900746384600F002F8FBE7000080B5C0460F -S1137BA0C046024A11001820ABBEFBE726000200C3 -S1137BB0034B9D46C046C046C046C046FFF7D8FFAB -S1137BC0A018002001030507090E10121416181C32 -S1137BD01E00000050726F6772616D6D696E6720E0 -S1137BE0000000002F626F6F746C6F672E747874DE -S1137BF00000000080B541210148FBF703FE01BDF0 -S1137C0074780000222A3A3C3E3F7C7F000000004A -S1137C1045726173696E67200000000040E00F4008 -S1137C2044E00F4048E00F4000E10F4004E10F4002 -S1137C3008E10F40C046C046C046C046FFF798FF63 -S1137C402B2C3B3D5B5D00004552524F520A0D0008 -S1137C504F4B0A0D00000000FFFFFFFFFFFF000075 -S1137C604F70656E424C540000000000FFFFFFFFA0 -S1077C700401000007 -S9037C354B +S113671001D4012000E0002009B000BD2C487047DE +S113672080B52C48002180F824120A222A492948DD +S1136730FAF762FF002803D12648012180F82412C9 +S113674001BD10B5234890F82402012802D1214844 +S1136750FBF77DFAFDF747F810F164041F4800F0D9 +S1136760B1FB012803D1FDF73EF88442F6D2184864 +S1136770FBF780FB10BD80B5164890F82402012871 +S113678002D11448FBF763FA01BD10B504001148A7 +S113679090F82402012817D10E492000FBF71BFCB6 +S11367A0002811D50B48002180F824120948FBF772 +S11367B04EFA09E02178094800F06EFB074800F022 +S11367C040FB0028FAD0641C20780028F2D110BDC8 +S11367D0347B0000A00A0020F47B000000C00040CD +S11367E080B500F0A0FB02BD30380A2801D2012098 +S11367F000E00020C0B27047DFF838045FF0FF31DA +S11368000160DFF834045FF0FF310160704770B558 +S113681004000D001600200000F0A8F9FF2805D0A0 +S11368202819401E00F0A2F9FF2801D1002017E02A +S1136830600A4FF400714843DFF800140968884285 +S113684007D12B0032002100DFF8EC0300F0E4F85C +S113685006E02B0032002100DFF8D80300F0DCF85A +S113686070BD70B504000D00200000F07FF9060033 +S11368702819401E00F07AF9F6B2FF2E02D0C0B2F9 +S1136880FF2801D1002005E00100C9B23000C0B2E8 +S113689000F02FF970BD80B500200090DFF8980358 +S11368A0006810F1010F01D1012036E00098DFF8F3 +S11368B088134968081800900098DFF87C138968E9 +S11368C0081800900098DFF87013C9680818009041 +S11368D00098DFF864130969081800900098DFF83D +S11368E058134969081800900098DFF84C13896917 +S11368F0081800900098DFF84013C9690818009040 +S11369000098C04300900098401C009000AA042105 +S1136910CA480068F030FFF77AFF02BD0020C7497B +S1136920096809680818C549096849680818C34905 +S1136930096889680818C1490968C9680818BF49FD +S1136940096809690818BD49096849690818BB49F3 +S1136950096889690818B9490968D1F8F010081854 +S1136960002801D1012000E00020704780B5B24822 +S1136970006810F1010F06D0AF4800F090F800282D +S113698001D100200CE0AB48006810F1010F06D0E3 +S1136990A84800F084F8002801D1002000E001207C +S11369A002BDA6480068704780B54FF40072B1FB81 +S11369B0F2F303FB1213002B01D000200BE002685A +S11369C08A4201D1012006E001604FF40072001DEB +S11369D0FFF7A2FD012002BD38B504000D00964862 +S11369E0844208D1934C29002000FFF7DDFF0028E2 +S11369F010D100200FE091480068854203D18E4CED +S1136A008E480568EFE7200000F049F80028EAD135 +S1136A10002000E0200032BD2DE9F04104000F0009 +S1136A2015001E00780A4FF4007101FB00F820687D +S1136A3010F1010F07D141462000FFF7B5FF0028F0 +S1136A4001D1002029E02068404508D041462000BB +S1136A50FFF7C2FF0400002C01D100201DE02068D4 +S1136A60381A0019071DFCF7DAFE201D381AB0F594 +S1136A70007F0AD318F500712000FFF7ADFF040072 +S1136A80002C01D1002008E0271D287838707F1CD5 +S1136A906D1C761E002EE6D10120BDE8F081F8B50C +S1136AA005000124286800F061F8C0B2FF2801D174 +S1136AB000201DE0002600E0761C802E16D22868F7 +S1136AC010EB860715EB860040680090FCF7A7FEE4 +S1136AD00422390000A8FFF714F8002801D000248C +S1136AE004E0386800998842E6D000242000C0B24F +S1136AF0F2BD70B50D00EDB2C0B2854201D20020E6 +S1136B0033E04E49097AC0B2884205D34B4991F823 +S1136B10BC10EDB2A94201D2002026E0C0B200F0C0 +S1136B204FF804002800C0B200F04AF8060028001C +S1136B30C0B200F062F88019401E001B401C850A98 +S1136B40002600E0761CB6B2ADB2AE420CD2FCF721 +S1136B5066FEB6B24FF4806000FB0640FEF7AAFF63 +S1136B600028EFD0002000E0012070BD38B50400FB +S1136B70002500E06D1CEDB2102D1FD2FCF74FFE76 +S1136B80EDB20C202D4900FB051000688442F1D3BE +S1136B90EDB20C20294900FB05100068EDB20C2170 +S1136BA0264A01FB0521496808188442E2D2EDB265 +S1136BB00C20224900FB0510007A00E0FF2032BDC2 +S1136BC038B50400002500E06D1CEDB2102D11D283 +S1136BD0FCF725FEEDB20C20184900FB0510007AE5 +S1136BE0E4B2A042F0D1EDB20C20144900FB051030 +S1136BF0006801E05FF0FF3032BD38B504000025C5 +S1136C0000E06D1CEDB2102D11D2FCF708FEEDB2C0 +S1136C100C200A4900FB0510007AE4B2A042F0D12E +S1136C20EDB20C20054900FB0510406800E000208F +S1136C3032BD0000C80C0020CC0E002040740000BF +S1136C4062F30F2262F31F42401810F0030308D0CE +S1136C50C91A1FD3DB0748BF00F8012D28BF20F84D +S1136C60022D130030B414461546103928BF20E90C +S1136C703C00FAD8490728BF20E90C0048BF40F877 +S1136C80042D890028BF20F8022D48BF00F8012DEB +S1136C9030BC7047C91818BF00F8012DCB0728BFB6 +S1136CA000F8012D70470000DFF83C1288421BD029 +S1136CB0DFF83812884217D0DFF83412884213D034 +S1136CC0DFF8301288420FD0DFF82C1288420BD044 +S1136CD0DFF82812884207D0DFF82412884203D054 +S1136CE0DFF82012884201D1012000E00020C0B268 +S1136CF07047F8B504000E0017001D002000FFF7D0 +S1136D00D3FF002805D14FF4B071DFF8FC01FCF784 +S1136D1079FD002F05D140F26111DFF8EC01FCF799 +S1136D2071FDDFF8E801006810F0E04F27D0DFF8CC +S1136D30DC010068DFF8D8110840B0F1805F1ED094 +S1136D40DFF8C8010068DFF8C8110840DFF8C41193 +S1136D50884205D1DFF8B401006880B202280ED061 +S1136D60DFF8A8010068DFF8A8110840DFF8A811CF +S1136D70884206D1DFF894010068000401D1102094 +S1136D8000E0082000FB07F0864205D24FF4B17101 +S1136D90DFF87401FCF736FD200000F038F8B6EB9C +S1136DA0071F05D2206B50F0200020637F0803E00A +S1136DB0206B30F020002063F000B0FBF7F0401CA3 +S1136DC04008810961624021B0FBF1F202FB11022B +S1136DD0A262E5620020A061200000F001F8F1BD8C +S1136DE010B504002000FFF75FFF002805D14FF421 +S1136DF0FB71DFF81401FCF705FDE06A50F01000A8 +S1136E00E062206B40F201310843206310BD10B5ED +S1136E1004002000FFF748FF002805D140F21621A6 +S1136E20DFF8E400FCF7EEFCA0690007FCD4E06A9C +S1136E3030F01000E062206BDFF8E01008402063BF +S1136E4010BD10B504002000FFF72EFF002805D167 +S1136E5040F25541DFF8B000FCF7D4FCA069C0F360 +S1136E60401010F0010090F00100C0B210BD10B548 +S1136E7004002000FFF718FF002805D140F27641F6 +S1136E80DFF88400FCF7BEFCA069C00601D42068CA +S1136E9001E05FF0FF3010BD38B504000D002000A4 +S1136EA0FFF702FF002804D140F2C9411648FCF75D +S1136EB0A9FCA069800603D4EDB22560012000E09E +S1136EC0002032BD10B504002000FFF7EDFE0028BD +S1136ED004D140F23B510C48FCF794FCA069C0F388 +S1136EE0C00010F0010010BD00C0004000D0004000 +S1136EF000E0004000F000400000014000100140AC +S1136F0000200140003001400C77000000E00F40F9 +S1136F100000FF700000011000000310FEFCFFFFE2 +S1136F20002200F00BB810B50400200000F01FF898 +S1136F30002801D0203CFFE7200010BD00B500BFB1 +S1136F40130096469446103928BFA0E80C50FAD88E +S1136F505FEA417C28BF0CC048BF40F8042BC90736 +S1136F6028BF20F8022B48BF00F8012B00BD613870 +S1136F701A2801D2012000E00020C0B270470000AE +S1136F8061006200630064006500660067006800D9 +S1136F9069006A006B006C006D006E006F00700089 +S1136FA07100720073007400750076007700780039 +S1136FB079007A00A100A200A300A500AC00AF00F4 +S1136FC0E000E100E200E300E400E500E600E700A1 +S1136FD0E800E900EA00EB00EC00ED00EE00EF0051 +S1136FE0F000F100F200F300F400F500F600F80000 +S1136FF0F900FA00FB00FC00FD00FE00FF000101A7 +S113700003010501070109010B010D010F01110124 +S113701013011501170119011B011D011F01210194 +S113702023012501270129012B012D012F01310104 +S11370303301350137013A013C013E01400142016F +S11370404401460148014B014D014F0151015301D7 +S11370505501570159015B015D015F016101630144 +S11370606501670169016B016D016F0171017301B4 +S1137070750177017A017C017E019201B103B203AB +S1137080B303B403B503B603B703B803B903BA0330 +S1137090BB03BC03BD03BE03BF03C003C103C303DF +S11370A0C403C503C603C703C803C903CA03300422 +S11370B03104320433043404350436043704380408 +S11370C039043A043B043C043D043E043F044004B8 +S11370D04104420443044404450446044704480468 +S11370E049044A044B044C044D044E044F04510417 +S11370F052045304540455045604570458045904C0 +S11371005A045B045C045E045F04702171217221E3 +S113711073217421752176217721782179217A21AF +S11371207B217C217D217E217F2141FF42FF43FF82 +S113713044FF45FF46FF47FF48FF49FF4AFF4BFF17 +S11371404CFF4DFF4EFF4FFF50FF51FF52FF53FFC7 +S113715054FF55FF56FF57FF58FF59FF5AFF0000D1 +S113716041004200430044004500460047004800F7 +S113717049004A004B004C004D004E004F005000A7 +S11371805100520053005400550056005700580057 +S113719059005A002100E0FFE1FFE5FFE2FFE3FFB1 +S11371A0C000C100C200C300C400C500C600C700BF +S11371B0C800C900CA00CB00CC00CD00CE00CF006F +S11371C0D000D100D200D300D400D500D600D8001E +S11371D0D900DA00DB00DC00DD00DE00780100010C +S11371E002010401060108010A010C010E0110014B +S11371F012011401160118011A011C011E012001BB +S113720022012401260128012A012C012E0130012A +S113721032013401360139013B013D013F01410195 +S11372204301450147014A014C014E0150015201FD +S11372305401560158015A015C015E01600162016A +S11372406401660168016A016C016E0170017201DA +S11372507401760179017B017D019101910392030F +S113726093039403950396039703980399039A034E +S11372709B039C039D039E039F03A003A103A303FD +S1137280A403A503A603A703A803A903AA03100440 +S11372901104120413041404150416041704180426 +S11372A019041A041B041C041D041E041F042004D6 +S11372B02104220423042404250426042704280486 +S11372C029042A042B042C042D042E042F04010465 +S11372D0020403040404050406040704080409045E +S11372E00A040B040C040E040F04602161216221C2 +S11372F063216421652166216721682169216A214E +S11373006B216C216D216E216F2121FF22FF23FF50 +S113731024FF25FF26FF27FF28FF29FF2AFF2BFF35 +S11373202CFF2DFF2EFF2FFF30FF31FF32FF33FFE5 +S113733034FF35FF36FF37FF38FF39FF3AFF0000CF +S1137340C700FC00E900E200E400E000E500E7001B +S1137350EA00EB00E800EF00EE00EC00C400C5001A +S1137360C900E600C600F400F600F200FB00F900D4 +S1137370FF00D600DC00A200A300A500A720920114 +S1137380E100ED00F300FA00F100D100AA00BA0018 +S1137390BF001023AC00BD00BC00A100AB00BB00CB +S11373A091259225932502252425612562255625BC +S11373B055256325512557255D255C255B2510251D +S11373C0142534252C251C2500253C255E255F2508 +S11373D05A25542569256625602550256C25672581 +S11373E068256425652559255825522553256B257F +S11373F06A2518250C25882584258C25902580252B +S1137400B103DF009303C003A303C303B500C403A4 +S1137410A6039803A903B4031E22C603B5032922B5 +S11374206122B1006522642220232123F70048222F +S1137430B0001922B7001A227F20B200A025A000B4 +S113744000800000002000000400000000A00000F4 +S1137450002000000500000000C000000020000023 +S11374600600000000E0000000200000070000000B +S113747000000100002000000800000000200100BE +S1137480002000000900000000400100002000006E +S11374900A00000000600100002000000B00000052 +S11374A000800100002000000C00000000A001008A +S11374B0002000000D00000000C0010000200000BA +S11374C00E00000000E00100002000000F0000009A +S11374D00000020000800000100000000080020094 +S11374E00080000011000000000003000080000084 +S11374F01200000000800300008000001300000060 +S1137500809A90418E418F804545454949498E8FE7 +S11375109092924F994F555559999A9B9C9D9E9F35 +S113752041494F55A5A5A6A7A8A9AAABAC21AEAFC2 +S1137530B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFCF +S1137540C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFBF +S1137550D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFAF +S1137560E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF9F +S1137570F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF8F +S113758040420F0000201C0080841E000080250063 +S1137590999E36000040380000093D0000803E00FE +S11375A000004B00404B4C0000204E00808D5B00DF +S11375B000C05D000080700000127A0000007D00B1 +S11375C080969800001BB7000080BB00C0E8CE0086 +S11375D0647ADA000024F4000000FA0080A81201A2 +S11375E0002D310100366E0140787D01433A5C572D +S11375F06F726B5C736F6674776172655C4F7065F4 +S11376006E424C545C5461726765745C44656D6F82 +S11376105C41524D434D335F4C4D33535F454B5F9B +S11376204C4D3353363936355F4941525C426F6FA6 +S1137630745C6C69625C6472697665726C69625CC4 +S113764065746865726E65742E630000433A5C5716 +S11376506F726B5C736F6674776172655C4F706593 +S11376606E424C545C5461726765745C44656D6F22 +S11376705C41524D434D335F4C4D33535F454B5F3B +S11376804C4D3353363936355F4941525C426F6F46 +S1137690745C6C69625C6472697665726C69625C64 +S11376A0666C6173686C69622E630000433A5C57D0 +S11376B06F726B5C736F6674776172655C4F706533 +S11376C06E424C545C5461726765745C44656D6FC2 +S11376D05C41524D434D335F4C4D33535F454B5FDB +S11376E04C4D3353363936355F4941525C426F6FE6 +S11376F0745C6C69625C6472697665726C69625C04 +S113770073797363746C2E6300000000433A5C5712 +S11377106F726B5C736F6674776172655C4F7065D2 +S11377206E424C545C5461726765745C44656D6F61 +S11377305C41524D434D335F4C4D33535F454B5F7A +S11377404C4D3353363936355F4941525C426F6F85 +S1137750745C6C69625C6472697665726C69625CA3 +S1137760756172746C69622E6300000080B51548FF +S113777001210170FCF737F81349086000F001F8A3 +S113778001BD80B5FEF7DAFA012819D0FEF7EDFA4B +S1137790002815D00B480078012811D1FCF723F8F4 +S11377A00949096801F51C511031884208D305487C +S11377B000210170FEF7E2FA002801D1FEF794FEE1 +S11377C001BD00009216002044160020433A5C5785 +S11377D06F726B5C736F6674776172655C4F706512 +S11377E06E424C545C5461726765745C44656D6FA1 +S11377F05C41524D434D335F4C4D33535F454B5FBA +S11378004C4D3353363936355F4941525C426F6FC4 +S1137810745C6C69625C6472697665726C69625CE2 +S11378206770696F2E630000433A5C576F726B5C3C +S1137830736F6674776172655C4F70656E424C5409 +S11378405C5461726765745C44656D6F5C41524D54 +S1137850434D335F4C4D33535F454B5F4C4D335376 +S1137860363936355F4941525C426F6F745C6C69DE +S1137870625C6472697665726C69625C7373692EAA +S113788063000000433A5C576F726B5C736F6674FD +S1137890776172655C4F70656E424C545C546172E2 +S11378A06765745C536F757263655C41524D434DFB +S11378B0335F4C4D33535C4941525C766563746F5E +S11378C072732E6300000000433A5C576F726B5C66 +S11378D0736F6674776172655C4F70656E424C5469 +S11378E05C5461726765745C536F757263655C4167 +S11378F0524D434D335F4C4D33535C756172742E5E +S11379006300000080B5FBF789FFFBF74DFFFEF72E +S113791014FEFEF717FAFEF7A3F9FFF727FF01BDE0 +S113792080B5FBF77CFFFBF754FFFEF741FAFEF747 +S1137930A5F9FFF726FF01BD80B500F005F8FFF7B4 +S1137940E1FFFFF7EDFFFCE780B50648FBF7F4FC29 +S11379500548FBF778FC03215FF04020FBF7A2F910 +S113796001BD00008003C00101000020433A5C57C0 +S11379706F726B5C736F6674776172655C4F706570 +S11379806E424C545C5461726765745C536F7572DB +S113799063655C66696C652E6300000050617273F8 +S11379A0696E67206669726D776172652066696CBD +S11379B06520746F206F627461696E2065726173F3 +S11379C0652073697A652E2E2E0000004669726D5B +S11379D07761726520757064617465207375636383 +S11379E065737366756C6C7920636F6D706C657408 +S11379F065640A0D000000004F70656E696E6720B3 +S1137A006669726D776172652066696C6520666F60 +S1137A10722072656164696E672E2E2E000000006C +S1137A2010B5074979441831064C7C44163404E0F7 +S1137A300A68081D511888470146A142F8D110BDB3 +S1137A4098000000B80000004669726D77617265A5 +S1137A502075706461746520726571756573742036 +S1137A6064657465637465640A0D0000537461721F +S1137A7074696E67207468652070726F6772616DD7 +S1137A806D696E672073657175656E63650A0D00B7 +S1137A9052656164696E67206C696E652066726FF9 +S1137AA06D2066696C652E2E2E4552524F520A0D7A +S1137AB000000000496E76616C6964206368656348 +S1137AC06B73756D20666F756E642E2E2E45525243 +S1137AD04F520A0D00000000ABD1FFFF9C160000BE +S1137AE004000020000000001BA5FFFF04000000AC +S1137AF09001000000000020000000002062797462 +S1137B0065732066726F6D206D656D6F727920618B +S1137B10742030780000000057726974696E672021 +S1137B2070726F6772616D20636865636B73756DE6 +S1137B302E2E2E002F64656D6F70726F675F656BFC +S1137B405F6C6D3373363936352E7372656300009E +S1137B5020627974657320746F206D656D6F72791E +S1137B602061742030780000436C6F73696E672065 +S1137B706669726D776172652066696C650A0D00CD +S1137B8000F009F8002801D0FFF74AFF0020FFF7B2 +S1137B90D3FE00F002F80120704700F001B80000A5 +S1137BA00746384600F002F8FBE7000080B5C046FF +S1137BB0C046024A11001820ABBEFBE726000200B3 +S1137BC0034B9D46C046C046C046C046FFF7D8FF9B +S1137BD0A018002001030507090E10121416181C22 +S1137BE01E00000050726F6772616D6D696E6720D0 +S1137BF0000000002F626F6F746C6F672E747874CE +S1137C000000000080B53C210148FBF7FBFD01BDED +S1137C1084780000222A3A3C3E3F7C7F000000002A +S1137C2045726173696E67200000000040E00F40F8 +S1137C3044E00F4048E00F4000E10F4004E10F40F2 +S1137C4008E10F40C046C046C046C046FFF798FF53 +S1137C502B2C3B3D5B5D00004552524F520A0D00F8 +S1137C604F4B0A0D00000000FFFFFFFFFFFF000065 +S1137C704F70656E424C540000000000FFFFFFFF90 +S1077C8004010000F7 +S9037C453B diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/hooks.c b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/hooks.c index a73efdeb..cbce23a2 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/hooks.c @@ -390,13 +390,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while (UARTBusy(UART0_BASE) == true); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while (UARTBusy(UART0_BASE) == true) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/ide/lm3s6965.dep b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/ide/lm3s6965.dep index 2ba0598c..f498e7f5 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/ide/lm3s6965.dep +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/ide/lm3s6965.dep @@ -6,11 +6,11 @@ Debug - $PROJ_DIR$\..\lib\driverlib\cpulib.h - $PROJ_DIR$\..\lib\driverlib\ethernet.h $PROJ_DIR$\..\lib\driverlib\cpulib.c + $PROJ_DIR$\..\lib\driverlib\cpulib.h $PROJ_DIR$\..\lib\driverlib\debug.h $PROJ_DIR$\..\lib\driverlib\ethernet.c + $PROJ_DIR$\..\lib\driverlib\ethernet.h $PROJ_DIR$\..\lib\driverlib\flashlib.c $PROJ_DIR$\..\lib\driverlib\flashlib.h $PROJ_DIR$\..\lib\driverlib\gpio.c @@ -52,8 +52,8 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\flash.h $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\nvm.c $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\timer.c - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\uart.c + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\diskio.h $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.h @@ -135,8 +135,8 @@ $PROJ_DIR$\..\obj\uip_arp.lst $PROJ_DIR$\..\obj\uiplib.o $PROJ_DIR$\..\obj\tapdev.lst - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\psock.c $PROJ_DIR$\..\obj\hello-world.lst + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\psock.c $PROJ_DIR$\..\obj\psock.lst $PROJ_DIR$\..\obj\flash.pbi $PROJ_DIR$\..\obj\unicode.pbi @@ -187,8 +187,8 @@ $PROJ_DIR$\..\obj\timer.o $PROJ_DIR$\..\bin\openbtl_ek_lm3s6965.srec $PROJ_DIR$\..\led.c - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\psock.h $PROJ_DIR$\..\obj\assert.lst + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\psock.h $PROJ_DIR$\..\obj\hooks.lst $PROJ_DIR$\..\obj\nvm.o $PROJ_DIR$\..\obj\cpu.o @@ -196,8 +196,8 @@ $PROJ_DIR$\..\obj\sysctl.lst $PROJ_DIR$\..\obj\gpio.lst $PROJ_DIR$\..\obj\diskio.pbi - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c $TOOLKIT_DIR$\inc\c\xlocale.h + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c $TOOLKIT_DIR$\inc\c\ctype.h $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\ccsbcs.c $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\net.h @@ -225,8 +225,8 @@ $PROJ_DIR$\..\obj\uiplib.lst $PROJ_DIR$\..\obj\uip.lst $PROJ_DIR$\..\obj\psock.pbi - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\IAR\memory.x $PROJ_DIR$\..\obj\uip_arp.pbi + $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\IAR\memory.x $PROJ_DIR$\..\obj\uip_timer.pbi $TOOLKIT_DIR$\inc\c\xlocale_c.h $TOOLKIT_DIR$\inc\c\xencoding_limits.h @@ -265,203 +265,23 @@ $PROJ_DIR$\..\lib\driverlib\cpulib.c - - BICOMP - 90 - ICCARM 168 171 - - BICOMP - 0 - - - ICCARM - 0 - - - - - $PROJ_DIR$\..\lib\driverlib\ethernet.c - - - BICOMP - 99 - - - ICCARM - 106 96 - - - - - BICOMP - 20 23 24 28 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 1 15 10 - - - ICCARM - 20 23 24 28 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 1 15 10 - - - - - $PROJ_DIR$\..\lib\driverlib\flashlib.c - - - BICOMP - 117 - - - ICCARM - 174 243 - - - - - BICOMP - 21 23 27 28 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 6 10 - - - ICCARM - 21 23 27 28 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 6 10 - - - - - $PROJ_DIR$\..\lib\driverlib\gpio.c - - - BICOMP - 115 - - - ICCARM - 188 244 - - - - - BICOMP - 22 23 24 27 28 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 8 11 10 - - - ICCARM - 22 23 24 27 28 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 8 11 10 - - - - - $PROJ_DIR$\..\lib\driverlib\interrupt.c - - - BICOMP - 116 - - - ICCARM - 186 245 - - - - - BICOMP - 23 25 28 0 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 - - - ICCARM - 23 25 28 0 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 - - - - - $PROJ_DIR$\..\lib\driverlib\ssi.c - - - BICOMP - 239 - - - ICCARM - 154 238 - - - - - BICOMP - 23 24 26 28 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 13 15 - - - ICCARM - 23 24 26 28 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 13 15 - - - - - $PROJ_DIR$\..\lib\driverlib\sysctl.c - - - BICOMP - 224 - - - ICCARM - 187 113 + 90 ICCARM - 23 25 27 28 0 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 15 + 1 - - - - $PROJ_DIR$\..\lib\driverlib\uartlib.c - BICOMP - 225 - - - ICCARM - 166 118 - - - - - BICOMP - 23 24 27 28 29 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 17 15 - - - ICCARM - 23 24 27 28 29 3 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 17 15 - - - - - $PROJ_DIR$\..\lib\fatfs\mmc.c - - - BICOMP - 176 - - - ICCARM - 98 173 - - - - - BICOMP - 24 28 8 11 13 15 48 51 71 89 67 35 82 76 75 81 83 69 78 50 18 73 86 - - - ICCARM - 24 28 8 11 13 15 48 51 71 89 67 35 82 76 75 81 83 69 78 50 18 73 86 + 1 @@ -475,24 +295,208 @@ - $PROJ_DIR$\..\lib\uip\clock-arch.c + $PROJ_DIR$\..\lib\driverlib\ethernet.c - BICOMP - 122 + ICCARM + 106 96 - ICCARM - 214 120 + BICOMP + 99 + + ICCARM + 20 23 24 28 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 4 15 10 + BICOMP + 20 23 24 28 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 4 15 10 + + + + + $PROJ_DIR$\..\lib\driverlib\flashlib.c + + + ICCARM + 174 243 + + + BICOMP + 117 + + + + + ICCARM + 21 23 27 28 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 6 10 + + + BICOMP + 21 23 27 28 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 6 10 + + + + + $PROJ_DIR$\..\lib\driverlib\gpio.c + + + ICCARM + 188 244 + + + BICOMP + 115 + + + + + ICCARM + 22 23 24 27 28 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 8 11 10 + + + BICOMP + 22 23 24 27 28 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 8 11 10 + + + + + $PROJ_DIR$\..\lib\driverlib\interrupt.c + + + ICCARM + 186 245 + + + BICOMP + 116 + + + + + ICCARM + 23 25 28 1 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 + + + BICOMP + 23 25 28 1 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 + + + + + $PROJ_DIR$\..\lib\driverlib\ssi.c + + + ICCARM + 154 238 + + + BICOMP + 239 + + + + + ICCARM + 23 24 26 28 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 13 15 + + + BICOMP + 23 24 26 28 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 13 15 + + + + + $PROJ_DIR$\..\lib\driverlib\sysctl.c + + + ICCARM + 187 113 + + + BICOMP + 224 + + + + + ICCARM + 23 25 27 28 1 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 15 + + + BICOMP + 23 25 27 28 1 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 15 + + + + + $PROJ_DIR$\..\lib\driverlib\uartlib.c + + + ICCARM + 166 118 + + + BICOMP + 225 + + + + + ICCARM + 23 24 27 28 29 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 17 15 + + + BICOMP + 23 24 27 28 29 2 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 10 17 15 + + + + + $PROJ_DIR$\..\lib\fatfs\mmc.c + + + ICCARM + 98 173 + + + BICOMP + 176 + + + + + ICCARM + 24 28 8 11 13 15 48 51 71 89 67 35 82 76 75 81 83 69 78 50 18 73 86 + + + BICOMP + 24 28 8 11 13 15 48 51 71 89 67 35 82 76 75 81 83 69 78 50 18 73 86 + + + + + $PROJ_DIR$\..\lib\uip\clock-arch.c + + + ICCARM + 214 120 + + + BICOMP + 122 + + + + + ICCARM 31 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM + BICOMP 31 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 @@ -500,43 +504,39 @@ $PROJ_DIR$\..\lib\uip\netdev.c - - BICOMP - 150 - ICCARM 158 157 + + BICOMP + 150 + - BICOMP - 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 60 24 28 20 15 8 11 1 6 + ICCARM + 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 60 24 28 20 15 8 11 4 6 - ICCARM - 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 60 24 28 20 15 8 11 1 6 + BICOMP + 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 60 24 28 20 15 8 11 4 6 $PROJ_DIR$\..\hooks.c - - BICOMP - 248 - ICCARM 183 137 - - BICOMP - 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 24 28 17 15 + 248 + + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 24 28 17 15 @@ -546,22 +546,22 @@ $PROJ_DIR$\..\main.c - - BICOMP - 172 - ICCARM 229 200 + + BICOMP + 172 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 23 24 25 27 28 15 8 11 17 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 23 24 25 27 28 15 8 11 17 @@ -569,22 +569,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\IAR\vectors.c - - BICOMP - 177 - ICCARM 232 227 + + BICOMP + 177 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 @@ -601,22 +601,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\cpu.c - - BICOMP - 135 - ICCARM 211 185 + + BICOMP + 135 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 @@ -624,22 +624,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\flash.c - - BICOMP - 132 - ICCARM 209 208 + + BICOMP + 132 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 24 28 6 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 24 28 6 @@ -647,22 +647,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\nvm.c - - BICOMP - 160 - ICCARM 169 184 + + BICOMP + 160 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 43 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 43 @@ -670,91 +670,91 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\timer.c - - BICOMP - 235 - ICCARM 234 178 - - BICOMP - 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - - - ICCARM - 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c - - - BICOMP - 133 - - - ICCARM - 140 97 + 235 - BICOMP - 50 51 18 119 + ICCARM + 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM - 50 51 18 119 + BICOMP + 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\uart.c - - BICOMP - 164 - ICCARM 249 226 + + BICOMP + 164 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 24 28 15 17 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 24 28 15 17 + + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c + + + ICCARM + 140 97 + + + BICOMP + 133 + + + + + ICCARM + 50 51 18 119 + + + BICOMP + 50 51 18 119 + + + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c - - BICOMP - 254 - ICCARM 167 240 + + BICOMP + 254 + - BICOMP + ICCARM 50 51 18 48 170 93 196 162 247 91 223 156 - ICCARM + BICOMP 50 51 18 48 170 93 196 162 247 91 223 156 @@ -762,22 +762,22 @@ $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip.c - - BICOMP - 125 - ICCARM 217 147 + + BICOMP + 125 + - BICOMP + ICCARM 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 58 111 93 196 162 247 91 223 156 212 112 - ICCARM + BICOMP 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 58 111 93 196 162 247 91 223 156 212 112 @@ -785,22 +785,22 @@ $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arp.c - - BICOMP - 220 - ICCARM 126 151 + + BICOMP + 219 + - BICOMP + ICCARM 60 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 111 93 196 162 247 91 223 156 212 112 - ICCARM + BICOMP 60 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 111 93 196 162 247 91 223 156 212 112 @@ -808,22 +808,22 @@ $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_timer.c - - BICOMP - 221 - ICCARM 215 148 + + BICOMP + 221 + - BICOMP + ICCARM 52 31 62 - ICCARM + BICOMP 52 31 62 @@ -831,22 +831,22 @@ $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uiplib.c - - BICOMP - 144 - ICCARM 216 127 + + BICOMP + 144 + - BICOMP + ICCARM 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 64 - ICCARM + BICOMP 57 65 34 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 80 64 @@ -855,21 +855,21 @@ $PROJ_DIR$\..\..\..\..\Source\assert.c - BICOMP - 203 + ICCARM + 181 102 - ICCARM - 182 102 + BICOMP + 203 - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 @@ -877,22 +877,22 @@ $PROJ_DIR$\..\..\..\..\Source\backdoor.c - - BICOMP - 207 - ICCARM 210 205 + + BICOMP + 207 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 @@ -900,22 +900,22 @@ $PROJ_DIR$\..\..\..\..\Source\boot.c - - BICOMP - 197 - ICCARM 237 201 + + BICOMP + 197 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 @@ -923,22 +923,22 @@ $PROJ_DIR$\..\..\..\..\Source\com.c - - BICOMP - 108 - ICCARM 251 136 + + BICOMP + 108 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 84 80 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 84 80 @@ -946,22 +946,22 @@ $PROJ_DIR$\..\..\..\..\Source\cop.c - - BICOMP - 109 - ICCARM 250 206 + + BICOMP + 109 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 @@ -969,45 +969,45 @@ $PROJ_DIR$\..\..\..\..\Source\file.c - - BICOMP - 231 - ICCARM 163 233 + + BICOMP + 231 + - BICOMP - 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 111 93 196 162 247 91 223 156 212 112 192 191 246 134 138 213 222 153 + ICCARM + 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 111 93 196 162 247 91 223 156 212 112 192 190 246 134 138 213 222 153 - ICCARM - 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 111 93 196 162 247 91 223 156 212 112 192 191 246 134 138 213 222 153 + BICOMP + 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 111 93 196 162 247 91 223 156 212 112 192 190 246 134 138 213 222 153 $PROJ_DIR$\..\..\..\..\Source\net.c - - BICOMP - 107 - ICCARM 100 94 + + BICOMP + 107 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 33 57 65 34 80 60 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 33 57 65 34 80 60 @@ -1015,22 +1015,22 @@ $PROJ_DIR$\..\..\..\..\Source\xcp.c - - BICOMP - 110 - ICCARM 165 204 + + BICOMP + 110 + - BICOMP + ICCARM 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 - ICCARM + BICOMP 71 89 67 35 82 76 75 81 83 69 78 50 51 18 73 86 @@ -1050,29 +1050,29 @@ ILINK - 219 102 205 201 120 136 206 185 171 198 96 240 233 208 243 244 137 245 200 173 94 157 184 238 113 178 226 118 147 151 148 127 97 227 204 92 253 236 252 + 220 102 205 201 120 136 206 185 171 198 96 240 233 208 243 244 137 245 200 173 94 157 184 238 113 178 226 118 147 151 148 127 97 227 204 92 253 236 252 $PROJ_DIR$\..\..\..\..\Source\filesys.c - - BICOMP - 175 - ICCARM 143 241 + + BICOMP + 175 + - BICOMP + ICCARM 71 89 67 228 82 88 75 87 43 40 69 141 139 159 202 73 86 - ICCARM + BICOMP 71 89 67 228 82 88 75 87 43 40 69 141 139 159 202 73 86 @@ -1080,68 +1080,68 @@ $PROJ_DIR$\..\lib\uip\tapdev.c - - BICOMP - 123 - ICCARM 128 121 + + BICOMP + 123 + - BICOMP - 57 65 34 242 181 55 54 53 60 71 89 67 35 82 88 75 87 43 40 69 78 73 86 24 28 20 15 8 11 1 + ICCARM + 57 65 34 242 182 55 54 53 60 71 89 67 35 82 88 75 87 43 40 69 78 73 86 24 28 20 15 8 11 4 - ICCARM - 57 65 34 242 181 55 54 53 60 71 89 67 35 82 88 75 87 43 40 69 78 73 86 24 28 20 15 8 11 1 + BICOMP + 57 65 34 242 182 55 54 53 60 71 89 67 35 82 88 75 87 43 40 69 78 73 86 24 28 20 15 8 11 4 $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\psock.c - - BICOMP - 218 - ICCARM 131 103 + + BICOMP + 218 + - BICOMP - 146 93 196 162 247 91 223 156 212 145 111 112 65 34 71 89 67 35 82 88 75 87 43 40 69 78 73 86 194 181 55 54 53 57 + ICCARM + 146 93 196 162 247 91 223 156 212 145 111 112 65 34 71 89 67 35 82 88 75 87 43 40 69 78 73 86 194 182 55 54 53 57 - ICCARM - 146 93 196 162 247 91 223 156 212 145 111 112 65 34 71 89 67 35 82 88 75 87 43 40 69 78 73 86 194 181 55 54 53 57 + BICOMP + 146 93 196 162 247 91 223 156 212 145 111 112 65 34 71 89 67 35 82 88 75 87 43 40 69 78 73 86 194 182 55 54 53 57 $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.c - - BICOMP - 254 - ICCARM 167 240 + + BICOMP + 254 + - BICOMP + ICCARM 139 159 18 161 170 93 196 162 247 91 223 156 - ICCARM + BICOMP 139 159 18 161 170 93 196 162 247 91 223 156 @@ -1150,44 +1150,44 @@ $PROJ_DIR$\..\..\..\..\Source\third_party\uip\apps\hello-world\hello-world.c - BICOMP - 124 + ICCARM + 129 - ICCARM - 130 + BICOMP + 124 - BICOMP - 242 65 34 71 89 67 35 82 88 75 87 43 40 69 78 73 86 194 181 55 54 53 57 111 93 196 162 247 91 223 156 212 112 + ICCARM + 242 65 34 71 89 67 35 82 88 75 87 43 40 69 78 73 86 194 182 55 54 53 57 111 93 196 162 247 91 223 156 212 112 - ICCARM - 242 65 34 71 89 67 35 82 88 75 87 43 40 69 78 73 86 194 181 55 54 53 57 111 93 196 162 247 91 223 156 212 112 + BICOMP + 242 65 34 71 89 67 35 82 88 75 87 43 40 69 78 73 86 194 182 55 54 53 57 111 93 196 162 247 91 223 156 212 112 $PROJ_DIR$\..\led.c - - BICOMP - 95 - ICCARM 142 101 + + BICOMP + 95 + - BICOMP + ICCARM 71 89 67 228 82 88 75 87 43 40 69 78 139 159 18 73 86 24 28 15 8 11 - ICCARM + BICOMP 71 89 67 228 82 88 75 87 43 40 69 78 139 159 18 73 86 24 28 15 8 11 @@ -1195,22 +1195,22 @@ $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c - - BICOMP - 133 - ICCARM 140 97 + + BICOMP + 133 + - BICOMP + ICCARM 139 159 18 193 - ICCARM + BICOMP 139 159 18 193 @@ -1218,22 +1218,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_LM3S\net.c - - BICOMP - 107 - ICCARM 100 94 + + BICOMP + 107 + - BICOMP + ICCARM 71 89 67 35 82 88 75 87 43 40 69 78 73 86 33 57 65 34 194 60 - ICCARM + BICOMP 71 89 67 35 82 88 75 87 43 40 69 78 73 86 33 57 65 34 194 60 @@ -1248,11 +1248,11 @@ - BICOMP + ICCARM 161 159 - ICCARM + BICOMP 161 159 diff --git a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/ide/settings/lm3s6965.wsdt b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/ide/settings/lm3s6965.wsdt index 4742dae7..94581149 100644 --- a/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/ide/settings/lm3s6965.wsdt +++ b/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_IAR/Boot/ide/settings/lm3s6965.wsdt @@ -17,7 +17,7 @@ 100Find-All-References2011553087730055278946300FileFunctionLine200700100300BuildFind-in-FilesFind-All-References664941138100Build664941138 - + TabID-31649-22318 @@ -29,7 +29,7 @@ - 0TabID-23631-11730BuildBuildTabID-25094-12726Ambiguous DefinitionsSelect-Ambiguous-Definitions0 + 0TabID-23631-11730BuildBuildTabID-25094-12726Ambiguous DefinitionsSelect-Ambiguous-Definitions0 @@ -42,7 +42,7 @@ - iaridepm.enu1-2-2563326-2-23723531937503501981708335605160007-2561258237134375235119170833398810 + iaridepm.enu1-2-2563326-2-2372353193750350198170833560516005123640851236408-2561258237134375235119170833398810 diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.elf b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.elf new file mode 100644 index 00000000..235a1728 Binary files /dev/null and b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.elf differ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.map b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.map new file mode 100644 index 00000000..7fbe277a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.map @@ -0,0 +1,5954 @@ +Archive member included because of file (symbol) + +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-ctype_.o) + ..\obj\~#\~#\~#\source\file.o (__ctype_ptr__) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o (exit) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) (_global_impure_ptr) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o (__libc_init_array) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o (memset) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) (_exit) + +Discarded input sections + + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + .data 0x00000000 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + .ARM.extab 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\hooks.o + .text 0x00000000 0x0 ..\obj\hooks.o + .data 0x00000000 0x0 ..\obj\hooks.o + .bss 0x00000000 0x0 ..\obj\hooks.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .text 0x00000000 0x0 ..\obj\led.o + .data 0x00000000 0x0 ..\obj\led.o + .bss 0x00000000 0x0 ..\obj\led.o + .debug_macro 0x00000000 0x862 ..\obj\led.o + .debug_macro 0x00000000 0x1c ..\obj\led.o + .debug_macro 0x00000000 0x1c ..\obj\led.o + .debug_macro 0x00000000 0x22 ..\obj\led.o + .debug_macro 0x00000000 0x87 ..\obj\led.o + .debug_macro 0x00000000 0x49 ..\obj\led.o + .debug_macro 0x00000000 0x1c ..\obj\led.o + .debug_macro 0x00000000 0x97 ..\obj\led.o + .debug_macro 0x00000000 0xee ..\obj\led.o + .debug_macro 0x00000000 0x40 ..\obj\led.o + .debug_macro 0x00000000 0x9f ..\obj\led.o + .debug_macro 0x00000000 0x28 ..\obj\led.o + .debug_macro 0x00000000 0x4c ..\obj\led.o + .debug_macro 0x00000000 0x3a ..\obj\led.o + .debug_macro 0x00000000 0x16 ..\obj\led.o + .debug_macro 0x00000000 0x44 ..\obj\led.o + .debug_macro 0x00000000 0x209 ..\obj\led.o + .debug_macro 0x00000000 0x18 ..\obj\led.o + .debug_macro 0x00000000 0xb08 ..\obj\led.o + .debug_macro 0x00000000 0x7f1c ..\obj\led.o + .debug_macro 0x00000000 0x44f ..\obj\led.o + .debug_macro 0x00000000 0x3cf ..\obj\led.o + .debug_macro 0x00000000 0x111 ..\obj\led.o + .debug_macro 0x00000000 0x188 ..\obj\led.o + .debug_macro 0x00000000 0xb2 ..\obj\led.o + .debug_macro 0x00000000 0x149 ..\obj\led.o + .debug_macro 0x00000000 0x477 ..\obj\led.o + .debug_macro 0x00000000 0xae ..\obj\led.o + .debug_macro 0x00000000 0x242 ..\obj\led.o + .debug_macro 0x00000000 0x279 ..\obj\led.o + .debug_macro 0x00000000 0xb5 ..\obj\led.o + .debug_macro 0x00000000 0x25e ..\obj\led.o + .debug_macro 0x00000000 0x2b3 ..\obj\led.o + .debug_macro 0x00000000 0x64 ..\obj\led.o + .debug_macro 0x00000000 0x88 ..\obj\led.o + .debug_macro 0x00000000 0x536 ..\obj\led.o + .debug_macro 0x00000000 0x40 ..\obj\led.o + .debug_macro 0x00000000 0x3f3 ..\obj\led.o + .debug_macro 0x00000000 0x342 ..\obj\led.o + .debug_macro 0x00000000 0x357 ..\obj\led.o + .debug_macro 0x00000000 0xe1 ..\obj\led.o + .debug_macro 0x00000000 0x73b ..\obj\led.o + .debug_macro 0x00000000 0x221 ..\obj\led.o + .debug_macro 0x00000000 0x34 ..\obj\led.o + .debug_macro 0x00000000 0x82 ..\obj\led.o + .debug_macro 0x00000000 0x35 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\fatfs\mmc.o + .text 0x00000000 0x0 ..\obj\lib\fatfs\mmc.o + .data 0x00000000 0x0 ..\obj\lib\fatfs\mmc.o + .bss 0x00000000 0x0 ..\obj\lib\fatfs\mmc.o + .text.disk_timerproc + 0x00000000 0x24 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0xae ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\fatfs\mmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\misc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\misc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\misc.o + .text.NVIC_PriorityGroupConfig + 0x00000000 0x14 ..\obj\lib\spl\src\misc.o + .text.NVIC_Init + 0x00000000 0x70 ..\obj\lib\spl\src\misc.o + .text.NVIC_SetVectorTable + 0x00000000 0x14 ..\obj\lib\spl\src\misc.o + .text.NVIC_SystemLPConfig + 0x00000000 0x1c ..\obj\lib\spl\src\misc.o + .text.SysTick_CLKSourceConfig + 0x00000000 0x18 ..\obj\lib\spl\src\misc.o + .debug_info 0x00000000 0x54b ..\obj\lib\spl\src\misc.o + .debug_abbrev 0x00000000 0x159 ..\obj\lib\spl\src\misc.o + .debug_loc 0x00000000 0x199 ..\obj\lib\spl\src\misc.o + .debug_aranges + 0x00000000 0x40 ..\obj\lib\spl\src\misc.o + .debug_ranges 0x00000000 0x30 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x7c ..\obj\lib\spl\src\misc.o + .debug_line 0x00000000 0x49b ..\obj\lib\spl\src\misc.o + .debug_str 0x00000000 0x5452f ..\obj\lib\spl\src\misc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\misc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\misc.o + .debug_frame 0x00000000 0x68 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_adc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_adc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_Init + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_StructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_CommonInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_CommonStructInit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_Cmd 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_AnalogWatchdogCmd + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_AnalogWatchdogThresholdsConfig + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_AnalogWatchdogSingleChannelConfig + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_TempSensorVrefintCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_VBATCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_RegularChannelConfig + 0x00000000 0x94 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_SoftwareStartConv + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetSoftwareStartConvStatus + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_EOCOnEachRegularChannelCmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ContinuousModeCmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DiscModeChannelCountConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DiscModeCmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetConversionValue + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetMultiModeConversionValue + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DMACmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DMARequestAfterLastTransferCmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_MultiModeDMARequestAfterLastTransferCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_InjectedChannelConfig + 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_InjectedSequencerLengthConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_SetInjectedOffset + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ExternalTrigInjectedConvConfig + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ExternalTrigInjectedConvEdgeConfig + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_SoftwareStartInjectedConv + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetSoftwareStartInjectedConvCmdStatus + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_AutoInjectedConvCmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_InjectedDiscModeCmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetInjectedConversionValue + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ITConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetFlagStatus + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ClearFlag + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetITStatus + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ClearITPendingBit + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_info 0x00000000 0xc8c ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_abbrev 0x00000000 0x1ce ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_loc 0x00000000 0xad1 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_aranges + 0x00000000 0x148 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_ranges 0x00000000 0x138 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x21b ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x3c9 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_line 0x00000000 0x77c ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_str 0x00000000 0x54c35 ..\obj\lib\spl\src\stm32f2xx_adc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_adc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_frame 0x00000000 0x2a8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_can.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_can.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_DeInit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_Init + 0x00000000 0xec ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_FilterInit + 0x00000000 0xf0 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_StructInit + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_SlaveStartBank + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_DBGFreeze + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_TTComModeCmd + 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_Transmit + 0x00000000 0xd4 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_TransmitStatus + 0x00000000 0x74 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_CancelTransmit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_Receive + 0x00000000 0x98 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_FIFORelease + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_MessagePending + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_OperatingModeRequest + 0x00000000 0xac ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_Sleep + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_WakeUp + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetLastErrorCode + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetReceiveErrorCounter + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetLSBTransmitErrorCounter + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_ITConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetFlagStatus + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_ClearFlag + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetITStatus + 0x00000000 0xec ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_ClearITPendingBit + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_info 0x00000000 0xf39 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_abbrev 0x00000000 0x284 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_loc 0x00000000 0xd6b ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_aranges + 0x00000000 0xd8 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_ranges 0x00000000 0xc8 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x1e8 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x3c9 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_line 0x00000000 0x7b8 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_str 0x00000000 0x54a78 ..\obj\lib\spl\src\stm32f2xx_can.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_can.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_frame 0x00000000 0x1b8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_crc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_crc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_ResetDR + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_CalcCRC + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_CalcBlockCRC + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_GetCRC + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_SetIDRegister + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_GetIDRegister + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_info 0x00000000 0x211 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_abbrev 0x00000000 0x128 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_loc 0x00000000 0x5f ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_aranges + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_ranges 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x18c ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_line 0x00000000 0x4b4 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_str 0x00000000 0x54382 ..\obj\lib\spl\src\stm32f2xx_crc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_crc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_frame 0x00000000 0x78 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_DeInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_Init + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_StructInit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_KeyInit + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_KeyStructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_IVInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_IVStructInit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_FIFOFlush + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_Cmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_DataIn + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_DataOut + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_SaveContext + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_RestoreContext + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_DMACmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_ITConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_GetITStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_GetFlagStatus + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_info 0x00000000 0x762 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_abbrev 0x00000000 0x1d7 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_loc 0x00000000 0x1eb ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_aranges + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_ranges 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x1a1 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x10b ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_line 0x00000000 0x5cb ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_str 0x00000000 0x54744 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_frame 0x00000000 0x134 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .text.CRYP_AES_ECB + 0x00000000 0x1e4 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .text.CRYP_AES_CBC + 0x00000000 0x20c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .text.CRYP_AES_CTR + 0x00000000 0x19c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_info 0x00000000 0x15e8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_abbrev 0x00000000 0x28a ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_loc 0x00000000 0x15b0 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_aranges + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_ranges 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x10b ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_line 0x00000000 0x840 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_str 0x00000000 0x545db ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_frame 0x00000000 0x7c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .text.CRYP_DES_ECB + 0x00000000 0xcc ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .text.CRYP_DES_CBC + 0x00000000 0xe0 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_info 0x00000000 0x78c ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_abbrev 0x00000000 0x203 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_loc 0x00000000 0x647 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_aranges + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_ranges 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x10b ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_line 0x00000000 0x516 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_str 0x00000000 0x545c6 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_frame 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .text.CRYP_TDES_ECB + 0x00000000 0xe4 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .text.CRYP_TDES_CBC + 0x00000000 0xf8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_info 0x00000000 0x90c ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_abbrev 0x00000000 0x203 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_loc 0x00000000 0x847 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_aranges + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_ranges 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x10b ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_line 0x00000000 0x578 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_str 0x00000000 0x545cd ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_frame 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_Init + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_StructInit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_Cmd 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_SoftwareTriggerCmd + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_DualSoftwareTriggerCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_WaveGenerationCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_SetChannel1Data + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_SetChannel2Data + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_SetDualChannelData + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_GetDataOutputValue + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_DMACmd + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_ITConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_GetFlagStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_ClearFlag + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_GetITStatus + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_ClearITPendingBit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_info 0x00000000 0x6a0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_abbrev 0x00000000 0x1d2 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_loc 0x00000000 0x549 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_aranges + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_ranges 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x1c3 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x182 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_line 0x00000000 0x59a ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_str 0x00000000 0x546aa ..\obj\lib\spl\src\stm32f2xx_dac.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_dac.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_frame 0x00000000 0x13c ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_GetREVID + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_GetDEVID + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_Config + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_APB1PeriphConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_APB2PeriphConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_info 0x00000000 0x1e4 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_abbrev 0x00000000 0xf2 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_loc 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_aranges + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_ranges 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xac ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_line 0x00000000 0x49b ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_str 0x00000000 0x543a0 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_frame 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_DeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_Init + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_StructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_CROPConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_CROPCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_SetEmbeddedSynchroCodes + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_JPEGCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_Cmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_CaptureCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_ReadData + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_ITConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_GetFlagStatus + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_ClearFlag + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_GetITStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_ClearITPendingBit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_info 0x00000000 0x554 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_abbrev 0x00000000 0x1aa ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_loc 0x00000000 0x1f0 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_aranges + 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_ranges 0x00000000 0x80 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x192 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x143 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_line 0x00000000 0x573 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_str 0x00000000 0x54610 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_frame 0x00000000 0x108 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_DeInit + 0x00000000 0x154 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_Init + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_StructInit + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_Cmd 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_PeriphIncOffsetSizeConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_FlowControllerConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_SetCurrDataCounter + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetCurrDataCounter + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_DoubleBufferModeConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_DoubleBufferModeCmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_MemoryTargetConfig + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetCurrentMemoryTarget + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetCmdStatus + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetFIFOStatus + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetFlagStatus + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_ClearFlag + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_ITConfig + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetITStatus + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_ClearITPendingBit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_info 0x00000000 0x73f ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_abbrev 0x00000000 0x178 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_loc 0x00000000 0x429 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_aranges + 0x00000000 0xb0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_ranges 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x1e6 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x471 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_line 0x00000000 0x617 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_str 0x00000000 0x54995 ..\obj\lib\spl\src\stm32f2xx_dma.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_dma.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_frame 0x00000000 0x168 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_exti.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_exti.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_DeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_Init + 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_StructInit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_GenerateSWInterrupt + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_GetFlagStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_ClearFlag + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_GetITStatus + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_ClearITPendingBit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_info 0x00000000 0x352 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_abbrev 0x00000000 0x1c8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_loc 0x00000000 0x1d4 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_aranges + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_ranges 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xa8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_line 0x00000000 0x4ee ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_str 0x00000000 0x544b2 ..\obj\lib\spl\src\stm32f2xx_exti.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_exti.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_frame 0x00000000 0x98 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_flash.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_flash.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_SetLatency + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_PrefetchBufferCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_InstructionCacheCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_DataCacheCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_InstructionCacheReset + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_DataCacheReset + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_Unlock + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_Lock + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_BORConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_GetUser + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_GetWRP + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_GetRDP + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_GetBOR + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ITConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_GetFlagStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_EraseAllSectors + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ProgramDoubleWord + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ProgramHalfWord + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ProgramByte + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_WRPConfig + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_RDPConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_UserConfig + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_Launch + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NORSRAMDeInit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NORSRAMInit + 0x00000000 0xc8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NORSRAMStructInit + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NORSRAMCmd + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDDeInit + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDInit + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDStructInit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDCmd + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDECCCmd + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_GetECC + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_PCCARDDeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_PCCARDInit + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_PCCARDStructInit + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_PCCARDCmd + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_ITConfig + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_GetFlagStatus + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_ClearFlag + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_GetITStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_ClearITPendingBit + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_info 0x00000000 0x908 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_abbrev 0x00000000 0x193 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_loc 0x00000000 0x48d ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_aranges + 0x00000000 0xb0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_ranges 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x1c2 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x273 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_line 0x00000000 0x671 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_str 0x00000000 0x549f6 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_frame 0x00000000 0x160 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_DeInit + 0x00000000 0x104 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_StructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_PinLockConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ReadInputData + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ReadOutputDataBit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ReadOutputData + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_WriteBit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_Write + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ToggleBits + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_DeInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_Init + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_StructInit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_Reset + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_SetLastWordValidBitsNbr + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_DataIn + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_GetInFIFOWordsNbr + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_GetDigest + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_StartDigest + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_SaveContext + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_RestoreContext + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_DMACmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_ITConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_GetFlagStatus + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_ClearFlag + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_GetITStatus + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_ClearITPendingBit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_info 0x00000000 0x594 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_abbrev 0x00000000 0x201 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_loc 0x00000000 0x258 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_aranges + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_ranges 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x193 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xaf ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_line 0x00000000 0x5a0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_str 0x00000000 0x54580 ..\obj\lib\spl\src\stm32f2xx_hash.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_hash.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_frame 0x00000000 0x130 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .text.HASH_MD5 + 0x00000000 0x98 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .text.HMAC_MD5 + 0x00000000 0x14c ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_info 0x00000000 0x6af ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_abbrev 0x00000000 0x204 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_loc 0x00000000 0x52a ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_aranges + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_ranges 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xaf ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_line 0x00000000 0x56c ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_str 0x00000000 0x544ce ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_frame 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .text.HASH_SHA1 + 0x00000000 0x9c ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .text.HMAC_SHA1 + 0x00000000 0x150 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_info 0x00000000 0x710 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_abbrev 0x00000000 0x204 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_loc 0x00000000 0x5aa ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_aranges + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_ranges 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xaf ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_line 0x00000000 0x585 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_str 0x00000000 0x544d4 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_frame 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_DeInit + 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_Init + 0x00000000 0xd8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_StructInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_Cmd 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GenerateSTART + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GenerateSTOP + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_Send7bitAddress + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_AcknowledgeConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_OwnAddress2Config + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_DualAddressCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GeneralCallCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_SoftwareResetCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_StretchClockCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_FastModeDutyCycleConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_NACKPositionConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_SMBusAlertConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ARPCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_SendData + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ReceiveData + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_TransmitPEC + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_PECPositionConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_CalculatePEC + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GetPEC + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_DMACmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_DMALastTransferCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ReadRegister + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ITConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_CheckEvent + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GetLastEvent + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GetFlagStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ClearFlag + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GetITStatus + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ClearITPendingBit + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_info 0x00000000 0xbc9 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_abbrev 0x00000000 0x1d4 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_loc 0x00000000 0x745 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_aranges + 0x00000000 0x120 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_ranges 0x00000000 0x110 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x1a4 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x2ad ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_line 0x00000000 0x6f9 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_str 0x00000000 0x54829 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_frame 0x00000000 0x240 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_WriteAccessCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_SetPrescaler + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_SetReload + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_ReloadCounter + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_Enable + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_GetFlagStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_info 0x00000000 0x211 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_abbrev 0x00000000 0x115 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_loc 0x00000000 0x62 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_aranges + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_ranges 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x19e ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x5e ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_line 0x00000000 0x4a6 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_str 0x00000000 0x543e5 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_frame 0x00000000 0x70 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_BackupAccessCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_PVDLevelConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_PVDCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_WakeUpPinCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_BackupRegulatorCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_FlashPowerDownCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_EnterSTOPMode + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_EnterSTANDBYMode + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_GetFlagStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_ClearFlag + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_info 0x00000000 0x527 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_abbrev 0x00000000 0x1c6 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_loc 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_aranges + 0x00000000 0x70 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_ranges 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x1ec ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_line 0x00000000 0x51a ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_str 0x00000000 0x54713 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_frame 0x00000000 0xc8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_DeInit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_HSEConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AdjustHSICalibrationValue + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_HSICmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_LSEConfig + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_LSICmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PLLConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PLLCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PLLI2SConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PLLI2SCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_ClockSecuritySystemCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_MCO1Config + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_MCO2Config + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_SYSCLKConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_GetSYSCLKSource + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_HCLKConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PCLK1Config + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PCLK2Config + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_RTCCLKConfig + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_RTCCLKCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_BackupResetCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_I2SCLKConfig + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB2PeriphClockCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB3PeriphClockCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB2PeriphClockCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB1PeriphResetCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB2PeriphResetCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB3PeriphResetCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB1PeriphResetCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB2PeriphResetCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB1PeriphClockLPModeCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB2PeriphClockLPModeCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB3PeriphClockLPModeCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB1PeriphClockLPModeCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB2PeriphClockLPModeCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_ITConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_GetFlagStatus + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_WaitForHSEStartUp + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_ClearFlag + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_GetITStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_ClearITPendingBit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rng.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rng.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_DeInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_Cmd 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_GetRandomNumber + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_ITConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_GetFlagStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_ClearFlag + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_GetITStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_ClearITPendingBit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_info 0x00000000 0x2d1 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_abbrev 0x00000000 0x17c ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_loc 0x00000000 0x102 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_aranges + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_ranges 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x192 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_line 0x00000000 0x4d0 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_str 0x00000000 0x543c7 ..\obj\lib\spl\src\stm32f2xx_rng.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_rng.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_frame 0x00000000 0x98 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ByteToBcd2 + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_Bcd2ToByte + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_StructInit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WriteProtectionCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_EnterInitMode + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ExitInitMode + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_Init + 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WaitForSynchro + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_DeInit + 0x00000000 0x94 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_RefClockCmd + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_SetTime + 0x00000000 0x9c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TimeStructInit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetTime + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_SetDate + 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_DateStructInit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetDate + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_SetAlarm + 0x00000000 0xb0 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_AlarmStructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetAlarm + 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_AlarmCmd + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WakeUpClockConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_SetWakeUpCounter + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetWakeUpCounter + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WakeUpCmd + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_DayLightSavingConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetStoreOperation + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_OutputConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_CoarseCalibConfig + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_CoarseCalibCmd + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_CalibOutputCmd + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TimeStampCmd + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetTimeStamp + 0x00000000 0x74 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TamperTriggerConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TamperCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WriteBackupRegister + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ReadBackupRegister + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TamperPinSelection + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TimeStampPinSelection + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_OutputTypeConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ITConfig + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetFlagStatus + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ClearFlag + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetITStatus + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ClearITPendingBit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_info 0x00000000 0x1053 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_abbrev 0x00000000 0x1d9 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_loc 0x00000000 0xe81 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_aranges + 0x00000000 0x178 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_ranges 0x00000000 0x168 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x1c4 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x3ed ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_line 0x00000000 0x90c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_str 0x00000000 0x54c2c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_frame 0x00000000 0x378 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_Init + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_StructInit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ClockCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SetPowerState + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetPowerState + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SendCommand + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_CmdStructInit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetCommandResponse + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetResponse + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_DataConfig + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_DataStructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetDataCounter + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ReadData + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_WriteData + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetFIFOCount + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_StartSDIOReadWait + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_StopSDIOReadWait + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SetSDIOReadWaitMode + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SetSDIOOperation + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SendSDIOSuspendCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_CommandCompletionCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_CEATAITCmd + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SendCEATACmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_DMACmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ITConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetFlagStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ClearFlag + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetITStatus + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ClearITPendingBit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_info 0x00000000 0x83f ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_abbrev 0x00000000 0x1af ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_loc 0x00000000 0x1f6 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_aranges + 0x00000000 0x108 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_ranges 0x00000000 0xf8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x33c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_line 0x00000000 0x67c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_str 0x00000000 0x54cdf ..\obj\lib\spl\src\stm32f2xx_sdio.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_frame 0x00000000 0x214 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_spi.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_spi.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_DeInit + 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.I2S_Init + 0x00000000 0xdc ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_StructInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.I2S_StructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.I2S_Cmd 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_DataSizeConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_BiDirectionalLineConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_NSSInternalSoftwareConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_SSOutputCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_TIModeCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_TransmitCRC + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_GetCRC + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_GetCRCPolynomial + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_DMACmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_ITConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_ClearFlag + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_GetITStatus + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_ClearITPendingBit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_MemoryRemapConfig + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_EXTILineConfig + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_ETH_MediaInterfaceConfig + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_CompensationCellCmd + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_GetCompensationCellStatus + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_info 0x00000000 0x2bd ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_abbrev 0x00000000 0x169 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_loc 0x00000000 0xa6 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_aranges + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_ranges 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x1bc ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xdb ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_line 0x00000000 0x4ae ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_str 0x00000000 0x545a2 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_frame 0x00000000 0x80 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_tim.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_tim.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TI1_Config + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TI2_Config + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_DeInit + 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_TimeBaseInit + 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_TimeBaseStructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_PrescalerConfig + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CounterModeConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCounter + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetAutoreload + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCounter + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetPrescaler + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_UpdateDisableConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_UpdateRequestConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ARRPreloadConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectOnePulseMode + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetClockDivision + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_Cmd 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1Init + 0x00000000 0x74 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2Init + 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3Init + 0x00000000 0x84 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC4Init + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OCStructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectOCxM + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCompare1 + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCompare2 + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCompare3 + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCompare4 + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ForcedOC1Config + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ForcedOC2Config + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ForcedOC3Config + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ForcedOC4Config + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1PreloadConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2PreloadConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3PreloadConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC4PreloadConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1FastConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2FastConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3FastConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC4FastConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearOC1Ref + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearOC2Ref + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearOC3Ref + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearOC4Ref + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1PolarityConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1NPolarityConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2PolarityConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2NPolarityConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3PolarityConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3NPolarityConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC4PolarityConfig + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CCxCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CCxNCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ICStructInit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCapture1 + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCapture2 + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCapture3 + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCapture4 + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetIC1Prescaler + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetIC2Prescaler + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_PWMIConfig + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetIC3Prescaler + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetIC4Prescaler + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ICInit + 0x00000000 0xc4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_BDTRConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_BDTRStructInit + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CtrlPWMOutputs + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectCOM + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CCPreloadControl + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ITConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GenerateEvent + 0x00000000 0x4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetFlagStatus + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearFlag + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetITStatus + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearITPendingBit + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_DMAConfig + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_DMACmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectCCDMA + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_InternalClockConfig + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ITRxExternalClockConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_TIxExternalClockConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectInputTrigger + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectOutputTrigger + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectSlaveMode + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectMasterSlaveMode + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ETRConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ETRClockMode1Config + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ETRClockMode2Config + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_EncoderInterfaceConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectHallSensor + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_RemapConfig + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_info 0x00000000 0x21ba ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_abbrev 0x00000000 0x27c ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_loc 0x00000000 0x1b54 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_aranges + 0x00000000 0x2e8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_ranges 0x00000000 0x2d8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x1bc ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x735 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_line 0x00000000 0xc30 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_str 0x00000000 0x54ffc ..\obj\lib\spl\src\stm32f2xx_tim.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_tim.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_frame 0x00000000 0x650 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_DeInit + 0x00000000 0xbc ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_StructInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ClockInit + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ClockStructInit + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SetPrescaler + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_OverSampling8Cmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_OneBitMethodCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SetAddress + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ReceiverWakeUpCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_WakeUpConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_LINBreakDetectLengthConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_LINCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SendBreak + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_HalfDuplexCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SetGuardTime + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SmartCardCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SmartCardNACKCmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_IrDAConfig + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_IrDACmd + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_DMACmd + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ITConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ClearFlag + 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_GetITStatus + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ClearITPendingBit + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_SetPrescaler + 0x00000000 0x14 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_SetWindowValue + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_EnableIT + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_SetCounter + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_Enable + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_GetFlagStatus + 0x00000000 0x10 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_ClearFlag + 0x00000000 0xc ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_info 0x00000000 0x2a6 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_abbrev 0x00000000 0x178 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_loc 0x00000000 0xd1 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_aranges + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_ranges 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x1bc ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x2e ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_line 0x00000000 0x4cf ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_str 0x00000000 0x544d5 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_frame 0x00000000 0x9c ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .text 0x00000000 0x0 ..\obj\lib\system_stm32f2xx.o + .data 0x00000000 0x0 ..\obj\lib\system_stm32f2xx.o + .bss 0x00000000 0x0 ..\obj\lib\system_stm32f2xx.o + .text.SystemCoreClockUpdate + 0x00000000 0x90 ..\obj\lib\system_stm32f2xx.o + .data.AHBPrescTable + 0x00000000 0x10 ..\obj\lib\system_stm32f2xx.o + .data.SystemCoreClock + 0x00000000 0x4 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x862 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x4c ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x3a ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x16 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x44 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x209 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x18 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x44f ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x111 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x188 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x149 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x477 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xae ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x242 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x279 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x25e ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x64 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x88 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x536 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x40 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x342 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x357 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x73b ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x221 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x34 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x82 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x35 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .text 0x00000000 0x0 ..\obj\main.o + .data 0x00000000 0x0 ..\obj\main.o + .bss 0x00000000 0x0 ..\obj\main.o + .debug_macro 0x00000000 0x862 ..\obj\main.o + .debug_macro 0x00000000 0x1c ..\obj\main.o + .debug_macro 0x00000000 0x1c ..\obj\main.o + .debug_macro 0x00000000 0x22 ..\obj\main.o + .debug_macro 0x00000000 0x87 ..\obj\main.o + .debug_macro 0x00000000 0x49 ..\obj\main.o + .debug_macro 0x00000000 0x1c ..\obj\main.o + .debug_macro 0x00000000 0x97 ..\obj\main.o + .debug_macro 0x00000000 0xee ..\obj\main.o + .debug_macro 0x00000000 0x40 ..\obj\main.o + .debug_macro 0x00000000 0x9f ..\obj\main.o + .debug_macro 0x00000000 0x28 ..\obj\main.o + .debug_macro 0x00000000 0x4c ..\obj\main.o + .debug_macro 0x00000000 0x3a ..\obj\main.o + .debug_macro 0x00000000 0x16 ..\obj\main.o + .debug_macro 0x00000000 0x44 ..\obj\main.o + .debug_macro 0x00000000 0x209 ..\obj\main.o + .debug_macro 0x00000000 0x18 ..\obj\main.o + .debug_macro 0x00000000 0xb08 ..\obj\main.o + .debug_macro 0x00000000 0x7f1c ..\obj\main.o + .debug_macro 0x00000000 0x44f ..\obj\main.o + .debug_macro 0x00000000 0x3cf ..\obj\main.o + .debug_macro 0x00000000 0x111 ..\obj\main.o + .debug_macro 0x00000000 0x188 ..\obj\main.o + .debug_macro 0x00000000 0xb2 ..\obj\main.o + .debug_macro 0x00000000 0x149 ..\obj\main.o + .debug_macro 0x00000000 0x477 ..\obj\main.o + .debug_macro 0x00000000 0xae ..\obj\main.o + .debug_macro 0x00000000 0x242 ..\obj\main.o + .debug_macro 0x00000000 0x279 ..\obj\main.o + .debug_macro 0x00000000 0xb5 ..\obj\main.o + .debug_macro 0x00000000 0x25e ..\obj\main.o + .debug_macro 0x00000000 0x2b3 ..\obj\main.o + .debug_macro 0x00000000 0x64 ..\obj\main.o + .debug_macro 0x00000000 0x88 ..\obj\main.o + .debug_macro 0x00000000 0x536 ..\obj\main.o + .debug_macro 0x00000000 0x40 ..\obj\main.o + .debug_macro 0x00000000 0x3f3 ..\obj\main.o + .debug_macro 0x00000000 0x342 ..\obj\main.o + .debug_macro 0x00000000 0x357 ..\obj\main.o + .debug_macro 0x00000000 0xe1 ..\obj\main.o + .debug_macro 0x00000000 0x73b ..\obj\main.o + .debug_macro 0x00000000 0x221 ..\obj\main.o + .debug_macro 0x00000000 0x34 ..\obj\main.o + .debug_macro 0x00000000 0x82 ..\obj\main.o + .debug_macro 0x00000000 0x35 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .text.CpuReset + 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x4c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x3a ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x16 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x44 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x209 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x18 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0xb08 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x7f1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x44f ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x3cf ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x111 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x188 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0xb2 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x149 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x477 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0xae ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x242 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x279 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0xb5 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x25e ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x2b3 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x64 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x88 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x536 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x3f3 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x342 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x357 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0xe1 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x73b ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x221 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x34 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x82 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x00000000 0x35 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x4c ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x3a ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x16 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x44 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x209 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x18 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0xb08 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x7f1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x44f ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x3cf ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x111 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x188 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0xb2 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x149 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x477 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0xae ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x242 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x279 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0xb5 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x25e ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x2b3 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x64 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x88 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x536 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x3f3 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x342 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x357 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0xe1 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x73b ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x221 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x34 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x82 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x00000000 0x35 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x4c ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x3a ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x16 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x44 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x209 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x18 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0xb08 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x7f1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x44f ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x3cf ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x111 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x188 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0xb2 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x149 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x477 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0xae ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x242 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x279 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0xb5 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x25e ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x2b3 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x64 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x88 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x536 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x3f3 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x342 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x357 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0xe1 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x73b ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x221 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x34 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x82 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x00000000 0x35 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\assert.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\assert.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\assert.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\assert.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\backdoor.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\backdoor.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\backdoor.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\backdoor.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\boot.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\boot.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\boot.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\boot.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\com.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\com.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\com.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\com.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\cop.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\cop.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\cop.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\cop.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\file.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\file.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\file.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00000000 0x16 ..\obj\~#\~#\~#\source\file.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_opendir + 0x00000000 0x80 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_readdir + 0x00000000 0x64 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_getfree + 0x00000000 0xf0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_truncate + 0x00000000 0xa0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_mkdir 0x00000000 0x1e0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_chmod 0x00000000 0x60 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_utime 0x00000000 0x60 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_rename + 0x00000000 0x124 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_printf + 0x00000000 0x300 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .group 0x00000000 0x8 ..\obj\~#\~#\~#\source\xcp.o + .text 0x00000000 0x0 ..\obj\~#\~#\~#\source\xcp.o + .data 0x00000000 0x0 ..\obj\~#\~#\~#\source\xcp.o + .bss 0x00000000 0x0 ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x862 ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x22 ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x87 ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x49 ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x1c ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x97 ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0xee ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x40 ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x9f ..\obj\~#\~#\~#\source\xcp.o + .debug_macro 0x00000000 0x28 ..\obj\~#\~#\~#\source\xcp.o + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-ctype_.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-ctype_.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-ctype_.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .data._impure_ptr + 0x00000000 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .jcr 0x00000000 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + +Memory Configuration + +Name Origin Length Attributes +ROM 0x08000000 0x00008000 xr +RAM 0x20000000 0x00008000 xrw +*default* 0x00000000 0xffffffff + +Linker script and memory map + +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + 0x00000000 __HEAP_SIZE = 0x0 + 0x00000100 __STACK_SIZE = 0x100 + +.text 0x08000000 0x4da8 + *(.isr_vector) + .isr_vector 0x08000000 0x184 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + 0x08000000 __isr_vector + *(.text*) + .text 0x08000184 0x54 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .text 0x080001d8 0x74 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + 0x080001d8 _start + 0x080001d8 _mainCRTStartup + .text.CpuUserProgramStartHook + 0x0800024c 0x1c ..\obj\hooks.o + 0x0800024c CpuUserProgramStartHook + .text.CopInitHook + 0x08000268 0xc ..\obj\hooks.o + 0x08000268 CopInitHook + .text.CopServiceHook + 0x08000274 0x8 ..\obj\hooks.o + 0x08000274 CopServiceHook + .text.FileIsFirmwareUpdateRequestedHook + 0x0800027c 0x44 ..\obj\hooks.o + 0x0800027c FileIsFirmwareUpdateRequestedHook + .text.FileGetFirmwareFilenameHook + 0x080002c0 0x8 ..\obj\hooks.o + 0x080002c0 FileGetFirmwareFilenameHook + .text.FileFirmwareUpdateStartedHook + 0x080002c8 0x28 ..\obj\hooks.o + 0x080002c8 FileFirmwareUpdateStartedHook + .text.FileFirmwareUpdateCompletedHook + 0x080002f0 0x48 ..\obj\hooks.o + 0x080002f0 FileFirmwareUpdateCompletedHook + .text.FileFirmwareUpdateErrorHook + 0x08000338 0x18 ..\obj\hooks.o + 0x08000338 FileFirmwareUpdateErrorHook + .text.FileFirmwareUpdateLogHook + 0x08000350 0x50 ..\obj\hooks.o + 0x08000350 FileFirmwareUpdateLogHook + .text.LedBlinkInit + 0x080003a0 0xc ..\obj\led.o + 0x080003a0 LedBlinkInit + .text.LedBlinkTask + 0x080003ac 0x58 ..\obj\led.o + 0x080003ac LedBlinkTask + .text.LedBlinkExit + 0x08000404 0x14 ..\obj\led.o + 0x08000404 LedBlinkExit + .text.xchg_spi + 0x08000418 0x28 ..\obj\lib\fatfs\mmc.o + .text.wait_ready + 0x08000440 0x2c ..\obj\lib\fatfs\mmc.o + .text.deselect + 0x0800046c 0x18 ..\obj\lib\fatfs\mmc.o + .text.select 0x08000484 0x28 ..\obj\lib\fatfs\mmc.o + .text.send_cmd + 0x080004ac 0x90 ..\obj\lib\fatfs\mmc.o + .text.xmit_datablock + 0x0800053c 0x5c ..\obj\lib\fatfs\mmc.o + .text.rcvr_datablock + 0x08000598 0x60 ..\obj\lib\fatfs\mmc.o + .text.disk_initialize + 0x080005f8 0x30c ..\obj\lib\fatfs\mmc.o + 0x080005f8 disk_initialize + .text.disk_status + 0x08000904 0x14 ..\obj\lib\fatfs\mmc.o + 0x08000904 disk_status + .text.disk_read + 0x08000918 0x94 ..\obj\lib\fatfs\mmc.o + 0x08000918 disk_read + .text.disk_write + 0x080009ac 0xb4 ..\obj\lib\fatfs\mmc.o + 0x080009ac disk_write + .text.disk_ioctl + 0x08000a60 0x274 ..\obj\lib\fatfs\mmc.o + 0x08000a60 disk_ioctl + .text.get_fattime + 0x08000cd4 0x8 ..\obj\lib\fatfs\mmc.o + 0x08000cd4 get_fattime + .text.FLASH_Unlock + 0x08000cdc 0x20 ..\obj\lib\spl\src\stm32f2xx_flash.o + 0x08000cdc FLASH_Unlock + .text.FLASH_Lock + 0x08000cfc 0x10 ..\obj\lib\spl\src\stm32f2xx_flash.o + 0x08000cfc FLASH_Lock + .text.FLASH_ClearFlag + 0x08000d0c 0xc ..\obj\lib\spl\src\stm32f2xx_flash.o + 0x08000d0c FLASH_ClearFlag + .text.FLASH_GetStatus + 0x08000d18 0x40 ..\obj\lib\spl\src\stm32f2xx_flash.o + 0x08000d18 FLASH_GetStatus + .text.FLASH_WaitForLastOperation + 0x08000d58 0x38 ..\obj\lib\spl\src\stm32f2xx_flash.o + 0x08000d58 FLASH_WaitForLastOperation + .text.FLASH_EraseSector + 0x08000d90 0x6c ..\obj\lib\spl\src\stm32f2xx_flash.o + 0x08000d90 FLASH_EraseSector + .text.FLASH_ProgramWord + 0x08000dfc 0x3c ..\obj\lib\spl\src\stm32f2xx_flash.o + 0x08000dfc FLASH_ProgramWord + .text.GPIO_Init + 0x08000e38 0x90 ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x08000e38 GPIO_Init + .text.GPIO_ReadInputDataBit + 0x08000ec8 0xc ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x08000ec8 GPIO_ReadInputDataBit + .text.GPIO_SetBits + 0x08000ed4 0x4 ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x08000ed4 GPIO_SetBits + .text.GPIO_ResetBits + 0x08000ed8 0x4 ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x08000ed8 GPIO_ResetBits + .text.GPIO_PinAFConfig + 0x08000edc 0x28 ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x08000edc GPIO_PinAFConfig + .text.RCC_GetClocksFreq + 0x08000f04 0xb8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + 0x08000f04 RCC_GetClocksFreq + .text.RCC_AHB1PeriphClockCmd + 0x08000fbc 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + 0x08000fbc RCC_AHB1PeriphClockCmd + .text.RCC_APB1PeriphClockCmd + 0x08000fd8 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + 0x08000fd8 RCC_APB1PeriphClockCmd + .text.SPI_Init + 0x08000ff4 0x44 ..\obj\lib\spl\src\stm32f2xx_spi.o + 0x08000ff4 SPI_Init + .text.SPI_Cmd 0x08001038 0x1c ..\obj\lib\spl\src\stm32f2xx_spi.o + 0x08001038 SPI_Cmd + .text.SPI_I2S_ReceiveData + 0x08001054 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + 0x08001054 SPI_I2S_ReceiveData + .text.SPI_I2S_SendData + 0x0800105c 0x4 ..\obj\lib\spl\src\stm32f2xx_spi.o + 0x0800105c SPI_I2S_SendData + .text.SPI_CalculateCRC + 0x08001060 0x1c ..\obj\lib\spl\src\stm32f2xx_spi.o + 0x08001060 SPI_CalculateCRC + .text.SPI_I2S_GetFlagStatus + 0x0800107c 0xc ..\obj\lib\spl\src\stm32f2xx_spi.o + 0x0800107c SPI_I2S_GetFlagStatus + .text.USART_Init + 0x08001088 0xd0 ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x08001088 USART_Init + .text.USART_Cmd + 0x08001158 0x1c ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x08001158 USART_Cmd + .text.USART_SendData + 0x08001174 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x08001174 USART_SendData + .text.USART_ReceiveData + 0x0800117c 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x0800117c USART_ReceiveData + .text.USART_GetFlagStatus + 0x08001184 0xc ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x08001184 USART_GetFlagStatus + .text.SystemInit + 0x08001190 0xdc ..\obj\lib\system_stm32f2xx.o + 0x08001190 SystemInit + .text.main 0x0800126c 0xc4 ..\obj\main.o + 0x0800126c main + .text.CpuStartUserProgram + 0x08001330 0x34 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + 0x08001330 CpuStartUserProgram + .text.CpuMemCopy + 0x08001364 0x20 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + 0x08001364 CpuMemCopy + .text.FlashGetSector + 0x08001384 0x3c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .text.FlashWriteBlock + 0x080013c0 0x78 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .text.FlashSwitchBlock + 0x08001438 0x58 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .text.FlashAddToBlock + 0x08001490 0x84 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .text.FlashInit + 0x08001514 0x18 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + 0x08001514 FlashInit + .text.FlashWrite + 0x0800152c 0x50 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + 0x0800152c FlashWrite + .text.FlashErase + 0x0800157c 0x8c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + 0x0800157c FlashErase + .text.FlashWriteChecksum + 0x08001608 0x4c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + 0x08001608 FlashWriteChecksum + .text.FlashVerifyChecksum + 0x08001654 0x54 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + 0x08001654 FlashVerifyChecksum + .text.FlashDone + 0x080016a8 0x3c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + 0x080016a8 FlashDone + .text.FlashGetUserProgBaseAddress + 0x080016e4 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + 0x080016e4 FlashGetUserProgBaseAddress + .text 0x080016ec 0x110 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + 0x080016ec Reset_Handler + 0x0800173e NMI_Handler + 0x08001740 HardFault_Handler + 0x08001742 MemManage_Handler + 0x08001744 BusFault_Handler + 0x08001746 UsageFault_Handler + 0x08001748 SVC_Handler + 0x0800174a DebugMon_Handler + 0x0800174c PendSV_Handler + 0x0800174e SysTick_Handler + 0x08001750 Default_Handler + 0x08001752 WWDG_IRQHandler + 0x08001754 PVD_IRQHandler + 0x08001756 TAMP_STAMP_IRQHandler + 0x08001758 RTC_WKUP_IRQHandler + 0x0800175a FLASH_IRQHandler + 0x0800175c RCC_IRQHandler + 0x0800175e EXTI0_IRQHandler + 0x08001760 EXTI1_IRQHandler + 0x08001762 EXTI2_IRQHandler + 0x08001764 EXTI3_IRQHandler + 0x08001766 EXTI4_IRQHandler + 0x08001768 DMA1_Stream0_IRQHandler + 0x0800176a DMA1_Stream1_IRQHandler + 0x0800176c DMA1_Stream2_IRQHandler + 0x0800176e DMA1_Stream3_IRQHandler + 0x08001770 DMA1_Stream4_IRQHandler + 0x08001772 DMA1_Stream5_IRQHandler + 0x08001774 DMA1_Stream6_IRQHandler + 0x08001776 ADC_IRQHandler + 0x08001778 CAN1_TX_IRQHandler + 0x0800177a CAN1_RX0_IRQHandler + 0x0800177c CAN1_RX1_IRQHandler + 0x0800177e CAN1_SCE_IRQHandler + 0x08001780 EXTI9_5_IRQHandler + 0x08001782 TIM1_BRK_TIM9_IRQHandler + 0x08001784 TIM1_UP_TIM10_IRQHandler + 0x08001786 TIM1_TRG_COM_TIM11_IRQHandler + 0x08001788 TIM1_CC_IRQHandler + 0x0800178a TIM2_IRQHandler + 0x0800178c TIM3_IRQHandler + 0x0800178e TIM4_IRQHandler + 0x08001790 I2C1_EV_IRQHandler + 0x08001792 I2C1_ER_IRQHandler + 0x08001794 I2C2_EV_IRQHandler + 0x08001796 I2C2_ER_IRQHandler + 0x08001798 SPI1_IRQHandler + 0x0800179a SPI2_IRQHandler + 0x0800179c USART1_IRQHandler + 0x0800179e USART2_IRQHandler + 0x080017a0 USART3_IRQHandler + 0x080017a2 EXTI15_10_IRQHandler + 0x080017a4 RTC_Alarm_IRQHandler + 0x080017a6 OTG_FS_WKUP_IRQHandler + 0x080017a8 TIM8_BRK_TIM12_IRQHandler + 0x080017aa TIM8_UP_TIM13_IRQHandler + 0x080017ac TIM8_TRG_COM_TIM14_IRQHandler + 0x080017ae TIM8_CC_IRQHandler + 0x080017b0 DMA1_Stream7_IRQHandler + 0x080017b2 FSMC_IRQHandler + 0x080017b4 SDIO_IRQHandler + 0x080017b6 TIM5_IRQHandler + 0x080017b8 SPI3_IRQHandler + 0x080017ba UART4_IRQHandler + 0x080017bc UART5_IRQHandler + 0x080017be TIM6_DAC_IRQHandler + 0x080017c0 TIM7_IRQHandler + 0x080017c2 DMA2_Stream0_IRQHandler + 0x080017c4 DMA2_Stream1_IRQHandler + 0x080017c6 DMA2_Stream2_IRQHandler + 0x080017c8 DMA2_Stream3_IRQHandler + 0x080017ca DMA2_Stream4_IRQHandler + 0x080017cc ETH_IRQHandler + 0x080017ce ETH_WKUP_IRQHandler + 0x080017d0 CAN2_TX_IRQHandler + 0x080017d2 CAN2_RX0_IRQHandler + 0x080017d4 CAN2_RX1_IRQHandler + 0x080017d6 CAN2_SCE_IRQHandler + 0x080017d8 OTG_FS_IRQHandler + 0x080017da DMA2_Stream5_IRQHandler + 0x080017dc DMA2_Stream6_IRQHandler + 0x080017de DMA2_Stream7_IRQHandler + 0x080017e0 USART6_IRQHandler + 0x080017e2 I2C3_EV_IRQHandler + 0x080017e4 I2C3_ER_IRQHandler + 0x080017e6 OTG_HS_EP1_OUT_IRQHandler + 0x080017e8 OTG_HS_EP1_IN_IRQHandler + 0x080017ea OTG_HS_WKUP_IRQHandler + 0x080017ec OTG_HS_IRQHandler + 0x080017ee DCMI_IRQHandler + 0x080017f0 CRYP_IRQHandler + 0x080017f2 HASH_RNG_IRQHandler + .text.NvmInit 0x080017fc 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + 0x080017fc NvmInit + .text.NvmWrite + 0x08001804 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + 0x08001804 NvmWrite + .text.NvmErase + 0x0800180c 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + 0x0800180c NvmErase + .text.NvmVerifyChecksum + 0x08001814 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + 0x08001814 NvmVerifyChecksum + .text.NvmGetUserProgBaseAddress + 0x0800181c 0x8 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + 0x0800181c NvmGetUserProgBaseAddress + .text.NvmDone 0x08001824 0x14 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + 0x08001824 NvmDone + .text.TimerInit + 0x08001838 0x24 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + 0x08001838 TimerInit + .text.TimerReset + 0x0800185c 0xc ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + 0x0800185c TimerReset + .text.TimerUpdate + 0x08001868 0x1c ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + 0x08001868 TimerUpdate + .text.TimerGet + 0x08001884 0x10 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + 0x08001884 TimerGet + .text.UartTransmitByte + 0x08001894 0x34 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .text.UartReceiveByte + 0x080018c8 0x24 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .text.UartInit + 0x080018ec 0x3c ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + 0x080018ec UartInit + .text.UartTransmitPacket + 0x08001928 0x58 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + 0x08001928 UartTransmitPacket + .text.UartReceivePacket + 0x08001980 0xa0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + 0x08001980 UartReceivePacket + .text.AssertFailure + 0x08001a20 0x18 ..\obj\~#\~#\~#\source\assert.o + 0x08001a20 AssertFailure + .text.BackDoorCheck + 0x08001a38 0x44 ..\obj\~#\~#\~#\source\backdoor.o + 0x08001a38 BackDoorCheck + .text.BackDoorInit + 0x08001a7c 0x20 ..\obj\~#\~#\~#\source\backdoor.o + 0x08001a7c BackDoorInit + .text.BootInit + 0x08001a9c 0x1c ..\obj\~#\~#\~#\source\boot.o + 0x08001a9c BootInit + .text.BootTask + 0x08001ab8 0x18 ..\obj\~#\~#\~#\source\boot.o + 0x08001ab8 BootTask + .text.ComInit 0x08001ad0 0x18 ..\obj\~#\~#\~#\source\com.o + 0x08001ad0 ComInit + .text.ComTask 0x08001ae8 0x24 ..\obj\~#\~#\~#\source\com.o + 0x08001ae8 ComTask + .text.ComFree 0x08001b0c 0x4 ..\obj\~#\~#\~#\source\com.o + 0x08001b0c ComFree + .text.ComTransmitPacket + 0x08001b10 0x18 ..\obj\~#\~#\~#\source\com.o + 0x08001b10 ComTransmitPacket + .text.ComGetActiveInterfaceMaxRxLen + 0x08001b28 0x14 ..\obj\~#\~#\~#\source\com.o + 0x08001b28 ComGetActiveInterfaceMaxRxLen + .text.ComGetActiveInterfaceMaxTxLen + 0x08001b3c 0x14 ..\obj\~#\~#\~#\source\com.o + 0x08001b3c ComGetActiveInterfaceMaxTxLen + .text.ComIsConnected + 0x08001b50 0x8 ..\obj\~#\~#\~#\source\com.o + 0x08001b50 ComIsConnected + .text.CopInit 0x08001b58 0x8 ..\obj\~#\~#\~#\source\cop.o + 0x08001b58 CopInit + .text.CopService + 0x08001b60 0x8 ..\obj\~#\~#\~#\source\cop.o + 0x08001b60 CopService + .text.FileLibByteNibbleToChar + 0x08001b68 0x2c ..\obj\~#\~#\~#\source\file.o + .text.FileLibByteToHexString + 0x08001b94 0x20 ..\obj\~#\~#\~#\source\file.o + .text.FileLibLongToIntString + 0x08001bb4 0x40 ..\obj\~#\~#\~#\source\file.o + .text.FileLibHexStringToByte + 0x08001bf4 0x5c ..\obj\~#\~#\~#\source\file.o + .text.FileInit + 0x08001c50 0x28 ..\obj\~#\~#\~#\source\file.o + 0x08001c50 FileInit + .text.FileIsIdle + 0x08001c78 0x14 ..\obj\~#\~#\~#\source\file.o + 0x08001c78 FileIsIdle + .text.FileHandleFirmwareUpdateRequest + 0x08001c8c 0x30 ..\obj\~#\~#\~#\source\file.o + 0x08001c8c FileHandleFirmwareUpdateRequest + .text.FileSrecGetLineType + 0x08001cbc 0x4c ..\obj\~#\~#\~#\source\file.o + 0x08001cbc FileSrecGetLineType + .text.FileSrecVerifyChecksum + 0x08001d08 0x38 ..\obj\~#\~#\~#\source\file.o + 0x08001d08 FileSrecVerifyChecksum + .text.FileSrecParseLine + 0x08001d40 0x180 ..\obj\~#\~#\~#\source\file.o + 0x08001d40 FileSrecParseLine + .text.FileTask + 0x08001ec0 0x370 ..\obj\~#\~#\~#\source\file.o + 0x08001ec0 FileTask + .text.mem_cpy 0x08002230 0x14 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.ld_clust + 0x08002244 0x20 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.sum_sfn 0x08002264 0x20 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.check_fs + 0x08002284 0x8c ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.sync_window + 0x08002310 0x78 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.move_window + 0x08002388 0x38 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.validate + 0x080023c0 0x38 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.chk_mounted + 0x080023f8 0x388 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.get_fileinfo + 0x08002780 0x130 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.sync_fs 0x080028b0 0xbc ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.clust2sect + 0x0800296c 0x18 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x0800296c clust2sect + .text.get_fat 0x08002984 0xec ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08002984 get_fat + .text.dir_sdi 0x08002a70 0x98 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.put_fat 0x08002b08 0x10c ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08002b08 put_fat + .text.create_chain + 0x08002c14 0xc4 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.dir_next + 0x08002cd8 0x12c ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.dir_find + 0x08002e04 0x180 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.follow_path + 0x08002f84 0x314 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.dir_read + 0x08003298 0x134 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.dir_remove + 0x080033cc 0x58 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.remove_chain + 0x08003424 0x70 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.gen_numname + 0x08003494 0x98 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003494 gen_numname + .text.dir_register + 0x0800352c 0x210 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .text.f_mount 0x0800373c 0x24 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x0800373c f_mount + .text.f_open 0x08003760 0x168 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003760 f_open + .text.f_read 0x080038c8 0x1a8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x080038c8 f_read + .text.f_write 0x08003a70 0x1d8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003a70 f_write + .text.f_sync 0x08003c48 0xac ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003c48 f_sync + .text.f_close 0x08003cf4 0x14 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003cf4 f_close + .text.f_lseek 0x08003d08 0x198 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003d08 f_lseek + .text.f_stat 0x08003ea0 0x48 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003ea0 f_stat + .text.f_unlink + 0x08003ee8 0xbc ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003ee8 f_unlink + .text.f_gets 0x08003fa4 0x4c ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003fa4 f_gets + .text.f_putc 0x08003ff0 0x34 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08003ff0 f_putc + .text.f_puts 0x08004024 0x2c ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x08004024 f_puts + .text.ff_convert + 0x08004050 0x40 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + 0x08004050 ff_convert + .text.ff_wtoupper + 0x08004090 0x2c ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + 0x08004090 ff_wtoupper + .text.XcpSetCtoError + 0x080040bc 0x14 ..\obj\~#\~#\~#\source\xcp.o + .text.XcpInit 0x080040d0 0x1c ..\obj\~#\~#\~#\source\xcp.o + 0x080040d0 XcpInit + .text.XcpIsConnected + 0x080040ec 0x10 ..\obj\~#\~#\~#\source\xcp.o + 0x080040ec XcpIsConnected + .text.XcpPacketTransmitted + 0x080040fc 0x10 ..\obj\~#\~#\~#\source\xcp.o + 0x080040fc XcpPacketTransmitted + .text.XcpPacketReceived + 0x0800410c 0x308 ..\obj\~#\~#\~#\source\xcp.o + 0x0800410c XcpPacketReceived + .text.exit 0x08004414 0x28 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + 0x08004414 exit + .text.__libc_init_array + 0x0800443c 0x4c c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + 0x0800443c __libc_init_array + .text.memset 0x08004488 0x10 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + 0x08004488 memset + .text 0x08004498 0x2 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + 0x08004498 _exit + *(.init) + *fill* 0x0800449a 0x2 + .init 0x0800449c 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + 0x0800449c _init + .init 0x080044a0 0x8 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + *(.fini) + .fini 0x080044a8 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + 0x080044a8 _fini + .fini 0x080044ac 0x8 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + *crtbegin.o(.ctors) + *crtbegin?.o(.ctors) + *(EXCLUDE_FILE(*crtend.o *crtend?.o) .ctors) + *(SORT(.ctors.*)) + *(.ctors) + *crtbegin.o(.dtors) + *crtbegin?.o(.dtors) + *(EXCLUDE_FILE(*crtend.o *crtend?.o) .dtors) + *(SORT(.dtors.*)) + *(.dtors) + *(.rodata*) + .rodata.firmwareFilename + 0x080044b4 0x1c ..\obj\hooks.o + .rodata.str1.4 + 0x080044d0 0xd ..\obj\hooks.o + 0x10 (size before relaxing) + *fill* 0x080044dd 0x3 + .rodata.flashSectorNumToMask + 0x080044e0 0x18 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .rodata.flashLayout + 0x080044f8 0x48 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .rodata.str1.4 + 0x08004540 0x29 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + 0x2c (size before relaxing) + *fill* 0x08004569 0x3 + .rodata.str1.4 + 0x0800456c 0x1c1 ..\obj\~#\~#\~#\source\file.o + 0x1c8 (size before relaxing) + *fill* 0x0800472d 0x3 + .rodata.str1.4 + 0x08004730 0x14 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .rodata.ExCvt 0x08004744 0x80 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .rodata.LfnOfs + 0x080047c4 0x10 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .rodata.tbl_lower.4264 + 0x080047d4 0x1e0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .rodata.Tbl 0x080049b4 0x100 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .rodata.tbl_upper.4265 + 0x08004ab4 0x1e0 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .rodata.xcpStationId + 0x08004c94 0x8 ..\obj\~#\~#\~#\source\xcp.o + .rodata._ctype_ + 0x08004c9c 0x101 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-ctype_.o) + 0x08004c9c _ctype_ + .rodata.str1.1 + 0x08004d9d 0x2 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + *fill* 0x08004d9f 0x1 + .rodata._global_impure_ptr + 0x08004da0 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + 0x08004da0 _global_impure_ptr + *(.eh_frame*) + .eh_frame 0x08004da4 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .eh_frame 0x08004da4 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + +.glue_7 0x08004da8 0x0 + .glue_7 0x00000000 0x0 linker stubs + +.glue_7t 0x08004da8 0x0 + .glue_7t 0x00000000 0x0 linker stubs + +.vfp11_veneer 0x08004da8 0x0 + .vfp11_veneer 0x00000000 0x0 linker stubs + +.v4_bx 0x08004da8 0x0 + .v4_bx 0x00000000 0x0 linker stubs + +.iplt 0x08004da8 0x0 + .iplt 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + +.ARM.extab + *(.ARM.extab* .gnu.linkonce.armextab.*) + 0x08004da8 __exidx_start = . + +.ARM.exidx 0x08004da8 0x8 + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + .ARM.exidx 0x08004da8 0x8 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + 0x08004db0 __exidx_end = . + 0x08004db0 __etext = . + +.rel.dyn 0x08004db0 0x0 + .rel.iplt 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + +.data 0x20000000 0x84 load address 0x08004db0 + 0x20000000 __data_start__ = . + *(vtable) + *(.data*) + .data.Stat 0x20000000 0x1 ..\obj\lib\fatfs\mmc.o + *fill* 0x20000001 0x3 + .data.APBAHBPrescTable + 0x20000004 0x10 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .data.comActiveInterface + 0x20000014 0x1 ..\obj\~#\~#\~#\source\com.o + *fill* 0x20000015 0x3 + .data.__ctype_ptr__ + 0x20000018 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-ctype_.o) + 0x20000018 __ctype_ptr__ + .data.impure_data + 0x2000001c 0x60 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + 0x2000007c . = ALIGN (0x4) + 0x2000007c PROVIDE (__preinit_array_start, .) + *(.preinit_array) + 0x2000007c PROVIDE (__preinit_array_end, .) + 0x2000007c . = ALIGN (0x4) + 0x2000007c PROVIDE (__init_array_start, .) + *(SORT(.init_array.*)) + *(.init_array) + .init_array 0x2000007c 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + 0x20000080 PROVIDE (__init_array_end, .) + 0x20000080 . = ALIGN (0x4) + 0x20000080 PROVIDE (__fini_array_start, .) + *(SORT(.fini_array.*)) + *(.fini_array) + .fini_array 0x20000080 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + 0x20000084 PROVIDE (__fini_array_end, .) + 0x20000084 . = ALIGN (0x4) + 0x20000084 __data_end__ = . + +.jcr 0x20000084 0x0 load address 0x08004e34 + .jcr 0x20000084 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + +.igot.plt 0x20000084 0x0 load address 0x08004e34 + .igot.plt 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + +.bss 0x20000084 0xf7c load address 0x08004e34 + 0x20000084 __bss_start__ = . + *(.bss*) + .bss 0x20000084 0x1c c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .bss.logfile 0x200000a0 0x228 ..\obj\hooks.o + .bss.nextBlinkEvent.8153 + 0x200002c8 0x4 ..\obj\led.o + .bss.ledBlinkIntervalMs + 0x200002cc 0x2 ..\obj\led.o + .bss.ledOn.8152 + 0x200002ce 0x1 ..\obj\led.o + *fill* 0x200002cf 0x1 + .bss.Timer1 0x200002d0 0x4 ..\obj\lib\fatfs\mmc.o + .bss.Timer2 0x200002d4 0x4 ..\obj\lib\fatfs\mmc.o + .bss.CardType 0x200002d8 0x4 ..\obj\lib\fatfs\mmc.o + .bss.bootBlockInfo + 0x200002dc 0x204 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .bss.blockInfo + 0x200004e0 0x204 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .bss.millisecond_counter + 0x200006e4 0x4 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .bss.xcpCtoReqPacket.8161 + 0x200006e8 0x44 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .bss.xcpCtoRxLength.8162 + 0x2000072c 0x1 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .bss.xcpCtoRxInProgress.8163 + 0x2000072d 0x1 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + *fill* 0x2000072e 0x2 + .bss.xcpCtoRxStartTime.8164 + 0x20000730 0x4 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .bss.assert_failure_file + 0x20000734 0x4 ..\obj\~#\~#\~#\source\assert.o + .bss.assert_failure_line + 0x20000738 0x4 ..\obj\~#\~#\~#\source\assert.o + .bss.backdoorOpen + 0x2000073c 0x1 ..\obj\~#\~#\~#\source\backdoor.o + *fill* 0x2000073d 0x3 + .bss.backdoorOpenTime + 0x20000740 0x4 ..\obj\~#\~#\~#\source\backdoor.o + .bss.xcpCtoReqPacket.4378 + 0x20000744 0x40 ..\obj\~#\~#\~#\source\com.o + .bss.loggingStr + 0x20000784 0x40 ..\obj\~#\~#\~#\source\file.o + .bss.firmwareUpdateState + 0x200007c4 0x1 ..\obj\~#\~#\~#\source\file.o + *fill* 0x200007c5 0x3 + .bss.eraseInfo + 0x200007c8 0x8 ..\obj\~#\~#\~#\source\file.o + .bss.fatFsObjects + 0x200007d0 0x458 ..\obj\~#\~#\~#\source\file.o + .bss.lineParseObject + 0x20000c28 0x184 ..\obj\~#\~#\~#\source\file.o + .bss.LfnBuf 0x20000dac 0x200 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .bss.Fsid 0x20000fac 0x2 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + *fill* 0x20000fae 0x2 + .bss.FatFs 0x20000fb0 0x4 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .bss.xcpInfo 0x20000fb4 0x4c ..\obj\~#\~#\~#\source\xcp.o + *(COMMON) + 0x20001000 __bss_end__ = . + +.heap 0x20001000 0x0 + 0x20001000 __end__ = . + 0x20001000 end = __end__ + *(.heap*) + .heap 0x20001000 0x0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + 0x20001000 __HeapLimit = . + +.stack_dummy 0x20001000 0x100 + *(.stack) + .stack 0x20001000 0x100 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + 0x20008000 __StackTop = (ORIGIN (RAM) + 0x8000) + 0x20007f00 __StackLimit = (__StackTop - SIZEOF (.stack_dummy)) + 0x20008000 PROVIDE (__stack, __StackTop) + 0x00000001 ASSERT ((__StackLimit >= __HeapLimit), region RAM overflowed with stack) +LOAD ..\obj\hooks.o +LOAD ..\obj\led.o +LOAD ..\obj\lib\fatfs\mmc.o +LOAD ..\obj\lib\spl\src\misc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_adc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_can.o +LOAD ..\obj\lib\spl\src\stm32f2xx_crc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_cryp.o +LOAD ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o +LOAD ..\obj\lib\spl\src\stm32f2xx_cryp_des.o +LOAD ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o +LOAD ..\obj\lib\spl\src\stm32f2xx_dac.o +LOAD ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o +LOAD ..\obj\lib\spl\src\stm32f2xx_dcmi.o +LOAD ..\obj\lib\spl\src\stm32f2xx_dma.o +LOAD ..\obj\lib\spl\src\stm32f2xx_exti.o +LOAD ..\obj\lib\spl\src\stm32f2xx_flash.o +LOAD ..\obj\lib\spl\src\stm32f2xx_fsmc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_gpio.o +LOAD ..\obj\lib\spl\src\stm32f2xx_hash.o +LOAD ..\obj\lib\spl\src\stm32f2xx_hash_md5.o +LOAD ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o +LOAD ..\obj\lib\spl\src\stm32f2xx_i2c.o +LOAD ..\obj\lib\spl\src\stm32f2xx_iwdg.o +LOAD ..\obj\lib\spl\src\stm32f2xx_pwr.o +LOAD ..\obj\lib\spl\src\stm32f2xx_rcc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_rng.o +LOAD ..\obj\lib\spl\src\stm32f2xx_rtc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_sdio.o +LOAD ..\obj\lib\spl\src\stm32f2xx_spi.o +LOAD ..\obj\lib\spl\src\stm32f2xx_syscfg.o +LOAD ..\obj\lib\spl\src\stm32f2xx_tim.o +LOAD ..\obj\lib\spl\src\stm32f2xx_usart.o +LOAD ..\obj\lib\spl\src\stm32f2xx_wwdg.o +LOAD ..\obj\lib\system_stm32f2xx.o +LOAD ..\obj\main.o +LOAD ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o +LOAD ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o +LOAD ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o +LOAD ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o +LOAD ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o +LOAD ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o +LOAD ..\obj\~#\~#\~#\source\assert.o +LOAD ..\obj\~#\~#\~#\source\backdoor.o +LOAD ..\obj\~#\~#\~#\source\boot.o +LOAD ..\obj\~#\~#\~#\source\com.o +LOAD ..\obj\~#\~#\~#\source\cop.o +LOAD ..\obj\~#\~#\~#\source\file.o +LOAD ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o +LOAD ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o +LOAD ..\obj\~#\~#\~#\source\xcp.o +START GROUP +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m\libgcc.a +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libc_n.a +END GROUP +START GROUP +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m\libgcc.a +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libc_n.a +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a +END GROUP +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o +OUTPUT(..\bin\openblt_stm32f207.elf elf32-littlearm) + +.ARM.attributes + 0x00000000 0x29 + .ARM.attributes + 0x00000000 0x1d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + .ARM.attributes + 0x0000001d 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .ARM.attributes + 0x0000004a 0x1b c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + .ARM.attributes + 0x00000065 0x33 ..\obj\hooks.o + .ARM.attributes + 0x00000098 0x33 ..\obj\led.o + .ARM.attributes + 0x000000cb 0x33 ..\obj\lib\fatfs\mmc.o + .ARM.attributes + 0x000000fe 0x33 ..\obj\lib\spl\src\stm32f2xx_flash.o + .ARM.attributes + 0x00000131 0x33 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .ARM.attributes + 0x00000164 0x33 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .ARM.attributes + 0x00000197 0x33 ..\obj\lib\spl\src\stm32f2xx_spi.o + .ARM.attributes + 0x000001ca 0x33 ..\obj\lib\spl\src\stm32f2xx_usart.o + .ARM.attributes + 0x000001fd 0x33 ..\obj\lib\system_stm32f2xx.o + .ARM.attributes + 0x00000230 0x33 ..\obj\main.o + .ARM.attributes + 0x00000263 0x33 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .ARM.attributes + 0x00000296 0x33 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .ARM.attributes + 0x000002c9 0x1b ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + .ARM.attributes + 0x000002e4 0x33 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .ARM.attributes + 0x00000317 0x33 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .ARM.attributes + 0x0000034a 0x33 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .ARM.attributes + 0x0000037d 0x33 ..\obj\~#\~#\~#\source\assert.o + .ARM.attributes + 0x000003b0 0x33 ..\obj\~#\~#\~#\source\backdoor.o + .ARM.attributes + 0x000003e3 0x33 ..\obj\~#\~#\~#\source\boot.o + .ARM.attributes + 0x00000416 0x33 ..\obj\~#\~#\~#\source\com.o + .ARM.attributes + 0x00000449 0x33 ..\obj\~#\~#\~#\source\cop.o + .ARM.attributes + 0x0000047c 0x33 ..\obj\~#\~#\~#\source\file.o + .ARM.attributes + 0x000004af 0x33 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .ARM.attributes + 0x000004e2 0x33 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .ARM.attributes + 0x00000515 0x33 ..\obj\~#\~#\~#\source\xcp.o + .ARM.attributes + 0x00000548 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-ctype_.o) + .ARM.attributes + 0x00000575 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .ARM.attributes + 0x000005a2 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .ARM.attributes + 0x000005cf 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .ARM.attributes + 0x000005fc 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .ARM.attributes + 0x00000629 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + .ARM.attributes + 0x00000656 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .ARM.attributes + 0x00000683 0x1d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + +.comment 0x00000000 0x46 + .comment 0x00000000 0x46 ..\obj\hooks.o + 0x47 (size before relaxing) + .comment 0x00000000 0x47 ..\obj\led.o + .comment 0x00000000 0x47 ..\obj\lib\fatfs\mmc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_flash.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_spi.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_usart.o + .comment 0x00000000 0x47 ..\obj\lib\system_stm32f2xx.o + .comment 0x00000000 0x47 ..\obj\main.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\assert.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\backdoor.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\boot.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\com.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\cop.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\file.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .comment 0x00000000 0x47 ..\obj\~#\~#\~#\source\xcp.o + +.debug_info 0x00000000 0xc659 + .debug_info 0x00000000 0x99f ..\obj\hooks.o + .debug_info 0x0000099f 0x2ce ..\obj\led.o + .debug_info 0x00000c6d 0x13f5 ..\obj\lib\fatfs\mmc.o + .debug_info 0x00002062 0x7e5 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_info 0x00002847 0x7e1 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_info 0x00003028 0xc94 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_info 0x00003cbc 0xb73 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_info 0x0000482f 0xb49 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_info 0x00005378 0x590 ..\obj\lib\system_stm32f2xx.o + .debug_info 0x00005908 0x4ca ..\obj\main.o + .debug_info 0x00005dd2 0x1d4 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_info 0x00005fa6 0x88f ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_info 0x00006835 0xa7 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + .debug_info 0x000068dc 0x255 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_info 0x00006b31 0x19b ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_info 0x00006ccc 0x608 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_info 0x000072d4 0x102 ..\obj\~#\~#\~#\source\assert.o + .debug_info 0x000073d6 0x146 ..\obj\~#\~#\~#\source\backdoor.o + .debug_info 0x0000751c 0x14c ..\obj\~#\~#\~#\source\boot.o + .debug_info 0x00007668 0x297 ..\obj\~#\~#\~#\source\com.o + .debug_info 0x000078ff 0xbc ..\obj\~#\~#\~#\source\cop.o + .debug_info 0x000079bb 0x1175 ..\obj\~#\~#\~#\source\file.o + .debug_info 0x00008b30 0x3142 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_info 0x0000bc72 0x165 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_info 0x0000bdd7 0x882 ..\obj\~#\~#\~#\source\xcp.o + +.debug_abbrev 0x00000000 0x276f + .debug_abbrev 0x00000000 0x29f ..\obj\hooks.o + .debug_abbrev 0x0000029f 0x14a ..\obj\led.o + .debug_abbrev 0x000003e9 0x31a ..\obj\lib\fatfs\mmc.o + .debug_abbrev 0x00000703 0x1b5 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_abbrev 0x000008b8 0x1e8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_abbrev 0x00000aa0 0x20e ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_abbrev 0x00000cae 0x1f5 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_abbrev 0x00000ea3 0x1d2 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_abbrev 0x00001075 0x164 ..\obj\lib\system_stm32f2xx.o + .debug_abbrev 0x000011d9 0x19b ..\obj\main.o + .debug_abbrev 0x00001374 0xe9 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_abbrev 0x0000145d 0x2fb ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_abbrev 0x00001758 0x14 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + .debug_abbrev 0x0000176c 0xf9 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_abbrev 0x00001865 0x129 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_abbrev 0x0000198e 0x212 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_abbrev 0x00001ba0 0x9e ..\obj\~#\~#\~#\source\assert.o + .debug_abbrev 0x00001c3e 0x92 ..\obj\~#\~#\~#\source\backdoor.o + .debug_abbrev 0x00001cd0 0x63 ..\obj\~#\~#\~#\source\boot.o + .debug_abbrev 0x00001d33 0x191 ..\obj\~#\~#\~#\source\com.o + .debug_abbrev 0x00001ec4 0x63 ..\obj\~#\~#\~#\source\cop.o + .debug_abbrev 0x00001f27 0x243 ..\obj\~#\~#\~#\source\file.o + .debug_abbrev 0x0000216a 0x2f3 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_abbrev 0x0000245d 0xab ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_abbrev 0x00002508 0x267 ..\obj\~#\~#\~#\source\xcp.o + +.debug_loc 0x00000000 0x9e57 + .debug_loc 0x00000000 0x6a ..\obj\hooks.o + .debug_loc 0x0000006a 0x1030 ..\obj\lib\fatfs\mmc.o + .debug_loc 0x0000109a 0x5a8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_loc 0x00001642 0x2d2 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_loc 0x00001914 0xa8a ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_loc 0x0000239e 0x577 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_loc 0x00002915 0x838 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_loc 0x0000314d 0x11f ..\obj\lib\system_stm32f2xx.o + .debug_loc 0x0000326c 0xc1 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_loc 0x0000332d 0x71d ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_loc 0x00003a4a 0xa5 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_loc 0x00003aef 0x133 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_loc 0x00003c22 0x42 ..\obj\~#\~#\~#\source\assert.o + .debug_loc 0x00003c64 0x42 ..\obj\~#\~#\~#\source\com.o + .debug_loc 0x00003ca6 0xb3c ..\obj\~#\~#\~#\source\file.o + .debug_loc 0x000047e2 0x5160 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_loc 0x00009942 0x149 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_loc 0x00009a8b 0x3cc ..\obj\~#\~#\~#\source\xcp.o + +.debug_aranges 0x00000000 0xaf8 + .debug_aranges + 0x00000000 0x60 ..\obj\hooks.o + .debug_aranges + 0x00000060 0x30 ..\obj\led.o + .debug_aranges + 0x00000090 0x88 ..\obj\lib\fatfs\mmc.o + .debug_aranges + 0x00000118 0x108 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_aranges + 0x00000220 0x88 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_aranges + 0x000002a8 0x178 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_aranges + 0x00000420 0xd8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_aranges + 0x000004f8 0x100 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_aranges + 0x000005f8 0x28 ..\obj\lib\system_stm32f2xx.o + .debug_aranges + 0x00000620 0x20 ..\obj\main.o + .debug_aranges + 0x00000640 0x30 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_aranges + 0x00000670 0x70 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_aranges + 0x000006e0 0x20 ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + .debug_aranges + 0x00000700 0x48 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_aranges + 0x00000748 0x38 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_aranges + 0x00000780 0x40 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_aranges + 0x000007c0 0x20 ..\obj\~#\~#\~#\source\assert.o + .debug_aranges + 0x000007e0 0x28 ..\obj\~#\~#\~#\source\backdoor.o + .debug_aranges + 0x00000808 0x28 ..\obj\~#\~#\~#\source\boot.o + .debug_aranges + 0x00000830 0x50 ..\obj\~#\~#\~#\source\com.o + .debug_aranges + 0x00000880 0x28 ..\obj\~#\~#\~#\source\cop.o + .debug_aranges + 0x000008a8 0x70 ..\obj\~#\~#\~#\source\file.o + .debug_aranges + 0x00000918 0x178 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_aranges + 0x00000a90 0x28 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_aranges + 0x00000ab8 0x40 ..\obj\~#\~#\~#\source\xcp.o + +.debug_ranges 0x00000000 0xa08 + .debug_ranges 0x00000000 0x50 ..\obj\hooks.o + .debug_ranges 0x00000050 0x20 ..\obj\led.o + .debug_ranges 0x00000070 0x78 ..\obj\lib\fatfs\mmc.o + .debug_ranges 0x000000e8 0xf8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_ranges 0x000001e0 0x78 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_ranges 0x00000258 0x168 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_ranges 0x000003c0 0xc8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_ranges 0x00000488 0xf0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_ranges 0x00000578 0x18 ..\obj\lib\system_stm32f2xx.o + .debug_ranges 0x00000590 0x10 ..\obj\main.o + .debug_ranges 0x000005a0 0x20 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_ranges 0x000005c0 0x78 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_ranges 0x00000638 0x38 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_ranges 0x00000670 0x28 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_ranges 0x00000698 0x30 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_ranges 0x000006c8 0x10 ..\obj\~#\~#\~#\source\assert.o + .debug_ranges 0x000006d8 0x18 ..\obj\~#\~#\~#\source\backdoor.o + .debug_ranges 0x000006f0 0x18 ..\obj\~#\~#\~#\source\boot.o + .debug_ranges 0x00000708 0x40 ..\obj\~#\~#\~#\source\com.o + .debug_ranges 0x00000748 0x18 ..\obj\~#\~#\~#\source\cop.o + .debug_ranges 0x00000760 0x78 ..\obj\~#\~#\~#\source\file.o + .debug_ranges 0x000007d8 0x1e8 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_ranges 0x000009c0 0x18 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_ranges 0x000009d8 0x30 ..\obj\~#\~#\~#\source\xcp.o + +.debug_macro 0x00000000 0x1104c + .debug_macro 0x00000000 0x239 ..\obj\hooks.o + .debug_macro 0x00000239 0x862 ..\obj\hooks.o + .debug_macro 0x00000a9b 0x1c ..\obj\hooks.o + .debug_macro 0x00000ab7 0x1c ..\obj\hooks.o + .debug_macro 0x00000ad3 0x22 ..\obj\hooks.o + .debug_macro 0x00000af5 0x87 ..\obj\hooks.o + .debug_macro 0x00000b7c 0x49 ..\obj\hooks.o + .debug_macro 0x00000bc5 0x1c ..\obj\hooks.o + .debug_macro 0x00000be1 0x97 ..\obj\hooks.o + .debug_macro 0x00000c78 0xee ..\obj\hooks.o + .debug_macro 0x00000d66 0x40 ..\obj\hooks.o + .debug_macro 0x00000da6 0x9f ..\obj\hooks.o + .debug_macro 0x00000e45 0x28 ..\obj\hooks.o + .debug_macro 0x00000e6d 0x4c ..\obj\hooks.o + .debug_macro 0x00000eb9 0x3a ..\obj\hooks.o + .debug_macro 0x00000ef3 0x16 ..\obj\hooks.o + .debug_macro 0x00000f09 0x44 ..\obj\hooks.o + .debug_macro 0x00000f4d 0x209 ..\obj\hooks.o + .debug_macro 0x00001156 0x18 ..\obj\hooks.o + .debug_macro 0x0000116e 0xb08 ..\obj\hooks.o + .debug_macro 0x00001c76 0x7f1c ..\obj\hooks.o + .debug_macro 0x00009b92 0x44f ..\obj\hooks.o + .debug_macro 0x00009fe1 0x3cf ..\obj\hooks.o + .debug_macro 0x0000a3b0 0x111 ..\obj\hooks.o + .debug_macro 0x0000a4c1 0x188 ..\obj\hooks.o + .debug_macro 0x0000a649 0xb2 ..\obj\hooks.o + .debug_macro 0x0000a6fb 0x149 ..\obj\hooks.o + .debug_macro 0x0000a844 0x477 ..\obj\hooks.o + .debug_macro 0x0000acbb 0xae ..\obj\hooks.o + .debug_macro 0x0000ad69 0x242 ..\obj\hooks.o + .debug_macro 0x0000afab 0x279 ..\obj\hooks.o + .debug_macro 0x0000b224 0xb5 ..\obj\hooks.o + .debug_macro 0x0000b2d9 0x25e ..\obj\hooks.o + .debug_macro 0x0000b537 0x2b3 ..\obj\hooks.o + .debug_macro 0x0000b7ea 0x64 ..\obj\hooks.o + .debug_macro 0x0000b84e 0x88 ..\obj\hooks.o + .debug_macro 0x0000b8d6 0x536 ..\obj\hooks.o + .debug_macro 0x0000be0c 0x40 ..\obj\hooks.o + .debug_macro 0x0000be4c 0x3f3 ..\obj\hooks.o + .debug_macro 0x0000c23f 0x342 ..\obj\hooks.o + .debug_macro 0x0000c581 0x357 ..\obj\hooks.o + .debug_macro 0x0000c8d8 0xe1 ..\obj\hooks.o + .debug_macro 0x0000c9b9 0x73b ..\obj\hooks.o + .debug_macro 0x0000d0f4 0x221 ..\obj\hooks.o + .debug_macro 0x0000d315 0x34 ..\obj\hooks.o + .debug_macro 0x0000d349 0x82 ..\obj\hooks.o + .debug_macro 0x0000d3cb 0x35 ..\obj\hooks.o + .debug_macro 0x0000d400 0x239 ..\obj\led.o + .debug_macro 0x0000d639 0x228 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x0000d861 0x16 ..\obj\lib\fatfs\mmc.o + .debug_macro 0x0000d877 0x9a ..\obj\lib\fatfs\mmc.o + .debug_macro 0x0000d911 0x198 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x0000daa9 0x23c ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x0000dce5 0x192 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x0000de77 0x258 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x0000e0cf 0x23b ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x0000e30a 0x530 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x0000e83a 0x1bc ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x0000e9f6 0x351 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x0000ed47 0x1aa ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x0000eef1 0x21b ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x0000f10c 0x1ab ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x0000f2b7 0x22f ..\obj\main.o + .debug_macro 0x0000f4e6 0xca ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_macro 0x0000f5b0 0x24d ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_macro 0x0000f7fd 0xc2 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_macro 0x0000f8bf 0x22f ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_macro 0x0000faee 0x23b ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_macro 0x0000fd29 0xb8 ..\obj\~#\~#\~#\source\assert.o + .debug_macro 0x0000fde1 0xbe ..\obj\~#\~#\~#\source\backdoor.o + .debug_macro 0x0000fe9f 0xb8 ..\obj\~#\~#\~#\source\boot.o + .debug_macro 0x0000ff57 0xc2 ..\obj\~#\~#\~#\source\com.o + .debug_macro 0x00010019 0xb8 ..\obj\~#\~#\~#\source\cop.o + .debug_macro 0x000100d1 0x180 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010251 0x58 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x000102a9 0x35 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x000102de 0xa2 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010380 0x166 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x000104e6 0x4a ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010530 0x52 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010582 0x16 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010598 0x43 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x000105db 0x180 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x0001075b 0x2a6 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010a01 0x10 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010a11 0x35 ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010a46 0x1f ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010a65 0xac ..\obj\~#\~#\~#\source\file.o + .debug_macro 0x00010b11 0x27c ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_macro 0x00010d8d 0xac ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_macro 0x00010e39 0x58 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_macro 0x00010e91 0x3d ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_macro 0x00010ece 0x17e ..\obj\~#\~#\~#\source\xcp.o + +.debug_line 0x00000000 0x7354 + .debug_line 0x00000000 0x623 ..\obj\hooks.o + .debug_line 0x00000623 0x588 ..\obj\led.o + .debug_line 0x00000bab 0x775 ..\obj\lib\fatfs\mmc.o + .debug_line 0x00001320 0x6b5 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_line 0x000019d5 0x57a ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_line 0x00001f4f 0x7ae ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_line 0x000026fd 0x65e ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_line 0x00002d5b 0x6b8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_line 0x00003413 0x491 ..\obj\lib\system_stm32f2xx.o + .debug_line 0x000038a4 0x57b ..\obj\main.o + .debug_line 0x00003e1f 0x182 ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_line 0x00003fa1 0x6d4 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_line 0x00004675 0xea ..\obj\~#\~#\~#\source\armcm3_stm32f2\gcc\cstart.o + .debug_line 0x0000475f 0x1c4 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_line 0x00004923 0x592 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_line 0x00004eb5 0x5ea ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_line 0x0000549f 0x15f ..\obj\~#\~#\~#\source\assert.o + .debug_line 0x000055fe 0x179 ..\obj\~#\~#\~#\source\backdoor.o + .debug_line 0x00005777 0x171 ..\obj\~#\~#\~#\source\boot.o + .debug_line 0x000058e8 0x1dd ..\obj\~#\~#\~#\source\com.o + .debug_line 0x00005ac5 0x166 ..\obj\~#\~#\~#\source\cop.o + .debug_line 0x00005c2b 0x5d3 ..\obj\~#\~#\~#\source\file.o + .debug_line 0x000061fe 0xde9 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_line 0x00006fe7 0x11e ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_line 0x00007105 0x24f ..\obj\~#\~#\~#\source\xcp.o + +.debug_str 0x00000000 0x5ba4c + .debug_str 0x00000000 0x5554a ..\obj\hooks.o + 0x5571a (size before relaxing) + .debug_str 0x0005554a 0x59 ..\obj\led.o + 0x552fa (size before relaxing) + .debug_str 0x000555a3 0x705 ..\obj\lib\fatfs\mmc.o + 0x54b01 (size before relaxing) + .debug_str 0x00055ca8 0x3d7 ..\obj\lib\spl\src\stm32f2xx_flash.o + 0x546ec (size before relaxing) + .debug_str 0x0005607f 0x131 ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x54601 (size before relaxing) + .debug_str 0x000561b0 0xa9b ..\obj\lib\spl\src\stm32f2xx_rcc.o + 0x54e5b (size before relaxing) + .debug_str 0x00056c4b 0x2cb ..\obj\lib\spl\src\stm32f2xx_spi.o + 0x548ac (size before relaxing) + .debug_str 0x00056f16 0x4f4 ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x5492a (size before relaxing) + .debug_str 0x0005740a 0xfc ..\obj\lib\system_stm32f2xx.o + 0x5450b (size before relaxing) + .debug_str 0x00057506 0x1c ..\obj\main.o + 0x55459 (size before relaxing) + .debug_str 0x00057522 0x19f ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + 0x3561 (size before relaxing) + .debug_str 0x000576c1 0x2a4 ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + 0x55626 (size before relaxing) + .debug_str 0x00057965 0x4a ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + 0x349e (size before relaxing) + .debug_str 0x000579af 0x71 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + 0x5528e (size before relaxing) + .debug_str 0x00057a20 0x123 ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + 0x554e1 (size before relaxing) + .debug_str 0x00057b43 0x44 ..\obj\~#\~#\~#\source\assert.o + 0x33fc (size before relaxing) + .debug_str 0x00057b87 0xb1 ..\obj\~#\~#\~#\source\backdoor.o + 0x3463 (size before relaxing) + .debug_str 0x00057c38 0x44 ..\obj\~#\~#\~#\source\boot.o + 0x341b (size before relaxing) + .debug_str 0x00057c7c 0x10a ..\obj\~#\~#\~#\source\com.o + 0x351a (size before relaxing) + .debug_str 0x00057d86 0x19 ..\obj\~#\~#\~#\source\cop.o + 0x33c8 (size before relaxing) + .debug_str 0x00057d9f 0x2bd8 ..\obj\~#\~#\~#\source\file.o + 0x653e (size before relaxing) + .debug_str 0x0005a977 0xb5d ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + 0x39de (size before relaxing) + .debug_str 0x0005b4d4 0x58 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + 0x29bd (size before relaxing) + .debug_str 0x0005b52c 0x520 ..\obj\~#\~#\~#\source\xcp.o + 0x39cb (size before relaxing) + +.debug_frame 0x00000000 0x197c + .debug_frame 0x00000000 0xe8 ..\obj\hooks.o + .debug_frame 0x000000e8 0x50 ..\obj\led.o + .debug_frame 0x00000138 0x180 ..\obj\lib\fatfs\mmc.o + .debug_frame 0x000002b8 0x268 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_frame 0x00000520 0x110 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_frame 0x00000630 0x2ec ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_frame 0x0000091c 0x1b4 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_frame 0x00000ad0 0x20c ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_frame 0x00000cdc 0x34 ..\obj\lib\system_stm32f2xx.o + .debug_frame 0x00000d10 0x2c ..\obj\main.o + .debug_frame 0x00000d3c 0x5c ..\obj\~#\~#\~#\source\armcm3_stm32f2\cpu.o + .debug_frame 0x00000d98 0x12c ..\obj\~#\~#\~#\source\armcm3_stm32f2\flash.o + .debug_frame 0x00000ec4 0xa0 ..\obj\~#\~#\~#\source\armcm3_stm32f2\nvm.o + .debug_frame 0x00000f64 0x58 ..\obj\~#\~#\~#\source\armcm3_stm32f2\timer.o + .debug_frame 0x00000fbc 0x9c ..\obj\~#\~#\~#\source\armcm3_stm32f2\uart.o + .debug_frame 0x00001058 0x28 ..\obj\~#\~#\~#\source\assert.o + .debug_frame 0x00001080 0x40 ..\obj\~#\~#\~#\source\backdoor.o + .debug_frame 0x000010c0 0x40 ..\obj\~#\~#\~#\source\boot.o + .debug_frame 0x00001100 0xa0 ..\obj\~#\~#\~#\source\com.o + .debug_frame 0x000011a0 0x40 ..\obj\~#\~#\~#\source\cop.o + .debug_frame 0x000011e0 0x118 ..\obj\~#\~#\~#\source\file.o + .debug_frame 0x000012f8 0x554 ..\obj\~#\~#\~#\source\third_party\fatfs\src\ff.o + .debug_frame 0x0000184c 0x30 ..\obj\~#\~#\~#\source\third_party\fatfs\src\option\unicode.o + .debug_frame 0x0000187c 0x6c ..\obj\~#\~#\~#\source\xcp.o + .debug_frame 0x000018e8 0x28 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .debug_frame 0x00001910 0x2c c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .debug_frame 0x0000193c 0x20 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .debug_frame 0x0000195c 0x20 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.srec b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.srec new file mode 100644 index 00000000..9f536957 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/bin/openblt_stm32f207.srec @@ -0,0 +1,1255 @@ +S02000002E2E5C62696E5C6F70656E626C745F73746D3332663230372E73726563AC +S3150800000000800020ED1600083F1700084117000879 +S3150800001043170008451700084717000800000000A6 +S31508000020000000000000000000000000491700085A +S315080000304B170008000000004D1700084F1700086E +S3150800004053170008551700085717000859170008CE +S315080000505B1700085D1700085F170008611700089E +S31508000060631700086517000867170008691700086E +S315080000706B1700086D1700086F170008711700083E +S31508000080731700087517000877170008791700080E +S315080000907B1700087D1700087F17000881170008DE +S315080000A083170008851700088717000889170008AE +S315080000B08B1700088D1700088F170008911700087E +S315080000C0931700089517000897170008991700084E +S315080000D09B1700089D1700089F170008A11700081E +S315080000E0A3170008A5170008A7170008A9170008EE +S315080000F0AB170008AD170008AF170008B1170008BE +S31508000100B3170008B5170008B7170008B91700088D +S31508000110BB170008BD170008BF170008C11700085D +S31508000120C3170008C5170008C7170008C91700082D +S31508000130CB170008CD170008CF170008D1170008FD +S31508000140D3170008D5170008D7170008D9170008CD +S31508000150DB170008DD170008DF170008E11700089D +S31508000160E3170008E5170008E7170008E91700086D +S31508000170EB170008ED170008EF170008F11700083D +S31508000180F317000810B5054C237833B9044B13B19F +S315080001900448AFF300800123237010BD84000020BB +S315080001A000000000A44D000808B5064B1BB1064820 +S315080001B00649AFF300800648036813B1054B03B13F +S315080001C0984708BD00000000A44D000888000020DC +S315080001D08400002000000000154B002B08BF134BBD +S315080001E09D46A3F5803A00218B460F461348144ACC +S315080001F0121A04F049F90F4B002B00D098470E4B02 +S31508000200002B00D098470020002104000D000D485F +S31508000210002802D00C48AFF3008004F00FF9200044 +S31508000220290001F023F804F0F5F800BF00000800E3 +S31508000230008000200000000000000000840000206C +S3150800024000100020000000000000000008B500F0C3 +S31508000250D9F804484FF4005100F036FE003018BFB4 +S31508000260012008BD0008024008B5642000F098F88F +S3150800027008BD00BF08B500F099F808BD00B589B0FB +S315080002800023009301930293039304930593069323 +S3150800029007930A48694603F003FE40B9009B43B139 +S315080002A09DF8080080F01000C0F3001002E000205E +S315080002B000E0002009B05DF804FB00BFB444000864 +S315080002C000487047B444000808B50748002380F87A +S315080002D0243206490A2203F043FA18B90122024BCE +S315080002E083F8242208BD00BFA0000020D0440008DF +S315080002F070B50E4B93F82432012B02D10B4803F04C +S31508000300F9FC01F0BFFA00F16406094D402403E048 +S3150800031001F0B8FA864205D32846214600F032FF96 +S315080003200028F5D0034803F0DFFD70BDA0000020CB +S3150800033000440040B444000808B5044B93F824323E +S31508000340012B02D1014803F0D5FC08BDA00000200E +S3150800035070B50646104B93F82432012B0AD10E4984 +S3150800036003F060FE002805DA0B48002380F82432E3 +S3150800037003F0C0FC317871B1084C8025204600F0A6 +S31508000380F9FE2046294600F0FDFE0028F9D016F8A9 +S31508000390011F0029F2D170BDA000002000480040CE +S315080003A0014B1880704700BFCC02002008B501F049 +S315080003B069FA104B1B6898421AD30F4B1B7843B93E +S315080003C001220D4B1A700D484FF4807100F082FD22 +S315080003D007E00022084B1A7008484FF4807100F0B5 +S315080003E07BFD01F04FFA064B1B881844014A106042 +S315080003F008BD00BFC8020020CE020020001402403B +S31508000400CC02002008B503484FF4807100F064FD63 +S3150800041008BD00BF0014024038B50146074800F081 +S315080004201DFE064D01242846214600F027FE002819 +S31508000430F9D0024800F00EFEC0B238BD003C0040BC +S3150800044038B54FF4FA72084B1A60FF241D46204649 +S31508000450FFF7E2FFFF2802D02B68002BF7D1FF2811 +S3150800046014BF0020012038BDD402002008B5044876 +S31508000470042100F02FFDFF20FFF7CEFF08BD00BFC7 +S31508000480000C024010B50848042100F025FDFF20A5 +S31508000490FFF7C2FFFFF7D4FF044610B9FFF7E6FFE0 +S315080004A000E00124204610BD000C024038B5044681 +S315080004B00D4610F0800F07D037200021FFF7F6FF12 +S315080004C001283AD804F07F04FFF7D0FFFFF7DAFFD8 +S315080004D048B344F04000FFF79FFF280EFFF79CFF44 +S315080004E0C5F30740FFF798FFC5F30720FFF794FF0A +S315080004F0E8B2FFF791FFE4B1082C16D00120FFF708 +S315080005008BFF0C2C02D1FF20FFF786FF0A24FF255C +S315080005102846FFF781FF10F0800F0ED0631E13F0F8 +S31508000520FF04F5D138BDFF2038BD8720FFF774FFDB +S31508000530ECE79520FFF770FFE8E738BD38B50546C4 +S315080005400C46FFF77DFF034618B32046FFF764FF06 +S31508000550FD2C1DD0AC1C05F2022514F8020CFFF781 +S315080005605BFF14F8010CFFF757FF0234AC42F4D1D5 +S31508000570FF20FFF751FFFF20FFF74EFFFF20FFF791 +S315080005804BFF00F01F00052814BF0023012300E0DD +S315080005900123184638BD00BFF8B504460D46642247 +S315080005A0144B1A60FF261F463046FFF735FFFF2813 +S315080005B003D13B68002BF7D118E0FE2818D1023486 +S315080005C0FF263046FFF728FF04F8020C3046FFF7EF +S315080005D023FF04F8010C0234023DF2D1FF20FFF795 +S315080005E01BFFFF20FFF718FF0120F8BD0020F8BD0C +S315080005F00020F8BDD00200202DE9F0478AB0002877 +S3150800060040F06881B94B1B7813F0020F03D0B74B43 +S315080006101878C0B266E10820012100F0CFFC04205A +S31508000620012100F0CBFC4FF40040012100F0D4FC7E +S315080006304FF00408CDF8008002268DF805600127E2 +S315080006408DF8047000248DF807408DF80640DFF811 +S31508000650A4924846694600F0EFFB4846414600F03A +S3150800066039FCA34D28460A21062200F037FC284605 +S315080006700B21062200F032FC28460C21062200F047 +S315080006802DFC4FF4E05300938DF804608DF8056057 +S315080006908DF806408DF807602846694600F0CCFBC1 +S315080006A0ADF810404FF48273ADF81230ADF814402F +S315080006B0ADF81640ADF818404FF40073ADF81A308F +S315080006C03023ADF81C30ADF81E400723ADF82030B6 +S315080006D0DFF82CA2504604A900F08CFC50462146AF +S315080006E000F0BEFC5046394600F0A6FC4846414696 +S315080006F000F0F0FB8DF80D608DF80C708DF80F404A +S315080007008DF80E404FF480540AA941F8204D28462A +S3150800071000F092FB2846214600F0DCFB0A275446E7 +S315080007202046314600F0AAFC0028F9D02046FF21D1 +S3150800073000F094FC01252046294600F09FFC00287D +S31508000740F9D0013FECD14FF48053029302238DF880 +S315080007500C308DF80D3000248DF80E408DF80F30D2 +S31508000760634802A900F068FB6248042100F0B4FB64 +S3150800077020462146FFF79AFE012840F0AD804FF447 +S315080007807A725D4B1A6008204FF4D571FFF78EFE1A +S31508000790012843D10DF127050DF12304FF26304624 +S315080007A0FFF73AFE04F8010FAC42F8D19DF826305F +S315080007B0012B40F091809DF82730AA2B40F08C80C1 +S315080007C04D4FA9264FF080443B682BB13046214651 +S315080007D0FFF76CFE0028F7D1474B1B68002B7BD030 +S315080007E03A200021FFF762FE002875D10DF1230497 +S315080007F0FF263046FFF710FE04F8010FAC42F8D189 +S315080008009DF8243003F04003DBB2002B14BF0C2202 +S3150800081004223A4B1A60FFF729FE23E0A92000219B +S31508000820FFF744FE012899BF0227A92501273D465F +S31508000830314C002623682BB128463146FFF736FE91 +S315080008400028F7D12C4B1B68002B45D010204FF4FD +S315080008500071FFF72BFE00283ED1284B1F60FFF7DB +S3150800086005FE77B3214B1A7802F0FE021A70244D62 +S315080008702846002100F0E0FB0024ADF810404FF4B4 +S315080008808273ADF81230ADF81440ADF81640ADF8E5 +S3150800089018404FF40073ADF81A30ADF81C40ADF8A7 +S315080008A01E400723ADF82030284604A900F0A2FB15 +S315080008B02846214600F0D4FB2846012100F0BCFB5F +S315080008C004E00A4B1A7842F001021A70074B1878AE +S315080008D0C0B207E0012005E00022084B1A60FFF7C6 +S315080008E0C5FDEEE70AB0BDE8F08700BF00000020AE +S315080008F000080240000C0240D0020020D802002066 +S31508000900003C004018B9034B1878C0B27047012064 +S31508000910704700BF0000002070B50D461C46002831 +S3150800092039D1002B39D01F4B1B7813F0010F36D164 +S315080009301D4B1B6813F0080F08BF5202012C0ED17D +S3150800094011201146FFF7B2FDF8B928464FF4007199 +S31508000950FFF722FED0F1010438BF002415E012206B +S315080009601146FFF7A3FD80B94FF4007628463146B5 +S31508000970FFF712FE28B105F50075013C14F0FF04D7 +S31508000980F4D10C200021FFF791FDFFF76FFD201C25 +S3150800099018BF012070BD042070BD042070BD03205F +S315080009A070BD00BF00000020D802002070B50D46BB +S315080009B016461C46002846D1002B46D0264B1B78E7 +S315080009C013F0010F43D1244B1B7813F0040F40D1C9 +S315080009D0224B1B6813F0080F08BF5602012C0DD1D5 +S315080009E018203146FFF762FD38BB2846FE21FFF77F +S315080009F0A5FDD0F1010438BF00241EE013F0060F50 +S31508000A0003D097202146FFF751FD19203146FFF7FD +S31508000A104DFD90B9FC2628463146FFF78FFD28B1D3 +S31508000A2005F50075013C14F0FF04F4D10020FD2102 +S31508000A30FFF784FD002808BF0124FFF717FD201CD7 +S31508000A4018BF012070BD042070BD042070BD0320AE +S31508000A5070BD022070BD00BF00000020D802002033 +S31508000A6070B584B01446002840F02A81974B1B784D +S31508000A7013F0010F40F026810E2900F20481DFE809 +S31508000A8011F00F00160002015C00020102010201CA +S31508000A90020102010201BA00BF00CE00DD00EC002F +S31508000AA0FFF7F0FCD0F1010438BF002404E1092067 +S31508000AB00021FFF7FBFC002840F0E780684610217C +S31508000AC0FFF76AFD002800F0E2809DF800309B09D8 +S31508000AD0012B10D19DF8072002F03F0212040132C3 +S31508000AE09DF809309DF8081003EB012313449B0277 +S31508000AF023600024E0E09DF808209DF807309B005D +S31508000B0003EB92139DF8062002F0030203EB822200 +S31508000B1001329DF8053003F00F039DF80A1003EB28 +S31508000B20D1139DF8091001F0030103EB4103073BBC +S31508000B3002FA03F323600024BEE0654B1B6813F03A +S31508000B40040F22D08D200021FFF7B0FC002840F0CA +S31508000B50A080FF20FFF760FC68461021FFF71CFD08 +S31508000B60002800F098803025FF263046FFF754FC11 +S31508000B706B1E13F0FF05F8D19DF80A301B091022E9 +S31508000B8002FA03F32360002496E009200021FFF708 +S31508000B908DFC002840F0818068461021FFF7FCFC98 +S31508000BA000287CD04A4B1B6813F0020F12D09DF820 +S31508000BB00A2002F03F029DF80B30DB0903EB4202E4 +S31508000BC001329DF80D309B09013B02FA03F32360BD +S31508000BD0002471E09DF80B309DF80A20C2F38402C8 +S31508000BE003F003015B0903EBC103013302FB033383 +S31508000BF02360002460E0364B1B68137000245BE01A +S31508000C0009200021FFF752FC00284AD1204610216E +S31508000C10FFF7C2FCD0F1010438BF00244CE00A20DB +S31508000C200021FFF743FC00283DD120461021FFF79D +S31508000C30B3FCD0F1010438BF00243DE03A2000217E +S31508000C40FFF734FC88BB0025FF263046FFF7E4FB98 +S31508000C5060550135042DF8D129E01D4B1B6813F0AA +S31508000C60040F26D08D200021FFF720FC18BBFF209B +S31508000C70FFF7D2FB20464021FFF78EFCD0F1010496 +S31508000C8038BF002418E0042416E0012414E00124E7 +S31508000C9012E0012410E001240EE001240CE00124F6 +S31508000CA00AE0012408E0012406E0012404E0002407 +S31508000CB002E0012400E00124FFF7D8FB204602E009 +S31508000CC0042000E0032004B070BD00BF000000202F +S31508000CD0D8020020004870470000AA42054B1B694D +S31508000CE0002B05DA034B044A5A6002F188325A602F +S31508000CF0704700BF003C024023016745024B1A6952 +S31508000D0042F000421A617047003C0240014BD8602D +S31508000D10704700BF003C02400E4BDB6813F4803F6F +S31508000D2012D10C4BDB6813F0100F0FD1094BDB689F +S31508000D3013F0EF0F0CD1074BDB6803F00203002B0F +S31508000D400CBF082007207047012070470520704710 +S31508000D5006207047003C024000B583B008238DF892 +S31508000D600730FFF7D9FF8DF807009DF80730DBB28B +S31508000D70012B08D1FFF7D0FF8DF807009DF8073043 +S31508000D80DBB2012BF6D09DF8070003B05DF804FB33 +S31508000D9070B5054641B1012908D0022914BF4FF4A0 +S31508000DA040764FF4007603E0002601E04FF48076A3 +S31508000DB0FFF7D2FF08281ED10F4C236923F440738E +S31508000DC0236123691E432661236923F0F8032361FF +S31508000DD0236943F002031D432561236943F48033E5 +S31508000DE02361FFF7B9FF236923F00203236123690F +S31508000DF023F0F803236170BD003C024070B5054638 +S31508000E000E46FFF7A9FF082813D10A4C236923F4D5 +S31508000E1040732361236943F400732361236943F014 +S31508000E20010323612E60FFF797FF236923F001036F +S31508000E30236170BD003C0240F0B40023012503265F +S31508000E4005FA03F20C681440944238D107685A0030 +S31508000E5006FA02F4E44327400760076891F804C0DD +S31508000E600CFA02FC4CEA070707600F79013FFFB24C +S31508000E70012F16D887683C40846087684C7994406F +S31508000E803C43846047689CB205FA04FC27EA0C07D1 +S31508000E904760476891F806C00CFA04F4A4B23C43CC +S31508000EA04460C7689CB2640006FA04F427EA04049E +S31508000EB0C460C468CF7907FA02F22243C2600133DC +S31508000EC0102BBDD1F0BC7047036919420CBF002036 +S31508000ED001207047018370474183704710B401F0C1 +S31508000EE007039B00C90800EB8100046A0F2199409B +S31508000EF024EA01010162016A9A40114301625DF820 +S31508000F00044B704710B4294B9B6803F00C03042B61 +S31508000F1005D0082B06D04BBB254B036028E0254B94 +S31508000F20036025E0214B59685A6802F03F0211F424 +S31508000F30800F08D05968C1F388111E4BB3FBF2F332 +S31508000F4003FB01F308E0194B5968C1F38811184BE4 +S31508000F50B3FBF2F303FB01F3144A5268C2F30142EE +S31508000F6001325200B3FBF2F3036001E0104B036059 +S31508000F700E498B68C3F303130F4AD35CDBB20468CC +S31508000F8024FA03F343608C68C4F38224145DE4B244 +S31508000F9023FA04F484608968C1F34231525CD2B200 +S31508000FA0D340C3605DF8044B704700BF0038024069 +S31508000FB00024F40040787D010400002021B1054B8F +S31508000FC01A6B104318637047024B1A6B22EA00002B +S31508000FD0186370470038024021B1054B1A6C10435C +S31508000FE018647047024B1A6C22EA000018647047AE +S31508000FF00038024010B4028802F441524C880B882B +S3150800100023438C882343CC8823430C8923434C8968 +S3150800101023438C892343CC89234313439BB2038000 +S31508001020838B23F400631B041B0C83830B8A0382C4 +S315080010305DF8044B704700BF29B103889BB243F0A3 +S31508001040400303807047038823F040031B041B0CEE +S3150800105003807047808980B2704700BF81817047DE +S3150800106029B103889BB243F4005303807047038871 +S3150800107023F400531B041B0C038070470389194291 +S315080010800CBF00200120704730B585B004460D46D8 +S31508001090038A9BB223F44053CA8813430382828986 +S315080010A092B222F4B05222F00C020989AB880B43A3 +S315080010B069890B439BB213438381838A9BB223F4CA +S315080010C04073AA89134383826846FFF71BFF204BA8 +S315080010D09C4203D003F580639C4201D1039A00E049 +S315080010E0029AA3891BB2002B08DA02EB820202EBF2 +S315080010F082022B685B00B2FBF3F207E002EB820286 +S3150800110002EB820229688900B2FBF1F2114BA3FBBC +S3150800111002135B091801642103FB1123A18909B293 +S31508001120002908DADB0032330A4DA5FB0323C3F393 +S315080011304213034307E01B013233064DA5FB031395 +S31508001140C3F3431303439BB2238105B030BD00BFED +S31508001150001001401F85EB5129B183899BB243F4E6 +S31508001160005383817047838923F400531B041B0CA7 +S3150800117083817047C1F30801818070478088C0F376 +S3150800118008007047038819420CBF002001207047E9 +S3150800119082B0314B1A6842F001021A6000229A6046 +S315080011A0196821F0847121F4803119602B4959603E +S315080011B0196821F480211960DA60009201921A6890 +S315080011C042F480321A601A46136803F40033019316 +S315080011D0009B01330093019B1BB9009BB3F5C06FBD +S315080011E0F2D11D4B1B6813F4003F14BF01230023E3 +S315080011F00193019B012B29D1174B9A689A609A682B +S3150800120042F400429A609A6842F4A0529A60144ADC +S315080012105A601A6842F080721A601A46136813F008 +S31508001220007FFBD040F203720E4B1A60A3F5806371 +S315080012309A6822F003029A609A6842F002029A605B +S315080012401A46936803F00C03082BFAD14FF0006294 +S31508001250054B9A6002B070470038024010300024EF +S31508001260193C4005003C024000ED00E080B582B024 +S3150800127020200121FFF7A2FE04200121FFF79EFE90 +S315080012804FF480200121FFF7A7FE08200121FFF770 +S3150800129095FE4FF48077009700268DF806604FF08C +S315080012A001088DF8078002258DF805508DF8048011 +S315080012B01D4C20466946FFF7BFFD20463946FFF715 +S315080012C00BFE8DF804608DF807604FF40053009309 +S315080012D016486946FFF7B0FDA4F5006420460821C4 +S315080012E00722FFF7FBFD204609210722FFF7F6FD37 +S315080012F08DF806608DF807808DF8045000978DF8F4 +S31508001300055020466946FFF797FD8DF804504FF4BF +S315080013100073009320466946FFF78EFD00F0BEFB7A +S3150800132000F0CAFBFCE700BF0014024000080240B8 +S3150800133008B500F06FFA90B1FEF788FF78B100F0B3 +S31508001340E5FB00F08BFA00F069FA20F0604020F027 +S315080013507F00034B186000F061FA4368984708BDA0 +S3150800136008ED00E070B5561EB6B24AB14C1E0E44E2 +S31508001370451A14F8013F2B5500F0F2FBB442F8D198 +S3150800138070BD00BFF8B50746002425460B4E00F091 +S31508001390E7FBA359BB420BD8311949680B449F4256 +S315080013A006D205EB4502054B03EB8202107AF8BD1F +S315080013B001350C34482CEAD1FF20F8BDF844000862 +S315080013C02DE9F84380460068FFF7DCFFFF282FD099 +S315080013D0FFF784FCF320FFF799FCFFF79DFC012833 +S315080013E004D1FFF78BFC0020BDE8F883002408F140 +S315080013F00409D8F80060A71959F8045000F0B0FBA2 +S3150800140038462946FFF7FAFC082807D1A359AB4204 +S3150800141006D10434B4F5007FEBD103E0002402E0E2 +S31508001420002400E00124FFF769FC2046BDE8F883A4 +S315080014300020BDE8F88300BF38B504460D46114BB9 +S31508001440984206D0104B994208D0FFF7B9FF08B961 +S3150800145011E00E4CC5F308037BB900E0094C23687C +S315080014609D420CD0204640F8045B29464FF4007292 +S31508001470FFF778FF03E0002038BD002038BD20467E +S3150800148038BD00BFDC02002000800008E004002010 +S315080014902DE9F04106460C4617461D4621F4FF780D +S315080014A028F001080368B3F1FF3F06D140F8048B22 +S315080014B041464FF40072FFF755FF3368434505D0A0 +S315080014C030464146FFF7B8FF0646D0B13368E41AFE +S315080014D03444043408F5007800F042FB331DE31A5F +S315080014E0B3F5007F06D330464146FFF7A5FF06460B +S315080014F050B1041D17F8013B04F8013B013DEBD13F +S3150800150005E00020BDE8F0810020BDE8F08101205B +S31508001510BDE8F0814FF0FF33024A1360024A1360B8 +S31508001520704700BFE0040020DC02002070B50446C6 +S315080015300D461646FFF726FFFF2814D0681E2044DE +S31508001540FFF720FFFF2810D024F4FF7323F00103D0 +S31508001550074A93420CBF07480748214632462B469E +S31508001560FFF796FF70BD002070BD002070BD00BF5C +S3150800157000800008DC020020E0040020F8B50546DB +S315080015800E46FFF7FFFE0446701E2844FFF7FAFED4 +S315080015900546FF2C31D0FF2831D0844227D8012CAC +S315080015A027D9072827D8FFF799FBF320FFF7AEFBC3 +S315080015B0FFF7B2FB012803D1FFF7A0FB0020F8BD17 +S315080015C0104F022600F0CCFA37F814003146FFF720 +S315080015D0DFFB082803D0FFF791FB0020F8BD013494 +S315080015E0E4B2A542EED2FFF789FB0120F8BD002040 +S315080015F0F8BD0020F8BD0020F8BD0020F8BD002089 +S31508001600F8BD00BFE044000800B583B00F4B1B6867 +S31508001610B3F1FF3F16D00D4B99685A681144DA6842 +S3150800162011441A6911445A6911449A690A44D969D4 +S3150800163053185B4202AA42F8043D05480421FFF705 +S3150800164075FF00E0012003B05DF804FBDC02002012 +S31508001650848100080D4B1868043B1B6818440C4B22 +S315080016601B6818440B4B1B6818440B4B1B68184423 +S315080016700A4B1B6818440A4B1B681844094B1B681D +S315080016801844D0F1010038BF0020704704800008D4 +S31508001690088000080C8000081080000814800008E4 +S315080016A0188000088481000808B50C4B1B68B3F144 +S315080016B0FF3F04D00948FFF783FE034660B1084B95 +S315080016C01B68B3F1FF3F06D00548FFF779FE031CF8 +S315080016D018BF012300E00123184608BDDC020020DC +S315080016E0E0040020004870470080000872B60849E8 +S315080016F08D460849084A094B9A42BEBF51F8040B61 +S3150800170042F8040BF8E706488047064800470000F9 +S3150800171000800020B04D0008000000208400002052 +S3150800172091110008D90100083249334A002301E023 +S3150800173041F8043B9142FBD3FFF798FDFEE7FEE72D +S31508001740FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE763 +S31508001750FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE753 +S31508001760FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE743 +S31508001770FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE733 +S31508001780FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE723 +S31508001790FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE713 +S315080017A0FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE703 +S315080017B0FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7F3 +S315080017C0FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7E3 +S315080017D0FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7D3 +S315080017E0FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7C3 +S315080017F0FEE7FEE7840000200010002008B5FFF78A +S3150800180089FE08BD08B5FFF791FE08BD08B5FFF7C4 +S31508001810B5FE08BD08B5FFF71DFF08BD08B5FFF7FB +S3150800182061FF08BD08B5FFF7EFFE034610B1FFF7E5 +S315080018303BFF0346184608BD054B00221A600549BA +S3150800184059609A6005211960034B1A60704700BFFA +S3150800185010E000E0BFD40100E40600200022014B9E +S315080018601A60704710E000E0044B1B6813F4803FD1 +S3150800187003D0034B1A6801321A60704710E000E083 +S31508001880E406002008B5FFF7EFFF014B186808BD0E +S31508001890E406002038B504460A488021FFF772FCA2 +S315080018A060B108482146FFF765FC064D80242846A6 +S315080018B02146FFF767FC0028F9D001E0002038BD73 +S315080018C0012038BD0048004010B5044606482021CE +S315080018D0FFF758FC012805D10348FFF74FFC207095 +S315080018E0012010BD002010BD0048004010B584B08E +S315080018F04FF4614300930023ADF80430ADF8063089 +S31508001900ADF80830ADF80C300C23ADF80A30054CAC +S3150800191020466946FFF7B8FB20460121FFF71CFC65 +S3150800192004B010BD004800402DE9F04106460C46BB +S31508001930402903D91148752100F072F82046FFF7AF +S31508001940A9FF012803D00D48792100F069F825463A +S3150800195094B10024DFF82480822700F001F9305D75 +S31508001960FFF798FF012803D04046394600F058F89B +S315080019700134A3B2AB42F0D3BDE8F081404500087C +S3150800198038B50546214B1B789BB92148FFF79CFFC4 +S31508001990012833D11E4B1C78002C34D0FFF772FF78 +S315080019A01C4B186000241C4B1C700122174B1A7024 +S315080019B029E0194B1878194B1844FFF785FF044698 +S315080019C0012810D1144B1A780132D2B21A70104B72 +S315080019D01B78934214D128461049FFF7C3FC00220E +S315080019E00A4B1A700FE0FFF74DFF0A4B1B6864336A +S315080019F0984207D90024054B1C7004E0002402E035 +S31508001A00002400E00024204638BD00BF2D07002032 +S31508001A10E8060020300700202C070020E9060020F1 +S31508001A2008B5034B1860034B196000F099F8FCE7FA +S31508001A30340700203807002008B500F089F8012887 +S31508001A4016D000F019F998B10A4B1B78012B0FD163 +S31508001A50FFF718FF084B1B6803F5FA73984207D37C +S31508001A600022044B1A7000F011F908B9FFF760FC60 +S31508001A7008BD00BF3C0700204007002008B501222A +S31508001A80044B1A70FFF7FEFE034B1860FFF7D4FFEE +S31508001A9008BD00BF3C0700204007002008B500F03D +S31508001AA05BF8FFF7C9FEFFF7A9FE00F0D1F800F0D2 +S31508001AB00FF8FFF7E3FF08BD08B500F051F8FFF788 +S31508001AC0D3FE00F0FDF900F00FF8FFF7B5FF08BDEB +S31508001AD008B502F0FDFAFFF709FF0022014B1A705C +S31508001AE008BD00BF1400002008B50648FFF748FFE8 +S31508001AF0012805D10022044B1A70024802F006FBA1 +S31508001B0008BD00BF4407002014000020704700BF2E +S31508001B1008B5044B1B7813B9C9B2FFF705FF02F0E5 +S31508001B20EDFA08BD14000020034B1B78013B022B7D +S31508001B308CBF40200020704714000020034B1B7800 +S31508001B40013B022B8CBF4020002070471400002068 +S31508001B5008B502F0CBFA08BD08B5FEF785FB08BD47 +S31508001B6008B5FEF787FB08BD00F00F03092802D960 +S31508001B7003F13700704703F13000054B1B68034437 +S31508001B805B7803F00303022B08BF2038C0B2704706 +S31508001B901800002038B505460C460009FFF7E4FF93 +S31508001BA0207005F00F00FFF7DFFF60700023A370B9 +S31508001BB0204638BD30B4024603460D480131A0FB25 +S31508001BC00343DB08FAD1002301F80139084D08461A +S31508001BD0A5FB0243DB0803EB8304A2EB4402303285 +S31508001BE001F801291A46002BF1D130BC704700BF15 +S31508001BF0CDCCCCCC70B4154B1E6800231C46C15CFA +S31508001C007218527802F00302022A08BF2039C9B2B4 +S31508001C10A1F13002D2B2162A11D8A1F13A05EDB2D5 +S31508001C20062D0ED9092A84BFA1F13702D2B202EBDA +S31508001C30041404F0FF040133022BE0D103E0002072 +S31508001C4002E0002000E0204670BC70471800002023 +S31508001C5008B50020054B1870054901F06FFD18B14D +S31508001C6004487721FFF7DCFE08BD00BFC407002043 +S31508001C70D00700206C450008034B1878D0F1010006 +S31508001C8038BF0020704700BFC407002008B5FFF71B +S31508001C905FFF01280AD0084B1B784BB9FEF7EEFA0E +S31508001CA0012807D10122044B1A7008BD002008BD7F +S31508001CB0002008BD002008BDC40700200378114A8B +S31508001CC01268D118497801F00301022908BF203BA0 +S31508001CD0532B0ED143781A44527812F0040F0AD0C7 +S31508001CE0312B0AD0322B0AD0332B14BF0320022003 +S31508001CF07047032070470320704700207047012073 +S31508001D00704700BF1800002070B504460230FFF780 +S31508001D1071FF0646054604342046FFF76BFF30443C +S31508001D20C6B2013DADB20234012DF5D82046FFF703 +S31508001D3061FFF643F6B2864214BF0020012070BD4B +S31508001D402DE9F041044615460F4601B120B95B4816 +S31508001D5040F23121FFF764FE2046FFF7AFFF064643 +S31508001D60032800F08F802046FFF7CEFF002800F0FA +S31508001D708B80012E28D016B1022E51D087E0A01CE8 +S31508001D80FFF738FF8046201DFFF734FF06023E6046 +S31508001D90A01DFFF72FFF3044386004F10806A8F1AC +S31508001DA003081FFA88F8002D73D00FFA88F7002F5A +S31508001DB071DD00243046FFF71DFF28550236013431 +S31508001DC0A4B2BC42F6DB68E0A01CFFF713FF80460E +S31508001DD0201DFFF70FFF06043E60A01DFFF70AFF50 +S31508001DE006EB00263E6004F10800FFF703FF3044C7 +S31508001DF0386004F10A06A8F104081FFA88F8002DCD +S31508001E004DD00FFA88F7002F4BDD00243046FFF738 +S31508001E10F1FE285502360134A4B2BC42F6DB42E094 +S31508001E20A01CFFF7E7FE8046201DFFF7E3FE060627 +S31508001E303E60A01DFFF7DEFE06EB00463E6004F19D +S31508001E400800FFF7D7FE06EB00263E6004F10A00FD +S31508001E50FFF7D0FE3044386004F10C06A8F10508F7 +S31508001E601FFA88F80DB30FFA88F7002F1FDD002434 +S31508001E703046FFF7BFFE285502360134A4B2BC42ED +S31508001E80F6DB16E0002015E04FF6FF7012E00020A2 +S31508001E9010E040460EE040460CE040460AE0404668 +S31508001EA008E0404606E0404604E0404602E0404678 +S31508001EB000E0404600B2BDE8F08100BF6C4500086E +S31508001EC070B5B84B1B78002B00F0A781012B27D1E2 +S31508001ED0FEF7FAF9B448FEF73BFAB448FEF738FAC3 +S31508001EE0FEF7EEF90146B248012201F039FC30B19D +S31508001EF0B048FEF72DFA0120FEF71EFA70BDAE486F +S31508001F00FEF726FAAD48FEF723FAAD48FEF720FAA3 +S31508001F10AC4B00221A605A600222A24B1A7070BD9E +S31508001F20022B40F0A980A84CA8484FF4807104F50C +S31508001F300D7202F037F894F93A32002B0DDA9D4803 +S31508001F40FEF706FA0220FEF7F7F904F50D7001F020 +S31508001F50D1FE0022934B1A7070BD00282ED09B49E3 +S31508001F60084601F5C0710022FFF7EAFEB0F1FF3F0F +S31508001F700CD19048FEF7ECF90320FEF7DDF98C4802 +S31508001F8001F0B8FE0022874B1A7070BD002815DDD7 +S31508001F908C4B5B6833B98B4B8C4AD2F880211A601C +S31508001FA058600BE0894AD2F88021864909688A4236 +S31508001FB03CBF84490A600344824A5360824BD3F883 +S31508001FC03C22D3F840329A4240F0278178480021D3 +S31508001FD001F09AFE60B17748FEF7BAF90420FEF7D9 +S31508001FE0ABF9734801F086FE00226E4B1A7070BD7D +S31508001FF07148FEF7ADF97648FEF7AAF9714D754CAA +S3150800200068682146FFF7D6FD2046FEF7A1F9724813 +S31508002010FEF79EF92E68300E2146FFF7BBFDC6F384 +S315080020200740A11CFFF7B6FDC6F30720211DFFF7E1 +S31508002030B1FDF0B2A11DFFF7ADFD2046FEF788F908 +S315080020406648FEF785F928686968FFF7DFFB60B917 +S315080020505848FEF77DF90520FEF76EF9544801F059 +S3150800206049FE00224F4B1A7070BD5348FEF770F9AF +S3150800207003224C4B1A7070BD032B40F0CE80524C95 +S3150800208052484FF4807104F50D7201F08BFF94F9F4 +S315080020903A32002B0DDA5248FEF75AF90220FEF7BB +S315080020A04BF904F50D7001F025FE00223D4B1A7020 +S315080020B070BD00285BD0454A104602F5C07102F58E +S315080020C08072FFF73DFE0646B0F1FF3F0CD145484A +S315080020D0FEF73EF90320FEF72FF9354801F00AFE10 +S315080020E00022304B1A7070BD002840DD3E48FEF7CE +S315080020F02FF9384C30462146FFF75CFD2046FEF79F +S3150800210027F93A48FEF724F9304D95F88301214618 +S31508002110FFF740FD95F88201A11CFFF73BFD95F8F6 +S315080021208101211DFFF736FD95F88001A11DFFF7F6 +S3150800213031FD2046FEF70CF92848FEF709F9D5F8CF +S315080021408001314605F58072FFF75CFB60B91948D6 +S31508002150FEF7FEF80620FEF7EFF8154801F0CAFD6F +S315080021600022104B1A7070BD1348FEF7F1F8164B93 +S31508002170D3F83C22D3F840329A424ED11C48FEF797 +S31508002180E7F8FFF74FFBA8BB0A48FEF7E1F8072078 +S31508002190FEF7D2F8064801F0ADFD0022014B1A7091 +S315080021A070BD00BFC407002088450008AC4500087C +S315080021B0040A0020D4450008DC450008E445000868 +S315080021C008460008C8070020D0070020280C002071 +S315080021D0384600088407002044460008E8460008F8 +S315080021E06046000884460008A8460008B846000865 +S315080021F0D04600080948FEF7ABF80948FEF7A8F8E4 +S31508002200084801F077FD0848FEF7A2F80022074BB8 +S315080022101A70FEF76DF8FFF78BF870BDDC450008FD +S31508002220EC460008040A002004470008C4070020FA +S3150800223032B1821811F8013B00F8013B9042F9D1FE +S31508002240704700BFCA7E8B7E43EA02230278032AC0 +S3150800225005D1487D0A7D42EA002243EA0243184630 +S31508002260704700BF00F10B010023DA0142EA53036D +S3150800227010F8012B134403F0FF038842F5D11846E2 +S31508002280704700BF10B504460A46407804F1340189 +S315080022900123FEF741FB88BB94F8332294F83232C7 +S315080022A043EA022212B2184B9A4229D194F86D20B9 +S315080022B094F86C301B0443EA026294F86A301343BC +S315080022C094F86B2043EA022222F07F420F4B9A428F +S315080022D018D094F8890094F888301B0443EA006003 +S315080022E094F88630034394F8870043EA002020F0E8 +S315080022F07F40064BC01A18BF012010BD032010BD31 +S31508002300022010BD002010BD55AAFFFF464154000B +S315080023102DE9F041044603791BB3056B00F1340738 +S31508002320407839462A460123FEF740FBE0B90023E8 +S315080023302371636A9D421AD3E26913449D4219D2F6 +S31508002340E678012E19D94FF00108E269154460783C +S3150800235039462A464346FEF729FB013E012EF4D1AB +S315080023600EE00020BDE8F0810120BDE8F0810020E4 +S31508002370BDE8F0810020BDE8F0810020BDE8F081CD +S315080023800020BDE8F08100BF70B504460E46036B19 +S315080023908B420DD0FFF7BCFF054658B9607804F1AB +S315080023A0340132460123FEF7B7FA28B9266304E05A +S315080023B0002502E0012500E00125284670BD00BF82 +S315080023C008B588B103688BB1197889B1D98882882C +S315080023D091420FD15878FEF795FA00F001000028CF +S315080023E00CBF0020032008BD092008BD092008BD30 +S315080023F0092008BD092008BD2DE9F04115460368E6 +S315080024001C78303C092C00F2A4815A783A2A40F00C +S31508002410A0810233036000230B60002C40F060812A +S31508002420D24B1C68002C00F05E810C6023788BB1BF +S315080024306078FEF767FA10F0010F0BD1002D00F057 +S31508002440558100F00400C0B2002814BF0A200020FD +S31508002450BDE8F081002020706070FEF7CDF810F01E +S31508002460010F40F046811DB110F0040F40F0448181 +S3150800247020460021FFF706FF012817D194F8F63108 +S31508002480002B00F03C8194F8FD2194F8FC311B04E4 +S3150800249043EA026294F8FA31134394F8FB5143EA8B +S315080024A0052520462946FFF7EDFE00E0002503280E +S315080024B000F02881002840F0288194F8402094F8FC +S315080024C03F3043EA02231BB2B3F5007F40F0208178 +S315080024D094F84B0094F84A3053EA00200DD194F84A +S315080024E05B2094F85A301B0443EA026294F8583089 +S315080024F0134394F8590043EA0020E06194F8441025 +S31508002500E1704B1EDBB2012B00F2058194F84130D5 +S31508002510A370002B00F002815A1E1A4240F0018176 +S3150800252094F8466094F8452042EA0622228112F081 +S315080025300F0F40F0F98094F8487094F8476056EA0F +S3150800254007260DD194F8577094F85660360446EA73 +S31508002550076794F854603E4394F8557046EA072690 +S3150800256094F843C094F8427057EA0C2700F0DF80CD +S3150800257001FB00FC07EB121161448E42C0F0DA80C1 +S31508002580761AB6FBF3F3002B00F0D78040F6F57603 +S31508002590B3428CBF022601264FF6F578434500F272 +S315080025A0DB800233A36125622F4467622944E16216 +S315080025B0032E13D1002A40F0C38094F8631094F8D0 +S315080025C06220120442EA016194F860200A4394F8F2 +S315080025D0611042EA0122A2629B000DE0002A00F087 +S315080025E0B2806744A762022E0FBF5B0003EB43026B +S315080025F003F0010303EB520303F2FF13B0EB532F6F +S31508002600C0F0A4804FF0FF3323610023E360032E5C +S315080026105AD1637194F8652094F8643043EA02222B +S315080026202A446261607804F134010123FEF774F9E3 +S31508002630002849D194F8332294F8323243EA022228 +S3150800264012B24B4B9A423FD194F8372094F8363061 +S315080026501B0443EA026294F83430134394F8352095 +S3150800266043EA0222434B9A422ED194F81B2294F84D +S315080026701A321B0443EA026294F81832134394F898 +S31508002680192243EA02223C4B9A421DD194F823228E +S3150800269094F822321B0443EA026294F82032134368 +S315080026A094F8212243EA0223E36094F81F2294F85F +S315080026B01E321B0443EA026294F81C32134394F850 +S315080026C01D2243EA0223236126702C4A138801330C +S315080026D09BB21380E380002020632071BDE8F0815F +S315080026E00B20BDE8F0810C20BDE8F0810020BDE894 +S315080026F0F0810320BDE8F0810A20BDE8F0810D20B5 +S31508002700BDE8F0810120BDE8F0810D20BDE8F0812B +S315080027100D20BDE8F0810D20BDE8F0810D20BDE853 +S31508002720F0810D20BDE8F0810D20BDE8F0810D2077 +S31508002730BDE8F0810D20BDE8F0810D20BDE8F081EF +S315080027400D20BDE8F0810D20BDE8F0810D20BDE823 +S31508002750F08100230B6063E60233A36125622F44F0 +S3150800276067622944E162032624E700BFB00F002010 +S3150800277055AAFFFF5252614172724161AC0F0020A7 +S315080027802DE9F0410D4601F109020369002B5ED0DF +S31508002790416991F80C800B78202B1BD00E4600243B +S315080027A008F00807FFB203E016F8013F202B11D006 +S315080027B0052B08BFE52347B1A3F1410C5FFA8CFC52 +S315080027C0BCF1190F9CBF2033DBB202F8013B013480 +S315080027D0082CE9D10B7A202B22D0561C2E231370F5 +S315080027E00B7A202B1BD001F10804171D324608F07E +S315080027F010085FFA88F603E014F8013F202B0FD083 +S3150800280046B1A3F1410C5FFA8CFCBCF1190F9CBFD1 +S315080028102033DBB202F8013BBA42EDD100E0324682 +S31508002820CB7A2B72CC7F8B7F1B0443EA04630C7F25 +S3150800283023434C7F43EA04232B604C7E0B7E43EAFA +S315080028400423AB80CC7D8B7D43EA0423EB800023F5 +S315080028501370AE694EB3EB693BB30369D3B1028C0F +S315080028604FF6FF739A4217D0C7693888B0B100246B +S31508002870A046414601F0ECFB90B1EA69013AA24252 +S3150800288010D90134321902F8010C37F8140000285F +S31508002890EFD108E0002406E0002404E0002402E06A +S315080028A0002400E0002400233355BDE8F08100BF72 +S315080028B010B50446FFF72CFD0346002854D12378AB +S315080028C0032B49D16379002B46D00023236304F1F7 +S315080028D0340104F50D700B46002203F8012B8342E0 +S315080028E0FBD1552384F83232AA2384F83332522393 +S315080028F084F8343084F83530612384F83630412240 +S3150800290084F83720722084F8180284F8190284F8AB +S315080029101A2284F81B32236984F81C32C3F307226F +S3150800292084F81D221A0C84F81E221B0E84F81F3206 +S31508002930E36884F82032C3F3072284F821221A0CAC +S3150800294084F822221B0E84F82332607862690123F8 +S31508002950FEF72CF800236371607800210A46FEF71B +S315080029607FF8031C18BF0123184610BD0239836976 +S31508002970023B99423DBF8278C36A02FB01300020C0 +S31508002980704700BFF8B505460C4601295CD983692E +S3150800299099425BD20378022B28D0032B38D0012B1F +S315080029A056D101EB5106416A01EB5621FFF7ECFCC3 +S315080029B0002850D1C6F308032B4493F83470013627 +S315080029C0696A284601EB5621FFF7DEFC002845D147 +S315080029D0C6F30806354495F8340047EA002014F093 +S315080029E0010F14BF0009C0F30B00F8BD416A01EBE3 +S315080029F01421FFF7C9FCA0BB640004F4FF742B196B +S31508002A0093F834302C4494F8350043EA0020F8BD96 +S31508002A10416A01EBD411FFF7B7FC28BBA40004F404 +S31508002A20FE742B1993F8360093F83720120642EAFB +S31508002A30004293F8350042EA00202C4494F83430DA +S31508002A40184320F07040F8BD0120F8BD0120F8BDFC +S31508002A504FF0FF30F8BD4FF0FF30F8BD4FF0FF30B4 +S31508002A60F8BD4FF0FF30F8BD4FF0FF30F8BD00BF9E +S31508002A7070B504460D46E1808168012938D003689F +S31508002A809A69914236D271B91A78032A01D1996A9C +S31508002A9049B90022E2601A89AA422DD99B6A03EB3A +S31508002AA0151323611BE09E783601B54210D32068C2 +S31508002AB0FFF768FF0146B0F1FF3F1FD001281FD975 +S31508002AC023689B6998421DD2AD1BADB2AE42EED9C2 +S31508002AD0E1602068FFF74AFF00EB1510206105F05A +S31508002AE00F05236803EB451334336361002070BD7B +S31508002AF0022070BD022070BD022070BD012070BD8D +S31508002B00022070BD022070BDF8B505460C46164673 +S31508002B10012979D98369994278D20378022B3ED064 +S31508002B20032B4ED0012B6BD101EB5107416A01EB08 +S31508002B305721FFF729FC0346002862D1C7F308038B +S31508002B4014F0010409D0EA1892F8342002F00F02B2 +S31508002B50F1B242EA0112D2B200E0F2B22B4483F893 +S31508002B603420013701232B71696A284601EB572166 +S31508002B70FFF70AFC0346002843D1C7F3080714B138 +S31508002B80C6F3071607E0EA1992F8342022F00F0276 +S31508002B90C6F3032616432F4487F8346031E0416AAA +S31508002BA001EB1421FFF7F0FB034650BB640004F465 +S31508002BB0FF742A1982F83460C6F3072682F835604E +S31508002BC01FE0416A01EBD411FFF7DEFB0346C0B9EB +S31508002BD0A40004F4FE742A1992F8371009062C4446 +S31508002BE001F070410E4384F83460C6F3072182F879 +S31508002BF03510310C82F83610360E82F8376000E050 +S31508002C00022301222A7102E0022300E00223184669 +S31508002C10F8BD00BF2DE9F0410546884631B9C668BA +S31508002C206EB183699E4228BF012609E0FFF7AAFE16 +S31508002C30012841D9AB6998424CD3464600E00126A3 +S31508002C40344602270134AB699C4202D3012E36D999 +S31508002C503C4628462146FFF795FE38B1B0F1FF3FBE +S31508002C6030D0012830D0B442ECD12FE02646284691 +S31508002C7021466FF07042FFF747FF0346A8B9B8F13F +S31508002C80000F06D0284641462246FFF73DFF034679 +S31508002C9058B9EE602B69B3F1FF3F1AD0013B2B619F +S31508002CA001236B712046BDE8F081012B14BF01207A +S31508002CB04FF0FF30BDE8F0810120BDE8F08100202B +S31508002CC0BDE8F081BDE8F081BDE8F0810020BDE8EF +S31508002CD0F0812046BDE8F0812DE9F84304460E460A +S31508002CE0C5880135ADB2002D6AD00369002B6AD0BC +S31508002CF015F00F075BD101330361C16821B9036879 +S31508002D001B89AB4262D952E000688378013B13EA1B +S31508002D1015134CD1FFF736FE8046012859D9B0F174 +S31508002D20FF3F59D020688369984539D3002E56D07D +S31508002D30E168FFF76FFF8046002853D0012854D07A +S31508002D40B0F1FF3F54D02068FFF7E2FA002852D1CD +S31508002D50236803F1340100231A46CA540133B3F534 +S31508002D60007FFAD1266830464146FFF7FFFD3063FB +S31508002D7000264FF001090BE083F804902068FFF75E +S31508002D80C7FA0136002839D123681A6B01321A634B +S31508002D90F2B2236899789142EED8196B8A1A1A63A7 +S31508002DA0C4F80C8020684146FFF7E0FD2061E58005 +S31508002DB0236803EB4713343363610020BDE8F883C7 +S31508002DC00420BDE8F8830420BDE8F8830420BDE8A4 +S31508002DD0F8830220BDE8F8830120BDE8F8830420C3 +S31508002DE0BDE8F8830720BDE8F8830220BDE8F8832C +S31508002DF00120BDE8F8830120BDE8F8830120BDE87D +S31508002E00F88300BF2DE9F04F85B005460021FFF78E +S31508002E102FFE002840F09E804FF0FF094F46C84617 +S31508002E20DFF85CB10BF10C02009228682969FFF7FC +S31508002E30ABFA002840F08F806C692678002E00F0E7 +S31508002E408B80E37A03F03F02E52E74D013F0080F67 +S31508002E5002D00F2A71D101E00F2A51D1D5F81CA052 +S31508002E60BAF1000F6ED016F0400F06D094F80D9008 +S31508002E7006F0BF06EB882B8403E0B74218BF474627 +S31508002E8060D1637B01934B4559D1237823F04003E6 +S31508002E90013B03EB430203EB820202920BF1FF377D +S31508002EA04FF0010917F8013FE2185078E35C43EA4E +S31508002EB00020B9F1000F10D001F0EAF88146029A15 +S31508002EC0FE2A55D8531C03933AF8120001F0E0F88D +S31508002ED081454DD1039A029203E04FF6FF7398425B +S31508002EE046D1009A9742DDD1237813F0400F3AD0A5 +S31508002EF0B9F1000F37D0029A3AF812309BB337E08F +S31508002F0027B92046FFF7AEF9484527D04FF6FF7395 +S31508002F102B84AB69DA7A12F0010F12D104F10B0097 +S31508002F2001E084421CD014F8011B13F8012B9142CE +S31508002F30F7D0474606E0474604E0474602E04746DC +S31508002F4000E0474628460021FFF7C6FE00283FF462 +S31508002F506CAF07E010E00FE004200DE000200BE066 +S31508002F60002009E008E0013EF7B2DDF80490E9E741 +S31508002F70DDF804904746E5E705B0BDE8F08F00BFE9 +S31508002F80C44700082DE9F04F85B0824689460B787C +S31508002F902F2B01D05C2B01D109F101090023CAF8B6 +S31508002FA0083099F800301F2B08D850460021FFF743 +S31508002FB05FFD03460022CAF8142062E1DFF8D4B2A6 +S31508002FC0C84619F8013B2F2BFAD05C2BF8D0DAF853 +S31508002FD01C5098F800001F2840F226812F2800F080 +S31508002FE029815C2800F02981AF1E46460124A146A6 +S31508002FF00AE02F2B00F023815C2B00F02081B2F52C +S31508003000807F00F034811446494601F021F80146D4 +S31508003010002800F02C817F2809D8222900F0278172 +S315080030205A4612F8013F13B19842FAD11FE127F820 +S31508003030021F621C16F8013F18461F2BD9D8F5E067 +S31508003040002C00F0148105EB440232F8023D202BD7 +S3150800305001D02E2B02D1013CF7D108E1002C00F05B +S315080030600681670005EB070E002325F81430DAF809 +S31508003070183003F10B00202103F8011B8342FBD112 +S31508003080A91E002300E0013331F8022F202AFAD0C6 +S315080030902E2AF8D0002B00F0D68046F00306D2E0A0 +S315080030A0013C07D1082101914FF00008CDF80880AE +S315080030B0039405E0023A32F8021C2E29F0D1F1E712 +S315080030C05F1C35F8130000285ED0202804D02E286F +S315080030D006D1BC4200F0CD8046F003063B46EFE73A +S315080030E0019A904502D2BC4217D1B4E0019B0B2B42 +S315080030F003D146F00306029949E0BC4203D046F0E4 +S315080031000306A74242D802998B00DBB20293039BBF +S315080031100B2201924FF00808D2E77F280DD900212B +S3150800312000F096FF0346002800F0A88057490B4494 +S3150800313013F8800C46F0020650B101462B2807D03A +S31508003140534A12F8013F002B00F08A809942F8D1C1 +S3150800315046F003065F200FE0029A42F0020202924E +S315080031600AE0A0F161039BB2192B05D8029B43F034 +S3150800317001030293203880B2DAF8183003F8080001 +S315080031803B4608F101089BE7029900E00299DAF844 +S3150800319018301A78E52A04BF05221A70019A082AF7 +S315080031A002D18900C9B20291029901F00C030C2BD5 +S315080031B003D001F00302032A01D146F0020616F0F5 +S315080031C0020F0AD1029901F00302012A08BF46F04C +S315080031D01006042B08BF46F00806DAF81830DE7227 +S315080031E05046FFF70FFEDAF81830DA7A034648B188 +S315080031F0042846D102F00403DBB2002B14BF0346B1 +S3150800320005233EE012F0040F3BD1DAF81410CB7A0E +S3150800321013F0100F06D0DAF80000FFF713F8CAF813 +S315080032200800CDE605232CE00024012208EB02095C +S31508003230042605E70024012201E00024012208EB08 +S3150800324002090026FCE62F4437F8022C2E2A3FF402 +S3150800325029AF724624E7019A0B2A7FF454AF48E750 +S31508003260A0F141039BB2192B7FF676AF79E70623C7 +S3150800327007E0019B0B2B7FF446AF3AE746F00206C0 +S3150800328066E7184605B0BDE8F08F00BF444700085A +S315080032903C470008304700082DE9F04F83B0044644 +S315080032A088464FF0FF094E4604254F46DFF818A119 +S315080032B00AF10C0B74E02068FFF766F8054600284B +S315080032C072D162691378002B78D0D17AE52B5AD05F +S315080032D02E2B5AD001F03F01082914BF00200120E7 +S315080032E0404554D10F2944D113F0400F06D092F827 +S315080032F00D9003F0BF03E188218403E09E4218BFC6 +S315080033003E4647D192F80DE0CE4542D1E16900919B +S31508003310117801F03F01013901EB410501EB850503 +S315080033200AF1FF314FF0010C4FF6FF79019363461E +S31508003330DDF800C011F8010F16187678105C40EA1F +S31508003340062033B1FE2D36D82CF815000346013574 +S3150800335001E048452FD15945ECD1019B127812F06E +S31508003360400F24D0FE2D26D80022009921F81520DA +S315080033701DE010461EB9FEF775FF484520D04FF6EA +S31508003380FF7323841CE03E4604E03E4602E03E46C8 +S3150800339000E03E4620460021FFF79EFC054618B988 +S315080033A02169002987D15DB10023236108E0013B2B +S315080033B0DEB2F146EEE7F1463E46EBE70425F3E7D3 +S315080033C0284603B0BDE8F08FC44700082DE9F04150 +S315080033D00446C588018C4FF6FF73994208BF2946F3 +S315080033E0FFF746FB0346D0B9E52701264FF000084C +S315080033F020682169FEF7C8FF034668B96269177035 +S3150800340022681671E288AA4209D220464146FFF789 +S3150800341063FC03460028EBD0042B08BF022318469A +S31508003420BDE8F0812DE9F04104460E46012924D96C +S315080034308369994223D200274FF001082046314676 +S31508003440FFF7A0FA0546E0B101281CD0B0F1FF3F0E +S315080034501BD0204631463A46FFF756FB0146A8B927 +S315080034602369B3F1FF3F03D00133236184F8058054 +S31508003470A369AB420AD92E46E0E7022106E00221FB +S3150800348004E0002102E0022100E001210846BDE82F +S31508003490F08100BF70B582B0054616461C460B2261 +S315080034A0FEF7C6FE052C0AD9B21EE30343EA540406 +S315080034B032F8023F1C44A4B25388002BF5D10722E8 +S315080034C004F00F0101F13003392B88BF01F13703EE +S315080034D0013A00A911444B702409F1D114467E2102 +S315080034E002AB134403F8081C62B12B78202B0BD0CF +S315080034F0294600230133A34207D011F8010F2028DB +S31508003500F8D102E0002300E000232020072A05D88E +S3150800351002A9114411F8081C013200E00146E954D9 +S315080035200133072BF2D902B070BD00BF2DE9F04F69 +S3150800353085B004468769C66901A839460C22FEF794 +S3150800354077FE9DF80F3013F0010F1CD00023FB7295 +S31508003550E3610125384601A932462B46FFF79AFF53 +S315080035602046FFF74FFC20B90135ADB2642DF1D1E5 +S31508003570C0E0642D00F0C080042840F0BF809DF8AC +S315080035800F30FB72E6619DF80F3013F0020F13D06F +S3150800359033883BB1002301339BB236F81320002A47 +S315080035A0F9D100E000231933624F87FB0327DB17A5 +S315080035B0C3EBA707BFB200E0012720460021FFF7AB +S315080035C057FA0346002840F0B1800025A846012690 +S315080035D020682169FEF7D8FE0346002840F0A68039 +S315080035E063691B78E52B00D01BB90135AF4201D1C1 +S315080035F085E0454620463146FFF76EFB0346002820 +S31508003600E6D093E0E188C91B204689B2FFF730FA75 +S315080036100346002840F08A80A069FEF723FE80460C +S31508003620454E20682169FEF7AFFE034600287DD186 +S31508003630D4F81C9061695FFA87FB81F80D804FF01A +S315080036400F03CB7200230B738B76CB760BF1FF320D +S3150800365002EB420002EB800001224FF6FF7E4FF09C +S31508003660FF0A02E028467346013273454BD0451CD3 +S3150800367039F81030B01810F8010C0B5408444FEA0A +S31508003680132C80F801C0002B46D028460C2AEBD90B +S315080036904FF6FF72934202D039F810300BB94BF04F +S315080036A0400B81F800B0236801221A7120460021D8 +S315080036B0FFF712FB0346002838D1013FBFB2002F9F +S315080036C0AFD12CE0636903F12001002203F8012B36 +S315080036D08B42FBD16069A1690B22FEF7A9FD6369DC +S315080036E0A269D27A02F018021A73236801221A71A3 +S315080036F000201CE007201AE0072018E017E0013F29 +S31508003700BFB267B17EE7B51815F8015C01F805A0E8 +S315080037100D4485F801A0B9E70C2AA3D9BFE72068AC +S315080037202169FEF731FE0028CCD000E0184605B026 +S31508003730BDE8F08F4FECC44EC447000858B9074B94 +S315080037401B680BB100221A7009B100230B70034BDA +S315080037501960002070470B20704700BFB00F00208B +S315080037602DE9F0438FB0019115460446002800F074 +S3150800377091800023036001A805A902F01E02FEF746 +S315080037803BFE002840F0888005F01F0702AB0B932C +S315080037904C4B0C9305A80199FFF7F4FB0A9E0346C8 +S315080037A000287FD1002E78D17BE05BB1042B40F056 +S315080037B0858005A8FFF7BAFE47F008070A9E034664 +S315080037C038B17BE0F37A13F0110F70D115F0040FBE +S315080037D06FD117F0080F3CD0FDF77CFAB073C0F331 +S315080037E00723F373030C3374000E70740025F57207 +S315080037F035777577B577F577DDF814804046314625 +S31508003800FEF720FDB576F57635757575012388F8CA +S3150800381004300546E8B1D8F8309040462946FFF707 +S3150800382001FE0346002849D10598013DC560494671 +S31508003830FEF7AAFD03460AE0F37A13F0100F3AD111 +S3150800384015F0020F05D013F0010F36D101E0002B59 +S3150800385034D117F0080F18BF47F02007059D2B6BCA +S31508003860E3612662A77128463146FEF7EBFC206124 +S31508003870F27FB37F1B0443EA0263327F1343727FEE +S3150800388043EA0223E3600020A060A0612560EB887C +S31508003890A38014E0092012E011E015F01C0F91D165 +S315080038A0CAE7062315F01C0F7FF47FAFCFE707237F +S315080038B004E0082302E0042300E0072318460FB0BB +S315080038C0BDE8F083AC0D00202DE9F04F83B0044627 +S315080038D00F4690461E4600233360FEF771FD00280A +S315080038E040F0BB80A37913F0800F40F0B78013F047 +S315080038F0010F00F0B580E568A368ED1AA84538BF42 +S315080039004546002D00F0AE8004F124030193A36818 +S31508003910C3F30802002A40F08680206890F802A0C7 +S315080039200AF1FF3A0AEA532A1AF0FF0A17D10BB925 +S31508003930206902E06169FFF725F8012805D8A3790F +S3150800394063F07F03A37102208FE0B0F1FF3F05D13A +S31508003950A37963F07F03A371012086E06061D4F840 +S31508003960008040466169FFF701F8814628B9A379C6 +S3150800397063F07F03A371022077E0D1445FEA552BF9 +S3150800398029D098F802300BEB0A029A4288BFCAEB94 +S31508003990030B98F8010039464A465FFA8BF3FCF7A1 +S315080039A0BBFF28B1A37963F07F03A37101205CE014 +S315080039B0A37913F0400F0BD0A369C9EB0300834525 +S315080039C006D907EB402001994FF40072FEF730FC48 +S315080039D04FEA4B2B35E0A2694A4522D0A37913F06A +S315080039E0400F10D098F8010001990123FCF7DEFF7B +S315080039F028B1A37963F07F03A371012035E0A37989 +S31508003A0023F04003A3712368587801994A46012395 +S31508003A10FCF782FF28B1A37963F07F03A371012025 +S31508003A2023E0C4F81890A168C1F30801C1F5007B2A +S31508003A305D4538BFAB462144384624315A46FEF721 +S31508003A40F7FB5F44A3685B44A36033685B44336059 +S31508003A50B5EB0B057FF45BAF06E006E0022004E059 +S31508003A60072002E0002000E0002003B0BDE8F08F48 +S31508003A702DE9F04F83B004460F4615461E4600232F +S31508003A803360FEF79DFC002840F0D680A37913F03A +S31508003A90800F40F0D28013F0020F00F0D080E36868 +S31508003AA0DD4280F0BE80002D00F0BB8004F12403C7 +S31508003AB00193A368C3F30802002A40F095802068A2 +S31508003AC090F802B00BF1FF3B0BEA532B1BF0FF0BF0 +S31508003AD021D13BB9236963B90021FFF79BF8034657 +S31508003AE0206103E06169FFF795F80346002B00F0B3 +S31508003AF09880012B05D1A37963F07F03A371022077 +S31508003B009EE0B3F1FF3F05D1A37963F07F03A3716C +S31508003B10012095E06361A37913F0400F11D0236863 +S31508003B2058780199A2690123FCF740FF28B1A379C7 +S31508003B3063F07F03A371012082E0A37923F0400399 +S31508003B40A371D4F8008040466169FEF70FFF8146ED +S31508003B5028B9A37963F07F03A371022070E0D944E2 +S31508003B605FEA552A29D098F802300AEB0B029A42E6 +S31508003B7088BFCBEB030A98F8010039464A465FFA34 +S31508003B808AF3FCF713FF28B1A37963F07F03A371C7 +S31508003B90012055E0A369C9EB03018A450AD90198B2 +S31508003BA007EB41214FF40072FEF742FBA37923F09D +S31508003BB04003A3714FEA4A2A28E0A3694B4511D06E +S31508003BC0A268E3689A420DD298F8010001994A461C +S31508003BD00123FCF7A1FE28B1A37963F07F03A37143 +S31508003BE001202DE0C4F81890A068C0F30800C0F5BD +S31508003BF0007A554538BFAA462044243039465246ED +S31508003C00FEF716FBA37943F04003A3715744A36854 +S31508003C105344A360336853443360B5EB0A057FF415 +S31508003C2048AFA368E268934288BFE360A37943F08C +S31508003C302003A371002003E002E0022000E0072031 +S31508003C4003B0BDE8F08F00BF38B50446FEF7B8FBF1 +S31508003C50002849D1A37913F0200F46D013F0400F5E +S31508003C600DD0214651F8243B5878A2690123FCF768 +S31508003C709DFE00283BD1A37923F04003A371206859 +S31508003C80E169FEF781FB002833D1256AEB7A43F018 +S31508003C902003EB72E3682B77A3891B0A6B77E3890A +S31508003CA0AB77E37BEB772369AB76C3F30722EA7638 +S31508003CB01B0C2B751B0A6B75FDF70CF8A875C0F362 +S31508003CC00723EB75030C2B76000E68760023AB747E +S31508003CD0EB74A37923F02003A371236801221A71D8 +S31508003CE02068FEF7E5FD38BD38BD002038BD012047 +S31508003CF038BD38BD10B50446FFF7A6FF034608B918 +S31508003D0000222260184610BD70B504460D46FEF71F +S31508003D1057FB002840F0BC80A37913F0800F40F0D1 +S31508003D20B880E268AA4205D203F00203DBB2002B90 +S31508003D3008BF1546A2680023A360002D00F0AB80DB +S31508003D402068867876026AB1013A691EB1FBF6F1F7 +S31508003D50B2FBF6F3994205D373421A40A260AD1A34 +S31508003D60616917E02169A1B9FEF754FF01460128E8 +S31508003D7005D1A37963F07F03A371022070BDB0F16A +S31508003D80FF3F05D1A37963F07F03A371012070BDBE +S31508003D9020616161002940D0B5422BD9A27912F081 +S31508003DA0020F05D02068FEF735FF014620B920E04E +S31508003DB02068FEF7E7FD0146B1F1FF3F05D1A3797B +S31508003DC063F07F03A371012070BD012903D922681E +S31508003DD09269914205D3A37963F07F03A371022008 +S31508003DE070BD6161A2683244A260AD1BAE42D5D3F4 +S31508003DF000E03546A2682A44A260C5F3080272B1FB +S31508003E002068FEF7B3FD28B9A37963F07F03A37191 +S31508003E10022070BD00EB552502E0002500E00025D4 +S31508003E20A368C3F3080343B3A269AA4225D0A379BA +S31508003E3013F0400F11D0214651F8243B587801233E +S31508003E40FCF7B4FD28B1A37963F07F03A3710120C1 +S31508003E5070BDA37923F04003A371214651F8243B92 +S31508003E6058782A460123FCF757FD28B1A37963F051 +S31508003E707F03A371012070BDA561A368E268934220 +S31508003E800BD9E360A37943F02003A371002070BD2A +S31508003E9070BD022070BD002070BD002070BD00BF3F +S31508003EA030B58FB00EAB43F8340D0D46184605A94C +S31508003EB00022FEF7A1FA044688B902AB0B93094B18 +S31508003EC00C9305A80199FFF75DF8044638B90A9BD3 +S31508003ED023B105A82946FEF753FC00E00624204630 +S31508003EE00FB030BDAC0D002030B599B018AB43F813 +S31508003EF05C0D18460FA90122FEF77EFA0346002834 +S31508003F004AD103AB1593264B16930FA80199FFF7D1 +S31508003F1039F8034600283FD1149939B3CC7A14F0FE +S31508003F20010F25D126E0012D2CD906A80FA9242298 +S31508003F30FEF77EF9089506A80221FEF799FD0346C5 +S31508003F4050BB06A80021FFF7A7F9034618B30428B3 +S31508003F501AD021E02DB10F982946FFF763FA0346D8 +S31508003F60D0B90F98FEF7A4FC034615E0062313E024 +S31508003F70072311E00F98FEF765F9054614F0100FB0 +S31508003F80D1D101E0022307E00FA8FFF71FFA034685 +S31508003F900028DFD000E00723184619B030BD00BF5F +S31508003FA0AC0D00202DE9F04182B080461746054643 +S31508003FB000244E1E11E0384601A901226B46FFF780 +S31508003FC083FC009B012B0AD19DF804300D2B04D0ED +S31508003FD005F8013B01340A2B01D0A642EBDC00238D +S31508003FE02B709C4214BF4046184602B0BDE8F081CB +S31508003FF030B583B004460D460A2802D10D20FFF7D6 +S31508004000F7FF02A901F8084D28466946012201ABC7 +S31508004010FFF72EFD019B012B14BF4FF0FF30012047 +S3150800402003B030BD70B505460E46007860B1002471 +S315080040303146FFF7DDFFB0F1FF3F08D0013415F830 +S31508004040010F0028F4D101E0002070BD204670BDA4 +S315080040507F281AD911B9C72807D111E0FF2813D824 +S3150800406080380A4B33F810007047084A012332F8A3 +S31508004070021F814205D001339BB2802BF7D100E0A5 +S3150800408000238033D8B2704700207047B44900082F +S31508004090612809D007490022013231F8023F3BB1B5 +S315080040A08342F9D10BB970470022034B33F812004B +S315080040B0704700BFD4470008B44A0008034BFE22E5 +S315080040C0DA7018710222A3F844207047B40F002052 +S315080040D0054B00221A709A6483F84320A3F84420FB +S315080040E09A705A70704700BFB40F0020024B1878B8 +S315080040F0003018BF01207047B40F00200022024B81 +S3150800410083F84320704700BFB40F002038B5044633 +S315080041100378FF2B20D1FDF7AFFD18B91020FFF764 +S31508004120CDFF5EE1AB4C0023637001252570FF22AD +S31508004130E270102222716371FDF7F6FCA071FDF79B +S31508004140FDFCE071FDF7FAFC000A20726572A572A3 +S315080041500823A4F8443044E19E4A1278012A40F024 +S315080041605581C93B352B00F23981DFE813F0C000D1 +S31508004170370137012F01370137012601DB00150109 +S315080041800501370137013701370137013701370193 +S315080041903701370137013701370137013701370151 +S315080041A03701370137013701370137013701370141 +S315080041B03701370137013701370137013701370131 +S315080041C037017600510036006D0037013701370197 +S315080041D092003701A400A800B6004578FDF7A4FCB4 +S315080041E00138854203DD2220FFF768FFF9E0794DA3 +S315080041F0281DA96C6278FDF7B5F8FF23EB70627885 +S31508004200AB6C1344AB6463780133A5F84430E8E03B +S315080042104578FDF789FC0138854203DD2220FFF742 +S315080042204DFFDEE061686B4DA964281D6278FDF7D5 +S3150800423099F8FF23EB706278AB6C1344AB64637830 +S315080042400133A5F84430CCE0624BFF22DA704268AD +S315080042509A640122A3F84420C3E05E4BFF22DA7079 +S315080042609B6C406840B11844002213F8011B0A44AD +S31508004270D2B28342F9D100E00022564BC3F8072098 +S3150800428001221A7100225A719A710822A3F8442051 +S31508004290A7E0504BFF22DA704F4A9A6400221A713F +S315080042A05A719A710721D9711A725A729A7208222A +S315080042B0A3F8442095E00020FFF700FF91E0454B66 +S315080042C0FF22DA7000221A71597859719A71DA71D7 +S315080042D01A720622A3F8442083E03E4B00221A7085 +S315080042E05A70FF22DA700122A3F8442079E0394B8C +S315080042F09D6CFDF719FC411E2846621CFDF782FAE3 +S3150800430018B93120FFF7DAFE6BE0324CFF23E37071 +S31508004310A56CFDF709FC013D2844A0640123A4F817 +S3150800432044305EE04578FDF7FFFB0238854203DD41 +S315080043302220FFF7C3FE54E0264BFF22DA70012243 +S31508004340A3F84420617839B9FDF76CFA002848D1FA +S315080043503120FFF7B3FE44E01E4B986CA21CFDF714 +S3150800436051FA18B93120FFF7A9FE3AE0194B6178DE +S315080043709A6C0A449A6434E0164CFF23E3700025CD +S3150800438025716571FDF7D0FBA071E571257265721F +S315080043900723A4F8443024E00E4B986C6168FDF7B7 +S315080043A035FA18B93120FFF789FE1AE0094BFF22C2 +S315080043B0DA700122A3F8442013E0FCF7B9FF054B95 +S315080043C0FF22DA700122A3F844200AE03120FFF721 +S315080043D075FE06E0B40F0020944C00082020FFF775 +S315080043E06DFE0B4B93F84330012B02D11020FFF7DB +S315080043F065FE074BB3F844100BB2002B06DD0448E4 +S31508004400012380F843300330FDF782FB38BD00BF37 +S31508004410B40F002008B5074B044613B10021AFF3CB +S315080044200080054B1868836A03B19847204600F058 +S3150800443033F800BF00000000A04D000870B50E4B11 +S315080044400E4D0024ED1AAD101E46AC4204D056F8A7 +S31508004450242090470134F8E700F020F8084D094B6E +S315080044600024ED1AAD101E46AC4204D056F824209E +S3150800447090470134F8E770BD7C0000207C000020DE +S31508004480800000207C00002002440346934202D0AC +S3150800449003F8011BFAE77047FEE70000F8B500BF0E +S315080044A0F8BC08BC9E467047F8B500BFF8BC08BC07 +S315080044B09E4670472F64656D6F70726F675F737481 +S315080044C06D3332663230372E737265630000000032 +S315080044D02F626F6F746C6F672E747874000000001B +S315080044E000000800100018002000280030003800DE +S315080044F040004800500058000080000800400000B6 +S315080045000200000000C00008004000000300000090 +S315080045100000010800000100040000000000020875 +S315080045200000020005000000000004080000020068 +S315080045300600000000000608000002000700000050 +S315080045402E2E5C2E2E5C2E2E5C2E2E5C536F7572D4 +S3150800455063655C41524D434D335F53544D33324688 +S31508004560325C756172742E63000000002E2E5C2E7C +S315080045702E5C2E2E5C2E2E5C536F757263655C6600 +S31508004580696C652E630000004669726D7761726515 +S315080045902075706461746520726571756573742021 +S315080045A064657465637465640A0D00004F70656E12 +S315080045B0696E67206669726D776172652066696CD7 +S315080045C06520666F722072656164696E672E2E2E8D +S315080045D0000000004552524F520A0D004F4B0A0D7B +S315080045E0000000005374617274696E672074686510 +S315080045F02070726F6772616D6D696E672073657181 +S3150800460075656E63650A0D0050617273696E672081 +S315080046106669726D776172652066696C6520746F6C +S31508004620206F627461696E206572617365207369B3 +S315080046307A652E2E2E00000045726173696E67201A +S31508004640000000002062797465732066726F6D2021 +S315080046506D656D6F727920617420307800000000F6 +S3150800466052656164696E67206C696E652066726F53 +S315080046706D2066696C652E2E2E4552524F520A0DD4 +S3150800468000000000496E76616C69642063686563A2 +S315080046906B73756D20666F756E642E2E2E4552529D +S315080046A04F520A0D0000000050726F6772616D6DFF +S315080046B0696E6720000000002062797465732074B3 +S315080046C06F206D656D6F72792061742030780000F7 +S315080046D057726974696E672070726F6772616D20B0 +S315080046E0636865636B73756D2E2E2E00436C6F734E +S315080046F0696E67206669726D776172652066696C96 +S31508004700650A0D004669726D776172652075706479 +S31508004710617465207375636365737366756C6C790C +S3150800472020636F6D706C657465640A0D0000000087 +S31508004730222A3A3C3E3F7C7F000000002B2C3B3D62 +S315080047405B5D0000809A90418E418F8045454549C2 +S3150800475049498E8F9092924F994F555559999A9BE0 +S315080047609C9D9E9F41494F55A5A5A6A7A8A9AAAB5A +S31508004770AC21AEAFB0B1B2B3B4B5B6B7B8B9BABB7F +S31508004780BCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBE3 +S31508004790CCCDCECFD0D1D2D3D4D5D6D7D8D9DADBD3 +S315080047A0DCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBC3 +S315080047B0ECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBB3 +S315080047C0FCFDFEFF01030507090E10121416181C3E +S315080047D01E00000061006200630064006500660058 +S315080047E06700680069006A006B006C006D006E0067 +S315080047F06F00700071007200730074007500760017 +S315080048007700780079007A00A100A200A300A5002D +S31508004810AC00AF00E000E100E200E300E400E500E0 +S31508004820E600E700E800E900EA00EB00EC00ED002E +S31508004830EE00EF00F000F100F200F300F400F500DE +S31508004840F600F800F900FA00FB00FC00FD00FE0087 +S31508004850FF00010103010501070109010B010D0113 +S315080048600F01110113011501170119011B011D0182 +S315080048701F01210123012501270129012B012D01F2 +S315080048802F0131013301350137013A013C013E015F +S31508004890400142014401460148014B014D014F01C7 +S315080048A0510153015501570159015B015D015F0132 +S315080048B0610163016501670169016B016D016F01A2 +S315080048C071017301750177017A017C017E019201FC +S315080048D0B103B203B303B403B503B603B703B8030E +S315080048E0B903BA03BB03BC03BD03BE03BF03C003BE +S315080048F0C103C303C403C503C603C703C803C90367 +S31508004900CA0330043104320433043404350436044B +S315080049103704380439043A043B043C043D043E0495 +S315080049203F04400441044204430444044504460445 +S315080049304704480449044A044B044C044D044E04F5 +S315080049404F0451045204530454045504560457049E +S31508004950580459045A045B045C045E045F0470211D +S31508004960712172217321742175217621772178218D +S3150800497079217A217B217C217D217E217F2141FF9E +S3150800498042FF43FF44FF45FF46FF47FF48FF49FFF5 +S315080049904AFF4BFF4CFF4DFF4EFF4FFF50FF51FFA5 +S315080049A052FF53FF54FF55FF56FF57FF58FF59FF55 +S315080049B05AFF0000C700FC00E900E200E400E0003E +S315080049C0E500E700EA00EB00E800EF00EE00EC0087 +S315080049D0C400C500C900E600C600F400F600F200EF +S315080049E0FB00F900FF00D600DC00A200A300A5002A +S315080049F0A7209201E100ED00F300FA00F100D100D2 +S31508004A00AA00BA00BF001023AC00BD00BC00A1007C +S31508004A10AB00BB0091259225932502252425612507 +S31508004A206225562555256325512557255D255C257F +S31508004A305B251025142534252C251C2500253C2509 +S31508004A405E255F255A255425692566256025502546 +S31508004A506C25672568256425652559255825522519 +S31508004A6053256B256A2518250C25882584258C252C +S31508004A7090258025B103DF009303C003A303C30376 +S31508004A80B500C403A6039803A903B4031E22C603EC +S31508004A90B50329226122B10065226422202321233D +S31508004AA0F7004822B0001922B7001A227F20B20068 +S31508004AB0A025A000410042004300440045004600EE +S31508004AC04700480049004A004B004C004D004E0084 +S31508004AD04F00500051005200530054005500560034 +S31508004AE05700580059005A002100E0FFE1FFE5FF92 +S31508004AF0E2FFE3FFC000C100C200C300C400C50056 +S31508004B00C600C700C800C900CA00CB00CC00CD004B +S31508004B10CE00CF00D000D100D200D300D400D500FB +S31508004B20D600D800D900DA00DB00DC00DD00DE00A4 +S31508004B307801000102010401060108010A010C01BD +S31508004B400E01100112011401160118011A011C01A7 +S31508004B501E01200122012401260128012A012C0117 +S31508004B602E01300132013401360139013B013D0184 +S31508004B703F0141014301450147014A014C014E01EC +S31508004B80500152015401560158015A015C015E0157 +S31508004B90600162016401660168016A016C016E01C7 +S31508004BA0700172017401760179017B017D01910121 +S31508004BB0910392039303940395039603970398032B +S31508004BC099039A039B039C039D039E039F03A003DB +S31508004BD0A103A303A403A503A603A703A803A90384 +S31508004BE0AA03100411041204130414041504160469 +S31508004BF01704180419041A041B041C041D041E04B3 +S31508004C001F04200421042204230424042504260462 +S31508004C102704280429042A042B042C042D042E0412 +S31508004C202F0401040204030404040504060407040B +S31508004C30080409040A040B040C040E040F0460217A +S31508004C40612162216321642165216621672168212A +S31508004C5069216A216B216C216D216E216F2121FF4B +S31508004C6022FF23FF24FF25FF26FF27FF28FF29FF12 +S31508004C702AFF2BFF2CFF2DFF2EFF2FFF30FF31FFC2 +S31508004C8032FF33FF34FF35FF36FF37FF38FF39FF72 +S31508004C903AFF00004F70656E424C540000202020F9 +S31508004CA020202020202028282828282020202020CE +S31508004CB0202020202020202020202020208810109E +S31508004CC010101010101010101010101010040404FA +S31508004CD004040404040404101010101010104141B8 +S31508004CE041414141010101010101010101010101A6 +S31508004CF001010101010101011010101010104242BA +S31508004D004242424202020202020202020202020275 +S31508004D100202020202020202101010102000000015 +S31508004D200000000000000000000000000000000075 +S31508004D300000000000000000000000000000000065 +S31508004D400000000000000000000000000000000055 +S31508004D500000000000000000000000000000000045 +S31508004D600000000000000000000000000000000035 +S31508004D700000000000000000000000000000000025 +S31508004D800000000000000000000000000000000015 +S31508004D9000000000000000000000000000430000C2 +S30D08004DA01C00002000000000C1 +S30D08004DA830B4FF7F0100000092 +S31508004DB001000000000000000102030401020304D0 +S31508004DC006070809040000009C4C000800000000C3 +S31508004DD000000000000000000000000000000000C5 +S31508004DE00000000000000000000000009D4D0008C3 +S31508004DF000000000000000000000000000000000A5 +S31508004E000000000000000000000000000000000094 +S31508004E100000000000000000000000000000000084 +S31508004E20000000000000000000000000A9010008C2 +S30908004E3085010008E2 +S70508000000F2 diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/blt_conf.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/blt_conf.h new file mode 100644 index 00000000..de95af89 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/blt_conf.h @@ -0,0 +1,184 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Boot\blt_conf.h +* \brief Bootloader configuration header file. +* \ingroup Boot_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef BLT_CONF_H +#define BLT_CONF_H + +/**************************************************************************************** +* C P U D R I V E R C O N F I G U R A T I O N +****************************************************************************************/ +/* To properly initialize the baudrate clocks of the communication interface, typically + * the speed of the crystal oscillator and/or the speed at which the system runs is + * needed. Set these through configurables BOOT_CPU_XTAL_SPEED_KHZ and + * BOOT_CPU_SYSTEM_SPEED_KHZ, respectively. To enable data exchange with the host that is + * not dependent on the targets architecture, the byte ordering needs to be known. + * Setting BOOT_CPU_BYTE_ORDER_MOTOROLA to 1 selects little endian mode and 0 selects + * big endian mode. + * + * Set BOOT_CPU_USER_PROGRAM_START_HOOK to 1 if you would like a hook function to be + * called the moment the user program is about to be started. This could be used to + * de-initialize application specific parts, for example to stop blinking an LED, etc. + */ +/** \brief Frequency of the external crystal oscillator. */ +#define BOOT_CPU_XTAL_SPEED_KHZ (25000) +/** \brief Desired system speed. */ +#define BOOT_CPU_SYSTEM_SPEED_KHZ (120000) +/** \brief Motorola or Intel style byte ordering. */ +#define BOOT_CPU_BYTE_ORDER_MOTOROLA (0) +/** \brief Enable/disable hook function call right before user program start. */ +#define BOOT_CPU_USER_PROGRAM_START_HOOK (1) + + +/**************************************************************************************** +* C O M M U N I C A T I O N I N T E R F A C E C O N F I G U R A T I O N +****************************************************************************************/ +/* The UART communication interface is selected by setting the BOOT_COM_UART_ENABLE + * configurable to 1. Configurable BOOT_COM_UART_BAUDRATE selects the communication speed + * in bits/second. The maximum amount of data bytes in a message for data transmission + * and reception is set through BOOT_COM_UART_TX_MAX_DATA and BOOT_COM_UART_RX_MAX_DATA, + * respectively. It is common for a microcontroller to have more than 1 UART interface + * on board. The zero-based BOOT_COM_UART_CHANNEL_INDEX selects the UART interface. + * + */ +/** \brief Enable/disable UART transport layer. */ +#define BOOT_COM_UART_ENABLE (1) +/** \brief Configure the desired communication speed. */ +#define BOOT_COM_UART_BAUDRATE (57600) +/** \brief Configure number of bytes in the target->host data packet. */ +#define BOOT_COM_UART_TX_MAX_DATA (64) +/** \brief Configure number of bytes in the host->target data packet. */ +#define BOOT_COM_UART_RX_MAX_DATA (64) +/** \brief Select the desired UART peripheral as a zero based index. */ +#define BOOT_COM_UART_CHANNEL_INDEX (2) + + +/**************************************************************************************** +* F I L E S Y S T E M I N T E R F A C E C O N F I G U R A T I O N +****************************************************************************************/ +/* The file system interface is selected by setting the BOOT_FILE_SYS_ENABLE configurable + * to 1. This enables support for firmware updates from a file stored on a locally + * attached file system such as an SD-card. Note that this interface can be enabled + * together with one of the remote communication interfaces such as UART, CAN or USB. + * + * Set BOOT_FILE_LOGGING_ENABLE to 1 if you would like log messages to be created during + * a firmware update. The hook function FileFirmwareUpdateLogHook() will be called each + * time a new string formatted log entry is available. This could be used during testing + * by outputting the string on UART or to create a log file on the file system itself. + * + * Set BOOT_FILE_ERROR_HOOK_ENABLE to 1 if you would like to be informed in case an error + * occurs during the firmware update. This could for example be used to turn on an error + * LED to inform the user that something went wrong. Inspecting the log messages provides + * additional information on the error cause. + * + * Set BOOT_FILE_STARTED_HOOK_ENABLE to 1 if you would like to be informed when a new + * firmware update is started by the bootloader. + * + * Set BOOT_FILE_COMPLETED_HOOK_ENABLE to 1 if you would like to be informed when a + * firmware update is completed by the bootloader. + */ +/** \brief Enable/disable support for firmware updates from a locally attached storage.*/ +#define BOOT_FILE_SYS_ENABLE (1) +/** \brief Enable/disable logging messages during firmware updates. */ +#define BOOT_FILE_LOGGING_ENABLE (1) +/** \brief Enable/disable a hook function that is called upon detection of an error. */ +#define BOOT_FILE_ERROR_HOOK_ENABLE (1) +/** \brief Enable/disable a hook function that is called at the start of the update. */ +#define BOOT_FILE_STARTED_HOOK_ENABLE (1) +/** \brief Enable/disable a hook function that is called at the end of the update. */ +#define BOOT_FILE_COMPLETED_HOOK_ENABLE (1) + + +/**************************************************************************************** +* B A C K D O O R E N T R Y C O N F I G U R A T I O N +****************************************************************************************/ +/* It is possible to implement an application specific method to force the bootloader to + * stay active after a reset. Such a backdoor entry into the bootloader is desired in + * situations where the user program does not run properly and therefore cannot + * reactivate the bootloader. By enabling these hook functions, the application can + * implement the backdoor, which overrides the default backdoor entry that is programmed + * into the bootloader. When desired for security purposes, these hook functions can + * also be implemented in a way that disables the backdoor entry altogether. + */ +/** \brief Enable/disable the backdoor override hook functions. */ +#define BOOT_BACKDOOR_HOOKS_ENABLE (0) + + +/**************************************************************************************** +* N O N - V O L A T I L E M E M O R Y D R I V E R C O N F I G U R A T I O N +****************************************************************************************/ +/* The NVM driver typically supports erase and program operations of the internal memory + * present on the microcontroller. Through these hook functions the NVM driver can be + * extended to support additional memory types such as external flash memory and serial + * eeproms. The size of the internal memory in kilobytes is specified with configurable + * BOOT_NVM_SIZE_KB. If desired the internal checksum writing and verification method can + * be overridden with a application specific method by enabling configuration switch + * BOOT_NVM_CHECKSUM_HOOKS_ENABLE. + */ +/** \brief Enable/disable the NVM hook function for supporting additional memory devices. */ +#define BOOT_NVM_HOOKS_ENABLE (0) +/** \brief Configure the size of the default memory device (typically flash EEPROM). */ +#define BOOT_NVM_SIZE_KB (512) +/** \brief Enable/disable hooks functions to override the user program checksum handling. */ +#define BOOT_NVM_CHECKSUM_HOOKS_ENABLE (0) + + +/**************************************************************************************** +* W A T C H D O G D R I V E R C O N F I G U R A T I O N +****************************************************************************************/ +/* The COP driver cannot be configured internally in the bootloader, because its use + * and configuration is application specific. The bootloader does need to service the + * watchdog in case it is used. When the application requires the use of a watchdog, + * set BOOT_COP_HOOKS_ENABLE to be able to initialize and service the watchdog through + * hook functions. + */ +/** \brief Enable/disable the hook functions for controlling the watchdog. */ +#define BOOT_COP_HOOKS_ENABLE (1) + + +/**************************************************************************************** +* S E E D / K E Y S E C U R I T Y C O N F I G U R A T I O N +****************************************************************************************/ +/* A security mechanism can be enabled in the bootloader's XCP module by setting configu- + * rable BOOT_XCP_SEED_KEY_ENABLE to 1. Before any memory erase or programming + * operations can be performed, access to this resource need to be unlocked. + * In the Microboot settings on tab "XCP Protection" you need to specify a DLL that + * implements the unlocking algorithm. The demo programs are configured for the (simple) + * algorithm in "FeaserKey.dll". The source code for this DLL is available so it can be + * customized to your needs. + * During the unlock sequence, Microboot requests a seed from the bootloader, which is in + * the format of a byte array. Using this seed the unlock algorithm in the DLL computes + * a key, which is also a byte array, and sends this back to the bootloader. The + * bootloader then verifies this key to determine if programming and erase operations are + * permitted. + * After enabling this feature the hook functions XcpGetSeedHook() and XcpVerifyKeyHook() + * are called by the bootloader to obtain the seed and to verify the key, respectively. + */ +#define BOOT_XCP_SEED_KEY_ENABLE (0) + + +#endif /* BLT_CONF_H */ +/*********************************** end of blt_conf.h *********************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/boot.dox b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/boot.dox new file mode 100644 index 00000000..06c024af --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/boot.dox @@ -0,0 +1,7 @@ +/** +\defgroup Boot_ARMCM3_STM32F2_Olimex_STM32F207_GCC Bootloader +\brief Bootloader. +\ingroup ARMCM3_STM32F2_Olimex_STM32F207_GCC +*/ + + diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/hooks.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/hooks.c new file mode 100644 index 00000000..218b3c7e --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/hooks.c @@ -0,0 +1,481 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Boot\hooks.c +* \brief Bootloader callback source file. +* \ingroup Boot_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "boot.h" /* bootloader generic header */ +#include "led.h" /* LED driver header */ +#include "stm32f2xx.h" /* STM32 registers and drivers */ + + +/**************************************************************************************** +* B A C K D O O R E N T R Y H O O K F U N C T I O N S +****************************************************************************************/ + +#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) +/************************************************************************************//** +** \brief Initializes the backdoor entry option. +** \return none. +** +****************************************************************************************/ +void BackDoorInitHook(void) +{ +} /*** end of BackDoorInitHook ***/ + + +/************************************************************************************//** +** \brief Checks if a backdoor entry is requested. +** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool BackDoorEntryHook(void) +{ + /* default implementation always activates the bootloader after a reset */ + return BLT_TRUE; +} /*** end of BackDoorEntryHook ***/ +#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ + + +/**************************************************************************************** +* C P U D R I V E R H O O K F U N C T I O N S +****************************************************************************************/ + +#if (BOOT_CPU_USER_PROGRAM_START_HOOK > 0) +/************************************************************************************//** +** \brief Callback that gets called when the bootloader is about to exit and +** hand over control to the user program. This is the last moment that +** some final checking can be performed and if necessary prevent the +** bootloader from activiting the user program. +** \return BLT_TRUE if it is okay to start the user program, BLT_FALSE to keep +** keep the bootloader active. +** +****************************************************************************************/ +blt_bool CpuUserProgramStartHook(void) +{ + /* clean up the LED driver */ + LedBlinkExit(); + + /* additional and optional backdoor entry through the pushbutton on the board. to + * force the bootloader to stay active after reset, keep it pressed during reset. + */ + if (GPIO_ReadInputDataBit(GPIOC, GPIO_Pin_13) == Bit_RESET) + { + /* pushbutton pressed, so do not start the user program and keep the + * bootloader active instead. + */ + return BLT_FALSE; + } + /* okay to start the user program.*/ + return BLT_TRUE; +} /*** end of CpuUserProgramStartHook ***/ +#endif /* BOOT_CPU_USER_PROGRAM_START_HOOK > 0 */ + + +/**************************************************************************************** +* W A T C H D O G D R I V E R H O O K F U N C T I O N S +****************************************************************************************/ + +#if (BOOT_COP_HOOKS_ENABLE > 0) +/************************************************************************************//** +** \brief Callback that gets called at the end of the internal COP driver +** initialization routine. It can be used to configure and enable the +** watchdog. +** \return none. +** +****************************************************************************************/ +void CopInitHook(void) +{ + /* this function is called upon initialization. might as well use it to initialize + * the LED driver. It is kind of a visual watchdog anyways. + */ + LedBlinkInit(100); +} /*** end of CopInitHook ***/ + + +/************************************************************************************//** +** \brief Callback that gets called at the end of the internal COP driver +** service routine. This gets called upon initialization and during +** potential long lasting loops and routine. It can be used to service +** the watchdog to prevent a watchdog reset. +** \return none. +** +****************************************************************************************/ +void CopServiceHook(void) +{ + /* run the LED blink task. this is a better place to do it than in the main() program + * loop. certain operations such as flash erase can take a long time, which would cause + * a blink interval to be skipped. this function is also called during such operations, + * so no blink intervals will be skipped when calling the LED blink task here. + */ + LedBlinkTask(); +} /*** end of CopServiceHook ***/ +#endif /* BOOT_COP_HOOKS_ENABLE > 0 */ + + +/**************************************************************************************** +* N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S +****************************************************************************************/ + +#if (BOOT_NVM_HOOKS_ENABLE > 0) +/************************************************************************************//** +** \brief Callback that gets called at the start of the internal NVM driver +** initialization routine. +** \return none. +** +****************************************************************************************/ +void NvmInitHook(void) +{ +} /*** end of NvmInitHook ***/ + + +/************************************************************************************//** +** \brief Callback that gets called at the start of the NVM driver write +** routine. It allows additional memory to be operated on. If the address +** is not within the range of the additional memory, then +** BLT_NVM_NOT_IN_RANGE must be returned to indicate that the data hasn't +** been written yet. +** \param addr Start address. +** \param len Length in bytes. +** \param data Pointer to the data buffer. +** \return BLT_NVM_OKAY if successful, BLT_NVM_NOT_IN_RANGE if the address is +** not within the supported memory range, or BLT_NVM_ERROR is the write +** operation failed. +** +****************************************************************************************/ +blt_int8u NvmWriteHook(blt_addr addr, blt_int32u len, blt_int8u *data) +{ + return BLT_NVM_NOT_IN_RANGE; +} /*** end of NvmWriteHook ***/ + + +/************************************************************************************//** +** \brief Callback that gets called at the start of the NVM driver erase +** routine. It allows additional memory to be operated on. If the address +** is not within the range of the additional memory, then +** BLT_NVM_NOT_IN_RANGE must be returned to indicate that the memory +** hasn't been erased yet. +** \param addr Start address. +** \param len Length in bytes. +** \return BLT_NVM_OKAY if successful, BLT_NVM_NOT_IN_RANGE if the address is +** not within the supported memory range, or BLT_NVM_ERROR is the erase +** operation failed. +** +****************************************************************************************/ +blt_int8u NvmEraseHook(blt_addr addr, blt_int32u len) +{ + return BLT_NVM_NOT_IN_RANGE; +} /*** end of NvmEraseHook ***/ + + +/************************************************************************************//** +** \brief Callback that gets called at the end of the NVM programming session. +** \return BLT_TRUE is successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool NvmDoneHook(void) +{ + return BLT_TRUE; +} /*** end of NvmDoneHook ***/ +#endif /* BOOT_NVM_HOOKS_ENABLE > 0 */ + + +#if (BOOT_NVM_CHECKSUM_HOOKS_ENABLE > 0) +/************************************************************************************//** +** \brief Verifies the checksum, which indicates that a valid user program is +** present and can be started. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool NvmVerifyChecksumHook(void) +{ + return BLT_TRUE; +} /*** end of NvmVerifyChecksum ***/ + + +/************************************************************************************//** +** \brief Writes a checksum of the user program to non-volatile memory. This is +** performed once the entire user program has been programmed. Through +** the checksum, the bootloader can check if a valid user programming is +** present and can be started. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool NvmWriteChecksumHook(void) +{ + return BLT_TRUE; +} +#endif /* BOOT_NVM_CHECKSUM_HOOKS_ENABLE > 0 */ + + +/**************************************************************************************** +* F I L E S Y S T E M I N T E R F A C E H O O K F U N C T I O N S +****************************************************************************************/ + +#if (BOOT_FILE_SYS_ENABLE > 0) + +/**************************************************************************************** +* Constant data declarations +****************************************************************************************/ +/** \brief Firmware filename. */ +static const blt_char firmwareFilename[] = "/demoprog_stm32f207.srec"; + + +/**************************************************************************************** +* Local data declarations +****************************************************************************************/ +#if (BOOT_FILE_LOGGING_ENABLE > 0) +/** \brief Data structure for grouping log-file related information. */ +static struct +{ + FIL handle; /**< FatFS handle to the log-file. */ + blt_bool canUse; /**< Flag to indicate if the log-file can be used. */ +} logfile; +#endif + + +/************************************************************************************//** +** \brief Callback that gets called to check whether a firmware update from +** local file storage should be started. This could for example be when +** a switch is pressed, when a certain file is found on the local file +** storage, etc. +** \return BLT_TRUE if a firmware update is requested, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool FileIsFirmwareUpdateRequestedHook(void) +{ + FILINFO fileInfoObject = { 0 }; /* needs to be zeroed according to f_stat docs */; + + /* Current example implementation looks for a predetermined firmware file on the + * SD-card. If the SD-card is accessible and the firmware file was found the firmware + * update is started. When successfully completed, the firmware file is deleted. + * During the firmware update, progress information is written to a file called + * bootlog.txt and additionally outputted on UART @57600 bps for debugging purposes. + */ + /* check if firmware file is present and SD-card is accessible */ + if (f_stat(firmwareFilename, &fileInfoObject) == FR_OK) + { + /* check if the filesize is valid and that it is not a directory */ + if ( (fileInfoObject.fsize > 0) && (!(fileInfoObject.fattrib & AM_DIR)) ) + { + /* all conditions are met to start a firmware update from local file storage */ + return BLT_TRUE; + } + } + /* still here so no firmware update request is pending */ + return BLT_FALSE; +} /*** end of FileIsFirmwareUpdateRequestedHook ***/ + + +/************************************************************************************//** +** \brief Callback to obtain the filename of the firmware file that should be +** used during the firmware update from the local file storage. This +** hook function is called at the beginning of the firmware update from +** local storage sequence. +** \return valid firmware filename with full path or BLT_NULL. +** +****************************************************************************************/ +const blt_char *FileGetFirmwareFilenameHook(void) +{ + return firmwareFilename; +} /*** end of FileGetFirmwareFilenameHook ***/ + + +#if (BOOT_FILE_STARTED_HOOK_ENABLE > 0) +/************************************************************************************//** +** \brief Callback that gets called to inform the application that a firmware +** update from local storage just started. +** \return none. +** +****************************************************************************************/ +void FileFirmwareUpdateStartedHook(void) +{ + #if (BOOT_FILE_LOGGING_ENABLE > 0) + /* create/overwrite the logfile */ + logfile.canUse = BLT_FALSE; + if (f_open(&logfile.handle, "/bootlog.txt", FA_CREATE_ALWAYS | FA_WRITE) == FR_OK) + { + logfile.canUse = BLT_TRUE; + } + #endif +} /*** end of FileFirmwareUpdateStartedHook ***/ +#endif /* BOOT_FILE_STARTED_HOOK_ENABLE > 0 */ + + +#if (BOOT_FILE_COMPLETED_HOOK_ENABLE > 0) +/************************************************************************************//** +** \brief Callback that gets called to inform the application that a firmware +** update was successfully completed. +** \return none. +** +****************************************************************************************/ +void FileFirmwareUpdateCompletedHook(void) +{ + #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + + /* close the log file */ + if (logfile.canUse == BLT_TRUE) + { + f_close(&logfile.handle); + } + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } + #endif + /* now delete the firmware file from the disk since the update was successful */ + f_unlink(firmwareFilename); +} /*** end of FileFirmwareUpdateCompletedHook ***/ +#endif /* BOOT_FILE_COMPLETED_HOOK_ENABLE > 0 */ + + +#if (BOOT_FILE_ERROR_HOOK_ENABLE > 0) +/************************************************************************************//** +** \brief Callback that gets called in case an error occurred during a firmware +** update. Refer to for a list of available error codes. +** \return none. +** +****************************************************************************************/ +void FileFirmwareUpdateErrorHook(blt_int8u error_code) +{ + #if (BOOT_FILE_LOGGING_ENABLE > 0) + /* error detected which stops the firmware update, so close the log file */ + if (logfile.canUse == BLT_TRUE) + { + f_close(&logfile.handle); + } + #endif +} /*** end of FileFirmwareUpdateErrorHook ***/ +#endif /* BOOT_FILE_ERROR_HOOK_ENABLE > 0 */ + + +#if (BOOT_FILE_LOGGING_ENABLE > 0) +/************************************************************************************//** +** \brief Callback that gets called each time new log information becomes +** available during a firmware update. +** \param info_string Pointer to a character array with the log entry info. +** \return none. +** +****************************************************************************************/ +void FileFirmwareUpdateLogHook(blt_char *info_string) +{ + /* write the string to the log file */ + if (logfile.canUse == BLT_TRUE) + { + if (f_puts(info_string, &logfile.handle) < 0) + { + logfile.canUse = BLT_FALSE; + f_close(&logfile.handle); + } + } + /* echo all characters in the string on UART */ + while(*info_string != '\0') + { + /* write character to transmit holding register */ + USART_SendData(USART3, *info_string); + /* wait for tx holding register to be empty */ + while(USART_GetFlagStatus(USART3, USART_FLAG_TXE) == RESET); + /* point to the next character in the string */ + info_string++; + } +} /*** end of FileFirmwareUpdateLogHook ***/ +#endif /* BOOT_FILE_LOGGING_ENABLE > 0 */ + + +#endif /* BOOT_FILE_SYS_ENABLE > 0 */ + + +/**************************************************************************************** +* S E E D / K E Y S E C U R I T Y H O O K F U N C T I O N S +****************************************************************************************/ + +#if (BOOT_XCP_SEED_KEY_ENABLE > 0) +/************************************************************************************//** +** \brief Provides a seed to the XCP master that will be used for the key +** generation when the master attempts to unlock the specified resource. +** Called by the GET_SEED command. +** \param resource Resource that the seed if requested for (XCP_RES_XXX). +** \param seed Pointer to byte buffer wher the seed will be stored. +** \return Length of the seed in bytes. +** +****************************************************************************************/ +blt_int8u XcpGetSeedHook(blt_int8u resource, blt_int8u *seed) +{ + /* request seed for unlocking ProGraMming resource */ + if ((resource & XCP_RES_PGM) != 0) + { + seed[0] = 0x55; + } + + /* return seed length */ + return 1; +} /*** end of XcpGetSeedHook ***/ + + +/************************************************************************************//** +** \brief Called by the UNLOCK command and checks if the key to unlock the +** specified resource was correct. If so, then the resource protection +** will be removed. +** \param resource resource to unlock (XCP_RES_XXX). +** \param key pointer to the byte buffer holding the key. +** \param len length of the key in bytes. +** \return 1 if the key was correct, 0 otherwise. +** +****************************************************************************************/ +blt_int8u XcpVerifyKeyHook(blt_int8u resource, blt_int8u *key, blt_int8u len) +{ + /* suppress compiler warning for unused parameter */ + len = len; + + /* the example key algorithm in "FeaserKey.dll" works as follows: + * - PGM will be unlocked if key = seed - 1 + */ + + /* check key for unlocking ProGraMming resource */ + if ((resource == XCP_RES_PGM) && (key[0] == (0x55-1))) + { + /* correct key received for unlocking PGM resource */ + return 1; + } + + /* still here so key incorrect */ + return 0; +} /*** end of XcpVerifyKeyHook ***/ +#endif /* BOOT_XCP_SEED_KEY_ENABLE > 0 */ + + +/*********************************** end of hooks.c ************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.depend b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.depend new file mode 100644 index 00000000..842b4948 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.depend @@ -0,0 +1,963 @@ +# depslib dependency file v1.0 +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\misc.c + "misc.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\misc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\inc\stm32f2xx.h + "core_cm3.h" + "system_stm32f2xx.h" + + "stm32f2xx_conf.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\cmsis\core_cm3.h + + + + +1469192681 c:\users\voorburg\desktop\stm32f207\cmsis\core_cminstr.h + + + +1469192681 c:\users\voorburg\desktop\stm32f207\cmsis\core_cmfunc.h + + + +1469192680 c:\users\voorburg\desktop\stm32f207\inc\system_stm32f2xx.h + +1469192681 c:\users\voorburg\desktop\stm32f207\inc\stm32f2xx_conf.h + "stm32f2xx_adc.h" + "stm32f2xx_can.h" + "stm32f2xx_crc.h" + "stm32f2xx_cryp.h" + "stm32f2xx_dac.h" + "stm32f2xx_dbgmcu.h" + "stm32f2xx_dcmi.h" + "stm32f2xx_dma.h" + "stm32f2xx_exti.h" + "stm32f2xx_flash.h" + "stm32f2xx_fsmc.h" + "stm32f2xx_hash.h" + "stm32f2xx_gpio.h" + "stm32f2xx_i2c.h" + "stm32f2xx_iwdg.h" + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + "stm32f2xx_rng.h" + "stm32f2xx_rtc.h" + "stm32f2xx_sdio.h" + "stm32f2xx_spi.h" + "stm32f2xx_syscfg.h" + "stm32f2xx_tim.h" + "stm32f2xx_usart.h" + "stm32f2xx_wwdg.h" + "misc.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_adc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_can.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_crc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_cryp.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_dac.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_dbgmcu.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_dcmi.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_dma.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_exti.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_flash.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_fsmc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_hash.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_gpio.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_i2c.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_iwdg.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_pwr.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_rcc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_rng.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_rtc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_sdio.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_spi.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_syscfg.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_tim.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_usart.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_wwdg.h + "stm32f2xx.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_adc.c + "stm32f2xx_adc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_can.c + "stm32f2xx_can.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_crc.c + "stm32f2xx_crc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_cryp.c + "stm32f2xx_cryp.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_cryp_aes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_cryp_des.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_cryp_tdes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_dac.c + "stm32f2xx_dac.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_dbgmcu.c + "stm32f2xx_dbgmcu.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_dcmi.c + "stm32f2xx_dcmi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_dma.c + "stm32f2xx_dma.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_exti.c + "stm32f2xx_exti.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_flash.c + "stm32f2xx_flash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_fsmc.c + "stm32f2xx_fsmc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_gpio.c + "stm32f2xx_gpio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_hash.c + "stm32f2xx_hash.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_hash_md5.c + "stm32f2xx_hash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_hash_sha1.c + "stm32f2xx_hash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_i2c.c + "stm32f2xx_i2c.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_iwdg.c + "stm32f2xx_iwdg.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_pwr.c + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_rcc.c + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_rng.c + "stm32f2xx_rng.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_rtc.c + "stm32f2xx_rtc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_sdio.c + "stm32f2xx_sdio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_spi.c + "stm32f2xx_spi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_syscfg.c + "stm32f2xx_syscfg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_tim.c + "stm32f2xx_tim.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_usart.c + "stm32f2xx_usart.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_wwdg.c + "stm32f2xx_wwdg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\src\main.c + "stm32f2xx_conf.h" + +1469192680 source:c:\users\voorburg\desktop\stm32f207\src\startup_stm32f2xx.s + +1469192680 source:c:\users\voorburg\desktop\stm32f207\src\system_stm32f2xx.c + "stm32f2xx.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\misc.c + "misc.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\misc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\stm32f2xx.h + "core_cm3.h" + "system_stm32f2xx.h" + + "stm32f2xx_conf.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\cmsis\core_cm3.h + + + + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\cmsis\core_cminstr.h + + + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\cmsis\core_cmfunc.h + + + +1469192680 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\system_stm32f2xx.h + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\stm32f2xx_conf.h + "stm32f2xx_adc.h" + "stm32f2xx_can.h" + "stm32f2xx_crc.h" + "stm32f2xx_cryp.h" + "stm32f2xx_dac.h" + "stm32f2xx_dbgmcu.h" + "stm32f2xx_dcmi.h" + "stm32f2xx_dma.h" + "stm32f2xx_exti.h" + "stm32f2xx_flash.h" + "stm32f2xx_fsmc.h" + "stm32f2xx_hash.h" + "stm32f2xx_gpio.h" + "stm32f2xx_i2c.h" + "stm32f2xx_iwdg.h" + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + "stm32f2xx_rng.h" + "stm32f2xx_rtc.h" + "stm32f2xx_sdio.h" + "stm32f2xx_spi.h" + "stm32f2xx_syscfg.h" + "stm32f2xx_tim.h" + "stm32f2xx_usart.h" + "stm32f2xx_wwdg.h" + "misc.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_adc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_can.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_crc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_cryp.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_dac.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_dbgmcu.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_dcmi.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_dma.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_exti.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_flash.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_fsmc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_hash.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_gpio.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_i2c.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_iwdg.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_pwr.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_rcc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_rng.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_rtc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_sdio.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_spi.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_syscfg.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_tim.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_usart.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_wwdg.h + "stm32f2xx.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_adc.c + "stm32f2xx_adc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_can.c + "stm32f2xx_can.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_crc.c + "stm32f2xx_crc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_cryp.c + "stm32f2xx_cryp.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_cryp_aes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_cryp_des.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_cryp_tdes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_dac.c + "stm32f2xx_dac.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_dbgmcu.c + "stm32f2xx_dbgmcu.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_dcmi.c + "stm32f2xx_dcmi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_dma.c + "stm32f2xx_dma.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_exti.c + "stm32f2xx_exti.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_flash.c + "stm32f2xx_flash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_fsmc.c + "stm32f2xx_fsmc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_gpio.c + "stm32f2xx_gpio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_hash.c + "stm32f2xx_hash.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_hash_md5.c + "stm32f2xx_hash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_hash_sha1.c + "stm32f2xx_hash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_i2c.c + "stm32f2xx_i2c.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_iwdg.c + "stm32f2xx_iwdg.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_pwr.c + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_rcc.c + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_rng.c + "stm32f2xx_rng.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_rtc.c + "stm32f2xx_rtc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_sdio.c + "stm32f2xx_sdio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_spi.c + "stm32f2xx_spi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_syscfg.c + "stm32f2xx_syscfg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_tim.c + "stm32f2xx_tim.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_usart.c + "stm32f2xx_usart.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_wwdg.c + "stm32f2xx_wwdg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\main.c + "stm32f2xx_conf.h" + +1469192680 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\startup_stm32f2xx.s + +1469192680 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\system_stm32f2xx.c + "stm32f2xx.h" + +1461839136 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\app.c + "header.h" + +1461838668 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\header.h + + + "os.h" + "hw.h" + "app.h" + +1452185952 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\os\os.h + +1469195136 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\hw.h + "stm32f2xx_conf.h" + "led.h" + +1452186099 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\led.h + +1452185785 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\app.h + "assert.h" + +1452185438 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\assert.h + +1452185562 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\assert.c + "header.h" + +1461838984 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\hw.c + "header.h" + +1469196060 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\led.c + "header.h" + +1452185952 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\os\os.c + "os.h" + +1461839136 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\app.c + "header.h" + +1461838668 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\header.h + + + "os.h" + "hw.h" + "app.h" + +1452185952 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\os.h + +1469195136 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\hw.h + "stm32f2xx_conf.h" + "led.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\stm32f2xx_conf.h + "stm32f2xx_adc.h" + "stm32f2xx_can.h" + "stm32f2xx_crc.h" + "stm32f2xx_cryp.h" + "stm32f2xx_dac.h" + "stm32f2xx_dbgmcu.h" + "stm32f2xx_dcmi.h" + "stm32f2xx_dma.h" + "stm32f2xx_exti.h" + "stm32f2xx_flash.h" + "stm32f2xx_fsmc.h" + "stm32f2xx_hash.h" + "stm32f2xx_gpio.h" + "stm32f2xx_i2c.h" + "stm32f2xx_iwdg.h" + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + "stm32f2xx_rng.h" + "stm32f2xx_rtc.h" + "stm32f2xx_sdio.h" + "stm32f2xx_spi.h" + "stm32f2xx_syscfg.h" + "stm32f2xx_tim.h" + "stm32f2xx_usart.h" + "stm32f2xx_wwdg.h" + "misc.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_adc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\stm32f2xx.h + "core_cm3.h" + "system_stm32f2xx.h" + + "stm32f2xx_conf.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\cmsis\core_cm3.h + + + + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\cmsis\core_cminstr.h + + + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\cmsis\core_cmfunc.h + + + +1469192680 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\system_stm32f2xx.h + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_can.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_crc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_cryp.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_dac.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_dbgmcu.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_dcmi.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_dma.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_exti.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_flash.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_fsmc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_hash.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_gpio.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_i2c.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_iwdg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_pwr.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_rcc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_rng.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_rtc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_sdio.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_spi.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_syscfg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_tim.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_usart.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_wwdg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\misc.h + "stm32f2xx.h" + +1469269322 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\led.h + +1452185785 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\app.h + "assert.h" + +1452185438 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\assert.h + +1452185562 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\assert.c + "header.h" + +1469268259 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\hw.c + "header.h" + +1469269996 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\led.c + "boot.h" + "led.h" + "stm32f2xx.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\misc.c + "misc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_adc.c + "stm32f2xx_adc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_can.c + "stm32f2xx_can.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_crc.c + "stm32f2xx_crc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_cryp.c + "stm32f2xx_cryp.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_cryp_aes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_cryp_des.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_cryp_tdes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_dac.c + "stm32f2xx_dac.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_dbgmcu.c + "stm32f2xx_dbgmcu.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_dcmi.c + "stm32f2xx_dcmi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_dma.c + "stm32f2xx_dma.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_exti.c + "stm32f2xx_exti.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_flash.c + "stm32f2xx_flash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_fsmc.c + "stm32f2xx_fsmc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_gpio.c + "stm32f2xx_gpio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_hash.c + "stm32f2xx_hash.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_hash_md5.c + "stm32f2xx_hash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_hash_sha1.c + "stm32f2xx_hash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_i2c.c + "stm32f2xx_i2c.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_iwdg.c + "stm32f2xx_iwdg.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_pwr.c + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_rcc.c + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_rng.c + "stm32f2xx_rng.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_rtc.c + "stm32f2xx_rtc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_sdio.c + "stm32f2xx_sdio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_spi.c + "stm32f2xx_spi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_syscfg.c + "stm32f2xx_syscfg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_tim.c + "stm32f2xx_tim.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_usart.c + "stm32f2xx_usart.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_wwdg.c + "stm32f2xx_wwdg.h" + "stm32f2xx_rcc.h" + +1469192680 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\system_stm32f2xx.c + "stm32f2xx.h" + +1452185952 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\os.c + "os.h" + +1469192680 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\startup_stm32f2xx.s + +1469267887 source:c:\work\software\openblt\target\source\armcm3_stm32f2\gcc\cstart.s + +1469286137 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\hooks.c + "boot.h" + "led.h" + "stm32f2xx.h" + +1462056522 c:\work\software\openblt\target\source\boot.h + "types.h" + "assert.h" + "blt_conf.h" + "plausibility.h" + "cpu.h" + "cop.h" + "nvm.h" + "timer.h" + "backdoor.h" + "file.h" + "com.h" + +1469284395 c:\work\software\openblt\target\source\armcm3_stm32f2\types.h + +1462050329 c:\work\software\openblt\target\source\assert.h + +1469285352 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\\blt_conf.h + +1469095224 c:\work\software\openblt\target\source\plausibility.h + +1462050415 c:\work\software\openblt\target\source\cpu.h + +1462050398 c:\work\software\openblt\target\source\cop.h + +1462050452 c:\work\software\openblt\target\source\nvm.h + +1462050500 c:\work\software\openblt\target\source\timer.h + +1462050347 c:\work\software\openblt\target\source\backdoor.h + +1462050429 c:\work\software\openblt\target\source\file.h + "ff.h" + +1462050383 c:\work\software\openblt\target\source\com.h + "xcp.h" + +1462050540 c:\work\software\openblt\target\source\xcp.h + +1469268507 source:c:\work\software\openblt\target\source\armcm3_stm32f2\cpu.c + "boot.h" + +1469271534 source:c:\work\software\openblt\target\source\armcm3_stm32f2\flash.c + "boot.h" + "stm32f2xx.h" + +1469268776 source:c:\work\software\openblt\target\source\armcm3_stm32f2\nvm.c + "boot.h" + "flash.h" + +1469268835 c:\work\software\openblt\target\source\armcm3_stm32f2\flash.h + +1469285339 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\main.c + "boot.h" + "stm32f2xx.h" + +1469270030 source:c:\work\software\openblt\target\source\armcm3_stm32f2\timer.c + "boot.h" + "stm32f2xx.h" + +1469270039 source:c:\work\software\openblt\target\source\armcm3_stm32f2\uart.c + "boot.h" + "stm32f2xx.h" + +1462050298 source:c:\work\software\openblt\target\source\assert.c + "boot.h" + +1462050338 source:c:\work\software\openblt\target\source\backdoor.c + "boot.h" + +1462050354 source:c:\work\software\openblt\target\source\boot.c + "boot.h" + +1462050377 source:c:\work\software\openblt\target\source\com.c + "boot.h" + "can.h" + "uart.h" + "usb.h" + "net.h" + +1462050370 c:\work\software\openblt\target\source\can.h + +1462050513 c:\work\software\openblt\target\source\uart.h + +1462050525 c:\work\software\openblt\target\source\usb.h + +1462050443 c:\work\software\openblt\target\source\net.h + +1462050390 source:c:\work\software\openblt\target\source\cop.c + "boot.h" + +1469284606 source:c:\work\software\openblt\target\source\file.c + "boot.h" + + + +1462050533 source:c:\work\software\openblt\target\source\xcp.c + "boot.h" + +1456845507 c:\work\software\openblt\target\source\third_party\fatfs\src\ff.h + "integer.h" + "ffconf.h" + +1453815053 c:\work\software\openblt\target\source\third_party\fatfs\src\integer.h + + + +1453815156 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\fatfs\ffconf.h + +1469283277 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\fatfs\mmc.c + "diskio.h" + "stm32f2xx.h" + "stm32f2xx_conf.h" + +1456845506 c:\work\software\openblt\target\source\third_party\fatfs\src\diskio.h + "integer.h" + +1456845501 source:c:\work\software\openblt\target\source\third_party\fatfs\src\ff.c + "ff.h" + "diskio.h" + + +1453815053 source:c:\work\software\openblt\target\source\third_party\fatfs\src\option\unicode.c + "../ff.h" + "cc932.c" + "cc936.c" + "cc949.c" + "cc950.c" + "ccsbcs.c" + +1456845501 c:\work\software\openblt\target\source\third_party\fatfs\src\option\cc932.c + "../ff.h" + +1456845502 c:\work\software\openblt\target\source\third_party\fatfs\src\option\cc936.c + "../ff.h" + +1456845502 c:\work\software\openblt\target\source\third_party\fatfs\src\option\cc949.c + "../ff.h" + +1456845502 c:\work\software\openblt\target\source\third_party\fatfs\src\option\cc950.c + "../ff.h" + +1456845502 c:\work\software\openblt\target\source\third_party\fatfs\src\option\ccsbcs.c + "../ff.h" + diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.ebp b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.ebp new file mode 100644 index 00000000..d3fbb780 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.ebp @@ -0,0 +1,472 @@ + + + + + + + diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.elay b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.elay new file mode 100644 index 00000000..d2f0ceb7 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/ide/stm32f207.elay @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/led.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/led.c new file mode 100644 index 00000000..48c6b311 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/led.c @@ -0,0 +1,100 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Boot\led.c +* \brief LED driver source file. +* \ingroup Boot_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "boot.h" /* bootloader generic header */ +#include "led.h" /* module header */ +#include "stm32f2xx.h" /* STM32 registers and drivers */ + + +/**************************************************************************************** +* Local data declarations +****************************************************************************************/ +/** \brief Holds the desired LED blink interval time. */ +static blt_int16u ledBlinkIntervalMs; + + +/************************************************************************************//** +** \brief Initializes the LED blink driver. +** \param interval_ms Specifies the desired LED blink interval time in milliseconds. +** \return none. +** +****************************************************************************************/ +void LedBlinkInit(blt_int16u interval_ms) +{ + /* store the interval time between LED toggles */ + ledBlinkIntervalMs = interval_ms; +} /*** end of LedBlinkInit ***/ + + +/************************************************************************************//** +** \brief Task function for blinking the LED as a fixed timer interval. +** \return none. +** +****************************************************************************************/ +void LedBlinkTask(void) +{ + static blt_bool ledOn = BLT_FALSE; + static blt_int32u nextBlinkEvent = 0; + + /* check for blink event */ + if (TimerGet() >= nextBlinkEvent) + { + /* toggle the LED state */ + if (ledOn == BLT_FALSE) + { + ledOn = BLT_TRUE; + GPIO_SetBits(GPIOF, GPIO_Pin_8); + } + else + { + ledOn = BLT_FALSE; + GPIO_ResetBits(GPIOF, GPIO_Pin_8); + } + /* schedule the next blink event */ + nextBlinkEvent = TimerGet() + ledBlinkIntervalMs; + } +} /*** end of LedBlinkTask ***/ + + +/************************************************************************************//** +** \brief Cleans up the LED blink driver. This is intended to be used upon program +** exit. +** \return none. +** +****************************************************************************************/ +void LedBlinkExit(void) +{ + /* turn the LED off */ + GPIO_ResetBits(GPIOF, GPIO_Pin_8); +} /*** end of LedBlinkExit ***/ + + +/*********************************** end of led.c **************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/led.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/led.h new file mode 100644 index 00000000..1f72b9cb --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/led.h @@ -0,0 +1,40 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Boot\led.h +* \brief LED driver header file. +* \ingroup Boot_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef LED_H +#define LED_H + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +void LedBlinkInit(blt_int16u interval_ms); +void LedBlinkTask(void); +void LedBlinkExit(void); + + +#endif /* LED_H */ +/*********************************** end of led.h **************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/misc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/misc.h new file mode 100644 index 00000000..aec4c361 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/misc.h @@ -0,0 +1,178 @@ +/** + ****************************************************************************** + * @file misc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the miscellaneous + * firmware library functions (add-on to CMSIS functions). + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __MISC_H +#define __MISC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup MISC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief NVIC Init Structure definition + */ + +typedef struct +{ + uint8_t NVIC_IRQChannel; /*!< Specifies the IRQ channel to be enabled or disabled. + This parameter can be an enumerator of @ref IRQn_Type + enumeration (For the complete STM32 Devices IRQ Channels + list, please refer to stm32f2xx.h file) */ + + uint8_t NVIC_IRQChannelPreemptionPriority; /*!< Specifies the pre-emption priority for the IRQ channel + specified in NVIC_IRQChannel. This parameter can be a value + between 0 and 15 as described in the table @ref MISC_NVIC_Priority_Table + A lower priority value indicates a higher priority */ + + uint8_t NVIC_IRQChannelSubPriority; /*!< Specifies the subpriority level for the IRQ channel specified + in NVIC_IRQChannel. This parameter can be a value + between 0 and 15 as described in the table @ref MISC_NVIC_Priority_Table + A lower priority value indicates a higher priority */ + + FunctionalState NVIC_IRQChannelCmd; /*!< Specifies whether the IRQ channel defined in NVIC_IRQChannel + will be enabled or disabled. + This parameter can be set either to ENABLE or DISABLE */ +} NVIC_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup MISC_Exported_Constants + * @{ + */ + +/** @defgroup MISC_Vector_Table_Base + * @{ + */ + +#define NVIC_VectTab_RAM ((uint32_t)0x20000000) +#define NVIC_VectTab_FLASH ((uint32_t)0x08000000) +#define IS_NVIC_VECTTAB(VECTTAB) (((VECTTAB) == NVIC_VectTab_RAM) || \ + ((VECTTAB) == NVIC_VectTab_FLASH)) +/** + * @} + */ + +/** @defgroup MISC_System_Low_Power + * @{ + */ + +#define NVIC_LP_SEVONPEND ((uint8_t)0x10) +#define NVIC_LP_SLEEPDEEP ((uint8_t)0x04) +#define NVIC_LP_SLEEPONEXIT ((uint8_t)0x02) +#define IS_NVIC_LP(LP) (((LP) == NVIC_LP_SEVONPEND) || \ + ((LP) == NVIC_LP_SLEEPDEEP) || \ + ((LP) == NVIC_LP_SLEEPONEXIT)) +/** + * @} + */ + +/** @defgroup MISC_Preemption_Priority_Group + * @{ + */ + +#define NVIC_PriorityGroup_0 ((uint32_t)0x700) /*!< 0 bits for pre-emption priority + 4 bits for subpriority */ +#define NVIC_PriorityGroup_1 ((uint32_t)0x600) /*!< 1 bits for pre-emption priority + 3 bits for subpriority */ +#define NVIC_PriorityGroup_2 ((uint32_t)0x500) /*!< 2 bits for pre-emption priority + 2 bits for subpriority */ +#define NVIC_PriorityGroup_3 ((uint32_t)0x400) /*!< 3 bits for pre-emption priority + 1 bits for subpriority */ +#define NVIC_PriorityGroup_4 ((uint32_t)0x300) /*!< 4 bits for pre-emption priority + 0 bits for subpriority */ + +#define IS_NVIC_PRIORITY_GROUP(GROUP) (((GROUP) == NVIC_PriorityGroup_0) || \ + ((GROUP) == NVIC_PriorityGroup_1) || \ + ((GROUP) == NVIC_PriorityGroup_2) || \ + ((GROUP) == NVIC_PriorityGroup_3) || \ + ((GROUP) == NVIC_PriorityGroup_4)) + +#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY) ((PRIORITY) < 0x10) + +#define IS_NVIC_SUB_PRIORITY(PRIORITY) ((PRIORITY) < 0x10) + +#define IS_NVIC_OFFSET(OFFSET) ((OFFSET) < 0x000FFFFF) + +/** + * @} + */ + +/** @defgroup MISC_SysTick_clock_source + * @{ + */ + +#define SysTick_CLKSource_HCLK_Div8 ((uint32_t)0xFFFFFFFB) +#define SysTick_CLKSource_HCLK ((uint32_t)0x00000004) +#define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SysTick_CLKSource_HCLK) || \ + ((SOURCE) == SysTick_CLKSource_HCLK_Div8)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup); +void NVIC_Init(NVIC_InitTypeDef* NVIC_InitStruct); +void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset); +void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState); +void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource); + +#ifdef __cplusplus +} +#endif + +#endif /* __MISC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_adc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_adc.h new file mode 100644 index 00000000..e8a52b31 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_adc.h @@ -0,0 +1,649 @@ +/** + ****************************************************************************** + * @file stm32f2xx_adc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the ADC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_ADC_H +#define __STM32F2xx_ADC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup ADC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief ADC Init structure definition + */ +typedef struct +{ + uint32_t ADC_Resolution; /*!< Configures the ADC resolution dual mode. + This parameter can be a value of @ref ADC_resolution */ + FunctionalState ADC_ScanConvMode; /*!< Specifies whether the conversion + is performed in Scan (multichannels) + or Single (one channel) mode. + This parameter can be set to ENABLE or DISABLE */ + FunctionalState ADC_ContinuousConvMode; /*!< Specifies whether the conversion + is performed in Continuous or Single mode. + This parameter can be set to ENABLE or DISABLE. */ + uint32_t ADC_ExternalTrigConvEdge; /*!< Select the external trigger edge and + enable the trigger of a regular group. + This parameter can be a value of + @ref ADC_external_trigger_edge_for_regular_channels_conversion */ + uint32_t ADC_ExternalTrigConv; /*!< Select the external event used to trigger + the start of conversion of a regular group. + This parameter can be a value of + @ref ADC_extrenal_trigger_sources_for_regular_channels_conversion */ + uint32_t ADC_DataAlign; /*!< Specifies whether the ADC data alignment + is left or right. This parameter can be + a value of @ref ADC_data_align */ + uint8_t ADC_NbrOfConversion; /*!< Specifies the number of ADC conversions + that will be done using the sequencer for + regular channel group. + This parameter must range from 1 to 16. */ +}ADC_InitTypeDef; + +/** + * @brief ADC Common Init structure definition + */ +typedef struct +{ + uint32_t ADC_Mode; /*!< Configures the ADC to operate in + independent or multi mode. + This parameter can be a value of @ref ADC_Common_mode */ + uint32_t ADC_Prescaler; /*!< Select the frequency of the clock + to the ADC. The clock is common for all the ADCs. + This parameter can be a value of @ref ADC_Prescaler */ + uint32_t ADC_DMAAccessMode; /*!< Configures the Direct memory access + mode for multi ADC mode. + This parameter can be a value of + @ref ADC_Direct_memory_access_mode_for_multi_mode */ + uint32_t ADC_TwoSamplingDelay; /*!< Configures the Delay between 2 sampling phases. + This parameter can be a value of + @ref ADC_delay_between_2_sampling_phases */ + +}ADC_CommonInitTypeDef; + + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup ADC_Exported_Constants + * @{ + */ +#define IS_ADC_ALL_PERIPH(PERIPH) (((PERIPH) == ADC1) || \ + ((PERIPH) == ADC2) || \ + ((PERIPH) == ADC3)) + +/** @defgroup ADC_Common_mode + * @{ + */ +#define ADC_Mode_Independent ((uint32_t)0x00000000) +#define ADC_DualMode_RegSimult_InjecSimult ((uint32_t)0x00000001) +#define ADC_DualMode_RegSimult_AlterTrig ((uint32_t)0x00000002) +#define ADC_DualMode_InjecSimult ((uint32_t)0x00000005) +#define ADC_DualMode_RegSimult ((uint32_t)0x00000006) +#define ADC_DualMode_Interl ((uint32_t)0x00000007) +#define ADC_DualMode_AlterTrig ((uint32_t)0x00000009) +#define ADC_TripleMode_RegSimult_InjecSimult ((uint32_t)0x00000011) +#define ADC_TripleMode_RegSimult_AlterTrig ((uint32_t)0x00000012) +#define ADC_TripleMode_InjecSimult ((uint32_t)0x00000015) +#define ADC_TripleMode_RegSimult ((uint32_t)0x00000016) +#define ADC_TripleMode_Interl ((uint32_t)0x00000017) +#define ADC_TripleMode_AlterTrig ((uint32_t)0x00000019) +#define IS_ADC_MODE(MODE) (((MODE) == ADC_Mode_Independent) || \ + ((MODE) == ADC_DualMode_RegSimult_InjecSimult) || \ + ((MODE) == ADC_DualMode_RegSimult_AlterTrig) || \ + ((MODE) == ADC_DualMode_InjecSimult) || \ + ((MODE) == ADC_DualMode_RegSimult) || \ + ((MODE) == ADC_DualMode_Interl) || \ + ((MODE) == ADC_DualMode_AlterTrig) || \ + ((MODE) == ADC_TripleMode_RegSimult_InjecSimult) || \ + ((MODE) == ADC_TripleMode_RegSimult_AlterTrig) || \ + ((MODE) == ADC_TripleMode_InjecSimult) || \ + ((MODE) == ADC_TripleMode_RegSimult) || \ + ((MODE) == ADC_TripleMode_Interl) || \ + ((MODE) == ADC_TripleMode_AlterTrig)) +/** + * @} + */ + + +/** @defgroup ADC_Prescaler + * @{ + */ +#define ADC_Prescaler_Div2 ((uint32_t)0x00000000) +#define ADC_Prescaler_Div4 ((uint32_t)0x00010000) +#define ADC_Prescaler_Div6 ((uint32_t)0x00020000) +#define ADC_Prescaler_Div8 ((uint32_t)0x00030000) +#define IS_ADC_PRESCALER(PRESCALER) (((PRESCALER) == ADC_Prescaler_Div2) || \ + ((PRESCALER) == ADC_Prescaler_Div4) || \ + ((PRESCALER) == ADC_Prescaler_Div6) || \ + ((PRESCALER) == ADC_Prescaler_Div8)) +/** + * @} + */ + + +/** @defgroup ADC_Direct_memory_access_mode_for_multi_mode + * @{ + */ +#define ADC_DMAAccessMode_Disabled ((uint32_t)0x00000000) /* DMA mode disabled */ +#define ADC_DMAAccessMode_1 ((uint32_t)0x00004000) /* DMA mode 1 enabled (2 / 3 half-words one by one - 1 then 2 then 3)*/ +#define ADC_DMAAccessMode_2 ((uint32_t)0x00008000) /* DMA mode 2 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2)*/ +#define ADC_DMAAccessMode_3 ((uint32_t)0x0000C000) /* DMA mode 3 enabled (2 / 3 bytes by pairs - 2&1 then 1&3 then 3&2) */ +#define IS_ADC_DMA_ACCESS_MODE(MODE) (((MODE) == ADC_DMAAccessMode_Disabled) || \ + ((MODE) == ADC_DMAAccessMode_1) || \ + ((MODE) == ADC_DMAAccessMode_2) || \ + ((MODE) == ADC_DMAAccessMode_3)) + +/** + * @} + */ + + +/** @defgroup ADC_delay_between_2_sampling_phases + * @{ + */ +#define ADC_TwoSamplingDelay_5Cycles ((uint32_t)0x00000000) +#define ADC_TwoSamplingDelay_6Cycles ((uint32_t)0x00000100) +#define ADC_TwoSamplingDelay_7Cycles ((uint32_t)0x00000200) +#define ADC_TwoSamplingDelay_8Cycles ((uint32_t)0x00000300) +#define ADC_TwoSamplingDelay_9Cycles ((uint32_t)0x00000400) +#define ADC_TwoSamplingDelay_10Cycles ((uint32_t)0x00000500) +#define ADC_TwoSamplingDelay_11Cycles ((uint32_t)0x00000600) +#define ADC_TwoSamplingDelay_12Cycles ((uint32_t)0x00000700) +#define ADC_TwoSamplingDelay_13Cycles ((uint32_t)0x00000800) +#define ADC_TwoSamplingDelay_14Cycles ((uint32_t)0x00000900) +#define ADC_TwoSamplingDelay_15Cycles ((uint32_t)0x00000A00) +#define ADC_TwoSamplingDelay_16Cycles ((uint32_t)0x00000B00) +#define ADC_TwoSamplingDelay_17Cycles ((uint32_t)0x00000C00) +#define ADC_TwoSamplingDelay_18Cycles ((uint32_t)0x00000D00) +#define ADC_TwoSamplingDelay_19Cycles ((uint32_t)0x00000E00) +#define ADC_TwoSamplingDelay_20Cycles ((uint32_t)0x00000F00) +#define IS_ADC_SAMPLING_DELAY(DELAY) (((DELAY) == ADC_TwoSamplingDelay_5Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_6Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_7Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_8Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_9Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_10Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_11Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_12Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_13Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_14Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_15Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_16Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_17Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_18Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_19Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_20Cycles)) + +/** + * @} + */ + + +/** @defgroup ADC_resolution + * @{ + */ +#define ADC_Resolution_12b ((uint32_t)0x00000000) +#define ADC_Resolution_10b ((uint32_t)0x01000000) +#define ADC_Resolution_8b ((uint32_t)0x02000000) +#define ADC_Resolution_6b ((uint32_t)0x03000000) +#define IS_ADC_RESOLUTION(RESOLUTION) (((RESOLUTION) == ADC_Resolution_12b) || \ + ((RESOLUTION) == ADC_Resolution_10b) || \ + ((RESOLUTION) == ADC_Resolution_8b) || \ + ((RESOLUTION) == ADC_Resolution_6b)) + +/** + * @} + */ + + +/** @defgroup ADC_external_trigger_edge_for_regular_channels_conversion + * @{ + */ +#define ADC_ExternalTrigConvEdge_None ((uint32_t)0x00000000) +#define ADC_ExternalTrigConvEdge_Rising ((uint32_t)0x10000000) +#define ADC_ExternalTrigConvEdge_Falling ((uint32_t)0x20000000) +#define ADC_ExternalTrigConvEdge_RisingFalling ((uint32_t)0x30000000) +#define IS_ADC_EXT_TRIG_EDGE(EDGE) (((EDGE) == ADC_ExternalTrigConvEdge_None) || \ + ((EDGE) == ADC_ExternalTrigConvEdge_Rising) || \ + ((EDGE) == ADC_ExternalTrigConvEdge_Falling) || \ + ((EDGE) == ADC_ExternalTrigConvEdge_RisingFalling)) +/** + * @} + */ + + +/** @defgroup ADC_extrenal_trigger_sources_for_regular_channels_conversion + * @{ + */ +#define ADC_ExternalTrigConv_T1_CC1 ((uint32_t)0x00000000) +#define ADC_ExternalTrigConv_T1_CC2 ((uint32_t)0x01000000) +#define ADC_ExternalTrigConv_T1_CC3 ((uint32_t)0x02000000) +#define ADC_ExternalTrigConv_T2_CC2 ((uint32_t)0x03000000) +#define ADC_ExternalTrigConv_T2_CC3 ((uint32_t)0x04000000) +#define ADC_ExternalTrigConv_T2_CC4 ((uint32_t)0x05000000) +#define ADC_ExternalTrigConv_T2_TRGO ((uint32_t)0x06000000) +#define ADC_ExternalTrigConv_T3_CC1 ((uint32_t)0x07000000) +#define ADC_ExternalTrigConv_T3_TRGO ((uint32_t)0x08000000) +#define ADC_ExternalTrigConv_T4_CC4 ((uint32_t)0x09000000) +#define ADC_ExternalTrigConv_T5_CC1 ((uint32_t)0x0A000000) +#define ADC_ExternalTrigConv_T5_CC2 ((uint32_t)0x0B000000) +#define ADC_ExternalTrigConv_T5_CC3 ((uint32_t)0x0C000000) +#define ADC_ExternalTrigConv_T8_CC1 ((uint32_t)0x0D000000) +#define ADC_ExternalTrigConv_T8_TRGO ((uint32_t)0x0E000000) +#define ADC_ExternalTrigConv_Ext_IT11 ((uint32_t)0x0F000000) +#define IS_ADC_EXT_TRIG(REGTRIG) (((REGTRIG) == ADC_ExternalTrigConv_T1_CC1) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T1_CC2) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T1_CC3) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T2_CC2) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T2_CC3) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T2_CC4) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T2_TRGO) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T3_CC1) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T3_TRGO) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T4_CC4) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T5_CC1) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T5_CC2) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T5_CC3) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T8_CC1) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T8_TRGO) || \ + ((REGTRIG) == ADC_ExternalTrigConv_Ext_IT11)) +/** + * @} + */ + + +/** @defgroup ADC_data_align + * @{ + */ +#define ADC_DataAlign_Right ((uint32_t)0x00000000) +#define ADC_DataAlign_Left ((uint32_t)0x00000800) +#define IS_ADC_DATA_ALIGN(ALIGN) (((ALIGN) == ADC_DataAlign_Right) || \ + ((ALIGN) == ADC_DataAlign_Left)) +/** + * @} + */ + + +/** @defgroup ADC_channels + * @{ + */ +#define ADC_Channel_0 ((uint8_t)0x00) +#define ADC_Channel_1 ((uint8_t)0x01) +#define ADC_Channel_2 ((uint8_t)0x02) +#define ADC_Channel_3 ((uint8_t)0x03) +#define ADC_Channel_4 ((uint8_t)0x04) +#define ADC_Channel_5 ((uint8_t)0x05) +#define ADC_Channel_6 ((uint8_t)0x06) +#define ADC_Channel_7 ((uint8_t)0x07) +#define ADC_Channel_8 ((uint8_t)0x08) +#define ADC_Channel_9 ((uint8_t)0x09) +#define ADC_Channel_10 ((uint8_t)0x0A) +#define ADC_Channel_11 ((uint8_t)0x0B) +#define ADC_Channel_12 ((uint8_t)0x0C) +#define ADC_Channel_13 ((uint8_t)0x0D) +#define ADC_Channel_14 ((uint8_t)0x0E) +#define ADC_Channel_15 ((uint8_t)0x0F) +#define ADC_Channel_16 ((uint8_t)0x10) +#define ADC_Channel_17 ((uint8_t)0x11) +#define ADC_Channel_18 ((uint8_t)0x12) + +#define ADC_Channel_TempSensor ((uint8_t)ADC_Channel_16) +#define ADC_Channel_Vrefint ((uint8_t)ADC_Channel_17) +#define ADC_Channel_Vbat ((uint8_t)ADC_Channel_18) + +#define IS_ADC_CHANNEL(CHANNEL) (((CHANNEL) == ADC_Channel_0) || \ + ((CHANNEL) == ADC_Channel_1) || \ + ((CHANNEL) == ADC_Channel_2) || \ + ((CHANNEL) == ADC_Channel_3) || \ + ((CHANNEL) == ADC_Channel_4) || \ + ((CHANNEL) == ADC_Channel_5) || \ + ((CHANNEL) == ADC_Channel_6) || \ + ((CHANNEL) == ADC_Channel_7) || \ + ((CHANNEL) == ADC_Channel_8) || \ + ((CHANNEL) == ADC_Channel_9) || \ + ((CHANNEL) == ADC_Channel_10) || \ + ((CHANNEL) == ADC_Channel_11) || \ + ((CHANNEL) == ADC_Channel_12) || \ + ((CHANNEL) == ADC_Channel_13) || \ + ((CHANNEL) == ADC_Channel_14) || \ + ((CHANNEL) == ADC_Channel_15) || \ + ((CHANNEL) == ADC_Channel_16) || \ + ((CHANNEL) == ADC_Channel_17) || \ + ((CHANNEL) == ADC_Channel_18)) +/** + * @} + */ + + +/** @defgroup ADC_sampling_times + * @{ + */ +#define ADC_SampleTime_3Cycles ((uint8_t)0x00) +#define ADC_SampleTime_15Cycles ((uint8_t)0x01) +#define ADC_SampleTime_28Cycles ((uint8_t)0x02) +#define ADC_SampleTime_56Cycles ((uint8_t)0x03) +#define ADC_SampleTime_84Cycles ((uint8_t)0x04) +#define ADC_SampleTime_112Cycles ((uint8_t)0x05) +#define ADC_SampleTime_144Cycles ((uint8_t)0x06) +#define ADC_SampleTime_480Cycles ((uint8_t)0x07) +#define IS_ADC_SAMPLE_TIME(TIME) (((TIME) == ADC_SampleTime_3Cycles) || \ + ((TIME) == ADC_SampleTime_15Cycles) || \ + ((TIME) == ADC_SampleTime_28Cycles) || \ + ((TIME) == ADC_SampleTime_56Cycles) || \ + ((TIME) == ADC_SampleTime_84Cycles) || \ + ((TIME) == ADC_SampleTime_112Cycles) || \ + ((TIME) == ADC_SampleTime_144Cycles) || \ + ((TIME) == ADC_SampleTime_480Cycles)) +/** + * @} + */ + + +/** @defgroup ADC_external_trigger_edge_for_injected_channels_conversion + * @{ + */ +#define ADC_ExternalTrigInjecConvEdge_None ((uint32_t)0x00000000) +#define ADC_ExternalTrigInjecConvEdge_Rising ((uint32_t)0x00100000) +#define ADC_ExternalTrigInjecConvEdge_Falling ((uint32_t)0x00200000) +#define ADC_ExternalTrigInjecConvEdge_RisingFalling ((uint32_t)0x00300000) +#define IS_ADC_EXT_INJEC_TRIG_EDGE(EDGE) (((EDGE) == ADC_ExternalTrigInjecConvEdge_None) || \ + ((EDGE) == ADC_ExternalTrigInjecConvEdge_Rising) || \ + ((EDGE) == ADC_ExternalTrigInjecConvEdge_Falling) || \ + ((EDGE) == ADC_ExternalTrigInjecConvEdge_RisingFalling)) + +/** + * @} + */ + + +/** @defgroup ADC_extrenal_trigger_sources_for_injected_channels_conversion + * @{ + */ +#define ADC_ExternalTrigInjecConv_T1_CC4 ((uint32_t)0x00000000) +#define ADC_ExternalTrigInjecConv_T1_TRGO ((uint32_t)0x00010000) +#define ADC_ExternalTrigInjecConv_T2_CC1 ((uint32_t)0x00020000) +#define ADC_ExternalTrigInjecConv_T2_TRGO ((uint32_t)0x00030000) +#define ADC_ExternalTrigInjecConv_T3_CC2 ((uint32_t)0x00040000) +#define ADC_ExternalTrigInjecConv_T3_CC4 ((uint32_t)0x00050000) +#define ADC_ExternalTrigInjecConv_T4_CC1 ((uint32_t)0x00060000) +#define ADC_ExternalTrigInjecConv_T4_CC2 ((uint32_t)0x00070000) +#define ADC_ExternalTrigInjecConv_T4_CC3 ((uint32_t)0x00080000) +#define ADC_ExternalTrigInjecConv_T4_TRGO ((uint32_t)0x00090000) +#define ADC_ExternalTrigInjecConv_T5_CC4 ((uint32_t)0x000A0000) +#define ADC_ExternalTrigInjecConv_T5_TRGO ((uint32_t)0x000B0000) +#define ADC_ExternalTrigInjecConv_T8_CC2 ((uint32_t)0x000C0000) +#define ADC_ExternalTrigInjecConv_T8_CC3 ((uint32_t)0x000D0000) +#define ADC_ExternalTrigInjecConv_T8_CC4 ((uint32_t)0x000E0000) +#define ADC_ExternalTrigInjecConv_Ext_IT15 ((uint32_t)0x000F0000) +#define IS_ADC_EXT_INJEC_TRIG(INJTRIG) (((INJTRIG) == ADC_ExternalTrigInjecConv_T1_CC4) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T1_TRGO) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T2_CC1) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T2_TRGO) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T3_CC2) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T3_CC4) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T4_CC1) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T4_CC2) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T4_CC3) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T4_TRGO) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T5_CC4) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T5_TRGO) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T8_CC2) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T8_CC3) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T8_CC4) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_Ext_IT15)) +/** + * @} + */ + + +/** @defgroup ADC_injected_channel_selection + * @{ + */ +#define ADC_InjectedChannel_1 ((uint8_t)0x14) +#define ADC_InjectedChannel_2 ((uint8_t)0x18) +#define ADC_InjectedChannel_3 ((uint8_t)0x1C) +#define ADC_InjectedChannel_4 ((uint8_t)0x20) +#define IS_ADC_INJECTED_CHANNEL(CHANNEL) (((CHANNEL) == ADC_InjectedChannel_1) || \ + ((CHANNEL) == ADC_InjectedChannel_2) || \ + ((CHANNEL) == ADC_InjectedChannel_3) || \ + ((CHANNEL) == ADC_InjectedChannel_4)) +/** + * @} + */ + + +/** @defgroup ADC_analog_watchdog_selection + * @{ + */ +#define ADC_AnalogWatchdog_SingleRegEnable ((uint32_t)0x00800200) +#define ADC_AnalogWatchdog_SingleInjecEnable ((uint32_t)0x00400200) +#define ADC_AnalogWatchdog_SingleRegOrInjecEnable ((uint32_t)0x00C00200) +#define ADC_AnalogWatchdog_AllRegEnable ((uint32_t)0x00800000) +#define ADC_AnalogWatchdog_AllInjecEnable ((uint32_t)0x00400000) +#define ADC_AnalogWatchdog_AllRegAllInjecEnable ((uint32_t)0x00C00000) +#define ADC_AnalogWatchdog_None ((uint32_t)0x00000000) +#define IS_ADC_ANALOG_WATCHDOG(WATCHDOG) (((WATCHDOG) == ADC_AnalogWatchdog_SingleRegEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_SingleInjecEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_SingleRegOrInjecEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_AllRegEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_AllInjecEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_AllRegAllInjecEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_None)) +/** + * @} + */ + + +/** @defgroup ADC_interrupts_definition + * @{ + */ +#define ADC_IT_EOC ((uint16_t)0x0205) +#define ADC_IT_AWD ((uint16_t)0x0106) +#define ADC_IT_JEOC ((uint16_t)0x0407) +#define ADC_IT_OVR ((uint16_t)0x201A) +#define IS_ADC_IT(IT) (((IT) == ADC_IT_EOC) || ((IT) == ADC_IT_AWD) || \ + ((IT) == ADC_IT_JEOC)|| ((IT) == ADC_IT_OVR)) +/** + * @} + */ + + +/** @defgroup ADC_flags_definition + * @{ + */ +#define ADC_FLAG_AWD ((uint8_t)0x01) +#define ADC_FLAG_EOC ((uint8_t)0x02) +#define ADC_FLAG_JEOC ((uint8_t)0x04) +#define ADC_FLAG_JSTRT ((uint8_t)0x08) +#define ADC_FLAG_STRT ((uint8_t)0x10) +#define ADC_FLAG_OVR ((uint8_t)0x20) + +#define IS_ADC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint8_t)0xC0) == 0x00) && ((FLAG) != 0x00)) +#define IS_ADC_GET_FLAG(FLAG) (((FLAG) == ADC_FLAG_AWD) || \ + ((FLAG) == ADC_FLAG_EOC) || \ + ((FLAG) == ADC_FLAG_JEOC) || \ + ((FLAG)== ADC_FLAG_JSTRT) || \ + ((FLAG) == ADC_FLAG_STRT) || \ + ((FLAG)== ADC_FLAG_OVR)) +/** + * @} + */ + + +/** @defgroup ADC_thresholds + * @{ + */ +#define IS_ADC_THRESHOLD(THRESHOLD) ((THRESHOLD) <= 0xFFF) +/** + * @} + */ + + +/** @defgroup ADC_injected_offset + * @{ + */ +#define IS_ADC_OFFSET(OFFSET) ((OFFSET) <= 0xFFF) +/** + * @} + */ + + +/** @defgroup ADC_injected_length + * @{ + */ +#define IS_ADC_INJECTED_LENGTH(LENGTH) (((LENGTH) >= 0x1) && ((LENGTH) <= 0x4)) +/** + * @} + */ + + +/** @defgroup ADC_injected_rank + * @{ + */ +#define IS_ADC_INJECTED_RANK(RANK) (((RANK) >= 0x1) && ((RANK) <= 0x4)) +/** + * @} + */ + + +/** @defgroup ADC_regular_length + * @{ + */ +#define IS_ADC_REGULAR_LENGTH(LENGTH) (((LENGTH) >= 0x1) && ((LENGTH) <= 0x10)) +/** + * @} + */ + + +/** @defgroup ADC_regular_rank + * @{ + */ +#define IS_ADC_REGULAR_RANK(RANK) (((RANK) >= 0x1) && ((RANK) <= 0x10)) +/** + * @} + */ + + +/** @defgroup ADC_regular_discontinuous_mode_number + * @{ + */ +#define IS_ADC_REGULAR_DISC_NUMBER(NUMBER) (((NUMBER) >= 0x1) && ((NUMBER) <= 0x8)) +/** + * @} + */ + + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the ADC configuration to the default reset state *****/ +void ADC_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +void ADC_Init(ADC_TypeDef* ADCx, ADC_InitTypeDef* ADC_InitStruct); +void ADC_StructInit(ADC_InitTypeDef* ADC_InitStruct); +void ADC_CommonInit(ADC_CommonInitTypeDef* ADC_CommonInitStruct); +void ADC_CommonStructInit(ADC_CommonInitTypeDef* ADC_CommonInitStruct); +void ADC_Cmd(ADC_TypeDef* ADCx, FunctionalState NewState); + +/* Analog Watchdog configuration functions ************************************/ +void ADC_AnalogWatchdogCmd(ADC_TypeDef* ADCx, uint32_t ADC_AnalogWatchdog); +void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef* ADCx, uint16_t HighThreshold,uint16_t LowThreshold); +void ADC_AnalogWatchdogSingleChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel); + +/* Temperature Sensor, Vrefint and VBAT management functions ******************/ +void ADC_TempSensorVrefintCmd(FunctionalState NewState); +void ADC_VBATCmd(FunctionalState NewState); + +/* Regular Channels Configuration functions ***********************************/ +void ADC_RegularChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime); +void ADC_SoftwareStartConv(ADC_TypeDef* ADCx); +FlagStatus ADC_GetSoftwareStartConvStatus(ADC_TypeDef* ADCx); +void ADC_EOCOnEachRegularChannelCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_ContinuousModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_DiscModeChannelCountConfig(ADC_TypeDef* ADCx, uint8_t Number); +void ADC_DiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +uint16_t ADC_GetConversionValue(ADC_TypeDef* ADCx); +uint32_t ADC_GetMultiModeConversionValue(void); + +/* Regular Channels DMA Configuration functions *******************************/ +void ADC_DMACmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_DMARequestAfterLastTransferCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_MultiModeDMARequestAfterLastTransferCmd(FunctionalState NewState); + +/* Injected channels Configuration functions **********************************/ +void ADC_InjectedChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime); +void ADC_InjectedSequencerLengthConfig(ADC_TypeDef* ADCx, uint8_t Length); +void ADC_SetInjectedOffset(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel, uint16_t Offset); +void ADC_ExternalTrigInjectedConvConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConv); +void ADC_ExternalTrigInjectedConvEdgeConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConvEdge); +void ADC_SoftwareStartInjectedConv(ADC_TypeDef* ADCx); +FlagStatus ADC_GetSoftwareStartInjectedConvCmdStatus(ADC_TypeDef* ADCx); +void ADC_AutoInjectedConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_InjectedDiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +uint16_t ADC_GetInjectedConversionValue(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel); + +/* Interrupts and flags management functions **********************************/ +void ADC_ITConfig(ADC_TypeDef* ADCx, uint16_t ADC_IT, FunctionalState NewState); +FlagStatus ADC_GetFlagStatus(ADC_TypeDef* ADCx, uint8_t ADC_FLAG); +void ADC_ClearFlag(ADC_TypeDef* ADCx, uint8_t ADC_FLAG); +ITStatus ADC_GetITStatus(ADC_TypeDef* ADCx, uint16_t ADC_IT); +void ADC_ClearITPendingBit(ADC_TypeDef* ADCx, uint16_t ADC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_ADC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_can.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_can.h new file mode 100644 index 00000000..42cfdedf --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_can.h @@ -0,0 +1,644 @@ +/** + ****************************************************************************** + * @file stm32f2xx_can.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the CAN firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_CAN_H +#define __STM32F2xx_CAN_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup CAN + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +#define IS_CAN_ALL_PERIPH(PERIPH) (((PERIPH) == CAN1) || \ + ((PERIPH) == CAN2)) + +/** + * @brief CAN init structure definition + */ +typedef struct +{ + uint16_t CAN_Prescaler; /*!< Specifies the length of a time quantum. + It ranges from 1 to 1024. */ + + uint8_t CAN_Mode; /*!< Specifies the CAN operating mode. + This parameter can be a value of @ref CAN_operating_mode */ + + uint8_t CAN_SJW; /*!< Specifies the maximum number of time quanta + the CAN hardware is allowed to lengthen or + shorten a bit to perform resynchronization. + This parameter can be a value of @ref CAN_synchronisation_jump_width */ + + uint8_t CAN_BS1; /*!< Specifies the number of time quanta in Bit + Segment 1. This parameter can be a value of + @ref CAN_time_quantum_in_bit_segment_1 */ + + uint8_t CAN_BS2; /*!< Specifies the number of time quanta in Bit Segment 2. + This parameter can be a value of @ref CAN_time_quantum_in_bit_segment_2 */ + + FunctionalState CAN_TTCM; /*!< Enable or disable the time triggered communication mode. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_ABOM; /*!< Enable or disable the automatic bus-off management. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_AWUM; /*!< Enable or disable the automatic wake-up mode. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_NART; /*!< Enable or disable the non-automatic retransmission mode. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_RFLM; /*!< Enable or disable the Receive FIFO Locked mode. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_TXFP; /*!< Enable or disable the transmit FIFO priority. + This parameter can be set either to ENABLE or DISABLE. */ +} CAN_InitTypeDef; + +/** + * @brief CAN filter init structure definition + */ +typedef struct +{ + uint16_t CAN_FilterIdHigh; /*!< Specifies the filter identification number (MSBs for a 32-bit + configuration, first one for a 16-bit configuration). + This parameter can be a value between 0x0000 and 0xFFFF */ + + uint16_t CAN_FilterIdLow; /*!< Specifies the filter identification number (LSBs for a 32-bit + configuration, second one for a 16-bit configuration). + This parameter can be a value between 0x0000 and 0xFFFF */ + + uint16_t CAN_FilterMaskIdHigh; /*!< Specifies the filter mask number or identification number, + according to the mode (MSBs for a 32-bit configuration, + first one for a 16-bit configuration). + This parameter can be a value between 0x0000 and 0xFFFF */ + + uint16_t CAN_FilterMaskIdLow; /*!< Specifies the filter mask number or identification number, + according to the mode (LSBs for a 32-bit configuration, + second one for a 16-bit configuration). + This parameter can be a value between 0x0000 and 0xFFFF */ + + uint16_t CAN_FilterFIFOAssignment; /*!< Specifies the FIFO (0 or 1) which will be assigned to the filter. + This parameter can be a value of @ref CAN_filter_FIFO */ + + uint8_t CAN_FilterNumber; /*!< Specifies the filter which will be initialized. It ranges from 0 to 13. */ + + uint8_t CAN_FilterMode; /*!< Specifies the filter mode to be initialized. + This parameter can be a value of @ref CAN_filter_mode */ + + uint8_t CAN_FilterScale; /*!< Specifies the filter scale. + This parameter can be a value of @ref CAN_filter_scale */ + + FunctionalState CAN_FilterActivation; /*!< Enable or disable the filter. + This parameter can be set either to ENABLE or DISABLE. */ +} CAN_FilterInitTypeDef; + +/** + * @brief CAN Tx message structure definition + */ +typedef struct +{ + uint32_t StdId; /*!< Specifies the standard identifier. + This parameter can be a value between 0 to 0x7FF. */ + + uint32_t ExtId; /*!< Specifies the extended identifier. + This parameter can be a value between 0 to 0x1FFFFFFF. */ + + uint8_t IDE; /*!< Specifies the type of identifier for the message that + will be transmitted. This parameter can be a value + of @ref CAN_identifier_type */ + + uint8_t RTR; /*!< Specifies the type of frame for the message that will + be transmitted. This parameter can be a value of + @ref CAN_remote_transmission_request */ + + uint8_t DLC; /*!< Specifies the length of the frame that will be + transmitted. This parameter can be a value between + 0 to 8 */ + + uint8_t Data[8]; /*!< Contains the data to be transmitted. It ranges from 0 + to 0xFF. */ +} CanTxMsg; + +/** + * @brief CAN Rx message structure definition + */ +typedef struct +{ + uint32_t StdId; /*!< Specifies the standard identifier. + This parameter can be a value between 0 to 0x7FF. */ + + uint32_t ExtId; /*!< Specifies the extended identifier. + This parameter can be a value between 0 to 0x1FFFFFFF. */ + + uint8_t IDE; /*!< Specifies the type of identifier for the message that + will be received. This parameter can be a value of + @ref CAN_identifier_type */ + + uint8_t RTR; /*!< Specifies the type of frame for the received message. + This parameter can be a value of + @ref CAN_remote_transmission_request */ + + uint8_t DLC; /*!< Specifies the length of the frame that will be received. + This parameter can be a value between 0 to 8 */ + + uint8_t Data[8]; /*!< Contains the data to be received. It ranges from 0 to + 0xFF. */ + + uint8_t FMI; /*!< Specifies the index of the filter the message stored in + the mailbox passes through. This parameter can be a + value between 0 to 0xFF */ +} CanRxMsg; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup CAN_Exported_Constants + * @{ + */ + +/** @defgroup CAN_InitStatus + * @{ + */ + +#define CAN_InitStatus_Failed ((uint8_t)0x00) /*!< CAN initialization failed */ +#define CAN_InitStatus_Success ((uint8_t)0x01) /*!< CAN initialization OK */ + + +/* Legacy defines */ +#define CANINITFAILED CAN_InitStatus_Failed +#define CANINITOK CAN_InitStatus_Success +/** + * @} + */ + +/** @defgroup CAN_operating_mode + * @{ + */ + +#define CAN_Mode_Normal ((uint8_t)0x00) /*!< normal mode */ +#define CAN_Mode_LoopBack ((uint8_t)0x01) /*!< loopback mode */ +#define CAN_Mode_Silent ((uint8_t)0x02) /*!< silent mode */ +#define CAN_Mode_Silent_LoopBack ((uint8_t)0x03) /*!< loopback combined with silent mode */ + +#define IS_CAN_MODE(MODE) (((MODE) == CAN_Mode_Normal) || \ + ((MODE) == CAN_Mode_LoopBack)|| \ + ((MODE) == CAN_Mode_Silent) || \ + ((MODE) == CAN_Mode_Silent_LoopBack)) +/** + * @} + */ + + + /** + * @defgroup CAN_operating_mode + * @{ + */ +#define CAN_OperatingMode_Initialization ((uint8_t)0x00) /*!< Initialization mode */ +#define CAN_OperatingMode_Normal ((uint8_t)0x01) /*!< Normal mode */ +#define CAN_OperatingMode_Sleep ((uint8_t)0x02) /*!< sleep mode */ + + +#define IS_CAN_OPERATING_MODE(MODE) (((MODE) == CAN_OperatingMode_Initialization) ||\ + ((MODE) == CAN_OperatingMode_Normal)|| \ + ((MODE) == CAN_OperatingMode_Sleep)) +/** + * @} + */ + +/** + * @defgroup CAN_operating_mode_status + * @{ + */ + +#define CAN_ModeStatus_Failed ((uint8_t)0x00) /*!< CAN entering the specific mode failed */ +#define CAN_ModeStatus_Success ((uint8_t)!CAN_ModeStatus_Failed) /*!< CAN entering the specific mode Succeed */ +/** + * @} + */ + +/** @defgroup CAN_synchronisation_jump_width + * @{ + */ +#define CAN_SJW_1tq ((uint8_t)0x00) /*!< 1 time quantum */ +#define CAN_SJW_2tq ((uint8_t)0x01) /*!< 2 time quantum */ +#define CAN_SJW_3tq ((uint8_t)0x02) /*!< 3 time quantum */ +#define CAN_SJW_4tq ((uint8_t)0x03) /*!< 4 time quantum */ + +#define IS_CAN_SJW(SJW) (((SJW) == CAN_SJW_1tq) || ((SJW) == CAN_SJW_2tq)|| \ + ((SJW) == CAN_SJW_3tq) || ((SJW) == CAN_SJW_4tq)) +/** + * @} + */ + +/** @defgroup CAN_time_quantum_in_bit_segment_1 + * @{ + */ +#define CAN_BS1_1tq ((uint8_t)0x00) /*!< 1 time quantum */ +#define CAN_BS1_2tq ((uint8_t)0x01) /*!< 2 time quantum */ +#define CAN_BS1_3tq ((uint8_t)0x02) /*!< 3 time quantum */ +#define CAN_BS1_4tq ((uint8_t)0x03) /*!< 4 time quantum */ +#define CAN_BS1_5tq ((uint8_t)0x04) /*!< 5 time quantum */ +#define CAN_BS1_6tq ((uint8_t)0x05) /*!< 6 time quantum */ +#define CAN_BS1_7tq ((uint8_t)0x06) /*!< 7 time quantum */ +#define CAN_BS1_8tq ((uint8_t)0x07) /*!< 8 time quantum */ +#define CAN_BS1_9tq ((uint8_t)0x08) /*!< 9 time quantum */ +#define CAN_BS1_10tq ((uint8_t)0x09) /*!< 10 time quantum */ +#define CAN_BS1_11tq ((uint8_t)0x0A) /*!< 11 time quantum */ +#define CAN_BS1_12tq ((uint8_t)0x0B) /*!< 12 time quantum */ +#define CAN_BS1_13tq ((uint8_t)0x0C) /*!< 13 time quantum */ +#define CAN_BS1_14tq ((uint8_t)0x0D) /*!< 14 time quantum */ +#define CAN_BS1_15tq ((uint8_t)0x0E) /*!< 15 time quantum */ +#define CAN_BS1_16tq ((uint8_t)0x0F) /*!< 16 time quantum */ + +#define IS_CAN_BS1(BS1) ((BS1) <= CAN_BS1_16tq) +/** + * @} + */ + +/** @defgroup CAN_time_quantum_in_bit_segment_2 + * @{ + */ +#define CAN_BS2_1tq ((uint8_t)0x00) /*!< 1 time quantum */ +#define CAN_BS2_2tq ((uint8_t)0x01) /*!< 2 time quantum */ +#define CAN_BS2_3tq ((uint8_t)0x02) /*!< 3 time quantum */ +#define CAN_BS2_4tq ((uint8_t)0x03) /*!< 4 time quantum */ +#define CAN_BS2_5tq ((uint8_t)0x04) /*!< 5 time quantum */ +#define CAN_BS2_6tq ((uint8_t)0x05) /*!< 6 time quantum */ +#define CAN_BS2_7tq ((uint8_t)0x06) /*!< 7 time quantum */ +#define CAN_BS2_8tq ((uint8_t)0x07) /*!< 8 time quantum */ + +#define IS_CAN_BS2(BS2) ((BS2) <= CAN_BS2_8tq) +/** + * @} + */ + +/** @defgroup CAN_clock_prescaler + * @{ + */ +#define IS_CAN_PRESCALER(PRESCALER) (((PRESCALER) >= 1) && ((PRESCALER) <= 1024)) +/** + * @} + */ + +/** @defgroup CAN_filter_number + * @{ + */ +#define IS_CAN_FILTER_NUMBER(NUMBER) ((NUMBER) <= 27) +/** + * @} + */ + +/** @defgroup CAN_filter_mode + * @{ + */ +#define CAN_FilterMode_IdMask ((uint8_t)0x00) /*!< identifier/mask mode */ +#define CAN_FilterMode_IdList ((uint8_t)0x01) /*!< identifier list mode */ + +#define IS_CAN_FILTER_MODE(MODE) (((MODE) == CAN_FilterMode_IdMask) || \ + ((MODE) == CAN_FilterMode_IdList)) +/** + * @} + */ + +/** @defgroup CAN_filter_scale + * @{ + */ +#define CAN_FilterScale_16bit ((uint8_t)0x00) /*!< Two 16-bit filters */ +#define CAN_FilterScale_32bit ((uint8_t)0x01) /*!< One 32-bit filter */ + +#define IS_CAN_FILTER_SCALE(SCALE) (((SCALE) == CAN_FilterScale_16bit) || \ + ((SCALE) == CAN_FilterScale_32bit)) +/** + * @} + */ + +/** @defgroup CAN_filter_FIFO + * @{ + */ +#define CAN_Filter_FIFO0 ((uint8_t)0x00) /*!< Filter FIFO 0 assignment for filter x */ +#define CAN_Filter_FIFO1 ((uint8_t)0x01) /*!< Filter FIFO 1 assignment for filter x */ +#define IS_CAN_FILTER_FIFO(FIFO) (((FIFO) == CAN_FilterFIFO0) || \ + ((FIFO) == CAN_FilterFIFO1)) + +/* Legacy defines */ +#define CAN_FilterFIFO0 CAN_Filter_FIFO0 +#define CAN_FilterFIFO1 CAN_Filter_FIFO1 +/** + * @} + */ + +/** @defgroup CAN_Start_bank_filter_for_slave_CAN + * @{ + */ +#define IS_CAN_BANKNUMBER(BANKNUMBER) (((BANKNUMBER) >= 1) && ((BANKNUMBER) <= 27)) +/** + * @} + */ + +/** @defgroup CAN_Tx + * @{ + */ +#define IS_CAN_TRANSMITMAILBOX(TRANSMITMAILBOX) ((TRANSMITMAILBOX) <= ((uint8_t)0x02)) +#define IS_CAN_STDID(STDID) ((STDID) <= ((uint32_t)0x7FF)) +#define IS_CAN_EXTID(EXTID) ((EXTID) <= ((uint32_t)0x1FFFFFFF)) +#define IS_CAN_DLC(DLC) ((DLC) <= ((uint8_t)0x08)) +/** + * @} + */ + +/** @defgroup CAN_identifier_type + * @{ + */ +#define CAN_Id_Standard ((uint32_t)0x00000000) /*!< Standard Id */ +#define CAN_Id_Extended ((uint32_t)0x00000004) /*!< Extended Id */ +#define IS_CAN_IDTYPE(IDTYPE) (((IDTYPE) == CAN_Id_Standard) || \ + ((IDTYPE) == CAN_Id_Extended)) + +/* Legacy defines */ +#define CAN_ID_STD CAN_Id_Standard +#define CAN_ID_EXT CAN_Id_Extended +/** + * @} + */ + +/** @defgroup CAN_remote_transmission_request + * @{ + */ +#define CAN_RTR_Data ((uint32_t)0x00000000) /*!< Data frame */ +#define CAN_RTR_Remote ((uint32_t)0x00000002) /*!< Remote frame */ +#define IS_CAN_RTR(RTR) (((RTR) == CAN_RTR_Data) || ((RTR) == CAN_RTR_Remote)) + +/* Legacy defines */ +#define CAN_RTR_DATA CAN_RTR_Data +#define CAN_RTR_REMOTE CAN_RTR_Remote +/** + * @} + */ + +/** @defgroup CAN_transmit_constants + * @{ + */ +#define CAN_TxStatus_Failed ((uint8_t)0x00)/*!< CAN transmission failed */ +#define CAN_TxStatus_Ok ((uint8_t)0x01) /*!< CAN transmission succeeded */ +#define CAN_TxStatus_Pending ((uint8_t)0x02) /*!< CAN transmission pending */ +#define CAN_TxStatus_NoMailBox ((uint8_t)0x04) /*!< CAN cell did not provide + an empty mailbox */ +/* Legacy defines */ +#define CANTXFAILED CAN_TxStatus_Failed +#define CANTXOK CAN_TxStatus_Ok +#define CANTXPENDING CAN_TxStatus_Pending +#define CAN_NO_MB CAN_TxStatus_NoMailBox +/** + * @} + */ + +/** @defgroup CAN_receive_FIFO_number_constants + * @{ + */ +#define CAN_FIFO0 ((uint8_t)0x00) /*!< CAN FIFO 0 used to receive */ +#define CAN_FIFO1 ((uint8_t)0x01) /*!< CAN FIFO 1 used to receive */ + +#define IS_CAN_FIFO(FIFO) (((FIFO) == CAN_FIFO0) || ((FIFO) == CAN_FIFO1)) +/** + * @} + */ + +/** @defgroup CAN_sleep_constants + * @{ + */ +#define CAN_Sleep_Failed ((uint8_t)0x00) /*!< CAN did not enter the sleep mode */ +#define CAN_Sleep_Ok ((uint8_t)0x01) /*!< CAN entered the sleep mode */ + +/* Legacy defines */ +#define CANSLEEPFAILED CAN_Sleep_Failed +#define CANSLEEPOK CAN_Sleep_Ok +/** + * @} + */ + +/** @defgroup CAN_wake_up_constants + * @{ + */ +#define CAN_WakeUp_Failed ((uint8_t)0x00) /*!< CAN did not leave the sleep mode */ +#define CAN_WakeUp_Ok ((uint8_t)0x01) /*!< CAN leaved the sleep mode */ + +/* Legacy defines */ +#define CANWAKEUPFAILED CAN_WakeUp_Failed +#define CANWAKEUPOK CAN_WakeUp_Ok +/** + * @} + */ + +/** + * @defgroup CAN_Error_Code_constants + * @{ + */ +#define CAN_ErrorCode_NoErr ((uint8_t)0x00) /*!< No Error */ +#define CAN_ErrorCode_StuffErr ((uint8_t)0x10) /*!< Stuff Error */ +#define CAN_ErrorCode_FormErr ((uint8_t)0x20) /*!< Form Error */ +#define CAN_ErrorCode_ACKErr ((uint8_t)0x30) /*!< Acknowledgment Error */ +#define CAN_ErrorCode_BitRecessiveErr ((uint8_t)0x40) /*!< Bit Recessive Error */ +#define CAN_ErrorCode_BitDominantErr ((uint8_t)0x50) /*!< Bit Dominant Error */ +#define CAN_ErrorCode_CRCErr ((uint8_t)0x60) /*!< CRC Error */ +#define CAN_ErrorCode_SoftwareSetErr ((uint8_t)0x70) /*!< Software Set Error */ +/** + * @} + */ + +/** @defgroup CAN_flags + * @{ + */ +/* If the flag is 0x3XXXXXXX, it means that it can be used with CAN_GetFlagStatus() + and CAN_ClearFlag() functions. */ +/* If the flag is 0x1XXXXXXX, it means that it can only be used with + CAN_GetFlagStatus() function. */ + +/* Transmit Flags */ +#define CAN_FLAG_RQCP0 ((uint32_t)0x38000001) /*!< Request MailBox0 Flag */ +#define CAN_FLAG_RQCP1 ((uint32_t)0x38000100) /*!< Request MailBox1 Flag */ +#define CAN_FLAG_RQCP2 ((uint32_t)0x38010000) /*!< Request MailBox2 Flag */ + +/* Receive Flags */ +#define CAN_FLAG_FMP0 ((uint32_t)0x12000003) /*!< FIFO 0 Message Pending Flag */ +#define CAN_FLAG_FF0 ((uint32_t)0x32000008) /*!< FIFO 0 Full Flag */ +#define CAN_FLAG_FOV0 ((uint32_t)0x32000010) /*!< FIFO 0 Overrun Flag */ +#define CAN_FLAG_FMP1 ((uint32_t)0x14000003) /*!< FIFO 1 Message Pending Flag */ +#define CAN_FLAG_FF1 ((uint32_t)0x34000008) /*!< FIFO 1 Full Flag */ +#define CAN_FLAG_FOV1 ((uint32_t)0x34000010) /*!< FIFO 1 Overrun Flag */ + +/* Operating Mode Flags */ +#define CAN_FLAG_WKU ((uint32_t)0x31000008) /*!< Wake up Flag */ +#define CAN_FLAG_SLAK ((uint32_t)0x31000012) /*!< Sleep acknowledge Flag */ +/* @note When SLAK interrupt is disabled (SLKIE=0), no polling on SLAKI is possible. + In this case the SLAK bit can be polled.*/ + +/* Error Flags */ +#define CAN_FLAG_EWG ((uint32_t)0x10F00001) /*!< Error Warning Flag */ +#define CAN_FLAG_EPV ((uint32_t)0x10F00002) /*!< Error Passive Flag */ +#define CAN_FLAG_BOF ((uint32_t)0x10F00004) /*!< Bus-Off Flag */ +#define CAN_FLAG_LEC ((uint32_t)0x30F00070) /*!< Last error code Flag */ + +#define IS_CAN_GET_FLAG(FLAG) (((FLAG) == CAN_FLAG_LEC) || ((FLAG) == CAN_FLAG_BOF) || \ + ((FLAG) == CAN_FLAG_EPV) || ((FLAG) == CAN_FLAG_EWG) || \ + ((FLAG) == CAN_FLAG_WKU) || ((FLAG) == CAN_FLAG_FOV0) || \ + ((FLAG) == CAN_FLAG_FF0) || ((FLAG) == CAN_FLAG_FMP0) || \ + ((FLAG) == CAN_FLAG_FOV1) || ((FLAG) == CAN_FLAG_FF1) || \ + ((FLAG) == CAN_FLAG_FMP1) || ((FLAG) == CAN_FLAG_RQCP2) || \ + ((FLAG) == CAN_FLAG_RQCP1)|| ((FLAG) == CAN_FLAG_RQCP0) || \ + ((FLAG) == CAN_FLAG_SLAK )) + +#define IS_CAN_CLEAR_FLAG(FLAG)(((FLAG) == CAN_FLAG_LEC) || ((FLAG) == CAN_FLAG_RQCP2) || \ + ((FLAG) == CAN_FLAG_RQCP1) || ((FLAG) == CAN_FLAG_RQCP0) || \ + ((FLAG) == CAN_FLAG_FF0) || ((FLAG) == CAN_FLAG_FOV0) ||\ + ((FLAG) == CAN_FLAG_FF1) || ((FLAG) == CAN_FLAG_FOV1) || \ + ((FLAG) == CAN_FLAG_WKU) || ((FLAG) == CAN_FLAG_SLAK)) +/** + * @} + */ + + +/** @defgroup CAN_interrupts + * @{ + */ +#define CAN_IT_TME ((uint32_t)0x00000001) /*!< Transmit mailbox empty Interrupt*/ + +/* Receive Interrupts */ +#define CAN_IT_FMP0 ((uint32_t)0x00000002) /*!< FIFO 0 message pending Interrupt*/ +#define CAN_IT_FF0 ((uint32_t)0x00000004) /*!< FIFO 0 full Interrupt*/ +#define CAN_IT_FOV0 ((uint32_t)0x00000008) /*!< FIFO 0 overrun Interrupt*/ +#define CAN_IT_FMP1 ((uint32_t)0x00000010) /*!< FIFO 1 message pending Interrupt*/ +#define CAN_IT_FF1 ((uint32_t)0x00000020) /*!< FIFO 1 full Interrupt*/ +#define CAN_IT_FOV1 ((uint32_t)0x00000040) /*!< FIFO 1 overrun Interrupt*/ + +/* Operating Mode Interrupts */ +#define CAN_IT_WKU ((uint32_t)0x00010000) /*!< Wake-up Interrupt*/ +#define CAN_IT_SLK ((uint32_t)0x00020000) /*!< Sleep acknowledge Interrupt*/ + +/* Error Interrupts */ +#define CAN_IT_EWG ((uint32_t)0x00000100) /*!< Error warning Interrupt*/ +#define CAN_IT_EPV ((uint32_t)0x00000200) /*!< Error passive Interrupt*/ +#define CAN_IT_BOF ((uint32_t)0x00000400) /*!< Bus-off Interrupt*/ +#define CAN_IT_LEC ((uint32_t)0x00000800) /*!< Last error code Interrupt*/ +#define CAN_IT_ERR ((uint32_t)0x00008000) /*!< Error Interrupt*/ + +/* Flags named as Interrupts : kept only for FW compatibility */ +#define CAN_IT_RQCP0 CAN_IT_TME +#define CAN_IT_RQCP1 CAN_IT_TME +#define CAN_IT_RQCP2 CAN_IT_TME + + +#define IS_CAN_IT(IT) (((IT) == CAN_IT_TME) || ((IT) == CAN_IT_FMP0) ||\ + ((IT) == CAN_IT_FF0) || ((IT) == CAN_IT_FOV0) ||\ + ((IT) == CAN_IT_FMP1) || ((IT) == CAN_IT_FF1) ||\ + ((IT) == CAN_IT_FOV1) || ((IT) == CAN_IT_EWG) ||\ + ((IT) == CAN_IT_EPV) || ((IT) == CAN_IT_BOF) ||\ + ((IT) == CAN_IT_LEC) || ((IT) == CAN_IT_ERR) ||\ + ((IT) == CAN_IT_WKU) || ((IT) == CAN_IT_SLK)) + +#define IS_CAN_CLEAR_IT(IT) (((IT) == CAN_IT_TME) || ((IT) == CAN_IT_FF0) ||\ + ((IT) == CAN_IT_FOV0)|| ((IT) == CAN_IT_FF1) ||\ + ((IT) == CAN_IT_FOV1)|| ((IT) == CAN_IT_EWG) ||\ + ((IT) == CAN_IT_EPV) || ((IT) == CAN_IT_BOF) ||\ + ((IT) == CAN_IT_LEC) || ((IT) == CAN_IT_ERR) ||\ + ((IT) == CAN_IT_WKU) || ((IT) == CAN_IT_SLK)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the CAN configuration to the default reset state *****/ +void CAN_DeInit(CAN_TypeDef* CANx); + +/* Initialization and Configuration functions *********************************/ +uint8_t CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct); +void CAN_FilterInit(CAN_FilterInitTypeDef* CAN_FilterInitStruct); +void CAN_StructInit(CAN_InitTypeDef* CAN_InitStruct); +void CAN_SlaveStartBank(uint8_t CAN_BankNumber); +void CAN_DBGFreeze(CAN_TypeDef* CANx, FunctionalState NewState); +void CAN_TTComModeCmd(CAN_TypeDef* CANx, FunctionalState NewState); + +/* CAN Frames Transmission functions ******************************************/ +uint8_t CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage); +uint8_t CAN_TransmitStatus(CAN_TypeDef* CANx, uint8_t TransmitMailbox); +void CAN_CancelTransmit(CAN_TypeDef* CANx, uint8_t Mailbox); + +/* CAN Frames Reception functions *********************************************/ +void CAN_Receive(CAN_TypeDef* CANx, uint8_t FIFONumber, CanRxMsg* RxMessage); +void CAN_FIFORelease(CAN_TypeDef* CANx, uint8_t FIFONumber); +uint8_t CAN_MessagePending(CAN_TypeDef* CANx, uint8_t FIFONumber); + +/* Operation modes functions **************************************************/ +uint8_t CAN_OperatingModeRequest(CAN_TypeDef* CANx, uint8_t CAN_OperatingMode); +uint8_t CAN_Sleep(CAN_TypeDef* CANx); +uint8_t CAN_WakeUp(CAN_TypeDef* CANx); + +/* CAN Bus Error management functions *****************************************/ +uint8_t CAN_GetLastErrorCode(CAN_TypeDef* CANx); +uint8_t CAN_GetReceiveErrorCounter(CAN_TypeDef* CANx); +uint8_t CAN_GetLSBTransmitErrorCounter(CAN_TypeDef* CANx); + +/* Interrupts and flags management functions **********************************/ +void CAN_ITConfig(CAN_TypeDef* CANx, uint32_t CAN_IT, FunctionalState NewState); +FlagStatus CAN_GetFlagStatus(CAN_TypeDef* CANx, uint32_t CAN_FLAG); +void CAN_ClearFlag(CAN_TypeDef* CANx, uint32_t CAN_FLAG); +ITStatus CAN_GetITStatus(CAN_TypeDef* CANx, uint32_t CAN_IT); +void CAN_ClearITPendingBit(CAN_TypeDef* CANx, uint32_t CAN_IT); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_CAN_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_crc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_crc.h new file mode 100644 index 00000000..725c581f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_crc.h @@ -0,0 +1,83 @@ +/** + ****************************************************************************** + * @file stm32f2xx_crc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the CRC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_CRC_H +#define __STM32F2xx_CRC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup CRC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup CRC_Exported_Constants + * @{ + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +void CRC_ResetDR(void); +uint32_t CRC_CalcCRC(uint32_t Data); +uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength); +uint32_t CRC_GetCRC(void); +void CRC_SetIDRegister(uint8_t IDValue); +uint8_t CRC_GetIDRegister(void); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_CRC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_cryp.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_cryp.h new file mode 100644 index 00000000..893e9258 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_cryp.h @@ -0,0 +1,344 @@ +/** + ****************************************************************************** + * @file stm32f2xx_cryp.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the Cryptographic + * processor(CRYP) firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_CRYP_H +#define __STM32F2xx_CRYP_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup CRYP + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief CRYP Init structure definition + */ +typedef struct +{ + uint16_t CRYP_AlgoDir; /*!< Encrypt or Decrypt. This parameter can be a + value of @ref CRYP_Algorithm_Direction */ + uint16_t CRYP_AlgoMode; /*!< TDES-ECB, TDES-CBC, DES-ECB, DES-CBC, AES-ECB, + AES-CBC, AES-CTR, AES-Key. This parameter can be + a value of @ref CRYP_Algorithm_Mode */ + uint16_t CRYP_DataType; /*!< 32-bit data, 16-bit data, bit data or bit-string. + This parameter can be a value of @ref CRYP_Data_Type */ + uint16_t CRYP_KeySize; /*!< Used only in AES mode only : 128, 192 or 256 bit + key length. This parameter can be a value of + @ref CRYP_Key_Size_for_AES_only */ +}CRYP_InitTypeDef; + +/** + * @brief CRYP Key(s) structure definition + */ +typedef struct +{ + uint32_t CRYP_Key0Left; /*!< Key 0 Left */ + uint32_t CRYP_Key0Right; /*!< Key 0 Right */ + uint32_t CRYP_Key1Left; /*!< Key 1 left */ + uint32_t CRYP_Key1Right; /*!< Key 1 Right */ + uint32_t CRYP_Key2Left; /*!< Key 2 left */ + uint32_t CRYP_Key2Right; /*!< Key 2 Right */ + uint32_t CRYP_Key3Left; /*!< Key 3 left */ + uint32_t CRYP_Key3Right; /*!< Key 3 Right */ +}CRYP_KeyInitTypeDef; +/** + * @brief CRYP Initialization Vectors (IV) structure definition + */ +typedef struct +{ + uint32_t CRYP_IV0Left; /*!< Init Vector 0 Left */ + uint32_t CRYP_IV0Right; /*!< Init Vector 0 Right */ + uint32_t CRYP_IV1Left; /*!< Init Vector 1 left */ + uint32_t CRYP_IV1Right; /*!< Init Vector 1 Right */ +}CRYP_IVInitTypeDef; + +/** + * @brief CRYP context swapping structure definition + */ +typedef struct +{ + /*!< Configuration */ + uint32_t CR_bits9to2; + /*!< KEY */ + uint32_t CRYP_IV0LR; + uint32_t CRYP_IV0RR; + uint32_t CRYP_IV1LR; + uint32_t CRYP_IV1RR; + /*!< IV */ + uint32_t CRYP_K0LR; + uint32_t CRYP_K0RR; + uint32_t CRYP_K1LR; + uint32_t CRYP_K1RR; + uint32_t CRYP_K2LR; + uint32_t CRYP_K2RR; + uint32_t CRYP_K3LR; + uint32_t CRYP_K3RR; +}CRYP_Context; + + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup CRYP_Exported_Constants + * @{ + */ + +/** @defgroup CRYP_Algorithm_Direction + * @{ + */ +#define CRYP_AlgoDir_Encrypt ((uint16_t)0x0000) +#define CRYP_AlgoDir_Decrypt ((uint16_t)0x0004) +#define IS_CRYP_ALGODIR(ALGODIR) (((ALGODIR) == CRYP_AlgoDir_Encrypt) || \ + ((ALGODIR) == CRYP_AlgoDir_Decrypt)) + +/** + * @} + */ + +/** @defgroup CRYP_Algorithm_Mode + * @{ + */ + +/*!< TDES Modes */ +#define CRYP_AlgoMode_TDES_ECB ((uint16_t)0x0000) +#define CRYP_AlgoMode_TDES_CBC ((uint16_t)0x0008) + +/*!< DES Modes */ +#define CRYP_AlgoMode_DES_ECB ((uint16_t)0x0010) +#define CRYP_AlgoMode_DES_CBC ((uint16_t)0x0018) + +/*!< AES Modes */ +#define CRYP_AlgoMode_AES_ECB ((uint16_t)0x0020) +#define CRYP_AlgoMode_AES_CBC ((uint16_t)0x0028) +#define CRYP_AlgoMode_AES_CTR ((uint16_t)0x0030) +#define CRYP_AlgoMode_AES_Key ((uint16_t)0x0038) + +#define IS_CRYP_ALGOMODE(ALGOMODE) (((ALGOMODE) == CRYP_AlgoMode_TDES_ECB) || \ + ((ALGOMODE) == CRYP_AlgoMode_TDES_CBC)|| \ + ((ALGOMODE) == CRYP_AlgoMode_DES_ECB)|| \ + ((ALGOMODE) == CRYP_AlgoMode_DES_CBC) || \ + ((ALGOMODE) == CRYP_AlgoMode_AES_ECB) || \ + ((ALGOMODE) == CRYP_AlgoMode_AES_CBC) || \ + ((ALGOMODE) == CRYP_AlgoMode_AES_CTR) || \ + ((ALGOMODE) == CRYP_AlgoMode_AES_Key)) +/** + * @} + */ + +/** @defgroup CRYP_Data_Type + * @{ + */ +#define CRYP_DataType_32b ((uint16_t)0x0000) +#define CRYP_DataType_16b ((uint16_t)0x0040) +#define CRYP_DataType_8b ((uint16_t)0x0080) +#define CRYP_DataType_1b ((uint16_t)0x00C0) +#define IS_CRYP_DATATYPE(DATATYPE) (((DATATYPE) == CRYP_DataType_32b) || \ + ((DATATYPE) == CRYP_DataType_16b)|| \ + ((DATATYPE) == CRYP_DataType_8b)|| \ + ((DATATYPE) == CRYP_DataType_1b)) +/** + * @} + */ + +/** @defgroup CRYP_Key_Size_for_AES_only + * @{ + */ +#define CRYP_KeySize_128b ((uint16_t)0x0000) +#define CRYP_KeySize_192b ((uint16_t)0x0100) +#define CRYP_KeySize_256b ((uint16_t)0x0200) +#define IS_CRYP_KEYSIZE(KEYSIZE) (((KEYSIZE) == CRYP_KeySize_128b)|| \ + ((KEYSIZE) == CRYP_KeySize_192b)|| \ + ((KEYSIZE) == CRYP_KeySize_256b)) +/** + * @} + */ + +/** @defgroup CRYP_flags_definition + * @{ + */ +#define CRYP_FLAG_BUSY ((uint8_t)0x10) /*!< The CRYP core is currently + processing a block of data + or a key preparation (for + AES decryption). */ +#define CRYP_FLAG_IFEM ((uint8_t)0x01) /*!< Input Fifo Empty */ +#define CRYP_FLAG_IFNF ((uint8_t)0x02) /*!< Input Fifo is Not Full */ +#define CRYP_FLAG_INRIS ((uint8_t)0x22) /*!< Raw interrupt pending */ +#define CRYP_FLAG_OFNE ((uint8_t)0x04) /*!< Input Fifo service raw + interrupt status */ +#define CRYP_FLAG_OFFU ((uint8_t)0x08) /*!< Output Fifo is Full */ +#define CRYP_FLAG_OUTRIS ((uint8_t)0x21) /*!< Output Fifo service raw + interrupt status */ + +#define IS_CRYP_GET_FLAG(FLAG) (((FLAG) == CRYP_FLAG_IFEM) || \ + ((FLAG) == CRYP_FLAG_IFNF) || \ + ((FLAG) == CRYP_FLAG_OFNE) || \ + ((FLAG) == CRYP_FLAG_OFFU) || \ + ((FLAG) == CRYP_FLAG_BUSY) || \ + ((FLAG) == CRYP_FLAG_OUTRIS)|| \ + ((FLAG) == CRYP_FLAG_INRIS)) +/** + * @} + */ + +/** @defgroup CRYP_interrupts_definition + * @{ + */ +#define CRYP_IT_INI ((uint8_t)0x01) /*!< IN Fifo Interrupt */ +#define CRYP_IT_OUTI ((uint8_t)0x02) /*!< OUT Fifo Interrupt */ +#define IS_CRYP_CONFIG_IT(IT) ((((IT) & (uint8_t)0xFC) == 0x00) && ((IT) != 0x00)) +#define IS_CRYP_GET_IT(IT) (((IT) == CRYP_IT_INI) || ((IT) == CRYP_IT_OUTI)) + +/** + * @} + */ + +/** @defgroup CRYP_Encryption_Decryption_modes_definition + * @{ + */ +#define MODE_ENCRYPT ((uint8_t)0x01) +#define MODE_DECRYPT ((uint8_t)0x00) + +/** + * @} + */ + +/** @defgroup CRYP_DMA_transfer_requests + * @{ + */ +#define CRYP_DMAReq_DataIN ((uint8_t)0x01) +#define CRYP_DMAReq_DataOUT ((uint8_t)0x02) +#define IS_CRYP_DMAREQ(DMAREQ) ((((DMAREQ) & (uint8_t)0xFC) == 0x00) && ((DMAREQ) != 0x00)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the CRYP configuration to the default reset state ****/ +void CRYP_DeInit(void); + +/* CRYP Initialization and Configuration functions ****************************/ +void CRYP_Init(CRYP_InitTypeDef* CRYP_InitStruct); +void CRYP_StructInit(CRYP_InitTypeDef* CRYP_InitStruct); +void CRYP_KeyInit(CRYP_KeyInitTypeDef* CRYP_KeyInitStruct); +void CRYP_KeyStructInit(CRYP_KeyInitTypeDef* CRYP_KeyInitStruct); +void CRYP_IVInit(CRYP_IVInitTypeDef* CRYP_IVInitStruct); +void CRYP_IVStructInit(CRYP_IVInitTypeDef* CRYP_IVInitStruct); +void CRYP_Cmd(FunctionalState NewState); + +/* CRYP Data processing functions *********************************************/ +void CRYP_DataIn(uint32_t Data); +uint32_t CRYP_DataOut(void); +void CRYP_FIFOFlush(void); + +/* CRYP Context swapping functions ********************************************/ +ErrorStatus CRYP_SaveContext(CRYP_Context* CRYP_ContextSave, + CRYP_KeyInitTypeDef* CRYP_KeyInitStruct); +void CRYP_RestoreContext(CRYP_Context* CRYP_ContextRestore); + +/* CRYP's DMA interface function **********************************************/ +void CRYP_DMACmd(uint8_t CRYP_DMAReq, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void CRYP_ITConfig(uint8_t CRYP_IT, FunctionalState NewState); +ITStatus CRYP_GetITStatus(uint8_t CRYP_IT); +FlagStatus CRYP_GetFlagStatus(uint8_t CRYP_FLAG); + +/* High Level AES functions **************************************************/ +ErrorStatus CRYP_AES_ECB(uint8_t Mode, + uint8_t *Key, uint16_t Keysize, + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +ErrorStatus CRYP_AES_CBC(uint8_t Mode, + uint8_t InitVectors[16], + uint8_t *Key, uint16_t Keysize, + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +ErrorStatus CRYP_AES_CTR(uint8_t Mode, + uint8_t InitVectors[16], + uint8_t *Key, uint16_t Keysize, + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +/* High Level TDES functions **************************************************/ +ErrorStatus CRYP_TDES_ECB(uint8_t Mode, + uint8_t Key[24], + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +ErrorStatus CRYP_TDES_CBC(uint8_t Mode, + uint8_t Key[24], + uint8_t InitVectors[8], + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +/* High Level DES functions **************************************************/ +ErrorStatus CRYP_DES_ECB(uint8_t Mode, + uint8_t Key[8], + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +ErrorStatus CRYP_DES_CBC(uint8_t Mode, + uint8_t Key[8], + uint8_t InitVectors[8], + uint8_t *Input,uint32_t Ilength, + uint8_t *Output); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_CRYP_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dac.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dac.h new file mode 100644 index 00000000..f5e1c335 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dac.h @@ -0,0 +1,304 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dac.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the DAC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_DAC_H +#define __STM32F2xx_DAC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup DAC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief DAC Init structure definition + */ + +typedef struct +{ + uint32_t DAC_Trigger; /*!< Specifies the external trigger for the selected DAC channel. + This parameter can be a value of @ref DAC_trigger_selection */ + + uint32_t DAC_WaveGeneration; /*!< Specifies whether DAC channel noise waves or triangle waves + are generated, or whether no wave is generated. + This parameter can be a value of @ref DAC_wave_generation */ + + uint32_t DAC_LFSRUnmask_TriangleAmplitude; /*!< Specifies the LFSR mask for noise wave generation or + the maximum amplitude triangle generation for the DAC channel. + This parameter can be a value of @ref DAC_lfsrunmask_triangleamplitude */ + + uint32_t DAC_OutputBuffer; /*!< Specifies whether the DAC channel output buffer is enabled or disabled. + This parameter can be a value of @ref DAC_output_buffer */ +}DAC_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup DAC_Exported_Constants + * @{ + */ + +/** @defgroup DAC_trigger_selection + * @{ + */ + +#define DAC_Trigger_None ((uint32_t)0x00000000) /*!< Conversion is automatic once the DAC1_DHRxxxx register + has been loaded, and not by external trigger */ +#define DAC_Trigger_T2_TRGO ((uint32_t)0x00000024) /*!< TIM2 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T4_TRGO ((uint32_t)0x0000002C) /*!< TIM4 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T5_TRGO ((uint32_t)0x0000001C) /*!< TIM5 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T6_TRGO ((uint32_t)0x00000004) /*!< TIM6 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T7_TRGO ((uint32_t)0x00000014) /*!< TIM7 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T8_TRGO ((uint32_t)0x0000000C) /*!< TIM8 TRGO selected as external conversion trigger for DAC channel */ + +#define DAC_Trigger_Ext_IT9 ((uint32_t)0x00000034) /*!< EXTI Line9 event selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_Software ((uint32_t)0x0000003C) /*!< Conversion started by software trigger for DAC channel */ + +#define IS_DAC_TRIGGER(TRIGGER) (((TRIGGER) == DAC_Trigger_None) || \ + ((TRIGGER) == DAC_Trigger_T6_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T8_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T7_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T5_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T2_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T4_TRGO) || \ + ((TRIGGER) == DAC_Trigger_Ext_IT9) || \ + ((TRIGGER) == DAC_Trigger_Software)) + +/** + * @} + */ + +/** @defgroup DAC_wave_generation + * @{ + */ + +#define DAC_WaveGeneration_None ((uint32_t)0x00000000) +#define DAC_WaveGeneration_Noise ((uint32_t)0x00000040) +#define DAC_WaveGeneration_Triangle ((uint32_t)0x00000080) +#define IS_DAC_GENERATE_WAVE(WAVE) (((WAVE) == DAC_WaveGeneration_None) || \ + ((WAVE) == DAC_WaveGeneration_Noise) || \ + ((WAVE) == DAC_WaveGeneration_Triangle)) +/** + * @} + */ + +/** @defgroup DAC_lfsrunmask_triangleamplitude + * @{ + */ + +#define DAC_LFSRUnmask_Bit0 ((uint32_t)0x00000000) /*!< Unmask DAC channel LFSR bit0 for noise wave generation */ +#define DAC_LFSRUnmask_Bits1_0 ((uint32_t)0x00000100) /*!< Unmask DAC channel LFSR bit[1:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits2_0 ((uint32_t)0x00000200) /*!< Unmask DAC channel LFSR bit[2:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits3_0 ((uint32_t)0x00000300) /*!< Unmask DAC channel LFSR bit[3:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits4_0 ((uint32_t)0x00000400) /*!< Unmask DAC channel LFSR bit[4:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits5_0 ((uint32_t)0x00000500) /*!< Unmask DAC channel LFSR bit[5:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits6_0 ((uint32_t)0x00000600) /*!< Unmask DAC channel LFSR bit[6:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits7_0 ((uint32_t)0x00000700) /*!< Unmask DAC channel LFSR bit[7:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits8_0 ((uint32_t)0x00000800) /*!< Unmask DAC channel LFSR bit[8:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits9_0 ((uint32_t)0x00000900) /*!< Unmask DAC channel LFSR bit[9:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits10_0 ((uint32_t)0x00000A00) /*!< Unmask DAC channel LFSR bit[10:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits11_0 ((uint32_t)0x00000B00) /*!< Unmask DAC channel LFSR bit[11:0] for noise wave generation */ +#define DAC_TriangleAmplitude_1 ((uint32_t)0x00000000) /*!< Select max triangle amplitude of 1 */ +#define DAC_TriangleAmplitude_3 ((uint32_t)0x00000100) /*!< Select max triangle amplitude of 3 */ +#define DAC_TriangleAmplitude_7 ((uint32_t)0x00000200) /*!< Select max triangle amplitude of 7 */ +#define DAC_TriangleAmplitude_15 ((uint32_t)0x00000300) /*!< Select max triangle amplitude of 15 */ +#define DAC_TriangleAmplitude_31 ((uint32_t)0x00000400) /*!< Select max triangle amplitude of 31 */ +#define DAC_TriangleAmplitude_63 ((uint32_t)0x00000500) /*!< Select max triangle amplitude of 63 */ +#define DAC_TriangleAmplitude_127 ((uint32_t)0x00000600) /*!< Select max triangle amplitude of 127 */ +#define DAC_TriangleAmplitude_255 ((uint32_t)0x00000700) /*!< Select max triangle amplitude of 255 */ +#define DAC_TriangleAmplitude_511 ((uint32_t)0x00000800) /*!< Select max triangle amplitude of 511 */ +#define DAC_TriangleAmplitude_1023 ((uint32_t)0x00000900) /*!< Select max triangle amplitude of 1023 */ +#define DAC_TriangleAmplitude_2047 ((uint32_t)0x00000A00) /*!< Select max triangle amplitude of 2047 */ +#define DAC_TriangleAmplitude_4095 ((uint32_t)0x00000B00) /*!< Select max triangle amplitude of 4095 */ + +#define IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE(VALUE) (((VALUE) == DAC_LFSRUnmask_Bit0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits1_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits2_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits3_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits4_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits5_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits6_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits7_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits8_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits9_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits10_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits11_0) || \ + ((VALUE) == DAC_TriangleAmplitude_1) || \ + ((VALUE) == DAC_TriangleAmplitude_3) || \ + ((VALUE) == DAC_TriangleAmplitude_7) || \ + ((VALUE) == DAC_TriangleAmplitude_15) || \ + ((VALUE) == DAC_TriangleAmplitude_31) || \ + ((VALUE) == DAC_TriangleAmplitude_63) || \ + ((VALUE) == DAC_TriangleAmplitude_127) || \ + ((VALUE) == DAC_TriangleAmplitude_255) || \ + ((VALUE) == DAC_TriangleAmplitude_511) || \ + ((VALUE) == DAC_TriangleAmplitude_1023) || \ + ((VALUE) == DAC_TriangleAmplitude_2047) || \ + ((VALUE) == DAC_TriangleAmplitude_4095)) +/** + * @} + */ + +/** @defgroup DAC_output_buffer + * @{ + */ + +#define DAC_OutputBuffer_Enable ((uint32_t)0x00000000) +#define DAC_OutputBuffer_Disable ((uint32_t)0x00000002) +#define IS_DAC_OUTPUT_BUFFER_STATE(STATE) (((STATE) == DAC_OutputBuffer_Enable) || \ + ((STATE) == DAC_OutputBuffer_Disable)) +/** + * @} + */ + +/** @defgroup DAC_Channel_selection + * @{ + */ + +#define DAC_Channel_1 ((uint32_t)0x00000000) +#define DAC_Channel_2 ((uint32_t)0x00000010) +#define IS_DAC_CHANNEL(CHANNEL) (((CHANNEL) == DAC_Channel_1) || \ + ((CHANNEL) == DAC_Channel_2)) +/** + * @} + */ + +/** @defgroup DAC_data_alignement + * @{ + */ + +#define DAC_Align_12b_R ((uint32_t)0x00000000) +#define DAC_Align_12b_L ((uint32_t)0x00000004) +#define DAC_Align_8b_R ((uint32_t)0x00000008) +#define IS_DAC_ALIGN(ALIGN) (((ALIGN) == DAC_Align_12b_R) || \ + ((ALIGN) == DAC_Align_12b_L) || \ + ((ALIGN) == DAC_Align_8b_R)) +/** + * @} + */ + +/** @defgroup DAC_wave_generation + * @{ + */ + +#define DAC_Wave_Noise ((uint32_t)0x00000040) +#define DAC_Wave_Triangle ((uint32_t)0x00000080) +#define IS_DAC_WAVE(WAVE) (((WAVE) == DAC_Wave_Noise) || \ + ((WAVE) == DAC_Wave_Triangle)) +/** + * @} + */ + +/** @defgroup DAC_data + * @{ + */ + +#define IS_DAC_DATA(DATA) ((DATA) <= 0xFFF0) +/** + * @} + */ + +/** @defgroup DAC_interrupts_definition + * @{ + */ +#define DAC_IT_DMAUDR ((uint32_t)0x00002000) +#define IS_DAC_IT(IT) (((IT) == DAC_IT_DMAUDR)) + +/** + * @} + */ + +/** @defgroup DAC_flags_definition + * @{ + */ + +#define DAC_FLAG_DMAUDR ((uint32_t)0x00002000) +#define IS_DAC_FLAG(FLAG) (((FLAG) == DAC_FLAG_DMAUDR)) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the DAC configuration to the default reset state *****/ +void DAC_DeInit(void); + +/* DAC channels configuration: trigger, output buffer, data format functions */ +void DAC_Init(uint32_t DAC_Channel, DAC_InitTypeDef* DAC_InitStruct); +void DAC_StructInit(DAC_InitTypeDef* DAC_InitStruct); +void DAC_Cmd(uint32_t DAC_Channel, FunctionalState NewState); +void DAC_SoftwareTriggerCmd(uint32_t DAC_Channel, FunctionalState NewState); +void DAC_DualSoftwareTriggerCmd(FunctionalState NewState); +void DAC_WaveGenerationCmd(uint32_t DAC_Channel, uint32_t DAC_Wave, FunctionalState NewState); +void DAC_SetChannel1Data(uint32_t DAC_Align, uint16_t Data); +void DAC_SetChannel2Data(uint32_t DAC_Align, uint16_t Data); +void DAC_SetDualChannelData(uint32_t DAC_Align, uint16_t Data2, uint16_t Data1); +uint16_t DAC_GetDataOutputValue(uint32_t DAC_Channel); + +/* DMA management functions ***************************************************/ +void DAC_DMACmd(uint32_t DAC_Channel, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void DAC_ITConfig(uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState); +FlagStatus DAC_GetFlagStatus(uint32_t DAC_Channel, uint32_t DAC_FLAG); +void DAC_ClearFlag(uint32_t DAC_Channel, uint32_t DAC_FLAG); +ITStatus DAC_GetITStatus(uint32_t DAC_Channel, uint32_t DAC_IT); +void DAC_ClearITPendingBit(uint32_t DAC_Channel, uint32_t DAC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_DAC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dbgmcu.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dbgmcu.h new file mode 100644 index 00000000..2a5baa58 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dbgmcu.h @@ -0,0 +1,109 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dbgmcu.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the DBGMCU firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_DBGMCU_H +#define __STM32F2xx_DBGMCU_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup DBGMCU + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup DBGMCU_Exported_Constants + * @{ + */ +#define DBGMCU_SLEEP ((uint32_t)0x00000001) +#define DBGMCU_STOP ((uint32_t)0x00000002) +#define DBGMCU_STANDBY ((uint32_t)0x00000004) +#define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFF8) == 0x00) && ((PERIPH) != 0x00)) + +#define DBGMCU_TIM2_STOP ((uint32_t)0x00000001) +#define DBGMCU_TIM3_STOP ((uint32_t)0x00000002) +#define DBGMCU_TIM4_STOP ((uint32_t)0x00000004) +#define DBGMCU_TIM5_STOP ((uint32_t)0x00000008) +#define DBGMCU_TIM6_STOP ((uint32_t)0x00000010) +#define DBGMCU_TIM7_STOP ((uint32_t)0x00000020) +#define DBGMCU_TIM12_STOP ((uint32_t)0x00000040) +#define DBGMCU_TIM13_STOP ((uint32_t)0x00000080) +#define DBGMCU_TIM14_STOP ((uint32_t)0x00000100) +#define DBGMCU_RTC_STOP ((uint32_t)0x00000400) +#define DBGMCU_WWDG_STOP ((uint32_t)0x00000800) +#define DBGMCU_IWDG_STOP ((uint32_t)0x00001000) +#define DBGMCU_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00200000) +#define DBGMCU_I2C2_SMBUS_TIMEOUT ((uint32_t)0x00400000) +#define DBGMCU_I2C3_SMBUS_TIMEOUT ((uint32_t)0x00800000) +#define DBGMCU_CAN1_STOP ((uint32_t)0x02000000) +#define DBGMCU_CAN2_STOP ((uint32_t)0x04000000) +#define IS_DBGMCU_APB1PERIPH(PERIPH) ((((PERIPH) & 0xF91FE200) == 0x00) && ((PERIPH) != 0x00)) + +#define DBGMCU_TIM1_STOP ((uint32_t)0x00000001) +#define DBGMCU_TIM8_STOP ((uint32_t)0x00000002) +#define DBGMCU_TIM9_STOP ((uint32_t)0x00010000) +#define DBGMCU_TIM10_STOP ((uint32_t)0x00020000) +#define DBGMCU_TIM11_STOP ((uint32_t)0x00040000) +#define IS_DBGMCU_APB2PERIPH(PERIPH) ((((PERIPH) & 0xFFF8FFFC) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ +uint32_t DBGMCU_GetREVID(void); +uint32_t DBGMCU_GetDEVID(void); +void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState); +void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState); +void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_DBGMCU_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dcmi.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dcmi.h new file mode 100644 index 00000000..eb321267 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dcmi.h @@ -0,0 +1,312 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dcmi.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the DCMI firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_DCMI_H +#define __STM32F2xx_DCMI_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup DCMI + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/** + * @brief DCMI Init structure definition + */ +typedef struct +{ + uint16_t DCMI_CaptureMode; /*!< Specifies the Capture Mode: Continuous or Snapshot. + This parameter can be a value of @ref DCMI_Capture_Mode */ + + uint16_t DCMI_SynchroMode; /*!< Specifies the Synchronization Mode: Hardware or Embedded. + This parameter can be a value of @ref DCMI_Synchronization_Mode */ + + uint16_t DCMI_PCKPolarity; /*!< Specifies the Pixel clock polarity: Falling or Rising. + This parameter can be a value of @ref DCMI_PIXCK_Polarity */ + + uint16_t DCMI_VSPolarity; /*!< Specifies the Vertical synchronization polarity: High or Low. + This parameter can be a value of @ref DCMI_VSYNC_Polarity */ + + uint16_t DCMI_HSPolarity; /*!< Specifies the Horizontal synchronization polarity: High or Low. + This parameter can be a value of @ref DCMI_HSYNC_Polarity */ + + uint16_t DCMI_CaptureRate; /*!< Specifies the frequency of frame capture: All, 1/2 or 1/4. + This parameter can be a value of @ref DCMI_Capture_Rate */ + + uint16_t DCMI_ExtendedDataMode; /*!< Specifies the data width: 8-bit, 10-bit, 12-bit or 14-bit. + This parameter can be a value of @ref DCMI_Extended_Data_Mode */ +} DCMI_InitTypeDef; + +/** + * @brief DCMI CROP Init structure definition + */ +typedef struct +{ + uint16_t DCMI_VerticalStartLine; /*!< Specifies the Vertical start line count from which the image capture + will start. This parameter can be a value between 0x00 and 0x1FFF */ + + uint16_t DCMI_HorizontalOffsetCount; /*!< Specifies the number of pixel clocks to count before starting a capture. + This parameter can be a value between 0x00 and 0x3FFF */ + + uint16_t DCMI_VerticalLineCount; /*!< Specifies the number of lines to be captured from the starting point. + This parameter can be a value between 0x00 and 0x3FFF */ + + uint16_t DCMI_CaptureCount; /*!< Specifies the number of pixel clocks to be captured from the starting + point on the same line. + This parameter can be a value between 0x00 and 0x3FFF */ +} DCMI_CROPInitTypeDef; + +/** + * @brief DCMI Embedded Synchronisation CODE Init structure definition + */ +typedef struct +{ + uint8_t DCMI_FrameStartCode; /*!< Specifies the code of the frame start delimiter. */ + uint8_t DCMI_LineStartCode; /*!< Specifies the code of the line start delimiter. */ + uint8_t DCMI_LineEndCode; /*!< Specifies the code of the line end delimiter. */ + uint8_t DCMI_FrameEndCode; /*!< Specifies the code of the frame end delimiter. */ +} DCMI_CodesInitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup DCMI_Exported_Constants + * @{ + */ + +/** @defgroup DCMI_Capture_Mode + * @{ + */ +#define DCMI_CaptureMode_Continuous ((uint16_t)0x0000) /*!< The received data are transferred continuously + into the destination memory through the DMA */ +#define DCMI_CaptureMode_SnapShot ((uint16_t)0x0002) /*!< Once activated, the interface waits for the start of + frame and then transfers a single frame through the DMA */ +#define IS_DCMI_CAPTURE_MODE(MODE)(((MODE) == DCMI_CaptureMode_Continuous) || \ + ((MODE) == DCMI_CaptureMode_SnapShot)) +/** + * @} + */ + + +/** @defgroup DCMI_Synchronization_Mode + * @{ + */ +#define DCMI_SynchroMode_Hardware ((uint16_t)0x0000) /*!< Hardware synchronization data capture (frame/line start/stop) + is synchronized with the HSYNC/VSYNC signals */ +#define DCMI_SynchroMode_Embedded ((uint16_t)0x0010) /*!< Embedded synchronization data capture is synchronized with + synchronization codes embedded in the data flow */ +#define IS_DCMI_SYNCHRO(MODE)(((MODE) == DCMI_SynchroMode_Hardware) || \ + ((MODE) == DCMI_SynchroMode_Embedded)) +/** + * @} + */ + + +/** @defgroup DCMI_PIXCK_Polarity + * @{ + */ +#define DCMI_PCKPolarity_Falling ((uint16_t)0x0000) /*!< Pixel clock active on Falling edge */ +#define DCMI_PCKPolarity_Rising ((uint16_t)0x0020) /*!< Pixel clock active on Rising edge */ +#define IS_DCMI_PCKPOLARITY(POLARITY)(((POLARITY) == DCMI_PCKPolarity_Falling) || \ + ((POLARITY) == DCMI_PCKPolarity_Rising)) +/** + * @} + */ + + +/** @defgroup DCMI_VSYNC_Polarity + * @{ + */ +#define DCMI_VSPolarity_Low ((uint16_t)0x0000) /*!< Vertical synchronization active Low */ +#define DCMI_VSPolarity_High ((uint16_t)0x0080) /*!< Vertical synchronization active High */ +#define IS_DCMI_VSPOLARITY(POLARITY)(((POLARITY) == DCMI_VSPolarity_Low) || \ + ((POLARITY) == DCMI_VSPolarity_High)) +/** + * @} + */ + + +/** @defgroup DCMI_HSYNC_Polarity + * @{ + */ +#define DCMI_HSPolarity_Low ((uint16_t)0x0000) /*!< Horizontal synchronization active Low */ +#define DCMI_HSPolarity_High ((uint16_t)0x0040) /*!< Horizontal synchronization active High */ +#define IS_DCMI_HSPOLARITY(POLARITY)(((POLARITY) == DCMI_HSPolarity_Low) || \ + ((POLARITY) == DCMI_HSPolarity_High)) +/** + * @} + */ + + +/** @defgroup DCMI_Capture_Rate + * @{ + */ +#define DCMI_CaptureRate_All_Frame ((uint16_t)0x0000) /*!< All frames are captured */ +#define DCMI_CaptureRate_1of2_Frame ((uint16_t)0x0100) /*!< Every alternate frame captured */ +#define DCMI_CaptureRate_1of4_Frame ((uint16_t)0x0200) /*!< One frame in 4 frames captured */ +#define IS_DCMI_CAPTURE_RATE(RATE) (((RATE) == DCMI_CaptureRate_All_Frame) || \ + ((RATE) == DCMI_CaptureRate_1of2_Frame) ||\ + ((RATE) == DCMI_CaptureRate_1of4_Frame)) +/** + * @} + */ + + +/** @defgroup DCMI_Extended_Data_Mode + * @{ + */ +#define DCMI_ExtendedDataMode_8b ((uint16_t)0x0000) /*!< Interface captures 8-bit data on every pixel clock */ +#define DCMI_ExtendedDataMode_10b ((uint16_t)0x0400) /*!< Interface captures 10-bit data on every pixel clock */ +#define DCMI_ExtendedDataMode_12b ((uint16_t)0x0800) /*!< Interface captures 12-bit data on every pixel clock */ +#define DCMI_ExtendedDataMode_14b ((uint16_t)0x0C00) /*!< Interface captures 14-bit data on every pixel clock */ +#define IS_DCMI_EXTENDED_DATA(DATA)(((DATA) == DCMI_ExtendedDataMode_8b) || \ + ((DATA) == DCMI_ExtendedDataMode_10b) ||\ + ((DATA) == DCMI_ExtendedDataMode_12b) ||\ + ((DATA) == DCMI_ExtendedDataMode_14b)) +/** + * @} + */ + + +/** @defgroup DCMI_interrupt_sources + * @{ + */ +#define DCMI_IT_FRAME ((uint16_t)0x0001) +#define DCMI_IT_OVF ((uint16_t)0x0002) +#define DCMI_IT_ERR ((uint16_t)0x0004) +#define DCMI_IT_VSYNC ((uint16_t)0x0008) +#define DCMI_IT_LINE ((uint16_t)0x0010) +#define IS_DCMI_CONFIG_IT(IT) ((((IT) & (uint16_t)0xFFE0) == 0x0000) && ((IT) != 0x0000)) +#define IS_DCMI_GET_IT(IT) (((IT) == DCMI_IT_FRAME) || \ + ((IT) == DCMI_IT_OVF) || \ + ((IT) == DCMI_IT_ERR) || \ + ((IT) == DCMI_IT_VSYNC) || \ + ((IT) == DCMI_IT_LINE)) +/** + * @} + */ + + +/** @defgroup DCMI_Flags + * @{ + */ +/** + * @brief DCMI SR register + */ +#define DCMI_FLAG_HSYNC ((uint16_t)0x2001) +#define DCMI_FLAG_VSYNC ((uint16_t)0x2002) +#define DCMI_FLAG_FNE ((uint16_t)0x2004) +/** + * @brief DCMI RISR register + */ +#define DCMI_FLAG_FRAMERI ((uint16_t)0x0001) +#define DCMI_FLAG_OVFRI ((uint16_t)0x0002) +#define DCMI_FLAG_ERRRI ((uint16_t)0x0004) +#define DCMI_FLAG_VSYNCRI ((uint16_t)0x0008) +#define DCMI_FLAG_LINERI ((uint16_t)0x0010) +/** + * @brief DCMI MISR register + */ +#define DCMI_FLAG_FRAMEMI ((uint16_t)0x1001) +#define DCMI_FLAG_OVFMI ((uint16_t)0x1002) +#define DCMI_FLAG_ERRMI ((uint16_t)0x1004) +#define DCMI_FLAG_VSYNCMI ((uint16_t)0x1008) +#define DCMI_FLAG_LINEMI ((uint16_t)0x1010) +#define IS_DCMI_GET_FLAG(FLAG) (((FLAG) == DCMI_FLAG_HSYNC) || \ + ((FLAG) == DCMI_FLAG_VSYNC) || \ + ((FLAG) == DCMI_FLAG_FNE) || \ + ((FLAG) == DCMI_FLAG_FRAMERI) || \ + ((FLAG) == DCMI_FLAG_OVFRI) || \ + ((FLAG) == DCMI_FLAG_ERRRI) || \ + ((FLAG) == DCMI_FLAG_VSYNCRI) || \ + ((FLAG) == DCMI_FLAG_LINERI) || \ + ((FLAG) == DCMI_FLAG_FRAMEMI) || \ + ((FLAG) == DCMI_FLAG_OVFMI) || \ + ((FLAG) == DCMI_FLAG_ERRMI) || \ + ((FLAG) == DCMI_FLAG_VSYNCMI) || \ + ((FLAG) == DCMI_FLAG_LINEMI)) + +#define IS_DCMI_CLEAR_FLAG(FLAG) ((((FLAG) & (uint16_t)0xFFE0) == 0x0000) && ((FLAG) != 0x0000)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the DCMI configuration to the default reset state ****/ +void DCMI_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +void DCMI_Init(DCMI_InitTypeDef* DCMI_InitStruct); +void DCMI_StructInit(DCMI_InitTypeDef* DCMI_InitStruct); +void DCMI_CROPConfig(DCMI_CROPInitTypeDef* DCMI_CROPInitStruct); +void DCMI_CROPCmd(FunctionalState NewState); +void DCMI_SetEmbeddedSynchroCodes(DCMI_CodesInitTypeDef* DCMI_CodesInitStruct); +void DCMI_JPEGCmd(FunctionalState NewState); + +/* Image capture functions ****************************************************/ +void DCMI_Cmd(FunctionalState NewState); +void DCMI_CaptureCmd(FunctionalState NewState); +uint32_t DCMI_ReadData(void); + +/* Interrupts and flags management functions **********************************/ +void DCMI_ITConfig(uint16_t DCMI_IT, FunctionalState NewState); +FlagStatus DCMI_GetFlagStatus(uint16_t DCMI_FLAG); +void DCMI_ClearFlag(uint16_t DCMI_FLAG); +ITStatus DCMI_GetITStatus(uint16_t DCMI_IT); +void DCMI_ClearITPendingBit(uint16_t DCMI_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_DCMI_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dma.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dma.h new file mode 100644 index 00000000..94c7dff4 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_dma.h @@ -0,0 +1,609 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dma.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the DMA firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_DMA_H +#define __STM32F2xx_DMA_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup DMA + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief DMA Init structure definition + */ + +typedef struct +{ + uint32_t DMA_Channel; /*!< Specifies the channel used for the specified stream. + This parameter can be a value of @ref DMA_channel */ + + uint32_t DMA_PeripheralBaseAddr; /*!< Specifies the peripheral base address for DMAy Streamx. */ + + uint32_t DMA_Memory0BaseAddr; /*!< Specifies the memory 0 base address for DMAy Streamx. + This memory is the default memory used when double buffer mode is + not enabled. */ + + uint32_t DMA_DIR; /*!< Specifies if the data will be transferred from memory to peripheral, + from memory to memory or from peripheral to memory. + This parameter can be a value of @ref DMA_data_transfer_direction */ + + uint32_t DMA_BufferSize; /*!< Specifies the buffer size, in data unit, of the specified Stream. + The data unit is equal to the configuration set in DMA_PeripheralDataSize + or DMA_MemoryDataSize members depending in the transfer direction. */ + + uint32_t DMA_PeripheralInc; /*!< Specifies whether the Peripheral address register should be incremented or not. + This parameter can be a value of @ref DMA_peripheral_incremented_mode */ + + uint32_t DMA_MemoryInc; /*!< Specifies whether the memory address register should be incremented or not. + This parameter can be a value of @ref DMA_memory_incremented_mode */ + + uint32_t DMA_PeripheralDataSize; /*!< Specifies the Peripheral data width. + This parameter can be a value of @ref DMA_peripheral_data_size */ + + uint32_t DMA_MemoryDataSize; /*!< Specifies the Memory data width. + This parameter can be a value of @ref DMA_memory_data_size */ + + uint32_t DMA_Mode; /*!< Specifies the operation mode of the DMAy Streamx. + This parameter can be a value of @ref DMA_circular_normal_mode + @note The circular buffer mode cannot be used if the memory-to-memory + data transfer is configured on the selected Stream */ + + uint32_t DMA_Priority; /*!< Specifies the software priority for the DMAy Streamx. + This parameter can be a value of @ref DMA_priority_level */ + + uint32_t DMA_FIFOMode; /*!< Specifies if the FIFO mode or Direct mode will be used for the specified Stream. + This parameter can be a value of @ref DMA_fifo_direct_mode + @note The Direct mode (FIFO mode disabled) cannot be used if the + memory-to-memory data transfer is configured on the selected Stream */ + + uint32_t DMA_FIFOThreshold; /*!< Specifies the FIFO threshold level. + This parameter can be a value of @ref DMA_fifo_threshold_level */ + + uint32_t DMA_MemoryBurst; /*!< Specifies the Burst transfer configuration for the memory transfers. + It specifies the amount of data to be transferred in a single non interruptable + transaction. This parameter can be a value of @ref DMA_memory_burst + @note The burst mode is possible only if the address Increment mode is enabled. */ + + uint32_t DMA_PeripheralBurst; /*!< Specifies the Burst transfer configuration for the peripheral transfers. + It specifies the amount of data to be transferred in a single non interruptable + transaction. This parameter can be a value of @ref DMA_peripheral_burst + @note The burst mode is possible only if the address Increment mode is enabled. */ +}DMA_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup DMA_Exported_Constants + * @{ + */ + +#define IS_DMA_ALL_PERIPH(PERIPH) (((PERIPH) == DMA1_Stream0) || \ + ((PERIPH) == DMA1_Stream1) || \ + ((PERIPH) == DMA1_Stream2) || \ + ((PERIPH) == DMA1_Stream3) || \ + ((PERIPH) == DMA1_Stream4) || \ + ((PERIPH) == DMA1_Stream5) || \ + ((PERIPH) == DMA1_Stream6) || \ + ((PERIPH) == DMA1_Stream7) || \ + ((PERIPH) == DMA2_Stream0) || \ + ((PERIPH) == DMA2_Stream1) || \ + ((PERIPH) == DMA2_Stream2) || \ + ((PERIPH) == DMA2_Stream3) || \ + ((PERIPH) == DMA2_Stream4) || \ + ((PERIPH) == DMA2_Stream5) || \ + ((PERIPH) == DMA2_Stream6) || \ + ((PERIPH) == DMA2_Stream7)) + +#define IS_DMA_ALL_CONTROLLER(CONTROLLER) (((CONTROLLER) == DMA1) || \ + ((CONTROLLER) == DMA2)) + +/** @defgroup DMA_channel + * @{ + */ +#define DMA_Channel_0 ((uint32_t)0x00000000) +#define DMA_Channel_1 ((uint32_t)0x02000000) +#define DMA_Channel_2 ((uint32_t)0x04000000) +#define DMA_Channel_3 ((uint32_t)0x06000000) +#define DMA_Channel_4 ((uint32_t)0x08000000) +#define DMA_Channel_5 ((uint32_t)0x0A000000) +#define DMA_Channel_6 ((uint32_t)0x0C000000) +#define DMA_Channel_7 ((uint32_t)0x0E000000) + +#define IS_DMA_CHANNEL(CHANNEL) (((CHANNEL) == DMA_Channel_0) || \ + ((CHANNEL) == DMA_Channel_1) || \ + ((CHANNEL) == DMA_Channel_2) || \ + ((CHANNEL) == DMA_Channel_3) || \ + ((CHANNEL) == DMA_Channel_4) || \ + ((CHANNEL) == DMA_Channel_5) || \ + ((CHANNEL) == DMA_Channel_6) || \ + ((CHANNEL) == DMA_Channel_7)) +/** + * @} + */ + + +/** @defgroup DMA_data_transfer_direction + * @{ + */ +#define DMA_DIR_PeripheralToMemory ((uint32_t)0x00000000) +#define DMA_DIR_MemoryToPeripheral ((uint32_t)0x00000040) +#define DMA_DIR_MemoryToMemory ((uint32_t)0x00000080) + +#define IS_DMA_DIRECTION(DIRECTION) (((DIRECTION) == DMA_DIR_PeripheralToMemory ) || \ + ((DIRECTION) == DMA_DIR_MemoryToPeripheral) || \ + ((DIRECTION) == DMA_DIR_MemoryToMemory)) +/** + * @} + */ + + +/** @defgroup DMA_data_buffer_size + * @{ + */ +#define IS_DMA_BUFFER_SIZE(SIZE) (((SIZE) >= 0x1) && ((SIZE) < 0x10000)) +/** + * @} + */ + + +/** @defgroup DMA_peripheral_incremented_mode + * @{ + */ +#define DMA_PeripheralInc_Enable ((uint32_t)0x00000200) +#define DMA_PeripheralInc_Disable ((uint32_t)0x00000000) + +#define IS_DMA_PERIPHERAL_INC_STATE(STATE) (((STATE) == DMA_PeripheralInc_Enable) || \ + ((STATE) == DMA_PeripheralInc_Disable)) +/** + * @} + */ + + +/** @defgroup DMA_memory_incremented_mode + * @{ + */ +#define DMA_MemoryInc_Enable ((uint32_t)0x00000400) +#define DMA_MemoryInc_Disable ((uint32_t)0x00000000) + +#define IS_DMA_MEMORY_INC_STATE(STATE) (((STATE) == DMA_MemoryInc_Enable) || \ + ((STATE) == DMA_MemoryInc_Disable)) +/** + * @} + */ + + +/** @defgroup DMA_peripheral_data_size + * @{ + */ +#define DMA_PeripheralDataSize_Byte ((uint32_t)0x00000000) +#define DMA_PeripheralDataSize_HalfWord ((uint32_t)0x00000800) +#define DMA_PeripheralDataSize_Word ((uint32_t)0x00001000) + +#define IS_DMA_PERIPHERAL_DATA_SIZE(SIZE) (((SIZE) == DMA_PeripheralDataSize_Byte) || \ + ((SIZE) == DMA_PeripheralDataSize_HalfWord) || \ + ((SIZE) == DMA_PeripheralDataSize_Word)) +/** + * @} + */ + + +/** @defgroup DMA_memory_data_size + * @{ + */ +#define DMA_MemoryDataSize_Byte ((uint32_t)0x00000000) +#define DMA_MemoryDataSize_HalfWord ((uint32_t)0x00002000) +#define DMA_MemoryDataSize_Word ((uint32_t)0x00004000) + +#define IS_DMA_MEMORY_DATA_SIZE(SIZE) (((SIZE) == DMA_MemoryDataSize_Byte) || \ + ((SIZE) == DMA_MemoryDataSize_HalfWord) || \ + ((SIZE) == DMA_MemoryDataSize_Word )) +/** + * @} + */ + + +/** @defgroup DMA_circular_normal_mode + * @{ + */ +#define DMA_Mode_Normal ((uint32_t)0x00000000) +#define DMA_Mode_Circular ((uint32_t)0x00000100) + +#define IS_DMA_MODE(MODE) (((MODE) == DMA_Mode_Normal ) || \ + ((MODE) == DMA_Mode_Circular)) +/** + * @} + */ + + +/** @defgroup DMA_priority_level + * @{ + */ +#define DMA_Priority_Low ((uint32_t)0x00000000) +#define DMA_Priority_Medium ((uint32_t)0x00010000) +#define DMA_Priority_High ((uint32_t)0x00020000) +#define DMA_Priority_VeryHigh ((uint32_t)0x00030000) + +#define IS_DMA_PRIORITY(PRIORITY) (((PRIORITY) == DMA_Priority_Low ) || \ + ((PRIORITY) == DMA_Priority_Medium) || \ + ((PRIORITY) == DMA_Priority_High) || \ + ((PRIORITY) == DMA_Priority_VeryHigh)) +/** + * @} + */ + + +/** @defgroup DMA_fifo_direct_mode + * @{ + */ +#define DMA_FIFOMode_Disable ((uint32_t)0x00000000) +#define DMA_FIFOMode_Enable ((uint32_t)0x00000004) + +#define IS_DMA_FIFO_MODE_STATE(STATE) (((STATE) == DMA_FIFOMode_Disable ) || \ + ((STATE) == DMA_FIFOMode_Enable)) +/** + * @} + */ + + +/** @defgroup DMA_fifo_threshold_level + * @{ + */ +#define DMA_FIFOThreshold_1QuarterFull ((uint32_t)0x00000000) +#define DMA_FIFOThreshold_HalfFull ((uint32_t)0x00000001) +#define DMA_FIFOThreshold_3QuartersFull ((uint32_t)0x00000002) +#define DMA_FIFOThreshold_Full ((uint32_t)0x00000003) + +#define IS_DMA_FIFO_THRESHOLD(THRESHOLD) (((THRESHOLD) == DMA_FIFOThreshold_1QuarterFull ) || \ + ((THRESHOLD) == DMA_FIFOThreshold_HalfFull) || \ + ((THRESHOLD) == DMA_FIFOThreshold_3QuartersFull) || \ + ((THRESHOLD) == DMA_FIFOThreshold_Full)) +/** + * @} + */ + + +/** @defgroup DMA_memory_burst + * @{ + */ +#define DMA_MemoryBurst_Single ((uint32_t)0x00000000) +#define DMA_MemoryBurst_INC4 ((uint32_t)0x00800000) +#define DMA_MemoryBurst_INC8 ((uint32_t)0x01000000) +#define DMA_MemoryBurst_INC16 ((uint32_t)0x01800000) + +#define IS_DMA_MEMORY_BURST(BURST) (((BURST) == DMA_MemoryBurst_Single) || \ + ((BURST) == DMA_MemoryBurst_INC4) || \ + ((BURST) == DMA_MemoryBurst_INC8) || \ + ((BURST) == DMA_MemoryBurst_INC16)) +/** + * @} + */ + + +/** @defgroup DMA_peripheral_burst + * @{ + */ +#define DMA_PeripheralBurst_Single ((uint32_t)0x00000000) +#define DMA_PeripheralBurst_INC4 ((uint32_t)0x00200000) +#define DMA_PeripheralBurst_INC8 ((uint32_t)0x00400000) +#define DMA_PeripheralBurst_INC16 ((uint32_t)0x00600000) + +#define IS_DMA_PERIPHERAL_BURST(BURST) (((BURST) == DMA_PeripheralBurst_Single) || \ + ((BURST) == DMA_PeripheralBurst_INC4) || \ + ((BURST) == DMA_PeripheralBurst_INC8) || \ + ((BURST) == DMA_PeripheralBurst_INC16)) +/** + * @} + */ + + +/** @defgroup DMA_fifo_status_level + * @{ + */ +#define DMA_FIFOStatus_Less1QuarterFull ((uint32_t)0x00000000 << 3) +#define DMA_FIFOStatus_1QuarterFull ((uint32_t)0x00000001 << 3) +#define DMA_FIFOStatus_HalfFull ((uint32_t)0x00000002 << 3) +#define DMA_FIFOStatus_3QuartersFull ((uint32_t)0x00000003 << 3) +#define DMA_FIFOStatus_Empty ((uint32_t)0x00000004 << 3) +#define DMA_FIFOStatus_Full ((uint32_t)0x00000005 << 3) + +#define IS_DMA_FIFO_STATUS(STATUS) (((STATUS) == DMA_FIFOStatus_Less1QuarterFull ) || \ + ((STATUS) == DMA_FIFOStatus_HalfFull) || \ + ((STATUS) == DMA_FIFOStatus_1QuarterFull) || \ + ((STATUS) == DMA_FIFOStatus_3QuartersFull) || \ + ((STATUS) == DMA_FIFOStatus_Full) || \ + ((STATUS) == DMA_FIFOStatus_Empty)) +/** + * @} + */ + +/** @defgroup DMA_flags_definition + * @{ + */ +#define DMA_FLAG_FEIF0 ((uint32_t)0x10800001) +#define DMA_FLAG_DMEIF0 ((uint32_t)0x10800004) +#define DMA_FLAG_TEIF0 ((uint32_t)0x10000008) +#define DMA_FLAG_HTIF0 ((uint32_t)0x10000010) +#define DMA_FLAG_TCIF0 ((uint32_t)0x10000020) +#define DMA_FLAG_FEIF1 ((uint32_t)0x10000040) +#define DMA_FLAG_DMEIF1 ((uint32_t)0x10000100) +#define DMA_FLAG_TEIF1 ((uint32_t)0x10000200) +#define DMA_FLAG_HTIF1 ((uint32_t)0x10000400) +#define DMA_FLAG_TCIF1 ((uint32_t)0x10000800) +#define DMA_FLAG_FEIF2 ((uint32_t)0x10010000) +#define DMA_FLAG_DMEIF2 ((uint32_t)0x10040000) +#define DMA_FLAG_TEIF2 ((uint32_t)0x10080000) +#define DMA_FLAG_HTIF2 ((uint32_t)0x10100000) +#define DMA_FLAG_TCIF2 ((uint32_t)0x10200000) +#define DMA_FLAG_FEIF3 ((uint32_t)0x10400000) +#define DMA_FLAG_DMEIF3 ((uint32_t)0x11000000) +#define DMA_FLAG_TEIF3 ((uint32_t)0x12000000) +#define DMA_FLAG_HTIF3 ((uint32_t)0x14000000) +#define DMA_FLAG_TCIF3 ((uint32_t)0x18000000) +#define DMA_FLAG_FEIF4 ((uint32_t)0x20000001) +#define DMA_FLAG_DMEIF4 ((uint32_t)0x20000004) +#define DMA_FLAG_TEIF4 ((uint32_t)0x20000008) +#define DMA_FLAG_HTIF4 ((uint32_t)0x20000010) +#define DMA_FLAG_TCIF4 ((uint32_t)0x20000020) +#define DMA_FLAG_FEIF5 ((uint32_t)0x20000040) +#define DMA_FLAG_DMEIF5 ((uint32_t)0x20000100) +#define DMA_FLAG_TEIF5 ((uint32_t)0x20000200) +#define DMA_FLAG_HTIF5 ((uint32_t)0x20000400) +#define DMA_FLAG_TCIF5 ((uint32_t)0x20000800) +#define DMA_FLAG_FEIF6 ((uint32_t)0x20010000) +#define DMA_FLAG_DMEIF6 ((uint32_t)0x20040000) +#define DMA_FLAG_TEIF6 ((uint32_t)0x20080000) +#define DMA_FLAG_HTIF6 ((uint32_t)0x20100000) +#define DMA_FLAG_TCIF6 ((uint32_t)0x20200000) +#define DMA_FLAG_FEIF7 ((uint32_t)0x20400000) +#define DMA_FLAG_DMEIF7 ((uint32_t)0x21000000) +#define DMA_FLAG_TEIF7 ((uint32_t)0x22000000) +#define DMA_FLAG_HTIF7 ((uint32_t)0x24000000) +#define DMA_FLAG_TCIF7 ((uint32_t)0x28000000) + +#define IS_DMA_CLEAR_FLAG(FLAG) ((((FLAG) & 0x30000000) != 0x30000000) && (((FLAG) & 0x30000000) != 0) && \ + (((FLAG) & 0xC082F082) == 0x00) && ((FLAG) != 0x00)) + +#define IS_DMA_GET_FLAG(FLAG) (((FLAG) == DMA_FLAG_TCIF0) || ((FLAG) == DMA_FLAG_HTIF0) || \ + ((FLAG) == DMA_FLAG_TEIF0) || ((FLAG) == DMA_FLAG_DMEIF0) || \ + ((FLAG) == DMA_FLAG_FEIF0) || ((FLAG) == DMA_FLAG_TCIF1) || \ + ((FLAG) == DMA_FLAG_HTIF1) || ((FLAG) == DMA_FLAG_TEIF1) || \ + ((FLAG) == DMA_FLAG_DMEIF1) || ((FLAG) == DMA_FLAG_FEIF1) || \ + ((FLAG) == DMA_FLAG_TCIF2) || ((FLAG) == DMA_FLAG_HTIF2) || \ + ((FLAG) == DMA_FLAG_TEIF2) || ((FLAG) == DMA_FLAG_DMEIF2) || \ + ((FLAG) == DMA_FLAG_FEIF2) || ((FLAG) == DMA_FLAG_TCIF3) || \ + ((FLAG) == DMA_FLAG_HTIF3) || ((FLAG) == DMA_FLAG_TEIF3) || \ + ((FLAG) == DMA_FLAG_DMEIF3) || ((FLAG) == DMA_FLAG_FEIF3) || \ + ((FLAG) == DMA_FLAG_TCIF4) || ((FLAG) == DMA_FLAG_HTIF4) || \ + ((FLAG) == DMA_FLAG_TEIF4) || ((FLAG) == DMA_FLAG_DMEIF4) || \ + ((FLAG) == DMA_FLAG_FEIF4) || ((FLAG) == DMA_FLAG_TCIF5) || \ + ((FLAG) == DMA_FLAG_HTIF5) || ((FLAG) == DMA_FLAG_TEIF5) || \ + ((FLAG) == DMA_FLAG_DMEIF5) || ((FLAG) == DMA_FLAG_FEIF5) || \ + ((FLAG) == DMA_FLAG_TCIF6) || ((FLAG) == DMA_FLAG_HTIF6) || \ + ((FLAG) == DMA_FLAG_TEIF6) || ((FLAG) == DMA_FLAG_DMEIF6) || \ + ((FLAG) == DMA_FLAG_FEIF6) || ((FLAG) == DMA_FLAG_TCIF7) || \ + ((FLAG) == DMA_FLAG_HTIF7) || ((FLAG) == DMA_FLAG_TEIF7) || \ + ((FLAG) == DMA_FLAG_DMEIF7) || ((FLAG) == DMA_FLAG_FEIF7)) +/** + * @} + */ + + +/** @defgroup DMA_interrupt_enable_definitions + * @{ + */ +#define DMA_IT_TC ((uint32_t)0x00000010) +#define DMA_IT_HT ((uint32_t)0x00000008) +#define DMA_IT_TE ((uint32_t)0x00000004) +#define DMA_IT_DME ((uint32_t)0x00000002) +#define DMA_IT_FE ((uint32_t)0x00000080) + +#define IS_DMA_CONFIG_IT(IT) ((((IT) & 0xFFFFFF61) == 0x00) && ((IT) != 0x00)) +/** + * @} + */ + + +/** @defgroup DMA_interrupts_definitions + * @{ + */ +#define DMA_IT_FEIF0 ((uint32_t)0x90000001) +#define DMA_IT_DMEIF0 ((uint32_t)0x10001004) +#define DMA_IT_TEIF0 ((uint32_t)0x10002008) +#define DMA_IT_HTIF0 ((uint32_t)0x10004010) +#define DMA_IT_TCIF0 ((uint32_t)0x10008020) +#define DMA_IT_FEIF1 ((uint32_t)0x90000040) +#define DMA_IT_DMEIF1 ((uint32_t)0x10001100) +#define DMA_IT_TEIF1 ((uint32_t)0x10002200) +#define DMA_IT_HTIF1 ((uint32_t)0x10004400) +#define DMA_IT_TCIF1 ((uint32_t)0x10008800) +#define DMA_IT_FEIF2 ((uint32_t)0x90010000) +#define DMA_IT_DMEIF2 ((uint32_t)0x10041000) +#define DMA_IT_TEIF2 ((uint32_t)0x10082000) +#define DMA_IT_HTIF2 ((uint32_t)0x10104000) +#define DMA_IT_TCIF2 ((uint32_t)0x10208000) +#define DMA_IT_FEIF3 ((uint32_t)0x90400000) +#define DMA_IT_DMEIF3 ((uint32_t)0x11001000) +#define DMA_IT_TEIF3 ((uint32_t)0x12002000) +#define DMA_IT_HTIF3 ((uint32_t)0x14004000) +#define DMA_IT_TCIF3 ((uint32_t)0x18008000) +#define DMA_IT_FEIF4 ((uint32_t)0xA0000001) +#define DMA_IT_DMEIF4 ((uint32_t)0x20001004) +#define DMA_IT_TEIF4 ((uint32_t)0x20002008) +#define DMA_IT_HTIF4 ((uint32_t)0x20004010) +#define DMA_IT_TCIF4 ((uint32_t)0x20008020) +#define DMA_IT_FEIF5 ((uint32_t)0xA0000040) +#define DMA_IT_DMEIF5 ((uint32_t)0x20001100) +#define DMA_IT_TEIF5 ((uint32_t)0x20002200) +#define DMA_IT_HTIF5 ((uint32_t)0x20004400) +#define DMA_IT_TCIF5 ((uint32_t)0x20008800) +#define DMA_IT_FEIF6 ((uint32_t)0xA0010000) +#define DMA_IT_DMEIF6 ((uint32_t)0x20041000) +#define DMA_IT_TEIF6 ((uint32_t)0x20082000) +#define DMA_IT_HTIF6 ((uint32_t)0x20104000) +#define DMA_IT_TCIF6 ((uint32_t)0x20208000) +#define DMA_IT_FEIF7 ((uint32_t)0xA0400000) +#define DMA_IT_DMEIF7 ((uint32_t)0x21001000) +#define DMA_IT_TEIF7 ((uint32_t)0x22002000) +#define DMA_IT_HTIF7 ((uint32_t)0x24004000) +#define DMA_IT_TCIF7 ((uint32_t)0x28008000) + +#define IS_DMA_CLEAR_IT(IT) ((((IT) & 0x30000000) != 0x30000000) && \ + (((IT) & 0x30000000) != 0) && ((IT) != 0x00) && \ + (((IT) & 0x40820082) == 0x00)) + +#define IS_DMA_GET_IT(IT) (((IT) == DMA_IT_TCIF0) || ((IT) == DMA_IT_HTIF0) || \ + ((IT) == DMA_IT_TEIF0) || ((IT) == DMA_IT_DMEIF0) || \ + ((IT) == DMA_IT_FEIF0) || ((IT) == DMA_IT_TCIF1) || \ + ((IT) == DMA_IT_HTIF1) || ((IT) == DMA_IT_TEIF1) || \ + ((IT) == DMA_IT_DMEIF1)|| ((IT) == DMA_IT_FEIF1) || \ + ((IT) == DMA_IT_TCIF2) || ((IT) == DMA_IT_HTIF2) || \ + ((IT) == DMA_IT_TEIF2) || ((IT) == DMA_IT_DMEIF2) || \ + ((IT) == DMA_IT_FEIF2) || ((IT) == DMA_IT_TCIF3) || \ + ((IT) == DMA_IT_HTIF3) || ((IT) == DMA_IT_TEIF3) || \ + ((IT) == DMA_IT_DMEIF3)|| ((IT) == DMA_IT_FEIF3) || \ + ((IT) == DMA_IT_TCIF4) || ((IT) == DMA_IT_HTIF4) || \ + ((IT) == DMA_IT_TEIF4) || ((IT) == DMA_IT_DMEIF4) || \ + ((IT) == DMA_IT_FEIF4) || ((IT) == DMA_IT_TCIF5) || \ + ((IT) == DMA_IT_HTIF5) || ((IT) == DMA_IT_TEIF5) || \ + ((IT) == DMA_IT_DMEIF5)|| ((IT) == DMA_IT_FEIF5) || \ + ((IT) == DMA_IT_TCIF6) || ((IT) == DMA_IT_HTIF6) || \ + ((IT) == DMA_IT_TEIF6) || ((IT) == DMA_IT_DMEIF6) || \ + ((IT) == DMA_IT_FEIF6) || ((IT) == DMA_IT_TCIF7) || \ + ((IT) == DMA_IT_HTIF7) || ((IT) == DMA_IT_TEIF7) || \ + ((IT) == DMA_IT_DMEIF7)|| ((IT) == DMA_IT_FEIF7)) +/** + * @} + */ + + +/** @defgroup DMA_peripheral_increment_offset + * @{ + */ +#define DMA_PINCOS_Psize ((uint32_t)0x00000000) +#define DMA_PINCOS_WordAligned ((uint32_t)0x00008000) + +#define IS_DMA_PINCOS_SIZE(SIZE) (((SIZE) == DMA_PINCOS_Psize) || \ + ((SIZE) == DMA_PINCOS_WordAligned)) +/** + * @} + */ + + +/** @defgroup DMA_flow_controller_definitions + * @{ + */ +#define DMA_FlowCtrl_Memory ((uint32_t)0x00000000) +#define DMA_FlowCtrl_Peripheral ((uint32_t)0x00000020) + +#define IS_DMA_FLOW_CTRL(CTRL) (((CTRL) == DMA_FlowCtrl_Memory) || \ + ((CTRL) == DMA_FlowCtrl_Peripheral)) +/** + * @} + */ + + +/** @defgroup DMA_memory_targets_definitions + * @{ + */ +#define DMA_Memory_0 ((uint32_t)0x00000000) +#define DMA_Memory_1 ((uint32_t)0x00080000) + +#define IS_DMA_CURRENT_MEM(MEM) (((MEM) == DMA_Memory_0) || ((MEM) == DMA_Memory_1)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the DMA configuration to the default reset state *****/ +void DMA_DeInit(DMA_Stream_TypeDef* DMAy_Streamx); + +/* Initialization and Configuration functions *********************************/ +void DMA_Init(DMA_Stream_TypeDef* DMAy_Streamx, DMA_InitTypeDef* DMA_InitStruct); +void DMA_StructInit(DMA_InitTypeDef* DMA_InitStruct); +void DMA_Cmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState); + +/* Optional Configuration functions *******************************************/ +void DMA_PeriphIncOffsetSizeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_Pincos); +void DMA_FlowControllerConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FlowCtrl); + +/* Data Counter functions *****************************************************/ +void DMA_SetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx, uint16_t Counter); +uint16_t DMA_GetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx); + +/* Double Buffer mode functions ***********************************************/ +void DMA_DoubleBufferModeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t Memory1BaseAddr, + uint32_t DMA_CurrentMemory); +void DMA_DoubleBufferModeCmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState); +void DMA_MemoryTargetConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t MemoryBaseAddr, + uint32_t DMA_MemoryTarget); +uint32_t DMA_GetCurrentMemoryTarget(DMA_Stream_TypeDef* DMAy_Streamx); + +/* Interrupts and flags management functions **********************************/ +FunctionalState DMA_GetCmdStatus(DMA_Stream_TypeDef* DMAy_Streamx); +uint32_t DMA_GetFIFOStatus(DMA_Stream_TypeDef* DMAy_Streamx); +FlagStatus DMA_GetFlagStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG); +void DMA_ClearFlag(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG); +void DMA_ITConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT, FunctionalState NewState); +ITStatus DMA_GetITStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT); +void DMA_ClearITPendingBit(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_DMA_H */ + +/** + * @} + */ + +/** + * @} + */ + + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_exti.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_exti.h new file mode 100644 index 00000000..186e87f0 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_exti.h @@ -0,0 +1,183 @@ +/** + ****************************************************************************** + * @file stm32f2xx_exti.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the EXTI firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_EXTI_H +#define __STM32F2xx_EXTI_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup EXTI + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief EXTI mode enumeration + */ + +typedef enum +{ + EXTI_Mode_Interrupt = 0x00, + EXTI_Mode_Event = 0x04 +}EXTIMode_TypeDef; + +#define IS_EXTI_MODE(MODE) (((MODE) == EXTI_Mode_Interrupt) || ((MODE) == EXTI_Mode_Event)) + +/** + * @brief EXTI Trigger enumeration + */ + +typedef enum +{ + EXTI_Trigger_Rising = 0x08, + EXTI_Trigger_Falling = 0x0C, + EXTI_Trigger_Rising_Falling = 0x10 +}EXTITrigger_TypeDef; + +#define IS_EXTI_TRIGGER(TRIGGER) (((TRIGGER) == EXTI_Trigger_Rising) || \ + ((TRIGGER) == EXTI_Trigger_Falling) || \ + ((TRIGGER) == EXTI_Trigger_Rising_Falling)) +/** + * @brief EXTI Init Structure definition + */ + +typedef struct +{ + uint32_t EXTI_Line; /*!< Specifies the EXTI lines to be enabled or disabled. + This parameter can be any combination value of @ref EXTI_Lines */ + + EXTIMode_TypeDef EXTI_Mode; /*!< Specifies the mode for the EXTI lines. + This parameter can be a value of @ref EXTIMode_TypeDef */ + + EXTITrigger_TypeDef EXTI_Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines. + This parameter can be a value of @ref EXTITrigger_TypeDef */ + + FunctionalState EXTI_LineCmd; /*!< Specifies the new state of the selected EXTI lines. + This parameter can be set either to ENABLE or DISABLE */ +}EXTI_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup EXTI_Exported_Constants + * @{ + */ + +/** @defgroup EXTI_Lines + * @{ + */ + +#define EXTI_Line0 ((uint32_t)0x00001) /*!< External interrupt line 0 */ +#define EXTI_Line1 ((uint32_t)0x00002) /*!< External interrupt line 1 */ +#define EXTI_Line2 ((uint32_t)0x00004) /*!< External interrupt line 2 */ +#define EXTI_Line3 ((uint32_t)0x00008) /*!< External interrupt line 3 */ +#define EXTI_Line4 ((uint32_t)0x00010) /*!< External interrupt line 4 */ +#define EXTI_Line5 ((uint32_t)0x00020) /*!< External interrupt line 5 */ +#define EXTI_Line6 ((uint32_t)0x00040) /*!< External interrupt line 6 */ +#define EXTI_Line7 ((uint32_t)0x00080) /*!< External interrupt line 7 */ +#define EXTI_Line8 ((uint32_t)0x00100) /*!< External interrupt line 8 */ +#define EXTI_Line9 ((uint32_t)0x00200) /*!< External interrupt line 9 */ +#define EXTI_Line10 ((uint32_t)0x00400) /*!< External interrupt line 10 */ +#define EXTI_Line11 ((uint32_t)0x00800) /*!< External interrupt line 11 */ +#define EXTI_Line12 ((uint32_t)0x01000) /*!< External interrupt line 12 */ +#define EXTI_Line13 ((uint32_t)0x02000) /*!< External interrupt line 13 */ +#define EXTI_Line14 ((uint32_t)0x04000) /*!< External interrupt line 14 */ +#define EXTI_Line15 ((uint32_t)0x08000) /*!< External interrupt line 15 */ +#define EXTI_Line16 ((uint32_t)0x10000) /*!< External interrupt line 16 Connected to the PVD Output */ +#define EXTI_Line17 ((uint32_t)0x20000) /*!< External interrupt line 17 Connected to the RTC Alarm event */ +#define EXTI_Line18 ((uint32_t)0x40000) /*!< External interrupt line 18 Connected to the USB OTG FS Wakeup from suspend event */ +#define EXTI_Line19 ((uint32_t)0x80000) /*!< External interrupt line 19 Connected to the Ethernet Wakeup event */ +#define EXTI_Line20 ((uint32_t)0x00100000) /*!< External interrupt line 20 Connected to the USB OTG HS (configured in FS) Wakeup event */ +#define EXTI_Line21 ((uint32_t)0x00200000) /*!< External interrupt line 21 Connected to the RTC Tamper and Time Stamp events */ +#define EXTI_Line22 ((uint32_t)0x00400000) /*!< External interrupt line 22 Connected to the RTC Wakeup event */ + +#define IS_EXTI_LINE(LINE) ((((LINE) & (uint32_t)0xFF800000) == 0x00) && ((LINE) != (uint16_t)0x00)) + +#define IS_GET_EXTI_LINE(LINE) (((LINE) == EXTI_Line0) || ((LINE) == EXTI_Line1) || \ + ((LINE) == EXTI_Line2) || ((LINE) == EXTI_Line3) || \ + ((LINE) == EXTI_Line4) || ((LINE) == EXTI_Line5) || \ + ((LINE) == EXTI_Line6) || ((LINE) == EXTI_Line7) || \ + ((LINE) == EXTI_Line8) || ((LINE) == EXTI_Line9) || \ + ((LINE) == EXTI_Line10) || ((LINE) == EXTI_Line11) || \ + ((LINE) == EXTI_Line12) || ((LINE) == EXTI_Line13) || \ + ((LINE) == EXTI_Line14) || ((LINE) == EXTI_Line15) || \ + ((LINE) == EXTI_Line16) || ((LINE) == EXTI_Line17) || \ + ((LINE) == EXTI_Line18) || ((LINE) == EXTI_Line19) || \ + ((LINE) == EXTI_Line20) || ((LINE) == EXTI_Line21) ||\ + ((LINE) == EXTI_Line22)) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the EXTI configuration to the default reset state *****/ +void EXTI_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct); +void EXTI_StructInit(EXTI_InitTypeDef* EXTI_InitStruct); +void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line); + +/* Interrupts and flags management functions **********************************/ +FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line); +void EXTI_ClearFlag(uint32_t EXTI_Line); +ITStatus EXTI_GetITStatus(uint32_t EXTI_Line); +void EXTI_ClearITPendingBit(uint32_t EXTI_Line); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_EXTI_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_flash.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_flash.h new file mode 100644 index 00000000..8ea12def --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_flash.h @@ -0,0 +1,340 @@ +/** + ****************************************************************************** + * @file stm32f2xx_flash.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the FLASH + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_FLASH_H +#define __STM32F2xx_FLASH_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup FLASH + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/** + * @brief FLASH Status + */ +typedef enum +{ + FLASH_BUSY = 1, + FLASH_ERROR_PGS, + FLASH_ERROR_PGP, + FLASH_ERROR_PGA, + FLASH_ERROR_WRP, + FLASH_ERROR_PROGRAM, + FLASH_ERROR_OPERATION, + FLASH_COMPLETE +}FLASH_Status; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup FLASH_Exported_Constants + * @{ + */ + +/** @defgroup Flash_Latency + * @{ + */ +#define FLASH_Latency_0 ((uint8_t)0x0000) /*!< FLASH Zero Latency cycle */ +#define FLASH_Latency_1 ((uint8_t)0x0001) /*!< FLASH One Latency cycle */ +#define FLASH_Latency_2 ((uint8_t)0x0002) /*!< FLASH Two Latency cycles */ +#define FLASH_Latency_3 ((uint8_t)0x0003) /*!< FLASH Three Latency cycles */ +#define FLASH_Latency_4 ((uint8_t)0x0004) /*!< FLASH Four Latency cycles */ +#define FLASH_Latency_5 ((uint8_t)0x0005) /*!< FLASH Five Latency cycles */ +#define FLASH_Latency_6 ((uint8_t)0x0006) /*!< FLASH Six Latency cycles */ +#define FLASH_Latency_7 ((uint8_t)0x0007) /*!< FLASH Seven Latency cycles */ + +#define IS_FLASH_LATENCY(LATENCY) (((LATENCY) == FLASH_Latency_0) || \ + ((LATENCY) == FLASH_Latency_1) || \ + ((LATENCY) == FLASH_Latency_2) || \ + ((LATENCY) == FLASH_Latency_3) || \ + ((LATENCY) == FLASH_Latency_4) || \ + ((LATENCY) == FLASH_Latency_5) || \ + ((LATENCY) == FLASH_Latency_6) || \ + ((LATENCY) == FLASH_Latency_7)) +/** + * @} + */ + +/** @defgroup FLASH_Voltage_Range + * @{ + */ +#define VoltageRange_1 ((uint8_t)0x00) /*!< Device operating range: 1.8V to 2.1V */ +#define VoltageRange_2 ((uint8_t)0x01) /*!= 0x08000000) && ((ADDRESS) < 0x080FFFFF)) ||\ + (((ADDRESS) >= 0x1FFF7800) && ((ADDRESS) < 0x1FFF7A0F))) +/** + * @} + */ + +/** @defgroup Option_Bytes_Write_Protection + * @{ + */ +#define OB_WRP_Sector_0 ((uint32_t)0x00000001) /*!< Write protection of Sector0 */ +#define OB_WRP_Sector_1 ((uint32_t)0x00000002) /*!< Write protection of Sector1 */ +#define OB_WRP_Sector_2 ((uint32_t)0x00000004) /*!< Write protection of Sector2 */ +#define OB_WRP_Sector_3 ((uint32_t)0x00000008) /*!< Write protection of Sector3 */ +#define OB_WRP_Sector_4 ((uint32_t)0x00000010) /*!< Write protection of Sector4 */ +#define OB_WRP_Sector_5 ((uint32_t)0x00000020) /*!< Write protection of Sector5 */ +#define OB_WRP_Sector_6 ((uint32_t)0x00000040) /*!< Write protection of Sector6 */ +#define OB_WRP_Sector_7 ((uint32_t)0x00000080) /*!< Write protection of Sector7 */ +#define OB_WRP_Sector_8 ((uint32_t)0x00000100) /*!< Write protection of Sector8 */ +#define OB_WRP_Sector_9 ((uint32_t)0x00000200) /*!< Write protection of Sector9 */ +#define OB_WRP_Sector_10 ((uint32_t)0x00000400) /*!< Write protection of Sector10 */ +#define OB_WRP_Sector_11 ((uint32_t)0x00000800) /*!< Write protection of Sector11 */ +#define OB_WRP_Sector_All ((uint32_t)0x00000FFF) /*!< Write protection of all Sectors */ + +#define IS_OB_WRP(SECTOR)((((SECTOR) & (uint32_t)0xFFFFF000) == 0x00000000) && ((SECTOR) != 0x00000000)) +/** + * @} + */ + +/** @defgroup FLASH_Option_Bytes_Read_Protection + * @{ + */ +#define OB_RDP_Level_0 ((uint8_t)0xAA) +#define OB_RDP_Level_1 ((uint8_t)0x55) +/*#define OB_RDP_Level_2 ((uint8_t)0xCC)*/ /*!< Warning: When enabling read protection level 2 + it's no more possible to go back to level 1 or 0 */ +#define IS_OB_RDP(LEVEL) (((LEVEL) == OB_RDP_Level_0)||\ + ((LEVEL) == OB_RDP_Level_1))/*||\ + ((LEVEL) == OB_RDP_Level_2))*/ +/** + * @} + */ + +/** @defgroup FLASH_Option_Bytes_IWatchdog + * @{ + */ +#define OB_IWDG_SW ((uint8_t)0x20) /*!< Software IWDG selected */ +#define OB_IWDG_HW ((uint8_t)0x00) /*!< Hardware IWDG selected */ +#define IS_OB_IWDG_SOURCE(SOURCE) (((SOURCE) == OB_IWDG_SW) || ((SOURCE) == OB_IWDG_HW)) +/** + * @} + */ + +/** @defgroup FLASH_Option_Bytes_nRST_STOP + * @{ + */ +#define OB_STOP_NoRST ((uint8_t)0x40) /*!< No reset generated when entering in STOP */ +#define OB_STOP_RST ((uint8_t)0x00) /*!< Reset generated when entering in STOP */ +#define IS_OB_STOP_SOURCE(SOURCE) (((SOURCE) == OB_STOP_NoRST) || ((SOURCE) == OB_STOP_RST)) +/** + * @} + */ + + +/** @defgroup FLASH_Option_Bytes_nRST_STDBY + * @{ + */ +#define OB_STDBY_NoRST ((uint8_t)0x80) /*!< No reset generated when entering in STANDBY */ +#define OB_STDBY_RST ((uint8_t)0x00) /*!< Reset generated when entering in STANDBY */ +#define IS_OB_STDBY_SOURCE(SOURCE) (((SOURCE) == OB_STDBY_NoRST) || ((SOURCE) == OB_STDBY_RST)) +/** + * @} + */ + +/** @defgroup FLASH_BOR_Reset_Level + * @{ + */ +#define OB_BOR_LEVEL3 ((uint8_t)0x00) /*!< Supply voltage ranges from 2.70 to 3.60 V */ +#define OB_BOR_LEVEL2 ((uint8_t)0x04) /*!< Supply voltage ranges from 2.40 to 2.70 V */ +#define OB_BOR_LEVEL1 ((uint8_t)0x08) /*!< Supply voltage ranges from 2.10 to 2.40 V */ +#define OB_BOR_OFF ((uint8_t)0x0C) /*!< Supply voltage ranges from 1.62 to 2.10 V */ +#define IS_OB_BOR(LEVEL) (((LEVEL) == OB_BOR_LEVEL1) || ((LEVEL) == OB_BOR_LEVEL2) ||\ + ((LEVEL) == OB_BOR_LEVEL3) || ((LEVEL) == OB_BOR_OFF)) +/** + * @} + */ + +/** @defgroup FLASH_Interrupts + * @{ + */ +#define FLASH_IT_EOP ((uint32_t)0x01000000) /*!< End of FLASH Operation Interrupt source */ +#define FLASH_IT_ERR ((uint32_t)0x02000000) /*!< Error Interrupt source */ +#define IS_FLASH_IT(IT) ((((IT) & (uint32_t)0xFCFFFFFF) == 0x00000000) && ((IT) != 0x00000000)) +/** + * @} + */ + +/** @defgroup FLASH_Flags + * @{ + */ +#define FLASH_FLAG_EOP ((uint32_t)0x00000001) /*!< FLASH End of Operation flag */ +#define FLASH_FLAG_OPERR ((uint32_t)0x00000002) /*!< FLASH operation Error flag */ +#define FLASH_FLAG_WRPERR ((uint32_t)0x00000010) /*!< FLASH Write protected error flag */ +#define FLASH_FLAG_PGAERR ((uint32_t)0x00000020) /*!< FLASH Programming Alignment error flag */ +#define FLASH_FLAG_PGPERR ((uint32_t)0x00000040) /*!< FLASH Programming Parallelism error flag */ +#define FLASH_FLAG_PGSERR ((uint32_t)0x00000080) /*!< FLASH Programming Sequence error flag */ +#define FLASH_FLAG_BSY ((uint32_t)0x00010000) /*!< FLASH Busy flag */ +#define IS_FLASH_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFFFFF0C) == 0x00000000) && ((FLAG) != 0x00000000)) +#define IS_FLASH_GET_FLAG(FLAG) (((FLAG) == FLASH_FLAG_EOP) || ((FLAG) == FLASH_FLAG_OPERR) || \ + ((FLAG) == FLASH_FLAG_WRPERR) || ((FLAG) == FLASH_FLAG_PGAERR) || \ + ((FLAG) == FLASH_FLAG_PGPERR) || ((FLAG) == FLASH_FLAG_PGSERR) || \ + ((FLAG) == FLASH_FLAG_BSY)) +/** + * @} + */ + +/** @defgroup FLASH_Program_Parallelism + * @{ + */ +#define FLASH_PSIZE_BYTE ((uint32_t)0x00000000) +#define FLASH_PSIZE_HALF_WORD ((uint32_t)0x00000100) +#define FLASH_PSIZE_WORD ((uint32_t)0x00000200) +#define FLASH_PSIZE_DOUBLE_WORD ((uint32_t)0x00000300) +#define CR_PSIZE_MASK ((uint32_t)0xFFFFFCFF) +/** + * @} + */ + +/** @defgroup FLASH_Keys + * @{ + */ +#define RDP_KEY ((uint16_t)0x00A5) +#define FLASH_KEY1 ((uint32_t)0x45670123) +#define FLASH_KEY2 ((uint32_t)0xCDEF89AB) +#define FLASH_OPT_KEY1 ((uint32_t)0x08192A3B) +#define FLASH_OPT_KEY2 ((uint32_t)0x4C5D6E7F) +/** + * @} + */ + +/** + * @brief ACR register byte 0 (Bits[8:0]) base address + */ +#define ACR_BYTE0_ADDRESS ((uint32_t)0x40023C00) +/** + * @brief OPTCR register byte 3 (Bits[24:16]) base address + */ +#define OPTCR_BYTE0_ADDRESS ((uint32_t)0x40023C14) +#define OPTCR_BYTE1_ADDRESS ((uint32_t)0x40023C15) +#define OPTCR_BYTE2_ADDRESS ((uint32_t)0x40023C16) + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* FLASH Interface configuration functions ************************************/ +void FLASH_SetLatency(uint32_t FLASH_Latency); +void FLASH_PrefetchBufferCmd(FunctionalState NewState); +void FLASH_InstructionCacheCmd(FunctionalState NewState); +void FLASH_DataCacheCmd(FunctionalState NewState); +void FLASH_InstructionCacheReset(void); +void FLASH_DataCacheReset(void); + +/* FLASH Memory Programming functions *****************************************/ +void FLASH_Unlock(void); +void FLASH_Lock(void); +FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange); +FLASH_Status FLASH_EraseAllSectors(uint8_t VoltageRange); +FLASH_Status FLASH_ProgramDoubleWord(uint32_t Address, uint64_t Data); +FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data); +FLASH_Status FLASH_ProgramHalfWord(uint32_t Address, uint16_t Data); +FLASH_Status FLASH_ProgramByte(uint32_t Address, uint8_t Data); + +/* Option Bytes Programming functions *****************************************/ +void FLASH_OB_Unlock(void); +void FLASH_OB_Lock(void); +void FLASH_OB_WRPConfig(uint32_t OB_WRP, FunctionalState NewState); +void FLASH_OB_RDPConfig(uint8_t OB_RDP); +void FLASH_OB_UserConfig(uint8_t OB_IWDG, uint8_t OB_STOP, uint8_t OB_STDBY); +void FLASH_OB_BORConfig(uint8_t OB_BOR); +FLASH_Status FLASH_OB_Launch(void); +uint8_t FLASH_OB_GetUser(void); +uint16_t FLASH_OB_GetWRP(void); +FlagStatus FLASH_OB_GetRDP(void); +uint8_t FLASH_OB_GetBOR(void); + +/* Interrupts and flags management functions **********************************/ +void FLASH_ITConfig(uint32_t FLASH_IT, FunctionalState NewState); +FlagStatus FLASH_GetFlagStatus(uint32_t FLASH_FLAG); +void FLASH_ClearFlag(uint32_t FLASH_FLAG); +FLASH_Status FLASH_GetStatus(void); +FLASH_Status FLASH_WaitForLastOperation(void); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_FLASH_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_fsmc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_fsmc.h new file mode 100644 index 00000000..65ffc326 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_fsmc.h @@ -0,0 +1,675 @@ +/** + ****************************************************************************** + * @file stm32f2xx_fsmc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the FSMC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_FSMC_H +#define __STM32F2xx_FSMC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup FSMC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief Timing parameters For NOR/SRAM Banks + */ +typedef struct +{ + uint32_t FSMC_AddressSetupTime; /*!< Defines the number of HCLK cycles to configure + the duration of the address setup time. + This parameter can be a value between 0 and 0xF. + @note This parameter is not used with synchronous NOR Flash memories. */ + + uint32_t FSMC_AddressHoldTime; /*!< Defines the number of HCLK cycles to configure + the duration of the address hold time. + This parameter can be a value between 0 and 0xF. + @note This parameter is not used with synchronous NOR Flash memories.*/ + + uint32_t FSMC_DataSetupTime; /*!< Defines the number of HCLK cycles to configure + the duration of the data setup time. + This parameter can be a value between 0 and 0xFF. + @note This parameter is used for SRAMs, ROMs and asynchronous multiplexed NOR Flash memories. */ + + uint32_t FSMC_BusTurnAroundDuration; /*!< Defines the number of HCLK cycles to configure + the duration of the bus turnaround. + This parameter can be a value between 0 and 0xF. + @note This parameter is only used for multiplexed NOR Flash memories. */ + + uint32_t FSMC_CLKDivision; /*!< Defines the period of CLK clock output signal, expressed in number of HCLK cycles. + This parameter can be a value between 1 and 0xF. + @note This parameter is not used for asynchronous NOR Flash, SRAM or ROM accesses. */ + + uint32_t FSMC_DataLatency; /*!< Defines the number of memory clock cycles to issue + to the memory before getting the first data. + The parameter value depends on the memory type as shown below: + - It must be set to 0 in case of a CRAM + - It is don't care in asynchronous NOR, SRAM or ROM accesses + - It may assume a value between 0 and 0xF in NOR Flash memories + with synchronous burst mode enable */ + + uint32_t FSMC_AccessMode; /*!< Specifies the asynchronous access mode. + This parameter can be a value of @ref FSMC_Access_Mode */ +}FSMC_NORSRAMTimingInitTypeDef; + +/** + * @brief FSMC NOR/SRAM Init structure definition + */ +typedef struct +{ + uint32_t FSMC_Bank; /*!< Specifies the NOR/SRAM memory bank that will be used. + This parameter can be a value of @ref FSMC_NORSRAM_Bank */ + + uint32_t FSMC_DataAddressMux; /*!< Specifies whether the address and data values are + multiplexed on the databus or not. + This parameter can be a value of @ref FSMC_Data_Address_Bus_Multiplexing */ + + uint32_t FSMC_MemoryType; /*!< Specifies the type of external memory attached to + the corresponding memory bank. + This parameter can be a value of @ref FSMC_Memory_Type */ + + uint32_t FSMC_MemoryDataWidth; /*!< Specifies the external memory device width. + This parameter can be a value of @ref FSMC_Data_Width */ + + uint32_t FSMC_BurstAccessMode; /*!< Enables or disables the burst access mode for Flash memory, + valid only with synchronous burst Flash memories. + This parameter can be a value of @ref FSMC_Burst_Access_Mode */ + + uint32_t FSMC_AsynchronousWait; /*!< Enables or disables wait signal during asynchronous transfers, + valid only with asynchronous Flash memories. + This parameter can be a value of @ref FSMC_AsynchronousWait */ + + uint32_t FSMC_WaitSignalPolarity; /*!< Specifies the wait signal polarity, valid only when accessing + the Flash memory in burst mode. + This parameter can be a value of @ref FSMC_Wait_Signal_Polarity */ + + uint32_t FSMC_WrapMode; /*!< Enables or disables the Wrapped burst access mode for Flash + memory, valid only when accessing Flash memories in burst mode. + This parameter can be a value of @ref FSMC_Wrap_Mode */ + + uint32_t FSMC_WaitSignalActive; /*!< Specifies if the wait signal is asserted by the memory one + clock cycle before the wait state or during the wait state, + valid only when accessing memories in burst mode. + This parameter can be a value of @ref FSMC_Wait_Timing */ + + uint32_t FSMC_WriteOperation; /*!< Enables or disables the write operation in the selected bank by the FSMC. + This parameter can be a value of @ref FSMC_Write_Operation */ + + uint32_t FSMC_WaitSignal; /*!< Enables or disables the wait-state insertion via wait + signal, valid for Flash memory access in burst mode. + This parameter can be a value of @ref FSMC_Wait_Signal */ + + uint32_t FSMC_ExtendedMode; /*!< Enables or disables the extended mode. + This parameter can be a value of @ref FSMC_Extended_Mode */ + + uint32_t FSMC_WriteBurst; /*!< Enables or disables the write burst operation. + This parameter can be a value of @ref FSMC_Write_Burst */ + + FSMC_NORSRAMTimingInitTypeDef* FSMC_ReadWriteTimingStruct; /*!< Timing Parameters for write and read access if the ExtendedMode is not used*/ + + FSMC_NORSRAMTimingInitTypeDef* FSMC_WriteTimingStruct; /*!< Timing Parameters for write access if the ExtendedMode is used*/ +}FSMC_NORSRAMInitTypeDef; + +/** + * @brief Timing parameters For FSMC NAND and PCCARD Banks + */ +typedef struct +{ + uint32_t FSMC_SetupTime; /*!< Defines the number of HCLK cycles to setup address before + the command assertion for NAND-Flash read or write access + to common/Attribute or I/O memory space (depending on + the memory space timing to be configured). + This parameter can be a value between 0 and 0xFF.*/ + + uint32_t FSMC_WaitSetupTime; /*!< Defines the minimum number of HCLK cycles to assert the + command for NAND-Flash read or write access to + common/Attribute or I/O memory space (depending on the + memory space timing to be configured). + This parameter can be a number between 0x00 and 0xFF */ + + uint32_t FSMC_HoldSetupTime; /*!< Defines the number of HCLK clock cycles to hold address + (and data for write access) after the command deassertion + for NAND-Flash read or write access to common/Attribute + or I/O memory space (depending on the memory space timing + to be configured). + This parameter can be a number between 0x00 and 0xFF */ + + uint32_t FSMC_HiZSetupTime; /*!< Defines the number of HCLK clock cycles during which the + databus is kept in HiZ after the start of a NAND-Flash + write access to common/Attribute or I/O memory space (depending + on the memory space timing to be configured). + This parameter can be a number between 0x00 and 0xFF */ +}FSMC_NAND_PCCARDTimingInitTypeDef; + +/** + * @brief FSMC NAND Init structure definition + */ +typedef struct +{ + uint32_t FSMC_Bank; /*!< Specifies the NAND memory bank that will be used. + This parameter can be a value of @ref FSMC_NAND_Bank */ + + uint32_t FSMC_Waitfeature; /*!< Enables or disables the Wait feature for the NAND Memory Bank. + This parameter can be any value of @ref FSMC_Wait_feature */ + + uint32_t FSMC_MemoryDataWidth; /*!< Specifies the external memory device width. + This parameter can be any value of @ref FSMC_Data_Width */ + + uint32_t FSMC_ECC; /*!< Enables or disables the ECC computation. + This parameter can be any value of @ref FSMC_ECC */ + + uint32_t FSMC_ECCPageSize; /*!< Defines the page size for the extended ECC. + This parameter can be any value of @ref FSMC_ECC_Page_Size */ + + uint32_t FSMC_TCLRSetupTime; /*!< Defines the number of HCLK cycles to configure the + delay between CLE low and RE low. + This parameter can be a value between 0 and 0xFF. */ + + uint32_t FSMC_TARSetupTime; /*!< Defines the number of HCLK cycles to configure the + delay between ALE low and RE low. + This parameter can be a number between 0x0 and 0xFF */ + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_CommonSpaceTimingStruct; /*!< FSMC Common Space Timing */ + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_AttributeSpaceTimingStruct; /*!< FSMC Attribute Space Timing */ +}FSMC_NANDInitTypeDef; + +/** + * @brief FSMC PCCARD Init structure definition + */ + +typedef struct +{ + uint32_t FSMC_Waitfeature; /*!< Enables or disables the Wait feature for the Memory Bank. + This parameter can be any value of @ref FSMC_Wait_feature */ + + uint32_t FSMC_TCLRSetupTime; /*!< Defines the number of HCLK cycles to configure the + delay between CLE low and RE low. + This parameter can be a value between 0 and 0xFF. */ + + uint32_t FSMC_TARSetupTime; /*!< Defines the number of HCLK cycles to configure the + delay between ALE low and RE low. + This parameter can be a number between 0x0 and 0xFF */ + + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_CommonSpaceTimingStruct; /*!< FSMC Common Space Timing */ + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_AttributeSpaceTimingStruct; /*!< FSMC Attribute Space Timing */ + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_IOSpaceTimingStruct; /*!< FSMC IO Space Timing */ +}FSMC_PCCARDInitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup FSMC_Exported_Constants + * @{ + */ + +/** @defgroup FSMC_NORSRAM_Bank + * @{ + */ +#define FSMC_Bank1_NORSRAM1 ((uint32_t)0x00000000) +#define FSMC_Bank1_NORSRAM2 ((uint32_t)0x00000002) +#define FSMC_Bank1_NORSRAM3 ((uint32_t)0x00000004) +#define FSMC_Bank1_NORSRAM4 ((uint32_t)0x00000006) +/** + * @} + */ + +/** @defgroup FSMC_NAND_Bank + * @{ + */ +#define FSMC_Bank2_NAND ((uint32_t)0x00000010) +#define FSMC_Bank3_NAND ((uint32_t)0x00000100) +/** + * @} + */ + +/** @defgroup FSMC_PCCARD_Bank + * @{ + */ +#define FSMC_Bank4_PCCARD ((uint32_t)0x00001000) +/** + * @} + */ + +#define IS_FSMC_NORSRAM_BANK(BANK) (((BANK) == FSMC_Bank1_NORSRAM1) || \ + ((BANK) == FSMC_Bank1_NORSRAM2) || \ + ((BANK) == FSMC_Bank1_NORSRAM3) || \ + ((BANK) == FSMC_Bank1_NORSRAM4)) + +#define IS_FSMC_NAND_BANK(BANK) (((BANK) == FSMC_Bank2_NAND) || \ + ((BANK) == FSMC_Bank3_NAND)) + +#define IS_FSMC_GETFLAG_BANK(BANK) (((BANK) == FSMC_Bank2_NAND) || \ + ((BANK) == FSMC_Bank3_NAND) || \ + ((BANK) == FSMC_Bank4_PCCARD)) + +#define IS_FSMC_IT_BANK(BANK) (((BANK) == FSMC_Bank2_NAND) || \ + ((BANK) == FSMC_Bank3_NAND) || \ + ((BANK) == FSMC_Bank4_PCCARD)) + +/** @defgroup FSMC_NOR_SRAM_Controller + * @{ + */ + +/** @defgroup FSMC_Data_Address_Bus_Multiplexing + * @{ + */ + +#define FSMC_DataAddressMux_Disable ((uint32_t)0x00000000) +#define FSMC_DataAddressMux_Enable ((uint32_t)0x00000002) +#define IS_FSMC_MUX(MUX) (((MUX) == FSMC_DataAddressMux_Disable) || \ + ((MUX) == FSMC_DataAddressMux_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Memory_Type + * @{ + */ + +#define FSMC_MemoryType_SRAM ((uint32_t)0x00000000) +#define FSMC_MemoryType_PSRAM ((uint32_t)0x00000004) +#define FSMC_MemoryType_NOR ((uint32_t)0x00000008) +#define IS_FSMC_MEMORY(MEMORY) (((MEMORY) == FSMC_MemoryType_SRAM) || \ + ((MEMORY) == FSMC_MemoryType_PSRAM)|| \ + ((MEMORY) == FSMC_MemoryType_NOR)) +/** + * @} + */ + +/** @defgroup FSMC_Data_Width + * @{ + */ + +#define FSMC_MemoryDataWidth_8b ((uint32_t)0x00000000) +#define FSMC_MemoryDataWidth_16b ((uint32_t)0x00000010) +#define IS_FSMC_MEMORY_WIDTH(WIDTH) (((WIDTH) == FSMC_MemoryDataWidth_8b) || \ + ((WIDTH) == FSMC_MemoryDataWidth_16b)) +/** + * @} + */ + +/** @defgroup FSMC_Burst_Access_Mode + * @{ + */ + +#define FSMC_BurstAccessMode_Disable ((uint32_t)0x00000000) +#define FSMC_BurstAccessMode_Enable ((uint32_t)0x00000100) +#define IS_FSMC_BURSTMODE(STATE) (((STATE) == FSMC_BurstAccessMode_Disable) || \ + ((STATE) == FSMC_BurstAccessMode_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_AsynchronousWait + * @{ + */ +#define FSMC_AsynchronousWait_Disable ((uint32_t)0x00000000) +#define FSMC_AsynchronousWait_Enable ((uint32_t)0x00008000) +#define IS_FSMC_ASYNWAIT(STATE) (((STATE) == FSMC_AsynchronousWait_Disable) || \ + ((STATE) == FSMC_AsynchronousWait_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Wait_Signal_Polarity + * @{ + */ +#define FSMC_WaitSignalPolarity_Low ((uint32_t)0x00000000) +#define FSMC_WaitSignalPolarity_High ((uint32_t)0x00000200) +#define IS_FSMC_WAIT_POLARITY(POLARITY) (((POLARITY) == FSMC_WaitSignalPolarity_Low) || \ + ((POLARITY) == FSMC_WaitSignalPolarity_High)) +/** + * @} + */ + +/** @defgroup FSMC_Wrap_Mode + * @{ + */ +#define FSMC_WrapMode_Disable ((uint32_t)0x00000000) +#define FSMC_WrapMode_Enable ((uint32_t)0x00000400) +#define IS_FSMC_WRAP_MODE(MODE) (((MODE) == FSMC_WrapMode_Disable) || \ + ((MODE) == FSMC_WrapMode_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Wait_Timing + * @{ + */ +#define FSMC_WaitSignalActive_BeforeWaitState ((uint32_t)0x00000000) +#define FSMC_WaitSignalActive_DuringWaitState ((uint32_t)0x00000800) +#define IS_FSMC_WAIT_SIGNAL_ACTIVE(ACTIVE) (((ACTIVE) == FSMC_WaitSignalActive_BeforeWaitState) || \ + ((ACTIVE) == FSMC_WaitSignalActive_DuringWaitState)) +/** + * @} + */ + +/** @defgroup FSMC_Write_Operation + * @{ + */ +#define FSMC_WriteOperation_Disable ((uint32_t)0x00000000) +#define FSMC_WriteOperation_Enable ((uint32_t)0x00001000) +#define IS_FSMC_WRITE_OPERATION(OPERATION) (((OPERATION) == FSMC_WriteOperation_Disable) || \ + ((OPERATION) == FSMC_WriteOperation_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Wait_Signal + * @{ + */ +#define FSMC_WaitSignal_Disable ((uint32_t)0x00000000) +#define FSMC_WaitSignal_Enable ((uint32_t)0x00002000) +#define IS_FSMC_WAITE_SIGNAL(SIGNAL) (((SIGNAL) == FSMC_WaitSignal_Disable) || \ + ((SIGNAL) == FSMC_WaitSignal_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Extended_Mode + * @{ + */ +#define FSMC_ExtendedMode_Disable ((uint32_t)0x00000000) +#define FSMC_ExtendedMode_Enable ((uint32_t)0x00004000) + +#define IS_FSMC_EXTENDED_MODE(MODE) (((MODE) == FSMC_ExtendedMode_Disable) || \ + ((MODE) == FSMC_ExtendedMode_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Write_Burst + * @{ + */ + +#define FSMC_WriteBurst_Disable ((uint32_t)0x00000000) +#define FSMC_WriteBurst_Enable ((uint32_t)0x00080000) +#define IS_FSMC_WRITE_BURST(BURST) (((BURST) == FSMC_WriteBurst_Disable) || \ + ((BURST) == FSMC_WriteBurst_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Address_Setup_Time + * @{ + */ +#define IS_FSMC_ADDRESS_SETUP_TIME(TIME) ((TIME) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_Address_Hold_Time + * @{ + */ +#define IS_FSMC_ADDRESS_HOLD_TIME(TIME) ((TIME) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_Data_Setup_Time + * @{ + */ +#define IS_FSMC_DATASETUP_TIME(TIME) (((TIME) > 0) && ((TIME) <= 0xFF)) +/** + * @} + */ + +/** @defgroup FSMC_Bus_Turn_around_Duration + * @{ + */ +#define IS_FSMC_TURNAROUND_TIME(TIME) ((TIME) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_CLK_Division + * @{ + */ +#define IS_FSMC_CLK_DIV(DIV) ((DIV) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_Data_Latency + * @{ + */ +#define IS_FSMC_DATA_LATENCY(LATENCY) ((LATENCY) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_Access_Mode + * @{ + */ +#define FSMC_AccessMode_A ((uint32_t)0x00000000) +#define FSMC_AccessMode_B ((uint32_t)0x10000000) +#define FSMC_AccessMode_C ((uint32_t)0x20000000) +#define FSMC_AccessMode_D ((uint32_t)0x30000000) +#define IS_FSMC_ACCESS_MODE(MODE) (((MODE) == FSMC_AccessMode_A) || \ + ((MODE) == FSMC_AccessMode_B) || \ + ((MODE) == FSMC_AccessMode_C) || \ + ((MODE) == FSMC_AccessMode_D)) +/** + * @} + */ + +/** + * @} + */ + +/** @defgroup FSMC_NAND_PCCARD_Controller + * @{ + */ + +/** @defgroup FSMC_Wait_feature + * @{ + */ +#define FSMC_Waitfeature_Disable ((uint32_t)0x00000000) +#define FSMC_Waitfeature_Enable ((uint32_t)0x00000002) +#define IS_FSMC_WAIT_FEATURE(FEATURE) (((FEATURE) == FSMC_Waitfeature_Disable) || \ + ((FEATURE) == FSMC_Waitfeature_Enable)) +/** + * @} + */ + + +/** @defgroup FSMC_ECC + * @{ + */ +#define FSMC_ECC_Disable ((uint32_t)0x00000000) +#define FSMC_ECC_Enable ((uint32_t)0x00000040) +#define IS_FSMC_ECC_STATE(STATE) (((STATE) == FSMC_ECC_Disable) || \ + ((STATE) == FSMC_ECC_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_ECC_Page_Size + * @{ + */ +#define FSMC_ECCPageSize_256Bytes ((uint32_t)0x00000000) +#define FSMC_ECCPageSize_512Bytes ((uint32_t)0x00020000) +#define FSMC_ECCPageSize_1024Bytes ((uint32_t)0x00040000) +#define FSMC_ECCPageSize_2048Bytes ((uint32_t)0x00060000) +#define FSMC_ECCPageSize_4096Bytes ((uint32_t)0x00080000) +#define FSMC_ECCPageSize_8192Bytes ((uint32_t)0x000A0000) +#define IS_FSMC_ECCPAGE_SIZE(SIZE) (((SIZE) == FSMC_ECCPageSize_256Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_512Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_1024Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_2048Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_4096Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_8192Bytes)) +/** + * @} + */ + +/** @defgroup FSMC_TCLR_Setup_Time + * @{ + */ +#define IS_FSMC_TCLR_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_TAR_Setup_Time + * @{ + */ +#define IS_FSMC_TAR_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_Setup_Time + * @{ + */ +#define IS_FSMC_SETUP_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_Wait_Setup_Time + * @{ + */ +#define IS_FSMC_WAIT_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_Hold_Setup_Time + * @{ + */ +#define IS_FSMC_HOLD_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_HiZ_Setup_Time + * @{ + */ +#define IS_FSMC_HIZ_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_Interrupt_sources + * @{ + */ +#define FSMC_IT_RisingEdge ((uint32_t)0x00000008) +#define FSMC_IT_Level ((uint32_t)0x00000010) +#define FSMC_IT_FallingEdge ((uint32_t)0x00000020) +#define IS_FSMC_IT(IT) ((((IT) & (uint32_t)0xFFFFFFC7) == 0x00000000) && ((IT) != 0x00000000)) +#define IS_FSMC_GET_IT(IT) (((IT) == FSMC_IT_RisingEdge) || \ + ((IT) == FSMC_IT_Level) || \ + ((IT) == FSMC_IT_FallingEdge)) +/** + * @} + */ + +/** @defgroup FSMC_Flags + * @{ + */ +#define FSMC_FLAG_RisingEdge ((uint32_t)0x00000001) +#define FSMC_FLAG_Level ((uint32_t)0x00000002) +#define FSMC_FLAG_FallingEdge ((uint32_t)0x00000004) +#define FSMC_FLAG_FEMPT ((uint32_t)0x00000040) +#define IS_FSMC_GET_FLAG(FLAG) (((FLAG) == FSMC_FLAG_RisingEdge) || \ + ((FLAG) == FSMC_FLAG_Level) || \ + ((FLAG) == FSMC_FLAG_FallingEdge) || \ + ((FLAG) == FSMC_FLAG_FEMPT)) + +#define IS_FSMC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFFFFFF8) == 0x00000000) && ((FLAG) != 0x00000000)) +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* NOR/SRAM Controller functions **********************************************/ +void FSMC_NORSRAMDeInit(uint32_t FSMC_Bank); +void FSMC_NORSRAMInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct); +void FSMC_NORSRAMStructInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct); +void FSMC_NORSRAMCmd(uint32_t FSMC_Bank, FunctionalState NewState); + +/* NAND Controller functions **************************************************/ +void FSMC_NANDDeInit(uint32_t FSMC_Bank); +void FSMC_NANDInit(FSMC_NANDInitTypeDef* FSMC_NANDInitStruct); +void FSMC_NANDStructInit(FSMC_NANDInitTypeDef* FSMC_NANDInitStruct); +void FSMC_NANDCmd(uint32_t FSMC_Bank, FunctionalState NewState); +void FSMC_NANDECCCmd(uint32_t FSMC_Bank, FunctionalState NewState); +uint32_t FSMC_GetECC(uint32_t FSMC_Bank); + +/* PCCARD Controller functions ************************************************/ +void FSMC_PCCARDDeInit(void); +void FSMC_PCCARDInit(FSMC_PCCARDInitTypeDef* FSMC_PCCARDInitStruct); +void FSMC_PCCARDStructInit(FSMC_PCCARDInitTypeDef* FSMC_PCCARDInitStruct); +void FSMC_PCCARDCmd(FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void FSMC_ITConfig(uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState); +FlagStatus FSMC_GetFlagStatus(uint32_t FSMC_Bank, uint32_t FSMC_FLAG); +void FSMC_ClearFlag(uint32_t FSMC_Bank, uint32_t FSMC_FLAG); +ITStatus FSMC_GetITStatus(uint32_t FSMC_Bank, uint32_t FSMC_IT); +void FSMC_ClearITPendingBit(uint32_t FSMC_Bank, uint32_t FSMC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_FSMC_H */ +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_gpio.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_gpio.h new file mode 100644 index 00000000..2300207e --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_gpio.h @@ -0,0 +1,411 @@ +/** + ****************************************************************************** + * @file stm32f2xx_gpio.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the GPIO firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_GPIO_H +#define __STM32F2xx_GPIO_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup GPIO + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +#define IS_GPIO_ALL_PERIPH(PERIPH) (((PERIPH) == GPIOA) || \ + ((PERIPH) == GPIOB) || \ + ((PERIPH) == GPIOC) || \ + ((PERIPH) == GPIOD) || \ + ((PERIPH) == GPIOE) || \ + ((PERIPH) == GPIOF) || \ + ((PERIPH) == GPIOG) || \ + ((PERIPH) == GPIOH) || \ + ((PERIPH) == GPIOI)) + +/** + * @brief GPIO Configuration Mode enumeration + */ +typedef enum +{ + GPIO_Mode_IN = 0x00, /*!< GPIO Input Mode */ + GPIO_Mode_OUT = 0x01, /*!< GPIO Output Mode */ + GPIO_Mode_AF = 0x02, /*!< GPIO Alternate function Mode */ + GPIO_Mode_AN = 0x03 /*!< GPIO Analog Mode */ +}GPIOMode_TypeDef; +#define IS_GPIO_MODE(MODE) (((MODE) == GPIO_Mode_IN) || ((MODE) == GPIO_Mode_OUT) || \ + ((MODE) == GPIO_Mode_AF)|| ((MODE) == GPIO_Mode_AN)) + +/** + * @brief GPIO Output type enumeration + */ +typedef enum +{ + GPIO_OType_PP = 0x00, + GPIO_OType_OD = 0x01 +}GPIOOType_TypeDef; +#define IS_GPIO_OTYPE(OTYPE) (((OTYPE) == GPIO_OType_PP) || ((OTYPE) == GPIO_OType_OD)) + + +/** + * @brief GPIO Output Maximum frequency enumeration + */ +typedef enum +{ + GPIO_Speed_2MHz = 0x00, /*!< Low speed */ + GPIO_Speed_25MHz = 0x01, /*!< Medium speed */ + GPIO_Speed_50MHz = 0x02, /*!< Fast speed */ + GPIO_Speed_100MHz = 0x03 /*!< High speed on 30 pF (80 MHz Output max speed on 15 pF) */ +}GPIOSpeed_TypeDef; +#define IS_GPIO_SPEED(SPEED) (((SPEED) == GPIO_Speed_2MHz) || ((SPEED) == GPIO_Speed_25MHz) || \ + ((SPEED) == GPIO_Speed_50MHz)|| ((SPEED) == GPIO_Speed_100MHz)) + +/** + * @brief GPIO Configuration PullUp PullDown enumeration + */ +typedef enum +{ + GPIO_PuPd_NOPULL = 0x00, + GPIO_PuPd_UP = 0x01, + GPIO_PuPd_DOWN = 0x02 +}GPIOPuPd_TypeDef; +#define IS_GPIO_PUPD(PUPD) (((PUPD) == GPIO_PuPd_NOPULL) || ((PUPD) == GPIO_PuPd_UP) || \ + ((PUPD) == GPIO_PuPd_DOWN)) + +/** + * @brief GPIO Bit SET and Bit RESET enumeration + */ +typedef enum +{ + Bit_RESET = 0, + Bit_SET +}BitAction; +#define IS_GPIO_BIT_ACTION(ACTION) (((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET)) + + +/** + * @brief GPIO Init structure definition + */ +typedef struct +{ + uint32_t GPIO_Pin; /*!< Specifies the GPIO pins to be configured. + This parameter can be any value of @ref GPIO_pins_define */ + + GPIOMode_TypeDef GPIO_Mode; /*!< Specifies the operating mode for the selected pins. + This parameter can be a value of @ref GPIOMode_TypeDef */ + + GPIOSpeed_TypeDef GPIO_Speed; /*!< Specifies the speed for the selected pins. + This parameter can be a value of @ref GPIOSpeed_TypeDef */ + + GPIOOType_TypeDef GPIO_OType; /*!< Specifies the operating output type for the selected pins. + This parameter can be a value of @ref GPIOOType_TypeDef */ + + GPIOPuPd_TypeDef GPIO_PuPd; /*!< Specifies the operating Pull-up/Pull down for the selected pins. + This parameter can be a value of @ref GPIOPuPd_TypeDef */ +}GPIO_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup GPIO_Exported_Constants + * @{ + */ + +/** @defgroup GPIO_pins_define + * @{ + */ +#define GPIO_Pin_0 ((uint16_t)0x0001) /* Pin 0 selected */ +#define GPIO_Pin_1 ((uint16_t)0x0002) /* Pin 1 selected */ +#define GPIO_Pin_2 ((uint16_t)0x0004) /* Pin 2 selected */ +#define GPIO_Pin_3 ((uint16_t)0x0008) /* Pin 3 selected */ +#define GPIO_Pin_4 ((uint16_t)0x0010) /* Pin 4 selected */ +#define GPIO_Pin_5 ((uint16_t)0x0020) /* Pin 5 selected */ +#define GPIO_Pin_6 ((uint16_t)0x0040) /* Pin 6 selected */ +#define GPIO_Pin_7 ((uint16_t)0x0080) /* Pin 7 selected */ +#define GPIO_Pin_8 ((uint16_t)0x0100) /* Pin 8 selected */ +#define GPIO_Pin_9 ((uint16_t)0x0200) /* Pin 9 selected */ +#define GPIO_Pin_10 ((uint16_t)0x0400) /* Pin 10 selected */ +#define GPIO_Pin_11 ((uint16_t)0x0800) /* Pin 11 selected */ +#define GPIO_Pin_12 ((uint16_t)0x1000) /* Pin 12 selected */ +#define GPIO_Pin_13 ((uint16_t)0x2000) /* Pin 13 selected */ +#define GPIO_Pin_14 ((uint16_t)0x4000) /* Pin 14 selected */ +#define GPIO_Pin_15 ((uint16_t)0x8000) /* Pin 15 selected */ +#define GPIO_Pin_All ((uint16_t)0xFFFF) /* All pins selected */ + +#define IS_GPIO_PIN(PIN) ((((PIN) & (uint16_t)0x00) == 0x00) && ((PIN) != (uint16_t)0x00)) +#define IS_GET_GPIO_PIN(PIN) (((PIN) == GPIO_Pin_0) || \ + ((PIN) == GPIO_Pin_1) || \ + ((PIN) == GPIO_Pin_2) || \ + ((PIN) == GPIO_Pin_3) || \ + ((PIN) == GPIO_Pin_4) || \ + ((PIN) == GPIO_Pin_5) || \ + ((PIN) == GPIO_Pin_6) || \ + ((PIN) == GPIO_Pin_7) || \ + ((PIN) == GPIO_Pin_8) || \ + ((PIN) == GPIO_Pin_9) || \ + ((PIN) == GPIO_Pin_10) || \ + ((PIN) == GPIO_Pin_11) || \ + ((PIN) == GPIO_Pin_12) || \ + ((PIN) == GPIO_Pin_13) || \ + ((PIN) == GPIO_Pin_14) || \ + ((PIN) == GPIO_Pin_15)) +/** + * @} + */ + + +/** @defgroup GPIO_Pin_sources + * @{ + */ +#define GPIO_PinSource0 ((uint8_t)0x00) +#define GPIO_PinSource1 ((uint8_t)0x01) +#define GPIO_PinSource2 ((uint8_t)0x02) +#define GPIO_PinSource3 ((uint8_t)0x03) +#define GPIO_PinSource4 ((uint8_t)0x04) +#define GPIO_PinSource5 ((uint8_t)0x05) +#define GPIO_PinSource6 ((uint8_t)0x06) +#define GPIO_PinSource7 ((uint8_t)0x07) +#define GPIO_PinSource8 ((uint8_t)0x08) +#define GPIO_PinSource9 ((uint8_t)0x09) +#define GPIO_PinSource10 ((uint8_t)0x0A) +#define GPIO_PinSource11 ((uint8_t)0x0B) +#define GPIO_PinSource12 ((uint8_t)0x0C) +#define GPIO_PinSource13 ((uint8_t)0x0D) +#define GPIO_PinSource14 ((uint8_t)0x0E) +#define GPIO_PinSource15 ((uint8_t)0x0F) + +#define IS_GPIO_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == GPIO_PinSource0) || \ + ((PINSOURCE) == GPIO_PinSource1) || \ + ((PINSOURCE) == GPIO_PinSource2) || \ + ((PINSOURCE) == GPIO_PinSource3) || \ + ((PINSOURCE) == GPIO_PinSource4) || \ + ((PINSOURCE) == GPIO_PinSource5) || \ + ((PINSOURCE) == GPIO_PinSource6) || \ + ((PINSOURCE) == GPIO_PinSource7) || \ + ((PINSOURCE) == GPIO_PinSource8) || \ + ((PINSOURCE) == GPIO_PinSource9) || \ + ((PINSOURCE) == GPIO_PinSource10) || \ + ((PINSOURCE) == GPIO_PinSource11) || \ + ((PINSOURCE) == GPIO_PinSource12) || \ + ((PINSOURCE) == GPIO_PinSource13) || \ + ((PINSOURCE) == GPIO_PinSource14) || \ + ((PINSOURCE) == GPIO_PinSource15)) +/** + * @} + */ + +/** @defgroup GPIO_Alternat_function_selection_define + * @{ + */ +/** + * @brief AF 0 selection + */ +#define GPIO_AF_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ +#define GPIO_AF_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ +#define GPIO_AF_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ +#define GPIO_AF_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ +#define GPIO_AF_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ + +/** + * @brief AF 1 selection + */ +#define GPIO_AF_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ +#define GPIO_AF_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ + +/** + * @brief AF 2 selection + */ +#define GPIO_AF_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ +#define GPIO_AF_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ +#define GPIO_AF_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ + +/** + * @brief AF 3 selection + */ +#define GPIO_AF_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ +#define GPIO_AF_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ +#define GPIO_AF_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ +#define GPIO_AF_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ + +/** + * @brief AF 4 selection + */ +#define GPIO_AF_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ +#define GPIO_AF_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ +#define GPIO_AF_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ + +/** + * @brief AF 5 selection + */ +#define GPIO_AF_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ +#define GPIO_AF_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ + +/** + * @brief AF 6 selection + */ +#define GPIO_AF_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ + +/** + * @brief AF 7 selection + */ +#define GPIO_AF_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ +#define GPIO_AF_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ +#define GPIO_AF_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ + +/** + * @brief AF 8 selection + */ +#define GPIO_AF_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ +#define GPIO_AF_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ +#define GPIO_AF_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ + +/** + * @brief AF 9 selection + */ +#define GPIO_AF_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ +#define GPIO_AF_CAN2 ((uint8_t)0x09) /* CAN2 Alternate Function mapping */ +#define GPIO_AF_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ +#define GPIO_AF_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ +#define GPIO_AF_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ + +/** + * @brief AF 10 selection + */ +#define GPIO_AF_OTG_FS ((uint8_t)0xA) /* OTG_FS Alternate Function mapping */ +#define GPIO_AF_OTG_HS ((uint8_t)0xA) /* OTG_HS Alternate Function mapping */ + +/** + * @brief AF 11 selection + */ +#define GPIO_AF_ETH ((uint8_t)0x0B) /* ETHERNET Alternate Function mapping */ + +/** + * @brief AF 12 selection + */ +#define GPIO_AF_FSMC ((uint8_t)0xC) /* FSMC Alternate Function mapping */ +#define GPIO_AF_OTG_HS_FS ((uint8_t)0xC) /* OTG HS configured in FS, Alternate Function mapping */ +#define GPIO_AF_SDIO ((uint8_t)0xC) /* SDIO Alternate Function mapping */ + +/** + * @brief AF 13 selection + */ +#define GPIO_AF_DCMI ((uint8_t)0x0D) /* DCMI Alternate Function mapping */ + +/** + * @brief AF 15 selection + */ +#define GPIO_AF_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ + +#define IS_GPIO_AF(AF) (((AF) == GPIO_AF_RTC_50Hz) || ((AF) == GPIO_AF_TIM14) || \ + ((AF) == GPIO_AF_MCO) || ((AF) == GPIO_AF_TAMPER) || \ + ((AF) == GPIO_AF_SWJ) || ((AF) == GPIO_AF_TRACE) || \ + ((AF) == GPIO_AF_TIM1) || ((AF) == GPIO_AF_TIM2) || \ + ((AF) == GPIO_AF_TIM3) || ((AF) == GPIO_AF_TIM4) || \ + ((AF) == GPIO_AF_TIM5) || ((AF) == GPIO_AF_TIM8) || \ + ((AF) == GPIO_AF_I2C1) || ((AF) == GPIO_AF_I2C2) || \ + ((AF) == GPIO_AF_I2C3) || ((AF) == GPIO_AF_SPI1) || \ + ((AF) == GPIO_AF_SPI2) || ((AF) == GPIO_AF_TIM13) || \ + ((AF) == GPIO_AF_SPI3) || ((AF) == GPIO_AF_TIM14) || \ + ((AF) == GPIO_AF_USART1) || ((AF) == GPIO_AF_USART2) || \ + ((AF) == GPIO_AF_USART3) || ((AF) == GPIO_AF_UART4) || \ + ((AF) == GPIO_AF_UART5) || ((AF) == GPIO_AF_USART6) || \ + ((AF) == GPIO_AF_CAN1) || ((AF) == GPIO_AF_CAN2) || \ + ((AF) == GPIO_AF_OTG_FS) || ((AF) == GPIO_AF_OTG_HS) || \ + ((AF) == GPIO_AF_ETH) || ((AF) == GPIO_AF_FSMC) || \ + ((AF) == GPIO_AF_OTG_HS_FS) || ((AF) == GPIO_AF_SDIO) || \ + ((AF) == GPIO_AF_DCMI) || ((AF) == GPIO_AF_EVENTOUT)) +/** + * @} + */ + +/** @defgroup GPIO_Legacy + * @{ + */ + +#define GPIO_Mode_AIN GPIO_Mode_AN + +#define GPIO_AF_OTG1_FS GPIO_AF_OTG_FS +#define GPIO_AF_OTG2_HS GPIO_AF_OTG_HS +#define GPIO_AF_OTG2_FS GPIO_AF_OTG_HS_FS + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the GPIO configuration to the default reset state ****/ +void GPIO_DeInit(GPIO_TypeDef* GPIOx); + +/* Initialization and Configuration functions *********************************/ +void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct); +void GPIO_StructInit(GPIO_InitTypeDef* GPIO_InitStruct); +void GPIO_PinLockConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); + +/* GPIO Read and Write functions **********************************************/ +uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); +uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx); +uint8_t GPIO_ReadOutputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); +uint16_t GPIO_ReadOutputData(GPIO_TypeDef* GPIOx); +void GPIO_SetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); +void GPIO_ResetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); +void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal); +void GPIO_Write(GPIO_TypeDef* GPIOx, uint16_t PortVal); +void GPIO_ToggleBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); + +/* GPIO Alternate functions configuration function ****************************/ +void GPIO_PinAFConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_GPIO_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_hash.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_hash.h new file mode 100644 index 00000000..62445fe3 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_hash.h @@ -0,0 +1,250 @@ +/** + ****************************************************************************** + * @file stm32f2xx_hash.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the HASH + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_HASH_H +#define __STM32F2xx_HASH_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup HASH + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief HASH Init structure definition + */ +typedef struct +{ + uint32_t HASH_AlgoSelection; /*!< SHA-1 or MD5. This parameter can be a value + of @ref HASH_Algo_Selection */ + uint32_t HASH_AlgoMode; /*!< HASH or HMAC. This parameter can be a value + of @ref HASH_processor_Algorithm_Mode */ + uint32_t HASH_DataType; /*!< 32-bit data, 16-bit data, 8-bit data or + bit-string. This parameter can be a value of + @ref HASH_Data_Type */ + uint32_t HASH_HMACKeyType; /*!< HMAC Short key or HMAC Long Key. This parameter + can be a value of @ref HASH_HMAC_Long_key_only_for_HMAC_mode */ +}HASH_InitTypeDef; + +/** + * @brief HASH message digest result structure definition + */ +typedef struct +{ + uint32_t Data[5]; /*!< Message digest result : 5x 32bit words for SHA1 or + 4x 32bit words for MD5 */ +} HASH_MsgDigest; + +/** + * @brief HASH context swapping structure definition + */ +typedef struct +{ + uint32_t HASH_IMR; + uint32_t HASH_STR; + uint32_t HASH_CR; + uint32_t HASH_CSR[51]; +}HASH_Context; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup HASH_Exported_Constants + * @{ + */ + +/** @defgroup HASH_Algo_Selection + * @{ + */ +#define HASH_AlgoSelection_SHA1 ((uint16_t)0x0000) /*!< HASH function is SHA1 */ +#define HASH_AlgoSelection_MD5 ((uint16_t)0x0080) /*!< HASH function is MD5 */ + +#define IS_HASH_ALGOSELECTION(ALGOSELECTION) (((ALGOSELECTION) == HASH_AlgoSelection_SHA1) || \ + ((ALGOSELECTION) == HASH_AlgoSelection_MD5)) +/** + * @} + */ + +/** @defgroup HASH_processor_Algorithm_Mode + * @{ + */ +#define HASH_AlgoMode_HASH ((uint16_t)0x0000) /*!< Algorithm is HASH */ +#define HASH_AlgoMode_HMAC ((uint16_t)0x0040) /*!< Algorithm is HMAC */ + +#define IS_HASH_ALGOMODE(ALGOMODE) (((ALGOMODE) == HASH_AlgoMode_HASH) || \ + ((ALGOMODE) == HASH_AlgoMode_HMAC)) +/** + * @} + */ + +/** @defgroup HASH_Data_Type + * @{ + */ +#define HASH_DataType_32b ((uint16_t)0x0000) +#define HASH_DataType_16b ((uint16_t)0x0010) +#define HASH_DataType_8b ((uint16_t)0x0020) +#define HASH_DataType_1b ((uint16_t)0x0030) + +#define IS_HASH_DATATYPE(DATATYPE) (((DATATYPE) == HASH_DataType_32b)|| \ + ((DATATYPE) == HASH_DataType_16b)|| \ + ((DATATYPE) == HASH_DataType_8b)|| \ + ((DATATYPE) == HASH_DataType_1b)) +/** + * @} + */ + +/** @defgroup HASH_HMAC_Long_key_only_for_HMAC_mode + * @{ + */ +#define HASH_HMACKeyType_ShortKey ((uint32_t)0x00000000) /*!< HMAC Key is <= 64 bytes */ +#define HASH_HMACKeyType_LongKey ((uint32_t)0x00010000) /*!< HMAC Key is > 64 bytes */ + +#define IS_HASH_HMAC_KEYTYPE(KEYTYPE) (((KEYTYPE) == HASH_HMACKeyType_ShortKey) || \ + ((KEYTYPE) == HASH_HMACKeyType_LongKey)) +/** + * @} + */ + +/** @defgroup Number_of_valid_bits_in_last_word_of_the_message + * @{ + */ +#define IS_HASH_VALIDBITSNUMBER(VALIDBITS) ((VALIDBITS) <= 0x1F) + +/** + * @} + */ + +/** @defgroup HASH_interrupts_definition + * @{ + */ +#define HASH_IT_DINI ((uint8_t)0x01) /*!< A new block can be entered into the input buffer (DIN)*/ +#define HASH_IT_DCI ((uint8_t)0x02) /*!< Digest calculation complete */ + +#define IS_HASH_IT(IT) ((((IT) & (uint8_t)0xFC) == 0x00) && ((IT) != 0x00)) +#define IS_HASH_GET_IT(IT) (((IT) == HASH_IT_DINI) || ((IT) == HASH_IT_DCI)) + +/** + * @} + */ + +/** @defgroup HASH_flags_definition + * @{ + */ +#define HASH_FLAG_DINIS ((uint16_t)0x0001) /*!< 16 locations are free in the DIN : A new block can be entered into the input buffer.*/ +#define HASH_FLAG_DCIS ((uint16_t)0x0002) /*!< Digest calculation complete */ +#define HASH_FLAG_DMAS ((uint16_t)0x0004) /*!< DMA interface is enabled (DMAE=1) or a transfer is ongoing */ +#define HASH_FLAG_BUSY ((uint16_t)0x0008) /*!< The hash core is Busy : processing a block of data */ +#define HASH_FLAG_DINNE ((uint16_t)0x1000) /*!< DIN not empty : The input buffer contains at least one word of data */ + +#define IS_HASH_GET_FLAG(FLAG) (((FLAG) == HASH_FLAG_DINIS) || \ + ((FLAG) == HASH_FLAG_DCIS) || \ + ((FLAG) == HASH_FLAG_DMAS) || \ + ((FLAG) == HASH_FLAG_BUSY) || \ + ((FLAG) == HASH_FLAG_DINNE)) + +#define IS_HASH_CLEAR_FLAG(FLAG)(((FLAG) == HASH_FLAG_DINIS) || \ + ((FLAG) == HASH_FLAG_DCIS)) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the HASH configuration to the default reset state ****/ +void HASH_DeInit(void); + +/* HASH Configuration function ************************************************/ +void HASH_Init(HASH_InitTypeDef* HASH_InitStruct); +void HASH_StructInit(HASH_InitTypeDef* HASH_InitStruct); +void HASH_Reset(void); + +/* HASH Message Digest generation functions ***********************************/ +void HASH_DataIn(uint32_t Data); +uint8_t HASH_GetInFIFOWordsNbr(void); +void HASH_SetLastWordValidBitsNbr(uint16_t ValidNumber); +void HASH_StartDigest(void); +void HASH_GetDigest(HASH_MsgDigest* HASH_MessageDigest); + +/* HASH Context swapping functions ********************************************/ +void HASH_SaveContext(HASH_Context* HASH_ContextSave); +void HASH_RestoreContext(HASH_Context* HASH_ContextRestore); + +/* HASH's DMA interface function **********************************************/ +void HASH_DMACmd(FunctionalState NewState); + +/* HASH Interrupts and flags management functions *****************************/ +void HASH_ITConfig(uint8_t HASH_IT, FunctionalState NewState); +FlagStatus HASH_GetFlagStatus(uint16_t HASH_FLAG); +void HASH_ClearFlag(uint16_t HASH_FLAG); +ITStatus HASH_GetITStatus(uint8_t HASH_IT); +void HASH_ClearITPendingBit(uint8_t HASH_IT); + +/* High Level SHA1 functions **************************************************/ +ErrorStatus HASH_SHA1(uint8_t *Input, uint32_t Ilen, uint8_t Output[20]); +ErrorStatus HMAC_SHA1(uint8_t *Key, uint32_t Keylen, + uint8_t *Input, uint32_t Ilen, + uint8_t Output[20]); + +/* High Level MD5 functions ***************************************************/ +ErrorStatus HASH_MD5(uint8_t *Input, uint32_t Ilen, uint8_t Output[16]); +ErrorStatus HMAC_MD5(uint8_t *Key, uint32_t Keylen, + uint8_t *Input, uint32_t Ilen, + uint8_t Output[16]); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_HASH_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_i2c.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_i2c.h new file mode 100644 index 00000000..bd338884 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_i2c.h @@ -0,0 +1,698 @@ +/** + ****************************************************************************** + * @file stm32f2xx_i2c.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the I2C firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_I2C_H +#define __STM32F2xx_I2C_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup I2C + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief I2C Init structure definition + */ + +typedef struct +{ + uint32_t I2C_ClockSpeed; /*!< Specifies the clock frequency. + This parameter must be set to a value lower than 400kHz */ + + uint16_t I2C_Mode; /*!< Specifies the I2C mode. + This parameter can be a value of @ref I2C_mode */ + + uint16_t I2C_DutyCycle; /*!< Specifies the I2C fast mode duty cycle. + This parameter can be a value of @ref I2C_duty_cycle_in_fast_mode */ + + uint16_t I2C_OwnAddress1; /*!< Specifies the first device own address. + This parameter can be a 7-bit or 10-bit address. */ + + uint16_t I2C_Ack; /*!< Enables or disables the acknowledgement. + This parameter can be a value of @ref I2C_acknowledgement */ + + uint16_t I2C_AcknowledgedAddress; /*!< Specifies if 7-bit or 10-bit address is acknowledged. + This parameter can be a value of @ref I2C_acknowledged_address */ +}I2C_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + + +/** @defgroup I2C_Exported_Constants + * @{ + */ + +#define IS_I2C_ALL_PERIPH(PERIPH) (((PERIPH) == I2C1) || \ + ((PERIPH) == I2C2) || \ + ((PERIPH) == I2C3)) +/** @defgroup I2C_mode + * @{ + */ + +#define I2C_Mode_I2C ((uint16_t)0x0000) +#define I2C_Mode_SMBusDevice ((uint16_t)0x0002) +#define I2C_Mode_SMBusHost ((uint16_t)0x000A) +#define IS_I2C_MODE(MODE) (((MODE) == I2C_Mode_I2C) || \ + ((MODE) == I2C_Mode_SMBusDevice) || \ + ((MODE) == I2C_Mode_SMBusHost)) +/** + * @} + */ + +/** @defgroup I2C_duty_cycle_in_fast_mode + * @{ + */ + +#define I2C_DutyCycle_16_9 ((uint16_t)0x4000) /*!< I2C fast mode Tlow/Thigh = 16/9 */ +#define I2C_DutyCycle_2 ((uint16_t)0xBFFF) /*!< I2C fast mode Tlow/Thigh = 2 */ +#define IS_I2C_DUTY_CYCLE(CYCLE) (((CYCLE) == I2C_DutyCycle_16_9) || \ + ((CYCLE) == I2C_DutyCycle_2)) +/** + * @} + */ + +/** @defgroup I2C_acknowledgement + * @{ + */ + +#define I2C_Ack_Enable ((uint16_t)0x0400) +#define I2C_Ack_Disable ((uint16_t)0x0000) +#define IS_I2C_ACK_STATE(STATE) (((STATE) == I2C_Ack_Enable) || \ + ((STATE) == I2C_Ack_Disable)) +/** + * @} + */ + +/** @defgroup I2C_transfer_direction + * @{ + */ + +#define I2C_Direction_Transmitter ((uint8_t)0x00) +#define I2C_Direction_Receiver ((uint8_t)0x01) +#define IS_I2C_DIRECTION(DIRECTION) (((DIRECTION) == I2C_Direction_Transmitter) || \ + ((DIRECTION) == I2C_Direction_Receiver)) +/** + * @} + */ + +/** @defgroup I2C_acknowledged_address + * @{ + */ + +#define I2C_AcknowledgedAddress_7bit ((uint16_t)0x4000) +#define I2C_AcknowledgedAddress_10bit ((uint16_t)0xC000) +#define IS_I2C_ACKNOWLEDGE_ADDRESS(ADDRESS) (((ADDRESS) == I2C_AcknowledgedAddress_7bit) || \ + ((ADDRESS) == I2C_AcknowledgedAddress_10bit)) +/** + * @} + */ + +/** @defgroup I2C_registers + * @{ + */ + +#define I2C_Register_CR1 ((uint8_t)0x00) +#define I2C_Register_CR2 ((uint8_t)0x04) +#define I2C_Register_OAR1 ((uint8_t)0x08) +#define I2C_Register_OAR2 ((uint8_t)0x0C) +#define I2C_Register_DR ((uint8_t)0x10) +#define I2C_Register_SR1 ((uint8_t)0x14) +#define I2C_Register_SR2 ((uint8_t)0x18) +#define I2C_Register_CCR ((uint8_t)0x1C) +#define I2C_Register_TRISE ((uint8_t)0x20) +#define IS_I2C_REGISTER(REGISTER) (((REGISTER) == I2C_Register_CR1) || \ + ((REGISTER) == I2C_Register_CR2) || \ + ((REGISTER) == I2C_Register_OAR1) || \ + ((REGISTER) == I2C_Register_OAR2) || \ + ((REGISTER) == I2C_Register_DR) || \ + ((REGISTER) == I2C_Register_SR1) || \ + ((REGISTER) == I2C_Register_SR2) || \ + ((REGISTER) == I2C_Register_CCR) || \ + ((REGISTER) == I2C_Register_TRISE)) +/** + * @} + */ + +/** @defgroup I2C_NACK_position + * @{ + */ + +#define I2C_NACKPosition_Next ((uint16_t)0x0800) +#define I2C_NACKPosition_Current ((uint16_t)0xF7FF) +#define IS_I2C_NACK_POSITION(POSITION) (((POSITION) == I2C_NACKPosition_Next) || \ + ((POSITION) == I2C_NACKPosition_Current)) +/** + * @} + */ + +/** @defgroup I2C_SMBus_alert_pin_level + * @{ + */ + +#define I2C_SMBusAlert_Low ((uint16_t)0x2000) +#define I2C_SMBusAlert_High ((uint16_t)0xDFFF) +#define IS_I2C_SMBUS_ALERT(ALERT) (((ALERT) == I2C_SMBusAlert_Low) || \ + ((ALERT) == I2C_SMBusAlert_High)) +/** + * @} + */ + +/** @defgroup I2C_PEC_position + * @{ + */ + +#define I2C_PECPosition_Next ((uint16_t)0x0800) +#define I2C_PECPosition_Current ((uint16_t)0xF7FF) +#define IS_I2C_PEC_POSITION(POSITION) (((POSITION) == I2C_PECPosition_Next) || \ + ((POSITION) == I2C_PECPosition_Current)) +/** + * @} + */ + +/** @defgroup I2C_interrupts_definition + * @{ + */ + +#define I2C_IT_BUF ((uint16_t)0x0400) +#define I2C_IT_EVT ((uint16_t)0x0200) +#define I2C_IT_ERR ((uint16_t)0x0100) +#define IS_I2C_CONFIG_IT(IT) ((((IT) & (uint16_t)0xF8FF) == 0x00) && ((IT) != 0x00)) +/** + * @} + */ + +/** @defgroup I2C_interrupts_definition + * @{ + */ + +#define I2C_IT_SMBALERT ((uint32_t)0x01008000) +#define I2C_IT_TIMEOUT ((uint32_t)0x01004000) +#define I2C_IT_PECERR ((uint32_t)0x01001000) +#define I2C_IT_OVR ((uint32_t)0x01000800) +#define I2C_IT_AF ((uint32_t)0x01000400) +#define I2C_IT_ARLO ((uint32_t)0x01000200) +#define I2C_IT_BERR ((uint32_t)0x01000100) +#define I2C_IT_TXE ((uint32_t)0x06000080) +#define I2C_IT_RXNE ((uint32_t)0x06000040) +#define I2C_IT_STOPF ((uint32_t)0x02000010) +#define I2C_IT_ADD10 ((uint32_t)0x02000008) +#define I2C_IT_BTF ((uint32_t)0x02000004) +#define I2C_IT_ADDR ((uint32_t)0x02000002) +#define I2C_IT_SB ((uint32_t)0x02000001) + +#define IS_I2C_CLEAR_IT(IT) ((((IT) & (uint16_t)0x20FF) == 0x00) && ((IT) != (uint16_t)0x00)) + +#define IS_I2C_GET_IT(IT) (((IT) == I2C_IT_SMBALERT) || ((IT) == I2C_IT_TIMEOUT) || \ + ((IT) == I2C_IT_PECERR) || ((IT) == I2C_IT_OVR) || \ + ((IT) == I2C_IT_AF) || ((IT) == I2C_IT_ARLO) || \ + ((IT) == I2C_IT_BERR) || ((IT) == I2C_IT_TXE) || \ + ((IT) == I2C_IT_RXNE) || ((IT) == I2C_IT_STOPF) || \ + ((IT) == I2C_IT_ADD10) || ((IT) == I2C_IT_BTF) || \ + ((IT) == I2C_IT_ADDR) || ((IT) == I2C_IT_SB)) +/** + * @} + */ + +/** @defgroup I2C_flags_definition + * @{ + */ + +/** + * @brief SR2 register flags + */ + +#define I2C_FLAG_DUALF ((uint32_t)0x00800000) +#define I2C_FLAG_SMBHOST ((uint32_t)0x00400000) +#define I2C_FLAG_SMBDEFAULT ((uint32_t)0x00200000) +#define I2C_FLAG_GENCALL ((uint32_t)0x00100000) +#define I2C_FLAG_TRA ((uint32_t)0x00040000) +#define I2C_FLAG_BUSY ((uint32_t)0x00020000) +#define I2C_FLAG_MSL ((uint32_t)0x00010000) + +/** + * @brief SR1 register flags + */ + +#define I2C_FLAG_SMBALERT ((uint32_t)0x10008000) +#define I2C_FLAG_TIMEOUT ((uint32_t)0x10004000) +#define I2C_FLAG_PECERR ((uint32_t)0x10001000) +#define I2C_FLAG_OVR ((uint32_t)0x10000800) +#define I2C_FLAG_AF ((uint32_t)0x10000400) +#define I2C_FLAG_ARLO ((uint32_t)0x10000200) +#define I2C_FLAG_BERR ((uint32_t)0x10000100) +#define I2C_FLAG_TXE ((uint32_t)0x10000080) +#define I2C_FLAG_RXNE ((uint32_t)0x10000040) +#define I2C_FLAG_STOPF ((uint32_t)0x10000010) +#define I2C_FLAG_ADD10 ((uint32_t)0x10000008) +#define I2C_FLAG_BTF ((uint32_t)0x10000004) +#define I2C_FLAG_ADDR ((uint32_t)0x10000002) +#define I2C_FLAG_SB ((uint32_t)0x10000001) + +#define IS_I2C_CLEAR_FLAG(FLAG) ((((FLAG) & (uint16_t)0x20FF) == 0x00) && ((FLAG) != (uint16_t)0x00)) + +#define IS_I2C_GET_FLAG(FLAG) (((FLAG) == I2C_FLAG_DUALF) || ((FLAG) == I2C_FLAG_SMBHOST) || \ + ((FLAG) == I2C_FLAG_SMBDEFAULT) || ((FLAG) == I2C_FLAG_GENCALL) || \ + ((FLAG) == I2C_FLAG_TRA) || ((FLAG) == I2C_FLAG_BUSY) || \ + ((FLAG) == I2C_FLAG_MSL) || ((FLAG) == I2C_FLAG_SMBALERT) || \ + ((FLAG) == I2C_FLAG_TIMEOUT) || ((FLAG) == I2C_FLAG_PECERR) || \ + ((FLAG) == I2C_FLAG_OVR) || ((FLAG) == I2C_FLAG_AF) || \ + ((FLAG) == I2C_FLAG_ARLO) || ((FLAG) == I2C_FLAG_BERR) || \ + ((FLAG) == I2C_FLAG_TXE) || ((FLAG) == I2C_FLAG_RXNE) || \ + ((FLAG) == I2C_FLAG_STOPF) || ((FLAG) == I2C_FLAG_ADD10) || \ + ((FLAG) == I2C_FLAG_BTF) || ((FLAG) == I2C_FLAG_ADDR) || \ + ((FLAG) == I2C_FLAG_SB)) +/** + * @} + */ + +/** @defgroup I2C_Events + * @{ + */ + +/** + =============================================================================== + I2C Master Events (Events grouped in order of communication) + =============================================================================== + */ + +/** + * @brief Communication start + * + * After sending the START condition (I2C_GenerateSTART() function) the master + * has to wait for this event. It means that the Start condition has been correctly + * released on the I2C bus (the bus is free, no other devices is communicating). + * + */ +/* --EV5 */ +#define I2C_EVENT_MASTER_MODE_SELECT ((uint32_t)0x00030001) /* BUSY, MSL and SB flag */ + +/** + * @brief Address Acknowledge + * + * After checking on EV5 (start condition correctly released on the bus), the + * master sends the address of the slave(s) with which it will communicate + * (I2C_Send7bitAddress() function, it also determines the direction of the communication: + * Master transmitter or Receiver). Then the master has to wait that a slave acknowledges + * his address. If an acknowledge is sent on the bus, one of the following events will + * be set: + * + * 1) In case of Master Receiver (7-bit addressing): the I2C_EVENT_MASTER_RECEIVER_MODE_SELECTED + * event is set. + * + * 2) In case of Master Transmitter (7-bit addressing): the I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED + * is set + * + * 3) In case of 10-Bit addressing mode, the master (just after generating the START + * and checking on EV5) has to send the header of 10-bit addressing mode (I2C_SendData() + * function). Then master should wait on EV9. It means that the 10-bit addressing + * header has been correctly sent on the bus. Then master should send the second part of + * the 10-bit address (LSB) using the function I2C_Send7bitAddress(). Then master + * should wait for event EV6. + * + */ + +/* --EV6 */ +#define I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED ((uint32_t)0x00070082) /* BUSY, MSL, ADDR, TXE and TRA flags */ +#define I2C_EVENT_MASTER_RECEIVER_MODE_SELECTED ((uint32_t)0x00030002) /* BUSY, MSL and ADDR flags */ +/* --EV9 */ +#define I2C_EVENT_MASTER_MODE_ADDRESS10 ((uint32_t)0x00030008) /* BUSY, MSL and ADD10 flags */ + +/** + * @brief Communication events + * + * If a communication is established (START condition generated and slave address + * acknowledged) then the master has to check on one of the following events for + * communication procedures: + * + * 1) Master Receiver mode: The master has to wait on the event EV7 then to read + * the data received from the slave (I2C_ReceiveData() function). + * + * 2) Master Transmitter mode: The master has to send data (I2C_SendData() + * function) then to wait on event EV8 or EV8_2. + * These two events are similar: + * - EV8 means that the data has been written in the data register and is + * being shifted out. + * - EV8_2 means that the data has been physically shifted out and output + * on the bus. + * In most cases, using EV8 is sufficient for the application. + * Using EV8_2 leads to a slower communication but ensure more reliable test. + * EV8_2 is also more suitable than EV8 for testing on the last data transmission + * (before Stop condition generation). + * + * @note In case the user software does not guarantee that this event EV7 is + * managed before the current byte end of transfer, then user may check on EV7 + * and BTF flag at the same time (ie. (I2C_EVENT_MASTER_BYTE_RECEIVED | I2C_FLAG_BTF)). + * In this case the communication may be slower. + * + */ + +/* Master RECEIVER mode -----------------------------*/ +/* --EV7 */ +#define I2C_EVENT_MASTER_BYTE_RECEIVED ((uint32_t)0x00030040) /* BUSY, MSL and RXNE flags */ + +/* Master TRANSMITTER mode --------------------------*/ +/* --EV8 */ +#define I2C_EVENT_MASTER_BYTE_TRANSMITTING ((uint32_t)0x00070080) /* TRA, BUSY, MSL, TXE flags */ +/* --EV8_2 */ +#define I2C_EVENT_MASTER_BYTE_TRANSMITTED ((uint32_t)0x00070084) /* TRA, BUSY, MSL, TXE and BTF flags */ + + +/** + =============================================================================== + I2C Slave Events (Events grouped in order of communication) + =============================================================================== + */ + + +/** + * @brief Communication start events + * + * Wait on one of these events at the start of the communication. It means that + * the I2C peripheral detected a Start condition on the bus (generated by master + * device) followed by the peripheral address. The peripheral generates an ACK + * condition on the bus (if the acknowledge feature is enabled through function + * I2C_AcknowledgeConfig()) and the events listed above are set : + * + * 1) In normal case (only one address managed by the slave), when the address + * sent by the master matches the own address of the peripheral (configured by + * I2C_OwnAddress1 field) the I2C_EVENT_SLAVE_XXX_ADDRESS_MATCHED event is set + * (where XXX could be TRANSMITTER or RECEIVER). + * + * 2) In case the address sent by the master matches the second address of the + * peripheral (configured by the function I2C_OwnAddress2Config() and enabled + * by the function I2C_DualAddressCmd()) the events I2C_EVENT_SLAVE_XXX_SECONDADDRESS_MATCHED + * (where XXX could be TRANSMITTER or RECEIVER) are set. + * + * 3) In case the address sent by the master is General Call (address 0x00) and + * if the General Call is enabled for the peripheral (using function I2C_GeneralCallCmd()) + * the following event is set I2C_EVENT_SLAVE_GENERALCALLADDRESS_MATCHED. + * + */ + +/* --EV1 (all the events below are variants of EV1) */ +/* 1) Case of One Single Address managed by the slave */ +#define I2C_EVENT_SLAVE_RECEIVER_ADDRESS_MATCHED ((uint32_t)0x00020002) /* BUSY and ADDR flags */ +#define I2C_EVENT_SLAVE_TRANSMITTER_ADDRESS_MATCHED ((uint32_t)0x00060082) /* TRA, BUSY, TXE and ADDR flags */ + +/* 2) Case of Dual address managed by the slave */ +#define I2C_EVENT_SLAVE_RECEIVER_SECONDADDRESS_MATCHED ((uint32_t)0x00820000) /* DUALF and BUSY flags */ +#define I2C_EVENT_SLAVE_TRANSMITTER_SECONDADDRESS_MATCHED ((uint32_t)0x00860080) /* DUALF, TRA, BUSY and TXE flags */ + +/* 3) Case of General Call enabled for the slave */ +#define I2C_EVENT_SLAVE_GENERALCALLADDRESS_MATCHED ((uint32_t)0x00120000) /* GENCALL and BUSY flags */ + +/** + * @brief Communication events + * + * Wait on one of these events when EV1 has already been checked and: + * + * - Slave RECEIVER mode: + * - EV2: When the application is expecting a data byte to be received. + * - EV4: When the application is expecting the end of the communication: master + * sends a stop condition and data transmission is stopped. + * + * - Slave Transmitter mode: + * - EV3: When a byte has been transmitted by the slave and the application is expecting + * the end of the byte transmission. The two events I2C_EVENT_SLAVE_BYTE_TRANSMITTED and + * I2C_EVENT_SLAVE_BYTE_TRANSMITTING are similar. The second one can optionally be + * used when the user software doesn't guarantee the EV3 is managed before the + * current byte end of transfer. + * - EV3_2: When the master sends a NACK in order to tell slave that data transmission + * shall end (before sending the STOP condition). In this case slave has to stop sending + * data bytes and expect a Stop condition on the bus. + * + * @note In case the user software does not guarantee that the event EV2 is + * managed before the current byte end of transfer, then user may check on EV2 + * and BTF flag at the same time (ie. (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_BTF)). + * In this case the communication may be slower. + * + */ + +/* Slave RECEIVER mode --------------------------*/ +/* --EV2 */ +#define I2C_EVENT_SLAVE_BYTE_RECEIVED ((uint32_t)0x00020040) /* BUSY and RXNE flags */ +/* --EV4 */ +#define I2C_EVENT_SLAVE_STOP_DETECTED ((uint32_t)0x00000010) /* STOPF flag */ + +/* Slave TRANSMITTER mode -----------------------*/ +/* --EV3 */ +#define I2C_EVENT_SLAVE_BYTE_TRANSMITTED ((uint32_t)0x00060084) /* TRA, BUSY, TXE and BTF flags */ +#define I2C_EVENT_SLAVE_BYTE_TRANSMITTING ((uint32_t)0x00060080) /* TRA, BUSY and TXE flags */ +/* --EV3_2 */ +#define I2C_EVENT_SLAVE_ACK_FAILURE ((uint32_t)0x00000400) /* AF flag */ + +/* + =============================================================================== + End of Events Description + =============================================================================== + */ + +#define IS_I2C_EVENT(EVENT) (((EVENT) == I2C_EVENT_SLAVE_TRANSMITTER_ADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_RECEIVER_ADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_TRANSMITTER_SECONDADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_RECEIVER_SECONDADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_GENERALCALLADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_BYTE_RECEIVED) || \ + ((EVENT) == (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_DUALF)) || \ + ((EVENT) == (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_GENCALL)) || \ + ((EVENT) == I2C_EVENT_SLAVE_BYTE_TRANSMITTED) || \ + ((EVENT) == (I2C_EVENT_SLAVE_BYTE_TRANSMITTED | I2C_FLAG_DUALF)) || \ + ((EVENT) == (I2C_EVENT_SLAVE_BYTE_TRANSMITTED | I2C_FLAG_GENCALL)) || \ + ((EVENT) == I2C_EVENT_SLAVE_STOP_DETECTED) || \ + ((EVENT) == I2C_EVENT_MASTER_MODE_SELECT) || \ + ((EVENT) == I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED) || \ + ((EVENT) == I2C_EVENT_MASTER_RECEIVER_MODE_SELECTED) || \ + ((EVENT) == I2C_EVENT_MASTER_BYTE_RECEIVED) || \ + ((EVENT) == I2C_EVENT_MASTER_BYTE_TRANSMITTED) || \ + ((EVENT) == I2C_EVENT_MASTER_BYTE_TRANSMITTING) || \ + ((EVENT) == I2C_EVENT_MASTER_MODE_ADDRESS10) || \ + ((EVENT) == I2C_EVENT_SLAVE_ACK_FAILURE)) +/** + * @} + */ + +/** @defgroup I2C_own_address1 + * @{ + */ + +#define IS_I2C_OWN_ADDRESS1(ADDRESS1) ((ADDRESS1) <= 0x3FF) +/** + * @} + */ + +/** @defgroup I2C_clock_speed + * @{ + */ + +#define IS_I2C_CLOCK_SPEED(SPEED) (((SPEED) >= 0x1) && ((SPEED) <= 400000)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the I2C configuration to the default reset state *****/ +void I2C_DeInit(I2C_TypeDef* I2Cx); + +/* Initialization and Configuration functions *********************************/ +void I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct); +void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct); +void I2C_Cmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_GenerateSTART(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_GenerateSTOP(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_Send7bitAddress(I2C_TypeDef* I2Cx, uint8_t Address, uint8_t I2C_Direction); +void I2C_AcknowledgeConfig(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_OwnAddress2Config(I2C_TypeDef* I2Cx, uint8_t Address); +void I2C_DualAddressCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_GeneralCallCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_SoftwareResetCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_StretchClockCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_FastModeDutyCycleConfig(I2C_TypeDef* I2Cx, uint16_t I2C_DutyCycle); +void I2C_NACKPositionConfig(I2C_TypeDef* I2Cx, uint16_t I2C_NACKPosition); +void I2C_SMBusAlertConfig(I2C_TypeDef* I2Cx, uint16_t I2C_SMBusAlert); +void I2C_ARPCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); + +/* Data transfers functions ***************************************************/ +void I2C_SendData(I2C_TypeDef* I2Cx, uint8_t Data); +uint8_t I2C_ReceiveData(I2C_TypeDef* I2Cx); + +/* PEC management functions ***************************************************/ +void I2C_TransmitPEC(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_PECPositionConfig(I2C_TypeDef* I2Cx, uint16_t I2C_PECPosition); +void I2C_CalculatePEC(I2C_TypeDef* I2Cx, FunctionalState NewState); +uint8_t I2C_GetPEC(I2C_TypeDef* I2Cx); + +/* DMA transfers management functions *****************************************/ +void I2C_DMACmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_DMALastTransferCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); + +/* Interrupts, events and flags management functions **************************/ +uint16_t I2C_ReadRegister(I2C_TypeDef* I2Cx, uint8_t I2C_Register); +void I2C_ITConfig(I2C_TypeDef* I2Cx, uint16_t I2C_IT, FunctionalState NewState); + +/* + =============================================================================== + I2C State Monitoring Functions + =============================================================================== + This I2C driver provides three different ways for I2C state monitoring + depending on the application requirements and constraints: + + + 1. Basic state monitoring (Using I2C_CheckEvent() function) + ----------------------------------------------------------- + It compares the status registers (SR1 and SR2) content to a given event + (can be the combination of one or more flags). + It returns SUCCESS if the current status includes the given flags + and returns ERROR if one or more flags are missing in the current status. + + - When to use + - This function is suitable for most applications as well as for startup + activity since the events are fully described in the product reference + manual (RM0033). + - It is also suitable for users who need to define their own events. + + - Limitations + - If an error occurs (ie. error flags are set besides to the monitored + flags), the I2C_CheckEvent() function may return SUCCESS despite + the communication hold or corrupted real state. + In this case, it is advised to use error interrupts to monitor + the error events and handle them in the interrupt IRQ handler. + + Note + For error management, it is advised to use the following functions: + - I2C_ITConfig() to configure and enable the error interrupts (I2C_IT_ERR). + - I2Cx_ER_IRQHandler() which is called when the error interrupt occurs. + Where x is the peripheral instance (I2C1, I2C2 ...) + - I2C_GetFlagStatus() or I2C_GetITStatus() to be called into the + I2Cx_ER_IRQHandler() function in order to determine which error occurred. + - I2C_ClearFlag() or I2C_ClearITPendingBit() and/or I2C_SoftwareResetCmd() + and/or I2C_GenerateStop() in order to clear the error flag and source + and return to correct communication status. + + + 2. Advanced state monitoring (Using the function I2C_GetLastEvent()) + -------------------------------------------------------------------- + Using the function I2C_GetLastEvent() which returns the image of both status + registers in a single word (uint32_t) (Status Register 2 value is shifted left + by 16 bits and concatenated to Status Register 1). + + - When to use + - This function is suitable for the same applications above but it + allows to overcome the mentioned limitation of I2C_GetFlagStatus() + function. + - The returned value could be compared to events already defined in + this file or to custom values defined by user. + This function is suitable when multiple flags are monitored at the + same time. + - At the opposite of I2C_CheckEvent() function, this function allows + user to choose when an event is accepted (when all events flags are + set and no other flags are set or just when the needed flags are set + like I2C_CheckEvent() function. + + - Limitations + - User may need to define his own events. + - Same remark concerning the error management is applicable for this + function if user decides to check only regular communication flags + (and ignores error flags). + + + 3. Flag-based state monitoring (Using the function I2C_GetFlagStatus()) + ----------------------------------------------------------------------- + + Using the function I2C_GetFlagStatus() which simply returns the status of + one single flag (ie. I2C_FLAG_RXNE ...). + + - When to use + - This function could be used for specific applications or in debug + phase. + - It is suitable when only one flag checking is needed (most I2C + events are monitored through multiple flags). + - Limitations: + - When calling this function, the Status register is accessed. + Some flags are cleared when the status register is accessed. + So checking the status of one Flag, may clear other ones. + - Function may need to be called twice or more in order to monitor + one single event. + */ + +/* + =============================================================================== + 1. Basic state monitoring + =============================================================================== + */ +ErrorStatus I2C_CheckEvent(I2C_TypeDef* I2Cx, uint32_t I2C_EVENT); +/* + =============================================================================== + 2. Advanced state monitoring + =============================================================================== + */ +uint32_t I2C_GetLastEvent(I2C_TypeDef* I2Cx); +/* + =============================================================================== + 3. Flag-based state monitoring + =============================================================================== + */ +FlagStatus I2C_GetFlagStatus(I2C_TypeDef* I2Cx, uint32_t I2C_FLAG); + + +void I2C_ClearFlag(I2C_TypeDef* I2Cx, uint32_t I2C_FLAG); +ITStatus I2C_GetITStatus(I2C_TypeDef* I2Cx, uint32_t I2C_IT); +void I2C_ClearITPendingBit(I2C_TypeDef* I2Cx, uint32_t I2C_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_I2C_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_iwdg.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_iwdg.h new file mode 100644 index 00000000..e689bd76 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_iwdg.h @@ -0,0 +1,131 @@ +/** + ****************************************************************************** + * @file stm32f2xx_iwdg.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the IWDG + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_IWDG_H +#define __STM32F2xx_IWDG_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup IWDG + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup IWDG_Exported_Constants + * @{ + */ + +/** @defgroup IWDG_WriteAccess + * @{ + */ +#define IWDG_WriteAccess_Enable ((uint16_t)0x5555) +#define IWDG_WriteAccess_Disable ((uint16_t)0x0000) +#define IS_IWDG_WRITE_ACCESS(ACCESS) (((ACCESS) == IWDG_WriteAccess_Enable) || \ + ((ACCESS) == IWDG_WriteAccess_Disable)) +/** + * @} + */ + +/** @defgroup IWDG_prescaler + * @{ + */ +#define IWDG_Prescaler_4 ((uint8_t)0x00) +#define IWDG_Prescaler_8 ((uint8_t)0x01) +#define IWDG_Prescaler_16 ((uint8_t)0x02) +#define IWDG_Prescaler_32 ((uint8_t)0x03) +#define IWDG_Prescaler_64 ((uint8_t)0x04) +#define IWDG_Prescaler_128 ((uint8_t)0x05) +#define IWDG_Prescaler_256 ((uint8_t)0x06) +#define IS_IWDG_PRESCALER(PRESCALER) (((PRESCALER) == IWDG_Prescaler_4) || \ + ((PRESCALER) == IWDG_Prescaler_8) || \ + ((PRESCALER) == IWDG_Prescaler_16) || \ + ((PRESCALER) == IWDG_Prescaler_32) || \ + ((PRESCALER) == IWDG_Prescaler_64) || \ + ((PRESCALER) == IWDG_Prescaler_128)|| \ + ((PRESCALER) == IWDG_Prescaler_256)) +/** + * @} + */ + +/** @defgroup IWDG_Flag + * @{ + */ +#define IWDG_FLAG_PVU ((uint16_t)0x0001) +#define IWDG_FLAG_RVU ((uint16_t)0x0002) +#define IS_IWDG_FLAG(FLAG) (((FLAG) == IWDG_FLAG_PVU) || ((FLAG) == IWDG_FLAG_RVU)) +#define IS_IWDG_RELOAD(RELOAD) ((RELOAD) <= 0xFFF) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Prescaler and Counter configuration functions ******************************/ +void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess); +void IWDG_SetPrescaler(uint8_t IWDG_Prescaler); +void IWDG_SetReload(uint16_t Reload); +void IWDG_ReloadCounter(void); + +/* IWDG activation function ***************************************************/ +void IWDG_Enable(void); + +/* Flag management function ***************************************************/ +FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_IWDG_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_pwr.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_pwr.h new file mode 100644 index 00000000..7a9cf3ec --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_pwr.h @@ -0,0 +1,166 @@ +/** + ****************************************************************************** + * @file stm32f2xx_pwr.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the PWR firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_PWR_H +#define __STM32F2xx_PWR_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup PWR + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup PWR_Exported_Constants + * @{ + */ + +/** @defgroup PWR_PVD_detection_level + * @{ + */ + +#define PWR_PVDLevel_0 PWR_CR_PLS_LEV0 +#define PWR_PVDLevel_1 PWR_CR_PLS_LEV1 +#define PWR_PVDLevel_2 PWR_CR_PLS_LEV2 +#define PWR_PVDLevel_3 PWR_CR_PLS_LEV3 +#define PWR_PVDLevel_4 PWR_CR_PLS_LEV4 +#define PWR_PVDLevel_5 PWR_CR_PLS_LEV5 +#define PWR_PVDLevel_6 PWR_CR_PLS_LEV6 +#define PWR_PVDLevel_7 PWR_CR_PLS_LEV7 + +#define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLevel_0) || ((LEVEL) == PWR_PVDLevel_1)|| \ + ((LEVEL) == PWR_PVDLevel_2) || ((LEVEL) == PWR_PVDLevel_3)|| \ + ((LEVEL) == PWR_PVDLevel_4) || ((LEVEL) == PWR_PVDLevel_5)|| \ + ((LEVEL) == PWR_PVDLevel_6) || ((LEVEL) == PWR_PVDLevel_7)) +/** + * @} + */ + + +/** @defgroup PWR_Regulator_state_in_STOP_mode + * @{ + */ + +#define PWR_Regulator_ON ((uint32_t)0x00000000) +#define PWR_Regulator_LowPower PWR_CR_LPDS +#define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_Regulator_ON) || \ + ((REGULATOR) == PWR_Regulator_LowPower)) +/** + * @} + */ + +/** @defgroup PWR_STOP_mode_entry + * @{ + */ + +#define PWR_STOPEntry_WFI ((uint8_t)0x01) +#define PWR_STOPEntry_WFE ((uint8_t)0x02) +#define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPEntry_WFI) || ((ENTRY) == PWR_STOPEntry_WFE)) + +/** + * @} + */ + +/** @defgroup PWR_Flag + * @{ + */ + +#define PWR_FLAG_WU PWR_CSR_WUF +#define PWR_FLAG_SB PWR_CSR_SBF +#define PWR_FLAG_PVDO PWR_CSR_PVDO +#define PWR_FLAG_BRR PWR_CSR_BRR + +#define IS_PWR_GET_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB) || \ + ((FLAG) == PWR_FLAG_PVDO) || ((FLAG) == PWR_FLAG_BRR)) + +#define IS_PWR_CLEAR_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the PWR configuration to the default reset state ******/ +void PWR_DeInit(void); + +/* Backup Domain Access function **********************************************/ +void PWR_BackupAccessCmd(FunctionalState NewState); + +/* PVD configuration functions ************************************************/ +void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel); +void PWR_PVDCmd(FunctionalState NewState); + +/* WakeUp pins configuration functions ****************************************/ +void PWR_WakeUpPinCmd(FunctionalState NewState); + +/* Backup Regulator configuration functions ***********************************/ +void PWR_BackupRegulatorCmd(FunctionalState NewState); + +/* FLASH Power Down configuration functions ***********************************/ +void PWR_FlashPowerDownCmd(FunctionalState NewState); + +/* Low Power modes configuration functions ************************************/ +void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry); +void PWR_EnterSTANDBYMode(void); + +/* Flags management functions *************************************************/ +FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG); +void PWR_ClearFlag(uint32_t PWR_FLAG); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_PWR_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rcc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rcc.h new file mode 100644 index 00000000..cfe0f0bc --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rcc.h @@ -0,0 +1,515 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rcc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the RCC firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_RCC_H +#define __STM32F2xx_RCC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup RCC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +typedef struct +{ + uint32_t SYSCLK_Frequency; /*!< SYSCLK clock frequency expressed in Hz */ + uint32_t HCLK_Frequency; /*!< HCLK clock frequency expressed in Hz */ + uint32_t PCLK1_Frequency; /*!< PCLK1 clock frequency expressed in Hz */ + uint32_t PCLK2_Frequency; /*!< PCLK2 clock frequency expressed in Hz */ +}RCC_ClocksTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup RCC_Exported_Constants + * @{ + */ + +/** @defgroup RCC_HSE_configuration + * @{ + */ +#define RCC_HSE_OFF ((uint8_t)0x00) +#define RCC_HSE_ON ((uint8_t)0x01) +#define RCC_HSE_Bypass ((uint8_t)0x05) +#define IS_RCC_HSE(HSE) (((HSE) == RCC_HSE_OFF) || ((HSE) == RCC_HSE_ON) || \ + ((HSE) == RCC_HSE_Bypass)) +/** + * @} + */ + +/** @defgroup RCC_PLL_Clock_Source + * @{ + */ +#define RCC_PLLSource_HSI ((uint32_t)0x00000000) +#define RCC_PLLSource_HSE ((uint32_t)0x00400000) +#define IS_RCC_PLL_SOURCE(SOURCE) (((SOURCE) == RCC_PLLSource_HSI) || \ + ((SOURCE) == RCC_PLLSource_HSE)) +#define IS_RCC_PLLM_VALUE(VALUE) ((VALUE) <= 63) +#define IS_RCC_PLLN_VALUE(VALUE) ((192 <= (VALUE)) && ((VALUE) <= 432)) +#define IS_RCC_PLLP_VALUE(VALUE) (((VALUE) == 2) || ((VALUE) == 4) || ((VALUE) == 6) || ((VALUE) == 8)) +#define IS_RCC_PLLQ_VALUE(VALUE) ((4 <= (VALUE)) && ((VALUE) <= 15)) + +#define IS_RCC_PLLI2SN_VALUE(VALUE) ((192 <= (VALUE)) && ((VALUE) <= 432)) +#define IS_RCC_PLLI2SR_VALUE(VALUE) ((2 <= (VALUE)) && ((VALUE) <= 7)) +/** + * @} + */ + +/** @defgroup RCC_System_Clock_Source + * @{ + */ +#define RCC_SYSCLKSource_HSI ((uint32_t)0x00000000) +#define RCC_SYSCLKSource_HSE ((uint32_t)0x00000001) +#define RCC_SYSCLKSource_PLLCLK ((uint32_t)0x00000002) +#define IS_RCC_SYSCLK_SOURCE(SOURCE) (((SOURCE) == RCC_SYSCLKSource_HSI) || \ + ((SOURCE) == RCC_SYSCLKSource_HSE) || \ + ((SOURCE) == RCC_SYSCLKSource_PLLCLK)) +/** + * @} + */ + +/** @defgroup RCC_AHB_Clock_Source + * @{ + */ +#define RCC_SYSCLK_Div1 ((uint32_t)0x00000000) +#define RCC_SYSCLK_Div2 ((uint32_t)0x00000080) +#define RCC_SYSCLK_Div4 ((uint32_t)0x00000090) +#define RCC_SYSCLK_Div8 ((uint32_t)0x000000A0) +#define RCC_SYSCLK_Div16 ((uint32_t)0x000000B0) +#define RCC_SYSCLK_Div64 ((uint32_t)0x000000C0) +#define RCC_SYSCLK_Div128 ((uint32_t)0x000000D0) +#define RCC_SYSCLK_Div256 ((uint32_t)0x000000E0) +#define RCC_SYSCLK_Div512 ((uint32_t)0x000000F0) +#define IS_RCC_HCLK(HCLK) (((HCLK) == RCC_SYSCLK_Div1) || ((HCLK) == RCC_SYSCLK_Div2) || \ + ((HCLK) == RCC_SYSCLK_Div4) || ((HCLK) == RCC_SYSCLK_Div8) || \ + ((HCLK) == RCC_SYSCLK_Div16) || ((HCLK) == RCC_SYSCLK_Div64) || \ + ((HCLK) == RCC_SYSCLK_Div128) || ((HCLK) == RCC_SYSCLK_Div256) || \ + ((HCLK) == RCC_SYSCLK_Div512)) +/** + * @} + */ + +/** @defgroup RCC_APB1_APB2_Clock_Source + * @{ + */ +#define RCC_HCLK_Div1 ((uint32_t)0x00000000) +#define RCC_HCLK_Div2 ((uint32_t)0x00001000) +#define RCC_HCLK_Div4 ((uint32_t)0x00001400) +#define RCC_HCLK_Div8 ((uint32_t)0x00001800) +#define RCC_HCLK_Div16 ((uint32_t)0x00001C00) +#define IS_RCC_PCLK(PCLK) (((PCLK) == RCC_HCLK_Div1) || ((PCLK) == RCC_HCLK_Div2) || \ + ((PCLK) == RCC_HCLK_Div4) || ((PCLK) == RCC_HCLK_Div8) || \ + ((PCLK) == RCC_HCLK_Div16)) +/** + * @} + */ + +/** @defgroup RCC_Interrupt_Source + * @{ + */ +#define RCC_IT_LSIRDY ((uint8_t)0x01) +#define RCC_IT_LSERDY ((uint8_t)0x02) +#define RCC_IT_HSIRDY ((uint8_t)0x04) +#define RCC_IT_HSERDY ((uint8_t)0x08) +#define RCC_IT_PLLRDY ((uint8_t)0x10) +#define RCC_IT_PLLI2SRDY ((uint8_t)0x20) +#define RCC_IT_CSS ((uint8_t)0x80) +#define IS_RCC_IT(IT) ((((IT) & (uint8_t)0xC0) == 0x00) && ((IT) != 0x00)) +#define IS_RCC_GET_IT(IT) (((IT) == RCC_IT_LSIRDY) || ((IT) == RCC_IT_LSERDY) || \ + ((IT) == RCC_IT_HSIRDY) || ((IT) == RCC_IT_HSERDY) || \ + ((IT) == RCC_IT_PLLRDY) || ((IT) == RCC_IT_CSS) || \ + ((IT) == RCC_IT_PLLI2SRDY)) +#define IS_RCC_CLEAR_IT(IT) ((((IT) & (uint8_t)0x40) == 0x00) && ((IT) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_LSE_Configuration + * @{ + */ +#define RCC_LSE_OFF ((uint8_t)0x00) +#define RCC_LSE_ON ((uint8_t)0x01) +#define RCC_LSE_Bypass ((uint8_t)0x04) +#define IS_RCC_LSE(LSE) (((LSE) == RCC_LSE_OFF) || ((LSE) == RCC_LSE_ON) || \ + ((LSE) == RCC_LSE_Bypass)) +/** + * @} + */ + +/** @defgroup RCC_RTC_Clock_Source + * @{ + */ +#define RCC_RTCCLKSource_LSE ((uint32_t)0x00000100) +#define RCC_RTCCLKSource_LSI ((uint32_t)0x00000200) +#define RCC_RTCCLKSource_HSE_Div2 ((uint32_t)0x00020300) +#define RCC_RTCCLKSource_HSE_Div3 ((uint32_t)0x00030300) +#define RCC_RTCCLKSource_HSE_Div4 ((uint32_t)0x00040300) +#define RCC_RTCCLKSource_HSE_Div5 ((uint32_t)0x00050300) +#define RCC_RTCCLKSource_HSE_Div6 ((uint32_t)0x00060300) +#define RCC_RTCCLKSource_HSE_Div7 ((uint32_t)0x00070300) +#define RCC_RTCCLKSource_HSE_Div8 ((uint32_t)0x00080300) +#define RCC_RTCCLKSource_HSE_Div9 ((uint32_t)0x00090300) +#define RCC_RTCCLKSource_HSE_Div10 ((uint32_t)0x000A0300) +#define RCC_RTCCLKSource_HSE_Div11 ((uint32_t)0x000B0300) +#define RCC_RTCCLKSource_HSE_Div12 ((uint32_t)0x000C0300) +#define RCC_RTCCLKSource_HSE_Div13 ((uint32_t)0x000D0300) +#define RCC_RTCCLKSource_HSE_Div14 ((uint32_t)0x000E0300) +#define RCC_RTCCLKSource_HSE_Div15 ((uint32_t)0x000F0300) +#define RCC_RTCCLKSource_HSE_Div16 ((uint32_t)0x00100300) +#define RCC_RTCCLKSource_HSE_Div17 ((uint32_t)0x00110300) +#define RCC_RTCCLKSource_HSE_Div18 ((uint32_t)0x00120300) +#define RCC_RTCCLKSource_HSE_Div19 ((uint32_t)0x00130300) +#define RCC_RTCCLKSource_HSE_Div20 ((uint32_t)0x00140300) +#define RCC_RTCCLKSource_HSE_Div21 ((uint32_t)0x00150300) +#define RCC_RTCCLKSource_HSE_Div22 ((uint32_t)0x00160300) +#define RCC_RTCCLKSource_HSE_Div23 ((uint32_t)0x00170300) +#define RCC_RTCCLKSource_HSE_Div24 ((uint32_t)0x00180300) +#define RCC_RTCCLKSource_HSE_Div25 ((uint32_t)0x00190300) +#define RCC_RTCCLKSource_HSE_Div26 ((uint32_t)0x001A0300) +#define RCC_RTCCLKSource_HSE_Div27 ((uint32_t)0x001B0300) +#define RCC_RTCCLKSource_HSE_Div28 ((uint32_t)0x001C0300) +#define RCC_RTCCLKSource_HSE_Div29 ((uint32_t)0x001D0300) +#define RCC_RTCCLKSource_HSE_Div30 ((uint32_t)0x001E0300) +#define RCC_RTCCLKSource_HSE_Div31 ((uint32_t)0x001F0300) +#define IS_RCC_RTCCLK_SOURCE(SOURCE) (((SOURCE) == RCC_RTCCLKSource_LSE) || \ + ((SOURCE) == RCC_RTCCLKSource_LSI) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div2) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div3) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div4) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div5) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div6) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div7) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div8) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div9) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div10) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div11) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div12) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div13) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div14) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div15) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div16) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div17) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div18) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div19) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div20) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div21) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div22) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div23) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div24) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div25) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div26) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div27) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div28) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div29) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div30) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div31)) +/** + * @} + */ + +/** @defgroup RCC_I2S_Clock_Source + * @{ + */ +#define RCC_I2S2CLKSource_PLLI2S ((uint8_t)0x00) +#define RCC_I2S2CLKSource_Ext ((uint8_t)0x01) + +#define IS_RCC_I2SCLK_SOURCE(SOURCE) (((SOURCE) == RCC_I2S2CLKSource_PLLI2S) || ((SOURCE) == RCC_I2S2CLKSource_Ext)) +/** + * @} + */ + +/** @defgroup RCC_AHB1_Peripherals + * @{ + */ +#define RCC_AHB1Periph_GPIOA ((uint32_t)0x00000001) +#define RCC_AHB1Periph_GPIOB ((uint32_t)0x00000002) +#define RCC_AHB1Periph_GPIOC ((uint32_t)0x00000004) +#define RCC_AHB1Periph_GPIOD ((uint32_t)0x00000008) +#define RCC_AHB1Periph_GPIOE ((uint32_t)0x00000010) +#define RCC_AHB1Periph_GPIOF ((uint32_t)0x00000020) +#define RCC_AHB1Periph_GPIOG ((uint32_t)0x00000040) +#define RCC_AHB1Periph_GPIOH ((uint32_t)0x00000080) +#define RCC_AHB1Periph_GPIOI ((uint32_t)0x00000100) +#define RCC_AHB1Periph_CRC ((uint32_t)0x00001000) +#define RCC_AHB1Periph_FLITF ((uint32_t)0x00008000) +#define RCC_AHB1Periph_SRAM1 ((uint32_t)0x00010000) +#define RCC_AHB1Periph_SRAM2 ((uint32_t)0x00020000) +#define RCC_AHB1Periph_BKPSRAM ((uint32_t)0x00040000) +#define RCC_AHB1Periph_DMA1 ((uint32_t)0x00200000) +#define RCC_AHB1Periph_DMA2 ((uint32_t)0x00400000) +#define RCC_AHB1Periph_ETH_MAC ((uint32_t)0x02000000) +#define RCC_AHB1Periph_ETH_MAC_Tx ((uint32_t)0x04000000) +#define RCC_AHB1Periph_ETH_MAC_Rx ((uint32_t)0x08000000) +#define RCC_AHB1Periph_ETH_MAC_PTP ((uint32_t)0x10000000) +#define RCC_AHB1Periph_OTG_HS ((uint32_t)0x20000000) +#define RCC_AHB1Periph_OTG_HS_ULPI ((uint32_t)0x40000000) +#define IS_RCC_AHB1_CLOCK_PERIPH(PERIPH) ((((PERIPH) & 0x819BEE00) == 0x00) && ((PERIPH) != 0x00)) +#define IS_RCC_AHB1_RESET_PERIPH(PERIPH) ((((PERIPH) & 0xDD9FEE00) == 0x00) && ((PERIPH) != 0x00)) +#define IS_RCC_AHB1_LPMODE_PERIPH(PERIPH) ((((PERIPH) & 0x81986E00) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_AHB2_Peripherals + * @{ + */ +#define RCC_AHB2Periph_DCMI ((uint32_t)0x00000001) +#define RCC_AHB2Periph_CRYP ((uint32_t)0x00000010) +#define RCC_AHB2Periph_HASH ((uint32_t)0x00000020) +#define RCC_AHB2Periph_RNG ((uint32_t)0x00000040) +#define RCC_AHB2Periph_OTG_FS ((uint32_t)0x00000080) +#define IS_RCC_AHB2_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFF0E) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_AHB3_Peripherals + * @{ + */ +#define RCC_AHB3Periph_FSMC ((uint32_t)0x00000001) +#define IS_RCC_AHB3_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFFE) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_APB1_Peripherals + * @{ + */ +#define RCC_APB1Periph_TIM2 ((uint32_t)0x00000001) +#define RCC_APB1Periph_TIM3 ((uint32_t)0x00000002) +#define RCC_APB1Periph_TIM4 ((uint32_t)0x00000004) +#define RCC_APB1Periph_TIM5 ((uint32_t)0x00000008) +#define RCC_APB1Periph_TIM6 ((uint32_t)0x00000010) +#define RCC_APB1Periph_TIM7 ((uint32_t)0x00000020) +#define RCC_APB1Periph_TIM12 ((uint32_t)0x00000040) +#define RCC_APB1Periph_TIM13 ((uint32_t)0x00000080) +#define RCC_APB1Periph_TIM14 ((uint32_t)0x00000100) +#define RCC_APB1Periph_WWDG ((uint32_t)0x00000800) +#define RCC_APB1Periph_SPI2 ((uint32_t)0x00004000) +#define RCC_APB1Periph_SPI3 ((uint32_t)0x00008000) +#define RCC_APB1Periph_USART2 ((uint32_t)0x00020000) +#define RCC_APB1Periph_USART3 ((uint32_t)0x00040000) +#define RCC_APB1Periph_UART4 ((uint32_t)0x00080000) +#define RCC_APB1Periph_UART5 ((uint32_t)0x00100000) +#define RCC_APB1Periph_I2C1 ((uint32_t)0x00200000) +#define RCC_APB1Periph_I2C2 ((uint32_t)0x00400000) +#define RCC_APB1Periph_I2C3 ((uint32_t)0x00800000) +#define RCC_APB1Periph_CAN1 ((uint32_t)0x02000000) +#define RCC_APB1Periph_CAN2 ((uint32_t)0x04000000) +#define RCC_APB1Periph_PWR ((uint32_t)0x10000000) +#define RCC_APB1Periph_DAC ((uint32_t)0x20000000) +#define IS_RCC_APB1_PERIPH(PERIPH) ((((PERIPH) & 0xC9013600) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_APB2_Peripherals + * @{ + */ +#define RCC_APB2Periph_TIM1 ((uint32_t)0x00000001) +#define RCC_APB2Periph_TIM8 ((uint32_t)0x00000002) +#define RCC_APB2Periph_USART1 ((uint32_t)0x00000010) +#define RCC_APB2Periph_USART6 ((uint32_t)0x00000020) +#define RCC_APB2Periph_ADC ((uint32_t)0x00000100) +#define RCC_APB2Periph_ADC1 ((uint32_t)0x00000100) +#define RCC_APB2Periph_ADC2 ((uint32_t)0x00000200) +#define RCC_APB2Periph_ADC3 ((uint32_t)0x00000400) +#define RCC_APB2Periph_SDIO ((uint32_t)0x00000800) +#define RCC_APB2Periph_SPI1 ((uint32_t)0x00001000) +#define RCC_APB2Periph_SYSCFG ((uint32_t)0x00004000) +#define RCC_APB2Periph_TIM9 ((uint32_t)0x00010000) +#define RCC_APB2Periph_TIM10 ((uint32_t)0x00020000) +#define RCC_APB2Periph_TIM11 ((uint32_t)0x00040000) +#define IS_RCC_APB2_PERIPH(PERIPH) ((((PERIPH) & 0xFFF8A0CC) == 0x00) && ((PERIPH) != 0x00)) +#define IS_RCC_APB2_RESET_PERIPH(PERIPH) ((((PERIPH) & 0xFFF8A6CC) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_MCO1_Clock_Source_Prescaler + * @{ + */ +#define RCC_MCO1Source_HSI ((uint32_t)0x00000000) +#define RCC_MCO1Source_LSE ((uint32_t)0x00200000) +#define RCC_MCO1Source_HSE ((uint32_t)0x00400000) +#define RCC_MCO1Source_PLLCLK ((uint32_t)0x00600000) +#define RCC_MCO1Div_1 ((uint32_t)0x00000000) +#define RCC_MCO1Div_2 ((uint32_t)0x04000000) +#define RCC_MCO1Div_3 ((uint32_t)0x05000000) +#define RCC_MCO1Div_4 ((uint32_t)0x06000000) +#define RCC_MCO1Div_5 ((uint32_t)0x07000000) +#define IS_RCC_MCO1SOURCE(SOURCE) (((SOURCE) == RCC_MCO1Source_HSI) || ((SOURCE) == RCC_MCO1Source_LSE) || \ + ((SOURCE) == RCC_MCO1Source_HSE) || ((SOURCE) == RCC_MCO1Source_PLLCLK)) + +#define IS_RCC_MCO1DIV(DIV) (((DIV) == RCC_MCO1Div_1) || ((DIV) == RCC_MCO1Div_2) || \ + ((DIV) == RCC_MCO1Div_3) || ((DIV) == RCC_MCO1Div_4) || \ + ((DIV) == RCC_MCO1Div_5)) +/** + * @} + */ + +/** @defgroup RCC_MCO2_Clock_Source_Prescaler + * @{ + */ +#define RCC_MCO2Source_SYSCLK ((uint32_t)0x00000000) +#define RCC_MCO2Source_PLLI2SCLK ((uint32_t)0x40000000) +#define RCC_MCO2Source_HSE ((uint32_t)0x80000000) +#define RCC_MCO2Source_PLLCLK ((uint32_t)0xC0000000) +#define RCC_MCO2Div_1 ((uint32_t)0x00000000) +#define RCC_MCO2Div_2 ((uint32_t)0x20000000) +#define RCC_MCO2Div_3 ((uint32_t)0x28000000) +#define RCC_MCO2Div_4 ((uint32_t)0x30000000) +#define RCC_MCO2Div_5 ((uint32_t)0x38000000) +#define IS_RCC_MCO2SOURCE(SOURCE) (((SOURCE) == RCC_MCO2Source_SYSCLK) || ((SOURCE) == RCC_MCO2Source_PLLI2SCLK)|| \ + ((SOURCE) == RCC_MCO2Source_HSE) || ((SOURCE) == RCC_MCO2Source_PLLCLK)) + +#define IS_RCC_MCO2DIV(DIV) (((DIV) == RCC_MCO2Div_1) || ((DIV) == RCC_MCO2Div_2) || \ + ((DIV) == RCC_MCO2Div_3) || ((DIV) == RCC_MCO2Div_4) || \ + ((DIV) == RCC_MCO2Div_5)) +/** + * @} + */ + +/** @defgroup RCC_Flag + * @{ + */ +#define RCC_FLAG_HSIRDY ((uint8_t)0x21) +#define RCC_FLAG_HSERDY ((uint8_t)0x31) +#define RCC_FLAG_PLLRDY ((uint8_t)0x39) +#define RCC_FLAG_PLLI2SRDY ((uint8_t)0x3B) +#define RCC_FLAG_LSERDY ((uint8_t)0x41) +#define RCC_FLAG_LSIRDY ((uint8_t)0x61) +#define RCC_FLAG_BORRST ((uint8_t)0x79) +#define RCC_FLAG_PINRST ((uint8_t)0x7A) +#define RCC_FLAG_PORRST ((uint8_t)0x7B) +#define RCC_FLAG_SFTRST ((uint8_t)0x7C) +#define RCC_FLAG_IWDGRST ((uint8_t)0x7D) +#define RCC_FLAG_WWDGRST ((uint8_t)0x7E) +#define RCC_FLAG_LPWRRST ((uint8_t)0x7F) +#define IS_RCC_FLAG(FLAG) (((FLAG) == RCC_FLAG_HSIRDY) || ((FLAG) == RCC_FLAG_HSERDY) || \ + ((FLAG) == RCC_FLAG_PLLRDY) || ((FLAG) == RCC_FLAG_LSERDY) || \ + ((FLAG) == RCC_FLAG_LSIRDY) || ((FLAG) == RCC_FLAG_BORRST) || \ + ((FLAG) == RCC_FLAG_PINRST) || ((FLAG) == RCC_FLAG_PORRST) || \ + ((FLAG) == RCC_FLAG_SFTRST) || ((FLAG) == RCC_FLAG_IWDGRST)|| \ + ((FLAG) == RCC_FLAG_WWDGRST)|| ((FLAG) == RCC_FLAG_LPWRRST)|| \ + ((FLAG) == RCC_FLAG_PLLI2SRDY)) +#define IS_RCC_CALIBRATION_VALUE(VALUE) ((VALUE) <= 0x1F) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the RCC clock configuration to the default reset state */ +void RCC_DeInit(void); + +/* Internal/external clocks, PLL, CSS and MCO configuration functions *********/ +void RCC_HSEConfig(uint8_t RCC_HSE); +ErrorStatus RCC_WaitForHSEStartUp(void); +void RCC_AdjustHSICalibrationValue(uint8_t HSICalibrationValue); +void RCC_HSICmd(FunctionalState NewState); +void RCC_LSEConfig(uint8_t RCC_LSE); +void RCC_LSICmd(FunctionalState NewState); + +void RCC_PLLConfig(uint32_t RCC_PLLSource, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP, uint32_t PLLQ); +void RCC_PLLCmd(FunctionalState NewState); +void RCC_PLLI2SConfig(uint32_t PLLI2SN, uint32_t PLLI2SR); +void RCC_PLLI2SCmd(FunctionalState NewState); + +void RCC_ClockSecuritySystemCmd(FunctionalState NewState); +void RCC_MCO1Config(uint32_t RCC_MCO1Source, uint32_t RCC_MCO1Div); +void RCC_MCO2Config(uint32_t RCC_MCO2Source, uint32_t RCC_MCO2Div); + +/* System, AHB and APB busses clocks configuration functions ******************/ +void RCC_SYSCLKConfig(uint32_t RCC_SYSCLKSource); +uint8_t RCC_GetSYSCLKSource(void); +void RCC_HCLKConfig(uint32_t RCC_SYSCLK); +void RCC_PCLK1Config(uint32_t RCC_HCLK); +void RCC_PCLK2Config(uint32_t RCC_HCLK); +void RCC_GetClocksFreq(RCC_ClocksTypeDef* RCC_Clocks); + +/* Peripheral clocks configuration functions **********************************/ +void RCC_RTCCLKConfig(uint32_t RCC_RTCCLKSource); +void RCC_RTCCLKCmd(FunctionalState NewState); +void RCC_BackupResetCmd(FunctionalState NewState); +void RCC_I2SCLKConfig(uint32_t RCC_I2SCLKSource); + +void RCC_AHB1PeriphClockCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState); +void RCC_AHB2PeriphClockCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState); +void RCC_AHB3PeriphClockCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState); +void RCC_APB1PeriphClockCmd(uint32_t RCC_APB1Periph, FunctionalState NewState); +void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState); + +void RCC_AHB1PeriphResetCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState); +void RCC_AHB2PeriphResetCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState); +void RCC_AHB3PeriphResetCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState); +void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState); +void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState); + +void RCC_AHB1PeriphClockLPModeCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState); +void RCC_AHB2PeriphClockLPModeCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState); +void RCC_AHB3PeriphClockLPModeCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState); +void RCC_APB1PeriphClockLPModeCmd(uint32_t RCC_APB1Periph, FunctionalState NewState); +void RCC_APB2PeriphClockLPModeCmd(uint32_t RCC_APB2Periph, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void RCC_ITConfig(uint8_t RCC_IT, FunctionalState NewState); +FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG); +void RCC_ClearFlag(void); +ITStatus RCC_GetITStatus(uint8_t RCC_IT); +void RCC_ClearITPendingBit(uint8_t RCC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_RCC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rng.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rng.h new file mode 100644 index 00000000..c2b52e68 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rng.h @@ -0,0 +1,120 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rng.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the Random + * Number Generator(RNG) firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_RNG_H +#define __STM32F2xx_RNG_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup RNG + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup RNG_Exported_Constants + * @{ + */ + +/** @defgroup RNG_flags_definition + * @{ + */ +#define RNG_FLAG_DRDY ((uint8_t)0x0001) /*!< Data ready */ +#define RNG_FLAG_CECS ((uint8_t)0x0002) /*!< Clock error current status */ +#define RNG_FLAG_SECS ((uint8_t)0x0004) /*!< Seed error current status */ + +#define IS_RNG_GET_FLAG(RNG_FLAG) (((RNG_FLAG) == RNG_FLAG_DRDY) || \ + ((RNG_FLAG) == RNG_FLAG_CECS) || \ + ((RNG_FLAG) == RNG_FLAG_SECS)) +#define IS_RNG_CLEAR_FLAG(RNG_FLAG) (((RNG_FLAG) == RNG_FLAG_CECS) || \ + ((RNG_FLAG) == RNG_FLAG_SECS)) +/** + * @} + */ + +/** @defgroup RNG_interrupts_definition + * @{ + */ +#define RNG_IT_CEI ((uint8_t)0x20) /*!< Clock error interrupt */ +#define RNG_IT_SEI ((uint8_t)0x40) /*!< Seed error interrupt */ + +#define IS_RNG_IT(IT) ((((IT) & (uint8_t)0x9F) == 0x00) && ((IT) != 0x00)) +#define IS_RNG_GET_IT(RNG_IT) (((RNG_IT) == RNG_IT_CEI) || ((RNG_IT) == RNG_IT_SEI)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the RNG configuration to the default reset state *****/ +void RNG_DeInit(void); + +/* Configuration function *****************************************************/ +void RNG_Cmd(FunctionalState NewState); + +/* Get 32 bit Random number function ******************************************/ +uint32_t RNG_GetRandomNumber(void); + +/* Interrupts and flags management functions **********************************/ +void RNG_ITConfig(FunctionalState NewState); +FlagStatus RNG_GetFlagStatus(uint8_t RNG_FLAG); +void RNG_ClearFlag(uint8_t RNG_FLAG); +ITStatus RNG_GetITStatus(uint8_t RNG_IT); +void RNG_ClearITPendingBit(uint8_t RNG_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_RNG_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rtc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rtc.h new file mode 100644 index 00000000..3cb7e202 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_rtc.h @@ -0,0 +1,650 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rtc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the RTC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_RTC_H +#define __STM32F2xx_RTC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup RTC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief RTC Init structures definition + */ +typedef struct +{ + uint32_t RTC_HourFormat; /*!< Specifies the RTC Hour Format. + This parameter can be a value of @ref RTC_Hour_Formats */ + + uint32_t RTC_AsynchPrediv; /*!< Specifies the RTC Asynchronous Predivider value. + This parameter must be set to a value lower than 0x7F */ + + uint32_t RTC_SynchPrediv; /*!< Specifies the RTC Synchronous Predivider value. + This parameter must be set to a value lower than 0x1FFF */ +}RTC_InitTypeDef; + +/** + * @brief RTC Time structure definition + */ +typedef struct +{ + uint8_t RTC_Hours; /*!< Specifies the RTC Time Hour. + This parameter must be set to a value in the 0-12 range + if the RTC_HourFormat_12 is selected or 0-23 range if + the RTC_HourFormat_24 is selected. */ + + uint8_t RTC_Minutes; /*!< Specifies the RTC Time Minutes. + This parameter must be set to a value in the 0-59 range. */ + + uint8_t RTC_Seconds; /*!< Specifies the RTC Time Seconds. + This parameter must be set to a value in the 0-59 range. */ + + uint8_t RTC_H12; /*!< Specifies the RTC AM/PM Time. + This parameter can be a value of @ref RTC_AM_PM_Definitions */ +}RTC_TimeTypeDef; + +/** + * @brief RTC Date structure definition + */ +typedef struct +{ + uint8_t RTC_WeekDay; /*!< Specifies the RTC Date WeekDay. + This parameter can be a value of @ref RTC_WeekDay_Definitions */ + + uint8_t RTC_Month; /*!< Specifies the RTC Date Month (in BCD format). + This parameter can be a value of @ref RTC_Month_Date_Definitions */ + + uint8_t RTC_Date; /*!< Specifies the RTC Date. + This parameter must be set to a value in the 1-31 range. */ + + uint8_t RTC_Year; /*!< Specifies the RTC Date Year. + This parameter must be set to a value in the 0-99 range. */ +}RTC_DateTypeDef; + +/** + * @brief RTC Alarm structure definition + */ +typedef struct +{ + RTC_TimeTypeDef RTC_AlarmTime; /*!< Specifies the RTC Alarm Time members. */ + + uint32_t RTC_AlarmMask; /*!< Specifies the RTC Alarm Masks. + This parameter can be a value of @ref RTC_AlarmMask_Definitions */ + + uint32_t RTC_AlarmDateWeekDaySel; /*!< Specifies the RTC Alarm is on Date or WeekDay. + This parameter can be a value of @ref RTC_AlarmDateWeekDay_Definitions */ + + uint8_t RTC_AlarmDateWeekDay; /*!< Specifies the RTC Alarm Date/WeekDay. + If the Alarm Date is selected, this parameter + must be set to a value in the 1-31 range. + If the Alarm WeekDay is selected, this + parameter can be a value of @ref RTC_WeekDay_Definitions */ +}RTC_AlarmTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup RTC_Exported_Constants + * @{ + */ + + +/** @defgroup RTC_Hour_Formats + * @{ + */ +#define RTC_HourFormat_24 ((uint32_t)0x00000000) +#define RTC_HourFormat_12 ((uint32_t)0x00000040) +#define IS_RTC_HOUR_FORMAT(FORMAT) (((FORMAT) == RTC_HourFormat_12) || \ + ((FORMAT) == RTC_HourFormat_24)) +/** + * @} + */ + +/** @defgroup RTC_Asynchronous_Predivider + * @{ + */ +#define IS_RTC_ASYNCH_PREDIV(PREDIV) ((PREDIV) <= 0x7F) + +/** + * @} + */ + + +/** @defgroup RTC_Synchronous_Predivider + * @{ + */ +#define IS_RTC_SYNCH_PREDIV(PREDIV) ((PREDIV) <= 0x1FFF) + +/** + * @} + */ + +/** @defgroup RTC_Time_Definitions + * @{ + */ +#define IS_RTC_HOUR12(HOUR) (((HOUR) > 0) && ((HOUR) <= 12)) +#define IS_RTC_HOUR24(HOUR) ((HOUR) <= 23) +#define IS_RTC_MINUTES(MINUTES) ((MINUTES) <= 59) +#define IS_RTC_SECONDS(SECONDS) ((SECONDS) <= 59) + +/** + * @} + */ + +/** @defgroup RTC_AM_PM_Definitions + * @{ + */ +#define RTC_H12_AM ((uint8_t)0x00) +#define RTC_H12_PM ((uint8_t)0x40) +#define IS_RTC_H12(PM) (((PM) == RTC_H12_AM) || ((PM) == RTC_H12_PM)) + +/** + * @} + */ + +/** @defgroup RTC_Year_Date_Definitions + * @{ + */ +#define IS_RTC_YEAR(YEAR) ((YEAR) <= 99) + +/** + * @} + */ + +/** @defgroup RTC_Month_Date_Definitions + * @{ + */ + +/* Coded in BCD format */ +#define RTC_Month_January ((uint8_t)0x01) +#define RTC_Month_February ((uint8_t)0x02) +#define RTC_Month_March ((uint8_t)0x03) +#define RTC_Month_April ((uint8_t)0x04) +#define RTC_Month_May ((uint8_t)0x05) +#define RTC_Month_June ((uint8_t)0x06) +#define RTC_Month_July ((uint8_t)0x07) +#define RTC_Month_August ((uint8_t)0x08) +#define RTC_Month_September ((uint8_t)0x09) +#define RTC_Month_October ((uint8_t)0x10) +#define RTC_Month_November ((uint8_t)0x11) +#define RTC_Month_December ((uint8_t)0x12) +#define IS_RTC_MONTH(MONTH) (((MONTH) >= 1) && ((MONTH) <= 12)) +#define IS_RTC_DATE(DATE) (((DATE) >= 1) && ((DATE) <= 31)) + +/** + * @} + */ + +/** @defgroup RTC_WeekDay_Definitions + * @{ + */ + +#define RTC_Weekday_Monday ((uint8_t)0x01) +#define RTC_Weekday_Tuesday ((uint8_t)0x02) +#define RTC_Weekday_Wednesday ((uint8_t)0x03) +#define RTC_Weekday_Thursday ((uint8_t)0x04) +#define RTC_Weekday_Friday ((uint8_t)0x05) +#define RTC_Weekday_Saturday ((uint8_t)0x06) +#define RTC_Weekday_Sunday ((uint8_t)0x07) +#define IS_RTC_WEEKDAY(WEEKDAY) (((WEEKDAY) == RTC_Weekday_Monday) || \ + ((WEEKDAY) == RTC_Weekday_Tuesday) || \ + ((WEEKDAY) == RTC_Weekday_Wednesday) || \ + ((WEEKDAY) == RTC_Weekday_Thursday) || \ + ((WEEKDAY) == RTC_Weekday_Friday) || \ + ((WEEKDAY) == RTC_Weekday_Saturday) || \ + ((WEEKDAY) == RTC_Weekday_Sunday)) +/** + * @} + */ + + +/** @defgroup RTC_Alarm_Definitions + * @{ + */ +#define IS_RTC_ALARM_DATE_WEEKDAY_DATE(DATE) (((DATE) > 0) && ((DATE) <= 31)) +#define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(WEEKDAY) (((WEEKDAY) == RTC_Weekday_Monday) || \ + ((WEEKDAY) == RTC_Weekday_Tuesday) || \ + ((WEEKDAY) == RTC_Weekday_Wednesday) || \ + ((WEEKDAY) == RTC_Weekday_Thursday) || \ + ((WEEKDAY) == RTC_Weekday_Friday) || \ + ((WEEKDAY) == RTC_Weekday_Saturday) || \ + ((WEEKDAY) == RTC_Weekday_Sunday)) + +/** + * @} + */ + + +/** @defgroup RTC_AlarmDateWeekDay_Definitions + * @{ + */ +#define RTC_AlarmDateWeekDaySel_Date ((uint32_t)0x00000000) +#define RTC_AlarmDateWeekDaySel_WeekDay ((uint32_t)0x40000000) + +#define IS_RTC_ALARM_DATE_WEEKDAY_SEL(SEL) (((SEL) == RTC_AlarmDateWeekDaySel_Date) || \ + ((SEL) == RTC_AlarmDateWeekDaySel_WeekDay)) + +/** + * @} + */ + + +/** @defgroup RTC_AlarmMask_Definitions + * @{ + */ +#define RTC_AlarmMask_None ((uint32_t)0x00000000) +#define RTC_AlarmMask_DateWeekDay ((uint32_t)0x80000000) +#define RTC_AlarmMask_Hours ((uint32_t)0x00800000) +#define RTC_AlarmMask_Minutes ((uint32_t)0x00008000) +#define RTC_AlarmMask_Seconds ((uint32_t)0x00000080) +#define RTC_AlarmMask_All ((uint32_t)0x80808080) +#define IS_ALARM_MASK(MASK) (((MASK) & 0x7F7F7F7F) == (uint32_t)RESET) + +/** + * @} + */ + +/** @defgroup RTC_Alarms_Definitions + * @{ + */ +#define RTC_Alarm_A ((uint32_t)0x00000100) +#define RTC_Alarm_B ((uint32_t)0x00000200) +#define IS_RTC_ALARM(ALARM) (((ALARM) == RTC_Alarm_A) || ((ALARM) == RTC_Alarm_B)) +#define IS_RTC_CMD_ALARM(ALARM) (((ALARM) & (RTC_Alarm_A | RTC_Alarm_B)) != (uint32_t)RESET) + +/** + * @} + */ + +/** @defgroup RTC_Wakeup_Timer_Definitions + * @{ + */ +#define RTC_WakeUpClock_RTCCLK_Div16 ((uint32_t)0x00000000) +#define RTC_WakeUpClock_RTCCLK_Div8 ((uint32_t)0x00000001) +#define RTC_WakeUpClock_RTCCLK_Div4 ((uint32_t)0x00000002) +#define RTC_WakeUpClock_RTCCLK_Div2 ((uint32_t)0x00000003) +#define RTC_WakeUpClock_CK_SPRE_16bits ((uint32_t)0x00000004) +#define RTC_WakeUpClock_CK_SPRE_17bits ((uint32_t)0x00000006) +#define IS_RTC_WAKEUP_CLOCK(CLOCK) (((CLOCK) == RTC_WakeUpClock_RTCCLK_Div16) || \ + ((CLOCK) == RTC_WakeUpClock_RTCCLK_Div8) || \ + ((CLOCK) == RTC_WakeUpClock_RTCCLK_Div4) || \ + ((CLOCK) == RTC_WakeUpClock_RTCCLK_Div2) || \ + ((CLOCK) == RTC_WakeUpClock_CK_SPRE_16bits) || \ + ((CLOCK) == RTC_WakeUpClock_CK_SPRE_17bits)) +#define IS_RTC_WAKEUP_COUNTER(COUNTER) ((COUNTER) <= 0xFFFF) +/** + * @} + */ + +/** @defgroup RTC_Time_Stamp_Edges_definitions + * @{ + */ +#define RTC_TimeStampEdge_Rising ((uint32_t)0x00000000) +#define RTC_TimeStampEdge_Falling ((uint32_t)0x00000008) +#define IS_RTC_TIMESTAMP_EDGE(EDGE) (((EDGE) == RTC_TimeStampEdge_Rising) || \ + ((EDGE) == RTC_TimeStampEdge_Falling)) +/** + * @} + */ + +/** @defgroup RTC_Output_selection_Definitions + * @{ + */ +#define RTC_Output_Disable ((uint32_t)0x00000000) +#define RTC_Output_AlarmA ((uint32_t)0x00200000) +#define RTC_Output_AlarmB ((uint32_t)0x00400000) +#define RTC_Output_WakeUp ((uint32_t)0x00600000) + +#define IS_RTC_OUTPUT(OUTPUT) (((OUTPUT) == RTC_Output_Disable) || \ + ((OUTPUT) == RTC_Output_AlarmA) || \ + ((OUTPUT) == RTC_Output_AlarmB) || \ + ((OUTPUT) == RTC_Output_WakeUp)) + +/** + * @} + */ + +/** @defgroup RTC_Output_Polarity_Definitions + * @{ + */ +#define RTC_OutputPolarity_High ((uint32_t)0x00000000) +#define RTC_OutputPolarity_Low ((uint32_t)0x00100000) +#define IS_RTC_OUTPUT_POL(POL) (((POL) == RTC_OutputPolarity_High) || \ + ((POL) == RTC_OutputPolarity_Low)) +/** + * @} + */ + + +/** @defgroup RTC_Digital_Calibration_Definitions + * @{ + */ +#define RTC_CalibSign_Positive ((uint32_t)0x00000000) +#define RTC_CalibSign_Negative ((uint32_t)0x00000080) +#define IS_RTC_CALIB_SIGN(SIGN) (((SIGN) == RTC_CalibSign_Positive) || \ + ((SIGN) == RTC_CalibSign_Negative)) +#define IS_RTC_CALIB_VALUE(VALUE) ((VALUE) < 0x20) + +/** + * @} + */ + + +/** @defgroup RTC_DayLightSaving_Definitions + * @{ + */ +#define RTC_DayLightSaving_SUB1H ((uint32_t)0x00020000) +#define RTC_DayLightSaving_ADD1H ((uint32_t)0x00010000) +#define IS_RTC_DAYLIGHT_SAVING(SAVE) (((SAVE) == RTC_DayLightSaving_SUB1H) || \ + ((SAVE) == RTC_DayLightSaving_ADD1H)) + +#define RTC_StoreOperation_Reset ((uint32_t)0x00000000) +#define RTC_StoreOperation_Set ((uint32_t)0x00040000) +#define IS_RTC_STORE_OPERATION(OPERATION) (((OPERATION) == RTC_StoreOperation_Reset) || \ + ((OPERATION) == RTC_StoreOperation_Set)) +/** + * @} + */ + +/** @defgroup RTC_Tamper_Trigger_Definitions + * @{ + */ +#define RTC_TamperTrigger_RisingEdge ((uint32_t)0x00000000) +#define RTC_TamperTrigger_FallingEdge ((uint32_t)0x00000001) +#define IS_RTC_TAMPER_TRIGGER(TRIGGER) (((TRIGGER) == RTC_TamperTrigger_RisingEdge) || \ + ((TRIGGER) == RTC_TamperTrigger_FallingEdge)) + +/** + * @} + */ + +/** @defgroup RTC_Tamper_Pins_Definitions + * @{ + */ +#define RTC_Tamper_1 RTC_TAFCR_TAMP1E +#define IS_RTC_TAMPER(TAMPER) (((TAMPER) == RTC_Tamper_1)) + +/** + * @} + */ + +/** @defgroup RTC_Tamper_Pin_Selection + * @{ + */ +#define RTC_TamperPin_PC13 ((uint32_t)0x00000000) +#define RTC_TamperPin_PI8 ((uint32_t)0x00010000) +#define IS_RTC_TAMPER_PIN(PIN) (((PIN) == RTC_TamperPin_PC13) || \ + ((PIN) == RTC_TamperPin_PI8)) +/** + * @} + */ + +/** @defgroup RTC_TimeStamp_Pin_Selection + * @{ + */ +#define RTC_TimeStampPin_PC13 ((uint32_t)0x00000000) +#define RTC_TimeStampPin_PI8 ((uint32_t)0x00020000) +#define IS_RTC_TIMESTAMP_PIN(PIN) (((PIN) == RTC_TimeStampPin_PC13) || \ + ((PIN) == RTC_TimeStampPin_PI8)) +/** + * @} + */ + +/** @defgroup RTC_Output_Type_ALARM_OUT + * @{ + */ +#define RTC_OutputType_OpenDrain ((uint32_t)0x00000000) +#define RTC_OutputType_PushPull ((uint32_t)0x00040000) +#define IS_RTC_OUTPUT_TYPE(TYPE) (((TYPE) == RTC_OutputType_OpenDrain) || \ + ((TYPE) == RTC_OutputType_PushPull)) + +/** + * @} + */ + +/** @defgroup RTC_Backup_Registers_Definitions + * @{ + */ + +#define RTC_BKP_DR0 ((uint32_t)0x00000000) +#define RTC_BKP_DR1 ((uint32_t)0x00000001) +#define RTC_BKP_DR2 ((uint32_t)0x00000002) +#define RTC_BKP_DR3 ((uint32_t)0x00000003) +#define RTC_BKP_DR4 ((uint32_t)0x00000004) +#define RTC_BKP_DR5 ((uint32_t)0x00000005) +#define RTC_BKP_DR6 ((uint32_t)0x00000006) +#define RTC_BKP_DR7 ((uint32_t)0x00000007) +#define RTC_BKP_DR8 ((uint32_t)0x00000008) +#define RTC_BKP_DR9 ((uint32_t)0x00000009) +#define RTC_BKP_DR10 ((uint32_t)0x0000000A) +#define RTC_BKP_DR11 ((uint32_t)0x0000000B) +#define RTC_BKP_DR12 ((uint32_t)0x0000000C) +#define RTC_BKP_DR13 ((uint32_t)0x0000000D) +#define RTC_BKP_DR14 ((uint32_t)0x0000000E) +#define RTC_BKP_DR15 ((uint32_t)0x0000000F) +#define RTC_BKP_DR16 ((uint32_t)0x00000010) +#define RTC_BKP_DR17 ((uint32_t)0x00000011) +#define RTC_BKP_DR18 ((uint32_t)0x00000012) +#define RTC_BKP_DR19 ((uint32_t)0x00000013) +#define IS_RTC_BKP(BKP) (((BKP) == RTC_BKP_DR0) || \ + ((BKP) == RTC_BKP_DR1) || \ + ((BKP) == RTC_BKP_DR2) || \ + ((BKP) == RTC_BKP_DR3) || \ + ((BKP) == RTC_BKP_DR4) || \ + ((BKP) == RTC_BKP_DR5) || \ + ((BKP) == RTC_BKP_DR6) || \ + ((BKP) == RTC_BKP_DR7) || \ + ((BKP) == RTC_BKP_DR8) || \ + ((BKP) == RTC_BKP_DR9) || \ + ((BKP) == RTC_BKP_DR10) || \ + ((BKP) == RTC_BKP_DR11) || \ + ((BKP) == RTC_BKP_DR12) || \ + ((BKP) == RTC_BKP_DR13) || \ + ((BKP) == RTC_BKP_DR14) || \ + ((BKP) == RTC_BKP_DR15) || \ + ((BKP) == RTC_BKP_DR16) || \ + ((BKP) == RTC_BKP_DR17) || \ + ((BKP) == RTC_BKP_DR18) || \ + ((BKP) == RTC_BKP_DR19)) +/** + * @} + */ + +/** @defgroup RTC_Input_parameter_format_definitions + * @{ + */ +#define RTC_Format_BIN ((uint32_t)0x000000000) +#define RTC_Format_BCD ((uint32_t)0x000000001) +#define IS_RTC_FORMAT(FORMAT) (((FORMAT) == RTC_Format_BIN) || ((FORMAT) == RTC_Format_BCD)) + +/** + * @} + */ + +/** @defgroup RTC_Flags_Definitions + * @{ + */ +#define RTC_FLAG_TAMP1F ((uint32_t)0x00002000) +#define RTC_FLAG_TSOVF ((uint32_t)0x00001000) +#define RTC_FLAG_TSF ((uint32_t)0x00000800) +#define RTC_FLAG_WUTF ((uint32_t)0x00000400) +#define RTC_FLAG_ALRBF ((uint32_t)0x00000200) +#define RTC_FLAG_ALRAF ((uint32_t)0x00000100) +#define RTC_FLAG_INITF ((uint32_t)0x00000040) +#define RTC_FLAG_RSF ((uint32_t)0x00000020) +#define RTC_FLAG_INITS ((uint32_t)0x00000010) +#define RTC_FLAG_WUTWF ((uint32_t)0x00000004) +#define RTC_FLAG_ALRBWF ((uint32_t)0x00000002) +#define RTC_FLAG_ALRAWF ((uint32_t)0x00000001) +#define IS_RTC_GET_FLAG(FLAG) (((FLAG) == RTC_FLAG_TSOVF) || ((FLAG) == RTC_FLAG_TSF) || \ + ((FLAG) == RTC_FLAG_WUTF) || ((FLAG) == RTC_FLAG_ALRBF) || \ + ((FLAG) == RTC_FLAG_ALRAF) || ((FLAG) == RTC_FLAG_INITF) || \ + ((FLAG) == RTC_FLAG_RSF) || ((FLAG) == RTC_FLAG_WUTWF) || \ + ((FLAG) == RTC_FLAG_ALRBWF) || ((FLAG) == RTC_FLAG_ALRAWF) || \ + ((FLAG) == RTC_FLAG_TAMP1F)) +#define IS_RTC_CLEAR_FLAG(FLAG) (((FLAG) != (uint32_t)RESET) && (((FLAG) & 0xFFFFC0DF) == (uint32_t)RESET)) + +/** + * @} + */ + +/** @defgroup RTC_Interrupts_Definitions + * @{ + */ +#define RTC_IT_TS ((uint32_t)0x00008000) +#define RTC_IT_WUT ((uint32_t)0x00004000) +#define RTC_IT_ALRB ((uint32_t)0x00002000) +#define RTC_IT_ALRA ((uint32_t)0x00001000) +#define RTC_IT_TAMP ((uint32_t)0x00000004) /* Used only to Enable the Tamper Interrupt */ +#define RTC_IT_TAMP1 ((uint32_t)0x00020000) + +#define IS_RTC_CONFIG_IT(IT) (((IT) != (uint32_t)RESET) && (((IT) & 0xFFFF0FFB) == (uint32_t)RESET)) +#define IS_RTC_GET_IT(IT) (((IT) == RTC_IT_TS) || ((IT) == RTC_IT_WUT) || \ + ((IT) == RTC_IT_ALRB) || ((IT) == RTC_IT_ALRA) || \ + ((IT) == RTC_IT_TAMP1)) +#define IS_RTC_CLEAR_IT(IT) (((IT) != (uint32_t)RESET) && (((IT) & 0xFFFD0FFF) == (uint32_t)RESET)) + +/** + * @} + */ + +/** @defgroup RTC_Legacy + * @{ + */ +#define RTC_DigitalCalibConfig RTC_CoarseCalibConfig +#define RTC_DigitalCalibCmd RTC_CoarseCalibCmd + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the RTC configuration to the default reset state *****/ +ErrorStatus RTC_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +ErrorStatus RTC_Init(RTC_InitTypeDef* RTC_InitStruct); +void RTC_StructInit(RTC_InitTypeDef* RTC_InitStruct); +void RTC_WriteProtectionCmd(FunctionalState NewState); +ErrorStatus RTC_EnterInitMode(void); +void RTC_ExitInitMode(void); +ErrorStatus RTC_WaitForSynchro(void); +ErrorStatus RTC_RefClockCmd(FunctionalState NewState); + +/* Time and Date configuration functions **************************************/ +ErrorStatus RTC_SetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct); +void RTC_TimeStructInit(RTC_TimeTypeDef* RTC_TimeStruct); +void RTC_GetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct); +ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct); +void RTC_DateStructInit(RTC_DateTypeDef* RTC_DateStruct); +void RTC_GetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct); + +/* Alarms (Alarm A and Alarm B) configuration functions **********************/ +void RTC_SetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct); +void RTC_AlarmStructInit(RTC_AlarmTypeDef* RTC_AlarmStruct); +void RTC_GetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct); +ErrorStatus RTC_AlarmCmd(uint32_t RTC_Alarm, FunctionalState NewState); + +/* WakeUp Timer configuration functions ***************************************/ +void RTC_WakeUpClockConfig(uint32_t RTC_WakeUpClock); +void RTC_SetWakeUpCounter(uint32_t RTC_WakeUpCounter); +uint32_t RTC_GetWakeUpCounter(void); +ErrorStatus RTC_WakeUpCmd(FunctionalState NewState); + +/* Daylight Saving configuration functions ************************************/ +void RTC_DayLightSavingConfig(uint32_t RTC_DayLightSaving, uint32_t RTC_StoreOperation); +uint32_t RTC_GetStoreOperation(void); + +/* Output pin Configuration function ******************************************/ +void RTC_OutputConfig(uint32_t RTC_Output, uint32_t RTC_OutputPolarity); + +/* Coarse Calibration configuration functions *********************************/ +ErrorStatus RTC_CoarseCalibConfig(uint32_t RTC_CalibSign, uint32_t Value); +ErrorStatus RTC_CoarseCalibCmd(FunctionalState NewState); +void RTC_CalibOutputCmd(FunctionalState NewState); + +/* TimeStamp configuration functions ******************************************/ +void RTC_TimeStampCmd(uint32_t RTC_TimeStampEdge, FunctionalState NewState); +void RTC_GetTimeStamp(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_StampTimeStruct, + RTC_DateTypeDef* RTC_StampDateStruct); + +/* Tampers configuration functions ********************************************/ +void RTC_TamperTriggerConfig(uint32_t RTC_Tamper, uint32_t RTC_TamperTrigger); +void RTC_TamperCmd(uint32_t RTC_Tamper, FunctionalState NewState); + +/* Backup Data Registers configuration functions ******************************/ +void RTC_WriteBackupRegister(uint32_t RTC_BKP_DR, uint32_t Data); +uint32_t RTC_ReadBackupRegister(uint32_t RTC_BKP_DR); + +/* RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration + functions ******************************************************************/ +void RTC_TamperPinSelection(uint32_t RTC_TamperPin); +void RTC_TimeStampPinSelection(uint32_t RTC_TimeStampPin); +void RTC_OutputTypeConfig(uint32_t RTC_OutputType); + +/* Interrupts and flags management functions **********************************/ +void RTC_ITConfig(uint32_t RTC_IT, FunctionalState NewState); +FlagStatus RTC_GetFlagStatus(uint32_t RTC_FLAG); +void RTC_ClearFlag(uint32_t RTC_FLAG); +ITStatus RTC_GetITStatus(uint32_t RTC_IT); +void RTC_ClearITPendingBit(uint32_t RTC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_RTC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_sdio.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_sdio.h new file mode 100644 index 00000000..16efdeeb --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_sdio.h @@ -0,0 +1,536 @@ +/** + ****************************************************************************** + * @file stm32f2xx_sdio.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the SDIO firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_SDIO_H +#define __STM32F2xx_SDIO_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup SDIO + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +typedef struct +{ + uint32_t SDIO_ClockEdge; /*!< Specifies the clock transition on which the bit capture is made. + This parameter can be a value of @ref SDIO_Clock_Edge */ + + uint32_t SDIO_ClockBypass; /*!< Specifies whether the SDIO Clock divider bypass is + enabled or disabled. + This parameter can be a value of @ref SDIO_Clock_Bypass */ + + uint32_t SDIO_ClockPowerSave; /*!< Specifies whether SDIO Clock output is enabled or + disabled when the bus is idle. + This parameter can be a value of @ref SDIO_Clock_Power_Save */ + + uint32_t SDIO_BusWide; /*!< Specifies the SDIO bus width. + This parameter can be a value of @ref SDIO_Bus_Wide */ + + uint32_t SDIO_HardwareFlowControl; /*!< Specifies whether the SDIO hardware flow control is enabled or disabled. + This parameter can be a value of @ref SDIO_Hardware_Flow_Control */ + + uint8_t SDIO_ClockDiv; /*!< Specifies the clock frequency of the SDIO controller. + This parameter can be a value between 0x00 and 0xFF. */ + +} SDIO_InitTypeDef; + +typedef struct +{ + uint32_t SDIO_Argument; /*!< Specifies the SDIO command argument which is sent + to a card as part of a command message. If a command + contains an argument, it must be loaded into this register + before writing the command to the command register */ + + uint32_t SDIO_CmdIndex; /*!< Specifies the SDIO command index. It must be lower than 0x40. */ + + uint32_t SDIO_Response; /*!< Specifies the SDIO response type. + This parameter can be a value of @ref SDIO_Response_Type */ + + uint32_t SDIO_Wait; /*!< Specifies whether SDIO wait-for-interrupt request is enabled or disabled. + This parameter can be a value of @ref SDIO_Wait_Interrupt_State */ + + uint32_t SDIO_CPSM; /*!< Specifies whether SDIO Command path state machine (CPSM) + is enabled or disabled. + This parameter can be a value of @ref SDIO_CPSM_State */ +} SDIO_CmdInitTypeDef; + +typedef struct +{ + uint32_t SDIO_DataTimeOut; /*!< Specifies the data timeout period in card bus clock periods. */ + + uint32_t SDIO_DataLength; /*!< Specifies the number of data bytes to be transferred. */ + + uint32_t SDIO_DataBlockSize; /*!< Specifies the data block size for block transfer. + This parameter can be a value of @ref SDIO_Data_Block_Size */ + + uint32_t SDIO_TransferDir; /*!< Specifies the data transfer direction, whether the transfer + is a read or write. + This parameter can be a value of @ref SDIO_Transfer_Direction */ + + uint32_t SDIO_TransferMode; /*!< Specifies whether data transfer is in stream or block mode. + This parameter can be a value of @ref SDIO_Transfer_Type */ + + uint32_t SDIO_DPSM; /*!< Specifies whether SDIO Data path state machine (DPSM) + is enabled or disabled. + This parameter can be a value of @ref SDIO_DPSM_State */ +} SDIO_DataInitTypeDef; + + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup SDIO_Exported_Constants + * @{ + */ + +/** @defgroup SDIO_Clock_Edge + * @{ + */ + +#define SDIO_ClockEdge_Rising ((uint32_t)0x00000000) +#define SDIO_ClockEdge_Falling ((uint32_t)0x00002000) +#define IS_SDIO_CLOCK_EDGE(EDGE) (((EDGE) == SDIO_ClockEdge_Rising) || \ + ((EDGE) == SDIO_ClockEdge_Falling)) +/** + * @} + */ + +/** @defgroup SDIO_Clock_Bypass + * @{ + */ + +#define SDIO_ClockBypass_Disable ((uint32_t)0x00000000) +#define SDIO_ClockBypass_Enable ((uint32_t)0x00000400) +#define IS_SDIO_CLOCK_BYPASS(BYPASS) (((BYPASS) == SDIO_ClockBypass_Disable) || \ + ((BYPASS) == SDIO_ClockBypass_Enable)) +/** + * @} + */ + +/** @defgroup SDIO_Clock_Power_Save + * @{ + */ + +#define SDIO_ClockPowerSave_Disable ((uint32_t)0x00000000) +#define SDIO_ClockPowerSave_Enable ((uint32_t)0x00000200) +#define IS_SDIO_CLOCK_POWER_SAVE(SAVE) (((SAVE) == SDIO_ClockPowerSave_Disable) || \ + ((SAVE) == SDIO_ClockPowerSave_Enable)) +/** + * @} + */ + +/** @defgroup SDIO_Bus_Wide + * @{ + */ + +#define SDIO_BusWide_1b ((uint32_t)0x00000000) +#define SDIO_BusWide_4b ((uint32_t)0x00000800) +#define SDIO_BusWide_8b ((uint32_t)0x00001000) +#define IS_SDIO_BUS_WIDE(WIDE) (((WIDE) == SDIO_BusWide_1b) || ((WIDE) == SDIO_BusWide_4b) || \ + ((WIDE) == SDIO_BusWide_8b)) + +/** + * @} + */ + +/** @defgroup SDIO_Hardware_Flow_Control + * @{ + */ + +#define SDIO_HardwareFlowControl_Disable ((uint32_t)0x00000000) +#define SDIO_HardwareFlowControl_Enable ((uint32_t)0x00004000) +#define IS_SDIO_HARDWARE_FLOW_CONTROL(CONTROL) (((CONTROL) == SDIO_HardwareFlowControl_Disable) || \ + ((CONTROL) == SDIO_HardwareFlowControl_Enable)) +/** + * @} + */ + +/** @defgroup SDIO_Power_State + * @{ + */ + +#define SDIO_PowerState_OFF ((uint32_t)0x00000000) +#define SDIO_PowerState_ON ((uint32_t)0x00000003) +#define IS_SDIO_POWER_STATE(STATE) (((STATE) == SDIO_PowerState_OFF) || ((STATE) == SDIO_PowerState_ON)) +/** + * @} + */ + + +/** @defgroup SDIO_Interrupt_sources + * @{ + */ + +#define SDIO_IT_CCRCFAIL ((uint32_t)0x00000001) +#define SDIO_IT_DCRCFAIL ((uint32_t)0x00000002) +#define SDIO_IT_CTIMEOUT ((uint32_t)0x00000004) +#define SDIO_IT_DTIMEOUT ((uint32_t)0x00000008) +#define SDIO_IT_TXUNDERR ((uint32_t)0x00000010) +#define SDIO_IT_RXOVERR ((uint32_t)0x00000020) +#define SDIO_IT_CMDREND ((uint32_t)0x00000040) +#define SDIO_IT_CMDSENT ((uint32_t)0x00000080) +#define SDIO_IT_DATAEND ((uint32_t)0x00000100) +#define SDIO_IT_STBITERR ((uint32_t)0x00000200) +#define SDIO_IT_DBCKEND ((uint32_t)0x00000400) +#define SDIO_IT_CMDACT ((uint32_t)0x00000800) +#define SDIO_IT_TXACT ((uint32_t)0x00001000) +#define SDIO_IT_RXACT ((uint32_t)0x00002000) +#define SDIO_IT_TXFIFOHE ((uint32_t)0x00004000) +#define SDIO_IT_RXFIFOHF ((uint32_t)0x00008000) +#define SDIO_IT_TXFIFOF ((uint32_t)0x00010000) +#define SDIO_IT_RXFIFOF ((uint32_t)0x00020000) +#define SDIO_IT_TXFIFOE ((uint32_t)0x00040000) +#define SDIO_IT_RXFIFOE ((uint32_t)0x00080000) +#define SDIO_IT_TXDAVL ((uint32_t)0x00100000) +#define SDIO_IT_RXDAVL ((uint32_t)0x00200000) +#define SDIO_IT_SDIOIT ((uint32_t)0x00400000) +#define SDIO_IT_CEATAEND ((uint32_t)0x00800000) +#define IS_SDIO_IT(IT) ((((IT) & (uint32_t)0xFF000000) == 0x00) && ((IT) != (uint32_t)0x00)) +/** + * @} + */ + +/** @defgroup SDIO_Command_Index + * @{ + */ + +#define IS_SDIO_CMD_INDEX(INDEX) ((INDEX) < 0x40) +/** + * @} + */ + +/** @defgroup SDIO_Response_Type + * @{ + */ + +#define SDIO_Response_No ((uint32_t)0x00000000) +#define SDIO_Response_Short ((uint32_t)0x00000040) +#define SDIO_Response_Long ((uint32_t)0x000000C0) +#define IS_SDIO_RESPONSE(RESPONSE) (((RESPONSE) == SDIO_Response_No) || \ + ((RESPONSE) == SDIO_Response_Short) || \ + ((RESPONSE) == SDIO_Response_Long)) +/** + * @} + */ + +/** @defgroup SDIO_Wait_Interrupt_State + * @{ + */ + +#define SDIO_Wait_No ((uint32_t)0x00000000) /*!< SDIO No Wait, TimeOut is enabled */ +#define SDIO_Wait_IT ((uint32_t)0x00000100) /*!< SDIO Wait Interrupt Request */ +#define SDIO_Wait_Pend ((uint32_t)0x00000200) /*!< SDIO Wait End of transfer */ +#define IS_SDIO_WAIT(WAIT) (((WAIT) == SDIO_Wait_No) || ((WAIT) == SDIO_Wait_IT) || \ + ((WAIT) == SDIO_Wait_Pend)) +/** + * @} + */ + +/** @defgroup SDIO_CPSM_State + * @{ + */ + +#define SDIO_CPSM_Disable ((uint32_t)0x00000000) +#define SDIO_CPSM_Enable ((uint32_t)0x00000400) +#define IS_SDIO_CPSM(CPSM) (((CPSM) == SDIO_CPSM_Enable) || ((CPSM) == SDIO_CPSM_Disable)) +/** + * @} + */ + +/** @defgroup SDIO_Response_Registers + * @{ + */ + +#define SDIO_RESP1 ((uint32_t)0x00000000) +#define SDIO_RESP2 ((uint32_t)0x00000004) +#define SDIO_RESP3 ((uint32_t)0x00000008) +#define SDIO_RESP4 ((uint32_t)0x0000000C) +#define IS_SDIO_RESP(RESP) (((RESP) == SDIO_RESP1) || ((RESP) == SDIO_RESP2) || \ + ((RESP) == SDIO_RESP3) || ((RESP) == SDIO_RESP4)) +/** + * @} + */ + +/** @defgroup SDIO_Data_Length + * @{ + */ + +#define IS_SDIO_DATA_LENGTH(LENGTH) ((LENGTH) <= 0x01FFFFFF) +/** + * @} + */ + +/** @defgroup SDIO_Data_Block_Size + * @{ + */ + +#define SDIO_DataBlockSize_1b ((uint32_t)0x00000000) +#define SDIO_DataBlockSize_2b ((uint32_t)0x00000010) +#define SDIO_DataBlockSize_4b ((uint32_t)0x00000020) +#define SDIO_DataBlockSize_8b ((uint32_t)0x00000030) +#define SDIO_DataBlockSize_16b ((uint32_t)0x00000040) +#define SDIO_DataBlockSize_32b ((uint32_t)0x00000050) +#define SDIO_DataBlockSize_64b ((uint32_t)0x00000060) +#define SDIO_DataBlockSize_128b ((uint32_t)0x00000070) +#define SDIO_DataBlockSize_256b ((uint32_t)0x00000080) +#define SDIO_DataBlockSize_512b ((uint32_t)0x00000090) +#define SDIO_DataBlockSize_1024b ((uint32_t)0x000000A0) +#define SDIO_DataBlockSize_2048b ((uint32_t)0x000000B0) +#define SDIO_DataBlockSize_4096b ((uint32_t)0x000000C0) +#define SDIO_DataBlockSize_8192b ((uint32_t)0x000000D0) +#define SDIO_DataBlockSize_16384b ((uint32_t)0x000000E0) +#define IS_SDIO_BLOCK_SIZE(SIZE) (((SIZE) == SDIO_DataBlockSize_1b) || \ + ((SIZE) == SDIO_DataBlockSize_2b) || \ + ((SIZE) == SDIO_DataBlockSize_4b) || \ + ((SIZE) == SDIO_DataBlockSize_8b) || \ + ((SIZE) == SDIO_DataBlockSize_16b) || \ + ((SIZE) == SDIO_DataBlockSize_32b) || \ + ((SIZE) == SDIO_DataBlockSize_64b) || \ + ((SIZE) == SDIO_DataBlockSize_128b) || \ + ((SIZE) == SDIO_DataBlockSize_256b) || \ + ((SIZE) == SDIO_DataBlockSize_512b) || \ + ((SIZE) == SDIO_DataBlockSize_1024b) || \ + ((SIZE) == SDIO_DataBlockSize_2048b) || \ + ((SIZE) == SDIO_DataBlockSize_4096b) || \ + ((SIZE) == SDIO_DataBlockSize_8192b) || \ + ((SIZE) == SDIO_DataBlockSize_16384b)) +/** + * @} + */ + +/** @defgroup SDIO_Transfer_Direction + * @{ + */ + +#define SDIO_TransferDir_ToCard ((uint32_t)0x00000000) +#define SDIO_TransferDir_ToSDIO ((uint32_t)0x00000002) +#define IS_SDIO_TRANSFER_DIR(DIR) (((DIR) == SDIO_TransferDir_ToCard) || \ + ((DIR) == SDIO_TransferDir_ToSDIO)) +/** + * @} + */ + +/** @defgroup SDIO_Transfer_Type + * @{ + */ + +#define SDIO_TransferMode_Block ((uint32_t)0x00000000) +#define SDIO_TransferMode_Stream ((uint32_t)0x00000004) +#define IS_SDIO_TRANSFER_MODE(MODE) (((MODE) == SDIO_TransferMode_Stream) || \ + ((MODE) == SDIO_TransferMode_Block)) +/** + * @} + */ + +/** @defgroup SDIO_DPSM_State + * @{ + */ + +#define SDIO_DPSM_Disable ((uint32_t)0x00000000) +#define SDIO_DPSM_Enable ((uint32_t)0x00000001) +#define IS_SDIO_DPSM(DPSM) (((DPSM) == SDIO_DPSM_Enable) || ((DPSM) == SDIO_DPSM_Disable)) +/** + * @} + */ + +/** @defgroup SDIO_Flags + * @{ + */ + +#define SDIO_FLAG_CCRCFAIL ((uint32_t)0x00000001) +#define SDIO_FLAG_DCRCFAIL ((uint32_t)0x00000002) +#define SDIO_FLAG_CTIMEOUT ((uint32_t)0x00000004) +#define SDIO_FLAG_DTIMEOUT ((uint32_t)0x00000008) +#define SDIO_FLAG_TXUNDERR ((uint32_t)0x00000010) +#define SDIO_FLAG_RXOVERR ((uint32_t)0x00000020) +#define SDIO_FLAG_CMDREND ((uint32_t)0x00000040) +#define SDIO_FLAG_CMDSENT ((uint32_t)0x00000080) +#define SDIO_FLAG_DATAEND ((uint32_t)0x00000100) +#define SDIO_FLAG_STBITERR ((uint32_t)0x00000200) +#define SDIO_FLAG_DBCKEND ((uint32_t)0x00000400) +#define SDIO_FLAG_CMDACT ((uint32_t)0x00000800) +#define SDIO_FLAG_TXACT ((uint32_t)0x00001000) +#define SDIO_FLAG_RXACT ((uint32_t)0x00002000) +#define SDIO_FLAG_TXFIFOHE ((uint32_t)0x00004000) +#define SDIO_FLAG_RXFIFOHF ((uint32_t)0x00008000) +#define SDIO_FLAG_TXFIFOF ((uint32_t)0x00010000) +#define SDIO_FLAG_RXFIFOF ((uint32_t)0x00020000) +#define SDIO_FLAG_TXFIFOE ((uint32_t)0x00040000) +#define SDIO_FLAG_RXFIFOE ((uint32_t)0x00080000) +#define SDIO_FLAG_TXDAVL ((uint32_t)0x00100000) +#define SDIO_FLAG_RXDAVL ((uint32_t)0x00200000) +#define SDIO_FLAG_SDIOIT ((uint32_t)0x00400000) +#define SDIO_FLAG_CEATAEND ((uint32_t)0x00800000) +#define IS_SDIO_FLAG(FLAG) (((FLAG) == SDIO_FLAG_CCRCFAIL) || \ + ((FLAG) == SDIO_FLAG_DCRCFAIL) || \ + ((FLAG) == SDIO_FLAG_CTIMEOUT) || \ + ((FLAG) == SDIO_FLAG_DTIMEOUT) || \ + ((FLAG) == SDIO_FLAG_TXUNDERR) || \ + ((FLAG) == SDIO_FLAG_RXOVERR) || \ + ((FLAG) == SDIO_FLAG_CMDREND) || \ + ((FLAG) == SDIO_FLAG_CMDSENT) || \ + ((FLAG) == SDIO_FLAG_DATAEND) || \ + ((FLAG) == SDIO_FLAG_STBITERR) || \ + ((FLAG) == SDIO_FLAG_DBCKEND) || \ + ((FLAG) == SDIO_FLAG_CMDACT) || \ + ((FLAG) == SDIO_FLAG_TXACT) || \ + ((FLAG) == SDIO_FLAG_RXACT) || \ + ((FLAG) == SDIO_FLAG_TXFIFOHE) || \ + ((FLAG) == SDIO_FLAG_RXFIFOHF) || \ + ((FLAG) == SDIO_FLAG_TXFIFOF) || \ + ((FLAG) == SDIO_FLAG_RXFIFOF) || \ + ((FLAG) == SDIO_FLAG_TXFIFOE) || \ + ((FLAG) == SDIO_FLAG_RXFIFOE) || \ + ((FLAG) == SDIO_FLAG_TXDAVL) || \ + ((FLAG) == SDIO_FLAG_RXDAVL) || \ + ((FLAG) == SDIO_FLAG_SDIOIT) || \ + ((FLAG) == SDIO_FLAG_CEATAEND)) + +#define IS_SDIO_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFF3FF800) == 0x00) && ((FLAG) != (uint32_t)0x00)) + +#define IS_SDIO_GET_IT(IT) (((IT) == SDIO_IT_CCRCFAIL) || \ + ((IT) == SDIO_IT_DCRCFAIL) || \ + ((IT) == SDIO_IT_CTIMEOUT) || \ + ((IT) == SDIO_IT_DTIMEOUT) || \ + ((IT) == SDIO_IT_TXUNDERR) || \ + ((IT) == SDIO_IT_RXOVERR) || \ + ((IT) == SDIO_IT_CMDREND) || \ + ((IT) == SDIO_IT_CMDSENT) || \ + ((IT) == SDIO_IT_DATAEND) || \ + ((IT) == SDIO_IT_STBITERR) || \ + ((IT) == SDIO_IT_DBCKEND) || \ + ((IT) == SDIO_IT_CMDACT) || \ + ((IT) == SDIO_IT_TXACT) || \ + ((IT) == SDIO_IT_RXACT) || \ + ((IT) == SDIO_IT_TXFIFOHE) || \ + ((IT) == SDIO_IT_RXFIFOHF) || \ + ((IT) == SDIO_IT_TXFIFOF) || \ + ((IT) == SDIO_IT_RXFIFOF) || \ + ((IT) == SDIO_IT_TXFIFOE) || \ + ((IT) == SDIO_IT_RXFIFOE) || \ + ((IT) == SDIO_IT_TXDAVL) || \ + ((IT) == SDIO_IT_RXDAVL) || \ + ((IT) == SDIO_IT_SDIOIT) || \ + ((IT) == SDIO_IT_CEATAEND)) + +#define IS_SDIO_CLEAR_IT(IT) ((((IT) & (uint32_t)0xFF3FF800) == 0x00) && ((IT) != (uint32_t)0x00)) + +/** + * @} + */ + +/** @defgroup SDIO_Read_Wait_Mode + * @{ + */ + +#define SDIO_ReadWaitMode_CLK ((uint32_t)0x00000000) +#define SDIO_ReadWaitMode_DATA2 ((uint32_t)0x00000001) +#define IS_SDIO_READWAIT_MODE(MODE) (((MODE) == SDIO_ReadWaitMode_CLK) || \ + ((MODE) == SDIO_ReadWaitMode_DATA2)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ +/* Function used to set the SDIO configuration to the default reset state ****/ +void SDIO_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +void SDIO_Init(SDIO_InitTypeDef* SDIO_InitStruct); +void SDIO_StructInit(SDIO_InitTypeDef* SDIO_InitStruct); +void SDIO_ClockCmd(FunctionalState NewState); +void SDIO_SetPowerState(uint32_t SDIO_PowerState); +uint32_t SDIO_GetPowerState(void); + +/* Command path state machine (CPSM) management functions *********************/ +void SDIO_SendCommand(SDIO_CmdInitTypeDef *SDIO_CmdInitStruct); +void SDIO_CmdStructInit(SDIO_CmdInitTypeDef* SDIO_CmdInitStruct); +uint8_t SDIO_GetCommandResponse(void); +uint32_t SDIO_GetResponse(uint32_t SDIO_RESP); + +/* Data path state machine (DPSM) management functions ************************/ +void SDIO_DataConfig(SDIO_DataInitTypeDef* SDIO_DataInitStruct); +void SDIO_DataStructInit(SDIO_DataInitTypeDef* SDIO_DataInitStruct); +uint32_t SDIO_GetDataCounter(void); +uint32_t SDIO_ReadData(void); +void SDIO_WriteData(uint32_t Data); +uint32_t SDIO_GetFIFOCount(void); + +/* SDIO IO Cards mode management functions ************************************/ +void SDIO_StartSDIOReadWait(FunctionalState NewState); +void SDIO_StopSDIOReadWait(FunctionalState NewState); +void SDIO_SetSDIOReadWaitMode(uint32_t SDIO_ReadWaitMode); +void SDIO_SetSDIOOperation(FunctionalState NewState); +void SDIO_SendSDIOSuspendCmd(FunctionalState NewState); + +/* CE-ATA mode management functions *******************************************/ +void SDIO_CommandCompletionCmd(FunctionalState NewState); +void SDIO_CEATAITCmd(FunctionalState NewState); +void SDIO_SendCEATACmd(FunctionalState NewState); + +/* DMA transfers management functions *****************************************/ +void SDIO_DMACmd(FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void SDIO_ITConfig(uint32_t SDIO_IT, FunctionalState NewState); +FlagStatus SDIO_GetFlagStatus(uint32_t SDIO_FLAG); +void SDIO_ClearFlag(uint32_t SDIO_FLAG); +ITStatus SDIO_GetITStatus(uint32_t SDIO_IT); +void SDIO_ClearITPendingBit(uint32_t SDIO_IT); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_SDIO_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_spi.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_spi.h new file mode 100644 index 00000000..594dfd63 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_spi.h @@ -0,0 +1,526 @@ +/** + ****************************************************************************** + * @file stm32f2xx_spi.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the SPI + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_SPI_H +#define __STM32F2xx_SPI_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup SPI + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief SPI Init structure definition + */ + +typedef struct +{ + uint16_t SPI_Direction; /*!< Specifies the SPI unidirectional or bidirectional data mode. + This parameter can be a value of @ref SPI_data_direction */ + + uint16_t SPI_Mode; /*!< Specifies the SPI operating mode. + This parameter can be a value of @ref SPI_mode */ + + uint16_t SPI_DataSize; /*!< Specifies the SPI data size. + This parameter can be a value of @ref SPI_data_size */ + + uint16_t SPI_CPOL; /*!< Specifies the serial clock steady state. + This parameter can be a value of @ref SPI_Clock_Polarity */ + + uint16_t SPI_CPHA; /*!< Specifies the clock active edge for the bit capture. + This parameter can be a value of @ref SPI_Clock_Phase */ + + uint16_t SPI_NSS; /*!< Specifies whether the NSS signal is managed by + hardware (NSS pin) or by software using the SSI bit. + This parameter can be a value of @ref SPI_Slave_Select_management */ + + uint16_t SPI_BaudRatePrescaler; /*!< Specifies the Baud Rate prescaler value which will be + used to configure the transmit and receive SCK clock. + This parameter can be a value of @ref SPI_BaudRate_Prescaler + @note The communication clock is derived from the master + clock. The slave clock does not need to be set. */ + + uint16_t SPI_FirstBit; /*!< Specifies whether data transfers start from MSB or LSB bit. + This parameter can be a value of @ref SPI_MSB_LSB_transmission */ + + uint16_t SPI_CRCPolynomial; /*!< Specifies the polynomial used for the CRC calculation. */ +}SPI_InitTypeDef; + +/** + * @brief I2S Init structure definition + */ + +typedef struct +{ + + uint16_t I2S_Mode; /*!< Specifies the I2S operating mode. + This parameter can be a value of @ref I2S_Mode */ + + uint16_t I2S_Standard; /*!< Specifies the standard used for the I2S communication. + This parameter can be a value of @ref I2S_Standard */ + + uint16_t I2S_DataFormat; /*!< Specifies the data format for the I2S communication. + This parameter can be a value of @ref I2S_Data_Format */ + + uint16_t I2S_MCLKOutput; /*!< Specifies whether the I2S MCLK output is enabled or not. + This parameter can be a value of @ref I2S_MCLK_Output */ + + uint32_t I2S_AudioFreq; /*!< Specifies the frequency selected for the I2S communication. + This parameter can be a value of @ref I2S_Audio_Frequency */ + + uint16_t I2S_CPOL; /*!< Specifies the idle state of the I2S clock. + This parameter can be a value of @ref I2S_Clock_Polarity */ +}I2S_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup SPI_Exported_Constants + * @{ + */ + +#define IS_SPI_ALL_PERIPH(PERIPH) (((PERIPH) == SPI1) || \ + ((PERIPH) == SPI2) || \ + ((PERIPH) == SPI3)) + +#define IS_SPI_23_PERIPH(PERIPH) (((PERIPH) == SPI2) || \ + ((PERIPH) == SPI3)) + +/** @defgroup SPI_data_direction + * @{ + */ + +#define SPI_Direction_2Lines_FullDuplex ((uint16_t)0x0000) +#define SPI_Direction_2Lines_RxOnly ((uint16_t)0x0400) +#define SPI_Direction_1Line_Rx ((uint16_t)0x8000) +#define SPI_Direction_1Line_Tx ((uint16_t)0xC000) +#define IS_SPI_DIRECTION_MODE(MODE) (((MODE) == SPI_Direction_2Lines_FullDuplex) || \ + ((MODE) == SPI_Direction_2Lines_RxOnly) || \ + ((MODE) == SPI_Direction_1Line_Rx) || \ + ((MODE) == SPI_Direction_1Line_Tx)) +/** + * @} + */ + +/** @defgroup SPI_mode + * @{ + */ + +#define SPI_Mode_Master ((uint16_t)0x0104) +#define SPI_Mode_Slave ((uint16_t)0x0000) +#define IS_SPI_MODE(MODE) (((MODE) == SPI_Mode_Master) || \ + ((MODE) == SPI_Mode_Slave)) +/** + * @} + */ + +/** @defgroup SPI_data_size + * @{ + */ + +#define SPI_DataSize_16b ((uint16_t)0x0800) +#define SPI_DataSize_8b ((uint16_t)0x0000) +#define IS_SPI_DATASIZE(DATASIZE) (((DATASIZE) == SPI_DataSize_16b) || \ + ((DATASIZE) == SPI_DataSize_8b)) +/** + * @} + */ + +/** @defgroup SPI_Clock_Polarity + * @{ + */ + +#define SPI_CPOL_Low ((uint16_t)0x0000) +#define SPI_CPOL_High ((uint16_t)0x0002) +#define IS_SPI_CPOL(CPOL) (((CPOL) == SPI_CPOL_Low) || \ + ((CPOL) == SPI_CPOL_High)) +/** + * @} + */ + +/** @defgroup SPI_Clock_Phase + * @{ + */ + +#define SPI_CPHA_1Edge ((uint16_t)0x0000) +#define SPI_CPHA_2Edge ((uint16_t)0x0001) +#define IS_SPI_CPHA(CPHA) (((CPHA) == SPI_CPHA_1Edge) || \ + ((CPHA) == SPI_CPHA_2Edge)) +/** + * @} + */ + +/** @defgroup SPI_Slave_Select_management + * @{ + */ + +#define SPI_NSS_Soft ((uint16_t)0x0200) +#define SPI_NSS_Hard ((uint16_t)0x0000) +#define IS_SPI_NSS(NSS) (((NSS) == SPI_NSS_Soft) || \ + ((NSS) == SPI_NSS_Hard)) +/** + * @} + */ + +/** @defgroup SPI_BaudRate_Prescaler + * @{ + */ + +#define SPI_BaudRatePrescaler_2 ((uint16_t)0x0000) +#define SPI_BaudRatePrescaler_4 ((uint16_t)0x0008) +#define SPI_BaudRatePrescaler_8 ((uint16_t)0x0010) +#define SPI_BaudRatePrescaler_16 ((uint16_t)0x0018) +#define SPI_BaudRatePrescaler_32 ((uint16_t)0x0020) +#define SPI_BaudRatePrescaler_64 ((uint16_t)0x0028) +#define SPI_BaudRatePrescaler_128 ((uint16_t)0x0030) +#define SPI_BaudRatePrescaler_256 ((uint16_t)0x0038) +#define IS_SPI_BAUDRATE_PRESCALER(PRESCALER) (((PRESCALER) == SPI_BaudRatePrescaler_2) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_4) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_8) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_16) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_32) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_64) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_128) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_256)) +/** + * @} + */ + +/** @defgroup SPI_MSB_LSB_transmission + * @{ + */ + +#define SPI_FirstBit_MSB ((uint16_t)0x0000) +#define SPI_FirstBit_LSB ((uint16_t)0x0080) +#define IS_SPI_FIRST_BIT(BIT) (((BIT) == SPI_FirstBit_MSB) || \ + ((BIT) == SPI_FirstBit_LSB)) +/** + * @} + */ + +/** @defgroup SPI_I2S_Mode + * @{ + */ + +#define I2S_Mode_SlaveTx ((uint16_t)0x0000) +#define I2S_Mode_SlaveRx ((uint16_t)0x0100) +#define I2S_Mode_MasterTx ((uint16_t)0x0200) +#define I2S_Mode_MasterRx ((uint16_t)0x0300) +#define IS_I2S_MODE(MODE) (((MODE) == I2S_Mode_SlaveTx) || \ + ((MODE) == I2S_Mode_SlaveRx) || \ + ((MODE) == I2S_Mode_MasterTx)|| \ + ((MODE) == I2S_Mode_MasterRx)) +/** + * @} + */ + + +/** @defgroup SPI_I2S_Standard + * @{ + */ + +#define I2S_Standard_Phillips ((uint16_t)0x0000) +#define I2S_Standard_MSB ((uint16_t)0x0010) +#define I2S_Standard_LSB ((uint16_t)0x0020) +#define I2S_Standard_PCMShort ((uint16_t)0x0030) +#define I2S_Standard_PCMLong ((uint16_t)0x00B0) +#define IS_I2S_STANDARD(STANDARD) (((STANDARD) == I2S_Standard_Phillips) || \ + ((STANDARD) == I2S_Standard_MSB) || \ + ((STANDARD) == I2S_Standard_LSB) || \ + ((STANDARD) == I2S_Standard_PCMShort) || \ + ((STANDARD) == I2S_Standard_PCMLong)) +/** + * @} + */ + +/** @defgroup SPI_I2S_Data_Format + * @{ + */ + +#define I2S_DataFormat_16b ((uint16_t)0x0000) +#define I2S_DataFormat_16bextended ((uint16_t)0x0001) +#define I2S_DataFormat_24b ((uint16_t)0x0003) +#define I2S_DataFormat_32b ((uint16_t)0x0005) +#define IS_I2S_DATA_FORMAT(FORMAT) (((FORMAT) == I2S_DataFormat_16b) || \ + ((FORMAT) == I2S_DataFormat_16bextended) || \ + ((FORMAT) == I2S_DataFormat_24b) || \ + ((FORMAT) == I2S_DataFormat_32b)) +/** + * @} + */ + +/** @defgroup SPI_I2S_MCLK_Output + * @{ + */ + +#define I2S_MCLKOutput_Enable ((uint16_t)0x0200) +#define I2S_MCLKOutput_Disable ((uint16_t)0x0000) +#define IS_I2S_MCLK_OUTPUT(OUTPUT) (((OUTPUT) == I2S_MCLKOutput_Enable) || \ + ((OUTPUT) == I2S_MCLKOutput_Disable)) +/** + * @} + */ + +/** @defgroup SPI_I2S_Audio_Frequency + * @{ + */ + +#define I2S_AudioFreq_192k ((uint32_t)192000) +#define I2S_AudioFreq_96k ((uint32_t)96000) +#define I2S_AudioFreq_48k ((uint32_t)48000) +#define I2S_AudioFreq_44k ((uint32_t)44100) +#define I2S_AudioFreq_32k ((uint32_t)32000) +#define I2S_AudioFreq_22k ((uint32_t)22050) +#define I2S_AudioFreq_16k ((uint32_t)16000) +#define I2S_AudioFreq_11k ((uint32_t)11025) +#define I2S_AudioFreq_8k ((uint32_t)8000) +#define I2S_AudioFreq_Default ((uint32_t)2) + +#define IS_I2S_AUDIO_FREQ(FREQ) ((((FREQ) >= I2S_AudioFreq_8k) && \ + ((FREQ) <= I2S_AudioFreq_192k)) || \ + ((FREQ) == I2S_AudioFreq_Default)) +/** + * @} + */ + +/** @defgroup SPI_I2S_Clock_Polarity + * @{ + */ + +#define I2S_CPOL_Low ((uint16_t)0x0000) +#define I2S_CPOL_High ((uint16_t)0x0008) +#define IS_I2S_CPOL(CPOL) (((CPOL) == I2S_CPOL_Low) || \ + ((CPOL) == I2S_CPOL_High)) +/** + * @} + */ + +/** @defgroup SPI_I2S_DMA_transfer_requests + * @{ + */ + +#define SPI_I2S_DMAReq_Tx ((uint16_t)0x0002) +#define SPI_I2S_DMAReq_Rx ((uint16_t)0x0001) +#define IS_SPI_I2S_DMAREQ(DMAREQ) ((((DMAREQ) & (uint16_t)0xFFFC) == 0x00) && ((DMAREQ) != 0x00)) +/** + * @} + */ + +/** @defgroup SPI_NSS_internal_software_management + * @{ + */ + +#define SPI_NSSInternalSoft_Set ((uint16_t)0x0100) +#define SPI_NSSInternalSoft_Reset ((uint16_t)0xFEFF) +#define IS_SPI_NSS_INTERNAL(INTERNAL) (((INTERNAL) == SPI_NSSInternalSoft_Set) || \ + ((INTERNAL) == SPI_NSSInternalSoft_Reset)) +/** + * @} + */ + +/** @defgroup SPI_CRC_Transmit_Receive + * @{ + */ + +#define SPI_CRC_Tx ((uint8_t)0x00) +#define SPI_CRC_Rx ((uint8_t)0x01) +#define IS_SPI_CRC(CRC) (((CRC) == SPI_CRC_Tx) || ((CRC) == SPI_CRC_Rx)) +/** + * @} + */ + +/** @defgroup SPI_direction_transmit_receive + * @{ + */ + +#define SPI_Direction_Rx ((uint16_t)0xBFFF) +#define SPI_Direction_Tx ((uint16_t)0x4000) +#define IS_SPI_DIRECTION(DIRECTION) (((DIRECTION) == SPI_Direction_Rx) || \ + ((DIRECTION) == SPI_Direction_Tx)) +/** + * @} + */ + +/** @defgroup SPI_I2S_interrupts_definition + * @{ + */ + +#define SPI_I2S_IT_TXE ((uint8_t)0x71) +#define SPI_I2S_IT_RXNE ((uint8_t)0x60) +#define SPI_I2S_IT_ERR ((uint8_t)0x50) +#define I2S_IT_UDR ((uint8_t)0x53) +#define SPI_I2S_IT_TIFRFE ((uint8_t)0x58) + +#define IS_SPI_I2S_CONFIG_IT(IT) (((IT) == SPI_I2S_IT_TXE) || \ + ((IT) == SPI_I2S_IT_RXNE) || \ + ((IT) == SPI_I2S_IT_ERR)) + +#define SPI_I2S_IT_OVR ((uint8_t)0x56) +#define SPI_IT_MODF ((uint8_t)0x55) +#define SPI_IT_CRCERR ((uint8_t)0x54) + +#define IS_SPI_I2S_CLEAR_IT(IT) (((IT) == SPI_IT_CRCERR)) + +#define IS_SPI_I2S_GET_IT(IT) (((IT) == SPI_I2S_IT_RXNE)|| ((IT) == SPI_I2S_IT_TXE) || \ + ((IT) == SPI_IT_CRCERR) || ((IT) == SPI_IT_MODF) || \ + ((IT) == SPI_I2S_IT_OVR) || ((IT) == I2S_IT_UDR) ||\ + ((IT) == SPI_I2S_IT_TIFRFE)) +/** + * @} + */ + +/** @defgroup SPI_I2S_flags_definition + * @{ + */ + +#define SPI_I2S_FLAG_RXNE ((uint16_t)0x0001) +#define SPI_I2S_FLAG_TXE ((uint16_t)0x0002) +#define I2S_FLAG_CHSIDE ((uint16_t)0x0004) +#define I2S_FLAG_UDR ((uint16_t)0x0008) +#define SPI_FLAG_CRCERR ((uint16_t)0x0010) +#define SPI_FLAG_MODF ((uint16_t)0x0020) +#define SPI_I2S_FLAG_OVR ((uint16_t)0x0040) +#define SPI_I2S_FLAG_BSY ((uint16_t)0x0080) +#define SPI_I2S_FLAG_TIFRFE ((uint16_t)0x0100) + +#define IS_SPI_I2S_CLEAR_FLAG(FLAG) (((FLAG) == SPI_FLAG_CRCERR)) +#define IS_SPI_I2S_GET_FLAG(FLAG) (((FLAG) == SPI_I2S_FLAG_BSY) || ((FLAG) == SPI_I2S_FLAG_OVR) || \ + ((FLAG) == SPI_FLAG_MODF) || ((FLAG) == SPI_FLAG_CRCERR) || \ + ((FLAG) == I2S_FLAG_UDR) || ((FLAG) == I2S_FLAG_CHSIDE) || \ + ((FLAG) == SPI_I2S_FLAG_TXE) || ((FLAG) == SPI_I2S_FLAG_RXNE)|| \ + ((FLAG) == SPI_I2S_FLAG_TIFRFE)) +/** + * @} + */ + +/** @defgroup SPI_CRC_polynomial + * @{ + */ + +#define IS_SPI_CRC_POLYNOMIAL(POLYNOMIAL) ((POLYNOMIAL) >= 0x1) +/** + * @} + */ + +/** @defgroup SPI_I2S_Legacy + * @{ + */ + +#define SPI_DMAReq_Tx SPI_I2S_DMAReq_Tx +#define SPI_DMAReq_Rx SPI_I2S_DMAReq_Rx +#define SPI_IT_TXE SPI_I2S_IT_TXE +#define SPI_IT_RXNE SPI_I2S_IT_RXNE +#define SPI_IT_ERR SPI_I2S_IT_ERR +#define SPI_IT_OVR SPI_I2S_IT_OVR +#define SPI_FLAG_RXNE SPI_I2S_FLAG_RXNE +#define SPI_FLAG_TXE SPI_I2S_FLAG_TXE +#define SPI_FLAG_OVR SPI_I2S_FLAG_OVR +#define SPI_FLAG_BSY SPI_I2S_FLAG_BSY +#define SPI_DeInit SPI_I2S_DeInit +#define SPI_ITConfig SPI_I2S_ITConfig +#define SPI_DMACmd SPI_I2S_DMACmd +#define SPI_SendData SPI_I2S_SendData +#define SPI_ReceiveData SPI_I2S_ReceiveData +#define SPI_GetFlagStatus SPI_I2S_GetFlagStatus +#define SPI_ClearFlag SPI_I2S_ClearFlag +#define SPI_GetITStatus SPI_I2S_GetITStatus +#define SPI_ClearITPendingBit SPI_I2S_ClearITPendingBit +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the SPI configuration to the default reset state *****/ +void SPI_I2S_DeInit(SPI_TypeDef* SPIx); + +/* Initialization and Configuration functions *********************************/ +void SPI_Init(SPI_TypeDef* SPIx, SPI_InitTypeDef* SPI_InitStruct); +void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct); +void SPI_StructInit(SPI_InitTypeDef* SPI_InitStruct); +void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct); +void SPI_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState); +void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState); +void SPI_DataSizeConfig(SPI_TypeDef* SPIx, uint16_t SPI_DataSize); +void SPI_BiDirectionalLineConfig(SPI_TypeDef* SPIx, uint16_t SPI_Direction); +void SPI_NSSInternalSoftwareConfig(SPI_TypeDef* SPIx, uint16_t SPI_NSSInternalSoft); +void SPI_SSOutputCmd(SPI_TypeDef* SPIx, FunctionalState NewState); +void SPI_TIModeCmd(SPI_TypeDef* SPIx, FunctionalState NewState); + +/* Data transfers functions ***************************************************/ +void SPI_I2S_SendData(SPI_TypeDef* SPIx, uint16_t Data); +uint16_t SPI_I2S_ReceiveData(SPI_TypeDef* SPIx); + +/* Hardware CRC Calculation functions *****************************************/ +void SPI_CalculateCRC(SPI_TypeDef* SPIx, FunctionalState NewState); +void SPI_TransmitCRC(SPI_TypeDef* SPIx); +uint16_t SPI_GetCRC(SPI_TypeDef* SPIx, uint8_t SPI_CRC); +uint16_t SPI_GetCRCPolynomial(SPI_TypeDef* SPIx); + +/* DMA transfers management functions *****************************************/ +void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState); +FlagStatus SPI_I2S_GetFlagStatus(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG); +void SPI_I2S_ClearFlag(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG); +ITStatus SPI_I2S_GetITStatus(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT); +void SPI_I2S_ClearITPendingBit(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_SPI_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_syscfg.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_syscfg.h new file mode 100644 index 00000000..ab45e12a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_syscfg.h @@ -0,0 +1,179 @@ +/** + ****************************************************************************** + * @file stm32f2xx_syscfg.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the SYSCFG firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_SYSCFG_H +#define __STM32F2xx_SYSCFG_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup SYSCFG + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup SYSCFG_Exported_Constants + * @{ + */ + +/** @defgroup SYSCFG_EXTI_Port_Sources + * @{ + */ +#define EXTI_PortSourceGPIOA ((uint8_t)0x00) +#define EXTI_PortSourceGPIOB ((uint8_t)0x01) +#define EXTI_PortSourceGPIOC ((uint8_t)0x02) +#define EXTI_PortSourceGPIOD ((uint8_t)0x03) +#define EXTI_PortSourceGPIOE ((uint8_t)0x04) +#define EXTI_PortSourceGPIOF ((uint8_t)0x05) +#define EXTI_PortSourceGPIOG ((uint8_t)0x06) +#define EXTI_PortSourceGPIOH ((uint8_t)0x07) +#define EXTI_PortSourceGPIOI ((uint8_t)0x08) + +#define IS_EXTI_PORT_SOURCE(PORTSOURCE) (((PORTSOURCE) == EXTI_PortSourceGPIOA) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOB) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOC) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOD) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOE) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOF) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOG) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOH) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOI)) +/** + * @} + */ + + +/** @defgroup SYSCFG_EXTI_Pin_Sources + * @{ + */ +#define EXTI_PinSource0 ((uint8_t)0x00) +#define EXTI_PinSource1 ((uint8_t)0x01) +#define EXTI_PinSource2 ((uint8_t)0x02) +#define EXTI_PinSource3 ((uint8_t)0x03) +#define EXTI_PinSource4 ((uint8_t)0x04) +#define EXTI_PinSource5 ((uint8_t)0x05) +#define EXTI_PinSource6 ((uint8_t)0x06) +#define EXTI_PinSource7 ((uint8_t)0x07) +#define EXTI_PinSource8 ((uint8_t)0x08) +#define EXTI_PinSource9 ((uint8_t)0x09) +#define EXTI_PinSource10 ((uint8_t)0x0A) +#define EXTI_PinSource11 ((uint8_t)0x0B) +#define EXTI_PinSource12 ((uint8_t)0x0C) +#define EXTI_PinSource13 ((uint8_t)0x0D) +#define EXTI_PinSource14 ((uint8_t)0x0E) +#define EXTI_PinSource15 ((uint8_t)0x0F) +#define IS_EXTI_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == EXTI_PinSource0) || \ + ((PINSOURCE) == EXTI_PinSource1) || \ + ((PINSOURCE) == EXTI_PinSource2) || \ + ((PINSOURCE) == EXTI_PinSource3) || \ + ((PINSOURCE) == EXTI_PinSource4) || \ + ((PINSOURCE) == EXTI_PinSource5) || \ + ((PINSOURCE) == EXTI_PinSource6) || \ + ((PINSOURCE) == EXTI_PinSource7) || \ + ((PINSOURCE) == EXTI_PinSource8) || \ + ((PINSOURCE) == EXTI_PinSource9) || \ + ((PINSOURCE) == EXTI_PinSource10) || \ + ((PINSOURCE) == EXTI_PinSource11) || \ + ((PINSOURCE) == EXTI_PinSource12) || \ + ((PINSOURCE) == EXTI_PinSource13) || \ + ((PINSOURCE) == EXTI_PinSource14) || \ + ((PINSOURCE) == EXTI_PinSource15)) +/** + * @} + */ + + +/** @defgroup SYSCFG_Memory_Remap_Config + * @{ + */ +#define SYSCFG_MemoryRemap_Flash ((uint8_t)0x00) +#define SYSCFG_MemoryRemap_SystemFlash ((uint8_t)0x01) +#define SYSCFG_MemoryRemap_FSMC ((uint8_t)0x02) +#define SYSCFG_MemoryRemap_SRAM ((uint8_t)0x03) + +#define IS_SYSCFG_MEMORY_REMAP_CONFING(REMAP) (((REMAP) == SYSCFG_MemoryRemap_Flash) || \ + ((REMAP) == SYSCFG_MemoryRemap_SystemFlash) || \ + ((REMAP) == SYSCFG_MemoryRemap_SRAM) || \ + ((REMAP) == SYSCFG_MemoryRemap_FSMC)) +/** + * @} + */ + + +/** @defgroup SYSCFG_ETHERNET_Media_Interface + * @{ + */ +#define SYSCFG_ETH_MediaInterface_MII ((uint32_t)0x00000000) +#define SYSCFG_ETH_MediaInterface_RMII ((uint32_t)0x00000001) + +#define IS_SYSCFG_ETH_MEDIA_INTERFACE(INTERFACE) (((INTERFACE) == SYSCFG_ETH_MediaInterface_MII) || \ + ((INTERFACE) == SYSCFG_ETH_MediaInterface_RMII)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +void SYSCFG_DeInit(void); +void SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap); +void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex); +void SYSCFG_ETH_MediaInterfaceConfig(uint32_t SYSCFG_ETH_MediaInterface); +void SYSCFG_CompensationCellCmd(FunctionalState NewState); +FlagStatus SYSCFG_GetCompensationCellStatus(void); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_SYSCFG_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_tim.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_tim.h new file mode 100644 index 00000000..62590b64 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_tim.h @@ -0,0 +1,1150 @@ +/** + ****************************************************************************** + * @file stm32f2xx_tim.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the TIM firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_TIM_H +#define __STM32F2xx_TIM_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup TIM + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief TIM Time Base Init structure definition + * @note This structure is used with all TIMx except for TIM6 and TIM7. + */ + +typedef struct +{ + uint16_t TIM_Prescaler; /*!< Specifies the prescaler value used to divide the TIM clock. + This parameter can be a number between 0x0000 and 0xFFFF */ + + uint16_t TIM_CounterMode; /*!< Specifies the counter mode. + This parameter can be a value of @ref TIM_Counter_Mode */ + + uint32_t TIM_Period; /*!< Specifies the period value to be loaded into the active + Auto-Reload Register at the next update event. + This parameter must be a number between 0x0000 and 0xFFFF. */ + + uint16_t TIM_ClockDivision; /*!< Specifies the clock division. + This parameter can be a value of @ref TIM_Clock_Division_CKD */ + + uint8_t TIM_RepetitionCounter; /*!< Specifies the repetition counter value. Each time the RCR downcounter + reaches zero, an update event is generated and counting restarts + from the RCR value (N). + This means in PWM mode that (N+1) corresponds to: + - the number of PWM periods in edge-aligned mode + - the number of half PWM period in center-aligned mode + This parameter must be a number between 0x00 and 0xFF. + @note This parameter is valid only for TIM1 and TIM8. */ +} TIM_TimeBaseInitTypeDef; + +/** + * @brief TIM Output Compare Init structure definition + */ + +typedef struct +{ + uint16_t TIM_OCMode; /*!< Specifies the TIM mode. + This parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes */ + + uint16_t TIM_OutputState; /*!< Specifies the TIM Output Compare state. + This parameter can be a value of @ref TIM_Output_Compare_State */ + + uint16_t TIM_OutputNState; /*!< Specifies the TIM complementary Output Compare state. + This parameter can be a value of @ref TIM_Output_Compare_N_State + @note This parameter is valid only for TIM1 and TIM8. */ + + uint32_t TIM_Pulse; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. + This parameter can be a number between 0x0000 and 0xFFFF */ + + uint16_t TIM_OCPolarity; /*!< Specifies the output polarity. + This parameter can be a value of @ref TIM_Output_Compare_Polarity */ + + uint16_t TIM_OCNPolarity; /*!< Specifies the complementary output polarity. + This parameter can be a value of @ref TIM_Output_Compare_N_Polarity + @note This parameter is valid only for TIM1 and TIM8. */ + + uint16_t TIM_OCIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. + This parameter can be a value of @ref TIM_Output_Compare_Idle_State + @note This parameter is valid only for TIM1 and TIM8. */ + + uint16_t TIM_OCNIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. + This parameter can be a value of @ref TIM_Output_Compare_N_Idle_State + @note This parameter is valid only for TIM1 and TIM8. */ +} TIM_OCInitTypeDef; + +/** + * @brief TIM Input Capture Init structure definition + */ + +typedef struct +{ + + uint16_t TIM_Channel; /*!< Specifies the TIM channel. + This parameter can be a value of @ref TIM_Channel */ + + uint16_t TIM_ICPolarity; /*!< Specifies the active edge of the input signal. + This parameter can be a value of @ref TIM_Input_Capture_Polarity */ + + uint16_t TIM_ICSelection; /*!< Specifies the input. + This parameter can be a value of @ref TIM_Input_Capture_Selection */ + + uint16_t TIM_ICPrescaler; /*!< Specifies the Input Capture Prescaler. + This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ + + uint16_t TIM_ICFilter; /*!< Specifies the input capture filter. + This parameter can be a number between 0x0 and 0xF */ +} TIM_ICInitTypeDef; + +/** + * @brief BDTR structure definition + * @note This structure is used only with TIM1 and TIM8. + */ + +typedef struct +{ + + uint16_t TIM_OSSRState; /*!< Specifies the Off-State selection used in Run mode. + This parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state */ + + uint16_t TIM_OSSIState; /*!< Specifies the Off-State used in Idle state. + This parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state */ + + uint16_t TIM_LOCKLevel; /*!< Specifies the LOCK level parameters. + This parameter can be a value of @ref TIM_Lock_level */ + + uint16_t TIM_DeadTime; /*!< Specifies the delay time between the switching-off and the + switching-on of the outputs. + This parameter can be a number between 0x00 and 0xFF */ + + uint16_t TIM_Break; /*!< Specifies whether the TIM Break input is enabled or not. + This parameter can be a value of @ref TIM_Break_Input_enable_disable */ + + uint16_t TIM_BreakPolarity; /*!< Specifies the TIM Break Input pin polarity. + This parameter can be a value of @ref TIM_Break_Polarity */ + + uint16_t TIM_AutomaticOutput; /*!< Specifies whether the TIM Automatic Output feature is enabled or not. + This parameter can be a value of @ref TIM_AOE_Bit_Set_Reset */ +} TIM_BDTRInitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup TIM_Exported_constants + * @{ + */ + +#define IS_TIM_ALL_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM6) || \ + ((PERIPH) == TIM7) || \ + ((PERIPH) == TIM8) || \ + ((PERIPH) == TIM9) || \ + ((PERIPH) == TIM10) || \ + ((PERIPH) == TIM11) || \ + ((PERIPH) == TIM12) || \ + (((PERIPH) == TIM13) || \ + ((PERIPH) == TIM14))) +/* LIST1: TIM1, TIM2, TIM3, TIM4, TIM5, TIM8, TIM9, TIM10, TIM11, TIM12, TIM13 and TIM14 */ +#define IS_TIM_LIST1_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM8) || \ + ((PERIPH) == TIM9) || \ + ((PERIPH) == TIM10) || \ + ((PERIPH) == TIM11) || \ + ((PERIPH) == TIM12) || \ + ((PERIPH) == TIM13) || \ + ((PERIPH) == TIM14)) + +/* LIST2: TIM1, TIM2, TIM3, TIM4, TIM5, TIM8, TIM9 and TIM12 */ +#define IS_TIM_LIST2_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM8) || \ + ((PERIPH) == TIM9) || \ + ((PERIPH) == TIM12)) +/* LIST3: TIM1, TIM2, TIM3, TIM4, TIM5 and TIM8 */ +#define IS_TIM_LIST3_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM8)) +/* LIST4: TIM1 and TIM8 */ +#define IS_TIM_LIST4_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM8)) +/* LIST5: TIM1, TIM2, TIM3, TIM4, TIM5, TIM6, TIM7 and TIM8 */ +#define IS_TIM_LIST5_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM6) || \ + ((PERIPH) == TIM7) || \ + ((PERIPH) == TIM8)) +/* LIST6: TIM2, TIM5 and TIM11 */ +#define IS_TIM_LIST6_PERIPH(TIMx)(((TIMx) == TIM2) || \ + ((TIMx) == TIM5) || \ + ((TIMx) == TIM11)) + +/** @defgroup TIM_Output_Compare_and_PWM_modes + * @{ + */ + +#define TIM_OCMode_Timing ((uint16_t)0x0000) +#define TIM_OCMode_Active ((uint16_t)0x0010) +#define TIM_OCMode_Inactive ((uint16_t)0x0020) +#define TIM_OCMode_Toggle ((uint16_t)0x0030) +#define TIM_OCMode_PWM1 ((uint16_t)0x0060) +#define TIM_OCMode_PWM2 ((uint16_t)0x0070) +#define IS_TIM_OC_MODE(MODE) (((MODE) == TIM_OCMode_Timing) || \ + ((MODE) == TIM_OCMode_Active) || \ + ((MODE) == TIM_OCMode_Inactive) || \ + ((MODE) == TIM_OCMode_Toggle)|| \ + ((MODE) == TIM_OCMode_PWM1) || \ + ((MODE) == TIM_OCMode_PWM2)) +#define IS_TIM_OCM(MODE) (((MODE) == TIM_OCMode_Timing) || \ + ((MODE) == TIM_OCMode_Active) || \ + ((MODE) == TIM_OCMode_Inactive) || \ + ((MODE) == TIM_OCMode_Toggle)|| \ + ((MODE) == TIM_OCMode_PWM1) || \ + ((MODE) == TIM_OCMode_PWM2) || \ + ((MODE) == TIM_ForcedAction_Active) || \ + ((MODE) == TIM_ForcedAction_InActive)) +/** + * @} + */ + +/** @defgroup TIM_One_Pulse_Mode + * @{ + */ + +#define TIM_OPMode_Single ((uint16_t)0x0008) +#define TIM_OPMode_Repetitive ((uint16_t)0x0000) +#define IS_TIM_OPM_MODE(MODE) (((MODE) == TIM_OPMode_Single) || \ + ((MODE) == TIM_OPMode_Repetitive)) +/** + * @} + */ + +/** @defgroup TIM_Channel + * @{ + */ + +#define TIM_Channel_1 ((uint16_t)0x0000) +#define TIM_Channel_2 ((uint16_t)0x0004) +#define TIM_Channel_3 ((uint16_t)0x0008) +#define TIM_Channel_4 ((uint16_t)0x000C) + +#define IS_TIM_CHANNEL(CHANNEL) (((CHANNEL) == TIM_Channel_1) || \ + ((CHANNEL) == TIM_Channel_2) || \ + ((CHANNEL) == TIM_Channel_3) || \ + ((CHANNEL) == TIM_Channel_4)) + +#define IS_TIM_PWMI_CHANNEL(CHANNEL) (((CHANNEL) == TIM_Channel_1) || \ + ((CHANNEL) == TIM_Channel_2)) +#define IS_TIM_COMPLEMENTARY_CHANNEL(CHANNEL) (((CHANNEL) == TIM_Channel_1) || \ + ((CHANNEL) == TIM_Channel_2) || \ + ((CHANNEL) == TIM_Channel_3)) +/** + * @} + */ + +/** @defgroup TIM_Clock_Division_CKD + * @{ + */ + +#define TIM_CKD_DIV1 ((uint16_t)0x0000) +#define TIM_CKD_DIV2 ((uint16_t)0x0100) +#define TIM_CKD_DIV4 ((uint16_t)0x0200) +#define IS_TIM_CKD_DIV(DIV) (((DIV) == TIM_CKD_DIV1) || \ + ((DIV) == TIM_CKD_DIV2) || \ + ((DIV) == TIM_CKD_DIV4)) +/** + * @} + */ + +/** @defgroup TIM_Counter_Mode + * @{ + */ + +#define TIM_CounterMode_Up ((uint16_t)0x0000) +#define TIM_CounterMode_Down ((uint16_t)0x0010) +#define TIM_CounterMode_CenterAligned1 ((uint16_t)0x0020) +#define TIM_CounterMode_CenterAligned2 ((uint16_t)0x0040) +#define TIM_CounterMode_CenterAligned3 ((uint16_t)0x0060) +#define IS_TIM_COUNTER_MODE(MODE) (((MODE) == TIM_CounterMode_Up) || \ + ((MODE) == TIM_CounterMode_Down) || \ + ((MODE) == TIM_CounterMode_CenterAligned1) || \ + ((MODE) == TIM_CounterMode_CenterAligned2) || \ + ((MODE) == TIM_CounterMode_CenterAligned3)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Polarity + * @{ + */ + +#define TIM_OCPolarity_High ((uint16_t)0x0000) +#define TIM_OCPolarity_Low ((uint16_t)0x0002) +#define IS_TIM_OC_POLARITY(POLARITY) (((POLARITY) == TIM_OCPolarity_High) || \ + ((POLARITY) == TIM_OCPolarity_Low)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_N_Polarity + * @{ + */ + +#define TIM_OCNPolarity_High ((uint16_t)0x0000) +#define TIM_OCNPolarity_Low ((uint16_t)0x0008) +#define IS_TIM_OCN_POLARITY(POLARITY) (((POLARITY) == TIM_OCNPolarity_High) || \ + ((POLARITY) == TIM_OCNPolarity_Low)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_State + * @{ + */ + +#define TIM_OutputState_Disable ((uint16_t)0x0000) +#define TIM_OutputState_Enable ((uint16_t)0x0001) +#define IS_TIM_OUTPUT_STATE(STATE) (((STATE) == TIM_OutputState_Disable) || \ + ((STATE) == TIM_OutputState_Enable)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_N_State + * @{ + */ + +#define TIM_OutputNState_Disable ((uint16_t)0x0000) +#define TIM_OutputNState_Enable ((uint16_t)0x0004) +#define IS_TIM_OUTPUTN_STATE(STATE) (((STATE) == TIM_OutputNState_Disable) || \ + ((STATE) == TIM_OutputNState_Enable)) +/** + * @} + */ + +/** @defgroup TIM_Capture_Compare_State + * @{ + */ + +#define TIM_CCx_Enable ((uint16_t)0x0001) +#define TIM_CCx_Disable ((uint16_t)0x0000) +#define IS_TIM_CCX(CCX) (((CCX) == TIM_CCx_Enable) || \ + ((CCX) == TIM_CCx_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Capture_Compare_N_State + * @{ + */ + +#define TIM_CCxN_Enable ((uint16_t)0x0004) +#define TIM_CCxN_Disable ((uint16_t)0x0000) +#define IS_TIM_CCXN(CCXN) (((CCXN) == TIM_CCxN_Enable) || \ + ((CCXN) == TIM_CCxN_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Break_Input_enable_disable + * @{ + */ + +#define TIM_Break_Enable ((uint16_t)0x1000) +#define TIM_Break_Disable ((uint16_t)0x0000) +#define IS_TIM_BREAK_STATE(STATE) (((STATE) == TIM_Break_Enable) || \ + ((STATE) == TIM_Break_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Break_Polarity + * @{ + */ + +#define TIM_BreakPolarity_Low ((uint16_t)0x0000) +#define TIM_BreakPolarity_High ((uint16_t)0x2000) +#define IS_TIM_BREAK_POLARITY(POLARITY) (((POLARITY) == TIM_BreakPolarity_Low) || \ + ((POLARITY) == TIM_BreakPolarity_High)) +/** + * @} + */ + +/** @defgroup TIM_AOE_Bit_Set_Reset + * @{ + */ + +#define TIM_AutomaticOutput_Enable ((uint16_t)0x4000) +#define TIM_AutomaticOutput_Disable ((uint16_t)0x0000) +#define IS_TIM_AUTOMATIC_OUTPUT_STATE(STATE) (((STATE) == TIM_AutomaticOutput_Enable) || \ + ((STATE) == TIM_AutomaticOutput_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Lock_level + * @{ + */ + +#define TIM_LOCKLevel_OFF ((uint16_t)0x0000) +#define TIM_LOCKLevel_1 ((uint16_t)0x0100) +#define TIM_LOCKLevel_2 ((uint16_t)0x0200) +#define TIM_LOCKLevel_3 ((uint16_t)0x0300) +#define IS_TIM_LOCK_LEVEL(LEVEL) (((LEVEL) == TIM_LOCKLevel_OFF) || \ + ((LEVEL) == TIM_LOCKLevel_1) || \ + ((LEVEL) == TIM_LOCKLevel_2) || \ + ((LEVEL) == TIM_LOCKLevel_3)) +/** + * @} + */ + +/** @defgroup TIM_OSSI_Off_State_Selection_for_Idle_mode_state + * @{ + */ + +#define TIM_OSSIState_Enable ((uint16_t)0x0400) +#define TIM_OSSIState_Disable ((uint16_t)0x0000) +#define IS_TIM_OSSI_STATE(STATE) (((STATE) == TIM_OSSIState_Enable) || \ + ((STATE) == TIM_OSSIState_Disable)) +/** + * @} + */ + +/** @defgroup TIM_OSSR_Off_State_Selection_for_Run_mode_state + * @{ + */ + +#define TIM_OSSRState_Enable ((uint16_t)0x0800) +#define TIM_OSSRState_Disable ((uint16_t)0x0000) +#define IS_TIM_OSSR_STATE(STATE) (((STATE) == TIM_OSSRState_Enable) || \ + ((STATE) == TIM_OSSRState_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Idle_State + * @{ + */ + +#define TIM_OCIdleState_Set ((uint16_t)0x0100) +#define TIM_OCIdleState_Reset ((uint16_t)0x0000) +#define IS_TIM_OCIDLE_STATE(STATE) (((STATE) == TIM_OCIdleState_Set) || \ + ((STATE) == TIM_OCIdleState_Reset)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_N_Idle_State + * @{ + */ + +#define TIM_OCNIdleState_Set ((uint16_t)0x0200) +#define TIM_OCNIdleState_Reset ((uint16_t)0x0000) +#define IS_TIM_OCNIDLE_STATE(STATE) (((STATE) == TIM_OCNIdleState_Set) || \ + ((STATE) == TIM_OCNIdleState_Reset)) +/** + * @} + */ + +/** @defgroup TIM_Input_Capture_Polarity + * @{ + */ + +#define TIM_ICPolarity_Rising ((uint16_t)0x0000) +#define TIM_ICPolarity_Falling ((uint16_t)0x0002) +#define TIM_ICPolarity_BothEdge ((uint16_t)0x000A) +#define IS_TIM_IC_POLARITY(POLARITY) (((POLARITY) == TIM_ICPolarity_Rising) || \ + ((POLARITY) == TIM_ICPolarity_Falling)|| \ + ((POLARITY) == TIM_ICPolarity_BothEdge)) +/** + * @} + */ + +/** @defgroup TIM_Input_Capture_Selection + * @{ + */ + +#define TIM_ICSelection_DirectTI ((uint16_t)0x0001) /*!< TIM Input 1, 2, 3 or 4 is selected to be + connected to IC1, IC2, IC3 or IC4, respectively */ +#define TIM_ICSelection_IndirectTI ((uint16_t)0x0002) /*!< TIM Input 1, 2, 3 or 4 is selected to be + connected to IC2, IC1, IC4 or IC3, respectively. */ +#define TIM_ICSelection_TRC ((uint16_t)0x0003) /*!< TIM Input 1, 2, 3 or 4 is selected to be connected to TRC. */ +#define IS_TIM_IC_SELECTION(SELECTION) (((SELECTION) == TIM_ICSelection_DirectTI) || \ + ((SELECTION) == TIM_ICSelection_IndirectTI) || \ + ((SELECTION) == TIM_ICSelection_TRC)) +/** + * @} + */ + +/** @defgroup TIM_Input_Capture_Prescaler + * @{ + */ + +#define TIM_ICPSC_DIV1 ((uint16_t)0x0000) /*!< Capture performed each time an edge is detected on the capture input. */ +#define TIM_ICPSC_DIV2 ((uint16_t)0x0004) /*!< Capture performed once every 2 events. */ +#define TIM_ICPSC_DIV4 ((uint16_t)0x0008) /*!< Capture performed once every 4 events. */ +#define TIM_ICPSC_DIV8 ((uint16_t)0x000C) /*!< Capture performed once every 8 events. */ +#define IS_TIM_IC_PRESCALER(PRESCALER) (((PRESCALER) == TIM_ICPSC_DIV1) || \ + ((PRESCALER) == TIM_ICPSC_DIV2) || \ + ((PRESCALER) == TIM_ICPSC_DIV4) || \ + ((PRESCALER) == TIM_ICPSC_DIV8)) +/** + * @} + */ + +/** @defgroup TIM_interrupt_sources + * @{ + */ + +#define TIM_IT_Update ((uint16_t)0x0001) +#define TIM_IT_CC1 ((uint16_t)0x0002) +#define TIM_IT_CC2 ((uint16_t)0x0004) +#define TIM_IT_CC3 ((uint16_t)0x0008) +#define TIM_IT_CC4 ((uint16_t)0x0010) +#define TIM_IT_COM ((uint16_t)0x0020) +#define TIM_IT_Trigger ((uint16_t)0x0040) +#define TIM_IT_Break ((uint16_t)0x0080) +#define IS_TIM_IT(IT) ((((IT) & (uint16_t)0xFF00) == 0x0000) && ((IT) != 0x0000)) + +#define IS_TIM_GET_IT(IT) (((IT) == TIM_IT_Update) || \ + ((IT) == TIM_IT_CC1) || \ + ((IT) == TIM_IT_CC2) || \ + ((IT) == TIM_IT_CC3) || \ + ((IT) == TIM_IT_CC4) || \ + ((IT) == TIM_IT_COM) || \ + ((IT) == TIM_IT_Trigger) || \ + ((IT) == TIM_IT_Break)) +/** + * @} + */ + +/** @defgroup TIM_DMA_Base_address + * @{ + */ + +#define TIM_DMABase_CR1 ((uint16_t)0x0000) +#define TIM_DMABase_CR2 ((uint16_t)0x0001) +#define TIM_DMABase_SMCR ((uint16_t)0x0002) +#define TIM_DMABase_DIER ((uint16_t)0x0003) +#define TIM_DMABase_SR ((uint16_t)0x0004) +#define TIM_DMABase_EGR ((uint16_t)0x0005) +#define TIM_DMABase_CCMR1 ((uint16_t)0x0006) +#define TIM_DMABase_CCMR2 ((uint16_t)0x0007) +#define TIM_DMABase_CCER ((uint16_t)0x0008) +#define TIM_DMABase_CNT ((uint16_t)0x0009) +#define TIM_DMABase_PSC ((uint16_t)0x000A) +#define TIM_DMABase_ARR ((uint16_t)0x000B) +#define TIM_DMABase_RCR ((uint16_t)0x000C) +#define TIM_DMABase_CCR1 ((uint16_t)0x000D) +#define TIM_DMABase_CCR2 ((uint16_t)0x000E) +#define TIM_DMABase_CCR3 ((uint16_t)0x000F) +#define TIM_DMABase_CCR4 ((uint16_t)0x0010) +#define TIM_DMABase_BDTR ((uint16_t)0x0011) +#define TIM_DMABase_DCR ((uint16_t)0x0012) +#define TIM_DMABase_OR ((uint16_t)0x0013) +#define IS_TIM_DMA_BASE(BASE) (((BASE) == TIM_DMABase_CR1) || \ + ((BASE) == TIM_DMABase_CR2) || \ + ((BASE) == TIM_DMABase_SMCR) || \ + ((BASE) == TIM_DMABase_DIER) || \ + ((BASE) == TIM_DMABase_SR) || \ + ((BASE) == TIM_DMABase_EGR) || \ + ((BASE) == TIM_DMABase_CCMR1) || \ + ((BASE) == TIM_DMABase_CCMR2) || \ + ((BASE) == TIM_DMABase_CCER) || \ + ((BASE) == TIM_DMABase_CNT) || \ + ((BASE) == TIM_DMABase_PSC) || \ + ((BASE) == TIM_DMABase_ARR) || \ + ((BASE) == TIM_DMABase_RCR) || \ + ((BASE) == TIM_DMABase_CCR1) || \ + ((BASE) == TIM_DMABase_CCR2) || \ + ((BASE) == TIM_DMABase_CCR3) || \ + ((BASE) == TIM_DMABase_CCR4) || \ + ((BASE) == TIM_DMABase_BDTR) || \ + ((BASE) == TIM_DMABase_DCR) || \ + ((BASE) == TIM_DMABase_OR)) +/** + * @} + */ + +/** @defgroup TIM_DMA_Burst_Length + * @{ + */ + +#define TIM_DMABurstLength_1Transfer ((uint16_t)0x0000) +#define TIM_DMABurstLength_2Transfers ((uint16_t)0x0100) +#define TIM_DMABurstLength_3Transfers ((uint16_t)0x0200) +#define TIM_DMABurstLength_4Transfers ((uint16_t)0x0300) +#define TIM_DMABurstLength_5Transfers ((uint16_t)0x0400) +#define TIM_DMABurstLength_6Transfers ((uint16_t)0x0500) +#define TIM_DMABurstLength_7Transfers ((uint16_t)0x0600) +#define TIM_DMABurstLength_8Transfers ((uint16_t)0x0700) +#define TIM_DMABurstLength_9Transfers ((uint16_t)0x0800) +#define TIM_DMABurstLength_10Transfers ((uint16_t)0x0900) +#define TIM_DMABurstLength_11Transfers ((uint16_t)0x0A00) +#define TIM_DMABurstLength_12Transfers ((uint16_t)0x0B00) +#define TIM_DMABurstLength_13Transfers ((uint16_t)0x0C00) +#define TIM_DMABurstLength_14Transfers ((uint16_t)0x0D00) +#define TIM_DMABurstLength_15Transfers ((uint16_t)0x0E00) +#define TIM_DMABurstLength_16Transfers ((uint16_t)0x0F00) +#define TIM_DMABurstLength_17Transfers ((uint16_t)0x1000) +#define TIM_DMABurstLength_18Transfers ((uint16_t)0x1100) +#define IS_TIM_DMA_LENGTH(LENGTH) (((LENGTH) == TIM_DMABurstLength_1Transfer) || \ + ((LENGTH) == TIM_DMABurstLength_2Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_3Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_4Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_5Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_6Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_7Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_8Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_9Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_10Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_11Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_12Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_13Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_14Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_15Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_16Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_17Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_18Transfers)) +/** + * @} + */ + +/** @defgroup TIM_DMA_sources + * @{ + */ + +#define TIM_DMA_Update ((uint16_t)0x0100) +#define TIM_DMA_CC1 ((uint16_t)0x0200) +#define TIM_DMA_CC2 ((uint16_t)0x0400) +#define TIM_DMA_CC3 ((uint16_t)0x0800) +#define TIM_DMA_CC4 ((uint16_t)0x1000) +#define TIM_DMA_COM ((uint16_t)0x2000) +#define TIM_DMA_Trigger ((uint16_t)0x4000) +#define IS_TIM_DMA_SOURCE(SOURCE) ((((SOURCE) & (uint16_t)0x80FF) == 0x0000) && ((SOURCE) != 0x0000)) + +/** + * @} + */ + +/** @defgroup TIM_External_Trigger_Prescaler + * @{ + */ + +#define TIM_ExtTRGPSC_OFF ((uint16_t)0x0000) +#define TIM_ExtTRGPSC_DIV2 ((uint16_t)0x1000) +#define TIM_ExtTRGPSC_DIV4 ((uint16_t)0x2000) +#define TIM_ExtTRGPSC_DIV8 ((uint16_t)0x3000) +#define IS_TIM_EXT_PRESCALER(PRESCALER) (((PRESCALER) == TIM_ExtTRGPSC_OFF) || \ + ((PRESCALER) == TIM_ExtTRGPSC_DIV2) || \ + ((PRESCALER) == TIM_ExtTRGPSC_DIV4) || \ + ((PRESCALER) == TIM_ExtTRGPSC_DIV8)) +/** + * @} + */ + +/** @defgroup TIM_Internal_Trigger_Selection + * @{ + */ + +#define TIM_TS_ITR0 ((uint16_t)0x0000) +#define TIM_TS_ITR1 ((uint16_t)0x0010) +#define TIM_TS_ITR2 ((uint16_t)0x0020) +#define TIM_TS_ITR3 ((uint16_t)0x0030) +#define TIM_TS_TI1F_ED ((uint16_t)0x0040) +#define TIM_TS_TI1FP1 ((uint16_t)0x0050) +#define TIM_TS_TI2FP2 ((uint16_t)0x0060) +#define TIM_TS_ETRF ((uint16_t)0x0070) +#define IS_TIM_TRIGGER_SELECTION(SELECTION) (((SELECTION) == TIM_TS_ITR0) || \ + ((SELECTION) == TIM_TS_ITR1) || \ + ((SELECTION) == TIM_TS_ITR2) || \ + ((SELECTION) == TIM_TS_ITR3) || \ + ((SELECTION) == TIM_TS_TI1F_ED) || \ + ((SELECTION) == TIM_TS_TI1FP1) || \ + ((SELECTION) == TIM_TS_TI2FP2) || \ + ((SELECTION) == TIM_TS_ETRF)) +#define IS_TIM_INTERNAL_TRIGGER_SELECTION(SELECTION) (((SELECTION) == TIM_TS_ITR0) || \ + ((SELECTION) == TIM_TS_ITR1) || \ + ((SELECTION) == TIM_TS_ITR2) || \ + ((SELECTION) == TIM_TS_ITR3)) +/** + * @} + */ + +/** @defgroup TIM_TIx_External_Clock_Source + * @{ + */ + +#define TIM_TIxExternalCLK1Source_TI1 ((uint16_t)0x0050) +#define TIM_TIxExternalCLK1Source_TI2 ((uint16_t)0x0060) +#define TIM_TIxExternalCLK1Source_TI1ED ((uint16_t)0x0040) + +/** + * @} + */ + +/** @defgroup TIM_External_Trigger_Polarity + * @{ + */ +#define TIM_ExtTRGPolarity_Inverted ((uint16_t)0x8000) +#define TIM_ExtTRGPolarity_NonInverted ((uint16_t)0x0000) +#define IS_TIM_EXT_POLARITY(POLARITY) (((POLARITY) == TIM_ExtTRGPolarity_Inverted) || \ + ((POLARITY) == TIM_ExtTRGPolarity_NonInverted)) +/** + * @} + */ + +/** @defgroup TIM_Prescaler_Reload_Mode + * @{ + */ + +#define TIM_PSCReloadMode_Update ((uint16_t)0x0000) +#define TIM_PSCReloadMode_Immediate ((uint16_t)0x0001) +#define IS_TIM_PRESCALER_RELOAD(RELOAD) (((RELOAD) == TIM_PSCReloadMode_Update) || \ + ((RELOAD) == TIM_PSCReloadMode_Immediate)) +/** + * @} + */ + +/** @defgroup TIM_Forced_Action + * @{ + */ + +#define TIM_ForcedAction_Active ((uint16_t)0x0050) +#define TIM_ForcedAction_InActive ((uint16_t)0x0040) +#define IS_TIM_FORCED_ACTION(ACTION) (((ACTION) == TIM_ForcedAction_Active) || \ + ((ACTION) == TIM_ForcedAction_InActive)) +/** + * @} + */ + +/** @defgroup TIM_Encoder_Mode + * @{ + */ + +#define TIM_EncoderMode_TI1 ((uint16_t)0x0001) +#define TIM_EncoderMode_TI2 ((uint16_t)0x0002) +#define TIM_EncoderMode_TI12 ((uint16_t)0x0003) +#define IS_TIM_ENCODER_MODE(MODE) (((MODE) == TIM_EncoderMode_TI1) || \ + ((MODE) == TIM_EncoderMode_TI2) || \ + ((MODE) == TIM_EncoderMode_TI12)) +/** + * @} + */ + + +/** @defgroup TIM_Event_Source + * @{ + */ + +#define TIM_EventSource_Update ((uint16_t)0x0001) +#define TIM_EventSource_CC1 ((uint16_t)0x0002) +#define TIM_EventSource_CC2 ((uint16_t)0x0004) +#define TIM_EventSource_CC3 ((uint16_t)0x0008) +#define TIM_EventSource_CC4 ((uint16_t)0x0010) +#define TIM_EventSource_COM ((uint16_t)0x0020) +#define TIM_EventSource_Trigger ((uint16_t)0x0040) +#define TIM_EventSource_Break ((uint16_t)0x0080) +#define IS_TIM_EVENT_SOURCE(SOURCE) ((((SOURCE) & (uint16_t)0xFF00) == 0x0000) && ((SOURCE) != 0x0000)) + +/** + * @} + */ + +/** @defgroup TIM_Update_Source + * @{ + */ + +#define TIM_UpdateSource_Global ((uint16_t)0x0000) /*!< Source of update is the counter overflow/underflow + or the setting of UG bit, or an update generation + through the slave mode controller. */ +#define TIM_UpdateSource_Regular ((uint16_t)0x0001) /*!< Source of update is counter overflow/underflow. */ +#define IS_TIM_UPDATE_SOURCE(SOURCE) (((SOURCE) == TIM_UpdateSource_Global) || \ + ((SOURCE) == TIM_UpdateSource_Regular)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Preload_State + * @{ + */ + +#define TIM_OCPreload_Enable ((uint16_t)0x0008) +#define TIM_OCPreload_Disable ((uint16_t)0x0000) +#define IS_TIM_OCPRELOAD_STATE(STATE) (((STATE) == TIM_OCPreload_Enable) || \ + ((STATE) == TIM_OCPreload_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Fast_State + * @{ + */ + +#define TIM_OCFast_Enable ((uint16_t)0x0004) +#define TIM_OCFast_Disable ((uint16_t)0x0000) +#define IS_TIM_OCFAST_STATE(STATE) (((STATE) == TIM_OCFast_Enable) || \ + ((STATE) == TIM_OCFast_Disable)) + +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Clear_State + * @{ + */ + +#define TIM_OCClear_Enable ((uint16_t)0x0080) +#define TIM_OCClear_Disable ((uint16_t)0x0000) +#define IS_TIM_OCCLEAR_STATE(STATE) (((STATE) == TIM_OCClear_Enable) || \ + ((STATE) == TIM_OCClear_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Trigger_Output_Source + * @{ + */ + +#define TIM_TRGOSource_Reset ((uint16_t)0x0000) +#define TIM_TRGOSource_Enable ((uint16_t)0x0010) +#define TIM_TRGOSource_Update ((uint16_t)0x0020) +#define TIM_TRGOSource_OC1 ((uint16_t)0x0030) +#define TIM_TRGOSource_OC1Ref ((uint16_t)0x0040) +#define TIM_TRGOSource_OC2Ref ((uint16_t)0x0050) +#define TIM_TRGOSource_OC3Ref ((uint16_t)0x0060) +#define TIM_TRGOSource_OC4Ref ((uint16_t)0x0070) +#define IS_TIM_TRGO_SOURCE(SOURCE) (((SOURCE) == TIM_TRGOSource_Reset) || \ + ((SOURCE) == TIM_TRGOSource_Enable) || \ + ((SOURCE) == TIM_TRGOSource_Update) || \ + ((SOURCE) == TIM_TRGOSource_OC1) || \ + ((SOURCE) == TIM_TRGOSource_OC1Ref) || \ + ((SOURCE) == TIM_TRGOSource_OC2Ref) || \ + ((SOURCE) == TIM_TRGOSource_OC3Ref) || \ + ((SOURCE) == TIM_TRGOSource_OC4Ref)) +/** + * @} + */ + +/** @defgroup TIM_Slave_Mode + * @{ + */ + +#define TIM_SlaveMode_Reset ((uint16_t)0x0004) +#define TIM_SlaveMode_Gated ((uint16_t)0x0005) +#define TIM_SlaveMode_Trigger ((uint16_t)0x0006) +#define TIM_SlaveMode_External1 ((uint16_t)0x0007) +#define IS_TIM_SLAVE_MODE(MODE) (((MODE) == TIM_SlaveMode_Reset) || \ + ((MODE) == TIM_SlaveMode_Gated) || \ + ((MODE) == TIM_SlaveMode_Trigger) || \ + ((MODE) == TIM_SlaveMode_External1)) +/** + * @} + */ + +/** @defgroup TIM_Master_Slave_Mode + * @{ + */ + +#define TIM_MasterSlaveMode_Enable ((uint16_t)0x0080) +#define TIM_MasterSlaveMode_Disable ((uint16_t)0x0000) +#define IS_TIM_MSM_STATE(STATE) (((STATE) == TIM_MasterSlaveMode_Enable) || \ + ((STATE) == TIM_MasterSlaveMode_Disable)) +/** + * @} + */ +/** @defgroup TIM_Remap + * @{ + */ + +#define TIM2_TIM8_TRGO ((uint16_t)0x0000) +#define TIM2_ETH_PTP ((uint16_t)0x0400) +#define TIM2_USBFS_SOF ((uint16_t)0x0800) +#define TIM2_USBHS_SOF ((uint16_t)0x0C00) + +#define TIM5_GPIO ((uint16_t)0x0000) +#define TIM5_LSI ((uint16_t)0x0040) +#define TIM5_LSE ((uint16_t)0x0080) +#define TIM5_RTC ((uint16_t)0x00C0) + +#define TIM11_GPIO ((uint16_t)0x0000) +#define TIM11_HSE ((uint16_t)0x0002) + +#define IS_TIM_REMAP(TIM_REMAP) (((TIM_REMAP) == TIM2_TIM8_TRGO)||\ + ((TIM_REMAP) == TIM2_ETH_PTP)||\ + ((TIM_REMAP) == TIM2_USBFS_SOF)||\ + ((TIM_REMAP) == TIM2_USBHS_SOF)||\ + ((TIM_REMAP) == TIM5_GPIO)||\ + ((TIM_REMAP) == TIM5_LSI)||\ + ((TIM_REMAP) == TIM5_LSE)||\ + ((TIM_REMAP) == TIM5_RTC)||\ + ((TIM_REMAP) == TIM11_GPIO)||\ + ((TIM_REMAP) == TIM11_HSE)) + +/** + * @} + */ +/** @defgroup TIM_Flags + * @{ + */ + +#define TIM_FLAG_Update ((uint16_t)0x0001) +#define TIM_FLAG_CC1 ((uint16_t)0x0002) +#define TIM_FLAG_CC2 ((uint16_t)0x0004) +#define TIM_FLAG_CC3 ((uint16_t)0x0008) +#define TIM_FLAG_CC4 ((uint16_t)0x0010) +#define TIM_FLAG_COM ((uint16_t)0x0020) +#define TIM_FLAG_Trigger ((uint16_t)0x0040) +#define TIM_FLAG_Break ((uint16_t)0x0080) +#define TIM_FLAG_CC1OF ((uint16_t)0x0200) +#define TIM_FLAG_CC2OF ((uint16_t)0x0400) +#define TIM_FLAG_CC3OF ((uint16_t)0x0800) +#define TIM_FLAG_CC4OF ((uint16_t)0x1000) +#define IS_TIM_GET_FLAG(FLAG) (((FLAG) == TIM_FLAG_Update) || \ + ((FLAG) == TIM_FLAG_CC1) || \ + ((FLAG) == TIM_FLAG_CC2) || \ + ((FLAG) == TIM_FLAG_CC3) || \ + ((FLAG) == TIM_FLAG_CC4) || \ + ((FLAG) == TIM_FLAG_COM) || \ + ((FLAG) == TIM_FLAG_Trigger) || \ + ((FLAG) == TIM_FLAG_Break) || \ + ((FLAG) == TIM_FLAG_CC1OF) || \ + ((FLAG) == TIM_FLAG_CC2OF) || \ + ((FLAG) == TIM_FLAG_CC3OF) || \ + ((FLAG) == TIM_FLAG_CC4OF)) + +/** + * @} + */ + +/** @defgroup TIM_Input_Capture_Filer_Value + * @{ + */ + +#define IS_TIM_IC_FILTER(ICFILTER) ((ICFILTER) <= 0xF) +/** + * @} + */ + +/** @defgroup TIM_External_Trigger_Filter + * @{ + */ + +#define IS_TIM_EXT_FILTER(EXTFILTER) ((EXTFILTER) <= 0xF) +/** + * @} + */ + +/** @defgroup TIM_Legacy + * @{ + */ + +#define TIM_DMABurstLength_1Byte TIM_DMABurstLength_1Transfer +#define TIM_DMABurstLength_2Bytes TIM_DMABurstLength_2Transfers +#define TIM_DMABurstLength_3Bytes TIM_DMABurstLength_3Transfers +#define TIM_DMABurstLength_4Bytes TIM_DMABurstLength_4Transfers +#define TIM_DMABurstLength_5Bytes TIM_DMABurstLength_5Transfers +#define TIM_DMABurstLength_6Bytes TIM_DMABurstLength_6Transfers +#define TIM_DMABurstLength_7Bytes TIM_DMABurstLength_7Transfers +#define TIM_DMABurstLength_8Bytes TIM_DMABurstLength_8Transfers +#define TIM_DMABurstLength_9Bytes TIM_DMABurstLength_9Transfers +#define TIM_DMABurstLength_10Bytes TIM_DMABurstLength_10Transfers +#define TIM_DMABurstLength_11Bytes TIM_DMABurstLength_11Transfers +#define TIM_DMABurstLength_12Bytes TIM_DMABurstLength_12Transfers +#define TIM_DMABurstLength_13Bytes TIM_DMABurstLength_13Transfers +#define TIM_DMABurstLength_14Bytes TIM_DMABurstLength_14Transfers +#define TIM_DMABurstLength_15Bytes TIM_DMABurstLength_15Transfers +#define TIM_DMABurstLength_16Bytes TIM_DMABurstLength_16Transfers +#define TIM_DMABurstLength_17Bytes TIM_DMABurstLength_17Transfers +#define TIM_DMABurstLength_18Bytes TIM_DMABurstLength_18Transfers +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* TimeBase management ********************************************************/ +void TIM_DeInit(TIM_TypeDef* TIMx); +void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct); +void TIM_TimeBaseStructInit(TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct); +void TIM_PrescalerConfig(TIM_TypeDef* TIMx, uint16_t Prescaler, uint16_t TIM_PSCReloadMode); +void TIM_CounterModeConfig(TIM_TypeDef* TIMx, uint16_t TIM_CounterMode); +void TIM_SetCounter(TIM_TypeDef* TIMx, uint32_t Counter); +void TIM_SetAutoreload(TIM_TypeDef* TIMx, uint32_t Autoreload); +uint32_t TIM_GetCounter(TIM_TypeDef* TIMx); +uint16_t TIM_GetPrescaler(TIM_TypeDef* TIMx); +void TIM_UpdateDisableConfig(TIM_TypeDef* TIMx, FunctionalState NewState); +void TIM_UpdateRequestConfig(TIM_TypeDef* TIMx, uint16_t TIM_UpdateSource); +void TIM_ARRPreloadConfig(TIM_TypeDef* TIMx, FunctionalState NewState); +void TIM_SelectOnePulseMode(TIM_TypeDef* TIMx, uint16_t TIM_OPMode); +void TIM_SetClockDivision(TIM_TypeDef* TIMx, uint16_t TIM_CKD); +void TIM_Cmd(TIM_TypeDef* TIMx, FunctionalState NewState); + +/* Output Compare management **************************************************/ +void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_OC4Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_OCStructInit(TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_SelectOCxM(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_OCMode); +void TIM_SetCompare1(TIM_TypeDef* TIMx, uint32_t Compare1); +void TIM_SetCompare2(TIM_TypeDef* TIMx, uint32_t Compare2); +void TIM_SetCompare3(TIM_TypeDef* TIMx, uint32_t Compare3); +void TIM_SetCompare4(TIM_TypeDef* TIMx, uint32_t Compare4); +void TIM_ForcedOC1Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction); +void TIM_ForcedOC2Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction); +void TIM_ForcedOC3Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction); +void TIM_ForcedOC4Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction); +void TIM_OC1PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload); +void TIM_OC2PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload); +void TIM_OC3PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload); +void TIM_OC4PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload); +void TIM_OC1FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast); +void TIM_OC2FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast); +void TIM_OC3FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast); +void TIM_OC4FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast); +void TIM_ClearOC1Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear); +void TIM_ClearOC2Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear); +void TIM_ClearOC3Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear); +void TIM_ClearOC4Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear); +void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity); +void TIM_OC1NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity); +void TIM_OC2PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity); +void TIM_OC2NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity); +void TIM_OC3PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity); +void TIM_OC3NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity); +void TIM_OC4PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity); +void TIM_CCxCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx); +void TIM_CCxNCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCxN); + +/* Input Capture management ***************************************************/ +void TIM_ICInit(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct); +void TIM_ICStructInit(TIM_ICInitTypeDef* TIM_ICInitStruct); +void TIM_PWMIConfig(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct); +uint32_t TIM_GetCapture1(TIM_TypeDef* TIMx); +uint32_t TIM_GetCapture2(TIM_TypeDef* TIMx); +uint32_t TIM_GetCapture3(TIM_TypeDef* TIMx); +uint32_t TIM_GetCapture4(TIM_TypeDef* TIMx); +void TIM_SetIC1Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC); +void TIM_SetIC2Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC); +void TIM_SetIC3Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC); +void TIM_SetIC4Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC); + +/* Advanced-control timers (TIM1 and TIM8) specific features ******************/ +void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct); +void TIM_BDTRStructInit(TIM_BDTRInitTypeDef* TIM_BDTRInitStruct); +void TIM_CtrlPWMOutputs(TIM_TypeDef* TIMx, FunctionalState NewState); +void TIM_SelectCOM(TIM_TypeDef* TIMx, FunctionalState NewState); +void TIM_CCPreloadControl(TIM_TypeDef* TIMx, FunctionalState NewState); + +/* Interrupts, DMA and flags management ***************************************/ +void TIM_ITConfig(TIM_TypeDef* TIMx, uint16_t TIM_IT, FunctionalState NewState); +void TIM_GenerateEvent(TIM_TypeDef* TIMx, uint16_t TIM_EventSource); +FlagStatus TIM_GetFlagStatus(TIM_TypeDef* TIMx, uint16_t TIM_FLAG); +void TIM_ClearFlag(TIM_TypeDef* TIMx, uint16_t TIM_FLAG); +ITStatus TIM_GetITStatus(TIM_TypeDef* TIMx, uint16_t TIM_IT); +void TIM_ClearITPendingBit(TIM_TypeDef* TIMx, uint16_t TIM_IT); +void TIM_DMAConfig(TIM_TypeDef* TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength); +void TIM_DMACmd(TIM_TypeDef* TIMx, uint16_t TIM_DMASource, FunctionalState NewState); +void TIM_SelectCCDMA(TIM_TypeDef* TIMx, FunctionalState NewState); + +/* Clocks management **********************************************************/ +void TIM_InternalClockConfig(TIM_TypeDef* TIMx); +void TIM_ITRxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource); +void TIM_TIxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_TIxExternalCLKSource, + uint16_t TIM_ICPolarity, uint16_t ICFilter); +void TIM_ETRClockMode1Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, + uint16_t ExtTRGFilter); +void TIM_ETRClockMode2Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, + uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter); + +/* Synchronization management *************************************************/ +void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource); +void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_TRGOSource); +void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode); +void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_MasterSlaveMode); +void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, + uint16_t ExtTRGFilter); + +/* Specific interface management **********************************************/ +void TIM_EncoderInterfaceConfig(TIM_TypeDef* TIMx, uint16_t TIM_EncoderMode, + uint16_t TIM_IC1Polarity, uint16_t TIM_IC2Polarity); +void TIM_SelectHallSensor(TIM_TypeDef* TIMx, FunctionalState NewState); + +/* Specific remapping management **********************************************/ +void TIM_RemapConfig(TIM_TypeDef* TIMx, uint16_t TIM_Remap); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_TIM_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_usart.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_usart.h new file mode 100644 index 00000000..dd27ac1f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_usart.h @@ -0,0 +1,429 @@ +/** + ****************************************************************************** + * @file stm32f2xx_usart.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the USART + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_USART_H +#define __STM32F2xx_USART_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup USART + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief USART Init Structure definition + */ + +typedef struct +{ + uint32_t USART_BaudRate; /*!< This member configures the USART communication baud rate. + The baud rate is computed using the following formula: + - IntegerDivider = ((PCLKx) / (8 * (OVR8+1) * (USART_InitStruct->USART_BaudRate))) + - FractionalDivider = ((IntegerDivider - ((u32) IntegerDivider)) * 8 * (OVR8+1)) + 0.5 + Where OVR8 is the "oversampling by 8 mode" configuration bit in the CR1 register. */ + + uint16_t USART_WordLength; /*!< Specifies the number of data bits transmitted or received in a frame. + This parameter can be a value of @ref USART_Word_Length */ + + uint16_t USART_StopBits; /*!< Specifies the number of stop bits transmitted. + This parameter can be a value of @ref USART_Stop_Bits */ + + uint16_t USART_Parity; /*!< Specifies the parity mode. + This parameter can be a value of @ref USART_Parity + @note When parity is enabled, the computed parity is inserted + at the MSB position of the transmitted data (9th bit when + the word length is set to 9 data bits; 8th bit when the + word length is set to 8 data bits). */ + + uint16_t USART_Mode; /*!< Specifies wether the Receive or Transmit mode is enabled or disabled. + This parameter can be a value of @ref USART_Mode */ + + uint16_t USART_HardwareFlowControl; /*!< Specifies wether the hardware flow control mode is enabled + or disabled. + This parameter can be a value of @ref USART_Hardware_Flow_Control */ +} USART_InitTypeDef; + +/** + * @brief USART Clock Init Structure definition + */ + +typedef struct +{ + + uint16_t USART_Clock; /*!< Specifies whether the USART clock is enabled or disabled. + This parameter can be a value of @ref USART_Clock */ + + uint16_t USART_CPOL; /*!< Specifies the steady state of the serial clock. + This parameter can be a value of @ref USART_Clock_Polarity */ + + uint16_t USART_CPHA; /*!< Specifies the clock transition on which the bit capture is made. + This parameter can be a value of @ref USART_Clock_Phase */ + + uint16_t USART_LastBit; /*!< Specifies whether the clock pulse corresponding to the last transmitted + data bit (MSB) has to be output on the SCLK pin in synchronous mode. + This parameter can be a value of @ref USART_Last_Bit */ +} USART_ClockInitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup USART_Exported_Constants + * @{ + */ + +#define IS_USART_ALL_PERIPH(PERIPH) (((PERIPH) == USART1) || \ + ((PERIPH) == USART2) || \ + ((PERIPH) == USART3) || \ + ((PERIPH) == UART4) || \ + ((PERIPH) == UART5) || \ + ((PERIPH) == USART6)) + +#define IS_USART_1236_PERIPH(PERIPH) (((PERIPH) == USART1) || \ + ((PERIPH) == USART2) || \ + ((PERIPH) == USART3) || \ + ((PERIPH) == USART6)) + +/** @defgroup USART_Word_Length + * @{ + */ + +#define USART_WordLength_8b ((uint16_t)0x0000) +#define USART_WordLength_9b ((uint16_t)0x1000) + +#define IS_USART_WORD_LENGTH(LENGTH) (((LENGTH) == USART_WordLength_8b) || \ + ((LENGTH) == USART_WordLength_9b)) +/** + * @} + */ + +/** @defgroup USART_Stop_Bits + * @{ + */ + +#define USART_StopBits_1 ((uint16_t)0x0000) +#define USART_StopBits_0_5 ((uint16_t)0x1000) +#define USART_StopBits_2 ((uint16_t)0x2000) +#define USART_StopBits_1_5 ((uint16_t)0x3000) +#define IS_USART_STOPBITS(STOPBITS) (((STOPBITS) == USART_StopBits_1) || \ + ((STOPBITS) == USART_StopBits_0_5) || \ + ((STOPBITS) == USART_StopBits_2) || \ + ((STOPBITS) == USART_StopBits_1_5)) +/** + * @} + */ + +/** @defgroup USART_Parity + * @{ + */ + +#define USART_Parity_No ((uint16_t)0x0000) +#define USART_Parity_Even ((uint16_t)0x0400) +#define USART_Parity_Odd ((uint16_t)0x0600) +#define IS_USART_PARITY(PARITY) (((PARITY) == USART_Parity_No) || \ + ((PARITY) == USART_Parity_Even) || \ + ((PARITY) == USART_Parity_Odd)) +/** + * @} + */ + +/** @defgroup USART_Mode + * @{ + */ + +#define USART_Mode_Rx ((uint16_t)0x0004) +#define USART_Mode_Tx ((uint16_t)0x0008) +#define IS_USART_MODE(MODE) ((((MODE) & (uint16_t)0xFFF3) == 0x00) && ((MODE) != (uint16_t)0x00)) +/** + * @} + */ + +/** @defgroup USART_Hardware_Flow_Control + * @{ + */ +#define USART_HardwareFlowControl_None ((uint16_t)0x0000) +#define USART_HardwareFlowControl_RTS ((uint16_t)0x0100) +#define USART_HardwareFlowControl_CTS ((uint16_t)0x0200) +#define USART_HardwareFlowControl_RTS_CTS ((uint16_t)0x0300) +#define IS_USART_HARDWARE_FLOW_CONTROL(CONTROL)\ + (((CONTROL) == USART_HardwareFlowControl_None) || \ + ((CONTROL) == USART_HardwareFlowControl_RTS) || \ + ((CONTROL) == USART_HardwareFlowControl_CTS) || \ + ((CONTROL) == USART_HardwareFlowControl_RTS_CTS)) +/** + * @} + */ + +/** @defgroup USART_Clock + * @{ + */ +#define USART_Clock_Disable ((uint16_t)0x0000) +#define USART_Clock_Enable ((uint16_t)0x0800) +#define IS_USART_CLOCK(CLOCK) (((CLOCK) == USART_Clock_Disable) || \ + ((CLOCK) == USART_Clock_Enable)) +/** + * @} + */ + +/** @defgroup USART_Clock_Polarity + * @{ + */ + +#define USART_CPOL_Low ((uint16_t)0x0000) +#define USART_CPOL_High ((uint16_t)0x0400) +#define IS_USART_CPOL(CPOL) (((CPOL) == USART_CPOL_Low) || ((CPOL) == USART_CPOL_High)) + +/** + * @} + */ + +/** @defgroup USART_Clock_Phase + * @{ + */ + +#define USART_CPHA_1Edge ((uint16_t)0x0000) +#define USART_CPHA_2Edge ((uint16_t)0x0200) +#define IS_USART_CPHA(CPHA) (((CPHA) == USART_CPHA_1Edge) || ((CPHA) == USART_CPHA_2Edge)) + +/** + * @} + */ + +/** @defgroup USART_Last_Bit + * @{ + */ + +#define USART_LastBit_Disable ((uint16_t)0x0000) +#define USART_LastBit_Enable ((uint16_t)0x0100) +#define IS_USART_LASTBIT(LASTBIT) (((LASTBIT) == USART_LastBit_Disable) || \ + ((LASTBIT) == USART_LastBit_Enable)) +/** + * @} + */ + +/** @defgroup USART_Interrupt_definition + * @{ + */ + +#define USART_IT_PE ((uint16_t)0x0028) +#define USART_IT_TXE ((uint16_t)0x0727) +#define USART_IT_TC ((uint16_t)0x0626) +#define USART_IT_RXNE ((uint16_t)0x0525) +#define USART_IT_ORE_RX ((uint16_t)0x0325) /* In case interrupt is generated if the RXNEIE bit is set */ +#define USART_IT_IDLE ((uint16_t)0x0424) +#define USART_IT_LBD ((uint16_t)0x0846) +#define USART_IT_CTS ((uint16_t)0x096A) +#define USART_IT_ERR ((uint16_t)0x0060) +#define USART_IT_ORE_ER ((uint16_t)0x0360) /* In case interrupt is generated if the EIE bit is set */ +#define USART_IT_NE ((uint16_t)0x0260) +#define USART_IT_FE ((uint16_t)0x0160) + +/** @defgroup USART_Legacy + * @{ + */ +#define USART_IT_ORE USART_IT_ORE_ER +/** + * @} + */ + +#define IS_USART_CONFIG_IT(IT) (((IT) == USART_IT_PE) || ((IT) == USART_IT_TXE) || \ + ((IT) == USART_IT_TC) || ((IT) == USART_IT_RXNE) || \ + ((IT) == USART_IT_IDLE) || ((IT) == USART_IT_LBD) || \ + ((IT) == USART_IT_CTS) || ((IT) == USART_IT_ERR)) +#define IS_USART_GET_IT(IT) (((IT) == USART_IT_PE) || ((IT) == USART_IT_TXE) || \ + ((IT) == USART_IT_TC) || ((IT) == USART_IT_RXNE) || \ + ((IT) == USART_IT_IDLE) || ((IT) == USART_IT_LBD) || \ + ((IT) == USART_IT_CTS) || ((IT) == USART_IT_ORE) || \ + ((IT) == USART_IT_ORE_RX) || ((IT) == USART_IT_ORE_ER) || \ + ((IT) == USART_IT_NE) || ((IT) == USART_IT_FE)) +#define IS_USART_CLEAR_IT(IT) (((IT) == USART_IT_TC) || ((IT) == USART_IT_RXNE) || \ + ((IT) == USART_IT_LBD) || ((IT) == USART_IT_CTS)) +/** + * @} + */ + +/** @defgroup USART_DMA_Requests + * @{ + */ + +#define USART_DMAReq_Tx ((uint16_t)0x0080) +#define USART_DMAReq_Rx ((uint16_t)0x0040) +#define IS_USART_DMAREQ(DMAREQ) ((((DMAREQ) & (uint16_t)0xFF3F) == 0x00) && ((DMAREQ) != (uint16_t)0x00)) + +/** + * @} + */ + +/** @defgroup USART_WakeUp_methods + * @{ + */ + +#define USART_WakeUp_IdleLine ((uint16_t)0x0000) +#define USART_WakeUp_AddressMark ((uint16_t)0x0800) +#define IS_USART_WAKEUP(WAKEUP) (((WAKEUP) == USART_WakeUp_IdleLine) || \ + ((WAKEUP) == USART_WakeUp_AddressMark)) +/** + * @} + */ + +/** @defgroup USART_LIN_Break_Detection_Length + * @{ + */ + +#define USART_LINBreakDetectLength_10b ((uint16_t)0x0000) +#define USART_LINBreakDetectLength_11b ((uint16_t)0x0020) +#define IS_USART_LIN_BREAK_DETECT_LENGTH(LENGTH) \ + (((LENGTH) == USART_LINBreakDetectLength_10b) || \ + ((LENGTH) == USART_LINBreakDetectLength_11b)) +/** + * @} + */ + +/** @defgroup USART_IrDA_Low_Power + * @{ + */ + +#define USART_IrDAMode_LowPower ((uint16_t)0x0004) +#define USART_IrDAMode_Normal ((uint16_t)0x0000) +#define IS_USART_IRDA_MODE(MODE) (((MODE) == USART_IrDAMode_LowPower) || \ + ((MODE) == USART_IrDAMode_Normal)) +/** + * @} + */ + +/** @defgroup USART_Flags + * @{ + */ + +#define USART_FLAG_CTS ((uint16_t)0x0200) +#define USART_FLAG_LBD ((uint16_t)0x0100) +#define USART_FLAG_TXE ((uint16_t)0x0080) +#define USART_FLAG_TC ((uint16_t)0x0040) +#define USART_FLAG_RXNE ((uint16_t)0x0020) +#define USART_FLAG_IDLE ((uint16_t)0x0010) +#define USART_FLAG_ORE ((uint16_t)0x0008) +#define USART_FLAG_NE ((uint16_t)0x0004) +#define USART_FLAG_FE ((uint16_t)0x0002) +#define USART_FLAG_PE ((uint16_t)0x0001) +#define IS_USART_FLAG(FLAG) (((FLAG) == USART_FLAG_PE) || ((FLAG) == USART_FLAG_TXE) || \ + ((FLAG) == USART_FLAG_TC) || ((FLAG) == USART_FLAG_RXNE) || \ + ((FLAG) == USART_FLAG_IDLE) || ((FLAG) == USART_FLAG_LBD) || \ + ((FLAG) == USART_FLAG_CTS) || ((FLAG) == USART_FLAG_ORE) || \ + ((FLAG) == USART_FLAG_NE) || ((FLAG) == USART_FLAG_FE)) + +#define IS_USART_CLEAR_FLAG(FLAG) ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00)) + +#define IS_USART_BAUDRATE(BAUDRATE) (((BAUDRATE) > 0) && ((BAUDRATE) < 7500001)) +#define IS_USART_ADDRESS(ADDRESS) ((ADDRESS) <= 0xF) +#define IS_USART_DATA(DATA) ((DATA) <= 0x1FF) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the USART configuration to the default reset state ***/ +void USART_DeInit(USART_TypeDef* USARTx); + +/* Initialization and Configuration functions *********************************/ +void USART_Init(USART_TypeDef* USARTx, USART_InitTypeDef* USART_InitStruct); +void USART_StructInit(USART_InitTypeDef* USART_InitStruct); +void USART_ClockInit(USART_TypeDef* USARTx, USART_ClockInitTypeDef* USART_ClockInitStruct); +void USART_ClockStructInit(USART_ClockInitTypeDef* USART_ClockInitStruct); +void USART_Cmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_SetPrescaler(USART_TypeDef* USARTx, uint8_t USART_Prescaler); +void USART_OverSampling8Cmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_OneBitMethodCmd(USART_TypeDef* USARTx, FunctionalState NewState); + +/* Data transfers functions ***************************************************/ +void USART_SendData(USART_TypeDef* USARTx, uint16_t Data); +uint16_t USART_ReceiveData(USART_TypeDef* USARTx); + +/* Multi-Processor Communication functions ************************************/ +void USART_SetAddress(USART_TypeDef* USARTx, uint8_t USART_Address); +void USART_WakeUpConfig(USART_TypeDef* USARTx, uint16_t USART_WakeUp); +void USART_ReceiverWakeUpCmd(USART_TypeDef* USARTx, FunctionalState NewState); + +/* LIN mode functions *********************************************************/ +void USART_LINBreakDetectLengthConfig(USART_TypeDef* USARTx, uint16_t USART_LINBreakDetectLength); +void USART_LINCmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_SendBreak(USART_TypeDef* USARTx); + +/* Half-duplex mode function **************************************************/ +void USART_HalfDuplexCmd(USART_TypeDef* USARTx, FunctionalState NewState); + +/* Smartcard mode functions ***************************************************/ +void USART_SmartCardCmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_SmartCardNACKCmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_SetGuardTime(USART_TypeDef* USARTx, uint8_t USART_GuardTime); + +/* IrDA mode functions ********************************************************/ +void USART_IrDAConfig(USART_TypeDef* USARTx, uint16_t USART_IrDAMode); +void USART_IrDACmd(USART_TypeDef* USARTx, FunctionalState NewState); + +/* DMA transfers management functions *****************************************/ +void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void USART_ITConfig(USART_TypeDef* USARTx, uint16_t USART_IT, FunctionalState NewState); +FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, uint16_t USART_FLAG); +void USART_ClearFlag(USART_TypeDef* USARTx, uint16_t USART_FLAG); +ITStatus USART_GetITStatus(USART_TypeDef* USARTx, uint16_t USART_IT); +void USART_ClearITPendingBit(USART_TypeDef* USARTx, uint16_t USART_IT); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_USART_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_wwdg.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_wwdg.h new file mode 100644 index 00000000..c4c1969d --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/inc/stm32f2xx_wwdg.h @@ -0,0 +1,111 @@ +/** + ****************************************************************************** + * @file stm32f2xx_wwdg.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the WWDG firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_WWDG_H +#define __STM32F2xx_WWDG_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup WWDG + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup WWDG_Exported_Constants + * @{ + */ + +/** @defgroup WWDG_Prescaler + * @{ + */ + +#define WWDG_Prescaler_1 ((uint32_t)0x00000000) +#define WWDG_Prescaler_2 ((uint32_t)0x00000080) +#define WWDG_Prescaler_4 ((uint32_t)0x00000100) +#define WWDG_Prescaler_8 ((uint32_t)0x00000180) +#define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \ + ((PRESCALER) == WWDG_Prescaler_2) || \ + ((PRESCALER) == WWDG_Prescaler_4) || \ + ((PRESCALER) == WWDG_Prescaler_8)) +#define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F) +#define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F)) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the WWDG configuration to the default reset state ****/ +void WWDG_DeInit(void); + +/* Prescaler, Refresh window and Counter configuration functions **************/ +void WWDG_SetPrescaler(uint32_t WWDG_Prescaler); +void WWDG_SetWindowValue(uint8_t WindowValue); +void WWDG_EnableIT(void); +void WWDG_SetCounter(uint8_t Counter); + +/* WWDG activation function ***************************************************/ +void WWDG_Enable(uint8_t Counter); + +/* Interrupts and flags management functions **********************************/ +FlagStatus WWDG_GetFlagStatus(void); +void WWDG_ClearFlag(void); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_WWDG_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/misc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/misc.c new file mode 100644 index 00000000..7555a3d8 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/misc.c @@ -0,0 +1,249 @@ +/** + ****************************************************************************** + * @file misc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides all the miscellaneous firmware functions (add-on + * to CMSIS functions). + * + * @verbatim + * + * =================================================================== + * How to configure Interrupts using driver + * =================================================================== + * + * This section provide functions allowing to configure the NVIC interrupts (IRQ). + * The Cortex-M3 exceptions are managed by CMSIS functions. + * + * 1. Configure the NVIC Priority Grouping using NVIC_PriorityGroupConfig() + * function according to the following table. + + * The table below gives the allowed values of the pre-emption priority and subpriority according + * to the Priority Grouping configuration performed by NVIC_PriorityGroupConfig function + * ========================================================================================================================== + * NVIC_PriorityGroup | NVIC_IRQChannelPreemptionPriority | NVIC_IRQChannelSubPriority | Description + * ========================================================================================================================== + * NVIC_PriorityGroup_0 | 0 | 0-15 | 0 bits for pre-emption priority + * | | | 4 bits for subpriority + * -------------------------------------------------------------------------------------------------------------------------- + * NVIC_PriorityGroup_1 | 0-1 | 0-7 | 1 bits for pre-emption priority + * | | | 3 bits for subpriority + * -------------------------------------------------------------------------------------------------------------------------- + * NVIC_PriorityGroup_2 | 0-3 | 0-3 | 2 bits for pre-emption priority + * | | | 2 bits for subpriority + * -------------------------------------------------------------------------------------------------------------------------- + * NVIC_PriorityGroup_3 | 0-7 | 0-1 | 3 bits for pre-emption priority + * | | | 1 bits for subpriority + * -------------------------------------------------------------------------------------------------------------------------- + * NVIC_PriorityGroup_4 | 0-15 | 0 | 4 bits for pre-emption priority + * | | | 0 bits for subpriority + * ========================================================================================================================== + * + * 2. Enable and Configure the priority of the selected IRQ Channels using NVIC_Init() + * + * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible. + * The pending IRQ priority will be managed only by the subpriority. + * + * @note IRQ priority order (sorted by highest to lowest priority): + * - Lowest pre-emption priority + * - Lowest subpriority + * - Lowest hardware priority (IRQ number) + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "misc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup MISC + * @brief MISC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define AIRCR_VECTKEY_MASK ((uint32_t)0x05FA0000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup MISC_Private_Functions + * @{ + */ + +/** + * @brief Configures the priority grouping: pre-emption priority and subpriority. + * @param NVIC_PriorityGroup: specifies the priority grouping bits length. + * This parameter can be one of the following values: + * @arg NVIC_PriorityGroup_0: 0 bits for pre-emption priority + * 4 bits for subpriority + * @arg NVIC_PriorityGroup_1: 1 bits for pre-emption priority + * 3 bits for subpriority + * @arg NVIC_PriorityGroup_2: 2 bits for pre-emption priority + * 2 bits for subpriority + * @arg NVIC_PriorityGroup_3: 3 bits for pre-emption priority + * 1 bits for subpriority + * @arg NVIC_PriorityGroup_4: 4 bits for pre-emption priority + * 0 bits for subpriority + * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible. + * The pending IRQ priority will be managed only by the subpriority. + * @retval None + */ +void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup) +{ + /* Check the parameters */ + assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup)); + + /* Set the PRIGROUP[10:8] bits according to NVIC_PriorityGroup value */ + SCB->AIRCR = AIRCR_VECTKEY_MASK | NVIC_PriorityGroup; +} + +/** + * @brief Initializes the NVIC peripheral according to the specified + * parameters in the NVIC_InitStruct. + * @note To configure interrupts priority correctly, the NVIC_PriorityGroupConfig() + * function should be called before. + * @param NVIC_InitStruct: pointer to a NVIC_InitTypeDef structure that contains + * the configuration information for the specified NVIC peripheral. + * @retval None + */ +void NVIC_Init(NVIC_InitTypeDef* NVIC_InitStruct) +{ + uint8_t tmppriority = 0x00, tmppre = 0x00, tmpsub = 0x0F; + + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NVIC_InitStruct->NVIC_IRQChannelCmd)); + assert_param(IS_NVIC_PREEMPTION_PRIORITY(NVIC_InitStruct->NVIC_IRQChannelPreemptionPriority)); + assert_param(IS_NVIC_SUB_PRIORITY(NVIC_InitStruct->NVIC_IRQChannelSubPriority)); + + if (NVIC_InitStruct->NVIC_IRQChannelCmd != DISABLE) + { + /* Compute the Corresponding IRQ Priority --------------------------------*/ + tmppriority = (0x700 - ((SCB->AIRCR) & (uint32_t)0x700))>> 0x08; + tmppre = (0x4 - tmppriority); + tmpsub = tmpsub >> tmppriority; + + tmppriority = NVIC_InitStruct->NVIC_IRQChannelPreemptionPriority << tmppre; + tmppriority |= (uint8_t)(NVIC_InitStruct->NVIC_IRQChannelSubPriority & tmpsub); + + tmppriority = tmppriority << 0x04; + + NVIC->IP[NVIC_InitStruct->NVIC_IRQChannel] = tmppriority; + + /* Enable the Selected IRQ Channels --------------------------------------*/ + NVIC->ISER[NVIC_InitStruct->NVIC_IRQChannel >> 0x05] = + (uint32_t)0x01 << (NVIC_InitStruct->NVIC_IRQChannel & (uint8_t)0x1F); + } + else + { + /* Disable the Selected IRQ Channels -------------------------------------*/ + NVIC->ICER[NVIC_InitStruct->NVIC_IRQChannel >> 0x05] = + (uint32_t)0x01 << (NVIC_InitStruct->NVIC_IRQChannel & (uint8_t)0x1F); + } +} + +/** + * @brief Sets the vector table location and Offset. + * @param NVIC_VectTab: specifies if the vector table is in RAM or FLASH memory. + * This parameter can be one of the following values: + * @arg NVIC_VectTab_RAM: Vector Table in internal SRAM. + * @arg NVIC_VectTab_FLASH: Vector Table in internal FLASH. + * @param Offset: Vector Table base offset field. This value must be a multiple of 0x200. + * @retval None + */ +void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset) +{ + /* Check the parameters */ + assert_param(IS_NVIC_VECTTAB(NVIC_VectTab)); + assert_param(IS_NVIC_OFFSET(Offset)); + + SCB->VTOR = NVIC_VectTab | (Offset & (uint32_t)0x1FFFFF80); +} + +/** + * @brief Selects the condition for the system to enter low power mode. + * @param LowPowerMode: Specifies the new mode for the system to enter low power mode. + * This parameter can be one of the following values: + * @arg NVIC_LP_SEVONPEND: Low Power SEV on Pend. + * @arg NVIC_LP_SLEEPDEEP: Low Power DEEPSLEEP request. + * @arg NVIC_LP_SLEEPONEXIT: Low Power Sleep on Exit. + * @param NewState: new state of LP condition. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_NVIC_LP(LowPowerMode)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + SCB->SCR |= LowPowerMode; + } + else + { + SCB->SCR &= (uint32_t)(~(uint32_t)LowPowerMode); + } +} + +/** + * @brief Configures the SysTick clock source. + * @param SysTick_CLKSource: specifies the SysTick clock source. + * This parameter can be one of the following values: + * @arg SysTick_CLKSource_HCLK_Div8: AHB clock divided by 8 selected as SysTick clock source. + * @arg SysTick_CLKSource_HCLK: AHB clock selected as SysTick clock source. + * @retval None + */ +void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource) +{ + /* Check the parameters */ + assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource)); + if (SysTick_CLKSource == SysTick_CLKSource_HCLK) + { + SysTick->CTRL |= SysTick_CLKSource_HCLK; + } + else + { + SysTick->CTRL &= SysTick_CLKSource_HCLK_Div8; + } +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_adc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_adc.c new file mode 100644 index 00000000..e1d05597 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_adc.c @@ -0,0 +1,1748 @@ +/** + ****************************************************************************** + * @file stm32f2xx_adc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Analog to Digital Convertor (ADC) peripheral: + * - Initialization and Configuration (in addition to ADC multi mode + * selection) + * - Analog Watchdog configuration + * - Temperature Sensor & Vrefint (Voltage Reference internal) & VBAT + * management + * - Regular Channels Configuration + * - Regular Channels DMA Configuration + * - Injected channels Configuration + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + + * 1. Enable the ADC interface clock using + * RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADCx, ENABLE); + * + * 2. ADC pins configuration + * - Enable the clock for the ADC GPIOs using the following function: + * RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + * - Configure these ADC pins in analog mode using GPIO_Init(); + * + * 3. Configure the ADC Prescaler, conversion resolution and data + * alignment using the ADC_Init() function. + * 4. Activate the ADC peripheral using ADC_Cmd() function. + * + * Regular channels group configuration + * ==================================== + * - To configure the ADC regular channels group features, use + * ADC_Init() and ADC_RegularChannelConfig() functions. + * - To activate the continuous mode, use the ADC_continuousModeCmd() + * function. + * - To configurate and activate the Discontinuous mode, use the + * ADC_DiscModeChannelCountConfig() and ADC_DiscModeCmd() functions. + * - To read the ADC converted values, use the ADC_GetConversionValue() + * function. + * + * Multi mode ADCs Regular channels configuration + * =============================================== + * - Refer to "Regular channels group configuration" description to + * configure the ADC1, ADC2 and ADC3 regular channels. + * - Select the Multi mode ADC regular channels features (dual or + * triple mode) using ADC_CommonInit() function and configure + * the DMA mode using ADC_MultiModeDMARequestAfterLastTransferCmd() + * functions. + * - Read the ADCs converted values using the + * ADC_GetMultiModeConversionValue() function. + * + * DMA for Regular channels group features configuration + * ====================================================== + * - To enable the DMA mode for regular channels group, use the + * ADC_DMACmd() function. + * - To enable the generation of DMA requests continuously at the end + * of the last DMA transfer, use the ADC_DMARequestAfterLastTransferCmd() + * function. + * + * Injected channels group configuration + * ===================================== + * - To configure the ADC Injected channels group features, use + * ADC_InjectedChannelConfig() and ADC_InjectedSequencerLengthConfig() + * functions. + * - To activate the continuous mode, use the ADC_continuousModeCmd() + * function. + * - To activate the Injected Discontinuous mode, use the + * ADC_InjectedDiscModeCmd() function. + * - To activate the AutoInjected mode, use the ADC_AutoInjectedConvCmd() + * function. + * - To read the ADC converted values, use the ADC_GetInjectedConversionValue() + * function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_adc.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup ADC + * @brief ADC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* ADC DISCNUM mask */ +#define CR1_DISCNUM_RESET ((uint32_t)0xFFFF1FFF) + +/* ADC AWDCH mask */ +#define CR1_AWDCH_RESET ((uint32_t)0xFFFFFFE0) + +/* ADC Analog watchdog enable mode mask */ +#define CR1_AWDMode_RESET ((uint32_t)0xFF3FFDFF) + +/* CR1 register Mask */ +#define CR1_CLEAR_MASK ((uint32_t)0xFCFFFEFF) + +/* ADC EXTEN mask */ +#define CR2_EXTEN_RESET ((uint32_t)0xCFFFFFFF) + +/* ADC JEXTEN mask */ +#define CR2_JEXTEN_RESET ((uint32_t)0xFFCFFFFF) + +/* ADC JEXTSEL mask */ +#define CR2_JEXTSEL_RESET ((uint32_t)0xFFF0FFFF) + +/* CR2 register Mask */ +#define CR2_CLEAR_MASK ((uint32_t)0xC0FFF7FD) + +/* ADC SQx mask */ +#define SQR3_SQ_SET ((uint32_t)0x0000001F) +#define SQR2_SQ_SET ((uint32_t)0x0000001F) +#define SQR1_SQ_SET ((uint32_t)0x0000001F) + +/* ADC L Mask */ +#define SQR1_L_RESET ((uint32_t)0xFF0FFFFF) + +/* ADC JSQx mask */ +#define JSQR_JSQ_SET ((uint32_t)0x0000001F) + +/* ADC JL mask */ +#define JSQR_JL_SET ((uint32_t)0x00300000) +#define JSQR_JL_RESET ((uint32_t)0xFFCFFFFF) + +/* ADC SMPx mask */ +#define SMPR1_SMP_SET ((uint32_t)0x00000007) +#define SMPR2_SMP_SET ((uint32_t)0x00000007) + +/* ADC JDRx registers offset */ +#define JDR_OFFSET ((uint8_t)0x28) + +/* ADC CDR register base address */ +#define CDR_ADDRESS ((uint32_t)0x40012308) + +/* ADC CCR register Mask */ +#define CR_CLEAR_MASK ((uint32_t)0xFFFC30E0) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup ADC_Private_Functions + * @{ + */ + +/** @defgroup ADC_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to: + - Initialize and configure the ADC Prescaler + - ADC Conversion Resolution (12bit..6bit) + - Scan Conversion Mode (multichannels or one channel) for regular group + - ADC Continuous Conversion Mode (Continuous or Single conversion) for + regular group + - External trigger Edge and source of regular group, + - Converted data alignment (left or right) + - The number of ADC conversions that will be done using the sequencer for + regular channel group + - Multi ADC mode selection + - Direct memory access mode selection for multi ADC mode + - Delay between 2 sampling phases (used in dual or triple interleaved modes) + - Enable or disable the ADC peripheral + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes all ADCs peripherals registers to their default reset + * values. + * @param None + * @retval None + */ +void ADC_DeInit(void) +{ + /* Enable all ADCs reset state */ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC, ENABLE); + + /* Release all ADCs from reset state */ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC, DISABLE); +} + +/** + * @brief Initializes the ADCx peripheral according to the specified parameters + * in the ADC_InitStruct. + * @note This function is used to configure the global features of the ADC ( + * Resolution and Data Alignment), however, the rest of the configuration + * parameters are specific to the regular channels group (scan mode + * activation, continuous mode activation, External trigger source and + * edge, number of conversion in the regular channels group sequencer). + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_InitStruct: pointer to an ADC_InitTypeDef structure that contains + * the configuration information for the specified ADC peripheral. + * @retval None + */ +void ADC_Init(ADC_TypeDef* ADCx, ADC_InitTypeDef* ADC_InitStruct) +{ + uint32_t tmpreg1 = 0; + uint8_t tmpreg2 = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_RESOLUTION(ADC_InitStruct->ADC_Resolution)); + assert_param(IS_FUNCTIONAL_STATE(ADC_InitStruct->ADC_ScanConvMode)); + assert_param(IS_FUNCTIONAL_STATE(ADC_InitStruct->ADC_ContinuousConvMode)); + assert_param(IS_ADC_EXT_TRIG_EDGE(ADC_InitStruct->ADC_ExternalTrigConvEdge)); + assert_param(IS_ADC_EXT_TRIG(ADC_InitStruct->ADC_ExternalTrigConv)); + assert_param(IS_ADC_DATA_ALIGN(ADC_InitStruct->ADC_DataAlign)); + assert_param(IS_ADC_REGULAR_LENGTH(ADC_InitStruct->ADC_NbrOfConversion)); + + /*---------------------------- ADCx CR1 Configuration -----------------*/ + /* Get the ADCx CR1 value */ + tmpreg1 = ADCx->CR1; + + /* Clear RES and SCAN bits */ + tmpreg1 &= CR1_CLEAR_MASK; + + /* Configure ADCx: scan conversion mode and resolution */ + /* Set SCAN bit according to ADC_ScanConvMode value */ + /* Set RES bit according to ADC_Resolution value */ + tmpreg1 |= (uint32_t)(((uint32_t)ADC_InitStruct->ADC_ScanConvMode << 8) | \ + ADC_InitStruct->ADC_Resolution); + /* Write to ADCx CR1 */ + ADCx->CR1 = tmpreg1; + /*---------------------------- ADCx CR2 Configuration -----------------*/ + /* Get the ADCx CR2 value */ + tmpreg1 = ADCx->CR2; + + /* Clear CONT, ALIGN, EXTEN and EXTSEL bits */ + tmpreg1 &= CR2_CLEAR_MASK; + + /* Configure ADCx: external trigger event and edge, data alignment and + continuous conversion mode */ + /* Set ALIGN bit according to ADC_DataAlign value */ + /* Set EXTEN bits according to ADC_ExternalTrigConvEdge value */ + /* Set EXTSEL bits according to ADC_ExternalTrigConv value */ + /* Set CONT bit according to ADC_ContinuousConvMode value */ + tmpreg1 |= (uint32_t)(ADC_InitStruct->ADC_DataAlign | \ + ADC_InitStruct->ADC_ExternalTrigConv | + ADC_InitStruct->ADC_ExternalTrigConvEdge | \ + ((uint32_t)ADC_InitStruct->ADC_ContinuousConvMode << 1)); + + /* Write to ADCx CR2 */ + ADCx->CR2 = tmpreg1; + /*---------------------------- ADCx SQR1 Configuration -----------------*/ + /* Get the ADCx SQR1 value */ + tmpreg1 = ADCx->SQR1; + + /* Clear L bits */ + tmpreg1 &= SQR1_L_RESET; + + /* Configure ADCx: regular channel sequence length */ + /* Set L bits according to ADC_NbrOfConversion value */ + tmpreg2 |= (uint8_t)(ADC_InitStruct->ADC_NbrOfConversion - (uint8_t)1); + tmpreg1 |= ((uint32_t)tmpreg2 << 20); + + /* Write to ADCx SQR1 */ + ADCx->SQR1 = tmpreg1; +} + +/** + * @brief Fills each ADC_InitStruct member with its default value. + * @note This function is used to initialize the global features of the ADC ( + * Resolution and Data Alignment), however, the rest of the configuration + * parameters are specific to the regular channels group (scan mode + * activation, continuous mode activation, External trigger source and + * edge, number of conversion in the regular channels group sequencer). + * @param ADC_InitStruct: pointer to an ADC_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void ADC_StructInit(ADC_InitTypeDef* ADC_InitStruct) +{ + /* Initialize the ADC_Mode member */ + ADC_InitStruct->ADC_Resolution = ADC_Resolution_12b; + + /* initialize the ADC_ScanConvMode member */ + ADC_InitStruct->ADC_ScanConvMode = DISABLE; + + /* Initialize the ADC_ContinuousConvMode member */ + ADC_InitStruct->ADC_ContinuousConvMode = DISABLE; + + /* Initialize the ADC_ExternalTrigConvEdge member */ + ADC_InitStruct->ADC_ExternalTrigConvEdge = ADC_ExternalTrigConvEdge_None; + + /* Initialize the ADC_ExternalTrigConv member */ + ADC_InitStruct->ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1; + + /* Initialize the ADC_DataAlign member */ + ADC_InitStruct->ADC_DataAlign = ADC_DataAlign_Right; + + /* Initialize the ADC_NbrOfConversion member */ + ADC_InitStruct->ADC_NbrOfConversion = 1; +} + +/** + * @brief Initializes the ADCs peripherals according to the specified parameters + * in the ADC_CommonInitStruct. + * @param ADC_CommonInitStruct: pointer to an ADC_CommonInitTypeDef structure + * that contains the configuration information for All ADCs peripherals. + * @retval None + */ +void ADC_CommonInit(ADC_CommonInitTypeDef* ADC_CommonInitStruct) +{ + uint32_t tmpreg1 = 0; + /* Check the parameters */ + assert_param(IS_ADC_MODE(ADC_CommonInitStruct->ADC_Mode)); + assert_param(IS_ADC_PRESCALER(ADC_CommonInitStruct->ADC_Prescaler)); + assert_param(IS_ADC_DMA_ACCESS_MODE(ADC_CommonInitStruct->ADC_DMAAccessMode)); + assert_param(IS_ADC_SAMPLING_DELAY(ADC_CommonInitStruct->ADC_TwoSamplingDelay)); + /*---------------------------- ADC CCR Configuration -----------------*/ + /* Get the ADC CCR value */ + tmpreg1 = ADC->CCR; + + /* Clear MULTI, DELAY, DMA and ADCPRE bits */ + tmpreg1 &= CR_CLEAR_MASK; + + /* Configure ADCx: Multi mode, Delay between two sampling time, ADC prescaler, + and DMA access mode for multimode */ + /* Set MULTI bits according to ADC_Mode value */ + /* Set ADCPRE bits according to ADC_Prescaler value */ + /* Set DMA bits according to ADC_DMAAccessMode value */ + /* Set DELAY bits according to ADC_TwoSamplingDelay value */ + tmpreg1 |= (uint32_t)(ADC_CommonInitStruct->ADC_Mode | + ADC_CommonInitStruct->ADC_Prescaler | + ADC_CommonInitStruct->ADC_DMAAccessMode | + ADC_CommonInitStruct->ADC_TwoSamplingDelay); + + /* Write to ADC CCR */ + ADC->CCR = tmpreg1; +} + +/** + * @brief Fills each ADC_CommonInitStruct member with its default value. + * @param ADC_CommonInitStruct: pointer to an ADC_CommonInitTypeDef structure + * which will be initialized. + * @retval None + */ +void ADC_CommonStructInit(ADC_CommonInitTypeDef* ADC_CommonInitStruct) +{ + /* Initialize the ADC_Mode member */ + ADC_CommonInitStruct->ADC_Mode = ADC_Mode_Independent; + + /* initialize the ADC_Prescaler member */ + ADC_CommonInitStruct->ADC_Prescaler = ADC_Prescaler_Div2; + + /* Initialize the ADC_DMAAccessMode member */ + ADC_CommonInitStruct->ADC_DMAAccessMode = ADC_DMAAccessMode_Disabled; + + /* Initialize the ADC_TwoSamplingDelay member */ + ADC_CommonInitStruct->ADC_TwoSamplingDelay = ADC_TwoSamplingDelay_5Cycles; +} + +/** + * @brief Enables or disables the specified ADC peripheral. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the ADCx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_Cmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Set the ADON bit to wake up the ADC from power down mode */ + ADCx->CR2 |= (uint32_t)ADC_CR2_ADON; + } + else + { + /* Disable the selected ADC peripheral */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_ADON); + } +} +/** + * @} + */ + +/** @defgroup ADC_Group2 Analog Watchdog configuration functions + * @brief Analog Watchdog configuration functions + * +@verbatim + =============================================================================== + Analog Watchdog configuration functions + =============================================================================== + + This section provides functions allowing to configure the Analog Watchdog + (AWD) feature in the ADC. + + A typical configuration Analog Watchdog is done following these steps : + 1. the ADC guarded channel(s) is (are) selected using the + ADC_AnalogWatchdogSingleChannelConfig() function. + 2. The Analog watchdog lower and higher threshold are configured using the + ADC_AnalogWatchdogThresholdsConfig() function. + 3. The Analog watchdog is enabled and configured to enable the check, on one + or more channels, using the ADC_AnalogWatchdogCmd() function. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the analog watchdog on single/all regular or + * injected channels + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_AnalogWatchdog: the ADC analog watchdog configuration. + * This parameter can be one of the following values: + * @arg ADC_AnalogWatchdog_SingleRegEnable: Analog watchdog on a single regular channel + * @arg ADC_AnalogWatchdog_SingleInjecEnable: Analog watchdog on a single injected channel + * @arg ADC_AnalogWatchdog_SingleRegOrInjecEnable: Analog watchdog on a single regular or injected channel + * @arg ADC_AnalogWatchdog_AllRegEnable: Analog watchdog on all regular channel + * @arg ADC_AnalogWatchdog_AllInjecEnable: Analog watchdog on all injected channel + * @arg ADC_AnalogWatchdog_AllRegAllInjecEnable: Analog watchdog on all regular and injected channels + * @arg ADC_AnalogWatchdog_None: No channel guarded by the analog watchdog + * @retval None + */ +void ADC_AnalogWatchdogCmd(ADC_TypeDef* ADCx, uint32_t ADC_AnalogWatchdog) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_ANALOG_WATCHDOG(ADC_AnalogWatchdog)); + + /* Get the old register value */ + tmpreg = ADCx->CR1; + + /* Clear AWDEN, JAWDEN and AWDSGL bits */ + tmpreg &= CR1_AWDMode_RESET; + + /* Set the analog watchdog enable mode */ + tmpreg |= ADC_AnalogWatchdog; + + /* Store the new register value */ + ADCx->CR1 = tmpreg; +} + +/** + * @brief Configures the high and low thresholds of the analog watchdog. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param HighThreshold: the ADC analog watchdog High threshold value. + * This parameter must be a 12-bit value. + * @param LowThreshold: the ADC analog watchdog Low threshold value. + * This parameter must be a 12-bit value. + * @retval None + */ +void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef* ADCx, uint16_t HighThreshold, + uint16_t LowThreshold) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_THRESHOLD(HighThreshold)); + assert_param(IS_ADC_THRESHOLD(LowThreshold)); + + /* Set the ADCx high threshold */ + ADCx->HTR = HighThreshold; + + /* Set the ADCx low threshold */ + ADCx->LTR = LowThreshold; +} + +/** + * @brief Configures the analog watchdog guarded single channel + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_Channel: the ADC channel to configure for the analog watchdog. + * This parameter can be one of the following values: + * @arg ADC_Channel_0: ADC Channel0 selected + * @arg ADC_Channel_1: ADC Channel1 selected + * @arg ADC_Channel_2: ADC Channel2 selected + * @arg ADC_Channel_3: ADC Channel3 selected + * @arg ADC_Channel_4: ADC Channel4 selected + * @arg ADC_Channel_5: ADC Channel5 selected + * @arg ADC_Channel_6: ADC Channel6 selected + * @arg ADC_Channel_7: ADC Channel7 selected + * @arg ADC_Channel_8: ADC Channel8 selected + * @arg ADC_Channel_9: ADC Channel9 selected + * @arg ADC_Channel_10: ADC Channel10 selected + * @arg ADC_Channel_11: ADC Channel11 selected + * @arg ADC_Channel_12: ADC Channel12 selected + * @arg ADC_Channel_13: ADC Channel13 selected + * @arg ADC_Channel_14: ADC Channel14 selected + * @arg ADC_Channel_15: ADC Channel15 selected + * @arg ADC_Channel_16: ADC Channel16 selected + * @arg ADC_Channel_17: ADC Channel17 selected + * @arg ADC_Channel_18: ADC Channel18 selected + * @retval None + */ +void ADC_AnalogWatchdogSingleChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_CHANNEL(ADC_Channel)); + + /* Get the old register value */ + tmpreg = ADCx->CR1; + + /* Clear the Analog watchdog channel select bits */ + tmpreg &= CR1_AWDCH_RESET; + + /* Set the Analog watchdog channel */ + tmpreg |= ADC_Channel; + + /* Store the new register value */ + ADCx->CR1 = tmpreg; +} +/** + * @} + */ + +/** @defgroup ADC_Group3 Temperature Sensor, Vrefint (Voltage Reference internal) + * and VBAT (Voltage BATtery) management functions + * @brief Temperature Sensor, Vrefint and VBAT management functions + * +@verbatim + =============================================================================== + Temperature Sensor, Vrefint and VBAT management functions + =============================================================================== + + This section provides functions allowing to enable/ disable the internal + connections between the ADC and the Temperature Sensor, the Vrefint and the + Vbat sources. + + A typical configuration to get the Temperature sensor and Vrefint channels + voltages is done following these steps : + 1. Enable the internal connection of Temperature sensor and Vrefint sources + with the ADC channels using ADC_TempSensorVrefintCmd() function. + 2. Select the ADC_Channel_TempSensor and/or ADC_Channel_Vrefint using + ADC_RegularChannelConfig() or ADC_InjectedChannelConfig() functions + 3. Get the voltage values, using ADC_GetConversionValue() or + ADC_GetInjectedConversionValue(). + + A typical configuration to get the VBAT channel voltage is done following + these steps : + 1. Enable the internal connection of VBAT source with the ADC channel using + ADC_VBATCmd() function. + 2. Select the ADC_Channel_Vbat using ADC_RegularChannelConfig() or + ADC_InjectedChannelConfig() functions + 3. Get the voltage value, using ADC_GetConversionValue() or + ADC_GetInjectedConversionValue(). + +@endverbatim + * @{ + */ + + +/** + * @brief Enables or disables the temperature sensor and Vrefint channels. + * @param NewState: new state of the temperature sensor and Vrefint channels. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_TempSensorVrefintCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the temperature sensor and Vrefint channel*/ + ADC->CCR |= (uint32_t)ADC_CCR_TSVREFE; + } + else + { + /* Disable the temperature sensor and Vrefint channel*/ + ADC->CCR &= (uint32_t)(~ADC_CCR_TSVREFE); + } +} + +/** + * @brief Enables or disables the VBAT (Voltage Battery) channel. + * @param NewState: new state of the VBAT channel. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_VBATCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the VBAT channel*/ + ADC->CCR |= (uint32_t)ADC_CCR_VBATE; + } + else + { + /* Disable the VBAT channel*/ + ADC->CCR &= (uint32_t)(~ADC_CCR_VBATE); + } +} + +/** + * @} + */ + +/** @defgroup ADC_Group4 Regular Channels Configuration functions + * @brief Regular Channels Configuration functions + * +@verbatim + =============================================================================== + Regular Channels Configuration functions + =============================================================================== + + This section provides functions allowing to manage the ADC's regular channels, + it is composed of 2 sub sections : + + 1. Configuration and management functions for regular channels: This subsection + provides functions allowing to configure the ADC regular channels : + - Configure the rank in the regular group sequencer for each channel + - Configure the sampling time for each channel + - select the conversion Trigger for regular channels + - select the desired EOC event behavior configuration + - Activate the continuous Mode (*) + - Activate the Discontinuous Mode + Please Note that the following features for regular channels are configurated + using the ADC_Init() function : + - scan mode activation + - continuous mode activation (**) + - External trigger source + - External trigger edge + - number of conversion in the regular channels group sequencer. + + @note (*) and (**) are performing the same configuration + + 2. Get the conversion data: This subsection provides an important function in + the ADC peripheral since it returns the converted data of the current + regular channel. When the Conversion value is read, the EOC Flag is + automatically cleared. + + @note For multi ADC mode, the last ADC1, ADC2 and ADC3 regular conversions + results data (in the selected multi mode) can be returned in the same + time using ADC_GetMultiModeConversionValue() function. + + +@endverbatim + * @{ + */ +/** + * @brief Configures for the selected ADC regular channel its corresponding + * rank in the sequencer and its sample time. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_Channel: the ADC channel to configure. + * This parameter can be one of the following values: + * @arg ADC_Channel_0: ADC Channel0 selected + * @arg ADC_Channel_1: ADC Channel1 selected + * @arg ADC_Channel_2: ADC Channel2 selected + * @arg ADC_Channel_3: ADC Channel3 selected + * @arg ADC_Channel_4: ADC Channel4 selected + * @arg ADC_Channel_5: ADC Channel5 selected + * @arg ADC_Channel_6: ADC Channel6 selected + * @arg ADC_Channel_7: ADC Channel7 selected + * @arg ADC_Channel_8: ADC Channel8 selected + * @arg ADC_Channel_9: ADC Channel9 selected + * @arg ADC_Channel_10: ADC Channel10 selected + * @arg ADC_Channel_11: ADC Channel11 selected + * @arg ADC_Channel_12: ADC Channel12 selected + * @arg ADC_Channel_13: ADC Channel13 selected + * @arg ADC_Channel_14: ADC Channel14 selected + * @arg ADC_Channel_15: ADC Channel15 selected + * @arg ADC_Channel_16: ADC Channel16 selected + * @arg ADC_Channel_17: ADC Channel17 selected + * @arg ADC_Channel_18: ADC Channel18 selected + * @param Rank: The rank in the regular group sequencer. + * This parameter must be between 1 to 16. + * @param ADC_SampleTime: The sample time value to be set for the selected channel. + * This parameter can be one of the following values: + * @arg ADC_SampleTime_3Cycles: Sample time equal to 3 cycles + * @arg ADC_SampleTime_15Cycles: Sample time equal to 15 cycles + * @arg ADC_SampleTime_28Cycles: Sample time equal to 28 cycles + * @arg ADC_SampleTime_56Cycles: Sample time equal to 56 cycles + * @arg ADC_SampleTime_84Cycles: Sample time equal to 84 cycles + * @arg ADC_SampleTime_112Cycles: Sample time equal to 112 cycles + * @arg ADC_SampleTime_144Cycles: Sample time equal to 144 cycles + * @arg ADC_SampleTime_480Cycles: Sample time equal to 480 cycles + * @retval None + */ +void ADC_RegularChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime) +{ + uint32_t tmpreg1 = 0, tmpreg2 = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_CHANNEL(ADC_Channel)); + assert_param(IS_ADC_REGULAR_RANK(Rank)); + assert_param(IS_ADC_SAMPLE_TIME(ADC_SampleTime)); + + /* if ADC_Channel_10 ... ADC_Channel_18 is selected */ + if (ADC_Channel > ADC_Channel_9) + { + /* Get the old register value */ + tmpreg1 = ADCx->SMPR1; + + /* Calculate the mask to clear */ + tmpreg2 = SMPR1_SMP_SET << (3 * (ADC_Channel - 10)); + + /* Clear the old sample time */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_SampleTime << (3 * (ADC_Channel - 10)); + + /* Set the new sample time */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SMPR1 = tmpreg1; + } + else /* ADC_Channel include in ADC_Channel_[0..9] */ + { + /* Get the old register value */ + tmpreg1 = ADCx->SMPR2; + + /* Calculate the mask to clear */ + tmpreg2 = SMPR2_SMP_SET << (3 * ADC_Channel); + + /* Clear the old sample time */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_SampleTime << (3 * ADC_Channel); + + /* Set the new sample time */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SMPR2 = tmpreg1; + } + /* For Rank 1 to 6 */ + if (Rank < 7) + { + /* Get the old register value */ + tmpreg1 = ADCx->SQR3; + + /* Calculate the mask to clear */ + tmpreg2 = SQR3_SQ_SET << (5 * (Rank - 1)); + + /* Clear the old SQx bits for the selected rank */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_Channel << (5 * (Rank - 1)); + + /* Set the SQx bits for the selected rank */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SQR3 = tmpreg1; + } + /* For Rank 7 to 12 */ + else if (Rank < 13) + { + /* Get the old register value */ + tmpreg1 = ADCx->SQR2; + + /* Calculate the mask to clear */ + tmpreg2 = SQR2_SQ_SET << (5 * (Rank - 7)); + + /* Clear the old SQx bits for the selected rank */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_Channel << (5 * (Rank - 7)); + + /* Set the SQx bits for the selected rank */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SQR2 = tmpreg1; + } + /* For Rank 13 to 16 */ + else + { + /* Get the old register value */ + tmpreg1 = ADCx->SQR1; + + /* Calculate the mask to clear */ + tmpreg2 = SQR1_SQ_SET << (5 * (Rank - 13)); + + /* Clear the old SQx bits for the selected rank */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_Channel << (5 * (Rank - 13)); + + /* Set the SQx bits for the selected rank */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SQR1 = tmpreg1; + } +} + +/** + * @brief Enables the selected ADC software start conversion of the regular channels. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval None + */ +void ADC_SoftwareStartConv(ADC_TypeDef* ADCx) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + + /* Enable the selected ADC conversion for regular group */ + ADCx->CR2 |= (uint32_t)ADC_CR2_SWSTART; +} + +/** + * @brief Gets the selected ADC Software start regular conversion Status. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval The new state of ADC software start conversion (SET or RESET). + */ +FlagStatus ADC_GetSoftwareStartConvStatus(ADC_TypeDef* ADCx) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + + /* Check the status of SWSTART bit */ + if ((ADCx->CR2 & ADC_CR2_JSWSTART) != (uint32_t)RESET) + { + /* SWSTART bit is set */ + bitstatus = SET; + } + else + { + /* SWSTART bit is reset */ + bitstatus = RESET; + } + + /* Return the SWSTART bit status */ + return bitstatus; +} + + +/** + * @brief Enables or disables the EOC on each regular channel conversion + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC EOC flag rising + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_EOCOnEachRegularChannelCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected ADC EOC rising on each regular channel conversion */ + ADCx->CR2 |= (uint32_t)ADC_CR2_EOCS; + } + else + { + /* Disable the selected ADC EOC rising on each regular channel conversion */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_EOCS); + } +} + +/** + * @brief Enables or disables the ADC continuous conversion mode + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC continuous conversion mode + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_ContinuousModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected ADC continuous conversion mode */ + ADCx->CR2 |= (uint32_t)ADC_CR2_CONT; + } + else + { + /* Disable the selected ADC continuous conversion mode */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_CONT); + } +} + +/** + * @brief Configures the discontinuous mode for the selected ADC regular group + * channel. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param Number: specifies the discontinuous mode regular channel count value. + * This number must be between 1 and 8. + * @retval None + */ +void ADC_DiscModeChannelCountConfig(ADC_TypeDef* ADCx, uint8_t Number) +{ + uint32_t tmpreg1 = 0; + uint32_t tmpreg2 = 0; + + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_REGULAR_DISC_NUMBER(Number)); + + /* Get the old register value */ + tmpreg1 = ADCx->CR1; + + /* Clear the old discontinuous mode channel count */ + tmpreg1 &= CR1_DISCNUM_RESET; + + /* Set the discontinuous mode channel count */ + tmpreg2 = Number - 1; + tmpreg1 |= tmpreg2 << 13; + + /* Store the new register value */ + ADCx->CR1 = tmpreg1; +} + +/** + * @brief Enables or disables the discontinuous mode on regular group channel + * for the specified ADC + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC discontinuous mode on + * regular group channel. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_DiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected ADC regular discontinuous mode */ + ADCx->CR1 |= (uint32_t)ADC_CR1_DISCEN; + } + else + { + /* Disable the selected ADC regular discontinuous mode */ + ADCx->CR1 &= (uint32_t)(~ADC_CR1_DISCEN); + } +} + +/** + * @brief Returns the last ADCx conversion result data for regular channel. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval The Data conversion value. + */ +uint16_t ADC_GetConversionValue(ADC_TypeDef* ADCx) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + + /* Return the selected ADC conversion value */ + return (uint16_t) ADCx->DR; +} + +/** + * @brief Returns the last ADC1, ADC2 and ADC3 regular conversions results + * data in the selected multi mode. + * @param None + * @retval The Data conversion value. + * @note In dual mode, the value returned by this function is as following + * Data[15:0] : these bits contain the regular data of ADC1. + * Data[31:16]: these bits contain the regular data of ADC2. + * @note In triple mode, the value returned by this function is as following + * Data[15:0] : these bits contain alternatively the regular data of ADC1, ADC3 and ADC2. + * Data[31:16]: these bits contain alternatively the regular data of ADC2, ADC1 and ADC3. + */ +uint32_t ADC_GetMultiModeConversionValue(void) +{ + /* Return the multi mode conversion value */ + return (*(__IO uint32_t *) CDR_ADDRESS); +} +/** + * @} + */ + +/** @defgroup ADC_Group5 Regular Channels DMA Configuration functions + * @brief Regular Channels DMA Configuration functions + * +@verbatim + =============================================================================== + Regular Channels DMA Configuration functions + =============================================================================== + + This section provides functions allowing to configure the DMA for ADC regular + channels. + Since converted regular channel values are stored into a unique data register, + it is useful to use DMA for conversion of more than one regular channel. This + avoids the loss of the data already stored in the ADC Data register. + + When the DMA mode is enabled (using the ADC_DMACmd() function), after each + conversion of a regular channel, a DMA request is generated. + + Depending on the "DMA disable selection for Independent ADC mode" + configuration (using the ADC_DMARequestAfterLastTransferCmd() function), + at the end of the last DMA transfer, two possibilities are allowed: + - No new DMA request is issued to the DMA controller (feature DISABLED) + - Requests can continue to be generated (feature ENABLED). + + Depending on the "DMA disable selection for multi ADC mode" configuration + (using the void ADC_MultiModeDMARequestAfterLastTransferCmd() function), + at the end of the last DMA transfer, two possibilities are allowed: + - No new DMA request is issued to the DMA controller (feature DISABLED) + - Requests can continue to be generated (feature ENABLED). + +@endverbatim + * @{ + */ + + /** + * @brief Enables or disables the specified ADC DMA request. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC DMA transfer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_DMACmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC DMA request */ + ADCx->CR2 |= (uint32_t)ADC_CR2_DMA; + } + else + { + /* Disable the selected ADC DMA request */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_DMA); + } +} + +/** + * @brief Enables or disables the ADC DMA request after last transfer (Single-ADC mode) + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC DMA request after last transfer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_DMARequestAfterLastTransferCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC DMA request after last transfer */ + ADCx->CR2 |= (uint32_t)ADC_CR2_DDS; + } + else + { + /* Disable the selected ADC DMA request after last transfer */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_DDS); + } +} + +/** + * @brief Enables or disables the ADC DMA request after last transfer in multi ADC mode + * @param NewState: new state of the selected ADC DMA request after last transfer. + * This parameter can be: ENABLE or DISABLE. + * @note if Enabled, DMA requests are issued as long as data are converted and + * DMA mode for multi ADC mode (selected using ADC_CommonInit() function + * by ADC_CommonInitStruct.ADC_DMAAccessMode structure member) is + * ADC_DMAAccessMode_1, ADC_DMAAccessMode_2 or ADC_DMAAccessMode_3. + * @retval None + */ +void ADC_MultiModeDMARequestAfterLastTransferCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC DMA request after last transfer */ + ADC->CCR |= (uint32_t)ADC_CCR_DDS; + } + else + { + /* Disable the selected ADC DMA request after last transfer */ + ADC->CCR &= (uint32_t)(~ADC_CCR_DDS); + } +} +/** + * @} + */ + +/** @defgroup ADC_Group6 Injected channels Configuration functions + * @brief Injected channels Configuration functions + * +@verbatim + =============================================================================== + Injected channels Configuration functions + =============================================================================== + + This section provide functions allowing to configure the ADC Injected channels, + it is composed of 2 sub sections : + + 1. Configuration functions for Injected channels: This subsection provides + functions allowing to configure the ADC injected channels : + - Configure the rank in the injected group sequencer for each channel + - Configure the sampling time for each channel + - Activate the Auto injected Mode + - Activate the Discontinuous Mode + - scan mode activation + - External/software trigger source + - External trigger edge + - injected channels sequencer. + + 2. Get the Specified Injected channel conversion data: This subsection + provides an important function in the ADC peripheral since it returns the + converted data of the specific injected channel. + +@endverbatim + * @{ + */ +/** + * @brief Configures for the selected ADC injected channel its corresponding + * rank in the sequencer and its sample time. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_Channel: the ADC channel to configure. + * This parameter can be one of the following values: + * @arg ADC_Channel_0: ADC Channel0 selected + * @arg ADC_Channel_1: ADC Channel1 selected + * @arg ADC_Channel_2: ADC Channel2 selected + * @arg ADC_Channel_3: ADC Channel3 selected + * @arg ADC_Channel_4: ADC Channel4 selected + * @arg ADC_Channel_5: ADC Channel5 selected + * @arg ADC_Channel_6: ADC Channel6 selected + * @arg ADC_Channel_7: ADC Channel7 selected + * @arg ADC_Channel_8: ADC Channel8 selected + * @arg ADC_Channel_9: ADC Channel9 selected + * @arg ADC_Channel_10: ADC Channel10 selected + * @arg ADC_Channel_11: ADC Channel11 selected + * @arg ADC_Channel_12: ADC Channel12 selected + * @arg ADC_Channel_13: ADC Channel13 selected + * @arg ADC_Channel_14: ADC Channel14 selected + * @arg ADC_Channel_15: ADC Channel15 selected + * @arg ADC_Channel_16: ADC Channel16 selected + * @arg ADC_Channel_17: ADC Channel17 selected + * @arg ADC_Channel_18: ADC Channel18 selected + * @param Rank: The rank in the injected group sequencer. + * This parameter must be between 1 to 4. + * @param ADC_SampleTime: The sample time value to be set for the selected channel. + * This parameter can be one of the following values: + * @arg ADC_SampleTime_3Cycles: Sample time equal to 3 cycles + * @arg ADC_SampleTime_15Cycles: Sample time equal to 15 cycles + * @arg ADC_SampleTime_28Cycles: Sample time equal to 28 cycles + * @arg ADC_SampleTime_56Cycles: Sample time equal to 56 cycles + * @arg ADC_SampleTime_84Cycles: Sample time equal to 84 cycles + * @arg ADC_SampleTime_112Cycles: Sample time equal to 112 cycles + * @arg ADC_SampleTime_144Cycles: Sample time equal to 144 cycles + * @arg ADC_SampleTime_480Cycles: Sample time equal to 480 cycles + * @retval None + */ +void ADC_InjectedChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime) +{ + uint32_t tmpreg1 = 0, tmpreg2 = 0, tmpreg3 = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_CHANNEL(ADC_Channel)); + assert_param(IS_ADC_INJECTED_RANK(Rank)); + assert_param(IS_ADC_SAMPLE_TIME(ADC_SampleTime)); + /* if ADC_Channel_10 ... ADC_Channel_18 is selected */ + if (ADC_Channel > ADC_Channel_9) + { + /* Get the old register value */ + tmpreg1 = ADCx->SMPR1; + /* Calculate the mask to clear */ + tmpreg2 = SMPR1_SMP_SET << (3*(ADC_Channel - 10)); + /* Clear the old sample time */ + tmpreg1 &= ~tmpreg2; + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_SampleTime << (3*(ADC_Channel - 10)); + /* Set the new sample time */ + tmpreg1 |= tmpreg2; + /* Store the new register value */ + ADCx->SMPR1 = tmpreg1; + } + else /* ADC_Channel include in ADC_Channel_[0..9] */ + { + /* Get the old register value */ + tmpreg1 = ADCx->SMPR2; + /* Calculate the mask to clear */ + tmpreg2 = SMPR2_SMP_SET << (3 * ADC_Channel); + /* Clear the old sample time */ + tmpreg1 &= ~tmpreg2; + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_SampleTime << (3 * ADC_Channel); + /* Set the new sample time */ + tmpreg1 |= tmpreg2; + /* Store the new register value */ + ADCx->SMPR2 = tmpreg1; + } + /* Rank configuration */ + /* Get the old register value */ + tmpreg1 = ADCx->JSQR; + /* Get JL value: Number = JL+1 */ + tmpreg3 = (tmpreg1 & JSQR_JL_SET)>> 20; + /* Calculate the mask to clear: ((Rank-1)+(4-JL-1)) */ + tmpreg2 = JSQR_JSQ_SET << (5 * (uint8_t)((Rank + 3) - (tmpreg3 + 1))); + /* Clear the old JSQx bits for the selected rank */ + tmpreg1 &= ~tmpreg2; + /* Calculate the mask to set: ((Rank-1)+(4-JL-1)) */ + tmpreg2 = (uint32_t)ADC_Channel << (5 * (uint8_t)((Rank + 3) - (tmpreg3 + 1))); + /* Set the JSQx bits for the selected rank */ + tmpreg1 |= tmpreg2; + /* Store the new register value */ + ADCx->JSQR = tmpreg1; +} + +/** + * @brief Configures the sequencer length for injected channels + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param Length: The sequencer length. + * This parameter must be a number between 1 to 4. + * @retval None + */ +void ADC_InjectedSequencerLengthConfig(ADC_TypeDef* ADCx, uint8_t Length) +{ + uint32_t tmpreg1 = 0; + uint32_t tmpreg2 = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_INJECTED_LENGTH(Length)); + + /* Get the old register value */ + tmpreg1 = ADCx->JSQR; + + /* Clear the old injected sequence length JL bits */ + tmpreg1 &= JSQR_JL_RESET; + + /* Set the injected sequence length JL bits */ + tmpreg2 = Length - 1; + tmpreg1 |= tmpreg2 << 20; + + /* Store the new register value */ + ADCx->JSQR = tmpreg1; +} + +/** + * @brief Set the injected channels conversion value offset + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_InjectedChannel: the ADC injected channel to set its offset. + * This parameter can be one of the following values: + * @arg ADC_InjectedChannel_1: Injected Channel1 selected + * @arg ADC_InjectedChannel_2: Injected Channel2 selected + * @arg ADC_InjectedChannel_3: Injected Channel3 selected + * @arg ADC_InjectedChannel_4: Injected Channel4 selected + * @param Offset: the offset value for the selected ADC injected channel + * This parameter must be a 12bit value. + * @retval None + */ +void ADC_SetInjectedOffset(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel, uint16_t Offset) +{ + __IO uint32_t tmp = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_INJECTED_CHANNEL(ADC_InjectedChannel)); + assert_param(IS_ADC_OFFSET(Offset)); + + tmp = (uint32_t)ADCx; + tmp += ADC_InjectedChannel; + + /* Set the selected injected channel data offset */ + *(__IO uint32_t *) tmp = (uint32_t)Offset; +} + + /** + * @brief Configures the ADCx external trigger for injected channels conversion. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_ExternalTrigInjecConv: specifies the ADC trigger to start injected conversion. + * This parameter can be one of the following values: + * @arg ADC_ExternalTrigInjecConv_T1_CC4: Timer1 capture compare4 selected + * @arg ADC_ExternalTrigInjecConv_T1_TRGO: Timer1 TRGO event selected + * @arg ADC_ExternalTrigInjecConv_T2_CC1: Timer2 capture compare1 selected + * @arg ADC_ExternalTrigInjecConv_T2_TRGO: Timer2 TRGO event selected + * @arg ADC_ExternalTrigInjecConv_T3_CC2: Timer3 capture compare2 selected + * @arg ADC_ExternalTrigInjecConv_T3_CC4: Timer3 capture compare4 selected + * @arg ADC_ExternalTrigInjecConv_T4_CC1: Timer4 capture compare1 selected + * @arg ADC_ExternalTrigInjecConv_T4_CC2: Timer4 capture compare2 selected + * @arg ADC_ExternalTrigInjecConv_T4_CC3: Timer4 capture compare3 selected + * @arg ADC_ExternalTrigInjecConv_T4_TRGO: Timer4 TRGO event selected + * @arg ADC_ExternalTrigInjecConv_T5_CC4: Timer5 capture compare4 selected + * @arg ADC_ExternalTrigInjecConv_T5_TRGO: Timer5 TRGO event selected + * @arg ADC_ExternalTrigInjecConv_T8_CC2: Timer8 capture compare2 selected + * @arg ADC_ExternalTrigInjecConv_T8_CC3: Timer8 capture compare3 selected + * @arg ADC_ExternalTrigInjecConv_T8_CC4: Timer8 capture compare4 selected + * @arg ADC_ExternalTrigInjecConv_Ext_IT15: External interrupt line 15 event selected + * @retval None + */ +void ADC_ExternalTrigInjectedConvConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConv) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_EXT_INJEC_TRIG(ADC_ExternalTrigInjecConv)); + + /* Get the old register value */ + tmpreg = ADCx->CR2; + + /* Clear the old external event selection for injected group */ + tmpreg &= CR2_JEXTSEL_RESET; + + /* Set the external event selection for injected group */ + tmpreg |= ADC_ExternalTrigInjecConv; + + /* Store the new register value */ + ADCx->CR2 = tmpreg; +} + +/** + * @brief Configures the ADCx external trigger edge for injected channels conversion. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_ExternalTrigInjecConvEdge: specifies the ADC external trigger edge + * to start injected conversion. + * This parameter can be one of the following values: + * @arg ADC_ExternalTrigInjecConvEdge_None: external trigger disabled for + * injected conversion + * @arg ADC_ExternalTrigInjecConvEdge_Rising: detection on rising edge + * @arg ADC_ExternalTrigInjecConvEdge_Falling: detection on falling edge + * @arg ADC_ExternalTrigInjecConvEdge_RisingFalling: detection on both rising + * and falling edge + * @retval None + */ +void ADC_ExternalTrigInjectedConvEdgeConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConvEdge) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_EXT_INJEC_TRIG_EDGE(ADC_ExternalTrigInjecConvEdge)); + /* Get the old register value */ + tmpreg = ADCx->CR2; + /* Clear the old external trigger edge for injected group */ + tmpreg &= CR2_JEXTEN_RESET; + /* Set the new external trigger edge for injected group */ + tmpreg |= ADC_ExternalTrigInjecConvEdge; + /* Store the new register value */ + ADCx->CR2 = tmpreg; +} + +/** + * @brief Enables the selected ADC software start conversion of the injected channels. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval None + */ +void ADC_SoftwareStartInjectedConv(ADC_TypeDef* ADCx) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + /* Enable the selected ADC conversion for injected group */ + ADCx->CR2 |= (uint32_t)ADC_CR2_JSWSTART; +} + +/** + * @brief Gets the selected ADC Software start injected conversion Status. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval The new state of ADC software start injected conversion (SET or RESET). + */ +FlagStatus ADC_GetSoftwareStartInjectedConvCmdStatus(ADC_TypeDef* ADCx) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + + /* Check the status of JSWSTART bit */ + if ((ADCx->CR2 & ADC_CR2_JSWSTART) != (uint32_t)RESET) + { + /* JSWSTART bit is set */ + bitstatus = SET; + } + else + { + /* JSWSTART bit is reset */ + bitstatus = RESET; + } + /* Return the JSWSTART bit status */ + return bitstatus; +} + +/** + * @brief Enables or disables the selected ADC automatic injected group + * conversion after regular one. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC auto injected conversion + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_AutoInjectedConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC automatic injected group conversion */ + ADCx->CR1 |= (uint32_t)ADC_CR1_JAUTO; + } + else + { + /* Disable the selected ADC automatic injected group conversion */ + ADCx->CR1 &= (uint32_t)(~ADC_CR1_JAUTO); + } +} + +/** + * @brief Enables or disables the discontinuous mode for injected group + * channel for the specified ADC + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC discontinuous mode on injected + * group channel. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_InjectedDiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC injected discontinuous mode */ + ADCx->CR1 |= (uint32_t)ADC_CR1_JDISCEN; + } + else + { + /* Disable the selected ADC injected discontinuous mode */ + ADCx->CR1 &= (uint32_t)(~ADC_CR1_JDISCEN); + } +} + +/** + * @brief Returns the ADC injected channel conversion result + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_InjectedChannel: the converted ADC injected channel. + * This parameter can be one of the following values: + * @arg ADC_InjectedChannel_1: Injected Channel1 selected + * @arg ADC_InjectedChannel_2: Injected Channel2 selected + * @arg ADC_InjectedChannel_3: Injected Channel3 selected + * @arg ADC_InjectedChannel_4: Injected Channel4 selected + * @retval The Data conversion value. + */ +uint16_t ADC_GetInjectedConversionValue(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_INJECTED_CHANNEL(ADC_InjectedChannel)); + + tmp = (uint32_t)ADCx; + tmp += ADC_InjectedChannel + JDR_OFFSET; + + /* Returns the selected injected channel conversion data value */ + return (uint16_t) (*(__IO uint32_t*) tmp); +} +/** + * @} + */ + +/** @defgroup ADC_Group7 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the ADC Interrupts and + to get the status and clear flags and Interrupts pending bits. + + Each ADC provides 4 Interrupts sources and 6 Flags which can be divided into + 3 groups: + + I. Flags and Interrupts for ADC regular channels + ================================================= + Flags : + ---------- + 1. ADC_FLAG_OVR : Overrun detection when regular converted data are lost + + 2. ADC_FLAG_EOC : Regular channel end of conversion ==> to indicate (depending + on EOCS bit, managed by ADC_EOCOnEachRegularChannelCmd() ) the end of: + ==> a regular CHANNEL conversion + ==> sequence of regular GROUP conversions . + + 3. ADC_FLAG_STRT: Regular channel start ==> to indicate when regular CHANNEL + conversion starts. + + Interrupts : + ------------ + 1. ADC_IT_OVR : specifies the interrupt source for Overrun detection event. + 2. ADC_IT_EOC : specifies the interrupt source for Regular channel end of + conversion event. + + + II. Flags and Interrupts for ADC Injected channels + ================================================= + Flags : + ---------- + 1. ADC_FLAG_JEOC : Injected channel end of conversion ==> to indicate at + the end of injected GROUP conversion + + 2. ADC_FLAG_JSTRT: Injected channel start ==> to indicate hardware when + injected GROUP conversion starts. + + Interrupts : + ------------ + 1. ADC_IT_JEOC : specifies the interrupt source for Injected channel end of + conversion event. + + III. General Flags and Interrupts for the ADC + ================================================= + Flags : + ---------- + 1. ADC_FLAG_AWD: Analog watchdog ==> to indicate if the converted voltage + crosses the programmed thresholds values. + + Interrupts : + ------------ + 1. ADC_IT_AWD : specifies the interrupt source for Analog watchdog event. + + + The user should identify which mode will be used in his application to manage + the ADC controller events: Polling mode or Interrupt mode. + + In the Polling Mode it is advised to use the following functions: + - ADC_GetFlagStatus() : to check if flags events occur. + - ADC_ClearFlag() : to clear the flags events. + + In the Interrupt Mode it is advised to use the following functions: + - ADC_ITConfig() : to enable or disable the interrupt source. + - ADC_GetITStatus() : to check if Interrupt occurs. + - ADC_ClearITPendingBit() : to clear the Interrupt pending Bit + (corresponding Flag). +@endverbatim + * @{ + */ +/** + * @brief Enables or disables the specified ADC interrupts. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_IT: specifies the ADC interrupt sources to be enabled or disabled. + * This parameter can be one of the following values: + * @arg ADC_IT_EOC: End of conversion interrupt mask + * @arg ADC_IT_AWD: Analog watchdog interrupt mask + * @arg ADC_IT_JEOC: End of injected conversion interrupt mask + * @arg ADC_IT_OVR: Overrun interrupt enable + * @param NewState: new state of the specified ADC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_ITConfig(ADC_TypeDef* ADCx, uint16_t ADC_IT, FunctionalState NewState) +{ + uint32_t itmask = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_ADC_IT(ADC_IT)); + + /* Get the ADC IT index */ + itmask = (uint8_t)ADC_IT; + itmask = (uint32_t)0x01 << itmask; + + if (NewState != DISABLE) + { + /* Enable the selected ADC interrupts */ + ADCx->CR1 |= itmask; + } + else + { + /* Disable the selected ADC interrupts */ + ADCx->CR1 &= (~(uint32_t)itmask); + } +} + +/** + * @brief Checks whether the specified ADC flag is set or not. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg ADC_FLAG_AWD: Analog watchdog flag + * @arg ADC_FLAG_EOC: End of conversion flag + * @arg ADC_FLAG_JEOC: End of injected group conversion flag + * @arg ADC_FLAG_JSTRT: Start of injected group conversion flag + * @arg ADC_FLAG_STRT: Start of regular group conversion flag + * @arg ADC_FLAG_OVR: Overrun flag + * @retval The new state of ADC_FLAG (SET or RESET). + */ +FlagStatus ADC_GetFlagStatus(ADC_TypeDef* ADCx, uint8_t ADC_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_GET_FLAG(ADC_FLAG)); + + /* Check the status of the specified ADC flag */ + if ((ADCx->SR & ADC_FLAG) != (uint8_t)RESET) + { + /* ADC_FLAG is set */ + bitstatus = SET; + } + else + { + /* ADC_FLAG is reset */ + bitstatus = RESET; + } + /* Return the ADC_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the ADCx's pending flags. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg ADC_FLAG_AWD: Analog watchdog flag + * @arg ADC_FLAG_EOC: End of conversion flag + * @arg ADC_FLAG_JEOC: End of injected group conversion flag + * @arg ADC_FLAG_JSTRT: Start of injected group conversion flag + * @arg ADC_FLAG_STRT: Start of regular group conversion flag + * @arg ADC_FLAG_OVR: Overrun flag + * @retval None + */ +void ADC_ClearFlag(ADC_TypeDef* ADCx, uint8_t ADC_FLAG) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_CLEAR_FLAG(ADC_FLAG)); + + /* Clear the selected ADC flags */ + ADCx->SR = ~(uint32_t)ADC_FLAG; +} + +/** + * @brief Checks whether the specified ADC interrupt has occurred or not. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_IT: specifies the ADC interrupt source to check. + * This parameter can be one of the following values: + * @arg ADC_IT_EOC: End of conversion interrupt mask + * @arg ADC_IT_AWD: Analog watchdog interrupt mask + * @arg ADC_IT_JEOC: End of injected conversion interrupt mask + * @arg ADC_IT_OVR: Overrun interrupt mask + * @retval The new state of ADC_IT (SET or RESET). + */ +ITStatus ADC_GetITStatus(ADC_TypeDef* ADCx, uint16_t ADC_IT) +{ + ITStatus bitstatus = RESET; + uint32_t itmask = 0, enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_IT(ADC_IT)); + + /* Get the ADC IT index */ + itmask = ADC_IT >> 8; + + /* Get the ADC_IT enable bit status */ + enablestatus = (ADCx->CR1 & ((uint32_t)0x01 << (uint8_t)ADC_IT)) ; + + /* Check the status of the specified ADC interrupt */ + if (((ADCx->SR & itmask) != (uint32_t)RESET) && enablestatus) + { + /* ADC_IT is set */ + bitstatus = SET; + } + else + { + /* ADC_IT is reset */ + bitstatus = RESET; + } + /* Return the ADC_IT status */ + return bitstatus; +} + +/** + * @brief Clears the ADCx's interrupt pending bits. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_IT: specifies the ADC interrupt pending bit to clear. + * This parameter can be one of the following values: + * @arg ADC_IT_EOC: End of conversion interrupt mask + * @arg ADC_IT_AWD: Analog watchdog interrupt mask + * @arg ADC_IT_JEOC: End of injected conversion interrupt mask + * @arg ADC_IT_OVR: Overrun interrupt mask + * @retval None + */ +void ADC_ClearITPendingBit(ADC_TypeDef* ADCx, uint16_t ADC_IT) +{ + uint8_t itmask = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_IT(ADC_IT)); + /* Get the ADC IT index */ + itmask = (uint8_t)(ADC_IT >> 8); + /* Clear the selected ADC interrupt pending bits */ + ADCx->SR = ~(uint32_t)itmask; +} +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_can.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_can.c new file mode 100644 index 00000000..5198acee --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_can.c @@ -0,0 +1,1704 @@ +/** + ****************************************************************************** + * @file stm32f2xx_can.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Controller area network (CAN) peripheral: + * - Initialization and Configuration + * - CAN Frames Transmission + * - CAN Frames Reception + * - Operation modes switch + * - Error management + * - Interrupts and flags + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + + * 1. Enable the CAN controller interface clock using + * RCC_APB1PeriphClockCmd(RCC_APB1Periph_CAN1, ENABLE); for CAN1 + * and RCC_APB1PeriphClockCmd(RCC_APB1Periph_CAN2, ENABLE); for CAN2 + * @note In case you are using CAN2 only, you have to enable the CAN1 clock. + * + * 2. CAN pins configuration + * - Enable the clock for the CAN GPIOs using the following function: + * RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + * - Connect the involved CAN pins to AF9 using the following function + * GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_CANx); + * - Configure these CAN pins in alternate function mode by calling + * the function GPIO_Init(); + * + * 3. Initialise and configure the CAN using CAN_Init() and + * CAN_FilterInit() functions. + * + * 4. Transmit the desired CAN frame using CAN_Transmit() function. + * + * 5. Check the transmission of a CAN frame using CAN_TransmitStatus() + * function. + * + * 6. Cancel the transmission of a CAN frame using CAN_CancelTransmit() + * function. + * + * 7. Receive a CAN frame using CAN_Recieve() function. + * + * 8. Release the receive FIFOs using CAN_FIFORelease() function. + * + * 9. Return the number of pending received frames using + * CAN_MessagePending() function. + * + * 10. To control CAN events you can use one of the following two methods: + * - Check on CAN flags using the CAN_GetFlagStatus() function. + * - Use CAN interrupts through the function CAN_ITConfig() at + * initialization phase and CAN_GetITStatus() function into + * interrupt routines to check if the event has occurred or not. + * After checking on a flag you should clear it using CAN_ClearFlag() + * function. And after checking on an interrupt event you should + * clear it using CAN_ClearITPendingBit() function. + * + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_can.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CAN + * @brief CAN driver modules + * @{ + */ +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* CAN Master Control Register bits */ +#define MCR_DBF ((uint32_t)0x00010000) /* software master reset */ + +/* CAN Mailbox Transmit Request */ +#define TMIDxR_TXRQ ((uint32_t)0x00000001) /* Transmit mailbox request */ + +/* CAN Filter Master Register bits */ +#define FMR_FINIT ((uint32_t)0x00000001) /* Filter init mode */ + +/* Time out for INAK bit */ +#define INAK_TIMEOUT ((uint32_t)0x0000FFFF) +/* Time out for SLAK bit */ +#define SLAK_TIMEOUT ((uint32_t)0x0000FFFF) + +/* Flags in TSR register */ +#define CAN_FLAGS_TSR ((uint32_t)0x08000000) +/* Flags in RF1R register */ +#define CAN_FLAGS_RF1R ((uint32_t)0x04000000) +/* Flags in RF0R register */ +#define CAN_FLAGS_RF0R ((uint32_t)0x02000000) +/* Flags in MSR register */ +#define CAN_FLAGS_MSR ((uint32_t)0x01000000) +/* Flags in ESR register */ +#define CAN_FLAGS_ESR ((uint32_t)0x00F00000) + +/* Mailboxes definition */ +#define CAN_TXMAILBOX_0 ((uint8_t)0x00) +#define CAN_TXMAILBOX_1 ((uint8_t)0x01) +#define CAN_TXMAILBOX_2 ((uint8_t)0x02) + +#define CAN_MODE_MASK ((uint32_t) 0x00000003) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ +static ITStatus CheckITStatus(uint32_t CAN_Reg, uint32_t It_Bit); + +/** @defgroup CAN_Private_Functions + * @{ + */ + +/** @defgroup CAN_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to + - Initialize the CAN peripherals : Prescaler, operating mode, the maximum number + of time quanta to perform resynchronization, the number of time quanta in + Bit Segment 1 and 2 and many other modes. + Refer to @ref CAN_InitTypeDef for more details. + - Configures the CAN reception filter. + - Select the start bank filter for slave CAN. + - Enables or disables the Debug Freeze mode for CAN + - Enables or disables the CAN Time Trigger Operation communication mode + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the CAN peripheral registers to their default reset values. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @retval None. + */ +void CAN_DeInit(CAN_TypeDef* CANx) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + if (CANx == CAN1) + { + /* Enable CAN1 reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, ENABLE); + /* Release CAN1 from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, DISABLE); + } + else + { + /* Enable CAN2 reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN2, ENABLE); + /* Release CAN2 from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN2, DISABLE); + } +} + +/** + * @brief Initializes the CAN peripheral according to the specified + * parameters in the CAN_InitStruct. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param CAN_InitStruct: pointer to a CAN_InitTypeDef structure that contains + * the configuration information for the CAN peripheral. + * @retval Constant indicates initialization succeed which will be + * CAN_InitStatus_Failed or CAN_InitStatus_Success. + */ +uint8_t CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct) +{ + uint8_t InitStatus = CAN_InitStatus_Failed; + uint32_t wait_ack = 0x00000000; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_TTCM)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_ABOM)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_AWUM)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_NART)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_RFLM)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_TXFP)); + assert_param(IS_CAN_MODE(CAN_InitStruct->CAN_Mode)); + assert_param(IS_CAN_SJW(CAN_InitStruct->CAN_SJW)); + assert_param(IS_CAN_BS1(CAN_InitStruct->CAN_BS1)); + assert_param(IS_CAN_BS2(CAN_InitStruct->CAN_BS2)); + assert_param(IS_CAN_PRESCALER(CAN_InitStruct->CAN_Prescaler)); + + /* Exit from sleep mode */ + CANx->MCR &= (~(uint32_t)CAN_MCR_SLEEP); + + /* Request initialisation */ + CANx->MCR |= CAN_MCR_INRQ ; + + /* Wait the acknowledge */ + while (((CANx->MSR & CAN_MSR_INAK) != CAN_MSR_INAK) && (wait_ack != INAK_TIMEOUT)) + { + wait_ack++; + } + + /* Check acknowledge */ + if ((CANx->MSR & CAN_MSR_INAK) != CAN_MSR_INAK) + { + InitStatus = CAN_InitStatus_Failed; + } + else + { + /* Set the time triggered communication mode */ + if (CAN_InitStruct->CAN_TTCM == ENABLE) + { + CANx->MCR |= CAN_MCR_TTCM; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_TTCM; + } + + /* Set the automatic bus-off management */ + if (CAN_InitStruct->CAN_ABOM == ENABLE) + { + CANx->MCR |= CAN_MCR_ABOM; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_ABOM; + } + + /* Set the automatic wake-up mode */ + if (CAN_InitStruct->CAN_AWUM == ENABLE) + { + CANx->MCR |= CAN_MCR_AWUM; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_AWUM; + } + + /* Set the no automatic retransmission */ + if (CAN_InitStruct->CAN_NART == ENABLE) + { + CANx->MCR |= CAN_MCR_NART; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_NART; + } + + /* Set the receive FIFO locked mode */ + if (CAN_InitStruct->CAN_RFLM == ENABLE) + { + CANx->MCR |= CAN_MCR_RFLM; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_RFLM; + } + + /* Set the transmit FIFO priority */ + if (CAN_InitStruct->CAN_TXFP == ENABLE) + { + CANx->MCR |= CAN_MCR_TXFP; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_TXFP; + } + + /* Set the bit timing register */ + CANx->BTR = (uint32_t)((uint32_t)CAN_InitStruct->CAN_Mode << 30) | \ + ((uint32_t)CAN_InitStruct->CAN_SJW << 24) | \ + ((uint32_t)CAN_InitStruct->CAN_BS1 << 16) | \ + ((uint32_t)CAN_InitStruct->CAN_BS2 << 20) | \ + ((uint32_t)CAN_InitStruct->CAN_Prescaler - 1); + + /* Request leave initialisation */ + CANx->MCR &= ~(uint32_t)CAN_MCR_INRQ; + + /* Wait the acknowledge */ + wait_ack = 0; + + while (((CANx->MSR & CAN_MSR_INAK) == CAN_MSR_INAK) && (wait_ack != INAK_TIMEOUT)) + { + wait_ack++; + } + + /* ...and check acknowledged */ + if ((CANx->MSR & CAN_MSR_INAK) == CAN_MSR_INAK) + { + InitStatus = CAN_InitStatus_Failed; + } + else + { + InitStatus = CAN_InitStatus_Success ; + } + } + + /* At this step, return the status of initialization */ + return InitStatus; +} + +/** + * @brief Configures the CAN reception filter according to the specified + * parameters in the CAN_FilterInitStruct. + * @param CAN_FilterInitStruct: pointer to a CAN_FilterInitTypeDef structure that + * contains the configuration information. + * @retval None + */ +void CAN_FilterInit(CAN_FilterInitTypeDef* CAN_FilterInitStruct) +{ + uint32_t filter_number_bit_pos = 0; + /* Check the parameters */ + assert_param(IS_CAN_FILTER_NUMBER(CAN_FilterInitStruct->CAN_FilterNumber)); + assert_param(IS_CAN_FILTER_MODE(CAN_FilterInitStruct->CAN_FilterMode)); + assert_param(IS_CAN_FILTER_SCALE(CAN_FilterInitStruct->CAN_FilterScale)); + assert_param(IS_CAN_FILTER_FIFO(CAN_FilterInitStruct->CAN_FilterFIFOAssignment)); + assert_param(IS_FUNCTIONAL_STATE(CAN_FilterInitStruct->CAN_FilterActivation)); + + filter_number_bit_pos = ((uint32_t)1) << CAN_FilterInitStruct->CAN_FilterNumber; + + /* Initialisation mode for the filter */ + CAN1->FMR |= FMR_FINIT; + + /* Filter Deactivation */ + CAN1->FA1R &= ~(uint32_t)filter_number_bit_pos; + + /* Filter Scale */ + if (CAN_FilterInitStruct->CAN_FilterScale == CAN_FilterScale_16bit) + { + /* 16-bit scale for the filter */ + CAN1->FS1R &= ~(uint32_t)filter_number_bit_pos; + + /* First 16-bit identifier and First 16-bit mask */ + /* Or First 16-bit identifier and Second 16-bit identifier */ + CAN1->sFilterRegister[CAN_FilterInitStruct->CAN_FilterNumber].FR1 = + ((0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterMaskIdLow) << 16) | + (0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterIdLow); + + /* Second 16-bit identifier and Second 16-bit mask */ + /* Or Third 16-bit identifier and Fourth 16-bit identifier */ + CAN1->sFilterRegister[CAN_FilterInitStruct->CAN_FilterNumber].FR2 = + ((0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterMaskIdHigh) << 16) | + (0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterIdHigh); + } + + if (CAN_FilterInitStruct->CAN_FilterScale == CAN_FilterScale_32bit) + { + /* 32-bit scale for the filter */ + CAN1->FS1R |= filter_number_bit_pos; + /* 32-bit identifier or First 32-bit identifier */ + CAN1->sFilterRegister[CAN_FilterInitStruct->CAN_FilterNumber].FR1 = + ((0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterIdHigh) << 16) | + (0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterIdLow); + /* 32-bit mask or Second 32-bit identifier */ + CAN1->sFilterRegister[CAN_FilterInitStruct->CAN_FilterNumber].FR2 = + ((0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterMaskIdHigh) << 16) | + (0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterMaskIdLow); + } + + /* Filter Mode */ + if (CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdMask) + { + /*Id/Mask mode for the filter*/ + CAN1->FM1R &= ~(uint32_t)filter_number_bit_pos; + } + else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */ + { + /*Identifier list mode for the filter*/ + CAN1->FM1R |= (uint32_t)filter_number_bit_pos; + } + + /* Filter FIFO assignment */ + if (CAN_FilterInitStruct->CAN_FilterFIFOAssignment == CAN_Filter_FIFO0) + { + /* FIFO 0 assignation for the filter */ + CAN1->FFA1R &= ~(uint32_t)filter_number_bit_pos; + } + + if (CAN_FilterInitStruct->CAN_FilterFIFOAssignment == CAN_Filter_FIFO1) + { + /* FIFO 1 assignation for the filter */ + CAN1->FFA1R |= (uint32_t)filter_number_bit_pos; + } + + /* Filter activation */ + if (CAN_FilterInitStruct->CAN_FilterActivation == ENABLE) + { + CAN1->FA1R |= filter_number_bit_pos; + } + + /* Leave the initialisation mode for the filter */ + CAN1->FMR &= ~FMR_FINIT; +} + +/** + * @brief Fills each CAN_InitStruct member with its default value. + * @param CAN_InitStruct: pointer to a CAN_InitTypeDef structure which ill be initialized. + * @retval None + */ +void CAN_StructInit(CAN_InitTypeDef* CAN_InitStruct) +{ + /* Reset CAN init structure parameters values */ + + /* Initialize the time triggered communication mode */ + CAN_InitStruct->CAN_TTCM = DISABLE; + + /* Initialize the automatic bus-off management */ + CAN_InitStruct->CAN_ABOM = DISABLE; + + /* Initialize the automatic wake-up mode */ + CAN_InitStruct->CAN_AWUM = DISABLE; + + /* Initialize the no automatic retransmission */ + CAN_InitStruct->CAN_NART = DISABLE; + + /* Initialize the receive FIFO locked mode */ + CAN_InitStruct->CAN_RFLM = DISABLE; + + /* Initialize the transmit FIFO priority */ + CAN_InitStruct->CAN_TXFP = DISABLE; + + /* Initialize the CAN_Mode member */ + CAN_InitStruct->CAN_Mode = CAN_Mode_Normal; + + /* Initialize the CAN_SJW member */ + CAN_InitStruct->CAN_SJW = CAN_SJW_1tq; + + /* Initialize the CAN_BS1 member */ + CAN_InitStruct->CAN_BS1 = CAN_BS1_4tq; + + /* Initialize the CAN_BS2 member */ + CAN_InitStruct->CAN_BS2 = CAN_BS2_3tq; + + /* Initialize the CAN_Prescaler member */ + CAN_InitStruct->CAN_Prescaler = 1; +} + +/** + * @brief Select the start bank filter for slave CAN. + * @param CAN_BankNumber: Select the start slave bank filter from 1..27. + * @retval None + */ +void CAN_SlaveStartBank(uint8_t CAN_BankNumber) +{ + /* Check the parameters */ + assert_param(IS_CAN_BANKNUMBER(CAN_BankNumber)); + + /* Enter Initialisation mode for the filter */ + CAN1->FMR |= FMR_FINIT; + + /* Select the start slave bank */ + CAN1->FMR &= (uint32_t)0xFFFFC0F1 ; + CAN1->FMR |= (uint32_t)(CAN_BankNumber)<<8; + + /* Leave Initialisation mode for the filter */ + CAN1->FMR &= ~FMR_FINIT; +} + +/** + * @brief Enables or disables the DBG Freeze for CAN. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param NewState: new state of the CAN peripheral. + * This parameter can be: ENABLE (CAN reception/transmission is frozen + * during debug. Reception FIFOs can still be accessed/controlled normally) + * or DISABLE (CAN is working during debug). + * @retval None + */ +void CAN_DBGFreeze(CAN_TypeDef* CANx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable Debug Freeze */ + CANx->MCR |= MCR_DBF; + } + else + { + /* Disable Debug Freeze */ + CANx->MCR &= ~MCR_DBF; + } +} + + +/** + * @brief Enables or disables the CAN Time TriggerOperation communication mode. + * @note DLC must be programmed as 8 in order Time Stamp (2 bytes) to be + * sent over the CAN bus. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param NewState: Mode new state. This parameter can be: ENABLE or DISABLE. + * When enabled, Time stamp (TIME[15:0]) value is sent in the last two + * data bytes of the 8-byte message: TIME[7:0] in data byte 6 and TIME[15:8] + * in data byte 7. + * @retval None + */ +void CAN_TTComModeCmd(CAN_TypeDef* CANx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the TTCM mode */ + CANx->MCR |= CAN_MCR_TTCM; + + /* Set TGT bits */ + CANx->sTxMailBox[0].TDTR |= ((uint32_t)CAN_TDT0R_TGT); + CANx->sTxMailBox[1].TDTR |= ((uint32_t)CAN_TDT1R_TGT); + CANx->sTxMailBox[2].TDTR |= ((uint32_t)CAN_TDT2R_TGT); + } + else + { + /* Disable the TTCM mode */ + CANx->MCR &= (uint32_t)(~(uint32_t)CAN_MCR_TTCM); + + /* Reset TGT bits */ + CANx->sTxMailBox[0].TDTR &= ((uint32_t)~CAN_TDT0R_TGT); + CANx->sTxMailBox[1].TDTR &= ((uint32_t)~CAN_TDT1R_TGT); + CANx->sTxMailBox[2].TDTR &= ((uint32_t)~CAN_TDT2R_TGT); + } +} +/** + * @} + */ + + +/** @defgroup CAN_Group2 CAN Frames Transmission functions + * @brief CAN Frames Transmission functions + * +@verbatim + =============================================================================== + CAN Frames Transmission functions + =============================================================================== + This section provides functions allowing to + - Initiate and transmit a CAN frame message (if there is an empty mailbox). + - Check the transmission status of a CAN Frame + - Cancel a transmit request + +@endverbatim + * @{ + */ + +/** + * @brief Initiates and transmits a CAN frame message. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param TxMessage: pointer to a structure which contains CAN Id, CAN DLC and CAN data. + * @retval The number of the mailbox that is used for transmission or + * CAN_TxStatus_NoMailBox if there is no empty mailbox. + */ +uint8_t CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage) +{ + uint8_t transmit_mailbox = 0; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_IDTYPE(TxMessage->IDE)); + assert_param(IS_CAN_RTR(TxMessage->RTR)); + assert_param(IS_CAN_DLC(TxMessage->DLC)); + + /* Select one empty transmit mailbox */ + if ((CANx->TSR&CAN_TSR_TME0) == CAN_TSR_TME0) + { + transmit_mailbox = 0; + } + else if ((CANx->TSR&CAN_TSR_TME1) == CAN_TSR_TME1) + { + transmit_mailbox = 1; + } + else if ((CANx->TSR&CAN_TSR_TME2) == CAN_TSR_TME2) + { + transmit_mailbox = 2; + } + else + { + transmit_mailbox = CAN_TxStatus_NoMailBox; + } + + if (transmit_mailbox != CAN_TxStatus_NoMailBox) + { + /* Set up the Id */ + CANx->sTxMailBox[transmit_mailbox].TIR &= TMIDxR_TXRQ; + if (TxMessage->IDE == CAN_Id_Standard) + { + assert_param(IS_CAN_STDID(TxMessage->StdId)); + CANx->sTxMailBox[transmit_mailbox].TIR |= ((TxMessage->StdId << 21) | \ + TxMessage->RTR); + } + else + { + assert_param(IS_CAN_EXTID(TxMessage->ExtId)); + CANx->sTxMailBox[transmit_mailbox].TIR |= ((TxMessage->ExtId << 3) | \ + TxMessage->IDE | \ + TxMessage->RTR); + } + + /* Set up the DLC */ + TxMessage->DLC &= (uint8_t)0x0000000F; + CANx->sTxMailBox[transmit_mailbox].TDTR &= (uint32_t)0xFFFFFFF0; + CANx->sTxMailBox[transmit_mailbox].TDTR |= TxMessage->DLC; + + /* Set up the data field */ + CANx->sTxMailBox[transmit_mailbox].TDLR = (((uint32_t)TxMessage->Data[3] << 24) | + ((uint32_t)TxMessage->Data[2] << 16) | + ((uint32_t)TxMessage->Data[1] << 8) | + ((uint32_t)TxMessage->Data[0])); + CANx->sTxMailBox[transmit_mailbox].TDHR = (((uint32_t)TxMessage->Data[7] << 24) | + ((uint32_t)TxMessage->Data[6] << 16) | + ((uint32_t)TxMessage->Data[5] << 8) | + ((uint32_t)TxMessage->Data[4])); + /* Request transmission */ + CANx->sTxMailBox[transmit_mailbox].TIR |= TMIDxR_TXRQ; + } + return transmit_mailbox; +} + +/** + * @brief Checks the transmission status of a CAN Frame. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param TransmitMailbox: the number of the mailbox that is used for transmission. + * @retval CAN_TxStatus_Ok if the CAN driver transmits the message, + * CAN_TxStatus_Failed in an other case. + */ +uint8_t CAN_TransmitStatus(CAN_TypeDef* CANx, uint8_t TransmitMailbox) +{ + uint32_t state = 0; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_TRANSMITMAILBOX(TransmitMailbox)); + + switch (TransmitMailbox) + { + case (CAN_TXMAILBOX_0): + state = CANx->TSR & (CAN_TSR_RQCP0 | CAN_TSR_TXOK0 | CAN_TSR_TME0); + break; + case (CAN_TXMAILBOX_1): + state = CANx->TSR & (CAN_TSR_RQCP1 | CAN_TSR_TXOK1 | CAN_TSR_TME1); + break; + case (CAN_TXMAILBOX_2): + state = CANx->TSR & (CAN_TSR_RQCP2 | CAN_TSR_TXOK2 | CAN_TSR_TME2); + break; + default: + state = CAN_TxStatus_Failed; + break; + } + switch (state) + { + /* transmit pending */ + case (0x0): state = CAN_TxStatus_Pending; + break; + /* transmit failed */ + case (CAN_TSR_RQCP0 | CAN_TSR_TME0): state = CAN_TxStatus_Failed; + break; + case (CAN_TSR_RQCP1 | CAN_TSR_TME1): state = CAN_TxStatus_Failed; + break; + case (CAN_TSR_RQCP2 | CAN_TSR_TME2): state = CAN_TxStatus_Failed; + break; + /* transmit succeeded */ + case (CAN_TSR_RQCP0 | CAN_TSR_TXOK0 | CAN_TSR_TME0):state = CAN_TxStatus_Ok; + break; + case (CAN_TSR_RQCP1 | CAN_TSR_TXOK1 | CAN_TSR_TME1):state = CAN_TxStatus_Ok; + break; + case (CAN_TSR_RQCP2 | CAN_TSR_TXOK2 | CAN_TSR_TME2):state = CAN_TxStatus_Ok; + break; + default: state = CAN_TxStatus_Failed; + break; + } + return (uint8_t) state; +} + +/** + * @brief Cancels a transmit request. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param Mailbox: Mailbox number. + * @retval None + */ +void CAN_CancelTransmit(CAN_TypeDef* CANx, uint8_t Mailbox) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_TRANSMITMAILBOX(Mailbox)); + /* abort transmission */ + switch (Mailbox) + { + case (CAN_TXMAILBOX_0): CANx->TSR |= CAN_TSR_ABRQ0; + break; + case (CAN_TXMAILBOX_1): CANx->TSR |= CAN_TSR_ABRQ1; + break; + case (CAN_TXMAILBOX_2): CANx->TSR |= CAN_TSR_ABRQ2; + break; + default: + break; + } +} +/** + * @} + */ + + +/** @defgroup CAN_Group3 CAN Frames Reception functions + * @brief CAN Frames Reception functions + * +@verbatim + =============================================================================== + CAN Frames Reception functions + =============================================================================== + This section provides functions allowing to + - Receive a correct CAN frame + - Release a specified receive FIFO (2 FIFOs are available) + - Return the number of the pending received CAN frames + +@endverbatim + * @{ + */ + +/** + * @brief Receives a correct CAN frame. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param FIFONumber: Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. + * @param RxMessage: pointer to a structure receive frame which contains CAN Id, + * CAN DLC, CAN data and FMI number. + * @retval None + */ +void CAN_Receive(CAN_TypeDef* CANx, uint8_t FIFONumber, CanRxMsg* RxMessage) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_FIFO(FIFONumber)); + /* Get the Id */ + RxMessage->IDE = (uint8_t)0x04 & CANx->sFIFOMailBox[FIFONumber].RIR; + if (RxMessage->IDE == CAN_Id_Standard) + { + RxMessage->StdId = (uint32_t)0x000007FF & (CANx->sFIFOMailBox[FIFONumber].RIR >> 21); + } + else + { + RxMessage->ExtId = (uint32_t)0x1FFFFFFF & (CANx->sFIFOMailBox[FIFONumber].RIR >> 3); + } + + RxMessage->RTR = (uint8_t)0x02 & CANx->sFIFOMailBox[FIFONumber].RIR; + /* Get the DLC */ + RxMessage->DLC = (uint8_t)0x0F & CANx->sFIFOMailBox[FIFONumber].RDTR; + /* Get the FMI */ + RxMessage->FMI = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDTR >> 8); + /* Get the data field */ + RxMessage->Data[0] = (uint8_t)0xFF & CANx->sFIFOMailBox[FIFONumber].RDLR; + RxMessage->Data[1] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDLR >> 8); + RxMessage->Data[2] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDLR >> 16); + RxMessage->Data[3] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDLR >> 24); + RxMessage->Data[4] = (uint8_t)0xFF & CANx->sFIFOMailBox[FIFONumber].RDHR; + RxMessage->Data[5] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDHR >> 8); + RxMessage->Data[6] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDHR >> 16); + RxMessage->Data[7] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDHR >> 24); + /* Release the FIFO */ + /* Release FIFO0 */ + if (FIFONumber == CAN_FIFO0) + { + CANx->RF0R |= CAN_RF0R_RFOM0; + } + /* Release FIFO1 */ + else /* FIFONumber == CAN_FIFO1 */ + { + CANx->RF1R |= CAN_RF1R_RFOM1; + } +} + +/** + * @brief Releases the specified receive FIFO. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param FIFONumber: FIFO to release, CAN_FIFO0 or CAN_FIFO1. + * @retval None + */ +void CAN_FIFORelease(CAN_TypeDef* CANx, uint8_t FIFONumber) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_FIFO(FIFONumber)); + /* Release FIFO0 */ + if (FIFONumber == CAN_FIFO0) + { + CANx->RF0R |= CAN_RF0R_RFOM0; + } + /* Release FIFO1 */ + else /* FIFONumber == CAN_FIFO1 */ + { + CANx->RF1R |= CAN_RF1R_RFOM1; + } +} + +/** + * @brief Returns the number of pending received messages. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param FIFONumber: Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. + * @retval NbMessage : which is the number of pending message. + */ +uint8_t CAN_MessagePending(CAN_TypeDef* CANx, uint8_t FIFONumber) +{ + uint8_t message_pending=0; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_FIFO(FIFONumber)); + if (FIFONumber == CAN_FIFO0) + { + message_pending = (uint8_t)(CANx->RF0R&(uint32_t)0x03); + } + else if (FIFONumber == CAN_FIFO1) + { + message_pending = (uint8_t)(CANx->RF1R&(uint32_t)0x03); + } + else + { + message_pending = 0; + } + return message_pending; +} +/** + * @} + */ + + +/** @defgroup CAN_Group4 CAN Operation modes functions + * @brief CAN Operation modes functions + * +@verbatim + =============================================================================== + CAN Operation modes functions + =============================================================================== + This section provides functions allowing to select the CAN Operation modes + - sleep mode + - normal mode + - initialization mode + +@endverbatim + * @{ + */ + + +/** + * @brief Selects the CAN Operation mode. + * @param CAN_OperatingMode: CAN Operating Mode. + * This parameter can be one of @ref CAN_OperatingMode_TypeDef enumeration. + * @retval status of the requested mode which can be + * - CAN_ModeStatus_Failed: CAN failed entering the specific mode + * - CAN_ModeStatus_Success: CAN Succeed entering the specific mode + */ +uint8_t CAN_OperatingModeRequest(CAN_TypeDef* CANx, uint8_t CAN_OperatingMode) +{ + uint8_t status = CAN_ModeStatus_Failed; + + /* Timeout for INAK or also for SLAK bits*/ + uint32_t timeout = INAK_TIMEOUT; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_OPERATING_MODE(CAN_OperatingMode)); + + if (CAN_OperatingMode == CAN_OperatingMode_Initialization) + { + /* Request initialisation */ + CANx->MCR = (uint32_t)((CANx->MCR & (uint32_t)(~(uint32_t)CAN_MCR_SLEEP)) | CAN_MCR_INRQ); + + /* Wait the acknowledge */ + while (((CANx->MSR & CAN_MODE_MASK) != CAN_MSR_INAK) && (timeout != 0)) + { + timeout--; + } + if ((CANx->MSR & CAN_MODE_MASK) != CAN_MSR_INAK) + { + status = CAN_ModeStatus_Failed; + } + else + { + status = CAN_ModeStatus_Success; + } + } + else if (CAN_OperatingMode == CAN_OperatingMode_Normal) + { + /* Request leave initialisation and sleep mode and enter Normal mode */ + CANx->MCR &= (uint32_t)(~(CAN_MCR_SLEEP|CAN_MCR_INRQ)); + + /* Wait the acknowledge */ + while (((CANx->MSR & CAN_MODE_MASK) != 0) && (timeout!=0)) + { + timeout--; + } + if ((CANx->MSR & CAN_MODE_MASK) != 0) + { + status = CAN_ModeStatus_Failed; + } + else + { + status = CAN_ModeStatus_Success; + } + } + else if (CAN_OperatingMode == CAN_OperatingMode_Sleep) + { + /* Request Sleep mode */ + CANx->MCR = (uint32_t)((CANx->MCR & (uint32_t)(~(uint32_t)CAN_MCR_INRQ)) | CAN_MCR_SLEEP); + + /* Wait the acknowledge */ + while (((CANx->MSR & CAN_MODE_MASK) != CAN_MSR_SLAK) && (timeout!=0)) + { + timeout--; + } + if ((CANx->MSR & CAN_MODE_MASK) != CAN_MSR_SLAK) + { + status = CAN_ModeStatus_Failed; + } + else + { + status = CAN_ModeStatus_Success; + } + } + else + { + status = CAN_ModeStatus_Failed; + } + + return (uint8_t) status; +} + +/** + * @brief Enters the Sleep (low power) mode. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @retval CAN_Sleep_Ok if sleep entered, CAN_Sleep_Failed otherwise. + */ +uint8_t CAN_Sleep(CAN_TypeDef* CANx) +{ + uint8_t sleepstatus = CAN_Sleep_Failed; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Request Sleep mode */ + CANx->MCR = (((CANx->MCR) & (uint32_t)(~(uint32_t)CAN_MCR_INRQ)) | CAN_MCR_SLEEP); + + /* Sleep mode status */ + if ((CANx->MSR & (CAN_MSR_SLAK|CAN_MSR_INAK)) == CAN_MSR_SLAK) + { + /* Sleep mode not entered */ + sleepstatus = CAN_Sleep_Ok; + } + /* return sleep mode status */ + return (uint8_t)sleepstatus; +} + +/** + * @brief Wakes up the CAN peripheral from sleep mode . + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @retval CAN_WakeUp_Ok if sleep mode left, CAN_WakeUp_Failed otherwise. + */ +uint8_t CAN_WakeUp(CAN_TypeDef* CANx) +{ + uint32_t wait_slak = SLAK_TIMEOUT; + uint8_t wakeupstatus = CAN_WakeUp_Failed; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Wake up request */ + CANx->MCR &= ~(uint32_t)CAN_MCR_SLEEP; + + /* Sleep mode status */ + while(((CANx->MSR & CAN_MSR_SLAK) == CAN_MSR_SLAK)&&(wait_slak!=0x00)) + { + wait_slak--; + } + if((CANx->MSR & CAN_MSR_SLAK) != CAN_MSR_SLAK) + { + /* wake up done : Sleep mode exited */ + wakeupstatus = CAN_WakeUp_Ok; + } + /* return wakeup status */ + return (uint8_t)wakeupstatus; +} +/** + * @} + */ + + +/** @defgroup CAN_Group5 CAN Bus Error management functions + * @brief CAN Bus Error management functions + * +@verbatim + =============================================================================== + CAN Bus Error management functions + =============================================================================== + This section provides functions allowing to + - Return the CANx's last error code (LEC) + - Return the CANx Receive Error Counter (REC) + - Return the LSB of the 9-bit CANx Transmit Error Counter(TEC). + + @note If TEC is greater than 255, The CAN is in bus-off state. + @note if REC or TEC are greater than 96, an Error warning flag occurs. + @note if REC or TEC are greater than 127, an Error Passive Flag occurs. + +@endverbatim + * @{ + */ + +/** + * @brief Returns the CANx's last error code (LEC). + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @retval Error code: + * - CAN_ERRORCODE_NoErr: No Error + * - CAN_ERRORCODE_StuffErr: Stuff Error + * - CAN_ERRORCODE_FormErr: Form Error + * - CAN_ERRORCODE_ACKErr : Acknowledgment Error + * - CAN_ERRORCODE_BitRecessiveErr: Bit Recessive Error + * - CAN_ERRORCODE_BitDominantErr: Bit Dominant Error + * - CAN_ERRORCODE_CRCErr: CRC Error + * - CAN_ERRORCODE_SoftwareSetErr: Software Set Error + */ +uint8_t CAN_GetLastErrorCode(CAN_TypeDef* CANx) +{ + uint8_t errorcode=0; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Get the error code*/ + errorcode = (((uint8_t)CANx->ESR) & (uint8_t)CAN_ESR_LEC); + + /* Return the error code*/ + return errorcode; +} + +/** + * @brief Returns the CANx Receive Error Counter (REC). + * @note In case of an error during reception, this counter is incremented + * by 1 or by 8 depending on the error condition as defined by the CAN + * standard. After every successful reception, the counter is + * decremented by 1 or reset to 120 if its value was higher than 128. + * When the counter value exceeds 127, the CAN controller enters the + * error passive state. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @retval CAN Receive Error Counter. + */ +uint8_t CAN_GetReceiveErrorCounter(CAN_TypeDef* CANx) +{ + uint8_t counter=0; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Get the Receive Error Counter*/ + counter = (uint8_t)((CANx->ESR & CAN_ESR_REC)>> 24); + + /* Return the Receive Error Counter*/ + return counter; +} + + +/** + * @brief Returns the LSB of the 9-bit CANx Transmit Error Counter(TEC). + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @retval LSB of the 9-bit CAN Transmit Error Counter. + */ +uint8_t CAN_GetLSBTransmitErrorCounter(CAN_TypeDef* CANx) +{ + uint8_t counter=0; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Get the LSB of the 9-bit CANx Transmit Error Counter(TEC) */ + counter = (uint8_t)((CANx->ESR & CAN_ESR_TEC)>> 16); + + /* Return the LSB of the 9-bit CANx Transmit Error Counter(TEC) */ + return counter; +} +/** + * @} + */ + +/** @defgroup CAN_Group6 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the CAN Interrupts and + to get the status and clear flags and Interrupts pending bits. + + The CAN provides 14 Interrupts sources and 15 Flags: + + =============== + Flags : + =============== + The 15 flags can be divided on 4 groups: + + A. Transmit Flags + ----------------------- + CAN_FLAG_RQCP0, + CAN_FLAG_RQCP1, + CAN_FLAG_RQCP2 : Request completed MailBoxes 0, 1 and 2 Flags + Set when when the last request (transmit or abort) has + been performed. + + B. Receive Flags + ----------------------- + + CAN_FLAG_FMP0, + CAN_FLAG_FMP1 : FIFO 0 and 1 Message Pending Flags + set to signal that messages are pending in the receive + FIFO. + These Flags are cleared only by hardware. + + CAN_FLAG_FF0, + CAN_FLAG_FF1 : FIFO 0 and 1 Full Flags + set when three messages are stored in the selected + FIFO. + + CAN_FLAG_FOV0 + CAN_FLAG_FOV1 : FIFO 0 and 1 Overrun Flags + set when a new message has been received and passed + the filter while the FIFO was full. + + C. Operating Mode Flags + ----------------------- + CAN_FLAG_WKU : Wake up Flag + set to signal that a SOF bit has been detected while + the CAN hardware was in Sleep mode. + + CAN_FLAG_SLAK : Sleep acknowledge Flag + Set to signal that the CAN has entered Sleep Mode. + + D. Error Flags + ----------------------- + CAN_FLAG_EWG : Error Warning Flag + Set when the warning limit has been reached (Receive + Error Counter or Transmit Error Counter greater than 96). + This Flag is cleared only by hardware. + + CAN_FLAG_EPV : Error Passive Flag + Set when the Error Passive limit has been reached + (Receive Error Counter or Transmit Error Counter + greater than 127). + This Flag is cleared only by hardware. + + CAN_FLAG_BOF : Bus-Off Flag + set when CAN enters the bus-off state. The bus-off + state is entered on TEC overflow, greater than 255. + This Flag is cleared only by hardware. + + CAN_FLAG_LEC : Last error code Flag + set If a message has been transferred (reception or + transmission) with error, and the error code is hold. + + =============== + Interrupts : + =============== + The 14 interrupts can be divided on 4 groups: + + A. Transmit interrupt + ----------------------- + CAN_IT_TME : Transmit mailbox empty Interrupt + if enabled, this interrupt source is pending when + no transmit request are pending for Tx mailboxes. + + B. Receive Interrupts + ----------------------- + CAN_IT_FMP0, + CAN_IT_FMP1 : FIFO 0 and FIFO1 message pending Interrupts + if enabled, these interrupt sources are pending when + messages are pending in the receive FIFO. + The corresponding interrupt pending bits are cleared + only by hardware. + + CAN_IT_FF0, + CAN_IT_FF1 : FIFO 0 and FIFO1 full Interrupts + if enabled, these interrupt sources are pending when + three messages are stored in the selected FIFO. + + CAN_IT_FOV0, + CAN_IT_FOV1 : FIFO 0 and FIFO1 overrun Interrupts + if enabled, these interrupt sources are pending when + a new message has been received and passed the filter + while the FIFO was full. + + C. Operating Mode Interrupts + ------------------------------- + CAN_IT_WKU : Wake-up Interrupt + if enabled, this interrupt source is pending when + a SOF bit has been detected while the CAN hardware was + in Sleep mode. + + CAN_IT_SLK : Sleep acknowledge Interrupt + if enabled, this interrupt source is pending when + the CAN has entered Sleep Mode. + + D. Error Interrupts + ----------------------- + CAN_IT_EWG : Error warning Interrupt + if enabled, this interrupt source is pending when + the warning limit has been reached (Receive Error + Counter or Transmit Error Counter=96). + + CAN_IT_EPV : Error passive Interrupt + if enabled, this interrupt source is pending when + the Error Passive limit has been reached (Receive + Error Counter or Transmit Error Counter>127). + + CAN_IT_BOF : Bus-off Interrupt + if enabled, this interrupt source is pending when + CAN enters the bus-off state. The bus-off state is + entered on TEC overflow, greater than 255. + This Flag is cleared only by hardware. + + CAN_IT_LEC : Last error code Interrupt + if enabled, this interrupt source is pending when + a message has been transferred (reception or + transmission) with error, and the error code is hold. + + CAN_IT_ERR : Error Interrupt + if enabled, this interrupt source is pending when + an error condition is pending. + + + Managing the CAN controller events : + ------------------------------------ + The user should identify which mode will be used in his application to manage + the CAN controller events: Polling mode or Interrupt mode. + + 1. In the Polling Mode it is advised to use the following functions: + - CAN_GetFlagStatus() : to check if flags events occur. + - CAN_ClearFlag() : to clear the flags events. + + + + 2. In the Interrupt Mode it is advised to use the following functions: + - CAN_ITConfig() : to enable or disable the interrupt source. + - CAN_GetITStatus() : to check if Interrupt occurs. + - CAN_ClearITPendingBit() : to clear the Interrupt pending Bit (corresponding Flag). + @note This function has no impact on CAN_IT_FMP0 and CAN_IT_FMP1 Interrupts + pending bits since there are cleared only by hardware. + +@endverbatim + * @{ + */ +/** + * @brief Enables or disables the specified CANx interrupts. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_IT: specifies the CAN interrupt sources to be enabled or disabled. + * This parameter can be: + * @arg CAN_IT_TME: Transmit mailbox empty Interrupt + * @arg CAN_IT_FMP0: FIFO 0 message pending Interrupt + * @arg CAN_IT_FF0: FIFO 0 full Interrupt + * @arg CAN_IT_FOV0: FIFO 0 overrun Interrupt + * @arg CAN_IT_FMP1: FIFO 1 message pending Interrupt + * @arg CAN_IT_FF1: FIFO 1 full Interrupt + * @arg CAN_IT_FOV1: FIFO 1 overrun Interrupt + * @arg CAN_IT_WKU: Wake-up Interrupt + * @arg CAN_IT_SLK: Sleep acknowledge Interrupt + * @arg CAN_IT_EWG: Error warning Interrupt + * @arg CAN_IT_EPV: Error passive Interrupt + * @arg CAN_IT_BOF: Bus-off Interrupt + * @arg CAN_IT_LEC: Last error code Interrupt + * @arg CAN_IT_ERR: Error Interrupt + * @param NewState: new state of the CAN interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void CAN_ITConfig(CAN_TypeDef* CANx, uint32_t CAN_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_IT(CAN_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected CANx interrupt */ + CANx->IER |= CAN_IT; + } + else + { + /* Disable the selected CANx interrupt */ + CANx->IER &= ~CAN_IT; + } +} +/** + * @brief Checks whether the specified CAN flag is set or not. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg CAN_FLAG_RQCP0: Request MailBox0 Flag + * @arg CAN_FLAG_RQCP1: Request MailBox1 Flag + * @arg CAN_FLAG_RQCP2: Request MailBox2 Flag + * @arg CAN_FLAG_FMP0: FIFO 0 Message Pending Flag + * @arg CAN_FLAG_FF0: FIFO 0 Full Flag + * @arg CAN_FLAG_FOV0: FIFO 0 Overrun Flag + * @arg CAN_FLAG_FMP1: FIFO 1 Message Pending Flag + * @arg CAN_FLAG_FF1: FIFO 1 Full Flag + * @arg CAN_FLAG_FOV1: FIFO 1 Overrun Flag + * @arg CAN_FLAG_WKU: Wake up Flag + * @arg CAN_FLAG_SLAK: Sleep acknowledge Flag + * @arg CAN_FLAG_EWG: Error Warning Flag + * @arg CAN_FLAG_EPV: Error Passive Flag + * @arg CAN_FLAG_BOF: Bus-Off Flag + * @arg CAN_FLAG_LEC: Last error code Flag + * @retval The new state of CAN_FLAG (SET or RESET). + */ +FlagStatus CAN_GetFlagStatus(CAN_TypeDef* CANx, uint32_t CAN_FLAG) +{ + FlagStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_GET_FLAG(CAN_FLAG)); + + + if((CAN_FLAG & CAN_FLAGS_ESR) != (uint32_t)RESET) + { + /* Check the status of the specified CAN flag */ + if ((CANx->ESR & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + else if((CAN_FLAG & CAN_FLAGS_MSR) != (uint32_t)RESET) + { + /* Check the status of the specified CAN flag */ + if ((CANx->MSR & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + else if((CAN_FLAG & CAN_FLAGS_TSR) != (uint32_t)RESET) + { + /* Check the status of the specified CAN flag */ + if ((CANx->TSR & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + else if((CAN_FLAG & CAN_FLAGS_RF0R) != (uint32_t)RESET) + { + /* Check the status of the specified CAN flag */ + if ((CANx->RF0R & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + else /* If(CAN_FLAG & CAN_FLAGS_RF1R != (uint32_t)RESET) */ + { + /* Check the status of the specified CAN flag */ + if ((uint32_t)(CANx->RF1R & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + /* Return the CAN_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the CAN's pending flags. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_FLAG: specifies the flag to clear. + * This parameter can be one of the following values: + * @arg CAN_FLAG_RQCP0: Request MailBox0 Flag + * @arg CAN_FLAG_RQCP1: Request MailBox1 Flag + * @arg CAN_FLAG_RQCP2: Request MailBox2 Flag + * @arg CAN_FLAG_FF0: FIFO 0 Full Flag + * @arg CAN_FLAG_FOV0: FIFO 0 Overrun Flag + * @arg CAN_FLAG_FF1: FIFO 1 Full Flag + * @arg CAN_FLAG_FOV1: FIFO 1 Overrun Flag + * @arg CAN_FLAG_WKU: Wake up Flag + * @arg CAN_FLAG_SLAK: Sleep acknowledge Flag + * @arg CAN_FLAG_LEC: Last error code Flag + * @retval None + */ +void CAN_ClearFlag(CAN_TypeDef* CANx, uint32_t CAN_FLAG) +{ + uint32_t flagtmp=0; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_CLEAR_FLAG(CAN_FLAG)); + + if (CAN_FLAG == CAN_FLAG_LEC) /* ESR register */ + { + /* Clear the selected CAN flags */ + CANx->ESR = (uint32_t)RESET; + } + else /* MSR or TSR or RF0R or RF1R */ + { + flagtmp = CAN_FLAG & 0x000FFFFF; + + if ((CAN_FLAG & CAN_FLAGS_RF0R)!=(uint32_t)RESET) + { + /* Receive Flags */ + CANx->RF0R = (uint32_t)(flagtmp); + } + else if ((CAN_FLAG & CAN_FLAGS_RF1R)!=(uint32_t)RESET) + { + /* Receive Flags */ + CANx->RF1R = (uint32_t)(flagtmp); + } + else if ((CAN_FLAG & CAN_FLAGS_TSR)!=(uint32_t)RESET) + { + /* Transmit Flags */ + CANx->TSR = (uint32_t)(flagtmp); + } + else /* If((CAN_FLAG & CAN_FLAGS_MSR)!=(uint32_t)RESET) */ + { + /* Operating mode Flags */ + CANx->MSR = (uint32_t)(flagtmp); + } + } +} + +/** + * @brief Checks whether the specified CANx interrupt has occurred or not. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_IT: specifies the CAN interrupt source to check. + * This parameter can be one of the following values: + * @arg CAN_IT_TME: Transmit mailbox empty Interrupt + * @arg CAN_IT_FMP0: FIFO 0 message pending Interrupt + * @arg CAN_IT_FF0: FIFO 0 full Interrupt + * @arg CAN_IT_FOV0: FIFO 0 overrun Interrupt + * @arg CAN_IT_FMP1: FIFO 1 message pending Interrupt + * @arg CAN_IT_FF1: FIFO 1 full Interrupt + * @arg CAN_IT_FOV1: FIFO 1 overrun Interrupt + * @arg CAN_IT_WKU: Wake-up Interrupt + * @arg CAN_IT_SLK: Sleep acknowledge Interrupt + * @arg CAN_IT_EWG: Error warning Interrupt + * @arg CAN_IT_EPV: Error passive Interrupt + * @arg CAN_IT_BOF: Bus-off Interrupt + * @arg CAN_IT_LEC: Last error code Interrupt + * @arg CAN_IT_ERR: Error Interrupt + * @retval The current state of CAN_IT (SET or RESET). + */ +ITStatus CAN_GetITStatus(CAN_TypeDef* CANx, uint32_t CAN_IT) +{ + ITStatus itstatus = RESET; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_IT(CAN_IT)); + + /* check the interrupt enable bit */ + if((CANx->IER & CAN_IT) != RESET) + { + /* in case the Interrupt is enabled, .... */ + switch (CAN_IT) + { + case CAN_IT_TME: + /* Check CAN_TSR_RQCPx bits */ + itstatus = CheckITStatus(CANx->TSR, CAN_TSR_RQCP0|CAN_TSR_RQCP1|CAN_TSR_RQCP2); + break; + case CAN_IT_FMP0: + /* Check CAN_RF0R_FMP0 bit */ + itstatus = CheckITStatus(CANx->RF0R, CAN_RF0R_FMP0); + break; + case CAN_IT_FF0: + /* Check CAN_RF0R_FULL0 bit */ + itstatus = CheckITStatus(CANx->RF0R, CAN_RF0R_FULL0); + break; + case CAN_IT_FOV0: + /* Check CAN_RF0R_FOVR0 bit */ + itstatus = CheckITStatus(CANx->RF0R, CAN_RF0R_FOVR0); + break; + case CAN_IT_FMP1: + /* Check CAN_RF1R_FMP1 bit */ + itstatus = CheckITStatus(CANx->RF1R, CAN_RF1R_FMP1); + break; + case CAN_IT_FF1: + /* Check CAN_RF1R_FULL1 bit */ + itstatus = CheckITStatus(CANx->RF1R, CAN_RF1R_FULL1); + break; + case CAN_IT_FOV1: + /* Check CAN_RF1R_FOVR1 bit */ + itstatus = CheckITStatus(CANx->RF1R, CAN_RF1R_FOVR1); + break; + case CAN_IT_WKU: + /* Check CAN_MSR_WKUI bit */ + itstatus = CheckITStatus(CANx->MSR, CAN_MSR_WKUI); + break; + case CAN_IT_SLK: + /* Check CAN_MSR_SLAKI bit */ + itstatus = CheckITStatus(CANx->MSR, CAN_MSR_SLAKI); + break; + case CAN_IT_EWG: + /* Check CAN_ESR_EWGF bit */ + itstatus = CheckITStatus(CANx->ESR, CAN_ESR_EWGF); + break; + case CAN_IT_EPV: + /* Check CAN_ESR_EPVF bit */ + itstatus = CheckITStatus(CANx->ESR, CAN_ESR_EPVF); + break; + case CAN_IT_BOF: + /* Check CAN_ESR_BOFF bit */ + itstatus = CheckITStatus(CANx->ESR, CAN_ESR_BOFF); + break; + case CAN_IT_LEC: + /* Check CAN_ESR_LEC bit */ + itstatus = CheckITStatus(CANx->ESR, CAN_ESR_LEC); + break; + case CAN_IT_ERR: + /* Check CAN_MSR_ERRI bit */ + itstatus = CheckITStatus(CANx->MSR, CAN_MSR_ERRI); + break; + default: + /* in case of error, return RESET */ + itstatus = RESET; + break; + } + } + else + { + /* in case the Interrupt is not enabled, return RESET */ + itstatus = RESET; + } + + /* Return the CAN_IT status */ + return itstatus; +} + +/** + * @brief Clears the CANx's interrupt pending bits. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_IT: specifies the interrupt pending bit to clear. + * This parameter can be one of the following values: + * @arg CAN_IT_TME: Transmit mailbox empty Interrupt + * @arg CAN_IT_FF0: FIFO 0 full Interrupt + * @arg CAN_IT_FOV0: FIFO 0 overrun Interrupt + * @arg CAN_IT_FF1: FIFO 1 full Interrupt + * @arg CAN_IT_FOV1: FIFO 1 overrun Interrupt + * @arg CAN_IT_WKU: Wake-up Interrupt + * @arg CAN_IT_SLK: Sleep acknowledge Interrupt + * @arg CAN_IT_EWG: Error warning Interrupt + * @arg CAN_IT_EPV: Error passive Interrupt + * @arg CAN_IT_BOF: Bus-off Interrupt + * @arg CAN_IT_LEC: Last error code Interrupt + * @arg CAN_IT_ERR: Error Interrupt + * @retval None + */ +void CAN_ClearITPendingBit(CAN_TypeDef* CANx, uint32_t CAN_IT) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_CLEAR_IT(CAN_IT)); + + switch (CAN_IT) + { + case CAN_IT_TME: + /* Clear CAN_TSR_RQCPx (rc_w1)*/ + CANx->TSR = CAN_TSR_RQCP0|CAN_TSR_RQCP1|CAN_TSR_RQCP2; + break; + case CAN_IT_FF0: + /* Clear CAN_RF0R_FULL0 (rc_w1)*/ + CANx->RF0R = CAN_RF0R_FULL0; + break; + case CAN_IT_FOV0: + /* Clear CAN_RF0R_FOVR0 (rc_w1)*/ + CANx->RF0R = CAN_RF0R_FOVR0; + break; + case CAN_IT_FF1: + /* Clear CAN_RF1R_FULL1 (rc_w1)*/ + CANx->RF1R = CAN_RF1R_FULL1; + break; + case CAN_IT_FOV1: + /* Clear CAN_RF1R_FOVR1 (rc_w1)*/ + CANx->RF1R = CAN_RF1R_FOVR1; + break; + case CAN_IT_WKU: + /* Clear CAN_MSR_WKUI (rc_w1)*/ + CANx->MSR = CAN_MSR_WKUI; + break; + case CAN_IT_SLK: + /* Clear CAN_MSR_SLAKI (rc_w1)*/ + CANx->MSR = CAN_MSR_SLAKI; + break; + case CAN_IT_EWG: + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + /* @note the corresponding Flag is cleared by hardware depending on the CAN Bus status*/ + break; + case CAN_IT_EPV: + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + /* @note the corresponding Flag is cleared by hardware depending on the CAN Bus status*/ + break; + case CAN_IT_BOF: + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + /* @note the corresponding Flag is cleared by hardware depending on the CAN Bus status*/ + break; + case CAN_IT_LEC: + /* Clear LEC bits */ + CANx->ESR = RESET; + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + break; + case CAN_IT_ERR: + /*Clear LEC bits */ + CANx->ESR = RESET; + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + /* @note BOFF, EPVF and EWGF Flags are cleared by hardware depending on the CAN Bus status*/ + break; + default: + break; + } +} + /** + * @} + */ + +/** + * @brief Checks whether the CAN interrupt has occurred or not. + * @param CAN_Reg: specifies the CAN interrupt register to check. + * @param It_Bit: specifies the interrupt source bit to check. + * @retval The new state of the CAN Interrupt (SET or RESET). + */ +static ITStatus CheckITStatus(uint32_t CAN_Reg, uint32_t It_Bit) +{ + ITStatus pendingbitstatus = RESET; + + if ((CAN_Reg & It_Bit) != (uint32_t)RESET) + { + /* CAN_IT is set */ + pendingbitstatus = SET; + } + else + { + /* CAN_IT is reset */ + pendingbitstatus = RESET; + } + return pendingbitstatus; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_crc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_crc.c new file mode 100644 index 00000000..45087596 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_crc.c @@ -0,0 +1,133 @@ +/** + ****************************************************************************** + * @file stm32f2xx_crc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides all the CRC firmware functions. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_crc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRC + * @brief CRC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup CRC_Private_Functions + * @{ + */ + +/** + * @brief Resets the CRC Data register (DR). + * @param None + * @retval None + */ +void CRC_ResetDR(void) +{ + /* Reset CRC generator */ + CRC->CR = CRC_CR_RESET; +} + +/** + * @brief Computes the 32-bit CRC of a given data word(32-bit). + * @param Data: data word(32-bit) to compute its CRC + * @retval 32-bit CRC + */ +uint32_t CRC_CalcCRC(uint32_t Data) +{ + CRC->DR = Data; + + return (CRC->DR); +} + +/** + * @brief Computes the 32-bit CRC of a given buffer of data word(32-bit). + * @param pBuffer: pointer to the buffer containing the data to be computed + * @param BufferLength: length of the buffer to be computed + * @retval 32-bit CRC + */ +uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength) +{ + uint32_t index = 0; + + for(index = 0; index < BufferLength; index++) + { + CRC->DR = pBuffer[index]; + } + return (CRC->DR); +} + +/** + * @brief Returns the current CRC value. + * @param None + * @retval 32-bit CRC + */ +uint32_t CRC_GetCRC(void) +{ + return (CRC->DR); +} + +/** + * @brief Stores a 8-bit data in the Independent Data(ID) register. + * @param IDValue: 8-bit value to be stored in the ID register + * @retval None + */ +void CRC_SetIDRegister(uint8_t IDValue) +{ + CRC->IDR = IDValue; +} + +/** + * @brief Returns the 8-bit data stored in the Independent Data(ID) register + * @param None + * @retval 8-bit value of the ID register + */ +uint8_t CRC_GetIDRegister(void) +{ + return (CRC->IDR); +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_cryp.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_cryp.c new file mode 100644 index 00000000..d78bf55a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_cryp.c @@ -0,0 +1,856 @@ +/** + ****************************************************************************** + * @file stm32f2xx_cryp.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Cryptographic processor (CRYP) peripheral: + * - Initialization and Configuration functions + * - Data treatment functions + * - Context swapping functions + * - DMA interface function + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable the CRYP controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_CRYP, ENABLE); function. + * + * 2. Initialise the CRYP using CRYP_Init(), CRYP_KeyInit() and if + * needed CRYP_IVInit(). + * + * 3. Flush the IN and OUT FIFOs by using CRYP_FIFOFlush() function. + * + * 4. Enable the CRYP controller using the CRYP_Cmd() function. + * + * 5. If using DMA for Data input and output transfer, + * Activate the needed DMA Requests using CRYP_DMACmd() function + + * 6. If DMA is not used for data transfer, use CRYP_DataIn() and + * CRYP_DataOut() functions to enter data to IN FIFO and get result + * from OUT FIFO. + * + * 7. To control CRYP events you can use one of the following + * two methods: + * - Check on CRYP flags using the CRYP_GetFlagStatus() function. + * - Use CRYP interrupts through the function CRYP_ITConfig() at + * initialization phase and CRYP_GetITStatus() function into + * interrupt routines in processing phase. + * + * 8. Save and restore Cryptographic processor context using + * CRYP_SaveContext() and CRYP_RestoreContext() functions. + * + * + * =================================================================== + * Procedure to perform an encryption or a decryption + * =================================================================== + * + * Initialization + * =============== + * 1. Initialize the peripheral using CRYP_Init(), CRYP_KeyInit() and + * CRYP_IVInit functions: + * - Configure the key size (128-, 192- or 256-bit, in the AES only) + * - Enter the symmetric key + * - Configure the data type + * - In case of decryption in AES-ECB or AES-CBC, you must prepare + * the key: configure the key preparation mode. Then Enable the CRYP + * peripheral using CRYP_Cmd() function: the BUSY flag is set. + * Wait until BUSY flag is reset : the key is prepared for decryption + * - Configure the algorithm and chaining (the DES/TDES in ECB/CBC, the + * AES in ECB/CBC/CTR) + * - Configure the direction (encryption/decryption). + * - Write the initialization vectors (in CBC or CTR modes only) + * + * 2. Flush the IN and OUT FIFOs using the CRYP_FIFOFlush() function + * + * + * Basic Processing mode (polling mode) + * ==================================== + * 1. Enable the cryptographic processor using CRYP_Cmd() function. + * + * 2. Write the first blocks in the input FIFO (2 to 8 words) using + * CRYP_DataIn() function. + * + * 3. Repeat the following sequence until the complete message has been + * processed: + * + * a) Wait for flag CRYP_FLAG_OFNE occurs (using CRYP_GetFlagStatus() + * function), then read the OUT-FIFO using CRYP_DataOut() function + * (1 block or until the FIFO is empty) + * + * b) Wait for flag CRYP_FLAG_IFNF occurs, (using CRYP_GetFlagStatus() + * function then write the IN FIFO using CRYP_DataIn() function + * (1 block or until the FIFO is full) + * + * 4. At the end of the processing, CRYP_FLAG_BUSY flag will be reset and + * both FIFOs are empty (CRYP_FLAG_IFEM is set and CRYP_FLAG_OFNE is + * reset). You can disable the peripheral using CRYP_Cmd() function. + * + * Interrupts Processing mode + * =========================== + * In this mode, Processing is done when the data are transferred by the + * CPU during interrupts. + * + * 1. Enable the interrupts CRYP_IT_INI and CRYP_IT_OUTI using + * CRYP_ITConfig() function. + * + * 2. Enable the cryptographic processor using CRYP_Cmd() function. + * + * 3. In the CRYP_IT_INI interrupt handler : load the input message into the + * IN FIFO using CRYP_DataIn() function . You can load 2 or 4 words at a + * time, or load data until the IN FIFO is full. When the last word of + * the message has been entered into the IN FIFO, disable the CRYP_IT_INI + * interrupt (using CRYP_ITConfig() function). + * + * 4. In the CRYP_IT_OUTI interrupt handler : read the output message from + * the OUT FIFO using CRYP_DataOut() function. You can read 1 block (2 or + * 4 words) at a time or read data until the FIFO is empty. + * When the last word has been read, INIM=0, BUSY=0 and both FIFOs are + * empty (CRYP_FLAG_IFEM is set and CRYP_FLAG_OFNE is reset). + * You can disable the CRYP_IT_OUTI interrupt (using CRYP_ITConfig() + * function) and you can disable the peripheral using CRYP_Cmd() function. + * + * DMA Processing mode + * ==================== + * In this mode, Processing is done when the DMA is used to transfer the + * data from/to the memory. + * + * 1. Configure the DMA controller to transfer the input data from the + * memory using DMA_Init() function. + * The transfer length is the length of the message. + * As message padding is not managed by the peripheral, the message + * length must be an entire number of blocks. The data are transferred + * in burst mode. The burst length is 4 words in the AES and 2 or 4 + * words in the DES/TDES. The DMA should be configured to set an + * interrupt on transfer completion of the output data to indicate that + * the processing is finished. + * Refer to DMA peripheral driver for more details. + * + * 2. Enable the cryptographic processor using CRYP_Cmd() function. + * Enable the DMA requests CRYP_DMAReq_DataIN and CRYP_DMAReq_DataOUT + * using CRYP_DMACmd() function. + * + * 3. All the transfers and processing are managed by the DMA and the + * cryptographic processor. The DMA transfer complete interrupt indicates + * that the processing is complete. Both FIFOs are normally empty and + * CRYP_FLAG_BUSY flag is reset. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_cryp.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRYP + * @brief CRYP driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define FLAG_MASK ((uint8_t)0x20) +#define MAX_TIMEOUT ((uint16_t)0xFFFF) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup CRYP_Private_Functions + * @{ + */ + +/** @defgroup CRYP_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to + - Initialize the cryptographic Processor using CRYP_Init() function + - Encrypt or Decrypt + - mode : TDES-ECB, TDES-CBC, + DES-ECB, DES-CBC, + AES-ECB, AES-CBC, AES-CTR, AES-Key + - DataType : 32-bit data, 16-bit data, bit data or bit-string + - Key Size (only in AES modes) + - Configure the Encrypt or Decrypt Key using CRYP_KeyInit() function + - Configure the Initialization Vectors(IV) for CBC and CTR modes using + CRYP_IVInit() function. + - Flushes the IN and OUT FIFOs : using CRYP_FIFOFlush() function. + - Enable or disable the CRYP Processor using CRYP_Cmd() function + + +@endverbatim + * @{ + */ +/** + * @brief Deinitializes the CRYP peripheral registers to their default reset values + * @param None + * @retval None + */ +void CRYP_DeInit(void) +{ + /* Enable CRYP reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_CRYP, ENABLE); + + /* Release CRYP from reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_CRYP, DISABLE); +} + +/** + * @brief Initializes the CRYP peripheral according to the specified parameters + * in the CRYP_InitStruct. + * @param CRYP_InitStruct: pointer to a CRYP_InitTypeDef structure that contains + * the configuration information for the CRYP peripheral. + * @retval None + */ +void CRYP_Init(CRYP_InitTypeDef* CRYP_InitStruct) +{ + /* Check the parameters */ + assert_param(IS_CRYP_ALGOMODE(CRYP_InitStruct->CRYP_AlgoMode)); + assert_param(IS_CRYP_DATATYPE(CRYP_InitStruct->CRYP_DataType)); + assert_param(IS_CRYP_ALGODIR(CRYP_InitStruct->CRYP_AlgoDir)); + + /* Select Algorithm mode*/ + CRYP->CR &= ~CRYP_CR_ALGOMODE; + CRYP->CR |= CRYP_InitStruct->CRYP_AlgoMode; + + /* Select dataType */ + CRYP->CR &= ~CRYP_CR_DATATYPE; + CRYP->CR |= CRYP_InitStruct->CRYP_DataType; + + /* select Key size (used only with AES algorithm) */ + if ((CRYP_InitStruct->CRYP_AlgoMode == CRYP_AlgoMode_AES_ECB) || + (CRYP_InitStruct->CRYP_AlgoMode == CRYP_AlgoMode_AES_CBC) || + (CRYP_InitStruct->CRYP_AlgoMode == CRYP_AlgoMode_AES_CTR) || + (CRYP_InitStruct->CRYP_AlgoMode == CRYP_AlgoMode_AES_Key)) + { + assert_param(IS_CRYP_KEYSIZE(CRYP_InitStruct->CRYP_KeySize)); + CRYP->CR &= ~CRYP_CR_KEYSIZE; + CRYP->CR |= CRYP_InitStruct->CRYP_KeySize; /* Key size and value must be + configured once the key has + been prepared */ + } + + /* Select data Direction */ + CRYP->CR &= ~CRYP_CR_ALGODIR; + CRYP->CR |= CRYP_InitStruct->CRYP_AlgoDir; +} + +/** + * @brief Fills each CRYP_InitStruct member with its default value. + * @param CRYP_InitStruct: pointer to a CRYP_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void CRYP_StructInit(CRYP_InitTypeDef* CRYP_InitStruct) +{ + /* Initialize the CRYP_AlgoDir member */ + CRYP_InitStruct->CRYP_AlgoDir = CRYP_AlgoDir_Encrypt; + + /* initialize the CRYP_AlgoMode member */ + CRYP_InitStruct->CRYP_AlgoMode = CRYP_AlgoMode_TDES_ECB; + + /* initialize the CRYP_DataType member */ + CRYP_InitStruct->CRYP_DataType = CRYP_DataType_32b; + + /* Initialize the CRYP_KeySize member */ + CRYP_InitStruct->CRYP_KeySize = CRYP_KeySize_128b; +} + +/** + * @brief Initializes the CRYP Keys according to the specified parameters in + * the CRYP_KeyInitStruct. + * @param CRYP_KeyInitStruct: pointer to a CRYP_KeyInitTypeDef structure that + * contains the configuration information for the CRYP Keys. + * @retval None + */ +void CRYP_KeyInit(CRYP_KeyInitTypeDef* CRYP_KeyInitStruct) +{ + /* Key Initialisation */ + CRYP->K0LR = CRYP_KeyInitStruct->CRYP_Key0Left; + CRYP->K0RR = CRYP_KeyInitStruct->CRYP_Key0Right; + CRYP->K1LR = CRYP_KeyInitStruct->CRYP_Key1Left; + CRYP->K1RR = CRYP_KeyInitStruct->CRYP_Key1Right; + CRYP->K2LR = CRYP_KeyInitStruct->CRYP_Key2Left; + CRYP->K2RR = CRYP_KeyInitStruct->CRYP_Key2Right; + CRYP->K3LR = CRYP_KeyInitStruct->CRYP_Key3Left; + CRYP->K3RR = CRYP_KeyInitStruct->CRYP_Key3Right; +} + +/** + * @brief Fills each CRYP_KeyInitStruct member with its default value. + * @param CRYP_KeyInitStruct: pointer to a CRYP_KeyInitTypeDef structure + * which will be initialized. + * @retval None + */ +void CRYP_KeyStructInit(CRYP_KeyInitTypeDef* CRYP_KeyInitStruct) +{ + CRYP_KeyInitStruct->CRYP_Key0Left = 0; + CRYP_KeyInitStruct->CRYP_Key0Right = 0; + CRYP_KeyInitStruct->CRYP_Key1Left = 0; + CRYP_KeyInitStruct->CRYP_Key1Right = 0; + CRYP_KeyInitStruct->CRYP_Key2Left = 0; + CRYP_KeyInitStruct->CRYP_Key2Right = 0; + CRYP_KeyInitStruct->CRYP_Key3Left = 0; + CRYP_KeyInitStruct->CRYP_Key3Right = 0; +} +/** + * @brief Initializes the CRYP Initialization Vectors(IV) according to the + * specified parameters in the CRYP_IVInitStruct. + * @param CRYP_IVInitStruct: pointer to a CRYP_IVInitTypeDef structure that contains + * the configuration information for the CRYP Initialization Vectors(IV). + * @retval None + */ +void CRYP_IVInit(CRYP_IVInitTypeDef* CRYP_IVInitStruct) +{ + CRYP->IV0LR = CRYP_IVInitStruct->CRYP_IV0Left; + CRYP->IV0RR = CRYP_IVInitStruct->CRYP_IV0Right; + CRYP->IV1LR = CRYP_IVInitStruct->CRYP_IV1Left; + CRYP->IV1RR = CRYP_IVInitStruct->CRYP_IV1Right; +} + +/** + * @brief Fills each CRYP_IVInitStruct member with its default value. + * @param CRYP_IVInitStruct: pointer to a CRYP_IVInitTypeDef Initialization + * Vectors(IV) structure which will be initialized. + * @retval None + */ +void CRYP_IVStructInit(CRYP_IVInitTypeDef* CRYP_IVInitStruct) +{ + CRYP_IVInitStruct->CRYP_IV0Left = 0; + CRYP_IVInitStruct->CRYP_IV0Right = 0; + CRYP_IVInitStruct->CRYP_IV1Left = 0; + CRYP_IVInitStruct->CRYP_IV1Right = 0; +} + +/** + * @brief Flushes the IN and OUT FIFOs (that is read and write pointers of the + * FIFOs are reset) + * @note The FIFOs must be flushed only when BUSY flag is reset. + * @param None + * @retval None + */ +void CRYP_FIFOFlush(void) +{ + /* Reset the read and write pointers of the FIFOs */ + CRYP->CR |= CRYP_CR_FFLUSH; +} + +/** + * @brief Enables or disables the CRYP peripheral. + * @param NewState: new state of the CRYP peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void CRYP_Cmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the Cryptographic processor */ + CRYP->CR |= CRYP_CR_CRYPEN; + } + else + { + /* Disable the Cryptographic processor */ + CRYP->CR &= ~CRYP_CR_CRYPEN; + } +} +/** + * @} + */ + +/** @defgroup CRYP_Group2 CRYP Data processing functions + * @brief CRYP Data processing functions + * +@verbatim + =============================================================================== + CRYP Data processing functions + =============================================================================== + This section provides functions allowing the encryption and decryption + operations: + - Enter data to be treated in the IN FIFO : using CRYP_DataIn() function. + - Get the data result from the OUT FIFO : using CRYP_DataOut() function. + +@endverbatim + * @{ + */ + +/** + * @brief Writes data in the Data Input register (DIN). + * @note After the DIN register has been read once or several times, + * the FIFO must be flushed (using CRYP_FIFOFlush() function). + * @param Data: data to write in Data Input register + * @retval None + */ +void CRYP_DataIn(uint32_t Data) +{ + CRYP->DR = Data; +} + +/** + * @brief Returns the last data entered into the output FIFO. + * @param None + * @retval Last data entered into the output FIFO. + */ +uint32_t CRYP_DataOut(void) +{ + return CRYP->DOUT; +} +/** + * @} + */ + +/** @defgroup CRYP_Group3 Context swapping functions + * @brief Context swapping functions + * +@verbatim + =============================================================================== + Context swapping functions + =============================================================================== + + This section provides functions allowing to save and store CRYP Context + + It is possible to interrupt an encryption/ decryption/ key generation process + to perform another processing with a higher priority, and to complete the + interrupted process later on, when the higher-priority task is complete. To do + so, the context of the interrupted task must be saved from the CRYP registers + to memory, and then be restored from memory to the CRYP registers. + + 1. To save the current context, use CRYP_SaveContext() function + 2. To restore the saved context, use CRYP_RestoreContext() function + + +@endverbatim + * @{ + */ + +/** + * @brief Saves the CRYP peripheral Context. + * @note This function stops DMA transfer before to save the context. After + * restoring the context, you have to enable the DMA again (if the DMA + * was previously used). + * @param CRYP_ContextSave: pointer to a CRYP_Context structure that contains + * the repository for current context. + * @param CRYP_KeyInitStruct: pointer to a CRYP_KeyInitTypeDef structure that + * contains the configuration information for the CRYP Keys. + * @retval None + */ +ErrorStatus CRYP_SaveContext(CRYP_Context* CRYP_ContextSave, + CRYP_KeyInitTypeDef* CRYP_KeyInitStruct) +{ + __IO uint32_t timeout = 0; + uint32_t ckeckmask = 0, bitstatus; + ErrorStatus status = ERROR; + + /* Stop DMA transfers on the IN FIFO by clearing the DIEN bit in the CRYP_DMACR */ + CRYP->DMACR &= ~(uint32_t)CRYP_DMACR_DIEN; + + /* Wait until both the IN and OUT FIFOs are empty + (IFEM=1 and OFNE=0 in the CRYP_SR register) and the + BUSY bit is cleared. */ + + if ((CRYP->CR & (uint32_t)(CRYP_CR_ALGOMODE_TDES_ECB | CRYP_CR_ALGOMODE_TDES_CBC)) != (uint32_t)0 )/* TDES */ + { + ckeckmask = CRYP_SR_IFEM | CRYP_SR_BUSY ; + } + else /* AES or DES */ + { + ckeckmask = CRYP_SR_IFEM | CRYP_SR_BUSY | CRYP_SR_OFNE; + } + + do + { + bitstatus = CRYP->SR & ckeckmask; + timeout++; + } + while ((timeout != MAX_TIMEOUT) && (bitstatus != CRYP_SR_IFEM)); + + if ((CRYP->SR & ckeckmask) != CRYP_SR_IFEM) + { + status = ERROR; + } + else + { + /* Stop DMA transfers on the OUT FIFO by + - writing the DOEN bit to 0 in the CRYP_DMACR register + - and clear the CRYPEN bit. */ + + CRYP->DMACR &= ~(uint32_t)CRYP_DMACR_DOEN; + CRYP->CR &= ~(uint32_t)CRYP_CR_CRYPEN; + + /* Save the current configuration (bits [9:2] in the CRYP_CR register) */ + CRYP_ContextSave->CR_bits9to2 = CRYP->CR & (CRYP_CR_KEYSIZE | + CRYP_CR_DATATYPE | + CRYP_CR_ALGOMODE | + CRYP_CR_ALGODIR); + + /* and, if not in ECB mode, the initialization vectors. */ + CRYP_ContextSave->CRYP_IV0LR = CRYP->IV0LR; + CRYP_ContextSave->CRYP_IV0RR = CRYP->IV0RR; + CRYP_ContextSave->CRYP_IV1LR = CRYP->IV1LR; + CRYP_ContextSave->CRYP_IV1RR = CRYP->IV1RR; + + /* save The key value */ + CRYP_ContextSave->CRYP_K0LR = CRYP_KeyInitStruct->CRYP_Key0Left; + CRYP_ContextSave->CRYP_K0RR = CRYP_KeyInitStruct->CRYP_Key0Right; + CRYP_ContextSave->CRYP_K1LR = CRYP_KeyInitStruct->CRYP_Key1Left; + CRYP_ContextSave->CRYP_K1RR = CRYP_KeyInitStruct->CRYP_Key1Right; + CRYP_ContextSave->CRYP_K2LR = CRYP_KeyInitStruct->CRYP_Key2Left; + CRYP_ContextSave->CRYP_K2RR = CRYP_KeyInitStruct->CRYP_Key2Right; + CRYP_ContextSave->CRYP_K3LR = CRYP_KeyInitStruct->CRYP_Key3Left; + CRYP_ContextSave->CRYP_K3RR = CRYP_KeyInitStruct->CRYP_Key3Right; + + /* When needed, save the DMA status (pointers for IN and OUT messages, + number of remaining bytes, etc.) */ + + status = SUCCESS; + } + + return status; +} + +/** + * @brief Restores the CRYP peripheral Context. + * @note Since teh DMA transfer is stopped in CRYP_SaveContext() function, + * after restoring the context, you have to enable the DMA again (if the + * DMA was previously used). + * @param CRYP_ContextRestore: pointer to a CRYP_Context structure that contains + * the repository for saved context. + * @note The data that were saved during context saving must be rewrited into + * the IN FIFO. + * @retval None + */ +void CRYP_RestoreContext(CRYP_Context* CRYP_ContextRestore) +{ + + /* Configure the processor with the saved configuration */ + CRYP->CR = CRYP_ContextRestore->CR_bits9to2; + + /* restore The key value */ + CRYP->K0LR = CRYP_ContextRestore->CRYP_K0LR; + CRYP->K0RR = CRYP_ContextRestore->CRYP_K0RR; + CRYP->K1LR = CRYP_ContextRestore->CRYP_K1LR; + CRYP->K1RR = CRYP_ContextRestore->CRYP_K1RR; + CRYP->K2LR = CRYP_ContextRestore->CRYP_K2LR; + CRYP->K2RR = CRYP_ContextRestore->CRYP_K2RR; + CRYP->K3LR = CRYP_ContextRestore->CRYP_K3LR; + CRYP->K3RR = CRYP_ContextRestore->CRYP_K3RR; + + /* and the initialization vectors. */ + CRYP->IV0LR = CRYP_ContextRestore->CRYP_IV0LR; + CRYP->IV0RR = CRYP_ContextRestore->CRYP_IV0RR; + CRYP->IV1LR = CRYP_ContextRestore->CRYP_IV1LR; + CRYP->IV1RR = CRYP_ContextRestore->CRYP_IV1RR; + + /* Enable the cryptographic processor */ + CRYP->CR |= CRYP_CR_CRYPEN; +} +/** + * @} + */ + +/** @defgroup CRYP_Group4 CRYP's DMA interface Configuration function + * @brief CRYP's DMA interface Configuration function + * +@verbatim + =============================================================================== + CRYP's DMA interface Configuration function + =============================================================================== + + This section provides functions allowing to configure the DMA interface for + CRYP data input and output transfer. + + When the DMA mode is enabled (using the CRYP_DMACmd() function), data can be + transferred: + - From memory to the CRYP IN FIFO using the DMA peripheral by enabling + the CRYP_DMAReq_DataIN request. + - From the CRYP OUT FIFO to the memory using the DMA peripheral by enabling + the CRYP_DMAReq_DataOUT request. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the CRYP DMA interface. + * @param CRYP_DMAReq: specifies the CRYP DMA transfer request to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg CRYP_DMAReq_DataOUT: DMA for outgoing(Tx) data transfer + * @arg CRYP_DMAReq_DataIN: DMA for incoming(Rx) data transfer + * @param NewState: new state of the selected CRYP DMA transfer request. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void CRYP_DMACmd(uint8_t CRYP_DMAReq, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CRYP_DMAREQ(CRYP_DMAReq)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected CRYP DMA request */ + CRYP->DMACR |= CRYP_DMAReq; + } + else + { + /* Disable the selected CRYP DMA request */ + CRYP->DMACR &= (uint8_t)~CRYP_DMAReq; + } +} +/** + * @} + */ + +/** @defgroup CRYP_Group5 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the CRYP Interrupts and + to get the status and Interrupts pending bits. + + The CRYP provides 2 Interrupts sources and 7 Flags: + + Flags : + ------- + + 1. CRYP_FLAG_IFEM : Set when Input FIFO is empty. + This Flag is cleared only by hardware. + + 2. CRYP_FLAG_IFNF : Set when Input FIFO is not full. + This Flag is cleared only by hardware. + + + 3. CRYP_FLAG_INRIS : Set when Input FIFO Raw interrupt is pending + it gives the raw interrupt state prior to masking + of the input FIFO service interrupt. + This Flag is cleared only by hardware. + + 4. CRYP_FLAG_OFNE : Set when Output FIFO not empty. + This Flag is cleared only by hardware. + + 5. CRYP_FLAG_OFFU : Set when Output FIFO is full. + This Flag is cleared only by hardware. + + 6. CRYP_FLAG_OUTRIS : Set when Output FIFO Raw interrupt is pending + it gives the raw interrupt state prior to masking + of the output FIFO service interrupt. + This Flag is cleared only by hardware. + + 7. CRYP_FLAG_BUSY : Set when the CRYP core is currently processing a + block of data or a key preparation (for AES + decryption). + This Flag is cleared only by hardware. + To clear it, the CRYP core must be disabled and the + last processing has completed. + + Interrupts : + ------------ + + 1. CRYP_IT_INI : The input FIFO service interrupt is asserted when there + are less than 4 words in the input FIFO. + This interrupt is associated to CRYP_FLAG_INRIS flag. + + @note This interrupt is cleared by performing write operations + to the input FIFO until it holds 4 or more words. The + input FIFO service interrupt INMIS is enabled with the + CRYP enable bit. Consequently, when CRYP is disabled, the + INMIS signal is low even if the input FIFO is empty. + + + + 2. CRYP_IT_OUTI : The output FIFO service interrupt is asserted when there + is one or more (32-bit word) data items in the output FIFO. + This interrupt is associated to CRYP_FLAG_OUTRIS flag. + + @note This interrupt is cleared by reading data from the output + FIFO until there is no valid (32-bit) word left (that is, + the interrupt follows the state of the OFNE (output FIFO + not empty) flag). + + + Managing the CRYP controller events : + ------------------------------------ + The user should identify which mode will be used in his application to manage + the CRYP controller events: Polling mode or Interrupt mode. + + 1. In the Polling Mode it is advised to use the following functions: + - CRYP_GetFlagStatus() : to check if flags events occur. + + @note The CRYPT flags do not need to be cleared since they are cleared as + soon as the associated event are reset. + + + 2. In the Interrupt Mode it is advised to use the following functions: + - CRYP_ITConfig() : to enable or disable the interrupt source. + - CRYP_GetITStatus() : to check if Interrupt occurs. + + @note The CRYPT interrupts have no pending bits, the interrupt is cleared as + soon as the associated event is reset. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified CRYP interrupts. + * @param CRYP_IT: specifies the CRYP interrupt source to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg CRYP_IT_INI: Input FIFO interrupt + * @arg CRYP_IT_OUTI: Output FIFO interrupt + * @param NewState: new state of the specified CRYP interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void CRYP_ITConfig(uint8_t CRYP_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CRYP_CONFIG_IT(CRYP_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected CRYP interrupt */ + CRYP->IMSCR |= CRYP_IT; + } + else + { + /* Disable the selected CRYP interrupt */ + CRYP->IMSCR &= (uint8_t)~CRYP_IT; + } +} + +/** + * @brief Checks whether the specified CRYP interrupt has occurred or not. + * @note This function checks the status of the masked interrupt (i.e the + * interrupt should be previously enabled). + * @param CRYP_IT: specifies the CRYP (masked) interrupt source to check. + * This parameter can be one of the following values: + * @arg CRYP_IT_INI: Input FIFO interrupt + * @arg CRYP_IT_OUTI: Output FIFO interrupt + * @retval The new state of CRYP_IT (SET or RESET). + */ +ITStatus CRYP_GetITStatus(uint8_t CRYP_IT) +{ + ITStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_CRYP_GET_IT(CRYP_IT)); + + /* Check the status of the specified CRYP interrupt */ + if ((CRYP->MISR & CRYP_IT) != (uint8_t)RESET) + { + /* CRYP_IT is set */ + bitstatus = SET; + } + else + { + /* CRYP_IT is reset */ + bitstatus = RESET; + } + /* Return the CRYP_IT status */ + return bitstatus; +} + +/** + * @brief Checks whether the specified CRYP flag is set or not. + * @param CRYP_FLAG: specifies the CRYP flag to check. + * This parameter can be one of the following values: + * @arg CRYP_FLAG_IFEM: Input FIFO Empty flag. + * @arg CRYP_FLAG_IFNF: Input FIFO Not Full flag. + * @arg CRYP_FLAG_OFNE: Output FIFO Not Empty flag. + * @arg CRYP_FLAG_OFFU: Output FIFO Full flag. + * @arg CRYP_FLAG_BUSY: Busy flag. + * @arg CRYP_FLAG_OUTRIS: Output FIFO raw interrupt flag. + * @arg CRYP_FLAG_INRIS: Input FIFO raw interrupt flag. + * @retval The new state of CRYP_FLAG (SET or RESET). + */ +FlagStatus CRYP_GetFlagStatus(uint8_t CRYP_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t tempreg = 0; + + /* Check the parameters */ + assert_param(IS_CRYP_GET_FLAG(CRYP_FLAG)); + + /* check if the FLAG is in RISR register */ + if ((CRYP_FLAG & FLAG_MASK) != 0x00) + { + tempreg = CRYP->RISR; + } + else /* The FLAG is in SR register */ + { + tempreg = CRYP->SR; + } + + + /* Check the status of the specified CRYP flag */ + if ((tempreg & CRYP_FLAG ) != (uint8_t)RESET) + { + /* CRYP_FLAG is set */ + bitstatus = SET; + } + else + { + /* CRYP_FLAG is reset */ + bitstatus = RESET; + } + + /* Return the CRYP_FLAG status */ + return bitstatus; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_cryp_aes.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_cryp_aes.c new file mode 100644 index 00000000..25520e8f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_cryp_aes.c @@ -0,0 +1,644 @@ +/** + ****************************************************************************** + * @file stm32f2xx_cryp_aes.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides high level functions to encrypt and decrypt an + * input message using AES in ECB/CBC/CTR modes. + * It uses the stm32f2xx_cryp.c/.h drivers to access the STM32F2xx CRYP + * peripheral. + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable The CRYP controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_CRYP, ENABLE); function. + * + * 2. Encrypt and decrypt using AES in ECB Mode using CRYP_AES_ECB() + * function. + * + * 3. Encrypt and decrypt using AES in CBC Mode using CRYP_AES_CBC() + * function. + * + * 4. Encrypt and decrypt using AES in CTR Mode using CRYP_AES_CTR() + * function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_cryp.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRYP + * @brief CRYP driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define AESBUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup CRYP_Private_Functions + * @{ + */ + +/** @defgroup CRYP_Group6 High Level AES functions + * @brief High Level AES functions + * +@verbatim + =============================================================================== + High Level AES functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Encrypt and decrypt using AES in ECB Mode + * @param Mode: encryption or decryption Mode. + * This parameter can be one of the following values: + * @arg MODE_ENCRYPT: Encryption + * @arg MODE_DECRYPT: Decryption + * @param Key: Key used for AES algorithm. + * @param Keysize: length of the Key, must be a 128, 192 or 256. + * @param Input: pointer to the Input buffer. + * @param Ilength: length of the Input buffer, must be a multiple of 16. + * @param Output: pointer to the returned buffer. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: Operation done + * - ERROR: Operation failed + */ +ErrorStatus CRYP_AES_ECB(uint8_t Mode, uint8_t* Key, uint16_t Keysize, + uint8_t* Input, uint32_t Ilength, uint8_t* Output) +{ + CRYP_InitTypeDef AES_CRYP_InitStructure; + CRYP_KeyInitTypeDef AES_CRYP_KeyInitStructure; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t keyaddr = (uint32_t)Key; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + uint32_t i = 0; + + /* Crypto structures initialisation*/ + CRYP_KeyStructInit(&AES_CRYP_KeyInitStructure); + + switch(Keysize) + { + case 128: + AES_CRYP_InitStructure.CRYP_KeySize = CRYP_KeySize_128b; + AES_CRYP_KeyInitStructure.CRYP_Key2Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Right= __REV(*(uint32_t*)(keyaddr)); + break; + case 192: + AES_CRYP_InitStructure.CRYP_KeySize = CRYP_KeySize_192b; + AES_CRYP_KeyInitStructure.CRYP_Key1Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key1Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Right= __REV(*(uint32_t*)(keyaddr)); + break; + case 256: + AES_CRYP_InitStructure.CRYP_KeySize = CRYP_KeySize_256b; + AES_CRYP_KeyInitStructure.CRYP_Key0Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key0Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key1Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key1Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Right= __REV(*(uint32_t*)(keyaddr)); + break; + default: + break; + } + + /*------------------ AES Decryption ------------------*/ + if(Mode == MODE_DECRYPT) /* AES decryption */ + { + /* Flush IN/OUT FIFOs */ + CRYP_FIFOFlush(); + + /* Crypto Init for Key preparation for decryption process */ + AES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Decrypt; + AES_CRYP_InitStructure.CRYP_AlgoMode = CRYP_AlgoMode_AES_Key; + AES_CRYP_InitStructure.CRYP_DataType = CRYP_DataType_32b; + CRYP_Init(&AES_CRYP_InitStructure); + + /* Key Initialisation */ + CRYP_KeyInit(&AES_CRYP_KeyInitStructure); + + /* Enable Crypto processor */ + CRYP_Cmd(ENABLE); + + /* wait until the Busy flag is RESET */ + do + { + busystatus = CRYP_GetFlagStatus(CRYP_FLAG_BUSY); + counter++; + }while ((counter != AESBUSY_TIMEOUT) && (busystatus != RESET)); + + if (busystatus != RESET) + { + status = ERROR; + } + else + { + /* Crypto Init for decryption process */ + AES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Decrypt; + } + } + /*------------------ AES Encryption ------------------*/ + else /* AES encryption */ + { + + CRYP_KeyInit(&AES_CRYP_KeyInitStructure); + + /* Crypto Init for Encryption process */ + AES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Encrypt; + } + + AES_CRYP_InitStructure.CRYP_AlgoMode = CRYP_AlgoMode_AES_ECB; + AES_CRYP_InitStructure.CRYP_DataType = CRYP_DataType_8b; + CRYP_Init(&AES_CRYP_InitStructure); + + /* Flush IN/OUT FIFOs */ + CRYP_FIFOFlush(); + + /* Enable Crypto processor */ + CRYP_Cmd(ENABLE); + + for(i=0; ((i
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_cryp.h" + + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRYP + * @brief CRYP driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define DESBUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + + +/** @defgroup CRYP_Private_Functions + * @{ + */ + +/** @defgroup CRYP_Group8 High Level DES functions + * @brief High Level DES functions + * +@verbatim + =============================================================================== + High Level DES functions + =============================================================================== +@endverbatim + * @{ + */ + +/** + * @brief Encrypt and decrypt using DES in ECB Mode + * @param Mode: encryption or decryption Mode. + * This parameter can be one of the following values: + * @arg MODE_ENCRYPT: Encryption + * @arg MODE_DECRYPT: Decryption + * @param Key: Key used for DES algorithm. + * @param Ilength: length of the Input buffer, must be a multiple of 8. + * @param Input: pointer to the Input buffer. + * @param Output: pointer to the returned buffer. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: Operation done + * - ERROR: Operation failed + */ +ErrorStatus CRYP_DES_ECB(uint8_t Mode, uint8_t Key[8], uint8_t *Input, + uint32_t Ilength, uint8_t *Output) +{ + CRYP_InitTypeDef DES_CRYP_InitStructure; + CRYP_KeyInitTypeDef DES_CRYP_KeyInitStructure; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t keyaddr = (uint32_t)Key; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + uint32_t i = 0; + + /* Crypto structures initialisation*/ + CRYP_KeyStructInit(&DES_CRYP_KeyInitStructure); + + /* Crypto Init for Encryption process */ + if( Mode == MODE_ENCRYPT ) /* DES encryption */ + { + DES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Encrypt; + } + else/* if( Mode == MODE_DECRYPT )*/ /* DES decryption */ + { + DES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Decrypt; + } + + DES_CRYP_InitStructure.CRYP_AlgoMode = CRYP_AlgoMode_DES_ECB; + DES_CRYP_InitStructure.CRYP_DataType = CRYP_DataType_8b; + CRYP_Init(&DES_CRYP_InitStructure); + + /* Key Initialisation */ + DES_CRYP_KeyInitStructure.CRYP_Key1Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + DES_CRYP_KeyInitStructure.CRYP_Key1Right= __REV(*(uint32_t*)(keyaddr)); + CRYP_KeyInit(& DES_CRYP_KeyInitStructure); + + /* Flush IN/OUT FIFO */ + CRYP_FIFOFlush(); + + /* Enable Crypto processor */ + CRYP_Cmd(ENABLE); + + for(i=0; ((i
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_cryp.h" + + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRYP + * @brief CRYP driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define TDESBUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + + +/** @defgroup CRYP_Private_Functions + * @{ + */ + +/** @defgroup CRYP_Group7 High Level TDES functions + * @brief High Level TDES functions + * +@verbatim + =============================================================================== + High Level TDES functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Encrypt and decrypt using TDES in ECB Mode + * @param Mode: encryption or decryption Mode. + * This parameter can be one of the following values: + * @arg MODE_ENCRYPT: Encryption + * @arg MODE_DECRYPT: Decryption + * @param Key: Key used for TDES algorithm. + * @param Ilength: length of the Input buffer, must be a multiple of 8. + * @param Input: pointer to the Input buffer. + * @param Output: pointer to the returned buffer. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: Operation done + * - ERROR: Operation failed + */ +ErrorStatus CRYP_TDES_ECB(uint8_t Mode, uint8_t Key[24], uint8_t *Input, + uint32_t Ilength, uint8_t *Output) +{ + CRYP_InitTypeDef TDES_CRYP_InitStructure; + CRYP_KeyInitTypeDef TDES_CRYP_KeyInitStructure; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t keyaddr = (uint32_t)Key; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + uint32_t i = 0; + + /* Crypto structures initialisation*/ + CRYP_KeyStructInit(&TDES_CRYP_KeyInitStructure); + + /* Crypto Init for Encryption process */ + if(Mode == MODE_ENCRYPT) /* TDES encryption */ + { + TDES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Encrypt; + } + else /*if(Mode == MODE_DECRYPT)*/ /* TDES decryption */ + { + TDES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Decrypt; + } + + TDES_CRYP_InitStructure.CRYP_AlgoMode = CRYP_AlgoMode_TDES_ECB; + TDES_CRYP_InitStructure.CRYP_DataType = CRYP_DataType_8b; + CRYP_Init(&TDES_CRYP_InitStructure); + + /* Key Initialisation */ + TDES_CRYP_KeyInitStructure.CRYP_Key1Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key1Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key2Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key2Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key3Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key3Right= __REV(*(uint32_t*)(keyaddr)); + CRYP_KeyInit(& TDES_CRYP_KeyInitStructure); + + /* Flush IN/OUT FIFO */ + CRYP_FIFOFlush(); + + /* Enable Crypto processor */ + CRYP_Cmd(ENABLE); + + for(i=0; ((i
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_dac.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup DAC + * @brief DAC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* CR register Mask */ +#define CR_CLEAR_MASK ((uint32_t)0x00000FFE) + +/* DAC Dual Channels SWTRIG masks */ +#define DUAL_SWTRIG_SET ((uint32_t)0x00000003) +#define DUAL_SWTRIG_RESET ((uint32_t)0xFFFFFFFC) + +/* DHR registers offsets */ +#define DHR12R1_OFFSET ((uint32_t)0x00000008) +#define DHR12R2_OFFSET ((uint32_t)0x00000014) +#define DHR12RD_OFFSET ((uint32_t)0x00000020) + +/* DOR register offset */ +#define DOR_OFFSET ((uint32_t)0x0000002C) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup DAC_Private_Functions + * @{ + */ + +/** @defgroup DAC_Group1 DAC channels configuration + * @brief DAC channels configuration: trigger, output buffer, data format + * +@verbatim + =============================================================================== + DAC channels configuration: trigger, output buffer, data format + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the DAC peripheral registers to their default reset values. + * @param None + * @retval None + */ +void DAC_DeInit(void) +{ + /* Enable DAC reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_DAC, ENABLE); + /* Release DAC from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_DAC, DISABLE); +} + +/** + * @brief Initializes the DAC peripheral according to the specified parameters + * in the DAC_InitStruct. + * @param DAC_Channel: the selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_InitStruct: pointer to a DAC_InitTypeDef structure that contains + * the configuration information for the specified DAC channel. + * @retval None + */ +void DAC_Init(uint32_t DAC_Channel, DAC_InitTypeDef* DAC_InitStruct) +{ + uint32_t tmpreg1 = 0, tmpreg2 = 0; + + /* Check the DAC parameters */ + assert_param(IS_DAC_TRIGGER(DAC_InitStruct->DAC_Trigger)); + assert_param(IS_DAC_GENERATE_WAVE(DAC_InitStruct->DAC_WaveGeneration)); + assert_param(IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE(DAC_InitStruct->DAC_LFSRUnmask_TriangleAmplitude)); + assert_param(IS_DAC_OUTPUT_BUFFER_STATE(DAC_InitStruct->DAC_OutputBuffer)); + +/*---------------------------- DAC CR Configuration --------------------------*/ + /* Get the DAC CR value */ + tmpreg1 = DAC->CR; + /* Clear BOFFx, TENx, TSELx, WAVEx and MAMPx bits */ + tmpreg1 &= ~(CR_CLEAR_MASK << DAC_Channel); + /* Configure for the selected DAC channel: buffer output, trigger, + wave generation, mask/amplitude for wave generation */ + /* Set TSELx and TENx bits according to DAC_Trigger value */ + /* Set WAVEx bits according to DAC_WaveGeneration value */ + /* Set MAMPx bits according to DAC_LFSRUnmask_TriangleAmplitude value */ + /* Set BOFFx bit according to DAC_OutputBuffer value */ + tmpreg2 = (DAC_InitStruct->DAC_Trigger | DAC_InitStruct->DAC_WaveGeneration | + DAC_InitStruct->DAC_LFSRUnmask_TriangleAmplitude | \ + DAC_InitStruct->DAC_OutputBuffer); + /* Calculate CR register value depending on DAC_Channel */ + tmpreg1 |= tmpreg2 << DAC_Channel; + /* Write to DAC CR */ + DAC->CR = tmpreg1; +} + +/** + * @brief Fills each DAC_InitStruct member with its default value. + * @param DAC_InitStruct: pointer to a DAC_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void DAC_StructInit(DAC_InitTypeDef* DAC_InitStruct) +{ +/*--------------- Reset DAC init structure parameters values -----------------*/ + /* Initialize the DAC_Trigger member */ + DAC_InitStruct->DAC_Trigger = DAC_Trigger_None; + /* Initialize the DAC_WaveGeneration member */ + DAC_InitStruct->DAC_WaveGeneration = DAC_WaveGeneration_None; + /* Initialize the DAC_LFSRUnmask_TriangleAmplitude member */ + DAC_InitStruct->DAC_LFSRUnmask_TriangleAmplitude = DAC_LFSRUnmask_Bit0; + /* Initialize the DAC_OutputBuffer member */ + DAC_InitStruct->DAC_OutputBuffer = DAC_OutputBuffer_Enable; +} + +/** + * @brief Enables or disables the specified DAC channel. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param NewState: new state of the DAC channel. + * This parameter can be: ENABLE or DISABLE. + * @note When the DAC channel is enabled the trigger source can no more be modified. + * @retval None + */ +void DAC_Cmd(uint32_t DAC_Channel, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected DAC channel */ + DAC->CR |= (DAC_CR_EN1 << DAC_Channel); + } + else + { + /* Disable the selected DAC channel */ + DAC->CR &= (~(DAC_CR_EN1 << DAC_Channel)); + } +} + +/** + * @brief Enables or disables the selected DAC channel software trigger. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param NewState: new state of the selected DAC channel software trigger. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DAC_SoftwareTriggerCmd(uint32_t DAC_Channel, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable software trigger for the selected DAC channel */ + DAC->SWTRIGR |= (uint32_t)DAC_SWTRIGR_SWTRIG1 << (DAC_Channel >> 4); + } + else + { + /* Disable software trigger for the selected DAC channel */ + DAC->SWTRIGR &= ~((uint32_t)DAC_SWTRIGR_SWTRIG1 << (DAC_Channel >> 4)); + } +} + +/** + * @brief Enables or disables simultaneously the two DAC channels software triggers. + * @param NewState: new state of the DAC channels software triggers. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DAC_DualSoftwareTriggerCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable software trigger for both DAC channels */ + DAC->SWTRIGR |= DUAL_SWTRIG_SET; + } + else + { + /* Disable software trigger for both DAC channels */ + DAC->SWTRIGR &= DUAL_SWTRIG_RESET; + } +} + +/** + * @brief Enables or disables the selected DAC channel wave generation. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_Wave: specifies the wave type to enable or disable. + * This parameter can be one of the following values: + * @arg DAC_Wave_Noise: noise wave generation + * @arg DAC_Wave_Triangle: triangle wave generation + * @param NewState: new state of the selected DAC channel wave generation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DAC_WaveGenerationCmd(uint32_t DAC_Channel, uint32_t DAC_Wave, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_WAVE(DAC_Wave)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected wave generation for the selected DAC channel */ + DAC->CR |= DAC_Wave << DAC_Channel; + } + else + { + /* Disable the selected wave generation for the selected DAC channel */ + DAC->CR &= ~(DAC_Wave << DAC_Channel); + } +} + +/** + * @brief Set the specified data holding register value for DAC channel1. + * @param DAC_Align: Specifies the data alignment for DAC channel1. + * This parameter can be one of the following values: + * @arg DAC_Align_8b_R: 8bit right data alignment selected + * @arg DAC_Align_12b_L: 12bit left data alignment selected + * @arg DAC_Align_12b_R: 12bit right data alignment selected + * @param Data: Data to be loaded in the selected data holding register. + * @retval None + */ +void DAC_SetChannel1Data(uint32_t DAC_Align, uint16_t Data) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_DAC_ALIGN(DAC_Align)); + assert_param(IS_DAC_DATA(Data)); + + tmp = (uint32_t)DAC_BASE; + tmp += DHR12R1_OFFSET + DAC_Align; + + /* Set the DAC channel1 selected data holding register */ + *(__IO uint32_t *) tmp = Data; +} + +/** + * @brief Set the specified data holding register value for DAC channel2. + * @param DAC_Align: Specifies the data alignment for DAC channel2. + * This parameter can be one of the following values: + * @arg DAC_Align_8b_R: 8bit right data alignment selected + * @arg DAC_Align_12b_L: 12bit left data alignment selected + * @arg DAC_Align_12b_R: 12bit right data alignment selected + * @param Data: Data to be loaded in the selected data holding register. + * @retval None + */ +void DAC_SetChannel2Data(uint32_t DAC_Align, uint16_t Data) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_DAC_ALIGN(DAC_Align)); + assert_param(IS_DAC_DATA(Data)); + + tmp = (uint32_t)DAC_BASE; + tmp += DHR12R2_OFFSET + DAC_Align; + + /* Set the DAC channel2 selected data holding register */ + *(__IO uint32_t *)tmp = Data; +} + +/** + * @brief Set the specified data holding register value for dual channel DAC. + * @param DAC_Align: Specifies the data alignment for dual channel DAC. + * This parameter can be one of the following values: + * @arg DAC_Align_8b_R: 8bit right data alignment selected + * @arg DAC_Align_12b_L: 12bit left data alignment selected + * @arg DAC_Align_12b_R: 12bit right data alignment selected + * @param Data2: Data for DAC Channel2 to be loaded in the selected data holding register. + * @param Data1: Data for DAC Channel1 to be loaded in the selected data holding register. + * @note In dual mode, a unique register access is required to write in both + * DAC channels at the same time. + * @retval None + */ +void DAC_SetDualChannelData(uint32_t DAC_Align, uint16_t Data2, uint16_t Data1) +{ + uint32_t data = 0, tmp = 0; + + /* Check the parameters */ + assert_param(IS_DAC_ALIGN(DAC_Align)); + assert_param(IS_DAC_DATA(Data1)); + assert_param(IS_DAC_DATA(Data2)); + + /* Calculate and set dual DAC data holding register value */ + if (DAC_Align == DAC_Align_8b_R) + { + data = ((uint32_t)Data2 << 8) | Data1; + } + else + { + data = ((uint32_t)Data2 << 16) | Data1; + } + + tmp = (uint32_t)DAC_BASE; + tmp += DHR12RD_OFFSET + DAC_Align; + + /* Set the dual DAC selected data holding register */ + *(__IO uint32_t *)tmp = data; +} + +/** + * @brief Returns the last data output value of the selected DAC channel. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @retval The selected DAC channel data output value. + */ +uint16_t DAC_GetDataOutputValue(uint32_t DAC_Channel) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + + tmp = (uint32_t) DAC_BASE ; + tmp += DOR_OFFSET + ((uint32_t)DAC_Channel >> 2); + + /* Returns the DAC channel data output register value */ + return (uint16_t) (*(__IO uint32_t*) tmp); +} +/** + * @} + */ + +/** @defgroup DAC_Group2 DMA management functions + * @brief DMA management functions + * +@verbatim + =============================================================================== + DMA management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified DAC channel DMA request. + * @note When enabled DMA1 is generated when an external trigger (EXTI Line9, + * TIM2, TIM4, TIM5, TIM6, TIM7 or TIM8 but not a software trigger) occurs. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param NewState: new state of the selected DAC channel DMA request. + * This parameter can be: ENABLE or DISABLE. + * @note The DAC channel1 is mapped on DMA1 Stream 5 channel7 which must be + * already configured. + * @note The DAC channel2 is mapped on DMA1 Stream 6 channel7 which must be + * already configured. + * @retval None + */ +void DAC_DMACmd(uint32_t DAC_Channel, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected DAC channel DMA request */ + DAC->CR |= (DAC_CR_DMAEN1 << DAC_Channel); + } + else + { + /* Disable the selected DAC channel DMA request */ + DAC->CR &= (~(DAC_CR_DMAEN1 << DAC_Channel)); + } +} +/** + * @} + */ + +/** @defgroup DAC_Group3 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified DAC interrupts. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_IT: specifies the DAC interrupt sources to be enabled or disabled. + * This parameter can be the following values: + * @arg DAC_IT_DMAUDR: DMA underrun interrupt mask + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @param NewState: new state of the specified DAC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DAC_ITConfig(uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_DAC_IT(DAC_IT)); + + if (NewState != DISABLE) + { + /* Enable the selected DAC interrupts */ + DAC->CR |= (DAC_IT << DAC_Channel); + } + else + { + /* Disable the selected DAC interrupts */ + DAC->CR &= (~(uint32_t)(DAC_IT << DAC_Channel)); + } +} + +/** + * @brief Checks whether the specified DAC flag is set or not. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_FLAG: specifies the flag to check. + * This parameter can be only of the following value: + * @arg DAC_FLAG_DMAUDR: DMA underrun flag + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @retval The new state of DAC_FLAG (SET or RESET). + */ +FlagStatus DAC_GetFlagStatus(uint32_t DAC_Channel, uint32_t DAC_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_FLAG(DAC_FLAG)); + + /* Check the status of the specified DAC flag */ + if ((DAC->SR & (DAC_FLAG << DAC_Channel)) != (uint8_t)RESET) + { + /* DAC_FLAG is set */ + bitstatus = SET; + } + else + { + /* DAC_FLAG is reset */ + bitstatus = RESET; + } + /* Return the DAC_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the DAC channel's pending flags. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_FLAG: specifies the flag to clear. + * This parameter can be of the following value: + * @arg DAC_FLAG_DMAUDR: DMA underrun flag + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @retval None + */ +void DAC_ClearFlag(uint32_t DAC_Channel, uint32_t DAC_FLAG) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_FLAG(DAC_FLAG)); + + /* Clear the selected DAC flags */ + DAC->SR = (DAC_FLAG << DAC_Channel); +} + +/** + * @brief Checks whether the specified DAC interrupt has occurred or not. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_IT: specifies the DAC interrupt source to check. + * This parameter can be the following values: + * @arg DAC_IT_DMAUDR: DMA underrun interrupt mask + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @retval The new state of DAC_IT (SET or RESET). + */ +ITStatus DAC_GetITStatus(uint32_t DAC_Channel, uint32_t DAC_IT) +{ + ITStatus bitstatus = RESET; + uint32_t enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_IT(DAC_IT)); + + /* Get the DAC_IT enable bit status */ + enablestatus = (DAC->CR & (DAC_IT << DAC_Channel)) ; + + /* Check the status of the specified DAC interrupt */ + if (((DAC->SR & (DAC_IT << DAC_Channel)) != (uint32_t)RESET) && enablestatus) + { + /* DAC_IT is set */ + bitstatus = SET; + } + else + { + /* DAC_IT is reset */ + bitstatus = RESET; + } + /* Return the DAC_IT status */ + return bitstatus; +} + +/** + * @brief Clears the DAC channel's interrupt pending bits. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_IT: specifies the DAC interrupt pending bit to clear. + * This parameter can be the following values: + * @arg DAC_IT_DMAUDR: DMA underrun interrupt mask + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @retval None + */ +void DAC_ClearITPendingBit(uint32_t DAC_Channel, uint32_t DAC_IT) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_IT(DAC_IT)); + + /* Clear the selected DAC interrupt pending bits */ + DAC->SR = (DAC_IT << DAC_Channel); +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dbgmcu.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dbgmcu.c new file mode 100644 index 00000000..08000cea --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dbgmcu.c @@ -0,0 +1,180 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dbgmcu.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides all the DBGMCU firmware functions. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_dbgmcu.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup DBGMCU + * @brief DBGMCU driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define IDCODE_DEVID_MASK ((uint32_t)0x00000FFF) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup DBGMCU_Private_Functions + * @{ + */ + +/** + * @brief Returns the device revision identifier. + * @param None + * @retval Device revision identifier + */ +uint32_t DBGMCU_GetREVID(void) +{ + return(DBGMCU->IDCODE >> 16); +} + +/** + * @brief Returns the device identifier. + * @param None + * @retval Device identifier + */ +uint32_t DBGMCU_GetDEVID(void) +{ + return(DBGMCU->IDCODE & IDCODE_DEVID_MASK); +} + +/** + * @brief Configures low power mode behavior when the MCU is in Debug mode. + * @param DBGMCU_Periph: specifies the low power mode. + * This parameter can be any combination of the following values: + * @arg DBGMCU_SLEEP: Keep debugger connection during SLEEP mode + * @arg DBGMCU_STOP: Keep debugger connection during STOP mode + * @arg DBGMCU_STANDBY: Keep debugger connection during STANDBY mode + * @param NewState: new state of the specified low power mode in Debug mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DBGMCU_PERIPH(DBGMCU_Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + DBGMCU->CR |= DBGMCU_Periph; + } + else + { + DBGMCU->CR &= ~DBGMCU_Periph; + } +} + +/** + * @brief Configures APB1 peripheral behavior when the MCU is in Debug mode. + * @param DBGMCU_Periph: specifies the APB1 peripheral. + * This parameter can be any combination of the following values: + * @arg DBGMCU_TIM2_STOP: TIM2 counter stopped when Core is halted + * @arg DBGMCU_TIM3_STOP: TIM3 counter stopped when Core is halted + * @arg DBGMCU_TIM4_STOP: TIM4 counter stopped when Core is halted + * @arg DBGMCU_TIM5_STOP: TIM5 counter stopped when Core is halted + * @arg DBGMCU_TIM6_STOP: TIM6 counter stopped when Core is halted + * @arg DBGMCU_TIM7_STOP: TIM7 counter stopped when Core is halted + * @arg DBGMCU_TIM12_STOP: TIM12 counter stopped when Core is halted + * @arg DBGMCU_TIM13_STOP: TIM13 counter stopped when Core is halted + * @arg DBGMCU_TIM14_STOP: TIM14 counter stopped when Core is halted + * @arg DBGMCU_RTC_STOP: RTC Wakeup counter stopped when Core is halted. + * @arg DBGMCU_WWDG_STOP: Debug WWDG stopped when Core is halted + * @arg DBGMCU_IWDG_STOP: Debug IWDG stopped when Core is halted + * @arg DBGMCU_I2C1_SMBUS_TIMEOUT: I2C1 SMBUS timeout mode stopped when Core is halted + * @arg DBGMCU_I2C2_SMBUS_TIMEOUT: I2C2 SMBUS timeout mode stopped when Core is halted + * @arg DBGMCU_I2C3_SMBUS_TIMEOUT: I2C3 SMBUS timeout mode stopped when Core is halted + * @arg DBGMCU_CAN2_STOP: Debug CAN1 stopped when Core is halted + * @arg DBGMCU_CAN1_STOP: Debug CAN2 stopped when Core is halted + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DBGMCU_APB1PERIPH(DBGMCU_Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + DBGMCU->APB1FZ |= DBGMCU_Periph; + } + else + { + DBGMCU->APB1FZ &= ~DBGMCU_Periph; + } +} + +/** + * @brief Configures APB2 peripheral behavior when the MCU is in Debug mode. + * @param DBGMCU_Periph: specifies the APB2 peripheral. + * This parameter can be any combination of the following values: + * @arg DBGMCU_TIM1_STOP: TIM1 counter stopped when Core is halted + * @arg DBGMCU_TIM8_STOP: TIM8 counter stopped when Core is halted + * @arg DBGMCU_TIM9_STOP: TIM9 counter stopped when Core is halted + * @arg DBGMCU_TIM10_STOP: TIM10 counter stopped when Core is halted + * @arg DBGMCU_TIM11_STOP: TIM11 counter stopped when Core is halted + * @param NewState: new state of the specified peripheral in Debug mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DBGMCU_APB2PERIPH(DBGMCU_Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + DBGMCU->APB2FZ |= DBGMCU_Periph; + } + else + { + DBGMCU->APB2FZ &= ~DBGMCU_Periph; + } +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dcmi.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dcmi.c new file mode 100644 index 00000000..09685a62 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dcmi.c @@ -0,0 +1,540 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dcmi.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the DCMI peripheral: + * - Initialization and Configuration + * - Image capture functions + * - Interrupts and flags management + * + * @verbatim + * + * + * =================================================================== + * How to use this driver + * =================================================================== + * + * The sequence below describes how to use this driver to capture image + * from a camera module connected to the DCMI Interface. + * This sequence does not take into account the configuration of the + * camera module, which should be made before to configure and enable + * the DCMI to capture images. + * + * 1. Enable the clock for the DCMI and associated GPIOs using the following functions: + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_DCMI, ENABLE); + * RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + * + * 2. DCMI pins configuration + * - Connect the involved DCMI pins to AF13 using the following function + * GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_DCMI); + * - Configure these DCMI pins in alternate function mode by calling the function + * GPIO_Init(); + * + * 3. Declare a DCMI_InitTypeDef structure, for example: + * DCMI_InitTypeDef DCMI_InitStructure; + * and fill the DCMI_InitStructure variable with the allowed values + * of the structure member. + * + * 4. Initialize the DCMI interface by calling the function + * DCMI_Init(&DCMI_InitStructure); + * + * 5. Configure the DMA2_Stream1 channel1 to transfer Data from DCMI DR + * register to the destination memory buffer. + * + * 6. Enable DCMI interface using the function + * DCMI_Cmd(ENABLE); + * + * 7. Start the image capture using the function + * DCMI_CaptureCmd(ENABLE); + * + * 8. At this stage the DCMI interface waits for the first start of frame, + * then a DMA request is generated continuously/once (depending on the + * mode used, Continuous/Snapshot) to transfer the received data into + * the destination memory. + * + * @note If you need to capture only a rectangular window from the received + * image, you have to use the DCMI_CROPConfig() function to configure + * the coordinates and size of the window to be captured, then enable + * the Crop feature using DCMI_CROPCmd(ENABLE); + * In this case, the Crop configuration should be made before to enable + * and start the DCMI interface. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_dcmi.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup DCMI + * @brief DCMI driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup DCMI_Private_Functions + * @{ + */ + +/** @defgroup DCMI_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the DCMI registers to their default reset values. + * @param None + * @retval None + */ +void DCMI_DeInit(void) +{ + DCMI->CR = 0x0; + DCMI->IER = 0x0; + DCMI->ICR = 0x1F; + DCMI->ESCR = 0x0; + DCMI->ESUR = 0x0; + DCMI->CWSTRTR = 0x0; + DCMI->CWSIZER = 0x0; +} + +/** + * @brief Initializes the DCMI according to the specified parameters in the DCMI_InitStruct. + * @param DCMI_InitStruct: pointer to a DCMI_InitTypeDef structure that contains + * the configuration information for the DCMI. + * @retval None + */ +void DCMI_Init(DCMI_InitTypeDef* DCMI_InitStruct) +{ + uint32_t temp = 0x0; + + /* Check the parameters */ + assert_param(IS_DCMI_CAPTURE_MODE(DCMI_InitStruct->DCMI_CaptureMode)); + assert_param(IS_DCMI_SYNCHRO(DCMI_InitStruct->DCMI_SynchroMode)); + assert_param(IS_DCMI_PCKPOLARITY(DCMI_InitStruct->DCMI_PCKPolarity)); + assert_param(IS_DCMI_VSPOLARITY(DCMI_InitStruct->DCMI_VSPolarity)); + assert_param(IS_DCMI_HSPOLARITY(DCMI_InitStruct->DCMI_HSPolarity)); + assert_param(IS_DCMI_CAPTURE_RATE(DCMI_InitStruct->DCMI_CaptureRate)); + assert_param(IS_DCMI_EXTENDED_DATA(DCMI_InitStruct->DCMI_ExtendedDataMode)); + + /* The DCMI configuration registers should be programmed correctly before + enabling the CR_ENABLE Bit and the CR_CAPTURE Bit */ + DCMI->CR &= ~(DCMI_CR_ENABLE | DCMI_CR_CAPTURE); + + /* Reset the old DCMI configuration */ + temp = DCMI->CR; + + temp &= ~((uint32_t)DCMI_CR_CM | DCMI_CR_ESS | DCMI_CR_PCKPOL | + DCMI_CR_HSPOL | DCMI_CR_VSPOL | DCMI_CR_FCRC_0 | + DCMI_CR_FCRC_1 | DCMI_CR_EDM_0 | DCMI_CR_EDM_1); + + /* Sets the new configuration of the DCMI peripheral */ + temp |= ((uint32_t)DCMI_InitStruct->DCMI_CaptureMode | + DCMI_InitStruct->DCMI_SynchroMode | + DCMI_InitStruct->DCMI_PCKPolarity | + DCMI_InitStruct->DCMI_VSPolarity | + DCMI_InitStruct->DCMI_HSPolarity | + DCMI_InitStruct->DCMI_CaptureRate | + DCMI_InitStruct->DCMI_ExtendedDataMode); + + DCMI->CR = temp; +} + +/** + * @brief Fills each DCMI_InitStruct member with its default value. + * @param DCMI_InitStruct : pointer to a DCMI_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void DCMI_StructInit(DCMI_InitTypeDef* DCMI_InitStruct) +{ + /* Set the default configuration */ + DCMI_InitStruct->DCMI_CaptureMode = DCMI_CaptureMode_Continuous; + DCMI_InitStruct->DCMI_SynchroMode = DCMI_SynchroMode_Hardware; + DCMI_InitStruct->DCMI_PCKPolarity = DCMI_PCKPolarity_Falling; + DCMI_InitStruct->DCMI_VSPolarity = DCMI_VSPolarity_Low; + DCMI_InitStruct->DCMI_HSPolarity = DCMI_HSPolarity_Low; + DCMI_InitStruct->DCMI_CaptureRate = DCMI_CaptureRate_All_Frame; + DCMI_InitStruct->DCMI_ExtendedDataMode = DCMI_ExtendedDataMode_8b; +} + +/** + * @brief Initializes the DCMI peripheral CROP mode according to the specified + * parameters in the DCMI_CROPInitStruct. + * @note This function should be called before to enable and start the DCMI interface. + * @param DCMI_CROPInitStruct: pointer to a DCMI_CROPInitTypeDef structure that + * contains the configuration information for the DCMI peripheral CROP mode. + * @retval None + */ +void DCMI_CROPConfig(DCMI_CROPInitTypeDef* DCMI_CROPInitStruct) +{ + /* Sets the CROP window coordinates */ + DCMI->CWSTRTR = (uint32_t)((uint32_t)DCMI_CROPInitStruct->DCMI_HorizontalOffsetCount | + ((uint32_t)DCMI_CROPInitStruct->DCMI_VerticalStartLine << 16)); + + /* Sets the CROP window size */ + DCMI->CWSIZER = (uint32_t)(DCMI_CROPInitStruct->DCMI_CaptureCount | + ((uint32_t)DCMI_CROPInitStruct->DCMI_VerticalLineCount << 16)); +} + +/** + * @brief Enables or disables the DCMI Crop feature. + * @note This function should be called before to enable and start the DCMI interface. + * @param NewState: new state of the DCMI Crop feature. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_CROPCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DCMI Crop feature */ + DCMI->CR |= (uint32_t)DCMI_CR_CROP; + } + else + { + /* Disable the DCMI Crop feature */ + DCMI->CR &= ~(uint32_t)DCMI_CR_CROP; + } +} + +/** + * @brief Sets the embedded synchronization codes + * @param DCMI_CodesInitTypeDef: pointer to a DCMI_CodesInitTypeDef structure that + * contains the embedded synchronization codes for the DCMI peripheral. + * @retval None + */ +void DCMI_SetEmbeddedSynchroCodes(DCMI_CodesInitTypeDef* DCMI_CodesInitStruct) +{ + DCMI->ESCR = (uint32_t)(DCMI_CodesInitStruct->DCMI_FrameStartCode | + ((uint32_t)DCMI_CodesInitStruct->DCMI_LineStartCode << 8)| + ((uint32_t)DCMI_CodesInitStruct->DCMI_LineEndCode << 16)| + ((uint32_t)DCMI_CodesInitStruct->DCMI_FrameEndCode << 24)); +} + +/** + * @brief Enables or disables the DCMI JPEG format. + * @note The Crop and Embedded Synchronization features cannot be used in this mode. + * @param NewState: new state of the DCMI JPEG format. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_JPEGCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DCMI JPEG format */ + DCMI->CR |= (uint32_t)DCMI_CR_JPEG; + } + else + { + /* Disable the DCMI JPEG format */ + DCMI->CR &= ~(uint32_t)DCMI_CR_JPEG; + } +} +/** + * @} + */ + +/** @defgroup DCMI_Group2 Image capture functions + * @brief Image capture functions + * +@verbatim + =============================================================================== + Image capture functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the DCMI interface. + * @param NewState: new state of the DCMI interface. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_Cmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DCMI by setting ENABLE bit */ + DCMI->CR |= (uint32_t)DCMI_CR_ENABLE; + } + else + { + /* Disable the DCMI by clearing ENABLE bit */ + DCMI->CR &= ~(uint32_t)DCMI_CR_ENABLE; + } +} + +/** + * @brief Enables or disables the DCMI Capture. + * @param NewState: new state of the DCMI capture. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_CaptureCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DCMI Capture */ + DCMI->CR |= (uint32_t)DCMI_CR_CAPTURE; + } + else + { + /* Disable the DCMI Capture */ + DCMI->CR &= ~(uint32_t)DCMI_CR_CAPTURE; + } +} + +/** + * @brief Reads the data stored in the DR register. + * @param None + * @retval Data register value + */ +uint32_t DCMI_ReadData(void) +{ + return DCMI->DR; +} +/** + * @} + */ + +/** @defgroup DCMI_Group3 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the DCMI interface interrupts. + * @param DCMI_IT: specifies the DCMI interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask + * @arg DCMI_IT_OVF: Overflow interrupt mask + * @arg DCMI_IT_ERR: Synchronization error interrupt mask + * @arg DCMI_IT_VSYNC: VSYNC interrupt mask + * @arg DCMI_IT_LINE: Line interrupt mask + * @param NewState: new state of the specified DCMI interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_ITConfig(uint16_t DCMI_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DCMI_CONFIG_IT(DCMI_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the Interrupt sources */ + DCMI->IER |= DCMI_IT; + } + else + { + /* Disable the Interrupt sources */ + DCMI->IER &= (uint16_t)(~DCMI_IT); + } +} + +/** + * @brief Checks whether the DCMI interface flag is set or not. + * @param DCMI_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg DCMI_FLAG_FRAMERI: Frame capture complete Raw flag mask + * @arg DCMI_FLAG_OVFRI: Overflow Raw flag mask + * @arg DCMI_FLAG_ERRRI: Synchronization error Raw flag mask + * @arg DCMI_FLAG_VSYNCRI: VSYNC Raw flag mask + * @arg DCMI_FLAG_LINERI: Line Raw flag mask + * @arg DCMI_FLAG_FRAMEMI: Frame capture complete Masked flag mask + * @arg DCMI_FLAG_OVFMI: Overflow Masked flag mask + * @arg DCMI_FLAG_ERRMI: Synchronization error Masked flag mask + * @arg DCMI_FLAG_VSYNCMI: VSYNC Masked flag mask + * @arg DCMI_FLAG_LINEMI: Line Masked flag mask + * @arg DCMI_FLAG_HSYNC: HSYNC flag mask + * @arg DCMI_FLAG_VSYNC: VSYNC flag mask + * @arg DCMI_FLAG_FNE: Fifo not empty flag mask + * @retval The new state of DCMI_FLAG (SET or RESET). + */ +FlagStatus DCMI_GetFlagStatus(uint16_t DCMI_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t dcmireg, tempreg = 0; + + /* Check the parameters */ + assert_param(IS_DCMI_GET_FLAG(DCMI_FLAG)); + + /* Get the DCMI register index */ + dcmireg = (((uint16_t)DCMI_FLAG) >> 12); + + if (dcmireg == 0x00) /* The FLAG is in RISR register */ + { + tempreg= DCMI->RISR; + } + else if (dcmireg == 0x02) /* The FLAG is in SR register */ + { + tempreg = DCMI->SR; + } + else /* The FLAG is in MISR register */ + { + tempreg = DCMI->MISR; + } + + if ((tempreg & DCMI_FLAG) != (uint16_t)RESET ) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the DCMI_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the DCMI's pending flags. + * @param DCMI_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg DCMI_FLAG_FRAMERI: Frame capture complete Raw flag mask + * @arg DCMI_FLAG_OVFRI: Overflow Raw flag mask + * @arg DCMI_FLAG_ERRRI: Synchronization error Raw flag mask + * @arg DCMI_FLAG_VSYNCRI: VSYNC Raw flag mask + * @arg DCMI_FLAG_LINERI: Line Raw flag mask + * @retval None + */ +void DCMI_ClearFlag(uint16_t DCMI_FLAG) +{ + /* Check the parameters */ + assert_param(IS_DCMI_CLEAR_FLAG(DCMI_FLAG)); + + /* Clear the flag by writing in the ICR register 1 in the corresponding + Flag position*/ + + DCMI->ICR = DCMI_FLAG; +} + +/** + * @brief Checks whether the DCMI interrupt has occurred or not. + * @param DCMI_IT: specifies the DCMI interrupt source to check. + * This parameter can be one of the following values: + * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask + * @arg DCMI_IT_OVF: Overflow interrupt mask + * @arg DCMI_IT_ERR: Synchronization error interrupt mask + * @arg DCMI_IT_VSYNC: VSYNC interrupt mask + * @arg DCMI_IT_LINE: Line interrupt mask + * @retval The new state of DCMI_IT (SET or RESET). + */ +ITStatus DCMI_GetITStatus(uint16_t DCMI_IT) +{ + ITStatus bitstatus = RESET; + uint32_t itstatus = 0; + + /* Check the parameters */ + assert_param(IS_DCMI_GET_IT(DCMI_IT)); + + itstatus = DCMI->MISR & DCMI_IT; /* Only masked interrupts are checked */ + + if ((itstatus != (uint16_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the DCMI's interrupt pending bits. + * @param DCMI_IT: specifies the DCMI interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask + * @arg DCMI_IT_OVF: Overflow interrupt mask + * @arg DCMI_IT_ERR: Synchronization error interrupt mask + * @arg DCMI_IT_VSYNC: VSYNC interrupt mask + * @arg DCMI_IT_LINE: Line interrupt mask + * @retval None + */ +void DCMI_ClearITPendingBit(uint16_t DCMI_IT) +{ + /* Clear the interrupt pending Bit by writing in the ICR register 1 in the + corresponding pending Bit position*/ + + DCMI->ICR = DCMI_IT; +} +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dma.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dma.c new file mode 100644 index 00000000..9e8ec04c --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_dma.c @@ -0,0 +1,1289 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dma.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Direct Memory Access controller (DMA): + * - Initialization and Configuration + * - Data Counter + * - Double Buffer mode configuration and command + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable The DMA controller clock using RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_DMA1, ENABLE) + * function for DMA1 or using RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_DMA2, ENABLE) + * function for DMA2. + * + * 2. Enable and configure the peripheral to be connected to the DMA Stream + * (except for internal SRAM / FLASH memories: no initialization is + * necessary). + * + * 3. For a given Stream, program the required configuration through following parameters: + * Source and Destination addresses, Transfer Direction, Transfer size, Source and Destination + * data formats, Circular or Normal mode, Stream Priority level, Source and Destination + * Incrementation mode, FIFO mode and its Threshold (if needed), Burst mode for Source and/or + * Destination (if needed) using the DMA_Init() function. + * To avoid filling un-nesecessary fields, you can call DMA_StructInit() function + * to initialize a given structure with default values (reset values), the modify + * only necessary fields (ie. Source and Destination addresses, Transfer size and Data Formats). + * + * 4. Enable the NVIC and the corresponding interrupt(s) using the function + * DMA_ITConfig() if you need to use DMA interrupts. + * + * 5. Optionally, if the Circular mode is enabled, you can use the Double buffer mode by configuring + * the second Memory address and the first Memory to be used through the function + * DMA_DoubleBufferModeConfig(). Then enable the Double buffer mode through the function + * DMA_DoubleBufferModeCmd(). These operations must be done before step 6. + * + * 6. Enable the DMA stream using the DMA_Cmd() function. + * + * 7. Activate the needed Stream Request using PPP_DMACmd() function for + * any PPP peripheral except internal SRAM and FLASH (ie. SPI, USART ...) + * The function allowing this operation is provided in each PPP peripheral + * driver (ie. SPI_DMACmd for SPI peripheral). + * Once the Stream is enabled, it is not possible to modify its configuration + * unless the stream is stopped and disabled. + * After enabling the Stream, it is advised to monitor the EN bit status using + * the function DMA_GetCmdStatus(). In case of configuration errors or bus errors + * this bit will remain reset and all transfers on this Stream will remain on hold. + * + * 8. Optionally, you can configure the number of data to be transferred + * when the Stream is disabled (ie. after each Transfer Complete event + * or when a Transfer Error occurs) using the function DMA_SetCurrDataCounter(). + * And you can get the number of remaining data to be transferred using + * the function DMA_GetCurrDataCounter() at run time (when the DMA Stream is + * enabled and running). + * + * 9. To control DMA events you can use one of the following + * two methods: + * a- Check on DMA Stream flags using the function DMA_GetFlagStatus(). + * b- Use DMA interrupts through the function DMA_ITConfig() at initialization + * phase and DMA_GetITStatus() function into interrupt routines in + * communication phase. + * After checking on a flag you should clear it using DMA_ClearFlag() + * function. And after checking on an interrupt event you should + * clear it using DMA_ClearITPendingBit() function. + * + * 10. Optionally, if Circular mode and Double Buffer mode are enabled, you can modify + * the Memory Addresses using the function DMA_MemoryTargetConfig(). Make sure that + * the Memory Address to be modified is not the one currently in use by DMA Stream. + * This condition can be monitored using the function DMA_GetCurrentMemoryTarget(). + * + * 11. Optionally, Pause-Resume operations may be performed: + * The DMA_Cmd() function may be used to perform Pause-Resume operation. When a + * transfer is ongoing, calling this function to disable the Stream will cause the + * transfer to be paused. All configuration registers and the number of remaining + * data will be preserved. When calling again this function to re-enable the Stream, + * the transfer will be resumed from the point where it was paused. + * + * @note Memory-to-Memory transfer is possible by setting the address of the memory into + * the Peripheral registers. In this mode, Circular mode and Double Buffer mode + * are not allowed. + * + * @note The FIFO is used mainly to reduce bus usage and to allow data packing/unpacking: it is + * possible to set different Data Sizes for the Peripheral and the Memory (ie. you can set + * Half-Word data size for the peripheral to access its data register and set Word data size + * for the Memory to gain in access time. Each two Half-words will be packed and written in + * a single access to a Word in the Memory). + * + * @note When FIFO is disabled, it is not allowed to configure different Data Sizes for Source + * and Destination. In this case the Peripheral Data Size will be applied to both Source + * and Destination. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_dma.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup DMA + * @brief DMA driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* Masks Definition */ +#define TRANSFER_IT_ENABLE_MASK (uint32_t)(DMA_SxCR_TCIE | DMA_SxCR_HTIE | \ + DMA_SxCR_TEIE | DMA_SxCR_DMEIE) + +#define DMA_Stream0_IT_MASK (uint32_t)(DMA_LISR_FEIF0 | DMA_LISR_DMEIF0 | \ + DMA_LISR_TEIF0 | DMA_LISR_HTIF0 | \ + DMA_LISR_TCIF0) + +#define DMA_Stream1_IT_MASK (uint32_t)(DMA_Stream0_IT_MASK << 6) +#define DMA_Stream2_IT_MASK (uint32_t)(DMA_Stream0_IT_MASK << 16) +#define DMA_Stream3_IT_MASK (uint32_t)(DMA_Stream0_IT_MASK << 22) +#define DMA_Stream4_IT_MASK (uint32_t)(DMA_Stream0_IT_MASK | (uint32_t)0x20000000) +#define DMA_Stream5_IT_MASK (uint32_t)(DMA_Stream1_IT_MASK | (uint32_t)0x20000000) +#define DMA_Stream6_IT_MASK (uint32_t)(DMA_Stream2_IT_MASK | (uint32_t)0x20000000) +#define DMA_Stream7_IT_MASK (uint32_t)(DMA_Stream3_IT_MASK | (uint32_t)0x20000000) +#define TRANSFER_IT_MASK (uint32_t)0x0F3C0F3C +#define HIGH_ISR_MASK (uint32_t)0x20000000 +#define RESERVED_MASK (uint32_t)0x0F7D0F7D + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + + +/** @defgroup DMA_Private_Functions + * @{ + */ + +/** @defgroup DMA_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + + This subsection provides functions allowing to initialize the DMA Stream source + and destination addresses, incrementation and data sizes, transfer direction, + buffer size, circular/normal mode selection, memory-to-memory mode selection + and Stream priority value. + + The DMA_Init() function follows the DMA configuration procedures as described in + reference manual (RM0033) except the first point: waiting on EN bit to be reset. + This condition should be checked by user application using the function DMA_GetCmdStatus() + before calling the DMA_Init() function. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitialize the DMAy Streamx registers to their default reset values. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @retval None + */ +void DMA_DeInit(DMA_Stream_TypeDef* DMAy_Streamx) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Disable the selected DMAy Streamx */ + DMAy_Streamx->CR &= ~((uint32_t)DMA_SxCR_EN); + + /* Reset DMAy Streamx control register */ + DMAy_Streamx->CR = 0; + + /* Reset DMAy Streamx Number of Data to Transfer register */ + DMAy_Streamx->NDTR = 0; + + /* Reset DMAy Streamx peripheral address register */ + DMAy_Streamx->PAR = 0; + + /* Reset DMAy Streamx memory 0 address register */ + DMAy_Streamx->M0AR = 0; + + /* Reset DMAy Streamx memory 1 address register */ + DMAy_Streamx->M1AR = 0; + + /* Reset DMAy Streamx FIFO control register */ + DMAy_Streamx->FCR = (uint32_t)0x00000021; + + /* Reset interrupt pending bits for the selected stream */ + if (DMAy_Streamx == DMA1_Stream0) + { + /* Reset interrupt pending bits for DMA1 Stream0 */ + DMA1->LIFCR = DMA_Stream0_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream1) + { + /* Reset interrupt pending bits for DMA1 Stream1 */ + DMA1->LIFCR = DMA_Stream1_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream2) + { + /* Reset interrupt pending bits for DMA1 Stream2 */ + DMA1->LIFCR = DMA_Stream2_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream3) + { + /* Reset interrupt pending bits for DMA1 Stream3 */ + DMA1->LIFCR = DMA_Stream3_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream4) + { + /* Reset interrupt pending bits for DMA1 Stream4 */ + DMA1->HIFCR = DMA_Stream4_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream5) + { + /* Reset interrupt pending bits for DMA1 Stream5 */ + DMA1->HIFCR = DMA_Stream5_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream6) + { + /* Reset interrupt pending bits for DMA1 Stream6 */ + DMA1->HIFCR = (uint32_t)DMA_Stream6_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream7) + { + /* Reset interrupt pending bits for DMA1 Stream7 */ + DMA1->HIFCR = DMA_Stream7_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream0) + { + /* Reset interrupt pending bits for DMA2 Stream0 */ + DMA2->LIFCR = DMA_Stream0_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream1) + { + /* Reset interrupt pending bits for DMA2 Stream1 */ + DMA2->LIFCR = DMA_Stream1_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream2) + { + /* Reset interrupt pending bits for DMA2 Stream2 */ + DMA2->LIFCR = DMA_Stream2_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream3) + { + /* Reset interrupt pending bits for DMA2 Stream3 */ + DMA2->LIFCR = DMA_Stream3_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream4) + { + /* Reset interrupt pending bits for DMA2 Stream4 */ + DMA2->HIFCR = DMA_Stream4_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream5) + { + /* Reset interrupt pending bits for DMA2 Stream5 */ + DMA2->HIFCR = DMA_Stream5_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream6) + { + /* Reset interrupt pending bits for DMA2 Stream6 */ + DMA2->HIFCR = DMA_Stream6_IT_MASK; + } + else + { + if (DMAy_Streamx == DMA2_Stream7) + { + /* Reset interrupt pending bits for DMA2 Stream7 */ + DMA2->HIFCR = DMA_Stream7_IT_MASK; + } + } +} + +/** + * @brief Initializes the DMAy Streamx according to the specified parameters in + * the DMA_InitStruct structure. + * @note Before calling this function, it is recommended to check that the Stream + * is actually disabled using the function DMA_GetCmdStatus(). + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_InitStruct: pointer to a DMA_InitTypeDef structure that contains + * the configuration information for the specified DMA Stream. + * @retval None + */ +void DMA_Init(DMA_Stream_TypeDef* DMAy_Streamx, DMA_InitTypeDef* DMA_InitStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CHANNEL(DMA_InitStruct->DMA_Channel)); + assert_param(IS_DMA_DIRECTION(DMA_InitStruct->DMA_DIR)); + assert_param(IS_DMA_BUFFER_SIZE(DMA_InitStruct->DMA_BufferSize)); + assert_param(IS_DMA_PERIPHERAL_INC_STATE(DMA_InitStruct->DMA_PeripheralInc)); + assert_param(IS_DMA_MEMORY_INC_STATE(DMA_InitStruct->DMA_MemoryInc)); + assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(DMA_InitStruct->DMA_PeripheralDataSize)); + assert_param(IS_DMA_MEMORY_DATA_SIZE(DMA_InitStruct->DMA_MemoryDataSize)); + assert_param(IS_DMA_MODE(DMA_InitStruct->DMA_Mode)); + assert_param(IS_DMA_PRIORITY(DMA_InitStruct->DMA_Priority)); + assert_param(IS_DMA_FIFO_MODE_STATE(DMA_InitStruct->DMA_FIFOMode)); + assert_param(IS_DMA_FIFO_THRESHOLD(DMA_InitStruct->DMA_FIFOThreshold)); + assert_param(IS_DMA_MEMORY_BURST(DMA_InitStruct->DMA_MemoryBurst)); + assert_param(IS_DMA_PERIPHERAL_BURST(DMA_InitStruct->DMA_PeripheralBurst)); + + /*------------------------- DMAy Streamx CR Configuration ------------------*/ + /* Get the DMAy_Streamx CR value */ + tmpreg = DMAy_Streamx->CR; + + /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC and DIR bits */ + tmpreg &= ((uint32_t)~(DMA_SxCR_CHSEL | DMA_SxCR_MBURST | DMA_SxCR_PBURST | \ + DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \ + DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \ + DMA_SxCR_DIR)); + + /* Configure DMAy Streamx: */ + /* Set CHSEL bits according to DMA_CHSEL value */ + /* Set DIR bits according to DMA_DIR value */ + /* Set PINC bit according to DMA_PeripheralInc value */ + /* Set MINC bit according to DMA_MemoryInc value */ + /* Set PSIZE bits according to DMA_PeripheralDataSize value */ + /* Set MSIZE bits according to DMA_MemoryDataSize value */ + /* Set CIRC bit according to DMA_Mode value */ + /* Set PL bits according to DMA_Priority value */ + /* Set MBURST bits according to DMA_MemoryBurst value */ + /* Set PBURST bits according to DMA_PeripheralBurst value */ + tmpreg |= DMA_InitStruct->DMA_Channel | DMA_InitStruct->DMA_DIR | + DMA_InitStruct->DMA_PeripheralInc | DMA_InitStruct->DMA_MemoryInc | + DMA_InitStruct->DMA_PeripheralDataSize | DMA_InitStruct->DMA_MemoryDataSize | + DMA_InitStruct->DMA_Mode | DMA_InitStruct->DMA_Priority | + DMA_InitStruct->DMA_MemoryBurst | DMA_InitStruct->DMA_PeripheralBurst; + + /* Write to DMAy Streamx CR register */ + DMAy_Streamx->CR = tmpreg; + + /*------------------------- DMAy Streamx FCR Configuration -----------------*/ + /* Get the DMAy_Streamx FCR value */ + tmpreg = DMAy_Streamx->FCR; + + /* Clear DMDIS and FTH bits */ + tmpreg &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); + + /* Configure DMAy Streamx FIFO: + Set DMDIS bits according to DMA_FIFOMode value + Set FTH bits according to DMA_FIFOThreshold value */ + tmpreg |= DMA_InitStruct->DMA_FIFOMode | DMA_InitStruct->DMA_FIFOThreshold; + + /* Write to DMAy Streamx CR */ + DMAy_Streamx->FCR = tmpreg; + + /*------------------------- DMAy Streamx NDTR Configuration ----------------*/ + /* Write to DMAy Streamx NDTR register */ + DMAy_Streamx->NDTR = DMA_InitStruct->DMA_BufferSize; + + /*------------------------- DMAy Streamx PAR Configuration -----------------*/ + /* Write to DMAy Streamx PAR */ + DMAy_Streamx->PAR = DMA_InitStruct->DMA_PeripheralBaseAddr; + + /*------------------------- DMAy Streamx M0AR Configuration ----------------*/ + /* Write to DMAy Streamx M0AR */ + DMAy_Streamx->M0AR = DMA_InitStruct->DMA_Memory0BaseAddr; +} + +/** + * @brief Fills each DMA_InitStruct member with its default value. + * @param DMA_InitStruct : pointer to a DMA_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void DMA_StructInit(DMA_InitTypeDef* DMA_InitStruct) +{ + /*-------------- Reset DMA init structure parameters values ----------------*/ + /* Initialize the DMA_Channel member */ + DMA_InitStruct->DMA_Channel = 0; + + /* Initialize the DMA_PeripheralBaseAddr member */ + DMA_InitStruct->DMA_PeripheralBaseAddr = 0; + + /* Initialize the DMA_Memory0BaseAddr member */ + DMA_InitStruct->DMA_Memory0BaseAddr = 0; + + /* Initialize the DMA_DIR member */ + DMA_InitStruct->DMA_DIR = DMA_DIR_PeripheralToMemory; + + /* Initialize the DMA_BufferSize member */ + DMA_InitStruct->DMA_BufferSize = 0; + + /* Initialize the DMA_PeripheralInc member */ + DMA_InitStruct->DMA_PeripheralInc = DMA_PeripheralInc_Disable; + + /* Initialize the DMA_MemoryInc member */ + DMA_InitStruct->DMA_MemoryInc = DMA_MemoryInc_Disable; + + /* Initialize the DMA_PeripheralDataSize member */ + DMA_InitStruct->DMA_PeripheralDataSize = DMA_PeripheralDataSize_Byte; + + /* Initialize the DMA_MemoryDataSize member */ + DMA_InitStruct->DMA_MemoryDataSize = DMA_MemoryDataSize_Byte; + + /* Initialize the DMA_Mode member */ + DMA_InitStruct->DMA_Mode = DMA_Mode_Normal; + + /* Initialize the DMA_Priority member */ + DMA_InitStruct->DMA_Priority = DMA_Priority_Low; + + /* Initialize the DMA_FIFOMode member */ + DMA_InitStruct->DMA_FIFOMode = DMA_FIFOMode_Disable; + + /* Initialize the DMA_FIFOThreshold member */ + DMA_InitStruct->DMA_FIFOThreshold = DMA_FIFOThreshold_1QuarterFull; + + /* Initialize the DMA_MemoryBurst member */ + DMA_InitStruct->DMA_MemoryBurst = DMA_MemoryBurst_Single; + + /* Initialize the DMA_PeripheralBurst member */ + DMA_InitStruct->DMA_PeripheralBurst = DMA_PeripheralBurst_Single; +} + +/** + * @brief Enables or disables the specified DMAy Streamx. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param NewState: new state of the DMAy Streamx. + * This parameter can be: ENABLE or DISABLE. + * + * @note This function may be used to perform Pause-Resume operation. When a + * transfer is ongoing, calling this function to disable the Stream will + * cause the transfer to be paused. All configuration registers and the + * number of remaining data will be preserved. When calling again this + * function to re-enable the Stream, the transfer will be resumed from + * the point where it was paused. + * + * @note After configuring the DMA Stream (DMA_Init() function) and enabling the + * stream, it is recommended to check (or wait until) the DMA Stream is + * effectively enabled. A Stream may remain disabled if a configuration + * parameter is wrong. + * After disabling a DMA Stream, it is also recommended to check (or wait + * until) the DMA Stream is effectively disabled. If a Stream is disabled + * while a data transfer is ongoing, the current data will be transferred + * and the Stream will be effectively disabled only after the transfer of + * this single data is finished. + * + * @retval None + */ +void DMA_Cmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected DMAy Streamx by setting EN bit */ + DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_EN; + } + else + { + /* Disable the selected DMAy Streamx by clearing EN bit */ + DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_EN; + } +} + +/** + * @brief Configures, when the PINC (Peripheral Increment address mode) bit is + * set, if the peripheral address should be incremented with the data + * size (configured with PSIZE bits) or by a fixed offset equal to 4 + * (32-bit aligned addresses). + * + * @note This function has no effect if the Peripheral Increment mode is disabled. + * + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_Pincos: specifies the Peripheral increment offset size. + * This parameter can be one of the following values: + * @arg DMA_PINCOS_Psize: Peripheral address increment is done + * accordingly to PSIZE parameter. + * @arg DMA_PINCOS_WordAligned: Peripheral address increment offset is + * fixed to 4 (32-bit aligned addresses). + * @retval None + */ +void DMA_PeriphIncOffsetSizeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_Pincos) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_PINCOS_SIZE(DMA_Pincos)); + + /* Check the needed Peripheral increment offset */ + if(DMA_Pincos != DMA_PINCOS_Psize) + { + /* Configure DMA_SxCR_PINCOS bit with the input parameter */ + DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_PINCOS; + } + else + { + /* Clear the PINCOS bit: Peripheral address incremented according to PSIZE */ + DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_PINCOS; + } +} + +/** + * @brief Configures, when the DMAy Streamx is disabled, the flow controller for + * the next transactions (Peripheral or Memory). + * + * @note Before enabling this feature, check if the used peripheral supports + * the Flow Controller mode or not. + * + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_FlowCtrl: specifies the DMA flow controller. + * This parameter can be one of the following values: + * @arg DMA_FlowCtrl_Memory: DMAy_Streamx transactions flow controller is + * the DMA controller. + * @arg DMA_FlowCtrl_Peripheral: DMAy_Streamx transactions flow controller + * is the peripheral. + * @retval None + */ +void DMA_FlowControllerConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FlowCtrl) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_FLOW_CTRL(DMA_FlowCtrl)); + + /* Check the needed flow controller */ + if(DMA_FlowCtrl != DMA_FlowCtrl_Memory) + { + /* Configure DMA_SxCR_PFCTRL bit with the input parameter */ + DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_PFCTRL; + } + else + { + /* Clear the PFCTRL bit: Memory is the flow controller */ + DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_PFCTRL; + } +} +/** + * @} + */ + +/** @defgroup DMA_Group2 Data Counter functions + * @brief Data Counter functions + * +@verbatim + =============================================================================== + Data Counter functions + =============================================================================== + + This subsection provides function allowing to configure and read the buffer size + (number of data to be transferred). + + The DMA data counter can be written only when the DMA Stream is disabled + (ie. after transfer complete event). + + The following function can be used to write the Stream data counter value: + - void DMA_SetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx, uint16_t Counter); + +@note It is advised to use this function rather than DMA_Init() in situations where + only the Data buffer needs to be reloaded. + +@note If the Source and Destination Data Sizes are different, then the value written in + data counter, expressing the number of transfers, is relative to the number of + transfers from the Peripheral point of view. + ie. If Memory data size is Word, Peripheral data size is Half-Words, then the value + to be configured in the data counter is the number of Half-Words to be transferred + from/to the peripheral. + + The DMA data counter can be read to indicate the number of remaining transfers for + the relative DMA Stream. This counter is decremented at the end of each data + transfer and when the transfer is complete: + - If Normal mode is selected: the counter is set to 0. + - If Circular mode is selected: the counter is reloaded with the initial value + (configured before enabling the DMA Stream) + + The following function can be used to read the Stream data counter value: + - uint16_t DMA_GetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx); + +@endverbatim + * @{ + */ + +/** + * @brief Writes the number of data units to be transferred on the DMAy Streamx. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param Counter: Number of data units to be transferred (from 0 to 65535) + * Number of data items depends only on the Peripheral data format. + * + * @note If Peripheral data format is Bytes: number of data units is equal + * to total number of bytes to be transferred. + * + * @note If Peripheral data format is Half-Word: number of data units is + * equal to total number of bytes to be transferred / 2. + * + * @note If Peripheral data format is Word: number of data units is equal + * to total number of bytes to be transferred / 4. + * + * @note In Memory-to-Memory transfer mode, the memory buffer pointed by + * DMAy_SxPAR register is considered as Peripheral. + * + * @retval The number of remaining data units in the current DMAy Streamx transfer. + */ +void DMA_SetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx, uint16_t Counter) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Write the number of data units to be transferred */ + DMAy_Streamx->NDTR = (uint16_t)Counter; +} + +/** + * @brief Returns the number of remaining data units in the current DMAy Streamx transfer. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @retval The number of remaining data units in the current DMAy Streamx transfer. + */ +uint16_t DMA_GetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Return the number of remaining data units for DMAy Streamx */ + return ((uint16_t)(DMAy_Streamx->NDTR)); +} +/** + * @} + */ + +/** @defgroup DMA_Group3 Double Buffer mode functions + * @brief Double Buffer mode functions + * +@verbatim + =============================================================================== + Double Buffer mode functions + =============================================================================== + + This subsection provides function allowing to configure and control the double + buffer mode parameters. + + The Double Buffer mode can be used only when Circular mode is enabled. + The Double Buffer mode cannot be used when transferring data from Memory to Memory. + + The Double Buffer mode allows to set two different Memory addresses from/to which + the DMA controller will access alternatively (after completing transfer to/from target + memory 0, it will start transfer to/from target memory 1). + This allows to reduce software overhead for double buffering and reduce the CPU + access time. + + Two functions must be called before calling the DMA_Init() function: + - void DMA_DoubleBufferModeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t Memory1BaseAddr, + uint32_t DMA_CurrentMemory); + - void DMA_DoubleBufferModeCmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState); + + DMA_DoubleBufferModeConfig() is called to configure the Memory 1 base address and the first + Memory target from/to which the transfer will start after enabling the DMA Stream. + Then DMA_DoubleBufferModeCmd() must be called to enable the Double Buffer mode (or disable + it when it should not be used). + + + Two functions can be called dynamically when the transfer is ongoing (or when the DMA Stream is + stopped) to modify on of the target Memories addresses or to check wich Memory target is currently + used: + - void DMA_MemoryTargetConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t MemoryBaseAddr, + uint32_t DMA_MemoryTarget); + - uint32_t DMA_GetCurrentMemoryTarget(DMA_Stream_TypeDef* DMAy_Streamx); + + DMA_MemoryTargetConfig() can be called to modify the base address of one of the two target Memories. + The Memory of which the base address will be modified must not be currently be used by the DMA Stream + (ie. if the DMA Stream is currently transferring from Memory 1 then you can only modify base address + of target Memory 0 and vice versa). + To check this condition, it is recommended to use the function DMA_GetCurrentMemoryTarget() which + returns the index of the Memory target currently in use by the DMA Stream. + +@endverbatim + * @{ + */ + +/** + * @brief Configures, when the DMAy Streamx is disabled, the double buffer mode + * and the current memory target. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param Memory1BaseAddr: the base address of the second buffer (Memory 1) + * @param DMA_CurrentMemory: specifies which memory will be first buffer for + * the transactions when the Stream will be enabled. + * This parameter can be one of the following values: + * @arg DMA_Memory_0: Memory 0 is the current buffer. + * @arg DMA_Memory_1: Memory 1 is the current buffer. + * + * @note Memory0BaseAddr is set by the DMA structure configuration in DMA_Init(). + * + * @retval None + */ +void DMA_DoubleBufferModeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t Memory1BaseAddr, + uint32_t DMA_CurrentMemory) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CURRENT_MEM(DMA_CurrentMemory)); + + if (DMA_CurrentMemory != DMA_Memory_0) + { + /* Set Memory 1 as current memory address */ + DMAy_Streamx->CR |= (uint32_t)(DMA_SxCR_CT); + } + else + { + /* Set Memory 0 as current memory address */ + DMAy_Streamx->CR &= ~(uint32_t)(DMA_SxCR_CT); + } + + /* Write to DMAy Streamx M1AR */ + DMAy_Streamx->M1AR = Memory1BaseAddr; +} + +/** + * @brief Enables or disables the double buffer mode for the selected DMA stream. + * @note This function can be called only when the DMA Stream is disabled. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param NewState: new state of the DMAy Streamx double buffer mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DMA_DoubleBufferModeCmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Configure the Double Buffer mode */ + if (NewState != DISABLE) + { + /* Enable the Double buffer mode */ + DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_DBM; + } + else + { + /* Disable the Double buffer mode */ + DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_DBM; + } +} + +/** + * @brief Configures the Memory address for the next buffer transfer in double + * buffer mode (for dynamic use). This function can be called when the + * DMA Stream is enabled and when the transfer is ongoing. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param MemoryBaseAddr: The base address of the target memory buffer + * @param DMA_MemoryTarget: Next memory target to be used. + * This parameter can be one of the following values: + * @arg DMA_Memory_0: To use the memory address 0 + * @arg DMA_Memory_1: To use the memory address 1 + * + * @note It is not allowed to modify the Base Address of a target Memory when + * this target is involved in the current transfer. ie. If the DMA Stream + * is currently transferring to/from Memory 1, then it not possible to + * modify Base address of Memory 1, but it is possible to modify Base + * address of Memory 0. + * To know which Memory is currently used, you can use the function + * DMA_GetCurrentMemoryTarget(). + * + * @retval None + */ +void DMA_MemoryTargetConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t MemoryBaseAddr, + uint32_t DMA_MemoryTarget) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CURRENT_MEM(DMA_MemoryTarget)); + + /* Check the Memory target to be configured */ + if (DMA_MemoryTarget != DMA_Memory_0) + { + /* Write to DMAy Streamx M1AR */ + DMAy_Streamx->M1AR = MemoryBaseAddr; + } + else + { + /* Write to DMAy Streamx M0AR */ + DMAy_Streamx->M0AR = MemoryBaseAddr; + } +} + +/** + * @brief Returns the current memory target used by double buffer transfer. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @retval The memory target number: 0 for Memory0 or 1 for Memory1. + */ +uint32_t DMA_GetCurrentMemoryTarget(DMA_Stream_TypeDef* DMAy_Streamx) +{ + uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Get the current memory target */ + if ((DMAy_Streamx->CR & DMA_SxCR_CT) != 0) + { + /* Current memory buffer used is Memory 1 */ + tmp = 1; + } + else + { + /* Current memory buffer used is Memory 0 */ + tmp = 0; + } + return tmp; +} +/** + * @} + */ + +/** @defgroup DMA_Group4 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This subsection provides functions allowing to + - Check the DMA enable status + - Check the FIFO status + - Configure the DMA Interrupts sources and check or clear the flags or pending bits status. + + 1. DMA Enable status: + After configuring the DMA Stream (DMA_Init() function) and enabling the stream, + it is recommended to check (or wait until) the DMA Stream is effectively enabled. + A Stream may remain disabled if a configuration parameter is wrong. + After disabling a DMA Stream, it is also recommended to check (or wait until) the DMA + Stream is effectively disabled. If a Stream is disabled while a data transfer is ongoing, + the current data will be transferred and the Stream will be effectively disabled only after + this data transfer completion. + To monitor this state it is possible to use the following function: + - FunctionalState DMA_GetCmdStatus(DMA_Stream_TypeDef* DMAy_Streamx); + + 2. FIFO Status: + It is possible to monitor the FIFO status when a transfer is ongoing using the following + function: + - uint32_t DMA_GetFIFOStatus(DMA_Stream_TypeDef* DMAy_Streamx); + + 3. DMA Interrupts and Flags: + The user should identify which mode will be used in his application to manage the + DMA controller events: Polling mode or Interrupt mode. + + Polling Mode + ============= + Each DMA stream can be managed through 4 event Flags: + (x : DMA Stream number ) + 1. DMA_FLAG_FEIFx : to indicate that a FIFO Mode Transfer Error event occurred. + 2. DMA_FLAG_DMEIFx : to indicate that a Direct Mode Transfer Error event occurred. + 3. DMA_FLAG_TEIFx : to indicate that a Transfer Error event occurred. + 4. DMA_FLAG_HTIFx : to indicate that a Half-Transfer Complete event occurred. + 5. DMA_FLAG_TCIFx : to indicate that a Transfer Complete event occurred . + + In this Mode it is advised to use the following functions: + - FlagStatus DMA_GetFlagStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG); + - void DMA_ClearFlag(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG); + + Interrupt Mode + =============== + Each DMA Stream can be managed through 4 Interrupts: + + Interrupt Source + ---------------- + 1. DMA_IT_FEIFx : specifies the interrupt source for the FIFO Mode Transfer Error event. + 2. DMA_IT_DMEIFx : specifies the interrupt source for the Direct Mode Transfer Error event. + 3. DMA_IT_TEIFx : specifies the interrupt source for the Transfer Error event. + 4. DMA_IT_HTIFx : specifies the interrupt source for the Half-Transfer Complete event. + 5. DMA_IT_TCIFx : specifies the interrupt source for the a Transfer Complete event. + + In this Mode it is advised to use the following functions: + - void DMA_ITConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT, FunctionalState NewState); + - ITStatus DMA_GetITStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT); + - void DMA_ClearITPendingBit(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT); + +@endverbatim + * @{ + */ + +/** + * @brief Returns the status of EN bit for the specified DMAy Streamx. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * + * @note After configuring the DMA Stream (DMA_Init() function) and enabling + * the stream, it is recommended to check (or wait until) the DMA Stream + * is effectively enabled. A Stream may remain disabled if a configuration + * parameter is wrong. + * After disabling a DMA Stream, it is also recommended to check (or wait + * until) the DMA Stream is effectively disabled. If a Stream is disabled + * while a data transfer is ongoing, the current data will be transferred + * and the Stream will be effectively disabled only after the transfer + * of this single data is finished. + * + * @retval Current state of the DMAy Streamx (ENABLE or DISABLE). + */ +FunctionalState DMA_GetCmdStatus(DMA_Stream_TypeDef* DMAy_Streamx) +{ + FunctionalState state = DISABLE; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + if ((DMAy_Streamx->CR & (uint32_t)DMA_SxCR_EN) != 0) + { + /* The selected DMAy Streamx EN bit is set (DMA is still transferring) */ + state = ENABLE; + } + else + { + /* The selected DMAy Streamx EN bit is cleared (DMA is disabled and + all transfers are complete) */ + state = DISABLE; + } + return state; +} + +/** + * @brief Returns the current DMAy Streamx FIFO filled level. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @retval The FIFO filling state. + * - DMA_FIFOStatus_Less1QuarterFull: when FIFO is less than 1 quarter-full + * and not empty. + * - DMA_FIFOStatus_1QuarterFull: if more than 1 quarter-full. + * - DMA_FIFOStatus_HalfFull: if more than 1 half-full. + * - DMA_FIFOStatus_3QuartersFull: if more than 3 quarters-full. + * - DMA_FIFOStatus_Empty: when FIFO is empty + * - DMA_FIFOStatus_Full: when FIFO is full + */ +uint32_t DMA_GetFIFOStatus(DMA_Stream_TypeDef* DMAy_Streamx) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Get the FIFO level bits */ + tmpreg = (uint32_t)((DMAy_Streamx->FCR & DMA_SxFCR_FS)); + + return tmpreg; +} + +/** + * @brief Checks whether the specified DMAy Streamx flag is set or not. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg DMA_FLAG_TCIFx: Streamx transfer complete flag + * @arg DMA_FLAG_HTIFx: Streamx half transfer complete flag + * @arg DMA_FLAG_TEIFx: Streamx transfer error flag + * @arg DMA_FLAG_DMEIFx: Streamx direct mode error flag + * @arg DMA_FLAG_FEIFx: Streamx FIFO error flag + * Where x can be 0 to 7 to select the DMA Stream. + * @retval The new state of DMA_FLAG (SET or RESET). + */ +FlagStatus DMA_GetFlagStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG) +{ + FlagStatus bitstatus = RESET; + DMA_TypeDef* DMAy; + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_GET_FLAG(DMA_FLAG)); + + /* Determine the DMA to which belongs the stream */ + if (DMAy_Streamx < DMA2_Stream0) + { + /* DMAy_Streamx belongs to DMA1 */ + DMAy = DMA1; + } + else + { + /* DMAy_Streamx belongs to DMA2 */ + DMAy = DMA2; + } + + /* Check if the flag is in HISR or LISR */ + if ((DMA_FLAG & HIGH_ISR_MASK) != (uint32_t)RESET) + { + /* Get DMAy HISR register value */ + tmpreg = DMAy->HISR; + } + else + { + /* Get DMAy LISR register value */ + tmpreg = DMAy->LISR; + } + + /* Mask the reserved bits */ + tmpreg &= (uint32_t)RESERVED_MASK; + + /* Check the status of the specified DMA flag */ + if ((tmpreg & DMA_FLAG) != (uint32_t)RESET) + { + /* DMA_FLAG is set */ + bitstatus = SET; + } + else + { + /* DMA_FLAG is reset */ + bitstatus = RESET; + } + + /* Return the DMA_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the DMAy Streamx's pending flags. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg DMA_FLAG_TCIFx: Streamx transfer complete flag + * @arg DMA_FLAG_HTIFx: Streamx half transfer complete flag + * @arg DMA_FLAG_TEIFx: Streamx transfer error flag + * @arg DMA_FLAG_DMEIFx: Streamx direct mode error flag + * @arg DMA_FLAG_FEIFx: Streamx FIFO error flag + * Where x can be 0 to 7 to select the DMA Stream. + * @retval None + */ +void DMA_ClearFlag(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG) +{ + DMA_TypeDef* DMAy; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CLEAR_FLAG(DMA_FLAG)); + + /* Determine the DMA to which belongs the stream */ + if (DMAy_Streamx < DMA2_Stream0) + { + /* DMAy_Streamx belongs to DMA1 */ + DMAy = DMA1; + } + else + { + /* DMAy_Streamx belongs to DMA2 */ + DMAy = DMA2; + } + + /* Check if LIFCR or HIFCR register is targeted */ + if ((DMA_FLAG & HIGH_ISR_MASK) != (uint32_t)RESET) + { + /* Set DMAy HIFCR register clear flag bits */ + DMAy->HIFCR = (uint32_t)(DMA_FLAG & RESERVED_MASK); + } + else + { + /* Set DMAy LIFCR register clear flag bits */ + DMAy->LIFCR = (uint32_t)(DMA_FLAG & RESERVED_MASK); + } +} + +/** + * @brief Enables or disables the specified DMAy Streamx interrupts. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_IT: specifies the DMA interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg DMA_IT_TC: Transfer complete interrupt mask + * @arg DMA_IT_HT: Half transfer complete interrupt mask + * @arg DMA_IT_TE: Transfer error interrupt mask + * @arg DMA_IT_FE: FIFO error interrupt mask + * @param NewState: new state of the specified DMA interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DMA_ITConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CONFIG_IT(DMA_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Check if the DMA_IT parameter contains a FIFO interrupt */ + if ((DMA_IT & DMA_IT_FE) != 0) + { + if (NewState != DISABLE) + { + /* Enable the selected DMA FIFO interrupts */ + DMAy_Streamx->FCR |= (uint32_t)DMA_IT_FE; + } + else + { + /* Disable the selected DMA FIFO interrupts */ + DMAy_Streamx->FCR &= ~(uint32_t)DMA_IT_FE; + } + } + + /* Check if the DMA_IT parameter contains a Transfer interrupt */ + if (DMA_IT != DMA_IT_FE) + { + if (NewState != DISABLE) + { + /* Enable the selected DMA transfer interrupts */ + DMAy_Streamx->CR |= (uint32_t)(DMA_IT & TRANSFER_IT_ENABLE_MASK); + } + else + { + /* Disable the selected DMA transfer interrupts */ + DMAy_Streamx->CR &= ~(uint32_t)(DMA_IT & TRANSFER_IT_ENABLE_MASK); + } + } +} + +/** + * @brief Checks whether the specified DMAy Streamx interrupt has occurred or not. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_IT: specifies the DMA interrupt source to check. + * This parameter can be one of the following values: + * @arg DMA_IT_TCIFx: Streamx transfer complete interrupt + * @arg DMA_IT_HTIFx: Streamx half transfer complete interrupt + * @arg DMA_IT_TEIFx: Streamx transfer error interrupt + * @arg DMA_IT_DMEIFx: Streamx direct mode error interrupt + * @arg DMA_IT_FEIFx: Streamx FIFO error interrupt + * Where x can be 0 to 7 to select the DMA Stream. + * @retval The new state of DMA_IT (SET or RESET). + */ +ITStatus DMA_GetITStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT) +{ + ITStatus bitstatus = RESET; + DMA_TypeDef* DMAy; + uint32_t tmpreg = 0, enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_GET_IT(DMA_IT)); + + /* Determine the DMA to which belongs the stream */ + if (DMAy_Streamx < DMA2_Stream0) + { + /* DMAy_Streamx belongs to DMA1 */ + DMAy = DMA1; + } + else + { + /* DMAy_Streamx belongs to DMA2 */ + DMAy = DMA2; + } + + /* Check if the interrupt enable bit is in the CR or FCR register */ + if ((DMA_IT & TRANSFER_IT_MASK) != (uint32_t)RESET) + { + /* Get the interrupt enable position mask in CR register */ + tmpreg = (uint32_t)((DMA_IT >> 11) & TRANSFER_IT_ENABLE_MASK); + + /* Check the enable bit in CR register */ + enablestatus = (uint32_t)(DMAy_Streamx->CR & tmpreg); + } + else + { + /* Check the enable bit in FCR register */ + enablestatus = (uint32_t)(DMAy_Streamx->FCR & DMA_IT_FE); + } + + /* Check if the interrupt pending flag is in LISR or HISR */ + if ((DMA_IT & HIGH_ISR_MASK) != (uint32_t)RESET) + { + /* Get DMAy HISR register value */ + tmpreg = DMAy->HISR ; + } + else + { + /* Get DMAy LISR register value */ + tmpreg = DMAy->LISR ; + } + + /* mask all reserved bits */ + tmpreg &= (uint32_t)RESERVED_MASK; + + /* Check the status of the specified DMA interrupt */ + if (((tmpreg & DMA_IT) != (uint32_t)RESET) && (enablestatus != (uint32_t)RESET)) + { + /* DMA_IT is set */ + bitstatus = SET; + } + else + { + /* DMA_IT is reset */ + bitstatus = RESET; + } + + /* Return the DMA_IT status */ + return bitstatus; +} + +/** + * @brief Clears the DMAy Streamx's interrupt pending bits. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_IT: specifies the DMA interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg DMA_IT_TCIFx: Streamx transfer complete interrupt + * @arg DMA_IT_HTIFx: Streamx half transfer complete interrupt + * @arg DMA_IT_TEIFx: Streamx transfer error interrupt + * @arg DMA_IT_DMEIFx: Streamx direct mode error interrupt + * @arg DMA_IT_FEIFx: Streamx FIFO error interrupt + * Where x can be 0 to 7 to select the DMA Stream. + * @retval None + */ +void DMA_ClearITPendingBit(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT) +{ + DMA_TypeDef* DMAy; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CLEAR_IT(DMA_IT)); + + /* Determine the DMA to which belongs the stream */ + if (DMAy_Streamx < DMA2_Stream0) + { + /* DMAy_Streamx belongs to DMA1 */ + DMAy = DMA1; + } + else + { + /* DMAy_Streamx belongs to DMA2 */ + DMAy = DMA2; + } + + /* Check if LIFCR or HIFCR register is targeted */ + if ((DMA_IT & HIGH_ISR_MASK) != (uint32_t)RESET) + { + /* Set DMAy HIFCR register clear interrupt bits */ + DMAy->HIFCR = (uint32_t)(DMA_IT & RESERVED_MASK); + } + else + { + /* Set DMAy LIFCR register clear interrupt bits */ + DMAy->LIFCR = (uint32_t)(DMA_IT & RESERVED_MASK); + } +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_exti.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_exti.c new file mode 100644 index 00000000..2964a84a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_exti.c @@ -0,0 +1,312 @@ +/** + ****************************************************************************** + * @file stm32f2xx_exti.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the EXTI peripheral: + * - Initialization and Configuration + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * EXTI features + * =================================================================== + * + * External interrupt/event lines are mapped as following: + * 1- All available GPIO pins are connected to the 16 external + * interrupt/event lines from EXTI0 to EXTI15. + * 2- EXTI line 16 is connected to the PVD Output + * 3- EXTI line 17 is connected to the RTC Alarm event + * 4- EXTI line 18 is connected to the USB OTG FS Wakeup from suspend event + * 5- EXTI line 19 is connected to the Ethernet Wakeup event + * 6- EXTI line 20 is connected to the USB OTG HS (configured in FS) Wakeup event + * 7- EXTI line 21 is connected to the RTC Tamper and Time Stamp events + * 8- EXTI line 22 is connected to the RTC Wakeup event + * + * =================================================================== + * How to use this driver + * =================================================================== + * + * In order to use an I/O pin as an external interrupt source, follow + * steps below: + * 1- Configure the I/O in input mode using GPIO_Init() + * 2- Select the input source pin for the EXTI line using SYSCFG_EXTILineConfig() + * 3- Select the mode(interrupt, event) and configure the trigger + * selection (Rising, falling or both) using EXTI_Init() + * 4- Configure NVIC IRQ channel mapped to the EXTI line using NVIC_Init() + * + * @note SYSCFG APB clock must be enabled to get write access to SYSCFG_EXTICRx + * registers using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_exti.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup EXTI + * @brief EXTI driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +#define EXTI_LINENONE ((uint32_t)0x00000) /* No interrupt selected */ + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup EXTI_Private_Functions + * @{ + */ + +/** @defgroup EXTI_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the EXTI peripheral registers to their default reset values. + * @param None + * @retval None + */ +void EXTI_DeInit(void) +{ + EXTI->IMR = 0x00000000; + EXTI->EMR = 0x00000000; + EXTI->RTSR = 0x00000000; + EXTI->FTSR = 0x00000000; + EXTI->PR = 0x007FFFFF; +} + +/** + * @brief Initializes the EXTI peripheral according to the specified + * parameters in the EXTI_InitStruct. + * @param EXTI_InitStruct: pointer to a EXTI_InitTypeDef structure + * that contains the configuration information for the EXTI peripheral. + * @retval None + */ +void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct) +{ + uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_EXTI_MODE(EXTI_InitStruct->EXTI_Mode)); + assert_param(IS_EXTI_TRIGGER(EXTI_InitStruct->EXTI_Trigger)); + assert_param(IS_EXTI_LINE(EXTI_InitStruct->EXTI_Line)); + assert_param(IS_FUNCTIONAL_STATE(EXTI_InitStruct->EXTI_LineCmd)); + + tmp = (uint32_t)EXTI_BASE; + + if (EXTI_InitStruct->EXTI_LineCmd != DISABLE) + { + /* Clear EXTI line configuration */ + EXTI->IMR &= ~EXTI_InitStruct->EXTI_Line; + EXTI->EMR &= ~EXTI_InitStruct->EXTI_Line; + + tmp += EXTI_InitStruct->EXTI_Mode; + + *(__IO uint32_t *) tmp |= EXTI_InitStruct->EXTI_Line; + + /* Clear Rising Falling edge configuration */ + EXTI->RTSR &= ~EXTI_InitStruct->EXTI_Line; + EXTI->FTSR &= ~EXTI_InitStruct->EXTI_Line; + + /* Select the trigger for the selected external interrupts */ + if (EXTI_InitStruct->EXTI_Trigger == EXTI_Trigger_Rising_Falling) + { + /* Rising Falling edge */ + EXTI->RTSR |= EXTI_InitStruct->EXTI_Line; + EXTI->FTSR |= EXTI_InitStruct->EXTI_Line; + } + else + { + tmp = (uint32_t)EXTI_BASE; + tmp += EXTI_InitStruct->EXTI_Trigger; + + *(__IO uint32_t *) tmp |= EXTI_InitStruct->EXTI_Line; + } + } + else + { + tmp += EXTI_InitStruct->EXTI_Mode; + + /* Disable the selected external lines */ + *(__IO uint32_t *) tmp &= ~EXTI_InitStruct->EXTI_Line; + } +} + +/** + * @brief Fills each EXTI_InitStruct member with its reset value. + * @param EXTI_InitStruct: pointer to a EXTI_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void EXTI_StructInit(EXTI_InitTypeDef* EXTI_InitStruct) +{ + EXTI_InitStruct->EXTI_Line = EXTI_LINENONE; + EXTI_InitStruct->EXTI_Mode = EXTI_Mode_Interrupt; + EXTI_InitStruct->EXTI_Trigger = EXTI_Trigger_Falling; + EXTI_InitStruct->EXTI_LineCmd = DISABLE; +} + +/** + * @brief Generates a Software interrupt on selected EXTI line. + * @param EXTI_Line: specifies the EXTI line on which the software interrupt + * will be generated. + * This parameter can be any combination of EXTI_Linex where x can be (0..22) + * @retval None + */ +void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line) +{ + /* Check the parameters */ + assert_param(IS_EXTI_LINE(EXTI_Line)); + + EXTI->SWIER |= EXTI_Line; +} + +/** + * @} + */ + +/** @defgroup EXTI_Group2 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Checks whether the specified EXTI line flag is set or not. + * @param EXTI_Line: specifies the EXTI line flag to check. + * This parameter can be EXTI_Linex where x can be(0..22) + * @retval The new state of EXTI_Line (SET or RESET). + */ +FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_GET_EXTI_LINE(EXTI_Line)); + + if ((EXTI->PR & EXTI_Line) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the EXTI's line pending flags. + * @param EXTI_Line: specifies the EXTI lines flags to clear. + * This parameter can be any combination of EXTI_Linex where x can be (0..22) + * @retval None + */ +void EXTI_ClearFlag(uint32_t EXTI_Line) +{ + /* Check the parameters */ + assert_param(IS_EXTI_LINE(EXTI_Line)); + + EXTI->PR = EXTI_Line; +} + +/** + * @brief Checks whether the specified EXTI line is asserted or not. + * @param EXTI_Line: specifies the EXTI line to check. + * This parameter can be EXTI_Linex where x can be(0..22) + * @retval The new state of EXTI_Line (SET or RESET). + */ +ITStatus EXTI_GetITStatus(uint32_t EXTI_Line) +{ + ITStatus bitstatus = RESET; + uint32_t enablestatus = 0; + /* Check the parameters */ + assert_param(IS_GET_EXTI_LINE(EXTI_Line)); + + enablestatus = EXTI->IMR & EXTI_Line; + if (((EXTI->PR & EXTI_Line) != (uint32_t)RESET) && (enablestatus != (uint32_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the EXTI's line pending bits. + * @param EXTI_Line: specifies the EXTI lines to clear. + * This parameter can be any combination of EXTI_Linex where x can be (0..22) + * @retval None + */ +void EXTI_ClearITPendingBit(uint32_t EXTI_Line) +{ + /* Check the parameters */ + assert_param(IS_EXTI_LINE(EXTI_Line)); + + EXTI->PR = EXTI_Line; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_flash.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_flash.c new file mode 100644 index 00000000..59a2c8d5 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_flash.c @@ -0,0 +1,1060 @@ +/** + ****************************************************************************** + * @file stm32f2xx_flash.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the FLASH peripheral: + * - FLASH Interface configuration + * - FLASH Memory Programming + * - Option Bytes Programming + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * + * This driver provides functions to configure and program the FLASH + * memory of all STM32F2xx devices. + * These functions are split in 4 groups: + * + * 1. FLASH Interface configuration functions: this group includes the + * management of the following features: + * - Set the latency + * - Enable/Disable the prefetch buffer + * - Enable/Disable the Instruction cache and the Data cache + * - Reset the Instruction cache and the Data cache + * + * 2. FLASH Memory Programming functions: this group includes all needed + * functions to erase and program the main memory: + * - Lock and Unlock the FLASH interface + * - Erase function: Erase sector, erase all sectors + * - Program functions: byte, half word, word and double word + * + * 3. Option Bytes Programming functions: this group includes all needed + * functions to manage the Option Bytes: + * - Set/Reset the write protection + * - Set the Read protection Level + * - Set the BOR level + * - Program the user Option Bytes + * - Launch the Option Bytes loader + * + * 4. Interrupts and flags management functions: this group + * includes all needed functions to: + * - Enable/Disable the FLASH interrupt sources + * - Get flags status + * - Clear flags + * - Get FLASH operation status + * - Wait for last FLASH operation + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_flash.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup FLASH + * @brief FLASH driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define SECTOR_MASK ((uint32_t)0xFFFFFF07) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup FLASH_Private_Functions + * @{ + */ + +/** @defgroup FLASH_Group1 FLASH Interface configuration functions + * @brief FLASH Interface configuration functions + * + +@verbatim + =============================================================================== + FLASH Interface configuration functions + =============================================================================== + + This group includes the following functions: + - void FLASH_SetLatency(uint32_t FLASH_Latency) + To correctly read data from FLASH memory, the number of wait states (LATENCY) + must be correctly programmed according to the frequency of the CPU clock + (HCLK) and the supply voltage of the device. + +-------------------------------------------------------------------------------------+ + | Latency | HCLK clock frequency (MHz) | + | |---------------------------------------------------------------------| + | | voltage range | voltage range | voltage range | voltage range | + | | 2.7 V - 3.6 V | 2.4 V - 2.7 V | 2.1 V - 2.4 V | 1.8 V - 2.1 V | + |---------------|----------------|----------------|-----------------|-----------------| + |0WS(1CPU cycle)|0 < HCLK <= 30 |0 < HCLK <= 24 |0 < HCLK <= 18 |0 < HCLK <= 16 | + |---------------|----------------|----------------|-----------------|-----------------| + |1WS(2CPU cycle)|30 < HCLK <= 60 |24 < HCLK <= 48 |18 < HCLK <= 36 |16 < HCLK <= 32 | + |---------------|----------------|----------------|-----------------|-----------------| + |2WS(3CPU cycle)|60 < HCLK <= 90 |48 < HCLK <= 72 |36 < HCLK <= 54 |32 < HCLK <= 48 | + |---------------|----------------|----------------|-----------------|-----------------| + |3WS(4CPU cycle)|90 < HCLK <= 120|72 < HCLK <= 96 |54 < HCLK <= 72 |48 < HCLK <= 64 | + |---------------|----------------|----------------|-----------------|-----------------| + |4WS(5CPU cycle)| NA |96 < HCLK <= 120|72 < HCLK <= 90 |64 < HCLK <= 80 | + |---------------|----------------|----------------|-----------------|-----------------| + |5WS(6CPU cycle)| NA | NA |90 < HCLK <= 108 |80 < HCLK <= 96 | + |---------------|----------------|----------------|-----------------|-----------------| + |6WS(7CPU cycle)| NA | NA |108 < HCLK <= 120|96 < HCLK <= 112 | + |---------------|----------------|----------------|-----------------|-----------------| + |7WS(8CPU cycle)| NA | NA | NA |112 < HCLK <= 120| + |***************|****************|****************|*****************|*****************|*****************************+ + | | voltage range | voltage range | voltage range | voltage range | voltage range 2.7 V - 3.6 V | + | | 2.7 V - 3.6 V | 2.4 V - 2.7 V | 2.1 V - 2.4 V | 1.8 V - 2.1 V | with External Vpp = 9V | + |---------------|----------------|----------------|-----------------|-----------------|-----------------------------| + |Max Parallelism| x32 | x16 | x8 | x64 | + |---------------|----------------|----------------|-----------------|-----------------|-----------------------------| + |PSIZE[1:0] | 10 | 01 | 00 | 11 | + +-------------------------------------------------------------------------------------------------------------------+ + + - void FLASH_PrefetchBufferCmd(FunctionalState NewState) + - void FLASH_InstructionCacheCmd(FunctionalState NewState) + - void FLASH_DataCacheCmd(FunctionalState NewState) + - void FLASH_InstructionCacheReset(void) + - void FLASH_DataCacheReset(void) + + The unlock sequence is not needed for these functions. + +@endverbatim + * @{ + */ + +/** + * @brief Sets the code latency value. + * @param FLASH_Latency: specifies the FLASH Latency value. + * This parameter can be one of the following values: + * @arg FLASH_Latency_0: FLASH Zero Latency cycle + * @arg FLASH_Latency_1: FLASH One Latency cycle + * @arg FLASH_Latency_2: FLASH Two Latency cycles + * @arg FLASH_Latency_3: FLASH Three Latency cycles + * @arg FLASH_Latency_4: FLASH Four Latency cycles + * @arg FLASH_Latency_5: FLASH Five Latency cycles + * @arg FLASH_Latency_6: FLASH Six Latency cycles + * @arg FLASH_Latency_7: FLASH Seven Latency cycles + * @retval None + */ +void FLASH_SetLatency(uint32_t FLASH_Latency) +{ + /* Check the parameters */ + assert_param(IS_FLASH_LATENCY(FLASH_Latency)); + + /* Perform Byte access to FLASH_ACR[8:0] to set the Latency value */ + *(__IO uint8_t *)ACR_BYTE0_ADDRESS = (uint8_t)FLASH_Latency; +} + +/** + * @brief Enables or disables the Prefetch Buffer. + * @param NewState: new state of the Prefetch Buffer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FLASH_PrefetchBufferCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Enable or disable the Prefetch Buffer */ + if(NewState != DISABLE) + { + FLASH->ACR |= FLASH_ACR_PRFTEN; + } + else + { + FLASH->ACR &= (~FLASH_ACR_PRFTEN); + } +} + +/** + * @brief Enables or disables the Instruction Cache feature. + * @param NewState: new state of the Instruction Cache. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FLASH_InstructionCacheCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if(NewState != DISABLE) + { + FLASH->ACR |= FLASH_ACR_ICEN; + } + else + { + FLASH->ACR &= (~FLASH_ACR_ICEN); + } +} + +/** + * @brief Enables or disables the Data Cache feature. + * @param NewState: new state of the Data Cache. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FLASH_DataCacheCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if(NewState != DISABLE) + { + FLASH->ACR |= FLASH_ACR_DCEN; + } + else + { + FLASH->ACR &= (~FLASH_ACR_DCEN); + } +} + +/** + * @brief Resets the Instruction Cache. + * @note This function must be used only when the Instruction Cache is disabled. + * @param None + * @retval None + */ +void FLASH_InstructionCacheReset(void) +{ + FLASH->ACR |= FLASH_ACR_ICRST; +} + +/** + * @brief Resets the Data Cache. + * @note This function must be used only when the Data Cache is disabled. + * @param None + * @retval None + */ +void FLASH_DataCacheReset(void) +{ + FLASH->ACR |= FLASH_ACR_DCRST; +} + +/** + * @} + */ + +/** @defgroup FLASH_Group2 FLASH Memory Programming functions + * @brief FLASH Memory Programming functions + * +@verbatim + =============================================================================== + FLASH Memory Programming functions + =============================================================================== + + This group includes the following functions: + - void FLASH_Unlock(void) + - void FLASH_Lock(void) + - FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange) + - FLASH_Status FLASH_EraseAllSectors(uint8_t VoltageRange) + - FLASH_Status FLASH_ProgramDoubleWord(uint32_t Address, uint64_t Data) + - FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data) + - FLASH_Status FLASH_ProgramHalfWord(uint32_t Address, uint16_t Data) + - FLASH_Status FLASH_ProgramByte(uint32_t Address, uint8_t Data) + + Any operation of erase or program should follow these steps: + 1. Call the FLASH_Unlock() function to enable the FLASH control register access + + 2. Call the desired function to erase sector(s) or program data + + 3. Call the FLASH_Lock() function to disable the FLASH control register access + (recommended to protect the FLASH memory against possible unwanted operation) + +@endverbatim + * @{ + */ + +/** + * @brief Unlocks the FLASH control register access + * @param None + * @retval None + */ +void FLASH_Unlock(void) +{ + if((FLASH->CR & FLASH_CR_LOCK) != RESET) + { + /* Authorize the FLASH Registers access */ + FLASH->KEYR = FLASH_KEY1; + FLASH->KEYR = FLASH_KEY2; + } +} + +/** + * @brief Locks the FLASH control register access + * @param None + * @retval None + */ +void FLASH_Lock(void) +{ + /* Set the LOCK Bit to lock the FLASH Registers access */ + FLASH->CR |= FLASH_CR_LOCK; +} + +/** + * @brief Erases a specified FLASH Sector. + * + * @param FLASH_Sector: The Sector number to be erased. + * This parameter can be a value between FLASH_Sector_0 and FLASH_Sector_11 + * + * @param VoltageRange: The device voltage range which defines the erase parallelism. + * This parameter can be one of the following values: + * @arg VoltageRange_1: when the device voltage range is 1.8V to 2.1V, + * the operation will be done by byte (8-bit) + * @arg VoltageRange_2: when the device voltage range is 2.1V to 2.7V, + * the operation will be done by half word (16-bit) + * @arg VoltageRange_3: when the device voltage range is 2.7V to 3.6V, + * the operation will be done by word (32-bit) + * @arg VoltageRange_4: when the device voltage range is 2.7V to 3.6V + External Vpp, + * the operation will be done by double word (64-bit) + * + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange) +{ + uint32_t tmp_psize = 0x0; + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_SECTOR(FLASH_Sector)); + assert_param(IS_VOLTAGERANGE(VoltageRange)); + + if(VoltageRange == VoltageRange_1) + { + tmp_psize = FLASH_PSIZE_BYTE; + } + else if(VoltageRange == VoltageRange_2) + { + tmp_psize = FLASH_PSIZE_HALF_WORD; + } + else if(VoltageRange == VoltageRange_3) + { + tmp_psize = FLASH_PSIZE_WORD; + } + else + { + tmp_psize = FLASH_PSIZE_DOUBLE_WORD; + } + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to erase the sector */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= tmp_psize; + FLASH->CR &= SECTOR_MASK; + FLASH->CR |= FLASH_CR_SER | FLASH_Sector; + FLASH->CR |= FLASH_CR_STRT; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the erase operation is completed, disable the SER Bit */ + FLASH->CR &= (~FLASH_CR_SER); + FLASH->CR &= SECTOR_MASK; + } + /* Return the Erase Status */ + return status; +} + +/** + * @brief Erases all FLASH Sectors. + * + * @param VoltageRange: The device voltage range which defines the erase parallelism. + * This parameter can be one of the following values: + * @arg VoltageRange_1: when the device voltage range is 1.8V to 2.1V, + * the operation will be done by byte (8-bit) + * @arg VoltageRange_2: when the device voltage range is 2.1V to 2.7V, + * the operation will be done by half word (16-bit) + * @arg VoltageRange_3: when the device voltage range is 2.7V to 3.6V, + * the operation will be done by word (32-bit) + * @arg VoltageRange_4: when the device voltage range is 2.7V to 3.6V + External Vpp, + * the operation will be done by double word (64-bit) + * + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_EraseAllSectors(uint8_t VoltageRange) +{ + uint32_t tmp_psize = 0x0; + FLASH_Status status = FLASH_COMPLETE; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + assert_param(IS_VOLTAGERANGE(VoltageRange)); + + if(VoltageRange == VoltageRange_1) + { + tmp_psize = FLASH_PSIZE_BYTE; + } + else if(VoltageRange == VoltageRange_2) + { + tmp_psize = FLASH_PSIZE_HALF_WORD; + } + else if(VoltageRange == VoltageRange_3) + { + tmp_psize = FLASH_PSIZE_WORD; + } + else + { + tmp_psize = FLASH_PSIZE_DOUBLE_WORD; + } + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to erase all sectors */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= tmp_psize; + FLASH->CR |= FLASH_CR_MER; + FLASH->CR |= FLASH_CR_STRT; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the erase operation is completed, disable the MER Bit */ + FLASH->CR &= (~FLASH_CR_MER); + + } + /* Return the Erase Status */ + return status; +} + +/** + * @brief Programs a double word (64-bit) at a specified address. + * @note This function must be used when the device voltage range is from + * 2.7V to 3.6V and an External Vpp is present. + * @param Address: specifies the address to be programmed. + * @param Data: specifies the data to be programmed. + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_ProgramDoubleWord(uint32_t Address, uint64_t Data) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_ADDRESS(Address)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to program the new data */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= FLASH_PSIZE_DOUBLE_WORD; + FLASH->CR |= FLASH_CR_PG; + + *(__IO uint64_t*)Address = Data; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the program operation is completed, disable the PG Bit */ + FLASH->CR &= (~FLASH_CR_PG); + } + /* Return the Program Status */ + return status; +} + +/** + * @brief Programs a word (32-bit) at a specified address. + * @param Address: specifies the address to be programmed. + * This parameter can be any address in Program memory zone or in OTP zone. + * @note This function must be used when the device voltage range is from 2.7V to 3.6V. + * @param Data: specifies the data to be programmed. + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_ADDRESS(Address)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to program the new data */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= FLASH_PSIZE_WORD; + FLASH->CR |= FLASH_CR_PG; + + *(__IO uint32_t*)Address = Data; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the program operation is completed, disable the PG Bit */ + FLASH->CR &= (~FLASH_CR_PG); + } + /* Return the Program Status */ + return status; +} + +/** + * @brief Programs a half word (16-bit) at a specified address. + * @note This function must be used when the device voltage range is from 2.1V to 3.6V. + * @param Address: specifies the address to be programmed. + * This parameter can be any address in Program memory zone or in OTP zone. + * @param Data: specifies the data to be programmed. + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_ProgramHalfWord(uint32_t Address, uint16_t Data) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_ADDRESS(Address)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to program the new data */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= FLASH_PSIZE_HALF_WORD; + FLASH->CR |= FLASH_CR_PG; + + *(__IO uint16_t*)Address = Data; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the program operation is completed, disable the PG Bit */ + FLASH->CR &= (~FLASH_CR_PG); + } + /* Return the Program Status */ + return status; +} + +/** + * @brief Programs a byte (8-bit) at a specified address. + * @note This function can be used within all the device supply voltage ranges. + * @param Address: specifies the address to be programmed. + * This parameter can be any address in Program memory zone or in OTP zone. + * @param Data: specifies the data to be programmed. + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_ProgramByte(uint32_t Address, uint8_t Data) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_ADDRESS(Address)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to program the new data */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= FLASH_PSIZE_BYTE; + FLASH->CR |= FLASH_CR_PG; + + *(__IO uint8_t*)Address = Data; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the program operation is completed, disable the PG Bit */ + FLASH->CR &= (~FLASH_CR_PG); + } + + /* Return the Program Status */ + return status; +} + +/** + * @} + */ + +/** @defgroup FLASH_Group3 Option Bytes Programming functions + * @brief Option Bytes Programming functions + * +@verbatim + =============================================================================== + Option Bytes Programming functions + =============================================================================== + + This group includes the following functions: + - void FLASH_OB_Unlock(void) + - void FLASH_OB_Lock(void) + - void FLASH_OB_WRPConfig(uint32_t OB_WRP, FunctionalState NewState) + - void FLASH_OB_RDPConfig(uint8_t OB_RDP) + - void FLASH_OB_UserConfig(uint8_t OB_IWDG, uint8_t OB_STOP, uint8_t OB_STDBY) + - void FLASH_OB_BORConfig(uint8_t OB_BOR) + - FLASH_Status FLASH_ProgramOTP(uint32_t Address, uint32_t Data) + - FLASH_Status FLASH_OB_Launch(void) + - uint32_t FLASH_OB_GetUser(void) + - uint8_t FLASH_OB_GetWRP(void) + - uint8_t FLASH_OB_GetRDP(void) + - uint8_t FLASH_OB_GetBOR(void) + + Any operation of erase or program should follow these steps: + 1. Call the FLASH_OB_Unlock() function to enable the FLASH option control register access + + 2. Call one or several functions to program the desired Option Bytes: + - void FLASH_OB_WRPConfig(uint32_t OB_WRP, FunctionalState NewState) => to Enable/Disable + the desired sector write protection + - void FLASH_OB_RDPConfig(uint8_t OB_RDP) => to set the desired read Protection Level + - void FLASH_OB_UserConfig(uint8_t OB_IWDG, uint8_t OB_STOP, uint8_t OB_STDBY) => to configure + the user Option Bytes. + - void FLASH_OB_BORConfig(uint8_t OB_BOR) => to set the BOR Level + + 3. Once all needed Option Bytes to be programmed are correctly written, call the + FLASH_OB_Launch() function to launch the Option Bytes programming process. + + @note When changing the IWDG mode from HW to SW or from SW to HW, a system + reset is needed to make the change effective. + + 4. Call the FLASH_OB_Lock() function to disable the FLASH option control register + access (recommended to protect the Option Bytes against possible unwanted operations) + +@endverbatim + * @{ + */ + +/** + * @brief Unlocks the FLASH Option Control Registers access. + * @param None + * @retval None + */ +void FLASH_OB_Unlock(void) +{ + if((FLASH->OPTCR & FLASH_OPTCR_OPTLOCK) != RESET) + { + /* Authorizes the Option Byte register programming */ + FLASH->OPTKEYR = FLASH_OPT_KEY1; + FLASH->OPTKEYR = FLASH_OPT_KEY2; + } +} + +/** + * @brief Locks the FLASH Option Control Registers access. + * @param None + * @retval None + */ +void FLASH_OB_Lock(void) +{ + /* Set the OPTLOCK Bit to lock the FLASH Option Byte Registers access */ + FLASH->OPTCR |= FLASH_OPTCR_OPTLOCK; +} + +/** + * @brief Enables or disables the write protection of the desired sectors + * @param OB_WRP: specifies the sector(s) to be write protected or unprotected. + * This parameter can be one of the following values: + * @arg OB_WRP: A value between OB_WRP_Sector0 and OB_WRP_Sector11 + * @arg OB_WRP_Sector_All + * @param Newstate: new state of the Write Protection. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FLASH_OB_WRPConfig(uint32_t OB_WRP, FunctionalState NewState) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_OB_WRP(OB_WRP)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + if(NewState != DISABLE) + { + *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~OB_WRP); + } + else + { + *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS |= (uint16_t)OB_WRP; + } + } +} + +/** + * @brief Sets the read protection level. + * @param OB_RDP: specifies the read protection level. + * This parameter can be one of the following values: + * @arg OB_RDP_Level_0: No protection + * @arg OB_RDP_Level_1: Read protection of the memory + * @arg OB_RDP_Level_2: Full chip protection + * + * !!!Warning!!! When enabling OB_RDP level 2 it's no more possible to go back to level 1 or 0 + * + * @retval None + */ +void FLASH_OB_RDPConfig(uint8_t OB_RDP) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_OB_RDP(OB_RDP)); + + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + *(__IO uint8_t*)OPTCR_BYTE1_ADDRESS = OB_RDP; + + } +} + +/** + * @brief Programs the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. + * @param OB_IWDG: Selects the IWDG mode + * This parameter can be one of the following values: + * @arg OB_IWDG_SW: Software IWDG selected + * @arg OB_IWDG_HW: Hardware IWDG selected + * @param OB_STOP: Reset event when entering STOP mode. + * This parameter can be one of the following values: + * @arg OB_STOP_NoRST: No reset generated when entering in STOP + * @arg OB_STOP_RST: Reset generated when entering in STOP + * @param OB_STDBY: Reset event when entering Standby mode. + * This parameter can be one of the following values: + * @arg OB_STDBY_NoRST: No reset generated when entering in STANDBY + * @arg OB_STDBY_RST: Reset generated when entering in STANDBY + * @retval None + */ +void FLASH_OB_UserConfig(uint8_t OB_IWDG, uint8_t OB_STOP, uint8_t OB_STDBY) +{ + uint8_t optiontmp = 0xFF; + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_OB_IWDG_SOURCE(OB_IWDG)); + assert_param(IS_OB_STOP_SOURCE(OB_STOP)); + assert_param(IS_OB_STDBY_SOURCE(OB_STDBY)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* Mask OPTLOCK, OPTSTRT and BOR_LEV bits */ + optiontmp = (uint8_t)((*(__IO uint8_t *)OPTCR_BYTE0_ADDRESS) & (uint8_t)0x0F); + + /* Update User Option Byte */ + *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS = OB_IWDG | (uint8_t)(OB_STDBY | (uint8_t)(OB_STOP | ((uint8_t)optiontmp))); + } +} + +/** + * @brief Sets the BOR Level. + * @param OB_BOR: specifies the Option Bytes BOR Reset Level. + * This parameter can be one of the following values: + * @arg OB_BOR_LEVEL3: Supply voltage ranges from 2.7 to 3.6 V + * @arg OB_BOR_LEVEL2: Supply voltage ranges from 2.4 to 2.7 V + * @arg OB_BOR_LEVEL1: Supply voltage ranges from 2.1 to 2.4 V + * @arg OB_BOR_OFF: Supply voltage ranges from 1.62 to 2.1 V + * @retval None + */ +void FLASH_OB_BORConfig(uint8_t OB_BOR) +{ + /* Check the parameters */ + assert_param(IS_OB_BOR(OB_BOR)); + + /* Set the BOR Level */ + *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS &= (~FLASH_OPTCR_BOR_LEV); + *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= OB_BOR; + +} + +/** + * @brief Launch the option byte loading. + * @param None + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_OB_Launch(void) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Set the OPTSTRT bit in OPTCR register */ + *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= FLASH_OPTCR_OPTSTRT; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + return status; +} + +/** + * @brief Returns the FLASH User Option Bytes values. + * @param None + * @retval The FLASH User Option Bytes values: IWDG_SW(Bit0), RST_STOP(Bit1) + * and RST_STDBY(Bit2). + */ +uint8_t FLASH_OB_GetUser(void) +{ + /* Return the User Option Byte */ + return (uint8_t)(FLASH->OPTCR >> 5); +} + +/** + * @brief Returns the FLASH Write Protection Option Bytes value. + * @param None + * @retval The FLASH Write Protection Option Bytes value + */ +uint16_t FLASH_OB_GetWRP(void) +{ + /* Return the FLASH write protection Register value */ + return (*(__IO uint16_t *)(OPTCR_BYTE2_ADDRESS)); +} + +/** + * @brief Returns the FLASH Read Protection level. + * @param None + * @retval FLASH ReadOut Protection Status: + * - SET, when OB_RDP_Level_1 or OB_RDP_Level_2 is set + * - RESET, when OB_RDP_Level_0 is set + */ +FlagStatus FLASH_OB_GetRDP(void) +{ + FlagStatus readstatus = RESET; + + if ((*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) != (uint8_t)OB_RDP_Level_0)) + { + readstatus = SET; + } + else + { + readstatus = RESET; + } + return readstatus; +} + +/** + * @brief Returns the FLASH BOR level. + * @param None + * @retval The FLASH BOR level: + * - OB_BOR_LEVEL3: Supply voltage ranges from 2.7 to 3.6 V + * - OB_BOR_LEVEL2: Supply voltage ranges from 2.4 to 2.7 V + * - OB_BOR_LEVEL1: Supply voltage ranges from 2.1 to 2.4 V + * - OB_BOR_OFF : Supply voltage ranges from 1.62 to 2.1 V + */ +uint8_t FLASH_OB_GetBOR(void) +{ + /* Return the FLASH BOR level */ + return (uint8_t)(*(__IO uint8_t *)(OPTCR_BYTE0_ADDRESS) & (uint8_t)0x0C); +} + +/** + * @} + */ + +/** @defgroup FLASH_Group4 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified FLASH interrupts. + * @param FLASH_IT: specifies the FLASH interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg FLASH_IT_ERR: FLASH Error Interrupt + * @arg FLASH_IT_EOP: FLASH end of operation Interrupt + * @retval None + */ +void FLASH_ITConfig(uint32_t FLASH_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FLASH_IT(FLASH_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if(NewState != DISABLE) + { + /* Enable the interrupt sources */ + FLASH->CR |= FLASH_IT; + } + else + { + /* Disable the interrupt sources */ + FLASH->CR &= ~(uint32_t)FLASH_IT; + } +} + +/** + * @brief Checks whether the specified FLASH flag is set or not. + * @param FLASH_FLAG: specifies the FLASH flag to check. + * This parameter can be one of the following values: + * @arg FLASH_FLAG_EOP: FLASH End of Operation flag + * @arg FLASH_FLAG_OPERR: FLASH operation Error flag + * @arg FLASH_FLAG_WRPERR: FLASH Write protected error flag + * @arg FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag + * @arg FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag + * @arg FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag + * @arg FLASH_FLAG_BSY: FLASH Busy flag + * @retval The new state of FLASH_FLAG (SET or RESET). + */ +FlagStatus FLASH_GetFlagStatus(uint32_t FLASH_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_FLASH_GET_FLAG(FLASH_FLAG)); + + if((FLASH->SR & FLASH_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the new state of FLASH_FLAG (SET or RESET) */ + return bitstatus; +} + +/** + * @brief Clears the FLASH's pending flags. + * @param FLASH_FLAG: specifies the FLASH flags to clear. + * This parameter can be any combination of the following values: + * @arg FLASH_FLAG_EOP: FLASH End of Operation flag + * @arg FLASH_FLAG_OPERR: FLASH operation Error flag + * @arg FLASH_FLAG_WRPERR: FLASH Write protected error flag + * @arg FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag + * @arg FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag + * @arg FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag + * @retval None + */ +void FLASH_ClearFlag(uint32_t FLASH_FLAG) +{ + /* Check the parameters */ + assert_param(IS_FLASH_CLEAR_FLAG(FLASH_FLAG)); + + /* Clear the flags */ + FLASH->SR = FLASH_FLAG; +} + +/** + * @brief Returns the FLASH Status. + * @param None + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_GetStatus(void) +{ + FLASH_Status flashstatus = FLASH_COMPLETE; + + if((FLASH->SR & FLASH_FLAG_BSY) == FLASH_FLAG_BSY) + { + flashstatus = FLASH_BUSY; + } + else + { + if((FLASH->SR & FLASH_FLAG_WRPERR) != (uint32_t)0x00) + { + flashstatus = FLASH_ERROR_WRP; + } + else + { + if((FLASH->SR & (uint32_t)0xEF) != (uint32_t)0x00) + { + flashstatus = FLASH_ERROR_PROGRAM; + } + else + { + if((FLASH->SR & FLASH_FLAG_OPERR) != (uint32_t)0x00) + { + flashstatus = FLASH_ERROR_OPERATION; + } + else + { + flashstatus = FLASH_COMPLETE; + } + } + } + } + /* Return the FLASH Status */ + return flashstatus; +} + +/** + * @brief Waits for a FLASH operation to complete. + * @param None + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_WaitForLastOperation(void) +{ + __IO FLASH_Status status = FLASH_COMPLETE; + + /* Check for the FLASH Status */ + status = FLASH_GetStatus(); + + /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. + Even if the FLASH operation fails, the BUSY flag will be reset and an error + flag will be set */ + while(status == FLASH_BUSY) + { + status = FLASH_GetStatus(); + } + /* Return the operation status */ + return status; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_fsmc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_fsmc.c new file mode 100644 index 00000000..84a38f06 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_fsmc.c @@ -0,0 +1,987 @@ +/** + ****************************************************************************** + * @file stm32f2xx_fsmc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the FSMC peripheral: + * - Interface with SRAM, PSRAM, NOR and OneNAND memories + * - Interface with NAND memories + * - Interface with 16-bit PC Card compatible memories + * - Interrupts and flags management + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_fsmc.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup FSMC + * @brief FSMC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* --------------------- FSMC registers bit mask ---------------------------- */ +/* FSMC BCRx Mask */ +#define BCR_MBKEN_SET ((uint32_t)0x00000001) +#define BCR_MBKEN_RESET ((uint32_t)0x000FFFFE) +#define BCR_FACCEN_SET ((uint32_t)0x00000040) + +/* FSMC PCRx Mask */ +#define PCR_PBKEN_SET ((uint32_t)0x00000004) +#define PCR_PBKEN_RESET ((uint32_t)0x000FFFFB) +#define PCR_ECCEN_SET ((uint32_t)0x00000040) +#define PCR_ECCEN_RESET ((uint32_t)0x000FFFBF) +#define PCR_MEMORYTYPE_NAND ((uint32_t)0x00000008) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup FSMC_Private_Functions + * @{ + */ + +/** @defgroup FSMC_Group1 NOR/SRAM Controller functions + * @brief NOR/SRAM Controller functions + * +@verbatim + =============================================================================== + NOR/SRAM Controller functions + =============================================================================== + + The following sequence should be followed to configure the FSMC to interface with + SRAM, PSRAM, NOR or OneNAND memory connected to the NOR/SRAM Bank: + + 1. Enable the clock for the FSMC and associated GPIOs using the following functions: + RCC_AHB3PeriphClockCmd(RCC_AHB3Periph_FSMC, ENABLE); + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + + 2. FSMC pins configuration + - Connect the involved FSMC pins to AF12 using the following function + GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_FSMC); + - Configure these FSMC pins in alternate function mode by calling the function + GPIO_Init(); + + 3. Declare a FSMC_NORSRAMInitTypeDef structure, for example: + FSMC_NORSRAMInitTypeDef FSMC_NORSRAMInitStructure; + and fill the FSMC_NORSRAMInitStructure variable with the allowed values of + the structure member. + + 4. Initialize the NOR/SRAM Controller by calling the function + FSMC_NORSRAMInit(&FSMC_NORSRAMInitStructure); + + 5. Then enable the NOR/SRAM Bank, for example: + FSMC_NORSRAMCmd(FSMC_Bank1_NORSRAM2, ENABLE); + + 6. At this stage you can read/write from/to the memory connected to the NOR/SRAM Bank. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the FSMC NOR/SRAM Banks registers to their default + * reset values. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank1_NORSRAM1: FSMC Bank1 NOR/SRAM1 + * @arg FSMC_Bank1_NORSRAM2: FSMC Bank1 NOR/SRAM2 + * @arg FSMC_Bank1_NORSRAM3: FSMC Bank1 NOR/SRAM3 + * @arg FSMC_Bank1_NORSRAM4: FSMC Bank1 NOR/SRAM4 + * @retval None + */ +void FSMC_NORSRAMDeInit(uint32_t FSMC_Bank) +{ + /* Check the parameter */ + assert_param(IS_FSMC_NORSRAM_BANK(FSMC_Bank)); + + /* FSMC_Bank1_NORSRAM1 */ + if(FSMC_Bank == FSMC_Bank1_NORSRAM1) + { + FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030DB; + } + /* FSMC_Bank1_NORSRAM2, FSMC_Bank1_NORSRAM3 or FSMC_Bank1_NORSRAM4 */ + else + { + FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030D2; + } + FSMC_Bank1->BTCR[FSMC_Bank + 1] = 0x0FFFFFFF; + FSMC_Bank1E->BWTR[FSMC_Bank] = 0x0FFFFFFF; +} + +/** + * @brief Initializes the FSMC NOR/SRAM Banks according to the specified + * parameters in the FSMC_NORSRAMInitStruct. + * @param FSMC_NORSRAMInitStruct : pointer to a FSMC_NORSRAMInitTypeDef structure + * that contains the configuration information for the FSMC NOR/SRAM + * specified Banks. + * @retval None + */ +void FSMC_NORSRAMInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct) +{ + /* Check the parameters */ + assert_param(IS_FSMC_NORSRAM_BANK(FSMC_NORSRAMInitStruct->FSMC_Bank)); + assert_param(IS_FSMC_MUX(FSMC_NORSRAMInitStruct->FSMC_DataAddressMux)); + assert_param(IS_FSMC_MEMORY(FSMC_NORSRAMInitStruct->FSMC_MemoryType)); + assert_param(IS_FSMC_MEMORY_WIDTH(FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth)); + assert_param(IS_FSMC_BURSTMODE(FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode)); + assert_param(IS_FSMC_ASYNWAIT(FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait)); + assert_param(IS_FSMC_WAIT_POLARITY(FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity)); + assert_param(IS_FSMC_WRAP_MODE(FSMC_NORSRAMInitStruct->FSMC_WrapMode)); + assert_param(IS_FSMC_WAIT_SIGNAL_ACTIVE(FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive)); + assert_param(IS_FSMC_WRITE_OPERATION(FSMC_NORSRAMInitStruct->FSMC_WriteOperation)); + assert_param(IS_FSMC_WAITE_SIGNAL(FSMC_NORSRAMInitStruct->FSMC_WaitSignal)); + assert_param(IS_FSMC_EXTENDED_MODE(FSMC_NORSRAMInitStruct->FSMC_ExtendedMode)); + assert_param(IS_FSMC_WRITE_BURST(FSMC_NORSRAMInitStruct->FSMC_WriteBurst)); + assert_param(IS_FSMC_ADDRESS_SETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressSetupTime)); + assert_param(IS_FSMC_ADDRESS_HOLD_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressHoldTime)); + assert_param(IS_FSMC_DATASETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataSetupTime)); + assert_param(IS_FSMC_TURNAROUND_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusTurnAroundDuration)); + assert_param(IS_FSMC_CLK_DIV(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision)); + assert_param(IS_FSMC_DATA_LATENCY(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLatency)); + assert_param(IS_FSMC_ACCESS_MODE(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMode)); + + /* Bank1 NOR/SRAM control register configuration */ + FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank] = + (uint32_t)FSMC_NORSRAMInitStruct->FSMC_DataAddressMux | + FSMC_NORSRAMInitStruct->FSMC_MemoryType | + FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth | + FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode | + FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait | + FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity | + FSMC_NORSRAMInitStruct->FSMC_WrapMode | + FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive | + FSMC_NORSRAMInitStruct->FSMC_WriteOperation | + FSMC_NORSRAMInitStruct->FSMC_WaitSignal | + FSMC_NORSRAMInitStruct->FSMC_ExtendedMode | + FSMC_NORSRAMInitStruct->FSMC_WriteBurst; + if(FSMC_NORSRAMInitStruct->FSMC_MemoryType == FSMC_MemoryType_NOR) + { + FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank] |= (uint32_t)BCR_FACCEN_SET; + } + /* Bank1 NOR/SRAM timing register configuration */ + FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank+1] = + (uint32_t)FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressSetupTime | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressHoldTime << 4) | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataSetupTime << 8) | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusTurnAroundDuration << 16) | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision << 20) | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLatency << 24) | + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMode; + + + /* Bank1 NOR/SRAM timing register for write configuration, if extended mode is used */ + if(FSMC_NORSRAMInitStruct->FSMC_ExtendedMode == FSMC_ExtendedMode_Enable) + { + assert_param(IS_FSMC_ADDRESS_SETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressSetupTime)); + assert_param(IS_FSMC_ADDRESS_HOLD_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressHoldTime)); + assert_param(IS_FSMC_DATASETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetupTime)); + assert_param(IS_FSMC_CLK_DIV(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision)); + assert_param(IS_FSMC_DATA_LATENCY(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency)); + assert_param(IS_FSMC_ACCESS_MODE(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode)); + FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = + (uint32_t)FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressSetupTime | + (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressHoldTime << 4 )| + (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetupTime << 8) | + (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision << 20) | + (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency << 24) | + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode; + } + else + { + FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = 0x0FFFFFFF; + } +} + +/** + * @brief Fills each FSMC_NORSRAMInitStruct member with its default value. + * @param FSMC_NORSRAMInitStruct: pointer to a FSMC_NORSRAMInitTypeDef structure + * which will be initialized. + * @retval None + */ +void FSMC_NORSRAMStructInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct) +{ + /* Reset NOR/SRAM Init structure parameters values */ + FSMC_NORSRAMInitStruct->FSMC_Bank = FSMC_Bank1_NORSRAM1; + FSMC_NORSRAMInitStruct->FSMC_DataAddressMux = FSMC_DataAddressMux_Enable; + FSMC_NORSRAMInitStruct->FSMC_MemoryType = FSMC_MemoryType_SRAM; + FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_8b; + FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable; + FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait = FSMC_AsynchronousWait_Disable; + FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity = FSMC_WaitSignalPolarity_Low; + FSMC_NORSRAMInitStruct->FSMC_WrapMode = FSMC_WrapMode_Disable; + FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive = FSMC_WaitSignalActive_BeforeWaitState; + FSMC_NORSRAMInitStruct->FSMC_WriteOperation = FSMC_WriteOperation_Enable; + FSMC_NORSRAMInitStruct->FSMC_WaitSignal = FSMC_WaitSignal_Enable; + FSMC_NORSRAMInitStruct->FSMC_ExtendedMode = FSMC_ExtendedMode_Disable; + FSMC_NORSRAMInitStruct->FSMC_WriteBurst = FSMC_WriteBurst_Disable; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressSetupTime = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressHoldTime = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataSetupTime = 0xFF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusTurnAroundDuration = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLatency = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMode = FSMC_AccessMode_A; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressSetupTime = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressHoldTime = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetupTime = 0xFF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_BusTurnAroundDuration = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode = FSMC_AccessMode_A; +} + +/** + * @brief Enables or disables the specified NOR/SRAM Memory Bank. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank1_NORSRAM1: FSMC Bank1 NOR/SRAM1 + * @arg FSMC_Bank1_NORSRAM2: FSMC Bank1 NOR/SRAM2 + * @arg FSMC_Bank1_NORSRAM3: FSMC Bank1 NOR/SRAM3 + * @arg FSMC_Bank1_NORSRAM4: FSMC Bank1 NOR/SRAM4 + * @param NewState: new state of the FSMC_Bank. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_NORSRAMCmd(uint32_t FSMC_Bank, FunctionalState NewState) +{ + assert_param(IS_FSMC_NORSRAM_BANK(FSMC_Bank)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected NOR/SRAM Bank by setting the PBKEN bit in the BCRx register */ + FSMC_Bank1->BTCR[FSMC_Bank] |= BCR_MBKEN_SET; + } + else + { + /* Disable the selected NOR/SRAM Bank by clearing the PBKEN bit in the BCRx register */ + FSMC_Bank1->BTCR[FSMC_Bank] &= BCR_MBKEN_RESET; + } +} +/** + * @} + */ + +/** @defgroup FSMC_Group2 NAND Controller functions + * @brief NAND Controller functions + * +@verbatim + =============================================================================== + NAND Controller functions + =============================================================================== + + The following sequence should be followed to configure the FSMC to interface with + 8-bit or 16-bit NAND memory connected to the NAND Bank: + + 1. Enable the clock for the FSMC and associated GPIOs using the following functions: + RCC_AHB3PeriphClockCmd(RCC_AHB3Periph_FSMC, ENABLE); + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + + 2. FSMC pins configuration + - Connect the involved FSMC pins to AF12 using the following function + GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_FSMC); + - Configure these FSMC pins in alternate function mode by calling the function + GPIO_Init(); + + 3. Declare a FSMC_NANDInitTypeDef structure, for example: + FSMC_NANDInitTypeDef FSMC_NANDInitStructure; + and fill the FSMC_NANDInitStructure variable with the allowed values of + the structure member. + + 4. Initialize the NAND Controller by calling the function + FSMC_NANDInit(&FSMC_NANDInitStructure); + + 5. Then enable the NAND Bank, for example: + FSMC_NANDCmd(FSMC_Bank3_NAND, ENABLE); + + 6. At this stage you can read/write from/to the memory connected to the NAND Bank. + +@note To enable the Error Correction Code (ECC), you have to use the function + FSMC_NANDECCCmd(FSMC_Bank3_NAND, ENABLE); + and to get the current ECC value you have to use the function + ECCval = FSMC_GetECC(FSMC_Bank3_NAND); + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the FSMC NAND Banks registers to their default reset values. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @retval None + */ +void FSMC_NANDDeInit(uint32_t FSMC_Bank) +{ + /* Check the parameter */ + assert_param(IS_FSMC_NAND_BANK(FSMC_Bank)); + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + /* Set the FSMC_Bank2 registers to their reset values */ + FSMC_Bank2->PCR2 = 0x00000018; + FSMC_Bank2->SR2 = 0x00000040; + FSMC_Bank2->PMEM2 = 0xFCFCFCFC; + FSMC_Bank2->PATT2 = 0xFCFCFCFC; + } + /* FSMC_Bank3_NAND */ + else + { + /* Set the FSMC_Bank3 registers to their reset values */ + FSMC_Bank3->PCR3 = 0x00000018; + FSMC_Bank3->SR3 = 0x00000040; + FSMC_Bank3->PMEM3 = 0xFCFCFCFC; + FSMC_Bank3->PATT3 = 0xFCFCFCFC; + } +} + +/** + * @brief Initializes the FSMC NAND Banks according to the specified parameters + * in the FSMC_NANDInitStruct. + * @param FSMC_NANDInitStruct : pointer to a FSMC_NANDInitTypeDef structure that + * contains the configuration information for the FSMC NAND specified Banks. + * @retval None + */ +void FSMC_NANDInit(FSMC_NANDInitTypeDef* FSMC_NANDInitStruct) +{ + uint32_t tmppcr = 0x00000000, tmppmem = 0x00000000, tmppatt = 0x00000000; + + /* Check the parameters */ + assert_param( IS_FSMC_NAND_BANK(FSMC_NANDInitStruct->FSMC_Bank)); + assert_param( IS_FSMC_WAIT_FEATURE(FSMC_NANDInitStruct->FSMC_Waitfeature)); + assert_param( IS_FSMC_MEMORY_WIDTH(FSMC_NANDInitStruct->FSMC_MemoryDataWidth)); + assert_param( IS_FSMC_ECC_STATE(FSMC_NANDInitStruct->FSMC_ECC)); + assert_param( IS_FSMC_ECCPAGE_SIZE(FSMC_NANDInitStruct->FSMC_ECCPageSize)); + assert_param( IS_FSMC_TCLR_TIME(FSMC_NANDInitStruct->FSMC_TCLRSetupTime)); + assert_param( IS_FSMC_TAR_TIME(FSMC_NANDInitStruct->FSMC_TARSetupTime)); + assert_param(IS_FSMC_SETUP_TIME(FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime)); + assert_param(IS_FSMC_SETUP_TIME(FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime)); + + /* Set the tmppcr value according to FSMC_NANDInitStruct parameters */ + tmppcr = (uint32_t)FSMC_NANDInitStruct->FSMC_Waitfeature | + PCR_MEMORYTYPE_NAND | + FSMC_NANDInitStruct->FSMC_MemoryDataWidth | + FSMC_NANDInitStruct->FSMC_ECC | + FSMC_NANDInitStruct->FSMC_ECCPageSize | + (FSMC_NANDInitStruct->FSMC_TCLRSetupTime << 9 )| + (FSMC_NANDInitStruct->FSMC_TARSetupTime << 13); + + /* Set tmppmem value according to FSMC_CommonSpaceTimingStructure parameters */ + tmppmem = (uint32_t)FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime | + (FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime << 24); + + /* Set tmppatt value according to FSMC_AttributeSpaceTimingStructure parameters */ + tmppatt = (uint32_t)FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime | + (FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime << 24); + + if(FSMC_NANDInitStruct->FSMC_Bank == FSMC_Bank2_NAND) + { + /* FSMC_Bank2_NAND registers configuration */ + FSMC_Bank2->PCR2 = tmppcr; + FSMC_Bank2->PMEM2 = tmppmem; + FSMC_Bank2->PATT2 = tmppatt; + } + else + { + /* FSMC_Bank3_NAND registers configuration */ + FSMC_Bank3->PCR3 = tmppcr; + FSMC_Bank3->PMEM3 = tmppmem; + FSMC_Bank3->PATT3 = tmppatt; + } +} + + +/** + * @brief Fills each FSMC_NANDInitStruct member with its default value. + * @param FSMC_NANDInitStruct: pointer to a FSMC_NANDInitTypeDef structure which + * will be initialized. + * @retval None + */ +void FSMC_NANDStructInit(FSMC_NANDInitTypeDef* FSMC_NANDInitStruct) +{ + /* Reset NAND Init structure parameters values */ + FSMC_NANDInitStruct->FSMC_Bank = FSMC_Bank2_NAND; + FSMC_NANDInitStruct->FSMC_Waitfeature = FSMC_Waitfeature_Disable; + FSMC_NANDInitStruct->FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_8b; + FSMC_NANDInitStruct->FSMC_ECC = FSMC_ECC_Disable; + FSMC_NANDInitStruct->FSMC_ECCPageSize = FSMC_ECCPageSize_256Bytes; + FSMC_NANDInitStruct->FSMC_TCLRSetupTime = 0x0; + FSMC_NANDInitStruct->FSMC_TARSetupTime = 0x0; + FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; +} + +/** + * @brief Enables or disables the specified NAND Memory Bank. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @param NewState: new state of the FSMC_Bank. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_NANDCmd(uint32_t FSMC_Bank, FunctionalState NewState) +{ + assert_param(IS_FSMC_NAND_BANK(FSMC_Bank)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected NAND Bank by setting the PBKEN bit in the PCRx register */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->PCR2 |= PCR_PBKEN_SET; + } + else + { + FSMC_Bank3->PCR3 |= PCR_PBKEN_SET; + } + } + else + { + /* Disable the selected NAND Bank by clearing the PBKEN bit in the PCRx register */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->PCR2 &= PCR_PBKEN_RESET; + } + else + { + FSMC_Bank3->PCR3 &= PCR_PBKEN_RESET; + } + } +} +/** + * @brief Enables or disables the FSMC NAND ECC feature. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @param NewState: new state of the FSMC NAND ECC feature. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_NANDECCCmd(uint32_t FSMC_Bank, FunctionalState NewState) +{ + assert_param(IS_FSMC_NAND_BANK(FSMC_Bank)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected NAND Bank ECC function by setting the ECCEN bit in the PCRx register */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->PCR2 |= PCR_ECCEN_SET; + } + else + { + FSMC_Bank3->PCR3 |= PCR_ECCEN_SET; + } + } + else + { + /* Disable the selected NAND Bank ECC function by clearing the ECCEN bit in the PCRx register */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->PCR2 &= PCR_ECCEN_RESET; + } + else + { + FSMC_Bank3->PCR3 &= PCR_ECCEN_RESET; + } + } +} + +/** + * @brief Returns the error correction code register value. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @retval The Error Correction Code (ECC) value. + */ +uint32_t FSMC_GetECC(uint32_t FSMC_Bank) +{ + uint32_t eccval = 0x00000000; + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + /* Get the ECCR2 register value */ + eccval = FSMC_Bank2->ECCR2; + } + else + { + /* Get the ECCR3 register value */ + eccval = FSMC_Bank3->ECCR3; + } + /* Return the error correction code value */ + return(eccval); +} +/** + * @} + */ + +/** @defgroup FSMC_Group3 PCCARD Controller functions + * @brief PCCARD Controller functions + * +@verbatim + =============================================================================== + PCCARD Controller functions + =============================================================================== + + The following sequence should be followed to configure the FSMC to interface with + 16-bit PC Card compatible memory connected to the PCCARD Bank: + + 1. Enable the clock for the FSMC and associated GPIOs using the following functions: + RCC_AHB3PeriphClockCmd(RCC_AHB3Periph_FSMC, ENABLE); + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + + 2. FSMC pins configuration + - Connect the involved FSMC pins to AF12 using the following function + GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_FSMC); + - Configure these FSMC pins in alternate function mode by calling the function + GPIO_Init(); + + 3. Declare a FSMC_PCCARDInitTypeDef structure, for example: + FSMC_PCCARDInitTypeDef FSMC_PCCARDInitStructure; + and fill the FSMC_PCCARDInitStructure variable with the allowed values of + the structure member. + + 4. Initialize the PCCARD Controller by calling the function + FSMC_PCCARDInit(&FSMC_PCCARDInitStructure); + + 5. Then enable the PCCARD Bank: + FSMC_PCCARDCmd(ENABLE); + + 6. At this stage you can read/write from/to the memory connected to the PCCARD Bank. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the FSMC PCCARD Bank registers to their default reset values. + * @param None + * @retval None + */ +void FSMC_PCCARDDeInit(void) +{ + /* Set the FSMC_Bank4 registers to their reset values */ + FSMC_Bank4->PCR4 = 0x00000018; + FSMC_Bank4->SR4 = 0x00000000; + FSMC_Bank4->PMEM4 = 0xFCFCFCFC; + FSMC_Bank4->PATT4 = 0xFCFCFCFC; + FSMC_Bank4->PIO4 = 0xFCFCFCFC; +} + +/** + * @brief Initializes the FSMC PCCARD Bank according to the specified parameters + * in the FSMC_PCCARDInitStruct. + * @param FSMC_PCCARDInitStruct : pointer to a FSMC_PCCARDInitTypeDef structure + * that contains the configuration information for the FSMC PCCARD Bank. + * @retval None + */ +void FSMC_PCCARDInit(FSMC_PCCARDInitTypeDef* FSMC_PCCARDInitStruct) +{ + /* Check the parameters */ + assert_param(IS_FSMC_WAIT_FEATURE(FSMC_PCCARDInitStruct->FSMC_Waitfeature)); + assert_param(IS_FSMC_TCLR_TIME(FSMC_PCCARDInitStruct->FSMC_TCLRSetupTime)); + assert_param(IS_FSMC_TAR_TIME(FSMC_PCCARDInitStruct->FSMC_TARSetupTime)); + + assert_param(IS_FSMC_SETUP_TIME(FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime)); + + assert_param(IS_FSMC_SETUP_TIME(FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime)); + assert_param(IS_FSMC_SETUP_TIME(FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HiZSetupTime)); + + /* Set the PCR4 register value according to FSMC_PCCARDInitStruct parameters */ + FSMC_Bank4->PCR4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_Waitfeature | + FSMC_MemoryDataWidth_16b | + (FSMC_PCCARDInitStruct->FSMC_TCLRSetupTime << 9) | + (FSMC_PCCARDInitStruct->FSMC_TARSetupTime << 13); + + /* Set PMEM4 register value according to FSMC_CommonSpaceTimingStructure parameters */ + FSMC_Bank4->PMEM4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime | + (FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime << 24); + + /* Set PATT4 register value according to FSMC_AttributeSpaceTimingStructure parameters */ + FSMC_Bank4->PATT4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime | + (FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime << 24); + + /* Set PIO4 register value according to FSMC_IOSpaceTimingStructure parameters */ + FSMC_Bank4->PIO4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_SetupTime | + (FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HiZSetupTime << 24); +} + +/** + * @brief Fills each FSMC_PCCARDInitStruct member with its default value. + * @param FSMC_PCCARDInitStruct: pointer to a FSMC_PCCARDInitTypeDef structure + * which will be initialized. + * @retval None + */ +void FSMC_PCCARDStructInit(FSMC_PCCARDInitTypeDef* FSMC_PCCARDInitStruct) +{ + /* Reset PCCARD Init structure parameters values */ + FSMC_PCCARDInitStruct->FSMC_Waitfeature = FSMC_Waitfeature_Disable; + FSMC_PCCARDInitStruct->FSMC_TCLRSetupTime = 0x0; + FSMC_PCCARDInitStruct->FSMC_TARSetupTime = 0x0; + FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; +} + +/** + * @brief Enables or disables the PCCARD Memory Bank. + * @param NewState: new state of the PCCARD Memory Bank. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_PCCARDCmd(FunctionalState NewState) +{ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the PCCARD Bank by setting the PBKEN bit in the PCR4 register */ + FSMC_Bank4->PCR4 |= PCR_PBKEN_SET; + } + else + { + /* Disable the PCCARD Bank by clearing the PBKEN bit in the PCR4 register */ + FSMC_Bank4->PCR4 &= PCR_PBKEN_RESET; + } +} +/** + * @} + */ + +/** @defgroup FSMC_Group4 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified FSMC interrupts. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_IT: specifies the FSMC interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg FSMC_IT_RisingEdge: Rising edge detection interrupt. + * @arg FSMC_IT_Level: Level edge detection interrupt. + * @arg FSMC_IT_FallingEdge: Falling edge detection interrupt. + * @param NewState: new state of the specified FSMC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_ITConfig(uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState) +{ + assert_param(IS_FSMC_IT_BANK(FSMC_Bank)); + assert_param(IS_FSMC_IT(FSMC_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected FSMC_Bank2 interrupts */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->SR2 |= FSMC_IT; + } + /* Enable the selected FSMC_Bank3 interrupts */ + else if (FSMC_Bank == FSMC_Bank3_NAND) + { + FSMC_Bank3->SR3 |= FSMC_IT; + } + /* Enable the selected FSMC_Bank4 interrupts */ + else + { + FSMC_Bank4->SR4 |= FSMC_IT; + } + } + else + { + /* Disable the selected FSMC_Bank2 interrupts */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + + FSMC_Bank2->SR2 &= (uint32_t)~FSMC_IT; + } + /* Disable the selected FSMC_Bank3 interrupts */ + else if (FSMC_Bank == FSMC_Bank3_NAND) + { + FSMC_Bank3->SR3 &= (uint32_t)~FSMC_IT; + } + /* Disable the selected FSMC_Bank4 interrupts */ + else + { + FSMC_Bank4->SR4 &= (uint32_t)~FSMC_IT; + } + } +} + +/** + * @brief Checks whether the specified FSMC flag is set or not. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg FSMC_FLAG_RisingEdge: Rising edge detection Flag. + * @arg FSMC_FLAG_Level: Level detection Flag. + * @arg FSMC_FLAG_FallingEdge: Falling edge detection Flag. + * @arg FSMC_FLAG_FEMPT: Fifo empty Flag. + * @retval The new state of FSMC_FLAG (SET or RESET). + */ +FlagStatus FSMC_GetFlagStatus(uint32_t FSMC_Bank, uint32_t FSMC_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t tmpsr = 0x00000000; + + /* Check the parameters */ + assert_param(IS_FSMC_GETFLAG_BANK(FSMC_Bank)); + assert_param(IS_FSMC_GET_FLAG(FSMC_FLAG)); + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + tmpsr = FSMC_Bank2->SR2; + } + else if(FSMC_Bank == FSMC_Bank3_NAND) + { + tmpsr = FSMC_Bank3->SR3; + } + /* FSMC_Bank4_PCCARD*/ + else + { + tmpsr = FSMC_Bank4->SR4; + } + + /* Get the flag status */ + if ((tmpsr & FSMC_FLAG) != (uint16_t)RESET ) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the flag status */ + return bitstatus; +} + +/** + * @brief Clears the FSMC's pending flags. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg FSMC_FLAG_RisingEdge: Rising edge detection Flag. + * @arg FSMC_FLAG_Level: Level detection Flag. + * @arg FSMC_FLAG_FallingEdge: Falling edge detection Flag. + * @retval None + */ +void FSMC_ClearFlag(uint32_t FSMC_Bank, uint32_t FSMC_FLAG) +{ + /* Check the parameters */ + assert_param(IS_FSMC_GETFLAG_BANK(FSMC_Bank)); + assert_param(IS_FSMC_CLEAR_FLAG(FSMC_FLAG)) ; + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->SR2 &= ~FSMC_FLAG; + } + else if(FSMC_Bank == FSMC_Bank3_NAND) + { + FSMC_Bank3->SR3 &= ~FSMC_FLAG; + } + /* FSMC_Bank4_PCCARD*/ + else + { + FSMC_Bank4->SR4 &= ~FSMC_FLAG; + } +} + +/** + * @brief Checks whether the specified FSMC interrupt has occurred or not. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_IT: specifies the FSMC interrupt source to check. + * This parameter can be one of the following values: + * @arg FSMC_IT_RisingEdge: Rising edge detection interrupt. + * @arg FSMC_IT_Level: Level edge detection interrupt. + * @arg FSMC_IT_FallingEdge: Falling edge detection interrupt. + * @retval The new state of FSMC_IT (SET or RESET). + */ +ITStatus FSMC_GetITStatus(uint32_t FSMC_Bank, uint32_t FSMC_IT) +{ + ITStatus bitstatus = RESET; + uint32_t tmpsr = 0x0, itstatus = 0x0, itenable = 0x0; + + /* Check the parameters */ + assert_param(IS_FSMC_IT_BANK(FSMC_Bank)); + assert_param(IS_FSMC_GET_IT(FSMC_IT)); + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + tmpsr = FSMC_Bank2->SR2; + } + else if(FSMC_Bank == FSMC_Bank3_NAND) + { + tmpsr = FSMC_Bank3->SR3; + } + /* FSMC_Bank4_PCCARD*/ + else + { + tmpsr = FSMC_Bank4->SR4; + } + + itstatus = tmpsr & FSMC_IT; + + itenable = tmpsr & (FSMC_IT >> 3); + if ((itstatus != (uint32_t)RESET) && (itenable != (uint32_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the FSMC's interrupt pending bits. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_IT: specifies the interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg FSMC_IT_RisingEdge: Rising edge detection interrupt. + * @arg FSMC_IT_Level: Level edge detection interrupt. + * @arg FSMC_IT_FallingEdge: Falling edge detection interrupt. + * @retval None + */ +void FSMC_ClearITPendingBit(uint32_t FSMC_Bank, uint32_t FSMC_IT) +{ + /* Check the parameters */ + assert_param(IS_FSMC_IT_BANK(FSMC_Bank)); + assert_param(IS_FSMC_IT(FSMC_IT)); + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->SR2 &= ~(FSMC_IT >> 3); + } + else if(FSMC_Bank == FSMC_Bank3_NAND) + { + FSMC_Bank3->SR3 &= ~(FSMC_IT >> 3); + } + /* FSMC_Bank4_PCCARD*/ + else + { + FSMC_Bank4->SR4 &= ~(FSMC_IT >> 3); + } +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_gpio.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_gpio.c new file mode 100644 index 00000000..aaf8dcb4 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_gpio.c @@ -0,0 +1,566 @@ +/** + ****************************************************************************** + * @file stm32f2xx_gpio.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the GPIO peripheral: + * - Initialization and Configuration + * - GPIO Read and Write + * - GPIO Alternate functions configuration + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable the GPIO AHB clock using the following function + * RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + * + * 2. Configure the GPIO pin(s) using GPIO_Init() + * Four possible configuration are available for each pin: + * - Input: Floating, Pull-up, Pull-down. + * - Output: Push-Pull (Pull-up, Pull-down or no Pull) + * Open Drain (Pull-up, Pull-down or no Pull). + * In output mode, the speed is configurable: 2 MHz, 25 MHz, + * 50 MHz or 100 MHz. + * - Alternate Function: Push-Pull (Pull-up, Pull-down or no Pull) + * Open Drain (Pull-up, Pull-down or no Pull). + * - Analog: required mode when a pin is to be used as ADC channel + * or DAC output. + * + * 3- Peripherals alternate function: + * - For ADC and DAC, configure the desired pin in analog mode using + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AN; + * - For other peripherals (TIM, USART...): + * - Connect the pin to the desired peripherals' Alternate + * Function (AF) using GPIO_PinAFConfig() function + * - Configure the desired pin in alternate function mode using + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * + * 4. To get the level of a pin configured in input mode use GPIO_ReadInputDataBit() + * + * 5. To set/reset the level of a pin configured in output mode use + * GPIO_SetBits()/GPIO_ResetBits() + * + * 6. During and just after reset, the alternate functions are not + * active and the GPIO pins are configured in input floating mode + * (except JTAG pins). + * + * 7. The LSE oscillator pins OSC32_IN and OSC32_OUT can be used as + * general-purpose (PC14 and PC15, respectively) when the LSE + * oscillator is off. The LSE has priority over the GPIO function. + * + * 8. The HSE oscillator pins OSC_IN/OSC_OUT can be used as + * general-purpose PH0 and PH1, respectively, when the HSE + * oscillator is off. The HSE has priority over the GPIO function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_gpio.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup GPIO + * @brief GPIO driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup GPIO_Private_Functions + * @{ + */ + +/** @defgroup GPIO_Group1 Initialization and Configuration + * @brief Initialization and Configuration + * +@verbatim + =============================================================================== + Initialization and Configuration + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the GPIOx peripheral registers to their default reset values. + * @note By default, The GPIO pins are configured in input floating mode (except JTAG pins). + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @retval None + */ +void GPIO_DeInit(GPIO_TypeDef* GPIOx) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + if (GPIOx == GPIOA) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOA, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOA, DISABLE); + } + else if (GPIOx == GPIOB) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOB, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOB, DISABLE); + } + else if (GPIOx == GPIOC) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOC, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOC, DISABLE); + } + else if (GPIOx == GPIOD) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOD, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOD, DISABLE); + } + else if (GPIOx == GPIOE) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOE, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOE, DISABLE); + } + else if (GPIOx == GPIOF) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOF, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOF, DISABLE); + } + else if (GPIOx == GPIOG) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOG, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOG, DISABLE); + } + else if (GPIOx == GPIOH) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOH, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOH, DISABLE); + } + else + { + if (GPIOx == GPIOI) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOI, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOI, DISABLE); + } + } +} + +/** + * @brief Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_InitStruct: pointer to a GPIO_InitTypeDef structure that contains + * the configuration information for the specified GPIO peripheral. + * @retval None + */ +void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct) +{ + uint32_t pinpos = 0x00, pos = 0x00 , currentpin = 0x00; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN(GPIO_InitStruct->GPIO_Pin)); + assert_param(IS_GPIO_MODE(GPIO_InitStruct->GPIO_Mode)); + assert_param(IS_GPIO_PUPD(GPIO_InitStruct->GPIO_PuPd)); + + /* -------------------------Configure the port pins---------------- */ + /*-- GPIO Mode Configuration --*/ + for (pinpos = 0x00; pinpos < 0x10; pinpos++) + { + pos = ((uint32_t)0x01) << pinpos; + /* Get the port pins position */ + currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; + + if (currentpin == pos) + { + GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (pinpos * 2)); + GPIOx->MODER |= (((uint32_t)GPIO_InitStruct->GPIO_Mode) << (pinpos * 2)); + + if ((GPIO_InitStruct->GPIO_Mode == GPIO_Mode_OUT) || (GPIO_InitStruct->GPIO_Mode == GPIO_Mode_AF)) + { + /* Check Speed mode parameters */ + assert_param(IS_GPIO_SPEED(GPIO_InitStruct->GPIO_Speed)); + + /* Speed mode configuration */ + GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (pinpos * 2)); + GPIOx->OSPEEDR |= ((uint32_t)(GPIO_InitStruct->GPIO_Speed) << (pinpos * 2)); + + /* Check Output mode parameters */ + assert_param(IS_GPIO_OTYPE(GPIO_InitStruct->GPIO_OType)); + + /* Output mode configuration*/ + GPIOx->OTYPER &= ~((GPIO_OTYPER_OT_0) << ((uint16_t)pinpos)) ; + GPIOx->OTYPER |= (uint16_t)(((uint16_t)GPIO_InitStruct->GPIO_OType) << ((uint16_t)pinpos)); + } + + /* Pull-up Pull down resistor configuration*/ + GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << ((uint16_t)pinpos * 2)); + GPIOx->PUPDR |= (((uint32_t)GPIO_InitStruct->GPIO_PuPd) << (pinpos * 2)); + } + } +} + +/** + * @brief Fills each GPIO_InitStruct member with its default value. + * @param GPIO_InitStruct : pointer to a GPIO_InitTypeDef structure which will be initialized. + * @retval None + */ +void GPIO_StructInit(GPIO_InitTypeDef* GPIO_InitStruct) +{ + /* Reset GPIO init structure parameters values */ + GPIO_InitStruct->GPIO_Pin = GPIO_Pin_All; + GPIO_InitStruct->GPIO_Mode = GPIO_Mode_IN; + GPIO_InitStruct->GPIO_Speed = GPIO_Speed_2MHz; + GPIO_InitStruct->GPIO_OType = GPIO_OType_PP; + GPIO_InitStruct->GPIO_PuPd = GPIO_PuPd_NOPULL; +} + +/** + * @brief Locks GPIO Pins configuration registers. + * @note The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR, + * GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH. + * @note The configuration of the locked GPIO pins can no longer be modified + * until the next reset. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bit to be locked. + * This parameter can be any combination of GPIO_Pin_x where x can be (0..15). + * @retval None + */ +void GPIO_PinLockConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + __IO uint32_t tmp = 0x00010000; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN(GPIO_Pin)); + + tmp |= GPIO_Pin; + /* Set LCKK bit */ + GPIOx->LCKR = tmp; + /* Reset LCKK bit */ + GPIOx->LCKR = GPIO_Pin; + /* Set LCKK bit */ + GPIOx->LCKR = tmp; + /* Read LCKK bit*/ + tmp = GPIOx->LCKR; + /* Read LCKK bit*/ + tmp = GPIOx->LCKR; +} + +/** + * @} + */ + +/** @defgroup GPIO_Group2 GPIO Read and Write + * @brief GPIO Read and Write + * +@verbatim + =============================================================================== + GPIO Read and Write + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Reads the specified input port pin. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bit to read. + * This parameter can be GPIO_Pin_x where x can be (0..15). + * @retval The input port pin value. + */ +uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + uint8_t bitstatus = 0x00; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); + + if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)Bit_RESET) + { + bitstatus = (uint8_t)Bit_SET; + } + else + { + bitstatus = (uint8_t)Bit_RESET; + } + return bitstatus; +} + +/** + * @brief Reads the specified GPIO input data port. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @retval GPIO input data port value. + */ +uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + return ((uint16_t)GPIOx->IDR); +} + +/** + * @brief Reads the specified output data port bit. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bit to read. + * This parameter can be GPIO_Pin_x where x can be (0..15). + * @retval The output port pin value. + */ +uint8_t GPIO_ReadOutputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + uint8_t bitstatus = 0x00; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); + + if ((GPIOx->ODR & GPIO_Pin) != (uint32_t)Bit_RESET) + { + bitstatus = (uint8_t)Bit_SET; + } + else + { + bitstatus = (uint8_t)Bit_RESET; + } + return bitstatus; +} + +/** + * @brief Reads the specified GPIO output data port. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @retval GPIO output data port value. + */ +uint16_t GPIO_ReadOutputData(GPIO_TypeDef* GPIOx) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + return ((uint16_t)GPIOx->ODR); +} + +/** + * @brief Sets the selected data port bits. + * @note This functions uses GPIOx_BSRR register to allow atomic read/modify + * accesses. In this way, there is no risk of an IRQ occurring between + * the read and the modify access. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bits to be written. + * This parameter can be any combination of GPIO_Pin_x where x can be (0..15). + * @retval None + */ +void GPIO_SetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN(GPIO_Pin)); + + GPIOx->BSRRL = GPIO_Pin; +} + +/** + * @brief Clears the selected data port bits. + * @note This functions uses GPIOx_BSRR register to allow atomic read/modify + * accesses. In this way, there is no risk of an IRQ occurring between + * the read and the modify access. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bits to be written. + * This parameter can be any combination of GPIO_Pin_x where x can be (0..15). + * @retval None + */ +void GPIO_ResetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN(GPIO_Pin)); + + GPIOx->BSRRH = GPIO_Pin; +} + +/** + * @brief Sets or clears the selected data port bit. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bit to be written. + * This parameter can be one of GPIO_Pin_x where x can be (0..15). + * @param BitVal: specifies the value to be written to the selected bit. + * This parameter can be one of the BitAction enum values: + * @arg Bit_RESET: to clear the port pin + * @arg Bit_SET: to set the port pin + * @retval None + */ +void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); + assert_param(IS_GPIO_BIT_ACTION(BitVal)); + + if (BitVal != Bit_RESET) + { + GPIOx->BSRRL = GPIO_Pin; + } + else + { + GPIOx->BSRRH = GPIO_Pin ; + } +} + +/** + * @brief Writes data to the specified GPIO data port. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param PortVal: specifies the value to be written to the port output data register. + * @retval None + */ +void GPIO_Write(GPIO_TypeDef* GPIOx, uint16_t PortVal) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + GPIOx->ODR = PortVal; +} + +/** + * @brief Toggles the specified GPIO pins.. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: Specifies the pins to be toggled. + * @retval None + */ +void GPIO_ToggleBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + GPIOx->ODR ^= GPIO_Pin; +} + +/** + * @} + */ + +/** @defgroup GPIO_Group3 GPIO Alternate functions configuration function + * @brief GPIO Alternate functions configuration function + * +@verbatim + =============================================================================== + GPIO Alternate functions configuration function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Changes the mapping of the specified pin. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_PinSource: specifies the pin for the Alternate function. + * This parameter can be GPIO_PinSourcex where x can be (0..15). + * @param GPIO_AFSelection: selects the pin to used as Alternate function. + * This parameter can be one of the following values: + * @arg GPIO_AF_RTC_50Hz: Connect RTC_50Hz pin to AF0 (default after reset) + * @arg GPIO_AF_MCO: Connect MCO pin (MCO1 and MCO2) to AF0 (default after reset) + * @arg GPIO_AF_TAMPER: Connect TAMPER pins (TAMPER_1 and TAMPER_2) to AF0 (default after reset) + * @arg GPIO_AF_SWJ: Connect SWJ pins (SWD and JTAG)to AF0 (default after reset) + * @arg GPIO_AF_TRACE: Connect TRACE pins to AF0 (default after reset) + * @arg GPIO_AF_TIM1: Connect TIM1 pins to AF1 + * @arg GPIO_AF_TIM2: Connect TIM2 pins to AF1 + * @arg GPIO_AF_TIM3: Connect TIM3 pins to AF2 + * @arg GPIO_AF_TIM4: Connect TIM4 pins to AF2 + * @arg GPIO_AF_TIM5: Connect TIM5 pins to AF2 + * @arg GPIO_AF_TIM8: Connect TIM8 pins to AF3 + * @arg GPIO_AF_TIM9: Connect TIM9 pins to AF3 + * @arg GPIO_AF_TIM10: Connect TIM10 pins to AF3 + * @arg GPIO_AF_TIM11: Connect TIM11 pins to AF3 + * @arg GPIO_AF_I2C1: Connect I2C1 pins to AF4 + * @arg GPIO_AF_I2C2: Connect I2C2 pins to AF4 + * @arg GPIO_AF_I2C3: Connect I2C3 pins to AF4 + * @arg GPIO_AF_SPI1: Connect SPI1 pins to AF5 + * @arg GPIO_AF_SPI2: Connect SPI2/I2S2 pins to AF5 + * @arg GPIO_AF_SPI3: Connect SPI3/I2S3 pins to AF6 + * @arg GPIO_AF_USART1: Connect USART1 pins to AF7 + * @arg GPIO_AF_USART2: Connect USART2 pins to AF7 + * @arg GPIO_AF_USART3: Connect USART3 pins to AF7 + * @arg GPIO_AF_UART4: Connect UART4 pins to AF8 + * @arg GPIO_AF_UART5: Connect UART5 pins to AF8 + * @arg GPIO_AF_USART6: Connect USART6 pins to AF8 + * @arg GPIO_AF_CAN1: Connect CAN1 pins to AF9 + * @arg GPIO_AF_CAN2: Connect CAN2 pins to AF9 + * @arg GPIO_AF_TIM12: Connect TIM12 pins to AF9 + * @arg GPIO_AF_TIM13: Connect TIM13 pins to AF9 + * @arg GPIO_AF_TIM14: Connect TIM14 pins to AF9 + * @arg GPIO_AF_OTG_FS: Connect OTG_FS pins to AF10 + * @arg GPIO_AF_OTG_HS: Connect OTG_HS pins to AF10 + * @arg GPIO_AF_ETH: Connect ETHERNET pins to AF11 + * @arg GPIO_AF_FSMC: Connect FSMC pins to AF12 + * @arg GPIO_AF_OTG_HS_FS: Connect OTG HS (configured in FS) pins to AF12 + * @arg GPIO_AF_SDIO: Connect SDIO pins to AF12 + * @arg GPIO_AF_DCMI: Connect DCMI pins to AF13 + * @arg GPIO_AF_EVENTOUT: Connect EVENTOUT pins to AF15 + * @retval None + */ +void GPIO_PinAFConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF) +{ + uint32_t temp = 0x00; + uint32_t temp_2 = 0x00; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN_SOURCE(GPIO_PinSource)); + assert_param(IS_GPIO_AF(GPIO_AF)); + + temp = ((uint32_t)(GPIO_AF) << ((uint32_t)((uint32_t)GPIO_PinSource & (uint32_t)0x07) * 4)) ; + GPIOx->AFR[GPIO_PinSource >> 0x03] &= ~((uint32_t)0xF << ((uint32_t)((uint32_t)GPIO_PinSource & (uint32_t)0x07) * 4)) ; + temp_2 = GPIOx->AFR[GPIO_PinSource >> 0x03] | temp; + GPIOx->AFR[GPIO_PinSource >> 0x03] = temp_2; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_hash.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_hash.c new file mode 100644 index 00000000..74ac2804 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_hash.c @@ -0,0 +1,706 @@ +/** + ****************************************************************************** + * @file stm32f2xx_hash.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the HASH / HMAC Processor (HASH) peripheral: + * - Initialization and Configuration functions + * - Message Digest generation functions + * - context swapping functions + * - DMA interface function + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * HASH operation : + * ---------------- + * 1. Enable the HASH controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_HASH, ENABLE) function. + * + * 2. Initialise the HASH using HASH_Init() function. + * + * 3 . Reset the HASH processor core, so that the HASH will be ready + * to compute he message digest of a new message by using + * HASH_Reset() function. + * + * 4. Enable the HASH controller using the HASH_Cmd() function. + * + * 5. if using DMA for Data input transfer, Activate the DMA Request + * using HASH_DMACmd() function + * + * 6. if DMA is not used for data transfer, use HASH_DataIn() function + * to enter data to IN FIFO. + * + * + * 7. Configure the Number of valid bits in last word of the message + * using HASH_SetLastWordValidBitsNbr() function. + * + * 8. if the message length is not an exact multiple of 512 bits, + * then the function HASH_StartDigest() must be called to + * launch the computation of the final digest. + * + * 9. Once computed, the digest can be read using HASH_GetDigest() + * function. + * + * 10. To control HASH events you can use one of the following + * two methods: + * a- Check on HASH flags using the HASH_GetFlagStatus() function. + * b- Use HASH interrupts through the function HASH_ITConfig() at + * initialization phase and HASH_GetITStatus() function into + * interrupt routines in hashing phase. + * After checking on a flag you should clear it using HASH_ClearFlag() + * function. And after checking on an interrupt event you should + * clear it using HASH_ClearITPendingBit() function. + * + * 11. Save and restore hash processor context using + * HASH_SaveContext() and HASH_RestoreContext() functions. + * + * + * + * HMAC operation : + * ---------------- + * The HMAC algorithm is used for message authentication, by + * irreversibly binding the message being processed to a key chosen + * by the user. + * For HMAC specifications, refer to "HMAC: keyed-hashing for message + * authentication, H. Krawczyk, M. Bellare, R. Canetti, February 1997" + * + * Basically, the HMAC algorithm consists of two nested hash operations: + * HMAC(message) = Hash[((key | pad) XOR 0x5C) | Hash(((key | pad) XOR 0x36) | message)] + * where: + * - "pad" is a sequence of zeroes needed to extend the key to the + * length of the underlying hash function data block (that is + * 512 bits for both the SHA-1 and MD5 hash algorithms) + * - "|" represents the concatenation operator + * + * + * To compute the HMAC, four different phases are required: + * + * 1. Initialise the HASH using HASH_Init() function to do HMAC + * operation. + * + * 2. The key (to be used for the inner hash function) is then given + * to the core. This operation follows the same mechanism as the + * one used to send the message in the hash operation (that is, + * by HASH_DataIn() function and, finally, + * HASH_StartDigest() function. + * + * 3. Once the last word has been entered and computation has started, + * the hash processor elaborates the key. It is then ready to + * accept the message text using the same mechanism as the one + * used to send the message in the hash operation. + * + * 4. After the first hash round, the hash processor returns "ready" + * to indicate that it is ready to receive the key to be used for + * the outer hash function (normally, this key is the same as the + * one used for the inner hash function). When the last word of + * the key is entered and computation starts, the HMAC result is + * made available using HASH_GetDigest() function. + * + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_hash.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup HASH + * @brief HASH driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup HASH_Private_Functions + * @{ + */ + +/** @defgroup HASH_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to + - Initialize the HASH peripheral + - Configure the HASH Processor + - MD5/SHA1, + - HASH/HMAC, + - datatype + - HMAC Key (if mode = HMAC) + - Reset the HASH Processor + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the HASH peripheral registers to their default reset values + * @param None + * @retval None + */ +void HASH_DeInit(void) +{ + /* Enable HASH reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_HASH, ENABLE); + /* Release HASH from reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_HASH, DISABLE); +} + +/** + * @brief Initializes the HASH peripheral according to the specified parameters + * in the HASH_InitStruct structure. + * @note the hash processor is reset when calling this function so that the + * HASH will be ready to compute the message digest of a new message. + * There is no need to call HASH_Reset() function. + * @param HASH_InitStruct: pointer to a HASH_InitTypeDef structure that contains + * the configuration information for the HASH peripheral. + * @note The field HASH_HMACKeyType in HASH_InitTypeDef must be filled only + * if the algorithm mode is HMAC. + * @retval None + */ +void HASH_Init(HASH_InitTypeDef* HASH_InitStruct) +{ + /* Check the parameters */ + assert_param(IS_HASH_ALGOSELECTION(HASH_InitStruct->HASH_AlgoSelection)); + assert_param(IS_HASH_DATATYPE(HASH_InitStruct->HASH_DataType)); + assert_param(IS_HASH_ALGOMODE(HASH_InitStruct->HASH_AlgoMode)); + + /* Configure the Algorithm used, algorithm mode and the datatype */ + HASH->CR &= ~ (HASH_CR_ALGO | HASH_CR_DATATYPE | HASH_CR_MODE); + HASH->CR |= (HASH_InitStruct->HASH_AlgoSelection | \ + HASH_InitStruct->HASH_DataType | \ + HASH_InitStruct->HASH_AlgoMode); + + /* if algorithm mode is HMAC, set the Key */ + if(HASH_InitStruct->HASH_AlgoMode == HASH_AlgoMode_HMAC) + { + assert_param(IS_HASH_HMAC_KEYTYPE(HASH_InitStruct->HASH_HMACKeyType)); + HASH->CR &= ~HASH_CR_LKEY; + HASH->CR |= HASH_InitStruct->HASH_HMACKeyType; + } + + /* Reset the HASH processor core, so that the HASH will be ready to compute + the message digest of a new message */ + HASH->CR |= HASH_CR_INIT; +} + +/** + * @brief Fills each HASH_InitStruct member with its default value. + * @param HASH_InitStruct : pointer to a HASH_InitTypeDef structure which will + * be initialized. + * @note The default values set are : Processor mode is HASH, Algorithm selected is SHA1, + * Data type selected is 32b and HMAC Key Type is short key. + * @retval None + */ +void HASH_StructInit(HASH_InitTypeDef* HASH_InitStruct) +{ + /* Initialize the HASH_AlgoSelection member */ + HASH_InitStruct->HASH_AlgoSelection = HASH_AlgoSelection_SHA1; + + /* Initialize the HASH_AlgoMode member */ + HASH_InitStruct->HASH_AlgoMode = HASH_AlgoMode_HASH; + + /* Initialize the HASH_DataType member */ + HASH_InitStruct->HASH_DataType = HASH_DataType_32b; + + /* Initialize the HASH_HMACKeyType member */ + HASH_InitStruct->HASH_HMACKeyType = HASH_HMACKeyType_ShortKey; +} + +/** + * @brief Resets the HASH processor core, so that the HASH will be ready + * to compute the message digest of a new message. + * @note Calling this function will clear the HASH_SR_DCIS (Digest calculation + * completion interrupt status) bit corresponding to HASH_IT_DCI + * interrupt and HASH_FLAG_DCIS flag. + * @param None + * @retval None + */ +void HASH_Reset(void) +{ + /* Reset the HASH processor core */ + HASH->CR |= HASH_CR_INIT; +} +/** + * @} + */ + +/** @defgroup HASH_Group2 Message Digest generation functions + * @brief Message Digest generation functions + * +@verbatim + =============================================================================== + Message Digest generation functions + =============================================================================== + This section provides functions allowing the generation of message digest: + - Push data in the IN FIFO : using HASH_DataIn() + - Get the number of words set in IN FIFO, use HASH_GetInFIFOWordsNbr() + - set the last word valid bits number using HASH_SetLastWordValidBitsNbr() + - start digest calculation : using HASH_StartDigest() + - Get the Digest message : using HASH_GetDigest() + +@endverbatim + * @{ + */ + + +/** + * @brief Configure the Number of valid bits in last word of the message + * @param ValidNumber: Number of valid bits in last word of the message. + * This parameter must be a number between 0 and 0x1F. + * - 0x00: All 32 bits of the last data written are valid + * - 0x01: Only bit [0] of the last data written is valid + * - 0x02: Only bits[1:0] of the last data written are valid + * - 0x03: Only bits[2:0] of the last data written are valid + * - ... + * - 0x1F: Only bits[30:0] of the last data written are valid + * @note The Number of valid bits must be set before to start the message + * digest competition (in Hash and HMAC) and key treatment(in HMAC). + * @retval None + */ +void HASH_SetLastWordValidBitsNbr(uint16_t ValidNumber) +{ + /* Check the parameters */ + assert_param(IS_HASH_VALIDBITSNUMBER(ValidNumber)); + + /* Configure the Number of valid bits in last word of the message */ + HASH->STR &= ~(HASH_STR_NBW); + HASH->STR |= ValidNumber; +} + +/** + * @brief Writes data in the Data Input FIFO + * @param Data: new data of the message to be processed. + * @retval None + */ +void HASH_DataIn(uint32_t Data) +{ + /* Write in the DIN register a new data */ + HASH->DIN = Data; +} + +/** + * @brief Returns the number of words already pushed into the IN FIFO. + * @param None + * @retval The value of words already pushed into the IN FIFO. + */ +uint8_t HASH_GetInFIFOWordsNbr(void) +{ + /* Return the value of NBW bits */ + return ((HASH->CR & HASH_CR_NBW) >> 8); +} + +/** + * @brief Provides the message digest result. + * @note In MD5 mode, Data[4] filed of HASH_MsgDigest structure is not used + * and is read as zero. + * @param HASH_MessageDigest: pointer to a HASH_MsgDigest structure which will + * hold the message digest result + * @retval None + */ +void HASH_GetDigest(HASH_MsgDigest* HASH_MessageDigest) +{ + /* Get the data field */ + HASH_MessageDigest->Data[0] = HASH->HR[0]; + HASH_MessageDigest->Data[1] = HASH->HR[1]; + HASH_MessageDigest->Data[2] = HASH->HR[2]; + HASH_MessageDigest->Data[3] = HASH->HR[3]; + HASH_MessageDigest->Data[4] = HASH->HR[4]; +} + +/** + * @brief Starts the message padding and calculation of the final message + * @param None + * @retval None + */ +void HASH_StartDigest(void) +{ + /* Start the Digest calculation */ + HASH->STR |= HASH_STR_DCAL; +} +/** + * @} + */ + +/** @defgroup HASH_Group3 Context swapping functions + * @brief Context swapping functions + * +@verbatim + =============================================================================== + Context swapping functions + =============================================================================== + + This section provides functions allowing to save and store HASH Context + + It is possible to interrupt a HASH/HMAC process to perform another processing + with a higher priority, and to complete the interrupted process later on, when + the higher priority task is complete. To do so, the context of the interrupted + task must be saved from the HASH registers to memory, and then be restored + from memory to the HASH registers. + + 1. To save the current context, use HASH_SaveContext() function + 2. To restore the saved context, use HASH_RestoreContext() function + + +@endverbatim + * @{ + */ + +/** + * @brief Save the Hash peripheral Context. + * @note The context can be saved only when no block is currently being + * processed. So user must wait for DINIS = 1 (the last block has been + * processed and the input FIFO is empty) or NBW != 0 (the FIFO is not + * full and no processing is ongoing). + * @param HASH_ContextSave: pointer to a HASH_Context structure that contains + * the repository for current context. + * @retval None + */ +void HASH_SaveContext(HASH_Context* HASH_ContextSave) +{ + uint8_t i = 0; + + /* save context registers */ + HASH_ContextSave->HASH_IMR = HASH->IMR; + HASH_ContextSave->HASH_STR = HASH->STR; + HASH_ContextSave->HASH_CR = HASH->CR; + for(i=0; i<=50;i++) + { + HASH_ContextSave->HASH_CSR[i] = HASH->CSR[i]; + } +} + +/** + * @brief Restore the Hash peripheral Context. + * @note After calling this function, user can restart the processing from the + * point where it has been interrupted. + * @param HASH_ContextRestore: pointer to a HASH_Context structure that contains + * the repository for saved context. + * @retval None + */ +void HASH_RestoreContext(HASH_Context* HASH_ContextRestore) +{ + uint8_t i = 0; + + /* restore context registers */ + HASH->IMR = HASH_ContextRestore->HASH_IMR; + HASH->STR = HASH_ContextRestore->HASH_STR; + HASH->CR = HASH_ContextRestore->HASH_CR; + + /* Initialize the hash processor */ + HASH->CR |= HASH_CR_INIT; + + /* continue restoring context registers */ + for(i=0; i<=50;i++) + { + HASH->CSR[i] = HASH_ContextRestore->HASH_CSR[i]; + } +} +/** + * @} + */ + +/** @defgroup HASH_Group4 HASH's DMA interface Configuration function + * @brief HASH's DMA interface Configuration function + * +@verbatim + =============================================================================== + HASH's DMA interface Configuration function + =============================================================================== + + This section provides functions allowing to configure the DMA interface for + HASH/ HMAC data input transfer. + + When the DMA mode is enabled (using the HASH_DMACmd() function), data can be + sent to the IN FIFO using the DMA peripheral. + + + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the HASH DMA interface. + * @note The DMA is disabled by hardware after the end of transfer. + * @param NewState: new state of the selected HASH DMA transfer request. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void HASH_DMACmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the HASH DMA request */ + HASH->CR |= HASH_CR_DMAE; + } + else + { + /* Disable the HASH DMA request */ + HASH->CR &= ~HASH_CR_DMAE; + } +} +/** + * @} + */ + +/** @defgroup HASH_Group5 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the HASH Interrupts and + to get the status and clear flags and Interrupts pending bits. + + The HASH provides 2 Interrupts sources and 5 Flags: + + Flags : + ---------- + 1. HASH_FLAG_DINIS : set when 16 locations are free in the Data IN FIFO + which means that a new block (512 bit) can be entered + into the input buffer. + + 2. HASH_FLAG_DCIS : set when Digest calculation is complete + + 3. HASH_FLAG_DMAS : set when HASH's DMA interface is enabled (DMAE=1) or + a transfer is ongoing. + This Flag is cleared only by hardware. + + 4. HASH_FLAG_BUSY : set when The hash core is processing a block of data + This Flag is cleared only by hardware. + + 5. HASH_FLAG_DINNE : set when Data IN FIFO is not empty which means that + the Data IN FIFO contains at least one word of data. + This Flag is cleared only by hardware. + + Interrupts : + ------------ + + 1. HASH_IT_DINI : if enabled, this interrupt source is pending when 16 + locations are free in the Data IN FIFO which means that + a new block (512 bit) can be entered into the input buffer. + This interrupt source is cleared using + HASH_ClearITPendingBit(HASH_IT_DINI) function. + + 2. HASH_IT_DCI : if enabled, this interrupt source is pending when Digest + calculation is complete. + This interrupt source is cleared using + HASH_ClearITPendingBit(HASH_IT_DCI) function. + + Managing the HASH controller events : + ------------------------------------ + The user should identify which mode will be used in his application to manage + the HASH controller events: Polling mode or Interrupt mode. + + 1. In the Polling Mode it is advised to use the following functions: + - HASH_GetFlagStatus() : to check if flags events occur. + - HASH_ClearFlag() : to clear the flags events. + + 2. In the Interrupt Mode it is advised to use the following functions: + - HASH_ITConfig() : to enable or disable the interrupt source. + - HASH_GetITStatus() : to check if Interrupt occurs. + - HASH_ClearITPendingBit() : to clear the Interrupt pending Bit + (corresponding Flag). + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified HASH interrupts. + * @param HASH_IT: specifies the HASH interrupt source to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg HASH_IT_DINI: Data Input interrupt + * @arg HASH_IT_DCI: Digest Calculation Completion Interrupt + * @param NewState: new state of the specified HASH interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void HASH_ITConfig(uint8_t HASH_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_HASH_IT(HASH_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected HASH interrupt */ + HASH->IMR |= HASH_IT; + } + else + { + /* Disable the selected HASH interrupt */ + HASH->IMR &= (uint8_t) ~HASH_IT; + } +} + +/** + * @brief Checks whether the specified HASH flag is set or not. + * @param HASH_FLAG: specifies the HASH flag to check. + * This parameter can be one of the following values: + * @arg HASH_FLAG_DINIS: Data input interrupt status flag + * @arg HASH_FLAG_DCIS: Digest calculation completion interrupt status flag + * @arg HASH_FLAG_BUSY: Busy flag + * @arg HASH_FLAG_DMAS: DMAS Status flag + * @arg HASH_FLAG_DINNE: Data Input register (DIN) not empty status flag + * @retval The new state of HASH_FLAG (SET or RESET) + */ +FlagStatus HASH_GetFlagStatus(uint16_t HASH_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t tempreg = 0; + + /* Check the parameters */ + assert_param(IS_HASH_GET_FLAG(HASH_FLAG)); + + /* check if the FLAG is in CR register */ + if ((HASH_FLAG & HASH_FLAG_DINNE) != (uint16_t)RESET ) + { + tempreg = HASH->CR; + } + else /* The FLAG is in SR register */ + { + tempreg = HASH->SR; + } + + /* Check the status of the specified HASH flag */ + if ((tempreg & HASH_FLAG) != (uint16_t)RESET) + { + /* HASH is set */ + bitstatus = SET; + } + else + { + /* HASH_FLAG is reset */ + bitstatus = RESET; + } + + /* Return the HASH_FLAG status */ + return bitstatus; +} +/** + * @brief Clears the HASH flags. + * @param HASH_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg HASH_FLAG_DINIS: Data Input Flag + * @arg HASH_FLAG_DCIS: Digest Calculation Completion Flag + * @retval None + */ +void HASH_ClearFlag(uint16_t HASH_FLAG) +{ + /* Check the parameters */ + assert_param(IS_HASH_CLEAR_FLAG(HASH_FLAG)); + + /* Clear the selected HASH flags */ + HASH->SR = ~(uint32_t)HASH_FLAG; +} +/** + * @brief Checks whether the specified HASH interrupt has occurred or not. + * @param HASH_IT: specifies the HASH interrupt source to check. + * This parameter can be one of the following values: + * @arg HASH_IT_DINI: Data Input interrupt + * @arg HASH_IT_DCI: Digest Calculation Completion Interrupt + * @retval The new state of HASH_IT (SET or RESET). + */ +ITStatus HASH_GetITStatus(uint8_t HASH_IT) +{ + ITStatus bitstatus = RESET; + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_HASH_GET_IT(HASH_IT)); + + + /* Check the status of the specified HASH interrupt */ + tmpreg = HASH->SR; + + if (((HASH->IMR & tmpreg) & HASH_IT) != RESET) + { + /* HASH_IT is set */ + bitstatus = SET; + } + else + { + /* HASH_IT is reset */ + bitstatus = RESET; + } + /* Return the HASH_IT status */ + return bitstatus; +} + +/** + * @brief Clears the HASH interrupt pending bit(s). + * @param HASH_IT: specifies the HASH interrupt pending bit(s) to clear. + * This parameter can be any combination of the following values: + * @arg HASH_IT_DINI: Data Input interrupt + * @arg HASH_IT_DCI: Digest Calculation Completion Interrupt + * @retval None + */ +void HASH_ClearITPendingBit(uint8_t HASH_IT) +{ + /* Check the parameters */ + assert_param(IS_HASH_IT(HASH_IT)); + + /* Clear the selected HASH interrupt pending bit */ + HASH->SR = (uint8_t)~HASH_IT; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_hash_md5.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_hash_md5.c new file mode 100644 index 00000000..6cb34373 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_hash_md5.c @@ -0,0 +1,320 @@ +/** + ****************************************************************************** + * @file stm32f2xx_hash_md5.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides high level functions to compute the HASH MD5 and + * HMAC MD5 Digest of an input message. + * It uses the stm32f2xx_hash.c/.h drivers to access the STM32F2xx HASH + * peripheral. + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable The HASH controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_HASH, ENABLE); function. + * + * 2. Calculate the HASH MD5 Digest using HASH_MD5() function. + * + * 3. Calculate the HMAC MD5 Digest using HMAC_MD5() function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_hash.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup HASH + * @brief HASH driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define MD5BUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup HASH_Private_Functions + * @{ + */ + +/** @defgroup HASH_Group7 High Level MD5 functions + * @brief High Level MD5 Hash and HMAC functions + * +@verbatim + =============================================================================== + High Level MD5 Hash and HMAC functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Compute the HASH MD5 digest. + * @param Input: pointer to the Input buffer to be treated. + * @param Ilen: length of the Input buffer. + * @param Output: the returned digest + * @retval An ErrorStatus enumeration value: + * - SUCCESS: digest computation done + * - ERROR: digest computation failed + */ +ErrorStatus HASH_MD5(uint8_t *Input, uint32_t Ilen, uint8_t Output[16]) +{ + HASH_InitTypeDef MD5_HASH_InitStructure; + HASH_MsgDigest MD5_MessageDigest; + __IO uint16_t nbvalidbitsdata = 0; + uint32_t i = 0; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + + + /* Number of valid bits in last word of the Input data */ + nbvalidbitsdata = 8 * (Ilen % 4); + + /* HASH peripheral initialization */ + HASH_DeInit(); + + /* HASH Configuration */ + MD5_HASH_InitStructure.HASH_AlgoSelection = HASH_AlgoSelection_MD5; + MD5_HASH_InitStructure.HASH_AlgoMode = HASH_AlgoMode_HASH; + MD5_HASH_InitStructure.HASH_DataType = HASH_DataType_8b; + HASH_Init(&MD5_HASH_InitStructure); + + /* Configure the number of valid bits in last word of the data */ + HASH_SetLastWordValidBitsNbr(nbvalidbitsdata); + + /* Write the Input block in the IN FIFO */ + for(i=0; i 64) + { + /* HMAC long Key */ + MD5_HASH_InitStructure.HASH_HMACKeyType = HASH_HMACKeyType_LongKey; + } + else + { + /* HMAC short Key */ + MD5_HASH_InitStructure.HASH_HMACKeyType = HASH_HMACKeyType_ShortKey; + } + HASH_Init(&MD5_HASH_InitStructure); + + /* Configure the number of valid bits in last word of the Key */ + HASH_SetLastWordValidBitsNbr(nbvalidbitskey); + + /* Write the Key */ + for(i=0; i
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_hash.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup HASH + * @brief HASH driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define SHA1BUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup HASH_Private_Functions + * @{ + */ + +/** @defgroup HASH_Group6 High Level SHA1 functions + * @brief High Level SHA1 Hash and HMAC functions + * +@verbatim + =============================================================================== + High Level SHA1 Hash and HMAC functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Compute the HASH SHA1 digest. + * @param Input: pointer to the Input buffer to be treated. + * @param Ilen: length of the Input buffer. + * @param Output: the returned digest + * @retval An ErrorStatus enumeration value: + * - SUCCESS: digest computation done + * - ERROR: digest computation failed + */ +ErrorStatus HASH_SHA1(uint8_t *Input, uint32_t Ilen, uint8_t Output[20]) +{ + HASH_InitTypeDef SHA1_HASH_InitStructure; + HASH_MsgDigest SHA1_MessageDigest; + __IO uint16_t nbvalidbitsdata = 0; + uint32_t i = 0; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + + /* Number of valid bits in last word of the Input data */ + nbvalidbitsdata = 8 * (Ilen % 4); + + /* HASH peripheral initialization */ + HASH_DeInit(); + + /* HASH Configuration */ + SHA1_HASH_InitStructure.HASH_AlgoSelection = HASH_AlgoSelection_SHA1; + SHA1_HASH_InitStructure.HASH_AlgoMode = HASH_AlgoMode_HASH; + SHA1_HASH_InitStructure.HASH_DataType = HASH_DataType_8b; + HASH_Init(&SHA1_HASH_InitStructure); + + /* Configure the number of valid bits in last word of the data */ + HASH_SetLastWordValidBitsNbr(nbvalidbitsdata); + + /* Write the Input block in the IN FIFO */ + for(i=0; i 64) + { + /* HMAC long Key */ + SHA1_HASH_InitStructure.HASH_HMACKeyType = HASH_HMACKeyType_LongKey; + } + else + { + /* HMAC short Key */ + SHA1_HASH_InitStructure.HASH_HMACKeyType = HASH_HMACKeyType_ShortKey; + } + HASH_Init(&SHA1_HASH_InitStructure); + + /* Configure the number of valid bits in last word of the Key */ + HASH_SetLastWordValidBitsNbr(nbvalidbitskey); + + /* Write the Key */ + for(i=0; iGPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * Recommended configuration is Push-Pull, Pull-up, Open-Drain. + * Add an external pull up if necessary (typically 4.7 KOhm). + * + * 4. Program the Mode, duty cycle , Own address, Ack, Speed and Acknowledged + * Address using the I2C_Init() function. + * + * 5. Optionally you can enable/configure the following parameters without + * re-initialization (i.e there is no need to call again I2C_Init() function): + * - Enable the acknowledge feature using I2C_AcknowledgeConfig() function + * - Enable the dual addressing mode using I2C_DualAddressCmd() function + * - Enable the general call using the I2C_GeneralCallCmd() function + * - Enable the clock stretching using I2C_StretchClockCmd() function + * - Enable the fast mode duty cycle using the I2C_FastModeDutyCycleConfig() + * function. + * - Configure the NACK position for Master Receiver mode in case of + * 2 bytes reception using the function I2C_NACKPositionConfig(). + * - Enable the PEC Calculation using I2C_CalculatePEC() function + * - For SMBus Mode: + * - Enable the Address Resolution Protocol (ARP) using I2C_ARPCmd() function + * - Configure the SMBusAlert pin using I2C_SMBusAlertConfig() function + * + * 6. Enable the NVIC and the corresponding interrupt using the function + * I2C_ITConfig() if you need to use interrupt mode. + * + * 7. When using the DMA mode + * - Configure the DMA using DMA_Init() function + * - Active the needed channel Request using I2C_DMACmd() or + * I2C_DMALastTransferCmd() function. + * @note When using DMA mode, I2C interrupts may be used at the same time to + * control the communication flow (Start/Stop/Ack... events and errors). + * + * 8. Enable the I2C using the I2C_Cmd() function. + * + * 9. Enable the DMA using the DMA_Cmd() function when using DMA mode in the + * transfers. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_i2c.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup I2C + * @brief I2C driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +#define CR1_CLEAR_MASK ((uint16_t)0xFBF5) /*I2C_ClockSpeed)); + assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); + assert_param(IS_I2C_DUTY_CYCLE(I2C_InitStruct->I2C_DutyCycle)); + assert_param(IS_I2C_OWN_ADDRESS1(I2C_InitStruct->I2C_OwnAddress1)); + assert_param(IS_I2C_ACK_STATE(I2C_InitStruct->I2C_Ack)); + assert_param(IS_I2C_ACKNOWLEDGE_ADDRESS(I2C_InitStruct->I2C_AcknowledgedAddress)); + +/*---------------------------- I2Cx CR2 Configuration ------------------------*/ + /* Get the I2Cx CR2 value */ + tmpreg = I2Cx->CR2; + /* Clear frequency FREQ[5:0] bits */ + tmpreg &= (uint16_t)~((uint16_t)I2C_CR2_FREQ); + /* Get pclk1 frequency value */ + RCC_GetClocksFreq(&rcc_clocks); + pclk1 = rcc_clocks.PCLK1_Frequency; + /* Set frequency bits depending on pclk1 value */ + freqrange = (uint16_t)(pclk1 / 1000000); + tmpreg |= freqrange; + /* Write to I2Cx CR2 */ + I2Cx->CR2 = tmpreg; + +/*---------------------------- I2Cx CCR Configuration ------------------------*/ + /* Disable the selected I2C peripheral to configure TRISE */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_PE); + /* Reset tmpreg value */ + /* Clear F/S, DUTY and CCR[11:0] bits */ + tmpreg = 0; + + /* Configure speed in standard mode */ + if (I2C_InitStruct->I2C_ClockSpeed <= 100000) + { + /* Standard mode speed calculate */ + result = (uint16_t)(pclk1 / (I2C_InitStruct->I2C_ClockSpeed << 1)); + /* Test if CCR value is under 0x4*/ + if (result < 0x04) + { + /* Set minimum allowed value */ + result = 0x04; + } + /* Set speed value for standard mode */ + tmpreg |= result; + /* Set Maximum Rise Time for standard mode */ + I2Cx->TRISE = freqrange + 1; + } + /* Configure speed in fast mode */ + /* To use the I2C at 400 KHz (in fast mode), the PCLK1 frequency (I2C peripheral + input clock) must be a multiple of 10 MHz */ + else /*(I2C_InitStruct->I2C_ClockSpeed <= 400000)*/ + { + if (I2C_InitStruct->I2C_DutyCycle == I2C_DutyCycle_2) + { + /* Fast mode speed calculate: Tlow/Thigh = 2 */ + result = (uint16_t)(pclk1 / (I2C_InitStruct->I2C_ClockSpeed * 3)); + } + else /*I2C_InitStruct->I2C_DutyCycle == I2C_DutyCycle_16_9*/ + { + /* Fast mode speed calculate: Tlow/Thigh = 16/9 */ + result = (uint16_t)(pclk1 / (I2C_InitStruct->I2C_ClockSpeed * 25)); + /* Set DUTY bit */ + result |= I2C_DutyCycle_16_9; + } + + /* Test if CCR value is under 0x1*/ + if ((result & I2C_CCR_CCR) == 0) + { + /* Set minimum allowed value */ + result |= (uint16_t)0x0001; + } + /* Set speed value and set F/S bit for fast mode */ + tmpreg |= (uint16_t)(result | I2C_CCR_FS); + /* Set Maximum Rise Time for fast mode */ + I2Cx->TRISE = (uint16_t)(((freqrange * (uint16_t)300) / (uint16_t)1000) + (uint16_t)1); + } + + /* Write to I2Cx CCR */ + I2Cx->CCR = tmpreg; + /* Enable the selected I2C peripheral */ + I2Cx->CR1 |= I2C_CR1_PE; + +/*---------------------------- I2Cx CR1 Configuration ------------------------*/ + /* Get the I2Cx CR1 value */ + tmpreg = I2Cx->CR1; + /* Clear ACK, SMBTYPE and SMBUS bits */ + tmpreg &= CR1_CLEAR_MASK; + /* Configure I2Cx: mode and acknowledgement */ + /* Set SMBTYPE and SMBUS bits according to I2C_Mode value */ + /* Set ACK bit according to I2C_Ack value */ + tmpreg |= (uint16_t)((uint32_t)I2C_InitStruct->I2C_Mode | I2C_InitStruct->I2C_Ack); + /* Write to I2Cx CR1 */ + I2Cx->CR1 = tmpreg; + +/*---------------------------- I2Cx OAR1 Configuration -----------------------*/ + /* Set I2Cx Own Address1 and acknowledged address */ + I2Cx->OAR1 = (I2C_InitStruct->I2C_AcknowledgedAddress | I2C_InitStruct->I2C_OwnAddress1); +} + +/** + * @brief Fills each I2C_InitStruct member with its default value. + * @param I2C_InitStruct: pointer to an I2C_InitTypeDef structure which will be initialized. + * @retval None + */ +void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) +{ +/*---------------- Reset I2C init structure parameters values ----------------*/ + /* initialize the I2C_ClockSpeed member */ + I2C_InitStruct->I2C_ClockSpeed = 5000; + /* Initialize the I2C_Mode member */ + I2C_InitStruct->I2C_Mode = I2C_Mode_I2C; + /* Initialize the I2C_DutyCycle member */ + I2C_InitStruct->I2C_DutyCycle = I2C_DutyCycle_2; + /* Initialize the I2C_OwnAddress1 member */ + I2C_InitStruct->I2C_OwnAddress1 = 0; + /* Initialize the I2C_Ack member */ + I2C_InitStruct->I2C_Ack = I2C_Ack_Disable; + /* Initialize the I2C_AcknowledgedAddress member */ + I2C_InitStruct->I2C_AcknowledgedAddress = I2C_AcknowledgedAddress_7bit; +} + +/** + * @brief Enables or disables the specified I2C peripheral. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2Cx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_Cmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C peripheral */ + I2Cx->CR1 |= I2C_CR1_PE; + } + else + { + /* Disable the selected I2C peripheral */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_PE); + } +} + +/** + * @brief Generates I2Cx communication START condition. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C START condition generation. + * This parameter can be: ENABLE or DISABLE. + * @retval None. + */ +void I2C_GenerateSTART(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Generate a START condition */ + I2Cx->CR1 |= I2C_CR1_START; + } + else + { + /* Disable the START condition generation */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_START); + } +} + +/** + * @brief Generates I2Cx communication STOP condition. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C STOP condition generation. + * This parameter can be: ENABLE or DISABLE. + * @retval None. + */ +void I2C_GenerateSTOP(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Generate a STOP condition */ + I2Cx->CR1 |= I2C_CR1_STOP; + } + else + { + /* Disable the STOP condition generation */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_STOP); + } +} + +/** + * @brief Transmits the address byte to select the slave device. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param Address: specifies the slave address which will be transmitted + * @param I2C_Direction: specifies whether the I2C device will be a Transmitter + * or a Receiver. + * This parameter can be one of the following values + * @arg I2C_Direction_Transmitter: Transmitter mode + * @arg I2C_Direction_Receiver: Receiver mode + * @retval None. + */ +void I2C_Send7bitAddress(I2C_TypeDef* I2Cx, uint8_t Address, uint8_t I2C_Direction) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_DIRECTION(I2C_Direction)); + /* Test on the direction to set/reset the read/write bit */ + if (I2C_Direction != I2C_Direction_Transmitter) + { + /* Set the address bit0 for read */ + Address |= I2C_OAR1_ADD0; + } + else + { + /* Reset the address bit0 for write */ + Address &= (uint8_t)~((uint8_t)I2C_OAR1_ADD0); + } + /* Send the address */ + I2Cx->DR = Address; +} + +/** + * @brief Enables or disables the specified I2C acknowledge feature. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C Acknowledgement. + * This parameter can be: ENABLE or DISABLE. + * @retval None. + */ +void I2C_AcknowledgeConfig(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the acknowledgement */ + I2Cx->CR1 |= I2C_CR1_ACK; + } + else + { + /* Disable the acknowledgement */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_ACK); + } +} + +/** + * @brief Configures the specified I2C own address2. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param Address: specifies the 7bit I2C own address2. + * @retval None. + */ +void I2C_OwnAddress2Config(I2C_TypeDef* I2Cx, uint8_t Address) +{ + uint16_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + + /* Get the old register value */ + tmpreg = I2Cx->OAR2; + + /* Reset I2Cx Own address2 bit [7:1] */ + tmpreg &= (uint16_t)~((uint16_t)I2C_OAR2_ADD2); + + /* Set I2Cx Own address2 */ + tmpreg |= (uint16_t)((uint16_t)Address & (uint16_t)0x00FE); + + /* Store the new register value */ + I2Cx->OAR2 = tmpreg; +} + +/** + * @brief Enables or disables the specified I2C dual addressing mode. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C dual addressing mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_DualAddressCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable dual addressing mode */ + I2Cx->OAR2 |= I2C_OAR2_ENDUAL; + } + else + { + /* Disable dual addressing mode */ + I2Cx->OAR2 &= (uint16_t)~((uint16_t)I2C_OAR2_ENDUAL); + } +} + +/** + * @brief Enables or disables the specified I2C general call feature. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C General call. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_GeneralCallCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable generall call */ + I2Cx->CR1 |= I2C_CR1_ENGC; + } + else + { + /* Disable generall call */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_ENGC); + } +} + +/** + * @brief Enables or disables the specified I2C software reset. + * @note When software reset is enabled, the I2C IOs are released (this can + * be useful to recover from bus errors). + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C software reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_SoftwareResetCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Peripheral under reset */ + I2Cx->CR1 |= I2C_CR1_SWRST; + } + else + { + /* Peripheral not under reset */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_SWRST); + } +} + +/** + * @brief Enables or disables the specified I2C Clock stretching. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2Cx Clock stretching. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_StretchClockCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState == DISABLE) + { + /* Enable the selected I2C Clock stretching */ + I2Cx->CR1 |= I2C_CR1_NOSTRETCH; + } + else + { + /* Disable the selected I2C Clock stretching */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_NOSTRETCH); + } +} + +/** + * @brief Selects the specified I2C fast mode duty cycle. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_DutyCycle: specifies the fast mode duty cycle. + * This parameter can be one of the following values: + * @arg I2C_DutyCycle_2: I2C fast mode Tlow/Thigh = 2 + * @arg I2C_DutyCycle_16_9: I2C fast mode Tlow/Thigh = 16/9 + * @retval None + */ +void I2C_FastModeDutyCycleConfig(I2C_TypeDef* I2Cx, uint16_t I2C_DutyCycle) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_DUTY_CYCLE(I2C_DutyCycle)); + if (I2C_DutyCycle != I2C_DutyCycle_16_9) + { + /* I2C fast mode Tlow/Thigh=2 */ + I2Cx->CCR &= I2C_DutyCycle_2; + } + else + { + /* I2C fast mode Tlow/Thigh=16/9 */ + I2Cx->CCR |= I2C_DutyCycle_16_9; + } +} + +/** + * @brief Selects the specified I2C NACK position in master receiver mode. + * @note This function is useful in I2C Master Receiver mode when the number + * of data to be received is equal to 2. In this case, this function + * should be called (with parameter I2C_NACKPosition_Next) before data + * reception starts,as described in the 2-byte reception procedure + * recommended in Reference Manual in Section: Master receiver. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_NACKPosition: specifies the NACK position. + * This parameter can be one of the following values: + * @arg I2C_NACKPosition_Next: indicates that the next byte will be the last + * received byte. + * @arg I2C_NACKPosition_Current: indicates that current byte is the last + * received byte. + * + * @note This function configures the same bit (POS) as I2C_PECPositionConfig() + * but is intended to be used in I2C mode while I2C_PECPositionConfig() + * is intended to used in SMBUS mode. + * + * @retval None + */ +void I2C_NACKPositionConfig(I2C_TypeDef* I2Cx, uint16_t I2C_NACKPosition) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_NACK_POSITION(I2C_NACKPosition)); + + /* Check the input parameter */ + if (I2C_NACKPosition == I2C_NACKPosition_Next) + { + /* Next byte in shift register is the last received byte */ + I2Cx->CR1 |= I2C_NACKPosition_Next; + } + else + { + /* Current byte in shift register is the last received byte */ + I2Cx->CR1 &= I2C_NACKPosition_Current; + } +} + +/** + * @brief Drives the SMBusAlert pin high or low for the specified I2C. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_SMBusAlert: specifies SMBAlert pin level. + * This parameter can be one of the following values: + * @arg I2C_SMBusAlert_Low: SMBAlert pin driven low + * @arg I2C_SMBusAlert_High: SMBAlert pin driven high + * @retval None + */ +void I2C_SMBusAlertConfig(I2C_TypeDef* I2Cx, uint16_t I2C_SMBusAlert) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_SMBUS_ALERT(I2C_SMBusAlert)); + if (I2C_SMBusAlert == I2C_SMBusAlert_Low) + { + /* Drive the SMBusAlert pin Low */ + I2Cx->CR1 |= I2C_SMBusAlert_Low; + } + else + { + /* Drive the SMBusAlert pin High */ + I2Cx->CR1 &= I2C_SMBusAlert_High; + } +} + +/** + * @brief Enables or disables the specified I2C ARP. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2Cx ARP. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_ARPCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C ARP */ + I2Cx->CR1 |= I2C_CR1_ENARP; + } + else + { + /* Disable the selected I2C ARP */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_ENARP); + } +} +/** + * @} + */ + +/** @defgroup I2C_Group2 Data transfers functions + * @brief Data transfers functions + * +@verbatim + =============================================================================== + Data transfers functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Sends a data byte through the I2Cx peripheral. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param Data: Byte to be transmitted.. + * @retval None + */ +void I2C_SendData(I2C_TypeDef* I2Cx, uint8_t Data) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + /* Write in the DR register the data to be sent */ + I2Cx->DR = Data; +} + +/** + * @brief Returns the most recent received data by the I2Cx peripheral. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @retval The value of the received data. + */ +uint8_t I2C_ReceiveData(I2C_TypeDef* I2Cx) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + /* Return the data in the DR register */ + return (uint8_t)I2Cx->DR; +} + +/** + * @} + */ + +/** @defgroup I2C_Group3 PEC management functions + * @brief PEC management functions + * +@verbatim + =============================================================================== + PEC management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified I2C PEC transfer. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C PEC transmission. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_TransmitPEC(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C PEC transmission */ + I2Cx->CR1 |= I2C_CR1_PEC; + } + else + { + /* Disable the selected I2C PEC transmission */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_PEC); + } +} + +/** + * @brief Selects the specified I2C PEC position. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_PECPosition: specifies the PEC position. + * This parameter can be one of the following values: + * @arg I2C_PECPosition_Next: indicates that the next byte is PEC + * @arg I2C_PECPosition_Current: indicates that current byte is PEC + * + * @note This function configures the same bit (POS) as I2C_NACKPositionConfig() + * but is intended to be used in SMBUS mode while I2C_NACKPositionConfig() + * is intended to used in I2C mode. + * + * @retval None + */ +void I2C_PECPositionConfig(I2C_TypeDef* I2Cx, uint16_t I2C_PECPosition) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_PEC_POSITION(I2C_PECPosition)); + if (I2C_PECPosition == I2C_PECPosition_Next) + { + /* Next byte in shift register is PEC */ + I2Cx->CR1 |= I2C_PECPosition_Next; + } + else + { + /* Current byte in shift register is PEC */ + I2Cx->CR1 &= I2C_PECPosition_Current; + } +} + +/** + * @brief Enables or disables the PEC value calculation of the transferred bytes. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2Cx PEC value calculation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_CalculatePEC(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C PEC calculation */ + I2Cx->CR1 |= I2C_CR1_ENPEC; + } + else + { + /* Disable the selected I2C PEC calculation */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_ENPEC); + } +} + +/** + * @brief Returns the PEC value for the specified I2C. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @retval The PEC value. + */ +uint8_t I2C_GetPEC(I2C_TypeDef* I2Cx) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + /* Return the selected I2C PEC value */ + return ((I2Cx->SR2) >> 8); +} + +/** + * @} + */ + +/** @defgroup I2C_Group4 DMA transfers management functions + * @brief DMA transfers management functions + * +@verbatim + =============================================================================== + DMA transfers management functions + =============================================================================== + This section provides functions allowing to configure the I2C DMA channels + requests. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified I2C DMA requests. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C DMA transfer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_DMACmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C DMA requests */ + I2Cx->CR2 |= I2C_CR2_DMAEN; + } + else + { + /* Disable the selected I2C DMA requests */ + I2Cx->CR2 &= (uint16_t)~((uint16_t)I2C_CR2_DMAEN); + } +} + +/** + * @brief Specifies that the next DMA transfer is the last one. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C DMA last transfer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_DMALastTransferCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Next DMA transfer is the last transfer */ + I2Cx->CR2 |= I2C_CR2_LAST; + } + else + { + /* Next DMA transfer is not the last transfer */ + I2Cx->CR2 &= (uint16_t)~((uint16_t)I2C_CR2_LAST); + } +} + +/** + * @} + */ + +/** @defgroup I2C_Group5 Interrupts events and flags management functions + * @brief Interrupts, events and flags management functions + * +@verbatim + =============================================================================== + Interrupts, events and flags management functions + =============================================================================== + This section provides functions allowing to configure the I2C Interrupts + sources and check or clear the flags or pending bits status. + The user should identify which mode will be used in his application to manage + the communication: Polling mode, Interrupt mode or DMA mode. + + =============================================================================== + I2C State Monitoring Functions + =============================================================================== + This I2C driver provides three different ways for I2C state monitoring + depending on the application requirements and constraints: + + + 1. Basic state monitoring (Using I2C_CheckEvent() function) + ----------------------------------------------------------- + It compares the status registers (SR1 and SR2) content to a given event + (can be the combination of one or more flags). + It returns SUCCESS if the current status includes the given flags + and returns ERROR if one or more flags are missing in the current status. + + - When to use + - This function is suitable for most applications as well as for startup + activity since the events are fully described in the product reference + manual (RM0033). + - It is also suitable for users who need to define their own events. + + - Limitations + - If an error occurs (ie. error flags are set besides to the monitored + flags), the I2C_CheckEvent() function may return SUCCESS despite + the communication hold or corrupted real state. + In this case, it is advised to use error interrupts to monitor + the error events and handle them in the interrupt IRQ handler. + + @note + For error management, it is advised to use the following functions: + - I2C_ITConfig() to configure and enable the error interrupts (I2C_IT_ERR). + - I2Cx_ER_IRQHandler() which is called when the error interrupt occurs. + Where x is the peripheral instance (I2C1, I2C2 ...) + - I2C_GetFlagStatus() or I2C_GetITStatus() to be called into the + I2Cx_ER_IRQHandler() function in order to determine which error occurred. + - I2C_ClearFlag() or I2C_ClearITPendingBit() and/or I2C_SoftwareResetCmd() + and/or I2C_GenerateStop() in order to clear the error flag and source + and return to correct communication status. + + + 2. Advanced state monitoring (Using the function I2C_GetLastEvent()) + -------------------------------------------------------------------- + Using the function I2C_GetLastEvent() which returns the image of both status + registers in a single word (uint32_t) (Status Register 2 value is shifted left + by 16 bits and concatenated to Status Register 1). + + - When to use + - This function is suitable for the same applications above but it + allows to overcome the mentioned limitation of I2C_GetFlagStatus() + function. + - The returned value could be compared to events already defined in + the library (stm32f2xx_i2c.h) or to custom values defined by user. + This function is suitable when multiple flags are monitored at the + same time. + - At the opposite of I2C_CheckEvent() function, this function allows + user to choose when an event is accepted (when all events flags are + set and no other flags are set or just when the needed flags are set + like I2C_CheckEvent() function. + + - Limitations + - User may need to define his own events. + - Same remark concerning the error management is applicable for this + function if user decides to check only regular communication flags + (and ignores error flags). + + + 3. Flag-based state monitoring (Using the function I2C_GetFlagStatus()) + ----------------------------------------------------------------------- + + Using the function I2C_GetFlagStatus() which simply returns the status of + one single flag (ie. I2C_FLAG_RXNE ...). + + - When to use + - This function could be used for specific applications or in debug + phase. + - It is suitable when only one flag checking is needed (most I2C + events are monitored through multiple flags). + - Limitations: + - When calling this function, the Status register is accessed. + Some flags are cleared when the status register is accessed. + So checking the status of one Flag, may clear other ones. + - Function may need to be called twice or more in order to monitor + one single event. + + For detailed description of Events, please refer to section I2C_Events in + stm32f2xx_i2c.h file. + +@endverbatim + * @{ + */ + +/** + * @brief Reads the specified I2C register and returns its value. + * @param I2C_Register: specifies the register to read. + * This parameter can be one of the following values: + * @arg I2C_Register_CR1: CR1 register. + * @arg I2C_Register_CR2: CR2 register. + * @arg I2C_Register_OAR1: OAR1 register. + * @arg I2C_Register_OAR2: OAR2 register. + * @arg I2C_Register_DR: DR register. + * @arg I2C_Register_SR1: SR1 register. + * @arg I2C_Register_SR2: SR2 register. + * @arg I2C_Register_CCR: CCR register. + * @arg I2C_Register_TRISE: TRISE register. + * @retval The value of the read register. + */ +uint16_t I2C_ReadRegister(I2C_TypeDef* I2Cx, uint8_t I2C_Register) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_REGISTER(I2C_Register)); + + tmp = (uint32_t) I2Cx; + tmp += I2C_Register; + + /* Return the selected register value */ + return (*(__IO uint16_t *) tmp); +} + +/** + * @brief Enables or disables the specified I2C interrupts. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_IT: specifies the I2C interrupts sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg I2C_IT_BUF: Buffer interrupt mask + * @arg I2C_IT_EVT: Event interrupt mask + * @arg I2C_IT_ERR: Error interrupt mask + * @param NewState: new state of the specified I2C interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_ITConfig(I2C_TypeDef* I2Cx, uint16_t I2C_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_I2C_CONFIG_IT(I2C_IT)); + + if (NewState != DISABLE) + { + /* Enable the selected I2C interrupts */ + I2Cx->CR2 |= I2C_IT; + } + else + { + /* Disable the selected I2C interrupts */ + I2Cx->CR2 &= (uint16_t)~I2C_IT; + } +} + +/* + =============================================================================== + 1. Basic state monitoring + =============================================================================== + */ + +/** + * @brief Checks whether the last I2Cx Event is equal to the one passed + * as parameter. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_EVENT: specifies the event to be checked. + * This parameter can be one of the following values: + * @arg I2C_EVENT_SLAVE_TRANSMITTER_ADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_RECEIVER_ADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_TRANSMITTER_SECONDADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_RECEIVER_SECONDADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_GENERALCALLADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_BYTE_RECEIVED: EV2 + * @arg (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_DUALF): EV2 + * @arg (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_GENCALL): EV2 + * @arg I2C_EVENT_SLAVE_BYTE_TRANSMITTED: EV3 + * @arg (I2C_EVENT_SLAVE_BYTE_TRANSMITTED | I2C_FLAG_DUALF): EV3 + * @arg (I2C_EVENT_SLAVE_BYTE_TRANSMITTED | I2C_FLAG_GENCALL): EV3 + * @arg I2C_EVENT_SLAVE_ACK_FAILURE: EV3_2 + * @arg I2C_EVENT_SLAVE_STOP_DETECTED: EV4 + * @arg I2C_EVENT_MASTER_MODE_SELECT: EV5 + * @arg I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED: EV6 + * @arg I2C_EVENT_MASTER_RECEIVER_MODE_SELECTED: EV6 + * @arg I2C_EVENT_MASTER_BYTE_RECEIVED: EV7 + * @arg I2C_EVENT_MASTER_BYTE_TRANSMITTING: EV8 + * @arg I2C_EVENT_MASTER_BYTE_TRANSMITTED: EV8_2 + * @arg I2C_EVENT_MASTER_MODE_ADDRESS10: EV9 + * + * @note For detailed description of Events, please refer to section I2C_Events + * in stm32f2xx_i2c.h file. + * + * @retval An ErrorStatus enumeration value: + * - SUCCESS: Last event is equal to the I2C_EVENT + * - ERROR: Last event is different from the I2C_EVENT + */ +ErrorStatus I2C_CheckEvent(I2C_TypeDef* I2Cx, uint32_t I2C_EVENT) +{ + uint32_t lastevent = 0; + uint32_t flag1 = 0, flag2 = 0; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_EVENT(I2C_EVENT)); + + /* Read the I2Cx status register */ + flag1 = I2Cx->SR1; + flag2 = I2Cx->SR2; + flag2 = flag2 << 16; + + /* Get the last event value from I2C status register */ + lastevent = (flag1 | flag2) & FLAG_MASK; + + /* Check whether the last event contains the I2C_EVENT */ + if ((lastevent & I2C_EVENT) == I2C_EVENT) + { + /* SUCCESS: last event is equal to I2C_EVENT */ + status = SUCCESS; + } + else + { + /* ERROR: last event is different from I2C_EVENT */ + status = ERROR; + } + /* Return status */ + return status; +} + +/* + =============================================================================== + 2. Advanced state monitoring + =============================================================================== + */ + +/** + * @brief Returns the last I2Cx Event. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * + * @note For detailed description of Events, please refer to section I2C_Events + * in stm32f2xx_i2c.h file. + * + * @retval The last event + */ +uint32_t I2C_GetLastEvent(I2C_TypeDef* I2Cx) +{ + uint32_t lastevent = 0; + uint32_t flag1 = 0, flag2 = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + + /* Read the I2Cx status register */ + flag1 = I2Cx->SR1; + flag2 = I2Cx->SR2; + flag2 = flag2 << 16; + + /* Get the last event value from I2C status register */ + lastevent = (flag1 | flag2) & FLAG_MASK; + + /* Return status */ + return lastevent; +} + +/* + =============================================================================== + 3. Flag-based state monitoring + =============================================================================== + */ + +/** + * @brief Checks whether the specified I2C flag is set or not. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg I2C_FLAG_DUALF: Dual flag (Slave mode) + * @arg I2C_FLAG_SMBHOST: SMBus host header (Slave mode) + * @arg I2C_FLAG_SMBDEFAULT: SMBus default header (Slave mode) + * @arg I2C_FLAG_GENCALL: General call header flag (Slave mode) + * @arg I2C_FLAG_TRA: Transmitter/Receiver flag + * @arg I2C_FLAG_BUSY: Bus busy flag + * @arg I2C_FLAG_MSL: Master/Slave flag + * @arg I2C_FLAG_SMBALERT: SMBus Alert flag + * @arg I2C_FLAG_TIMEOUT: Timeout or Tlow error flag + * @arg I2C_FLAG_PECERR: PEC error in reception flag + * @arg I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode) + * @arg I2C_FLAG_AF: Acknowledge failure flag + * @arg I2C_FLAG_ARLO: Arbitration lost flag (Master mode) + * @arg I2C_FLAG_BERR: Bus error flag + * @arg I2C_FLAG_TXE: Data register empty flag (Transmitter) + * @arg I2C_FLAG_RXNE: Data register not empty (Receiver) flag + * @arg I2C_FLAG_STOPF: Stop detection flag (Slave mode) + * @arg I2C_FLAG_ADD10: 10-bit header sent flag (Master mode) + * @arg I2C_FLAG_BTF: Byte transfer finished flag + * @arg I2C_FLAG_ADDR: Address sent flag (Master mode) "ADSL" + * Address matched flag (Slave mode)"ENDAD" + * @arg I2C_FLAG_SB: Start bit flag (Master mode) + * @retval The new state of I2C_FLAG (SET or RESET). + */ +FlagStatus I2C_GetFlagStatus(I2C_TypeDef* I2Cx, uint32_t I2C_FLAG) +{ + FlagStatus bitstatus = RESET; + __IO uint32_t i2creg = 0, i2cxbase = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_GET_FLAG(I2C_FLAG)); + + /* Get the I2Cx peripheral base address */ + i2cxbase = (uint32_t)I2Cx; + + /* Read flag register index */ + i2creg = I2C_FLAG >> 28; + + /* Get bit[23:0] of the flag */ + I2C_FLAG &= FLAG_MASK; + + if(i2creg != 0) + { + /* Get the I2Cx SR1 register address */ + i2cxbase += 0x14; + } + else + { + /* Flag in I2Cx SR2 Register */ + I2C_FLAG = (uint32_t)(I2C_FLAG >> 16); + /* Get the I2Cx SR2 register address */ + i2cxbase += 0x18; + } + + if(((*(__IO uint32_t *)i2cxbase) & I2C_FLAG) != (uint32_t)RESET) + { + /* I2C_FLAG is set */ + bitstatus = SET; + } + else + { + /* I2C_FLAG is reset */ + bitstatus = RESET; + } + + /* Return the I2C_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the I2Cx's pending flags. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg I2C_FLAG_SMBALERT: SMBus Alert flag + * @arg I2C_FLAG_TIMEOUT: Timeout or Tlow error flag + * @arg I2C_FLAG_PECERR: PEC error in reception flag + * @arg I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode) + * @arg I2C_FLAG_AF: Acknowledge failure flag + * @arg I2C_FLAG_ARLO: Arbitration lost flag (Master mode) + * @arg I2C_FLAG_BERR: Bus error flag + * + * @note STOPF (STOP detection) is cleared by software sequence: a read operation + * to I2C_SR1 register (I2C_GetFlagStatus()) followed by a write operation + * to I2C_CR1 register (I2C_Cmd() to re-enable the I2C peripheral). + * @note ADD10 (10-bit header sent) is cleared by software sequence: a read + * operation to I2C_SR1 (I2C_GetFlagStatus()) followed by writing the + * second byte of the address in DR register. + * @note BTF (Byte Transfer Finished) is cleared by software sequence: a read + * operation to I2C_SR1 register (I2C_GetFlagStatus()) followed by a + * read/write to I2C_DR register (I2C_SendData()). + * @note ADDR (Address sent) is cleared by software sequence: a read operation to + * I2C_SR1 register (I2C_GetFlagStatus()) followed by a read operation to + * I2C_SR2 register ((void)(I2Cx->SR2)). + * @note SB (Start Bit) is cleared software sequence: a read operation to I2C_SR1 + * register (I2C_GetFlagStatus()) followed by a write operation to I2C_DR + * register (I2C_SendData()). + * + * @retval None + */ +void I2C_ClearFlag(I2C_TypeDef* I2Cx, uint32_t I2C_FLAG) +{ + uint32_t flagpos = 0; + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_CLEAR_FLAG(I2C_FLAG)); + /* Get the I2C flag position */ + flagpos = I2C_FLAG & FLAG_MASK; + /* Clear the selected I2C flag */ + I2Cx->SR1 = (uint16_t)~flagpos; +} + +/** + * @brief Checks whether the specified I2C interrupt has occurred or not. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_IT: specifies the interrupt source to check. + * This parameter can be one of the following values: + * @arg I2C_IT_SMBALERT: SMBus Alert flag + * @arg I2C_IT_TIMEOUT: Timeout or Tlow error flag + * @arg I2C_IT_PECERR: PEC error in reception flag + * @arg I2C_IT_OVR: Overrun/Underrun flag (Slave mode) + * @arg I2C_IT_AF: Acknowledge failure flag + * @arg I2C_IT_ARLO: Arbitration lost flag (Master mode) + * @arg I2C_IT_BERR: Bus error flag + * @arg I2C_IT_TXE: Data register empty flag (Transmitter) + * @arg I2C_IT_RXNE: Data register not empty (Receiver) flag + * @arg I2C_IT_STOPF: Stop detection flag (Slave mode) + * @arg I2C_IT_ADD10: 10-bit header sent flag (Master mode) + * @arg I2C_IT_BTF: Byte transfer finished flag + * @arg I2C_IT_ADDR: Address sent flag (Master mode) "ADSL" + * Address matched flag (Slave mode)"ENDAD" + * @arg I2C_IT_SB: Start bit flag (Master mode) + * @retval The new state of I2C_IT (SET or RESET). + */ +ITStatus I2C_GetITStatus(I2C_TypeDef* I2Cx, uint32_t I2C_IT) +{ + ITStatus bitstatus = RESET; + uint32_t enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_GET_IT(I2C_IT)); + + /* Check if the interrupt source is enabled or not */ + enablestatus = (uint32_t)(((I2C_IT & ITEN_MASK) >> 16) & (I2Cx->CR2)) ; + + /* Get bit[23:0] of the flag */ + I2C_IT &= FLAG_MASK; + + /* Check the status of the specified I2C flag */ + if (((I2Cx->SR1 & I2C_IT) != (uint32_t)RESET) && enablestatus) + { + /* I2C_IT is set */ + bitstatus = SET; + } + else + { + /* I2C_IT is reset */ + bitstatus = RESET; + } + /* Return the I2C_IT status */ + return bitstatus; +} + +/** + * @brief Clears the I2Cx's interrupt pending bits. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_IT: specifies the interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg I2C_IT_SMBALERT: SMBus Alert interrupt + * @arg I2C_IT_TIMEOUT: Timeout or Tlow error interrupt + * @arg I2C_IT_PECERR: PEC error in reception interrupt + * @arg I2C_IT_OVR: Overrun/Underrun interrupt (Slave mode) + * @arg I2C_IT_AF: Acknowledge failure interrupt + * @arg I2C_IT_ARLO: Arbitration lost interrupt (Master mode) + * @arg I2C_IT_BERR: Bus error interrupt + * + * @note STOPF (STOP detection) is cleared by software sequence: a read operation + * to I2C_SR1 register (I2C_GetITStatus()) followed by a write operation to + * I2C_CR1 register (I2C_Cmd() to re-enable the I2C peripheral). + * @note ADD10 (10-bit header sent) is cleared by software sequence: a read + * operation to I2C_SR1 (I2C_GetITStatus()) followed by writing the second + * byte of the address in I2C_DR register. + * @note BTF (Byte Transfer Finished) is cleared by software sequence: a read + * operation to I2C_SR1 register (I2C_GetITStatus()) followed by a + * read/write to I2C_DR register (I2C_SendData()). + * @note ADDR (Address sent) is cleared by software sequence: a read operation to + * I2C_SR1 register (I2C_GetITStatus()) followed by a read operation to + * I2C_SR2 register ((void)(I2Cx->SR2)). + * @note SB (Start Bit) is cleared by software sequence: a read operation to + * I2C_SR1 register (I2C_GetITStatus()) followed by a write operation to + * I2C_DR register (I2C_SendData()). + * @retval None + */ +void I2C_ClearITPendingBit(I2C_TypeDef* I2Cx, uint32_t I2C_IT) +{ + uint32_t flagpos = 0; + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_CLEAR_IT(I2C_IT)); + + /* Get the I2C flag position */ + flagpos = I2C_IT & FLAG_MASK; + + /* Clear the selected I2C flag */ + I2Cx->SR1 = (uint16_t)~flagpos; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_iwdg.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_iwdg.c new file mode 100644 index 00000000..de89eac0 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_iwdg.c @@ -0,0 +1,269 @@ +/** + ****************************************************************************** + * @file stm32f2xx_iwdg.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Independent watchdog (IWDG) peripheral: + * - Prescaler and Counter configuration + * - IWDG activation + * - Flag management + * + * @verbatim + * + * =================================================================== + * IWDG features + * =================================================================== + * + * The IWDG can be started by either software or hardware (configurable + * through option byte). + * + * The IWDG is clocked by its own dedicated low-speed clock (LSI) and + * thus stays active even if the main clock fails. + * Once the IWDG is started, the LSI is forced ON and cannot be disabled + * (LSI cannot be disabled too), and the counter starts counting down from + * the reset value of 0xFFF. When it reaches the end of count value (0x000) + * a system reset is generated. + * The IWDG counter should be reloaded at regular intervals to prevent + * an MCU reset. + * + * The IWDG is implemented in the VDD voltage domain that is still functional + * in STOP and STANDBY mode (IWDG reset can wake-up from STANDBY). + * + * IWDGRST flag in RCC_CSR register can be used to inform when a IWDG + * reset occurs. + * + * Min-max timeout value @32KHz (LSI): ~125us / ~32.7s + * The IWDG timeout may vary due to LSI frequency dispersion. STM32F2xx + * devices provide the capability to measure the LSI frequency (LSI clock + * connected internally to TIM5 CH4 input capture). The measured value + * can be used to have an IWDG timeout with an acceptable accuracy. + * For more information, please refer to the STM32F2xx Reference manual + * + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable write access to IWDG_PR and IWDG_RLR registers using + * IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable) function + * + * 2. Configure the IWDG prescaler using IWDG_SetPrescaler() function + * + * 3. Configure the IWDG counter value using IWDG_SetReload() function. + * This value will be loaded in the IWDG counter each time the counter + * is reloaded, then the IWDG will start counting down from this value. + * + * 4. Start the IWDG using IWDG_Enable() function, when the IWDG is used + * in software mode (no need to enable the LSI, it will be enabled + * by hardware) + * + * 5. Then the application program must reload the IWDG counter at regular + * intervals during normal operation to prevent an MCU reset, using + * IWDG_ReloadCounter() function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_iwdg.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup IWDG + * @brief IWDG driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* KR register bit mask */ +#define KR_KEY_RELOAD ((uint16_t)0xAAAA) +#define KR_KEY_ENABLE ((uint16_t)0xCCCC) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup IWDG_Private_Functions + * @{ + */ + +/** @defgroup IWDG_Group1 Prescaler and Counter configuration functions + * @brief Prescaler and Counter configuration functions + * +@verbatim + =============================================================================== + Prescaler and Counter configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables write access to IWDG_PR and IWDG_RLR registers. + * @param IWDG_WriteAccess: new state of write access to IWDG_PR and IWDG_RLR registers. + * This parameter can be one of the following values: + * @arg IWDG_WriteAccess_Enable: Enable write access to IWDG_PR and IWDG_RLR registers + * @arg IWDG_WriteAccess_Disable: Disable write access to IWDG_PR and IWDG_RLR registers + * @retval None + */ +void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess) +{ + /* Check the parameters */ + assert_param(IS_IWDG_WRITE_ACCESS(IWDG_WriteAccess)); + IWDG->KR = IWDG_WriteAccess; +} + +/** + * @brief Sets IWDG Prescaler value. + * @param IWDG_Prescaler: specifies the IWDG Prescaler value. + * This parameter can be one of the following values: + * @arg IWDG_Prescaler_4: IWDG prescaler set to 4 + * @arg IWDG_Prescaler_8: IWDG prescaler set to 8 + * @arg IWDG_Prescaler_16: IWDG prescaler set to 16 + * @arg IWDG_Prescaler_32: IWDG prescaler set to 32 + * @arg IWDG_Prescaler_64: IWDG prescaler set to 64 + * @arg IWDG_Prescaler_128: IWDG prescaler set to 128 + * @arg IWDG_Prescaler_256: IWDG prescaler set to 256 + * @retval None + */ +void IWDG_SetPrescaler(uint8_t IWDG_Prescaler) +{ + /* Check the parameters */ + assert_param(IS_IWDG_PRESCALER(IWDG_Prescaler)); + IWDG->PR = IWDG_Prescaler; +} + +/** + * @brief Sets IWDG Reload value. + * @param Reload: specifies the IWDG Reload value. + * This parameter must be a number between 0 and 0x0FFF. + * @retval None + */ +void IWDG_SetReload(uint16_t Reload) +{ + /* Check the parameters */ + assert_param(IS_IWDG_RELOAD(Reload)); + IWDG->RLR = Reload; +} + +/** + * @brief Reloads IWDG counter with value defined in the reload register + * (write access to IWDG_PR and IWDG_RLR registers disabled). + * @param None + * @retval None + */ +void IWDG_ReloadCounter(void) +{ + IWDG->KR = KR_KEY_RELOAD; +} + +/** + * @} + */ + +/** @defgroup IWDG_Group2 IWDG activation function + * @brief IWDG activation function + * +@verbatim + =============================================================================== + IWDG activation function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled). + * @param None + * @retval None + */ +void IWDG_Enable(void) +{ + IWDG->KR = KR_KEY_ENABLE; +} + +/** + * @} + */ + +/** @defgroup IWDG_Group3 Flag management function + * @brief Flag management function + * +@verbatim + =============================================================================== + Flag management function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Checks whether the specified IWDG flag is set or not. + * @param IWDG_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg IWDG_FLAG_PVU: Prescaler Value Update on going + * @arg IWDG_FLAG_RVU: Reload Value Update on going + * @retval The new state of IWDG_FLAG (SET or RESET). + */ +FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_IWDG_FLAG(IWDG_FLAG)); + if ((IWDG->SR & IWDG_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the flag status */ + return bitstatus; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_pwr.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_pwr.c new file mode 100644 index 00000000..1c84cf75 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_pwr.c @@ -0,0 +1,620 @@ +/** + ****************************************************************************** + * @file stm32f2xx_pwr.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Power Controller (PWR) peripheral: + * - Backup Domain Access + * - PVD configuration + * - WakeUp pin configuration + * - Backup Regulator configuration + * - FLASH Power Down configuration + * - Low Power modes configuration + * - Flags management + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_pwr.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup PWR + * @brief PWR driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* --------- PWR registers bit address in the alias region ---------- */ +#define PWR_OFFSET (PWR_BASE - PERIPH_BASE) + +/* --- CR Register ---*/ + +/* Alias word address of DBP bit */ +#define CR_OFFSET (PWR_OFFSET + 0x00) +#define DBP_BitNumber 0x08 +#define CR_DBP_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (DBP_BitNumber * 4)) + +/* Alias word address of PVDE bit */ +#define PVDE_BitNumber 0x04 +#define CR_PVDE_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PVDE_BitNumber * 4)) + +/* Alias word address of FPDS bit */ +#define FPDS_BitNumber 0x09 +#define CR_FPDS_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (FPDS_BitNumber * 4)) + +/* --- CSR Register ---*/ + +/* Alias word address of EWUP bit */ +#define CSR_OFFSET (PWR_OFFSET + 0x04) +#define EWUP_BitNumber 0x08 +#define CSR_EWUP_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (EWUP_BitNumber * 4)) + +/* Alias word address of BRE bit */ +#define BRE_BitNumber 0x09 +#define CSR_BRE_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (BRE_BitNumber * 4)) + +/* ------------------ PWR registers bit mask ------------------------ */ + +/* CR register bit mask */ +#define CR_DS_MASK ((uint32_t)0xFFFFFFFC) +#define CR_PLS_MASK ((uint32_t)0xFFFFFF1F) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup PWR_Private_Functions + * @{ + */ + +/** @defgroup PWR_Group1 Backup Domain Access function + * @brief Backup Domain Access function + * +@verbatim + =============================================================================== + Backup Domain Access function + =============================================================================== + + After reset, the backup domain (RTC registers, RTC backup data + registers and backup SRAM) is protected against possible unwanted + write accesses. + To enable access to the RTC Domain and RTC registers, proceed as follows: + - Enable the Power Controller (PWR) APB1 interface clock using the + RCC_APB1PeriphClockCmd() function. + - Enable access to RTC domain using the PWR_BackupAccessCmd() function. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the PWR peripheral registers to their default reset values. + * @param None + * @retval None + */ +void PWR_DeInit(void) +{ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, DISABLE); +} + +/** + * @brief Enables or disables access to the backup domain (RTC registers, RTC + * backup data registers and backup SRAM). + * @note If the HSE divided by 2, 3, ..31 is used as the RTC clock, the + * Backup Domain Access should be kept enabled. + * @param NewState: new state of the access to the backup domain. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_BackupAccessCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CR_DBP_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group2 PVD configuration functions + * @brief PVD configuration functions + * +@verbatim + =============================================================================== + PVD configuration functions + =============================================================================== + + - The PVD is used to monitor the VDD power supply by comparing it to a threshold + selected by the PVD Level (PLS[2:0] bits in the PWR_CR). + - A PVDO flag is available to indicate if VDD/VDDA is higher or lower than the + PVD threshold. This event is internally connected to the EXTI line16 + and can generate an interrupt if enabled through the EXTI registers. + - The PVD is stopped in Standby mode. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the voltage threshold detected by the Power Voltage Detector(PVD). + * @param PWR_PVDLevel: specifies the PVD detection level + * This parameter can be one of the following values: + * @arg PWR_PVDLevel_0 + * @arg PWR_PVDLevel_1 + * @arg PWR_PVDLevel_2 + * @arg PWR_PVDLevel_3 + * @arg PWR_PVDLevel_4 + * @arg PWR_PVDLevel_5 + * @arg PWR_PVDLevel_6 + * @arg PWR_PVDLevel_7 + * @note Refer to the electrical characteristics of your device datasheet for + * more details about the voltage threshold corresponding to each + * detection level. + * @retval None + */ +void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_PWR_PVD_LEVEL(PWR_PVDLevel)); + + tmpreg = PWR->CR; + + /* Clear PLS[7:5] bits */ + tmpreg &= CR_PLS_MASK; + + /* Set PLS[7:5] bits according to PWR_PVDLevel value */ + tmpreg |= PWR_PVDLevel; + + /* Store the new value */ + PWR->CR = tmpreg; +} + +/** + * @brief Enables or disables the Power Voltage Detector(PVD). + * @param NewState: new state of the PVD. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_PVDCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CR_PVDE_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group3 WakeUp pin configuration functions + * @brief WakeUp pin configuration functions + * +@verbatim + =============================================================================== + WakeUp pin configuration functions + =============================================================================== + + - WakeUp pin is used to wakeup the system from Standby mode. This pin is + forced in input pull down configuration and is active on rising edges. + - There is only one WakeUp pin: WakeUp Pin 1 on PA.00. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the WakeUp Pin functionality. + * @param NewState: new state of the WakeUp Pin functionality. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_WakeUpPinCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CSR_EWUP_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group4 Backup Regulator configuration functions + * @brief Backup Regulator configuration functions + * +@verbatim + =============================================================================== + Backup Regulator configuration functions + =============================================================================== + + - The backup domain includes 4 Kbytes of backup SRAM accessible only from the + CPU, and address in 32-bit, 16-bit or 8-bit mode. Its content is retained + even in Standby or VBAT mode when the low power backup regulator is enabled. + It can be considered as an internal EEPROM when VBAT is always present. + You can use the PWR_BackupRegulatorCmd() function to enable the low power + backup regulator and use the PWR_GetFlagStatus(PWR_FLAG_BRR) to check if it is + ready or not. + + - When the backup domain is supplied by VDD (analog switch connected to VDD) + the backup SRAM is powered from VDD which replaces the VBAT power supply to + save battery life. + + - The backup SRAM is not mass erased by an tamper event. It is read protected + to prevent confidential data, such as cryptographic private key, from being + accessed. The backup SRAM can be erased only through the Flash interface when + a protection level change from level 1 to level 0 is requested. + Refer to the description of Read protection (RDP) in the Flash programming manual. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the Backup Regulator. + * @param NewState: new state of the Backup Regulator. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_BackupRegulatorCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CSR_BRE_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group5 FLASH Power Down configuration functions + * @brief FLASH Power Down configuration functions + * +@verbatim + =============================================================================== + FLASH Power Down configuration functions + =============================================================================== + + - By setting the FPDS bit in the PWR_CR register by using the PWR_FlashPowerDownCmd() + function, the Flash memory also enters power down mode when the device enters + Stop mode. When the Flash memory is in power down mode, an additional startup + delay is incurred when waking up from Stop mode. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the Flash Power Down in STOP mode. + * @param NewState: new state of the Flash power mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_FlashPowerDownCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CR_FPDS_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group6 Low Power modes configuration functions + * @brief Low Power modes configuration functions + * +@verbatim + =============================================================================== + Low Power modes configuration functions + =============================================================================== + + The devices feature 3 low-power modes: + - Sleep mode: Cortex-M3 core stopped, peripherals kept running. + - Stop mode: all clocks are stopped, regulator running, regulator in low power mode + - Standby mode: 1.2V domain powered off. + + Sleep mode + =========== + - Entry: + - The Sleep mode is entered by using the __WFI() or __WFE() functions. + - Exit: + - Any peripheral interrupt acknowledged by the nested vectored interrupt + controller (NVIC) can wake up the device from Sleep mode. + + Stop mode + ========== + In Stop mode, all clocks in the 1.2V domain are stopped, the PLL, the HSI, + and the HSE RC oscillators are disabled. Internal SRAM and register contents + are preserved. + The voltage regulator can be configured either in normal or low-power mode. + To minimize the consumption In Stop mode, FLASH can be powered off before + entering the Stop mode. It can be switched on again by software after exiting + the Stop mode using the PWR_FlashPowerDownCmd() function. + + - Entry: + - The Stop mode is entered using the PWR_EnterSTOPMode(PWR_Regulator_LowPower,) + function with regulator in LowPower or with Regulator ON. + - Exit: + - Any EXTI Line (Internal or External) configured in Interrupt/Event mode. + + Standby mode + ============ + The Standby mode allows to achieve the lowest power consumption. It is based + on the Cortex-M3 deepsleep mode, with the voltage regulator disabled. + The 1.2V domain is consequently powered off. The PLL, the HSI oscillator and + the HSE oscillator are also switched off. SRAM and register contents are lost + except for the RTC registers, RTC backup registers, backup SRAM and Standby + circuitry. + + The voltage regulator is OFF. + + - Entry: + - The Standby mode is entered using the PWR_EnterSTANDBYMode() function. + - Exit: + - WKUP pin rising edge, RTC alarm (Alarm A and Alarm B), RTC wakeup, + tamper event, time-stamp event, external reset in NRST pin, IWDG reset. + + Auto-wakeup (AWU) from low-power mode + ===================================== + The MCU can be woken up from low-power mode by an RTC Alarm event, an RTC + Wakeup event, a tamper event, a time-stamp event, or a comparator event, + without depending on an external interrupt (Auto-wakeup mode). + + - RTC auto-wakeup (AWU) from the Stop mode + ---------------------------------------- + + - To wake up from the Stop mode with an RTC alarm event, it is necessary to: + - Configure the EXTI Line 17 to be sensitive to rising edges (Interrupt + or Event modes) using the EXTI_Init() function. + - Enable the RTC Alarm Interrupt using the RTC_ITConfig() function + - Configure the RTC to generate the RTC alarm using the RTC_SetAlarm() + and RTC_AlarmCmd() functions. + - To wake up from the Stop mode with an RTC Tamper or time stamp event, it + is necessary to: + - Configure the EXTI Line 21 to be sensitive to rising edges (Interrupt + or Event modes) using the EXTI_Init() function. + - Enable the RTC Tamper or time stamp Interrupt using the RTC_ITConfig() + function + - Configure the RTC to detect the tamper or time stamp event using the + RTC_TimeStampConfig(), RTC_TamperTriggerConfig() and RTC_TamperCmd() + functions. + - To wake up from the Stop mode with an RTC WakeUp event, it is necessary to: + - Configure the EXTI Line 22 to be sensitive to rising edges (Interrupt + or Event modes) using the EXTI_Init() function. + - Enable the RTC WakeUp Interrupt using the RTC_ITConfig() function + - Configure the RTC to generate the RTC WakeUp event using the RTC_WakeUpClockConfig(), + RTC_SetWakeUpCounter() and RTC_WakeUpCmd() functions. + + - RTC auto-wakeup (AWU) from the Standby mode + ------------------------------------------- + - To wake up from the Standby mode with an RTC alarm event, it is necessary to: + - Enable the RTC Alarm Interrupt using the RTC_ITConfig() function + - Configure the RTC to generate the RTC alarm using the RTC_SetAlarm() + and RTC_AlarmCmd() functions. + - To wake up from the Standby mode with an RTC Tamper or time stamp event, it + is necessary to: + - Enable the RTC Tamper or time stamp Interrupt using the RTC_ITConfig() + function + - Configure the RTC to detect the tamper or time stamp event using the + RTC_TimeStampConfig(), RTC_TamperTriggerConfig() and RTC_TamperCmd() + functions. + - To wake up from the Standby mode with an RTC WakeUp event, it is necessary to: + - Enable the RTC WakeUp Interrupt using the RTC_ITConfig() function + - Configure the RTC to generate the RTC WakeUp event using the RTC_WakeUpClockConfig(), + RTC_SetWakeUpCounter() and RTC_WakeUpCmd() functions. + +@endverbatim + * @{ + */ + +/** + * @brief Enters STOP mode. + * + * @note In Stop mode, all I/O pins keep the same state as in Run mode. + * @note When exiting Stop mode by issuing an interrupt or a wakeup event, + * the HSI RC oscillator is selected as system clock. + * @note When the voltage regulator operates in low power mode, an additional + * startup delay is incurred when waking up from Stop mode. + * By keeping the internal regulator ON during Stop mode, the consumption + * is higher although the startup time is reduced. + * + * @param PWR_Regulator: specifies the regulator state in STOP mode. + * This parameter can be one of the following values: + * @arg PWR_Regulator_ON: STOP mode with regulator ON + * @arg PWR_Regulator_LowPower: STOP mode with regulator in low power mode + * @param PWR_STOPEntry: specifies if STOP mode in entered with WFI or WFE instruction. + * This parameter can be one of the following values: + * @arg PWR_STOPEntry_WFI: enter STOP mode with WFI instruction + * @arg PWR_STOPEntry_WFE: enter STOP mode with WFE instruction + * @retval None + */ +void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_PWR_REGULATOR(PWR_Regulator)); + assert_param(IS_PWR_STOP_ENTRY(PWR_STOPEntry)); + + /* Select the regulator state in STOP mode ---------------------------------*/ + tmpreg = PWR->CR; + /* Clear PDDS and LPDSR bits */ + tmpreg &= CR_DS_MASK; + + /* Set LPDSR bit according to PWR_Regulator value */ + tmpreg |= PWR_Regulator; + + /* Store the new value */ + PWR->CR = tmpreg; + + /* Set SLEEPDEEP bit of Cortex System Control Register */ + SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; + + /* Select STOP mode entry --------------------------------------------------*/ + if(PWR_STOPEntry == PWR_STOPEntry_WFI) + { + /* Request Wait For Interrupt */ + __WFI(); + } + else + { + /* Request Wait For Event */ + __WFE(); + } + /* Reset SLEEPDEEP bit of Cortex System Control Register */ + SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk); +} + +/** + * @brief Enters STANDBY mode. + * @note In Standby mode, all I/O pins are high impedance except for: + * - Reset pad (still available) + * - RTC_AF1 pin (PC13) if configured for tamper, time-stamp, RTC + * Alarm out, or RTC clock calibration out. + * - RTC_AF2 pin (PI8) if configured for tamper or time-stamp. + * - WKUP pin 1 (PA0) if enabled. + * @param None + * @retval None + */ +void PWR_EnterSTANDBYMode(void) +{ + /* Clear Wakeup flag */ + PWR->CR |= PWR_CR_CWUF; + + /* Select STANDBY mode */ + PWR->CR |= PWR_CR_PDDS; + + /* Set SLEEPDEEP bit of Cortex System Control Register */ + SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; + +/* This option is used to ensure that store operations are completed */ +#if defined ( __CC_ARM ) + __force_stores(); +#endif + /* Request Wait For Interrupt */ + __WFI(); +} + +/** + * @} + */ + +/** @defgroup PWR_Group7 Flags management functions + * @brief Flags management functions + * +@verbatim + =============================================================================== + Flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Checks whether the specified PWR flag is set or not. + * @param PWR_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg PWR_FLAG_WU: Wake Up flag. This flag indicates that a wakeup event + * was received from the WKUP pin or from the RTC alarm (Alarm A + * or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup. + * An additional wakeup event is detected if the WKUP pin is enabled + * (by setting the EWUP bit) when the WKUP pin level is already high. + * @arg PWR_FLAG_SB: StandBy flag. This flag indicates that the system was + * resumed from StandBy mode. + * @arg PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled + * by the PWR_PVDCmd() function. The PVD is stopped by Standby mode + * For this reason, this bit is equal to 0 after Standby or reset + * until the PVDE bit is set. + * @arg PWR_FLAG_BRR: Backup regulator ready flag. This bit is not reset + * when the device wakes up from Standby mode or by a system reset + * or power reset. + * @retval The new state of PWR_FLAG (SET or RESET). + */ +FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG) +{ + FlagStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_PWR_GET_FLAG(PWR_FLAG)); + + if ((PWR->CSR & PWR_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the flag status */ + return bitstatus; +} + +/** + * @brief Clears the PWR's pending flags. + * @param PWR_FLAG: specifies the flag to clear. + * This parameter can be one of the following values: + * @arg PWR_FLAG_WU: Wake Up flag + * @arg PWR_FLAG_SB: StandBy flag + * @retval None + */ +void PWR_ClearFlag(uint32_t PWR_FLAG) +{ + /* Check the parameters */ + assert_param(IS_PWR_CLEAR_FLAG(PWR_FLAG)); + + PWR->CR |= PWR_FLAG << 2; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rcc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rcc.c new file mode 100644 index 00000000..a668c5a3 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rcc.c @@ -0,0 +1,1817 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rcc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Reset and clock control (RCC) peripheral: + * - Internal/external clocks, PLL, CSS and MCO configuration + * - System, AHB and APB busses clocks configuration + * - Peripheral clocks configuration + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * RCC specific features + * =================================================================== + * + * After reset the device is running from Internal High Speed oscillator + * (HSI 16MHz) with Flash 0 wait state, Flash prefetch buffer, D-Cache + * and I-Cache are disabled, and all peripherals are off except internal + * SRAM, Flash and JTAG. + * - There is no prescaler on High speed (AHB) and Low speed (APB) busses; + * all peripherals mapped on these busses are running at HSI speed. + * - The clock for all peripherals is switched off, except the SRAM and FLASH. + * - All GPIOs are in input floating state, except the JTAG pins which + * are assigned to be used for debug purpose. + * + * Once the device started from reset, the user application has to: + * - Configure the clock source to be used to drive the System clock + * (if the application needs higher frequency/performance) + * - Configure the System clock frequency and Flash settings + * - Configure the AHB and APB busses prescalers + * - Enable the clock for the peripheral(s) to be used + * - Configure the clock source(s) for peripherals which clocks are not + * derived from the System clock (I2S, RTC, ADC, USB OTG FS/SDIO/RNG) + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup RCC + * @brief RCC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* ------------ RCC registers bit address in the alias region ----------- */ +#define RCC_OFFSET (RCC_BASE - PERIPH_BASE) +/* --- CR Register ---*/ +/* Alias word address of HSION bit */ +#define CR_OFFSET (RCC_OFFSET + 0x00) +#define HSION_BitNumber 0x00 +#define CR_HSION_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (HSION_BitNumber * 4)) +/* Alias word address of CSSON bit */ +#define CSSON_BitNumber 0x13 +#define CR_CSSON_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (CSSON_BitNumber * 4)) +/* Alias word address of PLLON bit */ +#define PLLON_BitNumber 0x18 +#define CR_PLLON_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PLLON_BitNumber * 4)) +/* Alias word address of PLLI2SON bit */ +#define PLLI2SON_BitNumber 0x1A +#define CR_PLLI2SON_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PLLI2SON_BitNumber * 4)) + +/* --- CFGR Register ---*/ +/* Alias word address of I2SSRC bit */ +#define CFGR_OFFSET (RCC_OFFSET + 0x08) +#define I2SSRC_BitNumber 0x17 +#define CFGR_I2SSRC_BB (PERIPH_BB_BASE + (CFGR_OFFSET * 32) + (I2SSRC_BitNumber * 4)) + +/* --- BDCR Register ---*/ +/* Alias word address of RTCEN bit */ +#define BDCR_OFFSET (RCC_OFFSET + 0x70) +#define RTCEN_BitNumber 0x0F +#define BDCR_RTCEN_BB (PERIPH_BB_BASE + (BDCR_OFFSET * 32) + (RTCEN_BitNumber * 4)) +/* Alias word address of BDRST bit */ +#define BDRST_BitNumber 0x10 +#define BDCR_BDRST_BB (PERIPH_BB_BASE + (BDCR_OFFSET * 32) + (BDRST_BitNumber * 4)) +/* --- CSR Register ---*/ +/* Alias word address of LSION bit */ +#define CSR_OFFSET (RCC_OFFSET + 0x74) +#define LSION_BitNumber 0x00 +#define CSR_LSION_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (LSION_BitNumber * 4)) +/* ---------------------- RCC registers bit mask ------------------------ */ +/* CFGR register bit mask */ +#define CFGR_MCO2_RESET_MASK ((uint32_t)0x07FFFFFF) +#define CFGR_MCO1_RESET_MASK ((uint32_t)0xF89FFFFF) + +/* RCC Flag Mask */ +#define FLAG_MASK ((uint8_t)0x1F) + +/* CR register byte 3 (Bits[23:16]) base address */ +#define CR_BYTE3_ADDRESS ((uint32_t)0x40023802) + +/* CIR register byte 2 (Bits[15:8]) base address */ +#define CIR_BYTE2_ADDRESS ((uint32_t)(RCC_BASE + 0x0C + 0x01)) + +/* CIR register byte 3 (Bits[23:16]) base address */ +#define CIR_BYTE3_ADDRESS ((uint32_t)(RCC_BASE + 0x0C + 0x02)) + +/* BDCR register base address */ +#define BDCR_ADDRESS (PERIPH_BASE + BDCR_OFFSET) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +static __I uint8_t APBAHBPrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7, 8, 9}; + +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup RCC_Private_Functions + * @{ + */ + +/** @defgroup RCC_Group1 Internal and external clocks, PLL, CSS and MCO configuration functions + * @brief Internal and external clocks, PLL, CSS and MCO configuration functions + * +@verbatim + =============================================================================== + Internal/external clocks, PLL, CSS and MCO configuration functions + =============================================================================== + + This section provide functions allowing to configure the internal/external clocks, + PLLs, CSS and MCO pins. + + 1. HSI (high-speed internal), 16 MHz factory-trimmed RC used directly or through + the PLL as System clock source. + + 2. LSI (low-speed internal), 32 KHz low consumption RC used as IWDG and/or RTC + clock source. + + 3. HSE (high-speed external), 4 to 26 MHz crystal oscillator used directly or + through the PLL as System clock source. Can be used also as RTC clock source. + + 4. LSE (low-speed external), 32 KHz oscillator used as RTC clock source. + + 5. PLL (clocked by HSI or HSE), featuring two different output clocks: + - The first output is used to generate the high speed system clock (up to 120 MHz) + - The second output is used to generate the clock for the USB OTG FS (48 MHz), + the random analog generator (<=48 MHz) and the SDIO (<= 48 MHz). + + 6. PLLI2S (clocked by HSI or HSE), used to generate an accurate clock to achieve + high-quality audio performance on the I2S interface. + + 7. CSS (Clock security system), once enable and if a HSE clock failure occurs + (HSE used directly or through PLL as System clock source), the System clock + is automatically switched to HSI and an interrupt is generated if enabled. + The interrupt is linked to the Cortex-M3 NMI (Non-Maskable Interrupt) + exception vector. + + 8. MCO1 (microcontroller clock output), used to output HSI, LSE, HSE or PLL + clock (through a configurable prescaler) on PA8 pin. + + 9. MCO2 (microcontroller clock output), used to output HSE, PLL, SYSCLK or PLLI2S + clock (through a configurable prescaler) on PC9 pin. + +@endverbatim + * @{ + */ + +/** + * @brief Resets the RCC clock configuration to the default reset state. + * @note The default reset state of the clock configuration is given below: + * - HSI ON and used as system clock source + * - HSE, PLL and PLLI2S OFF + * - AHB, APB1 and APB2 prescaler set to 1. + * - CSS, MCO1 and MCO2 OFF + * - All interrupts disabled + * @note This function doesn't modify the configuration of the + * - Peripheral clocks + * - LSI, LSE and RTC clocks + * @param None + * @retval None + */ +void RCC_DeInit(void) +{ + /* Set HSION bit */ + RCC->CR |= (uint32_t)0x00000001; + + /* Reset CFGR register */ + RCC->CFGR = 0x00000000; + + /* Reset HSEON, CSSON and PLLON bits */ + RCC->CR &= (uint32_t)0xFEF6FFFF; + + /* Reset PLLCFGR register */ + RCC->PLLCFGR = 0x24003010; + + /* Reset HSEBYP bit */ + RCC->CR &= (uint32_t)0xFFFBFFFF; + + /* Disable all interrupts */ + RCC->CIR = 0x00000000; +} + +/** + * @brief Configures the External High Speed oscillator (HSE). + * @note After enabling the HSE (RCC_HSE_ON or RCC_HSE_Bypass), the application + * software should wait on HSERDY flag to be set indicating that HSE clock + * is stable and can be used to clock the PLL and/or system clock. + * @note HSE state can not be changed if it is used directly or through the + * PLL as system clock. In this case, you have to select another source + * of the system clock then change the HSE state (ex. disable it). + * @note The HSE is stopped by hardware when entering STOP and STANDBY modes. + * @note This function reset the CSSON bit, so if the Clock security system(CSS) + * was previously enabled you have to enable it again after calling this + * function. + * @param RCC_HSE: specifies the new state of the HSE. + * This parameter can be one of the following values: + * @arg RCC_HSE_OFF: turn OFF the HSE oscillator, HSERDY flag goes low after + * 6 HSE oscillator clock cycles. + * @arg RCC_HSE_ON: turn ON the HSE oscillator + * @arg RCC_HSE_Bypass: HSE oscillator bypassed with external clock + * @retval None + */ +void RCC_HSEConfig(uint8_t RCC_HSE) +{ + /* Check the parameters */ + assert_param(IS_RCC_HSE(RCC_HSE)); + + /* Reset HSEON and HSEBYP bits before configuring the HSE ------------------*/ + *(__IO uint8_t *) CR_BYTE3_ADDRESS = RCC_HSE_OFF; + + /* Set the new HSE configuration -------------------------------------------*/ + *(__IO uint8_t *) CR_BYTE3_ADDRESS = RCC_HSE; +} + +/** + * @brief Waits for HSE start-up. + * @note This functions waits on HSERDY flag to be set and return SUCCESS if + * this flag is set, otherwise returns ERROR if the timeout is reached + * and this flag is not set. The timeout value is defined by the constant + * HSE_STARTUP_TIMEOUT in stm32f2xx.h file. You can tailor it depending + * on the HSE crystal used in your application. + * @param None + * @retval An ErrorStatus enumeration value: + * - SUCCESS: HSE oscillator is stable and ready to use + * - ERROR: HSE oscillator not yet ready + */ +ErrorStatus RCC_WaitForHSEStartUp(void) +{ + __IO uint32_t startupcounter = 0; + ErrorStatus status = ERROR; + FlagStatus hsestatus = RESET; + /* Wait till HSE is ready and if Time out is reached exit */ + do + { + hsestatus = RCC_GetFlagStatus(RCC_FLAG_HSERDY); + startupcounter++; + } while((startupcounter != HSE_STARTUP_TIMEOUT) && (hsestatus == RESET)); + + if (RCC_GetFlagStatus(RCC_FLAG_HSERDY) != RESET) + { + status = SUCCESS; + } + else + { + status = ERROR; + } + return (status); +} + +/** + * @brief Adjusts the Internal High Speed oscillator (HSI) calibration value. + * @note The calibration is used to compensate for the variations in voltage + * and temperature that influence the frequency of the internal HSI RC. + * @param HSICalibrationValue: specifies the calibration trimming value. + * This parameter must be a number between 0 and 0x1F. + * @retval None + */ +void RCC_AdjustHSICalibrationValue(uint8_t HSICalibrationValue) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue)); + + tmpreg = RCC->CR; + + /* Clear HSITRIM[4:0] bits */ + tmpreg &= ~RCC_CR_HSITRIM; + + /* Set the HSITRIM[4:0] bits according to HSICalibrationValue value */ + tmpreg |= (uint32_t)HSICalibrationValue << 3; + + /* Store the new value */ + RCC->CR = tmpreg; +} + +/** + * @brief Enables or disables the Internal High Speed oscillator (HSI). + * @note The HSI is stopped by hardware when entering STOP and STANDBY modes. + * It is used (enabled by hardware) as system clock source after startup + * from Reset, wakeup from STOP and STANDBY mode, or in case of failure + * of the HSE used directly or indirectly as system clock (if the Clock + * Security System CSS is enabled). + * @note HSI can not be stopped if it is used as system clock source. In this case, + * you have to select another source of the system clock then stop the HSI. + * @note After enabling the HSI, the application software should wait on HSIRDY + * flag to be set indicating that HSI clock is stable and can be used as + * system clock source. + * @param NewState: new state of the HSI. + * This parameter can be: ENABLE or DISABLE. + * @note When the HSI is stopped, HSIRDY flag goes low after 6 HSI oscillator + * clock cycles. + * @retval None + */ +void RCC_HSICmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CR_HSION_BB = (uint32_t)NewState; +} + +/** + * @brief Configures the External Low Speed oscillator (LSE). + * @note As the LSE is in the Backup domain and write access is denied to + * this domain after reset, you have to enable write access using + * PWR_BackupAccessCmd(ENABLE) function before to configure the LSE + * (to be done once after reset). + * @note After enabling the LSE (RCC_LSE_ON or RCC_LSE_Bypass), the application + * software should wait on LSERDY flag to be set indicating that LSE clock + * is stable and can be used to clock the RTC. + * @param RCC_LSE: specifies the new state of the LSE. + * This parameter can be one of the following values: + * @arg RCC_LSE_OFF: turn OFF the LSE oscillator, LSERDY flag goes low after + * 6 LSE oscillator clock cycles. + * @arg RCC_LSE_ON: turn ON the LSE oscillator + * @arg RCC_LSE_Bypass: LSE oscillator bypassed with external clock + * @retval None + */ +void RCC_LSEConfig(uint8_t RCC_LSE) +{ + /* Check the parameters */ + assert_param(IS_RCC_LSE(RCC_LSE)); + + /* Reset LSEON and LSEBYP bits before configuring the LSE ------------------*/ + /* Reset LSEON bit */ + *(__IO uint8_t *) BDCR_ADDRESS = RCC_LSE_OFF; + + /* Reset LSEBYP bit */ + *(__IO uint8_t *) BDCR_ADDRESS = RCC_LSE_OFF; + + /* Configure LSE (RCC_LSE_OFF is already covered by the code section above) */ + switch (RCC_LSE) + { + case RCC_LSE_ON: + /* Set LSEON bit */ + *(__IO uint8_t *) BDCR_ADDRESS = RCC_LSE_ON; + break; + case RCC_LSE_Bypass: + /* Set LSEBYP and LSEON bits */ + *(__IO uint8_t *) BDCR_ADDRESS = RCC_LSE_Bypass | RCC_LSE_ON; + break; + default: + break; + } +} + +/** + * @brief Enables or disables the Internal Low Speed oscillator (LSI). + * @note After enabling the LSI, the application software should wait on + * LSIRDY flag to be set indicating that LSI clock is stable and can + * be used to clock the IWDG and/or the RTC. + * @note LSI can not be disabled if the IWDG is running. + * @param NewState: new state of the LSI. + * This parameter can be: ENABLE or DISABLE. + * @note When the LSI is stopped, LSIRDY flag goes low after 6 LSI oscillator + * clock cycles. + * @retval None + */ +void RCC_LSICmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CSR_LSION_BB = (uint32_t)NewState; +} + +/** + * @brief Configures the main PLL clock source, multiplication and division factors. + * @note This function must be used only when the main PLL is disabled. + * + * @param RCC_PLLSource: specifies the PLL entry clock source. + * This parameter can be one of the following values: + * @arg RCC_PLLSource_HSI: HSI oscillator clock selected as PLL clock entry + * @arg RCC_PLLSource_HSE: HSE oscillator clock selected as PLL clock entry + * @note This clock source (RCC_PLLSource) is common for the main PLL and PLLI2S. + * + * @param PLLM: specifies the division factor for PLL VCO input clock + * This parameter must be a number between 0 and 63. + * @note You have to set the PLLM parameter correctly to ensure that the VCO input + * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency + * of 2 MHz to limit PLL jitter. + * + * @param PLLN: specifies the multiplication factor for PLL VCO output clock + * This parameter must be a number between 192 and 432. + * @note You have to set the PLLN parameter correctly to ensure that the VCO + * output frequency is between 192 and 432 MHz. + * + * @param PLLP: specifies the division factor for main system clock (SYSCLK) + * This parameter must be a number in the range {2, 4, 6, or 8}. + * @note You have to set the PLLP parameter correctly to not exceed 120 MHz on + * the System clock frequency. + * + * @param PLLQ: specifies the division factor for OTG FS, SDIO and RNG clocks + * This parameter must be a number between 4 and 15. + * @note If the USB OTG FS is used in your application, you have to set the + * PLLQ parameter correctly to have 48 MHz clock for the USB. However, + * the SDIO and RNG need a frequency lower than or equal to 48 MHz to work + * correctly. + * + * @retval None + */ +void RCC_PLLConfig(uint32_t RCC_PLLSource, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP, uint32_t PLLQ) +{ + /* Check the parameters */ + assert_param(IS_RCC_PLL_SOURCE(RCC_PLLSource)); + assert_param(IS_RCC_PLLM_VALUE(PLLM)); + assert_param(IS_RCC_PLLN_VALUE(PLLN)); + assert_param(IS_RCC_PLLP_VALUE(PLLP)); + assert_param(IS_RCC_PLLQ_VALUE(PLLQ)); + + RCC->PLLCFGR = PLLM | (PLLN << 6) | (((PLLP >> 1) -1) << 16) | (RCC_PLLSource) | + (PLLQ << 24); +} + +/** + * @brief Enables or disables the main PLL. + * @note After enabling the main PLL, the application software should wait on + * PLLRDY flag to be set indicating that PLL clock is stable and can + * be used as system clock source. + * @note The main PLL can not be disabled if it is used as system clock source + * @note The main PLL is disabled by hardware when entering STOP and STANDBY modes. + * @param NewState: new state of the main PLL. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_PLLCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + *(__IO uint32_t *) CR_PLLON_BB = (uint32_t)NewState; +} + +/** + * @brief Configures the PLLI2S clock multiplication and division factors. + * + * @note PLLI2S is available only in Silicon RevisionB and RevisionY. + * @note This function must be used only when the PLLI2S is disabled. + * @note PLLI2S clock source is common with the main PLL (configured in + * RCC_PLLConfig function ) + * + * @param PLLI2SN: specifies the multiplication factor for PLLI2S VCO output clock + * This parameter must be a number between 192 and 432. + * @note You have to set the PLLI2SN parameter correctly to ensure that the VCO + * output frequency is between 192 and 432 MHz. + * + * @param PLLI2SR: specifies the division factor for I2S clock + * This parameter must be a number between 2 and 7. + * @note You have to set the PLLI2SR parameter correctly to not exceed 192 MHz + * on the I2S clock frequency. + * + * @retval None + */ +void RCC_PLLI2SConfig(uint32_t PLLI2SN, uint32_t PLLI2SR) +{ + /* Check the parameters */ + assert_param(IS_RCC_PLLI2SN_VALUE(PLLI2SN)); + assert_param(IS_RCC_PLLI2SR_VALUE(PLLI2SR)); + + RCC->PLLI2SCFGR = (PLLI2SN << 6) | (PLLI2SR << 28); +} + +/** + * @brief Enables or disables the PLLI2S. + * @note PLLI2S is available only in RevisionB and RevisionY + * @note The PLLI2S is disabled by hardware when entering STOP and STANDBY modes. + * @param NewState: new state of the PLLI2S. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_PLLI2SCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + *(__IO uint32_t *) CR_PLLI2SON_BB = (uint32_t)NewState; +} + +/** + * @brief Enables or disables the Clock Security System. + * @note If a failure is detected on the HSE oscillator clock, this oscillator + * is automatically disabled and an interrupt is generated to inform the + * software about the failure (Clock Security System Interrupt, CSSI), + * allowing the MCU to perform rescue operations. The CSSI is linked to + * the Cortex-M3 NMI (Non-Maskable Interrupt) exception vector. + * @param NewState: new state of the Clock Security System. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_ClockSecuritySystemCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + *(__IO uint32_t *) CR_CSSON_BB = (uint32_t)NewState; +} + +/** + * @brief Selects the clock source to output on MCO1 pin(PA8). + * @note PA8 should be configured in alternate function mode. + * @param RCC_MCO1Source: specifies the clock source to output. + * This parameter can be one of the following values: + * @arg RCC_MCO1Source_HSI: HSI clock selected as MCO1 source + * @arg RCC_MCO1Source_LSE: LSE clock selected as MCO1 source + * @arg RCC_MCO1Source_HSE: HSE clock selected as MCO1 source + * @arg RCC_MCO1Source_PLLCLK: main PLL clock selected as MCO1 source + * @param RCC_MCO1Div: specifies the MCO1 prescaler. + * This parameter can be one of the following values: + * @arg RCC_MCO1Div_1: no division applied to MCO1 clock + * @arg RCC_MCO1Div_2: division by 2 applied to MCO1 clock + * @arg RCC_MCO1Div_3: division by 3 applied to MCO1 clock + * @arg RCC_MCO1Div_4: division by 4 applied to MCO1 clock + * @arg RCC_MCO1Div_5: division by 5 applied to MCO1 clock + * @retval None + */ +void RCC_MCO1Config(uint32_t RCC_MCO1Source, uint32_t RCC_MCO1Div) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_MCO1SOURCE(RCC_MCO1Source)); + assert_param(IS_RCC_MCO1DIV(RCC_MCO1Div)); + + tmpreg = RCC->CFGR; + + /* Clear MCO1[1:0] and MCO1PRE[2:0] bits */ + tmpreg &= CFGR_MCO1_RESET_MASK; + + /* Select MCO1 clock source and prescaler */ + tmpreg |= RCC_MCO1Source | RCC_MCO1Div; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @brief Selects the clock source to output on MCO2 pin(PC9). + * @note PC9 should be configured in alternate function mode. + * @param RCC_MCO2Source: specifies the clock source to output. + * This parameter can be one of the following values: + * @arg RCC_MCO2Source_SYSCLK: System clock (SYSCLK) selected as MCO2 source + * @arg RCC_MCO2Source_PLLI2SCLK: PLLI2S clock selected as MCO2 source + * @arg RCC_MCO2Source_HSE: HSE clock selected as MCO2 source + * @arg RCC_MCO2Source_PLLCLK: main PLL clock selected as MCO2 source + * @param RCC_MCO2Div: specifies the MCO2 prescaler. + * This parameter can be one of the following values: + * @arg RCC_MCO2Div_1: no division applied to MCO2 clock + * @arg RCC_MCO2Div_2: division by 2 applied to MCO2 clock + * @arg RCC_MCO2Div_3: division by 3 applied to MCO2 clock + * @arg RCC_MCO2Div_4: division by 4 applied to MCO2 clock + * @arg RCC_MCO2Div_5: division by 5 applied to MCO2 clock + * @retval None + */ +void RCC_MCO2Config(uint32_t RCC_MCO2Source, uint32_t RCC_MCO2Div) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_MCO2SOURCE(RCC_MCO2Source)); + assert_param(IS_RCC_MCO2DIV(RCC_MCO2Div)); + + tmpreg = RCC->CFGR; + + /* Clear MCO2 and MCO2PRE[2:0] bits */ + tmpreg &= CFGR_MCO2_RESET_MASK; + + /* Select MCO2 clock source and prescaler */ + tmpreg |= RCC_MCO2Source | RCC_MCO2Div; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @} + */ + +/** @defgroup RCC_Group2 System AHB and APB busses clocks configuration functions + * @brief System, AHB and APB busses clocks configuration functions + * +@verbatim + =============================================================================== + System, AHB and APB busses clocks configuration functions + =============================================================================== + + This section provide functions allowing to configure the System, AHB, APB1 and + APB2 busses clocks. + + 1. Several clock sources can be used to drive the System clock (SYSCLK): HSI, + HSE and PLL. + The AHB clock (HCLK) is derived from System clock through configurable prescaler + and used to clock the CPU, memory and peripherals mapped on AHB bus (DMA, GPIO...). + APB1 (PCLK1) and APB2 (PCLK2) clocks are derived from AHB clock through + configurable prescalers and used to clock the peripherals mapped on these busses. + You can use "RCC_GetClocksFreq()" function to retrieve the frequencies of these clocks. + +@note All the peripheral clocks are derived from the System clock (SYSCLK) except: + - I2S: the I2S clock can be derived either from a specific PLL (PLLI2S) or + from an external clock mapped on the I2S_CKIN pin. + You have to use RCC_I2SCLKConfig() function to configure this clock. + - RTC: the RTC clock can be derived either from the LSI, LSE or HSE clock + divided by 2 to 31. You have to use RCC_RTCCLKConfig() and RCC_RTCCLKCmd() + functions to configure this clock. + - USB OTG FS, SDIO and RTC: USB OTG FS require a frequency equal to 48 MHz + to work correctly, while the SDIO require a frequency equal or lower than + to 48. This clock is derived of the main PLL through PLLQ divider. + - IWDG clock which is always the LSI clock. + + 2. The maximum frequency of the SYSCLK and HCLK is 120 MHz, PCLK2 60 MHz and PCLK1 30 MHz. + Depending on the device voltage range, the maximum frequency should be + adapted accordingly: + +-------------------------------------------------------------------------------------+ + | Latency | HCLK clock frequency (MHz) | + | |---------------------------------------------------------------------| + | | voltage range | voltage range | voltage range | voltage range | + | | 2.7 V - 3.6 V | 2.4 V - 2.7 V | 2.1 V - 2.4 V | 1.8 V - 2.1 V | + |---------------|----------------|----------------|-----------------|-----------------| + |0WS(1CPU cycle)|0 < HCLK <= 30 |0 < HCLK <= 24 |0 < HCLK <= 18 |0 < HCLK <= 16 | + |---------------|----------------|----------------|-----------------|-----------------| + |1WS(2CPU cycle)|30 < HCLK <= 60 |24 < HCLK <= 48 |18 < HCLK <= 36 |16 < HCLK <= 32 | + |---------------|----------------|----------------|-----------------|-----------------| + |2WS(3CPU cycle)|60 < HCLK <= 90 |48 < HCLK <= 72 |36 < HCLK <= 54 |32 < HCLK <= 48 | + |---------------|----------------|----------------|-----------------|-----------------| + |3WS(4CPU cycle)|90 < HCLK <= 120|72 < HCLK <= 96 |54 < HCLK <= 72 |48 < HCLK <= 64 | + |---------------|----------------|----------------|-----------------|-----------------| + |4WS(5CPU cycle)| NA |96 < HCLK <= 120|72 < HCLK <= 90 |64 < HCLK <= 80 | + |---------------|----------------|----------------|-----------------|-----------------| + |5WS(6CPU cycle)| NA | NA |90 < HCLK <= 108 |80 < HCLK <= 96 | + |---------------|----------------|----------------|-----------------|-----------------| + |6WS(7CPU cycle)| NA | NA |108 < HCLK <= 120|96 < HCLK <= 112 | + |---------------|----------------|----------------|-----------------|-----------------| + |7WS(8CPU cycle)| NA | NA | NA |112 < HCLK <= 120| + +-------------------------------------------------------------------------------------+ + + +@endverbatim + * @{ + */ + +/** + * @brief Configures the system clock (SYSCLK). + * @note The HSI is used (enabled by hardware) as system clock source after + * startup from Reset, wake-up from STOP and STANDBY mode, or in case + * of failure of the HSE used directly or indirectly as system clock + * (if the Clock Security System CSS is enabled). + * @note A switch from one clock source to another occurs only if the target + * clock source is ready (clock stable after startup delay or PLL locked). + * If a clock source which is not yet ready is selected, the switch will + * occur when the clock source will be ready. + * You can use RCC_GetSYSCLKSource() function to know which clock is + * currently used as system clock source. + * @param RCC_SYSCLKSource: specifies the clock source used as system clock. + * This parameter can be one of the following values: + * @arg RCC_SYSCLKSource_HSI: HSI selected as system clock source + * @arg RCC_SYSCLKSource_HSE: HSE selected as system clock source + * @arg RCC_SYSCLKSource_PLLCLK: PLL selected as system clock source + * @retval None + */ +void RCC_SYSCLKConfig(uint32_t RCC_SYSCLKSource) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource)); + + tmpreg = RCC->CFGR; + + /* Clear SW[1:0] bits */ + tmpreg &= ~RCC_CFGR_SW; + + /* Set SW[1:0] bits according to RCC_SYSCLKSource value */ + tmpreg |= RCC_SYSCLKSource; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @brief Returns the clock source used as system clock. + * @param None + * @retval The clock source used as system clock. The returned value can be one + * of the following: + * - 0x00: HSI used as system clock + * - 0x04: HSE used as system clock + * - 0x08: PLL used as system clock + */ +uint8_t RCC_GetSYSCLKSource(void) +{ + return ((uint8_t)(RCC->CFGR & RCC_CFGR_SWS)); +} + +/** + * @brief Configures the AHB clock (HCLK). + * @note Depending on the device voltage range, the software has to set correctly + * these bits to ensure that HCLK not exceed the maximum allowed frequency + * (for more details refer to section above + * "CPU, AHB and APB busses clocks configuration functions") + * @param RCC_SYSCLK: defines the AHB clock divider. This clock is derived from + * the system clock (SYSCLK). + * This parameter can be one of the following values: + * @arg RCC_SYSCLK_Div1: AHB clock = SYSCLK + * @arg RCC_SYSCLK_Div2: AHB clock = SYSCLK/2 + * @arg RCC_SYSCLK_Div4: AHB clock = SYSCLK/4 + * @arg RCC_SYSCLK_Div8: AHB clock = SYSCLK/8 + * @arg RCC_SYSCLK_Div16: AHB clock = SYSCLK/16 + * @arg RCC_SYSCLK_Div64: AHB clock = SYSCLK/64 + * @arg RCC_SYSCLK_Div128: AHB clock = SYSCLK/128 + * @arg RCC_SYSCLK_Div256: AHB clock = SYSCLK/256 + * @arg RCC_SYSCLK_Div512: AHB clock = SYSCLK/512 + * @retval None + */ +void RCC_HCLKConfig(uint32_t RCC_SYSCLK) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_HCLK(RCC_SYSCLK)); + + tmpreg = RCC->CFGR; + + /* Clear HPRE[3:0] bits */ + tmpreg &= ~RCC_CFGR_HPRE; + + /* Set HPRE[3:0] bits according to RCC_SYSCLK value */ + tmpreg |= RCC_SYSCLK; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + + +/** + * @brief Configures the Low Speed APB clock (PCLK1). + * @param RCC_HCLK: defines the APB1 clock divider. This clock is derived from + * the AHB clock (HCLK). + * This parameter can be one of the following values: + * @arg RCC_HCLK_Div1: APB1 clock = HCLK + * @arg RCC_HCLK_Div2: APB1 clock = HCLK/2 + * @arg RCC_HCLK_Div4: APB1 clock = HCLK/4 + * @arg RCC_HCLK_Div8: APB1 clock = HCLK/8 + * @arg RCC_HCLK_Div16: APB1 clock = HCLK/16 + * @retval None + */ +void RCC_PCLK1Config(uint32_t RCC_HCLK) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_PCLK(RCC_HCLK)); + + tmpreg = RCC->CFGR; + + /* Clear PPRE1[2:0] bits */ + tmpreg &= ~RCC_CFGR_PPRE1; + + /* Set PPRE1[2:0] bits according to RCC_HCLK value */ + tmpreg |= RCC_HCLK; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @brief Configures the High Speed APB clock (PCLK2). + * @param RCC_HCLK: defines the APB2 clock divider. This clock is derived from + * the AHB clock (HCLK). + * This parameter can be one of the following values: + * @arg RCC_HCLK_Div1: APB2 clock = HCLK + * @arg RCC_HCLK_Div2: APB2 clock = HCLK/2 + * @arg RCC_HCLK_Div4: APB2 clock = HCLK/4 + * @arg RCC_HCLK_Div8: APB2 clock = HCLK/8 + * @arg RCC_HCLK_Div16: APB2 clock = HCLK/16 + * @retval None + */ +void RCC_PCLK2Config(uint32_t RCC_HCLK) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_PCLK(RCC_HCLK)); + + tmpreg = RCC->CFGR; + + /* Clear PPRE2[2:0] bits */ + tmpreg &= ~RCC_CFGR_PPRE2; + + /* Set PPRE2[2:0] bits according to RCC_HCLK value */ + tmpreg |= RCC_HCLK << 3; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @brief Returns the frequencies of different on chip clocks; SYSCLK, HCLK, + * PCLK1 and PCLK2. + * + * @note The system frequency computed by this function is not the real + * frequency in the chip. It is calculated based on the predefined + * constant and the selected clock source: + * @note If SYSCLK source is HSI, function returns values based on HSI_VALUE(*) + * @note If SYSCLK source is HSE, function returns values based on HSE_VALUE(**) + * @note If SYSCLK source is PLL, function returns values based on HSE_VALUE(**) + * or HSI_VALUE(*) multiplied/divided by the PLL factors. + * @note (*) HSI_VALUE is a constant defined in stm32f2xx.h file (default value + * 16 MHz) but the real value may vary depending on the variations + * in voltage and temperature. + * @note (**) HSE_VALUE is a constant defined in stm32f2xx.h file (default value + * 25 MHz), user has to ensure that HSE_VALUE is same as the real + * frequency of the crystal used. Otherwise, this function may + * have wrong result. + * + * @note The result of this function could be not correct when using fractional + * value for HSE crystal. + * + * @param RCC_Clocks: pointer to a RCC_ClocksTypeDef structure which will hold + * the clocks frequencies. + * + * @note This function can be used by the user application to compute the + * baudrate for the communication peripherals or configure other parameters. + * @note Each time SYSCLK, HCLK, PCLK1 and/or PCLK2 clock changes, this function + * must be called to update the structure's field. Otherwise, any + * configuration based on this function will be incorrect. + * + * @retval None + */ +void RCC_GetClocksFreq(RCC_ClocksTypeDef* RCC_Clocks) +{ + uint32_t tmp = 0, presc = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2; + + /* Get SYSCLK source -------------------------------------------------------*/ + tmp = RCC->CFGR & RCC_CFGR_SWS; + + switch (tmp) + { + case 0x00: /* HSI used as system clock source */ + RCC_Clocks->SYSCLK_Frequency = HSI_VALUE; + break; + case 0x04: /* HSE used as system clock source */ + RCC_Clocks->SYSCLK_Frequency = HSE_VALUE; + break; + case 0x08: /* PLL used as system clock source */ + + /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN + SYSCLK = PLL_VCO / PLLP + */ + pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> 22; + pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; + + if (pllsource != 0) + { + /* HSE used as PLL clock source */ + pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); + } + else + { + /* HSI used as PLL clock source */ + pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); + } + + pllp = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >>16) + 1 ) *2; + RCC_Clocks->SYSCLK_Frequency = pllvco/pllp; + break; + default: + RCC_Clocks->SYSCLK_Frequency = HSI_VALUE; + break; + } + /* Compute HCLK, PCLK1 and PCLK2 clocks frequencies ------------------------*/ + + /* Get HCLK prescaler */ + tmp = RCC->CFGR & RCC_CFGR_HPRE; + tmp = tmp >> 4; + presc = APBAHBPrescTable[tmp]; + /* HCLK clock frequency */ + RCC_Clocks->HCLK_Frequency = RCC_Clocks->SYSCLK_Frequency >> presc; + + /* Get PCLK1 prescaler */ + tmp = RCC->CFGR & RCC_CFGR_PPRE1; + tmp = tmp >> 10; + presc = APBAHBPrescTable[tmp]; + /* PCLK1 clock frequency */ + RCC_Clocks->PCLK1_Frequency = RCC_Clocks->HCLK_Frequency >> presc; + + /* Get PCLK2 prescaler */ + tmp = RCC->CFGR & RCC_CFGR_PPRE2; + tmp = tmp >> 13; + presc = APBAHBPrescTable[tmp]; + /* PCLK2 clock frequency */ + RCC_Clocks->PCLK2_Frequency = RCC_Clocks->HCLK_Frequency >> presc; +} + +/** + * @} + */ + +/** @defgroup RCC_Group3 Peripheral clocks configuration functions + * @brief Peripheral clocks configuration functions + * +@verbatim + =============================================================================== + Peripheral clocks configuration functions + =============================================================================== + + This section provide functions allowing to configure the Peripheral clocks. + + 1. The RTC clock which is derived from the LSI, LSE or HSE clock divided by 2 to 31. + + 2. After restart from Reset or wakeup from STANDBY, all peripherals are off + except internal SRAM, Flash and JTAG. Before to start using a peripheral you + have to enable its interface clock. You can do this using RCC_AHBPeriphClockCmd() + , RCC_APB2PeriphClockCmd() and RCC_APB1PeriphClockCmd() functions. + + 3. To reset the peripherals configuration (to the default state after device reset) + you can use RCC_AHBPeriphResetCmd(), RCC_APB2PeriphResetCmd() and + RCC_APB1PeriphResetCmd() functions. + + 4. To further reduce power consumption in SLEEP mode the peripheral clocks can + be disabled prior to executing the WFI or WFE instructions. You can do this + using RCC_AHBPeriphClockLPModeCmd(), RCC_APB2PeriphClockLPModeCmd() and + RCC_APB1PeriphClockLPModeCmd() functions. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the RTC clock (RTCCLK). + * @note As the RTC clock configuration bits are in the Backup domain and write + * access is denied to this domain after reset, you have to enable write + * access using PWR_BackupAccessCmd(ENABLE) function before to configure + * the RTC clock source (to be done once after reset). + * @note Once the RTC clock is configured it can't be changed unless the + * Backup domain is reset using RCC_BackupResetCmd() function, or by + * a Power On Reset (POR). + * + * @param RCC_RTCCLKSource: specifies the RTC clock source. + * This parameter can be one of the following values: + * @arg RCC_RTCCLKSource_LSE: LSE selected as RTC clock + * @arg RCC_RTCCLKSource_LSI: LSI selected as RTC clock + * @arg RCC_RTCCLKSource_HSE_Divx: HSE clock divided by x selected + * as RTC clock, where x:[2,31] + * + * @note If the LSE or LSI is used as RTC clock source, the RTC continues to + * work in STOP and STANDBY modes, and can be used as wakeup source. + * However, when the HSE clock is used as RTC clock source, the RTC + * cannot be used in STOP and STANDBY modes. + * @note The maximum input clock frequency for RTC is 1MHz (when using HSE as + * RTC clock source). + * + * @retval None + */ +void RCC_RTCCLKConfig(uint32_t RCC_RTCCLKSource) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource)); + + if ((RCC_RTCCLKSource & 0x00000300) == 0x00000300) + { /* If HSE is selected as RTC clock source, configure HSE division factor for RTC clock */ + tmpreg = RCC->CFGR; + + /* Clear RTCPRE[4:0] bits */ + tmpreg &= ~RCC_CFGR_RTCPRE; + + /* Configure HSE division factor for RTC clock */ + tmpreg |= (RCC_RTCCLKSource & 0xFFFFCFF); + + /* Store the new value */ + RCC->CFGR = tmpreg; + } + + /* Select the RTC clock source */ + RCC->BDCR |= (RCC_RTCCLKSource & 0x00000FFF); +} + +/** + * @brief Enables or disables the RTC clock. + * @note This function must be used only after the RTC clock source was selected + * using the RCC_RTCCLKConfig function. + * @param NewState: new state of the RTC clock. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_RTCCLKCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) BDCR_RTCEN_BB = (uint32_t)NewState; +} + +/** + * @brief Forces or releases the Backup domain reset. + * @note This function resets the RTC peripheral (including the backup registers) + * and the RTC clock source selection in RCC_CSR register. + * @note The BKPSRAM is not affected by this reset. + * @param NewState: new state of the Backup domain reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_BackupResetCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + *(__IO uint32_t *) BDCR_BDRST_BB = (uint32_t)NewState; +} + +/** + * @brief Configures the I2S clock source (I2SCLK). + * + * @note This function must be called before enabling the I2S APB clock. + * @note This function applies only to Silicon RevisionB and RevisionY. + * + * @param RCC_I2SCLKSource: specifies the I2S clock source. + * This parameter can be one of the following values: + * @arg RCC_I2S2CLKSource_PLLI2S: PLLI2S clock used as I2S clock source + * @arg RCC_I2S2CLKSource_Ext: External clock mapped on the I2S_CKIN pin + * used as I2S clock source + * @retval None + */ +void RCC_I2SCLKConfig(uint32_t RCC_I2SCLKSource) +{ + /* Check the parameters */ + assert_param(IS_RCC_I2SCLK_SOURCE(RCC_I2SCLKSource)); + + *(__IO uint32_t *) CFGR_I2SSRC_BB = RCC_I2SCLKSource; +} + +/** + * @brief Enables or disables the AHB1 peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_AHBPeriph: specifies the AHB1 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_AHB1Periph_GPIOA: GPIOA clock + * @arg RCC_AHB1Periph_GPIOB: GPIOB clock + * @arg RCC_AHB1Periph_GPIOC: GPIOC clock + * @arg RCC_AHB1Periph_GPIOD: GPIOD clock + * @arg RCC_AHB1Periph_GPIOE: GPIOE clock + * @arg RCC_AHB1Periph_GPIOF: GPIOF clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOI: GPIOI clock + * @arg RCC_AHB1Periph_CRC: CRC clock + * @arg RCC_AHB1Periph_BKPSRAM: BKPSRAM interface clock + * @arg RCC_AHB1Periph_DMA1: DMA1 clock + * @arg RCC_AHB1Periph_DMA2: DMA2 clock + * @arg RCC_AHB1Periph_ETH_MAC: Ethernet MAC clock + * @arg RCC_AHB1Periph_ETH_MAC_Tx: Ethernet Transmission clock + * @arg RCC_AHB1Periph_ETH_MAC_Rx: Ethernet Reception clock + * @arg RCC_AHB1Periph_ETH_MAC_PTP: Ethernet PTP clock + * @arg RCC_AHB1Periph_OTG_HS: USB OTG HS clock + * @arg RCC_AHB1Periph_OTG_HS_ULPI: USB OTG HS ULPI clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB1PeriphClockCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB1_CLOCK_PERIPH(RCC_AHB1Periph)); + + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->AHB1ENR |= RCC_AHB1Periph; + } + else + { + RCC->AHB1ENR &= ~RCC_AHB1Periph; + } +} + +/** + * @brief Enables or disables the AHB2 peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_AHBPeriph: specifies the AHB2 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_AHB2Periph_DCMI: DCMI clock + * @arg RCC_AHB2Periph_CRYP: CRYP clock + * @arg RCC_AHB2Periph_HASH: HASH clock + * @arg RCC_AHB2Periph_RNG: RNG clock + * @arg RCC_AHB2Periph_OTG_FS: USB OTG FS clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB2PeriphClockCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB2ENR |= RCC_AHB2Periph; + } + else + { + RCC->AHB2ENR &= ~RCC_AHB2Periph; + } +} + +/** + * @brief Enables or disables the AHB3 peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_AHBPeriph: specifies the AHB3 peripheral to gates its clock. + * This parameter must be: RCC_AHB3Periph_FSMC + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB3PeriphClockCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB3_PERIPH(RCC_AHB3Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB3ENR |= RCC_AHB3Periph; + } + else + { + RCC->AHB3ENR &= ~RCC_AHB3Periph; + } +} + +/** + * @brief Enables or disables the Low Speed APB (APB1) peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_APB1Periph: specifies the APB1 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_APB1Periph_TIM2: TIM2 clock + * @arg RCC_APB1Periph_TIM3: TIM3 clock + * @arg RCC_APB1Periph_TIM4: TIM4 clock + * @arg RCC_APB1Periph_TIM5: TIM5 clock + * @arg RCC_APB1Periph_TIM6: TIM6 clock + * @arg RCC_APB1Periph_TIM7: TIM7 clock + * @arg RCC_APB1Periph_TIM12: TIM12 clock + * @arg RCC_APB1Periph_TIM13: TIM13 clock + * @arg RCC_APB1Periph_TIM14: TIM14 clock + * @arg RCC_APB1Periph_WWDG: WWDG clock + * @arg RCC_APB1Periph_SPI2: SPI2 clock + * @arg RCC_APB1Periph_SPI3: SPI3 clock + * @arg RCC_APB1Periph_USART2: USART2 clock + * @arg RCC_APB1Periph_USART3: USART3 clock + * @arg RCC_APB1Periph_UART4: UART4 clock + * @arg RCC_APB1Periph_UART5: UART5 clock + * @arg RCC_APB1Periph_I2C1: I2C1 clock + * @arg RCC_APB1Periph_I2C2: I2C2 clock + * @arg RCC_APB1Periph_I2C3: I2C3 clock + * @arg RCC_APB1Periph_CAN1: CAN1 clock + * @arg RCC_APB1Periph_CAN2: CAN2 clock + * @arg RCC_APB1Periph_PWR: PWR clock + * @arg RCC_APB1Periph_DAC: DAC clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB1PeriphClockCmd(uint32_t RCC_APB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->APB1ENR |= RCC_APB1Periph; + } + else + { + RCC->APB1ENR &= ~RCC_APB1Periph; + } +} + +/** + * @brief Enables or disables the High Speed APB (APB2) peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_APB2Periph: specifies the APB2 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_APB2Periph_TIM1: TIM1 clock + * @arg RCC_APB2Periph_TIM8: TIM8 clock + * @arg RCC_APB2Periph_USART1: USART1 clock + * @arg RCC_APB2Periph_USART6: USART6 clock + * @arg RCC_APB2Periph_ADC1: ADC1 clock + * @arg RCC_APB2Periph_ADC2: ADC2 clock + * @arg RCC_APB2Periph_ADC3: ADC3 clock + * @arg RCC_APB2Periph_SDIO: SDIO clock + * @arg RCC_APB2Periph_SPI1: SPI1 clock + * @arg RCC_APB2Periph_SYSCFG: SYSCFG clock + * @arg RCC_APB2Periph_TIM9: TIM9 clock + * @arg RCC_APB2Periph_TIM10: TIM10 clock + * @arg RCC_APB2Periph_TIM11: TIM11 clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->APB2ENR |= RCC_APB2Periph; + } + else + { + RCC->APB2ENR &= ~RCC_APB2Periph; + } +} + +/** + * @brief Forces or releases AHB1 peripheral reset. + * @param RCC_AHB1Periph: specifies the AHB1 peripheral to reset. + * This parameter can be any combination of the following values: + * @arg RCC_AHB1Periph_GPIOA: GPIOA clock + * @arg RCC_AHB1Periph_GPIOB: GPIOB clock + * @arg RCC_AHB1Periph_GPIOC: GPIOC clock + * @arg RCC_AHB1Periph_GPIOD: GPIOD clock + * @arg RCC_AHB1Periph_GPIOE: GPIOE clock + * @arg RCC_AHB1Periph_GPIOF: GPIOF clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOI: GPIOI clock + * @arg RCC_AHB1Periph_CRC: CRC clock + * @arg RCC_AHB1Periph_DMA1: DMA1 clock + * @arg RCC_AHB1Periph_DMA2: DMA2 clock + * @arg RCC_AHB1Periph_ETH_MAC: Ethernet MAC clock + * @arg RCC_AHB1Periph_OTG_HS: USB OTG HS clock + * + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB1PeriphResetCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB1_RESET_PERIPH(RCC_AHB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB1RSTR |= RCC_AHB1Periph; + } + else + { + RCC->AHB1RSTR &= ~RCC_AHB1Periph; + } +} + +/** + * @brief Forces or releases AHB2 peripheral reset. + * @param RCC_AHB2Periph: specifies the AHB2 peripheral to reset. + * This parameter can be any combination of the following values: + * @arg RCC_AHB2Periph_DCMI: DCMI clock + * @arg RCC_AHB2Periph_CRYP: CRYP clock + * @arg RCC_AHB2Periph_HASH: HASH clock + * @arg RCC_AHB2Periph_RNG: RNG clock + * @arg RCC_AHB2Periph_OTG_FS: USB OTG FS clock + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB2PeriphResetCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB2RSTR |= RCC_AHB2Periph; + } + else + { + RCC->AHB2RSTR &= ~RCC_AHB2Periph; + } +} + +/** + * @brief Forces or releases AHB3 peripheral reset. + * @param RCC_AHB3Periph: specifies the AHB3 peripheral to reset. + * This parameter must be: RCC_AHB3Periph_FSMC + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB3PeriphResetCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB3_PERIPH(RCC_AHB3Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB3RSTR |= RCC_AHB3Periph; + } + else + { + RCC->AHB3RSTR &= ~RCC_AHB3Periph; + } +} + +/** + * @brief Forces or releases Low Speed APB (APB1) peripheral reset. + * @param RCC_APB1Periph: specifies the APB1 peripheral to reset. + * This parameter can be any combination of the following values: + * @arg RCC_APB1Periph_TIM2: TIM2 clock + * @arg RCC_APB1Periph_TIM3: TIM3 clock + * @arg RCC_APB1Periph_TIM4: TIM4 clock + * @arg RCC_APB1Periph_TIM5: TIM5 clock + * @arg RCC_APB1Periph_TIM6: TIM6 clock + * @arg RCC_APB1Periph_TIM7: TIM7 clock + * @arg RCC_APB1Periph_TIM12: TIM12 clock + * @arg RCC_APB1Periph_TIM13: TIM13 clock + * @arg RCC_APB1Periph_TIM14: TIM14 clock + * @arg RCC_APB1Periph_WWDG: WWDG clock + * @arg RCC_APB1Periph_SPI2: SPI2 clock + * @arg RCC_APB1Periph_SPI3: SPI3 clock + * @arg RCC_APB1Periph_USART2: USART2 clock + * @arg RCC_APB1Periph_USART3: USART3 clock + * @arg RCC_APB1Periph_UART4: UART4 clock + * @arg RCC_APB1Periph_UART5: UART5 clock + * @arg RCC_APB1Periph_I2C1: I2C1 clock + * @arg RCC_APB1Periph_I2C2: I2C2 clock + * @arg RCC_APB1Periph_I2C3: I2C3 clock + * @arg RCC_APB1Periph_CAN1: CAN1 clock + * @arg RCC_APB1Periph_CAN2: CAN2 clock + * @arg RCC_APB1Periph_PWR: PWR clock + * @arg RCC_APB1Periph_DAC: DAC clock + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->APB1RSTR |= RCC_APB1Periph; + } + else + { + RCC->APB1RSTR &= ~RCC_APB1Periph; + } +} + +/** + * @brief Forces or releases High Speed APB (APB2) peripheral reset. + * @param RCC_APB2Periph: specifies the APB2 peripheral to reset. + * This parameter can be any combination of the following values: + * @arg RCC_APB2Periph_TIM1: TIM1 clock + * @arg RCC_APB2Periph_TIM8: TIM8 clock + * @arg RCC_APB2Periph_USART1: USART1 clock + * @arg RCC_APB2Periph_USART6: USART6 clock + * @arg RCC_APB2Periph_ADC1: ADC1 clock + * @arg RCC_APB2Periph_ADC2: ADC2 clock + * @arg RCC_APB2Periph_ADC3: ADC3 clock + * @arg RCC_APB2Periph_SDIO: SDIO clock + * @arg RCC_APB2Periph_SPI1: SPI1 clock + * @arg RCC_APB2Periph_SYSCFG: SYSCFG clock + * @arg RCC_APB2Periph_TIM9: TIM9 clock + * @arg RCC_APB2Periph_TIM10: TIM10 clock + * @arg RCC_APB2Periph_TIM11: TIM11 clock + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB2_RESET_PERIPH(RCC_APB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->APB2RSTR |= RCC_APB2Periph; + } + else + { + RCC->APB2RSTR &= ~RCC_APB2Periph; + } +} + +/** + * @brief Enables or disables the AHB1 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_AHBPeriph: specifies the AHB1 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_AHB1Periph_GPIOA: GPIOA clock + * @arg RCC_AHB1Periph_GPIOB: GPIOB clock + * @arg RCC_AHB1Periph_GPIOC: GPIOC clock + * @arg RCC_AHB1Periph_GPIOD: GPIOD clock + * @arg RCC_AHB1Periph_GPIOE: GPIOE clock + * @arg RCC_AHB1Periph_GPIOF: GPIOF clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOI: GPIOI clock + * @arg RCC_AHB1Periph_CRC: CRC clock + * @arg RCC_AHB1Periph_BKPSRAM: BKPSRAM interface clock + * @arg RCC_AHB1Periph_DMA1: DMA1 clock + * @arg RCC_AHB1Periph_DMA2: DMA2 clock + * @arg RCC_AHB1Periph_ETH_MAC: Ethernet MAC clock + * @arg RCC_AHB1Periph_ETH_MAC_Tx: Ethernet Transmission clock + * @arg RCC_AHB1Periph_ETH_MAC_Rx: Ethernet Reception clock + * @arg RCC_AHB1Periph_ETH_MAC_PTP: Ethernet PTP clock + * @arg RCC_AHB1Periph_OTG_HS: USB OTG HS clock + * @arg RCC_AHB1Periph_OTG_HS_ULPI: USB OTG HS ULPI clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB1PeriphClockLPModeCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB1_LPMODE_PERIPH(RCC_AHB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->AHB1LPENR |= RCC_AHB1Periph; + } + else + { + RCC->AHB1LPENR &= ~RCC_AHB1Periph; + } +} + +/** + * @brief Enables or disables the AHB2 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_AHBPeriph: specifies the AHB2 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_AHB2Periph_DCMI: DCMI clock + * @arg RCC_AHB2Periph_CRYP: CRYP clock + * @arg RCC_AHB2Periph_HASH: HASH clock + * @arg RCC_AHB2Periph_RNG: RNG clock + * @arg RCC_AHB2Periph_OTG_FS: USB OTG FS clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB2PeriphClockLPModeCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->AHB2LPENR |= RCC_AHB2Periph; + } + else + { + RCC->AHB2LPENR &= ~RCC_AHB2Periph; + } +} + +/** + * @brief Enables or disables the AHB3 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_AHBPeriph: specifies the AHB3 peripheral to gates its clock. + * This parameter must be: RCC_AHB3Periph_FSMC + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB3PeriphClockLPModeCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB3_PERIPH(RCC_AHB3Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->AHB3LPENR |= RCC_AHB3Periph; + } + else + { + RCC->AHB3LPENR &= ~RCC_AHB3Periph; + } +} + +/** + * @brief Enables or disables the APB1 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_APB1Periph: specifies the APB1 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_APB1Periph_TIM2: TIM2 clock + * @arg RCC_APB1Periph_TIM3: TIM3 clock + * @arg RCC_APB1Periph_TIM4: TIM4 clock + * @arg RCC_APB1Periph_TIM5: TIM5 clock + * @arg RCC_APB1Periph_TIM6: TIM6 clock + * @arg RCC_APB1Periph_TIM7: TIM7 clock + * @arg RCC_APB1Periph_TIM12: TIM12 clock + * @arg RCC_APB1Periph_TIM13: TIM13 clock + * @arg RCC_APB1Periph_TIM14: TIM14 clock + * @arg RCC_APB1Periph_WWDG: WWDG clock + * @arg RCC_APB1Periph_SPI2: SPI2 clock + * @arg RCC_APB1Periph_SPI3: SPI3 clock + * @arg RCC_APB1Periph_USART2: USART2 clock + * @arg RCC_APB1Periph_USART3: USART3 clock + * @arg RCC_APB1Periph_UART4: UART4 clock + * @arg RCC_APB1Periph_UART5: UART5 clock + * @arg RCC_APB1Periph_I2C1: I2C1 clock + * @arg RCC_APB1Periph_I2C2: I2C2 clock + * @arg RCC_APB1Periph_I2C3: I2C3 clock + * @arg RCC_APB1Periph_CAN1: CAN1 clock + * @arg RCC_APB1Periph_CAN2: CAN2 clock + * @arg RCC_APB1Periph_PWR: PWR clock + * @arg RCC_APB1Periph_DAC: DAC clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB1PeriphClockLPModeCmd(uint32_t RCC_APB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->APB1LPENR |= RCC_APB1Periph; + } + else + { + RCC->APB1LPENR &= ~RCC_APB1Periph; + } +} + +/** + * @brief Enables or disables the APB2 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_APB2Periph: specifies the APB2 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_APB2Periph_TIM1: TIM1 clock + * @arg RCC_APB2Periph_TIM8: TIM8 clock + * @arg RCC_APB2Periph_USART1: USART1 clock + * @arg RCC_APB2Periph_USART6: USART6 clock + * @arg RCC_APB2Periph_ADC1: ADC1 clock + * @arg RCC_APB2Periph_ADC2: ADC2 clock + * @arg RCC_APB2Periph_ADC3: ADC3 clock + * @arg RCC_APB2Periph_SDIO: SDIO clock + * @arg RCC_APB2Periph_SPI1: SPI1 clock + * @arg RCC_APB2Periph_SYSCFG: SYSCFG clock + * @arg RCC_APB2Periph_TIM9: TIM9 clock + * @arg RCC_APB2Periph_TIM10: TIM10 clock + * @arg RCC_APB2Periph_TIM11: TIM11 clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB2PeriphClockLPModeCmd(uint32_t RCC_APB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->APB2LPENR |= RCC_APB2Periph; + } + else + { + RCC->APB2LPENR &= ~RCC_APB2Periph; + } +} + +/** + * @} + */ + +/** @defgroup RCC_Group4 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified RCC interrupts. + * @param RCC_IT: specifies the RCC interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg RCC_IT_LSIRDY: LSI ready interrupt + * @arg RCC_IT_LSERDY: LSE ready interrupt + * @arg RCC_IT_HSIRDY: HSI ready interrupt + * @arg RCC_IT_HSERDY: HSE ready interrupt + * @arg RCC_IT_PLLRDY: main PLL ready interrupt + * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt + * @param NewState: new state of the specified RCC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_ITConfig(uint8_t RCC_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_IT(RCC_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Perform Byte access to RCC_CIR[14:8] bits to enable the selected interrupts */ + *(__IO uint8_t *) CIR_BYTE2_ADDRESS |= RCC_IT; + } + else + { + /* Perform Byte access to RCC_CIR[14:8] bits to disable the selected interrupts */ + *(__IO uint8_t *) CIR_BYTE2_ADDRESS &= (uint8_t)~RCC_IT; + } +} + +/** + * @brief Checks whether the specified RCC flag is set or not. + * @param RCC_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg RCC_FLAG_HSIRDY: HSI oscillator clock ready + * @arg RCC_FLAG_HSERDY: HSE oscillator clock ready + * @arg RCC_FLAG_PLLRDY: main PLL clock ready + * @arg RCC_FLAG_PLLI2SRDY: PLLI2S clock ready + * @arg RCC_FLAG_LSERDY: LSE oscillator clock ready + * @arg RCC_FLAG_LSIRDY: LSI oscillator clock ready + * @arg RCC_FLAG_BORRST: POR/PDR or BOR reset + * @arg RCC_FLAG_PINRST: Pin reset + * @arg RCC_FLAG_PORRST: POR/PDR reset + * @arg RCC_FLAG_SFTRST: Software reset + * @arg RCC_FLAG_IWDGRST: Independent Watchdog reset + * @arg RCC_FLAG_WWDGRST: Window Watchdog reset + * @arg RCC_FLAG_LPWRRST: Low Power reset + * @retval The new state of RCC_FLAG (SET or RESET). + */ +FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG) +{ + uint32_t tmp = 0; + uint32_t statusreg = 0; + FlagStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_RCC_FLAG(RCC_FLAG)); + + /* Get the RCC register index */ + tmp = RCC_FLAG >> 5; + if (tmp == 1) /* The flag to check is in CR register */ + { + statusreg = RCC->CR; + } + else if (tmp == 2) /* The flag to check is in BDCR register */ + { + statusreg = RCC->BDCR; + } + else /* The flag to check is in CSR register */ + { + statusreg = RCC->CSR; + } + + /* Get the flag position */ + tmp = RCC_FLAG & FLAG_MASK; + if ((statusreg & ((uint32_t)1 << tmp)) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the flag status */ + return bitstatus; +} + +/** + * @brief Clears the RCC reset flags. + * The reset flags are: RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, + * RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST, RCC_FLAG_LPWRRST + * @param None + * @retval None + */ +void RCC_ClearFlag(void) +{ + /* Set RMVF bit to clear the reset flags */ + RCC->CSR |= RCC_CSR_RMVF; +} + +/** + * @brief Checks whether the specified RCC interrupt has occurred or not. + * @param RCC_IT: specifies the RCC interrupt source to check. + * This parameter can be one of the following values: + * @arg RCC_IT_LSIRDY: LSI ready interrupt + * @arg RCC_IT_LSERDY: LSE ready interrupt + * @arg RCC_IT_HSIRDY: HSI ready interrupt + * @arg RCC_IT_HSERDY: HSE ready interrupt + * @arg RCC_IT_PLLRDY: main PLL ready interrupt + * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt + * @arg RCC_IT_CSS: Clock Security System interrupt + * @retval The new state of RCC_IT (SET or RESET). + */ +ITStatus RCC_GetITStatus(uint8_t RCC_IT) +{ + ITStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_RCC_GET_IT(RCC_IT)); + + /* Check the status of the specified RCC interrupt */ + if ((RCC->CIR & RCC_IT) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the RCC_IT status */ + return bitstatus; +} + +/** + * @brief Clears the RCC's interrupt pending bits. + * @param RCC_IT: specifies the interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg RCC_IT_LSIRDY: LSI ready interrupt + * @arg RCC_IT_LSERDY: LSE ready interrupt + * @arg RCC_IT_HSIRDY: HSI ready interrupt + * @arg RCC_IT_HSERDY: HSE ready interrupt + * @arg RCC_IT_PLLRDY: main PLL ready interrupt + * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt + * @arg RCC_IT_CSS: Clock Security System interrupt + * @retval None + */ +void RCC_ClearITPendingBit(uint8_t RCC_IT) +{ + /* Check the parameters */ + assert_param(IS_RCC_CLEAR_IT(RCC_IT)); + + /* Perform Byte access to RCC_CIR[23:16] bits to clear the selected interrupt + pending bits */ + *(__IO uint8_t *) CIR_BYTE3_ADDRESS = RCC_IT; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rng.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rng.c new file mode 100644 index 00000000..99d88b22 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rng.c @@ -0,0 +1,405 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rng.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Random Number Generator (RNG) peripheral: + * - Initialization and Configuration + * - Get 32 bit Random number + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable The RNG controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_RNG, ENABLE) function. + * + * 2. Activate the RNG peripheral using RNG_Cmd() function. + * + * 3. Wait until the 32 bit Random number Generator contains a valid + * random data (using polling/interrupt mode). For more details, + * refer to "Interrupts and flags management functions" module + * description. + * + * 4. Get the 32 bit Random number using RNG_GetRandomNumber() function + * + * 5. To get another 32 bit Random number, go to step 3. + * + * + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_rng.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup RNG + * @brief RNG driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup RNG_Private_Functions + * @{ + */ + +/** @defgroup RNG_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to + - Initialize the RNG peripheral + - Enable or disable the RNG peripheral + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the RNG peripheral registers to their default reset values. + * @param None + * @retval None + */ +void RNG_DeInit(void) +{ + /* Enable RNG reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_RNG, ENABLE); + + /* Release RNG from reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_RNG, DISABLE); +} + +/** + * @brief Enables or disables the RNG peripheral. + * @param NewState: new state of the RNG peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RNG_Cmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the RNG */ + RNG->CR |= RNG_CR_RNGEN; + } + else + { + /* Disable the RNG */ + RNG->CR &= ~RNG_CR_RNGEN; + } +} +/** + * @} + */ + +/** @defgroup RNG_Group2 Get 32 bit Random number function + * @brief Get 32 bit Random number function + * + +@verbatim + =============================================================================== + Get 32 bit Random number function + =============================================================================== + This section provides a function allowing to get the 32 bit Random number + + @note Before to call this function you have to wait till DRDY flag is set, + using RNG_GetFlagStatus(RNG_FLAG_DRDY) function. + +@endverbatim + * @{ + */ + + +/** + * @brief Returns a 32-bit random number. + * + * @note Before to call this function you have to wait till DRDY (data ready) + * flag is set, using RNG_GetFlagStatus(RNG_FLAG_DRDY) function. + * @note Each time the the Random number data is read (using RNG_GetRandomNumber() + * function), the RNG_FLAG_DRDY flag is automatically cleared. + * @note In the case of a seed error, the generation of random numbers is + * interrupted for as long as the SECS bit is '1'. If a number is + * available in the RNG_DR register, it must not be used because it may + * not have enough entropy. In this case, it is recommended to clear the + * SEIS bit(using RNG_ClearFlag(RNG_FLAG_SECS) function), then disable + * and enable the RNG peripheral (using RNG_Cmd() function) to + * reinitialize and restart the RNG. + * @note In the case of a clock error, the RNG is no more able to generate + * random numbers because the PLL48CLK clock is not correct. User have + * to check that the clock controller is correctly configured to provide + * the RNG clock and clear the CEIS bit (using RNG_ClearFlag(RNG_FLAG_CECS) + * function) . The clock error has no impact on the previously generated + * random numbers, and the RNG_DR register contents can be used. + * + * @param None + * @retval 32-bit random number. + */ +uint32_t RNG_GetRandomNumber(void) +{ + /* Return the 32 bit random number from the DR register */ + return RNG->DR; +} + + +/** + * @} + */ + +/** @defgroup RNG_Group3 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the RNG Interrupts and + to get the status and clear flags and Interrupts pending bits. + + The RNG provides 3 Interrupts sources and 3 Flags: + + Flags : + ---------- + 1. RNG_FLAG_DRDY : In the case of the RNG_DR register contains valid + random data. it is cleared by reading the valid data + (using RNG_GetRandomNumber() function). + + 2. RNG_FLAG_CECS : In the case of a seed error detection. + + 3. RNG_FLAG_SECS : In the case of a clock error detection. + + + Interrupts : + ------------ + if enabled, an RNG interrupt is pending : + + 1. In the case of the RNG_DR register contains valid random data. + This interrupt source is cleared once the RNG_DR register has been read + (using RNG_GetRandomNumber() function) until a new valid value is + computed. + + or + 2. In the case of a seed error : One of the following faulty sequences has + been detected: + - More than 64 consecutive bits at the same value (0 or 1) + - More than 32 consecutive alternance of 0 and 1 (0101010101...01) + This interrupt source is cleared using RNG_ClearITPendingBit(RNG_IT_SEI) + function. + + or + 3. In the case of a clock error : the PLL48CLK (RNG peripheral clock source) + was not correctly detected (fPLL48CLK< fHCLK/16). + This interrupt source is cleared using RNG_ClearITPendingBit(RNG_IT_CEI) + function. + @note In this case, User have to check that the clock controller is + correctly configured to provide the RNG clock. + + Managing the RNG controller events : + ------------------------------------ + The user should identify which mode will be used in his application to manage + the RNG controller events: Polling mode or Interrupt mode. + + 1. In the Polling Mode it is advised to use the following functions: + - RNG_GetFlagStatus() : to check if flags events occur. + - RNG_ClearFlag() : to clear the flags events. + + @note RNG_FLAG_DRDY can not be cleared by RNG_ClearFlag(). it is cleared only + by reading the Random number data. + + 2. In the Interrupt Mode it is advised to use the following functions: + - RNG_ITConfig() : to enable or disable the interrupt source. + - RNG_GetITStatus() : to check if Interrupt occurs. + - RNG_ClearITPendingBit() : to clear the Interrupt pending Bit + (corresponding Flag). + + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the RNG interrupt. + * @note The RNG provides 3 interrupt sources, + * - Computed data is ready event (DRDY), and + * - Seed error Interrupt (SEI) and + * - Clock error Interrupt (CEI), + * all these interrupts sources are enabled by setting the IE bit in + * CR register. However, each interrupt have its specific status bit + * (see RNG_GetITStatus() function) and clear bit except the DRDY event + * (see RNG_ClearITPendingBit() function). + * @param NewState: new state of the RNG interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RNG_ITConfig(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the RNG interrupt */ + RNG->CR |= RNG_CR_IE; + } + else + { + /* Disable the RNG interrupt */ + RNG->CR &= ~RNG_CR_IE; + } +} + +/** + * @brief Checks whether the specified RNG flag is set or not. + * @param RNG_FLAG: specifies the RNG flag to check. + * This parameter can be one of the following values: + * @arg RNG_FLAG_DRDY: Data Ready flag. + * @arg RNG_FLAG_CECS: Clock Error Current flag. + * @arg RNG_FLAG_SECS: Seed Error Current flag. + * @retval The new state of RNG_FLAG (SET or RESET). + */ +FlagStatus RNG_GetFlagStatus(uint8_t RNG_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_RNG_GET_FLAG(RNG_FLAG)); + + /* Check the status of the specified RNG flag */ + if ((RNG->SR & RNG_FLAG) != (uint8_t)RESET) + { + /* RNG_FLAG is set */ + bitstatus = SET; + } + else + { + /* RNG_FLAG is reset */ + bitstatus = RESET; + } + /* Return the RNG_FLAG status */ + return bitstatus; +} + + +/** + * @brief Clears the RNG flags. + * @param RNG_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg RNG_FLAG_CECS: Clock Error Current flag. + * @arg RNG_FLAG_SECS: Seed Error Current flag. + * @note RNG_FLAG_DRDY can not be cleared by RNG_ClearFlag() function. + * This flag is cleared only by reading the Random number data (using + * RNG_GetRandomNumber() function). + * @retval None + */ +void RNG_ClearFlag(uint8_t RNG_FLAG) +{ + /* Check the parameters */ + assert_param(IS_RNG_CLEAR_FLAG(RNG_FLAG)); + /* Clear the selected RNG flags */ + RNG->SR = ~(uint32_t)(((uint32_t)RNG_FLAG) << 4); +} + +/** + * @brief Checks whether the specified RNG interrupt has occurred or not. + * @param RNG_IT: specifies the RNG interrupt source to check. + * This parameter can be one of the following values: + * @arg RNG_IT_CEI: Clock Error Interrupt. + * @arg RNG_IT_SEI: Seed Error Interrupt. + * @retval The new state of RNG_IT (SET or RESET). + */ +ITStatus RNG_GetITStatus(uint8_t RNG_IT) +{ + ITStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_RNG_GET_IT(RNG_IT)); + + /* Check the status of the specified RNG interrupt */ + if ((RNG->SR & RNG_IT) != (uint8_t)RESET) + { + /* RNG_IT is set */ + bitstatus = SET; + } + else + { + /* RNG_IT is reset */ + bitstatus = RESET; + } + /* Return the RNG_IT status */ + return bitstatus; +} + + +/** + * @brief Clears the RNG interrupt pending bit(s). + * @param RNG_IT: specifies the RNG interrupt pending bit(s) to clear. + * This parameter can be any combination of the following values: + * @arg RNG_IT_CEI: Clock Error Interrupt. + * @arg RNG_IT_SEI: Seed Error Interrupt. + * @retval None + */ +void RNG_ClearITPendingBit(uint8_t RNG_IT) +{ + /* Check the parameters */ + assert_param(IS_RNG_IT(RNG_IT)); + + /* Clear the selected RNG interrupt pending bit */ + RNG->SR = (uint8_t)~RNG_IT; +} +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + + +/** + * @} + */ + + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rtc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rtc.c new file mode 100644 index 00000000..7ec11f0e --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_rtc.c @@ -0,0 +1,2244 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rtc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Real-Time Clock (RTC) peripheral: + * - Initialization + * - Calendar (Time and Date) configuration + * - Alarms (Alarm A and Alarm B) configuration + * - WakeUp Timer configuration + * - Daylight Saving configuration + * - Output pin Configuration + * - Coarse Calibration configuration + * - TimeStamp configuration + * - Tampers configuration + * - Backup Data Registers configuration + * - RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * Backup Domain Operating Condition + * =================================================================== + * The real-time clock (RTC), the RTC backup registers, and the backup + * SRAM (BKP SRAM) can be powered from the VBAT voltage when the main + * VDD supply is powered off. + * To retain the content of the RTC backup registers, backup SRAM, + * and supply the RTC when VDD is turned off, VBAT pin can be connected + * to an optional standby voltage supplied by a battery or by another + * source. + * + * To allow the RTC to operate even when the main digital supply (VDD) + * is turned off, the VBAT pin powers the following blocks: + * 1 - The RTC + * 2 - The LSE oscillator + * 3 - The backup SRAM when the low power backup regulator is enabled + * 4 - PC13 to PC15 I/Os, plus PI8 I/O (when available) + * + * When the backup domain is supplied by VDD (analog switch connected + * to VDD), the following functions are available: + * 1 - PC14 and PC15 can be used as either GPIO or LSE pins + * 2 - PC13 can be used as a GPIO or as the RTC_AF1 pin + * 3 - PI8 can be used as a GPIO or as the RTC_AF2 pin + * + * When the backup domain is supplied by VBAT (analog switch connected + * to VBAT because VDD is not present), the following functions are available: + * 1 - PC14 and PC15 can be used as LSE pins only + * 2 - PC13 can be used as the RTC_AF1 pin + * 3 - PI8 can be used as the RTC_AF2 pin + * + * =================================================================== + * Backup Domain Reset + * =================================================================== + * The backup domain reset sets all RTC registers and the RCC_BDCR + * register to their reset values. The BKPSRAM is not affected by this + * reset. The only way of resetting the BKPSRAM is through the Flash + * interface by requesting a protection level change from 1 to 0. + * A backup domain reset is generated when one of the following events + * occurs: + * 1 - Software reset, triggered by setting the BDRST bit in the + * RCC Backup domain control register (RCC_BDCR). You can use the + * RCC_BackupResetCmd(). + * 2 - VDD or VBAT power on, if both supplies have previously been + * powered off. + * + * =================================================================== + * Backup Domain Access + * =================================================================== + * After reset, the backup domain (RTC registers, RTC backup data + * registers and backup SRAM) is protected against possible unwanted + * write accesses. + * To enable access to the RTC Domain and RTC registers, proceed as follows: + * - Enable the Power Controller (PWR) APB1 interface clock using the + * RCC_APB1PeriphClockCmd() function. + * - Enable access to RTC domain using the PWR_BackupAccessCmd() function. + * - Select the RTC clock source using the RCC_RTCCLKConfig() function. + * - Enable RTC Clock using the RCC_RTCCLKCmd() function. + * + * =================================================================== + * RTC Driver: how to use it + * =================================================================== + * - Enable the RTC domain access (see description in the section above) + * - Configure the RTC Prescaler (Asynchronous and Synchronous) and + * RTC hour format using the RTC_Init() function. + * + * Time and Date configuration + * =========================== + * - To configure the RTC Calendar (Time and Date) use the RTC_SetTime() + * and RTC_SetDate() functions. + * - To read the RTC Calendar, use the RTC_GetTime() and RTC_GetDate() + * functions. + * - Use the RTC_DayLightSavingConfig() function to add or sub one + * hour to the RTC Calendar. + * + * Alarm configuration + * =================== + * - To configure the RTC Alarm use the RTC_SetAlarm() function. + * - Enable the selected RTC Alarm using the RTC_AlarmCmd() function + * - To read the RTC Alarm, use the RTC_GetAlarm() function. + * + * RTC Wakeup configuration + * ======================== + * - Configure the RTC Wakeup Clock source use the RTC_WakeUpClockConfig() + * function. + * - Configure the RTC WakeUp Counter using the RTC_SetWakeUpCounter() + * function + * - Enable the RTC WakeUp using the RTC_WakeUpCmd() function + * - To read the RTC WakeUp Counter register, use the RTC_GetWakeUpCounter() + * function. + * + * Outputs configuration + * ===================== + * The RTC has 2 different outputs: + * - AFO_ALARM: this output is used to manage the RTC Alarm A, Alarm B + * and WaKeUp signals. + * To output the selected RTC signal on RTC_AF1 pin, use the + * RTC_OutputConfig() function. + * - AFO_CALIB: this output is used to manage the RTC Clock divided + * by 64 (512Hz) signal. + * To output the RTC Clock on RTC_AF1 pin, use the RTC_CalibOutputCmd() + * function. + * + * Coarse Calibration configuration + * ================================= + * - Configure the RTC Coarse Calibration Value and the corresponding + * sign using the RTC_CoarseCalibConfig() function. + * - Enable the RTC Coarse Calibration using the RTC_CoarseCalibCmd() + * function + * + * TimeStamp configuration + * ======================= + * - Configure the RTC_AF1 trigger and enables the RTC TimeStamp + * using the RTC_TimeStampCmd() function. + * - To read the RTC TimeStamp Time and Date register, use the + * RTC_GetTimeStamp() function. + * - The TAMPER1 alternate function can be mapped either to RTC_AF1(PC13) + * or RTC_AF2 (PI8) depending on the value of TAMP1INSEL bit in + * RTC_TAFCR register. You can use the RTC_TamperPinSelection() + * function to select the corresponding pin. + * + * Tamper configuration + * ==================== + * - Configure the RTC Tamper trigger using the RTC_TamperConfig() + * function. + * - Enable the RTC Tamper using the RTC_TamperCmd() function. + * - The TIMESTAMP alternate function can be mapped to either RTC_AF1 + * or RTC_AF2 depending on the value of the TSINSEL bit in the + * RTC_TAFCR register. You can use the RTC_TimeStampPinSelection() + * function to select the corresponding pin. + * + * Backup Data Registers configuration + * =================================== + * - To write to the RTC Backup Data registers, use the RTC_WriteBackupRegister() + * function. + * - To read the RTC Backup Data registers, use the RTC_ReadBackupRegister() + * function. + * + * =================================================================== + * RTC and low power modes + * =================================================================== + * The MCU can be woken up from a low power mode by an RTC alternate + * function. + * The RTC alternate functions are the RTC alarms (Alarm A and Alarm B), + * RTC wakeup, RTC tamper event detection and RTC time stamp event detection. + * These RTC alternate functions can wake up the system from the Stop + * and Standby lowpower modes. + * The system can also wake up from low power modes without depending + * on an external interrupt (Auto-wakeup mode), by using the RTC alarm + * or the RTC wakeup events. + * The RTC provides a programmable time base for waking up from the + * Stop or Standby mode at regular intervals. + * Wakeup from STOP and Standby modes is possible only when the RTC + * clock source is LSE or LSI. + * + * =================================================================== + * Selection of RTC_AF1 alternate functions + * =================================================================== + * The RTC_AF1 pin (PC13) can be used for the following purposes: + * - AFO_ALARM output + * - AFO_CALIB output + * - AFI_TAMPER + * - AFI_TIMESTAMP + * + * +-------------------------------------------------------------------------------------------------------------+ + * | Pin |AFO_ALARM |AFO_CALIB |AFI_TAMPER |AFI_TIMESTAMP | TAMP1INSEL | TSINSEL |ALARMOUTTYPE | + * | configuration | ENABLED | ENABLED | ENABLED | ENABLED |TAMPER1 pin |TIMESTAMP pin | AFO_ALARM | + * | and function | | | | | selection | selection |Configuration | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | Alarm out | | | | | Don't | Don't | | + * | output OD | 1 |Don't care|Don't care | Don't care | care | care | 0 | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | Alarm out | | | | | Don't | Don't | | + * | output PP | 1 |Don't care|Don't care | Don't care | care | care | 1 | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | Calibration out | | | | | Don't | Don't | | + * | output PP | 0 | 1 |Don't care | Don't care | care | care | Don't care | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | TAMPER input | | | | | | Don't | | + * | floating | 0 | 0 | 1 | 0 | 0 | care | Don't care | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | TIMESTAMP and | | | | | | | | + * | TAMPER input | 0 | 0 | 1 | 1 | 0 | 0 | Don't care | + * | floating | | | | | | | | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | TIMESTAMP input | | | | | Don't | | | + * | floating | 0 | 0 | 0 | 1 | care | 0 | Don't care | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | Standard GPIO | 0 | 0 | 0 | 0 | Don't care | Don't care | Don't care | + * +-------------------------------------------------------------------------------------------------------------+ + * + * + * =================================================================== + * Selection of RTC_AF2 alternate functions + * =================================================================== + * The RTC_AF2 pin (PI8) can be used for the following purposes: + * - AFI_TAMPER + * - AFI_TIMESTAMP + * + * +---------------------------------------------------------------------------------------+ + * | Pin |AFI_TAMPER |AFI_TIMESTAMP | TAMP1INSEL | TSINSEL |ALARMOUTTYPE | + * | configuration | ENABLED | ENABLED |TAMPER1 pin |TIMESTAMP pin | AFO_ALARM | + * | and function | | | selection | selection |Configuration | + * |-----------------|-----------|--------------|------------|--------------|--------------| + * | TAMPER input | | | | Don't | | + * | floating | 1 | 0 | 1 | care | Don't care | + * |-----------------|-----------|--------------|------------|--------------|--------------| + * | TIMESTAMP and | | | | | | + * | TAMPER input | 1 | 1 | 1 | 1 | Don't care | + * | floating | | | | | | + * |-----------------|-----------|--------------|------------|--------------|--------------| + * | TIMESTAMP input | | | Don't | | | + * | floating | 0 | 1 | care | 1 | Don't care | + * |-----------------|-----------|--------------|------------|--------------|--------------| + * | Standard GPIO | 0 | 0 | Don't care | Don't care | Don't care | + * +---------------------------------------------------------------------------------------+ + * + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_rtc.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup RTC + * @brief RTC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* Masks Definition */ +#define RTC_TR_RESERVED_MASK ((uint32_t)0x007F7F7F) +#define RTC_DR_RESERVED_MASK ((uint32_t)0x00FFFF3F) +#define RTC_INIT_MASK ((uint32_t)0xFFFFFFFF) +#define RTC_RSF_MASK ((uint32_t)0xFFFFFF5F) +#define RTC_FLAGS_MASK ((uint32_t)(RTC_FLAG_TSOVF | RTC_FLAG_TSF | RTC_FLAG_WUTF | \ + RTC_FLAG_ALRBF | RTC_FLAG_ALRAF | RTC_FLAG_INITF | \ + RTC_FLAG_RSF | RTC_FLAG_INITS | RTC_FLAG_WUTWF | \ + RTC_FLAG_ALRBWF | RTC_FLAG_ALRAWF | RTC_FLAG_TAMP1F )) + +#define INITMODE_TIMEOUT ((uint32_t) 0x00010000) +#define SYNCHRO_TIMEOUT ((uint32_t) 0x00008000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +static uint8_t RTC_ByteToBcd2(uint8_t Value); +static uint8_t RTC_Bcd2ToByte(uint8_t Value); + +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup RTC_Private_Functions + * @{ + */ + +/** @defgroup RTC_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + + This section provide functions allowing to initialize and configure the RTC + Prescaler (Synchronous and Asynchronous), RTC Hour format, disable RTC registers + Write protection, enter and exit the RTC initialization mode, RTC registers + synchronization check and reference clock detection enable. + + 1. The RTC Prescaler is programmed to generate the RTC 1Hz time base. It is + split into 2 programmable prescalers to minimize power consumption. + - A 7-bit asynchronous prescaler and A 13-bit synchronous prescaler. + - When both prescalers are used, it is recommended to configure the asynchronous + prescaler to a high value to minimize consumption. + + 2. All RTC registers are Write protected. Writing to the RTC registers + is enabled by writing a key into the Write Protection register, RTC_WPR. + + 3. To Configure the RTC Calendar, user application should enter initialization + mode. In this mode, the calendar counter is stopped and its value can be + updated. When the initialization sequence is complete, the calendar restarts + counting after 4 RTCCLK cycles. + + 4. To read the calendar through the shadow registers after Calendar initialization, + calendar update or after wakeup from low power modes the software must first + clear the RSF flag. The software must then wait until it is set again before + reading the calendar, which means that the calendar registers have been + correctly copied into the RTC_TR and RTC_DR shadow registers. + The RTC_WaitForSynchro() function implements the above software sequence + (RSF clear and RSF check). + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the RTC registers to their default reset values. + * @note This function doesn't reset the RTC Clock source and RTC Backup Data + * registers. + * @param None + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC registers are deinitialized + * - ERROR: RTC registers are not deinitialized + */ +ErrorStatus RTC_DeInit(void) +{ + __IO uint32_t wutcounter = 0x00; + uint32_t wutwfstatus = 0x00; + ErrorStatus status = ERROR; + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Reset TR, DR and CR registers */ + RTC->TR = (uint32_t)0x00000000; + RTC->DR = (uint32_t)0x00002101; + /* Reset All CR bits except CR[2:0] */ + RTC->CR &= (uint32_t)0x00000007; + + /* Wait till RTC WUTWF flag is set and if Time out is reached exit */ + do + { + wutwfstatus = RTC->ISR & RTC_ISR_WUTWF; + wutcounter++; + } while((wutcounter != INITMODE_TIMEOUT) && (wutwfstatus == 0x00)); + + if ((RTC->ISR & RTC_ISR_WUTWF) == RESET) + { + status = ERROR; + } + else + { + /* Reset all RTC CR register bits */ + RTC->CR &= (uint32_t)0x00000000; + RTC->WUTR = (uint32_t)0x0000FFFF; + RTC->PRER = (uint32_t)0x007F00FF; + RTC->CALIBR = (uint32_t)0x00000000; + RTC->ALRMAR = (uint32_t)0x00000000; + RTC->ALRMBR = (uint32_t)0x00000000; + + /* Reset ISR register and exit initialization mode */ + RTC->ISR = (uint32_t)0x00000000; + + /* Reset Tamper and alternate functions configuration register */ + RTC->TAFCR = 0x00000000; + + if(RTC_WaitForSynchro() == ERROR) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + } + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Initializes the RTC registers according to the specified parameters + * in RTC_InitStruct. + * @param RTC_InitStruct: pointer to a RTC_InitTypeDef structure that contains + * the configuration information for the RTC peripheral. + * @note The RTC Prescaler register is write protected and can be written in + * initialization mode only. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC registers are initialized + * - ERROR: RTC registers are not initialized + */ +ErrorStatus RTC_Init(RTC_InitTypeDef* RTC_InitStruct) +{ + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_HOUR_FORMAT(RTC_InitStruct->RTC_HourFormat)); + assert_param(IS_RTC_ASYNCH_PREDIV(RTC_InitStruct->RTC_AsynchPrediv)); + assert_param(IS_RTC_SYNCH_PREDIV(RTC_InitStruct->RTC_SynchPrediv)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Clear RTC CR FMT Bit */ + RTC->CR &= ((uint32_t)~(RTC_CR_FMT)); + /* Set RTC_CR register */ + RTC->CR |= ((uint32_t)(RTC_InitStruct->RTC_HourFormat)); + + /* Configure the RTC PRER */ + RTC->PRER = (uint32_t)(RTC_InitStruct->RTC_SynchPrediv); + RTC->PRER |= (uint32_t)(RTC_InitStruct->RTC_AsynchPrediv << 16); + + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + status = SUCCESS; + } + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Fills each RTC_InitStruct member with its default value. + * @param RTC_InitStruct: pointer to a RTC_InitTypeDef structure which will be + * initialized. + * @retval None + */ +void RTC_StructInit(RTC_InitTypeDef* RTC_InitStruct) +{ + /* Initialize the RTC_HourFormat member */ + RTC_InitStruct->RTC_HourFormat = RTC_HourFormat_24; + + /* Initialize the RTC_AsynchPrediv member */ + RTC_InitStruct->RTC_AsynchPrediv = (uint32_t)0x7F; + + /* Initialize the RTC_SynchPrediv member */ + RTC_InitStruct->RTC_SynchPrediv = (uint32_t)0xFF; +} + +/** + * @brief Enables or disables the RTC registers write protection. + * @note All the RTC registers are write protected except for RTC_ISR[13:8], + * RTC_TAFCR and RTC_BKPxR. + * @note Writing a wrong key reactivates the write protection. + * @note The protection mechanism is not affected by system reset. + * @param NewState: new state of the write protection. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_WriteProtectionCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + } + else + { + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + } +} + +/** + * @brief Enters the RTC Initialization mode. + * @note The RTC Initialization mode is write protected, use the + * RTC_WriteProtectionCmd(DISABLE) before calling this function. + * @param None + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC is in Init mode + * - ERROR: RTC is not in Init mode + */ +ErrorStatus RTC_EnterInitMode(void) +{ + __IO uint32_t initcounter = 0x00; + ErrorStatus status = ERROR; + uint32_t initstatus = 0x00; + + /* Check if the Initialization mode is set */ + if ((RTC->ISR & RTC_ISR_INITF) == (uint32_t)RESET) + { + /* Set the Initialization mode */ + RTC->ISR = (uint32_t)RTC_INIT_MASK; + + /* Wait till RTC is in INIT state and if Time out is reached exit */ + do + { + initstatus = RTC->ISR & RTC_ISR_INITF; + initcounter++; + } while((initcounter != INITMODE_TIMEOUT) && (initstatus == 0x00)); + + if ((RTC->ISR & RTC_ISR_INITF) != RESET) + { + status = SUCCESS; + } + else + { + status = ERROR; + } + } + else + { + status = SUCCESS; + } + + return (status); +} + +/** + * @brief Exits the RTC Initialization mode. + * @note When the initialization sequence is complete, the calendar restarts + * counting after 4 RTCCLK cycles. + * @note The RTC Initialization mode is write protected, use the + * RTC_WriteProtectionCmd(DISABLE) before calling this function. + * @param None + * @retval None + */ +void RTC_ExitInitMode(void) +{ + /* Exit Initialization mode */ + RTC->ISR &= (uint32_t)~RTC_ISR_INIT; +} + +/** + * @brief Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are + * synchronized with RTC APB clock. + * @note The RTC Resynchronization mode is write protected, use the + * RTC_WriteProtectionCmd(DISABLE) before calling this function. + * @note To read the calendar through the shadow registers after Calendar + * initialization, calendar update or after wakeup from low power modes + * the software must first clear the RSF flag. + * The software must then wait until it is set again before reading + * the calendar, which means that the calendar registers have been + * correctly copied into the RTC_TR and RTC_DR shadow registers. + * @param None + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC registers are synchronised + * - ERROR: RTC registers are not synchronised + */ +ErrorStatus RTC_WaitForSynchro(void) +{ + __IO uint32_t synchrocounter = 0; + ErrorStatus status = ERROR; + uint32_t synchrostatus = 0x00; + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Clear RSF flag */ + RTC->ISR &= (uint32_t)RTC_RSF_MASK; + + /* Wait the registers to be synchronised */ + do + { + synchrostatus = RTC->ISR & RTC_ISR_RSF; + synchrocounter++; + } while((synchrocounter != SYNCHRO_TIMEOUT) && (synchrostatus == 0x00)); + + if ((RTC->ISR & RTC_ISR_RSF) != RESET) + { + status = SUCCESS; + } + else + { + status = ERROR; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return (status); +} + +/** + * @brief Enables or disables the RTC reference clock detection. + * @param NewState: new state of the RTC reference clock. + * This parameter can be: ENABLE or DISABLE. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC reference clock detection is enabled + * - ERROR: RTC reference clock detection is disabled + */ +ErrorStatus RTC_RefClockCmd(FunctionalState NewState) +{ + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + if (NewState != DISABLE) + { + /* Enable the RTC reference clock detection */ + RTC->CR |= RTC_CR_REFCKON; + } + else + { + /* Disable the RTC reference clock detection */ + RTC->CR &= ~RTC_CR_REFCKON; + } + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + status = SUCCESS; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @} + */ + +/** @defgroup RTC_Group2 Time and Date configuration functions + * @brief Time and Date configuration functions + * +@verbatim + =============================================================================== + Time and Date configuration functions + =============================================================================== + + This section provide functions allowing to program and read the RTC Calendar + (Time and Date). + +@endverbatim + * @{ + */ + +/** + * @brief Set the RTC current time. + * @param RTC_Format: specifies the format of the entered parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_TimeStruct: pointer to a RTC_TimeTypeDef structure that contains + * the time configuration information for the RTC. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Time register is configured + * - ERROR: RTC Time register is not configured + */ +ErrorStatus RTC_SetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct) +{ + uint32_t tmpreg = 0; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + if (RTC_Format == RTC_Format_BIN) + { + if ((RTC->CR & RTC_CR_FMT) != (uint32_t)RESET) + { + assert_param(IS_RTC_HOUR12(RTC_TimeStruct->RTC_Hours)); + assert_param(IS_RTC_H12(RTC_TimeStruct->RTC_H12)); + } + else + { + RTC_TimeStruct->RTC_H12 = 0x00; + assert_param(IS_RTC_HOUR24(RTC_TimeStruct->RTC_Hours)); + } + assert_param(IS_RTC_MINUTES(RTC_TimeStruct->RTC_Minutes)); + assert_param(IS_RTC_SECONDS(RTC_TimeStruct->RTC_Seconds)); + } + else + { + if ((RTC->CR & RTC_CR_FMT) != (uint32_t)RESET) + { + tmpreg = RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Hours); + assert_param(IS_RTC_HOUR12(tmpreg)); + assert_param(IS_RTC_H12(RTC_TimeStruct->RTC_H12)); + } + else + { + RTC_TimeStruct->RTC_H12 = 0x00; + assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Hours))); + } + assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Minutes))); + assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Seconds))); + } + + /* Check the input parameters format */ + if (RTC_Format != RTC_Format_BIN) + { + tmpreg = (((uint32_t)(RTC_TimeStruct->RTC_Hours) << 16) | \ + ((uint32_t)(RTC_TimeStruct->RTC_Minutes) << 8) | \ + ((uint32_t)RTC_TimeStruct->RTC_Seconds) | \ + ((uint32_t)(RTC_TimeStruct->RTC_H12) << 16)); + } + else + { + tmpreg = (uint32_t)(((uint32_t)RTC_ByteToBcd2(RTC_TimeStruct->RTC_Hours) << 16) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_TimeStruct->RTC_Minutes) << 8) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_TimeStruct->RTC_Seconds)) | \ + (((uint32_t)RTC_TimeStruct->RTC_H12) << 16)); + } + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Set the RTC_TR register */ + RTC->TR = (uint32_t)(tmpreg & RTC_TR_RESERVED_MASK); + + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + if(RTC_WaitForSynchro() == ERROR) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + + } + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Fills each RTC_TimeStruct member with its default value + * (Time = 00h:00min:00sec). + * @param RTC_TimeStruct: pointer to a RTC_TimeTypeDef structure which will be + * initialized. + * @retval None + */ +void RTC_TimeStructInit(RTC_TimeTypeDef* RTC_TimeStruct) +{ + /* Time = 00h:00min:00sec */ + RTC_TimeStruct->RTC_H12 = RTC_H12_AM; + RTC_TimeStruct->RTC_Hours = 0; + RTC_TimeStruct->RTC_Minutes = 0; + RTC_TimeStruct->RTC_Seconds = 0; +} + +/** + * @brief Get the RTC current Time. + * @param RTC_Format: specifies the format of the returned parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_TimeStruct: pointer to a RTC_TimeTypeDef structure that will + * contain the returned current time configuration. + * @retval None + */ +void RTC_GetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + /* Get the RTC_TR register */ + tmpreg = (uint32_t)(RTC->TR & RTC_TR_RESERVED_MASK); + + /* Fill the structure fields with the read parameters */ + RTC_TimeStruct->RTC_Hours = (uint8_t)((tmpreg & (RTC_TR_HT | RTC_TR_HU)) >> 16); + RTC_TimeStruct->RTC_Minutes = (uint8_t)((tmpreg & (RTC_TR_MNT | RTC_TR_MNU)) >>8); + RTC_TimeStruct->RTC_Seconds = (uint8_t)(tmpreg & (RTC_TR_ST | RTC_TR_SU)); + RTC_TimeStruct->RTC_H12 = (uint8_t)((tmpreg & (RTC_TR_PM)) >> 16); + + /* Check the input parameters format */ + if (RTC_Format == RTC_Format_BIN) + { + /* Convert the structure parameters to Binary format */ + RTC_TimeStruct->RTC_Hours = (uint8_t)RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Hours); + RTC_TimeStruct->RTC_Minutes = (uint8_t)RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Minutes); + RTC_TimeStruct->RTC_Seconds = (uint8_t)RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Seconds); + } +} + +/** + * @brief Set the RTC current date. + * @param RTC_Format: specifies the format of the entered parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_DateStruct: pointer to a RTC_DateTypeDef structure that contains + * the date configuration information for the RTC. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Date register is configured + * - ERROR: RTC Date register is not configured + */ +ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct) +{ + uint32_t tmpreg = 0; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + if ((RTC_Format == RTC_Format_BIN) && ((RTC_DateStruct->RTC_Month & 0x10) == 0x10)) + { + RTC_DateStruct->RTC_Month = (RTC_DateStruct->RTC_Month & (uint32_t)~(0x10)) + 0x0A; + } + if (RTC_Format == RTC_Format_BIN) + { + assert_param(IS_RTC_YEAR(RTC_DateStruct->RTC_Year)); + assert_param(IS_RTC_MONTH(RTC_DateStruct->RTC_Month)); + assert_param(IS_RTC_DATE(RTC_DateStruct->RTC_Date)); + } + else + { + assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(RTC_DateStruct->RTC_Year))); + tmpreg = RTC_Bcd2ToByte(RTC_DateStruct->RTC_Month); + assert_param(IS_RTC_MONTH(tmpreg)); + tmpreg = RTC_Bcd2ToByte(RTC_DateStruct->RTC_Date); + assert_param(IS_RTC_DATE(tmpreg)); + } + assert_param(IS_RTC_WEEKDAY(RTC_DateStruct->RTC_WeekDay)); + + /* Check the input parameters format */ + if (RTC_Format != RTC_Format_BIN) + { + tmpreg = ((((uint32_t)RTC_DateStruct->RTC_Year) << 16) | \ + (((uint32_t)RTC_DateStruct->RTC_Month) << 8) | \ + ((uint32_t)RTC_DateStruct->RTC_Date) | \ + (((uint32_t)RTC_DateStruct->RTC_WeekDay) << 13)); + } + else + { + tmpreg = (((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->RTC_Year) << 16) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->RTC_Month) << 8) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->RTC_Date)) | \ + ((uint32_t)RTC_DateStruct->RTC_WeekDay << 13)); + } + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Set the RTC_DR register */ + RTC->DR = (uint32_t)(tmpreg & RTC_DR_RESERVED_MASK); + + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + if(RTC_WaitForSynchro() == ERROR) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + } + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Fills each RTC_DateStruct member with its default value + * (Monday, January 01 xx00). + * @param RTC_DateStruct: pointer to a RTC_DateTypeDef structure which will be + * initialized. + * @retval None + */ +void RTC_DateStructInit(RTC_DateTypeDef* RTC_DateStruct) +{ + /* Monday, January 01 xx00 */ + RTC_DateStruct->RTC_WeekDay = RTC_Weekday_Monday; + RTC_DateStruct->RTC_Date = 1; + RTC_DateStruct->RTC_Month = RTC_Month_January; + RTC_DateStruct->RTC_Year = 0; +} + +/** + * @brief Get the RTC current date. + * @param RTC_Format: specifies the format of the returned parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_DateStruct: pointer to a RTC_DateTypeDef structure that will + * contain the returned current date configuration. + * @retval None + */ +void RTC_GetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + /* Get the RTC_TR register */ + tmpreg = (uint32_t)(RTC->DR & RTC_DR_RESERVED_MASK); + + /* Fill the structure fields with the read parameters */ + RTC_DateStruct->RTC_Year = (uint8_t)((tmpreg & (RTC_DR_YT | RTC_DR_YU)) >> 16); + RTC_DateStruct->RTC_Month = (uint8_t)((tmpreg & (RTC_DR_MT | RTC_DR_MU)) >> 8); + RTC_DateStruct->RTC_Date = (uint8_t)(tmpreg & (RTC_DR_DT | RTC_DR_DU)); + RTC_DateStruct->RTC_WeekDay = (uint8_t)((tmpreg & (RTC_DR_WDU)) >> 13); + + /* Check the input parameters format */ + if (RTC_Format == RTC_Format_BIN) + { + /* Convert the structure parameters to Binary format */ + RTC_DateStruct->RTC_Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Year); + RTC_DateStruct->RTC_Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Month); + RTC_DateStruct->RTC_Date = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Date); + } +} + +/** + * @} + */ + +/** @defgroup RTC_Group3 Alarms configuration functions + * @brief Alarms (Alarm A and Alarm B) configuration functions + * +@verbatim + =============================================================================== + Alarms (Alarm A and Alarm B) configuration functions + =============================================================================== + + This section provide functions allowing to program and read the RTC Alarms. + +@endverbatim + * @{ + */ + +/** + * @brief Set the specified RTC Alarm. + * @note The Alarm register can only be written when the corresponding Alarm + * is disabled (Use the RTC_AlarmCmd(DISABLE)). + * @param RTC_Format: specifies the format of the returned parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_Alarm: specifies the alarm to be configured. + * This parameter can be one of the following values: + * @arg RTC_Alarm_A: to select Alarm A + * @arg RTC_Alarm_B: to select Alarm B + * @param RTC_AlarmStruct: pointer to a RTC_AlarmTypeDef structure that + * contains the alarm configuration parameters. + * @retval None + */ +void RTC_SetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + assert_param(IS_RTC_ALARM(RTC_Alarm)); + assert_param(IS_ALARM_MASK(RTC_AlarmStruct->RTC_AlarmMask)); + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(RTC_AlarmStruct->RTC_AlarmDateWeekDaySel)); + + if (RTC_Format == RTC_Format_BIN) + { + if ((RTC->CR & RTC_CR_FMT) != (uint32_t)RESET) + { + assert_param(IS_RTC_HOUR12(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours)); + assert_param(IS_RTC_H12(RTC_AlarmStruct->RTC_AlarmTime.RTC_H12)); + } + else + { + RTC_AlarmStruct->RTC_AlarmTime.RTC_H12 = 0x00; + assert_param(IS_RTC_HOUR24(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours)); + } + assert_param(IS_RTC_MINUTES(RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes)); + assert_param(IS_RTC_SECONDS(RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds)); + + if(RTC_AlarmStruct->RTC_AlarmDateWeekDaySel == RTC_AlarmDateWeekDaySel_Date) + { + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_AlarmStruct->RTC_AlarmDateWeekDay)); + } + else + { + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_AlarmStruct->RTC_AlarmDateWeekDay)); + } + } + else + { + if ((RTC->CR & RTC_CR_FMT) != (uint32_t)RESET) + { + tmpreg = RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours); + assert_param(IS_RTC_HOUR12(tmpreg)); + assert_param(IS_RTC_H12(RTC_AlarmStruct->RTC_AlarmTime.RTC_H12)); + } + else + { + RTC_AlarmStruct->RTC_AlarmTime.RTC_H12 = 0x00; + assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours))); + } + + assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes))); + assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds))); + + if(RTC_AlarmStruct->RTC_AlarmDateWeekDaySel == RTC_AlarmDateWeekDaySel_Date) + { + tmpreg = RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmDateWeekDay); + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(tmpreg)); + } + else + { + tmpreg = RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmDateWeekDay); + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(tmpreg)); + } + } + + /* Check the input parameters format */ + if (RTC_Format != RTC_Format_BIN) + { + tmpreg = (((uint32_t)(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours) << 16) | \ + ((uint32_t)(RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes) << 8) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds) | \ + ((uint32_t)(RTC_AlarmStruct->RTC_AlarmTime.RTC_H12) << 16) | \ + ((uint32_t)(RTC_AlarmStruct->RTC_AlarmDateWeekDay) << 24) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmDateWeekDaySel) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmMask)); + } + else + { + tmpreg = (((uint32_t)RTC_ByteToBcd2(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours) << 16) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes) << 8) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds)) | \ + ((uint32_t)(RTC_AlarmStruct->RTC_AlarmTime.RTC_H12) << 16) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_AlarmStruct->RTC_AlarmDateWeekDay) << 24) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmDateWeekDaySel) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmMask)); + } + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Configure the Alarm register */ + if (RTC_Alarm == RTC_Alarm_A) + { + RTC->ALRMAR = (uint32_t)tmpreg; + } + else + { + RTC->ALRMBR = (uint32_t)tmpreg; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Fills each RTC_AlarmStruct member with its default value + * (Time = 00h:00mn:00sec / Date = 1st day of the month/Mask = + * all fields are masked). + * @param RTC_AlarmStruct: pointer to a @ref RTC_AlarmTypeDef structure which + * will be initialized. + * @retval None + */ +void RTC_AlarmStructInit(RTC_AlarmTypeDef* RTC_AlarmStruct) +{ + /* Alarm Time Settings : Time = 00h:00mn:00sec */ + RTC_AlarmStruct->RTC_AlarmTime.RTC_H12 = RTC_H12_AM; + RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours = 0; + RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes = 0; + RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds = 0; + + /* Alarm Date Settings : Date = 1st day of the month */ + RTC_AlarmStruct->RTC_AlarmDateWeekDaySel = RTC_AlarmDateWeekDaySel_Date; + RTC_AlarmStruct->RTC_AlarmDateWeekDay = 1; + + /* Alarm Masks Settings : Mask = all fields are not masked */ + RTC_AlarmStruct->RTC_AlarmMask = RTC_AlarmMask_None; +} + +/** + * @brief Get the RTC Alarm value and masks. + * @param RTC_Format: specifies the format of the output parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_Alarm: specifies the alarm to be read. + * This parameter can be one of the following values: + * @arg RTC_Alarm_A: to select Alarm A + * @arg RTC_Alarm_B: to select Alarm B + * @param RTC_AlarmStruct: pointer to a RTC_AlarmTypeDef structure that will + * contains the output alarm configuration values. + * @retval None + */ +void RTC_GetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + assert_param(IS_RTC_ALARM(RTC_Alarm)); + + /* Get the RTC_ALRMxR register */ + if (RTC_Alarm == RTC_Alarm_A) + { + tmpreg = (uint32_t)(RTC->ALRMAR); + } + else + { + tmpreg = (uint32_t)(RTC->ALRMBR); + } + + /* Fill the structure with the read parameters */ + RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours = (uint32_t)((tmpreg & (RTC_ALRMAR_HT | \ + RTC_ALRMAR_HU)) >> 16); + RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes = (uint32_t)((tmpreg & (RTC_ALRMAR_MNT | \ + RTC_ALRMAR_MNU)) >> 8); + RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds = (uint32_t)(tmpreg & (RTC_ALRMAR_ST | \ + RTC_ALRMAR_SU)); + RTC_AlarmStruct->RTC_AlarmTime.RTC_H12 = (uint32_t)((tmpreg & RTC_ALRMAR_PM) >> 16); + RTC_AlarmStruct->RTC_AlarmDateWeekDay = (uint32_t)((tmpreg & (RTC_ALRMAR_DT | RTC_ALRMAR_DU)) >> 24); + RTC_AlarmStruct->RTC_AlarmDateWeekDaySel = (uint32_t)(tmpreg & RTC_ALRMAR_WDSEL); + RTC_AlarmStruct->RTC_AlarmMask = (uint32_t)(tmpreg & RTC_AlarmMask_All); + + if (RTC_Format == RTC_Format_BIN) + { + RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours = RTC_Bcd2ToByte(RTC_AlarmStruct-> \ + RTC_AlarmTime.RTC_Hours); + RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes = RTC_Bcd2ToByte(RTC_AlarmStruct-> \ + RTC_AlarmTime.RTC_Minutes); + RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds = RTC_Bcd2ToByte(RTC_AlarmStruct-> \ + RTC_AlarmTime.RTC_Seconds); + RTC_AlarmStruct->RTC_AlarmDateWeekDay = RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmDateWeekDay); + } +} + +/** + * @brief Enables or disables the specified RTC Alarm. + * @param RTC_Alarm: specifies the alarm to be configured. + * This parameter can be any combination of the following values: + * @arg RTC_Alarm_A: to select Alarm A + * @arg RTC_Alarm_B: to select Alarm B + * @param NewState: new state of the specified alarm. + * This parameter can be: ENABLE or DISABLE. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Alarm is enabled/disabled + * - ERROR: RTC Alarm is not enabled/disabled + */ +ErrorStatus RTC_AlarmCmd(uint32_t RTC_Alarm, FunctionalState NewState) +{ + __IO uint32_t alarmcounter = 0x00; + uint32_t alarmstatus = 0x00; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_CMD_ALARM(RTC_Alarm)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Configure the Alarm state */ + if (NewState != DISABLE) + { + RTC->CR |= (uint32_t)RTC_Alarm; + + status = SUCCESS; + } + else + { + /* Disable the Alarm in RTC_CR register */ + RTC->CR &= (uint32_t)~RTC_Alarm; + + /* Wait till RTC ALRxWF flag is set and if Time out is reached exit */ + do + { + alarmstatus = RTC->ISR & (RTC_Alarm >> 8); + alarmcounter++; + } while((alarmcounter != INITMODE_TIMEOUT) && (alarmstatus == 0x00)); + + if ((RTC->ISR & (RTC_Alarm >> 8)) == RESET) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @} + */ + +/** @defgroup RTC_Group4 WakeUp Timer configuration functions + * @brief WakeUp Timer configuration functions + * +@verbatim + =============================================================================== + WakeUp Timer configuration functions + =============================================================================== + + This section provide functions allowing to program and read the RTC WakeUp. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the RTC Wakeup clock source. + * @note The WakeUp Clock source can only be changed when the RTC WakeUp + * is disabled (Use the RTC_WakeUpCmd(DISABLE)). + * @param RTC_WakeUpClock: Wakeup Clock source. + * This parameter can be one of the following values: + * @arg RTC_WakeUpClock_RTCCLK_Div16: RTC Wakeup Counter Clock = RTCCLK/16 + * @arg RTC_WakeUpClock_RTCCLK_Div8: RTC Wakeup Counter Clock = RTCCLK/8 + * @arg RTC_WakeUpClock_RTCCLK_Div4: RTC Wakeup Counter Clock = RTCCLK/4 + * @arg RTC_WakeUpClock_RTCCLK_Div2: RTC Wakeup Counter Clock = RTCCLK/2 + * @arg RTC_WakeUpClock_CK_SPRE_16bits: RTC Wakeup Counter Clock = CK_SPRE + * @arg RTC_WakeUpClock_CK_SPRE_17bits: RTC Wakeup Counter Clock = CK_SPRE + * @retval None + */ +void RTC_WakeUpClockConfig(uint32_t RTC_WakeUpClock) +{ + /* Check the parameters */ + assert_param(IS_RTC_WAKEUP_CLOCK(RTC_WakeUpClock)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Clear the Wakeup Timer clock source bits in CR register */ + RTC->CR &= (uint32_t)~RTC_CR_WUCKSEL; + + /* Configure the clock source */ + RTC->CR |= (uint32_t)RTC_WakeUpClock; + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Configures the RTC Wakeup counter. + * @note The RTC WakeUp counter can only be written when the RTC WakeUp + * is disabled (Use the RTC_WakeUpCmd(DISABLE)). + * @param RTC_WakeUpCounter: specifies the WakeUp counter. + * This parameter can be a value from 0x0000 to 0xFFFF. + * @retval None + */ +void RTC_SetWakeUpCounter(uint32_t RTC_WakeUpCounter) +{ + /* Check the parameters */ + assert_param(IS_RTC_WAKEUP_COUNTER(RTC_WakeUpCounter)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Configure the Wakeup Timer counter */ + RTC->WUTR = (uint32_t)RTC_WakeUpCounter; + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Returns the RTC WakeUp timer counter value. + * @param None + * @retval The RTC WakeUp Counter value. + */ +uint32_t RTC_GetWakeUpCounter(void) +{ + /* Get the counter value */ + return ((uint32_t)(RTC->WUTR & RTC_WUTR_WUT)); +} + +/** + * @brief Enables or Disables the RTC WakeUp timer. + * @param NewState: new state of the WakeUp timer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +ErrorStatus RTC_WakeUpCmd(FunctionalState NewState) +{ + __IO uint32_t wutcounter = 0x00; + uint32_t wutwfstatus = 0x00; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + if (NewState != DISABLE) + { + /* Enable the Wakeup Timer */ + RTC->CR |= (uint32_t)RTC_CR_WUTE; + status = SUCCESS; + } + else + { + /* Disable the Wakeup Timer */ + RTC->CR &= (uint32_t)~RTC_CR_WUTE; + /* Wait till RTC WUTWF flag is set and if Time out is reached exit */ + do + { + wutwfstatus = RTC->ISR & RTC_ISR_WUTWF; + wutcounter++; + } while((wutcounter != INITMODE_TIMEOUT) && (wutwfstatus == 0x00)); + + if ((RTC->ISR & RTC_ISR_WUTWF) == RESET) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @} + */ + +/** @defgroup RTC_Group5 Daylight Saving configuration functions + * @brief Daylight Saving configuration functions + * +@verbatim + =============================================================================== + Daylight Saving configuration functions + =============================================================================== + + This section provide functions allowing to configure the RTC DayLight Saving. + +@endverbatim + * @{ + */ + +/** + * @brief Adds or substract one hour from the current time. + * @param RTC_DayLightSaveOperation: the value of hour adjustment. + * This parameter can be one of the following values: + * @arg RTC_DayLightSaving_SUB1H: Substract one hour (winter time) + * @arg RTC_DayLightSaving_ADD1H: Add one hour (summer time) + * @param RTC_StoreOperation: Specifies the value to be written in the BCK bit + * in CR register to store the operation. + * This parameter can be one of the following values: + * @arg RTC_StoreOperation_Reset: BCK Bit Reset + * @arg RTC_StoreOperation_Set: BCK Bit Set + * @retval None + */ +void RTC_DayLightSavingConfig(uint32_t RTC_DayLightSaving, uint32_t RTC_StoreOperation) +{ + /* Check the parameters */ + assert_param(IS_RTC_DAYLIGHT_SAVING(RTC_DayLightSaving)); + assert_param(IS_RTC_STORE_OPERATION(RTC_StoreOperation)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Clear the bits to be configured */ + RTC->CR &= (uint32_t)~(RTC_CR_BCK); + + /* Configure the RTC_CR register */ + RTC->CR |= (uint32_t)(RTC_DayLightSaving | RTC_StoreOperation); + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Returns the RTC Day Light Saving stored operation. + * @param None + * @retval RTC Day Light Saving stored operation. + * - RTC_StoreOperation_Reset + * - RTC_StoreOperation_Set + */ +uint32_t RTC_GetStoreOperation(void) +{ + return (RTC->CR & RTC_CR_BCK); +} + +/** + * @} + */ + +/** @defgroup RTC_Group6 Output pin Configuration function + * @brief Output pin Configuration function + * +@verbatim + =============================================================================== + Output pin Configuration function + =============================================================================== + + This section provide functions allowing to configure the RTC Output source. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the RTC output source (AFO_ALARM). + * @param RTC_Output: Specifies which signal will be routed to the RTC output. + * This parameter can be one of the following values: + * @arg RTC_Output_Disable: No output selected + * @arg RTC_Output_AlarmA: signal of AlarmA mapped to output + * @arg RTC_Output_AlarmB: signal of AlarmB mapped to output + * @arg RTC_Output_WakeUp: signal of WakeUp mapped to output + * @param RTC_OutputPolarity: Specifies the polarity of the output signal. + * This parameter can be one of the following: + * @arg RTC_OutputPolarity_High: The output pin is high when the + * ALRAF/ALRBF/WUTF is high (depending on OSEL) + * @arg RTC_OutputPolarity_Low: The output pin is low when the + * ALRAF/ALRBF/WUTF is high (depending on OSEL) + * @retval None + */ +void RTC_OutputConfig(uint32_t RTC_Output, uint32_t RTC_OutputPolarity) +{ + /* Check the parameters */ + assert_param(IS_RTC_OUTPUT(RTC_Output)); + assert_param(IS_RTC_OUTPUT_POL(RTC_OutputPolarity)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Clear the bits to be configured */ + RTC->CR &= (uint32_t)~(RTC_CR_OSEL | RTC_CR_POL); + + /* Configure the output selection and polarity */ + RTC->CR |= (uint32_t)(RTC_Output | RTC_OutputPolarity); + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @} + */ + +/** @defgroup RTC_Group7 Coarse Calibration configuration functions + * @brief Coarse Calibration configuration functions + * +@verbatim + =============================================================================== + Coarse Calibration configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the Coarse calibration parameters. + * @param RTC_CalibSign: specifies the sign of the coarse calibration value. + * This parameter can be one of the following values: + * @arg RTC_CalibSign_Positive: The value sign is positive + * @arg RTC_CalibSign_Negative: The value sign is negative + * @param Value: value of coarse calibration expressed in ppm (coded on 5 bits). + * + * @note This Calibration value should be between 0 and 63 when using negative + * sign with a 2-ppm step. + * + * @note This Calibration value should be between 0 and 126 when using positive + * sign with a 4-ppm step. + * + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Coarse calibration are initialized + * - ERROR: RTC Coarse calibration are not initialized + */ +ErrorStatus RTC_CoarseCalibConfig(uint32_t RTC_CalibSign, uint32_t Value) +{ + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_CALIB_SIGN(RTC_CalibSign)); + assert_param(IS_RTC_CALIB_VALUE(Value)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Set the coarse calibration value */ + RTC->CALIBR = (uint32_t)(RTC_CalibSign | Value); + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + status = SUCCESS; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Enables or disables the Coarse calibration process. + * @param NewState: new state of the Coarse calibration. + * This parameter can be: ENABLE or DISABLE. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Coarse calibration are enabled/disabled + * - ERROR: RTC Coarse calibration are not enabled/disabled + */ +ErrorStatus RTC_CoarseCalibCmd(FunctionalState NewState) +{ + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + if (NewState != DISABLE) + { + /* Enable the Coarse Calibration */ + RTC->CR |= (uint32_t)RTC_CR_DCE; + } + else + { + /* Disable the Coarse Calibration */ + RTC->CR &= (uint32_t)~RTC_CR_DCE; + } + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + status = SUCCESS; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Enables or disables the RTC clock to be output through the relative pin. + * @param NewState: new state of the digital calibration Output. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_CalibOutputCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + if (NewState != DISABLE) + { + /* Enable the RTC clock output */ + RTC->CR |= (uint32_t)RTC_CR_COE; + } + else + { + /* Disable the RTC clock output */ + RTC->CR &= (uint32_t)~RTC_CR_COE; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @} + */ + + +/** @defgroup RTC_Group8 TimeStamp configuration functions + * @brief TimeStamp configuration functions + * +@verbatim + =============================================================================== + TimeStamp configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or Disables the RTC TimeStamp functionality with the + * specified time stamp pin stimulating edge. + * @param RTC_TimeStampEdge: Specifies the pin edge on which the TimeStamp is + * activated. + * This parameter can be one of the following: + * @arg RTC_TimeStampEdge_Rising: the Time stamp event occurs on the rising + * edge of the related pin. + * @arg RTC_TimeStampEdge_Falling: the Time stamp event occurs on the + * falling edge of the related pin. + * @param NewState: new state of the TimeStamp. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_TimeStampCmd(uint32_t RTC_TimeStampEdge, FunctionalState NewState) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_TIMESTAMP_EDGE(RTC_TimeStampEdge)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Get the RTC_CR register and clear the bits to be configured */ + tmpreg = (uint32_t)(RTC->CR & (uint32_t)~(RTC_CR_TSEDGE | RTC_CR_TSE)); + + /* Get the new configuration */ + if (NewState != DISABLE) + { + tmpreg |= (uint32_t)(RTC_TimeStampEdge | RTC_CR_TSE); + } + else + { + tmpreg |= (uint32_t)(RTC_TimeStampEdge); + } + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Configure the Time Stamp TSEDGE and Enable bits */ + RTC->CR = (uint32_t)tmpreg; + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Get the RTC TimeStamp value and masks. + * @param RTC_Format: specifies the format of the output parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_StampTimeStruct: pointer to a RTC_TimeTypeDef structure that will + * contains the TimeStamp time values. + * @param RTC_StampDateStruct: pointer to a RTC_DateTypeDef structure that will + * contains the TimeStamp date values. + * @retval None + */ +void RTC_GetTimeStamp(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_StampTimeStruct, + RTC_DateTypeDef* RTC_StampDateStruct) +{ + uint32_t tmptime = 0, tmpdate = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + /* Get the TimeStamp time and date registers values */ + tmptime = (uint32_t)(RTC->TSTR & RTC_TR_RESERVED_MASK); + tmpdate = (uint32_t)(RTC->TSDR & RTC_DR_RESERVED_MASK); + + /* Fill the Time structure fields with the read parameters */ + RTC_StampTimeStruct->RTC_Hours = (uint8_t)((tmptime & (RTC_TR_HT | RTC_TR_HU)) >> 16); + RTC_StampTimeStruct->RTC_Minutes = (uint8_t)((tmptime & (RTC_TR_MNT | RTC_TR_MNU)) >> 8); + RTC_StampTimeStruct->RTC_Seconds = (uint8_t)(tmptime & (RTC_TR_ST | RTC_TR_SU)); + RTC_StampTimeStruct->RTC_H12 = (uint8_t)((tmptime & (RTC_TR_PM)) >> 16); + + /* Fill the Date structure fields with the read parameters */ + RTC_StampDateStruct->RTC_Year = 0; + RTC_StampDateStruct->RTC_Month = (uint8_t)((tmpdate & (RTC_DR_MT | RTC_DR_MU)) >> 8); + RTC_StampDateStruct->RTC_Date = (uint8_t)(tmpdate & (RTC_DR_DT | RTC_DR_DU)); + RTC_StampDateStruct->RTC_WeekDay = (uint8_t)((tmpdate & (RTC_DR_WDU)) >> 13); + + /* Check the input parameters format */ + if (RTC_Format == RTC_Format_BIN) + { + /* Convert the Time structure parameters to Binary format */ + RTC_StampTimeStruct->RTC_Hours = (uint8_t)RTC_Bcd2ToByte(RTC_StampTimeStruct->RTC_Hours); + RTC_StampTimeStruct->RTC_Minutes = (uint8_t)RTC_Bcd2ToByte(RTC_StampTimeStruct->RTC_Minutes); + RTC_StampTimeStruct->RTC_Seconds = (uint8_t)RTC_Bcd2ToByte(RTC_StampTimeStruct->RTC_Seconds); + + /* Convert the Date structure parameters to Binary format */ + RTC_StampDateStruct->RTC_Month = (uint8_t)RTC_Bcd2ToByte(RTC_StampDateStruct->RTC_Month); + RTC_StampDateStruct->RTC_Date = (uint8_t)RTC_Bcd2ToByte(RTC_StampDateStruct->RTC_Date); + RTC_StampDateStruct->RTC_WeekDay = (uint8_t)RTC_Bcd2ToByte(RTC_StampDateStruct->RTC_WeekDay); + } +} + +/** + * @} + */ + +/** @defgroup RTC_Group9 Tampers configuration functions + * @brief Tampers configuration functions + * +@verbatim + =============================================================================== + Tampers configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the select Tamper pin edge. + * @param RTC_Tamper: Selected tamper pin. + * This parameter can be RTC_Tamper_1. + * @param RTC_TamperTrigger: Specifies the trigger on the tamper pin that + * stimulates tamper event. + * This parameter can be one of the following values: + * @arg RTC_TamperTrigger_RisingEdge: Rising Edge of the tamper pin causes tamper event. + * @arg RTC_TamperTrigger_FallingEdge: Falling Edge of the tamper pin causes tamper event. + * @retval None + */ +void RTC_TamperTriggerConfig(uint32_t RTC_Tamper, uint32_t RTC_TamperTrigger) +{ + /* Check the parameters */ + assert_param(IS_RTC_TAMPER(RTC_Tamper)); + assert_param(IS_RTC_TAMPER_TRIGGER(RTC_TamperTrigger)); + + if (RTC_TamperTrigger == RTC_TamperTrigger_RisingEdge) + { + /* Configure the RTC_TAFCR register */ + RTC->TAFCR &= (uint32_t)((uint32_t)~(RTC_Tamper << 1)); + } + else + { + /* Configure the RTC_TAFCR register */ + RTC->TAFCR |= (uint32_t)(RTC_Tamper << 1); + } +} + +/** + * @brief Enables or Disables the Tamper detection. + * @param RTC_Tamper: Selected tamper pin. + * This parameter can be RTC_Tamper_1. + * @param NewState: new state of the tamper pin. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_TamperCmd(uint32_t RTC_Tamper, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RTC_TAMPER(RTC_Tamper)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected Tamper pin */ + RTC->TAFCR |= (uint32_t)RTC_Tamper; + } + else + { + /* Disable the selected Tamper pin */ + RTC->TAFCR &= (uint32_t)~RTC_Tamper; + } +} + +/** + * @} + */ + +/** @defgroup RTC_Group10 Backup Data Registers configuration functions + * @brief Backup Data Registers configuration functions + * +@verbatim + =============================================================================== + Backup Data Registers configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Writes a data in a specified RTC Backup data register. + * @param RTC_BKP_DR: RTC Backup data Register number. + * This parameter can be: RTC_BKP_DRx where x can be from 0 to 19 to + * specify the register. + * @param Data: Data to be written in the specified RTC Backup data register. + * @retval None + */ +void RTC_WriteBackupRegister(uint32_t RTC_BKP_DR, uint32_t Data) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_RTC_BKP(RTC_BKP_DR)); + + tmp = RTC_BASE + 0x50; + tmp += (RTC_BKP_DR * 4); + + /* Write the specified register */ + *(__IO uint32_t *)tmp = (uint32_t)Data; +} + +/** + * @brief Reads data from the specified RTC Backup data Register. + * @param RTC_BKP_DR: RTC Backup data Register number. + * This parameter can be: RTC_BKP_DRx where x can be from 0 to 19 to + * specify the register. + * @retval None + */ +uint32_t RTC_ReadBackupRegister(uint32_t RTC_BKP_DR) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_RTC_BKP(RTC_BKP_DR)); + + tmp = RTC_BASE + 0x50; + tmp += (RTC_BKP_DR * 4); + + /* Read the specified register */ + return (*(__IO uint32_t *)tmp); +} + +/** + * @} + */ + +/** @defgroup RTC_Group11 RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration functions + * @brief RTC Tamper and TimeStamp Pins Selection and Output Type Config + * configuration functions + * +@verbatim + =============================================================================== + RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration + functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Selects the RTC Tamper Pin. + * @param RTC_TamperPin: specifies the RTC Tamper Pin. + * This parameter can be one of the following values: + * @arg RTC_TamperPin_PC13: PC13 is selected as RTC Tamper Pin. + * @arg RTC_TamperPin_PI8: PI8 is selected as RTC Tamper Pin. + * @retval None + */ +void RTC_TamperPinSelection(uint32_t RTC_TamperPin) +{ + /* Check the parameters */ + assert_param(IS_RTC_TAMPER_PIN(RTC_TamperPin)); + + RTC->TAFCR &= (uint32_t)~(RTC_TAFCR_TAMPINSEL); + RTC->TAFCR |= (uint32_t)(RTC_TamperPin); +} + +/** + * @brief Selects the RTC TimeStamp Pin. + * @param RTC_TimeStampPin: specifies the RTC TimeStamp Pin. + * This parameter can be one of the following values: + * @arg RTC_TimeStampPin_PC13: PC13 is selected as RTC TimeStamp Pin. + * @arg RTC_TimeStampPin_PI8: PI8 is selected as RTC TimeStamp Pin. + * @retval None + */ +void RTC_TimeStampPinSelection(uint32_t RTC_TimeStampPin) +{ + /* Check the parameters */ + assert_param(IS_RTC_TIMESTAMP_PIN(RTC_TimeStampPin)); + + RTC->TAFCR &= (uint32_t)~(RTC_TAFCR_TSINSEL); + RTC->TAFCR |= (uint32_t)(RTC_TimeStampPin); +} + +/** + * @brief Configures the RTC Output Pin mode. + * @param RTC_OutputType: specifies the RTC Output (PC13) pin mode. + * This parameter can be one of the following values: + * @arg RTC_OutputType_OpenDrain: RTC Output (PC13) is configured in + * Open Drain mode. + * @arg RTC_OutputType_PushPull: RTC Output (PC13) is configured in + * Push Pull mode. + * @retval None + */ +void RTC_OutputTypeConfig(uint32_t RTC_OutputType) +{ + /* Check the parameters */ + assert_param(IS_RTC_OUTPUT_TYPE(RTC_OutputType)); + + RTC->TAFCR &= (uint32_t)~(RTC_TAFCR_ALARMOUTTYPE); + RTC->TAFCR |= (uint32_t)(RTC_OutputType); +} + +/** + * @} + */ + +/** @defgroup RTC_Group12 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + All RTC interrupts are connected to the EXTI controller. + + - To enable the RTC Alarm interrupt, the following sequence is required: + - Configure and enable the EXTI Line 17 in interrupt mode and select the rising + edge sensitivity using the EXTI_Init() function. + - Configure and enable the RTC_Alarm IRQ channel in the NVIC using the NVIC_Init() + function. + - Configure the RTC to generate RTC alarms (Alarm A and/or Alarm B) using + the RTC_SetAlarm() and RTC_AlarmCmd() functions. + + - To enable the RTC Wakeup interrupt, the following sequence is required: + - Configure and enable the EXTI Line 22 in interrupt mode and select the rising + edge sensitivity using the EXTI_Init() function. + - Configure and enable the RTC_WKUP IRQ channel in the NVIC using the NVIC_Init() + function. + - Configure the RTC to generate the RTC wakeup timer event using the + RTC_WakeUpClockConfig(), RTC_SetWakeUpCounter() and RTC_WakeUpCmd() functions. + + - To enable the RTC Tamper interrupt, the following sequence is required: + - Configure and enable the EXTI Line 21 in interrupt mode and select the rising + edge sensitivity using the EXTI_Init() function. + - Configure and enable the TAMP_STAMP IRQ channel in the NVIC using the NVIC_Init() + function. + - Configure the RTC to detect the RTC tamper event using the + RTC_TamperTriggerConfig() and RTC_TamperCmd() functions. + + - To enable the RTC TimeStamp interrupt, the following sequence is required: + - Configure and enable the EXTI Line 21 in interrupt mode and select the rising + edge sensitivity using the EXTI_Init() function. + - Configure and enable the TAMP_STAMP IRQ channel in the NVIC using the NVIC_Init() + function. + - Configure the RTC to detect the RTC time-stamp event using the + RTC_TimeStampCmd() functions. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified RTC interrupts. + * @param RTC_IT: specifies the RTC interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg RTC_IT_TS: Time Stamp interrupt mask + * @arg RTC_IT_WUT: WakeUp Timer interrupt mask + * @arg RTC_IT_ALRB: Alarm B interrupt mask + * @arg RTC_IT_ALRA: Alarm A interrupt mask + * @arg RTC_IT_TAMP: Tamper event interrupt mask + * @param NewState: new state of the specified RTC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_ITConfig(uint32_t RTC_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RTC_CONFIG_IT(RTC_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + if (NewState != DISABLE) + { + /* Configure the Interrupts in the RTC_CR register */ + RTC->CR |= (uint32_t)(RTC_IT & ~RTC_TAFCR_TAMPIE); + /* Configure the Tamper Interrupt in the RTC_TAFCR */ + RTC->TAFCR |= (uint32_t)(RTC_IT & RTC_TAFCR_TAMPIE); + } + else + { + /* Configure the Interrupts in the RTC_CR register */ + RTC->CR &= (uint32_t)~(RTC_IT & (uint32_t)~RTC_TAFCR_TAMPIE); + /* Configure the Tamper Interrupt in the RTC_TAFCR */ + RTC->TAFCR &= (uint32_t)~(RTC_IT & RTC_TAFCR_TAMPIE); + } + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Checks whether the specified RTC flag is set or not. + * @param RTC_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg RTC_FLAG_TAMP1F: Tamper 1 event flag + * @arg RTC_FLAG_TSOVF: Time Stamp OverFlow flag + * @arg RTC_FLAG_TSF: Time Stamp event flag + * @arg RTC_FLAG_WUTF: WakeUp Timer flag + * @arg RTC_FLAG_ALRBF: Alarm B flag + * @arg RTC_FLAG_ALRAF: Alarm A flag + * @arg RTC_FLAG_INITF: Initialization mode flag + * @arg RTC_FLAG_RSF: Registers Synchronized flag + * @arg RTC_FLAG_INITS: Registers Configured flag + * @arg RTC_FLAG_WUTWF: WakeUp Timer Write flag + * @arg RTC_FLAG_ALRBWF: Alarm B Write flag + * @arg RTC_FLAG_ALRAWF: Alarm A write flag + * @retval The new state of RTC_FLAG (SET or RESET). + */ +FlagStatus RTC_GetFlagStatus(uint32_t RTC_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_GET_FLAG(RTC_FLAG)); + + /* Get all the flags */ + tmpreg = (uint32_t)(RTC->ISR & RTC_FLAGS_MASK); + + /* Return the status of the flag */ + if ((tmpreg & RTC_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the RTC's pending flags. + * @param RTC_FLAG: specifies the RTC flag to clear. + * This parameter can be any combination of the following values: + * @arg RTC_FLAG_TAMP1F: Tamper 1 event flag + * @arg RTC_FLAG_TSOVF: Time Stamp Overflow flag + * @arg RTC_FLAG_TSF: Time Stamp event flag + * @arg RTC_FLAG_WUTF: WakeUp Timer flag + * @arg RTC_FLAG_ALRBF: Alarm B flag + * @arg RTC_FLAG_ALRAF: Alarm A flag + * @arg RTC_FLAG_RSF: Registers Synchronized flag + * @retval None + */ +void RTC_ClearFlag(uint32_t RTC_FLAG) +{ + /* Check the parameters */ + assert_param(IS_RTC_CLEAR_FLAG(RTC_FLAG)); + + /* Clear the Flags in the RTC_ISR register */ + RTC->ISR = (uint32_t)((uint32_t)(~((RTC_FLAG | RTC_ISR_INIT)& 0x0000FFFF) | (uint32_t)(RTC->ISR & RTC_ISR_INIT))); +} + +/** + * @brief Checks whether the specified RTC interrupt has occurred or not. + * @param RTC_IT: specifies the RTC interrupt source to check. + * This parameter can be one of the following values: + * @arg RTC_IT_TS: Time Stamp interrupt + * @arg RTC_IT_WUT: WakeUp Timer interrupt + * @arg RTC_IT_ALRB: Alarm B interrupt + * @arg RTC_IT_ALRA: Alarm A interrupt + * @arg RTC_IT_TAMP1: Tamper 1 event interrupt + * @retval The new state of RTC_IT (SET or RESET). + */ +ITStatus RTC_GetITStatus(uint32_t RTC_IT) +{ + ITStatus bitstatus = RESET; + uint32_t tmpreg = 0, enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_RTC_GET_IT(RTC_IT)); + + /* Get the TAMPER Interrupt enable bit and pending bit */ + tmpreg = (uint32_t)(RTC->TAFCR & (RTC_TAFCR_TAMPIE)); + + /* Get the Interrupt enable Status */ + enablestatus = (uint32_t)((RTC->CR & RTC_IT) | (tmpreg & (RTC_IT >> 15))); + + /* Get the Interrupt pending bit */ + tmpreg = (uint32_t)((RTC->ISR & (uint32_t)(RTC_IT >> 4))); + + /* Get the status of the Interrupt */ + if ((enablestatus != (uint32_t)RESET) && ((tmpreg & 0x0000FFFF) != (uint32_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the RTC's interrupt pending bits. + * @param RTC_IT: specifies the RTC interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg RTC_IT_TS: Time Stamp interrupt + * @arg RTC_IT_WUT: WakeUp Timer interrupt + * @arg RTC_IT_ALRB: Alarm B interrupt + * @arg RTC_IT_ALRA: Alarm A interrupt + * @arg RTC_IT_TAMP1: Tamper 1 event interrupt + * @retval None + */ +void RTC_ClearITPendingBit(uint32_t RTC_IT) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_CLEAR_IT(RTC_IT)); + + /* Get the RTC_ISR Interrupt pending bits mask */ + tmpreg = (uint32_t)(RTC_IT >> 4); + + /* Clear the interrupt pending bits in the RTC_ISR register */ + RTC->ISR = (uint32_t)((uint32_t)(~((tmpreg | RTC_ISR_INIT)& 0x0000FFFF) | (uint32_t)(RTC->ISR & RTC_ISR_INIT))); +} + +/** + * @} + */ + +/** + * @brief Converts a 2 digit decimal to BCD format. + * @param Value: Byte to be converted. + * @retval Converted byte + */ +static uint8_t RTC_ByteToBcd2(uint8_t Value) +{ + uint8_t bcdhigh = 0; + + while (Value >= 10) + { + bcdhigh++; + Value -= 10; + } + + return ((uint8_t)(bcdhigh << 4) | Value); +} + +/** + * @brief Convert from 2 digit BCD to Binary. + * @param Value: BCD value to be converted. + * @retval Converted word + */ +static uint8_t RTC_Bcd2ToByte(uint8_t Value) +{ + uint8_t tmp = 0; + tmp = ((uint8_t)(Value & (uint8_t)0xF0) >> (uint8_t)0x4) * 10; + return (tmp + (Value & (uint8_t)0x0F)); +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_sdio.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_sdio.c new file mode 100644 index 00000000..515b2465 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_sdio.c @@ -0,0 +1,1010 @@ +/** + ****************************************************************************** + * @file stm32f2xx_sdio.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Secure digital input/output interface (SDIO) + * peripheral: + * - Initialization and Configuration + * - Command path state machine (CPSM) management + * - Data path state machine (DPSM) management + * - SDIO IO Cards mode management + * - CE-ATA mode management + * - DMA transfers management + * - Interrupts and flags management + * + * @verbatim + * + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. The SDIO clock (SDIOCLK = 48 MHz) is coming from a specific output + * of PLL (PLL48CLK). Before to start working with SDIO peripheral + * make sure that the PLL is well configured. + * The SDIO peripheral uses two clock signals: + * - SDIO adapter clock (SDIOCLK = 48 MHz) + * - APB2 bus clock (PCLK2) + * PCLK2 and SDIO_CK clock frequencies must respect the following condition: + * Frequenc(PCLK2) >= (3 / 8 x Frequency(SDIO_CK)) + * + * 2. Enable peripheral clock using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SDIO, ENABLE). + * + * 3. According to the SDIO mode, enable the GPIO clocks using + * RCC_AHB1PeriphClockCmd() function. + * The I/O can be one of the following configurations: + * - 1-bit data length: SDIO_CMD, SDIO_CK and D0. + * - 4-bit data length: SDIO_CMD, SDIO_CK and D[3:0]. + * - 8-bit data length: SDIO_CMD, SDIO_CK and D[7:0]. + * + * 4. Peripheral's alternate function: + * - Connect the pin to the desired peripherals' Alternate + * Function (AF) using GPIO_PinAFConfig() function + * - Configure the desired pin in alternate function by: + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * + * 5. Program the Clock Edge, Clock Bypass, Clock Power Save, Bus Wide, + * hardware, flow control and the Clock Divider using the SDIO_Init() + * function. + * + * 6. Enable the Power ON State using the SDIO_SetPowerState(SDIO_PowerState_ON) + * function. + * + * 7. Enable the clock using the SDIO_ClockCmd() function. + * + * 8. Enable the NVIC and the corresponding interrupt using the function + * SDIO_ITConfig() if you need to use interrupt mode. + * + * 9. When using the DMA mode + * - Configure the DMA using DMA_Init() function + * - Active the needed channel Request using SDIO_DMACmd() function + * + * 10. Enable the DMA using the DMA_Cmd() function, when using DMA mode. + * + * 11. To control the CPSM (Command Path State Machine) and send + * commands to the card use the SDIO_SendCommand(), + * SDIO_GetCommandResponse() and SDIO_GetResponse() functions. + * First, user has to fill the command structure (pointer to + * SDIO_CmdInitTypeDef) according to the selected command to be sent. + * The parameters that should be filled are: + * - Command Argument + * - Command Index + * - Command Response type + * - Command Wait + * - CPSM Status (Enable or Disable) + * + * To check if the command is well received, read the SDIO_CMDRESP + * register using the SDIO_GetCommandResponse(). + * The SDIO responses registers (SDIO_RESP1 to SDIO_RESP2), use the + * SDIO_GetResponse() function. + * + * 12. To control the DPSM (Data Path State Machine) and send/receive + * data to/from the card use the SDIO_DataConfig(), SDIO_GetDataCounter(), + * SDIO_ReadData(), SDIO_WriteData() and SDIO_GetFIFOCount() functions. + * + * Read Operations + * --------------- + * a) First, user has to fill the data structure (pointer to + * SDIO_DataInitTypeDef) according to the selected data type to + * be received. + * The parameters that should be filled are: + * - Data TimeOut + * - Data Length + * - Data Block size + * - Data Transfer direction: should be from card (To SDIO) + * - Data Transfer mode + * - DPSM Status (Enable or Disable) + * + * b) Configure the SDIO resources to receive the data from the card + * according to selected transfer mode (Refer to Step 8, 9 and 10). + * + * c) Send the selected Read command (refer to step 11). + * + * d) Use the SDIO flags/interrupts to check the transfer status. + * + * Write Operations + * --------------- + * a) First, user has to fill the data structure (pointer to + * SDIO_DataInitTypeDef) according to the selected data type to + * be received. + * The parameters that should be filled are: + * - Data TimeOut + * - Data Length + * - Data Block size + * - Data Transfer direction: should be to card (To CARD) + * - Data Transfer mode + * - DPSM Status (Enable or Disable) + * + * b) Configure the SDIO resources to send the data to the card + * according to selected transfer mode (Refer to Step 8, 9 and 10). + * + * c) Send the selected Write command (refer to step 11). + * + * d) Use the SDIO flags/interrupts to check the transfer status. + * + * + * @endverbatim + * + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_sdio.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup SDIO + * @brief SDIO driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* ------------ SDIO registers bit address in the alias region ----------- */ +#define SDIO_OFFSET (SDIO_BASE - PERIPH_BASE) + +/* --- CLKCR Register ---*/ +/* Alias word address of CLKEN bit */ +#define CLKCR_OFFSET (SDIO_OFFSET + 0x04) +#define CLKEN_BitNumber 0x08 +#define CLKCR_CLKEN_BB (PERIPH_BB_BASE + (CLKCR_OFFSET * 32) + (CLKEN_BitNumber * 4)) + +/* --- CMD Register ---*/ +/* Alias word address of SDIOSUSPEND bit */ +#define CMD_OFFSET (SDIO_OFFSET + 0x0C) +#define SDIOSUSPEND_BitNumber 0x0B +#define CMD_SDIOSUSPEND_BB (PERIPH_BB_BASE + (CMD_OFFSET * 32) + (SDIOSUSPEND_BitNumber * 4)) + +/* Alias word address of ENCMDCOMPL bit */ +#define ENCMDCOMPL_BitNumber 0x0C +#define CMD_ENCMDCOMPL_BB (PERIPH_BB_BASE + (CMD_OFFSET * 32) + (ENCMDCOMPL_BitNumber * 4)) + +/* Alias word address of NIEN bit */ +#define NIEN_BitNumber 0x0D +#define CMD_NIEN_BB (PERIPH_BB_BASE + (CMD_OFFSET * 32) + (NIEN_BitNumber * 4)) + +/* Alias word address of ATACMD bit */ +#define ATACMD_BitNumber 0x0E +#define CMD_ATACMD_BB (PERIPH_BB_BASE + (CMD_OFFSET * 32) + (ATACMD_BitNumber * 4)) + +/* --- DCTRL Register ---*/ +/* Alias word address of DMAEN bit */ +#define DCTRL_OFFSET (SDIO_OFFSET + 0x2C) +#define DMAEN_BitNumber 0x03 +#define DCTRL_DMAEN_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (DMAEN_BitNumber * 4)) + +/* Alias word address of RWSTART bit */ +#define RWSTART_BitNumber 0x08 +#define DCTRL_RWSTART_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (RWSTART_BitNumber * 4)) + +/* Alias word address of RWSTOP bit */ +#define RWSTOP_BitNumber 0x09 +#define DCTRL_RWSTOP_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (RWSTOP_BitNumber * 4)) + +/* Alias word address of RWMOD bit */ +#define RWMOD_BitNumber 0x0A +#define DCTRL_RWMOD_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (RWMOD_BitNumber * 4)) + +/* Alias word address of SDIOEN bit */ +#define SDIOEN_BitNumber 0x0B +#define DCTRL_SDIOEN_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (SDIOEN_BitNumber * 4)) + +/* ---------------------- SDIO registers bit mask ------------------------ */ +/* --- CLKCR Register ---*/ +/* CLKCR register clear mask */ +#define CLKCR_CLEAR_MASK ((uint32_t)0xFFFF8100) + +/* --- PWRCTRL Register ---*/ +/* SDIO PWRCTRL Mask */ +#define PWR_PWRCTRL_MASK ((uint32_t)0xFFFFFFFC) + +/* --- DCTRL Register ---*/ +/* SDIO DCTRL Clear Mask */ +#define DCTRL_CLEAR_MASK ((uint32_t)0xFFFFFF08) + +/* --- CMD Register ---*/ +/* CMD Register clear mask */ +#define CMD_CLEAR_MASK ((uint32_t)0xFFFFF800) + +/* SDIO RESP Registers Address */ +#define SDIO_RESP_ADDR ((uint32_t)(SDIO_BASE + 0x14)) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup SDIO_Private_Functions + * @{ + */ + +/** @defgroup SDIO_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the SDIO peripheral registers to their default reset values. + * @param None + * @retval None + */ +void SDIO_DeInit(void) +{ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SDIO, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SDIO, DISABLE); +} + +/** + * @brief Initializes the SDIO peripheral according to the specified + * parameters in the SDIO_InitStruct. + * @param SDIO_InitStruct : pointer to a SDIO_InitTypeDef structure + * that contains the configuration information for the SDIO peripheral. + * @retval None + */ +void SDIO_Init(SDIO_InitTypeDef* SDIO_InitStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_SDIO_CLOCK_EDGE(SDIO_InitStruct->SDIO_ClockEdge)); + assert_param(IS_SDIO_CLOCK_BYPASS(SDIO_InitStruct->SDIO_ClockBypass)); + assert_param(IS_SDIO_CLOCK_POWER_SAVE(SDIO_InitStruct->SDIO_ClockPowerSave)); + assert_param(IS_SDIO_BUS_WIDE(SDIO_InitStruct->SDIO_BusWide)); + assert_param(IS_SDIO_HARDWARE_FLOW_CONTROL(SDIO_InitStruct->SDIO_HardwareFlowControl)); + +/*---------------------------- SDIO CLKCR Configuration ------------------------*/ + /* Get the SDIO CLKCR value */ + tmpreg = SDIO->CLKCR; + + /* Clear CLKDIV, PWRSAV, BYPASS, WIDBUS, NEGEDGE, HWFC_EN bits */ + tmpreg &= CLKCR_CLEAR_MASK; + + /* Set CLKDIV bits according to SDIO_ClockDiv value */ + /* Set PWRSAV bit according to SDIO_ClockPowerSave value */ + /* Set BYPASS bit according to SDIO_ClockBypass value */ + /* Set WIDBUS bits according to SDIO_BusWide value */ + /* Set NEGEDGE bits according to SDIO_ClockEdge value */ + /* Set HWFC_EN bits according to SDIO_HardwareFlowControl value */ + tmpreg |= (SDIO_InitStruct->SDIO_ClockDiv | SDIO_InitStruct->SDIO_ClockPowerSave | + SDIO_InitStruct->SDIO_ClockBypass | SDIO_InitStruct->SDIO_BusWide | + SDIO_InitStruct->SDIO_ClockEdge | SDIO_InitStruct->SDIO_HardwareFlowControl); + + /* Write to SDIO CLKCR */ + SDIO->CLKCR = tmpreg; +} + +/** + * @brief Fills each SDIO_InitStruct member with its default value. + * @param SDIO_InitStruct: pointer to an SDIO_InitTypeDef structure which + * will be initialized. + * @retval None + */ +void SDIO_StructInit(SDIO_InitTypeDef* SDIO_InitStruct) +{ + /* SDIO_InitStruct members default value */ + SDIO_InitStruct->SDIO_ClockDiv = 0x00; + SDIO_InitStruct->SDIO_ClockEdge = SDIO_ClockEdge_Rising; + SDIO_InitStruct->SDIO_ClockBypass = SDIO_ClockBypass_Disable; + SDIO_InitStruct->SDIO_ClockPowerSave = SDIO_ClockPowerSave_Disable; + SDIO_InitStruct->SDIO_BusWide = SDIO_BusWide_1b; + SDIO_InitStruct->SDIO_HardwareFlowControl = SDIO_HardwareFlowControl_Disable; +} + +/** + * @brief Enables or disables the SDIO Clock. + * @param NewState: new state of the SDIO Clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_ClockCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CLKCR_CLKEN_BB = (uint32_t)NewState; +} + +/** + * @brief Sets the power status of the controller. + * @param SDIO_PowerState: new state of the Power state. + * This parameter can be one of the following values: + * @arg SDIO_PowerState_OFF: SDIO Power OFF + * @arg SDIO_PowerState_ON: SDIO Power ON + * @retval None + */ +void SDIO_SetPowerState(uint32_t SDIO_PowerState) +{ + /* Check the parameters */ + assert_param(IS_SDIO_POWER_STATE(SDIO_PowerState)); + + SDIO->POWER = SDIO_PowerState; +} + +/** + * @brief Gets the power status of the controller. + * @param None + * @retval Power status of the controller. The returned value can be one of the + * following values: + * - 0x00: Power OFF + * - 0x02: Power UP + * - 0x03: Power ON + */ +uint32_t SDIO_GetPowerState(void) +{ + return (SDIO->POWER & (~PWR_PWRCTRL_MASK)); +} + +/** + * @} + */ + +/** @defgroup SDIO_Group2 Command path state machine (CPSM) management functions + * @brief Command path state machine (CPSM) management functions + * +@verbatim + =============================================================================== + Command path state machine (CPSM) management functions + =============================================================================== + + This section provide functions allowing to program and read the Command path + state machine (CPSM). + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the SDIO Command according to the specified + * parameters in the SDIO_CmdInitStruct and send the command. + * @param SDIO_CmdInitStruct : pointer to a SDIO_CmdInitTypeDef + * structure that contains the configuration information for the SDIO + * command. + * @retval None + */ +void SDIO_SendCommand(SDIO_CmdInitTypeDef *SDIO_CmdInitStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_SDIO_CMD_INDEX(SDIO_CmdInitStruct->SDIO_CmdIndex)); + assert_param(IS_SDIO_RESPONSE(SDIO_CmdInitStruct->SDIO_Response)); + assert_param(IS_SDIO_WAIT(SDIO_CmdInitStruct->SDIO_Wait)); + assert_param(IS_SDIO_CPSM(SDIO_CmdInitStruct->SDIO_CPSM)); + +/*---------------------------- SDIO ARG Configuration ------------------------*/ + /* Set the SDIO Argument value */ + SDIO->ARG = SDIO_CmdInitStruct->SDIO_Argument; + +/*---------------------------- SDIO CMD Configuration ------------------------*/ + /* Get the SDIO CMD value */ + tmpreg = SDIO->CMD; + /* Clear CMDINDEX, WAITRESP, WAITINT, WAITPEND, CPSMEN bits */ + tmpreg &= CMD_CLEAR_MASK; + /* Set CMDINDEX bits according to SDIO_CmdIndex value */ + /* Set WAITRESP bits according to SDIO_Response value */ + /* Set WAITINT and WAITPEND bits according to SDIO_Wait value */ + /* Set CPSMEN bits according to SDIO_CPSM value */ + tmpreg |= (uint32_t)SDIO_CmdInitStruct->SDIO_CmdIndex | SDIO_CmdInitStruct->SDIO_Response + | SDIO_CmdInitStruct->SDIO_Wait | SDIO_CmdInitStruct->SDIO_CPSM; + + /* Write to SDIO CMD */ + SDIO->CMD = tmpreg; +} + +/** + * @brief Fills each SDIO_CmdInitStruct member with its default value. + * @param SDIO_CmdInitStruct: pointer to an SDIO_CmdInitTypeDef + * structure which will be initialized. + * @retval None + */ +void SDIO_CmdStructInit(SDIO_CmdInitTypeDef* SDIO_CmdInitStruct) +{ + /* SDIO_CmdInitStruct members default value */ + SDIO_CmdInitStruct->SDIO_Argument = 0x00; + SDIO_CmdInitStruct->SDIO_CmdIndex = 0x00; + SDIO_CmdInitStruct->SDIO_Response = SDIO_Response_No; + SDIO_CmdInitStruct->SDIO_Wait = SDIO_Wait_No; + SDIO_CmdInitStruct->SDIO_CPSM = SDIO_CPSM_Disable; +} + +/** + * @brief Returns command index of last command for which response received. + * @param None + * @retval Returns the command index of the last command response received. + */ +uint8_t SDIO_GetCommandResponse(void) +{ + return (uint8_t)(SDIO->RESPCMD); +} + +/** + * @brief Returns response received from the card for the last command. + * @param SDIO_RESP: Specifies the SDIO response register. + * This parameter can be one of the following values: + * @arg SDIO_RESP1: Response Register 1 + * @arg SDIO_RESP2: Response Register 2 + * @arg SDIO_RESP3: Response Register 3 + * @arg SDIO_RESP4: Response Register 4 + * @retval The Corresponding response register value. + */ +uint32_t SDIO_GetResponse(uint32_t SDIO_RESP) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_SDIO_RESP(SDIO_RESP)); + + tmp = SDIO_RESP_ADDR + SDIO_RESP; + + return (*(__IO uint32_t *) tmp); +} + +/** + * @} + */ + +/** @defgroup SDIO_Group3 Data path state machine (DPSM) management functions + * @brief Data path state machine (DPSM) management functions + * +@verbatim + =============================================================================== + Data path state machine (DPSM) management functions + =============================================================================== + + This section provide functions allowing to program and read the Data path + state machine (DPSM). + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the SDIO data path according to the specified + * parameters in the SDIO_DataInitStruct. + * @param SDIO_DataInitStruct : pointer to a SDIO_DataInitTypeDef structure + * that contains the configuration information for the SDIO command. + * @retval None + */ +void SDIO_DataConfig(SDIO_DataInitTypeDef* SDIO_DataInitStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_SDIO_DATA_LENGTH(SDIO_DataInitStruct->SDIO_DataLength)); + assert_param(IS_SDIO_BLOCK_SIZE(SDIO_DataInitStruct->SDIO_DataBlockSize)); + assert_param(IS_SDIO_TRANSFER_DIR(SDIO_DataInitStruct->SDIO_TransferDir)); + assert_param(IS_SDIO_TRANSFER_MODE(SDIO_DataInitStruct->SDIO_TransferMode)); + assert_param(IS_SDIO_DPSM(SDIO_DataInitStruct->SDIO_DPSM)); + +/*---------------------------- SDIO DTIMER Configuration ---------------------*/ + /* Set the SDIO Data TimeOut value */ + SDIO->DTIMER = SDIO_DataInitStruct->SDIO_DataTimeOut; + +/*---------------------------- SDIO DLEN Configuration -----------------------*/ + /* Set the SDIO DataLength value */ + SDIO->DLEN = SDIO_DataInitStruct->SDIO_DataLength; + +/*---------------------------- SDIO DCTRL Configuration ----------------------*/ + /* Get the SDIO DCTRL value */ + tmpreg = SDIO->DCTRL; + /* Clear DEN, DTMODE, DTDIR and DBCKSIZE bits */ + tmpreg &= DCTRL_CLEAR_MASK; + /* Set DEN bit according to SDIO_DPSM value */ + /* Set DTMODE bit according to SDIO_TransferMode value */ + /* Set DTDIR bit according to SDIO_TransferDir value */ + /* Set DBCKSIZE bits according to SDIO_DataBlockSize value */ + tmpreg |= (uint32_t)SDIO_DataInitStruct->SDIO_DataBlockSize | SDIO_DataInitStruct->SDIO_TransferDir + | SDIO_DataInitStruct->SDIO_TransferMode | SDIO_DataInitStruct->SDIO_DPSM; + + /* Write to SDIO DCTRL */ + SDIO->DCTRL = tmpreg; +} + +/** + * @brief Fills each SDIO_DataInitStruct member with its default value. + * @param SDIO_DataInitStruct: pointer to an SDIO_DataInitTypeDef structure + * which will be initialized. + * @retval None + */ +void SDIO_DataStructInit(SDIO_DataInitTypeDef* SDIO_DataInitStruct) +{ + /* SDIO_DataInitStruct members default value */ + SDIO_DataInitStruct->SDIO_DataTimeOut = 0xFFFFFFFF; + SDIO_DataInitStruct->SDIO_DataLength = 0x00; + SDIO_DataInitStruct->SDIO_DataBlockSize = SDIO_DataBlockSize_1b; + SDIO_DataInitStruct->SDIO_TransferDir = SDIO_TransferDir_ToCard; + SDIO_DataInitStruct->SDIO_TransferMode = SDIO_TransferMode_Block; + SDIO_DataInitStruct->SDIO_DPSM = SDIO_DPSM_Disable; +} + +/** + * @brief Returns number of remaining data bytes to be transferred. + * @param None + * @retval Number of remaining data bytes to be transferred + */ +uint32_t SDIO_GetDataCounter(void) +{ + return SDIO->DCOUNT; +} + +/** + * @brief Read one data word from Rx FIFO. + * @param None + * @retval Data received + */ +uint32_t SDIO_ReadData(void) +{ + return SDIO->FIFO; +} + +/** + * @brief Write one data word to Tx FIFO. + * @param Data: 32-bit data word to write. + * @retval None + */ +void SDIO_WriteData(uint32_t Data) +{ + SDIO->FIFO = Data; +} + +/** + * @brief Returns the number of words left to be written to or read from FIFO. + * @param None + * @retval Remaining number of words. + */ +uint32_t SDIO_GetFIFOCount(void) +{ + return SDIO->FIFOCNT; +} + +/** + * @} + */ + +/** @defgroup SDIO_Group4 SDIO IO Cards mode management functions + * @brief SDIO IO Cards mode management functions + * +@verbatim + =============================================================================== + SDIO IO Cards mode management functions + =============================================================================== + + This section provide functions allowing to program and read the SDIO IO Cards. + +@endverbatim + * @{ + */ + +/** + * @brief Starts the SD I/O Read Wait operation. + * @param NewState: new state of the Start SDIO Read Wait operation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_StartSDIOReadWait(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) DCTRL_RWSTART_BB = (uint32_t) NewState; +} + +/** + * @brief Stops the SD I/O Read Wait operation. + * @param NewState: new state of the Stop SDIO Read Wait operation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_StopSDIOReadWait(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) DCTRL_RWSTOP_BB = (uint32_t) NewState; +} + +/** + * @brief Sets one of the two options of inserting read wait interval. + * @param SDIO_ReadWaitMode: SD I/O Read Wait operation mode. + * This parameter can be: + * @arg SDIO_ReadWaitMode_CLK: Read Wait control by stopping SDIOCLK + * @arg SDIO_ReadWaitMode_DATA2: Read Wait control using SDIO_DATA2 + * @retval None + */ +void SDIO_SetSDIOReadWaitMode(uint32_t SDIO_ReadWaitMode) +{ + /* Check the parameters */ + assert_param(IS_SDIO_READWAIT_MODE(SDIO_ReadWaitMode)); + + *(__IO uint32_t *) DCTRL_RWMOD_BB = SDIO_ReadWaitMode; +} + +/** + * @brief Enables or disables the SD I/O Mode Operation. + * @param NewState: new state of SDIO specific operation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_SetSDIOOperation(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) DCTRL_SDIOEN_BB = (uint32_t)NewState; +} + +/** + * @brief Enables or disables the SD I/O Mode suspend command sending. + * @param NewState: new state of the SD I/O Mode suspend command. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_SendSDIOSuspendCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMD_SDIOSUSPEND_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup SDIO_Group5 CE-ATA mode management functions + * @brief CE-ATA mode management functions + * +@verbatim + =============================================================================== + CE-ATA mode management functions + =============================================================================== + + This section provide functions allowing to program and read the CE-ATA card. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the command completion signal. + * @param NewState: new state of command completion signal. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_CommandCompletionCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMD_ENCMDCOMPL_BB = (uint32_t)NewState; +} + +/** + * @brief Enables or disables the CE-ATA interrupt. + * @param NewState: new state of CE-ATA interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_CEATAITCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMD_NIEN_BB = (uint32_t)((~((uint32_t)NewState)) & ((uint32_t)0x1)); +} + +/** + * @brief Sends CE-ATA command (CMD61). + * @param NewState: new state of CE-ATA command. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_SendCEATACmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMD_ATACMD_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup SDIO_Group6 DMA transfers management functions + * @brief DMA transfers management functions + * +@verbatim + =============================================================================== + DMA transfers management functions + =============================================================================== + + This section provide functions allowing to program SDIO DMA transfer. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the SDIO DMA request. + * @param NewState: new state of the selected SDIO DMA request. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_DMACmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) DCTRL_DMAEN_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup SDIO_Group7 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the SDIO interrupts. + * @param SDIO_IT: specifies the SDIO interrupt sources to be enabled or disabled. + * This parameter can be one or a combination of the following values: + * @arg SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt + * @arg SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt + * @arg SDIO_IT_CTIMEOUT: Command response timeout interrupt + * @arg SDIO_IT_DTIMEOUT: Data timeout interrupt + * @arg SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt + * @arg SDIO_IT_RXOVERR: Received FIFO overrun error interrupt + * @arg SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt + * @arg SDIO_IT_CMDSENT: Command sent (no response required) interrupt + * @arg SDIO_IT_DATAEND: Data end (data counter, SDIDCOUNT, is zero) interrupt + * @arg SDIO_IT_STBITERR: Start bit not detected on all data signals in wide + * bus mode interrupt + * @arg SDIO_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt + * @arg SDIO_IT_CMDACT: Command transfer in progress interrupt + * @arg SDIO_IT_TXACT: Data transmit in progress interrupt + * @arg SDIO_IT_RXACT: Data receive in progress interrupt + * @arg SDIO_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt + * @arg SDIO_IT_RXFIFOHF: Receive FIFO Half Full interrupt + * @arg SDIO_IT_TXFIFOF: Transmit FIFO full interrupt + * @arg SDIO_IT_RXFIFOF: Receive FIFO full interrupt + * @arg SDIO_IT_TXFIFOE: Transmit FIFO empty interrupt + * @arg SDIO_IT_RXFIFOE: Receive FIFO empty interrupt + * @arg SDIO_IT_TXDAVL: Data available in transmit FIFO interrupt + * @arg SDIO_IT_RXDAVL: Data available in receive FIFO interrupt + * @arg SDIO_IT_SDIOIT: SD I/O interrupt received interrupt + * @arg SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61 interrupt + * @param NewState: new state of the specified SDIO interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_ITConfig(uint32_t SDIO_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SDIO_IT(SDIO_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the SDIO interrupts */ + SDIO->MASK |= SDIO_IT; + } + else + { + /* Disable the SDIO interrupts */ + SDIO->MASK &= ~SDIO_IT; + } +} + +/** + * @brief Checks whether the specified SDIO flag is set or not. + * @param SDIO_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg SDIO_FLAG_CCRCFAIL: Command response received (CRC check failed) + * @arg SDIO_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) + * @arg SDIO_FLAG_CTIMEOUT: Command response timeout + * @arg SDIO_FLAG_DTIMEOUT: Data timeout + * @arg SDIO_FLAG_TXUNDERR: Transmit FIFO underrun error + * @arg SDIO_FLAG_RXOVERR: Received FIFO overrun error + * @arg SDIO_FLAG_CMDREND: Command response received (CRC check passed) + * @arg SDIO_FLAG_CMDSENT: Command sent (no response required) + * @arg SDIO_FLAG_DATAEND: Data end (data counter, SDIDCOUNT, is zero) + * @arg SDIO_FLAG_STBITERR: Start bit not detected on all data signals in wide bus mode. + * @arg SDIO_FLAG_DBCKEND: Data block sent/received (CRC check passed) + * @arg SDIO_FLAG_CMDACT: Command transfer in progress + * @arg SDIO_FLAG_TXACT: Data transmit in progress + * @arg SDIO_FLAG_RXACT: Data receive in progress + * @arg SDIO_FLAG_TXFIFOHE: Transmit FIFO Half Empty + * @arg SDIO_FLAG_RXFIFOHF: Receive FIFO Half Full + * @arg SDIO_FLAG_TXFIFOF: Transmit FIFO full + * @arg SDIO_FLAG_RXFIFOF: Receive FIFO full + * @arg SDIO_FLAG_TXFIFOE: Transmit FIFO empty + * @arg SDIO_FLAG_RXFIFOE: Receive FIFO empty + * @arg SDIO_FLAG_TXDAVL: Data available in transmit FIFO + * @arg SDIO_FLAG_RXDAVL: Data available in receive FIFO + * @arg SDIO_FLAG_SDIOIT: SD I/O interrupt received + * @arg SDIO_FLAG_CEATAEND: CE-ATA command completion signal received for CMD61 + * @retval The new state of SDIO_FLAG (SET or RESET). + */ +FlagStatus SDIO_GetFlagStatus(uint32_t SDIO_FLAG) +{ + FlagStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_SDIO_FLAG(SDIO_FLAG)); + + if ((SDIO->STA & SDIO_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the SDIO's pending flags. + * @param SDIO_FLAG: specifies the flag to clear. + * This parameter can be one or a combination of the following values: + * @arg SDIO_FLAG_CCRCFAIL: Command response received (CRC check failed) + * @arg SDIO_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) + * @arg SDIO_FLAG_CTIMEOUT: Command response timeout + * @arg SDIO_FLAG_DTIMEOUT: Data timeout + * @arg SDIO_FLAG_TXUNDERR: Transmit FIFO underrun error + * @arg SDIO_FLAG_RXOVERR: Received FIFO overrun error + * @arg SDIO_FLAG_CMDREND: Command response received (CRC check passed) + * @arg SDIO_FLAG_CMDSENT: Command sent (no response required) + * @arg SDIO_FLAG_DATAEND: Data end (data counter, SDIDCOUNT, is zero) + * @arg SDIO_FLAG_STBITERR: Start bit not detected on all data signals in wide bus mode + * @arg SDIO_FLAG_DBCKEND: Data block sent/received (CRC check passed) + * @arg SDIO_FLAG_SDIOIT: SD I/O interrupt received + * @arg SDIO_FLAG_CEATAEND: CE-ATA command completion signal received for CMD61 + * @retval None + */ +void SDIO_ClearFlag(uint32_t SDIO_FLAG) +{ + /* Check the parameters */ + assert_param(IS_SDIO_CLEAR_FLAG(SDIO_FLAG)); + + SDIO->ICR = SDIO_FLAG; +} + +/** + * @brief Checks whether the specified SDIO interrupt has occurred or not. + * @param SDIO_IT: specifies the SDIO interrupt source to check. + * This parameter can be one of the following values: + * @arg SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt + * @arg SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt + * @arg SDIO_IT_CTIMEOUT: Command response timeout interrupt + * @arg SDIO_IT_DTIMEOUT: Data timeout interrupt + * @arg SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt + * @arg SDIO_IT_RXOVERR: Received FIFO overrun error interrupt + * @arg SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt + * @arg SDIO_IT_CMDSENT: Command sent (no response required) interrupt + * @arg SDIO_IT_DATAEND: Data end (data counter, SDIDCOUNT, is zero) interrupt + * @arg SDIO_IT_STBITERR: Start bit not detected on all data signals in wide + * bus mode interrupt + * @arg SDIO_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt + * @arg SDIO_IT_CMDACT: Command transfer in progress interrupt + * @arg SDIO_IT_TXACT: Data transmit in progress interrupt + * @arg SDIO_IT_RXACT: Data receive in progress interrupt + * @arg SDIO_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt + * @arg SDIO_IT_RXFIFOHF: Receive FIFO Half Full interrupt + * @arg SDIO_IT_TXFIFOF: Transmit FIFO full interrupt + * @arg SDIO_IT_RXFIFOF: Receive FIFO full interrupt + * @arg SDIO_IT_TXFIFOE: Transmit FIFO empty interrupt + * @arg SDIO_IT_RXFIFOE: Receive FIFO empty interrupt + * @arg SDIO_IT_TXDAVL: Data available in transmit FIFO interrupt + * @arg SDIO_IT_RXDAVL: Data available in receive FIFO interrupt + * @arg SDIO_IT_SDIOIT: SD I/O interrupt received interrupt + * @arg SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61 interrupt + * @retval The new state of SDIO_IT (SET or RESET). + */ +ITStatus SDIO_GetITStatus(uint32_t SDIO_IT) +{ + ITStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_SDIO_GET_IT(SDIO_IT)); + if ((SDIO->STA & SDIO_IT) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the SDIO's interrupt pending bits. + * @param SDIO_IT: specifies the interrupt pending bit to clear. + * This parameter can be one or a combination of the following values: + * @arg SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt + * @arg SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt + * @arg SDIO_IT_CTIMEOUT: Command response timeout interrupt + * @arg SDIO_IT_DTIMEOUT: Data timeout interrupt + * @arg SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt + * @arg SDIO_IT_RXOVERR: Received FIFO overrun error interrupt + * @arg SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt + * @arg SDIO_IT_CMDSENT: Command sent (no response required) interrupt + * @arg SDIO_IT_DATAEND: Data end (data counter, SDIO_DCOUNT, is zero) interrupt + * @arg SDIO_IT_STBITERR: Start bit not detected on all data signals in wide + * bus mode interrupt + * @arg SDIO_IT_SDIOIT: SD I/O interrupt received interrupt + * @arg SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61 + * @retval None + */ +void SDIO_ClearITPendingBit(uint32_t SDIO_IT) +{ + /* Check the parameters */ + assert_param(IS_SDIO_CLEAR_IT(SDIO_IT)); + + SDIO->ICR = SDIO_IT; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_spi.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_spi.c new file mode 100644 index 00000000..033475e6 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_spi.c @@ -0,0 +1,1183 @@ +/** + ****************************************************************************** + * @file stm32f2xx_spi.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Serial peripheral interface (SPI): + * - Initialization and Configuration + * - Data transfers functions + * - Hardware CRC Calculation + * - DMA transfers management + * - Interrupts and flags management + * + * @verbatim + * + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable peripheral clock using the following functions + * RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1, ENABLE) for SPI1 + * RCC_APB1PeriphClockCmd(RCC_APB1Periph_SPI2, ENABLE) for SPI2 + * RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI3, ENABLE) for SPI3. + * + * 2. Enable SCK, MOSI, MISO and NSS GPIO clocks using RCC_AHB1PeriphClockCmd() + * function. + * In I2S mode, if an external clock source is used then the I2S CKIN pin GPIO + * clock should also be enabled. + * + * 3. Peripherals alternate function: + * - Connect the pin to the desired peripherals' Alternate + * Function (AF) using GPIO_PinAFConfig() function + * - Configure the desired pin in alternate function by: + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * In I2S mode, if an external clock source is used then the I2S CKIN pin + * should be also configured in Alternate function Push-pull pull-up mode. + * + * 4. Program the Polarity, Phase, First Data, Baud Rate Prescaler, Slave + * Management, Peripheral Mode and CRC Polynomial values using the SPI_Init() + * function. + * In I2S mode, program the Mode, Standard, Data Format, MCLK Output, Audio + * frequency and Polarity using I2S_Init() function. + * For I2S mode, make sure that either: + * - I2S PLL is configured using the functions RCC_I2SCLKConfig(RCC_I2S2CLKSource_PLLI2S), + * RCC_PLLI2SCmd(ENABLE) and RCC_GetFlagStatus(RCC_FLAG_PLLI2SRDY). + * or + * - External clock source is configured using the function + * RCC_I2SCLKConfig(RCC_I2S2CLKSource_Ext) and after setting correctly the define constant + * I2S_EXTERNAL_CLOCK_VAL in the stm32f2xx_conf.h file. + * + * 5. Enable the NVIC and the corresponding interrupt using the function + * SPI_ITConfig() if you need to use interrupt mode. + * + * 6. When using the DMA mode + * - Configure the DMA using DMA_Init() function + * - Active the needed channel Request using SPI_I2S_DMACmd() function + * + * 7. Enable the SPI using the SPI_Cmd() function or enable the I2S using + * I2S_Cmd(). + * + * 8. Enable the DMA using the DMA_Cmd() function when using DMA mode. + * + * 9. Optionally, you can enable/configure the following parameters without + * re-initialization (i.e there is no need to call again SPI_Init() function): + * - When bidirectional mode (SPI_Direction_1Line_Rx or SPI_Direction_1Line_Tx) + * is programmed as Data direction parameter using the SPI_Init() function + * it can be possible to switch between SPI_Direction_Tx or SPI_Direction_Rx + * using the SPI_BiDirectionalLineConfig() function. + * - When SPI_NSS_Soft is selected as Slave Select Management parameter + * using the SPI_Init() function it can be possible to manage the + * NSS internal signal using the SPI_NSSInternalSoftwareConfig() function. + * - Reconfigure the data size using the SPI_DataSizeConfig() function + * - Enable or disable the SS output using the SPI_SSOutputCmd() function + * + * 10. To use the CRC Hardware calculation feature refer to the Peripheral + * CRC hardware Calculation subsection. + * + * + * @note This driver supports only the I2S clock scheme available in Silicon + * RevisionB and RevisionY. + * + * @note In I2S mode: if an external clock is used as source clock for the I2S, + * then the define I2S_EXTERNAL_CLOCK_VAL in file stm32f2xx_conf.h should + * be enabled and set to the value of the source clock frequency (in Hz). + * + * @note In SPI mode: To use the SPI TI mode, call the function SPI_TIModeCmd() + * just after calling the function SPI_Init(). + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_spi.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup SPI + * @brief SPI driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* SPI registers Masks */ +#define CR1_CLEAR_MASK ((uint16_t)0x3040) +#define I2SCFGR_CLEAR_MASK ((uint16_t)0xF040) + +/* RCC PLLs masks */ +#define PLLCFGR_PPLR_MASK ((uint32_t)0x70000000) +#define PLLCFGR_PPLN_MASK ((uint32_t)0x00007FC0) + +#define SPI_CR2_FRF ((uint16_t)0x0010) +#define SPI_SR_TIFRFE ((uint16_t)0x0100) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup SPI_Private_Functions + * @{ + */ + +/** @defgroup SPI_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + + This section provides a set of functions allowing to initialize the SPI Direction, + SPI Mode, SPI Data Size, SPI Polarity, SPI Phase, SPI NSS Management, SPI Baud + Rate Prescaler, SPI First Bit and SPI CRC Polynomial. + + The SPI_Init() function follows the SPI configuration procedures for Master mode + and Slave mode (details for these procedures are available in reference manual + (RM0033)). + +@endverbatim + * @{ + */ + +/** + * @brief Deinitialize the SPIx peripheral registers to their default reset values. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @retval None + */ +void SPI_I2S_DeInit(SPI_TypeDef* SPIx) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + if (SPIx == SPI1) + { + /* Enable SPI1 reset state */ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SPI1, ENABLE); + /* Release SPI1 from reset state */ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SPI1, DISABLE); + } + else if (SPIx == SPI2) + { + /* Enable SPI2 reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI2, ENABLE); + /* Release SPI2 from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI2, DISABLE); + } + else + { + if (SPIx == SPI3) + { + /* Enable SPI3 reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI3, ENABLE); + /* Release SPI3 from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI3, DISABLE); + } + } +} + +/** + * @brief Initializes the SPIx peripheral according to the specified + * parameters in the SPI_InitStruct. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_InitStruct: pointer to a SPI_InitTypeDef structure that + * contains the configuration information for the specified SPI peripheral. + * @retval None + */ +void SPI_Init(SPI_TypeDef* SPIx, SPI_InitTypeDef* SPI_InitStruct) +{ + uint16_t tmpreg = 0; + + /* check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Check the SPI parameters */ + assert_param(IS_SPI_DIRECTION_MODE(SPI_InitStruct->SPI_Direction)); + assert_param(IS_SPI_MODE(SPI_InitStruct->SPI_Mode)); + assert_param(IS_SPI_DATASIZE(SPI_InitStruct->SPI_DataSize)); + assert_param(IS_SPI_CPOL(SPI_InitStruct->SPI_CPOL)); + assert_param(IS_SPI_CPHA(SPI_InitStruct->SPI_CPHA)); + assert_param(IS_SPI_NSS(SPI_InitStruct->SPI_NSS)); + assert_param(IS_SPI_BAUDRATE_PRESCALER(SPI_InitStruct->SPI_BaudRatePrescaler)); + assert_param(IS_SPI_FIRST_BIT(SPI_InitStruct->SPI_FirstBit)); + assert_param(IS_SPI_CRC_POLYNOMIAL(SPI_InitStruct->SPI_CRCPolynomial)); + +/*---------------------------- SPIx CR1 Configuration ------------------------*/ + /* Get the SPIx CR1 value */ + tmpreg = SPIx->CR1; + /* Clear BIDIMode, BIDIOE, RxONLY, SSM, SSI, LSBFirst, BR, MSTR, CPOL and CPHA bits */ + tmpreg &= CR1_CLEAR_MASK; + /* Configure SPIx: direction, NSS management, first transmitted bit, BaudRate prescaler + master/salve mode, CPOL and CPHA */ + /* Set BIDImode, BIDIOE and RxONLY bits according to SPI_Direction value */ + /* Set SSM, SSI and MSTR bits according to SPI_Mode and SPI_NSS values */ + /* Set LSBFirst bit according to SPI_FirstBit value */ + /* Set BR bits according to SPI_BaudRatePrescaler value */ + /* Set CPOL bit according to SPI_CPOL value */ + /* Set CPHA bit according to SPI_CPHA value */ + tmpreg |= (uint16_t)((uint32_t)SPI_InitStruct->SPI_Direction | SPI_InitStruct->SPI_Mode | + SPI_InitStruct->SPI_DataSize | SPI_InitStruct->SPI_CPOL | + SPI_InitStruct->SPI_CPHA | SPI_InitStruct->SPI_NSS | + SPI_InitStruct->SPI_BaudRatePrescaler | SPI_InitStruct->SPI_FirstBit); + /* Write to SPIx CR1 */ + SPIx->CR1 = tmpreg; + + /* Activate the SPI mode (Reset I2SMOD bit in I2SCFGR register) */ + SPIx->I2SCFGR &= (uint16_t)~((uint16_t)SPI_I2SCFGR_I2SMOD); +/*---------------------------- SPIx CRCPOLY Configuration --------------------*/ + /* Write to SPIx CRCPOLY */ + SPIx->CRCPR = SPI_InitStruct->SPI_CRCPolynomial; +} + +/** + * @brief Initializes the SPIx peripheral according to the specified + * parameters in the I2S_InitStruct. + * @param SPIx: where x can be 2 or 3 to select the SPI peripheral (configured in I2S mode). + * @param I2S_InitStruct: pointer to an I2S_InitTypeDef structure that + * contains the configuration information for the specified SPI peripheral + * configured in I2S mode. + * + * @note The function calculates the optimal prescaler needed to obtain the most + * accurate audio frequency (depending on the I2S clock source, the PLL values + * and the product configuration). But in case the prescaler value is greater + * than 511, the default value (0x02) will be configured instead. + * + * @note if an external clock is used as source clock for the I2S, then the define + * I2S_EXTERNAL_CLOCK_VAL in file stm32f2xx_conf.h should be enabled and set + * to the value of the the source clock frequency (in Hz). + * + * @retval None + */ +void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct) +{ + uint16_t tmpreg = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; + uint32_t tmp = 0, i2sclk = 0; +#ifndef I2S_EXTERNAL_CLOCK_VAL + uint32_t pllm = 0, plln = 0, pllr = 0; +#endif /* I2S_EXTERNAL_CLOCK_VAL */ + + /* Check the I2S parameters */ + assert_param(IS_SPI_23_PERIPH(SPIx)); + assert_param(IS_I2S_MODE(I2S_InitStruct->I2S_Mode)); + assert_param(IS_I2S_STANDARD(I2S_InitStruct->I2S_Standard)); + assert_param(IS_I2S_DATA_FORMAT(I2S_InitStruct->I2S_DataFormat)); + assert_param(IS_I2S_MCLK_OUTPUT(I2S_InitStruct->I2S_MCLKOutput)); + assert_param(IS_I2S_AUDIO_FREQ(I2S_InitStruct->I2S_AudioFreq)); + assert_param(IS_I2S_CPOL(I2S_InitStruct->I2S_CPOL)); + +/*----------------------- SPIx I2SCFGR & I2SPR Configuration -----------------*/ + /* Clear I2SMOD, I2SE, I2SCFG, PCMSYNC, I2SSTD, CKPOL, DATLEN and CHLEN bits */ + SPIx->I2SCFGR &= I2SCFGR_CLEAR_MASK; + SPIx->I2SPR = 0x0002; + + /* Get the I2SCFGR register value */ + tmpreg = SPIx->I2SCFGR; + + /* If the default value has to be written, reinitialize i2sdiv and i2sodd*/ + if(I2S_InitStruct->I2S_AudioFreq == I2S_AudioFreq_Default) + { + i2sodd = (uint16_t)0; + i2sdiv = (uint16_t)2; + } + /* If the requested audio frequency is not the default, compute the prescaler */ + else + { + /* Check the frame length (For the Prescaler computing) *******************/ + if(I2S_InitStruct->I2S_DataFormat == I2S_DataFormat_16b) + { + /* Packet length is 16 bits */ + packetlength = 1; + } + else + { + /* Packet length is 32 bits */ + packetlength = 2; + } + + /* Get I2S source Clock frequency (only in Silicon RevisionB and RevisionY) */ + + /* If an external I2S clock has to be used, this define should be set + in the project configuration or in the stm32f2xx_conf.h file */ + #ifdef I2S_EXTERNAL_CLOCK_VAL + /* Set external clock as I2S clock source */ + if ((RCC->CFGR & RCC_CFGR_I2SSRC) == 0) + { + RCC->CFGR |= (uint32_t)RCC_CFGR_I2SSRC; + } + + /* Set the I2S clock to the external clock value */ + i2sclk = I2S_EXTERNAL_CLOCK_VAL; + + #else /* There is no define for External I2S clock source */ + /* Set PLLI2S as I2S clock source */ + if ((RCC->CFGR & RCC_CFGR_I2SSRC) != 0) + { + RCC->CFGR &= ~(uint32_t)RCC_CFGR_I2SSRC; + } + + /* Get the PLLI2SN value */ + plln = (uint32_t)(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6) & \ + (RCC_PLLI2SCFGR_PLLI2SN >> 6)); + + /* Get the PLLI2SR value */ + pllr = (uint32_t)(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28) & \ + (RCC_PLLI2SCFGR_PLLI2SR >> 28)); + + /* Get the PLLM value */ + pllm = (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM); + + /* Get the I2S source clock value */ + i2sclk = (uint32_t)(((HSE_VALUE / pllm) * plln) / pllr); + #endif /* I2S_EXTERNAL_CLOCK_VAL */ + + /* Compute the Real divider depending on the MCLK output state, with a floating point */ + if(I2S_InitStruct->I2S_MCLKOutput == I2S_MCLKOutput_Enable) + { + /* MCLK output is enabled */ + tmp = (uint16_t)(((((i2sclk / 256) * 10) / I2S_InitStruct->I2S_AudioFreq)) + 5); + } + else + { + /* MCLK output is disabled */ + tmp = (uint16_t)(((((i2sclk / (32 * packetlength)) *10 ) / I2S_InitStruct->I2S_AudioFreq)) + 5); + } + + /* Remove the flatting point */ + tmp = tmp / 10; + + /* Check the parity of the divider */ + i2sodd = (uint16_t)(tmp & (uint16_t)0x0001); + + /* Compute the i2sdiv prescaler */ + i2sdiv = (uint16_t)((tmp - i2sodd) / 2); + + /* Get the Mask for the Odd bit (SPI_I2SPR[8]) register */ + i2sodd = (uint16_t) (i2sodd << 8); + } + + /* Test if the divider is 1 or 0 or greater than 0xFF */ + if ((i2sdiv < 2) || (i2sdiv > 0xFF)) + { + /* Set the default values */ + i2sdiv = 2; + i2sodd = 0; + } + + /* Write to SPIx I2SPR register the computed value */ + SPIx->I2SPR = (uint16_t)((uint16_t)i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->I2S_MCLKOutput)); + + /* Configure the I2S with the SPI_InitStruct values */ + tmpreg |= (uint16_t)((uint16_t)SPI_I2SCFGR_I2SMOD | (uint16_t)(I2S_InitStruct->I2S_Mode | \ + (uint16_t)(I2S_InitStruct->I2S_Standard | (uint16_t)(I2S_InitStruct->I2S_DataFormat | \ + (uint16_t)I2S_InitStruct->I2S_CPOL)))); + + /* Write to SPIx I2SCFGR */ + SPIx->I2SCFGR = tmpreg; +} + +/** + * @brief Fills each SPI_InitStruct member with its default value. + * @param SPI_InitStruct: pointer to a SPI_InitTypeDef structure which will be initialized. + * @retval None + */ +void SPI_StructInit(SPI_InitTypeDef* SPI_InitStruct) +{ +/*--------------- Reset SPI init structure parameters values -----------------*/ + /* Initialize the SPI_Direction member */ + SPI_InitStruct->SPI_Direction = SPI_Direction_2Lines_FullDuplex; + /* initialize the SPI_Mode member */ + SPI_InitStruct->SPI_Mode = SPI_Mode_Slave; + /* initialize the SPI_DataSize member */ + SPI_InitStruct->SPI_DataSize = SPI_DataSize_8b; + /* Initialize the SPI_CPOL member */ + SPI_InitStruct->SPI_CPOL = SPI_CPOL_Low; + /* Initialize the SPI_CPHA member */ + SPI_InitStruct->SPI_CPHA = SPI_CPHA_1Edge; + /* Initialize the SPI_NSS member */ + SPI_InitStruct->SPI_NSS = SPI_NSS_Hard; + /* Initialize the SPI_BaudRatePrescaler member */ + SPI_InitStruct->SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_2; + /* Initialize the SPI_FirstBit member */ + SPI_InitStruct->SPI_FirstBit = SPI_FirstBit_MSB; + /* Initialize the SPI_CRCPolynomial member */ + SPI_InitStruct->SPI_CRCPolynomial = 7; +} + +/** + * @brief Fills each I2S_InitStruct member with its default value. + * @param I2S_InitStruct: pointer to a I2S_InitTypeDef structure which will be initialized. + * @retval None + */ +void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct) +{ +/*--------------- Reset I2S init structure parameters values -----------------*/ + /* Initialize the I2S_Mode member */ + I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx; + + /* Initialize the I2S_Standard member */ + I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips; + + /* Initialize the I2S_DataFormat member */ + I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b; + + /* Initialize the I2S_MCLKOutput member */ + I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable; + + /* Initialize the I2S_AudioFreq member */ + I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default; + + /* Initialize the I2S_CPOL member */ + I2S_InitStruct->I2S_CPOL = I2S_CPOL_Low; +} + +/** + * @brief Enables or disables the specified SPI peripheral. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param NewState: new state of the SPIx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected SPI peripheral */ + SPIx->CR1 |= SPI_CR1_SPE; + } + else + { + /* Disable the selected SPI peripheral */ + SPIx->CR1 &= (uint16_t)~((uint16_t)SPI_CR1_SPE); + } +} + +/** + * @brief Enables or disables the specified SPI peripheral (in I2S mode). + * @param SPIx: where x can be 2 or 3 to select the SPI peripheral. + * @param NewState: new state of the SPIx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_23_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected SPI peripheral (in I2S mode) */ + SPIx->I2SCFGR |= SPI_I2SCFGR_I2SE; + } + else + { + /* Disable the selected SPI peripheral in I2S mode */ + SPIx->I2SCFGR &= (uint16_t)~((uint16_t)SPI_I2SCFGR_I2SE); + } +} + +/** + * @brief Configures the data size for the selected SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_DataSize: specifies the SPI data size. + * This parameter can be one of the following values: + * @arg SPI_DataSize_16b: Set data frame format to 16bit + * @arg SPI_DataSize_8b: Set data frame format to 8bit + * @retval None + */ +void SPI_DataSizeConfig(SPI_TypeDef* SPIx, uint16_t SPI_DataSize) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_DATASIZE(SPI_DataSize)); + /* Clear DFF bit */ + SPIx->CR1 &= (uint16_t)~SPI_DataSize_16b; + /* Set new DFF bit value */ + SPIx->CR1 |= SPI_DataSize; +} + +/** + * @brief Selects the data transfer direction in bidirectional mode for the specified SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_Direction: specifies the data transfer direction in bidirectional mode. + * This parameter can be one of the following values: + * @arg SPI_Direction_Tx: Selects Tx transmission direction + * @arg SPI_Direction_Rx: Selects Rx receive direction + * @retval None + */ +void SPI_BiDirectionalLineConfig(SPI_TypeDef* SPIx, uint16_t SPI_Direction) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_DIRECTION(SPI_Direction)); + if (SPI_Direction == SPI_Direction_Tx) + { + /* Set the Tx only mode */ + SPIx->CR1 |= SPI_Direction_Tx; + } + else + { + /* Set the Rx only mode */ + SPIx->CR1 &= SPI_Direction_Rx; + } +} + +/** + * @brief Configures internally by software the NSS pin for the selected SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_NSSInternalSoft: specifies the SPI NSS internal state. + * This parameter can be one of the following values: + * @arg SPI_NSSInternalSoft_Set: Set NSS pin internally + * @arg SPI_NSSInternalSoft_Reset: Reset NSS pin internally + * @retval None + */ +void SPI_NSSInternalSoftwareConfig(SPI_TypeDef* SPIx, uint16_t SPI_NSSInternalSoft) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_NSS_INTERNAL(SPI_NSSInternalSoft)); + if (SPI_NSSInternalSoft != SPI_NSSInternalSoft_Reset) + { + /* Set NSS pin internally by software */ + SPIx->CR1 |= SPI_NSSInternalSoft_Set; + } + else + { + /* Reset NSS pin internally by software */ + SPIx->CR1 &= SPI_NSSInternalSoft_Reset; + } +} + +/** + * @brief Enables or disables the SS output for the selected SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param NewState: new state of the SPIx SS output. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_SSOutputCmd(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected SPI SS output */ + SPIx->CR2 |= (uint16_t)SPI_CR2_SSOE; + } + else + { + /* Disable the selected SPI SS output */ + SPIx->CR2 &= (uint16_t)~((uint16_t)SPI_CR2_SSOE); + } +} + +/** + * @brief Enables or disables the SPIx/I2Sx DMA interface. + * + * @note This function can be called only after the SPI_Init() function has + * been called. + * @note When TI mode is selected, the control bits SSM, SSI, CPOL and CPHA + * are not taken into consideration and are configured by hardware + * respectively to the TI mode requirements. + * + * @param SPIx: where x can be 1, 2 or 3 + * @param NewState: new state of the selected SPI TI communication mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_TIModeCmd(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the TI mode for the selected SPI peripheral */ + SPIx->CR2 |= SPI_CR2_FRF; + } + else + { + /* Disable the TI mode for the selected SPI peripheral */ + SPIx->CR2 &= (uint16_t)~SPI_CR2_FRF; + } +} + +/** + * @} + */ + +/** @defgroup SPI_Group2 Data transfers functions + * @brief Data transfers functions + * +@verbatim + =============================================================================== + Data transfers functions + =============================================================================== + + This section provides a set of functions allowing to manage the SPI data transfers + + In reception, data are received and then stored into an internal Rx buffer while + In transmission, data are first stored into an internal Tx buffer before being + transmitted. + + The read access of the SPI_DR register can be done using the SPI_I2S_ReceiveData() + function and returns the Rx buffered value. Whereas a write access to the SPI_DR + can be done using SPI_I2S_SendData() function and stores the written data into + Tx buffer. + +@endverbatim + * @{ + */ + +/** + * @brief Returns the most recent received data by the SPIx/I2Sx peripheral. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @retval The value of the received data. + */ +uint16_t SPI_I2S_ReceiveData(SPI_TypeDef* SPIx) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Return the data in the DR register */ + return SPIx->DR; +} + +/** + * @brief Transmits a Data through the SPIx/I2Sx peripheral. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param Data: Data to be transmitted. + * @retval None + */ +void SPI_I2S_SendData(SPI_TypeDef* SPIx, uint16_t Data) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Write in the DR register the data to be sent */ + SPIx->DR = Data; +} + +/** + * @} + */ + +/** @defgroup SPI_Group3 Hardware CRC Calculation functions + * @brief Hardware CRC Calculation functions + * +@verbatim + =============================================================================== + Hardware CRC Calculation functions + =============================================================================== + + This section provides a set of functions allowing to manage the SPI CRC hardware + calculation + + SPI communication using CRC is possible through the following procedure: + 1. Program the Data direction, Polarity, Phase, First Data, Baud Rate Prescaler, + Slave Management, Peripheral Mode and CRC Polynomial values using the SPI_Init() + function. + 2. Enable the CRC calculation using the SPI_CalculateCRC() function. + 3. Enable the SPI using the SPI_Cmd() function + 4. Before writing the last data to the TX buffer, set the CRCNext bit using the + SPI_TransmitCRC() function to indicate that after transmission of the last + data, the CRC should be transmitted. + 5. After transmitting the last data, the SPI transmits the CRC. The SPI_CR1_CRCNEXT + bit is reset. The CRC is also received and compared against the SPI_RXCRCR + value. + If the value does not match, the SPI_FLAG_CRCERR flag is set and an interrupt + can be generated when the SPI_I2S_IT_ERR interrupt is enabled. + +@note It is advised not to read the calculated CRC values during the communication. + +@note When the SPI is in slave mode, be careful to enable CRC calculation only + when the clock is stable, that is, when the clock is in the steady state. + If not, a wrong CRC calculation may be done. In fact, the CRC is sensitive + to the SCK slave input clock as soon as CRCEN is set, and this, whatever + the value of the SPE bit. + +@note With high bitrate frequencies, be careful when transmitting the CRC. + As the number of used CPU cycles has to be as low as possible in the CRC + transfer phase, it is forbidden to call software functions in the CRC + transmission sequence to avoid errors in the last data and CRC reception. + In fact, CRCNEXT bit has to be written before the end of the transmission/reception + of the last data. + +@note For high bit rate frequencies, it is advised to use the DMA mode to avoid the + degradation of the SPI speed performance due to CPU accesses impacting the + SPI bandwidth. + +@note When the STM32F2xx is configured as slave and the NSS hardware mode is + used, the NSS pin needs to be kept low between the data phase and the CRC + phase. + +@note When the SPI is configured in slave mode with the CRC feature enabled, CRC + calculation takes place even if a high level is applied on the NSS pin. + This may happen for example in case of a multi-slave environment where the + communication master addresses slaves alternately. + +@note Between a slave de-selection (high level on NSS) and a new slave selection + (low level on NSS), the CRC value should be cleared on both master and slave + sides in order to resynchronize the master and slave for their respective + CRC calculation. + +@note To clear the CRC, follow the procedure below: + 1. Disable SPI using the SPI_Cmd() function + 2. Disable the CRC calculation using the SPI_CalculateCRC() function. + 3. Enable the CRC calculation using the SPI_CalculateCRC() function. + 4. Enable SPI using the SPI_Cmd() function. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the CRC value calculation of the transferred bytes. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param NewState: new state of the SPIx CRC value calculation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_CalculateCRC(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected SPI CRC calculation */ + SPIx->CR1 |= SPI_CR1_CRCEN; + } + else + { + /* Disable the selected SPI CRC calculation */ + SPIx->CR1 &= (uint16_t)~((uint16_t)SPI_CR1_CRCEN); + } +} + +/** + * @brief Transmit the SPIx CRC value. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @retval None + */ +void SPI_TransmitCRC(SPI_TypeDef* SPIx) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Enable the selected SPI CRC transmission */ + SPIx->CR1 |= SPI_CR1_CRCNEXT; +} + +/** + * @brief Returns the transmit or the receive CRC register value for the specified SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_CRC: specifies the CRC register to be read. + * This parameter can be one of the following values: + * @arg SPI_CRC_Tx: Selects Tx CRC register + * @arg SPI_CRC_Rx: Selects Rx CRC register + * @retval The selected CRC register value.. + */ +uint16_t SPI_GetCRC(SPI_TypeDef* SPIx, uint8_t SPI_CRC) +{ + uint16_t crcreg = 0; + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_CRC(SPI_CRC)); + if (SPI_CRC != SPI_CRC_Rx) + { + /* Get the Tx CRC register */ + crcreg = SPIx->TXCRCR; + } + else + { + /* Get the Rx CRC register */ + crcreg = SPIx->RXCRCR; + } + /* Return the selected CRC register */ + return crcreg; +} + +/** + * @brief Returns the CRC Polynomial register value for the specified SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @retval The CRC Polynomial register value. + */ +uint16_t SPI_GetCRCPolynomial(SPI_TypeDef* SPIx) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Return the CRC polynomial register */ + return SPIx->CRCPR; +} + +/** + * @} + */ + +/** @defgroup SPI_Group4 DMA transfers management functions + * @brief DMA transfers management functions + * +@verbatim + =============================================================================== + DMA transfers management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the SPIx/I2Sx DMA interface. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_DMAReq: specifies the SPI DMA transfer request to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg SPI_I2S_DMAReq_Tx: Tx buffer DMA transfer request + * @arg SPI_I2S_DMAReq_Rx: Rx buffer DMA transfer request + * @param NewState: new state of the selected SPI DMA transfer request. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_SPI_I2S_DMAREQ(SPI_I2S_DMAReq)); + + if (NewState != DISABLE) + { + /* Enable the selected SPI DMA requests */ + SPIx->CR2 |= SPI_I2S_DMAReq; + } + else + { + /* Disable the selected SPI DMA requests */ + SPIx->CR2 &= (uint16_t)~SPI_I2S_DMAReq; + } +} + +/** + * @} + */ + +/** @defgroup SPI_Group5 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides a set of functions allowing to configure the SPI Interrupts + sources and check or clear the flags or pending bits status. + The user should identify which mode will be used in his application to manage + the communication: Polling mode, Interrupt mode or DMA mode. + + Polling Mode + ============= + In Polling Mode, the SPI/I2S communication can be managed by 9 flags: + 1. SPI_I2S_FLAG_TXE : to indicate the status of the transmit buffer register + 2. SPI_I2S_FLAG_RXNE : to indicate the status of the receive buffer register + 3. SPI_I2S_FLAG_BSY : to indicate the state of the communication layer of the SPI. + 4. SPI_FLAG_CRCERR : to indicate if a CRC Calculation error occur + 5. SPI_FLAG_MODF : to indicate if a Mode Fault error occur + 6. SPI_I2S_FLAG_OVR : to indicate if an Overrun error occur + 7. I2S_FLAG_TIFRFE: to indicate a Frame Format error occurs. + 8. I2S_FLAG_UDR: to indicate an Underrun error occurs. + 9. I2S_FLAG_CHSIDE: to indicate Channel Side. + +@note Do not use the BSY flag to handle each data transmission or reception. It is + better to use the TXE and RXNE flags instead. + + In this Mode it is advised to use the following functions: + - FlagStatus SPI_I2S_GetFlagStatus(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG); + - void SPI_I2S_ClearFlag(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG); + + Interrupt Mode + =============== + In Interrupt Mode, the SPI communication can be managed by 3 interrupt sources + and 7 pending bits: + Pending Bits: + ------------- + 1. SPI_I2S_IT_TXE : to indicate the status of the transmit buffer register + 2. SPI_I2S_IT_RXNE : to indicate the status of the receive buffer register + 3. SPI_IT_CRCERR : to indicate if a CRC Calculation error occur (available in SPI mode only) + 4. SPI_IT_MODF : to indicate if a Mode Fault error occur (available in SPI mode only) + 5. SPI_I2S_IT_OVR : to indicate if an Overrun error occur + 6. I2S_IT_UDR : to indicate an Underrun Error occurs (available in I2S mode only). + 7. I2S_FLAG_TIFRFE : to indicate a Frame Format error occurs (available in TI mode only). + + Interrupt Source: + ----------------- + 1. SPI_I2S_IT_TXE: specifies the interrupt source for the Tx buffer empty + interrupt. + 2. SPI_I2S_IT_RXNE : specifies the interrupt source for the Rx buffer not + empty interrupt. + 3. SPI_I2S_IT_ERR : specifies the interrupt source for the errors interrupt. + + In this Mode it is advised to use the following functions: + - void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState); + - ITStatus SPI_I2S_GetITStatus(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT); + - void SPI_I2S_ClearITPendingBit(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT); + + DMA Mode + ======== + In DMA Mode, the SPI communication can be managed by 2 DMA Channel requests: + 1. SPI_I2S_DMAReq_Tx: specifies the Tx buffer DMA transfer request + 2. SPI_I2S_DMAReq_Rx: specifies the Rx buffer DMA transfer request + + In this Mode it is advised to use the following function: + - void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState); + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified SPI/I2S interrupts. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_IT: specifies the SPI interrupt source to be enabled or disabled. + * This parameter can be one of the following values: + * @arg SPI_I2S_IT_TXE: Tx buffer empty interrupt mask + * @arg SPI_I2S_IT_RXNE: Rx buffer not empty interrupt mask + * @arg SPI_I2S_IT_ERR: Error interrupt mask + * @param NewState: new state of the specified SPI interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState) +{ + uint16_t itpos = 0, itmask = 0 ; + + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_SPI_I2S_CONFIG_IT(SPI_I2S_IT)); + + /* Get the SPI IT index */ + itpos = SPI_I2S_IT >> 4; + + /* Set the IT mask */ + itmask = (uint16_t)1 << (uint16_t)itpos; + + if (NewState != DISABLE) + { + /* Enable the selected SPI interrupt */ + SPIx->CR2 |= itmask; + } + else + { + /* Disable the selected SPI interrupt */ + SPIx->CR2 &= (uint16_t)~itmask; + } +} + +/** + * @brief Checks whether the specified SPIx/I2Sx flag is set or not. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_FLAG: specifies the SPI flag to check. + * This parameter can be one of the following values: + * @arg SPI_I2S_FLAG_TXE: Transmit buffer empty flag. + * @arg SPI_I2S_FLAG_RXNE: Receive buffer not empty flag. + * @arg SPI_I2S_FLAG_BSY: Busy flag. + * @arg SPI_I2S_FLAG_OVR: Overrun flag. + * @arg SPI_FLAG_MODF: Mode Fault flag. + * @arg SPI_FLAG_CRCERR: CRC Error flag. + * @arg SPI_I2S_FLAG_TIFRFE: Format Error. + * @arg I2S_FLAG_UDR: Underrun Error flag. + * @arg I2S_FLAG_CHSIDE: Channel Side flag. + * @retval The new state of SPI_I2S_FLAG (SET or RESET). + */ +FlagStatus SPI_I2S_GetFlagStatus(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_I2S_GET_FLAG(SPI_I2S_FLAG)); + + /* Check the status of the specified SPI flag */ + if ((SPIx->SR & SPI_I2S_FLAG) != (uint16_t)RESET) + { + /* SPI_I2S_FLAG is set */ + bitstatus = SET; + } + else + { + /* SPI_I2S_FLAG is reset */ + bitstatus = RESET; + } + /* Return the SPI_I2S_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the SPIx CRC Error (CRCERR) flag. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_FLAG: specifies the SPI flag to clear. + * This function clears only CRCERR flag. + * @arg SPI_FLAG_CRCERR: CRC Error flag. + * + * @note OVR (OverRun error) flag is cleared by software sequence: a read + * operation to SPI_DR register (SPI_I2S_ReceiveData()) followed by a read + * operation to SPI_SR register (SPI_I2S_GetFlagStatus()). + * @note UDR (UnderRun error) flag is cleared by a read operation to + * SPI_SR register (SPI_I2S_GetFlagStatus()). + * @note MODF (Mode Fault) flag is cleared by software sequence: a read/write + * operation to SPI_SR register (SPI_I2S_GetFlagStatus()) followed by a + * write operation to SPI_CR1 register (SPI_Cmd() to enable the SPI). + * + * @retval None + */ +void SPI_I2S_ClearFlag(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_I2S_CLEAR_FLAG(SPI_I2S_FLAG)); + + /* Clear the selected SPI CRC Error (CRCERR) flag */ + SPIx->SR = (uint16_t)~SPI_I2S_FLAG; +} + +/** + * @brief Checks whether the specified SPIx/I2Sx interrupt has occurred or not. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_IT: specifies the SPI interrupt source to check. + * This parameter can be one of the following values: + * @arg SPI_I2S_IT_TXE: Transmit buffer empty interrupt. + * @arg SPI_I2S_IT_RXNE: Receive buffer not empty interrupt. + * @arg SPI_I2S_IT_OVR: Overrun interrupt. + * @arg SPI_IT_MODF: Mode Fault interrupt. + * @arg SPI_IT_CRCERR: CRC Error interrupt. + * @arg I2S_IT_UDR: Underrun interrupt. + * @arg SPI_I2S_IT_TIFRFE: Format Error interrupt. + * @retval The new state of SPI_I2S_IT (SET or RESET). + */ +ITStatus SPI_I2S_GetITStatus(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT) +{ + ITStatus bitstatus = RESET; + uint16_t itpos = 0, itmask = 0, enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_I2S_GET_IT(SPI_I2S_IT)); + + /* Get the SPI_I2S_IT index */ + itpos = 0x01 << (SPI_I2S_IT & 0x0F); + + /* Get the SPI_I2S_IT IT mask */ + itmask = SPI_I2S_IT >> 4; + + /* Set the IT mask */ + itmask = 0x01 << itmask; + + /* Get the SPI_I2S_IT enable bit status */ + enablestatus = (SPIx->CR2 & itmask) ; + + /* Check the status of the specified SPI interrupt */ + if (((SPIx->SR & itpos) != (uint16_t)RESET) && enablestatus) + { + /* SPI_I2S_IT is set */ + bitstatus = SET; + } + else + { + /* SPI_I2S_IT is reset */ + bitstatus = RESET; + } + /* Return the SPI_I2S_IT status */ + return bitstatus; +} + +/** + * @brief Clears the SPIx CRC Error (CRCERR) interrupt pending bit. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_IT: specifies the SPI interrupt pending bit to clear. + * This function clears only CRCERR interrupt pending bit. + * @arg SPI_IT_CRCERR: CRC Error interrupt. + * + * @note OVR (OverRun Error) interrupt pending bit is cleared by software + * sequence: a read operation to SPI_DR register (SPI_I2S_ReceiveData()) + * followed by a read operation to SPI_SR register (SPI_I2S_GetITStatus()). + * @note UDR (UnderRun Error) interrupt pending bit is cleared by a read + * operation to SPI_SR register (SPI_I2S_GetITStatus()). + * @note MODF (Mode Fault) interrupt pending bit is cleared by software sequence: + * a read/write operation to SPI_SR register (SPI_I2S_GetITStatus()) + * followed by a write operation to SPI_CR1 register (SPI_Cmd() to enable + * the SPI). + * @retval None + */ +void SPI_I2S_ClearITPendingBit(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT) +{ + uint16_t itpos = 0; + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_I2S_CLEAR_IT(SPI_I2S_IT)); + + /* Get the SPI_I2S IT index */ + itpos = 0x01 << (SPI_I2S_IT & 0x0F); + + /* Clear the selected SPI CRC Error (CRCERR) interrupt pending bit */ + SPIx->SR = (uint16_t)~itpos; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_syscfg.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_syscfg.c new file mode 100644 index 00000000..83c9da67 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_syscfg.c @@ -0,0 +1,210 @@ +/** + ****************************************************************************** + * @file stm32f2xx_syscfg.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the SYSCFG peripheral. + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * + * This driver provides functions for: + * + * 1. Remapping the memory accessible in the code area using SYSCFG_MemoryRemapConfig() + * + * 2. Manage the EXTI lines connection to the GPIOs using SYSCFG_EXTILineConfig() + * + * 3. Select the ETHERNET media interface (RMII/RII) using SYSCFG_ETH_MediaInterfaceConfig() + * + * @note SYSCFG APB clock must be enabled to get write access to SYSCFG registers, + * using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_syscfg.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup SYSCFG + * @brief SYSCFG driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* ------------ RCC registers bit address in the alias region ----------- */ +#define SYSCFG_OFFSET (SYSCFG_BASE - PERIPH_BASE) +/* --- PMC Register ---*/ +/* Alias word address of MII_RMII_SEL bit */ +#define PMC_OFFSET (SYSCFG_OFFSET + 0x04) +#define MII_RMII_SEL_BitNumber ((uint8_t)0x17) +#define PMC_MII_RMII_SEL_BB (PERIPH_BB_BASE + (PMC_OFFSET * 32) + (MII_RMII_SEL_BitNumber * 4)) + +/* --- CMPCR Register ---*/ +/* Alias word address of CMP_PD bit */ +#define CMPCR_OFFSET (SYSCFG_OFFSET + 0x20) +#define CMP_PD_BitNumber ((uint8_t)0x00) +#define CMPCR_CMP_PD_BB (PERIPH_BB_BASE + (CMPCR_OFFSET * 32) + (CMP_PD_BitNumber * 4)) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup SYSCFG_Private_Functions + * @{ + */ + +/** + * @brief Deinitializes the Alternate Functions (remap and EXTI configuration) + * registers to their default reset values. + * @param None + * @retval None + */ +void SYSCFG_DeInit(void) +{ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, DISABLE); +} + +/** + * @brief Changes the mapping of the specified pin. + * @param SYSCFG_Memory: selects the memory remapping. + * This parameter can be one of the following values: + * @arg SYSCFG_MemoryRemap_Flash: Main Flash memory mapped at 0x00000000 + * @arg SYSCFG_MemoryRemap_SystemFlash: System Flash memory mapped at 0x00000000 + * @arg SYSCFG_MemoryRemap_FSMC: FSMC (Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 + * @arg SYSCFG_MemoryRemap_SRAM: Embedded SRAM (112kB) mapped at 0x00000000 + * + * @note In remap mode, the FSMC addressing is fixed to the remap address area only + * (Bank1 NOR/PSRAM 1 and NOR/PSRAM 2) and FSMC control registers are not + * accessible. The FSMC remap function must be disabled to allows addressing + * other memory devices through the FSMC and/or to access FSMC control + * registers. + * + * @retval None + */ +void SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap) +{ + /* Check the parameters */ + assert_param(IS_SYSCFG_MEMORY_REMAP_CONFING(SYSCFG_MemoryRemap)); + + SYSCFG->MEMRMP = SYSCFG_MemoryRemap; +} + +/** + * @brief Selects the GPIO pin used as EXTI Line. + * @param EXTI_PortSourceGPIOx : selects the GPIO port to be used as source for + * EXTI lines where x can be (A..I). + * @param EXTI_PinSourcex: specifies the EXTI line to be configured. + * This parameter can be EXTI_PinSourcex where x can be (0..15, except + * for EXTI_PortSourceGPIOI x can be (0..11). + * @retval None + */ +void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex) +{ + uint32_t tmp = 0x00; + + /* Check the parameters */ + assert_param(IS_EXTI_PORT_SOURCE(EXTI_PortSourceGPIOx)); + assert_param(IS_EXTI_PIN_SOURCE(EXTI_PinSourcex)); + + tmp = ((uint32_t)0x0F) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03)); + SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] &= ~tmp; + SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] |= (((uint32_t)EXTI_PortSourceGPIOx) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03))); +} + +/** + * @brief Selects the ETHERNET media interface + * @param SYSCFG_ETH_MediaInterface: specifies the Media Interface mode. + * This parameter can be one of the following values: + * @arg SYSCFG_ETH_MediaInterface_MII: MII mode selected + * @arg SYSCFG_ETH_MediaInterface_RMII: RMII mode selected + * @retval None + */ +void SYSCFG_ETH_MediaInterfaceConfig(uint32_t SYSCFG_ETH_MediaInterface) +{ + assert_param(IS_SYSCFG_ETH_MEDIA_INTERFACE(SYSCFG_ETH_MediaInterface)); + /* Configure MII_RMII selection bit */ + *(__IO uint32_t *) PMC_MII_RMII_SEL_BB = SYSCFG_ETH_MediaInterface; +} + +/** + * @brief Enables or disables the I/O Compensation Cell. + * @note The I/O compensation cell can be used only when the device supply + * voltage ranges from 2.4 to 3.6 V. + * @param NewState: new state of the I/O Compensation Cell. + * This parameter can be one of the following values: + * @arg ENABLE: I/O compensation cell enabled + * @arg DISABLE: I/O compensation cell power-down mode + * @retval None + */ +void SYSCFG_CompensationCellCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMPCR_CMP_PD_BB = (uint32_t)NewState; +} + +/** + * @brief Checks whether the I/O Compensation Cell ready flag is set or not. + * @param None + * @retval The new state of the I/O Compensation Cell ready flag (SET or RESET) + */ +FlagStatus SYSCFG_GetCompensationCellStatus(void) +{ + FlagStatus bitstatus = RESET; + + if ((SYSCFG->CMPCR & SYSCFG_CMPCR_READY ) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_tim.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_tim.c new file mode 100644 index 00000000..a9f6e6b1 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_tim.c @@ -0,0 +1,3358 @@ +/** + ****************************************************************************** + * @file stm32f2xx_tim.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the TIM peripheral: + * - TimeBase management + * - Output Compare management + * - Input Capture management + * - Advanced-control timers (TIM1 and TIM8) specific features + * - Interrupts, DMA and flags management + * - Clocks management + * - Synchronization management + * - Specific interface management + * - Specific remapping management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * This driver provides functions to configure and program the TIM + * of all STM32F2xx devices. + * These functions are split in 9 groups: + * + * 1. TIM TimeBase management: this group includes all needed functions + * to configure the TM Timebase unit: + * - Set/Get Prescaler + * - Set/Get Autoreload + * - Counter modes configuration + * - Set Clock division + * - Select the One Pulse mode + * - Update Request Configuration + * - Update Disable Configuration + * - Auto-Preload Configuration + * - Enable/Disable the counter + * + * 2. TIM Output Compare management: this group includes all needed + * functions to configure the Capture/Compare unit used in Output + * compare mode: + * - Configure each channel, independently, in Output Compare mode + * - Select the output compare modes + * - Select the Polarities of each channel + * - Set/Get the Capture/Compare register values + * - Select the Output Compare Fast mode + * - Select the Output Compare Forced mode + * - Output Compare-Preload Configuration + * - Clear Output Compare Reference + * - Select the OCREF Clear signal + * - Enable/Disable the Capture/Compare Channels + * + * 3. TIM Input Capture management: this group includes all needed + * functions to configure the Capture/Compare unit used in + * Input Capture mode: + * - Configure each channel in input capture mode + * - Configure Channel1/2 in PWM Input mode + * - Set the Input Capture Prescaler + * - Get the Capture/Compare values + * + * 4. Advanced-control timers (TIM1 and TIM8) specific features + * - Configures the Break input, dead time, Lock level, the OSSI, + * the OSSR State and the AOE(automatic output enable) + * - Enable/Disable the TIM peripheral Main Outputs + * - Select the Commutation event + * - Set/Reset the Capture Compare Preload Control bit + * + * 5. TIM interrupts, DMA and flags management + * - Enable/Disable interrupt sources + * - Get flags status + * - Clear flags/ Pending bits + * - Enable/Disable DMA requests + * - Configure DMA burst mode + * - Select CaptureCompare DMA request + * + * 6. TIM clocks management: this group includes all needed functions + * to configure the clock controller unit: + * - Select internal/External clock + * - Select the external clock mode: ETR(Mode1/Mode2), TIx or ITRx + * + * 7. TIM synchronization management: this group includes all needed + * functions to configure the Synchronization unit: + * - Select Input Trigger + * - Select Output Trigger + * - Select Master Slave Mode + * - ETR Configuration when used as external trigger + * + * 8. TIM specific interface management, this group includes all + * needed functions to use the specific TIM interface: + * - Encoder Interface Configuration + * - Select Hall Sensor + * + * 9. TIM specific remapping management includes the Remapping + * configuration of specific timers + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_tim.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup TIM + * @brief TIM driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* ---------------------- TIM registers bit mask ------------------------ */ +#define SMCR_ETR_MASK ((uint16_t)0x00FF) +#define CCMR_OFFSET ((uint16_t)0x0018) +#define CCER_CCE_SET ((uint16_t)0x0001) +#define CCER_CCNE_SET ((uint16_t)0x0004) +#define CCMR_OC13M_MASK ((uint16_t)0xFF8F) +#define CCMR_OC24M_MASK ((uint16_t)0x8FFF) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +static void TI1_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter); +static void TI2_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter); +static void TI3_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter); +static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter); + +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup TIM_Private_Functions + * @{ + */ + +/** @defgroup TIM_Group1 TimeBase management functions + * @brief TimeBase management functions + * +@verbatim + =============================================================================== + TimeBase management functions + =============================================================================== + + =================================================================== + TIM Driver: how to use it in Timing(Time base) Mode + =================================================================== + To use the Timer in Timing(Time base) mode, the following steps are mandatory: + + 1. Enable TIM clock using RCC_APBxPeriphClockCmd(RCC_APBxPeriph_TIMx, ENABLE) function + + 2. Fill the TIM_TimeBaseInitStruct with the desired parameters. + + 3. Call TIM_TimeBaseInit(TIMx, &TIM_TimeBaseInitStruct) to configure the Time Base unit + with the corresponding configuration + + 4. Enable the NVIC if you need to generate the update interrupt. + + 5. Enable the corresponding interrupt using the function TIM_ITConfig(TIMx, TIM_IT_Update) + + 6. Call the TIM_Cmd(ENABLE) function to enable the TIM counter. + + Note1: All other functions can be used separately to modify, if needed, + a specific feature of the Timer. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the TIMx peripheral registers to their default reset values. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @retval None + + */ +void TIM_DeInit(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + if (TIMx == TIM1) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, DISABLE); + } + else if (TIMx == TIM2) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, DISABLE); + } + else if (TIMx == TIM3) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, DISABLE); + } + else if (TIMx == TIM4) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, DISABLE); + } + else if (TIMx == TIM5) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, DISABLE); + } + else if (TIMx == TIM6) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, DISABLE); + } + else if (TIMx == TIM7) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, DISABLE); + } + else if (TIMx == TIM8) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, DISABLE); + } + else if (TIMx == TIM9) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, DISABLE); + } + else if (TIMx == TIM10) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, DISABLE); + } + else if (TIMx == TIM11) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, DISABLE); + } + else if (TIMx == TIM12) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, DISABLE); + } + else if (TIMx == TIM13) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, DISABLE); + } + else + { + if (TIMx == TIM14) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, DISABLE); + } + } +} + +/** + * @brief Initializes the TIMx Time Base Unit peripheral according to + * the specified parameters in the TIM_TimeBaseInitStruct. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_TimeBaseInitStruct: pointer to a TIM_TimeBaseInitTypeDef structure + * that contains the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct) +{ + uint16_t tmpcr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_COUNTER_MODE(TIM_TimeBaseInitStruct->TIM_CounterMode)); + assert_param(IS_TIM_CKD_DIV(TIM_TimeBaseInitStruct->TIM_ClockDivision)); + + tmpcr1 = TIMx->CR1; + + if((TIMx == TIM1) || (TIMx == TIM8)|| + (TIMx == TIM2) || (TIMx == TIM3)|| + (TIMx == TIM4) || (TIMx == TIM5)) + { + /* Select the Counter Mode */ + tmpcr1 &= (uint16_t)(~(TIM_CR1_DIR | TIM_CR1_CMS)); + tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_CounterMode; + } + + if((TIMx != TIM6) && (TIMx != TIM7)) + { + /* Set the clock division */ + tmpcr1 &= (uint16_t)(~TIM_CR1_CKD); + tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_ClockDivision; + } + + TIMx->CR1 = tmpcr1; + + /* Set the Autoreload value */ + TIMx->ARR = TIM_TimeBaseInitStruct->TIM_Period ; + + /* Set the Prescaler value */ + TIMx->PSC = TIM_TimeBaseInitStruct->TIM_Prescaler; + + if ((TIMx == TIM1) || (TIMx == TIM8)) + { + /* Set the Repetition Counter value */ + TIMx->RCR = TIM_TimeBaseInitStruct->TIM_RepetitionCounter; + } + + /* Generate an update event to reload the Prescaler + and the repetition counter(only for TIM1 and TIM8) value immediatly */ + TIMx->EGR = TIM_PSCReloadMode_Immediate; +} + +/** + * @brief Fills each TIM_TimeBaseInitStruct member with its default value. + * @param TIM_TimeBaseInitStruct : pointer to a TIM_TimeBaseInitTypeDef + * structure which will be initialized. + * @retval None + */ +void TIM_TimeBaseStructInit(TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct) +{ + /* Set the default configuration */ + TIM_TimeBaseInitStruct->TIM_Period = 0xFFFFFFFF; + TIM_TimeBaseInitStruct->TIM_Prescaler = 0x0000; + TIM_TimeBaseInitStruct->TIM_ClockDivision = TIM_CKD_DIV1; + TIM_TimeBaseInitStruct->TIM_CounterMode = TIM_CounterMode_Up; + TIM_TimeBaseInitStruct->TIM_RepetitionCounter = 0x0000; +} + +/** + * @brief Configures the TIMx Prescaler. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param Prescaler: specifies the Prescaler Register value + * @param TIM_PSCReloadMode: specifies the TIM Prescaler Reload mode + * This parameter can be one of the following values: + * @arg TIM_PSCReloadMode_Update: The Prescaler is loaded at the update event. + * @arg TIM_PSCReloadMode_Immediate: The Prescaler is loaded immediatly. + * @retval None + */ +void TIM_PrescalerConfig(TIM_TypeDef* TIMx, uint16_t Prescaler, uint16_t TIM_PSCReloadMode) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_PRESCALER_RELOAD(TIM_PSCReloadMode)); + /* Set the Prescaler value */ + TIMx->PSC = Prescaler; + /* Set or reset the UG Bit */ + TIMx->EGR = TIM_PSCReloadMode; +} + +/** + * @brief Specifies the TIMx Counter Mode to be used. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_CounterMode: specifies the Counter Mode to be used + * This parameter can be one of the following values: + * @arg TIM_CounterMode_Up: TIM Up Counting Mode + * @arg TIM_CounterMode_Down: TIM Down Counting Mode + * @arg TIM_CounterMode_CenterAligned1: TIM Center Aligned Mode1 + * @arg TIM_CounterMode_CenterAligned2: TIM Center Aligned Mode2 + * @arg TIM_CounterMode_CenterAligned3: TIM Center Aligned Mode3 + * @retval None + */ +void TIM_CounterModeConfig(TIM_TypeDef* TIMx, uint16_t TIM_CounterMode) +{ + uint16_t tmpcr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_COUNTER_MODE(TIM_CounterMode)); + + tmpcr1 = TIMx->CR1; + + /* Reset the CMS and DIR Bits */ + tmpcr1 &= (uint16_t)~(TIM_CR1_DIR | TIM_CR1_CMS); + + /* Set the Counter Mode */ + tmpcr1 |= TIM_CounterMode; + + /* Write to TIMx CR1 register */ + TIMx->CR1 = tmpcr1; +} + +/** + * @brief Sets the TIMx Counter Register value + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param Counter: specifies the Counter register new value. + * @retval None + */ +void TIM_SetCounter(TIM_TypeDef* TIMx, uint32_t Counter) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Set the Counter Register value */ + TIMx->CNT = Counter; +} + +/** + * @brief Sets the TIMx Autoreload Register value + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param Autoreload: specifies the Autoreload register new value. + * @retval None + */ +void TIM_SetAutoreload(TIM_TypeDef* TIMx, uint32_t Autoreload) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Set the Autoreload Register value */ + TIMx->ARR = Autoreload; +} + +/** + * @brief Gets the TIMx Counter value. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @retval Counter Register value + */ +uint32_t TIM_GetCounter(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Get the Counter Register value */ + return TIMx->CNT; +} + +/** + * @brief Gets the TIMx Prescaler value. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @retval Prescaler Register value. + */ +uint16_t TIM_GetPrescaler(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Get the Prescaler Register value */ + return TIMx->PSC; +} + +/** + * @brief Enables or Disables the TIMx Update event. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param NewState: new state of the TIMx UDIS bit + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_UpdateDisableConfig(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the Update Disable Bit */ + TIMx->CR1 |= TIM_CR1_UDIS; + } + else + { + /* Reset the Update Disable Bit */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_UDIS; + } +} + +/** + * @brief Configures the TIMx Update Request Interrupt source. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_UpdateSource: specifies the Update source. + * This parameter can be one of the following values: + * @arg TIM_UpdateSource_Global: Source of update is the counter + * overflow/underflow or the setting of UG bit, or an update + * generation through the slave mode controller. + * @arg TIM_UpdateSource_Regular: Source of update is counter overflow/underflow. + * @retval None + */ +void TIM_UpdateRequestConfig(TIM_TypeDef* TIMx, uint16_t TIM_UpdateSource) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_UPDATE_SOURCE(TIM_UpdateSource)); + + if (TIM_UpdateSource != TIM_UpdateSource_Global) + { + /* Set the URS Bit */ + TIMx->CR1 |= TIM_CR1_URS; + } + else + { + /* Reset the URS Bit */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_URS; + } +} + +/** + * @brief Enables or disables TIMx peripheral Preload register on ARR. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param NewState: new state of the TIMx peripheral Preload register + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_ARRPreloadConfig(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the ARR Preload Bit */ + TIMx->CR1 |= TIM_CR1_ARPE; + } + else + { + /* Reset the ARR Preload Bit */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_ARPE; + } +} + +/** + * @brief Selects the TIMx's One Pulse Mode. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_OPMode: specifies the OPM Mode to be used. + * This parameter can be one of the following values: + * @arg TIM_OPMode_Single + * @arg TIM_OPMode_Repetitive + * @retval None + */ +void TIM_SelectOnePulseMode(TIM_TypeDef* TIMx, uint16_t TIM_OPMode) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_OPM_MODE(TIM_OPMode)); + + /* Reset the OPM Bit */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_OPM; + + /* Configure the OPM Mode */ + TIMx->CR1 |= TIM_OPMode; +} + +/** + * @brief Sets the TIMx Clock Division value. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_CKD: specifies the clock division value. + * This parameter can be one of the following value: + * @arg TIM_CKD_DIV1: TDTS = Tck_tim + * @arg TIM_CKD_DIV2: TDTS = 2*Tck_tim + * @arg TIM_CKD_DIV4: TDTS = 4*Tck_tim + * @retval None + */ +void TIM_SetClockDivision(TIM_TypeDef* TIMx, uint16_t TIM_CKD) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_CKD_DIV(TIM_CKD)); + + /* Reset the CKD Bits */ + TIMx->CR1 &= (uint16_t)(~TIM_CR1_CKD); + + /* Set the CKD value */ + TIMx->CR1 |= TIM_CKD; +} + +/** + * @brief Enables or disables the specified TIM peripheral. + * @param TIMx: where x can be 1 to 14 to select the TIMx peripheral. + * @param NewState: new state of the TIMx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_Cmd(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the TIM Counter */ + TIMx->CR1 |= TIM_CR1_CEN; + } + else + { + /* Disable the TIM Counter */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_CEN; + } +} +/** + * @} + */ + +/** @defgroup TIM_Group2 Output Compare management functions + * @brief Output Compare management functions + * +@verbatim + =============================================================================== + Output Compare management functions + =============================================================================== + + =================================================================== + TIM Driver: how to use it in Output Compare Mode + =================================================================== + To use the Timer in Output Compare mode, the following steps are mandatory: + + 1. Enable TIM clock using RCC_APBxPeriphClockCmd(RCC_APBxPeriph_TIMx, ENABLE) function + + 2. Configure the TIM pins by configuring the corresponding GPIO pins + + 2. Configure the Time base unit as described in the first part of this driver, + if needed, else the Timer will run with the default configuration: + - Autoreload value = 0xFFFF + - Prescaler value = 0x0000 + - Counter mode = Up counting + - Clock Division = TIM_CKD_DIV1 + + 3. Fill the TIM_OCInitStruct with the desired parameters including: + - The TIM Output Compare mode: TIM_OCMode + - TIM Output State: TIM_OutputState + - TIM Pulse value: TIM_Pulse + - TIM Output Compare Polarity : TIM_OCPolarity + + 4. Call TIM_OCxInit(TIMx, &TIM_OCInitStruct) to configure the desired channel with the + corresponding configuration + + 5. Call the TIM_Cmd(ENABLE) function to enable the TIM counter. + + Note1: All other functions can be used separately to modify, if needed, + a specific feature of the Timer. + + Note2: In case of PWM mode, this function is mandatory: + TIM_OCxPreloadConfig(TIMx, TIM_OCPreload_ENABLE); + + Note3: If the corresponding interrupt or DMA request are needed, the user should: + 1. Enable the NVIC (or the DMA) to use the TIM interrupts (or DMA requests). + 2. Enable the corresponding interrupt (or DMA request) using the function + TIM_ITConfig(TIMx, TIM_IT_CCx) (or TIM_DMA_Cmd(TIMx, TIM_DMA_CCx)) + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the TIMx Channel1 according to the specified parameters in + * the TIM_OCInitStruct. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + uint16_t tmpccmrx = 0, tmpccer = 0, tmpcr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OC_MODE(TIM_OCInitStruct->TIM_OCMode)); + assert_param(IS_TIM_OUTPUT_STATE(TIM_OCInitStruct->TIM_OutputState)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCInitStruct->TIM_OCPolarity)); + + /* Disable the Channel 1: Reset the CC1E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC1E; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + /* Get the TIMx CR2 register value */ + tmpcr2 = TIMx->CR2; + + /* Get the TIMx CCMR1 register value */ + tmpccmrx = TIMx->CCMR1; + + /* Reset the Output Compare Mode Bits */ + tmpccmrx &= (uint16_t)~TIM_CCMR1_OC1M; + tmpccmrx &= (uint16_t)~TIM_CCMR1_CC1S; + /* Select the Output Compare Mode */ + tmpccmrx |= TIM_OCInitStruct->TIM_OCMode; + + /* Reset the Output Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC1P; + /* Set the Output Compare Polarity */ + tmpccer |= TIM_OCInitStruct->TIM_OCPolarity; + + /* Set the Output State */ + tmpccer |= TIM_OCInitStruct->TIM_OutputState; + + if((TIMx == TIM1) || (TIMx == TIM8)) + { + assert_param(IS_TIM_OUTPUTN_STATE(TIM_OCInitStruct->TIM_OutputNState)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCInitStruct->TIM_OCNPolarity)); + assert_param(IS_TIM_OCNIDLE_STATE(TIM_OCInitStruct->TIM_OCNIdleState)); + assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState)); + + /* Reset the Output N Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC1NP; + /* Set the Output N Polarity */ + tmpccer |= TIM_OCInitStruct->TIM_OCNPolarity; + /* Reset the Output N State */ + tmpccer &= (uint16_t)~TIM_CCER_CC1NE; + + /* Set the Output N State */ + tmpccer |= TIM_OCInitStruct->TIM_OutputNState; + /* Reset the Output Compare and Output Compare N IDLE State */ + tmpcr2 &= (uint16_t)~TIM_CR2_OIS1; + tmpcr2 &= (uint16_t)~TIM_CR2_OIS1N; + /* Set the Output Idle state */ + tmpcr2 |= TIM_OCInitStruct->TIM_OCIdleState; + /* Set the Output N Idle state */ + tmpcr2 |= TIM_OCInitStruct->TIM_OCNIdleState; + } + /* Write to TIMx CR2 */ + TIMx->CR2 = tmpcr2; + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmrx; + + /* Set the Capture Compare Register value */ + TIMx->CCR1 = TIM_OCInitStruct->TIM_Pulse; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Initializes the TIMx Channel2 according to the specified parameters + * in the TIM_OCInitStruct. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + uint16_t tmpccmrx = 0, tmpccer = 0, tmpcr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OC_MODE(TIM_OCInitStruct->TIM_OCMode)); + assert_param(IS_TIM_OUTPUT_STATE(TIM_OCInitStruct->TIM_OutputState)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCInitStruct->TIM_OCPolarity)); + + /* Disable the Channel 2: Reset the CC2E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC2E; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + /* Get the TIMx CR2 register value */ + tmpcr2 = TIMx->CR2; + + /* Get the TIMx CCMR1 register value */ + tmpccmrx = TIMx->CCMR1; + + /* Reset the Output Compare mode and Capture/Compare selection Bits */ + tmpccmrx &= (uint16_t)~TIM_CCMR1_OC2M; + tmpccmrx &= (uint16_t)~TIM_CCMR1_CC2S; + + /* Select the Output Compare Mode */ + tmpccmrx |= (uint16_t)(TIM_OCInitStruct->TIM_OCMode << 8); + + /* Reset the Output Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC2P; + /* Set the Output Compare Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCPolarity << 4); + + /* Set the Output State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputState << 4); + + if((TIMx == TIM1) || (TIMx == TIM8)) + { + assert_param(IS_TIM_OUTPUTN_STATE(TIM_OCInitStruct->TIM_OutputNState)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCInitStruct->TIM_OCNPolarity)); + assert_param(IS_TIM_OCNIDLE_STATE(TIM_OCInitStruct->TIM_OCNIdleState)); + assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState)); + + /* Reset the Output N Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC2NP; + /* Set the Output N Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCNPolarity << 4); + /* Reset the Output N State */ + tmpccer &= (uint16_t)~TIM_CCER_CC2NE; + + /* Set the Output N State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputNState << 4); + /* Reset the Output Compare and Output Compare N IDLE State */ + tmpcr2 &= (uint16_t)~TIM_CR2_OIS2; + tmpcr2 &= (uint16_t)~TIM_CR2_OIS2N; + /* Set the Output Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCIdleState << 2); + /* Set the Output N Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCNIdleState << 2); + } + /* Write to TIMx CR2 */ + TIMx->CR2 = tmpcr2; + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmrx; + + /* Set the Capture Compare Register value */ + TIMx->CCR2 = TIM_OCInitStruct->TIM_Pulse; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Initializes the TIMx Channel3 according to the specified parameters + * in the TIM_OCInitStruct. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + uint16_t tmpccmrx = 0, tmpccer = 0, tmpcr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OC_MODE(TIM_OCInitStruct->TIM_OCMode)); + assert_param(IS_TIM_OUTPUT_STATE(TIM_OCInitStruct->TIM_OutputState)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCInitStruct->TIM_OCPolarity)); + + /* Disable the Channel 3: Reset the CC2E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC3E; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + /* Get the TIMx CR2 register value */ + tmpcr2 = TIMx->CR2; + + /* Get the TIMx CCMR2 register value */ + tmpccmrx = TIMx->CCMR2; + + /* Reset the Output Compare mode and Capture/Compare selection Bits */ + tmpccmrx &= (uint16_t)~TIM_CCMR2_OC3M; + tmpccmrx &= (uint16_t)~TIM_CCMR2_CC3S; + /* Select the Output Compare Mode */ + tmpccmrx |= TIM_OCInitStruct->TIM_OCMode; + + /* Reset the Output Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC3P; + /* Set the Output Compare Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCPolarity << 8); + + /* Set the Output State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputState << 8); + + if((TIMx == TIM1) || (TIMx == TIM8)) + { + assert_param(IS_TIM_OUTPUTN_STATE(TIM_OCInitStruct->TIM_OutputNState)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCInitStruct->TIM_OCNPolarity)); + assert_param(IS_TIM_OCNIDLE_STATE(TIM_OCInitStruct->TIM_OCNIdleState)); + assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState)); + + /* Reset the Output N Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC3NP; + /* Set the Output N Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCNPolarity << 8); + /* Reset the Output N State */ + tmpccer &= (uint16_t)~TIM_CCER_CC3NE; + + /* Set the Output N State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputNState << 8); + /* Reset the Output Compare and Output Compare N IDLE State */ + tmpcr2 &= (uint16_t)~TIM_CR2_OIS3; + tmpcr2 &= (uint16_t)~TIM_CR2_OIS3N; + /* Set the Output Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCIdleState << 4); + /* Set the Output N Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCNIdleState << 4); + } + /* Write to TIMx CR2 */ + TIMx->CR2 = tmpcr2; + + /* Write to TIMx CCMR2 */ + TIMx->CCMR2 = tmpccmrx; + + /* Set the Capture Compare Register value */ + TIMx->CCR3 = TIM_OCInitStruct->TIM_Pulse; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Initializes the TIMx Channel4 according to the specified parameters + * in the TIM_OCInitStruct. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_OC4Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + uint16_t tmpccmrx = 0, tmpccer = 0, tmpcr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OC_MODE(TIM_OCInitStruct->TIM_OCMode)); + assert_param(IS_TIM_OUTPUT_STATE(TIM_OCInitStruct->TIM_OutputState)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCInitStruct->TIM_OCPolarity)); + + /* Disable the Channel 4: Reset the CC4E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC4E; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + /* Get the TIMx CR2 register value */ + tmpcr2 = TIMx->CR2; + + /* Get the TIMx CCMR2 register value */ + tmpccmrx = TIMx->CCMR2; + + /* Reset the Output Compare mode and Capture/Compare selection Bits */ + tmpccmrx &= (uint16_t)~TIM_CCMR2_OC4M; + tmpccmrx &= (uint16_t)~TIM_CCMR2_CC4S; + + /* Select the Output Compare Mode */ + tmpccmrx |= (uint16_t)(TIM_OCInitStruct->TIM_OCMode << 8); + + /* Reset the Output Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC4P; + /* Set the Output Compare Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCPolarity << 12); + + /* Set the Output State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputState << 12); + + if((TIMx == TIM1) || (TIMx == TIM8)) + { + assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState)); + /* Reset the Output Compare IDLE State */ + tmpcr2 &=(uint16_t) ~TIM_CR2_OIS4; + /* Set the Output Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCIdleState << 6); + } + /* Write to TIMx CR2 */ + TIMx->CR2 = tmpcr2; + + /* Write to TIMx CCMR2 */ + TIMx->CCMR2 = tmpccmrx; + + /* Set the Capture Compare Register value */ + TIMx->CCR4 = TIM_OCInitStruct->TIM_Pulse; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Fills each TIM_OCInitStruct member with its default value. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure which will + * be initialized. + * @retval None + */ +void TIM_OCStructInit(TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + /* Set the default configuration */ + TIM_OCInitStruct->TIM_OCMode = TIM_OCMode_Timing; + TIM_OCInitStruct->TIM_OutputState = TIM_OutputState_Disable; + TIM_OCInitStruct->TIM_OutputNState = TIM_OutputNState_Disable; + TIM_OCInitStruct->TIM_Pulse = 0x00000000; + TIM_OCInitStruct->TIM_OCPolarity = TIM_OCPolarity_High; + TIM_OCInitStruct->TIM_OCNPolarity = TIM_OCPolarity_High; + TIM_OCInitStruct->TIM_OCIdleState = TIM_OCIdleState_Reset; + TIM_OCInitStruct->TIM_OCNIdleState = TIM_OCNIdleState_Reset; +} + +/** + * @brief Selects the TIM Output Compare Mode. + * @note This function disables the selected channel before changing the Output + * Compare Mode. If needed, user has to enable this channel using + * TIM_CCxCmd() and TIM_CCxNCmd() functions. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_Channel: specifies the TIM Channel + * This parameter can be one of the following values: + * @arg TIM_Channel_1: TIM Channel 1 + * @arg TIM_Channel_2: TIM Channel 2 + * @arg TIM_Channel_3: TIM Channel 3 + * @arg TIM_Channel_4: TIM Channel 4 + * @param TIM_OCMode: specifies the TIM Output Compare Mode. + * This parameter can be one of the following values: + * @arg TIM_OCMode_Timing + * @arg TIM_OCMode_Active + * @arg TIM_OCMode_Toggle + * @arg TIM_OCMode_PWM1 + * @arg TIM_OCMode_PWM2 + * @arg TIM_ForcedAction_Active + * @arg TIM_ForcedAction_InActive + * @retval None + */ +void TIM_SelectOCxM(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_OCMode) +{ + uint32_t tmp = 0; + uint16_t tmp1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_CHANNEL(TIM_Channel)); + assert_param(IS_TIM_OCM(TIM_OCMode)); + + tmp = (uint32_t) TIMx; + tmp += CCMR_OFFSET; + + tmp1 = CCER_CCE_SET << (uint16_t)TIM_Channel; + + /* Disable the Channel: Reset the CCxE Bit */ + TIMx->CCER &= (uint16_t) ~tmp1; + + if((TIM_Channel == TIM_Channel_1) ||(TIM_Channel == TIM_Channel_3)) + { + tmp += (TIM_Channel>>1); + + /* Reset the OCxM bits in the CCMRx register */ + *(__IO uint32_t *) tmp &= CCMR_OC13M_MASK; + + /* Configure the OCxM bits in the CCMRx register */ + *(__IO uint32_t *) tmp |= TIM_OCMode; + } + else + { + tmp += (uint16_t)(TIM_Channel - (uint16_t)4)>> (uint16_t)1; + + /* Reset the OCxM bits in the CCMRx register */ + *(__IO uint32_t *) tmp &= CCMR_OC24M_MASK; + + /* Configure the OCxM bits in the CCMRx register */ + *(__IO uint32_t *) tmp |= (uint16_t)(TIM_OCMode << 8); + } +} + +/** + * @brief Sets the TIMx Capture Compare1 Register value + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param Compare1: specifies the Capture Compare1 register new value. + * @retval None + */ +void TIM_SetCompare1(TIM_TypeDef* TIMx, uint32_t Compare1) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + + /* Set the Capture Compare1 Register value */ + TIMx->CCR1 = Compare1; +} + +/** + * @brief Sets the TIMx Capture Compare2 Register value + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param Compare2: specifies the Capture Compare2 register new value. + * @retval None + */ +void TIM_SetCompare2(TIM_TypeDef* TIMx, uint32_t Compare2) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + + /* Set the Capture Compare2 Register value */ + TIMx->CCR2 = Compare2; +} + +/** + * @brief Sets the TIMx Capture Compare3 Register value + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param Compare3: specifies the Capture Compare3 register new value. + * @retval None + */ +void TIM_SetCompare3(TIM_TypeDef* TIMx, uint32_t Compare3) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + + /* Set the Capture Compare3 Register value */ + TIMx->CCR3 = Compare3; +} + +/** + * @brief Sets the TIMx Capture Compare4 Register value + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param Compare4: specifies the Capture Compare4 register new value. + * @retval None + */ +void TIM_SetCompare4(TIM_TypeDef* TIMx, uint32_t Compare4) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + + /* Set the Capture Compare4 Register value */ + TIMx->CCR4 = Compare4; +} + +/** + * @brief Forces the TIMx output 1 waveform to active or inactive level. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_ForcedAction: specifies the forced Action to be set to the output waveform. + * This parameter can be one of the following values: + * @arg TIM_ForcedAction_Active: Force active level on OC1REF + * @arg TIM_ForcedAction_InActive: Force inactive level on OC1REF. + * @retval None + */ +void TIM_ForcedOC1Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction)); + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC1M Bits */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC1M; + + /* Configure The Forced output Mode */ + tmpccmr1 |= TIM_ForcedAction; + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Forces the TIMx output 2 waveform to active or inactive level. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_ForcedAction: specifies the forced Action to be set to the output waveform. + * This parameter can be one of the following values: + * @arg TIM_ForcedAction_Active: Force active level on OC2REF + * @arg TIM_ForcedAction_InActive: Force inactive level on OC2REF. + * @retval None + */ +void TIM_ForcedOC2Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction)); + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC2M Bits */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC2M; + + /* Configure The Forced output Mode */ + tmpccmr1 |= (uint16_t)(TIM_ForcedAction << 8); + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Forces the TIMx output 3 waveform to active or inactive level. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ForcedAction: specifies the forced Action to be set to the output waveform. + * This parameter can be one of the following values: + * @arg TIM_ForcedAction_Active: Force active level on OC3REF + * @arg TIM_ForcedAction_InActive: Force inactive level on OC3REF. + * @retval None + */ +void TIM_ForcedOC3Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC1M Bits */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC3M; + + /* Configure The Forced output Mode */ + tmpccmr2 |= TIM_ForcedAction; + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Forces the TIMx output 4 waveform to active or inactive level. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ForcedAction: specifies the forced Action to be set to the output waveform. + * This parameter can be one of the following values: + * @arg TIM_ForcedAction_Active: Force active level on OC4REF + * @arg TIM_ForcedAction_InActive: Force inactive level on OC4REF. + * @retval None + */ +void TIM_ForcedOC4Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction)); + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC2M Bits */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC4M; + + /* Configure The Forced output Mode */ + tmpccmr2 |= (uint16_t)(TIM_ForcedAction << 8); + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Enables or disables the TIMx peripheral Preload register on CCR1. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCPreload: new state of the TIMx peripheral Preload register + * This parameter can be one of the following values: + * @arg TIM_OCPreload_Enable + * @arg TIM_OCPreload_Disable + * @retval None + */ +void TIM_OC1PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload)); + + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC1PE Bit */ + tmpccmr1 &= (uint16_t)(~TIM_CCMR1_OC1PE); + + /* Enable or Disable the Output Compare Preload feature */ + tmpccmr1 |= TIM_OCPreload; + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Enables or disables the TIMx peripheral Preload register on CCR2. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCPreload: new state of the TIMx peripheral Preload register + * This parameter can be one of the following values: + * @arg TIM_OCPreload_Enable + * @arg TIM_OCPreload_Disable + * @retval None + */ +void TIM_OC2PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload)); + + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC2PE Bit */ + tmpccmr1 &= (uint16_t)(~TIM_CCMR1_OC2PE); + + /* Enable or Disable the Output Compare Preload feature */ + tmpccmr1 |= (uint16_t)(TIM_OCPreload << 8); + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Enables or disables the TIMx peripheral Preload register on CCR3. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCPreload: new state of the TIMx peripheral Preload register + * This parameter can be one of the following values: + * @arg TIM_OCPreload_Enable + * @arg TIM_OCPreload_Disable + * @retval None + */ +void TIM_OC3PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC3PE Bit */ + tmpccmr2 &= (uint16_t)(~TIM_CCMR2_OC3PE); + + /* Enable or Disable the Output Compare Preload feature */ + tmpccmr2 |= TIM_OCPreload; + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Enables or disables the TIMx peripheral Preload register on CCR4. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCPreload: new state of the TIMx peripheral Preload register + * This parameter can be one of the following values: + * @arg TIM_OCPreload_Enable + * @arg TIM_OCPreload_Disable + * @retval None + */ +void TIM_OC4PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC4PE Bit */ + tmpccmr2 &= (uint16_t)(~TIM_CCMR2_OC4PE); + + /* Enable or Disable the Output Compare Preload feature */ + tmpccmr2 |= (uint16_t)(TIM_OCPreload << 8); + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Configures the TIMx Output Compare 1 Fast feature. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCFast: new state of the Output Compare Fast Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCFast_Enable: TIM output compare fast enable + * @arg TIM_OCFast_Disable: TIM output compare fast disable + * @retval None + */ +void TIM_OC1FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast)); + + /* Get the TIMx CCMR1 register value */ + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC1FE Bit */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC1FE; + + /* Enable or Disable the Output Compare Fast Bit */ + tmpccmr1 |= TIM_OCFast; + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Configures the TIMx Output Compare 2 Fast feature. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCFast: new state of the Output Compare Fast Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCFast_Enable: TIM output compare fast enable + * @arg TIM_OCFast_Disable: TIM output compare fast disable + * @retval None + */ +void TIM_OC2FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast)); + + /* Get the TIMx CCMR1 register value */ + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC2FE Bit */ + tmpccmr1 &= (uint16_t)(~TIM_CCMR1_OC2FE); + + /* Enable or Disable the Output Compare Fast Bit */ + tmpccmr1 |= (uint16_t)(TIM_OCFast << 8); + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Configures the TIMx Output Compare 3 Fast feature. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCFast: new state of the Output Compare Fast Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCFast_Enable: TIM output compare fast enable + * @arg TIM_OCFast_Disable: TIM output compare fast disable + * @retval None + */ +void TIM_OC3FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast)); + + /* Get the TIMx CCMR2 register value */ + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC3FE Bit */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC3FE; + + /* Enable or Disable the Output Compare Fast Bit */ + tmpccmr2 |= TIM_OCFast; + + /* Write to TIMx CCMR2 */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Configures the TIMx Output Compare 4 Fast feature. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCFast: new state of the Output Compare Fast Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCFast_Enable: TIM output compare fast enable + * @arg TIM_OCFast_Disable: TIM output compare fast disable + * @retval None + */ +void TIM_OC4FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast)); + + /* Get the TIMx CCMR2 register value */ + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC4FE Bit */ + tmpccmr2 &= (uint16_t)(~TIM_CCMR2_OC4FE); + + /* Enable or Disable the Output Compare Fast Bit */ + tmpccmr2 |= (uint16_t)(TIM_OCFast << 8); + + /* Write to TIMx CCMR2 */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Clears or safeguards the OCREF1 signal on an external event + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCClear: new state of the Output Compare Clear Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCClear_Enable: TIM Output clear enable + * @arg TIM_OCClear_Disable: TIM Output clear disable + * @retval None + */ +void TIM_ClearOC1Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear)); + + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC1CE Bit */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC1CE; + + /* Enable or Disable the Output Compare Clear Bit */ + tmpccmr1 |= TIM_OCClear; + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Clears or safeguards the OCREF2 signal on an external event + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCClear: new state of the Output Compare Clear Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCClear_Enable: TIM Output clear enable + * @arg TIM_OCClear_Disable: TIM Output clear disable + * @retval None + */ +void TIM_ClearOC2Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear)); + + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC2CE Bit */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC2CE; + + /* Enable or Disable the Output Compare Clear Bit */ + tmpccmr1 |= (uint16_t)(TIM_OCClear << 8); + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Clears or safeguards the OCREF3 signal on an external event + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCClear: new state of the Output Compare Clear Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCClear_Enable: TIM Output clear enable + * @arg TIM_OCClear_Disable: TIM Output clear disable + * @retval None + */ +void TIM_ClearOC3Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC3CE Bit */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC3CE; + + /* Enable or Disable the Output Compare Clear Bit */ + tmpccmr2 |= TIM_OCClear; + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Clears or safeguards the OCREF4 signal on an external event + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCClear: new state of the Output Compare Clear Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCClear_Enable: TIM Output clear enable + * @arg TIM_OCClear_Disable: TIM Output clear disable + * @retval None + */ +void TIM_ClearOC4Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC4CE Bit */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC4CE; + + /* Enable or Disable the Output Compare Clear Bit */ + tmpccmr2 |= (uint16_t)(TIM_OCClear << 8); + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Configures the TIMx channel 1 polarity. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCPolarity: specifies the OC1 Polarity + * This parameter can be one of the following values: + * @arg TIM_OCPolarity_High: Output Compare active high + * @arg TIM_OCPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC1P Bit */ + tmpccer &= (uint16_t)(~TIM_CCER_CC1P); + tmpccer |= TIM_OCPolarity; + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx Channel 1N polarity. + * @param TIMx: where x can be 1 or 8 to select the TIM peripheral. + * @param TIM_OCNPolarity: specifies the OC1N Polarity + * This parameter can be one of the following values: + * @arg TIM_OCNPolarity_High: Output Compare active high + * @arg TIM_OCNPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC1NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity) +{ + uint16_t tmpccer = 0; + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCNPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC1NP Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC1NP; + tmpccer |= TIM_OCNPolarity; + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx channel 2 polarity. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCPolarity: specifies the OC2 Polarity + * This parameter can be one of the following values: + * @arg TIM_OCPolarity_High: Output Compare active high + * @arg TIM_OCPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC2PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC2P Bit */ + tmpccer &= (uint16_t)(~TIM_CCER_CC2P); + tmpccer |= (uint16_t)(TIM_OCPolarity << 4); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx Channel 2N polarity. + * @param TIMx: where x can be 1 or 8 to select the TIM peripheral. + * @param TIM_OCNPolarity: specifies the OC2N Polarity + * This parameter can be one of the following values: + * @arg TIM_OCNPolarity_High: Output Compare active high + * @arg TIM_OCNPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC2NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCNPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC2NP Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC2NP; + tmpccer |= (uint16_t)(TIM_OCNPolarity << 4); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx channel 3 polarity. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCPolarity: specifies the OC3 Polarity + * This parameter can be one of the following values: + * @arg TIM_OCPolarity_High: Output Compare active high + * @arg TIM_OCPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC3PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC3P Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC3P; + tmpccer |= (uint16_t)(TIM_OCPolarity << 8); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx Channel 3N polarity. + * @param TIMx: where x can be 1 or 8 to select the TIM peripheral. + * @param TIM_OCNPolarity: specifies the OC3N Polarity + * This parameter can be one of the following values: + * @arg TIM_OCNPolarity_High: Output Compare active high + * @arg TIM_OCNPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC3NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCNPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC3NP Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC3NP; + tmpccer |= (uint16_t)(TIM_OCNPolarity << 8); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx channel 4 polarity. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCPolarity: specifies the OC4 Polarity + * This parameter can be one of the following values: + * @arg TIM_OCPolarity_High: Output Compare active high + * @arg TIM_OCPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC4PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC4P Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC4P; + tmpccer |= (uint16_t)(TIM_OCPolarity << 12); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Enables or disables the TIM Capture Compare Channel x. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_Channel: specifies the TIM Channel + * This parameter can be one of the following values: + * @arg TIM_Channel_1: TIM Channel 1 + * @arg TIM_Channel_2: TIM Channel 2 + * @arg TIM_Channel_3: TIM Channel 3 + * @arg TIM_Channel_4: TIM Channel 4 + * @param TIM_CCx: specifies the TIM Channel CCxE bit new state. + * This parameter can be: TIM_CCx_Enable or TIM_CCx_Disable. + * @retval None + */ +void TIM_CCxCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx) +{ + uint16_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_CHANNEL(TIM_Channel)); + assert_param(IS_TIM_CCX(TIM_CCx)); + + tmp = CCER_CCE_SET << TIM_Channel; + + /* Reset the CCxE Bit */ + TIMx->CCER &= (uint16_t)~ tmp; + + /* Set or reset the CCxE Bit */ + TIMx->CCER |= (uint16_t)(TIM_CCx << TIM_Channel); +} + +/** + * @brief Enables or disables the TIM Capture Compare Channel xN. + * @param TIMx: where x can be 1 or 8 to select the TIM peripheral. + * @param TIM_Channel: specifies the TIM Channel + * This parameter can be one of the following values: + * @arg TIM_Channel_1: TIM Channel 1 + * @arg TIM_Channel_2: TIM Channel 2 + * @arg TIM_Channel_3: TIM Channel 3 + * @param TIM_CCxN: specifies the TIM Channel CCxNE bit new state. + * This parameter can be: TIM_CCxN_Enable or TIM_CCxN_Disable. + * @retval None + */ +void TIM_CCxNCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCxN) +{ + uint16_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_COMPLEMENTARY_CHANNEL(TIM_Channel)); + assert_param(IS_TIM_CCXN(TIM_CCxN)); + + tmp = CCER_CCNE_SET << TIM_Channel; + + /* Reset the CCxNE Bit */ + TIMx->CCER &= (uint16_t) ~tmp; + + /* Set or reset the CCxNE Bit */ + TIMx->CCER |= (uint16_t)(TIM_CCxN << TIM_Channel); +} +/** + * @} + */ + +/** @defgroup TIM_Group3 Input Capture management functions + * @brief Input Capture management functions + * +@verbatim + =============================================================================== + Input Capture management functions + =============================================================================== + + =================================================================== + TIM Driver: how to use it in Input Capture Mode + =================================================================== + To use the Timer in Input Capture mode, the following steps are mandatory: + + 1. Enable TIM clock using RCC_APBxPeriphClockCmd(RCC_APBxPeriph_TIMx, ENABLE) function + + 2. Configure the TIM pins by configuring the corresponding GPIO pins + + 2. Configure the Time base unit as described in the first part of this driver, + if needed, else the Timer will run with the default configuration: + - Autoreload value = 0xFFFF + - Prescaler value = 0x0000 + - Counter mode = Up counting + - Clock Division = TIM_CKD_DIV1 + + 3. Fill the TIM_ICInitStruct with the desired parameters including: + - TIM Channel: TIM_Channel + - TIM Input Capture polarity: TIM_ICPolarity + - TIM Input Capture selection: TIM_ICSelection + - TIM Input Capture Prescaler: TIM_ICPrescaler + - TIM Input CApture filter value: TIM_ICFilter + + 4. Call TIM_ICInit(TIMx, &TIM_ICInitStruct) to configure the desired channel with the + corresponding configuration and to measure only frequency or duty cycle of the input signal, + or, + Call TIM_PWMIConfig(TIMx, &TIM_ICInitStruct) to configure the desired channels with the + corresponding configuration and to measure the frequency and the duty cycle of the input signal + + 5. Enable the NVIC or the DMA to read the measured frequency. + + 6. Enable the corresponding interrupt (or DMA request) to read the Captured value, + using the function TIM_ITConfig(TIMx, TIM_IT_CCx) (or TIM_DMA_Cmd(TIMx, TIM_DMA_CCx)) + + 7. Call the TIM_Cmd(ENABLE) function to enable the TIM counter. + + 8. Use TIM_GetCapturex(TIMx); to read the captured value. + + Note1: All other functions can be used separately to modify, if needed, + a specific feature of the Timer. + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the TIM peripheral according to the specified parameters + * in the TIM_ICInitStruct. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_ICInit(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_IC_POLARITY(TIM_ICInitStruct->TIM_ICPolarity)); + assert_param(IS_TIM_IC_SELECTION(TIM_ICInitStruct->TIM_ICSelection)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICInitStruct->TIM_ICPrescaler)); + assert_param(IS_TIM_IC_FILTER(TIM_ICInitStruct->TIM_ICFilter)); + + if (TIM_ICInitStruct->TIM_Channel == TIM_Channel_1) + { + /* TI1 Configuration */ + TI1_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, + TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC1Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } + else if (TIM_ICInitStruct->TIM_Channel == TIM_Channel_2) + { + /* TI2 Configuration */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + TI2_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, + TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC2Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } + else if (TIM_ICInitStruct->TIM_Channel == TIM_Channel_3) + { + /* TI3 Configuration */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + TI3_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, + TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC3Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } + else + { + /* TI4 Configuration */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + TI4_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, + TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC4Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } +} + +/** + * @brief Fills each TIM_ICInitStruct member with its default value. + * @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure which will + * be initialized. + * @retval None + */ +void TIM_ICStructInit(TIM_ICInitTypeDef* TIM_ICInitStruct) +{ + /* Set the default configuration */ + TIM_ICInitStruct->TIM_Channel = TIM_Channel_1; + TIM_ICInitStruct->TIM_ICPolarity = TIM_ICPolarity_Rising; + TIM_ICInitStruct->TIM_ICSelection = TIM_ICSelection_DirectTI; + TIM_ICInitStruct->TIM_ICPrescaler = TIM_ICPSC_DIV1; + TIM_ICInitStruct->TIM_ICFilter = 0x00; +} + +/** + * @brief Configures the TIM peripheral according to the specified parameters + * in the TIM_ICInitStruct to measure an external PWM signal. + * @param TIMx: where x can be 1, 2, 3, 4, 5,8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_PWMIConfig(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct) +{ + uint16_t icoppositepolarity = TIM_ICPolarity_Rising; + uint16_t icoppositeselection = TIM_ICSelection_DirectTI; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + + /* Select the Opposite Input Polarity */ + if (TIM_ICInitStruct->TIM_ICPolarity == TIM_ICPolarity_Rising) + { + icoppositepolarity = TIM_ICPolarity_Falling; + } + else + { + icoppositepolarity = TIM_ICPolarity_Rising; + } + /* Select the Opposite Input */ + if (TIM_ICInitStruct->TIM_ICSelection == TIM_ICSelection_DirectTI) + { + icoppositeselection = TIM_ICSelection_IndirectTI; + } + else + { + icoppositeselection = TIM_ICSelection_DirectTI; + } + if (TIM_ICInitStruct->TIM_Channel == TIM_Channel_1) + { + /* TI1 Configuration */ + TI1_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC1Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + /* TI2 Configuration */ + TI2_Config(TIMx, icoppositepolarity, icoppositeselection, TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC2Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } + else + { + /* TI2 Configuration */ + TI2_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC2Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + /* TI1 Configuration */ + TI1_Config(TIMx, icoppositepolarity, icoppositeselection, TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC1Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } +} + +/** + * @brief Gets the TIMx Input Capture 1 value. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @retval Capture Compare 1 Register value. + */ +uint32_t TIM_GetCapture1(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + + /* Get the Capture 1 Register value */ + return TIMx->CCR1; +} + +/** + * @brief Gets the TIMx Input Capture 2 value. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @retval Capture Compare 2 Register value. + */ +uint32_t TIM_GetCapture2(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + + /* Get the Capture 2 Register value */ + return TIMx->CCR2; +} + +/** + * @brief Gets the TIMx Input Capture 3 value. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @retval Capture Compare 3 Register value. + */ +uint32_t TIM_GetCapture3(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + + /* Get the Capture 3 Register value */ + return TIMx->CCR3; +} + +/** + * @brief Gets the TIMx Input Capture 4 value. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @retval Capture Compare 4 Register value. + */ +uint32_t TIM_GetCapture4(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + + /* Get the Capture 4 Register value */ + return TIMx->CCR4; +} + +/** + * @brief Sets the TIMx Input Capture 1 prescaler. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_ICPSC: specifies the Input Capture1 prescaler new value. + * This parameter can be one of the following values: + * @arg TIM_ICPSC_DIV1: no prescaler + * @arg TIM_ICPSC_DIV2: capture is done once every 2 events + * @arg TIM_ICPSC_DIV4: capture is done once every 4 events + * @arg TIM_ICPSC_DIV8: capture is done once every 8 events + * @retval None + */ +void TIM_SetIC1Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); + + /* Reset the IC1PSC Bits */ + TIMx->CCMR1 &= (uint16_t)~TIM_CCMR1_IC1PSC; + + /* Set the IC1PSC value */ + TIMx->CCMR1 |= TIM_ICPSC; +} + +/** + * @brief Sets the TIMx Input Capture 2 prescaler. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_ICPSC: specifies the Input Capture2 prescaler new value. + * This parameter can be one of the following values: + * @arg TIM_ICPSC_DIV1: no prescaler + * @arg TIM_ICPSC_DIV2: capture is done once every 2 events + * @arg TIM_ICPSC_DIV4: capture is done once every 4 events + * @arg TIM_ICPSC_DIV8: capture is done once every 8 events + * @retval None + */ +void TIM_SetIC2Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); + + /* Reset the IC2PSC Bits */ + TIMx->CCMR1 &= (uint16_t)~TIM_CCMR1_IC2PSC; + + /* Set the IC2PSC value */ + TIMx->CCMR1 |= (uint16_t)(TIM_ICPSC << 8); +} + +/** + * @brief Sets the TIMx Input Capture 3 prescaler. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ICPSC: specifies the Input Capture3 prescaler new value. + * This parameter can be one of the following values: + * @arg TIM_ICPSC_DIV1: no prescaler + * @arg TIM_ICPSC_DIV2: capture is done once every 2 events + * @arg TIM_ICPSC_DIV4: capture is done once every 4 events + * @arg TIM_ICPSC_DIV8: capture is done once every 8 events + * @retval None + */ +void TIM_SetIC3Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); + + /* Reset the IC3PSC Bits */ + TIMx->CCMR2 &= (uint16_t)~TIM_CCMR2_IC3PSC; + + /* Set the IC3PSC value */ + TIMx->CCMR2 |= TIM_ICPSC; +} + +/** + * @brief Sets the TIMx Input Capture 4 prescaler. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ICPSC: specifies the Input Capture4 prescaler new value. + * This parameter can be one of the following values: + * @arg TIM_ICPSC_DIV1: no prescaler + * @arg TIM_ICPSC_DIV2: capture is done once every 2 events + * @arg TIM_ICPSC_DIV4: capture is done once every 4 events + * @arg TIM_ICPSC_DIV8: capture is done once every 8 events + * @retval None + */ +void TIM_SetIC4Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); + + /* Reset the IC4PSC Bits */ + TIMx->CCMR2 &= (uint16_t)~TIM_CCMR2_IC4PSC; + + /* Set the IC4PSC value */ + TIMx->CCMR2 |= (uint16_t)(TIM_ICPSC << 8); +} +/** + * @} + */ + +/** @defgroup TIM_Group4 Advanced-control timers (TIM1 and TIM8) specific features + * @brief Advanced-control timers (TIM1 and TIM8) specific features + * +@verbatim + =============================================================================== + Advanced-control timers (TIM1 and TIM8) specific features + =============================================================================== + + =================================================================== + TIM Driver: how to use the Break feature + =================================================================== + After configuring the Timer channel(s) in the appropriate Output Compare mode: + + 1. Fill the TIM_BDTRInitStruct with the desired parameters for the Timer + Break Polarity, dead time, Lock level, the OSSI/OSSR State and the + AOE(automatic output enable). + + 2. Call TIM_BDTRConfig(TIMx, &TIM_BDTRInitStruct) to configure the Timer + + 3. Enable the Main Output using TIM_CtrlPWMOutputs(TIM1, ENABLE) + + 4. Once the break even occurs, the Timer's output signals are put in reset + state or in a known state (according to the configuration made in + TIM_BDTRConfig() function). + +@endverbatim + * @{ + */ + +/** + * @brief Configures the Break feature, dead time, Lock level, OSSI/OSSR State + * and the AOE(automatic output enable). + * @param TIMx: where x can be 1 or 8 to select the TIM + * @param TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure that + * contains the BDTR Register configuration information for the TIM peripheral. + * @retval None + */ +void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_OSSR_STATE(TIM_BDTRInitStruct->TIM_OSSRState)); + assert_param(IS_TIM_OSSI_STATE(TIM_BDTRInitStruct->TIM_OSSIState)); + assert_param(IS_TIM_LOCK_LEVEL(TIM_BDTRInitStruct->TIM_LOCKLevel)); + assert_param(IS_TIM_BREAK_STATE(TIM_BDTRInitStruct->TIM_Break)); + assert_param(IS_TIM_BREAK_POLARITY(TIM_BDTRInitStruct->TIM_BreakPolarity)); + assert_param(IS_TIM_AUTOMATIC_OUTPUT_STATE(TIM_BDTRInitStruct->TIM_AutomaticOutput)); + + /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State, + the OSSI State, the dead time value and the Automatic Output Enable Bit */ + TIMx->BDTR = (uint32_t)TIM_BDTRInitStruct->TIM_OSSRState | TIM_BDTRInitStruct->TIM_OSSIState | + TIM_BDTRInitStruct->TIM_LOCKLevel | TIM_BDTRInitStruct->TIM_DeadTime | + TIM_BDTRInitStruct->TIM_Break | TIM_BDTRInitStruct->TIM_BreakPolarity | + TIM_BDTRInitStruct->TIM_AutomaticOutput; +} + +/** + * @brief Fills each TIM_BDTRInitStruct member with its default value. + * @param TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure which + * will be initialized. + * @retval None + */ +void TIM_BDTRStructInit(TIM_BDTRInitTypeDef* TIM_BDTRInitStruct) +{ + /* Set the default configuration */ + TIM_BDTRInitStruct->TIM_OSSRState = TIM_OSSRState_Disable; + TIM_BDTRInitStruct->TIM_OSSIState = TIM_OSSIState_Disable; + TIM_BDTRInitStruct->TIM_LOCKLevel = TIM_LOCKLevel_OFF; + TIM_BDTRInitStruct->TIM_DeadTime = 0x00; + TIM_BDTRInitStruct->TIM_Break = TIM_Break_Disable; + TIM_BDTRInitStruct->TIM_BreakPolarity = TIM_BreakPolarity_Low; + TIM_BDTRInitStruct->TIM_AutomaticOutput = TIM_AutomaticOutput_Disable; +} + +/** + * @brief Enables or disables the TIM peripheral Main Outputs. + * @param TIMx: where x can be 1 or 8 to select the TIMx peripheral. + * @param NewState: new state of the TIM peripheral Main Outputs. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_CtrlPWMOutputs(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the TIM Main Output */ + TIMx->BDTR |= TIM_BDTR_MOE; + } + else + { + /* Disable the TIM Main Output */ + TIMx->BDTR &= (uint16_t)~TIM_BDTR_MOE; + } +} + +/** + * @brief Selects the TIM peripheral Commutation event. + * @param TIMx: where x can be 1 or 8 to select the TIMx peripheral + * @param NewState: new state of the Commutation event. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_SelectCOM(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the COM Bit */ + TIMx->CR2 |= TIM_CR2_CCUS; + } + else + { + /* Reset the COM Bit */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_CCUS; + } +} + +/** + * @brief Sets or Resets the TIM peripheral Capture Compare Preload Control bit. + * @param TIMx: where x can be 1 or 8 to select the TIMx peripheral + * @param NewState: new state of the Capture Compare Preload Control bit + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_CCPreloadControl(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Set the CCPC Bit */ + TIMx->CR2 |= TIM_CR2_CCPC; + } + else + { + /* Reset the CCPC Bit */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_CCPC; + } +} +/** + * @} + */ + +/** @defgroup TIM_Group5 Interrupts DMA and flags management functions + * @brief Interrupts, DMA and flags management functions + * +@verbatim + =============================================================================== + Interrupts, DMA and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified TIM interrupts. + * @param TIMx: where x can be 1 to 14 to select the TIMx peripheral. + * @param TIM_IT: specifies the TIM interrupts sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg TIM_IT_Update: TIM update Interrupt source + * @arg TIM_IT_CC1: TIM Capture Compare 1 Interrupt source + * @arg TIM_IT_CC2: TIM Capture Compare 2 Interrupt source + * @arg TIM_IT_CC3: TIM Capture Compare 3 Interrupt source + * @arg TIM_IT_CC4: TIM Capture Compare 4 Interrupt source + * @arg TIM_IT_COM: TIM Commutation Interrupt source + * @arg TIM_IT_Trigger: TIM Trigger Interrupt source + * @arg TIM_IT_Break: TIM Break Interrupt source + * + * @note For TIM6 and TIM7 only the parameter TIM_IT_Update can be used + * @note For TIM9 and TIM12 only one of the following parameters can be used: TIM_IT_Update, + * TIM_IT_CC1, TIM_IT_CC2 or TIM_IT_Trigger. + * @note For TIM10, TIM11, TIM13 and TIM14 only one of the following parameters can + * be used: TIM_IT_Update or TIM_IT_CC1 + * @note TIM_IT_COM and TIM_IT_Break can be used only with TIM1 and TIM8 + * + * @param NewState: new state of the TIM interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_ITConfig(TIM_TypeDef* TIMx, uint16_t TIM_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_IT(TIM_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the Interrupt sources */ + TIMx->DIER |= TIM_IT; + } + else + { + /* Disable the Interrupt sources */ + TIMx->DIER &= (uint16_t)~TIM_IT; + } +} + +/** + * @brief Configures the TIMx event to be generate by software. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_EventSource: specifies the event source. + * This parameter can be one or more of the following values: + * @arg TIM_EventSource_Update: Timer update Event source + * @arg TIM_EventSource_CC1: Timer Capture Compare 1 Event source + * @arg TIM_EventSource_CC2: Timer Capture Compare 2 Event source + * @arg TIM_EventSource_CC3: Timer Capture Compare 3 Event source + * @arg TIM_EventSource_CC4: Timer Capture Compare 4 Event source + * @arg TIM_EventSource_COM: Timer COM event source + * @arg TIM_EventSource_Trigger: Timer Trigger Event source + * @arg TIM_EventSource_Break: Timer Break event source + * + * @note TIM6 and TIM7 can only generate an update event. + * @note TIM_EventSource_COM and TIM_EventSource_Break are used only with TIM1 and TIM8. + * + * @retval None + */ +void TIM_GenerateEvent(TIM_TypeDef* TIMx, uint16_t TIM_EventSource) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_EVENT_SOURCE(TIM_EventSource)); + + /* Set the event sources */ + TIMx->EGR = TIM_EventSource; +} + +/** + * @brief Checks whether the specified TIM flag is set or not. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg TIM_FLAG_Update: TIM update Flag + * @arg TIM_FLAG_CC1: TIM Capture Compare 1 Flag + * @arg TIM_FLAG_CC2: TIM Capture Compare 2 Flag + * @arg TIM_FLAG_CC3: TIM Capture Compare 3 Flag + * @arg TIM_FLAG_CC4: TIM Capture Compare 4 Flag + * @arg TIM_FLAG_COM: TIM Commutation Flag + * @arg TIM_FLAG_Trigger: TIM Trigger Flag + * @arg TIM_FLAG_Break: TIM Break Flag + * @arg TIM_FLAG_CC1OF: TIM Capture Compare 1 over capture Flag + * @arg TIM_FLAG_CC2OF: TIM Capture Compare 2 over capture Flag + * @arg TIM_FLAG_CC3OF: TIM Capture Compare 3 over capture Flag + * @arg TIM_FLAG_CC4OF: TIM Capture Compare 4 over capture Flag + * + * @note TIM6 and TIM7 can have only one update flag. + * @note TIM_FLAG_COM and TIM_FLAG_Break are used only with TIM1 and TIM8. + * + * @retval The new state of TIM_FLAG (SET or RESET). + */ +FlagStatus TIM_GetFlagStatus(TIM_TypeDef* TIMx, uint16_t TIM_FLAG) +{ + ITStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_GET_FLAG(TIM_FLAG)); + + + if ((TIMx->SR & TIM_FLAG) != (uint16_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the TIMx's pending flags. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_FLAG: specifies the flag bit to clear. + * This parameter can be any combination of the following values: + * @arg TIM_FLAG_Update: TIM update Flag + * @arg TIM_FLAG_CC1: TIM Capture Compare 1 Flag + * @arg TIM_FLAG_CC2: TIM Capture Compare 2 Flag + * @arg TIM_FLAG_CC3: TIM Capture Compare 3 Flag + * @arg TIM_FLAG_CC4: TIM Capture Compare 4 Flag + * @arg TIM_FLAG_COM: TIM Commutation Flag + * @arg TIM_FLAG_Trigger: TIM Trigger Flag + * @arg TIM_FLAG_Break: TIM Break Flag + * @arg TIM_FLAG_CC1OF: TIM Capture Compare 1 over capture Flag + * @arg TIM_FLAG_CC2OF: TIM Capture Compare 2 over capture Flag + * @arg TIM_FLAG_CC3OF: TIM Capture Compare 3 over capture Flag + * @arg TIM_FLAG_CC4OF: TIM Capture Compare 4 over capture Flag + * + * @note TIM6 and TIM7 can have only one update flag. + * @note TIM_FLAG_COM and TIM_FLAG_Break are used only with TIM1 and TIM8. + * + * @retval None + */ +void TIM_ClearFlag(TIM_TypeDef* TIMx, uint16_t TIM_FLAG) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Clear the flags */ + TIMx->SR = (uint16_t)~TIM_FLAG; +} + +/** + * @brief Checks whether the TIM interrupt has occurred or not. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_IT: specifies the TIM interrupt source to check. + * This parameter can be one of the following values: + * @arg TIM_IT_Update: TIM update Interrupt source + * @arg TIM_IT_CC1: TIM Capture Compare 1 Interrupt source + * @arg TIM_IT_CC2: TIM Capture Compare 2 Interrupt source + * @arg TIM_IT_CC3: TIM Capture Compare 3 Interrupt source + * @arg TIM_IT_CC4: TIM Capture Compare 4 Interrupt source + * @arg TIM_IT_COM: TIM Commutation Interrupt source + * @arg TIM_IT_Trigger: TIM Trigger Interrupt source + * @arg TIM_IT_Break: TIM Break Interrupt source + * + * @note TIM6 and TIM7 can generate only an update interrupt. + * @note TIM_IT_COM and TIM_IT_Break are used only with TIM1 and TIM8. + * + * @retval The new state of the TIM_IT(SET or RESET). + */ +ITStatus TIM_GetITStatus(TIM_TypeDef* TIMx, uint16_t TIM_IT) +{ + ITStatus bitstatus = RESET; + uint16_t itstatus = 0x0, itenable = 0x0; + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_GET_IT(TIM_IT)); + + itstatus = TIMx->SR & TIM_IT; + + itenable = TIMx->DIER & TIM_IT; + if ((itstatus != (uint16_t)RESET) && (itenable != (uint16_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the TIMx's interrupt pending bits. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_IT: specifies the pending bit to clear. + * This parameter can be any combination of the following values: + * @arg TIM_IT_Update: TIM1 update Interrupt source + * @arg TIM_IT_CC1: TIM Capture Compare 1 Interrupt source + * @arg TIM_IT_CC2: TIM Capture Compare 2 Interrupt source + * @arg TIM_IT_CC3: TIM Capture Compare 3 Interrupt source + * @arg TIM_IT_CC4: TIM Capture Compare 4 Interrupt source + * @arg TIM_IT_COM: TIM Commutation Interrupt source + * @arg TIM_IT_Trigger: TIM Trigger Interrupt source + * @arg TIM_IT_Break: TIM Break Interrupt source + * + * @note TIM6 and TIM7 can generate only an update interrupt. + * @note TIM_IT_COM and TIM_IT_Break are used only with TIM1 and TIM8. + * + * @retval None + */ +void TIM_ClearITPendingBit(TIM_TypeDef* TIMx, uint16_t TIM_IT) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Clear the IT pending Bit */ + TIMx->SR = (uint16_t)~TIM_IT; +} + +/** + * @brief Configures the TIMx's DMA interface. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_DMABase: DMA Base address. + * This parameter can be one of the following values: + * @arg TIM_DMABase_CR1 + * @arg TIM_DMABase_CR2 + * @arg TIM_DMABase_SMCR + * @arg TIM_DMABase_DIER + * @arg TIM1_DMABase_SR + * @arg TIM_DMABase_EGR + * @arg TIM_DMABase_CCMR1 + * @arg TIM_DMABase_CCMR2 + * @arg TIM_DMABase_CCER + * @arg TIM_DMABase_CNT + * @arg TIM_DMABase_PSC + * @arg TIM_DMABase_ARR + * @arg TIM_DMABase_RCR + * @arg TIM_DMABase_CCR1 + * @arg TIM_DMABase_CCR2 + * @arg TIM_DMABase_CCR3 + * @arg TIM_DMABase_CCR4 + * @arg TIM_DMABase_BDTR + * @arg TIM_DMABase_DCR + * @param TIM_DMABurstLength: DMA Burst length. This parameter can be one value + * between: TIM_DMABurstLength_1Transfer and TIM_DMABurstLength_18Transfers. + * @retval None + */ +void TIM_DMAConfig(TIM_TypeDef* TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_DMA_BASE(TIM_DMABase)); + assert_param(IS_TIM_DMA_LENGTH(TIM_DMABurstLength)); + + /* Set the DMA Base and the DMA Burst Length */ + TIMx->DCR = TIM_DMABase | TIM_DMABurstLength; +} + +/** + * @brief Enables or disables the TIMx's DMA Requests. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 6, 7 or 8 to select the TIM peripheral. + * @param TIM_DMASource: specifies the DMA Request sources. + * This parameter can be any combination of the following values: + * @arg TIM_DMA_Update: TIM update Interrupt source + * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source + * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source + * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source + * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source + * @arg TIM_DMA_COM: TIM Commutation DMA source + * @arg TIM_DMA_Trigger: TIM Trigger DMA source + * @param NewState: new state of the DMA Request sources. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_DMACmd(TIM_TypeDef* TIMx, uint16_t TIM_DMASource, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST5_PERIPH(TIMx)); + assert_param(IS_TIM_DMA_SOURCE(TIM_DMASource)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DMA sources */ + TIMx->DIER |= TIM_DMASource; + } + else + { + /* Disable the DMA sources */ + TIMx->DIER &= (uint16_t)~TIM_DMASource; + } +} + +/** + * @brief Selects the TIMx peripheral Capture Compare DMA source. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param NewState: new state of the Capture Compare DMA source + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_SelectCCDMA(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the CCDS Bit */ + TIMx->CR2 |= TIM_CR2_CCDS; + } + else + { + /* Reset the CCDS Bit */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_CCDS; + } +} +/** + * @} + */ + +/** @defgroup TIM_Group6 Clocks management functions + * @brief Clocks management functions + * +@verbatim + =============================================================================== + Clocks management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the TIMx internal Clock + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @retval None + */ +void TIM_InternalClockConfig(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + + /* Disable slave mode to clock the prescaler directly with the internal clock */ + TIMx->SMCR &= (uint16_t)~TIM_SMCR_SMS; +} + +/** + * @brief Configures the TIMx Internal Trigger as External Clock + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_InputTriggerSource: Trigger source. + * This parameter can be one of the following values: + * @arg TIM_TS_ITR0: Internal Trigger 0 + * @arg TIM_TS_ITR1: Internal Trigger 1 + * @arg TIM_TS_ITR2: Internal Trigger 2 + * @arg TIM_TS_ITR3: Internal Trigger 3 + * @retval None + */ +void TIM_ITRxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_INTERNAL_TRIGGER_SELECTION(TIM_InputTriggerSource)); + + /* Select the Internal Trigger */ + TIM_SelectInputTrigger(TIMx, TIM_InputTriggerSource); + + /* Select the External clock mode1 */ + TIMx->SMCR |= TIM_SlaveMode_External1; +} + +/** + * @brief Configures the TIMx Trigger as External Clock + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 + * to select the TIM peripheral. + * @param TIM_TIxExternalCLKSource: Trigger source. + * This parameter can be one of the following values: + * @arg TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector + * @arg TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1 + * @arg TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2 + * @param TIM_ICPolarity: specifies the TIx Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @param ICFilter: specifies the filter value. + * This parameter must be a value between 0x0 and 0xF. + * @retval None + */ +void TIM_TIxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_TIxExternalCLKSource, + uint16_t TIM_ICPolarity, uint16_t ICFilter) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_IC_POLARITY(TIM_ICPolarity)); + assert_param(IS_TIM_IC_FILTER(ICFilter)); + + /* Configure the Timer Input Clock Source */ + if (TIM_TIxExternalCLKSource == TIM_TIxExternalCLK1Source_TI2) + { + TI2_Config(TIMx, TIM_ICPolarity, TIM_ICSelection_DirectTI, ICFilter); + } + else + { + TI1_Config(TIMx, TIM_ICPolarity, TIM_ICSelection_DirectTI, ICFilter); + } + /* Select the Trigger source */ + TIM_SelectInputTrigger(TIMx, TIM_TIxExternalCLKSource); + /* Select the External clock mode1 */ + TIMx->SMCR |= TIM_SlaveMode_External1; +} + +/** + * @brief Configures the External clock Mode1 + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ExtTRGPrescaler: The external Trigger Prescaler. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF. + * @arg TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2. + * @arg TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4. + * @arg TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8. + * @param TIM_ExtTRGPolarity: The external Trigger Polarity. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPolarity_Inverted: active low or falling edge active. + * @arg TIM_ExtTRGPolarity_NonInverted: active high or rising edge active. + * @param ExtTRGFilter: External Trigger Filter. + * This parameter must be a value between 0x00 and 0x0F + * @retval None + */ +void TIM_ETRClockMode1Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, + uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) +{ + uint16_t tmpsmcr = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_EXT_PRESCALER(TIM_ExtTRGPrescaler)); + assert_param(IS_TIM_EXT_POLARITY(TIM_ExtTRGPolarity)); + assert_param(IS_TIM_EXT_FILTER(ExtTRGFilter)); + /* Configure the ETR Clock source */ + TIM_ETRConfig(TIMx, TIM_ExtTRGPrescaler, TIM_ExtTRGPolarity, ExtTRGFilter); + + /* Get the TIMx SMCR register value */ + tmpsmcr = TIMx->SMCR; + + /* Reset the SMS Bits */ + tmpsmcr &= (uint16_t)~TIM_SMCR_SMS; + + /* Select the External clock mode1 */ + tmpsmcr |= TIM_SlaveMode_External1; + + /* Select the Trigger selection : ETRF */ + tmpsmcr &= (uint16_t)~TIM_SMCR_TS; + tmpsmcr |= TIM_TS_ETRF; + + /* Write to TIMx SMCR */ + TIMx->SMCR = tmpsmcr; +} + +/** + * @brief Configures the External clock Mode2 + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ExtTRGPrescaler: The external Trigger Prescaler. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF. + * @arg TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2. + * @arg TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4. + * @arg TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8. + * @param TIM_ExtTRGPolarity: The external Trigger Polarity. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPolarity_Inverted: active low or falling edge active. + * @arg TIM_ExtTRGPolarity_NonInverted: active high or rising edge active. + * @param ExtTRGFilter: External Trigger Filter. + * This parameter must be a value between 0x00 and 0x0F + * @retval None + */ +void TIM_ETRClockMode2Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, + uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_EXT_PRESCALER(TIM_ExtTRGPrescaler)); + assert_param(IS_TIM_EXT_POLARITY(TIM_ExtTRGPolarity)); + assert_param(IS_TIM_EXT_FILTER(ExtTRGFilter)); + + /* Configure the ETR Clock source */ + TIM_ETRConfig(TIMx, TIM_ExtTRGPrescaler, TIM_ExtTRGPolarity, ExtTRGFilter); + + /* Enable the External clock mode2 */ + TIMx->SMCR |= TIM_SMCR_ECE; +} +/** + * @} + */ + +/** @defgroup TIM_Group7 Synchronization management functions + * @brief Synchronization management functions + * +@verbatim + =============================================================================== + Synchronization management functions + =============================================================================== + + =================================================================== + TIM Driver: how to use it in synchronization Mode + =================================================================== + Case of two/several Timers + ************************** + 1. Configure the Master Timers using the following functions: + - void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_TRGOSource); + - void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_MasterSlaveMode); + 2. Configure the Slave Timers using the following functions: + - void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource); + - void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode); + + Case of Timers and external trigger(ETR pin) + ******************************************** + 1. Configure the External trigger using this function: + - void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, + uint16_t ExtTRGFilter); + 2. Configure the Slave Timers using the following functions: + - void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource); + - void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode); + +@endverbatim + * @{ + */ + +/** + * @brief Selects the Input Trigger source + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 + * to select the TIM peripheral. + * @param TIM_InputTriggerSource: The Input Trigger source. + * This parameter can be one of the following values: + * @arg TIM_TS_ITR0: Internal Trigger 0 + * @arg TIM_TS_ITR1: Internal Trigger 1 + * @arg TIM_TS_ITR2: Internal Trigger 2 + * @arg TIM_TS_ITR3: Internal Trigger 3 + * @arg TIM_TS_TI1F_ED: TI1 Edge Detector + * @arg TIM_TS_TI1FP1: Filtered Timer Input 1 + * @arg TIM_TS_TI2FP2: Filtered Timer Input 2 + * @arg TIM_TS_ETRF: External Trigger input + * @retval None + */ +void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource) +{ + uint16_t tmpsmcr = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_TRIGGER_SELECTION(TIM_InputTriggerSource)); + + /* Get the TIMx SMCR register value */ + tmpsmcr = TIMx->SMCR; + + /* Reset the TS Bits */ + tmpsmcr &= (uint16_t)~TIM_SMCR_TS; + + /* Set the Input Trigger source */ + tmpsmcr |= TIM_InputTriggerSource; + + /* Write to TIMx SMCR */ + TIMx->SMCR = tmpsmcr; +} + +/** + * @brief Selects the TIMx Trigger Output Mode. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 6, 7 or 8 to select the TIM peripheral. + * + * @param TIM_TRGOSource: specifies the Trigger Output source. + * This parameter can be one of the following values: + * + * - For all TIMx + * @arg TIM_TRGOSource_Reset: The UG bit in the TIM_EGR register is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_Enable: The Counter Enable CEN is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_Update: The update event is selected as the trigger output(TRGO) + * + * - For all TIMx except TIM6 and TIM7 + * @arg TIM_TRGOSource_OC1: The trigger output sends a positive pulse when the CC1IF flag + * is to be set, as soon as a capture or compare match occurs(TRGO) + * @arg TIM_TRGOSource_OC1Ref: OC1REF signal is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_OC2Ref: OC2REF signal is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_OC3Ref: OC3REF signal is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_OC4Ref: OC4REF signal is used as the trigger output(TRGO) + * + * @retval None + */ +void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_TRGOSource) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST5_PERIPH(TIMx)); + assert_param(IS_TIM_TRGO_SOURCE(TIM_TRGOSource)); + + /* Reset the MMS Bits */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_MMS; + /* Select the TRGO source */ + TIMx->CR2 |= TIM_TRGOSource; +} + +/** + * @brief Selects the TIMx Slave Mode. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral. + * @param TIM_SlaveMode: specifies the Timer Slave Mode. + * This parameter can be one of the following values: + * @arg TIM_SlaveMode_Reset: Rising edge of the selected trigger signal(TRGI) reinitialize + * the counter and triggers an update of the registers + * @arg TIM_SlaveMode_Gated: The counter clock is enabled when the trigger signal (TRGI) is high + * @arg TIM_SlaveMode_Trigger: The counter starts at a rising edge of the trigger TRGI + * @arg TIM_SlaveMode_External1: Rising edges of the selected trigger (TRGI) clock the counter + * @retval None + */ +void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_SLAVE_MODE(TIM_SlaveMode)); + + /* Reset the SMS Bits */ + TIMx->SMCR &= (uint16_t)~TIM_SMCR_SMS; + + /* Select the Slave Mode */ + TIMx->SMCR |= TIM_SlaveMode; +} + +/** + * @brief Sets or Resets the TIMx Master/Slave Mode. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral. + * @param TIM_MasterSlaveMode: specifies the Timer Master Slave Mode. + * This parameter can be one of the following values: + * @arg TIM_MasterSlaveMode_Enable: synchronization between the current timer + * and its slaves (through TRGO) + * @arg TIM_MasterSlaveMode_Disable: No action + * @retval None + */ +void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_MasterSlaveMode) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_MSM_STATE(TIM_MasterSlaveMode)); + + /* Reset the MSM Bit */ + TIMx->SMCR &= (uint16_t)~TIM_SMCR_MSM; + + /* Set or Reset the MSM Bit */ + TIMx->SMCR |= TIM_MasterSlaveMode; +} + +/** + * @brief Configures the TIMx External Trigger (ETR). + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ExtTRGPrescaler: The external Trigger Prescaler. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF. + * @arg TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2. + * @arg TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4. + * @arg TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8. + * @param TIM_ExtTRGPolarity: The external Trigger Polarity. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPolarity_Inverted: active low or falling edge active. + * @arg TIM_ExtTRGPolarity_NonInverted: active high or rising edge active. + * @param ExtTRGFilter: External Trigger Filter. + * This parameter must be a value between 0x00 and 0x0F + * @retval None + */ +void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, + uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) +{ + uint16_t tmpsmcr = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_EXT_PRESCALER(TIM_ExtTRGPrescaler)); + assert_param(IS_TIM_EXT_POLARITY(TIM_ExtTRGPolarity)); + assert_param(IS_TIM_EXT_FILTER(ExtTRGFilter)); + + tmpsmcr = TIMx->SMCR; + + /* Reset the ETR Bits */ + tmpsmcr &= SMCR_ETR_MASK; + + /* Set the Prescaler, the Filter value and the Polarity */ + tmpsmcr |= (uint16_t)(TIM_ExtTRGPrescaler | (uint16_t)(TIM_ExtTRGPolarity | (uint16_t)(ExtTRGFilter << (uint16_t)8))); + + /* Write to TIMx SMCR */ + TIMx->SMCR = tmpsmcr; +} +/** + * @} + */ + +/** @defgroup TIM_Group8 Specific interface management functions + * @brief Specific interface management functions + * +@verbatim + =============================================================================== + Specific interface management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the TIMx Encoder Interface. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_EncoderMode: specifies the TIMx Encoder Mode. + * This parameter can be one of the following values: + * @arg TIM_EncoderMode_TI1: Counter counts on TI1FP1 edge depending on TI2FP2 level. + * @arg TIM_EncoderMode_TI2: Counter counts on TI2FP2 edge depending on TI1FP1 level. + * @arg TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending + * on the level of the other input. + * @param TIM_IC1Polarity: specifies the IC1 Polarity + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Falling: IC Falling edge. + * @arg TIM_ICPolarity_Rising: IC Rising edge. + * @param TIM_IC2Polarity: specifies the IC2 Polarity + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Falling: IC Falling edge. + * @arg TIM_ICPolarity_Rising: IC Rising edge. + * @retval None + */ +void TIM_EncoderInterfaceConfig(TIM_TypeDef* TIMx, uint16_t TIM_EncoderMode, + uint16_t TIM_IC1Polarity, uint16_t TIM_IC2Polarity) +{ + uint16_t tmpsmcr = 0; + uint16_t tmpccmr1 = 0; + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_ENCODER_MODE(TIM_EncoderMode)); + assert_param(IS_TIM_IC_POLARITY(TIM_IC1Polarity)); + assert_param(IS_TIM_IC_POLARITY(TIM_IC2Polarity)); + + /* Get the TIMx SMCR register value */ + tmpsmcr = TIMx->SMCR; + + /* Get the TIMx CCMR1 register value */ + tmpccmr1 = TIMx->CCMR1; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + + /* Set the encoder Mode */ + tmpsmcr &= (uint16_t)~TIM_SMCR_SMS; + tmpsmcr |= TIM_EncoderMode; + + /* Select the Capture Compare 1 and the Capture Compare 2 as input */ + tmpccmr1 &= ((uint16_t)~TIM_CCMR1_CC1S) & ((uint16_t)~TIM_CCMR1_CC2S); + tmpccmr1 |= TIM_CCMR1_CC1S_0 | TIM_CCMR1_CC2S_0; + + /* Set the TI1 and the TI2 Polarities */ + tmpccer &= ((uint16_t)~TIM_CCER_CC1P) & ((uint16_t)~TIM_CCER_CC2P); + tmpccer |= (uint16_t)(TIM_IC1Polarity | (uint16_t)(TIM_IC2Polarity << (uint16_t)4)); + + /* Write to TIMx SMCR */ + TIMx->SMCR = tmpsmcr; + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmr1; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Enables or disables the TIMx's Hall sensor interface. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param NewState: new state of the TIMx Hall sensor interface. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_SelectHallSensor(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the TI1S Bit */ + TIMx->CR2 |= TIM_CR2_TI1S; + } + else + { + /* Reset the TI1S Bit */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_TI1S; + } +} +/** + * @} + */ + +/** @defgroup TIM_Group9 Specific remapping management function + * @brief Specific remapping management function + * +@verbatim + =============================================================================== + Specific remapping management function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the TIM2, TIM5 and TIM11 Remapping input capabilities. + * @param TIMx: where x can be 2, 5 or 11 to select the TIM peripheral. + * @param TIM_Remap: specifies the TIM input remapping source. + * This parameter can be one of the following values: + * @arg TIM2_TIM8_TRGO: TIM2 ITR1 input is connected to TIM8 Trigger output(default) + * @arg TIM2_ETH_PTP: TIM2 ITR1 input is connected to ETH PTP trogger output. + * @arg TIM2_USBFS_SOF: TIM2 ITR1 input is connected to USB FS SOF. + * @arg TIM2_USBHS_SOF: TIM2 ITR1 input is connected to USB HS SOF. + * @arg TIM5_GPIO: TIM5 CH4 input is connected to dedicated Timer pin(default) + * @arg TIM5_LSI: TIM5 CH4 input is connected to LSI clock. + * @arg TIM5_LSE: TIM5 CH4 input is connected to LSE clock. + * @arg TIM5_RTC: TIM5 CH4 input is connected to RTC Output event. + * @arg TIM11_GPIO: TIM11 CH4 input is connected to dedicated Timer pin(default) + * @arg TIM11_HSE: TIM11 CH4 input is connected to HSE_RTC clock + * (HSE divided by a programmable prescaler) + * @retval None + */ +void TIM_RemapConfig(TIM_TypeDef* TIMx, uint16_t TIM_Remap) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST6_PERIPH(TIMx)); + assert_param(IS_TIM_REMAP(TIM_Remap)); + + /* Set the Timer remapping configuration */ + TIMx->OR = TIM_Remap; +} +/** + * @} + */ + +/** + * @brief Configure the TI1 as Input. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 + * to select the TIM peripheral. + * @param TIM_ICPolarity : The Input Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @arg TIM_ICPolarity_BothEdge + * @param TIM_ICSelection: specifies the input to be used. + * This parameter can be one of the following values: + * @arg TIM_ICSelection_DirectTI: TIM Input 1 is selected to be connected to IC1. + * @arg TIM_ICSelection_IndirectTI: TIM Input 1 is selected to be connected to IC2. + * @arg TIM_ICSelection_TRC: TIM Input 1 is selected to be connected to TRC. + * @param TIM_ICFilter: Specifies the Input Capture Filter. + * This parameter must be a value between 0x00 and 0x0F. + * @retval None + */ +static void TI1_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter) +{ + uint16_t tmpccmr1 = 0, tmpccer = 0; + + /* Disable the Channel 1: Reset the CC1E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC1E; + tmpccmr1 = TIMx->CCMR1; + tmpccer = TIMx->CCER; + + /* Select the Input and set the filter */ + tmpccmr1 &= ((uint16_t)~TIM_CCMR1_CC1S) & ((uint16_t)~TIM_CCMR1_IC1F); + tmpccmr1 |= (uint16_t)(TIM_ICSelection | (uint16_t)(TIM_ICFilter << (uint16_t)4)); + + /* Select the Polarity and set the CC1E Bit */ + tmpccer &= (uint16_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP); + tmpccer |= (uint16_t)(TIM_ICPolarity | (uint16_t)TIM_CCER_CC1E); + + /* Write to TIMx CCMR1 and CCER registers */ + TIMx->CCMR1 = tmpccmr1; + TIMx->CCER = tmpccer; +} + +/** + * @brief Configure the TI2 as Input. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_ICPolarity : The Input Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @arg TIM_ICPolarity_BothEdge + * @param TIM_ICSelection: specifies the input to be used. + * This parameter can be one of the following values: + * @arg TIM_ICSelection_DirectTI: TIM Input 2 is selected to be connected to IC2. + * @arg TIM_ICSelection_IndirectTI: TIM Input 2 is selected to be connected to IC1. + * @arg TIM_ICSelection_TRC: TIM Input 2 is selected to be connected to TRC. + * @param TIM_ICFilter: Specifies the Input Capture Filter. + * This parameter must be a value between 0x00 and 0x0F. + * @retval None + */ +static void TI2_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter) +{ + uint16_t tmpccmr1 = 0, tmpccer = 0, tmp = 0; + + /* Disable the Channel 2: Reset the CC2E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC2E; + tmpccmr1 = TIMx->CCMR1; + tmpccer = TIMx->CCER; + tmp = (uint16_t)(TIM_ICPolarity << 4); + + /* Select the Input and set the filter */ + tmpccmr1 &= ((uint16_t)~TIM_CCMR1_CC2S) & ((uint16_t)~TIM_CCMR1_IC2F); + tmpccmr1 |= (uint16_t)(TIM_ICFilter << 12); + tmpccmr1 |= (uint16_t)(TIM_ICSelection << 8); + + /* Select the Polarity and set the CC2E Bit */ + tmpccer &= (uint16_t)~(TIM_CCER_CC2P | TIM_CCER_CC2NP); + tmpccer |= (uint16_t)(tmp | (uint16_t)TIM_CCER_CC2E); + + /* Write to TIMx CCMR1 and CCER registers */ + TIMx->CCMR1 = tmpccmr1 ; + TIMx->CCER = tmpccer; +} + +/** + * @brief Configure the TI3 as Input. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ICPolarity : The Input Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @arg TIM_ICPolarity_BothEdge + * @param TIM_ICSelection: specifies the input to be used. + * This parameter can be one of the following values: + * @arg TIM_ICSelection_DirectTI: TIM Input 3 is selected to be connected to IC3. + * @arg TIM_ICSelection_IndirectTI: TIM Input 3 is selected to be connected to IC4. + * @arg TIM_ICSelection_TRC: TIM Input 3 is selected to be connected to TRC. + * @param TIM_ICFilter: Specifies the Input Capture Filter. + * This parameter must be a value between 0x00 and 0x0F. + * @retval None + */ +static void TI3_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter) +{ + uint16_t tmpccmr2 = 0, tmpccer = 0, tmp = 0; + + /* Disable the Channel 3: Reset the CC3E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC3E; + tmpccmr2 = TIMx->CCMR2; + tmpccer = TIMx->CCER; + tmp = (uint16_t)(TIM_ICPolarity << 8); + + /* Select the Input and set the filter */ + tmpccmr2 &= ((uint16_t)~TIM_CCMR1_CC1S) & ((uint16_t)~TIM_CCMR2_IC3F); + tmpccmr2 |= (uint16_t)(TIM_ICSelection | (uint16_t)(TIM_ICFilter << (uint16_t)4)); + + /* Select the Polarity and set the CC3E Bit */ + tmpccer &= (uint16_t)~(TIM_CCER_CC3P | TIM_CCER_CC3NP); + tmpccer |= (uint16_t)(tmp | (uint16_t)TIM_CCER_CC3E); + + /* Write to TIMx CCMR2 and CCER registers */ + TIMx->CCMR2 = tmpccmr2; + TIMx->CCER = tmpccer; +} + +/** + * @brief Configure the TI4 as Input. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ICPolarity : The Input Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @arg TIM_ICPolarity_BothEdge + * @param TIM_ICSelection: specifies the input to be used. + * This parameter can be one of the following values: + * @arg TIM_ICSelection_DirectTI: TIM Input 4 is selected to be connected to IC4. + * @arg TIM_ICSelection_IndirectTI: TIM Input 4 is selected to be connected to IC3. + * @arg TIM_ICSelection_TRC: TIM Input 4 is selected to be connected to TRC. + * @param TIM_ICFilter: Specifies the Input Capture Filter. + * This parameter must be a value between 0x00 and 0x0F. + * @retval None + */ +static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter) +{ + uint16_t tmpccmr2 = 0, tmpccer = 0, tmp = 0; + + /* Disable the Channel 4: Reset the CC4E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC4E; + tmpccmr2 = TIMx->CCMR2; + tmpccer = TIMx->CCER; + tmp = (uint16_t)(TIM_ICPolarity << 12); + + /* Select the Input and set the filter */ + tmpccmr2 &= ((uint16_t)~TIM_CCMR1_CC2S) & ((uint16_t)~TIM_CCMR1_IC2F); + tmpccmr2 |= (uint16_t)(TIM_ICSelection << 8); + tmpccmr2 |= (uint16_t)(TIM_ICFilter << 12); + + /* Select the Polarity and set the CC4E Bit */ + tmpccer &= (uint16_t)~(TIM_CCER_CC4P | TIM_CCER_CC4NP); + tmpccer |= (uint16_t)(tmp | (uint16_t)TIM_CCER_CC4E); + + /* Write to TIMx CCMR2 and CCER registers */ + TIMx->CCMR2 = tmpccmr2; + TIMx->CCER = tmpccer ; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_usart.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_usart.c new file mode 100644 index 00000000..015fdd92 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_usart.c @@ -0,0 +1,1469 @@ +/** + ****************************************************************************** + * @file stm32f2xx_usart.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Universal synchronous asynchronous receiver + * transmitter (USART): + * - Initialization and Configuration + * - Data transfers + * - Multi-Processor Communication + * - LIN mode + * - Half-duplex mode + * - Smartcard mode + * - IrDA mode + * - DMA transfers management + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable peripheral clock using the follwoing functions + * RCC_APB2PeriphClockCmd(RCC_APB2Periph_USARTx, ENABLE) for USART1 and USART6 + * RCC_APB1PeriphClockCmd(RCC_APB1Periph_USARTx, ENABLE) for USART2, USART3, UART4 or UART5. + * + * 2. According to the USART mode, enable the GPIO clocks using + * RCC_AHB1PeriphClockCmd() function. (The I/O can be TX, RX, CTS, + * or/and SCLK). + * + * 3. Peripheral's alternate function: + * - Connect the pin to the desired peripherals' Alternate + * Function (AF) using GPIO_PinAFConfig() function + * - Configure the desired pin in alternate function by: + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * + * 4. Program the Baud Rate, Word Length , Stop Bit, Parity, Hardware + * flow control and Mode(Receiver/Transmitter) using the USART_Init() + * function. + * + * 5. For synchronous mode, enable the clock and program the polarity, + * phase and last bit using the USART_ClockInit() function. + * + * 5. Enable the NVIC and the corresponding interrupt using the function + * USART_ITConfig() if you need to use interrupt mode. + * + * 6. When using the DMA mode + * - Configure the DMA using DMA_Init() function + * - Active the needed channel Request using USART_DMACmd() function + * + * 7. Enable the USART using the USART_Cmd() function. + * + * 8. Enable the DMA using the DMA_Cmd() function, when using DMA mode. + * + * Refer to Multi-Processor, LIN, half-duplex, Smartcard, IrDA sub-sections + * for more details + * + * In order to reach higher communication baudrates, it is possible to + * enable the oversampling by 8 mode using the function USART_OverSampling8Cmd(). + * This function should be called after enabling the USART clock (RCC_APBxPeriphClockCmd()) + * and before calling the function USART_Init(). + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_usart.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup USART + * @brief USART driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/*!< USART CR1 register clear Mask ((~(uint16_t)0xE9F3)) */ +#define CR1_CLEAR_MASK ((uint16_t)(USART_CR1_M | USART_CR1_PCE | \ + USART_CR1_PS | USART_CR1_TE | \ + USART_CR1_RE)) + +/*!< USART CR2 register clock bits clear Mask ((~(uint16_t)0xF0FF)) */ +#define CR2_CLOCK_CLEAR_MASK ((uint16_t)(USART_CR2_CLKEN | USART_CR2_CPOL | \ + USART_CR2_CPHA | USART_CR2_LBCL)) + +/*!< USART CR3 register clear Mask ((~(uint16_t)0xFCFF)) */ +#define CR3_CLEAR_MASK ((uint16_t)(USART_CR3_RTSE | USART_CR3_CTSE)) + +/*!< USART Interrupts mask */ +#define IT_MASK ((uint16_t)0x001F) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup USART_Private_Functions + * @{ + */ + +/** @defgroup USART_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + + This subsection provides a set of functions allowing to initialize the USART + in asynchronous and in synchronous modes. + - For the asynchronous mode only these parameters can be configured: + - Baud Rate + - Word Length + - Stop Bit + - Parity: If the parity is enabled, then the MSB bit of the data written + in the data register is transmitted but is changed by the parity bit. + Depending on the frame length defined by the M bit (8-bits or 9-bits), + the possible USART frame formats are as listed in the following table: + +-------------------------------------------------------------+ + | M bit | PCE bit | USART frame | + |---------------------|---------------------------------------| + | 0 | 0 | | SB | 8 bit data | STB | | + |---------|-----------|---------------------------------------| + | 0 | 1 | | SB | 7 bit data | PB | STB | | + |---------|-----------|---------------------------------------| + | 1 | 0 | | SB | 9 bit data | STB | | + |---------|-----------|---------------------------------------| + | 1 | 1 | | SB | 8 bit data | PB | STB | | + +-------------------------------------------------------------+ + - Hardware flow control + - Receiver/transmitter modes + + The USART_Init() function follows the USART asynchronous configuration procedure + (details for the procedure are available in reference manual (RM0033)). + + - For the synchronous mode in addition to the asynchronous mode parameters these + parameters should be also configured: + - USART Clock Enabled + - USART polarity + - USART phase + - USART LastBit + + These parameters can be configured using the USART_ClockInit() function. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the USARTx peripheral registers to their default reset values. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @retval None + */ +void USART_DeInit(USART_TypeDef* USARTx) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + + if (USARTx == USART1) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_USART1, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_USART1, DISABLE); + } + else if (USARTx == USART2) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART2, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART2, DISABLE); + } + else if (USARTx == USART3) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART3, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART3, DISABLE); + } + else if (USARTx == UART4) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_UART4, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_UART4, DISABLE); + } + else if (USARTx == UART5) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_UART5, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_UART5, DISABLE); + } + else + { + if (USARTx == USART6) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_USART6, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_USART6, DISABLE); + } + } +} + +/** + * @brief Initializes the USARTx peripheral according to the specified + * parameters in the USART_InitStruct . + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_InitStruct: pointer to a USART_InitTypeDef structure that contains + * the configuration information for the specified USART peripheral. + * @retval None + */ +void USART_Init(USART_TypeDef* USARTx, USART_InitTypeDef* USART_InitStruct) +{ + uint32_t tmpreg = 0x00, apbclock = 0x00; + uint32_t integerdivider = 0x00; + uint32_t fractionaldivider = 0x00; + RCC_ClocksTypeDef RCC_ClocksStatus; + + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_BAUDRATE(USART_InitStruct->USART_BaudRate)); + assert_param(IS_USART_WORD_LENGTH(USART_InitStruct->USART_WordLength)); + assert_param(IS_USART_STOPBITS(USART_InitStruct->USART_StopBits)); + assert_param(IS_USART_PARITY(USART_InitStruct->USART_Parity)); + assert_param(IS_USART_MODE(USART_InitStruct->USART_Mode)); + assert_param(IS_USART_HARDWARE_FLOW_CONTROL(USART_InitStruct->USART_HardwareFlowControl)); + + /* The hardware flow control is available only for USART1, USART2, USART3 and USART6 */ + if (USART_InitStruct->USART_HardwareFlowControl != USART_HardwareFlowControl_None) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + +/*---------------------------- USART CR2 Configuration -----------------------*/ + tmpreg = USARTx->CR2; + + /* Clear STOP[13:12] bits */ + tmpreg &= (uint32_t)~((uint32_t)USART_CR2_STOP); + + /* Configure the USART Stop Bits, Clock, CPOL, CPHA and LastBit : + Set STOP[13:12] bits according to USART_StopBits value */ + tmpreg |= (uint32_t)USART_InitStruct->USART_StopBits; + + /* Write to USART CR2 */ + USARTx->CR2 = (uint16_t)tmpreg; + +/*---------------------------- USART CR1 Configuration -----------------------*/ + tmpreg = USARTx->CR1; + + /* Clear M, PCE, PS, TE and RE bits */ + tmpreg &= (uint32_t)~((uint32_t)CR1_CLEAR_MASK); + + /* Configure the USART Word Length, Parity and mode: + Set the M bits according to USART_WordLength value + Set PCE and PS bits according to USART_Parity value + Set TE and RE bits according to USART_Mode value */ + tmpreg |= (uint32_t)USART_InitStruct->USART_WordLength | USART_InitStruct->USART_Parity | + USART_InitStruct->USART_Mode; + + /* Write to USART CR1 */ + USARTx->CR1 = (uint16_t)tmpreg; + +/*---------------------------- USART CR3 Configuration -----------------------*/ + tmpreg = USARTx->CR3; + + /* Clear CTSE and RTSE bits */ + tmpreg &= (uint32_t)~((uint32_t)CR3_CLEAR_MASK); + + /* Configure the USART HFC : + Set CTSE and RTSE bits according to USART_HardwareFlowControl value */ + tmpreg |= USART_InitStruct->USART_HardwareFlowControl; + + /* Write to USART CR3 */ + USARTx->CR3 = (uint16_t)tmpreg; + +/*---------------------------- USART BRR Configuration -----------------------*/ + /* Configure the USART Baud Rate */ + RCC_GetClocksFreq(&RCC_ClocksStatus); + + if ((USARTx == USART1) || (USARTx == USART6)) + { + apbclock = RCC_ClocksStatus.PCLK2_Frequency; + } + else + { + apbclock = RCC_ClocksStatus.PCLK1_Frequency; + } + + /* Determine the integer part */ + if ((USARTx->CR1 & USART_CR1_OVER8) != 0) + { + /* Integer part computing in case Oversampling mode is 8 Samples */ + integerdivider = ((25 * apbclock) / (2 * (USART_InitStruct->USART_BaudRate))); + } + else /* if ((USARTx->CR1 & USART_CR1_OVER8) == 0) */ + { + /* Integer part computing in case Oversampling mode is 16 Samples */ + integerdivider = ((25 * apbclock) / (4 * (USART_InitStruct->USART_BaudRate))); + } + tmpreg = (integerdivider / 100) << 4; + + /* Determine the fractional part */ + fractionaldivider = integerdivider - (100 * (tmpreg >> 4)); + + /* Implement the fractional part in the register */ + if ((USARTx->CR1 & USART_CR1_OVER8) != 0) + { + tmpreg |= ((((fractionaldivider * 8) + 50) / 100)) & ((uint8_t)0x07); + } + else /* if ((USARTx->CR1 & USART_CR1_OVER8) == 0) */ + { + tmpreg |= ((((fractionaldivider * 16) + 50) / 100)) & ((uint8_t)0x0F); + } + + /* Write to USART BRR register */ + USARTx->BRR = (uint16_t)tmpreg; +} + +/** + * @brief Fills each USART_InitStruct member with its default value. + * @param USART_InitStruct: pointer to a USART_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void USART_StructInit(USART_InitTypeDef* USART_InitStruct) +{ + /* USART_InitStruct members default value */ + USART_InitStruct->USART_BaudRate = 9600; + USART_InitStruct->USART_WordLength = USART_WordLength_8b; + USART_InitStruct->USART_StopBits = USART_StopBits_1; + USART_InitStruct->USART_Parity = USART_Parity_No ; + USART_InitStruct->USART_Mode = USART_Mode_Rx | USART_Mode_Tx; + USART_InitStruct->USART_HardwareFlowControl = USART_HardwareFlowControl_None; +} + +/** + * @brief Initializes the USARTx peripheral Clock according to the + * specified parameters in the USART_ClockInitStruct . + * @param USARTx: where x can be 1, 2, 3 or 6 to select the USART peripheral. + * @param USART_ClockInitStruct: pointer to a USART_ClockInitTypeDef structure that + * contains the configuration information for the specified USART peripheral. + * @note The Smart Card and Synchronous modes are not available for UART4 and UART5. + * @retval None + */ +void USART_ClockInit(USART_TypeDef* USARTx, USART_ClockInitTypeDef* USART_ClockInitStruct) +{ + uint32_t tmpreg = 0x00; + /* Check the parameters */ + assert_param(IS_USART_1236_PERIPH(USARTx)); + assert_param(IS_USART_CLOCK(USART_ClockInitStruct->USART_Clock)); + assert_param(IS_USART_CPOL(USART_ClockInitStruct->USART_CPOL)); + assert_param(IS_USART_CPHA(USART_ClockInitStruct->USART_CPHA)); + assert_param(IS_USART_LASTBIT(USART_ClockInitStruct->USART_LastBit)); + +/*---------------------------- USART CR2 Configuration -----------------------*/ + tmpreg = USARTx->CR2; + /* Clear CLKEN, CPOL, CPHA and LBCL bits */ + tmpreg &= (uint32_t)~((uint32_t)CR2_CLOCK_CLEAR_MASK); + /* Configure the USART Clock, CPOL, CPHA and LastBit ------------*/ + /* Set CLKEN bit according to USART_Clock value */ + /* Set CPOL bit according to USART_CPOL value */ + /* Set CPHA bit according to USART_CPHA value */ + /* Set LBCL bit according to USART_LastBit value */ + tmpreg |= (uint32_t)USART_ClockInitStruct->USART_Clock | USART_ClockInitStruct->USART_CPOL | + USART_ClockInitStruct->USART_CPHA | USART_ClockInitStruct->USART_LastBit; + /* Write to USART CR2 */ + USARTx->CR2 = (uint16_t)tmpreg; +} + +/** + * @brief Fills each USART_ClockInitStruct member with its default value. + * @param USART_ClockInitStruct: pointer to a USART_ClockInitTypeDef structure + * which will be initialized. + * @retval None + */ +void USART_ClockStructInit(USART_ClockInitTypeDef* USART_ClockInitStruct) +{ + /* USART_ClockInitStruct members default value */ + USART_ClockInitStruct->USART_Clock = USART_Clock_Disable; + USART_ClockInitStruct->USART_CPOL = USART_CPOL_Low; + USART_ClockInitStruct->USART_CPHA = USART_CPHA_1Edge; + USART_ClockInitStruct->USART_LastBit = USART_LastBit_Disable; +} + +/** + * @brief Enables or disables the specified USART peripheral. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USARTx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_Cmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected USART by setting the UE bit in the CR1 register */ + USARTx->CR1 |= USART_CR1_UE; + } + else + { + /* Disable the selected USART by clearing the UE bit in the CR1 register */ + USARTx->CR1 &= (uint16_t)~((uint16_t)USART_CR1_UE); + } +} + +/** + * @brief Sets the system clock prescaler. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_Prescaler: specifies the prescaler clock. + * @note The function is used for IrDA mode with UART4 and UART5. + * @retval None + */ +void USART_SetPrescaler(USART_TypeDef* USARTx, uint8_t USART_Prescaler) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + + /* Clear the USART prescaler */ + USARTx->GTPR &= USART_GTPR_GT; + /* Set the USART prescaler */ + USARTx->GTPR |= USART_Prescaler; +} + +/** + * @brief Enables or disables the USART's 8x oversampling mode. + * @note This function has to be called before calling USART_Init() function + * in order to have correct baudrate Divider value. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART 8x oversampling mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_OverSampling8Cmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the 8x Oversampling mode by setting the OVER8 bit in the CR1 register */ + USARTx->CR1 |= USART_CR1_OVER8; + } + else + { + /* Disable the 8x Oversampling mode by clearing the OVER8 bit in the CR1 register */ + USARTx->CR1 &= (uint16_t)~((uint16_t)USART_CR1_OVER8); + } +} + +/** + * @brief Enables or disables the USART's one bit sampling method. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART one bit sampling method. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_OneBitMethodCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the one bit method by setting the ONEBITE bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_ONEBIT; + } + else + { + /* Disable the one bit method by clearing the ONEBITE bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT); + } +} + +/** + * @} + */ + +/** @defgroup USART_Group2 Data transfers functions + * @brief Data transfers functions + * +@verbatim + =============================================================================== + Data transfers functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART data + transfers. + + During an USART reception, data shifts in least significant bit first through + the RX pin. In this mode, the USART_DR register consists of a buffer (RDR) + between the internal bus and the received shift register. + + When a transmission is taking place, a write instruction to the USART_DR register + stores the data in the TDR register and which is copied in the shift register + at the end of the current transmission. + + The read access of the USART_DR register can be done using the USART_ReceiveData() + function and returns the RDR buffered value. Whereas a write access to the USART_DR + can be done using USART_SendData() function and stores the written data into + TDR buffer. + +@endverbatim + * @{ + */ + +/** + * @brief Transmits single data through the USARTx peripheral. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param Data: the data to transmit. + * @retval None + */ +void USART_SendData(USART_TypeDef* USARTx, uint16_t Data) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_DATA(Data)); + + /* Transmit Data */ + USARTx->DR = (Data & (uint16_t)0x01FF); +} + +/** + * @brief Returns the most recent received data by the USARTx peripheral. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @retval The received data. + */ +uint16_t USART_ReceiveData(USART_TypeDef* USARTx) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + + /* Receive Data */ + return (uint16_t)(USARTx->DR & (uint16_t)0x01FF); +} + +/** + * @} + */ + +/** @defgroup USART_Group3 MultiProcessor Communication functions + * @brief Multi-Processor Communication functions + * +@verbatim + =============================================================================== + Multi-Processor Communication functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART + multiprocessor communication. + + For instance one of the USARTs can be the master, its TX output is connected to + the RX input of the other USART. The others are slaves, their respective TX outputs + are logically ANDed together and connected to the RX input of the master. + + USART multiprocessor communication is possible through the following procedure: + 1. Program the Baud rate, Word length = 9 bits, Stop bits, Parity, Mode transmitter + or Mode receiver and hardware flow control values using the USART_Init() + function. + 2. Configures the USART address using the USART_SetAddress() function. + 3. Configures the wake up method (USART_WakeUp_IdleLine or USART_WakeUp_AddressMark) + using USART_WakeUpConfig() function only for the slaves. + 4. Enable the USART using the USART_Cmd() function. + 5. Enter the USART slaves in mute mode using USART_ReceiverWakeUpCmd() function. + + The USART Slave exit from mute mode when receive the wake up condition. + +@endverbatim + * @{ + */ + +/** + * @brief Sets the address of the USART node. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_Address: Indicates the address of the USART node. + * @retval None + */ +void USART_SetAddress(USART_TypeDef* USARTx, uint8_t USART_Address) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_ADDRESS(USART_Address)); + + /* Clear the USART address */ + USARTx->CR2 &= (uint16_t)~((uint16_t)USART_CR2_ADD); + /* Set the USART address node */ + USARTx->CR2 |= USART_Address; +} + +/** + * @brief Determines if the USART is in mute mode or not. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART mute mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_ReceiverWakeUpCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the USART mute mode by setting the RWU bit in the CR1 register */ + USARTx->CR1 |= USART_CR1_RWU; + } + else + { + /* Disable the USART mute mode by clearing the RWU bit in the CR1 register */ + USARTx->CR1 &= (uint16_t)~((uint16_t)USART_CR1_RWU); + } +} +/** + * @brief Selects the USART WakeUp method. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_WakeUp: specifies the USART wakeup method. + * This parameter can be one of the following values: + * @arg USART_WakeUp_IdleLine: WakeUp by an idle line detection + * @arg USART_WakeUp_AddressMark: WakeUp by an address mark + * @retval None + */ +void USART_WakeUpConfig(USART_TypeDef* USARTx, uint16_t USART_WakeUp) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_WAKEUP(USART_WakeUp)); + + USARTx->CR1 &= (uint16_t)~((uint16_t)USART_CR1_WAKE); + USARTx->CR1 |= USART_WakeUp; +} + +/** + * @} + */ + +/** @defgroup USART_Group4 LIN mode functions + * @brief LIN mode functions + * +@verbatim + =============================================================================== + LIN mode functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART LIN + Mode communication. + + In LIN mode, 8-bit data format with 1 stop bit is required in accordance with + the LIN standard. + + Only this LIN Feature is supported by the USART IP: + - LIN Master Synchronous Break send capability and LIN slave break detection + capability : 13-bit break generation and 10/11 bit break detection + + + USART LIN Master transmitter communication is possible through the following procedure: + 1. Program the Baud rate, Word length = 8bits, Stop bits = 1bit, Parity, + Mode transmitter or Mode receiver and hardware flow control values using + the USART_Init() function. + 2. Enable the USART using the USART_Cmd() function. + 3. Enable the LIN mode using the USART_LINCmd() function. + 4. Send the break character using USART_SendBreak() function. + + USART LIN Master receiver communication is possible through the following procedure: + 1. Program the Baud rate, Word length = 8bits, Stop bits = 1bit, Parity, + Mode transmitter or Mode receiver and hardware flow control values using + the USART_Init() function. + 2. Enable the USART using the USART_Cmd() function. + 3. Configures the break detection length using the USART_LINBreakDetectLengthConfig() + function. + 4. Enable the LIN mode using the USART_LINCmd() function. + + +@note In LIN mode, the following bits must be kept cleared: + - CLKEN in the USART_CR2 register, + - STOP[1:0], SCEN, HDSEL and IREN in the USART_CR3 register. + +@endverbatim + * @{ + */ + +/** + * @brief Sets the USART LIN Break detection length. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_LINBreakDetectLength: specifies the LIN break detection length. + * This parameter can be one of the following values: + * @arg USART_LINBreakDetectLength_10b: 10-bit break detection + * @arg USART_LINBreakDetectLength_11b: 11-bit break detection + * @retval None + */ +void USART_LINBreakDetectLengthConfig(USART_TypeDef* USARTx, uint16_t USART_LINBreakDetectLength) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_LIN_BREAK_DETECT_LENGTH(USART_LINBreakDetectLength)); + + USARTx->CR2 &= (uint16_t)~((uint16_t)USART_CR2_LBDL); + USARTx->CR2 |= USART_LINBreakDetectLength; +} + +/** + * @brief Enables or disables the USART's LIN mode. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART LIN mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_LINCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the LIN mode by setting the LINEN bit in the CR2 register */ + USARTx->CR2 |= USART_CR2_LINEN; + } + else + { + /* Disable the LIN mode by clearing the LINEN bit in the CR2 register */ + USARTx->CR2 &= (uint16_t)~((uint16_t)USART_CR2_LINEN); + } +} + +/** + * @brief Transmits break characters. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @retval None + */ +void USART_SendBreak(USART_TypeDef* USARTx) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + + /* Send break characters */ + USARTx->CR1 |= USART_CR1_SBK; +} + +/** + * @} + */ + +/** @defgroup USART_Group5 Halfduplex mode function + * @brief Half-duplex mode function + * +@verbatim + =============================================================================== + Half-duplex mode function + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART + Half-duplex communication. + + The USART can be configured to follow a single-wire half-duplex protocol where + the TX and RX lines are internally connected. + + USART Half duplex communication is possible through the following procedure: + 1. Program the Baud rate, Word length, Stop bits, Parity, Mode transmitter + or Mode receiver and hardware flow control values using the USART_Init() + function. + 2. Configures the USART address using the USART_SetAddress() function. + 3. Enable the USART using the USART_Cmd() function. + 4. Enable the half duplex mode using USART_HalfDuplexCmd() function. + + +@note The RX pin is no longer used +@note In Half-duplex mode the following bits must be kept cleared: + - LINEN and CLKEN bits in the USART_CR2 register. + - SCEN and IREN bits in the USART_CR3 register. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the USART's Half Duplex communication. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART Communication. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_HalfDuplexCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the Half-Duplex mode by setting the HDSEL bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_HDSEL; + } + else + { + /* Disable the Half-Duplex mode by clearing the HDSEL bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_HDSEL); + } +} + +/** + * @} + */ + + +/** @defgroup USART_Group6 Smartcard mode functions + * @brief Smartcard mode functions + * +@verbatim + =============================================================================== + Smartcard mode functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART + Smartcard communication. + + The Smartcard interface is designed to support asynchronous protocol Smartcards as + defined in the ISO 7816-3 standard. + + The USART can provide a clock to the smartcard through the SCLK output. + In smartcard mode, SCLK is not associated to the communication but is simply derived + from the internal peripheral input clock through a 5-bit prescaler. + + Smartcard communication is possible through the following procedure: + 1. Configures the Smartcard Prescaler using the USART_SetPrescaler() function. + 2. Configures the Smartcard Guard Time using the USART_SetGuardTime() function. + 3. Program the USART clock using the USART_ClockInit() function as following: + - USART Clock enabled + - USART CPOL Low + - USART CPHA on first edge + - USART Last Bit Clock Enabled + 4. Program the Smartcard interface using the USART_Init() function as following: + - Word Length = 9 Bits + - 1.5 Stop Bit + - Even parity + - BaudRate = 12096 baud + - Hardware flow control disabled (RTS and CTS signals) + - Tx and Rx enabled + 5. Optionally you can enable the parity error interrupt using the USART_ITConfig() + function + 6. Enable the USART using the USART_Cmd() function. + 7. Enable the Smartcard NACK using the USART_SmartCardNACKCmd() function. + 8. Enable the Smartcard interface using the USART_SmartCardCmd() function. + + Please refer to the ISO 7816-3 specification for more details. + + +@note It is also possible to choose 0.5 stop bit for receiving but it is recommended + to use 1.5 stop bits for both transmitting and receiving to avoid switching + between the two configurations. +@note In smartcard mode, the following bits must be kept cleared: + - LINEN bit in the USART_CR2 register. + - HDSEL and IREN bits in the USART_CR3 register. +@note Smartcard mode is available on USART peripherals only (not available on UART4 + and UART5 peripherals). + +@endverbatim + * @{ + */ + +/** + * @brief Sets the specified USART guard time. + * @param USARTx: where x can be 1, 2, 3 or 6 to select the USART or + * UART peripheral. + * @param USART_GuardTime: specifies the guard time. + * @retval None + */ +void USART_SetGuardTime(USART_TypeDef* USARTx, uint8_t USART_GuardTime) +{ + /* Check the parameters */ + assert_param(IS_USART_1236_PERIPH(USARTx)); + + /* Clear the USART Guard time */ + USARTx->GTPR &= USART_GTPR_PSC; + /* Set the USART guard time */ + USARTx->GTPR |= (uint16_t)((uint16_t)USART_GuardTime << 0x08); +} + +/** + * @brief Enables or disables the USART's Smart Card mode. + * @param USARTx: where x can be 1, 2, 3 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the Smart Card mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_SmartCardCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_1236_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the SC mode by setting the SCEN bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_SCEN; + } + else + { + /* Disable the SC mode by clearing the SCEN bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_SCEN); + } +} + +/** + * @brief Enables or disables NACK transmission. + * @param USARTx: where x can be 1, 2, 3 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the NACK transmission. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_SmartCardNACKCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_1236_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the NACK transmission by setting the NACK bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_NACK; + } + else + { + /* Disable the NACK transmission by clearing the NACK bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_NACK); + } +} + +/** + * @} + */ + +/** @defgroup USART_Group7 IrDA mode functions + * @brief IrDA mode functions + * +@verbatim + =============================================================================== + IrDA mode functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART + IrDA communication. + + IrDA is a half duplex communication protocol. If the Transmitter is busy, any data + on the IrDA receive line will be ignored by the IrDA decoder and if the Receiver + is busy, data on the TX from the USART to IrDA will not be encoded by IrDA. + While receiving data, transmission should be avoided as the data to be transmitted + could be corrupted. + + IrDA communication is possible through the following procedure: + 1. Program the Baud rate, Word length = 8 bits, Stop bits, Parity, Transmitter/Receiver + modes and hardware flow control values using the USART_Init() function. + 2. Enable the USART using the USART_Cmd() function. + 3. Configures the IrDA pulse width by configuring the prescaler using + the USART_SetPrescaler() function. + 4. Configures the IrDA USART_IrDAMode_LowPower or USART_IrDAMode_Normal mode + using the USART_IrDAConfig() function. + 5. Enable the IrDA using the USART_IrDACmd() function. + +@note A pulse of width less than two and greater than one PSC period(s) may or may + not be rejected. +@note The receiver set up time should be managed by software. The IrDA physical layer + specification specifies a minimum of 10 ms delay between transmission and + reception (IrDA is a half duplex protocol). +@note In IrDA mode, the following bits must be kept cleared: + - LINEN, STOP and CLKEN bits in the USART_CR2 register. + - SCEN and HDSEL bits in the USART_CR3 register. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the USART's IrDA interface. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_IrDAMode: specifies the IrDA mode. + * This parameter can be one of the following values: + * @arg USART_IrDAMode_LowPower + * @arg USART_IrDAMode_Normal + * @retval None + */ +void USART_IrDAConfig(USART_TypeDef* USARTx, uint16_t USART_IrDAMode) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_IRDA_MODE(USART_IrDAMode)); + + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_IRLP); + USARTx->CR3 |= USART_IrDAMode; +} + +/** + * @brief Enables or disables the USART's IrDA interface. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the IrDA mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_IrDACmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the IrDA mode by setting the IREN bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_IREN; + } + else + { + /* Disable the IrDA mode by clearing the IREN bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_IREN); + } +} + +/** + * @} + */ + +/** @defgroup USART_Group8 DMA transfers management functions + * @brief DMA transfers management functions + * +@verbatim + =============================================================================== + DMA transfers management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the USART's DMA interface. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_DMAReq: specifies the DMA request. + * This parameter can be any combination of the following values: + * @arg USART_DMAReq_Tx: USART DMA transmit request + * @arg USART_DMAReq_Rx: USART DMA receive request + * @param NewState: new state of the DMA Request sources. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_DMAREQ(USART_DMAReq)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DMA transfer for selected requests by setting the DMAT and/or + DMAR bits in the USART CR3 register */ + USARTx->CR3 |= USART_DMAReq; + } + else + { + /* Disable the DMA transfer for selected requests by clearing the DMAT and/or + DMAR bits in the USART CR3 register */ + USARTx->CR3 &= (uint16_t)~USART_DMAReq; + } +} + +/** + * @} + */ + +/** @defgroup USART_Group9 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This subsection provides a set of functions allowing to configure the USART + Interrupts sources, DMA channels requests and check or clear the flags or + pending bits status. + The user should identify which mode will be used in his application to manage + the communication: Polling mode, Interrupt mode or DMA mode. + + Polling Mode + ============= + In Polling Mode, the SPI communication can be managed by 10 flags: + 1. USART_FLAG_TXE : to indicate the status of the transmit buffer register + 2. USART_FLAG_RXNE : to indicate the status of the receive buffer register + 3. USART_FLAG_TC : to indicate the status of the transmit operation + 4. USART_FLAG_IDLE : to indicate the status of the Idle Line + 5. USART_FLAG_CTS : to indicate the status of the nCTS input + 6. USART_FLAG_LBD : to indicate the status of the LIN break detection + 7. USART_FLAG_NE : to indicate if a noise error occur + 8. USART_FLAG_FE : to indicate if a frame error occur + 9. USART_FLAG_PE : to indicate if a parity error occur + 10. USART_FLAG_ORE : to indicate if an Overrun error occur + + In this Mode it is advised to use the following functions: + - FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, uint16_t USART_FLAG); + - void USART_ClearFlag(USART_TypeDef* USARTx, uint16_t USART_FLAG); + + Interrupt Mode + =============== + In Interrupt Mode, the USART communication can be managed by 8 interrupt sources + and 10 pending bits: + + Pending Bits: + ------------- + 1. USART_IT_TXE : to indicate the status of the transmit buffer register + 2. USART_IT_RXNE : to indicate the status of the receive buffer register + 3. USART_IT_TC : to indicate the status of the transmit operation + 4. USART_IT_IDLE : to indicate the status of the Idle Line + 5. USART_IT_CTS : to indicate the status of the nCTS input + 6. USART_IT_LBD : to indicate the status of the LIN break detection + 7. USART_IT_NE : to indicate if a noise error occur + 8. USART_IT_FE : to indicate if a frame error occur + 9. USART_IT_PE : to indicate if a parity error occur + 10. USART_IT_ORE : to indicate if an Overrun error occur + + Interrupt Source: + ----------------- + 1. USART_IT_TXE : specifies the interrupt source for the Tx buffer empty + interrupt. + 2. USART_IT_RXNE : specifies the interrupt source for the Rx buffer not + empty interrupt. + 3. USART_IT_TC : specifies the interrupt source for the Transmit complete + interrupt. + 4. USART_IT_IDLE : specifies the interrupt source for the Idle Line interrupt. + 5. USART_IT_CTS : specifies the interrupt source for the CTS interrupt. + 6. USART_IT_LBD : specifies the interrupt source for the LIN break detection + interrupt. + 7. USART_IT_PE : specifies the interrupt source for the parity error interrupt. + 8. USART_IT_ERR : specifies the interrupt source for the errors interrupt. + +@note Some parameters are coded in order to use them as interrupt source or as pending bits. + + In this Mode it is advised to use the following functions: + - void USART_ITConfig(USART_TypeDef* USARTx, uint16_t USART_IT, FunctionalState NewState); + - ITStatus USART_GetITStatus(USART_TypeDef* USARTx, uint16_t USART_IT); + - void USART_ClearITPendingBit(USART_TypeDef* USARTx, uint16_t USART_IT); + + DMA Mode + ======== + In DMA Mode, the USART communication can be managed by 2 DMA Channel requests: + 1. USART_DMAReq_Tx: specifies the Tx buffer DMA transfer request + 2. USART_DMAReq_Rx: specifies the Rx buffer DMA transfer request + + In this Mode it is advised to use the following function: + - void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq, FunctionalState NewState); + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified USART interrupts. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_IT: specifies the USART interrupt sources to be enabled or disabled. + * This parameter can be one of the following values: + * @arg USART_IT_CTS: CTS change interrupt + * @arg USART_IT_LBD: LIN Break detection interrupt + * @arg USART_IT_TXE: Transmit Data Register empty interrupt + * @arg USART_IT_TC: Transmission complete interrupt + * @arg USART_IT_RXNE: Receive Data register not empty interrupt + * @arg USART_IT_IDLE: Idle line detection interrupt + * @arg USART_IT_PE: Parity Error interrupt + * @arg USART_IT_ERR: Error interrupt(Frame error, noise error, overrun error) + * @param NewState: new state of the specified USARTx interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_ITConfig(USART_TypeDef* USARTx, uint16_t USART_IT, FunctionalState NewState) +{ + uint32_t usartreg = 0x00, itpos = 0x00, itmask = 0x00; + uint32_t usartxbase = 0x00; + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_CONFIG_IT(USART_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* The CTS interrupt is not available for UART4 and UART5 */ + if (USART_IT == USART_IT_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + usartxbase = (uint32_t)USARTx; + + /* Get the USART register index */ + usartreg = (((uint8_t)USART_IT) >> 0x05); + + /* Get the interrupt position */ + itpos = USART_IT & IT_MASK; + itmask = (((uint32_t)0x01) << itpos); + + if (usartreg == 0x01) /* The IT is in CR1 register */ + { + usartxbase += 0x0C; + } + else if (usartreg == 0x02) /* The IT is in CR2 register */ + { + usartxbase += 0x10; + } + else /* The IT is in CR3 register */ + { + usartxbase += 0x14; + } + if (NewState != DISABLE) + { + *(__IO uint32_t*)usartxbase |= itmask; + } + else + { + *(__IO uint32_t*)usartxbase &= ~itmask; + } +} + +/** + * @brief Checks whether the specified USART flag is set or not. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg USART_FLAG_CTS: CTS Change flag (not available for UART4 and UART5) + * @arg USART_FLAG_LBD: LIN Break detection flag + * @arg USART_FLAG_TXE: Transmit data register empty flag + * @arg USART_FLAG_TC: Transmission Complete flag + * @arg USART_FLAG_RXNE: Receive data register not empty flag + * @arg USART_FLAG_IDLE: Idle Line detection flag + * @arg USART_FLAG_ORE: OverRun Error flag + * @arg USART_FLAG_NE: Noise Error flag + * @arg USART_FLAG_FE: Framing Error flag + * @arg USART_FLAG_PE: Parity Error flag + * @retval The new state of USART_FLAG (SET or RESET). + */ +FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, uint16_t USART_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_FLAG(USART_FLAG)); + + /* The CTS flag is not available for UART4 and UART5 */ + if (USART_FLAG == USART_FLAG_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + if ((USARTx->SR & USART_FLAG) != (uint16_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the USARTx's pending flags. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg USART_FLAG_CTS: CTS Change flag (not available for UART4 and UART5). + * @arg USART_FLAG_LBD: LIN Break detection flag. + * @arg USART_FLAG_TC: Transmission Complete flag. + * @arg USART_FLAG_RXNE: Receive data register not empty flag. + * + * @note PE (Parity error), FE (Framing error), NE (Noise error), ORE (OverRun + * error) and IDLE (Idle line detected) flags are cleared by software + * sequence: a read operation to USART_SR register (USART_GetFlagStatus()) + * followed by a read operation to USART_DR register (USART_ReceiveData()). + * @note RXNE flag can be also cleared by a read to the USART_DR register + * (USART_ReceiveData()). + * @note TC flag can be also cleared by software sequence: a read operation to + * USART_SR register (USART_GetFlagStatus()) followed by a write operation + * to USART_DR register (USART_SendData()). + * @note TXE flag is cleared only by a write to the USART_DR register + * (USART_SendData()). + * + * @retval None + */ +void USART_ClearFlag(USART_TypeDef* USARTx, uint16_t USART_FLAG) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_CLEAR_FLAG(USART_FLAG)); + + /* The CTS flag is not available for UART4 and UART5 */ + if ((USART_FLAG & USART_FLAG_CTS) == USART_FLAG_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + USARTx->SR = (uint16_t)~USART_FLAG; +} + +/** + * @brief Checks whether the specified USART interrupt has occurred or not. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_IT: specifies the USART interrupt source to check. + * This parameter can be one of the following values: + * @arg USART_IT_CTS : CTS change interrupt (not available for UART4 and UART5) + * @arg USART_IT_LBD : LIN Break detection interrupt + * @arg USART_IT_TXE : Transmit Data Register empty interrupt + * @arg USART_IT_TC : Transmission complete interrupt + * @arg USART_IT_RXNE : Receive Data register not empty interrupt + * @arg USART_IT_IDLE : Idle line detection interrupt + * @arg USART_IT_ORE_RX : OverRun Error interrupt if the RXNEIE bit is set + * @arg USART_IT_ORE_ER : OverRun Error interrupt if the EIE bit is set + * @arg USART_IT_NE : Noise Error interrupt + * @arg USART_IT_FE : Framing Error interrupt + * @arg USART_IT_PE : Parity Error interrupt + * @retval The new state of USART_IT (SET or RESET). + */ +ITStatus USART_GetITStatus(USART_TypeDef* USARTx, uint16_t USART_IT) +{ + uint32_t bitpos = 0x00, itmask = 0x00, usartreg = 0x00; + ITStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_GET_IT(USART_IT)); + + /* The CTS interrupt is not available for UART4 and UART5 */ + if (USART_IT == USART_IT_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + /* Get the USART register index */ + usartreg = (((uint8_t)USART_IT) >> 0x05); + /* Get the interrupt position */ + itmask = USART_IT & IT_MASK; + itmask = (uint32_t)0x01 << itmask; + + if (usartreg == 0x01) /* The IT is in CR1 register */ + { + itmask &= USARTx->CR1; + } + else if (usartreg == 0x02) /* The IT is in CR2 register */ + { + itmask &= USARTx->CR2; + } + else /* The IT is in CR3 register */ + { + itmask &= USARTx->CR3; + } + + bitpos = USART_IT >> 0x08; + bitpos = (uint32_t)0x01 << bitpos; + bitpos &= USARTx->SR; + if ((itmask != (uint16_t)RESET)&&(bitpos != (uint16_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + + return bitstatus; +} + +/** + * @brief Clears the USARTx's interrupt pending bits. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_IT: specifies the interrupt pending bit to clear. + * This parameter can be one of the following values: + * @arg USART_IT_CTS: CTS change interrupt (not available for UART4 and UART5) + * @arg USART_IT_LBD: LIN Break detection interrupt + * @arg USART_IT_TC: Transmission complete interrupt. + * @arg USART_IT_RXNE: Receive Data register not empty interrupt. + * + * @note PE (Parity error), FE (Framing error), NE (Noise error), ORE (OverRun + * error) and IDLE (Idle line detected) pending bits are cleared by + * software sequence: a read operation to USART_SR register + * (USART_GetITStatus()) followed by a read operation to USART_DR register + * (USART_ReceiveData()). + * @note RXNE pending bit can be also cleared by a read to the USART_DR register + * (USART_ReceiveData()). + * @note TC pending bit can be also cleared by software sequence: a read + * operation to USART_SR register (USART_GetITStatus()) followed by a write + * operation to USART_DR register (USART_SendData()). + * @note TXE pending bit is cleared only by a write to the USART_DR register + * (USART_SendData()). + * + * @retval None + */ +void USART_ClearITPendingBit(USART_TypeDef* USARTx, uint16_t USART_IT) +{ + uint16_t bitpos = 0x00, itmask = 0x00; + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_CLEAR_IT(USART_IT)); + + /* The CTS interrupt is not available for UART4 and UART5 */ + if (USART_IT == USART_IT_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + bitpos = USART_IT >> 0x08; + itmask = ((uint16_t)0x01 << (uint16_t)bitpos); + USARTx->SR = (uint16_t)~itmask; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_wwdg.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_wwdg.c new file mode 100644 index 00000000..c893fb38 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/SPL/src/stm32f2xx_wwdg.c @@ -0,0 +1,309 @@ +/** + ****************************************************************************** + * @file stm32f2xx_wwdg.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Window watchdog (WWDG) peripheral: + * - Prescaler, Refresh window and Counter configuration + * - WWDG activation + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * WWDG features + * =================================================================== + * + * Once enabled the WWDG generates a system reset on expiry of a programmed + * time period, unless the program refreshes the counter (downcounter) + * before to reach 0x3F value (i.e. a reset is generated when the counter + * value rolls over from 0x40 to 0x3F). + * An MCU reset is also generated if the counter value is refreshed + * before the counter has reached the refresh window value. This + * implies that the counter must be refreshed in a limited window. + * + * Once enabled the WWDG cannot be disabled except by a system reset. + * + * WWDGRST flag in RCC_CSR register can be used to inform when a WWDG + * reset occurs. + * + * The WWDG counter input clock is derived from the APB clock divided + * by a programmable prescaler. + * + * WWDG counter clock = PCLK1 / Prescaler + * WWDG timeout = (WWDG counter clock) * (counter value) + * + * Min-max timeout value @30 MHz(PCLK1): ~136.5 us / ~69.9 ms + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable WWDG clock using RCC_APB1PeriphClockCmd(RCC_APB1Periph_WWDG, ENABLE) function + * + * 2. Configure the WWDG prescaler using WWDG_SetPrescaler() function + * + * 3. Configure the WWDG refresh window using WWDG_SetWindowValue() function + * + * 4. Set the WWDG counter value and start it using WWDG_Enable() function. + * When the WWDG is enabled the counter value should be configured to + * a value greater than 0x40 to prevent generating an immediate reset. + * + * 5. Optionally you can enable the Early wakeup interrupt which is + * generated when the counter reach 0x40. + * Once enabled this interrupt cannot be disabled except by a system reset. + * + * 6. Then the application program must refresh the WWDG counter at regular + * intervals during normal operation to prevent an MCU reset, using + * WWDG_SetCounter() function. This operation must occur only when + * the counter value is lower than the refresh window value, + * programmed using WWDG_SetWindowValue(). + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_wwdg.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup WWDG + * @brief WWDG driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* ----------- WWDG registers bit address in the alias region ----------- */ +#define WWDG_OFFSET (WWDG_BASE - PERIPH_BASE) +/* Alias word address of EWI bit */ +#define CFR_OFFSET (WWDG_OFFSET + 0x04) +#define EWI_BitNumber 0x09 +#define CFR_EWI_BB (PERIPH_BB_BASE + (CFR_OFFSET * 32) + (EWI_BitNumber * 4)) + +/* --------------------- WWDG registers bit mask ------------------------ */ +/* CFR register bit mask */ +#define CFR_WDGTB_MASK ((uint32_t)0xFFFFFE7F) +#define CFR_W_MASK ((uint32_t)0xFFFFFF80) +#define BIT_MASK ((uint8_t)0x7F) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup WWDG_Private_Functions + * @{ + */ + +/** @defgroup WWDG_Group1 Prescaler, Refresh window and Counter configuration functions + * @brief Prescaler, Refresh window and Counter configuration functions + * +@verbatim + =============================================================================== + Prescaler, Refresh window and Counter configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the WWDG peripheral registers to their default reset values. + * @param None + * @retval None + */ +void WWDG_DeInit(void) +{ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_WWDG, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_WWDG, DISABLE); +} + +/** + * @brief Sets the WWDG Prescaler. + * @param WWDG_Prescaler: specifies the WWDG Prescaler. + * This parameter can be one of the following values: + * @arg WWDG_Prescaler_1: WWDG counter clock = (PCLK1/4096)/1 + * @arg WWDG_Prescaler_2: WWDG counter clock = (PCLK1/4096)/2 + * @arg WWDG_Prescaler_4: WWDG counter clock = (PCLK1/4096)/4 + * @arg WWDG_Prescaler_8: WWDG counter clock = (PCLK1/4096)/8 + * @retval None + */ +void WWDG_SetPrescaler(uint32_t WWDG_Prescaler) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_WWDG_PRESCALER(WWDG_Prescaler)); + /* Clear WDGTB[1:0] bits */ + tmpreg = WWDG->CFR & CFR_WDGTB_MASK; + /* Set WDGTB[1:0] bits according to WWDG_Prescaler value */ + tmpreg |= WWDG_Prescaler; + /* Store the new value */ + WWDG->CFR = tmpreg; +} + +/** + * @brief Sets the WWDG window value. + * @param WindowValue: specifies the window value to be compared to the downcounter. + * This parameter value must be lower than 0x80. + * @retval None + */ +void WWDG_SetWindowValue(uint8_t WindowValue) +{ + __IO uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_WWDG_WINDOW_VALUE(WindowValue)); + /* Clear W[6:0] bits */ + + tmpreg = WWDG->CFR & CFR_W_MASK; + + /* Set W[6:0] bits according to WindowValue value */ + tmpreg |= WindowValue & (uint32_t) BIT_MASK; + + /* Store the new value */ + WWDG->CFR = tmpreg; +} + +/** + * @brief Enables the WWDG Early Wakeup interrupt(EWI). + * @note Once enabled this interrupt cannot be disabled except by a system reset. + * @param None + * @retval None + */ +void WWDG_EnableIT(void) +{ + *(__IO uint32_t *) CFR_EWI_BB = (uint32_t)ENABLE; +} + +/** + * @brief Sets the WWDG counter value. + * @param Counter: specifies the watchdog counter value. + * This parameter must be a number between 0x40 and 0x7F (to prevent generating + * an immediate reset) + * @retval None + */ +void WWDG_SetCounter(uint8_t Counter) +{ + /* Check the parameters */ + assert_param(IS_WWDG_COUNTER(Counter)); + /* Write to T[6:0] bits to configure the counter value, no need to do + a read-modify-write; writing a 0 to WDGA bit does nothing */ + WWDG->CR = Counter & BIT_MASK; +} +/** + * @} + */ + +/** @defgroup WWDG_Group2 WWDG activation functions + * @brief WWDG activation functions + * +@verbatim + =============================================================================== + WWDG activation function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables WWDG and load the counter value. + * @param Counter: specifies the watchdog counter value. + * This parameter must be a number between 0x40 and 0x7F (to prevent generating + * an immediate reset) + * @retval None + */ +void WWDG_Enable(uint8_t Counter) +{ + /* Check the parameters */ + assert_param(IS_WWDG_COUNTER(Counter)); + WWDG->CR = WWDG_CR_WDGA | Counter; +} +/** + * @} + */ + +/** @defgroup WWDG_Group3 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Checks whether the Early Wakeup interrupt flag is set or not. + * @param None + * @retval The new state of the Early Wakeup interrupt flag (SET or RESET) + */ +FlagStatus WWDG_GetFlagStatus(void) +{ + FlagStatus bitstatus = RESET; + + if ((WWDG->SR) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears Early Wakeup interrupt flag. + * @param None + * @retval None + */ +void WWDG_ClearFlag(void) +{ + WWDG->SR = (uint32_t)RESET; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cm3.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cm3.h new file mode 100644 index 00000000..efac390f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cm3.h @@ -0,0 +1,1550 @@ +/**************************************************************************//** + * @file core_cm3.h + * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File + * @version V3.00 + * @date 03. February 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM3_H_GENERIC +#define __CORE_CM3_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup Cortex_M3 + @{ + */ + +/* CMSIS CM3 definitions */ +#define __CM3_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __CM3_CMSIS_VERSION_SUB (0x00) /*!< [15:0] CMSIS HAL sub version */ +#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | \ + __CM3_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x03) /*!< Cortex-M Core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __TMS470__ ) + #define __ASM __asm /*!< asm keyword for TI CCS Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all +*/ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TMS470__ ) + #if defined __TI__VFP_SUPPORT____ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + /* add preprocessor checks */ +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ + +#endif /* __CORE_CM3_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM3_H_DEPENDANT +#define __CORE_CM3_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM3_REV + #define __CM3_REV 0x0200 + #warning "__CM3_REV not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group Cortex_M3 */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core Debug Register + - Core MPU Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ +} NVIC_Type; + +/* Software Triggered Interrupt Register Definitions */ +#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ +#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ + uint32_t RESERVED0[5]; + __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Vector Table Offset Register Definitions */ +#if (__CM3_REV < 0x0201) /* core r2p1 */ +#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ +#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ + +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#else +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#endif + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) + \brief Type definitions for the System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ +#if ((defined __CM3_REV) && (__CM3_REV >= 0x200)) + __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ +#else + uint32_t RESERVED1[1]; +#endif +} SCnSCB_Type; + +/* Interrupt Controller Type Register Definitions */ +#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ +#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ + +/* Auxiliary Control Register Definitions */ + +#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ +#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ + +#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ +#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ + +#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ +#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) + \brief Type definitions for the Instrumentation Trace Macrocell (ITM) + @{ + */ + +/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ +#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_TXENA_Pos 3 /*!< ITM TCR: TXENA Position */ +#define ITM_TCR_TXENA_Msk (1UL << ITM_TCR_TXENA_Pos) /*!< ITM TCR: TXENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/*@}*/ /* end of group CMSIS_ITM */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) + \brief Type definitions for the Data Watchpoint and Trace (DWT) + @{ + */ + +/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ + __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ + __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ + __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ + __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ + __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ + __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ + __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ + __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ + __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ + __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ + uint32_t RESERVED0[1]; + __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ + __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ + __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ + uint32_t RESERVED1[1]; + __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ + __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ + __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ + uint32_t RESERVED2[1]; + __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ + __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ + __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ +} DWT_Type; + +/* DWT Control Register Definitions */ +#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ +#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ + +#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ +#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ + +#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ +#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ + +#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ +#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ + +#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ +#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ + +#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ +#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ + +#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ +#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ + +#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ +#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ + +#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ +#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ + +#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ +#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ + +#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ +#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ + +#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ +#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ + +#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ +#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ + +#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ +#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ + +#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ +#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ + +#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ +#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ + +#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ +#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ + +#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ +#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ + +/* DWT CPI Count Register Definitions */ +#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ +#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ + +/* DWT Exception Overhead Count Register Definitions */ +#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ +#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ + +/* DWT Sleep Count Register Definitions */ +#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ +#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ + +/* DWT LSU Count Register Definitions */ +#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ +#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ + +/* DWT Folded-instruction Count Register Definitions */ +#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ +#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ + +/* DWT Comparator Mask Register Definitions */ +#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ +#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ + +/* DWT Comparator Function Register Definitions */ +#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ +#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ + +#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ +#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ + +#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ +#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ + +#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ +#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ + +#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ +#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ + +#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ +#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ + +#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ +#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ + +#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ +#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ + +#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ +#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ + +/*@}*/ /* end of group CMSIS_DWT */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_TPI Trace Port Interface (TPI) + \brief Type definitions for the Trace Port Interface (TPI) + @{ + */ + +/** \brief Structure type to access the Trace Port Interface Register (TPI). + */ +typedef struct +{ + __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ + __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ + uint32_t RESERVED0[2]; + __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ + uint32_t RESERVED1[55]; + __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ + uint32_t RESERVED2[131]; + __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ + __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ + __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ + uint32_t RESERVED3[759]; + __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ + __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ + __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ + uint32_t RESERVED4[1]; + __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ + __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ + __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ + uint32_t RESERVED5[39]; + __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ + __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ + uint32_t RESERVED7[8]; + __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ + __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ +} TPI_Type; + +/* TPI Asynchronous Clock Prescaler Register Definitions */ +#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ +#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ + +/* TPI Selected Pin Protocol Register Definitions */ +#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ +#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ + +/* TPI Formatter and Flush Status Register Definitions */ +#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ +#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ + +#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ +#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ + +#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ +#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ + +#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ +#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ + +/* TPI Formatter and Flush Control Register Definitions */ +#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ +#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ + +#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ +#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ + +/* TPI TRIGGER Register Definitions */ +#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ +#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ + +/* TPI Integration ETM Data Register Definitions (FIFO0) */ +#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ +#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ + +#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ +#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ + +#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ +#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ + +#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ +#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ + +#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ +#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ + +#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ +#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ + +#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ +#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ + +/* TPI ITATBCTR2 Register Definitions */ +#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ +#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ + +/* TPI Integration ITM Data Register Definitions (FIFO1) */ +#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ +#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ + +#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ +#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ + +#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ +#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ + +#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ +#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ + +#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ +#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ + +#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ +#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ + +#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ +#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ + +/* TPI ITATBCTR0 Register Definitions */ +#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ +#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ + +/* TPI Integration Mode Control Register Definitions */ +#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ +#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ + +/* TPI DEVID Register Definitions */ +#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ +#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ + +#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ +#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ + +#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ +#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ + +#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ +#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ + +#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ +#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ + +#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ +#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ + +/* TPI DEVTYPE Register Definitions */ +#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ +#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ + +#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ +#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ + +/*@}*/ /* end of group CMSIS_TPI */ + + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU Memory Protection Unit (MPU) + \brief Type definitions for the Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief Type definitions for the Core Debug Registers + @{ + */ + +/** \brief Structure type to access the Core Debug Register (CoreDebug). + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ + +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of Cortex-M3 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ +#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ +#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ +#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ +#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Debug Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/** \brief Set Priority Grouping + + The function sets the priority grouping field using the required unlock sequence. + The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. + Only values from 0..7 are used. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. + + \param [in] PriorityGroup Priority grouping field. + */ +__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + + +/** \brief Get Priority Grouping + + The function reads the priority grouping field from the NVIC Interrupt Controller. + + \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). + */ +__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Get Active Interrupt + + The function reads the active register in NVIC and returns the active bit. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not active. + \return 1 Interrupt status is active. + */ +__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief Encode Priority + + The function encodes the priority for an interrupt with the given priority group, + preemptive priority value, and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. + + \param [in] PriorityGroup Used priority group. + \param [in] PreemptPriority Preemptive priority value (starting from 0). + \param [in] SubPriority Subpriority value (starting from 0). + \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). + */ +__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** \brief Decode Priority + + The function decodes an interrupt priority value with a given priority group to + preemptive priority value and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). + \param [in] PriorityGroup Used priority group. + \param [out] pPreemptPriority Preemptive priority value (starting from 0). + \param [out] pSubPriority Subpriority value (starting from 0). + */ +__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + +/* ##################################### Debug In/Output function ########################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_core_DebugFunctions ITM Functions + \brief Functions that access the ITM debug interface. + @{ + */ + +extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ + + +/** \brief ITM Send Character + + The function transmits a character via the ITM channel 0, and + \li Just returns when no debugger is connected that has booked the output. + \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. + + \param [in] ch Character to transmit. + + \returns Character to transmit. + */ +__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** \brief ITM Receive Character + + The function inputs a character via the external variable \ref ITM_RxBuffer. + + \return Received character. + \return -1 No character pending. + */ +__STATIC_INLINE int32_t ITM_ReceiveChar (void) { + int32_t ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** \brief ITM Check Character + + The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. + + \return 0 No character available. + \return 1 Character available. + */ +__STATIC_INLINE int32_t ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@} end of CMSIS_core_DebugFunctions */ + +#endif /* __CORE_CM3_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cmFunc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cmFunc.h new file mode 100644 index 00000000..adb07b5d --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cmFunc.h @@ -0,0 +1,616 @@ +/**************************************************************************//** + * @file core_cmFunc.h + * @brief CMSIS Cortex-M Core Function Access Header File + * @version V3.01 + * @date 06. March 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMFUNC_H +#define __CORE_CMFUNC_H + + +/* ########################### Core Function Access ########################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions + @{ + */ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + +/* intrinsic void __enable_irq(); */ +/* intrinsic void __disable_irq(); */ + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__STATIC_INLINE uint32_t __get_CONTROL(void) +{ + register uint32_t __regControl __ASM("control"); + return(__regControl); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__STATIC_INLINE void __set_CONTROL(uint32_t control) +{ + register uint32_t __regControl __ASM("control"); + __regControl = control; +} + + +/** \brief Get IPSR Register + + This function returns the content of the IPSR Register. + + \return IPSR Register value + */ +__STATIC_INLINE uint32_t __get_IPSR(void) +{ + register uint32_t __regIPSR __ASM("ipsr"); + return(__regIPSR); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__STATIC_INLINE uint32_t __get_APSR(void) +{ + register uint32_t __regAPSR __ASM("apsr"); + return(__regAPSR); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__STATIC_INLINE uint32_t __get_xPSR(void) +{ + register uint32_t __regXPSR __ASM("xpsr"); + return(__regXPSR); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__STATIC_INLINE uint32_t __get_PSP(void) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + return(__regProcessStackPointer); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + __regProcessStackPointer = topOfProcStack; +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__STATIC_INLINE uint32_t __get_MSP(void) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + return(__regMainStackPointer); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + __regMainStackPointer = topOfMainStack; +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__STATIC_INLINE uint32_t __get_PRIMASK(void) +{ + register uint32_t __regPriMask __ASM("primask"); + return(__regPriMask); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__STATIC_INLINE void __set_PRIMASK(uint32_t priMask) +{ + register uint32_t __regPriMask __ASM("primask"); + __regPriMask = (priMask); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __enable_fault_irq __enable_fiq + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __disable_fault_irq __disable_fiq + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__STATIC_INLINE uint32_t __get_BASEPRI(void) +{ + register uint32_t __regBasePri __ASM("basepri"); + return(__regBasePri); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__STATIC_INLINE void __set_BASEPRI(uint32_t basePri) +{ + register uint32_t __regBasePri __ASM("basepri"); + __regBasePri = (basePri & 0xff); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__STATIC_INLINE uint32_t __get_FAULTMASK(void) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + return(__regFaultMask); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + __regFaultMask = (faultMask & (uint32_t)1); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__STATIC_INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + return(__regfpscr); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__STATIC_INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + __regfpscr = (fpscr); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief Enable IRQ Interrupts + + This function enables IRQ interrupts by clearing the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) +{ + __ASM volatile ("cpsie i"); +} + + +/** \brief Disable IRQ Interrupts + + This function disables IRQ interrupts by setting the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) +{ + __ASM volatile ("cpsid i"); +} + + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, control" : "=r" (result) ); + return(result); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) +{ + __ASM volatile ("MSR control, %0" : : "r" (control) ); +} + + +/** \brief Get IPSR Register + + This function returns the content of the IPSR Register. + + \return IPSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, apsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) +{ + __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) ); +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +{ + __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) ); +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PRIMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, primask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) +{ + __ASM volatile ("MSR primask, %0" : : "r" (priMask) ); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) +{ + __ASM volatile ("cpsie f"); +} + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) +{ + __ASM volatile ("cpsid f"); +} + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); + return(result); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) +{ + __ASM volatile ("MSR basepri, %0" : : "r" (value) ); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) ); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + uint32_t result; + + __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); + return(result); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) ); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all instrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@} end of CMSIS_Core_RegAccFunctions */ + + +#endif /* __CORE_CMFUNC_H */ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cmInstr.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cmInstr.h new file mode 100644 index 00000000..624c175f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/cmsis/core_cmInstr.h @@ -0,0 +1,618 @@ +/**************************************************************************//** + * @file core_cmInstr.h + * @brief CMSIS Cortex-M Core Instruction Access Header File + * @version V3.01 + * @date 06. March 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMINSTR_H +#define __CORE_CMINSTR_H + + +/* ########################## Core Instruction Access ######################### */ +/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface + Access to dedicated instructions + @{ +*/ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +#define __NOP __nop + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +#define __WFI __wfi + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +#define __WFE __wfe + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +#define __SEV __sev + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +#define __ISB() __isb(0xF) + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +#define __DSB() __dsb(0xF) + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +#define __DMB() __dmb(0xF) + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __REV __rev + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) +{ + rev16 r0, r0 + bx lr +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value) +{ + revsh r0, r0 + bx lr +} + + +/** \brief Rotate Right in unsigned value (32 bit) + + This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. + + \param [in] value Value to rotate + \param [in] value Number of Bits to rotate + \return Rotated value + */ +#define __ROR __ror + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __RBIT __rbit + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +#define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +#define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +#define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXB(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXH(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXW(value, ptr) __strex(value, ptr) + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +#define __CLREX __clrex + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT __ssat + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT __usat + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +#define __CLZ __clz + +#endif /* (__CORTEX_M >= 0x03) */ + + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __NOP(void) +{ + __ASM volatile ("nop"); +} + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFI(void) +{ + __ASM volatile ("wfi"); +} + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFE(void) +{ + __ASM volatile ("wfe"); +} + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __SEV(void) +{ + __ASM volatile ("sev"); +} + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __ISB(void) +{ + __ASM volatile ("isb"); +} + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __DSB(void) +{ + __ASM volatile ("dsb"); +} + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __DMB(void) +{ + __ASM volatile ("dmb"); +} + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV16(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value) +{ + uint32_t result; + + __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Rotate Right in unsigned value (32 bit) + + This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. + + \param [in] value Value to rotate + \param [in] value Number of Bits to rotate + \return Rotated value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) +{ + + __ASM volatile ("ror %0, %0, %1" : "+r" (op1) : "r" (op2) ); + return(op1); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __RBIT(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) +{ + uint8_t result; + + __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) +{ + uint16_t result; + + __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("strex %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __CLREX(void) +{ + __ASM volatile ("clrex"); +} + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __CLZ(uint32_t value) +{ + uint8_t result; + + __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all intrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ + +#endif /* __CORE_CMINSTR_H */ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/fatfs/ffconf.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/fatfs/ffconf.h new file mode 100644 index 00000000..02ad6ca3 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/fatfs/ffconf.h @@ -0,0 +1,192 @@ +/*---------------------------------------------------------------------------/ +/ FatFs - FAT file system module configuration file R0.09b (C)ChaN, 2013 +/----------------------------------------------------------------------------/ +/ +/ CAUTION! Do not forget to make clean the project after any changes to +/ the configuration options. +/ +/----------------------------------------------------------------------------*/ +#ifndef _FFCONF +#define _FFCONF 82786 /* Revision ID */ + + +/*---------------------------------------------------------------------------/ +/ Functions and Buffer Configurations +/----------------------------------------------------------------------------*/ + +#define _FS_TINY 0 /* 0:Normal or 1:Tiny */ +/* When _FS_TINY is set to 1, FatFs uses the sector buffer in the file system +/ object instead of the sector buffer in the individual file object for file +/ data transfer. This reduces memory consumption 512 bytes each file object. */ + + +#define _FS_READONLY 0 /* 0:Read/Write or 1:Read only */ +/* Setting _FS_READONLY to 1 defines read only configuration. This removes +/ writing functions, f_write, f_sync, f_unlink, f_mkdir, f_chmod, f_rename, +/ f_truncate and useless f_getfree. */ + + +#define _FS_MINIMIZE 0 /* 0 to 3 */ +/* The _FS_MINIMIZE option defines minimization level to remove some functions. +/ +/ 0: Full function. +/ 1: f_stat, f_getfree, f_unlink, f_mkdir, f_chmod, f_truncate and f_rename +/ are removed. +/ 2: f_opendir and f_readdir are removed in addition to 1. +/ 3: f_lseek is removed in addition to 2. */ + + +#define _USE_STRFUNC 2 /* 0:Disable or 1-2:Enable */ +/* To enable string functions, set _USE_STRFUNC to 1 or 2. */ + + +#define _USE_MKFS 0 /* 0:Disable or 1:Enable */ +/* To enable f_mkfs function, set _USE_MKFS to 1 and set _FS_READONLY to 0 */ + + +#define _USE_FASTSEEK 0 /* 0:Disable or 1:Enable */ +/* To enable fast seek feature, set _USE_FASTSEEK to 1. */ + + +#define _USE_LABEL 0 /* 0:Disable or 1:Enable */ +/* To enable volume label functions, set _USE_LAVEL to 1 */ + + +#define _USE_FORWARD 0 /* 0:Disable or 1:Enable */ +/* To enable f_forward function, set _USE_FORWARD to 1 and set _FS_TINY to 1. */ + + +/*---------------------------------------------------------------------------/ +/ Locale and Namespace Configurations +/----------------------------------------------------------------------------*/ + +#define _CODE_PAGE 437 +/* The _CODE_PAGE specifies the OEM code page to be used on the target system. +/ Incorrect setting of the code page can cause a file open failure. +/ +/ 932 - Japanese Shift-JIS (DBCS, OEM, Windows) +/ 936 - Simplified Chinese GBK (DBCS, OEM, Windows) +/ 949 - Korean (DBCS, OEM, Windows) +/ 950 - Traditional Chinese Big5 (DBCS, OEM, Windows) +/ 1250 - Central Europe (Windows) +/ 1251 - Cyrillic (Windows) +/ 1252 - Latin 1 (Windows) +/ 1253 - Greek (Windows) +/ 1254 - Turkish (Windows) +/ 1255 - Hebrew (Windows) +/ 1256 - Arabic (Windows) +/ 1257 - Baltic (Windows) +/ 1258 - Vietnam (OEM, Windows) +/ 437 - U.S. (OEM) +/ 720 - Arabic (OEM) +/ 737 - Greek (OEM) +/ 775 - Baltic (OEM) +/ 850 - Multilingual Latin 1 (OEM) +/ 858 - Multilingual Latin 1 + Euro (OEM) +/ 852 - Latin 2 (OEM) +/ 855 - Cyrillic (OEM) +/ 866 - Russian (OEM) +/ 857 - Turkish (OEM) +/ 862 - Hebrew (OEM) +/ 874 - Thai (OEM, Windows) +/ 1 - ASCII only (Valid for non LFN cfg.) +*/ + + +#define _USE_LFN 1 /* 0 to 3 */ +#define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */ +/* The _USE_LFN option switches the LFN support. +/ +/ 0: Disable LFN feature. _MAX_LFN and _LFN_UNICODE have no effect. +/ 1: Enable LFN with static working buffer on the BSS. Always NOT reentrant. +/ 2: Enable LFN with dynamic working buffer on the STACK. +/ 3: Enable LFN with dynamic working buffer on the HEAP. +/ +/ The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes. To enable LFN, +/ Unicode handling functions ff_convert() and ff_wtoupper() must be added +/ to the project. When enable to use heap, memory control functions +/ ff_memalloc() and ff_memfree() must be added to the project. */ + + +#define _LFN_UNICODE 0 /* 0:ANSI/OEM or 1:Unicode */ +/* To switch the character code set on FatFs API to Unicode, +/ enable LFN feature and set _LFN_UNICODE to 1. */ + + +#define _FS_RPATH 0 /* 0 to 2 */ +/* The _FS_RPATH option configures relative path feature. +/ +/ 0: Disable relative path feature and remove related functions. +/ 1: Enable relative path. f_chdrive() and f_chdir() are available. +/ 2: f_getcwd() is available in addition to 1. +/ +/ Note that output of the f_readdir fnction is affected by this option. */ + + +/*---------------------------------------------------------------------------/ +/ Physical Drive Configurations +/----------------------------------------------------------------------------*/ + +#define _VOLUMES 1 +/* Number of volumes (logical drives) to be used. */ + + +#define _MAX_SS 512 /* 512, 1024, 2048 or 4096 */ +/* Maximum sector size to be handled. +/ Always set 512 for memory card and hard disk but a larger value may be +/ required for on-board flash memory, floppy disk and optical disk. +/ When _MAX_SS is larger than 512, it configures FatFs to variable sector size +/ and GET_SECTOR_SIZE command must be implememted to the disk_ioctl function. */ + + +#define _MULTI_PARTITION 0 /* 0:Single partition, 1:Enable multiple partition */ +/* When set to 0, each volume is bound to the same physical drive number and +/ it can mount only first primaly partition. When it is set to 1, each volume +/ is tied to the partitions listed in VolToPart[]. */ + + +#define _USE_ERASE 0 /* 0:Disable or 1:Enable */ +/* To enable sector erase feature, set _USE_ERASE to 1. CTRL_ERASE_SECTOR command +/ should be added to the disk_ioctl functio. */ + + + +/*---------------------------------------------------------------------------/ +/ System Configurations +/----------------------------------------------------------------------------*/ + +#define _WORD_ACCESS 0 /* 0 or 1 */ +/* Set 0 first and it is always compatible with all platforms. The _WORD_ACCESS +/ option defines which access method is used to the word data on the FAT volume. +/ +/ 0: Byte-by-byte access. +/ 1: Word access. Do not choose this unless following condition is met. +/ +/ When the byte order on the memory is big-endian or address miss-aligned word +/ access results incorrect behavior, the _WORD_ACCESS must be set to 0. +/ If it is not the case, the value can also be set to 1 to improve the +/ performance and code size. +*/ + + +/* A header file that defines sync object types on the O/S, such as +/ windows.h, ucos_ii.h and semphr.h, must be included prior to ff.h. */ + +#define _FS_REENTRANT 0 /* 0:Disable or 1:Enable */ +#define _FS_TIMEOUT 1000 /* Timeout period in unit of time ticks */ +#define _SYNC_t HANDLE /* O/S dependent type of sync object. e.g. HANDLE, OS_EVENT*, ID and etc.. */ + +/* The _FS_REENTRANT option switches the reentrancy (thread safe) of the FatFs module. +/ +/ 0: Disable reentrancy. _SYNC_t and _FS_TIMEOUT have no effect. +/ 1: Enable reentrancy. Also user provided synchronization handlers, +/ ff_req_grant, ff_rel_grant, ff_del_syncobj and ff_cre_syncobj +/ function must be added to the project. */ + + +#define _FS_LOCK 0 /* 0:Disable or >=1:Enable */ +/* To enable file lock control feature, set _FS_LOCK to 1 or greater. + The value defines how many files can be opened simultaneously. */ + + +#endif /* _FFCONFIG */ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/fatfs/mmc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/fatfs/mmc.c new file mode 100644 index 00000000..f25bc5b8 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/fatfs/mmc.c @@ -0,0 +1,699 @@ +/*------------------------------------------------------------------------/ +/ MMCv3/SDv1/SDv2 (in SPI mode) control module +/-------------------------------------------------------------------------/ +/ +/ Copyright (C) 2013, ChaN, all right reserved. +/ +/ * This software is a free software and there is NO WARRANTY. +/ * No restriction on use. You can use, modify and redistribute it for +/ personal, non-profit or commercial products UNDER YOUR RESPONSIBILITY. +/ * Redistributions of source code must retain the above copyright notice. +/ +/-------------------------------------------------------------------------*/ + + +/* + * This file was modified from a sample available from the FatFs + * web site. It was modified to work with a Olimex STM32-P207 + * evaluation board. + * + */ +#include "diskio.h" +#include "stm32f2xx.h" /* STM32 registers */ +#include "stm32f2xx_conf.h" /* STM32 peripheral drivers */ + + + +/*-------------------------------------------------------------------------- + + Module Private Functions + +---------------------------------------------------------------------------*/ + +/* Definitions for MMC/SDC command */ +#define CMD0 (0) /* GO_IDLE_STATE */ +#define CMD1 (1) /* SEND_OP_COND */ +#define ACMD41 (41|0x80) /* SEND_OP_COND (SDC) */ +#define CMD8 (8) /* SEND_IF_COND */ +#define CMD9 (9) /* SEND_CSD */ +#define CMD10 (10) /* SEND_CID */ +#define CMD12 (12) /* STOP_TRANSMISSION */ +#define ACMD13 (13|0x80) /* SD_STATUS (SDC) */ +#define CMD16 (16) /* SET_BLOCKLEN */ +#define CMD17 (17) /* READ_SINGLE_BLOCK */ +#define CMD18 (18) /* READ_MULTIPLE_BLOCK */ +#define CMD23 (23) /* SET_BLOCK_COUNT */ +#define ACMD23 (23|0x80) /* SET_WR_BLK_ERASE_COUNT (SDC) */ +#define CMD24 (24) /* WRITE_BLOCK */ +#define CMD25 (25) /* WRITE_MULTIPLE_BLOCK */ +#define CMD41 (41) /* SEND_OP_COND (ACMD) */ +#define CMD55 (55) /* APP_CMD */ +#define CMD58 (58) /* READ_OCR */ + + +/* Control signals (Platform dependent) */ +#define CS_LOW() GPIO_ResetBits(GPIOD, GPIO_Pin_2) /* MMC CS = L */ +#define CS_HIGH() GPIO_SetBits(GPIOD, GPIO_Pin_2) /* MMC CS = H */ + + + +#define FCLK_SLOW() /* Set slow clock (100k-400k) */ +#define FCLK_FAST() set_max_speed() /* Set fast clock (depends on the CSD) */ + +static volatile +DSTATUS Stat = STA_NOINIT; /* Disk status */ + +static volatile +UINT Timer1, Timer2; /* 1000Hz decrement timer */ + +static +UINT CardType; + + +/*-----------------------------------------------------------------------*/ +/* Send 80 or so clock transitions with CS and DI held high. This is */ +/* required after card power up to get it into SPI mode */ +/*-----------------------------------------------------------------------*/ +static +void send_initial_clock_train(void) +{ + GPIO_InitTypeDef GPIO_InitStructure; + unsigned int i; + + /* Ensure CS is held high. */ + CS_HIGH(); + + /* Switch the SSI TX line to a GPIO and drive it high too. */ + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; + GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12; + GPIO_Init(GPIOC, &GPIO_InitStructure); + GPIO_SetBits(GPIOC, GPIO_Pin_12); + + /* Send 10 bytes over the SSI. This causes the clock to wiggle the */ + /* required number of times. */ + for(i = 0 ; i < 10 ; i++) + { + /* Loop while DR register in not empty */ + while (SPI_I2S_GetFlagStatus(SPI3, SPI_I2S_FLAG_TXE) == RESET) { ; } + + /* Send byte through the SPI peripheral */ + SPI_I2S_SendData(SPI3, 0xff); + + /* Wait to receive a byte */ + while (SPI_I2S_GetFlagStatus(SPI3, SPI_I2S_FLAG_RXNE) == RESET) { ; } + } + + /* Revert to hardware control of the SSI TX line. */ + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN; + GPIO_Init(GPIOC, &GPIO_InitStructure); +} + + +/*-----------------------------------------------------------------------*/ +/* Power Control (Platform dependent) */ +/*-----------------------------------------------------------------------*/ +/* When the target system does not support socket power control, there */ +/* is nothing to do in these functions. */ + +static +void power_on (void) +{ + SPI_InitTypeDef SPI_InitStructure; + GPIO_InitTypeDef GPIO_InitStructure; + + /* + * This doesn't really turn the power on, but initializes the + * SSI port and pins needed to talk to the card. + */ + + /* Enable GPIO clock for SPI pins */ + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE); + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOC, ENABLE); + /* Enable SPI clock, SPI2: APB1 */ + RCC_APB1PeriphClockCmd(RCC_APB1Periph_SPI3, ENABLE); + /* Configure I/O for Chip select (PD2) */ + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; + GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; + GPIO_Init(GPIOD, &GPIO_InitStructure); + + /* De-select the Card: Chip Select high */ + GPIO_SetBits(GPIOD, GPIO_Pin_2); + + /* Configure SPI pins: SCK (PC10), MOSI (PC12) and MISO (PC11) with default alternate function (not re-mapped) push-pull */ + GPIO_PinAFConfig(GPIOC, GPIO_PinSource10, GPIO_AF_SPI3); + GPIO_PinAFConfig(GPIOC, GPIO_PinSource11, GPIO_AF_SPI3); + GPIO_PinAFConfig(GPIOC, GPIO_PinSource12, GPIO_AF_SPI3); + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10 | GPIO_Pin_11 | GPIO_Pin_12; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN; + GPIO_Init(GPIOC, &GPIO_InitStructure); + + /* SPI configuration */ + SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex; + SPI_InitStructure.SPI_Mode = SPI_Mode_Master; + SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b; + SPI_InitStructure.SPI_CPOL = SPI_CPOL_Low; + SPI_InitStructure.SPI_CPHA = SPI_CPHA_1Edge; + SPI_InitStructure.SPI_NSS = SPI_NSS_Soft; + SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_128; // 168MHz/4/128=328kHz < 400kHz + SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB; + SPI_InitStructure.SPI_CRCPolynomial = 7; + + SPI_Init(SPI3, &SPI_InitStructure); + SPI_CalculateCRC(SPI3, DISABLE); + SPI_Cmd(SPI3, ENABLE); + + /* Set DI and CS high and apply more than 74 pulses to SCLK for the card */ + /* to be able to accept a native command. */ + send_initial_clock_train(); +} + +// set the SSI speed to the max setting +static +void set_max_speed(void) +{ + SPI_InitTypeDef SPI_InitStructure; + + /* Disable the SPI system */ + SPI_Cmd(SPI3, DISABLE); + + /* MMC/SDC can work at the clock frequency up to 20/25MHz so pick a speed close to + * this but not higher + */ + SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex; + SPI_InitStructure.SPI_Mode = SPI_Mode_Master; + SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b; + SPI_InitStructure.SPI_CPOL = SPI_CPOL_Low; + SPI_InitStructure.SPI_CPHA = SPI_CPHA_1Edge; + SPI_InitStructure.SPI_NSS = SPI_NSS_Soft; + SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_2; // 120MHz/4/2=15MHz < 25MHz + SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB; + SPI_InitStructure.SPI_CRCPolynomial = 7; + SPI_Init(SPI3, &SPI_InitStructure); + SPI_CalculateCRC(SPI3, DISABLE); + + /* Enable the SPI system */ + SPI_Cmd(SPI3, ENABLE); +} + +static +void power_off (void) +{ + Stat |= STA_NOINIT; /* Force uninitialized */ +} + + +/*-----------------------------------------------------------------------*/ +/* Transmit/Receive data to/from MMC via SPI (Platform dependent) */ +/*-----------------------------------------------------------------------*/ + +static +BYTE xchg_spi (BYTE dat) +{ + /* Send byte through the SPI peripheral */ + SPI_I2S_SendData(SPI3, dat); + + /* Wait to receive a byte */ + while (SPI_I2S_GetFlagStatus(SPI3, SPI_I2S_FLAG_RXNE) == RESET) { ; } + + /* Return the byte read from the SPI bus */ + return (BYTE)SPI_I2S_ReceiveData(SPI3); +} + +static +void rcvr_spi_m (BYTE *dst) +{ + *dst = xchg_spi(0xFF); +} + + +/*-----------------------------------------------------------------------*/ +/* Wait for card ready */ +/*-----------------------------------------------------------------------*/ + +static +int wait_ready (void) +{ + BYTE d; + + Timer2 = 500; /* Wait for ready in timeout of 500ms */ + do { + d = xchg_spi(0xFF); + } while ((d != 0xFF) && Timer2); + + return (d == 0xFF) ? 1 : 0; +} + + +/*-----------------------------------------------------------------------*/ +/* Deselect the card and release SPI bus */ +/*-----------------------------------------------------------------------*/ + +static +void deselect (void) +{ + CS_HIGH(); + xchg_spi(0xFF); /* Dummy clock (force DO hi-z for multiple slave SPI) */ +} + + + +/*-----------------------------------------------------------------------*/ +/* Select the card and wait ready */ +/*-----------------------------------------------------------------------*/ + +static +int select (void) /* 1:Successful, 0:Timeout */ +{ + CS_LOW(); + xchg_spi(0xFF); /* Dummy clock (force DO enabled) */ + + if (wait_ready()) return 1; /* OK */ + deselect(); + return 0; /* Timeout */ +} + + + +/*-----------------------------------------------------------------------*/ +/* Receive a data packet from MMC */ +/*-----------------------------------------------------------------------*/ + +static +int rcvr_datablock ( /* 1:OK, 0:Failed */ + BYTE *buff, /* Data buffer to store received data */ + UINT btr /* Byte count (must be multiple of 4) */ +) +{ + BYTE token; + + + Timer1 = 100; + do { /* Wait for data packet in timeout of 100ms */ + token = xchg_spi(0xFF); + } while ((token == 0xFF) && Timer1); + + if(token != 0xFE) return 0; /* If not valid data token, retutn with error */ + + do { /* Receive the data block into buffer */ + rcvr_spi_m(buff++); + rcvr_spi_m(buff++); + } while (btr -= 2); + xchg_spi(0xFF); /* Discard CRC */ + xchg_spi(0xFF); + + return 1; /* Return with success */ +} + + + +/*-----------------------------------------------------------------------*/ +/* Send a data packet to MMC */ +/*-----------------------------------------------------------------------*/ + +#if _USE_WRITE +static +int xmit_datablock ( /* 1:OK, 0:Failed */ + const BYTE *buff, /* 512 byte data block to be transmitted */ + BYTE token /* Data token */ +) +{ + BYTE resp; + UINT wc; + + + if (!wait_ready()) return 0; + + xchg_spi(token); /* Xmit a token */ + if (token != 0xFD) { /* Not StopTran token */ + wc = 512; + do { /* Xmit the 512 byte data block to MMC */ + xchg_spi(*buff++); + xchg_spi(*buff++); + } while (wc -= 2); + xchg_spi(0xFF); /* CRC (Dummy) */ + xchg_spi(0xFF); + resp = xchg_spi(0xFF); /* Receive a data response */ + if ((resp & 0x1F) != 0x05) /* If not accepted, return with error */ + return 0; + } + + return 1; +} +#endif + + + +/*-----------------------------------------------------------------------*/ +/* Send a command packet to MMC */ +/*-----------------------------------------------------------------------*/ + +static +BYTE send_cmd ( + BYTE cmd, /* Command byte */ + DWORD arg /* Argument */ +) +{ + BYTE n, res; + + + if (cmd & 0x80) { /* ACMD is the command sequense of CMD55-CMD */ + cmd &= 0x7F; + res = send_cmd(CMD55, 0); + if (res > 1) return res; + } + + /* Select the card and wait for ready */ + deselect(); + if (!select()) return 0xFF; + + /* Send command packet */ + xchg_spi(0x40 | cmd); /* Start + Command index */ + xchg_spi((BYTE)(arg >> 24)); /* Argument[31..24] */ + xchg_spi((BYTE)(arg >> 16)); /* Argument[23..16] */ + xchg_spi((BYTE)(arg >> 8)); /* Argument[15..8] */ + xchg_spi((BYTE)arg); /* Argument[7..0] */ + n = 0x01; /* Dummy CRC + Stop */ + if (cmd == CMD0) n = 0x95; /* Valid CRC for CMD0(0) + Stop */ + if (cmd == CMD8) n = 0x87; /* Valid CRC for CMD8(0x1AA) + Stop */ + xchg_spi(n); + + /* Receive command response */ + if (cmd == CMD12) xchg_spi(0xFF); /* Skip a stuff byte on stop to read */ + n = 10; /* Wait for a valid response in timeout of 10 attempts */ + do + res = xchg_spi(0xFF); + while ((res & 0x80) && --n); + + return res; /* Return with the response value */ +} + + + +/*-------------------------------------------------------------------------- + + Public Functions + +---------------------------------------------------------------------------*/ + + +/*-----------------------------------------------------------------------*/ +/* Initialize Disk Drive */ +/*-----------------------------------------------------------------------*/ + +DSTATUS disk_initialize ( + BYTE pdrv /* Physical drive nmuber (0) */ +) +{ + BYTE n, cmd, ty, ocr[4]; + + + if (pdrv) return STA_NOINIT; /* Supports only single drive */ + if (Stat & STA_NODISK) return Stat; /* No card in the socket */ + + power_on(); /* Force socket power on */ + + CS_LOW(); /* CS = L */ + + ty = 0; + if (send_cmd(CMD0, 0) == 1) { /* Enter Idle state */ + Timer1 = 1000; /* Initialization timeout of 1000 msec */ + if (send_cmd(CMD8, 0x1AA) == 1) { /* SDv2? */ + for (n = 0; n < 4; n++) ocr[n] = xchg_spi(0xFF); /* Get trailing return value of R7 resp */ + if (ocr[2] == 0x01 && ocr[3] == 0xAA) { /* The card can work at vdd range of 2.7-3.6V */ + while (Timer1 && send_cmd(ACMD41, 0x40000000)); /* Wait for leaving idle state (ACMD41 with HCS bit) */ + if (Timer1 && send_cmd(CMD58, 0) == 0) { /* Check CCS bit in the OCR */ + for (n = 0; n < 4; n++) ocr[n] = xchg_spi(0xFF); + ty = (ocr[0] & 0x40) ? CT_SD2|CT_BLOCK : CT_SD2; /* SDv2 */ + } + } + } else { /* SDv1 or MMCv3 */ + if (send_cmd(ACMD41, 0) <= 1) { + ty = CT_SD1; cmd = ACMD41; /* SDv1 */ + } else { + ty = CT_MMC; cmd = CMD1; /* MMCv3 */ + } + while (Timer1 && send_cmd(cmd, 0)); /* Wait for leaving idle state */ + if (!Timer1 || send_cmd(CMD16, 512) != 0) /* Set read/write block length to 512 */ + ty = 0; + } + } + CardType = ty; + deselect(); + + if (ty) { /* Initialization succeded */ + Stat &= ~STA_NOINIT; /* Clear STA_NOINIT */ + FCLK_FAST(); + } else { /* Initialization failed */ + power_off(); + } + + return Stat; +} + + + +/*-----------------------------------------------------------------------*/ +/* Get Disk Status */ +/*-----------------------------------------------------------------------*/ + +DSTATUS disk_status ( + BYTE pdrv /* Physical drive nmuber (0) */ +) +{ + if (pdrv) return STA_NOINIT; /* Supports only single drive */ + return Stat; +} + + + +/*-----------------------------------------------------------------------*/ +/* Read Sector(s) */ +/*-----------------------------------------------------------------------*/ + +DRESULT disk_read ( + BYTE pdrv, /* Physical drive number (0) */ + BYTE *buff, /* Pointer to the data buffer to store read data */ + DWORD sector, /* Start sector number (LBA) */ + BYTE count /* Sector count (1..255) */ +) +{ + if (pdrv || !count) return RES_PARERR; + if (Stat & STA_NOINIT) return RES_NOTRDY; + + if (!(CardType & CT_BLOCK)) sector *= 512; /* Convert to byte address if needed */ + + if (count == 1) { /* Single block read */ + if ((send_cmd(CMD17, sector) == 0) /* READ_SINGLE_BLOCK */ + && rcvr_datablock(buff, 512)) + count = 0; + } + else { /* Multiple block read */ + if (send_cmd(CMD18, sector) == 0) { /* READ_MULTIPLE_BLOCK */ + do { + if (!rcvr_datablock(buff, 512)) break; + buff += 512; + } while (--count); + send_cmd(CMD12, 0); /* STOP_TRANSMISSION */ + } + } + deselect(); + + return count ? RES_ERROR : RES_OK; +} + + + +/*-----------------------------------------------------------------------*/ +/* Write Sector(s) */ +/*-----------------------------------------------------------------------*/ + +#if _USE_WRITE +DRESULT disk_write ( + BYTE pdrv, /* Physical drive nmuber (0) */ + const BYTE *buff, /* Pointer to the data to be written */ + DWORD sector, /* Start sector number (LBA) */ + BYTE count /* Sector count (1..255) */ +) +{ + if (pdrv || !count) return RES_PARERR; + if (Stat & STA_NOINIT) return RES_NOTRDY; + if (Stat & STA_PROTECT) return RES_WRPRT; + + if (!(CardType & CT_BLOCK)) sector *= 512; /* Convert to byte address if needed */ + + if (count == 1) { /* Single block write */ + if ((send_cmd(CMD24, sector) == 0) /* WRITE_BLOCK */ + && xmit_datablock(buff, 0xFE)) + count = 0; + } + else { /* Multiple block write */ + if (CardType & CT_SDC) send_cmd(ACMD23, count); + if (send_cmd(CMD25, sector) == 0) { /* WRITE_MULTIPLE_BLOCK */ + do { + if (!xmit_datablock(buff, 0xFC)) break; + buff += 512; + } while (--count); + if (!xmit_datablock(0, 0xFD)) /* STOP_TRAN token */ + count = 1; + } + } + deselect(); + + return count ? RES_ERROR : RES_OK; +} +#endif + + + +/*-----------------------------------------------------------------------*/ +/* Miscellaneous Functions */ +/*-----------------------------------------------------------------------*/ + +#if _USE_IOCTL +DRESULT disk_ioctl ( + BYTE pdrv, /* Physical drive nmuber (0) */ + BYTE cmd, /* Control code */ + void *buff /* Buffer to send/receive data block */ +) +{ + DRESULT res; + BYTE n, csd[16], *ptr = buff; + DWORD csz; + + + if (pdrv) return RES_PARERR; + if (Stat & STA_NOINIT) return RES_NOTRDY; + + res = RES_ERROR; + switch (cmd) { + case CTRL_SYNC : /* Flush write-back cache, Wait for end of internal process */ + if (select()) res = RES_OK; + break; + + case GET_SECTOR_COUNT : /* Get number of sectors on the disk (WORD) */ + if ((send_cmd(CMD9, 0) == 0) && rcvr_datablock(csd, 16)) { + if ((csd[0] >> 6) == 1) { /* SDv2? */ + csz = csd[9] + ((WORD)csd[8] << 8) + ((DWORD)(csd[7] & 63) << 16) + 1; + *(DWORD*)buff = csz << 10; + } else { /* SDv1 or MMCv3 */ + n = (csd[5] & 15) + ((csd[10] & 128) >> 7) + ((csd[9] & 3) << 1) + 2; + csz = (csd[8] >> 6) + ((WORD)csd[7] << 2) + ((WORD)(csd[6] & 3) << 10) + 1; + *(DWORD*)buff = csz << (n - 9); + } + res = RES_OK; + } + break; + + case GET_BLOCK_SIZE : /* Get erase block size in unit of sectors (DWORD) */ + if (CardType & CT_SD2) { /* SDv2? */ + if (send_cmd(ACMD13, 0) == 0) { /* Read SD status */ + xchg_spi(0xFF); + if (rcvr_datablock(csd, 16)) { /* Read partial block */ + for (n = 64 - 16; n; n--) xchg_spi(0xFF); /* Purge trailing data */ + *(DWORD*)buff = 16UL << (csd[10] >> 4); + res = RES_OK; + } + } + } else { /* SDv1 or MMCv3 */ + if ((send_cmd(CMD9, 0) == 0) && rcvr_datablock(csd, 16)) { /* Read CSD */ + if (CardType & CT_SD1) { /* SDv1 */ + *(DWORD*)buff = (((csd[10] & 63) << 1) + ((WORD)(csd[11] & 128) >> 7) + 1) << ((csd[13] >> 6) - 1); + } else { /* MMCv3 */ + *(DWORD*)buff = ((WORD)((csd[10] & 124) >> 2) + 1) * (((csd[11] & 3) << 3) + ((csd[11] & 224) >> 5) + 1); + } + res = RES_OK; + } + } + break; + + case MMC_GET_TYPE : /* Get card type flags (1 byte) */ + *ptr = CardType; + res = RES_OK; + break; + + case MMC_GET_CSD : /* Receive CSD as a data block (16 bytes) */ + if ((send_cmd(CMD9, 0) == 0) /* READ_CSD */ + && rcvr_datablock(buff, 16)) + res = RES_OK; + break; + + case MMC_GET_CID : /* Receive CID as a data block (16 bytes) */ + if ((send_cmd(CMD10, 0) == 0) /* READ_CID */ + && rcvr_datablock(buff, 16)) + res = RES_OK; + break; + + case MMC_GET_OCR : /* Receive OCR as an R3 resp (4 bytes) */ + if (send_cmd(CMD58, 0) == 0) { /* READ_OCR */ + for (n = 0; n < 4; n++) + *((BYTE*)buff+n) = xchg_spi(0xFF); + res = RES_OK; + } + break; + + case MMC_GET_SDSTAT : /* Receive SD status as a data block (64 bytes) */ + if ((CardType & CT_SD2) && send_cmd(ACMD13, 0) == 0) { /* SD_STATUS */ + xchg_spi(0xFF); + if (rcvr_datablock(buff, 64)) + res = RES_OK; + } + break; + + default: + res = RES_PARERR; + } + + deselect(); + + return res; +} +#endif + + +/*-----------------------------------------------------------------------*/ +/* Device Timer Driven Procedure */ +/*-----------------------------------------------------------------------*/ +/* This function must be called by timer interrupt in period of 1ms */ + +void disk_timerproc(void) +{ + UINT n; + + n = Timer1; /* 1000Hz decrement timer with zero stopped */ + if (n) Timer1 = --n; + n = Timer2; + if (n) Timer2 = --n; +} + + +/*---------------------------------------------------------*/ +/* User Provided Timer Function for FatFs module */ +/*---------------------------------------------------------*/ +/* This is a real time clock service to be called from */ +/* FatFs module. Any valid time must be returned even if */ +/* the system does not support a real time clock. */ +/* This is not required in read-only configuration. */ + +DWORD get_fattime (void) +{ + /* No RTC supprt. Return a fixed value 2013/5/10 0:00:00 */ + return ((DWORD)(2013 - 1980) << 25) /* Y */ + | ((DWORD)5 << 21) /* M */ + | ((DWORD)10 << 16) /* D */ + | ((DWORD)0 << 11) /* H */ + | ((DWORD)0 << 5) /* M */ + | ((DWORD)0 >> 1); /* S */ +} diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/stm32f2xx.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/stm32f2xx.h new file mode 100644 index 00000000..8e73d85a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/stm32f2xx.h @@ -0,0 +1,7721 @@ +/** + ****************************************************************************** + * @file stm32f2xx.h + * @author MCD Application Team + * @version V1.0.0 - edited by Keil + * @date 18-April-2011 + * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Header File. + * This file contains all the peripheral register's definitions, bits + * definitions and memory mapping for STM32F2xx devices. + * + * The file is the unique include file that the application programmer + * is using in the C source code, usually in main.c. This file contains: + * - Configuration section that allows to select: + * - The device used in the target application + * - To use or not the peripheral’s drivers in application code(i.e. + * code will be based on direct access to peripheral’s registers + * rather than drivers API), this option is controlled by + * "#define USE_STDPERIPH_DRIVER" + * - To change few application-specific parameters such as the HSE + * crystal frequency + * - Data structures and the address mapping for all peripherals + * - Peripheral's registers declarations and bits definition + * - Macros to access peripheral’s registers hardware + * + ****************************************************************************** + * @attention + * + * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS + * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE + * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY + * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING + * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE + * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. + * + *

© COPYRIGHT 2011 STMicroelectronics

+ ****************************************************************************** + */ + +/** @addtogroup CMSIS + * @{ + */ + +/** @addtogroup stm32f2xx + * @{ + */ + +#ifndef __STM32F2xx_H +#define __STM32F2xx_H + +#ifdef __cplusplus + extern "C" { +#endif /* __cplusplus */ + +/** @addtogroup Library_configuration_section + * @{ + */ + +/* Uncomment the line below according to the target STM32 device used in your + application + */ + +#if !defined (STM32F2XX) + #define STM32F2XX +#endif + +/* Tip: To avoid modifying this file each time you need to switch between these + devices, you can define the device in your toolchain compiler preprocessor. + */ + +#if !defined (STM32F2XX) + #error "Please select first the target STM32F2XX device used in your application (in stm32f2xx.h file)" +#endif + +#if !defined (USE_STDPERIPH_DRIVER) +/** + * @brief Comment the line below if you will not use the peripherals drivers. + In this case, these drivers will not be included and the application code will + be based on direct access to peripherals registers + */ + /*#define USE_STDPERIPH_DRIVER*/ +#endif /* USE_STDPERIPH_DRIVER */ + +/** + * @brief In the following line adjust the value of External High Speed oscillator (HSE) + used in your application + + Tip: To avoid modifying this file each time you need to use different HSE, you + can define the HSE value in your toolchain compiler preprocessor. + */ +#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */ + +/** + * @brief In the following line adjust the External High Speed oscillator (HSE) Startup + Timeout value + */ +#define HSE_STARTUP_TIMEOUT ((uint16_t)0x0600) /*!< Time out for HSE start up */ +#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ + +/** + * @brief STM32F2Xxx Standard Peripherals Library version number V1.0.0 + */ +#define __STM32F2XX_STDPERIPH_VERSION_MAIN (0x01) /*!< [31:24] main version */ +#define __STM32F2XX_STDPERIPH_VERSION_SUB1 (0x00) /*!< [23:16] sub1 version */ +#define __STM32F2XX_STDPERIPH_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */ +#define __STM32F2XX_STDPERIPH_VERSION_RC (0x00) /*!< [7:0] release candidate */ +#define __STM32F2XX_STDPERIPH_VERSION ((__STM32F2XX_STDPERIPH_VERSION_MAIN << 24)\ + |(__STM32F2XX_STDPERIPH_VERSION_SUB1 << 16)\ + |(__STM32F2XX_STDPERIPH_VERSION_SUB2 << 8)\ + |(__STM32F2XX_STDPERIPH_VERSION_RC)) + +/** + * @} + */ + +/** @addtogroup Configuration_section_for_CMSIS + * @{ + */ + +/** + * @brief Configuration of the Cortex-M3 Processor and Core Peripherals + */ +#define __MPU_PRESENT 1 /*!< STM32F2XX provide an MPU */ +#define __NVIC_PRIO_BITS 4 /*!< STM32F2XX uses 4 Bits for the Priority Levels */ +#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ + +/** + * @brief STM32F2XX Interrupt Number Definition, according to the selected device + * in @ref Library_configuration_section + */ +typedef enum IRQn +{ +/****** Cortex-M3 Processor Exceptions Numbers ****************************************************************/ + NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ + MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ + BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ + UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ + SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ + DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ + PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ + SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ +/****** STM32 specific Interrupt Numbers **********************************************************************/ + WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ + PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */ + TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */ + RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */ + FLASH_IRQn = 4, /*!< FLASH global Interrupt */ + RCC_IRQn = 5, /*!< RCC global Interrupt */ + EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ + EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ + EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ + EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ + EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ + DMA1_Stream0_IRQn = 11, /*!< DMA1 Stream 0 global Interrupt */ + DMA1_Stream1_IRQn = 12, /*!< DMA1 Stream 1 global Interrupt */ + DMA1_Stream2_IRQn = 13, /*!< DMA1 Stream 2 global Interrupt */ + DMA1_Stream3_IRQn = 14, /*!< DMA1 Stream 3 global Interrupt */ + DMA1_Stream4_IRQn = 15, /*!< DMA1 Stream 4 global Interrupt */ + DMA1_Stream5_IRQn = 16, /*!< DMA1 Stream 5 global Interrupt */ + DMA1_Stream6_IRQn = 17, /*!< DMA1 Stream 6 global Interrupt */ + ADC_IRQn = 18, /*!< ADC1, ADC2 and ADC3 global Interrupts */ + CAN1_TX_IRQn = 19, /*!< CAN1 TX Interrupt */ + CAN1_RX0_IRQn = 20, /*!< CAN1 RX0 Interrupt */ + CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */ + CAN1_SCE_IRQn = 22, /*!< CAN1 SCE Interrupt */ + EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */ + TIM1_BRK_TIM9_IRQn = 24, /*!< TIM1 Break interrupt and TIM9 global interrupt */ + TIM1_UP_TIM10_IRQn = 25, /*!< TIM1 Update Interrupt and TIM10 global interrupt */ + TIM1_TRG_COM_TIM11_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt and TIM11 global interrupt */ + TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */ + TIM2_IRQn = 28, /*!< TIM2 global Interrupt */ + TIM3_IRQn = 29, /*!< TIM3 global Interrupt */ + TIM4_IRQn = 30, /*!< TIM4 global Interrupt */ + I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */ + I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */ + I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */ + I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */ + SPI1_IRQn = 35, /*!< SPI1 global Interrupt */ + SPI2_IRQn = 36, /*!< SPI2 global Interrupt */ + USART1_IRQn = 37, /*!< USART1 global Interrupt */ + USART2_IRQn = 38, /*!< USART2 global Interrupt */ + USART3_IRQn = 39, /*!< USART3 global Interrupt */ + EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */ + RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line Interrupt */ + OTG_FS_WKUP_IRQn = 42, /*!< USB OTG FS Wakeup through EXTI line interrupt */ + TIM8_BRK_TIM12_IRQn = 43, /*!< TIM8 Break Interrupt and TIM12 global interrupt */ + TIM8_UP_TIM13_IRQn = 44, /*!< TIM8 Update Interrupt and TIM13 global interrupt */ + TIM8_TRG_COM_TIM14_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt and TIM14 global interrupt */ + TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare Interrupt */ + DMA1_Stream7_IRQn = 47, /*!< DMA1 Stream7 Interrupt */ + FSMC_IRQn = 48, /*!< FSMC global Interrupt */ + SDIO_IRQn = 49, /*!< SDIO global Interrupt */ + TIM5_IRQn = 50, /*!< TIM5 global Interrupt */ + SPI3_IRQn = 51, /*!< SPI3 global Interrupt */ + UART4_IRQn = 52, /*!< UART4 global Interrupt */ + UART5_IRQn = 53, /*!< UART5 global Interrupt */ + TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC1&2 underrun error interrupts */ + TIM7_IRQn = 55, /*!< TIM7 global interrupt */ + DMA2_Stream0_IRQn = 56, /*!< DMA2 Stream 0 global Interrupt */ + DMA2_Stream1_IRQn = 57, /*!< DMA2 Stream 1 global Interrupt */ + DMA2_Stream2_IRQn = 58, /*!< DMA2 Stream 2 global Interrupt */ + DMA2_Stream3_IRQn = 59, /*!< DMA2 Stream 3 global Interrupt */ + DMA2_Stream4_IRQn = 60, /*!< DMA2 Stream 4 global Interrupt */ + ETH_IRQn = 61, /*!< Ethernet global Interrupt */ + ETH_WKUP_IRQn = 62, /*!< Ethernet Wakeup through EXTI line Interrupt */ + CAN2_TX_IRQn = 63, /*!< CAN2 TX Interrupt */ + CAN2_RX0_IRQn = 64, /*!< CAN2 RX0 Interrupt */ + CAN2_RX1_IRQn = 65, /*!< CAN2 RX1 Interrupt */ + CAN2_SCE_IRQn = 66, /*!< CAN2 SCE Interrupt */ + OTG_FS_IRQn = 67, /*!< USB OTG FS global Interrupt */ + DMA2_Stream5_IRQn = 68, /*!< DMA2 Stream 5 global interrupt */ + DMA2_Stream6_IRQn = 69, /*!< DMA2 Stream 6 global interrupt */ + DMA2_Stream7_IRQn = 70, /*!< DMA2 Stream 7 global interrupt */ + USART6_IRQn = 71, /*!< USART6 global interrupt */ + I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */ + I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */ + OTG_HS_EP1_OUT_IRQn = 74, /*!< USB OTG HS End Point 1 Out global interrupt */ + OTG_HS_EP1_IN_IRQn = 75, /*!< USB OTG HS End Point 1 In global interrupt */ + OTG_HS_WKUP_IRQn = 76, /*!< USB OTG HS Wakeup through EXTI interrupt */ + OTG_HS_IRQn = 77, /*!< USB OTG HS global interrupt */ + DCMI_IRQn = 78, /*!< DCMI global interrupt */ + CRYP_IRQn = 79, /*!< CRYP crypto global interrupt */ + HASH_RNG_IRQn = 80 /*!< Hash and Rng global interrupt */ +} IRQn_Type; + +/** + * @} + */ + +#include "core_cm3.h" +#include "system_stm32f2xx.h" +#include + +/** @addtogroup Exported_types + * @{ + */ +/*!< STM32F10x Standard Peripheral Library old types (maintained for legacy purpose) */ +typedef int32_t s32; +typedef int16_t s16; +typedef int8_t s8; + +typedef const int32_t sc32; /*!< Read Only */ +typedef const int16_t sc16; /*!< Read Only */ +typedef const int8_t sc8; /*!< Read Only */ + +typedef __IO int32_t vs32; +typedef __IO int16_t vs16; +typedef __IO int8_t vs8; + +typedef __I int32_t vsc32; /*!< Read Only */ +typedef __I int16_t vsc16; /*!< Read Only */ +typedef __I int8_t vsc8; /*!< Read Only */ + +typedef uint32_t u32; +typedef uint16_t u16; +typedef uint8_t u8; + +typedef const uint32_t uc32; /*!< Read Only */ +typedef const uint16_t uc16; /*!< Read Only */ +typedef const uint8_t uc8; /*!< Read Only */ + +typedef __IO uint32_t vu32; +typedef __IO uint16_t vu16; +typedef __IO uint8_t vu8; + +typedef __I uint32_t vuc32; /*!< Read Only */ +typedef __I uint16_t vuc16; /*!< Read Only */ +typedef __I uint8_t vuc8; /*!< Read Only */ + +typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; + +typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; +#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE)) + +typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus; + +/** + * @} + */ + +/** @addtogroup Peripheral_registers_structures + * @{ + */ + +/** + * @brief Analog to Digital Converter + */ + +typedef struct +{ + __IO uint32_t SR; /*!< ADC status register, Address offset: 0x00 */ + __IO uint32_t CR1; /*!< ADC control register 1, Address offset: 0x04 */ + __IO uint32_t CR2; /*!< ADC control register 2, Address offset: 0x08 */ + __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x0C */ + __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x10 */ + __IO uint32_t JOFR1; /*!< ADC injected channel data offset register 1, Address offset: 0x14 */ + __IO uint32_t JOFR2; /*!< ADC injected channel data offset register 2, Address offset: 0x18 */ + __IO uint32_t JOFR3; /*!< ADC injected channel data offset register 3, Address offset: 0x1C */ + __IO uint32_t JOFR4; /*!< ADC injected channel data offset register 4, Address offset: 0x20 */ + __IO uint32_t HTR; /*!< ADC watchdog higher threshold register, Address offset: 0x24 */ + __IO uint32_t LTR; /*!< ADC watchdog lower threshold register, Address offset: 0x28 */ + __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x2C */ + __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x30 */ + __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x34 */ + __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x38*/ + __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x3C */ + __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x40 */ + __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x44 */ + __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x48 */ + __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x4C */ +} ADC_TypeDef; + +typedef struct +{ + __IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1 base address + 0x300 */ + __IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1 base address + 0x304 */ + __IO uint32_t CDR; /*!< ADC common regular data register for dual + AND triple modes, Address offset: ADC1 base address + 0x308 */ +} ADC_Common_TypeDef; + + +/** + * @brief Controller Area Network TxMailBox + */ + +typedef struct +{ + __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */ + __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */ + __IO uint32_t TDLR; /*!< CAN mailbox data low register */ + __IO uint32_t TDHR; /*!< CAN mailbox data high register */ +} CAN_TxMailBox_TypeDef; + +/** + * @brief Controller Area Network FIFOMailBox + */ + +typedef struct +{ + __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */ + __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */ + __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */ + __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */ +} CAN_FIFOMailBox_TypeDef; + +/** + * @brief Controller Area Network FilterRegister + */ + +typedef struct +{ + __IO uint32_t FR1; /*!< CAN Filter bank register 1 */ + __IO uint32_t FR2; /*!< CAN Filter bank register 1 */ +} CAN_FilterRegister_TypeDef; + +/** + * @brief Controller Area Network + */ + +typedef struct +{ + __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */ + __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */ + __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */ + __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */ + __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */ + __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */ + __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */ + __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */ + uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */ + CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */ + CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */ + uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */ + __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */ + __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */ + uint32_t RESERVED2; /*!< Reserved, 0x208 */ + __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */ + uint32_t RESERVED3; /*!< Reserved, 0x210 */ + __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */ + uint32_t RESERVED4; /*!< Reserved, 0x218 */ + __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */ + uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */ + CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */ +} CAN_TypeDef; + +/** + * @brief CRC calculation unit + */ + +typedef struct +{ + __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */ + __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */ + uint8_t RESERVED0; /*!< Reserved, 0x05 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */ +} CRC_TypeDef; + +/** + * @brief Digital to Analog Converter + */ + +typedef struct +{ + __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */ + __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */ + __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */ + __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */ + __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */ + __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */ + __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */ + __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */ + __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */ + __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */ + __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */ + __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */ + __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */ + __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */ +} DAC_TypeDef; + +/** + * @brief Debug MCU + */ + +typedef struct +{ + __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */ + __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */ + __IO uint32_t APB1FZ; /*!< Debug MCU APB1 freeze register, Address offset: 0x08 */ + __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x0C */ +}DBGMCU_TypeDef; + +/** + * @brief DCMI + */ + +typedef struct +{ + __IO uint32_t CR; /*!< DCMI control register 1, Address offset: 0x00 */ + __IO uint32_t SR; /*!< DCMI status register, Address offset: 0x04 */ + __IO uint32_t RISR; /*!< DCMI raw interrupt status register, Address offset: 0x08 */ + __IO uint32_t IER; /*!< DCMI interrupt enable register, Address offset: 0x0C */ + __IO uint32_t MISR; /*!< DCMI masked interrupt status register, Address offset: 0x10 */ + __IO uint32_t ICR; /*!< DCMI interrupt clear register, Address offset: 0x14 */ + __IO uint32_t ESCR; /*!< DCMI embedded synchronization code register, Address offset: 0x18 */ + __IO uint32_t ESUR; /*!< DCMI embedded synchronization unmask register, Address offset: 0x1C */ + __IO uint32_t CWSTRTR; /*!< DCMI crop window start, Address offset: 0x20 */ + __IO uint32_t CWSIZER; /*!< DCMI crop window size, Address offset: 0x24 */ + __IO uint32_t DR; /*!< DCMI data register, Address offset: 0x28 */ +} DCMI_TypeDef; + +/** + * @brief DMA Controller + */ + +typedef struct +{ + __IO uint32_t CR; /*!< DMA stream x configuration register */ + __IO uint32_t NDTR; /*!< DMA stream x number of data register */ + __IO uint32_t PAR; /*!< DMA stream x peripheral address register */ + __IO uint32_t M0AR; /*!< DMA stream x memory 0 address register */ + __IO uint32_t M1AR; /*!< DMA stream x memory 1 address register */ + __IO uint32_t FCR; /*!< DMA stream x FIFO control register */ +} DMA_Stream_TypeDef; + +typedef struct +{ + __IO uint32_t LISR; /*!< DMA low interrupt status register, Address offset: 0x00 */ + __IO uint32_t HISR; /*!< DMA high interrupt status register, Address offset: 0x04 */ + __IO uint32_t LIFCR; /*!< DMA low interrupt flag clear register, Address offset: 0x08 */ + __IO uint32_t HIFCR; /*!< DMA high interrupt flag clear register, Address offset: 0x0C */ +} DMA_TypeDef; + +/** + * @brief Ethernet MAC + */ + +typedef struct +{ + __IO uint32_t MACCR; + __IO uint32_t MACFFR; + __IO uint32_t MACHTHR; + __IO uint32_t MACHTLR; + __IO uint32_t MACMIIAR; + __IO uint32_t MACMIIDR; + __IO uint32_t MACFCR; + __IO uint32_t MACVLANTR; /* 8 */ + uint32_t RESERVED0[2]; + __IO uint32_t MACRWUFFR; /* 11 */ + __IO uint32_t MACPMTCSR; + uint32_t RESERVED1[2]; + __IO uint32_t MACSR; /* 15 */ + __IO uint32_t MACIMR; + __IO uint32_t MACA0HR; + __IO uint32_t MACA0LR; + __IO uint32_t MACA1HR; + __IO uint32_t MACA1LR; + __IO uint32_t MACA2HR; + __IO uint32_t MACA2LR; + __IO uint32_t MACA3HR; + __IO uint32_t MACA3LR; /* 24 */ + uint32_t RESERVED2[40]; + __IO uint32_t MMCCR; /* 65 */ + __IO uint32_t MMCRIR; + __IO uint32_t MMCTIR; + __IO uint32_t MMCRIMR; + __IO uint32_t MMCTIMR; /* 69 */ + uint32_t RESERVED3[14]; + __IO uint32_t MMCTGFSCCR; /* 84 */ + __IO uint32_t MMCTGFMSCCR; + uint32_t RESERVED4[5]; + __IO uint32_t MMCTGFCR; + uint32_t RESERVED5[10]; + __IO uint32_t MMCRFCECR; + __IO uint32_t MMCRFAECR; + uint32_t RESERVED6[10]; + __IO uint32_t MMCRGUFCR; + uint32_t RESERVED7[334]; + __IO uint32_t PTPTSCR; + __IO uint32_t PTPSSIR; + __IO uint32_t PTPTSHR; + __IO uint32_t PTPTSLR; + __IO uint32_t PTPTSHUR; + __IO uint32_t PTPTSLUR; + __IO uint32_t PTPTSAR; + __IO uint32_t PTPTTHR; + __IO uint32_t PTPTTLR; + __IO uint32_t RESERVED8; + __IO uint32_t PTPTSSR; /* added for STM32F2xx */ + uint32_t RESERVED9[565]; + __IO uint32_t DMABMR; + __IO uint32_t DMATPDR; + __IO uint32_t DMARPDR; + __IO uint32_t DMARDLAR; + __IO uint32_t DMATDLAR; + __IO uint32_t DMASR; + __IO uint32_t DMAOMR; + __IO uint32_t DMAIER; + __IO uint32_t DMAMFBOCR; + __IO uint32_t DMARSWTR; /* added for STM32F2xx */ + uint32_t RESERVED10[8]; + __IO uint32_t DMACHTDR; + __IO uint32_t DMACHRDR; + __IO uint32_t DMACHTBAR; + __IO uint32_t DMACHRBAR; +} ETH_TypeDef; + +/** + * @brief External Interrupt/Event Controller + */ + +typedef struct +{ + __IO uint32_t IMR; /*!< EXTI Interrupt mask register, Address offset: 0x00 */ + __IO uint32_t EMR; /*!< EXTI Event mask register, Address offset: 0x04 */ + __IO uint32_t RTSR; /*!< EXTI Rising trigger selection register, Address offset: 0x08 */ + __IO uint32_t FTSR; /*!< EXTI Falling trigger selection register, Address offset: 0x0C */ + __IO uint32_t SWIER; /*!< EXTI Software interrupt event register, Address offset: 0x10 */ + __IO uint32_t PR; /*!< EXTI Pending register, Address offset: 0x14 */ +} EXTI_TypeDef; + +/** + * @brief FLASH Registers + */ + +typedef struct +{ + __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */ + __IO uint32_t KEYR; /*!< FLASH key register, Address offset: 0x04 */ + __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x08 */ + __IO uint32_t SR; /*!< FLASH status register, Address offset: 0x0C */ + __IO uint32_t CR; /*!< FLASH control register, Address offset: 0x10 */ + __IO uint32_t OPTCR; /*!< FLASH option control register, Address offset: 0x14 */ +} FLASH_TypeDef; + +/** + * @brief Flexible Static Memory Controller + */ + +typedef struct +{ + __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */ +} FSMC_Bank1_TypeDef; + +/** + * @brief Flexible Static Memory Controller Bank1E + */ + +typedef struct +{ + __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */ +} FSMC_Bank1E_TypeDef; + +/** + * @brief Flexible Static Memory Controller Bank2 + */ + +typedef struct +{ + __IO uint32_t PCR2; /*!< NAND Flash control register 2, Address offset: 0x60 */ + __IO uint32_t SR2; /*!< NAND Flash FIFO status and interrupt register 2, Address offset: 0x64 */ + __IO uint32_t PMEM2; /*!< NAND Flash Common memory space timing register 2, Address offset: 0x68 */ + __IO uint32_t PATT2; /*!< NAND Flash Attribute memory space timing register 2, Address offset: 0x6C */ + uint32_t RESERVED0; /*!< Reserved, 0x70 */ + __IO uint32_t ECCR2; /*!< NAND Flash ECC result registers 2, Address offset: 0x74 */ +} FSMC_Bank2_TypeDef; + +/** + * @brief Flexible Static Memory Controller Bank3 + */ + +typedef struct +{ + __IO uint32_t PCR3; /*!< NAND Flash control register 3, Address offset: 0x80 */ + __IO uint32_t SR3; /*!< NAND Flash FIFO status and interrupt register 3, Address offset: 0x84 */ + __IO uint32_t PMEM3; /*!< NAND Flash Common memory space timing register 3, Address offset: 0x88 */ + __IO uint32_t PATT3; /*!< NAND Flash Attribute memory space timing register 3, Address offset: 0x8C */ + uint32_t RESERVED0; /*!< Reserved, 0x90 */ + __IO uint32_t ECCR3; /*!< NAND Flash ECC result registers 3, Address offset: 0x94 */ +} FSMC_Bank3_TypeDef; + +/** + * @brief Flexible Static Memory Controller Bank4 + */ + +typedef struct +{ + __IO uint32_t PCR4; /*!< PC Card control register 4, Address offset: 0xA0 */ + __IO uint32_t SR4; /*!< PC Card FIFO status and interrupt register 4, Address offset: 0xA4 */ + __IO uint32_t PMEM4; /*!< PC Card Common memory space timing register 4, Address offset: 0xA8 */ + __IO uint32_t PATT4; /*!< PC Card Attribute memory space timing register 4, Address offset: 0xAC */ + __IO uint32_t PIO4; /*!< PC Card I/O space timing register 4, Address offset: 0xB0 */ +} FSMC_Bank4_TypeDef; + +/** + * @brief General Purpose I/O + */ + +typedef struct +{ + __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */ + __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */ + __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */ + __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */ + __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */ + __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */ + __IO uint16_t BSRRL; /*!< GPIO port bit set/reset low register, Address offset: 0x18 */ + __IO uint16_t BSRRH; /*!< GPIO port bit set/reset high register, Address offset: 0x1A */ + __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */ + __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x24-0x28 */ +} GPIO_TypeDef; + +/** + * @brief System configuration controller + */ + +typedef struct +{ + __IO uint32_t MEMRMP; /*!< SYSCFG memory remap register, Address offset: 0x00 */ + __IO uint32_t PMC; /*!< SYSCFG peripheral mode configuration register, Address offset: 0x04 */ + __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */ + uint32_t RESERVED[2]; /*!< Reserved, 0x18-0x1C */ + __IO uint32_t CMPCR; /*!< SYSCFG Compensation cell control register, Address offset: 0x20 */ +} SYSCFG_TypeDef; + +/** + * @brief Inter-integrated Circuit Interface + */ + +typedef struct +{ + __IO uint16_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */ + uint16_t RESERVED0; /*!< Reserved, 0x02 */ + __IO uint16_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint16_t OAR1; /*!< I2C Own address register 1, Address offset: 0x08 */ + uint16_t RESERVED2; /*!< Reserved, 0x0A */ + __IO uint16_t OAR2; /*!< I2C Own address register 2, Address offset: 0x0C */ + uint16_t RESERVED3; /*!< Reserved, 0x0E */ + __IO uint16_t DR; /*!< I2C Data register, Address offset: 0x10 */ + uint16_t RESERVED4; /*!< Reserved, 0x12 */ + __IO uint16_t SR1; /*!< I2C Status register 1, Address offset: 0x14 */ + uint16_t RESERVED5; /*!< Reserved, 0x16 */ + __IO uint16_t SR2; /*!< I2C Status register 2, Address offset: 0x18 */ + uint16_t RESERVED6; /*!< Reserved, 0x1A */ + __IO uint16_t CCR; /*!< I2C Clock control register, Address offset: 0x1C */ + uint16_t RESERVED7; /*!< Reserved, 0x1E */ + __IO uint16_t TRISE; /*!< I2C TRISE register, Address offset: 0x20 */ + uint16_t RESERVED8; /*!< Reserved, 0x22 */ +} I2C_TypeDef; + +/** + * @brief Independent WATCHDOG + */ + +typedef struct +{ + __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */ + __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */ + __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */ + __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */ +} IWDG_TypeDef; + +/** + * @brief Power Control + */ + +typedef struct +{ + __IO uint32_t CR; /*!< PWR power control register, Address offset: 0x00 */ + __IO uint32_t CSR; /*!< PWR power control/status register, Address offset: 0x04 */ +} PWR_TypeDef; + +/** + * @brief Reset and Clock Control + */ + +typedef struct +{ + __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */ + __IO uint32_t PLLCFGR; /*!< RCC PLL configuration register, Address offset: 0x04 */ + __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x08 */ + __IO uint32_t CIR; /*!< RCC clock interrupt register, Address offset: 0x0C */ + __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x10 */ + __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x14 */ + __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x18 */ + uint32_t RESERVED0; /*!< Reserved, 0x1C */ + __IO uint32_t APB1RSTR; /*!< RCC APB1 peripheral reset register, Address offset: 0x20 */ + __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x24 */ + uint32_t RESERVED1[2]; /*!< Reserved, 0x28-0x2C */ + __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clock register, Address offset: 0x30 */ + __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clock register, Address offset: 0x34 */ + __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clock register, Address offset: 0x38 */ + uint32_t RESERVED2; /*!< Reserved, 0x3C */ + __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x40 */ + __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock enable register, Address offset: 0x44 */ + uint32_t RESERVED3[2]; /*!< Reserved, 0x48-0x4C */ + __IO uint32_t AHB1LPENR; /*!< RCC AHB1 peripheral clock enable in low power mode register, Address offset: 0x50 */ + __IO uint32_t AHB2LPENR; /*!< RCC AHB2 peripheral clock enable in low power mode register, Address offset: 0x54 */ + __IO uint32_t AHB3LPENR; /*!< RCC AHB3 peripheral clock enable in low power mode register, Address offset: 0x58 */ + uint32_t RESERVED4; /*!< Reserved, 0x5C */ + __IO uint32_t APB1LPENR; /*!< RCC APB1 peripheral clock enable in low power mode register, Address offset: 0x60 */ + __IO uint32_t APB2LPENR; /*!< RCC APB2 peripheral clock enable in low power mode register, Address offset: 0x64 */ + uint32_t RESERVED5[2]; /*!< Reserved, 0x68-0x6C */ + __IO uint32_t BDCR; /*!< RCC Backup domain control register, Address offset: 0x70 */ + __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x74 */ + uint32_t RESERVED6[2]; /*!< Reserved, 0x78-0x7C */ + __IO uint32_t SSCGR; /*!< RCC spread spectrum clock generation register, Address offset: 0x80 */ + __IO uint32_t PLLI2SCFGR; /*!< RCC PLLI2S configuration register, Address offset: 0x84 */ +} RCC_TypeDef; + +/** + * @brief Real-Time Clock + */ + +typedef struct +{ + __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */ + __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */ + __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */ + __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */ + __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */ + __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */ + __IO uint32_t CALIBR; /*!< RTC calibration register, Address offset: 0x18 */ + __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */ + __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */ + __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */ + uint32_t RESERVED1; /*!< Reserved, 0x28 */ + uint32_t RESERVED2; /*!< Reserved, 0x2C */ + __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */ + __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */ + uint32_t RESERVED3; /*!< Reserved, 0x38 */ + uint32_t RESERVED4; /*!< Reserved, 0x3C */ + __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */ + uint32_t RESERVED5; /*!< Reserved, 0x44 */ + uint32_t RESERVED6; /*!< Reserved, 0x48 */ + uint32_t RESERVED7; /*!< Reserved, 0x4C */ + __IO uint32_t BKP0R; /*!< RTC backup register 1, Address offset: 0x50 */ + __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */ + __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */ + __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */ + __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */ + __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */ + __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */ + __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */ + __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */ + __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */ + __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */ + __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */ + __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */ + __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */ + __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */ + __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */ + __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */ + __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */ + __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */ + __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */ +} RTC_TypeDef; + +/** + * @brief SD host Interface + */ + +typedef struct +{ + __IO uint32_t POWER; /*!< SDIO power control register, Address offset: 0x00 */ + __IO uint32_t CLKCR; /*!< SDI clock control register, Address offset: 0x04 */ + __IO uint32_t ARG; /*!< SDIO argument register, Address offset: 0x08 */ + __IO uint32_t CMD; /*!< SDIO command register, Address offset: 0x0C */ + __I uint32_t RESPCMD; /*!< SDIO command response register, Address offset: 0x10 */ + __I uint32_t RESP1; /*!< SDIO response 1 register, Address offset: 0x14 */ + __I uint32_t RESP2; /*!< SDIO response 2 register, Address offset: 0x18 */ + __I uint32_t RESP3; /*!< SDIO response 3 register, Address offset: 0x1C */ + __I uint32_t RESP4; /*!< SDIO response 4 register, Address offset: 0x20 */ + __IO uint32_t DTIMER; /*!< SDIO data timer register, Address offset: 0x24 */ + __IO uint32_t DLEN; /*!< SDIO data length register, Address offset: 0x28 */ + __IO uint32_t DCTRL; /*!< SDIO data control register, Address offset: 0x2C */ + __I uint32_t DCOUNT; /*!< SDIO data counter register, Address offset: 0x30 */ + __I uint32_t STA; /*!< SDIO status register, Address offset: 0x34 */ + __IO uint32_t ICR; /*!< SDIO interrupt clear register, Address offset: 0x38 */ + __IO uint32_t MASK; /*!< SDIO mask register, Address offset: 0x3C */ + uint32_t RESERVED0[2]; /*!< Reserved, 0x40-0x44 */ + __I uint32_t FIFOCNT; /*!< SDIO FIFO counter register, Address offset: 0x48 */ + uint32_t RESERVED1[13]; /*!< Reserved, 0x4C-0x7C */ + __IO uint32_t FIFO; /*!< SDIO data FIFO register, Address offset: 0x80 */ +} SDIO_TypeDef; + +/** + * @brief Serial Peripheral Interface + */ + +typedef struct +{ + __IO uint16_t CR1; /*!< SPI control register 1 (not used in I2S mode), Address offset: 0x00 */ + uint16_t RESERVED0; /*!< Reserved, 0x02 */ + __IO uint16_t CR2; /*!< SPI control register 2, Address offset: 0x04 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint16_t SR; /*!< SPI status register, Address offset: 0x08 */ + uint16_t RESERVED2; /*!< Reserved, 0x0A */ + __IO uint16_t DR; /*!< SPI data register, Address offset: 0x0C */ + uint16_t RESERVED3; /*!< Reserved, 0x0E */ + __IO uint16_t CRCPR; /*!< SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10 */ + uint16_t RESERVED4; /*!< Reserved, 0x12 */ + __IO uint16_t RXCRCR; /*!< SPI RX CRC register (not used in I2S mode), Address offset: 0x14 */ + uint16_t RESERVED5; /*!< Reserved, 0x16 */ + __IO uint16_t TXCRCR; /*!< SPI TX CRC register (not used in I2S mode), Address offset: 0x18 */ + uint16_t RESERVED6; /*!< Reserved, 0x1A */ + __IO uint16_t I2SCFGR; /*!< SPI_I2S configuration register, Address offset: 0x1C */ + uint16_t RESERVED7; /*!< Reserved, 0x1E */ + __IO uint16_t I2SPR; /*!< SPI_I2S prescaler register, Address offset: 0x20 */ + uint16_t RESERVED8; /*!< Reserved, 0x22 */ +} SPI_TypeDef; + +/** + * @brief TIM + */ + +typedef struct +{ + __IO uint16_t CR1; /*!< TIM control register 1, Address offset: 0x00 */ + uint16_t RESERVED0; /*!< Reserved, 0x02 */ + __IO uint16_t CR2; /*!< TIM control register 2, Address offset: 0x04 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint16_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */ + uint16_t RESERVED2; /*!< Reserved, 0x0A */ + __IO uint16_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */ + uint16_t RESERVED3; /*!< Reserved, 0x0E */ + __IO uint16_t SR; /*!< TIM status register, Address offset: 0x10 */ + uint16_t RESERVED4; /*!< Reserved, 0x12 */ + __IO uint16_t EGR; /*!< TIM event generation register, Address offset: 0x14 */ + uint16_t RESERVED5; /*!< Reserved, 0x16 */ + __IO uint16_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */ + uint16_t RESERVED6; /*!< Reserved, 0x1A */ + __IO uint16_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */ + uint16_t RESERVED7; /*!< Reserved, 0x1E */ + __IO uint16_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */ + uint16_t RESERVED8; /*!< Reserved, 0x22 */ + __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */ + __IO uint16_t PSC; /*!< TIM prescaler, Address offset: 0x28 */ + uint16_t RESERVED9; /*!< Reserved, 0x2A */ + __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */ + __IO uint16_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */ + uint16_t RESERVED10; /*!< Reserved, 0x32 */ + __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */ + __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */ + __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */ + __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */ + __IO uint16_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */ + uint16_t RESERVED11; /*!< Reserved, 0x46 */ + __IO uint16_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */ + uint16_t RESERVED12; /*!< Reserved, 0x4A */ + __IO uint16_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */ + uint16_t RESERVED13; /*!< Reserved, 0x4E */ + __IO uint16_t OR; /*!< TIM option register, Address offset: 0x50 */ + uint16_t RESERVED14; /*!< Reserved, 0x52 */ +} TIM_TypeDef; + +/** + * @brief Universal Synchronous Asynchronous Receiver Transmitter + */ + +typedef struct +{ + __IO uint16_t SR; /*!< USART Status register, Address offset: 0x00 */ + uint16_t RESERVED0; /*!< Reserved, 0x02 */ + __IO uint16_t DR; /*!< USART Data register, Address offset: 0x04 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint16_t BRR; /*!< USART Baud rate register, Address offset: 0x08 */ + uint16_t RESERVED2; /*!< Reserved, 0x0A */ + __IO uint16_t CR1; /*!< USART Control register 1, Address offset: 0x0C */ + uint16_t RESERVED3; /*!< Reserved, 0x0E */ + __IO uint16_t CR2; /*!< USART Control register 2, Address offset: 0x10 */ + uint16_t RESERVED4; /*!< Reserved, 0x12 */ + __IO uint16_t CR3; /*!< USART Control register 3, Address offset: 0x14 */ + uint16_t RESERVED5; /*!< Reserved, 0x16 */ + __IO uint16_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x18 */ + uint16_t RESERVED6; /*!< Reserved, 0x1A */ +} USART_TypeDef; + +/** + * @brief Window WATCHDOG + */ + +typedef struct +{ + __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */ + __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */ + __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */ +} WWDG_TypeDef; + +/** + * @brief Crypto Processor + */ + +typedef struct +{ + __IO uint32_t CR; /*!< CRYP control register, Address offset: 0x00 */ + __IO uint32_t SR; /*!< CRYP status register, Address offset: 0x04 */ + __IO uint32_t DR; /*!< CRYP data input register, Address offset: 0x08 */ + __IO uint32_t DOUT; /*!< CRYP data output register, Address offset: 0x0C */ + __IO uint32_t DMACR; /*!< CRYP DMA control register, Address offset: 0x10 */ + __IO uint32_t IMSCR; /*!< CRYP interrupt mask set/clear register, Address offset: 0x14 */ + __IO uint32_t RISR; /*!< CRYP raw interrupt status register, Address offset: 0x18 */ + __IO uint32_t MISR; /*!< CRYP masked interrupt status register, Address offset: 0x1C */ + __IO uint32_t K0LR; /*!< CRYP key left register 0, Address offset: 0x20 */ + __IO uint32_t K0RR; /*!< CRYP key right register 0, Address offset: 0x24 */ + __IO uint32_t K1LR; /*!< CRYP key left register 1, Address offset: 0x28 */ + __IO uint32_t K1RR; /*!< CRYP key right register 1, Address offset: 0x2C */ + __IO uint32_t K2LR; /*!< CRYP key left register 2, Address offset: 0x30 */ + __IO uint32_t K2RR; /*!< CRYP key right register 2, Address offset: 0x34 */ + __IO uint32_t K3LR; /*!< CRYP key left register 3, Address offset: 0x38 */ + __IO uint32_t K3RR; /*!< CRYP key right register 3, Address offset: 0x3C */ + __IO uint32_t IV0LR; /*!< CRYP initialization vector left-word register 0, Address offset: 0x40 */ + __IO uint32_t IV0RR; /*!< CRYP initialization vector right-word register 0, Address offset: 0x44 */ + __IO uint32_t IV1LR; /*!< CRYP initialization vector left-word register 1, Address offset: 0x48 */ + __IO uint32_t IV1RR; /*!< CRYP initialization vector right-word register 1, Address offset: 0x4C */ +} CRYP_TypeDef; + +/** + * @brief HASH + */ + +typedef struct +{ + __IO uint32_t CR; /*!< HASH control register, Address offset: 0x00 */ + __IO uint32_t DIN; /*!< HASH data input register, Address offset: 0x04 */ + __IO uint32_t STR; /*!< HASH start register, Address offset: 0x08 */ + __IO uint32_t HR[5]; /*!< HASH digest registers, Address offset: 0x0C-0x1C */ + __IO uint32_t IMR; /*!< HASH interrupt enable register, Address offset: 0x20 */ + __IO uint32_t SR; /*!< HASH status register, Address offset: 0x24 */ + uint32_t RESERVED[52]; /*!< Reserved, 0x28-0xF4 */ + __IO uint32_t CSR[51]; /*!< HASH context swap registers, Address offset: 0x0F8-0x1C0 */ +} HASH_TypeDef; + +/** + * @brief HASH + */ + +typedef struct +{ + __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */ + __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */ + __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */ +} RNG_TypeDef; + +/** + * @brief USB OTG FS + */ +typedef struct +{ + __IO uint32_t GOTGCTL; + __IO uint32_t GOTGINT; + __IO uint32_t GAHBCFG; + __IO uint32_t GUSBCFG; + __IO uint32_t GRSTCTL; + __IO uint32_t GINTSTS; + __IO uint32_t GINTMSK; + __IO uint32_t GRXSTSR; + __IO uint32_t GRXSTSP; + __IO uint32_t GRXFSIZ; + union { + __IO uint32_t HNPTXFSIZ; + __IO uint32_t DIEPTXF0; + }; + __IO uint32_t HNPTXSTS; + __IO uint32_t GI2CCTL; + uint32_t RESERVED0; + __IO uint32_t GCCFG; + __IO uint32_t CID; + uint32_t RESERVED1[48]; + __IO uint32_t HPTXFSIZ; + __IO uint32_t DIEPTXF1; + __IO uint32_t DIEPTXF2; + __IO uint32_t DIEPTXF3; + __IO uint32_t DIEPTXF4; + __IO uint32_t DIEPTXF5; + __IO uint32_t DIEPTXF6; + __IO uint32_t DIEPTXF7; + __IO uint32_t DIEPTXF8; + __IO uint32_t DIEPTXF9; + __IO uint32_t DIEPTXF10; + __IO uint32_t DIEPTXF11; + __IO uint32_t DIEPTXF12; + __IO uint32_t DIEPTXF13; + __IO uint32_t DIEPTXF14; + __IO uint32_t DIEPTXF15; + uint32_t RESERVED2[176]; + __IO uint32_t HCFG; + __IO uint32_t HFIR; + __IO uint32_t HFNUM; + uint32_t RESERVED3; + __IO uint32_t HPTXSTS; + __IO uint32_t HAINT; + __IO uint32_t HAINTMSK; + uint32_t RESERVED4[9]; + __IO uint32_t HPRT; + uint32_t RESERVED5[47]; + __IO uint32_t HCCHAR0; + uint32_t RESERVED6; + __IO uint32_t HCINT0; + __IO uint32_t HCINTMSK0; + __IO uint32_t HCTSIZ0; + uint32_t RESERVED7[3]; + __IO uint32_t HCCHAR1; + uint32_t RESERVED8; + __IO uint32_t HCINT1; + __IO uint32_t HCINTMSK1; + __IO uint32_t HCTSIZ1; + uint32_t RESERVED9[3]; + __IO uint32_t HCCHAR2; + uint32_t RESERVED10; + __IO uint32_t HCINT2; + __IO uint32_t HCINTMSK2; + __IO uint32_t HCTSIZ2; + uint32_t RESERVED11[3]; + __IO uint32_t HCCHR3; + uint32_t RESERVED12; + __IO uint32_t HCINT3; + __IO uint32_t HCINTMSK3; + __IO uint32_t HCTSIZ3; + uint32_t RESERVED13[3]; + __IO uint32_t HCCHR4; + uint32_t RESERVED14; + __IO uint32_t HCINT4; + __IO uint32_t HCINTMSK4; + __IO uint32_t HCTSIZ4; + uint32_t RESERVED15[3]; + __IO uint32_t HCCHR5; + uint32_t RESERVED16; + __IO uint32_t HCINT5; + __IO uint32_t HCINTMSK5; + __IO uint32_t HCTSIZ5; + uint32_t RESERVED17[3]; + __IO uint32_t HCCHR6; + uint32_t RESERVED18; + __IO uint32_t HCINT6; + __IO uint32_t HCINTMSK6; + __IO uint32_t HCTSIZ6; + uint32_t RESERVED19[3]; + __IO uint32_t HCCHR7; + uint32_t RESERVED20; + __IO uint32_t HCINT7; + __IO uint32_t HCINTMSK7; + __IO uint32_t HCTSIZ7; + uint32_t RESERVED21[3]; + __IO uint32_t HCCHR8; + uint32_t RESERVED22; + __IO uint32_t HCINT8; + __IO uint32_t HCINTMSK8; + __IO uint32_t HCTSIZ8; + uint32_t RESERVED23[3]; + __IO uint32_t HCCHR9; + uint32_t RESERVED24; + __IO uint32_t HCINT9; + __IO uint32_t HCINTMSK9; + __IO uint32_t HCTSIZ9; + uint32_t RESERVED25[3]; + __IO uint32_t HCCHR10; + uint32_t RESERVED26; + __IO uint32_t HCINT10; + __IO uint32_t HCINTMSK10; + __IO uint32_t HCTSIZ10; + uint32_t RESERVED27[3]; + __IO uint32_t HCCHR11; + uint32_t RESERVED28; + __IO uint32_t HCINT11; + __IO uint32_t HCINTMSK11; + __IO uint32_t HCTSIZ11; + uint32_t RESERVED29[3]; + __IO uint32_t HCCHR12; + uint32_t RESERVED30; + __IO uint32_t HCINT12; + __IO uint32_t HCINTMSK12; + __IO uint32_t HCTSIZ12; + uint32_t RESERVED31[3]; + __IO uint32_t HCCHR13; + uint32_t RESERVED32; + __IO uint32_t HCINT13; + __IO uint32_t HCINTMSK13; + __IO uint32_t HCTSIZ13; + uint32_t RESERVED33[3]; + __IO uint32_t HCCHR14; + uint32_t RESERVED34; + __IO uint32_t HCINT14; + __IO uint32_t HCINTMSK14; + __IO uint32_t HCTSIZ14; + uint32_t RESERVED35[3]; + __IO uint32_t HCCHR15; + uint32_t RESERVED36; + __IO uint32_t HCINT15; + __IO uint32_t HCINTMSK15; + __IO uint32_t HCTSIZ15; + uint32_t RESERVED37[3]; + uint32_t RESERVED38[64]; + __IO uint32_t DCFG; + __IO uint32_t DCTL; + __IO uint32_t DSTS; + uint32_t RESERVED39; + __IO uint32_t DIEPMSK; + __IO uint32_t DOEPMSK; + __IO uint32_t DAINT; + __IO uint32_t DAINTMSK; + uint32_t RESERVED40[2]; + __IO uint32_t DVBUSDIS; + __IO uint32_t DVBUSPULSE; + uint32_t RESERVED41; + __IO uint32_t DIEPEMPMSK; + uint32_t RESERVED42[50]; + __IO uint32_t DIEPCTL0; + uint32_t RESERVED43; + __IO uint32_t DIEPINT0; + uint32_t RESERVED44; + __IO uint32_t DIEPTSIZ0; + uint32_t RESERVED45; + __IO uint32_t DTXFSTS0; + uint32_t RESERVED46; + __IO uint32_t DIEPCTL1; + uint32_t RESERVED47; + __IO uint32_t DIEPINT1; + uint32_t RESERVED48; + __IO uint32_t DIEPTSIZ1; + uint32_t RESERVED49; + __IO uint32_t DTXFSTS1; + uint32_t RESERVED50; + __IO uint32_t DIEPCTL2; + uint32_t RESERVED51; + __IO uint32_t DIEPINT2; + uint32_t RESERVED52; + __IO uint32_t DIEPTSIZ2; + uint32_t RESERVED53; + __IO uint32_t DTXFSTS2; + uint32_t RESERVED54; + __IO uint32_t DIEPCTL3; + uint32_t RESERVED55; + __IO uint32_t DIEPINT3; + uint32_t RESERVED56; + __IO uint32_t DIEPTSIZ3; + uint32_t RESERVED57; + __IO uint32_t DTXFSTS3; + uint32_t RESERVED58; + __IO uint32_t DIEPCTL4; + uint32_t RESERVED59; + __IO uint32_t DIEPINT4; + uint32_t RESERVED60; + __IO uint32_t DIEPTSIZ4; + uint32_t RESERVED61; + __IO uint32_t DTXFSTS4; + uint32_t RESERVED62; + __IO uint32_t DIEPCTL5; + uint32_t RESERVED63; + __IO uint32_t DIEPINT5; + uint32_t RESERVED64; + __IO uint32_t DIEPTSIZ5; + uint32_t RESERVED65[3]; + __IO uint32_t DIEPCTL6; + uint32_t RESERVED66; + __IO uint32_t DIEPINT6; + uint32_t RESERVED67; + __IO uint32_t DIEPTSIZ6; + uint32_t RESERVED68[3]; + __IO uint32_t DIEPCTL7; + uint32_t RESERVED69; + __IO uint32_t DIEPINT7; + uint32_t RESERVED70; + __IO uint32_t DIEPTSIZ7; + uint32_t RESERVED71[3]; + __IO uint32_t DIEPCTL8; + uint32_t RESERVED72; + __IO uint32_t DIEPINT8; + uint32_t RESERVED73; + __IO uint32_t DIEPTSIZ8; + uint32_t RESERVED74[3]; + __IO uint32_t DIEPCTL9; + uint32_t RESERVED75; + __IO uint32_t DIEPINT9; + uint32_t RESERVED76; + __IO uint32_t DIEPTSIZ9; + uint32_t RESERVED77[3]; + __IO uint32_t DIEPCTL10; + uint32_t RESERVED78; + __IO uint32_t DIEPINT10; + uint32_t RESERVED79; + __IO uint32_t DIEPTSIZ10; + uint32_t RESERVED80[3]; + __IO uint32_t DIEPCTL11; + uint32_t RESERVED81; + __IO uint32_t DIEPINT11; + uint32_t RESERVED82; + __IO uint32_t DIEPTSIZ11; + uint32_t RESERVED83[3]; + __IO uint32_t DIEPCTL12; + uint32_t RESERVED84; + __IO uint32_t DIEPINT12; + uint32_t RESERVED85; + __IO uint32_t DIEPTSIZ86; + uint32_t RESERVED86[3]; + __IO uint32_t DIEPCTL13; + uint32_t RESERVED87; + __IO uint32_t DIEPINT13; + uint32_t RESERVED88; + __IO uint32_t DIEPTSIZ13; + uint32_t RESERVED89[3]; + __IO uint32_t DIEPCTL14; + uint32_t RESERVED90; + __IO uint32_t DIEPINT14; + uint32_t RESERVED91; + __IO uint32_t DIEPTSIZ14; + uint32_t RESERVED92[3]; + __IO uint32_t DIEPCTL15; + uint32_t RESERVED93; + __IO uint32_t DIEPINT15; + uint32_t RESERVED94; + __IO uint32_t DIEPTSIZ15; + uint32_t RESERVED95[3]; + __IO uint32_t DOEPCTL0; + uint32_t RESERVED96; + __IO uint32_t DOEPINT0; + uint32_t RESERVED97; + __IO uint32_t DOEPTSIZ0; + uint32_t RESERVED98[3]; + __IO uint32_t DOEPCTL1; + uint32_t RESERVED99; + __IO uint32_t DOEPINT1; + uint32_t RESERVED100; + __IO uint32_t DOEPTSIZ1; + uint32_t RESERVED101[3]; + __IO uint32_t DOEPCTL2; + uint32_t RESERVED102; + __IO uint32_t DOEPINT2; + uint32_t RESERVED103; + __IO uint32_t DOEPTSIZ2; + uint32_t RESERVED104[3]; + __IO uint32_t DOEPCTL3; + uint32_t RESERVED105; + __IO uint32_t DOEPINT3; + uint32_t RESERVED106; + __IO uint32_t DOEPTSIZ3; + uint32_t RESERVED107[3]; + __IO uint32_t DOEPCTL4; + uint32_t RESERVED108; + __IO uint32_t DOEPINT4; + uint32_t RESERVED109; + __IO uint32_t DOEPTSIZ4; + uint32_t RESERVED110[3]; + __IO uint32_t DOEPCTL5; + uint32_t RESERVED111; + __IO uint32_t DOEPINT5; + uint32_t RESERVED112; + __IO uint32_t DOEPTSIZ5; + uint32_t RESERVED113[3]; + __IO uint32_t DOEPCTL6; + uint32_t RESERVED114; + __IO uint32_t DOEPINT6; + uint32_t RESERVED115; + __IO uint32_t DOEPTSIZ6; + uint32_t RESERVED116[3]; + __IO uint32_t DOEPCTL7; + uint32_t RESERVED117; + __IO uint32_t DOEPINT7; + uint32_t RESERVED118; + __IO uint32_t DOEPTSIZ7; + uint32_t RESERVED119[3]; + __IO uint32_t DOEPCTL8; + uint32_t RESERVED120; + __IO uint32_t DOEPINT8; + uint32_t RESERVED121; + __IO uint32_t DOEPTSIZ8; + uint32_t RESERVED122[3]; + __IO uint32_t DOEPCTL9; + uint32_t RESERVED123; + __IO uint32_t DOEPINT9; + uint32_t RESERVED124; + __IO uint32_t DOEPTSIZ9; + uint32_t RESERVED125[3]; + __IO uint32_t DOEPCTL10; + uint32_t RESERVED126; + __IO uint32_t DOEPINT10; + uint32_t RESERVED127; + __IO uint32_t DOEPTSIZ10; + uint32_t RESERVED128[3]; + __IO uint32_t DOEPCTL11; + uint32_t RESERVED129; + __IO uint32_t DOEPINT11; + uint32_t RESERVED130; + __IO uint32_t DOEPTSIZ11; + uint32_t RESERVED131[3]; + __IO uint32_t DOEPCTL12; + uint32_t RESERVED132; + __IO uint32_t DOEPINT12; + uint32_t RESERVED133; + __IO uint32_t DOEPTSIZ12; + uint32_t RESERVED134[3]; + __IO uint32_t DOEPCTL13; + uint32_t RESERVED135; + __IO uint32_t DOEPINT13; + uint32_t RESERVED136; + __IO uint32_t DOEPTSIZ13; + uint32_t RESERVED137[3]; + __IO uint32_t DOEPCTL14; + uint32_t RESERVED138; + __IO uint32_t DOEPINT14; + uint32_t RESERVED139; + __IO uint32_t DOEPTSIZ14; + uint32_t RESERVED140[3]; + __IO uint32_t DOEPCTL15; + uint32_t RESERVED141; + __IO uint32_t DOEPINT15; + uint32_t RESERVED142; + __IO uint32_t DOEPTSIZ15; + uint32_t RESERVED143[3]; + uint32_t RESERVED144[64]; + __IO uint32_t PCGCCTL; +} OTG_FS_TypeDef; + +/** + * @brief USB OTG HS + */ + +typedef struct +{ + __IO uint32_t GOTGCTL; + __IO uint32_t GOTGINT; + __IO uint32_t GAHBCFG; + __IO uint32_t GUSBCFG; + __IO uint32_t GRSTCTL; + __IO uint32_t GINTSTS; + __IO uint32_t GINTMSK; + __IO uint32_t GRXSTSR; + __IO uint32_t GRXSTSP; + __IO uint32_t GRXFSIZ; + union { + __IO uint32_t GNPTXFSIZ; + __IO uint32_t TX0FSIZ; + }; + __IO uint32_t GNPTXSTS; + __IO uint32_t GI2CCTL; + uint32_t RESERVED0; + __IO uint32_t GCCFG; + __IO uint32_t CID; + uint32_t RESERVED1[48]; + __IO uint32_t HPTXFSIZ; + __IO uint32_t DIEPTXF1; + __IO uint32_t DIEPTXF2; + __IO uint32_t DIEPTXF3; + __IO uint32_t DIEPTXF4; + __IO uint32_t DIEPTXF5; + __IO uint32_t DIEPTXF6; + __IO uint32_t DIEPTXF7; + __IO uint32_t DIEPTXF8; + __IO uint32_t DIEPTXF9; + __IO uint32_t DIEPTXF10; + __IO uint32_t DIEPTXF11; + __IO uint32_t DIEPTXF12; + __IO uint32_t DIEPTXF13; + __IO uint32_t DIEPTXF14; + __IO uint32_t DIEPTXF15; + uint32_t RESERVED2[176]; + __IO uint32_t HCFG; + __IO uint32_t HFIR; + __IO uint32_t HFNUM; + uint32_t RESERVED3; + __IO uint32_t HPTXSTS; + __IO uint32_t HAINT; + __IO uint32_t HAINTMSK; + uint32_t RESERVED4[9]; + __IO uint32_t HPRT; + uint32_t RESERVED5[47]; + __IO uint32_t HCCHAR0; + __IO uint32_t HCSPLT0; + __IO uint32_t HCINT0; + __IO uint32_t HCINTMSK0; + __IO uint32_t HCTSIZ0; + __IO uint32_t HCDMA0; + uint32_t RESERVED6[2]; + __IO uint32_t HCCHAR1; + __IO uint32_t HCSPLT1; + __IO uint32_t HCINT1; + __IO uint32_t HCINTMSK1; + __IO uint32_t HCTSIZ1; + __IO uint32_t HCDMA1; + uint32_t RESERVED7[2]; + __IO uint32_t HCCHAR2; + __IO uint32_t HCSPLT2; + __IO uint32_t HCINT2; + __IO uint32_t HCINTMSK2; + __IO uint32_t HCTSIZ2; + __IO uint32_t HCDMA2; + uint32_t RESERVED8[2]; + __IO uint32_t HCCHAR3; + __IO uint32_t HCSPLT3; + __IO uint32_t HCINT3; + __IO uint32_t HCINTMSK3; + __IO uint32_t HCTSIZ3; + __IO uint32_t HCDMA3; + uint32_t RESERVED9[2]; + __IO uint32_t HCCHAR4; + __IO uint32_t HCSPLT4; + __IO uint32_t HCINT4; + __IO uint32_t HCINTMSK4; + __IO uint32_t HCTSIZ4; + __IO uint32_t HCDMA4; + uint32_t RESERVED10[2]; + __IO uint32_t HCCHAR5; + __IO uint32_t HCSPLT5; + __IO uint32_t HCINT5; + __IO uint32_t HCINTMSK5; + __IO uint32_t HCTSIZ5; + __IO uint32_t HCDMA5; + uint32_t RESERVED11[2]; + __IO uint32_t HCCHAR6; + __IO uint32_t HCSPLT6; + __IO uint32_t HCINT6; + __IO uint32_t HCINTMSK6; + __IO uint32_t HCTSIZ6; + __IO uint32_t HCDMA6; + uint32_t RESERVED12[2]; + __IO uint32_t HCCHAR7; + __IO uint32_t HCSPLT7; + __IO uint32_t HCINT7; + __IO uint32_t HCINTMSK7; + __IO uint32_t HCTSIZ7; + __IO uint32_t HCDMA7; + uint32_t RESERVED13[2]; + __IO uint32_t HCCHAR8; + __IO uint32_t HCSPLT8; + __IO uint32_t HCINT8; + __IO uint32_t HCINTMSK8; + __IO uint32_t HCTSIZ8; + __IO uint32_t HCDMA8; + uint32_t RESERVED14[2]; + __IO uint32_t HCCHAR9; + __IO uint32_t HCSPLT9; + __IO uint32_t HCINT9; + __IO uint32_t HCINTMSK9; + __IO uint32_t HCTSIZ9; + __IO uint32_t HCDMA9; + uint32_t RESERVED15[2]; + __IO uint32_t HCCHAR10; + __IO uint32_t HCSPLT10; + __IO uint32_t HCINT10; + __IO uint32_t HCINTMSK10; + __IO uint32_t HCTSIZ10; + __IO uint32_t HCDMA10; + uint32_t RESERVED16[2]; + __IO uint32_t HCCHAR11; + __IO uint32_t HCSPLT11; + __IO uint32_t HCINT11; + __IO uint32_t HCINTMSK11; + __IO uint32_t HCTSIZ11; + __IO uint32_t HCDMA11; + uint32_t RESERVED17[2]; + __IO uint32_t HCCHAR12; + __IO uint32_t HCSPLT12; + __IO uint32_t HCINT12; + __IO uint32_t HCINTMSK12; + __IO uint32_t HCTSIZ12; + __IO uint32_t HCDMA12; + uint32_t RESERVED18[2]; + __IO uint32_t HCCHAR13; + __IO uint32_t HCSPLT13; + __IO uint32_t HCINT13; + __IO uint32_t HCINTMSK13; + __IO uint32_t HCTSIZ13; + __IO uint32_t HCDMA13; + uint32_t RESERVED19[2]; + __IO uint32_t HCCHAR14; + __IO uint32_t HCSPLT14; + __IO uint32_t HCINT14; + __IO uint32_t HCINTMSK14; + __IO uint32_t HCTSIZ14; + __IO uint32_t HCDMA14; + uint32_t RESERVED20[2]; + __IO uint32_t HCCHAR15; + __IO uint32_t HCSPLT15; + __IO uint32_t HCINT15; + __IO uint32_t HCINTMSK15; + __IO uint32_t HCTSIZ15; + __IO uint32_t HCDMA15; + uint32_t RESERVED21[2]; + uint32_t RESERVED22[64]; + __IO uint32_t DCFG; + __IO uint32_t DCTL; + __IO uint32_t DSTS; + uint32_t RESERVED23; + __IO uint32_t DIEPMSK; + __IO uint32_t DOEPMSK; + __IO uint32_t DAINT; + __IO uint32_t DAINTMSK; + uint32_t RESERVED24[2]; + __IO uint32_t DVBUSDIS; + __IO uint32_t DVBUSPULSE; + uint32_t RESERVED25; + __IO uint32_t DIEPEMPMSK; + __IO uint32_t EACHHINT; + __IO uint32_t EACHHINTMSK; + __IO uint32_t DIEPEACHMSK1; + uint32_t RESERVED26[15]; + __IO uint32_t DOEPEACHMSK1; + uint32_t RESERVED27[31]; + __IO uint32_t DIEPCTL0; + uint32_t RESERVED28; + __IO uint32_t DIEPINT0; + uint32_t RESERVED29; + __IO uint32_t DIEPTSIZ0; + __IO uint32_t DIEPDMA0; + __IO uint32_t DTXFSTS0; + uint32_t RESERVED30; + __IO uint32_t DIEPCTL1; + uint32_t RESERVED31; + __IO uint32_t DIEPINT1; + uint32_t RESERVED32; + __IO uint32_t DIEPTSIZ1; + __IO uint32_t DIEPDMA1; + __IO uint32_t DTXFSTS1; + uint32_t RESERVED33; + __IO uint32_t DIEPCTL2; + uint32_t RESERVED34; + __IO uint32_t DIEPINT2; + uint32_t RESERVED35; + __IO uint32_t DIEPTSIZ2; + __IO uint32_t DIEPDMA2; + __IO uint32_t DTXFSTS2; + uint32_t RESERVED36; + __IO uint32_t DIEPCTL3; + uint32_t RESERVED37; + __IO uint32_t DIEPINT3; + uint32_t RESERVED38; + __IO uint32_t DIEPTSIZ3; + __IO uint32_t DIEPDMA3; + __IO uint32_t DTXFSTS3; + uint32_t RESERVED39; + __IO uint32_t DIEPCTL4; + uint32_t RESERVED40; + __IO uint32_t DIEPINT4; + uint32_t RESERVED41; + __IO uint32_t DIEPTSIZ4; + __IO uint32_t DIEPDMA4; + __IO uint32_t DTXFSTS4; + uint32_t RESERVED42; + __IO uint32_t DIEPCTL5; + uint32_t RESERVED43; + __IO uint32_t DIEPINT5; + uint32_t RESERVED44; + __IO uint32_t DIEPTSIZ5; + __IO uint32_t DIEPDMA5; + __IO uint32_t DTXFSTS5; + uint32_t RESERVED45; + __IO uint32_t DIEPCTL6; + uint32_t RESERVED46; + __IO uint32_t DIEPINT6; + uint32_t RESERVED47; + __IO uint32_t DIEPTSIZ6; + __IO uint32_t DIEPDMA6; + __IO uint32_t DTXFSTS6; + uint32_t RESERVED48; + __IO uint32_t DIEPCTL7; + uint32_t RESERVED49; + __IO uint32_t DIEPINT7; + uint32_t RESERVED50; + __IO uint32_t DIEPTSIZ7; + __IO uint32_t DIEPDMA7; + __IO uint32_t DTXFSTS7; + uint32_t RESERVED51; + __IO uint32_t DIEPCTL8; + uint32_t RESERVED52; + __IO uint32_t DIEPINT8; + uint32_t RESERVED53; + __IO uint32_t DIEPTSIZ8; + __IO uint32_t DIEPDMA8; + __IO uint32_t DTXFSTS8; + uint32_t RESERVED54; + __IO uint32_t DIEPCTL9; + uint32_t RESERVED55; + __IO uint32_t DIEPINT9; + uint32_t RESERVED56; + __IO uint32_t DIEPTSIZ9; + __IO uint32_t DIEPDMA9; + __IO uint32_t DTXFSTS9; + uint32_t RESERVED57; + __IO uint32_t DIEPCTL10; + uint32_t RESERVED58; + __IO uint32_t DIEPINT10; + uint32_t RESERVED59; + __IO uint32_t DIEPTSIZ10; + __IO uint32_t DIEPDMA10; + __IO uint32_t DTXFSTS10; + uint32_t RESERVED60; + __IO uint32_t DIEPCTL11; + uint32_t RESERVED61; + __IO uint32_t DIEPINT11; + uint32_t RESERVED62; + __IO uint32_t DIEPTSIZ11; + __IO uint32_t DIEPDMA11; + __IO uint32_t DTXFSTS11; + uint32_t RESERVED63; + __IO uint32_t DIEPCTL12; + uint32_t RESERVED64; + __IO uint32_t DIEPINT12; + uint32_t RESERVED65; + __IO uint32_t DIEPTSIZ12; + __IO uint32_t DIEPDMA12; + __IO uint32_t DTXFSTS12; + uint32_t RESERVED66; + __IO uint32_t DIEPCTL13; + uint32_t RESERVED67; + __IO uint32_t DIEPINT13; + uint32_t RESERVED68; + __IO uint32_t DIEPTSIZ13; + __IO uint32_t DIEPDMA13; + __IO uint32_t DTXFSTS13; + uint32_t RESERVED69; + __IO uint32_t DIEPCTL14; + uint32_t RESERVED70; + __IO uint32_t DIEPINT14; + uint32_t RESERVED71; + __IO uint32_t DIEPTSIZ14; + __IO uint32_t DIEPDMA14; + __IO uint32_t DTXFSTS14; + uint32_t RESERVED72; + __IO uint32_t DIEPCTL15; + uint32_t RESERVED73; + __IO uint32_t DIEPINT15; + uint32_t RESERVED74; + __IO uint32_t DIEPTSIZ15; + __IO uint32_t DIEPDMA15; + __IO uint32_t DTXFSTS15; + uint32_t RESERVED75; + __IO uint32_t DOEPCTL0; + uint32_t RESERVED76; + __IO uint32_t DOEPINT0; + uint32_t RESERVED77; + __IO uint32_t DOEPTSIZ0; + __IO uint32_t DOEPDMAB0; + uint32_t RESERVED78[2]; + __IO uint32_t DOEPCTL1; + uint32_t RESERVED79; + __IO uint32_t DOEPINT1; + uint32_t RESERVED80; + __IO uint32_t DOEPTSIZ1; + __IO uint32_t DOEPDMAB1; + uint32_t RESERVED81[2]; + __IO uint32_t DOEPCTL2; + uint32_t RESERVED82; + __IO uint32_t DOEPINT2; + uint32_t RESERVED83; + __IO uint32_t DOEPTSIZ2; + __IO uint32_t DOEPDMAB2; + uint32_t RESERVED84[2]; + __IO uint32_t DOEPCTL3; + uint32_t RESERVED85; + __IO uint32_t DOEPINT3; + uint32_t RESERVED86; + __IO uint32_t DOEPTSIZ3; + __IO uint32_t DOEPDMAB3; + uint32_t RESERVED87[2]; + __IO uint32_t DOEPCTL4; + uint32_t RESERVED88; + __IO uint32_t DOEPINT4; + uint32_t RESERVED89; + __IO uint32_t DOEPTSIZ4; + __IO uint32_t DOEPDMAB4; + uint32_t RESERVED90[2]; + __IO uint32_t DOEPCTL5; + uint32_t RESERVED91; + __IO uint32_t DOEPINT5; + uint32_t RESERVED92; + __IO uint32_t DOEPTSIZ5; + __IO uint32_t DOEPDMAB5; + uint32_t RESERVED93[2]; + __IO uint32_t DOEPCTL6; + uint32_t RESERVED94; + __IO uint32_t DOEPINT6; + uint32_t RESERVED95; + __IO uint32_t DOEPTSIZ6; + __IO uint32_t DOEPDMAB6; + uint32_t RESERVED96[2]; + __IO uint32_t DOEPCTL7; + uint32_t RESERVED97; + __IO uint32_t DOEPINT7; + uint32_t RESERVED98; + __IO uint32_t DOEPTSIZ7; + __IO uint32_t DOEPDMAB7; + uint32_t RESERVED99[2]; + __IO uint32_t DOEPCTL8; + uint32_t RESERVED100; + __IO uint32_t DOEPINT8; + uint32_t RESERVED101; + __IO uint32_t DOEPTSIZ8; + __IO uint32_t DOEPDMAB8; + uint32_t RESERVED102[2]; + __IO uint32_t DOEPCTL9; + uint32_t RESERVED103; + __IO uint32_t DOEPINT9; + uint32_t RESERVED104; + __IO uint32_t DOEPTSIZ9; + __IO uint32_t DOEPDMAB9; + uint32_t RESERVED105[2]; + __IO uint32_t DOEPCTL10; + uint32_t RESERVED106; + __IO uint32_t DOEPINT10; + uint32_t RESERVED107; + __IO uint32_t DOEPTSIZ10; + __IO uint32_t DOEPDMAB10; + uint32_t RESERVED108[2]; + __IO uint32_t DOEPCTL11; + uint32_t RESERVED109; + __IO uint32_t DOEPINT11; + uint32_t RESERVED110; + __IO uint32_t DOEPTSIZ11; + __IO uint32_t DOEPDMAB11; + uint32_t RESERVED111[2]; + __IO uint32_t DOEPCTL12; + uint32_t RESERVED112; + __IO uint32_t DOEPINT12; + uint32_t RESERVED113; + __IO uint32_t DOEPTSIZ12; + __IO uint32_t DOEPDMAB12; + uint32_t RESERVED114[2]; + __IO uint32_t DOEPCTL13; + uint32_t RESERVED115; + __IO uint32_t DOEPINT13; + uint32_t RESERVED116; + __IO uint32_t DOEPTSIZ13; + __IO uint32_t DOEPDMAB13; + uint32_t RESERVED117[2]; + __IO uint32_t DOEPCTL14; + uint32_t RESERVED118; + __IO uint32_t DOEPINT14; + uint32_t RESERVED119; + __IO uint32_t DOEPTSIZ14; + __IO uint32_t DOEPDMAB14; + uint32_t RESERVED120[2]; + __IO uint32_t DOEPCTL15; + uint32_t RESERVED121; + __IO uint32_t DOEPINT15; + uint32_t RESERVED122; + __IO uint32_t DOEPTSIZ15; + __IO uint32_t DOEPDMAB15; + uint32_t RESERVED123[2]; + uint32_t RESERVED143[64]; + __IO uint32_t PCGCCTL; +} OTG_HS_TypeDef; + +/** + * @} + */ + +/** @addtogroup Peripheral_memory_map + * @{ + */ + +#define FLASH_BASE ((uint32_t)0x08000000) /*!< FLASH base address in the alias region */ +#define SRAM_BASE ((uint32_t)0x20000000) /*!< SRAM base address in the alias region */ +#define PERIPH_BASE ((uint32_t)0x40000000) /*!< Peripheral base address in the alias region */ + +#define SRAM_BB_BASE ((uint32_t)0x22000000) /*!< SRAM base address in the bit-band region */ +#define PERIPH_BB_BASE ((uint32_t)0x42000000) /*!< Peripheral base address in the bit-band region */ + +#define FSMC_R_BASE ((uint32_t)0xA0000000) /*!< FSMC registers base address */ + +/*!< Peripheral memory map */ +#define APB1PERIPH_BASE PERIPH_BASE +#define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000) +#define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000) +#define AHB2PERIPH_BASE (PERIPH_BASE + 0x10000000) + +/*!< APB1 peripherals */ +#define TIM2_BASE (APB1PERIPH_BASE + 0x0000) +#define TIM3_BASE (APB1PERIPH_BASE + 0x0400) +#define TIM4_BASE (APB1PERIPH_BASE + 0x0800) +#define TIM5_BASE (APB1PERIPH_BASE + 0x0C00) +#define TIM6_BASE (APB1PERIPH_BASE + 0x1000) +#define TIM7_BASE (APB1PERIPH_BASE + 0x1400) +#define TIM12_BASE (APB1PERIPH_BASE + 0x1800) +#define TIM13_BASE (APB1PERIPH_BASE + 0x1C00) +#define TIM14_BASE (APB1PERIPH_BASE + 0x2000) +#define RTC_BASE (APB1PERIPH_BASE + 0x2800) +#define WWDG_BASE (APB1PERIPH_BASE + 0x2C00) +#define IWDG_BASE (APB1PERIPH_BASE + 0x3000) +#define SPI2_BASE (APB1PERIPH_BASE + 0x3800) +#define SPI3_BASE (APB1PERIPH_BASE + 0x3C00) +#define USART2_BASE (APB1PERIPH_BASE + 0x4400) +#define USART3_BASE (APB1PERIPH_BASE + 0x4800) +#define UART4_BASE (APB1PERIPH_BASE + 0x4C00) +#define UART5_BASE (APB1PERIPH_BASE + 0x5000) +#define I2C1_BASE (APB1PERIPH_BASE + 0x5400) +#define I2C2_BASE (APB1PERIPH_BASE + 0x5800) +#define I2C3_BASE (APB1PERIPH_BASE + 0x5C00) +#define CAN1_BASE (APB1PERIPH_BASE + 0x6400) +#define CAN2_BASE (APB1PERIPH_BASE + 0x6800) +#define PWR_BASE (APB1PERIPH_BASE + 0x7000) +#define DAC_BASE (APB1PERIPH_BASE + 0x7400) + +/*!< APB2 peripherals */ +#define TIM1_BASE (APB2PERIPH_BASE + 0x0000) +#define TIM8_BASE (APB2PERIPH_BASE + 0x0400) +#define USART1_BASE (APB2PERIPH_BASE + 0x1000) +#define USART6_BASE (APB2PERIPH_BASE + 0x1400) +#define ADC1_BASE (APB2PERIPH_BASE + 0x2000) +#define ADC2_BASE (APB2PERIPH_BASE + 0x2100) +#define ADC3_BASE (APB2PERIPH_BASE + 0x2200) +#define ADC_BASE (APB2PERIPH_BASE + 0x2300) +#define SDIO_BASE (APB2PERIPH_BASE + 0x2C00) +#define SPI1_BASE (APB2PERIPH_BASE + 0x3000) +#define SYSCFG_BASE (APB2PERIPH_BASE + 0x3800) +#define EXTI_BASE (APB2PERIPH_BASE + 0x3C00) +#define TIM9_BASE (APB2PERIPH_BASE + 0x4000) +#define TIM10_BASE (APB2PERIPH_BASE + 0x4400) +#define TIM11_BASE (APB2PERIPH_BASE + 0x4800) + +/*!< AHB1 peripherals */ +#define GPIOA_BASE (AHB1PERIPH_BASE + 0x0000) +#define GPIOB_BASE (AHB1PERIPH_BASE + 0x0400) +#define GPIOC_BASE (AHB1PERIPH_BASE + 0x0800) +#define GPIOD_BASE (AHB1PERIPH_BASE + 0x0C00) +#define GPIOE_BASE (AHB1PERIPH_BASE + 0x1000) +#define GPIOF_BASE (AHB1PERIPH_BASE + 0x1400) +#define GPIOG_BASE (AHB1PERIPH_BASE + 0x1800) +#define GPIOH_BASE (AHB1PERIPH_BASE + 0x1C00) +#define GPIOI_BASE (AHB1PERIPH_BASE + 0x2000) +#define CRC_BASE (AHB1PERIPH_BASE + 0x3000) +#define RCC_BASE (AHB1PERIPH_BASE + 0x3800) +#define FLASH_R_BASE (AHB1PERIPH_BASE + 0x3C00) +#define BKPSRAM_BASE (AHB1PERIPH_BASE + 0x4000) +#define DMA1_BASE (AHB1PERIPH_BASE + 0x6000) +#define DMA1_Stream0_BASE (DMA1_BASE + 0x010) +#define DMA1_Stream1_BASE (DMA1_BASE + 0x028) +#define DMA1_Stream2_BASE (DMA1_BASE + 0x040) +#define DMA1_Stream3_BASE (DMA1_BASE + 0x058) +#define DMA1_Stream4_BASE (DMA1_BASE + 0x070) +#define DMA1_Stream5_BASE (DMA1_BASE + 0x088) +#define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0) +#define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8) +#define DMA2_BASE (AHB1PERIPH_BASE + 0x6400) +#define DMA2_Stream0_BASE (DMA2_BASE + 0x010) +#define DMA2_Stream1_BASE (DMA2_BASE + 0x028) +#define DMA2_Stream2_BASE (DMA2_BASE + 0x040) +#define DMA2_Stream3_BASE (DMA2_BASE + 0x058) +#define DMA2_Stream4_BASE (DMA2_BASE + 0x070) +#define DMA2_Stream5_BASE (DMA2_BASE + 0x088) +#define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0) +#define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8) +#define ETH_BASE (AHB1PERIPH_BASE + 0x8000) +#define ETH_MAC_BASE (ETH_BASE) +#define ETH_MMC_BASE (ETH_BASE + 0x0100) +#define ETH_PTP_BASE (ETH_BASE + 0x0700) +#define ETH_DMA_BASE (ETH_BASE + 0x1000) +#define OTG_HS_BASE (AHB1PERIPH_BASE + 0x20000) +#define OTG_HS_DFIFO0_BASE (OTG_HS_BASE + 0x01000) +#define OTG_HS_DFIFO1_BASE (OTG_HS_BASE + 0x02000) +#define OTG_HS_DFIFO2_BASE (OTG_HS_BASE + 0x03000) +#define OTG_HS_DFIFO3_BASE (OTG_HS_BASE + 0x04000) +#define OTG_HS_DFIFO4_BASE (OTG_HS_BASE + 0x05000) +#define OTG_HS_DFIFO5_BASE (OTG_HS_BASE + 0x06000) +#define OTG_HS_DFIFO6_BASE (OTG_HS_BASE + 0x07000) +#define OTG_HS_DFIFO7_BASE (OTG_HS_BASE + 0x08000) +#define OTG_HS_DFIFO8_BASE (OTG_HS_BASE + 0x09000) +#define OTG_HS_DFIFO9_BASE (OTG_HS_BASE + 0x0A000) +#define OTG_HS_DFIFO10_BASE (OTG_HS_BASE + 0x0B000) +#define OTG_HS_DFIFO11_BASE (OTG_HS_BASE + 0x0C000) +#define OTG_HS_DFIFO12_BASE (OTG_HS_BASE + 0x0D000) +#define OTG_HS_DFIFO13_BASE (OTG_HS_BASE + 0x0E000) +#define OTG_HS_DFIFO14_BASE (OTG_HS_BASE + 0x0F000) +#define OTG_HS_DFIFO15_BASE (OTG_HS_BASE + 0x10000) + +/*!< AHB2 peripherals */ +#define OTG_FS_BASE (AHB2PERIPH_BASE + 0x00000) +#define OTG_FS_DFIFO0_BASE (OTG_FS_BASE + 0x01000) +#define OTG_FS_DFIFO1_BASE (OTG_FS_BASE + 0x02000) +#define OTG_FS_DFIFO2_BASE (OTG_FS_BASE + 0x03000) +#define OTG_FS_DFIFO3_BASE (OTG_FS_BASE + 0x04000) +#define OTG_FS_DFIFO4_BASE (OTG_FS_BASE + 0x05000) +#define OTG_FS_DFIFO5_BASE (OTG_FS_BASE + 0x06000) +#define OTG_FS_DFIFO6_BASE (OTG_FS_BASE + 0x07000) +#define OTG_FS_DFIFO7_BASE (OTG_FS_BASE + 0x08000) +#define DCMI_BASE (AHB2PERIPH_BASE + 0x50000) +#define CRYP_BASE (AHB2PERIPH_BASE + 0x60000) +#define HASH_BASE (AHB2PERIPH_BASE + 0x60400) +#define RNG_BASE (AHB2PERIPH_BASE + 0x60800) + +/*!< FSMC Bankx registers base address */ +#define FSMC_Bank1_R_BASE (FSMC_R_BASE + 0x0000) +#define FSMC_Bank1E_R_BASE (FSMC_R_BASE + 0x0104) +#define FSMC_Bank2_R_BASE (FSMC_R_BASE + 0x0060) +#define FSMC_Bank3_R_BASE (FSMC_R_BASE + 0x0080) +#define FSMC_Bank4_R_BASE (FSMC_R_BASE + 0x00A0) + +/* Debug MCU registers base address */ +#define DBGMCU_BASE ((uint32_t )0xE0042000) + +/** + * @} + */ + +/** @addtogroup Peripheral_declaration + * @{ + */ +#define TIM2 ((TIM_TypeDef *) TIM2_BASE) +#define TIM3 ((TIM_TypeDef *) TIM3_BASE) +#define TIM4 ((TIM_TypeDef *) TIM4_BASE) +#define TIM5 ((TIM_TypeDef *) TIM5_BASE) +#define TIM6 ((TIM_TypeDef *) TIM6_BASE) +#define TIM7 ((TIM_TypeDef *) TIM7_BASE) +#define TIM12 ((TIM_TypeDef *) TIM12_BASE) +#define TIM13 ((TIM_TypeDef *) TIM13_BASE) +#define TIM14 ((TIM_TypeDef *) TIM14_BASE) +#define RTC ((RTC_TypeDef *) RTC_BASE) +#define WWDG ((WWDG_TypeDef *) WWDG_BASE) +#define IWDG ((IWDG_TypeDef *) IWDG_BASE) +#define SPI2 ((SPI_TypeDef *) SPI2_BASE) +#define SPI3 ((SPI_TypeDef *) SPI3_BASE) +#define USART2 ((USART_TypeDef *) USART2_BASE) +#define USART3 ((USART_TypeDef *) USART3_BASE) +#define UART4 ((USART_TypeDef *) UART4_BASE) +#define UART5 ((USART_TypeDef *) UART5_BASE) +#define I2C1 ((I2C_TypeDef *) I2C1_BASE) +#define I2C2 ((I2C_TypeDef *) I2C2_BASE) +#define I2C3 ((I2C_TypeDef *) I2C3_BASE) +#define CAN1 ((CAN_TypeDef *) CAN1_BASE) +#define CAN2 ((CAN_TypeDef *) CAN2_BASE) +#define PWR ((PWR_TypeDef *) PWR_BASE) +#define DAC ((DAC_TypeDef *) DAC_BASE) +#define TIM1 ((TIM_TypeDef *) TIM1_BASE) +#define TIM8 ((TIM_TypeDef *) TIM8_BASE) +#define USART1 ((USART_TypeDef *) USART1_BASE) +#define USART6 ((USART_TypeDef *) USART6_BASE) +#define ADC ((ADC_Common_TypeDef *) ADC_BASE) +#define ADC1 ((ADC_TypeDef *) ADC1_BASE) +#define ADC2 ((ADC_TypeDef *) ADC2_BASE) +#define ADC3 ((ADC_TypeDef *) ADC3_BASE) +#define SDIO ((SDIO_TypeDef *) SDIO_BASE) +#define SPI1 ((SPI_TypeDef *) SPI1_BASE) +#define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE) +#define EXTI ((EXTI_TypeDef *) EXTI_BASE) +#define TIM9 ((TIM_TypeDef *) TIM9_BASE) +#define TIM10 ((TIM_TypeDef *) TIM10_BASE) +#define TIM11 ((TIM_TypeDef *) TIM11_BASE) +#define GPIOA ((GPIO_TypeDef *) GPIOA_BASE) +#define GPIOB ((GPIO_TypeDef *) GPIOB_BASE) +#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE) +#define GPIOD ((GPIO_TypeDef *) GPIOD_BASE) +#define GPIOE ((GPIO_TypeDef *) GPIOE_BASE) +#define GPIOF ((GPIO_TypeDef *) GPIOF_BASE) +#define GPIOG ((GPIO_TypeDef *) GPIOG_BASE) +#define GPIOH ((GPIO_TypeDef *) GPIOH_BASE) +#define GPIOI ((GPIO_TypeDef *) GPIOI_BASE) +#define CRC ((CRC_TypeDef *) CRC_BASE) +#define RCC ((RCC_TypeDef *) RCC_BASE) +#define FLASH ((FLASH_TypeDef *) FLASH_R_BASE) +#define DMA1 ((DMA_TypeDef *) DMA1_BASE) +#define DMA1_Stream0 ((DMA_Stream_TypeDef *) DMA1_Stream0_BASE) +#define DMA1_Stream1 ((DMA_Stream_TypeDef *) DMA1_Stream1_BASE) +#define DMA1_Stream2 ((DMA_Stream_TypeDef *) DMA1_Stream2_BASE) +#define DMA1_Stream3 ((DMA_Stream_TypeDef *) DMA1_Stream3_BASE) +#define DMA1_Stream4 ((DMA_Stream_TypeDef *) DMA1_Stream4_BASE) +#define DMA1_Stream5 ((DMA_Stream_TypeDef *) DMA1_Stream5_BASE) +#define DMA1_Stream6 ((DMA_Stream_TypeDef *) DMA1_Stream6_BASE) +#define DMA1_Stream7 ((DMA_Stream_TypeDef *) DMA1_Stream7_BASE) +#define DMA2 ((DMA_TypeDef *) DMA2_BASE) +#define DMA2_Stream0 ((DMA_Stream_TypeDef *) DMA2_Stream0_BASE) +#define DMA2_Stream1 ((DMA_Stream_TypeDef *) DMA2_Stream1_BASE) +#define DMA2_Stream2 ((DMA_Stream_TypeDef *) DMA2_Stream2_BASE) +#define DMA2_Stream3 ((DMA_Stream_TypeDef *) DMA2_Stream3_BASE) +#define DMA2_Stream4 ((DMA_Stream_TypeDef *) DMA2_Stream4_BASE) +#define DMA2_Stream5 ((DMA_Stream_TypeDef *) DMA2_Stream5_BASE) +#define DMA2_Stream6 ((DMA_Stream_TypeDef *) DMA2_Stream6_BASE) +#define DMA2_Stream7 ((DMA_Stream_TypeDef *) DMA2_Stream7_BASE) +#define ETH ((ETH_TypeDef *) ETH_BASE) +#define OTG_HS ((OTG_HS_TypeDef *) OTG_HS_BASE) +#define OTG_HS_DFIFO0 (((U32 *) OTG_HS_DFIFO0_BASE) ) +#define OTG_HS_DFIFO1 (((U32 *) OTG_HS_DFIFO1_BASE) ) +#define OTG_HS_DFIFO2 (((U32 *) OTG_HS_DFIFO2_BASE) ) +#define OTG_HS_DFIFO3 (((U32 *) OTG_HS_DFIFO3_BASE) ) +#define OTG_HS_DFIFO4 (((U32 *) OTG_HS_DFIFO4_BASE) ) +#define OTG_HS_DFIFO5 (((U32 *) OTG_HS_DFIFO5_BASE) ) +#define OTG_HS_DFIFO6 (((U32 *) OTG_HS_DFIFO6_BASE) ) +#define OTG_HS_DFIFO7 (((U32 *) OTG_HS_DFIFO7_BASE) ) +#define OTG_HS_DFIFO8 (((U32 *) OTG_HS_DFIFO8_BASE) ) +#define OTG_HS_DFIFO9 (((U32 *) OTG_HS_DFIFO9_BASE) ) +#define OTG_HS_DFIFO10 (((U32 *) OTG_HS_DFIFO10_BASE) ) +#define OTG_HS_DFIFO11 (((U32 *) OTG_HS_DFIFO11_BASE) ) +#define OTG_HS_DFIFO12 (((U32 *) OTG_HS_DFIFO12_BASE) ) +#define OTG_HS_DFIFO13 (((U32 *) OTG_HS_DFIFO13_BASE) ) +#define OTG_HS_DFIFO14 (((U32 *) OTG_HS_DFIFO14_BASE) ) +#define OTG_HS_DFIFO15 (((U32 *) OTG_HS_DFIFO15_BASE) ) +#define OTG_FS ((OTG_FS_TypeDef *) OTG_FS_BASE) +#define OTG_FS_DFIFO0 (((U32 *) OTG_FS_DFIFO0_BASE) ) +#define OTG_FS_DFIFO1 (((U32 *) OTG_FS_DFIFO1_BASE) ) +#define OTG_FS_DFIFO2 (((U32 *) OTG_FS_DFIFO2_BASE) ) +#define OTG_FS_DFIFO3 (((U32 *) OTG_FS_DFIFO3_BASE) ) +#define OTG_FS_DFIFO4 (((U32 *) OTG_FS_DFIFO4_BASE) ) +#define OTG_FS_DFIFO5 (((U32 *) OTG_FS_DFIFO5_BASE) ) +#define OTG_FS_DFIFO6 (((U32 *) OTG_FS_DFIFO6_BASE) ) +#define OTG_FS_DFIFO7 (((U32 *) OTG_FS_DFIFO7_BASE) ) +#define DCMI ((DCMI_TypeDef *) DCMI_BASE) +#define CRYP ((CRYP_TypeDef *) CRYP_BASE) +#define HASH ((HASH_TypeDef *) HASH_BASE) +#define RNG ((RNG_TypeDef *) RNG_BASE) +#define FSMC_Bank1 ((FSMC_Bank1_TypeDef *) FSMC_Bank1_R_BASE) +#define FSMC_Bank1E ((FSMC_Bank1E_TypeDef *) FSMC_Bank1E_R_BASE) +#define FSMC_Bank2 ((FSMC_Bank2_TypeDef *) FSMC_Bank2_R_BASE) +#define FSMC_Bank3 ((FSMC_Bank3_TypeDef *) FSMC_Bank3_R_BASE) +#define FSMC_Bank4 ((FSMC_Bank4_TypeDef *) FSMC_Bank4_R_BASE) +#define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE) + +/** + * @} + */ + +/** @addtogroup Exported_constants + * @{ + */ + + /** @addtogroup Peripheral_Registers_Bits_Definition + * @{ + */ + +/******************************************************************************/ +/* Peripheral Registers_Bits_Definition */ +/******************************************************************************/ + +/******************************************************************************/ +/* */ +/* Analog to Digital Converter */ +/* */ +/******************************************************************************/ +/******************** Bit definition for ADC_SR register ********************/ +#define ADC_SR_AWD ((uint8_t)0x01) /*!
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_CONF_H +#define __STM32F2xx_CONF_H + +/* Includes ------------------------------------------------------------------*/ +/* Uncomment the line below to enable peripheral header file inclusion */ +#include "stm32f2xx_adc.h" +#include "stm32f2xx_can.h" +#include "stm32f2xx_crc.h" +#include "stm32f2xx_cryp.h" +#include "stm32f2xx_dac.h" +#include "stm32f2xx_dbgmcu.h" +#include "stm32f2xx_dcmi.h" +#include "stm32f2xx_dma.h" +#include "stm32f2xx_exti.h" +#include "stm32f2xx_flash.h" +#include "stm32f2xx_fsmc.h" +#include "stm32f2xx_hash.h" +#include "stm32f2xx_gpio.h" +#include "stm32f2xx_i2c.h" +#include "stm32f2xx_iwdg.h" +#include "stm32f2xx_pwr.h" +#include "stm32f2xx_rcc.h" +#include "stm32f2xx_rng.h" +#include "stm32f2xx_rtc.h" +#include "stm32f2xx_sdio.h" +#include "stm32f2xx_spi.h" +#include "stm32f2xx_syscfg.h" +#include "stm32f2xx_tim.h" +#include "stm32f2xx_usart.h" +#include "stm32f2xx_wwdg.h" +#include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/* If an external clock source is used, then the value of the following define + should be set to the value of the external clock source, else, if no external + clock is used, keep this define commented */ +/*#define I2S_EXTERNAL_CLOCK_VAL 12288000 */ /* Value of the external clock in Hz */ + + +/* Uncomment the line below to expanse the "assert_param" macro in the + Standard Peripheral Library drivers code */ +/* #define USE_FULL_ASSERT 1 */ + +/* Exported macro ------------------------------------------------------------*/ +#ifdef USE_FULL_ASSERT + +/** + * @brief The assert_param macro is used for function's parameters check. + * @param expr: If expr is false, it calls assert_failed function + * which reports the name of the source file and the source + * line number of the call that failed. + * If expr is true, it returns no value. + * @retval None + */ + #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) +/* Exported functions ------------------------------------------------------- */ + void assert_failed(uint8_t* file, uint32_t line); +#else + #define assert_param(expr) ((void)0) +#endif /* USE_FULL_ASSERT */ + +#endif /* __STM32F2xx_CONF_H */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/system_stm32f2xx.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/system_stm32f2xx.c new file mode 100644 index 00000000..93c89747 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/system_stm32f2xx.c @@ -0,0 +1,546 @@ +/** + ****************************************************************************** + * @file system_stm32f2xx.c + * @author MCD Application Team + * @version V1.0.0 + * @date 18-April-2011 + * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Source File. + * This file contains the system clock configuration for STM32F2xx devices, + * and is generated by the clock configuration tool + * "STM32f2xx_Clock_Configuration_V1.0.0.xls" + * + * 1. This file provides two functions and one global variable to be called from + * user application: + * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier + * and Divider factors, AHB/APBx prescalers and Flash settings), + * depending on the configuration made in the clock xls tool. + * This function is called at startup just after reset and + * before branch to main program. This call is made inside + * the "startup_stm32f2xx.s" file. + * + * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used + * by the user application to setup the SysTick + * timer or configure other parameters. + * + * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must + * be called whenever the core clock is changed + * during program execution. + * + * 2. After each device reset the HSI (16 MHz) is used as system clock source. + * Then SystemInit() function is called, in "startup_stm32f2xx.s" file, to + * configure the system clock before to branch to main program. + * + * 3. If the system clock source selected by user fails to startup, the SystemInit() + * function will do nothing and HSI still used as system clock source. User can + * add some code to deal with this issue inside the SetSysClock() function. + * + * 4. The default value of HSE crystal is set to 25MHz, refer to "HSE_VALUE" define + * in "stm32f2xx.h" file. When HSE is used as system clock source, directly or + * through PLL, and you are using different crystal you have to adapt the HSE + * value to your own configuration. + * + * 5. This file configures the system clock as follows: + *============================================================================= + *============================================================================= + * Supported STM32F2xx device revision | Rev B and Y + *----------------------------------------------------------------------------- + * System Clock source | PLL (HSE) + *----------------------------------------------------------------------------- + * SYSCLK(Hz) | 120000000 + *----------------------------------------------------------------------------- + * HCLK(Hz) | 120000000 + *----------------------------------------------------------------------------- + * AHB Prescaler | 1 + *----------------------------------------------------------------------------- + * APB1 Prescaler | 4 + *----------------------------------------------------------------------------- + * APB2 Prescaler | 2 + *----------------------------------------------------------------------------- + * HSE Frequency(Hz) | 25000000 + *----------------------------------------------------------------------------- + * PLL_M | 25 + *----------------------------------------------------------------------------- + * PLL_N | 240 + *----------------------------------------------------------------------------- + * PLL_P | 2 + *----------------------------------------------------------------------------- + * PLL_Q | 5 + *----------------------------------------------------------------------------- + * PLLI2S_N | NA + *----------------------------------------------------------------------------- + * PLLI2S_R | NA + *----------------------------------------------------------------------------- + * I2S input clock | NA + *----------------------------------------------------------------------------- + * VDD(V) | 3.3 + *----------------------------------------------------------------------------- + * Flash Latency(WS) | 3 + *----------------------------------------------------------------------------- + * Prefetch Buffer | ON + *----------------------------------------------------------------------------- + * Instruction cache | ON + *----------------------------------------------------------------------------- + * Data cache | ON + *----------------------------------------------------------------------------- + * Require 48MHz for USB OTG FS, | Enabled + * SDIO and RNG clock | + *----------------------------------------------------------------------------- + *============================================================================= + ****************************************************************************** + * @attention + * + * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS + * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE + * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY + * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING + * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE + * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. + * + *

© COPYRIGHT 2011 STMicroelectronics

+ ****************************************************************************** + */ + +/** @addtogroup CMSIS + * @{ + */ + +/** @addtogroup stm32f2xx_system + * @{ + */ + +/** @addtogroup STM32F2xx_System_Private_Includes + * @{ + */ + +#include "stm32f2xx.h" + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_TypesDefinitions + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_Defines + * @{ + */ + +/*!< Uncomment the following line if you need to use external SRAM mounted + on STM322xG_EVAL board as data memory */ +/* #define DATA_IN_ExtSRAM */ + +/*!< Uncomment the following line if you need to relocate your vector Table in + Internal SRAM. */ +/* #define VECT_TAB_SRAM */ +#define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field. + This value must be a multiple of 0x200. */ + + +/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */ +#define PLL_M 25 +#define PLL_N 240 + +/* SYSCLK = PLL_VCO / PLL_P */ +#define PLL_P 2 + +/* USB OTG FS, SDIO and RNG Clock = PLL_VCO / PLLQ */ +#define PLL_Q 5 + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_Macros + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_Variables + * @{ + */ + + uint32_t SystemCoreClock = 120000000; + + __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_FunctionPrototypes + * @{ + */ + +static void SetSysClock(void); +#ifdef DATA_IN_ExtSRAM + static void SystemInit_ExtMemCtl(void); +#endif /* DATA_IN_ExtSRAM */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_Functions + * @{ + */ + +/** + * @brief Setup the microcontroller system + * Initialize the Embedded Flash Interface, the PLL and update the + * SystemFrequency variable. + * @param None + * @retval None + */ +void SystemInit(void) +{ + /* Reset the RCC clock configuration to the default reset state ------------*/ + /* Set HSION bit */ + RCC->CR |= (uint32_t)0x00000001; + + /* Reset CFGR register */ + RCC->CFGR = 0x00000000; + + /* Reset HSEON, CSSON and PLLON bits */ + RCC->CR &= (uint32_t)0xFEF6FFFF; + + /* Reset PLLCFGR register */ + RCC->PLLCFGR = 0x24003010; + + /* Reset HSEBYP bit */ + RCC->CR &= (uint32_t)0xFFFBFFFF; + + /* Disable all interrupts */ + RCC->CIR = 0x00000000; + +#ifdef DATA_IN_ExtSRAM + SystemInit_ExtMemCtl(); +#endif /* DATA_IN_ExtSRAM */ + + /* Configure the System clock source, PLL Multiplier and Divider factors, + AHB/APBx prescalers and Flash settings ----------------------------------*/ + SetSysClock(); + +/* We disable the vector table mapping if we actively debug because we are doing this in our +** debugger script. By doing this in the debugger script, we can switch between flash or ram execution. +** For the release version, please enable the code below by undefining __DONT_INIT_VTABLE +*/ + + /* Configure the Vector Table location add offset address ------------------*/ + /* If you work ith the STlink for debug, please don't use this. */ +#ifndef __DONT_INIT_VTABLE + #ifdef VECT_TAB_SRAM + SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ + #else + SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */ + #endif +#else +#warning For release version do not use __DONT_INIT_VTABLE (see above). +#endif +} + +/** + * @brief Update SystemCoreClock variable according to Clock Register Values. + * The SystemCoreClock variable contains the core clock (HCLK), it can + * be used by the user application to setup the SysTick timer or configure + * other parameters. + * + * @note Each time the core clock (HCLK) changes, this function must be called + * to update SystemCoreClock variable value. Otherwise, any configuration + * based on this variable will be incorrect. + * + * @note - The system frequency computed by this function is not the real + * frequency in the chip. It is calculated based on the predefined + * constant and the selected clock source: + * + * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*) + * + * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**) + * + * - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**) + * or HSI_VALUE(*) multiplied/divided by the PLL factors. + * + * (*) HSI_VALUE is a constant defined in stm32f2xx.h file (default value + * 16 MHz) but the real value may vary depending on the variations + * in voltage and temperature. + * + * (**) HSE_VALUE is a constant defined in stm32f2xx.h file (default value + * 25 MHz), user has to ensure that HSE_VALUE is same as the real + * frequency of the crystal used. Otherwise, this function may + * have wrong result. + * + * - The result of this function could be not correct when using fractional + * value for HSE crystal. + * + * @param None + * @retval None + */ +void SystemCoreClockUpdate(void) +{ + uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2; + + /* Get SYSCLK source -------------------------------------------------------*/ + tmp = RCC->CFGR & RCC_CFGR_SWS; + + switch (tmp) + { + case 0x00: /* HSI used as system clock source */ + SystemCoreClock = HSI_VALUE; + break; + case 0x04: /* HSE used as system clock source */ + SystemCoreClock = HSE_VALUE; + break; + case 0x08: /* PLL used as system clock source */ + + /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N + SYSCLK = PLL_VCO / PLL_P + */ + pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> 22; + pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; + + if (pllsource != 0) + { + /* HSE used as PLL clock source */ + pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); + } + else + { + /* HSI used as PLL clock source */ + pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); + } + + pllp = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >>16) + 1 ) *2; + SystemCoreClock = pllvco/pllp; + break; + default: + SystemCoreClock = HSI_VALUE; + break; + } + /* Compute HCLK frequency --------------------------------------------------*/ + /* Get HCLK prescaler */ + tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4)]; + /* HCLK frequency */ + SystemCoreClock >>= tmp; +} + +/** + * @brief Configures the System clock source, PLL Multiplier and Divider factors, + * AHB/APBx prescalers and Flash settings + * @Note This function should be called only once the RCC clock configuration + * is reset to the default reset state (done in SystemInit() function). + * @param None + * @retval None + */ +static void SetSysClock(void) +{ +/******************************************************************************/ +/* PLL (clocked by HSE) used as System clock source */ +/******************************************************************************/ + __IO uint32_t StartUpCounter = 0, HSEStatus = 0; + + /* Enable HSE */ + RCC->CR |= ((uint32_t)RCC_CR_HSEON); + + /* Wait till HSE is ready and if Time out is reached exit */ + do + { + HSEStatus = RCC->CR & RCC_CR_HSERDY; + StartUpCounter++; + } while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT)); + + if ((RCC->CR & RCC_CR_HSERDY) != RESET) + { + HSEStatus = (uint32_t)0x01; + } + else + { + HSEStatus = (uint32_t)0x00; + } + + if (HSEStatus == (uint32_t)0x01) + { + /* HCLK = SYSCLK / 1*/ + RCC->CFGR |= RCC_CFGR_HPRE_DIV1; + + /* PCLK2 = HCLK / 2*/ + RCC->CFGR |= RCC_CFGR_PPRE2_DIV2; + + /* PCLK1 = HCLK / 4*/ + RCC->CFGR |= RCC_CFGR_PPRE1_DIV4; + + /* Configure the main PLL */ + RCC->PLLCFGR = PLL_M | (PLL_N << 6) | (((PLL_P >> 1) -1) << 16) | + (RCC_PLLCFGR_PLLSRC_HSE) | (PLL_Q << 24); + + /* Enable the main PLL */ + RCC->CR |= RCC_CR_PLLON; + + /* Wait till the main PLL is ready */ + while((RCC->CR & RCC_CR_PLLRDY) == 0) + { + } + + /* Configure Flash prefetch, Instruction cache, Data cache and wait state */ + FLASH->ACR = FLASH_ACR_PRFTEN | FLASH_ACR_ICEN | FLASH_ACR_DCEN | FLASH_ACR_LATENCY_3WS; + + /* Select the main PLL as system clock source */ + RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_SW)); + RCC->CFGR |= RCC_CFGR_SW_PLL; + + /* Wait till the main PLL is used as system clock source */ + while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL); + { + } + } + else + { /* If HSE fails to start-up, the application will have wrong clock + configuration. User can add here some code to deal with this error */ + } + +} + +/** + * @brief Setup the external memory controller. Called in startup_stm32f2xx.s + * before jump to __main + * @param None + * @retval None + */ +#ifdef DATA_IN_ExtSRAM +/** + * @brief Setup the external memory controller. + * Called in startup_stm32f2xx.s before jump to main. + * This function configures the external SRAM mounted on STM322xG_EVAL board + * This SRAM will be used as program data memory (including heap and stack). + * @param None + * @retval None + */ +void SystemInit_ExtMemCtl(void) +{ +/*-- GPIOs Configuration -----------------------------------------------------*/ +/* + +-------------------+--------------------+------------------+------------------+ + + SRAM pins assignment + + +-------------------+--------------------+------------------+------------------+ + | PD0 <-> FSMC_D2 | PE0 <-> FSMC_NBL0 | PF0 <-> FSMC_A0 | PG0 <-> FSMC_A10 | + | PD1 <-> FSMC_D3 | PE1 <-> FSMC_NBL1 | PF1 <-> FSMC_A1 | PG1 <-> FSMC_A11 | + | PD4 <-> FSMC_NOE | PE7 <-> FSMC_D4 | PF2 <-> FSMC_A2 | PG2 <-> FSMC_A12 | + | PD5 <-> FSMC_NWE | PE8 <-> FSMC_D5 | PF3 <-> FSMC_A3 | PG3 <-> FSMC_A13 | + | PD8 <-> FSMC_D13 | PE9 <-> FSMC_D6 | PF4 <-> FSMC_A4 | PG4 <-> FSMC_A14 | + | PD9 <-> FSMC_D14 | PE10 <-> FSMC_D7 | PF5 <-> FSMC_A5 | PG5 <-> FSMC_A15 | + | PD10 <-> FSMC_D15 | PE11 <-> FSMC_D8 | PF12 <-> FSMC_A6 | PG9 <-> FSMC_NE2 | + | PD11 <-> FSMC_A16 | PE12 <-> FSMC_D9 | PF13 <-> FSMC_A7 |------------------+ + | PD12 <-> FSMC_A17 | PE13 <-> FSMC_D10 | PF14 <-> FSMC_A8 | + | PD14 <-> FSMC_D0 | PE14 <-> FSMC_D11 | PF15 <-> FSMC_A9 | + | PD15 <-> FSMC_D1 | PE15 <-> FSMC_D12 |------------------+ + +-------------------+--------------------+ +*/ + /* Enable GPIOD, GPIOE, GPIOF and GPIOG interface clock */ + RCC->AHB1ENR = 0x00000078; + + /* Connect PDx pins to FSMC Alternate function */ + GPIOD->AFR[0] = 0x00cc00cc; + GPIOD->AFR[1] = 0xcc0ccccc; + /* Configure PDx pins in Alternate function mode */ + GPIOD->MODER = 0xa2aa0a0a; + /* Configure PDx pins speed to 100 MHz */ + GPIOD->OSPEEDR = 0xf3ff0f0f; + /* Configure PDx pins Output type to push-pull */ + GPIOD->OTYPER = 0x00000000; + /* No pull-up, pull-down for PDx pins */ + GPIOD->PUPDR = 0x00000000; + + /* Connect PEx pins to FSMC Alternate function */ + GPIOE->AFR[0] = 0xc00000cc; + GPIOE->AFR[1] = 0xcccccccc; + /* Configure PEx pins in Alternate function mode */ + GPIOE->MODER = 0xaaaa800a; + /* Configure PEx pins speed to 100 MHz */ + GPIOE->OSPEEDR = 0xffffc00f; + /* Configure PEx pins Output type to push-pull */ + GPIOE->OTYPER = 0x00000000; + /* No pull-up, pull-down for PEx pins */ + GPIOE->PUPDR = 0x00000000; + + /* Connect PFx pins to FSMC Alternate function */ + GPIOF->AFR[0] = 0x00cccccc; + GPIOF->AFR[1] = 0xcccc0000; + /* Configure PFx pins in Alternate function mode */ + GPIOF->MODER = 0xaa000aaa; + /* Configure PFx pins speed to 100 MHz */ + GPIOF->OSPEEDR = 0xff000fff; + /* Configure PFx pins Output type to push-pull */ + GPIOF->OTYPER = 0x00000000; + /* No pull-up, pull-down for PFx pins */ + GPIOF->PUPDR = 0x00000000; + + /* Connect PGx pins to FSMC Alternate function */ + GPIOG->AFR[0] = 0x00cccccc; + GPIOG->AFR[1] = 0x000000c0; + /* Configure PGx pins in Alternate function mode */ + GPIOG->MODER = 0x00080aaa; + /* Configure PGx pins speed to 100 MHz */ + GPIOG->OSPEEDR = 0x000c0fff; + /* Configure PGx pins Output type to push-pull */ + GPIOG->OTYPER = 0x00000000; + /* No pull-up, pull-down for PGx pins */ + GPIOG->PUPDR = 0x00000000; + +/*-- FSMC Configuration ------------------------------------------------------*/ + /* Enable the FSMC interface clock */ + RCC->AHB3ENR = 0x00000001; + + /* Configure and enable Bank1_SRAM2 */ + FSMC_Bank1->BTCR[2] = 0x00001015; + FSMC_Bank1->BTCR[3] = 0x00010400; + FSMC_Bank1E->BWTR[2] = 0x0fffffff; +/* + Bank1_SRAM2 is configured as follow: + + p.FSMC_AddressSetupTime = 0; + p.FSMC_AddressHoldTime = 0; + p.FSMC_DataSetupTime = 4; + p.FSMC_BusTurnAroundDuration = 1; + p.FSMC_CLKDivision = 0; + p.FSMC_DataLatency = 0; + p.FSMC_AccessMode = FSMC_AccessMode_A; + + FSMC_NORSRAMInitStructure.FSMC_Bank = FSMC_Bank1_NORSRAM2; + FSMC_NORSRAMInitStructure.FSMC_DataAddressMux = FSMC_DataAddressMux_Disable; + FSMC_NORSRAMInitStructure.FSMC_MemoryType = FSMC_MemoryType_PSRAM; + FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_16b; + FSMC_NORSRAMInitStructure.FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable; + FSMC_NORSRAMInitStructure.FSMC_AsynchronousWait = FSMC_AsynchronousWait_Disable; + FSMC_NORSRAMInitStructure.FSMC_WaitSignalPolarity = FSMC_WaitSignalPolarity_Low; + FSMC_NORSRAMInitStructure.FSMC_WrapMode = FSMC_WrapMode_Disable; + FSMC_NORSRAMInitStructure.FSMC_WaitSignalActive = FSMC_WaitSignalActive_BeforeWaitState; + FSMC_NORSRAMInitStructure.FSMC_WriteOperation = FSMC_WriteOperation_Enable; + FSMC_NORSRAMInitStructure.FSMC_WaitSignal = FSMC_WaitSignal_Disable; + FSMC_NORSRAMInitStructure.FSMC_ExtendedMode = FSMC_ExtendedMode_Disable; + FSMC_NORSRAMInitStructure.FSMC_WriteBurst = FSMC_WriteBurst_Disable; + FSMC_NORSRAMInitStructure.FSMC_ReadWriteTimingStruct = &p; + FSMC_NORSRAMInitStructure.FSMC_WriteTimingStruct = &p; +*/ + +} +#endif /* DATA_IN_ExtSRAM */ + + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ +/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/system_stm32f2xx.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/system_stm32f2xx.h new file mode 100644 index 00000000..6c251c34 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/lib/system_stm32f2xx.h @@ -0,0 +1,99 @@ +/** + ****************************************************************************** + * @file system_stm32f2xx.h + * @author MCD Application Team + * @version V1.0.0 + * @date 18-April-2011 + * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Header File. + ****************************************************************************** + * @attention + * + * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS + * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE + * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY + * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING + * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE + * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. + * + *

© COPYRIGHT 2011 STMicroelectronics

+ ****************************************************************************** + */ + +/** @addtogroup CMSIS + * @{ + */ + +/** @addtogroup stm32f2xx_system + * @{ + */ + +/** + * @brief Define to prevent recursive inclusion + */ +#ifndef __SYSTEM_STM32F2XX_H +#define __SYSTEM_STM32F2XX_H + +#ifdef __cplusplus + extern "C" { +#endif + +/** @addtogroup STM32F2xx_System_Includes + * @{ + */ + +/** + * @} + */ + + +/** @addtogroup STM32F2xx_System_Exported_types + * @{ + */ + +extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ + + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Constants + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Macros + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Functions + * @{ + */ + +extern void SystemInit(void); +extern void SystemCoreClockUpdate(void); +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif /*__SYSTEM_STM32F2XX_H */ + +/** + * @} + */ + +/** + * @} + */ +/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/main.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/main.c new file mode 100644 index 00000000..822ce476 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/main.c @@ -0,0 +1,138 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Boot\main.c +* \brief Bootloader application source file. +* \ingroup Boot_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "boot.h" /* bootloader generic header */ +#include "stm32f2xx.h" /* STM32 registers and drivers */ + + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +static void Init(void); + + +/************************************************************************************//** +** \brief This is the entry point for the bootloader application and is called +** by the reset interrupt vector after the C-startup routines executed. +** \return Program return code. +** +****************************************************************************************/ +int main(void) +{ + /* initialize the microcontroller */ + Init(); + /* initialize the bootloader */ + BootInit(); + + /* start the infinite program loop */ + while (1) + { + /* run the bootloader task */ + BootTask(); + } + + /* program should never get here */ + return 0; +} /*** end of main ***/ + + +/************************************************************************************//** +** \brief Initializes the microcontroller. +** \return none. +** +****************************************************************************************/ +static void Init(void) +{ + GPIO_InitTypeDef GPIO_InitStructure; +#if (BOOT_FILE_LOGGING_ENABLE > 0) && (BOOT_COM_UART_ENABLE == 0) + USART_InitTypeDef USART_InitStructure; +#endif + + + /* enable peripheral clock for LED_STAT1 (PF8) */ + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE); + /* enable peripheral clock for Tamper button (PC13) */ + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOC, ENABLE); + /* enable UART peripheral clock */ + RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART3, ENABLE); + /* enable GPIO peripheral clock for transmitter and receiver pins */ + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE); + + /* configure PF8 with as output with internal pull-up */ + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8; + GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; + GPIO_Init(GPIOF, &GPIO_InitStructure); + /* turn the LED off */ + GPIO_ResetBits(GPIOF, GPIO_Pin_8); + + /* configure the pushbutton pin as input */ + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13; + GPIO_Init(GPIOC, &GPIO_InitStructure); + + +#if (BOOT_FILE_LOGGING_ENABLE > 0) || (BOOT_COM_UART_ENABLE > 0) + /* connect the pin to the peripherals alternate function */ + GPIO_PinAFConfig(GPIOD, GPIO_PinSource8, GPIO_AF_USART3); + GPIO_PinAFConfig(GPIOD, GPIO_PinSource9, GPIO_AF_USART3); + /* configure USART Tx as alternate function */ + GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF; + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_Init(GPIOD, &GPIO_InitStructure); + /* configure USART Rx as alternate function */ + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF; + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9; + GPIO_Init(GPIOD, &GPIO_InitStructure); +#endif + +#if (BOOT_FILE_LOGGING_ENABLE > 0) && (BOOT_COM_UART_ENABLE == 0) + /* configure UART communication parameters */ + USART_InitStructure.USART_BaudRate = BOOT_COM_UART_BAUDRATE; + USART_InitStructure.USART_WordLength = USART_WordLength_8b; + USART_InitStructure.USART_StopBits = USART_StopBits_1; + USART_InitStructure.USART_Parity = USART_Parity_No; + USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None; + USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; + USART_Init(USART3, &USART_InitStructure); + /* enable UART */ + USART_Cmd(USART3, ENABLE); +#endif +} /*** end of Init ***/ + + +/*********************************** end of main.c *************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.elf b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.elf new file mode 100644 index 00000000..5301ada8 Binary files /dev/null and b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.elf differ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.map b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.map new file mode 100644 index 00000000..fcc02e06 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.map @@ -0,0 +1,4797 @@ +Archive member included because of file (symbol) + +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o (exit) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) (_global_impure_ptr) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o (__libc_init_array) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o (memset) +c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) (_exit) + +Discarded input sections + + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + .data 0x00000000 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + .ARM.extab 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\boot.o + .text 0x00000000 0x0 ..\obj\boot.o + .data 0x00000000 0x0 ..\obj\boot.o + .bss 0x00000000 0x0 ..\obj\boot.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\irq.o + .text 0x00000000 0x0 ..\obj\irq.o + .data 0x00000000 0x0 ..\obj\irq.o + .bss 0x00000000 0x0 ..\obj\irq.o + .bss.interruptNesting + 0x00000000 0x1 ..\obj\irq.o + .text.IrqInterruptDisable + 0x00000000 0x28 ..\obj\irq.o + .text.IrqInterruptRestore + 0x00000000 0x28 ..\obj\irq.o + .debug_macro 0x00000000 0x862 ..\obj\irq.o + .debug_macro 0x00000000 0x87 ..\obj\irq.o + .debug_macro 0x00000000 0x4c ..\obj\irq.o + .debug_macro 0x00000000 0x3a ..\obj\irq.o + .debug_macro 0x00000000 0x16 ..\obj\irq.o + .debug_macro 0x00000000 0x44 ..\obj\irq.o + .debug_macro 0x00000000 0x209 ..\obj\irq.o + .debug_macro 0x00000000 0x18 ..\obj\irq.o + .debug_macro 0x00000000 0xb08 ..\obj\irq.o + .debug_macro 0x00000000 0x7f1c ..\obj\irq.o + .debug_macro 0x00000000 0x44f ..\obj\irq.o + .debug_macro 0x00000000 0x3cf ..\obj\irq.o + .debug_macro 0x00000000 0x111 ..\obj\irq.o + .debug_macro 0x00000000 0x188 ..\obj\irq.o + .debug_macro 0x00000000 0xb2 ..\obj\irq.o + .debug_macro 0x00000000 0x149 ..\obj\irq.o + .debug_macro 0x00000000 0x477 ..\obj\irq.o + .debug_macro 0x00000000 0xae ..\obj\irq.o + .debug_macro 0x00000000 0x242 ..\obj\irq.o + .debug_macro 0x00000000 0x279 ..\obj\irq.o + .debug_macro 0x00000000 0xb5 ..\obj\irq.o + .debug_macro 0x00000000 0x25e ..\obj\irq.o + .debug_macro 0x00000000 0x2b3 ..\obj\irq.o + .debug_macro 0x00000000 0x64 ..\obj\irq.o + .debug_macro 0x00000000 0x88 ..\obj\irq.o + .debug_macro 0x00000000 0x536 ..\obj\irq.o + .debug_macro 0x00000000 0x40 ..\obj\irq.o + .debug_macro 0x00000000 0x3f3 ..\obj\irq.o + .debug_macro 0x00000000 0x342 ..\obj\irq.o + .debug_macro 0x00000000 0x357 ..\obj\irq.o + .debug_macro 0x00000000 0xe1 ..\obj\irq.o + .debug_macro 0x00000000 0x73b ..\obj\irq.o + .debug_macro 0x00000000 0x221 ..\obj\irq.o + .debug_macro 0x00000000 0x34 ..\obj\irq.o + .debug_macro 0x00000000 0x82 ..\obj\irq.o + .debug_macro 0x00000000 0x35 ..\obj\irq.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\led.o + .text 0x00000000 0x0 ..\obj\led.o + .data 0x00000000 0x0 ..\obj\led.o + .bss 0x00000000 0x0 ..\obj\led.o + .debug_macro 0x00000000 0x862 ..\obj\led.o + .debug_macro 0x00000000 0x87 ..\obj\led.o + .debug_macro 0x00000000 0x4c ..\obj\led.o + .debug_macro 0x00000000 0x3a ..\obj\led.o + .debug_macro 0x00000000 0x16 ..\obj\led.o + .debug_macro 0x00000000 0x44 ..\obj\led.o + .debug_macro 0x00000000 0x209 ..\obj\led.o + .debug_macro 0x00000000 0x18 ..\obj\led.o + .debug_macro 0x00000000 0xb08 ..\obj\led.o + .debug_macro 0x00000000 0x7f1c ..\obj\led.o + .debug_macro 0x00000000 0x44f ..\obj\led.o + .debug_macro 0x00000000 0x3cf ..\obj\led.o + .debug_macro 0x00000000 0x111 ..\obj\led.o + .debug_macro 0x00000000 0x188 ..\obj\led.o + .debug_macro 0x00000000 0xb2 ..\obj\led.o + .debug_macro 0x00000000 0x149 ..\obj\led.o + .debug_macro 0x00000000 0x477 ..\obj\led.o + .debug_macro 0x00000000 0xae ..\obj\led.o + .debug_macro 0x00000000 0x242 ..\obj\led.o + .debug_macro 0x00000000 0x279 ..\obj\led.o + .debug_macro 0x00000000 0xb5 ..\obj\led.o + .debug_macro 0x00000000 0x25e ..\obj\led.o + .debug_macro 0x00000000 0x2b3 ..\obj\led.o + .debug_macro 0x00000000 0x64 ..\obj\led.o + .debug_macro 0x00000000 0x88 ..\obj\led.o + .debug_macro 0x00000000 0x536 ..\obj\led.o + .debug_macro 0x00000000 0x40 ..\obj\led.o + .debug_macro 0x00000000 0x3f3 ..\obj\led.o + .debug_macro 0x00000000 0x342 ..\obj\led.o + .debug_macro 0x00000000 0x357 ..\obj\led.o + .debug_macro 0x00000000 0xe1 ..\obj\led.o + .debug_macro 0x00000000 0x73b ..\obj\led.o + .debug_macro 0x00000000 0x221 ..\obj\led.o + .debug_macro 0x00000000 0x34 ..\obj\led.o + .debug_macro 0x00000000 0x82 ..\obj\led.o + .debug_macro 0x00000000 0x35 ..\obj\led.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\misc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\misc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\misc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\misc.o + .text.NVIC_PriorityGroupConfig + 0x00000000 0x24 ..\obj\lib\spl\src\misc.o + .text.NVIC_Init + 0x00000000 0xbc ..\obj\lib\spl\src\misc.o + .text.NVIC_SetVectorTable + 0x00000000 0x2c ..\obj\lib\spl\src\misc.o + .text.NVIC_SystemLPConfig + 0x00000000 0x40 ..\obj\lib\spl\src\misc.o + .text.SysTick_CLKSourceConfig + 0x00000000 0x38 ..\obj\lib\spl\src\misc.o + .debug_info 0x00000000 0x545 ..\obj\lib\spl\src\misc.o + .debug_abbrev 0x00000000 0x14a ..\obj\lib\spl\src\misc.o + .debug_aranges + 0x00000000 0x40 ..\obj\lib\spl\src\misc.o + .debug_ranges 0x00000000 0x30 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\misc.o + .debug_macro 0x00000000 0x7c ..\obj\lib\spl\src\misc.o + .debug_line 0x00000000 0x49f ..\obj\lib\spl\src\misc.o + .debug_str 0x00000000 0x54530 ..\obj\lib\spl\src\misc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\misc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\misc.o + .debug_frame 0x00000000 0x9c ..\obj\lib\spl\src\misc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_adc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_adc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_Init + 0x00000000 0xa8 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_StructInit + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_CommonInit + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_CommonStructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_Cmd 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_AnalogWatchdogCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_AnalogWatchdogThresholdsConfig + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_AnalogWatchdogSingleChannelConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_TempSensorVrefintCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_VBATCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_RegularChannelConfig + 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_SoftwareStartConv + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetSoftwareStartConvStatus + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_EOCOnEachRegularChannelCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ContinuousModeCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DiscModeChannelCountConfig + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DiscModeCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetConversionValue + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetMultiModeConversionValue + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DMACmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_DMARequestAfterLastTransferCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_MultiModeDMARequestAfterLastTransferCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_InjectedChannelConfig + 0x00000000 0x114 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_InjectedSequencerLengthConfig + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_SetInjectedOffset + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ExternalTrigInjectedConvConfig + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ExternalTrigInjectedConvEdgeConfig + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_SoftwareStartInjectedConv + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetSoftwareStartInjectedConvCmdStatus + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_AutoInjectedConvCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_InjectedDiscModeCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetInjectedConversionValue + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ITConfig + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetFlagStatus + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ClearFlag + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_GetITStatus + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_adc.o + .text.ADC_ClearITPendingBit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_info 0x00000000 0xc40 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_abbrev 0x00000000 0x19b ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_aranges + 0x00000000 0x148 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_ranges 0x00000000 0x138 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x21b ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x3c9 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_line 0x00000000 0x7a3 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_str 0x00000000 0x54c1f ..\obj\lib\spl\src\stm32f2xx_adc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_adc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_adc.o + .debug_frame 0x00000000 0x434 ..\obj\lib\spl\src\stm32f2xx_adc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_can.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_can.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_can.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_DeInit + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_Init + 0x00000000 0x1a4 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_FilterInit + 0x00000000 0x164 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_StructInit + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_SlaveStartBank + 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_DBGFreeze + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_TTComModeCmd + 0x00000000 0x98 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_Transmit + 0x00000000 0x190 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_TransmitStatus + 0x00000000 0xd4 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_CancelTransmit + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_Receive + 0x00000000 0x170 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_FIFORelease + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_MessagePending + 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_OperatingModeRequest + 0x00000000 0xfc ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_Sleep + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_WakeUp + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetLastErrorCode + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetReceiveErrorCounter + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetLSBTransmitErrorCounter + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_ITConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetFlagStatus + 0x00000000 0xd0 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_ClearFlag + 0x00000000 0x70 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_GetITStatus + 0x00000000 0x194 ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CAN_ClearITPendingBit + 0x00000000 0xdc ..\obj\lib\spl\src\stm32f2xx_can.o + .text.CheckITStatus + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_info 0x00000000 0xba4 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_abbrev 0x00000000 0x1f8 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_aranges + 0x00000000 0xe0 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_ranges 0x00000000 0xd0 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x1e8 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_macro 0x00000000 0x3c9 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_line 0x00000000 0x7bd ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_str 0x00000000 0x54a62 ..\obj\lib\spl\src\stm32f2xx_can.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_can.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_can.o + .debug_frame 0x00000000 0x2d4 ..\obj\lib\spl\src\stm32f2xx_can.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_crc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_crc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_ResetDR + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_CalcCRC + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_CalcBlockCRC + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_GetCRC + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_SetIDRegister + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_crc.o + .text.CRC_GetIDRegister + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_info 0x00000000 0x210 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_abbrev 0x00000000 0x119 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_aranges + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_ranges 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x18c ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_line 0x00000000 0x4bb ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_str 0x00000000 0x54383 ..\obj\lib\spl\src\stm32f2xx_crc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_crc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_crc.o + .debug_frame 0x00000000 0xac ..\obj\lib\spl\src\stm32f2xx_crc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_Init + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_StructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_KeyInit + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_KeyStructInit + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_IVInit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_IVStructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_FIFOFlush + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_Cmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_DataIn + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_DataOut + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_SaveContext + 0x00000000 0x104 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_RestoreContext + 0x00000000 0x8c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_DMACmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_ITConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_GetITStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .text.CRYP_GetFlagStatus + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_info 0x00000000 0x71f ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_abbrev 0x00000000 0x195 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_aranges + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_ranges 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x1a1 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_macro 0x00000000 0x10b ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_line 0x00000000 0x5e4 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_str 0x00000000 0x5472e ..\obj\lib\spl\src\stm32f2xx_cryp.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .debug_frame 0x00000000 0x1e4 ..\obj\lib\spl\src\stm32f2xx_cryp.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .text.CRYP_AES_ECB + 0x00000000 0x44c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .text.CRYP_AES_CBC + 0x00000000 0x55c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .text.CRYP_AES_CTR + 0x00000000 0x4ec ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_info 0x00000000 0x115e ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_abbrev 0x00000000 0x1db ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_aranges + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_ranges 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_macro 0x00000000 0x10b ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_line 0x00000000 0x90c ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_str 0x00000000 0x54547 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .debug_frame 0x00000000 0x70 ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .text.CRYP_DES_ECB + 0x00000000 0x134 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .text.CRYP_DES_CBC + 0x00000000 0x180 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_info 0x00000000 0x55e ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_abbrev 0x00000000 0x163 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_aranges + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_ranges 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_macro 0x00000000 0x10b ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_line 0x00000000 0x53a ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_str 0x00000000 0x54532 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .debug_frame 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_cryp_des.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .text.CRYP_TDES_ECB + 0x00000000 0x19c ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .text.CRYP_TDES_CBC + 0x00000000 0x230 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_info 0x00000000 0x6dd ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_abbrev 0x00000000 0x163 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_aranges + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_ranges 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_macro 0x00000000 0x10b ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_line 0x00000000 0x5b3 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_str 0x00000000 0x54539 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .debug_frame 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_DeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_Init + 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_StructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_Cmd 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_SoftwareTriggerCmd + 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_DualSoftwareTriggerCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_WaveGenerationCmd + 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_SetChannel1Data + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_SetChannel2Data + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_SetDualChannelData + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_GetDataOutputValue + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_DMACmd + 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_ITConfig + 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_GetFlagStatus + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_ClearFlag + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_GetITStatus + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_dac.o + .text.DAC_ClearITPendingBit + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_info 0x00000000 0x645 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_abbrev 0x00000000 0x181 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_aranges + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_ranges 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x1c3 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_macro 0x00000000 0x182 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_line 0x00000000 0x5a9 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_str 0x00000000 0x54694 ..\obj\lib\spl\src\stm32f2xx_dac.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_dac.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_dac.o + .debug_frame 0x00000000 0x1ec ..\obj\lib\spl\src\stm32f2xx_dac.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_GetREVID + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_GetDEVID + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_Config + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_APB1PeriphConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .text.DBGMCU_APB2PeriphConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_info 0x00000000 0x1e4 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_abbrev 0x00000000 0xe3 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_aranges + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_ranges 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_macro 0x00000000 0xac ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_line 0x00000000 0x49e ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_str 0x00000000 0x543a1 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .debug_frame 0x00000000 0x94 ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_DeInit + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_Init + 0x00000000 0x7c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_StructInit + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_CROPConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_CROPCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_SetEmbeddedSynchroCodes + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_JPEGCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_Cmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_CaptureCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_ReadData + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_ITConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_GetFlagStatus + 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_ClearFlag + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_GetITStatus + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .text.DCMI_ClearITPendingBit + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_info 0x00000000 0x554 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_abbrev 0x00000000 0x18c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_aranges + 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_ranges 0x00000000 0x80 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x192 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_macro 0x00000000 0x143 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_line 0x00000000 0x58f ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_str 0x00000000 0x54611 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .debug_frame 0x00000000 0x1ac ..\obj\lib\spl\src\stm32f2xx_dcmi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_DeInit + 0x00000000 0x1a4 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_Init + 0x00000000 0xac ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_StructInit + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_Cmd 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_PeriphIncOffsetSizeConfig + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_FlowControllerConfig + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_SetCurrDataCounter + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetCurrDataCounter + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_DoubleBufferModeConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_DoubleBufferModeCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_MemoryTargetConfig + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetCurrentMemoryTarget + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetCmdStatus + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetFIFOStatus + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetFlagStatus + 0x00000000 0x78 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_ClearFlag + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_ITConfig + 0x00000000 0x74 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_GetITStatus + 0x00000000 0xb0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .text.DMA_ClearITPendingBit + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_info 0x00000000 0x741 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_abbrev 0x00000000 0x15a ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_aranges + 0x00000000 0xb0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_ranges 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x1e6 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_macro 0x00000000 0x471 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_line 0x00000000 0x62d ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_str 0x00000000 0x54996 ..\obj\lib\spl\src\stm32f2xx_dma.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_dma.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_dma.o + .debug_frame 0x00000000 0x224 ..\obj\lib\spl\src\stm32f2xx_dma.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_exti.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_exti.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_DeInit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_Init + 0x00000000 0xdc ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_StructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_GenerateSWInterrupt + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_GetFlagStatus + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_ClearFlag + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_GetITStatus + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_exti.o + .text.EXTI_ClearITPendingBit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_info 0x00000000 0x34f ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_abbrev 0x00000000 0x1aa ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_aranges + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_ranges 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_macro 0x00000000 0xa8 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_line 0x00000000 0x4f5 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_str 0x00000000 0x544b3 ..\obj\lib\spl\src\stm32f2xx_exti.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_exti.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_exti.o + .debug_frame 0x00000000 0xec ..\obj\lib\spl\src\stm32f2xx_exti.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_flash.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_flash.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_SetLatency + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_PrefetchBufferCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_InstructionCacheCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_DataCacheCmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_InstructionCacheReset + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_DataCacheReset + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_Unlock + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_Lock + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_EraseSector + 0x00000000 0xc0 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_EraseAllSectors + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ProgramDoubleWord + 0x00000000 0x70 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ProgramWord + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ProgramHalfWord + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ProgramByte + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_Unlock + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_Lock + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_WRPConfig + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_RDPConfig + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_UserConfig + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_BORConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_Launch + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_GetUser + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_GetWRP + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_GetRDP + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_OB_GetBOR + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ITConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_GetFlagStatus + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_ClearFlag + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_GetStatus + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_flash.o + .text.FLASH_WaitForLastOperation + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_info 0x00000000 0x723 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_abbrev 0x00000000 0x1b3 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_aranges + 0x00000000 0x108 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_ranges 0x00000000 0xf8 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_macro 0x00000000 0x23c ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_line 0x00000000 0x6da ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_str 0x00000000 0x546ed ..\obj\lib\spl\src\stm32f2xx_flash.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_flash.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_flash.o + .debug_frame 0x00000000 0x360 ..\obj\lib\spl\src\stm32f2xx_flash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NORSRAMDeInit + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NORSRAMInit + 0x00000000 0x134 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NORSRAMStructInit + 0x00000000 0xd4 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NORSRAMCmd + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDDeInit + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDInit + 0x00000000 0xcc ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDStructInit + 0x00000000 0x7c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDCmd + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_NANDECCCmd + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_GetECC + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_PCCARDDeInit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_PCCARDInit + 0x00000000 0xac ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_PCCARDStructInit + 0x00000000 0x84 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_PCCARDCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_ITConfig + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_GetFlagStatus + 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_ClearFlag + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_GetITStatus + 0x00000000 0x80 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .text.FSMC_ClearITPendingBit + 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_info 0x00000000 0x8fd ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_abbrev 0x00000000 0x175 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_aranges + 0x00000000 0xb0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_ranges 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x1c2 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_macro 0x00000000 0x273 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_line 0x00000000 0x6a4 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_str 0x00000000 0x549f7 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .debug_frame 0x00000000 0x220 ..\obj\lib\spl\src\stm32f2xx_fsmc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_DeInit + 0x00000000 0x120 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_StructInit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_PinLockConfig + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ReadInputDataBit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ReadInputData + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ReadOutputDataBit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ReadOutputData + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_WriteBit + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_Write + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_gpio.o + .text.GPIO_ToggleBits + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_Init + 0x00000000 0x6c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_StructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_Reset + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_SetLastWordValidBitsNbr + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_DataIn + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_GetInFIFOWordsNbr + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_GetDigest + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_StartDigest + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_SaveContext + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_RestoreContext + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_DMACmd + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_ITConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_GetFlagStatus + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_ClearFlag + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_GetITStatus + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_hash.o + .text.HASH_ClearITPendingBit + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_info 0x00000000 0x546 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_abbrev 0x00000000 0x1ce ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_aranges + 0x00000000 0xa0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_ranges 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x193 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_macro 0x00000000 0xaf ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_line 0x00000000 0x5bf ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_str 0x00000000 0x5456a ..\obj\lib\spl\src\stm32f2xx_hash.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_hash.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_hash.o + .debug_frame 0x00000000 0x1e0 ..\obj\lib\spl\src\stm32f2xx_hash.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .text.HASH_MD5 + 0x00000000 0x11c ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .text.HMAC_MD5 + 0x00000000 0x210 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_info 0x00000000 0x4fa ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_abbrev 0x00000000 0x195 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_aranges + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_ranges 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_macro 0x00000000 0xaf ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_line 0x00000000 0x5a8 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_str 0x00000000 0x54452 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .debug_frame 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_hash_md5.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .text.HASH_SHA1 + 0x00000000 0x130 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .text.HMAC_SHA1 + 0x00000000 0x228 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_info 0x00000000 0x55a ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_abbrev 0x00000000 0x195 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_aranges + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_ranges 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x198 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_macro 0x00000000 0xaf ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_line 0x00000000 0x5c7 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_str 0x00000000 0x54458 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .debug_frame 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_DeInit + 0x00000000 0x74 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_Init + 0x00000000 0x184 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_StructInit + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_Cmd 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GenerateSTART + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GenerateSTOP + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_Send7bitAddress + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_AcknowledgeConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_OwnAddress2Config + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_DualAddressCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GeneralCallCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_SoftwareResetCmd + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_StretchClockCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_FastModeDutyCycleConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_NACKPositionConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_SMBusAlertConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ARPCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_SendData + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ReceiveData + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_TransmitPEC + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_PECPositionConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_CalculatePEC + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GetPEC + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_DMACmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_DMALastTransferCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ReadRegister + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ITConfig + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_CheckEvent + 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GetLastEvent + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GetFlagStatus + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ClearFlag + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_GetITStatus + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .text.I2C_ClearITPendingBit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_info 0x00000000 0xafc ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_abbrev 0x00000000 0x169 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_aranges + 0x00000000 0x120 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_ranges 0x00000000 0x110 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x1a4 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_macro 0x00000000 0x2ad ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_line 0x00000000 0x719 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_str 0x00000000 0x54801 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .debug_frame 0x00000000 0x3b4 ..\obj\lib\spl\src\stm32f2xx_i2c.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_WriteAccessCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_SetPrescaler + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_SetReload + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_ReloadCounter + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_Enable + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .text.IWDG_GetFlagStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_info 0x00000000 0x212 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_abbrev 0x00000000 0x106 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_aranges + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_ranges 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x19e ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_macro 0x00000000 0x5e ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_line 0x00000000 0x4ad ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_str 0x00000000 0x543e6 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .debug_frame 0x00000000 0xb0 ..\obj\lib\spl\src\stm32f2xx_iwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_DeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_BackupAccessCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_PVDLevelConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_PVDCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_WakeUpPinCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_BackupRegulatorCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_FlashPowerDownCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_EnterSTOPMode + 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_EnterSTANDBYMode + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_GetFlagStatus + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .text.PWR_ClearFlag + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_info 0x00000000 0x4de ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_abbrev 0x00000000 0x184 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_aranges + 0x00000000 0x70 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_ranges 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x1ec ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_line 0x00000000 0x52d ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_str 0x00000000 0x546fd ..\obj\lib\spl\src\stm32f2xx_pwr.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .debug_frame 0x00000000 0x140 ..\obj\lib\spl\src\stm32f2xx_pwr.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_DeInit + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_HSEConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_WaitForHSEStartUp + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AdjustHSICalibrationValue + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_HSICmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_LSEConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_LSICmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PLLConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PLLCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PLLI2SConfig + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PLLI2SCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_ClockSecuritySystemCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_MCO1Config + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_MCO2Config + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_SYSCLKConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_GetSYSCLKSource + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_HCLKConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PCLK1Config + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_PCLK2Config + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_RTCCLKConfig + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_RTCCLKCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_BackupResetCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_I2SCLKConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB2PeriphClockCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB3PeriphClockCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB2PeriphClockCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB1PeriphResetCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB2PeriphResetCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB3PeriphResetCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB1PeriphResetCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB2PeriphResetCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB1PeriphClockLPModeCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB2PeriphClockLPModeCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_AHB3PeriphClockLPModeCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB1PeriphClockLPModeCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_APB2PeriphClockLPModeCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_ITConfig + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_GetFlagStatus + 0x00000000 0x74 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_ClearFlag + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_GetITStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .text.RCC_ClearITPendingBit + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rng.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rng.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_DeInit + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_Cmd 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_GetRandomNumber + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_ITConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_GetFlagStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_ClearFlag + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_GetITStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rng.o + .text.RNG_ClearITPendingBit + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_info 0x00000000 0x287 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_abbrev 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_aranges + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_ranges 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x192 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_line 0x00000000 0x4d9 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_str 0x00000000 0x543b1 ..\obj\lib\spl\src\stm32f2xx_rng.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_rng.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_rng.o + .debug_frame 0x00000000 0xec ..\obj\lib\spl\src\stm32f2xx_rng.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_DeInit + 0x00000000 0xdc ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_Init + 0x00000000 0x78 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_StructInit + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WriteProtectionCmd + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_EnterInitMode + 0x00000000 0x74 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ExitInitMode + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WaitForSynchro + 0x00000000 0x78 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_RefClockCmd + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_SetTime + 0x00000000 0x104 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TimeStructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetTime + 0x00000000 0x9c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_SetDate + 0x00000000 0x10c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_DateStructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetDate + 0x00000000 0x9c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_SetAlarm + 0x00000000 0x138 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_AlarmStructInit + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetAlarm + 0x00000000 0xd8 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_AlarmCmd + 0x00000000 0x9c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WakeUpClockConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_SetWakeUpCounter + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetWakeUpCounter + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WakeUpCmd + 0x00000000 0x94 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_DayLightSavingConfig + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetStoreOperation + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_OutputConfig + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_CoarseCalibConfig + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_CoarseCalibCmd + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_CalibOutputCmd + 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TimeStampCmd + 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetTimeStamp + 0x00000000 0x114 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TamperTriggerConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TamperCmd + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_WriteBackupRegister + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ReadBackupRegister + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TamperPinSelection + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_TimeStampPinSelection + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_OutputTypeConfig + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ITConfig + 0x00000000 0x78 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetFlagStatus + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ClearFlag + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_GetITStatus + 0x00000000 0x68 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ClearITPendingBit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_ByteToBcd2 + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .text.RTC_Bcd2ToByte + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_info 0x00000000 0xe54 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_abbrev 0x00000000 0x1b3 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_aranges + 0x00000000 0x178 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_ranges 0x00000000 0x168 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x1c4 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_macro 0x00000000 0x3ed ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_line 0x00000000 0x922 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_str 0x00000000 0x54c2d ..\obj\lib\spl\src\stm32f2xx_rtc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .debug_frame 0x00000000 0x504 ..\obj\lib\spl\src\stm32f2xx_rtc.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_DeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_Init + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_StructInit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ClockCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SetPowerState + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetPowerState + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SendCommand + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_CmdStructInit + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetCommandResponse + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetResponse + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_DataConfig + 0x00000000 0x5c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_DataStructInit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetDataCounter + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ReadData + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_WriteData + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetFIFOCount + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_StartSDIOReadWait + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_StopSDIOReadWait + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SetSDIOReadWaitMode + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SetSDIOOperation + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SendSDIOSuspendCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_CommandCompletionCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_CEATAITCmd + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_SendCEATACmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_DMACmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ITConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetFlagStatus + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ClearFlag + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_GetITStatus + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .text.SDIO_ClearITPendingBit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_info 0x00000000 0x7fd ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_abbrev 0x00000000 0x17c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_aranges + 0x00000000 0x108 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_ranges 0x00000000 0xf8 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_macro 0x00000000 0x33c ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_line 0x00000000 0x694 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_str 0x00000000 0x54cc9 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .debug_frame 0x00000000 0x344 ..\obj\lib\spl\src\stm32f2xx_sdio.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_spi.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_spi.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_DeInit + 0x00000000 0x74 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_Init + 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.I2S_Init + 0x00000000 0x1b0 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_StructInit + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.I2S_StructInit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_Cmd 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.I2S_Cmd 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_DataSizeConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_BiDirectionalLineConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_NSSInternalSoftwareConfig + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_SSOutputCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_TIModeCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_ReceiveData + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_SendData + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_CalculateCRC + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_TransmitCRC + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_GetCRC + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_GetCRCPolynomial + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_DMACmd + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_ITConfig + 0x00000000 0x60 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_GetFlagStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_ClearFlag + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_GetITStatus + 0x00000000 0x78 ..\obj\lib\spl\src\stm32f2xx_spi.o + .text.SPI_I2S_ClearITPendingBit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_info 0x00000000 0xab8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_abbrev 0x00000000 0x195 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_aranges + 0x00000000 0xd8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_ranges 0x00000000 0xc8 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x1bc ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_macro 0x00000000 0x351 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_line 0x00000000 0x675 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_str 0x00000000 0x5487f ..\obj\lib\spl\src\stm32f2xx_spi.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_spi.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_spi.o + .debug_frame 0x00000000 0x2b4 ..\obj\lib\spl\src\stm32f2xx_spi.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_DeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_MemoryRemapConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_EXTILineConfig + 0x00000000 0x7c ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_ETH_MediaInterfaceConfig + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_CompensationCellCmd + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .text.SYSCFG_GetCompensationCellStatus + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_info 0x00000000 0x274 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_abbrev 0x00000000 0x136 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_aranges + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_ranges 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x1bc ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_macro 0x00000000 0xdb ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_line 0x00000000 0x4b5 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_str 0x00000000 0x5458c ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .debug_frame 0x00000000 0xbc ..\obj\lib\spl\src\stm32f2xx_syscfg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_tim.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_tim.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_DeInit + 0x00000000 0x1bc ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_TimeBaseInit + 0x00000000 0xd4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_TimeBaseStructInit + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_PrescalerConfig + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CounterModeConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCounter + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetAutoreload + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCounter + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetPrescaler + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_UpdateDisableConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_UpdateRequestConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ARRPreloadConfig + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectOnePulseMode + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetClockDivision + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_Cmd 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1Init + 0x00000000 0xf4 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2Init + 0x00000000 0x110 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3Init + 0x00000000 0x10c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC4Init + 0x00000000 0xcc ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OCStructInit + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectOCxM + 0x00000000 0xac ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCompare1 + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCompare2 + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCompare3 + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetCompare4 + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ForcedOC1Config + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ForcedOC2Config + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ForcedOC3Config + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ForcedOC4Config + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1PreloadConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2PreloadConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3PreloadConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC4PreloadConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1FastConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2FastConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3FastConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC4FastConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearOC1Ref + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearOC2Ref + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearOC3Ref + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearOC4Ref + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1PolarityConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC1NPolarityConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2PolarityConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC2NPolarityConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3PolarityConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC3NPolarityConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_OC4PolarityConfig + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CCxCmd + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CCxNCmd + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ICInit + 0x00000000 0xa8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ICStructInit + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_PWMIConfig + 0x00000000 0xb8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCapture1 + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCapture2 + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCapture3 + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetCapture4 + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetIC1Prescaler + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetIC2Prescaler + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetIC3Prescaler + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SetIC4Prescaler + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_BDTRConfig + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_BDTRStructInit + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CtrlPWMOutputs + 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectCOM + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_CCPreloadControl + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ITConfig + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GenerateEvent + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetFlagStatus + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearFlag + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_GetITStatus + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ClearITPendingBit + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_DMAConfig + 0x00000000 0x28 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_DMACmd + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectCCDMA + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_InternalClockConfig + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ITRxExternalClockConfig + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_TIxExternalClockConfig + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ETRClockMode1Config + 0x00000000 0x50 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ETRClockMode2Config + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectInputTrigger + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectOutputTrigger + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectSlaveMode + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectMasterSlaveMode + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_ETRConfig + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_EncoderInterfaceConfig + 0x00000000 0x8c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_SelectHallSensor + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TIM_RemapConfig + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TI1_Config + 0x00000000 0x78 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TI2_Config + 0x00000000 0x8c ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TI3_Config + 0x00000000 0x84 ..\obj\lib\spl\src\stm32f2xx_tim.o + .text.TI4_Config + 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_info 0x00000000 0x1c69 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_abbrev 0x00000000 0x18c ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_aranges + 0x00000000 0x2f8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_ranges 0x00000000 0x2e8 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x1bc ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_macro 0x00000000 0x735 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_line 0x00000000 0xcb6 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_str 0x00000000 0x54fcf ..\obj\lib\spl\src\stm32f2xx_tim.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_tim.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_tim.o + .debug_frame 0x00000000 0xa3c ..\obj\lib\spl\src\stm32f2xx_tim.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_DeInit + 0x00000000 0xd0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_StructInit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ClockInit + 0x00000000 0x54 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ClockStructInit + 0x00000000 0x2c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SetPrescaler + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_OverSampling8Cmd + 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_OneBitMethodCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SendData + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SetAddress + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ReceiverWakeUpCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_WakeUpConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_LINBreakDetectLengthConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_LINCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SendBreak + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_HalfDuplexCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SetGuardTime + 0x00000000 0x3c ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SmartCardCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_SmartCardNACKCmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_IrDAConfig + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_IrDACmd + 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_DMACmd + 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ITConfig + 0x00000000 0x90 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ClearFlag + 0x00000000 0x20 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_GetITStatus + 0x00000000 0xb0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .text.USART_ClearITPendingBit + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_usart.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .data 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .bss 0x00000000 0x0 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_DeInit + 0x00000000 0x1c ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_SetPrescaler + 0x00000000 0x34 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_SetWindowValue + 0x00000000 0x38 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_EnableIT + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_SetCounter + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_Enable + 0x00000000 0x24 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_GetFlagStatus + 0x00000000 0x30 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .text.WWDG_ClearFlag + 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_info 0x00000000 0x24c ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_abbrev 0x00000000 0x145 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_aranges + 0x00000000 0x58 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_ranges 0x00000000 0x48 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x1bc ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x862 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x4c ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x3a ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x16 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x44 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x209 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x18 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x44f ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x111 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x188 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x149 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x477 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xae ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x242 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x279 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x25e ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x64 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x88 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x536 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x40 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x342 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x357 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x73b ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x221 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x82 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x35 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_macro 0x00000000 0x2e ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_line 0x00000000 0x4d8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_str 0x00000000 0x544af ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .ARM.attributes + 0x00000000 0x33 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .debug_frame 0x00000000 0xe8 ..\obj\lib\spl\src\stm32f2xx_wwdg.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\lib\system_stm32f2xx.o + .text 0x00000000 0x0 ..\obj\lib\system_stm32f2xx.o + .data 0x00000000 0x0 ..\obj\lib\system_stm32f2xx.o + .bss 0x00000000 0x0 ..\obj\lib\system_stm32f2xx.o + .data.AHBPrescTable + 0x00000000 0x10 ..\obj\lib\system_stm32f2xx.o + .text.SystemCoreClockUpdate + 0x00000000 0xf8 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x862 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x4c ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x3a ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x16 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x44 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x209 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x18 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xb08 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x7f1c ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x44f ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x3cf ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x111 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x188 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xb2 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x149 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x477 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xae ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x242 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x279 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xb5 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x25e ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x2b3 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x64 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x88 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x536 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x40 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x3f3 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x342 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x357 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0xe1 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x73b ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x221 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x34 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x82 ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x00000000 0x35 ..\obj\lib\system_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .group 0x00000000 0x8 ..\obj\main.o + .text 0x00000000 0x0 ..\obj\main.o + .data 0x00000000 0x0 ..\obj\main.o + .bss 0x00000000 0x0 ..\obj\main.o + .debug_macro 0x00000000 0x862 ..\obj\main.o + .debug_macro 0x00000000 0x87 ..\obj\main.o + .debug_macro 0x00000000 0x4c ..\obj\main.o + .debug_macro 0x00000000 0x3a ..\obj\main.o + .debug_macro 0x00000000 0x16 ..\obj\main.o + .debug_macro 0x00000000 0x44 ..\obj\main.o + .debug_macro 0x00000000 0x209 ..\obj\main.o + .debug_macro 0x00000000 0x18 ..\obj\main.o + .debug_macro 0x00000000 0xb08 ..\obj\main.o + .debug_macro 0x00000000 0x7f1c ..\obj\main.o + .debug_macro 0x00000000 0x44f ..\obj\main.o + .debug_macro 0x00000000 0x3cf ..\obj\main.o + .debug_macro 0x00000000 0x111 ..\obj\main.o + .debug_macro 0x00000000 0x188 ..\obj\main.o + .debug_macro 0x00000000 0xb2 ..\obj\main.o + .debug_macro 0x00000000 0x149 ..\obj\main.o + .debug_macro 0x00000000 0x477 ..\obj\main.o + .debug_macro 0x00000000 0xae ..\obj\main.o + .debug_macro 0x00000000 0x242 ..\obj\main.o + .debug_macro 0x00000000 0x279 ..\obj\main.o + .debug_macro 0x00000000 0xb5 ..\obj\main.o + .debug_macro 0x00000000 0x25e ..\obj\main.o + .debug_macro 0x00000000 0x2b3 ..\obj\main.o + .debug_macro 0x00000000 0x64 ..\obj\main.o + .debug_macro 0x00000000 0x88 ..\obj\main.o + .debug_macro 0x00000000 0x536 ..\obj\main.o + .debug_macro 0x00000000 0x40 ..\obj\main.o + .debug_macro 0x00000000 0x3f3 ..\obj\main.o + .debug_macro 0x00000000 0x342 ..\obj\main.o + .debug_macro 0x00000000 0x357 ..\obj\main.o + .debug_macro 0x00000000 0xe1 ..\obj\main.o + .debug_macro 0x00000000 0x73b ..\obj\main.o + .debug_macro 0x00000000 0x221 ..\obj\main.o + .debug_macro 0x00000000 0x34 ..\obj\main.o + .debug_macro 0x00000000 0x82 ..\obj\main.o + .debug_macro 0x00000000 0x35 ..\obj\main.o + .data 0x00000000 0x0 ..\obj\startup_stm32f2xx.o + .bss 0x00000000 0x0 ..\obj\startup_stm32f2xx.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .group 0x00000000 0x8 ..\obj\timer.o + .text 0x00000000 0x0 ..\obj\timer.o + .data 0x00000000 0x0 ..\obj\timer.o + .bss 0x00000000 0x0 ..\obj\timer.o + .text.TimerDeinit + 0x00000000 0x18 ..\obj\timer.o + .debug_macro 0x00000000 0x862 ..\obj\timer.o + .debug_macro 0x00000000 0x87 ..\obj\timer.o + .debug_macro 0x00000000 0x4c ..\obj\timer.o + .debug_macro 0x00000000 0x3a ..\obj\timer.o + .debug_macro 0x00000000 0x16 ..\obj\timer.o + .debug_macro 0x00000000 0x44 ..\obj\timer.o + .debug_macro 0x00000000 0x209 ..\obj\timer.o + .debug_macro 0x00000000 0x18 ..\obj\timer.o + .debug_macro 0x00000000 0xb08 ..\obj\timer.o + .debug_macro 0x00000000 0x7f1c ..\obj\timer.o + .debug_macro 0x00000000 0x44f ..\obj\timer.o + .debug_macro 0x00000000 0x3cf ..\obj\timer.o + .debug_macro 0x00000000 0x111 ..\obj\timer.o + .debug_macro 0x00000000 0x188 ..\obj\timer.o + .debug_macro 0x00000000 0xb2 ..\obj\timer.o + .debug_macro 0x00000000 0x149 ..\obj\timer.o + .debug_macro 0x00000000 0x477 ..\obj\timer.o + .debug_macro 0x00000000 0xae ..\obj\timer.o + .debug_macro 0x00000000 0x242 ..\obj\timer.o + .debug_macro 0x00000000 0x279 ..\obj\timer.o + .debug_macro 0x00000000 0xb5 ..\obj\timer.o + .debug_macro 0x00000000 0x25e ..\obj\timer.o + .debug_macro 0x00000000 0x2b3 ..\obj\timer.o + .debug_macro 0x00000000 0x64 ..\obj\timer.o + .debug_macro 0x00000000 0x88 ..\obj\timer.o + .debug_macro 0x00000000 0x536 ..\obj\timer.o + .debug_macro 0x00000000 0x40 ..\obj\timer.o + .debug_macro 0x00000000 0x3f3 ..\obj\timer.o + .debug_macro 0x00000000 0x342 ..\obj\timer.o + .debug_macro 0x00000000 0x357 ..\obj\timer.o + .debug_macro 0x00000000 0xe1 ..\obj\timer.o + .debug_macro 0x00000000 0x73b ..\obj\timer.o + .debug_macro 0x00000000 0x221 ..\obj\timer.o + .debug_macro 0x00000000 0x34 ..\obj\timer.o + .debug_macro 0x00000000 0x82 ..\obj\timer.o + .debug_macro 0x00000000 0x35 ..\obj\timer.o + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .data._impure_ptr + 0x00000000 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .jcr 0x00000000 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .text 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + .data 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + .bss 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + +Memory Configuration + +Name Origin Length Attributes +ROM 0x08008000 0x00078000 xr +RAM 0x20000000 0x00020000 xrw +*default* 0x00000000 0xffffffff + +Linker script and memory map + +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + 0x00000000 __HEAP_SIZE = 0x0 + 0x00000100 __STACK_SIZE = 0x100 + +.text 0x08008000 0xe74 + *(.isr_vector) + .isr_vector 0x08008000 0x188 ..\obj\startup_stm32f2xx.o + 0x08008000 __isr_vector + *(.text*) + .text 0x08008188 0x54 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .text 0x080081dc 0x74 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + 0x080081dc _start + 0x080081dc _mainCRTStartup + .text.NVIC_SystemReset + 0x08008250 0x28 ..\obj\boot.o + .text.BootComInit + 0x08008278 0xc ..\obj\boot.o + 0x08008278 BootComInit + .text.BootComCheckActivationRequest + 0x08008284 0xc ..\obj\boot.o + 0x08008284 BootComCheckActivationRequest + .text.BootActivate + 0x08008290 0xc ..\obj\boot.o + 0x08008290 BootActivate + .text.BootComUartInit + 0x0800829c 0xa0 ..\obj\boot.o + .text.BootComUartCheckActivationRequest + 0x0800833c 0x7c ..\obj\boot.o + .text.UartReceiveByte + 0x080083b8 0x38 ..\obj\boot.o + .text.IrqInterruptEnable + 0x080083f0 0x10 ..\obj\irq.o + 0x080083f0 IrqInterruptEnable + .text.LedInit 0x08008400 0x44 ..\obj\led.o + 0x08008400 LedInit + .text.LedToggle + 0x08008444 0x60 ..\obj\led.o + 0x08008444 LedToggle + .text.GPIO_Init + 0x080084a4 0x11c ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x080084a4 GPIO_Init + .text.GPIO_SetBits + 0x080085c0 0x1c ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x080085c0 GPIO_SetBits + .text.GPIO_ResetBits + 0x080085dc 0x1c ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x080085dc GPIO_ResetBits + .text.GPIO_PinAFConfig + 0x080085f8 0x8c ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x080085f8 GPIO_PinAFConfig + .text.RCC_GetClocksFreq + 0x08008684 0x154 ..\obj\lib\spl\src\stm32f2xx_rcc.o + 0x08008684 RCC_GetClocksFreq + .text.RCC_AHB1PeriphClockCmd + 0x080087d8 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + 0x080087d8 RCC_AHB1PeriphClockCmd + .text.RCC_APB1PeriphClockCmd + 0x08008814 0x3c ..\obj\lib\spl\src\stm32f2xx_rcc.o + 0x08008814 RCC_APB1PeriphClockCmd + .text.USART_Init + 0x08008850 0x174 ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x08008850 USART_Init + .text.USART_Cmd + 0x080089c4 0x40 ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x080089c4 USART_Cmd + .text.USART_ReceiveData + 0x08008a04 0x20 ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x08008a04 USART_ReceiveData + .text.USART_GetFlagStatus + 0x08008a24 0x38 ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x08008a24 USART_GetFlagStatus + .text.SystemInit + 0x08008a5c 0x4c ..\obj\lib\system_stm32f2xx.o + 0x08008a5c SystemInit + .text.SetSysClock + 0x08008aa8 0xd8 ..\obj\lib\system_stm32f2xx.o + .text.main 0x08008b80 0x18 ..\obj\main.o + 0x08008b80 main + .text.Init 0x08008b98 0x14 ..\obj\main.o + .text 0x08008bac 0x10c ..\obj\startup_stm32f2xx.o + 0x08008bac Reset_Handler + 0x08008bfa NMI_Handler + 0x08008bfc HardFault_Handler + 0x08008bfe MemManage_Handler + 0x08008c00 BusFault_Handler + 0x08008c02 UsageFault_Handler + 0x08008c04 SVC_Handler + 0x08008c06 DebugMon_Handler + 0x08008c08 PendSV_Handler + 0x08008c0c Default_Handler + 0x08008c0e WWDG_IRQHandler + 0x08008c10 PVD_IRQHandler + 0x08008c12 TAMP_STAMP_IRQHandler + 0x08008c14 RTC_WKUP_IRQHandler + 0x08008c16 FLASH_IRQHandler + 0x08008c18 RCC_IRQHandler + 0x08008c1a EXTI0_IRQHandler + 0x08008c1c EXTI1_IRQHandler + 0x08008c1e EXTI2_IRQHandler + 0x08008c20 EXTI3_IRQHandler + 0x08008c22 EXTI4_IRQHandler + 0x08008c24 DMA1_Stream0_IRQHandler + 0x08008c26 DMA1_Stream1_IRQHandler + 0x08008c28 DMA1_Stream2_IRQHandler + 0x08008c2a DMA1_Stream3_IRQHandler + 0x08008c2c DMA1_Stream4_IRQHandler + 0x08008c2e DMA1_Stream5_IRQHandler + 0x08008c30 DMA1_Stream6_IRQHandler + 0x08008c32 ADC_IRQHandler + 0x08008c34 CAN1_TX_IRQHandler + 0x08008c36 CAN1_RX0_IRQHandler + 0x08008c38 CAN1_RX1_IRQHandler + 0x08008c3a CAN1_SCE_IRQHandler + 0x08008c3c EXTI9_5_IRQHandler + 0x08008c3e TIM1_BRK_TIM9_IRQHandler + 0x08008c40 TIM1_UP_TIM10_IRQHandler + 0x08008c42 TIM1_TRG_COM_TIM11_IRQHandler + 0x08008c44 TIM1_CC_IRQHandler + 0x08008c46 TIM2_IRQHandler + 0x08008c48 TIM3_IRQHandler + 0x08008c4a TIM4_IRQHandler + 0x08008c4c I2C1_EV_IRQHandler + 0x08008c4e I2C1_ER_IRQHandler + 0x08008c50 I2C2_EV_IRQHandler + 0x08008c52 I2C2_ER_IRQHandler + 0x08008c54 SPI1_IRQHandler + 0x08008c56 SPI2_IRQHandler + 0x08008c58 USART1_IRQHandler + 0x08008c5a USART2_IRQHandler + 0x08008c5c USART3_IRQHandler + 0x08008c5e EXTI15_10_IRQHandler + 0x08008c60 RTC_Alarm_IRQHandler + 0x08008c62 OTG_FS_WKUP_IRQHandler + 0x08008c64 TIM8_BRK_TIM12_IRQHandler + 0x08008c66 TIM8_UP_TIM13_IRQHandler + 0x08008c68 TIM8_TRG_COM_TIM14_IRQHandler + 0x08008c6a TIM8_CC_IRQHandler + 0x08008c6c DMA1_Stream7_IRQHandler + 0x08008c6e FSMC_IRQHandler + 0x08008c70 SDIO_IRQHandler + 0x08008c72 TIM5_IRQHandler + 0x08008c74 SPI3_IRQHandler + 0x08008c76 UART4_IRQHandler + 0x08008c78 UART5_IRQHandler + 0x08008c7a TIM6_DAC_IRQHandler + 0x08008c7c TIM7_IRQHandler + 0x08008c7e DMA2_Stream0_IRQHandler + 0x08008c80 DMA2_Stream1_IRQHandler + 0x08008c82 DMA2_Stream2_IRQHandler + 0x08008c84 DMA2_Stream3_IRQHandler + 0x08008c86 DMA2_Stream4_IRQHandler + 0x08008c88 ETH_IRQHandler + 0x08008c8a ETH_WKUP_IRQHandler + 0x08008c8c CAN2_TX_IRQHandler + 0x08008c8e CAN2_RX0_IRQHandler + 0x08008c90 CAN2_RX1_IRQHandler + 0x08008c92 CAN2_SCE_IRQHandler + 0x08008c94 OTG_FS_IRQHandler + 0x08008c96 DMA2_Stream5_IRQHandler + 0x08008c98 DMA2_Stream6_IRQHandler + 0x08008c9a DMA2_Stream7_IRQHandler + 0x08008c9c USART6_IRQHandler + 0x08008c9e I2C3_EV_IRQHandler + 0x08008ca0 I2C3_ER_IRQHandler + 0x08008ca2 OTG_HS_EP1_OUT_IRQHandler + 0x08008ca4 OTG_HS_EP1_IN_IRQHandler + 0x08008ca6 OTG_HS_WKUP_IRQHandler + 0x08008ca8 OTG_HS_IRQHandler + 0x08008caa DCMI_IRQHandler + 0x08008cac CRYP_IRQHandler + 0x08008cae HASH_RNG_IRQHandler + .text.NVIC_SetPriority + 0x08008cb8 0x54 ..\obj\timer.o + .text.SysTick_Config + 0x08008d0c 0x44 ..\obj\timer.o + .text.TimerInit + 0x08008d50 0x28 ..\obj\timer.o + 0x08008d50 TimerInit + .text.TimerSet + 0x08008d78 0x1c ..\obj\timer.o + 0x08008d78 TimerSet + .text.TimerGet + 0x08008d94 0x18 ..\obj\timer.o + 0x08008d94 TimerGet + .text.SysTick_Handler + 0x08008dac 0x1c ..\obj\timer.o + 0x08008dac SysTick_Handler + .text.exit 0x08008dc8 0x28 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + 0x08008dc8 exit + .text.__libc_init_array + 0x08008df0 0x4c c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + 0x08008df0 __libc_init_array + .text.memset 0x08008e3c 0x10 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + 0x08008e3c memset + .text 0x08008e4c 0x2 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + 0x08008e4c _exit + *(.init) + *fill* 0x08008e4e 0x2 + .init 0x08008e50 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + 0x08008e50 _init + .init 0x08008e54 0x8 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + *(.fini) + .fini 0x08008e5c 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + 0x08008e5c _fini + .fini 0x08008e60 0x8 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + *crtbegin.o(.ctors) + *crtbegin?.o(.ctors) + *(EXCLUDE_FILE(*crtend.o *crtend?.o) .ctors) + *(SORT(.ctors.*)) + *(.ctors) + *crtbegin.o(.dtors) + *crtbegin?.o(.dtors) + *(EXCLUDE_FILE(*crtend.o *crtend?.o) .dtors) + *(SORT(.dtors.*)) + *(.dtors) + *(.rodata*) + .rodata.str1.1 + 0x08008e68 0x2 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + *fill* 0x08008e6a 0x2 + .rodata._global_impure_ptr + 0x08008e6c 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + 0x08008e6c _global_impure_ptr + *(.eh_frame*) + .eh_frame 0x08008e70 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .eh_frame 0x08008e70 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + +.glue_7 0x08008e74 0x0 + .glue_7 0x00000000 0x0 linker stubs + +.glue_7t 0x08008e74 0x0 + .glue_7t 0x00000000 0x0 linker stubs + +.vfp11_veneer 0x08008e74 0x0 + .vfp11_veneer 0x00000000 0x0 linker stubs + +.v4_bx 0x08008e74 0x0 + .v4_bx 0x00000000 0x0 linker stubs + +.iplt 0x08008e74 0x0 + .iplt 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + +.ARM.extab + *(.ARM.extab* .gnu.linkonce.armextab.*) + 0x08008e74 __exidx_start = . + +.ARM.exidx 0x08008e74 0x8 + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + .ARM.exidx 0x08008e74 0x8 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + 0x08008e7c __exidx_end = . + 0x08008e7c __etext = . + +.rel.dyn 0x08008e7c 0x0 + .rel.iplt 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + +.data 0x20000000 0x7c load address 0x08008e7c + 0x20000000 __data_start__ = . + *(vtable) + *(.data*) + .data.APBAHBPrescTable + 0x20000000 0x10 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .data.SystemCoreClock + 0x20000010 0x4 ..\obj\lib\system_stm32f2xx.o + 0x20000010 SystemCoreClock + .data.impure_data + 0x20000014 0x60 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + 0x20000074 . = ALIGN (0x4) + 0x20000074 PROVIDE (__preinit_array_start, .) + *(.preinit_array) + 0x20000074 PROVIDE (__preinit_array_end, .) + 0x20000074 . = ALIGN (0x4) + 0x20000074 PROVIDE (__init_array_start, .) + *(SORT(.init_array.*)) + *(.init_array) + .init_array 0x20000074 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + 0x20000078 PROVIDE (__init_array_end, .) + 0x20000078 . = ALIGN (0x4) + 0x20000078 PROVIDE (__fini_array_start, .) + *(SORT(.fini_array.*)) + *(.fini_array) + .fini_array 0x20000078 0x4 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + 0x2000007c PROVIDE (__fini_array_end, .) + 0x2000007c . = ALIGN (0x4) + 0x2000007c __data_end__ = . + +.jcr 0x2000007c 0x0 load address 0x08008ef8 + .jcr 0x2000007c 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + +.igot.plt 0x2000007c 0x0 load address 0x08008ef8 + .igot.plt 0x00000000 0x0 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + +.bss 0x2000007c 0x74 load address 0x08008ef8 + 0x2000007c __bss_start__ = . + *(.bss*) + .bss 0x2000007c 0x1c c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .bss.xcpCtoRxInProgress.7886 + 0x20000098 0x1 ..\obj\boot.o + *fill* 0x20000099 0x3 + .bss.xcpCtoReqPacket.7884 + 0x2000009c 0x44 ..\obj\boot.o + .bss.xcpCtoRxLength.7885 + 0x200000e0 0x1 ..\obj\boot.o + *fill* 0x200000e1 0x3 + .bss.timer_counter_last.7869 + 0x200000e4 0x4 ..\obj\led.o + .bss.led_toggle_state.7868 + 0x200000e8 0x1 ..\obj\led.o + *fill* 0x200000e9 0x3 + .bss.millisecond_counter + 0x200000ec 0x4 ..\obj\timer.o + *(COMMON) + 0x200000f0 __bss_end__ = . + +.heap 0x200000f0 0x0 + 0x200000f0 __end__ = . + 0x200000f0 end = __end__ + *(.heap*) + .heap 0x200000f0 0x0 ..\obj\startup_stm32f2xx.o + 0x200000f0 __HeapLimit = . + +.stack_dummy 0x200000f0 0x100 + *(.stack) + .stack 0x200000f0 0x100 ..\obj\startup_stm32f2xx.o + 0x20020000 __StackTop = (ORIGIN (RAM) + 0x20000) + 0x2001ff00 __StackLimit = (__StackTop - SIZEOF (.stack_dummy)) + 0x20020000 PROVIDE (__stack, __StackTop) + 0x00000001 ASSERT ((__StackLimit >= __HeapLimit), region RAM overflowed with stack) +LOAD ..\obj\boot.o +LOAD ..\obj\irq.o +LOAD ..\obj\led.o +LOAD ..\obj\lib\spl\src\misc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_adc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_can.o +LOAD ..\obj\lib\spl\src\stm32f2xx_crc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_cryp.o +LOAD ..\obj\lib\spl\src\stm32f2xx_cryp_aes.o +LOAD ..\obj\lib\spl\src\stm32f2xx_cryp_des.o +LOAD ..\obj\lib\spl\src\stm32f2xx_cryp_tdes.o +LOAD ..\obj\lib\spl\src\stm32f2xx_dac.o +LOAD ..\obj\lib\spl\src\stm32f2xx_dbgmcu.o +LOAD ..\obj\lib\spl\src\stm32f2xx_dcmi.o +LOAD ..\obj\lib\spl\src\stm32f2xx_dma.o +LOAD ..\obj\lib\spl\src\stm32f2xx_exti.o +LOAD ..\obj\lib\spl\src\stm32f2xx_flash.o +LOAD ..\obj\lib\spl\src\stm32f2xx_fsmc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_gpio.o +LOAD ..\obj\lib\spl\src\stm32f2xx_hash.o +LOAD ..\obj\lib\spl\src\stm32f2xx_hash_md5.o +LOAD ..\obj\lib\spl\src\stm32f2xx_hash_sha1.o +LOAD ..\obj\lib\spl\src\stm32f2xx_i2c.o +LOAD ..\obj\lib\spl\src\stm32f2xx_iwdg.o +LOAD ..\obj\lib\spl\src\stm32f2xx_pwr.o +LOAD ..\obj\lib\spl\src\stm32f2xx_rcc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_rng.o +LOAD ..\obj\lib\spl\src\stm32f2xx_rtc.o +LOAD ..\obj\lib\spl\src\stm32f2xx_sdio.o +LOAD ..\obj\lib\spl\src\stm32f2xx_spi.o +LOAD ..\obj\lib\spl\src\stm32f2xx_syscfg.o +LOAD ..\obj\lib\spl\src\stm32f2xx_tim.o +LOAD ..\obj\lib\spl\src\stm32f2xx_usart.o +LOAD ..\obj\lib\spl\src\stm32f2xx_wwdg.o +LOAD ..\obj\lib\system_stm32f2xx.o +LOAD ..\obj\main.o +LOAD ..\obj\startup_stm32f2xx.o +LOAD ..\obj\timer.o +START GROUP +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m\libgcc.a +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libc_n.a +END GROUP +START GROUP +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m\libgcc.a +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libc_n.a +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a +END GROUP +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o +LOAD c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o +OUTPUT(..\bin\demoprog_stm32f207.elf elf32-littlearm) + +.ARM.attributes + 0x00000000 0x29 + .ARM.attributes + 0x00000000 0x1d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crti.o + .ARM.attributes + 0x0000001d 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtbegin.o + .ARM.attributes + 0x0000004a 0x1b c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m/crt0.o + .ARM.attributes + 0x00000065 0x33 ..\obj\boot.o + .ARM.attributes + 0x00000098 0x33 ..\obj\irq.o + .ARM.attributes + 0x000000cb 0x33 ..\obj\led.o + .ARM.attributes + 0x000000fe 0x33 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .ARM.attributes + 0x00000131 0x33 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .ARM.attributes + 0x00000164 0x33 ..\obj\lib\spl\src\stm32f2xx_usart.o + .ARM.attributes + 0x00000197 0x33 ..\obj\lib\system_stm32f2xx.o + .ARM.attributes + 0x000001ca 0x33 ..\obj\main.o + .ARM.attributes + 0x000001fd 0x1b ..\obj\startup_stm32f2xx.o + .ARM.attributes + 0x00000218 0x33 ..\obj\timer.o + .ARM.attributes + 0x0000024b 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .ARM.attributes + 0x00000278 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-impure.o) + .ARM.attributes + 0x000002a5 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .ARM.attributes + 0x000002d2 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .ARM.attributes + 0x000002ff 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) + .ARM.attributes + 0x0000032c 0x2d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtend.o + .ARM.attributes + 0x00000359 0x1d c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/armv7-m/crtn.o + +.comment 0x00000000 0x46 + .comment 0x00000000 0x46 ..\obj\boot.o + 0x47 (size before relaxing) + .comment 0x00000000 0x47 ..\obj\irq.o + .comment 0x00000000 0x47 ..\obj\led.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .comment 0x00000000 0x47 ..\obj\lib\spl\src\stm32f2xx_usart.o + .comment 0x00000000 0x47 ..\obj\lib\system_stm32f2xx.o + .comment 0x00000000 0x47 ..\obj\main.o + .comment 0x00000000 0x47 ..\obj\timer.o + +.debug_info 0x00000000 0x3311 + .debug_info 0x00000000 0x682 ..\obj\boot.o + .debug_info 0x00000682 0x130 ..\obj\irq.o + .debug_info 0x000007b2 0x2ef ..\obj\led.o + .debug_info 0x00000aa1 0x60d ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_info 0x000010ae 0xc55 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_info 0x00001d03 0x9ca ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_info 0x000026cd 0x3ec ..\obj\lib\system_stm32f2xx.o + .debug_info 0x00002ab9 0xc4 ..\obj\main.o + .debug_info 0x00002b7d 0x8f ..\obj\startup_stm32f2xx.o + .debug_info 0x00002c0c 0x705 ..\obj\timer.o + +.debug_abbrev 0x00000000 0xbad + .debug_abbrev 0x00000000 0x192 ..\obj\boot.o + .debug_abbrev 0x00000192 0x99 ..\obj\irq.o + .debug_abbrev 0x0000022b 0x104 ..\obj\led.o + .debug_abbrev 0x0000032f 0x1a8 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_abbrev 0x000004d7 0x1e8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_abbrev 0x000006bf 0x15a ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_abbrev 0x00000819 0x13b ..\obj\lib\system_stm32f2xx.o + .debug_abbrev 0x00000954 0x82 ..\obj\main.o + .debug_abbrev 0x000009d6 0x14 ..\obj\startup_stm32f2xx.o + .debug_abbrev 0x000009ea 0x1c3 ..\obj\timer.o + +.debug_aranges 0x00000000 0x470 + .debug_aranges + 0x00000000 0x50 ..\obj\boot.o + .debug_aranges + 0x00000050 0x30 ..\obj\irq.o + .debug_aranges + 0x00000080 0x28 ..\obj\led.o + .debug_aranges + 0x000000a8 0x88 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_aranges + 0x00000130 0x178 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_aranges + 0x000002a8 0x100 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_aranges + 0x000003a8 0x30 ..\obj\lib\system_stm32f2xx.o + .debug_aranges + 0x000003d8 0x28 ..\obj\main.o + .debug_aranges + 0x00000400 0x20 ..\obj\startup_stm32f2xx.o + .debug_aranges + 0x00000420 0x50 ..\obj\timer.o + +.debug_ranges 0x00000000 0x3c0 + .debug_ranges 0x00000000 0x40 ..\obj\boot.o + .debug_ranges 0x00000040 0x20 ..\obj\irq.o + .debug_ranges 0x00000060 0x18 ..\obj\led.o + .debug_ranges 0x00000078 0x78 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_ranges 0x000000f0 0x168 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_ranges 0x00000258 0xf0 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_ranges 0x00000348 0x20 ..\obj\lib\system_stm32f2xx.o + .debug_ranges 0x00000368 0x18 ..\obj\main.o + .debug_ranges 0x00000380 0x40 ..\obj\timer.o + +.debug_macro 0x00000000 0xe816 + .debug_macro 0x00000000 0x1c3 ..\obj\boot.o + .debug_macro 0x000001c3 0x862 ..\obj\boot.o + .debug_macro 0x00000a25 0x87 ..\obj\boot.o + .debug_macro 0x00000aac 0x4c ..\obj\boot.o + .debug_macro 0x00000af8 0x3a ..\obj\boot.o + .debug_macro 0x00000b32 0x16 ..\obj\boot.o + .debug_macro 0x00000b48 0x44 ..\obj\boot.o + .debug_macro 0x00000b8c 0x209 ..\obj\boot.o + .debug_macro 0x00000d95 0x18 ..\obj\boot.o + .debug_macro 0x00000dad 0xb08 ..\obj\boot.o + .debug_macro 0x000018b5 0x7f1c ..\obj\boot.o + .debug_macro 0x000097d1 0x44f ..\obj\boot.o + .debug_macro 0x00009c20 0x3cf ..\obj\boot.o + .debug_macro 0x00009fef 0x111 ..\obj\boot.o + .debug_macro 0x0000a100 0x188 ..\obj\boot.o + .debug_macro 0x0000a288 0xb2 ..\obj\boot.o + .debug_macro 0x0000a33a 0x149 ..\obj\boot.o + .debug_macro 0x0000a483 0x477 ..\obj\boot.o + .debug_macro 0x0000a8fa 0xae ..\obj\boot.o + .debug_macro 0x0000a9a8 0x242 ..\obj\boot.o + .debug_macro 0x0000abea 0x279 ..\obj\boot.o + .debug_macro 0x0000ae63 0xb5 ..\obj\boot.o + .debug_macro 0x0000af18 0x25e ..\obj\boot.o + .debug_macro 0x0000b176 0x2b3 ..\obj\boot.o + .debug_macro 0x0000b429 0x64 ..\obj\boot.o + .debug_macro 0x0000b48d 0x88 ..\obj\boot.o + .debug_macro 0x0000b515 0x536 ..\obj\boot.o + .debug_macro 0x0000ba4b 0x40 ..\obj\boot.o + .debug_macro 0x0000ba8b 0x3f3 ..\obj\boot.o + .debug_macro 0x0000be7e 0x342 ..\obj\boot.o + .debug_macro 0x0000c1c0 0x357 ..\obj\boot.o + .debug_macro 0x0000c517 0xe1 ..\obj\boot.o + .debug_macro 0x0000c5f8 0x73b ..\obj\boot.o + .debug_macro 0x0000cd33 0x221 ..\obj\boot.o + .debug_macro 0x0000cf54 0x34 ..\obj\boot.o + .debug_macro 0x0000cf88 0x82 ..\obj\boot.o + .debug_macro 0x0000d00a 0x35 ..\obj\boot.o + .debug_macro 0x0000d03f 0x1c3 ..\obj\irq.o + .debug_macro 0x0000d202 0x1c9 ..\obj\led.o + .debug_macro 0x0000d3cb 0x192 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x0000d55d 0x258 ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_macro 0x0000d7b5 0x23b ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x0000d9f0 0x530 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_macro 0x0000df20 0x1aa ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x0000e0ca 0x21b ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_macro 0x0000e2e5 0x1ab ..\obj\lib\system_stm32f2xx.o + .debug_macro 0x0000e490 0x1c3 ..\obj\main.o + .debug_macro 0x0000e653 0x1c3 ..\obj\timer.o + +.debug_line 0x00000000 0x328b + .debug_line 0x00000000 0x54d ..\obj\boot.o + .debug_line 0x0000054d 0x4d7 ..\obj\irq.o + .debug_line 0x00000a24 0x4b3 ..\obj\led.o + .debug_line 0x00000ed7 0x58f ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_line 0x00001466 0x7eb ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_line 0x00001c51 0x6de ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_line 0x0000232f 0x4bd ..\obj\lib\system_stm32f2xx.o + .debug_line 0x000027ec 0x4b6 ..\obj\main.o + .debug_line 0x00002ca2 0xd1 ..\obj\startup_stm32f2xx.o + .debug_line 0x00002d73 0x518 ..\obj\timer.o + +.debug_str 0x00000000 0x5600c + .debug_str 0x00000000 0x54767 ..\obj\boot.o + 0x5490a (size before relaxing) + .debug_str 0x00054767 0x70 ..\obj\irq.o + 0x54594 (size before relaxing) + .debug_str 0x000547d7 0x78 ..\obj\led.o + 0x54758 (size before relaxing) + .debug_str 0x0005484f 0x173 ..\obj\lib\spl\src\stm32f2xx_gpio.o + 0x545db (size before relaxing) + .debug_str 0x000549c2 0xaff ..\obj\lib\spl\src\stm32f2xx_rcc.o + 0x54e5c (size before relaxing) + .debug_str 0x000554c1 0x49a ..\obj\lib\spl\src\stm32f2xx_usart.o + 0x548eb (size before relaxing) + .debug_str 0x0005595b 0xc4 ..\obj\lib\system_stm32f2xx.o + 0x544b8 (size before relaxing) + .debug_str 0x00055a1f 0xf ..\obj\main.o + 0x54538 (size before relaxing) + .debug_str 0x00055a2e 0x5de ..\obj\timer.o + 0x54bc3 (size before relaxing) + +.debug_frame 0x00000000 0xd44 + .debug_frame 0x00000000 0xd8 ..\obj\boot.o + .debug_frame 0x000000d8 0x58 ..\obj\irq.o + .debug_frame 0x00000130 0x50 ..\obj\led.o + .debug_frame 0x00000180 0x19c ..\obj\lib\spl\src\stm32f2xx_gpio.o + .debug_frame 0x0000031c 0x4d8 ..\obj\lib\spl\src\stm32f2xx_rcc.o + .debug_frame 0x000007f4 0x344 ..\obj\lib\spl\src\stm32f2xx_usart.o + .debug_frame 0x00000b38 0x64 ..\obj\lib\system_stm32f2xx.o + .debug_frame 0x00000b9c 0x48 ..\obj\main.o + .debug_frame 0x00000be4 0xcc ..\obj\timer.o + .debug_frame 0x00000cb0 0x28 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-exit.o) + .debug_frame 0x00000cd8 0x2c c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-init.o) + .debug_frame 0x00000d04 0x20 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libg_n.a(lib_a-memset.o) + .debug_frame 0x00000d24 0x20 c:/program files (x86)/embitz/0.42/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libnosys_s.a(_exit.o) diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.srec b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.srec new file mode 100644 index 00000000..e186e88d --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/bin/demoprog_stm32f207.srec @@ -0,0 +1,243 @@ +S02100002E2E5C62696E5C64656D6F70726F675F73746D3332663230372E7372656342 +S3150800800000000220AD8B0008FB8B0008FD8B0008E2 +S31508008010FF8B0008018C0008038C00080000000094 +S31508008020000000000000000000000000058C0008A9 +S31508008030078C000800000000098C0008AD8D0008B8 +S315080080400F8C0008118C0008138C0008158C00088A +S31508008050178C0008198C00081B8C00081D8C00085A +S315080080601F8C0008218C0008238C0008258C00082A +S31508008070278C0008298C00082B8C00082D8C0008FA +S315080080802F8C0008318C0008338C0008358C0008CA +S31508008090378C0008398C00083B8C00083D8C00089A +S315080080A03F8C0008418C0008438C0008458C00086A +S315080080B0478C0008498C00084B8C00084D8C00083A +S315080080C04F8C0008518C0008538C0008558C00080A +S315080080D0578C0008598C00085B8C00085D8C0008DA +S315080080E05F8C0008618C0008638C0008658C0008AA +S315080080F0678C0008698C00086B8C00086D8C00087A +S315080081006F8C0008718C0008738C0008758C000849 +S31508008110778C0008798C00087B8C00087D8C000819 +S315080081207F8C0008818C0008838C0008858C0008E9 +S31508008130878C0008898C00088B8C00088D8C0008B9 +S315080081408F8C0008918C0008938C0008958C000889 +S31508008150978C0008998C00089B8C00089D8C000859 +S315080081609F8C0008A18C0008A38C0008A58C000829 +S31508008170A78C0008A98C0008AB8C0008AD8C0008F9 +S31508008180AF8C0008EE11AA5510B5054C237833B903 +S31508008190044B13B10448AFF300800123237010BDCC +S315080081A07C00002000000000708E000808B5064B11 +S315080081B01BB106480649AFF300800648036813B1A9 +S315080081C0054B03B1984708BD00000000708E0008F3 +S315080081D0800000207C00002000000000154B002BCA +S315080081E008BF134B9D46A3F5803A00218B460F46E0 +S315080081F01348144A121A00F021FE0F4B002B00D028 +S3150800820098470E4B002B00D0984700200021040009 +S315080082100D000D48002802D00C48AFF3008000F08E +S31508008220E7FD2000290000F0ABFC00F0CDFD00BF03 +S315080082300000080000000220000000000000000006 +S315080082407C000020F0000020000000000000000074 +S3150800825080B400AFBFF34F8F054A054BDB6803F4C4 +S31508008260E061044B0B43D360BFF34F8FFEE700BFBB +S3150800827000ED00E00400FA0580B500AF00F00EF846 +S3150800828080BD00BF80B500AF00F058F880BD00BFC4 +S3150800829080B500AFFFF7DCFF80BD00BF80B586B0B4 +S315080082A000AF4FF48020012100F0B4FA0820012124 +S315080082B000F092FA1F480821072200F09DF91D4890 +S315080082C00921072200F098F90023BB750123FB75E5 +S315080082D002233B754FF480733B6102237B7507F1DC +S315080082E010031448194600F0DDF802233B754FF4D5 +S315080082F000733B6107F110030E48194600F0D2F8E7 +S315080083004FF461433B600023BB800023FB800023BE +S315080083103B810023BB810C237B813B4606481946DB +S3150800832000F096FA0448012100F04CFB1837BD46C8 +S3150800833080BD00BF000C02400048004080B500AF79 +S315080083401A4B1B78002B0CD1194800F035F8034658 +S31508008350012B2AD1154B01221A70164B00221A70CE +S3150800836023E0144B1B785A1C114B1344184600F093 +S3150800837023F80346012B18D10E4B1B780133DAB2CA +S315080083800C4B1A700A4B1A780A4B1B789A420CD176 +S31508008390064B00221A70064B5B78FF2B05D1044B5F +S315080083A09B78002B01D1FFF773FF80BD9800002052 +S315080083B09C000020E000002080B582B000AF786005 +S315080083C00A48202100F02EFB0346012B08D1074856 +S315080083D000F018FB0346DAB27B681A70012300E046 +S315080083E0002318460837BD4680BD00BF0048004038 +S315080083F080B400AF62B6BD465DF8047B704700BF27 +S3150800840080B582B000AF2020012100F0E5F94FF4D5 +S3150800841080733B600023BB710123FB7102237B71D0 +S3150800842001233B713B460648194600F03BF80448D1 +S315080084304FF4807100F0D2F80837BD4680BD00BF02 +S315080084400014024080B582B000AF00F0A3FC78604B +S31508008450114B1B687A68D31AB3F5FA7F00D217E076 +S315080084600E4B1B78002B08D10C4B01221A700C48B6 +S315080084704FF4807100F0A4F807E0084B00221A7048 +S3150800848007484FF4807100F0A9F8034B7A681A6020 +S315080084900837BD4680BD00BFE4000020E800002084 +S315080084A00014024080B487B000AF786039600023BA +S315080084B07B6100233B610023FB6000237B6176E040 +S315080084C07B69012202FA03F33B613B681A683B6940 +S315080084D01340FB60FA683B699A4265D17B681A6863 +S315080084E07B695B00032101FA03F3DB431A407B68CF +S315080084F01A607B681A683B681B7919467B695B00BA +S3150800850001FA03F31A437B681A603B681B79012B4F +S3150800851003D03B681B79022B2ED17B689A687B694E +S315080085205B00032101FA03F3DB431A407B689A6078 +S315080085307B689A683B685B7919467B695B0001FA38 +S3150800854003F31A437B689A607B685A687B699BB217 +S31508008550012101FA03F3DB431A407B685A607B6802 +S315080085605A683B689B7919467B699BB201FA03F303 +S315080085709BB21A437B685A607B68DA687B699BB250 +S315080085805B00032101FA03F3DB431A407B68DA60D8 +S315080085907B68DA683B68DB7919467B695B0001FA18 +S315080085A003F31A437B68DA607B6901337B617B6975 +S315080085B00F2B85D91C37BD465DF8047B704700BF75 +S315080085C080B483B000AF78600B467B807B687A887E +S315080085D01A830C37BD465DF8047B704780B483B0B8 +S315080085E000AF78600B467B807B687A885A830C37A5 +S315080085F0BD465DF8047B704780B485B000AF7860EF +S3150800860013460A467A807B700023FB600023BB6012 +S315080086107A787B8803F007039B0002FA03F3FB6072 +S315080086207B88DB089BB21A467B88DB089BB2194617 +S315080086307B68083153F821107B8803F007039B00F9 +S315080086400F2000FA03F3DB4319407B68083243F82E +S3150800865022107B88DB089BB21A467B68083253F8DF +S315080086602220FB681343BB607B88DB089BB21A4653 +S315080086707B680832B96843F822101437BD465DF89E +S31508008680047B704780B489B000AF78600023BB6173 +S3150800869000237B610023FB6102233B610023FB600F +S315080086A00223BB60484B9B6803F00C03BB61BB69A4 +S315080086B0042B07D0082B09D0002B3FD17B68434AEF +S315080086C01A603FE07B68424A1A603BE03E4B5B68B3 +S315080086D003F480039B0DFB603B4B5B6803F03F0391 +S315080086E0BB60FB68002B0DD0394ABB68B2FBF3F2BE +S315080086F0354B596847F6C0730B409B0903FB02F3D9 +S31508008700FB610CE0314ABB68B2FBF3F22E4B5968A9 +S3150800871047F6C0730B409B0903FB02F3FB612A4B28 +S315080087205B6803F440331B0C01335B003B61FA6959 +S315080087303B69B2FBF3F27B681A6003E07B68234A65 +S315080087401A6000BF204B9B6803F0F003BB61BB694E +S315080087501B09BB611F4ABB6913441B78DBB27B61EB +S315080087607B681A687B69DA407B685A60164B9B6897 +S3150800877003F4E053BB61BB699B0ABB61154ABB693D +S3150800878013441B78DBB27B617B685A687B69DA40E5 +S315080087907B689A600C4B9B6803F46043BB61BB69BA +S315080087A05B0BBB610B4ABB6913441B78DBB27B616D +S315080087B07B685A687B69DA407B68DA602437BD468D +S315080087C05DF8047B704700BF003802400024F400BF +S315080087D040787D010000002080B483B000AF786047 +S315080087E00B46FB70FB78002B06D0094B084A116B29 +S315080087F07A680A431A6306E0054B054A116B7A68DC +S31508008800D2430A401A630C37BD465DF8047B7047AD +S315080088100038024080B483B000AF78600B46FB7026 +S31508008820FB78002B06D0094B084A116C7A680A4374 +S315080088301A6406E0054B054A116C7A68D2430A4069 +S315080088401A640C37BD465DF8047B70470038024051 +S3150800885080B58AB000AF7860396000237B62002358 +S315080088603B620023FB610023BB617B681B8A9BB2CA +S315080088707B627B6A23F440537B623B68DB887A6AB7 +S3150800888013437B627B6A9AB27B681A827B689B89F0 +S315080088909BB27B627B6A23F4B05323F00C037B62A2 +S315080088A03B689A883B681B8913439AB23B685B8985 +S315080088B013439BB27A6A13437B627B6A9AB27B68DC +S315080088C09A817B689B8A9BB27B627B6A23F440739E +S315080088D07B623B689B897A6A13437B627B6A9AB29E +S315080088E07B689A8207F108031846FFF7CBFE7A6879 +S315080088F0314B9A4203D07A68304B9A4202D17B694F +S315080089003B6201E03B693B627B689B899BB29BB2F9 +S315080089101BB2002B0CDA3A6A13469B0013449A00E2 +S315080089201A443B681B685B00B2FBF3F3FB610BE080 +S315080089303A6A13469B0013449A001A443B681B681C +S315080089409B00B2FBF3F3FB61FA691D4BA3FB021311 +S315080089505B091B017B627B6A1B09642202FB03F32A +S31508008960FA69D31ABB617B689B899BB29BB21BB21F +S31508008970002B0DDABB69DB0003F13202104BA3FBB7 +S3150800898002135B0903F007037A6A13437B620CE060 +S31508008990BB691B0103F13202094BA3FB02135B09F6 +S315080089A003F00F037A6A13437B627B6A9AB27B6889 +S315080089B01A812837BD4680BD0010014000140140C9 +S315080089C01F85EB5180B483B000AF78600B46FB700F +S315080089D0FB78002B08D07B689B899BB243F4005335 +S315080089E09AB27B689A8107E07B689B899BB223F4DD +S315080089F000539AB27B689A810C37BD465DF8047BB2 +S31508008A00704700BF80B483B000AF78607B689B88EE +S31508008A109BB2C3F308039BB218460C37BD465DF8F4 +S31508008A20047B704780B485B000AF78600B467B80C6 +S31508008A300023FB737B681B889AB27B8813409BB222 +S31508008A40002B02D00123FB7301E00023FB73FB7BA1 +S31508008A5018461437BD465DF8047B704780B500AFED +S31508008A600F4B0F4A126842F001021A600C4B0022A3 +S31508008A709A600B4A0A4B1B6823F0847323F48033ED +S31508008A801360074B074A5A60054B054A126822F4D9 +S31508008A9080221A60024B0022DA6000F005F880BDD9 +S31508008AA0003802401030002480B483B000AF0023A1 +S31508008AB07B6000233B602F4B2E4A126842F48032BB +S31508008AC01A602C4B1B6803F400333B607B68013348 +S31508008AD07B603B68002B03D17B68B3F5C06FF0D190 +S31508008AE0244B1B6803F40033002B02D001233B60A0 +S31508008AF001E000233B603B68012B36D11D4B1D4A24 +S31508008B0092689A601B4B1B4A926842F400429A602C +S31508008B10184B184A926842F4A0529A60154B164AA6 +S31508008B205A60144B134A126842F080721A6000BFEA +S31508008B30104B1B6803F00073002BF9D00F4B40F263 +S31508008B4003721A600B4B0B4A926822F003029A6072 +S31508008B50084B084A926842F002029A6000BF054B29 +S31508008B609B6803F00C03082BF9D10C37BD465DF85A +S31508008B70047B704700380240193C4005003C02401F +S31508008B8080B500AF00F008F8FFF776FBFFF75AFC50 +S31508008B90FFF778FBFAE700BF80B500AFFFF730FCB8 +S31508008BA000F0D6F8FFF724FC80BD00BF07498D46C4 +S31508008BB00749084A084B9A42BEBF51F8040B42F8C7 +S31508008BC0040BF8E7054880470548004700000220DF +S31508008BD07C8E0008000000207C0000205D8A0008CA +S31508008BE0DD8100083249334A002301E041F8043B9D +S31508008BF09142FBD3FFF7C4FFFEE7FEE7FEE7FEE779 +S31508008C00FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE72E +S31508008C10FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE71E +S31508008C20FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE70E +S31508008C30FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7FE +S31508008C40FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7EE +S31508008C50FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7DE +S31508008C60FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7CE +S31508008C70FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7BE +S31508008C80FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7AE +S31508008C90FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE79E +S31508008CA0FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE78E +S31508008CB07C000020F000002080B483B000AF03469B +S31508008CC03960FB7197F90730002B0BDA0D49FB79F0 +S31508008CD003F00F03043B3A68D2B21201D2B20B4436 +S31508008CE01A7609E0084997F907303A68D2B21201AC +S31508008CF0D2B20B4483F800230C37BD465DF8047BDB +S31508008D00704700BF00ED00E000E100E080B582B0EA +S31508008D1000AF78607B68B3F1807F01D3012311E04F +S31508008D200A4B7A6822F07F42013A5A604FF0FF30C8 +S31508008D300F21FFF7C1FF054B00229A60034B07225C +S31508008D401A60002318460837BD4680BD10E000E0CB +S31508008D5080B500AF064B1A68064BA3FB02139B09A6 +S31508008D601846FFF7D3FF002000F006F880BD00BFC5 +S31508008D7010000020D34D621080B483B000AF786035 +S31508008D80034B7A681A600C37BD465DF8047B70475A +S31508008D90EC00002080B400AF034B1B681846BD46A4 +S31508008DA05DF8047B704700BFEC00002080B400AF7C +S31508008DB0044B1B685A1C034B1A60BD465DF8047BBE +S31508008DC0704700BFEC00002008B5074B044613B1F6 +S31508008DD00021AFF30080054B1868836A03B19847F2 +S31508008DE0204600F033F800BF000000006C8E000833 +S31508008DF070B50E4B0E4D0024ED1AAD101E46AC4252 +S31508008E0004D056F8242090470134F8E700F020F8FB +S31508008E10084D094B0024ED1AAD101E46AC4204D08D +S31508008E2056F8242090470134F8E770BD74000020F6 +S31508008E3074000020780000207400002002440346D5 +S31508008E40934202D003F8011BFAE77047FEE70000D9 +S31508008E50F8B500BFF8BC08BC9E467047F8B500BF19 +S31508008E60F8BC08BC9E46704743000000140000206A +S30908008E7000000000F0 +S30D08008E7468F3FF7F010000000E +S31508008E7C00000000010203040102030406070809A6 +S31508008E8C000E27070000000000000000000000008C +S31508008E9C00000000000000000000000000000000B8 +S31508008EAC00000000688E00080000000000000000AA +S31508008EBC0000000000000000000000000000000098 +S31508008ECC0000000000000000000000000000000088 +S31508008EDC0000000000000000000000000000000078 +S31108008EEC00000000AD8100088981000824 +S7050800800072 diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/boot.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/boot.c new file mode 100644 index 00000000..6aa081d6 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/boot.c @@ -0,0 +1,210 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\boot.c +* \brief Demo program bootloader interface source file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "header.h" /* generic header */ + + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +#if (BOOT_COM_UART_ENABLE > 0) +static void BootComUartInit(void); +static void BootComUartCheckActivationRequest(void); +#endif + +/************************************************************************************//** +** \brief Initializes the communication interface. +** \return none. +** +****************************************************************************************/ +void BootComInit(void) +{ +#if (BOOT_COM_UART_ENABLE > 0) + BootComUartInit(); +#endif +} /*** end of BootComInit ***/ + + +/************************************************************************************//** +** \brief Receives the CONNECT request from the host, which indicates that the +** bootloader should be activated and, if so, activates it. +** \return none. +** +****************************************************************************************/ +void BootComCheckActivationRequest(void) +{ +#if (BOOT_COM_UART_ENABLE > 0) + BootComUartCheckActivationRequest(); +#endif +} /*** end of BootComCheckActivationRequest ***/ + + +/************************************************************************************//** +** \brief Bootloader activation function. +** \return none. +** +****************************************************************************************/ +void BootActivate(void) +{ + /* perform software reset to activate the bootoader again */ + NVIC_SystemReset(); +} /*** end of BootActivate ***/ + + +#if (BOOT_COM_UART_ENABLE > 0) +/**************************************************************************************** +* U N I V E R S A L A S Y N C H R O N O U S R X T X I N T E R F A C E +****************************************************************************************/ + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +static unsigned char UartReceiveByte(unsigned char *data); + + +/************************************************************************************//** +** \brief Initializes the UART communication interface. +** \return none. +** +****************************************************************************************/ +static void BootComUartInit(void) +{ + GPIO_InitTypeDef GPIO_InitStruct; + USART_InitTypeDef USART_InitStruct; + + /* enable UART peripheral clock */ + RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART3, ENABLE); + /* enable GPIO peripheral clock for transmitter and receiver pins */ + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE); + /* connect the pin to the peripherals alternate function */ + GPIO_PinAFConfig(GPIOD, GPIO_PinSource8, GPIO_AF_USART3); + GPIO_PinAFConfig(GPIOD, GPIO_PinSource9, GPIO_AF_USART3); + /* configure USART Tx as alternate function */ + GPIO_InitStruct.GPIO_OType = GPIO_OType_PP; + GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_UP; + GPIO_InitStruct.GPIO_Mode = GPIO_Mode_AF; + GPIO_InitStruct.GPIO_Pin = GPIO_Pin_8; + GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_Init(GPIOD, &GPIO_InitStruct); + /* configure USART Rx as alternate function */ + GPIO_InitStruct.GPIO_Mode = GPIO_Mode_AF; + GPIO_InitStruct.GPIO_Pin = GPIO_Pin_9; + GPIO_Init(GPIOD, &GPIO_InitStruct); + + /* configure UART communication parameters */ + USART_InitStruct.USART_BaudRate = BOOT_COM_UART_BAUDRATE; + USART_InitStruct.USART_WordLength = USART_WordLength_8b; + USART_InitStruct.USART_StopBits = USART_StopBits_1; + USART_InitStruct.USART_Parity = USART_Parity_No; + USART_InitStruct.USART_HardwareFlowControl = USART_HardwareFlowControl_None; + USART_InitStruct.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; + USART_Init(USART3, &USART_InitStruct); + /* enable UART */ + USART_Cmd(USART3, ENABLE); +} /*** end of BootComUartInit ***/ + + +/************************************************************************************//** +** \brief Receives the CONNECT request from the host, which indicates that the +** bootloader should be activated and, if so, activates it. +** \return none. +** +****************************************************************************************/ +static void BootComUartCheckActivationRequest(void) +{ + static unsigned char xcpCtoReqPacket[BOOT_COM_UART_RX_MAX_DATA+1]; + static unsigned char xcpCtoRxLength; + static unsigned char xcpCtoRxInProgress = 0; + + /* start of cto packet received? */ + if (xcpCtoRxInProgress == 0) + { + /* store the message length when received */ + if (UartReceiveByte(&xcpCtoReqPacket[0]) == 1) + { + /* indicate that a cto packet is being received */ + xcpCtoRxInProgress = 1; + + /* reset packet data count */ + xcpCtoRxLength = 0; + } + } + else + { + /* store the next packet byte */ + if (UartReceiveByte(&xcpCtoReqPacket[xcpCtoRxLength+1]) == 1) + { + /* increment the packet data count */ + xcpCtoRxLength++; + + /* check to see if the entire packet was received */ + if (xcpCtoRxLength == xcpCtoReqPacket[0]) + { + /* done with cto packet reception */ + xcpCtoRxInProgress = 0; + + /* check if this was an XCP CONNECT command */ + if ((xcpCtoReqPacket[1] == 0xff) && (xcpCtoReqPacket[2] == 0x00)) + { + /* connection request received so start the bootloader */ + BootActivate(); + } + } + } + } +} /*** end of BootComUartCheckActivationRequest ***/ + + +/************************************************************************************//** +** \brief Receives a communication interface byte if one is present. +** \param data Pointer to byte where the data is to be stored. +** \return 1 if a byte was received, 0 otherwise. +** +****************************************************************************************/ +static unsigned char UartReceiveByte(unsigned char *data) +{ + /* check flag to see if a byte was received */ + if (USART_GetFlagStatus(USART3, USART_FLAG_RXNE) == SET) + { + /* retrieve and store the newly received byte */ + *data = (unsigned char)USART_ReceiveData(USART3); + /* all done */ + return 1; + } + /* still here to no new byte received */ + return 0; +} /*** end of UartReceiveByte ***/ +#endif /* BOOT_COM_UART_ENABLE > 0 */ + + + + +/*********************************** end of boot.c *************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/boot.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/boot.h new file mode 100644 index 00000000..da050b8e --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/boot.h @@ -0,0 +1,40 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\boot.h +* \brief Demo program bootloader interface header file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef BOOT_H +#define BOOT_H + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +void BootComInit(void); +void BootComCheckActivationRequest(void); +void BootActivate(void); + + +#endif /* BOOT_H */ +/*********************************** end of boot.h *************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/header.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/header.h new file mode 100644 index 00000000..c29a9066 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/header.h @@ -0,0 +1,43 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\header.h +* \brief Generic header file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef HEADER_H +#define HEADER_H + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "../Boot/blt_conf.h" /* bootloader configuration */ +#include "stm32f2xx.h" /* STM32 registers and drivers */ +#include "boot.h" /* bootloader interface driver */ +#include "irq.h" /* IRQ driver */ +#include "led.h" /* LED driver */ +#include "timer.h" /* Timer driver */ + + +#endif /* HEADER_H */ +/*********************************** end of header.h ***********************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.depend b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.depend new file mode 100644 index 00000000..f8a5c8df --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.depend @@ -0,0 +1,1086 @@ +# depslib dependency file v1.0 +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\misc.c + "misc.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\misc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\inc\stm32f2xx.h + "core_cm3.h" + "system_stm32f2xx.h" + + "stm32f2xx_conf.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\cmsis\core_cm3.h + + + + +1469192681 c:\users\voorburg\desktop\stm32f207\cmsis\core_cminstr.h + + + +1469192681 c:\users\voorburg\desktop\stm32f207\cmsis\core_cmfunc.h + + + +1469192680 c:\users\voorburg\desktop\stm32f207\inc\system_stm32f2xx.h + +1469192681 c:\users\voorburg\desktop\stm32f207\inc\stm32f2xx_conf.h + "stm32f2xx_adc.h" + "stm32f2xx_can.h" + "stm32f2xx_crc.h" + "stm32f2xx_cryp.h" + "stm32f2xx_dac.h" + "stm32f2xx_dbgmcu.h" + "stm32f2xx_dcmi.h" + "stm32f2xx_dma.h" + "stm32f2xx_exti.h" + "stm32f2xx_flash.h" + "stm32f2xx_fsmc.h" + "stm32f2xx_hash.h" + "stm32f2xx_gpio.h" + "stm32f2xx_i2c.h" + "stm32f2xx_iwdg.h" + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + "stm32f2xx_rng.h" + "stm32f2xx_rtc.h" + "stm32f2xx_sdio.h" + "stm32f2xx_spi.h" + "stm32f2xx_syscfg.h" + "stm32f2xx_tim.h" + "stm32f2xx_usart.h" + "stm32f2xx_wwdg.h" + "misc.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_adc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_can.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_crc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_cryp.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_dac.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_dbgmcu.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_dcmi.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_dma.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_exti.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_flash.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_fsmc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_hash.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_gpio.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_i2c.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_iwdg.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_pwr.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_rcc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_rng.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_rtc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_sdio.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_spi.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_syscfg.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_tim.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_usart.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32f207\spl\inc\stm32f2xx_wwdg.h + "stm32f2xx.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_adc.c + "stm32f2xx_adc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_can.c + "stm32f2xx_can.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_crc.c + "stm32f2xx_crc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_cryp.c + "stm32f2xx_cryp.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_cryp_aes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_cryp_des.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_cryp_tdes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_dac.c + "stm32f2xx_dac.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_dbgmcu.c + "stm32f2xx_dbgmcu.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_dcmi.c + "stm32f2xx_dcmi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_dma.c + "stm32f2xx_dma.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_exti.c + "stm32f2xx_exti.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_flash.c + "stm32f2xx_flash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_fsmc.c + "stm32f2xx_fsmc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_gpio.c + "stm32f2xx_gpio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_hash.c + "stm32f2xx_hash.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_hash_md5.c + "stm32f2xx_hash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_hash_sha1.c + "stm32f2xx_hash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_i2c.c + "stm32f2xx_i2c.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_iwdg.c + "stm32f2xx_iwdg.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_pwr.c + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_rcc.c + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_rng.c + "stm32f2xx_rng.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_rtc.c + "stm32f2xx_rtc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_sdio.c + "stm32f2xx_sdio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_spi.c + "stm32f2xx_spi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_syscfg.c + "stm32f2xx_syscfg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_tim.c + "stm32f2xx_tim.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_usart.c + "stm32f2xx_usart.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\spl\src\stm32f2xx_wwdg.c + "stm32f2xx_wwdg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32f207\src\main.c + "stm32f2xx_conf.h" + +1469192680 source:c:\users\voorburg\desktop\stm32f207\src\startup_stm32f2xx.s + +1469192680 source:c:\users\voorburg\desktop\stm32f207\src\system_stm32f2xx.c + "stm32f2xx.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\misc.c + "misc.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\misc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\stm32f2xx.h + "core_cm3.h" + "system_stm32f2xx.h" + + "stm32f2xx_conf.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\cmsis\core_cm3.h + + + + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\cmsis\core_cminstr.h + + + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\cmsis\core_cmfunc.h + + + +1469192680 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\system_stm32f2xx.h + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\stm32f2xx_conf.h + "stm32f2xx_adc.h" + "stm32f2xx_can.h" + "stm32f2xx_crc.h" + "stm32f2xx_cryp.h" + "stm32f2xx_dac.h" + "stm32f2xx_dbgmcu.h" + "stm32f2xx_dcmi.h" + "stm32f2xx_dma.h" + "stm32f2xx_exti.h" + "stm32f2xx_flash.h" + "stm32f2xx_fsmc.h" + "stm32f2xx_hash.h" + "stm32f2xx_gpio.h" + "stm32f2xx_i2c.h" + "stm32f2xx_iwdg.h" + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + "stm32f2xx_rng.h" + "stm32f2xx_rtc.h" + "stm32f2xx_sdio.h" + "stm32f2xx_spi.h" + "stm32f2xx_syscfg.h" + "stm32f2xx_tim.h" + "stm32f2xx_usart.h" + "stm32f2xx_wwdg.h" + "misc.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_adc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_can.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_crc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_cryp.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_dac.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_dbgmcu.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_dcmi.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_dma.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_exti.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_flash.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_fsmc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_hash.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_gpio.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_i2c.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_iwdg.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_pwr.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_rcc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_rng.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_rtc.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_sdio.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_spi.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_syscfg.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_tim.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_usart.h + "stm32f2xx.h" + +1469192681 c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\inc\stm32f2xx_wwdg.h + "stm32f2xx.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_adc.c + "stm32f2xx_adc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_can.c + "stm32f2xx_can.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_crc.c + "stm32f2xx_crc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_cryp.c + "stm32f2xx_cryp.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_cryp_aes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_cryp_des.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_cryp_tdes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_dac.c + "stm32f2xx_dac.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_dbgmcu.c + "stm32f2xx_dbgmcu.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_dcmi.c + "stm32f2xx_dcmi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_dma.c + "stm32f2xx_dma.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_exti.c + "stm32f2xx_exti.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_flash.c + "stm32f2xx_flash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_fsmc.c + "stm32f2xx_fsmc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_gpio.c + "stm32f2xx_gpio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_hash.c + "stm32f2xx_hash.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_hash_md5.c + "stm32f2xx_hash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_hash_sha1.c + "stm32f2xx_hash.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_i2c.c + "stm32f2xx_i2c.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_iwdg.c + "stm32f2xx_iwdg.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_pwr.c + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_rcc.c + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_rng.c + "stm32f2xx_rng.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_rtc.c + "stm32f2xx_rtc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_sdio.c + "stm32f2xx_sdio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_spi.c + "stm32f2xx_spi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_syscfg.c + "stm32f2xx_syscfg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_tim.c + "stm32f2xx_tim.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_usart.c + "stm32f2xx_usart.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\lib\spl\src\stm32f2xx_wwdg.c + "stm32f2xx_wwdg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\main.c + "stm32f2xx_conf.h" + +1469192680 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\startup_stm32f2xx.s + +1469192680 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\system_stm32f2xx.c + "stm32f2xx.h" + +1461839136 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\app.c + "header.h" + +1461838668 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\header.h + + + "os.h" + "hw.h" + "app.h" + +1452185952 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\os\os.h + +1469195136 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\hw.h + "stm32f2xx_conf.h" + "led.h" + +1452186099 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\led.h + +1452185785 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\app.h + "assert.h" + +1452185438 c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\assert.h + +1452185562 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\app\assert.c + "header.h" + +1461838984 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\hw.c + "header.h" + +1469196060 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\hw\led.c + "header.h" + +1452185952 source:c:\users\voorburg\desktop\stm32p207_emblocks_os\src\os\os.c + "os.h" + +1461839136 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\app.c + "header.h" + +1461838668 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\header.h + + + "os.h" + "hw.h" + "app.h" + +1452185952 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\os.h + +1469195136 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\hw.h + "stm32f2xx_conf.h" + "led.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\stm32f2xx_conf.h + "stm32f2xx_adc.h" + "stm32f2xx_can.h" + "stm32f2xx_crc.h" + "stm32f2xx_cryp.h" + "stm32f2xx_dac.h" + "stm32f2xx_dbgmcu.h" + "stm32f2xx_dcmi.h" + "stm32f2xx_dma.h" + "stm32f2xx_exti.h" + "stm32f2xx_flash.h" + "stm32f2xx_fsmc.h" + "stm32f2xx_hash.h" + "stm32f2xx_gpio.h" + "stm32f2xx_i2c.h" + "stm32f2xx_iwdg.h" + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + "stm32f2xx_rng.h" + "stm32f2xx_rtc.h" + "stm32f2xx_sdio.h" + "stm32f2xx_spi.h" + "stm32f2xx_syscfg.h" + "stm32f2xx_tim.h" + "stm32f2xx_usart.h" + "stm32f2xx_wwdg.h" + "misc.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_adc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\stm32f2xx.h + "core_cm3.h" + "system_stm32f2xx.h" + + "stm32f2xx_conf.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\cmsis\core_cm3.h + + + + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\cmsis\core_cminstr.h + + + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\cmsis\core_cmfunc.h + + + +1469192680 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\system_stm32f2xx.h + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_can.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_crc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_cryp.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_dac.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_dbgmcu.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_dcmi.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_dma.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_exti.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_flash.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_fsmc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_hash.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_gpio.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_i2c.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_iwdg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_pwr.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_rcc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_rng.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_rtc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_sdio.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_spi.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_syscfg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_tim.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_usart.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\stm32f2xx_wwdg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\inc\misc.h + "stm32f2xx.h" + +1452186099 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\led.h + +1452185785 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\app.h + "assert.h" + +1452185438 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\assert.h + +1452185562 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\assert.c + "header.h" + +1461838984 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\hw.c + "header.h" + +1469196060 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\led.c + "header.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\misc.c + "misc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_adc.c + "stm32f2xx_adc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_can.c + "stm32f2xx_can.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_crc.c + "stm32f2xx_crc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_cryp.c + "stm32f2xx_cryp.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_cryp_aes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_cryp_des.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_cryp_tdes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_dac.c + "stm32f2xx_dac.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_dbgmcu.c + "stm32f2xx_dbgmcu.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_dcmi.c + "stm32f2xx_dcmi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_dma.c + "stm32f2xx_dma.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_exti.c + "stm32f2xx_exti.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_flash.c + "stm32f2xx_flash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_fsmc.c + "stm32f2xx_fsmc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_gpio.c + "stm32f2xx_gpio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_hash.c + "stm32f2xx_hash.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_hash_md5.c + "stm32f2xx_hash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_hash_sha1.c + "stm32f2xx_hash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_i2c.c + "stm32f2xx_i2c.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_iwdg.c + "stm32f2xx_iwdg.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_pwr.c + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_rcc.c + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_rng.c + "stm32f2xx_rng.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_rtc.c + "stm32f2xx_rtc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_sdio.c + "stm32f2xx_sdio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_spi.c + "stm32f2xx_spi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_syscfg.c + "stm32f2xx_syscfg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_tim.c + "stm32f2xx_tim.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_usart.c + "stm32f2xx_usart.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\spl\src\stm32f2xx_wwdg.c + "stm32f2xx_wwdg.h" + "stm32f2xx_rcc.h" + +1469192680 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\lib\system_stm32f2xx.c + "stm32f2xx.h" + +1452185952 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\os.c + "os.h" + +1469192680 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\startup_stm32f2xx.s + +1469278605 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\boot.c + "header.h" + +1469272998 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\header.h + "../Boot/blt_conf.h" + "stm32f2xx.h" + "boot.h" + "irq.h" + "led.h" + "timer.h" + +1469285352 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\boot\blt_conf.h + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\stm32f2xx.h + "core_cm3.h" + "system_stm32f2xx.h" + + "stm32f2xx_conf.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\cmsis\core_cm3.h + + + + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\cmsis\core_cminstr.h + + + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\cmsis\core_cmfunc.h + + + +1469192680 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\system_stm32f2xx.h + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\stm32f2xx_conf.h + "stm32f2xx_adc.h" + "stm32f2xx_can.h" + "stm32f2xx_crc.h" + "stm32f2xx_cryp.h" + "stm32f2xx_dac.h" + "stm32f2xx_dbgmcu.h" + "stm32f2xx_dcmi.h" + "stm32f2xx_dma.h" + "stm32f2xx_exti.h" + "stm32f2xx_flash.h" + "stm32f2xx_fsmc.h" + "stm32f2xx_hash.h" + "stm32f2xx_gpio.h" + "stm32f2xx_i2c.h" + "stm32f2xx_iwdg.h" + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + "stm32f2xx_rng.h" + "stm32f2xx_rtc.h" + "stm32f2xx_sdio.h" + "stm32f2xx_spi.h" + "stm32f2xx_syscfg.h" + "stm32f2xx_tim.h" + "stm32f2xx_usart.h" + "stm32f2xx_wwdg.h" + "misc.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_adc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_can.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_crc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_cryp.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_dac.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_dbgmcu.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_dcmi.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_dma.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_exti.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_flash.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_fsmc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_hash.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_gpio.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_i2c.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_iwdg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_pwr.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_rcc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_rng.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_rtc.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_sdio.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_spi.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_syscfg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_tim.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_usart.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\stm32f2xx_wwdg.h + "stm32f2xx.h" + +1469192681 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\inc\misc.h + "stm32f2xx.h" + +1469272865 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\boot.h + +1469272883 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\irq.h + +1469272894 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\led.h + +1469272913 c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\timer.h + +1469272878 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\irq.c + "header.h" + +1469274268 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\led.c + "header.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\misc.c + "misc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_adc.c + "stm32f2xx_adc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_can.c + "stm32f2xx_can.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_crc.c + "stm32f2xx_crc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_cryp.c + "stm32f2xx_cryp.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_cryp_aes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_cryp_des.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_cryp_tdes.c + "stm32f2xx_cryp.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_dac.c + "stm32f2xx_dac.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_dbgmcu.c + "stm32f2xx_dbgmcu.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_dcmi.c + "stm32f2xx_dcmi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_dma.c + "stm32f2xx_dma.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_exti.c + "stm32f2xx_exti.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_flash.c + "stm32f2xx_flash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_fsmc.c + "stm32f2xx_fsmc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_gpio.c + "stm32f2xx_gpio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_hash.c + "stm32f2xx_hash.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_hash_md5.c + "stm32f2xx_hash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_hash_sha1.c + "stm32f2xx_hash.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_i2c.c + "stm32f2xx_i2c.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_iwdg.c + "stm32f2xx_iwdg.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_pwr.c + "stm32f2xx_pwr.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_rcc.c + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_rng.c + "stm32f2xx_rng.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_rtc.c + "stm32f2xx_rtc.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_sdio.c + "stm32f2xx_sdio.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_spi.c + "stm32f2xx_spi.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_syscfg.c + "stm32f2xx_syscfg.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_tim.c + "stm32f2xx_tim.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_usart.c + "stm32f2xx_usart.h" + "stm32f2xx_rcc.h" + +1469192681 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\spl\src\stm32f2xx_wwdg.c + "stm32f2xx_wwdg.h" + "stm32f2xx_rcc.h" + +1469274192 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\lib\system_stm32f2xx.c + "stm32f2xx.h" + +1469278101 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\startup_stm32f2xx.s + +1469273246 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\timer.c + "header.h" + +1469273369 source:c:\work\software\openblt\target\demo\armcm3_stm32f2_olimex_stm32p207_gcc\prog\main.c + "header.h" + diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.ebp b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.ebp new file mode 100644 index 00000000..35a8d7d6 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.ebp @@ -0,0 +1,369 @@ + + + + + + + diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.elay b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.elay new file mode 100644 index 00000000..49501f70 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/ide/stm32f207.elay @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/irq.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/irq.c new file mode 100644 index 00000000..17151bc8 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/irq.c @@ -0,0 +1,89 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\irq.c +* \brief IRQ driver source file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "header.h" /* generic header */ + + +/**************************************************************************************** +* Local data definitions +****************************************************************************************/ +/** \brief Interrupt nesting counter. Used for global interrupt en/disable. */ +static unsigned char interruptNesting = 0; + + +/************************************************************************************//** +** \brief Enables the generation IRQ interrupts. Typically called once during +** software startup after completion of the initialization. +** \return none. +** +****************************************************************************************/ +void IrqInterruptEnable(void) +{ + __enable_irq(); +} /*** end of IrqInterruptEnable ***/ + + +/************************************************************************************//** +** \brief Disables the generation IRQ interrupts and stores information on +** whether or not the interrupts were already disabled before explicitly +** disabling them with this function. Normally used as a pair together +** with IrqInterruptRestore during a critical section. +** \return none. +** +****************************************************************************************/ +void IrqInterruptDisable(void) +{ + if (interruptNesting == 0) + { + __disable_irq(); + } + interruptNesting++; +} /*** end of IrqInterruptDisable ***/ + + +/************************************************************************************//** +** \brief Restore the generation IRQ interrupts to the setting it had prior to +** calling IrqInterruptDisable. Normally used as a pair together with +** IrqInterruptDisable during a critical section. +** \return none. +** +****************************************************************************************/ +void IrqInterruptRestore(void) +{ + interruptNesting--; + if (interruptNesting == 0) + { + __enable_irq(); + } +} /*** end of IrqInterruptRestore ***/ + + +/*********************************** end of irq.c **************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/irq.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/irq.h new file mode 100644 index 00000000..f3108e31 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/irq.h @@ -0,0 +1,40 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\irq.h +* \brief IRQ driver header file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef IRQ_H +#define IRQ_H + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +void IrqInterruptEnable(void); +void IrqInterruptDisable(void); +void IrqInterruptRestore(void); + + +#endif /* IRQ_H */ +/*********************************** end of irq.h **************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/led.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/led.c new file mode 100644 index 00000000..b1ebe236 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/led.c @@ -0,0 +1,104 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\led.c +* \brief LED driver source file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "header.h" /* generic header */ + + +/**************************************************************************************** +* Macro definitions +****************************************************************************************/ +/** \brief Toggle interval time in milliseconds. */ +#define LED_TOGGLE_MS (500) + + +/************************************************************************************//** +** \brief Initializes the LED. The board doesn't have a dedicted LED so an +** indicator on the LCD is used instead. +** \return none. +** +****************************************************************************************/ +void LedInit(void) +{ + GPIO_InitTypeDef GPIO_InitStructure; + + /* GPIOF peripheral clock enable for LED_STAT1 */ + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE); + + /* configure PF6 with as output with internal pull-up */ + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8; + GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; + GPIO_Init(GPIOF, &GPIO_InitStructure); + GPIO_ResetBits(GPIOF, GPIO_Pin_8); +} /*** end of LedInit ***/ + + +/************************************************************************************//** +** \brief Toggles the LED at a fixed time interval. +** \return none. +** +****************************************************************************************/ +void LedToggle(void) +{ + static unsigned char led_toggle_state = 0; + static unsigned long timer_counter_last = 0; + unsigned long timer_counter_now; + + /* check if toggle interval time passed */ + timer_counter_now = TimerGet(); + if ( (timer_counter_now - timer_counter_last) < LED_TOGGLE_MS) + { + /* not yet time to toggle */ + return; + } + + /* determine toggle action */ + if (led_toggle_state == 0) + { + led_toggle_state = 1; + /* turn the LED on */ + GPIO_SetBits(GPIOF, GPIO_Pin_8); + } + else + { + led_toggle_state = 0; + /* turn the LED off */ + GPIO_ResetBits(GPIOF, GPIO_Pin_8); + } + + /* store toggle time to determine next toggle interval */ + timer_counter_last = timer_counter_now; +} /*** end of LedToggle ***/ + + +/*********************************** end of led.c **************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/led.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/led.h new file mode 100644 index 00000000..418d1b33 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/led.h @@ -0,0 +1,39 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\led.h +* \brief LED driver header file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef LED_H +#define LED_H + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +void LedInit(void); +void LedToggle(void); + + +#endif /* LED_H */ +/*********************************** end of led.h **************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/misc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/misc.h new file mode 100644 index 00000000..aec4c361 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/misc.h @@ -0,0 +1,178 @@ +/** + ****************************************************************************** + * @file misc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the miscellaneous + * firmware library functions (add-on to CMSIS functions). + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __MISC_H +#define __MISC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup MISC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief NVIC Init Structure definition + */ + +typedef struct +{ + uint8_t NVIC_IRQChannel; /*!< Specifies the IRQ channel to be enabled or disabled. + This parameter can be an enumerator of @ref IRQn_Type + enumeration (For the complete STM32 Devices IRQ Channels + list, please refer to stm32f2xx.h file) */ + + uint8_t NVIC_IRQChannelPreemptionPriority; /*!< Specifies the pre-emption priority for the IRQ channel + specified in NVIC_IRQChannel. This parameter can be a value + between 0 and 15 as described in the table @ref MISC_NVIC_Priority_Table + A lower priority value indicates a higher priority */ + + uint8_t NVIC_IRQChannelSubPriority; /*!< Specifies the subpriority level for the IRQ channel specified + in NVIC_IRQChannel. This parameter can be a value + between 0 and 15 as described in the table @ref MISC_NVIC_Priority_Table + A lower priority value indicates a higher priority */ + + FunctionalState NVIC_IRQChannelCmd; /*!< Specifies whether the IRQ channel defined in NVIC_IRQChannel + will be enabled or disabled. + This parameter can be set either to ENABLE or DISABLE */ +} NVIC_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup MISC_Exported_Constants + * @{ + */ + +/** @defgroup MISC_Vector_Table_Base + * @{ + */ + +#define NVIC_VectTab_RAM ((uint32_t)0x20000000) +#define NVIC_VectTab_FLASH ((uint32_t)0x08000000) +#define IS_NVIC_VECTTAB(VECTTAB) (((VECTTAB) == NVIC_VectTab_RAM) || \ + ((VECTTAB) == NVIC_VectTab_FLASH)) +/** + * @} + */ + +/** @defgroup MISC_System_Low_Power + * @{ + */ + +#define NVIC_LP_SEVONPEND ((uint8_t)0x10) +#define NVIC_LP_SLEEPDEEP ((uint8_t)0x04) +#define NVIC_LP_SLEEPONEXIT ((uint8_t)0x02) +#define IS_NVIC_LP(LP) (((LP) == NVIC_LP_SEVONPEND) || \ + ((LP) == NVIC_LP_SLEEPDEEP) || \ + ((LP) == NVIC_LP_SLEEPONEXIT)) +/** + * @} + */ + +/** @defgroup MISC_Preemption_Priority_Group + * @{ + */ + +#define NVIC_PriorityGroup_0 ((uint32_t)0x700) /*!< 0 bits for pre-emption priority + 4 bits for subpriority */ +#define NVIC_PriorityGroup_1 ((uint32_t)0x600) /*!< 1 bits for pre-emption priority + 3 bits for subpriority */ +#define NVIC_PriorityGroup_2 ((uint32_t)0x500) /*!< 2 bits for pre-emption priority + 2 bits for subpriority */ +#define NVIC_PriorityGroup_3 ((uint32_t)0x400) /*!< 3 bits for pre-emption priority + 1 bits for subpriority */ +#define NVIC_PriorityGroup_4 ((uint32_t)0x300) /*!< 4 bits for pre-emption priority + 0 bits for subpriority */ + +#define IS_NVIC_PRIORITY_GROUP(GROUP) (((GROUP) == NVIC_PriorityGroup_0) || \ + ((GROUP) == NVIC_PriorityGroup_1) || \ + ((GROUP) == NVIC_PriorityGroup_2) || \ + ((GROUP) == NVIC_PriorityGroup_3) || \ + ((GROUP) == NVIC_PriorityGroup_4)) + +#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY) ((PRIORITY) < 0x10) + +#define IS_NVIC_SUB_PRIORITY(PRIORITY) ((PRIORITY) < 0x10) + +#define IS_NVIC_OFFSET(OFFSET) ((OFFSET) < 0x000FFFFF) + +/** + * @} + */ + +/** @defgroup MISC_SysTick_clock_source + * @{ + */ + +#define SysTick_CLKSource_HCLK_Div8 ((uint32_t)0xFFFFFFFB) +#define SysTick_CLKSource_HCLK ((uint32_t)0x00000004) +#define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SysTick_CLKSource_HCLK) || \ + ((SOURCE) == SysTick_CLKSource_HCLK_Div8)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup); +void NVIC_Init(NVIC_InitTypeDef* NVIC_InitStruct); +void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset); +void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState); +void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource); + +#ifdef __cplusplus +} +#endif + +#endif /* __MISC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_adc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_adc.h new file mode 100644 index 00000000..e8a52b31 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_adc.h @@ -0,0 +1,649 @@ +/** + ****************************************************************************** + * @file stm32f2xx_adc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the ADC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_ADC_H +#define __STM32F2xx_ADC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup ADC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief ADC Init structure definition + */ +typedef struct +{ + uint32_t ADC_Resolution; /*!< Configures the ADC resolution dual mode. + This parameter can be a value of @ref ADC_resolution */ + FunctionalState ADC_ScanConvMode; /*!< Specifies whether the conversion + is performed in Scan (multichannels) + or Single (one channel) mode. + This parameter can be set to ENABLE or DISABLE */ + FunctionalState ADC_ContinuousConvMode; /*!< Specifies whether the conversion + is performed in Continuous or Single mode. + This parameter can be set to ENABLE or DISABLE. */ + uint32_t ADC_ExternalTrigConvEdge; /*!< Select the external trigger edge and + enable the trigger of a regular group. + This parameter can be a value of + @ref ADC_external_trigger_edge_for_regular_channels_conversion */ + uint32_t ADC_ExternalTrigConv; /*!< Select the external event used to trigger + the start of conversion of a regular group. + This parameter can be a value of + @ref ADC_extrenal_trigger_sources_for_regular_channels_conversion */ + uint32_t ADC_DataAlign; /*!< Specifies whether the ADC data alignment + is left or right. This parameter can be + a value of @ref ADC_data_align */ + uint8_t ADC_NbrOfConversion; /*!< Specifies the number of ADC conversions + that will be done using the sequencer for + regular channel group. + This parameter must range from 1 to 16. */ +}ADC_InitTypeDef; + +/** + * @brief ADC Common Init structure definition + */ +typedef struct +{ + uint32_t ADC_Mode; /*!< Configures the ADC to operate in + independent or multi mode. + This parameter can be a value of @ref ADC_Common_mode */ + uint32_t ADC_Prescaler; /*!< Select the frequency of the clock + to the ADC. The clock is common for all the ADCs. + This parameter can be a value of @ref ADC_Prescaler */ + uint32_t ADC_DMAAccessMode; /*!< Configures the Direct memory access + mode for multi ADC mode. + This parameter can be a value of + @ref ADC_Direct_memory_access_mode_for_multi_mode */ + uint32_t ADC_TwoSamplingDelay; /*!< Configures the Delay between 2 sampling phases. + This parameter can be a value of + @ref ADC_delay_between_2_sampling_phases */ + +}ADC_CommonInitTypeDef; + + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup ADC_Exported_Constants + * @{ + */ +#define IS_ADC_ALL_PERIPH(PERIPH) (((PERIPH) == ADC1) || \ + ((PERIPH) == ADC2) || \ + ((PERIPH) == ADC3)) + +/** @defgroup ADC_Common_mode + * @{ + */ +#define ADC_Mode_Independent ((uint32_t)0x00000000) +#define ADC_DualMode_RegSimult_InjecSimult ((uint32_t)0x00000001) +#define ADC_DualMode_RegSimult_AlterTrig ((uint32_t)0x00000002) +#define ADC_DualMode_InjecSimult ((uint32_t)0x00000005) +#define ADC_DualMode_RegSimult ((uint32_t)0x00000006) +#define ADC_DualMode_Interl ((uint32_t)0x00000007) +#define ADC_DualMode_AlterTrig ((uint32_t)0x00000009) +#define ADC_TripleMode_RegSimult_InjecSimult ((uint32_t)0x00000011) +#define ADC_TripleMode_RegSimult_AlterTrig ((uint32_t)0x00000012) +#define ADC_TripleMode_InjecSimult ((uint32_t)0x00000015) +#define ADC_TripleMode_RegSimult ((uint32_t)0x00000016) +#define ADC_TripleMode_Interl ((uint32_t)0x00000017) +#define ADC_TripleMode_AlterTrig ((uint32_t)0x00000019) +#define IS_ADC_MODE(MODE) (((MODE) == ADC_Mode_Independent) || \ + ((MODE) == ADC_DualMode_RegSimult_InjecSimult) || \ + ((MODE) == ADC_DualMode_RegSimult_AlterTrig) || \ + ((MODE) == ADC_DualMode_InjecSimult) || \ + ((MODE) == ADC_DualMode_RegSimult) || \ + ((MODE) == ADC_DualMode_Interl) || \ + ((MODE) == ADC_DualMode_AlterTrig) || \ + ((MODE) == ADC_TripleMode_RegSimult_InjecSimult) || \ + ((MODE) == ADC_TripleMode_RegSimult_AlterTrig) || \ + ((MODE) == ADC_TripleMode_InjecSimult) || \ + ((MODE) == ADC_TripleMode_RegSimult) || \ + ((MODE) == ADC_TripleMode_Interl) || \ + ((MODE) == ADC_TripleMode_AlterTrig)) +/** + * @} + */ + + +/** @defgroup ADC_Prescaler + * @{ + */ +#define ADC_Prescaler_Div2 ((uint32_t)0x00000000) +#define ADC_Prescaler_Div4 ((uint32_t)0x00010000) +#define ADC_Prescaler_Div6 ((uint32_t)0x00020000) +#define ADC_Prescaler_Div8 ((uint32_t)0x00030000) +#define IS_ADC_PRESCALER(PRESCALER) (((PRESCALER) == ADC_Prescaler_Div2) || \ + ((PRESCALER) == ADC_Prescaler_Div4) || \ + ((PRESCALER) == ADC_Prescaler_Div6) || \ + ((PRESCALER) == ADC_Prescaler_Div8)) +/** + * @} + */ + + +/** @defgroup ADC_Direct_memory_access_mode_for_multi_mode + * @{ + */ +#define ADC_DMAAccessMode_Disabled ((uint32_t)0x00000000) /* DMA mode disabled */ +#define ADC_DMAAccessMode_1 ((uint32_t)0x00004000) /* DMA mode 1 enabled (2 / 3 half-words one by one - 1 then 2 then 3)*/ +#define ADC_DMAAccessMode_2 ((uint32_t)0x00008000) /* DMA mode 2 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2)*/ +#define ADC_DMAAccessMode_3 ((uint32_t)0x0000C000) /* DMA mode 3 enabled (2 / 3 bytes by pairs - 2&1 then 1&3 then 3&2) */ +#define IS_ADC_DMA_ACCESS_MODE(MODE) (((MODE) == ADC_DMAAccessMode_Disabled) || \ + ((MODE) == ADC_DMAAccessMode_1) || \ + ((MODE) == ADC_DMAAccessMode_2) || \ + ((MODE) == ADC_DMAAccessMode_3)) + +/** + * @} + */ + + +/** @defgroup ADC_delay_between_2_sampling_phases + * @{ + */ +#define ADC_TwoSamplingDelay_5Cycles ((uint32_t)0x00000000) +#define ADC_TwoSamplingDelay_6Cycles ((uint32_t)0x00000100) +#define ADC_TwoSamplingDelay_7Cycles ((uint32_t)0x00000200) +#define ADC_TwoSamplingDelay_8Cycles ((uint32_t)0x00000300) +#define ADC_TwoSamplingDelay_9Cycles ((uint32_t)0x00000400) +#define ADC_TwoSamplingDelay_10Cycles ((uint32_t)0x00000500) +#define ADC_TwoSamplingDelay_11Cycles ((uint32_t)0x00000600) +#define ADC_TwoSamplingDelay_12Cycles ((uint32_t)0x00000700) +#define ADC_TwoSamplingDelay_13Cycles ((uint32_t)0x00000800) +#define ADC_TwoSamplingDelay_14Cycles ((uint32_t)0x00000900) +#define ADC_TwoSamplingDelay_15Cycles ((uint32_t)0x00000A00) +#define ADC_TwoSamplingDelay_16Cycles ((uint32_t)0x00000B00) +#define ADC_TwoSamplingDelay_17Cycles ((uint32_t)0x00000C00) +#define ADC_TwoSamplingDelay_18Cycles ((uint32_t)0x00000D00) +#define ADC_TwoSamplingDelay_19Cycles ((uint32_t)0x00000E00) +#define ADC_TwoSamplingDelay_20Cycles ((uint32_t)0x00000F00) +#define IS_ADC_SAMPLING_DELAY(DELAY) (((DELAY) == ADC_TwoSamplingDelay_5Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_6Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_7Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_8Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_9Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_10Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_11Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_12Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_13Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_14Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_15Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_16Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_17Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_18Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_19Cycles) || \ + ((DELAY) == ADC_TwoSamplingDelay_20Cycles)) + +/** + * @} + */ + + +/** @defgroup ADC_resolution + * @{ + */ +#define ADC_Resolution_12b ((uint32_t)0x00000000) +#define ADC_Resolution_10b ((uint32_t)0x01000000) +#define ADC_Resolution_8b ((uint32_t)0x02000000) +#define ADC_Resolution_6b ((uint32_t)0x03000000) +#define IS_ADC_RESOLUTION(RESOLUTION) (((RESOLUTION) == ADC_Resolution_12b) || \ + ((RESOLUTION) == ADC_Resolution_10b) || \ + ((RESOLUTION) == ADC_Resolution_8b) || \ + ((RESOLUTION) == ADC_Resolution_6b)) + +/** + * @} + */ + + +/** @defgroup ADC_external_trigger_edge_for_regular_channels_conversion + * @{ + */ +#define ADC_ExternalTrigConvEdge_None ((uint32_t)0x00000000) +#define ADC_ExternalTrigConvEdge_Rising ((uint32_t)0x10000000) +#define ADC_ExternalTrigConvEdge_Falling ((uint32_t)0x20000000) +#define ADC_ExternalTrigConvEdge_RisingFalling ((uint32_t)0x30000000) +#define IS_ADC_EXT_TRIG_EDGE(EDGE) (((EDGE) == ADC_ExternalTrigConvEdge_None) || \ + ((EDGE) == ADC_ExternalTrigConvEdge_Rising) || \ + ((EDGE) == ADC_ExternalTrigConvEdge_Falling) || \ + ((EDGE) == ADC_ExternalTrigConvEdge_RisingFalling)) +/** + * @} + */ + + +/** @defgroup ADC_extrenal_trigger_sources_for_regular_channels_conversion + * @{ + */ +#define ADC_ExternalTrigConv_T1_CC1 ((uint32_t)0x00000000) +#define ADC_ExternalTrigConv_T1_CC2 ((uint32_t)0x01000000) +#define ADC_ExternalTrigConv_T1_CC3 ((uint32_t)0x02000000) +#define ADC_ExternalTrigConv_T2_CC2 ((uint32_t)0x03000000) +#define ADC_ExternalTrigConv_T2_CC3 ((uint32_t)0x04000000) +#define ADC_ExternalTrigConv_T2_CC4 ((uint32_t)0x05000000) +#define ADC_ExternalTrigConv_T2_TRGO ((uint32_t)0x06000000) +#define ADC_ExternalTrigConv_T3_CC1 ((uint32_t)0x07000000) +#define ADC_ExternalTrigConv_T3_TRGO ((uint32_t)0x08000000) +#define ADC_ExternalTrigConv_T4_CC4 ((uint32_t)0x09000000) +#define ADC_ExternalTrigConv_T5_CC1 ((uint32_t)0x0A000000) +#define ADC_ExternalTrigConv_T5_CC2 ((uint32_t)0x0B000000) +#define ADC_ExternalTrigConv_T5_CC3 ((uint32_t)0x0C000000) +#define ADC_ExternalTrigConv_T8_CC1 ((uint32_t)0x0D000000) +#define ADC_ExternalTrigConv_T8_TRGO ((uint32_t)0x0E000000) +#define ADC_ExternalTrigConv_Ext_IT11 ((uint32_t)0x0F000000) +#define IS_ADC_EXT_TRIG(REGTRIG) (((REGTRIG) == ADC_ExternalTrigConv_T1_CC1) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T1_CC2) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T1_CC3) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T2_CC2) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T2_CC3) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T2_CC4) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T2_TRGO) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T3_CC1) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T3_TRGO) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T4_CC4) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T5_CC1) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T5_CC2) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T5_CC3) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T8_CC1) || \ + ((REGTRIG) == ADC_ExternalTrigConv_T8_TRGO) || \ + ((REGTRIG) == ADC_ExternalTrigConv_Ext_IT11)) +/** + * @} + */ + + +/** @defgroup ADC_data_align + * @{ + */ +#define ADC_DataAlign_Right ((uint32_t)0x00000000) +#define ADC_DataAlign_Left ((uint32_t)0x00000800) +#define IS_ADC_DATA_ALIGN(ALIGN) (((ALIGN) == ADC_DataAlign_Right) || \ + ((ALIGN) == ADC_DataAlign_Left)) +/** + * @} + */ + + +/** @defgroup ADC_channels + * @{ + */ +#define ADC_Channel_0 ((uint8_t)0x00) +#define ADC_Channel_1 ((uint8_t)0x01) +#define ADC_Channel_2 ((uint8_t)0x02) +#define ADC_Channel_3 ((uint8_t)0x03) +#define ADC_Channel_4 ((uint8_t)0x04) +#define ADC_Channel_5 ((uint8_t)0x05) +#define ADC_Channel_6 ((uint8_t)0x06) +#define ADC_Channel_7 ((uint8_t)0x07) +#define ADC_Channel_8 ((uint8_t)0x08) +#define ADC_Channel_9 ((uint8_t)0x09) +#define ADC_Channel_10 ((uint8_t)0x0A) +#define ADC_Channel_11 ((uint8_t)0x0B) +#define ADC_Channel_12 ((uint8_t)0x0C) +#define ADC_Channel_13 ((uint8_t)0x0D) +#define ADC_Channel_14 ((uint8_t)0x0E) +#define ADC_Channel_15 ((uint8_t)0x0F) +#define ADC_Channel_16 ((uint8_t)0x10) +#define ADC_Channel_17 ((uint8_t)0x11) +#define ADC_Channel_18 ((uint8_t)0x12) + +#define ADC_Channel_TempSensor ((uint8_t)ADC_Channel_16) +#define ADC_Channel_Vrefint ((uint8_t)ADC_Channel_17) +#define ADC_Channel_Vbat ((uint8_t)ADC_Channel_18) + +#define IS_ADC_CHANNEL(CHANNEL) (((CHANNEL) == ADC_Channel_0) || \ + ((CHANNEL) == ADC_Channel_1) || \ + ((CHANNEL) == ADC_Channel_2) || \ + ((CHANNEL) == ADC_Channel_3) || \ + ((CHANNEL) == ADC_Channel_4) || \ + ((CHANNEL) == ADC_Channel_5) || \ + ((CHANNEL) == ADC_Channel_6) || \ + ((CHANNEL) == ADC_Channel_7) || \ + ((CHANNEL) == ADC_Channel_8) || \ + ((CHANNEL) == ADC_Channel_9) || \ + ((CHANNEL) == ADC_Channel_10) || \ + ((CHANNEL) == ADC_Channel_11) || \ + ((CHANNEL) == ADC_Channel_12) || \ + ((CHANNEL) == ADC_Channel_13) || \ + ((CHANNEL) == ADC_Channel_14) || \ + ((CHANNEL) == ADC_Channel_15) || \ + ((CHANNEL) == ADC_Channel_16) || \ + ((CHANNEL) == ADC_Channel_17) || \ + ((CHANNEL) == ADC_Channel_18)) +/** + * @} + */ + + +/** @defgroup ADC_sampling_times + * @{ + */ +#define ADC_SampleTime_3Cycles ((uint8_t)0x00) +#define ADC_SampleTime_15Cycles ((uint8_t)0x01) +#define ADC_SampleTime_28Cycles ((uint8_t)0x02) +#define ADC_SampleTime_56Cycles ((uint8_t)0x03) +#define ADC_SampleTime_84Cycles ((uint8_t)0x04) +#define ADC_SampleTime_112Cycles ((uint8_t)0x05) +#define ADC_SampleTime_144Cycles ((uint8_t)0x06) +#define ADC_SampleTime_480Cycles ((uint8_t)0x07) +#define IS_ADC_SAMPLE_TIME(TIME) (((TIME) == ADC_SampleTime_3Cycles) || \ + ((TIME) == ADC_SampleTime_15Cycles) || \ + ((TIME) == ADC_SampleTime_28Cycles) || \ + ((TIME) == ADC_SampleTime_56Cycles) || \ + ((TIME) == ADC_SampleTime_84Cycles) || \ + ((TIME) == ADC_SampleTime_112Cycles) || \ + ((TIME) == ADC_SampleTime_144Cycles) || \ + ((TIME) == ADC_SampleTime_480Cycles)) +/** + * @} + */ + + +/** @defgroup ADC_external_trigger_edge_for_injected_channels_conversion + * @{ + */ +#define ADC_ExternalTrigInjecConvEdge_None ((uint32_t)0x00000000) +#define ADC_ExternalTrigInjecConvEdge_Rising ((uint32_t)0x00100000) +#define ADC_ExternalTrigInjecConvEdge_Falling ((uint32_t)0x00200000) +#define ADC_ExternalTrigInjecConvEdge_RisingFalling ((uint32_t)0x00300000) +#define IS_ADC_EXT_INJEC_TRIG_EDGE(EDGE) (((EDGE) == ADC_ExternalTrigInjecConvEdge_None) || \ + ((EDGE) == ADC_ExternalTrigInjecConvEdge_Rising) || \ + ((EDGE) == ADC_ExternalTrigInjecConvEdge_Falling) || \ + ((EDGE) == ADC_ExternalTrigInjecConvEdge_RisingFalling)) + +/** + * @} + */ + + +/** @defgroup ADC_extrenal_trigger_sources_for_injected_channels_conversion + * @{ + */ +#define ADC_ExternalTrigInjecConv_T1_CC4 ((uint32_t)0x00000000) +#define ADC_ExternalTrigInjecConv_T1_TRGO ((uint32_t)0x00010000) +#define ADC_ExternalTrigInjecConv_T2_CC1 ((uint32_t)0x00020000) +#define ADC_ExternalTrigInjecConv_T2_TRGO ((uint32_t)0x00030000) +#define ADC_ExternalTrigInjecConv_T3_CC2 ((uint32_t)0x00040000) +#define ADC_ExternalTrigInjecConv_T3_CC4 ((uint32_t)0x00050000) +#define ADC_ExternalTrigInjecConv_T4_CC1 ((uint32_t)0x00060000) +#define ADC_ExternalTrigInjecConv_T4_CC2 ((uint32_t)0x00070000) +#define ADC_ExternalTrigInjecConv_T4_CC3 ((uint32_t)0x00080000) +#define ADC_ExternalTrigInjecConv_T4_TRGO ((uint32_t)0x00090000) +#define ADC_ExternalTrigInjecConv_T5_CC4 ((uint32_t)0x000A0000) +#define ADC_ExternalTrigInjecConv_T5_TRGO ((uint32_t)0x000B0000) +#define ADC_ExternalTrigInjecConv_T8_CC2 ((uint32_t)0x000C0000) +#define ADC_ExternalTrigInjecConv_T8_CC3 ((uint32_t)0x000D0000) +#define ADC_ExternalTrigInjecConv_T8_CC4 ((uint32_t)0x000E0000) +#define ADC_ExternalTrigInjecConv_Ext_IT15 ((uint32_t)0x000F0000) +#define IS_ADC_EXT_INJEC_TRIG(INJTRIG) (((INJTRIG) == ADC_ExternalTrigInjecConv_T1_CC4) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T1_TRGO) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T2_CC1) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T2_TRGO) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T3_CC2) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T3_CC4) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T4_CC1) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T4_CC2) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T4_CC3) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T4_TRGO) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T5_CC4) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T5_TRGO) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T8_CC2) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T8_CC3) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_T8_CC4) || \ + ((INJTRIG) == ADC_ExternalTrigInjecConv_Ext_IT15)) +/** + * @} + */ + + +/** @defgroup ADC_injected_channel_selection + * @{ + */ +#define ADC_InjectedChannel_1 ((uint8_t)0x14) +#define ADC_InjectedChannel_2 ((uint8_t)0x18) +#define ADC_InjectedChannel_3 ((uint8_t)0x1C) +#define ADC_InjectedChannel_4 ((uint8_t)0x20) +#define IS_ADC_INJECTED_CHANNEL(CHANNEL) (((CHANNEL) == ADC_InjectedChannel_1) || \ + ((CHANNEL) == ADC_InjectedChannel_2) || \ + ((CHANNEL) == ADC_InjectedChannel_3) || \ + ((CHANNEL) == ADC_InjectedChannel_4)) +/** + * @} + */ + + +/** @defgroup ADC_analog_watchdog_selection + * @{ + */ +#define ADC_AnalogWatchdog_SingleRegEnable ((uint32_t)0x00800200) +#define ADC_AnalogWatchdog_SingleInjecEnable ((uint32_t)0x00400200) +#define ADC_AnalogWatchdog_SingleRegOrInjecEnable ((uint32_t)0x00C00200) +#define ADC_AnalogWatchdog_AllRegEnable ((uint32_t)0x00800000) +#define ADC_AnalogWatchdog_AllInjecEnable ((uint32_t)0x00400000) +#define ADC_AnalogWatchdog_AllRegAllInjecEnable ((uint32_t)0x00C00000) +#define ADC_AnalogWatchdog_None ((uint32_t)0x00000000) +#define IS_ADC_ANALOG_WATCHDOG(WATCHDOG) (((WATCHDOG) == ADC_AnalogWatchdog_SingleRegEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_SingleInjecEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_SingleRegOrInjecEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_AllRegEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_AllInjecEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_AllRegAllInjecEnable) || \ + ((WATCHDOG) == ADC_AnalogWatchdog_None)) +/** + * @} + */ + + +/** @defgroup ADC_interrupts_definition + * @{ + */ +#define ADC_IT_EOC ((uint16_t)0x0205) +#define ADC_IT_AWD ((uint16_t)0x0106) +#define ADC_IT_JEOC ((uint16_t)0x0407) +#define ADC_IT_OVR ((uint16_t)0x201A) +#define IS_ADC_IT(IT) (((IT) == ADC_IT_EOC) || ((IT) == ADC_IT_AWD) || \ + ((IT) == ADC_IT_JEOC)|| ((IT) == ADC_IT_OVR)) +/** + * @} + */ + + +/** @defgroup ADC_flags_definition + * @{ + */ +#define ADC_FLAG_AWD ((uint8_t)0x01) +#define ADC_FLAG_EOC ((uint8_t)0x02) +#define ADC_FLAG_JEOC ((uint8_t)0x04) +#define ADC_FLAG_JSTRT ((uint8_t)0x08) +#define ADC_FLAG_STRT ((uint8_t)0x10) +#define ADC_FLAG_OVR ((uint8_t)0x20) + +#define IS_ADC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint8_t)0xC0) == 0x00) && ((FLAG) != 0x00)) +#define IS_ADC_GET_FLAG(FLAG) (((FLAG) == ADC_FLAG_AWD) || \ + ((FLAG) == ADC_FLAG_EOC) || \ + ((FLAG) == ADC_FLAG_JEOC) || \ + ((FLAG)== ADC_FLAG_JSTRT) || \ + ((FLAG) == ADC_FLAG_STRT) || \ + ((FLAG)== ADC_FLAG_OVR)) +/** + * @} + */ + + +/** @defgroup ADC_thresholds + * @{ + */ +#define IS_ADC_THRESHOLD(THRESHOLD) ((THRESHOLD) <= 0xFFF) +/** + * @} + */ + + +/** @defgroup ADC_injected_offset + * @{ + */ +#define IS_ADC_OFFSET(OFFSET) ((OFFSET) <= 0xFFF) +/** + * @} + */ + + +/** @defgroup ADC_injected_length + * @{ + */ +#define IS_ADC_INJECTED_LENGTH(LENGTH) (((LENGTH) >= 0x1) && ((LENGTH) <= 0x4)) +/** + * @} + */ + + +/** @defgroup ADC_injected_rank + * @{ + */ +#define IS_ADC_INJECTED_RANK(RANK) (((RANK) >= 0x1) && ((RANK) <= 0x4)) +/** + * @} + */ + + +/** @defgroup ADC_regular_length + * @{ + */ +#define IS_ADC_REGULAR_LENGTH(LENGTH) (((LENGTH) >= 0x1) && ((LENGTH) <= 0x10)) +/** + * @} + */ + + +/** @defgroup ADC_regular_rank + * @{ + */ +#define IS_ADC_REGULAR_RANK(RANK) (((RANK) >= 0x1) && ((RANK) <= 0x10)) +/** + * @} + */ + + +/** @defgroup ADC_regular_discontinuous_mode_number + * @{ + */ +#define IS_ADC_REGULAR_DISC_NUMBER(NUMBER) (((NUMBER) >= 0x1) && ((NUMBER) <= 0x8)) +/** + * @} + */ + + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the ADC configuration to the default reset state *****/ +void ADC_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +void ADC_Init(ADC_TypeDef* ADCx, ADC_InitTypeDef* ADC_InitStruct); +void ADC_StructInit(ADC_InitTypeDef* ADC_InitStruct); +void ADC_CommonInit(ADC_CommonInitTypeDef* ADC_CommonInitStruct); +void ADC_CommonStructInit(ADC_CommonInitTypeDef* ADC_CommonInitStruct); +void ADC_Cmd(ADC_TypeDef* ADCx, FunctionalState NewState); + +/* Analog Watchdog configuration functions ************************************/ +void ADC_AnalogWatchdogCmd(ADC_TypeDef* ADCx, uint32_t ADC_AnalogWatchdog); +void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef* ADCx, uint16_t HighThreshold,uint16_t LowThreshold); +void ADC_AnalogWatchdogSingleChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel); + +/* Temperature Sensor, Vrefint and VBAT management functions ******************/ +void ADC_TempSensorVrefintCmd(FunctionalState NewState); +void ADC_VBATCmd(FunctionalState NewState); + +/* Regular Channels Configuration functions ***********************************/ +void ADC_RegularChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime); +void ADC_SoftwareStartConv(ADC_TypeDef* ADCx); +FlagStatus ADC_GetSoftwareStartConvStatus(ADC_TypeDef* ADCx); +void ADC_EOCOnEachRegularChannelCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_ContinuousModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_DiscModeChannelCountConfig(ADC_TypeDef* ADCx, uint8_t Number); +void ADC_DiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +uint16_t ADC_GetConversionValue(ADC_TypeDef* ADCx); +uint32_t ADC_GetMultiModeConversionValue(void); + +/* Regular Channels DMA Configuration functions *******************************/ +void ADC_DMACmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_DMARequestAfterLastTransferCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_MultiModeDMARequestAfterLastTransferCmd(FunctionalState NewState); + +/* Injected channels Configuration functions **********************************/ +void ADC_InjectedChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime); +void ADC_InjectedSequencerLengthConfig(ADC_TypeDef* ADCx, uint8_t Length); +void ADC_SetInjectedOffset(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel, uint16_t Offset); +void ADC_ExternalTrigInjectedConvConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConv); +void ADC_ExternalTrigInjectedConvEdgeConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConvEdge); +void ADC_SoftwareStartInjectedConv(ADC_TypeDef* ADCx); +FlagStatus ADC_GetSoftwareStartInjectedConvCmdStatus(ADC_TypeDef* ADCx); +void ADC_AutoInjectedConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +void ADC_InjectedDiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState); +uint16_t ADC_GetInjectedConversionValue(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel); + +/* Interrupts and flags management functions **********************************/ +void ADC_ITConfig(ADC_TypeDef* ADCx, uint16_t ADC_IT, FunctionalState NewState); +FlagStatus ADC_GetFlagStatus(ADC_TypeDef* ADCx, uint8_t ADC_FLAG); +void ADC_ClearFlag(ADC_TypeDef* ADCx, uint8_t ADC_FLAG); +ITStatus ADC_GetITStatus(ADC_TypeDef* ADCx, uint16_t ADC_IT); +void ADC_ClearITPendingBit(ADC_TypeDef* ADCx, uint16_t ADC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_ADC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_can.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_can.h new file mode 100644 index 00000000..42cfdedf --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_can.h @@ -0,0 +1,644 @@ +/** + ****************************************************************************** + * @file stm32f2xx_can.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the CAN firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_CAN_H +#define __STM32F2xx_CAN_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup CAN + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +#define IS_CAN_ALL_PERIPH(PERIPH) (((PERIPH) == CAN1) || \ + ((PERIPH) == CAN2)) + +/** + * @brief CAN init structure definition + */ +typedef struct +{ + uint16_t CAN_Prescaler; /*!< Specifies the length of a time quantum. + It ranges from 1 to 1024. */ + + uint8_t CAN_Mode; /*!< Specifies the CAN operating mode. + This parameter can be a value of @ref CAN_operating_mode */ + + uint8_t CAN_SJW; /*!< Specifies the maximum number of time quanta + the CAN hardware is allowed to lengthen or + shorten a bit to perform resynchronization. + This parameter can be a value of @ref CAN_synchronisation_jump_width */ + + uint8_t CAN_BS1; /*!< Specifies the number of time quanta in Bit + Segment 1. This parameter can be a value of + @ref CAN_time_quantum_in_bit_segment_1 */ + + uint8_t CAN_BS2; /*!< Specifies the number of time quanta in Bit Segment 2. + This parameter can be a value of @ref CAN_time_quantum_in_bit_segment_2 */ + + FunctionalState CAN_TTCM; /*!< Enable or disable the time triggered communication mode. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_ABOM; /*!< Enable or disable the automatic bus-off management. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_AWUM; /*!< Enable or disable the automatic wake-up mode. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_NART; /*!< Enable or disable the non-automatic retransmission mode. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_RFLM; /*!< Enable or disable the Receive FIFO Locked mode. + This parameter can be set either to ENABLE or DISABLE. */ + + FunctionalState CAN_TXFP; /*!< Enable or disable the transmit FIFO priority. + This parameter can be set either to ENABLE or DISABLE. */ +} CAN_InitTypeDef; + +/** + * @brief CAN filter init structure definition + */ +typedef struct +{ + uint16_t CAN_FilterIdHigh; /*!< Specifies the filter identification number (MSBs for a 32-bit + configuration, first one for a 16-bit configuration). + This parameter can be a value between 0x0000 and 0xFFFF */ + + uint16_t CAN_FilterIdLow; /*!< Specifies the filter identification number (LSBs for a 32-bit + configuration, second one for a 16-bit configuration). + This parameter can be a value between 0x0000 and 0xFFFF */ + + uint16_t CAN_FilterMaskIdHigh; /*!< Specifies the filter mask number or identification number, + according to the mode (MSBs for a 32-bit configuration, + first one for a 16-bit configuration). + This parameter can be a value between 0x0000 and 0xFFFF */ + + uint16_t CAN_FilterMaskIdLow; /*!< Specifies the filter mask number or identification number, + according to the mode (LSBs for a 32-bit configuration, + second one for a 16-bit configuration). + This parameter can be a value between 0x0000 and 0xFFFF */ + + uint16_t CAN_FilterFIFOAssignment; /*!< Specifies the FIFO (0 or 1) which will be assigned to the filter. + This parameter can be a value of @ref CAN_filter_FIFO */ + + uint8_t CAN_FilterNumber; /*!< Specifies the filter which will be initialized. It ranges from 0 to 13. */ + + uint8_t CAN_FilterMode; /*!< Specifies the filter mode to be initialized. + This parameter can be a value of @ref CAN_filter_mode */ + + uint8_t CAN_FilterScale; /*!< Specifies the filter scale. + This parameter can be a value of @ref CAN_filter_scale */ + + FunctionalState CAN_FilterActivation; /*!< Enable or disable the filter. + This parameter can be set either to ENABLE or DISABLE. */ +} CAN_FilterInitTypeDef; + +/** + * @brief CAN Tx message structure definition + */ +typedef struct +{ + uint32_t StdId; /*!< Specifies the standard identifier. + This parameter can be a value between 0 to 0x7FF. */ + + uint32_t ExtId; /*!< Specifies the extended identifier. + This parameter can be a value between 0 to 0x1FFFFFFF. */ + + uint8_t IDE; /*!< Specifies the type of identifier for the message that + will be transmitted. This parameter can be a value + of @ref CAN_identifier_type */ + + uint8_t RTR; /*!< Specifies the type of frame for the message that will + be transmitted. This parameter can be a value of + @ref CAN_remote_transmission_request */ + + uint8_t DLC; /*!< Specifies the length of the frame that will be + transmitted. This parameter can be a value between + 0 to 8 */ + + uint8_t Data[8]; /*!< Contains the data to be transmitted. It ranges from 0 + to 0xFF. */ +} CanTxMsg; + +/** + * @brief CAN Rx message structure definition + */ +typedef struct +{ + uint32_t StdId; /*!< Specifies the standard identifier. + This parameter can be a value between 0 to 0x7FF. */ + + uint32_t ExtId; /*!< Specifies the extended identifier. + This parameter can be a value between 0 to 0x1FFFFFFF. */ + + uint8_t IDE; /*!< Specifies the type of identifier for the message that + will be received. This parameter can be a value of + @ref CAN_identifier_type */ + + uint8_t RTR; /*!< Specifies the type of frame for the received message. + This parameter can be a value of + @ref CAN_remote_transmission_request */ + + uint8_t DLC; /*!< Specifies the length of the frame that will be received. + This parameter can be a value between 0 to 8 */ + + uint8_t Data[8]; /*!< Contains the data to be received. It ranges from 0 to + 0xFF. */ + + uint8_t FMI; /*!< Specifies the index of the filter the message stored in + the mailbox passes through. This parameter can be a + value between 0 to 0xFF */ +} CanRxMsg; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup CAN_Exported_Constants + * @{ + */ + +/** @defgroup CAN_InitStatus + * @{ + */ + +#define CAN_InitStatus_Failed ((uint8_t)0x00) /*!< CAN initialization failed */ +#define CAN_InitStatus_Success ((uint8_t)0x01) /*!< CAN initialization OK */ + + +/* Legacy defines */ +#define CANINITFAILED CAN_InitStatus_Failed +#define CANINITOK CAN_InitStatus_Success +/** + * @} + */ + +/** @defgroup CAN_operating_mode + * @{ + */ + +#define CAN_Mode_Normal ((uint8_t)0x00) /*!< normal mode */ +#define CAN_Mode_LoopBack ((uint8_t)0x01) /*!< loopback mode */ +#define CAN_Mode_Silent ((uint8_t)0x02) /*!< silent mode */ +#define CAN_Mode_Silent_LoopBack ((uint8_t)0x03) /*!< loopback combined with silent mode */ + +#define IS_CAN_MODE(MODE) (((MODE) == CAN_Mode_Normal) || \ + ((MODE) == CAN_Mode_LoopBack)|| \ + ((MODE) == CAN_Mode_Silent) || \ + ((MODE) == CAN_Mode_Silent_LoopBack)) +/** + * @} + */ + + + /** + * @defgroup CAN_operating_mode + * @{ + */ +#define CAN_OperatingMode_Initialization ((uint8_t)0x00) /*!< Initialization mode */ +#define CAN_OperatingMode_Normal ((uint8_t)0x01) /*!< Normal mode */ +#define CAN_OperatingMode_Sleep ((uint8_t)0x02) /*!< sleep mode */ + + +#define IS_CAN_OPERATING_MODE(MODE) (((MODE) == CAN_OperatingMode_Initialization) ||\ + ((MODE) == CAN_OperatingMode_Normal)|| \ + ((MODE) == CAN_OperatingMode_Sleep)) +/** + * @} + */ + +/** + * @defgroup CAN_operating_mode_status + * @{ + */ + +#define CAN_ModeStatus_Failed ((uint8_t)0x00) /*!< CAN entering the specific mode failed */ +#define CAN_ModeStatus_Success ((uint8_t)!CAN_ModeStatus_Failed) /*!< CAN entering the specific mode Succeed */ +/** + * @} + */ + +/** @defgroup CAN_synchronisation_jump_width + * @{ + */ +#define CAN_SJW_1tq ((uint8_t)0x00) /*!< 1 time quantum */ +#define CAN_SJW_2tq ((uint8_t)0x01) /*!< 2 time quantum */ +#define CAN_SJW_3tq ((uint8_t)0x02) /*!< 3 time quantum */ +#define CAN_SJW_4tq ((uint8_t)0x03) /*!< 4 time quantum */ + +#define IS_CAN_SJW(SJW) (((SJW) == CAN_SJW_1tq) || ((SJW) == CAN_SJW_2tq)|| \ + ((SJW) == CAN_SJW_3tq) || ((SJW) == CAN_SJW_4tq)) +/** + * @} + */ + +/** @defgroup CAN_time_quantum_in_bit_segment_1 + * @{ + */ +#define CAN_BS1_1tq ((uint8_t)0x00) /*!< 1 time quantum */ +#define CAN_BS1_2tq ((uint8_t)0x01) /*!< 2 time quantum */ +#define CAN_BS1_3tq ((uint8_t)0x02) /*!< 3 time quantum */ +#define CAN_BS1_4tq ((uint8_t)0x03) /*!< 4 time quantum */ +#define CAN_BS1_5tq ((uint8_t)0x04) /*!< 5 time quantum */ +#define CAN_BS1_6tq ((uint8_t)0x05) /*!< 6 time quantum */ +#define CAN_BS1_7tq ((uint8_t)0x06) /*!< 7 time quantum */ +#define CAN_BS1_8tq ((uint8_t)0x07) /*!< 8 time quantum */ +#define CAN_BS1_9tq ((uint8_t)0x08) /*!< 9 time quantum */ +#define CAN_BS1_10tq ((uint8_t)0x09) /*!< 10 time quantum */ +#define CAN_BS1_11tq ((uint8_t)0x0A) /*!< 11 time quantum */ +#define CAN_BS1_12tq ((uint8_t)0x0B) /*!< 12 time quantum */ +#define CAN_BS1_13tq ((uint8_t)0x0C) /*!< 13 time quantum */ +#define CAN_BS1_14tq ((uint8_t)0x0D) /*!< 14 time quantum */ +#define CAN_BS1_15tq ((uint8_t)0x0E) /*!< 15 time quantum */ +#define CAN_BS1_16tq ((uint8_t)0x0F) /*!< 16 time quantum */ + +#define IS_CAN_BS1(BS1) ((BS1) <= CAN_BS1_16tq) +/** + * @} + */ + +/** @defgroup CAN_time_quantum_in_bit_segment_2 + * @{ + */ +#define CAN_BS2_1tq ((uint8_t)0x00) /*!< 1 time quantum */ +#define CAN_BS2_2tq ((uint8_t)0x01) /*!< 2 time quantum */ +#define CAN_BS2_3tq ((uint8_t)0x02) /*!< 3 time quantum */ +#define CAN_BS2_4tq ((uint8_t)0x03) /*!< 4 time quantum */ +#define CAN_BS2_5tq ((uint8_t)0x04) /*!< 5 time quantum */ +#define CAN_BS2_6tq ((uint8_t)0x05) /*!< 6 time quantum */ +#define CAN_BS2_7tq ((uint8_t)0x06) /*!< 7 time quantum */ +#define CAN_BS2_8tq ((uint8_t)0x07) /*!< 8 time quantum */ + +#define IS_CAN_BS2(BS2) ((BS2) <= CAN_BS2_8tq) +/** + * @} + */ + +/** @defgroup CAN_clock_prescaler + * @{ + */ +#define IS_CAN_PRESCALER(PRESCALER) (((PRESCALER) >= 1) && ((PRESCALER) <= 1024)) +/** + * @} + */ + +/** @defgroup CAN_filter_number + * @{ + */ +#define IS_CAN_FILTER_NUMBER(NUMBER) ((NUMBER) <= 27) +/** + * @} + */ + +/** @defgroup CAN_filter_mode + * @{ + */ +#define CAN_FilterMode_IdMask ((uint8_t)0x00) /*!< identifier/mask mode */ +#define CAN_FilterMode_IdList ((uint8_t)0x01) /*!< identifier list mode */ + +#define IS_CAN_FILTER_MODE(MODE) (((MODE) == CAN_FilterMode_IdMask) || \ + ((MODE) == CAN_FilterMode_IdList)) +/** + * @} + */ + +/** @defgroup CAN_filter_scale + * @{ + */ +#define CAN_FilterScale_16bit ((uint8_t)0x00) /*!< Two 16-bit filters */ +#define CAN_FilterScale_32bit ((uint8_t)0x01) /*!< One 32-bit filter */ + +#define IS_CAN_FILTER_SCALE(SCALE) (((SCALE) == CAN_FilterScale_16bit) || \ + ((SCALE) == CAN_FilterScale_32bit)) +/** + * @} + */ + +/** @defgroup CAN_filter_FIFO + * @{ + */ +#define CAN_Filter_FIFO0 ((uint8_t)0x00) /*!< Filter FIFO 0 assignment for filter x */ +#define CAN_Filter_FIFO1 ((uint8_t)0x01) /*!< Filter FIFO 1 assignment for filter x */ +#define IS_CAN_FILTER_FIFO(FIFO) (((FIFO) == CAN_FilterFIFO0) || \ + ((FIFO) == CAN_FilterFIFO1)) + +/* Legacy defines */ +#define CAN_FilterFIFO0 CAN_Filter_FIFO0 +#define CAN_FilterFIFO1 CAN_Filter_FIFO1 +/** + * @} + */ + +/** @defgroup CAN_Start_bank_filter_for_slave_CAN + * @{ + */ +#define IS_CAN_BANKNUMBER(BANKNUMBER) (((BANKNUMBER) >= 1) && ((BANKNUMBER) <= 27)) +/** + * @} + */ + +/** @defgroup CAN_Tx + * @{ + */ +#define IS_CAN_TRANSMITMAILBOX(TRANSMITMAILBOX) ((TRANSMITMAILBOX) <= ((uint8_t)0x02)) +#define IS_CAN_STDID(STDID) ((STDID) <= ((uint32_t)0x7FF)) +#define IS_CAN_EXTID(EXTID) ((EXTID) <= ((uint32_t)0x1FFFFFFF)) +#define IS_CAN_DLC(DLC) ((DLC) <= ((uint8_t)0x08)) +/** + * @} + */ + +/** @defgroup CAN_identifier_type + * @{ + */ +#define CAN_Id_Standard ((uint32_t)0x00000000) /*!< Standard Id */ +#define CAN_Id_Extended ((uint32_t)0x00000004) /*!< Extended Id */ +#define IS_CAN_IDTYPE(IDTYPE) (((IDTYPE) == CAN_Id_Standard) || \ + ((IDTYPE) == CAN_Id_Extended)) + +/* Legacy defines */ +#define CAN_ID_STD CAN_Id_Standard +#define CAN_ID_EXT CAN_Id_Extended +/** + * @} + */ + +/** @defgroup CAN_remote_transmission_request + * @{ + */ +#define CAN_RTR_Data ((uint32_t)0x00000000) /*!< Data frame */ +#define CAN_RTR_Remote ((uint32_t)0x00000002) /*!< Remote frame */ +#define IS_CAN_RTR(RTR) (((RTR) == CAN_RTR_Data) || ((RTR) == CAN_RTR_Remote)) + +/* Legacy defines */ +#define CAN_RTR_DATA CAN_RTR_Data +#define CAN_RTR_REMOTE CAN_RTR_Remote +/** + * @} + */ + +/** @defgroup CAN_transmit_constants + * @{ + */ +#define CAN_TxStatus_Failed ((uint8_t)0x00)/*!< CAN transmission failed */ +#define CAN_TxStatus_Ok ((uint8_t)0x01) /*!< CAN transmission succeeded */ +#define CAN_TxStatus_Pending ((uint8_t)0x02) /*!< CAN transmission pending */ +#define CAN_TxStatus_NoMailBox ((uint8_t)0x04) /*!< CAN cell did not provide + an empty mailbox */ +/* Legacy defines */ +#define CANTXFAILED CAN_TxStatus_Failed +#define CANTXOK CAN_TxStatus_Ok +#define CANTXPENDING CAN_TxStatus_Pending +#define CAN_NO_MB CAN_TxStatus_NoMailBox +/** + * @} + */ + +/** @defgroup CAN_receive_FIFO_number_constants + * @{ + */ +#define CAN_FIFO0 ((uint8_t)0x00) /*!< CAN FIFO 0 used to receive */ +#define CAN_FIFO1 ((uint8_t)0x01) /*!< CAN FIFO 1 used to receive */ + +#define IS_CAN_FIFO(FIFO) (((FIFO) == CAN_FIFO0) || ((FIFO) == CAN_FIFO1)) +/** + * @} + */ + +/** @defgroup CAN_sleep_constants + * @{ + */ +#define CAN_Sleep_Failed ((uint8_t)0x00) /*!< CAN did not enter the sleep mode */ +#define CAN_Sleep_Ok ((uint8_t)0x01) /*!< CAN entered the sleep mode */ + +/* Legacy defines */ +#define CANSLEEPFAILED CAN_Sleep_Failed +#define CANSLEEPOK CAN_Sleep_Ok +/** + * @} + */ + +/** @defgroup CAN_wake_up_constants + * @{ + */ +#define CAN_WakeUp_Failed ((uint8_t)0x00) /*!< CAN did not leave the sleep mode */ +#define CAN_WakeUp_Ok ((uint8_t)0x01) /*!< CAN leaved the sleep mode */ + +/* Legacy defines */ +#define CANWAKEUPFAILED CAN_WakeUp_Failed +#define CANWAKEUPOK CAN_WakeUp_Ok +/** + * @} + */ + +/** + * @defgroup CAN_Error_Code_constants + * @{ + */ +#define CAN_ErrorCode_NoErr ((uint8_t)0x00) /*!< No Error */ +#define CAN_ErrorCode_StuffErr ((uint8_t)0x10) /*!< Stuff Error */ +#define CAN_ErrorCode_FormErr ((uint8_t)0x20) /*!< Form Error */ +#define CAN_ErrorCode_ACKErr ((uint8_t)0x30) /*!< Acknowledgment Error */ +#define CAN_ErrorCode_BitRecessiveErr ((uint8_t)0x40) /*!< Bit Recessive Error */ +#define CAN_ErrorCode_BitDominantErr ((uint8_t)0x50) /*!< Bit Dominant Error */ +#define CAN_ErrorCode_CRCErr ((uint8_t)0x60) /*!< CRC Error */ +#define CAN_ErrorCode_SoftwareSetErr ((uint8_t)0x70) /*!< Software Set Error */ +/** + * @} + */ + +/** @defgroup CAN_flags + * @{ + */ +/* If the flag is 0x3XXXXXXX, it means that it can be used with CAN_GetFlagStatus() + and CAN_ClearFlag() functions. */ +/* If the flag is 0x1XXXXXXX, it means that it can only be used with + CAN_GetFlagStatus() function. */ + +/* Transmit Flags */ +#define CAN_FLAG_RQCP0 ((uint32_t)0x38000001) /*!< Request MailBox0 Flag */ +#define CAN_FLAG_RQCP1 ((uint32_t)0x38000100) /*!< Request MailBox1 Flag */ +#define CAN_FLAG_RQCP2 ((uint32_t)0x38010000) /*!< Request MailBox2 Flag */ + +/* Receive Flags */ +#define CAN_FLAG_FMP0 ((uint32_t)0x12000003) /*!< FIFO 0 Message Pending Flag */ +#define CAN_FLAG_FF0 ((uint32_t)0x32000008) /*!< FIFO 0 Full Flag */ +#define CAN_FLAG_FOV0 ((uint32_t)0x32000010) /*!< FIFO 0 Overrun Flag */ +#define CAN_FLAG_FMP1 ((uint32_t)0x14000003) /*!< FIFO 1 Message Pending Flag */ +#define CAN_FLAG_FF1 ((uint32_t)0x34000008) /*!< FIFO 1 Full Flag */ +#define CAN_FLAG_FOV1 ((uint32_t)0x34000010) /*!< FIFO 1 Overrun Flag */ + +/* Operating Mode Flags */ +#define CAN_FLAG_WKU ((uint32_t)0x31000008) /*!< Wake up Flag */ +#define CAN_FLAG_SLAK ((uint32_t)0x31000012) /*!< Sleep acknowledge Flag */ +/* @note When SLAK interrupt is disabled (SLKIE=0), no polling on SLAKI is possible. + In this case the SLAK bit can be polled.*/ + +/* Error Flags */ +#define CAN_FLAG_EWG ((uint32_t)0x10F00001) /*!< Error Warning Flag */ +#define CAN_FLAG_EPV ((uint32_t)0x10F00002) /*!< Error Passive Flag */ +#define CAN_FLAG_BOF ((uint32_t)0x10F00004) /*!< Bus-Off Flag */ +#define CAN_FLAG_LEC ((uint32_t)0x30F00070) /*!< Last error code Flag */ + +#define IS_CAN_GET_FLAG(FLAG) (((FLAG) == CAN_FLAG_LEC) || ((FLAG) == CAN_FLAG_BOF) || \ + ((FLAG) == CAN_FLAG_EPV) || ((FLAG) == CAN_FLAG_EWG) || \ + ((FLAG) == CAN_FLAG_WKU) || ((FLAG) == CAN_FLAG_FOV0) || \ + ((FLAG) == CAN_FLAG_FF0) || ((FLAG) == CAN_FLAG_FMP0) || \ + ((FLAG) == CAN_FLAG_FOV1) || ((FLAG) == CAN_FLAG_FF1) || \ + ((FLAG) == CAN_FLAG_FMP1) || ((FLAG) == CAN_FLAG_RQCP2) || \ + ((FLAG) == CAN_FLAG_RQCP1)|| ((FLAG) == CAN_FLAG_RQCP0) || \ + ((FLAG) == CAN_FLAG_SLAK )) + +#define IS_CAN_CLEAR_FLAG(FLAG)(((FLAG) == CAN_FLAG_LEC) || ((FLAG) == CAN_FLAG_RQCP2) || \ + ((FLAG) == CAN_FLAG_RQCP1) || ((FLAG) == CAN_FLAG_RQCP0) || \ + ((FLAG) == CAN_FLAG_FF0) || ((FLAG) == CAN_FLAG_FOV0) ||\ + ((FLAG) == CAN_FLAG_FF1) || ((FLAG) == CAN_FLAG_FOV1) || \ + ((FLAG) == CAN_FLAG_WKU) || ((FLAG) == CAN_FLAG_SLAK)) +/** + * @} + */ + + +/** @defgroup CAN_interrupts + * @{ + */ +#define CAN_IT_TME ((uint32_t)0x00000001) /*!< Transmit mailbox empty Interrupt*/ + +/* Receive Interrupts */ +#define CAN_IT_FMP0 ((uint32_t)0x00000002) /*!< FIFO 0 message pending Interrupt*/ +#define CAN_IT_FF0 ((uint32_t)0x00000004) /*!< FIFO 0 full Interrupt*/ +#define CAN_IT_FOV0 ((uint32_t)0x00000008) /*!< FIFO 0 overrun Interrupt*/ +#define CAN_IT_FMP1 ((uint32_t)0x00000010) /*!< FIFO 1 message pending Interrupt*/ +#define CAN_IT_FF1 ((uint32_t)0x00000020) /*!< FIFO 1 full Interrupt*/ +#define CAN_IT_FOV1 ((uint32_t)0x00000040) /*!< FIFO 1 overrun Interrupt*/ + +/* Operating Mode Interrupts */ +#define CAN_IT_WKU ((uint32_t)0x00010000) /*!< Wake-up Interrupt*/ +#define CAN_IT_SLK ((uint32_t)0x00020000) /*!< Sleep acknowledge Interrupt*/ + +/* Error Interrupts */ +#define CAN_IT_EWG ((uint32_t)0x00000100) /*!< Error warning Interrupt*/ +#define CAN_IT_EPV ((uint32_t)0x00000200) /*!< Error passive Interrupt*/ +#define CAN_IT_BOF ((uint32_t)0x00000400) /*!< Bus-off Interrupt*/ +#define CAN_IT_LEC ((uint32_t)0x00000800) /*!< Last error code Interrupt*/ +#define CAN_IT_ERR ((uint32_t)0x00008000) /*!< Error Interrupt*/ + +/* Flags named as Interrupts : kept only for FW compatibility */ +#define CAN_IT_RQCP0 CAN_IT_TME +#define CAN_IT_RQCP1 CAN_IT_TME +#define CAN_IT_RQCP2 CAN_IT_TME + + +#define IS_CAN_IT(IT) (((IT) == CAN_IT_TME) || ((IT) == CAN_IT_FMP0) ||\ + ((IT) == CAN_IT_FF0) || ((IT) == CAN_IT_FOV0) ||\ + ((IT) == CAN_IT_FMP1) || ((IT) == CAN_IT_FF1) ||\ + ((IT) == CAN_IT_FOV1) || ((IT) == CAN_IT_EWG) ||\ + ((IT) == CAN_IT_EPV) || ((IT) == CAN_IT_BOF) ||\ + ((IT) == CAN_IT_LEC) || ((IT) == CAN_IT_ERR) ||\ + ((IT) == CAN_IT_WKU) || ((IT) == CAN_IT_SLK)) + +#define IS_CAN_CLEAR_IT(IT) (((IT) == CAN_IT_TME) || ((IT) == CAN_IT_FF0) ||\ + ((IT) == CAN_IT_FOV0)|| ((IT) == CAN_IT_FF1) ||\ + ((IT) == CAN_IT_FOV1)|| ((IT) == CAN_IT_EWG) ||\ + ((IT) == CAN_IT_EPV) || ((IT) == CAN_IT_BOF) ||\ + ((IT) == CAN_IT_LEC) || ((IT) == CAN_IT_ERR) ||\ + ((IT) == CAN_IT_WKU) || ((IT) == CAN_IT_SLK)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the CAN configuration to the default reset state *****/ +void CAN_DeInit(CAN_TypeDef* CANx); + +/* Initialization and Configuration functions *********************************/ +uint8_t CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct); +void CAN_FilterInit(CAN_FilterInitTypeDef* CAN_FilterInitStruct); +void CAN_StructInit(CAN_InitTypeDef* CAN_InitStruct); +void CAN_SlaveStartBank(uint8_t CAN_BankNumber); +void CAN_DBGFreeze(CAN_TypeDef* CANx, FunctionalState NewState); +void CAN_TTComModeCmd(CAN_TypeDef* CANx, FunctionalState NewState); + +/* CAN Frames Transmission functions ******************************************/ +uint8_t CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage); +uint8_t CAN_TransmitStatus(CAN_TypeDef* CANx, uint8_t TransmitMailbox); +void CAN_CancelTransmit(CAN_TypeDef* CANx, uint8_t Mailbox); + +/* CAN Frames Reception functions *********************************************/ +void CAN_Receive(CAN_TypeDef* CANx, uint8_t FIFONumber, CanRxMsg* RxMessage); +void CAN_FIFORelease(CAN_TypeDef* CANx, uint8_t FIFONumber); +uint8_t CAN_MessagePending(CAN_TypeDef* CANx, uint8_t FIFONumber); + +/* Operation modes functions **************************************************/ +uint8_t CAN_OperatingModeRequest(CAN_TypeDef* CANx, uint8_t CAN_OperatingMode); +uint8_t CAN_Sleep(CAN_TypeDef* CANx); +uint8_t CAN_WakeUp(CAN_TypeDef* CANx); + +/* CAN Bus Error management functions *****************************************/ +uint8_t CAN_GetLastErrorCode(CAN_TypeDef* CANx); +uint8_t CAN_GetReceiveErrorCounter(CAN_TypeDef* CANx); +uint8_t CAN_GetLSBTransmitErrorCounter(CAN_TypeDef* CANx); + +/* Interrupts and flags management functions **********************************/ +void CAN_ITConfig(CAN_TypeDef* CANx, uint32_t CAN_IT, FunctionalState NewState); +FlagStatus CAN_GetFlagStatus(CAN_TypeDef* CANx, uint32_t CAN_FLAG); +void CAN_ClearFlag(CAN_TypeDef* CANx, uint32_t CAN_FLAG); +ITStatus CAN_GetITStatus(CAN_TypeDef* CANx, uint32_t CAN_IT); +void CAN_ClearITPendingBit(CAN_TypeDef* CANx, uint32_t CAN_IT); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_CAN_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_crc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_crc.h new file mode 100644 index 00000000..725c581f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_crc.h @@ -0,0 +1,83 @@ +/** + ****************************************************************************** + * @file stm32f2xx_crc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the CRC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_CRC_H +#define __STM32F2xx_CRC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup CRC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup CRC_Exported_Constants + * @{ + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +void CRC_ResetDR(void); +uint32_t CRC_CalcCRC(uint32_t Data); +uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength); +uint32_t CRC_GetCRC(void); +void CRC_SetIDRegister(uint8_t IDValue); +uint8_t CRC_GetIDRegister(void); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_CRC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_cryp.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_cryp.h new file mode 100644 index 00000000..893e9258 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_cryp.h @@ -0,0 +1,344 @@ +/** + ****************************************************************************** + * @file stm32f2xx_cryp.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the Cryptographic + * processor(CRYP) firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_CRYP_H +#define __STM32F2xx_CRYP_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup CRYP + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief CRYP Init structure definition + */ +typedef struct +{ + uint16_t CRYP_AlgoDir; /*!< Encrypt or Decrypt. This parameter can be a + value of @ref CRYP_Algorithm_Direction */ + uint16_t CRYP_AlgoMode; /*!< TDES-ECB, TDES-CBC, DES-ECB, DES-CBC, AES-ECB, + AES-CBC, AES-CTR, AES-Key. This parameter can be + a value of @ref CRYP_Algorithm_Mode */ + uint16_t CRYP_DataType; /*!< 32-bit data, 16-bit data, bit data or bit-string. + This parameter can be a value of @ref CRYP_Data_Type */ + uint16_t CRYP_KeySize; /*!< Used only in AES mode only : 128, 192 or 256 bit + key length. This parameter can be a value of + @ref CRYP_Key_Size_for_AES_only */ +}CRYP_InitTypeDef; + +/** + * @brief CRYP Key(s) structure definition + */ +typedef struct +{ + uint32_t CRYP_Key0Left; /*!< Key 0 Left */ + uint32_t CRYP_Key0Right; /*!< Key 0 Right */ + uint32_t CRYP_Key1Left; /*!< Key 1 left */ + uint32_t CRYP_Key1Right; /*!< Key 1 Right */ + uint32_t CRYP_Key2Left; /*!< Key 2 left */ + uint32_t CRYP_Key2Right; /*!< Key 2 Right */ + uint32_t CRYP_Key3Left; /*!< Key 3 left */ + uint32_t CRYP_Key3Right; /*!< Key 3 Right */ +}CRYP_KeyInitTypeDef; +/** + * @brief CRYP Initialization Vectors (IV) structure definition + */ +typedef struct +{ + uint32_t CRYP_IV0Left; /*!< Init Vector 0 Left */ + uint32_t CRYP_IV0Right; /*!< Init Vector 0 Right */ + uint32_t CRYP_IV1Left; /*!< Init Vector 1 left */ + uint32_t CRYP_IV1Right; /*!< Init Vector 1 Right */ +}CRYP_IVInitTypeDef; + +/** + * @brief CRYP context swapping structure definition + */ +typedef struct +{ + /*!< Configuration */ + uint32_t CR_bits9to2; + /*!< KEY */ + uint32_t CRYP_IV0LR; + uint32_t CRYP_IV0RR; + uint32_t CRYP_IV1LR; + uint32_t CRYP_IV1RR; + /*!< IV */ + uint32_t CRYP_K0LR; + uint32_t CRYP_K0RR; + uint32_t CRYP_K1LR; + uint32_t CRYP_K1RR; + uint32_t CRYP_K2LR; + uint32_t CRYP_K2RR; + uint32_t CRYP_K3LR; + uint32_t CRYP_K3RR; +}CRYP_Context; + + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup CRYP_Exported_Constants + * @{ + */ + +/** @defgroup CRYP_Algorithm_Direction + * @{ + */ +#define CRYP_AlgoDir_Encrypt ((uint16_t)0x0000) +#define CRYP_AlgoDir_Decrypt ((uint16_t)0x0004) +#define IS_CRYP_ALGODIR(ALGODIR) (((ALGODIR) == CRYP_AlgoDir_Encrypt) || \ + ((ALGODIR) == CRYP_AlgoDir_Decrypt)) + +/** + * @} + */ + +/** @defgroup CRYP_Algorithm_Mode + * @{ + */ + +/*!< TDES Modes */ +#define CRYP_AlgoMode_TDES_ECB ((uint16_t)0x0000) +#define CRYP_AlgoMode_TDES_CBC ((uint16_t)0x0008) + +/*!< DES Modes */ +#define CRYP_AlgoMode_DES_ECB ((uint16_t)0x0010) +#define CRYP_AlgoMode_DES_CBC ((uint16_t)0x0018) + +/*!< AES Modes */ +#define CRYP_AlgoMode_AES_ECB ((uint16_t)0x0020) +#define CRYP_AlgoMode_AES_CBC ((uint16_t)0x0028) +#define CRYP_AlgoMode_AES_CTR ((uint16_t)0x0030) +#define CRYP_AlgoMode_AES_Key ((uint16_t)0x0038) + +#define IS_CRYP_ALGOMODE(ALGOMODE) (((ALGOMODE) == CRYP_AlgoMode_TDES_ECB) || \ + ((ALGOMODE) == CRYP_AlgoMode_TDES_CBC)|| \ + ((ALGOMODE) == CRYP_AlgoMode_DES_ECB)|| \ + ((ALGOMODE) == CRYP_AlgoMode_DES_CBC) || \ + ((ALGOMODE) == CRYP_AlgoMode_AES_ECB) || \ + ((ALGOMODE) == CRYP_AlgoMode_AES_CBC) || \ + ((ALGOMODE) == CRYP_AlgoMode_AES_CTR) || \ + ((ALGOMODE) == CRYP_AlgoMode_AES_Key)) +/** + * @} + */ + +/** @defgroup CRYP_Data_Type + * @{ + */ +#define CRYP_DataType_32b ((uint16_t)0x0000) +#define CRYP_DataType_16b ((uint16_t)0x0040) +#define CRYP_DataType_8b ((uint16_t)0x0080) +#define CRYP_DataType_1b ((uint16_t)0x00C0) +#define IS_CRYP_DATATYPE(DATATYPE) (((DATATYPE) == CRYP_DataType_32b) || \ + ((DATATYPE) == CRYP_DataType_16b)|| \ + ((DATATYPE) == CRYP_DataType_8b)|| \ + ((DATATYPE) == CRYP_DataType_1b)) +/** + * @} + */ + +/** @defgroup CRYP_Key_Size_for_AES_only + * @{ + */ +#define CRYP_KeySize_128b ((uint16_t)0x0000) +#define CRYP_KeySize_192b ((uint16_t)0x0100) +#define CRYP_KeySize_256b ((uint16_t)0x0200) +#define IS_CRYP_KEYSIZE(KEYSIZE) (((KEYSIZE) == CRYP_KeySize_128b)|| \ + ((KEYSIZE) == CRYP_KeySize_192b)|| \ + ((KEYSIZE) == CRYP_KeySize_256b)) +/** + * @} + */ + +/** @defgroup CRYP_flags_definition + * @{ + */ +#define CRYP_FLAG_BUSY ((uint8_t)0x10) /*!< The CRYP core is currently + processing a block of data + or a key preparation (for + AES decryption). */ +#define CRYP_FLAG_IFEM ((uint8_t)0x01) /*!< Input Fifo Empty */ +#define CRYP_FLAG_IFNF ((uint8_t)0x02) /*!< Input Fifo is Not Full */ +#define CRYP_FLAG_INRIS ((uint8_t)0x22) /*!< Raw interrupt pending */ +#define CRYP_FLAG_OFNE ((uint8_t)0x04) /*!< Input Fifo service raw + interrupt status */ +#define CRYP_FLAG_OFFU ((uint8_t)0x08) /*!< Output Fifo is Full */ +#define CRYP_FLAG_OUTRIS ((uint8_t)0x21) /*!< Output Fifo service raw + interrupt status */ + +#define IS_CRYP_GET_FLAG(FLAG) (((FLAG) == CRYP_FLAG_IFEM) || \ + ((FLAG) == CRYP_FLAG_IFNF) || \ + ((FLAG) == CRYP_FLAG_OFNE) || \ + ((FLAG) == CRYP_FLAG_OFFU) || \ + ((FLAG) == CRYP_FLAG_BUSY) || \ + ((FLAG) == CRYP_FLAG_OUTRIS)|| \ + ((FLAG) == CRYP_FLAG_INRIS)) +/** + * @} + */ + +/** @defgroup CRYP_interrupts_definition + * @{ + */ +#define CRYP_IT_INI ((uint8_t)0x01) /*!< IN Fifo Interrupt */ +#define CRYP_IT_OUTI ((uint8_t)0x02) /*!< OUT Fifo Interrupt */ +#define IS_CRYP_CONFIG_IT(IT) ((((IT) & (uint8_t)0xFC) == 0x00) && ((IT) != 0x00)) +#define IS_CRYP_GET_IT(IT) (((IT) == CRYP_IT_INI) || ((IT) == CRYP_IT_OUTI)) + +/** + * @} + */ + +/** @defgroup CRYP_Encryption_Decryption_modes_definition + * @{ + */ +#define MODE_ENCRYPT ((uint8_t)0x01) +#define MODE_DECRYPT ((uint8_t)0x00) + +/** + * @} + */ + +/** @defgroup CRYP_DMA_transfer_requests + * @{ + */ +#define CRYP_DMAReq_DataIN ((uint8_t)0x01) +#define CRYP_DMAReq_DataOUT ((uint8_t)0x02) +#define IS_CRYP_DMAREQ(DMAREQ) ((((DMAREQ) & (uint8_t)0xFC) == 0x00) && ((DMAREQ) != 0x00)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the CRYP configuration to the default reset state ****/ +void CRYP_DeInit(void); + +/* CRYP Initialization and Configuration functions ****************************/ +void CRYP_Init(CRYP_InitTypeDef* CRYP_InitStruct); +void CRYP_StructInit(CRYP_InitTypeDef* CRYP_InitStruct); +void CRYP_KeyInit(CRYP_KeyInitTypeDef* CRYP_KeyInitStruct); +void CRYP_KeyStructInit(CRYP_KeyInitTypeDef* CRYP_KeyInitStruct); +void CRYP_IVInit(CRYP_IVInitTypeDef* CRYP_IVInitStruct); +void CRYP_IVStructInit(CRYP_IVInitTypeDef* CRYP_IVInitStruct); +void CRYP_Cmd(FunctionalState NewState); + +/* CRYP Data processing functions *********************************************/ +void CRYP_DataIn(uint32_t Data); +uint32_t CRYP_DataOut(void); +void CRYP_FIFOFlush(void); + +/* CRYP Context swapping functions ********************************************/ +ErrorStatus CRYP_SaveContext(CRYP_Context* CRYP_ContextSave, + CRYP_KeyInitTypeDef* CRYP_KeyInitStruct); +void CRYP_RestoreContext(CRYP_Context* CRYP_ContextRestore); + +/* CRYP's DMA interface function **********************************************/ +void CRYP_DMACmd(uint8_t CRYP_DMAReq, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void CRYP_ITConfig(uint8_t CRYP_IT, FunctionalState NewState); +ITStatus CRYP_GetITStatus(uint8_t CRYP_IT); +FlagStatus CRYP_GetFlagStatus(uint8_t CRYP_FLAG); + +/* High Level AES functions **************************************************/ +ErrorStatus CRYP_AES_ECB(uint8_t Mode, + uint8_t *Key, uint16_t Keysize, + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +ErrorStatus CRYP_AES_CBC(uint8_t Mode, + uint8_t InitVectors[16], + uint8_t *Key, uint16_t Keysize, + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +ErrorStatus CRYP_AES_CTR(uint8_t Mode, + uint8_t InitVectors[16], + uint8_t *Key, uint16_t Keysize, + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +/* High Level TDES functions **************************************************/ +ErrorStatus CRYP_TDES_ECB(uint8_t Mode, + uint8_t Key[24], + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +ErrorStatus CRYP_TDES_CBC(uint8_t Mode, + uint8_t Key[24], + uint8_t InitVectors[8], + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +/* High Level DES functions **************************************************/ +ErrorStatus CRYP_DES_ECB(uint8_t Mode, + uint8_t Key[8], + uint8_t *Input, uint32_t Ilength, + uint8_t *Output); + +ErrorStatus CRYP_DES_CBC(uint8_t Mode, + uint8_t Key[8], + uint8_t InitVectors[8], + uint8_t *Input,uint32_t Ilength, + uint8_t *Output); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_CRYP_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dac.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dac.h new file mode 100644 index 00000000..f5e1c335 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dac.h @@ -0,0 +1,304 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dac.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the DAC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_DAC_H +#define __STM32F2xx_DAC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup DAC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief DAC Init structure definition + */ + +typedef struct +{ + uint32_t DAC_Trigger; /*!< Specifies the external trigger for the selected DAC channel. + This parameter can be a value of @ref DAC_trigger_selection */ + + uint32_t DAC_WaveGeneration; /*!< Specifies whether DAC channel noise waves or triangle waves + are generated, or whether no wave is generated. + This parameter can be a value of @ref DAC_wave_generation */ + + uint32_t DAC_LFSRUnmask_TriangleAmplitude; /*!< Specifies the LFSR mask for noise wave generation or + the maximum amplitude triangle generation for the DAC channel. + This parameter can be a value of @ref DAC_lfsrunmask_triangleamplitude */ + + uint32_t DAC_OutputBuffer; /*!< Specifies whether the DAC channel output buffer is enabled or disabled. + This parameter can be a value of @ref DAC_output_buffer */ +}DAC_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup DAC_Exported_Constants + * @{ + */ + +/** @defgroup DAC_trigger_selection + * @{ + */ + +#define DAC_Trigger_None ((uint32_t)0x00000000) /*!< Conversion is automatic once the DAC1_DHRxxxx register + has been loaded, and not by external trigger */ +#define DAC_Trigger_T2_TRGO ((uint32_t)0x00000024) /*!< TIM2 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T4_TRGO ((uint32_t)0x0000002C) /*!< TIM4 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T5_TRGO ((uint32_t)0x0000001C) /*!< TIM5 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T6_TRGO ((uint32_t)0x00000004) /*!< TIM6 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T7_TRGO ((uint32_t)0x00000014) /*!< TIM7 TRGO selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_T8_TRGO ((uint32_t)0x0000000C) /*!< TIM8 TRGO selected as external conversion trigger for DAC channel */ + +#define DAC_Trigger_Ext_IT9 ((uint32_t)0x00000034) /*!< EXTI Line9 event selected as external conversion trigger for DAC channel */ +#define DAC_Trigger_Software ((uint32_t)0x0000003C) /*!< Conversion started by software trigger for DAC channel */ + +#define IS_DAC_TRIGGER(TRIGGER) (((TRIGGER) == DAC_Trigger_None) || \ + ((TRIGGER) == DAC_Trigger_T6_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T8_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T7_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T5_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T2_TRGO) || \ + ((TRIGGER) == DAC_Trigger_T4_TRGO) || \ + ((TRIGGER) == DAC_Trigger_Ext_IT9) || \ + ((TRIGGER) == DAC_Trigger_Software)) + +/** + * @} + */ + +/** @defgroup DAC_wave_generation + * @{ + */ + +#define DAC_WaveGeneration_None ((uint32_t)0x00000000) +#define DAC_WaveGeneration_Noise ((uint32_t)0x00000040) +#define DAC_WaveGeneration_Triangle ((uint32_t)0x00000080) +#define IS_DAC_GENERATE_WAVE(WAVE) (((WAVE) == DAC_WaveGeneration_None) || \ + ((WAVE) == DAC_WaveGeneration_Noise) || \ + ((WAVE) == DAC_WaveGeneration_Triangle)) +/** + * @} + */ + +/** @defgroup DAC_lfsrunmask_triangleamplitude + * @{ + */ + +#define DAC_LFSRUnmask_Bit0 ((uint32_t)0x00000000) /*!< Unmask DAC channel LFSR bit0 for noise wave generation */ +#define DAC_LFSRUnmask_Bits1_0 ((uint32_t)0x00000100) /*!< Unmask DAC channel LFSR bit[1:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits2_0 ((uint32_t)0x00000200) /*!< Unmask DAC channel LFSR bit[2:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits3_0 ((uint32_t)0x00000300) /*!< Unmask DAC channel LFSR bit[3:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits4_0 ((uint32_t)0x00000400) /*!< Unmask DAC channel LFSR bit[4:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits5_0 ((uint32_t)0x00000500) /*!< Unmask DAC channel LFSR bit[5:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits6_0 ((uint32_t)0x00000600) /*!< Unmask DAC channel LFSR bit[6:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits7_0 ((uint32_t)0x00000700) /*!< Unmask DAC channel LFSR bit[7:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits8_0 ((uint32_t)0x00000800) /*!< Unmask DAC channel LFSR bit[8:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits9_0 ((uint32_t)0x00000900) /*!< Unmask DAC channel LFSR bit[9:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits10_0 ((uint32_t)0x00000A00) /*!< Unmask DAC channel LFSR bit[10:0] for noise wave generation */ +#define DAC_LFSRUnmask_Bits11_0 ((uint32_t)0x00000B00) /*!< Unmask DAC channel LFSR bit[11:0] for noise wave generation */ +#define DAC_TriangleAmplitude_1 ((uint32_t)0x00000000) /*!< Select max triangle amplitude of 1 */ +#define DAC_TriangleAmplitude_3 ((uint32_t)0x00000100) /*!< Select max triangle amplitude of 3 */ +#define DAC_TriangleAmplitude_7 ((uint32_t)0x00000200) /*!< Select max triangle amplitude of 7 */ +#define DAC_TriangleAmplitude_15 ((uint32_t)0x00000300) /*!< Select max triangle amplitude of 15 */ +#define DAC_TriangleAmplitude_31 ((uint32_t)0x00000400) /*!< Select max triangle amplitude of 31 */ +#define DAC_TriangleAmplitude_63 ((uint32_t)0x00000500) /*!< Select max triangle amplitude of 63 */ +#define DAC_TriangleAmplitude_127 ((uint32_t)0x00000600) /*!< Select max triangle amplitude of 127 */ +#define DAC_TriangleAmplitude_255 ((uint32_t)0x00000700) /*!< Select max triangle amplitude of 255 */ +#define DAC_TriangleAmplitude_511 ((uint32_t)0x00000800) /*!< Select max triangle amplitude of 511 */ +#define DAC_TriangleAmplitude_1023 ((uint32_t)0x00000900) /*!< Select max triangle amplitude of 1023 */ +#define DAC_TriangleAmplitude_2047 ((uint32_t)0x00000A00) /*!< Select max triangle amplitude of 2047 */ +#define DAC_TriangleAmplitude_4095 ((uint32_t)0x00000B00) /*!< Select max triangle amplitude of 4095 */ + +#define IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE(VALUE) (((VALUE) == DAC_LFSRUnmask_Bit0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits1_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits2_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits3_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits4_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits5_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits6_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits7_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits8_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits9_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits10_0) || \ + ((VALUE) == DAC_LFSRUnmask_Bits11_0) || \ + ((VALUE) == DAC_TriangleAmplitude_1) || \ + ((VALUE) == DAC_TriangleAmplitude_3) || \ + ((VALUE) == DAC_TriangleAmplitude_7) || \ + ((VALUE) == DAC_TriangleAmplitude_15) || \ + ((VALUE) == DAC_TriangleAmplitude_31) || \ + ((VALUE) == DAC_TriangleAmplitude_63) || \ + ((VALUE) == DAC_TriangleAmplitude_127) || \ + ((VALUE) == DAC_TriangleAmplitude_255) || \ + ((VALUE) == DAC_TriangleAmplitude_511) || \ + ((VALUE) == DAC_TriangleAmplitude_1023) || \ + ((VALUE) == DAC_TriangleAmplitude_2047) || \ + ((VALUE) == DAC_TriangleAmplitude_4095)) +/** + * @} + */ + +/** @defgroup DAC_output_buffer + * @{ + */ + +#define DAC_OutputBuffer_Enable ((uint32_t)0x00000000) +#define DAC_OutputBuffer_Disable ((uint32_t)0x00000002) +#define IS_DAC_OUTPUT_BUFFER_STATE(STATE) (((STATE) == DAC_OutputBuffer_Enable) || \ + ((STATE) == DAC_OutputBuffer_Disable)) +/** + * @} + */ + +/** @defgroup DAC_Channel_selection + * @{ + */ + +#define DAC_Channel_1 ((uint32_t)0x00000000) +#define DAC_Channel_2 ((uint32_t)0x00000010) +#define IS_DAC_CHANNEL(CHANNEL) (((CHANNEL) == DAC_Channel_1) || \ + ((CHANNEL) == DAC_Channel_2)) +/** + * @} + */ + +/** @defgroup DAC_data_alignement + * @{ + */ + +#define DAC_Align_12b_R ((uint32_t)0x00000000) +#define DAC_Align_12b_L ((uint32_t)0x00000004) +#define DAC_Align_8b_R ((uint32_t)0x00000008) +#define IS_DAC_ALIGN(ALIGN) (((ALIGN) == DAC_Align_12b_R) || \ + ((ALIGN) == DAC_Align_12b_L) || \ + ((ALIGN) == DAC_Align_8b_R)) +/** + * @} + */ + +/** @defgroup DAC_wave_generation + * @{ + */ + +#define DAC_Wave_Noise ((uint32_t)0x00000040) +#define DAC_Wave_Triangle ((uint32_t)0x00000080) +#define IS_DAC_WAVE(WAVE) (((WAVE) == DAC_Wave_Noise) || \ + ((WAVE) == DAC_Wave_Triangle)) +/** + * @} + */ + +/** @defgroup DAC_data + * @{ + */ + +#define IS_DAC_DATA(DATA) ((DATA) <= 0xFFF0) +/** + * @} + */ + +/** @defgroup DAC_interrupts_definition + * @{ + */ +#define DAC_IT_DMAUDR ((uint32_t)0x00002000) +#define IS_DAC_IT(IT) (((IT) == DAC_IT_DMAUDR)) + +/** + * @} + */ + +/** @defgroup DAC_flags_definition + * @{ + */ + +#define DAC_FLAG_DMAUDR ((uint32_t)0x00002000) +#define IS_DAC_FLAG(FLAG) (((FLAG) == DAC_FLAG_DMAUDR)) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the DAC configuration to the default reset state *****/ +void DAC_DeInit(void); + +/* DAC channels configuration: trigger, output buffer, data format functions */ +void DAC_Init(uint32_t DAC_Channel, DAC_InitTypeDef* DAC_InitStruct); +void DAC_StructInit(DAC_InitTypeDef* DAC_InitStruct); +void DAC_Cmd(uint32_t DAC_Channel, FunctionalState NewState); +void DAC_SoftwareTriggerCmd(uint32_t DAC_Channel, FunctionalState NewState); +void DAC_DualSoftwareTriggerCmd(FunctionalState NewState); +void DAC_WaveGenerationCmd(uint32_t DAC_Channel, uint32_t DAC_Wave, FunctionalState NewState); +void DAC_SetChannel1Data(uint32_t DAC_Align, uint16_t Data); +void DAC_SetChannel2Data(uint32_t DAC_Align, uint16_t Data); +void DAC_SetDualChannelData(uint32_t DAC_Align, uint16_t Data2, uint16_t Data1); +uint16_t DAC_GetDataOutputValue(uint32_t DAC_Channel); + +/* DMA management functions ***************************************************/ +void DAC_DMACmd(uint32_t DAC_Channel, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void DAC_ITConfig(uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState); +FlagStatus DAC_GetFlagStatus(uint32_t DAC_Channel, uint32_t DAC_FLAG); +void DAC_ClearFlag(uint32_t DAC_Channel, uint32_t DAC_FLAG); +ITStatus DAC_GetITStatus(uint32_t DAC_Channel, uint32_t DAC_IT); +void DAC_ClearITPendingBit(uint32_t DAC_Channel, uint32_t DAC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_DAC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dbgmcu.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dbgmcu.h new file mode 100644 index 00000000..2a5baa58 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dbgmcu.h @@ -0,0 +1,109 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dbgmcu.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the DBGMCU firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_DBGMCU_H +#define __STM32F2xx_DBGMCU_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup DBGMCU + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup DBGMCU_Exported_Constants + * @{ + */ +#define DBGMCU_SLEEP ((uint32_t)0x00000001) +#define DBGMCU_STOP ((uint32_t)0x00000002) +#define DBGMCU_STANDBY ((uint32_t)0x00000004) +#define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFF8) == 0x00) && ((PERIPH) != 0x00)) + +#define DBGMCU_TIM2_STOP ((uint32_t)0x00000001) +#define DBGMCU_TIM3_STOP ((uint32_t)0x00000002) +#define DBGMCU_TIM4_STOP ((uint32_t)0x00000004) +#define DBGMCU_TIM5_STOP ((uint32_t)0x00000008) +#define DBGMCU_TIM6_STOP ((uint32_t)0x00000010) +#define DBGMCU_TIM7_STOP ((uint32_t)0x00000020) +#define DBGMCU_TIM12_STOP ((uint32_t)0x00000040) +#define DBGMCU_TIM13_STOP ((uint32_t)0x00000080) +#define DBGMCU_TIM14_STOP ((uint32_t)0x00000100) +#define DBGMCU_RTC_STOP ((uint32_t)0x00000400) +#define DBGMCU_WWDG_STOP ((uint32_t)0x00000800) +#define DBGMCU_IWDG_STOP ((uint32_t)0x00001000) +#define DBGMCU_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00200000) +#define DBGMCU_I2C2_SMBUS_TIMEOUT ((uint32_t)0x00400000) +#define DBGMCU_I2C3_SMBUS_TIMEOUT ((uint32_t)0x00800000) +#define DBGMCU_CAN1_STOP ((uint32_t)0x02000000) +#define DBGMCU_CAN2_STOP ((uint32_t)0x04000000) +#define IS_DBGMCU_APB1PERIPH(PERIPH) ((((PERIPH) & 0xF91FE200) == 0x00) && ((PERIPH) != 0x00)) + +#define DBGMCU_TIM1_STOP ((uint32_t)0x00000001) +#define DBGMCU_TIM8_STOP ((uint32_t)0x00000002) +#define DBGMCU_TIM9_STOP ((uint32_t)0x00010000) +#define DBGMCU_TIM10_STOP ((uint32_t)0x00020000) +#define DBGMCU_TIM11_STOP ((uint32_t)0x00040000) +#define IS_DBGMCU_APB2PERIPH(PERIPH) ((((PERIPH) & 0xFFF8FFFC) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ +uint32_t DBGMCU_GetREVID(void); +uint32_t DBGMCU_GetDEVID(void); +void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState); +void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState); +void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_DBGMCU_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dcmi.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dcmi.h new file mode 100644 index 00000000..eb321267 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dcmi.h @@ -0,0 +1,312 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dcmi.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the DCMI firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_DCMI_H +#define __STM32F2xx_DCMI_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup DCMI + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/** + * @brief DCMI Init structure definition + */ +typedef struct +{ + uint16_t DCMI_CaptureMode; /*!< Specifies the Capture Mode: Continuous or Snapshot. + This parameter can be a value of @ref DCMI_Capture_Mode */ + + uint16_t DCMI_SynchroMode; /*!< Specifies the Synchronization Mode: Hardware or Embedded. + This parameter can be a value of @ref DCMI_Synchronization_Mode */ + + uint16_t DCMI_PCKPolarity; /*!< Specifies the Pixel clock polarity: Falling or Rising. + This parameter can be a value of @ref DCMI_PIXCK_Polarity */ + + uint16_t DCMI_VSPolarity; /*!< Specifies the Vertical synchronization polarity: High or Low. + This parameter can be a value of @ref DCMI_VSYNC_Polarity */ + + uint16_t DCMI_HSPolarity; /*!< Specifies the Horizontal synchronization polarity: High or Low. + This parameter can be a value of @ref DCMI_HSYNC_Polarity */ + + uint16_t DCMI_CaptureRate; /*!< Specifies the frequency of frame capture: All, 1/2 or 1/4. + This parameter can be a value of @ref DCMI_Capture_Rate */ + + uint16_t DCMI_ExtendedDataMode; /*!< Specifies the data width: 8-bit, 10-bit, 12-bit or 14-bit. + This parameter can be a value of @ref DCMI_Extended_Data_Mode */ +} DCMI_InitTypeDef; + +/** + * @brief DCMI CROP Init structure definition + */ +typedef struct +{ + uint16_t DCMI_VerticalStartLine; /*!< Specifies the Vertical start line count from which the image capture + will start. This parameter can be a value between 0x00 and 0x1FFF */ + + uint16_t DCMI_HorizontalOffsetCount; /*!< Specifies the number of pixel clocks to count before starting a capture. + This parameter can be a value between 0x00 and 0x3FFF */ + + uint16_t DCMI_VerticalLineCount; /*!< Specifies the number of lines to be captured from the starting point. + This parameter can be a value between 0x00 and 0x3FFF */ + + uint16_t DCMI_CaptureCount; /*!< Specifies the number of pixel clocks to be captured from the starting + point on the same line. + This parameter can be a value between 0x00 and 0x3FFF */ +} DCMI_CROPInitTypeDef; + +/** + * @brief DCMI Embedded Synchronisation CODE Init structure definition + */ +typedef struct +{ + uint8_t DCMI_FrameStartCode; /*!< Specifies the code of the frame start delimiter. */ + uint8_t DCMI_LineStartCode; /*!< Specifies the code of the line start delimiter. */ + uint8_t DCMI_LineEndCode; /*!< Specifies the code of the line end delimiter. */ + uint8_t DCMI_FrameEndCode; /*!< Specifies the code of the frame end delimiter. */ +} DCMI_CodesInitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup DCMI_Exported_Constants + * @{ + */ + +/** @defgroup DCMI_Capture_Mode + * @{ + */ +#define DCMI_CaptureMode_Continuous ((uint16_t)0x0000) /*!< The received data are transferred continuously + into the destination memory through the DMA */ +#define DCMI_CaptureMode_SnapShot ((uint16_t)0x0002) /*!< Once activated, the interface waits for the start of + frame and then transfers a single frame through the DMA */ +#define IS_DCMI_CAPTURE_MODE(MODE)(((MODE) == DCMI_CaptureMode_Continuous) || \ + ((MODE) == DCMI_CaptureMode_SnapShot)) +/** + * @} + */ + + +/** @defgroup DCMI_Synchronization_Mode + * @{ + */ +#define DCMI_SynchroMode_Hardware ((uint16_t)0x0000) /*!< Hardware synchronization data capture (frame/line start/stop) + is synchronized with the HSYNC/VSYNC signals */ +#define DCMI_SynchroMode_Embedded ((uint16_t)0x0010) /*!< Embedded synchronization data capture is synchronized with + synchronization codes embedded in the data flow */ +#define IS_DCMI_SYNCHRO(MODE)(((MODE) == DCMI_SynchroMode_Hardware) || \ + ((MODE) == DCMI_SynchroMode_Embedded)) +/** + * @} + */ + + +/** @defgroup DCMI_PIXCK_Polarity + * @{ + */ +#define DCMI_PCKPolarity_Falling ((uint16_t)0x0000) /*!< Pixel clock active on Falling edge */ +#define DCMI_PCKPolarity_Rising ((uint16_t)0x0020) /*!< Pixel clock active on Rising edge */ +#define IS_DCMI_PCKPOLARITY(POLARITY)(((POLARITY) == DCMI_PCKPolarity_Falling) || \ + ((POLARITY) == DCMI_PCKPolarity_Rising)) +/** + * @} + */ + + +/** @defgroup DCMI_VSYNC_Polarity + * @{ + */ +#define DCMI_VSPolarity_Low ((uint16_t)0x0000) /*!< Vertical synchronization active Low */ +#define DCMI_VSPolarity_High ((uint16_t)0x0080) /*!< Vertical synchronization active High */ +#define IS_DCMI_VSPOLARITY(POLARITY)(((POLARITY) == DCMI_VSPolarity_Low) || \ + ((POLARITY) == DCMI_VSPolarity_High)) +/** + * @} + */ + + +/** @defgroup DCMI_HSYNC_Polarity + * @{ + */ +#define DCMI_HSPolarity_Low ((uint16_t)0x0000) /*!< Horizontal synchronization active Low */ +#define DCMI_HSPolarity_High ((uint16_t)0x0040) /*!< Horizontal synchronization active High */ +#define IS_DCMI_HSPOLARITY(POLARITY)(((POLARITY) == DCMI_HSPolarity_Low) || \ + ((POLARITY) == DCMI_HSPolarity_High)) +/** + * @} + */ + + +/** @defgroup DCMI_Capture_Rate + * @{ + */ +#define DCMI_CaptureRate_All_Frame ((uint16_t)0x0000) /*!< All frames are captured */ +#define DCMI_CaptureRate_1of2_Frame ((uint16_t)0x0100) /*!< Every alternate frame captured */ +#define DCMI_CaptureRate_1of4_Frame ((uint16_t)0x0200) /*!< One frame in 4 frames captured */ +#define IS_DCMI_CAPTURE_RATE(RATE) (((RATE) == DCMI_CaptureRate_All_Frame) || \ + ((RATE) == DCMI_CaptureRate_1of2_Frame) ||\ + ((RATE) == DCMI_CaptureRate_1of4_Frame)) +/** + * @} + */ + + +/** @defgroup DCMI_Extended_Data_Mode + * @{ + */ +#define DCMI_ExtendedDataMode_8b ((uint16_t)0x0000) /*!< Interface captures 8-bit data on every pixel clock */ +#define DCMI_ExtendedDataMode_10b ((uint16_t)0x0400) /*!< Interface captures 10-bit data on every pixel clock */ +#define DCMI_ExtendedDataMode_12b ((uint16_t)0x0800) /*!< Interface captures 12-bit data on every pixel clock */ +#define DCMI_ExtendedDataMode_14b ((uint16_t)0x0C00) /*!< Interface captures 14-bit data on every pixel clock */ +#define IS_DCMI_EXTENDED_DATA(DATA)(((DATA) == DCMI_ExtendedDataMode_8b) || \ + ((DATA) == DCMI_ExtendedDataMode_10b) ||\ + ((DATA) == DCMI_ExtendedDataMode_12b) ||\ + ((DATA) == DCMI_ExtendedDataMode_14b)) +/** + * @} + */ + + +/** @defgroup DCMI_interrupt_sources + * @{ + */ +#define DCMI_IT_FRAME ((uint16_t)0x0001) +#define DCMI_IT_OVF ((uint16_t)0x0002) +#define DCMI_IT_ERR ((uint16_t)0x0004) +#define DCMI_IT_VSYNC ((uint16_t)0x0008) +#define DCMI_IT_LINE ((uint16_t)0x0010) +#define IS_DCMI_CONFIG_IT(IT) ((((IT) & (uint16_t)0xFFE0) == 0x0000) && ((IT) != 0x0000)) +#define IS_DCMI_GET_IT(IT) (((IT) == DCMI_IT_FRAME) || \ + ((IT) == DCMI_IT_OVF) || \ + ((IT) == DCMI_IT_ERR) || \ + ((IT) == DCMI_IT_VSYNC) || \ + ((IT) == DCMI_IT_LINE)) +/** + * @} + */ + + +/** @defgroup DCMI_Flags + * @{ + */ +/** + * @brief DCMI SR register + */ +#define DCMI_FLAG_HSYNC ((uint16_t)0x2001) +#define DCMI_FLAG_VSYNC ((uint16_t)0x2002) +#define DCMI_FLAG_FNE ((uint16_t)0x2004) +/** + * @brief DCMI RISR register + */ +#define DCMI_FLAG_FRAMERI ((uint16_t)0x0001) +#define DCMI_FLAG_OVFRI ((uint16_t)0x0002) +#define DCMI_FLAG_ERRRI ((uint16_t)0x0004) +#define DCMI_FLAG_VSYNCRI ((uint16_t)0x0008) +#define DCMI_FLAG_LINERI ((uint16_t)0x0010) +/** + * @brief DCMI MISR register + */ +#define DCMI_FLAG_FRAMEMI ((uint16_t)0x1001) +#define DCMI_FLAG_OVFMI ((uint16_t)0x1002) +#define DCMI_FLAG_ERRMI ((uint16_t)0x1004) +#define DCMI_FLAG_VSYNCMI ((uint16_t)0x1008) +#define DCMI_FLAG_LINEMI ((uint16_t)0x1010) +#define IS_DCMI_GET_FLAG(FLAG) (((FLAG) == DCMI_FLAG_HSYNC) || \ + ((FLAG) == DCMI_FLAG_VSYNC) || \ + ((FLAG) == DCMI_FLAG_FNE) || \ + ((FLAG) == DCMI_FLAG_FRAMERI) || \ + ((FLAG) == DCMI_FLAG_OVFRI) || \ + ((FLAG) == DCMI_FLAG_ERRRI) || \ + ((FLAG) == DCMI_FLAG_VSYNCRI) || \ + ((FLAG) == DCMI_FLAG_LINERI) || \ + ((FLAG) == DCMI_FLAG_FRAMEMI) || \ + ((FLAG) == DCMI_FLAG_OVFMI) || \ + ((FLAG) == DCMI_FLAG_ERRMI) || \ + ((FLAG) == DCMI_FLAG_VSYNCMI) || \ + ((FLAG) == DCMI_FLAG_LINEMI)) + +#define IS_DCMI_CLEAR_FLAG(FLAG) ((((FLAG) & (uint16_t)0xFFE0) == 0x0000) && ((FLAG) != 0x0000)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the DCMI configuration to the default reset state ****/ +void DCMI_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +void DCMI_Init(DCMI_InitTypeDef* DCMI_InitStruct); +void DCMI_StructInit(DCMI_InitTypeDef* DCMI_InitStruct); +void DCMI_CROPConfig(DCMI_CROPInitTypeDef* DCMI_CROPInitStruct); +void DCMI_CROPCmd(FunctionalState NewState); +void DCMI_SetEmbeddedSynchroCodes(DCMI_CodesInitTypeDef* DCMI_CodesInitStruct); +void DCMI_JPEGCmd(FunctionalState NewState); + +/* Image capture functions ****************************************************/ +void DCMI_Cmd(FunctionalState NewState); +void DCMI_CaptureCmd(FunctionalState NewState); +uint32_t DCMI_ReadData(void); + +/* Interrupts and flags management functions **********************************/ +void DCMI_ITConfig(uint16_t DCMI_IT, FunctionalState NewState); +FlagStatus DCMI_GetFlagStatus(uint16_t DCMI_FLAG); +void DCMI_ClearFlag(uint16_t DCMI_FLAG); +ITStatus DCMI_GetITStatus(uint16_t DCMI_IT); +void DCMI_ClearITPendingBit(uint16_t DCMI_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_DCMI_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dma.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dma.h new file mode 100644 index 00000000..94c7dff4 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_dma.h @@ -0,0 +1,609 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dma.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the DMA firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_DMA_H +#define __STM32F2xx_DMA_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup DMA + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief DMA Init structure definition + */ + +typedef struct +{ + uint32_t DMA_Channel; /*!< Specifies the channel used for the specified stream. + This parameter can be a value of @ref DMA_channel */ + + uint32_t DMA_PeripheralBaseAddr; /*!< Specifies the peripheral base address for DMAy Streamx. */ + + uint32_t DMA_Memory0BaseAddr; /*!< Specifies the memory 0 base address for DMAy Streamx. + This memory is the default memory used when double buffer mode is + not enabled. */ + + uint32_t DMA_DIR; /*!< Specifies if the data will be transferred from memory to peripheral, + from memory to memory or from peripheral to memory. + This parameter can be a value of @ref DMA_data_transfer_direction */ + + uint32_t DMA_BufferSize; /*!< Specifies the buffer size, in data unit, of the specified Stream. + The data unit is equal to the configuration set in DMA_PeripheralDataSize + or DMA_MemoryDataSize members depending in the transfer direction. */ + + uint32_t DMA_PeripheralInc; /*!< Specifies whether the Peripheral address register should be incremented or not. + This parameter can be a value of @ref DMA_peripheral_incremented_mode */ + + uint32_t DMA_MemoryInc; /*!< Specifies whether the memory address register should be incremented or not. + This parameter can be a value of @ref DMA_memory_incremented_mode */ + + uint32_t DMA_PeripheralDataSize; /*!< Specifies the Peripheral data width. + This parameter can be a value of @ref DMA_peripheral_data_size */ + + uint32_t DMA_MemoryDataSize; /*!< Specifies the Memory data width. + This parameter can be a value of @ref DMA_memory_data_size */ + + uint32_t DMA_Mode; /*!< Specifies the operation mode of the DMAy Streamx. + This parameter can be a value of @ref DMA_circular_normal_mode + @note The circular buffer mode cannot be used if the memory-to-memory + data transfer is configured on the selected Stream */ + + uint32_t DMA_Priority; /*!< Specifies the software priority for the DMAy Streamx. + This parameter can be a value of @ref DMA_priority_level */ + + uint32_t DMA_FIFOMode; /*!< Specifies if the FIFO mode or Direct mode will be used for the specified Stream. + This parameter can be a value of @ref DMA_fifo_direct_mode + @note The Direct mode (FIFO mode disabled) cannot be used if the + memory-to-memory data transfer is configured on the selected Stream */ + + uint32_t DMA_FIFOThreshold; /*!< Specifies the FIFO threshold level. + This parameter can be a value of @ref DMA_fifo_threshold_level */ + + uint32_t DMA_MemoryBurst; /*!< Specifies the Burst transfer configuration for the memory transfers. + It specifies the amount of data to be transferred in a single non interruptable + transaction. This parameter can be a value of @ref DMA_memory_burst + @note The burst mode is possible only if the address Increment mode is enabled. */ + + uint32_t DMA_PeripheralBurst; /*!< Specifies the Burst transfer configuration for the peripheral transfers. + It specifies the amount of data to be transferred in a single non interruptable + transaction. This parameter can be a value of @ref DMA_peripheral_burst + @note The burst mode is possible only if the address Increment mode is enabled. */ +}DMA_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup DMA_Exported_Constants + * @{ + */ + +#define IS_DMA_ALL_PERIPH(PERIPH) (((PERIPH) == DMA1_Stream0) || \ + ((PERIPH) == DMA1_Stream1) || \ + ((PERIPH) == DMA1_Stream2) || \ + ((PERIPH) == DMA1_Stream3) || \ + ((PERIPH) == DMA1_Stream4) || \ + ((PERIPH) == DMA1_Stream5) || \ + ((PERIPH) == DMA1_Stream6) || \ + ((PERIPH) == DMA1_Stream7) || \ + ((PERIPH) == DMA2_Stream0) || \ + ((PERIPH) == DMA2_Stream1) || \ + ((PERIPH) == DMA2_Stream2) || \ + ((PERIPH) == DMA2_Stream3) || \ + ((PERIPH) == DMA2_Stream4) || \ + ((PERIPH) == DMA2_Stream5) || \ + ((PERIPH) == DMA2_Stream6) || \ + ((PERIPH) == DMA2_Stream7)) + +#define IS_DMA_ALL_CONTROLLER(CONTROLLER) (((CONTROLLER) == DMA1) || \ + ((CONTROLLER) == DMA2)) + +/** @defgroup DMA_channel + * @{ + */ +#define DMA_Channel_0 ((uint32_t)0x00000000) +#define DMA_Channel_1 ((uint32_t)0x02000000) +#define DMA_Channel_2 ((uint32_t)0x04000000) +#define DMA_Channel_3 ((uint32_t)0x06000000) +#define DMA_Channel_4 ((uint32_t)0x08000000) +#define DMA_Channel_5 ((uint32_t)0x0A000000) +#define DMA_Channel_6 ((uint32_t)0x0C000000) +#define DMA_Channel_7 ((uint32_t)0x0E000000) + +#define IS_DMA_CHANNEL(CHANNEL) (((CHANNEL) == DMA_Channel_0) || \ + ((CHANNEL) == DMA_Channel_1) || \ + ((CHANNEL) == DMA_Channel_2) || \ + ((CHANNEL) == DMA_Channel_3) || \ + ((CHANNEL) == DMA_Channel_4) || \ + ((CHANNEL) == DMA_Channel_5) || \ + ((CHANNEL) == DMA_Channel_6) || \ + ((CHANNEL) == DMA_Channel_7)) +/** + * @} + */ + + +/** @defgroup DMA_data_transfer_direction + * @{ + */ +#define DMA_DIR_PeripheralToMemory ((uint32_t)0x00000000) +#define DMA_DIR_MemoryToPeripheral ((uint32_t)0x00000040) +#define DMA_DIR_MemoryToMemory ((uint32_t)0x00000080) + +#define IS_DMA_DIRECTION(DIRECTION) (((DIRECTION) == DMA_DIR_PeripheralToMemory ) || \ + ((DIRECTION) == DMA_DIR_MemoryToPeripheral) || \ + ((DIRECTION) == DMA_DIR_MemoryToMemory)) +/** + * @} + */ + + +/** @defgroup DMA_data_buffer_size + * @{ + */ +#define IS_DMA_BUFFER_SIZE(SIZE) (((SIZE) >= 0x1) && ((SIZE) < 0x10000)) +/** + * @} + */ + + +/** @defgroup DMA_peripheral_incremented_mode + * @{ + */ +#define DMA_PeripheralInc_Enable ((uint32_t)0x00000200) +#define DMA_PeripheralInc_Disable ((uint32_t)0x00000000) + +#define IS_DMA_PERIPHERAL_INC_STATE(STATE) (((STATE) == DMA_PeripheralInc_Enable) || \ + ((STATE) == DMA_PeripheralInc_Disable)) +/** + * @} + */ + + +/** @defgroup DMA_memory_incremented_mode + * @{ + */ +#define DMA_MemoryInc_Enable ((uint32_t)0x00000400) +#define DMA_MemoryInc_Disable ((uint32_t)0x00000000) + +#define IS_DMA_MEMORY_INC_STATE(STATE) (((STATE) == DMA_MemoryInc_Enable) || \ + ((STATE) == DMA_MemoryInc_Disable)) +/** + * @} + */ + + +/** @defgroup DMA_peripheral_data_size + * @{ + */ +#define DMA_PeripheralDataSize_Byte ((uint32_t)0x00000000) +#define DMA_PeripheralDataSize_HalfWord ((uint32_t)0x00000800) +#define DMA_PeripheralDataSize_Word ((uint32_t)0x00001000) + +#define IS_DMA_PERIPHERAL_DATA_SIZE(SIZE) (((SIZE) == DMA_PeripheralDataSize_Byte) || \ + ((SIZE) == DMA_PeripheralDataSize_HalfWord) || \ + ((SIZE) == DMA_PeripheralDataSize_Word)) +/** + * @} + */ + + +/** @defgroup DMA_memory_data_size + * @{ + */ +#define DMA_MemoryDataSize_Byte ((uint32_t)0x00000000) +#define DMA_MemoryDataSize_HalfWord ((uint32_t)0x00002000) +#define DMA_MemoryDataSize_Word ((uint32_t)0x00004000) + +#define IS_DMA_MEMORY_DATA_SIZE(SIZE) (((SIZE) == DMA_MemoryDataSize_Byte) || \ + ((SIZE) == DMA_MemoryDataSize_HalfWord) || \ + ((SIZE) == DMA_MemoryDataSize_Word )) +/** + * @} + */ + + +/** @defgroup DMA_circular_normal_mode + * @{ + */ +#define DMA_Mode_Normal ((uint32_t)0x00000000) +#define DMA_Mode_Circular ((uint32_t)0x00000100) + +#define IS_DMA_MODE(MODE) (((MODE) == DMA_Mode_Normal ) || \ + ((MODE) == DMA_Mode_Circular)) +/** + * @} + */ + + +/** @defgroup DMA_priority_level + * @{ + */ +#define DMA_Priority_Low ((uint32_t)0x00000000) +#define DMA_Priority_Medium ((uint32_t)0x00010000) +#define DMA_Priority_High ((uint32_t)0x00020000) +#define DMA_Priority_VeryHigh ((uint32_t)0x00030000) + +#define IS_DMA_PRIORITY(PRIORITY) (((PRIORITY) == DMA_Priority_Low ) || \ + ((PRIORITY) == DMA_Priority_Medium) || \ + ((PRIORITY) == DMA_Priority_High) || \ + ((PRIORITY) == DMA_Priority_VeryHigh)) +/** + * @} + */ + + +/** @defgroup DMA_fifo_direct_mode + * @{ + */ +#define DMA_FIFOMode_Disable ((uint32_t)0x00000000) +#define DMA_FIFOMode_Enable ((uint32_t)0x00000004) + +#define IS_DMA_FIFO_MODE_STATE(STATE) (((STATE) == DMA_FIFOMode_Disable ) || \ + ((STATE) == DMA_FIFOMode_Enable)) +/** + * @} + */ + + +/** @defgroup DMA_fifo_threshold_level + * @{ + */ +#define DMA_FIFOThreshold_1QuarterFull ((uint32_t)0x00000000) +#define DMA_FIFOThreshold_HalfFull ((uint32_t)0x00000001) +#define DMA_FIFOThreshold_3QuartersFull ((uint32_t)0x00000002) +#define DMA_FIFOThreshold_Full ((uint32_t)0x00000003) + +#define IS_DMA_FIFO_THRESHOLD(THRESHOLD) (((THRESHOLD) == DMA_FIFOThreshold_1QuarterFull ) || \ + ((THRESHOLD) == DMA_FIFOThreshold_HalfFull) || \ + ((THRESHOLD) == DMA_FIFOThreshold_3QuartersFull) || \ + ((THRESHOLD) == DMA_FIFOThreshold_Full)) +/** + * @} + */ + + +/** @defgroup DMA_memory_burst + * @{ + */ +#define DMA_MemoryBurst_Single ((uint32_t)0x00000000) +#define DMA_MemoryBurst_INC4 ((uint32_t)0x00800000) +#define DMA_MemoryBurst_INC8 ((uint32_t)0x01000000) +#define DMA_MemoryBurst_INC16 ((uint32_t)0x01800000) + +#define IS_DMA_MEMORY_BURST(BURST) (((BURST) == DMA_MemoryBurst_Single) || \ + ((BURST) == DMA_MemoryBurst_INC4) || \ + ((BURST) == DMA_MemoryBurst_INC8) || \ + ((BURST) == DMA_MemoryBurst_INC16)) +/** + * @} + */ + + +/** @defgroup DMA_peripheral_burst + * @{ + */ +#define DMA_PeripheralBurst_Single ((uint32_t)0x00000000) +#define DMA_PeripheralBurst_INC4 ((uint32_t)0x00200000) +#define DMA_PeripheralBurst_INC8 ((uint32_t)0x00400000) +#define DMA_PeripheralBurst_INC16 ((uint32_t)0x00600000) + +#define IS_DMA_PERIPHERAL_BURST(BURST) (((BURST) == DMA_PeripheralBurst_Single) || \ + ((BURST) == DMA_PeripheralBurst_INC4) || \ + ((BURST) == DMA_PeripheralBurst_INC8) || \ + ((BURST) == DMA_PeripheralBurst_INC16)) +/** + * @} + */ + + +/** @defgroup DMA_fifo_status_level + * @{ + */ +#define DMA_FIFOStatus_Less1QuarterFull ((uint32_t)0x00000000 << 3) +#define DMA_FIFOStatus_1QuarterFull ((uint32_t)0x00000001 << 3) +#define DMA_FIFOStatus_HalfFull ((uint32_t)0x00000002 << 3) +#define DMA_FIFOStatus_3QuartersFull ((uint32_t)0x00000003 << 3) +#define DMA_FIFOStatus_Empty ((uint32_t)0x00000004 << 3) +#define DMA_FIFOStatus_Full ((uint32_t)0x00000005 << 3) + +#define IS_DMA_FIFO_STATUS(STATUS) (((STATUS) == DMA_FIFOStatus_Less1QuarterFull ) || \ + ((STATUS) == DMA_FIFOStatus_HalfFull) || \ + ((STATUS) == DMA_FIFOStatus_1QuarterFull) || \ + ((STATUS) == DMA_FIFOStatus_3QuartersFull) || \ + ((STATUS) == DMA_FIFOStatus_Full) || \ + ((STATUS) == DMA_FIFOStatus_Empty)) +/** + * @} + */ + +/** @defgroup DMA_flags_definition + * @{ + */ +#define DMA_FLAG_FEIF0 ((uint32_t)0x10800001) +#define DMA_FLAG_DMEIF0 ((uint32_t)0x10800004) +#define DMA_FLAG_TEIF0 ((uint32_t)0x10000008) +#define DMA_FLAG_HTIF0 ((uint32_t)0x10000010) +#define DMA_FLAG_TCIF0 ((uint32_t)0x10000020) +#define DMA_FLAG_FEIF1 ((uint32_t)0x10000040) +#define DMA_FLAG_DMEIF1 ((uint32_t)0x10000100) +#define DMA_FLAG_TEIF1 ((uint32_t)0x10000200) +#define DMA_FLAG_HTIF1 ((uint32_t)0x10000400) +#define DMA_FLAG_TCIF1 ((uint32_t)0x10000800) +#define DMA_FLAG_FEIF2 ((uint32_t)0x10010000) +#define DMA_FLAG_DMEIF2 ((uint32_t)0x10040000) +#define DMA_FLAG_TEIF2 ((uint32_t)0x10080000) +#define DMA_FLAG_HTIF2 ((uint32_t)0x10100000) +#define DMA_FLAG_TCIF2 ((uint32_t)0x10200000) +#define DMA_FLAG_FEIF3 ((uint32_t)0x10400000) +#define DMA_FLAG_DMEIF3 ((uint32_t)0x11000000) +#define DMA_FLAG_TEIF3 ((uint32_t)0x12000000) +#define DMA_FLAG_HTIF3 ((uint32_t)0x14000000) +#define DMA_FLAG_TCIF3 ((uint32_t)0x18000000) +#define DMA_FLAG_FEIF4 ((uint32_t)0x20000001) +#define DMA_FLAG_DMEIF4 ((uint32_t)0x20000004) +#define DMA_FLAG_TEIF4 ((uint32_t)0x20000008) +#define DMA_FLAG_HTIF4 ((uint32_t)0x20000010) +#define DMA_FLAG_TCIF4 ((uint32_t)0x20000020) +#define DMA_FLAG_FEIF5 ((uint32_t)0x20000040) +#define DMA_FLAG_DMEIF5 ((uint32_t)0x20000100) +#define DMA_FLAG_TEIF5 ((uint32_t)0x20000200) +#define DMA_FLAG_HTIF5 ((uint32_t)0x20000400) +#define DMA_FLAG_TCIF5 ((uint32_t)0x20000800) +#define DMA_FLAG_FEIF6 ((uint32_t)0x20010000) +#define DMA_FLAG_DMEIF6 ((uint32_t)0x20040000) +#define DMA_FLAG_TEIF6 ((uint32_t)0x20080000) +#define DMA_FLAG_HTIF6 ((uint32_t)0x20100000) +#define DMA_FLAG_TCIF6 ((uint32_t)0x20200000) +#define DMA_FLAG_FEIF7 ((uint32_t)0x20400000) +#define DMA_FLAG_DMEIF7 ((uint32_t)0x21000000) +#define DMA_FLAG_TEIF7 ((uint32_t)0x22000000) +#define DMA_FLAG_HTIF7 ((uint32_t)0x24000000) +#define DMA_FLAG_TCIF7 ((uint32_t)0x28000000) + +#define IS_DMA_CLEAR_FLAG(FLAG) ((((FLAG) & 0x30000000) != 0x30000000) && (((FLAG) & 0x30000000) != 0) && \ + (((FLAG) & 0xC082F082) == 0x00) && ((FLAG) != 0x00)) + +#define IS_DMA_GET_FLAG(FLAG) (((FLAG) == DMA_FLAG_TCIF0) || ((FLAG) == DMA_FLAG_HTIF0) || \ + ((FLAG) == DMA_FLAG_TEIF0) || ((FLAG) == DMA_FLAG_DMEIF0) || \ + ((FLAG) == DMA_FLAG_FEIF0) || ((FLAG) == DMA_FLAG_TCIF1) || \ + ((FLAG) == DMA_FLAG_HTIF1) || ((FLAG) == DMA_FLAG_TEIF1) || \ + ((FLAG) == DMA_FLAG_DMEIF1) || ((FLAG) == DMA_FLAG_FEIF1) || \ + ((FLAG) == DMA_FLAG_TCIF2) || ((FLAG) == DMA_FLAG_HTIF2) || \ + ((FLAG) == DMA_FLAG_TEIF2) || ((FLAG) == DMA_FLAG_DMEIF2) || \ + ((FLAG) == DMA_FLAG_FEIF2) || ((FLAG) == DMA_FLAG_TCIF3) || \ + ((FLAG) == DMA_FLAG_HTIF3) || ((FLAG) == DMA_FLAG_TEIF3) || \ + ((FLAG) == DMA_FLAG_DMEIF3) || ((FLAG) == DMA_FLAG_FEIF3) || \ + ((FLAG) == DMA_FLAG_TCIF4) || ((FLAG) == DMA_FLAG_HTIF4) || \ + ((FLAG) == DMA_FLAG_TEIF4) || ((FLAG) == DMA_FLAG_DMEIF4) || \ + ((FLAG) == DMA_FLAG_FEIF4) || ((FLAG) == DMA_FLAG_TCIF5) || \ + ((FLAG) == DMA_FLAG_HTIF5) || ((FLAG) == DMA_FLAG_TEIF5) || \ + ((FLAG) == DMA_FLAG_DMEIF5) || ((FLAG) == DMA_FLAG_FEIF5) || \ + ((FLAG) == DMA_FLAG_TCIF6) || ((FLAG) == DMA_FLAG_HTIF6) || \ + ((FLAG) == DMA_FLAG_TEIF6) || ((FLAG) == DMA_FLAG_DMEIF6) || \ + ((FLAG) == DMA_FLAG_FEIF6) || ((FLAG) == DMA_FLAG_TCIF7) || \ + ((FLAG) == DMA_FLAG_HTIF7) || ((FLAG) == DMA_FLAG_TEIF7) || \ + ((FLAG) == DMA_FLAG_DMEIF7) || ((FLAG) == DMA_FLAG_FEIF7)) +/** + * @} + */ + + +/** @defgroup DMA_interrupt_enable_definitions + * @{ + */ +#define DMA_IT_TC ((uint32_t)0x00000010) +#define DMA_IT_HT ((uint32_t)0x00000008) +#define DMA_IT_TE ((uint32_t)0x00000004) +#define DMA_IT_DME ((uint32_t)0x00000002) +#define DMA_IT_FE ((uint32_t)0x00000080) + +#define IS_DMA_CONFIG_IT(IT) ((((IT) & 0xFFFFFF61) == 0x00) && ((IT) != 0x00)) +/** + * @} + */ + + +/** @defgroup DMA_interrupts_definitions + * @{ + */ +#define DMA_IT_FEIF0 ((uint32_t)0x90000001) +#define DMA_IT_DMEIF0 ((uint32_t)0x10001004) +#define DMA_IT_TEIF0 ((uint32_t)0x10002008) +#define DMA_IT_HTIF0 ((uint32_t)0x10004010) +#define DMA_IT_TCIF0 ((uint32_t)0x10008020) +#define DMA_IT_FEIF1 ((uint32_t)0x90000040) +#define DMA_IT_DMEIF1 ((uint32_t)0x10001100) +#define DMA_IT_TEIF1 ((uint32_t)0x10002200) +#define DMA_IT_HTIF1 ((uint32_t)0x10004400) +#define DMA_IT_TCIF1 ((uint32_t)0x10008800) +#define DMA_IT_FEIF2 ((uint32_t)0x90010000) +#define DMA_IT_DMEIF2 ((uint32_t)0x10041000) +#define DMA_IT_TEIF2 ((uint32_t)0x10082000) +#define DMA_IT_HTIF2 ((uint32_t)0x10104000) +#define DMA_IT_TCIF2 ((uint32_t)0x10208000) +#define DMA_IT_FEIF3 ((uint32_t)0x90400000) +#define DMA_IT_DMEIF3 ((uint32_t)0x11001000) +#define DMA_IT_TEIF3 ((uint32_t)0x12002000) +#define DMA_IT_HTIF3 ((uint32_t)0x14004000) +#define DMA_IT_TCIF3 ((uint32_t)0x18008000) +#define DMA_IT_FEIF4 ((uint32_t)0xA0000001) +#define DMA_IT_DMEIF4 ((uint32_t)0x20001004) +#define DMA_IT_TEIF4 ((uint32_t)0x20002008) +#define DMA_IT_HTIF4 ((uint32_t)0x20004010) +#define DMA_IT_TCIF4 ((uint32_t)0x20008020) +#define DMA_IT_FEIF5 ((uint32_t)0xA0000040) +#define DMA_IT_DMEIF5 ((uint32_t)0x20001100) +#define DMA_IT_TEIF5 ((uint32_t)0x20002200) +#define DMA_IT_HTIF5 ((uint32_t)0x20004400) +#define DMA_IT_TCIF5 ((uint32_t)0x20008800) +#define DMA_IT_FEIF6 ((uint32_t)0xA0010000) +#define DMA_IT_DMEIF6 ((uint32_t)0x20041000) +#define DMA_IT_TEIF6 ((uint32_t)0x20082000) +#define DMA_IT_HTIF6 ((uint32_t)0x20104000) +#define DMA_IT_TCIF6 ((uint32_t)0x20208000) +#define DMA_IT_FEIF7 ((uint32_t)0xA0400000) +#define DMA_IT_DMEIF7 ((uint32_t)0x21001000) +#define DMA_IT_TEIF7 ((uint32_t)0x22002000) +#define DMA_IT_HTIF7 ((uint32_t)0x24004000) +#define DMA_IT_TCIF7 ((uint32_t)0x28008000) + +#define IS_DMA_CLEAR_IT(IT) ((((IT) & 0x30000000) != 0x30000000) && \ + (((IT) & 0x30000000) != 0) && ((IT) != 0x00) && \ + (((IT) & 0x40820082) == 0x00)) + +#define IS_DMA_GET_IT(IT) (((IT) == DMA_IT_TCIF0) || ((IT) == DMA_IT_HTIF0) || \ + ((IT) == DMA_IT_TEIF0) || ((IT) == DMA_IT_DMEIF0) || \ + ((IT) == DMA_IT_FEIF0) || ((IT) == DMA_IT_TCIF1) || \ + ((IT) == DMA_IT_HTIF1) || ((IT) == DMA_IT_TEIF1) || \ + ((IT) == DMA_IT_DMEIF1)|| ((IT) == DMA_IT_FEIF1) || \ + ((IT) == DMA_IT_TCIF2) || ((IT) == DMA_IT_HTIF2) || \ + ((IT) == DMA_IT_TEIF2) || ((IT) == DMA_IT_DMEIF2) || \ + ((IT) == DMA_IT_FEIF2) || ((IT) == DMA_IT_TCIF3) || \ + ((IT) == DMA_IT_HTIF3) || ((IT) == DMA_IT_TEIF3) || \ + ((IT) == DMA_IT_DMEIF3)|| ((IT) == DMA_IT_FEIF3) || \ + ((IT) == DMA_IT_TCIF4) || ((IT) == DMA_IT_HTIF4) || \ + ((IT) == DMA_IT_TEIF4) || ((IT) == DMA_IT_DMEIF4) || \ + ((IT) == DMA_IT_FEIF4) || ((IT) == DMA_IT_TCIF5) || \ + ((IT) == DMA_IT_HTIF5) || ((IT) == DMA_IT_TEIF5) || \ + ((IT) == DMA_IT_DMEIF5)|| ((IT) == DMA_IT_FEIF5) || \ + ((IT) == DMA_IT_TCIF6) || ((IT) == DMA_IT_HTIF6) || \ + ((IT) == DMA_IT_TEIF6) || ((IT) == DMA_IT_DMEIF6) || \ + ((IT) == DMA_IT_FEIF6) || ((IT) == DMA_IT_TCIF7) || \ + ((IT) == DMA_IT_HTIF7) || ((IT) == DMA_IT_TEIF7) || \ + ((IT) == DMA_IT_DMEIF7)|| ((IT) == DMA_IT_FEIF7)) +/** + * @} + */ + + +/** @defgroup DMA_peripheral_increment_offset + * @{ + */ +#define DMA_PINCOS_Psize ((uint32_t)0x00000000) +#define DMA_PINCOS_WordAligned ((uint32_t)0x00008000) + +#define IS_DMA_PINCOS_SIZE(SIZE) (((SIZE) == DMA_PINCOS_Psize) || \ + ((SIZE) == DMA_PINCOS_WordAligned)) +/** + * @} + */ + + +/** @defgroup DMA_flow_controller_definitions + * @{ + */ +#define DMA_FlowCtrl_Memory ((uint32_t)0x00000000) +#define DMA_FlowCtrl_Peripheral ((uint32_t)0x00000020) + +#define IS_DMA_FLOW_CTRL(CTRL) (((CTRL) == DMA_FlowCtrl_Memory) || \ + ((CTRL) == DMA_FlowCtrl_Peripheral)) +/** + * @} + */ + + +/** @defgroup DMA_memory_targets_definitions + * @{ + */ +#define DMA_Memory_0 ((uint32_t)0x00000000) +#define DMA_Memory_1 ((uint32_t)0x00080000) + +#define IS_DMA_CURRENT_MEM(MEM) (((MEM) == DMA_Memory_0) || ((MEM) == DMA_Memory_1)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the DMA configuration to the default reset state *****/ +void DMA_DeInit(DMA_Stream_TypeDef* DMAy_Streamx); + +/* Initialization and Configuration functions *********************************/ +void DMA_Init(DMA_Stream_TypeDef* DMAy_Streamx, DMA_InitTypeDef* DMA_InitStruct); +void DMA_StructInit(DMA_InitTypeDef* DMA_InitStruct); +void DMA_Cmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState); + +/* Optional Configuration functions *******************************************/ +void DMA_PeriphIncOffsetSizeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_Pincos); +void DMA_FlowControllerConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FlowCtrl); + +/* Data Counter functions *****************************************************/ +void DMA_SetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx, uint16_t Counter); +uint16_t DMA_GetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx); + +/* Double Buffer mode functions ***********************************************/ +void DMA_DoubleBufferModeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t Memory1BaseAddr, + uint32_t DMA_CurrentMemory); +void DMA_DoubleBufferModeCmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState); +void DMA_MemoryTargetConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t MemoryBaseAddr, + uint32_t DMA_MemoryTarget); +uint32_t DMA_GetCurrentMemoryTarget(DMA_Stream_TypeDef* DMAy_Streamx); + +/* Interrupts and flags management functions **********************************/ +FunctionalState DMA_GetCmdStatus(DMA_Stream_TypeDef* DMAy_Streamx); +uint32_t DMA_GetFIFOStatus(DMA_Stream_TypeDef* DMAy_Streamx); +FlagStatus DMA_GetFlagStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG); +void DMA_ClearFlag(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG); +void DMA_ITConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT, FunctionalState NewState); +ITStatus DMA_GetITStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT); +void DMA_ClearITPendingBit(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_DMA_H */ + +/** + * @} + */ + +/** + * @} + */ + + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_exti.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_exti.h new file mode 100644 index 00000000..186e87f0 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_exti.h @@ -0,0 +1,183 @@ +/** + ****************************************************************************** + * @file stm32f2xx_exti.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the EXTI firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_EXTI_H +#define __STM32F2xx_EXTI_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup EXTI + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief EXTI mode enumeration + */ + +typedef enum +{ + EXTI_Mode_Interrupt = 0x00, + EXTI_Mode_Event = 0x04 +}EXTIMode_TypeDef; + +#define IS_EXTI_MODE(MODE) (((MODE) == EXTI_Mode_Interrupt) || ((MODE) == EXTI_Mode_Event)) + +/** + * @brief EXTI Trigger enumeration + */ + +typedef enum +{ + EXTI_Trigger_Rising = 0x08, + EXTI_Trigger_Falling = 0x0C, + EXTI_Trigger_Rising_Falling = 0x10 +}EXTITrigger_TypeDef; + +#define IS_EXTI_TRIGGER(TRIGGER) (((TRIGGER) == EXTI_Trigger_Rising) || \ + ((TRIGGER) == EXTI_Trigger_Falling) || \ + ((TRIGGER) == EXTI_Trigger_Rising_Falling)) +/** + * @brief EXTI Init Structure definition + */ + +typedef struct +{ + uint32_t EXTI_Line; /*!< Specifies the EXTI lines to be enabled or disabled. + This parameter can be any combination value of @ref EXTI_Lines */ + + EXTIMode_TypeDef EXTI_Mode; /*!< Specifies the mode for the EXTI lines. + This parameter can be a value of @ref EXTIMode_TypeDef */ + + EXTITrigger_TypeDef EXTI_Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines. + This parameter can be a value of @ref EXTITrigger_TypeDef */ + + FunctionalState EXTI_LineCmd; /*!< Specifies the new state of the selected EXTI lines. + This parameter can be set either to ENABLE or DISABLE */ +}EXTI_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup EXTI_Exported_Constants + * @{ + */ + +/** @defgroup EXTI_Lines + * @{ + */ + +#define EXTI_Line0 ((uint32_t)0x00001) /*!< External interrupt line 0 */ +#define EXTI_Line1 ((uint32_t)0x00002) /*!< External interrupt line 1 */ +#define EXTI_Line2 ((uint32_t)0x00004) /*!< External interrupt line 2 */ +#define EXTI_Line3 ((uint32_t)0x00008) /*!< External interrupt line 3 */ +#define EXTI_Line4 ((uint32_t)0x00010) /*!< External interrupt line 4 */ +#define EXTI_Line5 ((uint32_t)0x00020) /*!< External interrupt line 5 */ +#define EXTI_Line6 ((uint32_t)0x00040) /*!< External interrupt line 6 */ +#define EXTI_Line7 ((uint32_t)0x00080) /*!< External interrupt line 7 */ +#define EXTI_Line8 ((uint32_t)0x00100) /*!< External interrupt line 8 */ +#define EXTI_Line9 ((uint32_t)0x00200) /*!< External interrupt line 9 */ +#define EXTI_Line10 ((uint32_t)0x00400) /*!< External interrupt line 10 */ +#define EXTI_Line11 ((uint32_t)0x00800) /*!< External interrupt line 11 */ +#define EXTI_Line12 ((uint32_t)0x01000) /*!< External interrupt line 12 */ +#define EXTI_Line13 ((uint32_t)0x02000) /*!< External interrupt line 13 */ +#define EXTI_Line14 ((uint32_t)0x04000) /*!< External interrupt line 14 */ +#define EXTI_Line15 ((uint32_t)0x08000) /*!< External interrupt line 15 */ +#define EXTI_Line16 ((uint32_t)0x10000) /*!< External interrupt line 16 Connected to the PVD Output */ +#define EXTI_Line17 ((uint32_t)0x20000) /*!< External interrupt line 17 Connected to the RTC Alarm event */ +#define EXTI_Line18 ((uint32_t)0x40000) /*!< External interrupt line 18 Connected to the USB OTG FS Wakeup from suspend event */ +#define EXTI_Line19 ((uint32_t)0x80000) /*!< External interrupt line 19 Connected to the Ethernet Wakeup event */ +#define EXTI_Line20 ((uint32_t)0x00100000) /*!< External interrupt line 20 Connected to the USB OTG HS (configured in FS) Wakeup event */ +#define EXTI_Line21 ((uint32_t)0x00200000) /*!< External interrupt line 21 Connected to the RTC Tamper and Time Stamp events */ +#define EXTI_Line22 ((uint32_t)0x00400000) /*!< External interrupt line 22 Connected to the RTC Wakeup event */ + +#define IS_EXTI_LINE(LINE) ((((LINE) & (uint32_t)0xFF800000) == 0x00) && ((LINE) != (uint16_t)0x00)) + +#define IS_GET_EXTI_LINE(LINE) (((LINE) == EXTI_Line0) || ((LINE) == EXTI_Line1) || \ + ((LINE) == EXTI_Line2) || ((LINE) == EXTI_Line3) || \ + ((LINE) == EXTI_Line4) || ((LINE) == EXTI_Line5) || \ + ((LINE) == EXTI_Line6) || ((LINE) == EXTI_Line7) || \ + ((LINE) == EXTI_Line8) || ((LINE) == EXTI_Line9) || \ + ((LINE) == EXTI_Line10) || ((LINE) == EXTI_Line11) || \ + ((LINE) == EXTI_Line12) || ((LINE) == EXTI_Line13) || \ + ((LINE) == EXTI_Line14) || ((LINE) == EXTI_Line15) || \ + ((LINE) == EXTI_Line16) || ((LINE) == EXTI_Line17) || \ + ((LINE) == EXTI_Line18) || ((LINE) == EXTI_Line19) || \ + ((LINE) == EXTI_Line20) || ((LINE) == EXTI_Line21) ||\ + ((LINE) == EXTI_Line22)) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the EXTI configuration to the default reset state *****/ +void EXTI_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct); +void EXTI_StructInit(EXTI_InitTypeDef* EXTI_InitStruct); +void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line); + +/* Interrupts and flags management functions **********************************/ +FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line); +void EXTI_ClearFlag(uint32_t EXTI_Line); +ITStatus EXTI_GetITStatus(uint32_t EXTI_Line); +void EXTI_ClearITPendingBit(uint32_t EXTI_Line); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_EXTI_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_flash.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_flash.h new file mode 100644 index 00000000..8ea12def --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_flash.h @@ -0,0 +1,340 @@ +/** + ****************************************************************************** + * @file stm32f2xx_flash.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the FLASH + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_FLASH_H +#define __STM32F2xx_FLASH_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup FLASH + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/** + * @brief FLASH Status + */ +typedef enum +{ + FLASH_BUSY = 1, + FLASH_ERROR_PGS, + FLASH_ERROR_PGP, + FLASH_ERROR_PGA, + FLASH_ERROR_WRP, + FLASH_ERROR_PROGRAM, + FLASH_ERROR_OPERATION, + FLASH_COMPLETE +}FLASH_Status; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup FLASH_Exported_Constants + * @{ + */ + +/** @defgroup Flash_Latency + * @{ + */ +#define FLASH_Latency_0 ((uint8_t)0x0000) /*!< FLASH Zero Latency cycle */ +#define FLASH_Latency_1 ((uint8_t)0x0001) /*!< FLASH One Latency cycle */ +#define FLASH_Latency_2 ((uint8_t)0x0002) /*!< FLASH Two Latency cycles */ +#define FLASH_Latency_3 ((uint8_t)0x0003) /*!< FLASH Three Latency cycles */ +#define FLASH_Latency_4 ((uint8_t)0x0004) /*!< FLASH Four Latency cycles */ +#define FLASH_Latency_5 ((uint8_t)0x0005) /*!< FLASH Five Latency cycles */ +#define FLASH_Latency_6 ((uint8_t)0x0006) /*!< FLASH Six Latency cycles */ +#define FLASH_Latency_7 ((uint8_t)0x0007) /*!< FLASH Seven Latency cycles */ + +#define IS_FLASH_LATENCY(LATENCY) (((LATENCY) == FLASH_Latency_0) || \ + ((LATENCY) == FLASH_Latency_1) || \ + ((LATENCY) == FLASH_Latency_2) || \ + ((LATENCY) == FLASH_Latency_3) || \ + ((LATENCY) == FLASH_Latency_4) || \ + ((LATENCY) == FLASH_Latency_5) || \ + ((LATENCY) == FLASH_Latency_6) || \ + ((LATENCY) == FLASH_Latency_7)) +/** + * @} + */ + +/** @defgroup FLASH_Voltage_Range + * @{ + */ +#define VoltageRange_1 ((uint8_t)0x00) /*!< Device operating range: 1.8V to 2.1V */ +#define VoltageRange_2 ((uint8_t)0x01) /*!= 0x08000000) && ((ADDRESS) < 0x080FFFFF)) ||\ + (((ADDRESS) >= 0x1FFF7800) && ((ADDRESS) < 0x1FFF7A0F))) +/** + * @} + */ + +/** @defgroup Option_Bytes_Write_Protection + * @{ + */ +#define OB_WRP_Sector_0 ((uint32_t)0x00000001) /*!< Write protection of Sector0 */ +#define OB_WRP_Sector_1 ((uint32_t)0x00000002) /*!< Write protection of Sector1 */ +#define OB_WRP_Sector_2 ((uint32_t)0x00000004) /*!< Write protection of Sector2 */ +#define OB_WRP_Sector_3 ((uint32_t)0x00000008) /*!< Write protection of Sector3 */ +#define OB_WRP_Sector_4 ((uint32_t)0x00000010) /*!< Write protection of Sector4 */ +#define OB_WRP_Sector_5 ((uint32_t)0x00000020) /*!< Write protection of Sector5 */ +#define OB_WRP_Sector_6 ((uint32_t)0x00000040) /*!< Write protection of Sector6 */ +#define OB_WRP_Sector_7 ((uint32_t)0x00000080) /*!< Write protection of Sector7 */ +#define OB_WRP_Sector_8 ((uint32_t)0x00000100) /*!< Write protection of Sector8 */ +#define OB_WRP_Sector_9 ((uint32_t)0x00000200) /*!< Write protection of Sector9 */ +#define OB_WRP_Sector_10 ((uint32_t)0x00000400) /*!< Write protection of Sector10 */ +#define OB_WRP_Sector_11 ((uint32_t)0x00000800) /*!< Write protection of Sector11 */ +#define OB_WRP_Sector_All ((uint32_t)0x00000FFF) /*!< Write protection of all Sectors */ + +#define IS_OB_WRP(SECTOR)((((SECTOR) & (uint32_t)0xFFFFF000) == 0x00000000) && ((SECTOR) != 0x00000000)) +/** + * @} + */ + +/** @defgroup FLASH_Option_Bytes_Read_Protection + * @{ + */ +#define OB_RDP_Level_0 ((uint8_t)0xAA) +#define OB_RDP_Level_1 ((uint8_t)0x55) +/*#define OB_RDP_Level_2 ((uint8_t)0xCC)*/ /*!< Warning: When enabling read protection level 2 + it's no more possible to go back to level 1 or 0 */ +#define IS_OB_RDP(LEVEL) (((LEVEL) == OB_RDP_Level_0)||\ + ((LEVEL) == OB_RDP_Level_1))/*||\ + ((LEVEL) == OB_RDP_Level_2))*/ +/** + * @} + */ + +/** @defgroup FLASH_Option_Bytes_IWatchdog + * @{ + */ +#define OB_IWDG_SW ((uint8_t)0x20) /*!< Software IWDG selected */ +#define OB_IWDG_HW ((uint8_t)0x00) /*!< Hardware IWDG selected */ +#define IS_OB_IWDG_SOURCE(SOURCE) (((SOURCE) == OB_IWDG_SW) || ((SOURCE) == OB_IWDG_HW)) +/** + * @} + */ + +/** @defgroup FLASH_Option_Bytes_nRST_STOP + * @{ + */ +#define OB_STOP_NoRST ((uint8_t)0x40) /*!< No reset generated when entering in STOP */ +#define OB_STOP_RST ((uint8_t)0x00) /*!< Reset generated when entering in STOP */ +#define IS_OB_STOP_SOURCE(SOURCE) (((SOURCE) == OB_STOP_NoRST) || ((SOURCE) == OB_STOP_RST)) +/** + * @} + */ + + +/** @defgroup FLASH_Option_Bytes_nRST_STDBY + * @{ + */ +#define OB_STDBY_NoRST ((uint8_t)0x80) /*!< No reset generated when entering in STANDBY */ +#define OB_STDBY_RST ((uint8_t)0x00) /*!< Reset generated when entering in STANDBY */ +#define IS_OB_STDBY_SOURCE(SOURCE) (((SOURCE) == OB_STDBY_NoRST) || ((SOURCE) == OB_STDBY_RST)) +/** + * @} + */ + +/** @defgroup FLASH_BOR_Reset_Level + * @{ + */ +#define OB_BOR_LEVEL3 ((uint8_t)0x00) /*!< Supply voltage ranges from 2.70 to 3.60 V */ +#define OB_BOR_LEVEL2 ((uint8_t)0x04) /*!< Supply voltage ranges from 2.40 to 2.70 V */ +#define OB_BOR_LEVEL1 ((uint8_t)0x08) /*!< Supply voltage ranges from 2.10 to 2.40 V */ +#define OB_BOR_OFF ((uint8_t)0x0C) /*!< Supply voltage ranges from 1.62 to 2.10 V */ +#define IS_OB_BOR(LEVEL) (((LEVEL) == OB_BOR_LEVEL1) || ((LEVEL) == OB_BOR_LEVEL2) ||\ + ((LEVEL) == OB_BOR_LEVEL3) || ((LEVEL) == OB_BOR_OFF)) +/** + * @} + */ + +/** @defgroup FLASH_Interrupts + * @{ + */ +#define FLASH_IT_EOP ((uint32_t)0x01000000) /*!< End of FLASH Operation Interrupt source */ +#define FLASH_IT_ERR ((uint32_t)0x02000000) /*!< Error Interrupt source */ +#define IS_FLASH_IT(IT) ((((IT) & (uint32_t)0xFCFFFFFF) == 0x00000000) && ((IT) != 0x00000000)) +/** + * @} + */ + +/** @defgroup FLASH_Flags + * @{ + */ +#define FLASH_FLAG_EOP ((uint32_t)0x00000001) /*!< FLASH End of Operation flag */ +#define FLASH_FLAG_OPERR ((uint32_t)0x00000002) /*!< FLASH operation Error flag */ +#define FLASH_FLAG_WRPERR ((uint32_t)0x00000010) /*!< FLASH Write protected error flag */ +#define FLASH_FLAG_PGAERR ((uint32_t)0x00000020) /*!< FLASH Programming Alignment error flag */ +#define FLASH_FLAG_PGPERR ((uint32_t)0x00000040) /*!< FLASH Programming Parallelism error flag */ +#define FLASH_FLAG_PGSERR ((uint32_t)0x00000080) /*!< FLASH Programming Sequence error flag */ +#define FLASH_FLAG_BSY ((uint32_t)0x00010000) /*!< FLASH Busy flag */ +#define IS_FLASH_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFFFFF0C) == 0x00000000) && ((FLAG) != 0x00000000)) +#define IS_FLASH_GET_FLAG(FLAG) (((FLAG) == FLASH_FLAG_EOP) || ((FLAG) == FLASH_FLAG_OPERR) || \ + ((FLAG) == FLASH_FLAG_WRPERR) || ((FLAG) == FLASH_FLAG_PGAERR) || \ + ((FLAG) == FLASH_FLAG_PGPERR) || ((FLAG) == FLASH_FLAG_PGSERR) || \ + ((FLAG) == FLASH_FLAG_BSY)) +/** + * @} + */ + +/** @defgroup FLASH_Program_Parallelism + * @{ + */ +#define FLASH_PSIZE_BYTE ((uint32_t)0x00000000) +#define FLASH_PSIZE_HALF_WORD ((uint32_t)0x00000100) +#define FLASH_PSIZE_WORD ((uint32_t)0x00000200) +#define FLASH_PSIZE_DOUBLE_WORD ((uint32_t)0x00000300) +#define CR_PSIZE_MASK ((uint32_t)0xFFFFFCFF) +/** + * @} + */ + +/** @defgroup FLASH_Keys + * @{ + */ +#define RDP_KEY ((uint16_t)0x00A5) +#define FLASH_KEY1 ((uint32_t)0x45670123) +#define FLASH_KEY2 ((uint32_t)0xCDEF89AB) +#define FLASH_OPT_KEY1 ((uint32_t)0x08192A3B) +#define FLASH_OPT_KEY2 ((uint32_t)0x4C5D6E7F) +/** + * @} + */ + +/** + * @brief ACR register byte 0 (Bits[8:0]) base address + */ +#define ACR_BYTE0_ADDRESS ((uint32_t)0x40023C00) +/** + * @brief OPTCR register byte 3 (Bits[24:16]) base address + */ +#define OPTCR_BYTE0_ADDRESS ((uint32_t)0x40023C14) +#define OPTCR_BYTE1_ADDRESS ((uint32_t)0x40023C15) +#define OPTCR_BYTE2_ADDRESS ((uint32_t)0x40023C16) + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* FLASH Interface configuration functions ************************************/ +void FLASH_SetLatency(uint32_t FLASH_Latency); +void FLASH_PrefetchBufferCmd(FunctionalState NewState); +void FLASH_InstructionCacheCmd(FunctionalState NewState); +void FLASH_DataCacheCmd(FunctionalState NewState); +void FLASH_InstructionCacheReset(void); +void FLASH_DataCacheReset(void); + +/* FLASH Memory Programming functions *****************************************/ +void FLASH_Unlock(void); +void FLASH_Lock(void); +FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange); +FLASH_Status FLASH_EraseAllSectors(uint8_t VoltageRange); +FLASH_Status FLASH_ProgramDoubleWord(uint32_t Address, uint64_t Data); +FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data); +FLASH_Status FLASH_ProgramHalfWord(uint32_t Address, uint16_t Data); +FLASH_Status FLASH_ProgramByte(uint32_t Address, uint8_t Data); + +/* Option Bytes Programming functions *****************************************/ +void FLASH_OB_Unlock(void); +void FLASH_OB_Lock(void); +void FLASH_OB_WRPConfig(uint32_t OB_WRP, FunctionalState NewState); +void FLASH_OB_RDPConfig(uint8_t OB_RDP); +void FLASH_OB_UserConfig(uint8_t OB_IWDG, uint8_t OB_STOP, uint8_t OB_STDBY); +void FLASH_OB_BORConfig(uint8_t OB_BOR); +FLASH_Status FLASH_OB_Launch(void); +uint8_t FLASH_OB_GetUser(void); +uint16_t FLASH_OB_GetWRP(void); +FlagStatus FLASH_OB_GetRDP(void); +uint8_t FLASH_OB_GetBOR(void); + +/* Interrupts and flags management functions **********************************/ +void FLASH_ITConfig(uint32_t FLASH_IT, FunctionalState NewState); +FlagStatus FLASH_GetFlagStatus(uint32_t FLASH_FLAG); +void FLASH_ClearFlag(uint32_t FLASH_FLAG); +FLASH_Status FLASH_GetStatus(void); +FLASH_Status FLASH_WaitForLastOperation(void); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_FLASH_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_fsmc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_fsmc.h new file mode 100644 index 00000000..65ffc326 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_fsmc.h @@ -0,0 +1,675 @@ +/** + ****************************************************************************** + * @file stm32f2xx_fsmc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the FSMC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_FSMC_H +#define __STM32F2xx_FSMC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup FSMC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief Timing parameters For NOR/SRAM Banks + */ +typedef struct +{ + uint32_t FSMC_AddressSetupTime; /*!< Defines the number of HCLK cycles to configure + the duration of the address setup time. + This parameter can be a value between 0 and 0xF. + @note This parameter is not used with synchronous NOR Flash memories. */ + + uint32_t FSMC_AddressHoldTime; /*!< Defines the number of HCLK cycles to configure + the duration of the address hold time. + This parameter can be a value between 0 and 0xF. + @note This parameter is not used with synchronous NOR Flash memories.*/ + + uint32_t FSMC_DataSetupTime; /*!< Defines the number of HCLK cycles to configure + the duration of the data setup time. + This parameter can be a value between 0 and 0xFF. + @note This parameter is used for SRAMs, ROMs and asynchronous multiplexed NOR Flash memories. */ + + uint32_t FSMC_BusTurnAroundDuration; /*!< Defines the number of HCLK cycles to configure + the duration of the bus turnaround. + This parameter can be a value between 0 and 0xF. + @note This parameter is only used for multiplexed NOR Flash memories. */ + + uint32_t FSMC_CLKDivision; /*!< Defines the period of CLK clock output signal, expressed in number of HCLK cycles. + This parameter can be a value between 1 and 0xF. + @note This parameter is not used for asynchronous NOR Flash, SRAM or ROM accesses. */ + + uint32_t FSMC_DataLatency; /*!< Defines the number of memory clock cycles to issue + to the memory before getting the first data. + The parameter value depends on the memory type as shown below: + - It must be set to 0 in case of a CRAM + - It is don't care in asynchronous NOR, SRAM or ROM accesses + - It may assume a value between 0 and 0xF in NOR Flash memories + with synchronous burst mode enable */ + + uint32_t FSMC_AccessMode; /*!< Specifies the asynchronous access mode. + This parameter can be a value of @ref FSMC_Access_Mode */ +}FSMC_NORSRAMTimingInitTypeDef; + +/** + * @brief FSMC NOR/SRAM Init structure definition + */ +typedef struct +{ + uint32_t FSMC_Bank; /*!< Specifies the NOR/SRAM memory bank that will be used. + This parameter can be a value of @ref FSMC_NORSRAM_Bank */ + + uint32_t FSMC_DataAddressMux; /*!< Specifies whether the address and data values are + multiplexed on the databus or not. + This parameter can be a value of @ref FSMC_Data_Address_Bus_Multiplexing */ + + uint32_t FSMC_MemoryType; /*!< Specifies the type of external memory attached to + the corresponding memory bank. + This parameter can be a value of @ref FSMC_Memory_Type */ + + uint32_t FSMC_MemoryDataWidth; /*!< Specifies the external memory device width. + This parameter can be a value of @ref FSMC_Data_Width */ + + uint32_t FSMC_BurstAccessMode; /*!< Enables or disables the burst access mode for Flash memory, + valid only with synchronous burst Flash memories. + This parameter can be a value of @ref FSMC_Burst_Access_Mode */ + + uint32_t FSMC_AsynchronousWait; /*!< Enables or disables wait signal during asynchronous transfers, + valid only with asynchronous Flash memories. + This parameter can be a value of @ref FSMC_AsynchronousWait */ + + uint32_t FSMC_WaitSignalPolarity; /*!< Specifies the wait signal polarity, valid only when accessing + the Flash memory in burst mode. + This parameter can be a value of @ref FSMC_Wait_Signal_Polarity */ + + uint32_t FSMC_WrapMode; /*!< Enables or disables the Wrapped burst access mode for Flash + memory, valid only when accessing Flash memories in burst mode. + This parameter can be a value of @ref FSMC_Wrap_Mode */ + + uint32_t FSMC_WaitSignalActive; /*!< Specifies if the wait signal is asserted by the memory one + clock cycle before the wait state or during the wait state, + valid only when accessing memories in burst mode. + This parameter can be a value of @ref FSMC_Wait_Timing */ + + uint32_t FSMC_WriteOperation; /*!< Enables or disables the write operation in the selected bank by the FSMC. + This parameter can be a value of @ref FSMC_Write_Operation */ + + uint32_t FSMC_WaitSignal; /*!< Enables or disables the wait-state insertion via wait + signal, valid for Flash memory access in burst mode. + This parameter can be a value of @ref FSMC_Wait_Signal */ + + uint32_t FSMC_ExtendedMode; /*!< Enables or disables the extended mode. + This parameter can be a value of @ref FSMC_Extended_Mode */ + + uint32_t FSMC_WriteBurst; /*!< Enables or disables the write burst operation. + This parameter can be a value of @ref FSMC_Write_Burst */ + + FSMC_NORSRAMTimingInitTypeDef* FSMC_ReadWriteTimingStruct; /*!< Timing Parameters for write and read access if the ExtendedMode is not used*/ + + FSMC_NORSRAMTimingInitTypeDef* FSMC_WriteTimingStruct; /*!< Timing Parameters for write access if the ExtendedMode is used*/ +}FSMC_NORSRAMInitTypeDef; + +/** + * @brief Timing parameters For FSMC NAND and PCCARD Banks + */ +typedef struct +{ + uint32_t FSMC_SetupTime; /*!< Defines the number of HCLK cycles to setup address before + the command assertion for NAND-Flash read or write access + to common/Attribute or I/O memory space (depending on + the memory space timing to be configured). + This parameter can be a value between 0 and 0xFF.*/ + + uint32_t FSMC_WaitSetupTime; /*!< Defines the minimum number of HCLK cycles to assert the + command for NAND-Flash read or write access to + common/Attribute or I/O memory space (depending on the + memory space timing to be configured). + This parameter can be a number between 0x00 and 0xFF */ + + uint32_t FSMC_HoldSetupTime; /*!< Defines the number of HCLK clock cycles to hold address + (and data for write access) after the command deassertion + for NAND-Flash read or write access to common/Attribute + or I/O memory space (depending on the memory space timing + to be configured). + This parameter can be a number between 0x00 and 0xFF */ + + uint32_t FSMC_HiZSetupTime; /*!< Defines the number of HCLK clock cycles during which the + databus is kept in HiZ after the start of a NAND-Flash + write access to common/Attribute or I/O memory space (depending + on the memory space timing to be configured). + This parameter can be a number between 0x00 and 0xFF */ +}FSMC_NAND_PCCARDTimingInitTypeDef; + +/** + * @brief FSMC NAND Init structure definition + */ +typedef struct +{ + uint32_t FSMC_Bank; /*!< Specifies the NAND memory bank that will be used. + This parameter can be a value of @ref FSMC_NAND_Bank */ + + uint32_t FSMC_Waitfeature; /*!< Enables or disables the Wait feature for the NAND Memory Bank. + This parameter can be any value of @ref FSMC_Wait_feature */ + + uint32_t FSMC_MemoryDataWidth; /*!< Specifies the external memory device width. + This parameter can be any value of @ref FSMC_Data_Width */ + + uint32_t FSMC_ECC; /*!< Enables or disables the ECC computation. + This parameter can be any value of @ref FSMC_ECC */ + + uint32_t FSMC_ECCPageSize; /*!< Defines the page size for the extended ECC. + This parameter can be any value of @ref FSMC_ECC_Page_Size */ + + uint32_t FSMC_TCLRSetupTime; /*!< Defines the number of HCLK cycles to configure the + delay between CLE low and RE low. + This parameter can be a value between 0 and 0xFF. */ + + uint32_t FSMC_TARSetupTime; /*!< Defines the number of HCLK cycles to configure the + delay between ALE low and RE low. + This parameter can be a number between 0x0 and 0xFF */ + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_CommonSpaceTimingStruct; /*!< FSMC Common Space Timing */ + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_AttributeSpaceTimingStruct; /*!< FSMC Attribute Space Timing */ +}FSMC_NANDInitTypeDef; + +/** + * @brief FSMC PCCARD Init structure definition + */ + +typedef struct +{ + uint32_t FSMC_Waitfeature; /*!< Enables or disables the Wait feature for the Memory Bank. + This parameter can be any value of @ref FSMC_Wait_feature */ + + uint32_t FSMC_TCLRSetupTime; /*!< Defines the number of HCLK cycles to configure the + delay between CLE low and RE low. + This parameter can be a value between 0 and 0xFF. */ + + uint32_t FSMC_TARSetupTime; /*!< Defines the number of HCLK cycles to configure the + delay between ALE low and RE low. + This parameter can be a number between 0x0 and 0xFF */ + + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_CommonSpaceTimingStruct; /*!< FSMC Common Space Timing */ + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_AttributeSpaceTimingStruct; /*!< FSMC Attribute Space Timing */ + + FSMC_NAND_PCCARDTimingInitTypeDef* FSMC_IOSpaceTimingStruct; /*!< FSMC IO Space Timing */ +}FSMC_PCCARDInitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup FSMC_Exported_Constants + * @{ + */ + +/** @defgroup FSMC_NORSRAM_Bank + * @{ + */ +#define FSMC_Bank1_NORSRAM1 ((uint32_t)0x00000000) +#define FSMC_Bank1_NORSRAM2 ((uint32_t)0x00000002) +#define FSMC_Bank1_NORSRAM3 ((uint32_t)0x00000004) +#define FSMC_Bank1_NORSRAM4 ((uint32_t)0x00000006) +/** + * @} + */ + +/** @defgroup FSMC_NAND_Bank + * @{ + */ +#define FSMC_Bank2_NAND ((uint32_t)0x00000010) +#define FSMC_Bank3_NAND ((uint32_t)0x00000100) +/** + * @} + */ + +/** @defgroup FSMC_PCCARD_Bank + * @{ + */ +#define FSMC_Bank4_PCCARD ((uint32_t)0x00001000) +/** + * @} + */ + +#define IS_FSMC_NORSRAM_BANK(BANK) (((BANK) == FSMC_Bank1_NORSRAM1) || \ + ((BANK) == FSMC_Bank1_NORSRAM2) || \ + ((BANK) == FSMC_Bank1_NORSRAM3) || \ + ((BANK) == FSMC_Bank1_NORSRAM4)) + +#define IS_FSMC_NAND_BANK(BANK) (((BANK) == FSMC_Bank2_NAND) || \ + ((BANK) == FSMC_Bank3_NAND)) + +#define IS_FSMC_GETFLAG_BANK(BANK) (((BANK) == FSMC_Bank2_NAND) || \ + ((BANK) == FSMC_Bank3_NAND) || \ + ((BANK) == FSMC_Bank4_PCCARD)) + +#define IS_FSMC_IT_BANK(BANK) (((BANK) == FSMC_Bank2_NAND) || \ + ((BANK) == FSMC_Bank3_NAND) || \ + ((BANK) == FSMC_Bank4_PCCARD)) + +/** @defgroup FSMC_NOR_SRAM_Controller + * @{ + */ + +/** @defgroup FSMC_Data_Address_Bus_Multiplexing + * @{ + */ + +#define FSMC_DataAddressMux_Disable ((uint32_t)0x00000000) +#define FSMC_DataAddressMux_Enable ((uint32_t)0x00000002) +#define IS_FSMC_MUX(MUX) (((MUX) == FSMC_DataAddressMux_Disable) || \ + ((MUX) == FSMC_DataAddressMux_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Memory_Type + * @{ + */ + +#define FSMC_MemoryType_SRAM ((uint32_t)0x00000000) +#define FSMC_MemoryType_PSRAM ((uint32_t)0x00000004) +#define FSMC_MemoryType_NOR ((uint32_t)0x00000008) +#define IS_FSMC_MEMORY(MEMORY) (((MEMORY) == FSMC_MemoryType_SRAM) || \ + ((MEMORY) == FSMC_MemoryType_PSRAM)|| \ + ((MEMORY) == FSMC_MemoryType_NOR)) +/** + * @} + */ + +/** @defgroup FSMC_Data_Width + * @{ + */ + +#define FSMC_MemoryDataWidth_8b ((uint32_t)0x00000000) +#define FSMC_MemoryDataWidth_16b ((uint32_t)0x00000010) +#define IS_FSMC_MEMORY_WIDTH(WIDTH) (((WIDTH) == FSMC_MemoryDataWidth_8b) || \ + ((WIDTH) == FSMC_MemoryDataWidth_16b)) +/** + * @} + */ + +/** @defgroup FSMC_Burst_Access_Mode + * @{ + */ + +#define FSMC_BurstAccessMode_Disable ((uint32_t)0x00000000) +#define FSMC_BurstAccessMode_Enable ((uint32_t)0x00000100) +#define IS_FSMC_BURSTMODE(STATE) (((STATE) == FSMC_BurstAccessMode_Disable) || \ + ((STATE) == FSMC_BurstAccessMode_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_AsynchronousWait + * @{ + */ +#define FSMC_AsynchronousWait_Disable ((uint32_t)0x00000000) +#define FSMC_AsynchronousWait_Enable ((uint32_t)0x00008000) +#define IS_FSMC_ASYNWAIT(STATE) (((STATE) == FSMC_AsynchronousWait_Disable) || \ + ((STATE) == FSMC_AsynchronousWait_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Wait_Signal_Polarity + * @{ + */ +#define FSMC_WaitSignalPolarity_Low ((uint32_t)0x00000000) +#define FSMC_WaitSignalPolarity_High ((uint32_t)0x00000200) +#define IS_FSMC_WAIT_POLARITY(POLARITY) (((POLARITY) == FSMC_WaitSignalPolarity_Low) || \ + ((POLARITY) == FSMC_WaitSignalPolarity_High)) +/** + * @} + */ + +/** @defgroup FSMC_Wrap_Mode + * @{ + */ +#define FSMC_WrapMode_Disable ((uint32_t)0x00000000) +#define FSMC_WrapMode_Enable ((uint32_t)0x00000400) +#define IS_FSMC_WRAP_MODE(MODE) (((MODE) == FSMC_WrapMode_Disable) || \ + ((MODE) == FSMC_WrapMode_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Wait_Timing + * @{ + */ +#define FSMC_WaitSignalActive_BeforeWaitState ((uint32_t)0x00000000) +#define FSMC_WaitSignalActive_DuringWaitState ((uint32_t)0x00000800) +#define IS_FSMC_WAIT_SIGNAL_ACTIVE(ACTIVE) (((ACTIVE) == FSMC_WaitSignalActive_BeforeWaitState) || \ + ((ACTIVE) == FSMC_WaitSignalActive_DuringWaitState)) +/** + * @} + */ + +/** @defgroup FSMC_Write_Operation + * @{ + */ +#define FSMC_WriteOperation_Disable ((uint32_t)0x00000000) +#define FSMC_WriteOperation_Enable ((uint32_t)0x00001000) +#define IS_FSMC_WRITE_OPERATION(OPERATION) (((OPERATION) == FSMC_WriteOperation_Disable) || \ + ((OPERATION) == FSMC_WriteOperation_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Wait_Signal + * @{ + */ +#define FSMC_WaitSignal_Disable ((uint32_t)0x00000000) +#define FSMC_WaitSignal_Enable ((uint32_t)0x00002000) +#define IS_FSMC_WAITE_SIGNAL(SIGNAL) (((SIGNAL) == FSMC_WaitSignal_Disable) || \ + ((SIGNAL) == FSMC_WaitSignal_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Extended_Mode + * @{ + */ +#define FSMC_ExtendedMode_Disable ((uint32_t)0x00000000) +#define FSMC_ExtendedMode_Enable ((uint32_t)0x00004000) + +#define IS_FSMC_EXTENDED_MODE(MODE) (((MODE) == FSMC_ExtendedMode_Disable) || \ + ((MODE) == FSMC_ExtendedMode_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Write_Burst + * @{ + */ + +#define FSMC_WriteBurst_Disable ((uint32_t)0x00000000) +#define FSMC_WriteBurst_Enable ((uint32_t)0x00080000) +#define IS_FSMC_WRITE_BURST(BURST) (((BURST) == FSMC_WriteBurst_Disable) || \ + ((BURST) == FSMC_WriteBurst_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_Address_Setup_Time + * @{ + */ +#define IS_FSMC_ADDRESS_SETUP_TIME(TIME) ((TIME) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_Address_Hold_Time + * @{ + */ +#define IS_FSMC_ADDRESS_HOLD_TIME(TIME) ((TIME) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_Data_Setup_Time + * @{ + */ +#define IS_FSMC_DATASETUP_TIME(TIME) (((TIME) > 0) && ((TIME) <= 0xFF)) +/** + * @} + */ + +/** @defgroup FSMC_Bus_Turn_around_Duration + * @{ + */ +#define IS_FSMC_TURNAROUND_TIME(TIME) ((TIME) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_CLK_Division + * @{ + */ +#define IS_FSMC_CLK_DIV(DIV) ((DIV) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_Data_Latency + * @{ + */ +#define IS_FSMC_DATA_LATENCY(LATENCY) ((LATENCY) <= 0xF) +/** + * @} + */ + +/** @defgroup FSMC_Access_Mode + * @{ + */ +#define FSMC_AccessMode_A ((uint32_t)0x00000000) +#define FSMC_AccessMode_B ((uint32_t)0x10000000) +#define FSMC_AccessMode_C ((uint32_t)0x20000000) +#define FSMC_AccessMode_D ((uint32_t)0x30000000) +#define IS_FSMC_ACCESS_MODE(MODE) (((MODE) == FSMC_AccessMode_A) || \ + ((MODE) == FSMC_AccessMode_B) || \ + ((MODE) == FSMC_AccessMode_C) || \ + ((MODE) == FSMC_AccessMode_D)) +/** + * @} + */ + +/** + * @} + */ + +/** @defgroup FSMC_NAND_PCCARD_Controller + * @{ + */ + +/** @defgroup FSMC_Wait_feature + * @{ + */ +#define FSMC_Waitfeature_Disable ((uint32_t)0x00000000) +#define FSMC_Waitfeature_Enable ((uint32_t)0x00000002) +#define IS_FSMC_WAIT_FEATURE(FEATURE) (((FEATURE) == FSMC_Waitfeature_Disable) || \ + ((FEATURE) == FSMC_Waitfeature_Enable)) +/** + * @} + */ + + +/** @defgroup FSMC_ECC + * @{ + */ +#define FSMC_ECC_Disable ((uint32_t)0x00000000) +#define FSMC_ECC_Enable ((uint32_t)0x00000040) +#define IS_FSMC_ECC_STATE(STATE) (((STATE) == FSMC_ECC_Disable) || \ + ((STATE) == FSMC_ECC_Enable)) +/** + * @} + */ + +/** @defgroup FSMC_ECC_Page_Size + * @{ + */ +#define FSMC_ECCPageSize_256Bytes ((uint32_t)0x00000000) +#define FSMC_ECCPageSize_512Bytes ((uint32_t)0x00020000) +#define FSMC_ECCPageSize_1024Bytes ((uint32_t)0x00040000) +#define FSMC_ECCPageSize_2048Bytes ((uint32_t)0x00060000) +#define FSMC_ECCPageSize_4096Bytes ((uint32_t)0x00080000) +#define FSMC_ECCPageSize_8192Bytes ((uint32_t)0x000A0000) +#define IS_FSMC_ECCPAGE_SIZE(SIZE) (((SIZE) == FSMC_ECCPageSize_256Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_512Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_1024Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_2048Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_4096Bytes) || \ + ((SIZE) == FSMC_ECCPageSize_8192Bytes)) +/** + * @} + */ + +/** @defgroup FSMC_TCLR_Setup_Time + * @{ + */ +#define IS_FSMC_TCLR_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_TAR_Setup_Time + * @{ + */ +#define IS_FSMC_TAR_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_Setup_Time + * @{ + */ +#define IS_FSMC_SETUP_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_Wait_Setup_Time + * @{ + */ +#define IS_FSMC_WAIT_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_Hold_Setup_Time + * @{ + */ +#define IS_FSMC_HOLD_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_HiZ_Setup_Time + * @{ + */ +#define IS_FSMC_HIZ_TIME(TIME) ((TIME) <= 0xFF) +/** + * @} + */ + +/** @defgroup FSMC_Interrupt_sources + * @{ + */ +#define FSMC_IT_RisingEdge ((uint32_t)0x00000008) +#define FSMC_IT_Level ((uint32_t)0x00000010) +#define FSMC_IT_FallingEdge ((uint32_t)0x00000020) +#define IS_FSMC_IT(IT) ((((IT) & (uint32_t)0xFFFFFFC7) == 0x00000000) && ((IT) != 0x00000000)) +#define IS_FSMC_GET_IT(IT) (((IT) == FSMC_IT_RisingEdge) || \ + ((IT) == FSMC_IT_Level) || \ + ((IT) == FSMC_IT_FallingEdge)) +/** + * @} + */ + +/** @defgroup FSMC_Flags + * @{ + */ +#define FSMC_FLAG_RisingEdge ((uint32_t)0x00000001) +#define FSMC_FLAG_Level ((uint32_t)0x00000002) +#define FSMC_FLAG_FallingEdge ((uint32_t)0x00000004) +#define FSMC_FLAG_FEMPT ((uint32_t)0x00000040) +#define IS_FSMC_GET_FLAG(FLAG) (((FLAG) == FSMC_FLAG_RisingEdge) || \ + ((FLAG) == FSMC_FLAG_Level) || \ + ((FLAG) == FSMC_FLAG_FallingEdge) || \ + ((FLAG) == FSMC_FLAG_FEMPT)) + +#define IS_FSMC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFFFFFF8) == 0x00000000) && ((FLAG) != 0x00000000)) +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* NOR/SRAM Controller functions **********************************************/ +void FSMC_NORSRAMDeInit(uint32_t FSMC_Bank); +void FSMC_NORSRAMInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct); +void FSMC_NORSRAMStructInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct); +void FSMC_NORSRAMCmd(uint32_t FSMC_Bank, FunctionalState NewState); + +/* NAND Controller functions **************************************************/ +void FSMC_NANDDeInit(uint32_t FSMC_Bank); +void FSMC_NANDInit(FSMC_NANDInitTypeDef* FSMC_NANDInitStruct); +void FSMC_NANDStructInit(FSMC_NANDInitTypeDef* FSMC_NANDInitStruct); +void FSMC_NANDCmd(uint32_t FSMC_Bank, FunctionalState NewState); +void FSMC_NANDECCCmd(uint32_t FSMC_Bank, FunctionalState NewState); +uint32_t FSMC_GetECC(uint32_t FSMC_Bank); + +/* PCCARD Controller functions ************************************************/ +void FSMC_PCCARDDeInit(void); +void FSMC_PCCARDInit(FSMC_PCCARDInitTypeDef* FSMC_PCCARDInitStruct); +void FSMC_PCCARDStructInit(FSMC_PCCARDInitTypeDef* FSMC_PCCARDInitStruct); +void FSMC_PCCARDCmd(FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void FSMC_ITConfig(uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState); +FlagStatus FSMC_GetFlagStatus(uint32_t FSMC_Bank, uint32_t FSMC_FLAG); +void FSMC_ClearFlag(uint32_t FSMC_Bank, uint32_t FSMC_FLAG); +ITStatus FSMC_GetITStatus(uint32_t FSMC_Bank, uint32_t FSMC_IT); +void FSMC_ClearITPendingBit(uint32_t FSMC_Bank, uint32_t FSMC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_FSMC_H */ +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_gpio.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_gpio.h new file mode 100644 index 00000000..2300207e --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_gpio.h @@ -0,0 +1,411 @@ +/** + ****************************************************************************** + * @file stm32f2xx_gpio.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the GPIO firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_GPIO_H +#define __STM32F2xx_GPIO_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup GPIO + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +#define IS_GPIO_ALL_PERIPH(PERIPH) (((PERIPH) == GPIOA) || \ + ((PERIPH) == GPIOB) || \ + ((PERIPH) == GPIOC) || \ + ((PERIPH) == GPIOD) || \ + ((PERIPH) == GPIOE) || \ + ((PERIPH) == GPIOF) || \ + ((PERIPH) == GPIOG) || \ + ((PERIPH) == GPIOH) || \ + ((PERIPH) == GPIOI)) + +/** + * @brief GPIO Configuration Mode enumeration + */ +typedef enum +{ + GPIO_Mode_IN = 0x00, /*!< GPIO Input Mode */ + GPIO_Mode_OUT = 0x01, /*!< GPIO Output Mode */ + GPIO_Mode_AF = 0x02, /*!< GPIO Alternate function Mode */ + GPIO_Mode_AN = 0x03 /*!< GPIO Analog Mode */ +}GPIOMode_TypeDef; +#define IS_GPIO_MODE(MODE) (((MODE) == GPIO_Mode_IN) || ((MODE) == GPIO_Mode_OUT) || \ + ((MODE) == GPIO_Mode_AF)|| ((MODE) == GPIO_Mode_AN)) + +/** + * @brief GPIO Output type enumeration + */ +typedef enum +{ + GPIO_OType_PP = 0x00, + GPIO_OType_OD = 0x01 +}GPIOOType_TypeDef; +#define IS_GPIO_OTYPE(OTYPE) (((OTYPE) == GPIO_OType_PP) || ((OTYPE) == GPIO_OType_OD)) + + +/** + * @brief GPIO Output Maximum frequency enumeration + */ +typedef enum +{ + GPIO_Speed_2MHz = 0x00, /*!< Low speed */ + GPIO_Speed_25MHz = 0x01, /*!< Medium speed */ + GPIO_Speed_50MHz = 0x02, /*!< Fast speed */ + GPIO_Speed_100MHz = 0x03 /*!< High speed on 30 pF (80 MHz Output max speed on 15 pF) */ +}GPIOSpeed_TypeDef; +#define IS_GPIO_SPEED(SPEED) (((SPEED) == GPIO_Speed_2MHz) || ((SPEED) == GPIO_Speed_25MHz) || \ + ((SPEED) == GPIO_Speed_50MHz)|| ((SPEED) == GPIO_Speed_100MHz)) + +/** + * @brief GPIO Configuration PullUp PullDown enumeration + */ +typedef enum +{ + GPIO_PuPd_NOPULL = 0x00, + GPIO_PuPd_UP = 0x01, + GPIO_PuPd_DOWN = 0x02 +}GPIOPuPd_TypeDef; +#define IS_GPIO_PUPD(PUPD) (((PUPD) == GPIO_PuPd_NOPULL) || ((PUPD) == GPIO_PuPd_UP) || \ + ((PUPD) == GPIO_PuPd_DOWN)) + +/** + * @brief GPIO Bit SET and Bit RESET enumeration + */ +typedef enum +{ + Bit_RESET = 0, + Bit_SET +}BitAction; +#define IS_GPIO_BIT_ACTION(ACTION) (((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET)) + + +/** + * @brief GPIO Init structure definition + */ +typedef struct +{ + uint32_t GPIO_Pin; /*!< Specifies the GPIO pins to be configured. + This parameter can be any value of @ref GPIO_pins_define */ + + GPIOMode_TypeDef GPIO_Mode; /*!< Specifies the operating mode for the selected pins. + This parameter can be a value of @ref GPIOMode_TypeDef */ + + GPIOSpeed_TypeDef GPIO_Speed; /*!< Specifies the speed for the selected pins. + This parameter can be a value of @ref GPIOSpeed_TypeDef */ + + GPIOOType_TypeDef GPIO_OType; /*!< Specifies the operating output type for the selected pins. + This parameter can be a value of @ref GPIOOType_TypeDef */ + + GPIOPuPd_TypeDef GPIO_PuPd; /*!< Specifies the operating Pull-up/Pull down for the selected pins. + This parameter can be a value of @ref GPIOPuPd_TypeDef */ +}GPIO_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup GPIO_Exported_Constants + * @{ + */ + +/** @defgroup GPIO_pins_define + * @{ + */ +#define GPIO_Pin_0 ((uint16_t)0x0001) /* Pin 0 selected */ +#define GPIO_Pin_1 ((uint16_t)0x0002) /* Pin 1 selected */ +#define GPIO_Pin_2 ((uint16_t)0x0004) /* Pin 2 selected */ +#define GPIO_Pin_3 ((uint16_t)0x0008) /* Pin 3 selected */ +#define GPIO_Pin_4 ((uint16_t)0x0010) /* Pin 4 selected */ +#define GPIO_Pin_5 ((uint16_t)0x0020) /* Pin 5 selected */ +#define GPIO_Pin_6 ((uint16_t)0x0040) /* Pin 6 selected */ +#define GPIO_Pin_7 ((uint16_t)0x0080) /* Pin 7 selected */ +#define GPIO_Pin_8 ((uint16_t)0x0100) /* Pin 8 selected */ +#define GPIO_Pin_9 ((uint16_t)0x0200) /* Pin 9 selected */ +#define GPIO_Pin_10 ((uint16_t)0x0400) /* Pin 10 selected */ +#define GPIO_Pin_11 ((uint16_t)0x0800) /* Pin 11 selected */ +#define GPIO_Pin_12 ((uint16_t)0x1000) /* Pin 12 selected */ +#define GPIO_Pin_13 ((uint16_t)0x2000) /* Pin 13 selected */ +#define GPIO_Pin_14 ((uint16_t)0x4000) /* Pin 14 selected */ +#define GPIO_Pin_15 ((uint16_t)0x8000) /* Pin 15 selected */ +#define GPIO_Pin_All ((uint16_t)0xFFFF) /* All pins selected */ + +#define IS_GPIO_PIN(PIN) ((((PIN) & (uint16_t)0x00) == 0x00) && ((PIN) != (uint16_t)0x00)) +#define IS_GET_GPIO_PIN(PIN) (((PIN) == GPIO_Pin_0) || \ + ((PIN) == GPIO_Pin_1) || \ + ((PIN) == GPIO_Pin_2) || \ + ((PIN) == GPIO_Pin_3) || \ + ((PIN) == GPIO_Pin_4) || \ + ((PIN) == GPIO_Pin_5) || \ + ((PIN) == GPIO_Pin_6) || \ + ((PIN) == GPIO_Pin_7) || \ + ((PIN) == GPIO_Pin_8) || \ + ((PIN) == GPIO_Pin_9) || \ + ((PIN) == GPIO_Pin_10) || \ + ((PIN) == GPIO_Pin_11) || \ + ((PIN) == GPIO_Pin_12) || \ + ((PIN) == GPIO_Pin_13) || \ + ((PIN) == GPIO_Pin_14) || \ + ((PIN) == GPIO_Pin_15)) +/** + * @} + */ + + +/** @defgroup GPIO_Pin_sources + * @{ + */ +#define GPIO_PinSource0 ((uint8_t)0x00) +#define GPIO_PinSource1 ((uint8_t)0x01) +#define GPIO_PinSource2 ((uint8_t)0x02) +#define GPIO_PinSource3 ((uint8_t)0x03) +#define GPIO_PinSource4 ((uint8_t)0x04) +#define GPIO_PinSource5 ((uint8_t)0x05) +#define GPIO_PinSource6 ((uint8_t)0x06) +#define GPIO_PinSource7 ((uint8_t)0x07) +#define GPIO_PinSource8 ((uint8_t)0x08) +#define GPIO_PinSource9 ((uint8_t)0x09) +#define GPIO_PinSource10 ((uint8_t)0x0A) +#define GPIO_PinSource11 ((uint8_t)0x0B) +#define GPIO_PinSource12 ((uint8_t)0x0C) +#define GPIO_PinSource13 ((uint8_t)0x0D) +#define GPIO_PinSource14 ((uint8_t)0x0E) +#define GPIO_PinSource15 ((uint8_t)0x0F) + +#define IS_GPIO_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == GPIO_PinSource0) || \ + ((PINSOURCE) == GPIO_PinSource1) || \ + ((PINSOURCE) == GPIO_PinSource2) || \ + ((PINSOURCE) == GPIO_PinSource3) || \ + ((PINSOURCE) == GPIO_PinSource4) || \ + ((PINSOURCE) == GPIO_PinSource5) || \ + ((PINSOURCE) == GPIO_PinSource6) || \ + ((PINSOURCE) == GPIO_PinSource7) || \ + ((PINSOURCE) == GPIO_PinSource8) || \ + ((PINSOURCE) == GPIO_PinSource9) || \ + ((PINSOURCE) == GPIO_PinSource10) || \ + ((PINSOURCE) == GPIO_PinSource11) || \ + ((PINSOURCE) == GPIO_PinSource12) || \ + ((PINSOURCE) == GPIO_PinSource13) || \ + ((PINSOURCE) == GPIO_PinSource14) || \ + ((PINSOURCE) == GPIO_PinSource15)) +/** + * @} + */ + +/** @defgroup GPIO_Alternat_function_selection_define + * @{ + */ +/** + * @brief AF 0 selection + */ +#define GPIO_AF_RTC_50Hz ((uint8_t)0x00) /* RTC_50Hz Alternate Function mapping */ +#define GPIO_AF_MCO ((uint8_t)0x00) /* MCO (MCO1 and MCO2) Alternate Function mapping */ +#define GPIO_AF_TAMPER ((uint8_t)0x00) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */ +#define GPIO_AF_SWJ ((uint8_t)0x00) /* SWJ (SWD and JTAG) Alternate Function mapping */ +#define GPIO_AF_TRACE ((uint8_t)0x00) /* TRACE Alternate Function mapping */ + +/** + * @brief AF 1 selection + */ +#define GPIO_AF_TIM1 ((uint8_t)0x01) /* TIM1 Alternate Function mapping */ +#define GPIO_AF_TIM2 ((uint8_t)0x01) /* TIM2 Alternate Function mapping */ + +/** + * @brief AF 2 selection + */ +#define GPIO_AF_TIM3 ((uint8_t)0x02) /* TIM3 Alternate Function mapping */ +#define GPIO_AF_TIM4 ((uint8_t)0x02) /* TIM4 Alternate Function mapping */ +#define GPIO_AF_TIM5 ((uint8_t)0x02) /* TIM5 Alternate Function mapping */ + +/** + * @brief AF 3 selection + */ +#define GPIO_AF_TIM8 ((uint8_t)0x03) /* TIM8 Alternate Function mapping */ +#define GPIO_AF_TIM9 ((uint8_t)0x03) /* TIM9 Alternate Function mapping */ +#define GPIO_AF_TIM10 ((uint8_t)0x03) /* TIM10 Alternate Function mapping */ +#define GPIO_AF_TIM11 ((uint8_t)0x03) /* TIM11 Alternate Function mapping */ + +/** + * @brief AF 4 selection + */ +#define GPIO_AF_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ +#define GPIO_AF_I2C2 ((uint8_t)0x04) /* I2C2 Alternate Function mapping */ +#define GPIO_AF_I2C3 ((uint8_t)0x04) /* I2C3 Alternate Function mapping */ + +/** + * @brief AF 5 selection + */ +#define GPIO_AF_SPI1 ((uint8_t)0x05) /* SPI1 Alternate Function mapping */ +#define GPIO_AF_SPI2 ((uint8_t)0x05) /* SPI2/I2S2 Alternate Function mapping */ + +/** + * @brief AF 6 selection + */ +#define GPIO_AF_SPI3 ((uint8_t)0x06) /* SPI3/I2S3 Alternate Function mapping */ + +/** + * @brief AF 7 selection + */ +#define GPIO_AF_USART1 ((uint8_t)0x07) /* USART1 Alternate Function mapping */ +#define GPIO_AF_USART2 ((uint8_t)0x07) /* USART2 Alternate Function mapping */ +#define GPIO_AF_USART3 ((uint8_t)0x07) /* USART3 Alternate Function mapping */ + +/** + * @brief AF 8 selection + */ +#define GPIO_AF_UART4 ((uint8_t)0x08) /* UART4 Alternate Function mapping */ +#define GPIO_AF_UART5 ((uint8_t)0x08) /* UART5 Alternate Function mapping */ +#define GPIO_AF_USART6 ((uint8_t)0x08) /* USART6 Alternate Function mapping */ + +/** + * @brief AF 9 selection + */ +#define GPIO_AF_CAN1 ((uint8_t)0x09) /* CAN1 Alternate Function mapping */ +#define GPIO_AF_CAN2 ((uint8_t)0x09) /* CAN2 Alternate Function mapping */ +#define GPIO_AF_TIM12 ((uint8_t)0x09) /* TIM12 Alternate Function mapping */ +#define GPIO_AF_TIM13 ((uint8_t)0x09) /* TIM13 Alternate Function mapping */ +#define GPIO_AF_TIM14 ((uint8_t)0x09) /* TIM14 Alternate Function mapping */ + +/** + * @brief AF 10 selection + */ +#define GPIO_AF_OTG_FS ((uint8_t)0xA) /* OTG_FS Alternate Function mapping */ +#define GPIO_AF_OTG_HS ((uint8_t)0xA) /* OTG_HS Alternate Function mapping */ + +/** + * @brief AF 11 selection + */ +#define GPIO_AF_ETH ((uint8_t)0x0B) /* ETHERNET Alternate Function mapping */ + +/** + * @brief AF 12 selection + */ +#define GPIO_AF_FSMC ((uint8_t)0xC) /* FSMC Alternate Function mapping */ +#define GPIO_AF_OTG_HS_FS ((uint8_t)0xC) /* OTG HS configured in FS, Alternate Function mapping */ +#define GPIO_AF_SDIO ((uint8_t)0xC) /* SDIO Alternate Function mapping */ + +/** + * @brief AF 13 selection + */ +#define GPIO_AF_DCMI ((uint8_t)0x0D) /* DCMI Alternate Function mapping */ + +/** + * @brief AF 15 selection + */ +#define GPIO_AF_EVENTOUT ((uint8_t)0x0F) /* EVENTOUT Alternate Function mapping */ + +#define IS_GPIO_AF(AF) (((AF) == GPIO_AF_RTC_50Hz) || ((AF) == GPIO_AF_TIM14) || \ + ((AF) == GPIO_AF_MCO) || ((AF) == GPIO_AF_TAMPER) || \ + ((AF) == GPIO_AF_SWJ) || ((AF) == GPIO_AF_TRACE) || \ + ((AF) == GPIO_AF_TIM1) || ((AF) == GPIO_AF_TIM2) || \ + ((AF) == GPIO_AF_TIM3) || ((AF) == GPIO_AF_TIM4) || \ + ((AF) == GPIO_AF_TIM5) || ((AF) == GPIO_AF_TIM8) || \ + ((AF) == GPIO_AF_I2C1) || ((AF) == GPIO_AF_I2C2) || \ + ((AF) == GPIO_AF_I2C3) || ((AF) == GPIO_AF_SPI1) || \ + ((AF) == GPIO_AF_SPI2) || ((AF) == GPIO_AF_TIM13) || \ + ((AF) == GPIO_AF_SPI3) || ((AF) == GPIO_AF_TIM14) || \ + ((AF) == GPIO_AF_USART1) || ((AF) == GPIO_AF_USART2) || \ + ((AF) == GPIO_AF_USART3) || ((AF) == GPIO_AF_UART4) || \ + ((AF) == GPIO_AF_UART5) || ((AF) == GPIO_AF_USART6) || \ + ((AF) == GPIO_AF_CAN1) || ((AF) == GPIO_AF_CAN2) || \ + ((AF) == GPIO_AF_OTG_FS) || ((AF) == GPIO_AF_OTG_HS) || \ + ((AF) == GPIO_AF_ETH) || ((AF) == GPIO_AF_FSMC) || \ + ((AF) == GPIO_AF_OTG_HS_FS) || ((AF) == GPIO_AF_SDIO) || \ + ((AF) == GPIO_AF_DCMI) || ((AF) == GPIO_AF_EVENTOUT)) +/** + * @} + */ + +/** @defgroup GPIO_Legacy + * @{ + */ + +#define GPIO_Mode_AIN GPIO_Mode_AN + +#define GPIO_AF_OTG1_FS GPIO_AF_OTG_FS +#define GPIO_AF_OTG2_HS GPIO_AF_OTG_HS +#define GPIO_AF_OTG2_FS GPIO_AF_OTG_HS_FS + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the GPIO configuration to the default reset state ****/ +void GPIO_DeInit(GPIO_TypeDef* GPIOx); + +/* Initialization and Configuration functions *********************************/ +void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct); +void GPIO_StructInit(GPIO_InitTypeDef* GPIO_InitStruct); +void GPIO_PinLockConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); + +/* GPIO Read and Write functions **********************************************/ +uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); +uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx); +uint8_t GPIO_ReadOutputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); +uint16_t GPIO_ReadOutputData(GPIO_TypeDef* GPIOx); +void GPIO_SetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); +void GPIO_ResetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); +void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal); +void GPIO_Write(GPIO_TypeDef* GPIOx, uint16_t PortVal); +void GPIO_ToggleBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); + +/* GPIO Alternate functions configuration function ****************************/ +void GPIO_PinAFConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_GPIO_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_hash.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_hash.h new file mode 100644 index 00000000..62445fe3 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_hash.h @@ -0,0 +1,250 @@ +/** + ****************************************************************************** + * @file stm32f2xx_hash.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the HASH + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_HASH_H +#define __STM32F2xx_HASH_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup HASH + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief HASH Init structure definition + */ +typedef struct +{ + uint32_t HASH_AlgoSelection; /*!< SHA-1 or MD5. This parameter can be a value + of @ref HASH_Algo_Selection */ + uint32_t HASH_AlgoMode; /*!< HASH or HMAC. This parameter can be a value + of @ref HASH_processor_Algorithm_Mode */ + uint32_t HASH_DataType; /*!< 32-bit data, 16-bit data, 8-bit data or + bit-string. This parameter can be a value of + @ref HASH_Data_Type */ + uint32_t HASH_HMACKeyType; /*!< HMAC Short key or HMAC Long Key. This parameter + can be a value of @ref HASH_HMAC_Long_key_only_for_HMAC_mode */ +}HASH_InitTypeDef; + +/** + * @brief HASH message digest result structure definition + */ +typedef struct +{ + uint32_t Data[5]; /*!< Message digest result : 5x 32bit words for SHA1 or + 4x 32bit words for MD5 */ +} HASH_MsgDigest; + +/** + * @brief HASH context swapping structure definition + */ +typedef struct +{ + uint32_t HASH_IMR; + uint32_t HASH_STR; + uint32_t HASH_CR; + uint32_t HASH_CSR[51]; +}HASH_Context; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup HASH_Exported_Constants + * @{ + */ + +/** @defgroup HASH_Algo_Selection + * @{ + */ +#define HASH_AlgoSelection_SHA1 ((uint16_t)0x0000) /*!< HASH function is SHA1 */ +#define HASH_AlgoSelection_MD5 ((uint16_t)0x0080) /*!< HASH function is MD5 */ + +#define IS_HASH_ALGOSELECTION(ALGOSELECTION) (((ALGOSELECTION) == HASH_AlgoSelection_SHA1) || \ + ((ALGOSELECTION) == HASH_AlgoSelection_MD5)) +/** + * @} + */ + +/** @defgroup HASH_processor_Algorithm_Mode + * @{ + */ +#define HASH_AlgoMode_HASH ((uint16_t)0x0000) /*!< Algorithm is HASH */ +#define HASH_AlgoMode_HMAC ((uint16_t)0x0040) /*!< Algorithm is HMAC */ + +#define IS_HASH_ALGOMODE(ALGOMODE) (((ALGOMODE) == HASH_AlgoMode_HASH) || \ + ((ALGOMODE) == HASH_AlgoMode_HMAC)) +/** + * @} + */ + +/** @defgroup HASH_Data_Type + * @{ + */ +#define HASH_DataType_32b ((uint16_t)0x0000) +#define HASH_DataType_16b ((uint16_t)0x0010) +#define HASH_DataType_8b ((uint16_t)0x0020) +#define HASH_DataType_1b ((uint16_t)0x0030) + +#define IS_HASH_DATATYPE(DATATYPE) (((DATATYPE) == HASH_DataType_32b)|| \ + ((DATATYPE) == HASH_DataType_16b)|| \ + ((DATATYPE) == HASH_DataType_8b)|| \ + ((DATATYPE) == HASH_DataType_1b)) +/** + * @} + */ + +/** @defgroup HASH_HMAC_Long_key_only_for_HMAC_mode + * @{ + */ +#define HASH_HMACKeyType_ShortKey ((uint32_t)0x00000000) /*!< HMAC Key is <= 64 bytes */ +#define HASH_HMACKeyType_LongKey ((uint32_t)0x00010000) /*!< HMAC Key is > 64 bytes */ + +#define IS_HASH_HMAC_KEYTYPE(KEYTYPE) (((KEYTYPE) == HASH_HMACKeyType_ShortKey) || \ + ((KEYTYPE) == HASH_HMACKeyType_LongKey)) +/** + * @} + */ + +/** @defgroup Number_of_valid_bits_in_last_word_of_the_message + * @{ + */ +#define IS_HASH_VALIDBITSNUMBER(VALIDBITS) ((VALIDBITS) <= 0x1F) + +/** + * @} + */ + +/** @defgroup HASH_interrupts_definition + * @{ + */ +#define HASH_IT_DINI ((uint8_t)0x01) /*!< A new block can be entered into the input buffer (DIN)*/ +#define HASH_IT_DCI ((uint8_t)0x02) /*!< Digest calculation complete */ + +#define IS_HASH_IT(IT) ((((IT) & (uint8_t)0xFC) == 0x00) && ((IT) != 0x00)) +#define IS_HASH_GET_IT(IT) (((IT) == HASH_IT_DINI) || ((IT) == HASH_IT_DCI)) + +/** + * @} + */ + +/** @defgroup HASH_flags_definition + * @{ + */ +#define HASH_FLAG_DINIS ((uint16_t)0x0001) /*!< 16 locations are free in the DIN : A new block can be entered into the input buffer.*/ +#define HASH_FLAG_DCIS ((uint16_t)0x0002) /*!< Digest calculation complete */ +#define HASH_FLAG_DMAS ((uint16_t)0x0004) /*!< DMA interface is enabled (DMAE=1) or a transfer is ongoing */ +#define HASH_FLAG_BUSY ((uint16_t)0x0008) /*!< The hash core is Busy : processing a block of data */ +#define HASH_FLAG_DINNE ((uint16_t)0x1000) /*!< DIN not empty : The input buffer contains at least one word of data */ + +#define IS_HASH_GET_FLAG(FLAG) (((FLAG) == HASH_FLAG_DINIS) || \ + ((FLAG) == HASH_FLAG_DCIS) || \ + ((FLAG) == HASH_FLAG_DMAS) || \ + ((FLAG) == HASH_FLAG_BUSY) || \ + ((FLAG) == HASH_FLAG_DINNE)) + +#define IS_HASH_CLEAR_FLAG(FLAG)(((FLAG) == HASH_FLAG_DINIS) || \ + ((FLAG) == HASH_FLAG_DCIS)) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the HASH configuration to the default reset state ****/ +void HASH_DeInit(void); + +/* HASH Configuration function ************************************************/ +void HASH_Init(HASH_InitTypeDef* HASH_InitStruct); +void HASH_StructInit(HASH_InitTypeDef* HASH_InitStruct); +void HASH_Reset(void); + +/* HASH Message Digest generation functions ***********************************/ +void HASH_DataIn(uint32_t Data); +uint8_t HASH_GetInFIFOWordsNbr(void); +void HASH_SetLastWordValidBitsNbr(uint16_t ValidNumber); +void HASH_StartDigest(void); +void HASH_GetDigest(HASH_MsgDigest* HASH_MessageDigest); + +/* HASH Context swapping functions ********************************************/ +void HASH_SaveContext(HASH_Context* HASH_ContextSave); +void HASH_RestoreContext(HASH_Context* HASH_ContextRestore); + +/* HASH's DMA interface function **********************************************/ +void HASH_DMACmd(FunctionalState NewState); + +/* HASH Interrupts and flags management functions *****************************/ +void HASH_ITConfig(uint8_t HASH_IT, FunctionalState NewState); +FlagStatus HASH_GetFlagStatus(uint16_t HASH_FLAG); +void HASH_ClearFlag(uint16_t HASH_FLAG); +ITStatus HASH_GetITStatus(uint8_t HASH_IT); +void HASH_ClearITPendingBit(uint8_t HASH_IT); + +/* High Level SHA1 functions **************************************************/ +ErrorStatus HASH_SHA1(uint8_t *Input, uint32_t Ilen, uint8_t Output[20]); +ErrorStatus HMAC_SHA1(uint8_t *Key, uint32_t Keylen, + uint8_t *Input, uint32_t Ilen, + uint8_t Output[20]); + +/* High Level MD5 functions ***************************************************/ +ErrorStatus HASH_MD5(uint8_t *Input, uint32_t Ilen, uint8_t Output[16]); +ErrorStatus HMAC_MD5(uint8_t *Key, uint32_t Keylen, + uint8_t *Input, uint32_t Ilen, + uint8_t Output[16]); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_HASH_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_i2c.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_i2c.h new file mode 100644 index 00000000..bd338884 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_i2c.h @@ -0,0 +1,698 @@ +/** + ****************************************************************************** + * @file stm32f2xx_i2c.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the I2C firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_I2C_H +#define __STM32F2xx_I2C_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup I2C + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief I2C Init structure definition + */ + +typedef struct +{ + uint32_t I2C_ClockSpeed; /*!< Specifies the clock frequency. + This parameter must be set to a value lower than 400kHz */ + + uint16_t I2C_Mode; /*!< Specifies the I2C mode. + This parameter can be a value of @ref I2C_mode */ + + uint16_t I2C_DutyCycle; /*!< Specifies the I2C fast mode duty cycle. + This parameter can be a value of @ref I2C_duty_cycle_in_fast_mode */ + + uint16_t I2C_OwnAddress1; /*!< Specifies the first device own address. + This parameter can be a 7-bit or 10-bit address. */ + + uint16_t I2C_Ack; /*!< Enables or disables the acknowledgement. + This parameter can be a value of @ref I2C_acknowledgement */ + + uint16_t I2C_AcknowledgedAddress; /*!< Specifies if 7-bit or 10-bit address is acknowledged. + This parameter can be a value of @ref I2C_acknowledged_address */ +}I2C_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + + +/** @defgroup I2C_Exported_Constants + * @{ + */ + +#define IS_I2C_ALL_PERIPH(PERIPH) (((PERIPH) == I2C1) || \ + ((PERIPH) == I2C2) || \ + ((PERIPH) == I2C3)) +/** @defgroup I2C_mode + * @{ + */ + +#define I2C_Mode_I2C ((uint16_t)0x0000) +#define I2C_Mode_SMBusDevice ((uint16_t)0x0002) +#define I2C_Mode_SMBusHost ((uint16_t)0x000A) +#define IS_I2C_MODE(MODE) (((MODE) == I2C_Mode_I2C) || \ + ((MODE) == I2C_Mode_SMBusDevice) || \ + ((MODE) == I2C_Mode_SMBusHost)) +/** + * @} + */ + +/** @defgroup I2C_duty_cycle_in_fast_mode + * @{ + */ + +#define I2C_DutyCycle_16_9 ((uint16_t)0x4000) /*!< I2C fast mode Tlow/Thigh = 16/9 */ +#define I2C_DutyCycle_2 ((uint16_t)0xBFFF) /*!< I2C fast mode Tlow/Thigh = 2 */ +#define IS_I2C_DUTY_CYCLE(CYCLE) (((CYCLE) == I2C_DutyCycle_16_9) || \ + ((CYCLE) == I2C_DutyCycle_2)) +/** + * @} + */ + +/** @defgroup I2C_acknowledgement + * @{ + */ + +#define I2C_Ack_Enable ((uint16_t)0x0400) +#define I2C_Ack_Disable ((uint16_t)0x0000) +#define IS_I2C_ACK_STATE(STATE) (((STATE) == I2C_Ack_Enable) || \ + ((STATE) == I2C_Ack_Disable)) +/** + * @} + */ + +/** @defgroup I2C_transfer_direction + * @{ + */ + +#define I2C_Direction_Transmitter ((uint8_t)0x00) +#define I2C_Direction_Receiver ((uint8_t)0x01) +#define IS_I2C_DIRECTION(DIRECTION) (((DIRECTION) == I2C_Direction_Transmitter) || \ + ((DIRECTION) == I2C_Direction_Receiver)) +/** + * @} + */ + +/** @defgroup I2C_acknowledged_address + * @{ + */ + +#define I2C_AcknowledgedAddress_7bit ((uint16_t)0x4000) +#define I2C_AcknowledgedAddress_10bit ((uint16_t)0xC000) +#define IS_I2C_ACKNOWLEDGE_ADDRESS(ADDRESS) (((ADDRESS) == I2C_AcknowledgedAddress_7bit) || \ + ((ADDRESS) == I2C_AcknowledgedAddress_10bit)) +/** + * @} + */ + +/** @defgroup I2C_registers + * @{ + */ + +#define I2C_Register_CR1 ((uint8_t)0x00) +#define I2C_Register_CR2 ((uint8_t)0x04) +#define I2C_Register_OAR1 ((uint8_t)0x08) +#define I2C_Register_OAR2 ((uint8_t)0x0C) +#define I2C_Register_DR ((uint8_t)0x10) +#define I2C_Register_SR1 ((uint8_t)0x14) +#define I2C_Register_SR2 ((uint8_t)0x18) +#define I2C_Register_CCR ((uint8_t)0x1C) +#define I2C_Register_TRISE ((uint8_t)0x20) +#define IS_I2C_REGISTER(REGISTER) (((REGISTER) == I2C_Register_CR1) || \ + ((REGISTER) == I2C_Register_CR2) || \ + ((REGISTER) == I2C_Register_OAR1) || \ + ((REGISTER) == I2C_Register_OAR2) || \ + ((REGISTER) == I2C_Register_DR) || \ + ((REGISTER) == I2C_Register_SR1) || \ + ((REGISTER) == I2C_Register_SR2) || \ + ((REGISTER) == I2C_Register_CCR) || \ + ((REGISTER) == I2C_Register_TRISE)) +/** + * @} + */ + +/** @defgroup I2C_NACK_position + * @{ + */ + +#define I2C_NACKPosition_Next ((uint16_t)0x0800) +#define I2C_NACKPosition_Current ((uint16_t)0xF7FF) +#define IS_I2C_NACK_POSITION(POSITION) (((POSITION) == I2C_NACKPosition_Next) || \ + ((POSITION) == I2C_NACKPosition_Current)) +/** + * @} + */ + +/** @defgroup I2C_SMBus_alert_pin_level + * @{ + */ + +#define I2C_SMBusAlert_Low ((uint16_t)0x2000) +#define I2C_SMBusAlert_High ((uint16_t)0xDFFF) +#define IS_I2C_SMBUS_ALERT(ALERT) (((ALERT) == I2C_SMBusAlert_Low) || \ + ((ALERT) == I2C_SMBusAlert_High)) +/** + * @} + */ + +/** @defgroup I2C_PEC_position + * @{ + */ + +#define I2C_PECPosition_Next ((uint16_t)0x0800) +#define I2C_PECPosition_Current ((uint16_t)0xF7FF) +#define IS_I2C_PEC_POSITION(POSITION) (((POSITION) == I2C_PECPosition_Next) || \ + ((POSITION) == I2C_PECPosition_Current)) +/** + * @} + */ + +/** @defgroup I2C_interrupts_definition + * @{ + */ + +#define I2C_IT_BUF ((uint16_t)0x0400) +#define I2C_IT_EVT ((uint16_t)0x0200) +#define I2C_IT_ERR ((uint16_t)0x0100) +#define IS_I2C_CONFIG_IT(IT) ((((IT) & (uint16_t)0xF8FF) == 0x00) && ((IT) != 0x00)) +/** + * @} + */ + +/** @defgroup I2C_interrupts_definition + * @{ + */ + +#define I2C_IT_SMBALERT ((uint32_t)0x01008000) +#define I2C_IT_TIMEOUT ((uint32_t)0x01004000) +#define I2C_IT_PECERR ((uint32_t)0x01001000) +#define I2C_IT_OVR ((uint32_t)0x01000800) +#define I2C_IT_AF ((uint32_t)0x01000400) +#define I2C_IT_ARLO ((uint32_t)0x01000200) +#define I2C_IT_BERR ((uint32_t)0x01000100) +#define I2C_IT_TXE ((uint32_t)0x06000080) +#define I2C_IT_RXNE ((uint32_t)0x06000040) +#define I2C_IT_STOPF ((uint32_t)0x02000010) +#define I2C_IT_ADD10 ((uint32_t)0x02000008) +#define I2C_IT_BTF ((uint32_t)0x02000004) +#define I2C_IT_ADDR ((uint32_t)0x02000002) +#define I2C_IT_SB ((uint32_t)0x02000001) + +#define IS_I2C_CLEAR_IT(IT) ((((IT) & (uint16_t)0x20FF) == 0x00) && ((IT) != (uint16_t)0x00)) + +#define IS_I2C_GET_IT(IT) (((IT) == I2C_IT_SMBALERT) || ((IT) == I2C_IT_TIMEOUT) || \ + ((IT) == I2C_IT_PECERR) || ((IT) == I2C_IT_OVR) || \ + ((IT) == I2C_IT_AF) || ((IT) == I2C_IT_ARLO) || \ + ((IT) == I2C_IT_BERR) || ((IT) == I2C_IT_TXE) || \ + ((IT) == I2C_IT_RXNE) || ((IT) == I2C_IT_STOPF) || \ + ((IT) == I2C_IT_ADD10) || ((IT) == I2C_IT_BTF) || \ + ((IT) == I2C_IT_ADDR) || ((IT) == I2C_IT_SB)) +/** + * @} + */ + +/** @defgroup I2C_flags_definition + * @{ + */ + +/** + * @brief SR2 register flags + */ + +#define I2C_FLAG_DUALF ((uint32_t)0x00800000) +#define I2C_FLAG_SMBHOST ((uint32_t)0x00400000) +#define I2C_FLAG_SMBDEFAULT ((uint32_t)0x00200000) +#define I2C_FLAG_GENCALL ((uint32_t)0x00100000) +#define I2C_FLAG_TRA ((uint32_t)0x00040000) +#define I2C_FLAG_BUSY ((uint32_t)0x00020000) +#define I2C_FLAG_MSL ((uint32_t)0x00010000) + +/** + * @brief SR1 register flags + */ + +#define I2C_FLAG_SMBALERT ((uint32_t)0x10008000) +#define I2C_FLAG_TIMEOUT ((uint32_t)0x10004000) +#define I2C_FLAG_PECERR ((uint32_t)0x10001000) +#define I2C_FLAG_OVR ((uint32_t)0x10000800) +#define I2C_FLAG_AF ((uint32_t)0x10000400) +#define I2C_FLAG_ARLO ((uint32_t)0x10000200) +#define I2C_FLAG_BERR ((uint32_t)0x10000100) +#define I2C_FLAG_TXE ((uint32_t)0x10000080) +#define I2C_FLAG_RXNE ((uint32_t)0x10000040) +#define I2C_FLAG_STOPF ((uint32_t)0x10000010) +#define I2C_FLAG_ADD10 ((uint32_t)0x10000008) +#define I2C_FLAG_BTF ((uint32_t)0x10000004) +#define I2C_FLAG_ADDR ((uint32_t)0x10000002) +#define I2C_FLAG_SB ((uint32_t)0x10000001) + +#define IS_I2C_CLEAR_FLAG(FLAG) ((((FLAG) & (uint16_t)0x20FF) == 0x00) && ((FLAG) != (uint16_t)0x00)) + +#define IS_I2C_GET_FLAG(FLAG) (((FLAG) == I2C_FLAG_DUALF) || ((FLAG) == I2C_FLAG_SMBHOST) || \ + ((FLAG) == I2C_FLAG_SMBDEFAULT) || ((FLAG) == I2C_FLAG_GENCALL) || \ + ((FLAG) == I2C_FLAG_TRA) || ((FLAG) == I2C_FLAG_BUSY) || \ + ((FLAG) == I2C_FLAG_MSL) || ((FLAG) == I2C_FLAG_SMBALERT) || \ + ((FLAG) == I2C_FLAG_TIMEOUT) || ((FLAG) == I2C_FLAG_PECERR) || \ + ((FLAG) == I2C_FLAG_OVR) || ((FLAG) == I2C_FLAG_AF) || \ + ((FLAG) == I2C_FLAG_ARLO) || ((FLAG) == I2C_FLAG_BERR) || \ + ((FLAG) == I2C_FLAG_TXE) || ((FLAG) == I2C_FLAG_RXNE) || \ + ((FLAG) == I2C_FLAG_STOPF) || ((FLAG) == I2C_FLAG_ADD10) || \ + ((FLAG) == I2C_FLAG_BTF) || ((FLAG) == I2C_FLAG_ADDR) || \ + ((FLAG) == I2C_FLAG_SB)) +/** + * @} + */ + +/** @defgroup I2C_Events + * @{ + */ + +/** + =============================================================================== + I2C Master Events (Events grouped in order of communication) + =============================================================================== + */ + +/** + * @brief Communication start + * + * After sending the START condition (I2C_GenerateSTART() function) the master + * has to wait for this event. It means that the Start condition has been correctly + * released on the I2C bus (the bus is free, no other devices is communicating). + * + */ +/* --EV5 */ +#define I2C_EVENT_MASTER_MODE_SELECT ((uint32_t)0x00030001) /* BUSY, MSL and SB flag */ + +/** + * @brief Address Acknowledge + * + * After checking on EV5 (start condition correctly released on the bus), the + * master sends the address of the slave(s) with which it will communicate + * (I2C_Send7bitAddress() function, it also determines the direction of the communication: + * Master transmitter or Receiver). Then the master has to wait that a slave acknowledges + * his address. If an acknowledge is sent on the bus, one of the following events will + * be set: + * + * 1) In case of Master Receiver (7-bit addressing): the I2C_EVENT_MASTER_RECEIVER_MODE_SELECTED + * event is set. + * + * 2) In case of Master Transmitter (7-bit addressing): the I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED + * is set + * + * 3) In case of 10-Bit addressing mode, the master (just after generating the START + * and checking on EV5) has to send the header of 10-bit addressing mode (I2C_SendData() + * function). Then master should wait on EV9. It means that the 10-bit addressing + * header has been correctly sent on the bus. Then master should send the second part of + * the 10-bit address (LSB) using the function I2C_Send7bitAddress(). Then master + * should wait for event EV6. + * + */ + +/* --EV6 */ +#define I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED ((uint32_t)0x00070082) /* BUSY, MSL, ADDR, TXE and TRA flags */ +#define I2C_EVENT_MASTER_RECEIVER_MODE_SELECTED ((uint32_t)0x00030002) /* BUSY, MSL and ADDR flags */ +/* --EV9 */ +#define I2C_EVENT_MASTER_MODE_ADDRESS10 ((uint32_t)0x00030008) /* BUSY, MSL and ADD10 flags */ + +/** + * @brief Communication events + * + * If a communication is established (START condition generated and slave address + * acknowledged) then the master has to check on one of the following events for + * communication procedures: + * + * 1) Master Receiver mode: The master has to wait on the event EV7 then to read + * the data received from the slave (I2C_ReceiveData() function). + * + * 2) Master Transmitter mode: The master has to send data (I2C_SendData() + * function) then to wait on event EV8 or EV8_2. + * These two events are similar: + * - EV8 means that the data has been written in the data register and is + * being shifted out. + * - EV8_2 means that the data has been physically shifted out and output + * on the bus. + * In most cases, using EV8 is sufficient for the application. + * Using EV8_2 leads to a slower communication but ensure more reliable test. + * EV8_2 is also more suitable than EV8 for testing on the last data transmission + * (before Stop condition generation). + * + * @note In case the user software does not guarantee that this event EV7 is + * managed before the current byte end of transfer, then user may check on EV7 + * and BTF flag at the same time (ie. (I2C_EVENT_MASTER_BYTE_RECEIVED | I2C_FLAG_BTF)). + * In this case the communication may be slower. + * + */ + +/* Master RECEIVER mode -----------------------------*/ +/* --EV7 */ +#define I2C_EVENT_MASTER_BYTE_RECEIVED ((uint32_t)0x00030040) /* BUSY, MSL and RXNE flags */ + +/* Master TRANSMITTER mode --------------------------*/ +/* --EV8 */ +#define I2C_EVENT_MASTER_BYTE_TRANSMITTING ((uint32_t)0x00070080) /* TRA, BUSY, MSL, TXE flags */ +/* --EV8_2 */ +#define I2C_EVENT_MASTER_BYTE_TRANSMITTED ((uint32_t)0x00070084) /* TRA, BUSY, MSL, TXE and BTF flags */ + + +/** + =============================================================================== + I2C Slave Events (Events grouped in order of communication) + =============================================================================== + */ + + +/** + * @brief Communication start events + * + * Wait on one of these events at the start of the communication. It means that + * the I2C peripheral detected a Start condition on the bus (generated by master + * device) followed by the peripheral address. The peripheral generates an ACK + * condition on the bus (if the acknowledge feature is enabled through function + * I2C_AcknowledgeConfig()) and the events listed above are set : + * + * 1) In normal case (only one address managed by the slave), when the address + * sent by the master matches the own address of the peripheral (configured by + * I2C_OwnAddress1 field) the I2C_EVENT_SLAVE_XXX_ADDRESS_MATCHED event is set + * (where XXX could be TRANSMITTER or RECEIVER). + * + * 2) In case the address sent by the master matches the second address of the + * peripheral (configured by the function I2C_OwnAddress2Config() and enabled + * by the function I2C_DualAddressCmd()) the events I2C_EVENT_SLAVE_XXX_SECONDADDRESS_MATCHED + * (where XXX could be TRANSMITTER or RECEIVER) are set. + * + * 3) In case the address sent by the master is General Call (address 0x00) and + * if the General Call is enabled for the peripheral (using function I2C_GeneralCallCmd()) + * the following event is set I2C_EVENT_SLAVE_GENERALCALLADDRESS_MATCHED. + * + */ + +/* --EV1 (all the events below are variants of EV1) */ +/* 1) Case of One Single Address managed by the slave */ +#define I2C_EVENT_SLAVE_RECEIVER_ADDRESS_MATCHED ((uint32_t)0x00020002) /* BUSY and ADDR flags */ +#define I2C_EVENT_SLAVE_TRANSMITTER_ADDRESS_MATCHED ((uint32_t)0x00060082) /* TRA, BUSY, TXE and ADDR flags */ + +/* 2) Case of Dual address managed by the slave */ +#define I2C_EVENT_SLAVE_RECEIVER_SECONDADDRESS_MATCHED ((uint32_t)0x00820000) /* DUALF and BUSY flags */ +#define I2C_EVENT_SLAVE_TRANSMITTER_SECONDADDRESS_MATCHED ((uint32_t)0x00860080) /* DUALF, TRA, BUSY and TXE flags */ + +/* 3) Case of General Call enabled for the slave */ +#define I2C_EVENT_SLAVE_GENERALCALLADDRESS_MATCHED ((uint32_t)0x00120000) /* GENCALL and BUSY flags */ + +/** + * @brief Communication events + * + * Wait on one of these events when EV1 has already been checked and: + * + * - Slave RECEIVER mode: + * - EV2: When the application is expecting a data byte to be received. + * - EV4: When the application is expecting the end of the communication: master + * sends a stop condition and data transmission is stopped. + * + * - Slave Transmitter mode: + * - EV3: When a byte has been transmitted by the slave and the application is expecting + * the end of the byte transmission. The two events I2C_EVENT_SLAVE_BYTE_TRANSMITTED and + * I2C_EVENT_SLAVE_BYTE_TRANSMITTING are similar. The second one can optionally be + * used when the user software doesn't guarantee the EV3 is managed before the + * current byte end of transfer. + * - EV3_2: When the master sends a NACK in order to tell slave that data transmission + * shall end (before sending the STOP condition). In this case slave has to stop sending + * data bytes and expect a Stop condition on the bus. + * + * @note In case the user software does not guarantee that the event EV2 is + * managed before the current byte end of transfer, then user may check on EV2 + * and BTF flag at the same time (ie. (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_BTF)). + * In this case the communication may be slower. + * + */ + +/* Slave RECEIVER mode --------------------------*/ +/* --EV2 */ +#define I2C_EVENT_SLAVE_BYTE_RECEIVED ((uint32_t)0x00020040) /* BUSY and RXNE flags */ +/* --EV4 */ +#define I2C_EVENT_SLAVE_STOP_DETECTED ((uint32_t)0x00000010) /* STOPF flag */ + +/* Slave TRANSMITTER mode -----------------------*/ +/* --EV3 */ +#define I2C_EVENT_SLAVE_BYTE_TRANSMITTED ((uint32_t)0x00060084) /* TRA, BUSY, TXE and BTF flags */ +#define I2C_EVENT_SLAVE_BYTE_TRANSMITTING ((uint32_t)0x00060080) /* TRA, BUSY and TXE flags */ +/* --EV3_2 */ +#define I2C_EVENT_SLAVE_ACK_FAILURE ((uint32_t)0x00000400) /* AF flag */ + +/* + =============================================================================== + End of Events Description + =============================================================================== + */ + +#define IS_I2C_EVENT(EVENT) (((EVENT) == I2C_EVENT_SLAVE_TRANSMITTER_ADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_RECEIVER_ADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_TRANSMITTER_SECONDADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_RECEIVER_SECONDADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_GENERALCALLADDRESS_MATCHED) || \ + ((EVENT) == I2C_EVENT_SLAVE_BYTE_RECEIVED) || \ + ((EVENT) == (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_DUALF)) || \ + ((EVENT) == (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_GENCALL)) || \ + ((EVENT) == I2C_EVENT_SLAVE_BYTE_TRANSMITTED) || \ + ((EVENT) == (I2C_EVENT_SLAVE_BYTE_TRANSMITTED | I2C_FLAG_DUALF)) || \ + ((EVENT) == (I2C_EVENT_SLAVE_BYTE_TRANSMITTED | I2C_FLAG_GENCALL)) || \ + ((EVENT) == I2C_EVENT_SLAVE_STOP_DETECTED) || \ + ((EVENT) == I2C_EVENT_MASTER_MODE_SELECT) || \ + ((EVENT) == I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED) || \ + ((EVENT) == I2C_EVENT_MASTER_RECEIVER_MODE_SELECTED) || \ + ((EVENT) == I2C_EVENT_MASTER_BYTE_RECEIVED) || \ + ((EVENT) == I2C_EVENT_MASTER_BYTE_TRANSMITTED) || \ + ((EVENT) == I2C_EVENT_MASTER_BYTE_TRANSMITTING) || \ + ((EVENT) == I2C_EVENT_MASTER_MODE_ADDRESS10) || \ + ((EVENT) == I2C_EVENT_SLAVE_ACK_FAILURE)) +/** + * @} + */ + +/** @defgroup I2C_own_address1 + * @{ + */ + +#define IS_I2C_OWN_ADDRESS1(ADDRESS1) ((ADDRESS1) <= 0x3FF) +/** + * @} + */ + +/** @defgroup I2C_clock_speed + * @{ + */ + +#define IS_I2C_CLOCK_SPEED(SPEED) (((SPEED) >= 0x1) && ((SPEED) <= 400000)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the I2C configuration to the default reset state *****/ +void I2C_DeInit(I2C_TypeDef* I2Cx); + +/* Initialization and Configuration functions *********************************/ +void I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct); +void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct); +void I2C_Cmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_GenerateSTART(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_GenerateSTOP(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_Send7bitAddress(I2C_TypeDef* I2Cx, uint8_t Address, uint8_t I2C_Direction); +void I2C_AcknowledgeConfig(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_OwnAddress2Config(I2C_TypeDef* I2Cx, uint8_t Address); +void I2C_DualAddressCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_GeneralCallCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_SoftwareResetCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_StretchClockCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_FastModeDutyCycleConfig(I2C_TypeDef* I2Cx, uint16_t I2C_DutyCycle); +void I2C_NACKPositionConfig(I2C_TypeDef* I2Cx, uint16_t I2C_NACKPosition); +void I2C_SMBusAlertConfig(I2C_TypeDef* I2Cx, uint16_t I2C_SMBusAlert); +void I2C_ARPCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); + +/* Data transfers functions ***************************************************/ +void I2C_SendData(I2C_TypeDef* I2Cx, uint8_t Data); +uint8_t I2C_ReceiveData(I2C_TypeDef* I2Cx); + +/* PEC management functions ***************************************************/ +void I2C_TransmitPEC(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_PECPositionConfig(I2C_TypeDef* I2Cx, uint16_t I2C_PECPosition); +void I2C_CalculatePEC(I2C_TypeDef* I2Cx, FunctionalState NewState); +uint8_t I2C_GetPEC(I2C_TypeDef* I2Cx); + +/* DMA transfers management functions *****************************************/ +void I2C_DMACmd(I2C_TypeDef* I2Cx, FunctionalState NewState); +void I2C_DMALastTransferCmd(I2C_TypeDef* I2Cx, FunctionalState NewState); + +/* Interrupts, events and flags management functions **************************/ +uint16_t I2C_ReadRegister(I2C_TypeDef* I2Cx, uint8_t I2C_Register); +void I2C_ITConfig(I2C_TypeDef* I2Cx, uint16_t I2C_IT, FunctionalState NewState); + +/* + =============================================================================== + I2C State Monitoring Functions + =============================================================================== + This I2C driver provides three different ways for I2C state monitoring + depending on the application requirements and constraints: + + + 1. Basic state monitoring (Using I2C_CheckEvent() function) + ----------------------------------------------------------- + It compares the status registers (SR1 and SR2) content to a given event + (can be the combination of one or more flags). + It returns SUCCESS if the current status includes the given flags + and returns ERROR if one or more flags are missing in the current status. + + - When to use + - This function is suitable for most applications as well as for startup + activity since the events are fully described in the product reference + manual (RM0033). + - It is also suitable for users who need to define their own events. + + - Limitations + - If an error occurs (ie. error flags are set besides to the monitored + flags), the I2C_CheckEvent() function may return SUCCESS despite + the communication hold or corrupted real state. + In this case, it is advised to use error interrupts to monitor + the error events and handle them in the interrupt IRQ handler. + + Note + For error management, it is advised to use the following functions: + - I2C_ITConfig() to configure and enable the error interrupts (I2C_IT_ERR). + - I2Cx_ER_IRQHandler() which is called when the error interrupt occurs. + Where x is the peripheral instance (I2C1, I2C2 ...) + - I2C_GetFlagStatus() or I2C_GetITStatus() to be called into the + I2Cx_ER_IRQHandler() function in order to determine which error occurred. + - I2C_ClearFlag() or I2C_ClearITPendingBit() and/or I2C_SoftwareResetCmd() + and/or I2C_GenerateStop() in order to clear the error flag and source + and return to correct communication status. + + + 2. Advanced state monitoring (Using the function I2C_GetLastEvent()) + -------------------------------------------------------------------- + Using the function I2C_GetLastEvent() which returns the image of both status + registers in a single word (uint32_t) (Status Register 2 value is shifted left + by 16 bits and concatenated to Status Register 1). + + - When to use + - This function is suitable for the same applications above but it + allows to overcome the mentioned limitation of I2C_GetFlagStatus() + function. + - The returned value could be compared to events already defined in + this file or to custom values defined by user. + This function is suitable when multiple flags are monitored at the + same time. + - At the opposite of I2C_CheckEvent() function, this function allows + user to choose when an event is accepted (when all events flags are + set and no other flags are set or just when the needed flags are set + like I2C_CheckEvent() function. + + - Limitations + - User may need to define his own events. + - Same remark concerning the error management is applicable for this + function if user decides to check only regular communication flags + (and ignores error flags). + + + 3. Flag-based state monitoring (Using the function I2C_GetFlagStatus()) + ----------------------------------------------------------------------- + + Using the function I2C_GetFlagStatus() which simply returns the status of + one single flag (ie. I2C_FLAG_RXNE ...). + + - When to use + - This function could be used for specific applications or in debug + phase. + - It is suitable when only one flag checking is needed (most I2C + events are monitored through multiple flags). + - Limitations: + - When calling this function, the Status register is accessed. + Some flags are cleared when the status register is accessed. + So checking the status of one Flag, may clear other ones. + - Function may need to be called twice or more in order to monitor + one single event. + */ + +/* + =============================================================================== + 1. Basic state monitoring + =============================================================================== + */ +ErrorStatus I2C_CheckEvent(I2C_TypeDef* I2Cx, uint32_t I2C_EVENT); +/* + =============================================================================== + 2. Advanced state monitoring + =============================================================================== + */ +uint32_t I2C_GetLastEvent(I2C_TypeDef* I2Cx); +/* + =============================================================================== + 3. Flag-based state monitoring + =============================================================================== + */ +FlagStatus I2C_GetFlagStatus(I2C_TypeDef* I2Cx, uint32_t I2C_FLAG); + + +void I2C_ClearFlag(I2C_TypeDef* I2Cx, uint32_t I2C_FLAG); +ITStatus I2C_GetITStatus(I2C_TypeDef* I2Cx, uint32_t I2C_IT); +void I2C_ClearITPendingBit(I2C_TypeDef* I2Cx, uint32_t I2C_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_I2C_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_iwdg.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_iwdg.h new file mode 100644 index 00000000..e689bd76 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_iwdg.h @@ -0,0 +1,131 @@ +/** + ****************************************************************************** + * @file stm32f2xx_iwdg.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the IWDG + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_IWDG_H +#define __STM32F2xx_IWDG_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup IWDG + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup IWDG_Exported_Constants + * @{ + */ + +/** @defgroup IWDG_WriteAccess + * @{ + */ +#define IWDG_WriteAccess_Enable ((uint16_t)0x5555) +#define IWDG_WriteAccess_Disable ((uint16_t)0x0000) +#define IS_IWDG_WRITE_ACCESS(ACCESS) (((ACCESS) == IWDG_WriteAccess_Enable) || \ + ((ACCESS) == IWDG_WriteAccess_Disable)) +/** + * @} + */ + +/** @defgroup IWDG_prescaler + * @{ + */ +#define IWDG_Prescaler_4 ((uint8_t)0x00) +#define IWDG_Prescaler_8 ((uint8_t)0x01) +#define IWDG_Prescaler_16 ((uint8_t)0x02) +#define IWDG_Prescaler_32 ((uint8_t)0x03) +#define IWDG_Prescaler_64 ((uint8_t)0x04) +#define IWDG_Prescaler_128 ((uint8_t)0x05) +#define IWDG_Prescaler_256 ((uint8_t)0x06) +#define IS_IWDG_PRESCALER(PRESCALER) (((PRESCALER) == IWDG_Prescaler_4) || \ + ((PRESCALER) == IWDG_Prescaler_8) || \ + ((PRESCALER) == IWDG_Prescaler_16) || \ + ((PRESCALER) == IWDG_Prescaler_32) || \ + ((PRESCALER) == IWDG_Prescaler_64) || \ + ((PRESCALER) == IWDG_Prescaler_128)|| \ + ((PRESCALER) == IWDG_Prescaler_256)) +/** + * @} + */ + +/** @defgroup IWDG_Flag + * @{ + */ +#define IWDG_FLAG_PVU ((uint16_t)0x0001) +#define IWDG_FLAG_RVU ((uint16_t)0x0002) +#define IS_IWDG_FLAG(FLAG) (((FLAG) == IWDG_FLAG_PVU) || ((FLAG) == IWDG_FLAG_RVU)) +#define IS_IWDG_RELOAD(RELOAD) ((RELOAD) <= 0xFFF) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Prescaler and Counter configuration functions ******************************/ +void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess); +void IWDG_SetPrescaler(uint8_t IWDG_Prescaler); +void IWDG_SetReload(uint16_t Reload); +void IWDG_ReloadCounter(void); + +/* IWDG activation function ***************************************************/ +void IWDG_Enable(void); + +/* Flag management function ***************************************************/ +FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_IWDG_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_pwr.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_pwr.h new file mode 100644 index 00000000..7a9cf3ec --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_pwr.h @@ -0,0 +1,166 @@ +/** + ****************************************************************************** + * @file stm32f2xx_pwr.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the PWR firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_PWR_H +#define __STM32F2xx_PWR_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup PWR + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup PWR_Exported_Constants + * @{ + */ + +/** @defgroup PWR_PVD_detection_level + * @{ + */ + +#define PWR_PVDLevel_0 PWR_CR_PLS_LEV0 +#define PWR_PVDLevel_1 PWR_CR_PLS_LEV1 +#define PWR_PVDLevel_2 PWR_CR_PLS_LEV2 +#define PWR_PVDLevel_3 PWR_CR_PLS_LEV3 +#define PWR_PVDLevel_4 PWR_CR_PLS_LEV4 +#define PWR_PVDLevel_5 PWR_CR_PLS_LEV5 +#define PWR_PVDLevel_6 PWR_CR_PLS_LEV6 +#define PWR_PVDLevel_7 PWR_CR_PLS_LEV7 + +#define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLevel_0) || ((LEVEL) == PWR_PVDLevel_1)|| \ + ((LEVEL) == PWR_PVDLevel_2) || ((LEVEL) == PWR_PVDLevel_3)|| \ + ((LEVEL) == PWR_PVDLevel_4) || ((LEVEL) == PWR_PVDLevel_5)|| \ + ((LEVEL) == PWR_PVDLevel_6) || ((LEVEL) == PWR_PVDLevel_7)) +/** + * @} + */ + + +/** @defgroup PWR_Regulator_state_in_STOP_mode + * @{ + */ + +#define PWR_Regulator_ON ((uint32_t)0x00000000) +#define PWR_Regulator_LowPower PWR_CR_LPDS +#define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_Regulator_ON) || \ + ((REGULATOR) == PWR_Regulator_LowPower)) +/** + * @} + */ + +/** @defgroup PWR_STOP_mode_entry + * @{ + */ + +#define PWR_STOPEntry_WFI ((uint8_t)0x01) +#define PWR_STOPEntry_WFE ((uint8_t)0x02) +#define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPEntry_WFI) || ((ENTRY) == PWR_STOPEntry_WFE)) + +/** + * @} + */ + +/** @defgroup PWR_Flag + * @{ + */ + +#define PWR_FLAG_WU PWR_CSR_WUF +#define PWR_FLAG_SB PWR_CSR_SBF +#define PWR_FLAG_PVDO PWR_CSR_PVDO +#define PWR_FLAG_BRR PWR_CSR_BRR + +#define IS_PWR_GET_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB) || \ + ((FLAG) == PWR_FLAG_PVDO) || ((FLAG) == PWR_FLAG_BRR)) + +#define IS_PWR_CLEAR_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the PWR configuration to the default reset state ******/ +void PWR_DeInit(void); + +/* Backup Domain Access function **********************************************/ +void PWR_BackupAccessCmd(FunctionalState NewState); + +/* PVD configuration functions ************************************************/ +void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel); +void PWR_PVDCmd(FunctionalState NewState); + +/* WakeUp pins configuration functions ****************************************/ +void PWR_WakeUpPinCmd(FunctionalState NewState); + +/* Backup Regulator configuration functions ***********************************/ +void PWR_BackupRegulatorCmd(FunctionalState NewState); + +/* FLASH Power Down configuration functions ***********************************/ +void PWR_FlashPowerDownCmd(FunctionalState NewState); + +/* Low Power modes configuration functions ************************************/ +void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry); +void PWR_EnterSTANDBYMode(void); + +/* Flags management functions *************************************************/ +FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG); +void PWR_ClearFlag(uint32_t PWR_FLAG); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_PWR_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rcc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rcc.h new file mode 100644 index 00000000..cfe0f0bc --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rcc.h @@ -0,0 +1,515 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rcc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the RCC firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_RCC_H +#define __STM32F2xx_RCC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup RCC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +typedef struct +{ + uint32_t SYSCLK_Frequency; /*!< SYSCLK clock frequency expressed in Hz */ + uint32_t HCLK_Frequency; /*!< HCLK clock frequency expressed in Hz */ + uint32_t PCLK1_Frequency; /*!< PCLK1 clock frequency expressed in Hz */ + uint32_t PCLK2_Frequency; /*!< PCLK2 clock frequency expressed in Hz */ +}RCC_ClocksTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup RCC_Exported_Constants + * @{ + */ + +/** @defgroup RCC_HSE_configuration + * @{ + */ +#define RCC_HSE_OFF ((uint8_t)0x00) +#define RCC_HSE_ON ((uint8_t)0x01) +#define RCC_HSE_Bypass ((uint8_t)0x05) +#define IS_RCC_HSE(HSE) (((HSE) == RCC_HSE_OFF) || ((HSE) == RCC_HSE_ON) || \ + ((HSE) == RCC_HSE_Bypass)) +/** + * @} + */ + +/** @defgroup RCC_PLL_Clock_Source + * @{ + */ +#define RCC_PLLSource_HSI ((uint32_t)0x00000000) +#define RCC_PLLSource_HSE ((uint32_t)0x00400000) +#define IS_RCC_PLL_SOURCE(SOURCE) (((SOURCE) == RCC_PLLSource_HSI) || \ + ((SOURCE) == RCC_PLLSource_HSE)) +#define IS_RCC_PLLM_VALUE(VALUE) ((VALUE) <= 63) +#define IS_RCC_PLLN_VALUE(VALUE) ((192 <= (VALUE)) && ((VALUE) <= 432)) +#define IS_RCC_PLLP_VALUE(VALUE) (((VALUE) == 2) || ((VALUE) == 4) || ((VALUE) == 6) || ((VALUE) == 8)) +#define IS_RCC_PLLQ_VALUE(VALUE) ((4 <= (VALUE)) && ((VALUE) <= 15)) + +#define IS_RCC_PLLI2SN_VALUE(VALUE) ((192 <= (VALUE)) && ((VALUE) <= 432)) +#define IS_RCC_PLLI2SR_VALUE(VALUE) ((2 <= (VALUE)) && ((VALUE) <= 7)) +/** + * @} + */ + +/** @defgroup RCC_System_Clock_Source + * @{ + */ +#define RCC_SYSCLKSource_HSI ((uint32_t)0x00000000) +#define RCC_SYSCLKSource_HSE ((uint32_t)0x00000001) +#define RCC_SYSCLKSource_PLLCLK ((uint32_t)0x00000002) +#define IS_RCC_SYSCLK_SOURCE(SOURCE) (((SOURCE) == RCC_SYSCLKSource_HSI) || \ + ((SOURCE) == RCC_SYSCLKSource_HSE) || \ + ((SOURCE) == RCC_SYSCLKSource_PLLCLK)) +/** + * @} + */ + +/** @defgroup RCC_AHB_Clock_Source + * @{ + */ +#define RCC_SYSCLK_Div1 ((uint32_t)0x00000000) +#define RCC_SYSCLK_Div2 ((uint32_t)0x00000080) +#define RCC_SYSCLK_Div4 ((uint32_t)0x00000090) +#define RCC_SYSCLK_Div8 ((uint32_t)0x000000A0) +#define RCC_SYSCLK_Div16 ((uint32_t)0x000000B0) +#define RCC_SYSCLK_Div64 ((uint32_t)0x000000C0) +#define RCC_SYSCLK_Div128 ((uint32_t)0x000000D0) +#define RCC_SYSCLK_Div256 ((uint32_t)0x000000E0) +#define RCC_SYSCLK_Div512 ((uint32_t)0x000000F0) +#define IS_RCC_HCLK(HCLK) (((HCLK) == RCC_SYSCLK_Div1) || ((HCLK) == RCC_SYSCLK_Div2) || \ + ((HCLK) == RCC_SYSCLK_Div4) || ((HCLK) == RCC_SYSCLK_Div8) || \ + ((HCLK) == RCC_SYSCLK_Div16) || ((HCLK) == RCC_SYSCLK_Div64) || \ + ((HCLK) == RCC_SYSCLK_Div128) || ((HCLK) == RCC_SYSCLK_Div256) || \ + ((HCLK) == RCC_SYSCLK_Div512)) +/** + * @} + */ + +/** @defgroup RCC_APB1_APB2_Clock_Source + * @{ + */ +#define RCC_HCLK_Div1 ((uint32_t)0x00000000) +#define RCC_HCLK_Div2 ((uint32_t)0x00001000) +#define RCC_HCLK_Div4 ((uint32_t)0x00001400) +#define RCC_HCLK_Div8 ((uint32_t)0x00001800) +#define RCC_HCLK_Div16 ((uint32_t)0x00001C00) +#define IS_RCC_PCLK(PCLK) (((PCLK) == RCC_HCLK_Div1) || ((PCLK) == RCC_HCLK_Div2) || \ + ((PCLK) == RCC_HCLK_Div4) || ((PCLK) == RCC_HCLK_Div8) || \ + ((PCLK) == RCC_HCLK_Div16)) +/** + * @} + */ + +/** @defgroup RCC_Interrupt_Source + * @{ + */ +#define RCC_IT_LSIRDY ((uint8_t)0x01) +#define RCC_IT_LSERDY ((uint8_t)0x02) +#define RCC_IT_HSIRDY ((uint8_t)0x04) +#define RCC_IT_HSERDY ((uint8_t)0x08) +#define RCC_IT_PLLRDY ((uint8_t)0x10) +#define RCC_IT_PLLI2SRDY ((uint8_t)0x20) +#define RCC_IT_CSS ((uint8_t)0x80) +#define IS_RCC_IT(IT) ((((IT) & (uint8_t)0xC0) == 0x00) && ((IT) != 0x00)) +#define IS_RCC_GET_IT(IT) (((IT) == RCC_IT_LSIRDY) || ((IT) == RCC_IT_LSERDY) || \ + ((IT) == RCC_IT_HSIRDY) || ((IT) == RCC_IT_HSERDY) || \ + ((IT) == RCC_IT_PLLRDY) || ((IT) == RCC_IT_CSS) || \ + ((IT) == RCC_IT_PLLI2SRDY)) +#define IS_RCC_CLEAR_IT(IT) ((((IT) & (uint8_t)0x40) == 0x00) && ((IT) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_LSE_Configuration + * @{ + */ +#define RCC_LSE_OFF ((uint8_t)0x00) +#define RCC_LSE_ON ((uint8_t)0x01) +#define RCC_LSE_Bypass ((uint8_t)0x04) +#define IS_RCC_LSE(LSE) (((LSE) == RCC_LSE_OFF) || ((LSE) == RCC_LSE_ON) || \ + ((LSE) == RCC_LSE_Bypass)) +/** + * @} + */ + +/** @defgroup RCC_RTC_Clock_Source + * @{ + */ +#define RCC_RTCCLKSource_LSE ((uint32_t)0x00000100) +#define RCC_RTCCLKSource_LSI ((uint32_t)0x00000200) +#define RCC_RTCCLKSource_HSE_Div2 ((uint32_t)0x00020300) +#define RCC_RTCCLKSource_HSE_Div3 ((uint32_t)0x00030300) +#define RCC_RTCCLKSource_HSE_Div4 ((uint32_t)0x00040300) +#define RCC_RTCCLKSource_HSE_Div5 ((uint32_t)0x00050300) +#define RCC_RTCCLKSource_HSE_Div6 ((uint32_t)0x00060300) +#define RCC_RTCCLKSource_HSE_Div7 ((uint32_t)0x00070300) +#define RCC_RTCCLKSource_HSE_Div8 ((uint32_t)0x00080300) +#define RCC_RTCCLKSource_HSE_Div9 ((uint32_t)0x00090300) +#define RCC_RTCCLKSource_HSE_Div10 ((uint32_t)0x000A0300) +#define RCC_RTCCLKSource_HSE_Div11 ((uint32_t)0x000B0300) +#define RCC_RTCCLKSource_HSE_Div12 ((uint32_t)0x000C0300) +#define RCC_RTCCLKSource_HSE_Div13 ((uint32_t)0x000D0300) +#define RCC_RTCCLKSource_HSE_Div14 ((uint32_t)0x000E0300) +#define RCC_RTCCLKSource_HSE_Div15 ((uint32_t)0x000F0300) +#define RCC_RTCCLKSource_HSE_Div16 ((uint32_t)0x00100300) +#define RCC_RTCCLKSource_HSE_Div17 ((uint32_t)0x00110300) +#define RCC_RTCCLKSource_HSE_Div18 ((uint32_t)0x00120300) +#define RCC_RTCCLKSource_HSE_Div19 ((uint32_t)0x00130300) +#define RCC_RTCCLKSource_HSE_Div20 ((uint32_t)0x00140300) +#define RCC_RTCCLKSource_HSE_Div21 ((uint32_t)0x00150300) +#define RCC_RTCCLKSource_HSE_Div22 ((uint32_t)0x00160300) +#define RCC_RTCCLKSource_HSE_Div23 ((uint32_t)0x00170300) +#define RCC_RTCCLKSource_HSE_Div24 ((uint32_t)0x00180300) +#define RCC_RTCCLKSource_HSE_Div25 ((uint32_t)0x00190300) +#define RCC_RTCCLKSource_HSE_Div26 ((uint32_t)0x001A0300) +#define RCC_RTCCLKSource_HSE_Div27 ((uint32_t)0x001B0300) +#define RCC_RTCCLKSource_HSE_Div28 ((uint32_t)0x001C0300) +#define RCC_RTCCLKSource_HSE_Div29 ((uint32_t)0x001D0300) +#define RCC_RTCCLKSource_HSE_Div30 ((uint32_t)0x001E0300) +#define RCC_RTCCLKSource_HSE_Div31 ((uint32_t)0x001F0300) +#define IS_RCC_RTCCLK_SOURCE(SOURCE) (((SOURCE) == RCC_RTCCLKSource_LSE) || \ + ((SOURCE) == RCC_RTCCLKSource_LSI) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div2) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div3) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div4) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div5) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div6) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div7) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div8) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div9) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div10) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div11) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div12) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div13) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div14) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div15) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div16) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div17) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div18) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div19) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div20) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div21) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div22) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div23) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div24) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div25) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div26) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div27) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div28) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div29) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div30) || \ + ((SOURCE) == RCC_RTCCLKSource_HSE_Div31)) +/** + * @} + */ + +/** @defgroup RCC_I2S_Clock_Source + * @{ + */ +#define RCC_I2S2CLKSource_PLLI2S ((uint8_t)0x00) +#define RCC_I2S2CLKSource_Ext ((uint8_t)0x01) + +#define IS_RCC_I2SCLK_SOURCE(SOURCE) (((SOURCE) == RCC_I2S2CLKSource_PLLI2S) || ((SOURCE) == RCC_I2S2CLKSource_Ext)) +/** + * @} + */ + +/** @defgroup RCC_AHB1_Peripherals + * @{ + */ +#define RCC_AHB1Periph_GPIOA ((uint32_t)0x00000001) +#define RCC_AHB1Periph_GPIOB ((uint32_t)0x00000002) +#define RCC_AHB1Periph_GPIOC ((uint32_t)0x00000004) +#define RCC_AHB1Periph_GPIOD ((uint32_t)0x00000008) +#define RCC_AHB1Periph_GPIOE ((uint32_t)0x00000010) +#define RCC_AHB1Periph_GPIOF ((uint32_t)0x00000020) +#define RCC_AHB1Periph_GPIOG ((uint32_t)0x00000040) +#define RCC_AHB1Periph_GPIOH ((uint32_t)0x00000080) +#define RCC_AHB1Periph_GPIOI ((uint32_t)0x00000100) +#define RCC_AHB1Periph_CRC ((uint32_t)0x00001000) +#define RCC_AHB1Periph_FLITF ((uint32_t)0x00008000) +#define RCC_AHB1Periph_SRAM1 ((uint32_t)0x00010000) +#define RCC_AHB1Periph_SRAM2 ((uint32_t)0x00020000) +#define RCC_AHB1Periph_BKPSRAM ((uint32_t)0x00040000) +#define RCC_AHB1Periph_DMA1 ((uint32_t)0x00200000) +#define RCC_AHB1Periph_DMA2 ((uint32_t)0x00400000) +#define RCC_AHB1Periph_ETH_MAC ((uint32_t)0x02000000) +#define RCC_AHB1Periph_ETH_MAC_Tx ((uint32_t)0x04000000) +#define RCC_AHB1Periph_ETH_MAC_Rx ((uint32_t)0x08000000) +#define RCC_AHB1Periph_ETH_MAC_PTP ((uint32_t)0x10000000) +#define RCC_AHB1Periph_OTG_HS ((uint32_t)0x20000000) +#define RCC_AHB1Periph_OTG_HS_ULPI ((uint32_t)0x40000000) +#define IS_RCC_AHB1_CLOCK_PERIPH(PERIPH) ((((PERIPH) & 0x819BEE00) == 0x00) && ((PERIPH) != 0x00)) +#define IS_RCC_AHB1_RESET_PERIPH(PERIPH) ((((PERIPH) & 0xDD9FEE00) == 0x00) && ((PERIPH) != 0x00)) +#define IS_RCC_AHB1_LPMODE_PERIPH(PERIPH) ((((PERIPH) & 0x81986E00) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_AHB2_Peripherals + * @{ + */ +#define RCC_AHB2Periph_DCMI ((uint32_t)0x00000001) +#define RCC_AHB2Periph_CRYP ((uint32_t)0x00000010) +#define RCC_AHB2Periph_HASH ((uint32_t)0x00000020) +#define RCC_AHB2Periph_RNG ((uint32_t)0x00000040) +#define RCC_AHB2Periph_OTG_FS ((uint32_t)0x00000080) +#define IS_RCC_AHB2_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFF0E) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_AHB3_Peripherals + * @{ + */ +#define RCC_AHB3Periph_FSMC ((uint32_t)0x00000001) +#define IS_RCC_AHB3_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFFE) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_APB1_Peripherals + * @{ + */ +#define RCC_APB1Periph_TIM2 ((uint32_t)0x00000001) +#define RCC_APB1Periph_TIM3 ((uint32_t)0x00000002) +#define RCC_APB1Periph_TIM4 ((uint32_t)0x00000004) +#define RCC_APB1Periph_TIM5 ((uint32_t)0x00000008) +#define RCC_APB1Periph_TIM6 ((uint32_t)0x00000010) +#define RCC_APB1Periph_TIM7 ((uint32_t)0x00000020) +#define RCC_APB1Periph_TIM12 ((uint32_t)0x00000040) +#define RCC_APB1Periph_TIM13 ((uint32_t)0x00000080) +#define RCC_APB1Periph_TIM14 ((uint32_t)0x00000100) +#define RCC_APB1Periph_WWDG ((uint32_t)0x00000800) +#define RCC_APB1Periph_SPI2 ((uint32_t)0x00004000) +#define RCC_APB1Periph_SPI3 ((uint32_t)0x00008000) +#define RCC_APB1Periph_USART2 ((uint32_t)0x00020000) +#define RCC_APB1Periph_USART3 ((uint32_t)0x00040000) +#define RCC_APB1Periph_UART4 ((uint32_t)0x00080000) +#define RCC_APB1Periph_UART5 ((uint32_t)0x00100000) +#define RCC_APB1Periph_I2C1 ((uint32_t)0x00200000) +#define RCC_APB1Periph_I2C2 ((uint32_t)0x00400000) +#define RCC_APB1Periph_I2C3 ((uint32_t)0x00800000) +#define RCC_APB1Periph_CAN1 ((uint32_t)0x02000000) +#define RCC_APB1Periph_CAN2 ((uint32_t)0x04000000) +#define RCC_APB1Periph_PWR ((uint32_t)0x10000000) +#define RCC_APB1Periph_DAC ((uint32_t)0x20000000) +#define IS_RCC_APB1_PERIPH(PERIPH) ((((PERIPH) & 0xC9013600) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_APB2_Peripherals + * @{ + */ +#define RCC_APB2Periph_TIM1 ((uint32_t)0x00000001) +#define RCC_APB2Periph_TIM8 ((uint32_t)0x00000002) +#define RCC_APB2Periph_USART1 ((uint32_t)0x00000010) +#define RCC_APB2Periph_USART6 ((uint32_t)0x00000020) +#define RCC_APB2Periph_ADC ((uint32_t)0x00000100) +#define RCC_APB2Periph_ADC1 ((uint32_t)0x00000100) +#define RCC_APB2Periph_ADC2 ((uint32_t)0x00000200) +#define RCC_APB2Periph_ADC3 ((uint32_t)0x00000400) +#define RCC_APB2Periph_SDIO ((uint32_t)0x00000800) +#define RCC_APB2Periph_SPI1 ((uint32_t)0x00001000) +#define RCC_APB2Periph_SYSCFG ((uint32_t)0x00004000) +#define RCC_APB2Periph_TIM9 ((uint32_t)0x00010000) +#define RCC_APB2Periph_TIM10 ((uint32_t)0x00020000) +#define RCC_APB2Periph_TIM11 ((uint32_t)0x00040000) +#define IS_RCC_APB2_PERIPH(PERIPH) ((((PERIPH) & 0xFFF8A0CC) == 0x00) && ((PERIPH) != 0x00)) +#define IS_RCC_APB2_RESET_PERIPH(PERIPH) ((((PERIPH) & 0xFFF8A6CC) == 0x00) && ((PERIPH) != 0x00)) +/** + * @} + */ + +/** @defgroup RCC_MCO1_Clock_Source_Prescaler + * @{ + */ +#define RCC_MCO1Source_HSI ((uint32_t)0x00000000) +#define RCC_MCO1Source_LSE ((uint32_t)0x00200000) +#define RCC_MCO1Source_HSE ((uint32_t)0x00400000) +#define RCC_MCO1Source_PLLCLK ((uint32_t)0x00600000) +#define RCC_MCO1Div_1 ((uint32_t)0x00000000) +#define RCC_MCO1Div_2 ((uint32_t)0x04000000) +#define RCC_MCO1Div_3 ((uint32_t)0x05000000) +#define RCC_MCO1Div_4 ((uint32_t)0x06000000) +#define RCC_MCO1Div_5 ((uint32_t)0x07000000) +#define IS_RCC_MCO1SOURCE(SOURCE) (((SOURCE) == RCC_MCO1Source_HSI) || ((SOURCE) == RCC_MCO1Source_LSE) || \ + ((SOURCE) == RCC_MCO1Source_HSE) || ((SOURCE) == RCC_MCO1Source_PLLCLK)) + +#define IS_RCC_MCO1DIV(DIV) (((DIV) == RCC_MCO1Div_1) || ((DIV) == RCC_MCO1Div_2) || \ + ((DIV) == RCC_MCO1Div_3) || ((DIV) == RCC_MCO1Div_4) || \ + ((DIV) == RCC_MCO1Div_5)) +/** + * @} + */ + +/** @defgroup RCC_MCO2_Clock_Source_Prescaler + * @{ + */ +#define RCC_MCO2Source_SYSCLK ((uint32_t)0x00000000) +#define RCC_MCO2Source_PLLI2SCLK ((uint32_t)0x40000000) +#define RCC_MCO2Source_HSE ((uint32_t)0x80000000) +#define RCC_MCO2Source_PLLCLK ((uint32_t)0xC0000000) +#define RCC_MCO2Div_1 ((uint32_t)0x00000000) +#define RCC_MCO2Div_2 ((uint32_t)0x20000000) +#define RCC_MCO2Div_3 ((uint32_t)0x28000000) +#define RCC_MCO2Div_4 ((uint32_t)0x30000000) +#define RCC_MCO2Div_5 ((uint32_t)0x38000000) +#define IS_RCC_MCO2SOURCE(SOURCE) (((SOURCE) == RCC_MCO2Source_SYSCLK) || ((SOURCE) == RCC_MCO2Source_PLLI2SCLK)|| \ + ((SOURCE) == RCC_MCO2Source_HSE) || ((SOURCE) == RCC_MCO2Source_PLLCLK)) + +#define IS_RCC_MCO2DIV(DIV) (((DIV) == RCC_MCO2Div_1) || ((DIV) == RCC_MCO2Div_2) || \ + ((DIV) == RCC_MCO2Div_3) || ((DIV) == RCC_MCO2Div_4) || \ + ((DIV) == RCC_MCO2Div_5)) +/** + * @} + */ + +/** @defgroup RCC_Flag + * @{ + */ +#define RCC_FLAG_HSIRDY ((uint8_t)0x21) +#define RCC_FLAG_HSERDY ((uint8_t)0x31) +#define RCC_FLAG_PLLRDY ((uint8_t)0x39) +#define RCC_FLAG_PLLI2SRDY ((uint8_t)0x3B) +#define RCC_FLAG_LSERDY ((uint8_t)0x41) +#define RCC_FLAG_LSIRDY ((uint8_t)0x61) +#define RCC_FLAG_BORRST ((uint8_t)0x79) +#define RCC_FLAG_PINRST ((uint8_t)0x7A) +#define RCC_FLAG_PORRST ((uint8_t)0x7B) +#define RCC_FLAG_SFTRST ((uint8_t)0x7C) +#define RCC_FLAG_IWDGRST ((uint8_t)0x7D) +#define RCC_FLAG_WWDGRST ((uint8_t)0x7E) +#define RCC_FLAG_LPWRRST ((uint8_t)0x7F) +#define IS_RCC_FLAG(FLAG) (((FLAG) == RCC_FLAG_HSIRDY) || ((FLAG) == RCC_FLAG_HSERDY) || \ + ((FLAG) == RCC_FLAG_PLLRDY) || ((FLAG) == RCC_FLAG_LSERDY) || \ + ((FLAG) == RCC_FLAG_LSIRDY) || ((FLAG) == RCC_FLAG_BORRST) || \ + ((FLAG) == RCC_FLAG_PINRST) || ((FLAG) == RCC_FLAG_PORRST) || \ + ((FLAG) == RCC_FLAG_SFTRST) || ((FLAG) == RCC_FLAG_IWDGRST)|| \ + ((FLAG) == RCC_FLAG_WWDGRST)|| ((FLAG) == RCC_FLAG_LPWRRST)|| \ + ((FLAG) == RCC_FLAG_PLLI2SRDY)) +#define IS_RCC_CALIBRATION_VALUE(VALUE) ((VALUE) <= 0x1F) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the RCC clock configuration to the default reset state */ +void RCC_DeInit(void); + +/* Internal/external clocks, PLL, CSS and MCO configuration functions *********/ +void RCC_HSEConfig(uint8_t RCC_HSE); +ErrorStatus RCC_WaitForHSEStartUp(void); +void RCC_AdjustHSICalibrationValue(uint8_t HSICalibrationValue); +void RCC_HSICmd(FunctionalState NewState); +void RCC_LSEConfig(uint8_t RCC_LSE); +void RCC_LSICmd(FunctionalState NewState); + +void RCC_PLLConfig(uint32_t RCC_PLLSource, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP, uint32_t PLLQ); +void RCC_PLLCmd(FunctionalState NewState); +void RCC_PLLI2SConfig(uint32_t PLLI2SN, uint32_t PLLI2SR); +void RCC_PLLI2SCmd(FunctionalState NewState); + +void RCC_ClockSecuritySystemCmd(FunctionalState NewState); +void RCC_MCO1Config(uint32_t RCC_MCO1Source, uint32_t RCC_MCO1Div); +void RCC_MCO2Config(uint32_t RCC_MCO2Source, uint32_t RCC_MCO2Div); + +/* System, AHB and APB busses clocks configuration functions ******************/ +void RCC_SYSCLKConfig(uint32_t RCC_SYSCLKSource); +uint8_t RCC_GetSYSCLKSource(void); +void RCC_HCLKConfig(uint32_t RCC_SYSCLK); +void RCC_PCLK1Config(uint32_t RCC_HCLK); +void RCC_PCLK2Config(uint32_t RCC_HCLK); +void RCC_GetClocksFreq(RCC_ClocksTypeDef* RCC_Clocks); + +/* Peripheral clocks configuration functions **********************************/ +void RCC_RTCCLKConfig(uint32_t RCC_RTCCLKSource); +void RCC_RTCCLKCmd(FunctionalState NewState); +void RCC_BackupResetCmd(FunctionalState NewState); +void RCC_I2SCLKConfig(uint32_t RCC_I2SCLKSource); + +void RCC_AHB1PeriphClockCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState); +void RCC_AHB2PeriphClockCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState); +void RCC_AHB3PeriphClockCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState); +void RCC_APB1PeriphClockCmd(uint32_t RCC_APB1Periph, FunctionalState NewState); +void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState); + +void RCC_AHB1PeriphResetCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState); +void RCC_AHB2PeriphResetCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState); +void RCC_AHB3PeriphResetCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState); +void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState); +void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState); + +void RCC_AHB1PeriphClockLPModeCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState); +void RCC_AHB2PeriphClockLPModeCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState); +void RCC_AHB3PeriphClockLPModeCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState); +void RCC_APB1PeriphClockLPModeCmd(uint32_t RCC_APB1Periph, FunctionalState NewState); +void RCC_APB2PeriphClockLPModeCmd(uint32_t RCC_APB2Periph, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void RCC_ITConfig(uint8_t RCC_IT, FunctionalState NewState); +FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG); +void RCC_ClearFlag(void); +ITStatus RCC_GetITStatus(uint8_t RCC_IT); +void RCC_ClearITPendingBit(uint8_t RCC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_RCC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rng.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rng.h new file mode 100644 index 00000000..c2b52e68 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rng.h @@ -0,0 +1,120 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rng.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the Random + * Number Generator(RNG) firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_RNG_H +#define __STM32F2xx_RNG_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup RNG + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup RNG_Exported_Constants + * @{ + */ + +/** @defgroup RNG_flags_definition + * @{ + */ +#define RNG_FLAG_DRDY ((uint8_t)0x0001) /*!< Data ready */ +#define RNG_FLAG_CECS ((uint8_t)0x0002) /*!< Clock error current status */ +#define RNG_FLAG_SECS ((uint8_t)0x0004) /*!< Seed error current status */ + +#define IS_RNG_GET_FLAG(RNG_FLAG) (((RNG_FLAG) == RNG_FLAG_DRDY) || \ + ((RNG_FLAG) == RNG_FLAG_CECS) || \ + ((RNG_FLAG) == RNG_FLAG_SECS)) +#define IS_RNG_CLEAR_FLAG(RNG_FLAG) (((RNG_FLAG) == RNG_FLAG_CECS) || \ + ((RNG_FLAG) == RNG_FLAG_SECS)) +/** + * @} + */ + +/** @defgroup RNG_interrupts_definition + * @{ + */ +#define RNG_IT_CEI ((uint8_t)0x20) /*!< Clock error interrupt */ +#define RNG_IT_SEI ((uint8_t)0x40) /*!< Seed error interrupt */ + +#define IS_RNG_IT(IT) ((((IT) & (uint8_t)0x9F) == 0x00) && ((IT) != 0x00)) +#define IS_RNG_GET_IT(RNG_IT) (((RNG_IT) == RNG_IT_CEI) || ((RNG_IT) == RNG_IT_SEI)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the RNG configuration to the default reset state *****/ +void RNG_DeInit(void); + +/* Configuration function *****************************************************/ +void RNG_Cmd(FunctionalState NewState); + +/* Get 32 bit Random number function ******************************************/ +uint32_t RNG_GetRandomNumber(void); + +/* Interrupts and flags management functions **********************************/ +void RNG_ITConfig(FunctionalState NewState); +FlagStatus RNG_GetFlagStatus(uint8_t RNG_FLAG); +void RNG_ClearFlag(uint8_t RNG_FLAG); +ITStatus RNG_GetITStatus(uint8_t RNG_IT); +void RNG_ClearITPendingBit(uint8_t RNG_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_RNG_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rtc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rtc.h new file mode 100644 index 00000000..3cb7e202 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_rtc.h @@ -0,0 +1,650 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rtc.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the RTC firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_RTC_H +#define __STM32F2xx_RTC_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup RTC + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief RTC Init structures definition + */ +typedef struct +{ + uint32_t RTC_HourFormat; /*!< Specifies the RTC Hour Format. + This parameter can be a value of @ref RTC_Hour_Formats */ + + uint32_t RTC_AsynchPrediv; /*!< Specifies the RTC Asynchronous Predivider value. + This parameter must be set to a value lower than 0x7F */ + + uint32_t RTC_SynchPrediv; /*!< Specifies the RTC Synchronous Predivider value. + This parameter must be set to a value lower than 0x1FFF */ +}RTC_InitTypeDef; + +/** + * @brief RTC Time structure definition + */ +typedef struct +{ + uint8_t RTC_Hours; /*!< Specifies the RTC Time Hour. + This parameter must be set to a value in the 0-12 range + if the RTC_HourFormat_12 is selected or 0-23 range if + the RTC_HourFormat_24 is selected. */ + + uint8_t RTC_Minutes; /*!< Specifies the RTC Time Minutes. + This parameter must be set to a value in the 0-59 range. */ + + uint8_t RTC_Seconds; /*!< Specifies the RTC Time Seconds. + This parameter must be set to a value in the 0-59 range. */ + + uint8_t RTC_H12; /*!< Specifies the RTC AM/PM Time. + This parameter can be a value of @ref RTC_AM_PM_Definitions */ +}RTC_TimeTypeDef; + +/** + * @brief RTC Date structure definition + */ +typedef struct +{ + uint8_t RTC_WeekDay; /*!< Specifies the RTC Date WeekDay. + This parameter can be a value of @ref RTC_WeekDay_Definitions */ + + uint8_t RTC_Month; /*!< Specifies the RTC Date Month (in BCD format). + This parameter can be a value of @ref RTC_Month_Date_Definitions */ + + uint8_t RTC_Date; /*!< Specifies the RTC Date. + This parameter must be set to a value in the 1-31 range. */ + + uint8_t RTC_Year; /*!< Specifies the RTC Date Year. + This parameter must be set to a value in the 0-99 range. */ +}RTC_DateTypeDef; + +/** + * @brief RTC Alarm structure definition + */ +typedef struct +{ + RTC_TimeTypeDef RTC_AlarmTime; /*!< Specifies the RTC Alarm Time members. */ + + uint32_t RTC_AlarmMask; /*!< Specifies the RTC Alarm Masks. + This parameter can be a value of @ref RTC_AlarmMask_Definitions */ + + uint32_t RTC_AlarmDateWeekDaySel; /*!< Specifies the RTC Alarm is on Date or WeekDay. + This parameter can be a value of @ref RTC_AlarmDateWeekDay_Definitions */ + + uint8_t RTC_AlarmDateWeekDay; /*!< Specifies the RTC Alarm Date/WeekDay. + If the Alarm Date is selected, this parameter + must be set to a value in the 1-31 range. + If the Alarm WeekDay is selected, this + parameter can be a value of @ref RTC_WeekDay_Definitions */ +}RTC_AlarmTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup RTC_Exported_Constants + * @{ + */ + + +/** @defgroup RTC_Hour_Formats + * @{ + */ +#define RTC_HourFormat_24 ((uint32_t)0x00000000) +#define RTC_HourFormat_12 ((uint32_t)0x00000040) +#define IS_RTC_HOUR_FORMAT(FORMAT) (((FORMAT) == RTC_HourFormat_12) || \ + ((FORMAT) == RTC_HourFormat_24)) +/** + * @} + */ + +/** @defgroup RTC_Asynchronous_Predivider + * @{ + */ +#define IS_RTC_ASYNCH_PREDIV(PREDIV) ((PREDIV) <= 0x7F) + +/** + * @} + */ + + +/** @defgroup RTC_Synchronous_Predivider + * @{ + */ +#define IS_RTC_SYNCH_PREDIV(PREDIV) ((PREDIV) <= 0x1FFF) + +/** + * @} + */ + +/** @defgroup RTC_Time_Definitions + * @{ + */ +#define IS_RTC_HOUR12(HOUR) (((HOUR) > 0) && ((HOUR) <= 12)) +#define IS_RTC_HOUR24(HOUR) ((HOUR) <= 23) +#define IS_RTC_MINUTES(MINUTES) ((MINUTES) <= 59) +#define IS_RTC_SECONDS(SECONDS) ((SECONDS) <= 59) + +/** + * @} + */ + +/** @defgroup RTC_AM_PM_Definitions + * @{ + */ +#define RTC_H12_AM ((uint8_t)0x00) +#define RTC_H12_PM ((uint8_t)0x40) +#define IS_RTC_H12(PM) (((PM) == RTC_H12_AM) || ((PM) == RTC_H12_PM)) + +/** + * @} + */ + +/** @defgroup RTC_Year_Date_Definitions + * @{ + */ +#define IS_RTC_YEAR(YEAR) ((YEAR) <= 99) + +/** + * @} + */ + +/** @defgroup RTC_Month_Date_Definitions + * @{ + */ + +/* Coded in BCD format */ +#define RTC_Month_January ((uint8_t)0x01) +#define RTC_Month_February ((uint8_t)0x02) +#define RTC_Month_March ((uint8_t)0x03) +#define RTC_Month_April ((uint8_t)0x04) +#define RTC_Month_May ((uint8_t)0x05) +#define RTC_Month_June ((uint8_t)0x06) +#define RTC_Month_July ((uint8_t)0x07) +#define RTC_Month_August ((uint8_t)0x08) +#define RTC_Month_September ((uint8_t)0x09) +#define RTC_Month_October ((uint8_t)0x10) +#define RTC_Month_November ((uint8_t)0x11) +#define RTC_Month_December ((uint8_t)0x12) +#define IS_RTC_MONTH(MONTH) (((MONTH) >= 1) && ((MONTH) <= 12)) +#define IS_RTC_DATE(DATE) (((DATE) >= 1) && ((DATE) <= 31)) + +/** + * @} + */ + +/** @defgroup RTC_WeekDay_Definitions + * @{ + */ + +#define RTC_Weekday_Monday ((uint8_t)0x01) +#define RTC_Weekday_Tuesday ((uint8_t)0x02) +#define RTC_Weekday_Wednesday ((uint8_t)0x03) +#define RTC_Weekday_Thursday ((uint8_t)0x04) +#define RTC_Weekday_Friday ((uint8_t)0x05) +#define RTC_Weekday_Saturday ((uint8_t)0x06) +#define RTC_Weekday_Sunday ((uint8_t)0x07) +#define IS_RTC_WEEKDAY(WEEKDAY) (((WEEKDAY) == RTC_Weekday_Monday) || \ + ((WEEKDAY) == RTC_Weekday_Tuesday) || \ + ((WEEKDAY) == RTC_Weekday_Wednesday) || \ + ((WEEKDAY) == RTC_Weekday_Thursday) || \ + ((WEEKDAY) == RTC_Weekday_Friday) || \ + ((WEEKDAY) == RTC_Weekday_Saturday) || \ + ((WEEKDAY) == RTC_Weekday_Sunday)) +/** + * @} + */ + + +/** @defgroup RTC_Alarm_Definitions + * @{ + */ +#define IS_RTC_ALARM_DATE_WEEKDAY_DATE(DATE) (((DATE) > 0) && ((DATE) <= 31)) +#define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(WEEKDAY) (((WEEKDAY) == RTC_Weekday_Monday) || \ + ((WEEKDAY) == RTC_Weekday_Tuesday) || \ + ((WEEKDAY) == RTC_Weekday_Wednesday) || \ + ((WEEKDAY) == RTC_Weekday_Thursday) || \ + ((WEEKDAY) == RTC_Weekday_Friday) || \ + ((WEEKDAY) == RTC_Weekday_Saturday) || \ + ((WEEKDAY) == RTC_Weekday_Sunday)) + +/** + * @} + */ + + +/** @defgroup RTC_AlarmDateWeekDay_Definitions + * @{ + */ +#define RTC_AlarmDateWeekDaySel_Date ((uint32_t)0x00000000) +#define RTC_AlarmDateWeekDaySel_WeekDay ((uint32_t)0x40000000) + +#define IS_RTC_ALARM_DATE_WEEKDAY_SEL(SEL) (((SEL) == RTC_AlarmDateWeekDaySel_Date) || \ + ((SEL) == RTC_AlarmDateWeekDaySel_WeekDay)) + +/** + * @} + */ + + +/** @defgroup RTC_AlarmMask_Definitions + * @{ + */ +#define RTC_AlarmMask_None ((uint32_t)0x00000000) +#define RTC_AlarmMask_DateWeekDay ((uint32_t)0x80000000) +#define RTC_AlarmMask_Hours ((uint32_t)0x00800000) +#define RTC_AlarmMask_Minutes ((uint32_t)0x00008000) +#define RTC_AlarmMask_Seconds ((uint32_t)0x00000080) +#define RTC_AlarmMask_All ((uint32_t)0x80808080) +#define IS_ALARM_MASK(MASK) (((MASK) & 0x7F7F7F7F) == (uint32_t)RESET) + +/** + * @} + */ + +/** @defgroup RTC_Alarms_Definitions + * @{ + */ +#define RTC_Alarm_A ((uint32_t)0x00000100) +#define RTC_Alarm_B ((uint32_t)0x00000200) +#define IS_RTC_ALARM(ALARM) (((ALARM) == RTC_Alarm_A) || ((ALARM) == RTC_Alarm_B)) +#define IS_RTC_CMD_ALARM(ALARM) (((ALARM) & (RTC_Alarm_A | RTC_Alarm_B)) != (uint32_t)RESET) + +/** + * @} + */ + +/** @defgroup RTC_Wakeup_Timer_Definitions + * @{ + */ +#define RTC_WakeUpClock_RTCCLK_Div16 ((uint32_t)0x00000000) +#define RTC_WakeUpClock_RTCCLK_Div8 ((uint32_t)0x00000001) +#define RTC_WakeUpClock_RTCCLK_Div4 ((uint32_t)0x00000002) +#define RTC_WakeUpClock_RTCCLK_Div2 ((uint32_t)0x00000003) +#define RTC_WakeUpClock_CK_SPRE_16bits ((uint32_t)0x00000004) +#define RTC_WakeUpClock_CK_SPRE_17bits ((uint32_t)0x00000006) +#define IS_RTC_WAKEUP_CLOCK(CLOCK) (((CLOCK) == RTC_WakeUpClock_RTCCLK_Div16) || \ + ((CLOCK) == RTC_WakeUpClock_RTCCLK_Div8) || \ + ((CLOCK) == RTC_WakeUpClock_RTCCLK_Div4) || \ + ((CLOCK) == RTC_WakeUpClock_RTCCLK_Div2) || \ + ((CLOCK) == RTC_WakeUpClock_CK_SPRE_16bits) || \ + ((CLOCK) == RTC_WakeUpClock_CK_SPRE_17bits)) +#define IS_RTC_WAKEUP_COUNTER(COUNTER) ((COUNTER) <= 0xFFFF) +/** + * @} + */ + +/** @defgroup RTC_Time_Stamp_Edges_definitions + * @{ + */ +#define RTC_TimeStampEdge_Rising ((uint32_t)0x00000000) +#define RTC_TimeStampEdge_Falling ((uint32_t)0x00000008) +#define IS_RTC_TIMESTAMP_EDGE(EDGE) (((EDGE) == RTC_TimeStampEdge_Rising) || \ + ((EDGE) == RTC_TimeStampEdge_Falling)) +/** + * @} + */ + +/** @defgroup RTC_Output_selection_Definitions + * @{ + */ +#define RTC_Output_Disable ((uint32_t)0x00000000) +#define RTC_Output_AlarmA ((uint32_t)0x00200000) +#define RTC_Output_AlarmB ((uint32_t)0x00400000) +#define RTC_Output_WakeUp ((uint32_t)0x00600000) + +#define IS_RTC_OUTPUT(OUTPUT) (((OUTPUT) == RTC_Output_Disable) || \ + ((OUTPUT) == RTC_Output_AlarmA) || \ + ((OUTPUT) == RTC_Output_AlarmB) || \ + ((OUTPUT) == RTC_Output_WakeUp)) + +/** + * @} + */ + +/** @defgroup RTC_Output_Polarity_Definitions + * @{ + */ +#define RTC_OutputPolarity_High ((uint32_t)0x00000000) +#define RTC_OutputPolarity_Low ((uint32_t)0x00100000) +#define IS_RTC_OUTPUT_POL(POL) (((POL) == RTC_OutputPolarity_High) || \ + ((POL) == RTC_OutputPolarity_Low)) +/** + * @} + */ + + +/** @defgroup RTC_Digital_Calibration_Definitions + * @{ + */ +#define RTC_CalibSign_Positive ((uint32_t)0x00000000) +#define RTC_CalibSign_Negative ((uint32_t)0x00000080) +#define IS_RTC_CALIB_SIGN(SIGN) (((SIGN) == RTC_CalibSign_Positive) || \ + ((SIGN) == RTC_CalibSign_Negative)) +#define IS_RTC_CALIB_VALUE(VALUE) ((VALUE) < 0x20) + +/** + * @} + */ + + +/** @defgroup RTC_DayLightSaving_Definitions + * @{ + */ +#define RTC_DayLightSaving_SUB1H ((uint32_t)0x00020000) +#define RTC_DayLightSaving_ADD1H ((uint32_t)0x00010000) +#define IS_RTC_DAYLIGHT_SAVING(SAVE) (((SAVE) == RTC_DayLightSaving_SUB1H) || \ + ((SAVE) == RTC_DayLightSaving_ADD1H)) + +#define RTC_StoreOperation_Reset ((uint32_t)0x00000000) +#define RTC_StoreOperation_Set ((uint32_t)0x00040000) +#define IS_RTC_STORE_OPERATION(OPERATION) (((OPERATION) == RTC_StoreOperation_Reset) || \ + ((OPERATION) == RTC_StoreOperation_Set)) +/** + * @} + */ + +/** @defgroup RTC_Tamper_Trigger_Definitions + * @{ + */ +#define RTC_TamperTrigger_RisingEdge ((uint32_t)0x00000000) +#define RTC_TamperTrigger_FallingEdge ((uint32_t)0x00000001) +#define IS_RTC_TAMPER_TRIGGER(TRIGGER) (((TRIGGER) == RTC_TamperTrigger_RisingEdge) || \ + ((TRIGGER) == RTC_TamperTrigger_FallingEdge)) + +/** + * @} + */ + +/** @defgroup RTC_Tamper_Pins_Definitions + * @{ + */ +#define RTC_Tamper_1 RTC_TAFCR_TAMP1E +#define IS_RTC_TAMPER(TAMPER) (((TAMPER) == RTC_Tamper_1)) + +/** + * @} + */ + +/** @defgroup RTC_Tamper_Pin_Selection + * @{ + */ +#define RTC_TamperPin_PC13 ((uint32_t)0x00000000) +#define RTC_TamperPin_PI8 ((uint32_t)0x00010000) +#define IS_RTC_TAMPER_PIN(PIN) (((PIN) == RTC_TamperPin_PC13) || \ + ((PIN) == RTC_TamperPin_PI8)) +/** + * @} + */ + +/** @defgroup RTC_TimeStamp_Pin_Selection + * @{ + */ +#define RTC_TimeStampPin_PC13 ((uint32_t)0x00000000) +#define RTC_TimeStampPin_PI8 ((uint32_t)0x00020000) +#define IS_RTC_TIMESTAMP_PIN(PIN) (((PIN) == RTC_TimeStampPin_PC13) || \ + ((PIN) == RTC_TimeStampPin_PI8)) +/** + * @} + */ + +/** @defgroup RTC_Output_Type_ALARM_OUT + * @{ + */ +#define RTC_OutputType_OpenDrain ((uint32_t)0x00000000) +#define RTC_OutputType_PushPull ((uint32_t)0x00040000) +#define IS_RTC_OUTPUT_TYPE(TYPE) (((TYPE) == RTC_OutputType_OpenDrain) || \ + ((TYPE) == RTC_OutputType_PushPull)) + +/** + * @} + */ + +/** @defgroup RTC_Backup_Registers_Definitions + * @{ + */ + +#define RTC_BKP_DR0 ((uint32_t)0x00000000) +#define RTC_BKP_DR1 ((uint32_t)0x00000001) +#define RTC_BKP_DR2 ((uint32_t)0x00000002) +#define RTC_BKP_DR3 ((uint32_t)0x00000003) +#define RTC_BKP_DR4 ((uint32_t)0x00000004) +#define RTC_BKP_DR5 ((uint32_t)0x00000005) +#define RTC_BKP_DR6 ((uint32_t)0x00000006) +#define RTC_BKP_DR7 ((uint32_t)0x00000007) +#define RTC_BKP_DR8 ((uint32_t)0x00000008) +#define RTC_BKP_DR9 ((uint32_t)0x00000009) +#define RTC_BKP_DR10 ((uint32_t)0x0000000A) +#define RTC_BKP_DR11 ((uint32_t)0x0000000B) +#define RTC_BKP_DR12 ((uint32_t)0x0000000C) +#define RTC_BKP_DR13 ((uint32_t)0x0000000D) +#define RTC_BKP_DR14 ((uint32_t)0x0000000E) +#define RTC_BKP_DR15 ((uint32_t)0x0000000F) +#define RTC_BKP_DR16 ((uint32_t)0x00000010) +#define RTC_BKP_DR17 ((uint32_t)0x00000011) +#define RTC_BKP_DR18 ((uint32_t)0x00000012) +#define RTC_BKP_DR19 ((uint32_t)0x00000013) +#define IS_RTC_BKP(BKP) (((BKP) == RTC_BKP_DR0) || \ + ((BKP) == RTC_BKP_DR1) || \ + ((BKP) == RTC_BKP_DR2) || \ + ((BKP) == RTC_BKP_DR3) || \ + ((BKP) == RTC_BKP_DR4) || \ + ((BKP) == RTC_BKP_DR5) || \ + ((BKP) == RTC_BKP_DR6) || \ + ((BKP) == RTC_BKP_DR7) || \ + ((BKP) == RTC_BKP_DR8) || \ + ((BKP) == RTC_BKP_DR9) || \ + ((BKP) == RTC_BKP_DR10) || \ + ((BKP) == RTC_BKP_DR11) || \ + ((BKP) == RTC_BKP_DR12) || \ + ((BKP) == RTC_BKP_DR13) || \ + ((BKP) == RTC_BKP_DR14) || \ + ((BKP) == RTC_BKP_DR15) || \ + ((BKP) == RTC_BKP_DR16) || \ + ((BKP) == RTC_BKP_DR17) || \ + ((BKP) == RTC_BKP_DR18) || \ + ((BKP) == RTC_BKP_DR19)) +/** + * @} + */ + +/** @defgroup RTC_Input_parameter_format_definitions + * @{ + */ +#define RTC_Format_BIN ((uint32_t)0x000000000) +#define RTC_Format_BCD ((uint32_t)0x000000001) +#define IS_RTC_FORMAT(FORMAT) (((FORMAT) == RTC_Format_BIN) || ((FORMAT) == RTC_Format_BCD)) + +/** + * @} + */ + +/** @defgroup RTC_Flags_Definitions + * @{ + */ +#define RTC_FLAG_TAMP1F ((uint32_t)0x00002000) +#define RTC_FLAG_TSOVF ((uint32_t)0x00001000) +#define RTC_FLAG_TSF ((uint32_t)0x00000800) +#define RTC_FLAG_WUTF ((uint32_t)0x00000400) +#define RTC_FLAG_ALRBF ((uint32_t)0x00000200) +#define RTC_FLAG_ALRAF ((uint32_t)0x00000100) +#define RTC_FLAG_INITF ((uint32_t)0x00000040) +#define RTC_FLAG_RSF ((uint32_t)0x00000020) +#define RTC_FLAG_INITS ((uint32_t)0x00000010) +#define RTC_FLAG_WUTWF ((uint32_t)0x00000004) +#define RTC_FLAG_ALRBWF ((uint32_t)0x00000002) +#define RTC_FLAG_ALRAWF ((uint32_t)0x00000001) +#define IS_RTC_GET_FLAG(FLAG) (((FLAG) == RTC_FLAG_TSOVF) || ((FLAG) == RTC_FLAG_TSF) || \ + ((FLAG) == RTC_FLAG_WUTF) || ((FLAG) == RTC_FLAG_ALRBF) || \ + ((FLAG) == RTC_FLAG_ALRAF) || ((FLAG) == RTC_FLAG_INITF) || \ + ((FLAG) == RTC_FLAG_RSF) || ((FLAG) == RTC_FLAG_WUTWF) || \ + ((FLAG) == RTC_FLAG_ALRBWF) || ((FLAG) == RTC_FLAG_ALRAWF) || \ + ((FLAG) == RTC_FLAG_TAMP1F)) +#define IS_RTC_CLEAR_FLAG(FLAG) (((FLAG) != (uint32_t)RESET) && (((FLAG) & 0xFFFFC0DF) == (uint32_t)RESET)) + +/** + * @} + */ + +/** @defgroup RTC_Interrupts_Definitions + * @{ + */ +#define RTC_IT_TS ((uint32_t)0x00008000) +#define RTC_IT_WUT ((uint32_t)0x00004000) +#define RTC_IT_ALRB ((uint32_t)0x00002000) +#define RTC_IT_ALRA ((uint32_t)0x00001000) +#define RTC_IT_TAMP ((uint32_t)0x00000004) /* Used only to Enable the Tamper Interrupt */ +#define RTC_IT_TAMP1 ((uint32_t)0x00020000) + +#define IS_RTC_CONFIG_IT(IT) (((IT) != (uint32_t)RESET) && (((IT) & 0xFFFF0FFB) == (uint32_t)RESET)) +#define IS_RTC_GET_IT(IT) (((IT) == RTC_IT_TS) || ((IT) == RTC_IT_WUT) || \ + ((IT) == RTC_IT_ALRB) || ((IT) == RTC_IT_ALRA) || \ + ((IT) == RTC_IT_TAMP1)) +#define IS_RTC_CLEAR_IT(IT) (((IT) != (uint32_t)RESET) && (((IT) & 0xFFFD0FFF) == (uint32_t)RESET)) + +/** + * @} + */ + +/** @defgroup RTC_Legacy + * @{ + */ +#define RTC_DigitalCalibConfig RTC_CoarseCalibConfig +#define RTC_DigitalCalibCmd RTC_CoarseCalibCmd + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the RTC configuration to the default reset state *****/ +ErrorStatus RTC_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +ErrorStatus RTC_Init(RTC_InitTypeDef* RTC_InitStruct); +void RTC_StructInit(RTC_InitTypeDef* RTC_InitStruct); +void RTC_WriteProtectionCmd(FunctionalState NewState); +ErrorStatus RTC_EnterInitMode(void); +void RTC_ExitInitMode(void); +ErrorStatus RTC_WaitForSynchro(void); +ErrorStatus RTC_RefClockCmd(FunctionalState NewState); + +/* Time and Date configuration functions **************************************/ +ErrorStatus RTC_SetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct); +void RTC_TimeStructInit(RTC_TimeTypeDef* RTC_TimeStruct); +void RTC_GetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct); +ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct); +void RTC_DateStructInit(RTC_DateTypeDef* RTC_DateStruct); +void RTC_GetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct); + +/* Alarms (Alarm A and Alarm B) configuration functions **********************/ +void RTC_SetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct); +void RTC_AlarmStructInit(RTC_AlarmTypeDef* RTC_AlarmStruct); +void RTC_GetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct); +ErrorStatus RTC_AlarmCmd(uint32_t RTC_Alarm, FunctionalState NewState); + +/* WakeUp Timer configuration functions ***************************************/ +void RTC_WakeUpClockConfig(uint32_t RTC_WakeUpClock); +void RTC_SetWakeUpCounter(uint32_t RTC_WakeUpCounter); +uint32_t RTC_GetWakeUpCounter(void); +ErrorStatus RTC_WakeUpCmd(FunctionalState NewState); + +/* Daylight Saving configuration functions ************************************/ +void RTC_DayLightSavingConfig(uint32_t RTC_DayLightSaving, uint32_t RTC_StoreOperation); +uint32_t RTC_GetStoreOperation(void); + +/* Output pin Configuration function ******************************************/ +void RTC_OutputConfig(uint32_t RTC_Output, uint32_t RTC_OutputPolarity); + +/* Coarse Calibration configuration functions *********************************/ +ErrorStatus RTC_CoarseCalibConfig(uint32_t RTC_CalibSign, uint32_t Value); +ErrorStatus RTC_CoarseCalibCmd(FunctionalState NewState); +void RTC_CalibOutputCmd(FunctionalState NewState); + +/* TimeStamp configuration functions ******************************************/ +void RTC_TimeStampCmd(uint32_t RTC_TimeStampEdge, FunctionalState NewState); +void RTC_GetTimeStamp(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_StampTimeStruct, + RTC_DateTypeDef* RTC_StampDateStruct); + +/* Tampers configuration functions ********************************************/ +void RTC_TamperTriggerConfig(uint32_t RTC_Tamper, uint32_t RTC_TamperTrigger); +void RTC_TamperCmd(uint32_t RTC_Tamper, FunctionalState NewState); + +/* Backup Data Registers configuration functions ******************************/ +void RTC_WriteBackupRegister(uint32_t RTC_BKP_DR, uint32_t Data); +uint32_t RTC_ReadBackupRegister(uint32_t RTC_BKP_DR); + +/* RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration + functions ******************************************************************/ +void RTC_TamperPinSelection(uint32_t RTC_TamperPin); +void RTC_TimeStampPinSelection(uint32_t RTC_TimeStampPin); +void RTC_OutputTypeConfig(uint32_t RTC_OutputType); + +/* Interrupts and flags management functions **********************************/ +void RTC_ITConfig(uint32_t RTC_IT, FunctionalState NewState); +FlagStatus RTC_GetFlagStatus(uint32_t RTC_FLAG); +void RTC_ClearFlag(uint32_t RTC_FLAG); +ITStatus RTC_GetITStatus(uint32_t RTC_IT); +void RTC_ClearITPendingBit(uint32_t RTC_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_RTC_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_sdio.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_sdio.h new file mode 100644 index 00000000..16efdeeb --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_sdio.h @@ -0,0 +1,536 @@ +/** + ****************************************************************************** + * @file stm32f2xx_sdio.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the SDIO firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_SDIO_H +#define __STM32F2xx_SDIO_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup SDIO + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +typedef struct +{ + uint32_t SDIO_ClockEdge; /*!< Specifies the clock transition on which the bit capture is made. + This parameter can be a value of @ref SDIO_Clock_Edge */ + + uint32_t SDIO_ClockBypass; /*!< Specifies whether the SDIO Clock divider bypass is + enabled or disabled. + This parameter can be a value of @ref SDIO_Clock_Bypass */ + + uint32_t SDIO_ClockPowerSave; /*!< Specifies whether SDIO Clock output is enabled or + disabled when the bus is idle. + This parameter can be a value of @ref SDIO_Clock_Power_Save */ + + uint32_t SDIO_BusWide; /*!< Specifies the SDIO bus width. + This parameter can be a value of @ref SDIO_Bus_Wide */ + + uint32_t SDIO_HardwareFlowControl; /*!< Specifies whether the SDIO hardware flow control is enabled or disabled. + This parameter can be a value of @ref SDIO_Hardware_Flow_Control */ + + uint8_t SDIO_ClockDiv; /*!< Specifies the clock frequency of the SDIO controller. + This parameter can be a value between 0x00 and 0xFF. */ + +} SDIO_InitTypeDef; + +typedef struct +{ + uint32_t SDIO_Argument; /*!< Specifies the SDIO command argument which is sent + to a card as part of a command message. If a command + contains an argument, it must be loaded into this register + before writing the command to the command register */ + + uint32_t SDIO_CmdIndex; /*!< Specifies the SDIO command index. It must be lower than 0x40. */ + + uint32_t SDIO_Response; /*!< Specifies the SDIO response type. + This parameter can be a value of @ref SDIO_Response_Type */ + + uint32_t SDIO_Wait; /*!< Specifies whether SDIO wait-for-interrupt request is enabled or disabled. + This parameter can be a value of @ref SDIO_Wait_Interrupt_State */ + + uint32_t SDIO_CPSM; /*!< Specifies whether SDIO Command path state machine (CPSM) + is enabled or disabled. + This parameter can be a value of @ref SDIO_CPSM_State */ +} SDIO_CmdInitTypeDef; + +typedef struct +{ + uint32_t SDIO_DataTimeOut; /*!< Specifies the data timeout period in card bus clock periods. */ + + uint32_t SDIO_DataLength; /*!< Specifies the number of data bytes to be transferred. */ + + uint32_t SDIO_DataBlockSize; /*!< Specifies the data block size for block transfer. + This parameter can be a value of @ref SDIO_Data_Block_Size */ + + uint32_t SDIO_TransferDir; /*!< Specifies the data transfer direction, whether the transfer + is a read or write. + This parameter can be a value of @ref SDIO_Transfer_Direction */ + + uint32_t SDIO_TransferMode; /*!< Specifies whether data transfer is in stream or block mode. + This parameter can be a value of @ref SDIO_Transfer_Type */ + + uint32_t SDIO_DPSM; /*!< Specifies whether SDIO Data path state machine (DPSM) + is enabled or disabled. + This parameter can be a value of @ref SDIO_DPSM_State */ +} SDIO_DataInitTypeDef; + + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup SDIO_Exported_Constants + * @{ + */ + +/** @defgroup SDIO_Clock_Edge + * @{ + */ + +#define SDIO_ClockEdge_Rising ((uint32_t)0x00000000) +#define SDIO_ClockEdge_Falling ((uint32_t)0x00002000) +#define IS_SDIO_CLOCK_EDGE(EDGE) (((EDGE) == SDIO_ClockEdge_Rising) || \ + ((EDGE) == SDIO_ClockEdge_Falling)) +/** + * @} + */ + +/** @defgroup SDIO_Clock_Bypass + * @{ + */ + +#define SDIO_ClockBypass_Disable ((uint32_t)0x00000000) +#define SDIO_ClockBypass_Enable ((uint32_t)0x00000400) +#define IS_SDIO_CLOCK_BYPASS(BYPASS) (((BYPASS) == SDIO_ClockBypass_Disable) || \ + ((BYPASS) == SDIO_ClockBypass_Enable)) +/** + * @} + */ + +/** @defgroup SDIO_Clock_Power_Save + * @{ + */ + +#define SDIO_ClockPowerSave_Disable ((uint32_t)0x00000000) +#define SDIO_ClockPowerSave_Enable ((uint32_t)0x00000200) +#define IS_SDIO_CLOCK_POWER_SAVE(SAVE) (((SAVE) == SDIO_ClockPowerSave_Disable) || \ + ((SAVE) == SDIO_ClockPowerSave_Enable)) +/** + * @} + */ + +/** @defgroup SDIO_Bus_Wide + * @{ + */ + +#define SDIO_BusWide_1b ((uint32_t)0x00000000) +#define SDIO_BusWide_4b ((uint32_t)0x00000800) +#define SDIO_BusWide_8b ((uint32_t)0x00001000) +#define IS_SDIO_BUS_WIDE(WIDE) (((WIDE) == SDIO_BusWide_1b) || ((WIDE) == SDIO_BusWide_4b) || \ + ((WIDE) == SDIO_BusWide_8b)) + +/** + * @} + */ + +/** @defgroup SDIO_Hardware_Flow_Control + * @{ + */ + +#define SDIO_HardwareFlowControl_Disable ((uint32_t)0x00000000) +#define SDIO_HardwareFlowControl_Enable ((uint32_t)0x00004000) +#define IS_SDIO_HARDWARE_FLOW_CONTROL(CONTROL) (((CONTROL) == SDIO_HardwareFlowControl_Disable) || \ + ((CONTROL) == SDIO_HardwareFlowControl_Enable)) +/** + * @} + */ + +/** @defgroup SDIO_Power_State + * @{ + */ + +#define SDIO_PowerState_OFF ((uint32_t)0x00000000) +#define SDIO_PowerState_ON ((uint32_t)0x00000003) +#define IS_SDIO_POWER_STATE(STATE) (((STATE) == SDIO_PowerState_OFF) || ((STATE) == SDIO_PowerState_ON)) +/** + * @} + */ + + +/** @defgroup SDIO_Interrupt_sources + * @{ + */ + +#define SDIO_IT_CCRCFAIL ((uint32_t)0x00000001) +#define SDIO_IT_DCRCFAIL ((uint32_t)0x00000002) +#define SDIO_IT_CTIMEOUT ((uint32_t)0x00000004) +#define SDIO_IT_DTIMEOUT ((uint32_t)0x00000008) +#define SDIO_IT_TXUNDERR ((uint32_t)0x00000010) +#define SDIO_IT_RXOVERR ((uint32_t)0x00000020) +#define SDIO_IT_CMDREND ((uint32_t)0x00000040) +#define SDIO_IT_CMDSENT ((uint32_t)0x00000080) +#define SDIO_IT_DATAEND ((uint32_t)0x00000100) +#define SDIO_IT_STBITERR ((uint32_t)0x00000200) +#define SDIO_IT_DBCKEND ((uint32_t)0x00000400) +#define SDIO_IT_CMDACT ((uint32_t)0x00000800) +#define SDIO_IT_TXACT ((uint32_t)0x00001000) +#define SDIO_IT_RXACT ((uint32_t)0x00002000) +#define SDIO_IT_TXFIFOHE ((uint32_t)0x00004000) +#define SDIO_IT_RXFIFOHF ((uint32_t)0x00008000) +#define SDIO_IT_TXFIFOF ((uint32_t)0x00010000) +#define SDIO_IT_RXFIFOF ((uint32_t)0x00020000) +#define SDIO_IT_TXFIFOE ((uint32_t)0x00040000) +#define SDIO_IT_RXFIFOE ((uint32_t)0x00080000) +#define SDIO_IT_TXDAVL ((uint32_t)0x00100000) +#define SDIO_IT_RXDAVL ((uint32_t)0x00200000) +#define SDIO_IT_SDIOIT ((uint32_t)0x00400000) +#define SDIO_IT_CEATAEND ((uint32_t)0x00800000) +#define IS_SDIO_IT(IT) ((((IT) & (uint32_t)0xFF000000) == 0x00) && ((IT) != (uint32_t)0x00)) +/** + * @} + */ + +/** @defgroup SDIO_Command_Index + * @{ + */ + +#define IS_SDIO_CMD_INDEX(INDEX) ((INDEX) < 0x40) +/** + * @} + */ + +/** @defgroup SDIO_Response_Type + * @{ + */ + +#define SDIO_Response_No ((uint32_t)0x00000000) +#define SDIO_Response_Short ((uint32_t)0x00000040) +#define SDIO_Response_Long ((uint32_t)0x000000C0) +#define IS_SDIO_RESPONSE(RESPONSE) (((RESPONSE) == SDIO_Response_No) || \ + ((RESPONSE) == SDIO_Response_Short) || \ + ((RESPONSE) == SDIO_Response_Long)) +/** + * @} + */ + +/** @defgroup SDIO_Wait_Interrupt_State + * @{ + */ + +#define SDIO_Wait_No ((uint32_t)0x00000000) /*!< SDIO No Wait, TimeOut is enabled */ +#define SDIO_Wait_IT ((uint32_t)0x00000100) /*!< SDIO Wait Interrupt Request */ +#define SDIO_Wait_Pend ((uint32_t)0x00000200) /*!< SDIO Wait End of transfer */ +#define IS_SDIO_WAIT(WAIT) (((WAIT) == SDIO_Wait_No) || ((WAIT) == SDIO_Wait_IT) || \ + ((WAIT) == SDIO_Wait_Pend)) +/** + * @} + */ + +/** @defgroup SDIO_CPSM_State + * @{ + */ + +#define SDIO_CPSM_Disable ((uint32_t)0x00000000) +#define SDIO_CPSM_Enable ((uint32_t)0x00000400) +#define IS_SDIO_CPSM(CPSM) (((CPSM) == SDIO_CPSM_Enable) || ((CPSM) == SDIO_CPSM_Disable)) +/** + * @} + */ + +/** @defgroup SDIO_Response_Registers + * @{ + */ + +#define SDIO_RESP1 ((uint32_t)0x00000000) +#define SDIO_RESP2 ((uint32_t)0x00000004) +#define SDIO_RESP3 ((uint32_t)0x00000008) +#define SDIO_RESP4 ((uint32_t)0x0000000C) +#define IS_SDIO_RESP(RESP) (((RESP) == SDIO_RESP1) || ((RESP) == SDIO_RESP2) || \ + ((RESP) == SDIO_RESP3) || ((RESP) == SDIO_RESP4)) +/** + * @} + */ + +/** @defgroup SDIO_Data_Length + * @{ + */ + +#define IS_SDIO_DATA_LENGTH(LENGTH) ((LENGTH) <= 0x01FFFFFF) +/** + * @} + */ + +/** @defgroup SDIO_Data_Block_Size + * @{ + */ + +#define SDIO_DataBlockSize_1b ((uint32_t)0x00000000) +#define SDIO_DataBlockSize_2b ((uint32_t)0x00000010) +#define SDIO_DataBlockSize_4b ((uint32_t)0x00000020) +#define SDIO_DataBlockSize_8b ((uint32_t)0x00000030) +#define SDIO_DataBlockSize_16b ((uint32_t)0x00000040) +#define SDIO_DataBlockSize_32b ((uint32_t)0x00000050) +#define SDIO_DataBlockSize_64b ((uint32_t)0x00000060) +#define SDIO_DataBlockSize_128b ((uint32_t)0x00000070) +#define SDIO_DataBlockSize_256b ((uint32_t)0x00000080) +#define SDIO_DataBlockSize_512b ((uint32_t)0x00000090) +#define SDIO_DataBlockSize_1024b ((uint32_t)0x000000A0) +#define SDIO_DataBlockSize_2048b ((uint32_t)0x000000B0) +#define SDIO_DataBlockSize_4096b ((uint32_t)0x000000C0) +#define SDIO_DataBlockSize_8192b ((uint32_t)0x000000D0) +#define SDIO_DataBlockSize_16384b ((uint32_t)0x000000E0) +#define IS_SDIO_BLOCK_SIZE(SIZE) (((SIZE) == SDIO_DataBlockSize_1b) || \ + ((SIZE) == SDIO_DataBlockSize_2b) || \ + ((SIZE) == SDIO_DataBlockSize_4b) || \ + ((SIZE) == SDIO_DataBlockSize_8b) || \ + ((SIZE) == SDIO_DataBlockSize_16b) || \ + ((SIZE) == SDIO_DataBlockSize_32b) || \ + ((SIZE) == SDIO_DataBlockSize_64b) || \ + ((SIZE) == SDIO_DataBlockSize_128b) || \ + ((SIZE) == SDIO_DataBlockSize_256b) || \ + ((SIZE) == SDIO_DataBlockSize_512b) || \ + ((SIZE) == SDIO_DataBlockSize_1024b) || \ + ((SIZE) == SDIO_DataBlockSize_2048b) || \ + ((SIZE) == SDIO_DataBlockSize_4096b) || \ + ((SIZE) == SDIO_DataBlockSize_8192b) || \ + ((SIZE) == SDIO_DataBlockSize_16384b)) +/** + * @} + */ + +/** @defgroup SDIO_Transfer_Direction + * @{ + */ + +#define SDIO_TransferDir_ToCard ((uint32_t)0x00000000) +#define SDIO_TransferDir_ToSDIO ((uint32_t)0x00000002) +#define IS_SDIO_TRANSFER_DIR(DIR) (((DIR) == SDIO_TransferDir_ToCard) || \ + ((DIR) == SDIO_TransferDir_ToSDIO)) +/** + * @} + */ + +/** @defgroup SDIO_Transfer_Type + * @{ + */ + +#define SDIO_TransferMode_Block ((uint32_t)0x00000000) +#define SDIO_TransferMode_Stream ((uint32_t)0x00000004) +#define IS_SDIO_TRANSFER_MODE(MODE) (((MODE) == SDIO_TransferMode_Stream) || \ + ((MODE) == SDIO_TransferMode_Block)) +/** + * @} + */ + +/** @defgroup SDIO_DPSM_State + * @{ + */ + +#define SDIO_DPSM_Disable ((uint32_t)0x00000000) +#define SDIO_DPSM_Enable ((uint32_t)0x00000001) +#define IS_SDIO_DPSM(DPSM) (((DPSM) == SDIO_DPSM_Enable) || ((DPSM) == SDIO_DPSM_Disable)) +/** + * @} + */ + +/** @defgroup SDIO_Flags + * @{ + */ + +#define SDIO_FLAG_CCRCFAIL ((uint32_t)0x00000001) +#define SDIO_FLAG_DCRCFAIL ((uint32_t)0x00000002) +#define SDIO_FLAG_CTIMEOUT ((uint32_t)0x00000004) +#define SDIO_FLAG_DTIMEOUT ((uint32_t)0x00000008) +#define SDIO_FLAG_TXUNDERR ((uint32_t)0x00000010) +#define SDIO_FLAG_RXOVERR ((uint32_t)0x00000020) +#define SDIO_FLAG_CMDREND ((uint32_t)0x00000040) +#define SDIO_FLAG_CMDSENT ((uint32_t)0x00000080) +#define SDIO_FLAG_DATAEND ((uint32_t)0x00000100) +#define SDIO_FLAG_STBITERR ((uint32_t)0x00000200) +#define SDIO_FLAG_DBCKEND ((uint32_t)0x00000400) +#define SDIO_FLAG_CMDACT ((uint32_t)0x00000800) +#define SDIO_FLAG_TXACT ((uint32_t)0x00001000) +#define SDIO_FLAG_RXACT ((uint32_t)0x00002000) +#define SDIO_FLAG_TXFIFOHE ((uint32_t)0x00004000) +#define SDIO_FLAG_RXFIFOHF ((uint32_t)0x00008000) +#define SDIO_FLAG_TXFIFOF ((uint32_t)0x00010000) +#define SDIO_FLAG_RXFIFOF ((uint32_t)0x00020000) +#define SDIO_FLAG_TXFIFOE ((uint32_t)0x00040000) +#define SDIO_FLAG_RXFIFOE ((uint32_t)0x00080000) +#define SDIO_FLAG_TXDAVL ((uint32_t)0x00100000) +#define SDIO_FLAG_RXDAVL ((uint32_t)0x00200000) +#define SDIO_FLAG_SDIOIT ((uint32_t)0x00400000) +#define SDIO_FLAG_CEATAEND ((uint32_t)0x00800000) +#define IS_SDIO_FLAG(FLAG) (((FLAG) == SDIO_FLAG_CCRCFAIL) || \ + ((FLAG) == SDIO_FLAG_DCRCFAIL) || \ + ((FLAG) == SDIO_FLAG_CTIMEOUT) || \ + ((FLAG) == SDIO_FLAG_DTIMEOUT) || \ + ((FLAG) == SDIO_FLAG_TXUNDERR) || \ + ((FLAG) == SDIO_FLAG_RXOVERR) || \ + ((FLAG) == SDIO_FLAG_CMDREND) || \ + ((FLAG) == SDIO_FLAG_CMDSENT) || \ + ((FLAG) == SDIO_FLAG_DATAEND) || \ + ((FLAG) == SDIO_FLAG_STBITERR) || \ + ((FLAG) == SDIO_FLAG_DBCKEND) || \ + ((FLAG) == SDIO_FLAG_CMDACT) || \ + ((FLAG) == SDIO_FLAG_TXACT) || \ + ((FLAG) == SDIO_FLAG_RXACT) || \ + ((FLAG) == SDIO_FLAG_TXFIFOHE) || \ + ((FLAG) == SDIO_FLAG_RXFIFOHF) || \ + ((FLAG) == SDIO_FLAG_TXFIFOF) || \ + ((FLAG) == SDIO_FLAG_RXFIFOF) || \ + ((FLAG) == SDIO_FLAG_TXFIFOE) || \ + ((FLAG) == SDIO_FLAG_RXFIFOE) || \ + ((FLAG) == SDIO_FLAG_TXDAVL) || \ + ((FLAG) == SDIO_FLAG_RXDAVL) || \ + ((FLAG) == SDIO_FLAG_SDIOIT) || \ + ((FLAG) == SDIO_FLAG_CEATAEND)) + +#define IS_SDIO_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFF3FF800) == 0x00) && ((FLAG) != (uint32_t)0x00)) + +#define IS_SDIO_GET_IT(IT) (((IT) == SDIO_IT_CCRCFAIL) || \ + ((IT) == SDIO_IT_DCRCFAIL) || \ + ((IT) == SDIO_IT_CTIMEOUT) || \ + ((IT) == SDIO_IT_DTIMEOUT) || \ + ((IT) == SDIO_IT_TXUNDERR) || \ + ((IT) == SDIO_IT_RXOVERR) || \ + ((IT) == SDIO_IT_CMDREND) || \ + ((IT) == SDIO_IT_CMDSENT) || \ + ((IT) == SDIO_IT_DATAEND) || \ + ((IT) == SDIO_IT_STBITERR) || \ + ((IT) == SDIO_IT_DBCKEND) || \ + ((IT) == SDIO_IT_CMDACT) || \ + ((IT) == SDIO_IT_TXACT) || \ + ((IT) == SDIO_IT_RXACT) || \ + ((IT) == SDIO_IT_TXFIFOHE) || \ + ((IT) == SDIO_IT_RXFIFOHF) || \ + ((IT) == SDIO_IT_TXFIFOF) || \ + ((IT) == SDIO_IT_RXFIFOF) || \ + ((IT) == SDIO_IT_TXFIFOE) || \ + ((IT) == SDIO_IT_RXFIFOE) || \ + ((IT) == SDIO_IT_TXDAVL) || \ + ((IT) == SDIO_IT_RXDAVL) || \ + ((IT) == SDIO_IT_SDIOIT) || \ + ((IT) == SDIO_IT_CEATAEND)) + +#define IS_SDIO_CLEAR_IT(IT) ((((IT) & (uint32_t)0xFF3FF800) == 0x00) && ((IT) != (uint32_t)0x00)) + +/** + * @} + */ + +/** @defgroup SDIO_Read_Wait_Mode + * @{ + */ + +#define SDIO_ReadWaitMode_CLK ((uint32_t)0x00000000) +#define SDIO_ReadWaitMode_DATA2 ((uint32_t)0x00000001) +#define IS_SDIO_READWAIT_MODE(MODE) (((MODE) == SDIO_ReadWaitMode_CLK) || \ + ((MODE) == SDIO_ReadWaitMode_DATA2)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ +/* Function used to set the SDIO configuration to the default reset state ****/ +void SDIO_DeInit(void); + +/* Initialization and Configuration functions *********************************/ +void SDIO_Init(SDIO_InitTypeDef* SDIO_InitStruct); +void SDIO_StructInit(SDIO_InitTypeDef* SDIO_InitStruct); +void SDIO_ClockCmd(FunctionalState NewState); +void SDIO_SetPowerState(uint32_t SDIO_PowerState); +uint32_t SDIO_GetPowerState(void); + +/* Command path state machine (CPSM) management functions *********************/ +void SDIO_SendCommand(SDIO_CmdInitTypeDef *SDIO_CmdInitStruct); +void SDIO_CmdStructInit(SDIO_CmdInitTypeDef* SDIO_CmdInitStruct); +uint8_t SDIO_GetCommandResponse(void); +uint32_t SDIO_GetResponse(uint32_t SDIO_RESP); + +/* Data path state machine (DPSM) management functions ************************/ +void SDIO_DataConfig(SDIO_DataInitTypeDef* SDIO_DataInitStruct); +void SDIO_DataStructInit(SDIO_DataInitTypeDef* SDIO_DataInitStruct); +uint32_t SDIO_GetDataCounter(void); +uint32_t SDIO_ReadData(void); +void SDIO_WriteData(uint32_t Data); +uint32_t SDIO_GetFIFOCount(void); + +/* SDIO IO Cards mode management functions ************************************/ +void SDIO_StartSDIOReadWait(FunctionalState NewState); +void SDIO_StopSDIOReadWait(FunctionalState NewState); +void SDIO_SetSDIOReadWaitMode(uint32_t SDIO_ReadWaitMode); +void SDIO_SetSDIOOperation(FunctionalState NewState); +void SDIO_SendSDIOSuspendCmd(FunctionalState NewState); + +/* CE-ATA mode management functions *******************************************/ +void SDIO_CommandCompletionCmd(FunctionalState NewState); +void SDIO_CEATAITCmd(FunctionalState NewState); +void SDIO_SendCEATACmd(FunctionalState NewState); + +/* DMA transfers management functions *****************************************/ +void SDIO_DMACmd(FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void SDIO_ITConfig(uint32_t SDIO_IT, FunctionalState NewState); +FlagStatus SDIO_GetFlagStatus(uint32_t SDIO_FLAG); +void SDIO_ClearFlag(uint32_t SDIO_FLAG); +ITStatus SDIO_GetITStatus(uint32_t SDIO_IT); +void SDIO_ClearITPendingBit(uint32_t SDIO_IT); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_SDIO_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_spi.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_spi.h new file mode 100644 index 00000000..594dfd63 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_spi.h @@ -0,0 +1,526 @@ +/** + ****************************************************************************** + * @file stm32f2xx_spi.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the SPI + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_SPI_H +#define __STM32F2xx_SPI_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup SPI + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief SPI Init structure definition + */ + +typedef struct +{ + uint16_t SPI_Direction; /*!< Specifies the SPI unidirectional or bidirectional data mode. + This parameter can be a value of @ref SPI_data_direction */ + + uint16_t SPI_Mode; /*!< Specifies the SPI operating mode. + This parameter can be a value of @ref SPI_mode */ + + uint16_t SPI_DataSize; /*!< Specifies the SPI data size. + This parameter can be a value of @ref SPI_data_size */ + + uint16_t SPI_CPOL; /*!< Specifies the serial clock steady state. + This parameter can be a value of @ref SPI_Clock_Polarity */ + + uint16_t SPI_CPHA; /*!< Specifies the clock active edge for the bit capture. + This parameter can be a value of @ref SPI_Clock_Phase */ + + uint16_t SPI_NSS; /*!< Specifies whether the NSS signal is managed by + hardware (NSS pin) or by software using the SSI bit. + This parameter can be a value of @ref SPI_Slave_Select_management */ + + uint16_t SPI_BaudRatePrescaler; /*!< Specifies the Baud Rate prescaler value which will be + used to configure the transmit and receive SCK clock. + This parameter can be a value of @ref SPI_BaudRate_Prescaler + @note The communication clock is derived from the master + clock. The slave clock does not need to be set. */ + + uint16_t SPI_FirstBit; /*!< Specifies whether data transfers start from MSB or LSB bit. + This parameter can be a value of @ref SPI_MSB_LSB_transmission */ + + uint16_t SPI_CRCPolynomial; /*!< Specifies the polynomial used for the CRC calculation. */ +}SPI_InitTypeDef; + +/** + * @brief I2S Init structure definition + */ + +typedef struct +{ + + uint16_t I2S_Mode; /*!< Specifies the I2S operating mode. + This parameter can be a value of @ref I2S_Mode */ + + uint16_t I2S_Standard; /*!< Specifies the standard used for the I2S communication. + This parameter can be a value of @ref I2S_Standard */ + + uint16_t I2S_DataFormat; /*!< Specifies the data format for the I2S communication. + This parameter can be a value of @ref I2S_Data_Format */ + + uint16_t I2S_MCLKOutput; /*!< Specifies whether the I2S MCLK output is enabled or not. + This parameter can be a value of @ref I2S_MCLK_Output */ + + uint32_t I2S_AudioFreq; /*!< Specifies the frequency selected for the I2S communication. + This parameter can be a value of @ref I2S_Audio_Frequency */ + + uint16_t I2S_CPOL; /*!< Specifies the idle state of the I2S clock. + This parameter can be a value of @ref I2S_Clock_Polarity */ +}I2S_InitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup SPI_Exported_Constants + * @{ + */ + +#define IS_SPI_ALL_PERIPH(PERIPH) (((PERIPH) == SPI1) || \ + ((PERIPH) == SPI2) || \ + ((PERIPH) == SPI3)) + +#define IS_SPI_23_PERIPH(PERIPH) (((PERIPH) == SPI2) || \ + ((PERIPH) == SPI3)) + +/** @defgroup SPI_data_direction + * @{ + */ + +#define SPI_Direction_2Lines_FullDuplex ((uint16_t)0x0000) +#define SPI_Direction_2Lines_RxOnly ((uint16_t)0x0400) +#define SPI_Direction_1Line_Rx ((uint16_t)0x8000) +#define SPI_Direction_1Line_Tx ((uint16_t)0xC000) +#define IS_SPI_DIRECTION_MODE(MODE) (((MODE) == SPI_Direction_2Lines_FullDuplex) || \ + ((MODE) == SPI_Direction_2Lines_RxOnly) || \ + ((MODE) == SPI_Direction_1Line_Rx) || \ + ((MODE) == SPI_Direction_1Line_Tx)) +/** + * @} + */ + +/** @defgroup SPI_mode + * @{ + */ + +#define SPI_Mode_Master ((uint16_t)0x0104) +#define SPI_Mode_Slave ((uint16_t)0x0000) +#define IS_SPI_MODE(MODE) (((MODE) == SPI_Mode_Master) || \ + ((MODE) == SPI_Mode_Slave)) +/** + * @} + */ + +/** @defgroup SPI_data_size + * @{ + */ + +#define SPI_DataSize_16b ((uint16_t)0x0800) +#define SPI_DataSize_8b ((uint16_t)0x0000) +#define IS_SPI_DATASIZE(DATASIZE) (((DATASIZE) == SPI_DataSize_16b) || \ + ((DATASIZE) == SPI_DataSize_8b)) +/** + * @} + */ + +/** @defgroup SPI_Clock_Polarity + * @{ + */ + +#define SPI_CPOL_Low ((uint16_t)0x0000) +#define SPI_CPOL_High ((uint16_t)0x0002) +#define IS_SPI_CPOL(CPOL) (((CPOL) == SPI_CPOL_Low) || \ + ((CPOL) == SPI_CPOL_High)) +/** + * @} + */ + +/** @defgroup SPI_Clock_Phase + * @{ + */ + +#define SPI_CPHA_1Edge ((uint16_t)0x0000) +#define SPI_CPHA_2Edge ((uint16_t)0x0001) +#define IS_SPI_CPHA(CPHA) (((CPHA) == SPI_CPHA_1Edge) || \ + ((CPHA) == SPI_CPHA_2Edge)) +/** + * @} + */ + +/** @defgroup SPI_Slave_Select_management + * @{ + */ + +#define SPI_NSS_Soft ((uint16_t)0x0200) +#define SPI_NSS_Hard ((uint16_t)0x0000) +#define IS_SPI_NSS(NSS) (((NSS) == SPI_NSS_Soft) || \ + ((NSS) == SPI_NSS_Hard)) +/** + * @} + */ + +/** @defgroup SPI_BaudRate_Prescaler + * @{ + */ + +#define SPI_BaudRatePrescaler_2 ((uint16_t)0x0000) +#define SPI_BaudRatePrescaler_4 ((uint16_t)0x0008) +#define SPI_BaudRatePrescaler_8 ((uint16_t)0x0010) +#define SPI_BaudRatePrescaler_16 ((uint16_t)0x0018) +#define SPI_BaudRatePrescaler_32 ((uint16_t)0x0020) +#define SPI_BaudRatePrescaler_64 ((uint16_t)0x0028) +#define SPI_BaudRatePrescaler_128 ((uint16_t)0x0030) +#define SPI_BaudRatePrescaler_256 ((uint16_t)0x0038) +#define IS_SPI_BAUDRATE_PRESCALER(PRESCALER) (((PRESCALER) == SPI_BaudRatePrescaler_2) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_4) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_8) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_16) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_32) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_64) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_128) || \ + ((PRESCALER) == SPI_BaudRatePrescaler_256)) +/** + * @} + */ + +/** @defgroup SPI_MSB_LSB_transmission + * @{ + */ + +#define SPI_FirstBit_MSB ((uint16_t)0x0000) +#define SPI_FirstBit_LSB ((uint16_t)0x0080) +#define IS_SPI_FIRST_BIT(BIT) (((BIT) == SPI_FirstBit_MSB) || \ + ((BIT) == SPI_FirstBit_LSB)) +/** + * @} + */ + +/** @defgroup SPI_I2S_Mode + * @{ + */ + +#define I2S_Mode_SlaveTx ((uint16_t)0x0000) +#define I2S_Mode_SlaveRx ((uint16_t)0x0100) +#define I2S_Mode_MasterTx ((uint16_t)0x0200) +#define I2S_Mode_MasterRx ((uint16_t)0x0300) +#define IS_I2S_MODE(MODE) (((MODE) == I2S_Mode_SlaveTx) || \ + ((MODE) == I2S_Mode_SlaveRx) || \ + ((MODE) == I2S_Mode_MasterTx)|| \ + ((MODE) == I2S_Mode_MasterRx)) +/** + * @} + */ + + +/** @defgroup SPI_I2S_Standard + * @{ + */ + +#define I2S_Standard_Phillips ((uint16_t)0x0000) +#define I2S_Standard_MSB ((uint16_t)0x0010) +#define I2S_Standard_LSB ((uint16_t)0x0020) +#define I2S_Standard_PCMShort ((uint16_t)0x0030) +#define I2S_Standard_PCMLong ((uint16_t)0x00B0) +#define IS_I2S_STANDARD(STANDARD) (((STANDARD) == I2S_Standard_Phillips) || \ + ((STANDARD) == I2S_Standard_MSB) || \ + ((STANDARD) == I2S_Standard_LSB) || \ + ((STANDARD) == I2S_Standard_PCMShort) || \ + ((STANDARD) == I2S_Standard_PCMLong)) +/** + * @} + */ + +/** @defgroup SPI_I2S_Data_Format + * @{ + */ + +#define I2S_DataFormat_16b ((uint16_t)0x0000) +#define I2S_DataFormat_16bextended ((uint16_t)0x0001) +#define I2S_DataFormat_24b ((uint16_t)0x0003) +#define I2S_DataFormat_32b ((uint16_t)0x0005) +#define IS_I2S_DATA_FORMAT(FORMAT) (((FORMAT) == I2S_DataFormat_16b) || \ + ((FORMAT) == I2S_DataFormat_16bextended) || \ + ((FORMAT) == I2S_DataFormat_24b) || \ + ((FORMAT) == I2S_DataFormat_32b)) +/** + * @} + */ + +/** @defgroup SPI_I2S_MCLK_Output + * @{ + */ + +#define I2S_MCLKOutput_Enable ((uint16_t)0x0200) +#define I2S_MCLKOutput_Disable ((uint16_t)0x0000) +#define IS_I2S_MCLK_OUTPUT(OUTPUT) (((OUTPUT) == I2S_MCLKOutput_Enable) || \ + ((OUTPUT) == I2S_MCLKOutput_Disable)) +/** + * @} + */ + +/** @defgroup SPI_I2S_Audio_Frequency + * @{ + */ + +#define I2S_AudioFreq_192k ((uint32_t)192000) +#define I2S_AudioFreq_96k ((uint32_t)96000) +#define I2S_AudioFreq_48k ((uint32_t)48000) +#define I2S_AudioFreq_44k ((uint32_t)44100) +#define I2S_AudioFreq_32k ((uint32_t)32000) +#define I2S_AudioFreq_22k ((uint32_t)22050) +#define I2S_AudioFreq_16k ((uint32_t)16000) +#define I2S_AudioFreq_11k ((uint32_t)11025) +#define I2S_AudioFreq_8k ((uint32_t)8000) +#define I2S_AudioFreq_Default ((uint32_t)2) + +#define IS_I2S_AUDIO_FREQ(FREQ) ((((FREQ) >= I2S_AudioFreq_8k) && \ + ((FREQ) <= I2S_AudioFreq_192k)) || \ + ((FREQ) == I2S_AudioFreq_Default)) +/** + * @} + */ + +/** @defgroup SPI_I2S_Clock_Polarity + * @{ + */ + +#define I2S_CPOL_Low ((uint16_t)0x0000) +#define I2S_CPOL_High ((uint16_t)0x0008) +#define IS_I2S_CPOL(CPOL) (((CPOL) == I2S_CPOL_Low) || \ + ((CPOL) == I2S_CPOL_High)) +/** + * @} + */ + +/** @defgroup SPI_I2S_DMA_transfer_requests + * @{ + */ + +#define SPI_I2S_DMAReq_Tx ((uint16_t)0x0002) +#define SPI_I2S_DMAReq_Rx ((uint16_t)0x0001) +#define IS_SPI_I2S_DMAREQ(DMAREQ) ((((DMAREQ) & (uint16_t)0xFFFC) == 0x00) && ((DMAREQ) != 0x00)) +/** + * @} + */ + +/** @defgroup SPI_NSS_internal_software_management + * @{ + */ + +#define SPI_NSSInternalSoft_Set ((uint16_t)0x0100) +#define SPI_NSSInternalSoft_Reset ((uint16_t)0xFEFF) +#define IS_SPI_NSS_INTERNAL(INTERNAL) (((INTERNAL) == SPI_NSSInternalSoft_Set) || \ + ((INTERNAL) == SPI_NSSInternalSoft_Reset)) +/** + * @} + */ + +/** @defgroup SPI_CRC_Transmit_Receive + * @{ + */ + +#define SPI_CRC_Tx ((uint8_t)0x00) +#define SPI_CRC_Rx ((uint8_t)0x01) +#define IS_SPI_CRC(CRC) (((CRC) == SPI_CRC_Tx) || ((CRC) == SPI_CRC_Rx)) +/** + * @} + */ + +/** @defgroup SPI_direction_transmit_receive + * @{ + */ + +#define SPI_Direction_Rx ((uint16_t)0xBFFF) +#define SPI_Direction_Tx ((uint16_t)0x4000) +#define IS_SPI_DIRECTION(DIRECTION) (((DIRECTION) == SPI_Direction_Rx) || \ + ((DIRECTION) == SPI_Direction_Tx)) +/** + * @} + */ + +/** @defgroup SPI_I2S_interrupts_definition + * @{ + */ + +#define SPI_I2S_IT_TXE ((uint8_t)0x71) +#define SPI_I2S_IT_RXNE ((uint8_t)0x60) +#define SPI_I2S_IT_ERR ((uint8_t)0x50) +#define I2S_IT_UDR ((uint8_t)0x53) +#define SPI_I2S_IT_TIFRFE ((uint8_t)0x58) + +#define IS_SPI_I2S_CONFIG_IT(IT) (((IT) == SPI_I2S_IT_TXE) || \ + ((IT) == SPI_I2S_IT_RXNE) || \ + ((IT) == SPI_I2S_IT_ERR)) + +#define SPI_I2S_IT_OVR ((uint8_t)0x56) +#define SPI_IT_MODF ((uint8_t)0x55) +#define SPI_IT_CRCERR ((uint8_t)0x54) + +#define IS_SPI_I2S_CLEAR_IT(IT) (((IT) == SPI_IT_CRCERR)) + +#define IS_SPI_I2S_GET_IT(IT) (((IT) == SPI_I2S_IT_RXNE)|| ((IT) == SPI_I2S_IT_TXE) || \ + ((IT) == SPI_IT_CRCERR) || ((IT) == SPI_IT_MODF) || \ + ((IT) == SPI_I2S_IT_OVR) || ((IT) == I2S_IT_UDR) ||\ + ((IT) == SPI_I2S_IT_TIFRFE)) +/** + * @} + */ + +/** @defgroup SPI_I2S_flags_definition + * @{ + */ + +#define SPI_I2S_FLAG_RXNE ((uint16_t)0x0001) +#define SPI_I2S_FLAG_TXE ((uint16_t)0x0002) +#define I2S_FLAG_CHSIDE ((uint16_t)0x0004) +#define I2S_FLAG_UDR ((uint16_t)0x0008) +#define SPI_FLAG_CRCERR ((uint16_t)0x0010) +#define SPI_FLAG_MODF ((uint16_t)0x0020) +#define SPI_I2S_FLAG_OVR ((uint16_t)0x0040) +#define SPI_I2S_FLAG_BSY ((uint16_t)0x0080) +#define SPI_I2S_FLAG_TIFRFE ((uint16_t)0x0100) + +#define IS_SPI_I2S_CLEAR_FLAG(FLAG) (((FLAG) == SPI_FLAG_CRCERR)) +#define IS_SPI_I2S_GET_FLAG(FLAG) (((FLAG) == SPI_I2S_FLAG_BSY) || ((FLAG) == SPI_I2S_FLAG_OVR) || \ + ((FLAG) == SPI_FLAG_MODF) || ((FLAG) == SPI_FLAG_CRCERR) || \ + ((FLAG) == I2S_FLAG_UDR) || ((FLAG) == I2S_FLAG_CHSIDE) || \ + ((FLAG) == SPI_I2S_FLAG_TXE) || ((FLAG) == SPI_I2S_FLAG_RXNE)|| \ + ((FLAG) == SPI_I2S_FLAG_TIFRFE)) +/** + * @} + */ + +/** @defgroup SPI_CRC_polynomial + * @{ + */ + +#define IS_SPI_CRC_POLYNOMIAL(POLYNOMIAL) ((POLYNOMIAL) >= 0x1) +/** + * @} + */ + +/** @defgroup SPI_I2S_Legacy + * @{ + */ + +#define SPI_DMAReq_Tx SPI_I2S_DMAReq_Tx +#define SPI_DMAReq_Rx SPI_I2S_DMAReq_Rx +#define SPI_IT_TXE SPI_I2S_IT_TXE +#define SPI_IT_RXNE SPI_I2S_IT_RXNE +#define SPI_IT_ERR SPI_I2S_IT_ERR +#define SPI_IT_OVR SPI_I2S_IT_OVR +#define SPI_FLAG_RXNE SPI_I2S_FLAG_RXNE +#define SPI_FLAG_TXE SPI_I2S_FLAG_TXE +#define SPI_FLAG_OVR SPI_I2S_FLAG_OVR +#define SPI_FLAG_BSY SPI_I2S_FLAG_BSY +#define SPI_DeInit SPI_I2S_DeInit +#define SPI_ITConfig SPI_I2S_ITConfig +#define SPI_DMACmd SPI_I2S_DMACmd +#define SPI_SendData SPI_I2S_SendData +#define SPI_ReceiveData SPI_I2S_ReceiveData +#define SPI_GetFlagStatus SPI_I2S_GetFlagStatus +#define SPI_ClearFlag SPI_I2S_ClearFlag +#define SPI_GetITStatus SPI_I2S_GetITStatus +#define SPI_ClearITPendingBit SPI_I2S_ClearITPendingBit +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the SPI configuration to the default reset state *****/ +void SPI_I2S_DeInit(SPI_TypeDef* SPIx); + +/* Initialization and Configuration functions *********************************/ +void SPI_Init(SPI_TypeDef* SPIx, SPI_InitTypeDef* SPI_InitStruct); +void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct); +void SPI_StructInit(SPI_InitTypeDef* SPI_InitStruct); +void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct); +void SPI_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState); +void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState); +void SPI_DataSizeConfig(SPI_TypeDef* SPIx, uint16_t SPI_DataSize); +void SPI_BiDirectionalLineConfig(SPI_TypeDef* SPIx, uint16_t SPI_Direction); +void SPI_NSSInternalSoftwareConfig(SPI_TypeDef* SPIx, uint16_t SPI_NSSInternalSoft); +void SPI_SSOutputCmd(SPI_TypeDef* SPIx, FunctionalState NewState); +void SPI_TIModeCmd(SPI_TypeDef* SPIx, FunctionalState NewState); + +/* Data transfers functions ***************************************************/ +void SPI_I2S_SendData(SPI_TypeDef* SPIx, uint16_t Data); +uint16_t SPI_I2S_ReceiveData(SPI_TypeDef* SPIx); + +/* Hardware CRC Calculation functions *****************************************/ +void SPI_CalculateCRC(SPI_TypeDef* SPIx, FunctionalState NewState); +void SPI_TransmitCRC(SPI_TypeDef* SPIx); +uint16_t SPI_GetCRC(SPI_TypeDef* SPIx, uint8_t SPI_CRC); +uint16_t SPI_GetCRCPolynomial(SPI_TypeDef* SPIx); + +/* DMA transfers management functions *****************************************/ +void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState); +FlagStatus SPI_I2S_GetFlagStatus(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG); +void SPI_I2S_ClearFlag(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG); +ITStatus SPI_I2S_GetITStatus(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT); +void SPI_I2S_ClearITPendingBit(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_SPI_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_syscfg.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_syscfg.h new file mode 100644 index 00000000..ab45e12a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_syscfg.h @@ -0,0 +1,179 @@ +/** + ****************************************************************************** + * @file stm32f2xx_syscfg.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the SYSCFG firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_SYSCFG_H +#define __STM32F2xx_SYSCFG_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup SYSCFG + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup SYSCFG_Exported_Constants + * @{ + */ + +/** @defgroup SYSCFG_EXTI_Port_Sources + * @{ + */ +#define EXTI_PortSourceGPIOA ((uint8_t)0x00) +#define EXTI_PortSourceGPIOB ((uint8_t)0x01) +#define EXTI_PortSourceGPIOC ((uint8_t)0x02) +#define EXTI_PortSourceGPIOD ((uint8_t)0x03) +#define EXTI_PortSourceGPIOE ((uint8_t)0x04) +#define EXTI_PortSourceGPIOF ((uint8_t)0x05) +#define EXTI_PortSourceGPIOG ((uint8_t)0x06) +#define EXTI_PortSourceGPIOH ((uint8_t)0x07) +#define EXTI_PortSourceGPIOI ((uint8_t)0x08) + +#define IS_EXTI_PORT_SOURCE(PORTSOURCE) (((PORTSOURCE) == EXTI_PortSourceGPIOA) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOB) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOC) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOD) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOE) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOF) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOG) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOH) || \ + ((PORTSOURCE) == EXTI_PortSourceGPIOI)) +/** + * @} + */ + + +/** @defgroup SYSCFG_EXTI_Pin_Sources + * @{ + */ +#define EXTI_PinSource0 ((uint8_t)0x00) +#define EXTI_PinSource1 ((uint8_t)0x01) +#define EXTI_PinSource2 ((uint8_t)0x02) +#define EXTI_PinSource3 ((uint8_t)0x03) +#define EXTI_PinSource4 ((uint8_t)0x04) +#define EXTI_PinSource5 ((uint8_t)0x05) +#define EXTI_PinSource6 ((uint8_t)0x06) +#define EXTI_PinSource7 ((uint8_t)0x07) +#define EXTI_PinSource8 ((uint8_t)0x08) +#define EXTI_PinSource9 ((uint8_t)0x09) +#define EXTI_PinSource10 ((uint8_t)0x0A) +#define EXTI_PinSource11 ((uint8_t)0x0B) +#define EXTI_PinSource12 ((uint8_t)0x0C) +#define EXTI_PinSource13 ((uint8_t)0x0D) +#define EXTI_PinSource14 ((uint8_t)0x0E) +#define EXTI_PinSource15 ((uint8_t)0x0F) +#define IS_EXTI_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == EXTI_PinSource0) || \ + ((PINSOURCE) == EXTI_PinSource1) || \ + ((PINSOURCE) == EXTI_PinSource2) || \ + ((PINSOURCE) == EXTI_PinSource3) || \ + ((PINSOURCE) == EXTI_PinSource4) || \ + ((PINSOURCE) == EXTI_PinSource5) || \ + ((PINSOURCE) == EXTI_PinSource6) || \ + ((PINSOURCE) == EXTI_PinSource7) || \ + ((PINSOURCE) == EXTI_PinSource8) || \ + ((PINSOURCE) == EXTI_PinSource9) || \ + ((PINSOURCE) == EXTI_PinSource10) || \ + ((PINSOURCE) == EXTI_PinSource11) || \ + ((PINSOURCE) == EXTI_PinSource12) || \ + ((PINSOURCE) == EXTI_PinSource13) || \ + ((PINSOURCE) == EXTI_PinSource14) || \ + ((PINSOURCE) == EXTI_PinSource15)) +/** + * @} + */ + + +/** @defgroup SYSCFG_Memory_Remap_Config + * @{ + */ +#define SYSCFG_MemoryRemap_Flash ((uint8_t)0x00) +#define SYSCFG_MemoryRemap_SystemFlash ((uint8_t)0x01) +#define SYSCFG_MemoryRemap_FSMC ((uint8_t)0x02) +#define SYSCFG_MemoryRemap_SRAM ((uint8_t)0x03) + +#define IS_SYSCFG_MEMORY_REMAP_CONFING(REMAP) (((REMAP) == SYSCFG_MemoryRemap_Flash) || \ + ((REMAP) == SYSCFG_MemoryRemap_SystemFlash) || \ + ((REMAP) == SYSCFG_MemoryRemap_SRAM) || \ + ((REMAP) == SYSCFG_MemoryRemap_FSMC)) +/** + * @} + */ + + +/** @defgroup SYSCFG_ETHERNET_Media_Interface + * @{ + */ +#define SYSCFG_ETH_MediaInterface_MII ((uint32_t)0x00000000) +#define SYSCFG_ETH_MediaInterface_RMII ((uint32_t)0x00000001) + +#define IS_SYSCFG_ETH_MEDIA_INTERFACE(INTERFACE) (((INTERFACE) == SYSCFG_ETH_MediaInterface_MII) || \ + ((INTERFACE) == SYSCFG_ETH_MediaInterface_RMII)) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +void SYSCFG_DeInit(void); +void SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap); +void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex); +void SYSCFG_ETH_MediaInterfaceConfig(uint32_t SYSCFG_ETH_MediaInterface); +void SYSCFG_CompensationCellCmd(FunctionalState NewState); +FlagStatus SYSCFG_GetCompensationCellStatus(void); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_SYSCFG_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_tim.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_tim.h new file mode 100644 index 00000000..62590b64 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_tim.h @@ -0,0 +1,1150 @@ +/** + ****************************************************************************** + * @file stm32f2xx_tim.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the TIM firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_TIM_H +#define __STM32F2xx_TIM_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup TIM + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief TIM Time Base Init structure definition + * @note This structure is used with all TIMx except for TIM6 and TIM7. + */ + +typedef struct +{ + uint16_t TIM_Prescaler; /*!< Specifies the prescaler value used to divide the TIM clock. + This parameter can be a number between 0x0000 and 0xFFFF */ + + uint16_t TIM_CounterMode; /*!< Specifies the counter mode. + This parameter can be a value of @ref TIM_Counter_Mode */ + + uint32_t TIM_Period; /*!< Specifies the period value to be loaded into the active + Auto-Reload Register at the next update event. + This parameter must be a number between 0x0000 and 0xFFFF. */ + + uint16_t TIM_ClockDivision; /*!< Specifies the clock division. + This parameter can be a value of @ref TIM_Clock_Division_CKD */ + + uint8_t TIM_RepetitionCounter; /*!< Specifies the repetition counter value. Each time the RCR downcounter + reaches zero, an update event is generated and counting restarts + from the RCR value (N). + This means in PWM mode that (N+1) corresponds to: + - the number of PWM periods in edge-aligned mode + - the number of half PWM period in center-aligned mode + This parameter must be a number between 0x00 and 0xFF. + @note This parameter is valid only for TIM1 and TIM8. */ +} TIM_TimeBaseInitTypeDef; + +/** + * @brief TIM Output Compare Init structure definition + */ + +typedef struct +{ + uint16_t TIM_OCMode; /*!< Specifies the TIM mode. + This parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes */ + + uint16_t TIM_OutputState; /*!< Specifies the TIM Output Compare state. + This parameter can be a value of @ref TIM_Output_Compare_State */ + + uint16_t TIM_OutputNState; /*!< Specifies the TIM complementary Output Compare state. + This parameter can be a value of @ref TIM_Output_Compare_N_State + @note This parameter is valid only for TIM1 and TIM8. */ + + uint32_t TIM_Pulse; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. + This parameter can be a number between 0x0000 and 0xFFFF */ + + uint16_t TIM_OCPolarity; /*!< Specifies the output polarity. + This parameter can be a value of @ref TIM_Output_Compare_Polarity */ + + uint16_t TIM_OCNPolarity; /*!< Specifies the complementary output polarity. + This parameter can be a value of @ref TIM_Output_Compare_N_Polarity + @note This parameter is valid only for TIM1 and TIM8. */ + + uint16_t TIM_OCIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. + This parameter can be a value of @ref TIM_Output_Compare_Idle_State + @note This parameter is valid only for TIM1 and TIM8. */ + + uint16_t TIM_OCNIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state. + This parameter can be a value of @ref TIM_Output_Compare_N_Idle_State + @note This parameter is valid only for TIM1 and TIM8. */ +} TIM_OCInitTypeDef; + +/** + * @brief TIM Input Capture Init structure definition + */ + +typedef struct +{ + + uint16_t TIM_Channel; /*!< Specifies the TIM channel. + This parameter can be a value of @ref TIM_Channel */ + + uint16_t TIM_ICPolarity; /*!< Specifies the active edge of the input signal. + This parameter can be a value of @ref TIM_Input_Capture_Polarity */ + + uint16_t TIM_ICSelection; /*!< Specifies the input. + This parameter can be a value of @ref TIM_Input_Capture_Selection */ + + uint16_t TIM_ICPrescaler; /*!< Specifies the Input Capture Prescaler. + This parameter can be a value of @ref TIM_Input_Capture_Prescaler */ + + uint16_t TIM_ICFilter; /*!< Specifies the input capture filter. + This parameter can be a number between 0x0 and 0xF */ +} TIM_ICInitTypeDef; + +/** + * @brief BDTR structure definition + * @note This structure is used only with TIM1 and TIM8. + */ + +typedef struct +{ + + uint16_t TIM_OSSRState; /*!< Specifies the Off-State selection used in Run mode. + This parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state */ + + uint16_t TIM_OSSIState; /*!< Specifies the Off-State used in Idle state. + This parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state */ + + uint16_t TIM_LOCKLevel; /*!< Specifies the LOCK level parameters. + This parameter can be a value of @ref TIM_Lock_level */ + + uint16_t TIM_DeadTime; /*!< Specifies the delay time between the switching-off and the + switching-on of the outputs. + This parameter can be a number between 0x00 and 0xFF */ + + uint16_t TIM_Break; /*!< Specifies whether the TIM Break input is enabled or not. + This parameter can be a value of @ref TIM_Break_Input_enable_disable */ + + uint16_t TIM_BreakPolarity; /*!< Specifies the TIM Break Input pin polarity. + This parameter can be a value of @ref TIM_Break_Polarity */ + + uint16_t TIM_AutomaticOutput; /*!< Specifies whether the TIM Automatic Output feature is enabled or not. + This parameter can be a value of @ref TIM_AOE_Bit_Set_Reset */ +} TIM_BDTRInitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup TIM_Exported_constants + * @{ + */ + +#define IS_TIM_ALL_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM6) || \ + ((PERIPH) == TIM7) || \ + ((PERIPH) == TIM8) || \ + ((PERIPH) == TIM9) || \ + ((PERIPH) == TIM10) || \ + ((PERIPH) == TIM11) || \ + ((PERIPH) == TIM12) || \ + (((PERIPH) == TIM13) || \ + ((PERIPH) == TIM14))) +/* LIST1: TIM1, TIM2, TIM3, TIM4, TIM5, TIM8, TIM9, TIM10, TIM11, TIM12, TIM13 and TIM14 */ +#define IS_TIM_LIST1_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM8) || \ + ((PERIPH) == TIM9) || \ + ((PERIPH) == TIM10) || \ + ((PERIPH) == TIM11) || \ + ((PERIPH) == TIM12) || \ + ((PERIPH) == TIM13) || \ + ((PERIPH) == TIM14)) + +/* LIST2: TIM1, TIM2, TIM3, TIM4, TIM5, TIM8, TIM9 and TIM12 */ +#define IS_TIM_LIST2_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM8) || \ + ((PERIPH) == TIM9) || \ + ((PERIPH) == TIM12)) +/* LIST3: TIM1, TIM2, TIM3, TIM4, TIM5 and TIM8 */ +#define IS_TIM_LIST3_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM8)) +/* LIST4: TIM1 and TIM8 */ +#define IS_TIM_LIST4_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM8)) +/* LIST5: TIM1, TIM2, TIM3, TIM4, TIM5, TIM6, TIM7 and TIM8 */ +#define IS_TIM_LIST5_PERIPH(PERIPH) (((PERIPH) == TIM1) || \ + ((PERIPH) == TIM2) || \ + ((PERIPH) == TIM3) || \ + ((PERIPH) == TIM4) || \ + ((PERIPH) == TIM5) || \ + ((PERIPH) == TIM6) || \ + ((PERIPH) == TIM7) || \ + ((PERIPH) == TIM8)) +/* LIST6: TIM2, TIM5 and TIM11 */ +#define IS_TIM_LIST6_PERIPH(TIMx)(((TIMx) == TIM2) || \ + ((TIMx) == TIM5) || \ + ((TIMx) == TIM11)) + +/** @defgroup TIM_Output_Compare_and_PWM_modes + * @{ + */ + +#define TIM_OCMode_Timing ((uint16_t)0x0000) +#define TIM_OCMode_Active ((uint16_t)0x0010) +#define TIM_OCMode_Inactive ((uint16_t)0x0020) +#define TIM_OCMode_Toggle ((uint16_t)0x0030) +#define TIM_OCMode_PWM1 ((uint16_t)0x0060) +#define TIM_OCMode_PWM2 ((uint16_t)0x0070) +#define IS_TIM_OC_MODE(MODE) (((MODE) == TIM_OCMode_Timing) || \ + ((MODE) == TIM_OCMode_Active) || \ + ((MODE) == TIM_OCMode_Inactive) || \ + ((MODE) == TIM_OCMode_Toggle)|| \ + ((MODE) == TIM_OCMode_PWM1) || \ + ((MODE) == TIM_OCMode_PWM2)) +#define IS_TIM_OCM(MODE) (((MODE) == TIM_OCMode_Timing) || \ + ((MODE) == TIM_OCMode_Active) || \ + ((MODE) == TIM_OCMode_Inactive) || \ + ((MODE) == TIM_OCMode_Toggle)|| \ + ((MODE) == TIM_OCMode_PWM1) || \ + ((MODE) == TIM_OCMode_PWM2) || \ + ((MODE) == TIM_ForcedAction_Active) || \ + ((MODE) == TIM_ForcedAction_InActive)) +/** + * @} + */ + +/** @defgroup TIM_One_Pulse_Mode + * @{ + */ + +#define TIM_OPMode_Single ((uint16_t)0x0008) +#define TIM_OPMode_Repetitive ((uint16_t)0x0000) +#define IS_TIM_OPM_MODE(MODE) (((MODE) == TIM_OPMode_Single) || \ + ((MODE) == TIM_OPMode_Repetitive)) +/** + * @} + */ + +/** @defgroup TIM_Channel + * @{ + */ + +#define TIM_Channel_1 ((uint16_t)0x0000) +#define TIM_Channel_2 ((uint16_t)0x0004) +#define TIM_Channel_3 ((uint16_t)0x0008) +#define TIM_Channel_4 ((uint16_t)0x000C) + +#define IS_TIM_CHANNEL(CHANNEL) (((CHANNEL) == TIM_Channel_1) || \ + ((CHANNEL) == TIM_Channel_2) || \ + ((CHANNEL) == TIM_Channel_3) || \ + ((CHANNEL) == TIM_Channel_4)) + +#define IS_TIM_PWMI_CHANNEL(CHANNEL) (((CHANNEL) == TIM_Channel_1) || \ + ((CHANNEL) == TIM_Channel_2)) +#define IS_TIM_COMPLEMENTARY_CHANNEL(CHANNEL) (((CHANNEL) == TIM_Channel_1) || \ + ((CHANNEL) == TIM_Channel_2) || \ + ((CHANNEL) == TIM_Channel_3)) +/** + * @} + */ + +/** @defgroup TIM_Clock_Division_CKD + * @{ + */ + +#define TIM_CKD_DIV1 ((uint16_t)0x0000) +#define TIM_CKD_DIV2 ((uint16_t)0x0100) +#define TIM_CKD_DIV4 ((uint16_t)0x0200) +#define IS_TIM_CKD_DIV(DIV) (((DIV) == TIM_CKD_DIV1) || \ + ((DIV) == TIM_CKD_DIV2) || \ + ((DIV) == TIM_CKD_DIV4)) +/** + * @} + */ + +/** @defgroup TIM_Counter_Mode + * @{ + */ + +#define TIM_CounterMode_Up ((uint16_t)0x0000) +#define TIM_CounterMode_Down ((uint16_t)0x0010) +#define TIM_CounterMode_CenterAligned1 ((uint16_t)0x0020) +#define TIM_CounterMode_CenterAligned2 ((uint16_t)0x0040) +#define TIM_CounterMode_CenterAligned3 ((uint16_t)0x0060) +#define IS_TIM_COUNTER_MODE(MODE) (((MODE) == TIM_CounterMode_Up) || \ + ((MODE) == TIM_CounterMode_Down) || \ + ((MODE) == TIM_CounterMode_CenterAligned1) || \ + ((MODE) == TIM_CounterMode_CenterAligned2) || \ + ((MODE) == TIM_CounterMode_CenterAligned3)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Polarity + * @{ + */ + +#define TIM_OCPolarity_High ((uint16_t)0x0000) +#define TIM_OCPolarity_Low ((uint16_t)0x0002) +#define IS_TIM_OC_POLARITY(POLARITY) (((POLARITY) == TIM_OCPolarity_High) || \ + ((POLARITY) == TIM_OCPolarity_Low)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_N_Polarity + * @{ + */ + +#define TIM_OCNPolarity_High ((uint16_t)0x0000) +#define TIM_OCNPolarity_Low ((uint16_t)0x0008) +#define IS_TIM_OCN_POLARITY(POLARITY) (((POLARITY) == TIM_OCNPolarity_High) || \ + ((POLARITY) == TIM_OCNPolarity_Low)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_State + * @{ + */ + +#define TIM_OutputState_Disable ((uint16_t)0x0000) +#define TIM_OutputState_Enable ((uint16_t)0x0001) +#define IS_TIM_OUTPUT_STATE(STATE) (((STATE) == TIM_OutputState_Disable) || \ + ((STATE) == TIM_OutputState_Enable)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_N_State + * @{ + */ + +#define TIM_OutputNState_Disable ((uint16_t)0x0000) +#define TIM_OutputNState_Enable ((uint16_t)0x0004) +#define IS_TIM_OUTPUTN_STATE(STATE) (((STATE) == TIM_OutputNState_Disable) || \ + ((STATE) == TIM_OutputNState_Enable)) +/** + * @} + */ + +/** @defgroup TIM_Capture_Compare_State + * @{ + */ + +#define TIM_CCx_Enable ((uint16_t)0x0001) +#define TIM_CCx_Disable ((uint16_t)0x0000) +#define IS_TIM_CCX(CCX) (((CCX) == TIM_CCx_Enable) || \ + ((CCX) == TIM_CCx_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Capture_Compare_N_State + * @{ + */ + +#define TIM_CCxN_Enable ((uint16_t)0x0004) +#define TIM_CCxN_Disable ((uint16_t)0x0000) +#define IS_TIM_CCXN(CCXN) (((CCXN) == TIM_CCxN_Enable) || \ + ((CCXN) == TIM_CCxN_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Break_Input_enable_disable + * @{ + */ + +#define TIM_Break_Enable ((uint16_t)0x1000) +#define TIM_Break_Disable ((uint16_t)0x0000) +#define IS_TIM_BREAK_STATE(STATE) (((STATE) == TIM_Break_Enable) || \ + ((STATE) == TIM_Break_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Break_Polarity + * @{ + */ + +#define TIM_BreakPolarity_Low ((uint16_t)0x0000) +#define TIM_BreakPolarity_High ((uint16_t)0x2000) +#define IS_TIM_BREAK_POLARITY(POLARITY) (((POLARITY) == TIM_BreakPolarity_Low) || \ + ((POLARITY) == TIM_BreakPolarity_High)) +/** + * @} + */ + +/** @defgroup TIM_AOE_Bit_Set_Reset + * @{ + */ + +#define TIM_AutomaticOutput_Enable ((uint16_t)0x4000) +#define TIM_AutomaticOutput_Disable ((uint16_t)0x0000) +#define IS_TIM_AUTOMATIC_OUTPUT_STATE(STATE) (((STATE) == TIM_AutomaticOutput_Enable) || \ + ((STATE) == TIM_AutomaticOutput_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Lock_level + * @{ + */ + +#define TIM_LOCKLevel_OFF ((uint16_t)0x0000) +#define TIM_LOCKLevel_1 ((uint16_t)0x0100) +#define TIM_LOCKLevel_2 ((uint16_t)0x0200) +#define TIM_LOCKLevel_3 ((uint16_t)0x0300) +#define IS_TIM_LOCK_LEVEL(LEVEL) (((LEVEL) == TIM_LOCKLevel_OFF) || \ + ((LEVEL) == TIM_LOCKLevel_1) || \ + ((LEVEL) == TIM_LOCKLevel_2) || \ + ((LEVEL) == TIM_LOCKLevel_3)) +/** + * @} + */ + +/** @defgroup TIM_OSSI_Off_State_Selection_for_Idle_mode_state + * @{ + */ + +#define TIM_OSSIState_Enable ((uint16_t)0x0400) +#define TIM_OSSIState_Disable ((uint16_t)0x0000) +#define IS_TIM_OSSI_STATE(STATE) (((STATE) == TIM_OSSIState_Enable) || \ + ((STATE) == TIM_OSSIState_Disable)) +/** + * @} + */ + +/** @defgroup TIM_OSSR_Off_State_Selection_for_Run_mode_state + * @{ + */ + +#define TIM_OSSRState_Enable ((uint16_t)0x0800) +#define TIM_OSSRState_Disable ((uint16_t)0x0000) +#define IS_TIM_OSSR_STATE(STATE) (((STATE) == TIM_OSSRState_Enable) || \ + ((STATE) == TIM_OSSRState_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Idle_State + * @{ + */ + +#define TIM_OCIdleState_Set ((uint16_t)0x0100) +#define TIM_OCIdleState_Reset ((uint16_t)0x0000) +#define IS_TIM_OCIDLE_STATE(STATE) (((STATE) == TIM_OCIdleState_Set) || \ + ((STATE) == TIM_OCIdleState_Reset)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_N_Idle_State + * @{ + */ + +#define TIM_OCNIdleState_Set ((uint16_t)0x0200) +#define TIM_OCNIdleState_Reset ((uint16_t)0x0000) +#define IS_TIM_OCNIDLE_STATE(STATE) (((STATE) == TIM_OCNIdleState_Set) || \ + ((STATE) == TIM_OCNIdleState_Reset)) +/** + * @} + */ + +/** @defgroup TIM_Input_Capture_Polarity + * @{ + */ + +#define TIM_ICPolarity_Rising ((uint16_t)0x0000) +#define TIM_ICPolarity_Falling ((uint16_t)0x0002) +#define TIM_ICPolarity_BothEdge ((uint16_t)0x000A) +#define IS_TIM_IC_POLARITY(POLARITY) (((POLARITY) == TIM_ICPolarity_Rising) || \ + ((POLARITY) == TIM_ICPolarity_Falling)|| \ + ((POLARITY) == TIM_ICPolarity_BothEdge)) +/** + * @} + */ + +/** @defgroup TIM_Input_Capture_Selection + * @{ + */ + +#define TIM_ICSelection_DirectTI ((uint16_t)0x0001) /*!< TIM Input 1, 2, 3 or 4 is selected to be + connected to IC1, IC2, IC3 or IC4, respectively */ +#define TIM_ICSelection_IndirectTI ((uint16_t)0x0002) /*!< TIM Input 1, 2, 3 or 4 is selected to be + connected to IC2, IC1, IC4 or IC3, respectively. */ +#define TIM_ICSelection_TRC ((uint16_t)0x0003) /*!< TIM Input 1, 2, 3 or 4 is selected to be connected to TRC. */ +#define IS_TIM_IC_SELECTION(SELECTION) (((SELECTION) == TIM_ICSelection_DirectTI) || \ + ((SELECTION) == TIM_ICSelection_IndirectTI) || \ + ((SELECTION) == TIM_ICSelection_TRC)) +/** + * @} + */ + +/** @defgroup TIM_Input_Capture_Prescaler + * @{ + */ + +#define TIM_ICPSC_DIV1 ((uint16_t)0x0000) /*!< Capture performed each time an edge is detected on the capture input. */ +#define TIM_ICPSC_DIV2 ((uint16_t)0x0004) /*!< Capture performed once every 2 events. */ +#define TIM_ICPSC_DIV4 ((uint16_t)0x0008) /*!< Capture performed once every 4 events. */ +#define TIM_ICPSC_DIV8 ((uint16_t)0x000C) /*!< Capture performed once every 8 events. */ +#define IS_TIM_IC_PRESCALER(PRESCALER) (((PRESCALER) == TIM_ICPSC_DIV1) || \ + ((PRESCALER) == TIM_ICPSC_DIV2) || \ + ((PRESCALER) == TIM_ICPSC_DIV4) || \ + ((PRESCALER) == TIM_ICPSC_DIV8)) +/** + * @} + */ + +/** @defgroup TIM_interrupt_sources + * @{ + */ + +#define TIM_IT_Update ((uint16_t)0x0001) +#define TIM_IT_CC1 ((uint16_t)0x0002) +#define TIM_IT_CC2 ((uint16_t)0x0004) +#define TIM_IT_CC3 ((uint16_t)0x0008) +#define TIM_IT_CC4 ((uint16_t)0x0010) +#define TIM_IT_COM ((uint16_t)0x0020) +#define TIM_IT_Trigger ((uint16_t)0x0040) +#define TIM_IT_Break ((uint16_t)0x0080) +#define IS_TIM_IT(IT) ((((IT) & (uint16_t)0xFF00) == 0x0000) && ((IT) != 0x0000)) + +#define IS_TIM_GET_IT(IT) (((IT) == TIM_IT_Update) || \ + ((IT) == TIM_IT_CC1) || \ + ((IT) == TIM_IT_CC2) || \ + ((IT) == TIM_IT_CC3) || \ + ((IT) == TIM_IT_CC4) || \ + ((IT) == TIM_IT_COM) || \ + ((IT) == TIM_IT_Trigger) || \ + ((IT) == TIM_IT_Break)) +/** + * @} + */ + +/** @defgroup TIM_DMA_Base_address + * @{ + */ + +#define TIM_DMABase_CR1 ((uint16_t)0x0000) +#define TIM_DMABase_CR2 ((uint16_t)0x0001) +#define TIM_DMABase_SMCR ((uint16_t)0x0002) +#define TIM_DMABase_DIER ((uint16_t)0x0003) +#define TIM_DMABase_SR ((uint16_t)0x0004) +#define TIM_DMABase_EGR ((uint16_t)0x0005) +#define TIM_DMABase_CCMR1 ((uint16_t)0x0006) +#define TIM_DMABase_CCMR2 ((uint16_t)0x0007) +#define TIM_DMABase_CCER ((uint16_t)0x0008) +#define TIM_DMABase_CNT ((uint16_t)0x0009) +#define TIM_DMABase_PSC ((uint16_t)0x000A) +#define TIM_DMABase_ARR ((uint16_t)0x000B) +#define TIM_DMABase_RCR ((uint16_t)0x000C) +#define TIM_DMABase_CCR1 ((uint16_t)0x000D) +#define TIM_DMABase_CCR2 ((uint16_t)0x000E) +#define TIM_DMABase_CCR3 ((uint16_t)0x000F) +#define TIM_DMABase_CCR4 ((uint16_t)0x0010) +#define TIM_DMABase_BDTR ((uint16_t)0x0011) +#define TIM_DMABase_DCR ((uint16_t)0x0012) +#define TIM_DMABase_OR ((uint16_t)0x0013) +#define IS_TIM_DMA_BASE(BASE) (((BASE) == TIM_DMABase_CR1) || \ + ((BASE) == TIM_DMABase_CR2) || \ + ((BASE) == TIM_DMABase_SMCR) || \ + ((BASE) == TIM_DMABase_DIER) || \ + ((BASE) == TIM_DMABase_SR) || \ + ((BASE) == TIM_DMABase_EGR) || \ + ((BASE) == TIM_DMABase_CCMR1) || \ + ((BASE) == TIM_DMABase_CCMR2) || \ + ((BASE) == TIM_DMABase_CCER) || \ + ((BASE) == TIM_DMABase_CNT) || \ + ((BASE) == TIM_DMABase_PSC) || \ + ((BASE) == TIM_DMABase_ARR) || \ + ((BASE) == TIM_DMABase_RCR) || \ + ((BASE) == TIM_DMABase_CCR1) || \ + ((BASE) == TIM_DMABase_CCR2) || \ + ((BASE) == TIM_DMABase_CCR3) || \ + ((BASE) == TIM_DMABase_CCR4) || \ + ((BASE) == TIM_DMABase_BDTR) || \ + ((BASE) == TIM_DMABase_DCR) || \ + ((BASE) == TIM_DMABase_OR)) +/** + * @} + */ + +/** @defgroup TIM_DMA_Burst_Length + * @{ + */ + +#define TIM_DMABurstLength_1Transfer ((uint16_t)0x0000) +#define TIM_DMABurstLength_2Transfers ((uint16_t)0x0100) +#define TIM_DMABurstLength_3Transfers ((uint16_t)0x0200) +#define TIM_DMABurstLength_4Transfers ((uint16_t)0x0300) +#define TIM_DMABurstLength_5Transfers ((uint16_t)0x0400) +#define TIM_DMABurstLength_6Transfers ((uint16_t)0x0500) +#define TIM_DMABurstLength_7Transfers ((uint16_t)0x0600) +#define TIM_DMABurstLength_8Transfers ((uint16_t)0x0700) +#define TIM_DMABurstLength_9Transfers ((uint16_t)0x0800) +#define TIM_DMABurstLength_10Transfers ((uint16_t)0x0900) +#define TIM_DMABurstLength_11Transfers ((uint16_t)0x0A00) +#define TIM_DMABurstLength_12Transfers ((uint16_t)0x0B00) +#define TIM_DMABurstLength_13Transfers ((uint16_t)0x0C00) +#define TIM_DMABurstLength_14Transfers ((uint16_t)0x0D00) +#define TIM_DMABurstLength_15Transfers ((uint16_t)0x0E00) +#define TIM_DMABurstLength_16Transfers ((uint16_t)0x0F00) +#define TIM_DMABurstLength_17Transfers ((uint16_t)0x1000) +#define TIM_DMABurstLength_18Transfers ((uint16_t)0x1100) +#define IS_TIM_DMA_LENGTH(LENGTH) (((LENGTH) == TIM_DMABurstLength_1Transfer) || \ + ((LENGTH) == TIM_DMABurstLength_2Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_3Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_4Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_5Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_6Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_7Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_8Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_9Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_10Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_11Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_12Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_13Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_14Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_15Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_16Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_17Transfers) || \ + ((LENGTH) == TIM_DMABurstLength_18Transfers)) +/** + * @} + */ + +/** @defgroup TIM_DMA_sources + * @{ + */ + +#define TIM_DMA_Update ((uint16_t)0x0100) +#define TIM_DMA_CC1 ((uint16_t)0x0200) +#define TIM_DMA_CC2 ((uint16_t)0x0400) +#define TIM_DMA_CC3 ((uint16_t)0x0800) +#define TIM_DMA_CC4 ((uint16_t)0x1000) +#define TIM_DMA_COM ((uint16_t)0x2000) +#define TIM_DMA_Trigger ((uint16_t)0x4000) +#define IS_TIM_DMA_SOURCE(SOURCE) ((((SOURCE) & (uint16_t)0x80FF) == 0x0000) && ((SOURCE) != 0x0000)) + +/** + * @} + */ + +/** @defgroup TIM_External_Trigger_Prescaler + * @{ + */ + +#define TIM_ExtTRGPSC_OFF ((uint16_t)0x0000) +#define TIM_ExtTRGPSC_DIV2 ((uint16_t)0x1000) +#define TIM_ExtTRGPSC_DIV4 ((uint16_t)0x2000) +#define TIM_ExtTRGPSC_DIV8 ((uint16_t)0x3000) +#define IS_TIM_EXT_PRESCALER(PRESCALER) (((PRESCALER) == TIM_ExtTRGPSC_OFF) || \ + ((PRESCALER) == TIM_ExtTRGPSC_DIV2) || \ + ((PRESCALER) == TIM_ExtTRGPSC_DIV4) || \ + ((PRESCALER) == TIM_ExtTRGPSC_DIV8)) +/** + * @} + */ + +/** @defgroup TIM_Internal_Trigger_Selection + * @{ + */ + +#define TIM_TS_ITR0 ((uint16_t)0x0000) +#define TIM_TS_ITR1 ((uint16_t)0x0010) +#define TIM_TS_ITR2 ((uint16_t)0x0020) +#define TIM_TS_ITR3 ((uint16_t)0x0030) +#define TIM_TS_TI1F_ED ((uint16_t)0x0040) +#define TIM_TS_TI1FP1 ((uint16_t)0x0050) +#define TIM_TS_TI2FP2 ((uint16_t)0x0060) +#define TIM_TS_ETRF ((uint16_t)0x0070) +#define IS_TIM_TRIGGER_SELECTION(SELECTION) (((SELECTION) == TIM_TS_ITR0) || \ + ((SELECTION) == TIM_TS_ITR1) || \ + ((SELECTION) == TIM_TS_ITR2) || \ + ((SELECTION) == TIM_TS_ITR3) || \ + ((SELECTION) == TIM_TS_TI1F_ED) || \ + ((SELECTION) == TIM_TS_TI1FP1) || \ + ((SELECTION) == TIM_TS_TI2FP2) || \ + ((SELECTION) == TIM_TS_ETRF)) +#define IS_TIM_INTERNAL_TRIGGER_SELECTION(SELECTION) (((SELECTION) == TIM_TS_ITR0) || \ + ((SELECTION) == TIM_TS_ITR1) || \ + ((SELECTION) == TIM_TS_ITR2) || \ + ((SELECTION) == TIM_TS_ITR3)) +/** + * @} + */ + +/** @defgroup TIM_TIx_External_Clock_Source + * @{ + */ + +#define TIM_TIxExternalCLK1Source_TI1 ((uint16_t)0x0050) +#define TIM_TIxExternalCLK1Source_TI2 ((uint16_t)0x0060) +#define TIM_TIxExternalCLK1Source_TI1ED ((uint16_t)0x0040) + +/** + * @} + */ + +/** @defgroup TIM_External_Trigger_Polarity + * @{ + */ +#define TIM_ExtTRGPolarity_Inverted ((uint16_t)0x8000) +#define TIM_ExtTRGPolarity_NonInverted ((uint16_t)0x0000) +#define IS_TIM_EXT_POLARITY(POLARITY) (((POLARITY) == TIM_ExtTRGPolarity_Inverted) || \ + ((POLARITY) == TIM_ExtTRGPolarity_NonInverted)) +/** + * @} + */ + +/** @defgroup TIM_Prescaler_Reload_Mode + * @{ + */ + +#define TIM_PSCReloadMode_Update ((uint16_t)0x0000) +#define TIM_PSCReloadMode_Immediate ((uint16_t)0x0001) +#define IS_TIM_PRESCALER_RELOAD(RELOAD) (((RELOAD) == TIM_PSCReloadMode_Update) || \ + ((RELOAD) == TIM_PSCReloadMode_Immediate)) +/** + * @} + */ + +/** @defgroup TIM_Forced_Action + * @{ + */ + +#define TIM_ForcedAction_Active ((uint16_t)0x0050) +#define TIM_ForcedAction_InActive ((uint16_t)0x0040) +#define IS_TIM_FORCED_ACTION(ACTION) (((ACTION) == TIM_ForcedAction_Active) || \ + ((ACTION) == TIM_ForcedAction_InActive)) +/** + * @} + */ + +/** @defgroup TIM_Encoder_Mode + * @{ + */ + +#define TIM_EncoderMode_TI1 ((uint16_t)0x0001) +#define TIM_EncoderMode_TI2 ((uint16_t)0x0002) +#define TIM_EncoderMode_TI12 ((uint16_t)0x0003) +#define IS_TIM_ENCODER_MODE(MODE) (((MODE) == TIM_EncoderMode_TI1) || \ + ((MODE) == TIM_EncoderMode_TI2) || \ + ((MODE) == TIM_EncoderMode_TI12)) +/** + * @} + */ + + +/** @defgroup TIM_Event_Source + * @{ + */ + +#define TIM_EventSource_Update ((uint16_t)0x0001) +#define TIM_EventSource_CC1 ((uint16_t)0x0002) +#define TIM_EventSource_CC2 ((uint16_t)0x0004) +#define TIM_EventSource_CC3 ((uint16_t)0x0008) +#define TIM_EventSource_CC4 ((uint16_t)0x0010) +#define TIM_EventSource_COM ((uint16_t)0x0020) +#define TIM_EventSource_Trigger ((uint16_t)0x0040) +#define TIM_EventSource_Break ((uint16_t)0x0080) +#define IS_TIM_EVENT_SOURCE(SOURCE) ((((SOURCE) & (uint16_t)0xFF00) == 0x0000) && ((SOURCE) != 0x0000)) + +/** + * @} + */ + +/** @defgroup TIM_Update_Source + * @{ + */ + +#define TIM_UpdateSource_Global ((uint16_t)0x0000) /*!< Source of update is the counter overflow/underflow + or the setting of UG bit, or an update generation + through the slave mode controller. */ +#define TIM_UpdateSource_Regular ((uint16_t)0x0001) /*!< Source of update is counter overflow/underflow. */ +#define IS_TIM_UPDATE_SOURCE(SOURCE) (((SOURCE) == TIM_UpdateSource_Global) || \ + ((SOURCE) == TIM_UpdateSource_Regular)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Preload_State + * @{ + */ + +#define TIM_OCPreload_Enable ((uint16_t)0x0008) +#define TIM_OCPreload_Disable ((uint16_t)0x0000) +#define IS_TIM_OCPRELOAD_STATE(STATE) (((STATE) == TIM_OCPreload_Enable) || \ + ((STATE) == TIM_OCPreload_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Fast_State + * @{ + */ + +#define TIM_OCFast_Enable ((uint16_t)0x0004) +#define TIM_OCFast_Disable ((uint16_t)0x0000) +#define IS_TIM_OCFAST_STATE(STATE) (((STATE) == TIM_OCFast_Enable) || \ + ((STATE) == TIM_OCFast_Disable)) + +/** + * @} + */ + +/** @defgroup TIM_Output_Compare_Clear_State + * @{ + */ + +#define TIM_OCClear_Enable ((uint16_t)0x0080) +#define TIM_OCClear_Disable ((uint16_t)0x0000) +#define IS_TIM_OCCLEAR_STATE(STATE) (((STATE) == TIM_OCClear_Enable) || \ + ((STATE) == TIM_OCClear_Disable)) +/** + * @} + */ + +/** @defgroup TIM_Trigger_Output_Source + * @{ + */ + +#define TIM_TRGOSource_Reset ((uint16_t)0x0000) +#define TIM_TRGOSource_Enable ((uint16_t)0x0010) +#define TIM_TRGOSource_Update ((uint16_t)0x0020) +#define TIM_TRGOSource_OC1 ((uint16_t)0x0030) +#define TIM_TRGOSource_OC1Ref ((uint16_t)0x0040) +#define TIM_TRGOSource_OC2Ref ((uint16_t)0x0050) +#define TIM_TRGOSource_OC3Ref ((uint16_t)0x0060) +#define TIM_TRGOSource_OC4Ref ((uint16_t)0x0070) +#define IS_TIM_TRGO_SOURCE(SOURCE) (((SOURCE) == TIM_TRGOSource_Reset) || \ + ((SOURCE) == TIM_TRGOSource_Enable) || \ + ((SOURCE) == TIM_TRGOSource_Update) || \ + ((SOURCE) == TIM_TRGOSource_OC1) || \ + ((SOURCE) == TIM_TRGOSource_OC1Ref) || \ + ((SOURCE) == TIM_TRGOSource_OC2Ref) || \ + ((SOURCE) == TIM_TRGOSource_OC3Ref) || \ + ((SOURCE) == TIM_TRGOSource_OC4Ref)) +/** + * @} + */ + +/** @defgroup TIM_Slave_Mode + * @{ + */ + +#define TIM_SlaveMode_Reset ((uint16_t)0x0004) +#define TIM_SlaveMode_Gated ((uint16_t)0x0005) +#define TIM_SlaveMode_Trigger ((uint16_t)0x0006) +#define TIM_SlaveMode_External1 ((uint16_t)0x0007) +#define IS_TIM_SLAVE_MODE(MODE) (((MODE) == TIM_SlaveMode_Reset) || \ + ((MODE) == TIM_SlaveMode_Gated) || \ + ((MODE) == TIM_SlaveMode_Trigger) || \ + ((MODE) == TIM_SlaveMode_External1)) +/** + * @} + */ + +/** @defgroup TIM_Master_Slave_Mode + * @{ + */ + +#define TIM_MasterSlaveMode_Enable ((uint16_t)0x0080) +#define TIM_MasterSlaveMode_Disable ((uint16_t)0x0000) +#define IS_TIM_MSM_STATE(STATE) (((STATE) == TIM_MasterSlaveMode_Enable) || \ + ((STATE) == TIM_MasterSlaveMode_Disable)) +/** + * @} + */ +/** @defgroup TIM_Remap + * @{ + */ + +#define TIM2_TIM8_TRGO ((uint16_t)0x0000) +#define TIM2_ETH_PTP ((uint16_t)0x0400) +#define TIM2_USBFS_SOF ((uint16_t)0x0800) +#define TIM2_USBHS_SOF ((uint16_t)0x0C00) + +#define TIM5_GPIO ((uint16_t)0x0000) +#define TIM5_LSI ((uint16_t)0x0040) +#define TIM5_LSE ((uint16_t)0x0080) +#define TIM5_RTC ((uint16_t)0x00C0) + +#define TIM11_GPIO ((uint16_t)0x0000) +#define TIM11_HSE ((uint16_t)0x0002) + +#define IS_TIM_REMAP(TIM_REMAP) (((TIM_REMAP) == TIM2_TIM8_TRGO)||\ + ((TIM_REMAP) == TIM2_ETH_PTP)||\ + ((TIM_REMAP) == TIM2_USBFS_SOF)||\ + ((TIM_REMAP) == TIM2_USBHS_SOF)||\ + ((TIM_REMAP) == TIM5_GPIO)||\ + ((TIM_REMAP) == TIM5_LSI)||\ + ((TIM_REMAP) == TIM5_LSE)||\ + ((TIM_REMAP) == TIM5_RTC)||\ + ((TIM_REMAP) == TIM11_GPIO)||\ + ((TIM_REMAP) == TIM11_HSE)) + +/** + * @} + */ +/** @defgroup TIM_Flags + * @{ + */ + +#define TIM_FLAG_Update ((uint16_t)0x0001) +#define TIM_FLAG_CC1 ((uint16_t)0x0002) +#define TIM_FLAG_CC2 ((uint16_t)0x0004) +#define TIM_FLAG_CC3 ((uint16_t)0x0008) +#define TIM_FLAG_CC4 ((uint16_t)0x0010) +#define TIM_FLAG_COM ((uint16_t)0x0020) +#define TIM_FLAG_Trigger ((uint16_t)0x0040) +#define TIM_FLAG_Break ((uint16_t)0x0080) +#define TIM_FLAG_CC1OF ((uint16_t)0x0200) +#define TIM_FLAG_CC2OF ((uint16_t)0x0400) +#define TIM_FLAG_CC3OF ((uint16_t)0x0800) +#define TIM_FLAG_CC4OF ((uint16_t)0x1000) +#define IS_TIM_GET_FLAG(FLAG) (((FLAG) == TIM_FLAG_Update) || \ + ((FLAG) == TIM_FLAG_CC1) || \ + ((FLAG) == TIM_FLAG_CC2) || \ + ((FLAG) == TIM_FLAG_CC3) || \ + ((FLAG) == TIM_FLAG_CC4) || \ + ((FLAG) == TIM_FLAG_COM) || \ + ((FLAG) == TIM_FLAG_Trigger) || \ + ((FLAG) == TIM_FLAG_Break) || \ + ((FLAG) == TIM_FLAG_CC1OF) || \ + ((FLAG) == TIM_FLAG_CC2OF) || \ + ((FLAG) == TIM_FLAG_CC3OF) || \ + ((FLAG) == TIM_FLAG_CC4OF)) + +/** + * @} + */ + +/** @defgroup TIM_Input_Capture_Filer_Value + * @{ + */ + +#define IS_TIM_IC_FILTER(ICFILTER) ((ICFILTER) <= 0xF) +/** + * @} + */ + +/** @defgroup TIM_External_Trigger_Filter + * @{ + */ + +#define IS_TIM_EXT_FILTER(EXTFILTER) ((EXTFILTER) <= 0xF) +/** + * @} + */ + +/** @defgroup TIM_Legacy + * @{ + */ + +#define TIM_DMABurstLength_1Byte TIM_DMABurstLength_1Transfer +#define TIM_DMABurstLength_2Bytes TIM_DMABurstLength_2Transfers +#define TIM_DMABurstLength_3Bytes TIM_DMABurstLength_3Transfers +#define TIM_DMABurstLength_4Bytes TIM_DMABurstLength_4Transfers +#define TIM_DMABurstLength_5Bytes TIM_DMABurstLength_5Transfers +#define TIM_DMABurstLength_6Bytes TIM_DMABurstLength_6Transfers +#define TIM_DMABurstLength_7Bytes TIM_DMABurstLength_7Transfers +#define TIM_DMABurstLength_8Bytes TIM_DMABurstLength_8Transfers +#define TIM_DMABurstLength_9Bytes TIM_DMABurstLength_9Transfers +#define TIM_DMABurstLength_10Bytes TIM_DMABurstLength_10Transfers +#define TIM_DMABurstLength_11Bytes TIM_DMABurstLength_11Transfers +#define TIM_DMABurstLength_12Bytes TIM_DMABurstLength_12Transfers +#define TIM_DMABurstLength_13Bytes TIM_DMABurstLength_13Transfers +#define TIM_DMABurstLength_14Bytes TIM_DMABurstLength_14Transfers +#define TIM_DMABurstLength_15Bytes TIM_DMABurstLength_15Transfers +#define TIM_DMABurstLength_16Bytes TIM_DMABurstLength_16Transfers +#define TIM_DMABurstLength_17Bytes TIM_DMABurstLength_17Transfers +#define TIM_DMABurstLength_18Bytes TIM_DMABurstLength_18Transfers +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* TimeBase management ********************************************************/ +void TIM_DeInit(TIM_TypeDef* TIMx); +void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct); +void TIM_TimeBaseStructInit(TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct); +void TIM_PrescalerConfig(TIM_TypeDef* TIMx, uint16_t Prescaler, uint16_t TIM_PSCReloadMode); +void TIM_CounterModeConfig(TIM_TypeDef* TIMx, uint16_t TIM_CounterMode); +void TIM_SetCounter(TIM_TypeDef* TIMx, uint32_t Counter); +void TIM_SetAutoreload(TIM_TypeDef* TIMx, uint32_t Autoreload); +uint32_t TIM_GetCounter(TIM_TypeDef* TIMx); +uint16_t TIM_GetPrescaler(TIM_TypeDef* TIMx); +void TIM_UpdateDisableConfig(TIM_TypeDef* TIMx, FunctionalState NewState); +void TIM_UpdateRequestConfig(TIM_TypeDef* TIMx, uint16_t TIM_UpdateSource); +void TIM_ARRPreloadConfig(TIM_TypeDef* TIMx, FunctionalState NewState); +void TIM_SelectOnePulseMode(TIM_TypeDef* TIMx, uint16_t TIM_OPMode); +void TIM_SetClockDivision(TIM_TypeDef* TIMx, uint16_t TIM_CKD); +void TIM_Cmd(TIM_TypeDef* TIMx, FunctionalState NewState); + +/* Output Compare management **************************************************/ +void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_OC4Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_OCStructInit(TIM_OCInitTypeDef* TIM_OCInitStruct); +void TIM_SelectOCxM(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_OCMode); +void TIM_SetCompare1(TIM_TypeDef* TIMx, uint32_t Compare1); +void TIM_SetCompare2(TIM_TypeDef* TIMx, uint32_t Compare2); +void TIM_SetCompare3(TIM_TypeDef* TIMx, uint32_t Compare3); +void TIM_SetCompare4(TIM_TypeDef* TIMx, uint32_t Compare4); +void TIM_ForcedOC1Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction); +void TIM_ForcedOC2Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction); +void TIM_ForcedOC3Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction); +void TIM_ForcedOC4Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction); +void TIM_OC1PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload); +void TIM_OC2PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload); +void TIM_OC3PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload); +void TIM_OC4PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload); +void TIM_OC1FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast); +void TIM_OC2FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast); +void TIM_OC3FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast); +void TIM_OC4FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast); +void TIM_ClearOC1Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear); +void TIM_ClearOC2Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear); +void TIM_ClearOC3Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear); +void TIM_ClearOC4Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear); +void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity); +void TIM_OC1NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity); +void TIM_OC2PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity); +void TIM_OC2NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity); +void TIM_OC3PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity); +void TIM_OC3NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity); +void TIM_OC4PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity); +void TIM_CCxCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx); +void TIM_CCxNCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCxN); + +/* Input Capture management ***************************************************/ +void TIM_ICInit(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct); +void TIM_ICStructInit(TIM_ICInitTypeDef* TIM_ICInitStruct); +void TIM_PWMIConfig(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct); +uint32_t TIM_GetCapture1(TIM_TypeDef* TIMx); +uint32_t TIM_GetCapture2(TIM_TypeDef* TIMx); +uint32_t TIM_GetCapture3(TIM_TypeDef* TIMx); +uint32_t TIM_GetCapture4(TIM_TypeDef* TIMx); +void TIM_SetIC1Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC); +void TIM_SetIC2Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC); +void TIM_SetIC3Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC); +void TIM_SetIC4Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC); + +/* Advanced-control timers (TIM1 and TIM8) specific features ******************/ +void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct); +void TIM_BDTRStructInit(TIM_BDTRInitTypeDef* TIM_BDTRInitStruct); +void TIM_CtrlPWMOutputs(TIM_TypeDef* TIMx, FunctionalState NewState); +void TIM_SelectCOM(TIM_TypeDef* TIMx, FunctionalState NewState); +void TIM_CCPreloadControl(TIM_TypeDef* TIMx, FunctionalState NewState); + +/* Interrupts, DMA and flags management ***************************************/ +void TIM_ITConfig(TIM_TypeDef* TIMx, uint16_t TIM_IT, FunctionalState NewState); +void TIM_GenerateEvent(TIM_TypeDef* TIMx, uint16_t TIM_EventSource); +FlagStatus TIM_GetFlagStatus(TIM_TypeDef* TIMx, uint16_t TIM_FLAG); +void TIM_ClearFlag(TIM_TypeDef* TIMx, uint16_t TIM_FLAG); +ITStatus TIM_GetITStatus(TIM_TypeDef* TIMx, uint16_t TIM_IT); +void TIM_ClearITPendingBit(TIM_TypeDef* TIMx, uint16_t TIM_IT); +void TIM_DMAConfig(TIM_TypeDef* TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength); +void TIM_DMACmd(TIM_TypeDef* TIMx, uint16_t TIM_DMASource, FunctionalState NewState); +void TIM_SelectCCDMA(TIM_TypeDef* TIMx, FunctionalState NewState); + +/* Clocks management **********************************************************/ +void TIM_InternalClockConfig(TIM_TypeDef* TIMx); +void TIM_ITRxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource); +void TIM_TIxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_TIxExternalCLKSource, + uint16_t TIM_ICPolarity, uint16_t ICFilter); +void TIM_ETRClockMode1Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, + uint16_t ExtTRGFilter); +void TIM_ETRClockMode2Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, + uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter); + +/* Synchronization management *************************************************/ +void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource); +void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_TRGOSource); +void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode); +void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_MasterSlaveMode); +void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, + uint16_t ExtTRGFilter); + +/* Specific interface management **********************************************/ +void TIM_EncoderInterfaceConfig(TIM_TypeDef* TIMx, uint16_t TIM_EncoderMode, + uint16_t TIM_IC1Polarity, uint16_t TIM_IC2Polarity); +void TIM_SelectHallSensor(TIM_TypeDef* TIMx, FunctionalState NewState); + +/* Specific remapping management **********************************************/ +void TIM_RemapConfig(TIM_TypeDef* TIMx, uint16_t TIM_Remap); + +#ifdef __cplusplus +} +#endif + +#endif /*__STM32F2xx_TIM_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_usart.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_usart.h new file mode 100644 index 00000000..dd27ac1f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_usart.h @@ -0,0 +1,429 @@ +/** + ****************************************************************************** + * @file stm32f2xx_usart.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the USART + * firmware library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_USART_H +#define __STM32F2xx_USART_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup USART + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ + +/** + * @brief USART Init Structure definition + */ + +typedef struct +{ + uint32_t USART_BaudRate; /*!< This member configures the USART communication baud rate. + The baud rate is computed using the following formula: + - IntegerDivider = ((PCLKx) / (8 * (OVR8+1) * (USART_InitStruct->USART_BaudRate))) + - FractionalDivider = ((IntegerDivider - ((u32) IntegerDivider)) * 8 * (OVR8+1)) + 0.5 + Where OVR8 is the "oversampling by 8 mode" configuration bit in the CR1 register. */ + + uint16_t USART_WordLength; /*!< Specifies the number of data bits transmitted or received in a frame. + This parameter can be a value of @ref USART_Word_Length */ + + uint16_t USART_StopBits; /*!< Specifies the number of stop bits transmitted. + This parameter can be a value of @ref USART_Stop_Bits */ + + uint16_t USART_Parity; /*!< Specifies the parity mode. + This parameter can be a value of @ref USART_Parity + @note When parity is enabled, the computed parity is inserted + at the MSB position of the transmitted data (9th bit when + the word length is set to 9 data bits; 8th bit when the + word length is set to 8 data bits). */ + + uint16_t USART_Mode; /*!< Specifies wether the Receive or Transmit mode is enabled or disabled. + This parameter can be a value of @ref USART_Mode */ + + uint16_t USART_HardwareFlowControl; /*!< Specifies wether the hardware flow control mode is enabled + or disabled. + This parameter can be a value of @ref USART_Hardware_Flow_Control */ +} USART_InitTypeDef; + +/** + * @brief USART Clock Init Structure definition + */ + +typedef struct +{ + + uint16_t USART_Clock; /*!< Specifies whether the USART clock is enabled or disabled. + This parameter can be a value of @ref USART_Clock */ + + uint16_t USART_CPOL; /*!< Specifies the steady state of the serial clock. + This parameter can be a value of @ref USART_Clock_Polarity */ + + uint16_t USART_CPHA; /*!< Specifies the clock transition on which the bit capture is made. + This parameter can be a value of @ref USART_Clock_Phase */ + + uint16_t USART_LastBit; /*!< Specifies whether the clock pulse corresponding to the last transmitted + data bit (MSB) has to be output on the SCLK pin in synchronous mode. + This parameter can be a value of @ref USART_Last_Bit */ +} USART_ClockInitTypeDef; + +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup USART_Exported_Constants + * @{ + */ + +#define IS_USART_ALL_PERIPH(PERIPH) (((PERIPH) == USART1) || \ + ((PERIPH) == USART2) || \ + ((PERIPH) == USART3) || \ + ((PERIPH) == UART4) || \ + ((PERIPH) == UART5) || \ + ((PERIPH) == USART6)) + +#define IS_USART_1236_PERIPH(PERIPH) (((PERIPH) == USART1) || \ + ((PERIPH) == USART2) || \ + ((PERIPH) == USART3) || \ + ((PERIPH) == USART6)) + +/** @defgroup USART_Word_Length + * @{ + */ + +#define USART_WordLength_8b ((uint16_t)0x0000) +#define USART_WordLength_9b ((uint16_t)0x1000) + +#define IS_USART_WORD_LENGTH(LENGTH) (((LENGTH) == USART_WordLength_8b) || \ + ((LENGTH) == USART_WordLength_9b)) +/** + * @} + */ + +/** @defgroup USART_Stop_Bits + * @{ + */ + +#define USART_StopBits_1 ((uint16_t)0x0000) +#define USART_StopBits_0_5 ((uint16_t)0x1000) +#define USART_StopBits_2 ((uint16_t)0x2000) +#define USART_StopBits_1_5 ((uint16_t)0x3000) +#define IS_USART_STOPBITS(STOPBITS) (((STOPBITS) == USART_StopBits_1) || \ + ((STOPBITS) == USART_StopBits_0_5) || \ + ((STOPBITS) == USART_StopBits_2) || \ + ((STOPBITS) == USART_StopBits_1_5)) +/** + * @} + */ + +/** @defgroup USART_Parity + * @{ + */ + +#define USART_Parity_No ((uint16_t)0x0000) +#define USART_Parity_Even ((uint16_t)0x0400) +#define USART_Parity_Odd ((uint16_t)0x0600) +#define IS_USART_PARITY(PARITY) (((PARITY) == USART_Parity_No) || \ + ((PARITY) == USART_Parity_Even) || \ + ((PARITY) == USART_Parity_Odd)) +/** + * @} + */ + +/** @defgroup USART_Mode + * @{ + */ + +#define USART_Mode_Rx ((uint16_t)0x0004) +#define USART_Mode_Tx ((uint16_t)0x0008) +#define IS_USART_MODE(MODE) ((((MODE) & (uint16_t)0xFFF3) == 0x00) && ((MODE) != (uint16_t)0x00)) +/** + * @} + */ + +/** @defgroup USART_Hardware_Flow_Control + * @{ + */ +#define USART_HardwareFlowControl_None ((uint16_t)0x0000) +#define USART_HardwareFlowControl_RTS ((uint16_t)0x0100) +#define USART_HardwareFlowControl_CTS ((uint16_t)0x0200) +#define USART_HardwareFlowControl_RTS_CTS ((uint16_t)0x0300) +#define IS_USART_HARDWARE_FLOW_CONTROL(CONTROL)\ + (((CONTROL) == USART_HardwareFlowControl_None) || \ + ((CONTROL) == USART_HardwareFlowControl_RTS) || \ + ((CONTROL) == USART_HardwareFlowControl_CTS) || \ + ((CONTROL) == USART_HardwareFlowControl_RTS_CTS)) +/** + * @} + */ + +/** @defgroup USART_Clock + * @{ + */ +#define USART_Clock_Disable ((uint16_t)0x0000) +#define USART_Clock_Enable ((uint16_t)0x0800) +#define IS_USART_CLOCK(CLOCK) (((CLOCK) == USART_Clock_Disable) || \ + ((CLOCK) == USART_Clock_Enable)) +/** + * @} + */ + +/** @defgroup USART_Clock_Polarity + * @{ + */ + +#define USART_CPOL_Low ((uint16_t)0x0000) +#define USART_CPOL_High ((uint16_t)0x0400) +#define IS_USART_CPOL(CPOL) (((CPOL) == USART_CPOL_Low) || ((CPOL) == USART_CPOL_High)) + +/** + * @} + */ + +/** @defgroup USART_Clock_Phase + * @{ + */ + +#define USART_CPHA_1Edge ((uint16_t)0x0000) +#define USART_CPHA_2Edge ((uint16_t)0x0200) +#define IS_USART_CPHA(CPHA) (((CPHA) == USART_CPHA_1Edge) || ((CPHA) == USART_CPHA_2Edge)) + +/** + * @} + */ + +/** @defgroup USART_Last_Bit + * @{ + */ + +#define USART_LastBit_Disable ((uint16_t)0x0000) +#define USART_LastBit_Enable ((uint16_t)0x0100) +#define IS_USART_LASTBIT(LASTBIT) (((LASTBIT) == USART_LastBit_Disable) || \ + ((LASTBIT) == USART_LastBit_Enable)) +/** + * @} + */ + +/** @defgroup USART_Interrupt_definition + * @{ + */ + +#define USART_IT_PE ((uint16_t)0x0028) +#define USART_IT_TXE ((uint16_t)0x0727) +#define USART_IT_TC ((uint16_t)0x0626) +#define USART_IT_RXNE ((uint16_t)0x0525) +#define USART_IT_ORE_RX ((uint16_t)0x0325) /* In case interrupt is generated if the RXNEIE bit is set */ +#define USART_IT_IDLE ((uint16_t)0x0424) +#define USART_IT_LBD ((uint16_t)0x0846) +#define USART_IT_CTS ((uint16_t)0x096A) +#define USART_IT_ERR ((uint16_t)0x0060) +#define USART_IT_ORE_ER ((uint16_t)0x0360) /* In case interrupt is generated if the EIE bit is set */ +#define USART_IT_NE ((uint16_t)0x0260) +#define USART_IT_FE ((uint16_t)0x0160) + +/** @defgroup USART_Legacy + * @{ + */ +#define USART_IT_ORE USART_IT_ORE_ER +/** + * @} + */ + +#define IS_USART_CONFIG_IT(IT) (((IT) == USART_IT_PE) || ((IT) == USART_IT_TXE) || \ + ((IT) == USART_IT_TC) || ((IT) == USART_IT_RXNE) || \ + ((IT) == USART_IT_IDLE) || ((IT) == USART_IT_LBD) || \ + ((IT) == USART_IT_CTS) || ((IT) == USART_IT_ERR)) +#define IS_USART_GET_IT(IT) (((IT) == USART_IT_PE) || ((IT) == USART_IT_TXE) || \ + ((IT) == USART_IT_TC) || ((IT) == USART_IT_RXNE) || \ + ((IT) == USART_IT_IDLE) || ((IT) == USART_IT_LBD) || \ + ((IT) == USART_IT_CTS) || ((IT) == USART_IT_ORE) || \ + ((IT) == USART_IT_ORE_RX) || ((IT) == USART_IT_ORE_ER) || \ + ((IT) == USART_IT_NE) || ((IT) == USART_IT_FE)) +#define IS_USART_CLEAR_IT(IT) (((IT) == USART_IT_TC) || ((IT) == USART_IT_RXNE) || \ + ((IT) == USART_IT_LBD) || ((IT) == USART_IT_CTS)) +/** + * @} + */ + +/** @defgroup USART_DMA_Requests + * @{ + */ + +#define USART_DMAReq_Tx ((uint16_t)0x0080) +#define USART_DMAReq_Rx ((uint16_t)0x0040) +#define IS_USART_DMAREQ(DMAREQ) ((((DMAREQ) & (uint16_t)0xFF3F) == 0x00) && ((DMAREQ) != (uint16_t)0x00)) + +/** + * @} + */ + +/** @defgroup USART_WakeUp_methods + * @{ + */ + +#define USART_WakeUp_IdleLine ((uint16_t)0x0000) +#define USART_WakeUp_AddressMark ((uint16_t)0x0800) +#define IS_USART_WAKEUP(WAKEUP) (((WAKEUP) == USART_WakeUp_IdleLine) || \ + ((WAKEUP) == USART_WakeUp_AddressMark)) +/** + * @} + */ + +/** @defgroup USART_LIN_Break_Detection_Length + * @{ + */ + +#define USART_LINBreakDetectLength_10b ((uint16_t)0x0000) +#define USART_LINBreakDetectLength_11b ((uint16_t)0x0020) +#define IS_USART_LIN_BREAK_DETECT_LENGTH(LENGTH) \ + (((LENGTH) == USART_LINBreakDetectLength_10b) || \ + ((LENGTH) == USART_LINBreakDetectLength_11b)) +/** + * @} + */ + +/** @defgroup USART_IrDA_Low_Power + * @{ + */ + +#define USART_IrDAMode_LowPower ((uint16_t)0x0004) +#define USART_IrDAMode_Normal ((uint16_t)0x0000) +#define IS_USART_IRDA_MODE(MODE) (((MODE) == USART_IrDAMode_LowPower) || \ + ((MODE) == USART_IrDAMode_Normal)) +/** + * @} + */ + +/** @defgroup USART_Flags + * @{ + */ + +#define USART_FLAG_CTS ((uint16_t)0x0200) +#define USART_FLAG_LBD ((uint16_t)0x0100) +#define USART_FLAG_TXE ((uint16_t)0x0080) +#define USART_FLAG_TC ((uint16_t)0x0040) +#define USART_FLAG_RXNE ((uint16_t)0x0020) +#define USART_FLAG_IDLE ((uint16_t)0x0010) +#define USART_FLAG_ORE ((uint16_t)0x0008) +#define USART_FLAG_NE ((uint16_t)0x0004) +#define USART_FLAG_FE ((uint16_t)0x0002) +#define USART_FLAG_PE ((uint16_t)0x0001) +#define IS_USART_FLAG(FLAG) (((FLAG) == USART_FLAG_PE) || ((FLAG) == USART_FLAG_TXE) || \ + ((FLAG) == USART_FLAG_TC) || ((FLAG) == USART_FLAG_RXNE) || \ + ((FLAG) == USART_FLAG_IDLE) || ((FLAG) == USART_FLAG_LBD) || \ + ((FLAG) == USART_FLAG_CTS) || ((FLAG) == USART_FLAG_ORE) || \ + ((FLAG) == USART_FLAG_NE) || ((FLAG) == USART_FLAG_FE)) + +#define IS_USART_CLEAR_FLAG(FLAG) ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00)) + +#define IS_USART_BAUDRATE(BAUDRATE) (((BAUDRATE) > 0) && ((BAUDRATE) < 7500001)) +#define IS_USART_ADDRESS(ADDRESS) ((ADDRESS) <= 0xF) +#define IS_USART_DATA(DATA) ((DATA) <= 0x1FF) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the USART configuration to the default reset state ***/ +void USART_DeInit(USART_TypeDef* USARTx); + +/* Initialization and Configuration functions *********************************/ +void USART_Init(USART_TypeDef* USARTx, USART_InitTypeDef* USART_InitStruct); +void USART_StructInit(USART_InitTypeDef* USART_InitStruct); +void USART_ClockInit(USART_TypeDef* USARTx, USART_ClockInitTypeDef* USART_ClockInitStruct); +void USART_ClockStructInit(USART_ClockInitTypeDef* USART_ClockInitStruct); +void USART_Cmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_SetPrescaler(USART_TypeDef* USARTx, uint8_t USART_Prescaler); +void USART_OverSampling8Cmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_OneBitMethodCmd(USART_TypeDef* USARTx, FunctionalState NewState); + +/* Data transfers functions ***************************************************/ +void USART_SendData(USART_TypeDef* USARTx, uint16_t Data); +uint16_t USART_ReceiveData(USART_TypeDef* USARTx); + +/* Multi-Processor Communication functions ************************************/ +void USART_SetAddress(USART_TypeDef* USARTx, uint8_t USART_Address); +void USART_WakeUpConfig(USART_TypeDef* USARTx, uint16_t USART_WakeUp); +void USART_ReceiverWakeUpCmd(USART_TypeDef* USARTx, FunctionalState NewState); + +/* LIN mode functions *********************************************************/ +void USART_LINBreakDetectLengthConfig(USART_TypeDef* USARTx, uint16_t USART_LINBreakDetectLength); +void USART_LINCmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_SendBreak(USART_TypeDef* USARTx); + +/* Half-duplex mode function **************************************************/ +void USART_HalfDuplexCmd(USART_TypeDef* USARTx, FunctionalState NewState); + +/* Smartcard mode functions ***************************************************/ +void USART_SmartCardCmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_SmartCardNACKCmd(USART_TypeDef* USARTx, FunctionalState NewState); +void USART_SetGuardTime(USART_TypeDef* USARTx, uint8_t USART_GuardTime); + +/* IrDA mode functions ********************************************************/ +void USART_IrDAConfig(USART_TypeDef* USARTx, uint16_t USART_IrDAMode); +void USART_IrDACmd(USART_TypeDef* USARTx, FunctionalState NewState); + +/* DMA transfers management functions *****************************************/ +void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq, FunctionalState NewState); + +/* Interrupts and flags management functions **********************************/ +void USART_ITConfig(USART_TypeDef* USARTx, uint16_t USART_IT, FunctionalState NewState); +FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, uint16_t USART_FLAG); +void USART_ClearFlag(USART_TypeDef* USARTx, uint16_t USART_FLAG); +ITStatus USART_GetITStatus(USART_TypeDef* USARTx, uint16_t USART_IT); +void USART_ClearITPendingBit(USART_TypeDef* USARTx, uint16_t USART_IT); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_USART_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_wwdg.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_wwdg.h new file mode 100644 index 00000000..c4c1969d --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/inc/stm32f2xx_wwdg.h @@ -0,0 +1,111 @@ +/** + ****************************************************************************** + * @file stm32f2xx_wwdg.h + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file contains all the functions prototypes for the WWDG firmware + * library. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_WWDG_H +#define __STM32F2xx_WWDG_H + +#ifdef __cplusplus + extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @addtogroup WWDG + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup WWDG_Exported_Constants + * @{ + */ + +/** @defgroup WWDG_Prescaler + * @{ + */ + +#define WWDG_Prescaler_1 ((uint32_t)0x00000000) +#define WWDG_Prescaler_2 ((uint32_t)0x00000080) +#define WWDG_Prescaler_4 ((uint32_t)0x00000100) +#define WWDG_Prescaler_8 ((uint32_t)0x00000180) +#define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \ + ((PRESCALER) == WWDG_Prescaler_2) || \ + ((PRESCALER) == WWDG_Prescaler_4) || \ + ((PRESCALER) == WWDG_Prescaler_8)) +#define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F) +#define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F)) + +/** + * @} + */ + +/** + * @} + */ + +/* Exported macro ------------------------------------------------------------*/ +/* Exported functions --------------------------------------------------------*/ + +/* Function used to set the WWDG configuration to the default reset state ****/ +void WWDG_DeInit(void); + +/* Prescaler, Refresh window and Counter configuration functions **************/ +void WWDG_SetPrescaler(uint32_t WWDG_Prescaler); +void WWDG_SetWindowValue(uint8_t WindowValue); +void WWDG_EnableIT(void); +void WWDG_SetCounter(uint8_t Counter); + +/* WWDG activation function ***************************************************/ +void WWDG_Enable(uint8_t Counter); + +/* Interrupts and flags management functions **********************************/ +FlagStatus WWDG_GetFlagStatus(void); +void WWDG_ClearFlag(void); + +#ifdef __cplusplus +} +#endif + +#endif /* __STM32F2xx_WWDG_H */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/misc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/misc.c new file mode 100644 index 00000000..7555a3d8 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/misc.c @@ -0,0 +1,249 @@ +/** + ****************************************************************************** + * @file misc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides all the miscellaneous firmware functions (add-on + * to CMSIS functions). + * + * @verbatim + * + * =================================================================== + * How to configure Interrupts using driver + * =================================================================== + * + * This section provide functions allowing to configure the NVIC interrupts (IRQ). + * The Cortex-M3 exceptions are managed by CMSIS functions. + * + * 1. Configure the NVIC Priority Grouping using NVIC_PriorityGroupConfig() + * function according to the following table. + + * The table below gives the allowed values of the pre-emption priority and subpriority according + * to the Priority Grouping configuration performed by NVIC_PriorityGroupConfig function + * ========================================================================================================================== + * NVIC_PriorityGroup | NVIC_IRQChannelPreemptionPriority | NVIC_IRQChannelSubPriority | Description + * ========================================================================================================================== + * NVIC_PriorityGroup_0 | 0 | 0-15 | 0 bits for pre-emption priority + * | | | 4 bits for subpriority + * -------------------------------------------------------------------------------------------------------------------------- + * NVIC_PriorityGroup_1 | 0-1 | 0-7 | 1 bits for pre-emption priority + * | | | 3 bits for subpriority + * -------------------------------------------------------------------------------------------------------------------------- + * NVIC_PriorityGroup_2 | 0-3 | 0-3 | 2 bits for pre-emption priority + * | | | 2 bits for subpriority + * -------------------------------------------------------------------------------------------------------------------------- + * NVIC_PriorityGroup_3 | 0-7 | 0-1 | 3 bits for pre-emption priority + * | | | 1 bits for subpriority + * -------------------------------------------------------------------------------------------------------------------------- + * NVIC_PriorityGroup_4 | 0-15 | 0 | 4 bits for pre-emption priority + * | | | 0 bits for subpriority + * ========================================================================================================================== + * + * 2. Enable and Configure the priority of the selected IRQ Channels using NVIC_Init() + * + * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible. + * The pending IRQ priority will be managed only by the subpriority. + * + * @note IRQ priority order (sorted by highest to lowest priority): + * - Lowest pre-emption priority + * - Lowest subpriority + * - Lowest hardware priority (IRQ number) + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "misc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup MISC + * @brief MISC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define AIRCR_VECTKEY_MASK ((uint32_t)0x05FA0000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup MISC_Private_Functions + * @{ + */ + +/** + * @brief Configures the priority grouping: pre-emption priority and subpriority. + * @param NVIC_PriorityGroup: specifies the priority grouping bits length. + * This parameter can be one of the following values: + * @arg NVIC_PriorityGroup_0: 0 bits for pre-emption priority + * 4 bits for subpriority + * @arg NVIC_PriorityGroup_1: 1 bits for pre-emption priority + * 3 bits for subpriority + * @arg NVIC_PriorityGroup_2: 2 bits for pre-emption priority + * 2 bits for subpriority + * @arg NVIC_PriorityGroup_3: 3 bits for pre-emption priority + * 1 bits for subpriority + * @arg NVIC_PriorityGroup_4: 4 bits for pre-emption priority + * 0 bits for subpriority + * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible. + * The pending IRQ priority will be managed only by the subpriority. + * @retval None + */ +void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup) +{ + /* Check the parameters */ + assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup)); + + /* Set the PRIGROUP[10:8] bits according to NVIC_PriorityGroup value */ + SCB->AIRCR = AIRCR_VECTKEY_MASK | NVIC_PriorityGroup; +} + +/** + * @brief Initializes the NVIC peripheral according to the specified + * parameters in the NVIC_InitStruct. + * @note To configure interrupts priority correctly, the NVIC_PriorityGroupConfig() + * function should be called before. + * @param NVIC_InitStruct: pointer to a NVIC_InitTypeDef structure that contains + * the configuration information for the specified NVIC peripheral. + * @retval None + */ +void NVIC_Init(NVIC_InitTypeDef* NVIC_InitStruct) +{ + uint8_t tmppriority = 0x00, tmppre = 0x00, tmpsub = 0x0F; + + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NVIC_InitStruct->NVIC_IRQChannelCmd)); + assert_param(IS_NVIC_PREEMPTION_PRIORITY(NVIC_InitStruct->NVIC_IRQChannelPreemptionPriority)); + assert_param(IS_NVIC_SUB_PRIORITY(NVIC_InitStruct->NVIC_IRQChannelSubPriority)); + + if (NVIC_InitStruct->NVIC_IRQChannelCmd != DISABLE) + { + /* Compute the Corresponding IRQ Priority --------------------------------*/ + tmppriority = (0x700 - ((SCB->AIRCR) & (uint32_t)0x700))>> 0x08; + tmppre = (0x4 - tmppriority); + tmpsub = tmpsub >> tmppriority; + + tmppriority = NVIC_InitStruct->NVIC_IRQChannelPreemptionPriority << tmppre; + tmppriority |= (uint8_t)(NVIC_InitStruct->NVIC_IRQChannelSubPriority & tmpsub); + + tmppriority = tmppriority << 0x04; + + NVIC->IP[NVIC_InitStruct->NVIC_IRQChannel] = tmppriority; + + /* Enable the Selected IRQ Channels --------------------------------------*/ + NVIC->ISER[NVIC_InitStruct->NVIC_IRQChannel >> 0x05] = + (uint32_t)0x01 << (NVIC_InitStruct->NVIC_IRQChannel & (uint8_t)0x1F); + } + else + { + /* Disable the Selected IRQ Channels -------------------------------------*/ + NVIC->ICER[NVIC_InitStruct->NVIC_IRQChannel >> 0x05] = + (uint32_t)0x01 << (NVIC_InitStruct->NVIC_IRQChannel & (uint8_t)0x1F); + } +} + +/** + * @brief Sets the vector table location and Offset. + * @param NVIC_VectTab: specifies if the vector table is in RAM or FLASH memory. + * This parameter can be one of the following values: + * @arg NVIC_VectTab_RAM: Vector Table in internal SRAM. + * @arg NVIC_VectTab_FLASH: Vector Table in internal FLASH. + * @param Offset: Vector Table base offset field. This value must be a multiple of 0x200. + * @retval None + */ +void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset) +{ + /* Check the parameters */ + assert_param(IS_NVIC_VECTTAB(NVIC_VectTab)); + assert_param(IS_NVIC_OFFSET(Offset)); + + SCB->VTOR = NVIC_VectTab | (Offset & (uint32_t)0x1FFFFF80); +} + +/** + * @brief Selects the condition for the system to enter low power mode. + * @param LowPowerMode: Specifies the new mode for the system to enter low power mode. + * This parameter can be one of the following values: + * @arg NVIC_LP_SEVONPEND: Low Power SEV on Pend. + * @arg NVIC_LP_SLEEPDEEP: Low Power DEEPSLEEP request. + * @arg NVIC_LP_SLEEPONEXIT: Low Power Sleep on Exit. + * @param NewState: new state of LP condition. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_NVIC_LP(LowPowerMode)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + SCB->SCR |= LowPowerMode; + } + else + { + SCB->SCR &= (uint32_t)(~(uint32_t)LowPowerMode); + } +} + +/** + * @brief Configures the SysTick clock source. + * @param SysTick_CLKSource: specifies the SysTick clock source. + * This parameter can be one of the following values: + * @arg SysTick_CLKSource_HCLK_Div8: AHB clock divided by 8 selected as SysTick clock source. + * @arg SysTick_CLKSource_HCLK: AHB clock selected as SysTick clock source. + * @retval None + */ +void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource) +{ + /* Check the parameters */ + assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource)); + if (SysTick_CLKSource == SysTick_CLKSource_HCLK) + { + SysTick->CTRL |= SysTick_CLKSource_HCLK; + } + else + { + SysTick->CTRL &= SysTick_CLKSource_HCLK_Div8; + } +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_adc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_adc.c new file mode 100644 index 00000000..e1d05597 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_adc.c @@ -0,0 +1,1748 @@ +/** + ****************************************************************************** + * @file stm32f2xx_adc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Analog to Digital Convertor (ADC) peripheral: + * - Initialization and Configuration (in addition to ADC multi mode + * selection) + * - Analog Watchdog configuration + * - Temperature Sensor & Vrefint (Voltage Reference internal) & VBAT + * management + * - Regular Channels Configuration + * - Regular Channels DMA Configuration + * - Injected channels Configuration + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + + * 1. Enable the ADC interface clock using + * RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADCx, ENABLE); + * + * 2. ADC pins configuration + * - Enable the clock for the ADC GPIOs using the following function: + * RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + * - Configure these ADC pins in analog mode using GPIO_Init(); + * + * 3. Configure the ADC Prescaler, conversion resolution and data + * alignment using the ADC_Init() function. + * 4. Activate the ADC peripheral using ADC_Cmd() function. + * + * Regular channels group configuration + * ==================================== + * - To configure the ADC regular channels group features, use + * ADC_Init() and ADC_RegularChannelConfig() functions. + * - To activate the continuous mode, use the ADC_continuousModeCmd() + * function. + * - To configurate and activate the Discontinuous mode, use the + * ADC_DiscModeChannelCountConfig() and ADC_DiscModeCmd() functions. + * - To read the ADC converted values, use the ADC_GetConversionValue() + * function. + * + * Multi mode ADCs Regular channels configuration + * =============================================== + * - Refer to "Regular channels group configuration" description to + * configure the ADC1, ADC2 and ADC3 regular channels. + * - Select the Multi mode ADC regular channels features (dual or + * triple mode) using ADC_CommonInit() function and configure + * the DMA mode using ADC_MultiModeDMARequestAfterLastTransferCmd() + * functions. + * - Read the ADCs converted values using the + * ADC_GetMultiModeConversionValue() function. + * + * DMA for Regular channels group features configuration + * ====================================================== + * - To enable the DMA mode for regular channels group, use the + * ADC_DMACmd() function. + * - To enable the generation of DMA requests continuously at the end + * of the last DMA transfer, use the ADC_DMARequestAfterLastTransferCmd() + * function. + * + * Injected channels group configuration + * ===================================== + * - To configure the ADC Injected channels group features, use + * ADC_InjectedChannelConfig() and ADC_InjectedSequencerLengthConfig() + * functions. + * - To activate the continuous mode, use the ADC_continuousModeCmd() + * function. + * - To activate the Injected Discontinuous mode, use the + * ADC_InjectedDiscModeCmd() function. + * - To activate the AutoInjected mode, use the ADC_AutoInjectedConvCmd() + * function. + * - To read the ADC converted values, use the ADC_GetInjectedConversionValue() + * function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_adc.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup ADC + * @brief ADC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* ADC DISCNUM mask */ +#define CR1_DISCNUM_RESET ((uint32_t)0xFFFF1FFF) + +/* ADC AWDCH mask */ +#define CR1_AWDCH_RESET ((uint32_t)0xFFFFFFE0) + +/* ADC Analog watchdog enable mode mask */ +#define CR1_AWDMode_RESET ((uint32_t)0xFF3FFDFF) + +/* CR1 register Mask */ +#define CR1_CLEAR_MASK ((uint32_t)0xFCFFFEFF) + +/* ADC EXTEN mask */ +#define CR2_EXTEN_RESET ((uint32_t)0xCFFFFFFF) + +/* ADC JEXTEN mask */ +#define CR2_JEXTEN_RESET ((uint32_t)0xFFCFFFFF) + +/* ADC JEXTSEL mask */ +#define CR2_JEXTSEL_RESET ((uint32_t)0xFFF0FFFF) + +/* CR2 register Mask */ +#define CR2_CLEAR_MASK ((uint32_t)0xC0FFF7FD) + +/* ADC SQx mask */ +#define SQR3_SQ_SET ((uint32_t)0x0000001F) +#define SQR2_SQ_SET ((uint32_t)0x0000001F) +#define SQR1_SQ_SET ((uint32_t)0x0000001F) + +/* ADC L Mask */ +#define SQR1_L_RESET ((uint32_t)0xFF0FFFFF) + +/* ADC JSQx mask */ +#define JSQR_JSQ_SET ((uint32_t)0x0000001F) + +/* ADC JL mask */ +#define JSQR_JL_SET ((uint32_t)0x00300000) +#define JSQR_JL_RESET ((uint32_t)0xFFCFFFFF) + +/* ADC SMPx mask */ +#define SMPR1_SMP_SET ((uint32_t)0x00000007) +#define SMPR2_SMP_SET ((uint32_t)0x00000007) + +/* ADC JDRx registers offset */ +#define JDR_OFFSET ((uint8_t)0x28) + +/* ADC CDR register base address */ +#define CDR_ADDRESS ((uint32_t)0x40012308) + +/* ADC CCR register Mask */ +#define CR_CLEAR_MASK ((uint32_t)0xFFFC30E0) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup ADC_Private_Functions + * @{ + */ + +/** @defgroup ADC_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to: + - Initialize and configure the ADC Prescaler + - ADC Conversion Resolution (12bit..6bit) + - Scan Conversion Mode (multichannels or one channel) for regular group + - ADC Continuous Conversion Mode (Continuous or Single conversion) for + regular group + - External trigger Edge and source of regular group, + - Converted data alignment (left or right) + - The number of ADC conversions that will be done using the sequencer for + regular channel group + - Multi ADC mode selection + - Direct memory access mode selection for multi ADC mode + - Delay between 2 sampling phases (used in dual or triple interleaved modes) + - Enable or disable the ADC peripheral + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes all ADCs peripherals registers to their default reset + * values. + * @param None + * @retval None + */ +void ADC_DeInit(void) +{ + /* Enable all ADCs reset state */ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC, ENABLE); + + /* Release all ADCs from reset state */ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC, DISABLE); +} + +/** + * @brief Initializes the ADCx peripheral according to the specified parameters + * in the ADC_InitStruct. + * @note This function is used to configure the global features of the ADC ( + * Resolution and Data Alignment), however, the rest of the configuration + * parameters are specific to the regular channels group (scan mode + * activation, continuous mode activation, External trigger source and + * edge, number of conversion in the regular channels group sequencer). + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_InitStruct: pointer to an ADC_InitTypeDef structure that contains + * the configuration information for the specified ADC peripheral. + * @retval None + */ +void ADC_Init(ADC_TypeDef* ADCx, ADC_InitTypeDef* ADC_InitStruct) +{ + uint32_t tmpreg1 = 0; + uint8_t tmpreg2 = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_RESOLUTION(ADC_InitStruct->ADC_Resolution)); + assert_param(IS_FUNCTIONAL_STATE(ADC_InitStruct->ADC_ScanConvMode)); + assert_param(IS_FUNCTIONAL_STATE(ADC_InitStruct->ADC_ContinuousConvMode)); + assert_param(IS_ADC_EXT_TRIG_EDGE(ADC_InitStruct->ADC_ExternalTrigConvEdge)); + assert_param(IS_ADC_EXT_TRIG(ADC_InitStruct->ADC_ExternalTrigConv)); + assert_param(IS_ADC_DATA_ALIGN(ADC_InitStruct->ADC_DataAlign)); + assert_param(IS_ADC_REGULAR_LENGTH(ADC_InitStruct->ADC_NbrOfConversion)); + + /*---------------------------- ADCx CR1 Configuration -----------------*/ + /* Get the ADCx CR1 value */ + tmpreg1 = ADCx->CR1; + + /* Clear RES and SCAN bits */ + tmpreg1 &= CR1_CLEAR_MASK; + + /* Configure ADCx: scan conversion mode and resolution */ + /* Set SCAN bit according to ADC_ScanConvMode value */ + /* Set RES bit according to ADC_Resolution value */ + tmpreg1 |= (uint32_t)(((uint32_t)ADC_InitStruct->ADC_ScanConvMode << 8) | \ + ADC_InitStruct->ADC_Resolution); + /* Write to ADCx CR1 */ + ADCx->CR1 = tmpreg1; + /*---------------------------- ADCx CR2 Configuration -----------------*/ + /* Get the ADCx CR2 value */ + tmpreg1 = ADCx->CR2; + + /* Clear CONT, ALIGN, EXTEN and EXTSEL bits */ + tmpreg1 &= CR2_CLEAR_MASK; + + /* Configure ADCx: external trigger event and edge, data alignment and + continuous conversion mode */ + /* Set ALIGN bit according to ADC_DataAlign value */ + /* Set EXTEN bits according to ADC_ExternalTrigConvEdge value */ + /* Set EXTSEL bits according to ADC_ExternalTrigConv value */ + /* Set CONT bit according to ADC_ContinuousConvMode value */ + tmpreg1 |= (uint32_t)(ADC_InitStruct->ADC_DataAlign | \ + ADC_InitStruct->ADC_ExternalTrigConv | + ADC_InitStruct->ADC_ExternalTrigConvEdge | \ + ((uint32_t)ADC_InitStruct->ADC_ContinuousConvMode << 1)); + + /* Write to ADCx CR2 */ + ADCx->CR2 = tmpreg1; + /*---------------------------- ADCx SQR1 Configuration -----------------*/ + /* Get the ADCx SQR1 value */ + tmpreg1 = ADCx->SQR1; + + /* Clear L bits */ + tmpreg1 &= SQR1_L_RESET; + + /* Configure ADCx: regular channel sequence length */ + /* Set L bits according to ADC_NbrOfConversion value */ + tmpreg2 |= (uint8_t)(ADC_InitStruct->ADC_NbrOfConversion - (uint8_t)1); + tmpreg1 |= ((uint32_t)tmpreg2 << 20); + + /* Write to ADCx SQR1 */ + ADCx->SQR1 = tmpreg1; +} + +/** + * @brief Fills each ADC_InitStruct member with its default value. + * @note This function is used to initialize the global features of the ADC ( + * Resolution and Data Alignment), however, the rest of the configuration + * parameters are specific to the regular channels group (scan mode + * activation, continuous mode activation, External trigger source and + * edge, number of conversion in the regular channels group sequencer). + * @param ADC_InitStruct: pointer to an ADC_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void ADC_StructInit(ADC_InitTypeDef* ADC_InitStruct) +{ + /* Initialize the ADC_Mode member */ + ADC_InitStruct->ADC_Resolution = ADC_Resolution_12b; + + /* initialize the ADC_ScanConvMode member */ + ADC_InitStruct->ADC_ScanConvMode = DISABLE; + + /* Initialize the ADC_ContinuousConvMode member */ + ADC_InitStruct->ADC_ContinuousConvMode = DISABLE; + + /* Initialize the ADC_ExternalTrigConvEdge member */ + ADC_InitStruct->ADC_ExternalTrigConvEdge = ADC_ExternalTrigConvEdge_None; + + /* Initialize the ADC_ExternalTrigConv member */ + ADC_InitStruct->ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1; + + /* Initialize the ADC_DataAlign member */ + ADC_InitStruct->ADC_DataAlign = ADC_DataAlign_Right; + + /* Initialize the ADC_NbrOfConversion member */ + ADC_InitStruct->ADC_NbrOfConversion = 1; +} + +/** + * @brief Initializes the ADCs peripherals according to the specified parameters + * in the ADC_CommonInitStruct. + * @param ADC_CommonInitStruct: pointer to an ADC_CommonInitTypeDef structure + * that contains the configuration information for All ADCs peripherals. + * @retval None + */ +void ADC_CommonInit(ADC_CommonInitTypeDef* ADC_CommonInitStruct) +{ + uint32_t tmpreg1 = 0; + /* Check the parameters */ + assert_param(IS_ADC_MODE(ADC_CommonInitStruct->ADC_Mode)); + assert_param(IS_ADC_PRESCALER(ADC_CommonInitStruct->ADC_Prescaler)); + assert_param(IS_ADC_DMA_ACCESS_MODE(ADC_CommonInitStruct->ADC_DMAAccessMode)); + assert_param(IS_ADC_SAMPLING_DELAY(ADC_CommonInitStruct->ADC_TwoSamplingDelay)); + /*---------------------------- ADC CCR Configuration -----------------*/ + /* Get the ADC CCR value */ + tmpreg1 = ADC->CCR; + + /* Clear MULTI, DELAY, DMA and ADCPRE bits */ + tmpreg1 &= CR_CLEAR_MASK; + + /* Configure ADCx: Multi mode, Delay between two sampling time, ADC prescaler, + and DMA access mode for multimode */ + /* Set MULTI bits according to ADC_Mode value */ + /* Set ADCPRE bits according to ADC_Prescaler value */ + /* Set DMA bits according to ADC_DMAAccessMode value */ + /* Set DELAY bits according to ADC_TwoSamplingDelay value */ + tmpreg1 |= (uint32_t)(ADC_CommonInitStruct->ADC_Mode | + ADC_CommonInitStruct->ADC_Prescaler | + ADC_CommonInitStruct->ADC_DMAAccessMode | + ADC_CommonInitStruct->ADC_TwoSamplingDelay); + + /* Write to ADC CCR */ + ADC->CCR = tmpreg1; +} + +/** + * @brief Fills each ADC_CommonInitStruct member with its default value. + * @param ADC_CommonInitStruct: pointer to an ADC_CommonInitTypeDef structure + * which will be initialized. + * @retval None + */ +void ADC_CommonStructInit(ADC_CommonInitTypeDef* ADC_CommonInitStruct) +{ + /* Initialize the ADC_Mode member */ + ADC_CommonInitStruct->ADC_Mode = ADC_Mode_Independent; + + /* initialize the ADC_Prescaler member */ + ADC_CommonInitStruct->ADC_Prescaler = ADC_Prescaler_Div2; + + /* Initialize the ADC_DMAAccessMode member */ + ADC_CommonInitStruct->ADC_DMAAccessMode = ADC_DMAAccessMode_Disabled; + + /* Initialize the ADC_TwoSamplingDelay member */ + ADC_CommonInitStruct->ADC_TwoSamplingDelay = ADC_TwoSamplingDelay_5Cycles; +} + +/** + * @brief Enables or disables the specified ADC peripheral. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the ADCx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_Cmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Set the ADON bit to wake up the ADC from power down mode */ + ADCx->CR2 |= (uint32_t)ADC_CR2_ADON; + } + else + { + /* Disable the selected ADC peripheral */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_ADON); + } +} +/** + * @} + */ + +/** @defgroup ADC_Group2 Analog Watchdog configuration functions + * @brief Analog Watchdog configuration functions + * +@verbatim + =============================================================================== + Analog Watchdog configuration functions + =============================================================================== + + This section provides functions allowing to configure the Analog Watchdog + (AWD) feature in the ADC. + + A typical configuration Analog Watchdog is done following these steps : + 1. the ADC guarded channel(s) is (are) selected using the + ADC_AnalogWatchdogSingleChannelConfig() function. + 2. The Analog watchdog lower and higher threshold are configured using the + ADC_AnalogWatchdogThresholdsConfig() function. + 3. The Analog watchdog is enabled and configured to enable the check, on one + or more channels, using the ADC_AnalogWatchdogCmd() function. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the analog watchdog on single/all regular or + * injected channels + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_AnalogWatchdog: the ADC analog watchdog configuration. + * This parameter can be one of the following values: + * @arg ADC_AnalogWatchdog_SingleRegEnable: Analog watchdog on a single regular channel + * @arg ADC_AnalogWatchdog_SingleInjecEnable: Analog watchdog on a single injected channel + * @arg ADC_AnalogWatchdog_SingleRegOrInjecEnable: Analog watchdog on a single regular or injected channel + * @arg ADC_AnalogWatchdog_AllRegEnable: Analog watchdog on all regular channel + * @arg ADC_AnalogWatchdog_AllInjecEnable: Analog watchdog on all injected channel + * @arg ADC_AnalogWatchdog_AllRegAllInjecEnable: Analog watchdog on all regular and injected channels + * @arg ADC_AnalogWatchdog_None: No channel guarded by the analog watchdog + * @retval None + */ +void ADC_AnalogWatchdogCmd(ADC_TypeDef* ADCx, uint32_t ADC_AnalogWatchdog) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_ANALOG_WATCHDOG(ADC_AnalogWatchdog)); + + /* Get the old register value */ + tmpreg = ADCx->CR1; + + /* Clear AWDEN, JAWDEN and AWDSGL bits */ + tmpreg &= CR1_AWDMode_RESET; + + /* Set the analog watchdog enable mode */ + tmpreg |= ADC_AnalogWatchdog; + + /* Store the new register value */ + ADCx->CR1 = tmpreg; +} + +/** + * @brief Configures the high and low thresholds of the analog watchdog. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param HighThreshold: the ADC analog watchdog High threshold value. + * This parameter must be a 12-bit value. + * @param LowThreshold: the ADC analog watchdog Low threshold value. + * This parameter must be a 12-bit value. + * @retval None + */ +void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef* ADCx, uint16_t HighThreshold, + uint16_t LowThreshold) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_THRESHOLD(HighThreshold)); + assert_param(IS_ADC_THRESHOLD(LowThreshold)); + + /* Set the ADCx high threshold */ + ADCx->HTR = HighThreshold; + + /* Set the ADCx low threshold */ + ADCx->LTR = LowThreshold; +} + +/** + * @brief Configures the analog watchdog guarded single channel + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_Channel: the ADC channel to configure for the analog watchdog. + * This parameter can be one of the following values: + * @arg ADC_Channel_0: ADC Channel0 selected + * @arg ADC_Channel_1: ADC Channel1 selected + * @arg ADC_Channel_2: ADC Channel2 selected + * @arg ADC_Channel_3: ADC Channel3 selected + * @arg ADC_Channel_4: ADC Channel4 selected + * @arg ADC_Channel_5: ADC Channel5 selected + * @arg ADC_Channel_6: ADC Channel6 selected + * @arg ADC_Channel_7: ADC Channel7 selected + * @arg ADC_Channel_8: ADC Channel8 selected + * @arg ADC_Channel_9: ADC Channel9 selected + * @arg ADC_Channel_10: ADC Channel10 selected + * @arg ADC_Channel_11: ADC Channel11 selected + * @arg ADC_Channel_12: ADC Channel12 selected + * @arg ADC_Channel_13: ADC Channel13 selected + * @arg ADC_Channel_14: ADC Channel14 selected + * @arg ADC_Channel_15: ADC Channel15 selected + * @arg ADC_Channel_16: ADC Channel16 selected + * @arg ADC_Channel_17: ADC Channel17 selected + * @arg ADC_Channel_18: ADC Channel18 selected + * @retval None + */ +void ADC_AnalogWatchdogSingleChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_CHANNEL(ADC_Channel)); + + /* Get the old register value */ + tmpreg = ADCx->CR1; + + /* Clear the Analog watchdog channel select bits */ + tmpreg &= CR1_AWDCH_RESET; + + /* Set the Analog watchdog channel */ + tmpreg |= ADC_Channel; + + /* Store the new register value */ + ADCx->CR1 = tmpreg; +} +/** + * @} + */ + +/** @defgroup ADC_Group3 Temperature Sensor, Vrefint (Voltage Reference internal) + * and VBAT (Voltage BATtery) management functions + * @brief Temperature Sensor, Vrefint and VBAT management functions + * +@verbatim + =============================================================================== + Temperature Sensor, Vrefint and VBAT management functions + =============================================================================== + + This section provides functions allowing to enable/ disable the internal + connections between the ADC and the Temperature Sensor, the Vrefint and the + Vbat sources. + + A typical configuration to get the Temperature sensor and Vrefint channels + voltages is done following these steps : + 1. Enable the internal connection of Temperature sensor and Vrefint sources + with the ADC channels using ADC_TempSensorVrefintCmd() function. + 2. Select the ADC_Channel_TempSensor and/or ADC_Channel_Vrefint using + ADC_RegularChannelConfig() or ADC_InjectedChannelConfig() functions + 3. Get the voltage values, using ADC_GetConversionValue() or + ADC_GetInjectedConversionValue(). + + A typical configuration to get the VBAT channel voltage is done following + these steps : + 1. Enable the internal connection of VBAT source with the ADC channel using + ADC_VBATCmd() function. + 2. Select the ADC_Channel_Vbat using ADC_RegularChannelConfig() or + ADC_InjectedChannelConfig() functions + 3. Get the voltage value, using ADC_GetConversionValue() or + ADC_GetInjectedConversionValue(). + +@endverbatim + * @{ + */ + + +/** + * @brief Enables or disables the temperature sensor and Vrefint channels. + * @param NewState: new state of the temperature sensor and Vrefint channels. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_TempSensorVrefintCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the temperature sensor and Vrefint channel*/ + ADC->CCR |= (uint32_t)ADC_CCR_TSVREFE; + } + else + { + /* Disable the temperature sensor and Vrefint channel*/ + ADC->CCR &= (uint32_t)(~ADC_CCR_TSVREFE); + } +} + +/** + * @brief Enables or disables the VBAT (Voltage Battery) channel. + * @param NewState: new state of the VBAT channel. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_VBATCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the VBAT channel*/ + ADC->CCR |= (uint32_t)ADC_CCR_VBATE; + } + else + { + /* Disable the VBAT channel*/ + ADC->CCR &= (uint32_t)(~ADC_CCR_VBATE); + } +} + +/** + * @} + */ + +/** @defgroup ADC_Group4 Regular Channels Configuration functions + * @brief Regular Channels Configuration functions + * +@verbatim + =============================================================================== + Regular Channels Configuration functions + =============================================================================== + + This section provides functions allowing to manage the ADC's regular channels, + it is composed of 2 sub sections : + + 1. Configuration and management functions for regular channels: This subsection + provides functions allowing to configure the ADC regular channels : + - Configure the rank in the regular group sequencer for each channel + - Configure the sampling time for each channel + - select the conversion Trigger for regular channels + - select the desired EOC event behavior configuration + - Activate the continuous Mode (*) + - Activate the Discontinuous Mode + Please Note that the following features for regular channels are configurated + using the ADC_Init() function : + - scan mode activation + - continuous mode activation (**) + - External trigger source + - External trigger edge + - number of conversion in the regular channels group sequencer. + + @note (*) and (**) are performing the same configuration + + 2. Get the conversion data: This subsection provides an important function in + the ADC peripheral since it returns the converted data of the current + regular channel. When the Conversion value is read, the EOC Flag is + automatically cleared. + + @note For multi ADC mode, the last ADC1, ADC2 and ADC3 regular conversions + results data (in the selected multi mode) can be returned in the same + time using ADC_GetMultiModeConversionValue() function. + + +@endverbatim + * @{ + */ +/** + * @brief Configures for the selected ADC regular channel its corresponding + * rank in the sequencer and its sample time. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_Channel: the ADC channel to configure. + * This parameter can be one of the following values: + * @arg ADC_Channel_0: ADC Channel0 selected + * @arg ADC_Channel_1: ADC Channel1 selected + * @arg ADC_Channel_2: ADC Channel2 selected + * @arg ADC_Channel_3: ADC Channel3 selected + * @arg ADC_Channel_4: ADC Channel4 selected + * @arg ADC_Channel_5: ADC Channel5 selected + * @arg ADC_Channel_6: ADC Channel6 selected + * @arg ADC_Channel_7: ADC Channel7 selected + * @arg ADC_Channel_8: ADC Channel8 selected + * @arg ADC_Channel_9: ADC Channel9 selected + * @arg ADC_Channel_10: ADC Channel10 selected + * @arg ADC_Channel_11: ADC Channel11 selected + * @arg ADC_Channel_12: ADC Channel12 selected + * @arg ADC_Channel_13: ADC Channel13 selected + * @arg ADC_Channel_14: ADC Channel14 selected + * @arg ADC_Channel_15: ADC Channel15 selected + * @arg ADC_Channel_16: ADC Channel16 selected + * @arg ADC_Channel_17: ADC Channel17 selected + * @arg ADC_Channel_18: ADC Channel18 selected + * @param Rank: The rank in the regular group sequencer. + * This parameter must be between 1 to 16. + * @param ADC_SampleTime: The sample time value to be set for the selected channel. + * This parameter can be one of the following values: + * @arg ADC_SampleTime_3Cycles: Sample time equal to 3 cycles + * @arg ADC_SampleTime_15Cycles: Sample time equal to 15 cycles + * @arg ADC_SampleTime_28Cycles: Sample time equal to 28 cycles + * @arg ADC_SampleTime_56Cycles: Sample time equal to 56 cycles + * @arg ADC_SampleTime_84Cycles: Sample time equal to 84 cycles + * @arg ADC_SampleTime_112Cycles: Sample time equal to 112 cycles + * @arg ADC_SampleTime_144Cycles: Sample time equal to 144 cycles + * @arg ADC_SampleTime_480Cycles: Sample time equal to 480 cycles + * @retval None + */ +void ADC_RegularChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime) +{ + uint32_t tmpreg1 = 0, tmpreg2 = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_CHANNEL(ADC_Channel)); + assert_param(IS_ADC_REGULAR_RANK(Rank)); + assert_param(IS_ADC_SAMPLE_TIME(ADC_SampleTime)); + + /* if ADC_Channel_10 ... ADC_Channel_18 is selected */ + if (ADC_Channel > ADC_Channel_9) + { + /* Get the old register value */ + tmpreg1 = ADCx->SMPR1; + + /* Calculate the mask to clear */ + tmpreg2 = SMPR1_SMP_SET << (3 * (ADC_Channel - 10)); + + /* Clear the old sample time */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_SampleTime << (3 * (ADC_Channel - 10)); + + /* Set the new sample time */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SMPR1 = tmpreg1; + } + else /* ADC_Channel include in ADC_Channel_[0..9] */ + { + /* Get the old register value */ + tmpreg1 = ADCx->SMPR2; + + /* Calculate the mask to clear */ + tmpreg2 = SMPR2_SMP_SET << (3 * ADC_Channel); + + /* Clear the old sample time */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_SampleTime << (3 * ADC_Channel); + + /* Set the new sample time */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SMPR2 = tmpreg1; + } + /* For Rank 1 to 6 */ + if (Rank < 7) + { + /* Get the old register value */ + tmpreg1 = ADCx->SQR3; + + /* Calculate the mask to clear */ + tmpreg2 = SQR3_SQ_SET << (5 * (Rank - 1)); + + /* Clear the old SQx bits for the selected rank */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_Channel << (5 * (Rank - 1)); + + /* Set the SQx bits for the selected rank */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SQR3 = tmpreg1; + } + /* For Rank 7 to 12 */ + else if (Rank < 13) + { + /* Get the old register value */ + tmpreg1 = ADCx->SQR2; + + /* Calculate the mask to clear */ + tmpreg2 = SQR2_SQ_SET << (5 * (Rank - 7)); + + /* Clear the old SQx bits for the selected rank */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_Channel << (5 * (Rank - 7)); + + /* Set the SQx bits for the selected rank */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SQR2 = tmpreg1; + } + /* For Rank 13 to 16 */ + else + { + /* Get the old register value */ + tmpreg1 = ADCx->SQR1; + + /* Calculate the mask to clear */ + tmpreg2 = SQR1_SQ_SET << (5 * (Rank - 13)); + + /* Clear the old SQx bits for the selected rank */ + tmpreg1 &= ~tmpreg2; + + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_Channel << (5 * (Rank - 13)); + + /* Set the SQx bits for the selected rank */ + tmpreg1 |= tmpreg2; + + /* Store the new register value */ + ADCx->SQR1 = tmpreg1; + } +} + +/** + * @brief Enables the selected ADC software start conversion of the regular channels. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval None + */ +void ADC_SoftwareStartConv(ADC_TypeDef* ADCx) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + + /* Enable the selected ADC conversion for regular group */ + ADCx->CR2 |= (uint32_t)ADC_CR2_SWSTART; +} + +/** + * @brief Gets the selected ADC Software start regular conversion Status. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval The new state of ADC software start conversion (SET or RESET). + */ +FlagStatus ADC_GetSoftwareStartConvStatus(ADC_TypeDef* ADCx) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + + /* Check the status of SWSTART bit */ + if ((ADCx->CR2 & ADC_CR2_JSWSTART) != (uint32_t)RESET) + { + /* SWSTART bit is set */ + bitstatus = SET; + } + else + { + /* SWSTART bit is reset */ + bitstatus = RESET; + } + + /* Return the SWSTART bit status */ + return bitstatus; +} + + +/** + * @brief Enables or disables the EOC on each regular channel conversion + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC EOC flag rising + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_EOCOnEachRegularChannelCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected ADC EOC rising on each regular channel conversion */ + ADCx->CR2 |= (uint32_t)ADC_CR2_EOCS; + } + else + { + /* Disable the selected ADC EOC rising on each regular channel conversion */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_EOCS); + } +} + +/** + * @brief Enables or disables the ADC continuous conversion mode + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC continuous conversion mode + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_ContinuousModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected ADC continuous conversion mode */ + ADCx->CR2 |= (uint32_t)ADC_CR2_CONT; + } + else + { + /* Disable the selected ADC continuous conversion mode */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_CONT); + } +} + +/** + * @brief Configures the discontinuous mode for the selected ADC regular group + * channel. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param Number: specifies the discontinuous mode regular channel count value. + * This number must be between 1 and 8. + * @retval None + */ +void ADC_DiscModeChannelCountConfig(ADC_TypeDef* ADCx, uint8_t Number) +{ + uint32_t tmpreg1 = 0; + uint32_t tmpreg2 = 0; + + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_REGULAR_DISC_NUMBER(Number)); + + /* Get the old register value */ + tmpreg1 = ADCx->CR1; + + /* Clear the old discontinuous mode channel count */ + tmpreg1 &= CR1_DISCNUM_RESET; + + /* Set the discontinuous mode channel count */ + tmpreg2 = Number - 1; + tmpreg1 |= tmpreg2 << 13; + + /* Store the new register value */ + ADCx->CR1 = tmpreg1; +} + +/** + * @brief Enables or disables the discontinuous mode on regular group channel + * for the specified ADC + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC discontinuous mode on + * regular group channel. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_DiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected ADC regular discontinuous mode */ + ADCx->CR1 |= (uint32_t)ADC_CR1_DISCEN; + } + else + { + /* Disable the selected ADC regular discontinuous mode */ + ADCx->CR1 &= (uint32_t)(~ADC_CR1_DISCEN); + } +} + +/** + * @brief Returns the last ADCx conversion result data for regular channel. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval The Data conversion value. + */ +uint16_t ADC_GetConversionValue(ADC_TypeDef* ADCx) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + + /* Return the selected ADC conversion value */ + return (uint16_t) ADCx->DR; +} + +/** + * @brief Returns the last ADC1, ADC2 and ADC3 regular conversions results + * data in the selected multi mode. + * @param None + * @retval The Data conversion value. + * @note In dual mode, the value returned by this function is as following + * Data[15:0] : these bits contain the regular data of ADC1. + * Data[31:16]: these bits contain the regular data of ADC2. + * @note In triple mode, the value returned by this function is as following + * Data[15:0] : these bits contain alternatively the regular data of ADC1, ADC3 and ADC2. + * Data[31:16]: these bits contain alternatively the regular data of ADC2, ADC1 and ADC3. + */ +uint32_t ADC_GetMultiModeConversionValue(void) +{ + /* Return the multi mode conversion value */ + return (*(__IO uint32_t *) CDR_ADDRESS); +} +/** + * @} + */ + +/** @defgroup ADC_Group5 Regular Channels DMA Configuration functions + * @brief Regular Channels DMA Configuration functions + * +@verbatim + =============================================================================== + Regular Channels DMA Configuration functions + =============================================================================== + + This section provides functions allowing to configure the DMA for ADC regular + channels. + Since converted regular channel values are stored into a unique data register, + it is useful to use DMA for conversion of more than one regular channel. This + avoids the loss of the data already stored in the ADC Data register. + + When the DMA mode is enabled (using the ADC_DMACmd() function), after each + conversion of a regular channel, a DMA request is generated. + + Depending on the "DMA disable selection for Independent ADC mode" + configuration (using the ADC_DMARequestAfterLastTransferCmd() function), + at the end of the last DMA transfer, two possibilities are allowed: + - No new DMA request is issued to the DMA controller (feature DISABLED) + - Requests can continue to be generated (feature ENABLED). + + Depending on the "DMA disable selection for multi ADC mode" configuration + (using the void ADC_MultiModeDMARequestAfterLastTransferCmd() function), + at the end of the last DMA transfer, two possibilities are allowed: + - No new DMA request is issued to the DMA controller (feature DISABLED) + - Requests can continue to be generated (feature ENABLED). + +@endverbatim + * @{ + */ + + /** + * @brief Enables or disables the specified ADC DMA request. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC DMA transfer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_DMACmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC DMA request */ + ADCx->CR2 |= (uint32_t)ADC_CR2_DMA; + } + else + { + /* Disable the selected ADC DMA request */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_DMA); + } +} + +/** + * @brief Enables or disables the ADC DMA request after last transfer (Single-ADC mode) + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC DMA request after last transfer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_DMARequestAfterLastTransferCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC DMA request after last transfer */ + ADCx->CR2 |= (uint32_t)ADC_CR2_DDS; + } + else + { + /* Disable the selected ADC DMA request after last transfer */ + ADCx->CR2 &= (uint32_t)(~ADC_CR2_DDS); + } +} + +/** + * @brief Enables or disables the ADC DMA request after last transfer in multi ADC mode + * @param NewState: new state of the selected ADC DMA request after last transfer. + * This parameter can be: ENABLE or DISABLE. + * @note if Enabled, DMA requests are issued as long as data are converted and + * DMA mode for multi ADC mode (selected using ADC_CommonInit() function + * by ADC_CommonInitStruct.ADC_DMAAccessMode structure member) is + * ADC_DMAAccessMode_1, ADC_DMAAccessMode_2 or ADC_DMAAccessMode_3. + * @retval None + */ +void ADC_MultiModeDMARequestAfterLastTransferCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC DMA request after last transfer */ + ADC->CCR |= (uint32_t)ADC_CCR_DDS; + } + else + { + /* Disable the selected ADC DMA request after last transfer */ + ADC->CCR &= (uint32_t)(~ADC_CCR_DDS); + } +} +/** + * @} + */ + +/** @defgroup ADC_Group6 Injected channels Configuration functions + * @brief Injected channels Configuration functions + * +@verbatim + =============================================================================== + Injected channels Configuration functions + =============================================================================== + + This section provide functions allowing to configure the ADC Injected channels, + it is composed of 2 sub sections : + + 1. Configuration functions for Injected channels: This subsection provides + functions allowing to configure the ADC injected channels : + - Configure the rank in the injected group sequencer for each channel + - Configure the sampling time for each channel + - Activate the Auto injected Mode + - Activate the Discontinuous Mode + - scan mode activation + - External/software trigger source + - External trigger edge + - injected channels sequencer. + + 2. Get the Specified Injected channel conversion data: This subsection + provides an important function in the ADC peripheral since it returns the + converted data of the specific injected channel. + +@endverbatim + * @{ + */ +/** + * @brief Configures for the selected ADC injected channel its corresponding + * rank in the sequencer and its sample time. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_Channel: the ADC channel to configure. + * This parameter can be one of the following values: + * @arg ADC_Channel_0: ADC Channel0 selected + * @arg ADC_Channel_1: ADC Channel1 selected + * @arg ADC_Channel_2: ADC Channel2 selected + * @arg ADC_Channel_3: ADC Channel3 selected + * @arg ADC_Channel_4: ADC Channel4 selected + * @arg ADC_Channel_5: ADC Channel5 selected + * @arg ADC_Channel_6: ADC Channel6 selected + * @arg ADC_Channel_7: ADC Channel7 selected + * @arg ADC_Channel_8: ADC Channel8 selected + * @arg ADC_Channel_9: ADC Channel9 selected + * @arg ADC_Channel_10: ADC Channel10 selected + * @arg ADC_Channel_11: ADC Channel11 selected + * @arg ADC_Channel_12: ADC Channel12 selected + * @arg ADC_Channel_13: ADC Channel13 selected + * @arg ADC_Channel_14: ADC Channel14 selected + * @arg ADC_Channel_15: ADC Channel15 selected + * @arg ADC_Channel_16: ADC Channel16 selected + * @arg ADC_Channel_17: ADC Channel17 selected + * @arg ADC_Channel_18: ADC Channel18 selected + * @param Rank: The rank in the injected group sequencer. + * This parameter must be between 1 to 4. + * @param ADC_SampleTime: The sample time value to be set for the selected channel. + * This parameter can be one of the following values: + * @arg ADC_SampleTime_3Cycles: Sample time equal to 3 cycles + * @arg ADC_SampleTime_15Cycles: Sample time equal to 15 cycles + * @arg ADC_SampleTime_28Cycles: Sample time equal to 28 cycles + * @arg ADC_SampleTime_56Cycles: Sample time equal to 56 cycles + * @arg ADC_SampleTime_84Cycles: Sample time equal to 84 cycles + * @arg ADC_SampleTime_112Cycles: Sample time equal to 112 cycles + * @arg ADC_SampleTime_144Cycles: Sample time equal to 144 cycles + * @arg ADC_SampleTime_480Cycles: Sample time equal to 480 cycles + * @retval None + */ +void ADC_InjectedChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime) +{ + uint32_t tmpreg1 = 0, tmpreg2 = 0, tmpreg3 = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_CHANNEL(ADC_Channel)); + assert_param(IS_ADC_INJECTED_RANK(Rank)); + assert_param(IS_ADC_SAMPLE_TIME(ADC_SampleTime)); + /* if ADC_Channel_10 ... ADC_Channel_18 is selected */ + if (ADC_Channel > ADC_Channel_9) + { + /* Get the old register value */ + tmpreg1 = ADCx->SMPR1; + /* Calculate the mask to clear */ + tmpreg2 = SMPR1_SMP_SET << (3*(ADC_Channel - 10)); + /* Clear the old sample time */ + tmpreg1 &= ~tmpreg2; + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_SampleTime << (3*(ADC_Channel - 10)); + /* Set the new sample time */ + tmpreg1 |= tmpreg2; + /* Store the new register value */ + ADCx->SMPR1 = tmpreg1; + } + else /* ADC_Channel include in ADC_Channel_[0..9] */ + { + /* Get the old register value */ + tmpreg1 = ADCx->SMPR2; + /* Calculate the mask to clear */ + tmpreg2 = SMPR2_SMP_SET << (3 * ADC_Channel); + /* Clear the old sample time */ + tmpreg1 &= ~tmpreg2; + /* Calculate the mask to set */ + tmpreg2 = (uint32_t)ADC_SampleTime << (3 * ADC_Channel); + /* Set the new sample time */ + tmpreg1 |= tmpreg2; + /* Store the new register value */ + ADCx->SMPR2 = tmpreg1; + } + /* Rank configuration */ + /* Get the old register value */ + tmpreg1 = ADCx->JSQR; + /* Get JL value: Number = JL+1 */ + tmpreg3 = (tmpreg1 & JSQR_JL_SET)>> 20; + /* Calculate the mask to clear: ((Rank-1)+(4-JL-1)) */ + tmpreg2 = JSQR_JSQ_SET << (5 * (uint8_t)((Rank + 3) - (tmpreg3 + 1))); + /* Clear the old JSQx bits for the selected rank */ + tmpreg1 &= ~tmpreg2; + /* Calculate the mask to set: ((Rank-1)+(4-JL-1)) */ + tmpreg2 = (uint32_t)ADC_Channel << (5 * (uint8_t)((Rank + 3) - (tmpreg3 + 1))); + /* Set the JSQx bits for the selected rank */ + tmpreg1 |= tmpreg2; + /* Store the new register value */ + ADCx->JSQR = tmpreg1; +} + +/** + * @brief Configures the sequencer length for injected channels + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param Length: The sequencer length. + * This parameter must be a number between 1 to 4. + * @retval None + */ +void ADC_InjectedSequencerLengthConfig(ADC_TypeDef* ADCx, uint8_t Length) +{ + uint32_t tmpreg1 = 0; + uint32_t tmpreg2 = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_INJECTED_LENGTH(Length)); + + /* Get the old register value */ + tmpreg1 = ADCx->JSQR; + + /* Clear the old injected sequence length JL bits */ + tmpreg1 &= JSQR_JL_RESET; + + /* Set the injected sequence length JL bits */ + tmpreg2 = Length - 1; + tmpreg1 |= tmpreg2 << 20; + + /* Store the new register value */ + ADCx->JSQR = tmpreg1; +} + +/** + * @brief Set the injected channels conversion value offset + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_InjectedChannel: the ADC injected channel to set its offset. + * This parameter can be one of the following values: + * @arg ADC_InjectedChannel_1: Injected Channel1 selected + * @arg ADC_InjectedChannel_2: Injected Channel2 selected + * @arg ADC_InjectedChannel_3: Injected Channel3 selected + * @arg ADC_InjectedChannel_4: Injected Channel4 selected + * @param Offset: the offset value for the selected ADC injected channel + * This parameter must be a 12bit value. + * @retval None + */ +void ADC_SetInjectedOffset(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel, uint16_t Offset) +{ + __IO uint32_t tmp = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_INJECTED_CHANNEL(ADC_InjectedChannel)); + assert_param(IS_ADC_OFFSET(Offset)); + + tmp = (uint32_t)ADCx; + tmp += ADC_InjectedChannel; + + /* Set the selected injected channel data offset */ + *(__IO uint32_t *) tmp = (uint32_t)Offset; +} + + /** + * @brief Configures the ADCx external trigger for injected channels conversion. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_ExternalTrigInjecConv: specifies the ADC trigger to start injected conversion. + * This parameter can be one of the following values: + * @arg ADC_ExternalTrigInjecConv_T1_CC4: Timer1 capture compare4 selected + * @arg ADC_ExternalTrigInjecConv_T1_TRGO: Timer1 TRGO event selected + * @arg ADC_ExternalTrigInjecConv_T2_CC1: Timer2 capture compare1 selected + * @arg ADC_ExternalTrigInjecConv_T2_TRGO: Timer2 TRGO event selected + * @arg ADC_ExternalTrigInjecConv_T3_CC2: Timer3 capture compare2 selected + * @arg ADC_ExternalTrigInjecConv_T3_CC4: Timer3 capture compare4 selected + * @arg ADC_ExternalTrigInjecConv_T4_CC1: Timer4 capture compare1 selected + * @arg ADC_ExternalTrigInjecConv_T4_CC2: Timer4 capture compare2 selected + * @arg ADC_ExternalTrigInjecConv_T4_CC3: Timer4 capture compare3 selected + * @arg ADC_ExternalTrigInjecConv_T4_TRGO: Timer4 TRGO event selected + * @arg ADC_ExternalTrigInjecConv_T5_CC4: Timer5 capture compare4 selected + * @arg ADC_ExternalTrigInjecConv_T5_TRGO: Timer5 TRGO event selected + * @arg ADC_ExternalTrigInjecConv_T8_CC2: Timer8 capture compare2 selected + * @arg ADC_ExternalTrigInjecConv_T8_CC3: Timer8 capture compare3 selected + * @arg ADC_ExternalTrigInjecConv_T8_CC4: Timer8 capture compare4 selected + * @arg ADC_ExternalTrigInjecConv_Ext_IT15: External interrupt line 15 event selected + * @retval None + */ +void ADC_ExternalTrigInjectedConvConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConv) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_EXT_INJEC_TRIG(ADC_ExternalTrigInjecConv)); + + /* Get the old register value */ + tmpreg = ADCx->CR2; + + /* Clear the old external event selection for injected group */ + tmpreg &= CR2_JEXTSEL_RESET; + + /* Set the external event selection for injected group */ + tmpreg |= ADC_ExternalTrigInjecConv; + + /* Store the new register value */ + ADCx->CR2 = tmpreg; +} + +/** + * @brief Configures the ADCx external trigger edge for injected channels conversion. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_ExternalTrigInjecConvEdge: specifies the ADC external trigger edge + * to start injected conversion. + * This parameter can be one of the following values: + * @arg ADC_ExternalTrigInjecConvEdge_None: external trigger disabled for + * injected conversion + * @arg ADC_ExternalTrigInjecConvEdge_Rising: detection on rising edge + * @arg ADC_ExternalTrigInjecConvEdge_Falling: detection on falling edge + * @arg ADC_ExternalTrigInjecConvEdge_RisingFalling: detection on both rising + * and falling edge + * @retval None + */ +void ADC_ExternalTrigInjectedConvEdgeConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConvEdge) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_EXT_INJEC_TRIG_EDGE(ADC_ExternalTrigInjecConvEdge)); + /* Get the old register value */ + tmpreg = ADCx->CR2; + /* Clear the old external trigger edge for injected group */ + tmpreg &= CR2_JEXTEN_RESET; + /* Set the new external trigger edge for injected group */ + tmpreg |= ADC_ExternalTrigInjecConvEdge; + /* Store the new register value */ + ADCx->CR2 = tmpreg; +} + +/** + * @brief Enables the selected ADC software start conversion of the injected channels. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval None + */ +void ADC_SoftwareStartInjectedConv(ADC_TypeDef* ADCx) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + /* Enable the selected ADC conversion for injected group */ + ADCx->CR2 |= (uint32_t)ADC_CR2_JSWSTART; +} + +/** + * @brief Gets the selected ADC Software start injected conversion Status. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @retval The new state of ADC software start injected conversion (SET or RESET). + */ +FlagStatus ADC_GetSoftwareStartInjectedConvCmdStatus(ADC_TypeDef* ADCx) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + + /* Check the status of JSWSTART bit */ + if ((ADCx->CR2 & ADC_CR2_JSWSTART) != (uint32_t)RESET) + { + /* JSWSTART bit is set */ + bitstatus = SET; + } + else + { + /* JSWSTART bit is reset */ + bitstatus = RESET; + } + /* Return the JSWSTART bit status */ + return bitstatus; +} + +/** + * @brief Enables or disables the selected ADC automatic injected group + * conversion after regular one. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC auto injected conversion + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_AutoInjectedConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC automatic injected group conversion */ + ADCx->CR1 |= (uint32_t)ADC_CR1_JAUTO; + } + else + { + /* Disable the selected ADC automatic injected group conversion */ + ADCx->CR1 &= (uint32_t)(~ADC_CR1_JAUTO); + } +} + +/** + * @brief Enables or disables the discontinuous mode for injected group + * channel for the specified ADC + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param NewState: new state of the selected ADC discontinuous mode on injected + * group channel. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_InjectedDiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected ADC injected discontinuous mode */ + ADCx->CR1 |= (uint32_t)ADC_CR1_JDISCEN; + } + else + { + /* Disable the selected ADC injected discontinuous mode */ + ADCx->CR1 &= (uint32_t)(~ADC_CR1_JDISCEN); + } +} + +/** + * @brief Returns the ADC injected channel conversion result + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_InjectedChannel: the converted ADC injected channel. + * This parameter can be one of the following values: + * @arg ADC_InjectedChannel_1: Injected Channel1 selected + * @arg ADC_InjectedChannel_2: Injected Channel2 selected + * @arg ADC_InjectedChannel_3: Injected Channel3 selected + * @arg ADC_InjectedChannel_4: Injected Channel4 selected + * @retval The Data conversion value. + */ +uint16_t ADC_GetInjectedConversionValue(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_INJECTED_CHANNEL(ADC_InjectedChannel)); + + tmp = (uint32_t)ADCx; + tmp += ADC_InjectedChannel + JDR_OFFSET; + + /* Returns the selected injected channel conversion data value */ + return (uint16_t) (*(__IO uint32_t*) tmp); +} +/** + * @} + */ + +/** @defgroup ADC_Group7 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the ADC Interrupts and + to get the status and clear flags and Interrupts pending bits. + + Each ADC provides 4 Interrupts sources and 6 Flags which can be divided into + 3 groups: + + I. Flags and Interrupts for ADC regular channels + ================================================= + Flags : + ---------- + 1. ADC_FLAG_OVR : Overrun detection when regular converted data are lost + + 2. ADC_FLAG_EOC : Regular channel end of conversion ==> to indicate (depending + on EOCS bit, managed by ADC_EOCOnEachRegularChannelCmd() ) the end of: + ==> a regular CHANNEL conversion + ==> sequence of regular GROUP conversions . + + 3. ADC_FLAG_STRT: Regular channel start ==> to indicate when regular CHANNEL + conversion starts. + + Interrupts : + ------------ + 1. ADC_IT_OVR : specifies the interrupt source for Overrun detection event. + 2. ADC_IT_EOC : specifies the interrupt source for Regular channel end of + conversion event. + + + II. Flags and Interrupts for ADC Injected channels + ================================================= + Flags : + ---------- + 1. ADC_FLAG_JEOC : Injected channel end of conversion ==> to indicate at + the end of injected GROUP conversion + + 2. ADC_FLAG_JSTRT: Injected channel start ==> to indicate hardware when + injected GROUP conversion starts. + + Interrupts : + ------------ + 1. ADC_IT_JEOC : specifies the interrupt source for Injected channel end of + conversion event. + + III. General Flags and Interrupts for the ADC + ================================================= + Flags : + ---------- + 1. ADC_FLAG_AWD: Analog watchdog ==> to indicate if the converted voltage + crosses the programmed thresholds values. + + Interrupts : + ------------ + 1. ADC_IT_AWD : specifies the interrupt source for Analog watchdog event. + + + The user should identify which mode will be used in his application to manage + the ADC controller events: Polling mode or Interrupt mode. + + In the Polling Mode it is advised to use the following functions: + - ADC_GetFlagStatus() : to check if flags events occur. + - ADC_ClearFlag() : to clear the flags events. + + In the Interrupt Mode it is advised to use the following functions: + - ADC_ITConfig() : to enable or disable the interrupt source. + - ADC_GetITStatus() : to check if Interrupt occurs. + - ADC_ClearITPendingBit() : to clear the Interrupt pending Bit + (corresponding Flag). +@endverbatim + * @{ + */ +/** + * @brief Enables or disables the specified ADC interrupts. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_IT: specifies the ADC interrupt sources to be enabled or disabled. + * This parameter can be one of the following values: + * @arg ADC_IT_EOC: End of conversion interrupt mask + * @arg ADC_IT_AWD: Analog watchdog interrupt mask + * @arg ADC_IT_JEOC: End of injected conversion interrupt mask + * @arg ADC_IT_OVR: Overrun interrupt enable + * @param NewState: new state of the specified ADC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void ADC_ITConfig(ADC_TypeDef* ADCx, uint16_t ADC_IT, FunctionalState NewState) +{ + uint32_t itmask = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_ADC_IT(ADC_IT)); + + /* Get the ADC IT index */ + itmask = (uint8_t)ADC_IT; + itmask = (uint32_t)0x01 << itmask; + + if (NewState != DISABLE) + { + /* Enable the selected ADC interrupts */ + ADCx->CR1 |= itmask; + } + else + { + /* Disable the selected ADC interrupts */ + ADCx->CR1 &= (~(uint32_t)itmask); + } +} + +/** + * @brief Checks whether the specified ADC flag is set or not. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg ADC_FLAG_AWD: Analog watchdog flag + * @arg ADC_FLAG_EOC: End of conversion flag + * @arg ADC_FLAG_JEOC: End of injected group conversion flag + * @arg ADC_FLAG_JSTRT: Start of injected group conversion flag + * @arg ADC_FLAG_STRT: Start of regular group conversion flag + * @arg ADC_FLAG_OVR: Overrun flag + * @retval The new state of ADC_FLAG (SET or RESET). + */ +FlagStatus ADC_GetFlagStatus(ADC_TypeDef* ADCx, uint8_t ADC_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_GET_FLAG(ADC_FLAG)); + + /* Check the status of the specified ADC flag */ + if ((ADCx->SR & ADC_FLAG) != (uint8_t)RESET) + { + /* ADC_FLAG is set */ + bitstatus = SET; + } + else + { + /* ADC_FLAG is reset */ + bitstatus = RESET; + } + /* Return the ADC_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the ADCx's pending flags. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg ADC_FLAG_AWD: Analog watchdog flag + * @arg ADC_FLAG_EOC: End of conversion flag + * @arg ADC_FLAG_JEOC: End of injected group conversion flag + * @arg ADC_FLAG_JSTRT: Start of injected group conversion flag + * @arg ADC_FLAG_STRT: Start of regular group conversion flag + * @arg ADC_FLAG_OVR: Overrun flag + * @retval None + */ +void ADC_ClearFlag(ADC_TypeDef* ADCx, uint8_t ADC_FLAG) +{ + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_CLEAR_FLAG(ADC_FLAG)); + + /* Clear the selected ADC flags */ + ADCx->SR = ~(uint32_t)ADC_FLAG; +} + +/** + * @brief Checks whether the specified ADC interrupt has occurred or not. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_IT: specifies the ADC interrupt source to check. + * This parameter can be one of the following values: + * @arg ADC_IT_EOC: End of conversion interrupt mask + * @arg ADC_IT_AWD: Analog watchdog interrupt mask + * @arg ADC_IT_JEOC: End of injected conversion interrupt mask + * @arg ADC_IT_OVR: Overrun interrupt mask + * @retval The new state of ADC_IT (SET or RESET). + */ +ITStatus ADC_GetITStatus(ADC_TypeDef* ADCx, uint16_t ADC_IT) +{ + ITStatus bitstatus = RESET; + uint32_t itmask = 0, enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_IT(ADC_IT)); + + /* Get the ADC IT index */ + itmask = ADC_IT >> 8; + + /* Get the ADC_IT enable bit status */ + enablestatus = (ADCx->CR1 & ((uint32_t)0x01 << (uint8_t)ADC_IT)) ; + + /* Check the status of the specified ADC interrupt */ + if (((ADCx->SR & itmask) != (uint32_t)RESET) && enablestatus) + { + /* ADC_IT is set */ + bitstatus = SET; + } + else + { + /* ADC_IT is reset */ + bitstatus = RESET; + } + /* Return the ADC_IT status */ + return bitstatus; +} + +/** + * @brief Clears the ADCx's interrupt pending bits. + * @param ADCx: where x can be 1, 2 or 3 to select the ADC peripheral. + * @param ADC_IT: specifies the ADC interrupt pending bit to clear. + * This parameter can be one of the following values: + * @arg ADC_IT_EOC: End of conversion interrupt mask + * @arg ADC_IT_AWD: Analog watchdog interrupt mask + * @arg ADC_IT_JEOC: End of injected conversion interrupt mask + * @arg ADC_IT_OVR: Overrun interrupt mask + * @retval None + */ +void ADC_ClearITPendingBit(ADC_TypeDef* ADCx, uint16_t ADC_IT) +{ + uint8_t itmask = 0; + /* Check the parameters */ + assert_param(IS_ADC_ALL_PERIPH(ADCx)); + assert_param(IS_ADC_IT(ADC_IT)); + /* Get the ADC IT index */ + itmask = (uint8_t)(ADC_IT >> 8); + /* Clear the selected ADC interrupt pending bits */ + ADCx->SR = ~(uint32_t)itmask; +} +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_can.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_can.c new file mode 100644 index 00000000..5198acee --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_can.c @@ -0,0 +1,1704 @@ +/** + ****************************************************************************** + * @file stm32f2xx_can.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Controller area network (CAN) peripheral: + * - Initialization and Configuration + * - CAN Frames Transmission + * - CAN Frames Reception + * - Operation modes switch + * - Error management + * - Interrupts and flags + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + + * 1. Enable the CAN controller interface clock using + * RCC_APB1PeriphClockCmd(RCC_APB1Periph_CAN1, ENABLE); for CAN1 + * and RCC_APB1PeriphClockCmd(RCC_APB1Periph_CAN2, ENABLE); for CAN2 + * @note In case you are using CAN2 only, you have to enable the CAN1 clock. + * + * 2. CAN pins configuration + * - Enable the clock for the CAN GPIOs using the following function: + * RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + * - Connect the involved CAN pins to AF9 using the following function + * GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_CANx); + * - Configure these CAN pins in alternate function mode by calling + * the function GPIO_Init(); + * + * 3. Initialise and configure the CAN using CAN_Init() and + * CAN_FilterInit() functions. + * + * 4. Transmit the desired CAN frame using CAN_Transmit() function. + * + * 5. Check the transmission of a CAN frame using CAN_TransmitStatus() + * function. + * + * 6. Cancel the transmission of a CAN frame using CAN_CancelTransmit() + * function. + * + * 7. Receive a CAN frame using CAN_Recieve() function. + * + * 8. Release the receive FIFOs using CAN_FIFORelease() function. + * + * 9. Return the number of pending received frames using + * CAN_MessagePending() function. + * + * 10. To control CAN events you can use one of the following two methods: + * - Check on CAN flags using the CAN_GetFlagStatus() function. + * - Use CAN interrupts through the function CAN_ITConfig() at + * initialization phase and CAN_GetITStatus() function into + * interrupt routines to check if the event has occurred or not. + * After checking on a flag you should clear it using CAN_ClearFlag() + * function. And after checking on an interrupt event you should + * clear it using CAN_ClearITPendingBit() function. + * + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_can.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CAN + * @brief CAN driver modules + * @{ + */ +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* CAN Master Control Register bits */ +#define MCR_DBF ((uint32_t)0x00010000) /* software master reset */ + +/* CAN Mailbox Transmit Request */ +#define TMIDxR_TXRQ ((uint32_t)0x00000001) /* Transmit mailbox request */ + +/* CAN Filter Master Register bits */ +#define FMR_FINIT ((uint32_t)0x00000001) /* Filter init mode */ + +/* Time out for INAK bit */ +#define INAK_TIMEOUT ((uint32_t)0x0000FFFF) +/* Time out for SLAK bit */ +#define SLAK_TIMEOUT ((uint32_t)0x0000FFFF) + +/* Flags in TSR register */ +#define CAN_FLAGS_TSR ((uint32_t)0x08000000) +/* Flags in RF1R register */ +#define CAN_FLAGS_RF1R ((uint32_t)0x04000000) +/* Flags in RF0R register */ +#define CAN_FLAGS_RF0R ((uint32_t)0x02000000) +/* Flags in MSR register */ +#define CAN_FLAGS_MSR ((uint32_t)0x01000000) +/* Flags in ESR register */ +#define CAN_FLAGS_ESR ((uint32_t)0x00F00000) + +/* Mailboxes definition */ +#define CAN_TXMAILBOX_0 ((uint8_t)0x00) +#define CAN_TXMAILBOX_1 ((uint8_t)0x01) +#define CAN_TXMAILBOX_2 ((uint8_t)0x02) + +#define CAN_MODE_MASK ((uint32_t) 0x00000003) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ +static ITStatus CheckITStatus(uint32_t CAN_Reg, uint32_t It_Bit); + +/** @defgroup CAN_Private_Functions + * @{ + */ + +/** @defgroup CAN_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to + - Initialize the CAN peripherals : Prescaler, operating mode, the maximum number + of time quanta to perform resynchronization, the number of time quanta in + Bit Segment 1 and 2 and many other modes. + Refer to @ref CAN_InitTypeDef for more details. + - Configures the CAN reception filter. + - Select the start bank filter for slave CAN. + - Enables or disables the Debug Freeze mode for CAN + - Enables or disables the CAN Time Trigger Operation communication mode + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the CAN peripheral registers to their default reset values. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @retval None. + */ +void CAN_DeInit(CAN_TypeDef* CANx) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + if (CANx == CAN1) + { + /* Enable CAN1 reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, ENABLE); + /* Release CAN1 from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, DISABLE); + } + else + { + /* Enable CAN2 reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN2, ENABLE); + /* Release CAN2 from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN2, DISABLE); + } +} + +/** + * @brief Initializes the CAN peripheral according to the specified + * parameters in the CAN_InitStruct. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param CAN_InitStruct: pointer to a CAN_InitTypeDef structure that contains + * the configuration information for the CAN peripheral. + * @retval Constant indicates initialization succeed which will be + * CAN_InitStatus_Failed or CAN_InitStatus_Success. + */ +uint8_t CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct) +{ + uint8_t InitStatus = CAN_InitStatus_Failed; + uint32_t wait_ack = 0x00000000; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_TTCM)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_ABOM)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_AWUM)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_NART)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_RFLM)); + assert_param(IS_FUNCTIONAL_STATE(CAN_InitStruct->CAN_TXFP)); + assert_param(IS_CAN_MODE(CAN_InitStruct->CAN_Mode)); + assert_param(IS_CAN_SJW(CAN_InitStruct->CAN_SJW)); + assert_param(IS_CAN_BS1(CAN_InitStruct->CAN_BS1)); + assert_param(IS_CAN_BS2(CAN_InitStruct->CAN_BS2)); + assert_param(IS_CAN_PRESCALER(CAN_InitStruct->CAN_Prescaler)); + + /* Exit from sleep mode */ + CANx->MCR &= (~(uint32_t)CAN_MCR_SLEEP); + + /* Request initialisation */ + CANx->MCR |= CAN_MCR_INRQ ; + + /* Wait the acknowledge */ + while (((CANx->MSR & CAN_MSR_INAK) != CAN_MSR_INAK) && (wait_ack != INAK_TIMEOUT)) + { + wait_ack++; + } + + /* Check acknowledge */ + if ((CANx->MSR & CAN_MSR_INAK) != CAN_MSR_INAK) + { + InitStatus = CAN_InitStatus_Failed; + } + else + { + /* Set the time triggered communication mode */ + if (CAN_InitStruct->CAN_TTCM == ENABLE) + { + CANx->MCR |= CAN_MCR_TTCM; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_TTCM; + } + + /* Set the automatic bus-off management */ + if (CAN_InitStruct->CAN_ABOM == ENABLE) + { + CANx->MCR |= CAN_MCR_ABOM; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_ABOM; + } + + /* Set the automatic wake-up mode */ + if (CAN_InitStruct->CAN_AWUM == ENABLE) + { + CANx->MCR |= CAN_MCR_AWUM; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_AWUM; + } + + /* Set the no automatic retransmission */ + if (CAN_InitStruct->CAN_NART == ENABLE) + { + CANx->MCR |= CAN_MCR_NART; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_NART; + } + + /* Set the receive FIFO locked mode */ + if (CAN_InitStruct->CAN_RFLM == ENABLE) + { + CANx->MCR |= CAN_MCR_RFLM; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_RFLM; + } + + /* Set the transmit FIFO priority */ + if (CAN_InitStruct->CAN_TXFP == ENABLE) + { + CANx->MCR |= CAN_MCR_TXFP; + } + else + { + CANx->MCR &= ~(uint32_t)CAN_MCR_TXFP; + } + + /* Set the bit timing register */ + CANx->BTR = (uint32_t)((uint32_t)CAN_InitStruct->CAN_Mode << 30) | \ + ((uint32_t)CAN_InitStruct->CAN_SJW << 24) | \ + ((uint32_t)CAN_InitStruct->CAN_BS1 << 16) | \ + ((uint32_t)CAN_InitStruct->CAN_BS2 << 20) | \ + ((uint32_t)CAN_InitStruct->CAN_Prescaler - 1); + + /* Request leave initialisation */ + CANx->MCR &= ~(uint32_t)CAN_MCR_INRQ; + + /* Wait the acknowledge */ + wait_ack = 0; + + while (((CANx->MSR & CAN_MSR_INAK) == CAN_MSR_INAK) && (wait_ack != INAK_TIMEOUT)) + { + wait_ack++; + } + + /* ...and check acknowledged */ + if ((CANx->MSR & CAN_MSR_INAK) == CAN_MSR_INAK) + { + InitStatus = CAN_InitStatus_Failed; + } + else + { + InitStatus = CAN_InitStatus_Success ; + } + } + + /* At this step, return the status of initialization */ + return InitStatus; +} + +/** + * @brief Configures the CAN reception filter according to the specified + * parameters in the CAN_FilterInitStruct. + * @param CAN_FilterInitStruct: pointer to a CAN_FilterInitTypeDef structure that + * contains the configuration information. + * @retval None + */ +void CAN_FilterInit(CAN_FilterInitTypeDef* CAN_FilterInitStruct) +{ + uint32_t filter_number_bit_pos = 0; + /* Check the parameters */ + assert_param(IS_CAN_FILTER_NUMBER(CAN_FilterInitStruct->CAN_FilterNumber)); + assert_param(IS_CAN_FILTER_MODE(CAN_FilterInitStruct->CAN_FilterMode)); + assert_param(IS_CAN_FILTER_SCALE(CAN_FilterInitStruct->CAN_FilterScale)); + assert_param(IS_CAN_FILTER_FIFO(CAN_FilterInitStruct->CAN_FilterFIFOAssignment)); + assert_param(IS_FUNCTIONAL_STATE(CAN_FilterInitStruct->CAN_FilterActivation)); + + filter_number_bit_pos = ((uint32_t)1) << CAN_FilterInitStruct->CAN_FilterNumber; + + /* Initialisation mode for the filter */ + CAN1->FMR |= FMR_FINIT; + + /* Filter Deactivation */ + CAN1->FA1R &= ~(uint32_t)filter_number_bit_pos; + + /* Filter Scale */ + if (CAN_FilterInitStruct->CAN_FilterScale == CAN_FilterScale_16bit) + { + /* 16-bit scale for the filter */ + CAN1->FS1R &= ~(uint32_t)filter_number_bit_pos; + + /* First 16-bit identifier and First 16-bit mask */ + /* Or First 16-bit identifier and Second 16-bit identifier */ + CAN1->sFilterRegister[CAN_FilterInitStruct->CAN_FilterNumber].FR1 = + ((0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterMaskIdLow) << 16) | + (0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterIdLow); + + /* Second 16-bit identifier and Second 16-bit mask */ + /* Or Third 16-bit identifier and Fourth 16-bit identifier */ + CAN1->sFilterRegister[CAN_FilterInitStruct->CAN_FilterNumber].FR2 = + ((0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterMaskIdHigh) << 16) | + (0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterIdHigh); + } + + if (CAN_FilterInitStruct->CAN_FilterScale == CAN_FilterScale_32bit) + { + /* 32-bit scale for the filter */ + CAN1->FS1R |= filter_number_bit_pos; + /* 32-bit identifier or First 32-bit identifier */ + CAN1->sFilterRegister[CAN_FilterInitStruct->CAN_FilterNumber].FR1 = + ((0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterIdHigh) << 16) | + (0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterIdLow); + /* 32-bit mask or Second 32-bit identifier */ + CAN1->sFilterRegister[CAN_FilterInitStruct->CAN_FilterNumber].FR2 = + ((0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterMaskIdHigh) << 16) | + (0x0000FFFF & (uint32_t)CAN_FilterInitStruct->CAN_FilterMaskIdLow); + } + + /* Filter Mode */ + if (CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdMask) + { + /*Id/Mask mode for the filter*/ + CAN1->FM1R &= ~(uint32_t)filter_number_bit_pos; + } + else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */ + { + /*Identifier list mode for the filter*/ + CAN1->FM1R |= (uint32_t)filter_number_bit_pos; + } + + /* Filter FIFO assignment */ + if (CAN_FilterInitStruct->CAN_FilterFIFOAssignment == CAN_Filter_FIFO0) + { + /* FIFO 0 assignation for the filter */ + CAN1->FFA1R &= ~(uint32_t)filter_number_bit_pos; + } + + if (CAN_FilterInitStruct->CAN_FilterFIFOAssignment == CAN_Filter_FIFO1) + { + /* FIFO 1 assignation for the filter */ + CAN1->FFA1R |= (uint32_t)filter_number_bit_pos; + } + + /* Filter activation */ + if (CAN_FilterInitStruct->CAN_FilterActivation == ENABLE) + { + CAN1->FA1R |= filter_number_bit_pos; + } + + /* Leave the initialisation mode for the filter */ + CAN1->FMR &= ~FMR_FINIT; +} + +/** + * @brief Fills each CAN_InitStruct member with its default value. + * @param CAN_InitStruct: pointer to a CAN_InitTypeDef structure which ill be initialized. + * @retval None + */ +void CAN_StructInit(CAN_InitTypeDef* CAN_InitStruct) +{ + /* Reset CAN init structure parameters values */ + + /* Initialize the time triggered communication mode */ + CAN_InitStruct->CAN_TTCM = DISABLE; + + /* Initialize the automatic bus-off management */ + CAN_InitStruct->CAN_ABOM = DISABLE; + + /* Initialize the automatic wake-up mode */ + CAN_InitStruct->CAN_AWUM = DISABLE; + + /* Initialize the no automatic retransmission */ + CAN_InitStruct->CAN_NART = DISABLE; + + /* Initialize the receive FIFO locked mode */ + CAN_InitStruct->CAN_RFLM = DISABLE; + + /* Initialize the transmit FIFO priority */ + CAN_InitStruct->CAN_TXFP = DISABLE; + + /* Initialize the CAN_Mode member */ + CAN_InitStruct->CAN_Mode = CAN_Mode_Normal; + + /* Initialize the CAN_SJW member */ + CAN_InitStruct->CAN_SJW = CAN_SJW_1tq; + + /* Initialize the CAN_BS1 member */ + CAN_InitStruct->CAN_BS1 = CAN_BS1_4tq; + + /* Initialize the CAN_BS2 member */ + CAN_InitStruct->CAN_BS2 = CAN_BS2_3tq; + + /* Initialize the CAN_Prescaler member */ + CAN_InitStruct->CAN_Prescaler = 1; +} + +/** + * @brief Select the start bank filter for slave CAN. + * @param CAN_BankNumber: Select the start slave bank filter from 1..27. + * @retval None + */ +void CAN_SlaveStartBank(uint8_t CAN_BankNumber) +{ + /* Check the parameters */ + assert_param(IS_CAN_BANKNUMBER(CAN_BankNumber)); + + /* Enter Initialisation mode for the filter */ + CAN1->FMR |= FMR_FINIT; + + /* Select the start slave bank */ + CAN1->FMR &= (uint32_t)0xFFFFC0F1 ; + CAN1->FMR |= (uint32_t)(CAN_BankNumber)<<8; + + /* Leave Initialisation mode for the filter */ + CAN1->FMR &= ~FMR_FINIT; +} + +/** + * @brief Enables or disables the DBG Freeze for CAN. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param NewState: new state of the CAN peripheral. + * This parameter can be: ENABLE (CAN reception/transmission is frozen + * during debug. Reception FIFOs can still be accessed/controlled normally) + * or DISABLE (CAN is working during debug). + * @retval None + */ +void CAN_DBGFreeze(CAN_TypeDef* CANx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable Debug Freeze */ + CANx->MCR |= MCR_DBF; + } + else + { + /* Disable Debug Freeze */ + CANx->MCR &= ~MCR_DBF; + } +} + + +/** + * @brief Enables or disables the CAN Time TriggerOperation communication mode. + * @note DLC must be programmed as 8 in order Time Stamp (2 bytes) to be + * sent over the CAN bus. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param NewState: Mode new state. This parameter can be: ENABLE or DISABLE. + * When enabled, Time stamp (TIME[15:0]) value is sent in the last two + * data bytes of the 8-byte message: TIME[7:0] in data byte 6 and TIME[15:8] + * in data byte 7. + * @retval None + */ +void CAN_TTComModeCmd(CAN_TypeDef* CANx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the TTCM mode */ + CANx->MCR |= CAN_MCR_TTCM; + + /* Set TGT bits */ + CANx->sTxMailBox[0].TDTR |= ((uint32_t)CAN_TDT0R_TGT); + CANx->sTxMailBox[1].TDTR |= ((uint32_t)CAN_TDT1R_TGT); + CANx->sTxMailBox[2].TDTR |= ((uint32_t)CAN_TDT2R_TGT); + } + else + { + /* Disable the TTCM mode */ + CANx->MCR &= (uint32_t)(~(uint32_t)CAN_MCR_TTCM); + + /* Reset TGT bits */ + CANx->sTxMailBox[0].TDTR &= ((uint32_t)~CAN_TDT0R_TGT); + CANx->sTxMailBox[1].TDTR &= ((uint32_t)~CAN_TDT1R_TGT); + CANx->sTxMailBox[2].TDTR &= ((uint32_t)~CAN_TDT2R_TGT); + } +} +/** + * @} + */ + + +/** @defgroup CAN_Group2 CAN Frames Transmission functions + * @brief CAN Frames Transmission functions + * +@verbatim + =============================================================================== + CAN Frames Transmission functions + =============================================================================== + This section provides functions allowing to + - Initiate and transmit a CAN frame message (if there is an empty mailbox). + - Check the transmission status of a CAN Frame + - Cancel a transmit request + +@endverbatim + * @{ + */ + +/** + * @brief Initiates and transmits a CAN frame message. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param TxMessage: pointer to a structure which contains CAN Id, CAN DLC and CAN data. + * @retval The number of the mailbox that is used for transmission or + * CAN_TxStatus_NoMailBox if there is no empty mailbox. + */ +uint8_t CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage) +{ + uint8_t transmit_mailbox = 0; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_IDTYPE(TxMessage->IDE)); + assert_param(IS_CAN_RTR(TxMessage->RTR)); + assert_param(IS_CAN_DLC(TxMessage->DLC)); + + /* Select one empty transmit mailbox */ + if ((CANx->TSR&CAN_TSR_TME0) == CAN_TSR_TME0) + { + transmit_mailbox = 0; + } + else if ((CANx->TSR&CAN_TSR_TME1) == CAN_TSR_TME1) + { + transmit_mailbox = 1; + } + else if ((CANx->TSR&CAN_TSR_TME2) == CAN_TSR_TME2) + { + transmit_mailbox = 2; + } + else + { + transmit_mailbox = CAN_TxStatus_NoMailBox; + } + + if (transmit_mailbox != CAN_TxStatus_NoMailBox) + { + /* Set up the Id */ + CANx->sTxMailBox[transmit_mailbox].TIR &= TMIDxR_TXRQ; + if (TxMessage->IDE == CAN_Id_Standard) + { + assert_param(IS_CAN_STDID(TxMessage->StdId)); + CANx->sTxMailBox[transmit_mailbox].TIR |= ((TxMessage->StdId << 21) | \ + TxMessage->RTR); + } + else + { + assert_param(IS_CAN_EXTID(TxMessage->ExtId)); + CANx->sTxMailBox[transmit_mailbox].TIR |= ((TxMessage->ExtId << 3) | \ + TxMessage->IDE | \ + TxMessage->RTR); + } + + /* Set up the DLC */ + TxMessage->DLC &= (uint8_t)0x0000000F; + CANx->sTxMailBox[transmit_mailbox].TDTR &= (uint32_t)0xFFFFFFF0; + CANx->sTxMailBox[transmit_mailbox].TDTR |= TxMessage->DLC; + + /* Set up the data field */ + CANx->sTxMailBox[transmit_mailbox].TDLR = (((uint32_t)TxMessage->Data[3] << 24) | + ((uint32_t)TxMessage->Data[2] << 16) | + ((uint32_t)TxMessage->Data[1] << 8) | + ((uint32_t)TxMessage->Data[0])); + CANx->sTxMailBox[transmit_mailbox].TDHR = (((uint32_t)TxMessage->Data[7] << 24) | + ((uint32_t)TxMessage->Data[6] << 16) | + ((uint32_t)TxMessage->Data[5] << 8) | + ((uint32_t)TxMessage->Data[4])); + /* Request transmission */ + CANx->sTxMailBox[transmit_mailbox].TIR |= TMIDxR_TXRQ; + } + return transmit_mailbox; +} + +/** + * @brief Checks the transmission status of a CAN Frame. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param TransmitMailbox: the number of the mailbox that is used for transmission. + * @retval CAN_TxStatus_Ok if the CAN driver transmits the message, + * CAN_TxStatus_Failed in an other case. + */ +uint8_t CAN_TransmitStatus(CAN_TypeDef* CANx, uint8_t TransmitMailbox) +{ + uint32_t state = 0; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_TRANSMITMAILBOX(TransmitMailbox)); + + switch (TransmitMailbox) + { + case (CAN_TXMAILBOX_0): + state = CANx->TSR & (CAN_TSR_RQCP0 | CAN_TSR_TXOK0 | CAN_TSR_TME0); + break; + case (CAN_TXMAILBOX_1): + state = CANx->TSR & (CAN_TSR_RQCP1 | CAN_TSR_TXOK1 | CAN_TSR_TME1); + break; + case (CAN_TXMAILBOX_2): + state = CANx->TSR & (CAN_TSR_RQCP2 | CAN_TSR_TXOK2 | CAN_TSR_TME2); + break; + default: + state = CAN_TxStatus_Failed; + break; + } + switch (state) + { + /* transmit pending */ + case (0x0): state = CAN_TxStatus_Pending; + break; + /* transmit failed */ + case (CAN_TSR_RQCP0 | CAN_TSR_TME0): state = CAN_TxStatus_Failed; + break; + case (CAN_TSR_RQCP1 | CAN_TSR_TME1): state = CAN_TxStatus_Failed; + break; + case (CAN_TSR_RQCP2 | CAN_TSR_TME2): state = CAN_TxStatus_Failed; + break; + /* transmit succeeded */ + case (CAN_TSR_RQCP0 | CAN_TSR_TXOK0 | CAN_TSR_TME0):state = CAN_TxStatus_Ok; + break; + case (CAN_TSR_RQCP1 | CAN_TSR_TXOK1 | CAN_TSR_TME1):state = CAN_TxStatus_Ok; + break; + case (CAN_TSR_RQCP2 | CAN_TSR_TXOK2 | CAN_TSR_TME2):state = CAN_TxStatus_Ok; + break; + default: state = CAN_TxStatus_Failed; + break; + } + return (uint8_t) state; +} + +/** + * @brief Cancels a transmit request. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param Mailbox: Mailbox number. + * @retval None + */ +void CAN_CancelTransmit(CAN_TypeDef* CANx, uint8_t Mailbox) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_TRANSMITMAILBOX(Mailbox)); + /* abort transmission */ + switch (Mailbox) + { + case (CAN_TXMAILBOX_0): CANx->TSR |= CAN_TSR_ABRQ0; + break; + case (CAN_TXMAILBOX_1): CANx->TSR |= CAN_TSR_ABRQ1; + break; + case (CAN_TXMAILBOX_2): CANx->TSR |= CAN_TSR_ABRQ2; + break; + default: + break; + } +} +/** + * @} + */ + + +/** @defgroup CAN_Group3 CAN Frames Reception functions + * @brief CAN Frames Reception functions + * +@verbatim + =============================================================================== + CAN Frames Reception functions + =============================================================================== + This section provides functions allowing to + - Receive a correct CAN frame + - Release a specified receive FIFO (2 FIFOs are available) + - Return the number of the pending received CAN frames + +@endverbatim + * @{ + */ + +/** + * @brief Receives a correct CAN frame. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param FIFONumber: Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. + * @param RxMessage: pointer to a structure receive frame which contains CAN Id, + * CAN DLC, CAN data and FMI number. + * @retval None + */ +void CAN_Receive(CAN_TypeDef* CANx, uint8_t FIFONumber, CanRxMsg* RxMessage) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_FIFO(FIFONumber)); + /* Get the Id */ + RxMessage->IDE = (uint8_t)0x04 & CANx->sFIFOMailBox[FIFONumber].RIR; + if (RxMessage->IDE == CAN_Id_Standard) + { + RxMessage->StdId = (uint32_t)0x000007FF & (CANx->sFIFOMailBox[FIFONumber].RIR >> 21); + } + else + { + RxMessage->ExtId = (uint32_t)0x1FFFFFFF & (CANx->sFIFOMailBox[FIFONumber].RIR >> 3); + } + + RxMessage->RTR = (uint8_t)0x02 & CANx->sFIFOMailBox[FIFONumber].RIR; + /* Get the DLC */ + RxMessage->DLC = (uint8_t)0x0F & CANx->sFIFOMailBox[FIFONumber].RDTR; + /* Get the FMI */ + RxMessage->FMI = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDTR >> 8); + /* Get the data field */ + RxMessage->Data[0] = (uint8_t)0xFF & CANx->sFIFOMailBox[FIFONumber].RDLR; + RxMessage->Data[1] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDLR >> 8); + RxMessage->Data[2] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDLR >> 16); + RxMessage->Data[3] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDLR >> 24); + RxMessage->Data[4] = (uint8_t)0xFF & CANx->sFIFOMailBox[FIFONumber].RDHR; + RxMessage->Data[5] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDHR >> 8); + RxMessage->Data[6] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDHR >> 16); + RxMessage->Data[7] = (uint8_t)0xFF & (CANx->sFIFOMailBox[FIFONumber].RDHR >> 24); + /* Release the FIFO */ + /* Release FIFO0 */ + if (FIFONumber == CAN_FIFO0) + { + CANx->RF0R |= CAN_RF0R_RFOM0; + } + /* Release FIFO1 */ + else /* FIFONumber == CAN_FIFO1 */ + { + CANx->RF1R |= CAN_RF1R_RFOM1; + } +} + +/** + * @brief Releases the specified receive FIFO. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param FIFONumber: FIFO to release, CAN_FIFO0 or CAN_FIFO1. + * @retval None + */ +void CAN_FIFORelease(CAN_TypeDef* CANx, uint8_t FIFONumber) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_FIFO(FIFONumber)); + /* Release FIFO0 */ + if (FIFONumber == CAN_FIFO0) + { + CANx->RF0R |= CAN_RF0R_RFOM0; + } + /* Release FIFO1 */ + else /* FIFONumber == CAN_FIFO1 */ + { + CANx->RF1R |= CAN_RF1R_RFOM1; + } +} + +/** + * @brief Returns the number of pending received messages. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @param FIFONumber: Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. + * @retval NbMessage : which is the number of pending message. + */ +uint8_t CAN_MessagePending(CAN_TypeDef* CANx, uint8_t FIFONumber) +{ + uint8_t message_pending=0; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_FIFO(FIFONumber)); + if (FIFONumber == CAN_FIFO0) + { + message_pending = (uint8_t)(CANx->RF0R&(uint32_t)0x03); + } + else if (FIFONumber == CAN_FIFO1) + { + message_pending = (uint8_t)(CANx->RF1R&(uint32_t)0x03); + } + else + { + message_pending = 0; + } + return message_pending; +} +/** + * @} + */ + + +/** @defgroup CAN_Group4 CAN Operation modes functions + * @brief CAN Operation modes functions + * +@verbatim + =============================================================================== + CAN Operation modes functions + =============================================================================== + This section provides functions allowing to select the CAN Operation modes + - sleep mode + - normal mode + - initialization mode + +@endverbatim + * @{ + */ + + +/** + * @brief Selects the CAN Operation mode. + * @param CAN_OperatingMode: CAN Operating Mode. + * This parameter can be one of @ref CAN_OperatingMode_TypeDef enumeration. + * @retval status of the requested mode which can be + * - CAN_ModeStatus_Failed: CAN failed entering the specific mode + * - CAN_ModeStatus_Success: CAN Succeed entering the specific mode + */ +uint8_t CAN_OperatingModeRequest(CAN_TypeDef* CANx, uint8_t CAN_OperatingMode) +{ + uint8_t status = CAN_ModeStatus_Failed; + + /* Timeout for INAK or also for SLAK bits*/ + uint32_t timeout = INAK_TIMEOUT; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_OPERATING_MODE(CAN_OperatingMode)); + + if (CAN_OperatingMode == CAN_OperatingMode_Initialization) + { + /* Request initialisation */ + CANx->MCR = (uint32_t)((CANx->MCR & (uint32_t)(~(uint32_t)CAN_MCR_SLEEP)) | CAN_MCR_INRQ); + + /* Wait the acknowledge */ + while (((CANx->MSR & CAN_MODE_MASK) != CAN_MSR_INAK) && (timeout != 0)) + { + timeout--; + } + if ((CANx->MSR & CAN_MODE_MASK) != CAN_MSR_INAK) + { + status = CAN_ModeStatus_Failed; + } + else + { + status = CAN_ModeStatus_Success; + } + } + else if (CAN_OperatingMode == CAN_OperatingMode_Normal) + { + /* Request leave initialisation and sleep mode and enter Normal mode */ + CANx->MCR &= (uint32_t)(~(CAN_MCR_SLEEP|CAN_MCR_INRQ)); + + /* Wait the acknowledge */ + while (((CANx->MSR & CAN_MODE_MASK) != 0) && (timeout!=0)) + { + timeout--; + } + if ((CANx->MSR & CAN_MODE_MASK) != 0) + { + status = CAN_ModeStatus_Failed; + } + else + { + status = CAN_ModeStatus_Success; + } + } + else if (CAN_OperatingMode == CAN_OperatingMode_Sleep) + { + /* Request Sleep mode */ + CANx->MCR = (uint32_t)((CANx->MCR & (uint32_t)(~(uint32_t)CAN_MCR_INRQ)) | CAN_MCR_SLEEP); + + /* Wait the acknowledge */ + while (((CANx->MSR & CAN_MODE_MASK) != CAN_MSR_SLAK) && (timeout!=0)) + { + timeout--; + } + if ((CANx->MSR & CAN_MODE_MASK) != CAN_MSR_SLAK) + { + status = CAN_ModeStatus_Failed; + } + else + { + status = CAN_ModeStatus_Success; + } + } + else + { + status = CAN_ModeStatus_Failed; + } + + return (uint8_t) status; +} + +/** + * @brief Enters the Sleep (low power) mode. + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @retval CAN_Sleep_Ok if sleep entered, CAN_Sleep_Failed otherwise. + */ +uint8_t CAN_Sleep(CAN_TypeDef* CANx) +{ + uint8_t sleepstatus = CAN_Sleep_Failed; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Request Sleep mode */ + CANx->MCR = (((CANx->MCR) & (uint32_t)(~(uint32_t)CAN_MCR_INRQ)) | CAN_MCR_SLEEP); + + /* Sleep mode status */ + if ((CANx->MSR & (CAN_MSR_SLAK|CAN_MSR_INAK)) == CAN_MSR_SLAK) + { + /* Sleep mode not entered */ + sleepstatus = CAN_Sleep_Ok; + } + /* return sleep mode status */ + return (uint8_t)sleepstatus; +} + +/** + * @brief Wakes up the CAN peripheral from sleep mode . + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @retval CAN_WakeUp_Ok if sleep mode left, CAN_WakeUp_Failed otherwise. + */ +uint8_t CAN_WakeUp(CAN_TypeDef* CANx) +{ + uint32_t wait_slak = SLAK_TIMEOUT; + uint8_t wakeupstatus = CAN_WakeUp_Failed; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Wake up request */ + CANx->MCR &= ~(uint32_t)CAN_MCR_SLEEP; + + /* Sleep mode status */ + while(((CANx->MSR & CAN_MSR_SLAK) == CAN_MSR_SLAK)&&(wait_slak!=0x00)) + { + wait_slak--; + } + if((CANx->MSR & CAN_MSR_SLAK) != CAN_MSR_SLAK) + { + /* wake up done : Sleep mode exited */ + wakeupstatus = CAN_WakeUp_Ok; + } + /* return wakeup status */ + return (uint8_t)wakeupstatus; +} +/** + * @} + */ + + +/** @defgroup CAN_Group5 CAN Bus Error management functions + * @brief CAN Bus Error management functions + * +@verbatim + =============================================================================== + CAN Bus Error management functions + =============================================================================== + This section provides functions allowing to + - Return the CANx's last error code (LEC) + - Return the CANx Receive Error Counter (REC) + - Return the LSB of the 9-bit CANx Transmit Error Counter(TEC). + + @note If TEC is greater than 255, The CAN is in bus-off state. + @note if REC or TEC are greater than 96, an Error warning flag occurs. + @note if REC or TEC are greater than 127, an Error Passive Flag occurs. + +@endverbatim + * @{ + */ + +/** + * @brief Returns the CANx's last error code (LEC). + * @param CANx: where x can be 1 or 2 to select the CAN peripheral. + * @retval Error code: + * - CAN_ERRORCODE_NoErr: No Error + * - CAN_ERRORCODE_StuffErr: Stuff Error + * - CAN_ERRORCODE_FormErr: Form Error + * - CAN_ERRORCODE_ACKErr : Acknowledgment Error + * - CAN_ERRORCODE_BitRecessiveErr: Bit Recessive Error + * - CAN_ERRORCODE_BitDominantErr: Bit Dominant Error + * - CAN_ERRORCODE_CRCErr: CRC Error + * - CAN_ERRORCODE_SoftwareSetErr: Software Set Error + */ +uint8_t CAN_GetLastErrorCode(CAN_TypeDef* CANx) +{ + uint8_t errorcode=0; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Get the error code*/ + errorcode = (((uint8_t)CANx->ESR) & (uint8_t)CAN_ESR_LEC); + + /* Return the error code*/ + return errorcode; +} + +/** + * @brief Returns the CANx Receive Error Counter (REC). + * @note In case of an error during reception, this counter is incremented + * by 1 or by 8 depending on the error condition as defined by the CAN + * standard. After every successful reception, the counter is + * decremented by 1 or reset to 120 if its value was higher than 128. + * When the counter value exceeds 127, the CAN controller enters the + * error passive state. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @retval CAN Receive Error Counter. + */ +uint8_t CAN_GetReceiveErrorCounter(CAN_TypeDef* CANx) +{ + uint8_t counter=0; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Get the Receive Error Counter*/ + counter = (uint8_t)((CANx->ESR & CAN_ESR_REC)>> 24); + + /* Return the Receive Error Counter*/ + return counter; +} + + +/** + * @brief Returns the LSB of the 9-bit CANx Transmit Error Counter(TEC). + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @retval LSB of the 9-bit CAN Transmit Error Counter. + */ +uint8_t CAN_GetLSBTransmitErrorCounter(CAN_TypeDef* CANx) +{ + uint8_t counter=0; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + + /* Get the LSB of the 9-bit CANx Transmit Error Counter(TEC) */ + counter = (uint8_t)((CANx->ESR & CAN_ESR_TEC)>> 16); + + /* Return the LSB of the 9-bit CANx Transmit Error Counter(TEC) */ + return counter; +} +/** + * @} + */ + +/** @defgroup CAN_Group6 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the CAN Interrupts and + to get the status and clear flags and Interrupts pending bits. + + The CAN provides 14 Interrupts sources and 15 Flags: + + =============== + Flags : + =============== + The 15 flags can be divided on 4 groups: + + A. Transmit Flags + ----------------------- + CAN_FLAG_RQCP0, + CAN_FLAG_RQCP1, + CAN_FLAG_RQCP2 : Request completed MailBoxes 0, 1 and 2 Flags + Set when when the last request (transmit or abort) has + been performed. + + B. Receive Flags + ----------------------- + + CAN_FLAG_FMP0, + CAN_FLAG_FMP1 : FIFO 0 and 1 Message Pending Flags + set to signal that messages are pending in the receive + FIFO. + These Flags are cleared only by hardware. + + CAN_FLAG_FF0, + CAN_FLAG_FF1 : FIFO 0 and 1 Full Flags + set when three messages are stored in the selected + FIFO. + + CAN_FLAG_FOV0 + CAN_FLAG_FOV1 : FIFO 0 and 1 Overrun Flags + set when a new message has been received and passed + the filter while the FIFO was full. + + C. Operating Mode Flags + ----------------------- + CAN_FLAG_WKU : Wake up Flag + set to signal that a SOF bit has been detected while + the CAN hardware was in Sleep mode. + + CAN_FLAG_SLAK : Sleep acknowledge Flag + Set to signal that the CAN has entered Sleep Mode. + + D. Error Flags + ----------------------- + CAN_FLAG_EWG : Error Warning Flag + Set when the warning limit has been reached (Receive + Error Counter or Transmit Error Counter greater than 96). + This Flag is cleared only by hardware. + + CAN_FLAG_EPV : Error Passive Flag + Set when the Error Passive limit has been reached + (Receive Error Counter or Transmit Error Counter + greater than 127). + This Flag is cleared only by hardware. + + CAN_FLAG_BOF : Bus-Off Flag + set when CAN enters the bus-off state. The bus-off + state is entered on TEC overflow, greater than 255. + This Flag is cleared only by hardware. + + CAN_FLAG_LEC : Last error code Flag + set If a message has been transferred (reception or + transmission) with error, and the error code is hold. + + =============== + Interrupts : + =============== + The 14 interrupts can be divided on 4 groups: + + A. Transmit interrupt + ----------------------- + CAN_IT_TME : Transmit mailbox empty Interrupt + if enabled, this interrupt source is pending when + no transmit request are pending for Tx mailboxes. + + B. Receive Interrupts + ----------------------- + CAN_IT_FMP0, + CAN_IT_FMP1 : FIFO 0 and FIFO1 message pending Interrupts + if enabled, these interrupt sources are pending when + messages are pending in the receive FIFO. + The corresponding interrupt pending bits are cleared + only by hardware. + + CAN_IT_FF0, + CAN_IT_FF1 : FIFO 0 and FIFO1 full Interrupts + if enabled, these interrupt sources are pending when + three messages are stored in the selected FIFO. + + CAN_IT_FOV0, + CAN_IT_FOV1 : FIFO 0 and FIFO1 overrun Interrupts + if enabled, these interrupt sources are pending when + a new message has been received and passed the filter + while the FIFO was full. + + C. Operating Mode Interrupts + ------------------------------- + CAN_IT_WKU : Wake-up Interrupt + if enabled, this interrupt source is pending when + a SOF bit has been detected while the CAN hardware was + in Sleep mode. + + CAN_IT_SLK : Sleep acknowledge Interrupt + if enabled, this interrupt source is pending when + the CAN has entered Sleep Mode. + + D. Error Interrupts + ----------------------- + CAN_IT_EWG : Error warning Interrupt + if enabled, this interrupt source is pending when + the warning limit has been reached (Receive Error + Counter or Transmit Error Counter=96). + + CAN_IT_EPV : Error passive Interrupt + if enabled, this interrupt source is pending when + the Error Passive limit has been reached (Receive + Error Counter or Transmit Error Counter>127). + + CAN_IT_BOF : Bus-off Interrupt + if enabled, this interrupt source is pending when + CAN enters the bus-off state. The bus-off state is + entered on TEC overflow, greater than 255. + This Flag is cleared only by hardware. + + CAN_IT_LEC : Last error code Interrupt + if enabled, this interrupt source is pending when + a message has been transferred (reception or + transmission) with error, and the error code is hold. + + CAN_IT_ERR : Error Interrupt + if enabled, this interrupt source is pending when + an error condition is pending. + + + Managing the CAN controller events : + ------------------------------------ + The user should identify which mode will be used in his application to manage + the CAN controller events: Polling mode or Interrupt mode. + + 1. In the Polling Mode it is advised to use the following functions: + - CAN_GetFlagStatus() : to check if flags events occur. + - CAN_ClearFlag() : to clear the flags events. + + + + 2. In the Interrupt Mode it is advised to use the following functions: + - CAN_ITConfig() : to enable or disable the interrupt source. + - CAN_GetITStatus() : to check if Interrupt occurs. + - CAN_ClearITPendingBit() : to clear the Interrupt pending Bit (corresponding Flag). + @note This function has no impact on CAN_IT_FMP0 and CAN_IT_FMP1 Interrupts + pending bits since there are cleared only by hardware. + +@endverbatim + * @{ + */ +/** + * @brief Enables or disables the specified CANx interrupts. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_IT: specifies the CAN interrupt sources to be enabled or disabled. + * This parameter can be: + * @arg CAN_IT_TME: Transmit mailbox empty Interrupt + * @arg CAN_IT_FMP0: FIFO 0 message pending Interrupt + * @arg CAN_IT_FF0: FIFO 0 full Interrupt + * @arg CAN_IT_FOV0: FIFO 0 overrun Interrupt + * @arg CAN_IT_FMP1: FIFO 1 message pending Interrupt + * @arg CAN_IT_FF1: FIFO 1 full Interrupt + * @arg CAN_IT_FOV1: FIFO 1 overrun Interrupt + * @arg CAN_IT_WKU: Wake-up Interrupt + * @arg CAN_IT_SLK: Sleep acknowledge Interrupt + * @arg CAN_IT_EWG: Error warning Interrupt + * @arg CAN_IT_EPV: Error passive Interrupt + * @arg CAN_IT_BOF: Bus-off Interrupt + * @arg CAN_IT_LEC: Last error code Interrupt + * @arg CAN_IT_ERR: Error Interrupt + * @param NewState: new state of the CAN interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void CAN_ITConfig(CAN_TypeDef* CANx, uint32_t CAN_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_IT(CAN_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected CANx interrupt */ + CANx->IER |= CAN_IT; + } + else + { + /* Disable the selected CANx interrupt */ + CANx->IER &= ~CAN_IT; + } +} +/** + * @brief Checks whether the specified CAN flag is set or not. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg CAN_FLAG_RQCP0: Request MailBox0 Flag + * @arg CAN_FLAG_RQCP1: Request MailBox1 Flag + * @arg CAN_FLAG_RQCP2: Request MailBox2 Flag + * @arg CAN_FLAG_FMP0: FIFO 0 Message Pending Flag + * @arg CAN_FLAG_FF0: FIFO 0 Full Flag + * @arg CAN_FLAG_FOV0: FIFO 0 Overrun Flag + * @arg CAN_FLAG_FMP1: FIFO 1 Message Pending Flag + * @arg CAN_FLAG_FF1: FIFO 1 Full Flag + * @arg CAN_FLAG_FOV1: FIFO 1 Overrun Flag + * @arg CAN_FLAG_WKU: Wake up Flag + * @arg CAN_FLAG_SLAK: Sleep acknowledge Flag + * @arg CAN_FLAG_EWG: Error Warning Flag + * @arg CAN_FLAG_EPV: Error Passive Flag + * @arg CAN_FLAG_BOF: Bus-Off Flag + * @arg CAN_FLAG_LEC: Last error code Flag + * @retval The new state of CAN_FLAG (SET or RESET). + */ +FlagStatus CAN_GetFlagStatus(CAN_TypeDef* CANx, uint32_t CAN_FLAG) +{ + FlagStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_GET_FLAG(CAN_FLAG)); + + + if((CAN_FLAG & CAN_FLAGS_ESR) != (uint32_t)RESET) + { + /* Check the status of the specified CAN flag */ + if ((CANx->ESR & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + else if((CAN_FLAG & CAN_FLAGS_MSR) != (uint32_t)RESET) + { + /* Check the status of the specified CAN flag */ + if ((CANx->MSR & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + else if((CAN_FLAG & CAN_FLAGS_TSR) != (uint32_t)RESET) + { + /* Check the status of the specified CAN flag */ + if ((CANx->TSR & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + else if((CAN_FLAG & CAN_FLAGS_RF0R) != (uint32_t)RESET) + { + /* Check the status of the specified CAN flag */ + if ((CANx->RF0R & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + else /* If(CAN_FLAG & CAN_FLAGS_RF1R != (uint32_t)RESET) */ + { + /* Check the status of the specified CAN flag */ + if ((uint32_t)(CANx->RF1R & (CAN_FLAG & 0x000FFFFF)) != (uint32_t)RESET) + { + /* CAN_FLAG is set */ + bitstatus = SET; + } + else + { + /* CAN_FLAG is reset */ + bitstatus = RESET; + } + } + /* Return the CAN_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the CAN's pending flags. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_FLAG: specifies the flag to clear. + * This parameter can be one of the following values: + * @arg CAN_FLAG_RQCP0: Request MailBox0 Flag + * @arg CAN_FLAG_RQCP1: Request MailBox1 Flag + * @arg CAN_FLAG_RQCP2: Request MailBox2 Flag + * @arg CAN_FLAG_FF0: FIFO 0 Full Flag + * @arg CAN_FLAG_FOV0: FIFO 0 Overrun Flag + * @arg CAN_FLAG_FF1: FIFO 1 Full Flag + * @arg CAN_FLAG_FOV1: FIFO 1 Overrun Flag + * @arg CAN_FLAG_WKU: Wake up Flag + * @arg CAN_FLAG_SLAK: Sleep acknowledge Flag + * @arg CAN_FLAG_LEC: Last error code Flag + * @retval None + */ +void CAN_ClearFlag(CAN_TypeDef* CANx, uint32_t CAN_FLAG) +{ + uint32_t flagtmp=0; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_CLEAR_FLAG(CAN_FLAG)); + + if (CAN_FLAG == CAN_FLAG_LEC) /* ESR register */ + { + /* Clear the selected CAN flags */ + CANx->ESR = (uint32_t)RESET; + } + else /* MSR or TSR or RF0R or RF1R */ + { + flagtmp = CAN_FLAG & 0x000FFFFF; + + if ((CAN_FLAG & CAN_FLAGS_RF0R)!=(uint32_t)RESET) + { + /* Receive Flags */ + CANx->RF0R = (uint32_t)(flagtmp); + } + else if ((CAN_FLAG & CAN_FLAGS_RF1R)!=(uint32_t)RESET) + { + /* Receive Flags */ + CANx->RF1R = (uint32_t)(flagtmp); + } + else if ((CAN_FLAG & CAN_FLAGS_TSR)!=(uint32_t)RESET) + { + /* Transmit Flags */ + CANx->TSR = (uint32_t)(flagtmp); + } + else /* If((CAN_FLAG & CAN_FLAGS_MSR)!=(uint32_t)RESET) */ + { + /* Operating mode Flags */ + CANx->MSR = (uint32_t)(flagtmp); + } + } +} + +/** + * @brief Checks whether the specified CANx interrupt has occurred or not. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_IT: specifies the CAN interrupt source to check. + * This parameter can be one of the following values: + * @arg CAN_IT_TME: Transmit mailbox empty Interrupt + * @arg CAN_IT_FMP0: FIFO 0 message pending Interrupt + * @arg CAN_IT_FF0: FIFO 0 full Interrupt + * @arg CAN_IT_FOV0: FIFO 0 overrun Interrupt + * @arg CAN_IT_FMP1: FIFO 1 message pending Interrupt + * @arg CAN_IT_FF1: FIFO 1 full Interrupt + * @arg CAN_IT_FOV1: FIFO 1 overrun Interrupt + * @arg CAN_IT_WKU: Wake-up Interrupt + * @arg CAN_IT_SLK: Sleep acknowledge Interrupt + * @arg CAN_IT_EWG: Error warning Interrupt + * @arg CAN_IT_EPV: Error passive Interrupt + * @arg CAN_IT_BOF: Bus-off Interrupt + * @arg CAN_IT_LEC: Last error code Interrupt + * @arg CAN_IT_ERR: Error Interrupt + * @retval The current state of CAN_IT (SET or RESET). + */ +ITStatus CAN_GetITStatus(CAN_TypeDef* CANx, uint32_t CAN_IT) +{ + ITStatus itstatus = RESET; + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_IT(CAN_IT)); + + /* check the interrupt enable bit */ + if((CANx->IER & CAN_IT) != RESET) + { + /* in case the Interrupt is enabled, .... */ + switch (CAN_IT) + { + case CAN_IT_TME: + /* Check CAN_TSR_RQCPx bits */ + itstatus = CheckITStatus(CANx->TSR, CAN_TSR_RQCP0|CAN_TSR_RQCP1|CAN_TSR_RQCP2); + break; + case CAN_IT_FMP0: + /* Check CAN_RF0R_FMP0 bit */ + itstatus = CheckITStatus(CANx->RF0R, CAN_RF0R_FMP0); + break; + case CAN_IT_FF0: + /* Check CAN_RF0R_FULL0 bit */ + itstatus = CheckITStatus(CANx->RF0R, CAN_RF0R_FULL0); + break; + case CAN_IT_FOV0: + /* Check CAN_RF0R_FOVR0 bit */ + itstatus = CheckITStatus(CANx->RF0R, CAN_RF0R_FOVR0); + break; + case CAN_IT_FMP1: + /* Check CAN_RF1R_FMP1 bit */ + itstatus = CheckITStatus(CANx->RF1R, CAN_RF1R_FMP1); + break; + case CAN_IT_FF1: + /* Check CAN_RF1R_FULL1 bit */ + itstatus = CheckITStatus(CANx->RF1R, CAN_RF1R_FULL1); + break; + case CAN_IT_FOV1: + /* Check CAN_RF1R_FOVR1 bit */ + itstatus = CheckITStatus(CANx->RF1R, CAN_RF1R_FOVR1); + break; + case CAN_IT_WKU: + /* Check CAN_MSR_WKUI bit */ + itstatus = CheckITStatus(CANx->MSR, CAN_MSR_WKUI); + break; + case CAN_IT_SLK: + /* Check CAN_MSR_SLAKI bit */ + itstatus = CheckITStatus(CANx->MSR, CAN_MSR_SLAKI); + break; + case CAN_IT_EWG: + /* Check CAN_ESR_EWGF bit */ + itstatus = CheckITStatus(CANx->ESR, CAN_ESR_EWGF); + break; + case CAN_IT_EPV: + /* Check CAN_ESR_EPVF bit */ + itstatus = CheckITStatus(CANx->ESR, CAN_ESR_EPVF); + break; + case CAN_IT_BOF: + /* Check CAN_ESR_BOFF bit */ + itstatus = CheckITStatus(CANx->ESR, CAN_ESR_BOFF); + break; + case CAN_IT_LEC: + /* Check CAN_ESR_LEC bit */ + itstatus = CheckITStatus(CANx->ESR, CAN_ESR_LEC); + break; + case CAN_IT_ERR: + /* Check CAN_MSR_ERRI bit */ + itstatus = CheckITStatus(CANx->MSR, CAN_MSR_ERRI); + break; + default: + /* in case of error, return RESET */ + itstatus = RESET; + break; + } + } + else + { + /* in case the Interrupt is not enabled, return RESET */ + itstatus = RESET; + } + + /* Return the CAN_IT status */ + return itstatus; +} + +/** + * @brief Clears the CANx's interrupt pending bits. + * @param CANx: where x can be 1 or 2 to to select the CAN peripheral. + * @param CAN_IT: specifies the interrupt pending bit to clear. + * This parameter can be one of the following values: + * @arg CAN_IT_TME: Transmit mailbox empty Interrupt + * @arg CAN_IT_FF0: FIFO 0 full Interrupt + * @arg CAN_IT_FOV0: FIFO 0 overrun Interrupt + * @arg CAN_IT_FF1: FIFO 1 full Interrupt + * @arg CAN_IT_FOV1: FIFO 1 overrun Interrupt + * @arg CAN_IT_WKU: Wake-up Interrupt + * @arg CAN_IT_SLK: Sleep acknowledge Interrupt + * @arg CAN_IT_EWG: Error warning Interrupt + * @arg CAN_IT_EPV: Error passive Interrupt + * @arg CAN_IT_BOF: Bus-off Interrupt + * @arg CAN_IT_LEC: Last error code Interrupt + * @arg CAN_IT_ERR: Error Interrupt + * @retval None + */ +void CAN_ClearITPendingBit(CAN_TypeDef* CANx, uint32_t CAN_IT) +{ + /* Check the parameters */ + assert_param(IS_CAN_ALL_PERIPH(CANx)); + assert_param(IS_CAN_CLEAR_IT(CAN_IT)); + + switch (CAN_IT) + { + case CAN_IT_TME: + /* Clear CAN_TSR_RQCPx (rc_w1)*/ + CANx->TSR = CAN_TSR_RQCP0|CAN_TSR_RQCP1|CAN_TSR_RQCP2; + break; + case CAN_IT_FF0: + /* Clear CAN_RF0R_FULL0 (rc_w1)*/ + CANx->RF0R = CAN_RF0R_FULL0; + break; + case CAN_IT_FOV0: + /* Clear CAN_RF0R_FOVR0 (rc_w1)*/ + CANx->RF0R = CAN_RF0R_FOVR0; + break; + case CAN_IT_FF1: + /* Clear CAN_RF1R_FULL1 (rc_w1)*/ + CANx->RF1R = CAN_RF1R_FULL1; + break; + case CAN_IT_FOV1: + /* Clear CAN_RF1R_FOVR1 (rc_w1)*/ + CANx->RF1R = CAN_RF1R_FOVR1; + break; + case CAN_IT_WKU: + /* Clear CAN_MSR_WKUI (rc_w1)*/ + CANx->MSR = CAN_MSR_WKUI; + break; + case CAN_IT_SLK: + /* Clear CAN_MSR_SLAKI (rc_w1)*/ + CANx->MSR = CAN_MSR_SLAKI; + break; + case CAN_IT_EWG: + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + /* @note the corresponding Flag is cleared by hardware depending on the CAN Bus status*/ + break; + case CAN_IT_EPV: + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + /* @note the corresponding Flag is cleared by hardware depending on the CAN Bus status*/ + break; + case CAN_IT_BOF: + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + /* @note the corresponding Flag is cleared by hardware depending on the CAN Bus status*/ + break; + case CAN_IT_LEC: + /* Clear LEC bits */ + CANx->ESR = RESET; + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + break; + case CAN_IT_ERR: + /*Clear LEC bits */ + CANx->ESR = RESET; + /* Clear CAN_MSR_ERRI (rc_w1) */ + CANx->MSR = CAN_MSR_ERRI; + /* @note BOFF, EPVF and EWGF Flags are cleared by hardware depending on the CAN Bus status*/ + break; + default: + break; + } +} + /** + * @} + */ + +/** + * @brief Checks whether the CAN interrupt has occurred or not. + * @param CAN_Reg: specifies the CAN interrupt register to check. + * @param It_Bit: specifies the interrupt source bit to check. + * @retval The new state of the CAN Interrupt (SET or RESET). + */ +static ITStatus CheckITStatus(uint32_t CAN_Reg, uint32_t It_Bit) +{ + ITStatus pendingbitstatus = RESET; + + if ((CAN_Reg & It_Bit) != (uint32_t)RESET) + { + /* CAN_IT is set */ + pendingbitstatus = SET; + } + else + { + /* CAN_IT is reset */ + pendingbitstatus = RESET; + } + return pendingbitstatus; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_crc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_crc.c new file mode 100644 index 00000000..45087596 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_crc.c @@ -0,0 +1,133 @@ +/** + ****************************************************************************** + * @file stm32f2xx_crc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides all the CRC firmware functions. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_crc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRC + * @brief CRC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup CRC_Private_Functions + * @{ + */ + +/** + * @brief Resets the CRC Data register (DR). + * @param None + * @retval None + */ +void CRC_ResetDR(void) +{ + /* Reset CRC generator */ + CRC->CR = CRC_CR_RESET; +} + +/** + * @brief Computes the 32-bit CRC of a given data word(32-bit). + * @param Data: data word(32-bit) to compute its CRC + * @retval 32-bit CRC + */ +uint32_t CRC_CalcCRC(uint32_t Data) +{ + CRC->DR = Data; + + return (CRC->DR); +} + +/** + * @brief Computes the 32-bit CRC of a given buffer of data word(32-bit). + * @param pBuffer: pointer to the buffer containing the data to be computed + * @param BufferLength: length of the buffer to be computed + * @retval 32-bit CRC + */ +uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength) +{ + uint32_t index = 0; + + for(index = 0; index < BufferLength; index++) + { + CRC->DR = pBuffer[index]; + } + return (CRC->DR); +} + +/** + * @brief Returns the current CRC value. + * @param None + * @retval 32-bit CRC + */ +uint32_t CRC_GetCRC(void) +{ + return (CRC->DR); +} + +/** + * @brief Stores a 8-bit data in the Independent Data(ID) register. + * @param IDValue: 8-bit value to be stored in the ID register + * @retval None + */ +void CRC_SetIDRegister(uint8_t IDValue) +{ + CRC->IDR = IDValue; +} + +/** + * @brief Returns the 8-bit data stored in the Independent Data(ID) register + * @param None + * @retval 8-bit value of the ID register + */ +uint8_t CRC_GetIDRegister(void) +{ + return (CRC->IDR); +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_cryp.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_cryp.c new file mode 100644 index 00000000..d78bf55a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_cryp.c @@ -0,0 +1,856 @@ +/** + ****************************************************************************** + * @file stm32f2xx_cryp.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Cryptographic processor (CRYP) peripheral: + * - Initialization and Configuration functions + * - Data treatment functions + * - Context swapping functions + * - DMA interface function + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable the CRYP controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_CRYP, ENABLE); function. + * + * 2. Initialise the CRYP using CRYP_Init(), CRYP_KeyInit() and if + * needed CRYP_IVInit(). + * + * 3. Flush the IN and OUT FIFOs by using CRYP_FIFOFlush() function. + * + * 4. Enable the CRYP controller using the CRYP_Cmd() function. + * + * 5. If using DMA for Data input and output transfer, + * Activate the needed DMA Requests using CRYP_DMACmd() function + + * 6. If DMA is not used for data transfer, use CRYP_DataIn() and + * CRYP_DataOut() functions to enter data to IN FIFO and get result + * from OUT FIFO. + * + * 7. To control CRYP events you can use one of the following + * two methods: + * - Check on CRYP flags using the CRYP_GetFlagStatus() function. + * - Use CRYP interrupts through the function CRYP_ITConfig() at + * initialization phase and CRYP_GetITStatus() function into + * interrupt routines in processing phase. + * + * 8. Save and restore Cryptographic processor context using + * CRYP_SaveContext() and CRYP_RestoreContext() functions. + * + * + * =================================================================== + * Procedure to perform an encryption or a decryption + * =================================================================== + * + * Initialization + * =============== + * 1. Initialize the peripheral using CRYP_Init(), CRYP_KeyInit() and + * CRYP_IVInit functions: + * - Configure the key size (128-, 192- or 256-bit, in the AES only) + * - Enter the symmetric key + * - Configure the data type + * - In case of decryption in AES-ECB or AES-CBC, you must prepare + * the key: configure the key preparation mode. Then Enable the CRYP + * peripheral using CRYP_Cmd() function: the BUSY flag is set. + * Wait until BUSY flag is reset : the key is prepared for decryption + * - Configure the algorithm and chaining (the DES/TDES in ECB/CBC, the + * AES in ECB/CBC/CTR) + * - Configure the direction (encryption/decryption). + * - Write the initialization vectors (in CBC or CTR modes only) + * + * 2. Flush the IN and OUT FIFOs using the CRYP_FIFOFlush() function + * + * + * Basic Processing mode (polling mode) + * ==================================== + * 1. Enable the cryptographic processor using CRYP_Cmd() function. + * + * 2. Write the first blocks in the input FIFO (2 to 8 words) using + * CRYP_DataIn() function. + * + * 3. Repeat the following sequence until the complete message has been + * processed: + * + * a) Wait for flag CRYP_FLAG_OFNE occurs (using CRYP_GetFlagStatus() + * function), then read the OUT-FIFO using CRYP_DataOut() function + * (1 block or until the FIFO is empty) + * + * b) Wait for flag CRYP_FLAG_IFNF occurs, (using CRYP_GetFlagStatus() + * function then write the IN FIFO using CRYP_DataIn() function + * (1 block or until the FIFO is full) + * + * 4. At the end of the processing, CRYP_FLAG_BUSY flag will be reset and + * both FIFOs are empty (CRYP_FLAG_IFEM is set and CRYP_FLAG_OFNE is + * reset). You can disable the peripheral using CRYP_Cmd() function. + * + * Interrupts Processing mode + * =========================== + * In this mode, Processing is done when the data are transferred by the + * CPU during interrupts. + * + * 1. Enable the interrupts CRYP_IT_INI and CRYP_IT_OUTI using + * CRYP_ITConfig() function. + * + * 2. Enable the cryptographic processor using CRYP_Cmd() function. + * + * 3. In the CRYP_IT_INI interrupt handler : load the input message into the + * IN FIFO using CRYP_DataIn() function . You can load 2 or 4 words at a + * time, or load data until the IN FIFO is full. When the last word of + * the message has been entered into the IN FIFO, disable the CRYP_IT_INI + * interrupt (using CRYP_ITConfig() function). + * + * 4. In the CRYP_IT_OUTI interrupt handler : read the output message from + * the OUT FIFO using CRYP_DataOut() function. You can read 1 block (2 or + * 4 words) at a time or read data until the FIFO is empty. + * When the last word has been read, INIM=0, BUSY=0 and both FIFOs are + * empty (CRYP_FLAG_IFEM is set and CRYP_FLAG_OFNE is reset). + * You can disable the CRYP_IT_OUTI interrupt (using CRYP_ITConfig() + * function) and you can disable the peripheral using CRYP_Cmd() function. + * + * DMA Processing mode + * ==================== + * In this mode, Processing is done when the DMA is used to transfer the + * data from/to the memory. + * + * 1. Configure the DMA controller to transfer the input data from the + * memory using DMA_Init() function. + * The transfer length is the length of the message. + * As message padding is not managed by the peripheral, the message + * length must be an entire number of blocks. The data are transferred + * in burst mode. The burst length is 4 words in the AES and 2 or 4 + * words in the DES/TDES. The DMA should be configured to set an + * interrupt on transfer completion of the output data to indicate that + * the processing is finished. + * Refer to DMA peripheral driver for more details. + * + * 2. Enable the cryptographic processor using CRYP_Cmd() function. + * Enable the DMA requests CRYP_DMAReq_DataIN and CRYP_DMAReq_DataOUT + * using CRYP_DMACmd() function. + * + * 3. All the transfers and processing are managed by the DMA and the + * cryptographic processor. The DMA transfer complete interrupt indicates + * that the processing is complete. Both FIFOs are normally empty and + * CRYP_FLAG_BUSY flag is reset. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_cryp.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRYP + * @brief CRYP driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define FLAG_MASK ((uint8_t)0x20) +#define MAX_TIMEOUT ((uint16_t)0xFFFF) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup CRYP_Private_Functions + * @{ + */ + +/** @defgroup CRYP_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to + - Initialize the cryptographic Processor using CRYP_Init() function + - Encrypt or Decrypt + - mode : TDES-ECB, TDES-CBC, + DES-ECB, DES-CBC, + AES-ECB, AES-CBC, AES-CTR, AES-Key + - DataType : 32-bit data, 16-bit data, bit data or bit-string + - Key Size (only in AES modes) + - Configure the Encrypt or Decrypt Key using CRYP_KeyInit() function + - Configure the Initialization Vectors(IV) for CBC and CTR modes using + CRYP_IVInit() function. + - Flushes the IN and OUT FIFOs : using CRYP_FIFOFlush() function. + - Enable or disable the CRYP Processor using CRYP_Cmd() function + + +@endverbatim + * @{ + */ +/** + * @brief Deinitializes the CRYP peripheral registers to their default reset values + * @param None + * @retval None + */ +void CRYP_DeInit(void) +{ + /* Enable CRYP reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_CRYP, ENABLE); + + /* Release CRYP from reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_CRYP, DISABLE); +} + +/** + * @brief Initializes the CRYP peripheral according to the specified parameters + * in the CRYP_InitStruct. + * @param CRYP_InitStruct: pointer to a CRYP_InitTypeDef structure that contains + * the configuration information for the CRYP peripheral. + * @retval None + */ +void CRYP_Init(CRYP_InitTypeDef* CRYP_InitStruct) +{ + /* Check the parameters */ + assert_param(IS_CRYP_ALGOMODE(CRYP_InitStruct->CRYP_AlgoMode)); + assert_param(IS_CRYP_DATATYPE(CRYP_InitStruct->CRYP_DataType)); + assert_param(IS_CRYP_ALGODIR(CRYP_InitStruct->CRYP_AlgoDir)); + + /* Select Algorithm mode*/ + CRYP->CR &= ~CRYP_CR_ALGOMODE; + CRYP->CR |= CRYP_InitStruct->CRYP_AlgoMode; + + /* Select dataType */ + CRYP->CR &= ~CRYP_CR_DATATYPE; + CRYP->CR |= CRYP_InitStruct->CRYP_DataType; + + /* select Key size (used only with AES algorithm) */ + if ((CRYP_InitStruct->CRYP_AlgoMode == CRYP_AlgoMode_AES_ECB) || + (CRYP_InitStruct->CRYP_AlgoMode == CRYP_AlgoMode_AES_CBC) || + (CRYP_InitStruct->CRYP_AlgoMode == CRYP_AlgoMode_AES_CTR) || + (CRYP_InitStruct->CRYP_AlgoMode == CRYP_AlgoMode_AES_Key)) + { + assert_param(IS_CRYP_KEYSIZE(CRYP_InitStruct->CRYP_KeySize)); + CRYP->CR &= ~CRYP_CR_KEYSIZE; + CRYP->CR |= CRYP_InitStruct->CRYP_KeySize; /* Key size and value must be + configured once the key has + been prepared */ + } + + /* Select data Direction */ + CRYP->CR &= ~CRYP_CR_ALGODIR; + CRYP->CR |= CRYP_InitStruct->CRYP_AlgoDir; +} + +/** + * @brief Fills each CRYP_InitStruct member with its default value. + * @param CRYP_InitStruct: pointer to a CRYP_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void CRYP_StructInit(CRYP_InitTypeDef* CRYP_InitStruct) +{ + /* Initialize the CRYP_AlgoDir member */ + CRYP_InitStruct->CRYP_AlgoDir = CRYP_AlgoDir_Encrypt; + + /* initialize the CRYP_AlgoMode member */ + CRYP_InitStruct->CRYP_AlgoMode = CRYP_AlgoMode_TDES_ECB; + + /* initialize the CRYP_DataType member */ + CRYP_InitStruct->CRYP_DataType = CRYP_DataType_32b; + + /* Initialize the CRYP_KeySize member */ + CRYP_InitStruct->CRYP_KeySize = CRYP_KeySize_128b; +} + +/** + * @brief Initializes the CRYP Keys according to the specified parameters in + * the CRYP_KeyInitStruct. + * @param CRYP_KeyInitStruct: pointer to a CRYP_KeyInitTypeDef structure that + * contains the configuration information for the CRYP Keys. + * @retval None + */ +void CRYP_KeyInit(CRYP_KeyInitTypeDef* CRYP_KeyInitStruct) +{ + /* Key Initialisation */ + CRYP->K0LR = CRYP_KeyInitStruct->CRYP_Key0Left; + CRYP->K0RR = CRYP_KeyInitStruct->CRYP_Key0Right; + CRYP->K1LR = CRYP_KeyInitStruct->CRYP_Key1Left; + CRYP->K1RR = CRYP_KeyInitStruct->CRYP_Key1Right; + CRYP->K2LR = CRYP_KeyInitStruct->CRYP_Key2Left; + CRYP->K2RR = CRYP_KeyInitStruct->CRYP_Key2Right; + CRYP->K3LR = CRYP_KeyInitStruct->CRYP_Key3Left; + CRYP->K3RR = CRYP_KeyInitStruct->CRYP_Key3Right; +} + +/** + * @brief Fills each CRYP_KeyInitStruct member with its default value. + * @param CRYP_KeyInitStruct: pointer to a CRYP_KeyInitTypeDef structure + * which will be initialized. + * @retval None + */ +void CRYP_KeyStructInit(CRYP_KeyInitTypeDef* CRYP_KeyInitStruct) +{ + CRYP_KeyInitStruct->CRYP_Key0Left = 0; + CRYP_KeyInitStruct->CRYP_Key0Right = 0; + CRYP_KeyInitStruct->CRYP_Key1Left = 0; + CRYP_KeyInitStruct->CRYP_Key1Right = 0; + CRYP_KeyInitStruct->CRYP_Key2Left = 0; + CRYP_KeyInitStruct->CRYP_Key2Right = 0; + CRYP_KeyInitStruct->CRYP_Key3Left = 0; + CRYP_KeyInitStruct->CRYP_Key3Right = 0; +} +/** + * @brief Initializes the CRYP Initialization Vectors(IV) according to the + * specified parameters in the CRYP_IVInitStruct. + * @param CRYP_IVInitStruct: pointer to a CRYP_IVInitTypeDef structure that contains + * the configuration information for the CRYP Initialization Vectors(IV). + * @retval None + */ +void CRYP_IVInit(CRYP_IVInitTypeDef* CRYP_IVInitStruct) +{ + CRYP->IV0LR = CRYP_IVInitStruct->CRYP_IV0Left; + CRYP->IV0RR = CRYP_IVInitStruct->CRYP_IV0Right; + CRYP->IV1LR = CRYP_IVInitStruct->CRYP_IV1Left; + CRYP->IV1RR = CRYP_IVInitStruct->CRYP_IV1Right; +} + +/** + * @brief Fills each CRYP_IVInitStruct member with its default value. + * @param CRYP_IVInitStruct: pointer to a CRYP_IVInitTypeDef Initialization + * Vectors(IV) structure which will be initialized. + * @retval None + */ +void CRYP_IVStructInit(CRYP_IVInitTypeDef* CRYP_IVInitStruct) +{ + CRYP_IVInitStruct->CRYP_IV0Left = 0; + CRYP_IVInitStruct->CRYP_IV0Right = 0; + CRYP_IVInitStruct->CRYP_IV1Left = 0; + CRYP_IVInitStruct->CRYP_IV1Right = 0; +} + +/** + * @brief Flushes the IN and OUT FIFOs (that is read and write pointers of the + * FIFOs are reset) + * @note The FIFOs must be flushed only when BUSY flag is reset. + * @param None + * @retval None + */ +void CRYP_FIFOFlush(void) +{ + /* Reset the read and write pointers of the FIFOs */ + CRYP->CR |= CRYP_CR_FFLUSH; +} + +/** + * @brief Enables or disables the CRYP peripheral. + * @param NewState: new state of the CRYP peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void CRYP_Cmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the Cryptographic processor */ + CRYP->CR |= CRYP_CR_CRYPEN; + } + else + { + /* Disable the Cryptographic processor */ + CRYP->CR &= ~CRYP_CR_CRYPEN; + } +} +/** + * @} + */ + +/** @defgroup CRYP_Group2 CRYP Data processing functions + * @brief CRYP Data processing functions + * +@verbatim + =============================================================================== + CRYP Data processing functions + =============================================================================== + This section provides functions allowing the encryption and decryption + operations: + - Enter data to be treated in the IN FIFO : using CRYP_DataIn() function. + - Get the data result from the OUT FIFO : using CRYP_DataOut() function. + +@endverbatim + * @{ + */ + +/** + * @brief Writes data in the Data Input register (DIN). + * @note After the DIN register has been read once or several times, + * the FIFO must be flushed (using CRYP_FIFOFlush() function). + * @param Data: data to write in Data Input register + * @retval None + */ +void CRYP_DataIn(uint32_t Data) +{ + CRYP->DR = Data; +} + +/** + * @brief Returns the last data entered into the output FIFO. + * @param None + * @retval Last data entered into the output FIFO. + */ +uint32_t CRYP_DataOut(void) +{ + return CRYP->DOUT; +} +/** + * @} + */ + +/** @defgroup CRYP_Group3 Context swapping functions + * @brief Context swapping functions + * +@verbatim + =============================================================================== + Context swapping functions + =============================================================================== + + This section provides functions allowing to save and store CRYP Context + + It is possible to interrupt an encryption/ decryption/ key generation process + to perform another processing with a higher priority, and to complete the + interrupted process later on, when the higher-priority task is complete. To do + so, the context of the interrupted task must be saved from the CRYP registers + to memory, and then be restored from memory to the CRYP registers. + + 1. To save the current context, use CRYP_SaveContext() function + 2. To restore the saved context, use CRYP_RestoreContext() function + + +@endverbatim + * @{ + */ + +/** + * @brief Saves the CRYP peripheral Context. + * @note This function stops DMA transfer before to save the context. After + * restoring the context, you have to enable the DMA again (if the DMA + * was previously used). + * @param CRYP_ContextSave: pointer to a CRYP_Context structure that contains + * the repository for current context. + * @param CRYP_KeyInitStruct: pointer to a CRYP_KeyInitTypeDef structure that + * contains the configuration information for the CRYP Keys. + * @retval None + */ +ErrorStatus CRYP_SaveContext(CRYP_Context* CRYP_ContextSave, + CRYP_KeyInitTypeDef* CRYP_KeyInitStruct) +{ + __IO uint32_t timeout = 0; + uint32_t ckeckmask = 0, bitstatus; + ErrorStatus status = ERROR; + + /* Stop DMA transfers on the IN FIFO by clearing the DIEN bit in the CRYP_DMACR */ + CRYP->DMACR &= ~(uint32_t)CRYP_DMACR_DIEN; + + /* Wait until both the IN and OUT FIFOs are empty + (IFEM=1 and OFNE=0 in the CRYP_SR register) and the + BUSY bit is cleared. */ + + if ((CRYP->CR & (uint32_t)(CRYP_CR_ALGOMODE_TDES_ECB | CRYP_CR_ALGOMODE_TDES_CBC)) != (uint32_t)0 )/* TDES */ + { + ckeckmask = CRYP_SR_IFEM | CRYP_SR_BUSY ; + } + else /* AES or DES */ + { + ckeckmask = CRYP_SR_IFEM | CRYP_SR_BUSY | CRYP_SR_OFNE; + } + + do + { + bitstatus = CRYP->SR & ckeckmask; + timeout++; + } + while ((timeout != MAX_TIMEOUT) && (bitstatus != CRYP_SR_IFEM)); + + if ((CRYP->SR & ckeckmask) != CRYP_SR_IFEM) + { + status = ERROR; + } + else + { + /* Stop DMA transfers on the OUT FIFO by + - writing the DOEN bit to 0 in the CRYP_DMACR register + - and clear the CRYPEN bit. */ + + CRYP->DMACR &= ~(uint32_t)CRYP_DMACR_DOEN; + CRYP->CR &= ~(uint32_t)CRYP_CR_CRYPEN; + + /* Save the current configuration (bits [9:2] in the CRYP_CR register) */ + CRYP_ContextSave->CR_bits9to2 = CRYP->CR & (CRYP_CR_KEYSIZE | + CRYP_CR_DATATYPE | + CRYP_CR_ALGOMODE | + CRYP_CR_ALGODIR); + + /* and, if not in ECB mode, the initialization vectors. */ + CRYP_ContextSave->CRYP_IV0LR = CRYP->IV0LR; + CRYP_ContextSave->CRYP_IV0RR = CRYP->IV0RR; + CRYP_ContextSave->CRYP_IV1LR = CRYP->IV1LR; + CRYP_ContextSave->CRYP_IV1RR = CRYP->IV1RR; + + /* save The key value */ + CRYP_ContextSave->CRYP_K0LR = CRYP_KeyInitStruct->CRYP_Key0Left; + CRYP_ContextSave->CRYP_K0RR = CRYP_KeyInitStruct->CRYP_Key0Right; + CRYP_ContextSave->CRYP_K1LR = CRYP_KeyInitStruct->CRYP_Key1Left; + CRYP_ContextSave->CRYP_K1RR = CRYP_KeyInitStruct->CRYP_Key1Right; + CRYP_ContextSave->CRYP_K2LR = CRYP_KeyInitStruct->CRYP_Key2Left; + CRYP_ContextSave->CRYP_K2RR = CRYP_KeyInitStruct->CRYP_Key2Right; + CRYP_ContextSave->CRYP_K3LR = CRYP_KeyInitStruct->CRYP_Key3Left; + CRYP_ContextSave->CRYP_K3RR = CRYP_KeyInitStruct->CRYP_Key3Right; + + /* When needed, save the DMA status (pointers for IN and OUT messages, + number of remaining bytes, etc.) */ + + status = SUCCESS; + } + + return status; +} + +/** + * @brief Restores the CRYP peripheral Context. + * @note Since teh DMA transfer is stopped in CRYP_SaveContext() function, + * after restoring the context, you have to enable the DMA again (if the + * DMA was previously used). + * @param CRYP_ContextRestore: pointer to a CRYP_Context structure that contains + * the repository for saved context. + * @note The data that were saved during context saving must be rewrited into + * the IN FIFO. + * @retval None + */ +void CRYP_RestoreContext(CRYP_Context* CRYP_ContextRestore) +{ + + /* Configure the processor with the saved configuration */ + CRYP->CR = CRYP_ContextRestore->CR_bits9to2; + + /* restore The key value */ + CRYP->K0LR = CRYP_ContextRestore->CRYP_K0LR; + CRYP->K0RR = CRYP_ContextRestore->CRYP_K0RR; + CRYP->K1LR = CRYP_ContextRestore->CRYP_K1LR; + CRYP->K1RR = CRYP_ContextRestore->CRYP_K1RR; + CRYP->K2LR = CRYP_ContextRestore->CRYP_K2LR; + CRYP->K2RR = CRYP_ContextRestore->CRYP_K2RR; + CRYP->K3LR = CRYP_ContextRestore->CRYP_K3LR; + CRYP->K3RR = CRYP_ContextRestore->CRYP_K3RR; + + /* and the initialization vectors. */ + CRYP->IV0LR = CRYP_ContextRestore->CRYP_IV0LR; + CRYP->IV0RR = CRYP_ContextRestore->CRYP_IV0RR; + CRYP->IV1LR = CRYP_ContextRestore->CRYP_IV1LR; + CRYP->IV1RR = CRYP_ContextRestore->CRYP_IV1RR; + + /* Enable the cryptographic processor */ + CRYP->CR |= CRYP_CR_CRYPEN; +} +/** + * @} + */ + +/** @defgroup CRYP_Group4 CRYP's DMA interface Configuration function + * @brief CRYP's DMA interface Configuration function + * +@verbatim + =============================================================================== + CRYP's DMA interface Configuration function + =============================================================================== + + This section provides functions allowing to configure the DMA interface for + CRYP data input and output transfer. + + When the DMA mode is enabled (using the CRYP_DMACmd() function), data can be + transferred: + - From memory to the CRYP IN FIFO using the DMA peripheral by enabling + the CRYP_DMAReq_DataIN request. + - From the CRYP OUT FIFO to the memory using the DMA peripheral by enabling + the CRYP_DMAReq_DataOUT request. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the CRYP DMA interface. + * @param CRYP_DMAReq: specifies the CRYP DMA transfer request to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg CRYP_DMAReq_DataOUT: DMA for outgoing(Tx) data transfer + * @arg CRYP_DMAReq_DataIN: DMA for incoming(Rx) data transfer + * @param NewState: new state of the selected CRYP DMA transfer request. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void CRYP_DMACmd(uint8_t CRYP_DMAReq, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CRYP_DMAREQ(CRYP_DMAReq)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected CRYP DMA request */ + CRYP->DMACR |= CRYP_DMAReq; + } + else + { + /* Disable the selected CRYP DMA request */ + CRYP->DMACR &= (uint8_t)~CRYP_DMAReq; + } +} +/** + * @} + */ + +/** @defgroup CRYP_Group5 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the CRYP Interrupts and + to get the status and Interrupts pending bits. + + The CRYP provides 2 Interrupts sources and 7 Flags: + + Flags : + ------- + + 1. CRYP_FLAG_IFEM : Set when Input FIFO is empty. + This Flag is cleared only by hardware. + + 2. CRYP_FLAG_IFNF : Set when Input FIFO is not full. + This Flag is cleared only by hardware. + + + 3. CRYP_FLAG_INRIS : Set when Input FIFO Raw interrupt is pending + it gives the raw interrupt state prior to masking + of the input FIFO service interrupt. + This Flag is cleared only by hardware. + + 4. CRYP_FLAG_OFNE : Set when Output FIFO not empty. + This Flag is cleared only by hardware. + + 5. CRYP_FLAG_OFFU : Set when Output FIFO is full. + This Flag is cleared only by hardware. + + 6. CRYP_FLAG_OUTRIS : Set when Output FIFO Raw interrupt is pending + it gives the raw interrupt state prior to masking + of the output FIFO service interrupt. + This Flag is cleared only by hardware. + + 7. CRYP_FLAG_BUSY : Set when the CRYP core is currently processing a + block of data or a key preparation (for AES + decryption). + This Flag is cleared only by hardware. + To clear it, the CRYP core must be disabled and the + last processing has completed. + + Interrupts : + ------------ + + 1. CRYP_IT_INI : The input FIFO service interrupt is asserted when there + are less than 4 words in the input FIFO. + This interrupt is associated to CRYP_FLAG_INRIS flag. + + @note This interrupt is cleared by performing write operations + to the input FIFO until it holds 4 or more words. The + input FIFO service interrupt INMIS is enabled with the + CRYP enable bit. Consequently, when CRYP is disabled, the + INMIS signal is low even if the input FIFO is empty. + + + + 2. CRYP_IT_OUTI : The output FIFO service interrupt is asserted when there + is one or more (32-bit word) data items in the output FIFO. + This interrupt is associated to CRYP_FLAG_OUTRIS flag. + + @note This interrupt is cleared by reading data from the output + FIFO until there is no valid (32-bit) word left (that is, + the interrupt follows the state of the OFNE (output FIFO + not empty) flag). + + + Managing the CRYP controller events : + ------------------------------------ + The user should identify which mode will be used in his application to manage + the CRYP controller events: Polling mode or Interrupt mode. + + 1. In the Polling Mode it is advised to use the following functions: + - CRYP_GetFlagStatus() : to check if flags events occur. + + @note The CRYPT flags do not need to be cleared since they are cleared as + soon as the associated event are reset. + + + 2. In the Interrupt Mode it is advised to use the following functions: + - CRYP_ITConfig() : to enable or disable the interrupt source. + - CRYP_GetITStatus() : to check if Interrupt occurs. + + @note The CRYPT interrupts have no pending bits, the interrupt is cleared as + soon as the associated event is reset. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified CRYP interrupts. + * @param CRYP_IT: specifies the CRYP interrupt source to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg CRYP_IT_INI: Input FIFO interrupt + * @arg CRYP_IT_OUTI: Output FIFO interrupt + * @param NewState: new state of the specified CRYP interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void CRYP_ITConfig(uint8_t CRYP_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_CRYP_CONFIG_IT(CRYP_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected CRYP interrupt */ + CRYP->IMSCR |= CRYP_IT; + } + else + { + /* Disable the selected CRYP interrupt */ + CRYP->IMSCR &= (uint8_t)~CRYP_IT; + } +} + +/** + * @brief Checks whether the specified CRYP interrupt has occurred or not. + * @note This function checks the status of the masked interrupt (i.e the + * interrupt should be previously enabled). + * @param CRYP_IT: specifies the CRYP (masked) interrupt source to check. + * This parameter can be one of the following values: + * @arg CRYP_IT_INI: Input FIFO interrupt + * @arg CRYP_IT_OUTI: Output FIFO interrupt + * @retval The new state of CRYP_IT (SET or RESET). + */ +ITStatus CRYP_GetITStatus(uint8_t CRYP_IT) +{ + ITStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_CRYP_GET_IT(CRYP_IT)); + + /* Check the status of the specified CRYP interrupt */ + if ((CRYP->MISR & CRYP_IT) != (uint8_t)RESET) + { + /* CRYP_IT is set */ + bitstatus = SET; + } + else + { + /* CRYP_IT is reset */ + bitstatus = RESET; + } + /* Return the CRYP_IT status */ + return bitstatus; +} + +/** + * @brief Checks whether the specified CRYP flag is set or not. + * @param CRYP_FLAG: specifies the CRYP flag to check. + * This parameter can be one of the following values: + * @arg CRYP_FLAG_IFEM: Input FIFO Empty flag. + * @arg CRYP_FLAG_IFNF: Input FIFO Not Full flag. + * @arg CRYP_FLAG_OFNE: Output FIFO Not Empty flag. + * @arg CRYP_FLAG_OFFU: Output FIFO Full flag. + * @arg CRYP_FLAG_BUSY: Busy flag. + * @arg CRYP_FLAG_OUTRIS: Output FIFO raw interrupt flag. + * @arg CRYP_FLAG_INRIS: Input FIFO raw interrupt flag. + * @retval The new state of CRYP_FLAG (SET or RESET). + */ +FlagStatus CRYP_GetFlagStatus(uint8_t CRYP_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t tempreg = 0; + + /* Check the parameters */ + assert_param(IS_CRYP_GET_FLAG(CRYP_FLAG)); + + /* check if the FLAG is in RISR register */ + if ((CRYP_FLAG & FLAG_MASK) != 0x00) + { + tempreg = CRYP->RISR; + } + else /* The FLAG is in SR register */ + { + tempreg = CRYP->SR; + } + + + /* Check the status of the specified CRYP flag */ + if ((tempreg & CRYP_FLAG ) != (uint8_t)RESET) + { + /* CRYP_FLAG is set */ + bitstatus = SET; + } + else + { + /* CRYP_FLAG is reset */ + bitstatus = RESET; + } + + /* Return the CRYP_FLAG status */ + return bitstatus; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_cryp_aes.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_cryp_aes.c new file mode 100644 index 00000000..25520e8f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_cryp_aes.c @@ -0,0 +1,644 @@ +/** + ****************************************************************************** + * @file stm32f2xx_cryp_aes.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides high level functions to encrypt and decrypt an + * input message using AES in ECB/CBC/CTR modes. + * It uses the stm32f2xx_cryp.c/.h drivers to access the STM32F2xx CRYP + * peripheral. + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable The CRYP controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_CRYP, ENABLE); function. + * + * 2. Encrypt and decrypt using AES in ECB Mode using CRYP_AES_ECB() + * function. + * + * 3. Encrypt and decrypt using AES in CBC Mode using CRYP_AES_CBC() + * function. + * + * 4. Encrypt and decrypt using AES in CTR Mode using CRYP_AES_CTR() + * function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_cryp.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRYP + * @brief CRYP driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define AESBUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup CRYP_Private_Functions + * @{ + */ + +/** @defgroup CRYP_Group6 High Level AES functions + * @brief High Level AES functions + * +@verbatim + =============================================================================== + High Level AES functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Encrypt and decrypt using AES in ECB Mode + * @param Mode: encryption or decryption Mode. + * This parameter can be one of the following values: + * @arg MODE_ENCRYPT: Encryption + * @arg MODE_DECRYPT: Decryption + * @param Key: Key used for AES algorithm. + * @param Keysize: length of the Key, must be a 128, 192 or 256. + * @param Input: pointer to the Input buffer. + * @param Ilength: length of the Input buffer, must be a multiple of 16. + * @param Output: pointer to the returned buffer. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: Operation done + * - ERROR: Operation failed + */ +ErrorStatus CRYP_AES_ECB(uint8_t Mode, uint8_t* Key, uint16_t Keysize, + uint8_t* Input, uint32_t Ilength, uint8_t* Output) +{ + CRYP_InitTypeDef AES_CRYP_InitStructure; + CRYP_KeyInitTypeDef AES_CRYP_KeyInitStructure; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t keyaddr = (uint32_t)Key; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + uint32_t i = 0; + + /* Crypto structures initialisation*/ + CRYP_KeyStructInit(&AES_CRYP_KeyInitStructure); + + switch(Keysize) + { + case 128: + AES_CRYP_InitStructure.CRYP_KeySize = CRYP_KeySize_128b; + AES_CRYP_KeyInitStructure.CRYP_Key2Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Right= __REV(*(uint32_t*)(keyaddr)); + break; + case 192: + AES_CRYP_InitStructure.CRYP_KeySize = CRYP_KeySize_192b; + AES_CRYP_KeyInitStructure.CRYP_Key1Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key1Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Right= __REV(*(uint32_t*)(keyaddr)); + break; + case 256: + AES_CRYP_InitStructure.CRYP_KeySize = CRYP_KeySize_256b; + AES_CRYP_KeyInitStructure.CRYP_Key0Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key0Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key1Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key1Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key2Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + AES_CRYP_KeyInitStructure.CRYP_Key3Right= __REV(*(uint32_t*)(keyaddr)); + break; + default: + break; + } + + /*------------------ AES Decryption ------------------*/ + if(Mode == MODE_DECRYPT) /* AES decryption */ + { + /* Flush IN/OUT FIFOs */ + CRYP_FIFOFlush(); + + /* Crypto Init for Key preparation for decryption process */ + AES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Decrypt; + AES_CRYP_InitStructure.CRYP_AlgoMode = CRYP_AlgoMode_AES_Key; + AES_CRYP_InitStructure.CRYP_DataType = CRYP_DataType_32b; + CRYP_Init(&AES_CRYP_InitStructure); + + /* Key Initialisation */ + CRYP_KeyInit(&AES_CRYP_KeyInitStructure); + + /* Enable Crypto processor */ + CRYP_Cmd(ENABLE); + + /* wait until the Busy flag is RESET */ + do + { + busystatus = CRYP_GetFlagStatus(CRYP_FLAG_BUSY); + counter++; + }while ((counter != AESBUSY_TIMEOUT) && (busystatus != RESET)); + + if (busystatus != RESET) + { + status = ERROR; + } + else + { + /* Crypto Init for decryption process */ + AES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Decrypt; + } + } + /*------------------ AES Encryption ------------------*/ + else /* AES encryption */ + { + + CRYP_KeyInit(&AES_CRYP_KeyInitStructure); + + /* Crypto Init for Encryption process */ + AES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Encrypt; + } + + AES_CRYP_InitStructure.CRYP_AlgoMode = CRYP_AlgoMode_AES_ECB; + AES_CRYP_InitStructure.CRYP_DataType = CRYP_DataType_8b; + CRYP_Init(&AES_CRYP_InitStructure); + + /* Flush IN/OUT FIFOs */ + CRYP_FIFOFlush(); + + /* Enable Crypto processor */ + CRYP_Cmd(ENABLE); + + for(i=0; ((i
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_cryp.h" + + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRYP + * @brief CRYP driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define DESBUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + + +/** @defgroup CRYP_Private_Functions + * @{ + */ + +/** @defgroup CRYP_Group8 High Level DES functions + * @brief High Level DES functions + * +@verbatim + =============================================================================== + High Level DES functions + =============================================================================== +@endverbatim + * @{ + */ + +/** + * @brief Encrypt and decrypt using DES in ECB Mode + * @param Mode: encryption or decryption Mode. + * This parameter can be one of the following values: + * @arg MODE_ENCRYPT: Encryption + * @arg MODE_DECRYPT: Decryption + * @param Key: Key used for DES algorithm. + * @param Ilength: length of the Input buffer, must be a multiple of 8. + * @param Input: pointer to the Input buffer. + * @param Output: pointer to the returned buffer. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: Operation done + * - ERROR: Operation failed + */ +ErrorStatus CRYP_DES_ECB(uint8_t Mode, uint8_t Key[8], uint8_t *Input, + uint32_t Ilength, uint8_t *Output) +{ + CRYP_InitTypeDef DES_CRYP_InitStructure; + CRYP_KeyInitTypeDef DES_CRYP_KeyInitStructure; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t keyaddr = (uint32_t)Key; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + uint32_t i = 0; + + /* Crypto structures initialisation*/ + CRYP_KeyStructInit(&DES_CRYP_KeyInitStructure); + + /* Crypto Init for Encryption process */ + if( Mode == MODE_ENCRYPT ) /* DES encryption */ + { + DES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Encrypt; + } + else/* if( Mode == MODE_DECRYPT )*/ /* DES decryption */ + { + DES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Decrypt; + } + + DES_CRYP_InitStructure.CRYP_AlgoMode = CRYP_AlgoMode_DES_ECB; + DES_CRYP_InitStructure.CRYP_DataType = CRYP_DataType_8b; + CRYP_Init(&DES_CRYP_InitStructure); + + /* Key Initialisation */ + DES_CRYP_KeyInitStructure.CRYP_Key1Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + DES_CRYP_KeyInitStructure.CRYP_Key1Right= __REV(*(uint32_t*)(keyaddr)); + CRYP_KeyInit(& DES_CRYP_KeyInitStructure); + + /* Flush IN/OUT FIFO */ + CRYP_FIFOFlush(); + + /* Enable Crypto processor */ + CRYP_Cmd(ENABLE); + + for(i=0; ((i
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_cryp.h" + + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup CRYP + * @brief CRYP driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define TDESBUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + + +/** @defgroup CRYP_Private_Functions + * @{ + */ + +/** @defgroup CRYP_Group7 High Level TDES functions + * @brief High Level TDES functions + * +@verbatim + =============================================================================== + High Level TDES functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Encrypt and decrypt using TDES in ECB Mode + * @param Mode: encryption or decryption Mode. + * This parameter can be one of the following values: + * @arg MODE_ENCRYPT: Encryption + * @arg MODE_DECRYPT: Decryption + * @param Key: Key used for TDES algorithm. + * @param Ilength: length of the Input buffer, must be a multiple of 8. + * @param Input: pointer to the Input buffer. + * @param Output: pointer to the returned buffer. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: Operation done + * - ERROR: Operation failed + */ +ErrorStatus CRYP_TDES_ECB(uint8_t Mode, uint8_t Key[24], uint8_t *Input, + uint32_t Ilength, uint8_t *Output) +{ + CRYP_InitTypeDef TDES_CRYP_InitStructure; + CRYP_KeyInitTypeDef TDES_CRYP_KeyInitStructure; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t keyaddr = (uint32_t)Key; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + uint32_t i = 0; + + /* Crypto structures initialisation*/ + CRYP_KeyStructInit(&TDES_CRYP_KeyInitStructure); + + /* Crypto Init for Encryption process */ + if(Mode == MODE_ENCRYPT) /* TDES encryption */ + { + TDES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Encrypt; + } + else /*if(Mode == MODE_DECRYPT)*/ /* TDES decryption */ + { + TDES_CRYP_InitStructure.CRYP_AlgoDir = CRYP_AlgoDir_Decrypt; + } + + TDES_CRYP_InitStructure.CRYP_AlgoMode = CRYP_AlgoMode_TDES_ECB; + TDES_CRYP_InitStructure.CRYP_DataType = CRYP_DataType_8b; + CRYP_Init(&TDES_CRYP_InitStructure); + + /* Key Initialisation */ + TDES_CRYP_KeyInitStructure.CRYP_Key1Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key1Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key2Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key2Right= __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key3Left = __REV(*(uint32_t*)(keyaddr)); + keyaddr+=4; + TDES_CRYP_KeyInitStructure.CRYP_Key3Right= __REV(*(uint32_t*)(keyaddr)); + CRYP_KeyInit(& TDES_CRYP_KeyInitStructure); + + /* Flush IN/OUT FIFO */ + CRYP_FIFOFlush(); + + /* Enable Crypto processor */ + CRYP_Cmd(ENABLE); + + for(i=0; ((i
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_dac.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup DAC + * @brief DAC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* CR register Mask */ +#define CR_CLEAR_MASK ((uint32_t)0x00000FFE) + +/* DAC Dual Channels SWTRIG masks */ +#define DUAL_SWTRIG_SET ((uint32_t)0x00000003) +#define DUAL_SWTRIG_RESET ((uint32_t)0xFFFFFFFC) + +/* DHR registers offsets */ +#define DHR12R1_OFFSET ((uint32_t)0x00000008) +#define DHR12R2_OFFSET ((uint32_t)0x00000014) +#define DHR12RD_OFFSET ((uint32_t)0x00000020) + +/* DOR register offset */ +#define DOR_OFFSET ((uint32_t)0x0000002C) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup DAC_Private_Functions + * @{ + */ + +/** @defgroup DAC_Group1 DAC channels configuration + * @brief DAC channels configuration: trigger, output buffer, data format + * +@verbatim + =============================================================================== + DAC channels configuration: trigger, output buffer, data format + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the DAC peripheral registers to their default reset values. + * @param None + * @retval None + */ +void DAC_DeInit(void) +{ + /* Enable DAC reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_DAC, ENABLE); + /* Release DAC from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_DAC, DISABLE); +} + +/** + * @brief Initializes the DAC peripheral according to the specified parameters + * in the DAC_InitStruct. + * @param DAC_Channel: the selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_InitStruct: pointer to a DAC_InitTypeDef structure that contains + * the configuration information for the specified DAC channel. + * @retval None + */ +void DAC_Init(uint32_t DAC_Channel, DAC_InitTypeDef* DAC_InitStruct) +{ + uint32_t tmpreg1 = 0, tmpreg2 = 0; + + /* Check the DAC parameters */ + assert_param(IS_DAC_TRIGGER(DAC_InitStruct->DAC_Trigger)); + assert_param(IS_DAC_GENERATE_WAVE(DAC_InitStruct->DAC_WaveGeneration)); + assert_param(IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE(DAC_InitStruct->DAC_LFSRUnmask_TriangleAmplitude)); + assert_param(IS_DAC_OUTPUT_BUFFER_STATE(DAC_InitStruct->DAC_OutputBuffer)); + +/*---------------------------- DAC CR Configuration --------------------------*/ + /* Get the DAC CR value */ + tmpreg1 = DAC->CR; + /* Clear BOFFx, TENx, TSELx, WAVEx and MAMPx bits */ + tmpreg1 &= ~(CR_CLEAR_MASK << DAC_Channel); + /* Configure for the selected DAC channel: buffer output, trigger, + wave generation, mask/amplitude for wave generation */ + /* Set TSELx and TENx bits according to DAC_Trigger value */ + /* Set WAVEx bits according to DAC_WaveGeneration value */ + /* Set MAMPx bits according to DAC_LFSRUnmask_TriangleAmplitude value */ + /* Set BOFFx bit according to DAC_OutputBuffer value */ + tmpreg2 = (DAC_InitStruct->DAC_Trigger | DAC_InitStruct->DAC_WaveGeneration | + DAC_InitStruct->DAC_LFSRUnmask_TriangleAmplitude | \ + DAC_InitStruct->DAC_OutputBuffer); + /* Calculate CR register value depending on DAC_Channel */ + tmpreg1 |= tmpreg2 << DAC_Channel; + /* Write to DAC CR */ + DAC->CR = tmpreg1; +} + +/** + * @brief Fills each DAC_InitStruct member with its default value. + * @param DAC_InitStruct: pointer to a DAC_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void DAC_StructInit(DAC_InitTypeDef* DAC_InitStruct) +{ +/*--------------- Reset DAC init structure parameters values -----------------*/ + /* Initialize the DAC_Trigger member */ + DAC_InitStruct->DAC_Trigger = DAC_Trigger_None; + /* Initialize the DAC_WaveGeneration member */ + DAC_InitStruct->DAC_WaveGeneration = DAC_WaveGeneration_None; + /* Initialize the DAC_LFSRUnmask_TriangleAmplitude member */ + DAC_InitStruct->DAC_LFSRUnmask_TriangleAmplitude = DAC_LFSRUnmask_Bit0; + /* Initialize the DAC_OutputBuffer member */ + DAC_InitStruct->DAC_OutputBuffer = DAC_OutputBuffer_Enable; +} + +/** + * @brief Enables or disables the specified DAC channel. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param NewState: new state of the DAC channel. + * This parameter can be: ENABLE or DISABLE. + * @note When the DAC channel is enabled the trigger source can no more be modified. + * @retval None + */ +void DAC_Cmd(uint32_t DAC_Channel, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected DAC channel */ + DAC->CR |= (DAC_CR_EN1 << DAC_Channel); + } + else + { + /* Disable the selected DAC channel */ + DAC->CR &= (~(DAC_CR_EN1 << DAC_Channel)); + } +} + +/** + * @brief Enables or disables the selected DAC channel software trigger. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param NewState: new state of the selected DAC channel software trigger. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DAC_SoftwareTriggerCmd(uint32_t DAC_Channel, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable software trigger for the selected DAC channel */ + DAC->SWTRIGR |= (uint32_t)DAC_SWTRIGR_SWTRIG1 << (DAC_Channel >> 4); + } + else + { + /* Disable software trigger for the selected DAC channel */ + DAC->SWTRIGR &= ~((uint32_t)DAC_SWTRIGR_SWTRIG1 << (DAC_Channel >> 4)); + } +} + +/** + * @brief Enables or disables simultaneously the two DAC channels software triggers. + * @param NewState: new state of the DAC channels software triggers. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DAC_DualSoftwareTriggerCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable software trigger for both DAC channels */ + DAC->SWTRIGR |= DUAL_SWTRIG_SET; + } + else + { + /* Disable software trigger for both DAC channels */ + DAC->SWTRIGR &= DUAL_SWTRIG_RESET; + } +} + +/** + * @brief Enables or disables the selected DAC channel wave generation. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_Wave: specifies the wave type to enable or disable. + * This parameter can be one of the following values: + * @arg DAC_Wave_Noise: noise wave generation + * @arg DAC_Wave_Triangle: triangle wave generation + * @param NewState: new state of the selected DAC channel wave generation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DAC_WaveGenerationCmd(uint32_t DAC_Channel, uint32_t DAC_Wave, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_WAVE(DAC_Wave)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected wave generation for the selected DAC channel */ + DAC->CR |= DAC_Wave << DAC_Channel; + } + else + { + /* Disable the selected wave generation for the selected DAC channel */ + DAC->CR &= ~(DAC_Wave << DAC_Channel); + } +} + +/** + * @brief Set the specified data holding register value for DAC channel1. + * @param DAC_Align: Specifies the data alignment for DAC channel1. + * This parameter can be one of the following values: + * @arg DAC_Align_8b_R: 8bit right data alignment selected + * @arg DAC_Align_12b_L: 12bit left data alignment selected + * @arg DAC_Align_12b_R: 12bit right data alignment selected + * @param Data: Data to be loaded in the selected data holding register. + * @retval None + */ +void DAC_SetChannel1Data(uint32_t DAC_Align, uint16_t Data) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_DAC_ALIGN(DAC_Align)); + assert_param(IS_DAC_DATA(Data)); + + tmp = (uint32_t)DAC_BASE; + tmp += DHR12R1_OFFSET + DAC_Align; + + /* Set the DAC channel1 selected data holding register */ + *(__IO uint32_t *) tmp = Data; +} + +/** + * @brief Set the specified data holding register value for DAC channel2. + * @param DAC_Align: Specifies the data alignment for DAC channel2. + * This parameter can be one of the following values: + * @arg DAC_Align_8b_R: 8bit right data alignment selected + * @arg DAC_Align_12b_L: 12bit left data alignment selected + * @arg DAC_Align_12b_R: 12bit right data alignment selected + * @param Data: Data to be loaded in the selected data holding register. + * @retval None + */ +void DAC_SetChannel2Data(uint32_t DAC_Align, uint16_t Data) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_DAC_ALIGN(DAC_Align)); + assert_param(IS_DAC_DATA(Data)); + + tmp = (uint32_t)DAC_BASE; + tmp += DHR12R2_OFFSET + DAC_Align; + + /* Set the DAC channel2 selected data holding register */ + *(__IO uint32_t *)tmp = Data; +} + +/** + * @brief Set the specified data holding register value for dual channel DAC. + * @param DAC_Align: Specifies the data alignment for dual channel DAC. + * This parameter can be one of the following values: + * @arg DAC_Align_8b_R: 8bit right data alignment selected + * @arg DAC_Align_12b_L: 12bit left data alignment selected + * @arg DAC_Align_12b_R: 12bit right data alignment selected + * @param Data2: Data for DAC Channel2 to be loaded in the selected data holding register. + * @param Data1: Data for DAC Channel1 to be loaded in the selected data holding register. + * @note In dual mode, a unique register access is required to write in both + * DAC channels at the same time. + * @retval None + */ +void DAC_SetDualChannelData(uint32_t DAC_Align, uint16_t Data2, uint16_t Data1) +{ + uint32_t data = 0, tmp = 0; + + /* Check the parameters */ + assert_param(IS_DAC_ALIGN(DAC_Align)); + assert_param(IS_DAC_DATA(Data1)); + assert_param(IS_DAC_DATA(Data2)); + + /* Calculate and set dual DAC data holding register value */ + if (DAC_Align == DAC_Align_8b_R) + { + data = ((uint32_t)Data2 << 8) | Data1; + } + else + { + data = ((uint32_t)Data2 << 16) | Data1; + } + + tmp = (uint32_t)DAC_BASE; + tmp += DHR12RD_OFFSET + DAC_Align; + + /* Set the dual DAC selected data holding register */ + *(__IO uint32_t *)tmp = data; +} + +/** + * @brief Returns the last data output value of the selected DAC channel. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @retval The selected DAC channel data output value. + */ +uint16_t DAC_GetDataOutputValue(uint32_t DAC_Channel) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + + tmp = (uint32_t) DAC_BASE ; + tmp += DOR_OFFSET + ((uint32_t)DAC_Channel >> 2); + + /* Returns the DAC channel data output register value */ + return (uint16_t) (*(__IO uint32_t*) tmp); +} +/** + * @} + */ + +/** @defgroup DAC_Group2 DMA management functions + * @brief DMA management functions + * +@verbatim + =============================================================================== + DMA management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified DAC channel DMA request. + * @note When enabled DMA1 is generated when an external trigger (EXTI Line9, + * TIM2, TIM4, TIM5, TIM6, TIM7 or TIM8 but not a software trigger) occurs. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param NewState: new state of the selected DAC channel DMA request. + * This parameter can be: ENABLE or DISABLE. + * @note The DAC channel1 is mapped on DMA1 Stream 5 channel7 which must be + * already configured. + * @note The DAC channel2 is mapped on DMA1 Stream 6 channel7 which must be + * already configured. + * @retval None + */ +void DAC_DMACmd(uint32_t DAC_Channel, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected DAC channel DMA request */ + DAC->CR |= (DAC_CR_DMAEN1 << DAC_Channel); + } + else + { + /* Disable the selected DAC channel DMA request */ + DAC->CR &= (~(DAC_CR_DMAEN1 << DAC_Channel)); + } +} +/** + * @} + */ + +/** @defgroup DAC_Group3 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified DAC interrupts. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_IT: specifies the DAC interrupt sources to be enabled or disabled. + * This parameter can be the following values: + * @arg DAC_IT_DMAUDR: DMA underrun interrupt mask + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @param NewState: new state of the specified DAC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DAC_ITConfig(uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_DAC_IT(DAC_IT)); + + if (NewState != DISABLE) + { + /* Enable the selected DAC interrupts */ + DAC->CR |= (DAC_IT << DAC_Channel); + } + else + { + /* Disable the selected DAC interrupts */ + DAC->CR &= (~(uint32_t)(DAC_IT << DAC_Channel)); + } +} + +/** + * @brief Checks whether the specified DAC flag is set or not. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_FLAG: specifies the flag to check. + * This parameter can be only of the following value: + * @arg DAC_FLAG_DMAUDR: DMA underrun flag + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @retval The new state of DAC_FLAG (SET or RESET). + */ +FlagStatus DAC_GetFlagStatus(uint32_t DAC_Channel, uint32_t DAC_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_FLAG(DAC_FLAG)); + + /* Check the status of the specified DAC flag */ + if ((DAC->SR & (DAC_FLAG << DAC_Channel)) != (uint8_t)RESET) + { + /* DAC_FLAG is set */ + bitstatus = SET; + } + else + { + /* DAC_FLAG is reset */ + bitstatus = RESET; + } + /* Return the DAC_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the DAC channel's pending flags. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_FLAG: specifies the flag to clear. + * This parameter can be of the following value: + * @arg DAC_FLAG_DMAUDR: DMA underrun flag + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @retval None + */ +void DAC_ClearFlag(uint32_t DAC_Channel, uint32_t DAC_FLAG) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_FLAG(DAC_FLAG)); + + /* Clear the selected DAC flags */ + DAC->SR = (DAC_FLAG << DAC_Channel); +} + +/** + * @brief Checks whether the specified DAC interrupt has occurred or not. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_IT: specifies the DAC interrupt source to check. + * This parameter can be the following values: + * @arg DAC_IT_DMAUDR: DMA underrun interrupt mask + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @retval The new state of DAC_IT (SET or RESET). + */ +ITStatus DAC_GetITStatus(uint32_t DAC_Channel, uint32_t DAC_IT) +{ + ITStatus bitstatus = RESET; + uint32_t enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_IT(DAC_IT)); + + /* Get the DAC_IT enable bit status */ + enablestatus = (DAC->CR & (DAC_IT << DAC_Channel)) ; + + /* Check the status of the specified DAC interrupt */ + if (((DAC->SR & (DAC_IT << DAC_Channel)) != (uint32_t)RESET) && enablestatus) + { + /* DAC_IT is set */ + bitstatus = SET; + } + else + { + /* DAC_IT is reset */ + bitstatus = RESET; + } + /* Return the DAC_IT status */ + return bitstatus; +} + +/** + * @brief Clears the DAC channel's interrupt pending bits. + * @param DAC_Channel: The selected DAC channel. + * This parameter can be one of the following values: + * @arg DAC_Channel_1: DAC Channel1 selected + * @arg DAC_Channel_2: DAC Channel2 selected + * @param DAC_IT: specifies the DAC interrupt pending bit to clear. + * This parameter can be the following values: + * @arg DAC_IT_DMAUDR: DMA underrun interrupt mask + * @note The DMA underrun occurs when a second external trigger arrives before the + * acknowledgement for the first external trigger is received (first request). + * @retval None + */ +void DAC_ClearITPendingBit(uint32_t DAC_Channel, uint32_t DAC_IT) +{ + /* Check the parameters */ + assert_param(IS_DAC_CHANNEL(DAC_Channel)); + assert_param(IS_DAC_IT(DAC_IT)); + + /* Clear the selected DAC interrupt pending bits */ + DAC->SR = (DAC_IT << DAC_Channel); +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dbgmcu.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dbgmcu.c new file mode 100644 index 00000000..08000cea --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dbgmcu.c @@ -0,0 +1,180 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dbgmcu.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides all the DBGMCU firmware functions. + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_dbgmcu.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup DBGMCU + * @brief DBGMCU driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define IDCODE_DEVID_MASK ((uint32_t)0x00000FFF) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup DBGMCU_Private_Functions + * @{ + */ + +/** + * @brief Returns the device revision identifier. + * @param None + * @retval Device revision identifier + */ +uint32_t DBGMCU_GetREVID(void) +{ + return(DBGMCU->IDCODE >> 16); +} + +/** + * @brief Returns the device identifier. + * @param None + * @retval Device identifier + */ +uint32_t DBGMCU_GetDEVID(void) +{ + return(DBGMCU->IDCODE & IDCODE_DEVID_MASK); +} + +/** + * @brief Configures low power mode behavior when the MCU is in Debug mode. + * @param DBGMCU_Periph: specifies the low power mode. + * This parameter can be any combination of the following values: + * @arg DBGMCU_SLEEP: Keep debugger connection during SLEEP mode + * @arg DBGMCU_STOP: Keep debugger connection during STOP mode + * @arg DBGMCU_STANDBY: Keep debugger connection during STANDBY mode + * @param NewState: new state of the specified low power mode in Debug mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DBGMCU_PERIPH(DBGMCU_Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + DBGMCU->CR |= DBGMCU_Periph; + } + else + { + DBGMCU->CR &= ~DBGMCU_Periph; + } +} + +/** + * @brief Configures APB1 peripheral behavior when the MCU is in Debug mode. + * @param DBGMCU_Periph: specifies the APB1 peripheral. + * This parameter can be any combination of the following values: + * @arg DBGMCU_TIM2_STOP: TIM2 counter stopped when Core is halted + * @arg DBGMCU_TIM3_STOP: TIM3 counter stopped when Core is halted + * @arg DBGMCU_TIM4_STOP: TIM4 counter stopped when Core is halted + * @arg DBGMCU_TIM5_STOP: TIM5 counter stopped when Core is halted + * @arg DBGMCU_TIM6_STOP: TIM6 counter stopped when Core is halted + * @arg DBGMCU_TIM7_STOP: TIM7 counter stopped when Core is halted + * @arg DBGMCU_TIM12_STOP: TIM12 counter stopped when Core is halted + * @arg DBGMCU_TIM13_STOP: TIM13 counter stopped when Core is halted + * @arg DBGMCU_TIM14_STOP: TIM14 counter stopped when Core is halted + * @arg DBGMCU_RTC_STOP: RTC Wakeup counter stopped when Core is halted. + * @arg DBGMCU_WWDG_STOP: Debug WWDG stopped when Core is halted + * @arg DBGMCU_IWDG_STOP: Debug IWDG stopped when Core is halted + * @arg DBGMCU_I2C1_SMBUS_TIMEOUT: I2C1 SMBUS timeout mode stopped when Core is halted + * @arg DBGMCU_I2C2_SMBUS_TIMEOUT: I2C2 SMBUS timeout mode stopped when Core is halted + * @arg DBGMCU_I2C3_SMBUS_TIMEOUT: I2C3 SMBUS timeout mode stopped when Core is halted + * @arg DBGMCU_CAN2_STOP: Debug CAN1 stopped when Core is halted + * @arg DBGMCU_CAN1_STOP: Debug CAN2 stopped when Core is halted + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DBGMCU_APB1PERIPH(DBGMCU_Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + DBGMCU->APB1FZ |= DBGMCU_Periph; + } + else + { + DBGMCU->APB1FZ &= ~DBGMCU_Periph; + } +} + +/** + * @brief Configures APB2 peripheral behavior when the MCU is in Debug mode. + * @param DBGMCU_Periph: specifies the APB2 peripheral. + * This parameter can be any combination of the following values: + * @arg DBGMCU_TIM1_STOP: TIM1 counter stopped when Core is halted + * @arg DBGMCU_TIM8_STOP: TIM8 counter stopped when Core is halted + * @arg DBGMCU_TIM9_STOP: TIM9 counter stopped when Core is halted + * @arg DBGMCU_TIM10_STOP: TIM10 counter stopped when Core is halted + * @arg DBGMCU_TIM11_STOP: TIM11 counter stopped when Core is halted + * @param NewState: new state of the specified peripheral in Debug mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DBGMCU_APB2PERIPH(DBGMCU_Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + DBGMCU->APB2FZ |= DBGMCU_Periph; + } + else + { + DBGMCU->APB2FZ &= ~DBGMCU_Periph; + } +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dcmi.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dcmi.c new file mode 100644 index 00000000..09685a62 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dcmi.c @@ -0,0 +1,540 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dcmi.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the DCMI peripheral: + * - Initialization and Configuration + * - Image capture functions + * - Interrupts and flags management + * + * @verbatim + * + * + * =================================================================== + * How to use this driver + * =================================================================== + * + * The sequence below describes how to use this driver to capture image + * from a camera module connected to the DCMI Interface. + * This sequence does not take into account the configuration of the + * camera module, which should be made before to configure and enable + * the DCMI to capture images. + * + * 1. Enable the clock for the DCMI and associated GPIOs using the following functions: + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_DCMI, ENABLE); + * RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + * + * 2. DCMI pins configuration + * - Connect the involved DCMI pins to AF13 using the following function + * GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_DCMI); + * - Configure these DCMI pins in alternate function mode by calling the function + * GPIO_Init(); + * + * 3. Declare a DCMI_InitTypeDef structure, for example: + * DCMI_InitTypeDef DCMI_InitStructure; + * and fill the DCMI_InitStructure variable with the allowed values + * of the structure member. + * + * 4. Initialize the DCMI interface by calling the function + * DCMI_Init(&DCMI_InitStructure); + * + * 5. Configure the DMA2_Stream1 channel1 to transfer Data from DCMI DR + * register to the destination memory buffer. + * + * 6. Enable DCMI interface using the function + * DCMI_Cmd(ENABLE); + * + * 7. Start the image capture using the function + * DCMI_CaptureCmd(ENABLE); + * + * 8. At this stage the DCMI interface waits for the first start of frame, + * then a DMA request is generated continuously/once (depending on the + * mode used, Continuous/Snapshot) to transfer the received data into + * the destination memory. + * + * @note If you need to capture only a rectangular window from the received + * image, you have to use the DCMI_CROPConfig() function to configure + * the coordinates and size of the window to be captured, then enable + * the Crop feature using DCMI_CROPCmd(ENABLE); + * In this case, the Crop configuration should be made before to enable + * and start the DCMI interface. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_dcmi.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup DCMI + * @brief DCMI driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup DCMI_Private_Functions + * @{ + */ + +/** @defgroup DCMI_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the DCMI registers to their default reset values. + * @param None + * @retval None + */ +void DCMI_DeInit(void) +{ + DCMI->CR = 0x0; + DCMI->IER = 0x0; + DCMI->ICR = 0x1F; + DCMI->ESCR = 0x0; + DCMI->ESUR = 0x0; + DCMI->CWSTRTR = 0x0; + DCMI->CWSIZER = 0x0; +} + +/** + * @brief Initializes the DCMI according to the specified parameters in the DCMI_InitStruct. + * @param DCMI_InitStruct: pointer to a DCMI_InitTypeDef structure that contains + * the configuration information for the DCMI. + * @retval None + */ +void DCMI_Init(DCMI_InitTypeDef* DCMI_InitStruct) +{ + uint32_t temp = 0x0; + + /* Check the parameters */ + assert_param(IS_DCMI_CAPTURE_MODE(DCMI_InitStruct->DCMI_CaptureMode)); + assert_param(IS_DCMI_SYNCHRO(DCMI_InitStruct->DCMI_SynchroMode)); + assert_param(IS_DCMI_PCKPOLARITY(DCMI_InitStruct->DCMI_PCKPolarity)); + assert_param(IS_DCMI_VSPOLARITY(DCMI_InitStruct->DCMI_VSPolarity)); + assert_param(IS_DCMI_HSPOLARITY(DCMI_InitStruct->DCMI_HSPolarity)); + assert_param(IS_DCMI_CAPTURE_RATE(DCMI_InitStruct->DCMI_CaptureRate)); + assert_param(IS_DCMI_EXTENDED_DATA(DCMI_InitStruct->DCMI_ExtendedDataMode)); + + /* The DCMI configuration registers should be programmed correctly before + enabling the CR_ENABLE Bit and the CR_CAPTURE Bit */ + DCMI->CR &= ~(DCMI_CR_ENABLE | DCMI_CR_CAPTURE); + + /* Reset the old DCMI configuration */ + temp = DCMI->CR; + + temp &= ~((uint32_t)DCMI_CR_CM | DCMI_CR_ESS | DCMI_CR_PCKPOL | + DCMI_CR_HSPOL | DCMI_CR_VSPOL | DCMI_CR_FCRC_0 | + DCMI_CR_FCRC_1 | DCMI_CR_EDM_0 | DCMI_CR_EDM_1); + + /* Sets the new configuration of the DCMI peripheral */ + temp |= ((uint32_t)DCMI_InitStruct->DCMI_CaptureMode | + DCMI_InitStruct->DCMI_SynchroMode | + DCMI_InitStruct->DCMI_PCKPolarity | + DCMI_InitStruct->DCMI_VSPolarity | + DCMI_InitStruct->DCMI_HSPolarity | + DCMI_InitStruct->DCMI_CaptureRate | + DCMI_InitStruct->DCMI_ExtendedDataMode); + + DCMI->CR = temp; +} + +/** + * @brief Fills each DCMI_InitStruct member with its default value. + * @param DCMI_InitStruct : pointer to a DCMI_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void DCMI_StructInit(DCMI_InitTypeDef* DCMI_InitStruct) +{ + /* Set the default configuration */ + DCMI_InitStruct->DCMI_CaptureMode = DCMI_CaptureMode_Continuous; + DCMI_InitStruct->DCMI_SynchroMode = DCMI_SynchroMode_Hardware; + DCMI_InitStruct->DCMI_PCKPolarity = DCMI_PCKPolarity_Falling; + DCMI_InitStruct->DCMI_VSPolarity = DCMI_VSPolarity_Low; + DCMI_InitStruct->DCMI_HSPolarity = DCMI_HSPolarity_Low; + DCMI_InitStruct->DCMI_CaptureRate = DCMI_CaptureRate_All_Frame; + DCMI_InitStruct->DCMI_ExtendedDataMode = DCMI_ExtendedDataMode_8b; +} + +/** + * @brief Initializes the DCMI peripheral CROP mode according to the specified + * parameters in the DCMI_CROPInitStruct. + * @note This function should be called before to enable and start the DCMI interface. + * @param DCMI_CROPInitStruct: pointer to a DCMI_CROPInitTypeDef structure that + * contains the configuration information for the DCMI peripheral CROP mode. + * @retval None + */ +void DCMI_CROPConfig(DCMI_CROPInitTypeDef* DCMI_CROPInitStruct) +{ + /* Sets the CROP window coordinates */ + DCMI->CWSTRTR = (uint32_t)((uint32_t)DCMI_CROPInitStruct->DCMI_HorizontalOffsetCount | + ((uint32_t)DCMI_CROPInitStruct->DCMI_VerticalStartLine << 16)); + + /* Sets the CROP window size */ + DCMI->CWSIZER = (uint32_t)(DCMI_CROPInitStruct->DCMI_CaptureCount | + ((uint32_t)DCMI_CROPInitStruct->DCMI_VerticalLineCount << 16)); +} + +/** + * @brief Enables or disables the DCMI Crop feature. + * @note This function should be called before to enable and start the DCMI interface. + * @param NewState: new state of the DCMI Crop feature. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_CROPCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DCMI Crop feature */ + DCMI->CR |= (uint32_t)DCMI_CR_CROP; + } + else + { + /* Disable the DCMI Crop feature */ + DCMI->CR &= ~(uint32_t)DCMI_CR_CROP; + } +} + +/** + * @brief Sets the embedded synchronization codes + * @param DCMI_CodesInitTypeDef: pointer to a DCMI_CodesInitTypeDef structure that + * contains the embedded synchronization codes for the DCMI peripheral. + * @retval None + */ +void DCMI_SetEmbeddedSynchroCodes(DCMI_CodesInitTypeDef* DCMI_CodesInitStruct) +{ + DCMI->ESCR = (uint32_t)(DCMI_CodesInitStruct->DCMI_FrameStartCode | + ((uint32_t)DCMI_CodesInitStruct->DCMI_LineStartCode << 8)| + ((uint32_t)DCMI_CodesInitStruct->DCMI_LineEndCode << 16)| + ((uint32_t)DCMI_CodesInitStruct->DCMI_FrameEndCode << 24)); +} + +/** + * @brief Enables or disables the DCMI JPEG format. + * @note The Crop and Embedded Synchronization features cannot be used in this mode. + * @param NewState: new state of the DCMI JPEG format. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_JPEGCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DCMI JPEG format */ + DCMI->CR |= (uint32_t)DCMI_CR_JPEG; + } + else + { + /* Disable the DCMI JPEG format */ + DCMI->CR &= ~(uint32_t)DCMI_CR_JPEG; + } +} +/** + * @} + */ + +/** @defgroup DCMI_Group2 Image capture functions + * @brief Image capture functions + * +@verbatim + =============================================================================== + Image capture functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the DCMI interface. + * @param NewState: new state of the DCMI interface. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_Cmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DCMI by setting ENABLE bit */ + DCMI->CR |= (uint32_t)DCMI_CR_ENABLE; + } + else + { + /* Disable the DCMI by clearing ENABLE bit */ + DCMI->CR &= ~(uint32_t)DCMI_CR_ENABLE; + } +} + +/** + * @brief Enables or disables the DCMI Capture. + * @param NewState: new state of the DCMI capture. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_CaptureCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DCMI Capture */ + DCMI->CR |= (uint32_t)DCMI_CR_CAPTURE; + } + else + { + /* Disable the DCMI Capture */ + DCMI->CR &= ~(uint32_t)DCMI_CR_CAPTURE; + } +} + +/** + * @brief Reads the data stored in the DR register. + * @param None + * @retval Data register value + */ +uint32_t DCMI_ReadData(void) +{ + return DCMI->DR; +} +/** + * @} + */ + +/** @defgroup DCMI_Group3 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the DCMI interface interrupts. + * @param DCMI_IT: specifies the DCMI interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask + * @arg DCMI_IT_OVF: Overflow interrupt mask + * @arg DCMI_IT_ERR: Synchronization error interrupt mask + * @arg DCMI_IT_VSYNC: VSYNC interrupt mask + * @arg DCMI_IT_LINE: Line interrupt mask + * @param NewState: new state of the specified DCMI interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DCMI_ITConfig(uint16_t DCMI_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DCMI_CONFIG_IT(DCMI_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the Interrupt sources */ + DCMI->IER |= DCMI_IT; + } + else + { + /* Disable the Interrupt sources */ + DCMI->IER &= (uint16_t)(~DCMI_IT); + } +} + +/** + * @brief Checks whether the DCMI interface flag is set or not. + * @param DCMI_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg DCMI_FLAG_FRAMERI: Frame capture complete Raw flag mask + * @arg DCMI_FLAG_OVFRI: Overflow Raw flag mask + * @arg DCMI_FLAG_ERRRI: Synchronization error Raw flag mask + * @arg DCMI_FLAG_VSYNCRI: VSYNC Raw flag mask + * @arg DCMI_FLAG_LINERI: Line Raw flag mask + * @arg DCMI_FLAG_FRAMEMI: Frame capture complete Masked flag mask + * @arg DCMI_FLAG_OVFMI: Overflow Masked flag mask + * @arg DCMI_FLAG_ERRMI: Synchronization error Masked flag mask + * @arg DCMI_FLAG_VSYNCMI: VSYNC Masked flag mask + * @arg DCMI_FLAG_LINEMI: Line Masked flag mask + * @arg DCMI_FLAG_HSYNC: HSYNC flag mask + * @arg DCMI_FLAG_VSYNC: VSYNC flag mask + * @arg DCMI_FLAG_FNE: Fifo not empty flag mask + * @retval The new state of DCMI_FLAG (SET or RESET). + */ +FlagStatus DCMI_GetFlagStatus(uint16_t DCMI_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t dcmireg, tempreg = 0; + + /* Check the parameters */ + assert_param(IS_DCMI_GET_FLAG(DCMI_FLAG)); + + /* Get the DCMI register index */ + dcmireg = (((uint16_t)DCMI_FLAG) >> 12); + + if (dcmireg == 0x00) /* The FLAG is in RISR register */ + { + tempreg= DCMI->RISR; + } + else if (dcmireg == 0x02) /* The FLAG is in SR register */ + { + tempreg = DCMI->SR; + } + else /* The FLAG is in MISR register */ + { + tempreg = DCMI->MISR; + } + + if ((tempreg & DCMI_FLAG) != (uint16_t)RESET ) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the DCMI_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the DCMI's pending flags. + * @param DCMI_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg DCMI_FLAG_FRAMERI: Frame capture complete Raw flag mask + * @arg DCMI_FLAG_OVFRI: Overflow Raw flag mask + * @arg DCMI_FLAG_ERRRI: Synchronization error Raw flag mask + * @arg DCMI_FLAG_VSYNCRI: VSYNC Raw flag mask + * @arg DCMI_FLAG_LINERI: Line Raw flag mask + * @retval None + */ +void DCMI_ClearFlag(uint16_t DCMI_FLAG) +{ + /* Check the parameters */ + assert_param(IS_DCMI_CLEAR_FLAG(DCMI_FLAG)); + + /* Clear the flag by writing in the ICR register 1 in the corresponding + Flag position*/ + + DCMI->ICR = DCMI_FLAG; +} + +/** + * @brief Checks whether the DCMI interrupt has occurred or not. + * @param DCMI_IT: specifies the DCMI interrupt source to check. + * This parameter can be one of the following values: + * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask + * @arg DCMI_IT_OVF: Overflow interrupt mask + * @arg DCMI_IT_ERR: Synchronization error interrupt mask + * @arg DCMI_IT_VSYNC: VSYNC interrupt mask + * @arg DCMI_IT_LINE: Line interrupt mask + * @retval The new state of DCMI_IT (SET or RESET). + */ +ITStatus DCMI_GetITStatus(uint16_t DCMI_IT) +{ + ITStatus bitstatus = RESET; + uint32_t itstatus = 0; + + /* Check the parameters */ + assert_param(IS_DCMI_GET_IT(DCMI_IT)); + + itstatus = DCMI->MISR & DCMI_IT; /* Only masked interrupts are checked */ + + if ((itstatus != (uint16_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the DCMI's interrupt pending bits. + * @param DCMI_IT: specifies the DCMI interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg DCMI_IT_FRAME: Frame capture complete interrupt mask + * @arg DCMI_IT_OVF: Overflow interrupt mask + * @arg DCMI_IT_ERR: Synchronization error interrupt mask + * @arg DCMI_IT_VSYNC: VSYNC interrupt mask + * @arg DCMI_IT_LINE: Line interrupt mask + * @retval None + */ +void DCMI_ClearITPendingBit(uint16_t DCMI_IT) +{ + /* Clear the interrupt pending Bit by writing in the ICR register 1 in the + corresponding pending Bit position*/ + + DCMI->ICR = DCMI_IT; +} +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dma.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dma.c new file mode 100644 index 00000000..9e8ec04c --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_dma.c @@ -0,0 +1,1289 @@ +/** + ****************************************************************************** + * @file stm32f2xx_dma.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Direct Memory Access controller (DMA): + * - Initialization and Configuration + * - Data Counter + * - Double Buffer mode configuration and command + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable The DMA controller clock using RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_DMA1, ENABLE) + * function for DMA1 or using RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_DMA2, ENABLE) + * function for DMA2. + * + * 2. Enable and configure the peripheral to be connected to the DMA Stream + * (except for internal SRAM / FLASH memories: no initialization is + * necessary). + * + * 3. For a given Stream, program the required configuration through following parameters: + * Source and Destination addresses, Transfer Direction, Transfer size, Source and Destination + * data formats, Circular or Normal mode, Stream Priority level, Source and Destination + * Incrementation mode, FIFO mode and its Threshold (if needed), Burst mode for Source and/or + * Destination (if needed) using the DMA_Init() function. + * To avoid filling un-nesecessary fields, you can call DMA_StructInit() function + * to initialize a given structure with default values (reset values), the modify + * only necessary fields (ie. Source and Destination addresses, Transfer size and Data Formats). + * + * 4. Enable the NVIC and the corresponding interrupt(s) using the function + * DMA_ITConfig() if you need to use DMA interrupts. + * + * 5. Optionally, if the Circular mode is enabled, you can use the Double buffer mode by configuring + * the second Memory address and the first Memory to be used through the function + * DMA_DoubleBufferModeConfig(). Then enable the Double buffer mode through the function + * DMA_DoubleBufferModeCmd(). These operations must be done before step 6. + * + * 6. Enable the DMA stream using the DMA_Cmd() function. + * + * 7. Activate the needed Stream Request using PPP_DMACmd() function for + * any PPP peripheral except internal SRAM and FLASH (ie. SPI, USART ...) + * The function allowing this operation is provided in each PPP peripheral + * driver (ie. SPI_DMACmd for SPI peripheral). + * Once the Stream is enabled, it is not possible to modify its configuration + * unless the stream is stopped and disabled. + * After enabling the Stream, it is advised to monitor the EN bit status using + * the function DMA_GetCmdStatus(). In case of configuration errors or bus errors + * this bit will remain reset and all transfers on this Stream will remain on hold. + * + * 8. Optionally, you can configure the number of data to be transferred + * when the Stream is disabled (ie. after each Transfer Complete event + * or when a Transfer Error occurs) using the function DMA_SetCurrDataCounter(). + * And you can get the number of remaining data to be transferred using + * the function DMA_GetCurrDataCounter() at run time (when the DMA Stream is + * enabled and running). + * + * 9. To control DMA events you can use one of the following + * two methods: + * a- Check on DMA Stream flags using the function DMA_GetFlagStatus(). + * b- Use DMA interrupts through the function DMA_ITConfig() at initialization + * phase and DMA_GetITStatus() function into interrupt routines in + * communication phase. + * After checking on a flag you should clear it using DMA_ClearFlag() + * function. And after checking on an interrupt event you should + * clear it using DMA_ClearITPendingBit() function. + * + * 10. Optionally, if Circular mode and Double Buffer mode are enabled, you can modify + * the Memory Addresses using the function DMA_MemoryTargetConfig(). Make sure that + * the Memory Address to be modified is not the one currently in use by DMA Stream. + * This condition can be monitored using the function DMA_GetCurrentMemoryTarget(). + * + * 11. Optionally, Pause-Resume operations may be performed: + * The DMA_Cmd() function may be used to perform Pause-Resume operation. When a + * transfer is ongoing, calling this function to disable the Stream will cause the + * transfer to be paused. All configuration registers and the number of remaining + * data will be preserved. When calling again this function to re-enable the Stream, + * the transfer will be resumed from the point where it was paused. + * + * @note Memory-to-Memory transfer is possible by setting the address of the memory into + * the Peripheral registers. In this mode, Circular mode and Double Buffer mode + * are not allowed. + * + * @note The FIFO is used mainly to reduce bus usage and to allow data packing/unpacking: it is + * possible to set different Data Sizes for the Peripheral and the Memory (ie. you can set + * Half-Word data size for the peripheral to access its data register and set Word data size + * for the Memory to gain in access time. Each two Half-words will be packed and written in + * a single access to a Word in the Memory). + * + * @note When FIFO is disabled, it is not allowed to configure different Data Sizes for Source + * and Destination. In this case the Peripheral Data Size will be applied to both Source + * and Destination. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_dma.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup DMA + * @brief DMA driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* Masks Definition */ +#define TRANSFER_IT_ENABLE_MASK (uint32_t)(DMA_SxCR_TCIE | DMA_SxCR_HTIE | \ + DMA_SxCR_TEIE | DMA_SxCR_DMEIE) + +#define DMA_Stream0_IT_MASK (uint32_t)(DMA_LISR_FEIF0 | DMA_LISR_DMEIF0 | \ + DMA_LISR_TEIF0 | DMA_LISR_HTIF0 | \ + DMA_LISR_TCIF0) + +#define DMA_Stream1_IT_MASK (uint32_t)(DMA_Stream0_IT_MASK << 6) +#define DMA_Stream2_IT_MASK (uint32_t)(DMA_Stream0_IT_MASK << 16) +#define DMA_Stream3_IT_MASK (uint32_t)(DMA_Stream0_IT_MASK << 22) +#define DMA_Stream4_IT_MASK (uint32_t)(DMA_Stream0_IT_MASK | (uint32_t)0x20000000) +#define DMA_Stream5_IT_MASK (uint32_t)(DMA_Stream1_IT_MASK | (uint32_t)0x20000000) +#define DMA_Stream6_IT_MASK (uint32_t)(DMA_Stream2_IT_MASK | (uint32_t)0x20000000) +#define DMA_Stream7_IT_MASK (uint32_t)(DMA_Stream3_IT_MASK | (uint32_t)0x20000000) +#define TRANSFER_IT_MASK (uint32_t)0x0F3C0F3C +#define HIGH_ISR_MASK (uint32_t)0x20000000 +#define RESERVED_MASK (uint32_t)0x0F7D0F7D + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + + +/** @defgroup DMA_Private_Functions + * @{ + */ + +/** @defgroup DMA_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + + This subsection provides functions allowing to initialize the DMA Stream source + and destination addresses, incrementation and data sizes, transfer direction, + buffer size, circular/normal mode selection, memory-to-memory mode selection + and Stream priority value. + + The DMA_Init() function follows the DMA configuration procedures as described in + reference manual (RM0033) except the first point: waiting on EN bit to be reset. + This condition should be checked by user application using the function DMA_GetCmdStatus() + before calling the DMA_Init() function. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitialize the DMAy Streamx registers to their default reset values. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @retval None + */ +void DMA_DeInit(DMA_Stream_TypeDef* DMAy_Streamx) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Disable the selected DMAy Streamx */ + DMAy_Streamx->CR &= ~((uint32_t)DMA_SxCR_EN); + + /* Reset DMAy Streamx control register */ + DMAy_Streamx->CR = 0; + + /* Reset DMAy Streamx Number of Data to Transfer register */ + DMAy_Streamx->NDTR = 0; + + /* Reset DMAy Streamx peripheral address register */ + DMAy_Streamx->PAR = 0; + + /* Reset DMAy Streamx memory 0 address register */ + DMAy_Streamx->M0AR = 0; + + /* Reset DMAy Streamx memory 1 address register */ + DMAy_Streamx->M1AR = 0; + + /* Reset DMAy Streamx FIFO control register */ + DMAy_Streamx->FCR = (uint32_t)0x00000021; + + /* Reset interrupt pending bits for the selected stream */ + if (DMAy_Streamx == DMA1_Stream0) + { + /* Reset interrupt pending bits for DMA1 Stream0 */ + DMA1->LIFCR = DMA_Stream0_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream1) + { + /* Reset interrupt pending bits for DMA1 Stream1 */ + DMA1->LIFCR = DMA_Stream1_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream2) + { + /* Reset interrupt pending bits for DMA1 Stream2 */ + DMA1->LIFCR = DMA_Stream2_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream3) + { + /* Reset interrupt pending bits for DMA1 Stream3 */ + DMA1->LIFCR = DMA_Stream3_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream4) + { + /* Reset interrupt pending bits for DMA1 Stream4 */ + DMA1->HIFCR = DMA_Stream4_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream5) + { + /* Reset interrupt pending bits for DMA1 Stream5 */ + DMA1->HIFCR = DMA_Stream5_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream6) + { + /* Reset interrupt pending bits for DMA1 Stream6 */ + DMA1->HIFCR = (uint32_t)DMA_Stream6_IT_MASK; + } + else if (DMAy_Streamx == DMA1_Stream7) + { + /* Reset interrupt pending bits for DMA1 Stream7 */ + DMA1->HIFCR = DMA_Stream7_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream0) + { + /* Reset interrupt pending bits for DMA2 Stream0 */ + DMA2->LIFCR = DMA_Stream0_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream1) + { + /* Reset interrupt pending bits for DMA2 Stream1 */ + DMA2->LIFCR = DMA_Stream1_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream2) + { + /* Reset interrupt pending bits for DMA2 Stream2 */ + DMA2->LIFCR = DMA_Stream2_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream3) + { + /* Reset interrupt pending bits for DMA2 Stream3 */ + DMA2->LIFCR = DMA_Stream3_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream4) + { + /* Reset interrupt pending bits for DMA2 Stream4 */ + DMA2->HIFCR = DMA_Stream4_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream5) + { + /* Reset interrupt pending bits for DMA2 Stream5 */ + DMA2->HIFCR = DMA_Stream5_IT_MASK; + } + else if (DMAy_Streamx == DMA2_Stream6) + { + /* Reset interrupt pending bits for DMA2 Stream6 */ + DMA2->HIFCR = DMA_Stream6_IT_MASK; + } + else + { + if (DMAy_Streamx == DMA2_Stream7) + { + /* Reset interrupt pending bits for DMA2 Stream7 */ + DMA2->HIFCR = DMA_Stream7_IT_MASK; + } + } +} + +/** + * @brief Initializes the DMAy Streamx according to the specified parameters in + * the DMA_InitStruct structure. + * @note Before calling this function, it is recommended to check that the Stream + * is actually disabled using the function DMA_GetCmdStatus(). + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_InitStruct: pointer to a DMA_InitTypeDef structure that contains + * the configuration information for the specified DMA Stream. + * @retval None + */ +void DMA_Init(DMA_Stream_TypeDef* DMAy_Streamx, DMA_InitTypeDef* DMA_InitStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CHANNEL(DMA_InitStruct->DMA_Channel)); + assert_param(IS_DMA_DIRECTION(DMA_InitStruct->DMA_DIR)); + assert_param(IS_DMA_BUFFER_SIZE(DMA_InitStruct->DMA_BufferSize)); + assert_param(IS_DMA_PERIPHERAL_INC_STATE(DMA_InitStruct->DMA_PeripheralInc)); + assert_param(IS_DMA_MEMORY_INC_STATE(DMA_InitStruct->DMA_MemoryInc)); + assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(DMA_InitStruct->DMA_PeripheralDataSize)); + assert_param(IS_DMA_MEMORY_DATA_SIZE(DMA_InitStruct->DMA_MemoryDataSize)); + assert_param(IS_DMA_MODE(DMA_InitStruct->DMA_Mode)); + assert_param(IS_DMA_PRIORITY(DMA_InitStruct->DMA_Priority)); + assert_param(IS_DMA_FIFO_MODE_STATE(DMA_InitStruct->DMA_FIFOMode)); + assert_param(IS_DMA_FIFO_THRESHOLD(DMA_InitStruct->DMA_FIFOThreshold)); + assert_param(IS_DMA_MEMORY_BURST(DMA_InitStruct->DMA_MemoryBurst)); + assert_param(IS_DMA_PERIPHERAL_BURST(DMA_InitStruct->DMA_PeripheralBurst)); + + /*------------------------- DMAy Streamx CR Configuration ------------------*/ + /* Get the DMAy_Streamx CR value */ + tmpreg = DMAy_Streamx->CR; + + /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC and DIR bits */ + tmpreg &= ((uint32_t)~(DMA_SxCR_CHSEL | DMA_SxCR_MBURST | DMA_SxCR_PBURST | \ + DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \ + DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \ + DMA_SxCR_DIR)); + + /* Configure DMAy Streamx: */ + /* Set CHSEL bits according to DMA_CHSEL value */ + /* Set DIR bits according to DMA_DIR value */ + /* Set PINC bit according to DMA_PeripheralInc value */ + /* Set MINC bit according to DMA_MemoryInc value */ + /* Set PSIZE bits according to DMA_PeripheralDataSize value */ + /* Set MSIZE bits according to DMA_MemoryDataSize value */ + /* Set CIRC bit according to DMA_Mode value */ + /* Set PL bits according to DMA_Priority value */ + /* Set MBURST bits according to DMA_MemoryBurst value */ + /* Set PBURST bits according to DMA_PeripheralBurst value */ + tmpreg |= DMA_InitStruct->DMA_Channel | DMA_InitStruct->DMA_DIR | + DMA_InitStruct->DMA_PeripheralInc | DMA_InitStruct->DMA_MemoryInc | + DMA_InitStruct->DMA_PeripheralDataSize | DMA_InitStruct->DMA_MemoryDataSize | + DMA_InitStruct->DMA_Mode | DMA_InitStruct->DMA_Priority | + DMA_InitStruct->DMA_MemoryBurst | DMA_InitStruct->DMA_PeripheralBurst; + + /* Write to DMAy Streamx CR register */ + DMAy_Streamx->CR = tmpreg; + + /*------------------------- DMAy Streamx FCR Configuration -----------------*/ + /* Get the DMAy_Streamx FCR value */ + tmpreg = DMAy_Streamx->FCR; + + /* Clear DMDIS and FTH bits */ + tmpreg &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); + + /* Configure DMAy Streamx FIFO: + Set DMDIS bits according to DMA_FIFOMode value + Set FTH bits according to DMA_FIFOThreshold value */ + tmpreg |= DMA_InitStruct->DMA_FIFOMode | DMA_InitStruct->DMA_FIFOThreshold; + + /* Write to DMAy Streamx CR */ + DMAy_Streamx->FCR = tmpreg; + + /*------------------------- DMAy Streamx NDTR Configuration ----------------*/ + /* Write to DMAy Streamx NDTR register */ + DMAy_Streamx->NDTR = DMA_InitStruct->DMA_BufferSize; + + /*------------------------- DMAy Streamx PAR Configuration -----------------*/ + /* Write to DMAy Streamx PAR */ + DMAy_Streamx->PAR = DMA_InitStruct->DMA_PeripheralBaseAddr; + + /*------------------------- DMAy Streamx M0AR Configuration ----------------*/ + /* Write to DMAy Streamx M0AR */ + DMAy_Streamx->M0AR = DMA_InitStruct->DMA_Memory0BaseAddr; +} + +/** + * @brief Fills each DMA_InitStruct member with its default value. + * @param DMA_InitStruct : pointer to a DMA_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void DMA_StructInit(DMA_InitTypeDef* DMA_InitStruct) +{ + /*-------------- Reset DMA init structure parameters values ----------------*/ + /* Initialize the DMA_Channel member */ + DMA_InitStruct->DMA_Channel = 0; + + /* Initialize the DMA_PeripheralBaseAddr member */ + DMA_InitStruct->DMA_PeripheralBaseAddr = 0; + + /* Initialize the DMA_Memory0BaseAddr member */ + DMA_InitStruct->DMA_Memory0BaseAddr = 0; + + /* Initialize the DMA_DIR member */ + DMA_InitStruct->DMA_DIR = DMA_DIR_PeripheralToMemory; + + /* Initialize the DMA_BufferSize member */ + DMA_InitStruct->DMA_BufferSize = 0; + + /* Initialize the DMA_PeripheralInc member */ + DMA_InitStruct->DMA_PeripheralInc = DMA_PeripheralInc_Disable; + + /* Initialize the DMA_MemoryInc member */ + DMA_InitStruct->DMA_MemoryInc = DMA_MemoryInc_Disable; + + /* Initialize the DMA_PeripheralDataSize member */ + DMA_InitStruct->DMA_PeripheralDataSize = DMA_PeripheralDataSize_Byte; + + /* Initialize the DMA_MemoryDataSize member */ + DMA_InitStruct->DMA_MemoryDataSize = DMA_MemoryDataSize_Byte; + + /* Initialize the DMA_Mode member */ + DMA_InitStruct->DMA_Mode = DMA_Mode_Normal; + + /* Initialize the DMA_Priority member */ + DMA_InitStruct->DMA_Priority = DMA_Priority_Low; + + /* Initialize the DMA_FIFOMode member */ + DMA_InitStruct->DMA_FIFOMode = DMA_FIFOMode_Disable; + + /* Initialize the DMA_FIFOThreshold member */ + DMA_InitStruct->DMA_FIFOThreshold = DMA_FIFOThreshold_1QuarterFull; + + /* Initialize the DMA_MemoryBurst member */ + DMA_InitStruct->DMA_MemoryBurst = DMA_MemoryBurst_Single; + + /* Initialize the DMA_PeripheralBurst member */ + DMA_InitStruct->DMA_PeripheralBurst = DMA_PeripheralBurst_Single; +} + +/** + * @brief Enables or disables the specified DMAy Streamx. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param NewState: new state of the DMAy Streamx. + * This parameter can be: ENABLE or DISABLE. + * + * @note This function may be used to perform Pause-Resume operation. When a + * transfer is ongoing, calling this function to disable the Stream will + * cause the transfer to be paused. All configuration registers and the + * number of remaining data will be preserved. When calling again this + * function to re-enable the Stream, the transfer will be resumed from + * the point where it was paused. + * + * @note After configuring the DMA Stream (DMA_Init() function) and enabling the + * stream, it is recommended to check (or wait until) the DMA Stream is + * effectively enabled. A Stream may remain disabled if a configuration + * parameter is wrong. + * After disabling a DMA Stream, it is also recommended to check (or wait + * until) the DMA Stream is effectively disabled. If a Stream is disabled + * while a data transfer is ongoing, the current data will be transferred + * and the Stream will be effectively disabled only after the transfer of + * this single data is finished. + * + * @retval None + */ +void DMA_Cmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected DMAy Streamx by setting EN bit */ + DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_EN; + } + else + { + /* Disable the selected DMAy Streamx by clearing EN bit */ + DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_EN; + } +} + +/** + * @brief Configures, when the PINC (Peripheral Increment address mode) bit is + * set, if the peripheral address should be incremented with the data + * size (configured with PSIZE bits) or by a fixed offset equal to 4 + * (32-bit aligned addresses). + * + * @note This function has no effect if the Peripheral Increment mode is disabled. + * + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_Pincos: specifies the Peripheral increment offset size. + * This parameter can be one of the following values: + * @arg DMA_PINCOS_Psize: Peripheral address increment is done + * accordingly to PSIZE parameter. + * @arg DMA_PINCOS_WordAligned: Peripheral address increment offset is + * fixed to 4 (32-bit aligned addresses). + * @retval None + */ +void DMA_PeriphIncOffsetSizeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_Pincos) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_PINCOS_SIZE(DMA_Pincos)); + + /* Check the needed Peripheral increment offset */ + if(DMA_Pincos != DMA_PINCOS_Psize) + { + /* Configure DMA_SxCR_PINCOS bit with the input parameter */ + DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_PINCOS; + } + else + { + /* Clear the PINCOS bit: Peripheral address incremented according to PSIZE */ + DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_PINCOS; + } +} + +/** + * @brief Configures, when the DMAy Streamx is disabled, the flow controller for + * the next transactions (Peripheral or Memory). + * + * @note Before enabling this feature, check if the used peripheral supports + * the Flow Controller mode or not. + * + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_FlowCtrl: specifies the DMA flow controller. + * This parameter can be one of the following values: + * @arg DMA_FlowCtrl_Memory: DMAy_Streamx transactions flow controller is + * the DMA controller. + * @arg DMA_FlowCtrl_Peripheral: DMAy_Streamx transactions flow controller + * is the peripheral. + * @retval None + */ +void DMA_FlowControllerConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FlowCtrl) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_FLOW_CTRL(DMA_FlowCtrl)); + + /* Check the needed flow controller */ + if(DMA_FlowCtrl != DMA_FlowCtrl_Memory) + { + /* Configure DMA_SxCR_PFCTRL bit with the input parameter */ + DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_PFCTRL; + } + else + { + /* Clear the PFCTRL bit: Memory is the flow controller */ + DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_PFCTRL; + } +} +/** + * @} + */ + +/** @defgroup DMA_Group2 Data Counter functions + * @brief Data Counter functions + * +@verbatim + =============================================================================== + Data Counter functions + =============================================================================== + + This subsection provides function allowing to configure and read the buffer size + (number of data to be transferred). + + The DMA data counter can be written only when the DMA Stream is disabled + (ie. after transfer complete event). + + The following function can be used to write the Stream data counter value: + - void DMA_SetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx, uint16_t Counter); + +@note It is advised to use this function rather than DMA_Init() in situations where + only the Data buffer needs to be reloaded. + +@note If the Source and Destination Data Sizes are different, then the value written in + data counter, expressing the number of transfers, is relative to the number of + transfers from the Peripheral point of view. + ie. If Memory data size is Word, Peripheral data size is Half-Words, then the value + to be configured in the data counter is the number of Half-Words to be transferred + from/to the peripheral. + + The DMA data counter can be read to indicate the number of remaining transfers for + the relative DMA Stream. This counter is decremented at the end of each data + transfer and when the transfer is complete: + - If Normal mode is selected: the counter is set to 0. + - If Circular mode is selected: the counter is reloaded with the initial value + (configured before enabling the DMA Stream) + + The following function can be used to read the Stream data counter value: + - uint16_t DMA_GetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx); + +@endverbatim + * @{ + */ + +/** + * @brief Writes the number of data units to be transferred on the DMAy Streamx. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param Counter: Number of data units to be transferred (from 0 to 65535) + * Number of data items depends only on the Peripheral data format. + * + * @note If Peripheral data format is Bytes: number of data units is equal + * to total number of bytes to be transferred. + * + * @note If Peripheral data format is Half-Word: number of data units is + * equal to total number of bytes to be transferred / 2. + * + * @note If Peripheral data format is Word: number of data units is equal + * to total number of bytes to be transferred / 4. + * + * @note In Memory-to-Memory transfer mode, the memory buffer pointed by + * DMAy_SxPAR register is considered as Peripheral. + * + * @retval The number of remaining data units in the current DMAy Streamx transfer. + */ +void DMA_SetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx, uint16_t Counter) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Write the number of data units to be transferred */ + DMAy_Streamx->NDTR = (uint16_t)Counter; +} + +/** + * @brief Returns the number of remaining data units in the current DMAy Streamx transfer. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @retval The number of remaining data units in the current DMAy Streamx transfer. + */ +uint16_t DMA_GetCurrDataCounter(DMA_Stream_TypeDef* DMAy_Streamx) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Return the number of remaining data units for DMAy Streamx */ + return ((uint16_t)(DMAy_Streamx->NDTR)); +} +/** + * @} + */ + +/** @defgroup DMA_Group3 Double Buffer mode functions + * @brief Double Buffer mode functions + * +@verbatim + =============================================================================== + Double Buffer mode functions + =============================================================================== + + This subsection provides function allowing to configure and control the double + buffer mode parameters. + + The Double Buffer mode can be used only when Circular mode is enabled. + The Double Buffer mode cannot be used when transferring data from Memory to Memory. + + The Double Buffer mode allows to set two different Memory addresses from/to which + the DMA controller will access alternatively (after completing transfer to/from target + memory 0, it will start transfer to/from target memory 1). + This allows to reduce software overhead for double buffering and reduce the CPU + access time. + + Two functions must be called before calling the DMA_Init() function: + - void DMA_DoubleBufferModeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t Memory1BaseAddr, + uint32_t DMA_CurrentMemory); + - void DMA_DoubleBufferModeCmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState); + + DMA_DoubleBufferModeConfig() is called to configure the Memory 1 base address and the first + Memory target from/to which the transfer will start after enabling the DMA Stream. + Then DMA_DoubleBufferModeCmd() must be called to enable the Double Buffer mode (or disable + it when it should not be used). + + + Two functions can be called dynamically when the transfer is ongoing (or when the DMA Stream is + stopped) to modify on of the target Memories addresses or to check wich Memory target is currently + used: + - void DMA_MemoryTargetConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t MemoryBaseAddr, + uint32_t DMA_MemoryTarget); + - uint32_t DMA_GetCurrentMemoryTarget(DMA_Stream_TypeDef* DMAy_Streamx); + + DMA_MemoryTargetConfig() can be called to modify the base address of one of the two target Memories. + The Memory of which the base address will be modified must not be currently be used by the DMA Stream + (ie. if the DMA Stream is currently transferring from Memory 1 then you can only modify base address + of target Memory 0 and vice versa). + To check this condition, it is recommended to use the function DMA_GetCurrentMemoryTarget() which + returns the index of the Memory target currently in use by the DMA Stream. + +@endverbatim + * @{ + */ + +/** + * @brief Configures, when the DMAy Streamx is disabled, the double buffer mode + * and the current memory target. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param Memory1BaseAddr: the base address of the second buffer (Memory 1) + * @param DMA_CurrentMemory: specifies which memory will be first buffer for + * the transactions when the Stream will be enabled. + * This parameter can be one of the following values: + * @arg DMA_Memory_0: Memory 0 is the current buffer. + * @arg DMA_Memory_1: Memory 1 is the current buffer. + * + * @note Memory0BaseAddr is set by the DMA structure configuration in DMA_Init(). + * + * @retval None + */ +void DMA_DoubleBufferModeConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t Memory1BaseAddr, + uint32_t DMA_CurrentMemory) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CURRENT_MEM(DMA_CurrentMemory)); + + if (DMA_CurrentMemory != DMA_Memory_0) + { + /* Set Memory 1 as current memory address */ + DMAy_Streamx->CR |= (uint32_t)(DMA_SxCR_CT); + } + else + { + /* Set Memory 0 as current memory address */ + DMAy_Streamx->CR &= ~(uint32_t)(DMA_SxCR_CT); + } + + /* Write to DMAy Streamx M1AR */ + DMAy_Streamx->M1AR = Memory1BaseAddr; +} + +/** + * @brief Enables or disables the double buffer mode for the selected DMA stream. + * @note This function can be called only when the DMA Stream is disabled. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param NewState: new state of the DMAy Streamx double buffer mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DMA_DoubleBufferModeCmd(DMA_Stream_TypeDef* DMAy_Streamx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Configure the Double Buffer mode */ + if (NewState != DISABLE) + { + /* Enable the Double buffer mode */ + DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_DBM; + } + else + { + /* Disable the Double buffer mode */ + DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_DBM; + } +} + +/** + * @brief Configures the Memory address for the next buffer transfer in double + * buffer mode (for dynamic use). This function can be called when the + * DMA Stream is enabled and when the transfer is ongoing. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param MemoryBaseAddr: The base address of the target memory buffer + * @param DMA_MemoryTarget: Next memory target to be used. + * This parameter can be one of the following values: + * @arg DMA_Memory_0: To use the memory address 0 + * @arg DMA_Memory_1: To use the memory address 1 + * + * @note It is not allowed to modify the Base Address of a target Memory when + * this target is involved in the current transfer. ie. If the DMA Stream + * is currently transferring to/from Memory 1, then it not possible to + * modify Base address of Memory 1, but it is possible to modify Base + * address of Memory 0. + * To know which Memory is currently used, you can use the function + * DMA_GetCurrentMemoryTarget(). + * + * @retval None + */ +void DMA_MemoryTargetConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t MemoryBaseAddr, + uint32_t DMA_MemoryTarget) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CURRENT_MEM(DMA_MemoryTarget)); + + /* Check the Memory target to be configured */ + if (DMA_MemoryTarget != DMA_Memory_0) + { + /* Write to DMAy Streamx M1AR */ + DMAy_Streamx->M1AR = MemoryBaseAddr; + } + else + { + /* Write to DMAy Streamx M0AR */ + DMAy_Streamx->M0AR = MemoryBaseAddr; + } +} + +/** + * @brief Returns the current memory target used by double buffer transfer. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @retval The memory target number: 0 for Memory0 or 1 for Memory1. + */ +uint32_t DMA_GetCurrentMemoryTarget(DMA_Stream_TypeDef* DMAy_Streamx) +{ + uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Get the current memory target */ + if ((DMAy_Streamx->CR & DMA_SxCR_CT) != 0) + { + /* Current memory buffer used is Memory 1 */ + tmp = 1; + } + else + { + /* Current memory buffer used is Memory 0 */ + tmp = 0; + } + return tmp; +} +/** + * @} + */ + +/** @defgroup DMA_Group4 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This subsection provides functions allowing to + - Check the DMA enable status + - Check the FIFO status + - Configure the DMA Interrupts sources and check or clear the flags or pending bits status. + + 1. DMA Enable status: + After configuring the DMA Stream (DMA_Init() function) and enabling the stream, + it is recommended to check (or wait until) the DMA Stream is effectively enabled. + A Stream may remain disabled if a configuration parameter is wrong. + After disabling a DMA Stream, it is also recommended to check (or wait until) the DMA + Stream is effectively disabled. If a Stream is disabled while a data transfer is ongoing, + the current data will be transferred and the Stream will be effectively disabled only after + this data transfer completion. + To monitor this state it is possible to use the following function: + - FunctionalState DMA_GetCmdStatus(DMA_Stream_TypeDef* DMAy_Streamx); + + 2. FIFO Status: + It is possible to monitor the FIFO status when a transfer is ongoing using the following + function: + - uint32_t DMA_GetFIFOStatus(DMA_Stream_TypeDef* DMAy_Streamx); + + 3. DMA Interrupts and Flags: + The user should identify which mode will be used in his application to manage the + DMA controller events: Polling mode or Interrupt mode. + + Polling Mode + ============= + Each DMA stream can be managed through 4 event Flags: + (x : DMA Stream number ) + 1. DMA_FLAG_FEIFx : to indicate that a FIFO Mode Transfer Error event occurred. + 2. DMA_FLAG_DMEIFx : to indicate that a Direct Mode Transfer Error event occurred. + 3. DMA_FLAG_TEIFx : to indicate that a Transfer Error event occurred. + 4. DMA_FLAG_HTIFx : to indicate that a Half-Transfer Complete event occurred. + 5. DMA_FLAG_TCIFx : to indicate that a Transfer Complete event occurred . + + In this Mode it is advised to use the following functions: + - FlagStatus DMA_GetFlagStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG); + - void DMA_ClearFlag(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG); + + Interrupt Mode + =============== + Each DMA Stream can be managed through 4 Interrupts: + + Interrupt Source + ---------------- + 1. DMA_IT_FEIFx : specifies the interrupt source for the FIFO Mode Transfer Error event. + 2. DMA_IT_DMEIFx : specifies the interrupt source for the Direct Mode Transfer Error event. + 3. DMA_IT_TEIFx : specifies the interrupt source for the Transfer Error event. + 4. DMA_IT_HTIFx : specifies the interrupt source for the Half-Transfer Complete event. + 5. DMA_IT_TCIFx : specifies the interrupt source for the a Transfer Complete event. + + In this Mode it is advised to use the following functions: + - void DMA_ITConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT, FunctionalState NewState); + - ITStatus DMA_GetITStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT); + - void DMA_ClearITPendingBit(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT); + +@endverbatim + * @{ + */ + +/** + * @brief Returns the status of EN bit for the specified DMAy Streamx. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * + * @note After configuring the DMA Stream (DMA_Init() function) and enabling + * the stream, it is recommended to check (or wait until) the DMA Stream + * is effectively enabled. A Stream may remain disabled if a configuration + * parameter is wrong. + * After disabling a DMA Stream, it is also recommended to check (or wait + * until) the DMA Stream is effectively disabled. If a Stream is disabled + * while a data transfer is ongoing, the current data will be transferred + * and the Stream will be effectively disabled only after the transfer + * of this single data is finished. + * + * @retval Current state of the DMAy Streamx (ENABLE or DISABLE). + */ +FunctionalState DMA_GetCmdStatus(DMA_Stream_TypeDef* DMAy_Streamx) +{ + FunctionalState state = DISABLE; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + if ((DMAy_Streamx->CR & (uint32_t)DMA_SxCR_EN) != 0) + { + /* The selected DMAy Streamx EN bit is set (DMA is still transferring) */ + state = ENABLE; + } + else + { + /* The selected DMAy Streamx EN bit is cleared (DMA is disabled and + all transfers are complete) */ + state = DISABLE; + } + return state; +} + +/** + * @brief Returns the current DMAy Streamx FIFO filled level. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @retval The FIFO filling state. + * - DMA_FIFOStatus_Less1QuarterFull: when FIFO is less than 1 quarter-full + * and not empty. + * - DMA_FIFOStatus_1QuarterFull: if more than 1 quarter-full. + * - DMA_FIFOStatus_HalfFull: if more than 1 half-full. + * - DMA_FIFOStatus_3QuartersFull: if more than 3 quarters-full. + * - DMA_FIFOStatus_Empty: when FIFO is empty + * - DMA_FIFOStatus_Full: when FIFO is full + */ +uint32_t DMA_GetFIFOStatus(DMA_Stream_TypeDef* DMAy_Streamx) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + + /* Get the FIFO level bits */ + tmpreg = (uint32_t)((DMAy_Streamx->FCR & DMA_SxFCR_FS)); + + return tmpreg; +} + +/** + * @brief Checks whether the specified DMAy Streamx flag is set or not. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg DMA_FLAG_TCIFx: Streamx transfer complete flag + * @arg DMA_FLAG_HTIFx: Streamx half transfer complete flag + * @arg DMA_FLAG_TEIFx: Streamx transfer error flag + * @arg DMA_FLAG_DMEIFx: Streamx direct mode error flag + * @arg DMA_FLAG_FEIFx: Streamx FIFO error flag + * Where x can be 0 to 7 to select the DMA Stream. + * @retval The new state of DMA_FLAG (SET or RESET). + */ +FlagStatus DMA_GetFlagStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG) +{ + FlagStatus bitstatus = RESET; + DMA_TypeDef* DMAy; + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_GET_FLAG(DMA_FLAG)); + + /* Determine the DMA to which belongs the stream */ + if (DMAy_Streamx < DMA2_Stream0) + { + /* DMAy_Streamx belongs to DMA1 */ + DMAy = DMA1; + } + else + { + /* DMAy_Streamx belongs to DMA2 */ + DMAy = DMA2; + } + + /* Check if the flag is in HISR or LISR */ + if ((DMA_FLAG & HIGH_ISR_MASK) != (uint32_t)RESET) + { + /* Get DMAy HISR register value */ + tmpreg = DMAy->HISR; + } + else + { + /* Get DMAy LISR register value */ + tmpreg = DMAy->LISR; + } + + /* Mask the reserved bits */ + tmpreg &= (uint32_t)RESERVED_MASK; + + /* Check the status of the specified DMA flag */ + if ((tmpreg & DMA_FLAG) != (uint32_t)RESET) + { + /* DMA_FLAG is set */ + bitstatus = SET; + } + else + { + /* DMA_FLAG is reset */ + bitstatus = RESET; + } + + /* Return the DMA_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the DMAy Streamx's pending flags. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg DMA_FLAG_TCIFx: Streamx transfer complete flag + * @arg DMA_FLAG_HTIFx: Streamx half transfer complete flag + * @arg DMA_FLAG_TEIFx: Streamx transfer error flag + * @arg DMA_FLAG_DMEIFx: Streamx direct mode error flag + * @arg DMA_FLAG_FEIFx: Streamx FIFO error flag + * Where x can be 0 to 7 to select the DMA Stream. + * @retval None + */ +void DMA_ClearFlag(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_FLAG) +{ + DMA_TypeDef* DMAy; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CLEAR_FLAG(DMA_FLAG)); + + /* Determine the DMA to which belongs the stream */ + if (DMAy_Streamx < DMA2_Stream0) + { + /* DMAy_Streamx belongs to DMA1 */ + DMAy = DMA1; + } + else + { + /* DMAy_Streamx belongs to DMA2 */ + DMAy = DMA2; + } + + /* Check if LIFCR or HIFCR register is targeted */ + if ((DMA_FLAG & HIGH_ISR_MASK) != (uint32_t)RESET) + { + /* Set DMAy HIFCR register clear flag bits */ + DMAy->HIFCR = (uint32_t)(DMA_FLAG & RESERVED_MASK); + } + else + { + /* Set DMAy LIFCR register clear flag bits */ + DMAy->LIFCR = (uint32_t)(DMA_FLAG & RESERVED_MASK); + } +} + +/** + * @brief Enables or disables the specified DMAy Streamx interrupts. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_IT: specifies the DMA interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg DMA_IT_TC: Transfer complete interrupt mask + * @arg DMA_IT_HT: Half transfer complete interrupt mask + * @arg DMA_IT_TE: Transfer error interrupt mask + * @arg DMA_IT_FE: FIFO error interrupt mask + * @param NewState: new state of the specified DMA interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void DMA_ITConfig(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CONFIG_IT(DMA_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Check if the DMA_IT parameter contains a FIFO interrupt */ + if ((DMA_IT & DMA_IT_FE) != 0) + { + if (NewState != DISABLE) + { + /* Enable the selected DMA FIFO interrupts */ + DMAy_Streamx->FCR |= (uint32_t)DMA_IT_FE; + } + else + { + /* Disable the selected DMA FIFO interrupts */ + DMAy_Streamx->FCR &= ~(uint32_t)DMA_IT_FE; + } + } + + /* Check if the DMA_IT parameter contains a Transfer interrupt */ + if (DMA_IT != DMA_IT_FE) + { + if (NewState != DISABLE) + { + /* Enable the selected DMA transfer interrupts */ + DMAy_Streamx->CR |= (uint32_t)(DMA_IT & TRANSFER_IT_ENABLE_MASK); + } + else + { + /* Disable the selected DMA transfer interrupts */ + DMAy_Streamx->CR &= ~(uint32_t)(DMA_IT & TRANSFER_IT_ENABLE_MASK); + } + } +} + +/** + * @brief Checks whether the specified DMAy Streamx interrupt has occurred or not. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_IT: specifies the DMA interrupt source to check. + * This parameter can be one of the following values: + * @arg DMA_IT_TCIFx: Streamx transfer complete interrupt + * @arg DMA_IT_HTIFx: Streamx half transfer complete interrupt + * @arg DMA_IT_TEIFx: Streamx transfer error interrupt + * @arg DMA_IT_DMEIFx: Streamx direct mode error interrupt + * @arg DMA_IT_FEIFx: Streamx FIFO error interrupt + * Where x can be 0 to 7 to select the DMA Stream. + * @retval The new state of DMA_IT (SET or RESET). + */ +ITStatus DMA_GetITStatus(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT) +{ + ITStatus bitstatus = RESET; + DMA_TypeDef* DMAy; + uint32_t tmpreg = 0, enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_GET_IT(DMA_IT)); + + /* Determine the DMA to which belongs the stream */ + if (DMAy_Streamx < DMA2_Stream0) + { + /* DMAy_Streamx belongs to DMA1 */ + DMAy = DMA1; + } + else + { + /* DMAy_Streamx belongs to DMA2 */ + DMAy = DMA2; + } + + /* Check if the interrupt enable bit is in the CR or FCR register */ + if ((DMA_IT & TRANSFER_IT_MASK) != (uint32_t)RESET) + { + /* Get the interrupt enable position mask in CR register */ + tmpreg = (uint32_t)((DMA_IT >> 11) & TRANSFER_IT_ENABLE_MASK); + + /* Check the enable bit in CR register */ + enablestatus = (uint32_t)(DMAy_Streamx->CR & tmpreg); + } + else + { + /* Check the enable bit in FCR register */ + enablestatus = (uint32_t)(DMAy_Streamx->FCR & DMA_IT_FE); + } + + /* Check if the interrupt pending flag is in LISR or HISR */ + if ((DMA_IT & HIGH_ISR_MASK) != (uint32_t)RESET) + { + /* Get DMAy HISR register value */ + tmpreg = DMAy->HISR ; + } + else + { + /* Get DMAy LISR register value */ + tmpreg = DMAy->LISR ; + } + + /* mask all reserved bits */ + tmpreg &= (uint32_t)RESERVED_MASK; + + /* Check the status of the specified DMA interrupt */ + if (((tmpreg & DMA_IT) != (uint32_t)RESET) && (enablestatus != (uint32_t)RESET)) + { + /* DMA_IT is set */ + bitstatus = SET; + } + else + { + /* DMA_IT is reset */ + bitstatus = RESET; + } + + /* Return the DMA_IT status */ + return bitstatus; +} + +/** + * @brief Clears the DMAy Streamx's interrupt pending bits. + * @param DMAy_Streamx: where y can be 1 or 2 to select the DMA and x can be 0 + * to 7 to select the DMA Stream. + * @param DMA_IT: specifies the DMA interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg DMA_IT_TCIFx: Streamx transfer complete interrupt + * @arg DMA_IT_HTIFx: Streamx half transfer complete interrupt + * @arg DMA_IT_TEIFx: Streamx transfer error interrupt + * @arg DMA_IT_DMEIFx: Streamx direct mode error interrupt + * @arg DMA_IT_FEIFx: Streamx FIFO error interrupt + * Where x can be 0 to 7 to select the DMA Stream. + * @retval None + */ +void DMA_ClearITPendingBit(DMA_Stream_TypeDef* DMAy_Streamx, uint32_t DMA_IT) +{ + DMA_TypeDef* DMAy; + + /* Check the parameters */ + assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx)); + assert_param(IS_DMA_CLEAR_IT(DMA_IT)); + + /* Determine the DMA to which belongs the stream */ + if (DMAy_Streamx < DMA2_Stream0) + { + /* DMAy_Streamx belongs to DMA1 */ + DMAy = DMA1; + } + else + { + /* DMAy_Streamx belongs to DMA2 */ + DMAy = DMA2; + } + + /* Check if LIFCR or HIFCR register is targeted */ + if ((DMA_IT & HIGH_ISR_MASK) != (uint32_t)RESET) + { + /* Set DMAy HIFCR register clear interrupt bits */ + DMAy->HIFCR = (uint32_t)(DMA_IT & RESERVED_MASK); + } + else + { + /* Set DMAy LIFCR register clear interrupt bits */ + DMAy->LIFCR = (uint32_t)(DMA_IT & RESERVED_MASK); + } +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_exti.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_exti.c new file mode 100644 index 00000000..2964a84a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_exti.c @@ -0,0 +1,312 @@ +/** + ****************************************************************************** + * @file stm32f2xx_exti.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the EXTI peripheral: + * - Initialization and Configuration + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * EXTI features + * =================================================================== + * + * External interrupt/event lines are mapped as following: + * 1- All available GPIO pins are connected to the 16 external + * interrupt/event lines from EXTI0 to EXTI15. + * 2- EXTI line 16 is connected to the PVD Output + * 3- EXTI line 17 is connected to the RTC Alarm event + * 4- EXTI line 18 is connected to the USB OTG FS Wakeup from suspend event + * 5- EXTI line 19 is connected to the Ethernet Wakeup event + * 6- EXTI line 20 is connected to the USB OTG HS (configured in FS) Wakeup event + * 7- EXTI line 21 is connected to the RTC Tamper and Time Stamp events + * 8- EXTI line 22 is connected to the RTC Wakeup event + * + * =================================================================== + * How to use this driver + * =================================================================== + * + * In order to use an I/O pin as an external interrupt source, follow + * steps below: + * 1- Configure the I/O in input mode using GPIO_Init() + * 2- Select the input source pin for the EXTI line using SYSCFG_EXTILineConfig() + * 3- Select the mode(interrupt, event) and configure the trigger + * selection (Rising, falling or both) using EXTI_Init() + * 4- Configure NVIC IRQ channel mapped to the EXTI line using NVIC_Init() + * + * @note SYSCFG APB clock must be enabled to get write access to SYSCFG_EXTICRx + * registers using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_exti.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup EXTI + * @brief EXTI driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +#define EXTI_LINENONE ((uint32_t)0x00000) /* No interrupt selected */ + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup EXTI_Private_Functions + * @{ + */ + +/** @defgroup EXTI_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the EXTI peripheral registers to their default reset values. + * @param None + * @retval None + */ +void EXTI_DeInit(void) +{ + EXTI->IMR = 0x00000000; + EXTI->EMR = 0x00000000; + EXTI->RTSR = 0x00000000; + EXTI->FTSR = 0x00000000; + EXTI->PR = 0x007FFFFF; +} + +/** + * @brief Initializes the EXTI peripheral according to the specified + * parameters in the EXTI_InitStruct. + * @param EXTI_InitStruct: pointer to a EXTI_InitTypeDef structure + * that contains the configuration information for the EXTI peripheral. + * @retval None + */ +void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct) +{ + uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_EXTI_MODE(EXTI_InitStruct->EXTI_Mode)); + assert_param(IS_EXTI_TRIGGER(EXTI_InitStruct->EXTI_Trigger)); + assert_param(IS_EXTI_LINE(EXTI_InitStruct->EXTI_Line)); + assert_param(IS_FUNCTIONAL_STATE(EXTI_InitStruct->EXTI_LineCmd)); + + tmp = (uint32_t)EXTI_BASE; + + if (EXTI_InitStruct->EXTI_LineCmd != DISABLE) + { + /* Clear EXTI line configuration */ + EXTI->IMR &= ~EXTI_InitStruct->EXTI_Line; + EXTI->EMR &= ~EXTI_InitStruct->EXTI_Line; + + tmp += EXTI_InitStruct->EXTI_Mode; + + *(__IO uint32_t *) tmp |= EXTI_InitStruct->EXTI_Line; + + /* Clear Rising Falling edge configuration */ + EXTI->RTSR &= ~EXTI_InitStruct->EXTI_Line; + EXTI->FTSR &= ~EXTI_InitStruct->EXTI_Line; + + /* Select the trigger for the selected external interrupts */ + if (EXTI_InitStruct->EXTI_Trigger == EXTI_Trigger_Rising_Falling) + { + /* Rising Falling edge */ + EXTI->RTSR |= EXTI_InitStruct->EXTI_Line; + EXTI->FTSR |= EXTI_InitStruct->EXTI_Line; + } + else + { + tmp = (uint32_t)EXTI_BASE; + tmp += EXTI_InitStruct->EXTI_Trigger; + + *(__IO uint32_t *) tmp |= EXTI_InitStruct->EXTI_Line; + } + } + else + { + tmp += EXTI_InitStruct->EXTI_Mode; + + /* Disable the selected external lines */ + *(__IO uint32_t *) tmp &= ~EXTI_InitStruct->EXTI_Line; + } +} + +/** + * @brief Fills each EXTI_InitStruct member with its reset value. + * @param EXTI_InitStruct: pointer to a EXTI_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void EXTI_StructInit(EXTI_InitTypeDef* EXTI_InitStruct) +{ + EXTI_InitStruct->EXTI_Line = EXTI_LINENONE; + EXTI_InitStruct->EXTI_Mode = EXTI_Mode_Interrupt; + EXTI_InitStruct->EXTI_Trigger = EXTI_Trigger_Falling; + EXTI_InitStruct->EXTI_LineCmd = DISABLE; +} + +/** + * @brief Generates a Software interrupt on selected EXTI line. + * @param EXTI_Line: specifies the EXTI line on which the software interrupt + * will be generated. + * This parameter can be any combination of EXTI_Linex where x can be (0..22) + * @retval None + */ +void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line) +{ + /* Check the parameters */ + assert_param(IS_EXTI_LINE(EXTI_Line)); + + EXTI->SWIER |= EXTI_Line; +} + +/** + * @} + */ + +/** @defgroup EXTI_Group2 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Checks whether the specified EXTI line flag is set or not. + * @param EXTI_Line: specifies the EXTI line flag to check. + * This parameter can be EXTI_Linex where x can be(0..22) + * @retval The new state of EXTI_Line (SET or RESET). + */ +FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_GET_EXTI_LINE(EXTI_Line)); + + if ((EXTI->PR & EXTI_Line) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the EXTI's line pending flags. + * @param EXTI_Line: specifies the EXTI lines flags to clear. + * This parameter can be any combination of EXTI_Linex where x can be (0..22) + * @retval None + */ +void EXTI_ClearFlag(uint32_t EXTI_Line) +{ + /* Check the parameters */ + assert_param(IS_EXTI_LINE(EXTI_Line)); + + EXTI->PR = EXTI_Line; +} + +/** + * @brief Checks whether the specified EXTI line is asserted or not. + * @param EXTI_Line: specifies the EXTI line to check. + * This parameter can be EXTI_Linex where x can be(0..22) + * @retval The new state of EXTI_Line (SET or RESET). + */ +ITStatus EXTI_GetITStatus(uint32_t EXTI_Line) +{ + ITStatus bitstatus = RESET; + uint32_t enablestatus = 0; + /* Check the parameters */ + assert_param(IS_GET_EXTI_LINE(EXTI_Line)); + + enablestatus = EXTI->IMR & EXTI_Line; + if (((EXTI->PR & EXTI_Line) != (uint32_t)RESET) && (enablestatus != (uint32_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the EXTI's line pending bits. + * @param EXTI_Line: specifies the EXTI lines to clear. + * This parameter can be any combination of EXTI_Linex where x can be (0..22) + * @retval None + */ +void EXTI_ClearITPendingBit(uint32_t EXTI_Line) +{ + /* Check the parameters */ + assert_param(IS_EXTI_LINE(EXTI_Line)); + + EXTI->PR = EXTI_Line; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_flash.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_flash.c new file mode 100644 index 00000000..59a2c8d5 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_flash.c @@ -0,0 +1,1060 @@ +/** + ****************************************************************************** + * @file stm32f2xx_flash.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the FLASH peripheral: + * - FLASH Interface configuration + * - FLASH Memory Programming + * - Option Bytes Programming + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * + * This driver provides functions to configure and program the FLASH + * memory of all STM32F2xx devices. + * These functions are split in 4 groups: + * + * 1. FLASH Interface configuration functions: this group includes the + * management of the following features: + * - Set the latency + * - Enable/Disable the prefetch buffer + * - Enable/Disable the Instruction cache and the Data cache + * - Reset the Instruction cache and the Data cache + * + * 2. FLASH Memory Programming functions: this group includes all needed + * functions to erase and program the main memory: + * - Lock and Unlock the FLASH interface + * - Erase function: Erase sector, erase all sectors + * - Program functions: byte, half word, word and double word + * + * 3. Option Bytes Programming functions: this group includes all needed + * functions to manage the Option Bytes: + * - Set/Reset the write protection + * - Set the Read protection Level + * - Set the BOR level + * - Program the user Option Bytes + * - Launch the Option Bytes loader + * + * 4. Interrupts and flags management functions: this group + * includes all needed functions to: + * - Enable/Disable the FLASH interrupt sources + * - Get flags status + * - Clear flags + * - Get FLASH operation status + * - Wait for last FLASH operation + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_flash.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup FLASH + * @brief FLASH driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define SECTOR_MASK ((uint32_t)0xFFFFFF07) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup FLASH_Private_Functions + * @{ + */ + +/** @defgroup FLASH_Group1 FLASH Interface configuration functions + * @brief FLASH Interface configuration functions + * + +@verbatim + =============================================================================== + FLASH Interface configuration functions + =============================================================================== + + This group includes the following functions: + - void FLASH_SetLatency(uint32_t FLASH_Latency) + To correctly read data from FLASH memory, the number of wait states (LATENCY) + must be correctly programmed according to the frequency of the CPU clock + (HCLK) and the supply voltage of the device. + +-------------------------------------------------------------------------------------+ + | Latency | HCLK clock frequency (MHz) | + | |---------------------------------------------------------------------| + | | voltage range | voltage range | voltage range | voltage range | + | | 2.7 V - 3.6 V | 2.4 V - 2.7 V | 2.1 V - 2.4 V | 1.8 V - 2.1 V | + |---------------|----------------|----------------|-----------------|-----------------| + |0WS(1CPU cycle)|0 < HCLK <= 30 |0 < HCLK <= 24 |0 < HCLK <= 18 |0 < HCLK <= 16 | + |---------------|----------------|----------------|-----------------|-----------------| + |1WS(2CPU cycle)|30 < HCLK <= 60 |24 < HCLK <= 48 |18 < HCLK <= 36 |16 < HCLK <= 32 | + |---------------|----------------|----------------|-----------------|-----------------| + |2WS(3CPU cycle)|60 < HCLK <= 90 |48 < HCLK <= 72 |36 < HCLK <= 54 |32 < HCLK <= 48 | + |---------------|----------------|----------------|-----------------|-----------------| + |3WS(4CPU cycle)|90 < HCLK <= 120|72 < HCLK <= 96 |54 < HCLK <= 72 |48 < HCLK <= 64 | + |---------------|----------------|----------------|-----------------|-----------------| + |4WS(5CPU cycle)| NA |96 < HCLK <= 120|72 < HCLK <= 90 |64 < HCLK <= 80 | + |---------------|----------------|----------------|-----------------|-----------------| + |5WS(6CPU cycle)| NA | NA |90 < HCLK <= 108 |80 < HCLK <= 96 | + |---------------|----------------|----------------|-----------------|-----------------| + |6WS(7CPU cycle)| NA | NA |108 < HCLK <= 120|96 < HCLK <= 112 | + |---------------|----------------|----------------|-----------------|-----------------| + |7WS(8CPU cycle)| NA | NA | NA |112 < HCLK <= 120| + |***************|****************|****************|*****************|*****************|*****************************+ + | | voltage range | voltage range | voltage range | voltage range | voltage range 2.7 V - 3.6 V | + | | 2.7 V - 3.6 V | 2.4 V - 2.7 V | 2.1 V - 2.4 V | 1.8 V - 2.1 V | with External Vpp = 9V | + |---------------|----------------|----------------|-----------------|-----------------|-----------------------------| + |Max Parallelism| x32 | x16 | x8 | x64 | + |---------------|----------------|----------------|-----------------|-----------------|-----------------------------| + |PSIZE[1:0] | 10 | 01 | 00 | 11 | + +-------------------------------------------------------------------------------------------------------------------+ + + - void FLASH_PrefetchBufferCmd(FunctionalState NewState) + - void FLASH_InstructionCacheCmd(FunctionalState NewState) + - void FLASH_DataCacheCmd(FunctionalState NewState) + - void FLASH_InstructionCacheReset(void) + - void FLASH_DataCacheReset(void) + + The unlock sequence is not needed for these functions. + +@endverbatim + * @{ + */ + +/** + * @brief Sets the code latency value. + * @param FLASH_Latency: specifies the FLASH Latency value. + * This parameter can be one of the following values: + * @arg FLASH_Latency_0: FLASH Zero Latency cycle + * @arg FLASH_Latency_1: FLASH One Latency cycle + * @arg FLASH_Latency_2: FLASH Two Latency cycles + * @arg FLASH_Latency_3: FLASH Three Latency cycles + * @arg FLASH_Latency_4: FLASH Four Latency cycles + * @arg FLASH_Latency_5: FLASH Five Latency cycles + * @arg FLASH_Latency_6: FLASH Six Latency cycles + * @arg FLASH_Latency_7: FLASH Seven Latency cycles + * @retval None + */ +void FLASH_SetLatency(uint32_t FLASH_Latency) +{ + /* Check the parameters */ + assert_param(IS_FLASH_LATENCY(FLASH_Latency)); + + /* Perform Byte access to FLASH_ACR[8:0] to set the Latency value */ + *(__IO uint8_t *)ACR_BYTE0_ADDRESS = (uint8_t)FLASH_Latency; +} + +/** + * @brief Enables or disables the Prefetch Buffer. + * @param NewState: new state of the Prefetch Buffer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FLASH_PrefetchBufferCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Enable or disable the Prefetch Buffer */ + if(NewState != DISABLE) + { + FLASH->ACR |= FLASH_ACR_PRFTEN; + } + else + { + FLASH->ACR &= (~FLASH_ACR_PRFTEN); + } +} + +/** + * @brief Enables or disables the Instruction Cache feature. + * @param NewState: new state of the Instruction Cache. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FLASH_InstructionCacheCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if(NewState != DISABLE) + { + FLASH->ACR |= FLASH_ACR_ICEN; + } + else + { + FLASH->ACR &= (~FLASH_ACR_ICEN); + } +} + +/** + * @brief Enables or disables the Data Cache feature. + * @param NewState: new state of the Data Cache. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FLASH_DataCacheCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if(NewState != DISABLE) + { + FLASH->ACR |= FLASH_ACR_DCEN; + } + else + { + FLASH->ACR &= (~FLASH_ACR_DCEN); + } +} + +/** + * @brief Resets the Instruction Cache. + * @note This function must be used only when the Instruction Cache is disabled. + * @param None + * @retval None + */ +void FLASH_InstructionCacheReset(void) +{ + FLASH->ACR |= FLASH_ACR_ICRST; +} + +/** + * @brief Resets the Data Cache. + * @note This function must be used only when the Data Cache is disabled. + * @param None + * @retval None + */ +void FLASH_DataCacheReset(void) +{ + FLASH->ACR |= FLASH_ACR_DCRST; +} + +/** + * @} + */ + +/** @defgroup FLASH_Group2 FLASH Memory Programming functions + * @brief FLASH Memory Programming functions + * +@verbatim + =============================================================================== + FLASH Memory Programming functions + =============================================================================== + + This group includes the following functions: + - void FLASH_Unlock(void) + - void FLASH_Lock(void) + - FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange) + - FLASH_Status FLASH_EraseAllSectors(uint8_t VoltageRange) + - FLASH_Status FLASH_ProgramDoubleWord(uint32_t Address, uint64_t Data) + - FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data) + - FLASH_Status FLASH_ProgramHalfWord(uint32_t Address, uint16_t Data) + - FLASH_Status FLASH_ProgramByte(uint32_t Address, uint8_t Data) + + Any operation of erase or program should follow these steps: + 1. Call the FLASH_Unlock() function to enable the FLASH control register access + + 2. Call the desired function to erase sector(s) or program data + + 3. Call the FLASH_Lock() function to disable the FLASH control register access + (recommended to protect the FLASH memory against possible unwanted operation) + +@endverbatim + * @{ + */ + +/** + * @brief Unlocks the FLASH control register access + * @param None + * @retval None + */ +void FLASH_Unlock(void) +{ + if((FLASH->CR & FLASH_CR_LOCK) != RESET) + { + /* Authorize the FLASH Registers access */ + FLASH->KEYR = FLASH_KEY1; + FLASH->KEYR = FLASH_KEY2; + } +} + +/** + * @brief Locks the FLASH control register access + * @param None + * @retval None + */ +void FLASH_Lock(void) +{ + /* Set the LOCK Bit to lock the FLASH Registers access */ + FLASH->CR |= FLASH_CR_LOCK; +} + +/** + * @brief Erases a specified FLASH Sector. + * + * @param FLASH_Sector: The Sector number to be erased. + * This parameter can be a value between FLASH_Sector_0 and FLASH_Sector_11 + * + * @param VoltageRange: The device voltage range which defines the erase parallelism. + * This parameter can be one of the following values: + * @arg VoltageRange_1: when the device voltage range is 1.8V to 2.1V, + * the operation will be done by byte (8-bit) + * @arg VoltageRange_2: when the device voltage range is 2.1V to 2.7V, + * the operation will be done by half word (16-bit) + * @arg VoltageRange_3: when the device voltage range is 2.7V to 3.6V, + * the operation will be done by word (32-bit) + * @arg VoltageRange_4: when the device voltage range is 2.7V to 3.6V + External Vpp, + * the operation will be done by double word (64-bit) + * + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange) +{ + uint32_t tmp_psize = 0x0; + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_SECTOR(FLASH_Sector)); + assert_param(IS_VOLTAGERANGE(VoltageRange)); + + if(VoltageRange == VoltageRange_1) + { + tmp_psize = FLASH_PSIZE_BYTE; + } + else if(VoltageRange == VoltageRange_2) + { + tmp_psize = FLASH_PSIZE_HALF_WORD; + } + else if(VoltageRange == VoltageRange_3) + { + tmp_psize = FLASH_PSIZE_WORD; + } + else + { + tmp_psize = FLASH_PSIZE_DOUBLE_WORD; + } + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to erase the sector */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= tmp_psize; + FLASH->CR &= SECTOR_MASK; + FLASH->CR |= FLASH_CR_SER | FLASH_Sector; + FLASH->CR |= FLASH_CR_STRT; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the erase operation is completed, disable the SER Bit */ + FLASH->CR &= (~FLASH_CR_SER); + FLASH->CR &= SECTOR_MASK; + } + /* Return the Erase Status */ + return status; +} + +/** + * @brief Erases all FLASH Sectors. + * + * @param VoltageRange: The device voltage range which defines the erase parallelism. + * This parameter can be one of the following values: + * @arg VoltageRange_1: when the device voltage range is 1.8V to 2.1V, + * the operation will be done by byte (8-bit) + * @arg VoltageRange_2: when the device voltage range is 2.1V to 2.7V, + * the operation will be done by half word (16-bit) + * @arg VoltageRange_3: when the device voltage range is 2.7V to 3.6V, + * the operation will be done by word (32-bit) + * @arg VoltageRange_4: when the device voltage range is 2.7V to 3.6V + External Vpp, + * the operation will be done by double word (64-bit) + * + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_EraseAllSectors(uint8_t VoltageRange) +{ + uint32_t tmp_psize = 0x0; + FLASH_Status status = FLASH_COMPLETE; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + assert_param(IS_VOLTAGERANGE(VoltageRange)); + + if(VoltageRange == VoltageRange_1) + { + tmp_psize = FLASH_PSIZE_BYTE; + } + else if(VoltageRange == VoltageRange_2) + { + tmp_psize = FLASH_PSIZE_HALF_WORD; + } + else if(VoltageRange == VoltageRange_3) + { + tmp_psize = FLASH_PSIZE_WORD; + } + else + { + tmp_psize = FLASH_PSIZE_DOUBLE_WORD; + } + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to erase all sectors */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= tmp_psize; + FLASH->CR |= FLASH_CR_MER; + FLASH->CR |= FLASH_CR_STRT; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the erase operation is completed, disable the MER Bit */ + FLASH->CR &= (~FLASH_CR_MER); + + } + /* Return the Erase Status */ + return status; +} + +/** + * @brief Programs a double word (64-bit) at a specified address. + * @note This function must be used when the device voltage range is from + * 2.7V to 3.6V and an External Vpp is present. + * @param Address: specifies the address to be programmed. + * @param Data: specifies the data to be programmed. + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_ProgramDoubleWord(uint32_t Address, uint64_t Data) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_ADDRESS(Address)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to program the new data */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= FLASH_PSIZE_DOUBLE_WORD; + FLASH->CR |= FLASH_CR_PG; + + *(__IO uint64_t*)Address = Data; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the program operation is completed, disable the PG Bit */ + FLASH->CR &= (~FLASH_CR_PG); + } + /* Return the Program Status */ + return status; +} + +/** + * @brief Programs a word (32-bit) at a specified address. + * @param Address: specifies the address to be programmed. + * This parameter can be any address in Program memory zone or in OTP zone. + * @note This function must be used when the device voltage range is from 2.7V to 3.6V. + * @param Data: specifies the data to be programmed. + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_ADDRESS(Address)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to program the new data */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= FLASH_PSIZE_WORD; + FLASH->CR |= FLASH_CR_PG; + + *(__IO uint32_t*)Address = Data; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the program operation is completed, disable the PG Bit */ + FLASH->CR &= (~FLASH_CR_PG); + } + /* Return the Program Status */ + return status; +} + +/** + * @brief Programs a half word (16-bit) at a specified address. + * @note This function must be used when the device voltage range is from 2.1V to 3.6V. + * @param Address: specifies the address to be programmed. + * This parameter can be any address in Program memory zone or in OTP zone. + * @param Data: specifies the data to be programmed. + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_ProgramHalfWord(uint32_t Address, uint16_t Data) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_ADDRESS(Address)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to program the new data */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= FLASH_PSIZE_HALF_WORD; + FLASH->CR |= FLASH_CR_PG; + + *(__IO uint16_t*)Address = Data; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the program operation is completed, disable the PG Bit */ + FLASH->CR &= (~FLASH_CR_PG); + } + /* Return the Program Status */ + return status; +} + +/** + * @brief Programs a byte (8-bit) at a specified address. + * @note This function can be used within all the device supply voltage ranges. + * @param Address: specifies the address to be programmed. + * This parameter can be any address in Program memory zone or in OTP zone. + * @param Data: specifies the data to be programmed. + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_ProgramByte(uint32_t Address, uint8_t Data) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_FLASH_ADDRESS(Address)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* if the previous operation is completed, proceed to program the new data */ + FLASH->CR &= CR_PSIZE_MASK; + FLASH->CR |= FLASH_PSIZE_BYTE; + FLASH->CR |= FLASH_CR_PG; + + *(__IO uint8_t*)Address = Data; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + /* if the program operation is completed, disable the PG Bit */ + FLASH->CR &= (~FLASH_CR_PG); + } + + /* Return the Program Status */ + return status; +} + +/** + * @} + */ + +/** @defgroup FLASH_Group3 Option Bytes Programming functions + * @brief Option Bytes Programming functions + * +@verbatim + =============================================================================== + Option Bytes Programming functions + =============================================================================== + + This group includes the following functions: + - void FLASH_OB_Unlock(void) + - void FLASH_OB_Lock(void) + - void FLASH_OB_WRPConfig(uint32_t OB_WRP, FunctionalState NewState) + - void FLASH_OB_RDPConfig(uint8_t OB_RDP) + - void FLASH_OB_UserConfig(uint8_t OB_IWDG, uint8_t OB_STOP, uint8_t OB_STDBY) + - void FLASH_OB_BORConfig(uint8_t OB_BOR) + - FLASH_Status FLASH_ProgramOTP(uint32_t Address, uint32_t Data) + - FLASH_Status FLASH_OB_Launch(void) + - uint32_t FLASH_OB_GetUser(void) + - uint8_t FLASH_OB_GetWRP(void) + - uint8_t FLASH_OB_GetRDP(void) + - uint8_t FLASH_OB_GetBOR(void) + + Any operation of erase or program should follow these steps: + 1. Call the FLASH_OB_Unlock() function to enable the FLASH option control register access + + 2. Call one or several functions to program the desired Option Bytes: + - void FLASH_OB_WRPConfig(uint32_t OB_WRP, FunctionalState NewState) => to Enable/Disable + the desired sector write protection + - void FLASH_OB_RDPConfig(uint8_t OB_RDP) => to set the desired read Protection Level + - void FLASH_OB_UserConfig(uint8_t OB_IWDG, uint8_t OB_STOP, uint8_t OB_STDBY) => to configure + the user Option Bytes. + - void FLASH_OB_BORConfig(uint8_t OB_BOR) => to set the BOR Level + + 3. Once all needed Option Bytes to be programmed are correctly written, call the + FLASH_OB_Launch() function to launch the Option Bytes programming process. + + @note When changing the IWDG mode from HW to SW or from SW to HW, a system + reset is needed to make the change effective. + + 4. Call the FLASH_OB_Lock() function to disable the FLASH option control register + access (recommended to protect the Option Bytes against possible unwanted operations) + +@endverbatim + * @{ + */ + +/** + * @brief Unlocks the FLASH Option Control Registers access. + * @param None + * @retval None + */ +void FLASH_OB_Unlock(void) +{ + if((FLASH->OPTCR & FLASH_OPTCR_OPTLOCK) != RESET) + { + /* Authorizes the Option Byte register programming */ + FLASH->OPTKEYR = FLASH_OPT_KEY1; + FLASH->OPTKEYR = FLASH_OPT_KEY2; + } +} + +/** + * @brief Locks the FLASH Option Control Registers access. + * @param None + * @retval None + */ +void FLASH_OB_Lock(void) +{ + /* Set the OPTLOCK Bit to lock the FLASH Option Byte Registers access */ + FLASH->OPTCR |= FLASH_OPTCR_OPTLOCK; +} + +/** + * @brief Enables or disables the write protection of the desired sectors + * @param OB_WRP: specifies the sector(s) to be write protected or unprotected. + * This parameter can be one of the following values: + * @arg OB_WRP: A value between OB_WRP_Sector0 and OB_WRP_Sector11 + * @arg OB_WRP_Sector_All + * @param Newstate: new state of the Write Protection. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FLASH_OB_WRPConfig(uint32_t OB_WRP, FunctionalState NewState) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_OB_WRP(OB_WRP)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + if(NewState != DISABLE) + { + *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~OB_WRP); + } + else + { + *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS |= (uint16_t)OB_WRP; + } + } +} + +/** + * @brief Sets the read protection level. + * @param OB_RDP: specifies the read protection level. + * This parameter can be one of the following values: + * @arg OB_RDP_Level_0: No protection + * @arg OB_RDP_Level_1: Read protection of the memory + * @arg OB_RDP_Level_2: Full chip protection + * + * !!!Warning!!! When enabling OB_RDP level 2 it's no more possible to go back to level 1 or 0 + * + * @retval None + */ +void FLASH_OB_RDPConfig(uint8_t OB_RDP) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_OB_RDP(OB_RDP)); + + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + *(__IO uint8_t*)OPTCR_BYTE1_ADDRESS = OB_RDP; + + } +} + +/** + * @brief Programs the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. + * @param OB_IWDG: Selects the IWDG mode + * This parameter can be one of the following values: + * @arg OB_IWDG_SW: Software IWDG selected + * @arg OB_IWDG_HW: Hardware IWDG selected + * @param OB_STOP: Reset event when entering STOP mode. + * This parameter can be one of the following values: + * @arg OB_STOP_NoRST: No reset generated when entering in STOP + * @arg OB_STOP_RST: Reset generated when entering in STOP + * @param OB_STDBY: Reset event when entering Standby mode. + * This parameter can be one of the following values: + * @arg OB_STDBY_NoRST: No reset generated when entering in STANDBY + * @arg OB_STDBY_RST: Reset generated when entering in STANDBY + * @retval None + */ +void FLASH_OB_UserConfig(uint8_t OB_IWDG, uint8_t OB_STOP, uint8_t OB_STDBY) +{ + uint8_t optiontmp = 0xFF; + FLASH_Status status = FLASH_COMPLETE; + + /* Check the parameters */ + assert_param(IS_OB_IWDG_SOURCE(OB_IWDG)); + assert_param(IS_OB_STOP_SOURCE(OB_STOP)); + assert_param(IS_OB_STDBY_SOURCE(OB_STDBY)); + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + if(status == FLASH_COMPLETE) + { + /* Mask OPTLOCK, OPTSTRT and BOR_LEV bits */ + optiontmp = (uint8_t)((*(__IO uint8_t *)OPTCR_BYTE0_ADDRESS) & (uint8_t)0x0F); + + /* Update User Option Byte */ + *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS = OB_IWDG | (uint8_t)(OB_STDBY | (uint8_t)(OB_STOP | ((uint8_t)optiontmp))); + } +} + +/** + * @brief Sets the BOR Level. + * @param OB_BOR: specifies the Option Bytes BOR Reset Level. + * This parameter can be one of the following values: + * @arg OB_BOR_LEVEL3: Supply voltage ranges from 2.7 to 3.6 V + * @arg OB_BOR_LEVEL2: Supply voltage ranges from 2.4 to 2.7 V + * @arg OB_BOR_LEVEL1: Supply voltage ranges from 2.1 to 2.4 V + * @arg OB_BOR_OFF: Supply voltage ranges from 1.62 to 2.1 V + * @retval None + */ +void FLASH_OB_BORConfig(uint8_t OB_BOR) +{ + /* Check the parameters */ + assert_param(IS_OB_BOR(OB_BOR)); + + /* Set the BOR Level */ + *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS &= (~FLASH_OPTCR_BOR_LEV); + *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= OB_BOR; + +} + +/** + * @brief Launch the option byte loading. + * @param None + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_OB_Launch(void) +{ + FLASH_Status status = FLASH_COMPLETE; + + /* Set the OPTSTRT bit in OPTCR register */ + *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= FLASH_OPTCR_OPTSTRT; + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation(); + + return status; +} + +/** + * @brief Returns the FLASH User Option Bytes values. + * @param None + * @retval The FLASH User Option Bytes values: IWDG_SW(Bit0), RST_STOP(Bit1) + * and RST_STDBY(Bit2). + */ +uint8_t FLASH_OB_GetUser(void) +{ + /* Return the User Option Byte */ + return (uint8_t)(FLASH->OPTCR >> 5); +} + +/** + * @brief Returns the FLASH Write Protection Option Bytes value. + * @param None + * @retval The FLASH Write Protection Option Bytes value + */ +uint16_t FLASH_OB_GetWRP(void) +{ + /* Return the FLASH write protection Register value */ + return (*(__IO uint16_t *)(OPTCR_BYTE2_ADDRESS)); +} + +/** + * @brief Returns the FLASH Read Protection level. + * @param None + * @retval FLASH ReadOut Protection Status: + * - SET, when OB_RDP_Level_1 or OB_RDP_Level_2 is set + * - RESET, when OB_RDP_Level_0 is set + */ +FlagStatus FLASH_OB_GetRDP(void) +{ + FlagStatus readstatus = RESET; + + if ((*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) != (uint8_t)OB_RDP_Level_0)) + { + readstatus = SET; + } + else + { + readstatus = RESET; + } + return readstatus; +} + +/** + * @brief Returns the FLASH BOR level. + * @param None + * @retval The FLASH BOR level: + * - OB_BOR_LEVEL3: Supply voltage ranges from 2.7 to 3.6 V + * - OB_BOR_LEVEL2: Supply voltage ranges from 2.4 to 2.7 V + * - OB_BOR_LEVEL1: Supply voltage ranges from 2.1 to 2.4 V + * - OB_BOR_OFF : Supply voltage ranges from 1.62 to 2.1 V + */ +uint8_t FLASH_OB_GetBOR(void) +{ + /* Return the FLASH BOR level */ + return (uint8_t)(*(__IO uint8_t *)(OPTCR_BYTE0_ADDRESS) & (uint8_t)0x0C); +} + +/** + * @} + */ + +/** @defgroup FLASH_Group4 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified FLASH interrupts. + * @param FLASH_IT: specifies the FLASH interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg FLASH_IT_ERR: FLASH Error Interrupt + * @arg FLASH_IT_EOP: FLASH end of operation Interrupt + * @retval None + */ +void FLASH_ITConfig(uint32_t FLASH_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FLASH_IT(FLASH_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if(NewState != DISABLE) + { + /* Enable the interrupt sources */ + FLASH->CR |= FLASH_IT; + } + else + { + /* Disable the interrupt sources */ + FLASH->CR &= ~(uint32_t)FLASH_IT; + } +} + +/** + * @brief Checks whether the specified FLASH flag is set or not. + * @param FLASH_FLAG: specifies the FLASH flag to check. + * This parameter can be one of the following values: + * @arg FLASH_FLAG_EOP: FLASH End of Operation flag + * @arg FLASH_FLAG_OPERR: FLASH operation Error flag + * @arg FLASH_FLAG_WRPERR: FLASH Write protected error flag + * @arg FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag + * @arg FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag + * @arg FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag + * @arg FLASH_FLAG_BSY: FLASH Busy flag + * @retval The new state of FLASH_FLAG (SET or RESET). + */ +FlagStatus FLASH_GetFlagStatus(uint32_t FLASH_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_FLASH_GET_FLAG(FLASH_FLAG)); + + if((FLASH->SR & FLASH_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the new state of FLASH_FLAG (SET or RESET) */ + return bitstatus; +} + +/** + * @brief Clears the FLASH's pending flags. + * @param FLASH_FLAG: specifies the FLASH flags to clear. + * This parameter can be any combination of the following values: + * @arg FLASH_FLAG_EOP: FLASH End of Operation flag + * @arg FLASH_FLAG_OPERR: FLASH operation Error flag + * @arg FLASH_FLAG_WRPERR: FLASH Write protected error flag + * @arg FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag + * @arg FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag + * @arg FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag + * @retval None + */ +void FLASH_ClearFlag(uint32_t FLASH_FLAG) +{ + /* Check the parameters */ + assert_param(IS_FLASH_CLEAR_FLAG(FLASH_FLAG)); + + /* Clear the flags */ + FLASH->SR = FLASH_FLAG; +} + +/** + * @brief Returns the FLASH Status. + * @param None + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_GetStatus(void) +{ + FLASH_Status flashstatus = FLASH_COMPLETE; + + if((FLASH->SR & FLASH_FLAG_BSY) == FLASH_FLAG_BSY) + { + flashstatus = FLASH_BUSY; + } + else + { + if((FLASH->SR & FLASH_FLAG_WRPERR) != (uint32_t)0x00) + { + flashstatus = FLASH_ERROR_WRP; + } + else + { + if((FLASH->SR & (uint32_t)0xEF) != (uint32_t)0x00) + { + flashstatus = FLASH_ERROR_PROGRAM; + } + else + { + if((FLASH->SR & FLASH_FLAG_OPERR) != (uint32_t)0x00) + { + flashstatus = FLASH_ERROR_OPERATION; + } + else + { + flashstatus = FLASH_COMPLETE; + } + } + } + } + /* Return the FLASH Status */ + return flashstatus; +} + +/** + * @brief Waits for a FLASH operation to complete. + * @param None + * @retval FLASH Status: The returned value can be: FLASH_BUSY, FLASH_ERROR_PROGRAM, + * FLASH_ERROR_WRP, FLASH_ERROR_OPERATION or FLASH_COMPLETE. + */ +FLASH_Status FLASH_WaitForLastOperation(void) +{ + __IO FLASH_Status status = FLASH_COMPLETE; + + /* Check for the FLASH Status */ + status = FLASH_GetStatus(); + + /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. + Even if the FLASH operation fails, the BUSY flag will be reset and an error + flag will be set */ + while(status == FLASH_BUSY) + { + status = FLASH_GetStatus(); + } + /* Return the operation status */ + return status; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_fsmc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_fsmc.c new file mode 100644 index 00000000..84a38f06 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_fsmc.c @@ -0,0 +1,987 @@ +/** + ****************************************************************************** + * @file stm32f2xx_fsmc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the FSMC peripheral: + * - Interface with SRAM, PSRAM, NOR and OneNAND memories + * - Interface with NAND memories + * - Interface with 16-bit PC Card compatible memories + * - Interrupts and flags management + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_fsmc.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup FSMC + * @brief FSMC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* --------------------- FSMC registers bit mask ---------------------------- */ +/* FSMC BCRx Mask */ +#define BCR_MBKEN_SET ((uint32_t)0x00000001) +#define BCR_MBKEN_RESET ((uint32_t)0x000FFFFE) +#define BCR_FACCEN_SET ((uint32_t)0x00000040) + +/* FSMC PCRx Mask */ +#define PCR_PBKEN_SET ((uint32_t)0x00000004) +#define PCR_PBKEN_RESET ((uint32_t)0x000FFFFB) +#define PCR_ECCEN_SET ((uint32_t)0x00000040) +#define PCR_ECCEN_RESET ((uint32_t)0x000FFFBF) +#define PCR_MEMORYTYPE_NAND ((uint32_t)0x00000008) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup FSMC_Private_Functions + * @{ + */ + +/** @defgroup FSMC_Group1 NOR/SRAM Controller functions + * @brief NOR/SRAM Controller functions + * +@verbatim + =============================================================================== + NOR/SRAM Controller functions + =============================================================================== + + The following sequence should be followed to configure the FSMC to interface with + SRAM, PSRAM, NOR or OneNAND memory connected to the NOR/SRAM Bank: + + 1. Enable the clock for the FSMC and associated GPIOs using the following functions: + RCC_AHB3PeriphClockCmd(RCC_AHB3Periph_FSMC, ENABLE); + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + + 2. FSMC pins configuration + - Connect the involved FSMC pins to AF12 using the following function + GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_FSMC); + - Configure these FSMC pins in alternate function mode by calling the function + GPIO_Init(); + + 3. Declare a FSMC_NORSRAMInitTypeDef structure, for example: + FSMC_NORSRAMInitTypeDef FSMC_NORSRAMInitStructure; + and fill the FSMC_NORSRAMInitStructure variable with the allowed values of + the structure member. + + 4. Initialize the NOR/SRAM Controller by calling the function + FSMC_NORSRAMInit(&FSMC_NORSRAMInitStructure); + + 5. Then enable the NOR/SRAM Bank, for example: + FSMC_NORSRAMCmd(FSMC_Bank1_NORSRAM2, ENABLE); + + 6. At this stage you can read/write from/to the memory connected to the NOR/SRAM Bank. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the FSMC NOR/SRAM Banks registers to their default + * reset values. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank1_NORSRAM1: FSMC Bank1 NOR/SRAM1 + * @arg FSMC_Bank1_NORSRAM2: FSMC Bank1 NOR/SRAM2 + * @arg FSMC_Bank1_NORSRAM3: FSMC Bank1 NOR/SRAM3 + * @arg FSMC_Bank1_NORSRAM4: FSMC Bank1 NOR/SRAM4 + * @retval None + */ +void FSMC_NORSRAMDeInit(uint32_t FSMC_Bank) +{ + /* Check the parameter */ + assert_param(IS_FSMC_NORSRAM_BANK(FSMC_Bank)); + + /* FSMC_Bank1_NORSRAM1 */ + if(FSMC_Bank == FSMC_Bank1_NORSRAM1) + { + FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030DB; + } + /* FSMC_Bank1_NORSRAM2, FSMC_Bank1_NORSRAM3 or FSMC_Bank1_NORSRAM4 */ + else + { + FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030D2; + } + FSMC_Bank1->BTCR[FSMC_Bank + 1] = 0x0FFFFFFF; + FSMC_Bank1E->BWTR[FSMC_Bank] = 0x0FFFFFFF; +} + +/** + * @brief Initializes the FSMC NOR/SRAM Banks according to the specified + * parameters in the FSMC_NORSRAMInitStruct. + * @param FSMC_NORSRAMInitStruct : pointer to a FSMC_NORSRAMInitTypeDef structure + * that contains the configuration information for the FSMC NOR/SRAM + * specified Banks. + * @retval None + */ +void FSMC_NORSRAMInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct) +{ + /* Check the parameters */ + assert_param(IS_FSMC_NORSRAM_BANK(FSMC_NORSRAMInitStruct->FSMC_Bank)); + assert_param(IS_FSMC_MUX(FSMC_NORSRAMInitStruct->FSMC_DataAddressMux)); + assert_param(IS_FSMC_MEMORY(FSMC_NORSRAMInitStruct->FSMC_MemoryType)); + assert_param(IS_FSMC_MEMORY_WIDTH(FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth)); + assert_param(IS_FSMC_BURSTMODE(FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode)); + assert_param(IS_FSMC_ASYNWAIT(FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait)); + assert_param(IS_FSMC_WAIT_POLARITY(FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity)); + assert_param(IS_FSMC_WRAP_MODE(FSMC_NORSRAMInitStruct->FSMC_WrapMode)); + assert_param(IS_FSMC_WAIT_SIGNAL_ACTIVE(FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive)); + assert_param(IS_FSMC_WRITE_OPERATION(FSMC_NORSRAMInitStruct->FSMC_WriteOperation)); + assert_param(IS_FSMC_WAITE_SIGNAL(FSMC_NORSRAMInitStruct->FSMC_WaitSignal)); + assert_param(IS_FSMC_EXTENDED_MODE(FSMC_NORSRAMInitStruct->FSMC_ExtendedMode)); + assert_param(IS_FSMC_WRITE_BURST(FSMC_NORSRAMInitStruct->FSMC_WriteBurst)); + assert_param(IS_FSMC_ADDRESS_SETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressSetupTime)); + assert_param(IS_FSMC_ADDRESS_HOLD_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressHoldTime)); + assert_param(IS_FSMC_DATASETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataSetupTime)); + assert_param(IS_FSMC_TURNAROUND_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusTurnAroundDuration)); + assert_param(IS_FSMC_CLK_DIV(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision)); + assert_param(IS_FSMC_DATA_LATENCY(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLatency)); + assert_param(IS_FSMC_ACCESS_MODE(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMode)); + + /* Bank1 NOR/SRAM control register configuration */ + FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank] = + (uint32_t)FSMC_NORSRAMInitStruct->FSMC_DataAddressMux | + FSMC_NORSRAMInitStruct->FSMC_MemoryType | + FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth | + FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode | + FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait | + FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity | + FSMC_NORSRAMInitStruct->FSMC_WrapMode | + FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive | + FSMC_NORSRAMInitStruct->FSMC_WriteOperation | + FSMC_NORSRAMInitStruct->FSMC_WaitSignal | + FSMC_NORSRAMInitStruct->FSMC_ExtendedMode | + FSMC_NORSRAMInitStruct->FSMC_WriteBurst; + if(FSMC_NORSRAMInitStruct->FSMC_MemoryType == FSMC_MemoryType_NOR) + { + FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank] |= (uint32_t)BCR_FACCEN_SET; + } + /* Bank1 NOR/SRAM timing register configuration */ + FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank+1] = + (uint32_t)FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressSetupTime | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressHoldTime << 4) | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataSetupTime << 8) | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusTurnAroundDuration << 16) | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision << 20) | + (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLatency << 24) | + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMode; + + + /* Bank1 NOR/SRAM timing register for write configuration, if extended mode is used */ + if(FSMC_NORSRAMInitStruct->FSMC_ExtendedMode == FSMC_ExtendedMode_Enable) + { + assert_param(IS_FSMC_ADDRESS_SETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressSetupTime)); + assert_param(IS_FSMC_ADDRESS_HOLD_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressHoldTime)); + assert_param(IS_FSMC_DATASETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetupTime)); + assert_param(IS_FSMC_CLK_DIV(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision)); + assert_param(IS_FSMC_DATA_LATENCY(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency)); + assert_param(IS_FSMC_ACCESS_MODE(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode)); + FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = + (uint32_t)FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressSetupTime | + (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressHoldTime << 4 )| + (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetupTime << 8) | + (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision << 20) | + (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency << 24) | + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode; + } + else + { + FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = 0x0FFFFFFF; + } +} + +/** + * @brief Fills each FSMC_NORSRAMInitStruct member with its default value. + * @param FSMC_NORSRAMInitStruct: pointer to a FSMC_NORSRAMInitTypeDef structure + * which will be initialized. + * @retval None + */ +void FSMC_NORSRAMStructInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct) +{ + /* Reset NOR/SRAM Init structure parameters values */ + FSMC_NORSRAMInitStruct->FSMC_Bank = FSMC_Bank1_NORSRAM1; + FSMC_NORSRAMInitStruct->FSMC_DataAddressMux = FSMC_DataAddressMux_Enable; + FSMC_NORSRAMInitStruct->FSMC_MemoryType = FSMC_MemoryType_SRAM; + FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_8b; + FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable; + FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait = FSMC_AsynchronousWait_Disable; + FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity = FSMC_WaitSignalPolarity_Low; + FSMC_NORSRAMInitStruct->FSMC_WrapMode = FSMC_WrapMode_Disable; + FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive = FSMC_WaitSignalActive_BeforeWaitState; + FSMC_NORSRAMInitStruct->FSMC_WriteOperation = FSMC_WriteOperation_Enable; + FSMC_NORSRAMInitStruct->FSMC_WaitSignal = FSMC_WaitSignal_Enable; + FSMC_NORSRAMInitStruct->FSMC_ExtendedMode = FSMC_ExtendedMode_Disable; + FSMC_NORSRAMInitStruct->FSMC_WriteBurst = FSMC_WriteBurst_Disable; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressSetupTime = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressHoldTime = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataSetupTime = 0xFF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusTurnAroundDuration = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLatency = 0xF; + FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMode = FSMC_AccessMode_A; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressSetupTime = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressHoldTime = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetupTime = 0xFF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_BusTurnAroundDuration = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency = 0xF; + FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode = FSMC_AccessMode_A; +} + +/** + * @brief Enables or disables the specified NOR/SRAM Memory Bank. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank1_NORSRAM1: FSMC Bank1 NOR/SRAM1 + * @arg FSMC_Bank1_NORSRAM2: FSMC Bank1 NOR/SRAM2 + * @arg FSMC_Bank1_NORSRAM3: FSMC Bank1 NOR/SRAM3 + * @arg FSMC_Bank1_NORSRAM4: FSMC Bank1 NOR/SRAM4 + * @param NewState: new state of the FSMC_Bank. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_NORSRAMCmd(uint32_t FSMC_Bank, FunctionalState NewState) +{ + assert_param(IS_FSMC_NORSRAM_BANK(FSMC_Bank)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected NOR/SRAM Bank by setting the PBKEN bit in the BCRx register */ + FSMC_Bank1->BTCR[FSMC_Bank] |= BCR_MBKEN_SET; + } + else + { + /* Disable the selected NOR/SRAM Bank by clearing the PBKEN bit in the BCRx register */ + FSMC_Bank1->BTCR[FSMC_Bank] &= BCR_MBKEN_RESET; + } +} +/** + * @} + */ + +/** @defgroup FSMC_Group2 NAND Controller functions + * @brief NAND Controller functions + * +@verbatim + =============================================================================== + NAND Controller functions + =============================================================================== + + The following sequence should be followed to configure the FSMC to interface with + 8-bit or 16-bit NAND memory connected to the NAND Bank: + + 1. Enable the clock for the FSMC and associated GPIOs using the following functions: + RCC_AHB3PeriphClockCmd(RCC_AHB3Periph_FSMC, ENABLE); + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + + 2. FSMC pins configuration + - Connect the involved FSMC pins to AF12 using the following function + GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_FSMC); + - Configure these FSMC pins in alternate function mode by calling the function + GPIO_Init(); + + 3. Declare a FSMC_NANDInitTypeDef structure, for example: + FSMC_NANDInitTypeDef FSMC_NANDInitStructure; + and fill the FSMC_NANDInitStructure variable with the allowed values of + the structure member. + + 4. Initialize the NAND Controller by calling the function + FSMC_NANDInit(&FSMC_NANDInitStructure); + + 5. Then enable the NAND Bank, for example: + FSMC_NANDCmd(FSMC_Bank3_NAND, ENABLE); + + 6. At this stage you can read/write from/to the memory connected to the NAND Bank. + +@note To enable the Error Correction Code (ECC), you have to use the function + FSMC_NANDECCCmd(FSMC_Bank3_NAND, ENABLE); + and to get the current ECC value you have to use the function + ECCval = FSMC_GetECC(FSMC_Bank3_NAND); + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the FSMC NAND Banks registers to their default reset values. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @retval None + */ +void FSMC_NANDDeInit(uint32_t FSMC_Bank) +{ + /* Check the parameter */ + assert_param(IS_FSMC_NAND_BANK(FSMC_Bank)); + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + /* Set the FSMC_Bank2 registers to their reset values */ + FSMC_Bank2->PCR2 = 0x00000018; + FSMC_Bank2->SR2 = 0x00000040; + FSMC_Bank2->PMEM2 = 0xFCFCFCFC; + FSMC_Bank2->PATT2 = 0xFCFCFCFC; + } + /* FSMC_Bank3_NAND */ + else + { + /* Set the FSMC_Bank3 registers to their reset values */ + FSMC_Bank3->PCR3 = 0x00000018; + FSMC_Bank3->SR3 = 0x00000040; + FSMC_Bank3->PMEM3 = 0xFCFCFCFC; + FSMC_Bank3->PATT3 = 0xFCFCFCFC; + } +} + +/** + * @brief Initializes the FSMC NAND Banks according to the specified parameters + * in the FSMC_NANDInitStruct. + * @param FSMC_NANDInitStruct : pointer to a FSMC_NANDInitTypeDef structure that + * contains the configuration information for the FSMC NAND specified Banks. + * @retval None + */ +void FSMC_NANDInit(FSMC_NANDInitTypeDef* FSMC_NANDInitStruct) +{ + uint32_t tmppcr = 0x00000000, tmppmem = 0x00000000, tmppatt = 0x00000000; + + /* Check the parameters */ + assert_param( IS_FSMC_NAND_BANK(FSMC_NANDInitStruct->FSMC_Bank)); + assert_param( IS_FSMC_WAIT_FEATURE(FSMC_NANDInitStruct->FSMC_Waitfeature)); + assert_param( IS_FSMC_MEMORY_WIDTH(FSMC_NANDInitStruct->FSMC_MemoryDataWidth)); + assert_param( IS_FSMC_ECC_STATE(FSMC_NANDInitStruct->FSMC_ECC)); + assert_param( IS_FSMC_ECCPAGE_SIZE(FSMC_NANDInitStruct->FSMC_ECCPageSize)); + assert_param( IS_FSMC_TCLR_TIME(FSMC_NANDInitStruct->FSMC_TCLRSetupTime)); + assert_param( IS_FSMC_TAR_TIME(FSMC_NANDInitStruct->FSMC_TARSetupTime)); + assert_param(IS_FSMC_SETUP_TIME(FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime)); + assert_param(IS_FSMC_SETUP_TIME(FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime)); + + /* Set the tmppcr value according to FSMC_NANDInitStruct parameters */ + tmppcr = (uint32_t)FSMC_NANDInitStruct->FSMC_Waitfeature | + PCR_MEMORYTYPE_NAND | + FSMC_NANDInitStruct->FSMC_MemoryDataWidth | + FSMC_NANDInitStruct->FSMC_ECC | + FSMC_NANDInitStruct->FSMC_ECCPageSize | + (FSMC_NANDInitStruct->FSMC_TCLRSetupTime << 9 )| + (FSMC_NANDInitStruct->FSMC_TARSetupTime << 13); + + /* Set tmppmem value according to FSMC_CommonSpaceTimingStructure parameters */ + tmppmem = (uint32_t)FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime | + (FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime << 24); + + /* Set tmppatt value according to FSMC_AttributeSpaceTimingStructure parameters */ + tmppatt = (uint32_t)FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime | + (FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime << 24); + + if(FSMC_NANDInitStruct->FSMC_Bank == FSMC_Bank2_NAND) + { + /* FSMC_Bank2_NAND registers configuration */ + FSMC_Bank2->PCR2 = tmppcr; + FSMC_Bank2->PMEM2 = tmppmem; + FSMC_Bank2->PATT2 = tmppatt; + } + else + { + /* FSMC_Bank3_NAND registers configuration */ + FSMC_Bank3->PCR3 = tmppcr; + FSMC_Bank3->PMEM3 = tmppmem; + FSMC_Bank3->PATT3 = tmppatt; + } +} + + +/** + * @brief Fills each FSMC_NANDInitStruct member with its default value. + * @param FSMC_NANDInitStruct: pointer to a FSMC_NANDInitTypeDef structure which + * will be initialized. + * @retval None + */ +void FSMC_NANDStructInit(FSMC_NANDInitTypeDef* FSMC_NANDInitStruct) +{ + /* Reset NAND Init structure parameters values */ + FSMC_NANDInitStruct->FSMC_Bank = FSMC_Bank2_NAND; + FSMC_NANDInitStruct->FSMC_Waitfeature = FSMC_Waitfeature_Disable; + FSMC_NANDInitStruct->FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_8b; + FSMC_NANDInitStruct->FSMC_ECC = FSMC_ECC_Disable; + FSMC_NANDInitStruct->FSMC_ECCPageSize = FSMC_ECCPageSize_256Bytes; + FSMC_NANDInitStruct->FSMC_TCLRSetupTime = 0x0; + FSMC_NANDInitStruct->FSMC_TARSetupTime = 0x0; + FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_NANDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; +} + +/** + * @brief Enables or disables the specified NAND Memory Bank. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @param NewState: new state of the FSMC_Bank. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_NANDCmd(uint32_t FSMC_Bank, FunctionalState NewState) +{ + assert_param(IS_FSMC_NAND_BANK(FSMC_Bank)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected NAND Bank by setting the PBKEN bit in the PCRx register */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->PCR2 |= PCR_PBKEN_SET; + } + else + { + FSMC_Bank3->PCR3 |= PCR_PBKEN_SET; + } + } + else + { + /* Disable the selected NAND Bank by clearing the PBKEN bit in the PCRx register */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->PCR2 &= PCR_PBKEN_RESET; + } + else + { + FSMC_Bank3->PCR3 &= PCR_PBKEN_RESET; + } + } +} +/** + * @brief Enables or disables the FSMC NAND ECC feature. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @param NewState: new state of the FSMC NAND ECC feature. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_NANDECCCmd(uint32_t FSMC_Bank, FunctionalState NewState) +{ + assert_param(IS_FSMC_NAND_BANK(FSMC_Bank)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected NAND Bank ECC function by setting the ECCEN bit in the PCRx register */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->PCR2 |= PCR_ECCEN_SET; + } + else + { + FSMC_Bank3->PCR3 |= PCR_ECCEN_SET; + } + } + else + { + /* Disable the selected NAND Bank ECC function by clearing the ECCEN bit in the PCRx register */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->PCR2 &= PCR_ECCEN_RESET; + } + else + { + FSMC_Bank3->PCR3 &= PCR_ECCEN_RESET; + } + } +} + +/** + * @brief Returns the error correction code register value. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @retval The Error Correction Code (ECC) value. + */ +uint32_t FSMC_GetECC(uint32_t FSMC_Bank) +{ + uint32_t eccval = 0x00000000; + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + /* Get the ECCR2 register value */ + eccval = FSMC_Bank2->ECCR2; + } + else + { + /* Get the ECCR3 register value */ + eccval = FSMC_Bank3->ECCR3; + } + /* Return the error correction code value */ + return(eccval); +} +/** + * @} + */ + +/** @defgroup FSMC_Group3 PCCARD Controller functions + * @brief PCCARD Controller functions + * +@verbatim + =============================================================================== + PCCARD Controller functions + =============================================================================== + + The following sequence should be followed to configure the FSMC to interface with + 16-bit PC Card compatible memory connected to the PCCARD Bank: + + 1. Enable the clock for the FSMC and associated GPIOs using the following functions: + RCC_AHB3PeriphClockCmd(RCC_AHB3Periph_FSMC, ENABLE); + RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + + 2. FSMC pins configuration + - Connect the involved FSMC pins to AF12 using the following function + GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_FSMC); + - Configure these FSMC pins in alternate function mode by calling the function + GPIO_Init(); + + 3. Declare a FSMC_PCCARDInitTypeDef structure, for example: + FSMC_PCCARDInitTypeDef FSMC_PCCARDInitStructure; + and fill the FSMC_PCCARDInitStructure variable with the allowed values of + the structure member. + + 4. Initialize the PCCARD Controller by calling the function + FSMC_PCCARDInit(&FSMC_PCCARDInitStructure); + + 5. Then enable the PCCARD Bank: + FSMC_PCCARDCmd(ENABLE); + + 6. At this stage you can read/write from/to the memory connected to the PCCARD Bank. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the FSMC PCCARD Bank registers to their default reset values. + * @param None + * @retval None + */ +void FSMC_PCCARDDeInit(void) +{ + /* Set the FSMC_Bank4 registers to their reset values */ + FSMC_Bank4->PCR4 = 0x00000018; + FSMC_Bank4->SR4 = 0x00000000; + FSMC_Bank4->PMEM4 = 0xFCFCFCFC; + FSMC_Bank4->PATT4 = 0xFCFCFCFC; + FSMC_Bank4->PIO4 = 0xFCFCFCFC; +} + +/** + * @brief Initializes the FSMC PCCARD Bank according to the specified parameters + * in the FSMC_PCCARDInitStruct. + * @param FSMC_PCCARDInitStruct : pointer to a FSMC_PCCARDInitTypeDef structure + * that contains the configuration information for the FSMC PCCARD Bank. + * @retval None + */ +void FSMC_PCCARDInit(FSMC_PCCARDInitTypeDef* FSMC_PCCARDInitStruct) +{ + /* Check the parameters */ + assert_param(IS_FSMC_WAIT_FEATURE(FSMC_PCCARDInitStruct->FSMC_Waitfeature)); + assert_param(IS_FSMC_TCLR_TIME(FSMC_PCCARDInitStruct->FSMC_TCLRSetupTime)); + assert_param(IS_FSMC_TAR_TIME(FSMC_PCCARDInitStruct->FSMC_TARSetupTime)); + + assert_param(IS_FSMC_SETUP_TIME(FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime)); + + assert_param(IS_FSMC_SETUP_TIME(FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime)); + assert_param(IS_FSMC_SETUP_TIME(FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_SetupTime)); + assert_param(IS_FSMC_WAIT_TIME(FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_WaitSetupTime)); + assert_param(IS_FSMC_HOLD_TIME(FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HoldSetupTime)); + assert_param(IS_FSMC_HIZ_TIME(FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HiZSetupTime)); + + /* Set the PCR4 register value according to FSMC_PCCARDInitStruct parameters */ + FSMC_Bank4->PCR4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_Waitfeature | + FSMC_MemoryDataWidth_16b | + (FSMC_PCCARDInitStruct->FSMC_TCLRSetupTime << 9) | + (FSMC_PCCARDInitStruct->FSMC_TARSetupTime << 13); + + /* Set PMEM4 register value according to FSMC_CommonSpaceTimingStructure parameters */ + FSMC_Bank4->PMEM4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime | + (FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime << 24); + + /* Set PATT4 register value according to FSMC_AttributeSpaceTimingStructure parameters */ + FSMC_Bank4->PATT4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime | + (FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime << 24); + + /* Set PIO4 register value according to FSMC_IOSpaceTimingStructure parameters */ + FSMC_Bank4->PIO4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_SetupTime | + (FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_WaitSetupTime << 8) | + (FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HoldSetupTime << 16)| + (FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HiZSetupTime << 24); +} + +/** + * @brief Fills each FSMC_PCCARDInitStruct member with its default value. + * @param FSMC_PCCARDInitStruct: pointer to a FSMC_PCCARDInitTypeDef structure + * which will be initialized. + * @retval None + */ +void FSMC_PCCARDStructInit(FSMC_PCCARDInitTypeDef* FSMC_PCCARDInitStruct) +{ + /* Reset PCCARD Init structure parameters values */ + FSMC_PCCARDInitStruct->FSMC_Waitfeature = FSMC_Waitfeature_Disable; + FSMC_PCCARDInitStruct->FSMC_TCLRSetupTime = 0x0; + FSMC_PCCARDInitStruct->FSMC_TARSetupTime = 0x0; + FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_CommonSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_AttributeSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_SetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_WaitSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HoldSetupTime = 0xFC; + FSMC_PCCARDInitStruct->FSMC_IOSpaceTimingStruct->FSMC_HiZSetupTime = 0xFC; +} + +/** + * @brief Enables or disables the PCCARD Memory Bank. + * @param NewState: new state of the PCCARD Memory Bank. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_PCCARDCmd(FunctionalState NewState) +{ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the PCCARD Bank by setting the PBKEN bit in the PCR4 register */ + FSMC_Bank4->PCR4 |= PCR_PBKEN_SET; + } + else + { + /* Disable the PCCARD Bank by clearing the PBKEN bit in the PCR4 register */ + FSMC_Bank4->PCR4 &= PCR_PBKEN_RESET; + } +} +/** + * @} + */ + +/** @defgroup FSMC_Group4 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified FSMC interrupts. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_IT: specifies the FSMC interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg FSMC_IT_RisingEdge: Rising edge detection interrupt. + * @arg FSMC_IT_Level: Level edge detection interrupt. + * @arg FSMC_IT_FallingEdge: Falling edge detection interrupt. + * @param NewState: new state of the specified FSMC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void FSMC_ITConfig(uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState) +{ + assert_param(IS_FSMC_IT_BANK(FSMC_Bank)); + assert_param(IS_FSMC_IT(FSMC_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected FSMC_Bank2 interrupts */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->SR2 |= FSMC_IT; + } + /* Enable the selected FSMC_Bank3 interrupts */ + else if (FSMC_Bank == FSMC_Bank3_NAND) + { + FSMC_Bank3->SR3 |= FSMC_IT; + } + /* Enable the selected FSMC_Bank4 interrupts */ + else + { + FSMC_Bank4->SR4 |= FSMC_IT; + } + } + else + { + /* Disable the selected FSMC_Bank2 interrupts */ + if(FSMC_Bank == FSMC_Bank2_NAND) + { + + FSMC_Bank2->SR2 &= (uint32_t)~FSMC_IT; + } + /* Disable the selected FSMC_Bank3 interrupts */ + else if (FSMC_Bank == FSMC_Bank3_NAND) + { + FSMC_Bank3->SR3 &= (uint32_t)~FSMC_IT; + } + /* Disable the selected FSMC_Bank4 interrupts */ + else + { + FSMC_Bank4->SR4 &= (uint32_t)~FSMC_IT; + } + } +} + +/** + * @brief Checks whether the specified FSMC flag is set or not. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg FSMC_FLAG_RisingEdge: Rising edge detection Flag. + * @arg FSMC_FLAG_Level: Level detection Flag. + * @arg FSMC_FLAG_FallingEdge: Falling edge detection Flag. + * @arg FSMC_FLAG_FEMPT: Fifo empty Flag. + * @retval The new state of FSMC_FLAG (SET or RESET). + */ +FlagStatus FSMC_GetFlagStatus(uint32_t FSMC_Bank, uint32_t FSMC_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t tmpsr = 0x00000000; + + /* Check the parameters */ + assert_param(IS_FSMC_GETFLAG_BANK(FSMC_Bank)); + assert_param(IS_FSMC_GET_FLAG(FSMC_FLAG)); + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + tmpsr = FSMC_Bank2->SR2; + } + else if(FSMC_Bank == FSMC_Bank3_NAND) + { + tmpsr = FSMC_Bank3->SR3; + } + /* FSMC_Bank4_PCCARD*/ + else + { + tmpsr = FSMC_Bank4->SR4; + } + + /* Get the flag status */ + if ((tmpsr & FSMC_FLAG) != (uint16_t)RESET ) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the flag status */ + return bitstatus; +} + +/** + * @brief Clears the FSMC's pending flags. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg FSMC_FLAG_RisingEdge: Rising edge detection Flag. + * @arg FSMC_FLAG_Level: Level detection Flag. + * @arg FSMC_FLAG_FallingEdge: Falling edge detection Flag. + * @retval None + */ +void FSMC_ClearFlag(uint32_t FSMC_Bank, uint32_t FSMC_FLAG) +{ + /* Check the parameters */ + assert_param(IS_FSMC_GETFLAG_BANK(FSMC_Bank)); + assert_param(IS_FSMC_CLEAR_FLAG(FSMC_FLAG)) ; + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->SR2 &= ~FSMC_FLAG; + } + else if(FSMC_Bank == FSMC_Bank3_NAND) + { + FSMC_Bank3->SR3 &= ~FSMC_FLAG; + } + /* FSMC_Bank4_PCCARD*/ + else + { + FSMC_Bank4->SR4 &= ~FSMC_FLAG; + } +} + +/** + * @brief Checks whether the specified FSMC interrupt has occurred or not. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_IT: specifies the FSMC interrupt source to check. + * This parameter can be one of the following values: + * @arg FSMC_IT_RisingEdge: Rising edge detection interrupt. + * @arg FSMC_IT_Level: Level edge detection interrupt. + * @arg FSMC_IT_FallingEdge: Falling edge detection interrupt. + * @retval The new state of FSMC_IT (SET or RESET). + */ +ITStatus FSMC_GetITStatus(uint32_t FSMC_Bank, uint32_t FSMC_IT) +{ + ITStatus bitstatus = RESET; + uint32_t tmpsr = 0x0, itstatus = 0x0, itenable = 0x0; + + /* Check the parameters */ + assert_param(IS_FSMC_IT_BANK(FSMC_Bank)); + assert_param(IS_FSMC_GET_IT(FSMC_IT)); + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + tmpsr = FSMC_Bank2->SR2; + } + else if(FSMC_Bank == FSMC_Bank3_NAND) + { + tmpsr = FSMC_Bank3->SR3; + } + /* FSMC_Bank4_PCCARD*/ + else + { + tmpsr = FSMC_Bank4->SR4; + } + + itstatus = tmpsr & FSMC_IT; + + itenable = tmpsr & (FSMC_IT >> 3); + if ((itstatus != (uint32_t)RESET) && (itenable != (uint32_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the FSMC's interrupt pending bits. + * @param FSMC_Bank: specifies the FSMC Bank to be used + * This parameter can be one of the following values: + * @arg FSMC_Bank2_NAND: FSMC Bank2 NAND + * @arg FSMC_Bank3_NAND: FSMC Bank3 NAND + * @arg FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD + * @param FSMC_IT: specifies the interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg FSMC_IT_RisingEdge: Rising edge detection interrupt. + * @arg FSMC_IT_Level: Level edge detection interrupt. + * @arg FSMC_IT_FallingEdge: Falling edge detection interrupt. + * @retval None + */ +void FSMC_ClearITPendingBit(uint32_t FSMC_Bank, uint32_t FSMC_IT) +{ + /* Check the parameters */ + assert_param(IS_FSMC_IT_BANK(FSMC_Bank)); + assert_param(IS_FSMC_IT(FSMC_IT)); + + if(FSMC_Bank == FSMC_Bank2_NAND) + { + FSMC_Bank2->SR2 &= ~(FSMC_IT >> 3); + } + else if(FSMC_Bank == FSMC_Bank3_NAND) + { + FSMC_Bank3->SR3 &= ~(FSMC_IT >> 3); + } + /* FSMC_Bank4_PCCARD*/ + else + { + FSMC_Bank4->SR4 &= ~(FSMC_IT >> 3); + } +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_gpio.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_gpio.c new file mode 100644 index 00000000..aaf8dcb4 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_gpio.c @@ -0,0 +1,566 @@ +/** + ****************************************************************************** + * @file stm32f2xx_gpio.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the GPIO peripheral: + * - Initialization and Configuration + * - GPIO Read and Write + * - GPIO Alternate functions configuration + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable the GPIO AHB clock using the following function + * RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE); + * + * 2. Configure the GPIO pin(s) using GPIO_Init() + * Four possible configuration are available for each pin: + * - Input: Floating, Pull-up, Pull-down. + * - Output: Push-Pull (Pull-up, Pull-down or no Pull) + * Open Drain (Pull-up, Pull-down or no Pull). + * In output mode, the speed is configurable: 2 MHz, 25 MHz, + * 50 MHz or 100 MHz. + * - Alternate Function: Push-Pull (Pull-up, Pull-down or no Pull) + * Open Drain (Pull-up, Pull-down or no Pull). + * - Analog: required mode when a pin is to be used as ADC channel + * or DAC output. + * + * 3- Peripherals alternate function: + * - For ADC and DAC, configure the desired pin in analog mode using + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AN; + * - For other peripherals (TIM, USART...): + * - Connect the pin to the desired peripherals' Alternate + * Function (AF) using GPIO_PinAFConfig() function + * - Configure the desired pin in alternate function mode using + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * + * 4. To get the level of a pin configured in input mode use GPIO_ReadInputDataBit() + * + * 5. To set/reset the level of a pin configured in output mode use + * GPIO_SetBits()/GPIO_ResetBits() + * + * 6. During and just after reset, the alternate functions are not + * active and the GPIO pins are configured in input floating mode + * (except JTAG pins). + * + * 7. The LSE oscillator pins OSC32_IN and OSC32_OUT can be used as + * general-purpose (PC14 and PC15, respectively) when the LSE + * oscillator is off. The LSE has priority over the GPIO function. + * + * 8. The HSE oscillator pins OSC_IN/OSC_OUT can be used as + * general-purpose PH0 and PH1, respectively, when the HSE + * oscillator is off. The HSE has priority over the GPIO function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_gpio.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup GPIO + * @brief GPIO driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup GPIO_Private_Functions + * @{ + */ + +/** @defgroup GPIO_Group1 Initialization and Configuration + * @brief Initialization and Configuration + * +@verbatim + =============================================================================== + Initialization and Configuration + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the GPIOx peripheral registers to their default reset values. + * @note By default, The GPIO pins are configured in input floating mode (except JTAG pins). + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @retval None + */ +void GPIO_DeInit(GPIO_TypeDef* GPIOx) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + if (GPIOx == GPIOA) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOA, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOA, DISABLE); + } + else if (GPIOx == GPIOB) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOB, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOB, DISABLE); + } + else if (GPIOx == GPIOC) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOC, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOC, DISABLE); + } + else if (GPIOx == GPIOD) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOD, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOD, DISABLE); + } + else if (GPIOx == GPIOE) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOE, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOE, DISABLE); + } + else if (GPIOx == GPIOF) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOF, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOF, DISABLE); + } + else if (GPIOx == GPIOG) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOG, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOG, DISABLE); + } + else if (GPIOx == GPIOH) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOH, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOH, DISABLE); + } + else + { + if (GPIOx == GPIOI) + { + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOI, ENABLE); + RCC_AHB1PeriphResetCmd(RCC_AHB1Periph_GPIOI, DISABLE); + } + } +} + +/** + * @brief Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_InitStruct: pointer to a GPIO_InitTypeDef structure that contains + * the configuration information for the specified GPIO peripheral. + * @retval None + */ +void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct) +{ + uint32_t pinpos = 0x00, pos = 0x00 , currentpin = 0x00; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN(GPIO_InitStruct->GPIO_Pin)); + assert_param(IS_GPIO_MODE(GPIO_InitStruct->GPIO_Mode)); + assert_param(IS_GPIO_PUPD(GPIO_InitStruct->GPIO_PuPd)); + + /* -------------------------Configure the port pins---------------- */ + /*-- GPIO Mode Configuration --*/ + for (pinpos = 0x00; pinpos < 0x10; pinpos++) + { + pos = ((uint32_t)0x01) << pinpos; + /* Get the port pins position */ + currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; + + if (currentpin == pos) + { + GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (pinpos * 2)); + GPIOx->MODER |= (((uint32_t)GPIO_InitStruct->GPIO_Mode) << (pinpos * 2)); + + if ((GPIO_InitStruct->GPIO_Mode == GPIO_Mode_OUT) || (GPIO_InitStruct->GPIO_Mode == GPIO_Mode_AF)) + { + /* Check Speed mode parameters */ + assert_param(IS_GPIO_SPEED(GPIO_InitStruct->GPIO_Speed)); + + /* Speed mode configuration */ + GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (pinpos * 2)); + GPIOx->OSPEEDR |= ((uint32_t)(GPIO_InitStruct->GPIO_Speed) << (pinpos * 2)); + + /* Check Output mode parameters */ + assert_param(IS_GPIO_OTYPE(GPIO_InitStruct->GPIO_OType)); + + /* Output mode configuration*/ + GPIOx->OTYPER &= ~((GPIO_OTYPER_OT_0) << ((uint16_t)pinpos)) ; + GPIOx->OTYPER |= (uint16_t)(((uint16_t)GPIO_InitStruct->GPIO_OType) << ((uint16_t)pinpos)); + } + + /* Pull-up Pull down resistor configuration*/ + GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << ((uint16_t)pinpos * 2)); + GPIOx->PUPDR |= (((uint32_t)GPIO_InitStruct->GPIO_PuPd) << (pinpos * 2)); + } + } +} + +/** + * @brief Fills each GPIO_InitStruct member with its default value. + * @param GPIO_InitStruct : pointer to a GPIO_InitTypeDef structure which will be initialized. + * @retval None + */ +void GPIO_StructInit(GPIO_InitTypeDef* GPIO_InitStruct) +{ + /* Reset GPIO init structure parameters values */ + GPIO_InitStruct->GPIO_Pin = GPIO_Pin_All; + GPIO_InitStruct->GPIO_Mode = GPIO_Mode_IN; + GPIO_InitStruct->GPIO_Speed = GPIO_Speed_2MHz; + GPIO_InitStruct->GPIO_OType = GPIO_OType_PP; + GPIO_InitStruct->GPIO_PuPd = GPIO_PuPd_NOPULL; +} + +/** + * @brief Locks GPIO Pins configuration registers. + * @note The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR, + * GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH. + * @note The configuration of the locked GPIO pins can no longer be modified + * until the next reset. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bit to be locked. + * This parameter can be any combination of GPIO_Pin_x where x can be (0..15). + * @retval None + */ +void GPIO_PinLockConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + __IO uint32_t tmp = 0x00010000; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN(GPIO_Pin)); + + tmp |= GPIO_Pin; + /* Set LCKK bit */ + GPIOx->LCKR = tmp; + /* Reset LCKK bit */ + GPIOx->LCKR = GPIO_Pin; + /* Set LCKK bit */ + GPIOx->LCKR = tmp; + /* Read LCKK bit*/ + tmp = GPIOx->LCKR; + /* Read LCKK bit*/ + tmp = GPIOx->LCKR; +} + +/** + * @} + */ + +/** @defgroup GPIO_Group2 GPIO Read and Write + * @brief GPIO Read and Write + * +@verbatim + =============================================================================== + GPIO Read and Write + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Reads the specified input port pin. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bit to read. + * This parameter can be GPIO_Pin_x where x can be (0..15). + * @retval The input port pin value. + */ +uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + uint8_t bitstatus = 0x00; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); + + if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)Bit_RESET) + { + bitstatus = (uint8_t)Bit_SET; + } + else + { + bitstatus = (uint8_t)Bit_RESET; + } + return bitstatus; +} + +/** + * @brief Reads the specified GPIO input data port. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @retval GPIO input data port value. + */ +uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + return ((uint16_t)GPIOx->IDR); +} + +/** + * @brief Reads the specified output data port bit. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bit to read. + * This parameter can be GPIO_Pin_x where x can be (0..15). + * @retval The output port pin value. + */ +uint8_t GPIO_ReadOutputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + uint8_t bitstatus = 0x00; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); + + if ((GPIOx->ODR & GPIO_Pin) != (uint32_t)Bit_RESET) + { + bitstatus = (uint8_t)Bit_SET; + } + else + { + bitstatus = (uint8_t)Bit_RESET; + } + return bitstatus; +} + +/** + * @brief Reads the specified GPIO output data port. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @retval GPIO output data port value. + */ +uint16_t GPIO_ReadOutputData(GPIO_TypeDef* GPIOx) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + return ((uint16_t)GPIOx->ODR); +} + +/** + * @brief Sets the selected data port bits. + * @note This functions uses GPIOx_BSRR register to allow atomic read/modify + * accesses. In this way, there is no risk of an IRQ occurring between + * the read and the modify access. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bits to be written. + * This parameter can be any combination of GPIO_Pin_x where x can be (0..15). + * @retval None + */ +void GPIO_SetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN(GPIO_Pin)); + + GPIOx->BSRRL = GPIO_Pin; +} + +/** + * @brief Clears the selected data port bits. + * @note This functions uses GPIOx_BSRR register to allow atomic read/modify + * accesses. In this way, there is no risk of an IRQ occurring between + * the read and the modify access. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bits to be written. + * This parameter can be any combination of GPIO_Pin_x where x can be (0..15). + * @retval None + */ +void GPIO_ResetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN(GPIO_Pin)); + + GPIOx->BSRRH = GPIO_Pin; +} + +/** + * @brief Sets or clears the selected data port bit. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: specifies the port bit to be written. + * This parameter can be one of GPIO_Pin_x where x can be (0..15). + * @param BitVal: specifies the value to be written to the selected bit. + * This parameter can be one of the BitAction enum values: + * @arg Bit_RESET: to clear the port pin + * @arg Bit_SET: to set the port pin + * @retval None + */ +void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); + assert_param(IS_GPIO_BIT_ACTION(BitVal)); + + if (BitVal != Bit_RESET) + { + GPIOx->BSRRL = GPIO_Pin; + } + else + { + GPIOx->BSRRH = GPIO_Pin ; + } +} + +/** + * @brief Writes data to the specified GPIO data port. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param PortVal: specifies the value to be written to the port output data register. + * @retval None + */ +void GPIO_Write(GPIO_TypeDef* GPIOx, uint16_t PortVal) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + GPIOx->ODR = PortVal; +} + +/** + * @brief Toggles the specified GPIO pins.. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_Pin: Specifies the pins to be toggled. + * @retval None + */ +void GPIO_ToggleBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) +{ + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + + GPIOx->ODR ^= GPIO_Pin; +} + +/** + * @} + */ + +/** @defgroup GPIO_Group3 GPIO Alternate functions configuration function + * @brief GPIO Alternate functions configuration function + * +@verbatim + =============================================================================== + GPIO Alternate functions configuration function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Changes the mapping of the specified pin. + * @param GPIOx: where x can be (A..I) to select the GPIO peripheral. + * @param GPIO_PinSource: specifies the pin for the Alternate function. + * This parameter can be GPIO_PinSourcex where x can be (0..15). + * @param GPIO_AFSelection: selects the pin to used as Alternate function. + * This parameter can be one of the following values: + * @arg GPIO_AF_RTC_50Hz: Connect RTC_50Hz pin to AF0 (default after reset) + * @arg GPIO_AF_MCO: Connect MCO pin (MCO1 and MCO2) to AF0 (default after reset) + * @arg GPIO_AF_TAMPER: Connect TAMPER pins (TAMPER_1 and TAMPER_2) to AF0 (default after reset) + * @arg GPIO_AF_SWJ: Connect SWJ pins (SWD and JTAG)to AF0 (default after reset) + * @arg GPIO_AF_TRACE: Connect TRACE pins to AF0 (default after reset) + * @arg GPIO_AF_TIM1: Connect TIM1 pins to AF1 + * @arg GPIO_AF_TIM2: Connect TIM2 pins to AF1 + * @arg GPIO_AF_TIM3: Connect TIM3 pins to AF2 + * @arg GPIO_AF_TIM4: Connect TIM4 pins to AF2 + * @arg GPIO_AF_TIM5: Connect TIM5 pins to AF2 + * @arg GPIO_AF_TIM8: Connect TIM8 pins to AF3 + * @arg GPIO_AF_TIM9: Connect TIM9 pins to AF3 + * @arg GPIO_AF_TIM10: Connect TIM10 pins to AF3 + * @arg GPIO_AF_TIM11: Connect TIM11 pins to AF3 + * @arg GPIO_AF_I2C1: Connect I2C1 pins to AF4 + * @arg GPIO_AF_I2C2: Connect I2C2 pins to AF4 + * @arg GPIO_AF_I2C3: Connect I2C3 pins to AF4 + * @arg GPIO_AF_SPI1: Connect SPI1 pins to AF5 + * @arg GPIO_AF_SPI2: Connect SPI2/I2S2 pins to AF5 + * @arg GPIO_AF_SPI3: Connect SPI3/I2S3 pins to AF6 + * @arg GPIO_AF_USART1: Connect USART1 pins to AF7 + * @arg GPIO_AF_USART2: Connect USART2 pins to AF7 + * @arg GPIO_AF_USART3: Connect USART3 pins to AF7 + * @arg GPIO_AF_UART4: Connect UART4 pins to AF8 + * @arg GPIO_AF_UART5: Connect UART5 pins to AF8 + * @arg GPIO_AF_USART6: Connect USART6 pins to AF8 + * @arg GPIO_AF_CAN1: Connect CAN1 pins to AF9 + * @arg GPIO_AF_CAN2: Connect CAN2 pins to AF9 + * @arg GPIO_AF_TIM12: Connect TIM12 pins to AF9 + * @arg GPIO_AF_TIM13: Connect TIM13 pins to AF9 + * @arg GPIO_AF_TIM14: Connect TIM14 pins to AF9 + * @arg GPIO_AF_OTG_FS: Connect OTG_FS pins to AF10 + * @arg GPIO_AF_OTG_HS: Connect OTG_HS pins to AF10 + * @arg GPIO_AF_ETH: Connect ETHERNET pins to AF11 + * @arg GPIO_AF_FSMC: Connect FSMC pins to AF12 + * @arg GPIO_AF_OTG_HS_FS: Connect OTG HS (configured in FS) pins to AF12 + * @arg GPIO_AF_SDIO: Connect SDIO pins to AF12 + * @arg GPIO_AF_DCMI: Connect DCMI pins to AF13 + * @arg GPIO_AF_EVENTOUT: Connect EVENTOUT pins to AF15 + * @retval None + */ +void GPIO_PinAFConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF) +{ + uint32_t temp = 0x00; + uint32_t temp_2 = 0x00; + + /* Check the parameters */ + assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); + assert_param(IS_GPIO_PIN_SOURCE(GPIO_PinSource)); + assert_param(IS_GPIO_AF(GPIO_AF)); + + temp = ((uint32_t)(GPIO_AF) << ((uint32_t)((uint32_t)GPIO_PinSource & (uint32_t)0x07) * 4)) ; + GPIOx->AFR[GPIO_PinSource >> 0x03] &= ~((uint32_t)0xF << ((uint32_t)((uint32_t)GPIO_PinSource & (uint32_t)0x07) * 4)) ; + temp_2 = GPIOx->AFR[GPIO_PinSource >> 0x03] | temp; + GPIOx->AFR[GPIO_PinSource >> 0x03] = temp_2; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_hash.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_hash.c new file mode 100644 index 00000000..74ac2804 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_hash.c @@ -0,0 +1,706 @@ +/** + ****************************************************************************** + * @file stm32f2xx_hash.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the HASH / HMAC Processor (HASH) peripheral: + * - Initialization and Configuration functions + * - Message Digest generation functions + * - context swapping functions + * - DMA interface function + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * HASH operation : + * ---------------- + * 1. Enable the HASH controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_HASH, ENABLE) function. + * + * 2. Initialise the HASH using HASH_Init() function. + * + * 3 . Reset the HASH processor core, so that the HASH will be ready + * to compute he message digest of a new message by using + * HASH_Reset() function. + * + * 4. Enable the HASH controller using the HASH_Cmd() function. + * + * 5. if using DMA for Data input transfer, Activate the DMA Request + * using HASH_DMACmd() function + * + * 6. if DMA is not used for data transfer, use HASH_DataIn() function + * to enter data to IN FIFO. + * + * + * 7. Configure the Number of valid bits in last word of the message + * using HASH_SetLastWordValidBitsNbr() function. + * + * 8. if the message length is not an exact multiple of 512 bits, + * then the function HASH_StartDigest() must be called to + * launch the computation of the final digest. + * + * 9. Once computed, the digest can be read using HASH_GetDigest() + * function. + * + * 10. To control HASH events you can use one of the following + * two methods: + * a- Check on HASH flags using the HASH_GetFlagStatus() function. + * b- Use HASH interrupts through the function HASH_ITConfig() at + * initialization phase and HASH_GetITStatus() function into + * interrupt routines in hashing phase. + * After checking on a flag you should clear it using HASH_ClearFlag() + * function. And after checking on an interrupt event you should + * clear it using HASH_ClearITPendingBit() function. + * + * 11. Save and restore hash processor context using + * HASH_SaveContext() and HASH_RestoreContext() functions. + * + * + * + * HMAC operation : + * ---------------- + * The HMAC algorithm is used for message authentication, by + * irreversibly binding the message being processed to a key chosen + * by the user. + * For HMAC specifications, refer to "HMAC: keyed-hashing for message + * authentication, H. Krawczyk, M. Bellare, R. Canetti, February 1997" + * + * Basically, the HMAC algorithm consists of two nested hash operations: + * HMAC(message) = Hash[((key | pad) XOR 0x5C) | Hash(((key | pad) XOR 0x36) | message)] + * where: + * - "pad" is a sequence of zeroes needed to extend the key to the + * length of the underlying hash function data block (that is + * 512 bits for both the SHA-1 and MD5 hash algorithms) + * - "|" represents the concatenation operator + * + * + * To compute the HMAC, four different phases are required: + * + * 1. Initialise the HASH using HASH_Init() function to do HMAC + * operation. + * + * 2. The key (to be used for the inner hash function) is then given + * to the core. This operation follows the same mechanism as the + * one used to send the message in the hash operation (that is, + * by HASH_DataIn() function and, finally, + * HASH_StartDigest() function. + * + * 3. Once the last word has been entered and computation has started, + * the hash processor elaborates the key. It is then ready to + * accept the message text using the same mechanism as the one + * used to send the message in the hash operation. + * + * 4. After the first hash round, the hash processor returns "ready" + * to indicate that it is ready to receive the key to be used for + * the outer hash function (normally, this key is the same as the + * one used for the inner hash function). When the last word of + * the key is entered and computation starts, the HMAC result is + * made available using HASH_GetDigest() function. + * + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_hash.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup HASH + * @brief HASH driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup HASH_Private_Functions + * @{ + */ + +/** @defgroup HASH_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to + - Initialize the HASH peripheral + - Configure the HASH Processor + - MD5/SHA1, + - HASH/HMAC, + - datatype + - HMAC Key (if mode = HMAC) + - Reset the HASH Processor + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the HASH peripheral registers to their default reset values + * @param None + * @retval None + */ +void HASH_DeInit(void) +{ + /* Enable HASH reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_HASH, ENABLE); + /* Release HASH from reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_HASH, DISABLE); +} + +/** + * @brief Initializes the HASH peripheral according to the specified parameters + * in the HASH_InitStruct structure. + * @note the hash processor is reset when calling this function so that the + * HASH will be ready to compute the message digest of a new message. + * There is no need to call HASH_Reset() function. + * @param HASH_InitStruct: pointer to a HASH_InitTypeDef structure that contains + * the configuration information for the HASH peripheral. + * @note The field HASH_HMACKeyType in HASH_InitTypeDef must be filled only + * if the algorithm mode is HMAC. + * @retval None + */ +void HASH_Init(HASH_InitTypeDef* HASH_InitStruct) +{ + /* Check the parameters */ + assert_param(IS_HASH_ALGOSELECTION(HASH_InitStruct->HASH_AlgoSelection)); + assert_param(IS_HASH_DATATYPE(HASH_InitStruct->HASH_DataType)); + assert_param(IS_HASH_ALGOMODE(HASH_InitStruct->HASH_AlgoMode)); + + /* Configure the Algorithm used, algorithm mode and the datatype */ + HASH->CR &= ~ (HASH_CR_ALGO | HASH_CR_DATATYPE | HASH_CR_MODE); + HASH->CR |= (HASH_InitStruct->HASH_AlgoSelection | \ + HASH_InitStruct->HASH_DataType | \ + HASH_InitStruct->HASH_AlgoMode); + + /* if algorithm mode is HMAC, set the Key */ + if(HASH_InitStruct->HASH_AlgoMode == HASH_AlgoMode_HMAC) + { + assert_param(IS_HASH_HMAC_KEYTYPE(HASH_InitStruct->HASH_HMACKeyType)); + HASH->CR &= ~HASH_CR_LKEY; + HASH->CR |= HASH_InitStruct->HASH_HMACKeyType; + } + + /* Reset the HASH processor core, so that the HASH will be ready to compute + the message digest of a new message */ + HASH->CR |= HASH_CR_INIT; +} + +/** + * @brief Fills each HASH_InitStruct member with its default value. + * @param HASH_InitStruct : pointer to a HASH_InitTypeDef structure which will + * be initialized. + * @note The default values set are : Processor mode is HASH, Algorithm selected is SHA1, + * Data type selected is 32b and HMAC Key Type is short key. + * @retval None + */ +void HASH_StructInit(HASH_InitTypeDef* HASH_InitStruct) +{ + /* Initialize the HASH_AlgoSelection member */ + HASH_InitStruct->HASH_AlgoSelection = HASH_AlgoSelection_SHA1; + + /* Initialize the HASH_AlgoMode member */ + HASH_InitStruct->HASH_AlgoMode = HASH_AlgoMode_HASH; + + /* Initialize the HASH_DataType member */ + HASH_InitStruct->HASH_DataType = HASH_DataType_32b; + + /* Initialize the HASH_HMACKeyType member */ + HASH_InitStruct->HASH_HMACKeyType = HASH_HMACKeyType_ShortKey; +} + +/** + * @brief Resets the HASH processor core, so that the HASH will be ready + * to compute the message digest of a new message. + * @note Calling this function will clear the HASH_SR_DCIS (Digest calculation + * completion interrupt status) bit corresponding to HASH_IT_DCI + * interrupt and HASH_FLAG_DCIS flag. + * @param None + * @retval None + */ +void HASH_Reset(void) +{ + /* Reset the HASH processor core */ + HASH->CR |= HASH_CR_INIT; +} +/** + * @} + */ + +/** @defgroup HASH_Group2 Message Digest generation functions + * @brief Message Digest generation functions + * +@verbatim + =============================================================================== + Message Digest generation functions + =============================================================================== + This section provides functions allowing the generation of message digest: + - Push data in the IN FIFO : using HASH_DataIn() + - Get the number of words set in IN FIFO, use HASH_GetInFIFOWordsNbr() + - set the last word valid bits number using HASH_SetLastWordValidBitsNbr() + - start digest calculation : using HASH_StartDigest() + - Get the Digest message : using HASH_GetDigest() + +@endverbatim + * @{ + */ + + +/** + * @brief Configure the Number of valid bits in last word of the message + * @param ValidNumber: Number of valid bits in last word of the message. + * This parameter must be a number between 0 and 0x1F. + * - 0x00: All 32 bits of the last data written are valid + * - 0x01: Only bit [0] of the last data written is valid + * - 0x02: Only bits[1:0] of the last data written are valid + * - 0x03: Only bits[2:0] of the last data written are valid + * - ... + * - 0x1F: Only bits[30:0] of the last data written are valid + * @note The Number of valid bits must be set before to start the message + * digest competition (in Hash and HMAC) and key treatment(in HMAC). + * @retval None + */ +void HASH_SetLastWordValidBitsNbr(uint16_t ValidNumber) +{ + /* Check the parameters */ + assert_param(IS_HASH_VALIDBITSNUMBER(ValidNumber)); + + /* Configure the Number of valid bits in last word of the message */ + HASH->STR &= ~(HASH_STR_NBW); + HASH->STR |= ValidNumber; +} + +/** + * @brief Writes data in the Data Input FIFO + * @param Data: new data of the message to be processed. + * @retval None + */ +void HASH_DataIn(uint32_t Data) +{ + /* Write in the DIN register a new data */ + HASH->DIN = Data; +} + +/** + * @brief Returns the number of words already pushed into the IN FIFO. + * @param None + * @retval The value of words already pushed into the IN FIFO. + */ +uint8_t HASH_GetInFIFOWordsNbr(void) +{ + /* Return the value of NBW bits */ + return ((HASH->CR & HASH_CR_NBW) >> 8); +} + +/** + * @brief Provides the message digest result. + * @note In MD5 mode, Data[4] filed of HASH_MsgDigest structure is not used + * and is read as zero. + * @param HASH_MessageDigest: pointer to a HASH_MsgDigest structure which will + * hold the message digest result + * @retval None + */ +void HASH_GetDigest(HASH_MsgDigest* HASH_MessageDigest) +{ + /* Get the data field */ + HASH_MessageDigest->Data[0] = HASH->HR[0]; + HASH_MessageDigest->Data[1] = HASH->HR[1]; + HASH_MessageDigest->Data[2] = HASH->HR[2]; + HASH_MessageDigest->Data[3] = HASH->HR[3]; + HASH_MessageDigest->Data[4] = HASH->HR[4]; +} + +/** + * @brief Starts the message padding and calculation of the final message + * @param None + * @retval None + */ +void HASH_StartDigest(void) +{ + /* Start the Digest calculation */ + HASH->STR |= HASH_STR_DCAL; +} +/** + * @} + */ + +/** @defgroup HASH_Group3 Context swapping functions + * @brief Context swapping functions + * +@verbatim + =============================================================================== + Context swapping functions + =============================================================================== + + This section provides functions allowing to save and store HASH Context + + It is possible to interrupt a HASH/HMAC process to perform another processing + with a higher priority, and to complete the interrupted process later on, when + the higher priority task is complete. To do so, the context of the interrupted + task must be saved from the HASH registers to memory, and then be restored + from memory to the HASH registers. + + 1. To save the current context, use HASH_SaveContext() function + 2. To restore the saved context, use HASH_RestoreContext() function + + +@endverbatim + * @{ + */ + +/** + * @brief Save the Hash peripheral Context. + * @note The context can be saved only when no block is currently being + * processed. So user must wait for DINIS = 1 (the last block has been + * processed and the input FIFO is empty) or NBW != 0 (the FIFO is not + * full and no processing is ongoing). + * @param HASH_ContextSave: pointer to a HASH_Context structure that contains + * the repository for current context. + * @retval None + */ +void HASH_SaveContext(HASH_Context* HASH_ContextSave) +{ + uint8_t i = 0; + + /* save context registers */ + HASH_ContextSave->HASH_IMR = HASH->IMR; + HASH_ContextSave->HASH_STR = HASH->STR; + HASH_ContextSave->HASH_CR = HASH->CR; + for(i=0; i<=50;i++) + { + HASH_ContextSave->HASH_CSR[i] = HASH->CSR[i]; + } +} + +/** + * @brief Restore the Hash peripheral Context. + * @note After calling this function, user can restart the processing from the + * point where it has been interrupted. + * @param HASH_ContextRestore: pointer to a HASH_Context structure that contains + * the repository for saved context. + * @retval None + */ +void HASH_RestoreContext(HASH_Context* HASH_ContextRestore) +{ + uint8_t i = 0; + + /* restore context registers */ + HASH->IMR = HASH_ContextRestore->HASH_IMR; + HASH->STR = HASH_ContextRestore->HASH_STR; + HASH->CR = HASH_ContextRestore->HASH_CR; + + /* Initialize the hash processor */ + HASH->CR |= HASH_CR_INIT; + + /* continue restoring context registers */ + for(i=0; i<=50;i++) + { + HASH->CSR[i] = HASH_ContextRestore->HASH_CSR[i]; + } +} +/** + * @} + */ + +/** @defgroup HASH_Group4 HASH's DMA interface Configuration function + * @brief HASH's DMA interface Configuration function + * +@verbatim + =============================================================================== + HASH's DMA interface Configuration function + =============================================================================== + + This section provides functions allowing to configure the DMA interface for + HASH/ HMAC data input transfer. + + When the DMA mode is enabled (using the HASH_DMACmd() function), data can be + sent to the IN FIFO using the DMA peripheral. + + + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the HASH DMA interface. + * @note The DMA is disabled by hardware after the end of transfer. + * @param NewState: new state of the selected HASH DMA transfer request. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void HASH_DMACmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the HASH DMA request */ + HASH->CR |= HASH_CR_DMAE; + } + else + { + /* Disable the HASH DMA request */ + HASH->CR &= ~HASH_CR_DMAE; + } +} +/** + * @} + */ + +/** @defgroup HASH_Group5 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the HASH Interrupts and + to get the status and clear flags and Interrupts pending bits. + + The HASH provides 2 Interrupts sources and 5 Flags: + + Flags : + ---------- + 1. HASH_FLAG_DINIS : set when 16 locations are free in the Data IN FIFO + which means that a new block (512 bit) can be entered + into the input buffer. + + 2. HASH_FLAG_DCIS : set when Digest calculation is complete + + 3. HASH_FLAG_DMAS : set when HASH's DMA interface is enabled (DMAE=1) or + a transfer is ongoing. + This Flag is cleared only by hardware. + + 4. HASH_FLAG_BUSY : set when The hash core is processing a block of data + This Flag is cleared only by hardware. + + 5. HASH_FLAG_DINNE : set when Data IN FIFO is not empty which means that + the Data IN FIFO contains at least one word of data. + This Flag is cleared only by hardware. + + Interrupts : + ------------ + + 1. HASH_IT_DINI : if enabled, this interrupt source is pending when 16 + locations are free in the Data IN FIFO which means that + a new block (512 bit) can be entered into the input buffer. + This interrupt source is cleared using + HASH_ClearITPendingBit(HASH_IT_DINI) function. + + 2. HASH_IT_DCI : if enabled, this interrupt source is pending when Digest + calculation is complete. + This interrupt source is cleared using + HASH_ClearITPendingBit(HASH_IT_DCI) function. + + Managing the HASH controller events : + ------------------------------------ + The user should identify which mode will be used in his application to manage + the HASH controller events: Polling mode or Interrupt mode. + + 1. In the Polling Mode it is advised to use the following functions: + - HASH_GetFlagStatus() : to check if flags events occur. + - HASH_ClearFlag() : to clear the flags events. + + 2. In the Interrupt Mode it is advised to use the following functions: + - HASH_ITConfig() : to enable or disable the interrupt source. + - HASH_GetITStatus() : to check if Interrupt occurs. + - HASH_ClearITPendingBit() : to clear the Interrupt pending Bit + (corresponding Flag). + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified HASH interrupts. + * @param HASH_IT: specifies the HASH interrupt source to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg HASH_IT_DINI: Data Input interrupt + * @arg HASH_IT_DCI: Digest Calculation Completion Interrupt + * @param NewState: new state of the specified HASH interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void HASH_ITConfig(uint8_t HASH_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_HASH_IT(HASH_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected HASH interrupt */ + HASH->IMR |= HASH_IT; + } + else + { + /* Disable the selected HASH interrupt */ + HASH->IMR &= (uint8_t) ~HASH_IT; + } +} + +/** + * @brief Checks whether the specified HASH flag is set or not. + * @param HASH_FLAG: specifies the HASH flag to check. + * This parameter can be one of the following values: + * @arg HASH_FLAG_DINIS: Data input interrupt status flag + * @arg HASH_FLAG_DCIS: Digest calculation completion interrupt status flag + * @arg HASH_FLAG_BUSY: Busy flag + * @arg HASH_FLAG_DMAS: DMAS Status flag + * @arg HASH_FLAG_DINNE: Data Input register (DIN) not empty status flag + * @retval The new state of HASH_FLAG (SET or RESET) + */ +FlagStatus HASH_GetFlagStatus(uint16_t HASH_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t tempreg = 0; + + /* Check the parameters */ + assert_param(IS_HASH_GET_FLAG(HASH_FLAG)); + + /* check if the FLAG is in CR register */ + if ((HASH_FLAG & HASH_FLAG_DINNE) != (uint16_t)RESET ) + { + tempreg = HASH->CR; + } + else /* The FLAG is in SR register */ + { + tempreg = HASH->SR; + } + + /* Check the status of the specified HASH flag */ + if ((tempreg & HASH_FLAG) != (uint16_t)RESET) + { + /* HASH is set */ + bitstatus = SET; + } + else + { + /* HASH_FLAG is reset */ + bitstatus = RESET; + } + + /* Return the HASH_FLAG status */ + return bitstatus; +} +/** + * @brief Clears the HASH flags. + * @param HASH_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg HASH_FLAG_DINIS: Data Input Flag + * @arg HASH_FLAG_DCIS: Digest Calculation Completion Flag + * @retval None + */ +void HASH_ClearFlag(uint16_t HASH_FLAG) +{ + /* Check the parameters */ + assert_param(IS_HASH_CLEAR_FLAG(HASH_FLAG)); + + /* Clear the selected HASH flags */ + HASH->SR = ~(uint32_t)HASH_FLAG; +} +/** + * @brief Checks whether the specified HASH interrupt has occurred or not. + * @param HASH_IT: specifies the HASH interrupt source to check. + * This parameter can be one of the following values: + * @arg HASH_IT_DINI: Data Input interrupt + * @arg HASH_IT_DCI: Digest Calculation Completion Interrupt + * @retval The new state of HASH_IT (SET or RESET). + */ +ITStatus HASH_GetITStatus(uint8_t HASH_IT) +{ + ITStatus bitstatus = RESET; + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_HASH_GET_IT(HASH_IT)); + + + /* Check the status of the specified HASH interrupt */ + tmpreg = HASH->SR; + + if (((HASH->IMR & tmpreg) & HASH_IT) != RESET) + { + /* HASH_IT is set */ + bitstatus = SET; + } + else + { + /* HASH_IT is reset */ + bitstatus = RESET; + } + /* Return the HASH_IT status */ + return bitstatus; +} + +/** + * @brief Clears the HASH interrupt pending bit(s). + * @param HASH_IT: specifies the HASH interrupt pending bit(s) to clear. + * This parameter can be any combination of the following values: + * @arg HASH_IT_DINI: Data Input interrupt + * @arg HASH_IT_DCI: Digest Calculation Completion Interrupt + * @retval None + */ +void HASH_ClearITPendingBit(uint8_t HASH_IT) +{ + /* Check the parameters */ + assert_param(IS_HASH_IT(HASH_IT)); + + /* Clear the selected HASH interrupt pending bit */ + HASH->SR = (uint8_t)~HASH_IT; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_hash_md5.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_hash_md5.c new file mode 100644 index 00000000..6cb34373 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_hash_md5.c @@ -0,0 +1,320 @@ +/** + ****************************************************************************** + * @file stm32f2xx_hash_md5.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides high level functions to compute the HASH MD5 and + * HMAC MD5 Digest of an input message. + * It uses the stm32f2xx_hash.c/.h drivers to access the STM32F2xx HASH + * peripheral. + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable The HASH controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_HASH, ENABLE); function. + * + * 2. Calculate the HASH MD5 Digest using HASH_MD5() function. + * + * 3. Calculate the HMAC MD5 Digest using HMAC_MD5() function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_hash.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup HASH + * @brief HASH driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define MD5BUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup HASH_Private_Functions + * @{ + */ + +/** @defgroup HASH_Group7 High Level MD5 functions + * @brief High Level MD5 Hash and HMAC functions + * +@verbatim + =============================================================================== + High Level MD5 Hash and HMAC functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Compute the HASH MD5 digest. + * @param Input: pointer to the Input buffer to be treated. + * @param Ilen: length of the Input buffer. + * @param Output: the returned digest + * @retval An ErrorStatus enumeration value: + * - SUCCESS: digest computation done + * - ERROR: digest computation failed + */ +ErrorStatus HASH_MD5(uint8_t *Input, uint32_t Ilen, uint8_t Output[16]) +{ + HASH_InitTypeDef MD5_HASH_InitStructure; + HASH_MsgDigest MD5_MessageDigest; + __IO uint16_t nbvalidbitsdata = 0; + uint32_t i = 0; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + + + /* Number of valid bits in last word of the Input data */ + nbvalidbitsdata = 8 * (Ilen % 4); + + /* HASH peripheral initialization */ + HASH_DeInit(); + + /* HASH Configuration */ + MD5_HASH_InitStructure.HASH_AlgoSelection = HASH_AlgoSelection_MD5; + MD5_HASH_InitStructure.HASH_AlgoMode = HASH_AlgoMode_HASH; + MD5_HASH_InitStructure.HASH_DataType = HASH_DataType_8b; + HASH_Init(&MD5_HASH_InitStructure); + + /* Configure the number of valid bits in last word of the data */ + HASH_SetLastWordValidBitsNbr(nbvalidbitsdata); + + /* Write the Input block in the IN FIFO */ + for(i=0; i 64) + { + /* HMAC long Key */ + MD5_HASH_InitStructure.HASH_HMACKeyType = HASH_HMACKeyType_LongKey; + } + else + { + /* HMAC short Key */ + MD5_HASH_InitStructure.HASH_HMACKeyType = HASH_HMACKeyType_ShortKey; + } + HASH_Init(&MD5_HASH_InitStructure); + + /* Configure the number of valid bits in last word of the Key */ + HASH_SetLastWordValidBitsNbr(nbvalidbitskey); + + /* Write the Key */ + for(i=0; i
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_hash.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup HASH + * @brief HASH driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +#define SHA1BUSY_TIMEOUT ((uint32_t) 0x00010000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup HASH_Private_Functions + * @{ + */ + +/** @defgroup HASH_Group6 High Level SHA1 functions + * @brief High Level SHA1 Hash and HMAC functions + * +@verbatim + =============================================================================== + High Level SHA1 Hash and HMAC functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Compute the HASH SHA1 digest. + * @param Input: pointer to the Input buffer to be treated. + * @param Ilen: length of the Input buffer. + * @param Output: the returned digest + * @retval An ErrorStatus enumeration value: + * - SUCCESS: digest computation done + * - ERROR: digest computation failed + */ +ErrorStatus HASH_SHA1(uint8_t *Input, uint32_t Ilen, uint8_t Output[20]) +{ + HASH_InitTypeDef SHA1_HASH_InitStructure; + HASH_MsgDigest SHA1_MessageDigest; + __IO uint16_t nbvalidbitsdata = 0; + uint32_t i = 0; + __IO uint32_t counter = 0; + uint32_t busystatus = 0; + ErrorStatus status = SUCCESS; + uint32_t inputaddr = (uint32_t)Input; + uint32_t outputaddr = (uint32_t)Output; + + /* Number of valid bits in last word of the Input data */ + nbvalidbitsdata = 8 * (Ilen % 4); + + /* HASH peripheral initialization */ + HASH_DeInit(); + + /* HASH Configuration */ + SHA1_HASH_InitStructure.HASH_AlgoSelection = HASH_AlgoSelection_SHA1; + SHA1_HASH_InitStructure.HASH_AlgoMode = HASH_AlgoMode_HASH; + SHA1_HASH_InitStructure.HASH_DataType = HASH_DataType_8b; + HASH_Init(&SHA1_HASH_InitStructure); + + /* Configure the number of valid bits in last word of the data */ + HASH_SetLastWordValidBitsNbr(nbvalidbitsdata); + + /* Write the Input block in the IN FIFO */ + for(i=0; i 64) + { + /* HMAC long Key */ + SHA1_HASH_InitStructure.HASH_HMACKeyType = HASH_HMACKeyType_LongKey; + } + else + { + /* HMAC short Key */ + SHA1_HASH_InitStructure.HASH_HMACKeyType = HASH_HMACKeyType_ShortKey; + } + HASH_Init(&SHA1_HASH_InitStructure); + + /* Configure the number of valid bits in last word of the Key */ + HASH_SetLastWordValidBitsNbr(nbvalidbitskey); + + /* Write the Key */ + for(i=0; iGPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * Recommended configuration is Push-Pull, Pull-up, Open-Drain. + * Add an external pull up if necessary (typically 4.7 KOhm). + * + * 4. Program the Mode, duty cycle , Own address, Ack, Speed and Acknowledged + * Address using the I2C_Init() function. + * + * 5. Optionally you can enable/configure the following parameters without + * re-initialization (i.e there is no need to call again I2C_Init() function): + * - Enable the acknowledge feature using I2C_AcknowledgeConfig() function + * - Enable the dual addressing mode using I2C_DualAddressCmd() function + * - Enable the general call using the I2C_GeneralCallCmd() function + * - Enable the clock stretching using I2C_StretchClockCmd() function + * - Enable the fast mode duty cycle using the I2C_FastModeDutyCycleConfig() + * function. + * - Configure the NACK position for Master Receiver mode in case of + * 2 bytes reception using the function I2C_NACKPositionConfig(). + * - Enable the PEC Calculation using I2C_CalculatePEC() function + * - For SMBus Mode: + * - Enable the Address Resolution Protocol (ARP) using I2C_ARPCmd() function + * - Configure the SMBusAlert pin using I2C_SMBusAlertConfig() function + * + * 6. Enable the NVIC and the corresponding interrupt using the function + * I2C_ITConfig() if you need to use interrupt mode. + * + * 7. When using the DMA mode + * - Configure the DMA using DMA_Init() function + * - Active the needed channel Request using I2C_DMACmd() or + * I2C_DMALastTransferCmd() function. + * @note When using DMA mode, I2C interrupts may be used at the same time to + * control the communication flow (Start/Stop/Ack... events and errors). + * + * 8. Enable the I2C using the I2C_Cmd() function. + * + * 9. Enable the DMA using the DMA_Cmd() function when using DMA mode in the + * transfers. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_i2c.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup I2C + * @brief I2C driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +#define CR1_CLEAR_MASK ((uint16_t)0xFBF5) /*I2C_ClockSpeed)); + assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); + assert_param(IS_I2C_DUTY_CYCLE(I2C_InitStruct->I2C_DutyCycle)); + assert_param(IS_I2C_OWN_ADDRESS1(I2C_InitStruct->I2C_OwnAddress1)); + assert_param(IS_I2C_ACK_STATE(I2C_InitStruct->I2C_Ack)); + assert_param(IS_I2C_ACKNOWLEDGE_ADDRESS(I2C_InitStruct->I2C_AcknowledgedAddress)); + +/*---------------------------- I2Cx CR2 Configuration ------------------------*/ + /* Get the I2Cx CR2 value */ + tmpreg = I2Cx->CR2; + /* Clear frequency FREQ[5:0] bits */ + tmpreg &= (uint16_t)~((uint16_t)I2C_CR2_FREQ); + /* Get pclk1 frequency value */ + RCC_GetClocksFreq(&rcc_clocks); + pclk1 = rcc_clocks.PCLK1_Frequency; + /* Set frequency bits depending on pclk1 value */ + freqrange = (uint16_t)(pclk1 / 1000000); + tmpreg |= freqrange; + /* Write to I2Cx CR2 */ + I2Cx->CR2 = tmpreg; + +/*---------------------------- I2Cx CCR Configuration ------------------------*/ + /* Disable the selected I2C peripheral to configure TRISE */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_PE); + /* Reset tmpreg value */ + /* Clear F/S, DUTY and CCR[11:0] bits */ + tmpreg = 0; + + /* Configure speed in standard mode */ + if (I2C_InitStruct->I2C_ClockSpeed <= 100000) + { + /* Standard mode speed calculate */ + result = (uint16_t)(pclk1 / (I2C_InitStruct->I2C_ClockSpeed << 1)); + /* Test if CCR value is under 0x4*/ + if (result < 0x04) + { + /* Set minimum allowed value */ + result = 0x04; + } + /* Set speed value for standard mode */ + tmpreg |= result; + /* Set Maximum Rise Time for standard mode */ + I2Cx->TRISE = freqrange + 1; + } + /* Configure speed in fast mode */ + /* To use the I2C at 400 KHz (in fast mode), the PCLK1 frequency (I2C peripheral + input clock) must be a multiple of 10 MHz */ + else /*(I2C_InitStruct->I2C_ClockSpeed <= 400000)*/ + { + if (I2C_InitStruct->I2C_DutyCycle == I2C_DutyCycle_2) + { + /* Fast mode speed calculate: Tlow/Thigh = 2 */ + result = (uint16_t)(pclk1 / (I2C_InitStruct->I2C_ClockSpeed * 3)); + } + else /*I2C_InitStruct->I2C_DutyCycle == I2C_DutyCycle_16_9*/ + { + /* Fast mode speed calculate: Tlow/Thigh = 16/9 */ + result = (uint16_t)(pclk1 / (I2C_InitStruct->I2C_ClockSpeed * 25)); + /* Set DUTY bit */ + result |= I2C_DutyCycle_16_9; + } + + /* Test if CCR value is under 0x1*/ + if ((result & I2C_CCR_CCR) == 0) + { + /* Set minimum allowed value */ + result |= (uint16_t)0x0001; + } + /* Set speed value and set F/S bit for fast mode */ + tmpreg |= (uint16_t)(result | I2C_CCR_FS); + /* Set Maximum Rise Time for fast mode */ + I2Cx->TRISE = (uint16_t)(((freqrange * (uint16_t)300) / (uint16_t)1000) + (uint16_t)1); + } + + /* Write to I2Cx CCR */ + I2Cx->CCR = tmpreg; + /* Enable the selected I2C peripheral */ + I2Cx->CR1 |= I2C_CR1_PE; + +/*---------------------------- I2Cx CR1 Configuration ------------------------*/ + /* Get the I2Cx CR1 value */ + tmpreg = I2Cx->CR1; + /* Clear ACK, SMBTYPE and SMBUS bits */ + tmpreg &= CR1_CLEAR_MASK; + /* Configure I2Cx: mode and acknowledgement */ + /* Set SMBTYPE and SMBUS bits according to I2C_Mode value */ + /* Set ACK bit according to I2C_Ack value */ + tmpreg |= (uint16_t)((uint32_t)I2C_InitStruct->I2C_Mode | I2C_InitStruct->I2C_Ack); + /* Write to I2Cx CR1 */ + I2Cx->CR1 = tmpreg; + +/*---------------------------- I2Cx OAR1 Configuration -----------------------*/ + /* Set I2Cx Own Address1 and acknowledged address */ + I2Cx->OAR1 = (I2C_InitStruct->I2C_AcknowledgedAddress | I2C_InitStruct->I2C_OwnAddress1); +} + +/** + * @brief Fills each I2C_InitStruct member with its default value. + * @param I2C_InitStruct: pointer to an I2C_InitTypeDef structure which will be initialized. + * @retval None + */ +void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) +{ +/*---------------- Reset I2C init structure parameters values ----------------*/ + /* initialize the I2C_ClockSpeed member */ + I2C_InitStruct->I2C_ClockSpeed = 5000; + /* Initialize the I2C_Mode member */ + I2C_InitStruct->I2C_Mode = I2C_Mode_I2C; + /* Initialize the I2C_DutyCycle member */ + I2C_InitStruct->I2C_DutyCycle = I2C_DutyCycle_2; + /* Initialize the I2C_OwnAddress1 member */ + I2C_InitStruct->I2C_OwnAddress1 = 0; + /* Initialize the I2C_Ack member */ + I2C_InitStruct->I2C_Ack = I2C_Ack_Disable; + /* Initialize the I2C_AcknowledgedAddress member */ + I2C_InitStruct->I2C_AcknowledgedAddress = I2C_AcknowledgedAddress_7bit; +} + +/** + * @brief Enables or disables the specified I2C peripheral. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2Cx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_Cmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C peripheral */ + I2Cx->CR1 |= I2C_CR1_PE; + } + else + { + /* Disable the selected I2C peripheral */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_PE); + } +} + +/** + * @brief Generates I2Cx communication START condition. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C START condition generation. + * This parameter can be: ENABLE or DISABLE. + * @retval None. + */ +void I2C_GenerateSTART(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Generate a START condition */ + I2Cx->CR1 |= I2C_CR1_START; + } + else + { + /* Disable the START condition generation */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_START); + } +} + +/** + * @brief Generates I2Cx communication STOP condition. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C STOP condition generation. + * This parameter can be: ENABLE or DISABLE. + * @retval None. + */ +void I2C_GenerateSTOP(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Generate a STOP condition */ + I2Cx->CR1 |= I2C_CR1_STOP; + } + else + { + /* Disable the STOP condition generation */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_STOP); + } +} + +/** + * @brief Transmits the address byte to select the slave device. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param Address: specifies the slave address which will be transmitted + * @param I2C_Direction: specifies whether the I2C device will be a Transmitter + * or a Receiver. + * This parameter can be one of the following values + * @arg I2C_Direction_Transmitter: Transmitter mode + * @arg I2C_Direction_Receiver: Receiver mode + * @retval None. + */ +void I2C_Send7bitAddress(I2C_TypeDef* I2Cx, uint8_t Address, uint8_t I2C_Direction) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_DIRECTION(I2C_Direction)); + /* Test on the direction to set/reset the read/write bit */ + if (I2C_Direction != I2C_Direction_Transmitter) + { + /* Set the address bit0 for read */ + Address |= I2C_OAR1_ADD0; + } + else + { + /* Reset the address bit0 for write */ + Address &= (uint8_t)~((uint8_t)I2C_OAR1_ADD0); + } + /* Send the address */ + I2Cx->DR = Address; +} + +/** + * @brief Enables or disables the specified I2C acknowledge feature. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C Acknowledgement. + * This parameter can be: ENABLE or DISABLE. + * @retval None. + */ +void I2C_AcknowledgeConfig(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the acknowledgement */ + I2Cx->CR1 |= I2C_CR1_ACK; + } + else + { + /* Disable the acknowledgement */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_ACK); + } +} + +/** + * @brief Configures the specified I2C own address2. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param Address: specifies the 7bit I2C own address2. + * @retval None. + */ +void I2C_OwnAddress2Config(I2C_TypeDef* I2Cx, uint8_t Address) +{ + uint16_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + + /* Get the old register value */ + tmpreg = I2Cx->OAR2; + + /* Reset I2Cx Own address2 bit [7:1] */ + tmpreg &= (uint16_t)~((uint16_t)I2C_OAR2_ADD2); + + /* Set I2Cx Own address2 */ + tmpreg |= (uint16_t)((uint16_t)Address & (uint16_t)0x00FE); + + /* Store the new register value */ + I2Cx->OAR2 = tmpreg; +} + +/** + * @brief Enables or disables the specified I2C dual addressing mode. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C dual addressing mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_DualAddressCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable dual addressing mode */ + I2Cx->OAR2 |= I2C_OAR2_ENDUAL; + } + else + { + /* Disable dual addressing mode */ + I2Cx->OAR2 &= (uint16_t)~((uint16_t)I2C_OAR2_ENDUAL); + } +} + +/** + * @brief Enables or disables the specified I2C general call feature. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C General call. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_GeneralCallCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable generall call */ + I2Cx->CR1 |= I2C_CR1_ENGC; + } + else + { + /* Disable generall call */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_ENGC); + } +} + +/** + * @brief Enables or disables the specified I2C software reset. + * @note When software reset is enabled, the I2C IOs are released (this can + * be useful to recover from bus errors). + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C software reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_SoftwareResetCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Peripheral under reset */ + I2Cx->CR1 |= I2C_CR1_SWRST; + } + else + { + /* Peripheral not under reset */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_SWRST); + } +} + +/** + * @brief Enables or disables the specified I2C Clock stretching. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2Cx Clock stretching. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_StretchClockCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState == DISABLE) + { + /* Enable the selected I2C Clock stretching */ + I2Cx->CR1 |= I2C_CR1_NOSTRETCH; + } + else + { + /* Disable the selected I2C Clock stretching */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_NOSTRETCH); + } +} + +/** + * @brief Selects the specified I2C fast mode duty cycle. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_DutyCycle: specifies the fast mode duty cycle. + * This parameter can be one of the following values: + * @arg I2C_DutyCycle_2: I2C fast mode Tlow/Thigh = 2 + * @arg I2C_DutyCycle_16_9: I2C fast mode Tlow/Thigh = 16/9 + * @retval None + */ +void I2C_FastModeDutyCycleConfig(I2C_TypeDef* I2Cx, uint16_t I2C_DutyCycle) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_DUTY_CYCLE(I2C_DutyCycle)); + if (I2C_DutyCycle != I2C_DutyCycle_16_9) + { + /* I2C fast mode Tlow/Thigh=2 */ + I2Cx->CCR &= I2C_DutyCycle_2; + } + else + { + /* I2C fast mode Tlow/Thigh=16/9 */ + I2Cx->CCR |= I2C_DutyCycle_16_9; + } +} + +/** + * @brief Selects the specified I2C NACK position in master receiver mode. + * @note This function is useful in I2C Master Receiver mode when the number + * of data to be received is equal to 2. In this case, this function + * should be called (with parameter I2C_NACKPosition_Next) before data + * reception starts,as described in the 2-byte reception procedure + * recommended in Reference Manual in Section: Master receiver. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_NACKPosition: specifies the NACK position. + * This parameter can be one of the following values: + * @arg I2C_NACKPosition_Next: indicates that the next byte will be the last + * received byte. + * @arg I2C_NACKPosition_Current: indicates that current byte is the last + * received byte. + * + * @note This function configures the same bit (POS) as I2C_PECPositionConfig() + * but is intended to be used in I2C mode while I2C_PECPositionConfig() + * is intended to used in SMBUS mode. + * + * @retval None + */ +void I2C_NACKPositionConfig(I2C_TypeDef* I2Cx, uint16_t I2C_NACKPosition) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_NACK_POSITION(I2C_NACKPosition)); + + /* Check the input parameter */ + if (I2C_NACKPosition == I2C_NACKPosition_Next) + { + /* Next byte in shift register is the last received byte */ + I2Cx->CR1 |= I2C_NACKPosition_Next; + } + else + { + /* Current byte in shift register is the last received byte */ + I2Cx->CR1 &= I2C_NACKPosition_Current; + } +} + +/** + * @brief Drives the SMBusAlert pin high or low for the specified I2C. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_SMBusAlert: specifies SMBAlert pin level. + * This parameter can be one of the following values: + * @arg I2C_SMBusAlert_Low: SMBAlert pin driven low + * @arg I2C_SMBusAlert_High: SMBAlert pin driven high + * @retval None + */ +void I2C_SMBusAlertConfig(I2C_TypeDef* I2Cx, uint16_t I2C_SMBusAlert) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_SMBUS_ALERT(I2C_SMBusAlert)); + if (I2C_SMBusAlert == I2C_SMBusAlert_Low) + { + /* Drive the SMBusAlert pin Low */ + I2Cx->CR1 |= I2C_SMBusAlert_Low; + } + else + { + /* Drive the SMBusAlert pin High */ + I2Cx->CR1 &= I2C_SMBusAlert_High; + } +} + +/** + * @brief Enables or disables the specified I2C ARP. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2Cx ARP. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_ARPCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C ARP */ + I2Cx->CR1 |= I2C_CR1_ENARP; + } + else + { + /* Disable the selected I2C ARP */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_ENARP); + } +} +/** + * @} + */ + +/** @defgroup I2C_Group2 Data transfers functions + * @brief Data transfers functions + * +@verbatim + =============================================================================== + Data transfers functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Sends a data byte through the I2Cx peripheral. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param Data: Byte to be transmitted.. + * @retval None + */ +void I2C_SendData(I2C_TypeDef* I2Cx, uint8_t Data) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + /* Write in the DR register the data to be sent */ + I2Cx->DR = Data; +} + +/** + * @brief Returns the most recent received data by the I2Cx peripheral. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @retval The value of the received data. + */ +uint8_t I2C_ReceiveData(I2C_TypeDef* I2Cx) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + /* Return the data in the DR register */ + return (uint8_t)I2Cx->DR; +} + +/** + * @} + */ + +/** @defgroup I2C_Group3 PEC management functions + * @brief PEC management functions + * +@verbatim + =============================================================================== + PEC management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified I2C PEC transfer. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C PEC transmission. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_TransmitPEC(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C PEC transmission */ + I2Cx->CR1 |= I2C_CR1_PEC; + } + else + { + /* Disable the selected I2C PEC transmission */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_PEC); + } +} + +/** + * @brief Selects the specified I2C PEC position. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_PECPosition: specifies the PEC position. + * This parameter can be one of the following values: + * @arg I2C_PECPosition_Next: indicates that the next byte is PEC + * @arg I2C_PECPosition_Current: indicates that current byte is PEC + * + * @note This function configures the same bit (POS) as I2C_NACKPositionConfig() + * but is intended to be used in SMBUS mode while I2C_NACKPositionConfig() + * is intended to used in I2C mode. + * + * @retval None + */ +void I2C_PECPositionConfig(I2C_TypeDef* I2Cx, uint16_t I2C_PECPosition) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_PEC_POSITION(I2C_PECPosition)); + if (I2C_PECPosition == I2C_PECPosition_Next) + { + /* Next byte in shift register is PEC */ + I2Cx->CR1 |= I2C_PECPosition_Next; + } + else + { + /* Current byte in shift register is PEC */ + I2Cx->CR1 &= I2C_PECPosition_Current; + } +} + +/** + * @brief Enables or disables the PEC value calculation of the transferred bytes. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2Cx PEC value calculation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_CalculatePEC(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C PEC calculation */ + I2Cx->CR1 |= I2C_CR1_ENPEC; + } + else + { + /* Disable the selected I2C PEC calculation */ + I2Cx->CR1 &= (uint16_t)~((uint16_t)I2C_CR1_ENPEC); + } +} + +/** + * @brief Returns the PEC value for the specified I2C. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @retval The PEC value. + */ +uint8_t I2C_GetPEC(I2C_TypeDef* I2Cx) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + /* Return the selected I2C PEC value */ + return ((I2Cx->SR2) >> 8); +} + +/** + * @} + */ + +/** @defgroup I2C_Group4 DMA transfers management functions + * @brief DMA transfers management functions + * +@verbatim + =============================================================================== + DMA transfers management functions + =============================================================================== + This section provides functions allowing to configure the I2C DMA channels + requests. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified I2C DMA requests. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C DMA transfer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_DMACmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected I2C DMA requests */ + I2Cx->CR2 |= I2C_CR2_DMAEN; + } + else + { + /* Disable the selected I2C DMA requests */ + I2Cx->CR2 &= (uint16_t)~((uint16_t)I2C_CR2_DMAEN); + } +} + +/** + * @brief Specifies that the next DMA transfer is the last one. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param NewState: new state of the I2C DMA last transfer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_DMALastTransferCmd(I2C_TypeDef* I2Cx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Next DMA transfer is the last transfer */ + I2Cx->CR2 |= I2C_CR2_LAST; + } + else + { + /* Next DMA transfer is not the last transfer */ + I2Cx->CR2 &= (uint16_t)~((uint16_t)I2C_CR2_LAST); + } +} + +/** + * @} + */ + +/** @defgroup I2C_Group5 Interrupts events and flags management functions + * @brief Interrupts, events and flags management functions + * +@verbatim + =============================================================================== + Interrupts, events and flags management functions + =============================================================================== + This section provides functions allowing to configure the I2C Interrupts + sources and check or clear the flags or pending bits status. + The user should identify which mode will be used in his application to manage + the communication: Polling mode, Interrupt mode or DMA mode. + + =============================================================================== + I2C State Monitoring Functions + =============================================================================== + This I2C driver provides three different ways for I2C state monitoring + depending on the application requirements and constraints: + + + 1. Basic state monitoring (Using I2C_CheckEvent() function) + ----------------------------------------------------------- + It compares the status registers (SR1 and SR2) content to a given event + (can be the combination of one or more flags). + It returns SUCCESS if the current status includes the given flags + and returns ERROR if one or more flags are missing in the current status. + + - When to use + - This function is suitable for most applications as well as for startup + activity since the events are fully described in the product reference + manual (RM0033). + - It is also suitable for users who need to define their own events. + + - Limitations + - If an error occurs (ie. error flags are set besides to the monitored + flags), the I2C_CheckEvent() function may return SUCCESS despite + the communication hold or corrupted real state. + In this case, it is advised to use error interrupts to monitor + the error events and handle them in the interrupt IRQ handler. + + @note + For error management, it is advised to use the following functions: + - I2C_ITConfig() to configure and enable the error interrupts (I2C_IT_ERR). + - I2Cx_ER_IRQHandler() which is called when the error interrupt occurs. + Where x is the peripheral instance (I2C1, I2C2 ...) + - I2C_GetFlagStatus() or I2C_GetITStatus() to be called into the + I2Cx_ER_IRQHandler() function in order to determine which error occurred. + - I2C_ClearFlag() or I2C_ClearITPendingBit() and/or I2C_SoftwareResetCmd() + and/or I2C_GenerateStop() in order to clear the error flag and source + and return to correct communication status. + + + 2. Advanced state monitoring (Using the function I2C_GetLastEvent()) + -------------------------------------------------------------------- + Using the function I2C_GetLastEvent() which returns the image of both status + registers in a single word (uint32_t) (Status Register 2 value is shifted left + by 16 bits and concatenated to Status Register 1). + + - When to use + - This function is suitable for the same applications above but it + allows to overcome the mentioned limitation of I2C_GetFlagStatus() + function. + - The returned value could be compared to events already defined in + the library (stm32f2xx_i2c.h) or to custom values defined by user. + This function is suitable when multiple flags are monitored at the + same time. + - At the opposite of I2C_CheckEvent() function, this function allows + user to choose when an event is accepted (when all events flags are + set and no other flags are set or just when the needed flags are set + like I2C_CheckEvent() function. + + - Limitations + - User may need to define his own events. + - Same remark concerning the error management is applicable for this + function if user decides to check only regular communication flags + (and ignores error flags). + + + 3. Flag-based state monitoring (Using the function I2C_GetFlagStatus()) + ----------------------------------------------------------------------- + + Using the function I2C_GetFlagStatus() which simply returns the status of + one single flag (ie. I2C_FLAG_RXNE ...). + + - When to use + - This function could be used for specific applications or in debug + phase. + - It is suitable when only one flag checking is needed (most I2C + events are monitored through multiple flags). + - Limitations: + - When calling this function, the Status register is accessed. + Some flags are cleared when the status register is accessed. + So checking the status of one Flag, may clear other ones. + - Function may need to be called twice or more in order to monitor + one single event. + + For detailed description of Events, please refer to section I2C_Events in + stm32f2xx_i2c.h file. + +@endverbatim + * @{ + */ + +/** + * @brief Reads the specified I2C register and returns its value. + * @param I2C_Register: specifies the register to read. + * This parameter can be one of the following values: + * @arg I2C_Register_CR1: CR1 register. + * @arg I2C_Register_CR2: CR2 register. + * @arg I2C_Register_OAR1: OAR1 register. + * @arg I2C_Register_OAR2: OAR2 register. + * @arg I2C_Register_DR: DR register. + * @arg I2C_Register_SR1: SR1 register. + * @arg I2C_Register_SR2: SR2 register. + * @arg I2C_Register_CCR: CCR register. + * @arg I2C_Register_TRISE: TRISE register. + * @retval The value of the read register. + */ +uint16_t I2C_ReadRegister(I2C_TypeDef* I2Cx, uint8_t I2C_Register) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_REGISTER(I2C_Register)); + + tmp = (uint32_t) I2Cx; + tmp += I2C_Register; + + /* Return the selected register value */ + return (*(__IO uint16_t *) tmp); +} + +/** + * @brief Enables or disables the specified I2C interrupts. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_IT: specifies the I2C interrupts sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg I2C_IT_BUF: Buffer interrupt mask + * @arg I2C_IT_EVT: Event interrupt mask + * @arg I2C_IT_ERR: Error interrupt mask + * @param NewState: new state of the specified I2C interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2C_ITConfig(I2C_TypeDef* I2Cx, uint16_t I2C_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_I2C_CONFIG_IT(I2C_IT)); + + if (NewState != DISABLE) + { + /* Enable the selected I2C interrupts */ + I2Cx->CR2 |= I2C_IT; + } + else + { + /* Disable the selected I2C interrupts */ + I2Cx->CR2 &= (uint16_t)~I2C_IT; + } +} + +/* + =============================================================================== + 1. Basic state monitoring + =============================================================================== + */ + +/** + * @brief Checks whether the last I2Cx Event is equal to the one passed + * as parameter. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_EVENT: specifies the event to be checked. + * This parameter can be one of the following values: + * @arg I2C_EVENT_SLAVE_TRANSMITTER_ADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_RECEIVER_ADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_TRANSMITTER_SECONDADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_RECEIVER_SECONDADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_GENERALCALLADDRESS_MATCHED: EV1 + * @arg I2C_EVENT_SLAVE_BYTE_RECEIVED: EV2 + * @arg (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_DUALF): EV2 + * @arg (I2C_EVENT_SLAVE_BYTE_RECEIVED | I2C_FLAG_GENCALL): EV2 + * @arg I2C_EVENT_SLAVE_BYTE_TRANSMITTED: EV3 + * @arg (I2C_EVENT_SLAVE_BYTE_TRANSMITTED | I2C_FLAG_DUALF): EV3 + * @arg (I2C_EVENT_SLAVE_BYTE_TRANSMITTED | I2C_FLAG_GENCALL): EV3 + * @arg I2C_EVENT_SLAVE_ACK_FAILURE: EV3_2 + * @arg I2C_EVENT_SLAVE_STOP_DETECTED: EV4 + * @arg I2C_EVENT_MASTER_MODE_SELECT: EV5 + * @arg I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED: EV6 + * @arg I2C_EVENT_MASTER_RECEIVER_MODE_SELECTED: EV6 + * @arg I2C_EVENT_MASTER_BYTE_RECEIVED: EV7 + * @arg I2C_EVENT_MASTER_BYTE_TRANSMITTING: EV8 + * @arg I2C_EVENT_MASTER_BYTE_TRANSMITTED: EV8_2 + * @arg I2C_EVENT_MASTER_MODE_ADDRESS10: EV9 + * + * @note For detailed description of Events, please refer to section I2C_Events + * in stm32f2xx_i2c.h file. + * + * @retval An ErrorStatus enumeration value: + * - SUCCESS: Last event is equal to the I2C_EVENT + * - ERROR: Last event is different from the I2C_EVENT + */ +ErrorStatus I2C_CheckEvent(I2C_TypeDef* I2Cx, uint32_t I2C_EVENT) +{ + uint32_t lastevent = 0; + uint32_t flag1 = 0, flag2 = 0; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_EVENT(I2C_EVENT)); + + /* Read the I2Cx status register */ + flag1 = I2Cx->SR1; + flag2 = I2Cx->SR2; + flag2 = flag2 << 16; + + /* Get the last event value from I2C status register */ + lastevent = (flag1 | flag2) & FLAG_MASK; + + /* Check whether the last event contains the I2C_EVENT */ + if ((lastevent & I2C_EVENT) == I2C_EVENT) + { + /* SUCCESS: last event is equal to I2C_EVENT */ + status = SUCCESS; + } + else + { + /* ERROR: last event is different from I2C_EVENT */ + status = ERROR; + } + /* Return status */ + return status; +} + +/* + =============================================================================== + 2. Advanced state monitoring + =============================================================================== + */ + +/** + * @brief Returns the last I2Cx Event. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * + * @note For detailed description of Events, please refer to section I2C_Events + * in stm32f2xx_i2c.h file. + * + * @retval The last event + */ +uint32_t I2C_GetLastEvent(I2C_TypeDef* I2Cx) +{ + uint32_t lastevent = 0; + uint32_t flag1 = 0, flag2 = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + + /* Read the I2Cx status register */ + flag1 = I2Cx->SR1; + flag2 = I2Cx->SR2; + flag2 = flag2 << 16; + + /* Get the last event value from I2C status register */ + lastevent = (flag1 | flag2) & FLAG_MASK; + + /* Return status */ + return lastevent; +} + +/* + =============================================================================== + 3. Flag-based state monitoring + =============================================================================== + */ + +/** + * @brief Checks whether the specified I2C flag is set or not. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg I2C_FLAG_DUALF: Dual flag (Slave mode) + * @arg I2C_FLAG_SMBHOST: SMBus host header (Slave mode) + * @arg I2C_FLAG_SMBDEFAULT: SMBus default header (Slave mode) + * @arg I2C_FLAG_GENCALL: General call header flag (Slave mode) + * @arg I2C_FLAG_TRA: Transmitter/Receiver flag + * @arg I2C_FLAG_BUSY: Bus busy flag + * @arg I2C_FLAG_MSL: Master/Slave flag + * @arg I2C_FLAG_SMBALERT: SMBus Alert flag + * @arg I2C_FLAG_TIMEOUT: Timeout or Tlow error flag + * @arg I2C_FLAG_PECERR: PEC error in reception flag + * @arg I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode) + * @arg I2C_FLAG_AF: Acknowledge failure flag + * @arg I2C_FLAG_ARLO: Arbitration lost flag (Master mode) + * @arg I2C_FLAG_BERR: Bus error flag + * @arg I2C_FLAG_TXE: Data register empty flag (Transmitter) + * @arg I2C_FLAG_RXNE: Data register not empty (Receiver) flag + * @arg I2C_FLAG_STOPF: Stop detection flag (Slave mode) + * @arg I2C_FLAG_ADD10: 10-bit header sent flag (Master mode) + * @arg I2C_FLAG_BTF: Byte transfer finished flag + * @arg I2C_FLAG_ADDR: Address sent flag (Master mode) "ADSL" + * Address matched flag (Slave mode)"ENDAD" + * @arg I2C_FLAG_SB: Start bit flag (Master mode) + * @retval The new state of I2C_FLAG (SET or RESET). + */ +FlagStatus I2C_GetFlagStatus(I2C_TypeDef* I2Cx, uint32_t I2C_FLAG) +{ + FlagStatus bitstatus = RESET; + __IO uint32_t i2creg = 0, i2cxbase = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_GET_FLAG(I2C_FLAG)); + + /* Get the I2Cx peripheral base address */ + i2cxbase = (uint32_t)I2Cx; + + /* Read flag register index */ + i2creg = I2C_FLAG >> 28; + + /* Get bit[23:0] of the flag */ + I2C_FLAG &= FLAG_MASK; + + if(i2creg != 0) + { + /* Get the I2Cx SR1 register address */ + i2cxbase += 0x14; + } + else + { + /* Flag in I2Cx SR2 Register */ + I2C_FLAG = (uint32_t)(I2C_FLAG >> 16); + /* Get the I2Cx SR2 register address */ + i2cxbase += 0x18; + } + + if(((*(__IO uint32_t *)i2cxbase) & I2C_FLAG) != (uint32_t)RESET) + { + /* I2C_FLAG is set */ + bitstatus = SET; + } + else + { + /* I2C_FLAG is reset */ + bitstatus = RESET; + } + + /* Return the I2C_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the I2Cx's pending flags. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg I2C_FLAG_SMBALERT: SMBus Alert flag + * @arg I2C_FLAG_TIMEOUT: Timeout or Tlow error flag + * @arg I2C_FLAG_PECERR: PEC error in reception flag + * @arg I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode) + * @arg I2C_FLAG_AF: Acknowledge failure flag + * @arg I2C_FLAG_ARLO: Arbitration lost flag (Master mode) + * @arg I2C_FLAG_BERR: Bus error flag + * + * @note STOPF (STOP detection) is cleared by software sequence: a read operation + * to I2C_SR1 register (I2C_GetFlagStatus()) followed by a write operation + * to I2C_CR1 register (I2C_Cmd() to re-enable the I2C peripheral). + * @note ADD10 (10-bit header sent) is cleared by software sequence: a read + * operation to I2C_SR1 (I2C_GetFlagStatus()) followed by writing the + * second byte of the address in DR register. + * @note BTF (Byte Transfer Finished) is cleared by software sequence: a read + * operation to I2C_SR1 register (I2C_GetFlagStatus()) followed by a + * read/write to I2C_DR register (I2C_SendData()). + * @note ADDR (Address sent) is cleared by software sequence: a read operation to + * I2C_SR1 register (I2C_GetFlagStatus()) followed by a read operation to + * I2C_SR2 register ((void)(I2Cx->SR2)). + * @note SB (Start Bit) is cleared software sequence: a read operation to I2C_SR1 + * register (I2C_GetFlagStatus()) followed by a write operation to I2C_DR + * register (I2C_SendData()). + * + * @retval None + */ +void I2C_ClearFlag(I2C_TypeDef* I2Cx, uint32_t I2C_FLAG) +{ + uint32_t flagpos = 0; + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_CLEAR_FLAG(I2C_FLAG)); + /* Get the I2C flag position */ + flagpos = I2C_FLAG & FLAG_MASK; + /* Clear the selected I2C flag */ + I2Cx->SR1 = (uint16_t)~flagpos; +} + +/** + * @brief Checks whether the specified I2C interrupt has occurred or not. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_IT: specifies the interrupt source to check. + * This parameter can be one of the following values: + * @arg I2C_IT_SMBALERT: SMBus Alert flag + * @arg I2C_IT_TIMEOUT: Timeout or Tlow error flag + * @arg I2C_IT_PECERR: PEC error in reception flag + * @arg I2C_IT_OVR: Overrun/Underrun flag (Slave mode) + * @arg I2C_IT_AF: Acknowledge failure flag + * @arg I2C_IT_ARLO: Arbitration lost flag (Master mode) + * @arg I2C_IT_BERR: Bus error flag + * @arg I2C_IT_TXE: Data register empty flag (Transmitter) + * @arg I2C_IT_RXNE: Data register not empty (Receiver) flag + * @arg I2C_IT_STOPF: Stop detection flag (Slave mode) + * @arg I2C_IT_ADD10: 10-bit header sent flag (Master mode) + * @arg I2C_IT_BTF: Byte transfer finished flag + * @arg I2C_IT_ADDR: Address sent flag (Master mode) "ADSL" + * Address matched flag (Slave mode)"ENDAD" + * @arg I2C_IT_SB: Start bit flag (Master mode) + * @retval The new state of I2C_IT (SET or RESET). + */ +ITStatus I2C_GetITStatus(I2C_TypeDef* I2Cx, uint32_t I2C_IT) +{ + ITStatus bitstatus = RESET; + uint32_t enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_GET_IT(I2C_IT)); + + /* Check if the interrupt source is enabled or not */ + enablestatus = (uint32_t)(((I2C_IT & ITEN_MASK) >> 16) & (I2Cx->CR2)) ; + + /* Get bit[23:0] of the flag */ + I2C_IT &= FLAG_MASK; + + /* Check the status of the specified I2C flag */ + if (((I2Cx->SR1 & I2C_IT) != (uint32_t)RESET) && enablestatus) + { + /* I2C_IT is set */ + bitstatus = SET; + } + else + { + /* I2C_IT is reset */ + bitstatus = RESET; + } + /* Return the I2C_IT status */ + return bitstatus; +} + +/** + * @brief Clears the I2Cx's interrupt pending bits. + * @param I2Cx: where x can be 1, 2 or 3 to select the I2C peripheral. + * @param I2C_IT: specifies the interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg I2C_IT_SMBALERT: SMBus Alert interrupt + * @arg I2C_IT_TIMEOUT: Timeout or Tlow error interrupt + * @arg I2C_IT_PECERR: PEC error in reception interrupt + * @arg I2C_IT_OVR: Overrun/Underrun interrupt (Slave mode) + * @arg I2C_IT_AF: Acknowledge failure interrupt + * @arg I2C_IT_ARLO: Arbitration lost interrupt (Master mode) + * @arg I2C_IT_BERR: Bus error interrupt + * + * @note STOPF (STOP detection) is cleared by software sequence: a read operation + * to I2C_SR1 register (I2C_GetITStatus()) followed by a write operation to + * I2C_CR1 register (I2C_Cmd() to re-enable the I2C peripheral). + * @note ADD10 (10-bit header sent) is cleared by software sequence: a read + * operation to I2C_SR1 (I2C_GetITStatus()) followed by writing the second + * byte of the address in I2C_DR register. + * @note BTF (Byte Transfer Finished) is cleared by software sequence: a read + * operation to I2C_SR1 register (I2C_GetITStatus()) followed by a + * read/write to I2C_DR register (I2C_SendData()). + * @note ADDR (Address sent) is cleared by software sequence: a read operation to + * I2C_SR1 register (I2C_GetITStatus()) followed by a read operation to + * I2C_SR2 register ((void)(I2Cx->SR2)). + * @note SB (Start Bit) is cleared by software sequence: a read operation to + * I2C_SR1 register (I2C_GetITStatus()) followed by a write operation to + * I2C_DR register (I2C_SendData()). + * @retval None + */ +void I2C_ClearITPendingBit(I2C_TypeDef* I2Cx, uint32_t I2C_IT) +{ + uint32_t flagpos = 0; + /* Check the parameters */ + assert_param(IS_I2C_ALL_PERIPH(I2Cx)); + assert_param(IS_I2C_CLEAR_IT(I2C_IT)); + + /* Get the I2C flag position */ + flagpos = I2C_IT & FLAG_MASK; + + /* Clear the selected I2C flag */ + I2Cx->SR1 = (uint16_t)~flagpos; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_iwdg.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_iwdg.c new file mode 100644 index 00000000..de89eac0 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_iwdg.c @@ -0,0 +1,269 @@ +/** + ****************************************************************************** + * @file stm32f2xx_iwdg.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Independent watchdog (IWDG) peripheral: + * - Prescaler and Counter configuration + * - IWDG activation + * - Flag management + * + * @verbatim + * + * =================================================================== + * IWDG features + * =================================================================== + * + * The IWDG can be started by either software or hardware (configurable + * through option byte). + * + * The IWDG is clocked by its own dedicated low-speed clock (LSI) and + * thus stays active even if the main clock fails. + * Once the IWDG is started, the LSI is forced ON and cannot be disabled + * (LSI cannot be disabled too), and the counter starts counting down from + * the reset value of 0xFFF. When it reaches the end of count value (0x000) + * a system reset is generated. + * The IWDG counter should be reloaded at regular intervals to prevent + * an MCU reset. + * + * The IWDG is implemented in the VDD voltage domain that is still functional + * in STOP and STANDBY mode (IWDG reset can wake-up from STANDBY). + * + * IWDGRST flag in RCC_CSR register can be used to inform when a IWDG + * reset occurs. + * + * Min-max timeout value @32KHz (LSI): ~125us / ~32.7s + * The IWDG timeout may vary due to LSI frequency dispersion. STM32F2xx + * devices provide the capability to measure the LSI frequency (LSI clock + * connected internally to TIM5 CH4 input capture). The measured value + * can be used to have an IWDG timeout with an acceptable accuracy. + * For more information, please refer to the STM32F2xx Reference manual + * + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable write access to IWDG_PR and IWDG_RLR registers using + * IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable) function + * + * 2. Configure the IWDG prescaler using IWDG_SetPrescaler() function + * + * 3. Configure the IWDG counter value using IWDG_SetReload() function. + * This value will be loaded in the IWDG counter each time the counter + * is reloaded, then the IWDG will start counting down from this value. + * + * 4. Start the IWDG using IWDG_Enable() function, when the IWDG is used + * in software mode (no need to enable the LSI, it will be enabled + * by hardware) + * + * 5. Then the application program must reload the IWDG counter at regular + * intervals during normal operation to prevent an MCU reset, using + * IWDG_ReloadCounter() function. + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_iwdg.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup IWDG + * @brief IWDG driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* KR register bit mask */ +#define KR_KEY_RELOAD ((uint16_t)0xAAAA) +#define KR_KEY_ENABLE ((uint16_t)0xCCCC) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup IWDG_Private_Functions + * @{ + */ + +/** @defgroup IWDG_Group1 Prescaler and Counter configuration functions + * @brief Prescaler and Counter configuration functions + * +@verbatim + =============================================================================== + Prescaler and Counter configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables write access to IWDG_PR and IWDG_RLR registers. + * @param IWDG_WriteAccess: new state of write access to IWDG_PR and IWDG_RLR registers. + * This parameter can be one of the following values: + * @arg IWDG_WriteAccess_Enable: Enable write access to IWDG_PR and IWDG_RLR registers + * @arg IWDG_WriteAccess_Disable: Disable write access to IWDG_PR and IWDG_RLR registers + * @retval None + */ +void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess) +{ + /* Check the parameters */ + assert_param(IS_IWDG_WRITE_ACCESS(IWDG_WriteAccess)); + IWDG->KR = IWDG_WriteAccess; +} + +/** + * @brief Sets IWDG Prescaler value. + * @param IWDG_Prescaler: specifies the IWDG Prescaler value. + * This parameter can be one of the following values: + * @arg IWDG_Prescaler_4: IWDG prescaler set to 4 + * @arg IWDG_Prescaler_8: IWDG prescaler set to 8 + * @arg IWDG_Prescaler_16: IWDG prescaler set to 16 + * @arg IWDG_Prescaler_32: IWDG prescaler set to 32 + * @arg IWDG_Prescaler_64: IWDG prescaler set to 64 + * @arg IWDG_Prescaler_128: IWDG prescaler set to 128 + * @arg IWDG_Prescaler_256: IWDG prescaler set to 256 + * @retval None + */ +void IWDG_SetPrescaler(uint8_t IWDG_Prescaler) +{ + /* Check the parameters */ + assert_param(IS_IWDG_PRESCALER(IWDG_Prescaler)); + IWDG->PR = IWDG_Prescaler; +} + +/** + * @brief Sets IWDG Reload value. + * @param Reload: specifies the IWDG Reload value. + * This parameter must be a number between 0 and 0x0FFF. + * @retval None + */ +void IWDG_SetReload(uint16_t Reload) +{ + /* Check the parameters */ + assert_param(IS_IWDG_RELOAD(Reload)); + IWDG->RLR = Reload; +} + +/** + * @brief Reloads IWDG counter with value defined in the reload register + * (write access to IWDG_PR and IWDG_RLR registers disabled). + * @param None + * @retval None + */ +void IWDG_ReloadCounter(void) +{ + IWDG->KR = KR_KEY_RELOAD; +} + +/** + * @} + */ + +/** @defgroup IWDG_Group2 IWDG activation function + * @brief IWDG activation function + * +@verbatim + =============================================================================== + IWDG activation function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled). + * @param None + * @retval None + */ +void IWDG_Enable(void) +{ + IWDG->KR = KR_KEY_ENABLE; +} + +/** + * @} + */ + +/** @defgroup IWDG_Group3 Flag management function + * @brief Flag management function + * +@verbatim + =============================================================================== + Flag management function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Checks whether the specified IWDG flag is set or not. + * @param IWDG_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg IWDG_FLAG_PVU: Prescaler Value Update on going + * @arg IWDG_FLAG_RVU: Reload Value Update on going + * @retval The new state of IWDG_FLAG (SET or RESET). + */ +FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_IWDG_FLAG(IWDG_FLAG)); + if ((IWDG->SR & IWDG_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the flag status */ + return bitstatus; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_pwr.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_pwr.c new file mode 100644 index 00000000..1c84cf75 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_pwr.c @@ -0,0 +1,620 @@ +/** + ****************************************************************************** + * @file stm32f2xx_pwr.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Power Controller (PWR) peripheral: + * - Backup Domain Access + * - PVD configuration + * - WakeUp pin configuration + * - Backup Regulator configuration + * - FLASH Power Down configuration + * - Low Power modes configuration + * - Flags management + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_pwr.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup PWR + * @brief PWR driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* --------- PWR registers bit address in the alias region ---------- */ +#define PWR_OFFSET (PWR_BASE - PERIPH_BASE) + +/* --- CR Register ---*/ + +/* Alias word address of DBP bit */ +#define CR_OFFSET (PWR_OFFSET + 0x00) +#define DBP_BitNumber 0x08 +#define CR_DBP_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (DBP_BitNumber * 4)) + +/* Alias word address of PVDE bit */ +#define PVDE_BitNumber 0x04 +#define CR_PVDE_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PVDE_BitNumber * 4)) + +/* Alias word address of FPDS bit */ +#define FPDS_BitNumber 0x09 +#define CR_FPDS_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (FPDS_BitNumber * 4)) + +/* --- CSR Register ---*/ + +/* Alias word address of EWUP bit */ +#define CSR_OFFSET (PWR_OFFSET + 0x04) +#define EWUP_BitNumber 0x08 +#define CSR_EWUP_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (EWUP_BitNumber * 4)) + +/* Alias word address of BRE bit */ +#define BRE_BitNumber 0x09 +#define CSR_BRE_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (BRE_BitNumber * 4)) + +/* ------------------ PWR registers bit mask ------------------------ */ + +/* CR register bit mask */ +#define CR_DS_MASK ((uint32_t)0xFFFFFFFC) +#define CR_PLS_MASK ((uint32_t)0xFFFFFF1F) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup PWR_Private_Functions + * @{ + */ + +/** @defgroup PWR_Group1 Backup Domain Access function + * @brief Backup Domain Access function + * +@verbatim + =============================================================================== + Backup Domain Access function + =============================================================================== + + After reset, the backup domain (RTC registers, RTC backup data + registers and backup SRAM) is protected against possible unwanted + write accesses. + To enable access to the RTC Domain and RTC registers, proceed as follows: + - Enable the Power Controller (PWR) APB1 interface clock using the + RCC_APB1PeriphClockCmd() function. + - Enable access to RTC domain using the PWR_BackupAccessCmd() function. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the PWR peripheral registers to their default reset values. + * @param None + * @retval None + */ +void PWR_DeInit(void) +{ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, DISABLE); +} + +/** + * @brief Enables or disables access to the backup domain (RTC registers, RTC + * backup data registers and backup SRAM). + * @note If the HSE divided by 2, 3, ..31 is used as the RTC clock, the + * Backup Domain Access should be kept enabled. + * @param NewState: new state of the access to the backup domain. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_BackupAccessCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CR_DBP_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group2 PVD configuration functions + * @brief PVD configuration functions + * +@verbatim + =============================================================================== + PVD configuration functions + =============================================================================== + + - The PVD is used to monitor the VDD power supply by comparing it to a threshold + selected by the PVD Level (PLS[2:0] bits in the PWR_CR). + - A PVDO flag is available to indicate if VDD/VDDA is higher or lower than the + PVD threshold. This event is internally connected to the EXTI line16 + and can generate an interrupt if enabled through the EXTI registers. + - The PVD is stopped in Standby mode. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the voltage threshold detected by the Power Voltage Detector(PVD). + * @param PWR_PVDLevel: specifies the PVD detection level + * This parameter can be one of the following values: + * @arg PWR_PVDLevel_0 + * @arg PWR_PVDLevel_1 + * @arg PWR_PVDLevel_2 + * @arg PWR_PVDLevel_3 + * @arg PWR_PVDLevel_4 + * @arg PWR_PVDLevel_5 + * @arg PWR_PVDLevel_6 + * @arg PWR_PVDLevel_7 + * @note Refer to the electrical characteristics of your device datasheet for + * more details about the voltage threshold corresponding to each + * detection level. + * @retval None + */ +void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_PWR_PVD_LEVEL(PWR_PVDLevel)); + + tmpreg = PWR->CR; + + /* Clear PLS[7:5] bits */ + tmpreg &= CR_PLS_MASK; + + /* Set PLS[7:5] bits according to PWR_PVDLevel value */ + tmpreg |= PWR_PVDLevel; + + /* Store the new value */ + PWR->CR = tmpreg; +} + +/** + * @brief Enables or disables the Power Voltage Detector(PVD). + * @param NewState: new state of the PVD. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_PVDCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CR_PVDE_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group3 WakeUp pin configuration functions + * @brief WakeUp pin configuration functions + * +@verbatim + =============================================================================== + WakeUp pin configuration functions + =============================================================================== + + - WakeUp pin is used to wakeup the system from Standby mode. This pin is + forced in input pull down configuration and is active on rising edges. + - There is only one WakeUp pin: WakeUp Pin 1 on PA.00. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the WakeUp Pin functionality. + * @param NewState: new state of the WakeUp Pin functionality. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_WakeUpPinCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CSR_EWUP_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group4 Backup Regulator configuration functions + * @brief Backup Regulator configuration functions + * +@verbatim + =============================================================================== + Backup Regulator configuration functions + =============================================================================== + + - The backup domain includes 4 Kbytes of backup SRAM accessible only from the + CPU, and address in 32-bit, 16-bit or 8-bit mode. Its content is retained + even in Standby or VBAT mode when the low power backup regulator is enabled. + It can be considered as an internal EEPROM when VBAT is always present. + You can use the PWR_BackupRegulatorCmd() function to enable the low power + backup regulator and use the PWR_GetFlagStatus(PWR_FLAG_BRR) to check if it is + ready or not. + + - When the backup domain is supplied by VDD (analog switch connected to VDD) + the backup SRAM is powered from VDD which replaces the VBAT power supply to + save battery life. + + - The backup SRAM is not mass erased by an tamper event. It is read protected + to prevent confidential data, such as cryptographic private key, from being + accessed. The backup SRAM can be erased only through the Flash interface when + a protection level change from level 1 to level 0 is requested. + Refer to the description of Read protection (RDP) in the Flash programming manual. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the Backup Regulator. + * @param NewState: new state of the Backup Regulator. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_BackupRegulatorCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CSR_BRE_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group5 FLASH Power Down configuration functions + * @brief FLASH Power Down configuration functions + * +@verbatim + =============================================================================== + FLASH Power Down configuration functions + =============================================================================== + + - By setting the FPDS bit in the PWR_CR register by using the PWR_FlashPowerDownCmd() + function, the Flash memory also enters power down mode when the device enters + Stop mode. When the Flash memory is in power down mode, an additional startup + delay is incurred when waking up from Stop mode. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the Flash Power Down in STOP mode. + * @param NewState: new state of the Flash power mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void PWR_FlashPowerDownCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CR_FPDS_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup PWR_Group6 Low Power modes configuration functions + * @brief Low Power modes configuration functions + * +@verbatim + =============================================================================== + Low Power modes configuration functions + =============================================================================== + + The devices feature 3 low-power modes: + - Sleep mode: Cortex-M3 core stopped, peripherals kept running. + - Stop mode: all clocks are stopped, regulator running, regulator in low power mode + - Standby mode: 1.2V domain powered off. + + Sleep mode + =========== + - Entry: + - The Sleep mode is entered by using the __WFI() or __WFE() functions. + - Exit: + - Any peripheral interrupt acknowledged by the nested vectored interrupt + controller (NVIC) can wake up the device from Sleep mode. + + Stop mode + ========== + In Stop mode, all clocks in the 1.2V domain are stopped, the PLL, the HSI, + and the HSE RC oscillators are disabled. Internal SRAM and register contents + are preserved. + The voltage regulator can be configured either in normal or low-power mode. + To minimize the consumption In Stop mode, FLASH can be powered off before + entering the Stop mode. It can be switched on again by software after exiting + the Stop mode using the PWR_FlashPowerDownCmd() function. + + - Entry: + - The Stop mode is entered using the PWR_EnterSTOPMode(PWR_Regulator_LowPower,) + function with regulator in LowPower or with Regulator ON. + - Exit: + - Any EXTI Line (Internal or External) configured in Interrupt/Event mode. + + Standby mode + ============ + The Standby mode allows to achieve the lowest power consumption. It is based + on the Cortex-M3 deepsleep mode, with the voltage regulator disabled. + The 1.2V domain is consequently powered off. The PLL, the HSI oscillator and + the HSE oscillator are also switched off. SRAM and register contents are lost + except for the RTC registers, RTC backup registers, backup SRAM and Standby + circuitry. + + The voltage regulator is OFF. + + - Entry: + - The Standby mode is entered using the PWR_EnterSTANDBYMode() function. + - Exit: + - WKUP pin rising edge, RTC alarm (Alarm A and Alarm B), RTC wakeup, + tamper event, time-stamp event, external reset in NRST pin, IWDG reset. + + Auto-wakeup (AWU) from low-power mode + ===================================== + The MCU can be woken up from low-power mode by an RTC Alarm event, an RTC + Wakeup event, a tamper event, a time-stamp event, or a comparator event, + without depending on an external interrupt (Auto-wakeup mode). + + - RTC auto-wakeup (AWU) from the Stop mode + ---------------------------------------- + + - To wake up from the Stop mode with an RTC alarm event, it is necessary to: + - Configure the EXTI Line 17 to be sensitive to rising edges (Interrupt + or Event modes) using the EXTI_Init() function. + - Enable the RTC Alarm Interrupt using the RTC_ITConfig() function + - Configure the RTC to generate the RTC alarm using the RTC_SetAlarm() + and RTC_AlarmCmd() functions. + - To wake up from the Stop mode with an RTC Tamper or time stamp event, it + is necessary to: + - Configure the EXTI Line 21 to be sensitive to rising edges (Interrupt + or Event modes) using the EXTI_Init() function. + - Enable the RTC Tamper or time stamp Interrupt using the RTC_ITConfig() + function + - Configure the RTC to detect the tamper or time stamp event using the + RTC_TimeStampConfig(), RTC_TamperTriggerConfig() and RTC_TamperCmd() + functions. + - To wake up from the Stop mode with an RTC WakeUp event, it is necessary to: + - Configure the EXTI Line 22 to be sensitive to rising edges (Interrupt + or Event modes) using the EXTI_Init() function. + - Enable the RTC WakeUp Interrupt using the RTC_ITConfig() function + - Configure the RTC to generate the RTC WakeUp event using the RTC_WakeUpClockConfig(), + RTC_SetWakeUpCounter() and RTC_WakeUpCmd() functions. + + - RTC auto-wakeup (AWU) from the Standby mode + ------------------------------------------- + - To wake up from the Standby mode with an RTC alarm event, it is necessary to: + - Enable the RTC Alarm Interrupt using the RTC_ITConfig() function + - Configure the RTC to generate the RTC alarm using the RTC_SetAlarm() + and RTC_AlarmCmd() functions. + - To wake up from the Standby mode with an RTC Tamper or time stamp event, it + is necessary to: + - Enable the RTC Tamper or time stamp Interrupt using the RTC_ITConfig() + function + - Configure the RTC to detect the tamper or time stamp event using the + RTC_TimeStampConfig(), RTC_TamperTriggerConfig() and RTC_TamperCmd() + functions. + - To wake up from the Standby mode with an RTC WakeUp event, it is necessary to: + - Enable the RTC WakeUp Interrupt using the RTC_ITConfig() function + - Configure the RTC to generate the RTC WakeUp event using the RTC_WakeUpClockConfig(), + RTC_SetWakeUpCounter() and RTC_WakeUpCmd() functions. + +@endverbatim + * @{ + */ + +/** + * @brief Enters STOP mode. + * + * @note In Stop mode, all I/O pins keep the same state as in Run mode. + * @note When exiting Stop mode by issuing an interrupt or a wakeup event, + * the HSI RC oscillator is selected as system clock. + * @note When the voltage regulator operates in low power mode, an additional + * startup delay is incurred when waking up from Stop mode. + * By keeping the internal regulator ON during Stop mode, the consumption + * is higher although the startup time is reduced. + * + * @param PWR_Regulator: specifies the regulator state in STOP mode. + * This parameter can be one of the following values: + * @arg PWR_Regulator_ON: STOP mode with regulator ON + * @arg PWR_Regulator_LowPower: STOP mode with regulator in low power mode + * @param PWR_STOPEntry: specifies if STOP mode in entered with WFI or WFE instruction. + * This parameter can be one of the following values: + * @arg PWR_STOPEntry_WFI: enter STOP mode with WFI instruction + * @arg PWR_STOPEntry_WFE: enter STOP mode with WFE instruction + * @retval None + */ +void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_PWR_REGULATOR(PWR_Regulator)); + assert_param(IS_PWR_STOP_ENTRY(PWR_STOPEntry)); + + /* Select the regulator state in STOP mode ---------------------------------*/ + tmpreg = PWR->CR; + /* Clear PDDS and LPDSR bits */ + tmpreg &= CR_DS_MASK; + + /* Set LPDSR bit according to PWR_Regulator value */ + tmpreg |= PWR_Regulator; + + /* Store the new value */ + PWR->CR = tmpreg; + + /* Set SLEEPDEEP bit of Cortex System Control Register */ + SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; + + /* Select STOP mode entry --------------------------------------------------*/ + if(PWR_STOPEntry == PWR_STOPEntry_WFI) + { + /* Request Wait For Interrupt */ + __WFI(); + } + else + { + /* Request Wait For Event */ + __WFE(); + } + /* Reset SLEEPDEEP bit of Cortex System Control Register */ + SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk); +} + +/** + * @brief Enters STANDBY mode. + * @note In Standby mode, all I/O pins are high impedance except for: + * - Reset pad (still available) + * - RTC_AF1 pin (PC13) if configured for tamper, time-stamp, RTC + * Alarm out, or RTC clock calibration out. + * - RTC_AF2 pin (PI8) if configured for tamper or time-stamp. + * - WKUP pin 1 (PA0) if enabled. + * @param None + * @retval None + */ +void PWR_EnterSTANDBYMode(void) +{ + /* Clear Wakeup flag */ + PWR->CR |= PWR_CR_CWUF; + + /* Select STANDBY mode */ + PWR->CR |= PWR_CR_PDDS; + + /* Set SLEEPDEEP bit of Cortex System Control Register */ + SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; + +/* This option is used to ensure that store operations are completed */ +#if defined ( __CC_ARM ) + __force_stores(); +#endif + /* Request Wait For Interrupt */ + __WFI(); +} + +/** + * @} + */ + +/** @defgroup PWR_Group7 Flags management functions + * @brief Flags management functions + * +@verbatim + =============================================================================== + Flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Checks whether the specified PWR flag is set or not. + * @param PWR_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg PWR_FLAG_WU: Wake Up flag. This flag indicates that a wakeup event + * was received from the WKUP pin or from the RTC alarm (Alarm A + * or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup. + * An additional wakeup event is detected if the WKUP pin is enabled + * (by setting the EWUP bit) when the WKUP pin level is already high. + * @arg PWR_FLAG_SB: StandBy flag. This flag indicates that the system was + * resumed from StandBy mode. + * @arg PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled + * by the PWR_PVDCmd() function. The PVD is stopped by Standby mode + * For this reason, this bit is equal to 0 after Standby or reset + * until the PVDE bit is set. + * @arg PWR_FLAG_BRR: Backup regulator ready flag. This bit is not reset + * when the device wakes up from Standby mode or by a system reset + * or power reset. + * @retval The new state of PWR_FLAG (SET or RESET). + */ +FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG) +{ + FlagStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_PWR_GET_FLAG(PWR_FLAG)); + + if ((PWR->CSR & PWR_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the flag status */ + return bitstatus; +} + +/** + * @brief Clears the PWR's pending flags. + * @param PWR_FLAG: specifies the flag to clear. + * This parameter can be one of the following values: + * @arg PWR_FLAG_WU: Wake Up flag + * @arg PWR_FLAG_SB: StandBy flag + * @retval None + */ +void PWR_ClearFlag(uint32_t PWR_FLAG) +{ + /* Check the parameters */ + assert_param(IS_PWR_CLEAR_FLAG(PWR_FLAG)); + + PWR->CR |= PWR_FLAG << 2; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rcc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rcc.c new file mode 100644 index 00000000..a668c5a3 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rcc.c @@ -0,0 +1,1817 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rcc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Reset and clock control (RCC) peripheral: + * - Internal/external clocks, PLL, CSS and MCO configuration + * - System, AHB and APB busses clocks configuration + * - Peripheral clocks configuration + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * RCC specific features + * =================================================================== + * + * After reset the device is running from Internal High Speed oscillator + * (HSI 16MHz) with Flash 0 wait state, Flash prefetch buffer, D-Cache + * and I-Cache are disabled, and all peripherals are off except internal + * SRAM, Flash and JTAG. + * - There is no prescaler on High speed (AHB) and Low speed (APB) busses; + * all peripherals mapped on these busses are running at HSI speed. + * - The clock for all peripherals is switched off, except the SRAM and FLASH. + * - All GPIOs are in input floating state, except the JTAG pins which + * are assigned to be used for debug purpose. + * + * Once the device started from reset, the user application has to: + * - Configure the clock source to be used to drive the System clock + * (if the application needs higher frequency/performance) + * - Configure the System clock frequency and Flash settings + * - Configure the AHB and APB busses prescalers + * - Enable the clock for the peripheral(s) to be used + * - Configure the clock source(s) for peripherals which clocks are not + * derived from the System clock (I2S, RTC, ADC, USB OTG FS/SDIO/RNG) + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup RCC + * @brief RCC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* ------------ RCC registers bit address in the alias region ----------- */ +#define RCC_OFFSET (RCC_BASE - PERIPH_BASE) +/* --- CR Register ---*/ +/* Alias word address of HSION bit */ +#define CR_OFFSET (RCC_OFFSET + 0x00) +#define HSION_BitNumber 0x00 +#define CR_HSION_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (HSION_BitNumber * 4)) +/* Alias word address of CSSON bit */ +#define CSSON_BitNumber 0x13 +#define CR_CSSON_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (CSSON_BitNumber * 4)) +/* Alias word address of PLLON bit */ +#define PLLON_BitNumber 0x18 +#define CR_PLLON_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PLLON_BitNumber * 4)) +/* Alias word address of PLLI2SON bit */ +#define PLLI2SON_BitNumber 0x1A +#define CR_PLLI2SON_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PLLI2SON_BitNumber * 4)) + +/* --- CFGR Register ---*/ +/* Alias word address of I2SSRC bit */ +#define CFGR_OFFSET (RCC_OFFSET + 0x08) +#define I2SSRC_BitNumber 0x17 +#define CFGR_I2SSRC_BB (PERIPH_BB_BASE + (CFGR_OFFSET * 32) + (I2SSRC_BitNumber * 4)) + +/* --- BDCR Register ---*/ +/* Alias word address of RTCEN bit */ +#define BDCR_OFFSET (RCC_OFFSET + 0x70) +#define RTCEN_BitNumber 0x0F +#define BDCR_RTCEN_BB (PERIPH_BB_BASE + (BDCR_OFFSET * 32) + (RTCEN_BitNumber * 4)) +/* Alias word address of BDRST bit */ +#define BDRST_BitNumber 0x10 +#define BDCR_BDRST_BB (PERIPH_BB_BASE + (BDCR_OFFSET * 32) + (BDRST_BitNumber * 4)) +/* --- CSR Register ---*/ +/* Alias word address of LSION bit */ +#define CSR_OFFSET (RCC_OFFSET + 0x74) +#define LSION_BitNumber 0x00 +#define CSR_LSION_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (LSION_BitNumber * 4)) +/* ---------------------- RCC registers bit mask ------------------------ */ +/* CFGR register bit mask */ +#define CFGR_MCO2_RESET_MASK ((uint32_t)0x07FFFFFF) +#define CFGR_MCO1_RESET_MASK ((uint32_t)0xF89FFFFF) + +/* RCC Flag Mask */ +#define FLAG_MASK ((uint8_t)0x1F) + +/* CR register byte 3 (Bits[23:16]) base address */ +#define CR_BYTE3_ADDRESS ((uint32_t)0x40023802) + +/* CIR register byte 2 (Bits[15:8]) base address */ +#define CIR_BYTE2_ADDRESS ((uint32_t)(RCC_BASE + 0x0C + 0x01)) + +/* CIR register byte 3 (Bits[23:16]) base address */ +#define CIR_BYTE3_ADDRESS ((uint32_t)(RCC_BASE + 0x0C + 0x02)) + +/* BDCR register base address */ +#define BDCR_ADDRESS (PERIPH_BASE + BDCR_OFFSET) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +static __I uint8_t APBAHBPrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7, 8, 9}; + +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup RCC_Private_Functions + * @{ + */ + +/** @defgroup RCC_Group1 Internal and external clocks, PLL, CSS and MCO configuration functions + * @brief Internal and external clocks, PLL, CSS and MCO configuration functions + * +@verbatim + =============================================================================== + Internal/external clocks, PLL, CSS and MCO configuration functions + =============================================================================== + + This section provide functions allowing to configure the internal/external clocks, + PLLs, CSS and MCO pins. + + 1. HSI (high-speed internal), 16 MHz factory-trimmed RC used directly or through + the PLL as System clock source. + + 2. LSI (low-speed internal), 32 KHz low consumption RC used as IWDG and/or RTC + clock source. + + 3. HSE (high-speed external), 4 to 26 MHz crystal oscillator used directly or + through the PLL as System clock source. Can be used also as RTC clock source. + + 4. LSE (low-speed external), 32 KHz oscillator used as RTC clock source. + + 5. PLL (clocked by HSI or HSE), featuring two different output clocks: + - The first output is used to generate the high speed system clock (up to 120 MHz) + - The second output is used to generate the clock for the USB OTG FS (48 MHz), + the random analog generator (<=48 MHz) and the SDIO (<= 48 MHz). + + 6. PLLI2S (clocked by HSI or HSE), used to generate an accurate clock to achieve + high-quality audio performance on the I2S interface. + + 7. CSS (Clock security system), once enable and if a HSE clock failure occurs + (HSE used directly or through PLL as System clock source), the System clock + is automatically switched to HSI and an interrupt is generated if enabled. + The interrupt is linked to the Cortex-M3 NMI (Non-Maskable Interrupt) + exception vector. + + 8. MCO1 (microcontroller clock output), used to output HSI, LSE, HSE or PLL + clock (through a configurable prescaler) on PA8 pin. + + 9. MCO2 (microcontroller clock output), used to output HSE, PLL, SYSCLK or PLLI2S + clock (through a configurable prescaler) on PC9 pin. + +@endverbatim + * @{ + */ + +/** + * @brief Resets the RCC clock configuration to the default reset state. + * @note The default reset state of the clock configuration is given below: + * - HSI ON and used as system clock source + * - HSE, PLL and PLLI2S OFF + * - AHB, APB1 and APB2 prescaler set to 1. + * - CSS, MCO1 and MCO2 OFF + * - All interrupts disabled + * @note This function doesn't modify the configuration of the + * - Peripheral clocks + * - LSI, LSE and RTC clocks + * @param None + * @retval None + */ +void RCC_DeInit(void) +{ + /* Set HSION bit */ + RCC->CR |= (uint32_t)0x00000001; + + /* Reset CFGR register */ + RCC->CFGR = 0x00000000; + + /* Reset HSEON, CSSON and PLLON bits */ + RCC->CR &= (uint32_t)0xFEF6FFFF; + + /* Reset PLLCFGR register */ + RCC->PLLCFGR = 0x24003010; + + /* Reset HSEBYP bit */ + RCC->CR &= (uint32_t)0xFFFBFFFF; + + /* Disable all interrupts */ + RCC->CIR = 0x00000000; +} + +/** + * @brief Configures the External High Speed oscillator (HSE). + * @note After enabling the HSE (RCC_HSE_ON or RCC_HSE_Bypass), the application + * software should wait on HSERDY flag to be set indicating that HSE clock + * is stable and can be used to clock the PLL and/or system clock. + * @note HSE state can not be changed if it is used directly or through the + * PLL as system clock. In this case, you have to select another source + * of the system clock then change the HSE state (ex. disable it). + * @note The HSE is stopped by hardware when entering STOP and STANDBY modes. + * @note This function reset the CSSON bit, so if the Clock security system(CSS) + * was previously enabled you have to enable it again after calling this + * function. + * @param RCC_HSE: specifies the new state of the HSE. + * This parameter can be one of the following values: + * @arg RCC_HSE_OFF: turn OFF the HSE oscillator, HSERDY flag goes low after + * 6 HSE oscillator clock cycles. + * @arg RCC_HSE_ON: turn ON the HSE oscillator + * @arg RCC_HSE_Bypass: HSE oscillator bypassed with external clock + * @retval None + */ +void RCC_HSEConfig(uint8_t RCC_HSE) +{ + /* Check the parameters */ + assert_param(IS_RCC_HSE(RCC_HSE)); + + /* Reset HSEON and HSEBYP bits before configuring the HSE ------------------*/ + *(__IO uint8_t *) CR_BYTE3_ADDRESS = RCC_HSE_OFF; + + /* Set the new HSE configuration -------------------------------------------*/ + *(__IO uint8_t *) CR_BYTE3_ADDRESS = RCC_HSE; +} + +/** + * @brief Waits for HSE start-up. + * @note This functions waits on HSERDY flag to be set and return SUCCESS if + * this flag is set, otherwise returns ERROR if the timeout is reached + * and this flag is not set. The timeout value is defined by the constant + * HSE_STARTUP_TIMEOUT in stm32f2xx.h file. You can tailor it depending + * on the HSE crystal used in your application. + * @param None + * @retval An ErrorStatus enumeration value: + * - SUCCESS: HSE oscillator is stable and ready to use + * - ERROR: HSE oscillator not yet ready + */ +ErrorStatus RCC_WaitForHSEStartUp(void) +{ + __IO uint32_t startupcounter = 0; + ErrorStatus status = ERROR; + FlagStatus hsestatus = RESET; + /* Wait till HSE is ready and if Time out is reached exit */ + do + { + hsestatus = RCC_GetFlagStatus(RCC_FLAG_HSERDY); + startupcounter++; + } while((startupcounter != HSE_STARTUP_TIMEOUT) && (hsestatus == RESET)); + + if (RCC_GetFlagStatus(RCC_FLAG_HSERDY) != RESET) + { + status = SUCCESS; + } + else + { + status = ERROR; + } + return (status); +} + +/** + * @brief Adjusts the Internal High Speed oscillator (HSI) calibration value. + * @note The calibration is used to compensate for the variations in voltage + * and temperature that influence the frequency of the internal HSI RC. + * @param HSICalibrationValue: specifies the calibration trimming value. + * This parameter must be a number between 0 and 0x1F. + * @retval None + */ +void RCC_AdjustHSICalibrationValue(uint8_t HSICalibrationValue) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue)); + + tmpreg = RCC->CR; + + /* Clear HSITRIM[4:0] bits */ + tmpreg &= ~RCC_CR_HSITRIM; + + /* Set the HSITRIM[4:0] bits according to HSICalibrationValue value */ + tmpreg |= (uint32_t)HSICalibrationValue << 3; + + /* Store the new value */ + RCC->CR = tmpreg; +} + +/** + * @brief Enables or disables the Internal High Speed oscillator (HSI). + * @note The HSI is stopped by hardware when entering STOP and STANDBY modes. + * It is used (enabled by hardware) as system clock source after startup + * from Reset, wakeup from STOP and STANDBY mode, or in case of failure + * of the HSE used directly or indirectly as system clock (if the Clock + * Security System CSS is enabled). + * @note HSI can not be stopped if it is used as system clock source. In this case, + * you have to select another source of the system clock then stop the HSI. + * @note After enabling the HSI, the application software should wait on HSIRDY + * flag to be set indicating that HSI clock is stable and can be used as + * system clock source. + * @param NewState: new state of the HSI. + * This parameter can be: ENABLE or DISABLE. + * @note When the HSI is stopped, HSIRDY flag goes low after 6 HSI oscillator + * clock cycles. + * @retval None + */ +void RCC_HSICmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CR_HSION_BB = (uint32_t)NewState; +} + +/** + * @brief Configures the External Low Speed oscillator (LSE). + * @note As the LSE is in the Backup domain and write access is denied to + * this domain after reset, you have to enable write access using + * PWR_BackupAccessCmd(ENABLE) function before to configure the LSE + * (to be done once after reset). + * @note After enabling the LSE (RCC_LSE_ON or RCC_LSE_Bypass), the application + * software should wait on LSERDY flag to be set indicating that LSE clock + * is stable and can be used to clock the RTC. + * @param RCC_LSE: specifies the new state of the LSE. + * This parameter can be one of the following values: + * @arg RCC_LSE_OFF: turn OFF the LSE oscillator, LSERDY flag goes low after + * 6 LSE oscillator clock cycles. + * @arg RCC_LSE_ON: turn ON the LSE oscillator + * @arg RCC_LSE_Bypass: LSE oscillator bypassed with external clock + * @retval None + */ +void RCC_LSEConfig(uint8_t RCC_LSE) +{ + /* Check the parameters */ + assert_param(IS_RCC_LSE(RCC_LSE)); + + /* Reset LSEON and LSEBYP bits before configuring the LSE ------------------*/ + /* Reset LSEON bit */ + *(__IO uint8_t *) BDCR_ADDRESS = RCC_LSE_OFF; + + /* Reset LSEBYP bit */ + *(__IO uint8_t *) BDCR_ADDRESS = RCC_LSE_OFF; + + /* Configure LSE (RCC_LSE_OFF is already covered by the code section above) */ + switch (RCC_LSE) + { + case RCC_LSE_ON: + /* Set LSEON bit */ + *(__IO uint8_t *) BDCR_ADDRESS = RCC_LSE_ON; + break; + case RCC_LSE_Bypass: + /* Set LSEBYP and LSEON bits */ + *(__IO uint8_t *) BDCR_ADDRESS = RCC_LSE_Bypass | RCC_LSE_ON; + break; + default: + break; + } +} + +/** + * @brief Enables or disables the Internal Low Speed oscillator (LSI). + * @note After enabling the LSI, the application software should wait on + * LSIRDY flag to be set indicating that LSI clock is stable and can + * be used to clock the IWDG and/or the RTC. + * @note LSI can not be disabled if the IWDG is running. + * @param NewState: new state of the LSI. + * This parameter can be: ENABLE or DISABLE. + * @note When the LSI is stopped, LSIRDY flag goes low after 6 LSI oscillator + * clock cycles. + * @retval None + */ +void RCC_LSICmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CSR_LSION_BB = (uint32_t)NewState; +} + +/** + * @brief Configures the main PLL clock source, multiplication and division factors. + * @note This function must be used only when the main PLL is disabled. + * + * @param RCC_PLLSource: specifies the PLL entry clock source. + * This parameter can be one of the following values: + * @arg RCC_PLLSource_HSI: HSI oscillator clock selected as PLL clock entry + * @arg RCC_PLLSource_HSE: HSE oscillator clock selected as PLL clock entry + * @note This clock source (RCC_PLLSource) is common for the main PLL and PLLI2S. + * + * @param PLLM: specifies the division factor for PLL VCO input clock + * This parameter must be a number between 0 and 63. + * @note You have to set the PLLM parameter correctly to ensure that the VCO input + * frequency ranges from 1 to 2 MHz. It is recommended to select a frequency + * of 2 MHz to limit PLL jitter. + * + * @param PLLN: specifies the multiplication factor for PLL VCO output clock + * This parameter must be a number between 192 and 432. + * @note You have to set the PLLN parameter correctly to ensure that the VCO + * output frequency is between 192 and 432 MHz. + * + * @param PLLP: specifies the division factor for main system clock (SYSCLK) + * This parameter must be a number in the range {2, 4, 6, or 8}. + * @note You have to set the PLLP parameter correctly to not exceed 120 MHz on + * the System clock frequency. + * + * @param PLLQ: specifies the division factor for OTG FS, SDIO and RNG clocks + * This parameter must be a number between 4 and 15. + * @note If the USB OTG FS is used in your application, you have to set the + * PLLQ parameter correctly to have 48 MHz clock for the USB. However, + * the SDIO and RNG need a frequency lower than or equal to 48 MHz to work + * correctly. + * + * @retval None + */ +void RCC_PLLConfig(uint32_t RCC_PLLSource, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP, uint32_t PLLQ) +{ + /* Check the parameters */ + assert_param(IS_RCC_PLL_SOURCE(RCC_PLLSource)); + assert_param(IS_RCC_PLLM_VALUE(PLLM)); + assert_param(IS_RCC_PLLN_VALUE(PLLN)); + assert_param(IS_RCC_PLLP_VALUE(PLLP)); + assert_param(IS_RCC_PLLQ_VALUE(PLLQ)); + + RCC->PLLCFGR = PLLM | (PLLN << 6) | (((PLLP >> 1) -1) << 16) | (RCC_PLLSource) | + (PLLQ << 24); +} + +/** + * @brief Enables or disables the main PLL. + * @note After enabling the main PLL, the application software should wait on + * PLLRDY flag to be set indicating that PLL clock is stable and can + * be used as system clock source. + * @note The main PLL can not be disabled if it is used as system clock source + * @note The main PLL is disabled by hardware when entering STOP and STANDBY modes. + * @param NewState: new state of the main PLL. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_PLLCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + *(__IO uint32_t *) CR_PLLON_BB = (uint32_t)NewState; +} + +/** + * @brief Configures the PLLI2S clock multiplication and division factors. + * + * @note PLLI2S is available only in Silicon RevisionB and RevisionY. + * @note This function must be used only when the PLLI2S is disabled. + * @note PLLI2S clock source is common with the main PLL (configured in + * RCC_PLLConfig function ) + * + * @param PLLI2SN: specifies the multiplication factor for PLLI2S VCO output clock + * This parameter must be a number between 192 and 432. + * @note You have to set the PLLI2SN parameter correctly to ensure that the VCO + * output frequency is between 192 and 432 MHz. + * + * @param PLLI2SR: specifies the division factor for I2S clock + * This parameter must be a number between 2 and 7. + * @note You have to set the PLLI2SR parameter correctly to not exceed 192 MHz + * on the I2S clock frequency. + * + * @retval None + */ +void RCC_PLLI2SConfig(uint32_t PLLI2SN, uint32_t PLLI2SR) +{ + /* Check the parameters */ + assert_param(IS_RCC_PLLI2SN_VALUE(PLLI2SN)); + assert_param(IS_RCC_PLLI2SR_VALUE(PLLI2SR)); + + RCC->PLLI2SCFGR = (PLLI2SN << 6) | (PLLI2SR << 28); +} + +/** + * @brief Enables or disables the PLLI2S. + * @note PLLI2S is available only in RevisionB and RevisionY + * @note The PLLI2S is disabled by hardware when entering STOP and STANDBY modes. + * @param NewState: new state of the PLLI2S. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_PLLI2SCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + *(__IO uint32_t *) CR_PLLI2SON_BB = (uint32_t)NewState; +} + +/** + * @brief Enables or disables the Clock Security System. + * @note If a failure is detected on the HSE oscillator clock, this oscillator + * is automatically disabled and an interrupt is generated to inform the + * software about the failure (Clock Security System Interrupt, CSSI), + * allowing the MCU to perform rescue operations. The CSSI is linked to + * the Cortex-M3 NMI (Non-Maskable Interrupt) exception vector. + * @param NewState: new state of the Clock Security System. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_ClockSecuritySystemCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + *(__IO uint32_t *) CR_CSSON_BB = (uint32_t)NewState; +} + +/** + * @brief Selects the clock source to output on MCO1 pin(PA8). + * @note PA8 should be configured in alternate function mode. + * @param RCC_MCO1Source: specifies the clock source to output. + * This parameter can be one of the following values: + * @arg RCC_MCO1Source_HSI: HSI clock selected as MCO1 source + * @arg RCC_MCO1Source_LSE: LSE clock selected as MCO1 source + * @arg RCC_MCO1Source_HSE: HSE clock selected as MCO1 source + * @arg RCC_MCO1Source_PLLCLK: main PLL clock selected as MCO1 source + * @param RCC_MCO1Div: specifies the MCO1 prescaler. + * This parameter can be one of the following values: + * @arg RCC_MCO1Div_1: no division applied to MCO1 clock + * @arg RCC_MCO1Div_2: division by 2 applied to MCO1 clock + * @arg RCC_MCO1Div_3: division by 3 applied to MCO1 clock + * @arg RCC_MCO1Div_4: division by 4 applied to MCO1 clock + * @arg RCC_MCO1Div_5: division by 5 applied to MCO1 clock + * @retval None + */ +void RCC_MCO1Config(uint32_t RCC_MCO1Source, uint32_t RCC_MCO1Div) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_MCO1SOURCE(RCC_MCO1Source)); + assert_param(IS_RCC_MCO1DIV(RCC_MCO1Div)); + + tmpreg = RCC->CFGR; + + /* Clear MCO1[1:0] and MCO1PRE[2:0] bits */ + tmpreg &= CFGR_MCO1_RESET_MASK; + + /* Select MCO1 clock source and prescaler */ + tmpreg |= RCC_MCO1Source | RCC_MCO1Div; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @brief Selects the clock source to output on MCO2 pin(PC9). + * @note PC9 should be configured in alternate function mode. + * @param RCC_MCO2Source: specifies the clock source to output. + * This parameter can be one of the following values: + * @arg RCC_MCO2Source_SYSCLK: System clock (SYSCLK) selected as MCO2 source + * @arg RCC_MCO2Source_PLLI2SCLK: PLLI2S clock selected as MCO2 source + * @arg RCC_MCO2Source_HSE: HSE clock selected as MCO2 source + * @arg RCC_MCO2Source_PLLCLK: main PLL clock selected as MCO2 source + * @param RCC_MCO2Div: specifies the MCO2 prescaler. + * This parameter can be one of the following values: + * @arg RCC_MCO2Div_1: no division applied to MCO2 clock + * @arg RCC_MCO2Div_2: division by 2 applied to MCO2 clock + * @arg RCC_MCO2Div_3: division by 3 applied to MCO2 clock + * @arg RCC_MCO2Div_4: division by 4 applied to MCO2 clock + * @arg RCC_MCO2Div_5: division by 5 applied to MCO2 clock + * @retval None + */ +void RCC_MCO2Config(uint32_t RCC_MCO2Source, uint32_t RCC_MCO2Div) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_MCO2SOURCE(RCC_MCO2Source)); + assert_param(IS_RCC_MCO2DIV(RCC_MCO2Div)); + + tmpreg = RCC->CFGR; + + /* Clear MCO2 and MCO2PRE[2:0] bits */ + tmpreg &= CFGR_MCO2_RESET_MASK; + + /* Select MCO2 clock source and prescaler */ + tmpreg |= RCC_MCO2Source | RCC_MCO2Div; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @} + */ + +/** @defgroup RCC_Group2 System AHB and APB busses clocks configuration functions + * @brief System, AHB and APB busses clocks configuration functions + * +@verbatim + =============================================================================== + System, AHB and APB busses clocks configuration functions + =============================================================================== + + This section provide functions allowing to configure the System, AHB, APB1 and + APB2 busses clocks. + + 1. Several clock sources can be used to drive the System clock (SYSCLK): HSI, + HSE and PLL. + The AHB clock (HCLK) is derived from System clock through configurable prescaler + and used to clock the CPU, memory and peripherals mapped on AHB bus (DMA, GPIO...). + APB1 (PCLK1) and APB2 (PCLK2) clocks are derived from AHB clock through + configurable prescalers and used to clock the peripherals mapped on these busses. + You can use "RCC_GetClocksFreq()" function to retrieve the frequencies of these clocks. + +@note All the peripheral clocks are derived from the System clock (SYSCLK) except: + - I2S: the I2S clock can be derived either from a specific PLL (PLLI2S) or + from an external clock mapped on the I2S_CKIN pin. + You have to use RCC_I2SCLKConfig() function to configure this clock. + - RTC: the RTC clock can be derived either from the LSI, LSE or HSE clock + divided by 2 to 31. You have to use RCC_RTCCLKConfig() and RCC_RTCCLKCmd() + functions to configure this clock. + - USB OTG FS, SDIO and RTC: USB OTG FS require a frequency equal to 48 MHz + to work correctly, while the SDIO require a frequency equal or lower than + to 48. This clock is derived of the main PLL through PLLQ divider. + - IWDG clock which is always the LSI clock. + + 2. The maximum frequency of the SYSCLK and HCLK is 120 MHz, PCLK2 60 MHz and PCLK1 30 MHz. + Depending on the device voltage range, the maximum frequency should be + adapted accordingly: + +-------------------------------------------------------------------------------------+ + | Latency | HCLK clock frequency (MHz) | + | |---------------------------------------------------------------------| + | | voltage range | voltage range | voltage range | voltage range | + | | 2.7 V - 3.6 V | 2.4 V - 2.7 V | 2.1 V - 2.4 V | 1.8 V - 2.1 V | + |---------------|----------------|----------------|-----------------|-----------------| + |0WS(1CPU cycle)|0 < HCLK <= 30 |0 < HCLK <= 24 |0 < HCLK <= 18 |0 < HCLK <= 16 | + |---------------|----------------|----------------|-----------------|-----------------| + |1WS(2CPU cycle)|30 < HCLK <= 60 |24 < HCLK <= 48 |18 < HCLK <= 36 |16 < HCLK <= 32 | + |---------------|----------------|----------------|-----------------|-----------------| + |2WS(3CPU cycle)|60 < HCLK <= 90 |48 < HCLK <= 72 |36 < HCLK <= 54 |32 < HCLK <= 48 | + |---------------|----------------|----------------|-----------------|-----------------| + |3WS(4CPU cycle)|90 < HCLK <= 120|72 < HCLK <= 96 |54 < HCLK <= 72 |48 < HCLK <= 64 | + |---------------|----------------|----------------|-----------------|-----------------| + |4WS(5CPU cycle)| NA |96 < HCLK <= 120|72 < HCLK <= 90 |64 < HCLK <= 80 | + |---------------|----------------|----------------|-----------------|-----------------| + |5WS(6CPU cycle)| NA | NA |90 < HCLK <= 108 |80 < HCLK <= 96 | + |---------------|----------------|----------------|-----------------|-----------------| + |6WS(7CPU cycle)| NA | NA |108 < HCLK <= 120|96 < HCLK <= 112 | + |---------------|----------------|----------------|-----------------|-----------------| + |7WS(8CPU cycle)| NA | NA | NA |112 < HCLK <= 120| + +-------------------------------------------------------------------------------------+ + + +@endverbatim + * @{ + */ + +/** + * @brief Configures the system clock (SYSCLK). + * @note The HSI is used (enabled by hardware) as system clock source after + * startup from Reset, wake-up from STOP and STANDBY mode, or in case + * of failure of the HSE used directly or indirectly as system clock + * (if the Clock Security System CSS is enabled). + * @note A switch from one clock source to another occurs only if the target + * clock source is ready (clock stable after startup delay or PLL locked). + * If a clock source which is not yet ready is selected, the switch will + * occur when the clock source will be ready. + * You can use RCC_GetSYSCLKSource() function to know which clock is + * currently used as system clock source. + * @param RCC_SYSCLKSource: specifies the clock source used as system clock. + * This parameter can be one of the following values: + * @arg RCC_SYSCLKSource_HSI: HSI selected as system clock source + * @arg RCC_SYSCLKSource_HSE: HSE selected as system clock source + * @arg RCC_SYSCLKSource_PLLCLK: PLL selected as system clock source + * @retval None + */ +void RCC_SYSCLKConfig(uint32_t RCC_SYSCLKSource) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource)); + + tmpreg = RCC->CFGR; + + /* Clear SW[1:0] bits */ + tmpreg &= ~RCC_CFGR_SW; + + /* Set SW[1:0] bits according to RCC_SYSCLKSource value */ + tmpreg |= RCC_SYSCLKSource; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @brief Returns the clock source used as system clock. + * @param None + * @retval The clock source used as system clock. The returned value can be one + * of the following: + * - 0x00: HSI used as system clock + * - 0x04: HSE used as system clock + * - 0x08: PLL used as system clock + */ +uint8_t RCC_GetSYSCLKSource(void) +{ + return ((uint8_t)(RCC->CFGR & RCC_CFGR_SWS)); +} + +/** + * @brief Configures the AHB clock (HCLK). + * @note Depending on the device voltage range, the software has to set correctly + * these bits to ensure that HCLK not exceed the maximum allowed frequency + * (for more details refer to section above + * "CPU, AHB and APB busses clocks configuration functions") + * @param RCC_SYSCLK: defines the AHB clock divider. This clock is derived from + * the system clock (SYSCLK). + * This parameter can be one of the following values: + * @arg RCC_SYSCLK_Div1: AHB clock = SYSCLK + * @arg RCC_SYSCLK_Div2: AHB clock = SYSCLK/2 + * @arg RCC_SYSCLK_Div4: AHB clock = SYSCLK/4 + * @arg RCC_SYSCLK_Div8: AHB clock = SYSCLK/8 + * @arg RCC_SYSCLK_Div16: AHB clock = SYSCLK/16 + * @arg RCC_SYSCLK_Div64: AHB clock = SYSCLK/64 + * @arg RCC_SYSCLK_Div128: AHB clock = SYSCLK/128 + * @arg RCC_SYSCLK_Div256: AHB clock = SYSCLK/256 + * @arg RCC_SYSCLK_Div512: AHB clock = SYSCLK/512 + * @retval None + */ +void RCC_HCLKConfig(uint32_t RCC_SYSCLK) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_HCLK(RCC_SYSCLK)); + + tmpreg = RCC->CFGR; + + /* Clear HPRE[3:0] bits */ + tmpreg &= ~RCC_CFGR_HPRE; + + /* Set HPRE[3:0] bits according to RCC_SYSCLK value */ + tmpreg |= RCC_SYSCLK; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + + +/** + * @brief Configures the Low Speed APB clock (PCLK1). + * @param RCC_HCLK: defines the APB1 clock divider. This clock is derived from + * the AHB clock (HCLK). + * This parameter can be one of the following values: + * @arg RCC_HCLK_Div1: APB1 clock = HCLK + * @arg RCC_HCLK_Div2: APB1 clock = HCLK/2 + * @arg RCC_HCLK_Div4: APB1 clock = HCLK/4 + * @arg RCC_HCLK_Div8: APB1 clock = HCLK/8 + * @arg RCC_HCLK_Div16: APB1 clock = HCLK/16 + * @retval None + */ +void RCC_PCLK1Config(uint32_t RCC_HCLK) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_PCLK(RCC_HCLK)); + + tmpreg = RCC->CFGR; + + /* Clear PPRE1[2:0] bits */ + tmpreg &= ~RCC_CFGR_PPRE1; + + /* Set PPRE1[2:0] bits according to RCC_HCLK value */ + tmpreg |= RCC_HCLK; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @brief Configures the High Speed APB clock (PCLK2). + * @param RCC_HCLK: defines the APB2 clock divider. This clock is derived from + * the AHB clock (HCLK). + * This parameter can be one of the following values: + * @arg RCC_HCLK_Div1: APB2 clock = HCLK + * @arg RCC_HCLK_Div2: APB2 clock = HCLK/2 + * @arg RCC_HCLK_Div4: APB2 clock = HCLK/4 + * @arg RCC_HCLK_Div8: APB2 clock = HCLK/8 + * @arg RCC_HCLK_Div16: APB2 clock = HCLK/16 + * @retval None + */ +void RCC_PCLK2Config(uint32_t RCC_HCLK) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_PCLK(RCC_HCLK)); + + tmpreg = RCC->CFGR; + + /* Clear PPRE2[2:0] bits */ + tmpreg &= ~RCC_CFGR_PPRE2; + + /* Set PPRE2[2:0] bits according to RCC_HCLK value */ + tmpreg |= RCC_HCLK << 3; + + /* Store the new value */ + RCC->CFGR = tmpreg; +} + +/** + * @brief Returns the frequencies of different on chip clocks; SYSCLK, HCLK, + * PCLK1 and PCLK2. + * + * @note The system frequency computed by this function is not the real + * frequency in the chip. It is calculated based on the predefined + * constant and the selected clock source: + * @note If SYSCLK source is HSI, function returns values based on HSI_VALUE(*) + * @note If SYSCLK source is HSE, function returns values based on HSE_VALUE(**) + * @note If SYSCLK source is PLL, function returns values based on HSE_VALUE(**) + * or HSI_VALUE(*) multiplied/divided by the PLL factors. + * @note (*) HSI_VALUE is a constant defined in stm32f2xx.h file (default value + * 16 MHz) but the real value may vary depending on the variations + * in voltage and temperature. + * @note (**) HSE_VALUE is a constant defined in stm32f2xx.h file (default value + * 25 MHz), user has to ensure that HSE_VALUE is same as the real + * frequency of the crystal used. Otherwise, this function may + * have wrong result. + * + * @note The result of this function could be not correct when using fractional + * value for HSE crystal. + * + * @param RCC_Clocks: pointer to a RCC_ClocksTypeDef structure which will hold + * the clocks frequencies. + * + * @note This function can be used by the user application to compute the + * baudrate for the communication peripherals or configure other parameters. + * @note Each time SYSCLK, HCLK, PCLK1 and/or PCLK2 clock changes, this function + * must be called to update the structure's field. Otherwise, any + * configuration based on this function will be incorrect. + * + * @retval None + */ +void RCC_GetClocksFreq(RCC_ClocksTypeDef* RCC_Clocks) +{ + uint32_t tmp = 0, presc = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2; + + /* Get SYSCLK source -------------------------------------------------------*/ + tmp = RCC->CFGR & RCC_CFGR_SWS; + + switch (tmp) + { + case 0x00: /* HSI used as system clock source */ + RCC_Clocks->SYSCLK_Frequency = HSI_VALUE; + break; + case 0x04: /* HSE used as system clock source */ + RCC_Clocks->SYSCLK_Frequency = HSE_VALUE; + break; + case 0x08: /* PLL used as system clock source */ + + /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN + SYSCLK = PLL_VCO / PLLP + */ + pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> 22; + pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; + + if (pllsource != 0) + { + /* HSE used as PLL clock source */ + pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); + } + else + { + /* HSI used as PLL clock source */ + pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); + } + + pllp = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >>16) + 1 ) *2; + RCC_Clocks->SYSCLK_Frequency = pllvco/pllp; + break; + default: + RCC_Clocks->SYSCLK_Frequency = HSI_VALUE; + break; + } + /* Compute HCLK, PCLK1 and PCLK2 clocks frequencies ------------------------*/ + + /* Get HCLK prescaler */ + tmp = RCC->CFGR & RCC_CFGR_HPRE; + tmp = tmp >> 4; + presc = APBAHBPrescTable[tmp]; + /* HCLK clock frequency */ + RCC_Clocks->HCLK_Frequency = RCC_Clocks->SYSCLK_Frequency >> presc; + + /* Get PCLK1 prescaler */ + tmp = RCC->CFGR & RCC_CFGR_PPRE1; + tmp = tmp >> 10; + presc = APBAHBPrescTable[tmp]; + /* PCLK1 clock frequency */ + RCC_Clocks->PCLK1_Frequency = RCC_Clocks->HCLK_Frequency >> presc; + + /* Get PCLK2 prescaler */ + tmp = RCC->CFGR & RCC_CFGR_PPRE2; + tmp = tmp >> 13; + presc = APBAHBPrescTable[tmp]; + /* PCLK2 clock frequency */ + RCC_Clocks->PCLK2_Frequency = RCC_Clocks->HCLK_Frequency >> presc; +} + +/** + * @} + */ + +/** @defgroup RCC_Group3 Peripheral clocks configuration functions + * @brief Peripheral clocks configuration functions + * +@verbatim + =============================================================================== + Peripheral clocks configuration functions + =============================================================================== + + This section provide functions allowing to configure the Peripheral clocks. + + 1. The RTC clock which is derived from the LSI, LSE or HSE clock divided by 2 to 31. + + 2. After restart from Reset or wakeup from STANDBY, all peripherals are off + except internal SRAM, Flash and JTAG. Before to start using a peripheral you + have to enable its interface clock. You can do this using RCC_AHBPeriphClockCmd() + , RCC_APB2PeriphClockCmd() and RCC_APB1PeriphClockCmd() functions. + + 3. To reset the peripherals configuration (to the default state after device reset) + you can use RCC_AHBPeriphResetCmd(), RCC_APB2PeriphResetCmd() and + RCC_APB1PeriphResetCmd() functions. + + 4. To further reduce power consumption in SLEEP mode the peripheral clocks can + be disabled prior to executing the WFI or WFE instructions. You can do this + using RCC_AHBPeriphClockLPModeCmd(), RCC_APB2PeriphClockLPModeCmd() and + RCC_APB1PeriphClockLPModeCmd() functions. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the RTC clock (RTCCLK). + * @note As the RTC clock configuration bits are in the Backup domain and write + * access is denied to this domain after reset, you have to enable write + * access using PWR_BackupAccessCmd(ENABLE) function before to configure + * the RTC clock source (to be done once after reset). + * @note Once the RTC clock is configured it can't be changed unless the + * Backup domain is reset using RCC_BackupResetCmd() function, or by + * a Power On Reset (POR). + * + * @param RCC_RTCCLKSource: specifies the RTC clock source. + * This parameter can be one of the following values: + * @arg RCC_RTCCLKSource_LSE: LSE selected as RTC clock + * @arg RCC_RTCCLKSource_LSI: LSI selected as RTC clock + * @arg RCC_RTCCLKSource_HSE_Divx: HSE clock divided by x selected + * as RTC clock, where x:[2,31] + * + * @note If the LSE or LSI is used as RTC clock source, the RTC continues to + * work in STOP and STANDBY modes, and can be used as wakeup source. + * However, when the HSE clock is used as RTC clock source, the RTC + * cannot be used in STOP and STANDBY modes. + * @note The maximum input clock frequency for RTC is 1MHz (when using HSE as + * RTC clock source). + * + * @retval None + */ +void RCC_RTCCLKConfig(uint32_t RCC_RTCCLKSource) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource)); + + if ((RCC_RTCCLKSource & 0x00000300) == 0x00000300) + { /* If HSE is selected as RTC clock source, configure HSE division factor for RTC clock */ + tmpreg = RCC->CFGR; + + /* Clear RTCPRE[4:0] bits */ + tmpreg &= ~RCC_CFGR_RTCPRE; + + /* Configure HSE division factor for RTC clock */ + tmpreg |= (RCC_RTCCLKSource & 0xFFFFCFF); + + /* Store the new value */ + RCC->CFGR = tmpreg; + } + + /* Select the RTC clock source */ + RCC->BDCR |= (RCC_RTCCLKSource & 0x00000FFF); +} + +/** + * @brief Enables or disables the RTC clock. + * @note This function must be used only after the RTC clock source was selected + * using the RCC_RTCCLKConfig function. + * @param NewState: new state of the RTC clock. This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_RTCCLKCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) BDCR_RTCEN_BB = (uint32_t)NewState; +} + +/** + * @brief Forces or releases the Backup domain reset. + * @note This function resets the RTC peripheral (including the backup registers) + * and the RTC clock source selection in RCC_CSR register. + * @note The BKPSRAM is not affected by this reset. + * @param NewState: new state of the Backup domain reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_BackupResetCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + *(__IO uint32_t *) BDCR_BDRST_BB = (uint32_t)NewState; +} + +/** + * @brief Configures the I2S clock source (I2SCLK). + * + * @note This function must be called before enabling the I2S APB clock. + * @note This function applies only to Silicon RevisionB and RevisionY. + * + * @param RCC_I2SCLKSource: specifies the I2S clock source. + * This parameter can be one of the following values: + * @arg RCC_I2S2CLKSource_PLLI2S: PLLI2S clock used as I2S clock source + * @arg RCC_I2S2CLKSource_Ext: External clock mapped on the I2S_CKIN pin + * used as I2S clock source + * @retval None + */ +void RCC_I2SCLKConfig(uint32_t RCC_I2SCLKSource) +{ + /* Check the parameters */ + assert_param(IS_RCC_I2SCLK_SOURCE(RCC_I2SCLKSource)); + + *(__IO uint32_t *) CFGR_I2SSRC_BB = RCC_I2SCLKSource; +} + +/** + * @brief Enables or disables the AHB1 peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_AHBPeriph: specifies the AHB1 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_AHB1Periph_GPIOA: GPIOA clock + * @arg RCC_AHB1Periph_GPIOB: GPIOB clock + * @arg RCC_AHB1Periph_GPIOC: GPIOC clock + * @arg RCC_AHB1Periph_GPIOD: GPIOD clock + * @arg RCC_AHB1Periph_GPIOE: GPIOE clock + * @arg RCC_AHB1Periph_GPIOF: GPIOF clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOI: GPIOI clock + * @arg RCC_AHB1Periph_CRC: CRC clock + * @arg RCC_AHB1Periph_BKPSRAM: BKPSRAM interface clock + * @arg RCC_AHB1Periph_DMA1: DMA1 clock + * @arg RCC_AHB1Periph_DMA2: DMA2 clock + * @arg RCC_AHB1Periph_ETH_MAC: Ethernet MAC clock + * @arg RCC_AHB1Periph_ETH_MAC_Tx: Ethernet Transmission clock + * @arg RCC_AHB1Periph_ETH_MAC_Rx: Ethernet Reception clock + * @arg RCC_AHB1Periph_ETH_MAC_PTP: Ethernet PTP clock + * @arg RCC_AHB1Periph_OTG_HS: USB OTG HS clock + * @arg RCC_AHB1Periph_OTG_HS_ULPI: USB OTG HS ULPI clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB1PeriphClockCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB1_CLOCK_PERIPH(RCC_AHB1Periph)); + + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->AHB1ENR |= RCC_AHB1Periph; + } + else + { + RCC->AHB1ENR &= ~RCC_AHB1Periph; + } +} + +/** + * @brief Enables or disables the AHB2 peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_AHBPeriph: specifies the AHB2 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_AHB2Periph_DCMI: DCMI clock + * @arg RCC_AHB2Periph_CRYP: CRYP clock + * @arg RCC_AHB2Periph_HASH: HASH clock + * @arg RCC_AHB2Periph_RNG: RNG clock + * @arg RCC_AHB2Periph_OTG_FS: USB OTG FS clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB2PeriphClockCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB2ENR |= RCC_AHB2Periph; + } + else + { + RCC->AHB2ENR &= ~RCC_AHB2Periph; + } +} + +/** + * @brief Enables or disables the AHB3 peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_AHBPeriph: specifies the AHB3 peripheral to gates its clock. + * This parameter must be: RCC_AHB3Periph_FSMC + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB3PeriphClockCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB3_PERIPH(RCC_AHB3Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB3ENR |= RCC_AHB3Periph; + } + else + { + RCC->AHB3ENR &= ~RCC_AHB3Periph; + } +} + +/** + * @brief Enables or disables the Low Speed APB (APB1) peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_APB1Periph: specifies the APB1 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_APB1Periph_TIM2: TIM2 clock + * @arg RCC_APB1Periph_TIM3: TIM3 clock + * @arg RCC_APB1Periph_TIM4: TIM4 clock + * @arg RCC_APB1Periph_TIM5: TIM5 clock + * @arg RCC_APB1Periph_TIM6: TIM6 clock + * @arg RCC_APB1Periph_TIM7: TIM7 clock + * @arg RCC_APB1Periph_TIM12: TIM12 clock + * @arg RCC_APB1Periph_TIM13: TIM13 clock + * @arg RCC_APB1Periph_TIM14: TIM14 clock + * @arg RCC_APB1Periph_WWDG: WWDG clock + * @arg RCC_APB1Periph_SPI2: SPI2 clock + * @arg RCC_APB1Periph_SPI3: SPI3 clock + * @arg RCC_APB1Periph_USART2: USART2 clock + * @arg RCC_APB1Periph_USART3: USART3 clock + * @arg RCC_APB1Periph_UART4: UART4 clock + * @arg RCC_APB1Periph_UART5: UART5 clock + * @arg RCC_APB1Periph_I2C1: I2C1 clock + * @arg RCC_APB1Periph_I2C2: I2C2 clock + * @arg RCC_APB1Periph_I2C3: I2C3 clock + * @arg RCC_APB1Periph_CAN1: CAN1 clock + * @arg RCC_APB1Periph_CAN2: CAN2 clock + * @arg RCC_APB1Periph_PWR: PWR clock + * @arg RCC_APB1Periph_DAC: DAC clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB1PeriphClockCmd(uint32_t RCC_APB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->APB1ENR |= RCC_APB1Periph; + } + else + { + RCC->APB1ENR &= ~RCC_APB1Periph; + } +} + +/** + * @brief Enables or disables the High Speed APB (APB2) peripheral clock. + * @note After reset, the peripheral clock (used for registers read/write access) + * is disabled and the application software has to enable this clock before + * using it. + * @param RCC_APB2Periph: specifies the APB2 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_APB2Periph_TIM1: TIM1 clock + * @arg RCC_APB2Periph_TIM8: TIM8 clock + * @arg RCC_APB2Periph_USART1: USART1 clock + * @arg RCC_APB2Periph_USART6: USART6 clock + * @arg RCC_APB2Periph_ADC1: ADC1 clock + * @arg RCC_APB2Periph_ADC2: ADC2 clock + * @arg RCC_APB2Periph_ADC3: ADC3 clock + * @arg RCC_APB2Periph_SDIO: SDIO clock + * @arg RCC_APB2Periph_SPI1: SPI1 clock + * @arg RCC_APB2Periph_SYSCFG: SYSCFG clock + * @arg RCC_APB2Periph_TIM9: TIM9 clock + * @arg RCC_APB2Periph_TIM10: TIM10 clock + * @arg RCC_APB2Periph_TIM11: TIM11 clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->APB2ENR |= RCC_APB2Periph; + } + else + { + RCC->APB2ENR &= ~RCC_APB2Periph; + } +} + +/** + * @brief Forces or releases AHB1 peripheral reset. + * @param RCC_AHB1Periph: specifies the AHB1 peripheral to reset. + * This parameter can be any combination of the following values: + * @arg RCC_AHB1Periph_GPIOA: GPIOA clock + * @arg RCC_AHB1Periph_GPIOB: GPIOB clock + * @arg RCC_AHB1Periph_GPIOC: GPIOC clock + * @arg RCC_AHB1Periph_GPIOD: GPIOD clock + * @arg RCC_AHB1Periph_GPIOE: GPIOE clock + * @arg RCC_AHB1Periph_GPIOF: GPIOF clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOI: GPIOI clock + * @arg RCC_AHB1Periph_CRC: CRC clock + * @arg RCC_AHB1Periph_DMA1: DMA1 clock + * @arg RCC_AHB1Periph_DMA2: DMA2 clock + * @arg RCC_AHB1Periph_ETH_MAC: Ethernet MAC clock + * @arg RCC_AHB1Periph_OTG_HS: USB OTG HS clock + * + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB1PeriphResetCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB1_RESET_PERIPH(RCC_AHB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB1RSTR |= RCC_AHB1Periph; + } + else + { + RCC->AHB1RSTR &= ~RCC_AHB1Periph; + } +} + +/** + * @brief Forces or releases AHB2 peripheral reset. + * @param RCC_AHB2Periph: specifies the AHB2 peripheral to reset. + * This parameter can be any combination of the following values: + * @arg RCC_AHB2Periph_DCMI: DCMI clock + * @arg RCC_AHB2Periph_CRYP: CRYP clock + * @arg RCC_AHB2Periph_HASH: HASH clock + * @arg RCC_AHB2Periph_RNG: RNG clock + * @arg RCC_AHB2Periph_OTG_FS: USB OTG FS clock + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB2PeriphResetCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB2RSTR |= RCC_AHB2Periph; + } + else + { + RCC->AHB2RSTR &= ~RCC_AHB2Periph; + } +} + +/** + * @brief Forces or releases AHB3 peripheral reset. + * @param RCC_AHB3Periph: specifies the AHB3 peripheral to reset. + * This parameter must be: RCC_AHB3Periph_FSMC + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB3PeriphResetCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB3_PERIPH(RCC_AHB3Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + RCC->AHB3RSTR |= RCC_AHB3Periph; + } + else + { + RCC->AHB3RSTR &= ~RCC_AHB3Periph; + } +} + +/** + * @brief Forces or releases Low Speed APB (APB1) peripheral reset. + * @param RCC_APB1Periph: specifies the APB1 peripheral to reset. + * This parameter can be any combination of the following values: + * @arg RCC_APB1Periph_TIM2: TIM2 clock + * @arg RCC_APB1Periph_TIM3: TIM3 clock + * @arg RCC_APB1Periph_TIM4: TIM4 clock + * @arg RCC_APB1Periph_TIM5: TIM5 clock + * @arg RCC_APB1Periph_TIM6: TIM6 clock + * @arg RCC_APB1Periph_TIM7: TIM7 clock + * @arg RCC_APB1Periph_TIM12: TIM12 clock + * @arg RCC_APB1Periph_TIM13: TIM13 clock + * @arg RCC_APB1Periph_TIM14: TIM14 clock + * @arg RCC_APB1Periph_WWDG: WWDG clock + * @arg RCC_APB1Periph_SPI2: SPI2 clock + * @arg RCC_APB1Periph_SPI3: SPI3 clock + * @arg RCC_APB1Periph_USART2: USART2 clock + * @arg RCC_APB1Periph_USART3: USART3 clock + * @arg RCC_APB1Periph_UART4: UART4 clock + * @arg RCC_APB1Periph_UART5: UART5 clock + * @arg RCC_APB1Periph_I2C1: I2C1 clock + * @arg RCC_APB1Periph_I2C2: I2C2 clock + * @arg RCC_APB1Periph_I2C3: I2C3 clock + * @arg RCC_APB1Periph_CAN1: CAN1 clock + * @arg RCC_APB1Periph_CAN2: CAN2 clock + * @arg RCC_APB1Periph_PWR: PWR clock + * @arg RCC_APB1Periph_DAC: DAC clock + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->APB1RSTR |= RCC_APB1Periph; + } + else + { + RCC->APB1RSTR &= ~RCC_APB1Periph; + } +} + +/** + * @brief Forces or releases High Speed APB (APB2) peripheral reset. + * @param RCC_APB2Periph: specifies the APB2 peripheral to reset. + * This parameter can be any combination of the following values: + * @arg RCC_APB2Periph_TIM1: TIM1 clock + * @arg RCC_APB2Periph_TIM8: TIM8 clock + * @arg RCC_APB2Periph_USART1: USART1 clock + * @arg RCC_APB2Periph_USART6: USART6 clock + * @arg RCC_APB2Periph_ADC1: ADC1 clock + * @arg RCC_APB2Periph_ADC2: ADC2 clock + * @arg RCC_APB2Periph_ADC3: ADC3 clock + * @arg RCC_APB2Periph_SDIO: SDIO clock + * @arg RCC_APB2Periph_SPI1: SPI1 clock + * @arg RCC_APB2Periph_SYSCFG: SYSCFG clock + * @arg RCC_APB2Periph_TIM9: TIM9 clock + * @arg RCC_APB2Periph_TIM10: TIM10 clock + * @arg RCC_APB2Periph_TIM11: TIM11 clock + * @param NewState: new state of the specified peripheral reset. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB2_RESET_PERIPH(RCC_APB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->APB2RSTR |= RCC_APB2Periph; + } + else + { + RCC->APB2RSTR &= ~RCC_APB2Periph; + } +} + +/** + * @brief Enables or disables the AHB1 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_AHBPeriph: specifies the AHB1 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_AHB1Periph_GPIOA: GPIOA clock + * @arg RCC_AHB1Periph_GPIOB: GPIOB clock + * @arg RCC_AHB1Periph_GPIOC: GPIOC clock + * @arg RCC_AHB1Periph_GPIOD: GPIOD clock + * @arg RCC_AHB1Periph_GPIOE: GPIOE clock + * @arg RCC_AHB1Periph_GPIOF: GPIOF clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOG: GPIOG clock + * @arg RCC_AHB1Periph_GPIOI: GPIOI clock + * @arg RCC_AHB1Periph_CRC: CRC clock + * @arg RCC_AHB1Periph_BKPSRAM: BKPSRAM interface clock + * @arg RCC_AHB1Periph_DMA1: DMA1 clock + * @arg RCC_AHB1Periph_DMA2: DMA2 clock + * @arg RCC_AHB1Periph_ETH_MAC: Ethernet MAC clock + * @arg RCC_AHB1Periph_ETH_MAC_Tx: Ethernet Transmission clock + * @arg RCC_AHB1Periph_ETH_MAC_Rx: Ethernet Reception clock + * @arg RCC_AHB1Periph_ETH_MAC_PTP: Ethernet PTP clock + * @arg RCC_AHB1Periph_OTG_HS: USB OTG HS clock + * @arg RCC_AHB1Periph_OTG_HS_ULPI: USB OTG HS ULPI clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB1PeriphClockLPModeCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB1_LPMODE_PERIPH(RCC_AHB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->AHB1LPENR |= RCC_AHB1Periph; + } + else + { + RCC->AHB1LPENR &= ~RCC_AHB1Periph; + } +} + +/** + * @brief Enables or disables the AHB2 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_AHBPeriph: specifies the AHB2 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_AHB2Periph_DCMI: DCMI clock + * @arg RCC_AHB2Periph_CRYP: CRYP clock + * @arg RCC_AHB2Periph_HASH: HASH clock + * @arg RCC_AHB2Periph_RNG: RNG clock + * @arg RCC_AHB2Periph_OTG_FS: USB OTG FS clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB2PeriphClockLPModeCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->AHB2LPENR |= RCC_AHB2Periph; + } + else + { + RCC->AHB2LPENR &= ~RCC_AHB2Periph; + } +} + +/** + * @brief Enables or disables the AHB3 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_AHBPeriph: specifies the AHB3 peripheral to gates its clock. + * This parameter must be: RCC_AHB3Periph_FSMC + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_AHB3PeriphClockLPModeCmd(uint32_t RCC_AHB3Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_AHB3_PERIPH(RCC_AHB3Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->AHB3LPENR |= RCC_AHB3Periph; + } + else + { + RCC->AHB3LPENR &= ~RCC_AHB3Periph; + } +} + +/** + * @brief Enables or disables the APB1 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_APB1Periph: specifies the APB1 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_APB1Periph_TIM2: TIM2 clock + * @arg RCC_APB1Periph_TIM3: TIM3 clock + * @arg RCC_APB1Periph_TIM4: TIM4 clock + * @arg RCC_APB1Periph_TIM5: TIM5 clock + * @arg RCC_APB1Periph_TIM6: TIM6 clock + * @arg RCC_APB1Periph_TIM7: TIM7 clock + * @arg RCC_APB1Periph_TIM12: TIM12 clock + * @arg RCC_APB1Periph_TIM13: TIM13 clock + * @arg RCC_APB1Periph_TIM14: TIM14 clock + * @arg RCC_APB1Periph_WWDG: WWDG clock + * @arg RCC_APB1Periph_SPI2: SPI2 clock + * @arg RCC_APB1Periph_SPI3: SPI3 clock + * @arg RCC_APB1Periph_USART2: USART2 clock + * @arg RCC_APB1Periph_USART3: USART3 clock + * @arg RCC_APB1Periph_UART4: UART4 clock + * @arg RCC_APB1Periph_UART5: UART5 clock + * @arg RCC_APB1Periph_I2C1: I2C1 clock + * @arg RCC_APB1Periph_I2C2: I2C2 clock + * @arg RCC_APB1Periph_I2C3: I2C3 clock + * @arg RCC_APB1Periph_CAN1: CAN1 clock + * @arg RCC_APB1Periph_CAN2: CAN2 clock + * @arg RCC_APB1Periph_PWR: PWR clock + * @arg RCC_APB1Periph_DAC: DAC clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB1PeriphClockLPModeCmd(uint32_t RCC_APB1Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->APB1LPENR |= RCC_APB1Periph; + } + else + { + RCC->APB1LPENR &= ~RCC_APB1Periph; + } +} + +/** + * @brief Enables or disables the APB2 peripheral clock during Low Power (Sleep) mode. + * @note Peripheral clock gating in SLEEP mode can be used to further reduce + * power consumption. + * @note After wakeup from SLEEP mode, the peripheral clock is enabled again. + * @note By default, all peripheral clocks are enabled during SLEEP mode. + * @param RCC_APB2Periph: specifies the APB2 peripheral to gates its clock. + * This parameter can be any combination of the following values: + * @arg RCC_APB2Periph_TIM1: TIM1 clock + * @arg RCC_APB2Periph_TIM8: TIM8 clock + * @arg RCC_APB2Periph_USART1: USART1 clock + * @arg RCC_APB2Periph_USART6: USART6 clock + * @arg RCC_APB2Periph_ADC1: ADC1 clock + * @arg RCC_APB2Periph_ADC2: ADC2 clock + * @arg RCC_APB2Periph_ADC3: ADC3 clock + * @arg RCC_APB2Periph_SDIO: SDIO clock + * @arg RCC_APB2Periph_SPI1: SPI1 clock + * @arg RCC_APB2Periph_SYSCFG: SYSCFG clock + * @arg RCC_APB2Periph_TIM9: TIM9 clock + * @arg RCC_APB2Periph_TIM10: TIM10 clock + * @arg RCC_APB2Periph_TIM11: TIM11 clock + * @param NewState: new state of the specified peripheral clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_APB2PeriphClockLPModeCmd(uint32_t RCC_APB2Periph, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + RCC->APB2LPENR |= RCC_APB2Periph; + } + else + { + RCC->APB2LPENR &= ~RCC_APB2Periph; + } +} + +/** + * @} + */ + +/** @defgroup RCC_Group4 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified RCC interrupts. + * @param RCC_IT: specifies the RCC interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg RCC_IT_LSIRDY: LSI ready interrupt + * @arg RCC_IT_LSERDY: LSE ready interrupt + * @arg RCC_IT_HSIRDY: HSI ready interrupt + * @arg RCC_IT_HSERDY: HSE ready interrupt + * @arg RCC_IT_PLLRDY: main PLL ready interrupt + * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt + * @param NewState: new state of the specified RCC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RCC_ITConfig(uint8_t RCC_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RCC_IT(RCC_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Perform Byte access to RCC_CIR[14:8] bits to enable the selected interrupts */ + *(__IO uint8_t *) CIR_BYTE2_ADDRESS |= RCC_IT; + } + else + { + /* Perform Byte access to RCC_CIR[14:8] bits to disable the selected interrupts */ + *(__IO uint8_t *) CIR_BYTE2_ADDRESS &= (uint8_t)~RCC_IT; + } +} + +/** + * @brief Checks whether the specified RCC flag is set or not. + * @param RCC_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg RCC_FLAG_HSIRDY: HSI oscillator clock ready + * @arg RCC_FLAG_HSERDY: HSE oscillator clock ready + * @arg RCC_FLAG_PLLRDY: main PLL clock ready + * @arg RCC_FLAG_PLLI2SRDY: PLLI2S clock ready + * @arg RCC_FLAG_LSERDY: LSE oscillator clock ready + * @arg RCC_FLAG_LSIRDY: LSI oscillator clock ready + * @arg RCC_FLAG_BORRST: POR/PDR or BOR reset + * @arg RCC_FLAG_PINRST: Pin reset + * @arg RCC_FLAG_PORRST: POR/PDR reset + * @arg RCC_FLAG_SFTRST: Software reset + * @arg RCC_FLAG_IWDGRST: Independent Watchdog reset + * @arg RCC_FLAG_WWDGRST: Window Watchdog reset + * @arg RCC_FLAG_LPWRRST: Low Power reset + * @retval The new state of RCC_FLAG (SET or RESET). + */ +FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG) +{ + uint32_t tmp = 0; + uint32_t statusreg = 0; + FlagStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_RCC_FLAG(RCC_FLAG)); + + /* Get the RCC register index */ + tmp = RCC_FLAG >> 5; + if (tmp == 1) /* The flag to check is in CR register */ + { + statusreg = RCC->CR; + } + else if (tmp == 2) /* The flag to check is in BDCR register */ + { + statusreg = RCC->BDCR; + } + else /* The flag to check is in CSR register */ + { + statusreg = RCC->CSR; + } + + /* Get the flag position */ + tmp = RCC_FLAG & FLAG_MASK; + if ((statusreg & ((uint32_t)1 << tmp)) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the flag status */ + return bitstatus; +} + +/** + * @brief Clears the RCC reset flags. + * The reset flags are: RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, + * RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST, RCC_FLAG_LPWRRST + * @param None + * @retval None + */ +void RCC_ClearFlag(void) +{ + /* Set RMVF bit to clear the reset flags */ + RCC->CSR |= RCC_CSR_RMVF; +} + +/** + * @brief Checks whether the specified RCC interrupt has occurred or not. + * @param RCC_IT: specifies the RCC interrupt source to check. + * This parameter can be one of the following values: + * @arg RCC_IT_LSIRDY: LSI ready interrupt + * @arg RCC_IT_LSERDY: LSE ready interrupt + * @arg RCC_IT_HSIRDY: HSI ready interrupt + * @arg RCC_IT_HSERDY: HSE ready interrupt + * @arg RCC_IT_PLLRDY: main PLL ready interrupt + * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt + * @arg RCC_IT_CSS: Clock Security System interrupt + * @retval The new state of RCC_IT (SET or RESET). + */ +ITStatus RCC_GetITStatus(uint8_t RCC_IT) +{ + ITStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_RCC_GET_IT(RCC_IT)); + + /* Check the status of the specified RCC interrupt */ + if ((RCC->CIR & RCC_IT) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + /* Return the RCC_IT status */ + return bitstatus; +} + +/** + * @brief Clears the RCC's interrupt pending bits. + * @param RCC_IT: specifies the interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg RCC_IT_LSIRDY: LSI ready interrupt + * @arg RCC_IT_LSERDY: LSE ready interrupt + * @arg RCC_IT_HSIRDY: HSI ready interrupt + * @arg RCC_IT_HSERDY: HSE ready interrupt + * @arg RCC_IT_PLLRDY: main PLL ready interrupt + * @arg RCC_IT_PLLI2SRDY: PLLI2S ready interrupt + * @arg RCC_IT_CSS: Clock Security System interrupt + * @retval None + */ +void RCC_ClearITPendingBit(uint8_t RCC_IT) +{ + /* Check the parameters */ + assert_param(IS_RCC_CLEAR_IT(RCC_IT)); + + /* Perform Byte access to RCC_CIR[23:16] bits to clear the selected interrupt + pending bits */ + *(__IO uint8_t *) CIR_BYTE3_ADDRESS = RCC_IT; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rng.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rng.c new file mode 100644 index 00000000..99d88b22 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rng.c @@ -0,0 +1,405 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rng.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Random Number Generator (RNG) peripheral: + * - Initialization and Configuration + * - Get 32 bit Random number + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable The RNG controller clock using + * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_RNG, ENABLE) function. + * + * 2. Activate the RNG peripheral using RNG_Cmd() function. + * + * 3. Wait until the 32 bit Random number Generator contains a valid + * random data (using polling/interrupt mode). For more details, + * refer to "Interrupts and flags management functions" module + * description. + * + * 4. Get the 32 bit Random number using RNG_GetRandomNumber() function + * + * 5. To get another 32 bit Random number, go to step 3. + * + * + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_rng.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup RNG + * @brief RNG driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup RNG_Private_Functions + * @{ + */ + +/** @defgroup RNG_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + This section provides functions allowing to + - Initialize the RNG peripheral + - Enable or disable the RNG peripheral + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the RNG peripheral registers to their default reset values. + * @param None + * @retval None + */ +void RNG_DeInit(void) +{ + /* Enable RNG reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_RNG, ENABLE); + + /* Release RNG from reset state */ + RCC_AHB2PeriphResetCmd(RCC_AHB2Periph_RNG, DISABLE); +} + +/** + * @brief Enables or disables the RNG peripheral. + * @param NewState: new state of the RNG peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RNG_Cmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the RNG */ + RNG->CR |= RNG_CR_RNGEN; + } + else + { + /* Disable the RNG */ + RNG->CR &= ~RNG_CR_RNGEN; + } +} +/** + * @} + */ + +/** @defgroup RNG_Group2 Get 32 bit Random number function + * @brief Get 32 bit Random number function + * + +@verbatim + =============================================================================== + Get 32 bit Random number function + =============================================================================== + This section provides a function allowing to get the 32 bit Random number + + @note Before to call this function you have to wait till DRDY flag is set, + using RNG_GetFlagStatus(RNG_FLAG_DRDY) function. + +@endverbatim + * @{ + */ + + +/** + * @brief Returns a 32-bit random number. + * + * @note Before to call this function you have to wait till DRDY (data ready) + * flag is set, using RNG_GetFlagStatus(RNG_FLAG_DRDY) function. + * @note Each time the the Random number data is read (using RNG_GetRandomNumber() + * function), the RNG_FLAG_DRDY flag is automatically cleared. + * @note In the case of a seed error, the generation of random numbers is + * interrupted for as long as the SECS bit is '1'. If a number is + * available in the RNG_DR register, it must not be used because it may + * not have enough entropy. In this case, it is recommended to clear the + * SEIS bit(using RNG_ClearFlag(RNG_FLAG_SECS) function), then disable + * and enable the RNG peripheral (using RNG_Cmd() function) to + * reinitialize and restart the RNG. + * @note In the case of a clock error, the RNG is no more able to generate + * random numbers because the PLL48CLK clock is not correct. User have + * to check that the clock controller is correctly configured to provide + * the RNG clock and clear the CEIS bit (using RNG_ClearFlag(RNG_FLAG_CECS) + * function) . The clock error has no impact on the previously generated + * random numbers, and the RNG_DR register contents can be used. + * + * @param None + * @retval 32-bit random number. + */ +uint32_t RNG_GetRandomNumber(void) +{ + /* Return the 32 bit random number from the DR register */ + return RNG->DR; +} + + +/** + * @} + */ + +/** @defgroup RNG_Group3 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides functions allowing to configure the RNG Interrupts and + to get the status and clear flags and Interrupts pending bits. + + The RNG provides 3 Interrupts sources and 3 Flags: + + Flags : + ---------- + 1. RNG_FLAG_DRDY : In the case of the RNG_DR register contains valid + random data. it is cleared by reading the valid data + (using RNG_GetRandomNumber() function). + + 2. RNG_FLAG_CECS : In the case of a seed error detection. + + 3. RNG_FLAG_SECS : In the case of a clock error detection. + + + Interrupts : + ------------ + if enabled, an RNG interrupt is pending : + + 1. In the case of the RNG_DR register contains valid random data. + This interrupt source is cleared once the RNG_DR register has been read + (using RNG_GetRandomNumber() function) until a new valid value is + computed. + + or + 2. In the case of a seed error : One of the following faulty sequences has + been detected: + - More than 64 consecutive bits at the same value (0 or 1) + - More than 32 consecutive alternance of 0 and 1 (0101010101...01) + This interrupt source is cleared using RNG_ClearITPendingBit(RNG_IT_SEI) + function. + + or + 3. In the case of a clock error : the PLL48CLK (RNG peripheral clock source) + was not correctly detected (fPLL48CLK< fHCLK/16). + This interrupt source is cleared using RNG_ClearITPendingBit(RNG_IT_CEI) + function. + @note In this case, User have to check that the clock controller is + correctly configured to provide the RNG clock. + + Managing the RNG controller events : + ------------------------------------ + The user should identify which mode will be used in his application to manage + the RNG controller events: Polling mode or Interrupt mode. + + 1. In the Polling Mode it is advised to use the following functions: + - RNG_GetFlagStatus() : to check if flags events occur. + - RNG_ClearFlag() : to clear the flags events. + + @note RNG_FLAG_DRDY can not be cleared by RNG_ClearFlag(). it is cleared only + by reading the Random number data. + + 2. In the Interrupt Mode it is advised to use the following functions: + - RNG_ITConfig() : to enable or disable the interrupt source. + - RNG_GetITStatus() : to check if Interrupt occurs. + - RNG_ClearITPendingBit() : to clear the Interrupt pending Bit + (corresponding Flag). + + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the RNG interrupt. + * @note The RNG provides 3 interrupt sources, + * - Computed data is ready event (DRDY), and + * - Seed error Interrupt (SEI) and + * - Clock error Interrupt (CEI), + * all these interrupts sources are enabled by setting the IE bit in + * CR register. However, each interrupt have its specific status bit + * (see RNG_GetITStatus() function) and clear bit except the DRDY event + * (see RNG_ClearITPendingBit() function). + * @param NewState: new state of the RNG interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RNG_ITConfig(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the RNG interrupt */ + RNG->CR |= RNG_CR_IE; + } + else + { + /* Disable the RNG interrupt */ + RNG->CR &= ~RNG_CR_IE; + } +} + +/** + * @brief Checks whether the specified RNG flag is set or not. + * @param RNG_FLAG: specifies the RNG flag to check. + * This parameter can be one of the following values: + * @arg RNG_FLAG_DRDY: Data Ready flag. + * @arg RNG_FLAG_CECS: Clock Error Current flag. + * @arg RNG_FLAG_SECS: Seed Error Current flag. + * @retval The new state of RNG_FLAG (SET or RESET). + */ +FlagStatus RNG_GetFlagStatus(uint8_t RNG_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_RNG_GET_FLAG(RNG_FLAG)); + + /* Check the status of the specified RNG flag */ + if ((RNG->SR & RNG_FLAG) != (uint8_t)RESET) + { + /* RNG_FLAG is set */ + bitstatus = SET; + } + else + { + /* RNG_FLAG is reset */ + bitstatus = RESET; + } + /* Return the RNG_FLAG status */ + return bitstatus; +} + + +/** + * @brief Clears the RNG flags. + * @param RNG_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg RNG_FLAG_CECS: Clock Error Current flag. + * @arg RNG_FLAG_SECS: Seed Error Current flag. + * @note RNG_FLAG_DRDY can not be cleared by RNG_ClearFlag() function. + * This flag is cleared only by reading the Random number data (using + * RNG_GetRandomNumber() function). + * @retval None + */ +void RNG_ClearFlag(uint8_t RNG_FLAG) +{ + /* Check the parameters */ + assert_param(IS_RNG_CLEAR_FLAG(RNG_FLAG)); + /* Clear the selected RNG flags */ + RNG->SR = ~(uint32_t)(((uint32_t)RNG_FLAG) << 4); +} + +/** + * @brief Checks whether the specified RNG interrupt has occurred or not. + * @param RNG_IT: specifies the RNG interrupt source to check. + * This parameter can be one of the following values: + * @arg RNG_IT_CEI: Clock Error Interrupt. + * @arg RNG_IT_SEI: Seed Error Interrupt. + * @retval The new state of RNG_IT (SET or RESET). + */ +ITStatus RNG_GetITStatus(uint8_t RNG_IT) +{ + ITStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_RNG_GET_IT(RNG_IT)); + + /* Check the status of the specified RNG interrupt */ + if ((RNG->SR & RNG_IT) != (uint8_t)RESET) + { + /* RNG_IT is set */ + bitstatus = SET; + } + else + { + /* RNG_IT is reset */ + bitstatus = RESET; + } + /* Return the RNG_IT status */ + return bitstatus; +} + + +/** + * @brief Clears the RNG interrupt pending bit(s). + * @param RNG_IT: specifies the RNG interrupt pending bit(s) to clear. + * This parameter can be any combination of the following values: + * @arg RNG_IT_CEI: Clock Error Interrupt. + * @arg RNG_IT_SEI: Seed Error Interrupt. + * @retval None + */ +void RNG_ClearITPendingBit(uint8_t RNG_IT) +{ + /* Check the parameters */ + assert_param(IS_RNG_IT(RNG_IT)); + + /* Clear the selected RNG interrupt pending bit */ + RNG->SR = (uint8_t)~RNG_IT; +} +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + + +/** + * @} + */ + + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rtc.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rtc.c new file mode 100644 index 00000000..7ec11f0e --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_rtc.c @@ -0,0 +1,2244 @@ +/** + ****************************************************************************** + * @file stm32f2xx_rtc.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Real-Time Clock (RTC) peripheral: + * - Initialization + * - Calendar (Time and Date) configuration + * - Alarms (Alarm A and Alarm B) configuration + * - WakeUp Timer configuration + * - Daylight Saving configuration + * - Output pin Configuration + * - Coarse Calibration configuration + * - TimeStamp configuration + * - Tampers configuration + * - Backup Data Registers configuration + * - RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * Backup Domain Operating Condition + * =================================================================== + * The real-time clock (RTC), the RTC backup registers, and the backup + * SRAM (BKP SRAM) can be powered from the VBAT voltage when the main + * VDD supply is powered off. + * To retain the content of the RTC backup registers, backup SRAM, + * and supply the RTC when VDD is turned off, VBAT pin can be connected + * to an optional standby voltage supplied by a battery or by another + * source. + * + * To allow the RTC to operate even when the main digital supply (VDD) + * is turned off, the VBAT pin powers the following blocks: + * 1 - The RTC + * 2 - The LSE oscillator + * 3 - The backup SRAM when the low power backup regulator is enabled + * 4 - PC13 to PC15 I/Os, plus PI8 I/O (when available) + * + * When the backup domain is supplied by VDD (analog switch connected + * to VDD), the following functions are available: + * 1 - PC14 and PC15 can be used as either GPIO or LSE pins + * 2 - PC13 can be used as a GPIO or as the RTC_AF1 pin + * 3 - PI8 can be used as a GPIO or as the RTC_AF2 pin + * + * When the backup domain is supplied by VBAT (analog switch connected + * to VBAT because VDD is not present), the following functions are available: + * 1 - PC14 and PC15 can be used as LSE pins only + * 2 - PC13 can be used as the RTC_AF1 pin + * 3 - PI8 can be used as the RTC_AF2 pin + * + * =================================================================== + * Backup Domain Reset + * =================================================================== + * The backup domain reset sets all RTC registers and the RCC_BDCR + * register to their reset values. The BKPSRAM is not affected by this + * reset. The only way of resetting the BKPSRAM is through the Flash + * interface by requesting a protection level change from 1 to 0. + * A backup domain reset is generated when one of the following events + * occurs: + * 1 - Software reset, triggered by setting the BDRST bit in the + * RCC Backup domain control register (RCC_BDCR). You can use the + * RCC_BackupResetCmd(). + * 2 - VDD or VBAT power on, if both supplies have previously been + * powered off. + * + * =================================================================== + * Backup Domain Access + * =================================================================== + * After reset, the backup domain (RTC registers, RTC backup data + * registers and backup SRAM) is protected against possible unwanted + * write accesses. + * To enable access to the RTC Domain and RTC registers, proceed as follows: + * - Enable the Power Controller (PWR) APB1 interface clock using the + * RCC_APB1PeriphClockCmd() function. + * - Enable access to RTC domain using the PWR_BackupAccessCmd() function. + * - Select the RTC clock source using the RCC_RTCCLKConfig() function. + * - Enable RTC Clock using the RCC_RTCCLKCmd() function. + * + * =================================================================== + * RTC Driver: how to use it + * =================================================================== + * - Enable the RTC domain access (see description in the section above) + * - Configure the RTC Prescaler (Asynchronous and Synchronous) and + * RTC hour format using the RTC_Init() function. + * + * Time and Date configuration + * =========================== + * - To configure the RTC Calendar (Time and Date) use the RTC_SetTime() + * and RTC_SetDate() functions. + * - To read the RTC Calendar, use the RTC_GetTime() and RTC_GetDate() + * functions. + * - Use the RTC_DayLightSavingConfig() function to add or sub one + * hour to the RTC Calendar. + * + * Alarm configuration + * =================== + * - To configure the RTC Alarm use the RTC_SetAlarm() function. + * - Enable the selected RTC Alarm using the RTC_AlarmCmd() function + * - To read the RTC Alarm, use the RTC_GetAlarm() function. + * + * RTC Wakeup configuration + * ======================== + * - Configure the RTC Wakeup Clock source use the RTC_WakeUpClockConfig() + * function. + * - Configure the RTC WakeUp Counter using the RTC_SetWakeUpCounter() + * function + * - Enable the RTC WakeUp using the RTC_WakeUpCmd() function + * - To read the RTC WakeUp Counter register, use the RTC_GetWakeUpCounter() + * function. + * + * Outputs configuration + * ===================== + * The RTC has 2 different outputs: + * - AFO_ALARM: this output is used to manage the RTC Alarm A, Alarm B + * and WaKeUp signals. + * To output the selected RTC signal on RTC_AF1 pin, use the + * RTC_OutputConfig() function. + * - AFO_CALIB: this output is used to manage the RTC Clock divided + * by 64 (512Hz) signal. + * To output the RTC Clock on RTC_AF1 pin, use the RTC_CalibOutputCmd() + * function. + * + * Coarse Calibration configuration + * ================================= + * - Configure the RTC Coarse Calibration Value and the corresponding + * sign using the RTC_CoarseCalibConfig() function. + * - Enable the RTC Coarse Calibration using the RTC_CoarseCalibCmd() + * function + * + * TimeStamp configuration + * ======================= + * - Configure the RTC_AF1 trigger and enables the RTC TimeStamp + * using the RTC_TimeStampCmd() function. + * - To read the RTC TimeStamp Time and Date register, use the + * RTC_GetTimeStamp() function. + * - The TAMPER1 alternate function can be mapped either to RTC_AF1(PC13) + * or RTC_AF2 (PI8) depending on the value of TAMP1INSEL bit in + * RTC_TAFCR register. You can use the RTC_TamperPinSelection() + * function to select the corresponding pin. + * + * Tamper configuration + * ==================== + * - Configure the RTC Tamper trigger using the RTC_TamperConfig() + * function. + * - Enable the RTC Tamper using the RTC_TamperCmd() function. + * - The TIMESTAMP alternate function can be mapped to either RTC_AF1 + * or RTC_AF2 depending on the value of the TSINSEL bit in the + * RTC_TAFCR register. You can use the RTC_TimeStampPinSelection() + * function to select the corresponding pin. + * + * Backup Data Registers configuration + * =================================== + * - To write to the RTC Backup Data registers, use the RTC_WriteBackupRegister() + * function. + * - To read the RTC Backup Data registers, use the RTC_ReadBackupRegister() + * function. + * + * =================================================================== + * RTC and low power modes + * =================================================================== + * The MCU can be woken up from a low power mode by an RTC alternate + * function. + * The RTC alternate functions are the RTC alarms (Alarm A and Alarm B), + * RTC wakeup, RTC tamper event detection and RTC time stamp event detection. + * These RTC alternate functions can wake up the system from the Stop + * and Standby lowpower modes. + * The system can also wake up from low power modes without depending + * on an external interrupt (Auto-wakeup mode), by using the RTC alarm + * or the RTC wakeup events. + * The RTC provides a programmable time base for waking up from the + * Stop or Standby mode at regular intervals. + * Wakeup from STOP and Standby modes is possible only when the RTC + * clock source is LSE or LSI. + * + * =================================================================== + * Selection of RTC_AF1 alternate functions + * =================================================================== + * The RTC_AF1 pin (PC13) can be used for the following purposes: + * - AFO_ALARM output + * - AFO_CALIB output + * - AFI_TAMPER + * - AFI_TIMESTAMP + * + * +-------------------------------------------------------------------------------------------------------------+ + * | Pin |AFO_ALARM |AFO_CALIB |AFI_TAMPER |AFI_TIMESTAMP | TAMP1INSEL | TSINSEL |ALARMOUTTYPE | + * | configuration | ENABLED | ENABLED | ENABLED | ENABLED |TAMPER1 pin |TIMESTAMP pin | AFO_ALARM | + * | and function | | | | | selection | selection |Configuration | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | Alarm out | | | | | Don't | Don't | | + * | output OD | 1 |Don't care|Don't care | Don't care | care | care | 0 | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | Alarm out | | | | | Don't | Don't | | + * | output PP | 1 |Don't care|Don't care | Don't care | care | care | 1 | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | Calibration out | | | | | Don't | Don't | | + * | output PP | 0 | 1 |Don't care | Don't care | care | care | Don't care | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | TAMPER input | | | | | | Don't | | + * | floating | 0 | 0 | 1 | 0 | 0 | care | Don't care | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | TIMESTAMP and | | | | | | | | + * | TAMPER input | 0 | 0 | 1 | 1 | 0 | 0 | Don't care | + * | floating | | | | | | | | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | TIMESTAMP input | | | | | Don't | | | + * | floating | 0 | 0 | 0 | 1 | care | 0 | Don't care | + * |-----------------|----------|----------|-----------|--------------|------------|--------------|--------------| + * | Standard GPIO | 0 | 0 | 0 | 0 | Don't care | Don't care | Don't care | + * +-------------------------------------------------------------------------------------------------------------+ + * + * + * =================================================================== + * Selection of RTC_AF2 alternate functions + * =================================================================== + * The RTC_AF2 pin (PI8) can be used for the following purposes: + * - AFI_TAMPER + * - AFI_TIMESTAMP + * + * +---------------------------------------------------------------------------------------+ + * | Pin |AFI_TAMPER |AFI_TIMESTAMP | TAMP1INSEL | TSINSEL |ALARMOUTTYPE | + * | configuration | ENABLED | ENABLED |TAMPER1 pin |TIMESTAMP pin | AFO_ALARM | + * | and function | | | selection | selection |Configuration | + * |-----------------|-----------|--------------|------------|--------------|--------------| + * | TAMPER input | | | | Don't | | + * | floating | 1 | 0 | 1 | care | Don't care | + * |-----------------|-----------|--------------|------------|--------------|--------------| + * | TIMESTAMP and | | | | | | + * | TAMPER input | 1 | 1 | 1 | 1 | Don't care | + * | floating | | | | | | + * |-----------------|-----------|--------------|------------|--------------|--------------| + * | TIMESTAMP input | | | Don't | | | + * | floating | 0 | 1 | care | 1 | Don't care | + * |-----------------|-----------|--------------|------------|--------------|--------------| + * | Standard GPIO | 0 | 0 | Don't care | Don't care | Don't care | + * +---------------------------------------------------------------------------------------+ + * + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_rtc.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup RTC + * @brief RTC driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* Masks Definition */ +#define RTC_TR_RESERVED_MASK ((uint32_t)0x007F7F7F) +#define RTC_DR_RESERVED_MASK ((uint32_t)0x00FFFF3F) +#define RTC_INIT_MASK ((uint32_t)0xFFFFFFFF) +#define RTC_RSF_MASK ((uint32_t)0xFFFFFF5F) +#define RTC_FLAGS_MASK ((uint32_t)(RTC_FLAG_TSOVF | RTC_FLAG_TSF | RTC_FLAG_WUTF | \ + RTC_FLAG_ALRBF | RTC_FLAG_ALRAF | RTC_FLAG_INITF | \ + RTC_FLAG_RSF | RTC_FLAG_INITS | RTC_FLAG_WUTWF | \ + RTC_FLAG_ALRBWF | RTC_FLAG_ALRAWF | RTC_FLAG_TAMP1F )) + +#define INITMODE_TIMEOUT ((uint32_t) 0x00010000) +#define SYNCHRO_TIMEOUT ((uint32_t) 0x00008000) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +static uint8_t RTC_ByteToBcd2(uint8_t Value); +static uint8_t RTC_Bcd2ToByte(uint8_t Value); + +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup RTC_Private_Functions + * @{ + */ + +/** @defgroup RTC_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + + This section provide functions allowing to initialize and configure the RTC + Prescaler (Synchronous and Asynchronous), RTC Hour format, disable RTC registers + Write protection, enter and exit the RTC initialization mode, RTC registers + synchronization check and reference clock detection enable. + + 1. The RTC Prescaler is programmed to generate the RTC 1Hz time base. It is + split into 2 programmable prescalers to minimize power consumption. + - A 7-bit asynchronous prescaler and A 13-bit synchronous prescaler. + - When both prescalers are used, it is recommended to configure the asynchronous + prescaler to a high value to minimize consumption. + + 2. All RTC registers are Write protected. Writing to the RTC registers + is enabled by writing a key into the Write Protection register, RTC_WPR. + + 3. To Configure the RTC Calendar, user application should enter initialization + mode. In this mode, the calendar counter is stopped and its value can be + updated. When the initialization sequence is complete, the calendar restarts + counting after 4 RTCCLK cycles. + + 4. To read the calendar through the shadow registers after Calendar initialization, + calendar update or after wakeup from low power modes the software must first + clear the RSF flag. The software must then wait until it is set again before + reading the calendar, which means that the calendar registers have been + correctly copied into the RTC_TR and RTC_DR shadow registers. + The RTC_WaitForSynchro() function implements the above software sequence + (RSF clear and RSF check). + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the RTC registers to their default reset values. + * @note This function doesn't reset the RTC Clock source and RTC Backup Data + * registers. + * @param None + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC registers are deinitialized + * - ERROR: RTC registers are not deinitialized + */ +ErrorStatus RTC_DeInit(void) +{ + __IO uint32_t wutcounter = 0x00; + uint32_t wutwfstatus = 0x00; + ErrorStatus status = ERROR; + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Reset TR, DR and CR registers */ + RTC->TR = (uint32_t)0x00000000; + RTC->DR = (uint32_t)0x00002101; + /* Reset All CR bits except CR[2:0] */ + RTC->CR &= (uint32_t)0x00000007; + + /* Wait till RTC WUTWF flag is set and if Time out is reached exit */ + do + { + wutwfstatus = RTC->ISR & RTC_ISR_WUTWF; + wutcounter++; + } while((wutcounter != INITMODE_TIMEOUT) && (wutwfstatus == 0x00)); + + if ((RTC->ISR & RTC_ISR_WUTWF) == RESET) + { + status = ERROR; + } + else + { + /* Reset all RTC CR register bits */ + RTC->CR &= (uint32_t)0x00000000; + RTC->WUTR = (uint32_t)0x0000FFFF; + RTC->PRER = (uint32_t)0x007F00FF; + RTC->CALIBR = (uint32_t)0x00000000; + RTC->ALRMAR = (uint32_t)0x00000000; + RTC->ALRMBR = (uint32_t)0x00000000; + + /* Reset ISR register and exit initialization mode */ + RTC->ISR = (uint32_t)0x00000000; + + /* Reset Tamper and alternate functions configuration register */ + RTC->TAFCR = 0x00000000; + + if(RTC_WaitForSynchro() == ERROR) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + } + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Initializes the RTC registers according to the specified parameters + * in RTC_InitStruct. + * @param RTC_InitStruct: pointer to a RTC_InitTypeDef structure that contains + * the configuration information for the RTC peripheral. + * @note The RTC Prescaler register is write protected and can be written in + * initialization mode only. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC registers are initialized + * - ERROR: RTC registers are not initialized + */ +ErrorStatus RTC_Init(RTC_InitTypeDef* RTC_InitStruct) +{ + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_HOUR_FORMAT(RTC_InitStruct->RTC_HourFormat)); + assert_param(IS_RTC_ASYNCH_PREDIV(RTC_InitStruct->RTC_AsynchPrediv)); + assert_param(IS_RTC_SYNCH_PREDIV(RTC_InitStruct->RTC_SynchPrediv)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Clear RTC CR FMT Bit */ + RTC->CR &= ((uint32_t)~(RTC_CR_FMT)); + /* Set RTC_CR register */ + RTC->CR |= ((uint32_t)(RTC_InitStruct->RTC_HourFormat)); + + /* Configure the RTC PRER */ + RTC->PRER = (uint32_t)(RTC_InitStruct->RTC_SynchPrediv); + RTC->PRER |= (uint32_t)(RTC_InitStruct->RTC_AsynchPrediv << 16); + + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + status = SUCCESS; + } + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Fills each RTC_InitStruct member with its default value. + * @param RTC_InitStruct: pointer to a RTC_InitTypeDef structure which will be + * initialized. + * @retval None + */ +void RTC_StructInit(RTC_InitTypeDef* RTC_InitStruct) +{ + /* Initialize the RTC_HourFormat member */ + RTC_InitStruct->RTC_HourFormat = RTC_HourFormat_24; + + /* Initialize the RTC_AsynchPrediv member */ + RTC_InitStruct->RTC_AsynchPrediv = (uint32_t)0x7F; + + /* Initialize the RTC_SynchPrediv member */ + RTC_InitStruct->RTC_SynchPrediv = (uint32_t)0xFF; +} + +/** + * @brief Enables or disables the RTC registers write protection. + * @note All the RTC registers are write protected except for RTC_ISR[13:8], + * RTC_TAFCR and RTC_BKPxR. + * @note Writing a wrong key reactivates the write protection. + * @note The protection mechanism is not affected by system reset. + * @param NewState: new state of the write protection. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_WriteProtectionCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + } + else + { + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + } +} + +/** + * @brief Enters the RTC Initialization mode. + * @note The RTC Initialization mode is write protected, use the + * RTC_WriteProtectionCmd(DISABLE) before calling this function. + * @param None + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC is in Init mode + * - ERROR: RTC is not in Init mode + */ +ErrorStatus RTC_EnterInitMode(void) +{ + __IO uint32_t initcounter = 0x00; + ErrorStatus status = ERROR; + uint32_t initstatus = 0x00; + + /* Check if the Initialization mode is set */ + if ((RTC->ISR & RTC_ISR_INITF) == (uint32_t)RESET) + { + /* Set the Initialization mode */ + RTC->ISR = (uint32_t)RTC_INIT_MASK; + + /* Wait till RTC is in INIT state and if Time out is reached exit */ + do + { + initstatus = RTC->ISR & RTC_ISR_INITF; + initcounter++; + } while((initcounter != INITMODE_TIMEOUT) && (initstatus == 0x00)); + + if ((RTC->ISR & RTC_ISR_INITF) != RESET) + { + status = SUCCESS; + } + else + { + status = ERROR; + } + } + else + { + status = SUCCESS; + } + + return (status); +} + +/** + * @brief Exits the RTC Initialization mode. + * @note When the initialization sequence is complete, the calendar restarts + * counting after 4 RTCCLK cycles. + * @note The RTC Initialization mode is write protected, use the + * RTC_WriteProtectionCmd(DISABLE) before calling this function. + * @param None + * @retval None + */ +void RTC_ExitInitMode(void) +{ + /* Exit Initialization mode */ + RTC->ISR &= (uint32_t)~RTC_ISR_INIT; +} + +/** + * @brief Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are + * synchronized with RTC APB clock. + * @note The RTC Resynchronization mode is write protected, use the + * RTC_WriteProtectionCmd(DISABLE) before calling this function. + * @note To read the calendar through the shadow registers after Calendar + * initialization, calendar update or after wakeup from low power modes + * the software must first clear the RSF flag. + * The software must then wait until it is set again before reading + * the calendar, which means that the calendar registers have been + * correctly copied into the RTC_TR and RTC_DR shadow registers. + * @param None + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC registers are synchronised + * - ERROR: RTC registers are not synchronised + */ +ErrorStatus RTC_WaitForSynchro(void) +{ + __IO uint32_t synchrocounter = 0; + ErrorStatus status = ERROR; + uint32_t synchrostatus = 0x00; + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Clear RSF flag */ + RTC->ISR &= (uint32_t)RTC_RSF_MASK; + + /* Wait the registers to be synchronised */ + do + { + synchrostatus = RTC->ISR & RTC_ISR_RSF; + synchrocounter++; + } while((synchrocounter != SYNCHRO_TIMEOUT) && (synchrostatus == 0x00)); + + if ((RTC->ISR & RTC_ISR_RSF) != RESET) + { + status = SUCCESS; + } + else + { + status = ERROR; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return (status); +} + +/** + * @brief Enables or disables the RTC reference clock detection. + * @param NewState: new state of the RTC reference clock. + * This parameter can be: ENABLE or DISABLE. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC reference clock detection is enabled + * - ERROR: RTC reference clock detection is disabled + */ +ErrorStatus RTC_RefClockCmd(FunctionalState NewState) +{ + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + if (NewState != DISABLE) + { + /* Enable the RTC reference clock detection */ + RTC->CR |= RTC_CR_REFCKON; + } + else + { + /* Disable the RTC reference clock detection */ + RTC->CR &= ~RTC_CR_REFCKON; + } + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + status = SUCCESS; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @} + */ + +/** @defgroup RTC_Group2 Time and Date configuration functions + * @brief Time and Date configuration functions + * +@verbatim + =============================================================================== + Time and Date configuration functions + =============================================================================== + + This section provide functions allowing to program and read the RTC Calendar + (Time and Date). + +@endverbatim + * @{ + */ + +/** + * @brief Set the RTC current time. + * @param RTC_Format: specifies the format of the entered parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_TimeStruct: pointer to a RTC_TimeTypeDef structure that contains + * the time configuration information for the RTC. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Time register is configured + * - ERROR: RTC Time register is not configured + */ +ErrorStatus RTC_SetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct) +{ + uint32_t tmpreg = 0; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + if (RTC_Format == RTC_Format_BIN) + { + if ((RTC->CR & RTC_CR_FMT) != (uint32_t)RESET) + { + assert_param(IS_RTC_HOUR12(RTC_TimeStruct->RTC_Hours)); + assert_param(IS_RTC_H12(RTC_TimeStruct->RTC_H12)); + } + else + { + RTC_TimeStruct->RTC_H12 = 0x00; + assert_param(IS_RTC_HOUR24(RTC_TimeStruct->RTC_Hours)); + } + assert_param(IS_RTC_MINUTES(RTC_TimeStruct->RTC_Minutes)); + assert_param(IS_RTC_SECONDS(RTC_TimeStruct->RTC_Seconds)); + } + else + { + if ((RTC->CR & RTC_CR_FMT) != (uint32_t)RESET) + { + tmpreg = RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Hours); + assert_param(IS_RTC_HOUR12(tmpreg)); + assert_param(IS_RTC_H12(RTC_TimeStruct->RTC_H12)); + } + else + { + RTC_TimeStruct->RTC_H12 = 0x00; + assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Hours))); + } + assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Minutes))); + assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Seconds))); + } + + /* Check the input parameters format */ + if (RTC_Format != RTC_Format_BIN) + { + tmpreg = (((uint32_t)(RTC_TimeStruct->RTC_Hours) << 16) | \ + ((uint32_t)(RTC_TimeStruct->RTC_Minutes) << 8) | \ + ((uint32_t)RTC_TimeStruct->RTC_Seconds) | \ + ((uint32_t)(RTC_TimeStruct->RTC_H12) << 16)); + } + else + { + tmpreg = (uint32_t)(((uint32_t)RTC_ByteToBcd2(RTC_TimeStruct->RTC_Hours) << 16) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_TimeStruct->RTC_Minutes) << 8) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_TimeStruct->RTC_Seconds)) | \ + (((uint32_t)RTC_TimeStruct->RTC_H12) << 16)); + } + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Set the RTC_TR register */ + RTC->TR = (uint32_t)(tmpreg & RTC_TR_RESERVED_MASK); + + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + if(RTC_WaitForSynchro() == ERROR) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + + } + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Fills each RTC_TimeStruct member with its default value + * (Time = 00h:00min:00sec). + * @param RTC_TimeStruct: pointer to a RTC_TimeTypeDef structure which will be + * initialized. + * @retval None + */ +void RTC_TimeStructInit(RTC_TimeTypeDef* RTC_TimeStruct) +{ + /* Time = 00h:00min:00sec */ + RTC_TimeStruct->RTC_H12 = RTC_H12_AM; + RTC_TimeStruct->RTC_Hours = 0; + RTC_TimeStruct->RTC_Minutes = 0; + RTC_TimeStruct->RTC_Seconds = 0; +} + +/** + * @brief Get the RTC current Time. + * @param RTC_Format: specifies the format of the returned parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_TimeStruct: pointer to a RTC_TimeTypeDef structure that will + * contain the returned current time configuration. + * @retval None + */ +void RTC_GetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + /* Get the RTC_TR register */ + tmpreg = (uint32_t)(RTC->TR & RTC_TR_RESERVED_MASK); + + /* Fill the structure fields with the read parameters */ + RTC_TimeStruct->RTC_Hours = (uint8_t)((tmpreg & (RTC_TR_HT | RTC_TR_HU)) >> 16); + RTC_TimeStruct->RTC_Minutes = (uint8_t)((tmpreg & (RTC_TR_MNT | RTC_TR_MNU)) >>8); + RTC_TimeStruct->RTC_Seconds = (uint8_t)(tmpreg & (RTC_TR_ST | RTC_TR_SU)); + RTC_TimeStruct->RTC_H12 = (uint8_t)((tmpreg & (RTC_TR_PM)) >> 16); + + /* Check the input parameters format */ + if (RTC_Format == RTC_Format_BIN) + { + /* Convert the structure parameters to Binary format */ + RTC_TimeStruct->RTC_Hours = (uint8_t)RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Hours); + RTC_TimeStruct->RTC_Minutes = (uint8_t)RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Minutes); + RTC_TimeStruct->RTC_Seconds = (uint8_t)RTC_Bcd2ToByte(RTC_TimeStruct->RTC_Seconds); + } +} + +/** + * @brief Set the RTC current date. + * @param RTC_Format: specifies the format of the entered parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_DateStruct: pointer to a RTC_DateTypeDef structure that contains + * the date configuration information for the RTC. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Date register is configured + * - ERROR: RTC Date register is not configured + */ +ErrorStatus RTC_SetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct) +{ + uint32_t tmpreg = 0; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + if ((RTC_Format == RTC_Format_BIN) && ((RTC_DateStruct->RTC_Month & 0x10) == 0x10)) + { + RTC_DateStruct->RTC_Month = (RTC_DateStruct->RTC_Month & (uint32_t)~(0x10)) + 0x0A; + } + if (RTC_Format == RTC_Format_BIN) + { + assert_param(IS_RTC_YEAR(RTC_DateStruct->RTC_Year)); + assert_param(IS_RTC_MONTH(RTC_DateStruct->RTC_Month)); + assert_param(IS_RTC_DATE(RTC_DateStruct->RTC_Date)); + } + else + { + assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(RTC_DateStruct->RTC_Year))); + tmpreg = RTC_Bcd2ToByte(RTC_DateStruct->RTC_Month); + assert_param(IS_RTC_MONTH(tmpreg)); + tmpreg = RTC_Bcd2ToByte(RTC_DateStruct->RTC_Date); + assert_param(IS_RTC_DATE(tmpreg)); + } + assert_param(IS_RTC_WEEKDAY(RTC_DateStruct->RTC_WeekDay)); + + /* Check the input parameters format */ + if (RTC_Format != RTC_Format_BIN) + { + tmpreg = ((((uint32_t)RTC_DateStruct->RTC_Year) << 16) | \ + (((uint32_t)RTC_DateStruct->RTC_Month) << 8) | \ + ((uint32_t)RTC_DateStruct->RTC_Date) | \ + (((uint32_t)RTC_DateStruct->RTC_WeekDay) << 13)); + } + else + { + tmpreg = (((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->RTC_Year) << 16) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->RTC_Month) << 8) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_DateStruct->RTC_Date)) | \ + ((uint32_t)RTC_DateStruct->RTC_WeekDay << 13)); + } + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Set the RTC_DR register */ + RTC->DR = (uint32_t)(tmpreg & RTC_DR_RESERVED_MASK); + + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + if(RTC_WaitForSynchro() == ERROR) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + } + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Fills each RTC_DateStruct member with its default value + * (Monday, January 01 xx00). + * @param RTC_DateStruct: pointer to a RTC_DateTypeDef structure which will be + * initialized. + * @retval None + */ +void RTC_DateStructInit(RTC_DateTypeDef* RTC_DateStruct) +{ + /* Monday, January 01 xx00 */ + RTC_DateStruct->RTC_WeekDay = RTC_Weekday_Monday; + RTC_DateStruct->RTC_Date = 1; + RTC_DateStruct->RTC_Month = RTC_Month_January; + RTC_DateStruct->RTC_Year = 0; +} + +/** + * @brief Get the RTC current date. + * @param RTC_Format: specifies the format of the returned parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_DateStruct: pointer to a RTC_DateTypeDef structure that will + * contain the returned current date configuration. + * @retval None + */ +void RTC_GetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + /* Get the RTC_TR register */ + tmpreg = (uint32_t)(RTC->DR & RTC_DR_RESERVED_MASK); + + /* Fill the structure fields with the read parameters */ + RTC_DateStruct->RTC_Year = (uint8_t)((tmpreg & (RTC_DR_YT | RTC_DR_YU)) >> 16); + RTC_DateStruct->RTC_Month = (uint8_t)((tmpreg & (RTC_DR_MT | RTC_DR_MU)) >> 8); + RTC_DateStruct->RTC_Date = (uint8_t)(tmpreg & (RTC_DR_DT | RTC_DR_DU)); + RTC_DateStruct->RTC_WeekDay = (uint8_t)((tmpreg & (RTC_DR_WDU)) >> 13); + + /* Check the input parameters format */ + if (RTC_Format == RTC_Format_BIN) + { + /* Convert the structure parameters to Binary format */ + RTC_DateStruct->RTC_Year = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Year); + RTC_DateStruct->RTC_Month = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Month); + RTC_DateStruct->RTC_Date = (uint8_t)RTC_Bcd2ToByte(RTC_DateStruct->RTC_Date); + } +} + +/** + * @} + */ + +/** @defgroup RTC_Group3 Alarms configuration functions + * @brief Alarms (Alarm A and Alarm B) configuration functions + * +@verbatim + =============================================================================== + Alarms (Alarm A and Alarm B) configuration functions + =============================================================================== + + This section provide functions allowing to program and read the RTC Alarms. + +@endverbatim + * @{ + */ + +/** + * @brief Set the specified RTC Alarm. + * @note The Alarm register can only be written when the corresponding Alarm + * is disabled (Use the RTC_AlarmCmd(DISABLE)). + * @param RTC_Format: specifies the format of the returned parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_Alarm: specifies the alarm to be configured. + * This parameter can be one of the following values: + * @arg RTC_Alarm_A: to select Alarm A + * @arg RTC_Alarm_B: to select Alarm B + * @param RTC_AlarmStruct: pointer to a RTC_AlarmTypeDef structure that + * contains the alarm configuration parameters. + * @retval None + */ +void RTC_SetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + assert_param(IS_RTC_ALARM(RTC_Alarm)); + assert_param(IS_ALARM_MASK(RTC_AlarmStruct->RTC_AlarmMask)); + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(RTC_AlarmStruct->RTC_AlarmDateWeekDaySel)); + + if (RTC_Format == RTC_Format_BIN) + { + if ((RTC->CR & RTC_CR_FMT) != (uint32_t)RESET) + { + assert_param(IS_RTC_HOUR12(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours)); + assert_param(IS_RTC_H12(RTC_AlarmStruct->RTC_AlarmTime.RTC_H12)); + } + else + { + RTC_AlarmStruct->RTC_AlarmTime.RTC_H12 = 0x00; + assert_param(IS_RTC_HOUR24(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours)); + } + assert_param(IS_RTC_MINUTES(RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes)); + assert_param(IS_RTC_SECONDS(RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds)); + + if(RTC_AlarmStruct->RTC_AlarmDateWeekDaySel == RTC_AlarmDateWeekDaySel_Date) + { + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_AlarmStruct->RTC_AlarmDateWeekDay)); + } + else + { + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_AlarmStruct->RTC_AlarmDateWeekDay)); + } + } + else + { + if ((RTC->CR & RTC_CR_FMT) != (uint32_t)RESET) + { + tmpreg = RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours); + assert_param(IS_RTC_HOUR12(tmpreg)); + assert_param(IS_RTC_H12(RTC_AlarmStruct->RTC_AlarmTime.RTC_H12)); + } + else + { + RTC_AlarmStruct->RTC_AlarmTime.RTC_H12 = 0x00; + assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours))); + } + + assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes))); + assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds))); + + if(RTC_AlarmStruct->RTC_AlarmDateWeekDaySel == RTC_AlarmDateWeekDaySel_Date) + { + tmpreg = RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmDateWeekDay); + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(tmpreg)); + } + else + { + tmpreg = RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmDateWeekDay); + assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(tmpreg)); + } + } + + /* Check the input parameters format */ + if (RTC_Format != RTC_Format_BIN) + { + tmpreg = (((uint32_t)(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours) << 16) | \ + ((uint32_t)(RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes) << 8) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds) | \ + ((uint32_t)(RTC_AlarmStruct->RTC_AlarmTime.RTC_H12) << 16) | \ + ((uint32_t)(RTC_AlarmStruct->RTC_AlarmDateWeekDay) << 24) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmDateWeekDaySel) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmMask)); + } + else + { + tmpreg = (((uint32_t)RTC_ByteToBcd2(RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours) << 16) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes) << 8) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds)) | \ + ((uint32_t)(RTC_AlarmStruct->RTC_AlarmTime.RTC_H12) << 16) | \ + ((uint32_t)RTC_ByteToBcd2(RTC_AlarmStruct->RTC_AlarmDateWeekDay) << 24) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmDateWeekDaySel) | \ + ((uint32_t)RTC_AlarmStruct->RTC_AlarmMask)); + } + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Configure the Alarm register */ + if (RTC_Alarm == RTC_Alarm_A) + { + RTC->ALRMAR = (uint32_t)tmpreg; + } + else + { + RTC->ALRMBR = (uint32_t)tmpreg; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Fills each RTC_AlarmStruct member with its default value + * (Time = 00h:00mn:00sec / Date = 1st day of the month/Mask = + * all fields are masked). + * @param RTC_AlarmStruct: pointer to a @ref RTC_AlarmTypeDef structure which + * will be initialized. + * @retval None + */ +void RTC_AlarmStructInit(RTC_AlarmTypeDef* RTC_AlarmStruct) +{ + /* Alarm Time Settings : Time = 00h:00mn:00sec */ + RTC_AlarmStruct->RTC_AlarmTime.RTC_H12 = RTC_H12_AM; + RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours = 0; + RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes = 0; + RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds = 0; + + /* Alarm Date Settings : Date = 1st day of the month */ + RTC_AlarmStruct->RTC_AlarmDateWeekDaySel = RTC_AlarmDateWeekDaySel_Date; + RTC_AlarmStruct->RTC_AlarmDateWeekDay = 1; + + /* Alarm Masks Settings : Mask = all fields are not masked */ + RTC_AlarmStruct->RTC_AlarmMask = RTC_AlarmMask_None; +} + +/** + * @brief Get the RTC Alarm value and masks. + * @param RTC_Format: specifies the format of the output parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_Alarm: specifies the alarm to be read. + * This parameter can be one of the following values: + * @arg RTC_Alarm_A: to select Alarm A + * @arg RTC_Alarm_B: to select Alarm B + * @param RTC_AlarmStruct: pointer to a RTC_AlarmTypeDef structure that will + * contains the output alarm configuration values. + * @retval None + */ +void RTC_GetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + assert_param(IS_RTC_ALARM(RTC_Alarm)); + + /* Get the RTC_ALRMxR register */ + if (RTC_Alarm == RTC_Alarm_A) + { + tmpreg = (uint32_t)(RTC->ALRMAR); + } + else + { + tmpreg = (uint32_t)(RTC->ALRMBR); + } + + /* Fill the structure with the read parameters */ + RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours = (uint32_t)((tmpreg & (RTC_ALRMAR_HT | \ + RTC_ALRMAR_HU)) >> 16); + RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes = (uint32_t)((tmpreg & (RTC_ALRMAR_MNT | \ + RTC_ALRMAR_MNU)) >> 8); + RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds = (uint32_t)(tmpreg & (RTC_ALRMAR_ST | \ + RTC_ALRMAR_SU)); + RTC_AlarmStruct->RTC_AlarmTime.RTC_H12 = (uint32_t)((tmpreg & RTC_ALRMAR_PM) >> 16); + RTC_AlarmStruct->RTC_AlarmDateWeekDay = (uint32_t)((tmpreg & (RTC_ALRMAR_DT | RTC_ALRMAR_DU)) >> 24); + RTC_AlarmStruct->RTC_AlarmDateWeekDaySel = (uint32_t)(tmpreg & RTC_ALRMAR_WDSEL); + RTC_AlarmStruct->RTC_AlarmMask = (uint32_t)(tmpreg & RTC_AlarmMask_All); + + if (RTC_Format == RTC_Format_BIN) + { + RTC_AlarmStruct->RTC_AlarmTime.RTC_Hours = RTC_Bcd2ToByte(RTC_AlarmStruct-> \ + RTC_AlarmTime.RTC_Hours); + RTC_AlarmStruct->RTC_AlarmTime.RTC_Minutes = RTC_Bcd2ToByte(RTC_AlarmStruct-> \ + RTC_AlarmTime.RTC_Minutes); + RTC_AlarmStruct->RTC_AlarmTime.RTC_Seconds = RTC_Bcd2ToByte(RTC_AlarmStruct-> \ + RTC_AlarmTime.RTC_Seconds); + RTC_AlarmStruct->RTC_AlarmDateWeekDay = RTC_Bcd2ToByte(RTC_AlarmStruct->RTC_AlarmDateWeekDay); + } +} + +/** + * @brief Enables or disables the specified RTC Alarm. + * @param RTC_Alarm: specifies the alarm to be configured. + * This parameter can be any combination of the following values: + * @arg RTC_Alarm_A: to select Alarm A + * @arg RTC_Alarm_B: to select Alarm B + * @param NewState: new state of the specified alarm. + * This parameter can be: ENABLE or DISABLE. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Alarm is enabled/disabled + * - ERROR: RTC Alarm is not enabled/disabled + */ +ErrorStatus RTC_AlarmCmd(uint32_t RTC_Alarm, FunctionalState NewState) +{ + __IO uint32_t alarmcounter = 0x00; + uint32_t alarmstatus = 0x00; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_CMD_ALARM(RTC_Alarm)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Configure the Alarm state */ + if (NewState != DISABLE) + { + RTC->CR |= (uint32_t)RTC_Alarm; + + status = SUCCESS; + } + else + { + /* Disable the Alarm in RTC_CR register */ + RTC->CR &= (uint32_t)~RTC_Alarm; + + /* Wait till RTC ALRxWF flag is set and if Time out is reached exit */ + do + { + alarmstatus = RTC->ISR & (RTC_Alarm >> 8); + alarmcounter++; + } while((alarmcounter != INITMODE_TIMEOUT) && (alarmstatus == 0x00)); + + if ((RTC->ISR & (RTC_Alarm >> 8)) == RESET) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @} + */ + +/** @defgroup RTC_Group4 WakeUp Timer configuration functions + * @brief WakeUp Timer configuration functions + * +@verbatim + =============================================================================== + WakeUp Timer configuration functions + =============================================================================== + + This section provide functions allowing to program and read the RTC WakeUp. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the RTC Wakeup clock source. + * @note The WakeUp Clock source can only be changed when the RTC WakeUp + * is disabled (Use the RTC_WakeUpCmd(DISABLE)). + * @param RTC_WakeUpClock: Wakeup Clock source. + * This parameter can be one of the following values: + * @arg RTC_WakeUpClock_RTCCLK_Div16: RTC Wakeup Counter Clock = RTCCLK/16 + * @arg RTC_WakeUpClock_RTCCLK_Div8: RTC Wakeup Counter Clock = RTCCLK/8 + * @arg RTC_WakeUpClock_RTCCLK_Div4: RTC Wakeup Counter Clock = RTCCLK/4 + * @arg RTC_WakeUpClock_RTCCLK_Div2: RTC Wakeup Counter Clock = RTCCLK/2 + * @arg RTC_WakeUpClock_CK_SPRE_16bits: RTC Wakeup Counter Clock = CK_SPRE + * @arg RTC_WakeUpClock_CK_SPRE_17bits: RTC Wakeup Counter Clock = CK_SPRE + * @retval None + */ +void RTC_WakeUpClockConfig(uint32_t RTC_WakeUpClock) +{ + /* Check the parameters */ + assert_param(IS_RTC_WAKEUP_CLOCK(RTC_WakeUpClock)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Clear the Wakeup Timer clock source bits in CR register */ + RTC->CR &= (uint32_t)~RTC_CR_WUCKSEL; + + /* Configure the clock source */ + RTC->CR |= (uint32_t)RTC_WakeUpClock; + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Configures the RTC Wakeup counter. + * @note The RTC WakeUp counter can only be written when the RTC WakeUp + * is disabled (Use the RTC_WakeUpCmd(DISABLE)). + * @param RTC_WakeUpCounter: specifies the WakeUp counter. + * This parameter can be a value from 0x0000 to 0xFFFF. + * @retval None + */ +void RTC_SetWakeUpCounter(uint32_t RTC_WakeUpCounter) +{ + /* Check the parameters */ + assert_param(IS_RTC_WAKEUP_COUNTER(RTC_WakeUpCounter)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Configure the Wakeup Timer counter */ + RTC->WUTR = (uint32_t)RTC_WakeUpCounter; + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Returns the RTC WakeUp timer counter value. + * @param None + * @retval The RTC WakeUp Counter value. + */ +uint32_t RTC_GetWakeUpCounter(void) +{ + /* Get the counter value */ + return ((uint32_t)(RTC->WUTR & RTC_WUTR_WUT)); +} + +/** + * @brief Enables or Disables the RTC WakeUp timer. + * @param NewState: new state of the WakeUp timer. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +ErrorStatus RTC_WakeUpCmd(FunctionalState NewState) +{ + __IO uint32_t wutcounter = 0x00; + uint32_t wutwfstatus = 0x00; + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + if (NewState != DISABLE) + { + /* Enable the Wakeup Timer */ + RTC->CR |= (uint32_t)RTC_CR_WUTE; + status = SUCCESS; + } + else + { + /* Disable the Wakeup Timer */ + RTC->CR &= (uint32_t)~RTC_CR_WUTE; + /* Wait till RTC WUTWF flag is set and if Time out is reached exit */ + do + { + wutwfstatus = RTC->ISR & RTC_ISR_WUTWF; + wutcounter++; + } while((wutcounter != INITMODE_TIMEOUT) && (wutwfstatus == 0x00)); + + if ((RTC->ISR & RTC_ISR_WUTWF) == RESET) + { + status = ERROR; + } + else + { + status = SUCCESS; + } + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @} + */ + +/** @defgroup RTC_Group5 Daylight Saving configuration functions + * @brief Daylight Saving configuration functions + * +@verbatim + =============================================================================== + Daylight Saving configuration functions + =============================================================================== + + This section provide functions allowing to configure the RTC DayLight Saving. + +@endverbatim + * @{ + */ + +/** + * @brief Adds or substract one hour from the current time. + * @param RTC_DayLightSaveOperation: the value of hour adjustment. + * This parameter can be one of the following values: + * @arg RTC_DayLightSaving_SUB1H: Substract one hour (winter time) + * @arg RTC_DayLightSaving_ADD1H: Add one hour (summer time) + * @param RTC_StoreOperation: Specifies the value to be written in the BCK bit + * in CR register to store the operation. + * This parameter can be one of the following values: + * @arg RTC_StoreOperation_Reset: BCK Bit Reset + * @arg RTC_StoreOperation_Set: BCK Bit Set + * @retval None + */ +void RTC_DayLightSavingConfig(uint32_t RTC_DayLightSaving, uint32_t RTC_StoreOperation) +{ + /* Check the parameters */ + assert_param(IS_RTC_DAYLIGHT_SAVING(RTC_DayLightSaving)); + assert_param(IS_RTC_STORE_OPERATION(RTC_StoreOperation)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Clear the bits to be configured */ + RTC->CR &= (uint32_t)~(RTC_CR_BCK); + + /* Configure the RTC_CR register */ + RTC->CR |= (uint32_t)(RTC_DayLightSaving | RTC_StoreOperation); + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Returns the RTC Day Light Saving stored operation. + * @param None + * @retval RTC Day Light Saving stored operation. + * - RTC_StoreOperation_Reset + * - RTC_StoreOperation_Set + */ +uint32_t RTC_GetStoreOperation(void) +{ + return (RTC->CR & RTC_CR_BCK); +} + +/** + * @} + */ + +/** @defgroup RTC_Group6 Output pin Configuration function + * @brief Output pin Configuration function + * +@verbatim + =============================================================================== + Output pin Configuration function + =============================================================================== + + This section provide functions allowing to configure the RTC Output source. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the RTC output source (AFO_ALARM). + * @param RTC_Output: Specifies which signal will be routed to the RTC output. + * This parameter can be one of the following values: + * @arg RTC_Output_Disable: No output selected + * @arg RTC_Output_AlarmA: signal of AlarmA mapped to output + * @arg RTC_Output_AlarmB: signal of AlarmB mapped to output + * @arg RTC_Output_WakeUp: signal of WakeUp mapped to output + * @param RTC_OutputPolarity: Specifies the polarity of the output signal. + * This parameter can be one of the following: + * @arg RTC_OutputPolarity_High: The output pin is high when the + * ALRAF/ALRBF/WUTF is high (depending on OSEL) + * @arg RTC_OutputPolarity_Low: The output pin is low when the + * ALRAF/ALRBF/WUTF is high (depending on OSEL) + * @retval None + */ +void RTC_OutputConfig(uint32_t RTC_Output, uint32_t RTC_OutputPolarity) +{ + /* Check the parameters */ + assert_param(IS_RTC_OUTPUT(RTC_Output)); + assert_param(IS_RTC_OUTPUT_POL(RTC_OutputPolarity)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Clear the bits to be configured */ + RTC->CR &= (uint32_t)~(RTC_CR_OSEL | RTC_CR_POL); + + /* Configure the output selection and polarity */ + RTC->CR |= (uint32_t)(RTC_Output | RTC_OutputPolarity); + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @} + */ + +/** @defgroup RTC_Group7 Coarse Calibration configuration functions + * @brief Coarse Calibration configuration functions + * +@verbatim + =============================================================================== + Coarse Calibration configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the Coarse calibration parameters. + * @param RTC_CalibSign: specifies the sign of the coarse calibration value. + * This parameter can be one of the following values: + * @arg RTC_CalibSign_Positive: The value sign is positive + * @arg RTC_CalibSign_Negative: The value sign is negative + * @param Value: value of coarse calibration expressed in ppm (coded on 5 bits). + * + * @note This Calibration value should be between 0 and 63 when using negative + * sign with a 2-ppm step. + * + * @note This Calibration value should be between 0 and 126 when using positive + * sign with a 4-ppm step. + * + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Coarse calibration are initialized + * - ERROR: RTC Coarse calibration are not initialized + */ +ErrorStatus RTC_CoarseCalibConfig(uint32_t RTC_CalibSign, uint32_t Value) +{ + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_RTC_CALIB_SIGN(RTC_CalibSign)); + assert_param(IS_RTC_CALIB_VALUE(Value)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + /* Set the coarse calibration value */ + RTC->CALIBR = (uint32_t)(RTC_CalibSign | Value); + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + status = SUCCESS; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Enables or disables the Coarse calibration process. + * @param NewState: new state of the Coarse calibration. + * This parameter can be: ENABLE or DISABLE. + * @retval An ErrorStatus enumeration value: + * - SUCCESS: RTC Coarse calibration are enabled/disabled + * - ERROR: RTC Coarse calibration are not enabled/disabled + */ +ErrorStatus RTC_CoarseCalibCmd(FunctionalState NewState) +{ + ErrorStatus status = ERROR; + + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Set Initialization mode */ + if (RTC_EnterInitMode() == ERROR) + { + status = ERROR; + } + else + { + if (NewState != DISABLE) + { + /* Enable the Coarse Calibration */ + RTC->CR |= (uint32_t)RTC_CR_DCE; + } + else + { + /* Disable the Coarse Calibration */ + RTC->CR &= (uint32_t)~RTC_CR_DCE; + } + /* Exit Initialization mode */ + RTC_ExitInitMode(); + + status = SUCCESS; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; + + return status; +} + +/** + * @brief Enables or disables the RTC clock to be output through the relative pin. + * @param NewState: new state of the digital calibration Output. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_CalibOutputCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + if (NewState != DISABLE) + { + /* Enable the RTC clock output */ + RTC->CR |= (uint32_t)RTC_CR_COE; + } + else + { + /* Disable the RTC clock output */ + RTC->CR &= (uint32_t)~RTC_CR_COE; + } + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @} + */ + + +/** @defgroup RTC_Group8 TimeStamp configuration functions + * @brief TimeStamp configuration functions + * +@verbatim + =============================================================================== + TimeStamp configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or Disables the RTC TimeStamp functionality with the + * specified time stamp pin stimulating edge. + * @param RTC_TimeStampEdge: Specifies the pin edge on which the TimeStamp is + * activated. + * This parameter can be one of the following: + * @arg RTC_TimeStampEdge_Rising: the Time stamp event occurs on the rising + * edge of the related pin. + * @arg RTC_TimeStampEdge_Falling: the Time stamp event occurs on the + * falling edge of the related pin. + * @param NewState: new state of the TimeStamp. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_TimeStampCmd(uint32_t RTC_TimeStampEdge, FunctionalState NewState) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_TIMESTAMP_EDGE(RTC_TimeStampEdge)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Get the RTC_CR register and clear the bits to be configured */ + tmpreg = (uint32_t)(RTC->CR & (uint32_t)~(RTC_CR_TSEDGE | RTC_CR_TSE)); + + /* Get the new configuration */ + if (NewState != DISABLE) + { + tmpreg |= (uint32_t)(RTC_TimeStampEdge | RTC_CR_TSE); + } + else + { + tmpreg |= (uint32_t)(RTC_TimeStampEdge); + } + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + /* Configure the Time Stamp TSEDGE and Enable bits */ + RTC->CR = (uint32_t)tmpreg; + + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Get the RTC TimeStamp value and masks. + * @param RTC_Format: specifies the format of the output parameters. + * This parameter can be one of the following values: + * @arg RTC_Format_BIN: Binary data format + * @arg RTC_Format_BCD: BCD data format + * @param RTC_StampTimeStruct: pointer to a RTC_TimeTypeDef structure that will + * contains the TimeStamp time values. + * @param RTC_StampDateStruct: pointer to a RTC_DateTypeDef structure that will + * contains the TimeStamp date values. + * @retval None + */ +void RTC_GetTimeStamp(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_StampTimeStruct, + RTC_DateTypeDef* RTC_StampDateStruct) +{ + uint32_t tmptime = 0, tmpdate = 0; + + /* Check the parameters */ + assert_param(IS_RTC_FORMAT(RTC_Format)); + + /* Get the TimeStamp time and date registers values */ + tmptime = (uint32_t)(RTC->TSTR & RTC_TR_RESERVED_MASK); + tmpdate = (uint32_t)(RTC->TSDR & RTC_DR_RESERVED_MASK); + + /* Fill the Time structure fields with the read parameters */ + RTC_StampTimeStruct->RTC_Hours = (uint8_t)((tmptime & (RTC_TR_HT | RTC_TR_HU)) >> 16); + RTC_StampTimeStruct->RTC_Minutes = (uint8_t)((tmptime & (RTC_TR_MNT | RTC_TR_MNU)) >> 8); + RTC_StampTimeStruct->RTC_Seconds = (uint8_t)(tmptime & (RTC_TR_ST | RTC_TR_SU)); + RTC_StampTimeStruct->RTC_H12 = (uint8_t)((tmptime & (RTC_TR_PM)) >> 16); + + /* Fill the Date structure fields with the read parameters */ + RTC_StampDateStruct->RTC_Year = 0; + RTC_StampDateStruct->RTC_Month = (uint8_t)((tmpdate & (RTC_DR_MT | RTC_DR_MU)) >> 8); + RTC_StampDateStruct->RTC_Date = (uint8_t)(tmpdate & (RTC_DR_DT | RTC_DR_DU)); + RTC_StampDateStruct->RTC_WeekDay = (uint8_t)((tmpdate & (RTC_DR_WDU)) >> 13); + + /* Check the input parameters format */ + if (RTC_Format == RTC_Format_BIN) + { + /* Convert the Time structure parameters to Binary format */ + RTC_StampTimeStruct->RTC_Hours = (uint8_t)RTC_Bcd2ToByte(RTC_StampTimeStruct->RTC_Hours); + RTC_StampTimeStruct->RTC_Minutes = (uint8_t)RTC_Bcd2ToByte(RTC_StampTimeStruct->RTC_Minutes); + RTC_StampTimeStruct->RTC_Seconds = (uint8_t)RTC_Bcd2ToByte(RTC_StampTimeStruct->RTC_Seconds); + + /* Convert the Date structure parameters to Binary format */ + RTC_StampDateStruct->RTC_Month = (uint8_t)RTC_Bcd2ToByte(RTC_StampDateStruct->RTC_Month); + RTC_StampDateStruct->RTC_Date = (uint8_t)RTC_Bcd2ToByte(RTC_StampDateStruct->RTC_Date); + RTC_StampDateStruct->RTC_WeekDay = (uint8_t)RTC_Bcd2ToByte(RTC_StampDateStruct->RTC_WeekDay); + } +} + +/** + * @} + */ + +/** @defgroup RTC_Group9 Tampers configuration functions + * @brief Tampers configuration functions + * +@verbatim + =============================================================================== + Tampers configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the select Tamper pin edge. + * @param RTC_Tamper: Selected tamper pin. + * This parameter can be RTC_Tamper_1. + * @param RTC_TamperTrigger: Specifies the trigger on the tamper pin that + * stimulates tamper event. + * This parameter can be one of the following values: + * @arg RTC_TamperTrigger_RisingEdge: Rising Edge of the tamper pin causes tamper event. + * @arg RTC_TamperTrigger_FallingEdge: Falling Edge of the tamper pin causes tamper event. + * @retval None + */ +void RTC_TamperTriggerConfig(uint32_t RTC_Tamper, uint32_t RTC_TamperTrigger) +{ + /* Check the parameters */ + assert_param(IS_RTC_TAMPER(RTC_Tamper)); + assert_param(IS_RTC_TAMPER_TRIGGER(RTC_TamperTrigger)); + + if (RTC_TamperTrigger == RTC_TamperTrigger_RisingEdge) + { + /* Configure the RTC_TAFCR register */ + RTC->TAFCR &= (uint32_t)((uint32_t)~(RTC_Tamper << 1)); + } + else + { + /* Configure the RTC_TAFCR register */ + RTC->TAFCR |= (uint32_t)(RTC_Tamper << 1); + } +} + +/** + * @brief Enables or Disables the Tamper detection. + * @param RTC_Tamper: Selected tamper pin. + * This parameter can be RTC_Tamper_1. + * @param NewState: new state of the tamper pin. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_TamperCmd(uint32_t RTC_Tamper, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RTC_TAMPER(RTC_Tamper)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected Tamper pin */ + RTC->TAFCR |= (uint32_t)RTC_Tamper; + } + else + { + /* Disable the selected Tamper pin */ + RTC->TAFCR &= (uint32_t)~RTC_Tamper; + } +} + +/** + * @} + */ + +/** @defgroup RTC_Group10 Backup Data Registers configuration functions + * @brief Backup Data Registers configuration functions + * +@verbatim + =============================================================================== + Backup Data Registers configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Writes a data in a specified RTC Backup data register. + * @param RTC_BKP_DR: RTC Backup data Register number. + * This parameter can be: RTC_BKP_DRx where x can be from 0 to 19 to + * specify the register. + * @param Data: Data to be written in the specified RTC Backup data register. + * @retval None + */ +void RTC_WriteBackupRegister(uint32_t RTC_BKP_DR, uint32_t Data) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_RTC_BKP(RTC_BKP_DR)); + + tmp = RTC_BASE + 0x50; + tmp += (RTC_BKP_DR * 4); + + /* Write the specified register */ + *(__IO uint32_t *)tmp = (uint32_t)Data; +} + +/** + * @brief Reads data from the specified RTC Backup data Register. + * @param RTC_BKP_DR: RTC Backup data Register number. + * This parameter can be: RTC_BKP_DRx where x can be from 0 to 19 to + * specify the register. + * @retval None + */ +uint32_t RTC_ReadBackupRegister(uint32_t RTC_BKP_DR) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_RTC_BKP(RTC_BKP_DR)); + + tmp = RTC_BASE + 0x50; + tmp += (RTC_BKP_DR * 4); + + /* Read the specified register */ + return (*(__IO uint32_t *)tmp); +} + +/** + * @} + */ + +/** @defgroup RTC_Group11 RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration functions + * @brief RTC Tamper and TimeStamp Pins Selection and Output Type Config + * configuration functions + * +@verbatim + =============================================================================== + RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration + functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Selects the RTC Tamper Pin. + * @param RTC_TamperPin: specifies the RTC Tamper Pin. + * This parameter can be one of the following values: + * @arg RTC_TamperPin_PC13: PC13 is selected as RTC Tamper Pin. + * @arg RTC_TamperPin_PI8: PI8 is selected as RTC Tamper Pin. + * @retval None + */ +void RTC_TamperPinSelection(uint32_t RTC_TamperPin) +{ + /* Check the parameters */ + assert_param(IS_RTC_TAMPER_PIN(RTC_TamperPin)); + + RTC->TAFCR &= (uint32_t)~(RTC_TAFCR_TAMPINSEL); + RTC->TAFCR |= (uint32_t)(RTC_TamperPin); +} + +/** + * @brief Selects the RTC TimeStamp Pin. + * @param RTC_TimeStampPin: specifies the RTC TimeStamp Pin. + * This parameter can be one of the following values: + * @arg RTC_TimeStampPin_PC13: PC13 is selected as RTC TimeStamp Pin. + * @arg RTC_TimeStampPin_PI8: PI8 is selected as RTC TimeStamp Pin. + * @retval None + */ +void RTC_TimeStampPinSelection(uint32_t RTC_TimeStampPin) +{ + /* Check the parameters */ + assert_param(IS_RTC_TIMESTAMP_PIN(RTC_TimeStampPin)); + + RTC->TAFCR &= (uint32_t)~(RTC_TAFCR_TSINSEL); + RTC->TAFCR |= (uint32_t)(RTC_TimeStampPin); +} + +/** + * @brief Configures the RTC Output Pin mode. + * @param RTC_OutputType: specifies the RTC Output (PC13) pin mode. + * This parameter can be one of the following values: + * @arg RTC_OutputType_OpenDrain: RTC Output (PC13) is configured in + * Open Drain mode. + * @arg RTC_OutputType_PushPull: RTC Output (PC13) is configured in + * Push Pull mode. + * @retval None + */ +void RTC_OutputTypeConfig(uint32_t RTC_OutputType) +{ + /* Check the parameters */ + assert_param(IS_RTC_OUTPUT_TYPE(RTC_OutputType)); + + RTC->TAFCR &= (uint32_t)~(RTC_TAFCR_ALARMOUTTYPE); + RTC->TAFCR |= (uint32_t)(RTC_OutputType); +} + +/** + * @} + */ + +/** @defgroup RTC_Group12 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + All RTC interrupts are connected to the EXTI controller. + + - To enable the RTC Alarm interrupt, the following sequence is required: + - Configure and enable the EXTI Line 17 in interrupt mode and select the rising + edge sensitivity using the EXTI_Init() function. + - Configure and enable the RTC_Alarm IRQ channel in the NVIC using the NVIC_Init() + function. + - Configure the RTC to generate RTC alarms (Alarm A and/or Alarm B) using + the RTC_SetAlarm() and RTC_AlarmCmd() functions. + + - To enable the RTC Wakeup interrupt, the following sequence is required: + - Configure and enable the EXTI Line 22 in interrupt mode and select the rising + edge sensitivity using the EXTI_Init() function. + - Configure and enable the RTC_WKUP IRQ channel in the NVIC using the NVIC_Init() + function. + - Configure the RTC to generate the RTC wakeup timer event using the + RTC_WakeUpClockConfig(), RTC_SetWakeUpCounter() and RTC_WakeUpCmd() functions. + + - To enable the RTC Tamper interrupt, the following sequence is required: + - Configure and enable the EXTI Line 21 in interrupt mode and select the rising + edge sensitivity using the EXTI_Init() function. + - Configure and enable the TAMP_STAMP IRQ channel in the NVIC using the NVIC_Init() + function. + - Configure the RTC to detect the RTC tamper event using the + RTC_TamperTriggerConfig() and RTC_TamperCmd() functions. + + - To enable the RTC TimeStamp interrupt, the following sequence is required: + - Configure and enable the EXTI Line 21 in interrupt mode and select the rising + edge sensitivity using the EXTI_Init() function. + - Configure and enable the TAMP_STAMP IRQ channel in the NVIC using the NVIC_Init() + function. + - Configure the RTC to detect the RTC time-stamp event using the + RTC_TimeStampCmd() functions. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified RTC interrupts. + * @param RTC_IT: specifies the RTC interrupt sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg RTC_IT_TS: Time Stamp interrupt mask + * @arg RTC_IT_WUT: WakeUp Timer interrupt mask + * @arg RTC_IT_ALRB: Alarm B interrupt mask + * @arg RTC_IT_ALRA: Alarm A interrupt mask + * @arg RTC_IT_TAMP: Tamper event interrupt mask + * @param NewState: new state of the specified RTC interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void RTC_ITConfig(uint32_t RTC_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_RTC_CONFIG_IT(RTC_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* Disable the write protection for RTC registers */ + RTC->WPR = 0xCA; + RTC->WPR = 0x53; + + if (NewState != DISABLE) + { + /* Configure the Interrupts in the RTC_CR register */ + RTC->CR |= (uint32_t)(RTC_IT & ~RTC_TAFCR_TAMPIE); + /* Configure the Tamper Interrupt in the RTC_TAFCR */ + RTC->TAFCR |= (uint32_t)(RTC_IT & RTC_TAFCR_TAMPIE); + } + else + { + /* Configure the Interrupts in the RTC_CR register */ + RTC->CR &= (uint32_t)~(RTC_IT & (uint32_t)~RTC_TAFCR_TAMPIE); + /* Configure the Tamper Interrupt in the RTC_TAFCR */ + RTC->TAFCR &= (uint32_t)~(RTC_IT & RTC_TAFCR_TAMPIE); + } + /* Enable the write protection for RTC registers */ + RTC->WPR = 0xFF; +} + +/** + * @brief Checks whether the specified RTC flag is set or not. + * @param RTC_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg RTC_FLAG_TAMP1F: Tamper 1 event flag + * @arg RTC_FLAG_TSOVF: Time Stamp OverFlow flag + * @arg RTC_FLAG_TSF: Time Stamp event flag + * @arg RTC_FLAG_WUTF: WakeUp Timer flag + * @arg RTC_FLAG_ALRBF: Alarm B flag + * @arg RTC_FLAG_ALRAF: Alarm A flag + * @arg RTC_FLAG_INITF: Initialization mode flag + * @arg RTC_FLAG_RSF: Registers Synchronized flag + * @arg RTC_FLAG_INITS: Registers Configured flag + * @arg RTC_FLAG_WUTWF: WakeUp Timer Write flag + * @arg RTC_FLAG_ALRBWF: Alarm B Write flag + * @arg RTC_FLAG_ALRAWF: Alarm A write flag + * @retval The new state of RTC_FLAG (SET or RESET). + */ +FlagStatus RTC_GetFlagStatus(uint32_t RTC_FLAG) +{ + FlagStatus bitstatus = RESET; + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_GET_FLAG(RTC_FLAG)); + + /* Get all the flags */ + tmpreg = (uint32_t)(RTC->ISR & RTC_FLAGS_MASK); + + /* Return the status of the flag */ + if ((tmpreg & RTC_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the RTC's pending flags. + * @param RTC_FLAG: specifies the RTC flag to clear. + * This parameter can be any combination of the following values: + * @arg RTC_FLAG_TAMP1F: Tamper 1 event flag + * @arg RTC_FLAG_TSOVF: Time Stamp Overflow flag + * @arg RTC_FLAG_TSF: Time Stamp event flag + * @arg RTC_FLAG_WUTF: WakeUp Timer flag + * @arg RTC_FLAG_ALRBF: Alarm B flag + * @arg RTC_FLAG_ALRAF: Alarm A flag + * @arg RTC_FLAG_RSF: Registers Synchronized flag + * @retval None + */ +void RTC_ClearFlag(uint32_t RTC_FLAG) +{ + /* Check the parameters */ + assert_param(IS_RTC_CLEAR_FLAG(RTC_FLAG)); + + /* Clear the Flags in the RTC_ISR register */ + RTC->ISR = (uint32_t)((uint32_t)(~((RTC_FLAG | RTC_ISR_INIT)& 0x0000FFFF) | (uint32_t)(RTC->ISR & RTC_ISR_INIT))); +} + +/** + * @brief Checks whether the specified RTC interrupt has occurred or not. + * @param RTC_IT: specifies the RTC interrupt source to check. + * This parameter can be one of the following values: + * @arg RTC_IT_TS: Time Stamp interrupt + * @arg RTC_IT_WUT: WakeUp Timer interrupt + * @arg RTC_IT_ALRB: Alarm B interrupt + * @arg RTC_IT_ALRA: Alarm A interrupt + * @arg RTC_IT_TAMP1: Tamper 1 event interrupt + * @retval The new state of RTC_IT (SET or RESET). + */ +ITStatus RTC_GetITStatus(uint32_t RTC_IT) +{ + ITStatus bitstatus = RESET; + uint32_t tmpreg = 0, enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_RTC_GET_IT(RTC_IT)); + + /* Get the TAMPER Interrupt enable bit and pending bit */ + tmpreg = (uint32_t)(RTC->TAFCR & (RTC_TAFCR_TAMPIE)); + + /* Get the Interrupt enable Status */ + enablestatus = (uint32_t)((RTC->CR & RTC_IT) | (tmpreg & (RTC_IT >> 15))); + + /* Get the Interrupt pending bit */ + tmpreg = (uint32_t)((RTC->ISR & (uint32_t)(RTC_IT >> 4))); + + /* Get the status of the Interrupt */ + if ((enablestatus != (uint32_t)RESET) && ((tmpreg & 0x0000FFFF) != (uint32_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the RTC's interrupt pending bits. + * @param RTC_IT: specifies the RTC interrupt pending bit to clear. + * This parameter can be any combination of the following values: + * @arg RTC_IT_TS: Time Stamp interrupt + * @arg RTC_IT_WUT: WakeUp Timer interrupt + * @arg RTC_IT_ALRB: Alarm B interrupt + * @arg RTC_IT_ALRA: Alarm A interrupt + * @arg RTC_IT_TAMP1: Tamper 1 event interrupt + * @retval None + */ +void RTC_ClearITPendingBit(uint32_t RTC_IT) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_RTC_CLEAR_IT(RTC_IT)); + + /* Get the RTC_ISR Interrupt pending bits mask */ + tmpreg = (uint32_t)(RTC_IT >> 4); + + /* Clear the interrupt pending bits in the RTC_ISR register */ + RTC->ISR = (uint32_t)((uint32_t)(~((tmpreg | RTC_ISR_INIT)& 0x0000FFFF) | (uint32_t)(RTC->ISR & RTC_ISR_INIT))); +} + +/** + * @} + */ + +/** + * @brief Converts a 2 digit decimal to BCD format. + * @param Value: Byte to be converted. + * @retval Converted byte + */ +static uint8_t RTC_ByteToBcd2(uint8_t Value) +{ + uint8_t bcdhigh = 0; + + while (Value >= 10) + { + bcdhigh++; + Value -= 10; + } + + return ((uint8_t)(bcdhigh << 4) | Value); +} + +/** + * @brief Convert from 2 digit BCD to Binary. + * @param Value: BCD value to be converted. + * @retval Converted word + */ +static uint8_t RTC_Bcd2ToByte(uint8_t Value) +{ + uint8_t tmp = 0; + tmp = ((uint8_t)(Value & (uint8_t)0xF0) >> (uint8_t)0x4) * 10; + return (tmp + (Value & (uint8_t)0x0F)); +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_sdio.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_sdio.c new file mode 100644 index 00000000..515b2465 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_sdio.c @@ -0,0 +1,1010 @@ +/** + ****************************************************************************** + * @file stm32f2xx_sdio.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Secure digital input/output interface (SDIO) + * peripheral: + * - Initialization and Configuration + * - Command path state machine (CPSM) management + * - Data path state machine (DPSM) management + * - SDIO IO Cards mode management + * - CE-ATA mode management + * - DMA transfers management + * - Interrupts and flags management + * + * @verbatim + * + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. The SDIO clock (SDIOCLK = 48 MHz) is coming from a specific output + * of PLL (PLL48CLK). Before to start working with SDIO peripheral + * make sure that the PLL is well configured. + * The SDIO peripheral uses two clock signals: + * - SDIO adapter clock (SDIOCLK = 48 MHz) + * - APB2 bus clock (PCLK2) + * PCLK2 and SDIO_CK clock frequencies must respect the following condition: + * Frequenc(PCLK2) >= (3 / 8 x Frequency(SDIO_CK)) + * + * 2. Enable peripheral clock using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SDIO, ENABLE). + * + * 3. According to the SDIO mode, enable the GPIO clocks using + * RCC_AHB1PeriphClockCmd() function. + * The I/O can be one of the following configurations: + * - 1-bit data length: SDIO_CMD, SDIO_CK and D0. + * - 4-bit data length: SDIO_CMD, SDIO_CK and D[3:0]. + * - 8-bit data length: SDIO_CMD, SDIO_CK and D[7:0]. + * + * 4. Peripheral's alternate function: + * - Connect the pin to the desired peripherals' Alternate + * Function (AF) using GPIO_PinAFConfig() function + * - Configure the desired pin in alternate function by: + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * + * 5. Program the Clock Edge, Clock Bypass, Clock Power Save, Bus Wide, + * hardware, flow control and the Clock Divider using the SDIO_Init() + * function. + * + * 6. Enable the Power ON State using the SDIO_SetPowerState(SDIO_PowerState_ON) + * function. + * + * 7. Enable the clock using the SDIO_ClockCmd() function. + * + * 8. Enable the NVIC and the corresponding interrupt using the function + * SDIO_ITConfig() if you need to use interrupt mode. + * + * 9. When using the DMA mode + * - Configure the DMA using DMA_Init() function + * - Active the needed channel Request using SDIO_DMACmd() function + * + * 10. Enable the DMA using the DMA_Cmd() function, when using DMA mode. + * + * 11. To control the CPSM (Command Path State Machine) and send + * commands to the card use the SDIO_SendCommand(), + * SDIO_GetCommandResponse() and SDIO_GetResponse() functions. + * First, user has to fill the command structure (pointer to + * SDIO_CmdInitTypeDef) according to the selected command to be sent. + * The parameters that should be filled are: + * - Command Argument + * - Command Index + * - Command Response type + * - Command Wait + * - CPSM Status (Enable or Disable) + * + * To check if the command is well received, read the SDIO_CMDRESP + * register using the SDIO_GetCommandResponse(). + * The SDIO responses registers (SDIO_RESP1 to SDIO_RESP2), use the + * SDIO_GetResponse() function. + * + * 12. To control the DPSM (Data Path State Machine) and send/receive + * data to/from the card use the SDIO_DataConfig(), SDIO_GetDataCounter(), + * SDIO_ReadData(), SDIO_WriteData() and SDIO_GetFIFOCount() functions. + * + * Read Operations + * --------------- + * a) First, user has to fill the data structure (pointer to + * SDIO_DataInitTypeDef) according to the selected data type to + * be received. + * The parameters that should be filled are: + * - Data TimeOut + * - Data Length + * - Data Block size + * - Data Transfer direction: should be from card (To SDIO) + * - Data Transfer mode + * - DPSM Status (Enable or Disable) + * + * b) Configure the SDIO resources to receive the data from the card + * according to selected transfer mode (Refer to Step 8, 9 and 10). + * + * c) Send the selected Read command (refer to step 11). + * + * d) Use the SDIO flags/interrupts to check the transfer status. + * + * Write Operations + * --------------- + * a) First, user has to fill the data structure (pointer to + * SDIO_DataInitTypeDef) according to the selected data type to + * be received. + * The parameters that should be filled are: + * - Data TimeOut + * - Data Length + * - Data Block size + * - Data Transfer direction: should be to card (To CARD) + * - Data Transfer mode + * - DPSM Status (Enable or Disable) + * + * b) Configure the SDIO resources to send the data to the card + * according to selected transfer mode (Refer to Step 8, 9 and 10). + * + * c) Send the selected Write command (refer to step 11). + * + * d) Use the SDIO flags/interrupts to check the transfer status. + * + * + * @endverbatim + * + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_sdio.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup SDIO + * @brief SDIO driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* ------------ SDIO registers bit address in the alias region ----------- */ +#define SDIO_OFFSET (SDIO_BASE - PERIPH_BASE) + +/* --- CLKCR Register ---*/ +/* Alias word address of CLKEN bit */ +#define CLKCR_OFFSET (SDIO_OFFSET + 0x04) +#define CLKEN_BitNumber 0x08 +#define CLKCR_CLKEN_BB (PERIPH_BB_BASE + (CLKCR_OFFSET * 32) + (CLKEN_BitNumber * 4)) + +/* --- CMD Register ---*/ +/* Alias word address of SDIOSUSPEND bit */ +#define CMD_OFFSET (SDIO_OFFSET + 0x0C) +#define SDIOSUSPEND_BitNumber 0x0B +#define CMD_SDIOSUSPEND_BB (PERIPH_BB_BASE + (CMD_OFFSET * 32) + (SDIOSUSPEND_BitNumber * 4)) + +/* Alias word address of ENCMDCOMPL bit */ +#define ENCMDCOMPL_BitNumber 0x0C +#define CMD_ENCMDCOMPL_BB (PERIPH_BB_BASE + (CMD_OFFSET * 32) + (ENCMDCOMPL_BitNumber * 4)) + +/* Alias word address of NIEN bit */ +#define NIEN_BitNumber 0x0D +#define CMD_NIEN_BB (PERIPH_BB_BASE + (CMD_OFFSET * 32) + (NIEN_BitNumber * 4)) + +/* Alias word address of ATACMD bit */ +#define ATACMD_BitNumber 0x0E +#define CMD_ATACMD_BB (PERIPH_BB_BASE + (CMD_OFFSET * 32) + (ATACMD_BitNumber * 4)) + +/* --- DCTRL Register ---*/ +/* Alias word address of DMAEN bit */ +#define DCTRL_OFFSET (SDIO_OFFSET + 0x2C) +#define DMAEN_BitNumber 0x03 +#define DCTRL_DMAEN_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (DMAEN_BitNumber * 4)) + +/* Alias word address of RWSTART bit */ +#define RWSTART_BitNumber 0x08 +#define DCTRL_RWSTART_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (RWSTART_BitNumber * 4)) + +/* Alias word address of RWSTOP bit */ +#define RWSTOP_BitNumber 0x09 +#define DCTRL_RWSTOP_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (RWSTOP_BitNumber * 4)) + +/* Alias word address of RWMOD bit */ +#define RWMOD_BitNumber 0x0A +#define DCTRL_RWMOD_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (RWMOD_BitNumber * 4)) + +/* Alias word address of SDIOEN bit */ +#define SDIOEN_BitNumber 0x0B +#define DCTRL_SDIOEN_BB (PERIPH_BB_BASE + (DCTRL_OFFSET * 32) + (SDIOEN_BitNumber * 4)) + +/* ---------------------- SDIO registers bit mask ------------------------ */ +/* --- CLKCR Register ---*/ +/* CLKCR register clear mask */ +#define CLKCR_CLEAR_MASK ((uint32_t)0xFFFF8100) + +/* --- PWRCTRL Register ---*/ +/* SDIO PWRCTRL Mask */ +#define PWR_PWRCTRL_MASK ((uint32_t)0xFFFFFFFC) + +/* --- DCTRL Register ---*/ +/* SDIO DCTRL Clear Mask */ +#define DCTRL_CLEAR_MASK ((uint32_t)0xFFFFFF08) + +/* --- CMD Register ---*/ +/* CMD Register clear mask */ +#define CMD_CLEAR_MASK ((uint32_t)0xFFFFF800) + +/* SDIO RESP Registers Address */ +#define SDIO_RESP_ADDR ((uint32_t)(SDIO_BASE + 0x14)) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup SDIO_Private_Functions + * @{ + */ + +/** @defgroup SDIO_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the SDIO peripheral registers to their default reset values. + * @param None + * @retval None + */ +void SDIO_DeInit(void) +{ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SDIO, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SDIO, DISABLE); +} + +/** + * @brief Initializes the SDIO peripheral according to the specified + * parameters in the SDIO_InitStruct. + * @param SDIO_InitStruct : pointer to a SDIO_InitTypeDef structure + * that contains the configuration information for the SDIO peripheral. + * @retval None + */ +void SDIO_Init(SDIO_InitTypeDef* SDIO_InitStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_SDIO_CLOCK_EDGE(SDIO_InitStruct->SDIO_ClockEdge)); + assert_param(IS_SDIO_CLOCK_BYPASS(SDIO_InitStruct->SDIO_ClockBypass)); + assert_param(IS_SDIO_CLOCK_POWER_SAVE(SDIO_InitStruct->SDIO_ClockPowerSave)); + assert_param(IS_SDIO_BUS_WIDE(SDIO_InitStruct->SDIO_BusWide)); + assert_param(IS_SDIO_HARDWARE_FLOW_CONTROL(SDIO_InitStruct->SDIO_HardwareFlowControl)); + +/*---------------------------- SDIO CLKCR Configuration ------------------------*/ + /* Get the SDIO CLKCR value */ + tmpreg = SDIO->CLKCR; + + /* Clear CLKDIV, PWRSAV, BYPASS, WIDBUS, NEGEDGE, HWFC_EN bits */ + tmpreg &= CLKCR_CLEAR_MASK; + + /* Set CLKDIV bits according to SDIO_ClockDiv value */ + /* Set PWRSAV bit according to SDIO_ClockPowerSave value */ + /* Set BYPASS bit according to SDIO_ClockBypass value */ + /* Set WIDBUS bits according to SDIO_BusWide value */ + /* Set NEGEDGE bits according to SDIO_ClockEdge value */ + /* Set HWFC_EN bits according to SDIO_HardwareFlowControl value */ + tmpreg |= (SDIO_InitStruct->SDIO_ClockDiv | SDIO_InitStruct->SDIO_ClockPowerSave | + SDIO_InitStruct->SDIO_ClockBypass | SDIO_InitStruct->SDIO_BusWide | + SDIO_InitStruct->SDIO_ClockEdge | SDIO_InitStruct->SDIO_HardwareFlowControl); + + /* Write to SDIO CLKCR */ + SDIO->CLKCR = tmpreg; +} + +/** + * @brief Fills each SDIO_InitStruct member with its default value. + * @param SDIO_InitStruct: pointer to an SDIO_InitTypeDef structure which + * will be initialized. + * @retval None + */ +void SDIO_StructInit(SDIO_InitTypeDef* SDIO_InitStruct) +{ + /* SDIO_InitStruct members default value */ + SDIO_InitStruct->SDIO_ClockDiv = 0x00; + SDIO_InitStruct->SDIO_ClockEdge = SDIO_ClockEdge_Rising; + SDIO_InitStruct->SDIO_ClockBypass = SDIO_ClockBypass_Disable; + SDIO_InitStruct->SDIO_ClockPowerSave = SDIO_ClockPowerSave_Disable; + SDIO_InitStruct->SDIO_BusWide = SDIO_BusWide_1b; + SDIO_InitStruct->SDIO_HardwareFlowControl = SDIO_HardwareFlowControl_Disable; +} + +/** + * @brief Enables or disables the SDIO Clock. + * @param NewState: new state of the SDIO Clock. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_ClockCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CLKCR_CLKEN_BB = (uint32_t)NewState; +} + +/** + * @brief Sets the power status of the controller. + * @param SDIO_PowerState: new state of the Power state. + * This parameter can be one of the following values: + * @arg SDIO_PowerState_OFF: SDIO Power OFF + * @arg SDIO_PowerState_ON: SDIO Power ON + * @retval None + */ +void SDIO_SetPowerState(uint32_t SDIO_PowerState) +{ + /* Check the parameters */ + assert_param(IS_SDIO_POWER_STATE(SDIO_PowerState)); + + SDIO->POWER = SDIO_PowerState; +} + +/** + * @brief Gets the power status of the controller. + * @param None + * @retval Power status of the controller. The returned value can be one of the + * following values: + * - 0x00: Power OFF + * - 0x02: Power UP + * - 0x03: Power ON + */ +uint32_t SDIO_GetPowerState(void) +{ + return (SDIO->POWER & (~PWR_PWRCTRL_MASK)); +} + +/** + * @} + */ + +/** @defgroup SDIO_Group2 Command path state machine (CPSM) management functions + * @brief Command path state machine (CPSM) management functions + * +@verbatim + =============================================================================== + Command path state machine (CPSM) management functions + =============================================================================== + + This section provide functions allowing to program and read the Command path + state machine (CPSM). + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the SDIO Command according to the specified + * parameters in the SDIO_CmdInitStruct and send the command. + * @param SDIO_CmdInitStruct : pointer to a SDIO_CmdInitTypeDef + * structure that contains the configuration information for the SDIO + * command. + * @retval None + */ +void SDIO_SendCommand(SDIO_CmdInitTypeDef *SDIO_CmdInitStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_SDIO_CMD_INDEX(SDIO_CmdInitStruct->SDIO_CmdIndex)); + assert_param(IS_SDIO_RESPONSE(SDIO_CmdInitStruct->SDIO_Response)); + assert_param(IS_SDIO_WAIT(SDIO_CmdInitStruct->SDIO_Wait)); + assert_param(IS_SDIO_CPSM(SDIO_CmdInitStruct->SDIO_CPSM)); + +/*---------------------------- SDIO ARG Configuration ------------------------*/ + /* Set the SDIO Argument value */ + SDIO->ARG = SDIO_CmdInitStruct->SDIO_Argument; + +/*---------------------------- SDIO CMD Configuration ------------------------*/ + /* Get the SDIO CMD value */ + tmpreg = SDIO->CMD; + /* Clear CMDINDEX, WAITRESP, WAITINT, WAITPEND, CPSMEN bits */ + tmpreg &= CMD_CLEAR_MASK; + /* Set CMDINDEX bits according to SDIO_CmdIndex value */ + /* Set WAITRESP bits according to SDIO_Response value */ + /* Set WAITINT and WAITPEND bits according to SDIO_Wait value */ + /* Set CPSMEN bits according to SDIO_CPSM value */ + tmpreg |= (uint32_t)SDIO_CmdInitStruct->SDIO_CmdIndex | SDIO_CmdInitStruct->SDIO_Response + | SDIO_CmdInitStruct->SDIO_Wait | SDIO_CmdInitStruct->SDIO_CPSM; + + /* Write to SDIO CMD */ + SDIO->CMD = tmpreg; +} + +/** + * @brief Fills each SDIO_CmdInitStruct member with its default value. + * @param SDIO_CmdInitStruct: pointer to an SDIO_CmdInitTypeDef + * structure which will be initialized. + * @retval None + */ +void SDIO_CmdStructInit(SDIO_CmdInitTypeDef* SDIO_CmdInitStruct) +{ + /* SDIO_CmdInitStruct members default value */ + SDIO_CmdInitStruct->SDIO_Argument = 0x00; + SDIO_CmdInitStruct->SDIO_CmdIndex = 0x00; + SDIO_CmdInitStruct->SDIO_Response = SDIO_Response_No; + SDIO_CmdInitStruct->SDIO_Wait = SDIO_Wait_No; + SDIO_CmdInitStruct->SDIO_CPSM = SDIO_CPSM_Disable; +} + +/** + * @brief Returns command index of last command for which response received. + * @param None + * @retval Returns the command index of the last command response received. + */ +uint8_t SDIO_GetCommandResponse(void) +{ + return (uint8_t)(SDIO->RESPCMD); +} + +/** + * @brief Returns response received from the card for the last command. + * @param SDIO_RESP: Specifies the SDIO response register. + * This parameter can be one of the following values: + * @arg SDIO_RESP1: Response Register 1 + * @arg SDIO_RESP2: Response Register 2 + * @arg SDIO_RESP3: Response Register 3 + * @arg SDIO_RESP4: Response Register 4 + * @retval The Corresponding response register value. + */ +uint32_t SDIO_GetResponse(uint32_t SDIO_RESP) +{ + __IO uint32_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_SDIO_RESP(SDIO_RESP)); + + tmp = SDIO_RESP_ADDR + SDIO_RESP; + + return (*(__IO uint32_t *) tmp); +} + +/** + * @} + */ + +/** @defgroup SDIO_Group3 Data path state machine (DPSM) management functions + * @brief Data path state machine (DPSM) management functions + * +@verbatim + =============================================================================== + Data path state machine (DPSM) management functions + =============================================================================== + + This section provide functions allowing to program and read the Data path + state machine (DPSM). + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the SDIO data path according to the specified + * parameters in the SDIO_DataInitStruct. + * @param SDIO_DataInitStruct : pointer to a SDIO_DataInitTypeDef structure + * that contains the configuration information for the SDIO command. + * @retval None + */ +void SDIO_DataConfig(SDIO_DataInitTypeDef* SDIO_DataInitStruct) +{ + uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_SDIO_DATA_LENGTH(SDIO_DataInitStruct->SDIO_DataLength)); + assert_param(IS_SDIO_BLOCK_SIZE(SDIO_DataInitStruct->SDIO_DataBlockSize)); + assert_param(IS_SDIO_TRANSFER_DIR(SDIO_DataInitStruct->SDIO_TransferDir)); + assert_param(IS_SDIO_TRANSFER_MODE(SDIO_DataInitStruct->SDIO_TransferMode)); + assert_param(IS_SDIO_DPSM(SDIO_DataInitStruct->SDIO_DPSM)); + +/*---------------------------- SDIO DTIMER Configuration ---------------------*/ + /* Set the SDIO Data TimeOut value */ + SDIO->DTIMER = SDIO_DataInitStruct->SDIO_DataTimeOut; + +/*---------------------------- SDIO DLEN Configuration -----------------------*/ + /* Set the SDIO DataLength value */ + SDIO->DLEN = SDIO_DataInitStruct->SDIO_DataLength; + +/*---------------------------- SDIO DCTRL Configuration ----------------------*/ + /* Get the SDIO DCTRL value */ + tmpreg = SDIO->DCTRL; + /* Clear DEN, DTMODE, DTDIR and DBCKSIZE bits */ + tmpreg &= DCTRL_CLEAR_MASK; + /* Set DEN bit according to SDIO_DPSM value */ + /* Set DTMODE bit according to SDIO_TransferMode value */ + /* Set DTDIR bit according to SDIO_TransferDir value */ + /* Set DBCKSIZE bits according to SDIO_DataBlockSize value */ + tmpreg |= (uint32_t)SDIO_DataInitStruct->SDIO_DataBlockSize | SDIO_DataInitStruct->SDIO_TransferDir + | SDIO_DataInitStruct->SDIO_TransferMode | SDIO_DataInitStruct->SDIO_DPSM; + + /* Write to SDIO DCTRL */ + SDIO->DCTRL = tmpreg; +} + +/** + * @brief Fills each SDIO_DataInitStruct member with its default value. + * @param SDIO_DataInitStruct: pointer to an SDIO_DataInitTypeDef structure + * which will be initialized. + * @retval None + */ +void SDIO_DataStructInit(SDIO_DataInitTypeDef* SDIO_DataInitStruct) +{ + /* SDIO_DataInitStruct members default value */ + SDIO_DataInitStruct->SDIO_DataTimeOut = 0xFFFFFFFF; + SDIO_DataInitStruct->SDIO_DataLength = 0x00; + SDIO_DataInitStruct->SDIO_DataBlockSize = SDIO_DataBlockSize_1b; + SDIO_DataInitStruct->SDIO_TransferDir = SDIO_TransferDir_ToCard; + SDIO_DataInitStruct->SDIO_TransferMode = SDIO_TransferMode_Block; + SDIO_DataInitStruct->SDIO_DPSM = SDIO_DPSM_Disable; +} + +/** + * @brief Returns number of remaining data bytes to be transferred. + * @param None + * @retval Number of remaining data bytes to be transferred + */ +uint32_t SDIO_GetDataCounter(void) +{ + return SDIO->DCOUNT; +} + +/** + * @brief Read one data word from Rx FIFO. + * @param None + * @retval Data received + */ +uint32_t SDIO_ReadData(void) +{ + return SDIO->FIFO; +} + +/** + * @brief Write one data word to Tx FIFO. + * @param Data: 32-bit data word to write. + * @retval None + */ +void SDIO_WriteData(uint32_t Data) +{ + SDIO->FIFO = Data; +} + +/** + * @brief Returns the number of words left to be written to or read from FIFO. + * @param None + * @retval Remaining number of words. + */ +uint32_t SDIO_GetFIFOCount(void) +{ + return SDIO->FIFOCNT; +} + +/** + * @} + */ + +/** @defgroup SDIO_Group4 SDIO IO Cards mode management functions + * @brief SDIO IO Cards mode management functions + * +@verbatim + =============================================================================== + SDIO IO Cards mode management functions + =============================================================================== + + This section provide functions allowing to program and read the SDIO IO Cards. + +@endverbatim + * @{ + */ + +/** + * @brief Starts the SD I/O Read Wait operation. + * @param NewState: new state of the Start SDIO Read Wait operation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_StartSDIOReadWait(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) DCTRL_RWSTART_BB = (uint32_t) NewState; +} + +/** + * @brief Stops the SD I/O Read Wait operation. + * @param NewState: new state of the Stop SDIO Read Wait operation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_StopSDIOReadWait(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) DCTRL_RWSTOP_BB = (uint32_t) NewState; +} + +/** + * @brief Sets one of the two options of inserting read wait interval. + * @param SDIO_ReadWaitMode: SD I/O Read Wait operation mode. + * This parameter can be: + * @arg SDIO_ReadWaitMode_CLK: Read Wait control by stopping SDIOCLK + * @arg SDIO_ReadWaitMode_DATA2: Read Wait control using SDIO_DATA2 + * @retval None + */ +void SDIO_SetSDIOReadWaitMode(uint32_t SDIO_ReadWaitMode) +{ + /* Check the parameters */ + assert_param(IS_SDIO_READWAIT_MODE(SDIO_ReadWaitMode)); + + *(__IO uint32_t *) DCTRL_RWMOD_BB = SDIO_ReadWaitMode; +} + +/** + * @brief Enables or disables the SD I/O Mode Operation. + * @param NewState: new state of SDIO specific operation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_SetSDIOOperation(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) DCTRL_SDIOEN_BB = (uint32_t)NewState; +} + +/** + * @brief Enables or disables the SD I/O Mode suspend command sending. + * @param NewState: new state of the SD I/O Mode suspend command. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_SendSDIOSuspendCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMD_SDIOSUSPEND_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup SDIO_Group5 CE-ATA mode management functions + * @brief CE-ATA mode management functions + * +@verbatim + =============================================================================== + CE-ATA mode management functions + =============================================================================== + + This section provide functions allowing to program and read the CE-ATA card. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the command completion signal. + * @param NewState: new state of command completion signal. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_CommandCompletionCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMD_ENCMDCOMPL_BB = (uint32_t)NewState; +} + +/** + * @brief Enables or disables the CE-ATA interrupt. + * @param NewState: new state of CE-ATA interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_CEATAITCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMD_NIEN_BB = (uint32_t)((~((uint32_t)NewState)) & ((uint32_t)0x1)); +} + +/** + * @brief Sends CE-ATA command (CMD61). + * @param NewState: new state of CE-ATA command. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_SendCEATACmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMD_ATACMD_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup SDIO_Group6 DMA transfers management functions + * @brief DMA transfers management functions + * +@verbatim + =============================================================================== + DMA transfers management functions + =============================================================================== + + This section provide functions allowing to program SDIO DMA transfer. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the SDIO DMA request. + * @param NewState: new state of the selected SDIO DMA request. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_DMACmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) DCTRL_DMAEN_BB = (uint32_t)NewState; +} + +/** + * @} + */ + +/** @defgroup SDIO_Group7 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the SDIO interrupts. + * @param SDIO_IT: specifies the SDIO interrupt sources to be enabled or disabled. + * This parameter can be one or a combination of the following values: + * @arg SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt + * @arg SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt + * @arg SDIO_IT_CTIMEOUT: Command response timeout interrupt + * @arg SDIO_IT_DTIMEOUT: Data timeout interrupt + * @arg SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt + * @arg SDIO_IT_RXOVERR: Received FIFO overrun error interrupt + * @arg SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt + * @arg SDIO_IT_CMDSENT: Command sent (no response required) interrupt + * @arg SDIO_IT_DATAEND: Data end (data counter, SDIDCOUNT, is zero) interrupt + * @arg SDIO_IT_STBITERR: Start bit not detected on all data signals in wide + * bus mode interrupt + * @arg SDIO_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt + * @arg SDIO_IT_CMDACT: Command transfer in progress interrupt + * @arg SDIO_IT_TXACT: Data transmit in progress interrupt + * @arg SDIO_IT_RXACT: Data receive in progress interrupt + * @arg SDIO_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt + * @arg SDIO_IT_RXFIFOHF: Receive FIFO Half Full interrupt + * @arg SDIO_IT_TXFIFOF: Transmit FIFO full interrupt + * @arg SDIO_IT_RXFIFOF: Receive FIFO full interrupt + * @arg SDIO_IT_TXFIFOE: Transmit FIFO empty interrupt + * @arg SDIO_IT_RXFIFOE: Receive FIFO empty interrupt + * @arg SDIO_IT_TXDAVL: Data available in transmit FIFO interrupt + * @arg SDIO_IT_RXDAVL: Data available in receive FIFO interrupt + * @arg SDIO_IT_SDIOIT: SD I/O interrupt received interrupt + * @arg SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61 interrupt + * @param NewState: new state of the specified SDIO interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SDIO_ITConfig(uint32_t SDIO_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SDIO_IT(SDIO_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the SDIO interrupts */ + SDIO->MASK |= SDIO_IT; + } + else + { + /* Disable the SDIO interrupts */ + SDIO->MASK &= ~SDIO_IT; + } +} + +/** + * @brief Checks whether the specified SDIO flag is set or not. + * @param SDIO_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg SDIO_FLAG_CCRCFAIL: Command response received (CRC check failed) + * @arg SDIO_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) + * @arg SDIO_FLAG_CTIMEOUT: Command response timeout + * @arg SDIO_FLAG_DTIMEOUT: Data timeout + * @arg SDIO_FLAG_TXUNDERR: Transmit FIFO underrun error + * @arg SDIO_FLAG_RXOVERR: Received FIFO overrun error + * @arg SDIO_FLAG_CMDREND: Command response received (CRC check passed) + * @arg SDIO_FLAG_CMDSENT: Command sent (no response required) + * @arg SDIO_FLAG_DATAEND: Data end (data counter, SDIDCOUNT, is zero) + * @arg SDIO_FLAG_STBITERR: Start bit not detected on all data signals in wide bus mode. + * @arg SDIO_FLAG_DBCKEND: Data block sent/received (CRC check passed) + * @arg SDIO_FLAG_CMDACT: Command transfer in progress + * @arg SDIO_FLAG_TXACT: Data transmit in progress + * @arg SDIO_FLAG_RXACT: Data receive in progress + * @arg SDIO_FLAG_TXFIFOHE: Transmit FIFO Half Empty + * @arg SDIO_FLAG_RXFIFOHF: Receive FIFO Half Full + * @arg SDIO_FLAG_TXFIFOF: Transmit FIFO full + * @arg SDIO_FLAG_RXFIFOF: Receive FIFO full + * @arg SDIO_FLAG_TXFIFOE: Transmit FIFO empty + * @arg SDIO_FLAG_RXFIFOE: Receive FIFO empty + * @arg SDIO_FLAG_TXDAVL: Data available in transmit FIFO + * @arg SDIO_FLAG_RXDAVL: Data available in receive FIFO + * @arg SDIO_FLAG_SDIOIT: SD I/O interrupt received + * @arg SDIO_FLAG_CEATAEND: CE-ATA command completion signal received for CMD61 + * @retval The new state of SDIO_FLAG (SET or RESET). + */ +FlagStatus SDIO_GetFlagStatus(uint32_t SDIO_FLAG) +{ + FlagStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_SDIO_FLAG(SDIO_FLAG)); + + if ((SDIO->STA & SDIO_FLAG) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the SDIO's pending flags. + * @param SDIO_FLAG: specifies the flag to clear. + * This parameter can be one or a combination of the following values: + * @arg SDIO_FLAG_CCRCFAIL: Command response received (CRC check failed) + * @arg SDIO_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) + * @arg SDIO_FLAG_CTIMEOUT: Command response timeout + * @arg SDIO_FLAG_DTIMEOUT: Data timeout + * @arg SDIO_FLAG_TXUNDERR: Transmit FIFO underrun error + * @arg SDIO_FLAG_RXOVERR: Received FIFO overrun error + * @arg SDIO_FLAG_CMDREND: Command response received (CRC check passed) + * @arg SDIO_FLAG_CMDSENT: Command sent (no response required) + * @arg SDIO_FLAG_DATAEND: Data end (data counter, SDIDCOUNT, is zero) + * @arg SDIO_FLAG_STBITERR: Start bit not detected on all data signals in wide bus mode + * @arg SDIO_FLAG_DBCKEND: Data block sent/received (CRC check passed) + * @arg SDIO_FLAG_SDIOIT: SD I/O interrupt received + * @arg SDIO_FLAG_CEATAEND: CE-ATA command completion signal received for CMD61 + * @retval None + */ +void SDIO_ClearFlag(uint32_t SDIO_FLAG) +{ + /* Check the parameters */ + assert_param(IS_SDIO_CLEAR_FLAG(SDIO_FLAG)); + + SDIO->ICR = SDIO_FLAG; +} + +/** + * @brief Checks whether the specified SDIO interrupt has occurred or not. + * @param SDIO_IT: specifies the SDIO interrupt source to check. + * This parameter can be one of the following values: + * @arg SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt + * @arg SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt + * @arg SDIO_IT_CTIMEOUT: Command response timeout interrupt + * @arg SDIO_IT_DTIMEOUT: Data timeout interrupt + * @arg SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt + * @arg SDIO_IT_RXOVERR: Received FIFO overrun error interrupt + * @arg SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt + * @arg SDIO_IT_CMDSENT: Command sent (no response required) interrupt + * @arg SDIO_IT_DATAEND: Data end (data counter, SDIDCOUNT, is zero) interrupt + * @arg SDIO_IT_STBITERR: Start bit not detected on all data signals in wide + * bus mode interrupt + * @arg SDIO_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt + * @arg SDIO_IT_CMDACT: Command transfer in progress interrupt + * @arg SDIO_IT_TXACT: Data transmit in progress interrupt + * @arg SDIO_IT_RXACT: Data receive in progress interrupt + * @arg SDIO_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt + * @arg SDIO_IT_RXFIFOHF: Receive FIFO Half Full interrupt + * @arg SDIO_IT_TXFIFOF: Transmit FIFO full interrupt + * @arg SDIO_IT_RXFIFOF: Receive FIFO full interrupt + * @arg SDIO_IT_TXFIFOE: Transmit FIFO empty interrupt + * @arg SDIO_IT_RXFIFOE: Receive FIFO empty interrupt + * @arg SDIO_IT_TXDAVL: Data available in transmit FIFO interrupt + * @arg SDIO_IT_RXDAVL: Data available in receive FIFO interrupt + * @arg SDIO_IT_SDIOIT: SD I/O interrupt received interrupt + * @arg SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61 interrupt + * @retval The new state of SDIO_IT (SET or RESET). + */ +ITStatus SDIO_GetITStatus(uint32_t SDIO_IT) +{ + ITStatus bitstatus = RESET; + + /* Check the parameters */ + assert_param(IS_SDIO_GET_IT(SDIO_IT)); + if ((SDIO->STA & SDIO_IT) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the SDIO's interrupt pending bits. + * @param SDIO_IT: specifies the interrupt pending bit to clear. + * This parameter can be one or a combination of the following values: + * @arg SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt + * @arg SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt + * @arg SDIO_IT_CTIMEOUT: Command response timeout interrupt + * @arg SDIO_IT_DTIMEOUT: Data timeout interrupt + * @arg SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt + * @arg SDIO_IT_RXOVERR: Received FIFO overrun error interrupt + * @arg SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt + * @arg SDIO_IT_CMDSENT: Command sent (no response required) interrupt + * @arg SDIO_IT_DATAEND: Data end (data counter, SDIO_DCOUNT, is zero) interrupt + * @arg SDIO_IT_STBITERR: Start bit not detected on all data signals in wide + * bus mode interrupt + * @arg SDIO_IT_SDIOIT: SD I/O interrupt received interrupt + * @arg SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61 + * @retval None + */ +void SDIO_ClearITPendingBit(uint32_t SDIO_IT) +{ + /* Check the parameters */ + assert_param(IS_SDIO_CLEAR_IT(SDIO_IT)); + + SDIO->ICR = SDIO_IT; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_spi.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_spi.c new file mode 100644 index 00000000..033475e6 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_spi.c @@ -0,0 +1,1183 @@ +/** + ****************************************************************************** + * @file stm32f2xx_spi.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Serial peripheral interface (SPI): + * - Initialization and Configuration + * - Data transfers functions + * - Hardware CRC Calculation + * - DMA transfers management + * - Interrupts and flags management + * + * @verbatim + * + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable peripheral clock using the following functions + * RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1, ENABLE) for SPI1 + * RCC_APB1PeriphClockCmd(RCC_APB1Periph_SPI2, ENABLE) for SPI2 + * RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI3, ENABLE) for SPI3. + * + * 2. Enable SCK, MOSI, MISO and NSS GPIO clocks using RCC_AHB1PeriphClockCmd() + * function. + * In I2S mode, if an external clock source is used then the I2S CKIN pin GPIO + * clock should also be enabled. + * + * 3. Peripherals alternate function: + * - Connect the pin to the desired peripherals' Alternate + * Function (AF) using GPIO_PinAFConfig() function + * - Configure the desired pin in alternate function by: + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * In I2S mode, if an external clock source is used then the I2S CKIN pin + * should be also configured in Alternate function Push-pull pull-up mode. + * + * 4. Program the Polarity, Phase, First Data, Baud Rate Prescaler, Slave + * Management, Peripheral Mode and CRC Polynomial values using the SPI_Init() + * function. + * In I2S mode, program the Mode, Standard, Data Format, MCLK Output, Audio + * frequency and Polarity using I2S_Init() function. + * For I2S mode, make sure that either: + * - I2S PLL is configured using the functions RCC_I2SCLKConfig(RCC_I2S2CLKSource_PLLI2S), + * RCC_PLLI2SCmd(ENABLE) and RCC_GetFlagStatus(RCC_FLAG_PLLI2SRDY). + * or + * - External clock source is configured using the function + * RCC_I2SCLKConfig(RCC_I2S2CLKSource_Ext) and after setting correctly the define constant + * I2S_EXTERNAL_CLOCK_VAL in the stm32f2xx_conf.h file. + * + * 5. Enable the NVIC and the corresponding interrupt using the function + * SPI_ITConfig() if you need to use interrupt mode. + * + * 6. When using the DMA mode + * - Configure the DMA using DMA_Init() function + * - Active the needed channel Request using SPI_I2S_DMACmd() function + * + * 7. Enable the SPI using the SPI_Cmd() function or enable the I2S using + * I2S_Cmd(). + * + * 8. Enable the DMA using the DMA_Cmd() function when using DMA mode. + * + * 9. Optionally, you can enable/configure the following parameters without + * re-initialization (i.e there is no need to call again SPI_Init() function): + * - When bidirectional mode (SPI_Direction_1Line_Rx or SPI_Direction_1Line_Tx) + * is programmed as Data direction parameter using the SPI_Init() function + * it can be possible to switch between SPI_Direction_Tx or SPI_Direction_Rx + * using the SPI_BiDirectionalLineConfig() function. + * - When SPI_NSS_Soft is selected as Slave Select Management parameter + * using the SPI_Init() function it can be possible to manage the + * NSS internal signal using the SPI_NSSInternalSoftwareConfig() function. + * - Reconfigure the data size using the SPI_DataSizeConfig() function + * - Enable or disable the SS output using the SPI_SSOutputCmd() function + * + * 10. To use the CRC Hardware calculation feature refer to the Peripheral + * CRC hardware Calculation subsection. + * + * + * @note This driver supports only the I2S clock scheme available in Silicon + * RevisionB and RevisionY. + * + * @note In I2S mode: if an external clock is used as source clock for the I2S, + * then the define I2S_EXTERNAL_CLOCK_VAL in file stm32f2xx_conf.h should + * be enabled and set to the value of the source clock frequency (in Hz). + * + * @note In SPI mode: To use the SPI TI mode, call the function SPI_TIModeCmd() + * just after calling the function SPI_Init(). + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_spi.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup SPI + * @brief SPI driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* SPI registers Masks */ +#define CR1_CLEAR_MASK ((uint16_t)0x3040) +#define I2SCFGR_CLEAR_MASK ((uint16_t)0xF040) + +/* RCC PLLs masks */ +#define PLLCFGR_PPLR_MASK ((uint32_t)0x70000000) +#define PLLCFGR_PPLN_MASK ((uint32_t)0x00007FC0) + +#define SPI_CR2_FRF ((uint16_t)0x0010) +#define SPI_SR_TIFRFE ((uint16_t)0x0100) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup SPI_Private_Functions + * @{ + */ + +/** @defgroup SPI_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + + This section provides a set of functions allowing to initialize the SPI Direction, + SPI Mode, SPI Data Size, SPI Polarity, SPI Phase, SPI NSS Management, SPI Baud + Rate Prescaler, SPI First Bit and SPI CRC Polynomial. + + The SPI_Init() function follows the SPI configuration procedures for Master mode + and Slave mode (details for these procedures are available in reference manual + (RM0033)). + +@endverbatim + * @{ + */ + +/** + * @brief Deinitialize the SPIx peripheral registers to their default reset values. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @retval None + */ +void SPI_I2S_DeInit(SPI_TypeDef* SPIx) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + if (SPIx == SPI1) + { + /* Enable SPI1 reset state */ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SPI1, ENABLE); + /* Release SPI1 from reset state */ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SPI1, DISABLE); + } + else if (SPIx == SPI2) + { + /* Enable SPI2 reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI2, ENABLE); + /* Release SPI2 from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI2, DISABLE); + } + else + { + if (SPIx == SPI3) + { + /* Enable SPI3 reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI3, ENABLE); + /* Release SPI3 from reset state */ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_SPI3, DISABLE); + } + } +} + +/** + * @brief Initializes the SPIx peripheral according to the specified + * parameters in the SPI_InitStruct. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_InitStruct: pointer to a SPI_InitTypeDef structure that + * contains the configuration information for the specified SPI peripheral. + * @retval None + */ +void SPI_Init(SPI_TypeDef* SPIx, SPI_InitTypeDef* SPI_InitStruct) +{ + uint16_t tmpreg = 0; + + /* check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Check the SPI parameters */ + assert_param(IS_SPI_DIRECTION_MODE(SPI_InitStruct->SPI_Direction)); + assert_param(IS_SPI_MODE(SPI_InitStruct->SPI_Mode)); + assert_param(IS_SPI_DATASIZE(SPI_InitStruct->SPI_DataSize)); + assert_param(IS_SPI_CPOL(SPI_InitStruct->SPI_CPOL)); + assert_param(IS_SPI_CPHA(SPI_InitStruct->SPI_CPHA)); + assert_param(IS_SPI_NSS(SPI_InitStruct->SPI_NSS)); + assert_param(IS_SPI_BAUDRATE_PRESCALER(SPI_InitStruct->SPI_BaudRatePrescaler)); + assert_param(IS_SPI_FIRST_BIT(SPI_InitStruct->SPI_FirstBit)); + assert_param(IS_SPI_CRC_POLYNOMIAL(SPI_InitStruct->SPI_CRCPolynomial)); + +/*---------------------------- SPIx CR1 Configuration ------------------------*/ + /* Get the SPIx CR1 value */ + tmpreg = SPIx->CR1; + /* Clear BIDIMode, BIDIOE, RxONLY, SSM, SSI, LSBFirst, BR, MSTR, CPOL and CPHA bits */ + tmpreg &= CR1_CLEAR_MASK; + /* Configure SPIx: direction, NSS management, first transmitted bit, BaudRate prescaler + master/salve mode, CPOL and CPHA */ + /* Set BIDImode, BIDIOE and RxONLY bits according to SPI_Direction value */ + /* Set SSM, SSI and MSTR bits according to SPI_Mode and SPI_NSS values */ + /* Set LSBFirst bit according to SPI_FirstBit value */ + /* Set BR bits according to SPI_BaudRatePrescaler value */ + /* Set CPOL bit according to SPI_CPOL value */ + /* Set CPHA bit according to SPI_CPHA value */ + tmpreg |= (uint16_t)((uint32_t)SPI_InitStruct->SPI_Direction | SPI_InitStruct->SPI_Mode | + SPI_InitStruct->SPI_DataSize | SPI_InitStruct->SPI_CPOL | + SPI_InitStruct->SPI_CPHA | SPI_InitStruct->SPI_NSS | + SPI_InitStruct->SPI_BaudRatePrescaler | SPI_InitStruct->SPI_FirstBit); + /* Write to SPIx CR1 */ + SPIx->CR1 = tmpreg; + + /* Activate the SPI mode (Reset I2SMOD bit in I2SCFGR register) */ + SPIx->I2SCFGR &= (uint16_t)~((uint16_t)SPI_I2SCFGR_I2SMOD); +/*---------------------------- SPIx CRCPOLY Configuration --------------------*/ + /* Write to SPIx CRCPOLY */ + SPIx->CRCPR = SPI_InitStruct->SPI_CRCPolynomial; +} + +/** + * @brief Initializes the SPIx peripheral according to the specified + * parameters in the I2S_InitStruct. + * @param SPIx: where x can be 2 or 3 to select the SPI peripheral (configured in I2S mode). + * @param I2S_InitStruct: pointer to an I2S_InitTypeDef structure that + * contains the configuration information for the specified SPI peripheral + * configured in I2S mode. + * + * @note The function calculates the optimal prescaler needed to obtain the most + * accurate audio frequency (depending on the I2S clock source, the PLL values + * and the product configuration). But in case the prescaler value is greater + * than 511, the default value (0x02) will be configured instead. + * + * @note if an external clock is used as source clock for the I2S, then the define + * I2S_EXTERNAL_CLOCK_VAL in file stm32f2xx_conf.h should be enabled and set + * to the value of the the source clock frequency (in Hz). + * + * @retval None + */ +void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct) +{ + uint16_t tmpreg = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; + uint32_t tmp = 0, i2sclk = 0; +#ifndef I2S_EXTERNAL_CLOCK_VAL + uint32_t pllm = 0, plln = 0, pllr = 0; +#endif /* I2S_EXTERNAL_CLOCK_VAL */ + + /* Check the I2S parameters */ + assert_param(IS_SPI_23_PERIPH(SPIx)); + assert_param(IS_I2S_MODE(I2S_InitStruct->I2S_Mode)); + assert_param(IS_I2S_STANDARD(I2S_InitStruct->I2S_Standard)); + assert_param(IS_I2S_DATA_FORMAT(I2S_InitStruct->I2S_DataFormat)); + assert_param(IS_I2S_MCLK_OUTPUT(I2S_InitStruct->I2S_MCLKOutput)); + assert_param(IS_I2S_AUDIO_FREQ(I2S_InitStruct->I2S_AudioFreq)); + assert_param(IS_I2S_CPOL(I2S_InitStruct->I2S_CPOL)); + +/*----------------------- SPIx I2SCFGR & I2SPR Configuration -----------------*/ + /* Clear I2SMOD, I2SE, I2SCFG, PCMSYNC, I2SSTD, CKPOL, DATLEN and CHLEN bits */ + SPIx->I2SCFGR &= I2SCFGR_CLEAR_MASK; + SPIx->I2SPR = 0x0002; + + /* Get the I2SCFGR register value */ + tmpreg = SPIx->I2SCFGR; + + /* If the default value has to be written, reinitialize i2sdiv and i2sodd*/ + if(I2S_InitStruct->I2S_AudioFreq == I2S_AudioFreq_Default) + { + i2sodd = (uint16_t)0; + i2sdiv = (uint16_t)2; + } + /* If the requested audio frequency is not the default, compute the prescaler */ + else + { + /* Check the frame length (For the Prescaler computing) *******************/ + if(I2S_InitStruct->I2S_DataFormat == I2S_DataFormat_16b) + { + /* Packet length is 16 bits */ + packetlength = 1; + } + else + { + /* Packet length is 32 bits */ + packetlength = 2; + } + + /* Get I2S source Clock frequency (only in Silicon RevisionB and RevisionY) */ + + /* If an external I2S clock has to be used, this define should be set + in the project configuration or in the stm32f2xx_conf.h file */ + #ifdef I2S_EXTERNAL_CLOCK_VAL + /* Set external clock as I2S clock source */ + if ((RCC->CFGR & RCC_CFGR_I2SSRC) == 0) + { + RCC->CFGR |= (uint32_t)RCC_CFGR_I2SSRC; + } + + /* Set the I2S clock to the external clock value */ + i2sclk = I2S_EXTERNAL_CLOCK_VAL; + + #else /* There is no define for External I2S clock source */ + /* Set PLLI2S as I2S clock source */ + if ((RCC->CFGR & RCC_CFGR_I2SSRC) != 0) + { + RCC->CFGR &= ~(uint32_t)RCC_CFGR_I2SSRC; + } + + /* Get the PLLI2SN value */ + plln = (uint32_t)(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SN) >> 6) & \ + (RCC_PLLI2SCFGR_PLLI2SN >> 6)); + + /* Get the PLLI2SR value */ + pllr = (uint32_t)(((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> 28) & \ + (RCC_PLLI2SCFGR_PLLI2SR >> 28)); + + /* Get the PLLM value */ + pllm = (uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLM); + + /* Get the I2S source clock value */ + i2sclk = (uint32_t)(((HSE_VALUE / pllm) * plln) / pllr); + #endif /* I2S_EXTERNAL_CLOCK_VAL */ + + /* Compute the Real divider depending on the MCLK output state, with a floating point */ + if(I2S_InitStruct->I2S_MCLKOutput == I2S_MCLKOutput_Enable) + { + /* MCLK output is enabled */ + tmp = (uint16_t)(((((i2sclk / 256) * 10) / I2S_InitStruct->I2S_AudioFreq)) + 5); + } + else + { + /* MCLK output is disabled */ + tmp = (uint16_t)(((((i2sclk / (32 * packetlength)) *10 ) / I2S_InitStruct->I2S_AudioFreq)) + 5); + } + + /* Remove the flatting point */ + tmp = tmp / 10; + + /* Check the parity of the divider */ + i2sodd = (uint16_t)(tmp & (uint16_t)0x0001); + + /* Compute the i2sdiv prescaler */ + i2sdiv = (uint16_t)((tmp - i2sodd) / 2); + + /* Get the Mask for the Odd bit (SPI_I2SPR[8]) register */ + i2sodd = (uint16_t) (i2sodd << 8); + } + + /* Test if the divider is 1 or 0 or greater than 0xFF */ + if ((i2sdiv < 2) || (i2sdiv > 0xFF)) + { + /* Set the default values */ + i2sdiv = 2; + i2sodd = 0; + } + + /* Write to SPIx I2SPR register the computed value */ + SPIx->I2SPR = (uint16_t)((uint16_t)i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->I2S_MCLKOutput)); + + /* Configure the I2S with the SPI_InitStruct values */ + tmpreg |= (uint16_t)((uint16_t)SPI_I2SCFGR_I2SMOD | (uint16_t)(I2S_InitStruct->I2S_Mode | \ + (uint16_t)(I2S_InitStruct->I2S_Standard | (uint16_t)(I2S_InitStruct->I2S_DataFormat | \ + (uint16_t)I2S_InitStruct->I2S_CPOL)))); + + /* Write to SPIx I2SCFGR */ + SPIx->I2SCFGR = tmpreg; +} + +/** + * @brief Fills each SPI_InitStruct member with its default value. + * @param SPI_InitStruct: pointer to a SPI_InitTypeDef structure which will be initialized. + * @retval None + */ +void SPI_StructInit(SPI_InitTypeDef* SPI_InitStruct) +{ +/*--------------- Reset SPI init structure parameters values -----------------*/ + /* Initialize the SPI_Direction member */ + SPI_InitStruct->SPI_Direction = SPI_Direction_2Lines_FullDuplex; + /* initialize the SPI_Mode member */ + SPI_InitStruct->SPI_Mode = SPI_Mode_Slave; + /* initialize the SPI_DataSize member */ + SPI_InitStruct->SPI_DataSize = SPI_DataSize_8b; + /* Initialize the SPI_CPOL member */ + SPI_InitStruct->SPI_CPOL = SPI_CPOL_Low; + /* Initialize the SPI_CPHA member */ + SPI_InitStruct->SPI_CPHA = SPI_CPHA_1Edge; + /* Initialize the SPI_NSS member */ + SPI_InitStruct->SPI_NSS = SPI_NSS_Hard; + /* Initialize the SPI_BaudRatePrescaler member */ + SPI_InitStruct->SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_2; + /* Initialize the SPI_FirstBit member */ + SPI_InitStruct->SPI_FirstBit = SPI_FirstBit_MSB; + /* Initialize the SPI_CRCPolynomial member */ + SPI_InitStruct->SPI_CRCPolynomial = 7; +} + +/** + * @brief Fills each I2S_InitStruct member with its default value. + * @param I2S_InitStruct: pointer to a I2S_InitTypeDef structure which will be initialized. + * @retval None + */ +void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct) +{ +/*--------------- Reset I2S init structure parameters values -----------------*/ + /* Initialize the I2S_Mode member */ + I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx; + + /* Initialize the I2S_Standard member */ + I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips; + + /* Initialize the I2S_DataFormat member */ + I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b; + + /* Initialize the I2S_MCLKOutput member */ + I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable; + + /* Initialize the I2S_AudioFreq member */ + I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default; + + /* Initialize the I2S_CPOL member */ + I2S_InitStruct->I2S_CPOL = I2S_CPOL_Low; +} + +/** + * @brief Enables or disables the specified SPI peripheral. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param NewState: new state of the SPIx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected SPI peripheral */ + SPIx->CR1 |= SPI_CR1_SPE; + } + else + { + /* Disable the selected SPI peripheral */ + SPIx->CR1 &= (uint16_t)~((uint16_t)SPI_CR1_SPE); + } +} + +/** + * @brief Enables or disables the specified SPI peripheral (in I2S mode). + * @param SPIx: where x can be 2 or 3 to select the SPI peripheral. + * @param NewState: new state of the SPIx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_23_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected SPI peripheral (in I2S mode) */ + SPIx->I2SCFGR |= SPI_I2SCFGR_I2SE; + } + else + { + /* Disable the selected SPI peripheral in I2S mode */ + SPIx->I2SCFGR &= (uint16_t)~((uint16_t)SPI_I2SCFGR_I2SE); + } +} + +/** + * @brief Configures the data size for the selected SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_DataSize: specifies the SPI data size. + * This parameter can be one of the following values: + * @arg SPI_DataSize_16b: Set data frame format to 16bit + * @arg SPI_DataSize_8b: Set data frame format to 8bit + * @retval None + */ +void SPI_DataSizeConfig(SPI_TypeDef* SPIx, uint16_t SPI_DataSize) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_DATASIZE(SPI_DataSize)); + /* Clear DFF bit */ + SPIx->CR1 &= (uint16_t)~SPI_DataSize_16b; + /* Set new DFF bit value */ + SPIx->CR1 |= SPI_DataSize; +} + +/** + * @brief Selects the data transfer direction in bidirectional mode for the specified SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_Direction: specifies the data transfer direction in bidirectional mode. + * This parameter can be one of the following values: + * @arg SPI_Direction_Tx: Selects Tx transmission direction + * @arg SPI_Direction_Rx: Selects Rx receive direction + * @retval None + */ +void SPI_BiDirectionalLineConfig(SPI_TypeDef* SPIx, uint16_t SPI_Direction) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_DIRECTION(SPI_Direction)); + if (SPI_Direction == SPI_Direction_Tx) + { + /* Set the Tx only mode */ + SPIx->CR1 |= SPI_Direction_Tx; + } + else + { + /* Set the Rx only mode */ + SPIx->CR1 &= SPI_Direction_Rx; + } +} + +/** + * @brief Configures internally by software the NSS pin for the selected SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_NSSInternalSoft: specifies the SPI NSS internal state. + * This parameter can be one of the following values: + * @arg SPI_NSSInternalSoft_Set: Set NSS pin internally + * @arg SPI_NSSInternalSoft_Reset: Reset NSS pin internally + * @retval None + */ +void SPI_NSSInternalSoftwareConfig(SPI_TypeDef* SPIx, uint16_t SPI_NSSInternalSoft) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_NSS_INTERNAL(SPI_NSSInternalSoft)); + if (SPI_NSSInternalSoft != SPI_NSSInternalSoft_Reset) + { + /* Set NSS pin internally by software */ + SPIx->CR1 |= SPI_NSSInternalSoft_Set; + } + else + { + /* Reset NSS pin internally by software */ + SPIx->CR1 &= SPI_NSSInternalSoft_Reset; + } +} + +/** + * @brief Enables or disables the SS output for the selected SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param NewState: new state of the SPIx SS output. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_SSOutputCmd(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected SPI SS output */ + SPIx->CR2 |= (uint16_t)SPI_CR2_SSOE; + } + else + { + /* Disable the selected SPI SS output */ + SPIx->CR2 &= (uint16_t)~((uint16_t)SPI_CR2_SSOE); + } +} + +/** + * @brief Enables or disables the SPIx/I2Sx DMA interface. + * + * @note This function can be called only after the SPI_Init() function has + * been called. + * @note When TI mode is selected, the control bits SSM, SSI, CPOL and CPHA + * are not taken into consideration and are configured by hardware + * respectively to the TI mode requirements. + * + * @param SPIx: where x can be 1, 2 or 3 + * @param NewState: new state of the selected SPI TI communication mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_TIModeCmd(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the TI mode for the selected SPI peripheral */ + SPIx->CR2 |= SPI_CR2_FRF; + } + else + { + /* Disable the TI mode for the selected SPI peripheral */ + SPIx->CR2 &= (uint16_t)~SPI_CR2_FRF; + } +} + +/** + * @} + */ + +/** @defgroup SPI_Group2 Data transfers functions + * @brief Data transfers functions + * +@verbatim + =============================================================================== + Data transfers functions + =============================================================================== + + This section provides a set of functions allowing to manage the SPI data transfers + + In reception, data are received and then stored into an internal Rx buffer while + In transmission, data are first stored into an internal Tx buffer before being + transmitted. + + The read access of the SPI_DR register can be done using the SPI_I2S_ReceiveData() + function and returns the Rx buffered value. Whereas a write access to the SPI_DR + can be done using SPI_I2S_SendData() function and stores the written data into + Tx buffer. + +@endverbatim + * @{ + */ + +/** + * @brief Returns the most recent received data by the SPIx/I2Sx peripheral. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @retval The value of the received data. + */ +uint16_t SPI_I2S_ReceiveData(SPI_TypeDef* SPIx) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Return the data in the DR register */ + return SPIx->DR; +} + +/** + * @brief Transmits a Data through the SPIx/I2Sx peripheral. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param Data: Data to be transmitted. + * @retval None + */ +void SPI_I2S_SendData(SPI_TypeDef* SPIx, uint16_t Data) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Write in the DR register the data to be sent */ + SPIx->DR = Data; +} + +/** + * @} + */ + +/** @defgroup SPI_Group3 Hardware CRC Calculation functions + * @brief Hardware CRC Calculation functions + * +@verbatim + =============================================================================== + Hardware CRC Calculation functions + =============================================================================== + + This section provides a set of functions allowing to manage the SPI CRC hardware + calculation + + SPI communication using CRC is possible through the following procedure: + 1. Program the Data direction, Polarity, Phase, First Data, Baud Rate Prescaler, + Slave Management, Peripheral Mode and CRC Polynomial values using the SPI_Init() + function. + 2. Enable the CRC calculation using the SPI_CalculateCRC() function. + 3. Enable the SPI using the SPI_Cmd() function + 4. Before writing the last data to the TX buffer, set the CRCNext bit using the + SPI_TransmitCRC() function to indicate that after transmission of the last + data, the CRC should be transmitted. + 5. After transmitting the last data, the SPI transmits the CRC. The SPI_CR1_CRCNEXT + bit is reset. The CRC is also received and compared against the SPI_RXCRCR + value. + If the value does not match, the SPI_FLAG_CRCERR flag is set and an interrupt + can be generated when the SPI_I2S_IT_ERR interrupt is enabled. + +@note It is advised not to read the calculated CRC values during the communication. + +@note When the SPI is in slave mode, be careful to enable CRC calculation only + when the clock is stable, that is, when the clock is in the steady state. + If not, a wrong CRC calculation may be done. In fact, the CRC is sensitive + to the SCK slave input clock as soon as CRCEN is set, and this, whatever + the value of the SPE bit. + +@note With high bitrate frequencies, be careful when transmitting the CRC. + As the number of used CPU cycles has to be as low as possible in the CRC + transfer phase, it is forbidden to call software functions in the CRC + transmission sequence to avoid errors in the last data and CRC reception. + In fact, CRCNEXT bit has to be written before the end of the transmission/reception + of the last data. + +@note For high bit rate frequencies, it is advised to use the DMA mode to avoid the + degradation of the SPI speed performance due to CPU accesses impacting the + SPI bandwidth. + +@note When the STM32F2xx is configured as slave and the NSS hardware mode is + used, the NSS pin needs to be kept low between the data phase and the CRC + phase. + +@note When the SPI is configured in slave mode with the CRC feature enabled, CRC + calculation takes place even if a high level is applied on the NSS pin. + This may happen for example in case of a multi-slave environment where the + communication master addresses slaves alternately. + +@note Between a slave de-selection (high level on NSS) and a new slave selection + (low level on NSS), the CRC value should be cleared on both master and slave + sides in order to resynchronize the master and slave for their respective + CRC calculation. + +@note To clear the CRC, follow the procedure below: + 1. Disable SPI using the SPI_Cmd() function + 2. Disable the CRC calculation using the SPI_CalculateCRC() function. + 3. Enable the CRC calculation using the SPI_CalculateCRC() function. + 4. Enable SPI using the SPI_Cmd() function. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the CRC value calculation of the transferred bytes. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param NewState: new state of the SPIx CRC value calculation. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_CalculateCRC(SPI_TypeDef* SPIx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the selected SPI CRC calculation */ + SPIx->CR1 |= SPI_CR1_CRCEN; + } + else + { + /* Disable the selected SPI CRC calculation */ + SPIx->CR1 &= (uint16_t)~((uint16_t)SPI_CR1_CRCEN); + } +} + +/** + * @brief Transmit the SPIx CRC value. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @retval None + */ +void SPI_TransmitCRC(SPI_TypeDef* SPIx) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Enable the selected SPI CRC transmission */ + SPIx->CR1 |= SPI_CR1_CRCNEXT; +} + +/** + * @brief Returns the transmit or the receive CRC register value for the specified SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @param SPI_CRC: specifies the CRC register to be read. + * This parameter can be one of the following values: + * @arg SPI_CRC_Tx: Selects Tx CRC register + * @arg SPI_CRC_Rx: Selects Rx CRC register + * @retval The selected CRC register value.. + */ +uint16_t SPI_GetCRC(SPI_TypeDef* SPIx, uint8_t SPI_CRC) +{ + uint16_t crcreg = 0; + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_CRC(SPI_CRC)); + if (SPI_CRC != SPI_CRC_Rx) + { + /* Get the Tx CRC register */ + crcreg = SPIx->TXCRCR; + } + else + { + /* Get the Rx CRC register */ + crcreg = SPIx->RXCRCR; + } + /* Return the selected CRC register */ + return crcreg; +} + +/** + * @brief Returns the CRC Polynomial register value for the specified SPI. + * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral. + * @retval The CRC Polynomial register value. + */ +uint16_t SPI_GetCRCPolynomial(SPI_TypeDef* SPIx) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + + /* Return the CRC polynomial register */ + return SPIx->CRCPR; +} + +/** + * @} + */ + +/** @defgroup SPI_Group4 DMA transfers management functions + * @brief DMA transfers management functions + * +@verbatim + =============================================================================== + DMA transfers management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the SPIx/I2Sx DMA interface. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_DMAReq: specifies the SPI DMA transfer request to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg SPI_I2S_DMAReq_Tx: Tx buffer DMA transfer request + * @arg SPI_I2S_DMAReq_Rx: Rx buffer DMA transfer request + * @param NewState: new state of the selected SPI DMA transfer request. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_SPI_I2S_DMAREQ(SPI_I2S_DMAReq)); + + if (NewState != DISABLE) + { + /* Enable the selected SPI DMA requests */ + SPIx->CR2 |= SPI_I2S_DMAReq; + } + else + { + /* Disable the selected SPI DMA requests */ + SPIx->CR2 &= (uint16_t)~SPI_I2S_DMAReq; + } +} + +/** + * @} + */ + +/** @defgroup SPI_Group5 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This section provides a set of functions allowing to configure the SPI Interrupts + sources and check or clear the flags or pending bits status. + The user should identify which mode will be used in his application to manage + the communication: Polling mode, Interrupt mode or DMA mode. + + Polling Mode + ============= + In Polling Mode, the SPI/I2S communication can be managed by 9 flags: + 1. SPI_I2S_FLAG_TXE : to indicate the status of the transmit buffer register + 2. SPI_I2S_FLAG_RXNE : to indicate the status of the receive buffer register + 3. SPI_I2S_FLAG_BSY : to indicate the state of the communication layer of the SPI. + 4. SPI_FLAG_CRCERR : to indicate if a CRC Calculation error occur + 5. SPI_FLAG_MODF : to indicate if a Mode Fault error occur + 6. SPI_I2S_FLAG_OVR : to indicate if an Overrun error occur + 7. I2S_FLAG_TIFRFE: to indicate a Frame Format error occurs. + 8. I2S_FLAG_UDR: to indicate an Underrun error occurs. + 9. I2S_FLAG_CHSIDE: to indicate Channel Side. + +@note Do not use the BSY flag to handle each data transmission or reception. It is + better to use the TXE and RXNE flags instead. + + In this Mode it is advised to use the following functions: + - FlagStatus SPI_I2S_GetFlagStatus(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG); + - void SPI_I2S_ClearFlag(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG); + + Interrupt Mode + =============== + In Interrupt Mode, the SPI communication can be managed by 3 interrupt sources + and 7 pending bits: + Pending Bits: + ------------- + 1. SPI_I2S_IT_TXE : to indicate the status of the transmit buffer register + 2. SPI_I2S_IT_RXNE : to indicate the status of the receive buffer register + 3. SPI_IT_CRCERR : to indicate if a CRC Calculation error occur (available in SPI mode only) + 4. SPI_IT_MODF : to indicate if a Mode Fault error occur (available in SPI mode only) + 5. SPI_I2S_IT_OVR : to indicate if an Overrun error occur + 6. I2S_IT_UDR : to indicate an Underrun Error occurs (available in I2S mode only). + 7. I2S_FLAG_TIFRFE : to indicate a Frame Format error occurs (available in TI mode only). + + Interrupt Source: + ----------------- + 1. SPI_I2S_IT_TXE: specifies the interrupt source for the Tx buffer empty + interrupt. + 2. SPI_I2S_IT_RXNE : specifies the interrupt source for the Rx buffer not + empty interrupt. + 3. SPI_I2S_IT_ERR : specifies the interrupt source for the errors interrupt. + + In this Mode it is advised to use the following functions: + - void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState); + - ITStatus SPI_I2S_GetITStatus(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT); + - void SPI_I2S_ClearITPendingBit(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT); + + DMA Mode + ======== + In DMA Mode, the SPI communication can be managed by 2 DMA Channel requests: + 1. SPI_I2S_DMAReq_Tx: specifies the Tx buffer DMA transfer request + 2. SPI_I2S_DMAReq_Rx: specifies the Rx buffer DMA transfer request + + In this Mode it is advised to use the following function: + - void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState); + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified SPI/I2S interrupts. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_IT: specifies the SPI interrupt source to be enabled or disabled. + * This parameter can be one of the following values: + * @arg SPI_I2S_IT_TXE: Tx buffer empty interrupt mask + * @arg SPI_I2S_IT_RXNE: Rx buffer not empty interrupt mask + * @arg SPI_I2S_IT_ERR: Error interrupt mask + * @param NewState: new state of the specified SPI interrupt. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState) +{ + uint16_t itpos = 0, itmask = 0 ; + + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + assert_param(IS_SPI_I2S_CONFIG_IT(SPI_I2S_IT)); + + /* Get the SPI IT index */ + itpos = SPI_I2S_IT >> 4; + + /* Set the IT mask */ + itmask = (uint16_t)1 << (uint16_t)itpos; + + if (NewState != DISABLE) + { + /* Enable the selected SPI interrupt */ + SPIx->CR2 |= itmask; + } + else + { + /* Disable the selected SPI interrupt */ + SPIx->CR2 &= (uint16_t)~itmask; + } +} + +/** + * @brief Checks whether the specified SPIx/I2Sx flag is set or not. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_FLAG: specifies the SPI flag to check. + * This parameter can be one of the following values: + * @arg SPI_I2S_FLAG_TXE: Transmit buffer empty flag. + * @arg SPI_I2S_FLAG_RXNE: Receive buffer not empty flag. + * @arg SPI_I2S_FLAG_BSY: Busy flag. + * @arg SPI_I2S_FLAG_OVR: Overrun flag. + * @arg SPI_FLAG_MODF: Mode Fault flag. + * @arg SPI_FLAG_CRCERR: CRC Error flag. + * @arg SPI_I2S_FLAG_TIFRFE: Format Error. + * @arg I2S_FLAG_UDR: Underrun Error flag. + * @arg I2S_FLAG_CHSIDE: Channel Side flag. + * @retval The new state of SPI_I2S_FLAG (SET or RESET). + */ +FlagStatus SPI_I2S_GetFlagStatus(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_I2S_GET_FLAG(SPI_I2S_FLAG)); + + /* Check the status of the specified SPI flag */ + if ((SPIx->SR & SPI_I2S_FLAG) != (uint16_t)RESET) + { + /* SPI_I2S_FLAG is set */ + bitstatus = SET; + } + else + { + /* SPI_I2S_FLAG is reset */ + bitstatus = RESET; + } + /* Return the SPI_I2S_FLAG status */ + return bitstatus; +} + +/** + * @brief Clears the SPIx CRC Error (CRCERR) flag. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_FLAG: specifies the SPI flag to clear. + * This function clears only CRCERR flag. + * @arg SPI_FLAG_CRCERR: CRC Error flag. + * + * @note OVR (OverRun error) flag is cleared by software sequence: a read + * operation to SPI_DR register (SPI_I2S_ReceiveData()) followed by a read + * operation to SPI_SR register (SPI_I2S_GetFlagStatus()). + * @note UDR (UnderRun error) flag is cleared by a read operation to + * SPI_SR register (SPI_I2S_GetFlagStatus()). + * @note MODF (Mode Fault) flag is cleared by software sequence: a read/write + * operation to SPI_SR register (SPI_I2S_GetFlagStatus()) followed by a + * write operation to SPI_CR1 register (SPI_Cmd() to enable the SPI). + * + * @retval None + */ +void SPI_I2S_ClearFlag(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG) +{ + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_I2S_CLEAR_FLAG(SPI_I2S_FLAG)); + + /* Clear the selected SPI CRC Error (CRCERR) flag */ + SPIx->SR = (uint16_t)~SPI_I2S_FLAG; +} + +/** + * @brief Checks whether the specified SPIx/I2Sx interrupt has occurred or not. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_IT: specifies the SPI interrupt source to check. + * This parameter can be one of the following values: + * @arg SPI_I2S_IT_TXE: Transmit buffer empty interrupt. + * @arg SPI_I2S_IT_RXNE: Receive buffer not empty interrupt. + * @arg SPI_I2S_IT_OVR: Overrun interrupt. + * @arg SPI_IT_MODF: Mode Fault interrupt. + * @arg SPI_IT_CRCERR: CRC Error interrupt. + * @arg I2S_IT_UDR: Underrun interrupt. + * @arg SPI_I2S_IT_TIFRFE: Format Error interrupt. + * @retval The new state of SPI_I2S_IT (SET or RESET). + */ +ITStatus SPI_I2S_GetITStatus(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT) +{ + ITStatus bitstatus = RESET; + uint16_t itpos = 0, itmask = 0, enablestatus = 0; + + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_I2S_GET_IT(SPI_I2S_IT)); + + /* Get the SPI_I2S_IT index */ + itpos = 0x01 << (SPI_I2S_IT & 0x0F); + + /* Get the SPI_I2S_IT IT mask */ + itmask = SPI_I2S_IT >> 4; + + /* Set the IT mask */ + itmask = 0x01 << itmask; + + /* Get the SPI_I2S_IT enable bit status */ + enablestatus = (SPIx->CR2 & itmask) ; + + /* Check the status of the specified SPI interrupt */ + if (((SPIx->SR & itpos) != (uint16_t)RESET) && enablestatus) + { + /* SPI_I2S_IT is set */ + bitstatus = SET; + } + else + { + /* SPI_I2S_IT is reset */ + bitstatus = RESET; + } + /* Return the SPI_I2S_IT status */ + return bitstatus; +} + +/** + * @brief Clears the SPIx CRC Error (CRCERR) interrupt pending bit. + * @param SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2 or 3 + * in SPI mode or 2 or 3 in I2S mode. + * @param SPI_I2S_IT: specifies the SPI interrupt pending bit to clear. + * This function clears only CRCERR interrupt pending bit. + * @arg SPI_IT_CRCERR: CRC Error interrupt. + * + * @note OVR (OverRun Error) interrupt pending bit is cleared by software + * sequence: a read operation to SPI_DR register (SPI_I2S_ReceiveData()) + * followed by a read operation to SPI_SR register (SPI_I2S_GetITStatus()). + * @note UDR (UnderRun Error) interrupt pending bit is cleared by a read + * operation to SPI_SR register (SPI_I2S_GetITStatus()). + * @note MODF (Mode Fault) interrupt pending bit is cleared by software sequence: + * a read/write operation to SPI_SR register (SPI_I2S_GetITStatus()) + * followed by a write operation to SPI_CR1 register (SPI_Cmd() to enable + * the SPI). + * @retval None + */ +void SPI_I2S_ClearITPendingBit(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT) +{ + uint16_t itpos = 0; + /* Check the parameters */ + assert_param(IS_SPI_ALL_PERIPH(SPIx)); + assert_param(IS_SPI_I2S_CLEAR_IT(SPI_I2S_IT)); + + /* Get the SPI_I2S IT index */ + itpos = 0x01 << (SPI_I2S_IT & 0x0F); + + /* Clear the selected SPI CRC Error (CRCERR) interrupt pending bit */ + SPIx->SR = (uint16_t)~itpos; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_syscfg.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_syscfg.c new file mode 100644 index 00000000..83c9da67 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_syscfg.c @@ -0,0 +1,210 @@ +/** + ****************************************************************************** + * @file stm32f2xx_syscfg.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the SYSCFG peripheral. + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * + * This driver provides functions for: + * + * 1. Remapping the memory accessible in the code area using SYSCFG_MemoryRemapConfig() + * + * 2. Manage the EXTI lines connection to the GPIOs using SYSCFG_EXTILineConfig() + * + * 3. Select the ETHERNET media interface (RMII/RII) using SYSCFG_ETH_MediaInterfaceConfig() + * + * @note SYSCFG APB clock must be enabled to get write access to SYSCFG registers, + * using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_syscfg.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup SYSCFG + * @brief SYSCFG driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/* ------------ RCC registers bit address in the alias region ----------- */ +#define SYSCFG_OFFSET (SYSCFG_BASE - PERIPH_BASE) +/* --- PMC Register ---*/ +/* Alias word address of MII_RMII_SEL bit */ +#define PMC_OFFSET (SYSCFG_OFFSET + 0x04) +#define MII_RMII_SEL_BitNumber ((uint8_t)0x17) +#define PMC_MII_RMII_SEL_BB (PERIPH_BB_BASE + (PMC_OFFSET * 32) + (MII_RMII_SEL_BitNumber * 4)) + +/* --- CMPCR Register ---*/ +/* Alias word address of CMP_PD bit */ +#define CMPCR_OFFSET (SYSCFG_OFFSET + 0x20) +#define CMP_PD_BitNumber ((uint8_t)0x00) +#define CMPCR_CMP_PD_BB (PERIPH_BB_BASE + (CMPCR_OFFSET * 32) + (CMP_PD_BitNumber * 4)) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup SYSCFG_Private_Functions + * @{ + */ + +/** + * @brief Deinitializes the Alternate Functions (remap and EXTI configuration) + * registers to their default reset values. + * @param None + * @retval None + */ +void SYSCFG_DeInit(void) +{ + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, DISABLE); +} + +/** + * @brief Changes the mapping of the specified pin. + * @param SYSCFG_Memory: selects the memory remapping. + * This parameter can be one of the following values: + * @arg SYSCFG_MemoryRemap_Flash: Main Flash memory mapped at 0x00000000 + * @arg SYSCFG_MemoryRemap_SystemFlash: System Flash memory mapped at 0x00000000 + * @arg SYSCFG_MemoryRemap_FSMC: FSMC (Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 + * @arg SYSCFG_MemoryRemap_SRAM: Embedded SRAM (112kB) mapped at 0x00000000 + * + * @note In remap mode, the FSMC addressing is fixed to the remap address area only + * (Bank1 NOR/PSRAM 1 and NOR/PSRAM 2) and FSMC control registers are not + * accessible. The FSMC remap function must be disabled to allows addressing + * other memory devices through the FSMC and/or to access FSMC control + * registers. + * + * @retval None + */ +void SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap) +{ + /* Check the parameters */ + assert_param(IS_SYSCFG_MEMORY_REMAP_CONFING(SYSCFG_MemoryRemap)); + + SYSCFG->MEMRMP = SYSCFG_MemoryRemap; +} + +/** + * @brief Selects the GPIO pin used as EXTI Line. + * @param EXTI_PortSourceGPIOx : selects the GPIO port to be used as source for + * EXTI lines where x can be (A..I). + * @param EXTI_PinSourcex: specifies the EXTI line to be configured. + * This parameter can be EXTI_PinSourcex where x can be (0..15, except + * for EXTI_PortSourceGPIOI x can be (0..11). + * @retval None + */ +void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex) +{ + uint32_t tmp = 0x00; + + /* Check the parameters */ + assert_param(IS_EXTI_PORT_SOURCE(EXTI_PortSourceGPIOx)); + assert_param(IS_EXTI_PIN_SOURCE(EXTI_PinSourcex)); + + tmp = ((uint32_t)0x0F) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03)); + SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] &= ~tmp; + SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] |= (((uint32_t)EXTI_PortSourceGPIOx) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03))); +} + +/** + * @brief Selects the ETHERNET media interface + * @param SYSCFG_ETH_MediaInterface: specifies the Media Interface mode. + * This parameter can be one of the following values: + * @arg SYSCFG_ETH_MediaInterface_MII: MII mode selected + * @arg SYSCFG_ETH_MediaInterface_RMII: RMII mode selected + * @retval None + */ +void SYSCFG_ETH_MediaInterfaceConfig(uint32_t SYSCFG_ETH_MediaInterface) +{ + assert_param(IS_SYSCFG_ETH_MEDIA_INTERFACE(SYSCFG_ETH_MediaInterface)); + /* Configure MII_RMII selection bit */ + *(__IO uint32_t *) PMC_MII_RMII_SEL_BB = SYSCFG_ETH_MediaInterface; +} + +/** + * @brief Enables or disables the I/O Compensation Cell. + * @note The I/O compensation cell can be used only when the device supply + * voltage ranges from 2.4 to 3.6 V. + * @param NewState: new state of the I/O Compensation Cell. + * This parameter can be one of the following values: + * @arg ENABLE: I/O compensation cell enabled + * @arg DISABLE: I/O compensation cell power-down mode + * @retval None + */ +void SYSCFG_CompensationCellCmd(FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + *(__IO uint32_t *) CMPCR_CMP_PD_BB = (uint32_t)NewState; +} + +/** + * @brief Checks whether the I/O Compensation Cell ready flag is set or not. + * @param None + * @retval The new state of the I/O Compensation Cell ready flag (SET or RESET) + */ +FlagStatus SYSCFG_GetCompensationCellStatus(void) +{ + FlagStatus bitstatus = RESET; + + if ((SYSCFG->CMPCR & SYSCFG_CMPCR_READY ) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_tim.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_tim.c new file mode 100644 index 00000000..a9f6e6b1 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_tim.c @@ -0,0 +1,3358 @@ +/** + ****************************************************************************** + * @file stm32f2xx_tim.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the TIM peripheral: + * - TimeBase management + * - Output Compare management + * - Input Capture management + * - Advanced-control timers (TIM1 and TIM8) specific features + * - Interrupts, DMA and flags management + * - Clocks management + * - Synchronization management + * - Specific interface management + * - Specific remapping management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * This driver provides functions to configure and program the TIM + * of all STM32F2xx devices. + * These functions are split in 9 groups: + * + * 1. TIM TimeBase management: this group includes all needed functions + * to configure the TM Timebase unit: + * - Set/Get Prescaler + * - Set/Get Autoreload + * - Counter modes configuration + * - Set Clock division + * - Select the One Pulse mode + * - Update Request Configuration + * - Update Disable Configuration + * - Auto-Preload Configuration + * - Enable/Disable the counter + * + * 2. TIM Output Compare management: this group includes all needed + * functions to configure the Capture/Compare unit used in Output + * compare mode: + * - Configure each channel, independently, in Output Compare mode + * - Select the output compare modes + * - Select the Polarities of each channel + * - Set/Get the Capture/Compare register values + * - Select the Output Compare Fast mode + * - Select the Output Compare Forced mode + * - Output Compare-Preload Configuration + * - Clear Output Compare Reference + * - Select the OCREF Clear signal + * - Enable/Disable the Capture/Compare Channels + * + * 3. TIM Input Capture management: this group includes all needed + * functions to configure the Capture/Compare unit used in + * Input Capture mode: + * - Configure each channel in input capture mode + * - Configure Channel1/2 in PWM Input mode + * - Set the Input Capture Prescaler + * - Get the Capture/Compare values + * + * 4. Advanced-control timers (TIM1 and TIM8) specific features + * - Configures the Break input, dead time, Lock level, the OSSI, + * the OSSR State and the AOE(automatic output enable) + * - Enable/Disable the TIM peripheral Main Outputs + * - Select the Commutation event + * - Set/Reset the Capture Compare Preload Control bit + * + * 5. TIM interrupts, DMA and flags management + * - Enable/Disable interrupt sources + * - Get flags status + * - Clear flags/ Pending bits + * - Enable/Disable DMA requests + * - Configure DMA burst mode + * - Select CaptureCompare DMA request + * + * 6. TIM clocks management: this group includes all needed functions + * to configure the clock controller unit: + * - Select internal/External clock + * - Select the external clock mode: ETR(Mode1/Mode2), TIx or ITRx + * + * 7. TIM synchronization management: this group includes all needed + * functions to configure the Synchronization unit: + * - Select Input Trigger + * - Select Output Trigger + * - Select Master Slave Mode + * - ETR Configuration when used as external trigger + * + * 8. TIM specific interface management, this group includes all + * needed functions to use the specific TIM interface: + * - Encoder Interface Configuration + * - Select Hall Sensor + * + * 9. TIM specific remapping management includes the Remapping + * configuration of specific timers + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_tim.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup TIM + * @brief TIM driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* ---------------------- TIM registers bit mask ------------------------ */ +#define SMCR_ETR_MASK ((uint16_t)0x00FF) +#define CCMR_OFFSET ((uint16_t)0x0018) +#define CCER_CCE_SET ((uint16_t)0x0001) +#define CCER_CCNE_SET ((uint16_t)0x0004) +#define CCMR_OC13M_MASK ((uint16_t)0xFF8F) +#define CCMR_OC24M_MASK ((uint16_t)0x8FFF) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +static void TI1_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter); +static void TI2_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter); +static void TI3_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter); +static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter); + +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup TIM_Private_Functions + * @{ + */ + +/** @defgroup TIM_Group1 TimeBase management functions + * @brief TimeBase management functions + * +@verbatim + =============================================================================== + TimeBase management functions + =============================================================================== + + =================================================================== + TIM Driver: how to use it in Timing(Time base) Mode + =================================================================== + To use the Timer in Timing(Time base) mode, the following steps are mandatory: + + 1. Enable TIM clock using RCC_APBxPeriphClockCmd(RCC_APBxPeriph_TIMx, ENABLE) function + + 2. Fill the TIM_TimeBaseInitStruct with the desired parameters. + + 3. Call TIM_TimeBaseInit(TIMx, &TIM_TimeBaseInitStruct) to configure the Time Base unit + with the corresponding configuration + + 4. Enable the NVIC if you need to generate the update interrupt. + + 5. Enable the corresponding interrupt using the function TIM_ITConfig(TIMx, TIM_IT_Update) + + 6. Call the TIM_Cmd(ENABLE) function to enable the TIM counter. + + Note1: All other functions can be used separately to modify, if needed, + a specific feature of the Timer. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the TIMx peripheral registers to their default reset values. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @retval None + + */ +void TIM_DeInit(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + if (TIMx == TIM1) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, DISABLE); + } + else if (TIMx == TIM2) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, DISABLE); + } + else if (TIMx == TIM3) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, DISABLE); + } + else if (TIMx == TIM4) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, DISABLE); + } + else if (TIMx == TIM5) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, DISABLE); + } + else if (TIMx == TIM6) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, DISABLE); + } + else if (TIMx == TIM7) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, DISABLE); + } + else if (TIMx == TIM8) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, DISABLE); + } + else if (TIMx == TIM9) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, DISABLE); + } + else if (TIMx == TIM10) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, DISABLE); + } + else if (TIMx == TIM11) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, DISABLE); + } + else if (TIMx == TIM12) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, DISABLE); + } + else if (TIMx == TIM13) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, DISABLE); + } + else + { + if (TIMx == TIM14) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, DISABLE); + } + } +} + +/** + * @brief Initializes the TIMx Time Base Unit peripheral according to + * the specified parameters in the TIM_TimeBaseInitStruct. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_TimeBaseInitStruct: pointer to a TIM_TimeBaseInitTypeDef structure + * that contains the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct) +{ + uint16_t tmpcr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_COUNTER_MODE(TIM_TimeBaseInitStruct->TIM_CounterMode)); + assert_param(IS_TIM_CKD_DIV(TIM_TimeBaseInitStruct->TIM_ClockDivision)); + + tmpcr1 = TIMx->CR1; + + if((TIMx == TIM1) || (TIMx == TIM8)|| + (TIMx == TIM2) || (TIMx == TIM3)|| + (TIMx == TIM4) || (TIMx == TIM5)) + { + /* Select the Counter Mode */ + tmpcr1 &= (uint16_t)(~(TIM_CR1_DIR | TIM_CR1_CMS)); + tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_CounterMode; + } + + if((TIMx != TIM6) && (TIMx != TIM7)) + { + /* Set the clock division */ + tmpcr1 &= (uint16_t)(~TIM_CR1_CKD); + tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_ClockDivision; + } + + TIMx->CR1 = tmpcr1; + + /* Set the Autoreload value */ + TIMx->ARR = TIM_TimeBaseInitStruct->TIM_Period ; + + /* Set the Prescaler value */ + TIMx->PSC = TIM_TimeBaseInitStruct->TIM_Prescaler; + + if ((TIMx == TIM1) || (TIMx == TIM8)) + { + /* Set the Repetition Counter value */ + TIMx->RCR = TIM_TimeBaseInitStruct->TIM_RepetitionCounter; + } + + /* Generate an update event to reload the Prescaler + and the repetition counter(only for TIM1 and TIM8) value immediatly */ + TIMx->EGR = TIM_PSCReloadMode_Immediate; +} + +/** + * @brief Fills each TIM_TimeBaseInitStruct member with its default value. + * @param TIM_TimeBaseInitStruct : pointer to a TIM_TimeBaseInitTypeDef + * structure which will be initialized. + * @retval None + */ +void TIM_TimeBaseStructInit(TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct) +{ + /* Set the default configuration */ + TIM_TimeBaseInitStruct->TIM_Period = 0xFFFFFFFF; + TIM_TimeBaseInitStruct->TIM_Prescaler = 0x0000; + TIM_TimeBaseInitStruct->TIM_ClockDivision = TIM_CKD_DIV1; + TIM_TimeBaseInitStruct->TIM_CounterMode = TIM_CounterMode_Up; + TIM_TimeBaseInitStruct->TIM_RepetitionCounter = 0x0000; +} + +/** + * @brief Configures the TIMx Prescaler. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param Prescaler: specifies the Prescaler Register value + * @param TIM_PSCReloadMode: specifies the TIM Prescaler Reload mode + * This parameter can be one of the following values: + * @arg TIM_PSCReloadMode_Update: The Prescaler is loaded at the update event. + * @arg TIM_PSCReloadMode_Immediate: The Prescaler is loaded immediatly. + * @retval None + */ +void TIM_PrescalerConfig(TIM_TypeDef* TIMx, uint16_t Prescaler, uint16_t TIM_PSCReloadMode) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_PRESCALER_RELOAD(TIM_PSCReloadMode)); + /* Set the Prescaler value */ + TIMx->PSC = Prescaler; + /* Set or reset the UG Bit */ + TIMx->EGR = TIM_PSCReloadMode; +} + +/** + * @brief Specifies the TIMx Counter Mode to be used. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_CounterMode: specifies the Counter Mode to be used + * This parameter can be one of the following values: + * @arg TIM_CounterMode_Up: TIM Up Counting Mode + * @arg TIM_CounterMode_Down: TIM Down Counting Mode + * @arg TIM_CounterMode_CenterAligned1: TIM Center Aligned Mode1 + * @arg TIM_CounterMode_CenterAligned2: TIM Center Aligned Mode2 + * @arg TIM_CounterMode_CenterAligned3: TIM Center Aligned Mode3 + * @retval None + */ +void TIM_CounterModeConfig(TIM_TypeDef* TIMx, uint16_t TIM_CounterMode) +{ + uint16_t tmpcr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_COUNTER_MODE(TIM_CounterMode)); + + tmpcr1 = TIMx->CR1; + + /* Reset the CMS and DIR Bits */ + tmpcr1 &= (uint16_t)~(TIM_CR1_DIR | TIM_CR1_CMS); + + /* Set the Counter Mode */ + tmpcr1 |= TIM_CounterMode; + + /* Write to TIMx CR1 register */ + TIMx->CR1 = tmpcr1; +} + +/** + * @brief Sets the TIMx Counter Register value + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param Counter: specifies the Counter register new value. + * @retval None + */ +void TIM_SetCounter(TIM_TypeDef* TIMx, uint32_t Counter) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Set the Counter Register value */ + TIMx->CNT = Counter; +} + +/** + * @brief Sets the TIMx Autoreload Register value + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param Autoreload: specifies the Autoreload register new value. + * @retval None + */ +void TIM_SetAutoreload(TIM_TypeDef* TIMx, uint32_t Autoreload) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Set the Autoreload Register value */ + TIMx->ARR = Autoreload; +} + +/** + * @brief Gets the TIMx Counter value. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @retval Counter Register value + */ +uint32_t TIM_GetCounter(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Get the Counter Register value */ + return TIMx->CNT; +} + +/** + * @brief Gets the TIMx Prescaler value. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @retval Prescaler Register value. + */ +uint16_t TIM_GetPrescaler(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Get the Prescaler Register value */ + return TIMx->PSC; +} + +/** + * @brief Enables or Disables the TIMx Update event. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param NewState: new state of the TIMx UDIS bit + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_UpdateDisableConfig(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the Update Disable Bit */ + TIMx->CR1 |= TIM_CR1_UDIS; + } + else + { + /* Reset the Update Disable Bit */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_UDIS; + } +} + +/** + * @brief Configures the TIMx Update Request Interrupt source. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_UpdateSource: specifies the Update source. + * This parameter can be one of the following values: + * @arg TIM_UpdateSource_Global: Source of update is the counter + * overflow/underflow or the setting of UG bit, or an update + * generation through the slave mode controller. + * @arg TIM_UpdateSource_Regular: Source of update is counter overflow/underflow. + * @retval None + */ +void TIM_UpdateRequestConfig(TIM_TypeDef* TIMx, uint16_t TIM_UpdateSource) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_UPDATE_SOURCE(TIM_UpdateSource)); + + if (TIM_UpdateSource != TIM_UpdateSource_Global) + { + /* Set the URS Bit */ + TIMx->CR1 |= TIM_CR1_URS; + } + else + { + /* Reset the URS Bit */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_URS; + } +} + +/** + * @brief Enables or disables TIMx peripheral Preload register on ARR. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param NewState: new state of the TIMx peripheral Preload register + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_ARRPreloadConfig(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the ARR Preload Bit */ + TIMx->CR1 |= TIM_CR1_ARPE; + } + else + { + /* Reset the ARR Preload Bit */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_ARPE; + } +} + +/** + * @brief Selects the TIMx's One Pulse Mode. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_OPMode: specifies the OPM Mode to be used. + * This parameter can be one of the following values: + * @arg TIM_OPMode_Single + * @arg TIM_OPMode_Repetitive + * @retval None + */ +void TIM_SelectOnePulseMode(TIM_TypeDef* TIMx, uint16_t TIM_OPMode) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_OPM_MODE(TIM_OPMode)); + + /* Reset the OPM Bit */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_OPM; + + /* Configure the OPM Mode */ + TIMx->CR1 |= TIM_OPMode; +} + +/** + * @brief Sets the TIMx Clock Division value. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_CKD: specifies the clock division value. + * This parameter can be one of the following value: + * @arg TIM_CKD_DIV1: TDTS = Tck_tim + * @arg TIM_CKD_DIV2: TDTS = 2*Tck_tim + * @arg TIM_CKD_DIV4: TDTS = 4*Tck_tim + * @retval None + */ +void TIM_SetClockDivision(TIM_TypeDef* TIMx, uint16_t TIM_CKD) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_CKD_DIV(TIM_CKD)); + + /* Reset the CKD Bits */ + TIMx->CR1 &= (uint16_t)(~TIM_CR1_CKD); + + /* Set the CKD value */ + TIMx->CR1 |= TIM_CKD; +} + +/** + * @brief Enables or disables the specified TIM peripheral. + * @param TIMx: where x can be 1 to 14 to select the TIMx peripheral. + * @param NewState: new state of the TIMx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_Cmd(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the TIM Counter */ + TIMx->CR1 |= TIM_CR1_CEN; + } + else + { + /* Disable the TIM Counter */ + TIMx->CR1 &= (uint16_t)~TIM_CR1_CEN; + } +} +/** + * @} + */ + +/** @defgroup TIM_Group2 Output Compare management functions + * @brief Output Compare management functions + * +@verbatim + =============================================================================== + Output Compare management functions + =============================================================================== + + =================================================================== + TIM Driver: how to use it in Output Compare Mode + =================================================================== + To use the Timer in Output Compare mode, the following steps are mandatory: + + 1. Enable TIM clock using RCC_APBxPeriphClockCmd(RCC_APBxPeriph_TIMx, ENABLE) function + + 2. Configure the TIM pins by configuring the corresponding GPIO pins + + 2. Configure the Time base unit as described in the first part of this driver, + if needed, else the Timer will run with the default configuration: + - Autoreload value = 0xFFFF + - Prescaler value = 0x0000 + - Counter mode = Up counting + - Clock Division = TIM_CKD_DIV1 + + 3. Fill the TIM_OCInitStruct with the desired parameters including: + - The TIM Output Compare mode: TIM_OCMode + - TIM Output State: TIM_OutputState + - TIM Pulse value: TIM_Pulse + - TIM Output Compare Polarity : TIM_OCPolarity + + 4. Call TIM_OCxInit(TIMx, &TIM_OCInitStruct) to configure the desired channel with the + corresponding configuration + + 5. Call the TIM_Cmd(ENABLE) function to enable the TIM counter. + + Note1: All other functions can be used separately to modify, if needed, + a specific feature of the Timer. + + Note2: In case of PWM mode, this function is mandatory: + TIM_OCxPreloadConfig(TIMx, TIM_OCPreload_ENABLE); + + Note3: If the corresponding interrupt or DMA request are needed, the user should: + 1. Enable the NVIC (or the DMA) to use the TIM interrupts (or DMA requests). + 2. Enable the corresponding interrupt (or DMA request) using the function + TIM_ITConfig(TIMx, TIM_IT_CCx) (or TIM_DMA_Cmd(TIMx, TIM_DMA_CCx)) + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the TIMx Channel1 according to the specified parameters in + * the TIM_OCInitStruct. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + uint16_t tmpccmrx = 0, tmpccer = 0, tmpcr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OC_MODE(TIM_OCInitStruct->TIM_OCMode)); + assert_param(IS_TIM_OUTPUT_STATE(TIM_OCInitStruct->TIM_OutputState)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCInitStruct->TIM_OCPolarity)); + + /* Disable the Channel 1: Reset the CC1E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC1E; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + /* Get the TIMx CR2 register value */ + tmpcr2 = TIMx->CR2; + + /* Get the TIMx CCMR1 register value */ + tmpccmrx = TIMx->CCMR1; + + /* Reset the Output Compare Mode Bits */ + tmpccmrx &= (uint16_t)~TIM_CCMR1_OC1M; + tmpccmrx &= (uint16_t)~TIM_CCMR1_CC1S; + /* Select the Output Compare Mode */ + tmpccmrx |= TIM_OCInitStruct->TIM_OCMode; + + /* Reset the Output Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC1P; + /* Set the Output Compare Polarity */ + tmpccer |= TIM_OCInitStruct->TIM_OCPolarity; + + /* Set the Output State */ + tmpccer |= TIM_OCInitStruct->TIM_OutputState; + + if((TIMx == TIM1) || (TIMx == TIM8)) + { + assert_param(IS_TIM_OUTPUTN_STATE(TIM_OCInitStruct->TIM_OutputNState)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCInitStruct->TIM_OCNPolarity)); + assert_param(IS_TIM_OCNIDLE_STATE(TIM_OCInitStruct->TIM_OCNIdleState)); + assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState)); + + /* Reset the Output N Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC1NP; + /* Set the Output N Polarity */ + tmpccer |= TIM_OCInitStruct->TIM_OCNPolarity; + /* Reset the Output N State */ + tmpccer &= (uint16_t)~TIM_CCER_CC1NE; + + /* Set the Output N State */ + tmpccer |= TIM_OCInitStruct->TIM_OutputNState; + /* Reset the Output Compare and Output Compare N IDLE State */ + tmpcr2 &= (uint16_t)~TIM_CR2_OIS1; + tmpcr2 &= (uint16_t)~TIM_CR2_OIS1N; + /* Set the Output Idle state */ + tmpcr2 |= TIM_OCInitStruct->TIM_OCIdleState; + /* Set the Output N Idle state */ + tmpcr2 |= TIM_OCInitStruct->TIM_OCNIdleState; + } + /* Write to TIMx CR2 */ + TIMx->CR2 = tmpcr2; + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmrx; + + /* Set the Capture Compare Register value */ + TIMx->CCR1 = TIM_OCInitStruct->TIM_Pulse; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Initializes the TIMx Channel2 according to the specified parameters + * in the TIM_OCInitStruct. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + uint16_t tmpccmrx = 0, tmpccer = 0, tmpcr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OC_MODE(TIM_OCInitStruct->TIM_OCMode)); + assert_param(IS_TIM_OUTPUT_STATE(TIM_OCInitStruct->TIM_OutputState)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCInitStruct->TIM_OCPolarity)); + + /* Disable the Channel 2: Reset the CC2E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC2E; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + /* Get the TIMx CR2 register value */ + tmpcr2 = TIMx->CR2; + + /* Get the TIMx CCMR1 register value */ + tmpccmrx = TIMx->CCMR1; + + /* Reset the Output Compare mode and Capture/Compare selection Bits */ + tmpccmrx &= (uint16_t)~TIM_CCMR1_OC2M; + tmpccmrx &= (uint16_t)~TIM_CCMR1_CC2S; + + /* Select the Output Compare Mode */ + tmpccmrx |= (uint16_t)(TIM_OCInitStruct->TIM_OCMode << 8); + + /* Reset the Output Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC2P; + /* Set the Output Compare Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCPolarity << 4); + + /* Set the Output State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputState << 4); + + if((TIMx == TIM1) || (TIMx == TIM8)) + { + assert_param(IS_TIM_OUTPUTN_STATE(TIM_OCInitStruct->TIM_OutputNState)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCInitStruct->TIM_OCNPolarity)); + assert_param(IS_TIM_OCNIDLE_STATE(TIM_OCInitStruct->TIM_OCNIdleState)); + assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState)); + + /* Reset the Output N Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC2NP; + /* Set the Output N Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCNPolarity << 4); + /* Reset the Output N State */ + tmpccer &= (uint16_t)~TIM_CCER_CC2NE; + + /* Set the Output N State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputNState << 4); + /* Reset the Output Compare and Output Compare N IDLE State */ + tmpcr2 &= (uint16_t)~TIM_CR2_OIS2; + tmpcr2 &= (uint16_t)~TIM_CR2_OIS2N; + /* Set the Output Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCIdleState << 2); + /* Set the Output N Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCNIdleState << 2); + } + /* Write to TIMx CR2 */ + TIMx->CR2 = tmpcr2; + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmrx; + + /* Set the Capture Compare Register value */ + TIMx->CCR2 = TIM_OCInitStruct->TIM_Pulse; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Initializes the TIMx Channel3 according to the specified parameters + * in the TIM_OCInitStruct. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + uint16_t tmpccmrx = 0, tmpccer = 0, tmpcr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OC_MODE(TIM_OCInitStruct->TIM_OCMode)); + assert_param(IS_TIM_OUTPUT_STATE(TIM_OCInitStruct->TIM_OutputState)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCInitStruct->TIM_OCPolarity)); + + /* Disable the Channel 3: Reset the CC2E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC3E; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + /* Get the TIMx CR2 register value */ + tmpcr2 = TIMx->CR2; + + /* Get the TIMx CCMR2 register value */ + tmpccmrx = TIMx->CCMR2; + + /* Reset the Output Compare mode and Capture/Compare selection Bits */ + tmpccmrx &= (uint16_t)~TIM_CCMR2_OC3M; + tmpccmrx &= (uint16_t)~TIM_CCMR2_CC3S; + /* Select the Output Compare Mode */ + tmpccmrx |= TIM_OCInitStruct->TIM_OCMode; + + /* Reset the Output Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC3P; + /* Set the Output Compare Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCPolarity << 8); + + /* Set the Output State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputState << 8); + + if((TIMx == TIM1) || (TIMx == TIM8)) + { + assert_param(IS_TIM_OUTPUTN_STATE(TIM_OCInitStruct->TIM_OutputNState)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCInitStruct->TIM_OCNPolarity)); + assert_param(IS_TIM_OCNIDLE_STATE(TIM_OCInitStruct->TIM_OCNIdleState)); + assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState)); + + /* Reset the Output N Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC3NP; + /* Set the Output N Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCNPolarity << 8); + /* Reset the Output N State */ + tmpccer &= (uint16_t)~TIM_CCER_CC3NE; + + /* Set the Output N State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputNState << 8); + /* Reset the Output Compare and Output Compare N IDLE State */ + tmpcr2 &= (uint16_t)~TIM_CR2_OIS3; + tmpcr2 &= (uint16_t)~TIM_CR2_OIS3N; + /* Set the Output Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCIdleState << 4); + /* Set the Output N Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCNIdleState << 4); + } + /* Write to TIMx CR2 */ + TIMx->CR2 = tmpcr2; + + /* Write to TIMx CCMR2 */ + TIMx->CCMR2 = tmpccmrx; + + /* Set the Capture Compare Register value */ + TIMx->CCR3 = TIM_OCInitStruct->TIM_Pulse; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Initializes the TIMx Channel4 according to the specified parameters + * in the TIM_OCInitStruct. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_OC4Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + uint16_t tmpccmrx = 0, tmpccer = 0, tmpcr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OC_MODE(TIM_OCInitStruct->TIM_OCMode)); + assert_param(IS_TIM_OUTPUT_STATE(TIM_OCInitStruct->TIM_OutputState)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCInitStruct->TIM_OCPolarity)); + + /* Disable the Channel 4: Reset the CC4E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC4E; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + /* Get the TIMx CR2 register value */ + tmpcr2 = TIMx->CR2; + + /* Get the TIMx CCMR2 register value */ + tmpccmrx = TIMx->CCMR2; + + /* Reset the Output Compare mode and Capture/Compare selection Bits */ + tmpccmrx &= (uint16_t)~TIM_CCMR2_OC4M; + tmpccmrx &= (uint16_t)~TIM_CCMR2_CC4S; + + /* Select the Output Compare Mode */ + tmpccmrx |= (uint16_t)(TIM_OCInitStruct->TIM_OCMode << 8); + + /* Reset the Output Polarity level */ + tmpccer &= (uint16_t)~TIM_CCER_CC4P; + /* Set the Output Compare Polarity */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OCPolarity << 12); + + /* Set the Output State */ + tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputState << 12); + + if((TIMx == TIM1) || (TIMx == TIM8)) + { + assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState)); + /* Reset the Output Compare IDLE State */ + tmpcr2 &=(uint16_t) ~TIM_CR2_OIS4; + /* Set the Output Idle state */ + tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCIdleState << 6); + } + /* Write to TIMx CR2 */ + TIMx->CR2 = tmpcr2; + + /* Write to TIMx CCMR2 */ + TIMx->CCMR2 = tmpccmrx; + + /* Set the Capture Compare Register value */ + TIMx->CCR4 = TIM_OCInitStruct->TIM_Pulse; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Fills each TIM_OCInitStruct member with its default value. + * @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure which will + * be initialized. + * @retval None + */ +void TIM_OCStructInit(TIM_OCInitTypeDef* TIM_OCInitStruct) +{ + /* Set the default configuration */ + TIM_OCInitStruct->TIM_OCMode = TIM_OCMode_Timing; + TIM_OCInitStruct->TIM_OutputState = TIM_OutputState_Disable; + TIM_OCInitStruct->TIM_OutputNState = TIM_OutputNState_Disable; + TIM_OCInitStruct->TIM_Pulse = 0x00000000; + TIM_OCInitStruct->TIM_OCPolarity = TIM_OCPolarity_High; + TIM_OCInitStruct->TIM_OCNPolarity = TIM_OCPolarity_High; + TIM_OCInitStruct->TIM_OCIdleState = TIM_OCIdleState_Reset; + TIM_OCInitStruct->TIM_OCNIdleState = TIM_OCNIdleState_Reset; +} + +/** + * @brief Selects the TIM Output Compare Mode. + * @note This function disables the selected channel before changing the Output + * Compare Mode. If needed, user has to enable this channel using + * TIM_CCxCmd() and TIM_CCxNCmd() functions. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_Channel: specifies the TIM Channel + * This parameter can be one of the following values: + * @arg TIM_Channel_1: TIM Channel 1 + * @arg TIM_Channel_2: TIM Channel 2 + * @arg TIM_Channel_3: TIM Channel 3 + * @arg TIM_Channel_4: TIM Channel 4 + * @param TIM_OCMode: specifies the TIM Output Compare Mode. + * This parameter can be one of the following values: + * @arg TIM_OCMode_Timing + * @arg TIM_OCMode_Active + * @arg TIM_OCMode_Toggle + * @arg TIM_OCMode_PWM1 + * @arg TIM_OCMode_PWM2 + * @arg TIM_ForcedAction_Active + * @arg TIM_ForcedAction_InActive + * @retval None + */ +void TIM_SelectOCxM(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_OCMode) +{ + uint32_t tmp = 0; + uint16_t tmp1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_CHANNEL(TIM_Channel)); + assert_param(IS_TIM_OCM(TIM_OCMode)); + + tmp = (uint32_t) TIMx; + tmp += CCMR_OFFSET; + + tmp1 = CCER_CCE_SET << (uint16_t)TIM_Channel; + + /* Disable the Channel: Reset the CCxE Bit */ + TIMx->CCER &= (uint16_t) ~tmp1; + + if((TIM_Channel == TIM_Channel_1) ||(TIM_Channel == TIM_Channel_3)) + { + tmp += (TIM_Channel>>1); + + /* Reset the OCxM bits in the CCMRx register */ + *(__IO uint32_t *) tmp &= CCMR_OC13M_MASK; + + /* Configure the OCxM bits in the CCMRx register */ + *(__IO uint32_t *) tmp |= TIM_OCMode; + } + else + { + tmp += (uint16_t)(TIM_Channel - (uint16_t)4)>> (uint16_t)1; + + /* Reset the OCxM bits in the CCMRx register */ + *(__IO uint32_t *) tmp &= CCMR_OC24M_MASK; + + /* Configure the OCxM bits in the CCMRx register */ + *(__IO uint32_t *) tmp |= (uint16_t)(TIM_OCMode << 8); + } +} + +/** + * @brief Sets the TIMx Capture Compare1 Register value + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param Compare1: specifies the Capture Compare1 register new value. + * @retval None + */ +void TIM_SetCompare1(TIM_TypeDef* TIMx, uint32_t Compare1) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + + /* Set the Capture Compare1 Register value */ + TIMx->CCR1 = Compare1; +} + +/** + * @brief Sets the TIMx Capture Compare2 Register value + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param Compare2: specifies the Capture Compare2 register new value. + * @retval None + */ +void TIM_SetCompare2(TIM_TypeDef* TIMx, uint32_t Compare2) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + + /* Set the Capture Compare2 Register value */ + TIMx->CCR2 = Compare2; +} + +/** + * @brief Sets the TIMx Capture Compare3 Register value + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param Compare3: specifies the Capture Compare3 register new value. + * @retval None + */ +void TIM_SetCompare3(TIM_TypeDef* TIMx, uint32_t Compare3) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + + /* Set the Capture Compare3 Register value */ + TIMx->CCR3 = Compare3; +} + +/** + * @brief Sets the TIMx Capture Compare4 Register value + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param Compare4: specifies the Capture Compare4 register new value. + * @retval None + */ +void TIM_SetCompare4(TIM_TypeDef* TIMx, uint32_t Compare4) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + + /* Set the Capture Compare4 Register value */ + TIMx->CCR4 = Compare4; +} + +/** + * @brief Forces the TIMx output 1 waveform to active or inactive level. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_ForcedAction: specifies the forced Action to be set to the output waveform. + * This parameter can be one of the following values: + * @arg TIM_ForcedAction_Active: Force active level on OC1REF + * @arg TIM_ForcedAction_InActive: Force inactive level on OC1REF. + * @retval None + */ +void TIM_ForcedOC1Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction)); + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC1M Bits */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC1M; + + /* Configure The Forced output Mode */ + tmpccmr1 |= TIM_ForcedAction; + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Forces the TIMx output 2 waveform to active or inactive level. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_ForcedAction: specifies the forced Action to be set to the output waveform. + * This parameter can be one of the following values: + * @arg TIM_ForcedAction_Active: Force active level on OC2REF + * @arg TIM_ForcedAction_InActive: Force inactive level on OC2REF. + * @retval None + */ +void TIM_ForcedOC2Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction)); + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC2M Bits */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC2M; + + /* Configure The Forced output Mode */ + tmpccmr1 |= (uint16_t)(TIM_ForcedAction << 8); + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Forces the TIMx output 3 waveform to active or inactive level. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ForcedAction: specifies the forced Action to be set to the output waveform. + * This parameter can be one of the following values: + * @arg TIM_ForcedAction_Active: Force active level on OC3REF + * @arg TIM_ForcedAction_InActive: Force inactive level on OC3REF. + * @retval None + */ +void TIM_ForcedOC3Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC1M Bits */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC3M; + + /* Configure The Forced output Mode */ + tmpccmr2 |= TIM_ForcedAction; + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Forces the TIMx output 4 waveform to active or inactive level. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ForcedAction: specifies the forced Action to be set to the output waveform. + * This parameter can be one of the following values: + * @arg TIM_ForcedAction_Active: Force active level on OC4REF + * @arg TIM_ForcedAction_InActive: Force inactive level on OC4REF. + * @retval None + */ +void TIM_ForcedOC4Config(TIM_TypeDef* TIMx, uint16_t TIM_ForcedAction) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction)); + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC2M Bits */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC4M; + + /* Configure The Forced output Mode */ + tmpccmr2 |= (uint16_t)(TIM_ForcedAction << 8); + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Enables or disables the TIMx peripheral Preload register on CCR1. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCPreload: new state of the TIMx peripheral Preload register + * This parameter can be one of the following values: + * @arg TIM_OCPreload_Enable + * @arg TIM_OCPreload_Disable + * @retval None + */ +void TIM_OC1PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload)); + + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC1PE Bit */ + tmpccmr1 &= (uint16_t)(~TIM_CCMR1_OC1PE); + + /* Enable or Disable the Output Compare Preload feature */ + tmpccmr1 |= TIM_OCPreload; + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Enables or disables the TIMx peripheral Preload register on CCR2. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCPreload: new state of the TIMx peripheral Preload register + * This parameter can be one of the following values: + * @arg TIM_OCPreload_Enable + * @arg TIM_OCPreload_Disable + * @retval None + */ +void TIM_OC2PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload)); + + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC2PE Bit */ + tmpccmr1 &= (uint16_t)(~TIM_CCMR1_OC2PE); + + /* Enable or Disable the Output Compare Preload feature */ + tmpccmr1 |= (uint16_t)(TIM_OCPreload << 8); + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Enables or disables the TIMx peripheral Preload register on CCR3. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCPreload: new state of the TIMx peripheral Preload register + * This parameter can be one of the following values: + * @arg TIM_OCPreload_Enable + * @arg TIM_OCPreload_Disable + * @retval None + */ +void TIM_OC3PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC3PE Bit */ + tmpccmr2 &= (uint16_t)(~TIM_CCMR2_OC3PE); + + /* Enable or Disable the Output Compare Preload feature */ + tmpccmr2 |= TIM_OCPreload; + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Enables or disables the TIMx peripheral Preload register on CCR4. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCPreload: new state of the TIMx peripheral Preload register + * This parameter can be one of the following values: + * @arg TIM_OCPreload_Enable + * @arg TIM_OCPreload_Disable + * @retval None + */ +void TIM_OC4PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC4PE Bit */ + tmpccmr2 &= (uint16_t)(~TIM_CCMR2_OC4PE); + + /* Enable or Disable the Output Compare Preload feature */ + tmpccmr2 |= (uint16_t)(TIM_OCPreload << 8); + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Configures the TIMx Output Compare 1 Fast feature. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCFast: new state of the Output Compare Fast Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCFast_Enable: TIM output compare fast enable + * @arg TIM_OCFast_Disable: TIM output compare fast disable + * @retval None + */ +void TIM_OC1FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast)); + + /* Get the TIMx CCMR1 register value */ + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC1FE Bit */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC1FE; + + /* Enable or Disable the Output Compare Fast Bit */ + tmpccmr1 |= TIM_OCFast; + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Configures the TIMx Output Compare 2 Fast feature. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCFast: new state of the Output Compare Fast Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCFast_Enable: TIM output compare fast enable + * @arg TIM_OCFast_Disable: TIM output compare fast disable + * @retval None + */ +void TIM_OC2FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast)); + + /* Get the TIMx CCMR1 register value */ + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC2FE Bit */ + tmpccmr1 &= (uint16_t)(~TIM_CCMR1_OC2FE); + + /* Enable or Disable the Output Compare Fast Bit */ + tmpccmr1 |= (uint16_t)(TIM_OCFast << 8); + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Configures the TIMx Output Compare 3 Fast feature. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCFast: new state of the Output Compare Fast Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCFast_Enable: TIM output compare fast enable + * @arg TIM_OCFast_Disable: TIM output compare fast disable + * @retval None + */ +void TIM_OC3FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast)); + + /* Get the TIMx CCMR2 register value */ + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC3FE Bit */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC3FE; + + /* Enable or Disable the Output Compare Fast Bit */ + tmpccmr2 |= TIM_OCFast; + + /* Write to TIMx CCMR2 */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Configures the TIMx Output Compare 4 Fast feature. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCFast: new state of the Output Compare Fast Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCFast_Enable: TIM output compare fast enable + * @arg TIM_OCFast_Disable: TIM output compare fast disable + * @retval None + */ +void TIM_OC4FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast)); + + /* Get the TIMx CCMR2 register value */ + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC4FE Bit */ + tmpccmr2 &= (uint16_t)(~TIM_CCMR2_OC4FE); + + /* Enable or Disable the Output Compare Fast Bit */ + tmpccmr2 |= (uint16_t)(TIM_OCFast << 8); + + /* Write to TIMx CCMR2 */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Clears or safeguards the OCREF1 signal on an external event + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCClear: new state of the Output Compare Clear Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCClear_Enable: TIM Output clear enable + * @arg TIM_OCClear_Disable: TIM Output clear disable + * @retval None + */ +void TIM_ClearOC1Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear)); + + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC1CE Bit */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC1CE; + + /* Enable or Disable the Output Compare Clear Bit */ + tmpccmr1 |= TIM_OCClear; + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Clears or safeguards the OCREF2 signal on an external event + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCClear: new state of the Output Compare Clear Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCClear_Enable: TIM Output clear enable + * @arg TIM_OCClear_Disable: TIM Output clear disable + * @retval None + */ +void TIM_ClearOC2Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear) +{ + uint16_t tmpccmr1 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear)); + + tmpccmr1 = TIMx->CCMR1; + + /* Reset the OC2CE Bit */ + tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC2CE; + + /* Enable or Disable the Output Compare Clear Bit */ + tmpccmr1 |= (uint16_t)(TIM_OCClear << 8); + + /* Write to TIMx CCMR1 register */ + TIMx->CCMR1 = tmpccmr1; +} + +/** + * @brief Clears or safeguards the OCREF3 signal on an external event + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCClear: new state of the Output Compare Clear Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCClear_Enable: TIM Output clear enable + * @arg TIM_OCClear_Disable: TIM Output clear disable + * @retval None + */ +void TIM_ClearOC3Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC3CE Bit */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC3CE; + + /* Enable or Disable the Output Compare Clear Bit */ + tmpccmr2 |= TIM_OCClear; + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Clears or safeguards the OCREF4 signal on an external event + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCClear: new state of the Output Compare Clear Enable Bit. + * This parameter can be one of the following values: + * @arg TIM_OCClear_Enable: TIM Output clear enable + * @arg TIM_OCClear_Disable: TIM Output clear disable + * @retval None + */ +void TIM_ClearOC4Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear) +{ + uint16_t tmpccmr2 = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear)); + + tmpccmr2 = TIMx->CCMR2; + + /* Reset the OC4CE Bit */ + tmpccmr2 &= (uint16_t)~TIM_CCMR2_OC4CE; + + /* Enable or Disable the Output Compare Clear Bit */ + tmpccmr2 |= (uint16_t)(TIM_OCClear << 8); + + /* Write to TIMx CCMR2 register */ + TIMx->CCMR2 = tmpccmr2; +} + +/** + * @brief Configures the TIMx channel 1 polarity. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_OCPolarity: specifies the OC1 Polarity + * This parameter can be one of the following values: + * @arg TIM_OCPolarity_High: Output Compare active high + * @arg TIM_OCPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC1P Bit */ + tmpccer &= (uint16_t)(~TIM_CCER_CC1P); + tmpccer |= TIM_OCPolarity; + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx Channel 1N polarity. + * @param TIMx: where x can be 1 or 8 to select the TIM peripheral. + * @param TIM_OCNPolarity: specifies the OC1N Polarity + * This parameter can be one of the following values: + * @arg TIM_OCNPolarity_High: Output Compare active high + * @arg TIM_OCNPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC1NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity) +{ + uint16_t tmpccer = 0; + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCNPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC1NP Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC1NP; + tmpccer |= TIM_OCNPolarity; + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx channel 2 polarity. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_OCPolarity: specifies the OC2 Polarity + * This parameter can be one of the following values: + * @arg TIM_OCPolarity_High: Output Compare active high + * @arg TIM_OCPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC2PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC2P Bit */ + tmpccer &= (uint16_t)(~TIM_CCER_CC2P); + tmpccer |= (uint16_t)(TIM_OCPolarity << 4); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx Channel 2N polarity. + * @param TIMx: where x can be 1 or 8 to select the TIM peripheral. + * @param TIM_OCNPolarity: specifies the OC2N Polarity + * This parameter can be one of the following values: + * @arg TIM_OCNPolarity_High: Output Compare active high + * @arg TIM_OCNPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC2NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCNPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC2NP Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC2NP; + tmpccer |= (uint16_t)(TIM_OCNPolarity << 4); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx channel 3 polarity. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCPolarity: specifies the OC3 Polarity + * This parameter can be one of the following values: + * @arg TIM_OCPolarity_High: Output Compare active high + * @arg TIM_OCPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC3PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC3P Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC3P; + tmpccer |= (uint16_t)(TIM_OCPolarity << 8); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx Channel 3N polarity. + * @param TIMx: where x can be 1 or 8 to select the TIM peripheral. + * @param TIM_OCNPolarity: specifies the OC3N Polarity + * This parameter can be one of the following values: + * @arg TIM_OCNPolarity_High: Output Compare active high + * @arg TIM_OCNPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC3NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_OCN_POLARITY(TIM_OCNPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC3NP Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC3NP; + tmpccer |= (uint16_t)(TIM_OCNPolarity << 8); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Configures the TIMx channel 4 polarity. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_OCPolarity: specifies the OC4 Polarity + * This parameter can be one of the following values: + * @arg TIM_OCPolarity_High: Output Compare active high + * @arg TIM_OCPolarity_Low: Output Compare active low + * @retval None + */ +void TIM_OC4PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity) +{ + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity)); + + tmpccer = TIMx->CCER; + + /* Set or Reset the CC4P Bit */ + tmpccer &= (uint16_t)~TIM_CCER_CC4P; + tmpccer |= (uint16_t)(TIM_OCPolarity << 12); + + /* Write to TIMx CCER register */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Enables or disables the TIM Capture Compare Channel x. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_Channel: specifies the TIM Channel + * This parameter can be one of the following values: + * @arg TIM_Channel_1: TIM Channel 1 + * @arg TIM_Channel_2: TIM Channel 2 + * @arg TIM_Channel_3: TIM Channel 3 + * @arg TIM_Channel_4: TIM Channel 4 + * @param TIM_CCx: specifies the TIM Channel CCxE bit new state. + * This parameter can be: TIM_CCx_Enable or TIM_CCx_Disable. + * @retval None + */ +void TIM_CCxCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx) +{ + uint16_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_CHANNEL(TIM_Channel)); + assert_param(IS_TIM_CCX(TIM_CCx)); + + tmp = CCER_CCE_SET << TIM_Channel; + + /* Reset the CCxE Bit */ + TIMx->CCER &= (uint16_t)~ tmp; + + /* Set or reset the CCxE Bit */ + TIMx->CCER |= (uint16_t)(TIM_CCx << TIM_Channel); +} + +/** + * @brief Enables or disables the TIM Capture Compare Channel xN. + * @param TIMx: where x can be 1 or 8 to select the TIM peripheral. + * @param TIM_Channel: specifies the TIM Channel + * This parameter can be one of the following values: + * @arg TIM_Channel_1: TIM Channel 1 + * @arg TIM_Channel_2: TIM Channel 2 + * @arg TIM_Channel_3: TIM Channel 3 + * @param TIM_CCxN: specifies the TIM Channel CCxNE bit new state. + * This parameter can be: TIM_CCxN_Enable or TIM_CCxN_Disable. + * @retval None + */ +void TIM_CCxNCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCxN) +{ + uint16_t tmp = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_COMPLEMENTARY_CHANNEL(TIM_Channel)); + assert_param(IS_TIM_CCXN(TIM_CCxN)); + + tmp = CCER_CCNE_SET << TIM_Channel; + + /* Reset the CCxNE Bit */ + TIMx->CCER &= (uint16_t) ~tmp; + + /* Set or reset the CCxNE Bit */ + TIMx->CCER |= (uint16_t)(TIM_CCxN << TIM_Channel); +} +/** + * @} + */ + +/** @defgroup TIM_Group3 Input Capture management functions + * @brief Input Capture management functions + * +@verbatim + =============================================================================== + Input Capture management functions + =============================================================================== + + =================================================================== + TIM Driver: how to use it in Input Capture Mode + =================================================================== + To use the Timer in Input Capture mode, the following steps are mandatory: + + 1. Enable TIM clock using RCC_APBxPeriphClockCmd(RCC_APBxPeriph_TIMx, ENABLE) function + + 2. Configure the TIM pins by configuring the corresponding GPIO pins + + 2. Configure the Time base unit as described in the first part of this driver, + if needed, else the Timer will run with the default configuration: + - Autoreload value = 0xFFFF + - Prescaler value = 0x0000 + - Counter mode = Up counting + - Clock Division = TIM_CKD_DIV1 + + 3. Fill the TIM_ICInitStruct with the desired parameters including: + - TIM Channel: TIM_Channel + - TIM Input Capture polarity: TIM_ICPolarity + - TIM Input Capture selection: TIM_ICSelection + - TIM Input Capture Prescaler: TIM_ICPrescaler + - TIM Input CApture filter value: TIM_ICFilter + + 4. Call TIM_ICInit(TIMx, &TIM_ICInitStruct) to configure the desired channel with the + corresponding configuration and to measure only frequency or duty cycle of the input signal, + or, + Call TIM_PWMIConfig(TIMx, &TIM_ICInitStruct) to configure the desired channels with the + corresponding configuration and to measure the frequency and the duty cycle of the input signal + + 5. Enable the NVIC or the DMA to read the measured frequency. + + 6. Enable the corresponding interrupt (or DMA request) to read the Captured value, + using the function TIM_ITConfig(TIMx, TIM_IT_CCx) (or TIM_DMA_Cmd(TIMx, TIM_DMA_CCx)) + + 7. Call the TIM_Cmd(ENABLE) function to enable the TIM counter. + + 8. Use TIM_GetCapturex(TIMx); to read the captured value. + + Note1: All other functions can be used separately to modify, if needed, + a specific feature of the Timer. + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the TIM peripheral according to the specified parameters + * in the TIM_ICInitStruct. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_ICInit(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_IC_POLARITY(TIM_ICInitStruct->TIM_ICPolarity)); + assert_param(IS_TIM_IC_SELECTION(TIM_ICInitStruct->TIM_ICSelection)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICInitStruct->TIM_ICPrescaler)); + assert_param(IS_TIM_IC_FILTER(TIM_ICInitStruct->TIM_ICFilter)); + + if (TIM_ICInitStruct->TIM_Channel == TIM_Channel_1) + { + /* TI1 Configuration */ + TI1_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, + TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC1Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } + else if (TIM_ICInitStruct->TIM_Channel == TIM_Channel_2) + { + /* TI2 Configuration */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + TI2_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, + TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC2Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } + else if (TIM_ICInitStruct->TIM_Channel == TIM_Channel_3) + { + /* TI3 Configuration */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + TI3_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, + TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC3Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } + else + { + /* TI4 Configuration */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + TI4_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, + TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC4Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } +} + +/** + * @brief Fills each TIM_ICInitStruct member with its default value. + * @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure which will + * be initialized. + * @retval None + */ +void TIM_ICStructInit(TIM_ICInitTypeDef* TIM_ICInitStruct) +{ + /* Set the default configuration */ + TIM_ICInitStruct->TIM_Channel = TIM_Channel_1; + TIM_ICInitStruct->TIM_ICPolarity = TIM_ICPolarity_Rising; + TIM_ICInitStruct->TIM_ICSelection = TIM_ICSelection_DirectTI; + TIM_ICInitStruct->TIM_ICPrescaler = TIM_ICPSC_DIV1; + TIM_ICInitStruct->TIM_ICFilter = 0x00; +} + +/** + * @brief Configures the TIM peripheral according to the specified parameters + * in the TIM_ICInitStruct to measure an external PWM signal. + * @param TIMx: where x can be 1, 2, 3, 4, 5,8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure that contains + * the configuration information for the specified TIM peripheral. + * @retval None + */ +void TIM_PWMIConfig(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct) +{ + uint16_t icoppositepolarity = TIM_ICPolarity_Rising; + uint16_t icoppositeselection = TIM_ICSelection_DirectTI; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + + /* Select the Opposite Input Polarity */ + if (TIM_ICInitStruct->TIM_ICPolarity == TIM_ICPolarity_Rising) + { + icoppositepolarity = TIM_ICPolarity_Falling; + } + else + { + icoppositepolarity = TIM_ICPolarity_Rising; + } + /* Select the Opposite Input */ + if (TIM_ICInitStruct->TIM_ICSelection == TIM_ICSelection_DirectTI) + { + icoppositeselection = TIM_ICSelection_IndirectTI; + } + else + { + icoppositeselection = TIM_ICSelection_DirectTI; + } + if (TIM_ICInitStruct->TIM_Channel == TIM_Channel_1) + { + /* TI1 Configuration */ + TI1_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC1Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + /* TI2 Configuration */ + TI2_Config(TIMx, icoppositepolarity, icoppositeselection, TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC2Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } + else + { + /* TI2 Configuration */ + TI2_Config(TIMx, TIM_ICInitStruct->TIM_ICPolarity, TIM_ICInitStruct->TIM_ICSelection, + TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC2Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + /* TI1 Configuration */ + TI1_Config(TIMx, icoppositepolarity, icoppositeselection, TIM_ICInitStruct->TIM_ICFilter); + /* Set the Input Capture Prescaler value */ + TIM_SetIC1Prescaler(TIMx, TIM_ICInitStruct->TIM_ICPrescaler); + } +} + +/** + * @brief Gets the TIMx Input Capture 1 value. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @retval Capture Compare 1 Register value. + */ +uint32_t TIM_GetCapture1(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + + /* Get the Capture 1 Register value */ + return TIMx->CCR1; +} + +/** + * @brief Gets the TIMx Input Capture 2 value. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @retval Capture Compare 2 Register value. + */ +uint32_t TIM_GetCapture2(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + + /* Get the Capture 2 Register value */ + return TIMx->CCR2; +} + +/** + * @brief Gets the TIMx Input Capture 3 value. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @retval Capture Compare 3 Register value. + */ +uint32_t TIM_GetCapture3(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + + /* Get the Capture 3 Register value */ + return TIMx->CCR3; +} + +/** + * @brief Gets the TIMx Input Capture 4 value. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @retval Capture Compare 4 Register value. + */ +uint32_t TIM_GetCapture4(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + + /* Get the Capture 4 Register value */ + return TIMx->CCR4; +} + +/** + * @brief Sets the TIMx Input Capture 1 prescaler. + * @param TIMx: where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. + * @param TIM_ICPSC: specifies the Input Capture1 prescaler new value. + * This parameter can be one of the following values: + * @arg TIM_ICPSC_DIV1: no prescaler + * @arg TIM_ICPSC_DIV2: capture is done once every 2 events + * @arg TIM_ICPSC_DIV4: capture is done once every 4 events + * @arg TIM_ICPSC_DIV8: capture is done once every 8 events + * @retval None + */ +void TIM_SetIC1Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); + + /* Reset the IC1PSC Bits */ + TIMx->CCMR1 &= (uint16_t)~TIM_CCMR1_IC1PSC; + + /* Set the IC1PSC value */ + TIMx->CCMR1 |= TIM_ICPSC; +} + +/** + * @brief Sets the TIMx Input Capture 2 prescaler. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_ICPSC: specifies the Input Capture2 prescaler new value. + * This parameter can be one of the following values: + * @arg TIM_ICPSC_DIV1: no prescaler + * @arg TIM_ICPSC_DIV2: capture is done once every 2 events + * @arg TIM_ICPSC_DIV4: capture is done once every 4 events + * @arg TIM_ICPSC_DIV8: capture is done once every 8 events + * @retval None + */ +void TIM_SetIC2Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); + + /* Reset the IC2PSC Bits */ + TIMx->CCMR1 &= (uint16_t)~TIM_CCMR1_IC2PSC; + + /* Set the IC2PSC value */ + TIMx->CCMR1 |= (uint16_t)(TIM_ICPSC << 8); +} + +/** + * @brief Sets the TIMx Input Capture 3 prescaler. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ICPSC: specifies the Input Capture3 prescaler new value. + * This parameter can be one of the following values: + * @arg TIM_ICPSC_DIV1: no prescaler + * @arg TIM_ICPSC_DIV2: capture is done once every 2 events + * @arg TIM_ICPSC_DIV4: capture is done once every 4 events + * @arg TIM_ICPSC_DIV8: capture is done once every 8 events + * @retval None + */ +void TIM_SetIC3Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); + + /* Reset the IC3PSC Bits */ + TIMx->CCMR2 &= (uint16_t)~TIM_CCMR2_IC3PSC; + + /* Set the IC3PSC value */ + TIMx->CCMR2 |= TIM_ICPSC; +} + +/** + * @brief Sets the TIMx Input Capture 4 prescaler. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ICPSC: specifies the Input Capture4 prescaler new value. + * This parameter can be one of the following values: + * @arg TIM_ICPSC_DIV1: no prescaler + * @arg TIM_ICPSC_DIV2: capture is done once every 2 events + * @arg TIM_ICPSC_DIV4: capture is done once every 4 events + * @arg TIM_ICPSC_DIV8: capture is done once every 8 events + * @retval None + */ +void TIM_SetIC4Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); + + /* Reset the IC4PSC Bits */ + TIMx->CCMR2 &= (uint16_t)~TIM_CCMR2_IC4PSC; + + /* Set the IC4PSC value */ + TIMx->CCMR2 |= (uint16_t)(TIM_ICPSC << 8); +} +/** + * @} + */ + +/** @defgroup TIM_Group4 Advanced-control timers (TIM1 and TIM8) specific features + * @brief Advanced-control timers (TIM1 and TIM8) specific features + * +@verbatim + =============================================================================== + Advanced-control timers (TIM1 and TIM8) specific features + =============================================================================== + + =================================================================== + TIM Driver: how to use the Break feature + =================================================================== + After configuring the Timer channel(s) in the appropriate Output Compare mode: + + 1. Fill the TIM_BDTRInitStruct with the desired parameters for the Timer + Break Polarity, dead time, Lock level, the OSSI/OSSR State and the + AOE(automatic output enable). + + 2. Call TIM_BDTRConfig(TIMx, &TIM_BDTRInitStruct) to configure the Timer + + 3. Enable the Main Output using TIM_CtrlPWMOutputs(TIM1, ENABLE) + + 4. Once the break even occurs, the Timer's output signals are put in reset + state or in a known state (according to the configuration made in + TIM_BDTRConfig() function). + +@endverbatim + * @{ + */ + +/** + * @brief Configures the Break feature, dead time, Lock level, OSSI/OSSR State + * and the AOE(automatic output enable). + * @param TIMx: where x can be 1 or 8 to select the TIM + * @param TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure that + * contains the BDTR Register configuration information for the TIM peripheral. + * @retval None + */ +void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_TIM_OSSR_STATE(TIM_BDTRInitStruct->TIM_OSSRState)); + assert_param(IS_TIM_OSSI_STATE(TIM_BDTRInitStruct->TIM_OSSIState)); + assert_param(IS_TIM_LOCK_LEVEL(TIM_BDTRInitStruct->TIM_LOCKLevel)); + assert_param(IS_TIM_BREAK_STATE(TIM_BDTRInitStruct->TIM_Break)); + assert_param(IS_TIM_BREAK_POLARITY(TIM_BDTRInitStruct->TIM_BreakPolarity)); + assert_param(IS_TIM_AUTOMATIC_OUTPUT_STATE(TIM_BDTRInitStruct->TIM_AutomaticOutput)); + + /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State, + the OSSI State, the dead time value and the Automatic Output Enable Bit */ + TIMx->BDTR = (uint32_t)TIM_BDTRInitStruct->TIM_OSSRState | TIM_BDTRInitStruct->TIM_OSSIState | + TIM_BDTRInitStruct->TIM_LOCKLevel | TIM_BDTRInitStruct->TIM_DeadTime | + TIM_BDTRInitStruct->TIM_Break | TIM_BDTRInitStruct->TIM_BreakPolarity | + TIM_BDTRInitStruct->TIM_AutomaticOutput; +} + +/** + * @brief Fills each TIM_BDTRInitStruct member with its default value. + * @param TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure which + * will be initialized. + * @retval None + */ +void TIM_BDTRStructInit(TIM_BDTRInitTypeDef* TIM_BDTRInitStruct) +{ + /* Set the default configuration */ + TIM_BDTRInitStruct->TIM_OSSRState = TIM_OSSRState_Disable; + TIM_BDTRInitStruct->TIM_OSSIState = TIM_OSSIState_Disable; + TIM_BDTRInitStruct->TIM_LOCKLevel = TIM_LOCKLevel_OFF; + TIM_BDTRInitStruct->TIM_DeadTime = 0x00; + TIM_BDTRInitStruct->TIM_Break = TIM_Break_Disable; + TIM_BDTRInitStruct->TIM_BreakPolarity = TIM_BreakPolarity_Low; + TIM_BDTRInitStruct->TIM_AutomaticOutput = TIM_AutomaticOutput_Disable; +} + +/** + * @brief Enables or disables the TIM peripheral Main Outputs. + * @param TIMx: where x can be 1 or 8 to select the TIMx peripheral. + * @param NewState: new state of the TIM peripheral Main Outputs. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_CtrlPWMOutputs(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the TIM Main Output */ + TIMx->BDTR |= TIM_BDTR_MOE; + } + else + { + /* Disable the TIM Main Output */ + TIMx->BDTR &= (uint16_t)~TIM_BDTR_MOE; + } +} + +/** + * @brief Selects the TIM peripheral Commutation event. + * @param TIMx: where x can be 1 or 8 to select the TIMx peripheral + * @param NewState: new state of the Commutation event. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_SelectCOM(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the COM Bit */ + TIMx->CR2 |= TIM_CR2_CCUS; + } + else + { + /* Reset the COM Bit */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_CCUS; + } +} + +/** + * @brief Sets or Resets the TIM peripheral Capture Compare Preload Control bit. + * @param TIMx: where x can be 1 or 8 to select the TIMx peripheral + * @param NewState: new state of the Capture Compare Preload Control bit + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_CCPreloadControl(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST4_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Set the CCPC Bit */ + TIMx->CR2 |= TIM_CR2_CCPC; + } + else + { + /* Reset the CCPC Bit */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_CCPC; + } +} +/** + * @} + */ + +/** @defgroup TIM_Group5 Interrupts DMA and flags management functions + * @brief Interrupts, DMA and flags management functions + * +@verbatim + =============================================================================== + Interrupts, DMA and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified TIM interrupts. + * @param TIMx: where x can be 1 to 14 to select the TIMx peripheral. + * @param TIM_IT: specifies the TIM interrupts sources to be enabled or disabled. + * This parameter can be any combination of the following values: + * @arg TIM_IT_Update: TIM update Interrupt source + * @arg TIM_IT_CC1: TIM Capture Compare 1 Interrupt source + * @arg TIM_IT_CC2: TIM Capture Compare 2 Interrupt source + * @arg TIM_IT_CC3: TIM Capture Compare 3 Interrupt source + * @arg TIM_IT_CC4: TIM Capture Compare 4 Interrupt source + * @arg TIM_IT_COM: TIM Commutation Interrupt source + * @arg TIM_IT_Trigger: TIM Trigger Interrupt source + * @arg TIM_IT_Break: TIM Break Interrupt source + * + * @note For TIM6 and TIM7 only the parameter TIM_IT_Update can be used + * @note For TIM9 and TIM12 only one of the following parameters can be used: TIM_IT_Update, + * TIM_IT_CC1, TIM_IT_CC2 or TIM_IT_Trigger. + * @note For TIM10, TIM11, TIM13 and TIM14 only one of the following parameters can + * be used: TIM_IT_Update or TIM_IT_CC1 + * @note TIM_IT_COM and TIM_IT_Break can be used only with TIM1 and TIM8 + * + * @param NewState: new state of the TIM interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_ITConfig(TIM_TypeDef* TIMx, uint16_t TIM_IT, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_IT(TIM_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the Interrupt sources */ + TIMx->DIER |= TIM_IT; + } + else + { + /* Disable the Interrupt sources */ + TIMx->DIER &= (uint16_t)~TIM_IT; + } +} + +/** + * @brief Configures the TIMx event to be generate by software. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_EventSource: specifies the event source. + * This parameter can be one or more of the following values: + * @arg TIM_EventSource_Update: Timer update Event source + * @arg TIM_EventSource_CC1: Timer Capture Compare 1 Event source + * @arg TIM_EventSource_CC2: Timer Capture Compare 2 Event source + * @arg TIM_EventSource_CC3: Timer Capture Compare 3 Event source + * @arg TIM_EventSource_CC4: Timer Capture Compare 4 Event source + * @arg TIM_EventSource_COM: Timer COM event source + * @arg TIM_EventSource_Trigger: Timer Trigger Event source + * @arg TIM_EventSource_Break: Timer Break event source + * + * @note TIM6 and TIM7 can only generate an update event. + * @note TIM_EventSource_COM and TIM_EventSource_Break are used only with TIM1 and TIM8. + * + * @retval None + */ +void TIM_GenerateEvent(TIM_TypeDef* TIMx, uint16_t TIM_EventSource) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_EVENT_SOURCE(TIM_EventSource)); + + /* Set the event sources */ + TIMx->EGR = TIM_EventSource; +} + +/** + * @brief Checks whether the specified TIM flag is set or not. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg TIM_FLAG_Update: TIM update Flag + * @arg TIM_FLAG_CC1: TIM Capture Compare 1 Flag + * @arg TIM_FLAG_CC2: TIM Capture Compare 2 Flag + * @arg TIM_FLAG_CC3: TIM Capture Compare 3 Flag + * @arg TIM_FLAG_CC4: TIM Capture Compare 4 Flag + * @arg TIM_FLAG_COM: TIM Commutation Flag + * @arg TIM_FLAG_Trigger: TIM Trigger Flag + * @arg TIM_FLAG_Break: TIM Break Flag + * @arg TIM_FLAG_CC1OF: TIM Capture Compare 1 over capture Flag + * @arg TIM_FLAG_CC2OF: TIM Capture Compare 2 over capture Flag + * @arg TIM_FLAG_CC3OF: TIM Capture Compare 3 over capture Flag + * @arg TIM_FLAG_CC4OF: TIM Capture Compare 4 over capture Flag + * + * @note TIM6 and TIM7 can have only one update flag. + * @note TIM_FLAG_COM and TIM_FLAG_Break are used only with TIM1 and TIM8. + * + * @retval The new state of TIM_FLAG (SET or RESET). + */ +FlagStatus TIM_GetFlagStatus(TIM_TypeDef* TIMx, uint16_t TIM_FLAG) +{ + ITStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_GET_FLAG(TIM_FLAG)); + + + if ((TIMx->SR & TIM_FLAG) != (uint16_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the TIMx's pending flags. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_FLAG: specifies the flag bit to clear. + * This parameter can be any combination of the following values: + * @arg TIM_FLAG_Update: TIM update Flag + * @arg TIM_FLAG_CC1: TIM Capture Compare 1 Flag + * @arg TIM_FLAG_CC2: TIM Capture Compare 2 Flag + * @arg TIM_FLAG_CC3: TIM Capture Compare 3 Flag + * @arg TIM_FLAG_CC4: TIM Capture Compare 4 Flag + * @arg TIM_FLAG_COM: TIM Commutation Flag + * @arg TIM_FLAG_Trigger: TIM Trigger Flag + * @arg TIM_FLAG_Break: TIM Break Flag + * @arg TIM_FLAG_CC1OF: TIM Capture Compare 1 over capture Flag + * @arg TIM_FLAG_CC2OF: TIM Capture Compare 2 over capture Flag + * @arg TIM_FLAG_CC3OF: TIM Capture Compare 3 over capture Flag + * @arg TIM_FLAG_CC4OF: TIM Capture Compare 4 over capture Flag + * + * @note TIM6 and TIM7 can have only one update flag. + * @note TIM_FLAG_COM and TIM_FLAG_Break are used only with TIM1 and TIM8. + * + * @retval None + */ +void TIM_ClearFlag(TIM_TypeDef* TIMx, uint16_t TIM_FLAG) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Clear the flags */ + TIMx->SR = (uint16_t)~TIM_FLAG; +} + +/** + * @brief Checks whether the TIM interrupt has occurred or not. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_IT: specifies the TIM interrupt source to check. + * This parameter can be one of the following values: + * @arg TIM_IT_Update: TIM update Interrupt source + * @arg TIM_IT_CC1: TIM Capture Compare 1 Interrupt source + * @arg TIM_IT_CC2: TIM Capture Compare 2 Interrupt source + * @arg TIM_IT_CC3: TIM Capture Compare 3 Interrupt source + * @arg TIM_IT_CC4: TIM Capture Compare 4 Interrupt source + * @arg TIM_IT_COM: TIM Commutation Interrupt source + * @arg TIM_IT_Trigger: TIM Trigger Interrupt source + * @arg TIM_IT_Break: TIM Break Interrupt source + * + * @note TIM6 and TIM7 can generate only an update interrupt. + * @note TIM_IT_COM and TIM_IT_Break are used only with TIM1 and TIM8. + * + * @retval The new state of the TIM_IT(SET or RESET). + */ +ITStatus TIM_GetITStatus(TIM_TypeDef* TIMx, uint16_t TIM_IT) +{ + ITStatus bitstatus = RESET; + uint16_t itstatus = 0x0, itenable = 0x0; + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + assert_param(IS_TIM_GET_IT(TIM_IT)); + + itstatus = TIMx->SR & TIM_IT; + + itenable = TIMx->DIER & TIM_IT; + if ((itstatus != (uint16_t)RESET) && (itenable != (uint16_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the TIMx's interrupt pending bits. + * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. + * @param TIM_IT: specifies the pending bit to clear. + * This parameter can be any combination of the following values: + * @arg TIM_IT_Update: TIM1 update Interrupt source + * @arg TIM_IT_CC1: TIM Capture Compare 1 Interrupt source + * @arg TIM_IT_CC2: TIM Capture Compare 2 Interrupt source + * @arg TIM_IT_CC3: TIM Capture Compare 3 Interrupt source + * @arg TIM_IT_CC4: TIM Capture Compare 4 Interrupt source + * @arg TIM_IT_COM: TIM Commutation Interrupt source + * @arg TIM_IT_Trigger: TIM Trigger Interrupt source + * @arg TIM_IT_Break: TIM Break Interrupt source + * + * @note TIM6 and TIM7 can generate only an update interrupt. + * @note TIM_IT_COM and TIM_IT_Break are used only with TIM1 and TIM8. + * + * @retval None + */ +void TIM_ClearITPendingBit(TIM_TypeDef* TIMx, uint16_t TIM_IT) +{ + /* Check the parameters */ + assert_param(IS_TIM_ALL_PERIPH(TIMx)); + + /* Clear the IT pending Bit */ + TIMx->SR = (uint16_t)~TIM_IT; +} + +/** + * @brief Configures the TIMx's DMA interface. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_DMABase: DMA Base address. + * This parameter can be one of the following values: + * @arg TIM_DMABase_CR1 + * @arg TIM_DMABase_CR2 + * @arg TIM_DMABase_SMCR + * @arg TIM_DMABase_DIER + * @arg TIM1_DMABase_SR + * @arg TIM_DMABase_EGR + * @arg TIM_DMABase_CCMR1 + * @arg TIM_DMABase_CCMR2 + * @arg TIM_DMABase_CCER + * @arg TIM_DMABase_CNT + * @arg TIM_DMABase_PSC + * @arg TIM_DMABase_ARR + * @arg TIM_DMABase_RCR + * @arg TIM_DMABase_CCR1 + * @arg TIM_DMABase_CCR2 + * @arg TIM_DMABase_CCR3 + * @arg TIM_DMABase_CCR4 + * @arg TIM_DMABase_BDTR + * @arg TIM_DMABase_DCR + * @param TIM_DMABurstLength: DMA Burst length. This parameter can be one value + * between: TIM_DMABurstLength_1Transfer and TIM_DMABurstLength_18Transfers. + * @retval None + */ +void TIM_DMAConfig(TIM_TypeDef* TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_DMA_BASE(TIM_DMABase)); + assert_param(IS_TIM_DMA_LENGTH(TIM_DMABurstLength)); + + /* Set the DMA Base and the DMA Burst Length */ + TIMx->DCR = TIM_DMABase | TIM_DMABurstLength; +} + +/** + * @brief Enables or disables the TIMx's DMA Requests. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 6, 7 or 8 to select the TIM peripheral. + * @param TIM_DMASource: specifies the DMA Request sources. + * This parameter can be any combination of the following values: + * @arg TIM_DMA_Update: TIM update Interrupt source + * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source + * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source + * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source + * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source + * @arg TIM_DMA_COM: TIM Commutation DMA source + * @arg TIM_DMA_Trigger: TIM Trigger DMA source + * @param NewState: new state of the DMA Request sources. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_DMACmd(TIM_TypeDef* TIMx, uint16_t TIM_DMASource, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST5_PERIPH(TIMx)); + assert_param(IS_TIM_DMA_SOURCE(TIM_DMASource)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DMA sources */ + TIMx->DIER |= TIM_DMASource; + } + else + { + /* Disable the DMA sources */ + TIMx->DIER &= (uint16_t)~TIM_DMASource; + } +} + +/** + * @brief Selects the TIMx peripheral Capture Compare DMA source. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param NewState: new state of the Capture Compare DMA source + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_SelectCCDMA(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the CCDS Bit */ + TIMx->CR2 |= TIM_CR2_CCDS; + } + else + { + /* Reset the CCDS Bit */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_CCDS; + } +} +/** + * @} + */ + +/** @defgroup TIM_Group6 Clocks management functions + * @brief Clocks management functions + * +@verbatim + =============================================================================== + Clocks management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the TIMx internal Clock + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @retval None + */ +void TIM_InternalClockConfig(TIM_TypeDef* TIMx) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + + /* Disable slave mode to clock the prescaler directly with the internal clock */ + TIMx->SMCR &= (uint16_t)~TIM_SMCR_SMS; +} + +/** + * @brief Configures the TIMx Internal Trigger as External Clock + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_InputTriggerSource: Trigger source. + * This parameter can be one of the following values: + * @arg TIM_TS_ITR0: Internal Trigger 0 + * @arg TIM_TS_ITR1: Internal Trigger 1 + * @arg TIM_TS_ITR2: Internal Trigger 2 + * @arg TIM_TS_ITR3: Internal Trigger 3 + * @retval None + */ +void TIM_ITRxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_INTERNAL_TRIGGER_SELECTION(TIM_InputTriggerSource)); + + /* Select the Internal Trigger */ + TIM_SelectInputTrigger(TIMx, TIM_InputTriggerSource); + + /* Select the External clock mode1 */ + TIMx->SMCR |= TIM_SlaveMode_External1; +} + +/** + * @brief Configures the TIMx Trigger as External Clock + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 + * to select the TIM peripheral. + * @param TIM_TIxExternalCLKSource: Trigger source. + * This parameter can be one of the following values: + * @arg TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector + * @arg TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1 + * @arg TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2 + * @param TIM_ICPolarity: specifies the TIx Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @param ICFilter: specifies the filter value. + * This parameter must be a value between 0x0 and 0xF. + * @retval None + */ +void TIM_TIxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_TIxExternalCLKSource, + uint16_t TIM_ICPolarity, uint16_t ICFilter) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_IC_POLARITY(TIM_ICPolarity)); + assert_param(IS_TIM_IC_FILTER(ICFilter)); + + /* Configure the Timer Input Clock Source */ + if (TIM_TIxExternalCLKSource == TIM_TIxExternalCLK1Source_TI2) + { + TI2_Config(TIMx, TIM_ICPolarity, TIM_ICSelection_DirectTI, ICFilter); + } + else + { + TI1_Config(TIMx, TIM_ICPolarity, TIM_ICSelection_DirectTI, ICFilter); + } + /* Select the Trigger source */ + TIM_SelectInputTrigger(TIMx, TIM_TIxExternalCLKSource); + /* Select the External clock mode1 */ + TIMx->SMCR |= TIM_SlaveMode_External1; +} + +/** + * @brief Configures the External clock Mode1 + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ExtTRGPrescaler: The external Trigger Prescaler. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF. + * @arg TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2. + * @arg TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4. + * @arg TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8. + * @param TIM_ExtTRGPolarity: The external Trigger Polarity. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPolarity_Inverted: active low or falling edge active. + * @arg TIM_ExtTRGPolarity_NonInverted: active high or rising edge active. + * @param ExtTRGFilter: External Trigger Filter. + * This parameter must be a value between 0x00 and 0x0F + * @retval None + */ +void TIM_ETRClockMode1Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, + uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) +{ + uint16_t tmpsmcr = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_EXT_PRESCALER(TIM_ExtTRGPrescaler)); + assert_param(IS_TIM_EXT_POLARITY(TIM_ExtTRGPolarity)); + assert_param(IS_TIM_EXT_FILTER(ExtTRGFilter)); + /* Configure the ETR Clock source */ + TIM_ETRConfig(TIMx, TIM_ExtTRGPrescaler, TIM_ExtTRGPolarity, ExtTRGFilter); + + /* Get the TIMx SMCR register value */ + tmpsmcr = TIMx->SMCR; + + /* Reset the SMS Bits */ + tmpsmcr &= (uint16_t)~TIM_SMCR_SMS; + + /* Select the External clock mode1 */ + tmpsmcr |= TIM_SlaveMode_External1; + + /* Select the Trigger selection : ETRF */ + tmpsmcr &= (uint16_t)~TIM_SMCR_TS; + tmpsmcr |= TIM_TS_ETRF; + + /* Write to TIMx SMCR */ + TIMx->SMCR = tmpsmcr; +} + +/** + * @brief Configures the External clock Mode2 + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ExtTRGPrescaler: The external Trigger Prescaler. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF. + * @arg TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2. + * @arg TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4. + * @arg TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8. + * @param TIM_ExtTRGPolarity: The external Trigger Polarity. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPolarity_Inverted: active low or falling edge active. + * @arg TIM_ExtTRGPolarity_NonInverted: active high or rising edge active. + * @param ExtTRGFilter: External Trigger Filter. + * This parameter must be a value between 0x00 and 0x0F + * @retval None + */ +void TIM_ETRClockMode2Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, + uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_EXT_PRESCALER(TIM_ExtTRGPrescaler)); + assert_param(IS_TIM_EXT_POLARITY(TIM_ExtTRGPolarity)); + assert_param(IS_TIM_EXT_FILTER(ExtTRGFilter)); + + /* Configure the ETR Clock source */ + TIM_ETRConfig(TIMx, TIM_ExtTRGPrescaler, TIM_ExtTRGPolarity, ExtTRGFilter); + + /* Enable the External clock mode2 */ + TIMx->SMCR |= TIM_SMCR_ECE; +} +/** + * @} + */ + +/** @defgroup TIM_Group7 Synchronization management functions + * @brief Synchronization management functions + * +@verbatim + =============================================================================== + Synchronization management functions + =============================================================================== + + =================================================================== + TIM Driver: how to use it in synchronization Mode + =================================================================== + Case of two/several Timers + ************************** + 1. Configure the Master Timers using the following functions: + - void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_TRGOSource); + - void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_MasterSlaveMode); + 2. Configure the Slave Timers using the following functions: + - void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource); + - void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode); + + Case of Timers and external trigger(ETR pin) + ******************************************** + 1. Configure the External trigger using this function: + - void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, + uint16_t ExtTRGFilter); + 2. Configure the Slave Timers using the following functions: + - void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource); + - void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode); + +@endverbatim + * @{ + */ + +/** + * @brief Selects the Input Trigger source + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 + * to select the TIM peripheral. + * @param TIM_InputTriggerSource: The Input Trigger source. + * This parameter can be one of the following values: + * @arg TIM_TS_ITR0: Internal Trigger 0 + * @arg TIM_TS_ITR1: Internal Trigger 1 + * @arg TIM_TS_ITR2: Internal Trigger 2 + * @arg TIM_TS_ITR3: Internal Trigger 3 + * @arg TIM_TS_TI1F_ED: TI1 Edge Detector + * @arg TIM_TS_TI1FP1: Filtered Timer Input 1 + * @arg TIM_TS_TI2FP2: Filtered Timer Input 2 + * @arg TIM_TS_ETRF: External Trigger input + * @retval None + */ +void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource) +{ + uint16_t tmpsmcr = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST1_PERIPH(TIMx)); + assert_param(IS_TIM_TRIGGER_SELECTION(TIM_InputTriggerSource)); + + /* Get the TIMx SMCR register value */ + tmpsmcr = TIMx->SMCR; + + /* Reset the TS Bits */ + tmpsmcr &= (uint16_t)~TIM_SMCR_TS; + + /* Set the Input Trigger source */ + tmpsmcr |= TIM_InputTriggerSource; + + /* Write to TIMx SMCR */ + TIMx->SMCR = tmpsmcr; +} + +/** + * @brief Selects the TIMx Trigger Output Mode. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 6, 7 or 8 to select the TIM peripheral. + * + * @param TIM_TRGOSource: specifies the Trigger Output source. + * This parameter can be one of the following values: + * + * - For all TIMx + * @arg TIM_TRGOSource_Reset: The UG bit in the TIM_EGR register is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_Enable: The Counter Enable CEN is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_Update: The update event is selected as the trigger output(TRGO) + * + * - For all TIMx except TIM6 and TIM7 + * @arg TIM_TRGOSource_OC1: The trigger output sends a positive pulse when the CC1IF flag + * is to be set, as soon as a capture or compare match occurs(TRGO) + * @arg TIM_TRGOSource_OC1Ref: OC1REF signal is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_OC2Ref: OC2REF signal is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_OC3Ref: OC3REF signal is used as the trigger output(TRGO) + * @arg TIM_TRGOSource_OC4Ref: OC4REF signal is used as the trigger output(TRGO) + * + * @retval None + */ +void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_TRGOSource) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST5_PERIPH(TIMx)); + assert_param(IS_TIM_TRGO_SOURCE(TIM_TRGOSource)); + + /* Reset the MMS Bits */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_MMS; + /* Select the TRGO source */ + TIMx->CR2 |= TIM_TRGOSource; +} + +/** + * @brief Selects the TIMx Slave Mode. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral. + * @param TIM_SlaveMode: specifies the Timer Slave Mode. + * This parameter can be one of the following values: + * @arg TIM_SlaveMode_Reset: Rising edge of the selected trigger signal(TRGI) reinitialize + * the counter and triggers an update of the registers + * @arg TIM_SlaveMode_Gated: The counter clock is enabled when the trigger signal (TRGI) is high + * @arg TIM_SlaveMode_Trigger: The counter starts at a rising edge of the trigger TRGI + * @arg TIM_SlaveMode_External1: Rising edges of the selected trigger (TRGI) clock the counter + * @retval None + */ +void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_SLAVE_MODE(TIM_SlaveMode)); + + /* Reset the SMS Bits */ + TIMx->SMCR &= (uint16_t)~TIM_SMCR_SMS; + + /* Select the Slave Mode */ + TIMx->SMCR |= TIM_SlaveMode; +} + +/** + * @brief Sets or Resets the TIMx Master/Slave Mode. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral. + * @param TIM_MasterSlaveMode: specifies the Timer Master Slave Mode. + * This parameter can be one of the following values: + * @arg TIM_MasterSlaveMode_Enable: synchronization between the current timer + * and its slaves (through TRGO) + * @arg TIM_MasterSlaveMode_Disable: No action + * @retval None + */ +void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_MasterSlaveMode) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_MSM_STATE(TIM_MasterSlaveMode)); + + /* Reset the MSM Bit */ + TIMx->SMCR &= (uint16_t)~TIM_SMCR_MSM; + + /* Set or Reset the MSM Bit */ + TIMx->SMCR |= TIM_MasterSlaveMode; +} + +/** + * @brief Configures the TIMx External Trigger (ETR). + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ExtTRGPrescaler: The external Trigger Prescaler. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF. + * @arg TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2. + * @arg TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4. + * @arg TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8. + * @param TIM_ExtTRGPolarity: The external Trigger Polarity. + * This parameter can be one of the following values: + * @arg TIM_ExtTRGPolarity_Inverted: active low or falling edge active. + * @arg TIM_ExtTRGPolarity_NonInverted: active high or rising edge active. + * @param ExtTRGFilter: External Trigger Filter. + * This parameter must be a value between 0x00 and 0x0F + * @retval None + */ +void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, + uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) +{ + uint16_t tmpsmcr = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST3_PERIPH(TIMx)); + assert_param(IS_TIM_EXT_PRESCALER(TIM_ExtTRGPrescaler)); + assert_param(IS_TIM_EXT_POLARITY(TIM_ExtTRGPolarity)); + assert_param(IS_TIM_EXT_FILTER(ExtTRGFilter)); + + tmpsmcr = TIMx->SMCR; + + /* Reset the ETR Bits */ + tmpsmcr &= SMCR_ETR_MASK; + + /* Set the Prescaler, the Filter value and the Polarity */ + tmpsmcr |= (uint16_t)(TIM_ExtTRGPrescaler | (uint16_t)(TIM_ExtTRGPolarity | (uint16_t)(ExtTRGFilter << (uint16_t)8))); + + /* Write to TIMx SMCR */ + TIMx->SMCR = tmpsmcr; +} +/** + * @} + */ + +/** @defgroup TIM_Group8 Specific interface management functions + * @brief Specific interface management functions + * +@verbatim + =============================================================================== + Specific interface management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the TIMx Encoder Interface. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_EncoderMode: specifies the TIMx Encoder Mode. + * This parameter can be one of the following values: + * @arg TIM_EncoderMode_TI1: Counter counts on TI1FP1 edge depending on TI2FP2 level. + * @arg TIM_EncoderMode_TI2: Counter counts on TI2FP2 edge depending on TI1FP1 level. + * @arg TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending + * on the level of the other input. + * @param TIM_IC1Polarity: specifies the IC1 Polarity + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Falling: IC Falling edge. + * @arg TIM_ICPolarity_Rising: IC Rising edge. + * @param TIM_IC2Polarity: specifies the IC2 Polarity + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Falling: IC Falling edge. + * @arg TIM_ICPolarity_Rising: IC Rising edge. + * @retval None + */ +void TIM_EncoderInterfaceConfig(TIM_TypeDef* TIMx, uint16_t TIM_EncoderMode, + uint16_t TIM_IC1Polarity, uint16_t TIM_IC2Polarity) +{ + uint16_t tmpsmcr = 0; + uint16_t tmpccmr1 = 0; + uint16_t tmpccer = 0; + + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_TIM_ENCODER_MODE(TIM_EncoderMode)); + assert_param(IS_TIM_IC_POLARITY(TIM_IC1Polarity)); + assert_param(IS_TIM_IC_POLARITY(TIM_IC2Polarity)); + + /* Get the TIMx SMCR register value */ + tmpsmcr = TIMx->SMCR; + + /* Get the TIMx CCMR1 register value */ + tmpccmr1 = TIMx->CCMR1; + + /* Get the TIMx CCER register value */ + tmpccer = TIMx->CCER; + + /* Set the encoder Mode */ + tmpsmcr &= (uint16_t)~TIM_SMCR_SMS; + tmpsmcr |= TIM_EncoderMode; + + /* Select the Capture Compare 1 and the Capture Compare 2 as input */ + tmpccmr1 &= ((uint16_t)~TIM_CCMR1_CC1S) & ((uint16_t)~TIM_CCMR1_CC2S); + tmpccmr1 |= TIM_CCMR1_CC1S_0 | TIM_CCMR1_CC2S_0; + + /* Set the TI1 and the TI2 Polarities */ + tmpccer &= ((uint16_t)~TIM_CCER_CC1P) & ((uint16_t)~TIM_CCER_CC2P); + tmpccer |= (uint16_t)(TIM_IC1Polarity | (uint16_t)(TIM_IC2Polarity << (uint16_t)4)); + + /* Write to TIMx SMCR */ + TIMx->SMCR = tmpsmcr; + + /* Write to TIMx CCMR1 */ + TIMx->CCMR1 = tmpccmr1; + + /* Write to TIMx CCER */ + TIMx->CCER = tmpccer; +} + +/** + * @brief Enables or disables the TIMx's Hall sensor interface. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param NewState: new state of the TIMx Hall sensor interface. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void TIM_SelectHallSensor(TIM_TypeDef* TIMx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST2_PERIPH(TIMx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Set the TI1S Bit */ + TIMx->CR2 |= TIM_CR2_TI1S; + } + else + { + /* Reset the TI1S Bit */ + TIMx->CR2 &= (uint16_t)~TIM_CR2_TI1S; + } +} +/** + * @} + */ + +/** @defgroup TIM_Group9 Specific remapping management function + * @brief Specific remapping management function + * +@verbatim + =============================================================================== + Specific remapping management function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Configures the TIM2, TIM5 and TIM11 Remapping input capabilities. + * @param TIMx: where x can be 2, 5 or 11 to select the TIM peripheral. + * @param TIM_Remap: specifies the TIM input remapping source. + * This parameter can be one of the following values: + * @arg TIM2_TIM8_TRGO: TIM2 ITR1 input is connected to TIM8 Trigger output(default) + * @arg TIM2_ETH_PTP: TIM2 ITR1 input is connected to ETH PTP trogger output. + * @arg TIM2_USBFS_SOF: TIM2 ITR1 input is connected to USB FS SOF. + * @arg TIM2_USBHS_SOF: TIM2 ITR1 input is connected to USB HS SOF. + * @arg TIM5_GPIO: TIM5 CH4 input is connected to dedicated Timer pin(default) + * @arg TIM5_LSI: TIM5 CH4 input is connected to LSI clock. + * @arg TIM5_LSE: TIM5 CH4 input is connected to LSE clock. + * @arg TIM5_RTC: TIM5 CH4 input is connected to RTC Output event. + * @arg TIM11_GPIO: TIM11 CH4 input is connected to dedicated Timer pin(default) + * @arg TIM11_HSE: TIM11 CH4 input is connected to HSE_RTC clock + * (HSE divided by a programmable prescaler) + * @retval None + */ +void TIM_RemapConfig(TIM_TypeDef* TIMx, uint16_t TIM_Remap) +{ + /* Check the parameters */ + assert_param(IS_TIM_LIST6_PERIPH(TIMx)); + assert_param(IS_TIM_REMAP(TIM_Remap)); + + /* Set the Timer remapping configuration */ + TIMx->OR = TIM_Remap; +} +/** + * @} + */ + +/** + * @brief Configure the TI1 as Input. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 + * to select the TIM peripheral. + * @param TIM_ICPolarity : The Input Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @arg TIM_ICPolarity_BothEdge + * @param TIM_ICSelection: specifies the input to be used. + * This parameter can be one of the following values: + * @arg TIM_ICSelection_DirectTI: TIM Input 1 is selected to be connected to IC1. + * @arg TIM_ICSelection_IndirectTI: TIM Input 1 is selected to be connected to IC2. + * @arg TIM_ICSelection_TRC: TIM Input 1 is selected to be connected to TRC. + * @param TIM_ICFilter: Specifies the Input Capture Filter. + * This parameter must be a value between 0x00 and 0x0F. + * @retval None + */ +static void TI1_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter) +{ + uint16_t tmpccmr1 = 0, tmpccer = 0; + + /* Disable the Channel 1: Reset the CC1E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC1E; + tmpccmr1 = TIMx->CCMR1; + tmpccer = TIMx->CCER; + + /* Select the Input and set the filter */ + tmpccmr1 &= ((uint16_t)~TIM_CCMR1_CC1S) & ((uint16_t)~TIM_CCMR1_IC1F); + tmpccmr1 |= (uint16_t)(TIM_ICSelection | (uint16_t)(TIM_ICFilter << (uint16_t)4)); + + /* Select the Polarity and set the CC1E Bit */ + tmpccer &= (uint16_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP); + tmpccer |= (uint16_t)(TIM_ICPolarity | (uint16_t)TIM_CCER_CC1E); + + /* Write to TIMx CCMR1 and CCER registers */ + TIMx->CCMR1 = tmpccmr1; + TIMx->CCER = tmpccer; +} + +/** + * @brief Configure the TI2 as Input. + * @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM + * peripheral. + * @param TIM_ICPolarity : The Input Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @arg TIM_ICPolarity_BothEdge + * @param TIM_ICSelection: specifies the input to be used. + * This parameter can be one of the following values: + * @arg TIM_ICSelection_DirectTI: TIM Input 2 is selected to be connected to IC2. + * @arg TIM_ICSelection_IndirectTI: TIM Input 2 is selected to be connected to IC1. + * @arg TIM_ICSelection_TRC: TIM Input 2 is selected to be connected to TRC. + * @param TIM_ICFilter: Specifies the Input Capture Filter. + * This parameter must be a value between 0x00 and 0x0F. + * @retval None + */ +static void TI2_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter) +{ + uint16_t tmpccmr1 = 0, tmpccer = 0, tmp = 0; + + /* Disable the Channel 2: Reset the CC2E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC2E; + tmpccmr1 = TIMx->CCMR1; + tmpccer = TIMx->CCER; + tmp = (uint16_t)(TIM_ICPolarity << 4); + + /* Select the Input and set the filter */ + tmpccmr1 &= ((uint16_t)~TIM_CCMR1_CC2S) & ((uint16_t)~TIM_CCMR1_IC2F); + tmpccmr1 |= (uint16_t)(TIM_ICFilter << 12); + tmpccmr1 |= (uint16_t)(TIM_ICSelection << 8); + + /* Select the Polarity and set the CC2E Bit */ + tmpccer &= (uint16_t)~(TIM_CCER_CC2P | TIM_CCER_CC2NP); + tmpccer |= (uint16_t)(tmp | (uint16_t)TIM_CCER_CC2E); + + /* Write to TIMx CCMR1 and CCER registers */ + TIMx->CCMR1 = tmpccmr1 ; + TIMx->CCER = tmpccer; +} + +/** + * @brief Configure the TI3 as Input. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ICPolarity : The Input Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @arg TIM_ICPolarity_BothEdge + * @param TIM_ICSelection: specifies the input to be used. + * This parameter can be one of the following values: + * @arg TIM_ICSelection_DirectTI: TIM Input 3 is selected to be connected to IC3. + * @arg TIM_ICSelection_IndirectTI: TIM Input 3 is selected to be connected to IC4. + * @arg TIM_ICSelection_TRC: TIM Input 3 is selected to be connected to TRC. + * @param TIM_ICFilter: Specifies the Input Capture Filter. + * This parameter must be a value between 0x00 and 0x0F. + * @retval None + */ +static void TI3_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter) +{ + uint16_t tmpccmr2 = 0, tmpccer = 0, tmp = 0; + + /* Disable the Channel 3: Reset the CC3E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC3E; + tmpccmr2 = TIMx->CCMR2; + tmpccer = TIMx->CCER; + tmp = (uint16_t)(TIM_ICPolarity << 8); + + /* Select the Input and set the filter */ + tmpccmr2 &= ((uint16_t)~TIM_CCMR1_CC1S) & ((uint16_t)~TIM_CCMR2_IC3F); + tmpccmr2 |= (uint16_t)(TIM_ICSelection | (uint16_t)(TIM_ICFilter << (uint16_t)4)); + + /* Select the Polarity and set the CC3E Bit */ + tmpccer &= (uint16_t)~(TIM_CCER_CC3P | TIM_CCER_CC3NP); + tmpccer |= (uint16_t)(tmp | (uint16_t)TIM_CCER_CC3E); + + /* Write to TIMx CCMR2 and CCER registers */ + TIMx->CCMR2 = tmpccmr2; + TIMx->CCER = tmpccer; +} + +/** + * @brief Configure the TI4 as Input. + * @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. + * @param TIM_ICPolarity : The Input Polarity. + * This parameter can be one of the following values: + * @arg TIM_ICPolarity_Rising + * @arg TIM_ICPolarity_Falling + * @arg TIM_ICPolarity_BothEdge + * @param TIM_ICSelection: specifies the input to be used. + * This parameter can be one of the following values: + * @arg TIM_ICSelection_DirectTI: TIM Input 4 is selected to be connected to IC4. + * @arg TIM_ICSelection_IndirectTI: TIM Input 4 is selected to be connected to IC3. + * @arg TIM_ICSelection_TRC: TIM Input 4 is selected to be connected to TRC. + * @param TIM_ICFilter: Specifies the Input Capture Filter. + * This parameter must be a value between 0x00 and 0x0F. + * @retval None + */ +static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, + uint16_t TIM_ICFilter) +{ + uint16_t tmpccmr2 = 0, tmpccer = 0, tmp = 0; + + /* Disable the Channel 4: Reset the CC4E Bit */ + TIMx->CCER &= (uint16_t)~TIM_CCER_CC4E; + tmpccmr2 = TIMx->CCMR2; + tmpccer = TIMx->CCER; + tmp = (uint16_t)(TIM_ICPolarity << 12); + + /* Select the Input and set the filter */ + tmpccmr2 &= ((uint16_t)~TIM_CCMR1_CC2S) & ((uint16_t)~TIM_CCMR1_IC2F); + tmpccmr2 |= (uint16_t)(TIM_ICSelection << 8); + tmpccmr2 |= (uint16_t)(TIM_ICFilter << 12); + + /* Select the Polarity and set the CC4E Bit */ + tmpccer &= (uint16_t)~(TIM_CCER_CC4P | TIM_CCER_CC4NP); + tmpccer |= (uint16_t)(tmp | (uint16_t)TIM_CCER_CC4E); + + /* Write to TIMx CCMR2 and CCER registers */ + TIMx->CCMR2 = tmpccmr2; + TIMx->CCER = tmpccer ; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_usart.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_usart.c new file mode 100644 index 00000000..015fdd92 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_usart.c @@ -0,0 +1,1469 @@ +/** + ****************************************************************************** + * @file stm32f2xx_usart.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Universal synchronous asynchronous receiver + * transmitter (USART): + * - Initialization and Configuration + * - Data transfers + * - Multi-Processor Communication + * - LIN mode + * - Half-duplex mode + * - Smartcard mode + * - IrDA mode + * - DMA transfers management + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable peripheral clock using the follwoing functions + * RCC_APB2PeriphClockCmd(RCC_APB2Periph_USARTx, ENABLE) for USART1 and USART6 + * RCC_APB1PeriphClockCmd(RCC_APB1Periph_USARTx, ENABLE) for USART2, USART3, UART4 or UART5. + * + * 2. According to the USART mode, enable the GPIO clocks using + * RCC_AHB1PeriphClockCmd() function. (The I/O can be TX, RX, CTS, + * or/and SCLK). + * + * 3. Peripheral's alternate function: + * - Connect the pin to the desired peripherals' Alternate + * Function (AF) using GPIO_PinAFConfig() function + * - Configure the desired pin in alternate function by: + * GPIO_InitStruct->GPIO_Mode = GPIO_Mode_AF + * - Select the type, pull-up/pull-down and output speed via + * GPIO_PuPd, GPIO_OType and GPIO_Speed members + * - Call GPIO_Init() function + * + * 4. Program the Baud Rate, Word Length , Stop Bit, Parity, Hardware + * flow control and Mode(Receiver/Transmitter) using the USART_Init() + * function. + * + * 5. For synchronous mode, enable the clock and program the polarity, + * phase and last bit using the USART_ClockInit() function. + * + * 5. Enable the NVIC and the corresponding interrupt using the function + * USART_ITConfig() if you need to use interrupt mode. + * + * 6. When using the DMA mode + * - Configure the DMA using DMA_Init() function + * - Active the needed channel Request using USART_DMACmd() function + * + * 7. Enable the USART using the USART_Cmd() function. + * + * 8. Enable the DMA using the DMA_Cmd() function, when using DMA mode. + * + * Refer to Multi-Processor, LIN, half-duplex, Smartcard, IrDA sub-sections + * for more details + * + * In order to reach higher communication baudrates, it is possible to + * enable the oversampling by 8 mode using the function USART_OverSampling8Cmd(). + * This function should be called after enabling the USART clock (RCC_APBxPeriphClockCmd()) + * and before calling the function USART_Init(). + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_usart.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup USART + * @brief USART driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/*!< USART CR1 register clear Mask ((~(uint16_t)0xE9F3)) */ +#define CR1_CLEAR_MASK ((uint16_t)(USART_CR1_M | USART_CR1_PCE | \ + USART_CR1_PS | USART_CR1_TE | \ + USART_CR1_RE)) + +/*!< USART CR2 register clock bits clear Mask ((~(uint16_t)0xF0FF)) */ +#define CR2_CLOCK_CLEAR_MASK ((uint16_t)(USART_CR2_CLKEN | USART_CR2_CPOL | \ + USART_CR2_CPHA | USART_CR2_LBCL)) + +/*!< USART CR3 register clear Mask ((~(uint16_t)0xFCFF)) */ +#define CR3_CLEAR_MASK ((uint16_t)(USART_CR3_RTSE | USART_CR3_CTSE)) + +/*!< USART Interrupts mask */ +#define IT_MASK ((uint16_t)0x001F) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup USART_Private_Functions + * @{ + */ + +/** @defgroup USART_Group1 Initialization and Configuration functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + Initialization and Configuration functions + =============================================================================== + + This subsection provides a set of functions allowing to initialize the USART + in asynchronous and in synchronous modes. + - For the asynchronous mode only these parameters can be configured: + - Baud Rate + - Word Length + - Stop Bit + - Parity: If the parity is enabled, then the MSB bit of the data written + in the data register is transmitted but is changed by the parity bit. + Depending on the frame length defined by the M bit (8-bits or 9-bits), + the possible USART frame formats are as listed in the following table: + +-------------------------------------------------------------+ + | M bit | PCE bit | USART frame | + |---------------------|---------------------------------------| + | 0 | 0 | | SB | 8 bit data | STB | | + |---------|-----------|---------------------------------------| + | 0 | 1 | | SB | 7 bit data | PB | STB | | + |---------|-----------|---------------------------------------| + | 1 | 0 | | SB | 9 bit data | STB | | + |---------|-----------|---------------------------------------| + | 1 | 1 | | SB | 8 bit data | PB | STB | | + +-------------------------------------------------------------+ + - Hardware flow control + - Receiver/transmitter modes + + The USART_Init() function follows the USART asynchronous configuration procedure + (details for the procedure are available in reference manual (RM0033)). + + - For the synchronous mode in addition to the asynchronous mode parameters these + parameters should be also configured: + - USART Clock Enabled + - USART polarity + - USART phase + - USART LastBit + + These parameters can be configured using the USART_ClockInit() function. + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the USARTx peripheral registers to their default reset values. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @retval None + */ +void USART_DeInit(USART_TypeDef* USARTx) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + + if (USARTx == USART1) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_USART1, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_USART1, DISABLE); + } + else if (USARTx == USART2) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART2, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART2, DISABLE); + } + else if (USARTx == USART3) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART3, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_USART3, DISABLE); + } + else if (USARTx == UART4) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_UART4, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_UART4, DISABLE); + } + else if (USARTx == UART5) + { + RCC_APB1PeriphResetCmd(RCC_APB1Periph_UART5, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_UART5, DISABLE); + } + else + { + if (USARTx == USART6) + { + RCC_APB2PeriphResetCmd(RCC_APB2Periph_USART6, ENABLE); + RCC_APB2PeriphResetCmd(RCC_APB2Periph_USART6, DISABLE); + } + } +} + +/** + * @brief Initializes the USARTx peripheral according to the specified + * parameters in the USART_InitStruct . + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_InitStruct: pointer to a USART_InitTypeDef structure that contains + * the configuration information for the specified USART peripheral. + * @retval None + */ +void USART_Init(USART_TypeDef* USARTx, USART_InitTypeDef* USART_InitStruct) +{ + uint32_t tmpreg = 0x00, apbclock = 0x00; + uint32_t integerdivider = 0x00; + uint32_t fractionaldivider = 0x00; + RCC_ClocksTypeDef RCC_ClocksStatus; + + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_BAUDRATE(USART_InitStruct->USART_BaudRate)); + assert_param(IS_USART_WORD_LENGTH(USART_InitStruct->USART_WordLength)); + assert_param(IS_USART_STOPBITS(USART_InitStruct->USART_StopBits)); + assert_param(IS_USART_PARITY(USART_InitStruct->USART_Parity)); + assert_param(IS_USART_MODE(USART_InitStruct->USART_Mode)); + assert_param(IS_USART_HARDWARE_FLOW_CONTROL(USART_InitStruct->USART_HardwareFlowControl)); + + /* The hardware flow control is available only for USART1, USART2, USART3 and USART6 */ + if (USART_InitStruct->USART_HardwareFlowControl != USART_HardwareFlowControl_None) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + +/*---------------------------- USART CR2 Configuration -----------------------*/ + tmpreg = USARTx->CR2; + + /* Clear STOP[13:12] bits */ + tmpreg &= (uint32_t)~((uint32_t)USART_CR2_STOP); + + /* Configure the USART Stop Bits, Clock, CPOL, CPHA and LastBit : + Set STOP[13:12] bits according to USART_StopBits value */ + tmpreg |= (uint32_t)USART_InitStruct->USART_StopBits; + + /* Write to USART CR2 */ + USARTx->CR2 = (uint16_t)tmpreg; + +/*---------------------------- USART CR1 Configuration -----------------------*/ + tmpreg = USARTx->CR1; + + /* Clear M, PCE, PS, TE and RE bits */ + tmpreg &= (uint32_t)~((uint32_t)CR1_CLEAR_MASK); + + /* Configure the USART Word Length, Parity and mode: + Set the M bits according to USART_WordLength value + Set PCE and PS bits according to USART_Parity value + Set TE and RE bits according to USART_Mode value */ + tmpreg |= (uint32_t)USART_InitStruct->USART_WordLength | USART_InitStruct->USART_Parity | + USART_InitStruct->USART_Mode; + + /* Write to USART CR1 */ + USARTx->CR1 = (uint16_t)tmpreg; + +/*---------------------------- USART CR3 Configuration -----------------------*/ + tmpreg = USARTx->CR3; + + /* Clear CTSE and RTSE bits */ + tmpreg &= (uint32_t)~((uint32_t)CR3_CLEAR_MASK); + + /* Configure the USART HFC : + Set CTSE and RTSE bits according to USART_HardwareFlowControl value */ + tmpreg |= USART_InitStruct->USART_HardwareFlowControl; + + /* Write to USART CR3 */ + USARTx->CR3 = (uint16_t)tmpreg; + +/*---------------------------- USART BRR Configuration -----------------------*/ + /* Configure the USART Baud Rate */ + RCC_GetClocksFreq(&RCC_ClocksStatus); + + if ((USARTx == USART1) || (USARTx == USART6)) + { + apbclock = RCC_ClocksStatus.PCLK2_Frequency; + } + else + { + apbclock = RCC_ClocksStatus.PCLK1_Frequency; + } + + /* Determine the integer part */ + if ((USARTx->CR1 & USART_CR1_OVER8) != 0) + { + /* Integer part computing in case Oversampling mode is 8 Samples */ + integerdivider = ((25 * apbclock) / (2 * (USART_InitStruct->USART_BaudRate))); + } + else /* if ((USARTx->CR1 & USART_CR1_OVER8) == 0) */ + { + /* Integer part computing in case Oversampling mode is 16 Samples */ + integerdivider = ((25 * apbclock) / (4 * (USART_InitStruct->USART_BaudRate))); + } + tmpreg = (integerdivider / 100) << 4; + + /* Determine the fractional part */ + fractionaldivider = integerdivider - (100 * (tmpreg >> 4)); + + /* Implement the fractional part in the register */ + if ((USARTx->CR1 & USART_CR1_OVER8) != 0) + { + tmpreg |= ((((fractionaldivider * 8) + 50) / 100)) & ((uint8_t)0x07); + } + else /* if ((USARTx->CR1 & USART_CR1_OVER8) == 0) */ + { + tmpreg |= ((((fractionaldivider * 16) + 50) / 100)) & ((uint8_t)0x0F); + } + + /* Write to USART BRR register */ + USARTx->BRR = (uint16_t)tmpreg; +} + +/** + * @brief Fills each USART_InitStruct member with its default value. + * @param USART_InitStruct: pointer to a USART_InitTypeDef structure which will + * be initialized. + * @retval None + */ +void USART_StructInit(USART_InitTypeDef* USART_InitStruct) +{ + /* USART_InitStruct members default value */ + USART_InitStruct->USART_BaudRate = 9600; + USART_InitStruct->USART_WordLength = USART_WordLength_8b; + USART_InitStruct->USART_StopBits = USART_StopBits_1; + USART_InitStruct->USART_Parity = USART_Parity_No ; + USART_InitStruct->USART_Mode = USART_Mode_Rx | USART_Mode_Tx; + USART_InitStruct->USART_HardwareFlowControl = USART_HardwareFlowControl_None; +} + +/** + * @brief Initializes the USARTx peripheral Clock according to the + * specified parameters in the USART_ClockInitStruct . + * @param USARTx: where x can be 1, 2, 3 or 6 to select the USART peripheral. + * @param USART_ClockInitStruct: pointer to a USART_ClockInitTypeDef structure that + * contains the configuration information for the specified USART peripheral. + * @note The Smart Card and Synchronous modes are not available for UART4 and UART5. + * @retval None + */ +void USART_ClockInit(USART_TypeDef* USARTx, USART_ClockInitTypeDef* USART_ClockInitStruct) +{ + uint32_t tmpreg = 0x00; + /* Check the parameters */ + assert_param(IS_USART_1236_PERIPH(USARTx)); + assert_param(IS_USART_CLOCK(USART_ClockInitStruct->USART_Clock)); + assert_param(IS_USART_CPOL(USART_ClockInitStruct->USART_CPOL)); + assert_param(IS_USART_CPHA(USART_ClockInitStruct->USART_CPHA)); + assert_param(IS_USART_LASTBIT(USART_ClockInitStruct->USART_LastBit)); + +/*---------------------------- USART CR2 Configuration -----------------------*/ + tmpreg = USARTx->CR2; + /* Clear CLKEN, CPOL, CPHA and LBCL bits */ + tmpreg &= (uint32_t)~((uint32_t)CR2_CLOCK_CLEAR_MASK); + /* Configure the USART Clock, CPOL, CPHA and LastBit ------------*/ + /* Set CLKEN bit according to USART_Clock value */ + /* Set CPOL bit according to USART_CPOL value */ + /* Set CPHA bit according to USART_CPHA value */ + /* Set LBCL bit according to USART_LastBit value */ + tmpreg |= (uint32_t)USART_ClockInitStruct->USART_Clock | USART_ClockInitStruct->USART_CPOL | + USART_ClockInitStruct->USART_CPHA | USART_ClockInitStruct->USART_LastBit; + /* Write to USART CR2 */ + USARTx->CR2 = (uint16_t)tmpreg; +} + +/** + * @brief Fills each USART_ClockInitStruct member with its default value. + * @param USART_ClockInitStruct: pointer to a USART_ClockInitTypeDef structure + * which will be initialized. + * @retval None + */ +void USART_ClockStructInit(USART_ClockInitTypeDef* USART_ClockInitStruct) +{ + /* USART_ClockInitStruct members default value */ + USART_ClockInitStruct->USART_Clock = USART_Clock_Disable; + USART_ClockInitStruct->USART_CPOL = USART_CPOL_Low; + USART_ClockInitStruct->USART_CPHA = USART_CPHA_1Edge; + USART_ClockInitStruct->USART_LastBit = USART_LastBit_Disable; +} + +/** + * @brief Enables or disables the specified USART peripheral. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USARTx peripheral. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_Cmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the selected USART by setting the UE bit in the CR1 register */ + USARTx->CR1 |= USART_CR1_UE; + } + else + { + /* Disable the selected USART by clearing the UE bit in the CR1 register */ + USARTx->CR1 &= (uint16_t)~((uint16_t)USART_CR1_UE); + } +} + +/** + * @brief Sets the system clock prescaler. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_Prescaler: specifies the prescaler clock. + * @note The function is used for IrDA mode with UART4 and UART5. + * @retval None + */ +void USART_SetPrescaler(USART_TypeDef* USARTx, uint8_t USART_Prescaler) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + + /* Clear the USART prescaler */ + USARTx->GTPR &= USART_GTPR_GT; + /* Set the USART prescaler */ + USARTx->GTPR |= USART_Prescaler; +} + +/** + * @brief Enables or disables the USART's 8x oversampling mode. + * @note This function has to be called before calling USART_Init() function + * in order to have correct baudrate Divider value. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART 8x oversampling mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_OverSampling8Cmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the 8x Oversampling mode by setting the OVER8 bit in the CR1 register */ + USARTx->CR1 |= USART_CR1_OVER8; + } + else + { + /* Disable the 8x Oversampling mode by clearing the OVER8 bit in the CR1 register */ + USARTx->CR1 &= (uint16_t)~((uint16_t)USART_CR1_OVER8); + } +} + +/** + * @brief Enables or disables the USART's one bit sampling method. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART one bit sampling method. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_OneBitMethodCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the one bit method by setting the ONEBITE bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_ONEBIT; + } + else + { + /* Disable the one bit method by clearing the ONEBITE bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT); + } +} + +/** + * @} + */ + +/** @defgroup USART_Group2 Data transfers functions + * @brief Data transfers functions + * +@verbatim + =============================================================================== + Data transfers functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART data + transfers. + + During an USART reception, data shifts in least significant bit first through + the RX pin. In this mode, the USART_DR register consists of a buffer (RDR) + between the internal bus and the received shift register. + + When a transmission is taking place, a write instruction to the USART_DR register + stores the data in the TDR register and which is copied in the shift register + at the end of the current transmission. + + The read access of the USART_DR register can be done using the USART_ReceiveData() + function and returns the RDR buffered value. Whereas a write access to the USART_DR + can be done using USART_SendData() function and stores the written data into + TDR buffer. + +@endverbatim + * @{ + */ + +/** + * @brief Transmits single data through the USARTx peripheral. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param Data: the data to transmit. + * @retval None + */ +void USART_SendData(USART_TypeDef* USARTx, uint16_t Data) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_DATA(Data)); + + /* Transmit Data */ + USARTx->DR = (Data & (uint16_t)0x01FF); +} + +/** + * @brief Returns the most recent received data by the USARTx peripheral. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @retval The received data. + */ +uint16_t USART_ReceiveData(USART_TypeDef* USARTx) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + + /* Receive Data */ + return (uint16_t)(USARTx->DR & (uint16_t)0x01FF); +} + +/** + * @} + */ + +/** @defgroup USART_Group3 MultiProcessor Communication functions + * @brief Multi-Processor Communication functions + * +@verbatim + =============================================================================== + Multi-Processor Communication functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART + multiprocessor communication. + + For instance one of the USARTs can be the master, its TX output is connected to + the RX input of the other USART. The others are slaves, their respective TX outputs + are logically ANDed together and connected to the RX input of the master. + + USART multiprocessor communication is possible through the following procedure: + 1. Program the Baud rate, Word length = 9 bits, Stop bits, Parity, Mode transmitter + or Mode receiver and hardware flow control values using the USART_Init() + function. + 2. Configures the USART address using the USART_SetAddress() function. + 3. Configures the wake up method (USART_WakeUp_IdleLine or USART_WakeUp_AddressMark) + using USART_WakeUpConfig() function only for the slaves. + 4. Enable the USART using the USART_Cmd() function. + 5. Enter the USART slaves in mute mode using USART_ReceiverWakeUpCmd() function. + + The USART Slave exit from mute mode when receive the wake up condition. + +@endverbatim + * @{ + */ + +/** + * @brief Sets the address of the USART node. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_Address: Indicates the address of the USART node. + * @retval None + */ +void USART_SetAddress(USART_TypeDef* USARTx, uint8_t USART_Address) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_ADDRESS(USART_Address)); + + /* Clear the USART address */ + USARTx->CR2 &= (uint16_t)~((uint16_t)USART_CR2_ADD); + /* Set the USART address node */ + USARTx->CR2 |= USART_Address; +} + +/** + * @brief Determines if the USART is in mute mode or not. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART mute mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_ReceiverWakeUpCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the USART mute mode by setting the RWU bit in the CR1 register */ + USARTx->CR1 |= USART_CR1_RWU; + } + else + { + /* Disable the USART mute mode by clearing the RWU bit in the CR1 register */ + USARTx->CR1 &= (uint16_t)~((uint16_t)USART_CR1_RWU); + } +} +/** + * @brief Selects the USART WakeUp method. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_WakeUp: specifies the USART wakeup method. + * This parameter can be one of the following values: + * @arg USART_WakeUp_IdleLine: WakeUp by an idle line detection + * @arg USART_WakeUp_AddressMark: WakeUp by an address mark + * @retval None + */ +void USART_WakeUpConfig(USART_TypeDef* USARTx, uint16_t USART_WakeUp) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_WAKEUP(USART_WakeUp)); + + USARTx->CR1 &= (uint16_t)~((uint16_t)USART_CR1_WAKE); + USARTx->CR1 |= USART_WakeUp; +} + +/** + * @} + */ + +/** @defgroup USART_Group4 LIN mode functions + * @brief LIN mode functions + * +@verbatim + =============================================================================== + LIN mode functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART LIN + Mode communication. + + In LIN mode, 8-bit data format with 1 stop bit is required in accordance with + the LIN standard. + + Only this LIN Feature is supported by the USART IP: + - LIN Master Synchronous Break send capability and LIN slave break detection + capability : 13-bit break generation and 10/11 bit break detection + + + USART LIN Master transmitter communication is possible through the following procedure: + 1. Program the Baud rate, Word length = 8bits, Stop bits = 1bit, Parity, + Mode transmitter or Mode receiver and hardware flow control values using + the USART_Init() function. + 2. Enable the USART using the USART_Cmd() function. + 3. Enable the LIN mode using the USART_LINCmd() function. + 4. Send the break character using USART_SendBreak() function. + + USART LIN Master receiver communication is possible through the following procedure: + 1. Program the Baud rate, Word length = 8bits, Stop bits = 1bit, Parity, + Mode transmitter or Mode receiver and hardware flow control values using + the USART_Init() function. + 2. Enable the USART using the USART_Cmd() function. + 3. Configures the break detection length using the USART_LINBreakDetectLengthConfig() + function. + 4. Enable the LIN mode using the USART_LINCmd() function. + + +@note In LIN mode, the following bits must be kept cleared: + - CLKEN in the USART_CR2 register, + - STOP[1:0], SCEN, HDSEL and IREN in the USART_CR3 register. + +@endverbatim + * @{ + */ + +/** + * @brief Sets the USART LIN Break detection length. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_LINBreakDetectLength: specifies the LIN break detection length. + * This parameter can be one of the following values: + * @arg USART_LINBreakDetectLength_10b: 10-bit break detection + * @arg USART_LINBreakDetectLength_11b: 11-bit break detection + * @retval None + */ +void USART_LINBreakDetectLengthConfig(USART_TypeDef* USARTx, uint16_t USART_LINBreakDetectLength) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_LIN_BREAK_DETECT_LENGTH(USART_LINBreakDetectLength)); + + USARTx->CR2 &= (uint16_t)~((uint16_t)USART_CR2_LBDL); + USARTx->CR2 |= USART_LINBreakDetectLength; +} + +/** + * @brief Enables or disables the USART's LIN mode. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART LIN mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_LINCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the LIN mode by setting the LINEN bit in the CR2 register */ + USARTx->CR2 |= USART_CR2_LINEN; + } + else + { + /* Disable the LIN mode by clearing the LINEN bit in the CR2 register */ + USARTx->CR2 &= (uint16_t)~((uint16_t)USART_CR2_LINEN); + } +} + +/** + * @brief Transmits break characters. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @retval None + */ +void USART_SendBreak(USART_TypeDef* USARTx) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + + /* Send break characters */ + USARTx->CR1 |= USART_CR1_SBK; +} + +/** + * @} + */ + +/** @defgroup USART_Group5 Halfduplex mode function + * @brief Half-duplex mode function + * +@verbatim + =============================================================================== + Half-duplex mode function + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART + Half-duplex communication. + + The USART can be configured to follow a single-wire half-duplex protocol where + the TX and RX lines are internally connected. + + USART Half duplex communication is possible through the following procedure: + 1. Program the Baud rate, Word length, Stop bits, Parity, Mode transmitter + or Mode receiver and hardware flow control values using the USART_Init() + function. + 2. Configures the USART address using the USART_SetAddress() function. + 3. Enable the USART using the USART_Cmd() function. + 4. Enable the half duplex mode using USART_HalfDuplexCmd() function. + + +@note The RX pin is no longer used +@note In Half-duplex mode the following bits must be kept cleared: + - LINEN and CLKEN bits in the USART_CR2 register. + - SCEN and IREN bits in the USART_CR3 register. + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the USART's Half Duplex communication. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the USART Communication. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_HalfDuplexCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the Half-Duplex mode by setting the HDSEL bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_HDSEL; + } + else + { + /* Disable the Half-Duplex mode by clearing the HDSEL bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_HDSEL); + } +} + +/** + * @} + */ + + +/** @defgroup USART_Group6 Smartcard mode functions + * @brief Smartcard mode functions + * +@verbatim + =============================================================================== + Smartcard mode functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART + Smartcard communication. + + The Smartcard interface is designed to support asynchronous protocol Smartcards as + defined in the ISO 7816-3 standard. + + The USART can provide a clock to the smartcard through the SCLK output. + In smartcard mode, SCLK is not associated to the communication but is simply derived + from the internal peripheral input clock through a 5-bit prescaler. + + Smartcard communication is possible through the following procedure: + 1. Configures the Smartcard Prescaler using the USART_SetPrescaler() function. + 2. Configures the Smartcard Guard Time using the USART_SetGuardTime() function. + 3. Program the USART clock using the USART_ClockInit() function as following: + - USART Clock enabled + - USART CPOL Low + - USART CPHA on first edge + - USART Last Bit Clock Enabled + 4. Program the Smartcard interface using the USART_Init() function as following: + - Word Length = 9 Bits + - 1.5 Stop Bit + - Even parity + - BaudRate = 12096 baud + - Hardware flow control disabled (RTS and CTS signals) + - Tx and Rx enabled + 5. Optionally you can enable the parity error interrupt using the USART_ITConfig() + function + 6. Enable the USART using the USART_Cmd() function. + 7. Enable the Smartcard NACK using the USART_SmartCardNACKCmd() function. + 8. Enable the Smartcard interface using the USART_SmartCardCmd() function. + + Please refer to the ISO 7816-3 specification for more details. + + +@note It is also possible to choose 0.5 stop bit for receiving but it is recommended + to use 1.5 stop bits for both transmitting and receiving to avoid switching + between the two configurations. +@note In smartcard mode, the following bits must be kept cleared: + - LINEN bit in the USART_CR2 register. + - HDSEL and IREN bits in the USART_CR3 register. +@note Smartcard mode is available on USART peripherals only (not available on UART4 + and UART5 peripherals). + +@endverbatim + * @{ + */ + +/** + * @brief Sets the specified USART guard time. + * @param USARTx: where x can be 1, 2, 3 or 6 to select the USART or + * UART peripheral. + * @param USART_GuardTime: specifies the guard time. + * @retval None + */ +void USART_SetGuardTime(USART_TypeDef* USARTx, uint8_t USART_GuardTime) +{ + /* Check the parameters */ + assert_param(IS_USART_1236_PERIPH(USARTx)); + + /* Clear the USART Guard time */ + USARTx->GTPR &= USART_GTPR_PSC; + /* Set the USART guard time */ + USARTx->GTPR |= (uint16_t)((uint16_t)USART_GuardTime << 0x08); +} + +/** + * @brief Enables or disables the USART's Smart Card mode. + * @param USARTx: where x can be 1, 2, 3 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the Smart Card mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_SmartCardCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_1236_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the SC mode by setting the SCEN bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_SCEN; + } + else + { + /* Disable the SC mode by clearing the SCEN bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_SCEN); + } +} + +/** + * @brief Enables or disables NACK transmission. + * @param USARTx: where x can be 1, 2, 3 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the NACK transmission. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_SmartCardNACKCmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_1236_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + if (NewState != DISABLE) + { + /* Enable the NACK transmission by setting the NACK bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_NACK; + } + else + { + /* Disable the NACK transmission by clearing the NACK bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_NACK); + } +} + +/** + * @} + */ + +/** @defgroup USART_Group7 IrDA mode functions + * @brief IrDA mode functions + * +@verbatim + =============================================================================== + IrDA mode functions + =============================================================================== + + This subsection provides a set of functions allowing to manage the USART + IrDA communication. + + IrDA is a half duplex communication protocol. If the Transmitter is busy, any data + on the IrDA receive line will be ignored by the IrDA decoder and if the Receiver + is busy, data on the TX from the USART to IrDA will not be encoded by IrDA. + While receiving data, transmission should be avoided as the data to be transmitted + could be corrupted. + + IrDA communication is possible through the following procedure: + 1. Program the Baud rate, Word length = 8 bits, Stop bits, Parity, Transmitter/Receiver + modes and hardware flow control values using the USART_Init() function. + 2. Enable the USART using the USART_Cmd() function. + 3. Configures the IrDA pulse width by configuring the prescaler using + the USART_SetPrescaler() function. + 4. Configures the IrDA USART_IrDAMode_LowPower or USART_IrDAMode_Normal mode + using the USART_IrDAConfig() function. + 5. Enable the IrDA using the USART_IrDACmd() function. + +@note A pulse of width less than two and greater than one PSC period(s) may or may + not be rejected. +@note The receiver set up time should be managed by software. The IrDA physical layer + specification specifies a minimum of 10 ms delay between transmission and + reception (IrDA is a half duplex protocol). +@note In IrDA mode, the following bits must be kept cleared: + - LINEN, STOP and CLKEN bits in the USART_CR2 register. + - SCEN and HDSEL bits in the USART_CR3 register. + +@endverbatim + * @{ + */ + +/** + * @brief Configures the USART's IrDA interface. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_IrDAMode: specifies the IrDA mode. + * This parameter can be one of the following values: + * @arg USART_IrDAMode_LowPower + * @arg USART_IrDAMode_Normal + * @retval None + */ +void USART_IrDAConfig(USART_TypeDef* USARTx, uint16_t USART_IrDAMode) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_IRDA_MODE(USART_IrDAMode)); + + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_IRLP); + USARTx->CR3 |= USART_IrDAMode; +} + +/** + * @brief Enables or disables the USART's IrDA interface. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param NewState: new state of the IrDA mode. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_IrDACmd(USART_TypeDef* USARTx, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the IrDA mode by setting the IREN bit in the CR3 register */ + USARTx->CR3 |= USART_CR3_IREN; + } + else + { + /* Disable the IrDA mode by clearing the IREN bit in the CR3 register */ + USARTx->CR3 &= (uint16_t)~((uint16_t)USART_CR3_IREN); + } +} + +/** + * @} + */ + +/** @defgroup USART_Group8 DMA transfers management functions + * @brief DMA transfers management functions + * +@verbatim + =============================================================================== + DMA transfers management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the USART's DMA interface. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_DMAReq: specifies the DMA request. + * This parameter can be any combination of the following values: + * @arg USART_DMAReq_Tx: USART DMA transmit request + * @arg USART_DMAReq_Rx: USART DMA receive request + * @param NewState: new state of the DMA Request sources. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq, FunctionalState NewState) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_DMAREQ(USART_DMAReq)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + if (NewState != DISABLE) + { + /* Enable the DMA transfer for selected requests by setting the DMAT and/or + DMAR bits in the USART CR3 register */ + USARTx->CR3 |= USART_DMAReq; + } + else + { + /* Disable the DMA transfer for selected requests by clearing the DMAT and/or + DMAR bits in the USART CR3 register */ + USARTx->CR3 &= (uint16_t)~USART_DMAReq; + } +} + +/** + * @} + */ + +/** @defgroup USART_Group9 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + + This subsection provides a set of functions allowing to configure the USART + Interrupts sources, DMA channels requests and check or clear the flags or + pending bits status. + The user should identify which mode will be used in his application to manage + the communication: Polling mode, Interrupt mode or DMA mode. + + Polling Mode + ============= + In Polling Mode, the SPI communication can be managed by 10 flags: + 1. USART_FLAG_TXE : to indicate the status of the transmit buffer register + 2. USART_FLAG_RXNE : to indicate the status of the receive buffer register + 3. USART_FLAG_TC : to indicate the status of the transmit operation + 4. USART_FLAG_IDLE : to indicate the status of the Idle Line + 5. USART_FLAG_CTS : to indicate the status of the nCTS input + 6. USART_FLAG_LBD : to indicate the status of the LIN break detection + 7. USART_FLAG_NE : to indicate if a noise error occur + 8. USART_FLAG_FE : to indicate if a frame error occur + 9. USART_FLAG_PE : to indicate if a parity error occur + 10. USART_FLAG_ORE : to indicate if an Overrun error occur + + In this Mode it is advised to use the following functions: + - FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, uint16_t USART_FLAG); + - void USART_ClearFlag(USART_TypeDef* USARTx, uint16_t USART_FLAG); + + Interrupt Mode + =============== + In Interrupt Mode, the USART communication can be managed by 8 interrupt sources + and 10 pending bits: + + Pending Bits: + ------------- + 1. USART_IT_TXE : to indicate the status of the transmit buffer register + 2. USART_IT_RXNE : to indicate the status of the receive buffer register + 3. USART_IT_TC : to indicate the status of the transmit operation + 4. USART_IT_IDLE : to indicate the status of the Idle Line + 5. USART_IT_CTS : to indicate the status of the nCTS input + 6. USART_IT_LBD : to indicate the status of the LIN break detection + 7. USART_IT_NE : to indicate if a noise error occur + 8. USART_IT_FE : to indicate if a frame error occur + 9. USART_IT_PE : to indicate if a parity error occur + 10. USART_IT_ORE : to indicate if an Overrun error occur + + Interrupt Source: + ----------------- + 1. USART_IT_TXE : specifies the interrupt source for the Tx buffer empty + interrupt. + 2. USART_IT_RXNE : specifies the interrupt source for the Rx buffer not + empty interrupt. + 3. USART_IT_TC : specifies the interrupt source for the Transmit complete + interrupt. + 4. USART_IT_IDLE : specifies the interrupt source for the Idle Line interrupt. + 5. USART_IT_CTS : specifies the interrupt source for the CTS interrupt. + 6. USART_IT_LBD : specifies the interrupt source for the LIN break detection + interrupt. + 7. USART_IT_PE : specifies the interrupt source for the parity error interrupt. + 8. USART_IT_ERR : specifies the interrupt source for the errors interrupt. + +@note Some parameters are coded in order to use them as interrupt source or as pending bits. + + In this Mode it is advised to use the following functions: + - void USART_ITConfig(USART_TypeDef* USARTx, uint16_t USART_IT, FunctionalState NewState); + - ITStatus USART_GetITStatus(USART_TypeDef* USARTx, uint16_t USART_IT); + - void USART_ClearITPendingBit(USART_TypeDef* USARTx, uint16_t USART_IT); + + DMA Mode + ======== + In DMA Mode, the USART communication can be managed by 2 DMA Channel requests: + 1. USART_DMAReq_Tx: specifies the Tx buffer DMA transfer request + 2. USART_DMAReq_Rx: specifies the Rx buffer DMA transfer request + + In this Mode it is advised to use the following function: + - void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq, FunctionalState NewState); + +@endverbatim + * @{ + */ + +/** + * @brief Enables or disables the specified USART interrupts. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_IT: specifies the USART interrupt sources to be enabled or disabled. + * This parameter can be one of the following values: + * @arg USART_IT_CTS: CTS change interrupt + * @arg USART_IT_LBD: LIN Break detection interrupt + * @arg USART_IT_TXE: Transmit Data Register empty interrupt + * @arg USART_IT_TC: Transmission complete interrupt + * @arg USART_IT_RXNE: Receive Data register not empty interrupt + * @arg USART_IT_IDLE: Idle line detection interrupt + * @arg USART_IT_PE: Parity Error interrupt + * @arg USART_IT_ERR: Error interrupt(Frame error, noise error, overrun error) + * @param NewState: new state of the specified USARTx interrupts. + * This parameter can be: ENABLE or DISABLE. + * @retval None + */ +void USART_ITConfig(USART_TypeDef* USARTx, uint16_t USART_IT, FunctionalState NewState) +{ + uint32_t usartreg = 0x00, itpos = 0x00, itmask = 0x00; + uint32_t usartxbase = 0x00; + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_CONFIG_IT(USART_IT)); + assert_param(IS_FUNCTIONAL_STATE(NewState)); + + /* The CTS interrupt is not available for UART4 and UART5 */ + if (USART_IT == USART_IT_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + usartxbase = (uint32_t)USARTx; + + /* Get the USART register index */ + usartreg = (((uint8_t)USART_IT) >> 0x05); + + /* Get the interrupt position */ + itpos = USART_IT & IT_MASK; + itmask = (((uint32_t)0x01) << itpos); + + if (usartreg == 0x01) /* The IT is in CR1 register */ + { + usartxbase += 0x0C; + } + else if (usartreg == 0x02) /* The IT is in CR2 register */ + { + usartxbase += 0x10; + } + else /* The IT is in CR3 register */ + { + usartxbase += 0x14; + } + if (NewState != DISABLE) + { + *(__IO uint32_t*)usartxbase |= itmask; + } + else + { + *(__IO uint32_t*)usartxbase &= ~itmask; + } +} + +/** + * @brief Checks whether the specified USART flag is set or not. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_FLAG: specifies the flag to check. + * This parameter can be one of the following values: + * @arg USART_FLAG_CTS: CTS Change flag (not available for UART4 and UART5) + * @arg USART_FLAG_LBD: LIN Break detection flag + * @arg USART_FLAG_TXE: Transmit data register empty flag + * @arg USART_FLAG_TC: Transmission Complete flag + * @arg USART_FLAG_RXNE: Receive data register not empty flag + * @arg USART_FLAG_IDLE: Idle Line detection flag + * @arg USART_FLAG_ORE: OverRun Error flag + * @arg USART_FLAG_NE: Noise Error flag + * @arg USART_FLAG_FE: Framing Error flag + * @arg USART_FLAG_PE: Parity Error flag + * @retval The new state of USART_FLAG (SET or RESET). + */ +FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, uint16_t USART_FLAG) +{ + FlagStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_FLAG(USART_FLAG)); + + /* The CTS flag is not available for UART4 and UART5 */ + if (USART_FLAG == USART_FLAG_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + if ((USARTx->SR & USART_FLAG) != (uint16_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears the USARTx's pending flags. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_FLAG: specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg USART_FLAG_CTS: CTS Change flag (not available for UART4 and UART5). + * @arg USART_FLAG_LBD: LIN Break detection flag. + * @arg USART_FLAG_TC: Transmission Complete flag. + * @arg USART_FLAG_RXNE: Receive data register not empty flag. + * + * @note PE (Parity error), FE (Framing error), NE (Noise error), ORE (OverRun + * error) and IDLE (Idle line detected) flags are cleared by software + * sequence: a read operation to USART_SR register (USART_GetFlagStatus()) + * followed by a read operation to USART_DR register (USART_ReceiveData()). + * @note RXNE flag can be also cleared by a read to the USART_DR register + * (USART_ReceiveData()). + * @note TC flag can be also cleared by software sequence: a read operation to + * USART_SR register (USART_GetFlagStatus()) followed by a write operation + * to USART_DR register (USART_SendData()). + * @note TXE flag is cleared only by a write to the USART_DR register + * (USART_SendData()). + * + * @retval None + */ +void USART_ClearFlag(USART_TypeDef* USARTx, uint16_t USART_FLAG) +{ + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_CLEAR_FLAG(USART_FLAG)); + + /* The CTS flag is not available for UART4 and UART5 */ + if ((USART_FLAG & USART_FLAG_CTS) == USART_FLAG_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + USARTx->SR = (uint16_t)~USART_FLAG; +} + +/** + * @brief Checks whether the specified USART interrupt has occurred or not. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_IT: specifies the USART interrupt source to check. + * This parameter can be one of the following values: + * @arg USART_IT_CTS : CTS change interrupt (not available for UART4 and UART5) + * @arg USART_IT_LBD : LIN Break detection interrupt + * @arg USART_IT_TXE : Transmit Data Register empty interrupt + * @arg USART_IT_TC : Transmission complete interrupt + * @arg USART_IT_RXNE : Receive Data register not empty interrupt + * @arg USART_IT_IDLE : Idle line detection interrupt + * @arg USART_IT_ORE_RX : OverRun Error interrupt if the RXNEIE bit is set + * @arg USART_IT_ORE_ER : OverRun Error interrupt if the EIE bit is set + * @arg USART_IT_NE : Noise Error interrupt + * @arg USART_IT_FE : Framing Error interrupt + * @arg USART_IT_PE : Parity Error interrupt + * @retval The new state of USART_IT (SET or RESET). + */ +ITStatus USART_GetITStatus(USART_TypeDef* USARTx, uint16_t USART_IT) +{ + uint32_t bitpos = 0x00, itmask = 0x00, usartreg = 0x00; + ITStatus bitstatus = RESET; + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_GET_IT(USART_IT)); + + /* The CTS interrupt is not available for UART4 and UART5 */ + if (USART_IT == USART_IT_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + /* Get the USART register index */ + usartreg = (((uint8_t)USART_IT) >> 0x05); + /* Get the interrupt position */ + itmask = USART_IT & IT_MASK; + itmask = (uint32_t)0x01 << itmask; + + if (usartreg == 0x01) /* The IT is in CR1 register */ + { + itmask &= USARTx->CR1; + } + else if (usartreg == 0x02) /* The IT is in CR2 register */ + { + itmask &= USARTx->CR2; + } + else /* The IT is in CR3 register */ + { + itmask &= USARTx->CR3; + } + + bitpos = USART_IT >> 0x08; + bitpos = (uint32_t)0x01 << bitpos; + bitpos &= USARTx->SR; + if ((itmask != (uint16_t)RESET)&&(bitpos != (uint16_t)RESET)) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + + return bitstatus; +} + +/** + * @brief Clears the USARTx's interrupt pending bits. + * @param USARTx: where x can be 1, 2, 3, 4, 5 or 6 to select the USART or + * UART peripheral. + * @param USART_IT: specifies the interrupt pending bit to clear. + * This parameter can be one of the following values: + * @arg USART_IT_CTS: CTS change interrupt (not available for UART4 and UART5) + * @arg USART_IT_LBD: LIN Break detection interrupt + * @arg USART_IT_TC: Transmission complete interrupt. + * @arg USART_IT_RXNE: Receive Data register not empty interrupt. + * + * @note PE (Parity error), FE (Framing error), NE (Noise error), ORE (OverRun + * error) and IDLE (Idle line detected) pending bits are cleared by + * software sequence: a read operation to USART_SR register + * (USART_GetITStatus()) followed by a read operation to USART_DR register + * (USART_ReceiveData()). + * @note RXNE pending bit can be also cleared by a read to the USART_DR register + * (USART_ReceiveData()). + * @note TC pending bit can be also cleared by software sequence: a read + * operation to USART_SR register (USART_GetITStatus()) followed by a write + * operation to USART_DR register (USART_SendData()). + * @note TXE pending bit is cleared only by a write to the USART_DR register + * (USART_SendData()). + * + * @retval None + */ +void USART_ClearITPendingBit(USART_TypeDef* USARTx, uint16_t USART_IT) +{ + uint16_t bitpos = 0x00, itmask = 0x00; + /* Check the parameters */ + assert_param(IS_USART_ALL_PERIPH(USARTx)); + assert_param(IS_USART_CLEAR_IT(USART_IT)); + + /* The CTS interrupt is not available for UART4 and UART5 */ + if (USART_IT == USART_IT_CTS) + { + assert_param(IS_USART_1236_PERIPH(USARTx)); + } + + bitpos = USART_IT >> 0x08; + itmask = ((uint16_t)0x01 << (uint16_t)bitpos); + USARTx->SR = (uint16_t)~itmask; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_wwdg.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_wwdg.c new file mode 100644 index 00000000..c893fb38 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/SPL/src/stm32f2xx_wwdg.c @@ -0,0 +1,309 @@ +/** + ****************************************************************************** + * @file stm32f2xx_wwdg.c + * @author MCD Application Team + * @version V1.1.2 + * @date 05-March-2012 + * @brief This file provides firmware functions to manage the following + * functionalities of the Window watchdog (WWDG) peripheral: + * - Prescaler, Refresh window and Counter configuration + * - WWDG activation + * - Interrupts and flags management + * + * @verbatim + * + * =================================================================== + * WWDG features + * =================================================================== + * + * Once enabled the WWDG generates a system reset on expiry of a programmed + * time period, unless the program refreshes the counter (downcounter) + * before to reach 0x3F value (i.e. a reset is generated when the counter + * value rolls over from 0x40 to 0x3F). + * An MCU reset is also generated if the counter value is refreshed + * before the counter has reached the refresh window value. This + * implies that the counter must be refreshed in a limited window. + * + * Once enabled the WWDG cannot be disabled except by a system reset. + * + * WWDGRST flag in RCC_CSR register can be used to inform when a WWDG + * reset occurs. + * + * The WWDG counter input clock is derived from the APB clock divided + * by a programmable prescaler. + * + * WWDG counter clock = PCLK1 / Prescaler + * WWDG timeout = (WWDG counter clock) * (counter value) + * + * Min-max timeout value @30 MHz(PCLK1): ~136.5 us / ~69.9 ms + * + * =================================================================== + * How to use this driver + * =================================================================== + * 1. Enable WWDG clock using RCC_APB1PeriphClockCmd(RCC_APB1Periph_WWDG, ENABLE) function + * + * 2. Configure the WWDG prescaler using WWDG_SetPrescaler() function + * + * 3. Configure the WWDG refresh window using WWDG_SetWindowValue() function + * + * 4. Set the WWDG counter value and start it using WWDG_Enable() function. + * When the WWDG is enabled the counter value should be configured to + * a value greater than 0x40 to prevent generating an immediate reset. + * + * 5. Optionally you can enable the Early wakeup interrupt which is + * generated when the counter reach 0x40. + * Once enabled this interrupt cannot be disabled except by a system reset. + * + * 6. Then the application program must refresh the WWDG counter at regular + * intervals during normal operation to prevent an MCU reset, using + * WWDG_SetCounter() function. This operation must occur only when + * the counter value is lower than the refresh window value, + * programmed using WWDG_SetWindowValue(). + * + * @endverbatim + * + ****************************************************************************** + * @attention + * + *

© COPYRIGHT 2012 STMicroelectronics

+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f2xx_wwdg.h" +#include "stm32f2xx_rcc.h" + +/** @addtogroup STM32F2xx_StdPeriph_Driver + * @{ + */ + +/** @defgroup WWDG + * @brief WWDG driver modules + * @{ + */ + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ + +/* ----------- WWDG registers bit address in the alias region ----------- */ +#define WWDG_OFFSET (WWDG_BASE - PERIPH_BASE) +/* Alias word address of EWI bit */ +#define CFR_OFFSET (WWDG_OFFSET + 0x04) +#define EWI_BitNumber 0x09 +#define CFR_EWI_BB (PERIPH_BB_BASE + (CFR_OFFSET * 32) + (EWI_BitNumber * 4)) + +/* --------------------- WWDG registers bit mask ------------------------ */ +/* CFR register bit mask */ +#define CFR_WDGTB_MASK ((uint32_t)0xFFFFFE7F) +#define CFR_W_MASK ((uint32_t)0xFFFFFF80) +#define BIT_MASK ((uint8_t)0x7F) + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/* Private functions ---------------------------------------------------------*/ + +/** @defgroup WWDG_Private_Functions + * @{ + */ + +/** @defgroup WWDG_Group1 Prescaler, Refresh window and Counter configuration functions + * @brief Prescaler, Refresh window and Counter configuration functions + * +@verbatim + =============================================================================== + Prescaler, Refresh window and Counter configuration functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Deinitializes the WWDG peripheral registers to their default reset values. + * @param None + * @retval None + */ +void WWDG_DeInit(void) +{ + RCC_APB1PeriphResetCmd(RCC_APB1Periph_WWDG, ENABLE); + RCC_APB1PeriphResetCmd(RCC_APB1Periph_WWDG, DISABLE); +} + +/** + * @brief Sets the WWDG Prescaler. + * @param WWDG_Prescaler: specifies the WWDG Prescaler. + * This parameter can be one of the following values: + * @arg WWDG_Prescaler_1: WWDG counter clock = (PCLK1/4096)/1 + * @arg WWDG_Prescaler_2: WWDG counter clock = (PCLK1/4096)/2 + * @arg WWDG_Prescaler_4: WWDG counter clock = (PCLK1/4096)/4 + * @arg WWDG_Prescaler_8: WWDG counter clock = (PCLK1/4096)/8 + * @retval None + */ +void WWDG_SetPrescaler(uint32_t WWDG_Prescaler) +{ + uint32_t tmpreg = 0; + /* Check the parameters */ + assert_param(IS_WWDG_PRESCALER(WWDG_Prescaler)); + /* Clear WDGTB[1:0] bits */ + tmpreg = WWDG->CFR & CFR_WDGTB_MASK; + /* Set WDGTB[1:0] bits according to WWDG_Prescaler value */ + tmpreg |= WWDG_Prescaler; + /* Store the new value */ + WWDG->CFR = tmpreg; +} + +/** + * @brief Sets the WWDG window value. + * @param WindowValue: specifies the window value to be compared to the downcounter. + * This parameter value must be lower than 0x80. + * @retval None + */ +void WWDG_SetWindowValue(uint8_t WindowValue) +{ + __IO uint32_t tmpreg = 0; + + /* Check the parameters */ + assert_param(IS_WWDG_WINDOW_VALUE(WindowValue)); + /* Clear W[6:0] bits */ + + tmpreg = WWDG->CFR & CFR_W_MASK; + + /* Set W[6:0] bits according to WindowValue value */ + tmpreg |= WindowValue & (uint32_t) BIT_MASK; + + /* Store the new value */ + WWDG->CFR = tmpreg; +} + +/** + * @brief Enables the WWDG Early Wakeup interrupt(EWI). + * @note Once enabled this interrupt cannot be disabled except by a system reset. + * @param None + * @retval None + */ +void WWDG_EnableIT(void) +{ + *(__IO uint32_t *) CFR_EWI_BB = (uint32_t)ENABLE; +} + +/** + * @brief Sets the WWDG counter value. + * @param Counter: specifies the watchdog counter value. + * This parameter must be a number between 0x40 and 0x7F (to prevent generating + * an immediate reset) + * @retval None + */ +void WWDG_SetCounter(uint8_t Counter) +{ + /* Check the parameters */ + assert_param(IS_WWDG_COUNTER(Counter)); + /* Write to T[6:0] bits to configure the counter value, no need to do + a read-modify-write; writing a 0 to WDGA bit does nothing */ + WWDG->CR = Counter & BIT_MASK; +} +/** + * @} + */ + +/** @defgroup WWDG_Group2 WWDG activation functions + * @brief WWDG activation functions + * +@verbatim + =============================================================================== + WWDG activation function + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Enables WWDG and load the counter value. + * @param Counter: specifies the watchdog counter value. + * This parameter must be a number between 0x40 and 0x7F (to prevent generating + * an immediate reset) + * @retval None + */ +void WWDG_Enable(uint8_t Counter) +{ + /* Check the parameters */ + assert_param(IS_WWDG_COUNTER(Counter)); + WWDG->CR = WWDG_CR_WDGA | Counter; +} +/** + * @} + */ + +/** @defgroup WWDG_Group3 Interrupts and flags management functions + * @brief Interrupts and flags management functions + * +@verbatim + =============================================================================== + Interrupts and flags management functions + =============================================================================== + +@endverbatim + * @{ + */ + +/** + * @brief Checks whether the Early Wakeup interrupt flag is set or not. + * @param None + * @retval The new state of the Early Wakeup interrupt flag (SET or RESET) + */ +FlagStatus WWDG_GetFlagStatus(void) +{ + FlagStatus bitstatus = RESET; + + if ((WWDG->SR) != (uint32_t)RESET) + { + bitstatus = SET; + } + else + { + bitstatus = RESET; + } + return bitstatus; +} + +/** + * @brief Clears Early Wakeup interrupt flag. + * @param None + * @retval None + */ +void WWDG_ClearFlag(void) +{ + WWDG->SR = (uint32_t)RESET; +} + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cm3.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cm3.h new file mode 100644 index 00000000..efac390f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cm3.h @@ -0,0 +1,1550 @@ +/**************************************************************************//** + * @file core_cm3.h + * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File + * @version V3.00 + * @date 03. February 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM3_H_GENERIC +#define __CORE_CM3_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup Cortex_M3 + @{ + */ + +/* CMSIS CM3 definitions */ +#define __CM3_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __CM3_CMSIS_VERSION_SUB (0x00) /*!< [15:0] CMSIS HAL sub version */ +#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | \ + __CM3_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x03) /*!< Cortex-M Core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __TMS470__ ) + #define __ASM __asm /*!< asm keyword for TI CCS Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all +*/ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TMS470__ ) + #if defined __TI__VFP_SUPPORT____ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + /* add preprocessor checks */ +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ + +#endif /* __CORE_CM3_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM3_H_DEPENDANT +#define __CORE_CM3_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM3_REV + #define __CM3_REV 0x0200 + #warning "__CM3_REV not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group Cortex_M3 */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core Debug Register + - Core MPU Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ +} NVIC_Type; + +/* Software Triggered Interrupt Register Definitions */ +#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ +#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ + uint32_t RESERVED0[5]; + __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Vector Table Offset Register Definitions */ +#if (__CM3_REV < 0x0201) /* core r2p1 */ +#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ +#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ + +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#else +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#endif + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) + \brief Type definitions for the System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ +#if ((defined __CM3_REV) && (__CM3_REV >= 0x200)) + __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ +#else + uint32_t RESERVED1[1]; +#endif +} SCnSCB_Type; + +/* Interrupt Controller Type Register Definitions */ +#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ +#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ + +/* Auxiliary Control Register Definitions */ + +#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ +#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ + +#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ +#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ + +#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ +#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) + \brief Type definitions for the Instrumentation Trace Macrocell (ITM) + @{ + */ + +/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ +#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_TXENA_Pos 3 /*!< ITM TCR: TXENA Position */ +#define ITM_TCR_TXENA_Msk (1UL << ITM_TCR_TXENA_Pos) /*!< ITM TCR: TXENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/*@}*/ /* end of group CMSIS_ITM */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) + \brief Type definitions for the Data Watchpoint and Trace (DWT) + @{ + */ + +/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ + __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ + __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ + __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ + __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ + __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ + __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ + __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ + __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ + __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ + __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ + uint32_t RESERVED0[1]; + __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ + __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ + __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ + uint32_t RESERVED1[1]; + __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ + __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ + __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ + uint32_t RESERVED2[1]; + __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ + __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ + __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ +} DWT_Type; + +/* DWT Control Register Definitions */ +#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ +#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ + +#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ +#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ + +#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ +#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ + +#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ +#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ + +#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ +#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ + +#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ +#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ + +#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ +#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ + +#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ +#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ + +#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ +#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ + +#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ +#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ + +#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ +#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ + +#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ +#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ + +#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ +#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ + +#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ +#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ + +#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ +#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ + +#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ +#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ + +#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ +#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ + +#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ +#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ + +/* DWT CPI Count Register Definitions */ +#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ +#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ + +/* DWT Exception Overhead Count Register Definitions */ +#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ +#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ + +/* DWT Sleep Count Register Definitions */ +#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ +#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ + +/* DWT LSU Count Register Definitions */ +#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ +#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ + +/* DWT Folded-instruction Count Register Definitions */ +#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ +#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ + +/* DWT Comparator Mask Register Definitions */ +#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ +#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ + +/* DWT Comparator Function Register Definitions */ +#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ +#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ + +#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ +#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ + +#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ +#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ + +#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ +#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ + +#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ +#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ + +#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ +#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ + +#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ +#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ + +#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ +#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ + +#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ +#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ + +/*@}*/ /* end of group CMSIS_DWT */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_TPI Trace Port Interface (TPI) + \brief Type definitions for the Trace Port Interface (TPI) + @{ + */ + +/** \brief Structure type to access the Trace Port Interface Register (TPI). + */ +typedef struct +{ + __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ + __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ + uint32_t RESERVED0[2]; + __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ + uint32_t RESERVED1[55]; + __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ + uint32_t RESERVED2[131]; + __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ + __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ + __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ + uint32_t RESERVED3[759]; + __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ + __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ + __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ + uint32_t RESERVED4[1]; + __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ + __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ + __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ + uint32_t RESERVED5[39]; + __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ + __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ + uint32_t RESERVED7[8]; + __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ + __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ +} TPI_Type; + +/* TPI Asynchronous Clock Prescaler Register Definitions */ +#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ +#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ + +/* TPI Selected Pin Protocol Register Definitions */ +#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ +#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ + +/* TPI Formatter and Flush Status Register Definitions */ +#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ +#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ + +#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ +#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ + +#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ +#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ + +#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ +#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ + +/* TPI Formatter and Flush Control Register Definitions */ +#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ +#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ + +#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ +#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ + +/* TPI TRIGGER Register Definitions */ +#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ +#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ + +/* TPI Integration ETM Data Register Definitions (FIFO0) */ +#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ +#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ + +#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ +#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ + +#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ +#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ + +#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ +#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ + +#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ +#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ + +#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ +#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ + +#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ +#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ + +/* TPI ITATBCTR2 Register Definitions */ +#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ +#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ + +/* TPI Integration ITM Data Register Definitions (FIFO1) */ +#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ +#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ + +#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ +#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ + +#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ +#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ + +#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ +#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ + +#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ +#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ + +#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ +#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ + +#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ +#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ + +/* TPI ITATBCTR0 Register Definitions */ +#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ +#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ + +/* TPI Integration Mode Control Register Definitions */ +#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ +#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ + +/* TPI DEVID Register Definitions */ +#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ +#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ + +#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ +#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ + +#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ +#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ + +#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ +#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ + +#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ +#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ + +#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ +#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ + +/* TPI DEVTYPE Register Definitions */ +#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ +#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ + +#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ +#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ + +/*@}*/ /* end of group CMSIS_TPI */ + + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU Memory Protection Unit (MPU) + \brief Type definitions for the Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief Type definitions for the Core Debug Registers + @{ + */ + +/** \brief Structure type to access the Core Debug Register (CoreDebug). + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ + +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of Cortex-M3 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ +#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ +#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ +#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ +#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Debug Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/** \brief Set Priority Grouping + + The function sets the priority grouping field using the required unlock sequence. + The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. + Only values from 0..7 are used. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. + + \param [in] PriorityGroup Priority grouping field. + */ +__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + + +/** \brief Get Priority Grouping + + The function reads the priority grouping field from the NVIC Interrupt Controller. + + \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). + */ +__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Get Active Interrupt + + The function reads the active register in NVIC and returns the active bit. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not active. + \return 1 Interrupt status is active. + */ +__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief Encode Priority + + The function encodes the priority for an interrupt with the given priority group, + preemptive priority value, and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. + + \param [in] PriorityGroup Used priority group. + \param [in] PreemptPriority Preemptive priority value (starting from 0). + \param [in] SubPriority Subpriority value (starting from 0). + \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). + */ +__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** \brief Decode Priority + + The function decodes an interrupt priority value with a given priority group to + preemptive priority value and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). + \param [in] PriorityGroup Used priority group. + \param [out] pPreemptPriority Preemptive priority value (starting from 0). + \param [out] pSubPriority Subpriority value (starting from 0). + */ +__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + +/* ##################################### Debug In/Output function ########################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_core_DebugFunctions ITM Functions + \brief Functions that access the ITM debug interface. + @{ + */ + +extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ + + +/** \brief ITM Send Character + + The function transmits a character via the ITM channel 0, and + \li Just returns when no debugger is connected that has booked the output. + \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. + + \param [in] ch Character to transmit. + + \returns Character to transmit. + */ +__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** \brief ITM Receive Character + + The function inputs a character via the external variable \ref ITM_RxBuffer. + + \return Received character. + \return -1 No character pending. + */ +__STATIC_INLINE int32_t ITM_ReceiveChar (void) { + int32_t ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** \brief ITM Check Character + + The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. + + \return 0 No character available. + \return 1 Character available. + */ +__STATIC_INLINE int32_t ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@} end of CMSIS_core_DebugFunctions */ + +#endif /* __CORE_CM3_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cmFunc.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cmFunc.h new file mode 100644 index 00000000..adb07b5d --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cmFunc.h @@ -0,0 +1,616 @@ +/**************************************************************************//** + * @file core_cmFunc.h + * @brief CMSIS Cortex-M Core Function Access Header File + * @version V3.01 + * @date 06. March 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMFUNC_H +#define __CORE_CMFUNC_H + + +/* ########################### Core Function Access ########################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions + @{ + */ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + +/* intrinsic void __enable_irq(); */ +/* intrinsic void __disable_irq(); */ + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__STATIC_INLINE uint32_t __get_CONTROL(void) +{ + register uint32_t __regControl __ASM("control"); + return(__regControl); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__STATIC_INLINE void __set_CONTROL(uint32_t control) +{ + register uint32_t __regControl __ASM("control"); + __regControl = control; +} + + +/** \brief Get IPSR Register + + This function returns the content of the IPSR Register. + + \return IPSR Register value + */ +__STATIC_INLINE uint32_t __get_IPSR(void) +{ + register uint32_t __regIPSR __ASM("ipsr"); + return(__regIPSR); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__STATIC_INLINE uint32_t __get_APSR(void) +{ + register uint32_t __regAPSR __ASM("apsr"); + return(__regAPSR); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__STATIC_INLINE uint32_t __get_xPSR(void) +{ + register uint32_t __regXPSR __ASM("xpsr"); + return(__regXPSR); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__STATIC_INLINE uint32_t __get_PSP(void) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + return(__regProcessStackPointer); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + __regProcessStackPointer = topOfProcStack; +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__STATIC_INLINE uint32_t __get_MSP(void) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + return(__regMainStackPointer); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + __regMainStackPointer = topOfMainStack; +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__STATIC_INLINE uint32_t __get_PRIMASK(void) +{ + register uint32_t __regPriMask __ASM("primask"); + return(__regPriMask); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__STATIC_INLINE void __set_PRIMASK(uint32_t priMask) +{ + register uint32_t __regPriMask __ASM("primask"); + __regPriMask = (priMask); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __enable_fault_irq __enable_fiq + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __disable_fault_irq __disable_fiq + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__STATIC_INLINE uint32_t __get_BASEPRI(void) +{ + register uint32_t __regBasePri __ASM("basepri"); + return(__regBasePri); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__STATIC_INLINE void __set_BASEPRI(uint32_t basePri) +{ + register uint32_t __regBasePri __ASM("basepri"); + __regBasePri = (basePri & 0xff); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__STATIC_INLINE uint32_t __get_FAULTMASK(void) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + return(__regFaultMask); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + __regFaultMask = (faultMask & (uint32_t)1); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__STATIC_INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + return(__regfpscr); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__STATIC_INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + __regfpscr = (fpscr); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief Enable IRQ Interrupts + + This function enables IRQ interrupts by clearing the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) +{ + __ASM volatile ("cpsie i"); +} + + +/** \brief Disable IRQ Interrupts + + This function disables IRQ interrupts by setting the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) +{ + __ASM volatile ("cpsid i"); +} + + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, control" : "=r" (result) ); + return(result); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) +{ + __ASM volatile ("MSR control, %0" : : "r" (control) ); +} + + +/** \brief Get IPSR Register + + This function returns the content of the IPSR Register. + + \return IPSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, apsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) +{ + __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) ); +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +{ + __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) ); +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PRIMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, primask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) +{ + __ASM volatile ("MSR primask, %0" : : "r" (priMask) ); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) +{ + __ASM volatile ("cpsie f"); +} + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) +{ + __ASM volatile ("cpsid f"); +} + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); + return(result); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) +{ + __ASM volatile ("MSR basepri, %0" : : "r" (value) ); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) ); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + uint32_t result; + + __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); + return(result); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) ); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all instrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@} end of CMSIS_Core_RegAccFunctions */ + + +#endif /* __CORE_CMFUNC_H */ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cmInstr.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cmInstr.h new file mode 100644 index 00000000..624c175f --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/cmsis/core_cmInstr.h @@ -0,0 +1,618 @@ +/**************************************************************************//** + * @file core_cmInstr.h + * @brief CMSIS Cortex-M Core Instruction Access Header File + * @version V3.01 + * @date 06. March 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMINSTR_H +#define __CORE_CMINSTR_H + + +/* ########################## Core Instruction Access ######################### */ +/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface + Access to dedicated instructions + @{ +*/ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +#define __NOP __nop + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +#define __WFI __wfi + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +#define __WFE __wfe + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +#define __SEV __sev + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +#define __ISB() __isb(0xF) + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +#define __DSB() __dsb(0xF) + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +#define __DMB() __dmb(0xF) + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __REV __rev + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) +{ + rev16 r0, r0 + bx lr +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value) +{ + revsh r0, r0 + bx lr +} + + +/** \brief Rotate Right in unsigned value (32 bit) + + This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. + + \param [in] value Value to rotate + \param [in] value Number of Bits to rotate + \return Rotated value + */ +#define __ROR __ror + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __RBIT __rbit + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +#define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +#define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +#define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXB(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXH(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXW(value, ptr) __strex(value, ptr) + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +#define __CLREX __clrex + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT __ssat + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT __usat + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +#define __CLZ __clz + +#endif /* (__CORTEX_M >= 0x03) */ + + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __NOP(void) +{ + __ASM volatile ("nop"); +} + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFI(void) +{ + __ASM volatile ("wfi"); +} + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFE(void) +{ + __ASM volatile ("wfe"); +} + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __SEV(void) +{ + __ASM volatile ("sev"); +} + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __ISB(void) +{ + __ASM volatile ("isb"); +} + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __DSB(void) +{ + __ASM volatile ("dsb"); +} + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __DMB(void) +{ + __ASM volatile ("dmb"); +} + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV16(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value) +{ + uint32_t result; + + __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Rotate Right in unsigned value (32 bit) + + This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. + + \param [in] value Value to rotate + \param [in] value Number of Bits to rotate + \return Rotated value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) +{ + + __ASM volatile ("ror %0, %0, %1" : "+r" (op1) : "r" (op2) ); + return(op1); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __RBIT(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) +{ + uint8_t result; + + __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) +{ + uint16_t result; + + __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("strex %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __CLREX(void) +{ + __ASM volatile ("clrex"); +} + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __CLZ(uint32_t value) +{ + uint8_t result; + + __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all intrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ + +#endif /* __CORE_CMINSTR_H */ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/stm32f2xx.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/stm32f2xx.h new file mode 100644 index 00000000..8e73d85a --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/stm32f2xx.h @@ -0,0 +1,7721 @@ +/** + ****************************************************************************** + * @file stm32f2xx.h + * @author MCD Application Team + * @version V1.0.0 - edited by Keil + * @date 18-April-2011 + * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Header File. + * This file contains all the peripheral register's definitions, bits + * definitions and memory mapping for STM32F2xx devices. + * + * The file is the unique include file that the application programmer + * is using in the C source code, usually in main.c. This file contains: + * - Configuration section that allows to select: + * - The device used in the target application + * - To use or not the peripheral’s drivers in application code(i.e. + * code will be based on direct access to peripheral’s registers + * rather than drivers API), this option is controlled by + * "#define USE_STDPERIPH_DRIVER" + * - To change few application-specific parameters such as the HSE + * crystal frequency + * - Data structures and the address mapping for all peripherals + * - Peripheral's registers declarations and bits definition + * - Macros to access peripheral’s registers hardware + * + ****************************************************************************** + * @attention + * + * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS + * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE + * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY + * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING + * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE + * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. + * + *

© COPYRIGHT 2011 STMicroelectronics

+ ****************************************************************************** + */ + +/** @addtogroup CMSIS + * @{ + */ + +/** @addtogroup stm32f2xx + * @{ + */ + +#ifndef __STM32F2xx_H +#define __STM32F2xx_H + +#ifdef __cplusplus + extern "C" { +#endif /* __cplusplus */ + +/** @addtogroup Library_configuration_section + * @{ + */ + +/* Uncomment the line below according to the target STM32 device used in your + application + */ + +#if !defined (STM32F2XX) + #define STM32F2XX +#endif + +/* Tip: To avoid modifying this file each time you need to switch between these + devices, you can define the device in your toolchain compiler preprocessor. + */ + +#if !defined (STM32F2XX) + #error "Please select first the target STM32F2XX device used in your application (in stm32f2xx.h file)" +#endif + +#if !defined (USE_STDPERIPH_DRIVER) +/** + * @brief Comment the line below if you will not use the peripherals drivers. + In this case, these drivers will not be included and the application code will + be based on direct access to peripherals registers + */ + /*#define USE_STDPERIPH_DRIVER*/ +#endif /* USE_STDPERIPH_DRIVER */ + +/** + * @brief In the following line adjust the value of External High Speed oscillator (HSE) + used in your application + + Tip: To avoid modifying this file each time you need to use different HSE, you + can define the HSE value in your toolchain compiler preprocessor. + */ +#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */ + +/** + * @brief In the following line adjust the External High Speed oscillator (HSE) Startup + Timeout value + */ +#define HSE_STARTUP_TIMEOUT ((uint16_t)0x0600) /*!< Time out for HSE start up */ +#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ + +/** + * @brief STM32F2Xxx Standard Peripherals Library version number V1.0.0 + */ +#define __STM32F2XX_STDPERIPH_VERSION_MAIN (0x01) /*!< [31:24] main version */ +#define __STM32F2XX_STDPERIPH_VERSION_SUB1 (0x00) /*!< [23:16] sub1 version */ +#define __STM32F2XX_STDPERIPH_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */ +#define __STM32F2XX_STDPERIPH_VERSION_RC (0x00) /*!< [7:0] release candidate */ +#define __STM32F2XX_STDPERIPH_VERSION ((__STM32F2XX_STDPERIPH_VERSION_MAIN << 24)\ + |(__STM32F2XX_STDPERIPH_VERSION_SUB1 << 16)\ + |(__STM32F2XX_STDPERIPH_VERSION_SUB2 << 8)\ + |(__STM32F2XX_STDPERIPH_VERSION_RC)) + +/** + * @} + */ + +/** @addtogroup Configuration_section_for_CMSIS + * @{ + */ + +/** + * @brief Configuration of the Cortex-M3 Processor and Core Peripherals + */ +#define __MPU_PRESENT 1 /*!< STM32F2XX provide an MPU */ +#define __NVIC_PRIO_BITS 4 /*!< STM32F2XX uses 4 Bits for the Priority Levels */ +#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ + +/** + * @brief STM32F2XX Interrupt Number Definition, according to the selected device + * in @ref Library_configuration_section + */ +typedef enum IRQn +{ +/****** Cortex-M3 Processor Exceptions Numbers ****************************************************************/ + NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ + MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ + BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ + UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ + SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ + DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ + PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ + SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ +/****** STM32 specific Interrupt Numbers **********************************************************************/ + WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ + PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */ + TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */ + RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */ + FLASH_IRQn = 4, /*!< FLASH global Interrupt */ + RCC_IRQn = 5, /*!< RCC global Interrupt */ + EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ + EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ + EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ + EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ + EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ + DMA1_Stream0_IRQn = 11, /*!< DMA1 Stream 0 global Interrupt */ + DMA1_Stream1_IRQn = 12, /*!< DMA1 Stream 1 global Interrupt */ + DMA1_Stream2_IRQn = 13, /*!< DMA1 Stream 2 global Interrupt */ + DMA1_Stream3_IRQn = 14, /*!< DMA1 Stream 3 global Interrupt */ + DMA1_Stream4_IRQn = 15, /*!< DMA1 Stream 4 global Interrupt */ + DMA1_Stream5_IRQn = 16, /*!< DMA1 Stream 5 global Interrupt */ + DMA1_Stream6_IRQn = 17, /*!< DMA1 Stream 6 global Interrupt */ + ADC_IRQn = 18, /*!< ADC1, ADC2 and ADC3 global Interrupts */ + CAN1_TX_IRQn = 19, /*!< CAN1 TX Interrupt */ + CAN1_RX0_IRQn = 20, /*!< CAN1 RX0 Interrupt */ + CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */ + CAN1_SCE_IRQn = 22, /*!< CAN1 SCE Interrupt */ + EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */ + TIM1_BRK_TIM9_IRQn = 24, /*!< TIM1 Break interrupt and TIM9 global interrupt */ + TIM1_UP_TIM10_IRQn = 25, /*!< TIM1 Update Interrupt and TIM10 global interrupt */ + TIM1_TRG_COM_TIM11_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt and TIM11 global interrupt */ + TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */ + TIM2_IRQn = 28, /*!< TIM2 global Interrupt */ + TIM3_IRQn = 29, /*!< TIM3 global Interrupt */ + TIM4_IRQn = 30, /*!< TIM4 global Interrupt */ + I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */ + I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */ + I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */ + I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */ + SPI1_IRQn = 35, /*!< SPI1 global Interrupt */ + SPI2_IRQn = 36, /*!< SPI2 global Interrupt */ + USART1_IRQn = 37, /*!< USART1 global Interrupt */ + USART2_IRQn = 38, /*!< USART2 global Interrupt */ + USART3_IRQn = 39, /*!< USART3 global Interrupt */ + EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */ + RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line Interrupt */ + OTG_FS_WKUP_IRQn = 42, /*!< USB OTG FS Wakeup through EXTI line interrupt */ + TIM8_BRK_TIM12_IRQn = 43, /*!< TIM8 Break Interrupt and TIM12 global interrupt */ + TIM8_UP_TIM13_IRQn = 44, /*!< TIM8 Update Interrupt and TIM13 global interrupt */ + TIM8_TRG_COM_TIM14_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt and TIM14 global interrupt */ + TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare Interrupt */ + DMA1_Stream7_IRQn = 47, /*!< DMA1 Stream7 Interrupt */ + FSMC_IRQn = 48, /*!< FSMC global Interrupt */ + SDIO_IRQn = 49, /*!< SDIO global Interrupt */ + TIM5_IRQn = 50, /*!< TIM5 global Interrupt */ + SPI3_IRQn = 51, /*!< SPI3 global Interrupt */ + UART4_IRQn = 52, /*!< UART4 global Interrupt */ + UART5_IRQn = 53, /*!< UART5 global Interrupt */ + TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC1&2 underrun error interrupts */ + TIM7_IRQn = 55, /*!< TIM7 global interrupt */ + DMA2_Stream0_IRQn = 56, /*!< DMA2 Stream 0 global Interrupt */ + DMA2_Stream1_IRQn = 57, /*!< DMA2 Stream 1 global Interrupt */ + DMA2_Stream2_IRQn = 58, /*!< DMA2 Stream 2 global Interrupt */ + DMA2_Stream3_IRQn = 59, /*!< DMA2 Stream 3 global Interrupt */ + DMA2_Stream4_IRQn = 60, /*!< DMA2 Stream 4 global Interrupt */ + ETH_IRQn = 61, /*!< Ethernet global Interrupt */ + ETH_WKUP_IRQn = 62, /*!< Ethernet Wakeup through EXTI line Interrupt */ + CAN2_TX_IRQn = 63, /*!< CAN2 TX Interrupt */ + CAN2_RX0_IRQn = 64, /*!< CAN2 RX0 Interrupt */ + CAN2_RX1_IRQn = 65, /*!< CAN2 RX1 Interrupt */ + CAN2_SCE_IRQn = 66, /*!< CAN2 SCE Interrupt */ + OTG_FS_IRQn = 67, /*!< USB OTG FS global Interrupt */ + DMA2_Stream5_IRQn = 68, /*!< DMA2 Stream 5 global interrupt */ + DMA2_Stream6_IRQn = 69, /*!< DMA2 Stream 6 global interrupt */ + DMA2_Stream7_IRQn = 70, /*!< DMA2 Stream 7 global interrupt */ + USART6_IRQn = 71, /*!< USART6 global interrupt */ + I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */ + I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */ + OTG_HS_EP1_OUT_IRQn = 74, /*!< USB OTG HS End Point 1 Out global interrupt */ + OTG_HS_EP1_IN_IRQn = 75, /*!< USB OTG HS End Point 1 In global interrupt */ + OTG_HS_WKUP_IRQn = 76, /*!< USB OTG HS Wakeup through EXTI interrupt */ + OTG_HS_IRQn = 77, /*!< USB OTG HS global interrupt */ + DCMI_IRQn = 78, /*!< DCMI global interrupt */ + CRYP_IRQn = 79, /*!< CRYP crypto global interrupt */ + HASH_RNG_IRQn = 80 /*!< Hash and Rng global interrupt */ +} IRQn_Type; + +/** + * @} + */ + +#include "core_cm3.h" +#include "system_stm32f2xx.h" +#include + +/** @addtogroup Exported_types + * @{ + */ +/*!< STM32F10x Standard Peripheral Library old types (maintained for legacy purpose) */ +typedef int32_t s32; +typedef int16_t s16; +typedef int8_t s8; + +typedef const int32_t sc32; /*!< Read Only */ +typedef const int16_t sc16; /*!< Read Only */ +typedef const int8_t sc8; /*!< Read Only */ + +typedef __IO int32_t vs32; +typedef __IO int16_t vs16; +typedef __IO int8_t vs8; + +typedef __I int32_t vsc32; /*!< Read Only */ +typedef __I int16_t vsc16; /*!< Read Only */ +typedef __I int8_t vsc8; /*!< Read Only */ + +typedef uint32_t u32; +typedef uint16_t u16; +typedef uint8_t u8; + +typedef const uint32_t uc32; /*!< Read Only */ +typedef const uint16_t uc16; /*!< Read Only */ +typedef const uint8_t uc8; /*!< Read Only */ + +typedef __IO uint32_t vu32; +typedef __IO uint16_t vu16; +typedef __IO uint8_t vu8; + +typedef __I uint32_t vuc32; /*!< Read Only */ +typedef __I uint16_t vuc16; /*!< Read Only */ +typedef __I uint8_t vuc8; /*!< Read Only */ + +typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; + +typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; +#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE)) + +typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus; + +/** + * @} + */ + +/** @addtogroup Peripheral_registers_structures + * @{ + */ + +/** + * @brief Analog to Digital Converter + */ + +typedef struct +{ + __IO uint32_t SR; /*!< ADC status register, Address offset: 0x00 */ + __IO uint32_t CR1; /*!< ADC control register 1, Address offset: 0x04 */ + __IO uint32_t CR2; /*!< ADC control register 2, Address offset: 0x08 */ + __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x0C */ + __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x10 */ + __IO uint32_t JOFR1; /*!< ADC injected channel data offset register 1, Address offset: 0x14 */ + __IO uint32_t JOFR2; /*!< ADC injected channel data offset register 2, Address offset: 0x18 */ + __IO uint32_t JOFR3; /*!< ADC injected channel data offset register 3, Address offset: 0x1C */ + __IO uint32_t JOFR4; /*!< ADC injected channel data offset register 4, Address offset: 0x20 */ + __IO uint32_t HTR; /*!< ADC watchdog higher threshold register, Address offset: 0x24 */ + __IO uint32_t LTR; /*!< ADC watchdog lower threshold register, Address offset: 0x28 */ + __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x2C */ + __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x30 */ + __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x34 */ + __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x38*/ + __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x3C */ + __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x40 */ + __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x44 */ + __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x48 */ + __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x4C */ +} ADC_TypeDef; + +typedef struct +{ + __IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1 base address + 0x300 */ + __IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1 base address + 0x304 */ + __IO uint32_t CDR; /*!< ADC common regular data register for dual + AND triple modes, Address offset: ADC1 base address + 0x308 */ +} ADC_Common_TypeDef; + + +/** + * @brief Controller Area Network TxMailBox + */ + +typedef struct +{ + __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */ + __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */ + __IO uint32_t TDLR; /*!< CAN mailbox data low register */ + __IO uint32_t TDHR; /*!< CAN mailbox data high register */ +} CAN_TxMailBox_TypeDef; + +/** + * @brief Controller Area Network FIFOMailBox + */ + +typedef struct +{ + __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */ + __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */ + __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */ + __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */ +} CAN_FIFOMailBox_TypeDef; + +/** + * @brief Controller Area Network FilterRegister + */ + +typedef struct +{ + __IO uint32_t FR1; /*!< CAN Filter bank register 1 */ + __IO uint32_t FR2; /*!< CAN Filter bank register 1 */ +} CAN_FilterRegister_TypeDef; + +/** + * @brief Controller Area Network + */ + +typedef struct +{ + __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */ + __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */ + __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */ + __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */ + __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */ + __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */ + __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */ + __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */ + uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */ + CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */ + CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */ + uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */ + __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */ + __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */ + uint32_t RESERVED2; /*!< Reserved, 0x208 */ + __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */ + uint32_t RESERVED3; /*!< Reserved, 0x210 */ + __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */ + uint32_t RESERVED4; /*!< Reserved, 0x218 */ + __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */ + uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */ + CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */ +} CAN_TypeDef; + +/** + * @brief CRC calculation unit + */ + +typedef struct +{ + __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */ + __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */ + uint8_t RESERVED0; /*!< Reserved, 0x05 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */ +} CRC_TypeDef; + +/** + * @brief Digital to Analog Converter + */ + +typedef struct +{ + __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */ + __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */ + __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */ + __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */ + __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */ + __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */ + __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */ + __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */ + __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */ + __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */ + __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */ + __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */ + __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */ + __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */ +} DAC_TypeDef; + +/** + * @brief Debug MCU + */ + +typedef struct +{ + __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */ + __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */ + __IO uint32_t APB1FZ; /*!< Debug MCU APB1 freeze register, Address offset: 0x08 */ + __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x0C */ +}DBGMCU_TypeDef; + +/** + * @brief DCMI + */ + +typedef struct +{ + __IO uint32_t CR; /*!< DCMI control register 1, Address offset: 0x00 */ + __IO uint32_t SR; /*!< DCMI status register, Address offset: 0x04 */ + __IO uint32_t RISR; /*!< DCMI raw interrupt status register, Address offset: 0x08 */ + __IO uint32_t IER; /*!< DCMI interrupt enable register, Address offset: 0x0C */ + __IO uint32_t MISR; /*!< DCMI masked interrupt status register, Address offset: 0x10 */ + __IO uint32_t ICR; /*!< DCMI interrupt clear register, Address offset: 0x14 */ + __IO uint32_t ESCR; /*!< DCMI embedded synchronization code register, Address offset: 0x18 */ + __IO uint32_t ESUR; /*!< DCMI embedded synchronization unmask register, Address offset: 0x1C */ + __IO uint32_t CWSTRTR; /*!< DCMI crop window start, Address offset: 0x20 */ + __IO uint32_t CWSIZER; /*!< DCMI crop window size, Address offset: 0x24 */ + __IO uint32_t DR; /*!< DCMI data register, Address offset: 0x28 */ +} DCMI_TypeDef; + +/** + * @brief DMA Controller + */ + +typedef struct +{ + __IO uint32_t CR; /*!< DMA stream x configuration register */ + __IO uint32_t NDTR; /*!< DMA stream x number of data register */ + __IO uint32_t PAR; /*!< DMA stream x peripheral address register */ + __IO uint32_t M0AR; /*!< DMA stream x memory 0 address register */ + __IO uint32_t M1AR; /*!< DMA stream x memory 1 address register */ + __IO uint32_t FCR; /*!< DMA stream x FIFO control register */ +} DMA_Stream_TypeDef; + +typedef struct +{ + __IO uint32_t LISR; /*!< DMA low interrupt status register, Address offset: 0x00 */ + __IO uint32_t HISR; /*!< DMA high interrupt status register, Address offset: 0x04 */ + __IO uint32_t LIFCR; /*!< DMA low interrupt flag clear register, Address offset: 0x08 */ + __IO uint32_t HIFCR; /*!< DMA high interrupt flag clear register, Address offset: 0x0C */ +} DMA_TypeDef; + +/** + * @brief Ethernet MAC + */ + +typedef struct +{ + __IO uint32_t MACCR; + __IO uint32_t MACFFR; + __IO uint32_t MACHTHR; + __IO uint32_t MACHTLR; + __IO uint32_t MACMIIAR; + __IO uint32_t MACMIIDR; + __IO uint32_t MACFCR; + __IO uint32_t MACVLANTR; /* 8 */ + uint32_t RESERVED0[2]; + __IO uint32_t MACRWUFFR; /* 11 */ + __IO uint32_t MACPMTCSR; + uint32_t RESERVED1[2]; + __IO uint32_t MACSR; /* 15 */ + __IO uint32_t MACIMR; + __IO uint32_t MACA0HR; + __IO uint32_t MACA0LR; + __IO uint32_t MACA1HR; + __IO uint32_t MACA1LR; + __IO uint32_t MACA2HR; + __IO uint32_t MACA2LR; + __IO uint32_t MACA3HR; + __IO uint32_t MACA3LR; /* 24 */ + uint32_t RESERVED2[40]; + __IO uint32_t MMCCR; /* 65 */ + __IO uint32_t MMCRIR; + __IO uint32_t MMCTIR; + __IO uint32_t MMCRIMR; + __IO uint32_t MMCTIMR; /* 69 */ + uint32_t RESERVED3[14]; + __IO uint32_t MMCTGFSCCR; /* 84 */ + __IO uint32_t MMCTGFMSCCR; + uint32_t RESERVED4[5]; + __IO uint32_t MMCTGFCR; + uint32_t RESERVED5[10]; + __IO uint32_t MMCRFCECR; + __IO uint32_t MMCRFAECR; + uint32_t RESERVED6[10]; + __IO uint32_t MMCRGUFCR; + uint32_t RESERVED7[334]; + __IO uint32_t PTPTSCR; + __IO uint32_t PTPSSIR; + __IO uint32_t PTPTSHR; + __IO uint32_t PTPTSLR; + __IO uint32_t PTPTSHUR; + __IO uint32_t PTPTSLUR; + __IO uint32_t PTPTSAR; + __IO uint32_t PTPTTHR; + __IO uint32_t PTPTTLR; + __IO uint32_t RESERVED8; + __IO uint32_t PTPTSSR; /* added for STM32F2xx */ + uint32_t RESERVED9[565]; + __IO uint32_t DMABMR; + __IO uint32_t DMATPDR; + __IO uint32_t DMARPDR; + __IO uint32_t DMARDLAR; + __IO uint32_t DMATDLAR; + __IO uint32_t DMASR; + __IO uint32_t DMAOMR; + __IO uint32_t DMAIER; + __IO uint32_t DMAMFBOCR; + __IO uint32_t DMARSWTR; /* added for STM32F2xx */ + uint32_t RESERVED10[8]; + __IO uint32_t DMACHTDR; + __IO uint32_t DMACHRDR; + __IO uint32_t DMACHTBAR; + __IO uint32_t DMACHRBAR; +} ETH_TypeDef; + +/** + * @brief External Interrupt/Event Controller + */ + +typedef struct +{ + __IO uint32_t IMR; /*!< EXTI Interrupt mask register, Address offset: 0x00 */ + __IO uint32_t EMR; /*!< EXTI Event mask register, Address offset: 0x04 */ + __IO uint32_t RTSR; /*!< EXTI Rising trigger selection register, Address offset: 0x08 */ + __IO uint32_t FTSR; /*!< EXTI Falling trigger selection register, Address offset: 0x0C */ + __IO uint32_t SWIER; /*!< EXTI Software interrupt event register, Address offset: 0x10 */ + __IO uint32_t PR; /*!< EXTI Pending register, Address offset: 0x14 */ +} EXTI_TypeDef; + +/** + * @brief FLASH Registers + */ + +typedef struct +{ + __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */ + __IO uint32_t KEYR; /*!< FLASH key register, Address offset: 0x04 */ + __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x08 */ + __IO uint32_t SR; /*!< FLASH status register, Address offset: 0x0C */ + __IO uint32_t CR; /*!< FLASH control register, Address offset: 0x10 */ + __IO uint32_t OPTCR; /*!< FLASH option control register, Address offset: 0x14 */ +} FLASH_TypeDef; + +/** + * @brief Flexible Static Memory Controller + */ + +typedef struct +{ + __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */ +} FSMC_Bank1_TypeDef; + +/** + * @brief Flexible Static Memory Controller Bank1E + */ + +typedef struct +{ + __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */ +} FSMC_Bank1E_TypeDef; + +/** + * @brief Flexible Static Memory Controller Bank2 + */ + +typedef struct +{ + __IO uint32_t PCR2; /*!< NAND Flash control register 2, Address offset: 0x60 */ + __IO uint32_t SR2; /*!< NAND Flash FIFO status and interrupt register 2, Address offset: 0x64 */ + __IO uint32_t PMEM2; /*!< NAND Flash Common memory space timing register 2, Address offset: 0x68 */ + __IO uint32_t PATT2; /*!< NAND Flash Attribute memory space timing register 2, Address offset: 0x6C */ + uint32_t RESERVED0; /*!< Reserved, 0x70 */ + __IO uint32_t ECCR2; /*!< NAND Flash ECC result registers 2, Address offset: 0x74 */ +} FSMC_Bank2_TypeDef; + +/** + * @brief Flexible Static Memory Controller Bank3 + */ + +typedef struct +{ + __IO uint32_t PCR3; /*!< NAND Flash control register 3, Address offset: 0x80 */ + __IO uint32_t SR3; /*!< NAND Flash FIFO status and interrupt register 3, Address offset: 0x84 */ + __IO uint32_t PMEM3; /*!< NAND Flash Common memory space timing register 3, Address offset: 0x88 */ + __IO uint32_t PATT3; /*!< NAND Flash Attribute memory space timing register 3, Address offset: 0x8C */ + uint32_t RESERVED0; /*!< Reserved, 0x90 */ + __IO uint32_t ECCR3; /*!< NAND Flash ECC result registers 3, Address offset: 0x94 */ +} FSMC_Bank3_TypeDef; + +/** + * @brief Flexible Static Memory Controller Bank4 + */ + +typedef struct +{ + __IO uint32_t PCR4; /*!< PC Card control register 4, Address offset: 0xA0 */ + __IO uint32_t SR4; /*!< PC Card FIFO status and interrupt register 4, Address offset: 0xA4 */ + __IO uint32_t PMEM4; /*!< PC Card Common memory space timing register 4, Address offset: 0xA8 */ + __IO uint32_t PATT4; /*!< PC Card Attribute memory space timing register 4, Address offset: 0xAC */ + __IO uint32_t PIO4; /*!< PC Card I/O space timing register 4, Address offset: 0xB0 */ +} FSMC_Bank4_TypeDef; + +/** + * @brief General Purpose I/O + */ + +typedef struct +{ + __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */ + __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */ + __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */ + __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */ + __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */ + __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */ + __IO uint16_t BSRRL; /*!< GPIO port bit set/reset low register, Address offset: 0x18 */ + __IO uint16_t BSRRH; /*!< GPIO port bit set/reset high register, Address offset: 0x1A */ + __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */ + __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x24-0x28 */ +} GPIO_TypeDef; + +/** + * @brief System configuration controller + */ + +typedef struct +{ + __IO uint32_t MEMRMP; /*!< SYSCFG memory remap register, Address offset: 0x00 */ + __IO uint32_t PMC; /*!< SYSCFG peripheral mode configuration register, Address offset: 0x04 */ + __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */ + uint32_t RESERVED[2]; /*!< Reserved, 0x18-0x1C */ + __IO uint32_t CMPCR; /*!< SYSCFG Compensation cell control register, Address offset: 0x20 */ +} SYSCFG_TypeDef; + +/** + * @brief Inter-integrated Circuit Interface + */ + +typedef struct +{ + __IO uint16_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */ + uint16_t RESERVED0; /*!< Reserved, 0x02 */ + __IO uint16_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint16_t OAR1; /*!< I2C Own address register 1, Address offset: 0x08 */ + uint16_t RESERVED2; /*!< Reserved, 0x0A */ + __IO uint16_t OAR2; /*!< I2C Own address register 2, Address offset: 0x0C */ + uint16_t RESERVED3; /*!< Reserved, 0x0E */ + __IO uint16_t DR; /*!< I2C Data register, Address offset: 0x10 */ + uint16_t RESERVED4; /*!< Reserved, 0x12 */ + __IO uint16_t SR1; /*!< I2C Status register 1, Address offset: 0x14 */ + uint16_t RESERVED5; /*!< Reserved, 0x16 */ + __IO uint16_t SR2; /*!< I2C Status register 2, Address offset: 0x18 */ + uint16_t RESERVED6; /*!< Reserved, 0x1A */ + __IO uint16_t CCR; /*!< I2C Clock control register, Address offset: 0x1C */ + uint16_t RESERVED7; /*!< Reserved, 0x1E */ + __IO uint16_t TRISE; /*!< I2C TRISE register, Address offset: 0x20 */ + uint16_t RESERVED8; /*!< Reserved, 0x22 */ +} I2C_TypeDef; + +/** + * @brief Independent WATCHDOG + */ + +typedef struct +{ + __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */ + __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */ + __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */ + __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */ +} IWDG_TypeDef; + +/** + * @brief Power Control + */ + +typedef struct +{ + __IO uint32_t CR; /*!< PWR power control register, Address offset: 0x00 */ + __IO uint32_t CSR; /*!< PWR power control/status register, Address offset: 0x04 */ +} PWR_TypeDef; + +/** + * @brief Reset and Clock Control + */ + +typedef struct +{ + __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */ + __IO uint32_t PLLCFGR; /*!< RCC PLL configuration register, Address offset: 0x04 */ + __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x08 */ + __IO uint32_t CIR; /*!< RCC clock interrupt register, Address offset: 0x0C */ + __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x10 */ + __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x14 */ + __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x18 */ + uint32_t RESERVED0; /*!< Reserved, 0x1C */ + __IO uint32_t APB1RSTR; /*!< RCC APB1 peripheral reset register, Address offset: 0x20 */ + __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x24 */ + uint32_t RESERVED1[2]; /*!< Reserved, 0x28-0x2C */ + __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clock register, Address offset: 0x30 */ + __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clock register, Address offset: 0x34 */ + __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clock register, Address offset: 0x38 */ + uint32_t RESERVED2; /*!< Reserved, 0x3C */ + __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x40 */ + __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock enable register, Address offset: 0x44 */ + uint32_t RESERVED3[2]; /*!< Reserved, 0x48-0x4C */ + __IO uint32_t AHB1LPENR; /*!< RCC AHB1 peripheral clock enable in low power mode register, Address offset: 0x50 */ + __IO uint32_t AHB2LPENR; /*!< RCC AHB2 peripheral clock enable in low power mode register, Address offset: 0x54 */ + __IO uint32_t AHB3LPENR; /*!< RCC AHB3 peripheral clock enable in low power mode register, Address offset: 0x58 */ + uint32_t RESERVED4; /*!< Reserved, 0x5C */ + __IO uint32_t APB1LPENR; /*!< RCC APB1 peripheral clock enable in low power mode register, Address offset: 0x60 */ + __IO uint32_t APB2LPENR; /*!< RCC APB2 peripheral clock enable in low power mode register, Address offset: 0x64 */ + uint32_t RESERVED5[2]; /*!< Reserved, 0x68-0x6C */ + __IO uint32_t BDCR; /*!< RCC Backup domain control register, Address offset: 0x70 */ + __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x74 */ + uint32_t RESERVED6[2]; /*!< Reserved, 0x78-0x7C */ + __IO uint32_t SSCGR; /*!< RCC spread spectrum clock generation register, Address offset: 0x80 */ + __IO uint32_t PLLI2SCFGR; /*!< RCC PLLI2S configuration register, Address offset: 0x84 */ +} RCC_TypeDef; + +/** + * @brief Real-Time Clock + */ + +typedef struct +{ + __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */ + __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */ + __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */ + __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */ + __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */ + __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */ + __IO uint32_t CALIBR; /*!< RTC calibration register, Address offset: 0x18 */ + __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */ + __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */ + __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */ + uint32_t RESERVED1; /*!< Reserved, 0x28 */ + uint32_t RESERVED2; /*!< Reserved, 0x2C */ + __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */ + __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */ + uint32_t RESERVED3; /*!< Reserved, 0x38 */ + uint32_t RESERVED4; /*!< Reserved, 0x3C */ + __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */ + uint32_t RESERVED5; /*!< Reserved, 0x44 */ + uint32_t RESERVED6; /*!< Reserved, 0x48 */ + uint32_t RESERVED7; /*!< Reserved, 0x4C */ + __IO uint32_t BKP0R; /*!< RTC backup register 1, Address offset: 0x50 */ + __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */ + __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */ + __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */ + __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */ + __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */ + __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */ + __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */ + __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */ + __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */ + __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */ + __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */ + __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */ + __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */ + __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */ + __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */ + __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */ + __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */ + __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */ + __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */ +} RTC_TypeDef; + +/** + * @brief SD host Interface + */ + +typedef struct +{ + __IO uint32_t POWER; /*!< SDIO power control register, Address offset: 0x00 */ + __IO uint32_t CLKCR; /*!< SDI clock control register, Address offset: 0x04 */ + __IO uint32_t ARG; /*!< SDIO argument register, Address offset: 0x08 */ + __IO uint32_t CMD; /*!< SDIO command register, Address offset: 0x0C */ + __I uint32_t RESPCMD; /*!< SDIO command response register, Address offset: 0x10 */ + __I uint32_t RESP1; /*!< SDIO response 1 register, Address offset: 0x14 */ + __I uint32_t RESP2; /*!< SDIO response 2 register, Address offset: 0x18 */ + __I uint32_t RESP3; /*!< SDIO response 3 register, Address offset: 0x1C */ + __I uint32_t RESP4; /*!< SDIO response 4 register, Address offset: 0x20 */ + __IO uint32_t DTIMER; /*!< SDIO data timer register, Address offset: 0x24 */ + __IO uint32_t DLEN; /*!< SDIO data length register, Address offset: 0x28 */ + __IO uint32_t DCTRL; /*!< SDIO data control register, Address offset: 0x2C */ + __I uint32_t DCOUNT; /*!< SDIO data counter register, Address offset: 0x30 */ + __I uint32_t STA; /*!< SDIO status register, Address offset: 0x34 */ + __IO uint32_t ICR; /*!< SDIO interrupt clear register, Address offset: 0x38 */ + __IO uint32_t MASK; /*!< SDIO mask register, Address offset: 0x3C */ + uint32_t RESERVED0[2]; /*!< Reserved, 0x40-0x44 */ + __I uint32_t FIFOCNT; /*!< SDIO FIFO counter register, Address offset: 0x48 */ + uint32_t RESERVED1[13]; /*!< Reserved, 0x4C-0x7C */ + __IO uint32_t FIFO; /*!< SDIO data FIFO register, Address offset: 0x80 */ +} SDIO_TypeDef; + +/** + * @brief Serial Peripheral Interface + */ + +typedef struct +{ + __IO uint16_t CR1; /*!< SPI control register 1 (not used in I2S mode), Address offset: 0x00 */ + uint16_t RESERVED0; /*!< Reserved, 0x02 */ + __IO uint16_t CR2; /*!< SPI control register 2, Address offset: 0x04 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint16_t SR; /*!< SPI status register, Address offset: 0x08 */ + uint16_t RESERVED2; /*!< Reserved, 0x0A */ + __IO uint16_t DR; /*!< SPI data register, Address offset: 0x0C */ + uint16_t RESERVED3; /*!< Reserved, 0x0E */ + __IO uint16_t CRCPR; /*!< SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10 */ + uint16_t RESERVED4; /*!< Reserved, 0x12 */ + __IO uint16_t RXCRCR; /*!< SPI RX CRC register (not used in I2S mode), Address offset: 0x14 */ + uint16_t RESERVED5; /*!< Reserved, 0x16 */ + __IO uint16_t TXCRCR; /*!< SPI TX CRC register (not used in I2S mode), Address offset: 0x18 */ + uint16_t RESERVED6; /*!< Reserved, 0x1A */ + __IO uint16_t I2SCFGR; /*!< SPI_I2S configuration register, Address offset: 0x1C */ + uint16_t RESERVED7; /*!< Reserved, 0x1E */ + __IO uint16_t I2SPR; /*!< SPI_I2S prescaler register, Address offset: 0x20 */ + uint16_t RESERVED8; /*!< Reserved, 0x22 */ +} SPI_TypeDef; + +/** + * @brief TIM + */ + +typedef struct +{ + __IO uint16_t CR1; /*!< TIM control register 1, Address offset: 0x00 */ + uint16_t RESERVED0; /*!< Reserved, 0x02 */ + __IO uint16_t CR2; /*!< TIM control register 2, Address offset: 0x04 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint16_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */ + uint16_t RESERVED2; /*!< Reserved, 0x0A */ + __IO uint16_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */ + uint16_t RESERVED3; /*!< Reserved, 0x0E */ + __IO uint16_t SR; /*!< TIM status register, Address offset: 0x10 */ + uint16_t RESERVED4; /*!< Reserved, 0x12 */ + __IO uint16_t EGR; /*!< TIM event generation register, Address offset: 0x14 */ + uint16_t RESERVED5; /*!< Reserved, 0x16 */ + __IO uint16_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */ + uint16_t RESERVED6; /*!< Reserved, 0x1A */ + __IO uint16_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */ + uint16_t RESERVED7; /*!< Reserved, 0x1E */ + __IO uint16_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */ + uint16_t RESERVED8; /*!< Reserved, 0x22 */ + __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */ + __IO uint16_t PSC; /*!< TIM prescaler, Address offset: 0x28 */ + uint16_t RESERVED9; /*!< Reserved, 0x2A */ + __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */ + __IO uint16_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */ + uint16_t RESERVED10; /*!< Reserved, 0x32 */ + __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */ + __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */ + __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */ + __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */ + __IO uint16_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */ + uint16_t RESERVED11; /*!< Reserved, 0x46 */ + __IO uint16_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */ + uint16_t RESERVED12; /*!< Reserved, 0x4A */ + __IO uint16_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */ + uint16_t RESERVED13; /*!< Reserved, 0x4E */ + __IO uint16_t OR; /*!< TIM option register, Address offset: 0x50 */ + uint16_t RESERVED14; /*!< Reserved, 0x52 */ +} TIM_TypeDef; + +/** + * @brief Universal Synchronous Asynchronous Receiver Transmitter + */ + +typedef struct +{ + __IO uint16_t SR; /*!< USART Status register, Address offset: 0x00 */ + uint16_t RESERVED0; /*!< Reserved, 0x02 */ + __IO uint16_t DR; /*!< USART Data register, Address offset: 0x04 */ + uint16_t RESERVED1; /*!< Reserved, 0x06 */ + __IO uint16_t BRR; /*!< USART Baud rate register, Address offset: 0x08 */ + uint16_t RESERVED2; /*!< Reserved, 0x0A */ + __IO uint16_t CR1; /*!< USART Control register 1, Address offset: 0x0C */ + uint16_t RESERVED3; /*!< Reserved, 0x0E */ + __IO uint16_t CR2; /*!< USART Control register 2, Address offset: 0x10 */ + uint16_t RESERVED4; /*!< Reserved, 0x12 */ + __IO uint16_t CR3; /*!< USART Control register 3, Address offset: 0x14 */ + uint16_t RESERVED5; /*!< Reserved, 0x16 */ + __IO uint16_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x18 */ + uint16_t RESERVED6; /*!< Reserved, 0x1A */ +} USART_TypeDef; + +/** + * @brief Window WATCHDOG + */ + +typedef struct +{ + __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */ + __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */ + __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */ +} WWDG_TypeDef; + +/** + * @brief Crypto Processor + */ + +typedef struct +{ + __IO uint32_t CR; /*!< CRYP control register, Address offset: 0x00 */ + __IO uint32_t SR; /*!< CRYP status register, Address offset: 0x04 */ + __IO uint32_t DR; /*!< CRYP data input register, Address offset: 0x08 */ + __IO uint32_t DOUT; /*!< CRYP data output register, Address offset: 0x0C */ + __IO uint32_t DMACR; /*!< CRYP DMA control register, Address offset: 0x10 */ + __IO uint32_t IMSCR; /*!< CRYP interrupt mask set/clear register, Address offset: 0x14 */ + __IO uint32_t RISR; /*!< CRYP raw interrupt status register, Address offset: 0x18 */ + __IO uint32_t MISR; /*!< CRYP masked interrupt status register, Address offset: 0x1C */ + __IO uint32_t K0LR; /*!< CRYP key left register 0, Address offset: 0x20 */ + __IO uint32_t K0RR; /*!< CRYP key right register 0, Address offset: 0x24 */ + __IO uint32_t K1LR; /*!< CRYP key left register 1, Address offset: 0x28 */ + __IO uint32_t K1RR; /*!< CRYP key right register 1, Address offset: 0x2C */ + __IO uint32_t K2LR; /*!< CRYP key left register 2, Address offset: 0x30 */ + __IO uint32_t K2RR; /*!< CRYP key right register 2, Address offset: 0x34 */ + __IO uint32_t K3LR; /*!< CRYP key left register 3, Address offset: 0x38 */ + __IO uint32_t K3RR; /*!< CRYP key right register 3, Address offset: 0x3C */ + __IO uint32_t IV0LR; /*!< CRYP initialization vector left-word register 0, Address offset: 0x40 */ + __IO uint32_t IV0RR; /*!< CRYP initialization vector right-word register 0, Address offset: 0x44 */ + __IO uint32_t IV1LR; /*!< CRYP initialization vector left-word register 1, Address offset: 0x48 */ + __IO uint32_t IV1RR; /*!< CRYP initialization vector right-word register 1, Address offset: 0x4C */ +} CRYP_TypeDef; + +/** + * @brief HASH + */ + +typedef struct +{ + __IO uint32_t CR; /*!< HASH control register, Address offset: 0x00 */ + __IO uint32_t DIN; /*!< HASH data input register, Address offset: 0x04 */ + __IO uint32_t STR; /*!< HASH start register, Address offset: 0x08 */ + __IO uint32_t HR[5]; /*!< HASH digest registers, Address offset: 0x0C-0x1C */ + __IO uint32_t IMR; /*!< HASH interrupt enable register, Address offset: 0x20 */ + __IO uint32_t SR; /*!< HASH status register, Address offset: 0x24 */ + uint32_t RESERVED[52]; /*!< Reserved, 0x28-0xF4 */ + __IO uint32_t CSR[51]; /*!< HASH context swap registers, Address offset: 0x0F8-0x1C0 */ +} HASH_TypeDef; + +/** + * @brief HASH + */ + +typedef struct +{ + __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */ + __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */ + __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */ +} RNG_TypeDef; + +/** + * @brief USB OTG FS + */ +typedef struct +{ + __IO uint32_t GOTGCTL; + __IO uint32_t GOTGINT; + __IO uint32_t GAHBCFG; + __IO uint32_t GUSBCFG; + __IO uint32_t GRSTCTL; + __IO uint32_t GINTSTS; + __IO uint32_t GINTMSK; + __IO uint32_t GRXSTSR; + __IO uint32_t GRXSTSP; + __IO uint32_t GRXFSIZ; + union { + __IO uint32_t HNPTXFSIZ; + __IO uint32_t DIEPTXF0; + }; + __IO uint32_t HNPTXSTS; + __IO uint32_t GI2CCTL; + uint32_t RESERVED0; + __IO uint32_t GCCFG; + __IO uint32_t CID; + uint32_t RESERVED1[48]; + __IO uint32_t HPTXFSIZ; + __IO uint32_t DIEPTXF1; + __IO uint32_t DIEPTXF2; + __IO uint32_t DIEPTXF3; + __IO uint32_t DIEPTXF4; + __IO uint32_t DIEPTXF5; + __IO uint32_t DIEPTXF6; + __IO uint32_t DIEPTXF7; + __IO uint32_t DIEPTXF8; + __IO uint32_t DIEPTXF9; + __IO uint32_t DIEPTXF10; + __IO uint32_t DIEPTXF11; + __IO uint32_t DIEPTXF12; + __IO uint32_t DIEPTXF13; + __IO uint32_t DIEPTXF14; + __IO uint32_t DIEPTXF15; + uint32_t RESERVED2[176]; + __IO uint32_t HCFG; + __IO uint32_t HFIR; + __IO uint32_t HFNUM; + uint32_t RESERVED3; + __IO uint32_t HPTXSTS; + __IO uint32_t HAINT; + __IO uint32_t HAINTMSK; + uint32_t RESERVED4[9]; + __IO uint32_t HPRT; + uint32_t RESERVED5[47]; + __IO uint32_t HCCHAR0; + uint32_t RESERVED6; + __IO uint32_t HCINT0; + __IO uint32_t HCINTMSK0; + __IO uint32_t HCTSIZ0; + uint32_t RESERVED7[3]; + __IO uint32_t HCCHAR1; + uint32_t RESERVED8; + __IO uint32_t HCINT1; + __IO uint32_t HCINTMSK1; + __IO uint32_t HCTSIZ1; + uint32_t RESERVED9[3]; + __IO uint32_t HCCHAR2; + uint32_t RESERVED10; + __IO uint32_t HCINT2; + __IO uint32_t HCINTMSK2; + __IO uint32_t HCTSIZ2; + uint32_t RESERVED11[3]; + __IO uint32_t HCCHR3; + uint32_t RESERVED12; + __IO uint32_t HCINT3; + __IO uint32_t HCINTMSK3; + __IO uint32_t HCTSIZ3; + uint32_t RESERVED13[3]; + __IO uint32_t HCCHR4; + uint32_t RESERVED14; + __IO uint32_t HCINT4; + __IO uint32_t HCINTMSK4; + __IO uint32_t HCTSIZ4; + uint32_t RESERVED15[3]; + __IO uint32_t HCCHR5; + uint32_t RESERVED16; + __IO uint32_t HCINT5; + __IO uint32_t HCINTMSK5; + __IO uint32_t HCTSIZ5; + uint32_t RESERVED17[3]; + __IO uint32_t HCCHR6; + uint32_t RESERVED18; + __IO uint32_t HCINT6; + __IO uint32_t HCINTMSK6; + __IO uint32_t HCTSIZ6; + uint32_t RESERVED19[3]; + __IO uint32_t HCCHR7; + uint32_t RESERVED20; + __IO uint32_t HCINT7; + __IO uint32_t HCINTMSK7; + __IO uint32_t HCTSIZ7; + uint32_t RESERVED21[3]; + __IO uint32_t HCCHR8; + uint32_t RESERVED22; + __IO uint32_t HCINT8; + __IO uint32_t HCINTMSK8; + __IO uint32_t HCTSIZ8; + uint32_t RESERVED23[3]; + __IO uint32_t HCCHR9; + uint32_t RESERVED24; + __IO uint32_t HCINT9; + __IO uint32_t HCINTMSK9; + __IO uint32_t HCTSIZ9; + uint32_t RESERVED25[3]; + __IO uint32_t HCCHR10; + uint32_t RESERVED26; + __IO uint32_t HCINT10; + __IO uint32_t HCINTMSK10; + __IO uint32_t HCTSIZ10; + uint32_t RESERVED27[3]; + __IO uint32_t HCCHR11; + uint32_t RESERVED28; + __IO uint32_t HCINT11; + __IO uint32_t HCINTMSK11; + __IO uint32_t HCTSIZ11; + uint32_t RESERVED29[3]; + __IO uint32_t HCCHR12; + uint32_t RESERVED30; + __IO uint32_t HCINT12; + __IO uint32_t HCINTMSK12; + __IO uint32_t HCTSIZ12; + uint32_t RESERVED31[3]; + __IO uint32_t HCCHR13; + uint32_t RESERVED32; + __IO uint32_t HCINT13; + __IO uint32_t HCINTMSK13; + __IO uint32_t HCTSIZ13; + uint32_t RESERVED33[3]; + __IO uint32_t HCCHR14; + uint32_t RESERVED34; + __IO uint32_t HCINT14; + __IO uint32_t HCINTMSK14; + __IO uint32_t HCTSIZ14; + uint32_t RESERVED35[3]; + __IO uint32_t HCCHR15; + uint32_t RESERVED36; + __IO uint32_t HCINT15; + __IO uint32_t HCINTMSK15; + __IO uint32_t HCTSIZ15; + uint32_t RESERVED37[3]; + uint32_t RESERVED38[64]; + __IO uint32_t DCFG; + __IO uint32_t DCTL; + __IO uint32_t DSTS; + uint32_t RESERVED39; + __IO uint32_t DIEPMSK; + __IO uint32_t DOEPMSK; + __IO uint32_t DAINT; + __IO uint32_t DAINTMSK; + uint32_t RESERVED40[2]; + __IO uint32_t DVBUSDIS; + __IO uint32_t DVBUSPULSE; + uint32_t RESERVED41; + __IO uint32_t DIEPEMPMSK; + uint32_t RESERVED42[50]; + __IO uint32_t DIEPCTL0; + uint32_t RESERVED43; + __IO uint32_t DIEPINT0; + uint32_t RESERVED44; + __IO uint32_t DIEPTSIZ0; + uint32_t RESERVED45; + __IO uint32_t DTXFSTS0; + uint32_t RESERVED46; + __IO uint32_t DIEPCTL1; + uint32_t RESERVED47; + __IO uint32_t DIEPINT1; + uint32_t RESERVED48; + __IO uint32_t DIEPTSIZ1; + uint32_t RESERVED49; + __IO uint32_t DTXFSTS1; + uint32_t RESERVED50; + __IO uint32_t DIEPCTL2; + uint32_t RESERVED51; + __IO uint32_t DIEPINT2; + uint32_t RESERVED52; + __IO uint32_t DIEPTSIZ2; + uint32_t RESERVED53; + __IO uint32_t DTXFSTS2; + uint32_t RESERVED54; + __IO uint32_t DIEPCTL3; + uint32_t RESERVED55; + __IO uint32_t DIEPINT3; + uint32_t RESERVED56; + __IO uint32_t DIEPTSIZ3; + uint32_t RESERVED57; + __IO uint32_t DTXFSTS3; + uint32_t RESERVED58; + __IO uint32_t DIEPCTL4; + uint32_t RESERVED59; + __IO uint32_t DIEPINT4; + uint32_t RESERVED60; + __IO uint32_t DIEPTSIZ4; + uint32_t RESERVED61; + __IO uint32_t DTXFSTS4; + uint32_t RESERVED62; + __IO uint32_t DIEPCTL5; + uint32_t RESERVED63; + __IO uint32_t DIEPINT5; + uint32_t RESERVED64; + __IO uint32_t DIEPTSIZ5; + uint32_t RESERVED65[3]; + __IO uint32_t DIEPCTL6; + uint32_t RESERVED66; + __IO uint32_t DIEPINT6; + uint32_t RESERVED67; + __IO uint32_t DIEPTSIZ6; + uint32_t RESERVED68[3]; + __IO uint32_t DIEPCTL7; + uint32_t RESERVED69; + __IO uint32_t DIEPINT7; + uint32_t RESERVED70; + __IO uint32_t DIEPTSIZ7; + uint32_t RESERVED71[3]; + __IO uint32_t DIEPCTL8; + uint32_t RESERVED72; + __IO uint32_t DIEPINT8; + uint32_t RESERVED73; + __IO uint32_t DIEPTSIZ8; + uint32_t RESERVED74[3]; + __IO uint32_t DIEPCTL9; + uint32_t RESERVED75; + __IO uint32_t DIEPINT9; + uint32_t RESERVED76; + __IO uint32_t DIEPTSIZ9; + uint32_t RESERVED77[3]; + __IO uint32_t DIEPCTL10; + uint32_t RESERVED78; + __IO uint32_t DIEPINT10; + uint32_t RESERVED79; + __IO uint32_t DIEPTSIZ10; + uint32_t RESERVED80[3]; + __IO uint32_t DIEPCTL11; + uint32_t RESERVED81; + __IO uint32_t DIEPINT11; + uint32_t RESERVED82; + __IO uint32_t DIEPTSIZ11; + uint32_t RESERVED83[3]; + __IO uint32_t DIEPCTL12; + uint32_t RESERVED84; + __IO uint32_t DIEPINT12; + uint32_t RESERVED85; + __IO uint32_t DIEPTSIZ86; + uint32_t RESERVED86[3]; + __IO uint32_t DIEPCTL13; + uint32_t RESERVED87; + __IO uint32_t DIEPINT13; + uint32_t RESERVED88; + __IO uint32_t DIEPTSIZ13; + uint32_t RESERVED89[3]; + __IO uint32_t DIEPCTL14; + uint32_t RESERVED90; + __IO uint32_t DIEPINT14; + uint32_t RESERVED91; + __IO uint32_t DIEPTSIZ14; + uint32_t RESERVED92[3]; + __IO uint32_t DIEPCTL15; + uint32_t RESERVED93; + __IO uint32_t DIEPINT15; + uint32_t RESERVED94; + __IO uint32_t DIEPTSIZ15; + uint32_t RESERVED95[3]; + __IO uint32_t DOEPCTL0; + uint32_t RESERVED96; + __IO uint32_t DOEPINT0; + uint32_t RESERVED97; + __IO uint32_t DOEPTSIZ0; + uint32_t RESERVED98[3]; + __IO uint32_t DOEPCTL1; + uint32_t RESERVED99; + __IO uint32_t DOEPINT1; + uint32_t RESERVED100; + __IO uint32_t DOEPTSIZ1; + uint32_t RESERVED101[3]; + __IO uint32_t DOEPCTL2; + uint32_t RESERVED102; + __IO uint32_t DOEPINT2; + uint32_t RESERVED103; + __IO uint32_t DOEPTSIZ2; + uint32_t RESERVED104[3]; + __IO uint32_t DOEPCTL3; + uint32_t RESERVED105; + __IO uint32_t DOEPINT3; + uint32_t RESERVED106; + __IO uint32_t DOEPTSIZ3; + uint32_t RESERVED107[3]; + __IO uint32_t DOEPCTL4; + uint32_t RESERVED108; + __IO uint32_t DOEPINT4; + uint32_t RESERVED109; + __IO uint32_t DOEPTSIZ4; + uint32_t RESERVED110[3]; + __IO uint32_t DOEPCTL5; + uint32_t RESERVED111; + __IO uint32_t DOEPINT5; + uint32_t RESERVED112; + __IO uint32_t DOEPTSIZ5; + uint32_t RESERVED113[3]; + __IO uint32_t DOEPCTL6; + uint32_t RESERVED114; + __IO uint32_t DOEPINT6; + uint32_t RESERVED115; + __IO uint32_t DOEPTSIZ6; + uint32_t RESERVED116[3]; + __IO uint32_t DOEPCTL7; + uint32_t RESERVED117; + __IO uint32_t DOEPINT7; + uint32_t RESERVED118; + __IO uint32_t DOEPTSIZ7; + uint32_t RESERVED119[3]; + __IO uint32_t DOEPCTL8; + uint32_t RESERVED120; + __IO uint32_t DOEPINT8; + uint32_t RESERVED121; + __IO uint32_t DOEPTSIZ8; + uint32_t RESERVED122[3]; + __IO uint32_t DOEPCTL9; + uint32_t RESERVED123; + __IO uint32_t DOEPINT9; + uint32_t RESERVED124; + __IO uint32_t DOEPTSIZ9; + uint32_t RESERVED125[3]; + __IO uint32_t DOEPCTL10; + uint32_t RESERVED126; + __IO uint32_t DOEPINT10; + uint32_t RESERVED127; + __IO uint32_t DOEPTSIZ10; + uint32_t RESERVED128[3]; + __IO uint32_t DOEPCTL11; + uint32_t RESERVED129; + __IO uint32_t DOEPINT11; + uint32_t RESERVED130; + __IO uint32_t DOEPTSIZ11; + uint32_t RESERVED131[3]; + __IO uint32_t DOEPCTL12; + uint32_t RESERVED132; + __IO uint32_t DOEPINT12; + uint32_t RESERVED133; + __IO uint32_t DOEPTSIZ12; + uint32_t RESERVED134[3]; + __IO uint32_t DOEPCTL13; + uint32_t RESERVED135; + __IO uint32_t DOEPINT13; + uint32_t RESERVED136; + __IO uint32_t DOEPTSIZ13; + uint32_t RESERVED137[3]; + __IO uint32_t DOEPCTL14; + uint32_t RESERVED138; + __IO uint32_t DOEPINT14; + uint32_t RESERVED139; + __IO uint32_t DOEPTSIZ14; + uint32_t RESERVED140[3]; + __IO uint32_t DOEPCTL15; + uint32_t RESERVED141; + __IO uint32_t DOEPINT15; + uint32_t RESERVED142; + __IO uint32_t DOEPTSIZ15; + uint32_t RESERVED143[3]; + uint32_t RESERVED144[64]; + __IO uint32_t PCGCCTL; +} OTG_FS_TypeDef; + +/** + * @brief USB OTG HS + */ + +typedef struct +{ + __IO uint32_t GOTGCTL; + __IO uint32_t GOTGINT; + __IO uint32_t GAHBCFG; + __IO uint32_t GUSBCFG; + __IO uint32_t GRSTCTL; + __IO uint32_t GINTSTS; + __IO uint32_t GINTMSK; + __IO uint32_t GRXSTSR; + __IO uint32_t GRXSTSP; + __IO uint32_t GRXFSIZ; + union { + __IO uint32_t GNPTXFSIZ; + __IO uint32_t TX0FSIZ; + }; + __IO uint32_t GNPTXSTS; + __IO uint32_t GI2CCTL; + uint32_t RESERVED0; + __IO uint32_t GCCFG; + __IO uint32_t CID; + uint32_t RESERVED1[48]; + __IO uint32_t HPTXFSIZ; + __IO uint32_t DIEPTXF1; + __IO uint32_t DIEPTXF2; + __IO uint32_t DIEPTXF3; + __IO uint32_t DIEPTXF4; + __IO uint32_t DIEPTXF5; + __IO uint32_t DIEPTXF6; + __IO uint32_t DIEPTXF7; + __IO uint32_t DIEPTXF8; + __IO uint32_t DIEPTXF9; + __IO uint32_t DIEPTXF10; + __IO uint32_t DIEPTXF11; + __IO uint32_t DIEPTXF12; + __IO uint32_t DIEPTXF13; + __IO uint32_t DIEPTXF14; + __IO uint32_t DIEPTXF15; + uint32_t RESERVED2[176]; + __IO uint32_t HCFG; + __IO uint32_t HFIR; + __IO uint32_t HFNUM; + uint32_t RESERVED3; + __IO uint32_t HPTXSTS; + __IO uint32_t HAINT; + __IO uint32_t HAINTMSK; + uint32_t RESERVED4[9]; + __IO uint32_t HPRT; + uint32_t RESERVED5[47]; + __IO uint32_t HCCHAR0; + __IO uint32_t HCSPLT0; + __IO uint32_t HCINT0; + __IO uint32_t HCINTMSK0; + __IO uint32_t HCTSIZ0; + __IO uint32_t HCDMA0; + uint32_t RESERVED6[2]; + __IO uint32_t HCCHAR1; + __IO uint32_t HCSPLT1; + __IO uint32_t HCINT1; + __IO uint32_t HCINTMSK1; + __IO uint32_t HCTSIZ1; + __IO uint32_t HCDMA1; + uint32_t RESERVED7[2]; + __IO uint32_t HCCHAR2; + __IO uint32_t HCSPLT2; + __IO uint32_t HCINT2; + __IO uint32_t HCINTMSK2; + __IO uint32_t HCTSIZ2; + __IO uint32_t HCDMA2; + uint32_t RESERVED8[2]; + __IO uint32_t HCCHAR3; + __IO uint32_t HCSPLT3; + __IO uint32_t HCINT3; + __IO uint32_t HCINTMSK3; + __IO uint32_t HCTSIZ3; + __IO uint32_t HCDMA3; + uint32_t RESERVED9[2]; + __IO uint32_t HCCHAR4; + __IO uint32_t HCSPLT4; + __IO uint32_t HCINT4; + __IO uint32_t HCINTMSK4; + __IO uint32_t HCTSIZ4; + __IO uint32_t HCDMA4; + uint32_t RESERVED10[2]; + __IO uint32_t HCCHAR5; + __IO uint32_t HCSPLT5; + __IO uint32_t HCINT5; + __IO uint32_t HCINTMSK5; + __IO uint32_t HCTSIZ5; + __IO uint32_t HCDMA5; + uint32_t RESERVED11[2]; + __IO uint32_t HCCHAR6; + __IO uint32_t HCSPLT6; + __IO uint32_t HCINT6; + __IO uint32_t HCINTMSK6; + __IO uint32_t HCTSIZ6; + __IO uint32_t HCDMA6; + uint32_t RESERVED12[2]; + __IO uint32_t HCCHAR7; + __IO uint32_t HCSPLT7; + __IO uint32_t HCINT7; + __IO uint32_t HCINTMSK7; + __IO uint32_t HCTSIZ7; + __IO uint32_t HCDMA7; + uint32_t RESERVED13[2]; + __IO uint32_t HCCHAR8; + __IO uint32_t HCSPLT8; + __IO uint32_t HCINT8; + __IO uint32_t HCINTMSK8; + __IO uint32_t HCTSIZ8; + __IO uint32_t HCDMA8; + uint32_t RESERVED14[2]; + __IO uint32_t HCCHAR9; + __IO uint32_t HCSPLT9; + __IO uint32_t HCINT9; + __IO uint32_t HCINTMSK9; + __IO uint32_t HCTSIZ9; + __IO uint32_t HCDMA9; + uint32_t RESERVED15[2]; + __IO uint32_t HCCHAR10; + __IO uint32_t HCSPLT10; + __IO uint32_t HCINT10; + __IO uint32_t HCINTMSK10; + __IO uint32_t HCTSIZ10; + __IO uint32_t HCDMA10; + uint32_t RESERVED16[2]; + __IO uint32_t HCCHAR11; + __IO uint32_t HCSPLT11; + __IO uint32_t HCINT11; + __IO uint32_t HCINTMSK11; + __IO uint32_t HCTSIZ11; + __IO uint32_t HCDMA11; + uint32_t RESERVED17[2]; + __IO uint32_t HCCHAR12; + __IO uint32_t HCSPLT12; + __IO uint32_t HCINT12; + __IO uint32_t HCINTMSK12; + __IO uint32_t HCTSIZ12; + __IO uint32_t HCDMA12; + uint32_t RESERVED18[2]; + __IO uint32_t HCCHAR13; + __IO uint32_t HCSPLT13; + __IO uint32_t HCINT13; + __IO uint32_t HCINTMSK13; + __IO uint32_t HCTSIZ13; + __IO uint32_t HCDMA13; + uint32_t RESERVED19[2]; + __IO uint32_t HCCHAR14; + __IO uint32_t HCSPLT14; + __IO uint32_t HCINT14; + __IO uint32_t HCINTMSK14; + __IO uint32_t HCTSIZ14; + __IO uint32_t HCDMA14; + uint32_t RESERVED20[2]; + __IO uint32_t HCCHAR15; + __IO uint32_t HCSPLT15; + __IO uint32_t HCINT15; + __IO uint32_t HCINTMSK15; + __IO uint32_t HCTSIZ15; + __IO uint32_t HCDMA15; + uint32_t RESERVED21[2]; + uint32_t RESERVED22[64]; + __IO uint32_t DCFG; + __IO uint32_t DCTL; + __IO uint32_t DSTS; + uint32_t RESERVED23; + __IO uint32_t DIEPMSK; + __IO uint32_t DOEPMSK; + __IO uint32_t DAINT; + __IO uint32_t DAINTMSK; + uint32_t RESERVED24[2]; + __IO uint32_t DVBUSDIS; + __IO uint32_t DVBUSPULSE; + uint32_t RESERVED25; + __IO uint32_t DIEPEMPMSK; + __IO uint32_t EACHHINT; + __IO uint32_t EACHHINTMSK; + __IO uint32_t DIEPEACHMSK1; + uint32_t RESERVED26[15]; + __IO uint32_t DOEPEACHMSK1; + uint32_t RESERVED27[31]; + __IO uint32_t DIEPCTL0; + uint32_t RESERVED28; + __IO uint32_t DIEPINT0; + uint32_t RESERVED29; + __IO uint32_t DIEPTSIZ0; + __IO uint32_t DIEPDMA0; + __IO uint32_t DTXFSTS0; + uint32_t RESERVED30; + __IO uint32_t DIEPCTL1; + uint32_t RESERVED31; + __IO uint32_t DIEPINT1; + uint32_t RESERVED32; + __IO uint32_t DIEPTSIZ1; + __IO uint32_t DIEPDMA1; + __IO uint32_t DTXFSTS1; + uint32_t RESERVED33; + __IO uint32_t DIEPCTL2; + uint32_t RESERVED34; + __IO uint32_t DIEPINT2; + uint32_t RESERVED35; + __IO uint32_t DIEPTSIZ2; + __IO uint32_t DIEPDMA2; + __IO uint32_t DTXFSTS2; + uint32_t RESERVED36; + __IO uint32_t DIEPCTL3; + uint32_t RESERVED37; + __IO uint32_t DIEPINT3; + uint32_t RESERVED38; + __IO uint32_t DIEPTSIZ3; + __IO uint32_t DIEPDMA3; + __IO uint32_t DTXFSTS3; + uint32_t RESERVED39; + __IO uint32_t DIEPCTL4; + uint32_t RESERVED40; + __IO uint32_t DIEPINT4; + uint32_t RESERVED41; + __IO uint32_t DIEPTSIZ4; + __IO uint32_t DIEPDMA4; + __IO uint32_t DTXFSTS4; + uint32_t RESERVED42; + __IO uint32_t DIEPCTL5; + uint32_t RESERVED43; + __IO uint32_t DIEPINT5; + uint32_t RESERVED44; + __IO uint32_t DIEPTSIZ5; + __IO uint32_t DIEPDMA5; + __IO uint32_t DTXFSTS5; + uint32_t RESERVED45; + __IO uint32_t DIEPCTL6; + uint32_t RESERVED46; + __IO uint32_t DIEPINT6; + uint32_t RESERVED47; + __IO uint32_t DIEPTSIZ6; + __IO uint32_t DIEPDMA6; + __IO uint32_t DTXFSTS6; + uint32_t RESERVED48; + __IO uint32_t DIEPCTL7; + uint32_t RESERVED49; + __IO uint32_t DIEPINT7; + uint32_t RESERVED50; + __IO uint32_t DIEPTSIZ7; + __IO uint32_t DIEPDMA7; + __IO uint32_t DTXFSTS7; + uint32_t RESERVED51; + __IO uint32_t DIEPCTL8; + uint32_t RESERVED52; + __IO uint32_t DIEPINT8; + uint32_t RESERVED53; + __IO uint32_t DIEPTSIZ8; + __IO uint32_t DIEPDMA8; + __IO uint32_t DTXFSTS8; + uint32_t RESERVED54; + __IO uint32_t DIEPCTL9; + uint32_t RESERVED55; + __IO uint32_t DIEPINT9; + uint32_t RESERVED56; + __IO uint32_t DIEPTSIZ9; + __IO uint32_t DIEPDMA9; + __IO uint32_t DTXFSTS9; + uint32_t RESERVED57; + __IO uint32_t DIEPCTL10; + uint32_t RESERVED58; + __IO uint32_t DIEPINT10; + uint32_t RESERVED59; + __IO uint32_t DIEPTSIZ10; + __IO uint32_t DIEPDMA10; + __IO uint32_t DTXFSTS10; + uint32_t RESERVED60; + __IO uint32_t DIEPCTL11; + uint32_t RESERVED61; + __IO uint32_t DIEPINT11; + uint32_t RESERVED62; + __IO uint32_t DIEPTSIZ11; + __IO uint32_t DIEPDMA11; + __IO uint32_t DTXFSTS11; + uint32_t RESERVED63; + __IO uint32_t DIEPCTL12; + uint32_t RESERVED64; + __IO uint32_t DIEPINT12; + uint32_t RESERVED65; + __IO uint32_t DIEPTSIZ12; + __IO uint32_t DIEPDMA12; + __IO uint32_t DTXFSTS12; + uint32_t RESERVED66; + __IO uint32_t DIEPCTL13; + uint32_t RESERVED67; + __IO uint32_t DIEPINT13; + uint32_t RESERVED68; + __IO uint32_t DIEPTSIZ13; + __IO uint32_t DIEPDMA13; + __IO uint32_t DTXFSTS13; + uint32_t RESERVED69; + __IO uint32_t DIEPCTL14; + uint32_t RESERVED70; + __IO uint32_t DIEPINT14; + uint32_t RESERVED71; + __IO uint32_t DIEPTSIZ14; + __IO uint32_t DIEPDMA14; + __IO uint32_t DTXFSTS14; + uint32_t RESERVED72; + __IO uint32_t DIEPCTL15; + uint32_t RESERVED73; + __IO uint32_t DIEPINT15; + uint32_t RESERVED74; + __IO uint32_t DIEPTSIZ15; + __IO uint32_t DIEPDMA15; + __IO uint32_t DTXFSTS15; + uint32_t RESERVED75; + __IO uint32_t DOEPCTL0; + uint32_t RESERVED76; + __IO uint32_t DOEPINT0; + uint32_t RESERVED77; + __IO uint32_t DOEPTSIZ0; + __IO uint32_t DOEPDMAB0; + uint32_t RESERVED78[2]; + __IO uint32_t DOEPCTL1; + uint32_t RESERVED79; + __IO uint32_t DOEPINT1; + uint32_t RESERVED80; + __IO uint32_t DOEPTSIZ1; + __IO uint32_t DOEPDMAB1; + uint32_t RESERVED81[2]; + __IO uint32_t DOEPCTL2; + uint32_t RESERVED82; + __IO uint32_t DOEPINT2; + uint32_t RESERVED83; + __IO uint32_t DOEPTSIZ2; + __IO uint32_t DOEPDMAB2; + uint32_t RESERVED84[2]; + __IO uint32_t DOEPCTL3; + uint32_t RESERVED85; + __IO uint32_t DOEPINT3; + uint32_t RESERVED86; + __IO uint32_t DOEPTSIZ3; + __IO uint32_t DOEPDMAB3; + uint32_t RESERVED87[2]; + __IO uint32_t DOEPCTL4; + uint32_t RESERVED88; + __IO uint32_t DOEPINT4; + uint32_t RESERVED89; + __IO uint32_t DOEPTSIZ4; + __IO uint32_t DOEPDMAB4; + uint32_t RESERVED90[2]; + __IO uint32_t DOEPCTL5; + uint32_t RESERVED91; + __IO uint32_t DOEPINT5; + uint32_t RESERVED92; + __IO uint32_t DOEPTSIZ5; + __IO uint32_t DOEPDMAB5; + uint32_t RESERVED93[2]; + __IO uint32_t DOEPCTL6; + uint32_t RESERVED94; + __IO uint32_t DOEPINT6; + uint32_t RESERVED95; + __IO uint32_t DOEPTSIZ6; + __IO uint32_t DOEPDMAB6; + uint32_t RESERVED96[2]; + __IO uint32_t DOEPCTL7; + uint32_t RESERVED97; + __IO uint32_t DOEPINT7; + uint32_t RESERVED98; + __IO uint32_t DOEPTSIZ7; + __IO uint32_t DOEPDMAB7; + uint32_t RESERVED99[2]; + __IO uint32_t DOEPCTL8; + uint32_t RESERVED100; + __IO uint32_t DOEPINT8; + uint32_t RESERVED101; + __IO uint32_t DOEPTSIZ8; + __IO uint32_t DOEPDMAB8; + uint32_t RESERVED102[2]; + __IO uint32_t DOEPCTL9; + uint32_t RESERVED103; + __IO uint32_t DOEPINT9; + uint32_t RESERVED104; + __IO uint32_t DOEPTSIZ9; + __IO uint32_t DOEPDMAB9; + uint32_t RESERVED105[2]; + __IO uint32_t DOEPCTL10; + uint32_t RESERVED106; + __IO uint32_t DOEPINT10; + uint32_t RESERVED107; + __IO uint32_t DOEPTSIZ10; + __IO uint32_t DOEPDMAB10; + uint32_t RESERVED108[2]; + __IO uint32_t DOEPCTL11; + uint32_t RESERVED109; + __IO uint32_t DOEPINT11; + uint32_t RESERVED110; + __IO uint32_t DOEPTSIZ11; + __IO uint32_t DOEPDMAB11; + uint32_t RESERVED111[2]; + __IO uint32_t DOEPCTL12; + uint32_t RESERVED112; + __IO uint32_t DOEPINT12; + uint32_t RESERVED113; + __IO uint32_t DOEPTSIZ12; + __IO uint32_t DOEPDMAB12; + uint32_t RESERVED114[2]; + __IO uint32_t DOEPCTL13; + uint32_t RESERVED115; + __IO uint32_t DOEPINT13; + uint32_t RESERVED116; + __IO uint32_t DOEPTSIZ13; + __IO uint32_t DOEPDMAB13; + uint32_t RESERVED117[2]; + __IO uint32_t DOEPCTL14; + uint32_t RESERVED118; + __IO uint32_t DOEPINT14; + uint32_t RESERVED119; + __IO uint32_t DOEPTSIZ14; + __IO uint32_t DOEPDMAB14; + uint32_t RESERVED120[2]; + __IO uint32_t DOEPCTL15; + uint32_t RESERVED121; + __IO uint32_t DOEPINT15; + uint32_t RESERVED122; + __IO uint32_t DOEPTSIZ15; + __IO uint32_t DOEPDMAB15; + uint32_t RESERVED123[2]; + uint32_t RESERVED143[64]; + __IO uint32_t PCGCCTL; +} OTG_HS_TypeDef; + +/** + * @} + */ + +/** @addtogroup Peripheral_memory_map + * @{ + */ + +#define FLASH_BASE ((uint32_t)0x08000000) /*!< FLASH base address in the alias region */ +#define SRAM_BASE ((uint32_t)0x20000000) /*!< SRAM base address in the alias region */ +#define PERIPH_BASE ((uint32_t)0x40000000) /*!< Peripheral base address in the alias region */ + +#define SRAM_BB_BASE ((uint32_t)0x22000000) /*!< SRAM base address in the bit-band region */ +#define PERIPH_BB_BASE ((uint32_t)0x42000000) /*!< Peripheral base address in the bit-band region */ + +#define FSMC_R_BASE ((uint32_t)0xA0000000) /*!< FSMC registers base address */ + +/*!< Peripheral memory map */ +#define APB1PERIPH_BASE PERIPH_BASE +#define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000) +#define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000) +#define AHB2PERIPH_BASE (PERIPH_BASE + 0x10000000) + +/*!< APB1 peripherals */ +#define TIM2_BASE (APB1PERIPH_BASE + 0x0000) +#define TIM3_BASE (APB1PERIPH_BASE + 0x0400) +#define TIM4_BASE (APB1PERIPH_BASE + 0x0800) +#define TIM5_BASE (APB1PERIPH_BASE + 0x0C00) +#define TIM6_BASE (APB1PERIPH_BASE + 0x1000) +#define TIM7_BASE (APB1PERIPH_BASE + 0x1400) +#define TIM12_BASE (APB1PERIPH_BASE + 0x1800) +#define TIM13_BASE (APB1PERIPH_BASE + 0x1C00) +#define TIM14_BASE (APB1PERIPH_BASE + 0x2000) +#define RTC_BASE (APB1PERIPH_BASE + 0x2800) +#define WWDG_BASE (APB1PERIPH_BASE + 0x2C00) +#define IWDG_BASE (APB1PERIPH_BASE + 0x3000) +#define SPI2_BASE (APB1PERIPH_BASE + 0x3800) +#define SPI3_BASE (APB1PERIPH_BASE + 0x3C00) +#define USART2_BASE (APB1PERIPH_BASE + 0x4400) +#define USART3_BASE (APB1PERIPH_BASE + 0x4800) +#define UART4_BASE (APB1PERIPH_BASE + 0x4C00) +#define UART5_BASE (APB1PERIPH_BASE + 0x5000) +#define I2C1_BASE (APB1PERIPH_BASE + 0x5400) +#define I2C2_BASE (APB1PERIPH_BASE + 0x5800) +#define I2C3_BASE (APB1PERIPH_BASE + 0x5C00) +#define CAN1_BASE (APB1PERIPH_BASE + 0x6400) +#define CAN2_BASE (APB1PERIPH_BASE + 0x6800) +#define PWR_BASE (APB1PERIPH_BASE + 0x7000) +#define DAC_BASE (APB1PERIPH_BASE + 0x7400) + +/*!< APB2 peripherals */ +#define TIM1_BASE (APB2PERIPH_BASE + 0x0000) +#define TIM8_BASE (APB2PERIPH_BASE + 0x0400) +#define USART1_BASE (APB2PERIPH_BASE + 0x1000) +#define USART6_BASE (APB2PERIPH_BASE + 0x1400) +#define ADC1_BASE (APB2PERIPH_BASE + 0x2000) +#define ADC2_BASE (APB2PERIPH_BASE + 0x2100) +#define ADC3_BASE (APB2PERIPH_BASE + 0x2200) +#define ADC_BASE (APB2PERIPH_BASE + 0x2300) +#define SDIO_BASE (APB2PERIPH_BASE + 0x2C00) +#define SPI1_BASE (APB2PERIPH_BASE + 0x3000) +#define SYSCFG_BASE (APB2PERIPH_BASE + 0x3800) +#define EXTI_BASE (APB2PERIPH_BASE + 0x3C00) +#define TIM9_BASE (APB2PERIPH_BASE + 0x4000) +#define TIM10_BASE (APB2PERIPH_BASE + 0x4400) +#define TIM11_BASE (APB2PERIPH_BASE + 0x4800) + +/*!< AHB1 peripherals */ +#define GPIOA_BASE (AHB1PERIPH_BASE + 0x0000) +#define GPIOB_BASE (AHB1PERIPH_BASE + 0x0400) +#define GPIOC_BASE (AHB1PERIPH_BASE + 0x0800) +#define GPIOD_BASE (AHB1PERIPH_BASE + 0x0C00) +#define GPIOE_BASE (AHB1PERIPH_BASE + 0x1000) +#define GPIOF_BASE (AHB1PERIPH_BASE + 0x1400) +#define GPIOG_BASE (AHB1PERIPH_BASE + 0x1800) +#define GPIOH_BASE (AHB1PERIPH_BASE + 0x1C00) +#define GPIOI_BASE (AHB1PERIPH_BASE + 0x2000) +#define CRC_BASE (AHB1PERIPH_BASE + 0x3000) +#define RCC_BASE (AHB1PERIPH_BASE + 0x3800) +#define FLASH_R_BASE (AHB1PERIPH_BASE + 0x3C00) +#define BKPSRAM_BASE (AHB1PERIPH_BASE + 0x4000) +#define DMA1_BASE (AHB1PERIPH_BASE + 0x6000) +#define DMA1_Stream0_BASE (DMA1_BASE + 0x010) +#define DMA1_Stream1_BASE (DMA1_BASE + 0x028) +#define DMA1_Stream2_BASE (DMA1_BASE + 0x040) +#define DMA1_Stream3_BASE (DMA1_BASE + 0x058) +#define DMA1_Stream4_BASE (DMA1_BASE + 0x070) +#define DMA1_Stream5_BASE (DMA1_BASE + 0x088) +#define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0) +#define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8) +#define DMA2_BASE (AHB1PERIPH_BASE + 0x6400) +#define DMA2_Stream0_BASE (DMA2_BASE + 0x010) +#define DMA2_Stream1_BASE (DMA2_BASE + 0x028) +#define DMA2_Stream2_BASE (DMA2_BASE + 0x040) +#define DMA2_Stream3_BASE (DMA2_BASE + 0x058) +#define DMA2_Stream4_BASE (DMA2_BASE + 0x070) +#define DMA2_Stream5_BASE (DMA2_BASE + 0x088) +#define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0) +#define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8) +#define ETH_BASE (AHB1PERIPH_BASE + 0x8000) +#define ETH_MAC_BASE (ETH_BASE) +#define ETH_MMC_BASE (ETH_BASE + 0x0100) +#define ETH_PTP_BASE (ETH_BASE + 0x0700) +#define ETH_DMA_BASE (ETH_BASE + 0x1000) +#define OTG_HS_BASE (AHB1PERIPH_BASE + 0x20000) +#define OTG_HS_DFIFO0_BASE (OTG_HS_BASE + 0x01000) +#define OTG_HS_DFIFO1_BASE (OTG_HS_BASE + 0x02000) +#define OTG_HS_DFIFO2_BASE (OTG_HS_BASE + 0x03000) +#define OTG_HS_DFIFO3_BASE (OTG_HS_BASE + 0x04000) +#define OTG_HS_DFIFO4_BASE (OTG_HS_BASE + 0x05000) +#define OTG_HS_DFIFO5_BASE (OTG_HS_BASE + 0x06000) +#define OTG_HS_DFIFO6_BASE (OTG_HS_BASE + 0x07000) +#define OTG_HS_DFIFO7_BASE (OTG_HS_BASE + 0x08000) +#define OTG_HS_DFIFO8_BASE (OTG_HS_BASE + 0x09000) +#define OTG_HS_DFIFO9_BASE (OTG_HS_BASE + 0x0A000) +#define OTG_HS_DFIFO10_BASE (OTG_HS_BASE + 0x0B000) +#define OTG_HS_DFIFO11_BASE (OTG_HS_BASE + 0x0C000) +#define OTG_HS_DFIFO12_BASE (OTG_HS_BASE + 0x0D000) +#define OTG_HS_DFIFO13_BASE (OTG_HS_BASE + 0x0E000) +#define OTG_HS_DFIFO14_BASE (OTG_HS_BASE + 0x0F000) +#define OTG_HS_DFIFO15_BASE (OTG_HS_BASE + 0x10000) + +/*!< AHB2 peripherals */ +#define OTG_FS_BASE (AHB2PERIPH_BASE + 0x00000) +#define OTG_FS_DFIFO0_BASE (OTG_FS_BASE + 0x01000) +#define OTG_FS_DFIFO1_BASE (OTG_FS_BASE + 0x02000) +#define OTG_FS_DFIFO2_BASE (OTG_FS_BASE + 0x03000) +#define OTG_FS_DFIFO3_BASE (OTG_FS_BASE + 0x04000) +#define OTG_FS_DFIFO4_BASE (OTG_FS_BASE + 0x05000) +#define OTG_FS_DFIFO5_BASE (OTG_FS_BASE + 0x06000) +#define OTG_FS_DFIFO6_BASE (OTG_FS_BASE + 0x07000) +#define OTG_FS_DFIFO7_BASE (OTG_FS_BASE + 0x08000) +#define DCMI_BASE (AHB2PERIPH_BASE + 0x50000) +#define CRYP_BASE (AHB2PERIPH_BASE + 0x60000) +#define HASH_BASE (AHB2PERIPH_BASE + 0x60400) +#define RNG_BASE (AHB2PERIPH_BASE + 0x60800) + +/*!< FSMC Bankx registers base address */ +#define FSMC_Bank1_R_BASE (FSMC_R_BASE + 0x0000) +#define FSMC_Bank1E_R_BASE (FSMC_R_BASE + 0x0104) +#define FSMC_Bank2_R_BASE (FSMC_R_BASE + 0x0060) +#define FSMC_Bank3_R_BASE (FSMC_R_BASE + 0x0080) +#define FSMC_Bank4_R_BASE (FSMC_R_BASE + 0x00A0) + +/* Debug MCU registers base address */ +#define DBGMCU_BASE ((uint32_t )0xE0042000) + +/** + * @} + */ + +/** @addtogroup Peripheral_declaration + * @{ + */ +#define TIM2 ((TIM_TypeDef *) TIM2_BASE) +#define TIM3 ((TIM_TypeDef *) TIM3_BASE) +#define TIM4 ((TIM_TypeDef *) TIM4_BASE) +#define TIM5 ((TIM_TypeDef *) TIM5_BASE) +#define TIM6 ((TIM_TypeDef *) TIM6_BASE) +#define TIM7 ((TIM_TypeDef *) TIM7_BASE) +#define TIM12 ((TIM_TypeDef *) TIM12_BASE) +#define TIM13 ((TIM_TypeDef *) TIM13_BASE) +#define TIM14 ((TIM_TypeDef *) TIM14_BASE) +#define RTC ((RTC_TypeDef *) RTC_BASE) +#define WWDG ((WWDG_TypeDef *) WWDG_BASE) +#define IWDG ((IWDG_TypeDef *) IWDG_BASE) +#define SPI2 ((SPI_TypeDef *) SPI2_BASE) +#define SPI3 ((SPI_TypeDef *) SPI3_BASE) +#define USART2 ((USART_TypeDef *) USART2_BASE) +#define USART3 ((USART_TypeDef *) USART3_BASE) +#define UART4 ((USART_TypeDef *) UART4_BASE) +#define UART5 ((USART_TypeDef *) UART5_BASE) +#define I2C1 ((I2C_TypeDef *) I2C1_BASE) +#define I2C2 ((I2C_TypeDef *) I2C2_BASE) +#define I2C3 ((I2C_TypeDef *) I2C3_BASE) +#define CAN1 ((CAN_TypeDef *) CAN1_BASE) +#define CAN2 ((CAN_TypeDef *) CAN2_BASE) +#define PWR ((PWR_TypeDef *) PWR_BASE) +#define DAC ((DAC_TypeDef *) DAC_BASE) +#define TIM1 ((TIM_TypeDef *) TIM1_BASE) +#define TIM8 ((TIM_TypeDef *) TIM8_BASE) +#define USART1 ((USART_TypeDef *) USART1_BASE) +#define USART6 ((USART_TypeDef *) USART6_BASE) +#define ADC ((ADC_Common_TypeDef *) ADC_BASE) +#define ADC1 ((ADC_TypeDef *) ADC1_BASE) +#define ADC2 ((ADC_TypeDef *) ADC2_BASE) +#define ADC3 ((ADC_TypeDef *) ADC3_BASE) +#define SDIO ((SDIO_TypeDef *) SDIO_BASE) +#define SPI1 ((SPI_TypeDef *) SPI1_BASE) +#define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE) +#define EXTI ((EXTI_TypeDef *) EXTI_BASE) +#define TIM9 ((TIM_TypeDef *) TIM9_BASE) +#define TIM10 ((TIM_TypeDef *) TIM10_BASE) +#define TIM11 ((TIM_TypeDef *) TIM11_BASE) +#define GPIOA ((GPIO_TypeDef *) GPIOA_BASE) +#define GPIOB ((GPIO_TypeDef *) GPIOB_BASE) +#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE) +#define GPIOD ((GPIO_TypeDef *) GPIOD_BASE) +#define GPIOE ((GPIO_TypeDef *) GPIOE_BASE) +#define GPIOF ((GPIO_TypeDef *) GPIOF_BASE) +#define GPIOG ((GPIO_TypeDef *) GPIOG_BASE) +#define GPIOH ((GPIO_TypeDef *) GPIOH_BASE) +#define GPIOI ((GPIO_TypeDef *) GPIOI_BASE) +#define CRC ((CRC_TypeDef *) CRC_BASE) +#define RCC ((RCC_TypeDef *) RCC_BASE) +#define FLASH ((FLASH_TypeDef *) FLASH_R_BASE) +#define DMA1 ((DMA_TypeDef *) DMA1_BASE) +#define DMA1_Stream0 ((DMA_Stream_TypeDef *) DMA1_Stream0_BASE) +#define DMA1_Stream1 ((DMA_Stream_TypeDef *) DMA1_Stream1_BASE) +#define DMA1_Stream2 ((DMA_Stream_TypeDef *) DMA1_Stream2_BASE) +#define DMA1_Stream3 ((DMA_Stream_TypeDef *) DMA1_Stream3_BASE) +#define DMA1_Stream4 ((DMA_Stream_TypeDef *) DMA1_Stream4_BASE) +#define DMA1_Stream5 ((DMA_Stream_TypeDef *) DMA1_Stream5_BASE) +#define DMA1_Stream6 ((DMA_Stream_TypeDef *) DMA1_Stream6_BASE) +#define DMA1_Stream7 ((DMA_Stream_TypeDef *) DMA1_Stream7_BASE) +#define DMA2 ((DMA_TypeDef *) DMA2_BASE) +#define DMA2_Stream0 ((DMA_Stream_TypeDef *) DMA2_Stream0_BASE) +#define DMA2_Stream1 ((DMA_Stream_TypeDef *) DMA2_Stream1_BASE) +#define DMA2_Stream2 ((DMA_Stream_TypeDef *) DMA2_Stream2_BASE) +#define DMA2_Stream3 ((DMA_Stream_TypeDef *) DMA2_Stream3_BASE) +#define DMA2_Stream4 ((DMA_Stream_TypeDef *) DMA2_Stream4_BASE) +#define DMA2_Stream5 ((DMA_Stream_TypeDef *) DMA2_Stream5_BASE) +#define DMA2_Stream6 ((DMA_Stream_TypeDef *) DMA2_Stream6_BASE) +#define DMA2_Stream7 ((DMA_Stream_TypeDef *) DMA2_Stream7_BASE) +#define ETH ((ETH_TypeDef *) ETH_BASE) +#define OTG_HS ((OTG_HS_TypeDef *) OTG_HS_BASE) +#define OTG_HS_DFIFO0 (((U32 *) OTG_HS_DFIFO0_BASE) ) +#define OTG_HS_DFIFO1 (((U32 *) OTG_HS_DFIFO1_BASE) ) +#define OTG_HS_DFIFO2 (((U32 *) OTG_HS_DFIFO2_BASE) ) +#define OTG_HS_DFIFO3 (((U32 *) OTG_HS_DFIFO3_BASE) ) +#define OTG_HS_DFIFO4 (((U32 *) OTG_HS_DFIFO4_BASE) ) +#define OTG_HS_DFIFO5 (((U32 *) OTG_HS_DFIFO5_BASE) ) +#define OTG_HS_DFIFO6 (((U32 *) OTG_HS_DFIFO6_BASE) ) +#define OTG_HS_DFIFO7 (((U32 *) OTG_HS_DFIFO7_BASE) ) +#define OTG_HS_DFIFO8 (((U32 *) OTG_HS_DFIFO8_BASE) ) +#define OTG_HS_DFIFO9 (((U32 *) OTG_HS_DFIFO9_BASE) ) +#define OTG_HS_DFIFO10 (((U32 *) OTG_HS_DFIFO10_BASE) ) +#define OTG_HS_DFIFO11 (((U32 *) OTG_HS_DFIFO11_BASE) ) +#define OTG_HS_DFIFO12 (((U32 *) OTG_HS_DFIFO12_BASE) ) +#define OTG_HS_DFIFO13 (((U32 *) OTG_HS_DFIFO13_BASE) ) +#define OTG_HS_DFIFO14 (((U32 *) OTG_HS_DFIFO14_BASE) ) +#define OTG_HS_DFIFO15 (((U32 *) OTG_HS_DFIFO15_BASE) ) +#define OTG_FS ((OTG_FS_TypeDef *) OTG_FS_BASE) +#define OTG_FS_DFIFO0 (((U32 *) OTG_FS_DFIFO0_BASE) ) +#define OTG_FS_DFIFO1 (((U32 *) OTG_FS_DFIFO1_BASE) ) +#define OTG_FS_DFIFO2 (((U32 *) OTG_FS_DFIFO2_BASE) ) +#define OTG_FS_DFIFO3 (((U32 *) OTG_FS_DFIFO3_BASE) ) +#define OTG_FS_DFIFO4 (((U32 *) OTG_FS_DFIFO4_BASE) ) +#define OTG_FS_DFIFO5 (((U32 *) OTG_FS_DFIFO5_BASE) ) +#define OTG_FS_DFIFO6 (((U32 *) OTG_FS_DFIFO6_BASE) ) +#define OTG_FS_DFIFO7 (((U32 *) OTG_FS_DFIFO7_BASE) ) +#define DCMI ((DCMI_TypeDef *) DCMI_BASE) +#define CRYP ((CRYP_TypeDef *) CRYP_BASE) +#define HASH ((HASH_TypeDef *) HASH_BASE) +#define RNG ((RNG_TypeDef *) RNG_BASE) +#define FSMC_Bank1 ((FSMC_Bank1_TypeDef *) FSMC_Bank1_R_BASE) +#define FSMC_Bank1E ((FSMC_Bank1E_TypeDef *) FSMC_Bank1E_R_BASE) +#define FSMC_Bank2 ((FSMC_Bank2_TypeDef *) FSMC_Bank2_R_BASE) +#define FSMC_Bank3 ((FSMC_Bank3_TypeDef *) FSMC_Bank3_R_BASE) +#define FSMC_Bank4 ((FSMC_Bank4_TypeDef *) FSMC_Bank4_R_BASE) +#define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE) + +/** + * @} + */ + +/** @addtogroup Exported_constants + * @{ + */ + + /** @addtogroup Peripheral_Registers_Bits_Definition + * @{ + */ + +/******************************************************************************/ +/* Peripheral Registers_Bits_Definition */ +/******************************************************************************/ + +/******************************************************************************/ +/* */ +/* Analog to Digital Converter */ +/* */ +/******************************************************************************/ +/******************** Bit definition for ADC_SR register ********************/ +#define ADC_SR_AWD ((uint8_t)0x01) /*!
© COPYRIGHT 2012 STMicroelectronics
+ * + * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); + * You may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.st.com/software_license_agreement_liberty_v2 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F2xx_CONF_H +#define __STM32F2xx_CONF_H + +/* Includes ------------------------------------------------------------------*/ +/* Uncomment the line below to enable peripheral header file inclusion */ +#include "stm32f2xx_adc.h" +#include "stm32f2xx_can.h" +#include "stm32f2xx_crc.h" +#include "stm32f2xx_cryp.h" +#include "stm32f2xx_dac.h" +#include "stm32f2xx_dbgmcu.h" +#include "stm32f2xx_dcmi.h" +#include "stm32f2xx_dma.h" +#include "stm32f2xx_exti.h" +#include "stm32f2xx_flash.h" +#include "stm32f2xx_fsmc.h" +#include "stm32f2xx_hash.h" +#include "stm32f2xx_gpio.h" +#include "stm32f2xx_i2c.h" +#include "stm32f2xx_iwdg.h" +#include "stm32f2xx_pwr.h" +#include "stm32f2xx_rcc.h" +#include "stm32f2xx_rng.h" +#include "stm32f2xx_rtc.h" +#include "stm32f2xx_sdio.h" +#include "stm32f2xx_spi.h" +#include "stm32f2xx_syscfg.h" +#include "stm32f2xx_tim.h" +#include "stm32f2xx_usart.h" +#include "stm32f2xx_wwdg.h" +#include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */ + +/* Exported types ------------------------------------------------------------*/ +/* Exported constants --------------------------------------------------------*/ + +/* If an external clock source is used, then the value of the following define + should be set to the value of the external clock source, else, if no external + clock is used, keep this define commented */ +/*#define I2S_EXTERNAL_CLOCK_VAL 12288000 */ /* Value of the external clock in Hz */ + + +/* Uncomment the line below to expanse the "assert_param" macro in the + Standard Peripheral Library drivers code */ +/* #define USE_FULL_ASSERT 1 */ + +/* Exported macro ------------------------------------------------------------*/ +#ifdef USE_FULL_ASSERT + +/** + * @brief The assert_param macro is used for function's parameters check. + * @param expr: If expr is false, it calls assert_failed function + * which reports the name of the source file and the source + * line number of the call that failed. + * If expr is true, it returns no value. + * @retval None + */ + #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) +/* Exported functions ------------------------------------------------------- */ + void assert_failed(uint8_t* file, uint32_t line); +#else + #define assert_param(expr) ((void)0) +#endif /* USE_FULL_ASSERT */ + +#endif /* __STM32F2xx_CONF_H */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/system_stm32f2xx.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/system_stm32f2xx.c new file mode 100644 index 00000000..0be098c6 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/system_stm32f2xx.c @@ -0,0 +1,554 @@ +/** + ****************************************************************************** + * @file system_stm32f2xx.c + * @author MCD Application Team + * @version V1.0.0 + * @date 18-April-2011 + * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Source File. + * This file contains the system clock configuration for STM32F2xx devices, + * and is generated by the clock configuration tool + * "STM32f2xx_Clock_Configuration_V1.0.0.xls" + * + * 1. This file provides two functions and one global variable to be called from + * user application: + * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier + * and Divider factors, AHB/APBx prescalers and Flash settings), + * depending on the configuration made in the clock xls tool. + * This function is called at startup just after reset and + * before branch to main program. This call is made inside + * the "startup_stm32f2xx.s" file. + * + * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used + * by the user application to setup the SysTick + * timer or configure other parameters. + * + * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must + * be called whenever the core clock is changed + * during program execution. + * + * 2. After each device reset the HSI (16 MHz) is used as system clock source. + * Then SystemInit() function is called, in "startup_stm32f2xx.s" file, to + * configure the system clock before to branch to main program. + * + * 3. If the system clock source selected by user fails to startup, the SystemInit() + * function will do nothing and HSI still used as system clock source. User can + * add some code to deal with this issue inside the SetSysClock() function. + * + * 4. The default value of HSE crystal is set to 25MHz, refer to "HSE_VALUE" define + * in "stm32f2xx.h" file. When HSE is used as system clock source, directly or + * through PLL, and you are using different crystal you have to adapt the HSE + * value to your own configuration. + * + * 5. This file configures the system clock as follows: + *============================================================================= + *============================================================================= + * Supported STM32F2xx device revision | Rev B and Y + *----------------------------------------------------------------------------- + * System Clock source | PLL (HSE) + *----------------------------------------------------------------------------- + * SYSCLK(Hz) | 120000000 + *----------------------------------------------------------------------------- + * HCLK(Hz) | 120000000 + *----------------------------------------------------------------------------- + * AHB Prescaler | 1 + *----------------------------------------------------------------------------- + * APB1 Prescaler | 4 + *----------------------------------------------------------------------------- + * APB2 Prescaler | 2 + *----------------------------------------------------------------------------- + * HSE Frequency(Hz) | 25000000 + *----------------------------------------------------------------------------- + * PLL_M | 25 + *----------------------------------------------------------------------------- + * PLL_N | 240 + *----------------------------------------------------------------------------- + * PLL_P | 2 + *----------------------------------------------------------------------------- + * PLL_Q | 5 + *----------------------------------------------------------------------------- + * PLLI2S_N | NA + *----------------------------------------------------------------------------- + * PLLI2S_R | NA + *----------------------------------------------------------------------------- + * I2S input clock | NA + *----------------------------------------------------------------------------- + * VDD(V) | 3.3 + *----------------------------------------------------------------------------- + * Flash Latency(WS) | 3 + *----------------------------------------------------------------------------- + * Prefetch Buffer | ON + *----------------------------------------------------------------------------- + * Instruction cache | ON + *----------------------------------------------------------------------------- + * Data cache | ON + *----------------------------------------------------------------------------- + * Require 48MHz for USB OTG FS, | Enabled + * SDIO and RNG clock | + *----------------------------------------------------------------------------- + *============================================================================= + ****************************************************************************** + * @attention + * + * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS + * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE + * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY + * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING + * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE + * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. + * + *

© COPYRIGHT 2011 STMicroelectronics

+ ****************************************************************************** + */ + +/** @addtogroup CMSIS + * @{ + */ + +/** @addtogroup stm32f2xx_system + * @{ + */ + +/** @addtogroup STM32F2xx_System_Private_Includes + * @{ + */ + +#include "stm32f2xx.h" + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_TypesDefinitions + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_Defines + * @{ + */ + +/*!< Uncomment the following line if you need to use external SRAM mounted + on STM322xG_EVAL board as data memory */ +/* #define DATA_IN_ExtSRAM */ + +/*!< Uncomment the following line if you need to relocate your vector Table in + Internal SRAM. */ +/* #define VECT_TAB_SRAM */ +#define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field. + This value must be a multiple of 0x200. */ + + +/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */ +#define PLL_M 25 +#define PLL_N 240 + +/* SYSCLK = PLL_VCO / PLL_P */ +#define PLL_P 2 + +/* USB OTG FS, SDIO and RNG Clock = PLL_VCO / PLLQ */ +#define PLL_Q 5 + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_Macros + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_Variables + * @{ + */ + + uint32_t SystemCoreClock = 120000000; + + __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_FunctionPrototypes + * @{ + */ + +static void SetSysClock(void); +#ifdef DATA_IN_ExtSRAM + static void SystemInit_ExtMemCtl(void); +#endif /* DATA_IN_ExtSRAM */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Private_Functions + * @{ + */ + +/** + * @brief Setup the microcontroller system + * Initialize the Embedded Flash Interface, the PLL and update the + * SystemFrequency variable. + * @param None + * @retval None + */ +void SystemInit(void) +{ + /* Reset the RCC clock configuration to the default reset state ------------*/ + /* Set HSION bit */ + RCC->CR |= (uint32_t)0x00000001; + + /* Reset CFGR register */ + RCC->CFGR = 0x00000000; + + /* Reset HSEON, CSSON and PLLON bits */ + RCC->CR &= (uint32_t)0xFEF6FFFF; + + /* Reset PLLCFGR register */ + RCC->PLLCFGR = 0x24003010; + + /* Reset HSEBYP bit */ + RCC->CR &= (uint32_t)0xFFFBFFFF; + + /* Disable all interrupts */ + RCC->CIR = 0x00000000; + +#ifdef DATA_IN_ExtSRAM + SystemInit_ExtMemCtl(); +#endif /* DATA_IN_ExtSRAM */ + + /* Configure the System clock source, PLL Multiplier and Divider factors, + AHB/APBx prescalers and Flash settings ----------------------------------*/ + SetSysClock(); + +/* We disable the vector table mapping if we actively debug because we are doing this in our +** debugger script. By doing this in the debugger script, we can switch between flash or ram execution. +** For the release version, please enable the code below by undefining __DONT_INIT_VTABLE +*/ + + /* Configure the Vector Table location add offset address ------------------*/ + /* If you work ith the STlink for debug, please don't use this. */ +#ifndef __DONT_INIT_VTABLE + /* vector table initialization disabled because this is handled by the OpenBLT + * bootloader, right before this program is started. Alternatively, you can + * enable this code again as long as you set VECT_TAB_OFFSET to the actual start + * address of the vector table. This is not the default start in flash because this + * is where the OpenBLT bootloader resides. + */ + #if 0 + #ifdef VECT_TAB_SRAM + SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ + #else + SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */ + #endif + #endif /* #if 0 */ +#else +#warning For release version do not use __DONT_INIT_VTABLE (see above). +#endif +} + +/** + * @brief Update SystemCoreClock variable according to Clock Register Values. + * The SystemCoreClock variable contains the core clock (HCLK), it can + * be used by the user application to setup the SysTick timer or configure + * other parameters. + * + * @note Each time the core clock (HCLK) changes, this function must be called + * to update SystemCoreClock variable value. Otherwise, any configuration + * based on this variable will be incorrect. + * + * @note - The system frequency computed by this function is not the real + * frequency in the chip. It is calculated based on the predefined + * constant and the selected clock source: + * + * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*) + * + * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**) + * + * - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**) + * or HSI_VALUE(*) multiplied/divided by the PLL factors. + * + * (*) HSI_VALUE is a constant defined in stm32f2xx.h file (default value + * 16 MHz) but the real value may vary depending on the variations + * in voltage and temperature. + * + * (**) HSE_VALUE is a constant defined in stm32f2xx.h file (default value + * 25 MHz), user has to ensure that HSE_VALUE is same as the real + * frequency of the crystal used. Otherwise, this function may + * have wrong result. + * + * - The result of this function could be not correct when using fractional + * value for HSE crystal. + * + * @param None + * @retval None + */ +void SystemCoreClockUpdate(void) +{ + uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2; + + /* Get SYSCLK source -------------------------------------------------------*/ + tmp = RCC->CFGR & RCC_CFGR_SWS; + + switch (tmp) + { + case 0x00: /* HSI used as system clock source */ + SystemCoreClock = HSI_VALUE; + break; + case 0x04: /* HSE used as system clock source */ + SystemCoreClock = HSE_VALUE; + break; + case 0x08: /* PLL used as system clock source */ + + /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N + SYSCLK = PLL_VCO / PLL_P + */ + pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> 22; + pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; + + if (pllsource != 0) + { + /* HSE used as PLL clock source */ + pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); + } + else + { + /* HSI used as PLL clock source */ + pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6); + } + + pllp = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >>16) + 1 ) *2; + SystemCoreClock = pllvco/pllp; + break; + default: + SystemCoreClock = HSI_VALUE; + break; + } + /* Compute HCLK frequency --------------------------------------------------*/ + /* Get HCLK prescaler */ + tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4)]; + /* HCLK frequency */ + SystemCoreClock >>= tmp; +} + +/** + * @brief Configures the System clock source, PLL Multiplier and Divider factors, + * AHB/APBx prescalers and Flash settings + * @Note This function should be called only once the RCC clock configuration + * is reset to the default reset state (done in SystemInit() function). + * @param None + * @retval None + */ +static void SetSysClock(void) +{ +/******************************************************************************/ +/* PLL (clocked by HSE) used as System clock source */ +/******************************************************************************/ + __IO uint32_t StartUpCounter = 0, HSEStatus = 0; + + /* Enable HSE */ + RCC->CR |= ((uint32_t)RCC_CR_HSEON); + + /* Wait till HSE is ready and if Time out is reached exit */ + do + { + HSEStatus = RCC->CR & RCC_CR_HSERDY; + StartUpCounter++; + } while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT)); + + if ((RCC->CR & RCC_CR_HSERDY) != RESET) + { + HSEStatus = (uint32_t)0x01; + } + else + { + HSEStatus = (uint32_t)0x00; + } + + if (HSEStatus == (uint32_t)0x01) + { + /* HCLK = SYSCLK / 1*/ + RCC->CFGR |= RCC_CFGR_HPRE_DIV1; + + /* PCLK2 = HCLK / 2*/ + RCC->CFGR |= RCC_CFGR_PPRE2_DIV2; + + /* PCLK1 = HCLK / 4*/ + RCC->CFGR |= RCC_CFGR_PPRE1_DIV4; + + /* Configure the main PLL */ + RCC->PLLCFGR = PLL_M | (PLL_N << 6) | (((PLL_P >> 1) -1) << 16) | + (RCC_PLLCFGR_PLLSRC_HSE) | (PLL_Q << 24); + + /* Enable the main PLL */ + RCC->CR |= RCC_CR_PLLON; + + /* Wait till the main PLL is ready */ + while((RCC->CR & RCC_CR_PLLRDY) == 0) + { + } + + /* Configure Flash prefetch, Instruction cache, Data cache and wait state */ + FLASH->ACR = FLASH_ACR_PRFTEN | FLASH_ACR_ICEN | FLASH_ACR_DCEN | FLASH_ACR_LATENCY_3WS; + + /* Select the main PLL as system clock source */ + RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_SW)); + RCC->CFGR |= RCC_CFGR_SW_PLL; + + /* Wait till the main PLL is used as system clock source */ + while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL); + { + } + } + else + { /* If HSE fails to start-up, the application will have wrong clock + configuration. User can add here some code to deal with this error */ + } + +} + +/** + * @brief Setup the external memory controller. Called in startup_stm32f2xx.s + * before jump to __main + * @param None + * @retval None + */ +#ifdef DATA_IN_ExtSRAM +/** + * @brief Setup the external memory controller. + * Called in startup_stm32f2xx.s before jump to main. + * This function configures the external SRAM mounted on STM322xG_EVAL board + * This SRAM will be used as program data memory (including heap and stack). + * @param None + * @retval None + */ +void SystemInit_ExtMemCtl(void) +{ +/*-- GPIOs Configuration -----------------------------------------------------*/ +/* + +-------------------+--------------------+------------------+------------------+ + + SRAM pins assignment + + +-------------------+--------------------+------------------+------------------+ + | PD0 <-> FSMC_D2 | PE0 <-> FSMC_NBL0 | PF0 <-> FSMC_A0 | PG0 <-> FSMC_A10 | + | PD1 <-> FSMC_D3 | PE1 <-> FSMC_NBL1 | PF1 <-> FSMC_A1 | PG1 <-> FSMC_A11 | + | PD4 <-> FSMC_NOE | PE7 <-> FSMC_D4 | PF2 <-> FSMC_A2 | PG2 <-> FSMC_A12 | + | PD5 <-> FSMC_NWE | PE8 <-> FSMC_D5 | PF3 <-> FSMC_A3 | PG3 <-> FSMC_A13 | + | PD8 <-> FSMC_D13 | PE9 <-> FSMC_D6 | PF4 <-> FSMC_A4 | PG4 <-> FSMC_A14 | + | PD9 <-> FSMC_D14 | PE10 <-> FSMC_D7 | PF5 <-> FSMC_A5 | PG5 <-> FSMC_A15 | + | PD10 <-> FSMC_D15 | PE11 <-> FSMC_D8 | PF12 <-> FSMC_A6 | PG9 <-> FSMC_NE2 | + | PD11 <-> FSMC_A16 | PE12 <-> FSMC_D9 | PF13 <-> FSMC_A7 |------------------+ + | PD12 <-> FSMC_A17 | PE13 <-> FSMC_D10 | PF14 <-> FSMC_A8 | + | PD14 <-> FSMC_D0 | PE14 <-> FSMC_D11 | PF15 <-> FSMC_A9 | + | PD15 <-> FSMC_D1 | PE15 <-> FSMC_D12 |------------------+ + +-------------------+--------------------+ +*/ + /* Enable GPIOD, GPIOE, GPIOF and GPIOG interface clock */ + RCC->AHB1ENR = 0x00000078; + + /* Connect PDx pins to FSMC Alternate function */ + GPIOD->AFR[0] = 0x00cc00cc; + GPIOD->AFR[1] = 0xcc0ccccc; + /* Configure PDx pins in Alternate function mode */ + GPIOD->MODER = 0xa2aa0a0a; + /* Configure PDx pins speed to 100 MHz */ + GPIOD->OSPEEDR = 0xf3ff0f0f; + /* Configure PDx pins Output type to push-pull */ + GPIOD->OTYPER = 0x00000000; + /* No pull-up, pull-down for PDx pins */ + GPIOD->PUPDR = 0x00000000; + + /* Connect PEx pins to FSMC Alternate function */ + GPIOE->AFR[0] = 0xc00000cc; + GPIOE->AFR[1] = 0xcccccccc; + /* Configure PEx pins in Alternate function mode */ + GPIOE->MODER = 0xaaaa800a; + /* Configure PEx pins speed to 100 MHz */ + GPIOE->OSPEEDR = 0xffffc00f; + /* Configure PEx pins Output type to push-pull */ + GPIOE->OTYPER = 0x00000000; + /* No pull-up, pull-down for PEx pins */ + GPIOE->PUPDR = 0x00000000; + + /* Connect PFx pins to FSMC Alternate function */ + GPIOF->AFR[0] = 0x00cccccc; + GPIOF->AFR[1] = 0xcccc0000; + /* Configure PFx pins in Alternate function mode */ + GPIOF->MODER = 0xaa000aaa; + /* Configure PFx pins speed to 100 MHz */ + GPIOF->OSPEEDR = 0xff000fff; + /* Configure PFx pins Output type to push-pull */ + GPIOF->OTYPER = 0x00000000; + /* No pull-up, pull-down for PFx pins */ + GPIOF->PUPDR = 0x00000000; + + /* Connect PGx pins to FSMC Alternate function */ + GPIOG->AFR[0] = 0x00cccccc; + GPIOG->AFR[1] = 0x000000c0; + /* Configure PGx pins in Alternate function mode */ + GPIOG->MODER = 0x00080aaa; + /* Configure PGx pins speed to 100 MHz */ + GPIOG->OSPEEDR = 0x000c0fff; + /* Configure PGx pins Output type to push-pull */ + GPIOG->OTYPER = 0x00000000; + /* No pull-up, pull-down for PGx pins */ + GPIOG->PUPDR = 0x00000000; + +/*-- FSMC Configuration ------------------------------------------------------*/ + /* Enable the FSMC interface clock */ + RCC->AHB3ENR = 0x00000001; + + /* Configure and enable Bank1_SRAM2 */ + FSMC_Bank1->BTCR[2] = 0x00001015; + FSMC_Bank1->BTCR[3] = 0x00010400; + FSMC_Bank1E->BWTR[2] = 0x0fffffff; +/* + Bank1_SRAM2 is configured as follow: + + p.FSMC_AddressSetupTime = 0; + p.FSMC_AddressHoldTime = 0; + p.FSMC_DataSetupTime = 4; + p.FSMC_BusTurnAroundDuration = 1; + p.FSMC_CLKDivision = 0; + p.FSMC_DataLatency = 0; + p.FSMC_AccessMode = FSMC_AccessMode_A; + + FSMC_NORSRAMInitStructure.FSMC_Bank = FSMC_Bank1_NORSRAM2; + FSMC_NORSRAMInitStructure.FSMC_DataAddressMux = FSMC_DataAddressMux_Disable; + FSMC_NORSRAMInitStructure.FSMC_MemoryType = FSMC_MemoryType_PSRAM; + FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_16b; + FSMC_NORSRAMInitStructure.FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable; + FSMC_NORSRAMInitStructure.FSMC_AsynchronousWait = FSMC_AsynchronousWait_Disable; + FSMC_NORSRAMInitStructure.FSMC_WaitSignalPolarity = FSMC_WaitSignalPolarity_Low; + FSMC_NORSRAMInitStructure.FSMC_WrapMode = FSMC_WrapMode_Disable; + FSMC_NORSRAMInitStructure.FSMC_WaitSignalActive = FSMC_WaitSignalActive_BeforeWaitState; + FSMC_NORSRAMInitStructure.FSMC_WriteOperation = FSMC_WriteOperation_Enable; + FSMC_NORSRAMInitStructure.FSMC_WaitSignal = FSMC_WaitSignal_Disable; + FSMC_NORSRAMInitStructure.FSMC_ExtendedMode = FSMC_ExtendedMode_Disable; + FSMC_NORSRAMInitStructure.FSMC_WriteBurst = FSMC_WriteBurst_Disable; + FSMC_NORSRAMInitStructure.FSMC_ReadWriteTimingStruct = &p; + FSMC_NORSRAMInitStructure.FSMC_WriteTimingStruct = &p; +*/ + +} +#endif /* DATA_IN_ExtSRAM */ + + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ +/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/system_stm32f2xx.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/system_stm32f2xx.h new file mode 100644 index 00000000..6c251c34 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/lib/system_stm32f2xx.h @@ -0,0 +1,99 @@ +/** + ****************************************************************************** + * @file system_stm32f2xx.h + * @author MCD Application Team + * @version V1.0.0 + * @date 18-April-2011 + * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Header File. + ****************************************************************************** + * @attention + * + * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS + * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE + * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY + * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING + * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE + * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. + * + *

© COPYRIGHT 2011 STMicroelectronics

+ ****************************************************************************** + */ + +/** @addtogroup CMSIS + * @{ + */ + +/** @addtogroup stm32f2xx_system + * @{ + */ + +/** + * @brief Define to prevent recursive inclusion + */ +#ifndef __SYSTEM_STM32F2XX_H +#define __SYSTEM_STM32F2XX_H + +#ifdef __cplusplus + extern "C" { +#endif + +/** @addtogroup STM32F2xx_System_Includes + * @{ + */ + +/** + * @} + */ + + +/** @addtogroup STM32F2xx_System_Exported_types + * @{ + */ + +extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ + + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Constants + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Macros + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Functions + * @{ + */ + +extern void SystemInit(void); +extern void SystemCoreClockUpdate(void); +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif /*__SYSTEM_STM32F2XX_H */ + +/** + * @} + */ + +/** + * @} + */ +/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/main.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/main.c new file mode 100644 index 00000000..8e34e225 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/main.c @@ -0,0 +1,83 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\main.c +* \brief Demo program application source file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "header.h" /* generic header */ + + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +static void Init(void); + + +/************************************************************************************//** +** \brief This is the entry point for the bootloader application and is called +** by the reset interrupt vector after the C-startup routines executed. +** \return Program exit code. +** +****************************************************************************************/ +int main(void) +{ + /* initialize the microcontroller */ + Init(); + /* initialize the bootloader interface */ + BootComInit(); + + /* start the infinite program loop */ + while (1) + { + /* toggle LED with a fixed frequency */ + LedToggle(); + /* check for bootloader activation request */ + BootComCheckActivationRequest(); + } + /* set program exit code. note that the program should never get here */ + return 0; +} /*** end of main ***/ + + +/************************************************************************************//** +** \brief Initializes the microcontroller. +** \return none. +** +****************************************************************************************/ +static void Init(void) +{ + /* init the led driver */ + LedInit(); + /* init the timer driver */ + TimerInit(); + /* enable IRQ's, because they were initially disabled by the bootloader */ + IrqInterruptEnable(); +} /*** end of Init ***/ + + +/*********************************** end of main.c *************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/prog.dox b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/prog.dox new file mode 100644 index 00000000..fb8e8fe5 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/prog.dox @@ -0,0 +1,7 @@ +/** +\defgroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC User Program +\brief User Program. +\ingroup ARMCM3_STM32F2_Olimex_STM32F207_GCC +*/ + + diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/startup_stm32f2xx.S b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/startup_stm32f2xx.S new file mode 100644 index 00000000..23c6fea9 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/startup_stm32f2xx.S @@ -0,0 +1,362 @@ +/* File: startup_stm32f2xx.S + * Purpose: startup file for Cortex-M3 devices. Should use with + * GCC for ARM Embedded Processors + * Version: V1.3 + * Date: 08 Feb 2012 + * + * Copyright (c) 2012, ARM Limited + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the ARM Limited nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL ARM LIMITED BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES// + * LOSS OF USE, DATA, OR PROFITS// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + .syntax unified + .arch armv7-m + + .section .stack + .align 3 +#ifdef __STACK_SIZE + .equ Stack_Size, __STACK_SIZE +#else + .equ Stack_Size, 0x400 +#endif + .globl __StackTop + .globl __StackLimit +__StackLimit: + .space Stack_Size + .size __StackLimit, . - __StackLimit +__StackTop: + .size __StackTop, . - __StackTop + + .section .heap + .align 3 +#ifdef __HEAP_SIZE + .equ Heap_Size, __HEAP_SIZE +#else + .equ Heap_Size, 0xC00 +#endif + .globl __HeapBase + .globl __HeapLimit +__HeapBase: + .if Heap_Size + .space Heap_Size + .endif + .size __HeapBase, . - __HeapBase +__HeapLimit: + .size __HeapLimit, . - __HeapLimit + + .section .isr_vector + .align 2 + .globl __isr_vector +__isr_vector: + .long __StackTop /* Top of Stack */ + .long Reset_Handler /* Reset Handler */ + .long NMI_Handler /* NMI Handler */ + .long HardFault_Handler /* Hard Fault Handler */ + .long MemManage_Handler /* MPU Fault Handler */ + .long BusFault_Handler /* Bus Fault Handler */ + .long UsageFault_Handler /* Usage Fault Handler */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long SVC_Handler /* SVCall Handler */ + .long DebugMon_Handler /* Debug Monitor Handler */ + .long 0 /* Reserved */ + .long PendSV_Handler /* PendSV Handler */ + .long SysTick_Handler /* SysTick Handler */ + + // External Interrupts + .long WWDG_IRQHandler // Window WatchDog + .long PVD_IRQHandler // PVD through EXTI Line detection + .long TAMP_STAMP_IRQHandler // Tamper and TimeStamps through the EXTI line + .long RTC_WKUP_IRQHandler // RTC Wakeup through the EXTI line + .long FLASH_IRQHandler // FLASH + .long RCC_IRQHandler // RCC + .long EXTI0_IRQHandler // EXTI Line0 + .long EXTI1_IRQHandler // EXTI Line1 + .long EXTI2_IRQHandler // EXTI Line2 + .long EXTI3_IRQHandler // EXTI Line3 + .long EXTI4_IRQHandler // EXTI Line4 + .long DMA1_Stream0_IRQHandler // DMA1 Stream 0 + .long DMA1_Stream1_IRQHandler // DMA1 Stream 1 + .long DMA1_Stream2_IRQHandler // DMA1 Stream 2 + .long DMA1_Stream3_IRQHandler // DMA1 Stream 3 + .long DMA1_Stream4_IRQHandler // DMA1 Stream 4 + .long DMA1_Stream5_IRQHandler // DMA1 Stream 5 + .long DMA1_Stream6_IRQHandler // DMA1 Stream 6 + .long ADC_IRQHandler // ADC1, ADC2 and ADC3s + .long CAN1_TX_IRQHandler // CAN1 TX + .long CAN1_RX0_IRQHandler // CAN1 RX0 + .long CAN1_RX1_IRQHandler // CAN1 RX1 + .long CAN1_SCE_IRQHandler // CAN1 SCE + .long EXTI9_5_IRQHandler // External Line[9:5]s + .long TIM1_BRK_TIM9_IRQHandler // TIM1 Break and TIM9 + .long TIM1_UP_TIM10_IRQHandler // TIM1 Update and TIM10 + .long TIM1_TRG_COM_TIM11_IRQHandler // TIM1 Trigger and Commutation and TIM11 + .long TIM1_CC_IRQHandler // TIM1 Capture Compare + .long TIM2_IRQHandler // TIM2 + .long TIM3_IRQHandler // TIM3 + .long TIM4_IRQHandler // TIM4 + .long I2C1_EV_IRQHandler // I2C1 Event + .long I2C1_ER_IRQHandler // I2C1 Error + .long I2C2_EV_IRQHandler // I2C2 Event + .long I2C2_ER_IRQHandler // I2C2 Error + .long SPI1_IRQHandler // SPI1 + .long SPI2_IRQHandler // SPI2 + .long USART1_IRQHandler // USART1 + .long USART2_IRQHandler // USART2 + .long USART3_IRQHandler // USART3 + .long EXTI15_10_IRQHandler // External Line[15:10]s + .long RTC_Alarm_IRQHandler // RTC Alarm (A and B) through EXTI Line + .long OTG_FS_WKUP_IRQHandler // USB OTG FS Wakeup through EXTI line + .long TIM8_BRK_TIM12_IRQHandler // TIM8 Break and TIM12 + .long TIM8_UP_TIM13_IRQHandler // TIM8 Update and TIM13 + .long TIM8_TRG_COM_TIM14_IRQHandler // TIM8 Trigger and Commutation and TIM14 + .long TIM8_CC_IRQHandler // TIM8 Capture Compare + .long DMA1_Stream7_IRQHandler // DMA1 Stream7 + .long FSMC_IRQHandler // FSMC + .long SDIO_IRQHandler // SDIO + .long TIM5_IRQHandler // TIM5 + .long SPI3_IRQHandler // SPI3 + .long UART4_IRQHandler // UART4 + .long UART5_IRQHandler // UART5 + .long TIM6_DAC_IRQHandler // TIM6 and DAC1&2 underrun errors + .long TIM7_IRQHandler // TIM7 + .long DMA2_Stream0_IRQHandler // DMA2 Stream 0 + .long DMA2_Stream1_IRQHandler // DMA2 Stream 1 + .long DMA2_Stream2_IRQHandler // DMA2 Stream 2 + .long DMA2_Stream3_IRQHandler // DMA2 Stream 3 + .long DMA2_Stream4_IRQHandler // DMA2 Stream 4 + .long ETH_IRQHandler // Ethernet + .long ETH_WKUP_IRQHandler // Ethernet Wakeup through EXTI line + .long CAN2_TX_IRQHandler // CAN2 TX + .long CAN2_RX0_IRQHandler // CAN2 RX0 + .long CAN2_RX1_IRQHandler // CAN2 RX1 + .long CAN2_SCE_IRQHandler // CAN2 SCE + .long OTG_FS_IRQHandler // USB OTG FS + .long DMA2_Stream5_IRQHandler // DMA2 Stream 5 + .long DMA2_Stream6_IRQHandler // DMA2 Stream 6 + .long DMA2_Stream7_IRQHandler // DMA2 Stream 7 + .long USART6_IRQHandler // USART6 + .long I2C3_EV_IRQHandler // I2C3 event + .long I2C3_ER_IRQHandler // I2C3 error + .long OTG_HS_EP1_OUT_IRQHandler // USB OTG HS End Point 1 Out + .long OTG_HS_EP1_IN_IRQHandler // USB OTG HS End Point 1 In + .long OTG_HS_WKUP_IRQHandler // USB OTG HS Wakeup through EXTI + .long OTG_HS_IRQHandler // USB OTG HS + .long DCMI_IRQHandler // DCMI + .long CRYP_IRQHandler // CRYP crypto + .long HASH_RNG_IRQHandler // Hash and Rng + .long 0x55AA11EE // Reserved for OpenBLT checksum + + .size __isr_vector, . - __isr_vector + + .text + .thumb + .thumb_func + .align 2 + .globl Reset_Handler + .type Reset_Handler, %function +Reset_Handler: +/* Initialize the stackpointer. this is done automatically after a reset event, but + * this program is started by the bootloader and not a reset event. */ + ldr r1, =__StackTop + mov sp, r1 + +/* Loop to copy data from read only memory to RAM. The ranges + * of copy from/to are specified by following symbols evaluated in + * linker script. + * __etext: End of code section, i.e., begin of data sections to copy from. + * __data_start__/__data_end__: RAM address range that data should be + * copied to. Both must be aligned to 4 bytes boundary. */ + + ldr r1, =__etext + ldr r2, =__data_start__ + ldr r3, =__data_end__ + +#if 1 +/* Here are two copies of loop implemenations. First one favors code size + * and the second one favors performance. Default uses the first one. + * Change to "#if 0" to use the second one */ +.flash_to_ram_loop: + cmp r2, r3 + ittt lt + ldrlt r0, [r1], #4 + strlt r0, [r2], #4 + blt .flash_to_ram_loop +#else + subs r3, r2 + ble .flash_to_ram_loop_end +.flash_to_ram_loop: + subs r3, #4 + ldr r0, [r1, r3] + str r0, [r2, r3] + bgt .flash_to_ram_loop +.flash_to_ram_loop_end: +#endif + +#ifndef __NO_SYSTEM_INIT + ldr r0, =SystemInit + blx r0 +#endif + + ldr r0, =_start + bx r0 + .pool + .size Reset_Handler, . - Reset_Handler + +/* Our weak _start alternative if we don't use the library _start + * The zero init section must be cleared, otherwise the librtary is + * doing that */ + .align 1 + .thumb_func + .weak _start + .type _start, %function +_start: + + /* Zero fill the bss segment. */ + ldr r1, = __bss_start__ + ldr r2, = __bss_end__ + movs r3, #0 + b .fill_zero_bss +.loop_zero_bss: + str r3, [r1], #4 + +.fill_zero_bss: + cmp r1, r2 + bcc .loop_zero_bss + + /* Jump to our main */ + bl main + b . + .size _start, . - _start + +/* Macro to define default handlers. Default handler + * will be weak symbol and just dead loops. They can be + * overwritten by other handlers */ + .macro def_irq_handler handler_name + .align 1 + .thumb_func + .weak \handler_name + .type \handler_name, %function +\handler_name : + b . + .size \handler_name, . - \handler_name + .endm + + def_irq_handler NMI_Handler + def_irq_handler HardFault_Handler + def_irq_handler MemManage_Handler + def_irq_handler BusFault_Handler + def_irq_handler UsageFault_Handler + def_irq_handler SVC_Handler + def_irq_handler DebugMon_Handler + def_irq_handler PendSV_Handler + def_irq_handler SysTick_Handler + def_irq_handler Default_Handler + + // External Interrupts + def_irq_handler WWDG_IRQHandler // Window WatchDog + def_irq_handler PVD_IRQHandler // PVD through EXTI Line detection + def_irq_handler TAMP_STAMP_IRQHandler // Tamper and TimeStamps through the EXTI line + def_irq_handler RTC_WKUP_IRQHandler // RTC Wakeup through the EXTI line + def_irq_handler FLASH_IRQHandler // FLASH + def_irq_handler RCC_IRQHandler // RCC + def_irq_handler EXTI0_IRQHandler // EXTI Line0 + def_irq_handler EXTI1_IRQHandler // EXTI Line1 + def_irq_handler EXTI2_IRQHandler // EXTI Line2 + def_irq_handler EXTI3_IRQHandler // EXTI Line3 + def_irq_handler EXTI4_IRQHandler // EXTI Line4 + def_irq_handler DMA1_Stream0_IRQHandler // DMA1 Stream 0 + def_irq_handler DMA1_Stream1_IRQHandler // DMA1 Stream 1 + def_irq_handler DMA1_Stream2_IRQHandler // DMA1 Stream 2 + def_irq_handler DMA1_Stream3_IRQHandler // DMA1 Stream 3 + def_irq_handler DMA1_Stream4_IRQHandler // DMA1 Stream 4 + def_irq_handler DMA1_Stream5_IRQHandler // DMA1 Stream 5 + def_irq_handler DMA1_Stream6_IRQHandler // DMA1 Stream 6 + def_irq_handler ADC_IRQHandler // ADC1, ADC2 and ADC3s + def_irq_handler CAN1_TX_IRQHandler // CAN1 TX + def_irq_handler CAN1_RX0_IRQHandler // CAN1 RX0 + def_irq_handler CAN1_RX1_IRQHandler // CAN1 RX1 + def_irq_handler CAN1_SCE_IRQHandler // CAN1 SCE + def_irq_handler EXTI9_5_IRQHandler // External Line[9:5]s + def_irq_handler TIM1_BRK_TIM9_IRQHandler // TIM1 Break and TIM9 + def_irq_handler TIM1_UP_TIM10_IRQHandler // TIM1 Update and TIM10 + def_irq_handler TIM1_TRG_COM_TIM11_IRQHandler // TIM1 Trigger and Commutation and TIM11 + def_irq_handler TIM1_CC_IRQHandler // TIM1 Capture Compare + def_irq_handler TIM2_IRQHandler // TIM2 + def_irq_handler TIM3_IRQHandler // TIM3 + def_irq_handler TIM4_IRQHandler // TIM4 + def_irq_handler I2C1_EV_IRQHandler // I2C1 Event + def_irq_handler I2C1_ER_IRQHandler // I2C1 Error + def_irq_handler I2C2_EV_IRQHandler // I2C2 Event + def_irq_handler I2C2_ER_IRQHandler // I2C2 Error + def_irq_handler SPI1_IRQHandler // SPI1 + def_irq_handler SPI2_IRQHandler // SPI2 + def_irq_handler USART1_IRQHandler // USART1 + def_irq_handler USART2_IRQHandler // USART2 + def_irq_handler USART3_IRQHandler // USART3 + def_irq_handler EXTI15_10_IRQHandler // External Line[15:10]s + def_irq_handler RTC_Alarm_IRQHandler // RTC Alarm (A and B) through EXTI Line + def_irq_handler OTG_FS_WKUP_IRQHandler // USB OTG FS Wakeup through EXTI line + def_irq_handler TIM8_BRK_TIM12_IRQHandler // TIM8 Break and TIM12 + def_irq_handler TIM8_UP_TIM13_IRQHandler // TIM8 Update and TIM13 + def_irq_handler TIM8_TRG_COM_TIM14_IRQHandler // TIM8 Trigger and Commutation and TIM14 + def_irq_handler TIM8_CC_IRQHandler // TIM8 Capture Compare + def_irq_handler DMA1_Stream7_IRQHandler // DMA1 Stream7 + def_irq_handler FSMC_IRQHandler // FSMC + def_irq_handler SDIO_IRQHandler // SDIO + def_irq_handler TIM5_IRQHandler // TIM5 + def_irq_handler SPI3_IRQHandler // SPI3 + def_irq_handler UART4_IRQHandler // UART4 + def_irq_handler UART5_IRQHandler // UART5 + def_irq_handler TIM6_DAC_IRQHandler // TIM6 and DAC1&2 underrun errors + def_irq_handler TIM7_IRQHandler // TIM7 + def_irq_handler DMA2_Stream0_IRQHandler // DMA2 Stream 0 + def_irq_handler DMA2_Stream1_IRQHandler // DMA2 Stream 1 + def_irq_handler DMA2_Stream2_IRQHandler // DMA2 Stream 2 + def_irq_handler DMA2_Stream3_IRQHandler // DMA2 Stream 3 + def_irq_handler DMA2_Stream4_IRQHandler // DMA2 Stream 4 + def_irq_handler ETH_IRQHandler // Ethernet + def_irq_handler ETH_WKUP_IRQHandler // Ethernet Wakeup through EXTI line + def_irq_handler CAN2_TX_IRQHandler // CAN2 TX + def_irq_handler CAN2_RX0_IRQHandler // CAN2 RX0 + def_irq_handler CAN2_RX1_IRQHandler // CAN2 RX1 + def_irq_handler CAN2_SCE_IRQHandler // CAN2 SCE + def_irq_handler OTG_FS_IRQHandler // USB OTG FS + def_irq_handler DMA2_Stream5_IRQHandler // DMA2 Stream 5 + def_irq_handler DMA2_Stream6_IRQHandler // DMA2 Stream 6 + def_irq_handler DMA2_Stream7_IRQHandler // DMA2 Stream 7 + def_irq_handler USART6_IRQHandler // USART6 + def_irq_handler I2C3_EV_IRQHandler // I2C3 event + def_irq_handler I2C3_ER_IRQHandler // I2C3 error + def_irq_handler OTG_HS_EP1_OUT_IRQHandler // USB OTG HS End Point 1 Out + def_irq_handler OTG_HS_EP1_IN_IRQHandler // USB OTG HS End Point 1 In + def_irq_handler OTG_HS_WKUP_IRQHandler // USB OTG HS Wakeup through EXTI + def_irq_handler OTG_HS_IRQHandler // USB OTG HS + def_irq_handler DCMI_IRQHandler // DCMI + def_irq_handler CRYP_IRQHandler // CRYP crypto + def_irq_handler HASH_RNG_IRQHandler // Hash and Rng + + + .end diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/stm32f207ze_flash.ld b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/stm32f207ze_flash.ld new file mode 100644 index 00000000..7bef0f08 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/stm32f207ze_flash.ld @@ -0,0 +1,183 @@ +/* ---------------------------------------------------------------------------- */ +/* Em::Blocks embedded development Support */ +/* ---------------------------------------------------------------------------- */ +/* Copyright (c) 2014, EmBlocks */ +/* */ +/* All rights reserved. */ +/* */ +/* Redistribution and use in source and binary forms, with or without */ +/* modification, are permitted provided that the following condition is met: */ +/* */ +/* - Redistributions of source code must retain the above copyright notice, */ +/* this list of conditions and the disclaimer below. */ +/* */ +/* EmBlocks's name may not be used to endorse or promote products derived from */ +/* this software without specific prior written permission. */ +/* */ +/* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY EBLOCKS "AS IS" AND ANY EXPRESS OR */ +/* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */ +/* DISCLAIMED. IN NO EVENT SHALL EMBLOCKS BE LIABLE FOR ANY DIRECT, INDIRECT, */ +/* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ +/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */ +/* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ +/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */ +/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */ +/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* ---------------------------------------------------------------------------- */ + +/*------------------------------------------------------------------------------ + * Linker script for running in internal FLASH on the STM32F207ZE + *----------------------------------------------------------------------------*/ + +OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") +OUTPUT_ARCH(arm) +SEARCH_DIR(.) + +/* Memory Spaces Definitions */ +MEMORY +{ + /* reserve space for the OpenBLT bootloader which occupies the first part + * of flash. + */ + ROM (rx) : ORIGIN = 0x08008000, LENGTH = 512K-32K + RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K +} + +/* Linker script to place sections and symbol values. Should be used together + * with other linker script that defines memory regions FLASH and RAM. + * It references following symbols, which must be defined in code: + * Reset_Handler : Entry of reset handler + * + * It defines following symbols, which code can use without definition: + * __exidx_start + * __exidx_end + * __etext + * __data_start__ + * __preinit_array_start + * __preinit_array_end + * __init_array_start + * __init_array_end + * __fini_array_start + * __fini_array_end + * __data_end__ + * __bss_start__ + * __bss_end__ + * __end__ + * end + * __HeapLimit + * __StackLimit + * __StackTop + * __stack + */ + + +SECTIONS +{ + .text : + { + KEEP(*(.isr_vector)) + *(.text*) + + KEEP(*(.init)) + KEEP(*(.fini)) + + /* .ctors */ + *crtbegin.o(.ctors) + *crtbegin?.o(.ctors) + *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors) + *(SORT(.ctors.*)) + *(.ctors) + + /* .dtors */ + *crtbegin.o(.dtors) + *crtbegin?.o(.dtors) + *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors) + *(SORT(.dtors.*)) + *(.dtors) + + *(.rodata*) + + KEEP(*(.eh_frame*)) + } > ROM + + .ARM.extab : + { + *(.ARM.extab* .gnu.linkonce.armextab.*) + } > ROM + + __exidx_start = .; + .ARM.exidx : + { + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + } > ROM + __exidx_end = .; + + __etext = .; + + .data : AT (__etext) + { + __data_start__ = .; + *(vtable) + *(.data*) + + . = ALIGN(4); + /* preinit data */ + PROVIDE_HIDDEN (__preinit_array_start = .); + KEEP(*(.preinit_array)) + PROVIDE_HIDDEN (__preinit_array_end = .); + + . = ALIGN(4); + /* init data */ + PROVIDE_HIDDEN (__init_array_start = .); + KEEP(*(SORT(.init_array.*))) + KEEP(*(.init_array)) + PROVIDE_HIDDEN (__init_array_end = .); + + + . = ALIGN(4); + /* finit data */ + PROVIDE_HIDDEN (__fini_array_start = .); + KEEP(*(SORT(.fini_array.*))) + KEEP(*(.fini_array)) + PROVIDE_HIDDEN (__fini_array_end = .); + + . = ALIGN(4); + /* All data end */ + __data_end__ = .; + + } > RAM + + .bss (NOLOAD): + { + __bss_start__ = .; + *(.bss*) + *(COMMON) + __bss_end__ = .; + } > RAM + + .heap (NOLOAD): + { + __end__ = .; + end = __end__; + *(.heap*) + __HeapLimit = .; + } > RAM + + /* .stack_dummy section doesn't contains any symbols. It is only + * used for linker to calculate size of stack sections, and assign + * values to stack symbols later */ + .stack_dummy (NOLOAD): + { + *(.stack) + } > RAM + + /* Set stack top to end of RAM, and stack limit move down by + * size of stack_dummy section */ + __StackTop = ORIGIN(RAM) + LENGTH(RAM); + __StackLimit = __StackTop - SIZEOF(.stack_dummy); + PROVIDE(__stack = __StackTop); + + /* Check if data + heap + stack exceeds RAM limit */ + ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack") +} diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/timer.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/timer.c new file mode 100644 index 00000000..61823638 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/timer.c @@ -0,0 +1,106 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\timer.c +* \brief Timer driver source file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "header.h" /* generic header */ + + +/**************************************************************************************** +* Local data declarations +****************************************************************************************/ +/** \brief Local variable for storing the number of milliseconds that have elapsed since + * startup. + */ +static unsigned long millisecond_counter; + + +/************************************************************************************//** +** \brief Initializes the timer. +** \return none. +** +****************************************************************************************/ +void TimerInit(void) +{ + /* configure the SysTick timer for 1 ms period */ + SysTick_Config(SystemCoreClock / 1000); + /* reset the millisecond counter */ + TimerSet(0); +} /*** end of TimerInit ***/ + + +/************************************************************************************//** +** \brief Stops and disables the timer. +** \return none. +** +****************************************************************************************/ +void TimerDeinit(void) +{ + SysTick->CTRL = 0; +} /*** end of TimerDeinit ***/ + + +/************************************************************************************//** +** \brief Sets the initial counter value of the millisecond timer. +** \param timer_value initialize value of the millisecond timer. +** \return none. +** +****************************************************************************************/ +void TimerSet(unsigned long timer_value) +{ + /* set the millisecond counter */ + millisecond_counter = timer_value; +} /*** end of TimerSet ***/ + + +/************************************************************************************//** +** \brief Obtains the counter value of the millisecond timer. +** \return Current value of the millisecond timer. +** +****************************************************************************************/ +unsigned long TimerGet(void) +{ + /* read and return the millisecond counter value */ + return millisecond_counter; +} /*** end of TimerGet ***/ + + +/************************************************************************************//** +** \brief Interrupt service routine of the timer. +** \return none. +** +****************************************************************************************/ +void SysTick_Handler(void) +{ + /* increment the millisecond counter */ + millisecond_counter++; +} /*** end of TimerISRHandler ***/ + + +/*********************************** end of timer.c ************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/timer.h b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/timer.h new file mode 100644 index 00000000..61a83531 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Prog/timer.h @@ -0,0 +1,41 @@ +/************************************************************************************//** +* \file Demo\ARMCM3_STM32F2_Olimex_STM32P207_GCC\Prog\timer.h +* \brief Timer driver header file. +* \ingroup Prog_ARMCM3_STM32F2_Olimex_STM32F207_GCC +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef TIMER_H +#define TIMER_H + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +void TimerInit(void); +void TimerDeinit(void); +void TimerSet(unsigned long timer_value); +unsigned long TimerGet(void); +void TimerISRHandler(void); + +#endif /* TIMER_H */ +/*********************************** end of timer.h ************************************/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/demo.dox b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/demo.dox new file mode 100644 index 00000000..52b77a79 --- /dev/null +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/demo.dox @@ -0,0 +1,8 @@ +/** +\defgroup ARMCM3_STM32F2_Olimex_STM32F207_GCC Demo for Olimex STM32-P207/GCC +\brief Preconfigured programs for the Olimex STM32-P207 and the GCC compiler. +\details Refer to http://feaser.com/openblt/doku.php?id=manual:demos + for detailed getting started instructions. +*/ + + diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.elf b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.elf index 493f9587..a51cda73 100644 Binary files a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.elf and b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.elf differ diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.map b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.map index d463ad79..906779d0 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.map +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.map @@ -1089,7 +1089,7 @@ FLASH 0x08000000 0x00006000 xr Linker script and memory map - 0x08004d38 __do_debug_operation = __do_debug_operation_mempoll + 0x08004d4c __do_debug_operation = __do_debug_operation_mempoll 0x20000000 __SRAM_segment_start__ = 0x20000000 0x20002000 __SRAM_segment_end__ = 0x20002000 0x08000000 __FLASH_segment_start__ = 0x8000000 @@ -1133,7 +1133,7 @@ Linker script and memory map 0x00000001 . = ASSERT (((__init_end__ >= __FLASH_segment_start__) && (__init_end__ <= __FLASH_segment_end__)), error: .init is too large to fit in FLASH memory segment) 0x08000254 __text_load_start__ = ALIGN (__init_end__, 0x4) -.text 0x08000254 0x4b24 +.text 0x08000254 0x4b38 0x08000254 __text_start__ = . *(.text .text.* .glue_7t .glue_7 .gnu.linkonce.t.* .gcc_except_table .ARM.extab* .gnu.linkonce.armextab.*) .glue_7 0x00000000 0x0 linker stubs @@ -1148,360 +1148,360 @@ Linker script and memory map 0x080002ac 0x38 THUMB Debug/../../obj/hooks.o 0x080002ac FileFirmwareUpdateStartedHook .text.FileFirmwareUpdateCompletedHook - 0x080002e4 0x44 THUMB Debug/../../obj/hooks.o + 0x080002e4 0x58 THUMB Debug/../../obj/hooks.o 0x080002e4 FileFirmwareUpdateCompletedHook .text.FileFirmwareUpdateErrorHook - 0x08000328 0x24 THUMB Debug/../../obj/hooks.o - 0x08000328 FileFirmwareUpdateErrorHook + 0x0800033c 0x24 THUMB Debug/../../obj/hooks.o + 0x0800033c FileFirmwareUpdateErrorHook .text.FileFirmwareUpdateLogHook - 0x0800034c 0x64 THUMB Debug/../../obj/hooks.o - 0x0800034c FileFirmwareUpdateLogHook - .text.main 0x080003b0 0x1c0 THUMB Debug/../../obj/main.o - 0x080003b0 main + 0x08000360 0x64 THUMB Debug/../../obj/hooks.o + 0x08000360 FileFirmwareUpdateLogHook + .text.main 0x080003c4 0x1c0 THUMB Debug/../../obj/main.o + 0x080003c4 main .text.xchg_spi - 0x08000570 0x38 THUMB Debug/../../obj/mmc.o + 0x08000584 0x38 THUMB Debug/../../obj/mmc.o .text.wait_ready - 0x080005a8 0x2c THUMB Debug/../../obj/mmc.o + 0x080005bc 0x2c THUMB Debug/../../obj/mmc.o .text.rcvr_spi_m - 0x080005d4 0x10 THUMB Debug/../../obj/mmc.o + 0x080005e8 0x10 THUMB Debug/../../obj/mmc.o .text.rcvr_datablock - 0x080005e4 0x64 THUMB Debug/../../obj/mmc.o + 0x080005f8 0x64 THUMB Debug/../../obj/mmc.o .text.xmit_datablock - 0x08000648 0x60 THUMB Debug/../../obj/mmc.o + 0x0800065c 0x60 THUMB Debug/../../obj/mmc.o .text.deselect - 0x080006a8 0x20 THUMB Debug/../../obj/mmc.o - .text.select 0x080006c8 0x34 THUMB Debug/../../obj/mmc.o + 0x080006bc 0x20 THUMB Debug/../../obj/mmc.o + .text.select 0x080006dc 0x34 THUMB Debug/../../obj/mmc.o .text.send_cmd - 0x080006fc 0xac THUMB Debug/../../obj/mmc.o + 0x08000710 0xac THUMB Debug/../../obj/mmc.o .text.disk_initialize - 0x080007a8 0x364 THUMB Debug/../../obj/mmc.o - 0x080007a8 disk_initialize + 0x080007bc 0x364 THUMB Debug/../../obj/mmc.o + 0x080007bc disk_initialize .text.disk_status - 0x08000b0c 0x18 THUMB Debug/../../obj/mmc.o - 0x08000b0c disk_status + 0x08000b20 0x18 THUMB Debug/../../obj/mmc.o + 0x08000b20 disk_status .text.disk_read - 0x08000b24 0xa8 THUMB Debug/../../obj/mmc.o - 0x08000b24 disk_read + 0x08000b38 0xa8 THUMB Debug/../../obj/mmc.o + 0x08000b38 disk_read .text.disk_write - 0x08000bcc 0xd4 THUMB Debug/../../obj/mmc.o - 0x08000bcc disk_write + 0x08000be0 0xd4 THUMB Debug/../../obj/mmc.o + 0x08000be0 disk_write .text.disk_ioctl - 0x08000ca0 0x310 THUMB Debug/../../obj/mmc.o - 0x08000ca0 disk_ioctl + 0x08000cb4 0x310 THUMB Debug/../../obj/mmc.o + 0x08000cb4 disk_ioctl .text.get_fattime - 0x08000fb0 0xc THUMB Debug/../../obj/mmc.o - 0x08000fb0 get_fattime + 0x08000fc4 0xc THUMB Debug/../../obj/mmc.o + 0x08000fc4 get_fattime .text.GPIO_Init - 0x08000fbc 0xc0 THUMB Debug/../../obj/stm32f10x_gpio.o - 0x08000fbc GPIO_Init + 0x08000fd0 0xc0 THUMB Debug/../../obj/stm32f10x_gpio.o + 0x08000fd0 GPIO_Init .text.GPIO_SetBits - 0x0800107c 0x8 THUMB Debug/../../obj/stm32f10x_gpio.o - 0x0800107c GPIO_SetBits + 0x08001090 0x8 THUMB Debug/../../obj/stm32f10x_gpio.o + 0x08001090 GPIO_SetBits .text.GPIO_ResetBits - 0x08001084 0x8 THUMB Debug/../../obj/stm32f10x_gpio.o - 0x08001084 GPIO_ResetBits + 0x08001098 0x8 THUMB Debug/../../obj/stm32f10x_gpio.o + 0x08001098 GPIO_ResetBits .text.RCC_APB2PeriphClockCmd - 0x0800108c 0x24 THUMB Debug/../../obj/stm32f10x_rcc.o - 0x0800108c RCC_APB2PeriphClockCmd + 0x080010a0 0x24 THUMB Debug/../../obj/stm32f10x_rcc.o + 0x080010a0 RCC_APB2PeriphClockCmd .text.RCC_APB1PeriphClockCmd - 0x080010b0 0x24 THUMB Debug/../../obj/stm32f10x_rcc.o - 0x080010b0 RCC_APB1PeriphClockCmd + 0x080010c4 0x24 THUMB Debug/../../obj/stm32f10x_rcc.o + 0x080010c4 RCC_APB1PeriphClockCmd .text.SPI_Init - 0x080010d4 0x44 THUMB Debug/../../obj/stm32f10x_spi.o - 0x080010d4 SPI_Init - .text.SPI_Cmd 0x08001118 0x20 THUMB Debug/../../obj/stm32f10x_spi.o - 0x08001118 SPI_Cmd + 0x080010e8 0x44 THUMB Debug/../../obj/stm32f10x_spi.o + 0x080010e8 SPI_Init + .text.SPI_Cmd 0x0800112c 0x20 THUMB Debug/../../obj/stm32f10x_spi.o + 0x0800112c SPI_Cmd .text.SPI_I2S_SendData - 0x08001138 0x8 THUMB Debug/../../obj/stm32f10x_spi.o - 0x08001138 SPI_I2S_SendData + 0x0800114c 0x8 THUMB Debug/../../obj/stm32f10x_spi.o + 0x0800114c SPI_I2S_SendData .text.SPI_I2S_ReceiveData - 0x08001140 0x8 THUMB Debug/../../obj/stm32f10x_spi.o - 0x08001140 SPI_I2S_ReceiveData + 0x08001154 0x8 THUMB Debug/../../obj/stm32f10x_spi.o + 0x08001154 SPI_I2S_ReceiveData .text.SPI_CalculateCRC - 0x08001148 0x20 THUMB Debug/../../obj/stm32f10x_spi.o - 0x08001148 SPI_CalculateCRC + 0x0800115c 0x20 THUMB Debug/../../obj/stm32f10x_spi.o + 0x0800115c SPI_CalculateCRC .text.SPI_I2S_GetFlagStatus - 0x08001168 0x10 THUMB Debug/../../obj/stm32f10x_spi.o - 0x08001168 SPI_I2S_GetFlagStatus + 0x0800117c 0x10 THUMB Debug/../../obj/stm32f10x_spi.o + 0x0800117c SPI_I2S_GetFlagStatus .text.USART_SendData - 0x08001178 0xc THUMB Debug/../../obj/stm32f10x_usart.o - 0x08001178 USART_SendData + 0x0800118c 0xc THUMB Debug/../../obj/stm32f10x_usart.o + 0x0800118c USART_SendData .text.USART_GetFlagStatus - 0x08001184 0x10 THUMB Debug/../../obj/stm32f10x_usart.o - 0x08001184 USART_GetFlagStatus + 0x08001198 0x10 THUMB Debug/../../obj/stm32f10x_usart.o + 0x08001198 USART_GetFlagStatus .text.UnusedISR - 0x08001194 0x18 THUMB Debug/../../obj/vectors.o - 0x08001194 UnusedISR - .text.CanInit 0x080011ac 0x180 THUMB Debug/../../obj/can.o - 0x080011ac CanInit + 0x080011a8 0x18 THUMB Debug/../../obj/vectors.o + 0x080011a8 UnusedISR + .text.CanInit 0x080011c0 0x180 THUMB Debug/../../obj/can.o + 0x080011c0 CanInit .text.CanTransmitPacket - 0x0800132c 0xac THUMB Debug/../../obj/can.o - 0x0800132c CanTransmitPacket + 0x08001340 0xac THUMB Debug/../../obj/can.o + 0x08001340 CanTransmitPacket .text.CanReceivePacket - 0x080013d8 0x98 THUMB Debug/../../obj/can.o - 0x080013d8 CanReceivePacket + 0x080013ec 0x98 THUMB Debug/../../obj/can.o + 0x080013ec CanReceivePacket .text.CpuStartUserProgram - 0x08001470 0x34 THUMB Debug/../../obj/cpu.o - 0x08001470 CpuStartUserProgram + 0x08001484 0x34 THUMB Debug/../../obj/cpu.o + 0x08001484 CpuStartUserProgram .text.CpuMemCopy - 0x080014a4 0x28 THUMB Debug/../../obj/cpu.o - 0x080014a4 CpuMemCopy - .text.NvmInit 0x080014cc 0xc THUMB Debug/../../obj/nvm.o - 0x080014cc NvmInit + 0x080014b8 0x28 THUMB Debug/../../obj/cpu.o + 0x080014b8 CpuMemCopy + .text.NvmInit 0x080014e0 0xc THUMB Debug/../../obj/nvm.o + 0x080014e0 NvmInit .text.NvmWrite - 0x080014d8 0xc THUMB Debug/../../obj/nvm.o - 0x080014d8 NvmWrite + 0x080014ec 0xc THUMB Debug/../../obj/nvm.o + 0x080014ec NvmWrite .text.NvmErase - 0x080014e4 0xc THUMB Debug/../../obj/nvm.o - 0x080014e4 NvmErase + 0x080014f8 0xc THUMB Debug/../../obj/nvm.o + 0x080014f8 NvmErase .text.NvmVerifyChecksum - 0x080014f0 0xc THUMB Debug/../../obj/nvm.o - 0x080014f0 NvmVerifyChecksum + 0x08001504 0xc THUMB Debug/../../obj/nvm.o + 0x08001504 NvmVerifyChecksum .text.NvmGetUserProgBaseAddress - 0x080014fc 0xc THUMB Debug/../../obj/nvm.o - 0x080014fc NvmGetUserProgBaseAddress - .text.NvmDone 0x08001508 0x18 THUMB Debug/../../obj/nvm.o - 0x08001508 NvmDone + 0x08001510 0xc THUMB Debug/../../obj/nvm.o + 0x08001510 NvmGetUserProgBaseAddress + .text.NvmDone 0x0800151c 0x18 THUMB Debug/../../obj/nvm.o + 0x0800151c NvmDone .text.TimerReset - 0x08001520 0x10 THUMB Debug/../../obj/timer.o - 0x08001520 TimerReset + 0x08001534 0x10 THUMB Debug/../../obj/timer.o + 0x08001534 TimerReset .text.TimerInit - 0x08001530 0x34 THUMB Debug/../../obj/timer.o - 0x08001530 TimerInit + 0x08001544 0x34 THUMB Debug/../../obj/timer.o + 0x08001544 TimerInit .text.TimerUpdate - 0x08001564 0x24 THUMB Debug/../../obj/timer.o - 0x08001564 TimerUpdate + 0x08001578 0x24 THUMB Debug/../../obj/timer.o + 0x08001578 TimerUpdate .text.TimerGet - 0x08001588 0x14 THUMB Debug/../../obj/timer.o - 0x08001588 TimerGet + 0x0800159c 0x14 THUMB Debug/../../obj/timer.o + 0x0800159c TimerGet .text.UartReceiveByte - 0x0800159c 0x28 THUMB Debug/../../obj/uart.o + 0x080015b0 0x28 THUMB Debug/../../obj/uart.o .text.UartTransmitByte - 0x080015c4 0x4c THUMB Debug/../../obj/uart.o + 0x080015d8 0x4c THUMB Debug/../../obj/uart.o .text.UartInit - 0x08001610 0x2c THUMB Debug/../../obj/uart.o - 0x08001610 UartInit + 0x08001624 0x2c THUMB Debug/../../obj/uart.o + 0x08001624 UartInit .text.UartTransmitPacket - 0x0800163c 0x70 THUMB Debug/../../obj/uart.o - 0x0800163c UartTransmitPacket + 0x08001650 0x70 THUMB Debug/../../obj/uart.o + 0x08001650 UartTransmitPacket .text.UartReceivePacket - 0x080016ac 0xf8 THUMB Debug/../../obj/uart.o - 0x080016ac UartReceivePacket + 0x080016c0 0xf8 THUMB Debug/../../obj/uart.o + 0x080016c0 UartReceivePacket .text.FlashUnlock - 0x080017a4 0x24 THUMB Debug/../../obj/flash.o + 0x080017b8 0x24 THUMB Debug/../../obj/flash.o .text.FlashLock - 0x080017c8 0x14 THUMB Debug/../../obj/flash.o + 0x080017dc 0x14 THUMB Debug/../../obj/flash.o .text.FlashGetSector - 0x080017dc 0x48 THUMB Debug/../../obj/flash.o + 0x080017f0 0x48 THUMB Debug/../../obj/flash.o .text.FlashWriteBlock - 0x08001824 0xc8 THUMB Debug/../../obj/flash.o + 0x08001838 0xc8 THUMB Debug/../../obj/flash.o .text.FlashGetSectorBaseAddr - 0x080018ec 0x40 THUMB Debug/../../obj/flash.o + 0x08001900 0x40 THUMB Debug/../../obj/flash.o .text.FlashInitBlock - 0x0800192c 0x38 THUMB Debug/../../obj/flash.o + 0x08001940 0x38 THUMB Debug/../../obj/flash.o .text.FlashSwitchBlock - 0x08001964 0x50 THUMB Debug/../../obj/flash.o + 0x08001978 0x50 THUMB Debug/../../obj/flash.o .text.FlashAddToBlock - 0x080019b4 0x94 THUMB Debug/../../obj/flash.o + 0x080019c8 0x94 THUMB Debug/../../obj/flash.o .text.FlashInit - 0x08001a48 0x1c THUMB Debug/../../obj/flash.o - 0x08001a48 FlashInit + 0x08001a5c 0x1c THUMB Debug/../../obj/flash.o + 0x08001a5c FlashInit .text.FlashWrite - 0x08001a64 0x58 THUMB Debug/../../obj/flash.o - 0x08001a64 FlashWrite + 0x08001a78 0x58 THUMB Debug/../../obj/flash.o + 0x08001a78 FlashWrite .text.FlashErase - 0x08001abc 0x140 THUMB Debug/../../obj/flash.o - 0x08001abc FlashErase + 0x08001ad0 0x140 THUMB Debug/../../obj/flash.o + 0x08001ad0 FlashErase .text.FlashWriteChecksum - 0x08001bfc 0x5c THUMB Debug/../../obj/flash.o - 0x08001bfc FlashWriteChecksum + 0x08001c10 0x5c THUMB Debug/../../obj/flash.o + 0x08001c10 FlashWriteChecksum .text.FlashVerifyChecksum - 0x08001c58 0x68 THUMB Debug/../../obj/flash.o - 0x08001c58 FlashVerifyChecksum + 0x08001c6c 0x68 THUMB Debug/../../obj/flash.o + 0x08001c6c FlashVerifyChecksum .text.FlashDone - 0x08001cc0 0x58 THUMB Debug/../../obj/flash.o - 0x08001cc0 FlashDone + 0x08001cd4 0x58 THUMB Debug/../../obj/flash.o + 0x08001cd4 FlashDone .text.FlashGetUserProgBaseAddress - 0x08001d18 0xc THUMB Debug/../../obj/flash.o - 0x08001d18 FlashGetUserProgBaseAddress + 0x08001d2c 0xc THUMB Debug/../../obj/flash.o + 0x08001d2c FlashGetUserProgBaseAddress .text.AssertFailure - 0x08001d24 0x1c THUMB Debug/../../obj/assert.o - 0x08001d24 AssertFailure + 0x08001d38 0x1c THUMB Debug/../../obj/assert.o + 0x08001d38 AssertFailure .text.BackDoorCheck - 0x08001d40 0x50 THUMB Debug/../../obj/backdoor.o - 0x08001d40 BackDoorCheck + 0x08001d54 0x50 THUMB Debug/../../obj/backdoor.o + 0x08001d54 BackDoorCheck .text.BackDoorInit - 0x08001d90 0x28 THUMB Debug/../../obj/backdoor.o - 0x08001d90 BackDoorInit + 0x08001da4 0x28 THUMB Debug/../../obj/backdoor.o + 0x08001da4 BackDoorInit .text.BootInit - 0x08001db8 0x20 THUMB Debug/../../obj/boot.o - 0x08001db8 BootInit + 0x08001dcc 0x20 THUMB Debug/../../obj/boot.o + 0x08001dcc BootInit .text.BootTask - 0x08001dd8 0x1c THUMB Debug/../../obj/boot.o - 0x08001dd8 BootTask - .text.ComInit 0x08001df4 0x24 THUMB Debug/../../obj/com.o - 0x08001df4 ComInit - .text.ComTask 0x08001e18 0x5c THUMB Debug/../../obj/com.o - 0x08001e18 ComTask - .text.ComFree 0x08001e74 0x4 THUMB Debug/../../obj/com.o - 0x08001e74 ComFree + 0x08001dec 0x1c THUMB Debug/../../obj/boot.o + 0x08001dec BootTask + .text.ComInit 0x08001e08 0x24 THUMB Debug/../../obj/com.o + 0x08001e08 ComInit + .text.ComTask 0x08001e2c 0x5c THUMB Debug/../../obj/com.o + 0x08001e2c ComTask + .text.ComFree 0x08001e88 0x4 THUMB Debug/../../obj/com.o + 0x08001e88 ComFree .text.ComTransmitPacket - 0x08001e78 0x34 THUMB Debug/../../obj/com.o - 0x08001e78 ComTransmitPacket + 0x08001e8c 0x34 THUMB Debug/../../obj/com.o + 0x08001e8c ComTransmitPacket .text.ComGetActiveInterfaceMaxRxLen - 0x08001eac 0x28 THUMB Debug/../../obj/com.o - 0x08001eac ComGetActiveInterfaceMaxRxLen + 0x08001ec0 0x28 THUMB Debug/../../obj/com.o + 0x08001ec0 ComGetActiveInterfaceMaxRxLen .text.ComGetActiveInterfaceMaxTxLen - 0x08001ed4 0x28 THUMB Debug/../../obj/com.o - 0x08001ed4 ComGetActiveInterfaceMaxTxLen + 0x08001ee8 0x28 THUMB Debug/../../obj/com.o + 0x08001ee8 ComGetActiveInterfaceMaxTxLen .text.ComIsConnected - 0x08001efc 0xc THUMB Debug/../../obj/com.o - 0x08001efc ComIsConnected - .text.CopInit 0x08001f08 0x4 THUMB Debug/../../obj/cop.o - 0x08001f08 CopInit + 0x08001f10 0xc THUMB Debug/../../obj/com.o + 0x08001f10 ComIsConnected + .text.CopInit 0x08001f1c 0x4 THUMB Debug/../../obj/cop.o + 0x08001f1c CopInit .text.CopService - 0x08001f0c 0x4 THUMB Debug/../../obj/cop.o - 0x08001f0c CopService + 0x08001f20 0x4 THUMB Debug/../../obj/cop.o + 0x08001f20 CopService .text.XcpProtectResources - 0x08001f10 0x10 THUMB Debug/../../obj/xcp.o + 0x08001f24 0x10 THUMB Debug/../../obj/xcp.o .text.XcpSetCtoError - 0x08001f20 0x1c THUMB Debug/../../obj/xcp.o - .text.XcpInit 0x08001f3c 0x20 THUMB Debug/../../obj/xcp.o - 0x08001f3c XcpInit + 0x08001f34 0x1c THUMB Debug/../../obj/xcp.o + .text.XcpInit 0x08001f50 0x20 THUMB Debug/../../obj/xcp.o + 0x08001f50 XcpInit .text.XcpIsConnected - 0x08001f5c 0x14 THUMB Debug/../../obj/xcp.o - 0x08001f5c XcpIsConnected - .text.XcpPacketTransmitted 0x08001f70 0x14 THUMB Debug/../../obj/xcp.o - 0x08001f70 XcpPacketTransmitted + 0x08001f70 XcpIsConnected + .text.XcpPacketTransmitted + 0x08001f84 0x14 THUMB Debug/../../obj/xcp.o + 0x08001f84 XcpPacketTransmitted .text.XcpPacketReceived - 0x08001f84 0x408 THUMB Debug/../../obj/xcp.o - 0x08001f84 XcpPacketReceived + 0x08001f98 0x408 THUMB Debug/../../obj/xcp.o + 0x08001f98 XcpPacketReceived .text.FileLibLongToIntString - 0x0800238c 0x54 THUMB Debug/../../obj/file.o + 0x080023a0 0x54 THUMB Debug/../../obj/file.o .text.FileLibHexStringToByte - 0x080023e0 0x50 THUMB Debug/../../obj/file.o + 0x080023f4 0x50 THUMB Debug/../../obj/file.o .text.FileLibByteNibbleToChar - 0x08002430 0x24 THUMB Debug/../../obj/file.o + 0x08002444 0x24 THUMB Debug/../../obj/file.o .text.FileLibByteToHexString - 0x08002454 0x24 THUMB Debug/../../obj/file.o + 0x08002468 0x24 THUMB Debug/../../obj/file.o .text.FileInit - 0x08002478 0x34 THUMB Debug/../../obj/file.o - 0x08002478 FileInit + 0x0800248c 0x34 THUMB Debug/../../obj/file.o + 0x0800248c FileInit .text.FileIsIdle - 0x080024ac 0x14 THUMB Debug/../../obj/file.o - 0x080024ac FileIsIdle + 0x080024c0 0x14 THUMB Debug/../../obj/file.o + 0x080024c0 FileIsIdle .text.FileHandleFirmwareUpdateRequest - 0x080024c0 0x44 THUMB Debug/../../obj/file.o - 0x080024c0 FileHandleFirmwareUpdateRequest + 0x080024d4 0x44 THUMB Debug/../../obj/file.o + 0x080024d4 FileHandleFirmwareUpdateRequest .text.FileSrecGetLineType - 0x08002504 0x44 THUMB Debug/../../obj/file.o - 0x08002504 FileSrecGetLineType + 0x08002518 0x44 THUMB Debug/../../obj/file.o + 0x08002518 FileSrecGetLineType .text.FileSrecVerifyChecksum - 0x08002548 0x44 THUMB Debug/../../obj/file.o - 0x08002548 FileSrecVerifyChecksum + 0x0800255c 0x44 THUMB Debug/../../obj/file.o + 0x0800255c FileSrecVerifyChecksum .text.FileSrecParseLine - 0x0800258c 0x190 THUMB Debug/../../obj/file.o - 0x0800258c FileSrecParseLine + 0x080025a0 0x190 THUMB Debug/../../obj/file.o + 0x080025a0 FileSrecParseLine .text.FileTask - 0x0800271c 0x4ac THUMB Debug/../../obj/file.o - 0x0800271c FileTask - .text.mem_cpy 0x08002bc8 0x10 THUMB Debug/../../obj/ff.o - .text.mem_set 0x08002bd8 0xc THUMB Debug/../../obj/ff.o - .text.chk_chr 0x08002be4 0x18 THUMB Debug/../../obj/ff.o + 0x08002730 0x4ac THUMB Debug/../../obj/file.o + 0x08002730 FileTask + .text.mem_cpy 0x08002bdc 0x10 THUMB Debug/../../obj/ff.o + .text.mem_set 0x08002bec 0xc THUMB Debug/../../obj/ff.o + .text.chk_chr 0x08002bf8 0x18 THUMB Debug/../../obj/ff.o .text.ld_clust - 0x08002bfc 0x20 THUMB Debug/../../obj/ff.o + 0x08002c10 0x20 THUMB Debug/../../obj/ff.o .text.st_clust - 0x08002c1c 0x18 THUMB Debug/../../obj/ff.o - .text.sum_sfn 0x08002c34 0x24 THUMB Debug/../../obj/ff.o + 0x08002c30 0x18 THUMB Debug/../../obj/ff.o + .text.sum_sfn 0x08002c48 0x24 THUMB Debug/../../obj/ff.o .text.validate - 0x08002c58 0x4c THUMB Debug/../../obj/ff.o + 0x08002c6c 0x4c THUMB Debug/../../obj/ff.o .text.check_fs - 0x08002ca4 0xa4 THUMB Debug/../../obj/ff.o + 0x08002cb8 0xa4 THUMB Debug/../../obj/ff.o .text.chk_mounted - 0x08002d48 0x3f4 THUMB Debug/../../obj/ff.o + 0x08002d5c 0x3f4 THUMB Debug/../../obj/ff.o .text.get_fileinfo - 0x0800313c 0x148 THUMB Debug/../../obj/ff.o + 0x08003150 0x148 THUMB Debug/../../obj/ff.o .text.sync_window - 0x08003284 0x88 THUMB Debug/../../obj/ff.o + 0x08003298 0x88 THUMB Debug/../../obj/ff.o .text.move_window - 0x0800330c 0x3c THUMB Debug/../../obj/ff.o - .text.sync_fs 0x08003348 0xd4 THUMB Debug/../../obj/ff.o + 0x08003320 0x3c THUMB Debug/../../obj/ff.o + .text.sync_fs 0x0800335c 0xd4 THUMB Debug/../../obj/ff.o .text.clust2sect - 0x0800341c 0x20 THUMB Debug/../../obj/ff.o - 0x0800341c clust2sect - .text.get_fat 0x0800343c 0xfc THUMB Debug/../../obj/ff.o - 0x0800343c get_fat - .text.dir_sdi 0x08003538 0xac THUMB Debug/../../obj/ff.o - .text.put_fat 0x080035e4 0x118 THUMB Debug/../../obj/ff.o - 0x080035e4 put_fat + 0x08003430 0x20 THUMB Debug/../../obj/ff.o + 0x08003430 clust2sect + .text.get_fat 0x08003450 0xfc THUMB Debug/../../obj/ff.o + 0x08003450 get_fat + .text.dir_sdi 0x0800354c 0xac THUMB Debug/../../obj/ff.o + .text.put_fat 0x080035f8 0x118 THUMB Debug/../../obj/ff.o + 0x080035f8 put_fat .text.create_chain - 0x080036fc 0xc8 THUMB Debug/../../obj/ff.o + 0x08003710 0xc8 THUMB Debug/../../obj/ff.o .text.dir_next - 0x080037c4 0x150 THUMB Debug/../../obj/ff.o + 0x080037d8 0x150 THUMB Debug/../../obj/ff.o .text.dir_find - 0x08003914 0x184 THUMB Debug/../../obj/ff.o + 0x08003928 0x184 THUMB Debug/../../obj/ff.o .text.follow_path - 0x08003a98 0x320 THUMB Debug/../../obj/ff.o + 0x08003aac 0x320 THUMB Debug/../../obj/ff.o .text.dir_remove - 0x08003db8 0x54 THUMB Debug/../../obj/ff.o + 0x08003dcc 0x54 THUMB Debug/../../obj/ff.o .text.dir_read - 0x08003e0c 0x144 THUMB Debug/../../obj/ff.o + 0x08003e20 0x144 THUMB Debug/../../obj/ff.o .text.remove_chain - 0x08003f50 0x88 THUMB Debug/../../obj/ff.o + 0x08003f64 0x88 THUMB Debug/../../obj/ff.o .text.gen_numname - 0x08003fd8 0xb0 THUMB Debug/../../obj/ff.o - 0x08003fd8 gen_numname + 0x08003fec 0xb0 THUMB Debug/../../obj/ff.o + 0x08003fec gen_numname .text.dir_register - 0x08004088 0x238 THUMB Debug/../../obj/ff.o - .text.f_mount 0x080042c0 0x34 THUMB Debug/../../obj/ff.o - 0x080042c0 f_mount - .text.f_open 0x080042f4 0x188 THUMB Debug/../../obj/ff.o - 0x080042f4 f_open - .text.f_read 0x0800447c 0x1c0 THUMB Debug/../../obj/ff.o - 0x0800447c f_read - .text.f_write 0x0800463c 0x200 THUMB Debug/../../obj/ff.o - 0x0800463c f_write - .text.f_sync 0x0800483c 0xa8 THUMB Debug/../../obj/ff.o - 0x0800483c f_sync - .text.f_close 0x080048e4 0x14 THUMB Debug/../../obj/ff.o - 0x080048e4 f_close - .text.f_lseek 0x080048f8 0x1b8 THUMB Debug/../../obj/ff.o - 0x080048f8 f_lseek - .text.f_stat 0x08004ab0 0x50 THUMB Debug/../../obj/ff.o - 0x08004ab0 f_stat + 0x0800409c 0x238 THUMB Debug/../../obj/ff.o + .text.f_mount 0x080042d4 0x34 THUMB Debug/../../obj/ff.o + 0x080042d4 f_mount + .text.f_open 0x08004308 0x188 THUMB Debug/../../obj/ff.o + 0x08004308 f_open + .text.f_read 0x08004490 0x1c0 THUMB Debug/../../obj/ff.o + 0x08004490 f_read + .text.f_write 0x08004650 0x200 THUMB Debug/../../obj/ff.o + 0x08004650 f_write + .text.f_sync 0x08004850 0xa8 THUMB Debug/../../obj/ff.o + 0x08004850 f_sync + .text.f_close 0x080048f8 0x14 THUMB Debug/../../obj/ff.o + 0x080048f8 f_close + .text.f_lseek 0x0800490c 0x1b8 THUMB Debug/../../obj/ff.o + 0x0800490c f_lseek + .text.f_stat 0x08004ac4 0x50 THUMB Debug/../../obj/ff.o + 0x08004ac4 f_stat .text.f_unlink - 0x08004b00 0xbc THUMB Debug/../../obj/ff.o - 0x08004b00 f_unlink - .text.f_gets 0x08004bbc 0x5c THUMB Debug/../../obj/ff.o - 0x08004bbc f_gets - .text.f_putc 0x08004c18 0x38 THUMB Debug/../../obj/ff.o - 0x08004c18 f_putc - .text.f_puts 0x08004c50 0x38 THUMB Debug/../../obj/ff.o - 0x08004c50 f_puts + 0x08004b14 0xbc THUMB Debug/../../obj/ff.o + 0x08004b14 f_unlink + .text.f_gets 0x08004bd0 0x5c THUMB Debug/../../obj/ff.o + 0x08004bd0 f_gets + .text.f_putc 0x08004c2c 0x38 THUMB Debug/../../obj/ff.o + 0x08004c2c f_putc + .text.f_puts 0x08004c64 0x38 THUMB Debug/../../obj/ff.o + 0x08004c64 f_puts .text.ff_convert - 0x08004c88 0x58 THUMB Debug/../../obj/unicode.o - 0x08004c88 ff_convert + 0x08004c9c 0x58 THUMB Debug/../../obj/unicode.o + 0x08004c9c ff_convert .text.ff_wtoupper - 0x08004ce0 0x38 THUMB Debug/../../obj/unicode.o - 0x08004ce0 ff_wtoupper + 0x08004cf4 0x38 THUMB Debug/../../obj/unicode.o + 0x08004cf4 ff_wtoupper .text.libc.isdigit - 0x08004d18 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) - 0x08004d18 isdigit + 0x08004d2c 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) + 0x08004d2c isdigit .text.libc.toupper - 0x08004d28 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) - 0x08004d28 toupper + 0x08004d3c 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) + 0x08004d3c toupper .text.libdebugio.__do_debug_operation_mempoll - 0x08004d38 0x38 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) - 0x08004d38 __do_debug_operation_mempoll + 0x08004d4c 0x38 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) + 0x08004d4c __do_debug_operation_mempoll .text.libc.__debug_io_lock - 0x08004d70 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) - 0x08004d70 __debug_io_lock + 0x08004d84 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) + 0x08004d84 __debug_io_lock .text.libc.__debug_io_unlock - 0x08004d74 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) - 0x08004d74 __debug_io_unlock - 0x08004d78 __text_end__ = (__text_start__ + SIZEOF (.text)) - 0x08004d78 __text_load_end__ = __text_end__ + 0x08004d88 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) + 0x08004d88 __debug_io_unlock + 0x08004d8c __text_end__ = (__text_start__ + SIZEOF (.text)) + 0x08004d8c __text_load_end__ = __text_end__ .vfp11_veneer 0x00000000 0x0 .vfp11_veneer 0x00000000 0x0 linker stubs @@ -1509,91 +1509,91 @@ Linker script and memory map .v4_bx 0x00000000 0x0 .v4_bx 0x00000000 0x0 linker stubs 0x00000001 . = ASSERT (((__text_end__ >= __FLASH_segment_start__) && (__text_end__ <= __FLASH_segment_end__)), error: .text is too large to fit in FLASH memory segment) - 0x08004d78 __dtors_load_start__ = ALIGN (__text_end__, 0x4) + 0x08004d8c __dtors_load_start__ = ALIGN (__text_end__, 0x4) -.dtors 0x08004d78 0x0 - 0x08004d78 __dtors_start__ = . +.dtors 0x08004d8c 0x0 + 0x08004d8c __dtors_start__ = . *(SORT(.dtors.*)) *(.dtors) *(.fini_array .fini_array.*) - 0x08004d78 __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors)) - 0x08004d78 __dtors_load_end__ = __dtors_end__ + 0x08004d8c __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors)) + 0x08004d8c __dtors_load_end__ = __dtors_end__ 0x00000001 . = ASSERT (((__dtors_end__ >= __FLASH_segment_start__) && (__dtors_end__ <= __FLASH_segment_end__)), error: .dtors is too large to fit in FLASH memory segment) - 0x08004d78 __ctors_load_start__ = ALIGN (__dtors_end__, 0x4) + 0x08004d8c __ctors_load_start__ = ALIGN (__dtors_end__, 0x4) -.ctors 0x08004d78 0x0 - 0x08004d78 __ctors_start__ = . +.ctors 0x08004d8c 0x0 + 0x08004d8c __ctors_start__ = . *(SORT(.ctors.*)) *(.ctors) *(.init_array .init_array.*) - 0x08004d78 __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors)) - 0x08004d78 __ctors_load_end__ = __ctors_end__ + 0x08004d8c __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors)) + 0x08004d8c __ctors_load_end__ = __ctors_end__ 0x00000001 . = ASSERT (((__ctors_end__ >= __FLASH_segment_start__) && (__ctors_end__ <= __FLASH_segment_end__)), error: .ctors is too large to fit in FLASH memory segment) - 0x08004d78 __rodata_load_start__ = ALIGN (__ctors_end__, 0x4) + 0x08004d8c __rodata_load_start__ = ALIGN (__ctors_end__, 0x4) -.rodata 0x08004d78 0xa8c - 0x08004d78 __rodata_start__ = . +.rodata 0x08004d8c 0xa8c + 0x08004d8c __rodata_start__ = . *(.rodata .rodata.* .gnu.linkonce.r.*) .rodata.firmwareFilename - 0x08004d78 0x20 THUMB Debug/../../obj/hooks.o + 0x08004d8c 0x20 THUMB Debug/../../obj/hooks.o .rodata.str1.4 - 0x08004d98 0xd THUMB Debug/../../obj/hooks.o + 0x08004dac 0xd THUMB Debug/../../obj/hooks.o 0x10 (size before relaxing) - *fill* 0x08004da5 0x3 00 + *fill* 0x08004db9 0x3 00 .rodata.str1.4 - 0x08004da8 0x61 THUMB Debug/../../obj/main.o + 0x08004dbc 0x61 THUMB Debug/../../obj/main.o 0x64 (size before relaxing) - *fill* 0x08004e09 0x3 00 + *fill* 0x08004e1d 0x3 00 .rodata.str1.4 - 0x08004e0c 0x8c THUMB Debug/../../obj/vectors.o + 0x08004e20 0x8c THUMB Debug/../../obj/vectors.o .rodata.str1.4 - 0x08004e98 0x7d THUMB Debug/../../obj/can.o + 0x08004eac 0x7d THUMB Debug/../../obj/can.o 0x80 (size before relaxing) - *fill* 0x08004f15 0x3 00 + *fill* 0x08004f29 0x3 00 .rodata.canTiming - 0x08004f18 0x48 THUMB Debug/../../obj/can.o + 0x08004f2c 0x48 THUMB Debug/../../obj/can.o .rodata.str1.4 - 0x08004f60 0x7e THUMB Debug/../../obj/uart.o + 0x08004f74 0x7e THUMB Debug/../../obj/uart.o 0x80 (size before relaxing) - *fill* 0x08004fde 0x2 00 + *fill* 0x08004ff2 0x2 00 .rodata.flashLayout - 0x08004fe0 0x9c THUMB Debug/../../obj/flash.o + 0x08004ff4 0x9c THUMB Debug/../../obj/flash.o .rodata.xcpStationId - 0x0800507c 0x8 THUMB Debug/../../obj/xcp.o + 0x08005090 0x8 THUMB Debug/../../obj/xcp.o .rodata.str1.4 - 0x08005084 0x219 THUMB Debug/../../obj/file.o + 0x08005098 0x219 THUMB Debug/../../obj/file.o 0x220 (size before relaxing) - *fill* 0x0800529d 0x3 00 + *fill* 0x080052b1 0x3 00 .rodata.str1.4 - 0x080052a0 0x14 THUMB Debug/../../obj/ff.o - .rodata.ExCvt 0x080052b4 0x80 THUMB Debug/../../obj/ff.o + 0x080052b4 0x14 THUMB Debug/../../obj/ff.o + .rodata.ExCvt 0x080052c8 0x80 THUMB Debug/../../obj/ff.o .rodata.LfnOfs - 0x08005334 0x10 THUMB Debug/../../obj/ff.o + 0x08005348 0x10 THUMB Debug/../../obj/ff.o .rodata.tbl_upper.984 - 0x08005344 0x1e0 THUMB Debug/../../obj/unicode.o + 0x08005358 0x1e0 THUMB Debug/../../obj/unicode.o .rodata.tbl_lower.983 - 0x08005524 0x1e0 THUMB Debug/../../obj/unicode.o - .rodata.Tbl 0x08005704 0x100 THUMB Debug/../../obj/unicode.o - 0x08005804 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata)) - 0x08005804 __rodata_load_end__ = __rodata_end__ + 0x08005538 0x1e0 THUMB Debug/../../obj/unicode.o + .rodata.Tbl 0x08005718 0x100 THUMB Debug/../../obj/unicode.o + 0x08005818 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata)) + 0x08005818 __rodata_load_end__ = __rodata_end__ 0x00000001 . = ASSERT (((__rodata_end__ >= __FLASH_segment_start__) && (__rodata_end__ <= __FLASH_segment_end__)), error: .rodata is too large to fit in FLASH memory segment) - 0x08005804 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4) + 0x08005818 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4) -.ARM.exidx 0x08005804 0x0 - 0x08005804 __ARM.exidx_start__ = . - 0x08005804 __exidx_start = __ARM.exidx_start__ +.ARM.exidx 0x08005818 0x0 + 0x08005818 __ARM.exidx_start__ = . + 0x08005818 __exidx_start = __ARM.exidx_start__ *(.ARM.exidx .ARM.exidx.*) - 0x08005804 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx)) - 0x08005804 __exidx_end = __ARM.exidx_end__ - 0x08005804 __ARM.exidx_load_end__ = __ARM.exidx_end__ + 0x08005818 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx)) + 0x08005818 __exidx_end = __ARM.exidx_end__ + 0x08005818 __ARM.exidx_load_end__ = __ARM.exidx_end__ 0x00000001 . = ASSERT (((__ARM.exidx_end__ >= __FLASH_segment_start__) && (__ARM.exidx_end__ <= __FLASH_segment_end__)), error: .ARM.exidx is too large to fit in FLASH memory segment) - 0x08005804 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4) + 0x08005818 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4) -.fast 0x20000000 0x0 load address 0x08005804 +.fast 0x20000000 0x0 load address 0x08005818 0x20000000 __fast_start__ = . *(.fast .fast.*) 0x20000000 __fast_end__ = (__fast_start__ + SIZEOF (.fast)) - 0x08005804 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast)) + 0x08005818 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast)) 0x00000001 . = ASSERT (((__fast_load_end__ >= __FLASH_segment_start__) && (__fast_load_end__ <= __FLASH_segment_end__)), error: .fast is too large to fit in FLASH memory segment) .fast_run 0x20000000 0x0 @@ -1602,9 +1602,9 @@ Linker script and memory map 0x20000000 __fast_run_end__ = (__fast_run_start__ + SIZEOF (.fast_run)) 0x20000000 __fast_run_load_end__ = __fast_run_end__ 0x00000001 . = ASSERT (((__fast_run_end__ >= __SRAM_segment_start__) && (__fast_run_end__ <= __SRAM_segment_end__)), error: .fast_run is too large to fit in SRAM memory segment) - 0x08005804 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4) + 0x08005818 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4) -.data 0x20000000 0x8 load address 0x08005804 +.data 0x20000000 0x8 load address 0x08005818 0x20000000 __data_start__ = . *(.data .data.* .gnu.linkonce.d.*) .data.Stat 0x20000000 0x1 THUMB Debug/../../obj/mmc.o @@ -1612,10 +1612,10 @@ Linker script and memory map .data.comActiveInterface 0x20000004 0x4 THUMB Debug/../../obj/com.o 0x20000008 __data_end__ = (__data_start__ + SIZEOF (.data)) - 0x0800580c __data_load_end__ = (__data_load_start__ + SIZEOF (.data)) + 0x08005820 __data_load_end__ = (__data_load_start__ + SIZEOF (.data)) 0x00000001 . = ASSERT (((__data_load_end__ >= __FLASH_segment_start__) && (__data_load_end__ <= __FLASH_segment_end__)), error: .data is too large to fit in FLASH memory segment) -.data_run 0x20000000 0x8 load address 0x08005804 +.data_run 0x20000000 0x8 load address 0x08005818 0x20000000 __data_run_start__ = . 0x20000008 . = MAX ((__data_run_start__ + SIZEOF (.data)), .) *fill* 0x20000000 0x8 00 @@ -1725,14 +1725,14 @@ Linker script and memory map 0x200011e0 __tbss_end__ = (__tbss_start__ + SIZEOF (.tbss)) 0x200011e0 __tbss_load_end__ = __tbss_end__ 0x00000001 . = ASSERT (((__tbss_end__ >= __SRAM_segment_start__) && (__tbss_end__ <= __SRAM_segment_end__)), error: .tbss is too large to fit in SRAM memory segment) - 0x0800580c __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + 0x08005820 __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) -.tdata 0x200011e0 0x0 load address 0x0800580c +.tdata 0x200011e0 0x0 load address 0x08005820 0x200011e0 __tdata_start__ = . *(.tdata .tdata.*) 0x200011e0 __tdata_end__ = (__tdata_start__ + SIZEOF (.tdata)) - 0x0800580c __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata)) - 0x0800580c __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata)) + 0x08005820 __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata)) + 0x08005820 __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata)) 0x00000001 . = ASSERT (((__tdata_load_end__ >= __FLASH_segment_start__) && (__tdata_load_end__ <= __FLASH_segment_end__)), error: .tdata is too large to fit in FLASH memory segment) .tdata_run 0x200011e0 0x0 @@ -1812,38 +1812,38 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossw .debug_frame 0x000037d8 0xa0 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) .debug_frame 0x00003878 0x600 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libm_v7m_t_le.a(libm_asm.o) -.debug_info 0x00000000 0x9b95 - .debug_info 0x00000000 0x641 THUMB Debug/../../obj/hooks.o - .debug_info 0x00000641 0x395 THUMB Debug/../../obj/main.o - .debug_info 0x000009d6 0x53d THUMB Debug/../../obj/core_cm3.o - .debug_info 0x00000f13 0x4c6 THUMB Debug/../../obj/system_stm32f10x.o - .debug_info 0x000013d9 0x95e THUMB Debug/../../obj/mmc.o - .debug_info 0x00001d37 0x716 THUMB Debug/../../obj/stm32f10x_gpio.o - .debug_info 0x0000244d 0x8ef THUMB Debug/../../obj/stm32f10x_rcc.o - .debug_info 0x00002d3c 0x959 THUMB Debug/../../obj/stm32f10x_spi.o - .debug_info 0x00003695 0xa51 THUMB Debug/../../obj/stm32f10x_usart.o - .debug_info 0x000040e6 0x10a THUMB Debug/../../obj/cstart.o - .debug_info 0x000041f0 0xfc THUMB Debug/../../obj/vectors.o - .debug_info 0x000042ec 0x4e8 THUMB Debug/../../obj/can.o - .debug_info 0x000047d4 0x145 THUMB Debug/../../obj/cpu.o - .debug_info 0x00004919 0x182 THUMB Debug/../../obj/nvm.o - .debug_info 0x00004a9b 0x11e THUMB Debug/../../obj/timer.o - .debug_info 0x00004bb9 0x2b6 THUMB Debug/../../obj/uart.o - .debug_info 0x00004e6f 0x691 THUMB Debug/../../obj/flash.o - .debug_info 0x00005500 0xef THUMB Debug/../../obj/assert.o - .debug_info 0x000055ef 0xcb THUMB Debug/../../obj/backdoor.o - .debug_info 0x000056ba 0x93 THUMB Debug/../../obj/boot.o - .debug_info 0x0000574d 0x1e1 THUMB Debug/../../obj/com.o - .debug_info 0x0000592e 0x91 THUMB Debug/../../obj/cop.o - .debug_info 0x000059bf 0x61d THUMB Debug/../../obj/xcp.o - .debug_info 0x00005fdc 0x7b6 THUMB Debug/../../obj/file.o - .debug_info 0x00006792 0x2054 THUMB Debug/../../obj/ff.o - .debug_info 0x000087e6 0x160 THUMB Debug/../../obj/unicode.o - .debug_info 0x00008946 0xc63 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) - .debug_info 0x000095a9 0x51f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) - .debug_info 0x00009ac8 0xcd C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) +.debug_info 0x00000000 0x9bb0 + .debug_info 0x00000000 0x65e THUMB Debug/../../obj/hooks.o + .debug_info 0x0000065e 0x395 THUMB Debug/../../obj/main.o + .debug_info 0x000009f3 0x53d THUMB Debug/../../obj/core_cm3.o + .debug_info 0x00000f30 0x4c6 THUMB Debug/../../obj/system_stm32f10x.o + .debug_info 0x000013f6 0x95e THUMB Debug/../../obj/mmc.o + .debug_info 0x00001d54 0x716 THUMB Debug/../../obj/stm32f10x_gpio.o + .debug_info 0x0000246a 0x8ef THUMB Debug/../../obj/stm32f10x_rcc.o + .debug_info 0x00002d59 0x959 THUMB Debug/../../obj/stm32f10x_spi.o + .debug_info 0x000036b2 0xa51 THUMB Debug/../../obj/stm32f10x_usart.o + .debug_info 0x00004103 0x10a THUMB Debug/../../obj/cstart.o + .debug_info 0x0000420d 0xfc THUMB Debug/../../obj/vectors.o + .debug_info 0x00004309 0x4e8 THUMB Debug/../../obj/can.o + .debug_info 0x000047f1 0x145 THUMB Debug/../../obj/cpu.o + .debug_info 0x00004936 0x182 THUMB Debug/../../obj/nvm.o + .debug_info 0x00004ab8 0x11e THUMB Debug/../../obj/timer.o + .debug_info 0x00004bd6 0x2b4 THUMB Debug/../../obj/uart.o + .debug_info 0x00004e8a 0x691 THUMB Debug/../../obj/flash.o + .debug_info 0x0000551b 0xef THUMB Debug/../../obj/assert.o + .debug_info 0x0000560a 0xcb THUMB Debug/../../obj/backdoor.o + .debug_info 0x000056d5 0x93 THUMB Debug/../../obj/boot.o + .debug_info 0x00005768 0x1e1 THUMB Debug/../../obj/com.o + .debug_info 0x00005949 0x91 THUMB Debug/../../obj/cop.o + .debug_info 0x000059da 0x61d THUMB Debug/../../obj/xcp.o + .debug_info 0x00005ff7 0x7b6 THUMB Debug/../../obj/file.o + .debug_info 0x000067ad 0x2054 THUMB Debug/../../obj/ff.o + .debug_info 0x00008801 0x160 THUMB Debug/../../obj/unicode.o + .debug_info 0x00008961 0xc63 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) + .debug_info 0x000095c4 0x51f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) + .debug_info 0x00009ae3 0xcd C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) -.debug_abbrev 0x00000000 0x213c +.debug_abbrev 0x00000000 0x212d .debug_abbrev 0x00000000 0x1ae THUMB Debug/../../obj/hooks.o .debug_abbrev 0x000001ae 0x11b THUMB Debug/../../obj/main.o .debug_abbrev 0x000002c9 0xa9 THUMB Debug/../../obj/core_cm3.o @@ -1859,20 +1859,20 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossw .debug_abbrev 0x0000118d 0xb1 THUMB Debug/../../obj/cpu.o .debug_abbrev 0x0000123e 0xa5 THUMB Debug/../../obj/nvm.o .debug_abbrev 0x000012e3 0xbb THUMB Debug/../../obj/timer.o - .debug_abbrev 0x0000139e 0x142 THUMB Debug/../../obj/uart.o - .debug_abbrev 0x000014e0 0x240 THUMB Debug/../../obj/flash.o - .debug_abbrev 0x00001720 0x7e THUMB Debug/../../obj/assert.o - .debug_abbrev 0x0000179e 0x5d THUMB Debug/../../obj/backdoor.o - .debug_abbrev 0x000017fb 0x41 THUMB Debug/../../obj/boot.o - .debug_abbrev 0x0000183c 0x117 THUMB Debug/../../obj/com.o - .debug_abbrev 0x00001953 0x41 THUMB Debug/../../obj/cop.o - .debug_abbrev 0x00001994 0x1c0 THUMB Debug/../../obj/xcp.o - .debug_abbrev 0x00001b54 0x17f THUMB Debug/../../obj/file.o - .debug_abbrev 0x00001cd3 0x2c7 THUMB Debug/../../obj/ff.o - .debug_abbrev 0x00001f9a 0xa5 THUMB Debug/../../obj/unicode.o - .debug_abbrev 0x0000203f 0xa0 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) - .debug_abbrev 0x000020df 0x38 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) - .debug_abbrev 0x00002117 0x25 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) + .debug_abbrev 0x0000139e 0x133 THUMB Debug/../../obj/uart.o + .debug_abbrev 0x000014d1 0x240 THUMB Debug/../../obj/flash.o + .debug_abbrev 0x00001711 0x7e THUMB Debug/../../obj/assert.o + .debug_abbrev 0x0000178f 0x5d THUMB Debug/../../obj/backdoor.o + .debug_abbrev 0x000017ec 0x41 THUMB Debug/../../obj/boot.o + .debug_abbrev 0x0000182d 0x117 THUMB Debug/../../obj/com.o + .debug_abbrev 0x00001944 0x41 THUMB Debug/../../obj/cop.o + .debug_abbrev 0x00001985 0x1c0 THUMB Debug/../../obj/xcp.o + .debug_abbrev 0x00001b45 0x17f THUMB Debug/../../obj/file.o + .debug_abbrev 0x00001cc4 0x2c7 THUMB Debug/../../obj/ff.o + .debug_abbrev 0x00001f8b 0xa5 THUMB Debug/../../obj/unicode.o + .debug_abbrev 0x00002030 0xa0 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) + .debug_abbrev 0x000020d0 0x38 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) + .debug_abbrev 0x00002108 0x25 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) .debug_loc 0x00000000 0x95ae .debug_loc 0x00000000 0xdd THUMB Debug/../../obj/hooks.o @@ -1992,93 +1992,93 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossw .debug_ranges 0x00000fd0 0x208 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) .debug_ranges 0x000011d8 0x50 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) -.debug_line 0x00000000 0x4ec4 - .debug_line 0x00000000 0x291 THUMB Debug/../../obj/hooks.o - .debug_line 0x00000291 0x1fa THUMB Debug/../../obj/main.o - .debug_line 0x0000048b 0x28f THUMB Debug/../../obj/core_cm3.o - .debug_line 0x0000071a 0x1c4 THUMB Debug/../../obj/system_stm32f10x.o - .debug_line 0x000008de 0x53d THUMB Debug/../../obj/mmc.o - .debug_line 0x00000e1b 0x3a8 THUMB Debug/../../obj/stm32f10x_gpio.o - .debug_line 0x000011c3 0x49a THUMB Debug/../../obj/stm32f10x_rcc.o - .debug_line 0x0000165d 0x409 THUMB Debug/../../obj/stm32f10x_spi.o - .debug_line 0x00001a66 0x484 THUMB Debug/../../obj/stm32f10x_usart.o - .debug_line 0x00001eea 0x10f THUMB Debug/../../obj/cstart.o - .debug_line 0x00001ff9 0xea THUMB Debug/../../obj/vectors.o - .debug_line 0x000020e3 0x168 THUMB Debug/../../obj/can.o - .debug_line 0x0000224b 0x114 THUMB Debug/../../obj/cpu.o - .debug_line 0x0000235f 0x13f THUMB Debug/../../obj/nvm.o - .debug_line 0x0000249e 0x119 THUMB Debug/../../obj/timer.o - .debug_line 0x000025b7 0x16d THUMB Debug/../../obj/uart.o - .debug_line 0x00002724 0x2df THUMB Debug/../../obj/flash.o - .debug_line 0x00002a03 0xd6 THUMB Debug/../../obj/assert.o - .debug_line 0x00002ad9 0xf1 THUMB Debug/../../obj/backdoor.o - .debug_line 0x00002bca 0xbd THUMB Debug/../../obj/boot.o - .debug_line 0x00002c87 0x15f THUMB Debug/../../obj/com.o - .debug_line 0x00002de6 0xb1 THUMB Debug/../../obj/cop.o - .debug_line 0x00002e97 0x1d7 THUMB Debug/../../obj/xcp.o - .debug_line 0x0000306e 0x33f THUMB Debug/../../obj/file.o - .debug_line 0x000033ad 0xe05 THUMB Debug/../../obj/ff.o - .debug_line 0x000041b2 0x19b THUMB Debug/../../obj/unicode.o - .debug_line 0x0000434d 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) - .debug_line 0x00004900 0x550 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) - .debug_line 0x00004e50 0x74 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) +.debug_line 0x00000000 0x4f20 + .debug_line 0x00000000 0x296 THUMB Debug/../../obj/hooks.o + .debug_line 0x00000296 0x1fa THUMB Debug/../../obj/main.o + .debug_line 0x00000490 0x28f THUMB Debug/../../obj/core_cm3.o + .debug_line 0x0000071f 0x1c4 THUMB Debug/../../obj/system_stm32f10x.o + .debug_line 0x000008e3 0x53d THUMB Debug/../../obj/mmc.o + .debug_line 0x00000e20 0x3a8 THUMB Debug/../../obj/stm32f10x_gpio.o + .debug_line 0x000011c8 0x49a THUMB Debug/../../obj/stm32f10x_rcc.o + .debug_line 0x00001662 0x409 THUMB Debug/../../obj/stm32f10x_spi.o + .debug_line 0x00001a6b 0x484 THUMB Debug/../../obj/stm32f10x_usart.o + .debug_line 0x00001eef 0x10f THUMB Debug/../../obj/cstart.o + .debug_line 0x00001ffe 0xea THUMB Debug/../../obj/vectors.o + .debug_line 0x000020e8 0x168 THUMB Debug/../../obj/can.o + .debug_line 0x00002250 0x114 THUMB Debug/../../obj/cpu.o + .debug_line 0x00002364 0x13f THUMB Debug/../../obj/nvm.o + .debug_line 0x000024a3 0x119 THUMB Debug/../../obj/timer.o + .debug_line 0x000025bc 0x16d THUMB Debug/../../obj/uart.o + .debug_line 0x00002729 0x2df THUMB Debug/../../obj/flash.o + .debug_line 0x00002a08 0xd6 THUMB Debug/../../obj/assert.o + .debug_line 0x00002ade 0xf1 THUMB Debug/../../obj/backdoor.o + .debug_line 0x00002bcf 0xbd THUMB Debug/../../obj/boot.o + .debug_line 0x00002c8c 0x15e THUMB Debug/../../obj/com.o + .debug_line 0x00002dea 0xb0 THUMB Debug/../../obj/cop.o + .debug_line 0x00002e9a 0x1d7 THUMB Debug/../../obj/xcp.o + .debug_line 0x00003071 0x33f THUMB Debug/../../obj/file.o + .debug_line 0x000033b0 0xe5a THUMB Debug/../../obj/ff.o + .debug_line 0x0000420a 0x19f THUMB Debug/../../obj/unicode.o + .debug_line 0x000043a9 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) + .debug_line 0x0000495c 0x550 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) + .debug_line 0x00004eac 0x74 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) -.debug_str 0x00000000 0x3abd - .debug_str 0x00000000 0x4e6 THUMB Debug/../../obj/hooks.o - 0x54c (size before relaxing) - .debug_str 0x000004e6 0x135 THUMB Debug/../../obj/main.o +.debug_str 0x00000000 0x3ac9 + .debug_str 0x00000000 0x4fd THUMB Debug/../../obj/hooks.o + 0x563 (size before relaxing) + .debug_str 0x000004fd 0x12a THUMB Debug/../../obj/main.o 0x298 (size before relaxing) - .debug_str 0x0000061b 0x1ac THUMB Debug/../../obj/core_cm3.o + .debug_str 0x00000627 0x1ac THUMB Debug/../../obj/core_cm3.o 0x2a2 (size before relaxing) - .debug_str 0x000007c7 0x143 THUMB Debug/../../obj/system_stm32f10x.o + .debug_str 0x000007d3 0x143 THUMB Debug/../../obj/system_stm32f10x.o 0x316 (size before relaxing) - .debug_str 0x0000090a 0x3ab THUMB Debug/../../obj/mmc.o + .debug_str 0x00000916 0x3ab THUMB Debug/../../obj/mmc.o 0x584 (size before relaxing) - .debug_str 0x00000cb5 0x2b1 THUMB Debug/../../obj/stm32f10x_gpio.o + .debug_str 0x00000cc1 0x2b1 THUMB Debug/../../obj/stm32f10x_gpio.o 0x549 (size before relaxing) - .debug_str 0x00000f66 0x42e THUMB Debug/../../obj/stm32f10x_rcc.o + .debug_str 0x00000f72 0x42e THUMB Debug/../../obj/stm32f10x_rcc.o 0x64a (size before relaxing) - .debug_str 0x00001394 0x318 THUMB Debug/../../obj/stm32f10x_spi.o + .debug_str 0x000013a0 0x318 THUMB Debug/../../obj/stm32f10x_spi.o 0x62d (size before relaxing) - .debug_str 0x000016ac 0x461 THUMB Debug/../../obj/stm32f10x_usart.o + .debug_str 0x000016b8 0x461 THUMB Debug/../../obj/stm32f10x_usart.o 0x6c0 (size before relaxing) - .debug_str 0x00001b0d 0xbb THUMB Debug/../../obj/vectors.o + .debug_str 0x00001b19 0xbb THUMB Debug/../../obj/vectors.o 0x1ca (size before relaxing) - .debug_str 0x00001bc8 0x1a5 THUMB Debug/../../obj/can.o + .debug_str 0x00001bd4 0x1a5 THUMB Debug/../../obj/can.o 0x314 (size before relaxing) - .debug_str 0x00001d6d 0xca THUMB Debug/../../obj/cpu.o + .debug_str 0x00001d79 0xca THUMB Debug/../../obj/cpu.o 0x1ee (size before relaxing) - .debug_str 0x00001e37 0xcb THUMB Debug/../../obj/nvm.o + .debug_str 0x00001e43 0xcb THUMB Debug/../../obj/nvm.o 0x200 (size before relaxing) - .debug_str 0x00001f02 0xd4 THUMB Debug/../../obj/timer.o + .debug_str 0x00001f0e 0xd4 THUMB Debug/../../obj/timer.o 0x1e3 (size before relaxing) - .debug_str 0x00001fd6 0x126 THUMB Debug/../../obj/uart.o + .debug_str 0x00001fe2 0x126 THUMB Debug/../../obj/uart.o 0x2aa (size before relaxing) - .debug_str 0x000020fc 0x28d THUMB Debug/../../obj/flash.o + .debug_str 0x00002108 0x28d THUMB Debug/../../obj/flash.o 0x40e (size before relaxing) - .debug_str 0x00002389 0xa9 THUMB Debug/../../obj/assert.o + .debug_str 0x00002395 0xa9 THUMB Debug/../../obj/assert.o 0x1cb (size before relaxing) - .debug_str 0x00002432 0xae THUMB Debug/../../obj/backdoor.o + .debug_str 0x0000243e 0xae THUMB Debug/../../obj/backdoor.o 0x1c6 (size before relaxing) - .debug_str 0x000024e0 0x83 THUMB Debug/../../obj/boot.o + .debug_str 0x000024ec 0x83 THUMB Debug/../../obj/boot.o 0x187 (size before relaxing) - .debug_str 0x00002563 0x142 THUMB Debug/../../obj/com.o + .debug_str 0x0000256f 0x142 THUMB Debug/../../obj/com.o 0x280 (size before relaxing) - .debug_str 0x000026a5 0x83 THUMB Debug/../../obj/cop.o + .debug_str 0x000026b1 0x83 THUMB Debug/../../obj/cop.o 0x187 (size before relaxing) - .debug_str 0x00002728 0x25b THUMB Debug/../../obj/xcp.o + .debug_str 0x00002734 0x25b THUMB Debug/../../obj/xcp.o 0x3a9 (size before relaxing) - .debug_str 0x00002983 0x341 THUMB Debug/../../obj/file.o + .debug_str 0x0000298f 0x341 THUMB Debug/../../obj/file.o 0x6a7 (size before relaxing) - .debug_str 0x00002cc4 0x341 THUMB Debug/../../obj/ff.o + .debug_str 0x00002cd0 0x341 THUMB Debug/../../obj/ff.o 0x69e (size before relaxing) - .debug_str 0x00003005 0xbc THUMB Debug/../../obj/unicode.o + .debug_str 0x00003011 0xbc THUMB Debug/../../obj/unicode.o 0x168 (size before relaxing) - .debug_str 0x000030c1 0x577 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) + .debug_str 0x000030cd 0x577 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le.a(libc2.o) 0x655 (size before relaxing) - .debug_str 0x00003638 0x3b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) + .debug_str 0x00003644 0x3b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le.a(libdebugio.o) 0x3fc (size before relaxing) - .debug_str 0x000039eb 0xd2 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) + .debug_str 0x000039f7 0xd2 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le.a(user_libc.o) 0x11b (size before relaxing) .comment 0x00000000 0x4e diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.srec b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.srec index 754ce66c..94ff50ac 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.srec +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/bin/openbtl_olimex_stm32p103.srec @@ -1,25 +1,25 @@ S02B0000433A2F576F726B2F736F6674776172652F4F70656E424C542F5461726765742F44656D6F2F41524DEF -S31508000000E01100205101000895110008951100081B -S31508000010951100089511000895110008951100081A -S31508000020951100089511000895110008951100080A -S3150800003095110008951100089511000895110008FA -S3150800004095110008951100089511000895110008EA -S3150800005095110008951100089511000895110008DA -S3150800006095110008951100089511000895110008CA -S3150800007095110008951100089511000895110008BA -S3150800008095110008951100089511000895110008AA -S31508000090951100089511000895110008951100089A -S315080000A0951100089511000895110008951100088A -S315080000B0951100089511000895110008951100087A -S315080000C0951100089511000895110008951100086A -S315080000D0951100089511000895110008951100085A -S315080000E0951100089511000895110008951100084A -S315080000F0951100089511000895110008951100083A -S315080001009511000895110008951100089511000829 -S315080001109511000895110008951100089511000819 -S315080001209511000895110008951100089511000809 -S3150800013095110008951100089511000895110008F9 -S3150800014095110008951100089511000895110008E9 +S31508000000E011002051010008A9110008A9110008F3 +S31508000010A9110008A9110008A9110008A9110008CA +S31508000020A9110008A9110008A9110008A9110008BA +S31508000030A9110008A9110008A9110008A9110008AA +S31508000040A9110008A9110008A9110008A91100089A +S31508000050A9110008A9110008A9110008A91100088A +S31508000060A9110008A9110008A9110008A91100087A +S31508000070A9110008A9110008A9110008A91100086A +S31508000080A9110008A9110008A9110008A91100085A +S31508000090A9110008A9110008A9110008A91100084A +S315080000A0A9110008A9110008A9110008A91100083A +S315080000B0A9110008A9110008A9110008A91100082A +S315080000C0A9110008A9110008A9110008A91100081A +S315080000D0A9110008A9110008A9110008A91100080A +S315080000E0A9110008A9110008A9110008A9110008FA +S315080000F0A9110008A9110008A9110008A9110008EA +S31508000100A9110008A9110008A9110008A9110008D9 +S31508000110A9110008A9110008A9110008A9110008C9 +S31508000120A9110008A9110008A9110008A9110008B9 +S31508000130A9110008A9110008A9110008A9110008A9 +S31508000140A9110008A9110008A9110008A911000899 S3150800015072B628498D4628482849294A00F039F8B0 S3150800016028482949294A00F034F8294829492A4AB9 S3150800017000F02FF829482A492A4A00F02AF82A487E @@ -30,1384 +30,1385 @@ S315080001B01C49884205D00268043003B4904703BC42 S315080001C0F7E700208646EC4600200021204A9047A3 S315080001D0FEE7884207D0521A05D0037801300B7023 S315080001E00131013AF9D17047884202D002700130D4 -S315080001F0FAE77047E01100200458000800000020C4 -S31508000200080000205402000854020008784D00082F -S31508000210045800080000002000000020784D00085F -S31508000220784D0008784D0008784D0008784D00088C -S31508000230784D0008784D0008784D000804580008E5 +S315080001F0FAE77047E01100201858000800000020B0 +S315080002000800002054020008540200088C4D00081B +S315080002101858000800000020000000208C4D000837 +S315080002208C4D00088C4D00088C4D00088C4D00083C +S315080002308C4D00088C4D00088C4D00081858000895 S3150800024008000020600F0020600F0020E00F00204B -S30908000250B1030008E0 +S30908000250C5030008CC S3150800025400B588B04FF0000300930193029303930B -S31508000264049305930693079344F67850C0F6000062 -S31508000274694604F01BFC48B9009B53B19DF8083045 +S31508000264049305930693079344F68C50C0F600004E +S31508000274694604F025FC48B9009B53B19DF808303B S3150800028413F0100F14BF0020012004E04FF0000003 -S3150800029401E04FF0000008B000BD00BF44F67850F6 +S3150800029401E04FF0000008B000BD00BF44F68C50E2 S315080002A4C0F60000704700BF00B540F20800C2F26D -S315080002B400004FF0000380F8243244F69851C0F643 -S315080002C400014FF00A0204F013F838B940F20803A3 +S315080002B400004FF0000380F8243244F6AC51C0F62F +S315080002C400014FF00A0204F01DF838B940F2080399 S315080002D4C2F200034FF0010283F824225DF804FBFE -S315080002E430B540F20803C2F2000393F82432012B16 -S315080002F405D140F20800C2F2000004F0F1FA4FF406 -S315080003048844C4F200044FF040052046294600F00C -S3150800031437FF0028F9D044F67850C0F6000004F0F8 -S31508000324EDFB30BD00B540F20803C2F2000393F8B2 -S315080003342432012B05D140F20800C2F2000004F071 -S31508000344CFFA5DF804FB00BF70B5064640F2080311 -S31508000354C2F2000393F82432012B11D140F20801AA -S31508000364C2F2000104F072FC002809DA40F208001F -S31508000374C2F200004FF0000380F8243204F0B0FA09 -S31508000384317891B14FF48844C4F200044FF08005E3 -S31508000394204600F0EFFE2046294600F0F1FE00282C -S315080003A4F9D016F8011F0029F2D170BD00B582B044 -S315080003B44FF00003009301934FF48053C4F20203F1 -S315080003C41A6842F001021A6059684FF00002CFF623 -S315080003D4FF020A405A601A6822F0847222F48032B4 -S315080003E41A601A6822F480221A605A6822F4FE02F5 -S315080003F45A604FF41F029A601A6842F480321A60EF -S315080004044FF48053C4F2020340F2DC52196801F433 -S3150800041400310191009901F101010091019911B985 -S3150800042400999142F2D14FF48053C4F202031B6837 -S3150800043413F4003F04D14C484FF0730101F070FCEB -S315080004444FF40053C4F202031A6842F010021A6009 -S315080004541A6822F003021A601A6842F002021A6045 -S315080004644FF48053C4F202035A685A605A6842F435 -S3150800047400525A605A6842F480625A605A6822F4F2 -S315080004847C125A605A6842F4E8125A601A6842F0B2 -S3150800049480721A604FF48053C4F202031A6812F089 -S315080004A4007FFBD04FF48053C4F202035A6822F04B -S315080004B403025A605A6842F002025A604FF48053A3 -S315080004C4C4F202035A6802F00C02082AFAD14FF45D -S315080004D48053C4F202039A6942F009029A614FF4FE -S315080004E44062C4F20102516821F00F01516051685B -S315080004F441F008015160516821F0F00151605168DA -S3150800050441F0B00151604FF00002C4F20102516893 -S3150800051421F4C0415160516841F480415160DA695F -S3150800052442F00072DA61DA6942F40032DA619A69F1 -S3150800053442F005029A614FF40063C4F201031A6893 -S3150800054422F470621A601A6842F430621A601A68F1 -S3150800055422F470421A601A6842F480421A6001F062 -S3150800056429FC01F037FCFCE7A84D000830B5C1B2F8 -S315080005744FF46050C4F2000000F0DCFD4FF4605400 -S31508000584C4F200044FF001052046294600F0EAFDAE -S315080005940028F9D04FF46050C4F2000000F0CEFDF4 -S315080005A4C0B230BD70B500F0EDFF00F5FA764FF035 -S315080005B4FF052846FFF7DAFF0446FF2803D000F0B4 -S315080005C4E1FF8642F5D8FF2C14BF0020012070BD38 -S315080005D410B504464FF0FF00FFF7C8FF207010BDA2 -S315080005E4F0B504460F4600F0CDFF00F164064FF05F -S315080005F4FF052846FFF7BAFFFF2806D100F0C2FF19 -S315080006048642F6D84FF00000F0BDFE2816D12546DE -S315080006142046FFF7DDFF04F1020405F10100FFF7A8 -S31508000624D7FF023FF3D14FF0FF00FFF79FFF4FF0CC -S31508000634FF00FFF79BFF4FF00100F0BD4FF00000ED -S31508000644F0BD00BF30B50446CDB2FFF7ABFF18B313 -S315080006542846FFF78BFFFD2D21D004F50075207879 -S31508000664FFF784FF607804F10204FFF77FFFA542D1 -S31508000674F5D14FF0FF00FFF779FF4FF0FF00FFF7C2 -S3150800068475FF4FF0FF00FFF771FF00F01F00052804 -S3150800069414BF0020012030BD4FF0000030BD4FF0DC -S315080006A4010030BD00B54FF44060C4F201004FF4B8 -S315080006B4805100F0E1FC4FF0FF00FFF757FF5DF8AB -S315080006C404FB00BF00B54FF44060C4F201004FF4C8 -S315080006D4805100F0D5FC4FF0FF00FFF747FFFFF706 -S315080006E461FF28B9FFF7DEFF4FF000005DF804FB51 -S315080006F44FF001005DF804FB30B50D46C4B214F0A2 -S31508000704800F0AD04FF037004FF00001FFF7F4FFCF -S315080007140346012B3AD804F07F04FFF7C3FFFFF71B -S31508000724D1FF002830D044F04000FFF71FFF4FEAFE -S315080007341560FFF71BFFC5F30740FFF717FFC5F35F -S315080007440720FFF713FFE8B2FFF710FF24B3082CBE -S315080007541DD04FF00100FFF709FF0C2C03D14FF011 -S31508000764FF00FFF703FF4FF00A044FF0FF05284682 -S31508000774FFF7FCFE034613F0800F07D004F1FF349D -S31508000784E4B2002CF3D130BD4FF0FF0030BD4FF07A -S315080007948700FFF7EBFEE6E74FF09500FFF7E6FE66 -S315080007A4E1E700BF2DE9F0438EB0C0B2002840F05F -S315080007B49B8140F20003C2F200031B7813F0020F78 -S315080007C405D040F20003C2F2000318788EE14FF018 -S315080007D408004FF0010100F057FC4FF480404FF039 -S315080007E4010100F063FC4FF48057ADF814704FF024 -S315080007F41009CDF81C904FF00308CDF818804FF473 -S315080008044064C4F20104204605A900F0D5FB20463D -S31508000814394600F031FC4FF42043ADF81430CDF8D6 -S3150800082418804FF018030793204605A900F0C4FB67 -S315080008344FF48046ADF814604FF0480307932046FA -S3150800084405A900F0B9FB4FF00005ADF800504FF4C8 -S315080008548273ADF80230ADF80450ADF80650ADF821 -S3150800086408504FF40073ADF80A304FF03803ADF86A -S315080008740C30ADF80E504FF00703ADF810304FF4B6 -S31508000884605066F31F40694600F022FC4FF460503E -S3150800089466F31F40294600F055FC4FF4605066F392 -S315080008A41F404FF0010100F035FC2046394600F0A0 -S315080008B4E3FB4FF40045ADF82850CDF82C80CDF86D -S315080008C4309020460AA900F077FB2046294600F016 -S315080008D4D3FB4FF00A074FF46054C4F200044FF0F8 -S315080008E402054FF001062046294600F03BFC002885 -S315080008F4F9D020464FF0FF0100F01CFC2046314693 -S3150800090400F030FC0028F9D0013FECD14FF4004345 -S31508000914ADF828304FF003030B934FF018030C93EC -S315080009244FF44064C4F2010420460AA900F044FBCB -S3150800093420464FF4805100F0A3FB4FF00000014617 -S31508000944FFF7DAFE012840F0D48000F01BFE00F51C -S315080009547A744FF008004FF4D571FFF7CDFE0128DD -S315080009644CD10DF133070DF137063D464FF0FF081C -S315080009744046FFF7FBFD05F8010FB542F8D19DF88F -S315080009843630012B40F0B5809DF83730AA2B40F05D -S31508000994B0804FF0A9054FF0804800F0F3FD84427B -S315080009A405D928464146FFF7A7FE0028F5D100F0E9 -S315080009B4E9FD844240F29D804FF03A004FF0000171 -S315080009C4FFF79AFE002840F094804FF0FF04204673 -S315080009D4FFF7CCFD07F8010FB742F8D19DF834307C -S315080009E403F04003002B14BF0C22042240F23023E8 -S315080009F4C2F200031A60FFF755FE2CE04FF0A90077 -S31508000A044FF00001FFF778FE012899BF0227A925B0 -S31508000A1401273D464FF0000600F0B4FD844205D98F -S31508000A2428463146FFF768FE0028F5D100F0AAFDEE -S31508000A3484425ED94FF010004FF40071FFF75CFE54 -S31508000A44002856D140F23023C2F200031F60FFF794 -S31508000A5429FE002F3AD040F20003C2F200031A78A6 -S31508000A6402F0FE021A704FF46055C4F200052846D7 -S31508000A744FF0000100F04EFB4FF00004ADF81440AF -S31508000A844FF48273ADF81630ADF81840ADF81A4035 -S31508000A94ADF81C404FF40073ADF81E304FF0080350 -S31508000AA4ADF82030ADF822404FF00703ADF82430F6 -S31508000AB4284605A900F00CFB2846214600F042FB0F -S31508000AC428464FF0010100F025FB07E040F2000339 -S31508000AD4C2F200031A7842F001021A7040F20003C7 -S31508000AE4C2F20003187801E04FF001000EB0BDE829 -S31508000AF4F08340F23023C2F200034FF000021A607A -S31508000B04FFF7D0FDE2E700BFC0B228B940F2000300 -S31508000B14C2F20003187870474FF00100704700BF0F -S31508000B2470B50D46C0B2DCB2002843D1002C44D0BF -S31508000B3440F20003C2F200031B7813F0010F3FD101 -S31508000B4440F23023C2F200031B6813F0080F08BFF3 -S31508000B545202012C0ED14FF011001146FFF7CCFDBD -S31508000B6410BB28464FF40071FFF73AFD002818BF5A -S31508000B74002419E04FF012001146FFF7BDFD98B99D -S31508000B844FF4007628463146FFF72AFD30B105F5BD -S31508000B94007504F1FF34E4B2002CF3D14FF00C00D5 -S31508000BA44FF00001FFF7A8FDFFF77CFD201C18BFD6 -S31508000BB4012070BD4FF0040070BD4FF0040070BDF5 -S31508000BC44FF0030070BD00BF70B50E461546C0B29F -S31508000BD4DCB2002856D1002C57D040F20003C2F2EA -S31508000BE400031B7813F0010F52D140F20003C2F23E -S31508000BF400031B7813F0040F4DD140F23023C2F2E0 -S31508000C0400031B6813F0080F08BF5502012C0ED108 -S31508000C144FF018002946FFF76FFD68BB30464FF0C2 -S31508000C24FE01FFF70FFD002818BF002424E013F087 -S31508000C34060F04D04FF097002146FFF75DFD4FF0ED -S31508000C4419002946FFF758FDB0B94FF0FC053046A0 -S31508000C542946FFF7F7FC30B106F5007604F1FF34B0 -S31508000C64E4B2002CF3D14FF000004FF0FD01FFF77A -S31508000C74E9FC002808BF0124FFF714FD201C18BF4F -S31508000C84012070BD4FF0040070BD4FF0040070BD24 -S31508000C944FF0030070BD4FF0020070BD70B584B00C -S31508000CA41446C0B2C9B2002840F0768140F2000367 -S31508000CB4C2F200031B7813F0010F40F070810E296D -S31508000CC400F24481DFE811F00F00160042016800C3 -S31508000CD4420142014201420142014201E100EA00A5 -S31508000CE4FC000E012501FFF7EDFCD0F1010438BF25 -S31508000CF400244EE14FF009004FF00001FFF7FCFC19 -S31508000D04002840F0268168464FF01001FFF768FC7A -S31508000D14002800F021819DF800304FEA9313012B37 -S31508000D2414D19DF8072002F03F024FEA024202F16D -S31508000D3401029DF809309DF8081003EB0123D31826 -S31508000D444FEA832323604FF0000422E19DF808202C -S31508000D549DF807304FEA830303EB92139DF80620A8 -S31508000D6402F0030203EB822202F101029DF8053028 -S31508000D7403F00F039DF80A1003EBD1139DF809102D -S31508000D8401F0030103EB4103A3F1070302FA03F39A -S31508000D9423604FF00004FCE040F23023C2F2000363 -S31508000DA41B6813F0040F2CD04FF08D004FF0000190 -S31508000DB4FFF7A2FC002840F0D2804FF0FF00FFF7AF -S31508000DC4D5FB68464FF01001FFF70AFC002800F02F -S31508000DD4C9804FF030054FF0FF063046FFF7C6FBD3 -S31508000DE405F1FF35EDB2002DF7D19DF80A304FEA2B -S31508000DF413134FF0100202FA03F323604FF00004B2 -S31508000E04C7E04FF009004FF00001FFF775FC002812 -S31508000E1440F0AB8068464FF01001FFF7E1FB00286D -S31508000E2400F0A680604B1B6813F0020F17D09DF8DC -S31508000E340A2002F03F029DF80B304FEAD31303EB66 -S31508000E44420202F101029DF80D304FEA931303F1B1 -S31508000E54FF3302FA03F323604FF0000499E09DF888 -S31508000E640B309DF80A20C2F3840202F1010203F052 -S31508000E7403014FEA531303EBC10303F1010303FB15 -S31508000E8402F323604FF0000483E040F23023C2F2F9 -S31508000E9400031B6813704FF000047AE04FF0090052 -S31508000EA44FF00001FFF728FC002864D120464FF0D4 -S31508000EB41001FFF795FBD0F1010438BF002468E060 -S31508000EC44FF00A004FF00001FFF716FC002855D131 -S31508000ED420464FF01001FFF783FBD0F1010438BF19 -S31508000EE4002456E04FF03A004FF00001FFF704FCE7 -S31508000EF4002846D14FF000054FF0FF063046FFF7AD -S31508000F0435FB605505F10105042DF7D14FF00004B2 -S31508000F143FE040F23023C2F200031B6813F0040FCB -S31508000F2432D04FF08D004FF00001FFF7E5FB70BBA0 -S31508000F344FF0FF00FFF71AFB20464FF04001FFF77A -S31508000F444FFBD0F1010438BF002422E04FF004041B -S31508000F541FE04FF001041CE04FF0010419E04FF0C4 -S31508000F64010416E04FF0010413E04FF0010410E009 -S31508000F744FF001040DE04FF001040AE04FF00104BC -S31508000F8407E04FF0010404E04FF0010401E04FF0DC -S31508000F940104FFF787FB04E04FF0040401E04FF077 -S31508000FA40304204604B070BD300200204FF0000050 -S31508000FB4C4F2AA20704700BF2DE9F0038B6803F03A -S31508000FC40F0513F0100F1CBF4B681D430B782BB38A -S31508000FD4D0F800C04FF000034FF001064FF00F0899 -S31508000FE406FA03F20C881440944211D14FEA830797 -S31508000FF408FA07F92CEA090C05FA07F74CEA070C6C -S315080010048F68282F01D1446102E0482F08BF026186 -S3150800101403F10103082BE3D1C0F800C00B88FF2BAA -S3150800102427D9D0F804C04FF000034FF001064FF05B -S315080010340F0803F1080206FA02F20C8814409442D7 -S3150800104411D14FEA830708FA07F92CEA090C05FABD -S3150800105407F74CEA070C8F68282F08BF44618C6889 -S31508001064482C08BF026103F10103082BE1D1C0F83B -S3150800107404C0BDE8F003704789B20161704700BF38 -S3150800108489B24161704700BF39B14FF48053C4F245 -S3150800109402039A691043986170474FF48053C4F267 -S315080010A402039A6922EA00009861704739B14FF43D -S315080010B48053C4F20203DA691043D86170474FF4C7 -S315080010C48053C4F20203DA6922EA0000D861704741 -S315080010D410B4028802F441524C880B8823438C8846 -S315080010E42343CC8823430C8923434C8923438C8983 -S315080010F42343CC89234313439BB20380838B23F472 -S3150800110400634FEA03434FEA134383830B8A03823C -S3150800111410BC704729B103889BB243F0400303808F -S315080011247047038823F040034FEA03434FEA134307 -S315080011340380704789B28181704700BF808980B275 -S31508001144704700BF29B103889BB243F40053038058 -S315080011547047038823F400534FEA03434FEA1343C3 -S315080011640380704703899BB219420CBF00200120F3 -S31508001174704700BF4FEAC1514FEAD1518180704789 -S3150800118403889BB219420CBF00200120704700BF98 -S3150800119400B544F60C60C0F600004FF03D0100F0BF -S315080011A4BFFD5DF804FB00BF2DE9F0474FF00003CF -S315080011B444F61875C0F600054FF4FA7048F6A041CF -S315080011C440F2FF3A13F805C0EA1892F801800CEBCE -S315080011D4080202FB000291FBF2F902FB1919B9F1A4 -S315080011E4000F06D191FBF2F404F1FF3292B2524594 -S315080011F404D903F10403482BE4D18CE04746664638 -S315080012044FF4C843C4F200034FF000025A611A6847 -S3150800121442F400421A601B6813F4004F09D04FF4D5 -S31508001224C845C4F2000500F06FFE2B6813F4004F9E -S31508001234F9D14FF4C843C4F200031A6822F0020233 -S315080012441A601A6842F001021A605B6813F0010F0B -S3150800125409D14FF4C845C4F2000500F055FE6B6881 -S3150800126413F0010FF9D006F1FF3607F1FF374FEAFD -S31508001274075747EA064604F1FF3434434FF4C84394 -S31508001284C4F20003DC611A6822F001021A605B6882 -S3150800129413F0010F09D04FF4C844C4F2000400F057 -S315080012A433FE636813F0010FF9D14FF4C843C4F24F -S315080012B40003D3F8002242F00102C3F80022D3F84F -S315080012C41C2222F00102C3F81C22D3F80C2242F095 -S315080012D40102C3F80C224FF00002C3F84022C3F8F7 -S315080012E44422D3F8042222F00102C3F80422D3F8D4 -S315080012F4142222F00102C3F81422D3F81C2242F065 -S315080013040102C3F81C22D3F8002222F00102C3F812 -S315080013140022BDE8F08744F69860C0F600004FF056 -S31508001324E60100F0FDFC6BE730B50446CDB24FF498 -S31508001334C843C4F200039B6813F0806F07D144F6D0 -S315080013449860C0F6000040F2251100F0E9FC4FF45D -S31508001354C843C4F20003D3F8802102F00102C3F89B -S315080013648021D3F8802142F07C4242F40012C3F86B -S315080013748021C3F88451E178A2784FEA024242EA0E -S31508001384016221780A43617842EA0122C3F8882176 -S31508001394E179A2794FEA024242EA016221790A43D3 -S315080013A4617942EA0122C3F88C21D3F8802142F0FC -S315080013B40102C3F880219B6813F0806F09D14FF4AA -S315080013C4C844C4F2000400F09FFDA36813F0806FBC -S315080013D4F9D030BD4FF4C843C4F20003DB6813F0F8 -S315080013E4030F40D04FF4C843C4F20003D3F8B02126 -S315080013F440F26763B3EB525F2AD14FF4C843C4F291 -S315080014040003D3F8B8210270D3F8B8214FEA1222A0 -S315080014144270D3F8B8214FEA12428270D3F8B82141 -S315080014244FEA1262C270D3F8BC210271D3F8BC2108 -S315080014344FEA12224271D3F8BC214FEA1242827152 -S31508001444D3F8BC314FEA1363C3714FF0010001E0CE -S315080014544FF000004FF4C843C4F20003DA6842F0C0 -S315080014642002DA6070474FF00000704700B500F0BC -S315080014743DF890B100F0FCFC00F050F800F03CF8A0 -S3150800148420F0604020F07F004EF60853CEF20003A9 -S31508001494186000F031F8436898475DF804FB00BF0C -S315080014A470B50E4692B272B1044600F1010002F11B -S315080014B4FF3292B2851816F8013B04F8013B00F096 -S315080014C423FDAC42F7D170BD00B500F0BBFA5DF858 -S315080014D404FB00BF00B500F0C3FA5DF804FB00BFC7 -S315080014E400B500F0E9FA5DF804FB00BF00B500F0AA -S315080014F4B1FB5DF804FB00BF00B500F00BFC5DF81A -S3150800150404FB00BF00B500F077FB18B100F0D6FB6A -S315080015145DF804FB4FF000005DF804FB4EF210037F -S31508001524CEF200034FF000021A60704700B5FFF7C9 -S31508001534F5FF4EF21003CEF2000341F63F12C0F255 -S3150800154401025A604FF000029A604FF005011960D3 -S3150800155440F23423C2F200031A605DF804FB00BFAC -S315080015644EF21003CEF200031B6813F4803F07D033 -S3150800157440F23423C2F200031A6802F101021A6027 -S31508001584704700BF00B5FFF7EBFF40F23423C2F201 -S31508001594000318685DF804FB4FF48843C4F200039B -S315080015A41B8813F0200F08D04FF48843C4F20003B5 -S315080015B49B8803704FF0010070474FF00000704796 -S315080015C410B5C0B24FF48843C4F200031B8813F065 -S315080015D4800F15D04FF48843C4F2000398801B8803 -S315080015E413F0800F0FD14FF48844C4F2000400F0BE -S315080015F48BFC238813F0800FF9D04FF0010010BD3F -S315080016044FF0000010BD4FF0010010BD4FF48843A1 -S31508001614C4F200034FF000021A819A811A829A8250 -S315080016241A8340F271221A819A8992B242F40052BC -S3150800163442F00C029A8170472DE9F0410546CCB276 -S31508001644402C07D944F66070C0F600004FF09201AA -S3150800165400F066FB2046FFF7B3FF012807D044F6DF -S315080016646070C0F600004FF0960100F059FB26465C -S31508001674BCB14FF0000444F66077C0F600074FF09B -S315080016849F0800F041FC285DFFF79AFF012803D064 -S315080016943846414600F044FB04F10104A3B2B342C0 -S315080016A4EFD3BDE8F08100BF30B5054640F27D238F -S315080016B4C2F200031B7823BB40F23820C2F20000B2 -S315080016C4FFF76AFF01285CD140F23823C2F200030F -S315080016D41B78002B58D0FFF755FF40F28023C2F23F -S315080016E40003186040F27C23C2F200034FF00000A6 -S315080016F4187040F27D23C2F200034FF001021A70FB -S3150800170430BD40F27C23C2F200031C7840F2382331 -S31508001714C2F2000304F101001818FFF73DFF01287F -S315080017241CD104F10104E2B240F27C23C2F20003A4 -S315080017341A7040F23823C2F200031B78934226D16A -S3150800174428461649FFF7ACFE40F27D23C2F2000391 -S315080017544FF000021A704FF0010030BDFFF712FF78 -S3150800176440F28023C2F200031B6803F16403984223 -S3150800177410D940F27D23C2F200034FF0000018701E -S3150800178430BD4FF0000030BD4FF0000030BD4FF0C3 -S31508001794000030BD4FF0000030BD00BF3902002004 -S315080017A44FF40053C4F2020340F22312C4F2675200 -S315080017B45A6048F6AB12CCF6EF525A604FF0340230 -S315080017C4DA6070474FF40053C4F202031A6942F010 -S315080017D480021A61704700BF70B5064644F6E07584 -S315080017E4C0F600054FF0000400F08EFB2B68B342E8 -S315080017F40DD869685B189E4209D244F6E073C0F6B0 -S31508001804000304EB440203EB8203187A70BD04F167 -S31508001814010405F10C050D2CE6D14FF0FF0070BD4F -S315080018242DE9F04107460068FFF7D6FFFF2855D093 -S31508001834FFF7B6FF4FF40053C4F20203DB6813F054 -S31508001844010F04D0FFF7BEFF4FF0000448E04FF441 -S315080018540053C4F202031A6942F001021A614FF0F6 -S3150800186400054FF40054C4F202043B6805EB030870 -S3150800187405F10402BE58B2B2EA52E36813F0010F46 -S3150800188405D000F041FBE36813F0010FF9D14FEAE4 -S315080018941643A8F80230E36813F0010F05D000F0E8 -S315080018A433FBE36813F0010FF9D1D8F80030B342DB -S315080018B407D105F10405B5F5007FD6D14FF001042B -S315080018C401E04FF000044FF40053C4F202031A690E -S315080018D422F001021A61FFF775FF01E04FF00004D8 -S315080018E42046BDE8F08100BF70B5C6B244F6E0757F -S315080018F4C0F600054FF0000400F006FB2B7AB3424D -S3150800190408D144F6E073C0F6000304EB440253F826 -S31508001914220070BD04F1010405F10C050D2CEBD170 -S315080019244FF0FF3070BD00BF00B54FEAC1534FEA10 -S31508001934D35363B903688B420DD040F8041B4FF4A4 -S315080019440072FFF7ADFD4FF001005DF804FB4FF0A0 -S3150800195400005DF804FB4FF001005DF804FB00BFCE -S3150800196430B504460D4640F28423C2F20003984279 -S3150800197409D04FF4C043C0F60003994208D0FFF7D4 -S315080019844FFF48B910E040F28844C2F2000403E06D -S3150800199440F28424C2F2000420462946FFF7C4FF15 -S315080019A4002808BF002401E04FF00004204630BD9B -S315080019B42DE9F04305460C4617461E464FEA5129BB -S315080019C44FEA49290368B3F1FF3F03D14946FFF7B4 -S315080019D4ABFF50B32B684B4505D028464946FFF75D -S315080019E4BFFF054628B32B68E41A04F104042C192E -S315080019F440F2FF1809F5007900F086FA05F10403A8 -S31508001A04E31A434507D928464946FFF7A9FF054679 -S31508001A1498B100F1040417F8013B04F8013B013EB0 -S31508001A24EAD14FF00100BDE8F0834FF00000BDE8AD -S31508001A34F0834FF00000BDE8F0834FF00000BDE8E6 -S31508001A44F08300BF40F28843C2F200034FF0FF322E -S31508001A541A6040F28423C2F200031A60704700BF7A -S31508001A6470B504460D461646FFF7B6FEFF281DD088 -S31508001A7404F1FF304019FFF7AFFEFF2819D04FEAEB -S31508001A8454224FF4C043C0F60003B3EB422F07BFFA -S31508001A9440F28420C2F2000040F28840C2F20000FC -S31508001AA4214632462B46FFF783FF70BD4FF00000F0 -S31508001AB470BD4FF0000070BD2DE9F04104460E4696 -S31508001AC4FFF78AFE054604F1FF34A019FFF784FEE2 -S31508001AD404460646FF2D00F08780FF2800F088801C -S31508001AE4854275D8022D77D90F2879D8FFF758FE7D -S31508001AF44FF40053C4F20203DB6813F0010F05D058 -S31508001B04FFF760FE4FF00000BDE8F0814FF4005384 -S31508001B14C4F202031A6942F002021A612846FFF760 -S31508001B24E3FE07462046FFF7DFFE804644F6E075E7 -S31508001B34C0F600054FF0000400F0E6F92B7AB3422C -S31508001B4409D144F6E073C0F6000304EB440203EB40 -S31508001B5482035B6807E004F1010405F10C050D2C0A -S31508001B64EAD14FF00003C7EB08084344C3F38F23B5 -S31508001B7403B303F1FF339EB206F101064FEA862644 -S31508001B844FF000054FF40054C4F20204EB196361E4 -S31508001B94236943F040032361E36813F0010F05D07A -S31508001BA400F0B2F9E36813F0010FF9D105F5806581 -S31508001BB4B542EBD14FF40053C4F202031A6922F07A -S31508001BC402021A61FFF7FEFD4FF00100BDE8F0813D -S31508001BD44FF00000BDE8F0814FF00000BDE8F08149 -S31508001BE44FF00000BDE8F0814FF00000BDE8F08139 -S31508001BF44FF00000BDE8F08100B581B040F28423BF -S31508001C04C2F200031B68B3F1FF3F1FD040F28423DE -S31508001C14C2F2000399685A688918DA6889181A6931 -S31508001C2489185A6989189A698918DA698B18C3F15F -S31508001C34000301AA42F8043D46F25010C0F600001B -S31508001C444FF004016A46FFF70BFF01E04FF001006D -S31508001C5401B000BD46F20402C0F600024FF4C043C8 -S31508001C64C0F6000310681B68C01846F20803C0F6DD -S31508001C7400031B68C01846F20C03C0F600031B6871 -S31508001C84C01846F21003C0F600031B68C01846F2D3 -S31508001C941403C0F600031B68C01846F21803C0F6FE -S31508001CA400031B68C01846F25013C0F600031B68ED -S31508001CB4C018D0F1010038BF0020704700B540F2C3 -S31508001CC48423C2F200031B68B3F1FF3F06D040F237 -S31508001CD48420C2F20000FFF7A3FD90B140F28843C6 -S31508001CE4C2F200031B68B3F1FF3F0ED040F28840EE -S31508001CF4C2F20000FFF794FD003018BF01205DF81A -S31508001D0404FB4FF000005DF804FB4FF001005DF89A -S31508001D1404FB00BF4FF4C040C0F60000704700BF84 -S31508001D2400B540F28C63C2F20003186040F2906377 -S31508001D34C2F20003196000F0E7F8FCE700B500F00A -S31508001D44DBF8012820D000F0AFFBE8B140F2946339 -S31508001D54C2F200031B78012B16D1FFF713FC40F2DD -S31508001D649863C2F200031B6803F5FA7398420BD30F -S31508001D7440F29463C2F200034FF000021A7000F0B6 -S31508001D849DFB08B9FFF772FB5DF804FB00B540F24A -S31508001D949463C2F200034FF001021A70FFF7F2FBD4 -S31508001DA440F29863C2F200031860FFF7C7FF5DF8B4 -S31508001DB404FB00BF00B500F0A5F8FFF7B7FBFFF773 -S31508001DC483FB00F057FB00F013F8FFF7DFFF5DF81D -S31508001DD404FB00BF00B500F097F8FFF7C1FB00F05D -S31508001DE49BFC00F017F8FFF7A9FF5DF804FB00BF9A -S31508001DF410B500F0A1F8FFF7D7F940F20404C2F2CF -S31508001E0400044FF001032360FFF700FC4FF00003C2 -S31508001E14236010BD00B540F29C60C2F20000FFF7D3 -S31508001E24D9FA01280CD140F20403C2F200034FF098 -S31508001E3401021A6040F29C60C2F2000000F0A0F8A9 -S31508001E4440F29C60C2F20000FFF72EFC01280CD178 -S31508001E5440F20403C2F200034FF000021A6040F293 -S31508001E649C60C2F2000000F08BF85DF804FB00BF2A -S31508001E74704700BF30B504468DB240F20403C2F27F -S31508001E8400031B68012B02D1E9B2FFF74DFA40F2B1 -S31508001E940403C2F200031B681BB9E9B22046FFF724 -S31508001EA4CBFB00F063F830BD40F20403C2F2000332 -S31508001EB41868022806D0032807D001280CBF082072 -S31508001EC4402070474FF0000070474FF000007047FD -S31508001ED440F20403C2F200031868022806D0032855 -S31508001EE407D001280CBF0820402070474FF0000097 -S31508001EF470474FF00000704700B500F02DF85DF804 -S31508001F0404FB00BF704700BF704700BF40F2DC63A4 -S31508001F14C2F200034FF000025A70704740F2DC63C5 -S31508001F24C2F200034FF0FE02DA7018714FF0020293 -S31508001F34A3F84420704700BF40F2DC63C2F20003F2 -S31508001F444FF000021A709A6483F84320A3F84420D9 -S31508001F549A705A70704700BF40F2DC63C2F20003FD -S31508001F641878003018BF0120704700BF40F2DC63C0 -S31508001F74C2F200034FF0000283F84320704700BF03 -S31508001F8430B504460278FF2A2BD100F08DFA20B921 -S31508001F944FF01000FFF7C2FFD2E1FFF7B7FF40F298 -S31508001FA4DC64C2F200044FF0010525704FF0FF030C -S31508001FB4E3704FF0100323714FF000036371FFF7CA -S31508001FC473FFA071FFF784FFE071FFF781FF4FEA03 -S31508001FD4102020726572A5724FF00803A4F84430E5 -S31508001FE4AEE140F2DC63C2F200031B78012B40F039 -S31508001FF4C981A2F1C902352A00F29E81DFE812F0EE -S31508002004F8009C019C0197019C019C0189011F0110 -S315080020146F0159019C019C019C019C019C019C0136 -S315080020249C019C019C019C019C019C019C019C01B6 +S315080002E470B540F20803C2F2000393F82432012BD6 +S315080002F405D140F20800C2F2000004F0FBFA01F04E +S315080003044BF900F164064FF48844C4F200044FF034 +S31508000314400503E001F040F9864205D32046294604 +S3150800032400F038FF0028F5D044F68C50C0F60000DB +S3150800033404F0EEFB70BD00BF00B540F20803C2F23C +S31508000344000393F82432012B05D140F20800C2F2C7 +S31508000354000004F0CFFA5DF804FB00BF70B506464A +S3150800036440F20803C2F2000393F82432012B11D198 +S3150800037440F20801C2F2000104F072FC002809DA0E +S3150800038440F20800C2F200004FF0000380F824325D +S3150800039404F0B0FA317891B14FF48844C4F20004F9 +S315080003A44FF08005204600F0EFFE2046294600F06F +S315080003B4F1FE0028F9D016F8011F0029F2D170BD04 +S315080003C400B582B04FF00003009301934FF48053B5 +S315080003D4C4F202031A6842F001021A6059684FF01F +S315080003E40002CFF6FF020A405A601A6822F08472A5 +S315080003F422F480321A601A6822F480221A605A6833 +S3150800040422F4FE025A604FF41F029A601A6842F4F4 +S3150800041480321A604FF48053C4F2020340F2DC526D +S31508000424196801F400310191009901F10101009163 +S31508000434019911B900999142F2D14FF48053C4F24B +S3150800044402031B6813F4003F04D14C484FF06E01B5 +S3150800045401F070FC4FF40053C4F202031A6842F028 +S3150800046410021A601A6822F003021A601A6842F027 +S3150800047402021A604FF48053C4F202035A685A609F +S315080004845A6842F400525A605A6842F480625A60C2 +S315080004945A6822F47C125A605A6842F4E8125A607E +S315080004A41A6842F080721A604FF48053C4F2020349 +S315080004B41A6812F0007FFBD04FF48053C4F202038B +S315080004C45A6822F003025A605A6842F002025A60D5 +S315080004D44FF48053C4F202035A6802F00C02082A45 +S315080004E4FAD14FF48053C4F202039A6942F009021E +S315080004F49A614FF44062C4F20102516821F00F0177 +S315080005045160516841F008015160516821F0F001C9 +S315080005145160516841F0B00151604FF00002C4F2D5 +S315080005240102516821F4C0415160516841F4804187 +S315080005345160DA6942F00072DA61DA6942F400322B +S31508000544DA619A6942F005029A614FF40063C4F2CB +S3150800055401031A6822F470621A601A6842F4306257 +S315080005641A601A6822F470421A601A6842F48042C1 +S315080005741A6001F029FC01F037FCFCE7BC4D0008C1 +S3150800058430B5C1B24FF46050C4F2000000F0DCFD8F +S315080005944FF46054C4F200044FF00105204629467E +S315080005A400F0EAFD0028F9D04FF46050C4F20000C8 +S315080005B400F0CEFDC0B230BD70B500F0EDFF00F519 +S315080005C4FA764FF0FF052846FFF7DAFF0446FF28B8 +S315080005D403D000F0E1FF8642F5D8FF2C14BF0020B3 +S315080005E4012070BD10B504464FF0FF00FFF7C8FFA1 +S315080005F4207010BDF0B504460F4600F0CDFF00F19B +S3150800060464064FF0FF052846FFF7BAFFFF2806D110 +S3150800061400F0C2FF8642F6D84FF00000F0BDFE286F +S3150800062416D125462046FFF7DDFF04F1020405F13D +S315080006340100FFF7D7FF023FF3D14FF0FF00FFF7A2 +S315080006449FFF4FF0FF00FFF79BFF4FF00100F0BD3F +S315080006544FF00000F0BD00BF30B50446CDB2FFF739 +S31508000664ABFF18B32846FFF78BFFFD2D21D004F501 +S3150800067400752078FFF784FF607804F10204FFF719 +S315080006847FFFA542F5D14FF0FF00FFF779FF4FF042 +S31508000694FF00FFF775FF4FF0FF00FFF771FF00F04B +S315080006A41F00052814BF0020012030BD4FF00000AC +S315080006B430BD4FF0010030BD00B54FF44060C4F2C0 +S315080006C401004FF4805100F0E1FC4FF0FF00FFF702 +S315080006D457FF5DF804FB00BF00B54FF44060C4F251 +S315080006E401004FF4805100F0D5FC4FF0FF00FFF7EE +S315080006F447FFFFF761FF28B9FFF7DEFF4FF0000059 +S315080007045DF804FB4FF001005DF804FB30B50D46B7 +S31508000714C4B214F0800F0AD04FF037004FF000012E +S31508000724FFF7F4FF0346012B3AD804F07F04FFF7DA +S31508000734C3FFFFF7D1FF002830D044F04000FFF78D +S315080007441FFF4FEA1560FFF71BFFC5F30740FFF7C6 +S3150800075417FFC5F30720FFF713FFE8B2FFF710FFEB +S3150800076424B3082C1DD04FF00100FFF709FF0C2C09 +S3150800077403D14FF0FF00FFF703FF4FF00A044FF0D1 +S31508000784FF052846FFF7FCFE034613F0800F07D043 +S3150800079404F1FF34E4B2002CF3D130BD4FF0FF006E +S315080007A430BD4FF08700FFF7EBFEE6E74FF0950004 +S315080007B4FFF7E6FEE1E700BF2DE9F0438EB0C0B2CD +S315080007C4002840F09B8140F20003C2F200031B7824 +S315080007D413F0020F05D040F20003C2F200031878A2 +S315080007E48EE14FF008004FF0010100F057FC4FF47A +S315080007F480404FF0010100F063FC4FF48057ADF8D8 +S3150800080414704FF01009CDF81C904FF00308CDF87A +S3150800081418804FF44064C4F20104204605A900F088 +S31508000824D5FB2046394600F031FC4FF42043ADF899 +S315080008341430CDF818804FF018030793204605A9FD +S3150800084400F0C4FB4FF48046ADF814604FF048033B +S315080008540793204605A900F0B9FB4FF00005ADF84B +S3150800086400504FF48273ADF80230ADF80450ADF879 +S315080008740650ADF808504FF40073ADF80A304FF03F +S315080008843803ADF80C30ADF80E504FF00703ADF849 +S3150800089410304FF4605066F31F40694600F022FC9E +S315080008A44FF4605066F31F40294600F055FC4FF498 +S315080008B4605066F31F404FF0010100F035FC2046F6 +S315080008C4394600F0E3FB4FF40045ADF82850CDF85F +S315080008D42C80CDF8309020460AA900F077FB2046F4 +S315080008E4294600F0D3FB4FF00A074FF46054C4F2CC +S315080008F400044FF002054FF001062046294600F091 +S315080009043BFC0028F9D020464FF0FF0100F01CFC00 +S315080009142046314600F030FC0028F9D0013FECD1DE +S315080009244FF40043ADF828304FF003030B934FF010 +S3150800093418030C934FF44064C4F2010420460AA930 +S3150800094400F044FB20464FF4805100F0A3FB4FF01F +S3150800095400000146FFF7DAFE012840F0D48000F0D3 +S315080009641BFE00F57A744FF008004FF4D571FFF7B3 +S31508000974CDFE01284CD10DF133070DF137063D465E +S315080009844FF0FF084046FFF7FBFD05F8010FB54297 +S31508000994F8D19DF83630012B40F0B5809DF83730F4 +S315080009A4AA2B40F0B0804FF0A9054FF0804800F01C +S315080009B4F3FD844205D928464146FFF7A7FE0028D9 +S315080009C4F5D100F0E9FD844240F29D804FF03A00EB +S315080009D44FF00001FFF79AFE002840F094804FF08C +S315080009E4FF042046FFF7CCFD07F8010FB742F8D1FC +S315080009F49DF8343003F04003002B14BF0C22042264 +S31508000A0440F23023C2F200031A60FFF755FE2CE0C9 +S31508000A144FF0A9004FF00001FFF778FE012899BFAF +S31508000A240227A92501273D464FF0000600F0B4FD2C +S31508000A34844205D928463146FFF768FE0028F5D1D1 +S31508000A4400F0AAFD84425ED94FF010004FF40071FD +S31508000A54FFF75CFE002856D140F23023C2F20003A9 +S31508000A641F60FFF729FE002F3AD040F20003C2F2B6 +S31508000A7400031A7802F0FE021A704FF46055C4F2A5 +S31508000A84000528464FF0000100F04EFB4FF0000425 +S31508000A94ADF814404FF48273ADF81630ADF818402B +S31508000AA4ADF81A40ADF81C404FF40073ADF81E308B +S31508000AB44FF00803ADF82030ADF822404FF0070395 +S31508000AC4ADF82430284605A900F00CFB2846214633 +S31508000AD400F042FB28464FF0010100F025FB07E031 +S31508000AE440F20003C2F200031A7842F001021A70B7 +S31508000AF440F20003C2F20003187801E04FF0010047 +S31508000B040EB0BDE8F08340F23023C2F200034FF082 +S31508000B1400021A60FFF7D0FDE2E700BFC0B228B9A9 +S31508000B2440F20003C2F20003187870474FF0010040 +S31508000B34704700BF70B50D46C0B2DCB2002843D179 +S31508000B44002C44D040F20003C2F200031B7813F0D1 +S31508000B54010F3FD140F23023C2F200031B6813F0A1 +S31508000B64080F08BF5202012C0ED14FF0110011468E +S31508000B74FFF7CCFD10BB28464FF40071FFF73AFD8A +S31508000B84002818BF002419E04FF012001146FFF799 +S31508000B94BDFD98B94FF4007628463146FFF72AFD7D +S31508000BA430B105F5007504F1FF34E4B2002CF3D135 +S31508000BB44FF00C004FF00001FFF7A8FDFFF77CFD8E +S31508000BC4201C18BF012070BD4FF0040070BD4FF003 +S31508000BD4040070BD4FF0030070BD00BF70B50E462B +S31508000BE41546C0B2DCB2002856D1002C57D040F2C4 +S31508000BF40003C2F200031B7813F0010F52D140F22E +S31508000C040003C2F200031B7813F0040F4DD140F21F +S31508000C143023C2F200031B6813F0080F08BF5502FD +S31508000C24012C0ED14FF018002946FFF76FFD68BB5B +S31508000C3430464FF0FE01FFF70FFD002818BF0024C9 +S31508000C4424E013F0060F04D04FF097002146FFF76F +S31508000C545DFD4FF019002946FFF758FDB0B94FF06E +S31508000C64FC0530462946FFF7F7FC30B106F5007651 +S31508000C7404F1FF34E4B2002CF3D14FF000004FF036 +S31508000C84FD01FFF7E9FC002808BF0124FFF714FD5E +S31508000C94201C18BF012070BD4FF0040070BD4FF032 +S31508000CA4040070BD4FF0030070BD4FF0020070BD24 +S31508000CB470B584B01446C0B2C9B2002840F0768133 +S31508000CC440F20003C2F200031B7813F0010F40F050 +S31508000CD470810E2900F24481DFE811F00F00160036 +S31508000CE442016800420142014201420142014201B5 +S31508000CF4E100EA00FC000E012501FFF7EDFCD0F146 +S31508000D04010438BF00244EE14FF009004FF00001FA +S31508000D14FFF7FCFC002840F0268168464FF01001D6 +S31508000D24FFF768FC002800F021819DF800304FEA9F +S31508000D349313012B14D19DF8072002F03F024FEAC2 +S31508000D44024202F101029DF809309DF8081003EBEE +S31508000D540123D3184FEA832323604FF0000422E1CA +S31508000D649DF808209DF807304FEA830303EB921396 +S31508000D749DF8062002F0030203EB822202F1010227 +S31508000D849DF8053003F00F039DF80A1003EBD11301 +S31508000D949DF8091001F0030103EB4103A3F10703CE +S31508000DA402FA03F323604FF00004FCE040F2302318 +S31508000DB4C2F200031B6813F0040F2CD04FF08D0009 +S31508000DC44FF00001FFF7A2FC002840F0D2804FF054 +S31508000DD4FF00FFF7D5FB68464FF01001FFF70AFC42 +S31508000DE4002800F0C9804FF030054FF0FF06304662 +S31508000DF4FFF7C6FB05F1FF35EDB2002DF7D19DF8D7 +S31508000E040A304FEA13134FF0100202FA03F3236071 +S31508000E144FF00004C7E04FF009004FF00001FFF758 +S31508000E2475FC002840F0AB8068464FF01001FFF7C8 +S31508000E34E1FB002800F0A680604B1B6813F0020F44 +S31508000E4417D09DF80A2002F03F029DF80B304FEAAE +S31508000E54D31303EB420202F101029DF80D304FEA67 +S31508000E64931303F1FF3302FA03F323604FF00004EC +S31508000E7499E09DF80B309DF80A20C2F3840202F12A +S31508000E84010203F003014FEA531303EBC10303F111 +S31508000E94010303FB02F323604FF0000483E040F2EE +S31508000EA43023C2F200031B6813704FF000047AE083 +S31508000EB44FF009004FF00001FFF728FC002864D121 +S31508000EC420464FF01001FFF795FBD0F1010438BF17 +S31508000ED4002468E04FF00A004FF00001FFF716FC03 +S31508000EE4002855D120464FF01001FFF783FBD0F1B7 +S31508000EF4010438BF002456E04FF03A004FF00001D1 +S31508000F04FFF704FC002846D14FF000054FF0FF0612 +S31508000F143046FFF735FB605505F10105042DF7D179 +S31508000F244FF000043FE040F23023C2F200031B688E +S31508000F3413F0040F32D04FF08D004FF00001FFF785 +S31508000F44E5FB70BB4FF0FF00FFF71AFB20464FF096 +S31508000F544001FFF74FFBD0F1010438BF002422E01B +S31508000F644FF004041FE04FF001041CE04FF00104A5 +S31508000F7419E04FF0010416E04FF0010413E04FF0B6 +S31508000F84010410E04FF001040DE04FF001040AE0FB +S31508000F944FF0010407E04FF0010404E04FF00104A8 +S31508000FA401E04FF00104FFF787FB04E04FF0040467 +S31508000FB401E04FF00304204604B070BD300200205F +S31508000FC44FF00000C4F2AA20704700BF2DE9F003D1 +S31508000FD48B6803F00F0513F0100F1CBF4B681D43F5 +S31508000FE40B782BB3D0F800C04FF000034FF001067E +S31508000FF44FF00F0806FA03F20C881440944211D1F4 +S315080010044FEA830708FA07F92CEA090C05FA07F7E1 +S315080010144CEA070C8F68282F01D1446102E0482F57 +S3150800102408BF026103F10103082BE3D1C0F800C02D +S315080010340B88FF2B27D9D0F804C04FF000034FF0D4 +S3150800104401064FF00F0803F1080206FA02F20C88AB +S315080010541440944211D14FEA830708FA07F92CEA97 +S31508001064090C05FA07F74CEA070C8F68282F08BFFE +S3150800107444618C68482C08BF026103F10103082BFC +S31508001084E1D1C0F804C0BDE8F003704789B2016134 +S31508001094704700BF89B24161704700BF39B14FF448 +S315080010A48053C4F202039A691043986170474FF457 +S315080010B48053C4F202039A6922EA000098617047D1 +S315080010C439B14FF48053C4F20203DA691043D86184 +S315080010D470474FF48053C4F20203DA6922EA000027 +S315080010E4D861704710B4028802F441524C880B88C0 +S315080010F423438C882343CC8823430C8923434C8974 +S3150800110423438C892343CC89234313439BB203800B +S31508001114838B23F400634FEA03434FEA1343838321 +S315080011240B8A038210BC704729B103889BB243F02B +S31508001134400303807047038823F040034FEA0343C0 +S315080011444FEA13430380704789B28181704700BF11 +S31508001154808980B2704700BF29B103889BB243F4E3 +S31508001164005303807047038823F400534FEA03436C +S315080011744FEA13430380704703899BB219420CBF95 +S3150800118400200120704700BF4FEAC1514FEAD151F0 +S315080011948180704703889BB219420CBF0020012046 +S315080011A4704700BF00B544F62060C0F600004FF053 +S315080011B4380100F0BFFD5DF804FB00BF2DE9F047D8 +S315080011C44FF0000344F62C75C0F600054FF4FA7088 +S315080011D448F6A04140F2FF3A13F805C0EA1892F817 +S315080011E401800CEB080202FB000291FBF2F902FBF8 +S315080011F41919B9F1000F06D191FBF2F404F1FF3283 +S3150800120492B2524504D903F10403482BE4D18CE085 +S31508001214474666464FF4C843C4F200034FF000023B +S315080012245A611A6842F400421A601B6813F4004FA4 +S3150800123409D04FF4C845C4F2000500F06FFE2B68C8 +S3150800124413F4004FF9D14FF4C843C4F200031A68E3 +S3150800125422F002021A601A6842F001021A605B68F8 +S3150800126413F0010F09D14FF4C845C4F2000500F084 +S3150800127455FE6B6813F0010FF9D006F1FF3607F136 +S31508001284FF374FEA075747EA064604F1FF34344363 +S315080012944FF4C843C4F20003DC611A6822F0010261 +S315080012A41A605B6813F0010F09D04FF4C844C4F2FE +S315080012B4000400F033FE636813F0010FF9D14FF40C +S315080012C4C843C4F20003D3F8002242F00102C3F86B +S315080012D40022D3F81C2222F00102C3F81C22D3F8F8 +S315080012E40C2242F00102C3F80C224FF00002C3F8A4 +S315080012F44022C3F84422D3F8042222F00102C3F898 +S315080013040422D3F8142222F00102C3F81422D3F8D3 +S315080013141C2242F00102C3F81C22D3F8002222F050 +S315080013240102C3F80022BDE8F08744F6AC60C0F6B3 +S3150800133400004FF0E20100F0FDFC6BE730B504460F +S31508001344CDB24FF4C843C4F200039B6813F0806F10 +S3150800135407D144F6AC60C0F6000040F2211100F053 +S31508001364E9FC4FF4C843C4F20003D3F8802102F021 +S315080013740102C3F88021D3F8802142F07C4242F46A +S315080013840012C3F88021C3F88451E178A2784FEAA1 +S31508001394024242EA016221780A43617842EA01225A +S315080013A4C3F88821E179A2794FEA024242EA016246 +S315080013B421790A43617942EA0122C3F88C21D3F8D8 +S315080013C4802142F00102C3F880219B6813F0806FE4 +S315080013D409D14FF4C844C4F2000400F09FFDA36881 +S315080013E413F0806FF9D030BD4FF4C843C4F200033C +S315080013F4DB6813F0030F40D04FF4C843C4F200036C +S31508001404D3F8B02140F26763B3EB525F2AD14FF4A5 +S31508001414C843C4F20003D3F8B8210270D3F8B8213C +S315080014244FEA12224270D3F8B8214FEA1242827068 +S31508001434D3F8B8214FEA1262C270D3F8BC210271FC +S31508001444D3F8BC214FEA12224271D3F8BC214FEAE1 +S3150800145412428271D3F8BC314FEA1363C3714FF059 +S31508001464010001E04FF000004FF4C843C4F2000342 +S31508001474DA6842F02002DA6070474FF000007047DD +S3150800148400B500F03DF890B100F0FCFC00F050F80F +S3150800149400F03CF820F0604020F07F004EF6085338 +S315080014A4CEF20003186000F031F8436898475DF8F7 +S315080014B404FB00BF70B50E4692B272B1044600F141 +S315080014C4010002F1FF3292B2851816F8013B04F8BE +S315080014D4013B00F023FDAC42F7D170BD00B500F026 +S315080014E4BBFA5DF804FB00BF00B500F0C3FA5DF86B +S315080014F404FB00BF00B500F0E9FA5DF804FB00BF81 +S3150800150400B500F0B1FB5DF804FB00BF00B500F0C0 +S315080015140BFC5DF804FB00BF00B500F077FB18B1BF +S3150800152400F0D6FB5DF804FB4FF000005DF804FB01 +S315080015344EF21003CEF200034FF000021A60704711 +S3150800154400B5FFF7F5FF4EF21003CEF2000341F69D +S315080015543F12C0F201025A604FF000029A604FF03F +S315080015640501196040F23423C2F200031A605DF8DB +S3150800157404FB00BF4EF21003CEF200031B6813F4FB +S31508001584803F07D040F23423C2F200031A6802F1FE +S3150800159401021A60704700BF00B5FFF7EBFF40F27F +S315080015A43423C2F2000318685DF804FB4FF4884339 +S315080015B4C4F200031B8813F0200F08D04FF48843A5 +S315080015C4C4F200039B8803704FF0010070474FF084 +S315080015D40000704710B5C0B24FF48843C4F2000344 +S315080015E41B8813F0800F15D04FF48843C4F2000308 +S315080015F498801B8813F0800F0FD14FF48844C4F2E7 +S31508001604000400F08BFC238813F0800FF9D04FF008 +S31508001614010010BD4FF0000010BD4FF0010010BDD1 +S315080016244FF48843C4F200034FF000021A819A81EA +S315080016341A829A821A8340F271221A819A8992B27C +S3150800164442F4005242F00C029A8170472DE9F041A7 +S315080016540546CCB2402C07D944F67470C0F600008F +S315080016644FF08D0100F066FB2046FFF7B3FF012813 +S3150800167407D044F67470C0F600004FF0910100F0EC +S3150800168459FB2646BCB14FF0000444F67477C0F6FD +S3150800169400074FF09A0800F041FC285DFFF79AFF0F +S315080016A4012803D03846414600F044FB04F10104FE +S315080016B4A3B2B342EFD3BDE8F08100BF30B5054607 +S315080016C440F27D23C2F200031B7823BB40F2382084 +S315080016D4C2F20000FFF76AFF01285CD140F2382302 +S315080016E4C2F200031B78002B58D0FFF755FF40F2CF +S315080016F48023C2F20003186040F27C23C2F200037E +S315080017044FF00000187040F27D23C2F200034FF038 +S3150800171401021A7030BD40F27C23C2F200031C7821 +S3150800172440F23823C2F2000304F101001818FFF747 +S315080017343DFF01281CD104F10104E2B240F27C23E6 +S31508001744C2F200031A7040F23823C2F200031B786F +S31508001754934226D128461649FFF7ACFE40F27D236C +S31508001764C2F200034FF000021A704FF0010030BDB8 +S31508001774FFF712FF40F28023C2F200031B6803F14D +S315080017846403984210D940F27D23C2F200034FF055 +S315080017940000187030BD4FF0000030BD4FF0000057 +S315080017A430BD4FF0000030BD4FF0000030BD00BF23 +S315080017B4390200204FF40053C4F2020340F2231204 +S315080017C4C4F267525A6048F6AB12CCF6EF525A6026 +S315080017D44FF03402DA6070474FF40053C4F2020340 +S315080017E41A6942F080021A61704700BF70B506464E +S315080017F444F6F475C0F600054FF0000400F08EFBBD +S315080018042B68B3420DD869685B189E4209D244F620 +S31508001814F473C0F6000304EB440203EB8203187A5C +S3150800182470BD04F1010405F10C050D2CE6D14FF049 +S31508001834FF0070BD2DE9F04107460068FFF7D6FFA3 +S31508001844FF2855D0FFF7B6FF4FF40053C4F202033E +S31508001854DB6813F0010F04D0FFF7BEFF4FF0000456 +S3150800186448E04FF40053C4F202031A6942F0010235 +S315080018741A614FF000054FF40054C4F202043B68A1 +S3150800188405EB030805F10402BE58B2B2EA52E3684E +S3150800189413F0010F05D000F041FBE36813F0010FC4 +S315080018A4F9D14FEA1643A8F80230E36813F0010F9A +S315080018B405D000F033FBE36813F0010FF9D1D8F82B +S315080018C40030B34207D105F10405B5F5007FD6D13A +S315080018D44FF0010401E04FF000044FF40053C4F242 +S315080018E402031A6922F001021A61FFF775FF01E083 +S315080018F44FF000042046BDE8F08100BF70B5C6B2BB +S3150800190444F6F475C0F600054FF0000400F006FB33 +S315080019142B7AB34208D144F6F473C0F6000304EBF9 +S31508001924440253F8220070BD04F1010405F10C05C4 +S315080019340D2CEBD14FF0FF3070BD00BF00B54FEA58 +S31508001944C1534FEAD35363B903688B420DD040F8A9 +S31508001954041B4FF40072FFF7ADFD4FF001005DF86C +S3150800196404FB4FF000005DF804FB4FF001005DF83E +S3150800197404FB00BF30B504460D4640F28423C2F288 +S315080019840003984209D04FF4C043C0F600039942B5 +S3150800199408D0FFF74FFF48B910E040F28844C2F276 +S315080019A4000403E040F28424C2F2000420462946D7 +S315080019B4FFF7C4FF002808BF002401E04FF0000425 +S315080019C4204630BD2DE9F04305460C4617461E460B +S315080019D44FEA51294FEA49290368B3F1FF3F03D176 +S315080019E44946FFF7ABFF50B32B684B4505D028464D +S315080019F44946FFF7BFFF054628B32B68E41A04F1E6 +S31508001A0404042C1940F2FF1809F5007900F086FA47 +S31508001A1405F10403E31A434507D928464946FFF75F +S31508001A24A9FF054698B100F1040417F8013B04F828 +S31508001A34013B013EEAD14FF00100BDE8F0834FF0C7 +S31508001A440000BDE8F0834FF00000BDE8F0834FF0D6 +S31508001A540000BDE8F08300BF40F28843C2F20003E9 +S31508001A644FF0FF321A6040F28423C2F200031A6070 +S31508001A74704700BF70B504460D461646FFF7B6FE16 +S31508001A84FF281DD004F1FF304019FFF7AFFEFF28E9 +S31508001A9419D04FEA54224FF4C043C0F60003B3EBFF +S31508001AA4422F07BF40F28420C2F2000040F2884069 +S31508001AB4C2F20000214632462B46FFF783FF70BD6B +S31508001AC44FF0000070BD4FF0000070BD2DE9F041E5 +S31508001AD404460E46FFF78AFE054604F1FF34A019AC +S31508001AE4FFF784FE04460646FF2D00F08780FF288C +S31508001AF400F08880854275D8022D77D90F2879D8C1 +S31508001B04FFF758FE4FF40053C4F20203DB6813F0E0 +S31508001B14010F05D0FFF760FE4FF00000BDE8F08125 +S31508001B244FF40053C4F202031A6942F002021A611E +S31508001B342846FFF7E3FE07462046FFF7DFFE804602 +S31508001B4444F6F475C0F600054FF0000400F0E6F913 +S31508001B542B7AB34209D144F6F473C0F6000304EBB6 +S31508001B64440203EB82035B6807E004F1010405F110 +S31508001B740C050D2CEAD14FF00003C7EB08084344C3 +S31508001B84C3F38F2303B303F1FF339EB206F10106B1 +S31508001B944FEA86264FF000054FF40054C4F20204B7 +S31508001BA4EB196361236943F040032361E36813F087 +S31508001BB4010F05D000F0B2F9E36813F0010FF9D16B +S31508001BC405F58065B542EBD14FF40053C4F2020320 +S31508001BD41A6922F002021A61FFF7FEFD4FF00100AE +S31508001BE4BDE8F0814FF00000BDE8F0814FF0000039 +S31508001BF4BDE8F0814FF00000BDE8F0814FF0000029 +S31508001C04BDE8F0814FF00000BDE8F08100B581B071 +S31508001C1440F28423C2F200031B68B3F1FF3F1FD0CE +S31508001C2440F28423C2F2000399685A688918DA686C +S31508001C3489181A6989185A6989189A698918DA6982 +S31508001C448B18C3F1000301AA42F8043D46F250106A +S31508001C54C0F600004FF004016A46FFF70BFF01E0E7 +S31508001C644FF0010001B000BD46F20402C0F60002BE +S31508001C744FF4C043C0F6000310681B68C01846F248 +S31508001C840803C0F600031B68C01846F20C03C0F626 +S31508001C9400031B68C01846F21003C0F600031B684D +S31508001CA4C01846F21403C0F600031B68C01846F2AF +S31508001CB41803C0F600031B68C01846F25013C0F692 +S31508001CC400031B68C018D0F1010038BF0020704714 +S31508001CD400B540F28423C2F200031B68B3F1FF3F48 +S31508001CE406D040F28420C2F20000FFF7A3FD90B1AB +S31508001CF440F28843C2F200031B68B3F1FF3F0ED0DB +S31508001D0440F28840C2F20000FFF794FD003018BF85 +S31508001D1401205DF804FB4FF000005DF804FB4FF06A +S31508001D2401005DF804FB00BF4FF4C040C0F6000094 +S31508001D34704700BF00B540F28C63C2F20003186016 +S31508001D4440F29063C2F20003196000F0E7F8FCE77A +S31508001D5400B500F0DBF8012820D000F0AFFBE8B1AD +S31508001D6440F29463C2F200031B78012B16D1FFF7E5 +S31508001D7413FC40F29863C2F200031B6803F5FA7376 +S31508001D8498420BD340F29463C2F200034FF0000268 +S31508001D941A7000F09DFB08B9FFF772FB5DF804FBA7 +S31508001DA400B540F29463C2F200034FF001021A70C0 +S31508001DB4FFF7F2FB40F29863C2F200031860FFF7DC +S31508001DC4C7FF5DF804FB00BF00B500F0A5F8FFF7F0 +S31508001DD4B7FBFFF783FB00F057FB00F013F8FFF798 +S31508001DE4DFFF5DF804FB00BF00B500F097F8FFF7C6 +S31508001DF4C1FB00F09BFC00F017F8FFF7A9FF5DF89C +S31508001E0404FB00BF10B500F0A1F8FFF7D7F940F2BC +S31508001E140404C2F200044FF001032360FFF700FC38 +S31508001E244FF00003236010BD00B540F29C60C2F277 +S31508001E340000FFF7D9FA01280CD140F20403C2F2D4 +S31508001E4400034FF001021A6040F29C60C2F20000DF +S31508001E5400F0A0F840F29C60C2F20000FFF72EFCE6 +S31508001E6401280CD140F20403C2F200034FF0000229 +S31508001E741A6040F29C60C2F2000000F08BF85DF82C +S31508001E8404FB00BF704700BF30B504468DB240F26C +S31508001E940403C2F200031B68012B02D1E9B2FFF75F +S31508001EA44DFA40F20403C2F200031B681BB9E9B2F7 +S31508001EB42046FFF7CBFB00F063F830BD40F204037D +S31508001EC4C2F200031868022806D0032807D001289E +S31508001ED40CBF0820402070474FF0000070474FF0B1 +S31508001EE40000704740F20403C2F20003186802288F +S31508001EF406D0032807D001280CBF082040207047C5 +S31508001F044FF0000070474FF00000704700B500F02E +S31508001F142DF85DF804FB00BF704700BF704700BF8B +S31508001F2440F2DC63C2F200034FF000025A707047B5 +S31508001F3440F2DC63C2F200034FF0FE02DA70187155 +S31508001F444FF00202A3F84420704700BF40F2DC6356 +S31508001F54C2F200034FF000021A709A6483F8432011 +S31508001F64A3F844209A705A70704700BF40F2DC63A5 +S31508001F74C2F200031878003018BF0120704700BF6A +S31508001F8440F2DC63C2F200034FF0000283F84320F8 +S31508001F94704700BF30B504460278FF2A2BD100F0FB +S31508001FA48DFA20B94FF01000FFF7C2FFD2E1FFF710 +S31508001FB4B7FF40F2DC64C2F200044FF00105257055 +S31508001FC44FF0FF03E3704FF0100323714FF0000343 +S31508001FD46371FFF773FFA071FFF784FFE071FFF7E2 +S31508001FE481FF4FEA102020726572A5724FF008032C +S31508001FF4A4F84430AEE140F2DC63C2F200031B7875 +S31508002004012B40F0C981A2F1C902352A00F29E814A +S31508002014DFE812F0F8009C019C0197019C019C01E1 +S3150800202489011F016F0159019C019C019C019C01B6 S315080020349C019C019C019C019C019C019C019C01A6 S315080020449C019C019C019C019C019C019C019C0196 -S315080020549C019C018B00590036007D009C019C0163 -S315080020649C01B2009C01CE00D300E7004578FFF737 -S315080020741BFF00F1FF30854204DD4FF02200FFF715 -S315080020844DFF5DE140F2DC65C2F2000505F104008E -S31508002094A96C6278FFF704FA4FF0FF03EB706278D5 -S315080020A4AB6CD318AB64637803F10103A5F8443029 -S315080020B446E14578FFF7F8FE00F1FF30854204DD76 -S315080020C44FF02200FFF72AFF3AE1616840F2DC6527 -S315080020D4C2F20005A96405F104006278FFF7E0F985 -S315080020E44FF0FF03EB706278AB6CD318AB6463787C -S315080020F403F10103A5F8443022E140F2DC63C2F29D -S3150800210400034FF0FF02DA7042689A644FF0010246 -S31508002114A3F8442014E140F2DC63C2F200034FF052 -S31508002124FF02DA70996C436843B14FF0000211F864 -S31508002134010B1218D2B2013BF9D101E04FF00002AB -S3150800214440F2DC63C2F20003C3F807204FF0010231 -S315080021541A714FF000025A719A714FF00802A3F8E7 -S315080021644420EDE040F2DC63C2F200034FF0FF02C4 -S31508002174DA7045F27C02C0F600029A644FF0000257 -S315080021841A715A719A714FF00701D9711A725A72F3 -S315080021949A724FF00802A3F84420D1E04FF00000E9 -S315080021A4FFF7BCFECCE040F2DC63C2F200034FF05A -S315080021B4FF02DA704FF000021A71597859719A7150 -S315080021C4DA711A724FF00602A3F84420B8E040F216 -S315080021D4DC64C2F200044FF000032370FFF796FE96 -S315080021E44FF0FF03E3704FF00103A4F84430A7E06F -S315080021F440F2DC63C2F200039D6CFFF755FE00F162 -S31508002204FF3104F101022846FFF764F920B94FF0BB -S315080022143100FFF783FE93E040F2DC64C2F2000467 -S315080022244FF0FF03E370A56CFFF73EFE05F1FF339D -S315080022341B18A3644FF00103A4F8443080E04578E2 -S31508002244FFF732FEA0F10200854204DD4FF02200BA -S31508002254FFF764FE74E040F2DC63C2F200034FF059 -S31508002264FF02DA704FF00102A3F84420617841B9FD -S31508002274FFF748F9002863D14FF03100FFF74EFE07 -S315080022845EE040F2DC63C2F20003986C04F10202D9 -S31508002294FFF720F920B94FF03100FFF73FFE4FE072 -S315080022A440F2DC63C2F2000361789A6C8A189A6475 -S315080022B446E040F2DC64C2F200044FF0FF03E37028 -S315080022C44FF0000525716571FFF7EEFDA071E57104 -S315080022D4257265724FF00703A4F8443030E040F2E3 -S315080022E4DC63C2F20003986C6168FFF7F9F820B959 -S315080022F44FF03100FFF712FE22E040F2DC63C2F22F -S3150800230400034FF0FF02DA704FF00102A3F84420ED -S3150800231416E0FFF7ABF840F2DC63C2F200034FF0B5 -S31508002324FF02DA704FF00102A3F8442008E04FF0E8 -S315080023343100FFF7F3FD03E04FF02000FFF7EEFD51 -S3150800234440F2DC63C2F2000393F84330012B03D155 -S315080023544FF01000FFF7E2FD40F2DC63C2F200031F -S31508002364B3F844100BB2002B0CDD40F2DC60C2F269 -S3150800237400004FF0010380F8433000F1030089B2EE -S31508002384FFF778FD30BD00BF30B403464CF6CD44A4 -S31508002394CCF6CC4400E0114601F10102A4FB035338 -S315080023A4DB08F8D14FF000034B7011464CF6CD45C7 -S315080023B4CCF6CC4502F1FF32A5FB00434FEAD30322 -S315080023C403EB8304A0EB440000F1300001F8010D8F -S315080023D41846002BEED1104630BC704770B5064639 -S315080023E44FF000042546305D02F09CFCC0B2A0F113 -S315080023F43003DBB2162B12D8A0F13A02D2B2062A5F -S3150800240410D9092B84BFA0F13703DBB203EB0515FA -S3150800241405F0FF0504F10104022CE4D104E04FF0B1 -S31508002424000501E04FF00005284670BD00B5C3B2AB -S3150800243403F00F00092B03D900F137005DF804FBFC -S3150800244400F1300002F06EFCC0B25DF804FB00BF78 -S3150800245430B50C46C5B24FEA1510FFF7E7FF2070F2 -S3150800246405F00F00FFF7E2FF60704FF00003A3705A -S31508002474204630BD00B540F26873C2F200034FF03F -S315080024840000186040F27471C2F2000101F016FFF0 -S3150800249438B145F28400C0F600004FF07C01FFF71E -S315080024A43FFC5DF804FB00BF40F26873C2F2000308 -S315080024B41868D0F1010038BF0020704700B5FFF74F -S315080024C41BFD012810D040F26873C2F200031B6892 -S315080024D473B9FDF7BDFE01280ED140F26873C2F246 -S315080024E4000318605DF804FB4FF000005DF804FB78 -S315080024F44FF000005DF804FB4FF000005DF804FBA4 -S3150800250410B50446007802F00DFC53280DD1607806 -S3150800251402F000FC60B1607831280CD032280DD066 -S31508002524332814BF0320022010BD4FF0030010BD4A -S315080025344FF0030010BD4FF0000010BD4FF001002E -S3150800254410BD00BF70B5044600F10200FFF746FF50 -S315080025540646054604F104042046FFF73FFF86199C -S31508002564F6B205F1FF35ADB204F10204012DF3D834 -S315080025742046FFF733FF6FEA0606F6B2864214BF13 -S315080025840020012070BD00BF2DE9F04104460E4627 -S31508002594174601B138B945F28400C0F6000040F286 -S315080025A43621FFF7BDFB2046FFF7AAFF0546032899 -S315080025B400F0A7802046FFF7C5FF002800F0A48096 -S315080025C4012D32D01DB1022D40F0A18060E004F146 -S315080025D40200FFF703FF804604F10400FFF7FEFE3E -S315080025E44FEA0025356004F10600FFF7F7FE2D18BB -S315080025F43560A8F10306B6B2002F00F08A800FFAF8 -S3150800260486F8B8F1000F40F3848004F108044FF00B -S3150800261400052046FFF7E2FE785504F1020405F1A9 -S315080026240105ADB24545F4DB73E004F10200FFF79A -S31508002634D5FE804604F10400FFF7D0FE4FEA0045B4 -S31508002644356004F10600FFF7C9FE05EB0025356081 -S3150800265404F10800FFF7C2FE2D183560A8F1040638 -S31508002664B6B2002F55D00FFA86F8B8F1000F50DD30 -S3150800267404F10A044FF000052046FFF7AFFE78552B -S3150800268404F1020405F10105ADB24545F4DB40E069 -S3150800269404F10200FFF7A2FE804604F10400FFF7E6 -S315080026A49DFE4FEA0065356004F10600FFF796FEC5 -S315080026B405EB0045356004F10800FFF78FFE05EBCE -S315080026C40025356004F10A00FFF788FE2D183560E9 -S315080026D4A8F10506B6B2E7B10FFA86F8B8F1000F05 -S315080026E417DD04F10C044FF000052046FFF776FECB -S315080026F4785504F1020405F10105ADB24545F4DB4C -S3150800270407E04FF0000604E04FF6FF7601E04FF0CD -S31508002714000630B2BDE8F08170B540F26873C2F2C3 -S3150800272400031B68002B00F04982012B43D1FDF7F7 -S31508002734BBFD45F2F800C0F60000FDF705FE45F2BC -S315080027441C10C0F60000FDF7FFFDFDF7A7FD0146C6 -S31508002754C5484FF0010201F0CBFD50B145F24410D3 -S31508002764C0F60000FDF7F0FD4FF00100FDF7DAFDB5 -S3150800277470BD45F24C10C0F60000FDF7E5FD45F2C4 -S315080027845410C0F60000FDF7DFFD45F27810C0F6D8 -S315080027940000FDF7D9FD40F26C73C2F200034FF056 -S315080027A400021A605A6040F26873C2F200034FF0DE -S315080027B402021A6070BD022B40F0048140F6CC3048 -S315080027C4C2F2000040F27474C2F2000404F50D72F9 -S315080027D44FF4807102F0F0F994F93A32002B15DAC5 -S315080027E445F24410C0F60000FDF7AEFD4FF00200B6 -S315080027F4FDF798FD04F50D7002F072F840F268735F -S31508002804C2F200034FF000021A6070BD00284ED0D1 -S3150800281440F6CC30C2F2000000F5C0714FF0000259 -S31508002824FFF7B2FEB0F1FF3F14D145F24410C0F6EB -S315080028340000FDF789FD4FF00300FDF773FD8A4894 -S3150800284402F04EF840F26873C2F200034FF0000239 -S315080028541A6070BD00282ADD40F26C73C2F20003C8 -S315080028645B6863B940F26C73C2F2000340F6CC327B -S31508002874C2F20002D2F880211A60586017E040F6C6 -S31508002884CC32C2F20002D2F8801140F26C72C2F263 -S3150800289400021268914204D240F26C72C2F200023B -S315080028A4116040F26C72C2F20002C318536040F21F -S315080028B47473C2F20003D3F83C22D3F840329A4226 -S315080028C440F07C8168484FF0000102F013F8A0B18B -S315080028D445F24410C0F60000FDF736FD4FF004003B -S315080028E4FDF720FD604801F0FBFF40F26873C2F271 -S315080028F400034FF000021A6070BD45F24C10C0F692 -S315080029040000FDF721FD45F2A810C0F60000FDF70A -S315080029141BFD40F26C74C2F20004606840F228752C -S31508002924C2F200052946FFF72FFD2846FDF70CFDE0 -S3150800293445F2B410C0F60000FDF706FDE078294616 -S31508002944FFF786FDA07805F10201FFF781FD60789F -S3150800295405F10401FFF77CFD207805F10601FFF770 -S3150800296477FD2846FDF7F0FC45F25820C0F600002E -S31508002974FDF7EAFC20686168FEF7B2FDA0B945F2E6 -S315080029844410C0F60000FDF7DFFC4FF00500FDF724 -S31508002994C9FC354801F0A4FF40F26873C2F200038B -S315080029A44FF000021A6070BD45F24C10C0F60000E4 -S315080029B4FDF7CAFC40F26873C2F200034FF0030243 -S315080029C41A6070BD032B40F0F98040F6CC30C2F291 -S315080029D4000040F27474C2F2000404F50D724FF458 -S315080029E4807102F0E9F894F93A32002B15DA45F2C7 -S315080029F4D010C0F60000FDF7A7FC4FF00200FDF763 -S31508002A0491FC04F50D7001F06BFF40F26873C2F295 -S31508002A1400034FF000021A6070BD002800F086809B -S31508002A2440F6CC30C2F2000000F5C07100F58072A1 -S31508002A34FFF7AAFD0646B0F1FF3F17D145F2F41099 -S31508002A44C0F60000FDF780FC4FF00300FDF76AFCB2 -S31508002A54054801F045FF40F26873C2F200034FF0DF -S31508002A6400021A6070BD00BFA809002000285DDDB9 -S31508002A7445F21820C0F60000FDF766FC40F22874FB -S31508002A84C2F2000430462146FFF77EFC2046FDF7D5 -S31508002A945BFC45F22820C0F60000FDF755FC40F61D -S31508002AA4CC35C2F2000595F883012146FFF7D0FC20 -S31508002AB495F8820104F10201FFF7CAFC95F8810131 -S31508002AC404F10401FFF7C4FC95F8800104F106013A -S31508002AD4FFF7BEFC2046FDF737FC45F25820C0F642 -S31508002AE40000FDF731FCD5F8800105F58072314602 -S31508002AF4FEF7F0FCA0B945F24410C0F60000FDF755 -S31508002B0423FC4FF00600FDF70DFC2D4801F0E8FE06 -S31508002B1440F26873C2F200034FF000021A6070BDF7 -S31508002B2445F24C10C0F60000FDF70EFC40F2747333 -S31508002B34C2F20003D3F83C22D3F840329A423DD17C -S31508002B4445F24020C0F60000FDF7FEFBFEF7DAFC6E -S31508002B54A0B945F24410C0F60000FDF7F5FB4FF0A6 -S31508002B640700FDF7DFFB164801F0BAFE40F268736A -S31508002B74C2F200034FF000021A6070BD45F24C1011 -S31508002B84C0F60000FDF7E0FB45F25C20C0F6000045 -S31508002B94FDF7DAFB0A4801F0A3FE45F27420C0F6F5 -S31508002BA40000FDF7D1FB40F26873C2F200034FF050 -S31508002BB400021A60FDF794FBFEF758FC70BD00BFCF -S31508002BC4A80900202AB111F8013B00F8013B013A93 -S31508002BD4F9D170471AB100F8011B013AFBD17047C5 -S31508002BE4037833B18B4204D010F8013F0BB18B4202 -S31508002BF4FAD11846704700BF0346C87E8A7E42EA61 -S31508002C0400201B78032B05D14A7D0B7D43EA02235A -S31508002C1440EA0340704700BF8176C1F30723C376B1 -S31508002C244FEA114101754FEA11214175704700BFFA -S31508002C3400F10B014FF000034FEA530242EAC313B3 -S31508002C4410F8012B9B1803F0FF038842F4D11846A9 -S31508002C54704700BF00B590B10368A3B11A78B2B142 -S31508002C64D9888288914216D15878FDF74DFF00F02D -S31508002C740100002814BF032000205DF804FB4FF070 -S31508002C8409005DF804FB4FF009005DF804FB4FF0FA -S31508002C9409005DF804FB4FF009005DF804FB00BF6A -S31508002CA410B504460A46407804F134014FF001038E -S31508002CB4FDF736FF00283CD194F8332294F83232D3 -S31508002CC443EA022212B24AF65523CFF6FF739A4212 -S31508002CD432D194F86D2094F86C304FEA034343EAF2 -S31508002CE4026294F86A30134394F86B2043EA02228A -S31508002CF422F07F4244F24613C0F254039A421ED08D -S31508002D0494F8890094F888304FEA034343EA00604C -S31508002D1494F88630034394F8870043EA002020F0A9 -S31508002D247F4044F24613C0F25403C01A18BF012068 -S31508002D3410BD4FF0030010BD4FF0020010BD4FF058 -S31508002D44000010BD2DE9F041D5B203681A78A2F146 -S31508002D543002092A00F2DF815C783A2C40F0DB81E4 -S31508002D6403F1020303604FF000030B60002A40F0EE -S31508002D74868140F65473C2F200031C68002C00F0E6 -S31508002D8482810C60237883B16078FDF7BDFE10F06C -S31508002D94010F0AD1002D00F07A8100F00400002802 -S31508002DA414BF0A200020BDE8F0814FF0000020700F -S31508002DB46070FDF7F7FC10F0010F40F06C811DB14F -S31508002DC410F0040F40F06B8120464FF00001FFF726 -S31508002DD467FF0346012819D194F8F631002B00F051 -S31508002DE4628194F8FD2194F8FC314FEA034343EADF -S31508002DF4026294F8FA31134394F8FB5143EA052521 -S31508002E0420462946FFF74CFF034601E04FF000052C -S31508002E14032B00F04C81002B40F04D8194F84020A0 -S31508002E2494F83F3043EA02231BB2B3F5007F40F01F -S31508002E34468194F84B0094F84A3053EA00200ED1A0 -S31508002E4494F85B2094F85A304FEA034343EA026243 -S31508002E5494F85830134394F8590043EA0020E06183 -S31508002E6494F84410E17001F1FF33DBB2012B00F250 -S31508002E742A8194F84130A370002B00F0288103F1CD -S31508002E84FF321A4240F0278194F8466094F84520A8 -S31508002E9442EA0622228112F00F0F40F0208194F8AC -S31508002EA4487094F8476056EA07260ED194F8577086 -S31508002EB494F856604FEA064646EA076794F854605B -S31508002EC43E4394F8557046EA072694F843C094F8A6 -S31508002ED4427057EA0C2700F0068101FB00FC07EB59 -S31508002EE4121161448E42C0F00281761AB6FBF3F3DE -S31508002EF4002B00F0008140F6F576B3428CBF02261B -S31508002F0401264FF6F578434500F2098103F10203D9 -S31508002F14A3612562EF1967626918E162032E15D168 -S31508002F24002A40F0EC8094F8631094F862204FEA83 -S31508002F34024242EA016194F860200A4394F8611057 -S31508002F4442EA0122A2624FEA830311E0002A00F052 -S31508002F54DA806744A762022E02D14FEA430307E0E8 -S31508002F644FF0030202FB03F203F0010303EB5203DF -S31508002F7403F5FE7303F10303B0EB532FC0F0C780C8 -S31508002F844FF0FF3323614FF00003E360032E68D14B -S31508002F94637194F8652094F8643043EA0222AA1807 -S31508002FA46261607804F134014FF00103FDF7B8FD5E -S31508002FB4002856D194F8332294F8323243EA02228E -S31508002FC412B24AF65523CFF6FF739A4249D194F8BA -S31508002FD4372094F836304FEA034343EA026294F8FA -S31508002FE43430134394F8352043EA022245F2522337 -S31508002FF4C4F261139A4234D194F81B2294F81A3213 -S315080030044FEA034343EA026294F81832134394F8E6 -S31508003014192243EA022247F27223C6F241139A425C -S315080030241FD194F8232294F822324FEA034343EA41 -S31508003034026294F82032134394F8212243EA0223C5 -S31508003044E36094F81F2294F81E324FEA034343EAD6 -S31508003054026294F81C32134394F81D2243EA0223AD -S3150800306423612670334A138803F101039BB2138044 -S31508003074E3804FF0000020632071BDE8F0814FF033 -S315080030840B00BDE8F0814FF00C00BDE8F0814FF06D -S315080030940000BDE8F0814FF00300BDE8F0814FF071 -S315080030A40A00BDE8F0814FF00D00BDE8F0814FF04D -S315080030B40100BDE8F0814FF00D00BDE8F0814FF046 -S315080030C40D00BDE8F0814FF00D00BDE8F0814FF02A -S315080030D40D00BDE8F0814FF00D00BDE8F0814FF01A -S315080030E40D00BDE8F0814FF00D00BDE8F0814FF00A -S315080030F40D00BDE8F0814FF00D00BDE8F0814FF0FA -S315080031040D00BDE8F0814FF00D00BDE8F0814FF0E9 -S315080031140D00BDE8F0814FF000030B6029E603F1CA -S315080031240203A3612562EF1967626918E1624FF029 -S315080031340306F5E6500F00202DE9F0410D4601F18E -S3150800314409060369002B61D0446994F80C80237836 -S31508003154202B1ED0274631464FF0000208F0080CF3 -S3150800316403E017F8013F202B13D0052B08BFE523EE -S31508003174BCF1000F06D0A3F14106F6B2192E9CBF86 -S315080031842033DBB201F8013B0E4602F10102082A9C -S31508003194E7D1237A202B21D033464FF02E0203F8A9 -S315080031A4012B227A202A18D004F1080106F1040C0E -S315080031B408F0100703E011F8012F202A0ED037B1C2 -S315080031C4A2F14106F6B2192E9CBF2032D2B203F8F8 -S315080031D4012B1E466345EED100E01E46E37A2B72A8 -S315080031E4E27FA37F4FEA034343EA0263227F134342 -S315080031F4627F43EA02232B60627E237E43EA02232C -S31508003204AB80E27DA37D43EA0223EB804FF0000303 -S315080032143370AE69002E31D0EB69002B2ED00369CA -S31508003224DBB1028C4FF6FF739A4219D0C769388806 -S31508003234C8B14FF00004A046414601F023FDA8B1E9 -S31508003244EB6903F1FF33A34213D9305504F10104A2 -S3150800325437F814000028EFD10DE04FF000040AE017 -S315080032644FF0000407E04FF0000404E04FF00004B8 -S3150800327401E04FF000044FF000033355BDE8F08138 -S315080032842DE9F04104460379002B29D0056B00F19A -S315080032943407407839462A464FF00103FDF794FC73 -S315080032A410BB4FF000032371636A9D4220D3E26981 -S315080032B49B189D4220D2E678012E21D94FF00108A9 -S315080032C4E369ED18607839462A464346FDF77CFCDF -S315080032D406F1FF36012EF3D14FF00000BDE8F08168 -S315080032E44FF00000BDE8F0814FF00100BDE8F08121 -S315080032F44FF00000BDE8F0814FF00000BDE8F08112 -S315080033044FF00000BDE8F08130B504460D46036B66 -S315080033148B420DD0FFF7B4FF68B9607804F1340125 -S315080033242A464FF00103FDF7FBFB38B9256330BD88 -S315080033344FF0000030BD4FF0010030BD4FF00100E2 -S3150800334430BD00BFF0B50446FFF79AFF05460028CE -S315080033545FD12378032B53D16379002B50D04FF0D8 -S315080033640006266304F13407384631464FF40072E2 -S31508003374FFF730FC4FF0550384F832324FF0AA03B6 -S3150800338484F833324FF0520384F8343084F83530F5 -S315080033944FF0610384F836304FF0410284F8372041 -S315080033A44FF0720184F8181284F8191284F81A2254 -S315080033B484F81B32236984F81C32C3F3072284F881 -S315080033C41D224FEA134284F81E224FEA136384F837 -S315080033D41F32E36884F82032C3F3072284F82122D3 -S315080033E44FEA134284F822224FEA136384F82332FD -S315080033F46078626939464FF00103FDF7E5FB6671AB -S3150800340460784FF000010A46FDF748FC002818BF0B -S3150800341401252846F0BD00BFA1F102018369A3F185 -S315080034240203994204D28278C36A02FB01307047C8 -S315080034344FF00000704700BFF0B505460C46012959 -S3150800344462D98369994262D20378022B2DD0032B61 -S315080034543DD0012B5ED101EB5106416A01EB5621A1 -S31508003464FFF752FF002858D14FEAC6534FEAD35301 -S31508003474EB1893F8347006F10106696A01EB5621D4 -S315080034842846FFF741FF00284AD14FEAC6564FEAB5 -S31508003494D656AD1995F8340047EA002014F0010F02 -S315080034A412BF00090005000DF0BD416A01EB1421A5 -S315080034B4FFF72AFF002836D14FEA046405EBD455F2 -S315080034C495F8350095F8343043EA0020F0BD416A92 -S315080034D401EBD411FFF718FF002827D14FEA4464FB -S315080034E405EBD45595F8370095F836304FEA03437B -S315080034F443EA006095F83430034395F8350043EA07 -S31508003504002020F07040F0BD4FF00100F0BD4FF0F0 -S315080035140100F0BD4FF0FF30F0BD4FF0FF30F0BDB5 -S315080035244FF0FF30F0BD4FF0FF30F0BD4FF0FF30E5 -S31508003534F0BD00BF70B504468DB2C5808168012907 -S315080035443CD003689A6991423BD279B91A78032A1E -S3150800355401D1996A51B94FF00002E2601A89AA4268 -S3150800356432D99B6A03EB151323611CE09E784FEA54 -S315080035740616B54210D32068FFF75EFF0146B0F180 -S31508003584FF3F24D0012825D923689B69984224D271 -S31508003594AD1BADB2AE42EED9E1602068FFF73CFF41 -S315080035A400EB15102061236803F1340305F00F05B9 -S315080035B403EB451565614FF0000070BD4FF002003E -S315080035C470BD4FF0020070BD4FF0020070BD4FF0A1 -S315080035D4010070BD4FF0020070BD4FF0020070BDCF -S315080035E4F0B505460C46164601297FD983699942E2 -S315080035F47FD20378022B42D0032B51D0012B6FD1F3 -S3150800360401EB5107416A01EB5721FFF77DFE0028BC -S3150800361468D14FEAC7534FEAD35314F0010409D0CB -S31508003624EA1892F8342002F00F02F1B242EA0112C3 -S31508003634D2B200E0F2B2EB1883F8342007F101079E -S315080036444FF001032B71696A01EB57212846FFF7EE -S315080036545BFE002846D14FEAC7574FEAD75714B13D -S31508003664C6F3071607E0EB1993F8343023F00F0373 -S31508003674C6F303261E43EF1987F8346032E0416A1D -S3150800368401EB1421FFF740FE60BB4FEA046405EB27 -S31508003694D45484F83460C6F3072684F8356021E0E8 -S315080036A4416A01EBD411FFF72FFED8B94FEA4464F7 -S315080036B405EBD45494F837304FEA036303F07043A8 -S315080036C41E4384F83460C6F3072384F835304FEA7A -S315080036D4164384F836304FEA166684F8376001E0F4 -S315080036E44FF002004FF001032B71F0BD4FF00200BA -S315080036F4F0BD4FF00200F0BD2DE9F04105468846BD -S3150800370431B9C6686EB183699E4228BF01260AE0AC -S31508003714FFF792FE012844D9AB6998424ED3464630 -S3150800372401E04FF0010634464FF0020704F10104A4 -S31508003734AB699C4202D3012E37D93C46284621461A -S31508003744FFF77AFE38B1B0F1FF3F37D0012835D0FC -S31508003754B442EBD12DE02646284621466FF0704246 -S31508003764FFF73EFFB0B9B8F1000F05D02846414629 -S315080037742246FFF735FF68B9EE602B69B3F1FF3FC0 -S315080037841BD003F1FF332B614FF001036B71204605 -S31508003794BDE8F081012814BF01204FF0FF30BDE8D1 -S315080037A4F0814FF00100BDE8F0814FF00000BDE85C -S315080037B4F0814FF00000BDE8F0812046BDE8F081B5 -S315080037C42DE9F04104460D46C68806F10106B6B24F -S315080037D4002E71D00369002B72D016F00F0F5ED13C -S315080037E403F101030361C16821B903681B89B34264 -S315080037F46AD954E00068837803F1FF3313EA161391 -S315080038044DD1FFF719FE0746012861D9B0F1FF3FEC -S3150800381462D0206883699F423BD3002D60D0E1685B -S31508003824FFF76AFF074600285ED0012860D0B0F18A -S31508003834FF3F61D02068FFF723FD002860D1206888 -S3150800384400F134004FF000014FF40072FFF7C2F99B -S31508003854256828463946FFF7DFFD28634FF000053B -S315080038644FF001080EE083F804802068FFF708FD8E -S31508003874002849D123681A6B02F101021A6305F17B -S315080038840105EDB223689A78AA42ECD81A6B551B3F -S315080038941D63E76020683946FFF7BEFD2061E680B0 -S315080038A4236803F1340306F00F0603EB4616666134 -S315080038B44FF00000BDE8F0814FF00400BDE8F08148 -S315080038C44FF00400BDE8F0814FF00400BDE8F08134 -S315080038D44FF00200BDE8F0814FF00100BDE8F08129 -S315080038E44FF00400BDE8F0814FF00700BDE8F08111 -S315080038F44FF00200BDE8F0814FF00100BDE8F08109 -S315080039044FF00100BDE8F0814FF00100BDE8F081F9 -S315080039142DE9F04F83B004464FF00001FFF70AFE85 -S315080039240546002840F0AD804FF0FF08474645F2AB -S315080039343439C0F6000909F10C0A20682169FFF731 -S31508003944E3FC0546002840F09C8066693378002B22 -S3150800395400F09580F27AE52B79D002F03F0212F056 -S31508003964080F02D00F2A75D101E00F2A53D1E56951 -S31508003974002D7AD013F0400F06D096F80D80E28811 -S31508003984228403F0BF0701E09F4266D196F80DB082 -S31508003994C34565D1337823F0400303F1FF3303EBC2 -S315080039A4430203EB8202019209F1FF384FF0010248 -S315080039B4009218F8013FF2185278F35C43EA0220A1 -S315080039C4009B93B101F08AF902900090019AFE2AAD -S315080039D41DD835F8120001F081F9029B834216D1ED -S315080039E4019A02F10102019203E04FF6FF7398422D -S315080039F40DD1D045DDD1337813F0400F45D0009A68 -S31508003A04002A42D0019A35F81230002B3DD0D84608 -S31508003A144FF0FF0729E027B93046FFF709F9404573 -S31508003A242FD04FF6FF732384A369DA7A12F0010FB5 -S31508003A3419D103F10B0001E0834222D016F8011BC9 -S31508003A4413F8012B9142F7D04FF0FF070DE04FF022 -S31508003A54FF070AE04FF0FF0707E04FF0FF0704E00F -S31508003A644FF0FF0701E04FF0FF0720464FF0000133 -S31508003A74FFF7A6FE054600283FF45FAF01E04FF0C6 -S31508003A840405284603B0BDE8F08F07F1FF37FFB2F7 -S31508003A94D846EAE72DE9F04F84B0824688460B7883 -S31508003AA42F2B01D05C2B01D108F101084FF000033C -S31508003AB4CAF8083098F800301F2B09D850464FF03A -S31508003AC40001FFF737FD4FF00003CAF814305AE136 -S31508003AD445F2A023C0F60003009345F2AC23C0F6D2 -S31508003AE4000303934346984613F8012B2F2AFAD06A -S31508003AF45C2AF8D0DAF81CB098F800001F2833D9E5 -S31508003B042F2800F043815C2800F04581ABF10206BA -S31508003B1447464FF00104A14625460AE02F2B00F03C -S31508003B243F815C2B00F03E81B2F5807F00F01A815C -S31508003B341546494601F0A6F80446002800F0158102 -S31508003B447F2806D800982146FFF74AF8002840F04F -S31508003B540F8126F8024F17F8013F184605F10102AE -S31508003B641F2BDBD82C4603E04FF000044FF001026C -S31508003B7490444FF00407002C00F0FD800BEB440240 -S31508003B8432F8023D202B01D02E2B04D1013CF7D16B -S31508003B944FF00600F7E02646002C00F0EF804FF0C1 -S31508003BA400052BF81450DAF818004FF020014FF0EE -S31508003BB40B02FFF70FF85A4601E005F1010532F842 -S31508003BC4023B202BF9D02E2BF7D00DB147F0030773 -S31508003BD406F1FF360BEB46033BF816202E2A01D0D6 -S31508003BE4013C08D14FF0080001904FF00009CDF8C8 -S31508003BF40890264604E033F8022D2E2AF0D1F1E780 -S31508003C043BF81540002C62D005F10105202C03D0A1 -S31508003C142E2C04D1AE4202D047F00307F0E7019AEE -S31508003C24914501D2AE4217D1019B0B2B03D147F024 -S31508003C34030702994EE0AE4202D047F0030748D381 -S31508003C4402984FEA8003DBB2029335464FF00B0223 -S31508003C5401924FF00809D3E77F2C11D920464FF07B -S31508003C64000101F00FF8002800F0A18045F2B42302 -S31508003C74C0F600031B1813F8804C47F0020724B15A -S31508003C8403982146FEF7ACFF20B147F003074FF02F -S31508003C945F0415E0A4F141039BB2192B04D8029BD7 -S31508003CA443F0020302930BE0A4F161039BB2192BC0 -S31508003CB406D8029840F001000290A4F12004A4B2A8 -S31508003CC4DAF8183003F8094009F1010998E7029966 -S31508003CD400E00299DAF818301A78E52A04BF0522B2 -S31508003CE41A70019A082A03D14FEA8101C9B20291CE -S31508003CF4029901F00C030C2B03D001F00302032AEA -S31508003D0401D147F0020717F0020F09D101F00301A8 -S31508003D14012908BF47F01007042B08BF47F0080716 -S31508003D24DAF81830DF725046FFF7F2FDDAF8183081 -S31508003D34DB7A38B1042826D103F00403002B08BF24 -S31508003D44052020E013F0040F1DD1DAF81410CB7AFD -S31508003D5413F0100F15D0DAF80000FEF74DFFCAF875 -S31508003D640800BFE64FF006000DE04FF006000AE033 -S31508003D744FF0060007E04FF0060004E04FF0060097 -S31508003D8401E04FF0050004B0BDE8F08F4FF00004E1 -S31508003D944FF0010207E04FF000044FF0010202E081 -S31508003DA42C4600E02C4690444FF00007E3E647F023 -S31508003DB402076AE72DE9F0410446C588018C4FF6E7 -S31508003DC4FF73994208BF2946FFF7B4FBD0B94FF0F1 -S31508003DD4E5064FF001074FF0000820682169FFF750 -S31508003DE493FA60B963691E7023681F71E388AB424E -S31508003DF408D220464146FFF7E3FC0028EDD0042804 -S31508003E0408BF0220BDE8F0812DE9F04F04460F46AD -S31508003E144FF0FF0846464FF0040545F23439C0F61C -S31508003E24000909F10C0A7EE02068FFF76DFA0546D9 -S31508003E3400287DD160690378002B00F08480C27A5B -S31508003E44E52B5BD02E2B5CD002F03F02082A14BF68 -S31508003E5400210121B94257D10F2A46D113F0400F48 -S31508003E6406D090F80D80E288228403F0BF0601E0AC -S31508003E749E424CD1457B45454CD1D4F81CC00378A9 -S31508003E8403F03F0303F1FF3303EB430103EB810123 -S31508003E9409F1FF334FF0010E4FF6FF7813F8012F9F -S31508003EA400EB020B9BF801B0825C42EA0B22BEF1DE -S31508003EB4000F07D0FE2914D82CF8112001F10101AE -S31508003EC4964601E042450CD15345E7D1037813F0F1 -S31508003ED4400F33D0FE2904D84FF000032CF81130D4 -S31508003EE42CE0A8464FF0FF0616E01EB9FEF7A0FE22 -S31508003EF4404520D04FF6FF7323841CE04FF0FF069D -S31508003F040AE04FF0FF0607E04FF0FF0604E04FF023 -S31508003F14FF0601E04FF0FF0620464FF00001FFF7C9 -S31508003F244FFC054620B9216900297FF47DAF15B1F8 -S31508003F344FF0000323612846BDE8F08F06F1FF36EB -S31508003F44F6B2A846E8E74FF00405F1E72DE9F04193 -S31508003F5404460E46012928D98369994229D201E0E3 -S31508003F642E4603E04FF000074FF00108204631467D -S31508003F74FFF762FA054600B3012822D0B0F1FF3FE5 -S31508003F8423D0204631463A46FFF72AFBF8B9236977 -S31508003F94B3F1FF3F04D003F10103236184F80580DC -S31508003FA4A369AB42DCD8BDE8F0814FF00200BDE856 -S31508003FB4F0814FF00200BDE8F0814FF00000BDE843 -S31508003FC4F0814FF00200BDE8F0814FF00100BDE832 -S31508003FD4F08100BF70B582B0054616469CB24FF014 -S31508003FE40B02FEF7EFFD052C0CD9A6F102064FEAE3 -S31508003FF4540343EAC43436F8023FE418A4B2738877 -S31508004004002BF4D14FF0070204F00F0101F130033D -S31508004014392B88BF01F137030DF8023002F1FF325C -S315080040242409F1D1144602A98B184FF07E0103F82E -S31508004034081C72B12B78202B0ED029464FF00003AA -S3150800404403F10103A34209D011F8010F2028F7D17F -S3150800405404E04FF0000301E04FF000034FF02000A6 -S31508004064072A06D802ACA11811F8081C02F10102A5 -S3150800407400E00146E95403F10103072BF0D902B025 -S3150800408470BD00BF2DE9F04F83B00646D0F81890EE -S31508004094D0F81C80684649464FF00C02FEF792FD9C -S315080040A49DF80B3013F0010F28D04FF0000389F860 -S315080040B40B30F3614FF001073D46484669464246D0 -S315080040C43B46FFF787FF3046FFF722FC044648B90C -S315080040D405F10105ADB207F10107642DEDD14FF0E5 -S315080040E40704D2E0642D00F0CE80042840F0CD8089 -S315080040F49DF80B3089F80B30C6F81C809DF80B30F8 -S3150800410413F0020F19D0B8F800304BB14FF0000382 -S3150800411403F101039BB238F81320002AF8D101E011 -S315080041244FF0000303F119034EF64F42C4F6C46276 -S3150800413482FB0312C2F38F0901E04FF00109C84656 -S3150800414430464FF00001FFF7F5F90446002840F021 -S315080041549C804FF00005AA464FF001073068316984 -S31508004164FFF7D2F80446002840F08F8073691B785D -S31508004174E52B00D023B905F10105A84501D188E04E -S31508004184554630463946FFF71BFB04460028E5D05A -S315080041947BE0F188C91B89B23046FFF7CBF90446A0 -S315080041A4002872D1B069FEF743FD804645F23435DE -S315080041B4C0F6000530683169FFF7A6F804460028FA -S315080041C463D1D6F81CC071695FFA87FA81F80D8045 -S315080041D44FF00F03CB724FF000020A738A76CA7641 -S315080041E40AF1FF3303EB430003EB800013464FF653 -S315080041F4FF7E4FF0FF09734550D03CF8103000F1AC -S315080042040100545D0B550C194FEA132B84F801B0C1 -S31508004214002B08BF734602F101020D2AEBD14FF6B3 -S31508004224FF72934202D03CF810300BB94AF0400AA8 -S3150800423481F800A033684FF001021A7130464FF036 -S315080042440001FFF7BDFA0446F8B907F1FF37BFB214 -S31508004254002FAFD129E070694FF000014FF020021A -S31508004264FEF7B8FC7069B1694FF00B02FEF7AAFCB9 -S315080042747369B269D27A02F018021A7333684FF076 -S3150800428401021A7101E04FF00704204603B0BDE8A5 -S31508004294F08F09F1FF37BFB23FB17AE7545D01F8F1 -S315080042A404900C1984F80190B5E730683169FFF772 -S315080042B42BF804460028E8D1CDE700BFC0B2A0B960 -S315080042C440F65473C2F200031B6813B14FF00002A0 -S315080042D41A7011B14FF000030B7040F65473C2F212 -S315080042E4000319604FF0000070474FF00B00704749 -S315080042F42DE9F0438DB004460091D2B2002800F0AF -S31508004304A4804FF00003036002F01F06B04606F0CF -S31508004314FE02684604A9FEF715FD0546002840F086 -S31508004324968001AB0A9340F65053C2F200030B93EE -S3150800433404A80099FFF7AEFB099F10B9002F08BF20 -S31508004344062018F01C0F4DD050B104287BD104A8C0 -S31508004354FFF798FE099F002875D146F0080606E07F -S31508004364FB7A13F0110F76D118F0040F76D116F0F4 -S31508004374080F7CD0FCF71AFEB873C0F30723FB7347 -S315080043844FEA10433B744FEA106078744FF0000804 -S3150800439487F80B8087F81C8087F81D8087F81E80AD -S315080043A487F81F8004983946FEF726FC8146384666 -S315080043B44146FEF731FC04984FF001030371B9F145 -S315080043C4000F54D0D0F830804946FFF7BFFD0028C7 -S315080043D439D1049809F1FF33C3604146FEF794FFC7 -S315080043E468B130E000282ED1FB7A13F0100F38D1CB -S315080043F418F0020F3BD013F0010F35D137E046F021 -S315080044042006DDF81080D8F83030E3612762A671FB -S3150800441440463946FEF7F0FB2061FA7FBB7F4FEA38 -S31508004424034343EA02633A7F13437A7F43EA022348 -S31508004434E3604FF00003A360A361C4F80080B8F8F2 -S315080044440630A38003E0054601E04FF00905284637 -S315080044540DB0BDE8F0834FF00700F4E74FF008000D -S31508004464F1E74FF00400EEE74FF00700EBE716F02C -S31508004474080FC6D0C3E700BF2DE9F04F82B0044643 -S31508004484894615461E464FF000033360FEF7E2FBE5 -S315080044940746002840F0CB80A37913F0800F40F03C -S315080044A4C18013F0010F00F0C080E268A368C3EB73 -S315080044B40208454538BFA846B8F1000F00F0B78092 -S315080044C404F1240300930190A2684FEAC2534FEA09 -S315080044D4D353002B40F088802068857805F1FF3592 -S315080044E405EA5225EDB2CDB90AB9206902E0616937 -S315080044F4FEF7A2FF012806D8A37963F07F03A37108 -S315080045044FF0020793E0B0F1FF3F06D1A37963F0B9 -S315080045147F03A3714FF0010789E060612768616929 -S315080045243846FEF779FF30B9A37963F07F03A371A0 -S315080045344FF002077BE000EB050A5FEA582B28D008 -S31508004544BB780BEB05029A4288BFC5EB030B787858 -S315080045545FFA8BF349465246FCF7E2FA30B1A3797F -S3150800456463F07F03A3714FF0010760E0A37913F0AA -S31508004574400F0BD0A369CAEB030AD34506D909EB46 -S315080045844A2000994FF40072FEF71CFB4FEA4B25AC -S315080045943BE0A269524525D0A37913F0400F11D008 -S315080045A4787800994FF00103FCF70EFB30B1A37934 -S315080045B463F07F03A3714FF0010738E0A37923F072 -S315080045C44003A37123685878009952464FF00103B3 -S315080045D4FCF7A6FA30B1A37963F07F03A3714FF011 -S315080045E4010724E0C4F818A0A1684FEAC1514FEAAC -S315080045F4D151C1F50075A84538BF454601F12401D6 -S31508004604611848462A46FEF7DDFAA944A3685B19E9 -S31508004614A36033685B193360B8EB05087FF454AFBD -S31508004624019F04E04FF0020701E04FF00707384600 -S3150800463402B0BDE8F08F00BF2DE9F04F82B0044602 -S31508004644894617461E464FF000033360FEF702FB01 -S315080046548046002840F0EB80A37913F0800F40F0E1 -S31508004664E18013F0020F00F0E080E368DF4280F097 -S31508004674CF80002F00F0CC8004F12403009301902E -S31508004684A2684FEAC2534FEAD353002B40F09C80EA -S315080046942068857805F1FF3505EA5225EDB225BB74 -S315080046A442B923696BB94FF00001FFF725F80346B1 -S315080046B4206103E06169FFF71FF80346002B00F049 -S315080046C4A580012B06D1A37963F07F03A3714FF06C -S315080046D40208ACE0B3F1FF3F06D1A37963F07F0388 -S315080046E4A3714FF00108A2E06361A37913F0400FA8 -S315080046F413D023685878A26900994FF00103FCF790 -S3150800470463FA30B1A37963F07F03A3714FF001080C -S315080047148DE0A37923F04003A371D4F8008061697E -S315080047244046FEF779FE30B9A37963F07F03A37197 -S315080047344FF002087BE000EB050A5FEA572B2AD004 -S3150800474498F802300BEB05029A4288BFC5EB030BB7 -S3150800475498F801005FFA8BF349465246FCF734FA97 -S3150800476430B1A37963F07F03A3714FF001085EE0CB -S31508004774A369CAEB030AD3450AD909EB4A21009867 -S315080047844FF40072FEF71EFAA37923F04003A371CF -S315080047944FEA4B252DE0A369534513D0A268E36875 -S315080047A49A420FD298F80100009952464FF0010335 -S315080047B4FCF7B6F930B1A37963F07F03A3714FF020 -S315080047C4010834E0C4F818A0A0684FEAC0504FEABC -S315080047D4D050C0F50075AF4238BF3D4600F12400FD -S315080047E4201849462A46FEF7EDF9A37943F0400313 -S315080047F4A371A944A3685B19A36033685B19336082 -S315080048047F1B7FF43DAFDDF8048001E0DDF804800A -S31508004814A368E268934288BFE360A37943F0200360 -S31508004824A37104E04FF0020801E04FF00708404680 -S3150800483402B0BDE8F08F00BF30B50446FEF70AFAA9 -S3150800484400284CD1A37913F0200F48D013F0400F59 -S315080048540ED0214651F8243B5878A2694FF001033B -S31508004864FCF7B2F9002838D1A37923F04003A371E1 -S315080048742068E169FEF748FD002830D1256AEB7AFD -S3150800488443F02003EB72E3682B77A3894FEA1323DB -S315080048946B77E389AB77E37BEB7721692846FEF7E9 -S315080048A4BBF9FCF783FBA875C0F30723EB754FEA3E -S315080048B410432B764FEA106068764FF00003AB740A -S315080048C4EB74A37923F02003A37123684FF0010244 -S315080048D41A712068FEF736FD30BD4FF0010030BD71 -S315080048E410B50446FFF7A8FF10B94FF0000323607C -S315080048F410BD00BFF0B504460D46FEF7ABF90646F3 -S31508004904002840F0D080A37913F0800F40F0C980C6 -S31508004914E268AA4204D203F00203002B08BF154634 -S31508004924A2684FF00003A360002D00F0BC80206845 -S3150800493487784FEA472782B102F1FF3205F1FF3142 -S31508004944B1FBF7F1B2FBF7F3994206D3C7F10003BB -S315080049541A40A260AD1A616919E02169B1B9FEF776 -S31508004964CBFE0146012806D1A37963F07F03A37120 -S315080049744FF0020697E0B0F1FF3F06D1A37963F042 -S315080049847F03A3714FF001068DE020616161002960 -S3150800499445D0BD422DD9A37913F0020F05D020685E -S315080049A4FEF7AAFE014620B922E02068FEF744FD78 -S315080049B40146B1F1FF3F06D1A37963F07F03A371E2 -S315080049C44FF001066FE0012903D923689B699942D0 -S315080049D406D3A37963F07F03A3714FF0020662E05E -S315080049E46161A368DB19A360ED1BAF42D3D300E072 -S315080049F43D46A3685B19A3604FEAC5534FEAD353F0 -S31508004A0483B12068FEF708FD30B9A37963F07F0304 -S31508004A14A3714FF0020646E000EB552504E04FF07B -S31508004A24000501E04FF00005A3684FEAC3534FEAB7 -S31508004A34D35363B3A269AA4229D0A37913F0400FCA -S31508004A4413D0214651F8243B58784FF00103FCF75C -S31508004A54BBF830B1A37963F07F03A3714FF0010665 -S31508004A6421E0A37923F04003A371214651F8243B9E -S31508004A7458782A464FF00103FCF752F830B1A37967 -S31508004A8463F07F03A3714FF001060CE0A561A368E8 -S31508004A94E268934207D9E360A37943F02003A3713C -S31508004AA401E04FF002063046F0BD00BF30B58DB0C8 -S31508004AB40DAB43F8340D0D46684604A94FF00002C1 -S31508004AC4FEF740F90446A8B901AB0A9340F65053D9 -S31508004AD4C2F200030B9304A80099FEF7DBFF044611 -S31508004AE440B9099B23B104A82946FEF725FB01E032 -S31508004AF44FF0060420460DB030BD00BF30B596B061 -S31508004B0416AB43F8580D68460DA94FF00102FEF797 -S31508004B1419F900283CD101AB139340F65053C2F25D -S31508004B24000314930DA80099FEF7B4FF00282FD1AB -S31508004B34129931B1CC7A14F0010F2BD04FF007003B -S31508004B4426E04FF0060023E0012D2BD904A80DA971 -S31508004B544FF02402FEF736F8069504A84FF0020132 -S31508004B64FEF7E8FCA0B904A84FF00001FFF74CF9DA -S31508004B7410B1042819D00BE04FF0070008E025B15E -S31508004B840D982946FFF7E2F910B90D98FEF7DAFBF6 -S31508004B9416B030BD0D98FEF72FF8054614F0100F21 -S31508004BA4D2D102E04FF00200F2E70DA8FFF702F9AE -S31508004BB40028E4D0ECE700BF2DE9F04382B0814633 -S31508004BC4904604464FF0000501F1FF3715E04046CC -S31508004BD401A94FF001026B46FFF74EFC009B012B1F -S31508004BE40ED19DF804300D2B08D0337004F101045E -S31508004BF4264605F101050A2B02D02646AF42E6DC15 -S31508004C044FF0000333709D4208BF9946484602B0E8 -S31508004C14BDE8F08330B582B00D46C4B20A2C03D180 -S31508004C244FF00D00FFF7F6FF02A901F8084D2846D4 -S31508004C3469464FF0010201ABFFF7FEFC0198012813 -S31508004C4414BF4FF0FF30012002B030BD70B50546E1 -S31508004C540E46007870B14FF000043146FFF7DAFFCC -S31508004C64B0F1FF3F09D004F1010415F8010F00283B -S31508004C74F3D104E04FF0000401E04FF0FF3420467E -S31508004C8470BD00BF80B27F2826D911B9C7280BD1B9 -S31508004C941AE0FF281ED845F20473C0F60003A0F1F3 -S31508004CA4800033F81000704745F20472C0F600021B -S31508004CB44FF0010332F8021F814207D003F10103C2 -S31508004CC49BB2802BF6D101E04FF0000303F180007C -S31508004CD4C0B270474FF00000704700BF80B2612829 -S31508004CE40ED045F22451C0F600014FF0000202F13D -S31508004CF4010231F8023F5BB18342F8D113B9704718 -S31508004D044FF0000245F24433C0F6000333F81200AC -S31508004D14704700BFA0F1300009288CBF002001208D -S31508004D24704700BFA0F16103DBB2192B98BF203886 -S31508004D34704700BF30B504460D4600F017F840F634 -S31508004D445873C2F200031D6040F65C73C2F2000396 -S31508004D541C601A461368002BFCD100F009F840F6CB -S31508004D645873C2F20003186830BD00BF704700BF0D -S30908004D74704700BFB7 -S31508004D782F64656D6F70726F675F6F6C696D6578A4 -S31508004D885F73746D3332703130332E737265630016 -S31508004D982F626F6F746C6F672E747874000000004A -S31508004DA8433A2F576F726B2F736F66747761726504 -S31508004DB82F4F70656E424C542F5461726765742F75 -S31508004DC844656D6F2F41524D434D335F53544D33F0 -S31508004DD8325F4F6C696D65785F53544D3332503185 -S31508004DE830335F43726F7373776F726B732F426FCB -S31508004DF86F742F6964652F2E2E2F6D61696E2E6369 -S31508004E0800000000433A2F576F726B2F736F667452 -S31508004E18776172652F4F70656E424C542F546172D4 -S31508004E286765742F44656D6F2F41524D434D335F47 -S31508004E3853544D33325F4F6C696D65785F53544DE3 -S31508004E483332503130335F43726F7373776F726BD7 -S31508004E58732F426F6F742F6964652F2E2E2F2E2E8F -S31508004E682F2E2E2F2E2E2F536F757263652F4152B4 -S31508004E784D434D335F53544D33322F43726F73731B -S31508004E88776F726B732F766563746F72732E630010 -S31508004E98433A2F576F726B2F736F66747761726513 -S31508004EA82F4F70656E424C542F5461726765742F84 -S31508004EB844656D6F2F41524D434D335F53544D33FF -S31508004EC8325F4F6C696D65785F53544D3332503194 -S31508004ED830335F43726F7373776F726B732F426FDA -S31508004EE86F742F6964652F2E2E2F2E2E2F2E2E2F98 -S31508004EF82E2E2F536F757263652F41524D434D33CE -S31508004F085F53544D33322F63616E2E6300000000E1 -S31508004F180502000006020000060300000703000059 -S31508004F280803000009030000090400000A04000039 -S31508004F380B0400000C0400000C0500000D05000019 -S31508004F480E0500000F0500000F06000010060000F9 -S31508004F581007000010080000433A2F576F726B2F8E -S31508004F68736F6674776172652F4F70656E424C541D -S31508004F782F5461726765742F44656D6F2F41524DC2 -S31508004F88434D335F53544D33325F4F6C696D6578C3 -S31508004F985F53544D3332503130335F43726F7373F6 -S31508004FA8776F726B732F426F6F742F6964652F2E34 -S31508004FB82E2F2E2E2F2E2E2F2E2E2F536F757263D1 -S31508004FC8652F41524D434D335F53544D33322F7538 -S31508004FD86172742E6300000000600008002000005B -S31508004FE803000000008000080020000004000000FC -S31508004FF800A00008002000000500000000C0000806 -S31508005008002000000600000000E00008002000005C -S315080050180700000000000108002000000800000042 -S3150800502800200108002000000900000000400108CF -S31508005038002000000A0000000060010800200000A7 -S315080050480B00000000800108002000000C0000008A -S3150800505800A00108002000000D00000000C001089B -S31508005068002000000E00000000E0010800200000F3 -S315080050780F0000004F70656E424C5400433A2F5794 -S315080050886F726B2F736F6674776172652F4F7065D1 -S315080050986E424C542F5461726765742F44656D6F60 -S315080050A82F41524D434D335F53544D33325F4F6C46 -S315080050B8696D65785F53544D3332503130335F43E9 -S315080050C8726F7373776F726B732F426F6F742F6972 -S315080050D864652F2E2E2F2E2E2F2E2E2F2E2E2F5343 -S315080050E86F757263652F66696C652E63000000002C -S315080050F84669726D7761726520757064617465209A -S31508005108726571756573742064657465637465641E -S315080051180A0D00004F70656E696E67206669726DC4 -S31508005128776172652066696C6520666F722072659C -S315080051386164696E672E2E2E000000004552524F94 -S31508005148520A0D004F4B0A0D000000005374617295 -S3150800515874696E67207468652070726F6772616D0E -S315080051686D696E672073657175656E63650A0D00EE -S3150800517850617273696E67206669726D77617265C8 -S315080051882066696C6520746F206F627461696E2089 -S3150800519865726173652073697A652E2E2E00000084 -S315080051A845726173696E6720000000002062797491 -S315080051B865732066726F6D206D656D6F72792061F3 -S315080051C8742030780000000052656164696E6720B3 -S315080051D86C696E652066726F6D2066696C652E2E21 -S315080051E82E4552524F520A0D00000000496E76614C -S315080051F86C696420636865636B73756D20666F7583 -S315080052086E642E2E2E4552524F520A0D000000008B -S3150800521850726F6772616D6D696E672000000000D5 -S3150800522820627974657320746F206D656D6F727965 -S31508005238206174203078000057726974696E672097 -S3150800524870726F6772616D20636865636B73756DDD -S315080052582E2E2E00436C6F73696E67206669726D11 -S31508005268776172652066696C650A0D004669726D14 -S3150800527877617265207570646174652073756363F8 -S3150800528865737366756C6C7920636F6D706C65747D -S3150800529865640A0D00000000222A3A3C3E3F7C7FDE -S315080052A8000000002B2C3B3D5B5D0000809A904176 -S315080052B88E418F804545454949498E8F9092924F30 -S315080052C8994F555559999A9B9C9D9E9F41494F556B -S315080052D8A5A5A6A7A8A9AAABAC21AEAFB0B1B2B38B -S315080052E8B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3F0 -S315080052F8C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3E0 -S31508005308D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3CF -S31508005318E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3BF -S31508005328F4F5F6F7F8F9FAFBFCFDFEFF01030507A5 -S31508005338090E10121416181C1E000000410042001F -S3150800534843004400450046004700480049004A0013 -S315080053584B004C004D004E004F00500051005200C3 -S3150800536853005400550056005700580059005A0073 -S315080053782100E0FFE1FFE5FFE2FFE3FFC000C1000F -S31508005388C200C300C400C500C600C700C800C900DB -S31508005398CA00CB00CC00CD00CE00CF00D000D1008B -S315080053A8D200D300D400D500D600D800D900DA0038 -S315080053B8DB00DC00DD00DE007801000102010401E3 -S315080053C8060108010A010C010E0110011201140157 -S315080053D8160118011A011C011E01200122012401C7 -S315080053E8260128012A012C012E0130013201340137 -S315080053F8360139013B013D013F01410143014501A0 -S3150800540847014A014C014E01500152015401560107 -S3150800541858015A015C015E01600162016401660176 -S3150800542868016A016C016E017001720174017601E6 -S3150800543879017B017D0191019103920393039403FA -S31508005448950396039703980399039A039B039C036A -S315080054589D039E039F03A003A103A303A403A50317 -S31508005468A603A703A803A903AA0310041104120490 -S3150800547813041404150416041704180419041A0442 -S315080054881B041C041D041E041F04200421042204F2 -S3150800549823042404250426042704280429042A04A2 -S315080054A82B042C042D042E042F04010402040304DF -S315080054B80404050406040704080409040A040B047A -S315080054C80C040E040F046021612162216321642102 -S315080054D8652166216721682169216A216B216C216A -S315080054E86D216E216F2121FF22FF23FF24FF25FF4F -S315080054F826FF27FF28FF29FF2AFF2BFF2CFF2DFF52 -S315080055082EFF2FFF30FF31FF32FF33FF34FF35FF01 -S3150800551836FF37FF38FF39FF3AFF0000610062009F -S3150800552863006400650066006700680069006A0031 -S315080055386B006C006D006E006F00700071007200E1 -S3150800554873007400750076007700780079007A0091 -S31508005558A100A200A300A500AC00AF00E000E1008E -S31508005568E200E300E400E500E600E700E800E900F9 -S31508005578EA00EB00EC00ED00EE00EF00F000F100A9 -S31508005588F200F300F400F500F600F800F900FA0056 -S31508005598FB00FC00FD00FE00FF00010103010501F8 -S315080055A8070109010B010D010F011101130115016D -S315080055B8170119011B011D011F01210123012501DD -S315080055C8270129012B012D012F013101330135014D -S315080055D837013A013C013E014001420144014601B6 -S315080055E848014B014D014F0151015301550157011E -S315080055F859015B015D015F0161016301650167018D -S3150800560869016B016D016F017101730175017701FC -S315080056187A017C017E019201B103B203B303B40394 -S31508005628B503B603B703B803B903BA03BB03BC0388 -S31508005638BD03BE03BF03C003C103C303C403C50335 -S31508005648C603C703C803C903CA03300431043204AE -S3150800565833043404350436043704380439043A0460 -S315080056683B043C043D043E043F0440044104420410 -S3150800567843044404450446044704480449044A04C0 -S315080056884B044C044D044E044F045104520453046D -S315080056985404550456045704580459045A045B0418 -S315080056A85C045E045F0470217121722173217421E0 -S315080056B8752176217721782179217A217B217C2108 -S315080056C87D217E217F2141FF42FF43FF44FF45FF9D -S315080056D846FF47FF48FF49FF4AFF4BFF4CFF4DFF70 -S315080056E84EFF4FFF50FF51FF52FF53FF54FF55FF20 -S315080056F856FF57FF58FF59FF5AFF0000C700FC001E -S31508005708E900E200E400E000E500E700EA00EB0053 -S31508005718E800EF00EE00EC00C400C500C900E6008A -S31508005728C600F400F600F200FB00F900FF00D600F8 -S31508005738DC00A200A300A500A7209201E100ED0065 -S31508005748F300FA00F100D100AA00BA00BF0010233E -S31508005758AC00BD00BC00A100AB00BB00912592259A -S315080057689325022524256125622556255525632571 -S31508005778512557255D255C255B25102514253425D7 -S315080057882C251C2500253C255E255F255A255425EC -S3150800579869256625602550256C25672568256425AD -S315080057A8652559255825522553256B256A25182513 -S315080057B80C25882584258C2590258025B103DF00AE -S315080057C89303C003A303C303B500C403A60398033E -S315080057D8A903B4031E22C603B50329226122B10010 -S315080057E86522642220232123F7004822B0001922C3 -S311080057F8B7001A227F20B200A025A000EE -S30D08005804010000000400000089 +S315080020549C019C019C019C019C019C019C019C0186 +S315080020649C019C019C019C018B00590036007D0053 +S315080020749C019C019C01B2009C01CE00D300E700A0 +S315080020844578FFF71BFF00F1FF30854204DD4FF06A +S315080020942200FFF74DFF5DE140F2DC65C2F2000560 +S315080020A405F10400A96C6278FFF704FA4FF0FF0300 +S315080020B4EB706278AB6CD318AB64637803F10103F5 +S315080020C4A5F8443046E14578FFF7F8FE00F1FF30FD +S315080020D4854204DD4FF02200FFF72AFF3AE16168E2 +S315080020E440F2DC65C2F20005A96405F104006278D1 +S315080020F4FFF7E0F94FF0FF03EB706278AB6CD31887 +S31508002104AB64637803F10103A5F8443022E140F295 +S31508002114DC63C2F200034FF0FF02DA7042689A6485 +S315080021244FF00102A3F8442014E140F2DC63C2F242 +S3150800213400034FF0FF02DA70996C436843B14FF01D +S31508002144000211F8010B1218D2B2013BF9D101E0D1 +S315080021544FF0000240F2DC63C2F20003C3F8072022 +S315080021644FF001021A714FF000025A719A714FF03A +S315080021740802A3F84420EDE040F2DC63C2F200034F +S315080021844FF0FF02DA7045F29002C0F600029A6434 +S315080021944FF000021A715A719A714FF00701D971FA +S315080021A41A725A729A724FF00802A3F84420D1E0C0 +S315080021B44FF00000FFF7BCFECCE040F2DC63C2F24D +S315080021C400034FF0FF02DA704FF000021A715978D3 +S315080021D459719A71DA711A724FF00602A3F84420FB +S315080021E4B8E040F2DC64C2F200044FF00003237046 +S315080021F4FFF796FE4FF0FF03E3704FF00103A4F8D0 +S315080022044430A7E040F2DC63C2F200039D6CFFF79A +S3150800221455FE00F1FF3104F101022846FFF764F97F +S3150800222420B94FF03100FFF783FE93E040F2DC64F7 +S31508002234C2F200044FF0FF03E370A56CFFF73EFEFD +S3150800224405F1FF331B18A3644FF00103A4F84430C7 +S3150800225480E04578FFF732FEA0F10200854204DDEE +S315080022644FF02200FFF764FE74E040F2DC63C2F22A +S3150800227400034FF0FF02DA704FF00102A3F844207E +S31508002284617841B9FFF748F9002863D14FF0310066 +S31508002294FFF74EFE5EE040F2DC63C2F20003986C80 +S315080022A404F10202FFF720F920B94FF03100FFF7D5 +S315080022B43FFE4FE040F2DC63C2F2000361789A6C99 +S315080022C48A189A6446E040F2DC64C2F200044FF0CD +S315080022D4FF03E3704FF0000525716571FFF7EEFD06 +S315080022E4A071E571257265724FF00703A4F84430AE +S315080022F430E040F2DC63C2F20003986C6168FFF7D1 +S31508002304F9F820B94FF03100FFF712FE22E040F247 +S31508002314DC63C2F200034FF0FF02DA704FF00102E9 +S31508002324A3F8442016E0FFF7ABF840F2DC63C2F2E8 +S3150800233400034FF0FF02DA704FF00102A3F84420BD +S3150800234408E04FF03100FFF7F3FD03E04FF02000FB +S31508002354FFF7EEFD40F2DC63C2F2000393F8433064 +S31508002364012B03D14FF01000FFF7E2FD40F2DC63C6 +S31508002374C2F20003B3F844100BB2002B0CDD40F292 +S31508002384DC60C2F200004FF0010380F8433000F12C +S31508002394030089B2FFF778FD30BD00BF30B40346A9 +S315080023A44CF6CD44CCF6CC4400E0114601F10102CA +S315080023B4A4FB0353DB08F8D14FF000034B70114616 +S315080023C44CF6CD45CCF6CC4502F1FF32A5FB0043CD +S315080023D44FEAD30303EB8304A0EB440000F1300077 +S315080023E401F8010D1846002BEED1104630BC704793 +S315080023F470B506464FF000042546305D02F09CFC95 +S31508002404C0B2A0F13003DBB2162B12D8A0F13A02FF +S31508002414D2B2062A10D9092B84BFA0F13703DBB23E +S3150800242403EB051505F0FF0504F10104022CE4D1BC +S3150800243404E04FF0000501E04FF00005284670BDA2 +S3150800244400B5C3B203F00F00092B03D900F1370016 +S315080024545DF804FB00F1300002F06EFCC0B25DF8D2 +S3150800246404FB00BF30B50C46C5B24FEA1510FFF79A +S31508002474E7FF207005F00F00FFF7E2FF60704FF0EA +S315080024840003A370204630BD00B540F26873C2F25B +S3150800249400034FF00000186040F27471C2F20001A4 +S315080024A401F016FF38B145F29800C0F600004FF067 +S315080024B47701FFF73FFC5DF804FB00BF40F2687341 +S315080024C4C2F200031868D0F1010038BF0020704733 +S315080024D400B5FFF71BFD012810D040F26873C2F25D +S315080024E400031B6873B9FDF7B3FE01280ED140F249 +S315080024F46873C2F2000318605DF804FB4FF000002D +S315080025045DF804FB4FF000005DF804FB4FF0000093 +S315080025145DF804FB10B50446007802F00DFC532858 +S315080025240DD1607802F000FC60B1607831280CD0D7 +S3150800253432280DD0332814BF0320022010BD4FF0D3 +S31508002544030010BD4FF0030010BD4FF0000010BD8E +S315080025544FF0010010BD00BF70B5044600F102003B +S31508002564FFF746FF0646054604F104042046FFF72E +S315080025743FFF8619F6B205F1FF35ADB204F1020440 +S31508002584012DF3D82046FFF733FF6FEA0606F6B2A5 +S31508002594864214BF0020012070BD00BF2DE9F0411A +S315080025A404460E46174601B138B945F29800C0F6F6 +S315080025B4000040F23121FFF7BDFB2046FFF7AAFFD2 +S315080025C40546032800F0A7802046FFF7C5FF002824 +S315080025D400F0A480012D32D01DB1022D40F0A18057 +S315080025E460E004F10200FFF703FF804604F10400EB +S315080025F4FFF7FEFE4FEA0025356004F10600FFF7F3 +S31508002604F7FE2D183560A8F10306B6B2002F00F0C0 +S315080026148A800FFA86F8B8F1000F40F3848004F133 +S3150800262408044FF000052046FFF7E2FE785504F14A +S31508002634020405F10105ADB24545F4DB73E004F186 +S315080026440200FFF7D5FE804604F10400FFF7D0FE2A +S315080026544FEA0045356004F10600FFF7C9FE05EBAD +S315080026640025356004F10800FFF7C2FE2D18356011 +S31508002674A8F10406B6B2002F55D00FFA86F8B8F1B9 +S31508002684000F50DD04F10A044FF000052046FFF759 +S31508002694AFFE785504F1020405F10105ADB24545CE +S315080026A4F4DB40E004F10200FFF7A2FE804604F1E1 +S315080026B40400FFF79DFE4FEA0065356004F1060045 +S315080026C4FFF796FE05EB0045356004F10800FFF7B1 +S315080026D48FFE05EB0025356004F10A00FFF788FE36 +S315080026E42D183560A8F10506B6B2E7B10FFA86F8D3 +S315080026F4B8F1000F17DD04F10C044FF0000520466D +S31508002704FFF776FE785504F1020405F10105ADB22A +S315080027144545F4DB07E04FF0000604E04FF6FF7684 +S3150800272401E04FF0000630B2BDE8F08170B540F222 +S315080027346873C2F200031B68002B00F04982012B60 +S3150800274443D1FDF7B1FD45F20C10C0F60000FDF7C4 +S3150800275405FE45F23010C0F60000FDF7FFFDFDF753 +S315080027649DFD0146C5484FF0010201F0CBFD50B16D +S3150800277445F25810C0F60000FDF7F0FD4FF00100D1 +S31508002784FDF7DAFD70BD45F26010C0F60000FDF7EE +S31508002794E5FD45F26810C0F60000FDF7DFFD45F2D9 +S315080027A48C10C0F60000FDF7D9FD40F26C73C2F236 +S315080027B400034FF000021A605A6040F26873C2F2CE +S315080027C400034FF002021A6070BD022B40F0048128 +S315080027D440F6CC30C2F2000040F27474C2F200042F +S315080027E404F50D724FF4807102F0F0F994F93A3257 +S315080027F4002B15DA45F25810C0F60000FDF7AEFDB9 +S315080028044FF00200FDF798FD04F50D7002F072F81A +S3150800281440F26873C2F200034FF000021A6070BDFA +S3150800282400284ED040F6CC30C2F2000000F5C07144 +S315080028344FF00002FFF7B2FEB0F1FF3F14D145F2A4 +S315080028445810C0F60000FDF789FD4FF00300FDF7A8 +S3150800285473FD8A4802F04EF840F26873C2F2000328 +S315080028644FF000021A6070BD00282ADD40F26C732E +S31508002874C2F200035B6863B940F26C73C2F20003E8 +S3150800288440F6CC32C2F20002D2F880211A605860AF +S3150800289417E040F6CC32C2F20002D2F8801140F2B8 +S315080028A46C72C2F200021268914204D240F26C724F +S315080028B4C2F20002116040F26C72C2F20002C3183E +S315080028C4536040F27473C2F20003D3F83C22D3F87F +S315080028D440329A4240F07C8168484FF0000102F089 +S315080028E413F8A0B145F25810C0F60000FDF736FDFE +S315080028F44FF00400FDF720FD604801F0FBFF40F2AD +S315080029046873C2F200034FF000021A6070BD45F204 +S315080029146010C0F60000FDF721FD45F2BC10C0F6B4 +S315080029240000FDF71BFD40F26C74C2F200046068F7 +S3150800293440F22875C2F200052946FFF72FFD2846FE +S31508002944FDF70CFD45F2C810C0F60000FDF706FDBC +S31508002954E0782946FFF786FDA07805F10201FFF71E +S3150800296481FD607805F10401FFF77CFD207805F107 +S315080029740601FFF777FD2846FDF7F0FC45F26C20C3 +S31508002984C0F60000FDF7EAFC20686168FEF7B2FDB0 +S31508002994A0B945F25810C0F60000FDF7DFFC4FF069 +S315080029A40500FDF7C9FC354801F0A4FF40F2687339 +S315080029B4C2F200034FF000021A6070BD45F26010BF +S315080029C4C0F60000FDF7CAFC40F26873C2F20003C1 +S315080029D44FF003021A6070BD032B40F0F98040F6ED +S315080029E4CC30C2F2000040F27474C2F2000404F55A +S315080029F40D724FF4807102F0E9F894F93A32002B1B +S31508002A0415DA45F2E410C0F60000FDF7A7FC4FF00E +S31508002A140200FDF791FC04F50D7001F06BFF40F21E +S31508002A246873C2F200034FF000021A6070BD0028F2 +S31508002A3400F0868040F6CC30C2F2000000F5C07182 +S31508002A4400F58072FFF7AAFD0646B0F1FF3F17D1DD +S31508002A5445F20820C0F60000FDF780FC4FF003009D +S31508002A64FDF76AFC054801F045FF40F26873C2F2B7 +S31508002A7400034FF000021A6070BD00BFA8090020C9 +S31508002A8400285DDD45F22C20C0F60000FDF766FC43 +S31508002A9440F22874C2F2000430462146FFF77EFC51 +S31508002AA42046FDF75BFC45F23C20C0F60000FDF726 +S31508002AB455FC40F6CC35C2F2000595F8830121464B +S31508002AC4FFF7D0FC95F8820104F10201FFF7CAFC6E +S31508002AD495F8810104F10401FFF7C4FC95F8800117 +S31508002AE404F10601FFF7BEFC2046FDF737FC45F264 +S31508002AF46C20C0F60000FDF731FCD5F8800105F519 +S31508002B0480723146FEF7F0FCA0B945F25810C0F6BB +S31508002B140000FDF723FC4FF00600FDF70DFC2D48D9 +S31508002B2401F0E8FE40F26873C2F200034FF00002B7 +S31508002B341A6070BD45F26010C0F60000FDF70EFC81 +S31508002B4440F27473C2F20003D3F83C22D3F840323D +S31508002B549A423DD145F25420C0F60000FDF7FEFB2B +S31508002B64FEF7DAFCA0B945F25810C0F60000FDF7E6 +S31508002B74F5FB4FF00700FDF7DFFB164801F0BAFE38 +S31508002B8440F26873C2F200034FF000021A6070BD87 +S31508002B9445F26010C0F60000FDF7E0FB45F2702030 +S31508002BA4C0F60000FDF7DAFB0A4801F0A3FE45F279 +S31508002BB48820C0F60000FDF7D1FB40F26873C2F224 +S31508002BC400034FF000021A60FDF78AFBFEF758FC73 +S31508002BD470BD00BFA80900202AB111F8013B00F80E +S31508002BE4013B013AF9D170471AB100F8011B013AC1 +S31508002BF4FBD17047037833B18B4204D010F8013FF8 +S31508002C040BB18B42FAD11846704700BF0346C87EFB +S31508002C148A7E42EA00201B78032B05D14A7D0B7D68 +S31508002C2443EA022340EA0340704700BF8176C1F3B2 +S31508002C340723C3764FEA114101754FEA11214175FD +S31508002C44704700BF00F10B014FF000034FEA53022F +S31508002C5442EAC31310F8012B9B1803F0FF038842BA +S31508002C64F4D11846704700BF00B590B10368A3B104 +S31508002C741A78B2B1D9888288914216D15878FDF764 +S31508002C844DFF00F00100002814BF032000205DF862 +S31508002C9404FB4FF009005DF804FB4FF009005DF8EA +S31508002CA404FB4FF009005DF804FB4FF009005DF8DA +S31508002CB404FB00BF10B504460A46407804F1340103 +S31508002CC44FF00103FDF736FF00283CD194F8332270 +S31508002CD494F8323243EA022212B24AF65523CFF660 +S31508002CE4FF739A4232D194F86D2094F86C304FEA07 +S31508002CF4034343EA026294F86A30134394F86B2058 +S31508002D0443EA022222F07F4244F24613C0F25403F5 +S31508002D149A421ED094F8890094F888304FEA0343FF +S31508002D2443EA006094F88630034394F8870043EA3C +S31508002D34002020F07F4044F24613C0F25403C01A20 +S31508002D4418BF012010BD4FF0030010BD4FF002005C +S31508002D5410BD4FF0000010BD2DE9F041D5B203684F +S31508002D641A78A2F13002092A00F2DF815C783A2C3B +S31508002D7440F0DB8103F1020303604FF000030B60AC +S31508002D84002A40F0868140F65473C2F200031C6898 +S31508002D94002C00F082810C60237883B16078FDF7FB +S31508002DA4BDFE10F0010F0AD1002D00F07A8100F063 +S31508002DB40400002814BF0A200020BDE8F0814FF063 +S31508002DC4000020706070FDF7F7FC10F0010F40F06A +S31508002DD46C811DB110F0040F40F06B8120464FF052 +S31508002DE40001FFF767FF0346012819D194F8F63165 +S31508002DF4002B00F0628194F8FD2194F8FC314FEA27 +S31508002E04034343EA026294F8FA31134394F8FB51F4 +S31508002E1443EA052520462946FFF74CFF034601E009 +S31508002E244FF00005032B00F04C81002B40F04D8138 +S31508002E3494F8402094F83F3043EA02231BB2B3F5D2 +S31508002E44007F40F0468194F84B0094F84A3053EAE0 +S31508002E5400200ED194F85B2094F85A304FEA0343C5 +S31508002E6443EA026294F85830134394F8590043EA43 +S31508002E740020E06194F84410E17001F1FF33DBB2FD +S31508002E84012B00F22A8194F84130A370002B00F03C +S31508002E94288103F1FF321A4240F0278194F84660EC +S31508002EA494F8452042EA0622228112F00F0F40F0D8 +S31508002EB4208194F8487094F8476056EA07260ED19C +S31508002EC494F8577094F856604FEA064646EA076738 +S31508002ED494F854603E4394F8557046EA072694F8E5 +S31508002EE443C094F8427057EA0C2700F0068101FBA8 +S31508002EF400FC07EB121161448E42C0F00281761A77 +S31508002F04B6FBF3F3002B00F0008140F6F576B342E6 +S31508002F148CBF022601264FF6F578434500F209814F +S31508002F2403F10203A3612562EF1967626918E16276 +S31508002F34032E15D1002A40F0EC8094F8631094F817 +S31508002F4462204FEA024242EA016194F860200A4389 +S31508002F5494F8611042EA0122A2624FEA830311E05F +S31508002F64002A00F0DA806744A762022E02D14FEAEB +S31508002F74430307E04FF0030202FB03F203F00103E5 +S31508002F8403EB520303F5FE7303F10303B0EB532F6C +S31508002F94C0F0C7804FF0FF3323614FF00003E360AE +S31508002FA4032E68D1637194F8652094F8643043EA73 +S31508002FB40222AA186261607804F134014FF0010311 +S31508002FC4FDF7B8FD002856D194F8332294F8323226 +S31508002FD443EA022212B24AF65523CFF6FF739A42FF +S31508002FE449D194F8372094F836304FEA034343EA34 +S31508002FF4026294F83430134394F8352043EA0222E3 +S3150800300445F25223C4F261139A4234D194F81B222E +S3150800301494F81A324FEA034343EA026294F81832E0 +S31508003024134394F8192243EA022247F27223C6F29A +S3150800303441139A421FD194F8232294F822324FEA74 +S31508003044034343EA026294F82032134394F8212294 +S3150800305443EA0223E36094F81F2294F81E324FEAE7 +S31508003064034343EA026294F81C32134394F81D227C +S3150800307443EA022323612670334A138803F10103C2 +S315080030849BB21380E3804FF0000020632071BDE8F3 +S31508003094F0814FF00B00BDE8F0814FF00C00BDE85D +S315080030A4F0814FF00000BDE8F0814FF00300BDE861 +S315080030B4F0814FF00A00BDE8F0814FF00D00BDE83D +S315080030C4F0814FF00100BDE8F0814FF00D00BDE836 +S315080030D4F0814FF00D00BDE8F0814FF00D00BDE81A +S315080030E4F0814FF00D00BDE8F0814FF00D00BDE80A +S315080030F4F0814FF00D00BDE8F0814FF00D00BDE8FA +S31508003104F0814FF00D00BDE8F0814FF00D00BDE8E9 +S31508003114F0814FF00D00BDE8F0814FF00D00BDE8D9 +S31508003124F0814FF00D00BDE8F0814FF000030B600D +S3150800313429E603F10203A3612562EF196762691898 +S31508003144E1624FF00306F5E6500F00202DE9F04141 +S315080031540D4601F109060369002B61D0446994F808 +S315080031640C802378202B1ED0274631464FF00002C8 +S3150800317408F0080C03E017F8013F202B13D0052BA1 +S3150800318408BFE523BCF1000F06D0A3F14106F6B249 +S31508003194192E9CBF2033DBB201F8013B0E4602F11F +S315080031A40102082AE7D1237A202B21D033464FF08F +S315080031B42E0203F8012B227A202A18D004F10801DA +S315080031C406F1040C08F0100703E011F8012F202A71 +S315080031D40ED037B1A2F14106F6B2192E9CBF2032A1 +S315080031E4D2B203F8012B1E466345EED100E01E4613 +S315080031F4E37A2B72E27FA37F4FEA034343EA02632F +S31508003204227F1343627F43EA02232B60627E237E76 +S3150800321443EA0223AB80E27DA37D43EA0223EB80E3 +S315080032244FF000033370AE69002E31D0EB69002BE2 +S315080032342ED00369DBB1028C4FF6FF739A4219D07C +S31508003244C7693888C8B14FF00004A046414601F062 +S3150800325423FDA8B1EB6903F1FF33A34213D9305513 +S3150800326404F1010437F814000028EFD10DE04FF0FB +S3150800327400040AE04FF0000407E04FF0000404E0FD +S315080032844FF0000401E04FF000044FF000033355FB +S31508003294BDE8F0812DE9F04104460379002B29D0D5 +S315080032A4056B00F13407407839462A464FF0010386 +S315080032B4FDF794FC10BB4FF000032371636A9D422B +S315080032C420D3E2699B189D4220D2E678012E21D9A3 +S315080032D44FF00108E369ED18607839462A464346F3 +S315080032E4FDF77CFC06F1FF36012EF3D14FF0000002 +S315080032F4BDE8F0814FF00000BDE8F0814FF0010011 +S31508003304BDE8F0814FF00000BDE8F0814FF0000001 +S31508003314BDE8F0814FF00000BDE8F08130B5044601 +S315080033240D46036B8B420DD0FFF7B4FF68B960787E +S3150800333404F134012A464FF00103FDF7FBFB38B9C3 +S31508003344256330BD4FF0000030BD4FF0010030BD9D +S315080033544FF0010030BD00BFF0B50446FFF79AFFF1 +S31508003364054600285FD12378032B53D16379002BB4 +S3150800337450D04FF00006266304F134073846314628 +S315080033844FF40072FFF730FC4FF0550384F83232DD +S315080033944FF0AA0384F833324FF0520384F83430DA +S315080033A484F835304FF0610384F836304FF0410223 +S315080033B484F837204FF0720184F8181284F8191229 +S315080033C484F81A2284F81B32236984F81C32C3F35E +S315080033D4072284F81D224FEA134284F81E224FEA74 +S315080033E4136384F81F32E36884F82032C3F3072290 +S315080033F484F821224FEA134284F822224FEA1363FF +S3150800340484F823326078626939464FF00103FDF780 +S31508003414E5FB667160784FF000010A46FDF748FC43 +S31508003424002818BF01252846F0BD00BFA1F10201F6 +S315080034348369A3F10203994204D28278C36A02FB20 +S31508003444013070474FF00000704700BFF0B50546DD +S315080034540C46012962D98369994262D20378022B00 +S315080034642DD0032B3DD0012B5ED101EB5106416AC9 +S3150800347401EB5621FFF752FF002858D14FEAC653ED +S315080034844FEAD353EB1893F8347006F10106696AC8 +S3150800349401EB56212846FFF741FF00284AD14FEA97 +S315080034A4C6564FEAD656AD1995F8340047EA0020B1 +S315080034B414F0010F12BF00090005000DF0BD416AA2 +S315080034C401EB1421FFF72AFF002836D14FEA0464DA +S315080034D405EBD45595F8350095F8343043EA0020C1 +S315080034E4F0BD416A01EBD411FFF718FF002827D174 +S315080034F44FEA446405EBD45595F8370095F8363009 +S315080035044FEA034343EA006095F83430034395F8D9 +S31508003514350043EA002020F07040F0BD4FF001006A +S31508003524F0BD4FF00100F0BD4FF0FF30F0BD4FF095 +S31508003534FF30F0BD4FF0FF30F0BD4FF0FF30F0BD67 +S315080035444FF0FF30F0BD00BF70B504468DB2C5809C +S31508003554816801293CD003689A6991423BD279B9BA +S315080035641A78032A01D1996A51B94FF00002E26028 +S315080035741A89AA4232D99B6A03EB151323611CE004 +S315080035849E784FEA0616B54210D32068FFF75EFF09 +S315080035940146B0F1FF3F24D0012825D923689B6949 +S315080035A4984224D2AD1BADB2AE42EED9E160206892 +S315080035B4FFF73CFF00EB15102061236803F1340381 +S315080035C405F00F0503EB451565614FF0000070BD66 +S315080035D44FF0020070BD4FF0020070BD4FF00200BC +S315080035E470BD4FF0010070BD4FF0020070BD4FF082 +S315080035F4020070BDF0B505460C46164601297FD96A +S31508003604836999427FD20378022B42D0032B51D087 +S31508003614012B6FD101EB5107416A01EB5721FFF7E3 +S315080036247DFE002868D14FEAC7534FEAD35314F0F6 +S31508003634010409D0EA1892F8342002F00F02F1B214 +S3150800364442EA0112D2B200E0F2B2EB1883F834204F +S3150800365407F101074FF001032B71696A01EB572142 +S315080036642846FFF75BFE002846D14FEAC7574FEABC +S31508003674D75714B1C6F3071607E0EB1993F8343095 +S3150800368423F00F03C6F303261E43EF1987F83460A5 +S3150800369432E0416A01EB1421FFF740FE60BB4FEAB2 +S315080036A4046405EBD45484F83460C6F3072684F816 +S315080036B4356021E0416A01EBD411FFF72FFED8B932 +S315080036C44FEA446405EBD45494F837304FEA03635D +S315080036D403F070431E4384F83460C6F3072384F862 +S315080036E435304FEA164384F836304FEA166684F8BE +S315080036F4376001E04FF002004FF001032B71F0BD73 +S315080037044FF00200F0BD4FF00200F0BD2DE9F04184 +S315080037140546884631B9C6686EB183699E4228BF94 +S3150800372401260AE0FFF792FE012844D9AB699842BC +S315080037344ED3464601E04FF0010634464FF00207E1 +S3150800374404F10104AB699C4202D3012E37D93C46E5 +S3150800375428462146FFF77AFE38B1B0F1FF3F37D045 +S31508003764012835D0B442EBD12DE026462846214619 +S315080037746FF07042FFF73EFFB0B9B8F1000F05D0FD +S31508003784284641462246FFF735FF68B9EE602B699D +S31508003794B3F1FF3F1BD003F1FF332B614FF0010355 +S315080037A46B712046BDE8F081012814BF01204FF053 +S315080037B4FF30BDE8F0814FF00100BDE8F0814FF01D +S315080037C40000BDE8F0814FF00000BDE8F081204616 +S315080037D4BDE8F0812DE9F04104460D46C68806F198 +S315080037E40106B6B2002E71D00369002B72D016F00A +S315080037F40F0F5ED103F101030361C16821B90368A0 +S315080038041B89B3426AD954E00068837803F1FF330D +S3150800381413EA16134DD1FFF719FE0746012861D995 +S31508003824B0F1FF3F62D0206883699F423BD3002DE5 +S3150800383460D0E168FFF76AFF074600285ED00128D2 +S3150800384460D0B0F1FF3F61D02068FFF723FD002860 +S3150800385460D1206800F134004FF000014FF4007283 +S31508003864FFF7C2F9256828463946FFF7DFFD2863BE +S315080038744FF000054FF001080EE083F80480206835 +S31508003884FFF708FD002849D123681A6B02F10102E3 +S315080038941A6305F10105EDB223689A78AA42ECD8B1 +S315080038A41A6B551B1D63E76020683946FFF7BEFD92 +S315080038B42061E680236803F1340306F00F0603EB60 +S315080038C4461666614FF00000BDE8F0814FF004002B +S315080038D4BDE8F0814FF00400BDE8F0814FF0040024 +S315080038E4BDE8F0814FF00200BDE8F0814FF0010019 +S315080038F4BDE8F0814FF00400BDE8F0814FF0070001 +S31508003904BDE8F0814FF00200BDE8F0814FF00100F8 +S31508003914BDE8F0814FF00100BDE8F0814FF00100E9 +S31508003924BDE8F0812DE9F04F83B004464FF000015D +S31508003934FFF70AFE0546002840F0AD804FF0FF0861 +S31508003944474645F24839C0F6000909F10C0A2068C9 +S315080039542169FFF7E3FC0546002840F09C80666968 +S315080039643378002B00F09580F27AE52B79D002F0B3 +S315080039743F0212F0080F02D00F2A75D101E00F2A70 +S3150800398453D1E569002D7AD013F0400F06D096F886 +S315080039940D80E288228403F0BF0701E09F4266D1C6 +S315080039A496F80DB0C34565D1337823F0400303F187 +S315080039B4FF3303EB430203EB8202019209F1FF385A +S315080039C44FF00102009218F8013FF2185278F35C9E +S315080039D443EA0220009B93B101F08AF90290009011 +S315080039E4019AFE2A1DD835F8120001F081F9029BC6 +S315080039F4834216D1019A02F10102019203E04FF6BD +S31508003A04FF7398420DD1D045DDD1337813F0400FBA +S31508003A1445D0009A002A42D0019A35F81230002B74 +S31508003A243DD0D8464FF0FF0729E027B93046FFF7BF +S31508003A3409F940452FD04FF6FF732384A369DA7A30 +S31508003A4412F0010F19D103F10B0001E0834222D0D1 +S31508003A5416F8011B13F8012B9142F7D04FF0FF0714 +S31508003A640DE04FF0FF070AE04FF0FF0707E04FF0BD +S31508003A74FF0704E04FF0FF0701E04FF0FF07204679 +S31508003A844FF00001FFF7A6FE054600283FF45FAF96 +S31508003A9401E04FF00405284603B0BDE8F08F07F1AE +S31508003AA4FF37FFB2D846EAE72DE9F04F84B08246DD +S31508003AB488460B782F2B01D05C2B01D108F101081D +S31508003AC44FF00003CAF8083098F800301F2B09D8BD +S31508003AD450464FF00001FFF737FD4FF00003CAF8D0 +S31508003AE414305AE145F2B423C0F60003009345F2B4 +S31508003AF4C023C0F6000303934346984613F8012BE4 +S31508003B042F2AFAD05C2AF8D0DAF81CB098F8000004 +S31508003B141F2833D92F2800F043815C2800F04581FB +S31508003B24ABF1020647464FF00104A14625460AE0D2 +S31508003B342F2B00F03F815C2B00F03E81B2F5807F8D +S31508003B4400F01A811546494601F0A6F804460028ED +S31508003B5400F015817F2806D800982146FFF74AF811 +S31508003B64002840F00F8126F8024F17F8013F18463F +S31508003B7405F101021F2BDBD82C4603E04FF00004A5 +S31508003B844FF0010290444FF00407002C00F0FD802A +S31508003B940BEB440232F8023D202B01D02E2B04D124 +S31508003BA4013CF7D14FF00600F7E02646002C00F05A +S31508003BB4EF804FF000052BF81450DAF818004FF090 +S31508003BC420014FF00B02FFF70FF85A4601E005F102 +S31508003BD4010532F8023B202BF9D02E2BF7D00DB174 +S31508003BE447F0030706F1FF360BEB46033BF81620AE +S31508003BF42E2A01D0013C08D14FF0080001904FF05D +S31508003C040009CDF80890264604E033F8022D2E2A3A +S31508003C14F0D1F1E73BF81540002C62D005F1010517 +S31508003C24202C03D02E2C04D1AE4202D047F0030731 +S31508003C34F0E7019A914501D2AE4217D1019B0B2BAD +S31508003C4403D147F0030702994EE0AE4202D047F08B +S31508003C54030748D302984FEA8003DBB2029335463A +S31508003C644FF00B0201924FF00809D3E77F2C11D9C4 +S31508003C7420464FF0000101F00FF8002800F0A1805B +S31508003C8445F2C823C0F600031B1813F8804C47F006 +S31508003C94020724B103982146FEF7ACFF20B147F08A +S31508003CA403074FF05F0415E0A4F141039BB2192BF7 +S31508003CB404D8029B43F0020302930BE0A4F16103C8 +S31508003CC49BB2192B06D8029840F001000290A4F181 +S31508003CD42004A4B2DAF8183003F8094009F10109F6 +S31508003CE498E7029900E00299DAF818301A78E52A72 +S31508003CF404BF05221A70019A082A03D14FEA8101E2 +S31508003D04C9B20291029901F00C030C2B03D001F0FD +S31508003D140302032A01D147F0020717F0020F09D15B +S31508003D2401F00301012908BF47F01007042B08BF57 +S31508003D3447F00807DAF81830DF725046FFF7F2FD45 +S31508003D44DAF81830DB7A38B1042826D103F00403EC +S31508003D54002B08BF052020E013F0040F1DD1DAF864 +S31508003D641410CB7A13F0100F15D0DAF80000FEF70A +S31508003D744DFFCAF80800BFE64FF006000DE04FF005 +S31508003D8406000AE04FF0060007E04FF0060004E0DC +S31508003D944FF0060001E04FF0050004B0BDE8F08FCF +S31508003DA44FF000044FF0010207E04FF000044FF013 +S31508003DB4010202E02C4600E02C4690444FF000072E +S31508003DC4E3E647F002076AE72DE9F0410446C588A9 +S31508003DD4018C4FF6FF73994208BF2946FFF7B4FBD7 +S31508003DE4D0B94FF0E5064FF001074FF000082068F8 +S31508003DF42169FFF793FA60B963691E7023681F7116 +S31508003E04E388AB4208D220464146FFF7E3FC002884 +S31508003E14EDD0042808BF0220BDE8F0812DE9F04F53 +S31508003E2404460F464FF0FF0846464FF0040545F290 +S31508003E344839C0F6000909F10C0A7EE02068FFF744 +S31508003E446DFA054600287DD160690378002B00F0D9 +S31508003E548480C27AE52B5BD02E2B5CD002F03F021D +S31508003E64082A14BF00210121B94257D10F2A46D185 +S31508003E7413F0400F06D090F80D80E288228403F0F0 +S31508003E84BF0601E09E424CD1457B45454CD1D4F84A +S31508003E941CC0037803F03F0303F1FF3303EB43012C +S31508003EA403EB810109F1FF334FF0010E4FF6FF785A +S31508003EB413F8012F00EB020B9BF801B0825C42EA6F +S31508003EC40B22BEF1000F07D0FE2914D82CF81120B6 +S31508003ED401F10101964601E042450CD15345E7D16B +S31508003EE4037813F0400F33D0FE2904D84FF00003AB +S31508003EF42CF811302CE0A8464FF0FF0616E01EB940 +S31508003F04FEF7A0FE404520D04FF6FF7323841CE03D +S31508003F144FF0FF060AE04FF0FF0607E04FF0FF06F2 +S31508003F2404E04FF0FF0601E04FF0FF0620464FF08D +S31508003F340001FFF74FFC054620B9216900297FF4E3 +S31508003F447DAF15B14FF0000323612846BDE8F08F15 +S31508003F5406F1FF36F6B2A846E8E74FF00405F1E79E +S31508003F642DE9F04104460E46012928D98369994268 +S31508003F7429D201E02E4603E04FF000074FF001086E +S31508003F8420463146FFF762FA054600B3012822D0D7 +S31508003F94B0F1FF3F23D0204631463A46FFF72AFBC5 +S31508003FA4F8B92369B3F1FF3F04D003F10103236190 +S31508003FB484F80580A369AB42DCD8BDE8F0814FF0EC +S31508003FC40200BDE8F0814FF00200BDE8F0814FF031 +S31508003FD40000BDE8F0814FF00200BDE8F0814FF023 +S31508003FE40100BDE8F08100BF70B582B005461646EB +S31508003FF49CB24FF00B02FEF7EFFD052C0CD9A6F187 +S3150800400402064FEA540343EAC43436F8023FE41876 +S31508004014A4B27388002BF4D14FF0070204F00F0101 +S3150800402401F13003392B88BF01F137030DF802304B +S3150800403402F1FF322409F1D1144602A98B184FF074 +S315080040447E0103F8081C72B12B78202B0ED0294662 +S315080040544FF0000303F10103A34209D011F8010F3D +S315080040642028F7D104E04FF0000301E04FF00003E5 +S315080040744FF02000072A06D802ACA11811F8081C2C +S3150800408402F1010200E00146E95403F10103072B9A +S31508004094F0D902B070BD00BF2DE9F04F83B00646D3 +S315080040A4D0F81890D0F81C80684649464FF00C02A0 +S315080040B4FEF792FD9DF80B3013F0010F28D04FF050 +S315080040C4000389F80B30F3614FF001073D46484673 +S315080040D4694642463B46FFF787FF3046FFF722FC10 +S315080040E4044648B905F10105ADB207F10107642D87 +S315080040F4EDD14FF00704D2E0642D00F0CE800428F9 +S3150800410440F0CD809DF80B3089F80B30C6F81C803A +S315080041149DF80B3013F0020F19D0B8F800304BB1E4 +S315080041244FF0000303F101039BB238F81320002A69 +S31508004134F8D101E04FF0000303F119034EF64F429C +S31508004144C4F6C46282FB0312C2F38F0901E04FF07E +S315080041540109C84630464FF00001FFF7F5F9044651 +S31508004164002840F09C804FF00005AA464FF001074E +S3150800417430683169FFF7D2F80446002840F08F808A +S3150800418473691B78E52B00D023B905F10105A84509 +S3150800419401D188E0554630463946FFF71BFB0446ED +S315080041A40028E5D07BE0F188C91B89B23046FFF7C1 +S315080041B4CBF90446002872D1B069FEF743FD804660 +S315080041C445F24835C0F6000530683169FFF7A6F8A8 +S315080041D40446002863D1D6F81CC071695FFA87FAC9 +S315080041E481F80D804FF00F03CB724FF000020A736B +S315080041F48A76CA760AF1FF3303EB430003EB8000A1 +S3150800420413464FF6FF7E4FF0FF09734550D03CF82E +S31508004214103000F10100545D0B550C194FEA132BAD +S3150800422484F801B0002B08BF734602F101020D2A77 +S31508004234EBD14FF6FF72934202D03CF810300BB91B +S315080042444AF0400A81F800A033684FF001021A7157 +S3150800425430464FF00001FFF7BDFA0446F8B907F1F6 +S31508004264FF37BFB2002FAFD129E070694FF00001C4 +S315080042744FF02002FEF7B8FC7069B1694FF00B02E3 +S31508004284FEF7AAFC7369B269D27A02F018021A73A5 +S3150800429433684FF001021A7101E04FF00704204613 +S315080042A403B0BDE8F08F09F1FF37BFB23FB17AE733 +S315080042B4545D01F804900C1984F80190B5E7306848 +S315080042C43169FFF72BF804460028E8D1CDE700BF8B +S315080042D4C0B2A0B940F65473C2F200031B6813B106 +S315080042E44FF000021A7011B14FF000030B7040F63C +S315080042F45473C2F2000319604FF0000070474FF080 +S315080043040B0070472DE9F0438DB004460091D2B2F4 +S31508004314002800F0A4804FF00003036002F01F0693 +S31508004324B04606F0FE02684604A9FEF715FD0546E2 +S31508004334002840F0968001AB0A9340F65053C2F227 +S3150800434400030B9304A80099FFF7AEFB099F10B965 +S31508004354002F08BF062018F01C0F4DD050B10428B2 +S315080043647BD104A8FFF798FE099F002875D146F06B +S31508004374080606E0FB7A13F0110F76D118F0040F3D +S3150800438476D116F0080F7CD0FCF71AFEB873C0F382 +S315080043940723FB734FEA10433B744FEA10607874A3 +S315080043A44FF0000887F80B8087F81C8087F81D8073 +S315080043B487F81E8087F81F8004983946FEF726FC7E +S315080043C4814638464146FEF731FC04984FF001030E +S315080043D40371B9F1000F54D0D0F830804946FFF77D +S315080043E4BFFD002839D1049809F1FF33C36041465B +S315080043F4FEF794FF68B130E000282ED1FB7A13F05B +S31508004404100F38D118F0020F3BD013F0010F35D135 +S3150800441437E046F02006DDF81080D8F83030E3613E +S315080044242762A67140463946FEF7F0FB2061FA7FFB +S31508004434BB7F4FEA034343EA02633A7F13437A7F17 +S3150800444443EA0223E3604FF00003A360A361C4F8C0 +S315080044540080B8F80630A38003E0054601E04FF073 +S31508004464090528460DB0BDE8F0834FF00700F4E7C8 +S315080044744FF00800F1E74FF00400EEE74FF00700AD +S31508004484EBE716F0080FC6D0C3E700BF2DE9F04FD7 +S3150800449482B00446894615461E464FF0000333602B +S315080044A4FEF7E2FB0746002840F0CB80A37913F019 +S315080044B4800F40F0C18013F0010F00F0C080E2685D +S315080044C4A368C3EB0208454538BFA846B8F1000FF0 +S315080044D400F0B78004F1240300930190A2684FEA20 +S315080044E4C2534FEAD353002B40F08880206885785E +S315080044F405F1FF3505EA5225EDB2CDB90AB92069A9 +S3150800450402E06169FEF7A2FF012806D8A37963F0E1 +S315080045147F03A3714FF0020793E0B0F1FF3F06D182 +S31508004524A37963F07F03A3714FF0010789E0606103 +S31508004534276861693846FEF779FF30B9A37963F0CD +S315080045447F03A3714FF002077BE000EB050A5FEADD +S31508004554582B28D0BB780BEB05029A4288BFC5EBCB +S31508004564030B78785FFA8BF349465246FCF7E2FA6E +S3150800457430B1A37963F07F03A3714FF0010760E0BC +S31508004584A37913F0400F0BD0A369CAEB030AD345EA +S3150800459406D909EB4A2000994FF40072FEF71CFB72 +S315080045A44FEA4B253BE0A269524525D0A37913F07F +S315080045B4400F11D0787800994FF00103FCF70EFBF1 +S315080045C430B1A37963F07F03A3714FF0010738E094 +S315080045D4A37923F04003A3712368587800995246B7 +S315080045E44FF00103FCF7A6FA30B1A37963F07F0311 +S315080045F4A3714FF0010724E0C4F818A0A1684FEA94 +S31508004604C1514FEAD151C1F50075A84538BF454691 +S3150800461401F12401611848462A46FEF7DDFAA94441 +S31508004624A3685B19A36033685B193360B8EB0508A4 +S315080046347FF454AF019F04E04FF0020701E04FF006 +S315080046440707384602B0BDE8F08F00BF2DE9F04FE2 +S3150800465482B00446894617461E464FF00003336067 +S31508004664FEF702FB8046002840F0EB80A37913F09E +S31508004674800F40F0E18013F0020F00F0E080E36859 +S31508004684DF4280F0CF80002F00F0CC8004F12403B1 +S3150800469400930190A2684FEAC2534FEAD353002B02 +S315080046A440F09C802068857805F1FF3505EA522597 +S315080046B4EDB225BB42B923696BB94FF00001FFF788 +S315080046C425F80346206103E06169FFF71FF80346EE +S315080046D4002B00F0A580012B06D1A37963F07F0394 +S315080046E4A3714FF00208ACE0B3F1FF3F06D1A379FA +S315080046F463F07F03A3714FF00108A2E06361A37915 +S3150800470413F0400F13D023685878A26900994FF024 +S315080047140103FCF763FA30B1A37963F07F03A3714D +S315080047244FF001088DE0A37923F04003A371D4F870 +S31508004734008061694046FEF779FE30B9A37963F0D3 +S315080047447F03A3714FF002087BE000EB050A5FEADA +S31508004754572B2AD098F802300BEB05029A4288BFE9 +S31508004764C5EB030B98F801005FFA8BF349465246EA +S31508004774FCF734FA30B1A37963F07F03A3714FF0E1 +S3150800478401085EE0A369CAEB030AD3450AD909EB13 +S315080047944A2100984FF40072FEF71EFAA37923F013 +S315080047A44003A3714FEA4B252DE0A369534513D063 +S315080047B4A268E3689A420FD298F801000099524613 +S315080047C44FF00103FCF7B6F930B1A37963F07F0320 +S315080047D4A3714FF0010834E0C4F818A0A0684FEAA2 +S315080047E4C0504FEAD050C0F50075AF4238BF3D46B9 +S315080047F400F12400201849462A46FEF7EDF9A37964 +S3150800480443F04003A371A944A3685B19A360336802 +S315080048145B1933607F1B7FF43DAFDDF8048001E04C +S31508004824DDF80480A368E268934288BFE360A3794D +S3150800483443F02003A37104E04FF0020801E04FF0AF +S315080048440708404602B0BDE8F08F00BF30B50446FD +S31508004854FEF70AFA00284CD1A37913F0200F48D0A2 +S3150800486413F0400F0ED0214651F8243B5878A2691C +S315080048744FF00103FCF7B2F9002838D1A37923F0E5 +S315080048844003A3712068E169FEF748FD002830D18A +S31508004894256AEB7A43F02003EB72E3682B77A38946 +S315080048A44FEA13236B77E389AB77E37BEB772169CD +S315080048B42846FEF7BBF9FCF783FBA875C0F3072364 +S315080048C4EB754FEA10432B764FEA106068764FF083 +S315080048D40003AB74EB74A37923F02003A371236854 +S315080048E44FF001021A712068FEF736FD30BD4FF00D +S315080048F4010030BD10B50446FFF7A8FF10B94FF004 +S315080049040003236010BD00BFF0B504460D46FEF74C +S31508004914ABF90646002840F0D080A37913F0800F3F +S3150800492440F0C980E268AA4204D203F00203002BCD +S3150800493408BF1546A2684FF00003A360002D00F0D7 +S31508004944BC80206887784FEA472782B102F1FF3294 +S3150800495405F1FF31B1FBF7F1B2FBF7F3994206D340 +S31508004964C7F100031A40A260AD1A616919E021690A +S31508004974B1B9FEF7CBFE0146012806D1A37963F047 +S315080049847F03A3714FF0020697E0B0F1FF3F06D10B +S31508004994A37963F07F03A3714FF001068DE02061CC +S315080049A46161002945D0BD422DD9A37913F0020FC0 +S315080049B405D02068FEF7AAFE014620B922E0206841 +S315080049C4FEF744FD0146B1F1FF3F06D1A37963F032 +S315080049D47F03A3714FF001066FE0012903D9236809 +S315080049E49B69994206D3A37963F07F03A3714FF0B9 +S315080049F4020662E06161A368DB19A360ED1BAF429E +S31508004A04D3D300E03D46A3685B19A3604FEAC553B8 +S31508004A144FEAD35383B12068FEF708FD30B9A3796A +S31508004A2463F07F03A3714FF0020646E000EB5525B9 +S31508004A3404E04FF0000501E04FF00005A3684FEAD3 +S31508004A44C3534FEAD35363B3A269AA4229D0A379BD +S31508004A5413F0400F13D0214651F8243B58784FF0F1 +S31508004A640103FCF7BBF830B1A37963F07F03A371A4 +S31508004A744FF0010621E0A37923F04003A3712146F0 +S31508004A8451F8243B58782A464FF00103FCF752F8AC +S31508004A9430B1A37963F07F03A3714FF001060CE0EC +S31508004AA4A561A368E268934207D9E360A37943F052 +S31508004AB42003A37101E04FF002063046F0BD00BFA3 +S31508004AC430B58DB00DAB43F8340D0D46684604A9D0 +S31508004AD44FF00002FEF740F90446A8B901AB0A9361 +S31508004AE440F65053C2F200030B9304A80099FEF74C +S31508004AF4DBFF044640B9099B23B104A82946FEF7FF +S31508004B0425FB01E04FF0060420460DB030BD00BF7A +S31508004B1430B596B016AB43F8580D68460DA94FF054 +S31508004B240102FEF719F900283CD101AB139340F6AC +S31508004B345053C2F2000314930DA80099FEF7B4FF6C +S31508004B4400282FD1129931B1CC7A14F0010F2BD049 +S31508004B544FF0070026E04FF0060023E0012D2BD97D +S31508004B6404A80DA94FF02402FEF736F8069504A802 +S31508004B744FF00201FEF7E8FCA0B904A84FF00001C3 +S31508004B84FFF74CF910B1042819D00BE04FF00700D1 +S31508004B9408E025B10D982946FFF7E2F910B90D98F2 +S31508004BA4FEF7DAFB16B030BD0D98FEF72FF805466A +S31508004BB414F0100FD2D102E04FF00200F2E70DA86C +S31508004BC4FFF702F90028E4D0ECE700BF2DE9F0432B +S31508004BD482B08146904604464FF0000501F1FF373E +S31508004BE415E0404601A94FF001026B46FFF74EFC5B +S31508004BF4009B012B0ED19DF804300D2B08D0337081 +S31508004C0404F10104264605F101050A2B02D02646BD +S31508004C14AF42E6DC4FF0000333709D4208BF994665 +S31508004C24484602B0BDE8F08330B582B00D46C4B23A +S31508004C340A2C03D14FF00D00FFF7F6FF02A901F87D +S31508004C44084D284669464FF0010201ABFFF7FEFC02 +S31508004C540198012814BF4FF0FF30012002B030BD7F +S31508004C6470B505460E46007870B14FF0000431461B +S31508004C74FFF7DAFFB0F1FF3F09D004F1010415F894 +S31508004C84010F0028F3D104E04FF0000401E04FF0CF +S31508004C94FF34204670BD00BF80B27F2826D911B9DB +S31508004CA4C7280BD11AE0FF281ED845F21873C0F698 +S31508004CB40003A0F1800033F81000704745F218721B +S31508004CC4C0F600024FF0010332F8021F814207D0F2 +S31508004CD403F101039BB2802BF6D101E04FF00003E8 +S31508004CE403F18000C0B270474FF00000704700BF60 +S31508004CF480B261280ED045F23851C0F600014FF053 +S31508004D04000202F1010231F8023F5BB18342F8D195 +S31508004D1413B970474FF0000245F25833C0F6000342 +S31508004D2433F81200704700BFA0F1300009288CBF81 +S31508004D3400200120704700BFA0F16103DBB2192BE4 +S31508004D4498BF2038704700BF30B504460D4600F0BA +S31508004D5417F840F65873C2F200031D6040F65C73F8 +S31508004D64C2F200031C601A461368002BFCD100F03B +S31508004D7409F840F65873C2F20003186830BD00BF3C +S30D08004D84704700BF704700BF2D +S31508004D8C2F64656D6F70726F675F6F6C696D657890 +S31508004D9C5F73746D3332703130332E737265630002 +S31508004DAC2F626F6F746C6F672E7478740000000036 +S31508004DBC433A2F576F726B2F736F667477617265F0 +S31508004DCC2F4F70656E424C542F5461726765742F61 +S31508004DDC44656D6F2F41524D434D335F53544D33DC +S31508004DEC325F4F6C696D65785F53544D3332503171 +S31508004DFC30335F43726F7373776F726B732F426FB7 +S31508004E0C6F742F6964652F2E2E2F6D61696E2E6354 +S31508004E1C00000000433A2F576F726B2F736F66743E +S31508004E2C776172652F4F70656E424C542F546172C0 +S31508004E3C6765742F44656D6F2F41524D434D335F33 +S31508004E4C53544D33325F4F6C696D65785F53544DCF +S31508004E5C3332503130335F43726F7373776F726BC3 +S31508004E6C732F426F6F742F6964652F2E2E2F2E2E7B +S31508004E7C2F2E2E2F2E2E2F536F757263652F4152A0 +S31508004E8C4D434D335F53544D33322F43726F737307 +S31508004E9C776F726B732F766563746F72732E6300FC +S31508004EAC433A2F576F726B2F736F667477617265FF +S31508004EBC2F4F70656E424C542F5461726765742F70 +S31508004ECC44656D6F2F41524D434D335F53544D33EB +S31508004EDC325F4F6C696D65785F53544D3332503180 +S31508004EEC30335F43726F7373776F726B732F426FC6 +S31508004EFC6F742F6964652F2E2E2F2E2E2F2E2E2F84 +S31508004F0C2E2E2F536F757263652F41524D434D33B9 +S31508004F1C5F53544D33322F63616E2E6300000000CD +S31508004F2C0502000006020000060300000703000045 +S31508004F3C0803000009030000090400000A04000025 +S31508004F4C0B0400000C0400000C0500000D05000005 +S31508004F5C0E0500000F0500000F06000010060000E5 +S31508004F6C1007000010080000433A2F576F726B2F7A +S31508004F7C736F6674776172652F4F70656E424C5409 +S31508004F8C2F5461726765742F44656D6F2F41524DAE +S31508004F9C434D335F53544D33325F4F6C696D6578AF +S31508004FAC5F53544D3332503130335F43726F7373E2 +S31508004FBC776F726B732F426F6F742F6964652F2E20 +S31508004FCC2E2F2E2E2F2E2E2F2E2E2F536F757263BD +S31508004FDC652F41524D434D335F53544D33322F7524 +S31508004FEC6172742E63000000006000080020000047 +S31508004FFC03000000008000080020000004000000E8 +S3150800500C00A00008002000000500000000C00008F1 +S3150800501C002000000600000000E000080020000048 +S3150800502C070000000000010800200000080000002E +S3150800503C00200108002000000900000000400108BB +S3150800504C002000000A000000006001080020000093 +S3150800505C0B00000000800108002000000C00000076 +S3150800506C00A00108002000000D00000000C0010887 +S3150800507C002000000E00000000E0010800200000DF +S3150800508C0F0000004F70656E424C5400433A2F5780 +S3150800509C6F726B2F736F6674776172652F4F7065BD +S315080050AC6E424C542F5461726765742F44656D6F4C +S315080050BC2F41524D434D335F53544D33325F4F6C32 +S315080050CC696D65785F53544D3332503130335F43D5 +S315080050DC726F7373776F726B732F426F6F742F695E +S315080050EC64652F2E2E2F2E2E2F2E2E2F2E2E2F532F +S315080050FC6F757263652F66696C652E630000000018 +S3150800510C4669726D77617265207570646174652085 +S3150800511C726571756573742064657465637465640A +S3150800512C0A0D00004F70656E696E67206669726DB0 +S3150800513C776172652066696C6520666F7220726588 +S3150800514C6164696E672E2E2E000000004552524F80 +S3150800515C520A0D004F4B0A0D000000005374617281 +S3150800516C74696E67207468652070726F6772616DFA +S3150800517C6D696E672073657175656E63650A0D00DA +S3150800518C50617273696E67206669726D77617265B4 +S3150800519C2066696C6520746F206F627461696E2075 +S315080051AC65726173652073697A652E2E2E00000070 +S315080051BC45726173696E672000000000206279747D +S315080051CC65732066726F6D206D656D6F72792061DF +S315080051DC742030780000000052656164696E67209F +S315080051EC6C696E652066726F6D2066696C652E2E0D +S315080051FC2E4552524F520A0D00000000496E766138 +S3150800520C6C696420636865636B73756D20666F756E +S3150800521C6E642E2E2E4552524F520A0D0000000077 +S3150800522C50726F6772616D6D696E672000000000C1 +S3150800523C20627974657320746F206D656D6F727951 +S3150800524C206174203078000057726974696E672083 +S3150800525C70726F6772616D20636865636B73756DC9 +S3150800526C2E2E2E00436C6F73696E67206669726DFD +S3150800527C776172652066696C650A0D004669726D00 +S3150800528C77617265207570646174652073756363E4 +S3150800529C65737366756C6C7920636F6D706C657469 +S315080052AC65640A0D00000000222A3A3C3E3F7C7FCA +S315080052BC000000002B2C3B3D5B5D0000809A904162 +S315080052CC8E418F804545454949498E8F9092924F1C +S315080052DC994F555559999A9B9C9D9E9F41494F5557 +S315080052ECA5A5A6A7A8A9AAABAC21AEAFB0B1B2B377 +S315080052FCB4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3DC +S3150800530CC4C5C6C7C8C9CACBCCCDCECFD0D1D2D3CB +S3150800531CD4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3BB +S3150800532CE4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3AB +S3150800533CF4F5F6F7F8F9FAFBFCFDFEFF0103050791 +S3150800534C090E10121416181C1E000000410042000B +S3150800535C43004400450046004700480049004A00FF +S3150800536C4B004C004D004E004F00500051005200AF +S3150800537C53005400550056005700580059005A005F +S3150800538C2100E0FFE1FFE5FFE2FFE3FFC000C100FB +S3150800539CC200C300C400C500C600C700C800C900C7 +S315080053ACCA00CB00CC00CD00CE00CF00D000D10077 +S315080053BCD200D300D400D500D600D800D900DA0024 +S315080053CCDB00DC00DD00DE007801000102010401CF +S315080053DC060108010A010C010E0110011201140143 +S315080053EC160118011A011C011E01200122012401B3 +S315080053FC260128012A012C012E0130013201340123 +S3150800540C360139013B013D013F014101430145018B +S3150800541C47014A014C014E015001520154015601F3 +S3150800542C58015A015C015E01600162016401660162 +S3150800543C68016A016C016E017001720174017601D2 +S3150800544C79017B017D0191019103920393039403E6 +S3150800545C950396039703980399039A039B039C0356 +S3150800546C9D039E039F03A003A103A303A403A50303 +S3150800547CA603A703A803A903AA031004110412047C +S3150800548C13041404150416041704180419041A042E +S3150800549C1B041C041D041E041F04200421042204DE +S315080054AC23042404250426042704280429042A048E +S315080054BC2B042C042D042E042F04010402040304CB +S315080054CC0404050406040704080409040A040B0466 +S315080054DC0C040E040F0460216121622163216421EE +S315080054EC652166216721682169216A216B216C2156 +S315080054FC6D216E216F2121FF22FF23FF24FF25FF3B +S3150800550C26FF27FF28FF29FF2AFF2BFF2CFF2DFF3D +S3150800551C2EFF2FFF30FF31FF32FF33FF34FF35FFED +S3150800552C36FF37FF38FF39FF3AFF0000610062008B +S3150800553C63006400650066006700680069006A001D +S3150800554C6B006C006D006E006F00700071007200CD +S3150800555C73007400750076007700780079007A007D +S3150800556CA100A200A300A500AC00AF00E000E1007A +S3150800557CE200E300E400E500E600E700E800E900E5 +S3150800558CEA00EB00EC00ED00EE00EF00F000F10095 +S3150800559CF200F300F400F500F600F800F900FA0042 +S315080055ACFB00FC00FD00FE00FF00010103010501E4 +S315080055BC070109010B010D010F0111011301150159 +S315080055CC170119011B011D011F01210123012501C9 +S315080055DC270129012B012D012F0131013301350139 +S315080055EC37013A013C013E014001420144014601A2 +S315080055FC48014B014D014F0151015301550157010A +S3150800560C59015B015D015F01610163016501670178 +S3150800561C69016B016D016F017101730175017701E8 +S3150800562C7A017C017E019201B103B203B303B40380 +S3150800563CB503B603B703B803B903BA03BB03BC0374 +S3150800564CBD03BE03BF03C003C103C303C403C50321 +S3150800565CC603C703C803C903CA033004310432049A +S3150800566C33043404350436043704380439043A044C +S3150800567C3B043C043D043E043F04400441044204FC +S3150800568C43044404450446044704480449044A04AC +S3150800569C4B044C044D044E044F0451045204530459 +S315080056AC5404550456045704580459045A045B0404 +S315080056BC5C045E045F0470217121722173217421CC +S315080056CC752176217721782179217A217B217C21F4 +S315080056DC7D217E217F2141FF42FF43FF44FF45FF89 +S315080056EC46FF47FF48FF49FF4AFF4BFF4CFF4DFF5C +S315080056FC4EFF4FFF50FF51FF52FF53FF54FF55FF0C +S3150800570C56FF57FF58FF59FF5AFF0000C700FC0009 +S3150800571CE900E200E400E000E500E700EA00EB003F +S3150800572CE800EF00EE00EC00C400C500C900E60076 +S3150800573CC600F400F600F200FB00F900FF00D600E4 +S3150800574CDC00A200A300A500A7209201E100ED0051 +S3150800575CF300FA00F100D100AA00BA00BF0010232A +S3150800576CAC00BD00BC00A100AB00BB009125922586 +S3150800577C932502252425612562255625552563255D +S3150800578C512557255D255C255B25102514253425C3 +S3150800579C2C251C2500253C255E255F255A255425D8 +S315080057AC69256625602550256C2567256825642599 +S315080057BC652559255825522553256B256A251825FF +S315080057CC0C25882584258C2590258025B103DF009A +S315080057DC9303C003A303C303B500C403A60398032A +S315080057ECA903B4031E22C603B50329226122B100FC +S315080057FC6522642220232123F7004822B0001922AF +S3110800580CB7001A227F20B200A025A000D9 +S30D08005818010000000400000075 S70508000151A0 diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/hooks.c b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/hooks.c index 57e94ead..509d32d4 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/hooks.c +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/hooks.c @@ -316,13 +316,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/ide/stm32f103_crossworks.hzs b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/ide/stm32f103_crossworks.hzs index 085a1612..6730474c 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/ide/stm32f103_crossworks.hzs +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Crossworks/Boot/ide/stm32f103_crossworks.hzs @@ -21,8 +21,6 @@ - - @@ -42,9 +40,9 @@ - - + + @@ -57,8 +55,8 @@ - - + + - + diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.elf b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.elf index db1a06a7..20228b0d 100644 Binary files a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.elf and b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.elf differ diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.map b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.map index 3e758dc4..968b5a00 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.map +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.map @@ -7,38 +7,38 @@ start address 0x08000000 Program Header: LOAD off 0x00008000 vaddr 0x08000000 paddr 0x08000000 align 2**15 - filesz 0x00005080 memsz 0x00005080 flags r-x - LOAD off 0x00010000 vaddr 0x20000000 paddr 0x08005080 align 2**15 + filesz 0x00005090 memsz 0x00005090 flags r-x + LOAD off 0x00010000 vaddr 0x20000000 paddr 0x08005090 align 2**15 filesz 0x00000008 memsz 0x0000115c flags rw- private flags = 5000202: [Version5 EABI] [soft-float ABI] [has entry point] Sections: Idx Name Size VMA LMA File off Algn - 0 .text 00005080 08000000 08000000 00008000 2**2 + 0 .text 00005090 08000000 08000000 00008000 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 1 .data 00000008 20000000 08005080 00010000 2**2 + 1 .data 00000008 20000000 08005090 00010000 2**2 CONTENTS, ALLOC, LOAD, DATA - 2 .bss 00001154 20000008 08005088 00010008 2**2 + 2 .bss 00001154 20000008 08005098 00010008 2**2 ALLOC - 3 .debug_info 0000b06d 00000000 00000000 00010008 2**0 + 3 .debug_info 0000b0a1 00000000 00000000 00010008 2**0 CONTENTS, READONLY, DEBUGGING - 4 .debug_abbrev 000024e9 00000000 00000000 0001b075 2**0 + 4 .debug_abbrev 000024f8 00000000 00000000 0001b0a9 2**0 CONTENTS, READONLY, DEBUGGING - 5 .debug_loc 00008fea 00000000 00000000 0001d55e 2**0 + 5 .debug_loc 00009048 00000000 00000000 0001d5a1 2**0 CONTENTS, READONLY, DEBUGGING - 6 .debug_aranges 00000980 00000000 00000000 00026548 2**0 + 6 .debug_aranges 00000980 00000000 00000000 000265e9 2**0 CONTENTS, READONLY, DEBUGGING - 7 .debug_ranges 00000900 00000000 00000000 00026ec8 2**0 + 7 .debug_ranges 00000900 00000000 00000000 00026f69 2**0 CONTENTS, READONLY, DEBUGGING - 8 .debug_line 0000352e 00000000 00000000 000277c8 2**0 + 8 .debug_line 000035af 00000000 00000000 00027869 2**0 CONTENTS, READONLY, DEBUGGING - 9 .debug_str 00002641 00000000 00000000 0002acf6 2**0 + 9 .debug_str 0000264d 00000000 00000000 0002ae18 2**0 CONTENTS, READONLY, DEBUGGING - 10 .comment 00000030 00000000 00000000 0002d337 2**0 + 10 .comment 00000030 00000000 00000000 0002d465 2**0 CONTENTS, READONLY - 11 .ARM.attributes 00000033 00000000 00000000 0002d367 2**0 + 11 .ARM.attributes 00000033 00000000 00000000 0002d495 2**0 CONTENTS, READONLY - 12 .debug_frame 000017f0 00000000 00000000 0002d39c 2**2 + 12 .debug_frame 000017f0 00000000 00000000 0002d4c8 2**2 CONTENTS, READONLY, DEBUGGING SYMBOL TABLE: 08000000 l d .text 00000000 .text @@ -56,17 +56,17 @@ SYMBOL TABLE: 00000000 l d .debug_frame 00000000 .debug_frame 00000000 l df *ABS* 00000000 vectors.c 00000000 l df *ABS* 00000000 hooks.c -080046e4 l O .text 00000020 firmwareFilename +080046f4 l O .text 00000020 firmwareFilename 20000008 l O .bss 00000228 logfile 00000000 l df *ABS* 00000000 main.c 00000000 l df *ABS* 00000000 mmc.c -0800044c l F .text 00000036 xchg_spi -08000484 l F .text 0000002a wait_ready -080004b0 l F .text 0000001a deselect -080004cc l F .text 0000002c select -080004f8 l F .text 00000090 send_cmd -08000588 l F .text 0000005c xmit_datablock -080005e4 l F .text 0000005e rcvr_datablock +0800045c l F .text 00000036 xchg_spi +08000494 l F .text 0000002a wait_ready +080004c0 l F .text 0000001a deselect +080004dc l F .text 0000002c select +08000508 l F .text 00000090 send_cmd +08000598 l F .text 0000005c xmit_datablock +080005f4 l F .text 0000005e rcvr_datablock 20000230 l O .bss 00000004 CardType 20000000 l O .data 00000001 Stat 00000000 l df *ABS* 00000000 stm32f10x_gpio.c @@ -74,51 +74,51 @@ SYMBOL TABLE: 00000000 l df *ABS* 00000000 stm32f10x_spi.c 00000000 l df *ABS* 00000000 stm32f10x_usart.c 00000000 l df *ABS* 00000000 ff.c -08000f24 l F .text 00000012 mem_cpy -08000f38 l F .text 0000001e ld_clust -08000f58 l F .text 0000001e sum_sfn -08000f78 l F .text 00000096 check_fs -08001010 l F .text 00000076 sync_window -08001088 l F .text 00000032 move_window -080010bc l F .text 00000038 validate -080010f4 l F .text 00000394 chk_mounted -08001488 l F .text 0000012c get_fileinfo -080015b4 l F .text 000000bc sync_fs -08001774 l F .text 00000098 dir_sdi -0800191c l F .text 000000cc create_chain -080019e8 l F .text 0000012a dir_next -08001b14 l F .text 000001a2 dir_find -08001cb8 l F .text 00000332 follow_path -08001fec l F .text 00000130 dir_read -0800211c l F .text 00000058 dir_remove -08002174 l F .text 0000006e remove_chain -0800227c l F .text 00000236 dir_register +08000f34 l F .text 00000012 mem_cpy +08000f48 l F .text 0000001e ld_clust +08000f68 l F .text 0000001e sum_sfn +08000f88 l F .text 00000096 check_fs +08001020 l F .text 00000076 sync_window +08001098 l F .text 00000032 move_window +080010cc l F .text 00000038 validate +08001104 l F .text 00000394 chk_mounted +08001498 l F .text 0000012c get_fileinfo +080015c4 l F .text 000000bc sync_fs +08001784 l F .text 00000098 dir_sdi +0800192c l F .text 000000cc create_chain +080019f8 l F .text 0000012a dir_next +08001b24 l F .text 000001a2 dir_find +08001cc8 l F .text 00000332 follow_path +08001ffc l F .text 00000130 dir_read +0800212c l F .text 00000058 dir_remove +08002184 l F .text 0000006e remove_chain +0800228c l F .text 00000236 dir_register 20000234 l O .bss 00000200 LfnBuf 20000434 l O .bss 00000002 Fsid -08004730 l O .text 00000080 ExCvt -080047b0 l O .text 0000000d LfnOfs +08004740 l O .text 00000080 ExCvt +080047c0 l O .text 0000000d LfnOfs 20000438 l O .bss 00000004 FatFs 00000000 l df *ABS* 00000000 unicode.c -080047c0 l O .text 000001e0 tbl_lower.4259 -080049a0 l O .text 00000100 Tbl -08004aa0 l O .text 000001e0 tbl_upper.4260 +080047d0 l O .text 000001e0 tbl_lower.4259 +080049b0 l O .text 00000100 Tbl +08004ab0 l O .text 000001e0 tbl_upper.4260 00000000 l df *ABS* 00000000 boot.c 00000000 l df *ABS* 00000000 com.c 2000043c l O .bss 00000040 xcpCtoReqPacket.4380 20000001 l O .data 00000001 comActiveInterface 00000000 l df *ABS* 00000000 xcp.c -08002f88 l F .text 00000016 XcpSetCtoError -08004c80 l O .text 00000008 xcpStationId +08002f98 l F .text 00000016 XcpSetCtoError +08004c90 l O .text 00000008 xcpStationId 2000047c l O .bss 0000004c xcpInfo 00000000 l df *ABS* 00000000 backdoor.c 200004c8 l O .bss 00000001 backdoorOpen 200004cc l O .bss 00000004 backdoorOpenTime 00000000 l df *ABS* 00000000 cop.c 00000000 l df *ABS* 00000000 file.c -080033dc l F .text 0000002e FileLibByteNibbleToChar -0800340c l F .text 00000020 FileLibByteToHexString -0800342c l F .text 00000046 FileLibLongToIntString -08003474 l F .text 00000066 FileLibHexStringToByte +080033ec l F .text 0000002e FileLibByteNibbleToChar +0800341c l F .text 00000020 FileLibByteToHexString +0800343c l F .text 00000046 FileLibLongToIntString +08003484 l F .text 00000066 FileLibHexStringToByte 200004d0 l O .bss 00000040 loggingStr 20000510 l O .bss 00000001 firmwareUpdateState 20000514 l O .bss 00000008 eraseInfo @@ -129,9 +129,9 @@ SYMBOL TABLE: 20000afc l O .bss 00000004 assert_failure_line 00000000 l df *ABS* 00000000 cpu.c 00000000 l df *ABS* 00000000 can.c -08004e6c l O .text 00000024 canTiming +08004e7c l O .text 00000024 canTiming 00000000 l df *ABS* 00000000 uart.c -08003ed4 l F .text 0000004e UartTransmitByte +08003ee4 l F .text 0000004e UartTransmitByte 20000b00 l O .bss 00000001 xcpCtoRxInProgress.4398 20000b04 l O .bss 00000004 xcpCtoRxStartTime.4399 20000b08 l O .bss 00000041 xcpCtoReqPacket.4396 @@ -140,124 +140,124 @@ SYMBOL TABLE: 00000000 l df *ABS* 00000000 timer.c 20000b50 l O .bss 00000004 millisecond_counter 00000000 l df *ABS* 00000000 flash.c -0800415c l F .text 00000012 FlashLock -08004170 l F .text 00000044 FlashGetSector -080041b4 l F .text 000000d0 FlashWriteBlock -08004284 l F .text 00000062 FlashSwitchBlock -080042e8 l F .text 00000084 FlashAddToBlock -08004eb4 l O .text 0000009c flashLayout +0800416c l F .text 00000012 FlashLock +08004180 l F .text 00000044 FlashGetSector +080041c4 l F .text 000000d0 FlashWriteBlock +08004294 l F .text 00000062 FlashSwitchBlock +080042f8 l F .text 00000084 FlashAddToBlock +08004ec4 l O .text 0000009c flashLayout 20000b54 l O .bss 00000204 bootBlockInfo 20000d58 l O .bss 00000204 blockInfo 00000000 l df *ABS* 00000000 cstart.c -080046c6 l F .text 00000000 zero_loop +080046d6 l F .text 00000000 zero_loop 00000000 l df *ABS* 00000000 ctype_.c 00000000 l df *ABS* 00000000 00000200 l *ABS* 00000000 __STACKSIZE__ -08002e8c g F .text 00000020 ComInit -08004388 g F .text 00000050 FlashWrite -08002d2c g F .text 0000004e f_gets -08003bd0 g F .text 0000001c AssertFailure -08001688 g F .text 000000ea get_fat -08003e4c g F .text 00000088 CanReceivePacket -08004684 g F .text 00000058 reset_handler -08004124 g F .text 00000022 TimerUpdate -08002fd0 g F .text 00000010 XcpPacketTransmitted -08000edc g F .text 00000004 SPI_I2S_SendData -08002eac g F .text 00000054 ComTask -08002e58 g F .text 0000001c BootInit -080035a0 g F .text 00000038 FileSrecVerifyChecksum -08000ee0 g F .text 00000006 SPI_I2S_ReceiveData -080033b0 g F .text 00000022 BackDoorInit -08000f18 g F .text 0000000c USART_GetFlagStatus -080033d8 g F .text 00000002 CopService -08005080 g .text 00000000 _etext -08002e28 g F .text 0000002e ff_wtoupper -08004664 g F .text 0000000a FlashGetUserProgBaseAddress -08003758 g F .text 00000478 FileTask -08004114 g F .text 0000000e TimerReset -08000644 g F .text 00000330 disk_initialize -08002e74 g F .text 00000018 BootTask -08004558 g F .text 00000058 FlashWriteChecksum -08000ee8 g F .text 0000001c SPI_CalculateCRC -08000e34 g F .text 00000024 RCC_APB2PeriphClockCmd -08002f04 g F .text 00000034 ComTransmitPacket -08000d88 g F .text 000000a4 GPIO_Init -08000974 g F .text 00000014 disk_status -080035d8 g F .text 0000017e FileSrecParseLine -08000af0 g F .text 0000028e disk_ioctl -0800351c g F .text 00000036 FileHandleFirmwareUpdateRequest -08000e58 g F .text 00000024 RCC_APB1PeriphClockCmd -080021e4 g F .text 00000098 gen_numname -08000f04 g F .text 0000000c SPI_I2S_GetFlagStatus -080001d0 g F .text 00000042 FileFirmwareUpdateCompletedHook -08002fbc g F .text 00000012 XcpIsConnected -08002c70 g F .text 000000bc f_unlink -080040b0 g F .text 00000008 NvmInit -0800436c g F .text 0000001a FlashInit -080040d0 g F .text 00000008 NvmGetUserProgBaseAddress +08002e9c g F .text 00000020 ComInit +08004398 g F .text 00000050 FlashWrite +08002d3c g F .text 0000004e f_gets +08003be0 g F .text 0000001c AssertFailure +08001698 g F .text 000000ea get_fat +08003e5c g F .text 00000088 CanReceivePacket +08004694 g F .text 00000058 reset_handler +08004134 g F .text 00000022 TimerUpdate +08002fe0 g F .text 00000010 XcpPacketTransmitted +08000eec g F .text 00000004 SPI_I2S_SendData +08002ebc g F .text 00000054 ComTask +08002e68 g F .text 0000001c BootInit +080035b0 g F .text 00000038 FileSrecVerifyChecksum +08000ef0 g F .text 00000006 SPI_I2S_ReceiveData +080033c0 g F .text 00000022 BackDoorInit +08000f28 g F .text 0000000c USART_GetFlagStatus +080033e8 g F .text 00000002 CopService +08005090 g .text 00000000 _etext +08002e38 g F .text 0000002e ff_wtoupper +08004674 g F .text 0000000a FlashGetUserProgBaseAddress +08003768 g F .text 00000478 FileTask +08004124 g F .text 0000000e TimerReset +08000654 g F .text 00000330 disk_initialize +08002e84 g F .text 00000018 BootTask +08004568 g F .text 00000058 FlashWriteChecksum +08000ef8 g F .text 0000001c SPI_CalculateCRC +08000e44 g F .text 00000024 RCC_APB2PeriphClockCmd +08002f14 g F .text 00000034 ComTransmitPacket +08000d98 g F .text 000000a4 GPIO_Init +08000984 g F .text 00000014 disk_status +080035e8 g F .text 0000017e FileSrecParseLine +08000b00 g F .text 0000028e disk_ioctl +0800352c g F .text 00000036 FileHandleFirmwareUpdateRequest +08000e68 g F .text 00000024 RCC_APB1PeriphClockCmd +080021f4 g F .text 00000098 gen_numname +08000f14 g F .text 0000000c SPI_I2S_GetFlagStatus +080001d0 g F .text 00000054 FileFirmwareUpdateCompletedHook +08002fcc g F .text 00000012 XcpIsConnected +08002c80 g F .text 000000bc f_unlink +080040c0 g F .text 00000008 NvmInit +0800437c g F .text 0000001a FlashInit +080040e0 g F .text 00000008 NvmGetUserProgBaseAddress 20000f5c g .bss 00000000 _ebss -08002d7c g F .text 00000034 f_putc -08002db0 g F .text 0000002c f_puts -08004670 g F .text 00000012 UnusedISR -08002f00 g F .text 00000002 ComFree -08000e2c g F .text 00000004 GPIO_SetBits -08003f24 g F .text 0000002a UartInit -080040c0 g F .text 00000008 NvmErase +08002d8c g F .text 00000034 f_putc +08002dc0 g F .text 0000002c f_puts +08004680 g F .text 00000012 UnusedISR +08002f10 g F .text 00000002 ComFree +08000e3c g F .text 00000004 GPIO_SetBits +08003f34 g F .text 0000002a UartInit +080040d0 g F .text 00000008 NvmErase 20000008 g .bss 00000000 _bss -08002a78 g F .text 00000014 f_close -08002fe0 g F .text 00000384 XcpPacketReceived -0800264c g F .text 000001a8 f_read -08004618 g F .text 0000004c FlashDone -08000e30 g F .text 00000004 GPIO_ResetBits -08003da4 g F .text 000000a8 CanTransmitPacket -08000d80 g F .text 00000008 get_fattime -08002fa0 g F .text 0000001c XcpInit -080034dc g F .text 0000002c FileInit -080043d8 g F .text 0000017e FlashErase -08000214 g F .text 00000020 FileFirmwareUpdateErrorHook -08000294 g F .text 000001b8 main -080029cc g F .text 000000ac f_sync -08003554 g F .text 0000004c FileSrecGetLineType -080040d8 g F .text 00000012 NvmDone -080024b4 g F .text 0000002a f_mount -08003f50 g F .text 00000066 UartTransmitPacket -080040c8 g F .text 00000008 NvmVerifyChecksum -08003c1c g F .text 0000001e CpuMemCopy -08000ec0 g F .text 0000001c SPI_Cmd -0800180c g F .text 0000010e put_fat -08002a8c g F .text 00000198 f_lseek -08002f5c g F .text 00000024 ComGetActiveInterfaceMaxTxLen -08003fb8 g F .text 000000f8 UartReceivePacket +08002a88 g F .text 00000014 f_close +08002ff0 g F .text 00000384 XcpPacketReceived +0800265c g F .text 000001a8 f_read +08004628 g F .text 0000004c FlashDone +08000e40 g F .text 00000004 GPIO_ResetBits +08003db4 g F .text 000000a8 CanTransmitPacket +08000d90 g F .text 00000008 get_fattime +08002fb0 g F .text 0000001c XcpInit +080034ec g F .text 0000002c FileInit +080043e8 g F .text 0000017e FlashErase +08000224 g F .text 00000020 FileFirmwareUpdateErrorHook +080002a4 g F .text 000001b8 main +080029dc g F .text 000000ac f_sync +08003564 g F .text 0000004c FileSrecGetLineType +080040e8 g F .text 00000012 NvmDone +080024c4 g F .text 0000002a f_mount +08003f60 g F .text 00000066 UartTransmitPacket +080040d8 g F .text 00000008 NvmVerifyChecksum +08003c2c g F .text 0000001e CpuMemCopy +08000ed0 g F .text 0000001c SPI_Cmd +0800181c g F .text 0000010e put_fat +08002a9c g F .text 00000198 f_lseek +08002f6c g F .text 00000024 ComGetActiveInterfaceMaxTxLen +08003fc8 g F .text 000000f8 UartReceivePacket 08000194 g F .text 0000000a FileGetFirmwareFilenameHook 20000000 g .data 00000000 _data -08002c24 g F .text 0000004a f_stat -080033d4 g F .text 00000002 CopInit -08003c3c g F .text 00000168 CanInit -080040b8 g F .text 00000008 NvmWrite -08003bec g F .text 00000030 CpuStartUserProgram -08001670 g F .text 00000016 clust2sect +08002c34 g F .text 0000004a f_stat +080033e4 g F .text 00000002 CopInit +08003c4c g F .text 00000168 CanInit +080040c8 g F .text 00000008 NvmWrite +08003bfc g F .text 00000030 CpuStartUserProgram +08001680 g F .text 00000016 clust2sect 2000115c g .bss 00000000 _estack -08000f10 g F .text 00000008 USART_SendData -080045b0 g F .text 00000068 FlashVerifyChecksum +08000f20 g F .text 00000008 USART_SendData +080045c0 g F .text 00000068 FlashVerifyChecksum 20000008 g .data 00000000 _edata -08003508 g F .text 00000014 FileIsIdle -080027f4 g F .text 000001d8 f_write +08003518 g F .text 00000014 FileIsIdle +08002804 g F .text 000001d8 f_write 08000000 g O .text 00000150 _vectab -080024e0 g F .text 0000016a f_open -08000a28 g F .text 000000c6 disk_write -08000234 g F .text 00000060 FileFirmwareUpdateLogHook +080024f0 g F .text 0000016a f_open +08000a38 g F .text 000000c6 disk_write +08000244 g F .text 00000060 FileFirmwareUpdateLogHook 20000004 g O .data 00000004 __ctype_ptr__ -08002f80 g F .text 00000008 ComIsConnected -08004f7c g O .text 00000101 _ctype_ +08002f90 g F .text 00000008 ComIsConnected +08004f8c g O .text 00000101 _ctype_ 08000150 g F .text 00000044 FileIsFirmwareUpdateRequestedHook -08002f38 g F .text 00000024 ComGetActiveInterfaceMaxRxLen -08000988 g F .text 000000a0 disk_read -08003364 g F .text 0000004c BackDoorCheck +08002f48 g F .text 00000024 ComGetActiveInterfaceMaxRxLen +08000998 g F .text 000000a0 disk_read +08003374 g F .text 0000004c BackDoorCheck 20000f5c g .bss 00000000 _stack -08000e7c g F .text 00000042 SPI_Init -08002ddc g F .text 0000004a ff_convert -08004148 g F .text 00000012 TimerGet -080040ec g F .text 00000028 TimerInit +08000e8c g F .text 00000042 SPI_Init +08002dec g F .text 0000004a ff_convert +08004158 g F .text 00000012 TimerGet +080040fc g F .text 00000028 TimerInit 080001a0 g F .text 00000030 FileFirmwareUpdateStartedHook diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.srec b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.srec index 900b90d3..bec82de8 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.srec +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/bin/openbtl_olimex_stm32p103.srec @@ -1,1285 +1,1285 @@ S024000062696E2F6F70656E62746C5F6F6C696D65785F73746D3332703130332E737265639B -S315080000005C11002085460008714600087146000804 -S3150800001071460008714600087146000871460008D6 -S3150800002071460008714600087146000871460008C6 -S3150800003071460008714600087146000871460008B6 -S3150800004071460008714600087146000871460008A6 -S315080000507146000871460008714600087146000896 -S315080000607146000871460008714600087146000886 -S315080000707146000871460008714600087146000876 -S315080000807146000871460008714600087146000866 -S315080000907146000871460008714600087146000856 -S315080000A07146000871460008714600087146000846 -S315080000B07146000871460008714600087146000836 -S315080000C07146000871460008714600087146000826 -S315080000D07146000871460008714600087146000816 -S315080000E07146000871460008714600087146000806 -S315080000F071460008714600087146000871460008F6 -S3150800010071460008714600087146000871460008E5 -S3150800011071460008714600087146000871460008D5 -S3150800012071460008714600087146000871460008C5 -S3150800013071460008714600087146000871460008B5 -S3150800014071460008714600087146000871460008A5 +S315080000005C110020954600088146000881460008D4 +S315080000108146000881460008814600088146000896 +S315080000208146000881460008814600088146000886 +S315080000308146000881460008814600088146000876 +S315080000408146000881460008814600088146000866 +S315080000508146000881460008814600088146000856 +S315080000608146000881460008814600088146000846 +S315080000708146000881460008814600088146000836 +S315080000808146000881460008814600088146000826 +S315080000908146000881460008814600088146000816 +S315080000A08146000881460008814600088146000806 +S315080000B081460008814600088146000881460008F6 +S315080000C081460008814600088146000881460008E6 +S315080000D081460008814600088146000881460008D6 +S315080000E081460008814600088146000881460008C6 +S315080000F081460008814600088146000881460008B6 +S3150800010081460008814600088146000881460008A5 +S315080001108146000881460008814600088146000895 +S315080001208146000881460008814600088146000885 +S315080001308146000881460008814600088146000875 +S315080001408146000881460008814600088146000865 S3150800015000B589B000230093019302930393049397 -S3150800016005930693079344F2E460C0F600006946D7 -S3150800017002F058FD48B9009B002043B19DF80800DD +S3150800016005930693079344F2F460C0F600006946C7 +S3150800017002F060FD48B9009B002043B19DF80800D5 S3150800018080F01000C0F3001001E00020FFE709B07E -S315080001905DF804FB44F2E460C0F60000704700BF57 +S315080001905DF804FB44F2F460C0F60000704700BF47 S315080001A008B540F20800C2F20000002380F82432A5 -S315080001B044F20471C0F600010A2202F091F930B93E +S315080001B044F21471C0F600010A2202F099F930B926 S315080001C040F20803C2F20003012283F8242208BD84 -S315080001D038B540F20803C2F2000393F82432012B23 -S315080001E005D140F20800C2F2000002F045FC4FF4C7 -S315080001F08844C4F2000440252046294600F08CFEB7 -S315080002000028F9D044F2E460C0F6000002F030FDA0 -S3150800021038BD00BF08B540F20803C2F2000393F8E0 -S315080002202432012B05D140F20800C2F2000002F088 -S3150800023023FC08BD70B5064640F20803C2F2000367 -S3150800024093F82432012B10D140F20801C2F20001C2 -S3150800025002F0AEFD002808DA40F20800C2F20000FB -S31508000260002380F8243202F007FC317889B14FF474 -S315080002708844C4F200048025204600F049FE204642 -S31508000280294600F049FE0028F9D016F8011F002972 -S31508000290F2D170BD00B583B00023009301934FF4EB -S315080002A08053C4F202031A6842F001021A605968C0 -S315080002B00022CFF6FF020A405A601A6822F08472BA -S315080002C022F480321A601A6822F480221A605A6868 -S315080002D022F4FE025A604FF41F029A601A6842F42A -S315080002E080321A604FF48053C4F2020340F2DC52A3 -S315080002F0196801F4003101910099013100910199C1 -S3150800030011B900999142F3D14FF48053C4F2020314 -S315080003101B6813F4003F06D144F21470C0F60000BF -S31508000320732103F055FC4FF40053C4F202031A6814 -S3150800033042F010021A601A6822F003021A601A685C -S3150800034042F002021A604FF48053C4F202035A685C -S315080003505A605A6842F400525A605A6842F48062F7 -S315080003605A605A6822F47C125A605A6842F4E812B3 -S315080003705A601A6842F080721A604FF48053C4F2C9 -S3150800038002031A6812F0007FFBD04FF48053C4F2C0 -S3150800039002035A6822F003025A605A6842F00202BF -S315080003A05A604FF48053C4F202035A6802F00C02F2 -S315080003B0082AFAD14FF48053C4F202039A6942F02C -S315080003C009029A614FF44062C4F20102516821F0B1 -S315080003D00F015160516841F008015160516821F0E0 -S315080003E0F0015160516841F0B00151600022C4F239 -S315080003F00102516821F4C0415160516841F48041BD -S315080004005160DA6942F00072DA61DA6942F4003260 -S31508000410DA619A6942F005029A614FF40063C4F200 -S3150800042001031A6822F470621A601A6842F430628C -S315080004301A601A6822F470421A601A6842F48042F6 -S315080004401A6002F009FD02F015FDFCE738B5014611 -S315080004504FF46050C4F2000000F040FD4FF46054C1 -S31508000460C4F2000401252046294600F04BFD002869 -S31508000470F9D04FF46050C4F2000000F031FDC0B26C -S3150800048038BD00BF70B503F05FFE00F5FA76FF25AC -S315080004902846FFF7DBFF0446FF2803D003F054FE87 -S315080004A08642F5D8FF2C14BF0020012070BD00BF7E -S315080004B008B54FF44060C4F201004FF4805100F0D3 -S315080004C0B5FCFF20FFF7C2FF08BD00BF10B54FF40B -S315080004D04060C4F201004FF4805100F0A9FCFF20EF -S315080004E0FFF7B4FFFFF7CEFF044610B9FFF7E0FFAA -S315080004F000E00124204610BD38B504460D4610F02C -S31508000500800F07D037200021FFF7F6FF01283AD8D9 -S3150800051004F07F04FFF7CCFFFFF7D8FF48B344F099 -S315080005204000FFF793FF280EFFF790FFC5F307403B -S31508000530FFF78CFFC5F30720FFF788FFE8B2FFF740 -S3150800054085FFE4B1082C16D00120FFF77FFF0C2C9D -S3150800055002D1FF20FFF77AFF0A24FF252846FFF776 -S3150800056075FF10F0800F0ED0631E13F0FF04F5D14F -S3150800057038BDFF2038BD8720FFF768FFECE79520D8 -S31508000580FFF764FFE8E738BD38B505460C46FFF7C0 -S3150800059079FF034620B32046FFF758FFFD2C08BF16 -S315080005A001231DD0AC1C05F2022514F8020CFFF736 -S315080005B04DFF14F8010CFFF749FF0234AC42F4D1A1 -S315080005C0FF20FFF743FFFF20FFF740FFFF20FFF75D -S315080005D03DFF00F01F00052814BF00230123FFE795 -S315080005E0184638BDF8B504460D4603F0ADFD00F1D2 -S315080005F06407FF263046FFF729FFFF2804D103F0DA -S31508000600A3FD8742F6D818E0FE2818D10234FF2643 -S315080006103046FFF71BFF04F8020C3046FFF716FFBB -S3150800062004F8010C0234023DF2D1FF20FFF70EFF59 -S31508000630FF20FFF70BFF0120F8BD0020F8BD0020C2 -S31508000640F8BD00BF2DE9F04389B0002840F0848149 -S3150800065040F20003C2F200031B7813F0020F06D023 -S3150800066040F20003C2F200031878C0B27FE1082006 -S31508000670012100F0DFFB4FF48040012100F0ECFB84 -S315080006804FF48058ADF800804FF010098DF80390AC -S3150800069003278DF802704FF44064C4F20104204623 -S315080006A0694600F071FB2046414600F0BFFB4FF457 -S315080006B02043ADF800308DF8027018238DF803300A -S315080006C02046694600F060FB4FF48046ADF80060AE -S315080006D048238DF803302046694600F055FB00256F -S315080006E0ADF808504FF48273ADF80A30ADF80C50E7 -S315080006F0ADF80E50ADF810504FF40073ADF8123047 -S315080007003823ADF81430ADF816500723ADF8183075 -S3150800071006FA09F040F4605002A900F0AFFB06FAA9 -S3150800072009F040F46050294600F0DEFB06FA09F0AD -S3150800073040F46050012100F0C3FB2046414600F01A -S3150800074075FB4FF40045ADF804508DF806708DF82A -S315080007500790204601A900F017FB2046294600F01D -S3150800076065FB0A274FF46054C4F2000402264FF0D2 -S31508000770FF0801252046314600F0C4FB0028F9D0C1 -S315080007802046414600F0AAFB2046294600F0BAFB5F -S315080007900028F9D0013FEDD14FF40043ADF80430FD -S315080007A003238DF8063018238DF807304FF440647C -S315080007B0C4F20104204601A900F0E6FA20464FF4E7 -S315080007C0805100F035FB00200146FFF795FE012811 -S315080007D040F0C48003F0B8FC00F57A7408204FF4A2 -S315080007E0D571FFF789FE012849D10DF11F060DF1D4 -S315080007F01B05FF273846FFF729FE05F8010FB54206 -S31508000800F8D19DF81E30012B40F0A8809DF81F30C6 -S31508000810AA2B40F0A380A9274FF0804503F094FC4B -S31508000820844205D938462946FFF766FE0028F5D1E1 -S3150800083003F08AFC844240F291803A200021FFF7B7 -S315080008405BFE002840F08A800DF11B04FF25284630 -S31508000850FFF7FCFD04F8010FB442F8D19DF81C20FF -S3150800086002F04002D2B2002A14BF0C22042240F23F -S315080008703023C2F200031A60FFF71AFE27E0A92008 -S315080008800021FFF739FE012899BF0227A92501276C -S315080008903D46002603F058FC844205D928463146D1 -S315080008A0FFF72AFE0028F5D103F04EFC844255D9FD -S315080008B010204FF40071FFF71FFE00284ED140F2BA -S315080008C03023C2F200031F60FFF7F2FDAFB340F218 -S315080008D00003C2F200031A7802F0FE021A704FF4FF -S315080008E06055C4F200052846002100F0E9FA002404 -S315080008F0ADF808404FF48273ADF80A30ADF80C40F5 -S31508000900ADF80E40ADF810404FF40073ADF8123054 -S315080009100823ADF81430ADF816400723ADF81830A3 -S31508000920284602A900F0AAFA2846214600F0DCFA71 -S315080009302846012100F0C4FA07E040F20003C2F29B -S3150800094000031A7842F001021A7040F20003C2F25C -S3150800095000031878C0B20AE0012008E040F230230C -S31508000960C2F2000300221A60FFF7A2FDE5E709B00C -S31508000970BDE8F08330B940F20003C2F200031878EC -S31508000980C0B270470120704770B50C461D46D3F1BA -S31508000990010338BF002300280CBF184643F00100A6 -S315080009A000283DD140F20003C2F200031B7813F081 -S315080009B0010F37D140F23023C2F200031B6813F04F -S315080009C0080F08BF5202012D0ED111201146FFF75C -S315080009D093FDF8B920464FF40071FFF703FED0F1F6 -S315080009E0010538BF002515E012201146FFF784FDE2 -S315080009F080B94FF4007620463146FFF7F3FD28B15B -S31508000A0004F50074013D15F0FF05F4D10C20002112 -S31508000A10FFF772FDFFF74CFD281C18BF012070BDBB -S31508000A20042070BD032070BDF8B50D4617461E4656 -S31508000A30D3F1010338BF002300280CBF184643F042 -S31508000A40010000284DD140F20003C2F200031B78D2 -S31508000A5013F0010F47D140F20003C2F200031B78DE -S31508000A6013F0040F41D140F23023C2F200031B6891 -S31508000A7013F0080F08BF5702012E0DD1182039466A -S31508000A80FFF73AFD38BB2846FE21FFF77DFDD0F17A -S31508000A90010638BF00261EE013F0060F03D0972084 -S31508000AA03146FFF729FD19203946FFF725FD90B98C -S31508000AB0FC2428462146FFF767FD28B105F5007591 -S31508000AC0013E16F0FF06F4D10020FD21FFF75CFD7C -S31508000AD0002808BF0126FFF7EBFC301C18BF0120D1 -S31508000AE0F8BD0420F8BD0320F8BD0220F8BD00BFFC -S31508000AF070B584B01446002840F03D8140F20003EA -S31508000B00C2F200031B7813F0010F18BF032040F050 -S31508000B1034810E2900F21481DFE811F00F00160067 -S31508000B2012015C00120112011201120112011201D6 -S31508000B30C200CA00D900E800F700FFF7C7FCD0F1E9 -S31508000B40010438BF002412E109200021FFF7D4FC74 -S31508000B50002840F0F78068461021FFF743FD00287B -S31508000B6000F0F2809DF800309B09012B10D19DF80A -S31508000B70072002F03F02120401329DF809309DF861 -S31508000B80081003EB012313449B0223600024EEE0C4 -S31508000B909DF808209DF807309B0003EB92139DF8FB -S31508000BA0062002F0030203EB822201329DF805308B -S31508000BB003F00F039DF80A1003EBD1139DF80910F3 -S31508000BC001F0030103EB4103073B02FA03F3236039 -S31508000BD00024CCE040F23023C2F200031B6813F075 -S31508000BE0040F22D08D200021FFF786FC002840F054 -S31508000BF0AD80FF20FFF72AFC68461021FFF7F2FCBC -S31508000C00002800F0A5803025FF263046FFF71EFC99 -S31508000C106B1E13F0FF05F8D19DF80A301B09102248 -S31508000C2002FA03F323600024A1E009200021FFF75C -S31508000C3063FC002840F08E8068461021FFF7D2FC3E -S31508000C40002800F0898040F23023C2F200031B68B6 -S31508000C5013F0020F12D09DF80A2002F03F029DF809 -S31508000C600B30DB0903EB420201329DF80D309B097C -S31508000C70013B02FA03F32360002478E09DF80B3069 -S31508000C809DF80A20C2F38402013203F003015B09CE -S31508000C9003EBC103013303FB02F32360002466E080 -S31508000CA040F23023C2F200031B68137000245EE092 -S31508000CB009200021FFF720FC00284FD120461021EB -S31508000CC0FFF790FCD0F1010438BF00244FE00A205A -S31508000CD00021FFF711FC002842D120461021FFF71A -S31508000CE081FCD0F1010438BF002440E03A200021FD -S31508000CF0FFF702FCB0BB0025FF263046FFF7A6FB30 -S31508000D0060550135042DF8D12EE040F23023C2F2A9 -S31508000D1000031B6813F0040F08BF012427D08D2099 -S31508000D200021FFF7E9FB08BBFF20FFF78FFB2046F2 -S31508000D304021FFF757FCD0F1010438BF002416E024 -S31508000D40042414E0012412E0012410E001240EE03A -S31508000D5001240CE001240AE0012408E0012406E04D -S31508000D60012404E0012402E0002400E00124FFF746 -S31508000D709FFB204601E00420FFE704B070BD00BFDA -S31508000D800020C4F2AA2070472DE9F001CB7803F0C1 -S31508000D900F0513F0100F1CBF8B781D430B78F3B1AA -S31508000DA00768002301264FF00F0C06FA03F20C8899 -S31508000DB0144094420FD19A000CFA02F827EA080761 -S31508000DC005FA02F21743CA78282A08BF446102D0F6 -S31508000DD0482A08BF04610133082BE6D107600B884F -S31508000DE0FF2B20D94768002301264FF00F0C03F18B -S31508000DF0080206FA02F20C88144094420FD19A00AF -S31508000E000CFA02F827EA080705FA02F21743CA7825 -S31508000E10282A08BF4461CA78482A08BF04610133F2 -S31508000E20082BE4D14760BDE8F001704701617047BF -S31508000E304161704739B14FF48053C4F202039A698D -S31508000E401043986170474FF48053C4F202039A69BD -S31508000E5022EA00009861704739B14FF48053C4F212 -S31508000E600203DA691043D86170474FF48053C4F21D -S31508000E700203DA6922EA0000D861704710B40288D2 -S31508000E8002F441524C880B8823438C882343CC8830 -S31508000E9023430C8923434C8923438C892343CC89D8 -S31508000EA0234313439BB20380838B23F400631B0401 -S31508000EB01B0C83830B8A03825DF8044B704700BFC3 -S31508000EC029B103889BB243F0400303807047038827 -S31508000ED023F040031B041B0C038070478181704775 -S31508000EE0808980B2704700BF29B103889BB243F45A -S31508000EF0005303807047038823F400531B041B0C1C -S31508000F0003807047038919420CBF002001207047EF -S31508000F10C1F3080181807047038819420CBF00207D -S31508000F200120704732B1821811F8013B00F8013BE5 -S31508000F309042F9D1704700BFCA7E8B7E43EA0223EE -S31508000F400278032A01BF487D0A7D42EA002243EA65 -S31508000F5002431846704700BF00F10B010023DA016F -S31508000F6042EA5303DBB210F8012B1344DBB2884282 -S31508000F70F5D11846704700BF10B504460A464078B2 -S31508000F8004F134010123FFF7FFFCD0BB94F83322A8 -S31508000F9094F8323243EA022212B24AF65523CFF6C1 -S31508000FA0FF739A422FD194F86D2094F86C301B0485 -S31508000FB043EA026294F86A30134394F86B2043EAD2 -S31508000FC0022222F07F4244F24613C0F254039A42A8 -S31508000FD01BD094F8890094F888301B0443EA006013 -S31508000FE094F88630034394F8870043EA002020F0FB -S31508000FF07F4044F24613C0F25403C01A18BF0120BA -S3150800100010BD032010BD022010BD002010BD00BF7A -S315080010102DE9F041044603791BB3056B00F134074B -S31508001020407839462A460123FFF7FEFCE0B900233B -S315080010302371636A9D421AD3E26913449D4219D209 -S31508001040E678012E19D94FF00108E269154460784F -S3150800105039462A464346FFF7E7FC013E012EF4D1FE -S315080010600EE00020BDE8F0810120BDE8F0810020F7 -S31508001070BDE8F0810020BDE8F0810020BDE8F081E0 -S315080010800020BDE8F08100BF38B504460D46036B65 -S315080010908B420CD0FFF7BCFF58B9607804F13401D5 -S315080010A02A460123FFF770FC28B9256338BD0020BE -S315080010B038BD012038BD012038BD00BF08B588B14C -S315080010C003688BB1197889B1D988828891420FD182 -S315080010D05878FFF74FFC00F00100002814BF0320E2 -S315080010E0002008BD092008BD092008BD092008BD43 -S315080010F0092008BD2DE9F041154603681C78303CE7 -S31508001100092C00F2B5815A783A2A40F0B1810233A7 -S31508001110036000230B60002C40F0718140F23843D5 -S31508001120C2F200031C68002C00F06C810C60237866 -S315080011308BB16078FFF71EFC10F0010F0BD1002D64 -S3150800114000F0638100F00400C0B2002814BF0A2032 -S315080011500020BDE8F081002020706070FFF772FA69 -S3150800116010F0010F40F054811DB110F0040F40F04B -S31508001170528120460021FFF7FFFE012818BF0025EF -S3150800118017D194F8F631002B00F0488194F8FD2128 -S3150800119094F8FC311B0443EA026294F8FA311343CB -S315080011A094F8FB5143EA052520462946FFF7E4FE55 -S315080011B0FFE7032800F03581002840F0358194F8D0 -S315080011C0402094F83F3043EA02231BB2B3F5007F70 -S315080011D040F02D8194F84B0094F84A3053EA0020E9 -S315080011E00DD194F85B2094F85A301B0443EA026246 -S315080011F094F85830134394F8590043EA0020E06104 -S3150800120094F84410E1704B1EDBB2012B00F21281F8 -S3150800121094F84130A370002B00F00F815A1E1A4231 -S3150800122040F00E8194F8466094F8452042EA06227A -S31508001230228112F00F0F40F0068194F8487094F856 -S31508001240476056EA07260DD194F8577094F8566009 -S31508001250360446EA076794F854603E4394F8557096 -S3150800126046EA072694F843C094F8427057EA0C27D2 -S3150800127000F0EC8001FB00FC07EB121161448E4282 -S31508001280C0F0E780761AB6FBF3F3002B00F0E48093 -S3150800129040F6F576B3428CBF022601264FF6F5785E -S315080012A0434500F2E8800233A36125622F44676252 -S315080012B02944E162032E13D1002A40F0D08094F825 -S315080012C0631094F86220120442EA016194F86020DF -S315080012D00A4394F8611042EA0122A2629B000EE0DA -S315080012E0002A00F0BF806744A762022E0FBF5B008A -S315080012F003225A4303F0010318BF03EB520303F218 -S31508001300FF13B0EB532FC0F0B0804FF0FF332361CB -S315080013100023E360032E63D1637194F8652094F883 -S31508001320643043EA02222A446261607804F1340197 -S315080013300123FFF729FB002852D194F8332294F8A9 -S31508001340323243EA022212B24AF65523CFF6FF7327 -S315080013509A4245D194F8372094F836301B0443EA6C -S31508001360026294F83430134394F8352043EA022293 -S3150800137045F25223C4F261139A4231D194F81B22E2 -S3150800138094F81A321B0443EA026294F8183213439B -S3150800139094F8192243EA022247F27223C6F241134D -S315080013A09A421DD194F8232294F822321B0443EA68 -S315080013B0026294F82032134394F8212243EA022366 -S315080013C0E36094F81F2294F81E321B0443EA026273 -S315080013D094F81C32134394F81D2243EA022323612E -S315080013E0267040F23443C2F200031A88013292B2E0 -S315080013F01A80E280002020632071BDE8F0810B206E -S31508001400BDE8F0810C20BDE8F0810020BDE8F08140 -S315080014100320BDE8F0810A20BDE8F0810D20BDE873 -S31508001420F0810120BDE8F0810D20BDE8F0810D2096 -S31508001430BDE8F0810D20BDE8F0810D20BDE8F08102 -S315080014400D20BDE8F0810D20BDE8F0810D20BDE836 -S31508001450F0810D20BDE8F0810D20BDE8F0810D205A -S31508001460BDE8F0810D20BDE8F0810D20BDE8F081D2 -S3150800147000230B6052E60233A36125622F4467629C -S315080014802944E162032617E72DE9F0410D4601F1EB -S3150800149009020369002B5ED0416991F80C800B782C -S315080014A0202B1BD00E46002408F00807FFB203E0E5 -S315080014B016F8013F202B11D0052B08BFE52347B1AD -S315080014C0A3F1410C5FFA8CFCBCF1190F9CBF2033C9 -S315080014D0DBB202F8013B0134082CE9D10B7A202B48 -S315080014E022D0561C2E2313700B7A202B1BD001F109 -S315080014F00804171D324608F010085FFA88F603E05C -S3150800150014F8013F202B0FD046B1A3F1410C5FFA26 -S315080015108CFCBCF1190F9CBF2033DBB202F8013BEF -S31508001520BA42EDD100E03246CB7A2B72CC7F8B7F64 -S315080015301B0443EA04630C7F23434C7F43EA0423DA -S315080015402B604C7E0B7E43EA0423AB80CC7D8B7DDF -S3150800155043EA0423EB8000231370AE6946B3EB69B4 -S3150800156033B3036900240BB3028C4FF6FF739A4218 -S3150800157008BF00241AD0C769388890B10024A0464D -S31508001580414601F02BFC70B1EA69013AA2420CD936 -S315080015900134321902F8010C37F8020F0028EFD18E -S315080015A004E0002402E0002400E000240023335570 -S315080015B0BDE8F08110B50446FFF72AFD034600286A -S315080015C054D12378032B49D16379002B46D00023C5 -S315080015D0236304F1340104F50D700B46002203F869 -S315080015E0012B8342FBD1552384F83232AA2384F88F -S315080015F03332522384F8343084F83530612384F842 -S315080016003630412284F83720722084F8180284F88C -S31508001610190284F81A2284F81B32236984F81C32CA -S31508001620C3F3072284F81D221A0C84F81E221B0E07 -S3150800163084F81F32E36884F82032C3F3072284F85B -S3150800164021221A0C84F822221B0E84F82332607891 -S3150800165062690123FFF7E8F90023637160780021C6 -S315080016600A46FFF745FA031C18BF0123184610BDA2 -S3150800167002398369023B99423DBF8278C36A02FBFD -S3150800168001300020704700BFF8B505460C46012911 -S315080016905CD9836999425BD20378022B28D0032B45 -S315080016A038D0012B56D101EB5106416A01EB562180 -S315080016B0FFF7EAFC002850D1C6F308032B4493F839 -S315080016C034700136696A284601EB5621FFF7DCFCBF -S315080016D0002845D1C6F30806354495F8340047EA8C -S315080016E0002014F0010F14BF0009C0F30B00F8BD69 -S315080016F0416A01EB1421FFF7C7FCA0BB640004F4A0 -S31508001700FF742B1993F834302C4494F8350043EAC7 -S315080017100020F8BD416A01EBD411FFF7B5FC28BBE0 -S31508001720A40004F4FE742B1993F8360093F83720B6 -S31508001730120642EA004293F8350042EA00202C4499 -S3150800174094F83430184320F07040F8BD0120F8BDF5 -S315080017500120F8BD4FF0FF30F8BD4FF0FF30F8BD5F -S315080017604FF0FF30F8BD4FF0FF30F8BD4FF0FF30B7 -S31508001770F8BD00BF70B504460D46E18081680129B1 -S3150800178038D003689A69914236D271B91A78032A11 -S3150800179001D1996A49B90022E2601A89AA422DD96B -S315080017A09B6A03EB151323611BE09E783601B5424D -S315080017B010D32068FFF768FF0146B0F1FF3F1FD03E -S315080017C001281FD923689B6998421DD2AD1BADB26B -S315080017D0AE42EED9E1602068FFF74AFF00EB15102C -S315080017E0206105F00F05236803EB45133433636165 -S315080017F0002070BD022070BD022070BD022070BDA1 -S31508001800012070BD022070BD022070BDF8B50546E6 -S315080018100C461646012998BF02237CD9836999424A -S3150800182028BF022377D20378022B40D0032B50D04F -S31508001830012B18BF02236BD101EB5107416A01EB5B -S315080018405721FFF721FC0346002861D1C7F3080397 -S3150800185014F001041FBFEA1892F8342002F00F02B0 -S31508001860F1B21ABF42EA0112D2B2F2B22B4483F89D -S315080018703420013701232B71696A284601EB572169 -S31508001880FFF702FC0346002842D1C7F3080714B144 -S31508001890C6F3071607E0EA1992F8342022F00F0279 -S315080018A0C6F3032616432F4487F8346030E0416AAE -S315080018B001EB1421FFF7E8FB034648BB640004F478 -S315080018C0FF742A1982F83460C6F3072682F8356051 -S315080018D01EE0416A01EBD411FFF7D6FB0346B8B9FF -S315080018E0A40004F4FE742A1992F8371009062C4449 -S315080018F001F070410E4384F83460C6F3072182F87C -S315080019003510310C82F83610360E82F83760FFE74C -S3150800191001222A71FFE71846F8BD00BF2DE9F041FC -S315080019200546884631B9C66876B183699E4228BF9E -S3150800193001260AE0FFF7A8FE012847D9AB699842B5 -S3150800194028BF464601D24DE0012634460227013417 -S31508001950AB699C4202D3012E3BD93C462846214618 -S31508001960FFF792FE38B1B0F1FF3F18BF012833D018 -S31508001970B442ECD132E02646284621466FF0704242 -S31508001980FFF744FF0346D0F1010038BF0020B8F145 -S31508001990000F08BF002028B1284641462246FFF717 -S315080019A035FF03465BB9EE602B69B3F1FF3F18D0EC -S315080019B0013B2B6101236B712046BDE8F081012BA9 -S315080019C014BF01204FF0FF30BDE8F0810120BDE8CB -S315080019D0F0810020BDE8F081BDE8F0810020BDE877 -S315080019E0F0812046BDE8F0812DE9F84304460E460D -S315080019F0C5880135ADB2002D6AD00369002B6AD0BF -S31508001A0015F00F075BD101330361C16821B903687B -S31508001A101B89AB4262D952E000688378013B13EA1E -S31508001A2015134CD1FFF730FE8046012859D9B0F17D -S31508001A30FF3F59D020688369984539D3002E56D080 -S31508001A40E168FFF76BFF8046002853D0012854D081 -S31508001A50B0F1FF3F54D02068FFF7DAFA002852D1D8 -S31508001A60236803F1340100231A46CA540133B3F537 -S31508001A70007FFAD1266830464146FFF7F9FD306304 -S31508001A8000264FF001090CE083F804902068FFF760 -S31508001A90BFFA00283AD123681A6B01321A63013655 -S31508001AA0F6B223689A78B242EED81A6B921B1A637A -S31508001AB0C4F80C8020684146FFF7DAFD2061E5800E -S31508001AC0236803EB4713343363610020BDE8F883CA -S31508001AD00420BDE8F8830420BDE8F8830420BDE8A7 -S31508001AE0F8830220BDE8F8830120BDE8F8830420C6 -S31508001AF0BDE8F8830720BDE8F8830220BDE8F8832F -S31508001B000120BDE8F8830120BDE8F8830120BDE87F -S31508001B10F88300BF2DE9F04F89B005460021FFF78D -S31508001B2029FE002840F0AC804FF0FF09C8464F4612 -S31508001B3044F2B071C0F60001029101F10C02049260 -S31508001B404FF6FF7A4FF0000B28682969FFF79CFAD1 -S31508001B50002840F096806C692678002E00F0928066 -S31508001B60E37A03F03F02E52E7FD013F0080F04D086 -S31508001B700F2A18BFB8467BD101E00F2A58D1EB6966 -S31508001B800193002B74D016F0400F06D094F80D90F0 -S31508001B9006F0BF06EB882B8403E0B04518BFB846AD -S31508001BA066D1617B0391494518BFB84660D1237851 -S31508001BB023F04003013B03EB430203EB8202059249 -S31508001BC0029A02F1FF394FF001080796059E06951D -S31508001BD04546DDF8108019F8013FE2185078E35CB5 -S31508001BE043EA00207DB101F01FF90546FE2E56D8BE -S31508001BF0731C0593019931F8160001F015F9854211 -S31508001C004FD1059E01E050454DD1C145E3D1A846C7 -S31508001C100596079E069D237813F0400F39D0B8F134 -S31508001C20000F36D0059A019931F812308BB33BE094 -S31508001C30B8F1000F04D12046FFF78EF9484523D0A6 -S31508001C40A5F820A0AB69DA7A12F0010F08BF04F1F3 -S31508001C500B0002D00BE0844218D014F8011B13F8CD -S31508001C60012B9142F7D0B84602E0B84600E0B846E4 -S31508001C7028465946FFF7B8FE00283FF465AF07E047 -S31508001C8016E015E0042013E0002011E000200FE024 -S31508001C900EE0013E5FFA86F8DDF80C90E8E7069D4F -S31508001CA002E0069D00E0069DDDF80C90B846DFE7E9 -S31508001CB009B0BDE8F08F00BF2DE9F04F87B0814627 -S31508001CC088460B782F2B18BF5C2B08BF01F101083B -S31508001CD00023836098F800301F2B07D80021FFF7F0 -S31508001CE049FD03460022C9F814207AE14FF0010A9B -S31508001CF044F21C7BC0F6000B44F22871C0F60001C2 -S31508001D00049144F23072C0F60002059298F8003049 -S31508001D102F2B18BF5C2B08D108F10103984613F83E -S31508001D20012B2F2A18BF5C2AF8D0D9F81C5098F82E -S31508001D3000002F2818BF1F282CD95C2800F02D81F9 -S31508001D40AF1E4646544607E05C2B00F02881B2F5E4 -S31508001D50807F00F041811446514601F03FF8014664 -S31508001D60002800F039817F2809D8222900F034811B -S31508001D705A4612F8013F13B19842FAD12CE127F8D6 -S31508001D80021F621C16F8013F18462F2B18BF1F2B7F -S31508001D90DAD801E00024524690441F2898BF04264A -S31508001DA001D90026FFE7002C00F0168104F1004354 -S31508001DB0013B5A0035F813302E2B18BF202B40F064 -S31508001DC0F080931C2B4407E033F8042C023B2E2AA0 -S31508001DD018BF202A40F0E580013CF5D1FCE003F865 -S31508001DE0011B8342FBD12B88202B18BF2E2B40F0DA -S31508001DF0E48028460023013330F8021F202918BF43 -S31508001E002E29F8D0002B00F0D98046F00306D5E03D -S31508001E10013C05D10821039100220192029205E0B6 -S31508001E20023A32F8021C2E29F2D1F3E75F1C35F884 -S31508001E301300002861D0202808D0E31B18BF01230F -S31508001E402E2814BF002203F001021AB146F0030639 -S31508001E503B46EBE7019A0399BC4218BF8A4214D362 -S31508001E600B2903D146F00306029A49E00BB146F066 -S31508001E700306A74243D8029A9300DBB2029323468D -S31508001E800B21039108220192D0E77F280DD9002162 -S31508001E9000F0A4FF0346002800F0A08005990B4433 -S31508001EA013F8800C46F0020650B101462B2807D0DD -S31508001EB0049A12F8013F002B00F087809942F8D166 -S31508001EC046F003065F2010E0029A42F002020292F0 -S31508001ED00BE0A0F161039BB2192B9FBF029B43F055 -S31508001EE001030293203898BF80B2D9F818300199B7 -S31508001EF058543B460131019198E7029A00E0029A4C -S31508001F00D9F818301978E52904BF05211970039BFB -S31508001F10082B02BF9200D2B20292029901F00C037A -S31508001F200C2B03D001F00302032A01D146F0020666 -S31508001F3016F0020F0AD1029901F00302012A08BF1E -S31508001F4046F01006042B08BF46F00806D9F81830E4 -S31508001F50DE724846FFF7DEFDD9F81830DA7A03460E -S31508001F6048B104283DD102F00403DBB2002B14BFAC -S31508001F700346052335E012F0040F32D1D9F81410C0 -S31508001F80CB7A13F0100F06D0D9F80000FEF7D4FF6D -S31508001F90C9F80800BAE6052323E00024524690440F -S31508001FA0FFE66700EA194FF0000325F81430D9F860 -S31508001FB0183003F10B00202111E700232F4437F8CE -S31508001FC0021C2E293FF426AF22E7A0F141039BB25B -S31508001FD0192B7FF679AF7CE7062302E046F0020666 -S31508001FE06EE7184607B0BDE8F08F00BF2DE9F04F41 -S31508001FF083B0044689464FF0FF0B5E460425D84653 -S3150800200044F2B07AC0F6000A0AF10C0300930027DE -S3150800201070E02068FFF738F8054600286ED1626937 -S315080020201378002B74D0D17AE52B18BF2E2B59D0F4 -S3150800203001F03F01082914BF00200120484518BFB8 -S31508002040464651D10F2943D113F0400F06D092F8D6 -S315080020500DB003F0BF03E188218403E09E4218BF58 -S31508002060464641D192F80DE0DE4518BF46463BD1BB -S31508002070D4F81CC0117801F03F01013901EB410584 -S3150800208001EB85050AF1FF3101260193DDF800B061 -S3150800209011F8013FD0184078D35C43EA002036B1E6 -S315080020A0FE2D32D82CF815000646013503E04FF60A -S315080020B0FF73984229D15945EAD1019B127812F04B -S315080020C0400F1ED0FE2D98BF2CF8157019D91CE0AC -S315080020D010461EB9FEF740FF58451BD04FF6FF7352 -S315080020E0238417E04646FFE720463946FFF77CFC7F -S315080020F0054618B9216900298BD15DB100232361F2 -S3150800210008E0013BDEB2F346EEE7F3464646EBE768 -S315080021100425F3E7284603B0BDE8F08F2DE9F04122 -S315080021200446C588018C4FF6FF73994208BF2946B5 -S31508002130FFF720FB0346D0B9E52701264FF0000834 -S3150800214020682169FEF7A0FF034668B9626917701F -S3150800215022681671E288AA4209D220464146FFF74C -S3150800216043FC03460028EBD0042B08BF022318467D -S31508002170BDE8F0812DE9F04104460E46012998BFD5 -S3150800218002212BD983699E4228BF022126D2002725 -S315080021904FF0010820463146FFF776FA0546C0B1EA -S315080021A0012818D0B0F1FF3F17D0204631463A46ED -S315080021B0FFF72CFB014688B92369B3F1FF3F1EBF21 -S315080021C00133236184F80580A369AB4206D92E46FC -S315080021D0E0E7002102E0022100E001210846BDE80F -S315080021E0F08100BF70B582B0054616461C460B2224 -S315080021F0FEF798FE052C0BD9B21EE30343EA5404F6 -S31508002200A4B232F8023F1C44A4B25388002BF4D17E -S31508002210072204F00F0101F13003392B88BF01F1C1 -S315080022203703013A00A911444B702409F1D1144629 -S315080022307E2102AB134403F8081C62B12B78202BCD -S315080022400BD0294600230133A34207D011F8010F0A -S315080022502028F8D102E0002300E000232020072AE6 -S315080022609FBF02A9891811F8081C013288BF0146C8 -S31508002270E9540133072BF2D902B070BD2DE9F04FAE -S3150800228087B004468769C66903A839460C22FEF753 -S3150800229049FE9DF8173013F0010F21D00023FB7279 -S315080022A0E3610125384603A932462B46FFF79AFF14 -S315080022B02046FFF72FFC034620B90135ADB2642D41 -S315080022C0F0D1D5E0642D08BF072000F0EF80042B7D -S315080022D018BF184640F0EA809DF81730FB72E66191 -S315080022E09DF8173013F0020F08BF012716D0338860 -S315080022F03BB1002301339BB236F81320002AF9D1EB -S3150800230000E0002319334EF64F42C4F6C46282FB3E -S315080023100317DB17C3EBA707BFB2FFE72046002169 -S31508002320FFF728FA0346002840F0BF800025A84694 -S31508002330012620682169FEF7A7FE0346002840F01B -S31508002340B48063691B78E52B18BF002B03D10135D0 -S31508002350AF4201D18EE0454620463146FFF744FBA1 -S3150800236003460028E5D0A0E0E188C9EB0101204634 -S3150800237089B2FFF7FFF90346002840F09680A06966 -S31508002380FEF7EAFD01904FF000084FF6FF7544F29C -S31508002390B076C0F60006FF2720682169FEF774FEAE -S315080023A00346002840F08180D4F81CA061695FFAD2 -S315080023B089FB019A4A734FF00F03CB7281F80C80A0 -S315080023C081F81A8081F81B800BF1FF3303EB430079 -S315080023D003EB80000122434602E070462B46013299 -S315080023E0AB424ED000F1010E3AF81030B01810F892 -S315080023F0010C0B5408444FEA132C80F801C0002B3B -S3150800240049D070460C2AEAD9AB4202D03AF81030C5 -S315080024100BB94BF0400B81F800B023684FF001016F -S31508002420197120464146FFF7DFFA034600283CD1DA -S3150800243009F1FF391FFA89F9B9F1000FACD12DE07E -S31508002440636903F12001002203F8012B8B42FBD1BB -S315080024506069A1690B22FEF765FD6369A269D27AF4 -S3150800246002F018021A73236801221A7100201DE06F -S3150800247007201BE0013F1FFA87F9B9F1000F0DD0BD -S3150800248072E706EB020E1EF801EC01F80E708E4498 -S315080024908EF80170B6E70C2A9FD9BAE72068216939 -S315080024A0FEF7F2FD0028CBD000E0184607B0BDE8DD -S315080024B0F08F00BF88B940F23843C2F200031B68A8 -S315080024C00BB100221A7009B100230B7040F2384391 -S315080024D0C2F200031960002070470B20704700BF46 -S315080024E02DE9F0438FB0019115460446002800F007 -S315080024F094800023036001A805A902F01E02FEF7D6 -S31508002500F9FD002840F08B8005F01F0702AB0B93FE -S3150800251040F23423C2F200030C9305A80199FFF791 -S31508002520CBFB0A9E034600287FD1002E78D17BE09C -S315080025305BB1042B40F0858005A8FFF79FFE47F0A6 -S3150800254008070A9E034638B17BE0F37A13F0110FA9 -S3150800255070D115F0040F6FD117F0080F3CD0FEF7B5 -S315080025600FFCB073C0F30723F373030C3374000E28 -S3150800257070740025F57235777577B577F577DDF8D8 -S31508002580148040463146FEF7D7FCB576F5763575A4 -S315080025907575012388F804300546E8B1D8F83090F7 -S315080025A040462946FFF7E6FD0346002849D1059827 -S315080025B0013DC5604946FEF767FD03460AE0F37A22 -S315080025C013F0100F3AD115F0020F05D013F0010FD2 -S315080025D036D101E0002B34D117F0080F18BF47F0A9 -S315080025E02007059D2B6BE3612662A77128463146B5 -S315080025F0FEF7A2FC2061F27FB37F1B0443EA026365 -S31508002600327F1343727F43EA0223E3600020A0600F -S31508002610A0612560EB88A38014E0092012E011E090 -S3150800262015F01C0F91D1CAE7062315F01C0F7FF48D -S315080026307FAFCFE7072304E0082302E0042300E086 -S31508002640072318460FB0BDE8F08300BF2DE9F04F09 -S3150800265083B004460F4690461E4600233360FEF7B5 -S315080026602DFD002840F0BF80A37913F0800F18BF16 -S31508002670022040F0BC8013F0010F08BF072000F0CD -S31508002680B680E568A368ED1AA84538BF4546002D0B -S3150800269000F0AA8004F124030193A368C3F3080297 -S315080026A0002A40F08680206890F802A00AF1FF3AD6 -S315080026B00AEA532A1AF0FF0A17D10BB9206902E071 -S315080026C06169FEF7E1FF012805D8A37963F07F0366 -S315080026D0A37102208BE0B0F1FF3F05D1A37963F027 -S315080026E07F03A371012082E06061D4F80080404630 -S315080026F06169FEF7BDFF814628B9A37963F07F03B8 -S31508002700A371022073E0D1445FEA552B29D098F8CB -S3150800271002300BEB0A029A4288BFCAEB030B98F801 -S31508002720010039464A465FFA8BF3FEF72DF928B1C0 -S31508002730A37963F07F03A371012058E0A37913F00E -S31508002740400F0BD0A369C9EB0300834506D907EBF5 -S31508002750402001994FF40072FEF7E4FB4FEA4B2B39 -S3150800276035E0A2694A4522D0A37913F0400F10D06C -S3150800277098F8010001990123FEF756F928B1A379C3 -S3150800278063F07F03A371012031E0A37923F04003AE -S31508002790A3712368587801994A460123FEF7F4F88D -S315080027A028B1A37963F07F03A37101201FE0C4F861 -S315080027B01890A168C1F30801C1F5007B5D4538BFD3 -S315080027C0AB462144384624315A46FEF7ABFB5F44F4 -S315080027D0A3685B44A36033685B443360B5EB0B05C1 -S315080027E07FF45BAF02E002E0002000E0002003B0C7 -S315080027F0BDE8F08F2DE9F04F83B004460F46154625 -S315080028001E4600233360FEF759FC002840F0DA80A4 -S31508002810A37913F0800F18BF022040F0D48013F07C -S31508002820020F08BF072000F0CE80E368DD4280F083 -S31508002830BE80002D00F0BB8004F124030193A36839 -S31508002840C3F30802002A40F09580206890F802B089 -S315080028500BF1FF3B0BEA532B1BF0FF0B21D13BB9C6 -S31508002860236963B90021FFF759F80346206103E09D -S315080028706169FFF753F80346002B00F09880012B97 -S3150800288005D1A37963F07F03A37102209BE0B3F11E -S31508002890FF3F05D1A37963F07F03A371012092E07E -S315080028A06361A37913F0400F11D023685878019912 -S315080028B0A2690123FEF7B8F828B1A37963F07F036C -S315080028C0A37101207FE0A37923F04003A371D4F814 -S315080028D0008040466169FEF7CBFE814628B9A37998 -S315080028E063F07F03A37102206DE0D9445FEA552A9D -S315080028F029D098F802300AEB0B029A4288BFCBEB34 -S31508002900030A98F8010039464A465FFA8AF3FEF741 -S315080029108BF828B1A37963F07F03A371012052E0F5 -S31508002920A369C9EB03018A450AD9019807EB412136 -S315080029304FF40072FEF7F6FAA37923F04003A37169 -S315080029404FEA4A2A28E0A3694B4511D0A268E368F2 -S315080029509A420DD298F8010001994A460123FEF7DA -S3150800296013F828B1A37963F07F03A37101202AE045 -S31508002970C4F81890A068C0F30800C0F5007A554559 -S3150800298038BFAA462044243039465246FEF7CAFACA -S31508002990A37943F04003A3715744A3685344A36043 -S315080029A0336853443360B5EB0A057FF448AFA36830 -S315080029B0E268934288BFE360A37943F02003A371DA -S315080029C0002000E0FFE703B0BDE8F08F38B5044605 -S315080029D0FEF774FB002849D1A37913F0200F46D0DF -S315080029E013F0400F0DD0214651F8243B5878A269C0 -S315080029F00123FEF719F800283BD1A37923F04003F9 -S31508002A00A3712068E169FEF73FFB002833D1256AE8 -S31508002A10EB7A43F02003EB72E3682B77A3891B0A52 -S31508002A206B77E389AB77E37BEB772369AB76C3F305 -S31508002A300722EA761B0C2B751B0A6B75FEF7A0F9A5 -S31508002A40A875C0F30723EB75030C2B76000E687682 -S31508002A500023AB74EB74A37923F02003A3712368D6 -S31508002A6001221A712068FEF7A5FD38BD38BD002081 -S31508002A7038BD012038BD38BD10B50446FFF7A6FF9E -S31508002A80034608B900222260184610BD70B50446F0 -S31508002A900D46FEF713FB002840F0BD80A37913F01E -S31508002AA0800F40F0B980E268AA4205D203F002031B -S31508002AB0DBB2002B08BF1546A2680023A360002DD1 -S31508002AC000F0AC802068867876026AB1013A691E01 -S31508002AD0B1FBF6F1B2FBF6F3994205D373421A40FD -S31508002AE0A260AD1A616918E02169A9B9FEF716FF57 -S31508002AF00146012805D1A37963F07F03A37102205B -S31508002B0070BDB0F1FF3F18BF206105D1A37963F00E -S31508002B107F03A371012070BD6161002940D0B542D1 -S31508002B202BD9A27912F0020F05D02068FEF7F6FE1F -S31508002B30014620B920E02068FEF7A6FD0146B1F15E -S31508002B40FF3F05D1A37963F07F03A371012070BD10 -S31508002B50012903D922689269914205D3A37963F0C2 -S31508002B607F03A371022070BD6161A2683244A2602E -S31508002B70AD1BAE42D5D300E03546A2682A44A26012 -S31508002B80C5F3080272B12068FEF772FD28B9A37969 -S31508002B9063F07F03A371022070BD00EB552502E0A8 -S31508002BA0002500E00025A368C3F3080343B3A26920 -S31508002BB0AA4225D0A37913F0400F11D0214651F827 -S31508002BC0243B58780123FDF72FFF28B1A37963F03A -S31508002BD07F03A371012070BDA37923F04003A3717D -S31508002BE0214651F8243B58782A460123FDF7CCFEA6 -S31508002BF028B1A37963F07F03A371012070BDA56195 -S31508002C00A368E26893420BD9E360A37943F02003F3 -S31508002C10A371002070BD70BD022070BD002070BD7C -S31508002C20002070BD30B58FB00EAB43F8340D0D469D -S31508002C30184605A90022FEF75DFA0446A0B902ABBC -S31508002C400B9340F23423C2F200030C9305A80199B2 -S31508002C50FFF732F8044638B90A9B23B105A8294676 -S31508002C60FEF712FC00E0062420460FB030BD00BF78 -S31508002C7030B599B018AB43F85C0D18460FA9012278 -S31508002C80FEF738FA034600284DD103AB159340F2F8 -S31508002C903423C2F2000316930FA80199FFF70CF824 -S31508002CA0034600283FD11499062300293BD0CC7A45 -S31508002CB014F0010F18BF072335D124E0012D98BF62 -S31508002CC0022330D906A80FA92422FEF72BF9089566 -S31508002CD006A80221FEF74EFD034620BB06A80021E2 -S31508002CE0FFF784F90346E8B1042814D01BE02DB198 -S31508002CF00F982946FFF73EFA0346A0B90F98FEF744 -S31508002D0059FC03460FE00F98FEF716F9054614F02E -S31508002D10100FD3D1FFE70FA8FFF700FA03460028E4 -S31508002D20E5D000E00723184619B030BD2DE9F04379 -S31508002D3083B081469046054600244E1E012711E0C1 -S31508002D40404601A93A466B46FFF780FC009B012BDB -S31508002D500AD19DF804300D2B04D005F8013B013447 -S31508002D600A2B01D0A642EBDC00232B709C4214BF31 -S31508002D704846184603B0BDE8F08300BF30B583B0B7 -S31508002D8004460D460A2802D10D20FFF7F7FF02A9CF -S31508002D9001F8084D28466946012201ABFFF72AFDCE -S31508002DA00198012814BF4FF0FF30012003B030BD51 -S31508002DB070B505460E46007860B100243146FFF727 -S31508002DC0DDFFB0F1FF3F08D0013415F8010F0028E8 -S31508002DD0F4D101E0002070BD204670BD7F2821D9BE -S31508002DE041B9C7281EBF44F6A012C0F60002012347 -S31508002DF00AD112E0FF2814D8803844F6A013C0F68A -S31508002E00000333F81000704732F8021F814205D0DC -S31508002E1001339BB2802BF7D100E000238033D8B270 -S31508002E2070470020704700BF61280CD044F2C0727A -S31508002E30C0F600020021013132F8023F53B1834245 -S31508002E40F9D10BB97047002144F6A023C0F6000358 -S31508002E5033F81100704700BF08B500F0BBFA01F05F -S31508002E6045F901F025F900F039FB00F00FF800F0FC -S31508002E709FFA08BD08B500F0AFFA01F053F900F063 -S31508002E806BFC00F013F800F06DFA08BD10B500F001 -S31508002E9087F800F0D3FE40F20104C2F200040123D1 -S31508002EA0237001F03FF80023237010BD08B540F2E7 -S31508002EB03C40C2F2000000F0C9FF01280BD140F2E5 -S31508002EC00103C2F2000301221A7040F23C40C2F22A -S31508002ED0000000F085F840F23C40C2F2000001F024 -S31508002EE06BF801280BD140F20103C2F2000300225D -S31508002EF01A7040F23C40C2F2000000F071F808BDBA -S31508002F00704700BF38B505460C4640F20103C2F2C9 -S31508002F1000031B78012B02D1C9B200F043FF40F22F -S31508002F200103C2F200031B781BB92846E1B201F07F -S31508002F300FF800F04DF838BD40F20103C2F2000365 -S31508002F401878022806D0032806D001280CBF0820C6 -S31508002F5040207047002070470020704740F2010368 -S31508002F60C2F200031878022806D0032806D00128E2 -S31508002F700CBF08204020704700207047002070478B -S31508002F8008B500F01BF808BD40F27C43C2F2000306 -S31508002F90FE22DA7018710222A3F84420704700BF97 -S31508002FA040F27C43C2F2000300221A709A6483F846 -S31508002FB04320A3F844209A705A70704740F27C4325 -S31508002FC0C2F200031878003018BF0120704700BF0E -S31508002FD040F27C43C2F20003002283F84320704784 -S31508002FE038B504460178FF2923D100F08DFA18B9BF -S31508002FF01020FFF7C9FF96E140F27C44C2F20004B4 -S315080030000023637001252570FF22E27010222271C9 -S315080030106371FFF791FFA071FFF7A0FFE071FFF75B -S315080030209DFF000A20726572A5720823A4F8443031 -S3150800303079E140F27C43C2F200031B78012B40F091 -S315080030409081C939352900F26B81DFE811F0DB0080 -S31508003050690169016501690169015901FC004201BB -S315080030602F0169016901690169016901690169013C -S3150800307069016901690169016901690169016901F2 +S315080001D070B540F20803C2F2000393F82432012BEB +S315080001E005D140F20800C2F2000002F04DFC03F00F +S315080001F0B3FF00F164064FF48844C4F200044025B6 +S3150800020003E003F0A9FF864205D32046294600F0FD +S315080002108BFE0028F5D044F2F460C0F6000002F028 +S315080002202FFD70BD08B540F20803C2F2000393F82B +S315080002302432012B05D140F20800C2F2000002F078 +S3150800024023FC08BD70B5064640F20803C2F2000357 +S3150800025093F82432012B10D140F20801C2F20001B2 +S3150800026002F0AEFD002808DA40F20800C2F20000EB +S31508000270002380F8243202F007FC317889B14FF464 +S315080002808844C4F200048025204600F049FE204632 +S31508000290294600F049FE0028F9D016F8011F002962 +S315080002A0F2D170BD00B583B00023009301934FF4DB +S315080002B08053C4F202031A6842F001021A605968B0 +S315080002C00022CFF6FF020A405A601A6822F08472AA +S315080002D022F480321A601A6822F480221A605A6858 +S315080002E022F4FE025A604FF41F029A601A6842F41A +S315080002F080321A604FF48053C4F2020340F2DC5293 +S31508000300196801F4003101910099013100910199B0 +S3150800031011B900999142F3D14FF48053C4F2020304 +S315080003201B6813F4003F06D144F22470C0F600009F +S315080003306E2103F055FC4FF40053C4F202031A6809 +S3150800034042F010021A601A6822F003021A601A684C +S3150800035042F002021A604FF48053C4F202035A684C +S315080003605A605A6842F400525A605A6842F48062E7 +S315080003705A605A6822F47C125A605A6842F4E812A3 +S315080003805A601A6842F080721A604FF48053C4F2B9 +S3150800039002031A6812F0007FFBD04FF48053C4F2B0 +S315080003A002035A6822F003025A605A6842F00202AF +S315080003B05A604FF48053C4F202035A6802F00C02E2 +S315080003C0082AFAD14FF48053C4F202039A6942F01C +S315080003D009029A614FF44062C4F20102516821F0A1 +S315080003E00F015160516841F008015160516821F0D0 +S315080003F0F0015160516841F0B00151600022C4F229 +S315080004000102516821F4C0415160516841F48041AC +S315080004105160DA6942F00072DA61DA6942F4003250 +S31508000420DA619A6942F005029A614FF40063C4F2F0 +S3150800043001031A6822F470621A601A6842F430627C +S315080004401A601A6822F470421A601A6842F48042E6 +S315080004501A6002F009FD02F015FDFCE738B5014601 +S315080004604FF46050C4F2000000F040FD4FF46054B1 +S31508000470C4F2000401252046294600F04BFD002859 +S31508000480F9D04FF46050C4F2000000F031FDC0B25C +S3150800049038BD00BF70B503F05FFE00F5FA76FF259C +S315080004A02846FFF7DBFF0446FF2803D003F054FE77 +S315080004B08642F5D8FF2C14BF0020012070BD00BF6E +S315080004C008B54FF44060C4F201004FF4805100F0C3 +S315080004D0B5FCFF20FFF7C2FF08BD00BF10B54FF4FB +S315080004E04060C4F201004FF4805100F0A9FCFF20DF +S315080004F0FFF7B4FFFFF7CEFF044610B9FFF7E0FF9A +S3150800050000E00124204610BD38B504460D4610F01B +S31508000510800F07D037200021FFF7F6FF01283AD8C9 +S3150800052004F07F04FFF7CCFFFFF7D8FF48B344F089 +S315080005304000FFF793FF280EFFF790FFC5F307402B +S31508000540FFF78CFFC5F30720FFF788FFE8B2FFF730 +S3150800055085FFE4B1082C16D00120FFF77FFF0C2C8D +S3150800056002D1FF20FFF77AFF0A24FF252846FFF766 +S3150800057075FF10F0800F0ED0631E13F0FF04F5D13F +S3150800058038BDFF2038BD8720FFF768FFECE79520C8 +S31508000590FFF764FFE8E738BD38B505460C46FFF7B0 +S315080005A079FF034620B32046FFF758FFFD2C08BF06 +S315080005B001231DD0AC1C05F2022514F8020CFFF726 +S315080005C04DFF14F8010CFFF749FF0234AC42F4D191 +S315080005D0FF20FFF743FFFF20FFF740FFFF20FFF74D +S315080005E03DFF00F01F00052814BF00230123FFE785 +S315080005F0184638BDF8B504460D4603F0ADFD00F1C2 +S315080006006407FF263046FFF729FFFF2804D103F0C9 +S31508000610A3FD8742F6D818E0FE2818D10234FF2633 +S315080006203046FFF71BFF04F8020C3046FFF716FFAB +S3150800063004F8010C0234023DF2D1FF20FFF70EFF49 +S31508000640FF20FFF70BFF0120F8BD0020F8BD0020B2 +S31508000650F8BD00BF2DE9F04389B0002840F0848139 +S3150800066040F20003C2F200031B7813F0020F06D013 +S3150800067040F20003C2F200031878C0B27FE10820F6 +S31508000680012100F0DFFB4FF48040012100F0ECFB74 +S315080006904FF48058ADF800804FF010098DF803909C +S315080006A003278DF802704FF44064C4F20104204613 +S315080006B0694600F071FB2046414600F0BFFB4FF447 +S315080006C02043ADF800308DF8027018238DF80330FA +S315080006D02046694600F060FB4FF48046ADF800609E +S315080006E048238DF803302046694600F055FB00255F +S315080006F0ADF808504FF48273ADF80A30ADF80C50D7 +S31508000700ADF80E50ADF810504FF40073ADF8123036 +S315080007103823ADF81430ADF816500723ADF8183065 +S3150800072006FA09F040F4605002A900F0AFFB06FA99 +S3150800073009F040F46050294600F0DEFB06FA09F09D +S3150800074040F46050012100F0C3FB2046414600F00A +S3150800075075FB4FF40045ADF804508DF806708DF81A +S315080007600790204601A900F017FB2046294600F00D +S3150800077065FB0A274FF46054C4F2000402264FF0C2 +S31508000780FF0801252046314600F0C4FB0028F9D0B1 +S315080007902046414600F0AAFB2046294600F0BAFB4F +S315080007A00028F9D0013FEDD14FF40043ADF80430ED +S315080007B003238DF8063018238DF807304FF440646C +S315080007C0C4F20104204601A900F0E6FA20464FF4D7 +S315080007D0805100F035FB00200146FFF795FE012801 +S315080007E040F0C48003F0B8FC00F57A7408204FF492 +S315080007F0D571FFF789FE012849D10DF11F060DF1C4 +S315080008001B05FF273846FFF729FE05F8010FB542F5 +S31508000810F8D19DF81E30012B40F0A8809DF81F30B6 +S31508000820AA2B40F0A380A9274FF0804503F094FC3B +S31508000830844205D938462946FFF766FE0028F5D1D1 +S3150800084003F08AFC844240F291803A200021FFF7A7 +S315080008505BFE002840F08A800DF11B04FF25284620 +S31508000860FFF7FCFD04F8010FB442F8D19DF81C20EF +S3150800087002F04002D2B2002A14BF0C22042240F22F +S315080008803023C2F200031A60FFF71AFE27E0A920F8 +S315080008900021FFF739FE012899BF0227A92501275C +S315080008A03D46002603F058FC844205D928463146C1 +S315080008B0FFF72AFE0028F5D103F04EFC844255D9ED +S315080008C010204FF40071FFF71FFE00284ED140F2AA +S315080008D03023C2F200031F60FFF7F2FDAFB340F208 +S315080008E00003C2F200031A7802F0FE021A704FF4EF +S315080008F06055C4F200052846002100F0E9FA0024F4 +S31508000900ADF808404FF48273ADF80A30ADF80C40E4 +S31508000910ADF80E40ADF810404FF40073ADF8123044 +S315080009200823ADF81430ADF816400723ADF8183093 +S31508000930284602A900F0AAFA2846214600F0DCFA61 +S315080009402846012100F0C4FA07E040F20003C2F28B +S3150800095000031A7842F001021A7040F20003C2F24C +S3150800096000031878C0B20AE0012008E040F23023FC +S31508000970C2F2000300221A60FFF7A2FDE5E709B0FC +S31508000980BDE8F08330B940F20003C2F200031878DC +S31508000990C0B270470120704770B50C461D46D3F1AA +S315080009A0010338BF002300280CBF184643F0010096 +S315080009B000283DD140F20003C2F200031B7813F071 +S315080009C0010F37D140F23023C2F200031B6813F03F +S315080009D0080F08BF5202012D0ED111201146FFF74C +S315080009E093FDF8B920464FF40071FFF703FED0F1E6 +S315080009F0010538BF002515E012201146FFF784FDD2 +S31508000A0080B94FF4007620463146FFF7F3FD28B14A +S31508000A1004F50074013D15F0FF05F4D10C20002102 +S31508000A20FFF772FDFFF74CFD281C18BF012070BDAB +S31508000A30042070BD032070BDF8B50D4617461E4646 +S31508000A40D3F1010338BF002300280CBF184643F032 +S31508000A50010000284DD140F20003C2F200031B78C2 +S31508000A6013F0010F47D140F20003C2F200031B78CE +S31508000A7013F0040F41D140F23023C2F200031B6881 +S31508000A8013F0080F08BF5702012E0DD1182039465A +S31508000A90FFF73AFD38BB2846FE21FFF77DFDD0F16A +S31508000AA0010638BF00261EE013F0060F03D0972074 +S31508000AB03146FFF729FD19203946FFF725FD90B97C +S31508000AC0FC2428462146FFF767FD28B105F5007581 +S31508000AD0013E16F0FF06F4D10020FD21FFF75CFD6C +S31508000AE0002808BF0126FFF7EBFC301C18BF0120C1 +S31508000AF0F8BD0420F8BD0320F8BD0220F8BD00BFEC +S31508000B0070B584B01446002840F03D8140F20003D9 +S31508000B10C2F200031B7813F0010F18BF032040F040 +S31508000B2034810E2900F21481DFE811F00F00160057 +S31508000B3012015C00120112011201120112011201C6 +S31508000B40C200CA00D900E800F700FFF7C7FCD0F1D9 +S31508000B50010438BF002412E109200021FFF7D4FC64 +S31508000B60002840F0F78068461021FFF743FD00286B +S31508000B7000F0F2809DF800309B09012B10D19DF8FA +S31508000B80072002F03F02120401329DF809309DF851 +S31508000B90081003EB012313449B0223600024EEE0B4 +S31508000BA09DF808209DF807309B0003EB92139DF8EB +S31508000BB0062002F0030203EB822201329DF805307B +S31508000BC003F00F039DF80A1003EBD1139DF80910E3 +S31508000BD001F0030103EB4103073B02FA03F3236029 +S31508000BE00024CCE040F23023C2F200031B6813F065 +S31508000BF0040F22D08D200021FFF786FC002840F044 +S31508000C00AD80FF20FFF72AFC68461021FFF7F2FCAB +S31508000C10002800F0A5803025FF263046FFF71EFC89 +S31508000C206B1E13F0FF05F8D19DF80A301B09102238 +S31508000C3002FA03F323600024A1E009200021FFF74C +S31508000C4063FC002840F08E8068461021FFF7D2FC2E +S31508000C50002800F0898040F23023C2F200031B68A6 +S31508000C6013F0020F12D09DF80A2002F03F029DF8F9 +S31508000C700B30DB0903EB420201329DF80D309B096C +S31508000C80013B02FA03F32360002478E09DF80B3059 +S31508000C909DF80A20C2F38402013203F003015B09BE +S31508000CA003EBC103013303FB02F32360002466E070 +S31508000CB040F23023C2F200031B68137000245EE082 +S31508000CC009200021FFF720FC00284FD120461021DB +S31508000CD0FFF790FCD0F1010438BF00244FE00A204A +S31508000CE00021FFF711FC002842D120461021FFF70A +S31508000CF081FCD0F1010438BF002440E03A200021ED +S31508000D00FFF702FCB0BB0025FF263046FFF7A6FB1F +S31508000D1060550135042DF8D12EE040F23023C2F299 +S31508000D2000031B6813F0040F08BF012427D08D2089 +S31508000D300021FFF7E9FB08BBFF20FFF78FFB2046E2 +S31508000D404021FFF757FCD0F1010438BF002416E014 +S31508000D50042414E0012412E0012410E001240EE02A +S31508000D6001240CE001240AE0012408E0012406E03D +S31508000D70012404E0012402E0002400E00124FFF736 +S31508000D809FFB204601E00420FFE704B070BD00BFCA +S31508000D900020C4F2AA2070472DE9F001CB7803F0B1 +S31508000DA00F0513F0100F1CBF8B781D430B78F3B19A +S31508000DB00768002301264FF00F0C06FA03F20C8889 +S31508000DC0144094420FD19A000CFA02F827EA080751 +S31508000DD005FA02F21743CA78282A08BF446102D0E6 +S31508000DE0482A08BF04610133082BE6D107600B883F +S31508000DF0FF2B20D94768002301264FF00F0C03F17B +S31508000E00080206FA02F20C88144094420FD19A009E +S31508000E100CFA02F827EA080705FA02F21743CA7815 +S31508000E20282A08BF4461CA78482A08BF04610133E2 +S31508000E30082BE4D14760BDE8F001704701617047AF +S31508000E404161704739B14FF48053C4F202039A697D +S31508000E501043986170474FF48053C4F202039A69AD +S31508000E6022EA00009861704739B14FF48053C4F202 +S31508000E700203DA691043D86170474FF48053C4F20D +S31508000E800203DA6922EA0000D861704710B40288C2 +S31508000E9002F441524C880B8823438C882343CC8820 +S31508000EA023430C8923434C8923438C892343CC89C8 +S31508000EB0234313439BB20380838B23F400631B04F1 +S31508000EC01B0C83830B8A03825DF8044B704700BFB3 +S31508000ED029B103889BB243F0400303807047038817 +S31508000EE023F040031B041B0C038070478181704765 +S31508000EF0808980B2704700BF29B103889BB243F44A +S31508000F00005303807047038823F400531B041B0C0B +S31508000F1003807047038919420CBF002001207047DF +S31508000F20C1F3080181807047038819420CBF00206D +S31508000F300120704732B1821811F8013B00F8013BD5 +S31508000F409042F9D1704700BFCA7E8B7E43EA0223DE +S31508000F500278032A01BF487D0A7D42EA002243EA55 +S31508000F6002431846704700BF00F10B010023DA015F +S31508000F7042EA5303DBB210F8012B1344DBB2884272 +S31508000F80F5D11846704700BF10B504460A464078A2 +S31508000F9004F134010123FFF7FFFCD0BB94F8332298 +S31508000FA094F8323243EA022212B24AF65523CFF6B1 +S31508000FB0FF739A422FD194F86D2094F86C301B0475 +S31508000FC043EA026294F86A30134394F86B2043EAC2 +S31508000FD0022222F07F4244F24613C0F254039A4298 +S31508000FE01BD094F8890094F888301B0443EA006003 +S31508000FF094F88630034394F8870043EA002020F0EB +S315080010007F4044F24613C0F25403C01A18BF0120A9 +S3150800101010BD032010BD022010BD002010BD00BF6A +S315080010202DE9F041044603791BB3056B00F134073B +S31508001030407839462A460123FFF7FEFCE0B900232B +S315080010402371636A9D421AD3E26913449D4219D2F9 +S31508001050E678012E19D94FF00108E269154460783F +S3150800106039462A464346FFF7E7FC013E012EF4D1EE +S315080010700EE00020BDE8F0810120BDE8F0810020E7 +S31508001080BDE8F0810020BDE8F0810020BDE8F081D0 +S315080010900020BDE8F08100BF38B504460D46036B55 +S315080010A08B420CD0FFF7BCFF58B9607804F13401C5 +S315080010B02A460123FFF770FC28B9256338BD0020AE +S315080010C038BD012038BD012038BD00BF08B588B13C +S315080010D003688BB1197889B1D988828891420FD172 +S315080010E05878FFF74FFC00F00100002814BF0320D2 +S315080010F0002008BD092008BD092008BD092008BD33 +S31508001100092008BD2DE9F041154603681C78303CD6 +S31508001110092C00F2B5815A783A2A40F0B181023397 +S31508001120036000230B60002C40F0718140F23843C5 +S31508001130C2F200031C68002C00F06C810C60237856 +S315080011408BB16078FFF71EFC10F0010F0BD1002D54 +S3150800115000F0638100F00400C0B2002814BF0A2022 +S315080011600020BDE8F081002020706070FFF772FA59 +S3150800117010F0010F40F054811DB110F0040F40F03B +S31508001180528120460021FFF7FFFE012818BF0025DF +S3150800119017D194F8F631002B00F0488194F8FD2118 +S315080011A094F8FC311B0443EA026294F8FA311343BB +S315080011B094F8FB5143EA052520462946FFF7E4FE45 +S315080011C0FFE7032800F03581002840F0358194F8C0 +S315080011D0402094F83F3043EA02231BB2B3F5007F60 +S315080011E040F02D8194F84B0094F84A3053EA0020D9 +S315080011F00DD194F85B2094F85A301B0443EA026236 +S3150800120094F85830134394F8590043EA0020E061F3 +S3150800121094F84410E1704B1EDBB2012B00F21281E8 +S3150800122094F84130A370002B00F00F815A1E1A4221 +S3150800123040F00E8194F8466094F8452042EA06226A +S31508001240228112F00F0F40F0068194F8487094F846 +S31508001250476056EA07260DD194F8577094F85660F9 +S31508001260360446EA076794F854603E4394F8557086 +S3150800127046EA072694F843C094F8427057EA0C27C2 +S3150800128000F0EC8001FB00FC07EB121161448E4272 +S31508001290C0F0E780761AB6FBF3F3002B00F0E48083 +S315080012A040F6F576B3428CBF022601264FF6F5784E +S315080012B0434500F2E8800233A36125622F44676242 +S315080012C02944E162032E13D1002A40F0D08094F815 +S315080012D0631094F86220120442EA016194F86020CF +S315080012E00A4394F8611042EA0122A2629B000EE0CA +S315080012F0002A00F0BF806744A762022E0FBF5B007A +S3150800130003225A4303F0010318BF03EB520303F207 +S31508001310FF13B0EB532FC0F0B0804FF0FF332361BB +S315080013200023E360032E63D1637194F8652094F873 +S31508001330643043EA02222A446261607804F1340187 +S315080013400123FFF729FB002852D194F8332294F899 +S31508001350323243EA022212B24AF65523CFF6FF7317 +S315080013609A4245D194F8372094F836301B0443EA5C +S31508001370026294F83430134394F8352043EA022283 +S3150800138045F25223C4F261139A4231D194F81B22D2 +S3150800139094F81A321B0443EA026294F8183213438B +S315080013A094F8192243EA022247F27223C6F241133D +S315080013B09A421DD194F8232294F822321B0443EA58 +S315080013C0026294F82032134394F8212243EA022356 +S315080013D0E36094F81F2294F81E321B0443EA026263 +S315080013E094F81C32134394F81D2243EA022323611E +S315080013F0267040F23443C2F200031A88013292B2D0 +S315080014001A80E280002020632071BDE8F0810B205D +S31508001410BDE8F0810C20BDE8F0810020BDE8F08130 +S315080014200320BDE8F0810A20BDE8F0810D20BDE863 +S31508001430F0810120BDE8F0810D20BDE8F0810D2086 +S31508001440BDE8F0810D20BDE8F0810D20BDE8F081F2 +S315080014500D20BDE8F0810D20BDE8F0810D20BDE826 +S31508001460F0810D20BDE8F0810D20BDE8F0810D204A +S31508001470BDE8F0810D20BDE8F0810D20BDE8F081C2 +S3150800148000230B6052E60233A36125622F4467628C +S315080014902944E162032617E72DE9F0410D4601F1DB +S315080014A009020369002B5ED0416991F80C800B781C +S315080014B0202B1BD00E46002408F00807FFB203E0D5 +S315080014C016F8013F202B11D0052B08BFE52347B19D +S315080014D0A3F1410C5FFA8CFCBCF1190F9CBF2033B9 +S315080014E0DBB202F8013B0134082CE9D10B7A202B38 +S315080014F022D0561C2E2313700B7A202B1BD001F1F9 +S315080015000804171D324608F010085FFA88F603E04B +S3150800151014F8013F202B0FD046B1A3F1410C5FFA16 +S315080015208CFCBCF1190F9CBF2033DBB202F8013BDF +S31508001530BA42EDD100E03246CB7A2B72CC7F8B7F54 +S315080015401B0443EA04630C7F23434C7F43EA0423CA +S315080015502B604C7E0B7E43EA0423AB80CC7D8B7DCF +S3150800156043EA0423EB8000231370AE6946B3EB69A4 +S3150800157033B3036900240BB3028C4FF6FF739A4208 +S3150800158008BF00241AD0C769388890B10024A0463D +S31508001590414601F02BFC70B1EA69013AA2420CD926 +S315080015A00134321902F8010C37F8020F0028EFD17E +S315080015B004E0002402E0002400E000240023335560 +S315080015C0BDE8F08110B50446FFF72AFD034600285A +S315080015D054D12378032B49D16379002B46D00023B5 +S315080015E0236304F1340104F50D700B46002203F859 +S315080015F0012B8342FBD1552384F83232AA2384F87F +S315080016003332522384F8343084F83530612384F831 +S315080016103630412284F83720722084F8180284F87C +S31508001620190284F81A2284F81B32236984F81C32BA +S31508001630C3F3072284F81D221A0C84F81E221B0EF7 +S3150800164084F81F32E36884F82032C3F3072284F84B +S3150800165021221A0C84F822221B0E84F82332607881 +S3150800166062690123FFF7E8F90023637160780021B6 +S315080016700A46FFF745FA031C18BF0123184610BD92 +S3150800168002398369023B99423DBF8278C36A02FBED +S3150800169001300020704700BFF8B505460C46012901 +S315080016A05CD9836999425BD20378022B28D0032B35 +S315080016B038D0012B56D101EB5106416A01EB562170 +S315080016C0FFF7EAFC002850D1C6F308032B4493F829 +S315080016D034700136696A284601EB5621FFF7DCFCAF +S315080016E0002845D1C6F30806354495F8340047EA7C +S315080016F0002014F0010F14BF0009C0F30B00F8BD59 +S31508001700416A01EB1421FFF7C7FCA0BB640004F48F +S31508001710FF742B1993F834302C4494F8350043EAB7 +S315080017200020F8BD416A01EBD411FFF7B5FC28BBD0 +S31508001730A40004F4FE742B1993F8360093F83720A6 +S31508001740120642EA004293F8350042EA00202C4489 +S3150800175094F83430184320F07040F8BD0120F8BDE5 +S315080017600120F8BD4FF0FF30F8BD4FF0FF30F8BD4F +S315080017704FF0FF30F8BD4FF0FF30F8BD4FF0FF30A7 +S31508001780F8BD00BF70B504460D46E18081680129A1 +S3150800179038D003689A69914236D271B91A78032A01 +S315080017A001D1996A49B90022E2601A89AA422DD95B +S315080017B09B6A03EB151323611BE09E783601B5423D +S315080017C010D32068FFF768FF0146B0F1FF3F1FD02E +S315080017D001281FD923689B6998421DD2AD1BADB25B +S315080017E0AE42EED9E1602068FFF74AFF00EB15101C +S315080017F0206105F00F05236803EB45133433636155 +S31508001800002070BD022070BD022070BD022070BD90 +S31508001810012070BD022070BD022070BDF8B50546D6 +S315080018200C461646012998BF02237CD9836999423A +S3150800183028BF022377D20378022B40D0032B50D03F +S31508001840012B18BF02236BD101EB5107416A01EB4B +S315080018505721FFF721FC0346002861D1C7F3080387 +S3150800186014F001041FBFEA1892F8342002F00F02A0 +S31508001870F1B21ABF42EA0112D2B2F2B22B4483F88D +S315080018803420013701232B71696A284601EB572159 +S31508001890FFF702FC0346002842D1C7F3080714B134 +S315080018A0C6F3071607E0EA1992F8342022F00F0269 +S315080018B0C6F3032616432F4487F8346030E0416A9E +S315080018C001EB1421FFF7E8FB034648BB640004F468 +S315080018D0FF742A1982F83460C6F3072682F8356041 +S315080018E01EE0416A01EBD411FFF7D6FB0346B8B9EF +S315080018F0A40004F4FE742A1992F8371009062C4439 +S3150800190001F070410E4384F83460C6F3072182F86B +S315080019103510310C82F83610360E82F83760FFE73C +S3150800192001222A71FFE71846F8BD00BF2DE9F041EC +S315080019300546884631B9C66876B183699E4228BF8E +S3150800194001260AE0FFF7A8FE012847D9AB699842A5 +S3150800195028BF464601D24DE0012634460227013407 +S31508001960AB699C4202D3012E3BD93C462846214608 +S31508001970FFF792FE38B1B0F1FF3F18BF012833D008 +S31508001980B442ECD132E02646284621466FF0704232 +S31508001990FFF744FF0346D0F1010038BF0020B8F135 +S315080019A0000F08BF002028B1284641462246FFF707 +S315080019B035FF03465BB9EE602B69B3F1FF3F18D0DC +S315080019C0013B2B6101236B712046BDE8F081012B99 +S315080019D014BF01204FF0FF30BDE8F0810120BDE8BB +S315080019E0F0810020BDE8F081BDE8F0810020BDE867 +S315080019F0F0812046BDE8F0812DE9F84304460E46FD +S31508001A00C5880135ADB2002D6AD00369002B6AD0AE +S31508001A1015F00F075BD101330361C16821B903686B +S31508001A201B89AB4262D952E000688378013B13EA0E +S31508001A3015134CD1FFF730FE8046012859D9B0F16D +S31508001A40FF3F59D020688369984539D3002E56D070 +S31508001A50E168FFF76BFF8046002853D0012854D071 +S31508001A60B0F1FF3F54D02068FFF7DAFA002852D1C8 +S31508001A70236803F1340100231A46CA540133B3F527 +S31508001A80007FFAD1266830464146FFF7F9FD3063F4 +S31508001A9000264FF001090CE083F804902068FFF750 +S31508001AA0BFFA00283AD123681A6B01321A63013645 +S31508001AB0F6B223689A78B242EED81A6B921B1A636A +S31508001AC0C4F80C8020684146FFF7DAFD2061E580FE +S31508001AD0236803EB4713343363610020BDE8F883BA +S31508001AE00420BDE8F8830420BDE8F8830420BDE897 +S31508001AF0F8830220BDE8F8830120BDE8F8830420B6 +S31508001B00BDE8F8830720BDE8F8830220BDE8F8831E +S31508001B100120BDE8F8830120BDE8F8830120BDE86F +S31508001B20F88300BF2DE9F04F89B005460021FFF77D +S31508001B3029FE002840F0AC804FF0FF09C8464F4602 +S31508001B4044F2C071C0F60001029101F10C02049240 +S31508001B504FF6FF7A4FF0000B28682969FFF79CFAC1 +S31508001B60002840F096806C692678002E00F0928056 +S31508001B70E37A03F03F02E52E7FD013F0080F04D076 +S31508001B800F2A18BFB8467BD101E00F2A58D1EB6956 +S31508001B900193002B74D016F0400F06D094F80D90E0 +S31508001BA006F0BF06EB882B8403E0B04518BFB8469D +S31508001BB066D1617B0391494518BFB84660D1237841 +S31508001BC023F04003013B03EB430203EB8202059239 +S31508001BD0029A02F1FF394FF001080796059E06950D +S31508001BE04546DDF8108019F8013FE2185078E35CA5 +S31508001BF043EA00207DB101F01FF90546FE2E56D8AE +S31508001C00731C0593019931F8160001F015F9854200 +S31508001C104FD1059E01E050454DD1C145E3D1A846B7 +S31508001C200596079E069D237813F0400F39D0B8F124 +S31508001C30000F36D0059A019931F812308BB33BE084 +S31508001C40B8F1000F04D12046FFF78EF9484523D096 +S31508001C50A5F820A0AB69DA7A12F0010F08BF04F1E3 +S31508001C600B0002D00BE0844218D014F8011B13F8BD +S31508001C70012B9142F7D0B84602E0B84600E0B846D4 +S31508001C8028465946FFF7B8FE00283FF465AF07E037 +S31508001C9016E015E0042013E0002011E000200FE014 +S31508001CA00EE0013E5FFA86F8DDF80C90E8E7069D3F +S31508001CB002E0069D00E0069DDDF80C90B846DFE7D9 +S31508001CC009B0BDE8F08F00BF2DE9F04F87B0814617 +S31508001CD088460B782F2B18BF5C2B08BF01F101082B +S31508001CE00023836098F800301F2B07D80021FFF7E0 +S31508001CF049FD03460022C9F814207AE14FF0010A8B +S31508001D0044F22C7BC0F6000B44F23871C0F6000191 +S31508001D10049144F24072C0F60002059298F8003029 +S31508001D202F2B18BF5C2B08D108F10103984613F82E +S31508001D30012B2F2A18BF5C2AF8D0D9F81C5098F81E +S31508001D4000002F2818BF1F282CD95C2800F02D81E9 +S31508001D50AF1E4646544607E05C2B00F02881B2F5D4 +S31508001D60807F00F041811446514601F03FF8014654 +S31508001D70002800F039817F2809D8222900F034810B +S31508001D805A4612F8013F13B19842FAD12CE127F8C6 +S31508001D90021F621C16F8013F18462F2B18BF1F2B6F +S31508001DA0DAD801E00024524690441F2898BF04263A +S31508001DB001D90026FFE7002C00F0168104F1004344 +S31508001DC0013B5A0035F813302E2B18BF202B40F054 +S31508001DD0F080931C2B4407E033F8042C023B2E2A90 +S31508001DE018BF202A40F0E580013CF5D1FCE003F855 +S31508001DF0011B8342FBD12B88202B18BF2E2B40F0CA +S31508001E00E48028460023013330F8021F202918BF32 +S31508001E102E29F8D0002B00F0D98046F00306D5E02D +S31508001E20013C05D10821039100220192029205E0A6 +S31508001E30023A32F8021C2E29F2D1F3E75F1C35F874 +S31508001E401300002861D0202808D0E31B18BF0123FF +S31508001E502E2814BF002203F001021AB146F0030629 +S31508001E603B46EBE7019A0399BC4218BF8A4214D352 +S31508001E700B2903D146F00306029A49E00BB146F056 +S31508001E800306A74243D8029A9300DBB2029323467D +S31508001E900B21039108220192D0E77F280DD9002152 +S31508001EA000F0A4FF0346002800F0A08005990B4423 +S31508001EB013F8800C46F0020650B101462B2807D0CD +S31508001EC0049A12F8013F002B00F087809942F8D156 +S31508001ED046F003065F2010E0029A42F002020292E0 +S31508001EE00BE0A0F161039BB2192B9FBF029B43F045 +S31508001EF001030293203898BF80B2D9F818300199A7 +S31508001F0058543B460131019198E7029A00E0029A3B +S31508001F10D9F818301978E52904BF05211970039BEB +S31508001F20082B02BF9200D2B20292029901F00C036A +S31508001F300C2B03D001F00302032A01D146F0020656 +S31508001F4016F0020F0AD1029901F00302012A08BF0E +S31508001F5046F01006042B08BF46F00806D9F81830D4 +S31508001F60DE724846FFF7DEFDD9F81830DA7A0346FE +S31508001F7048B104283DD102F00403DBB2002B14BF9C +S31508001F800346052335E012F0040F32D1D9F81410B0 +S31508001F90CB7A13F0100F06D0D9F80000FEF7D4FF5D +S31508001FA0C9F80800BAE6052323E0002452469044FF +S31508001FB0FFE66700EA194FF0000325F81430D9F850 +S31508001FC0183003F10B00202111E700232F4437F8BE +S31508001FD0021C2E293FF426AF22E7A0F141039BB24B +S31508001FE0192B7FF679AF7CE7062302E046F0020656 +S31508001FF06EE7184607B0BDE8F08F00BF2DE9F04F31 +S3150800200083B0044689464FF0FF0B5E460425D84642 +S3150800201044F2C07AC0F6000A0AF10C0300930027BE +S3150800202070E02068FFF738F8054600286ED1626927 +S315080020301378002B74D0D17AE52B18BF2E2B59D0E4 +S3150800204001F03F01082914BF00200120484518BFA8 +S31508002050464651D10F2943D113F0400F06D092F8C6 +S315080020600DB003F0BF03E188218403E09E4218BF48 +S31508002070464641D192F80DE0DE4518BF46463BD1AB +S31508002080D4F81CC0117801F03F01013901EB410574 +S3150800209001EB85050AF1FF3101260193DDF800B051 +S315080020A011F8013FD0184078D35C43EA002036B1D6 +S315080020B0FE2D32D82CF815000646013503E04FF6FA +S315080020C0FF73984229D15945EAD1019B127812F03B +S315080020D0400F1ED0FE2D98BF2CF8157019D91CE09C +S315080020E010461EB9FEF740FF58451BD04FF6FF7342 +S315080020F0238417E04646FFE720463946FFF77CFC6F +S31508002100054618B9216900298BD15DB100232361E1 +S3150800211008E0013BDEB2F346EEE7F3464646EBE758 +S315080021200425F3E7284603B0BDE8F08F2DE9F04112 +S315080021300446C588018C4FF6FF73994208BF2946A5 +S31508002140FFF720FB0346D0B9E52701264FF0000824 +S3150800215020682169FEF7A0FF034668B9626917700F +S3150800216022681671E288AA4209D220464146FFF73C +S3150800217043FC03460028EBD0042B08BF022318466D +S31508002180BDE8F0812DE9F04104460E46012998BFC5 +S3150800219002212BD983699E4228BF022126D2002715 +S315080021A04FF0010820463146FFF776FA0546C0B1DA +S315080021B0012818D0B0F1FF3F17D0204631463A46DD +S315080021C0FFF72CFB014688B92369B3F1FF3F1EBF11 +S315080021D00133236184F80580A369AB4206D92E46EC +S315080021E0E0E7002102E0022100E001210846BDE8FF +S315080021F0F08100BF70B582B0054616461C460B2214 +S31508002200FEF798FE052C0BD9B21EE30343EA5404E5 +S31508002210A4B232F8023F1C44A4B25388002BF4D16E +S31508002220072204F00F0101F13003392B88BF01F1B1 +S315080022303703013A00A911444B702409F1D1144619 +S315080022407E2102AB134403F8081C62B12B78202BBD +S315080022500BD0294600230133A34207D011F8010FFA +S315080022602028F8D102E0002300E000232020072AD6 +S315080022709FBF02A9891811F8081C013288BF0146B8 +S31508002280E9540133072BF2D902B070BD2DE9F04F9E +S3150800229087B004468769C66903A839460C22FEF743 +S315080022A049FE9DF8173013F0010F21D00023FB7269 +S315080022B0E3610125384603A932462B46FFF79AFF04 +S315080022C02046FFF72FFC034620B90135ADB2642D31 +S315080022D0F0D1D5E0642D08BF072000F0EF80042B6D +S315080022E018BF184640F0EA809DF81730FB72E66181 +S315080022F09DF8173013F0020F08BF012716D0338850 +S315080023003BB1002301339BB236F81320002AF9D1DA +S3150800231000E0002319334EF64F42C4F6C46282FB2E +S315080023200317DB17C3EBA707BFB2FFE72046002159 +S31508002330FFF728FA0346002840F0BF800025A84684 +S31508002340012620682169FEF7A7FE0346002840F00B +S31508002350B48063691B78E52B18BF002B03D10135C0 +S31508002360AF4201D18EE0454620463146FFF744FB91 +S3150800237003460028E5D0A0E0E188C9EB0101204624 +S3150800238089B2FFF7FFF90346002840F09680A06956 +S31508002390FEF7EAFD01904FF000084FF6FF7544F28C +S315080023A0C076C0F60006FF2720682169FEF774FE8E +S315080023B00346002840F08180D4F81CA061695FFAC2 +S315080023C089FB019A4A734FF00F03CB7281F80C8090 +S315080023D081F81A8081F81B800BF1FF3303EB430069 +S315080023E003EB80000122434602E070462B46013289 +S315080023F0AB424ED000F1010E3AF81030B01810F882 +S31508002400010C0B5408444FEA132C80F801C0002B2A +S3150800241049D070460C2AEAD9AB4202D03AF81030B5 +S315080024200BB94BF0400B81F800B023684FF001015F +S31508002430197120464146FFF7DFFA034600283CD1CA +S3150800244009F1FF391FFA89F9B9F1000FACD12DE06E +S31508002450636903F12001002203F8012B8B42FBD1AB +S315080024606069A1690B22FEF765FD6369A269D27AE4 +S3150800247002F018021A73236801221A7100201DE05F +S3150800248007201BE0013F1FFA87F9B9F1000F0DD0AD +S3150800249072E706EB020E1EF801EC01F80E708E4488 +S315080024A08EF80170B6E70C2A9FD9BAE72068216929 +S315080024B0FEF7F2FD0028CBD000E0184607B0BDE8CD +S315080024C0F08F00BF88B940F23843C2F200031B6898 +S315080024D00BB100221A7009B100230B7040F2384381 +S315080024E0C2F200031960002070470B20704700BF36 +S315080024F02DE9F0438FB0019115460446002800F0F7 +S3150800250094800023036001A805A902F01E02FEF7C5 +S31508002510F9FD002840F08B8005F01F0702AB0B93EE +S3150800252040F23423C2F200030C9305A80199FFF781 +S31508002530CBFB0A9E034600287FD1002E78D17BE08C +S315080025405BB1042B40F0858005A8FFF79FFE47F096 +S3150800255008070A9E034638B17BE0F37A13F0110F99 +S3150800256070D115F0040F6FD117F0080F3CD0FEF7A5 +S315080025700FFCB073C0F30723F373030C3374000E18 +S3150800258070740025F57235777577B577F577DDF8C8 +S31508002590148040463146FEF7D7FCB576F576357594 +S315080025A07575012388F804300546E8B1D8F83090E7 +S315080025B040462946FFF7E6FD0346002849D1059817 +S315080025C0013DC5604946FEF767FD03460AE0F37A12 +S315080025D013F0100F3AD115F0020F05D013F0010FC2 +S315080025E036D101E0002B34D117F0080F18BF47F099 +S315080025F02007059D2B6BE3612662A77128463146A5 +S31508002600FEF7A2FC2061F27FB37F1B0443EA026354 +S31508002610327F1343727F43EA0223E3600020A060FF +S31508002620A0612560EB88A38014E0092012E011E080 +S3150800263015F01C0F91D1CAE7062315F01C0F7FF47D +S315080026407FAFCFE7072304E0082302E0042300E076 +S31508002650072318460FB0BDE8F08300BF2DE9F04FF9 +S3150800266083B004460F4690461E4600233360FEF7A5 +S315080026702DFD002840F0BF80A37913F0800F18BF06 +S31508002680022040F0BC8013F0010F08BF072000F0BD +S31508002690B680E568A368ED1AA84538BF4546002DFB +S315080026A000F0AA8004F124030193A368C3F3080287 +S315080026B0002A40F08680206890F802A00AF1FF3AC6 +S315080026C00AEA532A1AF0FF0A17D10BB9206902E061 +S315080026D06169FEF7E1FF012805D8A37963F07F0356 +S315080026E0A37102208BE0B0F1FF3F05D1A37963F017 +S315080026F07F03A371012082E06061D4F80080404620 +S315080027006169FEF7BDFF814628B9A37963F07F03A7 +S31508002710A371022073E0D1445FEA552B29D098F8BB +S3150800272002300BEB0A029A4288BFCAEB030B98F8F1 +S31508002730010039464A465FFA8BF3FEF72DF928B1B0 +S31508002740A37963F07F03A371012058E0A37913F0FE +S31508002750400F0BD0A369C9EB0300834506D907EBE5 +S31508002760402001994FF40072FEF7E4FB4FEA4B2B29 +S3150800277035E0A2694A4522D0A37913F0400F10D05C +S3150800278098F8010001990123FEF756F928B1A379B3 +S3150800279063F07F03A371012031E0A37923F040039E +S315080027A0A3712368587801994A460123FEF7F4F87D +S315080027B028B1A37963F07F03A37101201FE0C4F851 +S315080027C01890A168C1F30801C1F5007B5D4538BFC3 +S315080027D0AB462144384624315A46FEF7ABFB5F44E4 +S315080027E0A3685B44A36033685B443360B5EB0B05B1 +S315080027F07FF45BAF02E002E0002000E0002003B0B7 +S31508002800BDE8F08F2DE9F04F83B004460F46154614 +S315080028101E4600233360FEF759FC002840F0DA8094 +S31508002820A37913F0800F18BF022040F0D48013F06C +S31508002830020F08BF072000F0CE80E368DD4280F073 +S31508002840BE80002D00F0BB8004F124030193A36829 +S31508002850C3F30802002A40F09580206890F802B079 +S315080028600BF1FF3B0BEA532B1BF0FF0B21D13BB9B6 +S31508002870236963B90021FFF759F80346206103E08D +S315080028806169FFF753F80346002B00F09880012B87 +S3150800289005D1A37963F07F03A37102209BE0B3F10E +S315080028A0FF3F05D1A37963F07F03A371012092E06E +S315080028B06361A37913F0400F11D023685878019902 +S315080028C0A2690123FEF7B8F828B1A37963F07F035C +S315080028D0A37101207FE0A37923F04003A371D4F804 +S315080028E0008040466169FEF7CBFE814628B9A37988 +S315080028F063F07F03A37102206DE0D9445FEA552A8D +S3150800290029D098F802300AEB0B029A4288BFCBEB23 +S31508002910030A98F8010039464A465FFA8AF3FEF731 +S315080029208BF828B1A37963F07F03A371012052E0E5 +S31508002930A369C9EB03018A450AD9019807EB412126 +S315080029404FF40072FEF7F6FAA37923F04003A37159 +S315080029504FEA4A2A28E0A3694B4511D0A268E368E2 +S315080029609A420DD298F8010001994A460123FEF7CA +S3150800297013F828B1A37963F07F03A37101202AE035 +S31508002980C4F81890A068C0F30800C0F5007A554549 +S3150800299038BFAA462044243039465246FEF7CAFABA +S315080029A0A37943F04003A3715744A3685344A36033 +S315080029B0336853443360B5EB0A057FF448AFA36820 +S315080029C0E268934288BFE360A37943F02003A371CA +S315080029D0002000E0FFE703B0BDE8F08F38B50446F5 +S315080029E0FEF774FB002849D1A37913F0200F46D0CF +S315080029F013F0400F0DD0214651F8243B5878A269B0 +S31508002A000123FEF719F800283BD1A37923F04003E8 +S31508002A10A3712068E169FEF73FFB002833D1256AD8 +S31508002A20EB7A43F02003EB72E3682B77A3891B0A42 +S31508002A306B77E389AB77E37BEB772369AB76C3F3F5 +S31508002A400722EA761B0C2B751B0A6B75FEF7A0F995 +S31508002A50A875C0F30723EB75030C2B76000E687672 +S31508002A600023AB74EB74A37923F02003A3712368C6 +S31508002A7001221A712068FEF7A5FD38BD38BD002071 +S31508002A8038BD012038BD38BD10B50446FFF7A6FF8E +S31508002A90034608B900222260184610BD70B50446E0 +S31508002AA00D46FEF713FB002840F0BD80A37913F00E +S31508002AB0800F40F0B980E268AA4205D203F002030B +S31508002AC0DBB2002B08BF1546A2680023A360002DC1 +S31508002AD000F0AC802068867876026AB1013A691EF1 +S31508002AE0B1FBF6F1B2FBF6F3994205D373421A40ED +S31508002AF0A260AD1A616918E02169A9B9FEF716FF47 +S31508002B000146012805D1A37963F07F03A37102204A +S31508002B1070BDB0F1FF3F18BF206105D1A37963F0FE +S31508002B207F03A371012070BD6161002940D0B542C1 +S31508002B302BD9A27912F0020F05D02068FEF7F6FE0F +S31508002B40014620B920E02068FEF7A6FD0146B1F14E +S31508002B50FF3F05D1A37963F07F03A371012070BD00 +S31508002B60012903D922689269914205D3A37963F0B2 +S31508002B707F03A371022070BD6161A2683244A2601E +S31508002B80AD1BAE42D5D300E03546A2682A44A26002 +S31508002B90C5F3080272B12068FEF772FD28B9A37959 +S31508002BA063F07F03A371022070BD00EB552502E098 +S31508002BB0002500E00025A368C3F3080343B3A26910 +S31508002BC0AA4225D0A37913F0400F11D0214651F817 +S31508002BD0243B58780123FDF72FFF28B1A37963F02A +S31508002BE07F03A371012070BDA37923F04003A3716D +S31508002BF0214651F8243B58782A460123FDF7CCFE96 +S31508002C0028B1A37963F07F03A371012070BDA56184 +S31508002C10A368E26893420BD9E360A37943F02003E3 +S31508002C20A371002070BD70BD022070BD002070BD6C +S31508002C30002070BD30B58FB00EAB43F8340D0D468D +S31508002C40184605A90022FEF75DFA0446A0B902ABAC +S31508002C500B9340F23423C2F200030C9305A80199A2 +S31508002C60FFF732F8044638B90A9B23B105A8294666 +S31508002C70FEF712FC00E0062420460FB030BD00BF68 +S31508002C8030B599B018AB43F85C0D18460FA9012268 +S31508002C90FEF738FA034600284DD103AB159340F2E8 +S31508002CA03423C2F2000316930FA80199FFF70CF814 +S31508002CB0034600283FD11499062300293BD0CC7A35 +S31508002CC014F0010F18BF072335D124E0012D98BF52 +S31508002CD0022330D906A80FA92422FEF72BF9089556 +S31508002CE006A80221FEF74EFD034620BB06A80021D2 +S31508002CF0FFF784F90346E8B1042814D01BE02DB188 +S31508002D000F982946FFF73EFA0346A0B90F98FEF733 +S31508002D1059FC03460FE00F98FEF716F9054614F01E +S31508002D20100FD3D1FFE70FA8FFF700FA03460028D4 +S31508002D30E5D000E00723184619B030BD2DE9F04369 +S31508002D4083B081469046054600244E1E012711E0B1 +S31508002D50404601A93A466B46FFF780FC009B012BCB +S31508002D600AD19DF804300D2B04D005F8013B013437 +S31508002D700A2B01D0A642EBDC00232B709C4214BF21 +S31508002D804846184603B0BDE8F08300BF30B583B0A7 +S31508002D9004460D460A2802D10D20FFF7F7FF02A9BF +S31508002DA001F8084D28466946012201ABFFF72AFDBE +S31508002DB00198012814BF4FF0FF30012003B030BD41 +S31508002DC070B505460E46007860B100243146FFF717 +S31508002DD0DDFFB0F1FF3F08D0013415F8010F0028D8 +S31508002DE0F4D101E0002070BD204670BD7F2821D9AE +S31508002DF041B9C7281EBF44F6B012C0F60002012327 +S31508002E000AD112E0FF2814D8803844F6B013C0F669 +S31508002E10000333F81000704732F8021F814205D0CC +S31508002E2001339BB2802BF7D100E000238033D8B260 +S31508002E3070470020704700BF61280CD044F2D0725A +S31508002E40C0F600020021013132F8023F53B1834235 +S31508002E50F9D10BB97047002144F6B023C0F6000338 +S31508002E6033F81100704700BF08B500F0BBFA01F04F +S31508002E7045F901F025F900F039FB00F00FF800F0EC +S31508002E809FFA08BD08B500F0AFFA01F053F900F053 +S31508002E906BFC00F013F800F06DFA08BD10B500F0F1 +S31508002EA087F800F0D3FE40F20104C2F200040123C1 +S31508002EB0237001F03FF80023237010BD08B540F2D7 +S31508002EC03C40C2F2000000F0C9FF01280BD140F2D5 +S31508002ED00103C2F2000301221A7040F23C40C2F21A +S31508002EE0000000F085F840F23C40C2F2000001F014 +S31508002EF06BF801280BD140F20103C2F2000300224D +S31508002F001A7040F23C40C2F2000000F071F808BDA9 +S31508002F10704700BF38B505460C4640F20103C2F2B9 +S31508002F2000031B78012B02D1C9B200F043FF40F21F +S31508002F300103C2F200031B781BB92846E1B201F06F +S31508002F400FF800F04DF838BD40F20103C2F2000355 +S31508002F501878022806D0032806D001280CBF0820B6 +S31508002F6040207047002070470020704740F2010358 +S31508002F70C2F200031878022806D0032806D00128D2 +S31508002F800CBF08204020704700207047002070477B +S31508002F9008B500F01BF808BD40F27C43C2F20003F6 +S31508002FA0FE22DA7018710222A3F84420704700BF87 +S31508002FB040F27C43C2F2000300221A709A6483F836 +S31508002FC04320A3F844209A705A70704740F27C4315 +S31508002FD0C2F200031878003018BF0120704700BFFE +S31508002FE040F27C43C2F20003002283F84320704774 +S31508002FF038B504460178FF2923D100F08DFA18B9AF +S315080030001020FFF7C9FF96E140F27C44C2F20004A3 +S315080030100023637001252570FF22E27010222271B9 +S315080030206371FFF791FFA071FFF7A0FFE071FFF74B +S315080030309DFF000A20726572A5720823A4F8443021 +S3150800304079E140F27C43C2F200031B78012B40F081 +S315080030509081C939352900F26B81DFE811F0DB0070 +S31508003060690169016501690169015901FC004201AB +S315080030702F0169016901690169016901690169012C S3150800308069016901690169016901690169016901E2 S3150800309069016901690169016901690169016901D2 -S315080030A069017F00540036007300690169016901EE -S315080030B0A1006901B900BD00CE004578FFF73CFFC5 -S315080030C00138854203DD2220FFF75EFF2BE140F23F -S315080030D07C45C2F20005281DA96C627800F09EFDA9 -S315080030E0FF23EB706278AB6C1344AB6463780133EF -S315080030F0A5F8443017E14578FFF71EFF01388542E9 -S3150800310003DD2220FFF740FF0DE1616840F27C45B0 -S31508003110C2F20005A964281D627800F07FFDFF232E -S31508003120EB706278AB6C1344AB6463780133A5F833 -S315080031304430F8E040F27C43C2F20003FF22DA7022 -S3150800314042689A640122A3F84420ECE040F27C43EA -S31508003150C2F20003FF22DA709B6C406840B1184443 -S31508003160002213F8011B0A44D2B28342F9D100E0C7 -S31508003170002240F27C43C2F20003C3F80720012272 -S315080031801A7100225A719A710822A3F84420CAE0DB -S3150800319040F27C43C2F20003FF22DA7044F6804212 -S315080031A0C0F600029A6400221A715A719A710721B0 -S315080031B0D9711A725A729A720822A3F84420B2E098 -S315080031C00020FFF7E1FEAEE040F27C43C2F20003C6 -S315080031D0FF22DA7000221A71597859719A71DA71D8 -S315080031E01A720622A3F844209DE040F27C43C2F2FC -S315080031F0000300221A705A70FF22DA700122A3F81F -S31508003200442090E040F27C43C2F200039D6CFFF735 -S3150800321093FE411E2846621C00F04EFF18B9312065 -S31508003220FFF7B2FE7FE040F27C44C2F20004FF23BF -S31508003230E370A56CFFF780FE013D2844A0640123D6 -S31508003240A4F844306FE04578FFF776FE02388542E9 -S3150800325003DD2220FFF798FE65E040F27C43C2F2C8 -S315080032600003FF22DA700122A3F84420617839B9F5 -S3150800327000F032FF002856D13120FFF785FE52E0D4 -S3150800328040F27C43C2F20003986CA21C00F014FFC3 -S3150800329018B93120FFF778FE45E040F27C43C2F2C8 -S315080032A0000361789A6C0A449A643CE040F27C44D4 -S315080032B0C2F20004FF23E370002525716571FFF74C -S315080032C03BFEA071E571257265720723A4F84430A8 -S315080032D029E040F27C43C2F20003986C616800F072 -S315080032E0EFFE18B93120FFF74FFE1CE040F27C4391 -S315080032F0C2F20003FF22DA700122A3F8442012E08A -S3150800330000F074FC40F27C43C2F20003FF22DA703C -S315080033100122A3F8442006E03120FFF735FE02E03B -S315080033202020FFF731FE40F27C43C2F2000393F8F7 -S315080033304330012B02D11020FFF726FE40F27C43D2 -S31508003340C2F20003B3F844100BB2002B09DD40F2B9 -S315080033507C40C2F20000012380F843300330FFF7B7 -S31508003360D1FD38BD08B5FFF70BFE01281FD000F0C8 -S31508003370CBF8E0B140F2C843C2F200031B78012B38 -S3150800338015D100F0E1FE40F2CC43C2F200031B68FF -S3150800339003F5FA7398420AD340F2C843C2F200030F -S315080033A000221A7000F0BAF808B900F01FFC08BD30 -S315080033B008B540F2C843C2F2000301221A7000F0B1 -S315080033C0C3FE40F2CC43C2F200031860FFF7CAFFFF -S315080033D008BD00BF704700BF704700BF00F00F036D -S315080033E0092802D903F13700704703F1300040F28B -S315080033F00403C2F200031B6803445B7803F003036B -S31508003400022B08BF2038C0B2704700BF38B5054642 -S315080034100C460009FFF7E2FF207005F00F00FFF7E2 -S31508003420DDFF60700023A370204638BD30B4024625 -S3150800343003464CF6CD40CCF6CC400131A0FB034305 -S31508003440DB08FAD1002301F801394CF6CD45CCF654 -S31508003450CC450846A5FB0243DB0803EB8304A2EB35 -S315080034604402303201F801291A46002BF1D130BC4A -S31508003470704700BFF0B440F20403C2F200031F68AD -S3150800348000231C46C15C7A18527802F00302022A0D -S3150800349008BF2039C9B2A1F13002D2B2A1F13A056A -S315080034A0EDB2162A94BF00260126062D8CBF354696 -S315080034B046F0010565B9092A84BFA1F13702D2B2DF -S315080034C02401E4B22244D4B20133022BDAD101E05A -S315080034D0002000E02046F0BC704700BF08B540F267 -S315080034E01053C2F200030020187040F21C51C2F2B9 -S315080034F00001FEF7DFFF30B144F68840C0F6000051 -S315080035007C2100F065FB08BD40F21053C2F20003AF -S315080035101878D0F1010038BF0020704708B5FFF7CA -S315080035202FFD01280FD040F21053C2F200031B787A -S315080035305BB9FCF70DFE012809D140F21053C2F21F -S315080035400003187008BD002008BD002008BD002033 -S3150800355008BD00BF027840F20403C2F200031B68EC -S315080035609918497801F00301022908BF203A532A1D -S315080035700ED1407803445B7813F0040F0AD0312843 -S315080035800AD032280AD0332814BF032002207047F5 -S3150800359003207047032070470020704701207047BA -S315080035A070B504460230FFF765FF06460546043443 -S315080035B02046FFF75FFF3044C6B2013DADB2023484 -S315080035C0012DF5D82046FFF755FFF643F6B2864299 -S315080035D014BF0020012070BD2DE9F04115460F46A5 -S315080035E00446002918BF002807D144F68840C0F6CB -S315080035F0000040F2362100F0EBFA2046FFF7AAFF5A -S315080036000646032808BF002000F0A2802046FFF7E0 -S31508003610C7FF002800F08C80012E29D016B1022E93 -S3150800362053D088E0A01CFFF725FF8046201DFFF732 -S3150800363021FF06023E60A01DFFF71CFF30443860DC -S3150800364004F10806A8F103081FFA88F84046002D79 -S315080036507ED00FFA88F7002F6FDD00243046FFF77B -S3150800366009FF285502360134A4B2BC42F6DB66E0EF -S31508003670A01CFFF7FFFE8046201DFFF7FBFE060491 -S315080036803E60A01DFFF7F6FE06EB00263E6004F13D -S315080036900800FFF7EFFE3044386004F10A06A8F187 -S315080036A004081FFA88F84046002D51D00FFA88F70B -S315080036B0002F46DD00243046FFF7DCFE285502368B -S315080036C00134A4B2BC42F6DB3DE0A01CFFF7D2FEF3 -S315080036D08046201DFFF7CEFE06063E60A01DFFF7BA -S315080036E0C9FE06EB00463E6004F10800FFF7C2FE7D -S315080036F006EB00263E6004F10A00FFF7BBFE3044E5 -S31508003700386004F10C06A8F105081FFA88F8404647 -S31508003710F5B10FFA88F7002F17DD00243046FFF7BA -S31508003720A9FE285502360134A4B2BC42F6DB0EE0E7 -S315080037304FF6FF700CE000200AE0404608E04046DD -S3150800374006E0404604E0404602E0404600E04046C7 -S3150800375000B2BDE8F08100BF70B540F21053C2F266 -S3150800376000031B78002B00F02F82012B3FD1FCF7BA -S3150800377017FD44F6A040C0F60000FCF75BFD44F6D2 -S31508003780C440C0F60000FCF755FDFCF703FD0146F2 -S31508003790BC480122FEF7A4FE48B144F6EC40C0F648 -S315080037A00000FCF747FD0120FCF734FD70BD44F628 -S315080037B0F440C0F60000FCF73DFD44F6FC40C0F6B8 -S315080037C00000FCF737FD44F62050C0F60000FCF771 -S315080037D031FD40F21453C2F2000300221A605A6007 -S315080037E040F21053C2F2000302221A7070BD022B77 -S315080037F040F0FA8040F21C54C2F2000440F67410FD -S31508003800C2F200004FF4807104F50D72FFF78EFACC -S3150800381094F93A32002B13DA44F6EC40C0F600006D -S31508003820FCF708FD0220FCF7F5FC04F50D70FFF720 -S3150800383023F940F21053C2F2000300221A7070BD39 -S3150800384000284CD040F67411C2F20001084601F572 -S31508003850C0710022FFF7C0FEB0F1FF3F12D144F657 -S31508003860EC40C0F60000FCF7E5FC0320FCF7D2FCB0 -S315080038708448FFF701F940F21053C2F20003002210 -S315080038801A7070BD00282ADD40F21453C2F20003F4 -S315080038905B6863B940F21453C2F2000340F674122F -S315080038A0C2F20002D2F880211A60586017E040F68A -S315080038B07412C2F20002D2F8801140F21452C2F217 -S315080038C00002126891423EBF40F21452C2F2000250 -S315080038D0116040F21452C2F200020344536040F2EF -S315080038E01C53C2F20003D3F83C22D3F840329A4262 -S315080038F040F06A8163480021FFF7C8F890B144F6A2 -S31508003900EC40C0F60000FCF795FC0420FCF782FCAE -S315080039105C48FFF7B1F840F21053C2F200030022E8 -S315080039201A7070BD44F6F440C0F60000FCF782FC3D -S3150800393044F65050C0F60000FCF77CFC40F21455E3 -S31508003940C2F2000540F2D044C2F20004686821467B -S31508003950FFF76CFD2046FCF76DFC44F65C50C0F69C -S315080039600000FCF767FC2E68300E2146FFF74EFD77 -S31508003970C6F30740A11CFFF749FDC6F30720211D22 -S31508003980FFF744FDF0B2A11DFFF740FD2046FCF706 -S3150800399051FC44F60060C0F60000FCF74BFC2868B2 -S315080039A0696800F08DFB90B944F6EC40C0F600005B -S315080039B0FCF740FC0520FCF72DFC3248FFF75CF8C5 -S315080039C040F21053C2F2000300221A7070BD44F68A -S315080039D0F440C0F60000FCF72DFC40F21053C2F28A -S315080039E0000303221A7070BD032B40F0ED8040F2ED -S315080039F01C54C2F2000440F67410C2F200004FF4E0 -S31508003A00807104F50D72FFF791F994F93A32002B9B -S31508003A1013DA44F67850C0F60000FCF70BFC0220D7 -S31508003A20FCF7F8FB04F50D70FFF726F840F2105383 -S31508003A30C2F2000300221A7070BD00287FD040F63B -S31508003A407412C2F20002104602F5C07102F58072C5 -S31508003A50FFF7C2FD0646B0F1FF3F15D144F69C506C -S31508003A60C0F60000FCF7E6FB0320FCF7D3FB05488D -S31508003A70FFF702F840F21053C2F2000300221A7050 -S31508003A8070BD00BF50070020002858DD44F6C0501E -S31508003A90C0F60000FCF7CEFB40F2D044C2F20004A8 -S31508003AA030462146FFF7C2FC2046FCF7C3FB44F626 -S31508003AB0D050C0F60000FCF7BDFB40F67415C2F204 -S31508003AC0000595F883012146FFF7A0FC95F88201C9 -S31508003AD0A11CFFF79BFC95F88101211DFFF796FCB9 -S31508003AE095F88001A11DFFF791FC2046FCF7A2FB83 -S31508003AF044F60060C0F60000FCF79CFBD5F8800190 -S31508003B00314605F5807200F0D7FA90B944F6EC40D4 -S31508003B10C0F60000FCF78EFB0620FCF77BFB2B4863 -S31508003B20FEF7AAFF40F21053C2F2000300221A70F1 -S31508003B3070BD44F6F440C0F60000FCF77BFB40F28B -S31508003B401C53C2F20003D3F83C22D3F840329A42FF -S31508003B503AD144F6E850C0F60000FCF76BFB00F0DB -S31508003B60BBFA90B944F6EC40C0F60000FCF762FBDD -S31508003B700720FCF74FFB1548FEF77EFF40F210536F -S31508003B80C2F2000300221A7070BD44F6F440C0F673 -S31508003B900000FCF74FFB44F60460C0F60000FCF793 -S31508003BA049FB0A48FEF768FF44F61C60C0F60000A9 -S31508003BB0FCF740FB40F21053C2F2000300221A70D1 -S31508003BC0FCF706FB00F012F870BD00BF5007002096 -S31508003BD008B540F6F823C2F20003186040F6FC2345 -S31508003BE0C2F200031960FFF7F7FBFCE708B500F01F -S31508003BF06BFA90B1FFF784F900F08CFA00F068FAD6 -S31508003C0020F0604020F07F004EF60853CEF2000305 -S31508003C10186000F05DFA4368984708BD70B5561EEF -S31508003C20B6B24AB14C1E0E44451A14F8013F2B553C -S31508003C30FFF7D2FBB442F8D170BD00BF2DE9F047BB -S31508003C40002344F66C60C0F600004FF4FA7448F698 -S31508003C50A04113F80080C21892F801C008EB0C02C4 -S31508003C6002FB044291FBF2F902FB191636B94D46DE -S31508003C7009F1FF3292B2B2F5806F03D30233242BD7 -S31508003C80E7D187E04746E2464FF4C843C4F200034B -S31508003C9000225A611A6842F400421A601B6813F43B -S31508003CA0004F09D04FF4C844C4F20004FFF794FB50 -S31508003CB0236813F4004FF9D14FF4C843C4F2000344 -S31508003CC01A6822F002021A601A6842F001021A60A3 -S31508003CD05B6813F0010F09D14FF4C844C4F200041D -S31508003CE0FFF77AFB636813F0010FF9D0013F0AF179 -S31508003CF0FF36360546EA0747013D3D434FF4C843BC -S31508003D00C4F20003DD611A6822F001021A605B68DA -S31508003D1013F0010F09D04FF4C844C4F20004FFF7AA -S31508003D205BFB636813F0010FF9D14FF4C843C4F283 -S31508003D300003D3F8002242F00102C3F80022D3F8A8 -S31508003D401C2222F00102C3F81C22D3F80C2242F0EE -S31508003D500102C3F80C220022C3F84022C3F8442209 -S31508003D60D3F8042222F00102C3F80422D3F814225D -S31508003D7022F00102C3F81422D3F81C2242F00102F1 -S31508003D80C3F81C22D3F8002222F00102C3F800224D -S31508003D90BDE8F08744F64860C0F60000E621FFF764 -S31508003DA017FF71E738B504460D464FF4C843C4F209 -S31508003DB000039B6813F0806F07D144F64860C0F68D -S31508003DC0000040F22511FFF703FF4FF4C843C4F281 -S31508003DD00003D3F8802102F00102C3F88021D3F84A -S31508003DE0802142F07C4242F40012C3F88021C3F8D5 -S31508003DF08451E178A278120442EA016221780A43E2 -S31508003E00617842EA0122C3F88821E179A27912048D -S31508003E1042EA016221790A43617942EA0122C3F83A -S31508003E208C21D3F8802142F00102C3F880219B68D7 -S31508003E3013F0806F09D14FF4C844C4F20004FFF7A9 -S31508003E40CBFAA36813F0806FF9D038BD4FF4C84396 -S31508003E50C4F20003DB6813F0030F39D04FF4C843EC -S31508003E60C4F20003D3F8B02140F26763B3EB525FA4 -S31508003E7018BF002023D14FF4C843C4F20003D3F877 -S31508003E80B8210270D3F8B821120A4270D3F8B821C3 -S31508003E90120C8270D3F8B821120EC270D3F8BC2166 -S31508003EA00271D3F8BC21120A4271D3F8BC21120C54 -S31508003EB08271D3F8BC311B0EC3710120FFE74FF4A2 -S31508003EC0C843C4F20003DA6842F02002DA60704799 -S31508003ED00020704710B54FF48843C4F200031B88CE -S31508003EE003F080039BB2B3B14FF48843C4F20003D6 -S31508003EF098801B8803F080039BB273B94FF48844FB -S31508003F00C4F20004FFF768FA238803F080039BB223 -S31508003F10002BF7D003E0002010BD012010BD0120C2 -S31508003F2010BD00BF4FF48843C4F2000300221A8173 -S31508003F309A811A829A821A8340F271221A819A8980 -S31508003F4092B242F4005242F00C029A81704700BFC6 -S31508003F502DE9F04106460C46402906D944F69060FC -S31508003F60C0F600009221FFF733FE2046FFF7B2FFA6 -S31508003F70012806D044F69060C0F600009621FFF7A7 -S31508003F8027FE2546ACB1002444F69067C0F6000724 -S31508003F904FF09F08FFF720FA305DFFF79BFF0128D7 -S31508003FA003D038464146FFF713FE0134A3B2AB42AD -S31508003FB0F0D3BDE8F08100BF10B540F60033C2F279 -S31508003FC000031B785BBB4FF48843C4F200031B88CD -S31508003FD003F020039BB2002B56D04FF48843C4F25B -S31508003FE000039A8892B240F60833C2F200031A70A8 -S31508003FF012F0FF0F4AD000F0A7F840F60433C2F2D9 -S315080040000003186040F64C33C2F200030020187013 -S3150800401040F60033C2F2000301221A7010BD40F6C2 -S315080040204C33C2F200031A784FF48843C4F20003F3 -S315080040301B8803F020039BB263B34FF48843C4F292 -S3150800404000039C8840F60833C2F2000399184C70A6 -S315080040500132D2B240F64C31C2F200010A701B7826 -S31508004060934215D11149FFF7D9FD40F60033C2F244 -S31508004070000300221A70012010BD40F60033C2F278 -S3150800408000030020187010BD002010BD002010BDD0 -S31508004090002010BD00F058F840F60433C2F20003C1 -S315080040A01B6864339842E8D8002010BD090B00202D -S315080040B008B500F05BF908BD08B500F065F908BD5C -S315080040C008B500F089F908BD08B500F071FA08BD11 -S315080040D008B500F0C7FA08BD08B500F03DFA10B1FA -S315080040E000F09AFA08BD002008BD00BF4EF2100382 -S315080040F0CEF2000300221A6041F63F11C0F2010118 -S3150800410059609A600521196040F65033C2F20003DF -S315080041101A6070474EF21003CEF2000300221A60AE -S31508004120704700BF4EF21003CEF200031B6813F46B -S31508004130803F1FBF40F65033C2F200031A680132AF -S3150800414018BF1A60704700BF08B5FFF7EBFF40F6C7 -S315080041505033C2F20003186808BD00BF4FF400537D -S31508004160C4F202031A6942F080021A61704700BF5E -S31508004170F8B507460024254644F6B466C0F6000698 -S31508004180FFF72AF9A359BB420ED8311949680B44DF -S315080041909F4209D244F6B463C0F6000305EB450214 -S315080041A003EB8203187AF8BD01350C349C2CE7D151 -S315080041B0FF20F8BD2DE9F84380460068FFF7D8FFD1 -S315080041C0FF285CD04FF40053C4F2020340F22312D6 -S315080041D0C4F267525A6048F6AB12CCF6EF525A60F0 -S315080041E03422DA60DB6813F0010F04D0FFF7B6FF5C -S315080041F00020BDE8F8834FF40053C4F202031A699D -S3150800420042F001021A61002508F104094FF400542E -S31508004210C4F20204D8F80030EF1859F80560B2B2B3 -S31508004220EA52E36813F0010F05D0FFF7D5F8E36803 -S3150800423013F0010FF9D1330C7B80E36813F0010FFB -S3150800424005D0FFF7C9F8E36813F0010FF9D13B6809 -S31508004250B34204D10435B5F5007FDBD101E0002473 -S3150800426000E001244FF40053C4F202031A6922F055 -S3150800427001021A61FFF772FF2046BDE8F8830020A5 -S31508004280BDE8F88338B504460D4640F65433C2F205 -S315080042900003984209D04FF4C043C0F60003994280 -S315080042A00BD0FFF787FF20B917E040F65854C2F243 -S315080042B00004C5F3080393B903E040F65434C2F288 -S315080042C0000423689D420CD0204640F8045B29462A -S315080042D04FF40072FFF7A2FC03E0002038BD00206F -S315080042E038BD204638BD00BF2DE9F04106460C46CC -S315080042F017461D464FEA51284FEA48280368B3F186 -S31508004300FF3F06D140F8048B41464FF40072FFF791 -S3150800431085FC3368434505D030464146FFF7B2FF72 -S315080043200646D0B13368E41A3444043408F50078F4 -S31508004330FFF752F8331DE31AB3F5007F06D330466C -S315080043404146FFF79FFF064650B1041D17F8013B8B -S3150800435004F8013B013DEBD105E00020BDE8F08102 -S315080043600020BDE8F0810120BDE8F08140F65853F1 -S31508004370C2F200034FF0FF321A6040F65433C2F21D -S3150800438000031A60704700BF70B504460D4616460E -S31508004390FFF7EEFEFF281BD0681E2044FFF7E8FE55 -S315080043A0FF2817D0620A4FF4C043C0F60003B3EBE8 -S315080043B0422F07BF40F65430C2F2000040F658506C -S315080043C0C2F20000214632462B46FFF78DFF70BD2C -S315080043D0002070BD002070BD2DE9F84304460E4646 -S315080043E0FFF7C6FE0546701E2044FFF7C1FE0446C9 -S315080043F0FF2D18BFFF2800F0AB80854200F29F8092 -S31508004400022D40F29F800F2800F29F804FF4005340 -S31508004410C4F2020340F22312C4F267525A6048F605 -S31508004420AB12CCF6EF525A603422DA60DB6813F02E -S31508004430010F04D0FFF792FE0020BDE8F8834FF481 -S315080044400053C4F202031A6942F002021A6144F6E2 -S31508004450B469C0F600094F460026FEF7BDFF3B7A51 -S31508004460AB4208D144F6B463C0F6000306EB460235 -S3150800447053F8227005E001360C370D2EEDD14FF0BA -S31508004480FF37C8460025FEF7A7FF98F80830A3426D -S3150800449008D144F6B463C0F6000305EB450253F8A9 -S315080044A0228006E0013508F10C080D2DEBD14FF0FE -S315080044B0FF384E460025FEF78FFF337AA34209D10F -S315080044C044F6B463C0F6000305EB450203EB82032A -S315080044D05B6804E001350C360D2DECD10023C7EBE3 -S315080044E008084344C3F38F23E3B1013B9EB2013668 -S315080044F0B60200254FF40054C4F20204EB196361B6 -S31508004500236943F040032361E36813F0010F05D0E4 -S31508004510FEF762FFE36813F0010FF9D105F5806530 -S31508004520B542EBD14FF40053C4F202031A6922F0E4 -S3150800453002021A61FFF712FE0120BDE8F883002087 -S31508004540BDE8F8830020BDE8F8830020BDE8F883BD -S315080045500020BDE8F88300BF00B583B040F65433A9 -S31508004560C2F200031B68B3F1FF3F08BF01201CD04D -S3150800457040F65433C2F2000399685A681144DA685F -S3150800458011441A6911445A6911449A690A44D96945 -S3150800459053185B4202AA42F8043D46F25010C0F690 -S315080045A000000421FFF7F0FEFFE703B05DF804FB07 -S315080045B046F20402C0F600024FF4C043C0F60003F8 -S315080045C010681B68184446F20803C0F600031B6807 -S315080045D0184446F20C03C0F600031B68184446F25A -S315080045E01003C0F600031B68184446F21403C0F60D -S315080045F000031B68184446F21803C0F600031B683C -S31508004600184446F25013C0F600031B681844D0F14C -S31508004610010038BF0020704708B540F65433C2F28F -S3150800462000031B68B3F1FF3F06D040F65430C2F2D0 -S315080046300000FFF7BFFD88B140F65853C2F20003E9 -S315080046401B68B3F1FF3F0BD040F65850C2F200008A -S31508004650FFF7B0FD003018BF012008BD002008BDD7 -S31508004660012008BD4FF4C040C0F60000704700BFE7 -S3150800467008B544F65070C0F600003621FFF7A8FAD0 -S3150800468008BD00BF10B572B640F20002C2F20002C1 -S3150800469040F20803C2F200039A4210D2131D0E4CD0 -S315080046A0E41A24F0030404340023104645F280017A -S315080046B0C0F600015A581A500433A342FAD10748E3 -S315080046C007494FF000028842B8BF40F8042BFADBCE -S315080046D0FBF7E0FD10BD00BF0B000020080000201E -S315080046E05C0F00202F64656D6F70726F675F6F6C6B -S315080046F0696D65785F73746D3332703130332E733C -S31508004700726563002F626F6F746C6F672E747874AE -S31508004710000000006D61696E2E630000222A3A3C93 -S315080047203E3F7C7F000000002B2C3B3D5B5D00007C -S31508004730809A90418E418F804545454949498E8FDB -S315080047409092924F994F555559999A9B9C9D9E9F29 -S3150800475041494F55A5A5A6A7A8A9AAABAC21AEAFB6 -S31508004760B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC3 -S31508004770C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFB3 -S31508004780D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFA3 -S31508004790E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF93 -S315080047A0F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF83 -S315080047B001030507090E10121416181C1E00000026 -S315080047C061006200630064006500660067006800B7 -S315080047D069006A006B006C006D006E006F00700067 -S315080047E07100720073007400750076007700780017 -S315080047F079007A00A100A200A300A500AC00AF00D2 -S31508004800E000E100E200E300E400E500E600E7007E -S31508004810E800E900EA00EB00EC00ED00EE00EF002E -S31508004820F000F100F200F300F400F500F600F800DD -S31508004830F900FA00FB00FC00FD00FE00FF00010184 -S3150800484003010501070109010B010D010F01110102 -S3150800485013011501170119011B011D011F01210172 -S3150800486023012501270129012B012D012F013101E2 -S315080048703301350137013A013C013E01400142014D -S315080048804401460148014B014D014F0151015301B5 -S315080048905501570159015B015D015F016101630122 -S315080048A06501670169016B016D016F017101730192 -S315080048B0750177017A017C017E019201B103B20389 -S315080048C0B303B403B503B603B703B803B903BA030E -S315080048D0BB03BC03BD03BE03BF03C003C103C303BD -S315080048E0C403C503C603C703C803C903CA03300400 -S315080048F031043204330434043504360437043804E6 -S3150800490039043A043B043C043D043E043F04400495 -S315080049104104420443044404450446044704480445 -S3150800492049044A044B044C044D044E044F045104F4 -S31508004930520453045404550456045704580459049D -S315080049405A045B045C045E045F04702171217221C1 -S3150800495073217421752176217721782179217A218D -S315080049607B217C217D217E217F2141FF42FF43FF60 -S3150800497044FF45FF46FF47FF48FF49FF4AFF4BFFF5 -S315080049804CFF4DFF4EFF4FFF50FF51FF52FF53FFA5 -S3150800499054FF55FF56FF57FF58FF59FF5AFF0000AF -S315080049A0C700FC00E900E200E400E000E500E700DB -S315080049B0EA00EB00E800EF00EE00EC00C400C500DA -S315080049C0C900E600C600F400F600F200FB00F90094 -S315080049D0FF00D600DC00A200A300A500A7209201D4 -S315080049E0E100ED00F300FA00F100D100AA00BA00D8 -S315080049F0BF001023AC00BD00BC00A100AB00BB008B -S31508004A00912592259325022524256125622556257B -S31508004A1055256325512557255D255C255B251025DC -S31508004A20142534252C251C2500253C255E255F25C7 -S31508004A305A25542569256625602550256C25672540 -S31508004A4068256425652559255825522553256B253E -S31508004A506A2518250C25882584258C2590258025EA -S31508004A60B103DF009303C003A303C303B500C40364 -S31508004A70A6039803A903B4031E22C603B503292275 -S31508004A806122B1006522642220232123F7004822EF -S31508004A90B0001922B7001A227F20B200A025A00074 -S31508004AA041004200430044004500460047004800D4 -S31508004AB049004A004B004C004D004E004F00500084 -S31508004AC05100520053005400550056005700580034 -S31508004AD059005A002100E0FFE1FFE5FFE2FFE3FF8E -S31508004AE0C000C100C200C300C400C500C600C7009C -S31508004AF0C800C900CA00CB00CC00CD00CE00CF004C -S31508004B00D000D100D200D300D400D500D600D800FA -S31508004B10D900DA00DB00DC00DD00DE0078010001E8 -S31508004B2002010401060108010A010C010E01100127 -S31508004B3012011401160118011A011C011E01200197 -S31508004B4022012401260128012A012C012E01300107 -S31508004B5032013401360139013B013D013F01410172 -S31508004B604301450147014A014C014E0150015201DA -S31508004B705401560158015A015C015E016001620147 -S31508004B806401660168016A016C016E0170017201B7 -S31508004B907401760179017B017D01910191039203EC -S31508004BA093039403950396039703980399039A032B -S31508004BB09B039C039D039E039F03A003A103A303DA -S31508004BC0A403A503A603A703A803A903AA0310041D -S31508004BD01104120413041404150416041704180403 -S31508004BE019041A041B041C041D041E041F042004B3 -S31508004BF02104220423042404250426042704280463 -S31508004C0029042A042B042C042D042E042F04010441 -S31508004C10020403040404050406040704080409043A -S31508004C200A040B040C040E040F046021612162219E -S31508004C3063216421652166216721682169216A212A -S31508004C406B216C216D216E216F2121FF22FF23FF2D -S31508004C5024FF25FF26FF27FF28FF29FF2AFF2BFF12 -S31508004C602CFF2DFF2EFF2FFF30FF31FF32FF33FFC2 -S31508004C7034FF35FF36FF37FF38FF39FF3AFF0000AC -S31508004C804F70656E424C54002E2E2F2E2E2F2E2E30 -S31508004C902F536F757263652F66696C652E63000006 -S31508004CA04669726D776172652075706461746520F6 -S31508004CB0726571756573742064657465637465647B -S31508004CC00A0D00004F70656E696E67206669726D21 -S31508004CD0776172652066696C6520666F72207265F9 -S31508004CE06164696E672E2E2E000000004552524FF1 -S31508004CF0520A0D004F4B0A0D0000000053746172F2 -S31508004D0074696E67207468652070726F6772616D6A -S31508004D106D696E672073657175656E63650A0D004A -S31508004D2050617273696E67206669726D7761726524 -S31508004D302066696C6520746F206F627461696E20E5 -S31508004D4065726173652073697A652E2E2E000000E0 -S31508004D5045726173696E67200000000020627974ED -S31508004D6065732066726F6D206D656D6F727920614F -S31508004D70742030780000000052656164696E67200F -S31508004D806C696E652066726F6D2066696C652E2E7D -S31508004D902E4552524F520A0D00000000496E7661A8 -S31508004DA06C696420636865636B73756D20666F75DF -S31508004DB06E642E2E2E4552524F520A0D00000000E8 -S31508004DC050726F6772616D6D696E67200000000032 -S31508004DD020627974657320746F206D656D6F7279C2 -S31508004DE0206174203078000057726974696E6720F4 -S31508004DF070726F6772616D20636865636B73756D3A -S31508004E002E2E2E00436C6F73696E67206669726D6D -S31508004E10776172652066696C650A0D004669726D70 -S31508004E207761726520757064617465207375636354 -S31508004E3065737366756C6C7920636F6D706C6574D9 -S31508004E4065640A0D000000002E2E2F2E2E2F2E2E02 -S31508004E502F536F757263652F41524D434D335F5320 -S31508004E60544D33322F63616E2E630000050206022D -S31508004E70060307030803090309040A040B040C04C0 -S31508004E800C050D050E050F050F0610061007100870 -S31508004E902E2E2F2E2E2F2E2E2F536F757263652FC3 -S31508004EA041524D434D335F53544D33322F75617222 -S31508004EB0742E630000600008002000000300000054 -S31508004EC000800008002000000400000000A0000880 -S31508004ED0002000000500000000C0000800200000B7 -S31508004EE00600000000E0000800200000070000009F -S31508004EF0000001080020000008000000002001084A -S31508004F000020000009000000004001080020000001 -S31508004F100A00000000600108002000000B000000E5 -S31508004F2000800108002000000C00000000A0010815 -S31508004F30002000000D00000000C00108002000004D -S31508004F400E00000000E00108002000000F0000002D -S31508004F502E2E2F2E2E2F2E2E2F536F757263652F02 -S31508004F6041524D434D335F53544D33322F474343DC -S31508004F702F766563746F72732E63000000202020FD -S31508004F8020202020202028282828282020202020EB -S31508004F9020202020202020202020202020881010BB -S31508004FA01010101010101010101010101004040417 -S31508004FB004040404040404101010101010104141D5 -S31508004FC041414141010101010101010101010101C3 -S31508004FD001010101010101011010101010104242D7 -S31508004FE04242424202020202020202020202020293 -S31508004FF00202020202020202101010102000000033 -S315080050000000000000000000000000000000000092 +S315080030A069016901690169016901690169016901C2 +S315080030B069017F00540036007300690169016901DE +S315080030C0A1006901B900BD00CE004578FFF73CFFB5 +S315080030D00138854203DD2220FFF75EFF2BE140F22F +S315080030E07C45C2F20005281DA96C627800F09EFD99 +S315080030F0FF23EB706278AB6C1344AB6463780133DF +S31508003100A5F8443017E14578FFF71EFF01388542D8 +S3150800311003DD2220FFF740FF0DE1616840F27C45A0 +S31508003120C2F20005A964281D627800F07FFDFF231E +S31508003130EB706278AB6C1344AB6463780133A5F823 +S315080031404430F8E040F27C43C2F20003FF22DA7012 +S3150800315042689A640122A3F84420ECE040F27C43DA +S31508003160C2F20003FF22DA709B6C406840B1184433 +S31508003170002213F8011B0A44D2B28342F9D100E0B7 +S31508003180002240F27C43C2F20003C3F80720012262 +S315080031901A7100225A719A710822A3F84420CAE0CB +S315080031A040F27C43C2F20003FF22DA7044F69042F2 +S315080031B0C0F600029A6400221A715A719A710721A0 +S315080031C0D9711A725A729A720822A3F84420B2E088 +S315080031D00020FFF7E1FEAEE040F27C43C2F20003B6 +S315080031E0FF22DA7000221A71597859719A71DA71C8 +S315080031F01A720622A3F844209DE040F27C43C2F2EC +S31508003200000300221A705A70FF22DA700122A3F80E +S31508003210442090E040F27C43C2F200039D6CFFF725 +S3150800322093FE411E2846621C00F04EFF18B9312055 +S31508003230FFF7B2FE7FE040F27C44C2F20004FF23AF +S31508003240E370A56CFFF780FE013D2844A0640123C6 +S31508003250A4F844306FE04578FFF776FE02388542D9 +S3150800326003DD2220FFF798FE65E040F27C43C2F2B8 +S315080032700003FF22DA700122A3F84420617839B9E5 +S3150800328000F032FF002856D13120FFF785FE52E0C4 +S3150800329040F27C43C2F20003986CA21C00F014FFB3 +S315080032A018B93120FFF778FE45E040F27C43C2F2B8 +S315080032B0000361789A6C0A449A643CE040F27C44C4 +S315080032C0C2F20004FF23E370002525716571FFF73C +S315080032D03BFEA071E571257265720723A4F8443098 +S315080032E029E040F27C43C2F20003986C616800F062 +S315080032F0EFFE18B93120FFF74FFE1CE040F27C4381 +S31508003300C2F20003FF22DA700122A3F8442012E079 +S3150800331000F074FC40F27C43C2F20003FF22DA702C +S315080033200122A3F8442006E03120FFF735FE02E02B +S315080033302020FFF731FE40F27C43C2F2000393F8E7 +S315080033404330012B02D11020FFF726FE40F27C43C2 +S31508003350C2F20003B3F844100BB2002B09DD40F2A9 +S315080033607C40C2F20000012380F843300330FFF7A7 +S31508003370D1FD38BD08B5FFF70BFE01281FD000F0B8 +S31508003380CBF8E0B140F2C843C2F200031B78012B28 +S3150800339015D100F0E1FE40F2CC43C2F200031B68EF +S315080033A003F5FA7398420AD340F2C843C2F20003FF +S315080033B000221A7000F0BAF808B900F01FFC08BD20 +S315080033C008B540F2C843C2F2000301221A7000F0A1 +S315080033D0C3FE40F2CC43C2F200031860FFF7CAFFEF +S315080033E008BD00BF704700BF704700BF00F00F035D +S315080033F0092802D903F13700704703F1300040F27B +S315080034000403C2F200031B6803445B7803F003035A +S31508003410022B08BF2038C0B2704700BF38B5054632 +S315080034200C460009FFF7E2FF207005F00F00FFF7D2 +S31508003430DDFF60700023A370204638BD30B4024615 +S3150800344003464CF6CD40CCF6CC400131A0FB0343F5 +S31508003450DB08FAD1002301F801394CF6CD45CCF644 +S31508003460CC450846A5FB0243DB0803EB8304A2EB25 +S315080034704402303201F801291A46002BF1D130BC3A +S31508003480704700BFF0B440F20403C2F200031F689D +S3150800349000231C46C15C7A18527802F00302022AFD +S315080034A008BF2039C9B2A1F13002D2B2A1F13A055A +S315080034B0EDB2162A94BF00260126062D8CBF354686 +S315080034C046F0010565B9092A84BFA1F13702D2B2CF +S315080034D02401E4B22244D4B20133022BDAD101E04A +S315080034E0002000E02046F0BC704700BF08B540F257 +S315080034F01053C2F200030020187040F21C51C2F2A9 +S315080035000001FEF7DFFF30B144F69840C0F6000030 +S31508003510772100F065FB08BD40F21053C2F20003A4 +S315080035201878D0F1010038BF0020704708B5FFF7BA +S315080035302FFD01280FD040F21053C2F200031B786A +S315080035405BB9FCF705FE012809D140F21053C2F217 +S315080035500003187008BD002008BD002008BD002023 +S3150800356008BD00BF027840F20403C2F200031B68DC +S315080035709918497801F00301022908BF203A532A0D +S315080035800ED1407803445B7813F0040F0AD0312833 +S315080035900AD032280AD0332814BF032002207047E5 +S315080035A003207047032070470020704701207047AA +S315080035B070B504460230FFF765FF06460546043433 +S315080035C02046FFF75FFF3044C6B2013DADB2023474 +S315080035D0012DF5D82046FFF755FFF643F6B2864289 +S315080035E014BF0020012070BD2DE9F04115460F4695 +S315080035F00446002918BF002807D144F69840C0F6AB +S31508003600000040F2312100F0EBFA2046FFF7AAFF4E +S315080036100646032808BF002000F0A2802046FFF7D0 +S31508003620C7FF002800F08C80012E29D016B1022E83 +S3150800363053D088E0A01CFFF725FF8046201DFFF722 +S3150800364021FF06023E60A01DFFF71CFF30443860CC +S3150800365004F10806A8F103081FFA88F84046002D69 +S315080036607ED00FFA88F7002F6FDD00243046FFF76B +S3150800367009FF285502360134A4B2BC42F6DB66E0DF +S31508003680A01CFFF7FFFE8046201DFFF7FBFE060481 +S315080036903E60A01DFFF7F6FE06EB00263E6004F12D +S315080036A00800FFF7EFFE3044386004F10A06A8F177 +S315080036B004081FFA88F84046002D51D00FFA88F7FB +S315080036C0002F46DD00243046FFF7DCFE285502367B +S315080036D00134A4B2BC42F6DB3DE0A01CFFF7D2FEE3 +S315080036E08046201DFFF7CEFE06063E60A01DFFF7AA +S315080036F0C9FE06EB00463E6004F10800FFF7C2FE6D +S3150800370006EB00263E6004F10A00FFF7BBFE3044D4 +S31508003710386004F10C06A8F105081FFA88F8404637 +S31508003720F5B10FFA88F7002F17DD00243046FFF7AA +S31508003730A9FE285502360134A4B2BC42F6DB0EE0D7 +S315080037404FF6FF700CE000200AE0404608E04046CD +S3150800375006E0404604E0404602E0404600E04046B7 +S3150800376000B2BDE8F08100BF70B540F21053C2F256 +S3150800377000031B78002B00F02F82012B3FD1FCF7AA +S315080037800FFD44F6B040C0F60000FCF75BFD44F6BA +S31508003790D440C0F60000FCF755FDFCF7FBFC0146DB +S315080037A0BC480122FEF7A4FE48B144F6FC40C0F628 +S315080037B00000FCF747FD0120FCF734FD70BD44F618 +S315080037C00450C0F60000FCF73DFD44F60C50C0F668 +S315080037D00000FCF737FD44F63050C0F60000FCF751 +S315080037E031FD40F21453C2F2000300221A605A60F7 +S315080037F040F21053C2F2000302221A7070BD022B67 +S3150800380040F0FA8040F21C54C2F2000440F67410EC +S31508003810C2F200004FF4807104F50D72FFF78EFABC +S3150800382094F93A32002B13DA44F6FC40C0F600004D +S31508003830FCF708FD0220FCF7F5FC04F50D70FFF710 +S3150800384023F940F21053C2F2000300221A7070BD29 +S3150800385000284CD040F67411C2F20001084601F562 +S31508003860C0710022FFF7C0FEB0F1FF3F12D144F647 +S31508003870FC40C0F60000FCF7E5FC0320FCF7D2FC90 +S315080038808448FFF701F940F21053C2F20003002200 +S315080038901A7070BD00282ADD40F21453C2F20003E4 +S315080038A05B6863B940F21453C2F2000340F674121F +S315080038B0C2F20002D2F880211A60586017E040F67A +S315080038C07412C2F20002D2F8801140F21452C2F207 +S315080038D00002126891423EBF40F21452C2F2000240 +S315080038E0116040F21452C2F200020344536040F2DF +S315080038F01C53C2F20003D3F83C22D3F840329A4252 +S3150800390040F06A8163480021FFF7C8F890B144F691 +S31508003910FC40C0F60000FCF795FC0420FCF782FC8E +S315080039205C48FFF7B1F840F21053C2F200030022D8 +S315080039301A7070BD44F60450C0F60000FCF782FC0D +S3150800394044F66050C0F60000FCF77CFC40F21455C3 +S31508003950C2F2000540F2D044C2F20004686821466B +S31508003960FFF76CFD2046FCF76DFC44F66C50C0F67C +S315080039700000FCF767FC2E68300E2146FFF74EFD67 +S31508003980C6F30740A11CFFF749FDC6F30720211D12 +S31508003990FFF744FDF0B2A11DFFF740FD2046FCF7F6 +S315080039A051FC44F61060C0F60000FCF74BFC286892 +S315080039B0696800F08DFB90B944F6FC40C0F600003B +S315080039C0FCF740FC0520FCF72DFC3248FFF75CF8B5 +S315080039D040F21053C2F2000300221A7070BD44F67A +S315080039E00450C0F60000FCF72DFC40F21053C2F25A +S315080039F0000303221A7070BD032B40F0ED8040F2DD +S31508003A001C54C2F2000440F67410C2F200004FF4CF +S31508003A10807104F50D72FFF791F994F93A32002B8B +S31508003A2013DA44F68850C0F60000FCF70BFC0220B7 +S31508003A30FCF7F8FB04F50D70FFF726F840F2105373 +S31508003A40C2F2000300221A7070BD00287FD040F62B +S31508003A507412C2F20002104602F5C07102F58072B5 +S31508003A60FFF7C2FD0646B0F1FF3F15D144F6AC504C +S31508003A70C0F60000FCF7E6FB0320FCF7D3FB05487D +S31508003A80FFF702F840F21053C2F2000300221A7040 +S31508003A9070BD00BF50070020002858DD44F6D050FE +S31508003AA0C0F60000FCF7CEFB40F2D044C2F2000498 +S31508003AB030462146FFF7C2FC2046FCF7C3FB44F616 +S31508003AC0E050C0F60000FCF7BDFB40F67415C2F2E4 +S31508003AD0000595F883012146FFF7A0FC95F88201B9 +S31508003AE0A11CFFF79BFC95F88101211DFFF796FCA9 +S31508003AF095F88001A11DFFF791FC2046FCF7A2FB73 +S31508003B0044F61060C0F60000FCF79CFBD5F880016F +S31508003B10314605F5807200F0D7FA90B944F6FC40B4 +S31508003B20C0F60000FCF78EFB0620FCF77BFB2B4853 +S31508003B30FEF7AAFF40F21053C2F2000300221A70E1 +S31508003B4070BD44F60450C0F60000FCF77BFB40F25B +S31508003B501C53C2F20003D3F83C22D3F840329A42EF +S31508003B603AD144F6F850C0F60000FCF76BFB00F0BB +S31508003B70BBFA90B944F6FC40C0F60000FCF762FBBD +S31508003B800720FCF74FFB1548FEF77EFF40F210535F +S31508003B90C2F2000300221A7070BD44F60450C0F643 +S31508003BA00000FCF74FFB44F61460C0F60000FCF773 +S31508003BB049FB0A48FEF768FF44F62C60C0F6000089 +S31508003BC0FCF740FB40F21053C2F2000300221A70C1 +S31508003BD0FCF7FEFA00F012F870BD00BF500700208F +S31508003BE008B540F6F823C2F20003186040F6FC2335 +S31508003BF0C2F200031960FFF7F7FBFCE708B500F00F +S31508003C006BFA90B1FFF784F900F08CFA00F068FAC5 +S31508003C1020F0604020F07F004EF60853CEF20003F5 +S31508003C20186000F05DFA4368984708BD70B5561EDF +S31508003C30B6B24AB14C1E0E44451A14F8013F2B552C +S31508003C40FFF7D2FBB442F8D170BD00BF2DE9F047AB +S31508003C50002344F67C60C0F600004FF4FA7448F678 +S31508003C60A04113F80080C21892F801C008EB0C02B4 +S31508003C7002FB044291FBF2F902FB191636B94D46CE +S31508003C8009F1FF3292B2B2F5806F03D30233242BC7 +S31508003C90E7D187E04746E2464FF4C843C4F200033B +S31508003CA000225A611A6842F400421A601B6813F42B +S31508003CB0004F09D04FF4C844C4F20004FFF794FB40 +S31508003CC0236813F4004FF9D14FF4C843C4F2000334 +S31508003CD01A6822F002021A601A6842F001021A6093 +S31508003CE05B6813F0010F09D14FF4C844C4F200040D +S31508003CF0FFF77AFB636813F0010FF9D0013F0AF169 +S31508003D00FF36360546EA0747013D3D434FF4C843AB +S31508003D10C4F20003DD611A6822F001021A605B68CA +S31508003D2013F0010F09D04FF4C844C4F20004FFF79A +S31508003D305BFB636813F0010FF9D14FF4C843C4F273 +S31508003D400003D3F8002242F00102C3F80022D3F898 +S31508003D501C2222F00102C3F81C22D3F80C2242F0DE +S31508003D600102C3F80C220022C3F84022C3F84422F9 +S31508003D70D3F8042222F00102C3F80422D3F814224D +S31508003D8022F00102C3F81422D3F81C2242F00102E1 +S31508003D90C3F81C22D3F8002222F00102C3F800223D +S31508003DA0BDE8F08744F65860C0F60000E221FFF748 +S31508003DB017FF71E738B504460D464FF4C843C4F2F9 +S31508003DC000039B6813F0806F07D144F65860C0F66D +S31508003DD0000040F22111FFF703FF4FF4C843C4F275 +S31508003DE00003D3F8802102F00102C3F88021D3F83A +S31508003DF0802142F07C4242F40012C3F88021C3F8C5 +S31508003E008451E178A278120442EA016221780A43D1 +S31508003E10617842EA0122C3F88821E179A27912047D +S31508003E2042EA016221790A43617942EA0122C3F82A +S31508003E308C21D3F8802142F00102C3F880219B68C7 +S31508003E4013F0806F09D14FF4C844C4F20004FFF799 +S31508003E50CBFAA36813F0806FF9D038BD4FF4C84386 +S31508003E60C4F20003DB6813F0030F39D04FF4C843DC +S31508003E70C4F20003D3F8B02140F26763B3EB525F94 +S31508003E8018BF002023D14FF4C843C4F20003D3F867 +S31508003E90B8210270D3F8B821120A4270D3F8B821B3 +S31508003EA0120C8270D3F8B821120EC270D3F8BC2156 +S31508003EB00271D3F8BC21120A4271D3F8BC21120C44 +S31508003EC08271D3F8BC311B0EC3710120FFE74FF492 +S31508003ED0C843C4F20003DA6842F02002DA60704789 +S31508003EE00020704710B54FF48843C4F200031B88BE +S31508003EF003F080039BB2B3B14FF48843C4F20003C6 +S31508003F0098801B8803F080039BB273B94FF48844EA +S31508003F10C4F20004FFF768FA238803F080039BB213 +S31508003F20002BF7D003E0002010BD012010BD0120B2 +S31508003F3010BD00BF4FF48843C4F2000300221A8163 +S31508003F409A811A829A821A8340F271221A819A8970 +S31508003F5092B242F4005242F00C029A81704700BFB6 +S31508003F602DE9F04106460C46402906D944F6A060DC +S31508003F70C0F600008D21FFF733FE2046FFF7B2FF9B +S31508003F80012806D044F6A060C0F600009121FFF78C +S31508003F9027FE2546ACB1002444F6A067C0F6000704 +S31508003FA04FF09A08FFF720FA305DFFF79BFF0128CC +S31508003FB003D038464146FFF713FE0134A3B2AB429D +S31508003FC0F0D3BDE8F08100BF10B540F60033C2F269 +S31508003FD000031B785BBB4FF48843C4F200031B88BD +S31508003FE003F020039BB2002B56D04FF48843C4F24B +S31508003FF000039A8892B240F60833C2F200031A7098 +S3150800400012F0FF0F4AD000F0A7F840F60433C2F2C8 +S315080040100003186040F64C33C2F200030020187003 +S3150800402040F60033C2F2000301221A7010BD40F6B2 +S315080040304C33C2F200031A784FF48843C4F20003E3 +S315080040401B8803F020039BB263B34FF48843C4F282 +S3150800405000039C8840F60833C2F2000399184C7096 +S315080040600132D2B240F64C31C2F200010A701B7816 +S31508004070934215D11149FFF7D9FD40F60033C2F234 +S31508004080000300221A70012010BD40F60033C2F268 +S3150800409000030020187010BD002010BD002010BDC0 +S315080040A0002010BD00F058F840F60433C2F20003B1 +S315080040B01B6864339842E8D8002010BD090B00201D +S315080040C008B500F05BF908BD08B500F065F908BD4C +S315080040D008B500F089F908BD08B500F071FA08BD01 +S315080040E008B500F0C7FA08BD08B500F03DFA10B1EA +S315080040F000F09AFA08BD002008BD00BF4EF2100372 +S31508004100CEF2000300221A6041F63F11C0F2010107 +S3150800411059609A600521196040F65033C2F20003CF +S315080041201A6070474EF21003CEF2000300221A609E +S31508004130704700BF4EF21003CEF200031B6813F45B +S31508004140803F1FBF40F65033C2F200031A6801329F +S3150800415018BF1A60704700BF08B5FFF7EBFF40F6B7 +S315080041605033C2F20003186808BD00BF4FF400536D +S31508004170C4F202031A6942F080021A61704700BF4E +S31508004180F8B507460024254644F6C466C0F6000678 +S31508004190FFF72AF9A359BB420ED8311949680B44CF +S315080041A09F4209D244F6C463C0F6000305EB4502F4 +S315080041B003EB8203187AF8BD01350C349C2CE7D141 +S315080041C0FF20F8BD2DE9F84380460068FFF7D8FFC1 +S315080041D0FF285CD04FF40053C4F2020340F22312C6 +S315080041E0C4F267525A6048F6AB12CCF6EF525A60E0 +S315080041F03422DA60DB6813F0010F04D0FFF7B6FF4C +S315080042000020BDE8F8834FF40053C4F202031A698C +S3150800421042F001021A61002508F104094FF400541E +S31508004220C4F20204D8F80030EF1859F80560B2B2A3 +S31508004230EA52E36813F0010F05D0FFF7D5F8E368F3 +S3150800424013F0010FF9D1330C7B80E36813F0010FEB +S3150800425005D0FFF7C9F8E36813F0010FF9D13B68F9 +S31508004260B34204D10435B5F5007FDBD101E0002463 +S3150800427000E001244FF40053C4F202031A6922F045 +S3150800428001021A61FFF772FF2046BDE8F883002095 +S31508004290BDE8F88338B504460D4640F65433C2F2F5 +S315080042A00003984209D04FF4C043C0F60003994270 +S315080042B00BD0FFF787FF20B917E040F65854C2F233 +S315080042C00004C5F3080393B903E040F65434C2F278 +S315080042D0000423689D420CD0204640F8045B29461A +S315080042E04FF40072FFF7A2FC03E0002038BD00205F +S315080042F038BD204638BD00BF2DE9F04106460C46BC +S3150800430017461D464FEA51284FEA48280368B3F175 +S31508004310FF3F06D140F8048B41464FF40072FFF781 +S3150800432085FC3368434505D030464146FFF7B2FF62 +S315080043300646D0B13368E41A3444043408F50078E4 +S31508004340FFF752F8331DE31AB3F5007F06D330465C +S315080043504146FFF79FFF064650B1041D17F8013B7B +S3150800436004F8013B013DEBD105E00020BDE8F081F2 +S315080043700020BDE8F0810120BDE8F08140F65853E1 +S31508004380C2F200034FF0FF321A6040F65433C2F20D +S3150800439000031A60704700BF70B504460D461646FE +S315080043A0FFF7EEFEFF281BD0681E2044FFF7E8FE45 +S315080043B0FF2817D0620A4FF4C043C0F60003B3EBD8 +S315080043C0422F07BF40F65430C2F2000040F658505C +S315080043D0C2F20000214632462B46FFF78DFF70BD1C +S315080043E0002070BD002070BD2DE9F84304460E4636 +S315080043F0FFF7C6FE0546701E2044FFF7C1FE0446B9 +S31508004400FF2D18BFFF2800F0AB80854200F29F8081 +S31508004410022D40F29F800F2800F29F804FF4005330 +S31508004420C4F2020340F22312C4F267525A6048F6F5 +S31508004430AB12CCF6EF525A603422DA60DB6813F01E +S31508004440010F04D0FFF792FE0020BDE8F8834FF471 +S315080044500053C4F202031A6942F002021A6144F6D2 +S31508004460C469C0F600094F460026FEF7BDFF3B7A31 +S31508004470AB4208D144F6C463C0F6000306EB460215 +S3150800448053F8227005E001360C370D2EEDD14FF0AA +S31508004490FF37C8460025FEF7A7FF98F80830A3425D +S315080044A008D144F6C463C0F6000305EB450253F889 +S315080044B0228006E0013508F10C080D2DEBD14FF0EE +S315080044C0FF384E460025FEF78FFF337AA34209D1FF +S315080044D044F6C463C0F6000305EB450203EB82030A +S315080044E05B6804E001350C360D2DECD10023C7EBD3 +S315080044F008084344C3F38F23E3B1013B9EB2013658 +S31508004500B60200254FF40054C4F20204EB196361A5 +S31508004510236943F040032361E36813F0010F05D0D4 +S31508004520FEF762FFE36813F0010FF9D105F5806520 +S31508004530B542EBD14FF40053C4F202031A6922F0D4 +S3150800454002021A61FFF712FE0120BDE8F883002077 +S31508004550BDE8F8830020BDE8F8830020BDE8F883AD +S315080045600020BDE8F88300BF00B583B040F6543399 +S31508004570C2F200031B68B3F1FF3F08BF01201CD03D +S3150800458040F65433C2F2000399685A681144DA684F +S3150800459011441A6911445A6911449A690A44D96935 +S315080045A053185B4202AA42F8043D46F25010C0F680 +S315080045B000000421FFF7F0FEFFE703B05DF804FBF7 +S315080045C046F20402C0F600024FF4C043C0F60003E8 +S315080045D010681B68184446F20803C0F600031B68F7 +S315080045E0184446F20C03C0F600031B68184446F24A +S315080045F01003C0F600031B68184446F21403C0F6FD +S3150800460000031B68184446F21803C0F600031B682B +S31508004610184446F25013C0F600031B681844D0F13C +S31508004620010038BF0020704708B540F65433C2F27F +S3150800463000031B68B3F1FF3F06D040F65430C2F2C0 +S315080046400000FFF7BFFD88B140F65853C2F20003D9 +S315080046501B68B3F1FF3F0BD040F65850C2F200007A +S31508004660FFF7B0FD003018BF012008BD002008BDC7 +S31508004670012008BD4FF4C040C0F60000704700BFD7 +S3150800468008B544F66070C0F600003121FFF7A8FAB5 +S3150800469008BD00BF10B572B640F20002C2F20002B1 +S315080046A040F20803C2F200039A4210D2131D0E4CC0 +S315080046B0E41A24F0030404340023104645F290015A +S315080046C0C0F600015A581A500433A342FAD10748D3 +S315080046D007494FF000028842B8BF40F8042BFADBBE +S315080046E0FBF7E0FD10BD00BF0B000020080000200E +S315080046F05C0F00202F64656D6F70726F675F6F6C5B +S31508004700696D65785F73746D3332703130332E732B +S31508004710726563002F626F6F746C6F672E7478749E +S31508004720000000006D61696E2E630000222A3A3C83 +S315080047303E3F7C7F000000002B2C3B3D5B5D00006C +S31508004740809A90418E418F804545454949498E8FCB +S315080047509092924F994F555559999A9B9C9D9E9F19 +S3150800476041494F55A5A5A6A7A8A9AAABAC21AEAFA6 +S31508004770B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFB3 +S31508004780C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFA3 +S31508004790D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF93 +S315080047A0E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF83 +S315080047B0F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF73 +S315080047C001030507090E10121416181C1E00000016 +S315080047D061006200630064006500660067006800A7 +S315080047E069006A006B006C006D006E006F00700057 +S315080047F07100720073007400750076007700780007 +S3150800480079007A00A100A200A300A500AC00AF00C1 +S31508004810E000E100E200E300E400E500E600E7006E +S31508004820E800E900EA00EB00EC00ED00EE00EF001E +S31508004830F000F100F200F300F400F500F600F800CD +S31508004840F900FA00FB00FC00FD00FE00FF00010174 +S3150800485003010501070109010B010D010F011101F2 +S3150800486013011501170119011B011D011F01210162 +S3150800487023012501270129012B012D012F013101D2 +S315080048803301350137013A013C013E01400142013D +S315080048904401460148014B014D014F0151015301A5 +S315080048A05501570159015B015D015F016101630112 +S315080048B06501670169016B016D016F017101730182 +S315080048C0750177017A017C017E019201B103B20379 +S315080048D0B303B403B503B603B703B803B903BA03FE +S315080048E0BB03BC03BD03BE03BF03C003C103C303AD +S315080048F0C403C503C603C703C803C903CA033004F0 +S3150800490031043204330434043504360437043804D5 +S3150800491039043A043B043C043D043E043F04400485 +S315080049204104420443044404450446044704480435 +S3150800493049044A044B044C044D044E044F045104E4 +S31508004940520453045404550456045704580459048D +S315080049505A045B045C045E045F04702171217221B1 +S3150800496073217421752176217721782179217A217D +S315080049707B217C217D217E217F2141FF42FF43FF50 +S3150800498044FF45FF46FF47FF48FF49FF4AFF4BFFE5 +S315080049904CFF4DFF4EFF4FFF50FF51FF52FF53FF95 +S315080049A054FF55FF56FF57FF58FF59FF5AFF00009F +S315080049B0C700FC00E900E200E400E000E500E700CB +S315080049C0EA00EB00E800EF00EE00EC00C400C500CA +S315080049D0C900E600C600F400F600F200FB00F90084 +S315080049E0FF00D600DC00A200A300A500A7209201C4 +S315080049F0E100ED00F300FA00F100D100AA00BA00C8 +S31508004A00BF001023AC00BD00BC00A100AB00BB007A +S31508004A10912592259325022524256125622556256B +S31508004A2055256325512557255D255C255B251025CC +S31508004A30142534252C251C2500253C255E255F25B7 +S31508004A405A25542569256625602550256C25672530 +S31508004A5068256425652559255825522553256B252E +S31508004A606A2518250C25882584258C2590258025DA +S31508004A70B103DF009303C003A303C303B500C40354 +S31508004A80A6039803A903B4031E22C603B503292265 +S31508004A906122B1006522642220232123F7004822DF +S31508004AA0B0001922B7001A227F20B200A025A00064 +S31508004AB041004200430044004500460047004800C4 +S31508004AC049004A004B004C004D004E004F00500074 +S31508004AD05100520053005400550056005700580024 +S31508004AE059005A002100E0FFE1FFE5FFE2FFE3FF7E +S31508004AF0C000C100C200C300C400C500C600C7008C +S31508004B00C800C900CA00CB00CC00CD00CE00CF003B +S31508004B10D000D100D200D300D400D500D600D800EA +S31508004B20D900DA00DB00DC00DD00DE0078010001D8 +S31508004B3002010401060108010A010C010E01100117 +S31508004B4012011401160118011A011C011E01200187 +S31508004B5022012401260128012A012C012E013001F7 +S31508004B6032013401360139013B013D013F01410162 +S31508004B704301450147014A014C014E0150015201CA +S31508004B805401560158015A015C015E016001620137 +S31508004B906401660168016A016C016E0170017201A7 +S31508004BA07401760179017B017D01910191039203DC +S31508004BB093039403950396039703980399039A031B +S31508004BC09B039C039D039E039F03A003A103A303CA +S31508004BD0A403A503A603A703A803A903AA0310040D +S31508004BE011041204130414041504160417041804F3 +S31508004BF019041A041B041C041D041E041F042004A3 +S31508004C002104220423042404250426042704280452 +S31508004C1029042A042B042C042D042E042F04010431 +S31508004C20020403040404050406040704080409042A +S31508004C300A040B040C040E040F046021612162218E +S31508004C4063216421652166216721682169216A211A +S31508004C506B216C216D216E216F2121FF22FF23FF1D +S31508004C6024FF25FF26FF27FF28FF29FF2AFF2BFF02 +S31508004C702CFF2DFF2EFF2FFF30FF31FF32FF33FFB2 +S31508004C8034FF35FF36FF37FF38FF39FF3AFF00009C +S31508004C904F70656E424C54002E2E2F2E2E2F2E2E20 +S31508004CA02F536F757263652F66696C652E630000F6 +S31508004CB04669726D776172652075706461746520E6 +S31508004CC0726571756573742064657465637465646B +S31508004CD00A0D00004F70656E696E67206669726D11 +S31508004CE0776172652066696C6520666F72207265E9 +S31508004CF06164696E672E2E2E000000004552524FE1 +S31508004D00520A0D004F4B0A0D0000000053746172E1 +S31508004D1074696E67207468652070726F6772616D5A +S31508004D206D696E672073657175656E63650A0D003A +S31508004D3050617273696E67206669726D7761726514 +S31508004D402066696C6520746F206F627461696E20D5 +S31508004D5065726173652073697A652E2E2E000000D0 +S31508004D6045726173696E67200000000020627974DD +S31508004D7065732066726F6D206D656D6F727920613F +S31508004D80742030780000000052656164696E6720FF +S31508004D906C696E652066726F6D2066696C652E2E6D +S31508004DA02E4552524F520A0D00000000496E766198 +S31508004DB06C696420636865636B73756D20666F75CF +S31508004DC06E642E2E2E4552524F520A0D00000000D8 +S31508004DD050726F6772616D6D696E67200000000022 +S31508004DE020627974657320746F206D656D6F7279B2 +S31508004DF0206174203078000057726974696E6720E4 +S31508004E0070726F6772616D20636865636B73756D29 +S31508004E102E2E2E00436C6F73696E67206669726D5D +S31508004E20776172652066696C650A0D004669726D60 +S31508004E307761726520757064617465207375636344 +S31508004E4065737366756C6C7920636F6D706C6574C9 +S31508004E5065640A0D000000002E2E2F2E2E2F2E2EF2 +S31508004E602F536F757263652F41524D434D335F5310 +S31508004E70544D33322F63616E2E630000050206021D +S31508004E80060307030803090309040A040B040C04B0 +S31508004E900C050D050E050F050F0610061007100860 +S31508004EA02E2E2F2E2E2F2E2E2F536F757263652FB3 +S31508004EB041524D434D335F53544D33322F75617212 +S31508004EC0742E630000600008002000000300000044 +S31508004ED000800008002000000400000000A0000870 +S31508004EE0002000000500000000C0000800200000A7 +S31508004EF00600000000E0000800200000070000008F +S31508004F000000010800200000080000000020010839 +S31508004F1000200000090000000040010800200000F1 +S31508004F200A00000000600108002000000B000000D5 +S31508004F3000800108002000000C00000000A0010805 +S31508004F40002000000D00000000C00108002000003D +S31508004F500E00000000E00108002000000F0000001D +S31508004F602E2E2F2E2E2F2E2E2F536F757263652FF2 +S31508004F7041524D434D335F53544D33322F474343CC +S31508004F802F766563746F72732E63000000202020ED +S31508004F9020202020202028282828282020202020DB +S31508004FA020202020202020202020202020881010AB +S31508004FB01010101010101010101010101004040407 +S31508004FC004040404040404101010101010104141C5 +S31508004FD041414141010101010101010101010101B3 +S31508004FE001010101010101011010101010104242C7 +S31508004FF04242424202020202020202020202020283 +S315080050000202020202020202101010102000000022 S315080050100000000000000000000000000000000082 S315080050200000000000000000000000000000000072 S315080050300000000000000000000000000000000062 @@ -1287,5 +1287,6 @@ S315080050400000000000000000000000000000000052 S315080050500000000000000000000000000000000042 S315080050600000000000000000000000000000000032 S315080050700000000000000000000000000000000022 -S30D08005080010400007C4F000842 +S315080050800000000000000000000000000000000012 +S30D08005090010400008C4F000822 S70508000000F2 diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/hooks.c b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/hooks.c index 378d1575..22303355 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_GCC/Boot/hooks.c @@ -316,13 +316,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/bin/openbtl_olimex_stm32p103.out b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/bin/openbtl_olimex_stm32p103.out index 1045fcef..d70ad736 100644 Binary files a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/bin/openbtl_olimex_stm32p103.out and b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/bin/openbtl_olimex_stm32p103.out differ diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/bin/openbtl_olimex_stm32p103.srec b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/bin/openbtl_olimex_stm32p103.srec index b7ad8b04..2fb83968 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/bin/openbtl_olimex_stm32p103.srec +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/bin/openbtl_olimex_stm32p103.srec @@ -1,25 +1,25 @@ S02000006F70656E62746C5F6F6C696D65785F73746D3332703130332E7372656307 -S31508000000501300200D5100085151000851510008A5 -S31508000010515100085151000851510008515100082A -S31508000020515100085151000851510008515100081A -S31508000030515100085151000851510008515100080A -S3150800004051510008515100085151000851510008FA -S3150800005051510008515100085151000851510008EA -S3150800006051510008515100085151000851510008DA -S3150800007051510008515100085151000851510008CA -S3150800008051510008515100085151000851510008BA -S3150800009051510008515100085151000851510008AA -S315080000A0515100085151000851510008515100089A -S315080000B0515100085151000851510008515100088A -S315080000C0515100085151000851510008515100087A -S315080000D0515100085151000851510008515100086A -S315080000E0515100085151000851510008515100085A -S315080000F0515100085151000851510008515100084A -S315080001005151000851510008515100085151000839 -S315080001105151000851510008515100085151000829 -S315080001205151000851510008515100085151000819 -S315080001305151000851510008515100085151000809 -S3150800014051510008515100085151000851510008F9 +S31508000000501300201D510008615100086151000875 +S3150800001061510008615100086151000861510008EA +S3150800002061510008615100086151000861510008DA +S3150800003061510008615100086151000861510008CA +S3150800004061510008615100086151000861510008BA +S3150800005061510008615100086151000861510008AA +S31508000060615100086151000861510008615100089A +S31508000070615100086151000861510008615100088A +S31508000080615100086151000861510008615100087A +S31508000090615100086151000861510008615100086A +S315080000A0615100086151000861510008615100085A +S315080000B0615100086151000861510008615100084A +S315080000C0615100086151000861510008615100083A +S315080000D0615100086151000861510008615100082A +S315080000E0615100086151000861510008615100081A +S315080000F0615100086151000861510008615100080A +S3150800010061510008615100086151000861510008F9 +S3150800011061510008615100086151000861510008E9 +S3150800012061510008615100086151000861510008D9 +S3150800013061510008615100086151000861510008C9 +S3150800014061510008615100086151000861510008B9 S3150800015003E00B780370491C401C13005A1E002B41 S31508000160F7D1704701E00170401C13005A1E002B9E S31508000170F9D1704710B400231400621E002C06D073 @@ -349,7 +349,7 @@ S315080015A0211250EA012094F820120843E06094F8CA S315080015B01F0294F81E12090451EA006094F81D12DD S315080015C050EA012094F81C12084320612670DFF8BF S315080015D0D8090088401CDFF8D0190880E080002070 -S315080015E02063002020710020F2BD00002051000871 +S315080015E02063002020710020F2BD00003051000861 S315080015F080B500280BD00168002908D00168097851 S31508001600002904D00168C9888288914201D009203E S3150800161008E00068407800F0C4FFC00701D5032041 @@ -380,8 +380,8 @@ S31508001790E0612762F6B2002E19D1A57139000098CA S315080017A0FFF76BF82061F87FB97F090451EA0060FA S315080017B0797F50EA0120397F0843E0600020A06065 S315080017C00020A061009820600098C088A0803000A2 -S315080017D0C0B20DB0BDE8F08360510008004D0008A6 -S315080017E0845100082DE9F047050016001F000C007B +S315080017D0C0B20DB0BDE8F08370510008104D000886 +S315080017E0945100082DE9F047050016001F000C006B S315080017F0002038602800FFF7FBFEC0B2002801D0A1 S31508001800C0B2E7E0A879000601D50220E2E0A8798F S31508001810C00701D40720DDE0E868A968401AB0428D @@ -669,8 +669,8 @@ S315080029A089B2124A32F8112080B29042F4D111F15C S315080029B08000C1B2080080B27047002100E0491CBF S315080029C00B4A32F81120002A05D0094A32F811209C S315080029D080B29042F3D1064A32F81120002A03D079 -S315080029E0044830F81100FFE780B27047644B0008CE -S315080029F0A447000884490008F0B4002200260024F1 +S315080029E0044830F81100FFE780B27047744B0008BE +S315080029F0B447000894490008F0B4002200260024D1 S31508002A0000250023002791F803C01CF00F0C62462E S31508002A1091F803C05FEACC6C01D58B781A430B7822 S31508002A201B0621D00368002406E0CD78482D02D184 @@ -704,7 +704,7 @@ S31508002BD00A480068C00304D509480068401C08492B S31508002BE00860704780B5FFF7F3FF0548006802BD27 S31508002BF014E000E03F19010018E000E010E000E0F2 S31508002C003C0F002080B5DFF8780600210170DFF858 -S31508002C1074160020FEF707FDC0B2002804D07C21F8 +S31508002C1074160020FEF707FDC0B2002804D07721FD S31508002C20DFF8640600F0C0FB01BDDFF85406007843 S31508002C30002801D1012000E00020704780B500F08F S31508002C402DFC012801D1002011E0DFF834060078B8 @@ -712,20 +712,20 @@ S31508002C50002801D000200AE000F024FC012805D154 S31508002C60DFF81C0601210170012000E0002002BDEA S31508002C7010B50024DFF808060078002800F0FF8168 S31508002C80DFF8FC050078012834D100F025FCDFF8D0 -S31508002C90FC0500F04FFCDFF8F80500F04BFC00F0EF +S31508002C90FC0500F057FCDFF8F80500F053FC00F0DF S31508002CA019FC01220100DFF8EC05FEF7D5FC002827 -S31508002CB007D0DFF8E40500F03DFC012000F030FC09 -S31508002CC0DDE1DFF8D80500F035FCDFF8D40500F0C3 -S31508002CD031FCDFF8D00500F02DFCDFF8CC0500212B +S31508002CB007D0DFF8E40500F045FC012000F038FCF9 +S31508002CC0DDE1DFF8D80500F03DFCDFF8D40500F0BB +S31508002CD039FCDFF8D00500F035FCDFF8CC0500211B S31508002CE00160DFF8C40500214160DFF89405022180 S31508002CF00170C4E1DFF888050078022840F0F78003 S31508002D00DFF890254FF48071DFF8A005FFF750F93A S31508002D10DFF8701591F83A12C1F3C01111F00101EC -S31508002D2001290FDBDFF8700500F004FC022000F033 -S31508002D30F7FBDFF86005FEF7BAFFDFF84405002168 +S31508002D2001290FDBDFF8700500F00CFC022000F02B +S31508002D30FFFBDFF86005FEF7BAFFDFF84405002160 S31508002D4001709CE100281BD00022DFF86415DFF82B S31508002D505C0500F0D5F9040024B214F1010F0FD177 -S31508002D60DFF8340500F0E6FB032000F0D9FBDFF8B6 +S31508002D60DFF8340500F0EEFB032000F0E1FBDFF8A6 S31508002D702405FEF79CFFDFF80805002101707EE1B7 S31508002D8024B2012C28DBDFF82005406800280BD187 S31508002D90DFF81805D0F88001DFF80C150860DFF8B1 @@ -735,48 +735,48 @@ S31508002DC08001DFF8E4140860DFF8DC04406824B208 S31508002DD02018DFF8D4144860DFF8A804D0F83C02BD S31508002DE0DFF8A014D1F84012884201D1012000E092 S31508002DF000200128C0F243810021DFF89804FEF77D -S31508002E0062FF00280FD0DFF8900400F093FB04203F -S31508002E1000F086FBDFF87C04FEF749FFDFF8600464 -S31508002E20002101702BE1DFF8740400F083FBDFF862 -S31508002E30840400F07FFBDFF88014DFF86C04406838 -S31508002E4000F074FADFF8700400F074FBDFF86C0425 -S31508002E5000F070FBDFF86014DFF84C040068000E21 +S31508002E0062FF00280FD0DFF8900400F09BFB042037 +S31508002E1000F08EFBDFF87C04FEF749FFDFF860045C +S31508002E20002101702BE1DFF8740400F08BFBDFF85A +S31508002E30840400F087FBDFF88014DFF86C04406830 +S31508002E4000F074FADFF8700400F07CFBDFF86C041D +S31508002E5000F078FBDFF86014DFF84C040068000E19 S31508002E60C0B200F052FADFF85814DFF83C040068E4 S31508002E70000CC0B200F049FADFF84814DFF828045D S31508002E800068000AC0B200F040FADFF83C14DFF828 S31508002E9018040068C0B200F038FADFF81C0400F025 -S31508002EA049FB77A000F046FBDFF8FC034168DFF832 -S31508002EB0F803006800F074FB00280FD1DFF8D80388 -S31508002EC000F038FB052000F02BFBDFF8C803FEF7FF +S31508002EA051FB77A000F04EFBDFF8FC034168DFF822 +S31508002EB0F803006800F07CFB00280FD1DFF8D80380 +S31508002EC000F040FB052000F033FBDFF8C803FEF7EF S31508002ED0EEFEDFF8AC0300210170D0E0DFF8BC039A -S31508002EE000F028FBDFF8980303210170C7E0DFF83C +S31508002EE000F030FBDFF8980303210170C7E0DFF834 S31508002EF090030078032840F0C280DFF898234FF447 S31508002F008071DFF8A803FFF753F8DFF8781391F814 S31508002F103A12C1F3C01111F0010101290EDBDFF8E5 -S31508002F20AC0300F007FB022000F0FAFADFF86403AE +S31508002F20AC0300F00FFB022000F002FBDFF864039D S31508002F30FEF7BDFED24800210170A0E000281AD095 S31508002F40DFF88C23DFF86813DFF8600300F0D8F8A1 S31508002F50040024B214F1010F0DD1DFF8780300F054 -S31508002F60E9FA032000F0DCFACA48FEF7A0FEC448D6 +S31508002F60F1FA032000F0E4FACA48FEF7A0FEC448C6 S31508002F700021017083E024B2012C4CDBD64800F016 -S31508002F80D9FACD4924B2200000F0D0F9CA4800F099 -S31508002F90D1FAD24800F0CEFAC749C448D0F8800121 +S31508002F80E1FACD4924B2200000F0D0F9CA4800F091 +S31508002F90D9FAD24800F0D6FAC749C448D0F8800111 S31508002FA0000EC0B200F0B1F9C549C048D0F880019A S31508002FB0000CC0B200F0A9F9C249BC48D0F880019B S31508002FC0000AC0B200F0A1F9BF49B848D0F880019C -S31508002FD0C0B200F09AF9B84800F0ACFA28A000F0A0 -S31508002FE0A9FABB4A24B22100B048D0F8800100F003 -S31508002FF0D3FA00280CD1A84800F09CFA062000F065 -S315080030008FFAA448FEF753FE9D480021017036E06A -S31508003010A24800F08FFA9B48D0F83C029949D1F8AB +S31508002FD0C0B200F09AF9B84800F0B4FA28A000F098 +S31508002FE0B1FABB4A24B22100B048D0F8800100F0FB +S31508002FF0DBFA00280CD1A84800F0A4FA062000F055 +S3150800300097FAA448FEF753FE9D480021017036E062 +S31508003010A24800F097FA9B48D0F83C029949D1F8A3 S315080030204012884201D1012000E00020012826DB59 -S31508003030AB4800F07FFA00F0BFFA00280CD196489A -S3150800304000F078FA072000F06BFA9248FEF72FFE98 -S315080030508B480021017012E0904800F06BFAA148F5 -S3150800306000F068FA8B48FEF722FE9F4800F062FAE5 -S3150800307083480021017000F040FA00F0A7FA10BD5D -S315080030802E2E2E0010B50400207800F0C8FA53281A -S3150800309004D1607800F0C7FA002801D103200FE0B8 +S31508003030AB4800F087FA00F0C7FA00280CD196488A +S3150800304000F080FA072000F073FA9248FEF72FFE88 +S315080030508B480021017012E0904800F073FAA148ED +S3150800306000F070FA8B48FEF722FE9F4800F06AFAD5 +S3150800307083480021017000F040FA00F0AFFA10BD55 +S315080030802E2E2E0010B50400207800F0D0FA532812 +S3150800309004D1607800F0CFFA002801D103200FE0B0 S315080030A06078312801D100200AE06078322801D101 S315080030B0012005E06078332801D1022000E00320D2 S315080030C010BD70B504000026A41C200000F047F9C6 @@ -784,7 +784,7 @@ S315080030D00500AE19A41C200000F041F986196D1EE2 S315080030E0A41CADB2022DF6DAF6B2F643200000F0C3 S315080030F036F9F6B2864201D0002000E0012070BD04 S315080031002DE9F04105000E0014005FF00008002EBE -S3150800311001D0002D04D140F236215B4800F044F975 +S3150800311001D0002D04D140F231215B4800F044F97A S315080031202800FFF7AFFF0700FFB2032F01D10020E9 S31508003130A3E02800FFF7C5FF002802D15FF0FF30A3 S315080031409BE0FFB2002F03D0022F5AD028D392E07B @@ -807,15 +807,15 @@ S315080032400080280000F08BF810EB08003060AD1CF9 S31508003250B7F10508002C0DD0002606E0280000F07E S315080032607EF8B6B23055AD1C761CB6B20FFA88F8A1 S315080032704645F3DBFFE7404600B2BDE8F0810000B3 -S31508003280470F002004000020904E0008904F0008C9 -S315080032901C4F0008380200208C5100089451000881 -S315080032A0B44F0008C04E0008200F00208C0C0020E8 -S315080032B00C0E00206C510008E00E00206450000837 -S315080032C0E20E0020E40E0020E60E0020D84F00088B -S315080032D08C0D0020FC4F0008305100089C50000857 -S315080032E080500008B4500008F04E000880B5010070 +S31508003280470F002004000020A04E0008A04F0008A9 +S315080032902C4F0008380200209C510008A451000851 +S315080032A0C44F0008D04E0008200F00208C0C0020C8 +S315080032B00C0E00207C510008E00E00207450000817 +S315080032C0E20E0020E40E0020E60E0020E84F00087B +S315080032D08C0D00200C50000840510008AC50000826 +S315080032E090500008C4500008004F000880B501003F S315080032F011F00F003030C9B20A2901DBC01D02E007 -S31508003300C0B200F08CF9C0B202BD38B504000D0099 +S31508003300C0B200F094F9C0B202BD38B504000D0091 S31508003310E4B22009FFF7EAFF287014F00F00FFF760 S31508003320E5FF68700020A870280032BD0200491C1D S315080033300A23B2FBF3F2002AF9D100220A7002002E @@ -823,487 +823,488 @@ S31508003340491E0A20B2FBF0F300FB13203030087048 S315080033500A20B2FBF0F2002AF2D10800704770B5D5 S3150800336004000025002609E03038C0B20A2800DB30 S31508003370C01FEDB2C0B210EB0515761CF6B2022ED0 -S315080033800FDAF6B2305D00F04AF9C0B2B0F130019A +S315080033800FDAF6B2305D00F052F9C0B2B0F1300192 S31508003390172904D2C0B2B0F13A010729E4D20020B5 S315080033A001E02800C0B270BD80B5034A106003482A -S315080033B0016000F041F9FCE7280F00202C0F0020DF -S315080033C080B500F04BF900F0DAFB324801210170B4 -S315080033D000F0FAFC2F480021017001BD80B52E4887 -S315080033E000F08FFC012805D12A48012101702A48DE -S315080033F000F05EF9284800F02FFD012805D1254880 -S3150800340000210170244800F053F901BD704738B512 +S315080033B0016000F049F9FCE7280F00202C0F0020D7 +S315080033C080B500F053F900F0E2FB324801210170A4 +S315080033D000F002FD2F480021017001BD80B52E487E +S315080033E000F097FC012805D12A48012101702A48D6 +S315080033F000F066F9284800F037FD012805D1254870 +S3150800340000210170244800F05BF901BD704738B50A S3150800341004000D001F480078012804D12900C9B20C -S31508003420200000F02DFC1B480078002804D1290054 -S31508003430C9B2200000F0E4FC00F034F931BD1548AB +S31508003420200000F035FC1B480078002804D129004C +S31508003430C9B2200000F0ECFC00F03CF931BD15489B S315080034400078002805D0022807D004D3032806D020 S3150800345007E0402006E0082004E0002002E0002003 S3150800346000E0402080B270470A480078002805D05E S31508003470022807D004D3032806D007E0402006E038 S31508003480082004E0002002E0002000E0402080B28E S315080034907047000000000020A00E002080B500F054 -S315080034A0F8F802BD00B589B000A8202100F052FD49 -S315080034B000A93348FEF7E4FC002808D10098002844 +S315080034A000F902BD00B589B000A8202100F05AFD38 +S315080034B000A93748FEF7E4FC002808D10098002840 S315080034C005D09DF80800C00601D4012000E00020C0 -S315080034D009B000BD2A48704780B52A48002180F8FF -S315080034E024120A2228492748FEF7B6F8002803D1ED -S315080034F02448012180F8241201BD80B5214890F89E -S315080035002402012802D11F48FEF7D1FB40211F489B -S3150800351000F028FD0028F9D01948FEF7DBFC01BDAC -S3150800352080B5184890F82402012802D11548FEF7FC -S31508003530BEFB01BD10B50400124890F8240201280C -S3150800354019D110492000FEF776FD002813D50D483D -S31508003550002180F824120B48FEF7A9FB0BE021781E -S3150800356089B20A4800F0FAFC8021084800F0FAFC03 -S315080035700028F9D0641C20780028F0D110BD00007E -S31508003580445000085C0400204051000800440040F4 -S3150800359080B500F0F5FC01BD80B500F0FCFC02BD6D -S315080035A080B500F022FD02BD80B500F07DFD02BDAC -S315080035B080B500F0C9FD02BD80B500F030FD0028D9 -S315080035C001D1002001E000F0A0FD02BD80B5FFF7A3 -S315080035D0EBFF00280DD0FFF719FFFFF7F5FAFFF705 -S315080035E0E7FF0449084004490860FFF7E1FF40681F -S315080035F0804701BD80FFFF1F08ED00E070B504009D -S315080036000D00160005E0287820706D1C641C00F07B -S3150800361013F83000461E80B20028F4D170BD80B57C -S3150800362000F040FF02BD30380A2801D2012000E030 -S315080036300020C0B270477047704750F8041B61B14C -S3150800364050F8042BD30744BFA9F101039A180023A5 -S3150800365042F8043B091FFAD1EFE77047DFF8700418 -S3150800366000210170DFF8680400218164DFF8600436 -S31508003670002180F84310DFF858040021A0F8441010 -S31508003680DFF84C0400218170DFF844040021417002 -S315080036907047DFF83C040078002801D1002000E0DC -S315080036A001207047DFF82804002180F8431070478E -S315080036B080B50178FF291ED100F091F8DFF81004D3 -S315080036C090F84300012802D1102000F07EF8DFF8B8 -S315080036D00004B0F9440001280CDBDFF8F4030121EB -S315080036E080F84310DFF8E803B0F94410DFF8E40384 -S315080036F000F053F801BDDFF8D813097801294BD13A -S315080037000178C92932D0CC293FD0CF293AD0D0293F -S315080037102FD0D12933D0D2292ED0F32917D0F42986 -S315080037200FD0F5290AD0F6290ED0FA2912D0FC298D -S3150800373013D0FD2914D0FE2915D029E000F0DAF8B7 -S31508003740BCE700F0F9F8B9E700F0C9F8B6E700F009 -S3150800375018F9B3E700F0ABF8B0E700F0A2F8ADE768 -S3150800376000F087F8AAE700F075F8A7E700F03DF93A -S31508003770A4E700F05CF9A1E700F01AF99EE700F06B -S3150800378087F99BE700F098F998E700F0ABF995E719 -S31508003790202000F01AF891E7ACE780B589B2FFF768 -S315080037A036FE01BD10B4002302E00478E318401C7D -S315080037B00C00611E002CF8D1DBB21360012010BC8E -S315080037C07047C348002141707047C149FE22CA703C -S315080037D0BF490871BE480221A0F84410704710B5C9 -S315080037E00400FFF722FA002803D11020FFF7EDFFA7 -S315080037F02FE0FFF7E6FFB64801210170B448FF2124 -S31508003800C170B34800210171B148007950F0100029 -S31508003810AF490871AE4800214171AD48AC494979B4 -S315080038204171FFF70CFEAA498871FFF71DFEA849EA -S31508003830C871FFF719FE80B2000AA5490872A448A4 -S3150800384001214172A24801218172A1480821A0F8EC -S31508003850441010BD10B504009D4800210170FFF703 -S31508003860B0FF9B48FF21C17099480121A0F8441078 -S3150800387010BD9749FF22CA70954900220A719449DA -S31508003880934A52784A71924900228A7190490022D5 -S31508003890CA718F4900220A728D490622A1F844206E -S315080038A0704710B504000020FFF78FFF10BD884948 -S315080038B0FF22CA708649884A8A64854900220A71A5 -S315080038C0834900224A71824900228A718049072267 -S315080038D0C1F807207E490822A1F8442070477C4990 -S315080038E0FF22CA707A494068886479480121A0F89D -S315080038F04410704710B50400FFF7A1FD401E61781B -S31508003900884203DA2220FFF760FF14E0627892B259 -S315080039106F48816C7148FFF771FE6D48FF21C170D1 -S315080039206B48806C61780818694988646078401C1F -S315080039306749A1F8440010BD10B50400FFF77FFDE4 -S31508003940401E6178884203DA2220FFF73EFF17E01F -S315080039505F4861688164627892B25D48816C5F48AD -S31508003960FFF74CFE5A48FF21C1705948806C6178B0 -S315080039700818574988646078401C5549A1F84400DE -S3150800398010BD80B55249FF22CA70554A4168504851 -S31508003990806CFFF707FF4E4908714D4800214171B9 -S315080039A04B48002181714A480821A0F8441001BDFE -S315080039B010B504004648FF21C17045480021017131 -S315080039C0434800214171FFF73AFD41498871404853 -S315080039D00021C1713E48002101723D480021417213 -S315080039E03B480721A0F8441010BD10B50400FFF7A6 -S315080039F026FD621C80B2411E3548806CFFF7CCFD5F -S31508003A00002803D13120FFF7E0FE0FE03048FF2100 -S31508003A10C170FFF714FD2E49896C80B2401E40180C -S31508003A202B4988642A480121A0F8441010BD10B516 -S31508003A300400FFF704FD801E6178884203DA22201D -S31508003A40FFF7C3FE23E02248FF21C1702048012169 -S31508003A50A0F844106078002807D1FFF7ADFD0028CC -S31508003A6002D13120FFF7B1FE11E0A21C6178184897 -S31508003A70806CFFF791FD002803D13120FFF7A5FEE2 -S31508003A8005E01348806C617808181149886410BDF0 -S31508003A9080B541680E48806CFFF782FD002803D187 -S31508003AA03120FFF792FE06E00948FF21C170084859 -S31508003AB00121A0F8441001BD10B50400FFF786FDEA -S31508003AC00348FF21C17002480121A0F8441010BD27 -S31508003AD0100E0020130E00209C510008140E002022 -S31508003AE0170E002080B53120FFF76FFE01BD0000DC -S31508003AF0F0B4002400E0641CE4B2122C3CD248F670 -S31508003B00A04580B2E4B2994E16F81460E4B2974F15 -S31508003B1017EB44077F78BE19761C06FB00F695FB63 -S31508003B20F6F706FB1755002DE5D148F6A04580B2F5 -S31508003B30E4B28E4E16F81460E4B28C4F17EB4407C5 -S31508003B407F78BE19761C06FB00F695FBF6F50D8008 -S31508003B500D88002DCFD00D88B5F5806FCBDCE4B28B -S31508003B60824810F814001070E4B2804810EB440044 -S31508003B7040781870012000E00020F0BC704780B53E -S31508003B8000AB0DF101020DF102014FF4FA70FFF7D7 -S31508003B90AFFFC0B2012803D0E6217548FFF704FC41 -S31508003BA07448002101607448006850F40040724966 -S31508003BB0086001E0FFF740FD6F4800680004F9D48B -S31508003BC06D48006830F002006B4908606A48006872 -S31508003BD050F001006849086001E0FFF72DFD6748CD -S31508003BE00068C007F9D59DF80100401E9DF8001031 -S31508003BF0491E090551EA0040BDF80210491E08434E -S31508003C005F4908605C480068400840005A490860F7 -S31508003C1001E0FFF711FD59480068C007F9D4594873 -S31508003C20006850F001005749086057480068400886 -S31508003C304000554908605548006850F0010053494E -S31508003C40086053480021016052480021016052482B -S31508003C50006840084000504908605048006840081D -S31508003C6040004E4908604848006850F0010046493F -S31508003C70086044480068400840004249086001BDA1 -S31508003C8038B504000D0046480068400104D440F2E7 -S31508003C9025113748FFF788FB4248006810F00100F5 -S31508003CA0404908603F4800683F4908433D49086065 -S31508003CB03E48EDB20560E078A178090451EA006053 -S31508003CC0617850EA01202178084339490860E0798B -S31508003CD0A179090451EA0060617950EA0120217945 -S31508003CE00843344908602F48006850F001002D4900 -S31508003CF0086001E0FFF7A0FC294800684001F9D5F3 -S31508003D0031BD00212C4A126812F0030F2BD02B4A22 -S31508003D101268520D40F267639A421ED10121284A61 -S31508003D2012680270264A1268120A4270244A1268F9 -S31508003D30120C8270224A1268120EC270214A126848 -S31508003D400271204A1268120A42711E4A1268120C3F -S31508003D5082711C4A1268120EC2711748006850F028 -S31508003D602000154A10600800C0B270476C4F000862 -S31508003D70184E0008146400400064004004640040C3 -S31508003D801C640040006600401C6600400C6600404B -S31508003D9040660040446600400466004014660040E1 -S31508003DA00864004080650040000020FC84650040EF -S31508003DB0886500408C6500400C640040B065004092 -S31508003DC0B8650040BC65004055480021018055484B -S31508003DD000210180544800210180544800210180B7 -S31508003DE05348002101804E4840F2712101804D4818 -S31508003DF0008840F4005050F00C004A49088070478B -S31508003E0070B504000D00EDB2412D03DB922149483F -S31508003E10FFF7CAFA2800C0B200F06FF8C0B201284E -S31508003E2003D096214348FFF7BFFA00260DE0FFF7B7 -S31508003E3003FCB6B2305D00F060F8C0B2012803D0CA -S31508003E409F213C48FFF7B0FA761C2800C0B2B6B2EC -S31508003E5080B28642EBD370BD10B5040036480078B0 -S31508003E60002813D1354800F03DF8012838D13348E9 -S31508003E700078002834D0FEF7B5FE3149086031488D -S31508003E80002101702C480121017029E02D48007895 -S31508003E902A494018401C00F025F8012816D129485F -S31508003EA00078401C27490870264800782349097875 -S31508003EB0884215D12348027892B223492000FFF799 -S31508003EC09DFB1D480021017001200AE0FEF78AFECD -S31508003ED01B4909686431814202D2174800210170E2 -S31508003EE0002010BD19490988890604D5184909888A -S31508003EF00170012000E00020704780B51349098849 -S31508003F00090601D400200AE01149C0B2088001E080 -S31508003F10FFF792FB0D4800880006F9D5012002BD7F -S31508003F20084400400C44004010440040144400403B -S31508003F3018440040544E0008490F00205C0E00202B -S31508003F40400F0020480F00205D0E0020004400406E -S31508003F5004440040002200F0B1BA0000C905C90DAA -S31508003F6081807047002289B2B1F5007F0088084237 -S31508003F7001D0012200E000221000C0B27047000004 -S31508003F80DFF8FC045FF0FF310160DFF8F8045FF04A -S31508003F90FF310160704770B504000D00160020005F -S31508003FA000F00BFAFF2805D02819401E00F005FA84 -S31508003FB0FF2801D1002017E0600A4FF4007148433A -S31508003FC0DFF8C4140968884207D12B0032002100A3 -S31508003FD0DFF8B00400F0F4F806E02B003200210008 -S31508003FE0DFF89C0400F0ECF870BD70B504000D0015 -S31508003FF0200000F0E2F906002819401E00F0DDF95D -S31508004000F6B2FF2E02D0C0B2FF2801D1002005E08B -S315080040100100C9B23000C0B200F060F970BD80B5C9 -S3150800402000200090DFF85C04006810F1010F01D150 -S31508004030012038E00098DFF84C1449680818009009 -S315080040400098DFF840148968081800900098DFF88F -S315080040503414C968081800900098DFF8281409690C -S31508004060081800900098DFF81C1449690818009091 -S315080040700098DFF810148969081800900098DFF88E -S315080040800414C969081800900098C0430090009865 -S31508004090401C009000AA0421DFF8EC03006810F524 -S315080040A0A870FFF778FF02BD0020DFF8DC13096867 -S315080040B009680818DFF8D013096849680818DFF88E -S315080040C0C813096889680818DFF8BC130968C9683D -S315080040D00818DFF8B413096809690818DFF8A8137F -S315080040E0096849690818DFF8A01309688969081872 -S315080040F0DFF89413096811F5A871096808180028EB -S3150800410001D1012000E00020704780B5DFF8740374 -S31508004110006810F1010F07D0DFF8680300F093F884 -S31508004120002801D100200EE0DFF85403006810F1E2 -S31508004130010F07D0DFF8480300F085F8002801D101 -S31508004140002000E0012002BDDFF83C03006870474C -S3150800415080B54FF40072B1FBF2F303FB1213002B88 -S3150800416001D000200BE002688A4201D1012006E056 -S3150800417001604FF40072001DFFF740FA012002BDEE -S3150800418038B504000D00BF48844208D1BC4C29004C -S315080041902000FFF7DDFF002810D100200FE0BA4805 -S315080041A00068854203D1B74CB7480568EFE7200099 -S315080041B000F049F80028EAD1002000E0200032BDCE -S315080041C02DE9F04104000F0015001E00780A4FF48F -S315080041D0007101FB00F8206810F1010F07D1414674 -S315080041E02000FFF7B5FF002801D1002029E020684C -S315080041F0404508D041462000FFF7C2FF0400002CC6 -S3150800420001D100201DE02068381A0019071DFFF7A4 -S3150800421013FA201D381AB0F5007F0AD318F5007175 -S315080042202000FFF7ADFF0400002C01D1002008E0B4 -S31508004230271D287838707F1C6D1C761E002EE6D147 -S315080042400120BDE8F0812DE9F04104000125206830 -S3150800425000F0B3F8C0B2FF2801D100203CE000F01E -S315080042609BF88A480068C00703D500F09FF800202D -S3150800427032E08748006850F001008549086000264A -S3150800428000E0761C802E1DD2206810EB860714EB02 -S315080042908600D0F80480A7F8008001E0FFF7CCF983 -S315080042A07A480068C007F9D45FEA1840788001E0C8 -S315080042B0FFF7C2F975480068C007F9D43868404561 -S315080042C0DFD0002572480068400840007049086041 -S315080042D000F06CF82800C0B2BDE8F08170B50500A2 -S315080042E00C00E4B2EDB2AC4201D2002053E06648BD -S315080042F0007AEDB2854205D3634890F89800E4B297 -S31508004300A04201D2002046E000F046F85F48006867 -S31508004310C00703D500F04AF800203CE05C48006876 -S3150800432050F002005A4908602800C0B200F06FF841 -S3150800433005002000C0B200F06AF806002000C0B2EE -S3150800434000F082F88019401E401B401C840A002693 -S3150800435006E0FFF771F94D480068C007F9D4761CE6 -S31508004360B6B2A4B2A6420DD2B6B24FF4806000FB34 -S315080043700650484908604648006850F040004449DD -S315080043800860E8E74248006830F0020040490860E3 -S3150800439000F00CF8012070BD3F48404901603E48D6 -S315080043A03F49016039483421016070473848006840 -S315080043B050F0800036490860704738B5040000257B -S315080043C000E06D1CEDB20D2D1FD2FFF735F9EDB2E9 -S315080043D00C202D4900FB051000688442F1D3EDB28C -S315080043E00C20294900FB05100068EDB20C21264A6D -S315080043F001FB0521496808188442E2D2EDB20C2077 -S31508004400214900FB0510007A00E0FF2032BD38B5CF -S315080044100400002500E06D1CEDB20D2D11D2FFF74A -S315080044200BF9EDB20C20184900FB0510007AE4B22E -S31508004430A042F0D1EDB20C20134900FB051000682C -S3150800444001E05FF0FF3032BD38B50400002500E01A -S315080044506D1CEDB20D2D11D2FFF7EEF8EDB20C2062 -S31508004460094900FB0510007AE4B2A042F0D1EDB28A -S315080044700C20054900FB0510406800E0002032BD0D -S315080044808406002088080020644C00080C2002409E -S3150800449010200240142002400420024023016745F0 -S315080044A0AB89EFCD10B50400200000F020F80028F5 -S315080044B001D0203CFFE7200010BD000000B500BF7A -S315080044C0130096469446103928BFA0E80C50FAD82F -S315080044D05FEA417C28BF0CC048BF40F8042BC907D7 -S315080044E028BF20F8022B48BF00F8012B00BD613811 -S315080044F01A2801D2012000E00020C0B2704700004F -S3150800450080B500F005F800F005F900F011F9FCE7B0 -S3150800451000B583B000200090002001907148006823 -S3150800452050F001006F4908606F4800686F490840FD -S315080045306D4908606B4800686D490840694908601C -S315080045406848006830F48020664908606648006854 -S3150800455030F4FE006449086066485FF41F01016094 -S315080045606048006850F480305E4908605D4800681D -S3150800457010F4003001900098401C00900198002823 -S3150800458004D1009840F2DC518842EFD155480068C2 -S31508004590800303D470215848FEF706FF5748006881 -S315080045A050F010005549086054480068800880009B -S315080045B0524908605148006850F002004F490860A7 -S315080045C049484949096801604748006850F400505D -S315080045D0454908604448006850F4806042490860CC -S315080045E04148006830F47C103F4908600920801E65 -S315080045F080043D49096850F4803008433A49086008 -S315080046003848006850F080703649086035480068B8 -S315080046108001FBD53448006880088000324908606C -S315080046203148006850F002002F4908602E4800689B -S3150800463010F00C000828F9D13148006850F009003C -S315080046402F4908602F480068000900012D490860B5 -S315080046502C48006850F008002A4908602948006874 -S3150800466030F0F000274908602648006850F0B0008E -S31508004670244908602448006830F4C040224908608C -S315080046802148006850F480401F4908601F480068A8 -S3150800469050F000701D4908601C48006850F400304E -S315080046A01A4908601648006850F005001449086061 -S315080046B01748006830F470601549086014480068A7 -S315080046C050F43060124908601148006830F47040B0 -S315080046D00F4908600E48006850F480400C4908608D -S315080046E007BD000000100240041002400000FFF859 -S315080046F0FFFFF6FE08100240804D00080020024029 -S3150800470018100240040C0140040001401C1002402D -S315080047100008014080B5FEF78EFFFEF745FAFEF762 -S3150800472037FFFEF76FFAFEF74BFE00F00DF801BDF6 -S3150800473080B5FEF781FFFEF74BFAFEF799FAFEF70A -S315080047404DFE00F00CF801BD80B51448012101703A -S31508004750FEF748FA1249086000F001F801BD80B575 -S31508004760FEF79CFE012818D0FEF75FFA002814D041 -S315080047700A480078012810D1FEF734FA0849096872 -S3150800478011F5FA71884208D3044800210170FEF732 -S3150800479055FA002801D1FEF719FF01BD460F002082 -S315080047A0300F002061006200630064006500660047 -S315080047B06700680069006A006B006C006D006E0097 -S315080047C06F00700071007200730074007500760047 -S315080047D07700780079007A00A100A200A300A5005E -S315080047E0AC00AF00E000E100E200E300E400E50011 -S315080047F0E600E700E800E900EA00EB00EC00ED005F -S31508004800EE00EF00F000F100F200F300F400F5000E -S31508004810F600F800F900FA00FB00FC00FD00FE00B7 -S31508004820FF00010103010501070109010B010D0143 -S315080048300F01110113011501170119011B011D01B2 -S315080048401F01210123012501270129012B012D0122 -S315080048502F0131013301350137013A013C013E018F -S31508004860400142014401460148014B014D014F01F7 -S31508004870510153015501570159015B015D015F0162 -S31508004880610163016501670169016B016D016F01D2 -S3150800489071017301750177017A017C017E0192012C -S315080048A0B103B203B303B403B503B603B703B8033E -S315080048B0B903BA03BB03BC03BD03BE03BF03C003EE -S315080048C0C103C303C403C503C603C703C803C90397 -S315080048D0CA0330043104320433043404350436047C -S315080048E03704380439043A043B043C043D043E04C6 -S315080048F03F04400441044204430444044504460476 -S315080049004704480449044A044B044C044D044E0425 -S315080049104F045104520453045404550456045704CE -S31508004920580459045A045B045C045E045F0470214D -S3150800493071217221732174217521762177217821BD -S3150800494079217A217B217C217D217E217F2141FFCE -S3150800495042FF43FF44FF45FF46FF47FF48FF49FF25 -S315080049604AFF4BFF4CFF4DFF4EFF4FFF50FF51FFD5 -S3150800497052FF53FF54FF55FF56FF57FF58FF59FF85 -S315080049805AFF00004100420043004400450046002B -S315080049904700480049004A004B004C004D004E00B5 -S315080049A04F00500051005200530054005500560065 -S315080049B05700580059005A002100E0FFE1FFE5FFC3 -S315080049C0E2FFE3FFC000C100C200C300C400C50087 -S315080049D0C600C700C800C900CA00CB00CC00CD007D -S315080049E0CE00CF00D000D100D200D300D400D5002D -S315080049F0D600D800D900DA00DB00DC00DD00DE00D6 -S31508004A007801000102010401060108010A010C01EE -S31508004A100E01100112011401160118011A011C01D8 -S31508004A201E01200122012401260128012A012C0148 -S31508004A302E01300132013401360139013B013D01B5 -S31508004A403F0141014301450147014A014C014E011D -S31508004A50500152015401560158015A015C015E0188 -S31508004A60600162016401660168016A016C016E01F8 -S31508004A70700172017401760179017B017D01910152 -S31508004A80910392039303940395039603970398035C -S31508004A9099039A039B039C039D039E039F03A0030C -S31508004AA0A103A303A403A503A603A703A803A903B5 -S31508004AB0AA0310041104120413041404150416049A -S31508004AC01704180419041A041B041C041D041E04E4 -S31508004AD01F04200421042204230424042504260494 -S31508004AE02704280429042A042B042C042D042E0444 -S31508004AF02F0401040204030404040504060407043D -S31508004B00080409040A040B040C040E040F046021AB -S31508004B10612162216321642165216621672168215B -S31508004B2069216A216B216C216D216E216F2121FF7C -S31508004B3022FF23FF24FF25FF26FF27FF28FF29FF43 -S31508004B402AFF2BFF2CFF2DFF2EFF2FFF30FF31FFF3 -S31508004B5032FF33FF34FF35FF36FF37FF38FF39FFA3 -S31508004B603AFF0000C700FC00E900E200E400E000AC -S31508004B70E500E700EA00EB00E800EF00EE00EC00D5 -S31508004B80C400C500C900E600C600F400F600F2003D -S31508004B90FB00F900FF00D600DC00A200A300A50078 -S31508004BA0A7209201E100ED00F300FA00F100D10020 -S31508004BB0AA00BA00BF001023AC00BD00BC00A100CB -S31508004BC0AB00BB0091259225932502252425612556 -S31508004BD06225562555256325512557255D255C25CE -S31508004BE05B251025142534252C251C2500253C2558 -S31508004BF05E255F255A255425692566256025502595 -S31508004C006C25672568256425652559255825522567 -S31508004C1053256B256A2518250C25882584258C257A -S31508004C2090258025B103DF009303C003A303C303C4 -S31508004C30B500C403A6039803A903B4031E22C6033A -S31508004C40B50329226122B10065226422202321238B -S31508004C50F7004822B0001922B7001A227F20B200B6 -S31508004C60A025A00000600008002000000300000046 -S31508004C7000800008002000000400000000A00008D2 -S31508004C80002000000500000000C000080020000009 -S31508004C900600000000E000080020000007000000F1 -S31508004CA0000001080020000008000000002001089C -S31508004CB00020000009000000004001080020000054 -S31508004CC00A00000000600108002000000B00000038 -S31508004CD000800108002000000C00000000A0010868 -S31508004CE0002000000D00000000C0010800200000A0 -S31508004CF00E00000000E00108002000000F00000080 -S31508004D00809A90418E418F804545454949498E8F05 -S31508004D109092924F994F555559999A9B9C9D9E9F53 -S31508004D2041494F55A5A5A6A7A8A9AAABAC21AEAFE0 -S31508004D30B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFED -S31508004D40C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFDD -S31508004D50D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFCD -S31508004D60E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFBD -S31508004D70F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFFAD -S31508004D80433A5C576F726B5C736F667477617265D2 -S31508004D905C4F70656E424C545C5461726765745C16 -S31508004DA044656D6F5C41524D434D335F53544D33EB -S31508004DB0325F4F6C696D65785F53544D33325031AD -S31508004DC030335F4941525C426F6F745C6D61696E46 -S31508004DD02E630000433A5C576F726B5C736F6674A0 -S31508004DE0776172655C4F70656E424C545C546172B3 -S31508004DF06765745C536F757263655C41524D434DCC -S31508004E00335F53544D33325C4941525C7665637463 -S31508004E106F72732E63000000433A5C576F726B5CC7 -S31508004E20736F6674776172655C4F70656E424C5439 -S31508004E305C5461726765745C536F757263655C4137 -S31508004E40524D434D335F53544D33325C63616E2E7E -S31508004E5063000000433A5C576F726B5C736F66744D -S31508004E60776172655C4F70656E424C545C54617232 -S31508004E706765745C536F757263655C41524D434D4B -S31508004E80335F53544D33325C756172742E63000080 -S31508004E90433A5C576F726B5C736F667477617265C1 -S31508004EA05C4F70656E424C545C5461726765745C05 -S31508004EB0536F757263655C66696C652E63000000E6 -S31508004EC050617273696E67206669726D7761726583 -S31508004ED02066696C6520746F206F627461696E2044 -S31508004EE065726173652073697A652E2E2E0000003F -S31508004EF04669726D776172652075706461746520A4 -S31508004F007375636365737366756C6C7920636F6D0F -S31508004F10706C657465640A0D000000004F70656E5C -S31508004F20696E67206669726D776172652066696C5D -S31508004F306520666F722072656164696E672E2E2E13 -S31508004F400000000010B5074979441831064C7C4426 -S31508004F50163404E00A68081D511888470146A1421C -S31508004F60F8D110BDBC000000DC00000005020602F6 -S31508004F70060307030803090309040A040B040C04BF -S31508004F800C050D050E050F050F061006100710086F -S31508004F904669726D77617265207570646174652003 -S31508004FA07265717565737420646574656374656488 -S31508004FB00A0D00005374617274696E67207468651F -S31508004FC02070726F6772616D6D696E6720736571A7 -S31508004FD075656E63650A0D0052656164696E6720C2 -S31508004FE06C696E652066726F6D2066696C652E2E1B -S31508004FF02E4552524F520A0D00000000496E766146 -S315080050006C696420636865636B73756D20666F757C -S315080050106E642E2E2E4552524F520A0D0000000085 -S315080050201BE6FFFF480F00000400002000000000F8 -S3150800503033D0FFFF040000006C01000000000020D0 -S31508005040000000002F64656D6F70726F675F6F6C8C -S31508005050696D65785F73746D3332703130332E73D2 -S31508005060726563002062797465732066726F6D20BD -S315080050706D656D6F727920617420307800000000CC -S3150800508057726974696E672070726F6772616D20F6 -S31508005090636865636B73756D2E2E2E0020627974B6 -S315080050A0657320746F206D656D6F72792061742049 -S315080050B030780000436C6F73696E67206669726D9D -S315080050C0776172652066696C650A0D0000F009F85B -S315080050D0002801D0FFF736FF0020FFF711FA00F08D -S315080050E002F80120704700F001B80000074638466C -S315080050F000F002F8FBE7000080B5C046C046024A49 -S3150800510011001820ABBEFBE726000200034B9D46A4 -S31508005110C046C046C046C046FFF7D8FF5013002019 -S3150800512001030507090E10121416181C1E000000AC -S3150800513050726F6772616D6D696E672000000000BE -S315080051402F626F6F746C6F672E747874000000009E -S3150800515080B541210148FEF727F901BDD44D000865 -S31508005160222A3A3C3E3F7C7F00000000457261736C -S31508005170696E672000000000C046C046C046C046AB -S31508005180FFF7A4FF2B2C3B3D5B5D00004552524FB9 -S31508005190520A0D004F4B0A0D000000004F70656E55 -S30D080051A0424C54000401000012 -S7050800517928 +S315080034D009B000BD2E48704780B52E48002180F8F7 +S315080034E024120A222C492B48FEF7B6F8002803D1E5 +S315080034F02848012180F8241201BD10B5254890F806 +S315080035002402012802D12348FEF7D1FBFFF76AFB04 +S3150800351010F164044021214800F02CFD002803D155 +S31508003520FFF760FB8442F5D21948FEF7D3FC10BDBD +S3150800353080B5184890F82402012802D11548FEF7EC +S31508003540B6FB01BD10B50400124890F82402012804 +S3150800355019D110492000FEF76EFD002813D50D4835 +S31508003560002180F824120B48FEF7A1FB0BE0217816 +S3150800357089B20A4800F0FAFC8021084800F0FAFCF3 +S315080035800028F9D0641C20780028F0D110BD00006E +S31508003590545000085C0400205051000800440040C4 +S315080035A080B500F0F5FC01BD80B500F0FCFC02BD5D +S315080035B080B500F022FD02BD80B500F07DFD02BD9C +S315080035C080B500F0C9FD02BD80B500F030FD0028C9 +S315080035D001D1002001E000F0A0FD02BD80B5FFF793 +S315080035E0EBFF00280DD0FFF711FFFFF7EDFAFFF705 +S315080035F0E7FF0449084004490860FFF7E1FF40680F +S31508003600804701BD80FFFF1F08ED00E070B504008C +S315080036100D00160005E0287820706D1C641C00F06B +S3150800362013F83000461E80B20028F4D170BD80B56C +S3150800363000F040FF02BD30380A2801D2012000E020 +S315080036400020C0B270477047704750F8041B61B13C +S3150800365050F8042BD30744BFA9F101039A18002395 +S3150800366042F8043B091FFAD1EFE77047DFF8700408 +S3150800367000210170DFF8680400218164DFF8600426 +S31508003680002180F84310DFF858040021A0F8441000 +S31508003690DFF84C0400218170DFF8440400214170F2 +S315080036A07047DFF83C040078002801D1002000E0CC +S315080036B001207047DFF82804002180F8431070477E +S315080036C080B50178FF291ED100F091F8DFF81004C3 +S315080036D090F84300012802D1102000F07EF8DFF8A8 +S315080036E00004B0F9440001280CDBDFF8F4030121DB +S315080036F080F84310DFF8E803B0F94410DFF8E40374 +S3150800370000F053F801BDDFF8D813097801294BD129 +S315080037100178C92932D0CC293FD0CF293AD0D0292F +S315080037202FD0D12933D0D2292ED0F32917D0F42976 +S315080037300FD0F5290AD0F6290ED0FA2912D0FC297D +S3150800374013D0FD2914D0FE2915D029E000F0DAF8A7 +S31508003750BCE700F0F9F8B9E700F0C9F8B6E700F0F9 +S3150800376018F9B3E700F0ABF8B0E700F0A2F8ADE758 +S3150800377000F087F8AAE700F075F8A7E700F03DF92A +S31508003780A4E700F05CF9A1E700F01AF99EE700F05B +S3150800379087F99BE700F098F998E700F0ABF995E709 +S315080037A0202000F01AF891E7ACE780B589B2FFF758 +S315080037B02EFE01BD10B4002302E00478E318401C75 +S315080037C00C00611E002CF8D1DBB21360012010BC7E +S315080037D07047C348002141707047C149FE22CA702C +S315080037E0BF490871BE480221A0F84410704710B5B9 +S315080037F00400FFF71AFA002803D11020FFF7EDFF9F +S315080038002FE0FFF7E6FFB64801210170B448FF2113 +S31508003810C170B34800210171B148007950F0100019 +S31508003820AF490871AE4800214171AD48AC494979A4 +S315080038304171FFF704FEAA498871FFF715FEA849EA +S31508003840C871FFF711FE80B2000AA5490872A4489C +S3150800385001214172A24801218172A1480821A0F8DC +S31508003860441010BD10B504009D4800210170FFF7F3 +S31508003870B0FF9B48FF21C17099480121A0F8441068 +S3150800388010BD9749FF22CA70954900220A719449CA +S31508003890934A52784A71924900228A7190490022C5 +S315080038A0CA718F4900220A728D490622A1F844205E +S315080038B0704710B504000020FFF78FFF10BD884938 +S315080038C0FF22CA708649884A8A64854900220A7195 +S315080038D0834900224A71824900228A718049072257 +S315080038E0C1F807207E490822A1F8442070477C4980 +S315080038F0FF22CA707A494068886479480121A0F88D +S315080039004410704710B50400FFF799FD401E617812 +S31508003910884203DA2220FFF760FF14E0627892B249 +S315080039206F48816C7148FFF771FE6D48FF21C170C1 +S315080039306B48806C61780818694988646078401C0F +S315080039406749A1F8440010BD10B50400FFF777FDDC +S31508003950401E6178884203DA2220FFF73EFF17E00F +S315080039605F4861688164627892B25D48816C5F489D +S31508003970FFF74CFE5A48FF21C1705948806C6178A0 +S315080039800818574988646078401C5549A1F84400CE +S3150800399010BD80B55249FF22CA70554A4168504841 +S315080039A0806CFFF707FF4E4908714D4800214171A9 +S315080039B04B48002181714A480821A0F8441001BDEE +S315080039C010B504004648FF21C17045480021017121 +S315080039D0434800214171FFF732FD4149887140484B +S315080039E00021C1713E48002101723D480021417203 +S315080039F03B480721A0F8441010BD10B50400FFF796 +S31508003A001EFD621C80B2411E3548806CFFF7CCFD56 +S31508003A10002803D13120FFF7E0FE0FE03048FF21F0 +S31508003A20C170FFF70CFD2E49896C80B2401E401804 +S31508003A302B4988642A480121A0F8441010BD10B506 +S31508003A400400FFF7FCFC801E6178884203DA222016 +S31508003A50FFF7C3FE23E02248FF21C1702048012159 +S31508003A60A0F844106078002807D1FFF7ADFD0028BC +S31508003A7002D13120FFF7B1FE11E0A21C6178184887 +S31508003A80806CFFF791FD002803D13120FFF7A5FED2 +S31508003A9005E01348806C617808181149886410BDE0 +S31508003AA080B541680E48806CFFF782FD002803D177 +S31508003AB03120FFF792FE06E00948FF21C170084849 +S31508003AC00121A0F8441001BD10B50400FFF786FDDA +S31508003AD00348FF21C17002480121A0F8441010BD17 +S31508003AE0100E0020130E0020AC510008140E002002 +S31508003AF0170E002080B53120FFF76FFE01BD0000CC +S31508003B00F0B4002400E0641CE4B2122C3CD248F65F +S31508003B10A04580B2E4B2994E16F81460E4B2974F05 +S31508003B2017EB44077F78BE19761C06FB00F695FB53 +S31508003B30F6F706FB1755002DE5D148F6A04580B2E5 +S31508003B40E4B28E4E16F81460E4B28C4F17EB4407B5 +S31508003B507F78BE19761C06FB00F695FBF6F50D80F8 +S31508003B600D88002DCFD00D88B5F5806FCBDCE4B27B +S31508003B70824810F814001070E4B2804810EB440034 +S31508003B8040781870012000E00020F0BC704780B52E +S31508003B9000AB0DF101020DF102014FF4FA70FFF7C7 +S31508003BA0AFFFC0B2012803D0E2217548FFF7FCFB3E +S31508003BB07448002101607448006850F40040724956 +S31508003BC0086001E0FFF740FD6F4800680004F9D47B +S31508003BD06D48006830F002006B4908606A48006862 +S31508003BE050F001006849086001E0FFF72DFD6748BD +S31508003BF00068C007F9D59DF80100401E9DF8001021 +S31508003C00491E090551EA0040BDF80210491E08433D +S31508003C105F4908605C480068400840005A490860E7 +S31508003C2001E0FFF711FD59480068C007F9D4594863 +S31508003C30006850F001005749086057480068400876 +S31508003C404000554908605548006850F0010053493E +S31508003C50086053480021016052480021016052481B +S31508003C60006840084000504908605048006840080D +S31508003C7040004E4908604848006850F0010046492F +S31508003C80086044480068400840004249086001BD91 +S31508003C9038B504000D0046480068400104D440F2D7 +S31508003CA021113748FFF780FB4248006810F00100F1 +S31508003CB0404908603F4800683F4908433D49086055 +S31508003CC03E48EDB20560E078A178090451EA006043 +S31508003CD0617850EA01202178084339490860E0797B +S31508003CE0A179090451EA0060617950EA0120217935 +S31508003CF00843344908602F48006850F001002D49F0 +S31508003D00086001E0FFF7A0FC294800684001F9D5E2 +S31508003D1031BD00212C4A126812F0030F2BD02B4A12 +S31508003D201268520D40F267639A421ED10121284A51 +S31508003D3012680270264A1268120A4270244A1268E9 +S31508003D40120C8270224A1268120EC270214A126838 +S31508003D500271204A1268120A42711E4A1268120C2F +S31508003D6082711C4A1268120EC2711748006850F018 +S31508003D702000154A10600800C0B270477C4F000842 +S31508003D80284E0008146400400064004004640040A3 +S31508003D901C640040006600401C6600400C6600403B +S31508003DA040660040446600400466004014660040D1 +S31508003DB00864004080650040000020FC84650040DF +S31508003DC0886500408C6500400C640040B065004082 +S31508003DD0B8650040BC65004055480021018055483B +S31508003DE000210180544800210180544800210180A7 +S31508003DF05348002101804E4840F2712101804D4808 +S31508003E00008840F4005050F00C004A49088070477A +S31508003E1070B504000D00EDB2412D03DB8D21494834 +S31508003E20FFF7C2FA2800C0B200F06FF8C0B2012846 +S31508003E3003D091214348FFF7B7FA00260DE0FFF7B4 +S31508003E4003FCB6B2305D00F060F8C0B2012803D0BA +S31508003E509A213C48FFF7A8FA761C2800C0B2B6B2E9 +S31508003E6080B28642EBD370BD10B5040036480078A0 +S31508003E70002813D1354800F03DF8012838D13348D9 +S31508003E800078002834D0FEF7ADFE31490860314885 +S31508003E90002101702C480121017029E02D48007885 +S31508003EA02A494018401C00F025F8012816D129484F +S31508003EB00078401C27490870264800782349097865 +S31508003EC0884215D12348027892B223492000FFF789 +S31508003ED09DFB1D480021017001200AE0FEF782FEC5 +S31508003EE01B4909686431814202D2174800210170D2 +S31508003EF0002010BD19490988890604D5184909887A +S31508003F000170012000E00020704780B51349098838 +S31508003F10090601D400200AE01149C0B2088001E070 +S31508003F20FFF792FB0D4800880006F9D5012002BD6F +S31508003F30084400400C44004010440040144400402B +S31508003F4018440040644E0008490F00205C0E00200B +S31508003F50400F0020480F00205D0E0020004400405E +S31508003F6004440040002200F0B1BA0000C905C90D9A +S31508003F7081807047002289B2B1F5007F0088084227 +S31508003F8001D0012200E000221000C0B270470000F4 +S31508003F90DFF8FC045FF0FF310160DFF8F8045FF03A +S31508003FA0FF310160704770B504000D00160020004F +S31508003FB000F00BFAFF2805D02819401E00F005FA74 +S31508003FC0FF2801D1002017E0600A4FF4007148432A +S31508003FD0DFF8C4140968884207D12B003200210093 +S31508003FE0DFF8B00400F0F4F806E02B0032002100F8 +S31508003FF0DFF89C0400F0ECF870BD70B504000D0005 +S31508004000200000F0E2F906002819401E00F0DDF94C +S31508004010F6B2FF2E02D0C0B2FF2801D1002005E07B +S315080040200100C9B23000C0B200F060F970BD80B5B9 +S3150800403000200090DFF85C04006810F1010F01D140 +S31508004040012038E00098DFF84C14496808180090F9 +S315080040500098DFF840148968081800900098DFF87F +S315080040603414C968081800900098DFF828140969FC +S31508004070081800900098DFF81C1449690818009081 +S315080040800098DFF810148969081800900098DFF87E +S315080040900414C969081800900098C0430090009855 +S315080040A0401C009000AA0421DFF8EC03006810F514 +S315080040B0A870FFF778FF02BD0020DFF8DC13096857 +S315080040C009680818DFF8D013096849680818DFF87E +S315080040D0C813096889680818DFF8BC130968C9682D +S315080040E00818DFF8B413096809690818DFF8A8136F +S315080040F0096849690818DFF8A01309688969081862 +S31508004100DFF89413096811F5A871096808180028DA +S3150800411001D1012000E00020704780B5DFF8740364 +S31508004120006810F1010F07D0DFF8680300F093F874 +S31508004130002801D100200EE0DFF85403006810F1D2 +S31508004140010F07D0DFF8480300F085F8002801D1F1 +S31508004150002000E0012002BDDFF83C03006870473C +S3150800416080B54FF40072B1FBF2F303FB1213002B78 +S3150800417001D000200BE002688A4201D1012006E046 +S3150800418001604FF40072001DFFF740FA012002BDDE +S3150800419038B504000D00BF48844208D1BC4C29003C +S315080041A02000FFF7DDFF002810D100200FE0BA48F5 +S315080041B00068854203D1B74CB7480568EFE7200089 +S315080041C000F049F80028EAD1002000E0200032BDBE +S315080041D02DE9F04104000F0015001E00780A4FF47F +S315080041E0007101FB00F8206810F1010F07D1414664 +S315080041F02000FFF7B5FF002801D1002029E020683C +S31508004200404508D041462000FFF7C2FF0400002CB5 +S3150800421001D100201DE02068381A0019071DFFF794 +S3150800422013FA201D381AB0F5007F0AD318F5007165 +S315080042302000FFF7ADFF0400002C01D1002008E0A4 +S31508004240271D287838707F1C6D1C761E002EE6D137 +S315080042500120BDE8F0812DE9F04104000125206820 +S3150800426000F0B3F8C0B2FF2801D100203CE000F00E +S315080042709BF88A480068C00703D500F09FF800201D +S3150800428032E08748006850F001008549086000263A +S3150800429000E0761C802E1DD2206810EB860714EBF2 +S315080042A08600D0F80480A7F8008001E0FFF7CCF973 +S315080042B07A480068C007F9D45FEA1840788001E0B8 +S315080042C0FFF7C2F975480068C007F9D43868404551 +S315080042D0DFD0002572480068400840007049086031 +S315080042E000F06CF82800C0B2BDE8F08170B5050092 +S315080042F00C00E4B2EDB2AC4201D2002053E06648AD +S31508004300007AEDB2854205D3634890F89800E4B286 +S31508004310A04201D2002046E000F046F85F48006857 +S31508004320C00703D500F04AF800203CE05C48006866 +S3150800433050F002005A4908602800C0B200F06FF831 +S3150800434005002000C0B200F06AF806002000C0B2DE +S3150800435000F082F88019401E401B401C840A002683 +S3150800436006E0FFF771F94D480068C007F9D4761CD6 +S31508004370B6B2A4B2A6420DD2B6B24FF4806000FB24 +S315080043800650484908604648006850F040004449CD +S315080043900860E8E74248006830F0020040490860D3 +S315080043A000F00CF8012070BD3F48404901603E48C6 +S315080043B03F49016039483421016070473848006830 +S315080043C050F0800036490860704738B5040000256B +S315080043D000E06D1CEDB20D2D1FD2FFF735F9EDB2D9 +S315080043E00C202D4900FB051000688442F1D3EDB27C +S315080043F00C20294900FB05100068EDB20C21264A5D +S3150800440001FB0521496808188442E2D2EDB20C2066 +S31508004410214900FB0510007A00E0FF2032BD38B5BF +S315080044200400002500E06D1CEDB20D2D11D2FFF73A +S315080044300BF9EDB20C20184900FB0510007AE4B21E +S31508004440A042F0D1EDB20C20134900FB051000681C +S3150800445001E05FF0FF3032BD38B50400002500E00A +S315080044606D1CEDB20D2D11D2FFF7EEF8EDB20C2052 +S31508004470094900FB0510007AE4B2A042F0D1EDB27A +S315080044800C20054900FB0510406800E0002032BDFD +S315080044908406002088080020744C00080C2002407E +S315080044A010200240142002400420024023016745E0 +S315080044B0AB89EFCD10B50400200000F020F80028E5 +S315080044C001D0203CFFE7200010BD000000B500BF6A +S315080044D0130096469446103928BFA0E80C50FAD81F +S315080044E05FEA417C28BF0CC048BF40F8042BC907C7 +S315080044F028BF20F8022B48BF00F8012B00BD613801 +S315080045001A2801D2012000E00020C0B2704700003E +S3150800451080B500F005F800F005F900F011F9FCE7A0 +S3150800452000B583B000200090002001907148006813 +S3150800453050F001006F4908606F4800686F490840ED +S315080045406D4908606B4800686D490840694908600C +S315080045506848006830F48020664908606648006844 +S3150800456030F4FE006449086066485FF41F01016084 +S315080045706048006850F480305E4908605D4800680D +S3150800458010F4003001900098401C00900198002813 +S3150800459004D1009840F2DC518842EFD155480068B2 +S315080045A0800303D46B215848FEF7FEFE574800687F +S315080045B050F010005549086054480068800880008B +S315080045C0524908605148006850F002004F49086097 +S315080045D049484949096801604748006850F400504D +S315080045E0454908604448006850F4806042490860BC +S315080045F04148006830F47C103F4908600920801E55 +S3150800460080043D49096850F4803008433A490860F7 +S315080046103848006850F080703649086035480068A8 +S315080046208001FBD53448006880088000324908605C +S315080046303148006850F002002F4908602E4800688B +S3150800464010F00C000828F9D13148006850F009002C +S315080046502F4908602F480068000900012D490860A5 +S315080046602C48006850F008002A4908602948006864 +S3150800467030F0F000274908602648006850F0B0007E +S31508004680244908602448006830F4C040224908607C +S315080046902148006850F480401F4908601F48006898 +S315080046A050F000701D4908601C48006850F400303E +S315080046B01A4908601648006850F005001449086051 +S315080046C01748006830F47060154908601448006897 +S315080046D050F43060124908601148006830F47040A0 +S315080046E00F4908600E48006850F480400C4908607D +S315080046F007BD000000100240041002400000FFF849 +S31508004700FFFFF6FE08100240904D00080020024008 +S3150800471018100240040C0140040001401C1002401D +S315080047200008014080B5FEF78EFFFEF73DFAFEF75A +S3150800473037FFFEF767FAFEF743FE00F00DF801BDF6 +S3150800474080B5FEF781FFFEF743FAFEF791FAFEF70A +S3150800475045FE00F00CF801BD80B514480121017032 +S31508004760FEF740FA1249086000F001F801BD80B56D +S31508004770FEF794FE012818D0FEF757FA002814D041 +S315080047800A480078012810D1FEF72CFA084909686A +S3150800479011F5FA71884208D3044800210170FEF722 +S315080047A04DFA002801D1FEF719FF01BD460F00207A +S315080047B0300F002061006200630064006500660037 +S315080047C06700680069006A006B006C006D006E0087 +S315080047D06F00700071007200730074007500760037 +S315080047E07700780079007A00A100A200A300A5004E +S315080047F0AC00AF00E000E100E200E300E400E50001 +S31508004800E600E700E800E900EA00EB00EC00ED004E +S31508004810EE00EF00F000F100F200F300F400F500FE +S31508004820F600F800F900FA00FB00FC00FD00FE00A7 +S31508004830FF00010103010501070109010B010D0133 +S315080048400F01110113011501170119011B011D01A2 +S315080048501F01210123012501270129012B012D0112 +S315080048602F0131013301350137013A013C013E017F +S31508004870400142014401460148014B014D014F01E7 +S31508004880510153015501570159015B015D015F0152 +S31508004890610163016501670169016B016D016F01C2 +S315080048A071017301750177017A017C017E0192011C +S315080048B0B103B203B303B403B503B603B703B8032E +S315080048C0B903BA03BB03BC03BD03BE03BF03C003DE +S315080048D0C103C303C403C503C603C703C803C90387 +S315080048E0CA0330043104320433043404350436046C +S315080048F03704380439043A043B043C043D043E04B6 +S315080049003F04400441044204430444044504460465 +S315080049104704480449044A044B044C044D044E0415 +S315080049204F045104520453045404550456045704BE +S31508004930580459045A045B045C045E045F0470213D +S3150800494071217221732174217521762177217821AD +S3150800495079217A217B217C217D217E217F2141FFBE +S3150800496042FF43FF44FF45FF46FF47FF48FF49FF15 +S315080049704AFF4BFF4CFF4DFF4EFF4FFF50FF51FFC5 +S3150800498052FF53FF54FF55FF56FF57FF58FF59FF75 +S315080049905AFF00004100420043004400450046001B +S315080049A04700480049004A004B004C004D004E00A5 +S315080049B04F00500051005200530054005500560055 +S315080049C05700580059005A002100E0FFE1FFE5FFB3 +S315080049D0E2FFE3FFC000C100C200C300C400C50077 +S315080049E0C600C700C800C900CA00CB00CC00CD006D +S315080049F0CE00CF00D000D100D200D300D400D5001D +S31508004A00D600D800D900DA00DB00DC00DD00DE00C5 +S31508004A107801000102010401060108010A010C01DE +S31508004A200E01100112011401160118011A011C01C8 +S31508004A301E01200122012401260128012A012C0138 +S31508004A402E01300132013401360139013B013D01A5 +S31508004A503F0141014301450147014A014C014E010D +S31508004A60500152015401560158015A015C015E0178 +S31508004A70600162016401660168016A016C016E01E8 +S31508004A80700172017401760179017B017D01910142 +S31508004A90910392039303940395039603970398034C +S31508004AA099039A039B039C039D039E039F03A003FC +S31508004AB0A103A303A403A503A603A703A803A903A5 +S31508004AC0AA0310041104120413041404150416048A +S31508004AD01704180419041A041B041C041D041E04D4 +S31508004AE01F04200421042204230424042504260484 +S31508004AF02704280429042A042B042C042D042E0434 +S31508004B002F0401040204030404040504060407042C +S31508004B10080409040A040B040C040E040F0460219B +S31508004B20612162216321642165216621672168214B +S31508004B3069216A216B216C216D216E216F2121FF6C +S31508004B4022FF23FF24FF25FF26FF27FF28FF29FF33 +S31508004B502AFF2BFF2CFF2DFF2EFF2FFF30FF31FFE3 +S31508004B6032FF33FF34FF35FF36FF37FF38FF39FF93 +S31508004B703AFF0000C700FC00E900E200E400E0009C +S31508004B80E500E700EA00EB00E800EF00EE00EC00C5 +S31508004B90C400C500C900E600C600F400F600F2002D +S31508004BA0FB00F900FF00D600DC00A200A300A50068 +S31508004BB0A7209201E100ED00F300FA00F100D10010 +S31508004BC0AA00BA00BF001023AC00BD00BC00A100BB +S31508004BD0AB00BB0091259225932502252425612546 +S31508004BE06225562555256325512557255D255C25BE +S31508004BF05B251025142534252C251C2500253C2548 +S31508004C005E255F255A255425692566256025502584 +S31508004C106C25672568256425652559255825522557 +S31508004C2053256B256A2518250C25882584258C256A +S31508004C3090258025B103DF009303C003A303C303B4 +S31508004C40B500C403A6039803A903B4031E22C6032A +S31508004C50B50329226122B10065226422202321237B +S31508004C60F7004822B0001922B7001A227F20B200A6 +S31508004C70A025A00000600008002000000300000036 +S31508004C8000800008002000000400000000A00008C2 +S31508004C90002000000500000000C0000800200000F9 +S31508004CA00600000000E000080020000007000000E1 +S31508004CB0000001080020000008000000002001088C +S31508004CC00020000009000000004001080020000044 +S31508004CD00A00000000600108002000000B00000028 +S31508004CE000800108002000000C00000000A0010858 +S31508004CF0002000000D00000000C001080020000090 +S31508004D000E00000000E00108002000000F0000006F +S31508004D10809A90418E418F804545454949498E8FF5 +S31508004D209092924F994F555559999A9B9C9D9E9F43 +S31508004D3041494F55A5A5A6A7A8A9AAABAC21AEAFD0 +S31508004D40B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFDD +S31508004D50C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFCD +S31508004D60D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFBD +S31508004D70E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFAD +S31508004D80F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF9D +S31508004D90433A5C576F726B5C736F667477617265C2 +S31508004DA05C4F70656E424C545C5461726765745C06 +S31508004DB044656D6F5C41524D434D335F53544D33DB +S31508004DC0325F4F6C696D65785F53544D333250319D +S31508004DD030335F4941525C426F6F745C6D61696E36 +S31508004DE02E630000433A5C576F726B5C736F667490 +S31508004DF0776172655C4F70656E424C545C546172A3 +S31508004E006765745C536F757263655C41524D434DBB +S31508004E10335F53544D33325C4941525C7665637453 +S31508004E206F72732E63000000433A5C576F726B5CB7 +S31508004E30736F6674776172655C4F70656E424C5429 +S31508004E405C5461726765745C536F757263655C4127 +S31508004E50524D434D335F53544D33325C63616E2E6E +S31508004E6063000000433A5C576F726B5C736F66743D +S31508004E70776172655C4F70656E424C545C54617222 +S31508004E806765745C536F757263655C41524D434D3B +S31508004E90335F53544D33325C756172742E63000070 +S31508004EA0433A5C576F726B5C736F667477617265B1 +S31508004EB05C4F70656E424C545C5461726765745CF5 +S31508004EC0536F757263655C66696C652E63000000D6 +S31508004ED050617273696E67206669726D7761726573 +S31508004EE02066696C6520746F206F627461696E2034 +S31508004EF065726173652073697A652E2E2E0000002F +S31508004F004669726D77617265207570646174652093 +S31508004F107375636365737366756C6C7920636F6DFF +S31508004F20706C657465640A0D000000004F70656E4C +S31508004F30696E67206669726D776172652066696C4D +S31508004F406520666F722072656164696E672E2E2E03 +S31508004F500000000010B5074979441831064C7C4416 +S31508004F60163404E00A68081D511888470146A1420C +S31508004F70F8D110BDBC000000DC00000005020602E6 +S31508004F80060307030803090309040A040B040C04AF +S31508004F900C050D050E050F050F061006100710085F +S31508004FA04669726D776172652075706461746520F3 +S31508004FB07265717565737420646574656374656478 +S31508004FC00A0D00005374617274696E67207468650F +S31508004FD02070726F6772616D6D696E672073657197 +S31508004FE075656E63650A0D0052656164696E6720B2 +S31508004FF06C696E652066726F6D2066696C652E2E0B +S315080050002E4552524F520A0D00000000496E766135 +S315080050106C696420636865636B73756D20666F756C +S315080050206E642E2E2E4552524F520A0D0000000075 +S315080050301BE6FFFF480F00000400002000000000E8 +S3150800504023D0FFFF040000006C01000000000020D0 +S31508005050000000002F64656D6F70726F675F6F6C7C +S31508005060696D65785F73746D3332703130332E73C2 +S31508005070726563002062797465732066726F6D20AD +S315080050806D656D6F727920617420307800000000BC +S3150800509057726974696E672070726F6772616D20E6 +S315080050A0636865636B73756D2E2E2E0020627974A6 +S315080050B0657320746F206D656D6F72792061742039 +S315080050C030780000436C6F73696E67206669726D8D +S315080050D0776172652066696C650A0D0000F009F84B +S315080050E0002801D0FFF736FF0020FFF711FA00F07D +S315080050F002F80120704700F001B80000074638465C +S3150800510000F002F8FBE7000080B5C046C046024A38 +S3150800511011001820ABBEFBE726000200034B9D4694 +S31508005120C046C046C046C046FFF7D8FF5013002009 +S3150800513001030507090E10121416181C1E0000009C +S3150800514050726F6772616D6D696E672000000000AE +S315080051502F626F6F746C6F672E747874000000008E +S3150800516080B53C210148FEF71FF901BDE44D000852 +S31508005170222A3A3C3E3F7C7F00000000457261735C +S31508005180696E672000000000C046C046C046C0469B +S31508005190FFF7A4FF2B2C3B3D5B5D00004552524FA9 +S315080051A0520A0D004F4B0A0D000000004F70656E45 +S30D080051B0424C54000401000002 +S7050800518918 diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/hooks.c b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/hooks.c index dc2c3cff..d6b17f73 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/hooks.c @@ -316,13 +316,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/ide/settings/stm32f103.wsdt b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/ide/settings/stm32f103.wsdt index 50042ca3..390055df 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/ide/settings/stm32f103.wsdt +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/ide/settings/stm32f103.wsdt @@ -17,7 +17,7 @@ 300Debug-Log20105928270300Build201413664941138 - + TabID-32216-31616 @@ -29,7 +29,7 @@ - 0TabID-13144-32069BuildBuildTabID-25023-6652Debug LogDebug-LogTabID-18334-26223Find in FilesFind-in-Files0 + 0TabID-13144-32069BuildBuildTabID-25023-6652Debug LogDebug-LogTabID-18334-26223Find in FilesFind-in-Files0 @@ -42,7 +42,7 @@ - iaridepm.enu1-2-2752400-2-215416480208162698209375748016-2-22111922-2-219242131002083211310209375352183 + iaridepm.enu1-2-2752400-2-215416480208162698209375748016-2-22111922-2-219242131002083211310209375352183 diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/ide/stm32f103.dep b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/ide/stm32f103.dep index bfa18e78..fb6de699 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/ide/stm32f103.dep +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_IAR/Boot/ide/stm32f103.dep @@ -25,25 +25,18 @@ $PROJ_DIR$\..\blt_conf.h $PROJ_DIR$\..\hooks.c $PROJ_DIR$\..\main.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\can.h $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\IAR\cstart.s $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\IAR\vectors.c $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\can.c - $PROJ_DIR$\..\..\..\..\Source\xcp.c $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\cpu.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\cpu.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\nvm.h $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\flash.c $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\flash.h $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\nvm.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\timer.h + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\diskio.h $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\timer.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\uart.h $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\types.h $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\uart.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\usb.h $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\usb.c - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\diskio.h $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\integer.h $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.h @@ -54,193 +47,25 @@ $PROJ_DIR$\..\..\..\..\Source\backdoor.h $PROJ_DIR$\..\..\..\..\Source\boot.c $PROJ_DIR$\..\..\..\..\Source\boot.h + $PROJ_DIR$\..\..\..\..\Source\can.h $PROJ_DIR$\..\..\..\..\Source\com.c $PROJ_DIR$\..\..\..\..\Source\com.h $PROJ_DIR$\..\..\..\..\Source\cop.c $PROJ_DIR$\..\..\..\..\Source\cop.h + $PROJ_DIR$\..\..\..\..\Source\cpu.h $PROJ_DIR$\..\..\..\..\Source\file.c $PROJ_DIR$\..\..\..\..\Source\file.h + $PROJ_DIR$\..\..\..\..\Source\nvm.h $PROJ_DIR$\..\..\..\..\Source\plausibility.h + $PROJ_DIR$\..\..\..\..\Source\timer.h + $PROJ_DIR$\..\..\..\..\Source\uart.h + $PROJ_DIR$\..\..\..\..\Source\usb.h + $PROJ_DIR$\..\..\..\..\Source\xcp.c $PROJ_DIR$\..\..\..\..\Source\xcp.h - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h - $PROJ_DIR$\..\obj\xcp.lst - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\integer.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\diskio.h - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_fsmc.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_i2c.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_iwdg.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_pwr.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_rtc.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_sdio.h - $PROJ_DIR$\..\obj\uart.lst - $PROJ_DIR$\..\obj\can.lst - $PROJ_DIR$\..\obj\cop.lst - $PROJ_DIR$\..\obj\com.lst - $PROJ_DIR$\..\obj\stm32f10x_sdio.o - $PROJ_DIR$\..\obj\stm32f10x_spi.o - $PROJ_DIR$\..\obj\stm32f10x_tim.o - $PROJ_DIR$\..\obj\stm32f10x_usart.o - $PROJ_DIR$\..\obj\stm32f10x_wwdg.o - $PROJ_DIR$\..\obj\stm32f10x_usart.lst - $TOOLKIT_DIR$\inc\c\xencoding_limits.h - $PROJ_DIR$\Debug\Obj\stm32f10x_i2c.pbi - $TOOLKIT_DIR$\lib\dl7M_tln.a - $PROJ_DIR$\Debug\Obj\misc.pbi - $TOOLKIT_DIR$\inc\c\DLib_Threads.h - $PROJ_DIR$\Debug\Obj\stm32f10x_rcc.o - $PROJ_DIR$\Debug\Obj\stm32f10x_rtc.o - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\IAR\memory.x - $TOOLKIT_DIR$\lib\rt7M_tl.a - $PROJ_DIR$\Debug\Obj\stm32f10x_fsmc.pbi - $PROJ_DIR$\Debug\Obj\stm32f10x_gpio.o - $PROJ_DIR$\Debug\Obj\stm32f10x_dbgmcu.o - $PROJ_DIR$\Debug\Obj\stm32f10x_wwdg.pbi - $PROJ_DIR$\Debug\Obj\stm32f10x_dma.o - $PROJ_DIR$\Debug\Obj\stm32f10x_exti.o - $PROJ_DIR$\Debug\Obj\stm32f10x_flash.o - $PROJ_DIR$\Debug\Obj\stm32f10x_dac.pbi - $PROJ_DIR$\Debug\Obj\stm32f10x_dbgmcu.pbi - $PROJ_DIR$\Debug\Obj\stm32f10x_dma.pbi - $PROJ_DIR$\Debug\Obj\stm32f10x_flash.pbi - $PROJ_DIR$\..\obj\system_stm32f10x.o $PROJ_DIR$\..\obj\hw.lst - $PROJ_DIR$\..\obj\core_cm3.lst - $PROJ_DIR$\Debug\Obj\stm32f10x_tim.pbi - $TOOLKIT_DIR$\inc\c\stdint.h - $TOOLKIT_DIR$\inc\c\ysizet.h - $TOOLKIT_DIR$\inc\c\DLib_Product_string.h - $TOOLKIT_DIR$\inc\c\ctype.h - $TOOLKIT_DIR$\inc\c\string.h - $PROJ_DIR$\..\boot.c - $PROJ_DIR$\..\boot.h - $PROJ_DIR$\..\header.h - $PROJ_DIR$\..\irq.c - $PROJ_DIR$\..\irq.h - $PROJ_DIR$\..\led.c - $PROJ_DIR$\..\led.h - $PROJ_DIR$\..\timer.c - $PROJ_DIR$\..\timer.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_fsmc.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_gpio.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_pwr.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_iwdg.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_rcc.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_i2c.h - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_rtc.h - $PROJ_DIR$\..\obj\unicode.o - $PROJ_DIR$\..\obj\unicode.pbi - $PROJ_DIR$\..\obj\mmc.lst - $PROJ_DIR$\..\obj\ff.o - $PROJ_DIR$\..\obj\ff.pbi - $PROJ_DIR$\..\vectors.c - $PROJ_DIR$\..\src\app\app.c - $PROJ_DIR$\..\src\app\app.h - $PROJ_DIR$\..\src\hw\cstart.s - $PROJ_DIR$\..\src\os\os.h - $PROJ_DIR$\Debug\Obj\stm32f10x_fsmc.o - $PROJ_DIR$\..\src\header.h - $PROJ_DIR$\..\src\os\os.c - $TOOLKIT_DIR$\inc\c\DLib_Defaults.h - $PROJ_DIR$\..\src\hw\hw.h - $PROJ_DIR$\..\src\hw\hw.c - $PROJ_DIR$\..\obj\assert.lst - $PROJ_DIR$\..\obj\openbtl_olimex_stm32p103.map - $PROJ_DIR$\..\obj\flash.lst - $PROJ_DIR$\..\obj\backdoor.lst - $PROJ_DIR$\..\bin\openbtl_olimex_stm32p103.srec - $PROJ_DIR$\..\obj\hooks.pbi - $PROJ_DIR$\..\obj\hooks.o - $PROJ_DIR$\..\obj\cpu.lst - $PROJ_DIR$\..\obj\app.o - $PROJ_DIR$\..\obj\core_cm3.pbi - $PROJ_DIR$\..\obj\misc.pbi - $PROJ_DIR$\..\obj\hw.o - $PROJ_DIR$\..\obj\os.o - $PROJ_DIR$\..\obj\stm32f10x_wwdg.lst - $PROJ_DIR$\..\obj\stm32f10x_cec.lst - $PROJ_DIR$\Debug\Obj\stm32f10x_exti.pbi - $PROJ_DIR$\..\obj\stm32f10x_bkp.lst - $PROJ_DIR$\..\obj\stm32f10x_can.lst - $PROJ_DIR$\..\obj\stm32f10x_adc.lst - $PROJ_DIR$\..\obj\stm32f10x_crc.lst - $PROJ_DIR$\..\obj\misc.lst - $PROJ_DIR$\..\obj\stm32f10x_dac.lst - $PROJ_DIR$\..\obj\stm32f10x_dbgmcu.lst - $PROJ_DIR$\..\obj\stm32f10x_exti.lst - $PROJ_DIR$\..\obj\stm32f10x_flash.lst - $PROJ_DIR$\..\obj\stm32f10x_fsmc.lst - $PROJ_DIR$\..\obj\stm32f10x_gpio.lst - $PROJ_DIR$\..\obj\stm32f10x_i2c.lst - $PROJ_DIR$\..\obj\stm32f10x_iwdg.lst - $PROJ_DIR$\..\obj\stm32f10x_pwr.lst - $PROJ_DIR$\..\obj\stm32f10x_rcc.lst - $PROJ_DIR$\..\obj\stm32f10x_rtc.lst - $PROJ_DIR$\..\obj\stm32f10x_sdio.lst - $PROJ_DIR$\..\obj\stm32f10x_spi.lst - $PROJ_DIR$\..\obj\stm32f10x_dma.lst - $PROJ_DIR$\..\obj\stm32f10x_tim.lst - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_tim.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_wwdg.h - $PROJ_DIR$\..\obj\stm32f10x_adc.o - $TOOLKIT_DIR$\lib\shb_l.a - $PROJ_DIR$\..\memory.x - $PROJ_DIR$\..\config.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_cec.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c - $PROJ_DIR$\Debug\Obj\stm32f10x_crc.o - $PROJ_DIR$\Debug\Obj\stm32f10x_i2c.o - $PROJ_DIR$\..\obj\system_stm32f10x.lst - $PROJ_DIR$\..\obj\os.lst - $PROJ_DIR$\..\obj\irq.o - $PROJ_DIR$\..\obj\main.o - $PROJ_DIR$\..\obj\led.o - $PROJ_DIR$\..\obj\boot.o - $PROJ_DIR$\..\bin\demoprog_olimex_stm32p103.out - $PROJ_DIR$\..\bin\demoprog_olimex_stm32p103.srec $PROJ_DIR$\..\obj\xcp.o - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\misc.c $PROJ_DIR$\..\obj\backdoor.o + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\misc.c $PROJ_DIR$\Debug\Obj\stm32f10x_tim.o $PROJ_DIR$\..\obj\stm32f10x_dbgmcu.pbi $PROJ_DIR$\..\obj\stm32f10x_bkp.pbi @@ -386,10 +211,10 @@ $PROJ_DIR$\Debug\Obj\stm32f10x_can.pbi $PROJ_DIR$\Debug\Obj\system_stm32f10x.o $PROJ_DIR$\..\obj\stm32f10x_gpio.o - $PROJ_DIR$\..\lib\stdperiphlib\CMSIS\CM3\CoreSupport\core_cm3.h $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h - $PROJ_DIR$\..\lib\stdperiphlib\CMSIS\CM3\CoreSupport\core_cm3.c + $PROJ_DIR$\..\lib\stdperiphlib\CMSIS\CM3\CoreSupport\core_cm3.h $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c + $PROJ_DIR$\..\lib\stdperiphlib\CMSIS\CM3\CoreSupport\core_cm3.c $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c $PROJ_DIR$\..\obj\usb.pbi @@ -422,33 +247,202 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_spi.c $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_sdio.h $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_spi.h - $PROJ_DIR$\..\..\..\..\Source\usb.h - $PROJ_DIR$\..\..\..\..\Source\uart.h - $PROJ_DIR$\..\..\..\..\Source\can.h - $PROJ_DIR$\..\..\..\..\Source\timer.h - $PROJ_DIR$\..\..\..\..\Source\nvm.h - $PROJ_DIR$\..\..\..\..\Source\cpu.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.c + $PROJ_DIR$\..\obj\xcp.lst + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\integer.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\diskio.h + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_fsmc.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_i2c.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_iwdg.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_pwr.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_rtc.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_sdio.h + $PROJ_DIR$\..\obj\uart.lst + $PROJ_DIR$\..\obj\can.lst + $PROJ_DIR$\..\obj\cop.lst + $PROJ_DIR$\..\obj\com.lst + $PROJ_DIR$\..\obj\stm32f10x_sdio.o + $PROJ_DIR$\..\obj\stm32f10x_spi.o + $PROJ_DIR$\..\obj\stm32f10x_tim.o + $PROJ_DIR$\..\obj\stm32f10x_usart.o + $PROJ_DIR$\..\obj\stm32f10x_wwdg.o + $PROJ_DIR$\..\obj\stm32f10x_usart.lst + $TOOLKIT_DIR$\inc\c\xencoding_limits.h + $PROJ_DIR$\Debug\Obj\stm32f10x_i2c.pbi + $TOOLKIT_DIR$\lib\dl7M_tln.a + $PROJ_DIR$\Debug\Obj\misc.pbi + $TOOLKIT_DIR$\inc\c\DLib_Threads.h + $PROJ_DIR$\Debug\Obj\stm32f10x_rcc.o + $PROJ_DIR$\Debug\Obj\stm32f10x_rtc.o + $TOOLKIT_DIR$\lib\rt7M_tl.a + $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\IAR\memory.x + $PROJ_DIR$\Debug\Obj\stm32f10x_fsmc.pbi + $PROJ_DIR$\Debug\Obj\stm32f10x_gpio.o + $PROJ_DIR$\Debug\Obj\stm32f10x_dbgmcu.o + $PROJ_DIR$\Debug\Obj\stm32f10x_wwdg.pbi + $PROJ_DIR$\Debug\Obj\stm32f10x_dma.o + $PROJ_DIR$\Debug\Obj\stm32f10x_exti.o + $PROJ_DIR$\Debug\Obj\stm32f10x_flash.o + $PROJ_DIR$\Debug\Obj\stm32f10x_dac.pbi + $PROJ_DIR$\Debug\Obj\stm32f10x_dbgmcu.pbi + $PROJ_DIR$\Debug\Obj\stm32f10x_dma.pbi + $PROJ_DIR$\Debug\Obj\stm32f10x_flash.pbi + $PROJ_DIR$\..\obj\system_stm32f10x.o + $PROJ_DIR$\..\obj\core_cm3.lst + $PROJ_DIR$\Debug\Obj\stm32f10x_tim.pbi + $TOOLKIT_DIR$\inc\c\stdint.h + $TOOLKIT_DIR$\inc\c\ysizet.h + $TOOLKIT_DIR$\inc\c\DLib_Product_string.h + $TOOLKIT_DIR$\inc\c\ctype.h + $TOOLKIT_DIR$\inc\c\string.h + $PROJ_DIR$\..\boot.c + $PROJ_DIR$\..\boot.h + $PROJ_DIR$\..\header.h + $PROJ_DIR$\..\irq.c + $PROJ_DIR$\..\irq.h + $PROJ_DIR$\..\led.c + $PROJ_DIR$\..\led.h + $PROJ_DIR$\..\timer.c + $PROJ_DIR$\..\timer.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_fsmc.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_gpio.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_pwr.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_iwdg.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_rcc.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_i2c.h + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_rtc.h + $PROJ_DIR$\..\obj\unicode.o + $PROJ_DIR$\..\obj\unicode.pbi + $PROJ_DIR$\..\obj\mmc.lst + $PROJ_DIR$\..\obj\ff.o + $PROJ_DIR$\..\obj\ff.pbi + $PROJ_DIR$\..\vectors.c + $PROJ_DIR$\..\src\app\app.c + $PROJ_DIR$\..\src\app\app.h + $PROJ_DIR$\..\src\hw\cstart.s + $PROJ_DIR$\..\src\os\os.h + $PROJ_DIR$\Debug\Obj\stm32f10x_fsmc.o + $PROJ_DIR$\..\src\header.h + $PROJ_DIR$\..\src\os\os.c + $TOOLKIT_DIR$\inc\c\DLib_Defaults.h + $PROJ_DIR$\..\src\hw\hw.h + $PROJ_DIR$\..\src\hw\hw.c + $PROJ_DIR$\..\obj\assert.lst + $PROJ_DIR$\..\obj\openbtl_olimex_stm32p103.map + $PROJ_DIR$\..\obj\flash.lst + $PROJ_DIR$\..\obj\backdoor.lst + $PROJ_DIR$\..\bin\openbtl_olimex_stm32p103.srec + $PROJ_DIR$\..\obj\hooks.pbi + $PROJ_DIR$\..\obj\hooks.o + $PROJ_DIR$\..\obj\cpu.lst + $PROJ_DIR$\..\obj\app.o + $PROJ_DIR$\..\obj\core_cm3.pbi + $PROJ_DIR$\..\obj\misc.pbi + $PROJ_DIR$\..\obj\hw.o + $PROJ_DIR$\..\obj\os.o + $PROJ_DIR$\..\obj\stm32f10x_wwdg.lst + $PROJ_DIR$\..\obj\stm32f10x_cec.lst + $PROJ_DIR$\Debug\Obj\stm32f10x_exti.pbi + $PROJ_DIR$\..\obj\stm32f10x_bkp.lst + $PROJ_DIR$\..\obj\stm32f10x_can.lst + $PROJ_DIR$\..\obj\stm32f10x_adc.lst + $PROJ_DIR$\..\obj\stm32f10x_crc.lst + $PROJ_DIR$\..\obj\misc.lst + $PROJ_DIR$\..\obj\stm32f10x_dac.lst + $PROJ_DIR$\..\obj\stm32f10x_dbgmcu.lst + $PROJ_DIR$\..\obj\stm32f10x_exti.lst + $PROJ_DIR$\..\obj\stm32f10x_flash.lst + $PROJ_DIR$\..\obj\stm32f10x_fsmc.lst + $PROJ_DIR$\..\obj\stm32f10x_gpio.lst + $PROJ_DIR$\..\obj\stm32f10x_i2c.lst + $PROJ_DIR$\..\obj\stm32f10x_iwdg.lst + $PROJ_DIR$\..\obj\stm32f10x_pwr.lst + $PROJ_DIR$\..\obj\stm32f10x_rcc.lst + $PROJ_DIR$\..\obj\stm32f10x_rtc.lst + $PROJ_DIR$\..\obj\stm32f10x_sdio.lst + $PROJ_DIR$\..\obj\stm32f10x_spi.lst + $PROJ_DIR$\..\obj\stm32f10x_dma.lst + $PROJ_DIR$\..\obj\stm32f10x_tim.lst + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_tim.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_wwdg.h + $PROJ_DIR$\..\obj\stm32f10x_adc.o + $TOOLKIT_DIR$\lib\shb_l.a + $PROJ_DIR$\..\memory.x + $PROJ_DIR$\..\config.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_cec.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c + $PROJ_DIR$\Debug\Obj\stm32f10x_crc.o + $PROJ_DIR$\Debug\Obj\stm32f10x_i2c.o + $PROJ_DIR$\..\obj\system_stm32f10x.lst + $PROJ_DIR$\..\obj\os.lst + $PROJ_DIR$\..\obj\irq.o + $PROJ_DIR$\..\obj\main.o + $PROJ_DIR$\..\obj\led.o + $PROJ_DIR$\..\obj\boot.o + $PROJ_DIR$\..\bin\demoprog_olimex_stm32p103.out + $PROJ_DIR$\..\bin\demoprog_olimex_stm32p103.srec $PROJ_DIR$\..\lib\CMSIS\CM3\CoreSupport\core_cm3.c - BICOMP - 177 + ICCARM + 296 90 - ICCARM - 112 265 + BICOMP + 361 - BICOMP - 114 303 249 165 311 246 90 94 + ICCARM + 298 128 74 349 136 71 275 279 - ICCARM - 114 303 249 165 311 246 90 94 + BICOMP + 298 128 74 349 136 71 275 279 @@ -456,22 +450,22 @@ $PROJ_DIR$\..\lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.c - BICOMP - 355 + ICCARM + 408 295 - ICCARM - 224 110 + BICOMP + 180 - BICOMP - 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + ICCARM + 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 - ICCARM - 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + BICOMP + 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15
@@ -479,22 +473,22 @@ $PROJ_DIR$\..\lib\fatfs\mmc.c - BICOMP - 388 + ICCARM + 338 212 - ICCARM - 154 387 + BICOMP + 213 - BICOMP - 37 38 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 47 33 43 16 54 421 51 420 419 45 53 40 5 49 55 + ICCARM + 26 31 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 40 28 36 16 50 46 45 49 51 38 48 33 5 43 55 - ICCARM - 37 38 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 47 33 43 16 54 421 51 420 419 45 53 40 5 49 55 + BICOMP + 26 31 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 40 28 36 16 50 46 45 49 51 38 48 33 5 43 55
@@ -502,22 +496,18 @@ $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c - BICOMP - 301 + ICCARM + 378 204 - ICCARM - 194 379 + BICOMP + 126 - - BICOMP - 9 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - ICCARM - 9 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 + 9 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15
@@ -525,22 +515,22 @@ $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c - BICOMP - 324 + ICCARM + 382 121 - ICCARM - 198 296 + BICOMP + 149 - BICOMP - 11 3 0 114 303 249 165 311 246 90 94 370 1 7 9 13 15 + ICCARM + 11 3 0 298 128 74 349 136 71 275 279 195 1 7 9 13 15 - ICCARM - 11 3 0 114 303 249 165 311 246 90 94 370 1 7 9 13 15 + BICOMP + 11 3 0 298 128 74 349 136 71 275 279 195 1 7 9 13 15
@@ -548,22 +538,22 @@ $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_spi.c - BICOMP - 332 + ICCARM + 385 270 - ICCARM - 201 85 + BICOMP + 157 - BICOMP - 13 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 15 + ICCARM + 13 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 15 - ICCARM - 13 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 15 + BICOMP + 13 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 15
@@ -571,22 +561,22 @@ $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c - BICOMP - 328 + ICCARM + 274 272 - ICCARM - 89 87 + BICOMP + 153 - BICOMP - 15 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 + ICCARM + 15 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 - ICCARM - 15 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 + BICOMP + 15 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13
@@ -594,22 +584,22 @@ $PROJ_DIR$\..\hooks.c - BICOMP - 173 + ICCARM + 123 358 - ICCARM - 298 174 + BICOMP + 357 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15
@@ -617,22 +607,22 @@ $PROJ_DIR$\..\main.c - BICOMP - 348 + ICCARM + 141 411 - ICCARM - 316 227 + BICOMP + 173 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15
@@ -641,7 +631,7 @@ AARM - 334 + 159
@@ -649,22 +639,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\IAR\vectors.c - BICOMP - 281 + ICCARM + 140 168 - ICCARM - 315 343 + BICOMP + 106 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55
@@ -672,45 +662,68 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\can.c - BICOMP - 291 + ICCARM + 266 112 - ICCARM - 81 287 + BICOMP + 116 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55
- $PROJ_DIR$\..\..\..\..\Source\xcp.c + $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\cpu.c - BICOMP - 279 + ICCARM + 359 114 - ICCARM - 58 232 + BICOMP + 81 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 + + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\flash.c + ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + 354 115 + + + BICOMP + 80 + + + + + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 + + + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 @@ -719,76 +732,30 @@ ILINK - 299 169 + 124 353
- - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\cpu.c - - - BICOMP - 256 - - - ICCARM - 175 289 - - - - - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 - - - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\flash.c - - - BICOMP - 255 - - - ICCARM - 170 290 - - - - - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 - - - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\nvm.c - BICOMP - 313 + ICCARM + 109 111 - ICCARM - 284 286 + BICOMP + 138 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 28 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 24 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 28 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 24 @@ -796,22 +763,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\timer.c - BICOMP - 280 + ICCARM + 142 169 - ICCARM - 317 344 + BICOMP + 105 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55
@@ -819,22 +786,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\uart.c - BICOMP - 314 + ICCARM + 265 117 - ICCARM - 80 292 + BICOMP + 139 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55
@@ -842,22 +809,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM3_STM32\usb.c - BICOMP - 386 + ICCARM + 110 113 - ICCARM - 285 288 + BICOMP + 211 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55
@@ -865,22 +832,22 @@ $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c - BICOMP - 156 + ICCARM + 215 339 - ICCARM - 390 155 + BICOMP + 340 - BICOMP - 40 38 5 37 391 303 249 165 311 246 90 94 + ICCARM + 33 31 5 26 216 128 74 349 136 71 275 279 - ICCARM - 40 38 5 37 391 303 249 165 311 246 90 94 + BICOMP + 33 31 5 26 216 128 74 349 136 71 275 279
@@ -888,22 +855,22 @@ $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c - BICOMP - 153 + ICCARM + 214 336 - ICCARM - 389 152 + BICOMP + 337 - BICOMP - 40 38 5 349 + ICCARM + 33 31 5 174 - ICCARM - 40 38 5 349 + BICOMP + 33 31 5 174
@@ -911,22 +878,22 @@ $PROJ_DIR$\..\..\..\..\Source\assert.c - BICOMP - 273 + ICCARM + 352 125 - ICCARM - 168 300 + BICOMP + 98 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55
@@ -934,22 +901,22 @@ $PROJ_DIR$\..\..\..\..\Source\backdoor.c - BICOMP - 276 + ICCARM + 355 58 - ICCARM - 171 234 + BICOMP + 101 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55
@@ -957,22 +924,22 @@ $PROJ_DIR$\..\..\..\..\Source\boot.c - BICOMP - 345 + ICCARM + 107 413 - ICCARM - 282 229 + BICOMP + 170 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55
@@ -980,22 +947,22 @@ $PROJ_DIR$\..\..\..\..\Source\com.c - BICOMP - 277 + ICCARM + 268 100 - ICCARM - 83 275 + BICOMP + 102 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 418 417 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 41 52 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 418 417 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 41 52
@@ -1003,22 +970,22 @@ $PROJ_DIR$\..\..\..\..\Source\cop.c - BICOMP - 278 + ICCARM + 267 99 - ICCARM - 82 274 + BICOMP + 103 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 @@ -1026,832 +993,45 @@ $PROJ_DIR$\..\..\..\..\Source\file.c - BICOMP - 393 + ICCARM + 224 217 - ICCARM - 399 392 + BICOMP + 218 - BICOMP - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 118 303 249 165 311 246 90 94 115 116 117 397 394 395 398 396 400 401 + ICCARM + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 302 128 74 349 136 71 275 279 299 300 301 222 219 220 223 221 225 226 - ICCARM - 47 33 43 16 54 421 51 420 419 45 53 40 38 5 49 55 118 303 249 165 311 246 90 94 115 116 117 397 394 395 398 396 400 401 + BICOMP + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 302 128 74 349 136 71 275 279 299 300 301 222 219 220 223 221 225 226 - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.c + $PROJ_DIR$\..\..\..\..\Source\xcp.c - BICOMP - 156 + ICCARM + 243 57 - ICCARM - 390 155 + BICOMP + 104 ICCARM - 63 59 5 62 391 303 249 165 311 246 90 94 + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 - - - - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c - BICOMP - 153 - - - ICCARM - 389 152 - - - - - ICCARM - 63 59 5 411 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c - - - BICOMP - 337 - - - ICCARM - 186 208 - - - - - BICOMP - 212 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - ICCARM - 212 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c - - - BICOMP - 243 - - - ICCARM - 191 319 - - - - - BICOMP - 60 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - ICCARM - 60 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c - - - BICOMP - 351 - - - ICCARM - 195 293 - - - - - BICOMP - 67 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - ICCARM - 67 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c - - - BICOMP - 326 - - - ICCARM - 193 335 - - - - - BICOMP - 66 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - ICCARM - 66 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c - - - BICOMP - 350 - - - ICCARM - 196 294 - - - - - BICOMP - 73 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - ICCARM - 73 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c - - - BICOMP - 321 - - - ICCARM - 192 320 - - - - - BICOMP - 71 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - ICCARM - 71 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c - - - BICOMP - 352 - - - ICCARM - 197 295 - - - - - BICOMP - 75 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - ICCARM - 75 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c - - - BICOMP - 323 - - - ICCARM - 199 297 - - - - - BICOMP - 77 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - ICCARM - 77 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c - - - BICOMP - 353 - - - ICCARM - 200 84 - - - - - BICOMP - 79 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - ICCARM - 79 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - - - $PROJ_DIR$\..\boot.c - - - BICOMP - 345 - - - ICCARM - 282 229 - - - - - ICCARM - 121 211 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 120 123 125 127 - - - - - $PROJ_DIR$\..\irq.c - - - BICOMP - 346 - - - ICCARM - 318 226 - - - - - ICCARM - 121 211 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 120 123 125 127 - - - - - $PROJ_DIR$\..\led.c - - - BICOMP - 347 - - - ICCARM - 283 228 - - - - - ICCARM - 121 211 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 120 123 125 127 - - - - - $PROJ_DIR$\..\timer.c - - - BICOMP - 280 - - - ICCARM - 317 344 - - - - - ICCARM - 121 211 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 120 123 125 127 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c - - - BICOMP - 301 - - - ICCARM - 194 379 - - - - - ICCARM - 142 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 149 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c - - - BICOMP - 241 - - - ICCARM - 189 341 - - - - - ICCARM - 128 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c - - - BICOMP - 321 - - - ICCARM - 192 320 - - - - - ICCARM - 132 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 141 142 149 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c - - - BICOMP - 242 - - - ICCARM - 202 342 - - - - - ICCARM - 133 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c - - - BICOMP - 243 - - - ICCARM - 191 319 - - - - - ICCARM - 131 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 132 141 142 149 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c - - - BICOMP - 236 - - - ICCARM - 190 340 - - - - - ICCARM - 138 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c - - - BICOMP - 326 - - - ICCARM - 193 335 - - - - - ICCARM - 141 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 142 149 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c - - - BICOMP - 351 - - - ICCARM - 195 293 - - - - - ICCARM - 149 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c - - - BICOMP - 352 - - - ICCARM - 197 295 - - - - - ICCARM - 145 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c - - - BICOMP - 324 - - - ICCARM - 198 296 - - - - - ICCARM - 147 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c - - - BICOMP - 350 - - - ICCARM - 196 294 - - - - - ICCARM - 146 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c - - - BICOMP - 323 - - - ICCARM - 199 297 - - - - - ICCARM - 151 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\vectors.c - - - BICOMP - 281 - - - ICCARM - 315 343 - - - - - ICCARM - 121 211 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 120 123 125 127 - - - - - $PROJ_DIR$\..\src\app\app.c - - - BICOMP - 330 - - - ICCARM - 266 176 - - - - - ICCARM - 163 161 166 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 159 - - - - - $PROJ_DIR$\..\src\hw\cstart.s - - - AARM - 334 - - - - - $PROJ_DIR$\..\src\os\os.c - - - BICOMP - 354 - - - ICCARM - 225 180 - - - - - ICCARM - 161 - - - - - $PROJ_DIR$\..\src\hw\hw.c - - - BICOMP - 244 - - - ICCARM - 111 179 - - - - - ICCARM - 163 161 166 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 159 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c - - - BICOMP - 329 - - - ICCARM - 203 86 - - - - - BICOMP - 205 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - ICCARM - 205 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c - - - BICOMP - 325 - - - ICCARM - 181 88 - - - - - BICOMP - 207 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - ICCARM - 207 3 0 114 303 249 165 311 246 90 94 370 1 7 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c - - - BICOMP - 238 - - - ICCARM - 185 260 - - - - - BICOMP - 220 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - ICCARM - 220 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c - - - BICOMP - 237 - - - ICCARM - 184 263 - - - - - BICOMP - 218 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - ICCARM - 218 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c - - - BICOMP - 240 - - - ICCARM - 187 258 - - - - - BICOMP - 216 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - ICCARM - 216 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c - - - BICOMP - 239 - - - ICCARM - 182 259 - - - - - BICOMP - 214 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - ICCARM - 214 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - - - $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c - - - BICOMP - 241 - - - ICCARM - 189 341 - - - - - BICOMP - 381 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - ICCARM - 381 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 - - - - - $PROJ_DIR$\..\bin\demoprog_olimex_stm32p103.out - - - OBJCOPY - 231 - - - - - ILINK - 210 229 265 334 226 228 227 262 208 263 260 259 258 341 340 342 319 320 335 379 293 294 295 296 297 84 85 86 87 88 110 344 343 209 98 322 92 + 40 28 36 16 50 46 45 49 51 38 48 33 31 5 43 55 @@ -1860,7 +1040,7 @@ BICOMP - 178 + 362 @@ -1869,7 +1049,7 @@ ILINK - 210 336 248 264 272 257 333 268 252 253 222 267 101 103 104 105 162 100 223 271 305 95 96 312 373 235 371 374 378 209 98 322 92 + 394 161 73 89 97 82 158 93 77 78 406 92 286 288 289 290 346 285 407 96 130 280 281 137 198 60 196 199 203 393 282 147 277 @@ -1878,17 +1058,17 @@ ILINK - 169 + 353 OBJCOPY - 172 + 356 ILINK - 97 300 234 229 287 275 274 265 289 334 155 392 290 174 227 387 286 379 296 85 87 110 344 292 152 288 343 232 209 98 322 92 + 283 125 58 413 112 100 99 90 114 159 339 217 115 358 411 212 111 204 121 270 272 295 169 117 336 113 168 57 393 282 147 277 @@ -1897,13 +1077,13 @@ OBJCOPY - 327 + 152 ILINK - 210 229 265 334 226 228 227 262 208 263 260 259 258 341 340 342 319 320 335 379 293 294 295 296 297 84 85 86 87 88 110 344 343 209 98 322 92 + 394 413 90 159 410 412 411 87 392 88 85 84 83 166 165 167 144 145 160 204 118 119 120 121 122 269 270 271 272 273 295 169 168 393 282 147 277 @@ -1912,7 +1092,7 @@ BILINK - 270 372 269 93 245 375 376 377 304 247 106 107 108 183 109 99 261 91 306 307 309 250 308 310 113 251 102 338 + 95 197 94 278 70 200 201 202 129 72 291 292 293 367 294 284 86 276 131 132 134 75 133 135 297 76 287 163 @@ -1920,18 +1100,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\misc.c - BICOMP - 178 + ICCARM + 372 87 - ICCARM - 188 262 + BICOMP + 362 ICCARM - 362 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 + 187 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 @@ -1939,18 +1119,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c - BICOMP - 237 + ICCARM + 368 88 - ICCARM - 184 263 + BICOMP + 62 ICCARM - 358 357 380 114 303 249 165 311 246 90 94 370 403 367 363 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 + 183 182 206 298 128 74 349 136 71 275 279 195 228 192 188 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 @@ -1958,18 +1138,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c - BICOMP - 337 + ICCARM + 370 392 - ICCARM - 186 208 + BICOMP + 162 ICCARM - 363 357 380 114 303 249 165 311 246 90 94 370 403 367 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 + 188 182 206 298 128 74 349 136 71 275 279 195 228 192 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 @@ -1977,18 +1157,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c - BICOMP - 238 + ICCARM + 369 85 - ICCARM - 185 260 + BICOMP + 63 ICCARM - 364 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 + 189 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 @@ -1996,18 +1176,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c - BICOMP - 239 + ICCARM + 366 84 - ICCARM - 182 259 + BICOMP + 64 ICCARM - 366 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 + 191 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 @@ -2015,37 +1195,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c - BICOMP - 240 + ICCARM + 371 83 - ICCARM - 187 258 + BICOMP + 65 ICCARM - 369 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\CMSIS\CM3\CoreSupport\core_cm3.c - - - BICOMP - 177 - - - ICCARM - 112 265 - - - - - ICCARM - 114 303 249 165 311 246 90 94 + 194 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 @@ -2053,22 +1214,41 @@ $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c - BICOMP - 236 + ICCARM + 374 165 - ICCARM - 190 340 + BICOMP + 61 - BICOMP - 384 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + ICCARM + 209 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + BICOMP + 209 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\CMSIS\CM3\CoreSupport\core_cm3.c + ICCARM - 384 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + 296 90 + + + BICOMP + 361 + + + + + ICCARM + 298 128 74 349 136 71 275 279 @@ -2076,22 +1256,22 @@ $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c - BICOMP - 242 + ICCARM + 386 167 - ICCARM - 202 342 + BICOMP + 67 - BICOMP - 57 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + ICCARM + 241 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 - ICCARM - 57 3 0 114 303 249 165 311 246 90 94 370 1 7 9 11 13 15 + BICOMP + 241 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 @@ -2099,18 +1279,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.c - BICOMP - 355 + ICCARM + 408 295 - ICCARM - 224 110 + BICOMP + 180 ICCARM - 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 409 362 + 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 @@ -2119,7 +1299,7 @@ AARM - 334 + 159 @@ -2127,18 +1307,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c - BICOMP - 353 + ICCARM + 384 269 - ICCARM - 200 84 + BICOMP + 178 ICCARM - 414 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 415 406 412 409 362 + 239 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 240 231 237 234 187 @@ -2146,18 +1326,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c - BICOMP - 329 + ICCARM + 387 271 - ICCARM - 203 86 + BICOMP + 154 ICCARM - 406 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 412 409 362 + 231 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 237 234 187 @@ -2165,18 +1345,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c - BICOMP - 325 + ICCARM + 365 273 - ICCARM - 181 88 + BICOMP + 150 ICCARM - 409 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 412 362 + 234 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 187 @@ -2184,18 +1364,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c - BICOMP - 328 + ICCARM + 274 272 - ICCARM - 89 87 + BICOMP + 153 ICCARM - 412 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 415 406 409 362 + 237 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 234 187 @@ -2203,18 +1383,828 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_spi.c - BICOMP - 332 + ICCARM + 385 270 - ICCARM - 201 85 + BICOMP + 157 ICCARM - 415 357 380 114 303 249 165 311 246 90 94 370 403 367 363 358 364 366 369 128 138 133 131 132 141 142 149 146 145 147 151 414 406 412 409 362 + 240 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 231 237 234 187 + + + + + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.c + + + ICCARM + 215 339 + + + BICOMP + 340 + + + + + ICCARM + 248 244 5 247 216 128 74 349 136 71 275 279 + + + + + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c + + + ICCARM + 214 336 + + + BICOMP + 337 + + + + + ICCARM + 248 244 5 236 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c + + + ICCARM + 370 392 + + + BICOMP + 162 + + + + + ICCARM + 396 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + BICOMP + 396 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c + + + ICCARM + 375 144 + + + BICOMP + 68 + + + + + ICCARM + 245 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + BICOMP + 245 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c + + + ICCARM + 379 118 + + + BICOMP + 176 + + + + + ICCARM + 252 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + BICOMP + 252 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c + + + ICCARM + 377 160 + + + BICOMP + 151 + + + + + ICCARM + 251 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + BICOMP + 251 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c + + + ICCARM + 380 119 + + + BICOMP + 175 + + + + + ICCARM + 258 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + BICOMP + 258 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c + + + ICCARM + 376 145 + + + BICOMP + 146 + + + + + ICCARM + 256 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + BICOMP + 256 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c + + + ICCARM + 381 120 + + + BICOMP + 177 + + + + + ICCARM + 260 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + BICOMP + 260 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c + + + ICCARM + 383 122 + + + BICOMP + 148 + + + + + ICCARM + 262 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + BICOMP + 262 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c + + + ICCARM + 384 269 + + + BICOMP + 178 + + + + + ICCARM + 264 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + BICOMP + 264 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + + + $PROJ_DIR$\..\boot.c + + + ICCARM + 107 413 + + + BICOMP + 170 + + + + + ICCARM + 305 395 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 304 307 309 311 + + + + + $PROJ_DIR$\..\irq.c + + + ICCARM + 143 410 + + + BICOMP + 171 + + + + + ICCARM + 305 395 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 304 307 309 311 + + + + + $PROJ_DIR$\..\led.c + + + ICCARM + 108 412 + + + BICOMP + 172 + + + + + ICCARM + 305 395 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 304 307 309 311 + + + + + $PROJ_DIR$\..\timer.c + + + ICCARM + 142 169 + + + BICOMP + 105 + + + + + ICCARM + 305 395 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 304 307 309 311 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c + + + ICCARM + 378 204 + + + BICOMP + 126 + + + + + ICCARM + 326 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 333 330 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c + + + ICCARM + 373 166 + + + BICOMP + 66 + + + + + ICCARM + 312 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c + + + ICCARM + 376 145 + + + BICOMP + 146 + + + + + ICCARM + 316 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 325 326 333 330 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c + + + ICCARM + 386 167 + + + BICOMP + 67 + + + + + ICCARM + 317 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c + + + ICCARM + 375 144 + + + BICOMP + 68 + + + + + ICCARM + 315 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 316 325 326 333 330 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c + + + ICCARM + 374 165 + + + BICOMP + 61 + + + + + ICCARM + 322 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c + + + ICCARM + 377 160 + + + BICOMP + 151 + + + + + ICCARM + 325 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 326 333 330 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c + + + ICCARM + 379 118 + + + BICOMP + 176 + + + + + ICCARM + 333 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 330 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c + + + ICCARM + 381 120 + + + BICOMP + 177 + + + + + ICCARM + 329 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c + + + ICCARM + 382 121 + + + BICOMP + 149 + + + + + ICCARM + 331 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c + + + ICCARM + 380 119 + + + BICOMP + 175 + + + + + ICCARM + 330 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 329 331 335 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c + + + ICCARM + 383 122 + + + BICOMP + 148 + + + + + ICCARM + 335 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 239 240 231 237 234 187 + + + + + $PROJ_DIR$\..\vectors.c + + + ICCARM + 140 168 + + + BICOMP + 106 + + + + + ICCARM + 305 395 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 304 307 309 311 + + + + + $PROJ_DIR$\..\src\app\app.c + + + ICCARM + 91 360 + + + BICOMP + 155 + + + + + ICCARM + 347 345 350 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 343 + + + + + $PROJ_DIR$\..\src\hw\cstart.s + + + AARM + 159 + + + + + $PROJ_DIR$\..\src\os\os.c + + + ICCARM + 409 364 + + + BICOMP + 179 + + + + + ICCARM + 345 + + + + + $PROJ_DIR$\..\src\hw\hw.c + + + ICCARM + 56 363 + + + BICOMP + 69 + + + + + ICCARM + 347 345 350 182 206 298 128 74 349 136 71 275 279 195 228 192 188 183 189 191 194 312 322 317 315 316 325 326 333 330 329 331 335 239 240 231 237 234 187 343 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c + + + ICCARM + 387 271 + + + BICOMP + 154 + + + + + ICCARM + 389 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + BICOMP + 389 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c + + + ICCARM + 365 273 + + + BICOMP + 150 + + + + + ICCARM + 391 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + BICOMP + 391 3 0 298 128 74 349 136 71 275 279 195 1 7 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c + + + ICCARM + 369 85 + + + BICOMP + 63 + + + + + ICCARM + 404 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + BICOMP + 404 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c + + + ICCARM + 368 88 + + + BICOMP + 62 + + + + + ICCARM + 402 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + BICOMP + 402 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c + + + ICCARM + 371 83 + + + BICOMP + 65 + + + + + ICCARM + 400 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + BICOMP + 400 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c + + + ICCARM + 366 84 + + + BICOMP + 64 + + + + + ICCARM + 398 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + BICOMP + 398 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c + + + ICCARM + 373 166 + + + BICOMP + 66 + + + + + ICCARM + 205 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + BICOMP + 205 3 0 298 128 74 349 136 71 275 279 195 1 7 9 11 13 15 + + + + + $PROJ_DIR$\..\bin\demoprog_olimex_stm32p103.out + + + OBJCOPY + 415 + + + + + ILINK + 394 413 90 159 410 412 411 87 392 88 85 84 83 166 165 167 144 145 160 204 118 119 120 121 122 269 270 271 272 273 295 169 168 393 282 147 277 diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/bin/openblt_olimex_stm32p103.axf b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/bin/openblt_olimex_stm32p103.axf index efc43622..6f71a7d4 100644 Binary files a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/bin/openblt_olimex_stm32p103.axf and b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/bin/openblt_olimex_stm32p103.axf differ diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/bin/openblt_olimex_stm32p103.srec b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/bin/openblt_olimex_stm32p103.srec index 821babd1..012621d2 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/bin/openblt_olimex_stm32p103.srec +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/bin/openblt_olimex_stm32p103.srec @@ -16,19 +16,19 @@ S315080000E0B5010008B5010008B501000800F002F8DE S315080000F000F043F80AA090E8000C82448344AAF171 S315080001000107DA4501D100F038F8AFF2090EBAE86E S315080001100F0013F0010F18BFFB1A43F0010318472D -S31508000120BC510000DC510000103A24BF78C878C1E1 +S31508000120D0510000F0510000103A24BF78C878C1B9 S31508000130FAD8520724BF30C830C144BF04680C60DF S31508000140704700000023002400250026103A28BF27 S3150800015078C1FBD8520728BF30C148BF0B6070472B -S315080001601FB500F07DF804000020002104F084FD8E +S315080001601FB500F07DF804000020002104F08EFD84 S31508000170401C60601FBD10B510BD00F0B9F81146EF -S31508000180FFF7EEFF04F092F900F0D7F803B4FFF793 +S31508000180FFF7EEFF04F09CF900F0D7F803B4FFF789 S31508000190F2FF03BC00F0DAF872B60A4880470A484C S315080001A00047FEE7FEE7FEE7FEE7FEE7FEE7FEE7B7 S315080001B0FEE7FEE7FEE7000004480549054A064B48 -S315080001C070470000851C0008ED000008D00F0020CD +S315080001C070470000991C0008ED000008D00F0020B9 S315080001D0D0150020D0110020D011002010B500F055 -S315080001E03FF8001D10BD00BF914A000010B5044637 +S315080001E03FF8001D10BD00BFA54A000010B5044623 S315080001F0FFF7F4FF0068005D000704D5DF2C02D086 S31508000200A4F1200010BD204610BD4FF0000200B535 S31508000210134694469646203922BFA0E80C50A0E81B @@ -54,15 +54,15 @@ S3150800034000802046BDE81040FFF720BF014918206D S31508000350ABBEFEE7260002007047000005460C46C5 S31508000360034805600348046000BF00F068FAFCE72C S315080003701C0000202000002010B500F027FA0128F4 -S3150800038000D110BD00F04EFB00B9FAE70A48007824 -S3150800039001280FD101F0A6FC0849096801F5FA7190 -S315080003A0884207D300200449087000F0E9FA08B922 +S3150800038000D110BD00F058FB00B9FAE70A4800781A +S3150800039001280FD101F0B0FC0849096801F5FA7186 +S315080003A0884207D300200449087000F0F3FA08B918 S315080003B000F05CFA00BFE4E72400002028000020D3 -S315080003C010B501200449087001F08CFC0349086047 +S315080003C010B501200449087001F096FC034908603D S315080003D0FFF7D2FF10BD00002400002028000020EF -S315080003E010B500F02BFA01F085FC01F0F6FA00F0E2 -S315080003F0DFFA00F0DBF9FFF7E3FF10BD10B500F0F8 -S315080004001EFA01F091FC00F07BFC00F0E3F9FFF71F +S315080003E010B500F02BFA01F08FFC01F000FB00F0CD +S315080003F0E9FA00F0DBF9FFF7E3FF10BD10B500F0EE +S315080004001EFA01F09BFC00F085FC00F0E3F9FFF70B S31508000410B3FF10BDF0B505460C46002133E01C4875 S3150800042010F811001A4E06EB410676783044401C47 S31508000430684348F6A04696FBF0F700FB176000BB3A @@ -71,7 +71,7 @@ S31508000450401C684348F6A04696FBF0F020802088AA S3150800046000280EDD2088B0F5806F0ADC084810F8F1 S3150800047011001070064800EB410040781870012002 S31508000480F0BD481CC1B21229C9D30020F8E7000004 -S31508000490CC4C00083EB56B4601AA02A94FF4FA7087 +S31508000490E04C00083EB56B4601AA02A94FF4FA7073 S315080004A0FFF7B8FF0446012C03D0E22146A0FFF768 S315080004B055FF00204E4908604D481438006840F43E S315080004C000404B491439086001E000F0B8F9484883 @@ -121,1221 +121,1221 @@ S31508000770402000BF00BF70472C0000200A490978B6 S3150800078031B1012906D0022906D0032908D105E08E S31508000790402007E0082005E0002003E0002001E0F3 S315080007A0402000BF00BF70472C00002010B501F0A4 -S315080007B0B1FDFFF76FFE01200349087001F04CFBFD +S315080007B0BBFDFFF76FFE01200349087001F056FBE9 S315080007C000200149087010BD2C00002010B501F06A -S315080007D0AFFD10BD10B50B48FFF70EFF012804D179 -S315080007E009490870074801F0ADFD064801F05EFBAF -S315080007F0012805D1002004490870024801F0A2FD2D +S315080007D0B9FD10BD10B50B48FFF70EFF012804D16F +S315080007E009490870074801F0B7FD064801F068FB9B +S315080007F0012805D1002004490870024801F0ACFD23 S3150800080010BD0000780200202C00002070B50546B7 S315080008100C4609480078012803D1E1B22846FFF7BB -S3150800082031FF0548007818B9E1B2284601F0A4FB63 -S3150800083001F00EFE70BD00002C00002070477047C6 +S3150800082031FF0548007818B9E1B2284601F0AEFB59 +S3150800083001F018FE70BD00002C00002070477047BC S315080008402DE9F04104460D4616462F46A04605E01A S3150800085017F8010B08F8010BFFF7F1FF301EA6F198 S3150800086001018EB2F4DCBDE8F081000010B501F09C -S31508000870B8F800B910BDFFF767FF01F04FFA01F0AD -S31508000880A8F8054908400549086001F0A2F8446837 +S31508000870C2F800B910BDFFF767FF01F059FA01F099 +S31508000880B2F8054908400549086001F0ACF8446823 S31508000890A04700BFEEE7000080FFFF1F08ED00E05D -S315080008A010B5094890F82402012802D1064802F03A -S315080008B0FDFE00BF4021054801F050FA0028F9D096 -S315080008C0034803F059FA10BD5000002000440040C8 -S315080008D0A44C000810B50446044890F824020128E0 -S315080008E002D1024802F0E2FE10BD000050000020CE -S315080008F010B50446114890F8240201280CD10F4976 -S31508000900204603F0C4F8002806DA00200B4981F8CF -S315080009102402084602F0CAFE0BE02178084801F0D6 -S3150800092097FA00BF8021064801F018FA0028F9D086 -S31508000930641C20780028F0D110BD0000500000206B -S315080009400044004010B50020064981F824020A2216 -S3150800095005A1044802F0CEFF18B90120014981F823 -S31508000960240210BD500000202F626F6F746C6F67F1 -S315080009702E7478740000000000487047A44C0008E4 -S3150800098010B5FFF723FF012801D1002010BD074845 -S31508000990007808B10020F9E700F02AF8012802D10A -S315080009A002490870F2E70020F0E700003000002056 -S315080009B010B5002005490870054902F085FF044670 -S315080009C01CB1772103A0FFF7C9FC10BD3000002039 -S315080009D0B80200202E2E5C2E2E5C2E2E5C2E2E5C4F -S315080009E0536F757263655C66696C652E63000000FB -S315080009F000B589B0202101A8FFF707FC01A908481E -S31508000A0003F040F948B9019838B19DF80C0000F098 -S31508000A10100010B9012009B000BD0020FBE7000056 -S31508000A20A44C00080348007808B901207047002044 -S31508000A30FCE700003000002070B5044604F00F0003 -S31508000A4000F13005092C02DDE81DC5B203E0284691 -S31508000A50FFF7CCFBC5B2284670BD70B505460C46F7 -S31508000A602811FFF7E9FF207005F00F00FFF7E4FFF4 -S31508000A7060700020A070204670BD2DE9F041064642 -S31508000A80002700251AE0705DFFF7B0FBC4B2302CD2 -S31508000A9005DB462C03DC392C04DD412C02DA002068 -S31508000AA0BDE8F081A4F13000C4B2092C01DDE01FD5 -S31508000AB0C4B204EB0710C7B2681CC5B2022DE2DB4C -S31508000AC03846EDE710B503461A4600BF491C0A200A -S31508000AD0B2FBF0F2002AF9D1002008701A4600BFCE -S31508000AE0491E0A20B2FBF0F400FB142030300870CF -S31508000AF00A20B2FBF0F2002AF2D1084610BD10B562 -S31508000B0004462078FFF772FB53280AD1FFF766FBE5 -S31508000B1000686178405C202801D1012000E00020AF -S31508000B2008B9032010BD6078312801D10020F9E703 -S31508000B306078322801D10120F4E76078332801D1A2 -S31508000B400220EFE70320EDE72DE9F04704460D46BE -S31508000B5017464FF0000905B124B940F2312150A0DB -S31508000B60FFF7FCFB2046FFF7CAFF8246BAF1030FE0 -S31508000B7002D10020BDE8F087204600F09FF810B9A2 -S31508000B804FF0FF30F6E7BAF1000F06D0BAF1010FC1 -S31508000B9025D0BAF1020F7FD14BE0A41C2046FFF7FF -S31508000BA06CFF8046A41C2046FFF767FF00022860FA -S31508000BB0A41C2046FFF761FF296808442860A41C86 -S31508000BC0A8F1030957B1002606E02046FFF755FFAE -S31508000BD0B855A41C701C86B24E45F6DB5DE0A41C15 -S31508000BE02046FFF74AFF8046A41C2046FFF745FF2C -S31508000BF000042860A41C2046FFF73FFF296801EB84 -S31508000C0000202860A41C2046FFF737FF29680844FF -S31508000C102860A41CA8F1040957B1002606E020465E -S31508000C20FFF72BFFB855A41C701C86B24E45F6DBA1 -S31508000C3033E0A41C2046FFF720FF8046A41C20466C -S31508000C40FFF71BFF00062860A41C2046FFF715FFC8 -S31508000C50296801EB00402860A41C2046FFF70DFF19 -S31508000C60296801EB00202860A41C2046FFF705FF31 -S31508000C70296808442860A41CA8F105095FB1002664 -S31508000C8007E009E02046FFF7F8FEB855A41C701CDB -S31508000C9086B24E45F6DB00E000BF00BF484669E76E -S31508000CA02E2E5C2E2E5C2E2E5C2E2E5C536F7572AD -S31508000CB063655C66696C652E6300000070B5044662 -S31508000CC00025A41C2046FFF7D8FE0646A819C5B27B -S31508000CD0A41C00BF2046FFF7D0FE2844C5B2701EEC -S31508000CE086B2A41C012EF5DCE843C5B22046FFF700 -S31508000CF0C4FEA84201D0002070BD0120FCE7000018 -S31508000D0070B50024D248007800282BD0D048007847 -S31508000D10012828D1FFF716FECEA0FFF7E9FDD6A0D9 -S31508000D20FFF7E6FDFFF728FE064601223146DC48B6 -S31508000D3002F0E0FD30B1DBA0FFF7DAFD0120FFF796 -S31508000D40C9FD70BDD9A0FFF7D3FDDAA0FFF7D0FD26 -S31508000D50E1A0FFF7CDFD0020EB49086048600220BE -S31508000D60BB49087072E1BA48007802287ED1CC4A9D -S31508000D70C101E64802F0A5FC0546E54890F83A02A6 -S31508000D80C00900280CDDC7A0FFF7B2FD0220FFF757 -S31508000D90A1FDC34802F08AFC0020AD490870D0E7DF -S31508000DA0A5B10022DB49D948FFF7CEFE0446601CF0 -S31508000DB060B9BCA0FFF79CFD0320FFF78BFDB84880 -S31508000DC002F074FC0020A2490870BAE7002C1BDD6B -S31508000DD0CD48406838B9CD48D0F88001CA4908607E -S31508000DE00846446010E0C948D0F88001C649096839 -S31508000DF0884204D2C548D0F88001C3490860C24871 -S31508000E0040682044C0494860C148D0F83C12D0F830 -S31508000E104002814201D1012000E000200028A1DD26 -S31508000E2000219F4802F078FC60B19EA0FFF760FDA4 -S31508000E300420FFF74FFD9A4802F038FC0020844949 -S31508000E4008707EE799A0FFF753FDB3A0FFF750FDA2 -S31508000E50AD494868B349FFF735FEB248FFF748FD84 -S31508000E60B1A0FFF745FDA849096800E039E0080E7A -S31508000E70AC49FFF7F2FDA4490968C1F30740A9493F -S31508000E80891CFFF7EAFDA0490988C1F30720A5498F -S31508000E90091DFFF7E2FD9C490878A249891DFFF75D -S31508000EA0DCFDA048FFF724FDA6A0FFF721FD964A22 -S31508000EB05168106800F085FD60B97AA0FFF718FD43 -S31508000EC00520FFF707FD764802F0F0FB0020604991 -S31508000ED0087036E775A0FFF70BFD03205C4908701C -S31508000EE0B4E05B4800780328FAD16D4A4FF4807164 -S31508000EF0864802F0E6FB0546854890F83A02C0099E -S31508000F0000280CDD90A0FFF7F3FC0220FFF7E2FCB7 -S31508000F10634802F0CBFB00204D49087011E7ADB1DC -S31508000F207C4A803A7B497948FFF70EFE0446601CE6 -S31508000F3060B98EA0FFF7DCFC0320FFF7CBFC58480E -S31508000F4002F0B4FB002042490870FAE6002C4BDD9B -S31508000F508FA0FFF7CDFC73492046FFF7B3FD714814 -S31508000F60FFF7C6FC8EA0FFF7C3FC6849D1F88011CD -S31508000F70080E6C49FFF771FD6449D1F88011C1F379 -S31508000F8007406849891CFFF768FD6049B1F8801178 -S31508000F90C1F307206349091DFFF75FFD5B4991F817 -S31508000FA080016049891DFFF758FD5E48FFF7A0FCE0 -S31508000FB064A0FFF79DFC554901F58072D1F88001C0 -S31508000FC0214600F012FD60B936A0FFF791FC062015 -S31508000FD0FFF780FC324802F069FB00201C490870C4 -S31508000FE0AFE632A0FFF784FC4948D0F83C12D0F8A7 -S31508000FF04002814201D1012000E00020002825DDC1 -S315080010006DA0FFF775FC00F0D3FC60B925A0FFF7CB -S315080010106FFC0720FFF75EFC214802F047FB002023 -S315080010200B4908708DE621A0FFF762FC69A0FFF75F -S315080010305FFC1B4802F03AFB6CA0FFF759FC002046 -S3150800104003490870FFF72CFCFFF710FC00BF78E691 -S31508001050300000204669726D77617265207570648C -S31508001060617465207265717565737420646574654D -S31508001070637465640A0D00004F70656E696E6720BB -S315080010806669726D776172652066696C6520666F40 -S31508001090722072656164696E672E2E2E000000004C -S315080010A0EC0400204552524F520A0D004F4B0A0DD0 -S315080010B0000000005374617274696E672074686575 -S315080010C02070726F6772616D6D696E6720736571E6 -S315080010D075656E63650A0D0050617273696E6720E7 -S315080010E06669726D776172652066696C6520746FD2 -S315080010F0206F627461696E20657261736520736919 -S315080011007A652E2E2E0000003400002010070020DD -S31508001110B80200209008002045726173696E672046 -S315080011200000000094080020206279746573206628 -S31508001130726F6D206D656D6F7279206174203078DD -S31508001140000000002E2E2E0052656164696E67202D -S315080011506C696E652066726F6D2066696C652E2EE9 -S315080011602E4552524F520A0D00000000496E766114 -S315080011706C696420636865636B73756D20666F754B -S315080011806E642E2E2E4552524F520A0D0000000054 -S3150800119050726F6772616D6D696E6720000000009E -S315080011A020627974657320746F206D656D6F72792E -S315080011B0206174203078000057726974696E672060 -S315080011C070726F6772616D20636865636B73756DA6 -S315080011D02E2E2E00436C6F73696E67206669726DDA -S315080011E0776172652066696C650A0D004669726DDD -S315080011F077617265207570646174652073756363C1 -S3150800120065737366756C6C7920636F6D706C657445 -S3150800121065640A0D000000002DE9F04704460E46F5 -S3150800122092461F46700A4FEA40282068401C38B983 -S315080012304146204600F03AF910B90020BDE8F0878B -S315080012402068404507D04146204600F04FF904463D -S315080012500CB90020F2E72068311A201D0D18D14676 -S3150800126000BFFFF7ECFA201D281AB0F5007F09D356 -S3150800127008F50071204600F039F904460CB900203B -S31508001280DCE7251D99F8000028706D1C09F1010995 -S315080012907F1E002FE5D10120D0E7000010B50B48CE -S315080012A00068401C28B1094800F0ACF908B90020CC -S315080012B010BD07480068401C28B1054800F0A2F98F -S315080012C008B90020F4E70120F2E70000240B00200B -S315080012D0200900202DE9F04104460D46204600F07D -S315080012E071F806466119481E00F06CF80746FF2E8D -S315080012F001D0FF2F02D10020BDE8F08139463046E3 -S3150800130000F002F8F8E700002DE9F04706460D461A -S31508001310AE4202DD0020BDE8F0872848007AB042D8 -S3150800132004DC264890F89800A84201DA0020F2E783 -S3150800133000F002F92248C06800F0010018B100F078 -S31508001340CBF80020E7E71E48006940F002001C4978 -S315080013500861304600F060F80746284600F05CF859 -S315080013608246284600F074F85044A0F10109A9EB1A -S315080013700700401CC0F38F28002413E007EB8420E5 -S315080013800F4948610846006940F04000086101E0DD -S31508001390FFF755FA0A48C06800F001000028F7D19F -S315080013A0601C84B24445E9DB0548006920F0020068 -S315080013B00349086100F090F80120ACE7F04C0008FA -S315080013C00020024070B5054600241EE0FFF737FAF4 -S315080013D004EB44000F4951F82000A84213D804EB47 -S315080013E0440051F8200004EB44010A4A02EB81014B -S315080013F049680844A84206D904EB4400114601EBA3 -S315080014008000007A70BD601CC4B20D2CDED3FF20AC -S31508001410F8E70000F04C000870B50546002410E017 -S31508001420FFF70DFA04EB4400084901EB8000007A47 -S31508001430A84204D104EB440051F8200070BD601C9A -S31508001440C4B20D2CECD34FF0FF30F7E7F04C000890 -S3150800145070B50546002411E0FFF7F1F904EB4400E6 -S31508001460084901EB8000007AA84205D104EB440044 -S3150800147001EB8000406870BD601CC4B20D2CEBD334 -S315080014800020F8E7F04C00080148006870470000A3 -S31508001490F04C00084FF0FF30024908600249086026 -S315080014A07047000020090020240B002070B505466F -S315080014B00C46C4F3080008B1002070BD2868A04295 -S315080014C001D10120F9E72C604FF400722146281D4E -S315080014D0FFF7B6F90120F0E70348006940F08000FD -S315080014E001490861704700000020024070B50446B3 -S315080014F00D460E48844201D10D4C0DE00D4800689A -S31508001500A84203D1094C0B48056805E0204600F0BF -S3150800151079F808B9002070BD29462046FFF7C6FFAE -S3150800152008B90020F7E72046F5E70000240B00205D -S3150800153020090020F04C0008034804494860044884 -S3150800154048603420C8607047230167450020024080 -S31508001550AB89EFCD002113480068006801441148A3 -S315080015600068406801440F480068806801440D48D7 -S315080015700068C06801440B480068006901440948CE -S3150800158000684069014407480068806901440548C5 -S315080015900068D0F85001014409B9012070470020BD -S315080015A0FCE70000F04C00082DE9F04104460D4622 -S315080015B017462046FFF706FFFF2805D06119481E83 -S315080015C0FFF700FFFF2802D10020BDE8F081600A7E -S315080015D0460209480068B04206D12B463A462146DB -S315080015E00648FFF719FEF0E72B463A462146044817 -S315080015F0FFF712FEE9E70000F04C0008240B002074 -S31508001600200900202DE9F04705464FF00109286812 -S31508001610FFF7D8FE8046B8F1FF0F02D10020BDE8DB -S31508001620F087FFF789FF2048C06800F0010018B16D -S31508001630FFF752FF0020F2E71B48006940F001005F -S3150800164019490861002421E0286800EB8406281D52 -S3150800165050F82470378001E0FFF7F1F81248C068A7 -S3150800166000F001000028F7D1380C708001E0FFF780 -S31508001670E6F80D48C06800F001000028F7D1306888 -S31508001680B84202D04FF0000902E0641C802CDBD37C -S3150800169000BF0548006920F0010003490861FFF70B -S315080016A01BFF4846BBE700000020024008B50020A3 -S315080016B000901C480068401C08B9012008BD19485C -S315080016C040680099084400901648806800990844C4 -S315080016D000901448C06800990844009011480069B1 -S315080016E00099084400900F48406900990844009002 -S315080016F00C4880690099084400900A48C069009916 -S31508001700084400900098C04300900098401C009040 -S315080017100549096801F5A8706A460421FFF744FFE0 -S31508001720CCE70000240B0020F04C00082DE9F0411E -S31508001730024600250026002000230024002791F8F1 -S3150800174003C00CF00F0591F803C00CF0100CBCF1A7 -S31508001750000F03D091F802C04CEA050591F800C0C5 -S31508001760BCF1000F31D0146800202BE04FF0010CBB -S315080017700CFA00F3B1F800C00CEA03069E4220D129 -S3150800178083004FF00F0C0CFA03F7BC4305FA03FC71 -S315080017904CEA040491F803C0BCF1280F06D14FF0B7 -S315080017A0010C0CFA00FCC2F814C00AE091F803C058 -S315080017B0BCF1480F05D14FF0010C0CFA00FCC2F839 -S315080017C010C0401C0828D1D31460B1F800C0BCF181 -S315080017D0FF0F34DD546800202EE000F1080C4FF0AE -S315080017E0010808FA0CF3B1F800C00CEA03069E4299 -S315080017F021D183004FF00F0C0CFA03F7BC4305FA0E -S3150800180003FC4CEA040491F803C0BCF1280F05D187 -S3150800181000F1080C08FA0CF8C2F8148091F803C015 -S31508001820BCF1480F07D100F1080C4FF0010808FA7F -S315080018300CF8C2F81080401C0828CED35460BDE8C6 -S31508001840F0810000F0B50A46002300240021002597 -S3150800185000F00046B6F1004F02D11D4EF16901E0D5 -S315080018601B4E7168C0F3034583B200F44016B6F503 -S31508001870401F08D121F07061154E766826F0706613 -S31508001880134F7E6012E000F48016B6F5801F06D16D -S31508001890032606FA05F4A14341F0706106E0460DF9 -S315080018A0360103FA06F6B14341F0706122B1460DDE -S315080018B0360103FA06F6314300F00046B6F1004F4A -S315080018C002D1034EF16101E0014E7160F0BD0000E6 -S315080018D000000140416170470161704700B585B05D -S315080018E00121084600F09CF80121082000F098F82C -S315080018F04FF48070ADF8100048208DF8130004A945 -S315080019002848FFF713FF4FF40070ADF810001820B1 -S315080019108DF8130003208DF8120004A92148FFF75B -S3150800192005FF01214FF4EA10FFF78CFF0121480655 -S3150800193000F066F80121480400F062F8012105204C -S3150800194000F06EF818208DF813000420ADF810008A -S3150800195003208DF8120004A91348FFF7E7FE0420B8 -S315080019608DF813000820ADF8100004A90E48FFF7FB -S31508001970DDFE4FF4614000900020ADF80400ADF89C -S315080019800600ADF80800ADF80C000C20ADF80A000A -S315080019906946064800F0F0F90121044800F0D2F93A -S315080019A005B000BD000C014000080140004400409D -S315080019B010B5FFF77BFE08B9002010BDFFF76EFCD7 -S315080019C0FBE770B504460D4629462046FFF782FC1C -S315080019D070BD10B5FFF758FD10BD10B5FFF75AFDDD -S315080019E010BD10B5FFF7B6FD10BD70B504460D461F -S315080019F01646324629462046FFF7D6FD70BD00003A -S31508001A0029B1064AD2690243044BDA6104E0034A63 -S31508001A10D2698243014BDA61704700000010024028 -S31508001A2029B1064A92690243044B9A6104E0034AC3 -S31508001A3092698243014B9A61704700000010024088 -S31508001A4030B500210022002400232D4D6D6805F0D5 -S31508001A500C0121B1042905D0082923D105E0294D17 -S31508001A60056022E0274D05601FE0254D6D6805F4E9 -S31508001A707012234D6D6805F48034022505EB9242F9 -S31508001A801CB9214D554305600BE01D4D6D6805F4E5 -S31508001A9000351DB11C4D5543056002E0194D5543EF -S31508001AA0056002E0174D056000BF00BF144D6D6864 -S31508001AB005F0F0010909154D6B5C0568DD404560C8 -S31508001AC00F4D6D6805F4E061090A104D6B5C4568B9 -S31508001AD0DD4085600A4D6D6805F46051C90A0B4DF5 -S31508001AE06B5C4568DD40C560054D6D6805F4404191 -S31508001AF0890B074D6B5CC568B5FBF3F5056130BD11 -S31508001B000010024000127A0000093D000000002083 -S31508001B101000002021B1028842F40052028004E03D -S31508001B2002884DF6FF731A400280704721B1028879 -S31508001B3042F04002028004E002884FF6BF731A4062 -S31508001B40028070470246002013890B400BB1012022 -S31508001B5000E00020704701468889704781817047F8 -S31508001B6010B50022028802F441520B884C882343A0 -S31508001B708C882343CC8823430C8923434C892343ED -S31508001B808C892343CC8923431A430280838B4FF2E3 -S31508001B90FF74234083830B8A038210BD10B500F0BF -S31508001BA001F810BD0CB5002001900090334800687C -S31508001BB040F480303149086000BF3048006800F4BE -S31508001BC0003000900198401C0190009818B90198BF -S31508001BD0B0F5A06FF1D12948006800F4003010B1C3 -S31508001BE00120009001E0002000900098012843D1D0 -S31508001BF02348006840F0100021490860084600683C -S31508001C0020F0030008600846006840F002000860FB -S31508001C101A484068194948600846406848600846B6 -S31508001C20406840F4806048600846406820F47C10AC -S31508001C3048600846406840F4E8104860084600686E -S31508001C4040F08070086000BF0C48006800F0007023 -S31508001C500028F9D00948406820F003000749486081 -S31508001C600846406840F00200486000BF03484068E4 -S31508001C7000F00C000828F9D10CBD00000010024045 -S31508001C800020024010B51348006840F001001149D1 -S31508001C90086008464068104908400E4948600846EA -S31508001CA000680E4908400B4908600846006820F499 -S31508001CB0802008600846406820F4FE0048604FF41B -S31508001CC01F008860FFF76AFF4FF00060044908604C -S31508001CD010BD0000001002400000FFF8FFFFF6FEEE -S31508001CE008ED00E000B500F01FF80148006800BDE7 -S31508001CF03C00002000B500F011F806484FF0E0213E -S31508001D0048610020886105200861002002490860B2 -S31508001D1000BD00003F1901003C00002000204FF0E4 -S31508001D20E0210861704700004FF0E020006900F4E8 -S31508001D30803020B102480068401C0149086070479D -S31508001D403C00002021B1828942F40052828104E0DD -S31508001D5082894DF6FF731A40828170470246002039 -S31508001D60B1F5007F00D100BF13880B400BB10120ED -S31508001D7000E00020704700002DE9F04786B00546D0 -S31508001D800E460024A24600BFA1460027B08900B12E -S31508001D9000BF2F462C8A4CF6FF700440F088044397 -S31508001DA02C82AC894EF6F3100440B088318908437A -S31508001DB0718908430443AC81AC8A4FF6FF4004405E -S31508001DC0B0890443AC8201A8FFF73AFE1F48874250 -S31508001DD002D1DDF810A001E0DDF80CA0A88900F416 -S31508001DE0004040B10AEBCA0000EB0A10316849000E -S31508001DF0B0FBF1F807E00AEBCA0000EB0A103168FD -S31508001E008900B0FBF1F86420B8FBF0F00401200962 -S31508001E10642101FB1089A88900F4004040B13220F2 -S31508001E2000EBC900B0FBF1F000F00700044308E03E -S31508001E30322000EB09106421B0FBF1F000F00F002E -S31508001E4004432C8106B0BDE8F08700000038014045 -S31508001E50C1F308028280704700200B490880091DDB -S31508001E600880091D0880091D0880091D088040F2A0 -S31508001E70712005490880081D008842F20C010843B4 -S31508001E800149091D08807047084400400146064874 -S31508001E90008800F0200028B10348001D008808705B -S31508001EA0012070470020FCE70044004010B50446B6 -S31508001EB02048007898B92048FFF7E8FF012837D16D -S31508001EC01D480078002833DDFFF70CFF1B49086022 -S31508001ED000201B49087001201649087028E0164A98 -S31508001EE017490978491C5018FFF7D0FF012815D162 -S31508001EF013480078401C124908700F480078097882 -S31508001F00884215D10E4802780B49491C2046FEF72F -S31508001F1097FC002007490870012010BDFFF7E2FE74 -S31508001F20064909686431884202D9002001490870C7 -S31508001F300020F2E741000020280D00204400002080 -S31508001F404000002010B504460A48008800F08000CA -S31508001F5008B9002010BD0748001D048001E0FEF7FF -S31508001F606EFC0448008800F080000028F7D00120A5 -S31508001F70F0E70000004400402DE9F04107460C4612 -S31508001F80402C03DD8D2110A0FEF7E8F92046FFF767 -S31508001F90D9FF0646012E03D091210BA0FEF7DEF9E4 -S31508001FA000250DE0FEF74BFC785DFFF7CBFF0646F4 -S31508001FB0012E03D09A2104A0FEF7D0F9681C85B239 -S31508001FC0A542EFDBBDE8F0812E2E5C2E2E5C2E2E70 -S31508001FD05C2E2E5C536F757263655C41524D434DA2 -S31508001FE0335F53544D33325C756172742E6300004F -S31508001FF010B50446FF200949C870084A6168906C04 -S31508002000D21D00F077F9054908710021034841718E -S31508002010817108200149A1F8440010BDD4080020A8 -S3150800202010B5044600BFFEF7FDFC18B9102000F0F5 -S315080020301DFA10BD00F014FA012014490870FF209B -S31508002040C870002111480171007940F010010F484D -S3150800205001710021417140790C494871FEF776FB00 -S31508002060C1B20A488171FEF789FBC1B20748C1713E -S31508002070FEF784FB01120548017201214172817243 -S3150800208008200249A1F8440000BFD2E7D40800207E -S3150800209010B5044600BF00200549087000F0E0F9B5 -S315080020A0FF200349C8700120A1F8440010BD0000B4 -S315080020B0D408002000BFFF21084AD170084991645E -S315080020C0002206490A714A718A710722C1F8072057 -S315080020D00821024AA2F8441070470000D4080020DC -S315080020E0C44C000800BFFF21074AD17000220649E8 -S315080020F00A714A784A7100228A71CA710A720621DF -S31508002100014AA2F844107047D408002010B50446C6 -S31508002110FEF71CFB801E6178884203DA222000F055 -S31508002120A5F910BDFF201049C8700120A1F8440088 -S31508002130607830B9FFF73CFC10B9312000F096F909 -S31508002140EFE76178084A906CA21CFFF74EFC18B9B5 -S31508002150312000F08BF9E4E70348806C6178084485 -S315080021600149886400BFDCE7D408002010B504469E -S31508002170084A6168906CFFF724FC18B9312000F012 -S3150800218075F910BDFF200349C8700120A1F8440065 -S3150800219000BFF6E7D408002070B50446FEF7D6FA65 -S315080021A0451E0D49621C886C2946FFF71EFC18B9A6 -S315080021B0312000F05BF970BDFF200749C870FEF7B3 -S315080021C0C5FA401E0449896C0844034988640120FD -S315080021D0A1F8440000BFEEE7D408002010B5044675 -S315080021E0312000F043F910BD10B5044600BFFEF7D4 -S315080021F03DFBFF200249C8700120A1F8440010BD2C -S31508002200D408002010B5044600BFFF200949C8704D -S315080022100021084801714171FEF798FAC1B20548D4 -S3150800222081710021C1710172417207200149A1F82B -S31508002230440010BDD4080020FF21044AD17041682B -S3150800224091640121A2F8441070470000D4080020C8 -S3150800225010B50446FEF77AFA401E6178884203DA1A -S31508002260222000F003F910BD0B4960688864627883 -S315080022700846816C001DFEF7E3FAFF200649C87080 -S315080022800846806C61780844034988646078401C75 -S31508002290A1F8440000BFE6E7D408002010B50446BC -S315080022A000BF002000F0E2F810BD000010B504469B -S315080022B0FEF74CFA401E6178884203DA222000F0C5 -S315080022C0D5F810BD62780A48816C001DFEF7B8FA89 -S315080022D0FF200749C8700846806C6178084404499D -S315080022E088646078401CA1F8440000BFE9E7000054 -S315080022F0D408002030B50346002403E018782044AB -S31508002300C4B25B1C081EA1F10101F7D114600120BB -S3150800231030BD0000002005490870886481F8430034 -S31508002320A1F844008870487070470000D40800205F -S315080023300348007808B9002070470120FCE7000030 -S31508002340D408002010B504462078FF2803D120467B -S31508002350FFF766FE60E03D48007801285BD12078EB -S31508002360F4281FD010DCD0283CD006DCC92835D08C -S31508002370CC2847D0CF2849D140E0D1283AD0D22816 -S3150800238034D0F32842D115E0F5380A283ED2DFE8E2 -S3150800239000F0050D3D3D3D153D191D212046FFF771 -S315080023A085FF37E02046FFF753FF33E02046FFF767 -S315080023B043FF2FE02046FFF71BFE2BE02046FFF7E2 -S315080023C079FE27E02046FFF769FF23E02046FFF75E -S315080023D089FE1FE02046FFF75BFE1BE02046FFF75D -S315080023E0DBFE17E02046FFF791FE13E02046FFF7D5 -S315080023F009FF0FE02046FFF7B9FE0BE02046FFF77E -S31508002400F3FE07E02046FFF7E9FE03E0202000F090 -S315080024102DF800BF00E010BD0C4890F843000128D5 -S3150800242002D1102000F022F80848B0F9440000282C -S3150800243009DD0120054981F843000846B0F9441032 -S31508002440C01C00F01FF800BFE5E70000D408002014 -S315080024500020024981F8430070470000D408002094 -S315080024600020014948707047D4080020FE21044A1C -S31508002470D170114608710221A2F844107047000075 -S31508002480D408002070B505460C46A1B22846FEF7CA -S31508002490BDF970BD70B504460D46607801232A461D -S315080024A004F1340101F054F808B1032070BD94F822 -S315080024B0321294F8330241EA00204AF6552188423E -S315080024C001D00220F2E794F86D00010694F86C003A -S315080024D041EA004194F86B0041EA002094F86A103A -S315080024E0084320F07F400E49884201D10020DDE7ED -S315080024F094F88900010694F8880041EA004194F8A6 -S31508002500870041EA002094F88610084320F07F40AF -S315080025100349884201D10020C8E70120C6E7000028 -S3150800252046415400024600E0521C107810B110785B -S315080025308842F9D1107870472DE9F74F88B0089886 -S3150800254000680190019800783038079007980928A4 -S315080025500AD8019840783A2806D10198801C01903B -S3150800256008990198086001E0002007900021099861 -S315080025700160079818B10B200BB0BDE8F08FD14960 -S31508002580079851F820400CB90C20F5E70998046023 -S31508002590207878B1607801F025F8804608F00100C7 -S315080025A040B90A9820B108F0040008B10A20E3E708 -S315080025B00020E1E70020207007986070607800F03E -S315080025C009FE804608F0010008B10320D4E70A98FE -S315080025D020B108F0040008B10A20CDE74FF0000941 -S315080025E049462046FFF756FF054600BF012D21D173 -S315080025F04FF0000BBBF1000F03D0ABF1010000F068 -S31508002600FF0B4FF4DF7000EB0B1104F134000F18C9 -S31508002610387978B1F87A0106B87A41EA0041787AC9 -S3150800262041EA0020397A40EA010949462046FFF77F -S3150800263031FF0546032D01D101209DE70DB10D207F -S315080026409AE73F20015D94F8400041EA0020B0F582 -S31508002650007F01D00D208FE74A20015D94F84B00DA -S3150800266041EA002ABAF1000F0ED194F85B00010680 -S3150800267094F85A0041EA004194F8590041EA0020CA -S3150800268094F8581040EA010AC4F81CA04420065DD4 -S31508002690E670012E03D0022E01D00D206CE70AFB4E -S315080026A006FA4120005D0646A07016B1701E30403D -S315080026B008B10D2060E74520015D94F8460041EA1F -S315080026C000202081207A00F00F0008B10D2053E782 -S315080026D04720015D94F8480041EA002006900698D4 -S315080026E070B994F85700010694F8560041EA00417B -S315080026F094F8550041EA002094F8541008430690CF -S315080027004220015D94F8430041EA002002900298B5 -S3150800271008B90D2030E702985044218900EB1110C2 -S315080027200590DDE90501814201D20D2024E7DDE9A6 -S315080027300510401AA178B0FBF1F00490049808B986 -S315080027400D2019E7012540F6F6710498884200D352 -S3150800275002254FF6F6710498884200D3032504989B -S31508002760801CA061C4F820900298484460620598CD -S315080027704844E062032D16D1208908B10D20FBE6F6 -S3150800278094F86300010694F8620041EA004194F85F -S31508002790610041EA002094F860100843A062A0692D -S315080027A08000039014E0208908B90D20E4E6606AE9 -S315080027B05044A062022D02D1A069400007E0207EA5 -S315080027C000F00100A16901EB410100EB5100039003 -S315080027D0E169039800F2FF10B1EB502F01D20D20EA -S315080027E0CAE64FF0FF3020610020E060032D5CD17F -S315080027F0607194F8641094F8650041EA0020484432 -S3150800280060616078012304F13401626900F0A0FE7A -S31508002810F0BB94F8321294F8330241EA00204AF6E3 -S315080028205521884241D13720005D01063620005DDA -S3150800283041EA00413520005D41EA002094F8341051 -S3150800284008432149884230D194F81B02010694F8BE -S315080028501A0241EA004194F8190241EA002094F864 -S3150800286018120843194988421FD194F82302010611 -S3150800287094F8220241EA004194F8210241EA002034 -S3150800288094F820120843E06094F81F02010600E05D -S315080028900BE094F81E0241EA004194F81D0241EA51 -S315080028A0002094F81C120843206125700848008807 -S315080028B0401C80B206490880E08000202063207111 -S315080028C000BF59E6480000205252614172724161C8 -S315080028D04C0000200246891E9069801E884201D855 -S315080028E0002070479378D06A01FB0300F9E70000DF -S315080028F02DE9F04705460C46207820F04000401E9A -S3150800290000EB800101EBC00600274FF0010800BF6D -S315080029101A48C05D205C1949C95D2144497840EAD6 -S315080029200129B8F1000F10D0484601F0ABFB8046EC -S31508002930FF2E07D23146761C35F8110001F0A2FBAE -S31508002940404508D00020BDE8F0874FF6FF70814566 -S3150800295001D00020F7E7781C07460D28D8D3207841 -S3150800296000F0400038B1B8F1000F04D035F8160071 -S3150800297008B10020E7E70120E5E700000C4E000853 -S315080029802DE9F04704468946B9F1000F06D1E768F4 -S3150800299017B1A069B84211D801270FE04946204669 -S315080029A001F069FC0646022E02D20120BDE8F08736 -S315080029B0A069B04201D93046F8E74F463D4600BF08 -S315080029C06D1CA069A84204D80225BD4201D9002081 -S315080029D0ECE72946204601F04EFC064606B909E012 -S315080029E0701C08B1012E01D13046DFE7BD42E7D1A0 -S315080029F00020DBE700BF6FF070422946204601F051 -S31508002A004BFE8046B8F1000F08D1B9F1000F05D08A -S31508002A102A464946204601F03FFE8046B8F1000F97 -S31508002A2009D1E5602069401C68B12069401E206113 -S31508002A300120607107E0B8F1010F02D14FF0FF30B5 -S31508002A4000E0012005462846B0E700002DE9F34FCF -S31508002A5083B082460498D0F800B001E00BF1010B70 -S31508002A609BF800002F28F9D09BF800005C28F5D0C9 -S31508002A70DAF81C9000252E4600BF3046761C1BF857 -S31508002A800040202C03DB2F2C01D05C2C00D11CE04D -S31508002A90FF2D03D3062005B0BDE8F08FE4B201216F -S31508002AA0204601F0C9FA04460CB90620F3E7802C43 -S31508002AB006DA21466BA0FFF735FD08B10620EAE7DE -S31508002AC028466D1C29F81040D7E700BF0BEB060116 -S31508002AD004980160202C01DA042000E00020074653 -S31508002AE008E0681E39F81040202C02D02E2C00D0A1 -S31508002AF002E06D1E002DF4D100BF0DB90620CAE70D -S31508002B00002029F815000B222021DAF8180001F018 -S31508002B10F5FC002600E0761C39F816002028FAD0C5 -S31508002B2039F816002E28F6D00EB147F0030700E054 -S31508002B306D1E25B1681E39F810002E28F8D14FF001 -S31508002B400008CDF808800820019000BF3046761CA2 -S31508002B5039F8104004B955E0202C03D02E2C04D1A6 -S31508002B60AE4202D047F00307F0E7DDE901108842DC -S31508002B7001D2AE4216D101980B2802D147F00307BD -S31508002B8040E0AE4201D047F00307AE4200D939E033 -S31508002B902E46082002900B2001904FEA88604FEAE3 -S31508002BA01068D3E7802C0BDB0021204601F044FA9D -S31508002BB004461CB1A4F180002D490C5C47F00207BD -S31508002BC000BF24B121462BA0FFF7ACFC18B15F2447 -S31508002BD047F003070FE0412C04DB5A2C02DC48F0CF -S31508002BE0020808E0612C06DB7A2C04DC48F00108B0 -S31508002BF0A4F1200084B2DAF818300298411C029138 -S31508002C001C54A3E700BFDAF818000078E52803D1BA -S31508002C100520DAF8181008700198082803D14FEA39 -S31508002C2088604FEA106808F00C000C2803D008F0FA -S31508002C300300032801D147F0020707F0020058B93C -S31508002C4008F00300012801D147F0100708F00C002E -S31508002C50042801D147F00807DAF81800C7720020DF -S31508002C6019E70000222A3A3C3E3F7C7F000000001C -S31508002C708C4D00082B2C3B3D5B5D000010B54FF4D6 -S31508002C8080510348FEF728FEFF2001F0B1FF10BD72 -S31508002C90000C01402DE9F04104460E46002120466D -S31508002CA000F049FA0546EDB9002700BF21692068FA -S31508002CB001F02EFC054605B113E060690078E528A9 -S31508002CC002D06069007820B9781C0746B04201D165 -S31508002CD007E000270121204600F076F80546002D7A -S31508002CE0E4D000BF2846BDE8F0812DE9F047044648 -S31508002CF00021204600F01FFA074617B13846BDE8FE -S31508002D00F0874FF0FF09CA4600BF2169206801F025 -S31508002D10FFFB074607B154E065692E780EB904270C -S31508002D204FE0E87A00F03F08E52E05D008F00800E5 -S31508002D3028B1B8F10F0F02D04FF0FF093AE0B8F109 -S31508002D400F0F1CD1E069A0B306F0400030B195F82A -S31508002D500DA026F04006B146E08820844E450AD1EB -S31508002D60687B504507D12946E069FFF7C1FD10B1D8 -S31508002D70A9F1010000E0FF2000F0FF091AE0B9F10F -S31508002D80000F05D1284601F065FE504500D118E030 -S31508002D904FF0FF094FF6FF702084A069C07A00F053 -S31508002DA0010030B90B222846A16901F087FB00B95A -S31508002DB007E0FFE70021204600F006F80746002F47 -S31508002DC0A3D000BF38469AE72DE9F0410446884665 -S31508002DD000BFE088401C86B20EB1206910B90420F5 -S31508002DE0BDE8F08106F00F0000286DD12069401C6F -S31508002DF02061E06828B920680089B04264DC0420B4 -S31508002E00EEE720688078401E00EA161000285BD19D -S31508002E10E168206801F02FFA0546012D01D8022045 -S31508002E20DEE7681C08B90120DAE720688069A8424D -S31508002E3044D8B8F1000F01D10420D1E7E168206831 -S31508002E40FFF79EFD05460DB90720C9E7012D01D1FB -S31508002E500220C5E7681C08B90120C1E7206801F00F -S31508002E606DFE08B10120BBE7216801F134004FF47B -S31508002E700072002101F042FB29462068FFF72AFD6F -S31508002E802168086300270FE001202168087120687F -S31508002E9001F054FE08B10120A2E72068006B401C2F -S31508002EA021680863781CC7B220688078B842EBDCD2 -S31508002EB02068006BC01B2168086300BFE5602946CF -S31508002EC02068FFF707FD2061E6802068343006F0A9 -S31508002ED00F0100EB41106061002081E72DE9F05FEA -S31508002EE004468A464FF0FF09CB4604274EE021697F -S31508002EF0206801F00DFB074607B14AE06669357898 -S31508002F000DB9042745E0F07A00F03F08E52D09D011 -S31508002F102E2D07D0B8F1080F01D1012000E00020BE -S31508002F20504502D04FF0FF0929E0B8F10F0F1AD12A -S31508002F3005F0400030B196F80DB025F04005A946D9 -S31508002F40E08820844D450AD1707B584507D1314623 -S31508002F50E06901F0F7FA10B1A9F1010000E0FF20DD -S31508002F6000F0FF090BE0B9F1000F04D1304601F07B -S31508002F7071FD584502D04FF6FF70208409E0002104 -S31508002F802046FFF721FF074607B102E0206900281F -S31508002F90ADD100BF0FB1002020613846BDE8F09FD3 -S31508002FA02DE9FE4F0446D4F81880D4F81C900C225C -S31508002FB04146684601F095FA00BF9DF80B0000F0FF -S31508002FC0010028B3002088F80B00E06101260DE017 -S31508002FD033464A466946404601F0F9F82046FFF767 -S31508002FE084FE054605B103E0701C86B2642EEFDB4D -S31508002FF000BF642E02D10720BDE8FE8F042D01D044 -S315080030002846F9E79DF80B0088F80B00C4F81C90D1 -S315080030109DF80B0000F0020070B1002601E0701C5C -S3150800302086B239F816000028F9D106F119000D21E3 -S3150800303090FBF1F087B200E0012739462046FFF7FA -S3150800304029FE05465DBB781E80B2071E27D0E0889C -S31508003050C01B81B2204600F06EF80546FDB9A0698E -S3150800306001F0F8FC824600BF2169206801F050FA99 -S31508003070054605B112E0FAB253466169E06901F006 -S315080030801DF801202168087100212046FFF79CFEE3 -S3150800309005461DB9781E80B2071EE5D100BFC5B921 -S315080030A02169206801F034FA054695B920220021E5 -S315080030B0606901F023FA0B22D4E9050101F011FA3F -S315080030C0A069C07A00F018006169087301202168B8 -S315080030D00871284690E770B50446E688208C4FF6B6 -S315080030E0FF72904201D1304600E0208C014620460E -S315080030F000F021F80546E5B900BF2169206801F00E -S3150800310007FA054605B110E0E52061690870012057 -S3150800311021680871E088B04200DB06E000212046FD -S31508003120FFF752FE0546002DE7D000BF042D00D15B -S315080031300225284670BD2DE9F04104460E46E68074 -S31508003140A568012D03D020688069A84202D802200C -S31508003150BDE8F0812DB920680078032801D12068E0 -S31508003160856A65B9E56020680089B04201DC0220FD -S31508003170EEE72068806A00EB1610206120E02068E0 -S315080031808078070112E02946206801F074F80546A0 -S31508003190681C08B90120DBE7022D03D32068806983 -S315080031A0A84201D80220D3E7F01B86B2BE42EADA6B -S315080031B0E56029462068FFF78DFB00EB16102061B5 -S315080031C02068343006F00F0100EB411060610020E2 -S315080031D0BEE700002DE9F8438046B8F1000F02D09B -S315080031E00120BDE8F8834948007800F0020010B1D4 -S315080031F046480078F5E701F0E9F94FF4805144486C -S31508003200FEF768FB00270021084601F05BFB012852 -S3150800321068D1FEF767FD00F57A754FF4D571082079 -S3150800322001F050FB01283CD1002406E0FF2001F004 -S31508003230DFFC0DF80400601CC4B2042CF6DB9DF814 -S31508003240020001284ED19DF80300AA284AD100BFE2 -S31508003250FEF748FDA84206D24FF08041A92001F0AA -S3150800326031FB0028F4D1FEF73DFDA8423AD20021F1 -S315080032703A2001F027FBA8BB002406E0FF2001F056 -S31508003280B7FC0DF80400601CC4B2042CF6DB9DF8EC -S31508003290000000F0400008B10C2000E004200746BA -S315080032A020E00021A92001F00DFB012802DC0227FD -S315080032B0A92601E00127012600BFFEF713FDA84253 -S315080032C005D20021304601F0FDFA0028F5D1FEF7B7 -S315080032D009FDA84205D24FF40071102001F0F2FA58 -S315080032E000B100270B480760FFF7C8FC47B107483D -S315080032F0007820F001000549087001F071FB01E033 -S3150800330001F05AF9014800786BE700001400002024 -S31508003310000C0140180000202DE9FF4780460F46A3 -S315080033201446A246B8F1000F03D0042004B0BDE845 -S31508003330F0878548007800F0010008B10320F5E71A -S315080033404FF001090F2F7AD2DFE807F0080EF6557D -S31508003350F6F6F6F6F6F6AEB5C2CFE10001F09EFA3D -S3150800336008B14FF00009EAE00021092001F0AAFAA5 -S31508003370E8BB1021684601F02AFAC0B39DF80000A0 -S315080033800121B1EBA01F0FD19DF809009DF8081087 -S3150800339000EB01209DF8071001F03F0100EB01400A -S315080033A0461CB002206021E09DF8050000F00F00E1 -S315080033B09DF80A1000EBD1109DF8091001F00301E1 -S315080033C000EB4100851C9DF8080080119DF8071048 -S315080033D000EB81009DF8061001F0030100EB812047 -S315080033E0461CA5F1090006FA00F0206000E001E09D -S315080033F04FF00009A3E05548007800F00400F8B142 -S3150800340000218D2001F05EFA00284CD1FF2001F042 -S31508003410EFFB1021684601F0DAF988B3302504E09D -S31508003420FF2001F0E5FB681EC5B2002DF8D19DF816 -S315080034300A000111102088402060A94633E07BE08D -S315080034400021092001F03EFAD0B91021684601F0A2 -S31508003450BEF9A8B13D48007800F0020088B19DF891 -S315080034600A008006400E9DF80B1000EBD110401C98 -S315080034709DF80D100122C2EBA1118840206010E0D2 -S3150800348011E09DF80B008007C00E9DF80B1000EBAD -S315080034905110401C9DF80A10C1F38401491C484389 -S315080034A020604FF000094AE0284800788AF80000B2 -S315080034B04FF0000943E00021092001F003FA30B972 -S315080034C01021204601F083F908B14FF0000936E0D3 -S315080034D000210A2001F0F6F930B91021204601F042 -S315080034E076F908B14FF0000929E000213A2001F0E9 -S315080034F0E9F958B9002505E0FF2001F079FB605588 -S31508003500681CC5B2042DF7DB4FF0000917E00F4819 -S31508003510007800F0040070B100218D2001F0D2F986 -S3150800352048B9FF2001F064FB4021204601F04FF91D -S3150800353008B14FF0000902E04FF0040900BF00BFD0 -S31508003540FFF79CFB4846F1E614000020180000200F -S315080035502DE9F04107460D4616461C4607B914B92B -S315080035600420BDE8F0811D48007800F0010008B18C -S315080035700320F6E71A48007800F0080000B976023A -S31508003580012C0BD13146112001F09CF9F0B96102EA -S31508003590284601F01CF9C8B1002417E0314612206C -S315080035A001F090F990B900BF4FF40071284601F078 -S315080035B00EF900B905E005F50075601EC0B2041ED7 -S315080035C0F2D100BF00210C2001F07CF9FFF756FB71 -S315080035D00CB10120C5E70020C3E700001400002055 -S315080035E018000020014609B10120704701480078FB -S315080035F0FBE70000140000202DE9F04107460D46C0 -S3150800360016461C4607B914B90420BDE8F0812548BA -S31508003610007800F0010008B10320F6E72148007899 -S3150800362000F0040008B10220EFE71F48007800F018 -S31508003630080000B97602012C0BD13146182001F09A -S3150800364041F940BBFE21284601F0E6FA18B30024EA -S3150800365021E01548007800F0060018B121469720A9 -S3150800366001F030F93146192001F02CF998B900BF5C -S31508003670FC21284601F0D0FA00B905E005F50075E9 -S31508003680601EC0B2041EF3D100BFFD21002001F068 -S31508003690C3FA00B90124FFF7F1FA0CB10120B4E727 -S315080036A00020B2E7140000201800002070B5044678 -S315080036B0204600F009FB05460DB900202060284683 -S315080036C070BD2DE9FC4707468846914600253E46CB -S315080036D015E06B46012201A9484600F0EDF900986D -S315080036E0012800D00FE09DF804400D2C00D106E01B -S315080036F006F8014B6D1C0A2C00D104E000BFA8F1A6 -S315080037000100A842E5DC00BF0020307015B138463C -S31508003710BDE8FC870020FBE72DE9F04704460E4686 -S31508003720204601F034FA8246BAF1000F02D050461C -S31508003730BDE8F087A07900F0800008B10220F7E71D -S31508003740E068B04204D2A07900F0020000B9E66849 -S31508003750D4F808904FF00008C4F80880002E77D0F7 -S31508003760206880784702B9F1000F11D0701EB0FBAF -S31508003770F7F1A9F10100B0FBF7F0814208D3A9F1EE -S315080037800100791E8843A060A068361A656918E0AA -S315080037902569ADB900212068FFF7F2F80546012D25 -S315080037A005D1A07940F08000A0710220C0E7681C0E -S315080037B028B9A07940F08000A0710120B8E72561FA -S315080037C06561002D44D029E0A07900F0020038B1E7 -S315080037D029462068FFF7D4F8054635B93E461FE066 -S315080037E02946206800F047FD0546681C28B9A079D7 -S315080037F040F08000A07101209AE7012D03D92068C6 -S315080038008069A84205D8A07940F08000A0710220FE -S315080038108EE76561A0683844A060F61BBE42D3D81F -S3150800382000BFA0683044A060C6F3080068B1294606 -S315080038302068FFF74FF88046B8F1000F06D1A07947 -S3150800384040F08000A071022072E701E008EB5628DC -S315080038502089C0F3080050B3A069404527D0A07955 -S3150800386000F0400090B121684878012304F1240152 -S31508003870A269FFF7C1FE28B1A07940F08000A071C7 -S31508003880012055E7A07920F04000A071216848780A -S315080038900123424604F12401FFF75AFE28B1A07914 -S315080038A040F08000A071012042E7C4F81880D4E9EE -S315080038B00201884205D9A068E060A07940F020009E -S315080038C0A071504634E700000246012A01DB0B20AE -S315080038D07047074850F822300BB10020187009B11C -S315080038E000200870024840F822100020F0E7000087 -S315080038F0480000202DE9F7438CB0054616461DB949 -S3150800390009200FB0BDE8F0830020286006F01F06E6 -S3150800391026F0010203A90DA8FEF70EFE0746002FA2 -S315080039207ED1CDF824D04C480A9003A80D9900F012 -S3150800393005FC0746089C0FB904B9062706F01C00C3 -S31508003940002851D04FB1042F03D103A8FFF728FB55 -S31508003950074646F00806089C09E0E07A00F01100E0 -S3150800396008B1072703E006F0040000B10827002F76 -S3150800397039D106F00800002835D000F0EFFC804663 -S3150800398084F80E804FEA1821E1734FEA1841217432 -S315080039904FEA186161740020E07220770021617790 -S315080039A0A177E1772146039800F070FD8146002152 -S315080039B0204601F047F8012003990871B9F1000F74 -S315080039C011D00398D0F830804946039800F032FFAA -S315080039D0074647B9A9F101000399C860414603980B -S315080039E000F096FD07460EE06FB9E07A00F0100089 -S315080039F008B1042707E006F0020020B1E07A00F0DB -S31508003A00010000B1072747B906F0080008B146F0DB -S31508003A1020060398006BE8612C620FB9AE7100E0CE -S31508003A2017E02146039800F031FD2861E07F010682 -S31508003A30A07F41EA0041607F41EA0020217F0843D8 -S31508003A40E8600020A860A861039828600398C088E9 -S31508003A50A880384655E700006A0D00207CB5044664 -S31508003A600E460A2C03D131460D20FFF7F7FF8DF8D5 -S31508003A700040012501AB2A466946304600F0D6F9D2 -S31508003A800198A84200D17CBD4FF0FF30FBE770B526 -S31508003A9004460E4600250AE020783146FFF7DEFF89 -S31508003AA0401C10B94FF0FF3070BD641C6D1C2078A7 -S31508003AB00028F1D12846F7E72DE9FF4F83B00446E1 -S31508003AC015469A46DDF810B00020CAF800002046D0 -S31508003AD001F05DF80290029818B1029807B0BDE8A7 -S31508003AE0F08FA07900F0800008B10220F6E7A079EF -S31508003AF000F0010008B90720F0E7D4E90210401ADF -S31508003B0000900098854200D9009DB5E02089C0F351 -S31508003B10080000287ED120688078401EA16800EA47 -S31508003B20512000F0FF09B9F1000F1DD1A06810B9A6 -S31508003B302069019004E06169206800F09CFB01900F -S31508003B400198022805D2A07940F08000A0710220D1 -S31508003B50C4E70198401C28B9A07940F08000A071FC -S31508003B600120BBE70198606161692068FEF7B2FE33 -S31508003B7006462EB9A07940F08000A0710220ADE774 -S31508003B804E444FEA5528B8F1000F2DD009EB08002E -S31508003B9021688978884203D920688078A0EB0908CB -S31508003BA008F0FF032168487832465946FFF7D0FCEB -S31508003BB028B1A07940F08000A07101208EE7A07995 -S31508003BC000F0400068B1A069801B404509D2A16990 -S31508003BD0891B0BEB41204FF4007204F1240100F01D -S31508003BE080FC4FEA48273DE0A069B04226D0A0797C -S31508003BF000F0400098B121684878012304F12401B7 -S31508003C00A269FFF7F9FC30B1A07940F08000A071F5 -S31508003C10012063E713E0A07920F04000A071216835 -S31508003C2048780123324604F12401FFF791FC28B1B4 -S31508003C30A07940F08000A07101204FE7A661208995 -S31508003C40C0F30800C0F50077AF4200D92F46208997 -S31508003C50C0F3080204F1240011183A46584600F049 -S31508003C6040FC00BFBB44A0683844A060DAF80000F6 -S31508003C703844CAF80000ED1B002D7FF447AF00203A -S31508003C802CE7000033B58DB00D46002204A90DA817 -S31508003C90FEF752FC04468CB901A80A9009480B9015 -S31508003CA004A80D9900F04AFA04463CB9099820B1CF -S31508003CB0294604A800F056FB00E0062420460FB06B -S31508003CC030BD00006A0D00202DE9F041044620466B -S31508003CD000F05DFF0746002F4CD1A07900F02000C8 -S31508003CE0002847D0A07900F0400078B121684878CC -S31508003CF0012304F12401A269FFF77EFC10B101201B -S31508003D00BDE8F081A07920F04000A071E169206843 -S31508003D1000F0FEFB0746002F2CD1256AE87A40F012 -S31508003D202000E872207B2877A089010A6977E06875 -S31508003D30010CA977E068010EE9772846216900F0A9 -S31508003D4081FE00F00BFB0646AE75310AE975310CAB -S31508003D502976310E69760020A8740021E974A079C5 -S31508003D6020F02000A071012021680871206800F069 -S31508003D7081FE07463846C3E771B595B001220CA9FE -S31508003D8015A8FEF7D9FB0446002C49D1CDF848D032 -S31508003D90254813900CA8159900F0D0F9044600BFE1 -S31508003DA0002C3DD1119E0EB9062404E0F07A00F0ED -S31508003DB0010000B1072431460C9800F067FB054660 -S31508003DC0ECB9F07A00F01000C8B1022D01D2022435 -S31508003DD015E024220CA903A800F083FB059502210F -S31508003DE003A8FFF7A8F904464CB9002103A8FFF772 -S31508003DF075F8044604B90724042C00D100247CB9BC -S31508003E000CA8FFF768F9044654B925B129460C9859 -S31508003E1000F010FD04461CB90C9800F02BFE044671 -S31508003E20204616B070BD00006A0D00202DE9FF4F30 -S31508003E3083B0044615469B46049801900020CBF8AB -S31508003E400000204600F0A3FE0290029818B10298DE -S31508003E5007B0BDE8F08FA07900F0800008B1022015 -S31508003E60F6E7A07900F0020008B90720F0E7E06855 -S31508003E702844E168884200D20025CDE02089C0F3B5 -S31508003E800800002877D120688078401EA16800EADB -S31508003E90512000F0FF0ABAF1000F2AD1A06858B9DC -S31508003EA0D4F81080B8F1000F0BD100212068FEF776 -S31508003EB067FD8046206104E061692068FEF760FDC1 -S31508003EC08046B8F1000F00D1A9E0B8F1010F05D17D -S31508003ED0A07940F08000A0710220B9E708F101003E -S31508003EE028B9A07940F08000A0710120B0E7C4F895 -S31508003EF01480A07900F0400090B121684878012329 -S31508003F0004F12401A269FFF777FB28B1A07940F0F4 -S31508003F108000A07101209BE7A07920F04000A071E5 -S31508003F2061692068FEF7D6FC06462EB9A07940F0EE -S31508003F308000A07102208BE756444FEA5529B9F153 -S31508003F40000F2FD00AEB090021688978884203D927 -S31508003F5020688078A0EB0A0909F0FF0321684878F1 -S31508003F6032460199FFF748FB30B1A07940F080004E -S31508003F70A07101206CE72CE0A069801B48450ED291 -S31508003F80A069801B019A02EB40214FF4007204F1EC -S31508003F90240000F0A6FAA07920F04000A0714FEAAC -S31508003FA049272DE0A069B04212D0D4E9020188421F -S31508003FB00ED2216848780123324604F12401FFF71E -S31508003FC0C7FA28B1A07940F08000A07101203FE728 -S31508003FD0A6612089C0F30800C0F50077AF4200D972 -S31508003FE02F462189C1F3080204F1240150183A46E4 -S31508003FF0019900F076FAA07940F04000A07100BF60 -S31508004000019838440190A0683844A060DBF80000A5 -S315080040103844CBF80000ED1B002D7FF42FAF00BF0E -S31508004020D4E90201884201D9A068E060A07940F08D -S315080040302000A07100200BE710B50246802A01DA9D -S3150800404010461BE051B1FF2A01DD002304E0A2F16E -S3150800405080030B4C34F8133018460FE0002007E0B5 -S31508004060074B33F81030934200D103E0431C98B253 -S315080040708028F5DB00BF00F18003D8B210BD000030 -S315080040801A4E00080246002100E0491C094830F88B -S31508004090110020B1074830F811009042F5D10548C3 -S315080040A030F8110018B1044830F81100704710466E -S315080040B0FCE700001A4F0008FA500008F0B504465D -S315080040C01D464D730F27CF7200270F738F76BC4698 -S315080040D081F81BC0571E07EB870C0CEBC706002799 -S315080040E038463B4600BF4FF6FF77B84203D03746FF -S315080040F0761C34F81700DFF840C01CF803C001F836 -S315080041000C000712DFF830C01CF803C08C448CF88A -S31508004110017008B94FF6FF705F1C3B460D2FE2D3BE -S315080041204FF6FF77B84202D034F816700FB942F04E -S3150800413040020A70F0BD00000C4E00082DE9F3415C -S315080041400446019800782F2803D0019800785C2847 -S3150800415002D10198401C01900020A06001980078C7 -S31508004160202807D200212046FEF7E5FF0546002055 -S31508004170606129E000BF01A92046FEF767FC0546F5 -S3150800418005B120E02046FEF7B0FD0546A069C67ACF -S3150800419045B1042D00D016E000BF06F0040000B9B2 -S315080041A0052510E006F0040000B10CE06769F87A0E -S315080041B000F0100008B9052505E03946206800F02A -S315080041C065F9A060D7E700BF2846BDE8FC812DE960 -S315080041D0FC4780468A4617461C460B2251464046EF -S315080041E000F07FF9052C0ADD00BF601000EBC43132 -S315080041F037F8022B881884B238880028F5D10725A5 -S3150800420000BF2046E11704EB11710911A4EB011157 -S31508004210303101F0FF09B9F1390F03DD09F1070063 -S3150800422000F0FF0928466D1E0DF800902046E1179C -S3150800423004EB1171C1F30F14002CE2D17E200DF8A6 -S315080042400500002600E0761CAE4203D218F80600E8 -S315080042502028F8D100BF082D04D228466D1C1DF869 -S31508004260000000E020203146761C08F80100082EE0 -S31508004270F1D3BDE8FC872DE9F04105460C46022C32 -S3150800428002D3A869A04202D80120BDE8F0812878A7 -S31508004290012804D002282CD003285AD13DE027460D -S315080042A007EB5707686A00EB5721284600F030F9F4 -S315080042B000B14EE0C7F3080105F1340010F801809B -S315080042C07F1C686A00EB5721284600F021F900B1E7 -S315080042D03FE0C7F3080105F13400405C48EA0028CE -S315080042E004F0010010B14FEA1810CEE7C8F30B002E -S315080042F0CBE7686A00EB1421284600F009F900B1FB -S3150800430027E040F2FF1000EA440105F134000E18D8 -S315080043103078717840EA0120B7E7686A00EBD41173 -S31508004320284600F0F5F800B113E040F2FF1000EA65 -S31508004330840105F134000E18F0780006B17840EAD9 -S315080043400140717840EA01203178084320F0704036 -S315080043509BE700BF4FF0FF3097E700000048704723 -S315080043600000AA422DE9FC5F81460E4606F10908BF -S31508004370D9F81000002851D0D9F81440207B0190B4 -S31508004380002714E0E55D202D00D112E0052D00D1AF -S31508004390E525019800F0080030B1412D04DB5A2DBF -S315080043A002DC05F12000C5B208F8015B7F1C082F66 -S315080043B0E8D300BF207A202819D02E2008F8010B50 -S315080043C0082711E0E55D202D00D10FE0019800F0E7 -S315080043D0100030B1412D04DB5A2D02DC05F1200016 -S315080043E0C5B208F8015B7F1C0B2FEBD300BFE07A40 -S315080043F03072E07F0106A07F41EA0041607F41EA12 -S315080044000020217F08433060217E607E41EA00203B -S31508004410B080A17DE07D41EA0020F080002088F888 -S315080044200000B06980B3F06970B3B06900900027E6 -S31508004430D9F8100020B3B9F820004FF6FF7188426A -S315080044401ED0D9F81CB015E000215046FFF7F4FD40 -S315080044508246BAF1000F01D1002710E000BFF069CB -S31508004460401EB84201D8002709E038467F1C00994B -S3150800447001F800A03BF8021BB1F1000AE4D100BF25 -S3150800448000210098C15500BFBDE8FC9F10B5024643 -S315080044908C7ECB7E44EA03201378032B05D10C7D52 -S315080044A04B7D44EA032340EA034010BDFDF716FAA4 -S315080044B0FBF796FF01E0FBF7A1FFFCE7F0B5034623 -S315080044C01C460D46002000BF161EA2F1010207D0A9 -S315080044D014F8017B15F801CBA7EB0C06301EF3D0B8 -S315080044E0F0BD70B503460C4603E014F8015B03F80B -S315080044F0015B151EA2F10102F7D170BD30B5034666 -S3150800450001E003F8011B141EA2F10102F9D130BD26 -S3150800451070B504460D46206BA84210D0204600F020 -S315080045200DFB08B1012070BD607801232A4604F10D -S315080045303401FFF70DF808B10120F4E725630020E0 -S31508004540F1E70000F0B50346087800F03F00401E8A -S3150800455000EB800707EBC0020025012600BF1548BF -S31508004560405D085C134F7F5D0F447F7840EA07245F -S315080045704EB1FF2A01D30020F0BD26461046521C34 -S3150800458023F8104005E04FF6FF70844201D0002062 -S31508004590F2E7681C05460D28E1D3087800F04000CC -S315080045A030B1FF2A01D30020E6E7002023F81200E5 -S315080045B00120E1E70C4E00080348007840F00100AE -S315080045C001490870704700001400002000B587B044 -S315080045D001210820FDF724FA01218803FDF710FAC6 -S315080045E04FF48050ADF8040010208DF80700032022 -S315080045F08DF8060001A92648FDF798F84FF4805172 -S315080046002348FDF769F94FF42040ADF8040003206C -S315080046108DF8060018208DF8070001A91C48FDF73B -S3150800462085F84FF48040ADF8040048208DF807005F -S3150800463001A91748FDF77AF80020ADF808004FF4ED -S315080046408270ADF80A000020ADF80C00ADF80E0037 -S31508004650ADF810004FF40070ADF812003820ADF830 -S3150800466014000020ADF816000720ADF8180002A9BE -S315080046700848FDF775FA00210648FDF74BFA0121AF -S315080046800448FDF753FA00F067F907B000BD0000CB -S31508004690000C0140003800402DE9F04705460E465B -S315080046A01746022E02D3A869B04202D84FF0020874 -S315080046B08AE02878012804D0022841D003287DD131 -S315080046C054E0B14609EB5909686A00EB59212846B6 -S315080046D0FFF71EFF8046B8F1000F00D071E0C9F35E -S315080046E0080105F134000C1806F0010020B1F9B2F2 -S315080046F0207861F31F1000E03846207009F101099F -S3150800470001202871686A00EB59212846FFF700FF47 -S315080047108046B8F1000F00D053E0C9F3080105F14F -S3150800472034000C1806F0010010B1C7F3071005E0B5 -S31508004730207800F0F000C7F303210843207040E01A -S31508004740686A00EB16212846FFF7E2FE8046B8F1B4 -S31508004750000F00D035E040F2FF1000EA460105F1EF -S3150800476034000C182770380A60702AE0686A00EB73 -S31508004770D6112846FFF7CCFE8046B8F1000F00D0C8 -S315080047801FE040F2FF1000EA860105F134000C181C -S31508004790E0780006A17840EA0140617840EA012005 -S315080047A02178084300F0704007432770380A607084 -S315080047B0380CA070380EE07003E0FFE74FF00208EF -S315080047C000BF00BF012028714046BDE8F0872DE9EB -S315080047D0F04105460E46FDF785FA00F1640700BF6D -S315080047E0FF2000F005FA0446FF2C03D1FDF77AFAFC -S315080047F0B842F5D3FE2C02D00020BDE8F08100BFF8 -S3150800480028466D1C00F00FF828466D1C00F00BF8C2 -S31508004810B01E061EF4D1FF2000F0EAF9FF2000F0D2 -S31508004820E7F90120E9E710B50446FF2000F0E0F9B2 -S31508004830207010BD2DE9F04104460E46022E02D323 -S31508004840A069B04201D8022725E000271FE03146BB -S315080048502046FFF710FD054605B91BE0012D01D1DD -S31508004860022717E0681C08B9012713E00022314621 -S315080048702046FFF711FF074607B10BE02069401CE9 -S3150800488020B12069401C2061012060712E46A06974 -S31508004890B042DCD800BF3846BDE8F08110B54FF409 -S315080048A080510748FDF716F8FF2000F0A1F900F03F -S315080048B089F908B1012010BDFEF7E0F90020FAE7F2 -S315080048C0000C01402DE9F04104460D4604F0800035 -S315080048D058B104F07F0400213720FFF7F3FF06469E -S315080048E0012E02DD3046BDE8F081FEF7C7F9FFF775 -S315080048F0D5FF08B9FF20F6E744F0400000F078F944 -S31508004900280E00F075F9C5F3074000F071F9C5F3F4 -S31508004910072000F06DF9E8B200F06AF9012704B93A -S315080049209527082C00D18727384600F061F90C2C0A -S3150800493002D1FF2000F05CF90A2700BFFF2000F033 -S3150800494057F9064606F0800018B1781EC0B2071E51 -S31508004950F4D13046C7E7000038B54FF480511E48F9 -S31508004960FCF7BAFF4FF40040ADF8000003208DF8BD -S31508004970020010208DF8030069461748FCF7D6FE9A -S315080049804FF400411448FCF7A7FF002412E000BFCB -S3150800499002211248FDF7D6F80028F9D0FF210F4862 -S315080049A0FDF7DCF800BF01210C48FDF7CBF800281D -S315080049B0F9D0641C0A2CEAD34FF40040ADF8000085 -S315080049C003208DF8020018208DF803006946024876 -S315080049D0FCF7ACFE38BD0000000C01400038004072 -S315080049E000B585B000211648FDF7A0F80020ADF8FF -S315080049F000004FF48270ADF802000020ADF8040004 -S31508004A00ADF80600ADF808004FF40070ADF80A00DE -S31508004A100820ADF80C000020ADF80E000720ADF810 -S31508004A20100069460648FDF79BF800210448FDF783 -S31508004A3071F801210248FDF779F805B000BD0000BC -S31508004A400038004081760B0AC3760A0C02750B0EF5 -S31508004A504375704730B5014600200B2200BF43104E -S31508004A6003EBC01411F8015B6319D8B2531E1A1E62 -S31508004A70F5D130BD70B50446204600F05FF805460E -S31508004A80002D59D1207803284FD1607900284CD0C1 -S31508004A90002020634FF40072002104F13400FFF770 -S31508004AA02DFD552184F83212AA2184F8331252209A -S31508004AB084F83400522135200155612136200155EC -S31508004AC0412137200155722184F8181284F81912E9 -S31508004AD0412184F81A12612184F81B12217C84F87A -S31508004AE01C12208A010A84F81D122069010C84F818 -S31508004AF01E122069010E84F81F12217B84F82012E9 -S31508004B00A089010A84F82112E068010C84F82212AF -S31508004B10E068010E84F823126078012304F1340159 -S31508004B206269FEF769FD002060716078002211460F -S31508004B30FEF7F2FB00B10125284670BD70B50446A4 -S31508004B40207910B3256B607801232A4604F13401D5 -S31508004B50FEF752FD08B1012070BD00202071606A81 -S31508004B60A84212D8E169606A0844A8420DD9E678D5 -S31508004B7009E0E0690544607801232A4604F1340116 -S31508004B80FEF73AFD761E022EF3D20020E4E770B552 -S31508004B9005462C464CB1206838B12068007820B10B -S31508004BA02068C088A188884201D0092070BD216884 -S31508004BB04878FEF717FD00F0010008B10320F5E775 -S31508004BC00020F3E770B5FDF78DF800F5FA7500BF1C -S31508004BD0FF2000F00DF80446FF2C03D0FDF782F8FD -S31508004BE0A842F5D3FF2C01D1012070BD0020FCE7B7 -S31508004BF010B5044621460748FCF7B0FF00BF01215F -S31508004C000448FCF79FFF0028F9D00248FCF7A3FFE9 -S31508004C10C0B210BD003800402DE9F04104460D46EB -S31508004C20FFF7D0FF10B90020BDE8F0812846FFF74E -S31508004C30DFFFFD2D1DD04FF4007700BF14F8010BE0 -S31508004C40FFF7D6FF14F8010BFFF7D2FFB81E071EB1 -S31508004C50F4D1FF20FFF7CCFFFF20FFF7C9FFFF20A5 -S31508004C60FFF7C6FF064606F01F00052801D00020FC -S31508004C70DAE70120D8E7000010B500290AD008783D -S31508004C80002807D005487844FBF7F2FA002801D037 -S31508004C90002010BD0248784410BD000076060000CA -S31508004CA06E0600002F64656D6F70726F675F6F6CBC -S31508004CB0696D65785F73746D3332703130332E7376 -S31508004CC0726563004F70656E424C54000502060219 -S31508004CD0060307030803090309040A040B040C0462 -S31508004CE00C050D050E050F050F0610061007100812 -S31508004CF00060000800200000030000000080000893 -S31508004D00002000000400000000A0000800200000A9 -S31508004D100500000000C00008002000000600000092 -S31508004D2000E000080020000007000000000001085D -S31508004D3000200000080000000020010800200000F4 -S31508004D400900000000400108002000000A000000D9 -S31508004D5000600108002000000B0000000080010828 -S31508004D60002000000C00000000A001080020000040 -S31508004D700D00000000C00108002000000E00000021 -S31508004D8000E00108002000000F000000809A904112 -S31508004D908E418F804545454949498E8F9092924F5D -S31508004DA0994F555559999A9B9C9D9E9F41494F5598 -S31508004DB0A5A5A6A7A8A9AAABAC21AEAFB0B1B2B3B8 -S31508004DC0B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C31D -S31508004DD0C4C5C6C7C8C9CACBCCCDCECFD0D1D2D30D -S31508004DE0D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3FD -S31508004DF0E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3ED -S31508004E00F4F5F6F7F8F9FAFBFCFDFEFF01030507D2 -S31508004E10090E10121416181C1E00C700FC00E90023 -S31508004E20E200E400E000E500E700EA00EB00E80045 -S31508004E30EF00EE00EC00C400C500C900E600C6009D -S31508004E40F400F600F200FB00F900FF00D600DC00D3 -S31508004E50A200A300A500A7209201E100ED00F3003F -S31508004E60FA00F100D100AA00BA00BF001023AC0076 -S31508004E70BD00BC00A100AB00BB009125922593257F -S31508004E8002252425612562255625552563255125A4 -S31508004E9057255D255C255B251025142534252C25ED -S31508004EA01C2500253C255E255F255A2554256925A0 -S31508004EB06625602550256C256725682564256525A2 -S31508004EC059255825522553256B256A2518250C255D -S31508004ED0882584258C2590258025B103DF0093033A -S31508004EE0C003A303C303B500C403A6039803A90319 -S31508004EF0B4031E22C603B50329226122B100652226 -S31508004F00642220232123F7004822B0001922B70083 -S31508004F101A227F20B200A025A0006100620063006B -S31508004F206400650066006700680069006A006B0037 -S31508004F306C006D006E006F007000710072007300E7 -S31508004F407400750076007700780079007A00A10071 -S31508004F50A200A300A500AC00AF00E000E100E2005B -S31508004F60E300E400E500E600E700E800E900EA00FF -S31508004F70EB00EC00ED00EE00EF00F000F100F200AF -S31508004F80F300F400F500F600F800F900FA00FB005B -S31508004F90FC00FD00FE00FF000101030105010701F9 -S31508004FA009010B010D010F0111011301150117016B -S31508004FB019011B011D011F012101230125012701DB -S31508004FC029012B012D012F0131013301350137014B -S31508004FD03A013C013E0140014201440146014801B3 -S31508004FE04B014D014F01510153015501570159011B -S31508004FF05B015D015F01610163016501670169018B -S315080050006B016D016F0171017301750177017A01F9 -S315080050107C017E019201B103B203B303B403B50365 -S31508005020B603B703B803B903BA03BB03BC03BD038E -S31508005030BE03BF03C003C103C303C403C503C6033A -S31508005040C703C803C903CA0330043104320433044E -S315080050503404350436043704380439043A043B0466 -S315080050603C043D043E043F04400441044204430416 -S315080050704404450446044704480449044A044B04C6 -S315080050804C044D044E044F04510452045304540472 -S31508005090550456045704580459045A045B045C041E -S315080050A05E045F04702171217221732174217521B8 -S315080050B076217721782179217A217B217C217D210E -S315080050C07E217F2141FF42FF43FF44FF45FF46FF04 -S315080050D047FF48FF49FF4AFF4BFF4CFF4DFF4EFF76 -S315080050E04FFF50FF51FF52FF53FF54FF55FF56FF26 -S315080050F057FF58FF59FF5AFF00004100420043007E -S315080051004400450046004700480049004A004B0055 -S315080051104C004D004E004F00500051005200530005 -S315080051205400550056005700580059005A002100EF -S31508005130E0FFE1FFE5FFE2FFE3FFC000C100C200B8 -S31508005140C300C400C500C600C700C800C900CA001D -S31508005150CB00CC00CD00CE00CF00D000D100D200CD -S31508005160D300D400D500D600D800D900DA00DB0079 -S31508005170DC00DD00DE007801000102010401060101 -S3150800518008010A010C010E01100112011401160191 -S3150800519018011A011C011E01200122012401260101 -S315080051A028012A012C012E01300132013401360171 -S315080051B039013B013D013F014101430145014701D9 -S315080051C04A014C014E015001520154015601580141 -S315080051D05A015C015E0160016201640166016801B1 -S315080051E06A016C016E017001720174017601790120 -S315080051F07B017D0191019103920393039403950327 -S3150800520096039703980399039A039B039C039D03AC -S315080052109E039F03A003A103A303A403A503A60358 -S31508005220A703A803A903AA0310041104120413046C -S315080052301404150416041704180419041A041B0484 -S315080052401C041D041E041F04200421042204230434 -S315080052502404250426042704280429042A042B04E4 -S315080052602C042D042E042F04010402040304040450 -S31508005270050406040704080409040A040B040C04BC -S315080052800E040F04602161216221632164216521D6 -S3150800529066216721682169216A216B216C216D21AC -S315080052A06E216F2121FF22FF23FF24FF25FF26FF02 -S315080052B027FF28FF29FF2AFF2BFF2CFF2DFF2EFF94 -S315080052C02FFF30FF31FF32FF33FF34FF35FF36FF44 -S315080052D037FF38FF39FF3AFF000000000C5400087A -S315080052E00000002050000000280100085C54000857 -S315080052F0500000208015000044010008100100003D -S3150800530043000000F8FFFFFF004040404040404097 -S31508005310404041414141414040404040404040407A -S31508005320404040404040404040050202020202021E -S31508005330020202020202020202202020202020206D -S315080053402020200202020202020290909090909081 -S31508005350101010101010101010101010101010103F -S3150800536010101010020202020202888888888888B3 -S31508005370080808080808080808080808080808089F -S3150800538008080808020202024000000000000000A7 -S3150800539000000000000000000000000000000000FF +S315080008A010B50E4890F82402012802D10B4802F030 +S315080008B007FF01F021FA00F1640404E001F01CFAD4 +S315080008C0A04200D905E04021054801F051FA002868 +S315080008D0F4D000BF034803F059FA10BD50000020B9 +S315080008E000440040B84C000810B50446044890F887 +S315080008F02402012802D1024802F0E2FE10BD0000DF +S315080009005000002010B50446114890F8240201282A +S315080009100CD10F49204603F0C4F8002806DA002057 +S315080009200B4981F82402084602F0CAFE0BE021783A +S31508000930084801F097FA00BF8021064801F018FA26 +S315080009400028F9D0641C20780028F0D110BD0000DA +S31508000950500000200044004010B50020064981F8E8 +S3150800096024020A2205A1044802F0CEFF18B9012084 +S31508000970014981F8240210BD500000202F626F6FD4 +S31508000980746C6F672E747874000000000048704716 +S31508000990B84C000810B5FFF719FF012801D100204F +S315080009A010BD0748007808B10020F9E700F02AF8DA +S315080009B0012802D102490870F2E70020F0E700009A +S315080009C03000002010B5002005490870054902F0DE +S315080009D085FF04461CB1772103A0FFF7BFFC10BDB5 +S315080009E030000020B80200202E2E5C2E2E5C2E2E03 +S315080009F05C2E2E5C536F757263655C66696C652E3A +S31508000A006300000000B589B0202101A8FFF7FDFBAF +S31508000A1001A9084803F040F948B9019838B19DF88A +S31508000A200C0000F0100010B9012009B000BD00202C +S31508000A30FBE70000B84C00080348007808B9012015 +S31508000A4070470020FCE700003000002070B504461F +S31508000A5004F00F0000F13005092C02DDE81DC5B2CF +S31508000A6003E02846FFF7C2FBC5B2284670BD70B53D +S31508000A7005460C462811FFF7E9FF207005F00F0020 +S31508000A80FFF7E4FF60700020A070204670BD2DE9D6 +S31508000A90F0410646002700251AE0705DFFF7A6FB21 +S31508000AA0C4B2302C05DB462C03DC392C04DD412C82 +S31508000AB002DA0020BDE8F081A4F13000C4B2092CA6 +S31508000AC001DDE01FC4B204EB0710C7B2681CC5B24B +S31508000AD0022DE2DB3846EDE710B503461A4600BF9D +S31508000AE0491C0A20B2FBF0F2002AF9D1002008704E +S31508000AF01A4600BF491E0A20B2FBF0F400FB142078 +S31508000B00303008700A20B2FBF0F2002AF2D108460B +S31508000B1010BD10B504462078FFF768FB53280AD1A4 +S31508000B20FFF75CFB00686178405C202801D1012052 +S31508000B3000E0002008B9032010BD6078312801D1F3 +S31508000B400020F9E76078322801D10120F4E76078BF +S31508000B50332801D10220EFE70320EDE72DE9F0471E +S31508000B6004460D4617464FF0000905B124B940F270 +S31508000B70312150A0FFF7F2FB2046FFF7CAFF824655 +S31508000B80BAF1030F02D10020BDE8F087204600F035 +S31508000B909FF810B94FF0FF30F6E7BAF1000F06D00C +S31508000BA0BAF1010F25D0BAF1020F7FD14BE0A41C90 +S31508000BB02046FFF76CFF8046A41C2046FFF767FF18 +S31508000BC000022860A41C2046FFF761FF2968084434 +S31508000BD02860A41CA8F1030957B1002606E02046A0 +S31508000BE0FFF755FFB855A41C701C86B24E45F6DBB8 +S31508000BF05DE0A41C2046FFF74AFF8046A41C204659 +S31508000C00FFF745FF00042860A41C2046FFF73FFFB6 +S31508000C10296801EB00202860A41C2046FFF737FF4F +S31508000C20296808442860A41CA8F1040957B10026BD +S31508000C3006E02046FFF72BFFB855A41C701C86B2A9 +S31508000C404E45F6DB33E0A41C2046FFF720FF80461E +S31508000C50A41C2046FFF71BFF00062860A41C20469C +S31508000C60FFF715FF296801EB00402860A41C204601 +S31508000C70FFF70DFF296801EB00202860A41C204619 +S31508000C80FFF705FF296808442860A41CA8F1050990 +S31508000C905FB1002607E009E02046FFF7F8FEB855E1 +S31508000CA0A41C701C86B24E45F6DB00E000BF00BFF0 +S31508000CB0484669E72E2E5C2E2E5C2E2E5C2E2E5C68 +S31508000CC0536F757263655C66696C652E6300000018 +S31508000CD070B504460025A41C2046FFF7D8FE064634 +S31508000CE0A819C5B2A41C00BF2046FFF7D0FE2844A9 +S31508000CF0C5B2701E86B2A41C012EF5DCE843C5B247 +S31508000D002046FFF7C4FEA84201D0002070BD01208E +S31508000D10FCE7000070B50024D248007800282BD0E4 +S31508000D20D0480078012828D1FFF716FECEA0FFF795 +S31508000D30E9FDD6A0FFF7E6FDFFF728FE06460122E5 +S31508000D403146DC4802F0E0FD30B1DBA0FFF7DAFD02 +S31508000D500120FFF7C9FD70BDD9A0FFF7D3FDDAA0C2 +S31508000D60FFF7D0FDE1A0FFF7CDFD0020EB490860B5 +S31508000D7048600220BB49087072E1BA480078022828 +S31508000D807ED1CC4AC101E64802F0A5FC0546E548F5 +S31508000D9090F83A02C00900280CDDC7A0FFF7B2FD9B +S31508000DA00220FFF7A1FDC34802F08AFC0020AD49E6 +S31508000DB00870D0E7A5B10022DB49D948FFF7CEFE77 +S31508000DC00446601C60B9BCA0FFF79CFD0320FFF732 +S31508000DD08BFDB84802F074FC0020A2490870BAE7F7 +S31508000DE0002C1BDDCD48406838B9CD48D0F88001C5 +S31508000DF0CA4908600846446010E0C948D0F880012E +S31508000E00C6490968884204D2C548D0F88001C34952 +S31508000E100860C24840682044C0494860C148D0F8C4 +S31508000E203C12D0F84002814201D1012000E00020A6 +S31508000E300028A1DD00219F4802F078FC60B19EA041 +S31508000E40FFF760FD0420FFF74FFD9A4802F038FCD3 +S31508000E500020844908707EE799A0FFF753FDB3A0E8 +S31508000E60FFF750FDAD494868B349FFF735FEB2486C +S31508000E70FFF748FDB1A0FFF745FDA849096800E05E +S31508000E8039E0080EAC49FFF7F2FDA4490968C1F339 +S31508000E900740A949891CFFF7EAFDA0490988C1F35B +S31508000EA00720A549091DFFF7E2FD9C490878A249D4 +S31508000EB0891DFFF7DCFDA048FFF724FDA6A0FFF774 +S31508000EC021FD964A5168106800F085FD60B97AA040 +S31508000ED0FFF718FD0520FFF707FD764802F0F0FB3F +S31508000EE000206049087036E775A0FFF70BFD032060 +S31508000EF05C490870B4E05B4800780328FAD16D4A6B +S31508000F004FF48071864802F0E6FB0546854890F85E +S31508000F103A02C00900280CDD90A0FFF7F3FC022076 +S31508000F20FFF7E2FC634802F0CBFB00204D4908704E +S31508000F3011E7ADB17C4A803A7B497948FFF70EFE46 +S31508000F400446601C60B98EA0FFF7DCFC0320FFF79F +S31508000F50CBFC584802F0B4FB002042490870FAE678 +S31508000F60002C4BDD8FA0FFF7CDFC73492046FFF719 +S31508000F70B3FD7148FFF7C6FC8EA0FFF7C3FC6849AE +S31508000F80D1F88011080E6C49FFF771FD6449D1F854 +S31508000F908011C1F307406849891CFFF768FD60495D +S31508000FA0B1F88011C1F307206349091DFFF75FFDFA +S31508000FB05B4991F880016049891DFFF758FD5E4835 +S31508000FC0FFF7A0FC64A0FFF79DFC554901F5807268 +S31508000FD0D1F88001214600F012FD60B936A0FFF76E +S31508000FE091FC0620FFF780FC324802F069FB0020DE +S31508000FF01C490870AFE632A0FFF784FC4948D0F8D0 +S315080010003C12D0F84002814201D1012000E00020C4 +S31508001010002825DD6DA0FFF775FC00F0D3FC60B94C +S3150800102025A0FFF76FFC0720FFF75EFC214802F0BA +S3150800103047FB00200B4908708DE621A0FFF762FCEC +S3150800104069A0FFF75FFC1B4802F03AFB6CA0FFF7AC +S3150800105059FC002003490870FFF722FCFFF706FC3D +S3150800106000BF78E6300000204669726D77617265C8 +S315080010702075706461746520726571756573742076 +S3150800108064657465637465640A0D00004F70656E67 +S31508001090696E67206669726D776172652066696C2C +S315080010A06520666F722072656164696E672E2E2EE2 +S315080010B000000000EC0400204552524F520A0D0071 +S315080010C04F4B0A0D000000005374617274696E6715 +S315080010D0207468652070726F6772616D6D696E67DE +S315080010E02073657175656E63650A0D0050617273CC +S315080010F0696E67206669726D776172652066696CCC +S315080011006520746F206F627461696E206572617301 +S31508001110652073697A652E2E2E00000034000020A3 +S3150800112010070020B802002090080020457261735D +S31508001130696E672000000000940800202062797418 +S3150800114065732066726F6D206D656D6F72792061AB +S3150800115074203078000000002E2E2E00526561643F +S31508001160696E67206C696E652066726F6D206669A8 +S315080011706C652E2E2E4552524F520A0D0000000065 +S31508001180496E76616C696420636865636B73756D17 +S3150800119020666F756E642E2E2E4552524F520A0DDA +S315080011A00000000050726F6772616D6D696E67208E +S315080011B00000000020627974657320746F206D65E5 +S315080011C06D6F7279206174203078000057726974E7 +S315080011D0696E672070726F6772616D2063686563F8 +S315080011E06B73756D2E2E2E00436C6F73696E6720B8 +S315080011F06669726D776172652066696C650A0D00AD +S315080012004669726D776172652075706461746520D0 +S315080012107375636365737366756C6C7920636F6D3C +S31508001220706C657465640A0D000000002DE9F047CE +S3150800123004460E4692461F46700A4FEA4028206822 +S31508001240401C38B94146204600F03AF910B900204A +S31508001250BDE8F0872068404507D04146204600F0A3 +S315080012604FF904460CB90020F2E72068311A201D10 +S315080012700D18D14600BFFFF7E2FA201D281AB0F56F +S31508001280007F09D308F50071204600F039F90446B5 +S315080012900CB90020DCE7251D99F8000028706D1CA4 +S315080012A009F101097F1E002FE5D10120D0E70000D2 +S315080012B010B50B480068401C28B1094800F0ACF985 +S315080012C008B9002010BD07480068401C28B1054829 +S315080012D000F0A2F908B90020F4E70120F2E70000BF +S315080012E0240B0020200900202DE9F04104460D4674 +S315080012F0204600F071F806466119481E00F06CF8A1 +S315080013000746FF2E01D0FF2F02D10020BDE8F0814D +S315080013103946304600F002F8F8E700002DE9F047B4 +S3150800132006460D46AE4202DD0020BDE8F087284895 +S31508001330007AB04204DC264890F89800A84201DA00 +S315080013400020F2E700F002F92248C06800F0010028 +S3150800135018B100F0CBF80020E7E71E48006940F016 +S3150800136002001C490861304600F060F80746284626 +S3150800137000F05CF88246284600F074F85044A0F164 +S315080013800109A9EB0700401CC0F38F28002413E0CD +S3150800139007EB84200F4948610846006940F0400081 +S315080013A0086101E0FFF74BFA0A48C06800F001003F +S315080013B00028F7D1601C84B24445E9DB054800697A +S315080013C020F002000349086100F090F80120ACE71C +S315080013D0044D00080020024070B5054600241EE0B2 +S315080013E0FFF72DFA04EB44000F4951F82000A842F4 +S315080013F013D804EB440051F8200004EB44010A4AD0 +S3150800140002EB810149680844A84206D904EB440066 +S31508001410114601EB8000007A70BD601CC4B20D2C29 +S31508001420DED3FF20F8E70000044D000870B5054636 +S31508001430002410E0FFF703FA04EB4400084901EB27 +S315080014408000007AA84204D104EB440051F8200039 +S3150800145070BD601CC4B20D2CECD34FF0FF30F7E71B +S31508001460044D000870B50546002411E0FFF7E7F9BA +S3150800147004EB4400084901EB8000007AA84205D134 +S3150800148004EB440001EB8000406870BD601CC4B2E8 +S315080014900D2CEBD30020F8E7044D0008014800683E +S315080014A070470000044D00084FF0FF3002490860FD +S315080014B0024908607047000020090020240B00201C +S315080014C070B505460C46C4F3080008B1002070BD87 +S315080014D02868A04201D10120F9E72C604FF4007278 +S315080014E02146281DFFF7ACF90120F0E703480069FB +S315080014F040F0800001490861704700000020024062 +S3150800150070B504460D460E48844201D10D4C0DE0D7 +S315080015100D480068A84203D1094C0B48056805E048 +S31508001520204600F079F808B9002070BD2946204603 +S31508001530FFF7C6FF08B90020F7E72046F5E70000E1 +S31508001540240B002020090020044D00080348044904 +S315080015504860044848603420C860704723016745DE +S3150800156000200240AB89EFCD0021134800680068CF +S31508001570014411480068406801440F4800688068C3 +S3150800158001440D480068C06801440B4800680069BA +S3150800159001440948006840690144074800688069B1 +S315080015A0014405480068D0F85001014409B90120F2 +S315080015B070470020FCE70000044D00082DE9F041C3 +S315080015C004460D4617462046FFF706FFFF2805D0B6 +S315080015D06119481EFFF700FFFF2802D10020BDE869 +S315080015E0F081600A460209480068B04206D12B46D7 +S315080015F03A4621460648FFF719FEF0E72B463A46D3 +S3150800160021460448FFF712FEE9E70000044D0008EA +S31508001610240B0020200900202DE9F04705464FF04D +S3150800162001092868FFF7D8FE8046B8F1FF0F02D1F6 +S315080016300020BDE8F087FFF789FF2048C06800F062 +S31508001640010018B1FFF752FF0020F2E71B480069B6 +S3150800165040F0010019490861002421E0286800EBE0 +S315080016608406281D50F82470378001E0FFF7E7F854 +S315080016701248C06800F001000028F7D1380C7080C5 +S3150800168001E0FFF7DCF80D48C06800F0010000280B +S31508001690F7D13068B84202D04FF0000902E0641C66 +S315080016A0802CDBD300BF0548006920F00100034900 +S315080016B00861FFF71BFF4846BBE700000020024011 +S315080016C008B5002000901C480068401C08B9012095 +S315080016D008BD194840680099084400901648806873 +S315080016E00099084400901448C0680099084400907E +S315080016F0114800690099084400900F48406900990C +S31508001700084400900C4880690099084400900A48EB +S31508001710C0690099084400900098C043009000985A +S31508001720401C00900549096801F5A8706A4604211D +S31508001730FFF744FFCCE70000240B0020044D000807 +S315080017402DE9F0410246002500260020002300244A +S31508001750002791F803C00CF00F0591F803C00CF0B0 +S31508001760100CBCF1000F03D091F802C04CEA050535 +S3150800177091F800C0BCF1000F31D0146800202BE0AE +S315080017804FF0010C0CFA00F3B1F800C00CEA03069E +S315080017909E4220D183004FF00F0C0CFA03F7BC438E +S315080017A005FA03FC4CEA040491F803C0BCF1280FBF +S315080017B006D14FF0010C0CFA00FCC2F814C00AE07E +S315080017C091F803C0BCF1480F05D14FF0010C0CFA93 +S315080017D000FCC2F810C0401C0828D1D31460B1F828 +S315080017E000C0BCF1FF0F34DD546800202EE000F184 +S315080017F0080C4FF0010808FA0CF3B1F800C00CEA1F +S3150800180003069E4221D183004FF00F0C0CFA03F712 +S31508001810BC4305FA03FC4CEA040491F803C0BCF186 +S31508001820280F05D100F1080C08FA0CF8C2F8148044 +S3150800183091F803C0BCF1480F07D100F1080C4FF02E +S31508001840010808FA0CF8C2F81080401C0828CED304 +S315080018505460BDE8F0810000F0B50A460023002474 +S315080018600021002500F00046B6F1004F02D11D4EBA +S31508001870F16901E01B4E7168C0F3034583B200F4B9 +S315080018804016B6F5401F08D121F07061154E7668EE +S3150800189026F07066134F7E6012E000F48016B6F5E7 +S315080018A0801F06D1032606FA05F4A14341F07061AC +S315080018B006E0460D360103FA06F6B14341F07061BB +S315080018C022B1460D360103FA06F6314300F000460A +S315080018D0B6F1004F02D1034EF16101E0014E71608D +S315080018E0F0BD00000000014041617047016170478A +S315080018F000B585B00121084600F09CF801210820B2 +S3150800190000F098F84FF48070ADF8100048208DF874 +S31508001910130004A92848FFF713FF4FF40070ADF829 +S31508001920100018208DF8130003208DF8120004A962 +S315080019302148FFF705FF01214FF4EA10FFF78CFF56 +S315080019400121480600F066F80121480400F062F813 +S315080019500121052000F06EF818208DF813000420E8 +S31508001960ADF8100003208DF8120004A91348FFF7FC +S31508001970E7FE04208DF813000820ADF8100004A92E +S315080019800E48FFF7DDFE4FF4614000900020ADF8E9 +S315080019900400ADF80600ADF80800ADF80C000C2000 +S315080019A0ADF80A006946064800F0F0F90121044836 +S315080019B000F0D2F905B000BD000C01400008014056 +S315080019C00044004010B5FFF77BFE08B9002010BDA3 +S315080019D0FFF76EFCFBE770B504460D462946204620 +S315080019E0FFF782FC70BD10B5FFF758FD10BD10B5A6 +S315080019F0FFF75AFD10BD10B5FFF7B6FD10BD70B55F +S31508001A0004460D461646324629462046FFF7D6FDB9 +S31508001A1070BD000029B1064AD2690243044BDA6157 +S31508001A2004E0034AD2698243014BDA617047000039 +S31508001A300010024029B1064A92690243044B9A6192 +S31508001A4004E0034A92698243014B9A617047000099 +S31508001A500010024030B500210022002400232D4D3D +S31508001A606D6805F00C0121B1042905D0082923D198 +S31508001A7005E0294D056022E0274D05601FE0254D4C +S31508001A806D6805F47012234D6D6805F480340225DF +S31508001A9005EB92421CB9214D554305600BE01D4DDF +S31508001AA06D6805F400351DB11C4D5543056002E00F +S31508001AB0194D5543056002E0174D056000BF00BF8C +S31508001AC0144D6D6805F0F0010909154D6B5C056844 +S31508001AD0DD4045600F4D6D6805F4E061090A104D5B +S31508001AE06B5C4568DD4085600A4D6D6805F460519C +S31508001AF0C90A0B4D6B5C4568DD40C560054D6D68D0 +S31508001B0005F44041890B074D6B5CC568B5FBF3F5D9 +S31508001B10056130BD0010024000127A0000093D0040 +S31508001B20000000201000002021B1028842F4005273 +S31508001B30028004E002884DF6FF731A40028070475F +S31508001B4021B1028842F04002028004E002884FF682 +S31508001B50BF731A40028070470246002013890B4063 +S31508001B600BB1012000E000207047014688897047C4 +S31508001B708181704710B50022028802F441520B8811 +S31508001B804C8823438C882343CC8823430C892343DE +S31508001B904C8923438C892343CC8923431A430280E7 +S31508001BA0838B4FF2FF74234083830B8A038210BD15 +S31508001BB010B500F001F810BD0CB50020019000909A +S31508001BC03348006840F480303149086000BF304827 +S31508001BD0006800F4003000900198401C01900098BD +S31508001BE018B90198B0F5A06FF1D12948006800F43A +S31508001BF0003010B10120009001E00020009000980C +S31508001C00012843D12348006840F0100021490860A4 +S31508001C100846006820F0030008600846006840F09F +S31508001C20020008601A484068194948600846406832 +S31508001C3048600846406840F4806048600846406846 +S31508001C4020F47C1048600846406840F4E810486074 +S31508001C500846006840F08070086000BF0C480068BD +S31508001C6000F000700028F9D00948406820F0030009 +S31508001C70074948600846406840F00200486000BFCF +S31508001C800348406800F00C000828F9D10CBD000094 +S31508001C90001002400020024010B51348006840F0CA +S31508001CA001001149086008464068104908400E4975 +S31508001CB04860084600680E4908400B49086008460F +S31508001CC0006820F4802008600846406820F4FE007A +S31508001CD048604FF41F008860FFF76AFF4FF0006006 +S31508001CE00449086010BD0000001002400000FFF81B +S31508001CF0FFFFF6FE08ED00E000B500F01FF801480A +S31508001D00006800BD3C00002000B500F011F8064848 +S31508001D104FF0E02148610020886105200861002015 +S31508001D200249086000BD00003F1901003C00002080 +S31508001D3000204FF0E0210861704700004FF0E020D6 +S31508001D40006900F4803020B102480068401C01494F +S31508001D50086070473C00002021B1828942F4005295 +S31508001D60828104E082894DF6FF731A4082817047AA +S31508001D7002460020B1F5007F00D100BF13880B4052 +S31508001D800BB1012000E00020704700002DE9F04764 +S31508001D9086B005460E460024A24600BFA146002787 +S31508001DA0B08900B100BF2F462C8A4CF6FF7004405C +S31508001DB0F08804432C82AC894EF6F3100440B088B0 +S31508001DC031890843718908430443AC81AC8A4FF6CC +S31508001DD0FF400440B0890443AC8201A8FFF73AFEED +S31508001DE01F48874202D1DDF810A001E0DDF80CA0FB +S31508001DF0A88900F4004040B10AEBCA0000EB0A10BB +S31508001E0031684900B0FBF1F807E00AEBCA0000EBBD +S31508001E100A1031688900B0FBF1F86420B8FBF0F0CD +S31508001E2004012009642101FB1089A88900F40040F7 +S31508001E3040B1322000EBC900B0FBF1F000F007001A +S31508001E40044308E0322000EB09106421B0FBF1F0EE +S31508001E5000F00F0004432C8106B0BDE8F0870000AF +S31508001E6000380140C1F308028280704700200B4900 +S31508001E700880091D0880091D0880091D0880091D9C +S31508001E80088040F2712005490880081D008842F242 +S31508001E900C0108430149091D0880704708440040A1 +S31508001EA001460648008800F0200028B10348001DB6 +S31508001EB000880870012070470020FCE700440040B5 +S31508001EC010B504462048007898B92048FFF7E8FF7F +S31508001ED0012837D11D480078002833DDFFF70CFFAD +S31508001EE01B49086000201B49087001201649087024 +S31508001EF028E0164A17490978491C5018FFF7D0FFF9 +S31508001F00012815D113480078401C124908700F485B +S31508001F1000780978884215D10E4802780B49491C81 +S31508001F202046FEF78DFC002007490870012010BDE9 +S31508001F30FFF7E2FE064909686431884202D90020A3 +S31508001F40014908700020F2E741000020280D002012 +S31508001F50440000204000002010B504460A480088C6 +S31508001F6000F0800008B9002010BD0748001D048055 +S31508001F7001E0FEF764FC0448008800F080000028B1 +S31508001F80F7D00120F0E70000004400402DE9F041B9 +S31508001F9007460C46402C03DD8D2110A0FEF7DEF91E +S31508001FA02046FFF7D9FF0646012E03D091210BA044 +S31508001FB0FEF7D4F900250DE0FEF741FC785DFFF742 +S31508001FC0CBFF0646012E03D09A2104A0FEF7C6F9D8 +S31508001FD0681C85B2A542EFDBBDE8F0812E2E5C2E8B +S31508001FE02E5C2E2E5C2E2E5C536F757263655C41DB +S31508001FF0524D434D335F53544D33325C75617274A1 +S315080020002E63000010B50446FF200949C870084A27 +S315080020106168906CD21D00F077F9054908710021B6 +S3150800202003484171817108200149A1F8440010BD97 +S31508002030D408002010B5044600BFFEF7FDFC18B909 +S31508002040102000F01DFA10BD00F014FA0120144902 +S315080020500870FF20C870002111480171007940F00E +S3150800206010010F4801710021417140790C494871EE +S31508002070FEF76CFBC1B20A488171FEF77FFBC1B25D +S315080020800748C171FEF77AFB011205480172012162 +S315080020904172817208200249A1F8440000BFD2E7C4 +S315080020A0D408002010B5044600BF00200549087072 +S315080020B000F0E0F9FF200349C8700120A1F84400A8 +S315080020C010BD0000D408002000BFFF21084AD170C7 +S315080020D008499164002206490A714A718A710722E1 +S315080020E0C1F807200821024AA2F8441070470000E8 +S315080020F0D4080020D84C000800BFFF21074AD17039 +S31508002100002206490A714A784A7100228A71CA7100 +S315080021100A720621014AA2F844107047D408002022 +S3150800212010B50446FEF712FB801E6178884203DA72 +S31508002130222000F0A5F910BDFF201049C870012023 +S31508002140A1F84400607830B9FFF73CFC10B931209B +S3150800215000F096F9EFE76178084A906CA21CFFF741 +S315080021604EFC18B9312000F08BF9E4E70348806C7F +S31508002170617808440149886400BFDCE7D408002078 +S3150800218010B50446084A6168906CFFF724FC18B934 +S31508002190312000F075F910BDFF200349C8700120F1 +S315080021A0A1F8440000BFF6E7D408002070B504463D +S315080021B0FEF7CCFA451E0D49621C886C2946FFF7C6 +S315080021C01EFC18B9312000F05BF970BDFF200749E5 +S315080021D0C870FEF7BBFA401E0449896C08440349D7 +S315080021E088640120A1F8440000BFEEE7D408002067 +S315080021F010B50446312000F043F910BD10B5044669 +S3150800220000BFFEF733FBFF200249C8700120A1F882 +S31508002210440010BDD408002010B5044600BFFF20B6 +S315080022200949C8700021084801714171FEF78EFA04 +S31508002230C1B2054881710021C1710172417207203E +S315080022400149A1F8440010BDD4080020FF21044A22 +S31508002250D170416891640121A2F8441070470000CA +S31508002260D408002010B50446FEF770FA401E6178BF +S31508002270884203DA222000F003F910BD0B49606892 +S31508002280886462780846816C001DFEF7D9FAFF203B +S315080022900649C8700846806C617808440349886412 +S315080022A06078401CA1F8440000BFE6E7D408002087 +S315080022B010B5044600BF002000F0E2F810BD00008B +S315080022C010B50446FEF742FA401E6178884203DAE2 +S315080022D0222000F0D5F810BD62780A48816C001DEE +S315080022E0FEF7AEFAFF200749C8700846806C617889 +S315080022F00844044988646078401CA1F8440000BF7B +S31508002300E9E70000D408002030B50346002403E0BE +S3150800231018782044C4B25B1C081EA1F10101F7D14C +S315080023201460012030BD000000200549087088644B +S3150800233081F84300A1F8440088704870704700008F +S31508002340D40800200348007808B900207047012007 +S31508002350FCE70000D408002010B504462078FF28C2 +S3150800236003D12046FFF766FE60E03D480078012865 +S315080023705BD12078F4281FD010DCD0283CD006DCAE +S31508002380C92835D0CC2847D0CF2849D140E0D12814 +S315080023903AD0D22834D0F32842D115E0F5380A28A5 +S315080023A03ED2DFE800F0050D3D3D3D153D191D21E6 +S315080023B02046FFF785FF37E02046FFF753FF33E057 +S315080023C02046FFF743FF2FE02046FFF71BFE2BE0D2 +S315080023D02046FFF779FE27E02046FFF769FF23E04E +S315080023E02046FFF789FE1FE02046FFF75BFE1BE04D +S315080023F02046FFF7DBFE17E02046FFF791FE13E0C5 +S315080024002046FFF709FF0FE02046FFF7B9FE0BE06D +S315080024102046FFF7F3FE07E02046FFF7E9FE03E054 +S31508002420202000F02DF800BF00E010BD0C4890F801 +S315080024304300012802D1102000F022F80848B0F91C +S315080024404400002809DD0120054981F843000846B3 +S31508002450B0F94410C01C00F01FF800BFE5E7000003 +S31508002460D40800200020024981F843007047000084 +S31508002470D40800200020014948707047D40800207D +S31508002480FE21044AD170114608710221A2F84410AF +S3150800249070470000D408002070B505460C46A1B266 +S315080024A02846FEF7B3F970BD70B504460D46607848 +S315080024B001232A4604F1340101F054F808B1032037 +S315080024C070BD94F8321294F8330241EA00204AF6B5 +S315080024D05521884201D00220F2E794F86D000106E2 +S315080024E094F86C0041EA004194F86B0041EA002038 +S315080024F094F86A10084320F07F400E49884201D1BB +S315080025000020DDE794F88900010694F8880041EA7E +S31508002510004194F8870041EA002094F886100843A1 +S3150800252020F07F400349884201D10020C8E70120F6 +S31508002530C6E7000046415400024600E0521C1078E7 +S3150800254010B110788842F9D1107870472DE9F74F05 +S3150800255088B008980068019001980078303807908C +S31508002560079809280AD8019840783A2806D1019888 +S31508002570801C019008990198086001E000200790E6 +S31508002580002109980160079818B10B200BB0BDE827 +S31508002590F08FD149079851F820400CB90C20F5E77F +S315080025A009980460207878B1607801F025F88046AB +S315080025B008F0010040B90A9820B108F0040008B1F3 +S315080025C00A20E3E70020E1E7002020700798607002 +S315080025D0607800F009FE804608F0010008B1032083 +S315080025E0D4E70A9820B108F0040008B10A20CDE71C +S315080025F04FF0000949462046FFF756FF054600BF3B +S31508002600012D21D14FF0000BBBF1000F03D0ABF128 +S31508002610010000F0FF0B4FF4DF7000EB0B1104F123 +S3150800262034000F18387978B1F87A0106B87A41EA91 +S315080026300041787A41EA0020397A40EA0109494698 +S315080026402046FFF731FF0546032D01D101209DE7FE +S315080026500DB10D209AE73F20015D94F8400041EA4C +S315080026600020B0F5007F01D00D208FE74A20015DDC +S3150800267094F84B0041EA002ABAF1000F0ED194F8FB +S315080026805B00010694F85A0041EA004194F85900A3 +S3150800269041EA002094F8581040EA010AC4F81CA040 +S315080026A04420065DE670012E03D0022E01D00D20CF +S315080026B06CE70AFB06FA4120005D0646A07016B1D3 +S315080026C0701E304008B10D2060E74520015D94F882 +S315080026D0460041EA00202081207A00F00F0008B168 +S315080026E00D2053E74720015D94F8480041EA002091 +S315080026F00690069870B994F85700010694F85600A3 +S3150800270041EA004194F8550041EA002094F8541033 +S31508002710084306904220015D94F8430041EA0020F0 +S315080027200290029808B90D2030E702985044218992 +S3150800273000EB11100590DDE90501814201D20D205B +S3150800274024E7DDE90510401AA178B0FBF1F0049002 +S31508002750049808B90D2019E7012540F6F671049882 +S31508002760884200D302254FF6F6710498884200D3B2 +S3150800277003250498801CA061C4F820900298484458 +S31508002780606205984844E062032D16D1208908B195 +S315080027900D20FBE694F86300010694F8620041EA0E +S315080027A0004194F8610041EA002094F8601008435B +S315080027B0A062A0698000039014E0208908B90D2062 +S315080027C0E4E6606A5044A062022D02D1A069400086 +S315080027D007E0207E00F00100A16901EB410100EB52 +S315080027E051000390E169039800F2FF10B1EB502FF6 +S315080027F001D20D20CAE64FF0FF3020610020E060CC +S31508002800032D5CD1607194F8641094F8650041EA70 +S315080028100020484460616078012304F1340162694C +S3150800282000F0A0FEF0BB94F8321294F8330241EAA5 +S3150800283000204AF65521884241D13720005D01061D +S315080028403620005D41EA00413520005D41EA00205E +S3150800285094F8341008432149884230D194F81B0271 +S31508002860010694F81A0241EA004194F8190241EA6D +S31508002870002094F818120843194988421FD194F881 +S315080028802302010694F8220241EA004194F8210243 +S3150800289041EA002094F820120843E06094F81F02E9 +S315080028A0010600E00BE094F81E0241EA004194F8A4 +S315080028B01D0241EA002094F81C1208432061257085 +S315080028C008480088401C80B206490880E08000203D +S315080028D02063207100BF59E648000020525261412A +S315080028E0727241614C0000200246891E9069801E62 +S315080028F0884201D8002070479378D06A01FB03000C +S31508002900F9E700002DE9F04705460C46207820F047 +S315080029104000401E00EB800101EBC00600274FF087 +S31508002920010800BF1A48C05D205C1949C95D2144E9 +S31508002930497840EA0129B8F1000F10D0484601F05D +S31508002940ABFB8046FF2E07D23146761C35F81100C0 +S3150800295001F0A2FB404508D00020BDE8F0874FF6FD +S31508002960FF70814501D00020F7E7781C07460D283F +S31508002970D8D3207800F0400038B1B8F1000F04D061 +S3150800298035F8160008B10020E7E70120E5E7000062 +S31508002990204E00082DE9F04704468946B9F1000F94 +S315080029A006D1E76817B1A069B84211D801270FE028 +S315080029B04946204601F069FC0646022E02D201204D +S315080029C0BDE8F087A069B04201D93046F8E74F461E +S315080029D03D4600BF6D1CA069A84204D80225BD4229 +S315080029E001D90020ECE72946204601F04EFC0646B0 +S315080029F006B909E0701C08B1012E01D13046DFE79F +S31508002A00BD42E7D10020DBE700BF6FF070422946E0 +S31508002A10204601F04BFE8046B8F1000F08D1B9F107 +S31508002A20000F05D02A464946204601F03FFE80465B +S31508002A30B8F1000F09D1E5602069401C68B120692A +S31508002A40401E20610120607107E0B8F1010F02D134 +S31508002A504FF0FF3000E0012005462846B0E70000A9 +S31508002A602DE9F34F83B082460498D0F800B001E010 +S31508002A700BF1010B9BF800002F28F9D09BF80000FA +S31508002A805C28F5D0DAF81C9000252E4600BF3046A3 +S31508002A90761C1BF80040202C03DB2F2C01D05C2C65 +S31508002AA000D11CE0FF2D03D3062005B0BDE8F08F4A +S31508002AB0E4B20121204601F0C9FA04460CB9062001 +S31508002AC0F3E7802C06DA21466BA0FFF735FD08B13F +S31508002AD00620EAE728466D1C29F81040D7E700BF0C +S31508002AE00BEB060104980160202C01DA042000E0B3 +S31508002AF00020074608E0681E39F81040202C02D04E +S31508002B002E2C00D002E06D1E002DF4D100BF0DB9A9 +S31508002B100620CAE7002029F815000B222021DAF83A +S31508002B20180001F0F5FC002600E0761C39F81600BE +S31508002B302028FAD039F816002E28F6D00EB147F01C +S31508002B40030700E06D1E25B1681E39F810002E280F +S31508002B50F8D14FF00008CDF808800820019000BF92 +S31508002B603046761C39F8104004B955E0202C03D0BD +S31508002B702E2C04D1AE4202D047F00307F0E7DDE978 +S31508002B800110884201D2AE4216D101980B2802D113 +S31508002B9047F0030740E0AE4201D047F00307AE42D4 +S31508002BA000D939E02E46082002900B2001904FEA02 +S31508002BB088604FEA1068D3E7802C0BDB002120469B +S31508002BC001F044FA04461CB1A4F180002D490C5CBE +S31508002BD047F0020700BF24B121462BA0FFF7ACFC43 +S31508002BE018B15F2447F003070FE0412C04DB5A2C89 +S31508002BF002DC48F0020808E0612C06DB7A2C04DCCB +S31508002C0048F00108A4F1200084B2DAF818300298D6 +S31508002C10411C02911C54A3E700BFDAF8180000789B +S31508002C20E52803D10520DAF8181008700198082855 +S31508002C3003D14FEA88604FEA106808F00C000C28A8 +S31508002C4003D008F00300032801D147F0020707F074 +S31508002C50020058B908F00300012801D147F010070F +S31508002C6008F00C00042801D147F00807DAF8180024 +S31508002C70C772002019E70000222A3A3C3E3F7C7FB3 +S31508002C8000000000A04D00082B2C3B3D5B5D0000BA +S31508002C9010B54FF480510348FEF728FEFF2001F0D7 +S31508002CA0B1FF10BD000C01402DE9F04104460E4667 +S31508002CB00021204600F049FA0546EDB9002700BF75 +S31508002CC02169206801F02EFC054605B113E060690C +S31508002CD00078E52802D06069007820B9781C074694 +S31508002CE0B04201D107E000270121204600F076F81E +S31508002CF00546002DE4D000BF2846BDE8F0812DE941 +S31508002D00F04704460021204600F01FFA074617B18F +S31508002D103846BDE8F0874FF0FF09CA4600BF21696B +S31508002D20206801F0FFFB074607B154E065692E7875 +S31508002D300EB904274FE0E87A00F03F08E52E05D0E3 +S31508002D4008F0080028B1B8F10F0F02D04FF0FF09BC +S31508002D503AE0B8F10F0F1CD1E069A0B306F04000C5 +S31508002D6030B195F80DA026F04006B146E0882084DB +S31508002D704E450AD1687B504507D12946E069FFF7D9 +S31508002D80C1FD10B1A9F1010000E0FF2000F0FF0924 +S31508002D901AE0B9F1000F05D1284601F065FE504545 +S31508002DA000D118E04FF0FF094FF6FF702084A069A4 +S31508002DB0C07A00F0010030B90B222846A16901F05B +S31508002DC087FB00B907E0FFE70021204600F006F878 +S31508002DD00746002FA3D000BF38469AE72DE9F041F1 +S31508002DE00446884600BFE088401C86B20EB12069BA +S31508002DF010B90420BDE8F08106F00F0000286DD157 +S31508002E002069401C2061E06828B920680089B04222 +S31508002E1064DC0420EEE720688078401E00EA16107D +S31508002E2000285BD1E168206801F02FFA0546012DDC +S31508002E3001D80220DEE7681C08B90120DAE7206815 +S31508002E408069A84244D8B8F1000F01D10420D1E71F +S31508002E50E1682068FFF79EFD05460DB90720C9E71A +S31508002E60012D01D10220C5E7681C08B90120C1E778 +S31508002E70206801F06DFE08B10120BBE7216801F169 +S31508002E8034004FF40072002101F042FB2946206805 +S31508002E90FFF72AFD2168086300270FE00120216853 +S31508002EA00871206801F054FE08B10120A2E72068E5 +S31508002EB0006B401C21680863781CC7B220688078BC +S31508002EC0B842EBDC2068006BC01B2168086300BFB2 +S31508002ED0E56029462068FFF707FD2061E68020683F +S31508002EE0343006F00F0100EB41106061002081E7E5 +S31508002EF02DE9F05F04468A464FF0FF09CB460427C2 +S31508002F004EE02169206801F00DFB074607B14AE04B +S31508002F10666935780DB9042745E0F07A00F03F0870 +S31508002F20E52D09D02E2D07D0B8F1080F01D10120C3 +S31508002F3000E00020504502D04FF0FF0929E0B8F123 +S31508002F400F0F1AD105F0400030B196F80DB025F0F4 +S31508002F504005A946E08820844D450AD1707B58452E +S31508002F6007D13146E06901F0F7FA10B1A9F101007D +S31508002F7000E0FF2000F0FF090BE0B9F1000F04D1D3 +S31508002F80304601F071FD584502D04FF6FF70208497 +S31508002F9009E000212046FFF721FF074607B102E0B6 +S31508002FA020690028ADD100BF0FB100202061384646 +S31508002FB0BDE8F09F2DE9FE4F0446D4F81880D4F8F2 +S31508002FC01C900C224146684601F095FA00BF9DF810 +S31508002FD00B0000F0010028B3002088F80B00E06120 +S31508002FE001260DE033464A466946404601F0F9F89F +S31508002FF02046FFF784FE054605B103E0701C86B23D +S31508003000642EEFDB00BF642E02D10720BDE8FE8FD9 +S31508003010042D01D02846F9E79DF80B0088F80B0027 +S31508003020C4F81C909DF80B0000F0020070B1002651 +S3150800303001E0701C86B239F816000028F9D106F1AD +S3150800304019000D2190FBF1F087B200E001273946FF +S315080030502046FFF729FE05465DBB781E80B2071E8F +S3150800306027D0E088C01B81B2204600F06EF80546DE +S31508003070FDB9A06901F0F8FC824600BF2169206805 +S3150800308001F050FA054605B112E0FAB253466169F5 +S31508003090E06901F01DF80120216808710021204629 +S315080030A0FFF79CFE05461DB9781E80B2071EE5D1BE +S315080030B000BFC5B92169206801F034FA054695B9FB +S315080030C020220021606901F023FA0B22D4E90501C8 +S315080030D001F011FAA069C07A00F018006169087356 +S315080030E0012021680871284690E770B50446E688ED +S315080030F0208C4FF6FF72904201D1304600E0208CBA +S315080031000146204600F021F80546E5B900BF2169C9 +S31508003110206801F007FA054605B110E0E520616967 +S315080031200870012021680871E088B04200DB06E0DB +S3150800313000212046FFF752FE0546002DE7D000BFC6 +S31508003140042D00D10225284670BD2DE9F04104461C +S315080031500E46E680A568012D03D020688069A8423E +S3150800316002D80220BDE8F0812DB92068007803282E +S3150800317001D12068856A65B9E56020680089B04292 +S3150800318001DC0220EEE72068806A00EB1610206159 +S3150800319020E020688078070112E02946206801F0BF +S315080031A074F80546681C08B90120DBE7022D03D32D +S315080031B020688069A84201D80220D3E7F01B86B2AE +S315080031C0BE42EADAE56029462068FFF78DFB00EB88 +S315080031D0161020612068343006F00F0100EB41100C +S315080031E060610020BEE700002DE9F8438046B8F18B +S315080031F0000F02D00120BDE8F8834948007800F0A6 +S31508003200020010B146480078F5E701F0E9F94FF4F5 +S3150800321080514448FEF768FB00270021084601F064 +S315080032205BFB012868D1FEF767FD00F57A754FF458 +S31508003230D571082001F050FB01283CD1002406E096 +S31508003240FF2001F0DFFC0DF80400601CC4B2042C5A +S31508003250F6DB9DF8020001284ED19DF80300AA2846 +S315080032604AD100BFFEF748FDA84206D24FF080417A +S31508003270A92001F031FB0028F4D1FEF73DFDA84254 +S315080032803AD200213A2001F027FBA8BB002406E029 +S31508003290FF2001F0B7FC0DF80400601CC4B2042C32 +S315080032A0F6DB9DF8000000F0400008B10C2000E0B5 +S315080032B00420074620E00021A92001F00DFB012883 +S315080032C002DC0227A92601E00127012600BFFEF736 +S315080032D013FDA84205D20021304601F0FDFA002868 +S315080032E0F5D1FEF709FDA84205D24FF4007110206A +S315080032F001F0F2FA00B100270B480760FFF7C8FC97 +S3150800330047B10748007820F001000549087001F028 +S3150800331071FB01E001F05AF9014800786BE70000FB +S3150800332014000020000C0140180000202DE9FF477A +S3150800333080460F461446A246B8F1000F03D0042073 +S3150800334004B0BDE8F0878548007800F0010008B1B0 +S315080033500320F5E74FF001090F2F7AD2DFE807F0CF +S31508003360080EF655F6F6F6F6F6F6AEB5C2CFE10055 +S3150800337001F09EFA08B14FF00009EAE000210920A1 +S3150800338001F0AAFAE8BB1021684601F02AFAC0B390 +S315080033909DF800000121B1EBA01F0FD19DF809008F +S315080033A09DF8081000EB01209DF8071001F03F0179 +S315080033B000EB0140461CB002206021E09DF80500A4 +S315080033C000F00F009DF80A1000EBD1109DF80910C7 +S315080033D001F0030100EB4100851C9DF808008011EF +S315080033E09DF8071000EB81009DF8061001F0030117 +S315080033F000EB8120461CA5F1090006FA00F02060C2 +S3150800340000E001E04FF00009A3E05548007800F01D +S315080034100400F8B100218D2001F05EFA00284CD195 +S31508003420FF2001F0EFFB1021684601F0DAF988B3B6 +S31508003430302504E0FF2001F0E5FB681EC5B2002D2B +S31508003440F8D19DF80A000111102088402060A9468D +S3150800345033E07BE00021092001F03EFAD0B91021C3 +S31508003460684601F0BEF9A8B13D48007800F00200B0 +S3150800347088B19DF80A008006400E9DF80B1000EBF7 +S31508003480D110401C9DF80D100122C2EBA1118840F5 +S31508003490206010E011E09DF80B008007C00E9DF833 +S315080034A00B1000EB5110401C9DF80A10C1F3840163 +S315080034B0491C484320604FF000094AE02848007834 +S315080034C08AF800004FF0000943E00021092001F0C6 +S315080034D003FA30B91021204601F083F908B14FF0FC +S315080034E0000936E000210A2001F0F6F930B910216A +S315080034F0204601F076F908B14FF0000929E00021CD +S315080035003A2001F0E9F958B9002505E0FF2001F055 +S3150800351079FB6055681CC5B2042DF7DB4FF000092E +S3150800352017E00F48007800F0040070B100218D20E4 +S3150800353001F0D2F948B9FF2001F064FB402120468A +S3150800354001F04FF908B14FF0000902E04FF0040905 +S3150800355000BF00BFFFF79CFB4846F1E614000020B9 +S31508003560180000202DE9F04107460D4616461C4670 +S3150800357007B914B90420BDE8F0811D48007800F0A9 +S31508003580010008B10320F6E71A48007800F00800A1 +S3150800359000B97602012C0BD13146112001F09CF9B5 +S315080035A0F0B96102284601F01CF9C8B1002417E0F9 +S315080035B03146122001F090F990B900BF4FF400711E +S315080035C0284601F00EF900B905E005F50075601EFC +S315080035D0C0B2041EF2D100BF00210C2001F07CF914 +S315080035E0FFF756FB0CB10120C5E70020C3E7000032 +S315080035F01400002018000020014609B10120704778 +S3150800360001480078FBE70000140000202DE9F0418E +S3150800361007460D4616461C4607B914B90420BDE8E8 +S31508003620F0812548007800F0010008B10320F6E78C +S315080036302148007800F0040008B10220EFE71F488F +S31508003640007800F0080000B97602012C0BD131464B +S31508003650182001F041F940BBFE21284601F0E6FAA0 +S3150800366018B3002421E01548007800F0060018B1C8 +S315080036702146972001F030F93146192001F02CF93E +S3150800368098B900BFFC21284601F0D0FA00B905E038 +S3150800369005F50075601EC0B2041EF3D100BFFD21FA +S315080036A0002001F0C3FA00B90124FFF7F1FA0CB1C2 +S315080036B00120B4E70020B2E714000020180000201B +S315080036C070B50446204600F009FB05460DB90020F2 +S315080036D02060284670BD2DE9FC4707468846914676 +S315080036E000253E4615E06B46012201A9484600F032 +S315080036F0EDF90098012800D00FE09DF804400D2C44 +S3150800370000D106E006F8014B6D1C0A2C00D104E036 +S3150800371000BFA8F10100A842E5DC00BF0020307018 +S3150800372015B13846BDE8FC870020FBE72DE9F047D0 +S3150800373004460E46204601F034FA8246BAF1000FD6 +S3150800374002D05046BDE8F087A07900F0800008B1A5 +S315080037500220F7E7E068B04204D2A07900F0020040 +S3150800376000B9E668D4F808904FF00008C4F8088055 +S31508003770002E77D0206880784702B9F1000F11D063 +S31508003780701EB0FBF7F1A9F10100B0FBF7F081421A +S3150800379008D3A9F10100791E8843A060A068361AEB +S315080037A0656918E02569ADB900212068FFF7F2F8C8 +S315080037B00546012D05D1A07940F08000A0710220B0 +S315080037C0C0E7681C28B9A07940F08000A0710120E4 +S315080037D0B8E725616561002D44D029E0A07900F09D +S315080037E0020038B129462068FFF7D4F8054635B9EE +S315080037F03E461FE02946206800F047FD0546681C3E +S3150800380028B9A07940F08000A07101209AE7012D1F +S3150800381003D920688069A84205D8A07940F08000BD +S31508003820A07102208EE76561A0683844A060F61B87 +S31508003830BE42D3D800BFA0683044A060C6F30800D3 +S3150800384068B129462068FFF74FF88046B8F1000F9F +S3150800385006D1A07940F08000A071022072E701E04D +S3150800386008EB56282089C0F3080050B3A0694045E4 +S3150800387027D0A07900F0400090B12168487801234C +S3150800388004F12401A269FFF7C1FE28B1A07940F02E +S315080038908000A071012055E7A07920F04000A071B2 +S315080038A0216848780123424604F12401FFF75AFEAD +S315080038B028B1A07940F08000A071012042E7C4F841 +S315080038C01880D4E90201884205D9A068E060A07989 +S315080038D040F02000A071504634E700000246012A55 +S315080038E001DB0B207047074850F822300BB1002047 +S315080038F0187009B100200870024840F8221000200C +S31508003900F0E70000480000202DE9F7438CB0054693 +S3150800391016461DB909200FB0BDE8F08300202860BF +S3150800392006F01F0626F0010203A90DA8FEF70EFEF3 +S315080039300746002F7ED1CDF824D04C480A9003A81C +S315080039400D9900F005FC0746089C0FB904B906272F +S3150800395006F01C00002851D04FB1042F03D103A84C +S31508003960FFF728FB074646F00806089C09E0E07AB8 +S3150800397000F0110008B1072703E006F0040000B1C3 +S315080039800827002F39D106F00800002835D000F0A6 +S31508003990EFFC804684F80E804FEA1821E1734FEA5F +S315080039A0184121744FEA186161740020E07220778B +S315080039B000216177A177E1772146039800F070FD31 +S315080039C081460021204601F047F801200399087135 +S315080039D0B9F1000F11D00398D0F830804946039802 +S315080039E000F032FF074647B9A9F101000399C860FC +S315080039F04146039800F096FD07460EE06FB9E07A57 +S31508003A0000F0100008B1042707E006F0020020B114 +S31508003A10E07A00F0010000B1072747B906F0080070 +S31508003A2008B146F020060398006BE8612C620FB9CE +S31508003A30AE7100E017E02146039800F031FD2861D9 +S31508003A40E07F0106A07F41EA0041607F41EA00204D +S31508003A50217F0843E8600020A860A86103982860D1 +S31508003A600398C088A880384655E700006A0D0020EC +S31508003A707CB504460E460A2C03D131460D20FFF7C5 +S31508003A80F7FF8DF80040012501AB2A466946304606 +S31508003A9000F0D6F90198A84200D17CBD4FF0FF305E +S31508003AA0FBE770B504460E4600250AE02078314645 +S31508003AB0FFF7DEFF401C10B94FF0FF3070BD641CE5 +S31508003AC06D1C20780028F1D12846F7E72DE9FF4F2D +S31508003AD083B0044615469A46DDF810B00020CAF8A9 +S31508003AE00000204601F05DF80290029818B102988D +S31508003AF007B0BDE8F08FA07900F0800008B1022079 +S31508003B00F6E7A07900F0010008B90720F0E7D4E944 +S31508003B100210401A00900098854200D9009DB5E031 +S31508003B202089C0F3080000287ED120688078401ECE +S31508003B30A16800EA512000F0FF09B9F1000F1DD174 +S31508003B40A06810B92069019004E06169206800F056 +S31508003B509CFB01900198022805D2A07940F08000CC +S31508003B60A0710220C4E70198401C28B9A07940F04A +S31508003B708000A0710120BBE7019860616169206837 +S31508003B80FEF7B2FE06462EB9A07940F08000A07175 +S31508003B900220ADE74E444FEA5528B8F1000F2DD064 +S31508003BA009EB080021688978884203D9206880785B +S31508003BB0A0EB090808F0FF03216848783246594601 +S31508003BC0FFF7D0FC28B1A07940F08000A071012051 +S31508003BD08EE7A07900F0400068B1A069801B4045D7 +S31508003BE009D2A169891B0BEB41204FF4007204F13D +S31508003BF0240100F080FC4FEA48273DE0A069B04266 +S31508003C0026D0A07900F0400098B1216848780123B1 +S31508003C1004F12401A269FFF7F9FC30B1A07940F05C +S31508003C208000A071012063E713E0A07920F040002E +S31508003C30A071216848780123324604F12401FFF770 +S31508003C4091FC28B1A07940F08000A07101204FE7CF +S31508003C50A6612089C0F30800C0F50077AF4200D9F5 +S31508003C602F462089C0F3080204F1240011183A46A9 +S31508003C70584600F040FC00BFBB44A0683844A0602A +S31508003C80DAF800003844CAF80000ED1B002D7FF46E +S31508003C9047AF00202CE7000033B58DB00D46002253 +S31508003CA004A90DA8FEF752FC04468CB901A80A908F +S31508003CB009480B9004A80D9900F04AFA04463CB945 +S31508003CC0099820B1294604A800F056FB00E006240E +S31508003CD020460FB030BD00006A0D00202DE9F041E6 +S31508003CE00446204600F05DFF0746002F4CD1A07918 +S31508003CF000F02000002847D0A07900F0400078B1F5 +S31508003D0021684878012304F12401A269FFF77EFCA3 +S31508003D1010B10120BDE8F081A07920F04000A07123 +S31508003D20E169206800F0FEFB0746002F2CD1256AC2 +S31508003D30E87A40F02000E872207B2877A089010AFB +S31508003D406977E068010CA977E068010EE9772846EB +S31508003D50216900F081FE00F00BFB0646AE75310ABC +S31508003D60E975310C2976310E69760020A874002190 +S31508003D70E974A07920F02000A0710120216808715B +S31508003D80206800F081FE07463846C3E771B595B04E +S31508003D9001220CA915A8FEF7D9FB0446002C49D127 +S31508003DA0CDF848D0254813900CA8159900F0D0F9FD +S31508003DB0044600BF002C3DD1119E0EB9062404E02E +S31508003DC0F07A00F0010000B1072431460C9800F0A3 +S31508003DD067FB0546ECB9F07A00F01000C8B1022D71 +S31508003DE001D2022415E024220CA903A800F083FBC3 +S31508003DF00595022103A8FFF7A8F904464CB9002146 +S31508003E0003A8FFF775F8044604B90724042C00D163 +S31508003E1000247CB90CA8FFF768F9044654B925B103 +S31508003E2029460C9800F010FD04461CB90C9800F0C1 +S31508003E302BFE0446204616B070BD00006A0D002011 +S31508003E402DE9FF4F83B0044615469B46049801901A +S31508003E500020CBF80000204600F0A3FE029002984E +S31508003E6018B1029807B0BDE8F08FA07900F080007D +S31508003E7008B10220F6E7A07900F0020008B9072089 +S31508003E80F0E7E0682844E168884200D20025CDE0E2 +S31508003E902089C0F30800002877D120688078401E62 +S31508003EA0A16800EA512000F0FF0ABAF1000F2AD1F2 +S31508003EB0A06858B9D4F81080B8F1000F0BD10021CA +S31508003EC02068FEF767FD8046206104E06169206886 +S31508003ED0FEF760FD8046B8F1000F00D1A9E0B8F101 +S31508003EE0010F05D1A07940F08000A0710220B9E742 +S31508003EF008F1010028B9A07940F08000A0710120DE +S31508003F00B0E7C4F81480A07900F0400090B12168A9 +S31508003F104878012304F12401A269FFF777FB28B149 +S31508003F20A07940F08000A07101209BE7A07920F0DD +S31508003F304000A07161692068FEF7D6FC06462EB9D6 +S31508003F40A07940F08000A07102208BE756444FEA22 +S31508003F505529B9F1000F2FD00AEB09002168897895 +S31508003F60884203D920688078A0EB0A0909F0FF0384 +S31508003F702168487832460199FFF748FB30B1A079A5 +S31508003F8040F08000A07101206CE72CE0A069801B3E +S31508003F9048450ED2A069801B019A02EB40214FF4D6 +S31508003FA0007204F1240000F0A6FAA07920F040007F +S31508003FB0A0714FEA49272DE0A069B04212D0D4E992 +S31508003FC0020188420ED2216848780123324604F15C +S31508003FD02401FFF7C7FA28B1A07940F08000A07144 +S31508003FE001203FE7A6612089C0F30800C0F50077E5 +S31508003FF0AF4200D92F462189C1F3080204F12401F2 +S3150800400050183A46019900F076FAA07940F0400037 +S31508004010A07100BF019838440190A0683844A06098 +S31508004020DBF800003844CBF80000ED1B002D7FF4C8 +S315080040302FAF00BFD4E90201884201D9A068E06029 +S31508004040A07940F02000A07100200BE710B50246C9 +S31508004050802A01DA10461BE051B1FF2A01DD002350 +S3150800406004E0A2F180030B4C34F8133018460FE035 +S31508004070002007E0074B33F81030934200D103E0E5 +S31508004080431C98B28028F5DB00BF00F18003D8B244 +S3150800409010BD00002E4E00080246002100E0491C13 +S315080040A0094830F8110020B1074830F8110090424D +S315080040B0F5D1054830F8110018B1044830F8110058 +S315080040C070471046FCE700002E4F00080E51000806 +S315080040D0F0B504461D464D730F27CF7200270F73A0 +S315080040E08F76BC4681F81BC0571E07EB870C0CEB76 +S315080040F0C706002738463B4600BF4FF6FF77B8424B +S3150800410003D03746761C34F81700DFF840C01CF891 +S3150800411003C001F80C000712DFF830C01CF803C012 +S315080041208C448CF8017008B94FF6FF705F1C3B464B +S315080041300D2FE2D34FF6FF77B84202D034F8167047 +S315080041400FB942F040020A70F0BD0000204E000888 +S315080041502DE9F3410446019800782F2803D00198E9 +S3150800416000785C2802D10198401C01900020A060CC +S3150800417001980078202807D200212046FEF7E5FF9F +S3150800418005460020606129E000BF01A92046FEF728 +S3150800419067FC054605B120E02046FEF7B0FD05465A +S315080041A0A069C67A45B1042D00D016E000BF06F016 +S315080041B0040000B9052510E006F0040000B10CE083 +S315080041C06769F87A00F0100008B9052505E0394650 +S315080041D0206800F065F9A060D7E700BF2846BDE86B +S315080041E0FC812DE9FC4780468A4617461C460B2269 +S315080041F05146404600F07FF9052C0ADD00BF6010E5 +S3150800420000EBC43137F8022B881884B238880028A6 +S31508004210F5D1072500BF2046E11704EB11710911F6 +S31508004220A4EB0111303101F0FF09B9F1390F03DDB3 +S3150800423009F1070000F0FF0928466D1E0DF80090E9 +S315080042402046E11704EB1171C1F30F14002CE2D1DB +S315080042507E200DF80500002600E0761CAE4203D24B +S3150800426018F806002028F8D100BF082D04D22846E1 +S315080042706D1C1DF8000000E020203146761C08F869 +S315080042800100082EF1D3BDE8FC872DE9F04105466B +S315080042900C46022C02D3A869A04202D80120BDE828 +S315080042A0F0812878012804D002282CD003285AD176 +S315080042B03DE0274607EB5707686A00EB5721284673 +S315080042C000F030F900B14EE0C7F3080105F13400FB +S315080042D010F801807F1C686A00EB5721284600F019 +S315080042E021F900B13FE0C7F3080105F13400405C4D +S315080042F048EA002804F0010010B14FEA1810CEE78A +S31508004300C8F30B00CBE7686A00EB1421284600F0D7 +S3150800431009F900B127E040F2FF1000EA440105F16F +S3150800432034000E183078717840EA0120B7E7686AD9 +S3150800433000EBD411284600F0F5F800B113E040F27E +S31508004340FF1000EA840105F134000E18F078000623 +S31508004350B17840EA0140717840EA01203178084393 +S3150800436020F070409BE700BF4FF0FF3097E7000052 +S31508004370004870470000AA422DE9FC5F81460E46B8 +S3150800438006F10908D9F81000002851D0D9F81440C8 +S31508004390207B0190002714E0E55D202D00D112E076 +S315080043A0052D00D1E525019800F0080030B1412D12 +S315080043B004DB5A2D02DC05F12000C5B208F8015BC2 +S315080043C07F1C082FE8D300BF207A202819D02E207A +S315080043D008F8010B082711E0E55D202D00D10FE054 +S315080043E0019800F0100030B1412D04DB5A2D02DC93 +S315080043F005F12000C5B208F8015B7F1C0B2FEBD333 +S3150800440000BFE07A3072E07F0106A07F41EA0041F2 +S31508004410607F41EA0020217F08433060217E607E6C +S3150800442041EA0020B080A17DE07D41EA0020F080CD +S31508004430002088F80000B06980B3F06970B3B069ED +S3150800444000900027D9F8100020B3B9F820004FF6DD +S31508004450FF7188421ED0D9F81CB015E000215046DD +S31508004460FFF7F4FD8246BAF1000F01D1002710E0EC +S3150800447000BFF069401EB84201D8002709E0384657 +S315080044807F1C009901F800A03BF8021BB1F1000A55 +S31508004490E4D100BF00210098C15500BFBDE8FC9FCC +S315080044A010B502468C7ECB7E44EA03201378032B94 +S315080044B005D10C7D4B7D44EA032340EA034010BD39 +S315080044C0FDF716FAFBF78CFF01E0FBF797FFFCE711 +S315080044D0F0B503461C460D46002000BF161EA2F185 +S315080044E0010207D014F8017B15F801CBA7EB0C06DF +S315080044F0301EF3D0F0BD70B503460C4603E014F841 +S31508004500015B03F8015B151EA2F10102F7D170BD2C +S3150800451030B5034601E003F8011B141EA2F101029F +S31508004520F9D130BD70B504460D46206BA84210D0AF +S31508004530204600F00DFB08B1012070BD607801230C +S315080045402A4604F13401FFF70DF808B10120F4E713 +S3150800455025630020F1E70000F0B50346087800F06F +S315080045603F00401E00EB800707EBC002002501262E +S3150800457000BF1548405D085C134F7F5D0F447F7888 +S3150800458040EA07244EB1FF2A01D30020F0BD264693 +S315080045901046521C23F8104005E04FF6FF7084427F +S315080045A001D00020F2E7681C05460D28E1D30878FB +S315080045B000F0400030B1FF2A01D30020E6E70020D2 +S315080045C023F812000120E1E7204E0008034800788E +S315080045D040F00100014908707047000014000020EF +S315080045E000B587B001210820FDF724FA01218803C8 +S315080045F0FDF710FA4FF48050ADF8040010208DF83E +S31508004600070003208DF8060001A92648FDF798F84B +S315080046104FF480512348FDF769F94FF42040ADF86F +S31508004620040003208DF8060018208DF8070001A95C +S315080046301C48FDF785F84FF48040ADF80400482083 +S315080046408DF8070001A91748FDF77AF80020ADF89C +S3150800465008004FF48270ADF80A000020ADF80C008F +S31508004660ADF80E00ADF810004FF40070ADF812006A +S315080046703820ADF814000020ADF816000720ADF874 +S31508004680180002A90848FDF775FA00210648FDF743 +S315080046904BFA01210448FDF753FA00F067F907B011 +S315080046A000BD0000000C0140003800402DE9F0472D +S315080046B005460E461746022E02D3A869B04202D80E +S315080046C04FF002088AE02878012804D0022841D051 +S315080046D003287DD154E0B14609EB5909686A00EB15 +S315080046E059212846FFF71EFF8046B8F1000F00D073 +S315080046F071E0C9F3080105F134000C1806F0010051 +S3150800470020B1F9B2207861F31F1000E03846207016 +S3150800471009F1010901202871686A00EB5921284628 +S31508004720FFF700FF8046B8F1000F00D053E0C9F349 +S31508004730080105F134000C1806F0010010B1C7F3A2 +S31508004740071005E0207800F0F000C7F303210843BE +S31508004750207040E0686A00EB16212846FFF7E2FE63 +S315080047608046B8F1000F00D035E040F2FF1000EAAD +S31508004770460105F134000C182770380A60702AE0E3 +S31508004780686A00EBD6112846FFF7CCFE8046B8F1DA +S31508004790000F00D01FE040F2FF1000EA860105F185 +S315080047A034000C18E0780006A17840EA01406178E8 +S315080047B040EA01202178084300F07040074327703B +S315080047C0380A6070380CA070380EE07003E0FFE716 +S315080047D04FF0020800BF00BF012028714046BDE81F +S315080047E0F0872DE9F04105460E46FDF785FA00F1FA +S315080047F0640700BFFF2000F005FA0446FF2C03D12A +S31508004800FDF77AFAB842F5D3FE2C02D00020BDE8AF +S31508004810F08100BF28466D1C00F00FF828466D1C75 +S3150800482000F00BF8B01E061EF4D1FF2000F0EAF9DE +S31508004830FF2000F0E7F90120E9E710B50446FF205C +S3150800484000F0E0F9207010BD2DE9F04104460E464F +S31508004850022E02D3A069B04201D8022725E000271C +S315080048601FE031462046FFF710FD054605B91BE057 +S31508004870012D01D1022717E0681C08B9012713E0AA +S31508004880002231462046FFF711FF074607B10BE025 +S315080048902069401C20B12069401C206101206071FC +S315080048A02E46A069B042DCD800BF3846BDE8F08184 +S315080048B010B54FF480510748FDF716F8FF2000F0B1 +S315080048C0A1F900F089F908B1012010BDFEF7E0F959 +S315080048D00020FAE7000C01402DE9F04104460D4698 +S315080048E004F0800058B104F07F0400213720FFF758 +S315080048F0F3FF0646012E02DD3046BDE8F081FEF7DD +S31508004900C7F9FFF7D5FF08B9FF20F6E744F04000DE +S3150800491000F078F9280E00F075F9C5F3074000F0A5 +S3150800492071F9C5F3072000F06DF9E8B200F06AF9ED +S31508004930012704B99527082C00D18727384600F0A7 +S3150800494061F90C2C02D1FF2000F05CF90A2700BFA0 +S31508004950FF2000F057F9064606F0800018B1781EC9 +S31508004960C0B2071EF4D13046C7E7000038B54FF489 +S3150800497080511E48FCF7BAFF4FF40040ADF800001E +S3150800498003208DF8020010208DF8030069461748A9 +S31508004990FCF7D6FE4FF400411448FCF7A7FF0024A5 +S315080049A012E000BF02211248FDF7D6F80028F9D018 +S315080049B0FF210F48FDF7DCF800BF01210C48FDF781 +S315080049C0CBF80028F9D0641C0A2CEAD34FF400402F +S315080049D0ADF8000003208DF8020018208DF80300BA +S315080049E069460248FCF7ACFE38BD0000000C0140E1 +S315080049F00038004000B585B000211648FDF7A0F83C +S31508004A000020ADF800004FF48270ADF802000020D7 +S31508004A10ADF80400ADF80600ADF808004FF40070D4 +S31508004A20ADF80A000820ADF80C000020ADF80E001D +S31508004A300720ADF8100069460648FDF79BF80021E7 +S31508004A400448FDF771F801210248FDF779F805B029 +S31508004A5000BD00000038004081760B0AC3760A0CB8 +S31508004A6002750B0E4375704730B5014600200B22C0 +S31508004A7000BF431003EBC01411F8015B6319D8B2E9 +S31508004A80531E1A1EF5D130BD70B50446204600F0F7 +S31508004A905FF80546002D59D1207803284FD1607953 +S31508004AA000284CD0002020634FF40072002104F146 +S31508004AB03400FFF72DFD552184F83212AA2184F817 +S31508004AC03312522084F834005221352001556121D1 +S31508004AD036200155412137200155722184F81812D4 +S31508004AE084F81912412184F81A12612184F81B12DC +S31508004AF0217C84F81C12208A010A84F81D12206978 +S31508004B00010C84F81E122069010E84F81F12217BFD +S31508004B1084F82012A089010A84F82112E068010CA1 +S31508004B2084F82212E068010E84F8231260780123C3 +S31508004B3004F134016269FEF769FD0020607160784E +S31508004B4000221146FEF7F2FB00B10125284670BD8A +S31508004B5070B50446207910B3256B607801232A4680 +S31508004B6004F13401FEF752FD08B1012070BD0020A2 +S31508004B702071606AA84212D8E169606A0844A842AE +S31508004B800DD9E67809E0E0690544607801232A46EC +S31508004B9004F13401FEF73AFD761E022EF3D2002008 +S31508004BA0E4E770B505462C464CB1206838B1206854 +S31508004BB0007820B12068C088A188884201D00920E1 +S31508004BC070BD21684878FEF717FD00F0010008B1AE +S31508004BD00320F5E70020F3E770B5FDF78DF800F53B +S31508004BE0FA7500BFFF2000F00DF80446FF2C03D02D +S31508004BF0FDF782F8A842F5D3FF2C01D1012070BD3C +S31508004C000020FCE710B5044621460748FCF7B0FF2C +S31508004C1000BF01210448FCF79FFF0028F9D002488D +S31508004C20FCF7A3FFC0B210BD003800402DE9F041E3 +S31508004C3004460D46FFF7D0FF10B90020BDE8F08105 +S31508004C402846FFF7DFFFFD2D1DD04FF4007700BF84 +S31508004C5014F8010BFFF7D6FF14F8010BFFF7D2FF84 +S31508004C60B81E071EF4D1FF20FFF7CCFFFF20FFF781 +S31508004C70C9FFFF20FFF7C6FF064606F01F000528F6 +S31508004C8001D00020DAE70120D8E7000010B5002996 +S31508004C900AD00878002807D005487844FBF7E8FAD0 +S31508004CA0002801D0002010BD0248784410BD00003D +S31508004CB0760600006E0600002F64656D6F70726FD1 +S31508004CC0675F6F6C696D65785F73746D33327031C9 +S31508004CD030332E73726563004F70656E424C540014 +S31508004CE005020602060307030803090309040A0462 +S31508004CF00B040C040C050D050E050F050F06100612 +S31508004D0010071008006000080020000003000000DB +S31508004D1000800008002000000400000000A0000831 +S31508004D20002000000500000000C000080020000068 +S31508004D300600000000E00008002000000700000050 +S31508004D4000000108002000000800000000200108FB +S31508004D5000200000090000000040010800200000B3 +S31508004D600A00000000600108002000000B00000097 +S31508004D7000800108002000000C00000000A00108C7 +S31508004D80002000000D00000000C0010800200000FF +S31508004D900E00000000E00108002000000F000000DF +S31508004DA0809A90418E418F804545454949498E8F65 +S31508004DB09092924F994F555559999A9B9C9D9E9FB3 +S31508004DC041494F55A5A5A6A7A8A9AAABAC21AEAF40 +S31508004DD0B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF4D +S31508004DE0C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF3D +S31508004DF0D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF2D +S31508004E00E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF1C +S31508004E10F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF0C +S31508004E2001030507090E10121416181C1E00C700E8 +S31508004E30FC00E900E200E400E000E500E700EA0023 +S31508004E40EB00E800EF00EE00EC00C400C500C90066 +S31508004E50E600C600F400F600F200FB00F900FF00C9 +S31508004E60D600DC00A200A300A500A7209201E1005D +S31508004E70ED00F300FA00F100D100AA00BA00BF0065 +S31508004E801023AC00BD00BC00A100AB00BB009125FF +S31508004E909225932502252425612562255625552523 +S31508004EA06325512557255D255C255B251025142589 +S31508004EB034252C251C2500253C255E255F255A25ED +S31508004EC0542569256625602550256C25672568259E +S31508004ED06425652559255825522553256B256A25A8 +S31508004EE018250C25882584258C2590258025B10331 +S31508004EF0DF009303C003A303C303B500C403A603DB +S31508004F009803A903B4031E22C603B5032922612206 +S31508004F10B1006522642220232123F7004822B0002D +S31508004F201922B7001A227F20B200A025A00061002E +S31508004F306200630064006500660067006800690037 +S31508004F406A006B006C006D006E006F0070007100E7 +S31508004F507200730074007500760077007800790097 +S31508004F607A00A100A200A300A500AC00AF00E000F3 +S31508004F70E100E200E300E400E500E600E700E800FF +S31508004F80E900EA00EB00EC00ED00EE00EF00F000AF +S31508004F90F100F200F300F400F500F600F800F9005D +S31508004FA0FA00FB00FC00FD00FE00FF000101030102 +S31508004FB00501070109010B010D010F01110113017B +S31508004FC01501170119011B011D011F0121012301EB +S31508004FD02501270129012B012D012F01310133015B +S31508004FE0350137013A013C013E01400142014401C5 +S31508004FF0460148014B014D014F015101530155012D +S31508005000570159015B015D015F016101630165019A +S31508005010670169016B016D016F017101730175010A +S3150800502077017A017C017E019201B103B203B303D1 +S31508005030B403B503B603B703B803B903BA03BB038E +S31508005040BC03BD03BE03BF03C003C103C303C4033C +S31508005050C503C603C703C803C903CA03300431041A +S315080050603204330434043504360437043804390466 +S315080050703A043B043C043D043E043F044004410416 +S3150800508042044304440445044604470448044904C6 +S315080050904A044B044C044D044E044F045104520474 +S315080050A053045404550456045704580459045A041E +S315080050B05B045C045E045F04702171217221732114 +S315080050C07421752176217721782179217A217B210E +S315080050D07C217D217E217F2141FF42FF43FF44FF42 +S315080050E045FF46FF47FF48FF49FF4AFF4BFF4CFF76 +S315080050F04DFF4EFF4FFF50FF51FF52FF53FF54FF26 +S3150800510055FF56FF57FF58FF59FF5AFF0000410049 +S315080051104200430044004500460047004800490055 +S315080051204A004B004C004D004E004F005000510005 +S3150800513052005300540055005600570058005900B5 +S315080051405A002100E0FFE1FFE5FFE2FFE3FFC000B0 +S31508005150C100C200C300C400C500C600C700C8001D +S31508005160C900CA00CB00CC00CD00CE00CF00D000CD +S31508005170D100D200D300D400D500D600D800D9007B +S31508005180DA00DB00DC00DD00DE0078010001020148 +S315080051900401060108010A010C010E0110011201A1 +S315080051A01401160118011A011C011E012001220111 +S315080051B02401260128012A012C012E013001320181 +S315080051C03401360139013B013D013F0141014301EB +S315080051D0450147014A014C014E0150015201540153 +S315080051E0560158015A015C015E01600162016401C1 +S315080051F0660168016A016C016E0170017201740131 +S31508005200760179017B017D01910191039203930354 +S315080052109403950396039703980399039A039B03AC +S315080052209C039D039E039F03A003A103A303A4035A +S31508005230A503A603A703A803A903AA031004110438 +S315080052401204130414041504160417041804190484 +S315080052501A041B041C041D041E041F042004210434 +S3150800526022042304240425042604270428042904E4 +S315080052702A042B042C042D042E042F0401040204F2 +S3150800528003040404050406040704080409040A04BC +S315080052900B040C040E040F046021612162216321B2 +S315080052A06421652166216721682169216A216B21AC +S315080052B06C216D216E216F2121FF22FF23FF24FF20 +S315080052C025FF26FF27FF28FF29FF2AFF2BFF2CFF94 +S315080052D02DFF2EFF2FFF30FF31FF32FF33FF34FF44 +S315080052E035FF36FF37FF38FF39FF3AFF0000000069 +S315080052F02054000800000020500000002801000883 +S315080053007054000850000020801500004401000871 +S315080053101001000043000000F8FFFFFF0040404076 +S31508005320404040404040414141414140404040406A +S315080053304040404040404040404040404005020216 +S3150800534002020202020202020202020202202020D5 +S315080053502020202020202002020202020202909031 +S31508005360909090901010101010101010101010102F +S315080053701010101010101010020202020202888883 +S31508005380888888880808080808080808080808088F +S315080053900808080808080808020202024000000077 S315080053A000000000000000000000000000000000EF S315080053B000000000000000000000000000000000DF S315080053C000000000000000000000000000000000CF @@ -1343,9 +1343,10 @@ S315080053D000000000000000000000000000000000BF S315080053E000000000000000000000000000000000AF S315080053F0000000000000000000000000000000009F S31508005400000000000000000000000000000000008E -S315080054100102030401020304060708090204060838 -S31508005420010000000000000000000000000000006D -S31508005430000000000000000004000000000000005A -S31508005440000000000000000000000000000000004E -S3110800545000000000000000000000000042 +S31508005410000000000000000000000000000000007E +S31508005420000000000102030401020304060708093C +S315080054300204060801000000000000000000000049 +S31508005440000000000000000000000000040000004A +S31508005450000000000000000000000000000000003E +S31508005460000000000000000000000000000000002E S705080000ED05 diff --git a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/hooks.c b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/hooks.c index a2115ed0..349e7f79 100644 --- a/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/hooks.c +++ b/Target/Demo/ARMCM3_STM32_Olimex_STM32P103_Keil/Boot/hooks.c @@ -316,13 +316,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while(USART_GetFlagStatus(USART2, USART_FLAG_TC) == RESET) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.elf b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.elf index 7fcb634f..88afd3ae 100644 Binary files a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.elf and b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.elf differ diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.map b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.map index 3b0e9a33..67b18f9e 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.map +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.map @@ -1998,7 +1998,7 @@ Discarded input sections .debug_aranges 0x00000000 0x48 THUMB Debug/../../obj/uip-fw.o .debug_ranges 0x00000000 0x108 THUMB Debug/../../obj/uip-fw.o - .debug_line 0x00000000 0x276 THUMB Debug/../../obj/uip-fw.o + .debug_line 0x00000000 0x27a THUMB Debug/../../obj/uip-fw.o .debug_str 0x00000000 0x3bf THUMB Debug/../../obj/uip-fw.o .comment 0x00000000 0x4f THUMB Debug/../../obj/uip-fw.o .ARM.attributes @@ -2015,7 +2015,7 @@ Discarded input sections .debug_aranges 0x00000000 0x20 THUMB Debug/../../obj/uiplib.o .debug_ranges 0x00000000 0x10 THUMB Debug/../../obj/uiplib.o - .debug_line 0x00000000 0x1a2 THUMB Debug/../../obj/uiplib.o + .debug_line 0x00000000 0x1b0 THUMB Debug/../../obj/uiplib.o .debug_str 0x00000000 0x1b5 THUMB Debug/../../obj/uiplib.o .comment 0x00000000 0x4f THUMB Debug/../../obj/uiplib.o .ARM.attributes @@ -2791,7 +2791,7 @@ CM3_System_Control_Space 0xe000e000 0x00001000 xw Linker script and memory map - 0x08009d7c __do_debug_operation = __do_debug_operation_mempoll + 0x08009d8c __do_debug_operation = __do_debug_operation_mempoll 0x08000000 __FLASH_segment_start__ = 0x8000000 0x0800c000 __FLASH_segment_end__ = 0x800c000 0x10000000 __DATA_SRAM_segment_start__ = 0x10000000 @@ -2875,7 +2875,7 @@ Linker script and memory map 0x00000001 . = ASSERT (((__init_end__ >= __FLASH_segment_start__) && (__init_end__ <= __FLASH_segment_end__)), error: .init is too large to fit in FLASH memory segment) 0x08000290 __text_load_start__ = ALIGN (__init_end__, 0x4) -.text 0x08000290 0x9b30 +.text 0x08000290 0x9b40 0x08000290 __text_start__ = . *(.text .text.* .glue_7t .glue_7 .gnu.linkonce.t.* .gcc_except_table .ARM.extab* .gnu.linkonce.armextab.*) .glue_7 0x00000000 0x0 linker stubs @@ -3279,410 +3279,410 @@ Linker script and memory map 0x08003e70 0x28 THUMB Debug/../../obj/hooks.o 0x08003e70 FileFirmwareUpdateStartedHook .text.FileFirmwareUpdateCompletedHook - 0x08003e98 0x38 THUMB Debug/../../obj/hooks.o + 0x08003e98 0x48 THUMB Debug/../../obj/hooks.o 0x08003e98 FileFirmwareUpdateCompletedHook .text.FileFirmwareUpdateErrorHook - 0x08003ed0 0x14 THUMB Debug/../../obj/hooks.o - 0x08003ed0 FileFirmwareUpdateErrorHook + 0x08003ee0 0x14 THUMB Debug/../../obj/hooks.o + 0x08003ee0 FileFirmwareUpdateErrorHook .text.FileFirmwareUpdateLogHook - 0x08003ee4 0x58 THUMB Debug/../../obj/hooks.o - 0x08003ee4 FileFirmwareUpdateLogHook + 0x08003ef4 0x58 THUMB Debug/../../obj/hooks.o + 0x08003ef4 FileFirmwareUpdateLogHook .text.startup.main - 0x08003f3c 0xf8 THUMB Debug/../../obj/main.o - 0x08003f3c main + 0x08003f4c 0xf8 THUMB Debug/../../obj/main.o + 0x08003f4c main .text.USB_OTG_BSP_Init - 0x08004034 0xb0 THUMB Debug/../../obj/usb_bsp.o - 0x08004034 USB_OTG_BSP_Init + 0x08004044 0xb0 THUMB Debug/../../obj/usb_bsp.o + 0x08004044 USB_OTG_BSP_Init .text.USB_OTG_BSP_EnableInterrupt - 0x080040e4 0x4 THUMB Debug/../../obj/usb_bsp.o - 0x080040e4 USB_OTG_BSP_EnableInterrupt + 0x080040f4 0x4 THUMB Debug/../../obj/usb_bsp.o + 0x080040f4 USB_OTG_BSP_EnableInterrupt .text.USB_OTG_BSP_uDelay - 0x080040e8 0x1c THUMB Debug/../../obj/usb_bsp.o - 0x080040e8 USB_OTG_BSP_uDelay + 0x080040f8 0x1c THUMB Debug/../../obj/usb_bsp.o + 0x080040f8 USB_OTG_BSP_uDelay .text.USB_OTG_BSP_mDelay - 0x08004104 0x24 THUMB Debug/../../obj/usb_bsp.o - 0x08004104 USB_OTG_BSP_mDelay + 0x08004114 0x24 THUMB Debug/../../obj/usb_bsp.o + 0x08004114 USB_OTG_BSP_mDelay .text.USBD_bulk_GetCfgDesc - 0x08004128 0x10 THUMB Debug/../../obj/usbd_bulk.o + 0x08004138 0x10 THUMB Debug/../../obj/usbd_bulk.o .text.usbd_bulk_SOF - 0x08004138 0x18 THUMB Debug/../../obj/usbd_bulk.o + 0x08004148 0x18 THUMB Debug/../../obj/usbd_bulk.o .text.usbd_bulk_DataIn - 0x08004150 0xc THUMB Debug/../../obj/usbd_bulk.o + 0x08004160 0xc THUMB Debug/../../obj/usbd_bulk.o .text.usbd_bulk_DataOut - 0x0800415c 0xc THUMB Debug/../../obj/usbd_bulk.o + 0x0800416c 0xc THUMB Debug/../../obj/usbd_bulk.o .text.usbd_bulk_DeInit - 0x08004168 0x18 THUMB Debug/../../obj/usbd_bulk.o + 0x08004178 0x18 THUMB Debug/../../obj/usbd_bulk.o .text.usbd_bulk_Init - 0x08004180 0x30 THUMB Debug/../../obj/usbd_bulk.o + 0x08004190 0x30 THUMB Debug/../../obj/usbd_bulk.o .text.usbd_bulk_Setup - 0x080041b0 0x6c THUMB Debug/../../obj/usbd_bulk.o + 0x080041c0 0x6c THUMB Debug/../../obj/usbd_bulk.o .text.usbd_bulk_get_rx_buffer_ptr - 0x0800421c 0xc THUMB Debug/../../obj/usbd_bulk.o - 0x0800421c usbd_bulk_get_rx_buffer_ptr + 0x0800422c 0xc THUMB Debug/../../obj/usbd_bulk.o + 0x0800422c usbd_bulk_get_rx_buffer_ptr .text.USBD_USR_DeviceDescriptor - 0x08004228 0x10 THUMB Debug/../../obj/usbd_desc.o - 0x08004228 USBD_USR_DeviceDescriptor - .text.USBD_USR_LangIDStrDescriptor 0x08004238 0x10 THUMB Debug/../../obj/usbd_desc.o - 0x08004238 USBD_USR_LangIDStrDescriptor + 0x08004238 USBD_USR_DeviceDescriptor + .text.USBD_USR_LangIDStrDescriptor + 0x08004248 0x10 THUMB Debug/../../obj/usbd_desc.o + 0x08004248 USBD_USR_LangIDStrDescriptor .text.USBD_USR_InterfaceStrDescriptor - 0x08004248 0x20 THUMB Debug/../../obj/usbd_desc.o - 0x08004248 USBD_USR_InterfaceStrDescriptor + 0x08004258 0x20 THUMB Debug/../../obj/usbd_desc.o + 0x08004258 USBD_USR_InterfaceStrDescriptor .text.USBD_USR_ConfigStrDescriptor - 0x08004268 0x20 THUMB Debug/../../obj/usbd_desc.o - 0x08004268 USBD_USR_ConfigStrDescriptor + 0x08004278 0x20 THUMB Debug/../../obj/usbd_desc.o + 0x08004278 USBD_USR_ConfigStrDescriptor .text.USBD_USR_SerialStrDescriptor - 0x08004288 0x20 THUMB Debug/../../obj/usbd_desc.o - 0x08004288 USBD_USR_SerialStrDescriptor + 0x08004298 0x20 THUMB Debug/../../obj/usbd_desc.o + 0x08004298 USBD_USR_SerialStrDescriptor .text.USBD_USR_ManufacturerStrDescriptor - 0x080042a8 0x20 THUMB Debug/../../obj/usbd_desc.o - 0x080042a8 USBD_USR_ManufacturerStrDescriptor + 0x080042b8 0x20 THUMB Debug/../../obj/usbd_desc.o + 0x080042b8 USBD_USR_ManufacturerStrDescriptor .text.USBD_USR_ProductStrDescriptor - 0x080042c8 0x20 THUMB Debug/../../obj/usbd_desc.o - 0x080042c8 USBD_USR_ProductStrDescriptor + 0x080042d8 0x20 THUMB Debug/../../obj/usbd_desc.o + 0x080042d8 USBD_USR_ProductStrDescriptor .text.USBD_USR_Init - 0x080042e8 0x4 THUMB Debug/../../obj/usbd_usr.o - 0x080042e8 USBD_USR_Init + 0x080042f8 0x4 THUMB Debug/../../obj/usbd_usr.o + 0x080042f8 USBD_USR_Init .text.USBD_USR_DeviceReset - 0x080042ec 0x4 THUMB Debug/../../obj/usbd_usr.o - 0x080042ec USBD_USR_DeviceReset + 0x080042fc 0x4 THUMB Debug/../../obj/usbd_usr.o + 0x080042fc USBD_USR_DeviceReset .text.USBD_USR_DeviceConfigured - 0x080042f0 0x4 THUMB Debug/../../obj/usbd_usr.o - 0x080042f0 USBD_USR_DeviceConfigured + 0x08004300 0x4 THUMB Debug/../../obj/usbd_usr.o + 0x08004300 USBD_USR_DeviceConfigured .text.USBD_USR_DeviceDisconnected - 0x080042f4 0x8 THUMB Debug/../../obj/usbd_usr.o - 0x080042f4 USBD_USR_DeviceDisconnected + 0x08004304 0x8 THUMB Debug/../../obj/usbd_usr.o + 0x08004304 USBD_USR_DeviceDisconnected .text.USBD_USR_DeviceConnected - 0x080042fc 0x8 THUMB Debug/../../obj/usbd_usr.o - 0x080042fc USBD_USR_DeviceConnected + 0x0800430c 0x8 THUMB Debug/../../obj/usbd_usr.o + 0x0800430c USBD_USR_DeviceConnected .text.USBD_USR_DeviceResumed - 0x08004304 0x4 THUMB Debug/../../obj/usbd_usr.o - 0x08004304 USBD_USR_DeviceResumed + 0x08004314 0x4 THUMB Debug/../../obj/usbd_usr.o + 0x08004314 USBD_USR_DeviceResumed .text.USBD_USR_DeviceSuspended - 0x08004308 0x4 THUMB Debug/../../obj/usbd_usr.o - 0x08004308 USBD_USR_DeviceSuspended + 0x08004318 0x4 THUMB Debug/../../obj/usbd_usr.o + 0x08004318 USBD_USR_DeviceSuspended .text.UnusedISR - 0x0800430c 0x10 THUMB Debug/../../obj/vectors.o - 0x0800430c UnusedISR + 0x0800431c 0x10 THUMB Debug/../../obj/vectors.o + 0x0800431c UnusedISR .text.CpuStartUserProgram - 0x0800431c 0x3c THUMB Debug/../../obj/cpu.o - 0x0800431c CpuStartUserProgram + 0x0800432c 0x3c THUMB Debug/../../obj/cpu.o + 0x0800432c CpuStartUserProgram .text.CpuMemCopy - 0x08004358 0x54 THUMB Debug/../../obj/cpu.o - 0x08004358 CpuMemCopy + 0x08004368 0x54 THUMB Debug/../../obj/cpu.o + 0x08004368 CpuMemCopy .text.FlashGetSector - 0x080043ac 0x130 THUMB Debug/../../obj/flash.o + 0x080043bc 0x130 THUMB Debug/../../obj/flash.o .text.FlashWriteBlock - 0x080044dc 0x9c THUMB Debug/../../obj/flash.o + 0x080044ec 0x9c THUMB Debug/../../obj/flash.o .text.FlashSwitchBlock - 0x08004578 0x54 THUMB Debug/../../obj/flash.o + 0x08004588 0x54 THUMB Debug/../../obj/flash.o .text.FlashAddToBlock - 0x080045cc 0x110 THUMB Debug/../../obj/flash.o + 0x080045dc 0x110 THUMB Debug/../../obj/flash.o .text.FlashInit - 0x080046dc 0x1c THUMB Debug/../../obj/flash.o - 0x080046dc FlashInit + 0x080046ec 0x1c THUMB Debug/../../obj/flash.o + 0x080046ec FlashInit .text.FlashWrite - 0x080046f8 0x4c THUMB Debug/../../obj/flash.o - 0x080046f8 FlashWrite + 0x08004708 0x4c THUMB Debug/../../obj/flash.o + 0x08004708 FlashWrite .text.FlashErase - 0x08004744 0xc4 THUMB Debug/../../obj/flash.o - 0x08004744 FlashErase + 0x08004754 0xc4 THUMB Debug/../../obj/flash.o + 0x08004754 FlashErase .text.FlashWriteChecksum - 0x08004808 0x48 THUMB Debug/../../obj/flash.o - 0x08004808 FlashWriteChecksum + 0x08004818 0x48 THUMB Debug/../../obj/flash.o + 0x08004818 FlashWriteChecksum .text.FlashVerifyChecksum - 0x08004850 0x6c THUMB Debug/../../obj/flash.o - 0x08004850 FlashVerifyChecksum + 0x08004860 0x6c THUMB Debug/../../obj/flash.o + 0x08004860 FlashVerifyChecksum .text.FlashDone - 0x080048bc 0x34 THUMB Debug/../../obj/flash.o - 0x080048bc FlashDone + 0x080048cc 0x34 THUMB Debug/../../obj/flash.o + 0x080048cc FlashDone .text.FlashGetUserProgBaseAddress - 0x080048f0 0xc THUMB Debug/../../obj/flash.o - 0x080048f0 FlashGetUserProgBaseAddress - .text.NvmInit 0x080048fc 0x4 THUMB Debug/../../obj/nvm.o - 0x080048fc NvmInit + 0x08004900 0xc THUMB Debug/../../obj/flash.o + 0x08004900 FlashGetUserProgBaseAddress + .text.NvmInit 0x0800490c 0x4 THUMB Debug/../../obj/nvm.o + 0x0800490c NvmInit .text.NvmWrite - 0x08004900 0x4 THUMB Debug/../../obj/nvm.o - 0x08004900 NvmWrite + 0x08004910 0x4 THUMB Debug/../../obj/nvm.o + 0x08004910 NvmWrite .text.NvmErase - 0x08004904 0x4 THUMB Debug/../../obj/nvm.o - 0x08004904 NvmErase + 0x08004914 0x4 THUMB Debug/../../obj/nvm.o + 0x08004914 NvmErase .text.NvmVerifyChecksum - 0x08004908 0x4 THUMB Debug/../../obj/nvm.o - 0x08004908 NvmVerifyChecksum + 0x08004918 0x4 THUMB Debug/../../obj/nvm.o + 0x08004918 NvmVerifyChecksum .text.NvmGetUserProgBaseAddress - 0x0800490c 0x4 THUMB Debug/../../obj/nvm.o - 0x0800490c NvmGetUserProgBaseAddress - .text.NvmDone 0x08004910 0x14 THUMB Debug/../../obj/nvm.o - 0x08004910 NvmDone + 0x0800491c 0x4 THUMB Debug/../../obj/nvm.o + 0x0800491c NvmGetUserProgBaseAddress + .text.NvmDone 0x08004920 0x14 THUMB Debug/../../obj/nvm.o + 0x08004920 NvmDone .text.TimerInit - 0x08004924 0x28 THUMB Debug/../../obj/timer.o - 0x08004924 TimerInit + 0x08004934 0x28 THUMB Debug/../../obj/timer.o + 0x08004934 TimerInit .text.TimerReset - 0x0800494c 0x10 THUMB Debug/../../obj/timer.o - 0x0800494c TimerReset + 0x0800495c 0x10 THUMB Debug/../../obj/timer.o + 0x0800495c TimerReset .text.TimerUpdate - 0x0800495c 0x1c THUMB Debug/../../obj/timer.o - 0x0800495c TimerUpdate + 0x0800496c 0x1c THUMB Debug/../../obj/timer.o + 0x0800496c TimerUpdate .text.TimerGet - 0x08004978 0x20 THUMB Debug/../../obj/timer.o - 0x08004978 TimerGet + 0x08004988 0x20 THUMB Debug/../../obj/timer.o + 0x08004988 TimerGet .text.UartReceiveByte - 0x08004998 0x30 THUMB Debug/../../obj/uart.o + 0x080049a8 0x30 THUMB Debug/../../obj/uart.o .text.UartInit - 0x080049c8 0x40 THUMB Debug/../../obj/uart.o - 0x080049c8 UartInit + 0x080049d8 0x40 THUMB Debug/../../obj/uart.o + 0x080049d8 UartInit .text.UartTransmitPacket - 0x08004a08 0xb0 THUMB Debug/../../obj/uart.o - 0x08004a08 UartTransmitPacket + 0x08004a18 0xb0 THUMB Debug/../../obj/uart.o + 0x08004a18 UartTransmitPacket .text.UartReceivePacket - 0x08004ab8 0x94 THUMB Debug/../../obj/uart.o - 0x08004ab8 UartReceivePacket - .text.CanInit 0x08004b4c 0x174 THUMB Debug/../../obj/can.o - 0x08004b4c CanInit + 0x08004ac8 0x94 THUMB Debug/../../obj/uart.o + 0x08004ac8 UartReceivePacket + .text.CanInit 0x08004b5c 0x174 THUMB Debug/../../obj/can.o + 0x08004b5c CanInit .text.CanTransmitPacket - 0x08004cc0 0x9c THUMB Debug/../../obj/can.o - 0x08004cc0 CanTransmitPacket + 0x08004cd0 0x9c THUMB Debug/../../obj/can.o + 0x08004cd0 CanTransmitPacket .text.CanReceivePacket - 0x08004d5c 0x78 THUMB Debug/../../obj/can.o - 0x08004d5c CanReceivePacket + 0x08004d6c 0x78 THUMB Debug/../../obj/can.o + 0x08004d6c CanReceivePacket .text.UsbFifoMgrWrite - 0x08004dd4 0x54 THUMB Debug/../../obj/usb.o + 0x08004de4 0x54 THUMB Debug/../../obj/usb.o .text.UsbFifoMgrRead - 0x08004e28 0x50 THUMB Debug/../../obj/usb.o - .text.UsbInit 0x08004e78 0xb8 THUMB Debug/../../obj/usb.o - 0x08004e78 UsbInit - .text.UsbFree 0x08004f30 0x18 THUMB Debug/../../obj/usb.o - 0x08004f30 UsbFree + 0x08004e38 0x50 THUMB Debug/../../obj/usb.o + .text.UsbInit 0x08004e88 0xb8 THUMB Debug/../../obj/usb.o + 0x08004e88 UsbInit + .text.UsbFree 0x08004f40 0x18 THUMB Debug/../../obj/usb.o + 0x08004f40 UsbFree .text.UsbTransmitPacket - 0x08004f48 0xcc THUMB Debug/../../obj/usb.o - 0x08004f48 UsbTransmitPacket + 0x08004f58 0xcc THUMB Debug/../../obj/usb.o + 0x08004f58 UsbTransmitPacket .text.UsbReceivePacket - 0x08005014 0x88 THUMB Debug/../../obj/usb.o - 0x08005014 UsbReceivePacket + 0x08005024 0x88 THUMB Debug/../../obj/usb.o + 0x08005024 UsbReceivePacket .text.UsbTransmitPipeBulkIN - 0x0800509c 0xf4 THUMB Debug/../../obj/usb.o - 0x0800509c UsbTransmitPipeBulkIN + 0x080050ac 0xf4 THUMB Debug/../../obj/usb.o + 0x080050ac UsbTransmitPipeBulkIN .text.UsbReceivePipeBulkOUT - 0x08005190 0xcc THUMB Debug/../../obj/usb.o - 0x08005190 UsbReceivePipeBulkOUT + 0x080051a0 0xcc THUMB Debug/../../obj/usb.o + 0x080051a0 UsbReceivePipeBulkOUT .text.AssertFailure - 0x0800525c 0x18 THUMB Debug/../../obj/assert.o - 0x0800525c AssertFailure + 0x0800526c 0x18 THUMB Debug/../../obj/assert.o + 0x0800526c AssertFailure .text.BackDoorCheck - 0x08005274 0x48 THUMB Debug/../../obj/backdoor.o - 0x08005274 BackDoorCheck + 0x08005284 0x48 THUMB Debug/../../obj/backdoor.o + 0x08005284 BackDoorCheck .text.BackDoorInit - 0x080052bc 0x24 THUMB Debug/../../obj/backdoor.o - 0x080052bc BackDoorInit + 0x080052cc 0x24 THUMB Debug/../../obj/backdoor.o + 0x080052cc BackDoorInit .text.BootInit - 0x080052e0 0x20 THUMB Debug/../../obj/boot.o - 0x080052e0 BootInit + 0x080052f0 0x20 THUMB Debug/../../obj/boot.o + 0x080052f0 BootInit .text.BootTask - 0x08005300 0x1c THUMB Debug/../../obj/boot.o - 0x08005300 BootTask - .text.ComInit 0x0800531c 0x30 THUMB Debug/../../obj/com.o - 0x0800531c ComInit - .text.ComTask 0x0800534c 0x80 THUMB Debug/../../obj/com.o - 0x0800534c ComTask - .text.ComFree 0x080053cc 0x4 THUMB Debug/../../obj/com.o - 0x080053cc ComFree + 0x08005310 0x1c THUMB Debug/../../obj/boot.o + 0x08005310 BootTask + .text.ComInit 0x0800532c 0x30 THUMB Debug/../../obj/com.o + 0x0800532c ComInit + .text.ComTask 0x0800535c 0x80 THUMB Debug/../../obj/com.o + 0x0800535c ComTask + .text.ComFree 0x080053dc 0x4 THUMB Debug/../../obj/com.o + 0x080053dc ComFree .text.ComTransmitPacket - 0x080053d0 0x54 THUMB Debug/../../obj/com.o - 0x080053d0 ComTransmitPacket + 0x080053e0 0x54 THUMB Debug/../../obj/com.o + 0x080053e0 ComTransmitPacket .text.ComGetActiveInterfaceMaxRxLen - 0x08005424 0x20 THUMB Debug/../../obj/com.o - 0x08005424 ComGetActiveInterfaceMaxRxLen + 0x08005434 0x20 THUMB Debug/../../obj/com.o + 0x08005434 ComGetActiveInterfaceMaxRxLen .text.ComGetActiveInterfaceMaxTxLen - 0x08005444 0x20 THUMB Debug/../../obj/com.o - 0x08005444 ComGetActiveInterfaceMaxTxLen + 0x08005454 0x20 THUMB Debug/../../obj/com.o + 0x08005454 ComGetActiveInterfaceMaxTxLen .text.ComIsConnected - 0x08005464 0x4 THUMB Debug/../../obj/com.o - 0x08005464 ComIsConnected - .text.CopInit 0x08005468 0x4 THUMB Debug/../../obj/cop.o - 0x08005468 CopInit + 0x08005474 0x4 THUMB Debug/../../obj/com.o + 0x08005474 ComIsConnected + .text.CopInit 0x08005478 0x4 THUMB Debug/../../obj/cop.o + 0x08005478 CopInit .text.CopService - 0x0800546c 0x4 THUMB Debug/../../obj/cop.o - 0x0800546c CopService - .text.XcpInit 0x08005470 0x1c THUMB Debug/../../obj/xcp.o - 0x08005470 XcpInit + 0x0800547c 0x4 THUMB Debug/../../obj/cop.o + 0x0800547c CopService + .text.XcpInit 0x08005480 0x1c THUMB Debug/../../obj/xcp.o + 0x08005480 XcpInit .text.XcpIsConnected - 0x0800548c 0x14 THUMB Debug/../../obj/xcp.o - 0x0800548c XcpIsConnected + 0x0800549c 0x14 THUMB Debug/../../obj/xcp.o + 0x0800549c XcpIsConnected .text.XcpPacketTransmitted - 0x080054a0 0x10 THUMB Debug/../../obj/xcp.o - 0x080054a0 XcpPacketTransmitted + 0x080054b0 0x10 THUMB Debug/../../obj/xcp.o + 0x080054b0 XcpPacketTransmitted .text.XcpPacketReceived - 0x080054b0 0x31c THUMB Debug/../../obj/xcp.o - 0x080054b0 XcpPacketReceived + 0x080054c0 0x31c THUMB Debug/../../obj/xcp.o + 0x080054c0 XcpPacketReceived .text.FileLibHexStringToByte - 0x080057cc 0x5c THUMB Debug/../../obj/file.o + 0x080057dc 0x5c THUMB Debug/../../obj/file.o .text.FileLibByteToHexString - 0x08005828 0x44 THUMB Debug/../../obj/file.o + 0x08005838 0x44 THUMB Debug/../../obj/file.o .text.FileInit - 0x0800586c 0x2c THUMB Debug/../../obj/file.o - 0x0800586c FileInit + 0x0800587c 0x2c THUMB Debug/../../obj/file.o + 0x0800587c FileInit .text.FileIsIdle - 0x08005898 0x14 THUMB Debug/../../obj/file.o - 0x08005898 FileIsIdle + 0x080058a8 0x14 THUMB Debug/../../obj/file.o + 0x080058a8 FileIsIdle .text.FileHandleFirmwareUpdateRequest - 0x080058ac 0x24 THUMB Debug/../../obj/file.o - 0x080058ac FileHandleFirmwareUpdateRequest + 0x080058bc 0x24 THUMB Debug/../../obj/file.o + 0x080058bc FileHandleFirmwareUpdateRequest .text.FileSrecGetLineType - 0x080058d0 0x38 THUMB Debug/../../obj/file.o - 0x080058d0 FileSrecGetLineType + 0x080058e0 0x38 THUMB Debug/../../obj/file.o + 0x080058e0 FileSrecGetLineType .text.FileSrecVerifyChecksum - 0x08005908 0x74 THUMB Debug/../../obj/file.o - 0x08005908 FileSrecVerifyChecksum + 0x08005918 0x74 THUMB Debug/../../obj/file.o + 0x08005918 FileSrecVerifyChecksum .text.FileSrecParseLine - 0x0800597c 0x154 THUMB Debug/../../obj/file.o - 0x0800597c FileSrecParseLine + 0x0800598c 0x154 THUMB Debug/../../obj/file.o + 0x0800598c FileSrecParseLine .text.FileTask - 0x08005ad0 0x3d0 THUMB Debug/../../obj/file.o - 0x08005ad0 FileTask + 0x08005ae0 0x3d0 THUMB Debug/../../obj/file.o + 0x08005ae0 FileTask .text.validate - 0x08005ea0 0x2c THUMB Debug/../../obj/ff.o + 0x08005eb0 0x2c THUMB Debug/../../obj/ff.o .text.get_fileinfo - 0x08005ecc 0x20c THUMB Debug/../../obj/ff.o + 0x08005edc 0x20c THUMB Debug/../../obj/ff.o .text.check_fs - 0x080060d8 0x8c THUMB Debug/../../obj/ff.o + 0x080060e8 0x8c THUMB Debug/../../obj/ff.o .text.chk_mounted - 0x08006164 0x328 THUMB Debug/../../obj/ff.o + 0x08006174 0x328 THUMB Debug/../../obj/ff.o .text.sync_window - 0x0800648c 0x70 THUMB Debug/../../obj/ff.o - .text.sync_fs 0x080064fc 0xcc THUMB Debug/../../obj/ff.o + 0x0800649c 0x70 THUMB Debug/../../obj/ff.o + .text.sync_fs 0x0800650c 0xcc THUMB Debug/../../obj/ff.o .text.move_window - 0x080065c8 0x30 THUMB Debug/../../obj/ff.o - .text.get_fat 0x080065f8 0xd0 THUMB Debug/../../obj/ff.o - 0x080065f8 get_fat - .text.dir_sdi 0x080066c8 0x94 THUMB Debug/../../obj/ff.o - .text.put_fat 0x0800675c 0x110 THUMB Debug/../../obj/ff.o - 0x0800675c put_fat + 0x080065d8 0x30 THUMB Debug/../../obj/ff.o + .text.get_fat 0x08006608 0xd0 THUMB Debug/../../obj/ff.o + 0x08006608 get_fat + .text.dir_sdi 0x080066d8 0x94 THUMB Debug/../../obj/ff.o + .text.put_fat 0x0800676c 0x110 THUMB Debug/../../obj/ff.o + 0x0800676c put_fat .text.create_chain - 0x0800686c 0xa0 THUMB Debug/../../obj/ff.o + 0x0800687c 0xa0 THUMB Debug/../../obj/ff.o .text.dir_next - 0x0800690c 0x128 THUMB Debug/../../obj/ff.o + 0x0800691c 0x128 THUMB Debug/../../obj/ff.o .text.dir_find.part.6 - 0x08006a34 0x4c8 THUMB Debug/../../obj/ff.o + 0x08006a44 0x4c8 THUMB Debug/../../obj/ff.o .text.follow_path - 0x08006efc 0x348 THUMB Debug/../../obj/ff.o + 0x08006f0c 0x348 THUMB Debug/../../obj/ff.o .text.dir_remove - 0x08007244 0x50 THUMB Debug/../../obj/ff.o + 0x08007254 0x50 THUMB Debug/../../obj/ff.o .text.dir_read.constprop.8 - 0x08007294 0x354 THUMB Debug/../../obj/ff.o + 0x080072a4 0x354 THUMB Debug/../../obj/ff.o .text.remove_chain - 0x080075e8 0x54 THUMB Debug/../../obj/ff.o + 0x080075f8 0x54 THUMB Debug/../../obj/ff.o .text.gen_numname - 0x0800763c 0x130 THUMB Debug/../../obj/ff.o - 0x0800763c gen_numname + 0x0800764c 0x130 THUMB Debug/../../obj/ff.o + 0x0800764c gen_numname .text.dir_register - 0x0800776c 0x540 THUMB Debug/../../obj/ff.o - .text.f_mount 0x08007cac 0x20 THUMB Debug/../../obj/ff.o - 0x08007cac f_mount - .text.f_open 0x08007ccc 0x18c THUMB Debug/../../obj/ff.o - 0x08007ccc f_open - .text.f_read 0x08007e58 0x1c8 THUMB Debug/../../obj/ff.o - 0x08007e58 f_read - .text.f_write 0x08008020 0x254 THUMB Debug/../../obj/ff.o - 0x08008020 f_write - .text.f_sync 0x08008274 0xa8 THUMB Debug/../../obj/ff.o - 0x08008274 f_sync - .text.f_close 0x0800831c 0x10 THUMB Debug/../../obj/ff.o - 0x0800831c f_close - .text.f_lseek 0x0800832c 0x188 THUMB Debug/../../obj/ff.o - 0x0800832c f_lseek - .text.f_stat 0x080084b4 0x4c THUMB Debug/../../obj/ff.o - 0x080084b4 f_stat + 0x0800777c 0x540 THUMB Debug/../../obj/ff.o + .text.f_mount 0x08007cbc 0x20 THUMB Debug/../../obj/ff.o + 0x08007cbc f_mount + .text.f_open 0x08007cdc 0x18c THUMB Debug/../../obj/ff.o + 0x08007cdc f_open + .text.f_read 0x08007e68 0x1c8 THUMB Debug/../../obj/ff.o + 0x08007e68 f_read + .text.f_write 0x08008030 0x254 THUMB Debug/../../obj/ff.o + 0x08008030 f_write + .text.f_sync 0x08008284 0xa8 THUMB Debug/../../obj/ff.o + 0x08008284 f_sync + .text.f_close 0x0800832c 0x10 THUMB Debug/../../obj/ff.o + 0x0800832c f_close + .text.f_lseek 0x0800833c 0x188 THUMB Debug/../../obj/ff.o + 0x0800833c f_lseek + .text.f_stat 0x080084c4 0x4c THUMB Debug/../../obj/ff.o + 0x080084c4 f_stat .text.f_unlink - 0x08008500 0xd8 THUMB Debug/../../obj/ff.o - 0x08008500 f_unlink - .text.f_gets 0x080085d8 0x4c THUMB Debug/../../obj/ff.o - 0x080085d8 f_gets - .text.f_putc 0x08008624 0x38 THUMB Debug/../../obj/ff.o - 0x08008624 f_putc - .text.f_puts 0x0800865c 0x28 THUMB Debug/../../obj/ff.o - 0x0800865c f_puts + 0x08008510 0xd8 THUMB Debug/../../obj/ff.o + 0x08008510 f_unlink + .text.f_gets 0x080085e8 0x4c THUMB Debug/../../obj/ff.o + 0x080085e8 f_gets + .text.f_putc 0x08008634 0x38 THUMB Debug/../../obj/ff.o + 0x08008634 f_putc + .text.f_puts 0x0800866c 0x28 THUMB Debug/../../obj/ff.o + 0x0800866c f_puts .text.ff_convert - 0x08008684 0x50 THUMB Debug/../../obj/unicode.o - 0x08008684 ff_convert + 0x08008694 0x50 THUMB Debug/../../obj/unicode.o + 0x08008694 ff_convert .text.ff_wtoupper - 0x080086d4 0x2c THUMB Debug/../../obj/unicode.o - 0x080086d4 ff_wtoupper - .text.chksum 0x08008700 0xa8 THUMB Debug/../../obj/uip.o + 0x080086e4 0x2c THUMB Debug/../../obj/unicode.o + 0x080086e4 ff_wtoupper + .text.chksum 0x08008710 0xa8 THUMB Debug/../../obj/uip.o .text.upper_layer_chksum - 0x080087a8 0x40 THUMB Debug/../../obj/uip.o + 0x080087b8 0x40 THUMB Debug/../../obj/uip.o .text.uip_add32 - 0x080087e8 0x58 THUMB Debug/../../obj/uip.o - 0x080087e8 uip_add32 + 0x080087f8 0x58 THUMB Debug/../../obj/uip.o + 0x080087f8 uip_add32 .text.unlikely.uip_add_rcv_nxt - 0x08008840 0x30 THUMB Debug/../../obj/uip.o + 0x08008850 0x30 THUMB Debug/../../obj/uip.o .text.uip_ipchksum - 0x08008870 0x24 THUMB Debug/../../obj/uip.o - 0x08008870 uip_ipchksum + 0x08008880 0x24 THUMB Debug/../../obj/uip.o + 0x08008880 uip_ipchksum .text.uip_tcpchksum - 0x08008894 0x8 THUMB Debug/../../obj/uip.o - 0x08008894 uip_tcpchksum + 0x080088a4 0x8 THUMB Debug/../../obj/uip.o + 0x080088a4 uip_tcpchksum .text.uip_init - 0x0800889c 0x38 THUMB Debug/../../obj/uip.o - 0x0800889c uip_init + 0x080088ac 0x38 THUMB Debug/../../obj/uip.o + 0x080088ac uip_init .text.uip_listen - 0x080088d4 0x24 THUMB Debug/../../obj/uip.o - 0x080088d4 uip_listen + 0x080088e4 0x24 THUMB Debug/../../obj/uip.o + 0x080088e4 uip_listen .text.uip_process - 0x080088f8 0xbc8 THUMB Debug/../../obj/uip.o - 0x080088f8 uip_process - .text.htons 0x080094c0 0xc THUMB Debug/../../obj/uip.o - 0x080094c0 htons + 0x08008908 0xbc8 THUMB Debug/../../obj/uip.o + 0x08008908 uip_process + .text.htons 0x080094d0 0xc THUMB Debug/../../obj/uip.o + 0x080094d0 htons .text.uip_send - 0x080094cc 0x24 THUMB Debug/../../obj/uip.o - 0x080094cc uip_send + 0x080094dc 0x24 THUMB Debug/../../obj/uip.o + 0x080094dc uip_send .text.uip_arp_update.constprop.0 - 0x080094f0 0x294 THUMB Debug/../../obj/uip_arp.o + 0x08009500 0x294 THUMB Debug/../../obj/uip_arp.o .text.uip_arp_timer - 0x08009784 0x64 THUMB Debug/../../obj/uip_arp.o - 0x08009784 uip_arp_timer + 0x08009794 0x64 THUMB Debug/../../obj/uip_arp.o + 0x08009794 uip_arp_timer .text.uip_arp_arpin - 0x080097e8 0xbc THUMB Debug/../../obj/uip_arp.o - 0x080097e8 uip_arp_arpin + 0x080097f8 0xbc THUMB Debug/../../obj/uip_arp.o + 0x080097f8 uip_arp_arpin .text.uip_arp_out - 0x080098a4 0x1fc THUMB Debug/../../obj/uip_arp.o - 0x080098a4 uip_arp_out - .text.NetInit 0x08009aa0 0x78 THUMB Debug/../../obj/net.o - 0x08009aa0 NetInit + 0x080098b4 0x1fc THUMB Debug/../../obj/uip_arp.o + 0x080098b4 uip_arp_out + .text.NetInit 0x08009ab0 0x78 THUMB Debug/../../obj/net.o + 0x08009ab0 NetInit .text.NetTransmitPacket - 0x08009b18 0x60 THUMB Debug/../../obj/net.o - 0x08009b18 NetTransmitPacket + 0x08009b28 0x60 THUMB Debug/../../obj/net.o + 0x08009b28 NetTransmitPacket .text.NetReceivePacket - 0x08009b78 0xc0 THUMB Debug/../../obj/net.o - 0x08009b78 NetReceivePacket - .text.NetApp 0x08009c38 0x6c THUMB Debug/../../obj/net.o - 0x08009c38 NetApp + 0x08009b88 0xc0 THUMB Debug/../../obj/net.o + 0x08009b88 NetReceivePacket + .text.NetApp 0x08009c48 0x6c THUMB Debug/../../obj/net.o + 0x08009c48 NetApp .text.libc.isdigit - 0x08009ca4 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) - 0x08009ca4 isdigit - .text.libc.toupper 0x08009cb4 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) - 0x08009cb4 toupper + 0x08009cb4 isdigit + .text.libc.toupper + 0x08009cc4 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) + 0x08009cc4 toupper .text.libc.memcpy - 0x08009cc4 0x48 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2_asm.o) - 0x08009cc4 __aeabi_memcpy - 0x08009cc4 __aeabi_memcpy4 - 0x08009cc4 __aeabi_memcpy8 - 0x08009cc4 memcpy + 0x08009cd4 0x48 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2_asm.o) + 0x08009cd4 __aeabi_memcpy + 0x08009cd4 __aeabi_memcpy4 + 0x08009cd4 __aeabi_memcpy8 + 0x08009cd4 memcpy .text.libc.memset - 0x08009d0c 0x70 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2_asm.o) - 0x08009d0c memset + 0x08009d1c 0x70 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2_asm.o) + 0x08009d1c memset .text.libdebugio.__do_debug_operation_mempoll - 0x08009d7c 0x3c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) - 0x08009d7c __do_debug_operation_mempoll + 0x08009d8c 0x3c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) + 0x08009d8c __do_debug_operation_mempoll .text.libc.__debug_io_lock - 0x08009db8 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) - 0x08009db8 __debug_io_lock + 0x08009dc8 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) + 0x08009dc8 __debug_io_lock .text.libc.__debug_io_unlock - 0x08009dbc 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) - 0x08009dbc __debug_io_unlock - 0x08009dc0 __text_end__ = (__text_start__ + SIZEOF (.text)) - 0x08009dc0 __text_load_end__ = __text_end__ + 0x08009dcc 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) + 0x08009dcc __debug_io_unlock + 0x08009dd0 __text_end__ = (__text_start__ + SIZEOF (.text)) + 0x08009dd0 __text_load_end__ = __text_end__ .vfp11_veneer 0x00000000 0x0 .vfp11_veneer 0x00000000 0x0 linker stubs @@ -3693,110 +3693,110 @@ Linker script and memory map .iplt 0x00000000 0x0 .iplt 0x00000000 0x0 THUMB Debug/../../obj/mmc.o 0x00000001 . = ASSERT (((__text_end__ >= __FLASH_segment_start__) && (__text_end__ <= __FLASH_segment_end__)), error: .text is too large to fit in FLASH memory segment) - 0x08009dc0 __dtors_load_start__ = ALIGN (__text_end__, 0x4) + 0x08009dd0 __dtors_load_start__ = ALIGN (__text_end__, 0x4) -.dtors 0x08009dc0 0x0 - 0x08009dc0 __dtors_start__ = . +.dtors 0x08009dd0 0x0 + 0x08009dd0 __dtors_start__ = . *(SORT(.dtors.*)) *(.dtors) *(.fini_array .fini_array.*) - 0x08009dc0 __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors)) - 0x08009dc0 __dtors_load_end__ = __dtors_end__ + 0x08009dd0 __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors)) + 0x08009dd0 __dtors_load_end__ = __dtors_end__ 0x00000001 . = ASSERT (((__dtors_end__ >= __FLASH_segment_start__) && (__dtors_end__ <= __FLASH_segment_end__)), error: .dtors is too large to fit in FLASH memory segment) - 0x08009dc0 __ctors_load_start__ = ALIGN (__dtors_end__, 0x4) + 0x08009dd0 __ctors_load_start__ = ALIGN (__dtors_end__, 0x4) -.ctors 0x08009dc0 0x0 - 0x08009dc0 __ctors_start__ = . +.ctors 0x08009dd0 0x0 + 0x08009dd0 __ctors_start__ = . *(SORT(.ctors.*)) *(.ctors) *(.init_array .init_array.*) - 0x08009dc0 __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors)) - 0x08009dc0 __ctors_load_end__ = __ctors_end__ + 0x08009dd0 __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors)) + 0x08009dd0 __ctors_load_end__ = __ctors_end__ 0x00000001 . = ASSERT (((__ctors_end__ >= __FLASH_segment_start__) && (__ctors_end__ <= __FLASH_segment_end__)), error: .ctors is too large to fit in FLASH memory segment) - 0x08009dc0 __rodata_load_start__ = ALIGN (__ctors_end__, 0x4) + 0x08009dd0 __rodata_load_start__ = ALIGN (__ctors_end__, 0x4) -.rodata 0x08009dc0 0xb48 - 0x08009dc0 __rodata_start__ = . +.rodata 0x08009dd0 0xb48 + 0x08009dd0 __rodata_start__ = . *(.rodata .rodata.* .gnu.linkonce.r.*) .rodata.str1.4 - 0x08009dc0 0x6b THUMB Debug/../../obj/netdev.o + 0x08009dd0 0x6b THUMB Debug/../../obj/netdev.o 0x6c (size before relaxing) - *fill* 0x08009e2b 0x1 00 + *fill* 0x08009e3b 0x1 00 .rodata.CSWTCH.22 - 0x08009e2c 0x4 THUMB Debug/../../obj/usb_core.o + 0x08009e3c 0x4 THUMB Debug/../../obj/usb_core.o .rodata.firmwareFilename - 0x08009e30 0x20 THUMB Debug/../../obj/hooks.o + 0x08009e40 0x20 THUMB Debug/../../obj/hooks.o .rodata.str1.4 - 0x08009e50 0xd THUMB Debug/../../obj/hooks.o + 0x08009e60 0xd THUMB Debug/../../obj/hooks.o 0x10 (size before relaxing) - *fill* 0x08009e5d 0x3 00 + *fill* 0x08009e6d 0x3 00 .rodata.str1.4 - 0x08009e60 0x53 THUMB Debug/../../obj/usbd_desc.o + 0x08009e70 0x53 THUMB Debug/../../obj/usbd_desc.o 0x54 (size before relaxing) - *fill* 0x08009eb3 0x1 00 + *fill* 0x08009ec3 0x1 00 .rodata.str1.4 - 0x08009eb4 0x8c THUMB Debug/../../obj/vectors.o + 0x08009ec4 0x8c THUMB Debug/../../obj/vectors.o .rodata.flashSectorNumToMask - 0x08009f40 0x30 THUMB Debug/../../obj/flash.o + 0x08009f50 0x30 THUMB Debug/../../obj/flash.o .rodata.flashLayout - 0x08009f70 0x6c THUMB Debug/../../obj/flash.o + 0x08009f80 0x6c THUMB Debug/../../obj/flash.o .rodata.str1.4 - 0x08009fdc 0x7e THUMB Debug/../../obj/uart.o + 0x08009fec 0x7e THUMB Debug/../../obj/uart.o 0x80 (size before relaxing) - *fill* 0x0800a05a 0x2 00 + *fill* 0x0800a06a 0x2 00 .rodata.str1.4 - 0x0800a05c 0x7d THUMB Debug/../../obj/can.o + 0x0800a06c 0x7d THUMB Debug/../../obj/can.o 0x80 (size before relaxing) - *fill* 0x0800a0d9 0x3 00 + *fill* 0x0800a0e9 0x3 00 .rodata.canTiming - 0x0800a0dc 0x24 THUMB Debug/../../obj/can.o + 0x0800a0ec 0x24 THUMB Debug/../../obj/can.o .rodata.str1.4 - 0x0800a100 0x7d THUMB Debug/../../obj/usb.o + 0x0800a110 0x7d THUMB Debug/../../obj/usb.o 0x80 (size before relaxing) - *fill* 0x0800a17d 0x3 00 + *fill* 0x0800a18d 0x3 00 .rodata.CSWTCH.9 - 0x0800a180 0x4 THUMB Debug/../../obj/com.o + 0x0800a190 0x4 THUMB Debug/../../obj/com.o .rodata.CSWTCH.12 - 0x0800a184 0x4 THUMB Debug/../../obj/com.o + 0x0800a194 0x4 THUMB Debug/../../obj/com.o .rodata.xcpStationId - 0x0800a188 0x8 THUMB Debug/../../obj/xcp.o + 0x0800a198 0x8 THUMB Debug/../../obj/xcp.o .rodata.str1.4 - 0x0800a190 0x219 THUMB Debug/../../obj/file.o + 0x0800a1a0 0x219 THUMB Debug/../../obj/file.o 0x220 (size before relaxing) - *fill* 0x0800a3a9 0x3 00 + *fill* 0x0800a3b9 0x3 00 .rodata.str1.4 - 0x0800a3ac 0x14 THUMB Debug/../../obj/ff.o - .rodata.ExCvt 0x0800a3c0 0x80 THUMB Debug/../../obj/ff.o + 0x0800a3bc 0x14 THUMB Debug/../../obj/ff.o + .rodata.ExCvt 0x0800a3d0 0x80 THUMB Debug/../../obj/ff.o .rodata.tbl_lower.3809 - 0x0800a440 0x1e0 THUMB Debug/../../obj/unicode.o - .rodata.Tbl 0x0800a620 0x100 THUMB Debug/../../obj/unicode.o + 0x0800a450 0x1e0 THUMB Debug/../../obj/unicode.o + .rodata.Tbl 0x0800a630 0x100 THUMB Debug/../../obj/unicode.o .rodata.tbl_upper.3810 - 0x0800a720 0x1e0 THUMB Debug/../../obj/unicode.o + 0x0800a730 0x1e0 THUMB Debug/../../obj/unicode.o .rodata.broadcast_ethaddr - 0x0800a900 0x8 THUMB Debug/../../obj/uip_arp.o - 0x0800a908 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata)) - 0x0800a908 __rodata_load_end__ = __rodata_end__ + 0x0800a910 0x8 THUMB Debug/../../obj/uip_arp.o + 0x0800a918 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata)) + 0x0800a918 __rodata_load_end__ = __rodata_end__ .rel.dyn 0x08000000 0x0 .rel.iplt 0x00000000 0x0 THUMB Debug/../../obj/mmc.o 0x00000001 . = ASSERT (((__rodata_end__ >= __FLASH_segment_start__) && (__rodata_end__ <= __FLASH_segment_end__)), error: .rodata is too large to fit in FLASH memory segment) - 0x0800a908 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4) + 0x0800a918 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4) -.ARM.exidx 0x0800a908 0x0 - 0x0800a908 __ARM.exidx_start__ = . - 0x0800a908 __exidx_start = __ARM.exidx_start__ +.ARM.exidx 0x0800a918 0x0 + 0x0800a918 __ARM.exidx_start__ = . + 0x0800a918 __exidx_start = __ARM.exidx_start__ *(.ARM.exidx .ARM.exidx.*) - 0x0800a908 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx)) - 0x0800a908 __exidx_end = __ARM.exidx_end__ - 0x0800a908 __ARM.exidx_load_end__ = __ARM.exidx_end__ + 0x0800a918 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx)) + 0x0800a918 __exidx_end = __ARM.exidx_end__ + 0x0800a918 __ARM.exidx_load_end__ = __ARM.exidx_end__ 0x00000001 . = ASSERT (((__ARM.exidx_end__ >= __FLASH_segment_start__) && (__ARM.exidx_end__ <= __FLASH_segment_end__)), error: .ARM.exidx is too large to fit in FLASH memory segment) - 0x0800a908 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4) + 0x0800a918 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4) -.fast 0x20000000 0x0 load address 0x0800a908 +.fast 0x20000000 0x0 load address 0x0800a918 0x20000000 __fast_start__ = . *(.fast .fast.*) 0x20000000 __fast_end__ = (__fast_start__ + SIZEOF (.fast)) - 0x0800a908 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast)) + 0x0800a918 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast)) 0x00000001 . = ASSERT (((__fast_load_end__ >= __FLASH_segment_start__) && (__fast_load_end__ <= __FLASH_segment_end__)), error: .fast is too large to fit in FLASH memory segment) .fast_run 0x20000000 0x0 @@ -3805,9 +3805,9 @@ Linker script and memory map 0x20000000 __fast_run_end__ = (__fast_run_start__ + SIZEOF (.fast_run)) 0x20000000 __fast_run_load_end__ = __fast_run_end__ 0x00000001 . = ASSERT (((__fast_run_end__ >= __RAM_segment_start__) && (__fast_run_end__ <= __RAM_segment_end__)), error: .fast_run is too large to fit in RAM memory segment) - 0x0800a908 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4) + 0x0800a918 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4) -.data 0x20000000 0xe5 load address 0x0800a908 +.data 0x20000000 0xe5 load address 0x0800a918 0x20000000 __data_start__ = . *(.data .data.* .gnu.linkonce.d.*) .data.DMAEndOfTransfer @@ -3842,13 +3842,13 @@ Linker script and memory map .data.comActiveInterface 0x200000e4 0x1 THUMB Debug/../../obj/com.o 0x200000e5 __data_end__ = (__data_start__ + SIZEOF (.data)) - 0x0800a9ed __data_load_end__ = (__data_load_start__ + SIZEOF (.data)) + 0x0800a9fd __data_load_end__ = (__data_load_start__ + SIZEOF (.data)) .igot.plt 0x00000000 0x0 .igot.plt 0x00000000 0x0 THUMB Debug/../../obj/mmc.o 0x00000001 . = ASSERT (((__data_load_end__ >= __FLASH_segment_start__) && (__data_load_end__ <= __FLASH_segment_end__)), error: .data is too large to fit in FLASH memory segment) -.data_run 0x20000000 0xe5 load address 0x0800a908 +.data_run 0x20000000 0xe5 load address 0x0800a918 0x20000000 __data_run_start__ = . 0x200000e5 . = MAX ((__data_run_start__ + SIZEOF (.data)), .) *fill* 0x20000000 0xe5 00 @@ -4091,14 +4091,14 @@ Linker script and memory map 0x20003f04 __tbss_end__ = (__tbss_start__ + SIZEOF (.tbss)) 0x20003f04 __tbss_load_end__ = __tbss_end__ 0x00000001 . = ASSERT (((__tbss_end__ >= __RAM_segment_start__) && (__tbss_end__ <= __RAM_segment_end__)), error: .tbss is too large to fit in RAM memory segment) - 0x0800a9f0 __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + 0x0800aa00 __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) -.tdata 0x20003f04 0x0 load address 0x0800a9f0 +.tdata 0x20003f04 0x0 load address 0x0800aa00 0x20003f04 __tdata_start__ = . *(.tdata .tdata.*) 0x20003f04 __tdata_end__ = (__tdata_start__ + SIZEOF (.tdata)) - 0x0800a9f0 __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata)) - 0x0800a9f0 __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata)) + 0x0800aa00 __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata)) + 0x0800aa00 __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata)) 0x00000001 . = ASSERT (((__tdata_load_end__ >= __FLASH_segment_start__) && (__tdata_load_end__ <= __FLASH_segment_end__)), error: .tdata is too large to fit in FLASH memory segment) .tdata_run 0x20003f04 0x0 @@ -4239,7 +4239,7 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossw .debug_frame 0x00004a60 0x790 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) .debug_frame 0x000051f0 0xa0 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) -.debug_info 0x00000000 0x24354 +.debug_info 0x00000000 0x2438c .debug_info 0x00000000 0x34cf THUMB Debug/../../obj/mmc.o .debug_info 0x000034cf 0x619 THUMB Debug/../../obj/system_stm32f4xx.o .debug_info 0x00003ae8 0x8c8 THUMB Debug/../../obj/stm32f4xx_flash.o @@ -4256,38 +4256,38 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossw .debug_info 0x0000e21c 0x2a16 THUMB Debug/../../obj/usb_core.o .debug_info 0x00010c32 0x1503 THUMB Debug/../../obj/usb_dcd.o .debug_info 0x00012135 0x26c9 THUMB Debug/../../obj/usb_dcd_int.o - .debug_info 0x000147fe 0x98e THUMB Debug/../../obj/hooks.o - .debug_info 0x0001518c 0x4f4 THUMB Debug/../../obj/main.o - .debug_info 0x00015680 0x1055 THUMB Debug/../../obj/usb_bsp.o - .debug_info 0x000166d5 0x1037 THUMB Debug/../../obj/usbd_bulk.o - .debug_info 0x0001770c 0x432 THUMB Debug/../../obj/usbd_desc.o - .debug_info 0x00017b3e 0x26d THUMB Debug/../../obj/usbd_usr.o - .debug_info 0x00017dab 0x10a THUMB Debug/../../obj/cstart.o - .debug_info 0x00017eb5 0x13f THUMB Debug/../../obj/vectors.o - .debug_info 0x00017ff4 0x214 THUMB Debug/../../obj/cpu.o - .debug_info 0x00018208 0xaa3 THUMB Debug/../../obj/flash.o - .debug_info 0x00018cab 0x289 THUMB Debug/../../obj/nvm.o - .debug_info 0x00018f34 0x1ab THUMB Debug/../../obj/timer.o - .debug_info 0x000190df 0x6af THUMB Debug/../../obj/uart.o - .debug_info 0x0001978e 0x581 THUMB Debug/../../obj/can.o - .debug_info 0x00019d0f 0x1717 THUMB Debug/../../obj/usb.o - .debug_info 0x0001b426 0x10a THUMB Debug/../../obj/assert.o - .debug_info 0x0001b530 0x161 THUMB Debug/../../obj/backdoor.o - .debug_info 0x0001b691 0x179 THUMB Debug/../../obj/boot.o - .debug_info 0x0001b80a 0x4ae THUMB Debug/../../obj/com.o - .debug_info 0x0001bcb8 0x9a THUMB Debug/../../obj/cop.o - .debug_info 0x0001bd52 0x8bb THUMB Debug/../../obj/xcp.o - .debug_info 0x0001c60d 0x1233 THUMB Debug/../../obj/file.o - .debug_info 0x0001d840 0x3bc5 THUMB Debug/../../obj/ff.o - .debug_info 0x00021405 0x16a THUMB Debug/../../obj/unicode.o - .debug_info 0x0002156f 0xda0 THUMB Debug/../../obj/uip.o - .debug_info 0x0002230f 0x68e THUMB Debug/../../obj/uip_arp.o - .debug_info 0x0002299d 0x680 THUMB Debug/../../obj/net.o - .debug_info 0x0002301d 0xd02 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) - .debug_info 0x00023d1f 0x55f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) - .debug_info 0x0002427e 0xd6 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) + .debug_info 0x000147fe 0x9c9 THUMB Debug/../../obj/hooks.o + .debug_info 0x000151c7 0x4f4 THUMB Debug/../../obj/main.o + .debug_info 0x000156bb 0x1055 THUMB Debug/../../obj/usb_bsp.o + .debug_info 0x00016710 0x1037 THUMB Debug/../../obj/usbd_bulk.o + .debug_info 0x00017747 0x432 THUMB Debug/../../obj/usbd_desc.o + .debug_info 0x00017b79 0x26d THUMB Debug/../../obj/usbd_usr.o + .debug_info 0x00017de6 0x10a THUMB Debug/../../obj/cstart.o + .debug_info 0x00017ef0 0x13f THUMB Debug/../../obj/vectors.o + .debug_info 0x0001802f 0x214 THUMB Debug/../../obj/cpu.o + .debug_info 0x00018243 0xaa3 THUMB Debug/../../obj/flash.o + .debug_info 0x00018ce6 0x289 THUMB Debug/../../obj/nvm.o + .debug_info 0x00018f6f 0x1ab THUMB Debug/../../obj/timer.o + .debug_info 0x0001911a 0x6af THUMB Debug/../../obj/uart.o + .debug_info 0x000197c9 0x581 THUMB Debug/../../obj/can.o + .debug_info 0x00019d4a 0x1716 THUMB Debug/../../obj/usb.o + .debug_info 0x0001b460 0x10a THUMB Debug/../../obj/assert.o + .debug_info 0x0001b56a 0x161 THUMB Debug/../../obj/backdoor.o + .debug_info 0x0001b6cb 0x179 THUMB Debug/../../obj/boot.o + .debug_info 0x0001b844 0x4ae THUMB Debug/../../obj/com.o + .debug_info 0x0001bcf2 0x9a THUMB Debug/../../obj/cop.o + .debug_info 0x0001bd8c 0x8bb THUMB Debug/../../obj/xcp.o + .debug_info 0x0001c647 0x1233 THUMB Debug/../../obj/file.o + .debug_info 0x0001d87a 0x3bc6 THUMB Debug/../../obj/ff.o + .debug_info 0x00021440 0x16a THUMB Debug/../../obj/unicode.o + .debug_info 0x000215aa 0xda0 THUMB Debug/../../obj/uip.o + .debug_info 0x0002234a 0x68e THUMB Debug/../../obj/uip_arp.o + .debug_info 0x000229d8 0x67d THUMB Debug/../../obj/net.o + .debug_info 0x00023055 0xd02 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) + .debug_info 0x00023d57 0x55f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) + .debug_info 0x000242b6 0xd6 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) -.debug_abbrev 0x00000000 0x5cb4 +.debug_abbrev 0x00000000 0x5cd6 .debug_abbrev 0x00000000 0x3c4 THUMB Debug/../../obj/mmc.o .debug_abbrev 0x000003c4 0x156 THUMB Debug/../../obj/system_stm32f4xx.o .debug_abbrev 0x0000051a 0x222 THUMB Debug/../../obj/stm32f4xx_flash.o @@ -4304,38 +4304,38 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossw .debug_abbrev 0x000020f2 0x496 THUMB Debug/../../obj/usb_core.o .debug_abbrev 0x00002588 0x2dd THUMB Debug/../../obj/usb_dcd.o .debug_abbrev 0x00002865 0x2ef THUMB Debug/../../obj/usb_dcd_int.o - .debug_abbrev 0x00002b54 0x2bb THUMB Debug/../../obj/hooks.o - .debug_abbrev 0x00002e0f 0x198 THUMB Debug/../../obj/main.o - .debug_abbrev 0x00002fa7 0x25d THUMB Debug/../../obj/usb_bsp.o - .debug_abbrev 0x00003204 0x2d9 THUMB Debug/../../obj/usbd_bulk.o - .debug_abbrev 0x000034dd 0x131 THUMB Debug/../../obj/usbd_desc.o - .debug_abbrev 0x0000360e 0x12d THUMB Debug/../../obj/usbd_usr.o - .debug_abbrev 0x0000373b 0x14 THUMB Debug/../../obj/cstart.o - .debug_abbrev 0x0000374f 0xf9 THUMB Debug/../../obj/vectors.o - .debug_abbrev 0x00003848 0x110 THUMB Debug/../../obj/cpu.o - .debug_abbrev 0x00003958 0x327 THUMB Debug/../../obj/flash.o - .debug_abbrev 0x00003c7f 0x125 THUMB Debug/../../obj/nvm.o - .debug_abbrev 0x00003da4 0x114 THUMB Debug/../../obj/timer.o - .debug_abbrev 0x00003eb8 0x26a THUMB Debug/../../obj/uart.o - .debug_abbrev 0x00004122 0x20b THUMB Debug/../../obj/can.o - .debug_abbrev 0x0000432d 0x39d THUMB Debug/../../obj/usb.o - .debug_abbrev 0x000046ca 0x9d THUMB Debug/../../obj/assert.o - .debug_abbrev 0x00004767 0x9f THUMB Debug/../../obj/backdoor.o - .debug_abbrev 0x00004806 0x70 THUMB Debug/../../obj/boot.o - .debug_abbrev 0x00004876 0x1b2 THUMB Debug/../../obj/com.o - .debug_abbrev 0x00004a28 0x44 THUMB Debug/../../obj/cop.o - .debug_abbrev 0x00004a6c 0x28a THUMB Debug/../../obj/xcp.o - .debug_abbrev 0x00004cf6 0x2b1 THUMB Debug/../../obj/file.o - .debug_abbrev 0x00004fa7 0x37f THUMB Debug/../../obj/ff.o - .debug_abbrev 0x00005326 0xc4 THUMB Debug/../../obj/unicode.o - .debug_abbrev 0x000053ea 0x34f THUMB Debug/../../obj/uip.o - .debug_abbrev 0x00005739 0x208 THUMB Debug/../../obj/uip_arp.o - .debug_abbrev 0x00005941 0x242 THUMB Debug/../../obj/net.o - .debug_abbrev 0x00005b83 0xcb C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) - .debug_abbrev 0x00005c4e 0x3e C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) - .debug_abbrev 0x00005c8c 0x28 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) + .debug_abbrev 0x00002b54 0x2dd THUMB Debug/../../obj/hooks.o + .debug_abbrev 0x00002e31 0x198 THUMB Debug/../../obj/main.o + .debug_abbrev 0x00002fc9 0x25d THUMB Debug/../../obj/usb_bsp.o + .debug_abbrev 0x00003226 0x2d9 THUMB Debug/../../obj/usbd_bulk.o + .debug_abbrev 0x000034ff 0x131 THUMB Debug/../../obj/usbd_desc.o + .debug_abbrev 0x00003630 0x12d THUMB Debug/../../obj/usbd_usr.o + .debug_abbrev 0x0000375d 0x14 THUMB Debug/../../obj/cstart.o + .debug_abbrev 0x00003771 0xf9 THUMB Debug/../../obj/vectors.o + .debug_abbrev 0x0000386a 0x110 THUMB Debug/../../obj/cpu.o + .debug_abbrev 0x0000397a 0x327 THUMB Debug/../../obj/flash.o + .debug_abbrev 0x00003ca1 0x125 THUMB Debug/../../obj/nvm.o + .debug_abbrev 0x00003dc6 0x114 THUMB Debug/../../obj/timer.o + .debug_abbrev 0x00003eda 0x26a THUMB Debug/../../obj/uart.o + .debug_abbrev 0x00004144 0x20b THUMB Debug/../../obj/can.o + .debug_abbrev 0x0000434f 0x39d THUMB Debug/../../obj/usb.o + .debug_abbrev 0x000046ec 0x9d THUMB Debug/../../obj/assert.o + .debug_abbrev 0x00004789 0x9f THUMB Debug/../../obj/backdoor.o + .debug_abbrev 0x00004828 0x70 THUMB Debug/../../obj/boot.o + .debug_abbrev 0x00004898 0x1b2 THUMB Debug/../../obj/com.o + .debug_abbrev 0x00004a4a 0x44 THUMB Debug/../../obj/cop.o + .debug_abbrev 0x00004a8e 0x28a THUMB Debug/../../obj/xcp.o + .debug_abbrev 0x00004d18 0x2b1 THUMB Debug/../../obj/file.o + .debug_abbrev 0x00004fc9 0x37f THUMB Debug/../../obj/ff.o + .debug_abbrev 0x00005348 0xc4 THUMB Debug/../../obj/unicode.o + .debug_abbrev 0x0000540c 0x34f THUMB Debug/../../obj/uip.o + .debug_abbrev 0x0000575b 0x208 THUMB Debug/../../obj/uip_arp.o + .debug_abbrev 0x00005963 0x242 THUMB Debug/../../obj/net.o + .debug_abbrev 0x00005ba5 0xcb C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) + .debug_abbrev 0x00005c70 0x3e C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) + .debug_abbrev 0x00005cae 0x28 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) -.debug_loc 0x00000000 0x175ab +.debug_loc 0x00000000 0x175be .debug_loc 0x00000000 0x21e7 THUMB Debug/../../obj/mmc.o .debug_loc 0x000021e7 0x182 THUMB Debug/../../obj/system_stm32f4xx.o .debug_loc 0x00002369 0x810 THUMB Debug/../../obj/stm32f4xx_flash.o @@ -4352,30 +4352,30 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossw .debug_loc 0x000077fd 0x14f1 THUMB Debug/../../obj/usb_core.o .debug_loc 0x00008cee 0x7f6 THUMB Debug/../../obj/usb_dcd.o .debug_loc 0x000094e4 0x9c7 THUMB Debug/../../obj/usb_dcd_int.o - .debug_loc 0x00009eab 0x101 THUMB Debug/../../obj/hooks.o - .debug_loc 0x00009fac 0x2c THUMB Debug/../../obj/main.o - .debug_loc 0x00009fd8 0x13d THUMB Debug/../../obj/usb_bsp.o - .debug_loc 0x0000a115 0x3ab THUMB Debug/../../obj/usbd_bulk.o - .debug_loc 0x0000a4c0 0x263 THUMB Debug/../../obj/usbd_desc.o - .debug_loc 0x0000a723 0x10f THUMB Debug/../../obj/cpu.o - .debug_loc 0x0000a832 0x76c THUMB Debug/../../obj/flash.o - .debug_loc 0x0000af9e 0xc5 THUMB Debug/../../obj/nvm.o - .debug_loc 0x0000b063 0x1d2 THUMB Debug/../../obj/uart.o - .debug_loc 0x0000b235 0x1b7 THUMB Debug/../../obj/can.o - .debug_loc 0x0000b3ec 0x4be THUMB Debug/../../obj/usb.o - .debug_loc 0x0000b8aa 0x71 THUMB Debug/../../obj/assert.o - .debug_loc 0x0000b91b 0x40 THUMB Debug/../../obj/backdoor.o - .debug_loc 0x0000b95b 0x40 THUMB Debug/../../obj/boot.o - .debug_loc 0x0000b99b 0xf4 THUMB Debug/../../obj/com.o - .debug_loc 0x0000ba8f 0x426 THUMB Debug/../../obj/xcp.o - .debug_loc 0x0000beb5 0xa62 THUMB Debug/../../obj/file.o - .debug_loc 0x0000c917 0x84f9 THUMB Debug/../../obj/ff.o - .debug_loc 0x00014e10 0x12d THUMB Debug/../../obj/unicode.o - .debug_loc 0x00014f3d 0x7b0 THUMB Debug/../../obj/uip.o - .debug_loc 0x000156ed 0x47a THUMB Debug/../../obj/uip_arp.o - .debug_loc 0x00015b67 0x1be THUMB Debug/../../obj/net.o - .debug_loc 0x00015d25 0x1092 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) - .debug_loc 0x00016db7 0x7f4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) + .debug_loc 0x00009eab 0x114 THUMB Debug/../../obj/hooks.o + .debug_loc 0x00009fbf 0x2c THUMB Debug/../../obj/main.o + .debug_loc 0x00009feb 0x13d THUMB Debug/../../obj/usb_bsp.o + .debug_loc 0x0000a128 0x3ab THUMB Debug/../../obj/usbd_bulk.o + .debug_loc 0x0000a4d3 0x263 THUMB Debug/../../obj/usbd_desc.o + .debug_loc 0x0000a736 0x10f THUMB Debug/../../obj/cpu.o + .debug_loc 0x0000a845 0x76c THUMB Debug/../../obj/flash.o + .debug_loc 0x0000afb1 0xc5 THUMB Debug/../../obj/nvm.o + .debug_loc 0x0000b076 0x1d2 THUMB Debug/../../obj/uart.o + .debug_loc 0x0000b248 0x1b7 THUMB Debug/../../obj/can.o + .debug_loc 0x0000b3ff 0x4be THUMB Debug/../../obj/usb.o + .debug_loc 0x0000b8bd 0x71 THUMB Debug/../../obj/assert.o + .debug_loc 0x0000b92e 0x40 THUMB Debug/../../obj/backdoor.o + .debug_loc 0x0000b96e 0x40 THUMB Debug/../../obj/boot.o + .debug_loc 0x0000b9ae 0xf4 THUMB Debug/../../obj/com.o + .debug_loc 0x0000baa2 0x426 THUMB Debug/../../obj/xcp.o + .debug_loc 0x0000bec8 0xa62 THUMB Debug/../../obj/file.o + .debug_loc 0x0000c92a 0x84f9 THUMB Debug/../../obj/ff.o + .debug_loc 0x00014e23 0x12d THUMB Debug/../../obj/unicode.o + .debug_loc 0x00014f50 0x7b0 THUMB Debug/../../obj/uip.o + .debug_loc 0x00015700 0x47a THUMB Debug/../../obj/uip_arp.o + .debug_loc 0x00015b7a 0x1be THUMB Debug/../../obj/net.o + .debug_loc 0x00015d38 0x1092 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) + .debug_loc 0x00016dca 0x7f4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) .debug_aranges 0x00000000 0x1ca8 .debug_aranges @@ -4518,7 +4518,7 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossw .debug_ranges 0x000029e0 0x208 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) .debug_ranges 0x00002be8 0x50 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) -.debug_line 0x00000000 0xb0df +.debug_line 0x00000000 0xb29e .debug_line 0x00000000 0xe6f THUMB Debug/../../obj/mmc.o .debug_line 0x00000e6f 0x23f THUMB Debug/../../obj/system_stm32f4xx.o .debug_line 0x000010ae 0x4d3 THUMB Debug/../../obj/stm32f4xx_flash.o @@ -4535,38 +4535,38 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossw .debug_line 0x00004692 0x7c3 THUMB Debug/../../obj/usb_core.o .debug_line 0x00004e55 0x356 THUMB Debug/../../obj/usb_dcd.o .debug_line 0x000051ab 0x316 THUMB Debug/../../obj/usb_dcd_int.o - .debug_line 0x000054c1 0x349 THUMB Debug/../../obj/hooks.o - .debug_line 0x0000580a 0x263 THUMB Debug/../../obj/main.o - .debug_line 0x00005a6d 0x2aa THUMB Debug/../../obj/usb_bsp.o - .debug_line 0x00005d17 0x262 THUMB Debug/../../obj/usbd_bulk.o - .debug_line 0x00005f79 0x204 THUMB Debug/../../obj/usbd_desc.o - .debug_line 0x0000617d 0x200 THUMB Debug/../../obj/usbd_usr.o - .debug_line 0x0000637d 0x134 THUMB Debug/../../obj/cstart.o - .debug_line 0x000064b1 0x10c THUMB Debug/../../obj/vectors.o - .debug_line 0x000065bd 0x155 THUMB Debug/../../obj/cpu.o - .debug_line 0x00006712 0x3f3 THUMB Debug/../../obj/flash.o - .debug_line 0x00006b05 0x149 THUMB Debug/../../obj/nvm.o - .debug_line 0x00006c4e 0x1c1 THUMB Debug/../../obj/timer.o - .debug_line 0x00006e0f 0x31a THUMB Debug/../../obj/uart.o - .debug_line 0x00007129 0x1b1 THUMB Debug/../../obj/can.o - .debug_line 0x000072da 0x46b THUMB Debug/../../obj/usb.o - .debug_line 0x00007745 0xdf THUMB Debug/../../obj/assert.o - .debug_line 0x00007824 0x11b THUMB Debug/../../obj/backdoor.o - .debug_line 0x0000793f 0xfb THUMB Debug/../../obj/boot.o - .debug_line 0x00007a3a 0x1af THUMB Debug/../../obj/com.o - .debug_line 0x00007be9 0xaf THUMB Debug/../../obj/cop.o - .debug_line 0x00007c98 0x274 THUMB Debug/../../obj/xcp.o - .debug_line 0x00007f0c 0x4b1 THUMB Debug/../../obj/file.o - .debug_line 0x000083bd 0x134e THUMB Debug/../../obj/ff.o - .debug_line 0x0000970b 0x18e THUMB Debug/../../obj/unicode.o - .debug_line 0x00009899 0x7bc THUMB Debug/../../obj/uip.o - .debug_line 0x0000a055 0x2ce THUMB Debug/../../obj/uip_arp.o - .debug_line 0x0000a323 0x245 THUMB Debug/../../obj/net.o - .debug_line 0x0000a568 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) - .debug_line 0x0000ab1b 0x550 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) - .debug_line 0x0000b06b 0x74 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) + .debug_line 0x000054c1 0x36e THUMB Debug/../../obj/hooks.o + .debug_line 0x0000582f 0x263 THUMB Debug/../../obj/main.o + .debug_line 0x00005a92 0x2aa THUMB Debug/../../obj/usb_bsp.o + .debug_line 0x00005d3c 0x262 THUMB Debug/../../obj/usbd_bulk.o + .debug_line 0x00005f9e 0x204 THUMB Debug/../../obj/usbd_desc.o + .debug_line 0x000061a2 0x200 THUMB Debug/../../obj/usbd_usr.o + .debug_line 0x000063a2 0x134 THUMB Debug/../../obj/cstart.o + .debug_line 0x000064d6 0x10c THUMB Debug/../../obj/vectors.o + .debug_line 0x000065e2 0x155 THUMB Debug/../../obj/cpu.o + .debug_line 0x00006737 0x3f3 THUMB Debug/../../obj/flash.o + .debug_line 0x00006b2a 0x149 THUMB Debug/../../obj/nvm.o + .debug_line 0x00006c73 0x1c1 THUMB Debug/../../obj/timer.o + .debug_line 0x00006e34 0x31a THUMB Debug/../../obj/uart.o + .debug_line 0x0000714e 0x1b1 THUMB Debug/../../obj/can.o + .debug_line 0x000072ff 0x46b THUMB Debug/../../obj/usb.o + .debug_line 0x0000776a 0xdf THUMB Debug/../../obj/assert.o + .debug_line 0x00007849 0x11b THUMB Debug/../../obj/backdoor.o + .debug_line 0x00007964 0xfb THUMB Debug/../../obj/boot.o + .debug_line 0x00007a5f 0x1ae THUMB Debug/../../obj/com.o + .debug_line 0x00007c0d 0xae THUMB Debug/../../obj/cop.o + .debug_line 0x00007cbb 0x274 THUMB Debug/../../obj/xcp.o + .debug_line 0x00007f2f 0x4b1 THUMB Debug/../../obj/file.o + .debug_line 0x000083e0 0x14be THUMB Debug/../../obj/ff.o + .debug_line 0x0000989e 0x192 THUMB Debug/../../obj/unicode.o + .debug_line 0x00009a30 0x7cc THUMB Debug/../../obj/uip.o + .debug_line 0x0000a1fc 0x2e6 THUMB Debug/../../obj/uip_arp.o + .debug_line 0x0000a4e2 0x245 THUMB Debug/../../obj/net.o + .debug_line 0x0000a727 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) + .debug_line 0x0000acda 0x550 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) + .debug_line 0x0000b22a 0x74 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) -.debug_str 0x00000000 0x8c12 +.debug_str 0x00000000 0x8c1e .debug_str 0x00000000 0x1456 THUMB Debug/../../obj/mmc.o 0x1526 (size before relaxing) .debug_str 0x00001456 0x276 THUMB Debug/../../obj/system_stm32f4xx.o @@ -4599,63 +4599,63 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossw 0xcf1 (size before relaxing) .debug_str 0x0000582a 0x397 THUMB Debug/../../obj/usb_dcd_int.o 0x1510 (size before relaxing) - .debug_str 0x00005bc1 0x3ea THUMB Debug/../../obj/hooks.o - 0x683 (size before relaxing) - .debug_str 0x00005fab 0x73 THUMB Debug/../../obj/main.o + .debug_str 0x00005bc1 0x3ff THUMB Debug/../../obj/hooks.o + 0x6a3 (size before relaxing) + .debug_str 0x00005fc0 0x73 THUMB Debug/../../obj/main.o 0x400 (size before relaxing) - .debug_str 0x0000601e 0x84 THUMB Debug/../../obj/usb_bsp.o + .debug_str 0x00006033 0x84 THUMB Debug/../../obj/usb_bsp.o 0xbb4 (size before relaxing) - .debug_str 0x000060a2 0x162 THUMB Debug/../../obj/usbd_bulk.o + .debug_str 0x000060b7 0x162 THUMB Debug/../../obj/usbd_bulk.o 0xab2 (size before relaxing) - .debug_str 0x00006204 0x17a THUMB Debug/../../obj/usbd_desc.o + .debug_str 0x00006219 0x17a THUMB Debug/../../obj/usbd_desc.o 0x3b4 (size before relaxing) - .debug_str 0x0000637e 0x10e THUMB Debug/../../obj/usbd_usr.o + .debug_str 0x00006393 0x10e THUMB Debug/../../obj/usbd_usr.o 0x333 (size before relaxing) - .debug_str 0x0000648c 0xbb THUMB Debug/../../obj/vectors.o + .debug_str 0x000064a1 0xbb THUMB Debug/../../obj/vectors.o 0x1ea (size before relaxing) - .debug_str 0x00006547 0x128 THUMB Debug/../../obj/cpu.o + .debug_str 0x0000655c 0x128 THUMB Debug/../../obj/cpu.o 0x270 (size before relaxing) - .debug_str 0x0000666f 0x23d THUMB Debug/../../obj/flash.o + .debug_str 0x00006684 0x23d THUMB Debug/../../obj/flash.o 0x4f6 (size before relaxing) - .debug_str 0x000068ac 0x9f THUMB Debug/../../obj/nvm.o + .debug_str 0x000068c1 0x9f THUMB Debug/../../obj/nvm.o 0x276 (size before relaxing) - .debug_str 0x0000694b 0xca THUMB Debug/../../obj/timer.o + .debug_str 0x00006960 0xc1 THUMB Debug/../../obj/timer.o 0x235 (size before relaxing) - .debug_str 0x00006a15 0x130 THUMB Debug/../../obj/uart.o + .debug_str 0x00006a21 0x130 THUMB Debug/../../obj/uart.o 0x443 (size before relaxing) - .debug_str 0x00006b45 0x19a THUMB Debug/../../obj/can.o + .debug_str 0x00006b51 0x19a THUMB Debug/../../obj/can.o 0x33f (size before relaxing) - .debug_str 0x00006cdf 0x211 THUMB Debug/../../obj/usb.o + .debug_str 0x00006ceb 0x211 THUMB Debug/../../obj/usb.o 0xc9e (size before relaxing) - .debug_str 0x00006ef0 0x9b THUMB Debug/../../obj/assert.o + .debug_str 0x00006efc 0x9b THUMB Debug/../../obj/assert.o 0x1df (size before relaxing) - .debug_str 0x00006f8b 0xe8 THUMB Debug/../../obj/backdoor.o + .debug_str 0x00006f97 0xe8 THUMB Debug/../../obj/backdoor.o 0x226 (size before relaxing) - .debug_str 0x00007073 0x9b THUMB Debug/../../obj/boot.o + .debug_str 0x0000707f 0x9b THUMB Debug/../../obj/boot.o 0x1fe (size before relaxing) - .debug_str 0x0000710e 0x184 THUMB Debug/../../obj/com.o + .debug_str 0x0000711a 0x184 THUMB Debug/../../obj/com.o 0x37e (size before relaxing) - .debug_str 0x00007292 0x70 THUMB Debug/../../obj/cop.o + .debug_str 0x0000729e 0x70 THUMB Debug/../../obj/cop.o 0x190 (size before relaxing) - .debug_str 0x00007302 0x213 THUMB Debug/../../obj/xcp.o + .debug_str 0x0000730e 0x213 THUMB Debug/../../obj/xcp.o 0x44f (size before relaxing) - .debug_str 0x00007515 0x31b THUMB Debug/../../obj/file.o + .debug_str 0x00007521 0x31b THUMB Debug/../../obj/file.o 0x7e9 (size before relaxing) - .debug_str 0x00007830 0x314 THUMB Debug/../../obj/ff.o + .debug_str 0x0000783c 0x314 THUMB Debug/../../obj/ff.o 0x758 (size before relaxing) - .debug_str 0x00007b44 0xa5 THUMB Debug/../../obj/unicode.o + .debug_str 0x00007b50 0xa5 THUMB Debug/../../obj/unicode.o 0x171 (size before relaxing) - .debug_str 0x00007be9 0x3ee THUMB Debug/../../obj/uip.o + .debug_str 0x00007bf5 0x3ee THUMB Debug/../../obj/uip.o 0x5ca (size before relaxing) - .debug_str 0x00007fd7 0x184 THUMB Debug/../../obj/uip_arp.o + .debug_str 0x00007fe3 0x184 THUMB Debug/../../obj/uip_arp.o 0x37a (size before relaxing) - .debug_str 0x0000815b 0xc3 THUMB Debug/../../obj/net.o + .debug_str 0x00008167 0xc3 THUMB Debug/../../obj/net.o 0x413 (size before relaxing) - .debug_str 0x0000821e 0x56f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) + .debug_str 0x0000822a 0x56f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7em_t_le_eabi.a(libc2.o) 0x655 (size before relaxing) - .debug_str 0x0000878d 0x3b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) + .debug_str 0x00008799 0x3b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7em_t_le_eabi.a(libdebugio.o) 0x3fc (size before relaxing) - .debug_str 0x00008b40 0xd2 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) + .debug_str 0x00008b4c 0xd2 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7em_t_le_eabi.a(user_libc.o) 0x11b (size before relaxing) .comment 0x00000000 0x4e diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.srec b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.srec index 135347cc..78664c98 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.srec +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/bin/openbtl_olimex_stm32e407.srec @@ -1,29 +1,29 @@ S02B0000433A2F576F726B2F736F6674776172652F4F70656E424C542F5461726765742F44656D6F2F41524DEF -S31508000000043F0020890100080D4300080D4300083D -S315080000100D4300080D4300080D4300080D43000872 -S315080000200D4300080D4300080D4300080D43000862 -S315080000300D4300080D4300080D4300080D43000852 -S315080000400D4300080D4300080D4300080D43000842 -S315080000500D4300080D4300080D4300080D43000832 -S315080000600D4300080D4300080D4300080D43000822 -S315080000700D4300080D4300080D4300080D43000812 -S315080000800D4300080D4300080D4300080D43000802 -S315080000900D4300080D4300080D4300080D430008F2 -S315080000A00D4300080D4300080D4300080D430008E2 -S315080000B00D4300080D4300080D4300080D430008D2 -S315080000C00D4300080D4300080D4300080D430008C2 -S315080000D00D4300080D4300080D4300080D430008B2 -S315080000E00D4300080D4300080D4300080D430008A2 -S315080000F00D4300080D4300080D4300080D43000892 -S315080001000D4300080D4300080D4300080D43000881 -S315080001100D4300080D4300080D4300080D43000871 -S315080001200D4300080D4300080D4300080D43000861 -S315080001300D4300080D4300080D4300080D43000851 -S315080001400D4300080D4300080D4300080D43000841 -S315080001500D4300080D4300080D4300080D43000831 -S315080001600D4300080D4300080D4300080D43000821 -S315080001700D4300080D4300080D4300080D43000811 -S30D080001800D4300080D430008B9 +S31508000000043F0020890100081D4300081D4300081D +S315080000101D4300081D4300081D4300081D43000832 +S315080000201D4300081D4300081D4300081D43000822 +S315080000301D4300081D4300081D4300081D43000812 +S315080000401D4300081D4300081D4300081D43000802 +S315080000501D4300081D4300081D4300081D430008F2 +S315080000601D4300081D4300081D4300081D430008E2 +S315080000701D4300081D4300081D4300081D430008D2 +S315080000801D4300081D4300081D4300081D430008C2 +S315080000901D4300081D4300081D4300081D430008B2 +S315080000A01D4300081D4300081D4300081D430008A2 +S315080000B01D4300081D4300081D4300081D43000892 +S315080000C01D4300081D4300081D4300081D43000882 +S315080000D01D4300081D4300081D4300081D43000872 +S315080000E01D4300081D4300081D4300081D43000862 +S315080000F01D4300081D4300081D4300081D43000852 +S315080001001D4300081D4300081D4300081D43000841 +S315080001101D4300081D4300081D4300081D43000831 +S315080001201D4300081D4300081D4300081D43000821 +S315080001301D4300081D4300081D4300081D43000811 +S315080001401D4300081D4300081D4300081D43000801 +S315080001501D4300081D4300081D4300081D430008F1 +S315080001601D4300081D4300081D4300081D430008E1 +S315080001701D4300081D4300081D4300081D430008D1 +S30D080001801D4300081D43000899 S3150800018872B62949072291438D4628482849294A9B S3150800019800F039F828482949294A00F034F8294846 S315080001A829492A4A00F02FF829482A492A4A00F0F4 @@ -34,13 +34,13 @@ S315080001E801601C481C49884205D00268043003B4DB S315080001F8904703BCF7E700208646EC460020002116 S31508000208204A9047FEE7884207D0521A05D0037855 S3150800021801300B700131013AF9D17047884202D092 -S3150800022802700130FAE77047043F002008A9000861 +S3150800022802700130FAE77047043F002018A9000851 S3150800023800000020E500002090020008900200084F -S31508000248C09D000808A9000800000020000000203A -S31508000258C09D0008C09D0008C09D0008C09D0008F4 -S31508000268C09D0008C09D0008C09D0008C09D0008E4 -S3150800027808A90008E8000020042F0020042F002001 -S30D08000288043700203D3F000881 +S31508000248D09D000818A9000800000020000000201A +S31508000258D09D0008D09D0008D09D0008D09D0008B4 +S31508000268D09D0008D09D0008D09D0008D09D0008A4 +S3150800027818A90008E8000020042F0020042F0020F1 +S30D08000288043700204D3F000871 S3150800029010B54FF43053C4F20103586B10F0450FF4 S315080002A0FBD043070DD410F0010405D140F2FF50EE S315080002B001F032FC204610BD012001F02DFC012082 @@ -315,10 +315,10 @@ S3150800137010BD00BF04000020F0B50E46ADF5037D94 S315080013801546D8B95C1EE4B2C3B14FF400776219AA S31508001390009702A852020023FFF790FD70B9FFF7E5 S315080013A0B3FF0128FBD006EB442002A94FF40072D4 -S315080013B008F088FC34B1601EC4B2E8E701200DF5D8 +S315080013B008F090FC34B1601EC4B2E8E701200DF5D0 S315080013C0037DF0BD2046FAE7F0B50D46ADF5037D81 S315080013D01646E8B95C1EE4B2D3B14FF400774FF471 -S315080013E0007205EB442102A808F06CFCA2190097CC +S315080013E0007205EB442102A808F074FCA2190097C4 S315080013F002A852020023FFF755FE08B1052807D1B7 S31508001400FFF782FF0128FBD034B1601EC4B2E6E7BD S3150800141001200DF5037DF0BD2046FAE710B5164B01 @@ -564,22 +564,22 @@ S315080023001F442846FFF71AFD60F30F04444515D00D S315080023104C4513D0202E3DD0B5B202212846FFF7F2 S315080023200DFD032160F31F442846FFF707FD60F300 S315080023300F04771C022144450E44D9D103A8294627 -S31508002340FFF760FD20B9144840F2471102F086FFF6 +S31508002340FFF760FD20B9144840F2471102F08EFFEE S315080023504FF41040114A124C124B9460C4F202001A S31508002360002111605160D2600261402259605A71A1 S315080023709A8819604FF4C86161F30C020A499A8079 S3150800238080229960DB60DA70C360FFF7BBFC33B06C -S31508002390BDE8F0833546D1E7C09D00080009002056 +S31508002390BDE8F0833546D1E7D09D00080009002046 S315080023A080090020000200208002002042F67463A3 S315080023B0C2F200030822002027211A70587099706B S315080023C069225B204521DA7018715971704700BF80 S315080023D038B50E4CE37803F08000C1B211B1002580 S315080023E0284638BD65880A490A48AA04950C2A462B -S315080023F007F068FCE0784FF41043C4F2020340F09B +S315080023F007F070FCE0784FF41043C4F2020340F093 S3150800240080010122E17028469A6038BD000200204A S315080024108002002018280020F8B5104CE57805F051 S315080024208000C5B2C5B90E4E0E4F0F493A883046E0 -S3150800243007F048FC3B88656019054FF41042080D03 +S3150800243007F050FC3B88656019054FF41042080DFB S31508002440C4F20202A0801023B02101202560A660F4 S31508002450A370E1705060F8BDFEE700BF00090020D8 S31508002460800900200C28002018280020D0F8E8351C @@ -620,10 +620,10 @@ S3150800268008BFC918C4F8902308BFC4F880139A4233 S3150800269028BF1A46204692B200F05AF8D7E7D0F873 S315080026A0E4150B691BB190F81221032A03D02046C2 S315080026B000F058F8CBE79847F9E700BF2DE9F04155 -S315080026C0069D044616461F46884601F0B3FC20467A +S315080026C0069D044616461F46884601F0BBFC204672 S315080026D04146C4F8E475C4F8E855C4F8EC6500F05A S315080026E0DDFFD4F8E835186880472046BDE8F04194 -S315080026F001F0F8BCD0F8E43510B504461A689047DE +S315080026F001F000BDD0F8E43510B504461A689047D5 S31508002700D4F8E80581688847002010BD08B5D0F8D8 S31508002710E4355A689047002008BD00BF13460A46AC S31508002720022110B5C0F83C31C0F8383180F81111D3 @@ -709,14 +709,14 @@ S31508002C105C00A31CDCB2138003220C704A70027895 S31508002C205AB1022300255C1CE4B2CA540D5510F8AB S31508002C30012F0233DBB2002AF5D130BC70470224DB S31508002C402346E8E730B5054683B000230320019301 -S31508002C5001F04AFAEB681A694FF454640192C0F21B -S31508002C6003040FE001F040FAEB681A690192019932 -S31508002C70032000290CDB01F037FAEB681969013CDF +S31508002C5001F052FAEB681A694FF454640192C0F213 +S31508002C6003040FE001F048FAEB681A69019201992A +S31508002C70032000290CDB01F03FFAEB681969013CD7 S31508002C80019124D001990320002904F1FF34E9DADF S31508002C90019840F0010201920199196118694FF4EF S31508002CA054620190C0F2030208E018690190019984 S31508002CB0C90709D51869013A019005D0019911F09B -S31508002CC0010F02F1FF32F0D1032001F00DFA0020C6 +S31508002CC0010F02F1FF32F0D1032001F015FA0020BE S31508002CD003B030BD10B4C47814BB00EB82000333D4 S31508002CE09B10D0F8D0001BD051F8042B02600122AB S31508002CF05C1E0431934204F0010411D034B151F83A @@ -761,7 +761,7 @@ S31508002F50DAE74FF460634FF488614FF480640393B3 S31508002F6002910194934659E738B5037A0025012B57 S31508002F7004461ED0C168CA6842F04003CB60FFF71A S31508002F8061FE607AE16800280CBF4FF450224FF4C6 -S31508002F90E8128A63142001F0B5F8E278012A06D10E +S31508002F90E8128A63142001F0BDF8E278012A06D106 S31508002FA0E068816821F03E0343F02A02826000202F S31508002FB038BDC068617A836B65F3104309B143F481 S31508002FC080138363C2686FF386126FF396526FF3AA @@ -774,14 +774,14 @@ S3150800302020030193019A61F38A1201920199C268F9 S31508003030116110694FF454630190C0F2030308E06C S31508003040106901900199880609D51069013B01901C S3150800305005D0019911F0200F03F1FF33F0D10320B9 -S3150800306001F042F8002003B000BD00BF00B583B0F0 +S3150800306001F04AF8002003B000BD00BF00B583B0E8 S3150800307000230193019941F010020192019BC06857 S31508003080036101694FF454630191C0F2030308E038 S3150800309001690191019AD10609D50169013B01919E S315080030A005D0019A12F0100F03F1FF33F0D1032077 -S315080030B001F01AF8002003B000BD00BFC26808B5C9 +S315080030B001F022F8002003B000BD00BFC26808B5C1 S315080030C0D36801296FF35D736FF39E7308D009B94E -S315080030D043F080433220D36001F014F8002008BD85 +S315080030D043F080433220D36001F01CF8002008BD7D S315080030E043F00053F6E700BFC368586900F00101D2 S315080030F081F00100704700BFC3685A69986910409B S31508003100704700BF30B4C3684FF4006200216FF007 @@ -807,7 +807,7 @@ S315080032301F4364F30F014FF4907244628162C0F831 S31508003240043162F30F03C0F220034FF4A071C0F8F3 S31508003250083161F30F036FF31F43C0F80C3184E79D S3150800326003699868C0F341014B1E022B02D8024A33 -S31508003270D05C7047032070472C9E0008036982695A +S31508003270D05C7047032070473C9E0008036982694A S3150800328098681168C0F34100022808D06FF30A0154 S3150800329011605A6842F48071596000207047032013 S315080032A060F30A01F4E700BF70B44B780022012BE3 @@ -908,7 +908,7 @@ S3150800388004F55D7301F07F010024D20919709C705C S315080038905A701946FFF7BCFE204610BD01F07F019D S315080038A001EB810400EBC40303F58E73ECE700BF5C S315080038B003690022186861F30A1202431A60704706 -S315080038C003695A6842F002005860032000F01ABCE7 +S315080038C003695A6842F002005860032000F022BCDF S315080038D02DE9F04F85B00446FFF706FC10B905B090 S315080038E0BDE8F08F2046FFF707FC83460028F6D090 S315080038F0C0F3074808F00800C0B2002840F0C480AA @@ -996,1728 +996,1729 @@ S31508003E002FFCDBE7704700BF704700BF704700BF55 S31508003E100020012108B5C4F20200FDF713FD10F1D8 S31508003E20FF3018BF012008BD10B588B000240C4823 S31508003E3000946946019402940394049405940694A4 -S31508003E40079404F037FB48B9009828B19DF8080094 +S31508003E40079404F03FFB48B9009828B19DF808008C S31508003E5080F01001C1F3001008B010BD2046FBE742 -S31508003E60309E000849F63060C0F60000704700BF73 +S31508003E60409E000849F64060C0F60000704700BF53 S31508003E7010B5074C0749002320460A2284F8243245 -S31508003E8003F024FF10B9012084F8240210BD00BFF6 -S31508003E90D4100020509E000808B50B4890F824322C -S31508003EA0012B0DD04FF4A050C4F201004021FDF7BC -S31508003EB0C5FE0028F6D00548BDE8084004F020BB3A -S31508003EC004F02CFAEEE700BFD4100020309E00085C -S31508003ED0034890F82432012B00D0704704F01EBA2C -S31508003EE0D410002038B5144D95F82432012B044619 -S31508003EF015D0217891B14FF4A050C4F20100FDF716 -S31508003F0095FE4FF4A050C4F201008021FDF796FEFD -S31508003F100028F6D014F8011F0029ECD138BD29462F -S31508003F2004F09CFB0028E4DA0021284685F82412D0 -S31508003F3004F0F4F9DDE700BFD410002000B583B023 -S31508003F40FDF7A0FA01200146FDF7F4FC0020012444 -S31508003F50022506466946C4F2020000948DF80460FC -S31508003F608DF807608DF80550FDF7C4FB2020214623 -S31508003F70FDF70AFD04202146FDF7DCFC4FF400603E -S31508003F80C4F2020006210822FDF762FC4FF4006025 -S31508003F900822C4F202000721FDF75AFC4FF400601C -S31508003FA04023C4F20200694600938DF806608DF836 -S31508003FB007408DF804508DF80550FDF79BFB4FF42C -S31508003FC000608022C4F20200694600928DF804500F -S31508003FD0FDF790FB28462146FDF7ACFC4FF48060C0 -S31508003FE0C4F2020005210922FDF732FC4FF4806075 -S31508003FF00922C4F202000621FDF72AFC4FF480606C -S315080040006023C4F20200694600938DF804508DF8C7 -S3150800401005508DF806608DF80740FDF76BFB4FF0ED -S31508004020C0602146FDF7A2FC01F05AF901F068F9D3 -S31508004030FCE700BFF0B50120002483B0C4F20204F7 -S315080040400146FDF777FC00264FF4C85303270222E2 -S315080040506946204600938DF804208DF805708DF882 -S3150800406006608DF80760FDF745FB204608210A2201 -S31508004070FDF7EEFB20460B210A22FDF7E9FB0A2293 -S3150800408020460C21FDF7E4FB01254FF4007320467A -S31508004090694600938DF805708DF804608DF8065012 -S315080040A08DF80760FDF726FB694620464FF48062C7 -S315080040B000928DF806508DF807508DF80570FDF7BB -S315080040C019FB0A210A462046FDF7C2FB29464FF48A -S315080040D08040FDF759FC80202946FDF739FC03B0DE -S315080040E0F0BD00BF704700BF10F1FF3008D31C2198 -S315080040F000BF4B1E00BF591EFAD110F1FF30F6D291 -S31508004100704700BF4FF47A7303FB00F010F1FF30DD -S3150800411008D31C2200BF511E00BF4A1EFAD110F157 -S31508004120FF30F6D2704700BF202340F248000B80CC -S31508004130C2F20000704700BF08B590F81231032B91 -S3150800414001D0002008BD00F0A9FF002008BD00BF6F -S3150800415008B500F0A3FF002008BD00BF084608B553 -S3150800416001F016F8002008BD10B581210446FFF7B6 -S315080041700BFB20460121FFF707FB002010BD00BFFF -S3150800418010B58121044640220223FFF7D7FA012100 -S31508004190402202232046FFF7D1FA41F2FC222046AC -S315080041A00121C2F200024023FFF704FB002010BDE4 -S315080041B010B50A7812F0600F0B46044606D14A7805 -S315080041C00A2A05D00B2A14D0062A07D0002010BDCB -S315080041D00F490122FEF7A2FA002010BD4888010AFD -S315080041E021290ED00B4917222046FEF797FA002000 -S315080041F010BD8B7813B9064A1360E7E7FEF7F4FAA1 -S31508004200E4E7DA880449172A28BF1722ECE700BF33 -S315080042103C130020510000205A00002041F2FC20E7 -S31508004220C2F20000704700BF122340F2B4000B80B0 -S31508004230C2F20000704700BF042340F2B0000B80B2 -S31508004240C2F20000704700BF10B540F6C474C2F24F -S31508004250000449F660600A46C0F600002146FEF7EB -S31508004260CBFC204610BD00BF10B540F6C474C2F2A0 -S31508004270000449F678600A46C0F600002146FEF7B3 -S31508004280BBFC204610BD00BF10B540F6C474C2F290 -S31508004290000449F680600A46C0F600002146FEF78B -S315080042A0ABFC204610BD00BF10B540F6C474C2F280 -S315080042B0000449F690600A46C0F600002146FEF75B -S315080042C09BFC204610BD00BF10B540F6C474C2F270 -S315080042D0000449F6A0600A46C0F600002146FEF72B -S315080042E08BFC204610BD00BF704700BF704700BF5B -S315080042F0704700BF0020FFF785BD00BF0120FFF70C -S3150800430081BD00BFFFF782BDFFF77EBD49F6B460E9 -S31508004310C0F600003D2100F0A1BF00BF08B500F0BF -S31508004320F3FA00B908BDFFF773FD0028FAD001F0CB -S315080043304DF800F00BFB00F0E9FA4EF60853CEF202 -S31508004340000320F0604020F07F021A6000F0DEFAD9 -S315080043504168884708BD00BFF8B5571EBFB20AB303 -S315080043600E1A441C825DC343E719F918027001F05E -S31508004370010501F07BF8BC4215D035B1A05D04F803 -S31508004380010B01F073F8BC420ED0A25D254605F874 -S31508004390012B01F06BF8AB5D63706C1C01F066F8DD -S315080043A0BC42F2D1F8BDF8BDF8BD00BF10B5044651 -S315080043B001F05CF84BF6FF73C0F600039C4205D982 -S315080043C04FF6FF70C0F60000844279D901F04EF826 -S315080043D04FF6FF71C0F600018C4205D94FF6FF7201 -S315080043E0C0F60102944269D901F040F84FF6FF730E -S315080043F0C0F601039C4205D94FF6FF70C0F60300CC -S3150800440084425FD901F032F84FF6FF71C0F6030116 -S315080044108C4205D94FF6FF72C0F60502944255D96B -S3150800442001F024F84FF6FF73C0F605039C4205D940 -S315080044304FF6FF70C0F60700844245D901F016F81A -S315080044404FF6FF71C0F607018C4205D94FF6FF7289 -S31508004450C0F6090294423DD901F008F84FF6FF73F9 -S31508004460C0F609039C4205D94FF6FF70C0F60B004B -S3150800447084422DD900F0FAFF4FF6FF71C0F60B0102 -S315080044808C4205D94FF6FF72C0F60D0294420DD93B -S3150800449000F0ECFF4FF6FF73C0F60D039C4203D9FC -S315080044A00820B4F1016F02D3FF2010BD07200A4A85 -S315080044B000EB400102EB8103187A10BD0120F6E7F4 -S315080044C00020F4E70220F2E70420F0E70320EEE7F5 -S315080044D00620ECE70520EAE7709F00082DE9F84377 -S315080044E006460068FFF762FFFF283AD0FDF756F840 -S315080044F0F320FDF76FF8FDF773F8012837D000248D -S3150800450018E054F808202C1D974224D1D6F80080CC -S315080045104F6805EB080900F0A9FF48463946FDF73C -S315080045208DF8082817D155F80800874213D1B4F535 -S31508004530007F1AD03319D6F800805F6804EB0809A3 -S3150800454000F094FF39464846FDF778F8251D0828F7 -S3150800455006EB0501D5D00024FDF732F82046BDE864 -S31508004560F88300242046BDE8F8830124F4E7FDF724 -S3150800457027F80024F2E700BF124A904238B50446ED -S315080045800D461CD04FF44043C0F60003994208D0AC -S31508004590FFF7A4FF10B1E805C10D19B100242046A4 -S315080045A038BD14462268954207D02046294640F869 -S315080045B0045B4FF40072FFF7CFFE204638BD024C6D -S315080045C0E9E700BF40130020441500202DE9F84F05 -S315080045D0064600684FEA512A9946431C0C4615467A -S315080045E04FEA4A2A70D0824507D030465146FFF72F -S315080045F0C3FF0646002864D00068241A31190C1D2A -S31508004600371D00F033FF40F2FF18E31B09F1FF3BAB -S3150800461043450BF0010B0AF5007A40D815F8012B33 -S31508004620B9F1010904F8012B2DD0BBF1000F0BD00D -S3150800463000F01CFFE01B40453AD815F8011BB9F1FC -S31508004640010904F8011B1ED000F010FFE31B4345C7 -S3150800465009F1FF391AD815F8012B04F8012B00F0D7 -S3150800466005FFE01B4045E8D930465146FFF784FF71 -S315080046700646071D28B33C4615F8011BB9F1010982 -S3150800468004F8011BE0D10120BDE8F88F30465146F9 -S31508004690FFF772FF0646071D98B13C46DBE7304632 -S315080046A05146FFF769FF064658B1071D3C46B5E770 -S315080046B030465146FFF760FF064610B1071D3C46D7 -S315080046C0BBE70020BDE8F88F3046514640F804ABFA -S315080046D04FF40072FFF740FE306884E741F2445217 -S315080046E041F24033C2F20002C2F200034FF0FF313A -S315080046F011601960704700BF70B504460D4616462E -S31508004700FFF754FEFF2816D0601E4019FFF74EFE2D -S31508004710FF2810D04FF44043620AC0F60003B3EBFB -S31508004720422F0CBF05480648214632462B46BDE8AF -S315080047307040FFF74BBF002070BD00BF401300203C -S3150800474044150020F8B505460E46FFF72FFE044629 -S31508004750681E8019FFF72AFEFF2C05464CD0FF2855 -S315080047604AD0844248D8022C46D90B2844D8FCF7AC -S3150800477015FFF320FCF72EFFFCF732FF012837D090 -S31508004780204E2B1B03F0010700F070FE022136F8BD -S315080047901400FCF773FF08282AD10134E4B2A542B5 -S315080047A02CD3D7B100F062FE022136F81400FCF7CC -S315080047B065FF08281CD1611CCCB2A5420DD21DE0AC -S315080047C000F054FE36F814000221FCF757FF631C6C -S315080047D00828DCB20CD1A54210D300F047FE02210E -S315080047E036F81400FCF74AFF621C0828D4B2E7D052 -S315080047F0FCF7E6FE0020F8BD0020F8BDFCF7E0FE59 -S315080048000120F8BD409F0008F0B5104B1A68013228 -S3150800481083B019D003F114009F685E68DD681C69CF -S3150800482007C8BB195B191B19181841188B1802AA57 -S31508004830584242F8040D4CF28810C0F600000421D4 -S31508004840FFF75AFF03B0F0BD0120FBE74013002035 -S315080048504CF204004FF440414CF20803C0F6000045 -S31508004860C0F60001C0F600034CF20C0270B4C0F6A4 -S3150800487000020D6804681E684CF21003C0F60003B7 -S315080048804CF214016019C0F6000115681C68096825 -S315080048904CF218028019C0F600024CF2881340192F -S315080048A0C0F60003001912681B6841188A18D01848 -S315080048B0D0F1010038BF002070BC70470A4808B51F -S315080048C00368013302D0FFF709FE58B107480168AB -S315080048D04B1C05D0FFF702FE003018BF012008BDAB -S315080048E0012008BD08BD00BF401300204415002064 -S315080048F04FF44040C0F60000704700BFFFF7EEBE19 -S31508004900FFF7FABEFFF71EBFFFF7A2BFFFF7F0BF1C -S3150800491008B5FFF779FF00B908BDBDE80840FFF7FD -S31508004920CDBF00BF4EF21003CEF2000341F248722B -S3150800493049F23F000021C0F20200C2F200021960EB -S315080049405860052099601860116070474EF2100390 -S31508004950CEF2000300221A60704700BF4EF2100321 -S31508004960CEF200031868C30303D502490A68531C2C -S315080049700B607047481700204EF21003CEF2000372 -S315080049800449186810F4803F086802D001300860AE -S31508004990704770474817002038B505464FF4A050B1 -S315080049A02021C4F20100FDF749F90128044602D086 -S315080049B00024204638BD4FF4A050C4F20100FDF78C -S315080049C039F92870204638BD10B54FF4A05484B084 -S315080049D00023C4F20104694620464FF46142ADF84B -S315080049E00430ADF80630ADF80830ADF80C300C23BD -S315080049F00092ADF80A30FDF79BF820460121FDF735 -S31508004A0007F904B010BD00BF4029F8B50E460746A1 -S31508004A104AD84FF4A050C4F201008021FDF70EF9E0 -S31508004A20002830D123487F2100F018FC56B3002413 -S31508004A3007E0882101341F4800F010FCA3B29E420B -S31508004A401FD900F013FD4FF4A050C4F201008021D5 -S31508004A503D5DFDF7F3F80028EBD04FF4A050C4F203 -S31508004A6001002946FDF7E2F84FF4A050C4F2010010 -S31508004A708021FDF7E3F80028F6D00134A3B29E4260 -S31508004A80DFD8F8BDF8BD4FF4A050C4F20100314696 -S31508004A90FDF7CCF84FF4A050C4F201008021FDF7D1 -S31508004AA0CDF80028F6D0C1E702487B2100F0D6FBF6 -S31508004AB0AFE700BFDC9F00082DE9F0411F4C2578C1 -S31508004AC080464DB91E4E3046FFF766FF0128074659 -S31508004AD027D00020BDE8F0811A4E194F3078411CC6 -S31508004AE07818FFF759FF012805460AD0FFF744FF53 -S31508004AF0154B1A6864329042EBD900202070BDE845 -S31508004B00F08130783A78411CCBB29A423370E0D1C2 -S31508004B104046791CFFF720FC002222702846BDE893 -S31508004B20F08130780028D4D0FFF726FF0649054BD8 -S31508004B3008601D7027702846BDE8F081911700208F -S31508004B404C17002090170020941700202DE9F04FED -S31508004B50594B83B000204FF4FA724AF2104840F2DB -S31508004B60FF3B1C18861C6178185C451805FB022457 -S31508004B7098FBF4FC04FB0CF4C4F524440CF1FF3553 -S31508004B80103403EB06091FFA85FA14B9DA4540F220 -S31508004B908F80985D99F80110451805FB022498FB4B -S31508004BA0F4F504FB05F4C4F5244410341CB9013D9E -S31508004BB0ACB25C457CD9B01C2428D2D13F48F02140 -S31508004BC000F04CFB4FF0FF354FF4D044C4F200041C -S31508004BD000236361226842F40041216020680204D0 -S31508004BE004D500F043FC23681804FAD44FF4D044E3 -S31508004BF0C4F20004226822F002012160206840F015 -S31508004C00010323606268D30704D400F02FFC6168AF -S31508004C10CA07FAD5019C013F601E3B054FF4D044F4 -S31508004C20C4F2000443EA00473D43E561226822F0E6 -S31508004C30010121606068C10704D500F017FC6368AC -S31508004C40DB07FAD44FF4C840C4F200000022D0F8BB -S31508004C50001241F00103C0F80032D0F81C1221F40A -S31508004C608043C0F81C32D0F80C1241F48043C0F8D7 -S31508004C700C32C0F8B022C0F8B422D0F8042222F4CC -S31508004C808041C0F80412D0F8143223F48042C0F8E8 -S31508004C901422D0F81C1241F48043C0F81C32D0F814 -S31508004CA0002222F00101C0F8001203B0BDE8F08F1F -S31508004CB001900F4688E700BFDCA000085CA000084A -S31508004CC038B54FF4D043C4F200030446986843014C -S31508004CD00D463BD54FF4D043C4F20003D3F88021E8 -S31508004CE002F00101C3F88011D3F8800140F07C423C -S31508004CF042F40011C3F88011C3F88451A278E5780C -S31508004D0020786178120442EA0565054345EA0120E0 -S31508004D10C3F88801A279E57920796179120442EA13 -S31508004D200562024342EA0120C3F88C01D3F88011D8 -S31508004D3041F00102C3F880219868400105D41C4659 -S31508004D4000F094FBA3685901FAD538BD02484FF420 -S31508004D50A27100F083FABDE75CA000084FF4D043C7 -S31508004D60C4F20003DA6812F0030110D0D3F8B011C8 -S31508004D7040F26762B2EB515F0BD000204FF4D0438C -S31508004D80C4F20003DA6842F02001D9607047084689 -S31508004D907047D3F8B8110170D3F8B821110A4170D9 -S31508004DA0D3F8B821110C8170D3F8B821110EC1704F -S31508004DB0D3F8BC210271D3F8BC110A0A4271D3F8A0 -S31508004DC0BC110A0C8271D3F8BC31190EC1710120CD -S31508004DD0D4E700BF012838B504460D4604D9104863 -S31508004DE040F29F1100F03AFA0E4A04EB440002EB37 -S31508004DF0C003197C5C7C8C4210D0DC6825705A7C18 -S31508004E00D9685868541C4A1C82425C74DA6003D913 -S31508004E1019680120D96038BD012038BD002038BD89 -S31508004E2000A10008E4170020012838B504460D46FD -S31508004E3004D90F4840F2C11100F010FA0D4A04EBEC -S31508004E40440402EBC403587C80B19968087828703A -S31508004E509A685C7C5868511C013C81425C74996074 -S31508004E6003D91A6801209A6038BD012038BD00BFF1 -S31508004E7000A10008E41700202DE9F04F41F61405BB -S31508004E8085B0C2F200050395039E41F2E47441F62B -S31508004E909807C2F200044FF0010EC2F200074FF065 -S31508004EA0400A06EB0E0C41F2E07807EB0A0640F2E0 -S31508004EB0C803C2F20008C2F200036660039E0093AC -S31508004EC0002541F6DC0040F2940240F2680307EB45 -S31508004ED00E0904F1180BA574E56265743D70C8F8EF -S31508004EE0005084F82950C2F200000CF13F057146C3 -S31508004EF0C2F20002C2F2000386F800E0C4F814B059 -S31508004F0084F82AE084F810A0C4F80890C4F80C9035 -S31508004F10C4F8009084F828A0C4F820C0C4F824C0B7 -S31508004F20C4F818C0E561FDF7C9FB05B0BDE8F08F08 -S31508004F3008B541F6DC00C2F20000FEF7C1FC00200D -S31508004F40BDE80840FEF75EBF3F292DE9F0418846D7 -S31508004F50074654D82D4E41463078FFF73BFF0128C7 -S31508004F6003D02B48A32100F079F9B8F1000F44D0FB -S31508004F7008F1FF3303F0010500F078FA3078397844 -S31508004F80FFF728FF012803D02148AC2100F066F975 -S31508004F900124444531D27DB100F068FA3078395D94 -S31508004FA0FFF718FFA04203D01948AC2100F056F9C4 -S31508004FB00134A0B2404527D200F058FA395D30785E -S31508004FC0FFF708FF651C01284FF0AC01104801D017 -S31508004FD000F044F900F04AFA795D3078FFF7FAFEF6 -S31508004FE001284FF0AC010A4801D000F037F96C1CD3 -S31508004FF0A1B24145E0D3BDE8F081BDE8F08104489F -S315080050009F2100F02BF9A5E7BDE8F081981800204C -S3150800501000A100082DE9F0411B4D80461B48FEF70C -S3150800502057FC2C7854B91A4E1A4831460078FFF7BF -S31508005030FBFE01281ED00020BDE8F081164E154B58 -S315080050403178134F18784A1CB918FFF7EDFE012876 -S315080050500446F0D130783A78411CCBB29A42337084 -S31508005060E9D14046791CFFF777F900222A702046D5 -S31508005070BDE8F08131780029DDD0074B28701C7017 -S315080050802046BDE8F08100BFDC170020DC180020B0 -S315080050909C17002014180020981700202DE9F041CD -S315080050A0364E3478012C82B004D9354840F2E111E5 -S315080050B000F0D4F8334B04EB440003EBC004617CE6 -S315080050C0002958D0402934BF88464FF04008307828 -S315080050D02D4F0DF10701FFF7A7FE08F1FF3501284F -S315080050E005F0010504D0264840F2291100F0B6F86B -S315080050F09DF807200124A0453A7036D995B1307835 -S315080051000DF10701FFF790FEA04204D01C4840F2BB -S31508005110291100F0A3F89DF8070038550134E3B2C9 -S31508005120984522D90DF107013078FFF77DFE651CF9 -S31508005130012840F22911124801D000F08FF89DF895 -S315080051400710307839550DF10701FFF76DFE012874 -S3150800515040F229110A4801D000F080F86C1C9DF82D -S315080051600700E2B290457855DCD80848064A8121FE -S315080051704346FEF73FFB02B0BDE8F08198180020D1 -S3150800518000A10008E417002058180020DC180020A9 -S315080051902F4B00EB800003EBC0012DE9F041B1F87D -S315080051A08C73002F49D02B4E7A1E347802F00105F5 -S315080051B0FFF734F801782046FFF70CFE012804D0E3 -S315080051C025484FF4A47100F049F80124A74234D9C0 -S315080051D08DB13578FFF722F8015D2846FFF7FAFD0D -S315080051E0A04204D01C484FF4A47100F037F80134EB -S315080051F0A0B2874221D996F80080FFF70FF8015D23 -S315080052004046FFF7E7FD651C01284FF4A4711248D4 -S3150800521001D000F023F83478FFF700F8415D204606 -S31508005220FFF7D8FD01284FF4A4710B4801D000F010 -S3150800523015F86C1CA3B29F42DDD8FEF7EFFF0246B5 -S31508005240034801214023BDE8F041FEF7B3BA00BF89 -S31508005250DC1800201418002000A1000808B5034B2C -S3150800526018600348016000F001F9FCE7D01E002031 -S31508005270D41E002010B500F0F5F8012806D000F07D -S315080052800BFB18B10B4C2378012B00D010BDFFF790 -S3150800529073FB09490A6802F51C5310339842F5D383 -S315080052A00020207000F002FB0028EFD1BDE8104076 -S315080052B0FFF734B8D81E0020DC1E002008B541F6DA -S315080052C0D863C2F2000301221A70FFF755FB41F6B4 -S315080052D0DC61C2F200010860BDE80840FFF7CABFFA -S315080052E008B500F0C1F8FFF71DFBFFF707FB00F054 -S315080052F0BDFA00F013F8BDE80840FFF7DFBF00BFAE -S3150800530008B500F0B3F8FFF729FB00F0E1FB00F061 -S315080053101DF8BDE80840FFF7ADBF00BF10B540F265 -S31508005320E404C2F2000400F0A3F8FFF70FFC01231F -S315080053302370FFF749FB00202070FFF79DFD02212F -S31508005340217004F0ADFB0322227010BD08B51D487C -S31508005350FFF704FD0128034617D01A48FFF7ACFBF0 -S3150800536001281CD01748FFF755FE012822D01548FA -S3150800537004F002FC012800D008BD134B1148032293 -S315080053801A70BDE8084000F093B80F4A0D4813702C -S3150800539000F08EF80B48FFF78FFB0128E2D10A4B85 -S315080053A008480021197000F083F80648FFF732FE16 -S315080053B00128DCD10449034802220A7000F078F873 -S315080053C0D5E700BFE01E0020E4000020FFF7B0BDCF -S315080053D070B5134C2378012B06460D461BD03BB1FE -S315080053E0022B0CD0032B11D0BDE8704000F058B842 -S315080053F03046E9B2FFF708FB2378022BF2D1304694 -S31508005400E9B2FFF7A1FD2378032BEDD13046E9B2C7 -S3150800541004F082FBE8E7C9B2FFF752FC2378DEE71F -S31508005420E4000020054B1878411ECBB2012B01D9A8 -S3150800543040207047024A32F813007047E400002003 -S3150800544080A10008054B1878411ECBB2012B01D963 -S3150800545040207047024A32F813007047E4000020E3 -S3150800546084A1000800F012B8704700BF704700BF5B -S3150800547041F62073C2F2000300221A709A6483F878 -S315080054804320A3F844209A705A70704741F6207357 -S31508005490C2F200031878003018BF0120704700BF19 -S315080054A041F62073C2F20003002283F843207047B6 -S315080054B0F8B50578FF2D06463FD0A94C2378012B71 -S315080054C000D0F8BDC93D352D7ED8DFE815F085003A -S315080054D07D007D0099007D007D00C300A100B60017 -S315080054E0CB007D007D007D007D007D007D007D0078 -S315080054F07D007D007D007D007D007D007D007D00B6 +S31508003E8003F02CFF10B9012084F8240210BD00BFEE +S31508003E90D4100020609E000810B50F4890F8243210 +S31508003EA0012B16D000F070FD00F1640403E000F069 +S31508003EB06BFD844208D34FF4A0504021C4F20100A0 +S31508003EC0FDF7BCFE0028F2D00448BDE8104004F017 +S31508003ED01FBB04F02BFAE5E7D4100020409E00082B +S31508003EE0034890F82432012B00D0704704F01EBA1C +S31508003EF0D410002038B5144D95F82432012B044609 +S31508003F0015D0217891B14FF4A050C4F20100FDF705 +S31508003F108DFE4FF4A050C4F201008021FDF78EFEFD +S31508003F200028F6D014F8011F0029ECD138BD29461F +S31508003F3004F09CFB0028E4DA0021284685F82412C0 +S31508003F4004F0F4F9DDE700BFD410002000B583B013 +S31508003F50FDF798FA01200146FDF7ECFC0020012444 +S31508003F60022506466946C4F2020000948DF80460EC +S31508003F708DF807608DF80550FDF7BCFB202021461B +S31508003F80FDF702FD04202146FDF7D4FC4FF400603E +S31508003F90C4F2020006210822FDF75AFC4FF400601D +S31508003FA00822C4F202000721FDF752FC4FF4006014 +S31508003FB04023C4F20200694600938DF806608DF826 +S31508003FC007408DF804508DF80550FDF793FB4FF424 +S31508003FD000608022C4F20200694600928DF80450FF +S31508003FE0FDF788FB28462146FDF7A4FC4FF48060C0 +S31508003FF0C4F2020005210922FDF72AFC4FF480606D +S315080040000922C4F202000621FDF722FC4FF4806063 +S315080040106023C4F20200694600938DF804508DF8B7 +S3150800402005508DF806608DF80740FDF763FB4FF0E5 +S31508004030C0602146FDF79AFC01F05AF901F068F9CB +S31508004040FCE700BFF0B50120002483B0C4F20204E7 +S315080040500146FDF76FFC00264FF4C85303270222DA +S315080040606946204600938DF804208DF805708DF872 +S3150800407006608DF80760FDF73DFB204608210A22F9 +S31508004080FDF7E6FB20460B210A22FDF7E1FB0A2293 +S3150800409020460C21FDF7DCFB01254FF40073204672 +S315080040A0694600938DF805708DF804608DF8065002 +S315080040B08DF80760FDF71EFB694620464FF48062BF +S315080040C000928DF806508DF807508DF80570FDF7AB +S315080040D011FB0A210A462046FDF7BAFB29464FF48A +S315080040E08040FDF751FC80202946FDF731FC03B0DE +S315080040F0F0BD00BF704700BF10F1FF3008D31C2188 +S3150800410000BF4B1E00BF591EFAD110F1FF30F6D280 +S31508004110704700BF4FF47A7303FB00F010F1FF30CD +S3150800412008D31C2200BF511E00BF4A1EFAD110F147 +S31508004130FF30F6D2704700BF202340F248000B80BC +S31508004140C2F20000704700BF08B590F81231032B81 +S3150800415001D0002008BD00F0A9FF002008BD00BF5F +S3150800416008B500F0A3FF002008BD00BF084608B543 +S3150800417001F016F8002008BD10B581210446FFF7A6 +S3150800418003FB20460121FFF7FFFA002010BD00BF00 +S3150800419010B58121044640220223FFF7CFFA0121F8 +S315080041A0402202232046FFF7C9FA41F2FC222046A4 +S315080041B00121C2F200024023FFF7FCFA002010BDDD +S315080041C010B50A7812F0600F0B46044606D14A78F5 +S315080041D00A2A05D00B2A14D0062A07D0002010BDBB +S315080041E00F490122FEF79AFA002010BD4888010AF5 +S315080041F021290ED00B4917222046FEF78FFA0020F8 +S3150800420010BD8B7813B9064A1360E7E7FEF7ECFA98 +S31508004210E4E7DA880449172A28BF1722ECE700BF23 +S315080042203C130020510000205A00002041F2FC20D7 +S31508004230C2F20000704700BF122340F2B4000B80A0 +S31508004240C2F20000704700BF042340F2B0000B80A2 +S31508004250C2F20000704700BF10B540F6C474C2F23F +S31508004260000449F670600A46C0F600002146FEF7CB +S31508004270C3FC204610BD00BF10B540F6C474C2F298 +S31508004280000449F688600A46C0F600002146FEF793 +S31508004290B3FC204610BD00BF10B540F6C474C2F288 +S315080042A0000449F690600A46C0F600002146FEF76B +S315080042B0A3FC204610BD00BF10B540F6C474C2F278 +S315080042C0000449F6A0600A46C0F600002146FEF73B +S315080042D093FC204610BD00BF10B540F6C474C2F268 +S315080042E0000449F6B0600A46C0F600002146FEF70B +S315080042F083FC204610BD00BF704700BF704700BF53 +S31508004300704700BF0020FFF77DBD00BF0120FFF703 +S3150800431079BD00BFFFF77ABDFFF776BD49F6C460E1 +S31508004320C0F60000382100F0A1BF00BF08B500F0B4 +S31508004330F3FA00B908BDFFF76BFD0028FAD001F0C3 +S315080043404DF800F00BFB00F0E9FA4EF60853CEF2F2 +S31508004350000320F0604020F07F021A6000F0DEFAC9 +S315080043604168884708BD00BFF8B5571EBFB20AB3F3 +S315080043700E1A441C825DC343E719F918027001F04E +S31508004380010501F07BF8BC4215D035B1A05D04F8F3 +S31508004390010B01F073F8BC420ED0A25D254605F864 +S315080043A0012B01F06BF8AB5D63706C1C01F066F8CD +S315080043B0BC42F2D1F8BDF8BDF8BD00BF10B5044641 +S315080043C001F05CF84BF6FF73C0F600039C4205D972 +S315080043D04FF6FF70C0F60000844279D901F04EF816 +S315080043E04FF6FF71C0F600018C4205D94FF6FF72F1 +S315080043F0C0F60102944269D901F040F84FF6FF73FE +S31508004400C0F601039C4205D94FF6FF70C0F60300BB +S3150800441084425FD901F032F84FF6FF71C0F6030106 +S315080044208C4205D94FF6FF72C0F60502944255D95B +S3150800443001F024F84FF6FF73C0F605039C4205D930 +S315080044404FF6FF70C0F60700844245D901F016F80A +S315080044504FF6FF71C0F607018C4205D94FF6FF7279 +S31508004460C0F6090294423DD901F008F84FF6FF73E9 +S31508004470C0F609039C4205D94FF6FF70C0F60B003B +S3150800448084422DD900F0FAFF4FF6FF71C0F60B01F2 +S315080044908C4205D94FF6FF72C0F60D0294420DD92B +S315080044A000F0ECFF4FF6FF73C0F60D039C4203D9EC +S315080044B00820B4F1016F02D3FF2010BD07200A4A75 +S315080044C000EB400102EB8103187A10BD0120F6E7E4 +S315080044D00020F4E70220F2E70420F0E70320EEE7E5 +S315080044E00620ECE70520EAE7809F00082DE9F84357 +S315080044F006460068FFF762FFFF283AD0FDF74EF838 +S31508004500F320FDF767F8FDF76BF8012837D000248C +S3150800451018E054F808202C1D974224D1D6F80080BC +S315080045204F6805EB080900F0A9FF48463946FDF72C +S3150800453085F8082817D155F80800874213D1B4F52D +S31508004540007F1AD03319D6F800805F6804EB080993 +S3150800455000F094FF39464846FDF770F8251D0828EF +S3150800456006EB0501D5D00024FDF72AF82046BDE85C +S31508004570F88300242046BDE8F8830124F4E7FDF714 +S315080045801FF80024F2E700BF124A904238B50446E5 +S315080045900D461CD04FF44043C0F60003994208D09C +S315080045A0FFF7A4FF10B1E805C10D19B10024204694 +S315080045B038BD14462268954207D02046294640F859 +S315080045C0045B4FF40072FFF7CFFE204638BD024C5D +S315080045D0E9E700BF40130020441500202DE9F84FF5 +S315080045E0064600684FEA512A9946431C0C4615466A +S315080045F04FEA4A2A70D0824507D030465146FFF71F +S31508004600C3FF0646002864D00068241A31190C1D19 +S31508004610371D00F033FF40F2FF18E31B09F1FF3B9B +S3150800462043450BF0010B0AF5007A40D815F8012B23 +S31508004630B9F1010904F8012B2DD0BBF1000F0BD0FD +S3150800464000F01CFFE01B40453AD815F8011BB9F1EC +S31508004650010904F8011B1ED000F010FFE31B4345B7 +S3150800466009F1FF391AD815F8012B04F8012B00F0C7 +S3150800467005FFE01B4045E8D930465146FFF784FF61 +S315080046800646071D28B33C4615F8011BB9F1010972 +S3150800469004F8011BE0D10120BDE8F88F30465146E9 +S315080046A0FFF772FF0646071D98B13C46DBE7304622 +S315080046B05146FFF769FF064658B1071D3C46B5E760 +S315080046C030465146FFF760FF064610B1071D3C46C7 +S315080046D0BBE70020BDE8F88F3046514640F804ABEA +S315080046E04FF40072FFF740FE306884E741F2445207 +S315080046F041F24033C2F20002C2F200034FF0FF312A +S3150800470011601960704700BF70B504460D4616461D +S31508004710FFF754FEFF2816D0601E4019FFF74EFE1D +S31508004720FF2810D04FF44043620AC0F60003B3EBEB +S31508004730422F0CBF05480648214632462B46BDE89F +S315080047407040FFF74BBF002070BD00BF401300202C +S3150800475044150020F8B505460E46FFF72FFE044619 +S31508004760681E8019FFF72AFEFF2C05464CD0FF2845 +S315080047704AD0844248D8022C46D90B2844D8FCF79C +S315080047800DFFF320FCF726FFFCF72AFF012837D098 +S31508004790204E2B1B03F0010700F070FE022136F8AD +S315080047A01400FCF76BFF08282AD10134E4B2A542AD +S315080047B02CD3D7B100F062FE022136F81400FCF7BC +S315080047C05DFF08281CD1611CCCB2A5420DD21DE0A4 +S315080047D000F054FE36F814000221FCF74FFF631C64 +S315080047E00828DCB20CD1A54210D300F047FE0221FE +S315080047F036F81400FCF742FF621C0828D4B2E7D04A +S31508004800FCF7DEFE0020F8BD0020F8BDFCF7D8FE58 +S315080048100120F8BD509F0008F0B5104B1A68013208 +S3150800482083B019D003F114009F685E68DD681C69BF +S3150800483007C8BB195B191B19181841188B1802AA47 +S31508004840584242F8040D4CF28810C0F600000421C4 +S31508004850FFF75AFF03B0F0BD0120FBE74013002025 +S315080048604CF204004FF440414CF20803C0F6000035 +S31508004870C0F60001C0F600034CF20C0270B4C0F694 +S3150800488000020D6804681E684CF21003C0F60003A7 +S315080048904CF214016019C0F6000115681C68096815 +S315080048A04CF218028019C0F600024CF2881340191F +S315080048B0C0F60003001912681B6841188A18D01838 +S315080048C0D0F1010038BF002070BC70470A4808B50F +S315080048D00368013302D0FFF709FE58B1074801689B +S315080048E04B1C05D0FFF702FE003018BF012008BD9B +S315080048F0012008BD08BD00BF401300204415002054 +S315080049004FF44040C0F60000704700BFFFF7EEBE08 +S31508004910FFF7FABEFFF71EBFFFF7A2BFFFF7F0BF0C +S3150800492008B5FFF779FF00B908BDBDE80840FFF7ED +S31508004930CDBF00BF4EF21003CEF2000341F248721B +S3150800494049F23F000021C0F20200C2F200021960DB +S315080049505860052099601860116070474EF2100380 +S31508004960CEF2000300221A60704700BF4EF2100311 +S31508004970CEF200031868C30303D502490A68531C1C +S315080049800B607047481700204EF21003CEF2000362 +S315080049900449186810F4803F086802D0013008609E +S315080049A0704770474817002038B505464FF4A050A1 +S315080049B02021C4F20100FDF741F90128044602D07E +S315080049C00024204638BD4FF4A050C4F20100FDF77C +S315080049D031F92870204638BD10B54FF4A05484B07C +S315080049E00023C4F20104694620464FF46142ADF83B +S315080049F00430ADF80630ADF80830ADF80C300C23AD +S31508004A000092ADF80A30FDF793F820460121FDF72C +S31508004A10FFF804B010BD00BF4029F8B50E4607469A +S31508004A204AD84FF4A050C4F201008021FDF706F9D8 +S31508004A30002830D123487A2100F018FC56B3002408 +S31508004A4007E0832101341F4800F010FCA3B29E4200 +S31508004A501FD900F013FD4FF4A050C4F201008021C5 +S31508004A603D5DFDF7EBF80028EBD04FF4A050C4F2FB +S31508004A7001002946FDF7DAF84FF4A050C4F2010008 +S31508004A808021FDF7DBF80028F6D00134A3B29E4258 +S31508004A90DFD8F8BDF8BD4FF4A050C4F20100314686 +S31508004AA0FDF7C4F84FF4A050C4F201008021FDF7C9 +S31508004AB0C5F80028F6D0C1E70248762100F0D6FBF3 +S31508004AC0AFE700BFEC9F00082DE9F0411F4C2578A1 +S31508004AD080464DB91E4E3046FFF766FF0128074649 +S31508004AE027D00020BDE8F0811A4E194F3078411CB6 +S31508004AF07818FFF759FF012805460AD0FFF744FF43 +S31508004B00154B1A6864329042EBD900202070BDE834 +S31508004B10F08130783A78411CCBB29A423370E0D1B2 +S31508004B204046791CFFF720FC002222702846BDE883 +S31508004B30F08130780028D4D0FFF726FF0649054BC8 +S31508004B4008601D7027702846BDE8F081911700207F +S31508004B504C17002090170020941700202DE9F04FDD +S31508004B60594B83B000204FF4FA724AF2104840F2CB +S31508004B70FF3B1C18861C6178185C451805FB022447 +S31508004B8098FBF4FC04FB0CF4C4F524440CF1FF3543 +S31508004B90103403EB06091FFA85FA14B9DA4540F210 +S31508004BA08F80985D99F80110451805FB022498FB3B +S31508004BB0F4F504FB05F4C4F5244410341CB9013D8E +S31508004BC0ACB25C457CD9B01C2428D2D13F48EC2134 +S31508004BD000F04CFB4FF0FF354FF4D044C4F200040C +S31508004BE000236361226842F40041216020680204C0 +S31508004BF004D500F043FC23681804FAD44FF4D044D3 +S31508004C00C4F20004226822F002012160206840F004 +S31508004C10010323606268D30704D400F02FFC61689F +S31508004C20CA07FAD5019C013F601E3B054FF4D044E4 +S31508004C30C4F2000443EA00473D43E561226822F0D6 +S31508004C40010121606068C10704D500F017FC63689C +S31508004C50DB07FAD44FF4C840C4F200000022D0F8AB +S31508004C60001241F00103C0F80032D0F81C1221F4FA +S31508004C708043C0F81C32D0F80C1241F48043C0F8C7 +S31508004C800C32C0F8B022C0F8B422D0F8042222F4BC +S31508004C908041C0F80412D0F8143223F48042C0F8D8 +S31508004CA01422D0F81C1241F48043C0F81C32D0F804 +S31508004CB0002222F00101C0F8001203B0BDE8F08F0F +S31508004CC001900F4688E700BFECA000086CA000081A +S31508004CD038B54FF4D043C4F200030446986843013C +S31508004CE00D463BD54FF4D043C4F20003D3F88021D8 +S31508004CF002F00101C3F88011D3F8800140F07C422C +S31508004D0042F40011C3F88011C3F88451A278E578FB +S31508004D1020786178120442EA0565054345EA0120D0 +S31508004D20C3F88801A279E57920796179120442EA03 +S31508004D300562024342EA0120C3F88C01D3F88011C8 +S31508004D4041F00102C3F880219868400105D41C4649 +S31508004D5000F094FBA3685901FAD538BD02484FF410 +S31508004D60A07100F083FABDE76CA000084FF4D043A9 +S31508004D70C4F20003DA6812F0030110D0D3F8B011B8 +S31508004D8040F26762B2EB515F0BD000204FF4D0437C +S31508004D90C4F20003DA6842F02001D9607047084679 +S31508004DA07047D3F8B8110170D3F8B821110A4170C9 +S31508004DB0D3F8B821110C8170D3F8B821110EC1703F +S31508004DC0D3F8BC210271D3F8BC110A0A4271D3F890 +S31508004DD0BC110A0C8271D3F8BC31190EC1710120BD +S31508004DE0D4E700BF012838B504460D4604D9104853 +S31508004DF04FF4CD7100F03AFA0E4A04EB440002EB88 +S31508004E00C003197C5C7C8C4210D0DC6825705A7C07 +S31508004E10D9685868541C4A1C82425C74DA6003D903 +S31508004E2019680120D96038BD012038BD002038BD79 +S31508004E3010A10008E4170020012838B504460D46DD +S31508004E4004D90F484FF4DE7100F010FA0D4A04EB4E +S31508004E50440402EBC403587C80B19968087828702A +S31508004E609A685C7C5868511C013C81425C74996064 +S31508004E7003D91A6801209A6038BD012038BD00BFE1 +S31508004E8010A10008E41700202DE9F04F41F614059B +S31508004E9085B0C2F200050395039E41F2E47441F61B +S31508004EA09807C2F200044FF0010EC2F200074FF055 +S31508004EB0400A06EB0E0C41F2E07807EB0A0640F2D0 +S31508004EC0C803C2F20008C2F200036660039E00939C +S31508004ED0002541F6DC0040F2940240F2680307EB35 +S31508004EE00E0904F1180BA574E56265743D70C8F8DF +S31508004EF0005084F82950C2F200000CF13F057146B3 +S31508004F00C2F20002C2F2000386F800E0C4F814B048 +S31508004F1084F82AE084F810A0C4F80890C4F80C9025 +S31508004F20C4F8009084F828A0C4F820C0C4F824C0A7 +S31508004F30C4F818C0E561FDF7C1FB05B0BDE8F08F00 +S31508004F4008B541F6DC00C2F20000FEF7B9FC002005 +S31508004F50BDE80840FEF756BF3F292DE9F0418846CF +S31508004F60074654D82D4E41463078FFF73BFF0128B7 +S31508004F7003D02B489E2100F079F9B8F1000F44D0F0 +S31508004F8008F1FF3303F0010500F078FA3078397834 +S31508004F90FFF728FF012803D02148A72100F066F96A +S31508004FA00124444531D27DB100F068FA3078395D84 +S31508004FB0FFF718FFA04203D01948A72100F056F9B9 +S31508004FC00134A0B2404527D200F058FA395D30784E +S31508004FD0FFF708FF651C01284FF0A701104801D00C +S31508004FE000F044F900F04AFA795D3078FFF7FAFEE6 +S31508004FF001284FF0A7010A4801D000F037F96C1CC8 +S31508005000A1B24145E0D3BDE8F081BDE8F08104488E +S315080050109A2100F02BF9A5E7BDE8F0819818002041 +S3150800502010A100082DE9F0411B4D80461B48FEF7EC +S315080050304FFC2C7854B91A4E1A4831460078FFF7B7 +S31508005040FBFE01281ED00020BDE8F081164E154B48 +S315080050503178134F18784A1CB918FFF7EDFE012866 +S315080050600446F0D130783A78411CCBB29A42337074 +S31508005070E9D14046791CFFF777F900222A702046C5 +S31508005080BDE8F08131780029DDD0074B28701C7007 +S315080050902046BDE8F08100BFDC170020DC180020A0 +S315080050A09C17002014180020981700202DE9F041BD +S315080050B0364E3478012C82B004D935484FF4EE7157 +S315080050C000F0D4F8334B04EB440003EBC004617CD6 +S315080050D0002958D0402934BF88464FF04008307818 +S315080050E02D4F0DF10701FFF7A7FE08F1FF3501283F +S315080050F005F0010504D026484FF4927100F0B6F881 +S315080051009DF807200124A0453A7036D995B1307824 +S315080051100DF10701FFF790FEA04204D01C484FF49A +S31508005120927100F0A3F89DF8070038550134E3B2F0 +S31508005130984522D90DF107013078FFF77DFE651CE9 +S3150800514001284FF49271124801D000F08FF89DF8AB +S315080051500710307839550DF10701FFF76DFE012864 +S315080051604FF492710A4801D000F080F86C1C9DF843 +S315080051700700E2B290457855DCD80848064A8121EE +S315080051804346FEF737FB02B0BDE8F08198180020C9 +S3150800519010A10008E417002058180020DC18002089 +S315080051A02F4B00EB800003EBC0012DE9F041B1F86D +S315080051B08C73002F49D02B4E7A1E347802F00105E5 +S315080051C0FFF734F801782046FFF70CFE012804D0D3 +S315080051D0254840F2431100F049F80124A74234D982 +S315080051E08DB13578FFF722F8015D2846FFF7FAFDFD +S315080051F0A04204D01C4840F2431100F037F80134AD +S31508005200A0B2874221D996F80080FFF70FF8015D12 +S315080052104046FFF7E7FD651C012840F24311124896 +S3150800522001D000F023F83478FFF700F8415D2046F6 +S31508005230FFF7D8FD012840F243110B4801D000F0D2 +S3150800524015F86C1CA3B29F42DDD8FEF7EFFF0246A5 +S31508005250034801214023BDE8F041FEF7ABBA00BF81 +S31508005260DC1800201418002010A1000808B5034B0C +S3150800527018600348016000F001F9FCE7D01E002021 +S31508005280D41E002010B500F0F5F8012806D000F06D +S315080052900BFB18B10B4C2378012B00D010BDFFF780 +S315080052A073FB09490A6802F51C5310339842F5D373 +S315080052B00020207000F002FB0028EFD1BDE8104066 +S315080052C0FFF734B8D81E0020DC1E002008B541F6CA +S315080052D0D863C2F2000301221A70FFF755FB41F6A4 +S315080052E0DC61C2F200010860BDE80840FFF7CABFEA +S315080052F008B500F0C1F8FFF71DFBFFF707FB00F044 +S31508005300BDFA00F013F8BDE80840FFF7DFBF00BF9D +S3150800531008B500F0B3F8FFF729FB00F0E1FB00F051 +S315080053201DF8BDE80840FFF7ADBF00BF10B540F255 +S31508005330E404C2F2000400F0A3F8FFF70FFC01230F +S315080053402370FFF749FB00202070FFF79DFD02211F +S31508005350217004F0ADFB0322227010BD08B51D486C +S31508005360FFF704FD0128034617D01A48FFF7ACFBE0 +S3150800537001281CD01748FFF755FE012822D01548EA +S3150800538004F002FC012800D008BD134B1148032283 +S315080053901A70BDE8084000F093B80F4A0D4813701C +S315080053A000F08EF80B48FFF78FFB0128E2D10A4B75 +S315080053B008480021197000F083F80648FFF732FE06 +S315080053C00128DCD10449034802220A7000F078F863 +S315080053D0D5E700BFE01E0020E4000020FFF7B0BDBF +S315080053E070B5134C2378012B06460D461BD03BB1EE +S315080053F0022B0CD0032B11D0BDE8704000F058B832 +S315080054003046E9B2FFF708FB2378022BF2D1304683 +S31508005410E9B2FFF7A1FD2378032BEDD13046E9B2B7 +S3150800542004F082FBE8E7C9B2FFF752FC2378DEE70F +S31508005430E4000020054B1878411ECBB2012B01D998 +S3150800544040207047024A32F813007047E4000020F3 +S3150800545090A10008054B1878411ECBB2012B01D943 +S3150800546040207047024A32F813007047E4000020D3 +S3150800547094A1000800F012B8704700BF704700BF3B +S3150800548041F62073C2F2000300221A709A6483F868 +S315080054904320A3F844209A705A70704741F6207347 +S315080054A0C2F200031878003018BF0120704700BF09 +S315080054B041F62073C2F20003002283F843207047A6 +S315080054C0F8B50578FF2D06463FD0A94C2378012B61 +S315080054D000D0F8BDC93D352D7ED8DFE815F085002A +S315080054E07D007D0099007D007D00C300A100B60007 +S315080054F0CB007D007D007D007D007D007D007D0068 S315080055007D007D007D007D007D007D007D007D00A5 S315080055107D007D007D007D007D007D007D007D0095 -S315080055207D00DA000801150129017D007D007D0056 -S3150800553031017D0040015101740000F0ADF9884C3D -S3150800554008BBFE2110230220E1702371A4F8440051 -S3150800555094F84320824B012A0DD0B3F8441008B2C0 -S315080055600028AEDD89B27F48012384F84330BDE8C0 -S31508005570F840FFF72DBF0221FE221020DA701871BD -S31508005580A3F84410EFE70021102301266170237168 -S3150800559061712670E570FFF745FFA071FFF752FFAE -S315080055A0E071FFF74FFF0822000A20726672A672A2 -S315080055B0A4F84420CCE70020FF2101222070607067 -S315080055C0E170A4F84420C3E7FE2320200222E370FA -S315080055D02071A4F84420BBE7A76C614DFFF722FFB2 -S315080055E0721C411E3846FFF78BF9002840F0D2801E -S315080055F0FE2031220221E8702A71A5F84410A7E797 -S31508005600FE2131230220E1702371A4F844009FE7AC -S31508005610FFF708FF73780138984265DDFF250122F8 -S31508005620E570A4F8442071784D4D002940F0BE80FD -S31508005630FFF76EF900288BD1DAE7A06C7168484D40 -S31508005640FFF760F90028D3D0FF220121EA70A5F8F8 -S3150800565044107DE7FEF762FEFF200122E070A4F801 -S31508005660442075E70025FF20E07025716571FFF776 -S31508005670D9FE0723A071E57125726572A4F8443036 -S3150800568066E7FF25E5704568A26C002D00F09A8054 -S315080056901346D04313F8011BAD184219AB4202F06A -S315080056A0010011D028B113F8012B8918AB42C9B2F1 -S315080056B00AD01A465B7812F8010B091853FA81F0DA -S315080056C0531CAB42C1B2F4D10023C4F8071001221F -S315080056D0082122716371A371A4F8441038E7FFF713 -S315080056E0A1FE7278904250DCFE2222210223E2704B -S315080056F02171A4F844302BE7FFF794FE72789042A4 -S31508005700F2DD1948A16CFEF727FEFF20E0707178DC -S31508005710A36CCA18A2647078411CA4F8441017E751 -S31508005720FF22E27043680121A364A4F844100FE73E -S3150800573000200E4B2071FF226071A07107210820FE -S31508005740E270A364C4F80710A4F8440000E7FE203A -S3150800575000230221E0702371A4F84410F8E600BF84 -S31508005760201F0020231F0020241F002088A10008D6 -S3150800577060780023FF210622E17023716071A3710E -S31508005780E3712372A4F84420E2E671680E48A16426 -S315080057907278B8E7FF22AE6CEA70FFF743FE013E67 -S315080057A031180123A964A5F84430D1E6A86CB21CC7 -S315080057B0FFF7A6F800283FF41BAF7178AB6CC81842 -S315080057C0A864C5E629467FE7241F002038B50546A4 -S315080057D0007804F06FFAC0B2A0F13004E4B2162CD7 -S315080057E01FD8A0F13A02062A1BD9092C88BFA0F1B6 -S315080057F03704687888BFE4B204F05CFAC1B2A1F154 -S315080058003003D8B216280CD8A1F13A02062A08D9CC -S31508005810092884BFA1F13700C0B200EB0414E0B236 -S3150800582038BD002038BD00BF38B50546000909282F -S315080058300C460CD905F00F053730092D20700FD905 -S3150800584005F1370000236070A370204638BD30305C -S3150800585004F030FA05F00F05C0B2092D2070EFD814 -S3150800586005F1300004F026FAC0B2EBE708B5074B9D -S3150800587007490020187002F019FA00B908BD054852 -S315080058807C21BDE80840FFF7E9BC00BFAC1F00203B -S31508005890B81F002090A1000841F6AC73C2F20003BD -S315080058A01878D0F1010038BF0020704710B5FFF70F -S315080058B0D9FD012802D0054C23780BB1002010BD74 -S315080058C0FEF7B2FA0128F9D1207010BDAC1F0020EE -S315080058D010B50446007804F0EDF9532801D00320EA -S315080058E010BD607804F0DEF90028F8D06078312819 -S315080058F006D0322806D0332814BF0320022010BD54 -S31508005900002010BD012010BDF8B507460230FFF78C -S315080059105DFF0546381DFFF759FF6C1EA4B228180F -S3150800592005F00103BD1D012CC6B21DD953B1284689 -S31508005930FFF74CFF611E8CB23218012CD6B207F164 -S31508005940080511D92846FFF741FF02353318013CEF -S315080059502846DEB2A4B2FFF739FF611E8CB23018B2 -S315080059600235012CC6B2EDD82846FFF72FFFF243C1 -S31508005970D6B2331A594251EB0300F8BD2DE9F0416E -S315080059800F4605461646002939D0002837D028463E -S31508005990FFF79EFF032804462DD02846FFF7B4FFDD -S315080059A0002800F08F80012C2FD022D2A81CFFF7E8 -S315080059B00DFF8046281DFFF709FF04023C60A81D5D -S315080059C0FFF704FFA8F10303201899B238600835D9 -S315080059D00CB28EB1002C0FDD00272846FFF7F6FE25 -S315080059E07A1CF05597B20235A742F6DB2046BDE889 -S315080059F0F081022C34D000242046BDE8F0813348DB -S31508005A0040F23621FFF72AFCC1E7A81CFFF7DEFEA5 -S31508005A108046281DFFF7DAFE04043C60A81DFFF740 -S31508005A20D5FE04EB00243C6005F10800FFF7CEFE26 -S31508005A30A8F10403201899B238600A350CB2002E72 -S31508005A40DAD0002CD8DD00272846FFF7BFFE7A1CDF -S31508005A50F05597B20235A742F6DB2046BDE8F0813D -S31508005A60A81CFFF7B3FE8046281DFFF7AFFE040605 -S31508005A703C60A81DFFF7AAFE04EB00443C6005F154 -S31508005A800800FFF7A3FE04EB00243C6005F10A00BA -S31508005A90FFF79CFEA8F10503201899B238600C356B -S31508005AA00CB2002EA8D0002CA6DD00272846FFF74A -S31508005AB08DFE7A1CF05597B20235A742F6DB2046D2 -S31508005AC0BDE8F0814FF0FF3496E700BF90A10008CB -S31508005AD02DE9F041AB4D2C783CB1012C00F020812A -S31508005AE0022C00F09580032C01D0BDE8F081A64F6A -S31508005AF0A64E4FF48071304607F50D7202F06CFD24 -S31508005B0097F93A32002BC0F27B8100285DD03046E7 -S31508005B1006F5C07106F58072FFF730FFB0F1FF3F5A -S31508005B20804600F0898100284FDD9948994CFEF798 -S31508005B30D9F94CF6CD404346CCF6CC40A0FB03122F -S31508005B4021460134D308F9D14CF6CD400B700A46EC -S31508005B504446CCF6CC40A0FB0413DB0803EB8301D8 -S31508005B60A4EB410404F1300102F8011D1C46002B88 -S31508005B70F1D18948FEF7B6F98848FEF7B3F98649A0 -S31508005B8096F88301FFF750FE854996F88201FFF7DC -S31508005B904BFE844996F88101FFF746FE824996F83E -S31508005BA08001FFF741FE7C48FEF79CF97F48FEF727 -S31508005BB099F9D6F880017E4A4146FEF7A1FE0028EB -S31508005BC000F012817B48FEF78DF9D7F83C02D7F82A -S31508005BD04022904289D17848FEF784F9FEF798FE6C -S31508005BE00446002800F03A817248FEF77BF97348AC -S31508005BF0FEF778F9724802F091FB7248FEF772F9DF -S31508005C0000232B70FEF748F9BDE8F041FEF786BB86 -S31508005C105D4E5E4F06F50D724FF48071384602F000 -S31508005C20DBFC96F93A22002AC0F2F88098B10022E5 -S31508005C30384607F5C071FFF7A1FE421C00F01A812D -S31508005C40002808DD604B5A68002A40F09280D7F891 -S31508005C50802158601A60D6F83C12D6F8403299422C -S31508005C607FF443AF5648002102F060FB002840F05D -S31508005C70E8805048544EFEF735F95448FEF732F995 -S31508005C807468444B4CF6CD402246CCF6CC40A0FB7B -S31508005C90021219460133D208F9D14CF6CD400A70E2 -S31508005CA0CCF6CC400A46A0FB0413DB0803EB8301C1 -S31508005CB0A4EB410404F1300102F8011D1C46002B37 -S31508005CC0F1D13548FEF70EF94148FEF70BF932498E -S31508005CD0F078FFF7A9FD3249B078FFF7A5FD3149FD -S31508005CE07078FFF7A1FD30493078FFF79DFD2A4807 -S31508005CF0FEF7F8F82D48FEF7F5F896E80300FEF7E4 -S31508005D0001FE002840F0BB803248FEF7EBF805207C -S31508005D10FEF7DEF82A4802F001FB2C70BDE8F08198 -S31508005D20FEF7A6F82C48FEF7DDF82C48FEF7DAF859 -S31508005D30FEF798F822460146214801F0C7FF0646B5 -S31508005D4038B12448FEF7CEF82046BDE8F041FEF704 -S31508005D50BFB81848FEF7C6F82148FEF7C3F8214829 -S31508005D60FEF7C0F8184902200E604E602870BDE89C -S31508005D70F081D7F880111C688018A14238BF1960D5 -S31508005D80586068E7AC1F0020B81F002010240020C8 -S31508005D9024A300086D1F00206C1F002034A30008F0 -S31508005DA06E1F0020701F0020721F002064A30008C9 -S31508005DB01025002058A200084CA3000868A3000874 -S31508005DC0EC21002080A30008B01F0020B4A2000820 -S31508005DD0C0A2000850A2000804A2000828A20008D1 -S31508005DE060A2000884A200082848FEF77BF806206F -S31508005DF0FEF76EF8264802F091FA2C70BDE8F0819D -S31508005E002448FEF76FF80220FEF762F807F50D70D2 -S31508005E1002F084FA00212970BDE8F0811B48FEF7DC -S31508005E2061F82046FEF754F806F50D7002F076FA8A -S31508005E3000232B70BDE8F0811748FEF753F820467B -S31508005E40E2E71248FEF74EF80420FEF741F810483C -S31508005E5002F064FA00222A70BDE8F0810B48FEF7CA -S31508005E6041F80720FEF734F8094802F057FA2C7073 -S31508005E70BDE8F0810548FEF735F80320D2E7074864 -S31508005E80FEF730F803202870BDE8F08150A200081C -S31508005E90EC210020DCA2000800A3000858A2000894 -S31508005EA008B518B103680BB11A780AB9092008BDF4 -S31508005EB0D98880888142F9D15878FBF749FA10F0D9 -S31508005EC0010F0CBF0020032008BD00BFF8B5036909 -S31508005ED00C4601F10902002B00F0C98043691978C4 -S31508005EE01E7B20297DD006F00805052914BF0A4621 -S31508005EF0E52205F0FF0725B1A2F14101192940F273 -S31508005F00DB8062725D78202D04F10A0269D0052DC6 -S31508005F1008BFE52527B1A5F14101192940F2CF802F -S31508005F20A5729978202904F10B025AD0052908BFD1 -S31508005F30E52127B1A1F14102192A40F2C380E17295 -S31508005F40DD78202D04F10C024BD0052D08BFE52580 -S31508005F5027B1A5F14102192A40F2B78025731D79A8 -S31508005F60202D04F10D023CD0052D08BFE5252FB1E3 -S31508005F70A5F14101192901D82035EDB26573597982 -S31508005F80202904F10E022CD0052908BFE5212FB1DE -S31508005F90A1F14102192A01D82031C9B2A1739D790C -S31508005FA0202D04F10F021CD0052D08BFE5252FB1C1 -S31508005FB0A5F14102192A01D82035EDB2E573D97940 -S31508005FC0202904F110020CD0052908BFE5212FB1BC -S31508005FD0A1F14107192F01D82031C9B2217404F162 -S31508005FE011021D7A202D2BD017462E2107F8011BEA -S31508005FF0197A20296ED006F0100606F0FF052EB194 -S31508006000A1F14107192F01D82031C9B251705F7A21 -S31508006010961C202F5CD02DB1A7F14106192E01D868 -S315080060202037FFB29770997AD61C202950D02DB107 -S31508006030A1F14105192D01D82031C9B2D170043218 -S31508006040DF7A2772997FDF7F1E7F5D7F090441EA29 -S315080060500761314341EA052626605D7E197E41EADD -S315080060600526A680DD7D9B7D43EA0521E180002586 -S315080060701570A66936B1E26922B103691BB9002514 -S3150800608000207055F8BD018C4FF6FF729142F6D08C -S31508006090C769388850B9F2E7E369591E8D42EED2CE -S315080060A0705537F8020F01350028E9D0002102F0B3 -S315080060B0E9FA0028F0D1E2E72032D2B221E720350A -S315080060C0EDB22DE72031C9B239E72035EDB245E703 -S315080060D03246B5E73A46B3E738B504460A46407845 -S315080060E004F134010123FBF747F908B1032038BD51 -S315080060F094F8322294F833124AF6552342EA0121DB -S315080061000AB2CFF6FF739A4201D0022038BD94F83E -S315080061106C3094F86D5094F86A1094F86B201B0450 -S3150800612043EA05630B4343EA022144F2461321F08E -S315080061307F42C0F254039A42E8D094F8882094F833 -S31508006140895094F8861094F88700120442EA05628A -S315080061500A4342EA002121F07F40C01A18BF0120F5 -S3150800616038BD00BF2DE9F04103681C78303C092C86 -S31508006170154602D85A783A2A18D000200860B24C38 -S315080061802468002C25D00C602178C1B16078FBF713 -S31508006190DFF8C20713D4002D26D000F00400C2B2DF -S315080061A0002A14BF0A200020BDE8F081023300222D -S315080061B003600A60002CE2D00B20BDE8F0810020C5 -S315080061C020706070FBF7ACF8C30705D50320BDE85F -S315080061D0F0810C20BDE8F0814DB100F00400C3B297 -S315080061E02BB10A20BDE8F0812846BDE8F0810021E0 -S315080061F02046FFF771FF012807D00025032800F085 -S31508006200B980D0B10D20BDE8F08194F8F621002AB6 -S31508006210F8D094F8FC0194F8FD1194F8FA3194F842 -S31508006220FB51020442EA016040EA030141EA0525FE -S3150800623020462946FFF750FFE0E794F8402094F8F7 -S315080062403F3043EA0220B0F5007FDBD194F84B10CB -S3150800625094F84A2052EA01220DD194F85A1094F87B -S315080062605B0094F8583094F85920090441EA006014 -S31508006270034343EA022294F84400E261411E0129DD -S31508006280E070BFD894F84130A370002BBAD0591EDD -S315080062901942B7D194F8451094F8466041EA0626A3 -S315080062A0B1B216F00F0F2181ACD194F8487094F86A -S315080062B0476056EA07260FD194F856C094F85780D7 -S315080062C094F8546094F855704FEA0C4E4EEA086CF0 -S315080062D04CEA060646EA072694F843E094F8427024 -S315080062E057EA0E278ED000FB02FC07EB111060441C -S315080062F0864287D3361AB6FBF3F3002B82D040F6D4 -S31508006300F576B34240F2C08006F57046B34200F215 -S315080063109F8002260233EF194019A361256267623E -S31508006320E06200293FF46EAF6744022EA76200F0D0 -S315080063308980032101FB03F603F0010303EB5600F2 -S31508006340012600F2FF13B2EB532FFFF45BAF0020D8 -S315080063504FF0FF32032E2261E0600ED03B4A2670D2 -S315080063601388591C00208BB21380E38020632071A8 -S31508006370BDE8F0810120BDE8F08194F8651094F835 -S315080063806430607143EA01202A186261607804F17A -S3150800639034010123FAF7F0FF0028DFD194F833120D -S315080063A094F832224AF6552342EA012001B2CFF682 -S315080063B0FF739942D2D194F8362094F8370094F8AE -S315080063C0343094F83510120442EA0060184345F256 -S315080063D0522340EA0121C4F261139942BED194F8CE -S315080063E01A2294F81B0294F8183294F81912120417 -S315080063F042EA0060184347F2722340EA0121C6F2D6 -S3150800640041139942AAD194F8227294F81E5294F82C -S31508006410238294F81FE294F8202294F81C3294F808 -S31508006420210294F81D123F042D0447EA086745EA3D -S315080064300E653A432B4342EA002043EA0121E06015 -S3150800644021618BE758007CE79827002094270020D5 -S315080064500233EF194019A36125626762E0620029D9 -S315080064607FF4D0AE94F8626094F8637094F8601084 -S3150800647094F86100360446EA0766314341EA00208B -S31508006480A062032698005CE7012643E7F8B50446B0 -S31508006490007900B9F8BD256B607804F134063146F9 -S315080064A02A460123FAF790FF28BB626A20719542B3 -S315080064B01FD3E369981885421BD2E778012F18D9AC -S315080064C0F9070CD5ED18607802E0E16960786D1877 -S315080064D0012331462A46FAF777FFE369013FED18AB -S315080064E0314601232A466078013FFAF76DFF012FEE -S315080064F0EBD10020F8BD0120F8BD00BF2DE9F84F0B -S315080065000546FFF7C3FF044654B92B78032B09D079 -S31508006510002168780A46FAF781FF003018BF012083 -S31508006520BDE8F88F68790028F2D005F134012C63AC -S3150800653005F50D760F463A4602F8014B7C70571C56 -S31508006540B742F8D1EB682A6985F820324FF0550B27 -S3150800655061204FEA134C4FEA136E85F81C22522726 -S3150800656041247226C2F3072A4FEA1249C3F30728C1 -S31508006570120E85F832B24FF0AA0B85F8360085F868 -S315080065801B0285F81F2285F833B285F8347085F822 -S31508006590357085F8374085F8186285F8196285F8E8 -S315080065A01A4285F81DA285F81E9285F8218285F87B -S315080065B022C285F823E268786A690123FAF704FF9C -S315080065C000216971A4E700BF38B5036B8B42044606 -S315080065D00D460FD0FFF75AFF08B1012038BD607885 -S315080065E004F134012A460123FAF7C6FE0028F4D13D -S315080065F0256338BD002038BD0129F8B50C46054687 -S315080066000CD98369994209D20178022946D003290F -S3150800661028D0012904D04FF0FF30F8BD0120F8BD7D -S31508006620426A04EB540602EB5621FFF7CDFF002819 -S31508006630F1D1F005C70D696AEB190136284601EB59 -S31508006640562193F83470FFF7BFFF0028E3D1F6050B -S31508006650F60DAD19E30795F8342047EA02202FD541 -S315080066600009F8BD436A03EBD411FFF7ADFF002814 -S31508006670D1D16406E20DA818044690F8372090F8A0 -S31508006680361090F8350094F83430120642EA014183 -S3150800669041EA0020184320F07040F8BD436A03EB36 -S315080066A01421FFF791FF0028B5D12406E20DA91899 -S315080066B00C4691F8343091F8350043EA0020F8BDCD -S315080066C00105080DF8BD00BF70B50C468168C48089 -S315080066D00129054603D000688369994201D302203F -S315080066E070BDB1B90178032910D001890023A142F0 -S315080066F0EB60F4D9826A02EB1411296104F00F04E5 -S3150800670000EB441034306861002070BD816A0029AE -S31508006710EBD086783601B44208D210E00128DED9DB -S31508006720286883699942DAD2A64208D8FFF764FF37 -S31508006730A41B421C0146A4B2F0D1012070BD836996 -S31508006740E960023B023999423DBF8278C36A02FB7F -S315080067500131002101EB14122A61CFE7F0B50129B6 -S3150800676083B00C46054602D98369994202D30220B2 -S3150800677003B0F0BD0178022927D0032905D00129E5 -S3150800678037D0022001222A71F2E7436A019203EB0D -S31508006790D411FFF719FF019A0028F3D16406E70D13 -S315080067A0EB191C4693F83760310601F070473A43F7 -S315080067B0C2F30727160C110E83F8342083F83570B8 -S315080067C083F8366083F83710DCE7436A019203EBF7 -S315080067D01421FFF7F9FE019A0028D3D12406E10D0A -S315080067E06918C2F307230C4681F8342081F835303E -S315080067F0C8E7436A019204EB540603EB5621FFF7F8 -S31508006800E3FE019A0028BDD1F005C10D14F001047C -S3150800681020D06B18D0B293F8341001F00F0141EA7A -S315080068200010C0B2696A83F83400013601232B715F -S31508006830284601EB56210192FFF7C6FE019A002869 -S31508006840A0D1F605F10D44B1C2F307126E1886F809 -S31508006850342097E7D0B26B18E4E76E18C2F3032228 -S3150800686096F8343023F00F010A43F0E7F8B50546E9 -S315080068700F4601BBC6688369CEB19E4228BF012672 -S31508006880344601349C4202D3012E12D902242846EA -S315080068902146FFF7B1FEB8B1431C20D001281CD011 -S315080068A0B44206D0AB6901349C42EDD2EFE701262B -S315080068B0E6E70020F8BDFFF79FFE01280DD9AB6972 -S315080068C098420BD33E46DBE7284621466FF07042D6 -S315080068D0FFF744FF30B1012801D00120F8BD4FF081 -S315080068E0FF30F8BD4FB92869EC60411C03D0411E42 -S315080068F0012229616A712046F8BD28463946224692 -S31508006900FFF72CFF0028EED0E5E700BF2DE9F0479A -S31508006910C5880446681C85B20E4615B90420BDE82C -S31508006920F0872369002BF9D015F00F0708D02068E7 -S3150800693000EB47123432E58062610020BDE8F0873B -S31508006940E16820685A1C2261F9B183785A1E12EA56 -S315080069501512EDD1FFF750FE0128804619D9B0F17E -S31508006960FF3F23D020688369984515D2A8F102060F -S315080069708269C4F80C80931E9E423DBF8178C36A23 -S3150800698001FB063600262661D2E70389AB42C5D944 -S31508006990CEE70220BDE8F087002EBFD0E168FFF7FA -S315080069A065FF804628B90720BDE8F0870120BDE8C5 -S315080069B0F0870128EDD0B0F1FF3FF7D02068FFF748 -S315080069C065FD0028F2D12668014606F1340306F56E -S315080069D00D701A4602F8011B5970531C8342F8D1F0 -S315080069E022689069A8F10206831E9E423DBFD36ABB -S315080069F0917801FB0633002313634FF000094FF02B -S31508006A00010A0EE082F804A02068FFF73FFD09F1AD -S31508006A1001090028CAD12268116B481C10635FFA65 -S31508006A2089F9917849451046ECD8126BC9EB0203EF -S31508006A3003639DE72DE9F04F85B0FF220192814659 -S31508006A401646D9F80000D9F81010FFF7BDFDC8B9E9 -S31508006A50D9F814402578002D00F09081E37AE52DC9 -S31508006A6003F03F0107D003F00802D3B2002B00F071 -S31508006A70E2800F290BD0FF2648460021FFF746FF84 -S31508006A800028DED08346584605B0BDE8F08FD9F811 -S31508006A901C70002FF0D005F04000C2B2002A00F0AA -S31508006AA06981667BB9F806100196A9F8201005F0E9 -S31508006AB0BF0594F80D80019B9845DCD12178A07814 -S31508006AC0627821F04006731E03EB430A42EA00206F -S31508006AD003EB8A0B01F0FEFDBBF1FE0F824600F2C6 -S31508006AE06C8137F81B0001F0F5FD82450BF10106B4 -S31508006AF040F063812179E07840EA0120BAF1000F7D -S31508006B0040F05F814FF6FF72904240F05681A179BE -S31508006B10637943EA0120BAF1000F40F061814FF62C -S31508006B20FF72904240F04981207AE17941EA0020DB -S31508006B30BAF1000F40F070814FF6FF73984240F0AB -S31508006B403C81A27A607A40EA0220BAF1000F40F04E -S31508006B5055814FF6FF71884240F02F81E27BA37B77 -S31508006B6043EA0220BAF1000F40F072814FF6FF7136 -S31508006B70884240F02281607C227C42EA0020BAF1F9 -S31508006B80000F40F057814FF6FF73984240F0158189 -S31508006B90E17CA07C40EA0120BAF1000F40F0748144 -S31508006BA04FF6FF72904240F00881617D237D43EAEB -S31508006BB00120BAF1000F40F059814FF6FF7290425A -S31508006BC040F0FB80E07DA17D41EA0020BAF1000F8C -S31508006BD040F085814FF6FF73984240F0EE80627E62 -S31508006BE0207E40EA0220BAF1000F40F069814FF694 -S31508006BF0FF71884240F0E180627F237F43EA0220EA -S31508006C00BAF1000F40F04E814FF6FF71884240F00E -S31508006C10D480E07FA27F42EA0020BAF1000F40F05C -S31508006C20B0804FF6FF73984240F0C780013DEEB240 -S31508006C30CDF8048020E70F293FF429AF002E57D15D -S31508006C404FEAC51B94F801A094F8028094F803C093 -S31508006C5027796679A179E27902914BEA550505EB20 -S31508006C600A0E5FFA8EFB4FEACB1545EA5B0A58FA1D -S31508006C708AF85FFA88FE4FEACE1545EA5E085CFA9E -S31508006C8088FC5FFA8CFB4FEACB1545EA5B0E57FA90 -S31508006C908EF7FFB2FD0145EA570756FA87F6F6B2B0 -S31508006CA0F50145EA5605029E039256FA85F5EDB2B8 -S31508006CB0EE0146EA5505039E217A627AA37A56FAC8 -S31508006CC085F5EDB2EE0146EA550551FA85F1C9B2E8 -S31508006CD0CD0145EA510152FA81F2D2B2D10141EA17 -S31508006CE0520253FA82F3019AD9B291423FF4CAAEDC -S31508006CF0D9F818304FF0FF36A9F82060D97ACA07B4 -S31508006D003FF5B9AE21781A7891427FF4B4AE61782E -S31508006D105A7891427FF4AFAEA1789A7891427FF47F -S31508006D20AAAEE178DA7891427FF4A5AE21791A798C -S31508006D3091427FF4A0AE61795A7991427FF49BAE75 -S31508006D40A1799A7991427FF496AEE179DA799142FE -S31508006D507FF491AE217A1A7A91427FF48CAE617AE9 -S31508006D605A7A91427FF487AEA17A9B7A99423FF488 -S31508006D7089AE80E6B5427FF47EAE9AE64FF0040B04 -S31508006D8081E601F0A7FCFF2E824616D037F81600DA -S31508006D9001F0A0FC013682450FD1217801F04000B0 -S31508006DA0C2B2002A3FF442AFBAF1000F3FF43EAF39 -S31508006DB037F81630002B3FF439AFCDF80480FF269C -S31508006DC05AE601F087FCFF2E8246F6D037F8160001 -S31508006DD001F080FC82450BF102063FF498AEECE721 -S31508006DE001F078FCFF2E8246E7D037F8160001F04E -S31508006DF071FC013682453FF497AEDEE701F06AFC86 -S31508006E00FF2E8246D9D037F8160001F063FC01360A -S31508006E1082453FF4A3AED0E701F05CFCFF2E824624 -S31508006E20CBD037F8160001F055FC013682453FF401 -S31508006E3088AEC2E701F04EFCFF2E8246BDD037F879 -S31508006E40160001F047FC013682453FF4A1AEB4E7CF -S31508006E5001F040FCFF2E8246AFD037F8160001F04D -S31508006E6039FC013682453FF486AEA6E701F032FCCE -S31508006E70FF2E8246A1D037F8160001F02BFC01360A -S31508006E8082453FF49FAE98E701F024FCFF2E824628 -S31508006E9093D037F8160001F01DFC013682453FF401 -S31508006EA084AE8AE701F016FCFF2E824685D037F8B5 -S31508006EB0160001F00FFC013682453FF4AAAE7CE7C6 -S31508006EC001F008FCFF2E82463FF477AF37F816002C -S31508006ED001F000FC013682453FF48EAE6DE701F005 -S31508006EE0F9FBFF2E82463FF468AF37F8160001F02B -S31508006EF0F1FB013682453FF472AE5EE72DE9F04FAD -S31508006F000B782F2B83B08946054600F074815C2BDD -S31508006F1000F071810027AF6099F800001F2802D899 -S31508006F2072E119F8010F2F28FBD05C28F9D01F2829 -S31508006F30EE6940F22E812F282CD00121A6F1020BF2 -S31508006F40CA46012401F09EFB00B37F2809D82228EF -S31508006F501CD0B24A01E0884218D012F8011F002955 -S31508006F60F9D12BF8020F1AF8010F631C1F2840F2FB -S31508006F7012812F2810D05C280ED0B3F5807F05D05B -S31508006F8001211C4601F07EFB0028DED1062003B055 -S31508006F90BDE8F08F0024012399444FF0000B002C24 -S31508006FA0F4D006EB4400621E30F8023D202B02F0B6 -S31508006FB0010101D02E2B1BD1013CE7D039B130F8A5 -S31508006FC0022D202A01D02E2A12D1013CDED030F81B -S31508006FD0023D202B01D02E2B0AD130F8021D013C90 -S31508006FE02029224601D02E2902D1541EEFD1CDE701 -S31508006FF0A86926F81470202306EB440E0370437024 -S315080070008370C370037143718371C37103724372D2 -S315080070108372B11E4FF0000A01E00AF1010A31F845 -S31508007020020F2028F9D02E28F7D0BAF1000F01D088 -S315080070304BF0030B7346621E33F8028DB8F12E0F20 -S3150800704002F0010112D0144682B121B133F8022DA3 -S315080070502E2A09D10AE033F8021D2E2906D033F864 -S31508007060022D013C2E2A01D0013CF4D1002208232E -S3150800707090460AF1010A88B3202821D02E281DD06F -S315080070809A4222D2544500F08A807F2800F29180E5 -S315080070902B2800F0A280DFF888E102E0884200F0A1 -S315080070A09C801EF8011F0029F8D1A0F14101192979 -S315080070B000F2B88048F00208C0B291E054456ED09C -S315080070C04BF0030B36F81A00D3E70B2B00F0B5800C -S315080070D0544566D0A2454BF0030B62D9AA691078CD -S315080070E0E52800F08480082B04BF4FEA880C5FFA75 -S315080070F08CF808F00C030C2B76D008F00300032854 -S3150800710072D00BF00201C8B250B908F0030CBCF1FA -S31508007110010F08BF4BF0100B042B08BF4BF0080BF0 -S3150800712082F80BB028460021FFF7CEFAF0B92846B8 -S31508007130FFF780FCAA69D37AD0B903F00403D9B261 -S3150800714000297FF424AF6B69D87A00F01002D1B217 -S31508007150002970D02C68DE7E2178987E032940EAC3 -S3150800716006220FD0AA6099F80000DCE6A969CB7A56 -S3150800717004287FF40CAF03F00402D1B2002908BF3B -S31508007180052004E75C7D1B7D43EA042642EA0642A5 -S31508007190E8E70024012399444FF0040BFFE60B2B84 -S315080071A04BD04FEA880C5FFA8CF8A2460B230822CC -S315080071B088E700210192009301F064FA019A009B86 -S315080071C040B34AF2C031C0F6000108184BF0020B72 -S315080071D010F8800C00287FF45BAF4BF0030B5F20A0 -S315080071E0A969885401326DE74BF0020B89E705213E -S315080071F01170AA6977E7002709F10109AF6099F8C4 -S3150800720000001F283FF68FAE28463946FFF75CFA7E -S315080072106F61BCE64BF0020BDFE700BFACA30008CA -S31508007220B8A30008A0F16101192902D8203848F04E -S315080072300108C0B2D4E70520A9E64BF0030B0B23DF -S315080072404CE700BFF8B5018CC5884FF6FF73994225 -S3150800725008BF29460446FFF737FA0346C0B9E527AB -S31508007260012621692068FFF7AFF903460146204643 -S315080072705BB96269177022681671E288AA4207D25A -S31508007280FFF744FB03460028EBD0042B08BF022374 -S315080072901846F8BD2DE9F04FFF25044683B02E4663 -S315080072A004204FF000084FF6FF772169002900F007 -S315080072B0E7802068FFF788F9A0B962691378002B80 -S315080072C000F0E280E52BD17A05D02E2B03D001F011 -S315080072D03F0108290BD1FF2620460021FFF716FBA0 -S315080072E00028E2D00021216103B0BDE8F08F0F2904 -S315080072F040F0CC8003F04000C1B2002900F0BC8009 -S31508007300E688557B268403F0BF03507BA842E2D16A -S31508007310117892F802C05578E66901F03F01013903 -S3150800732001EB410E01EB8E0EBEF1FE0F45EA0C2570 -S3150800733000F2118126F81E5092F8049092F803C0C4 -S315080073400EF101014CEA092C002D40F0FA80BC45EB -S3150800735040F0018192F806C092F805E04EEA0C2C3E -S31508007360002D40F0FB80BC4540F0F58092F808C03F -S3150800737092F807E04EEA0C2C002D40F0F680BC454A -S3150800738040F0E98092F80AC092F809E04EEA0C2C1F -S31508007390002D40F0F180BC4540F0DD8092F80FC02A -S315080073A092F80EE04EEA0C2C002D40F0F380BC4516 -S315080073B040F0D18092F811C092F810E04EEA0C2CF9 -S315080073C0002D40F0E080BC4540F0C58092F813C01F -S315080073D092F812E04EEA0C2C002D40F0E280BC45F3 -S315080073E040F0B98092F815C092F814E04EEA0C2CD9 -S315080073F0002D40F0DD80BC4540F0AD8092F817C006 -S3150800740092F816E04EEA0C2C002D40F0D880BC45C8 -S3150800741040F0A18092F819C092F818E04EEA0C2CB8 -S31508007420002D40F0D380BC4540F0958092F81DC0F1 -S3150800743092F81CE04EEA0C2C002D40F0CE80BC459C -S3150800744040F0898092F81FC092F81EE04EEA0C2C94 -S31508007450002D7ED0FF297ED026F811C00131127882 -S3150800746002F04005EAB21AB1FF2974D026F8118055 -S31508007470013BDEB205462FE7B3427FF42CAF44E763 -S3150800748000283FF431AF2DE704202BE7002E54D116 -S3150800749092F801A092F8029092F8038092F804C03C -S315080074A057799679D1794FEAC31B4BEA530353446C -S315080074B0DBB24FEAC31A4AEA530359FA83F3DBB23B -S315080074C04FEAC31949EA530358FA83F3DBB24FEA82 -S315080074D0C31848EA53035CFA83F3DBB24FEAC31EC8 -S315080074E04EEA530357FA83F7FBB2DF0147EA530321 -S315080074F056FA83F6F3B2DE01009146EA5303009E7C -S31508007500117A56FA83F3DBB2DE01019146EA530398 -S31508007510019E517A927A56FA83F3DBB2DE0146EA85 -S31508007520530351FA83F1CBB2D90141EA530352FA14 -S3150800753083F2D1B2A9423FF4D7AE4FF6FF73238444 -S31508007540D2E6FF2907D026F811C065460EF10201DA -S3150800755000E7BC4583D00546FF26BDE6FF29FAD0DD -S3150800756026F811C06546013100E7FF29F3D026F851 -S3150800757011C06546013105E7FF29ECD026F811C090 -S31508007580654601310AE7FF29E5D026F811C06546A8 -S3150800759001311BE7FF29DED026F811C06546013107 -S315080075A008E7FF29D7D026F811C06546013119E743 -S315080075B0FF29D0D026F811C0654601311EE7FF29FC -S315080075C0C9D026F811C06546013123E7FF29C2D084 -S315080075D026F811C06546013128E7FF29BBD026F8F1 -S315080075E011C0654601312DE7012970B50D460446DF -S315080075F002D98369994201D3022070BD0126294622 -S315080076002046FEF7F9FF034629460022054620468E -S3150800761083B1012BF0D001330ED0FFF79FF8002875 -S31508007620EBD12069411C02D0411C21616671A26917 -S315080076309542E4D3002070BD012070BD30B40C78AB -S3150800764004704D7845708C788470CD78C5700C7947 -S3150800765004714D7945718C798471CD79C5710C7A2F -S3150800766004724D7A4572897A052B82B081720AD9DD -S3150800767011885C0844EAC33311FA83F532F8021F0D -S31508007680ABB20029F5D1072203F00F0404F1300547 -S31508007690392D88BF04F137050DF80250013A1B0948 -S315080076A0F2D102A98D187E2405F8084C002A5BD071 -S315080076B00178202908D0D407054629D40546012390 -S315080076C015F8014F202C23D1C3F10705072A05F029 -S315080076D0010526D802A98C18013214F8084C591C41 -S315080076E00729C45408D8002D2FD0072A36D92023B5 -S315080076F043540131072928D902B030BC704715F820 -S31508007700011F2029E0D015F8014F0133202CDBD0CA -S3150800771001339342F3D1C3F10705072A05F00105A2 -S31508007720D8D92024DBE702AB9C18013214F8084CA0 -S315080077304B1C072A44540FD802A98C18013214F896 -S31508007740084C591C0729C454D6D8072AEBD9202433 -S315080077504B1C072A4454EFD92024F2E702ACA3189D -S31508007760013213F8083CC3E71346ADE72DE9F04F9D -S315080077708569C669697AEF792A7895F801B095F826 -S3150800778002A095F8039095F8048095F805C095F839 -S3150800779006E0EB7A87B004460091A97A287A019127 -S315080077A08DF81370009F8DF8140001988DF81570E8 -S315080077B0DF078DF80C208DF80DB01A468DF80EA04F -S315080077C08DF80F908DF810808DF811C08DF812E0A5 -S315080077D08DF816008DF8173057D50023EB724FF049 -S315080077E00108E36137E0FFF725F908F101021FFAFE -S315080077F082F8074632464346284603A9002F38D161 -S31508007800FFF71CFF39462046FEF75EFF074620466F -S31508007810002F2ED1FFF70EF908F1010807461FFAC7 -S3150800782088F832464346284603A917BBFFF706FFE2 -S3150800783039462046FEF748FF07462046CFB9FFF7E8 -S31508007840F9F808F1010107461FFA81F888B9B8F175 -S31508007850640F00F094804346324603A92846FFF792 -S31508007860EDFE20460021FEF72FFF07462046002F93 -S31508007870B9D0042F03D0384607B0BDE8F08F9DF87D -S315080078801770EF729DF81720E66102F00200C3B286 -S31508007890002B5DD10126B04620460021FEF714FFD5 -S315080078A007460028E7D1054605E03D46FFF72EF8CE -S315080078B007460028DFD121692068FEF785FE0746BE -S315080078C0013501212046002FD5D162691378E52BB1 -S315080078D001D0002BE9D1AE42E8D108F1FF381FFAF2 -S315080078E088FBBBF1000F4CD120682169FEF76CFEBE -S315080078F007460028BFD16369394603F120001A46B6 -S3150800790002F8011B5970531C8342F8D1A0696369B8 -S315080079100178197042785A7081789970C278DA704D -S315080079200179197142795A7181799971C279DA7135 -S31508007930017A1972427A5A72807A9872A1696369D1 -S31508007940CA7A02F018001873216801230B7192E7AE -S31508007950318800299ED00020471CB8B236F810207E -S31508007960002AF9D14EF64F461930C4F6C46686FB8E -S315080079700021C317C3EBA1061FFA86F88CE7072771 -S3150800798079E7E788CBEB0701204689B2FEF79CFE2C -S31508007990074600287FF46FAFA3691A7893F801A009 -S315080079A093F8029093F8038093F804C093F805E0DF -S315080079B09F79DE791D7A587A997AD30143EA520279 -S315080079C002EB0A03DBB2DA0142EA530359FA83F2FD -S315080079D0D3B2DA0142EA530358FA83F2D3B2DA0190 -S315080079E042EA53035CFA83F2D3B2DA0142EA53035A -S315080079F05EFA83F2D3B2DA0142EA530357FA83F7FF -S31508007A00FBB2DA0142EA530756FA87F6F3B2DA010D -S31508007A1042EA530755FA87F5EEB2F30143EA5602EE -S31508007A2050FA82F0C7B2FD0145EA570651FA86FABE -S31508007A305FFA8AF80F264FF0FF0A4FF6FF790125FD -S31508007A405F468BE083F803A083F804A04FF6FF7027 -S31508007A50484500F0B68031F812004FEA102C013282 -S31508007A60587183F806C0002840F0B18083F807A053 -S31508007A7083F808A04FF6FF70484500F0B68031F845 -S31508007A8012004FEA102C0132587283F80AC00028F7 -S31508007A9040F0B18083F80EA083F80FA04FF6FF7070 -S31508007AA0484500F0B68031F812004FEA102C013232 -S31508007AB0187483F811C0002840F0B18083F812A02A -S31508007AC083F813A04FF6FF70484500F0B68031F8EA -S31508007AD012004FEA102C0132187583F815C00028D9 -S31508007AE040F0B18083F816A083F817A04FF6FF7010 -S31508007AF0484500F0B68031F812004FEA102C0132E2 -S31508007B00187683F819C0002840F0B18083F81CA0C5 -S31508007B1083F81DA04FF6FF70484500F0B68031F88F -S31508007B2012004FEA102C0132987783F81FC00028FC -S31508007B3040F0B18047F0400E5FFA8EFE83F800E011 -S31508007B40236820461D710021FEF7E0FE002840F05C -S31508007B50AB80013FBFB2002F3FF4C6AE2068216953 -S31508007B60FEF732FD0246002A40F09E805FFA87FE45 -S31508007B700EF1FF306369E1691A7300EB400B00EB05 -S31508007B808B0C9A76DA7683F80D80DE7231F81C0053 -S31508007B904FEA102B0CF10102587083F802B0002846 -S31508007BA03FF450AF48453FF44DAF31F812004FEA65 -S31508007BB0102B0CF10202D87083F804B000287FF469 -S31508007BC047AF83F805A083F806A04FF6FF7048452F -S31508007BD03FF44CAF31F812004FEA102C0132D8713D -S31508007BE083F808C000287FF447AF83F809A083F814 -S31508007BF00AA04FF6FF7048453FF44CAF31F8120023 -S31508007C004FEA102C0132987383F80FC000287FF4CE -S31508007C1047AF83F810A083F811A04FF6FF704845C8 -S31508007C203FF44CAF31F812004FEA102C0132987429 -S31508007C3083F813C000287FF447AF83F814A083F8AD -S31508007C4015A04FF6FF7048453FF44CAF31F81200C7 -S31508007C504FEA102C0132987583F817C000287FF474 -S31508007C6047AF83F818A083F819A04FF6FF70484568 -S31508007C703FF44CAF31F812004FEA102C0132187756 -S31508007C8083F81DC000287FF447AF83F81EA083F849 -S31508007C901FA04FF6FF7048453FF44CAF31F812105D -S31508007CA000293FF447AF49E70746E4E508B10B204A -S31508007CB07047054B1A6802B1107009B100200870A8 -S31508007CC019600020704700BF982700202DE9F0436F -S31508007CD08FB005460191164668B10023036005A9D1 -S31508007CE001A802F01E02FEF73DFA044628B1204616 -S31508007CF00FB0BDE8F0830924F9E7564801990C90BE -S31508007D0002AA05A80B92FFF7F9F806F01F080A9FC2 -S31508007D1030B116F01C0F01D0042843D00446E6E71C -S31508007D20002F58D016F01C0F32D1F97A01F0100343 -S31508007D30D8B200284DD106F00202D3B20BB1CB0758 -S31508007D403ED406F00806F1B2059B09B148F02008B2 -S31508007D501E6B2F62EE6185F806801978F87EBA7E6A -S31508007D60032942EA00222DD02A61B97F97F81FE03D -S31508007D703E7F787FDA882B600B0443EA0E61314335 -S31508007D80002341EA0020E860AB60AB61AA80AEE759 -S31508007D90F87A10F0110F13D106F00402D6B24EB1DC -S31508007DA00824A4E705A8FFF7E1FC48F008080A9F9D -S31508007DB00028B3D108F00806F1B271B9059BC7E7E8 -S31508007DC0072494E77E7D387D40EA062142EA01428F -S31508007DD0CAE704248BE7062489E7F9F74FFB002254 -S31508007DE0060C010EC0F3072C059BB8733E7487F882 -S31508007DF00FC07974FA723A777A77BA77FA771A7877 -S31508007E00F87EBE7E032A46EA00261BD00021012002 -S31508007E10B976F976397579751871002E96D018469F -S31508007E203146D3F83090FFF7DFFB00287FF476AFB2 -S31508007E300598013EC6604946FEF7C6FB059B002825 -S31508007E4084D06BE7797D387D40EA012246EA02460E -S31508007E50DCE700BF942500202DE9F04F9B46002360 -S31508007E6083B0CBF8003007460D461646FEF718F8DD -S31508007E70814630B9B879020607D4C00708D44FF04E -S31508007E800709484603B0BDE8F08F4FF00209F8E746 -S31508007E90BC68F9680A1B964234BFB0469046B8F1EA -S31508007EA0000FEED007F1240AE305DA0D002A35D1D2 -S31508007EB03B689878411E01EA542212F0FF0260D00E -S31508007EC07869996902380239884268D3B97961F0C4 -S31508007ED07F02BA714FF00209D3E7BA69B24219D0E4 -S31508007EE0B87900F04001C8B260B15878514601230C -S31508007EF0F9F76AFA002840F08580BA793B6822F0DB -S31508007F004001B9715878514632460123F9F734FAD7 -S31508007F10002877D1BC68BE61E005C20DC2F50071C4 -S31508007F20414528BF41462032BA182B46E9B12C46AE -S31508007F30167904F8016B6B18ED435819161D9C4207 -S31508007F4000F0010510D02DB1567904F8016B561DC5 -S31508007F509C4209D07278204600F8012BB5786570E6 -S31508007F60441C02369C42F5D1BC68DBF80050641804 -S31508007F706A18B8EB0108BC601D46CBF8002093D1FF -S31508007F807FE7002C45D1386901289FD9411C39D093 -S31508007F903B687861996902380239884296D299789D -S31508007FA0DE6A01FB0066002E90D05FEA582416446C -S31508007FB093D01019884288BFC2EB01045878294625 -S31508007FC0E3B23246F9F7D8F9BB79E0B903F04001D4 -S31508007FD0CBB29BB1BA69901B84420FD905EB4023FB -S31508007FE007F1230103F5007648781A4602F8010BD3 -S31508007FF088785870531C0231B342F5D161026B1868 -S31508008000BC68B2E7BB7963F07F00B8714FF001092D -S3150800801037E7796901921846FEF7EEFA019AB3E74F -S315080080202DE9F04F9846002383B0C8F8003004467F -S315080080300E461546FDF734FF074638B9A1790806F6 -S3150800804008D401F00202D0B230B90727384603B087 -S31508008050BDE8F08F0227F9E7E068A268C54206D3B3 -S31508008060904241F0200138BFE260A171EEE7002D91 -S31508008070F6D004F1240ACDF804A004F50979D1054F -S31508008080C90D002937D1236893F802A00AF1FF30F9 -S3150800809000EA522111F0FF0A0DD1002A40F0CC80E7 -S315080080A02069002800F0D380012812D0411C00F076 -S315080080B0BD8023686061A27902F04000C1B2002940 -S315080080C040F0A78061699A69A1F1020B901E834569 -S315080080D052D3A37963F07F00A0710227B6E7A1699E -S315080080E0A268594503D0E0688242C0F0B980D3053A -S315080080F0C4F818B0D90DC1F50070203104EB010B96 -S31508008100A84228BF28460BF1040320B303EB000A54 -S31508008110DA4331780BF10503524453458BF80410C2 -S3150800812002F00102314615D03AB171780BF1060317 -S315080081308BF80510711C53450CD091F801E01A46CE -S3150800814002F801EB91F802C083F801C0531C023112 -S315080081505345F2D1A268A37943F04001A171D8F83A -S31508008160001012180B182D1AA2600644C8F8003021 -S3150800817085D1E068A17973E79978DA6A0BFB012063 -S315080081800028A6D05FEA552C0AEB000BA7D00AEB0D -S315080081900C00884288BFCAEB010C5878CDF800C09D -S315080081A05FFA8CF331465A46F9F70EF9DDF800C046 -S315080081B000283BD1A269CBEB020BDC4525D94FEA57 -S315080081C04B21019B705CDA4303F8010B09EB0200B3 -S315080081D04B4500F00102314413D042B111F8010FAA -S315080081E0DDF804A001334B458AF8010009D0487828 -S315080081F01A4602F8010B88785870531C02314B4511 -S31508008200F5D1A17921F04003A3714FEA4C20A26869 -S31508008210A5E75878A26901990123F9F7D5F828B98D -S31508008220A279236822F04000A0714BE7A77967F08E -S315080082307F02A271012709E718466169FEF716FB56 -S3150800824000287FF431AFA268E068A17908E71846EC -S315080082505146FEF70BFB206100287FF425AFF2E7B5 -S31508008260587801995A460123F9F786F80028DDD18E -S31508008270A2683CE770B50446FDF712FEE0B9A3799B -S3150800828003F02002D1B2B9B103F04000C3B26BB11A -S315080082902146A26951F8240B01234078F9F794F88E -S315080082A0002839D1A67926F04002A2712068E16932 -S315080082B0FEF78AF9064606B170BD256AE97A41F0E5 -S315080082C02003EB72E0682877A289110A6977E389A7 -S315080082D0AB77E07BE87723691A0C110AC3F307200A -S315080082E0AB762A756975E876F9F7C8F8020C030EB5 -S315080082F0C0F307212A766B76A875E975AE74EE7415 -S31508008300A079216820F020020123A2710B71206850 -S31508008310BDE87040FEF7F2B80120CDE710B5044677 -S31508008320FFF7A8FF00B9206010BD00BFF8B50446E6 -S315080083300D46FDF7B5FD0646002846D1A379180671 -S3150800834045D4E268AA4205D203F00200C1B2002968 -S3150800835008BF15460023A268A360002D35D0206803 -S3150800836087787F023AB1013A691EB1FBF7F1B2FB91 -S31508008370F7F3994272D22269002A75D06261002AFF -S3150800838028D1A1681546C805C30D002B76D0A26969 -S31508008390AA4273D0A77907F04001C8B200284ED187 -S315080083A004F124072368394658782A460123F8F742 -S315080083B0E3FF00283DD1A168E068A561814204D9A0 -S315080083C0A279E16042F02003A3713046F8BD022687 -S315080083D03046F8BDBD4253D9236812E0FEF746FA87 -S315080083E00246002863D0531C23D0012A1BD92368D0 -S315080083F099698A4217D2A06862613918AF42A160AA -S315080084003FD294F806E00EF0020C5FFA8CFEED1BE4 -S3150800841018461146BEF1000FE0D111461846FEF780 -S31508008420EBF80246DFE7A07960F07F02A271022628 -S31508008430CBE7A17961F07F06A6710126C5E7274635 -S31508008440012357F8241B48783946F8F7BDFFA17968 -S315080084500028EFD121F04002A271A3E7784202403A -S31508008460A260AD1A62698AE71146FEF7FFF901288C -S315080084700246D8D0411CDCD020617FE7E0689DE742 -S31508008480A168EB054919D80DA16070B123689869F0 -S31508008490023A02388242C6D29878DB6A00FB023278 -S315080084A0002AC0D002EB55256DE705466BE7A168A3 -S315080084B03D46E6E730B58FB00EAB0D4643F8340DB2 -S315080084C005A918460022FDF74DFE044610B12046C0 -S315080084D00FB030BD094801990C9002AA05A80B9265 -S315080084E0FEF70CFD04460028F1D10A9921B105A82A -S315080084F02946FDF7EBFCEAE70624E8E79425002081 -S31508008500F0B599B018AB06AC43F85C0D2146184691 -S315080085100122FDF727FE08B119B0F0BD2D480199D3 -S315080085200D9003AA20460C92FEF7E8FC0028F3D12A -S315080085300B9B002B49D0D97A11F0010F0CBF0020F4 -S315080085400720069ADF7E1278997E032A41EA0727D2 -S3150800855029D00028E0D1DB7A03F01002D1B2C1B1EC -S31508008560012F30D903460FAD5A1CE65CA05CEE54C9 -S315080085700233242BA854F7D1284602211197FEF777 -S31508008580A3F80028C8D12846FEF784FEF8B10428C7 -S31508008590C2D12046FEF756FE0028BDD167B9069817 -S315080085A0FDF7ACFFB8E7597D1A7D42EA012147EA93 -S315080085B001470028B0D1CEE706983946FFF714F8E8 -S315080085C00028A9D1EBE70220A6E70620B9E707208D -S315080085D0A2E700BF942500202DE9F041804682B02D -S315080085E016464F1E0546002411E0012201AB30460F -S315080085F06946FFF731FC019B012B0AD19DF8000063 -S315080086000D28F2D001340A2805F8010B01D0BC4226 -S31508008610EBDB002129708C4214BF4046084602B0A5 -S31508008620BDE8F08130B50A2883B004460D4610D05F -S3150800863002A9284601F8084D0122694601ABFFF751 -S31508008640EFFC0198012814BF4FF0FF30012003B05A -S3150800865030BD0D20FFF7E6FFEAE700BF70B5054617 -S3150800866000780E4650B1002403E015F8010F0134D6 -S3150800867028B13146FFF7D6FF431CF6D104462046FB -S3150800868070BD00BF7F2830B414D9A9B90F4B07E0D5 -S315080086905288A9B24C1C824209D0A1B2802912D0B4 -S315080086A05C889A1C4D1C844202F10203F0D101F148 -S315080086B0800080B230BC7047FF2804D8803804494F -S315080086C031F81000F6E70020F4E700BF1EA6000800 -S315080086D020A6000861280AD00749002201E0834243 -S315080086E006D031F8023F0132002BF8D1704700223C -S315080086F0024830F81200704740A4000820A7000876 -S31508008700013A70B48D18A9423ED24B780A7803EB29 -S31508008710022293B2C018CA4380B2AA188342C2F38F -S31508008720400235D88B1C9D4228D96AB11C785A78E4 -S3150800873002EB042292B2801880B2824201D9421C0E -S3150800874090B202339D4219D91E785C7804EB062450 -S31508008750A4B2001980B29A1C844201D9441CA0B262 -S315080087609C78537803EB04239BB2C01880B28342EB -S3150800877001D9431C98B2931C9D42E5D8CA43AB184D -S3150800878023F00102931CC918A94204D070BC704793 -S31508008790431C98B2C6E709780A02101880B28242CA -S315080087A0F4D9431C98B2F1E738B50E4C657C237CA6 -S315080087B0143D05EB03218DB2401904F11A01082274 -S315080087C080B2FFF79DFF04F122012A46FFF798FFC2 -S315080087D010B94FF6FF7038BD020A42EA002398B274 -S315080087E038BD00BF1828002070B4C478134B0A1986 -S315080087F0D4B2DC7086780D0AAA19D2B29A70467875 -S315080088005E7000789542187003D90136F6B25E702C -S315080088108EB1C9B28C420CDA0132D0B207499870CF -S3150800882038B94B785A1CD0B2487010B90B785A1C14 -S315080088300A7070BC704701301870EAE76C2E002089 -S3150800884010B5094C2368014603F10800FFF7CCFF71 -S31508008850064A2368507814789178D2781C72587230 -S315080088609972DA7210BD00BF9C2700206C2E00207A -S3150800887008B5002006491422FFF742FF10B94FF643 -S31508008880FF7008BD030A43EA002080B208BD00BF96 -S31508008890262800200620FFF787BF00BF42F6806023 -S315080088A042F2A071C2F20000C2F2000142F67C62F6 -S315080088B042F6706330B4C2F200020024C2F200032A -S315080088C004804C7601204FF480612546107019808B -S315080088D030BC7047064B074A198810B40024147038 -S315080088E019B10120107010BC70471880FBE700BF53 -S315080088F0802E00207C2E00202DE9F04FB74CB84A78 -S31508008900B84FB94BD2F8009004F1360103288BB062 -S31508008910396019600DD002281AD0A07B452800F0CE -S31508008920C780B24EB24D0020288030700BB0BDE82B -S31508008930F08F99F8195005F00F06032EF1D1B9F802 -S315080089401000AA4EAA4D0028EDD1DFF8B0822EE01D -S31508008950A84DEE78711CC8B2E87060B9AA78561CA2 -S31508008960F1B2A97039B96878421CD6B26E7016B9D8 -S315080089702978481C287099F819209D4DDFF87C82C3 -S315080089800026072A2E80A8F8006000F0E080052A55 -S3150800899000F0DD80002A00F0E380B9F81010002905 -S315080089A040F0E08002F00F000328904EBBD1082269 -S315080089B03270009301F040F9009B327802F02001F2 -S315080089C0C9B2002900F06A810021A8F80010142015 -S315080089D0DFF82C8289F8191084F82F0028222A80BB -S315080089E0502784F82E7099F80810B8F8007084F8A3 -S315080089F02A1099F80930B8F8021084F82B3099F83B -S31508008A000A00764B84F82C0099F80B2084F82D2060 -S31508008A1099F80C0084F8260099F80D2084F8272088 -S31508008A2099F80E0084F8280099F80F00062284F8B1 -S31508008A302900E275B9F804006084B9F8060067836E -S31508008A40A084A183B9F80010E183B9F80200208454 -S31508008A5099F8191001F01000C1B2002900F00C8134 -S31508008A60002083F8310083F830002B884021002548 -S31508008A701A0AA1752274637484F8355084F8345040 -S31508008A806586FFF707FF5C4AE57313886575591C09 -S31508008A908BB2C043190A608645201380A0732575DA -S31508008AA0A174E3742583FFF7E3FEC24322834BE0F8 -S31508008AB04F4D94F81090667C298806EB092989455C -S31508008AC04EDC207D1FFA89F98006A5F8009047D16B -S31508008AD0667D002E44D1DFF82881B8F80060002EA4 -S31508008AE040F0D080B8F80210002940F0CB800192FF -S31508008AF00093FFF7BDFE4FF6FF7290428246009B39 -S31508008B0001982DD1E17DDFF8D4B0062900F01A814D -S31508008B10012925D19BF82220082A21D1BBF8240057 -S31508008B204FF6F671002388428BF8223040F29E8178 -S31508008B300930ABF82400608BA28BB8F80230668344 -S31508008B402A4EE0832284A38300233370EEE699F845 -S31508008B501A60701CC2B2782A89F81A2000F0878039 -S31508008B60224EE0E699F81A60711E89F81A10002E4E -S31508008B70F6D199F81B60082E00F0CF80501E012808 -S31508008B8040F2C880042E00F2C180032101FA06F1E2 -S31508008B90C8B202F00F020136511E89F81A0089F888 -S31508008BA01B600729DCD801A050F821F0678C000863 -S31508008BB0378C0008058C0008CD8B0008618B0008EF -S31508008BC0CD8B0008618B0008CD8B0008074EDFF8B7 -S31508008BD03080112384F82F3000E700BF18280020C2 -S31508008BE09C2700205C2E0020842E0020682E002062 -S31508008BF00C280020602E00200E28002014280020B3 -S31508008C00642E0020C24E04203070009301F014F840 -S31508008C10B8F80020009B1B683B60002A67D0B9F8AB -S31508008C201000002863D028301823288084F82F30B5 -S31508008C30DFF8F482D4E6DFF8F0820227042684F807 -S31508008C402F70022206210A232C20602784F8376019 -S31508008C5084F8362084F8381084F83930288084F867 -S31508008C602E70AB4EBFE6DFF8C0821227E6E700217A -S31508008C7089F81910A64E56E683F830200A2283F89A -S31508008C803120F2E6E08BB0427FF46AAFA149088C46 -S31508008C90B8F8021088427FF463AF28E702F01000A4 -S31508008CA0C0B278B1012004221127A9F8100089F86A -S31508008CB0192089F81B10A8F8001084F82F70DFF81F -S31508008CC068828BE6B8F8001011B3D20733D5A9F835 -S31508008CD01000B9F81220914288BFA8F80020B8F809 -S31508008CE00020A9F81020002189F81B1093E7327894 -S31508008CF002F00201CBB2002B3FF415AE2827102153 -S31508008D002F8084F82F10DFF8208269E6302040E7AC -S31508008D100A46E8E7052E7FF435AF00227C4E89F82F -S31508008D2019208021317000F087FF142384F82F3032 -S31508008D30DFF8F48152E6B9F81020002AC9D076483F -S31508008D400280D0E700930190FFF7A4FD5045019AF1 -S31508008D50009B7FF405AFDFF8D4A19AF8190030B16B -S31508008D60BBF82460BAF804108E4200F0838094F8A9 -S31508008D702F3003F03F06022E5ED0654E94F82F2062 -S31508008D80644B02F00400C1B200297FF4CCAD93F81D -S31508008D902DA093F82BC093F8297083F829A04FF0DB -S31508008DA0140A93F8262093F8280093F82C9093F841 -S31508008DB0271093F82AE083F82FA001374FF0280AE6 -S31508008DC083F827C0DFF85CC1A5F800A0FFB24FF012 -S31508008DD0500A83F82EA083F8289083F82C0083F88D -S31508008DE02B108CF8002083F826E083F82A2083F8D5 -S31508008DF02D7067B90130C7B283F82C703FB90131BD -S31508008E00C8B283F82B0010B9013283F82A20638C84 -S31508008E10B4F824E0678BB4F81CC0B8F80010B8F8AA -S31508008E2002203E48A4F822E00380A384E783A4F83E -S31508008E3020C06183A28318E6364F3949BB8C09885E -S31508008E40DFF8D890374FA9F80030002699423E70CF -S31508008E5003D001222E4E3A7090E7002800F02381B5 -S31508008E60072800F01E810120387079E60830ABF833 -S31508008E70240060E6BBF82260BAF806108E427FF43A -S31508008E8076AFBBF81A60BAF800108E427FF46FAF5F -S31508008E90BBF81C60BAF802108E427FF468AF9BF8E4 -S31508008EA02FC01B4ECDF808C00CF0040E00215FFA47 -S31508008EB08EFCC2F800A03170BCF1000F66D19BF899 -S31508008EC02EE0DFF860B04FEA1E1C4FEA8C01A9F1CC -S31508008ED01409C1EB090E00F00F001FFA8EF90228DB -S31508008EE08BF80010A5F8009022D0B9F1000F02D136 -S31508008EF00298810722D0B4F826E0BAF808108E4501 -S31508008F0058D01027DFF8249084F82F7066E500BF44 -S31508008F10682E00201828002014280020722E002011 -S31508008F20802E00207C2E0020642E0020A027002002 -S31508008F30DDF808C00CF03F011229D6D1DDF808E0AB -S31508008F400EF01001C8B220B1BAF81010DFF8489335 -S31508008F50C1BB9AF8191001F00F00013807283FF62F -S31508008F60E2AC0FF2080C5CF820F000BF739300081F -S31508008F704D9300083D92000801920008AB91000845 -S31508008F8093910008038F00089B8F000820228AF817 -S31508008F901910327000F050FEC5E43378DB077FF510 -S31508008FA0C2AC0022BA488AF819201021017000F0D4 -S31508008FB043FEB8E4B748B849B0F828C0488984459C -S31508008FC09FD1BBE709F10C0001920093FFF70CFC57 -S31508008FD0B24994F82A2091F800C0009BCDF808C041 -S31508008FE09445019AB5D142F61800C2F2000091F8EC -S31508008FF001E090F82B00CDF80CE08645A9D142F6A1 -S315080090001800C2F2000091F802C090F82C00CDF8C2 -S3150800901014C084459DD142F61800C2F20000C978F2 -S3150800902090F82D00814294D1DDF808E0DDF80CC0F7 -S3150800903089F80CE099F81B00DDF814E089F80DC0F2 -S3150800904089F80EE089F80F1008BB99F818C099F846 -S315080090501A0099F81610C0EB0C00A0EBD100C0B2AC -S3150800906041185FFA81FEC1B211F0800F89F816E047 -S3150800907001D04042C1B29AF81700A0EB90004118FF -S31508009080C8B200EBDE0C8AF817008AF818C09AF8FE -S31508009090181001208AF81A1000213070AAF810104A -S315080090A057E7012139707E4EC2F800A096F800C035 -S315080090B096F801E0B178F07894F82960AAF80430B7 -S315080090C0069694F8276005904FF0030B8AF81AB0B5 -S315080090D08AF818B008964FF0040B00268AF816602E -S315080090E08AF817B08AF81B60638C94F82800AAF8E7 -S315080090F00630638B0790AAF8003094F82600A38BF5 -S315080091008AF80CC08AF80E10DDF814C00699099082 -S3150800911001221046AAF802308AF819208AF80DE0CA -S315080091208AF80FC0AAF810208AF80B10079ADDF8FB -S3150800913020E0099B8AF80A208AF809E08AF80830AC -S31508009140FFF77EFB94F82E0000F0F001502940F35B -S315080091504D8120FA0BF3534A581F800013780EE00E -S3150800916091F836307BB1012B00F04481022B2BD0CD -S315080091709EF8371001EB060E29B15FFA8EF6A11993 -S3150800918086428E46ECDB3E701370DFF80C91122790 -S3150800919054E53378DB077FF5C6AB072200218AF84A -S315080091A019208AF81A10FFF7BEBB288808B1FFF7FE -S315080091B047FB94F82F00C20700F11F812A88002A6E -S315080091C07FF49FAEFFF7AFBB91F837C0BCF1040F31 -S315080091D0CED191F8380091F83910137041EA00227F -S315080091E003F5C1639A4238BF13463E70A9F80020BA -S315080091F0AAF81230AAF81430DFF89C9012271DE559 -S31508009200288808B1FFF71CFB94F82F1011F001000D -S3150800921000F091803778F80740F18980002307220B -S315080092208AF819208AF81A30AAF810300120FFF7B0 -S3150800923007FB1021317000F0FFFC62E694F82F203E -S31508009240D00731D501F01000C0B268BBBAF81030AB -S31508009250002B7FF468AB2F88791C88B2FFF7F0FAE9 -S3150800926030782A8840F0100333701AB1084940F064 -S3150800927012070F7000F0E0FC012008220023DFF837 -S315080092801890AAF810008AF819208AF81B30A0E46A -S31508009290682E002018280020A02700206C2E002009 -S315080092A0602E0020882E002002F02002D0B268B17D -S315080092B094F8348094F835003A68B5F800E040EA46 -S315080092C008201218C0EB0E003A602880288858B18A -S315080092D001F01001CAB23AB9317841F0020232708F -S315080092E00093FFF7ADFA009B94F830C094F831105C -S315080092F0BAF814006C4A01EB0C2189B2814211803C -S3150800930000D801B9108010883278AAF8120091079F -S315080093103FF409ABDFF8A081DFF8A0910020A8F898 -S315080093200000009300F088FC009BFFF746BB062070 -S315080093308AF819007AE73378D9077FF53FAF052110 -S315080093408AF81910AAF81000FFF7EDBA3178C9079C -S3150800935005D594F82F0000F03F01122920D02023CC -S315080093603370019200F068FC019A1068002141767A -S3150800937004E531784D4AC8077FF5D5AA03218AF84E -S3150800938019102888402111700021AAF81010002809 -S31508009390C0D0422111700093FFF752FA009BB9E73B -S315080093A0434991F82E2002F0F00050284CDD414840 -S315080093B01109A1F1050801784FEA880C002204EB8F -S315080093C0020E6245F04668DA9EF83610002964D027 -S315080093D0012966D002291ED098F837E00EEB02085C -S315080093E0BEF1000F59D05FFA88F2E8E7DFF8CC90B3 -S315080093F0122723E40136F6B2C1E600230727012027 -S315080094008AF819708AF81A30FFF71AFA1022327099 -S3150800941000F012FC75E59EF83790B9F1040FDBD120 -S315080094209EF838C09EF8399001708BF8002049EAFA -S315080094300C2001F5C1611C4A884238BF01461080DC -S31508009440AAF81210AAF8141094F8260094F827E03F -S3150800945094F8281094F829208AF808004FF0030C8D -S315080094608AF819C08AF809E08AF80A108AF80B20DF -S3150800947001200093DFF84080DFF84090FFF7E0F91D -S3150800948000234220AAF810302B80A8F8003030704C -S3150800949000F0D2FB009BFFF790BA01708BF8002012 -S315080094A0D2E70132D2B28AE7722E0020682E002057 -S315080094B018280020882E002014280020A027002025 -S315080094C0030A43EA002080B2704700BF0A1E03461B -S315080094D009DD05490868054983420A8003D019460B -S315080094E092B200F0EFBB7047842E002014280020AB -S315080094F0F8B59C4B9C4A18889C4E918BD48B20B10E -S315080095005A8812B1884200F0DA809A89954822B1C1 -S31508009510C58915B18A4200F0ED801A8B914822B1AF -S31508009520458B15B18A4200F0EC809A8C8D4822B1A1 -S31508009530C58C15B18A4200F0EB801A8E894822B193 -S31508009540458E15B18A4200F0EA809A8F854822B185 -S31508009550C58F15B18A4200F0C680B3F84820814805 -S315080095602AB1B0F84A5015B18A4200F0AE80B3F875 -S3150800957054207C482AB1B0F8565015B18A4200F0FA -S31508009580AB801D88774C1DB96588002D00F0948046 -S315080095909989744C19B9E289002A00F0D080188B91 -S315080095A0704C18B9658B002D00F0CC80998C6D4CE9 -S315080095B019B9E28C002A00F0C880188E694C18B9CF -S315080095C0658E002D00F0C480998F664C19B9E28F1C -S315080095D0002A00F0C080B3F84800624C20B9B4F8FD -S315080095E04A50002D00F0BA80B3F854105D4C00299B -S315080095F05CD05F4D9F7A29780024CF1B22462046EF -S31508009600A7429C7DC8BFFAB20C1B9442C8BFE2B2FF -S3150800961093F82240C4EB0104C8BF01209442C8BF96 -S31508009620E2B293F82E40C4EB0104C8BF022094426C -S31508009630C8BFE2B293F83A40C4EB0104C8BF03209E -S315080096409442C8BFE2B293F84640C4EB0104C8BFCF -S3150800965004209442C8BFE2B293F85240C4EB010416 -S31508009660C8BF05209442C8BFE2B293F85E40C4EB77 -S315080096700101C8BF06209142C8BFCAB23D49C8BF4A -S3150800968007200A703C4A307000EB4004107003EB68 -S3150800969084043A490422204600F014FB201D384968 -S315080096A0062200F00FFB2B78A372F8BDB4F85620FB -S315080096B0002A9ED10725543435702D4DE9E7A2427C -S315080096C07FF423AF00221C462FE0A5427FF44FAF5C -S315080096D0062200F1480428E0A5427FF452AF07228B -S315080096E000F1540421E0A5427FF437AF052200F1CA -S315080096F03C041AE0A5427FF410AF012200F10C04E5 -S3150800970013E0A5427FF411AF022200F118040CE021 -S31508009710A5427FF412AF032200F1240405E0A54216 -S315080097207FF413AF042200F1300415493270201D6E -S31508009730062200F0C7FA0E480178A172F8BD012585 -S315080097400C34B9E702251834B6E703252434B3E701 -S3150800975004253034B0E705253C34ADE70625483402 -S31508009760AAE700BF8C2E002018280020892E00208A -S31508009770ED2E00208A2E0020EC2E00203428002012 -S315080097802E28002070B5154E154C3278154D00233D -S31508009790501C3070237005E02078421CD3B2072B8A -S315080097A023701AD803EB430305EB830035F823101F -S315080097B0428842EA010399B20029EDD03278837AC9 -S315080097C0D11A7729E8DD0422002100F09FFA2078D3 -S315080097D0421CD3B2072B2370E4D970BDED2E0020AE -S315080097E0892E00208C2E0020F8B52A4C2388292B98 -S315080097F040D9294DAA8A0020B2F5807F20800746E5 -S3150800980003D0B2F5007F38D0F8BD244EE98C3288F3 -S315080098109142F9D1288D73889842F5D1FFF768FEF1 -S31508009820022305F11601062205F120006B752F7536 -S3150800983000F048FA1A49062205F1160000F042FA25 -S3150800984006221749A81800F03DFA05F1200106225C -S31508009850284600F037FAA88BE98B32887388E884A3 -S315080098602985AA83082006212A22EB83287369738F -S315080098702280F8BD00232380F8BD084BE98C1A889E -S315080098809142C1D1288D5B889842BDD1BDE8F84088 -S31508009890FFF72EBE0C28002018280020642E002072 -S315080098A0742E0020F8B56F4CE38B4FF6FF72934287 -S315080098B07AD06D4E6D4D3288298883EA02000842B7 -S315080098C067D06B496B4D0B8848882B8068806A4A3D -S315080098D0DFF8C8E11088698898427BD09089664F7E -S315080098E0984200F08480108B634F984200F08F8076 -S315080098F0908C614F984200F08280108E5E4F98429D -S3150800990000F08D80908F5C4F984200F09080B2F8FE -S315080099104800594F984200F09B80B2F854205648A8 -S315080099209A4200F08C800827FF2106224D488EF8BF -S31508009930007000F0EBF900210622504800F0E6F925 -S315080099404F495048062200F0BDF94D494E480622B7 -S3150800995000F0B8F929887088E18400230121E083A2 -S315080099600420B5F802C0E074062223756175A37356 -S31508009970E173637435884549454B46486273A2745A -S315080099802A2227742773A4F828C0A58319600280A1 -S31508009990F8BD218C70886D8881EA00022A4290D130 -S315080099A0344D2B80698092E7208C984281D12046DD -S315080099B03949062200F086F931493248062200F074 -S315080099C081F93448028808230E3200212373617313 -S315080099D00280F8BD5088884280D1002311460431A0 -S315080099E0062220488EF8003000F06CF9E4E7F88982 -S315080099F088427FF478AF012307F10C01EFE7F88C72 -S31508009A0088427FF47AAF032307F12401E7E7788BCE -S31508009A1088427FF46DAF022307F11801DFE7788EDD -S31508009A2088427FF46FAF042307F13001D7E7F88F38 -S31508009A3088427FF46CAF052307F13C01CFE7B0F805 -S31508009A4056308B427FF46FAF072300F15401C6E707 -S31508009A50B7F84A0088427FF460AF062307F1480149 -S31508009A60BDE700BF18280020642E00200828002023 -S31508009A7010280020F02E00208C2E002038280020E8 -S31508009A80742E00201E2800202E2800204E28002094 -S31508009A905C2E00200C28002000A90008892E002032 -S31508009AA038B5F8F755FBFAF767FF42F6F863C2F2DE -S31508009AB0000300F5FA701860FAF75EFF42F6F461E3 -S31508009AC0C2F2000100F51C5210320A60FEF7E6FEEB -S31508009AD042F66461C2F2000142F60802C2F20002CE -S31508009AE04FF6A96443F613750C804D8042F61003B1 -S31508009AF04FF6FF71C2F200031180002151804EF625 -S31508009B00030040F213121C805A80FEF7E3FEBDE8FC -S31508009B103840F8F74BBC00BFF8B5164B1F68FA6912 -S31508009B203A62E1B14C1EA4B2661C012307F11C027D -S31508009B300578B342157204EA030410D02CB14478B0 -S31508009B400223B34287F8254009D0C55CD4180133EF -S31508009B502572C55CD4180133B3422572F5D1043198 -S31508009B60A7F8641007F12000FFF7B0FCF869411C5C -S31508009B70F961F8BD9C27002070B5F8F729FCF8B9FB -S31508009B80FAF7FAFE264B1A6890420BD3254826495F -S31508009B90264C086002F5FA7202201A60FEF7ACFE3F -S31508009BA0238843BBFAF7E8FE21490A68904205D3A1 -S31508009BB002F51C5310330B60FFF7E4FD002070BD5F -S31508009BC01A4D1C4C28804FF40060A689FFF778FCD4 -S31508009BD0864217D040F60600A489FFF771FC844236 -S31508009BE0CED1FFF701FE2B88002BC9D0F8F714FC5D -S31508009BF000202880C4E7FFF755FEF8F70DFC002083 -S31508009C002080CFE70120FEF777FE29880029B7D004 -S31508009C10FFF748FEF8F700FC00222A80B0E700BFED -S31508009C20F82E0020A02700209C2700200C280020C2 -S31508009C30F42E00201828002038B5174D174A2B781F -S31508009C40146803F04000C2B2CAB9D90703F0040188 -S31508009C50C8B248BFA4F8642010B1B4F86410A1B91A -S31508009C6003F00202D1B201B938BD0D4802680023DB -S31508009C70101DA4F86430BDE83840FBF719BC012173 -S31508009C800020E161A4F8640038BD04F12000FFF764 -S31508009C901DFC2B78E4E700BF682E00209C270020D7 -S31508009CA05C2E0020A0F1300009288CBF002001207E -S31508009CB0704700BFA0F16103D9B2192998BF2038AF -S31508009CC0704700BF844640EA010313F0030F40F0D3 -S31508009CD01080242AC0F00D802DE9F00FB1E8F80FA6 -S31508009CE0A0E8F80FA2F12402242ABFF4F7AFBDE8D2 -S31508009CF0F00F002A00F0078011F8013B00F8013B3D -S31508009D00013A7FF4F9AF6046704700BF8446002ADF -S31508009D1000F0328010F0030F00F0078000F8011BF6 -S31508009D20013A00F02980FFF7F5BF282AC0F01F8006 -S31508009D30A2F128022DE9F00F01F0FF0141EA012105 -S31508009D4041EA014141EA01610B460C460D460E46C1 -S31508009D500F46884689468A468B46A0E8FA0F283A6F -S31508009D60BFF4FBAFBDE8F00F283200F0058000F81D -S31508009D70011B013A7FF4FBAF6046704738B50446CD -S31508009D800D4600F019F842F6FC63C2F200031D60A6 -S31508009D9044F0800442F60070C2F2000004600246F5 -S31508009DA011680029FCD100F009F842F6FC63C2F2FA -S31508009DB00003186838BD00BF704700BF704700BF72 -S31508009DC0433A2F576F726B2F736F6674776172659C -S31508009DD02F4F70656E424C542F5461726765742F0D -S31508009DE044656D6F2F41524D434D345F53544D3387 -S31508009DF0325F4F6C696D65785F53544D3332453425 -S31508009E0030375F43726F7373776F726B732F426F5E -S31508009E106F742F6964652F2E2E2F6C69622F7569F2 -S31508009E20702F6E65746465762E6300000201020069 -S31508009E302F64656D6F70726F675F6F6C696D65789B -S31508009E405F73746D3332653430372E737265630011 -S31508009E502F626F6F746C6F672E7478740000000041 -S31508009E6057696E5553422042756C6B20496E74656E -S31508009E70726661636500000044656661756C74000E -S31508009E80303030303030303030353043000000006C -S31508009E904F70656E424C5420557365720000000081 -S31508009EA057696E5553422042756C6B204465766936 -S31508009EB063650000433A2F576F726B2F736F667492 -S31508009EC0776172652F4F70656E424C542F546172DC -S31508009ED06765742F44656D6F2F41524D434D345F4E -S31508009EE053544D33325F4F6C696D65785F53544DEB -S31508009EF03332453430375F43726F7373776F726BE3 -S31508009F00732F426F6F742F6964652F2E2E2F2E2E96 -S31508009F102F2E2E2F2E2E2F536F757263652F4152BB -S31508009F204D434D345F53544D33322F43726F737321 -S31508009F30776F726B732F766563746F72732E630017 -S31508009F400000080010001800200028003000380023 -S31508009F504000480050005800800088009000980093 -S31508009F60A000A800B000B800C000C800D000D80003 -S31508009F7000C00008004000000300000000000108BF -S31508009F8000000100040000000000020800000200B2 -S31508009F90050000000000040800000200060000009A -S31508009FA0000006080000020007000000000008087C -S31508009FB0000002000800000000000A080000020075 -S31508009FC00900000000000C08000002000A0000005A -S31508009FD000000E08000002000B000000433A2F574D -S31508009FE06F726B2F736F6674776172652F4F70652A -S31508009FF06E424C542F5461726765742F44656D6FB9 -S3150800A0002F41524D434D345F53544D33325F4F6C9D -S3150800A010696D65785F53544D3332453430375F4345 -S3150800A020726F7373776F726B732F426F6F742F69CA -S3150800A03064652F2E2E2F2E2E2F2E2E2F2E2E2F539B -S3150800A0406F757263652F41524D434D345F53544DBE -S3150800A05033322F756172742E63000000433A2F570E -S3150800A0606F726B2F736F6674776172652F4F7065A9 -S3150800A0706E424C542F5461726765742F44656D6F38 -S3150800A0802F41524D434D345F53544D33325F4F6C1D -S3150800A090696D65785F53544D3332453430375F43C5 -S3150800A0A0726F7373776F726B732F426F6F742F694A -S3150800A0B064652F2E2E2F2E2E2F2E2E2F2E2E2F531B -S3150800A0C06F757263652F41524D434D345F53544D3E -S3150800A0D033322F63616E2E6300000000050206020C -S3150800A0E0060307030803090309040A040B040C04FE -S3150800A0F00C050D050E050F050F06100610071008AE -S3150800A100433A2F576F726B2F736F66747761726558 -S3150800A1102F4F70656E424C542F5461726765742FC9 -S3150800A12044656D6F2F41524D434D345F53544D3343 -S3150800A130325F4F6C696D65785F53544D33324534E1 -S3150800A14030375F43726F7373776F726B732F426F1B -S3150800A1506F742F6964652F2E2E2F2E2E2F2E2E2FDD -S3150800A1602E2E2F536F757263652F41524D434D3412 -S3150800A1705F53544D33322F7573622E63000000000F -S3150800A18008003F0008003F004F70656E424C5400BF -S3150800A190433A2F576F726B2F736F667477617265C8 -S3150800A1A02F4F70656E424C542F5461726765742F39 -S3150800A1B044656D6F2F41524D434D345F53544D33B3 -S3150800A1C0325F4F6C696D65785F53544D3332453451 -S3150800A1D030375F43726F7373776F726B732F426F8B -S3150800A1E06F742F6964652F2E2E2F2E2E2F2E2E2F4D -S3150800A1F02E2E2F536F757263652F66696C652E63F5 -S3150800A200000000004669726D77617265207570649A -S3150800A210617465207265717565737420646574650B -S3150800A220637465640A0D00004F70656E696E672079 -S3150800A2306669726D776172652066696C6520666FFE -S3150800A240722072656164696E672E2E2E000000000A -S3150800A2504552524F520A0D004F4B0A0D000000009E -S3150800A2605374617274696E67207468652070726FC2 -S3150800A2706772616D6D696E672073657175656E636A -S3150800A280650A0D0050617273696E67206669726DA2 -S3150800A290776172652066696C6520746F206F6274D9 -S3150800A2A061696E2065726173652073697A652E2E01 -S3150800A2B02E00000045726173696E67200000000079 -S3150800A2C02062797465732066726F6D206D656D6F97 -S3150800A2D0727920617420307800000000526561644C -S3150800A2E0696E67206C696E652066726F6D20666997 -S3150800A2F06C652E2E2E4552524F520A0D0000000054 -S3150800A300496E76616C696420636865636B73756D05 -S3150800A31020666F756E642E2E2E4552524F520A0DC8 -S3150800A3200000000050726F6772616D6D696E67207C -S3150800A3300000000020627974657320746F206D65D3 -S3150800A3406D6F7279206174203078000057726974D5 -S3150800A350696E672070726F6772616D2063686563E6 -S3150800A3606B73756D2E2E2E00436C6F73696E6720A6 -S3150800A3706669726D776172652066696C650A0D009B -S3150800A3804669726D776172652075706461746520BF -S3150800A3907375636365737366756C6C7920636F6D2B -S3150800A3A0706C657465640A0D00000000222A3A3C48 -S3150800A3B03E3F7C7F000000002B2C3B3D5B5D000090 -S3150800A3C0809A90418E418F804545454949498E8FEF -S3150800A3D09092924F994F555559999A9B9C9D9E9F3D -S3150800A3E041494F55A5A5A6A7A8A9AAABAC21AEAFCA -S3150800A3F0B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFD7 -S3150800A400C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFC6 -S3150800A410D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFB6 -S3150800A420E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFA6 -S3150800A430F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF96 -S3150800A44061006200630064006500660067006800DA -S3150800A45069006A006B006C006D006E006F0070008A -S3150800A460710072007300740075007600770078003A -S3150800A47079007A00A100A200A300A500AC00AF00F5 -S3150800A480E000E100E200E300E400E500E600E700A2 -S3150800A490E800E900EA00EB00EC00ED00EE00EF0052 -S3150800A4A0F000F100F200F300F400F500F600F80001 -S3150800A4B0F900FA00FB00FC00FD00FE00FF000101A8 -S3150800A4C003010501070109010B010D010F01110126 -S3150800A4D013011501170119011B011D011F01210196 -S3150800A4E023012501270129012B012D012F01310106 -S3150800A4F03301350137013A013C013E014001420171 -S3150800A5004401460148014B014D014F0151015301D8 -S3150800A5105501570159015B015D015F016101630145 -S3150800A5206501670169016B016D016F0171017301B5 -S3150800A530750177017A017C017E019201B103B203AC -S3150800A540B303B403B503B603B703B803B903BA0331 -S3150800A550BB03BC03BD03BE03BF03C003C103C303E0 -S3150800A560C403C503C603C703C803C903CA03300423 -S3150800A5703104320433043404350436043704380409 -S3150800A58039043A043B043C043D043E043F044004B9 -S3150800A5904104420443044404450446044704480469 -S3150800A5A049044A044B044C044D044E044F04510418 -S3150800A5B052045304540455045604570458045904C1 -S3150800A5C05A045B045C045E045F04702171217221E5 -S3150800A5D073217421752176217721782179217A21B1 -S3150800A5E07B217C217D217E217F2141FF42FF43FF84 -S3150800A5F044FF45FF46FF47FF48FF49FF4AFF4BFF19 -S3150800A6004CFF4DFF4EFF4FFF50FF51FF52FF53FFC8 -S3150800A61054FF55FF56FF57FF58FF59FF5AFF0000D2 -S3150800A620C700FC00E900E200E400E000E500E700FE -S3150800A630EA00EB00E800EF00EE00EC00C400C500FD -S3150800A640C900E600C600F400F600F200FB00F900B7 -S3150800A650FF00D600DC00A200A300A500A7209201F7 -S3150800A660E100ED00F300FA00F100D100AA00BA00FB -S3150800A670BF001023AC00BD00BC00A100AB00BB00AE -S3150800A680912592259325022524256125622556259F -S3150800A69055256325512557255D255C255B25102500 -S3150800A6A0142534252C251C2500253C255E255F25EB -S3150800A6B05A25542569256625602550256C25672564 -S3150800A6C068256425652559255825522553256B2562 -S3150800A6D06A2518250C25882584258C25902580250E -S3150800A6E0B103DF009303C003A303C303B500C40388 -S3150800A6F0A6039803A903B4031E22C603B503292299 -S3150800A7006122B1006522642220232123F700482212 -S3150800A710B0001922B7001A227F20B200A025A00097 -S3150800A72041004200430044004500460047004800F7 -S3150800A73049004A004B004C004D004E004F005000A7 -S3150800A7405100520053005400550056005700580057 -S3150800A75059005A002100E0FFE1FFE5FFE2FFE3FFB1 -S3150800A760C000C100C200C300C400C500C600C700BF -S3150800A770C800C900CA00CB00CC00CD00CE00CF006F -S3150800A780D000D100D200D300D400D500D600D8001E -S3150800A790D900DA00DB00DC00DD00DE00780100010C -S3150800A7A002010401060108010A010C010E0110014B -S3150800A7B012011401160118011A011C011E012001BB -S3150800A7C022012401260128012A012C012E0130012B -S3150800A7D032013401360139013B013D013F01410196 -S3150800A7E04301450147014A014C014E0150015201FE -S3150800A7F05401560158015A015C015E01600162016B -S3150800A8006401660168016A016C016E0170017201DA -S3150800A8107401760179017B017D019101910392030F -S3150800A82093039403950396039703980399039A034E -S3150800A8309B039C039D039E039F03A003A103A303FD -S3150800A840A403A503A603A703A803A903AA03100440 -S3150800A8501104120413041404150416041704180426 -S3150800A86019041A041B041C041D041E041F042004D6 -S3150800A8702104220423042404250426042704280486 -S3150800A88029042A042B042C042D042E042F04010465 -S3150800A890020403040404050406040704080409045E -S3150800A8A00A040B040C040E040F04602161216221C2 -S3150800A8B063216421652166216721682169216A214E -S3150800A8C06B216C216D216E216F2121FF22FF23FF51 -S3150800A8D024FF25FF26FF27FF28FF29FF2AFF2BFF36 -S3150800A8E02CFF2DFF2EFF2FFF30FF31FF32FF33FFE6 -S3150800A8F034FF35FF36FF37FF38FF39FF3AFF0000D0 -S30D0800A900FFFFFFFFFFFF000047 -S3150800A9080100000001000000000000000102030425 -S3150800A91801020304060708091C000020412600084E -S3150800A9288525000839250008A124000809250008F6 -S3150800A938852400086D240008B1240008C1240008ED -S3150800A948D1240008E924000809022000010100C0F2 -S3150800A958320904000002FF000000070581024000D2 -S3150800A968FF070501024000FF814100086941000808 -S3150800A978B14100080000000000000000514100082D -S3150800A9885D41000839410008000000000000000089 -S3150800A998294100082942000839420008A942000846 -S3150800A9A8C942000889420008694200084942000865 -S3150800A9B8040309041201100100000040501DAC6090 -S3150800A9C80001010203010000E9420008ED420008FF -S3150800A9D8F14200080943000805430008FD4200083B -S30A0800A9E8F54200080419 +S315080055207D007D007D007D007D007D007D007D0085 +S315080055307D00DA000801150129017D007D007D0046 +S3150800554031017D0040015101740000F0ADF9884C2D +S3150800555008BBFE2110230220E1702371A4F8440041 +S3150800556094F84320824B012A0DD0B3F8441008B2B0 +S315080055700028AEDD89B27F48012384F84330BDE8B0 +S31508005580F840FFF72DBF0221FE221020DA701871AD +S31508005590A3F84410EFE70021102301266170237158 +S315080055A061712670E570FFF745FFA071FFF752FF9E +S315080055B0E071FFF74FFF0822000A20726672A67292 +S315080055C0A4F84420CCE70020FF2101222070607057 +S315080055D0E170A4F84420C3E7FE2320200222E370EA +S315080055E02071A4F84420BBE7A76C614DFFF722FFA2 +S315080055F0721C411E3846FFF78BF9002840F0D2800E +S31508005600FE2031220221E8702A71A5F84410A7E786 +S31508005610FE2131230220E1702371A4F844009FE79C +S31508005620FFF708FF73780138984265DDFF250122E8 +S31508005630E570A4F8442071784D4D002940F0BE80ED +S31508005640FFF76EF900288BD1DAE7A06C7168484D30 +S31508005650FFF760F90028D3D0FF220121EA70A5F8E8 +S3150800566044107DE7FEF762FEFF200122E070A4F8F1 +S31508005670442075E70025FF20E07025716571FFF766 +S31508005680D9FE0723A071E57125726572A4F8443026 +S3150800569066E7FF25E5704568A26C002D00F09A8044 +S315080056A01346D04313F8011BAD184219AB4202F05A +S315080056B0010011D028B113F8012B8918AB42C9B2E1 +S315080056C00AD01A465B7812F8010B091853FA81F0CA +S315080056D0531CAB42C1B2F4D10023C4F8071001220F +S315080056E0082122716371A371A4F8441038E7FFF703 +S315080056F0A1FE7278904250DCFE2222210223E2703B +S315080057002171A4F844302BE7FFF794FE7278904293 +S31508005710F2DD1948A16CFEF727FEFF20E0707178CC +S31508005720A36CCA18A2647078411CA4F8441017E741 +S31508005730FF22E27043680121A364A4F844100FE72E +S3150800574000200E4B2071FF226071A07107210820EE +S31508005750E270A364C4F80710A4F8440000E7FE202A +S3150800576000230221E0702371A4F84410F8E600BF74 +S31508005770201F0020231F0020241F002098A10008B6 +S3150800578060780023FF210622E17023716071A371FE +S31508005790E3712372A4F84420E2E671680E48A16416 +S315080057A07278B8E7FF22AE6CEA70FFF743FE013E57 +S315080057B031180123A964A5F84430D1E6A86CB21CB7 +S315080057C0FFF7A6F800283FF41BAF7178AB6CC81832 +S315080057D0A864C5E629467FE7241F002038B5054694 +S315080057E0007804F06FFAC0B2A0F13004E4B2162CC7 +S315080057F01FD8A0F13A02062A1BD9092C88BFA0F1A6 +S315080058003704687888BFE4B204F05CFAC1B2A1F143 +S315080058103003D8B216280CD8A1F13A02062A08D9BC +S31508005820092884BFA1F13700C0B200EB0414E0B226 +S3150800583038BD002038BD00BF38B50546000909281F +S315080058400C460CD905F00F053730092D20700FD9F5 +S3150800585005F1370000236070A370204638BD30304C +S3150800586004F030FA05F00F05C0B2092D2070EFD804 +S3150800587005F1300004F026FAC0B2EBE708B5074B8D +S3150800588007490020187002F019FA00B908BD054842 +S315080058907721BDE80840FFF7E9BC00BFAC1F002030 +S315080058A0B81F0020A0A1000841F6AC73C2F200039D +S315080058B01878D0F1010038BF0020704710B5FFF7FF +S315080058C0D9FD012802D0054C23780BB1002010BD64 +S315080058D0FEF7AAFA0128F9D1207010BDAC1F0020E6 +S315080058E010B50446007804F0EDF9532801D00320DA +S315080058F010BD607804F0DEF90028F8D06078312809 +S3150800590006D0322806D0332814BF0320022010BD43 +S31508005910002010BD012010BDF8B507460230FFF77C +S315080059205DFF0546381DFFF759FF6C1EA4B22818FF +S3150800593005F00103BD1D012CC6B21DD953B1284679 +S31508005940FFF74CFF611E8CB23218012CD6B207F154 +S31508005950080511D92846FFF741FF02353318013CDF +S315080059602846DEB2A4B2FFF739FF611E8CB23018A2 +S315080059700235012CC6B2EDD82846FFF72FFFF243B1 +S31508005980D6B2331A594251EB0300F8BD2DE9F0415E +S315080059900F4605461646002939D0002837D028462E +S315080059A0FFF79EFF032804462DD02846FFF7B4FFCD +S315080059B0002800F08F80012C2FD022D2A81CFFF7D8 +S315080059C00DFF8046281DFFF709FF04023C60A81D4D +S315080059D0FFF704FFA8F10303201899B238600835C9 +S315080059E00CB28EB1002C0FDD00272846FFF7F6FE15 +S315080059F07A1CF05597B20235A742F6DB2046BDE879 +S31508005A00F081022C34D000242046BDE8F0813348CA +S31508005A1040F23121FFF72AFCC1E7A81CFFF7DEFE9A +S31508005A208046281DFFF7DAFE04043C60A81DFFF730 +S31508005A30D5FE04EB00243C6005F10800FFF7CEFE16 +S31508005A40A8F10403201899B238600A350CB2002E62 +S31508005A50DAD0002CD8DD00272846FFF7BFFE7A1CCF +S31508005A60F05597B20235A742F6DB2046BDE8F0812D +S31508005A70A81CFFF7B3FE8046281DFFF7AFFE0406F5 +S31508005A803C60A81DFFF7AAFE04EB00443C6005F144 +S31508005A900800FFF7A3FE04EB00243C6005F10A00AA +S31508005AA0FFF79CFEA8F10503201899B238600C355B +S31508005AB00CB2002EA8D0002CA6DD00272846FFF73A +S31508005AC08DFE7A1CF05597B20235A742F6DB2046C2 +S31508005AD0BDE8F0814FF0FF3496E700BFA0A10008AB +S31508005AE02DE9F041AB4D2C783CB1012C00F020811A +S31508005AF0022C00F09580032C01D0BDE8F081A64F5A +S31508005B00A64E4FF48071304607F50D7202F06CFD13 +S31508005B1097F93A32002BC0F27B8100285DD03046D7 +S31508005B2006F5C07106F58072FFF730FFB0F1FF3F4A +S31508005B30804600F0898100284FDD9948994CFEF788 +S31508005B40D9F94CF6CD404346CCF6CC40A0FB03121F +S31508005B5021460134D308F9D14CF6CD400B700A46DC +S31508005B604446CCF6CC40A0FB0413DB0803EB8301C8 +S31508005B70A4EB410404F1300102F8011D1C46002B78 +S31508005B80F1D18948FEF7B6F98848FEF7B3F9864990 +S31508005B9096F88301FFF750FE854996F88201FFF7CC +S31508005BA04BFE844996F88101FFF746FE824996F82E +S31508005BB08001FFF741FE7C48FEF79CF97F48FEF717 +S31508005BC099F9D6F880017E4A4146FEF7A1FE0028DB +S31508005BD000F012817B48FEF78DF9D7F83C02D7F81A +S31508005BE04022904289D17848FEF784F9FEF798FE5C +S31508005BF00446002800F03A817248FEF77BF973489C +S31508005C00FEF778F9724802F091FB7248FEF772F9CE +S31508005C1000232B70FEF740F9BDE8F041FEF786BB7E +S31508005C205D4E5E4F06F50D724FF48071384602F0F0 +S31508005C30DBFC96F93A22002AC0F2F88098B10022D5 +S31508005C40384607F5C071FFF7A1FE421C00F01A811D +S31508005C50002808DD604B5A68002A40F09280D7F881 +S31508005C60802158601A60D6F83C12D6F8403299421C +S31508005C707FF443AF5648002102F060FB002840F04D +S31508005C80E8805048544EFEF735F95448FEF732F985 +S31508005C907468444B4CF6CD402246CCF6CC40A0FB6B +S31508005CA0021219460133D208F9D14CF6CD400A70D2 +S31508005CB0CCF6CC400A46A0FB0413DB0803EB8301B1 +S31508005CC0A4EB410404F1300102F8011D1C46002B27 +S31508005CD0F1D13548FEF70EF94148FEF70BF932497E +S31508005CE0F078FFF7A9FD3249B078FFF7A5FD3149ED +S31508005CF07078FFF7A1FD30493078FFF79DFD2A48F7 +S31508005D00FEF7F8F82D48FEF7F5F896E80300FEF7D3 +S31508005D1001FE002840F0BB803248FEF7EBF805206C +S31508005D20FEF7DEF82A4802F001FB2C70BDE8F08188 +S31508005D30FEF79EF82C48FEF7DDF82C48FEF7DAF851 +S31508005D40FEF790F822460146214801F0C7FF0646AD +S31508005D5038B12448FEF7CEF82046BDE8F041FEF7F4 +S31508005D60BFB81848FEF7C6F82148FEF7C3F8214819 +S31508005D70FEF7C0F8184902200E604E602870BDE88C +S31508005D80F081D7F880111C688018A14238BF1960C5 +S31508005D90586068E7AC1F0020B81F002010240020B8 +S31508005DA034A300086D1F00206C1F002044A30008C0 +S31508005DB06E1F0020701F0020721F002074A30008A9 +S31508005DC01025002068A200085CA3000878A3000834 +S31508005DD0EC21002090A30008B01F0020C4A20008F0 +S31508005DE0D0A2000860A2000814A2000838A2000881 +S31508005DF070A2000894A200082848FEF77BF806203F +S31508005E00FEF76EF8264802F091FA2C70BDE8F0818C +S31508005E102448FEF76FF80220FEF762F807F50D70C2 +S31508005E2002F084FA00212970BDE8F0811B48FEF7CC +S31508005E3061F82046FEF754F806F50D7002F076FA7A +S31508005E4000232B70BDE8F0811748FEF753F820466B +S31508005E50E2E71248FEF74EF80420FEF741F810482C +S31508005E6002F064FA00222A70BDE8F0810B48FEF7BA +S31508005E7041F80720FEF734F8094802F057FA2C7063 +S31508005E80BDE8F0810548FEF735F80320D2E7074854 +S31508005E90FEF730F803202870BDE8F08160A20008FC +S31508005EA0EC210020ECA2000810A3000868A2000854 +S31508005EB008B518B103680BB11A780AB9092008BDE4 +S31508005EC0D98880888142F9D15878FBF741FA10F0D1 +S31508005ED0010F0CBF0020032008BD00BFF8B50369F9 +S31508005EE00C4601F10902002B00F0C98043691978B4 +S31508005EF01E7B20297DD006F00805052914BF0A4611 +S31508005F00E52205F0FF0725B1A2F14101192940F262 +S31508005F10DB8062725D78202D04F10A0269D0052DB6 +S31508005F2008BFE52527B1A5F14101192940F2CF801F +S31508005F30A5729978202904F10B025AD0052908BFC1 +S31508005F40E52127B1A1F14102192A40F2C380E17285 +S31508005F50DD78202D04F10C024BD0052D08BFE52570 +S31508005F6027B1A5F14102192A40F2B78025731D7998 +S31508005F70202D04F10D023CD0052D08BFE5252FB1D3 +S31508005F80A5F14101192901D82035EDB26573597972 +S31508005F90202904F10E022CD0052908BFE5212FB1CE +S31508005FA0A1F14102192A01D82031C9B2A1739D79FC +S31508005FB0202D04F10F021CD0052D08BFE5252FB1B1 +S31508005FC0A5F14102192A01D82035EDB2E573D97930 +S31508005FD0202904F110020CD0052908BFE5212FB1AC +S31508005FE0A1F14107192F01D82031C9B2217404F152 +S31508005FF011021D7A202D2BD017462E2107F8011BDA +S31508006000197A20296ED006F0100606F0FF052EB183 +S31508006010A1F14107192F01D82031C9B251705F7A11 +S31508006020961C202F5CD02DB1A7F14106192E01D858 +S315080060302037FFB29770997AD61C202950D02DB1F7 +S31508006040A1F14105192D01D82031C9B2D170043208 +S31508006050DF7A2772997FDF7F1E7F5D7F090441EA19 +S315080060600761314341EA052626605D7E197E41EACD +S315080060700526A680DD7D9B7D43EA0521E180002576 +S315080060801570A66936B1E26922B103691BB9002504 +S3150800609000207055F8BD018C4FF6FF729142F6D07C +S315080060A0C769388850B9F2E7E369591E8D42EED2BE +S315080060B0705537F8020F01350028E9D0002102F0A3 +S315080060C0E9FA0028F0D1E2E72032D2B221E72035FA +S315080060D0EDB22DE72031C9B239E72035EDB245E7F3 +S315080060E03246B5E73A46B3E738B504460A46407835 +S315080060F004F134010123FBF73FF908B1032038BD49 +S3150800610094F8322294F833124AF6552342EA0121CA +S315080061100AB2CFF6FF739A4201D0022038BD94F82E +S315080061206C3094F86D5094F86A1094F86B201B0440 +S3150800613043EA05630B4343EA022144F2461321F07E +S315080061407F42C0F254039A42E8D094F8882094F823 +S31508006150895094F8861094F88700120442EA05627A +S315080061600A4342EA002121F07F40C01A18BF0120E5 +S3150800617038BD00BF2DE9F04103681C78303C092C76 +S31508006180154602D85A783A2A18D000200860B24C28 +S315080061902468002C25D00C602178C1B16078FBF703 +S315080061A0D7F8C20713D4002D26D000F00400C2B2D7 +S315080061B0002A14BF0A200020BDE8F081023300221D +S315080061C003600A60002CE2D00B20BDE8F0810020B5 +S315080061D020706070FBF7A4F8C30705D50320BDE857 +S315080061E0F0810C20BDE8F0814DB100F00400C3B287 +S315080061F02BB10A20BDE8F0812846BDE8F0810021D0 +S315080062002046FFF771FF012807D00025032800F074 +S31508006210B980D0B10D20BDE8F08194F8F621002AA6 +S31508006220F8D094F8FC0194F8FD1194F8FA3194F832 +S31508006230FB51020442EA016040EA030141EA0525EE +S3150800624020462946FFF750FFE0E794F8402094F8E7 +S315080062503F3043EA0220B0F5007FDBD194F84B10BB +S3150800626094F84A2052EA01220DD194F85A1094F86B +S315080062705B0094F8583094F85920090441EA006004 +S31508006280034343EA022294F84400E261411E0129CD +S31508006290E070BFD894F84130A370002BBAD0591ECD +S315080062A01942B7D194F8451094F8466041EA062693 +S315080062B0B1B216F00F0F2181ACD194F8487094F85A +S315080062C0476056EA07260FD194F856C094F85780C7 +S315080062D094F8546094F855704FEA0C4E4EEA086CE0 +S315080062E04CEA060646EA072694F843E094F8427014 +S315080062F057EA0E278ED000FB02FC07EB111060440C +S31508006300864287D3361AB6FBF3F3002B82D040F6C3 +S31508006310F576B34240F2C08006F57046B34200F205 +S315080063209F8002260233EF194019A361256267622E +S31508006330E06200293FF46EAF6744022EA76200F0C0 +S315080063408980032101FB03F603F0010303EB5600E2 +S31508006350012600F2FF13B2EB532FFFF45BAF0020C8 +S315080063604FF0FF32032E2261E0600ED03B4A2670C2 +S315080063701388591C00208BB21380E3802063207198 +S31508006380BDE8F0810120BDE8F08194F8651094F825 +S315080063906430607143EA01202A186261607804F16A +S315080063A034010123FAF7E8FF0028DFD194F8331205 +S315080063B094F832224AF6552342EA012001B2CFF672 +S315080063C0FF739942D2D194F8362094F8370094F89E +S315080063D0343094F83510120442EA0060184345F246 +S315080063E0522340EA0121C4F261139942BED194F8BE +S315080063F01A2294F81B0294F8183294F81912120407 +S3150800640042EA0060184347F2722340EA0121C6F2C5 +S3150800641041139942AAD194F8227294F81E5294F81C +S31508006420238294F81FE294F8202294F81C3294F8F8 +S31508006430210294F81D123F042D0447EA086745EA2D +S315080064400E653A432B4342EA002043EA0121E06005 +S3150800645021618BE758007CE79827002094270020C5 +S315080064600233EF194019A36125626762E0620029C9 +S315080064707FF4D0AE94F8626094F8637094F8601074 +S3150800648094F86100360446EA0766314341EA00207B +S31508006490A062032698005CE7012643E7F8B50446A0 +S315080064A0007900B9F8BD256B607804F134063146E9 +S315080064B02A460123FAF788FF28BB626A20719542AB +S315080064C01FD3E369981885421BD2E778012F18D99C +S315080064D0F9070CD5ED18607802E0E16960786D1867 +S315080064E0012331462A46FAF76FFFE369013FED18A3 +S315080064F0314601232A466078013FFAF765FF012FE6 +S31508006500EBD10020F8BD0120F8BD00BF2DE9F84FFA +S315080065100546FFF7C3FF044654B92B78032B09D069 +S31508006520002168780A46FAF779FF003018BF01207B +S31508006530BDE8F88F68790028F2D005F134012C639C +S3150800654005F50D760F463A4602F8014B7C70571C46 +S31508006550B742F8D1EB682A6985F820324FF0550B17 +S3150800656061204FEA134C4FEA136E85F81C22522716 +S3150800657041247226C2F3072A4FEA1249C3F30728B1 +S31508006580120E85F832B24FF0AA0B85F8360085F858 +S315080065901B0285F81F2285F833B285F8347085F812 +S315080065A0357085F8374085F8186285F8196285F8D8 +S315080065B01A4285F81DA285F81E9285F8218285F86B +S315080065C022C285F823E268786A690123FAF7FCFE95 +S315080065D000216971A4E700BF38B5036B8B420446F6 +S315080065E00D460FD0FFF75AFF08B1012038BD607875 +S315080065F004F134012A460123FAF7BEFE0028F4D135 +S31508006600256338BD002038BD0129F8B50C46054676 +S315080066100CD98369994209D20178022946D00329FF +S3150800662028D0012904D04FF0FF30F8BD0120F8BD6D +S31508006630426A04EB540602EB5621FFF7CDFF002809 +S31508006640F1D1F005C70D696AEB190136284601EB49 +S31508006650562193F83470FFF7BFFF0028E3D1F605FB +S31508006660F60DAD19E30795F8342047EA02202FD531 +S315080066700009F8BD436A03EBD411FFF7ADFF002804 +S31508006680D1D16406E20DA818044690F8372090F890 +S31508006690361090F8350094F83430120642EA014173 +S315080066A041EA0020184320F07040F8BD436A03EB26 +S315080066B01421FFF791FF0028B5D12406E20DA91889 +S315080066C00C4691F8343091F8350043EA0020F8BDBD +S315080066D00105080DF8BD00BF70B50C468168C48079 +S315080066E00129054603D000688369994201D302202F +S315080066F070BDB1B90178032910D001890023A142E0 +S31508006700EB60F4D9826A02EB1411296104F00F04D4 +S3150800671000EB441034306861002070BD816A00299E +S31508006720EBD086783601B44208D210E00128DED9CB +S31508006730286883699942DAD2A64208D8FFF764FF27 +S31508006740A41B421C0146A4B2F0D1012070BD836986 +S31508006750E960023B023999423DBF8278C36A02FB6F +S315080067600131002101EB14122A61CFE7F0B50129A6 +S3150800677083B00C46054602D98369994202D30220A2 +S3150800678003B0F0BD0178022927D0032905D00129D5 +S3150800679037D0022001222A71F2E7436A019203EBFD +S315080067A0D411FFF719FF019A0028F3D16406E70D03 +S315080067B0EB191C4693F83760310601F070473A43E7 +S315080067C0C2F30727160C110E83F8342083F83570A8 +S315080067D083F8366083F83710DCE7436A019203EBE7 +S315080067E01421FFF7F9FE019A0028D3D12406E10DFA +S315080067F06918C2F307230C4681F8342081F835302E +S31508006800C8E7436A019204EB540603EB5621FFF7E7 +S31508006810E3FE019A0028BDD1F005C10D14F001046C +S3150800682020D06B18D0B293F8341001F00F0141EA6A +S315080068300010C0B2696A83F83400013601232B714F +S31508006840284601EB56210192FFF7C6FE019A002859 +S31508006850A0D1F605F10D44B1C2F307126E1886F8F9 +S31508006860342097E7D0B26B18E4E76E18C2F3032218 +S3150800687096F8343023F00F010A43F0E7F8B50546D9 +S315080068800F4601BBC6688369CEB19E4228BF012662 +S31508006890344601349C4202D3012E12D902242846DA +S315080068A02146FFF7B1FEB8B1431C20D001281CD001 +S315080068B0B44206D0AB6901349C42EDD2EFE701261B +S315080068C0E6E70020F8BDFFF79FFE01280DD9AB6962 +S315080068D098420BD33E46DBE7284621466FF07042C6 +S315080068E0FFF744FF30B1012801D00120F8BD4FF071 +S315080068F0FF30F8BD4FB92869EC60411C03D0411E32 +S31508006900012229616A712046F8BD28463946224681 +S31508006910FFF72CFF0028EED0E5E700BF2DE9F0478A +S31508006920C5880446681C85B20E4615B90420BDE81C +S31508006930F0872369002BF9D015F00F0708D02068D7 +S3150800694000EB47123432E58062610020BDE8F0872B +S31508006950E16820685A1C2261F9B183785A1E12EA46 +S315080069601512EDD1FFF750FE0128804619D9B0F16E +S31508006970FF3F23D020688369984515D2A8F10206FF +S315080069808269C4F80C80931E9E423DBF8178C36A13 +S3150800699001FB063600262661D2E70389AB42C5D934 +S315080069A0CEE70220BDE8F087002EBFD0E168FFF7EA +S315080069B065FF804628B90720BDE8F0870120BDE8B5 +S315080069C0F0870128EDD0B0F1FF3FF7D02068FFF738 +S315080069D065FD0028F2D12668014606F1340306F55E +S315080069E00D701A4602F8011B5970531C8342F8D1E0 +S315080069F022689069A8F10206831E9E423DBFD36AAB +S31508006A00917801FB0633002313634FF000094FF01A +S31508006A10010A0EE082F804A02068FFF73FFD09F19D +S31508006A2001090028CAD12268116B481C10635FFA55 +S31508006A3089F9917849451046ECD8126BC9EB0203DF +S31508006A4003639DE72DE9F04F85B0FF220192814649 +S31508006A501646D9F80000D9F81010FFF7BDFDC8B9D9 +S31508006A60D9F814402578002D00F09081E37AE52DB9 +S31508006A7003F03F0107D003F00802D3B2002B00F061 +S31508006A80E2800F290BD0FF2648460021FFF746FF74 +S31508006A900028DED08346584605B0BDE8F08FD9F801 +S31508006AA01C70002FF0D005F04000C2B2002A00F09A +S31508006AB06981667BB9F806100196A9F8201005F0D9 +S31508006AC0BF0594F80D80019B9845DCD12178A07804 +S31508006AD0627821F04006731E03EB430A42EA00205F +S31508006AE003EB8A0B01F0FEFDBBF1FE0F824600F2B6 +S31508006AF06C8137F81B0001F0F5FD82450BF10106A4 +S31508006B0040F063812179E07840EA0120BAF1000F6C +S31508006B1040F05F814FF6FF72904240F05681A179AE +S31508006B20637943EA0120BAF1000F40F061814FF61C +S31508006B30FF72904240F04981207AE17941EA0020CB +S31508006B40BAF1000F40F070814FF6FF73984240F09B +S31508006B503C81A27A607A40EA0220BAF1000F40F03E +S31508006B6055814FF6FF71884240F02F81E27BA37B67 +S31508006B7043EA0220BAF1000F40F072814FF6FF7126 +S31508006B80884240F02281607C227C42EA0020BAF1E9 +S31508006B90000F40F057814FF6FF73984240F0158179 +S31508006BA0E17CA07C40EA0120BAF1000F40F0748134 +S31508006BB04FF6FF72904240F00881617D237D43EADB +S31508006BC00120BAF1000F40F059814FF6FF7290424A +S31508006BD040F0FB80E07DA17D41EA0020BAF1000F7C +S31508006BE040F085814FF6FF73984240F0EE80627E52 +S31508006BF0207E40EA0220BAF1000F40F069814FF684 +S31508006C00FF71884240F0E180627F237F43EA0220D9 +S31508006C10BAF1000F40F04E814FF6FF71884240F0FE +S31508006C20D480E07FA27F42EA0020BAF1000F40F04C +S31508006C30B0804FF6FF73984240F0C780013DEEB230 +S31508006C40CDF8048020E70F293FF429AF002E57D14D +S31508006C504FEAC51B94F801A094F8028094F803C083 +S31508006C6027796679A179E27902914BEA550505EB10 +S31508006C700A0E5FFA8EFB4FEACB1545EA5B0A58FA0D +S31508006C808AF85FFA88FE4FEACE1545EA5E085CFA8E +S31508006C9088FC5FFA8CFB4FEACB1545EA5B0E57FA80 +S31508006CA08EF7FFB2FD0145EA570756FA87F6F6B2A0 +S31508006CB0F50145EA5605029E039256FA85F5EDB2A8 +S31508006CC0EE0146EA5505039E217A627AA37A56FAB8 +S31508006CD085F5EDB2EE0146EA550551FA85F1C9B2D8 +S31508006CE0CD0145EA510152FA81F2D2B2D10141EA07 +S31508006CF0520253FA82F3019AD9B291423FF4CAAECC +S31508006D00D9F818304FF0FF36A9F82060D97ACA07A3 +S31508006D103FF5B9AE21781A7891427FF4B4AE61781E +S31508006D205A7891427FF4AFAEA1789A7891427FF46F +S31508006D30AAAEE178DA7891427FF4A5AE21791A797C +S31508006D4091427FF4A0AE61795A7991427FF49BAE65 +S31508006D50A1799A7991427FF496AEE179DA799142EE +S31508006D607FF491AE217A1A7A91427FF48CAE617AD9 +S31508006D705A7A91427FF487AEA17A9B7A99423FF478 +S31508006D8089AE80E6B5427FF47EAE9AE64FF0040BF4 +S31508006D9081E601F0A7FCFF2E824616D037F81600CA +S31508006DA001F0A0FC013682450FD1217801F04000A0 +S31508006DB0C2B2002A3FF442AFBAF1000F3FF43EAF29 +S31508006DC037F81630002B3FF439AFCDF80480FF268C +S31508006DD05AE601F087FCFF2E8246F6D037F81600F1 +S31508006DE001F080FC82450BF102063FF498AEECE711 +S31508006DF001F078FCFF2E8246E7D037F8160001F03E +S31508006E0071FC013682453FF497AEDEE701F06AFC75 +S31508006E10FF2E8246D9D037F8160001F063FC0136FA +S31508006E2082453FF4A3AED0E701F05CFCFF2E824614 +S31508006E30CBD037F8160001F055FC013682453FF4F1 +S31508006E4088AEC2E701F04EFCFF2E8246BDD037F869 +S31508006E50160001F047FC013682453FF4A1AEB4E7BF +S31508006E6001F040FCFF2E8246AFD037F8160001F03D +S31508006E7039FC013682453FF486AEA6E701F032FCBE +S31508006E80FF2E8246A1D037F8160001F02BFC0136FA +S31508006E9082453FF49FAE98E701F024FCFF2E824618 +S31508006EA093D037F8160001F01DFC013682453FF4F1 +S31508006EB084AE8AE701F016FCFF2E824685D037F8A5 +S31508006EC0160001F00FFC013682453FF4AAAE7CE7B6 +S31508006ED001F008FCFF2E82463FF477AF37F816001C +S31508006EE001F000FC013682453FF48EAE6DE701F0F5 +S31508006EF0F9FBFF2E82463FF468AF37F8160001F01B +S31508006F00F1FB013682453FF472AE5EE72DE9F04F9C +S31508006F100B782F2B83B08946054600F074815C2BCD +S31508006F2000F071810027AF6099F800001F2802D889 +S31508006F3072E119F8010F2F28FBD05C28F9D01F2819 +S31508006F40EE6940F22E812F282CD00121A6F1020BE2 +S31508006F50CA46012401F09EFB00B37F2809D82228DF +S31508006F601CD0B24A01E0884218D012F8011F002945 +S31508006F70F9D12BF8020F1AF8010F631C1F2840F2EB +S31508006F8012812F2810D05C280ED0B3F5807F05D04B +S31508006F9001211C4601F07EFB0028DED1062003B045 +S31508006FA0BDE8F08F0024012399444FF0000B002C14 +S31508006FB0F4D006EB4400621E30F8023D202B02F0A6 +S31508006FC0010101D02E2B1BD1013CE7D039B130F895 +S31508006FD0022D202A01D02E2A12D1013CDED030F80B +S31508006FE0023D202B01D02E2B0AD130F8021D013C80 +S31508006FF02029224601D02E2902D1541EEFD1CDE7F1 +S31508007000A86926F81470202306EB440E0370437013 +S315080070108370C370037143718371C37103724372C2 +S315080070208372B11E4FF0000A01E00AF1010A31F835 +S31508007030020F2028F9D02E28F7D0BAF1000F01D078 +S315080070404BF0030B7346621E33F8028DB8F12E0F10 +S3150800705002F0010112D0144682B121B133F8022D93 +S315080070602E2A09D10AE033F8021D2E2906D033F854 +S31508007070022D013C2E2A01D0013CF4D1002208231E +S3150800708090460AF1010A88B3202821D02E281DD05F +S315080070909A4222D2544500F08A807F2800F29180D5 +S315080070A02B2800F0A280DFF888E102E0884200F091 +S315080070B09C801EF8011F0029F8D1A0F14101192969 +S315080070C000F2B88048F00208C0B291E054456ED08C +S315080070D04BF0030B36F81A00D3E70B2B00F0B580FC +S315080070E0544566D0A2454BF0030B62D9AA691078BD +S315080070F0E52800F08480082B04BF4FEA880C5FFA65 +S315080071008CF808F00C030C2B76D008F00300032843 +S3150800711072D00BF00201C8B250B908F0030CBCF1EA +S31508007120010F08BF4BF0100B042B08BF4BF0080BE0 +S3150800713082F80BB028460021FFF7CEFAF0B92846A8 +S31508007140FFF780FCAA69D37AD0B903F00403D9B251 +S3150800715000297FF424AF6B69D87A00F01002D1B207 +S31508007160002970D02C68DE7E2178987E032940EAB3 +S3150800717006220FD0AA6099F80000DCE6A969CB7A46 +S3150800718004287FF40CAF03F00402D1B2002908BF2B +S31508007190052004E75C7D1B7D43EA042642EA064295 +S315080071A0E8E70024012399444FF0040BFFE60B2B74 +S315080071B04BD04FEA880C5FFA8CF8A2460B230822BC +S315080071C088E700210192009301F064FA019A009B76 +S315080071D040B34AF2D031C0F6000108184BF0020B52 +S315080071E010F8800C00287FF45BAF4BF0030B5F2090 +S315080071F0A969885401326DE74BF0020B89E705212E +S315080072001170AA6977E7002709F10109AF6099F8B3 +S3150800721000001F283FF68FAE28463946FFF75CFA6E +S315080072206F61BCE64BF0020BDFE700BFBCA30008AA +S31508007230C8A30008A0F16101192902D8203848F02E +S315080072400108C0B2D4E70520A9E64BF0030B0B23CF +S315080072504CE700BFF8B5018CC5884FF6FF73994215 +S3150800726008BF29460446FFF737FA0346C0B9E5279B +S31508007270012621692068FFF7AFF903460146204633 +S315080072805BB96269177022681671E288AA4207D24A +S31508007290FFF744FB03460028EBD0042B08BF022364 +S315080072A01846F8BD2DE9F04FFF25044683B02E4653 +S315080072B004204FF000084FF6FF772169002900F0F7 +S315080072C0E7802068FFF788F9A0B962691378002B70 +S315080072D000F0E280E52BD17A05D02E2B03D001F001 +S315080072E03F0108290BD1FF2620460021FFF716FB90 +S315080072F00028E2D00021216103B0BDE8F08F0F29F4 +S3150800730040F0CC8003F04000C1B2002900F0BC80F8 +S31508007310E688557B268403F0BF03507BA842E2D15A +S31508007320117892F802C05578E66901F03F010139F3 +S3150800733001EB410E01EB8E0EBEF1FE0F45EA0C2560 +S3150800734000F2118126F81E5092F8049092F803C0B4 +S315080073500EF101014CEA092C002D40F0FA80BC45DB +S3150800736040F0018192F806C092F805E04EEA0C2C2E +S31508007370002D40F0FB80BC4540F0F58092F808C02F +S3150800738092F807E04EEA0C2C002D40F0F680BC453A +S3150800739040F0E98092F80AC092F809E04EEA0C2C0F +S315080073A0002D40F0F180BC4540F0DD8092F80FC01A +S315080073B092F80EE04EEA0C2C002D40F0F380BC4506 +S315080073C040F0D18092F811C092F810E04EEA0C2CE9 +S315080073D0002D40F0E080BC4540F0C58092F813C00F +S315080073E092F812E04EEA0C2C002D40F0E280BC45E3 +S315080073F040F0B98092F815C092F814E04EEA0C2CC9 +S31508007400002D40F0DD80BC4540F0AD8092F817C0F5 +S3150800741092F816E04EEA0C2C002D40F0D880BC45B8 +S3150800742040F0A18092F819C092F818E04EEA0C2CA8 +S31508007430002D40F0D380BC4540F0958092F81DC0E1 +S3150800744092F81CE04EEA0C2C002D40F0CE80BC458C +S3150800745040F0898092F81FC092F81EE04EEA0C2C84 +S31508007460002D7ED0FF297ED026F811C00131127872 +S3150800747002F04005EAB21AB1FF2974D026F8118045 +S31508007480013BDEB205462FE7B3427FF42CAF44E753 +S3150800749000283FF431AF2DE704202BE7002E54D106 +S315080074A092F801A092F8029092F8038092F804C02C +S315080074B057799679D1794FEAC31B4BEA530353445C +S315080074C0DBB24FEAC31A4AEA530359FA83F3DBB22B +S315080074D04FEAC31949EA530358FA83F3DBB24FEA72 +S315080074E0C31848EA53035CFA83F3DBB24FEAC31EB8 +S315080074F04EEA530357FA83F7FBB2DF0147EA530311 +S3150800750056FA83F6F3B2DE01009146EA5303009E6B +S31508007510117A56FA83F3DBB2DE01019146EA530388 +S31508007520019E517A927A56FA83F3DBB2DE0146EA75 +S31508007530530351FA83F1CBB2D90141EA530352FA04 +S3150800754083F2D1B2A9423FF4D7AE4FF6FF73238434 +S31508007550D2E6FF2907D026F811C065460EF10201CA +S3150800756000E7BC4583D00546FF26BDE6FF29FAD0CD +S3150800757026F811C06546013100E7FF29F3D026F841 +S3150800758011C06546013105E7FF29ECD026F811C080 +S31508007590654601310AE7FF29E5D026F811C0654698 +S315080075A001311BE7FF29DED026F811C065460131F7 +S315080075B008E7FF29D7D026F811C06546013119E733 +S315080075C0FF29D0D026F811C0654601311EE7FF29EC +S315080075D0C9D026F811C06546013123E7FF29C2D074 +S315080075E026F811C06546013128E7FF29BBD026F8E1 +S315080075F011C0654601312DE7012970B50D460446CF +S3150800760002D98369994201D3022070BD0126294611 +S315080076102046FEF7F9FF034629460022054620467E +S3150800762083B1012BF0D001330ED0FFF79FF8002865 +S31508007630EBD12069411C02D0411C21616671A26907 +S315080076409542E4D3002070BD012070BD30B40C789B +S3150800765004704D7845708C788470CD78C5700C7937 +S3150800766004714D7945718C798471CD79C5710C7A1F +S3150800767004724D7A4572897A052B82B081720AD9CD +S3150800768011885C0844EAC33311FA83F532F8021FFD +S31508007690ABB20029F5D1072203F00F0404F1300537 +S315080076A0392D88BF04F137050DF80250013A1B0938 +S315080076B0F2D102A98D187E2405F8084C002A5BD061 +S315080076C00178202908D0D407054629D40546012380 +S315080076D015F8014F202C23D1C3F10705072A05F019 +S315080076E0010526D802A98C18013214F8084C591C31 +S315080076F00729C45408D8002D2FD0072A36D92023A5 +S3150800770043540131072928D902B030BC704715F80F +S31508007710011F2029E0D015F8014F0133202CDBD0BA +S3150800772001339342F3D1C3F10705072A05F0010592 +S31508007730D8D92024DBE702AB9C18013214F8084C90 +S315080077404B1C072A44540FD802A98C18013214F886 +S31508007750084C591C0729C454D6D8072AEBD9202423 +S315080077604B1C072A4454EFD92024F2E702ACA3188D +S31508007770013213F8083CC3E71346ADE72DE9F04F8D +S315080077808569C669697AEF792A7895F801B095F816 +S3150800779002A095F8039095F8048095F805C095F829 +S315080077A006E0EB7A87B004460091A97A287A019117 +S315080077B08DF81370009F8DF8140001988DF81570D8 +S315080077C0DF078DF80C208DF80DB01A468DF80EA03F +S315080077D08DF80F908DF810808DF811C08DF812E095 +S315080077E08DF816008DF8173057D50023EB724FF039 +S315080077F00108E36137E0FFF725F908F101021FFAEE +S3150800780082F8074632464346284603A9002F38D150 +S31508007810FFF71CFF39462046FEF75EFF074620465F +S31508007820002F2ED1FFF70EF908F1010807461FFAB7 +S3150800783088F832464346284603A917BBFFF706FFD2 +S3150800784039462046FEF748FF07462046CFB9FFF7D8 +S31508007850F9F808F1010107461FFA81F888B9B8F165 +S31508007860640F00F094804346324603A92846FFF782 +S31508007870EDFE20460021FEF72FFF07462046002F83 +S31508007880B9D0042F03D0384607B0BDE8F08F9DF86D +S315080078901770EF729DF81720E66102F00200C3B276 +S315080078A0002B5DD10126B04620460021FEF714FFC5 +S315080078B007460028E7D1054605E03D46FFF72EF8BE +S315080078C007460028DFD121692068FEF785FE0746AE +S315080078D0013501212046002FD5D162691378E52BA1 +S315080078E001D0002BE9D1AE42E8D108F1FF381FFAE2 +S315080078F088FBBBF1000F4CD120682169FEF76CFEAE +S3150800790007460028BFD16369394603F120001A46A5 +S3150800791002F8011B5970531C8342F8D1A0696369A8 +S315080079200178197042785A7081789970C278DA703D +S315080079300179197142795A7181799971C279DA7125 +S31508007940017A1972427A5A72807A9872A1696369C1 +S31508007950CA7A02F018001873216801230B7192E79E +S31508007960318800299ED00020471CB8B236F810206E +S31508007970002AF9D14EF64F461930C4F6C46686FB7E +S315080079800021C317C3EBA1061FFA86F88CE7072761 +S3150800799079E7E788CBEB0701204689B2FEF79CFE1C +S315080079A0074600287FF46FAFA3691A7893F801A0F9 +S315080079B093F8029093F8038093F804C093F805E0CF +S315080079C09F79DE791D7A587A997AD30143EA520269 +S315080079D002EB0A03DBB2DA0142EA530359FA83F2ED +S315080079E0D3B2DA0142EA530358FA83F2D3B2DA0180 +S315080079F042EA53035CFA83F2D3B2DA0142EA53034A +S31508007A005EFA83F2D3B2DA0142EA530357FA83F7EE +S31508007A10FBB2DA0142EA530756FA87F6F3B2DA01FD +S31508007A2042EA530755FA87F5EEB2F30143EA5602DE +S31508007A3050FA82F0C7B2FD0145EA570651FA86FAAE +S31508007A405FFA8AF80F264FF0FF0A4FF6FF790125ED +S31508007A505F468BE083F803A083F804A04FF6FF7017 +S31508007A60484500F0B68031F812004FEA102C013272 +S31508007A70587183F806C0002840F0B18083F807A043 +S31508007A8083F808A04FF6FF70484500F0B68031F835 +S31508007A9012004FEA102C0132587283F80AC00028E7 +S31508007AA040F0B18083F80EA083F80FA04FF6FF7060 +S31508007AB0484500F0B68031F812004FEA102C013222 +S31508007AC0187483F811C0002840F0B18083F812A01A +S31508007AD083F813A04FF6FF70484500F0B68031F8DA +S31508007AE012004FEA102C0132187583F815C00028C9 +S31508007AF040F0B18083F816A083F817A04FF6FF7000 +S31508007B00484500F0B68031F812004FEA102C0132D1 +S31508007B10187683F819C0002840F0B18083F81CA0B5 +S31508007B2083F81DA04FF6FF70484500F0B68031F87F +S31508007B3012004FEA102C0132987783F81FC00028EC +S31508007B4040F0B18047F0400E5FFA8EFE83F800E001 +S31508007B50236820461D710021FEF7E0FE002840F04C +S31508007B60AB80013FBFB2002F3FF4C6AE2068216943 +S31508007B70FEF732FD0246002A40F09E805FFA87FE35 +S31508007B800EF1FF306369E1691A7300EB400B00EBF5 +S31508007B908B0C9A76DA7683F80D80DE7231F81C0043 +S31508007BA04FEA102B0CF10102587083F802B0002836 +S31508007BB03FF450AF48453FF44DAF31F812004FEA55 +S31508007BC0102B0CF10202D87083F804B000287FF459 +S31508007BD047AF83F805A083F806A04FF6FF7048451F +S31508007BE03FF44CAF31F812004FEA102C0132D8712D +S31508007BF083F808C000287FF447AF83F809A083F804 +S31508007C000AA04FF6FF7048453FF44CAF31F8120012 +S31508007C104FEA102C0132987383F80FC000287FF4BE +S31508007C2047AF83F810A083F811A04FF6FF704845B8 +S31508007C303FF44CAF31F812004FEA102C0132987419 +S31508007C4083F813C000287FF447AF83F814A083F89D +S31508007C5015A04FF6FF7048453FF44CAF31F81200B7 +S31508007C604FEA102C0132987583F817C000287FF464 +S31508007C7047AF83F818A083F819A04FF6FF70484558 +S31508007C803FF44CAF31F812004FEA102C0132187746 +S31508007C9083F81DC000287FF447AF83F81EA083F839 +S31508007CA01FA04FF6FF7048453FF44CAF31F812104D +S31508007CB000293FF447AF49E70746E4E508B10B203A +S31508007CC07047054B1A6802B1107009B10020087098 +S31508007CD019600020704700BF982700202DE9F0435F +S31508007CE08FB005460191164668B10023036005A9C1 +S31508007CF001A802F01E02FEF73DFA044628B1204606 +S31508007D000FB0BDE8F0830924F9E7564801990C90AD +S31508007D1002AA05A80B92FFF7F9F806F01F080A9FB2 +S31508007D2030B116F01C0F01D0042843D00446E6E70C +S31508007D30002F58D016F01C0F32D1F97A01F0100333 +S31508007D40D8B200284DD106F00202D3B20BB1CB0748 +S31508007D503ED406F00806F1B2059B09B148F02008A2 +S31508007D601E6B2F62EE6185F806801978F87EBA7E5A +S31508007D70032942EA00222DD02A61B97F97F81FE02D +S31508007D803E7F787FDA882B600B0443EA0E61314325 +S31508007D90002341EA0020E860AB60AB61AA80AEE749 +S31508007DA0F87A10F0110F13D106F00402D6B24EB1CC +S31508007DB00824A4E705A8FFF7E1FC48F008080A9F8D +S31508007DC00028B3D108F00806F1B271B9059BC7E7D8 +S31508007DD0072494E77E7D387D40EA062142EA01427F +S31508007DE0CAE704248BE7062489E7F9F747FB00224C +S31508007DF0060C010EC0F3072C059BB8733E7487F872 +S31508007E000FC07974FA723A777A77BA77FA771A7866 +S31508007E10F87EBE7E032A46EA00261BD000210120F2 +S31508007E20B976F976397579751871002E96D018468F +S31508007E303146D3F83090FFF7DFFB00287FF476AFA2 +S31508007E400598013EC6604946FEF7C6FB059B002815 +S31508007E5084D06BE7797D387D40EA012246EA0246FE +S31508007E60DCE700BF942500202DE9F04F9B46002350 +S31508007E7083B0CBF8003007460D461646FEF718F8CD +S31508007E80814630B9B879020607D4C00708D44FF03E +S31508007E900709484603B0BDE8F08F4FF00209F8E736 +S31508007EA0BC68F9680A1B964234BFB0469046B8F1DA +S31508007EB0000FEED007F1240AE305DA0D002A35D1C2 +S31508007EC03B689878411E01EA542212F0FF0260D0FE +S31508007ED07869996902380239884268D3B97961F0B4 +S31508007EE07F02BA714FF00209D3E7BA69B24219D0D4 +S31508007EF0B87900F04001C8B260B1587851460123FC +S31508007F00F9F762FA002840F08580BA793B6822F0D2 +S31508007F104001B9715878514632460123F9F72CFACF +S31508007F20002877D1BC68BE61E005C20DC2F50071B4 +S31508007F30414528BF41462032BA182B46E9B12C469E +S31508007F40167904F8016B6B18ED435819161D9C42F7 +S31508007F5000F0010510D02DB1567904F8016B561DB5 +S31508007F609C4209D07278204600F8012BB5786570D6 +S31508007F70441C02369C42F5D1BC68DBF800506418F4 +S31508007F806A18B8EB0108BC601D46CBF8002093D1EF +S31508007F907FE7002C45D1386901289FD9411C39D083 +S31508007FA03B687861996902380239884296D299788D +S31508007FB0DE6A01FB0066002E90D05FEA582416445C +S31508007FC093D01019884288BFC2EB01045878294615 +S31508007FD0E3B23246F9F7D0F9BB79E0B903F04001CC +S31508007FE0CBB29BB1BA69901B84420FD905EB4023EB +S31508007FF007F1230103F5007648781A4602F8010BC3 +S3150800800088785870531C0231B342F5D161026B1857 +S31508008010BC68B2E7BB7963F07F00B8714FF001091D +S3150800802037E7796901921846FEF7EEFA019AB3E73F +S315080080302DE9F04F9846002383B0C8F8003004466F +S315080080400E461546FDF734FF074638B9A1790806E6 +S3150800805008D401F00202D0B230B90727384603B077 +S31508008060BDE8F08F0227F9E7E068A268C54206D3A3 +S31508008070904241F0200138BFE260A171EEE7002D81 +S31508008080F6D004F1240ACDF804A004F50979D1053F +S31508008090C90D002937D1236893F802A00AF1FF30E9 +S315080080A000EA522111F0FF0A0DD1002A40F0CC80D7 +S315080080B02069002800F0D380012812D0411C00F066 +S315080080C0BD8023686061A27902F04000C1B2002930 +S315080080D040F0A78061699A69A1F1020B901E834559 +S315080080E052D3A37963F07F00A0710227B6E7A1698E +S315080080F0A268594503D0E0688242C0F0B980D3052A +S31508008100C4F818B0D90DC1F50070203104EB010B85 +S31508008110A84228BF28460BF1040320B303EB000A44 +S31508008120DA4331780BF10503524453458BF80410B2 +S3150800813002F00102314615D03AB171780BF1060307 +S315080081408BF80510711C53450CD091F801E01A46BE +S3150800815002F801EB91F802C083F801C0531C023102 +S315080081605345F2D1A268A37943F04001A171D8F82A +S31508008170001012180B182D1AA2600644C8F8003011 +S3150800818085D1E068A17973E79978DA6A0BFB012053 +S315080081900028A6D05FEA552C0AEB000BA7D00AEBFD +S315080081A00C00884288BFCAEB010C5878CDF800C08D +S315080081B05FFA8CF331465A46F9F706F9DDF800C03E +S315080081C000283BD1A269CBEB020BDC4525D94FEA47 +S315080081D04B21019B705CDA4303F8010B09EB0200A3 +S315080081E04B4500F00102314413D042B111F8010F9A +S315080081F0DDF804A001334B458AF8010009D0487818 +S315080082001A4602F8010B88785870531C02314B4500 +S31508008210F5D1A17921F04003A3714FEA4C20A26859 +S31508008220A5E75878A26901990123F9F7CDF828B985 +S31508008230A279236822F04000A0714BE7A77967F07E +S315080082407F02A271012709E718466169FEF716FB46 +S3150800825000287FF431AFA268E068A17908E71846DC +S315080082605146FEF70BFB206100287FF425AFF2E7A5 +S31508008270587801995A460123F9F77EF80028DDD186 +S31508008280A2683CE770B50446FDF712FEE0B9A3798B +S3150800829003F02002D1B2B9B103F04000C3B26BB10A +S315080082A02146A26951F8240B01234078F9F78CF886 +S315080082B0002839D1A67926F04002A2712068E16922 +S315080082C0FEF78AF9064606B170BD256AE97A41F0D5 +S315080082D02003EB72E0682877A289110A6977E38997 +S315080082E0AB77E07BE87723691A0C110AC3F30720FA +S315080082F0AB762A756975E876F9F7C0F8020C030EAD +S31508008300C0F307212A766B76A875E975AE74EE7404 +S31508008310A079216820F020020123A2710B71206840 +S31508008320BDE87040FEF7F2B80120CDE710B5044667 +S31508008330FFF7A8FF00B9206010BD00BFF8B50446D6 +S315080083400D46FDF7B5FD0646002846D1A379180661 +S3150800835045D4E268AA4205D203F00200C1B2002958 +S3150800836008BF15460023A268A360002D35D02068F3 +S3150800837087787F023AB1013A691EB1FBF7F1B2FB81 +S31508008380F7F3994272D22269002A75D06261002AEF +S3150800839028D1A1681546C805C30D002B76D0A26959 +S315080083A0AA4273D0A77907F04001C8B200284ED177 +S315080083B004F124072368394658782A460123F8F732 +S315080083C0DBFF00283DD1A168E068A561814204D998 +S315080083D0A279E16042F02003A3713046F8BD022677 +S315080083E03046F8BDBD4253D9236812E0FEF746FA77 +S315080083F00246002863D0531C23D0012A1BD92368C0 +S3150800840099698A4217D2A06862613918AF42A16099 +S315080084103FD294F806E00EF0020C5FFA8CFEED1BD4 +S3150800842018461146BEF1000FE0D111461846FEF770 +S31508008430EBF80246DFE7A07960F07F02A271022618 +S31508008440CBE7A17961F07F06A6710126C5E7274625 +S31508008450012357F8241B48783946F8F7B5FFA17960 +S315080084600028EFD121F04002A271A3E7784202402A +S31508008470A260AD1A62698AE71146FEF7FFF901287C +S315080084800246D8D0411CDCD020617FE7E0689DE732 +S31508008490A168EB054919D80DA16070B123689869E0 +S315080084A0023A02388242C6D29878DB6A00FB023268 +S315080084B0002AC0D002EB55256DE705466BE7A16893 +S315080084C03D46E6E730B58FB00EAB0D4643F8340DA2 +S315080084D005A918460022FDF74DFE044610B12046B0 +S315080084E00FB030BD094801990C9002AA05A80B9255 +S315080084F0FEF70CFD04460028F1D10A9921B105A81A +S315080085002946FDF7EBFCEAE70624E8E79425002070 +S31508008510F0B599B018AB06AC43F85C0D2146184681 +S315080085200122FDF727FE08B119B0F0BD2D480199C3 +S315080085300D9003AA20460C92FEF7E8FC0028F3D11A +S315080085400B9B002B49D0D97A11F0010F0CBF0020E4 +S315080085500720069ADF7E1278997E032A41EA0727C2 +S3150800856029D00028E0D1DB7A03F01002D1B2C1B1DC +S31508008570012F30D903460FAD5A1CE65CA05CEE54B9 +S315080085800233242BA854F7D1284602211197FEF767 +S31508008590A3F80028C8D12846FEF784FEF8B10428B7 +S315080085A0C2D12046FEF756FE0028BDD167B9069807 +S315080085B0FDF7ACFFB8E7597D1A7D42EA012147EA83 +S315080085C001470028B0D1CEE706983946FFF714F8D8 +S315080085D00028A9D1EBE70220A6E70620B9E707207D +S315080085E0A2E700BF942500202DE9F041804682B01D +S315080085F016464F1E0546002411E0012201AB3046FF +S315080086006946FFF731FC019B012B0AD19DF8000052 +S315080086100D28F2D001340A2805F8010B01D0BC4216 +S31508008620EBDB002129708C4214BF4046084602B095 +S31508008630BDE8F08130B50A2883B004460D4610D04F +S3150800864002A9284601F8084D0122694601ABFFF741 +S31508008650EFFC0198012814BF4FF0FF30012003B04A +S3150800866030BD0D20FFF7E6FFEAE700BF70B5054607 +S3150800867000780E4650B1002403E015F8010F0134C6 +S3150800868028B13146FFF7D6FF431CF6D104462046EB +S3150800869070BD00BF7F2830B414D9A9B90F4B07E0C5 +S315080086A05288A9B24C1C824209D0A1B2802912D0A4 +S315080086B05C889A1C4D1C844202F10203F0D101F138 +S315080086C0800080B230BC7047FF2804D8803804493F +S315080086D031F81000F6E70020F4E700BF2EA60008E0 +S315080086E030A6000861280AD00749002201E0834223 +S315080086F006D031F8023F0132002BF8D1704700222C +S31508008700024830F81200704750A4000830A7000845 +S31508008710013A70B48D18A9423ED24B780A7803EB19 +S31508008720022293B2C018CA4380B2AA188342C2F37F +S31508008730400235D88B1C9D4228D96AB11C785A78D4 +S3150800874002EB042292B2801880B2824201D9421CFE +S3150800875090B202339D4219D91E785C7804EB062440 +S31508008760A4B2001980B29A1C844201D9441CA0B252 +S315080087709C78537803EB04239BB2C01880B28342DB +S3150800878001D9431C98B2931C9D42E5D8CA43AB183D +S3150800879023F00102931CC918A94204D070BC704783 +S315080087A0431C98B2C6E709780A02101880B28242BA +S315080087B0F4D9431C98B2F1E738B50E4C657C237C96 +S315080087C0143D05EB03218DB2401904F11A01082264 +S315080087D080B2FFF79DFF04F122012A46FFF798FFB2 +S315080087E010B94FF6FF7038BD020A42EA002398B264 +S315080087F038BD00BF1828002070B4C478134B0A1976 +S31508008800D4B2DC7086780D0AAA19D2B29A70467864 +S315080088105E7000789542187003D90136F6B25E701C +S315080088208EB1C9B28C420CDA0132D0B207499870BF +S3150800883038B94B785A1CD0B2487010B90B785A1C04 +S315080088400A7070BC704701301870EAE76C2E002079 +S3150800885010B5094C2368014603F10800FFF7CCFF61 +S31508008860064A2368507814789178D2781C72587220 +S315080088709972DA7210BD00BF9C2700206C2E00206A +S3150800888008B5002006491422FFF742FF10B94FF633 +S31508008890FF7008BD030A43EA002080B208BD00BF86 +S315080088A0262800200620FFF787BF00BF42F6806013 +S315080088B042F2A071C2F20000C2F2000142F67C62E6 +S315080088C042F6706330B4C2F200020024C2F200031A +S315080088D004804C7601204FF480612546107019807B +S315080088E030BC7047064B074A198810B40024147028 +S315080088F019B10120107010BC70471880FBE700BF43 +S31508008900802E00207C2E00202DE9F04FB74CB84A67 +S31508008910B84FB94BD2F8009004F1360103288BB052 +S31508008920396019600DD002281AD0A07B452800F0BE +S31508008930C780B24EB24D0020288030700BB0BDE81B +S31508008940F08F99F8195005F00F06032EF1D1B9F8F2 +S315080089501000AA4EAA4D0028EDD1DFF8B0822EE00D +S31508008960A84DEE78711CC8B2E87060B9AA78561C92 +S31508008970F1B2A97039B96878421CD6B26E7016B9C8 +S315080089802978481C287099F819209D4DDFF87C82B3 +S315080089900026072A2E80A8F8006000F0E080052A45 +S315080089A000F0DD80002A00F0E380B9F810100029F5 +S315080089B040F0E08002F00F000328904EBBD1082259 +S315080089C03270009301F040F9009B327802F02001E2 +S315080089D0C9B2002900F06A810021A8F80010142005 +S315080089E0DFF82C8289F8191084F82F0028222A80AB +S315080089F0502784F82E7099F80810B8F8007084F893 +S31508008A002A1099F80930B8F8021084F82B3099F82A +S31508008A100A00764B84F82C0099F80B2084F82D2050 +S31508008A2099F80C0084F8260099F80D2084F8272078 +S31508008A3099F80E0084F8280099F80F00062284F8A1 +S31508008A402900E275B9F804006084B9F8060067835E +S31508008A50A084A183B9F80010E183B9F80200208444 +S31508008A6099F8191001F01000C1B2002900F00C8124 +S31508008A70002083F8310083F830002B884021002538 +S31508008A801A0AA1752274637484F8355084F8345030 +S31508008A906586FFF707FF5C4AE57313886575591CF9 +S31508008AA08BB2C043190A608645201380A0732575CA +S31508008AB0A174E3742583FFF7E3FEC24322834BE0E8 +S31508008AC04F4D94F81090667C298806EB092989454C +S31508008AD04EDC207D1FFA89F98006A5F8009047D15B +S31508008AE0667D002E44D1DFF82881B8F80060002E94 +S31508008AF040F0D080B8F80210002940F0CB800192EF +S31508008B000093FFF7BDFE4FF6FF7290428246009B28 +S31508008B1001982DD1E17DDFF8D4B0062900F01A813D +S31508008B20012925D19BF82220082A21D1BBF8240047 +S31508008B304FF6F671002388428BF8223040F29E8168 +S31508008B400930ABF82400608BA28BB8F80230668334 +S31508008B502A4EE0832284A38300233370EEE699F835 +S31508008B601A60701CC2B2782A89F81A2000F0878029 +S31508008B70224EE0E699F81A60711E89F81A10002E3E +S31508008B80F6D199F81B60082E00F0CF80501E0128F8 +S31508008B9040F2C880042E00F2C180032101FA06F1D2 +S31508008BA0C8B202F00F020136511E89F81A0089F878 +S31508008BB01B600729DCD801A050F821F0778C000843 +S31508008BC0478C0008158C0008DD8B0008718B00089F +S31508008BD0DD8B0008718B0008DD8B0008074EDFF877 +S31508008BE03080112384F82F3000E700BF18280020B2 +S31508008BF09C2700205C2E0020842E0020682E002052 +S31508008C000C280020602E00200E28002014280020A2 +S31508008C10642E0020C24E04203070009301F014F830 +S31508008C20B8F80020009B1B683B60002A67D0B9F89B +S31508008C301000002863D028301823288084F82F30A5 +S31508008C40DFF8F482D4E6DFF8F0820227042684F8F7 +S31508008C502F70022206210A232C20602784F8376009 +S31508008C6084F8362084F8381084F83930288084F857 +S31508008C702E70AB4EBFE6DFF8C0821227E6E700216A +S31508008C8089F81910A64E56E683F830200A2283F88A +S31508008C903120F2E6E08BB0427FF46AAFA149088C36 +S31508008CA0B8F8021088427FF463AF28E702F0100094 +S31508008CB0C0B278B1012004221127A9F8100089F85A +S31508008CC0192089F81B10A8F8001084F82F70DFF80F +S31508008CD068828BE6B8F8001011B3D20733D5A9F825 +S31508008CE01000B9F81220914288BFA8F80020B8F8F9 +S31508008CF00020A9F81020002189F81B1093E7327884 +S31508008D0002F00201CBB2002B3FF415AE2827102142 +S31508008D102F8084F82F10DFF8208269E6302040E79C +S31508008D200A46E8E7052E7FF435AF00227C4E89F81F +S31508008D3019208021317000F087FF142384F82F3022 +S31508008D40DFF8F48152E6B9F81020002AC9D076482F +S31508008D500280D0E700930190FFF7A4FD5045019AE1 +S31508008D60009B7FF405AFDFF8D4A19AF8190030B15B +S31508008D70BBF82460BAF804108E4200F0838094F899 +S31508008D802F3003F03F06022E5ED0654E94F82F2052 +S31508008D90644B02F00400C1B200297FF4CCAD93F80D +S31508008DA02DA093F82BC093F8297083F829A04FF0CB +S31508008DB0140A93F8262093F8280093F82C9093F831 +S31508008DC0271093F82AE083F82FA001374FF0280AD6 +S31508008DD083F827C0DFF85CC1A5F800A0FFB24FF002 +S31508008DE0500A83F82EA083F8289083F82C0083F87D +S31508008DF02B108CF8002083F826E083F82A2083F8C5 +S31508008E002D7067B90130C7B283F82C703FB90131AC +S31508008E10C8B283F82B0010B9013283F82A20638C74 +S31508008E20B4F824E0678BB4F81CC0B8F80010B8F89A +S31508008E3002203E48A4F822E00380A384E783A4F82E +S31508008E4020C06183A28318E6364F3949BB8C09884E +S31508008E50DFF8D890374FA9F80030002699423E70BF +S31508008E6003D001222E4E3A7090E7002800F02381A5 +S31508008E70072800F01E810120387079E60830ABF823 +S31508008E80240060E6BBF82260BAF806108E427FF42A +S31508008E9076AFBBF81A60BAF800108E427FF46FAF4F +S31508008EA0BBF81C60BAF802108E427FF468AF9BF8D4 +S31508008EB02FC01B4ECDF808C00CF0040E00215FFA37 +S31508008EC08EFCC2F800A03170BCF1000F66D19BF889 +S31508008ED02EE0DFF860B04FEA1E1C4FEA8C01A9F1BC +S31508008EE01409C1EB090E00F00F001FFA8EF90228CB +S31508008EF08BF80010A5F8009022D0B9F1000F02D126 +S31508008F000298810722D0B4F826E0BAF808108E45F0 +S31508008F1058D01027DFF8249084F82F7066E500BF34 +S31508008F20682E00201828002014280020722E002001 +S31508008F30802E00207C2E0020642E0020A0270020F2 +S31508008F40DDF808C00CF03F011229D6D1DDF808E09B +S31508008F500EF01001C8B220B1BAF81010DFF8489325 +S31508008F60C1BB9AF8191001F00F00013807283FF61F +S31508008F70E2AC0FF2080C5CF820F000BF83930008FF +S31508008F805D9300084D92000811920008BB910008F5 +S31508008F90A3910008138F0008AB8F000820228AF8D7 +S31508008FA01910327000F050FEC5E43378DB077FF500 +S31508008FB0C2AC0022BA488AF819201021017000F0C4 +S31508008FC043FEB8E4B748B849B0F828C0488984458C +S31508008FD09FD1BBE709F10C0001920093FFF70CFC47 +S31508008FE0B24994F82A2091F800C0009BCDF808C031 +S31508008FF09445019AB5D142F61800C2F2000091F8DC +S3150800900001E090F82B00CDF80CE08645A9D142F690 +S315080090101800C2F2000091F802C090F82C00CDF8B2 +S3150800902014C084459DD142F61800C2F20000C978E2 +S3150800903090F82D00814294D1DDF808E0DDF80CC0E7 +S3150800904089F80CE099F81B00DDF814E089F80DC0E2 +S3150800905089F80EE089F80F1008BB99F818C099F836 +S315080090601A0099F81610C0EB0C00A0EBD100C0B29C +S3150800907041185FFA81FEC1B211F0800F89F816E037 +S3150800908001D04042C1B29AF81700A0EB90004118EF +S31508009090C8B200EBDE0C8AF817008AF818C09AF8EE +S315080090A0181001208AF81A1000213070AAF810103A +S315080090B057E7012139707E4EC2F800A096F800C025 +S315080090C096F801E0B178F07894F82960AAF80430A7 +S315080090D0069694F8276005904FF0030B8AF81AB0A5 +S315080090E08AF818B008964FF0040B00268AF816601E +S315080090F08AF817B08AF81B60638C94F82800AAF8D7 +S315080091000630638B0790AAF8003094F82600A38BE4 +S315080091108AF80CC08AF80E10DDF814C00699099072 +S3150800912001221046AAF802308AF819208AF80DE0BA +S315080091308AF80FC0AAF810208AF80B10079ADDF8EB +S3150800914020E0099B8AF80A208AF809E08AF808309C +S31508009150FFF77EFB94F82E0000F0F001502940F34B +S315080091604D8120FA0BF3534A581F800013780EE0FE +S3150800917091F836307BB1012B00F04481022B2BD0BD +S315080091809EF8371001EB060E29B15FFA8EF6A11983 +S3150800919086428E46ECDB3E701370DFF80C91122780 +S315080091A054E53378DB077FF5C6AB072200218AF83A +S315080091B019208AF81A10FFF7BEBB288808B1FFF7EE +S315080091C047FB94F82F00C20700F11F812A88002A5E +S315080091D07FF49FAEFFF7AFBB91F837C0BCF1040F21 +S315080091E0CED191F8380091F83910137041EA00226F +S315080091F003F5C1639A4238BF13463E70A9F80020AA +S31508009200AAF81230AAF81430DFF89C9012271DE548 +S31508009210288808B1FFF71CFB94F82F1011F00100FD +S3150800922000F091803778F80740F1898000230722FB +S315080092308AF819208AF81A30AAF810300120FFF7A0 +S3150800924007FB1021317000F0FFFC62E694F82F202E +S31508009250D00731D501F01000C0B268BBBAF810309B +S31508009260002B7FF468AB2F88791C88B2FFF7F0FAD9 +S3150800927030782A8840F0100333701AB1084940F054 +S3150800928012070F7000F0E0FC012008220023DFF827 +S315080092901890AAF810008AF819208AF81B30A0E45A +S315080092A0682E002018280020A02700206C2E0020F9 +S315080092B0602E0020882E002002F02002D0B268B16D +S315080092C094F8348094F835003A68B5F800E040EA36 +S315080092D008201218C0EB0E003A602880288858B17A +S315080092E001F01001CAB23AB9317841F0020232707F +S315080092F00093FFF7ADFA009B94F830C094F831104C +S31508009300BAF814006C4A01EB0C2189B2814211802B +S3150800931000D801B9108010883278AAF8120091078F +S315080093203FF409ABDFF8A081DFF8A0910020A8F888 +S315080093300000009300F088FC009BFFF746BB062060 +S315080093408AF819007AE73378D9077FF53FAF052100 +S315080093508AF81910AAF81000FFF7EDBA3178C9078C +S3150800936005D594F82F0000F03F01122920D02023BC +S315080093703370019200F068FC019A1068002141766A +S3150800938004E531784D4AC8077FF5D5AA03218AF83E +S3150800939019102888402111700021AAF810100028F9 +S315080093A0C0D0422111700093FFF752FA009BB9E72B +S315080093B0434991F82E2002F0F00050284CDD414830 +S315080093C01109A1F1050801784FEA880C002204EB7F +S315080093D0020E6245F04668DA9EF83610002964D017 +S315080093E0012966D002291ED098F837E00EEB02084C +S315080093F0BEF1000F59D05FFA88F2E8E7DFF8CC90A3 +S31508009400122723E40136F6B2C1E600230727012016 +S315080094108AF819708AF81A30FFF71AFA1022327089 +S3150800942000F012FC75E59EF83790B9F1040FDBD110 +S315080094309EF838C09EF8399001708BF8002049EAEA +S315080094400C2001F5C1611C4A884238BF01461080CC +S31508009450AAF81210AAF8141094F8260094F827E02F +S3150800946094F8281094F829208AF808004FF0030C7D +S315080094708AF819C08AF809E08AF80A108AF80B20CF +S3150800948001200093DFF84080DFF84090FFF7E0F90D +S3150800949000234220AAF810302B80A8F8003030703C +S315080094A000F0D2FB009BFFF790BA01708BF8002002 +S315080094B0D2E70132D2B28AE7722E0020682E002047 +S315080094C018280020882E002014280020A027002015 +S315080094D0030A43EA002080B2704700BF0A1E03460B +S315080094E009DD05490868054983420A8003D01946FB +S315080094F092B200F0EFBB7047842E0020142800209B +S31508009500F8B59C4B9C4A18889C4E918BD48B20B1FD +S315080095105A8812B1884200F0DA809A89954822B1B1 +S31508009520C58915B18A4200F0ED801A8B914822B19F +S31508009530458B15B18A4200F0EC809A8C8D4822B191 +S31508009540C58C15B18A4200F0EB801A8E894822B183 +S31508009550458E15B18A4200F0EA809A8F854822B175 +S31508009560C58F15B18A4200F0C680B3F848208148F5 +S315080095702AB1B0F84A5015B18A4200F0AE80B3F865 +S3150800958054207C482AB1B0F8565015B18A4200F0EA +S31508009590AB801D88774C1DB96588002D00F0948036 +S315080095A09989744C19B9E289002A00F0D080188B81 +S315080095B0704C18B9658B002D00F0CC80998C6D4CD9 +S315080095C019B9E28C002A00F0C880188E694C18B9BF +S315080095D0658E002D00F0C480998F664C19B9E28F0C +S315080095E0002A00F0C080B3F84800624C20B9B4F8ED +S315080095F04A50002D00F0BA80B3F854105D4C00298B +S315080096005CD05F4D9F7A29780024CF1B22462046DE +S31508009610A7429C7DC8BFFAB20C1B9442C8BFE2B2EF +S3150800962093F82240C4EB0104C8BF01209442C8BF86 +S31508009630E2B293F82E40C4EB0104C8BF022094425C +S31508009640C8BFE2B293F83A40C4EB0104C8BF03208E +S315080096509442C8BFE2B293F84640C4EB0104C8BFBF +S3150800966004209442C8BFE2B293F85240C4EB010406 +S31508009670C8BF05209442C8BFE2B293F85E40C4EB67 +S315080096800101C8BF06209142C8BFCAB23D49C8BF3A +S3150800969007200A703C4A307000EB4004107003EB58 +S315080096A084043A490422204600F014FB201D384958 +S315080096B0062200F00FFB2B78A372F8BDB4F85620EB +S315080096C0002A9ED10725543435702D4DE9E7A2426C +S315080096D07FF423AF00221C462FE0A5427FF44FAF4C +S315080096E0062200F1480428E0A5427FF452AF07227B +S315080096F000F1540421E0A5427FF437AF052200F1BA +S315080097003C041AE0A5427FF410AF012200F10C04D4 +S3150800971013E0A5427FF411AF022200F118040CE011 +S31508009720A5427FF412AF032200F1240405E0A54206 +S315080097307FF413AF042200F1300415493270201D5E +S31508009740062200F0C7FA0E480178A172F8BD012575 +S315080097500C34B9E702251834B6E703252434B3E7F1 +S3150800976004253034B0E705253C34ADE706254834F2 +S31508009770AAE700BF8C2E002018280020892E00207A +S31508009780ED2E00208A2E0020EC2E00203428002002 +S315080097902E28002070B5154E154C3278154D00232D +S315080097A0501C3070237005E02078421CD3B2072B7A +S315080097B023701AD803EB430305EB830035F823100F +S315080097C0428842EA010399B20029EDD03278837AB9 +S315080097D0D11A7729E8DD0422002100F09FFA2078C3 +S315080097E0421CD3B2072B2370E4D970BDED2E00209E +S315080097F0892E00208C2E0020F8B52A4C2388292B88 +S3150800980040D9294DAA8A0020B2F5807F20800746D4 +S3150800981003D0B2F5007F38D0F8BD244EE98C3288E3 +S315080098209142F9D1288D73889842F5D1FFF768FEE1 +S31508009830022305F11601062205F120006B752F7526 +S3150800984000F048FA1A49062205F1160000F042FA15 +S3150800985006221749A81800F03DFA05F1200106224C +S31508009860284600F037FAA88BE98B32887388E88493 +S315080098702985AA83082006212A22EB83287369737F +S315080098802280F8BD00232380F8BD084BE98C1A888E +S315080098909142C1D1288D5B889842BDD1BDE8F84078 +S315080098A0FFF72EBE0C28002018280020642E002062 +S315080098B0742E0020F8B56F4CE38B4FF6FF72934277 +S315080098C07AD06D4E6D4D3288298883EA02000842A7 +S315080098D067D06B496B4D0B8848882B8068806A4A2D +S315080098E0DFF8C8E11088698898427BD09089664F6E +S315080098F0984200F08480108B634F984200F08F8066 +S31508009900908C614F984200F08280108E5E4F98428C +S3150800991000F08D80908F5C4F984200F09080B2F8EE +S315080099204800594F984200F09B80B2F85420564898 +S315080099309A4200F08C800827FF2106224D488EF8AF +S31508009940007000F0EBF900210622504800F0E6F915 +S315080099504F495048062200F0BDF94D494E480622A7 +S3150800996000F0B8F929887088E18400230121E08392 +S315080099700420B5F802C0E074062223756175A37346 +S31508009980E173637435884549454B46486273A2744A +S315080099902A2227742773A4F828C0A5831960028091 +S315080099A0F8BD218C70886D8881EA00022A4290D120 +S315080099B0344D2B80698092E7208C984281D12046CD +S315080099C03949062200F086F931493248062200F064 +S315080099D081F93448028808230E3200212373617303 +S315080099E00280F8BD5088884280D100231146043190 +S315080099F0062220488EF8003000F06CF9E4E7F88972 +S31508009A0088427FF478AF012307F10C01EFE7F88C61 +S31508009A1088427FF47AAF032307F12401E7E7788BBE +S31508009A2088427FF46DAF022307F11801DFE7788ECD +S31508009A3088427FF46FAF042307F13001D7E7F88F28 +S31508009A4088427FF46CAF052307F13C01CFE7B0F8F5 +S31508009A5056308B427FF46FAF072300F15401C6E7F7 +S31508009A60B7F84A0088427FF460AF062307F1480139 +S31508009A70BDE700BF18280020642E00200828002013 +S31508009A8010280020F02E00208C2E002038280020D8 +S31508009A90742E00201E2800202E2800204E28002084 +S31508009AA05C2E00200C28002010A90008892E002012 +S31508009AB038B5F8F74DFBFAF767FF42F6F863C2F2D6 +S31508009AC0000300F5FA701860FAF75EFF42F6F461D3 +S31508009AD0C2F2000100F51C5210320A60FEF7E6FEDB +S31508009AE042F66461C2F2000142F60802C2F20002BE +S31508009AF04FF6A96443F613750C804D8042F61003A1 +S31508009B004FF6FF71C2F200031180002151804EF614 +S31508009B10030040F213121C805A80FEF7E3FEBDE8EC +S31508009B203840F8F743BC00BFF8B5164B1F68FA690A +S31508009B303A62E1B14C1EA4B2661C012307F11C026D +S31508009B400578B342157204EA030410D02CB14478A0 +S31508009B500223B34287F8254009D0C55CD4180133DF +S31508009B602572C55CD4180133B3422572F5D1043188 +S31508009B70A7F8641007F12000FFF7B0FCF869411C4C +S31508009B80F961F8BD9C27002070B5F8F721FCF8B9F3 +S31508009B90FAF7FAFE264B1A6890420BD3254826494F +S31508009BA0264C086002F5FA7202201A60FEF7ACFE2F +S31508009BB0238843BBFAF7E8FE21490A68904205D391 +S31508009BC002F51C5310330B60FFF7E4FD002070BD4F +S31508009BD01A4D1C4C28804FF40060A689FFF778FCC4 +S31508009BE0864217D040F60600A489FFF771FC844226 +S31508009BF0CED1FFF701FE2B88002BC9D0F8F70CFC55 +S31508009C0000202880C4E7FFF755FEF8F705FC00207A +S31508009C102080CFE70120FEF777FE29880029B7D0F4 +S31508009C20FFF748FEF8F7F8FB00222A80B0E700BFE6 +S31508009C30F82E0020A02700209C2700200C280020B2 +S31508009C40F42E00201828002038B5174D174A2B780F +S31508009C50146803F04000C2B2CAB9D90703F0040178 +S31508009C60C8B248BFA4F8642010B1B4F86410A1B90A +S31508009C7003F00202D1B201B938BD0D4802680023CB +S31508009C80101DA4F86430BDE83840FBF719BC012163 +S31508009C900020E161A4F8640038BD04F12000FFF754 +S31508009CA01DFC2B78E4E700BF682E00209C270020C7 +S31508009CB05C2E0020A0F1300009288CBF002001206E +S31508009CC0704700BFA0F16103D9B2192998BF20389F +S31508009CD0704700BF844640EA010313F0030F40F0C3 +S31508009CE01080242AC0F00D802DE9F00FB1E8F80F96 +S31508009CF0A0E8F80FA2F12402242ABFF4F7AFBDE8C2 +S31508009D00F00F002A00F0078011F8013B00F8013B2C +S31508009D10013A7FF4F9AF6046704700BF8446002ACF +S31508009D2000F0328010F0030F00F0078000F8011BE6 +S31508009D30013A00F02980FFF7F5BF282AC0F01F80F6 +S31508009D40A2F128022DE9F00F01F0FF0141EA0121F5 +S31508009D5041EA014141EA01610B460C460D460E46B1 +S31508009D600F46884689468A468B46A0E8FA0F283A5F +S31508009D70BFF4FBAFBDE8F00F283200F0058000F80D +S31508009D80011B013A7FF4FBAF6046704738B50446BD +S31508009D900D4600F019F842F6FC63C2F200031D6096 +S31508009DA044F0800442F60070C2F2000004600246E5 +S31508009DB011680029FCD100F009F842F6FC63C2F2EA +S31508009DC00003186838BD00BF704700BF704700BF62 +S31508009DD0433A2F576F726B2F736F6674776172658C +S31508009DE02F4F70656E424C542F5461726765742FFD +S31508009DF044656D6F2F41524D434D345F53544D3377 +S31508009E00325F4F6C696D65785F53544D3332453414 +S31508009E1030375F43726F7373776F726B732F426F4E +S31508009E206F742F6964652F2E2E2F6C69622F7569E2 +S31508009E30702F6E65746465762E6300000201020059 +S31508009E402F64656D6F70726F675F6F6C696D65788B +S31508009E505F73746D3332653430372E737265630001 +S31508009E602F626F6F746C6F672E7478740000000031 +S31508009E7057696E5553422042756C6B20496E74655E +S31508009E80726661636500000044656661756C7400FE +S31508009E90303030303030303030353043000000005C +S31508009EA04F70656E424C5420557365720000000071 +S31508009EB057696E5553422042756C6B204465766926 +S31508009EC063650000433A2F576F726B2F736F667482 +S31508009ED0776172652F4F70656E424C542F546172CC +S31508009EE06765742F44656D6F2F41524D434D345F3E +S31508009EF053544D33325F4F6C696D65785F53544DDB +S31508009F003332453430375F43726F7373776F726BD2 +S31508009F10732F426F6F742F6964652F2E2E2F2E2E86 +S31508009F202F2E2E2F2E2E2F536F757263652F4152AB +S31508009F304D434D345F53544D33322F43726F737311 +S31508009F40776F726B732F766563746F72732E630007 +S31508009F500000080010001800200028003000380013 +S31508009F604000480050005800800088009000980083 +S31508009F70A000A800B000B800C000C800D000D800F3 +S31508009F8000C00008004000000300000000000108AF +S31508009F9000000100040000000000020800000200A2 +S31508009FA0050000000000040800000200060000008A +S31508009FB0000006080000020007000000000008086C +S31508009FC0000002000800000000000A080000020065 +S31508009FD00900000000000C08000002000A0000004A +S31508009FE000000E08000002000B000000433A2F573D +S31508009FF06F726B2F736F6674776172652F4F70651A +S3150800A0006E424C542F5461726765742F44656D6FA8 +S3150800A0102F41524D434D345F53544D33325F4F6C8D +S3150800A020696D65785F53544D3332453430375F4335 +S3150800A030726F7373776F726B732F426F6F742F69BA +S3150800A04064652F2E2E2F2E2E2F2E2E2F2E2E2F538B +S3150800A0506F757263652F41524D434D345F53544DAE +S3150800A06033322F756172742E63000000433A2F57FE +S3150800A0706F726B2F736F6674776172652F4F706599 +S3150800A0806E424C542F5461726765742F44656D6F28 +S3150800A0902F41524D434D345F53544D33325F4F6C0D +S3150800A0A0696D65785F53544D3332453430375F43B5 +S3150800A0B0726F7373776F726B732F426F6F742F693A +S3150800A0C064652F2E2E2F2E2E2F2E2E2F2E2E2F530B +S3150800A0D06F757263652F41524D434D345F53544D2E +S3150800A0E033322F63616E2E630000000005020602FC +S3150800A0F0060307030803090309040A040B040C04EE +S3150800A1000C050D050E050F050F061006100710089D +S3150800A110433A2F576F726B2F736F66747761726548 +S3150800A1202F4F70656E424C542F5461726765742FB9 +S3150800A13044656D6F2F41524D434D345F53544D3333 +S3150800A140325F4F6C696D65785F53544D33324534D1 +S3150800A15030375F43726F7373776F726B732F426F0B +S3150800A1606F742F6964652F2E2E2F2E2E2F2E2E2FCD +S3150800A1702E2E2F536F757263652F41524D434D3402 +S3150800A1805F53544D33322F7573622E6300000000FF +S3150800A19008003F0008003F004F70656E424C5400AF +S3150800A1A0433A2F576F726B2F736F667477617265B8 +S3150800A1B02F4F70656E424C542F5461726765742F29 +S3150800A1C044656D6F2F41524D434D345F53544D33A3 +S3150800A1D0325F4F6C696D65785F53544D3332453441 +S3150800A1E030375F43726F7373776F726B732F426F7B +S3150800A1F06F742F6964652F2E2E2F2E2E2F2E2E2F3D +S3150800A2002E2E2F536F757263652F66696C652E63E4 +S3150800A210000000004669726D77617265207570648A +S3150800A22061746520726571756573742064657465FB +S3150800A230637465640A0D00004F70656E696E672069 +S3150800A2406669726D776172652066696C6520666FEE +S3150800A250722072656164696E672E2E2E00000000FA +S3150800A2604552524F520A0D004F4B0A0D000000008E +S3150800A2705374617274696E67207468652070726FB2 +S3150800A2806772616D6D696E672073657175656E635A +S3150800A290650A0D0050617273696E67206669726D92 +S3150800A2A0776172652066696C6520746F206F6274C9 +S3150800A2B061696E2065726173652073697A652E2EF1 +S3150800A2C02E00000045726173696E67200000000069 +S3150800A2D02062797465732066726F6D206D656D6F87 +S3150800A2E0727920617420307800000000526561643C +S3150800A2F0696E67206C696E652066726F6D20666987 +S3150800A3006C652E2E2E4552524F520A0D0000000043 +S3150800A310496E76616C696420636865636B73756DF5 +S3150800A32020666F756E642E2E2E4552524F520A0DB8 +S3150800A3300000000050726F6772616D6D696E67206C +S3150800A3400000000020627974657320746F206D65C3 +S3150800A3506D6F7279206174203078000057726974C5 +S3150800A360696E672070726F6772616D2063686563D6 +S3150800A3706B73756D2E2E2E00436C6F73696E672096 +S3150800A3806669726D776172652066696C650A0D008B +S3150800A3904669726D776172652075706461746520AF +S3150800A3A07375636365737366756C6C7920636F6D1B +S3150800A3B0706C657465640A0D00000000222A3A3C38 +S3150800A3C03E3F7C7F000000002B2C3B3D5B5D000080 +S3150800A3D0809A90418E418F804545454949498E8FDF +S3150800A3E09092924F994F555559999A9B9C9D9E9F2D +S3150800A3F041494F55A5A5A6A7A8A9AAABAC21AEAFBA +S3150800A400B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC6 +S3150800A410C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFB6 +S3150800A420D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFA6 +S3150800A430E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF96 +S3150800A440F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF86 +S3150800A45061006200630064006500660067006800CA +S3150800A46069006A006B006C006D006E006F0070007A +S3150800A470710072007300740075007600770078002A +S3150800A48079007A00A100A200A300A500AC00AF00E5 +S3150800A490E000E100E200E300E400E500E600E70092 +S3150800A4A0E800E900EA00EB00EC00ED00EE00EF0042 +S3150800A4B0F000F100F200F300F400F500F600F800F1 +S3150800A4C0F900FA00FB00FC00FD00FE00FF00010198 +S3150800A4D003010501070109010B010D010F01110116 +S3150800A4E013011501170119011B011D011F01210186 +S3150800A4F023012501270129012B012D012F013101F6 +S3150800A5003301350137013A013C013E014001420160 +S3150800A5104401460148014B014D014F0151015301C8 +S3150800A5205501570159015B015D015F016101630135 +S3150800A5306501670169016B016D016F0171017301A5 +S3150800A540750177017A017C017E019201B103B2039C +S3150800A550B303B403B503B603B703B803B903BA0321 +S3150800A560BB03BC03BD03BE03BF03C003C103C303D0 +S3150800A570C403C503C603C703C803C903CA03300413 +S3150800A58031043204330434043504360437043804F9 +S3150800A59039043A043B043C043D043E043F044004A9 +S3150800A5A04104420443044404450446044704480459 +S3150800A5B049044A044B044C044D044E044F04510408 +S3150800A5C052045304540455045604570458045904B1 +S3150800A5D05A045B045C045E045F04702171217221D5 +S3150800A5E073217421752176217721782179217A21A1 +S3150800A5F07B217C217D217E217F2141FF42FF43FF74 +S3150800A60044FF45FF46FF47FF48FF49FF4AFF4BFF08 +S3150800A6104CFF4DFF4EFF4FFF50FF51FF52FF53FFB8 +S3150800A62054FF55FF56FF57FF58FF59FF5AFF0000C2 +S3150800A630C700FC00E900E200E400E000E500E700EE +S3150800A640EA00EB00E800EF00EE00EC00C400C500ED +S3150800A650C900E600C600F400F600F200FB00F900A7 +S3150800A660FF00D600DC00A200A300A500A7209201E7 +S3150800A670E100ED00F300FA00F100D100AA00BA00EB +S3150800A680BF001023AC00BD00BC00A100AB00BB009E +S3150800A690912592259325022524256125622556258F +S3150800A6A055256325512557255D255C255B251025F0 +S3150800A6B0142534252C251C2500253C255E255F25DB +S3150800A6C05A25542569256625602550256C25672554 +S3150800A6D068256425652559255825522553256B2552 +S3150800A6E06A2518250C25882584258C2590258025FE +S3150800A6F0B103DF009303C003A303C303B500C40378 +S3150800A700A6039803A903B4031E22C603B503292288 +S3150800A7106122B1006522642220232123F700482202 +S3150800A720B0001922B7001A227F20B200A025A00087 +S3150800A73041004200430044004500460047004800E7 +S3150800A74049004A004B004C004D004E004F00500097 +S3150800A7505100520053005400550056005700580047 +S3150800A76059005A002100E0FFE1FFE5FFE2FFE3FFA1 +S3150800A770C000C100C200C300C400C500C600C700AF +S3150800A780C800C900CA00CB00CC00CD00CE00CF005F +S3150800A790D000D100D200D300D400D500D600D8000E +S3150800A7A0D900DA00DB00DC00DD00DE0078010001FC +S3150800A7B002010401060108010A010C010E0110013B +S3150800A7C012011401160118011A011C011E012001AB +S3150800A7D022012401260128012A012C012E0130011B +S3150800A7E032013401360139013B013D013F01410186 +S3150800A7F04301450147014A014C014E0150015201EE +S3150800A8005401560158015A015C015E01600162015A +S3150800A8106401660168016A016C016E0170017201CA +S3150800A8207401760179017B017D01910191039203FF +S3150800A83093039403950396039703980399039A033E +S3150800A8409B039C039D039E039F03A003A103A303ED +S3150800A850A403A503A603A703A803A903AA03100430 +S3150800A8601104120413041404150416041704180416 +S3150800A87019041A041B041C041D041E041F042004C6 +S3150800A8802104220423042404250426042704280476 +S3150800A89029042A042B042C042D042E042F04010455 +S3150800A8A0020403040404050406040704080409044E +S3150800A8B00A040B040C040E040F04602161216221B2 +S3150800A8C063216421652166216721682169216A213E +S3150800A8D06B216C216D216E216F2121FF22FF23FF41 +S3150800A8E024FF25FF26FF27FF28FF29FF2AFF2BFF26 +S3150800A8F02CFF2DFF2EFF2FFF30FF31FF32FF33FFD6 +S3150800A90034FF35FF36FF37FF38FF39FF3AFF0000BF +S30D0800A910FFFFFFFFFFFF000037 +S3150800A9180100000001000000000000000102030415 +S3150800A92801020304060708091C000020412600083E +S3150800A9388525000839250008A124000809250008E6 +S3150800A948852400086D240008B1240008C1240008DD +S3150800A958D1240008E924000809022000010100C0E2 +S3150800A968320904000002FF000000070581024000C2 +S3150800A978FF070501024000FF9141000879410008D8 +S3150800A988C1410008000000000000000061410008FD +S3150800A9986D41000849410008000000000000000059 +S3150800A9A8394100083942000849420008B9420008F6 +S3150800A9B8D942000899420008794200085942000815 +S3150800A9C8040309041201100100000040501DAC6080 +S3150800A9D80001010203010000F9420008FD420008CF +S3150800A9E80143000819430008154300080D430008E9 +S30A0800A9F80543000804F8 S7050800018968 diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/hooks.c b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/hooks.c index 1ef2a73a..573a63d9 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/hooks.c @@ -362,13 +362,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while(USART_GetFlagStatus(USART6, USART_FLAG_TC) == RESET); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while(USART_GetFlagStatus(USART6, USART_FLAG_TC) == RESET) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/ide/stm32f407_crossworks.hzs b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/ide/stm32f407_crossworks.hzs index ee3924bc..a338b5e1 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/ide/stm32f407_crossworks.hzs +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_Crossworks/Boot/ide/stm32f407_crossworks.hzs @@ -25,8 +25,6 @@ - - @@ -50,9 +48,9 @@ - - + + @@ -65,9 +63,9 @@ - - - + + + - + diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.elf b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.elf index fdbb5a26..a7f14501 100644 Binary files a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.elf and b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.elf differ diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.map b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.map index 3924ed74..80b0600d 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.map +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.map @@ -7,8 +7,8 @@ start address 0x08000000 Program Header: LOAD off 0x00008000 vaddr 0x08000000 paddr 0x08000000 align 2**15 - filesz 0x0000a058 memsz 0x0000a058 flags r-x - LOAD off 0x00018000 vaddr 0x20000000 paddr 0x0800a058 align 2**15 + filesz 0x0000a068 memsz 0x0000a068 flags r-x + LOAD off 0x00018000 vaddr 0x20000000 paddr 0x0800a068 align 2**15 filesz 0x000000ec memsz 0x000000ec flags rw- LOAD off 0x00018100 vaddr 0x20000100 paddr 0x0800a180 align 2**15 filesz 0x00000000 memsz 0x00003564 flags rw- @@ -16,31 +16,31 @@ private flags = 5000202: [Version5 EABI] [soft-float ABI] [has entry point] Sections: Idx Name Size VMA LMA File off Algn - 0 .text 0000a058 08000000 08000000 00008000 2**2 + 0 .text 0000a068 08000000 08000000 00008000 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 1 .data 000000ec 20000000 0800a058 00018000 2**2 + 1 .data 000000ec 20000000 0800a068 00018000 2**2 CONTENTS, ALLOC, LOAD, DATA 2 .bss 00003564 20000100 0800a180 00018100 2**7 ALLOC - 3 .debug_info 0001fb9e 00000000 00000000 000180ec 2**0 + 3 .debug_info 0001fbd1 00000000 00000000 000180ec 2**0 CONTENTS, READONLY, DEBUGGING - 4 .debug_abbrev 0000541c 00000000 00000000 00037c8a 2**0 + 4 .debug_abbrev 0000542d 00000000 00000000 00037cbd 2**0 CONTENTS, READONLY, DEBUGGING - 5 .debug_loc 0000f4c4 00000000 00000000 0003d0a6 2**0 + 5 .debug_loc 0000f522 00000000 00000000 0003d0ea 2**0 CONTENTS, READONLY, DEBUGGING - 6 .debug_aranges 00001560 00000000 00000000 0004c56a 2**0 + 6 .debug_aranges 00001560 00000000 00000000 0004c60c 2**0 CONTENTS, READONLY, DEBUGGING - 7 .debug_ranges 00001428 00000000 00000000 0004daca 2**0 + 7 .debug_ranges 00001428 00000000 00000000 0004db6c 2**0 CONTENTS, READONLY, DEBUGGING - 8 .debug_line 000079df 00000000 00000000 0004eef2 2**0 + 8 .debug_line 00007a6c 00000000 00000000 0004ef94 2**0 CONTENTS, READONLY, DEBUGGING - 9 .debug_str 000073df 00000000 00000000 000568d1 2**0 + 9 .debug_str 000073eb 00000000 00000000 00056a00 2**0 CONTENTS, READONLY, DEBUGGING - 10 .comment 00000030 00000000 00000000 0005dcb0 2**0 + 10 .comment 00000030 00000000 00000000 0005ddeb 2**0 CONTENTS, READONLY - 11 .ARM.attributes 00000033 00000000 00000000 0005dce0 2**0 + 11 .ARM.attributes 00000033 00000000 00000000 0005de1b 2**0 CONTENTS, READONLY - 12 .debug_frame 000036e0 00000000 00000000 0005dd14 2**2 + 12 .debug_frame 000036e0 00000000 00000000 0005de50 2**2 CONTENTS, READONLY, DEBUGGING SYMBOL TABLE: 08000000 l d .text 00000000 .text @@ -58,44 +58,44 @@ SYMBOL TABLE: 00000000 l d .debug_frame 00000000 .debug_frame 00000000 l df *ABS* 00000000 vectors.c 00000000 l df *ABS* 00000000 hooks.c -08009630 l O .text 00000020 firmwareFilename +08009640 l O .text 00000020 firmwareFilename 20000100 l O .bss 00000228 logfile 00000000 l df *ABS* 00000000 main.c 00000000 l df *ABS* 00000000 usbd_bulk.c -080003cc l F .text 0000000e USBD_bulk_GetCfgDesc -080003dc l F .text 00000012 usbd_bulk_SOF -080003f0 l F .text 0000000a usbd_bulk_DataIn -080003fc l F .text 0000000c usbd_bulk_DataOut -08000408 l F .text 00000068 usbd_bulk_Setup -08000470 l F .text 00000016 usbd_bulk_DeInit -08000488 l F .text 00000030 usbd_bulk_Init +080003dc l F .text 0000000e USBD_bulk_GetCfgDesc +080003ec l F .text 00000012 usbd_bulk_SOF +08000400 l F .text 0000000a usbd_bulk_DataIn +0800040c l F .text 0000000c usbd_bulk_DataOut +08000418 l F .text 00000068 usbd_bulk_Setup +08000480 l F .text 00000016 usbd_bulk_DeInit +08000498 l F .text 00000030 usbd_bulk_Init 20000328 l O .bss 00000004 usbd_bulk_AltSet 00000000 l df *ABS* 00000000 usbd_desc.c 00000000 l df *ABS* 00000000 usbd_usr.c 00000000 l df *ABS* 00000000 usb_bsp.c 00000000 l df *ABS* 00000000 usbd_core.c -08000694 l F .text 00000016 USBD_Resume -080006ac l F .text 0000001c USBD_Suspend -080006c8 l F .text 00000010 USBD_SOF -080006d8 l F .text 0000000e USBD_IsoINIncomplete -080006e8 l F .text 0000000e USBD_IsoOUTIncomplete -080006f8 l F .text 00000016 USBD_DevConnected -08000710 l F .text 00000020 USBD_DevDisconnected -08000730 l F .text 0000002e USBD_Reset -08000760 l F .text 0000004e USBD_SetupStage -080007b0 l F .text 000000b8 USBD_DataInStage -08000868 l F .text 00000076 USBD_DataOutStage +080006a4 l F .text 00000016 USBD_Resume +080006bc l F .text 0000001c USBD_Suspend +080006d8 l F .text 00000010 USBD_SOF +080006e8 l F .text 0000000e USBD_IsoINIncomplete +080006f8 l F .text 0000000e USBD_IsoOUTIncomplete +08000708 l F .text 00000016 USBD_DevConnected +08000720 l F .text 00000020 USBD_DevDisconnected +08000740 l F .text 0000002e USBD_Reset +08000770 l F .text 0000004e USBD_SetupStage +080007c0 l F .text 000000b8 USBD_DataInStage +08000878 l F .text 00000076 USBD_DataOutStage 00000000 l df *ABS* 00000000 usbd_ioreq.c 00000000 l df *ABS* 00000000 usbd_req.c 20000338 l O .bss 00000001 cfgidx.8604 00000000 l df *ABS* 00000000 usb_core.c -08000f38 l F .text 00000072 USB_OTG_CoreReset +08000f48 l F .text 00000072 USB_OTG_CoreReset 00000000 l df *ABS* 00000000 usb_dcd.c 00000000 l df *ABS* 00000000 usb_dcd_int.c 00000000 l df *ABS* 00000000 mmc.c -08001f74 l F .text 0000004e CmdResp2Error -08001fc4 l F .text 00000130 CmdResp1Error -080020f4 l F .text 00000266 SDEnWideBus +08001f84 l F .text 0000004e CmdResp2Error +08001fd4 l F .text 00000130 CmdResp1Error +08002104 l F .text 00000266 SDEnWideBus 20000339 l O .bss 00000001 TransferError 200000cc l O .data 00000004 DMAEndOfTransfer 2000033c l O .bss 00000018 SDIO_DataInitStructure @@ -120,38 +120,38 @@ SYMBOL TABLE: 00000000 l df *ABS* 00000000 stm32f4xx_usart.c 00000000 l df *ABS* 00000000 system_stm32f4xx.c 00000000 l df *ABS* 00000000 ff.c -080041cc l F .text 00000012 mem_cpy -080041e0 l F .text 0000001e ld_clust -08004200 l F .text 0000001e sum_sfn -08004220 l F .text 00000096 check_fs -080042b8 l F .text 00000076 sync_window -08004330 l F .text 00000032 move_window -08004364 l F .text 00000038 validate -0800439c l F .text 00000394 chk_mounted -08004730 l F .text 0000012c get_fileinfo -0800485c l F .text 000000bc sync_fs -08004a1c l F .text 00000098 dir_sdi -08004bc4 l F .text 000000cc create_chain -08004c90 l F .text 0000012a dir_next -08004dbc l F .text 000001a2 dir_find -08004f60 l F .text 00000332 follow_path -08005294 l F .text 00000130 dir_read -080053c4 l F .text 00000058 dir_remove -0800541c l F .text 0000006e remove_chain -08005524 l F .text 00000236 dir_register +080041dc l F .text 00000012 mem_cpy +080041f0 l F .text 0000001e ld_clust +08004210 l F .text 0000001e sum_sfn +08004230 l F .text 00000096 check_fs +080042c8 l F .text 00000076 sync_window +08004340 l F .text 00000032 move_window +08004374 l F .text 00000038 validate +080043ac l F .text 00000394 chk_mounted +08004740 l F .text 0000012c get_fileinfo +0800486c l F .text 000000bc sync_fs +08004a2c l F .text 00000098 dir_sdi +08004bd4 l F .text 000000cc create_chain +08004ca0 l F .text 0000012a dir_next +08004dcc l F .text 000001a2 dir_find +08004f70 l F .text 00000332 follow_path +080052a4 l F .text 00000130 dir_read +080053d4 l F .text 00000058 dir_remove +0800542c l F .text 0000006e remove_chain +08005534 l F .text 00000236 dir_register 20000408 l O .bss 00000200 LfnBuf 20000608 l O .bss 00000002 Fsid -080096dc l O .text 00000080 ExCvt -0800975c l O .text 0000000d LfnOfs +080096ec l O .text 00000080 ExCvt +0800976c l O .text 0000000d LfnOfs 2000060c l O .bss 00000004 FatFs 00000000 l df *ABS* 00000000 unicode.c -0800976c l O .text 000001e0 tbl_lower.4259 -0800994c l O .text 00000100 Tbl -08009a4c l O .text 000001e0 tbl_upper.4260 +0800977c l O .text 000001e0 tbl_lower.4259 +0800995c l O .text 00000100 Tbl +08009a5c l O .text 000001e0 tbl_upper.4260 00000000 l df *ABS* 00000000 uip.c -08006100 l F .text 0000004c chksum -0800614c l F .text 00000042 upper_layer_chksum -08006210 l F .text 00000030 uip_add_rcv_nxt +08006110 l F .text 0000004c chksum +0800615c l F .text 00000042 upper_layer_chksum +08006220 l F .text 00000030 uip_add_rcv_nxt 20000610 l O .bss 00000002 tmp16 20000612 l O .bss 00000002 ipid 20000614 l O .bss 00000004 iss @@ -159,11 +159,11 @@ SYMBOL TABLE: 20000624 l O .bss 00000001 c 20000625 l O .bss 00000001 opt 00000000 l df *ABS* 00000000 uip_arp.c -08007230 l F .text 00000116 uip_arp_update +08007240 l F .text 00000116 uip_arp_update 20000626 l O .bss 00000001 i 20000627 l O .bss 00000001 tmpage 20000628 l O .bss 00000060 arp_table -08009c2c l O .text 00000006 broadcast_ethaddr +08009c3c l O .text 00000006 broadcast_ethaddr 20000688 l O .bss 00000001 c 20000689 l O .bss 00000001 arptime 2000068c l O .bss 00000004 ipaddr @@ -175,18 +175,18 @@ SYMBOL TABLE: 200006d0 l O .bss 00000004 ARPTimerTimeOut 200006d4 l O .bss 00000004 periodicTimerTimeOut 00000000 l df *ABS* 00000000 xcp.c -08007a88 l F .text 00000016 XcpSetCtoError -08009c34 l O .text 00000008 xcpStationId +08007a98 l F .text 00000016 XcpSetCtoError +08009c44 l O .text 00000008 xcpStationId 200006d8 l O .bss 0000004c xcpInfo 00000000 l df *ABS* 00000000 backdoor.c 20000724 l O .bss 00000001 backdoorOpen 20000728 l O .bss 00000004 backdoorOpenTime 00000000 l df *ABS* 00000000 cop.c 00000000 l df *ABS* 00000000 file.c -08007ee0 l F .text 0000002e FileLibByteNibbleToChar -08007f10 l F .text 00000020 FileLibByteToHexString -08007f30 l F .text 00000046 FileLibLongToIntString -08007f78 l F .text 00000066 FileLibHexStringToByte +08007ef0 l F .text 0000002e FileLibByteNibbleToChar +08007f20 l F .text 00000020 FileLibByteToHexString +08007f40 l F .text 00000046 FileLibLongToIntString +08007f88 l F .text 00000066 FileLibHexStringToByte 2000072c l O .bss 00000040 loggingStr 2000076c l O .bss 00000001 firmwareUpdateState 20000770 l O .bss 00000008 eraseInfo @@ -196,27 +196,27 @@ SYMBOL TABLE: 20000d54 l O .bss 00000004 assert_failure_file 20000d58 l O .bss 00000004 assert_failure_line 00000000 l df *ABS* 00000000 can.c -08009e20 l O .text 00000024 canTiming +08009e30 l O .text 00000024 canTiming 00000000 l df *ABS* 00000000 cpu.c 00000000 l df *ABS* 00000000 flash.c -080089e0 l F .text 00000044 FlashGetSector -08008a24 l F .text 00000078 FlashWriteBlock -08008a9c l F .text 00000062 FlashSwitchBlock -08008b00 l F .text 00000084 FlashAddToBlock -08009e44 l O .text 00000030 flashSectorNumToMask -08009e74 l O .text 0000006c flashLayout +080089f0 l F .text 00000044 FlashGetSector +08008a34 l F .text 00000078 FlashWriteBlock +08008aac l F .text 00000062 FlashSwitchBlock +08008b10 l F .text 00000084 FlashAddToBlock +08009e54 l O .text 00000030 flashSectorNumToMask +08009e84 l O .text 0000006c flashLayout 20000d5c l O .bss 00000204 bootBlockInfo 20000f60 l O .bss 00000204 blockInfo 00000000 l df *ABS* 00000000 uart.c -08008d94 l F .text 00000042 UartTransmitByte -08008dd8 l F .text 0000002c UartReceiveByte +08008da4 l F .text 00000042 UartTransmitByte +08008de8 l F .text 0000002c UartReceiveByte 20001164 l O .bss 00000041 xcpCtoReqPacket.7761 200011a8 l O .bss 00000001 xcpCtoRxLength.7762 200011a9 l O .bss 00000001 xcpCtoRxInProgress.7763 200011ac l O .bss 00000004 xcpCtoRxStartTime.7764 00000000 l df *ABS* 00000000 usb.c -08008f84 l F .text 0000007c UsbFifoMgrWrite -08009000 l F .text 00000076 UsbFifoMgrRead +08008f94 l F .text 0000007c UsbFifoMgrWrite +08009010 l F .text 00000076 UsbFifoMgrRead 200011b0 l O .bss 00000040 USB_Tx_Buffer.8952 200011f0 l O .bss 00000004 fifoCtrlFree 200011f4 l O .bss 00000030 fifoCtrl @@ -230,298 +230,298 @@ SYMBOL TABLE: 00000000 l df *ABS* 00000000 timer.c 200018e4 l O .bss 00000004 millisecond_counter 00000000 l df *ABS* 00000000 cstart.c -080094ca l F .text 00000000 zero_loop +080094da l F .text 00000000 zero_loop 00000000 l df *ABS* 00000000 memcpy-stub.c 00000000 l df *ABS* 00000000 memset.c 00000000 l df *ABS* 00000000 ctype_.c 00000000 l df *ABS* 00000000 00000800 l *ABS* 00000000 __STACKSIZE__ -080076d8 g F .text 00000030 ComInit -08008ba0 g F .text 00000050 FlashWrite +080076e8 g F .text 00000030 ComInit +08008bb0 g F .text 00000050 FlashWrite 2000006c g O .data 00000012 USBD_DeviceDesc -080004e4 g F .text 0000001e USBD_USR_ProductStrDescriptor -08005fd4 g F .text 0000004e f_gets -08001780 g F .text 00000010 USB_OTG_ReadDevOutEP_itr -08003a48 g F .text 0000002c FLASH_Unlock -08000684 g F .text 00000010 USB_OTG_BSP_mDelay -080005a0 g F .text 0000000a USBD_USR_DeviceConnected -080036c8 g F .text 00000012 ETH_FlushTransmitFIFO -080086d4 g F .text 0000001c AssertFailure -08004930 g F .text 000000ea get_fat -08008900 g F .text 00000088 CanReceivePacket +080004f4 g F .text 0000001e USBD_USR_ProductStrDescriptor +08005fe4 g F .text 0000004e f_gets +08001790 g F .text 00000010 USB_OTG_ReadDevOutEP_itr +08003a58 g F .text 0000002c FLASH_Unlock +08000694 g F .text 00000010 USB_OTG_BSP_mDelay +080005b0 g F .text 0000000a USBD_USR_DeviceConnected +080036d8 g F .text 00000012 ETH_FlushTransmitFIFO +080086e4 g F .text 0000001c AssertFailure +08004940 g F .text 000000ea get_fat +08008910 g F .text 00000088 CanReceivePacket 2000009c g O .data 00000004 USBD_DCD_INT_fops -08009488 g F .text 00000058 reset_handler -08003c6c g F .text 00000028 GPIO_PinAFConfig -080017e0 g F .text 0000009a DCD_Init -0800943c g F .text 00000022 TimerUpdate -08007ad0 g F .text 00000010 XcpPacketTransmitted -080004b8 g F .text 0000000a usbd_bulk_get_rx_buffer_ptr -0800321c g F .text 0000009e ETH_StructInit -08007708 g F .text 000000a4 ComTask -08003f7c g F .text 0000000c SDIO_ClearFlag -08003044 g F .text 00000018 SD_GetStatus -08003b90 g F .text 0000003e FLASH_ProgramWord -08003ea0 g F .text 0000000c SDIO_SetPowerState -08003394 g F .text 000002be ETH_Init -080011c8 g F .text 00000046 USB_OTG_FlushRxFifo +08009498 g F .text 00000058 reset_handler +08003c7c g F .text 00000028 GPIO_PinAFConfig +080017f0 g F .text 0000009a DCD_Init +0800944c g F .text 00000022 TimerUpdate +08007ae0 g F .text 00000010 XcpPacketTransmitted +080004c8 g F .text 0000000a usbd_bulk_get_rx_buffer_ptr +0800322c g F .text 0000009e ETH_StructInit +08007718 g F .text 000000a4 ComTask +08003f8c g F .text 0000000c SDIO_ClearFlag +08003054 g F .text 00000018 SD_GetStatus +08003ba0 g F .text 0000003e FLASH_ProgramWord +08003eb0 g F .text 0000000c SDIO_SetPowerState +080033a4 g F .text 000002be ETH_Init +080011d8 g F .text 00000046 USB_OTG_FlushRxFifo 20002790 g O .bss 00000002 uip_len 2000061c g O .bss 00000006 uip_ethaddr -08006190 g F .text 0000007e uip_add32 -080076a4 g F .text 0000001c BootInit -080018d0 g F .text 00000032 DCD_EP_Close -080080a4 g F .text 00000038 FileSrecVerifyChecksum -0800187c g F .text 00000054 DCD_EP_Open +080061a0 g F .text 0000007e uip_add32 +080076b4 g F .text 0000001c BootInit +080018e0 g F .text 00000032 DCD_EP_Close +080080b4 g F .text 00000038 FileSrecVerifyChecksum +0800188c g F .text 00000054 DCD_EP_Open 20001928 g O .bss 00000004 SET_TEST_MODE -08007eb4 g F .text 00000022 BackDoorInit -08000a28 g F .text 00000354 USBD_StdDevReq -08000564 g F .text 0000001e USBD_USR_InterfaceStrDescriptor -08003e00 g F .text 00000024 RCC_AHB1PeriphResetCmd -080040a0 g F .text 0000000c USART_GetFlagStatus -08007edc g F .text 00000002 CopService -0800a058 g .text 00000000 _etext +08007ec4 g F .text 00000022 BackDoorInit +08000a38 g F .text 00000354 USBD_StdDevReq +08000574 g F .text 0000001e USBD_USR_InterfaceStrDescriptor +08003e10 g F .text 00000024 RCC_AHB1PeriphResetCmd +080040b0 g F .text 0000000c USART_GetFlagStatus +08007eec g F .text 00000002 CopService +0800a068 g .text 00000000 _etext 20000330 g O .bss 00000004 USBD_ep_status -08002e30 g F .text 0000019a SD_WriteBlock +08002e40 g F .text 0000019a SD_WriteBlock 20000080 g O .data 0000001c USR_cb -080060d0 g F .text 0000002e ff_wtoupper -08001a00 g F .text 00000014 DCD_DevDisconnect -08003998 g F .text 00000050 netdev_read -080062d8 g F .text 00000f1e uip_process -08008d88 g F .text 0000000a FlashGetUserProgBaseAddress -08000590 g F .text 00000008 USBD_USR_DeviceSuspended -08003204 g F .text 00000018 ETH_DeInit -080094e8 g F .text 000000a6 memcpy -0800825c g F .text 00000478 FileTask -08000db4 g F .text 00000138 USBD_StdEPReq -0800942c g F .text 0000000e TimerReset -0800305c g F .text 00000038 disk_initialize +080060e0 g F .text 0000002e ff_wtoupper +08001a10 g F .text 00000014 DCD_DevDisconnect +080039a8 g F .text 00000050 netdev_read +080062e8 g F .text 00000f1e uip_process +08008d98 g F .text 0000000a FlashGetUserProgBaseAddress +080005a0 g F .text 00000008 USBD_USR_DeviceSuspended +08003214 g F .text 00000018 ETH_DeInit +080094f8 g F .text 000000a6 memcpy +0800826c g F .text 00000478 FileTask +08000dc4 g F .text 00000138 USBD_StdEPReq +0800943c g F .text 0000000e TimerReset +0800306c g F .text 00000038 disk_initialize 20002794 g O .bss 00000004 uip_sappdata 08000190 g F .text 00000002 UsbLeaveLowPowerModeHook -0800374c g F .text 00000226 netdev_init -08000988 g F .text 0000001e USBD_CtlSendStatus +0800375c g F .text 00000226 netdev_init +08000998 g F .text 0000001e USBD_CtlSendStatus 20002798 g O .bss 00000004 uip_acc32 -08000d7c g F .text 00000036 USBD_StdItfReq -08006240 g F .text 00000024 uip_ipchksum -080027ac g F .text 000002b6 SD_GetCardInfo -08003f68 g F .text 00000014 SDIO_GetFlagStatus -080009c8 g F .text 00000044 USBD_ParseSetupRequest -08004098 g F .text 00000008 USART_ReceiveData -080076c0 g F .text 00000018 BootTask -08001a14 g F .text 0000055e USBD_OTG_ISR_Handler -08003018 g F .text 0000002c SD_GetState -08008c7c g F .text 00000058 FlashWriteChecksum -08002a64 g F .text 00000084 SD_EnableWideBusOperation -08003ddc g F .text 00000024 RCC_APB2PeriphClockCmd -08003eec g F .text 0000000e SDIO_GetCommandResponse -08001000 g F .text 000000c8 USB_OTG_SelectCore -080077b4 g F .text 00000060 ComTransmitPacket -08003bd0 g F .text 00000090 GPIO_Init -08003094 g F .text 00000032 disk_status -080080dc g F .text 0000017e FileSrecParseLine -08001210 g F .text 0000002a USB_OTG_SetCurrentMode -080062a4 g F .text 00000032 uip_listen -08004074 g F .text 0000001c USART_Cmd -080039e8 g F .text 00000060 netdev_send -0800124c g F .text 0000000a USB_OTG_ReadCoreItr -08000588 g F .text 00000002 USBD_USR_DeviceReset -0800092c g F .text 0000000e USBD_ClrCfg -08003198 g F .text 00000062 disk_ioctl -080008e0 g F .text 00000034 USBD_Init -08008020 g F .text 00000036 FileHandleFirmwareUpdateRequest +08000d8c g F .text 00000036 USBD_StdItfReq +08006250 g F .text 00000024 uip_ipchksum +080027bc g F .text 000002b6 SD_GetCardInfo +08003f78 g F .text 00000014 SDIO_GetFlagStatus +080009d8 g F .text 00000044 USBD_ParseSetupRequest +080040a8 g F .text 00000008 USART_ReceiveData +080076d0 g F .text 00000018 BootTask +08001a24 g F .text 0000055e USBD_OTG_ISR_Handler +08003028 g F .text 0000002c SD_GetState +08008c8c g F .text 00000058 FlashWriteChecksum +08002a74 g F .text 00000084 SD_EnableWideBusOperation +08003dec g F .text 00000024 RCC_APB2PeriphClockCmd +08003efc g F .text 0000000e SDIO_GetCommandResponse +08001010 g F .text 000000c8 USB_OTG_SelectCore +080077c4 g F .text 00000060 ComTransmitPacket +08003be0 g F .text 00000090 GPIO_Init +080030a4 g F .text 00000032 disk_status +080080ec g F .text 0000017e FileSrecParseLine +08001220 g F .text 0000002a USB_OTG_SetCurrentMode +080062b4 g F .text 00000032 uip_listen +08004084 g F .text 0000001c USART_Cmd +080039f8 g F .text 00000060 netdev_send +0800125c g F .text 0000000a USB_OTG_ReadCoreItr +08000598 g F .text 00000002 USBD_USR_DeviceReset +0800093c g F .text 0000000e USBD_ClrCfg +080031a8 g F .text 00000062 disk_ioctl +080008f0 g F .text 00000034 USBD_Init +08008030 g F .text 00000036 FileHandleFirmwareUpdateRequest 20000020 g O .data 0000002c USBD_bulk_cb -08003db8 g F .text 00000024 RCC_APB1PeriphClockCmd -0800548c g F .text 00000098 gen_numname +08003dc8 g F .text 00000024 RCC_APB1PeriphClockCmd +0800549c g F .text 00000098 gen_numname 2000279c g O .bss 00000001 uip_flags -08000974 g F .text 00000012 USBD_CtlContinueRx +08000984 g F .text 00000012 USBD_CtlContinueRx 20001a80 g O .bss 00000010 EnetDmaRx -08003d94 g F .text 00000024 RCC_AHB2PeriphClockCmd -0800022c g F .text 00000042 FileFirmwareUpdateCompletedHook -08007abc g F .text 00000012 XcpIsConnected -08005f18 g F .text 000000bc f_unlink +08003da4 g F .text 00000024 RCC_AHB2PeriphClockCmd +0800022c g F .text 00000054 FileFirmwareUpdateCompletedHook +08007acc g F .text 00000012 XcpIsConnected +08005f28 g F .text 000000bc f_unlink 0800018c g F .text 00000002 UsbEnterLowPowerModeHook -08003654 g F .text 00000026 ETH_MACTransmissionCmd -080093c8 g F .text 00000008 NvmInit -08008b84 g F .text 0000001a FlashInit -08003a74 g F .text 00000012 FLASH_Lock -080093e8 g F .text 00000008 NvmGetUserProgBaseAddress +08003664 g F .text 00000026 ETH_MACTransmissionCmd +080093d8 g F .text 00000008 NvmInit +08008b94 g F .text 0000001a FlashInit +08003a84 g F .text 00000012 FLASH_Lock +080093f8 g F .text 00000008 NvmGetUserProgBaseAddress 20002e64 g .bss 00000000 _ebss -08006024 g F .text 00000034 f_putc -08001790 g F .text 0000000c USB_OTG_ReadDevAllInEPItr -08001714 g F .text 00000034 USB_OTG_EPSetStall -08006058 g F .text 0000002c f_puts -08000504 g F .text 0000001e USBD_USR_ManufacturerStrDescriptor -08009474 g F .text 00000012 UnusedISR -08000598 g F .text 00000008 USBD_USR_DeviceResumed -08003e94 g F .text 0000000c SDIO_ClockCmd -080077ac g F .text 00000008 ComFree -08003f18 g F .text 00000030 SDIO_DataConfig -080005b8 g F .text 000000ae USB_OTG_BSP_Init -08000524 g F .text 0000001e USBD_USR_SerialStrDescriptor -080036a4 g F .text 00000012 ETH_SoftwareReset -0800332c g F .text 00000068 ETH_WritePHYRegister -080015f0 g F .text 00000122 USB_OTG_EP0StartXfer -080009a8 g F .text 0000001e USBD_CtlReceiveStatus -08008e04 g F .text 0000003e UartInit -0800066c g F .text 00000018 USB_OTG_BSP_uDelay -08001258 g F .text 0000000c USB_OTG_InitDevSpeed -080014c0 g F .text 0000012e USB_OTG_EPStartXfer -0800935c g F .text 0000006c UsbReceivePipeBulkOUT -08003c94 g F .text 000000da RCC_GetClocksFreq -080093d8 g F .text 00000008 NvmErase +08006034 g F .text 00000034 f_putc +080017a0 g F .text 0000000c USB_OTG_ReadDevAllInEPItr +08001724 g F .text 00000034 USB_OTG_EPSetStall +08006068 g F .text 0000002c f_puts +08000514 g F .text 0000001e USBD_USR_ManufacturerStrDescriptor +08009484 g F .text 00000012 UnusedISR +080005a8 g F .text 00000008 USBD_USR_DeviceResumed +08003ea4 g F .text 0000000c SDIO_ClockCmd +080077bc g F .text 00000008 ComFree +08003f28 g F .text 00000030 SDIO_DataConfig +080005c8 g F .text 000000ae USB_OTG_BSP_Init +08000534 g F .text 0000001e USBD_USR_SerialStrDescriptor +080036b4 g F .text 00000012 ETH_SoftwareReset +0800333c g F .text 00000068 ETH_WritePHYRegister +08001600 g F .text 00000122 USB_OTG_EP0StartXfer +080009b8 g F .text 0000001e USBD_CtlReceiveStatus +08008e14 g F .text 0000003e UartInit +0800067c g F .text 00000018 USB_OTG_BSP_uDelay +08001268 g F .text 0000000c USB_OTG_InitDevSpeed +080014d0 g F .text 0000012e USB_OTG_EPStartXfer +0800936c g F .text 0000006c UsbReceivePipeBulkOUT +08003ca4 g F .text 000000da RCC_GetClocksFreq +080093e8 g F .text 00000008 NvmErase 08000194 g F .text 00000018 CpuUserProgramStartHook -08000a0c g F .text 0000001a USBD_CtlError -08003974 g F .text 00000022 netdev_init_mac -08003f94 g F .text 000000de USART_Init -080019b0 g F .text 00000040 DCD_EP_ClrStall +08000a1c g F .text 0000001a USBD_CtlError +08003984 g F .text 00000022 netdev_init_mac +08003fa4 g F .text 000000de USART_Init +080019c0 g F .text 00000040 DCD_EP_ClrStall 20000100 g .bss 00000000 _bss -08005d20 g F .text 00000014 f_close -0800058c g F .text 00000002 USBD_USR_DeviceConfigured -08003a94 g F .text 00000054 FLASH_GetStatus -08007ae0 g F .text 00000384 XcpPacketReceived -08006264 g F .text 0000000a uip_tcpchksum -08003a88 g F .text 0000000c FLASH_ClearFlag -08003ae8 g F .text 00000038 FLASH_WaitForLastOperation -08003704 g F .text 00000026 ETH_DMAReceptionCmd -08000584 g F .text 00000002 USBD_USR_Init -080058f4 g F .text 000001a8 f_read -08008d3c g F .text 0000004c FlashDone -08001774 g F .text 0000000c USB_OTG_ReadDevAllOutEp_itr -08002b14 g F .text 00000172 SD_Init -0800123c g F .text 00000010 USB_OTG_IsDeviceMode -08000fac g F .text 0000002a USB_OTG_WritePacket +08005d30 g F .text 00000014 f_close +0800059c g F .text 00000002 USBD_USR_DeviceConfigured +08003aa4 g F .text 00000054 FLASH_GetStatus +08007af0 g F .text 00000384 XcpPacketReceived +08006274 g F .text 0000000a uip_tcpchksum +08003a98 g F .text 0000000c FLASH_ClearFlag +08003af8 g F .text 00000038 FLASH_WaitForLastOperation +08003714 g F .text 00000026 ETH_DMAReceptionCmd +08000594 g F .text 00000002 USBD_USR_Init +08005904 g F .text 000001a8 f_read +08008d4c g F .text 0000004c FlashDone +08001784 g F .text 0000000c USB_OTG_ReadDevAllOutEp_itr +08002b24 g F .text 00000172 SD_Init +0800124c g F .text 00000010 USB_OTG_IsDeviceMode +08000fbc g F .text 0000002a USB_OTG_WritePacket 200027a0 g O .bss 00000004 uip_appdata -08001970 g F .text 00000040 DCD_EP_Stall +08001980 g F .text 00000040 DCD_EP_Stall 200027a4 g O .bss 00000004 uip_conn -080036b8 g F .text 00000010 ETH_GetSoftwareResetStatus -08001748 g F .text 0000002a USB_OTG_EPClearStall +080036c8 g F .text 00000010 ETH_GetSoftwareResetStatus +08001758 g F .text 0000002a USB_OTG_EPClearStall 200018e8 g O .bss 00000040 USB_Rx_Buffer -08009168 g F .text 0000007a UsbTransmitPacket -08002ae8 g F .text 0000002c SD_SelectDeselect -08008858 g F .text 000000a8 CanTransmitPacket +08009178 g F .text 0000007a UsbTransmitPacket +08002af8 g F .text 0000002c SD_SelectDeselect +08008868 g F .text 000000a8 CanTransmitPacket 08000188 g F .text 00000002 UsbConnectHook -08003ebc g F .text 00000030 SDIO_SendCommand -080032bc g F .text 0000006e ETH_ReadPHYRegister +08003ecc g F .text 00000030 SDIO_SendCommand +080032cc g F .text 0000006e ETH_ReadPHYRegister 200027a8 g O .bss 00000068 uip_conns -08001904 g F .text 00000038 DCD_EP_PrepareRx -08001420 g F .text 0000005c USB_OTG_EPActivate -080031fc g F .text 00000008 get_fattime -08007aa0 g F .text 0000001c XcpInit -08000914 g F .text 00000018 USBD_SetCfg -08007fe0 g F .text 0000002c FileInit -08003f48 g F .text 0000000e SDIO_ReadData -08009078 g F .text 000000d8 UsbInit -080074d4 g F .text 000001d0 uip_arp_out -08009150 g F .text 00000016 UsbFree -08008bf0 g F .text 0000008a FlashErase -080004c4 g F .text 0000000e USBD_USR_DeviceDescriptor -08009590 g F .text 0000009e memset -08000270 g F .text 00000020 FileFirmwareUpdateErrorHook -080002f0 g F .text 000000dc main -08003b20 g F .text 0000006e FLASH_EraseSector -08005c74 g F .text 000000ac f_sync -08002fcc g F .text 0000004c SD_SendStatus -080012b4 g F .text 0000011e USB_OTG_CoreInitDev -08001178 g F .text 0000004e USB_OTG_FlushTxFifo -08008058 g F .text 0000004c FileSrecGetLineType -080093f0 g F .text 00000012 NvmDone -0800575c g F .text 0000002a f_mount -08008e44 g F .text 00000066 UartTransmitPacket -080093e0 g F .text 00000008 NvmVerifyChecksum -080089c0 g F .text 0000001e CpuMemCopy -08003efc g F .text 0000001a SDIO_GetResponse +08001914 g F .text 00000038 DCD_EP_PrepareRx +08001430 g F .text 0000005c USB_OTG_EPActivate +0800320c g F .text 00000008 get_fattime +08007ab0 g F .text 0000001c XcpInit +08000924 g F .text 00000018 USBD_SetCfg +08007ff0 g F .text 0000002c FileInit +08003f58 g F .text 0000000e SDIO_ReadData +08009088 g F .text 000000d8 UsbInit +080074e4 g F .text 000001d0 uip_arp_out +08009160 g F .text 00000016 UsbFree +08008c00 g F .text 0000008a FlashErase +080004d4 g F .text 0000000e USBD_USR_DeviceDescriptor +080095a0 g F .text 0000009e memset +08000280 g F .text 00000020 FileFirmwareUpdateErrorHook +08000300 g F .text 000000dc main +08003b30 g F .text 0000006e FLASH_EraseSector +08005c84 g F .text 000000ac f_sync +08002fdc g F .text 0000004c SD_SendStatus +080012c4 g F .text 0000011e USB_OTG_CoreInitDev +08001188 g F .text 0000004e USB_OTG_FlushTxFifo +08008068 g F .text 0000004c FileSrecGetLineType +08009400 g F .text 00000012 NvmDone +0800576c g F .text 0000002a f_mount +08008e54 g F .text 00000066 UartTransmitPacket +080093f0 g F .text 00000008 NvmVerifyChecksum +080089d0 g F .text 0000001e CpuMemCopy +08003f0c g F .text 0000001a SDIO_GetResponse 20000068 g O .data 00000004 USBD_LangIDDesc -08001168 g F .text 0000000e USB_OTG_DisableGlobalInt -0800179c g F .text 00000042 USB_OTG_EP0_OutStart -080010c8 g F .text 00000090 USB_OTG_CoreInit +08001178 g F .text 0000000e USB_OTG_DisableGlobalInt +080017ac g F .text 00000042 USB_OTG_EP0_OutStart +080010d8 g F .text 00000090 USB_OTG_CoreInit 2000032c g O .bss 00000004 USBD_cfg_status -080040ac g F .text 00000120 SystemInit +080040bc g F .text 00000120 SystemInit 20000334 g O .bss 00000004 USBD_default_cfg -08004ab4 g F .text 0000010e put_fat -0800193c g F .text 00000034 DCD_EP_Tx -08005d34 g F .text 00000198 f_lseek -08003f88 g F .text 0000000a SYSCFG_ETH_MediaInterfaceConfig -080073a0 g F .text 00000134 uip_arp_arpin -08007830 g F .text 0000001c ComGetActiveInterfaceMaxTxLen -08008eac g F .text 000000d8 UartReceivePacket +08004ac4 g F .text 0000010e put_fat +0800194c g F .text 00000034 DCD_EP_Tx +08005d44 g F .text 00000198 f_lseek +08003f98 g F .text 0000000a SYSCFG_ETH_MediaInterfaceConfig +080073b0 g F .text 00000134 uip_arp_arpin +08007840 g F .text 0000001c ComGetActiveInterfaceMaxTxLen +08008ebc g F .text 000000d8 UartReceivePacket 080001f0 g F .text 0000000a FileGetFirmwareFilenameHook -080005ac g F .text 0000000a USBD_USR_DeviceDisconnected -08000668 g F .text 00000002 USB_OTG_BSP_EnableInterrupt -08002c88 g F .text 000001a6 SD_ReadBlock -08007348 g F .text 00000058 uip_arp_timer -08000960 g F .text 00000012 USBD_CtlContinueSendData +080005bc g F .text 0000000a USBD_USR_DeviceDisconnected +08000678 g F .text 00000002 USB_OTG_BSP_EnableInterrupt +08002c98 g F .text 000001a6 SD_ReadBlock +08007358 g F .text 00000058 uip_arp_timer +08000970 g F .text 00000012 USBD_CtlContinueSendData 20002810 g O .bss 00000002 uip_listenports 20002814 g O .bss 00000004 uip_draddr -080004d4 g F .text 0000000e USBD_USR_LangIDStrDescriptor -080013d4 g F .text 00000020 USB_OTG_GetDeviceSpeed +080004e4 g F .text 0000000e USBD_USR_LangIDStrDescriptor +080013e4 g F .text 00000020 USB_OTG_GetDeviceSpeed 20000000 g .data 00000000 _data -0800372c g F .text 00000020 ETH_Start +0800373c g F .text 00000020 ETH_Start 20001a90 g O .bss 00000640 RxBuff -08005ecc g F .text 0000004a f_stat -08007ed8 g F .text 00000002 CopInit -0800235c g F .text 0000002c SD_Detect -080086f0 g F .text 00000168 CanInit -080093d0 g F .text 00000008 NvmWrite -08008988 g F .text 00000036 CpuStartUserProgram -08000eec g F .text 0000004c USBD_GetString -08004918 g F .text 00000016 clust2sect +08005edc g F .text 0000004a f_stat +08007ee8 g F .text 00000002 CopInit +0800236c g F .text 0000002c SD_Detect +08008700 g F .text 00000168 CanInit +080093e0 g F .text 00000008 NvmWrite +08008998 g F .text 00000036 CpuStartUserProgram +08000efc g F .text 0000004c USBD_GetString +08004928 g F .text 00000016 clust2sect 20003664 g .bss 00000000 _estack -08004090 g F .text 00000008 USART_SendData -080091e4 g F .text 000000c8 UsbReceivePacket -08008cd4 g F .text 00000068 FlashVerifyChecksum -080078c8 g F .text 00000044 NetTransmitPacket +080040a0 g F .text 00000008 USART_SendData +080091f4 g F .text 000000c8 UsbReceivePacket +08008ce4 g F .text 00000068 FlashVerifyChecksum +080078d8 g F .text 00000044 NetTransmitPacket 200000ec g .data 00000000 _edata -0800800c g F .text 00000014 FileIsIdle -080071f8 g F .text 0000000a htons -08005a9c g F .text 000001d8 f_write -08001264 g F .text 00000050 USB_OTG_EnableDevInt +0800801c g F .text 00000014 FileIsIdle +08007208 g F .text 0000000a htons +08005aac g F .text 000001d8 f_write +08001274 g F .text 00000050 USB_OTG_EnableDevInt 08000000 g O .text 00000188 _vectab -08000544 g F .text 0000001e USBD_USR_ConfigStrDescriptor -08005788 g F .text 0000016a f_open -0800312c g F .text 0000006c disk_write -0800367c g F .text 00000026 ETH_MACReceptionCmd -0800093c g F .text 00000022 USBD_CtlSendData -08000290 g F .text 00000060 FileFirmwareUpdateLogHook +08000554 g F .text 0000001e USBD_USR_ConfigStrDescriptor +08005798 g F .text 0000016a f_open +0800313c g F .text 0000006c disk_write +0800368c g F .text 00000026 ETH_MACReceptionCmd +0800094c g F .text 00000022 USBD_CtlSendData +080002a0 g F .text 00000060 FileFirmwareUpdateLogHook 200020d0 g O .bss 00000640 TxBuff 200000e8 g O .data 00000004 __ctype_ptr__ -0800784c g F .text 00000008 ComIsConnected -080013f4 g F .text 0000002a USB_OTG_EP0Activate -08000fd8 g F .text 00000026 USB_OTG_ReadPacket -08009f54 g O .text 00000101 _ctype_ -080036dc g F .text 00000026 ETH_DMATransmissionCmd -08003e60 g F .text 00000034 SDIO_Init +0800785c g F .text 00000008 ComIsConnected +08001404 g F .text 0000002a USB_OTG_EP0Activate +08000fe8 g F .text 00000026 USB_OTG_ReadPacket +08009f64 g O .text 00000101 _ctype_ +080036ec g F .text 00000026 ETH_DMATransmissionCmd +08003e70 g F .text 00000034 SDIO_Init 080001ac g F .text 00000044 FileIsFirmwareUpdateRequestedHook -080019f0 g F .text 00000010 DCD_EP_SetAddress -08006270 g F .text 00000032 uip_init -08002388 g F .text 0000027e SD_PowerON +08001a00 g F .text 00000010 DCD_EP_SetAddress +08006280 g F .text 00000032 uip_init +08002398 g F .text 0000027e SD_PowerON 2000192c g O .bss 000000ff USBD_StrDesc -08007814 g F .text 0000001c ComGetActiveInterfaceMaxRxLen -08003d70 g F .text 00000024 RCC_AHB1PeriphClockCmd -0800790c g F .text 0000010a NetReceivePacket -080030c8 g F .text 00000064 disk_read -08007e64 g F .text 0000004e BackDoorCheck +08007824 g F .text 0000001c ComGetActiveInterfaceMaxRxLen +08003d80 g F .text 00000024 RCC_AHB1PeriphClockCmd +0800791c g F .text 0000010a NetReceivePacket +080030d8 g F .text 00000064 disk_read +08007e74 g F .text 0000004e BackDoorCheck 20002e64 g .bss 00000000 _stack -08003e24 g F .text 00000024 RCC_APB2PeriphResetCmd +08003e34 g F .text 00000024 RCC_APB2PeriphResetCmd 20002818 g O .bss 00000004 uip_netmask 20000000 g O .data 00000020 usbd_bulk_CfgDesc 2000281c g O .bss 00000004 uip_hostaddr -08006084 g F .text 0000004a ff_convert -08009460 g F .text 00000012 TimerGet -08003eac g F .text 00000010 SDIO_GetPowerState -080092ac g F .text 000000ae UsbTransmitPipeBulkIN +08006094 g F .text 0000004a ff_convert +08009470 g F .text 00000012 TimerGet +08003ebc g F .text 00000010 SDIO_GetPowerState +080092bc g F .text 000000ae UsbTransmitPipeBulkIN 20002780 g O .bss 00000010 EnetDmaTx -08007a18 g F .text 00000070 NetApp +08007a28 g F .text 00000070 NetApp 2000004c g O .data 0000001c USR_desc -08007854 g F .text 00000074 NetInit -0800147c g F .text 00000042 USB_OTG_EPDeactivate -08002608 g F .text 000001a4 SD_InitializeCards -08003c60 g F .text 0000000c GPIO_ReadInputDataBit -08009404 g F .text 00000028 TimerInit -08003f58 g F .text 0000000e SDIO_WriteData +08007864 g F .text 00000074 NetInit +0800148c g F .text 00000042 USB_OTG_EPDeactivate +08002618 g F .text 000001a4 SD_InitializeCards +08003c70 g F .text 0000000c GPIO_ReadInputDataBit +08009414 g F .text 00000028 TimerInit +08003f68 g F .text 0000000e SDIO_WriteData 20002820 g O .bss 00000642 uip_buf 200000a0 g O .data 0000002c USBD_DCD_INT_cb -08007204 g F .text 0000002a uip_send +08007214 g F .text 0000002a uip_send 20002e62 g O .bss 00000002 uip_slen 080001fc g F .text 00000030 FileFirmwareUpdateStartedHook -08001158 g F .text 0000000e USB_OTG_EnableGlobalInt -08003e48 g F .text 00000018 SDIO_DeInit +08001168 g F .text 0000000e USB_OTG_EnableGlobalInt +08003e58 g F .text 00000018 SDIO_DeInit diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.srec b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.srec index b13820eb..fa65acf1 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.srec +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/bin/openbtl_olimex_stm32e407.srec @@ -1,2583 +1,2584 @@ S024000062696E2F6F70656E62746C5F6F6C696D65785F73746D3332653430372E737265639F -S3150800000064360020899400087594000875940008E1 -S31508000010759400087594000875940008759400088E -S31508000020759400087594000875940008759400087E -S31508000030759400087594000875940008759400086E -S31508000040759400087594000875940008759400085E -S31508000050759400087594000875940008759400084E -S31508000060759400087594000875940008759400083E -S31508000070759400087594000875940008759400082E -S31508000080759400087594000875940008759400081E -S31508000090759400087594000875940008759400080E -S315080000A075940008759400087594000875940008FE -S315080000B075940008759400087594000875940008EE -S315080000C075940008759400087594000875940008DE -S315080000D075940008759400087594000875940008CE -S315080000E075940008759400087594000875940008BE -S315080000F075940008759400087594000875940008AE -S31508000100759400087594000875940008759400089D -S31508000110759400087594000875940008759400088D -S31508000120759400087594000875940008759400087D -S31508000130759400087594000875940008759400086D -S31508000140759400087594000875940008759400085D -S31508000150759400087594000875940008759400084D -S31508000160759400087594000875940008759400083D -S31508000170759400087594000875940008759400082D -S315080001807594000875940008704700BF704700BF53 +S3150800000064360020999400088594000885940008B1 +S31508000010859400088594000885940008859400084E +S31508000020859400088594000885940008859400083E +S31508000030859400088594000885940008859400082E +S31508000040859400088594000885940008859400081E +S31508000050859400088594000885940008859400080E +S3150800006085940008859400088594000885940008FE +S3150800007085940008859400088594000885940008EE +S3150800008085940008859400088594000885940008DE +S3150800009085940008859400088594000885940008CE +S315080000A085940008859400088594000885940008BE +S315080000B085940008859400088594000885940008AE +S315080000C0859400088594000885940008859400089E +S315080000D0859400088594000885940008859400088E +S315080000E0859400088594000885940008859400087E +S315080000F0859400088594000885940008859400086E +S31508000100859400088594000885940008859400085D +S31508000110859400088594000885940008859400084D +S31508000120859400088594000885940008859400083D +S31508000130859400088594000885940008859400082D +S31508000140859400088594000885940008859400081D +S31508000150859400088594000885940008859400080D +S3150800016085940008859400088594000885940008FD +S3150800017085940008859400088594000885940008ED +S315080001808594000885940008704700BF704700BF33 S31508000190704700BF08B50020C4F20200012103F031 -S315080001A05FFD10F1FF3018BF012008BD00B589B00A +S315080001A067FD10F1FF3018BF012008BD00B589B002 S315080001B000230093019302930393049305930693F4 -S315080001C0079349F23060C0F60000694605F07EFEE6 +S315080001C0079349F24060C0F60000694605F086FECE S315080001D048B9009B002043B19DF8080080F0100044 S315080001E0C0F3001001E00020FFE709B05DF804FB4A -S315080001F049F23060C0F60000704700BF08B540F20B -S315080002000010C2F20000002380F8243249F250613F -S31508000210C0F600010A2205F0B7FA30B940F2001319 -S31508000220C2F20003012283F8242208BD38B540F241 +S315080001F049F24060C0F60000704700BF08B540F2FB +S315080002000010C2F20000002380F8243249F260612F +S31508000210C0F600010A2205F0BFFA30B940F2001311 +S31508000220C2F20003012283F8242208BD70B540F209 S315080002300013C2F2000393F82432012B05D140F2D1 -S315080002400010C2F2000005F06BFD4FF4A054C4F292 -S31508000250010440252046294603F022FF0028F9D04C -S3150800026049F23060C0F6000005F056FE38BD00BF02 -S3150800027008B540F20013C2F2000393F82432012BAA -S3150800028005D140F20010C2F2000005F049FD08BD94 -S3150800029070B5064640F20013C2F2000393F8243202 -S315080002A0012B10D140F20011C2F2000105F0D4FE74 -S315080002B0002808DA40F20010C2F20000002380F895 -S315080002C0243205F02DFD317889B14FF4A054C4F2DB -S315080002D001048025204603F0DBFE2046294603F06C -S315080002E0DFFE0028F9D016F8011F0029F2D170BDEB -S315080002F080B582B003F0DAFE0120014603F038FD2E -S315080003000124009400278DF804708DF807700225E3 -S315080003108DF805503846C4F20200694603F058FCC9 -S315080003202020214603F05AFD0420214603F020FD33 -S315080003304FF40066C4F2020630460621082203F08E -S3150800034095FC30460721082203F090FC8DF80670CC -S315080003508DF807408DF80450402300938DF805501A -S315080003603046694603F034FC8DF804508023009328 -S315080003703046694603F02CFC2846214603F0F8FC73 -S315080003804FF48066C4F2020630460521092203F0BE -S315080003906DFC30460621092203F068FC60230093B1 -S315080003A08DF804508DF805508DF806708DF80740C5 -S315080003B03046694603F00CFC4FF0C060214603F056 -S315080003C0FBFC07F06FF907F07BF9FCE720230B80AD -S315080003D040F20000C2F20000704700BF08B590F86E -S315080003E01231032B01D108F061FF002008BD00BFC0 -S315080003F008B508F05BFF002008BD00BF08B5084631 -S3150800040008F0ACFF002008BD08B50B7813F0600FA4 -S3150800041028D14B780A2B12D00B2B18D0062B21D1BA -S315080004204B881B0A212B05D1CA88172A28BF1722F1 -S315080004300D4901E00D49172200F080FA12E040F25A -S315080004402831C2F20001012200F078FA0AE08B781E -S3150800045033B940F22833C2F2000300221A6001E0E1 -S3150800046000F0D4FA002008BD120000200900002080 -S3150800047010B50446812101F02BFA2046012101F02E -S3150800048027FA002010BD00BF10B50446812140227E -S31508000490022301F0F3F9204601214022022301F04C -S315080004A0EDF92046012141F6E802C2F20002402396 -S315080004B001F028FA002010BD41F6E800C2F200005B -S315080004C0704700BF12230B8040F26C00C2F2000096 -S315080004D0704700BF04230B8040F26800C2F2000098 -S315080004E0704700BF10B50A4641F62C14C2F2000444 -S315080004F049F26060C0F60000214600F0F7FC20468D -S3150800050010BD00BF10B50A4641F62C14C2F200040D -S3150800051049F27460C0F60000214600F0E7FC204668 -S3150800052010BD00BF10B50A4641F62C14C2F20004ED -S3150800053049F28460C0F60000214600F0D7FC204648 -S3150800054010BD00BF10B50A4641F62C14C2F20004CD -S3150800055049F29460C0F60000214600F0C7FC204628 -S3150800056010BD00BF10B50A4641F62C14C2F20004AD -S3150800057049F29C60C0F60000214600F0B7FC204610 -S3150800058010BD00BF704700BF704700BF704700BF6F -S3150800059008B5FFF7FBFD08BD08B5FFF7F9FD08BD6F -S315080005A008B50120FFF7F0FD08BD00BF08B500201B -S315080005B0FFF7EAFD08BD00BFF0B583B0012001468C -S315080005C003F0D6FB4FF4C853009303278DF8057044 -S315080005D002238DF8043000268DF806608DF8076032 -S315080005E03446C4F202042046694603F0F1FA20466E -S315080005F008210A2203F03AFB20460B210A2203F0BF -S3150800060035FB20460C210A2203F030FB4FF4007319 -S3150800061000938DF805708DF8046001258DF8065055 -S315080006208DF807602046694603F0D2FA4FF48063D6 -S3150800063000938DF806508DF807508DF80570204602 -S31508000640694603F0C5FA20460A210A4603F00EFB5E -S315080006504FF48040294603F0C1FB8020294603F069 -S3150800066099FB03B0F0BD00BF704700BF1C2202E033 -S3150800067000BF013BFCD10138B0F1FF3F01D0134662 -S31508000680F6E7704708B54FF47A7303FB00F0FFF7F7 -S31508000690EDFF08BD10B50446D0F8E8351B69984744 -S315080006A0032384F81231002010BD00BF08B590F866 -S315080006B0123180F81331042380F81231D0F8E83566 -S315080006C0DB689847002008BD08B5D0F8E435DB6933 -S315080006D003B19847002008BD08B5D0F8E4351B6A71 -S315080006E09847002008BD00BF08B5D0F8E4355B6A16 -S315080006F09847002008BD00BF10B50446D0F8E83575 -S315080007005B699847012384F81531002010BD00BFA6 -S3150800071010B50446D0F8E8359B699847D4F8E4350F -S315080007205B68204600219847002084F8150110BD13 -S3150800073010B50446002140220B4601F09FF82046DA -S3150800074080214022002301F099F8012384F8123110 -S31508000750D4F8E8355B68A0789847002010BD00BF3C -S3150800076010B582B00446694600F02EF99DF80010CF -S3150800077001F01F03012B08D013B1022B0AD00EE09B -S315080007802046694600F050F90EE02046694600F01A -S31508000790F5FA09E02046694600F00CFB04E020461D -S315080007A001F0800101F0E4F8002002B010BD00BF9E -S315080007B010B504460A4600294AD190F81131022B91 -S315080007C037D1D0F83821D0F824319A4210D9D21A24 -S315080007D0C0F83821C178012902BFD0F828115B1862 -S315080007E0C0F82831D4F8281192B200F0B9F820E000 -S315080007F0D0F83C21B2FBF3F103FB112161B9934216 -S315080008000AD8D0F840319A4206D20A4600F0A8F82B -S315080008100023C4F840310CE0D4F8E435DB682BB18A -S3150800082094F81221032A01D120469847204600F061 -S31508000830BBF894F81631012B14D1226941F6281316 -S31508000840C2F200031B685360002384F8163109E0DE -S31508000850D0F8E4355B692BB190F81211032901D160 -S3150800086011469847002010BD10B504460A4651BBEC -S3150800087090F81131032B30D1D0F89023D0F87C337F -S315080008809A4213D9D21AC0F89023C178012902BF17 -S31508000890D0F88013C918C0F880139A4228BF1A46A0 -S315080008A0D4F8801392B200F065F816E0D0F8E43573 -S315080008B01B6923B190F81221032A00D198472046D4 -S315080008C000F062F809E0D0F8E4359B692BB190F89E -S315080008D01211032901D111469847002010BD00BF07 -S315080008E0F8B504460D4616461F46FFF765FEC4F8DA -S315080008F0E475069BC4F8E835C4F8EC652046294635 -S3150800090000F06EFFD4F8E8351B6898472046FFF7D5 -S31508000910ABFEF8BD10B50446D0F8E4351B68984719 -S31508000920D4F8E8359B689847002010BD08B5D0F87C -S31508000930E4355B689847002008BD00BF38B5044613 -S315080009400D461346C4F83C21C4F83821022280F823 -S31508000950112100212A4600F0F1FF002038BD00BF12 -S3150800096010B50C4613460021224600F0E7FF00208A -S3150800097010BD00BF10B50C4613460021224600F0F4 -S31508000980C1FF002010BD00BF10B50446042380F83F -S31508000990113100210A460B4600F0D0FF204600F030 -S315080009A0FDFE002010BD00BF10B50446052380F8E3 -S315080009B0113100210A460B4600F0A4FF204600F03C -S315080009C0EDFE002010BD00BF90F8CC350B7090F8F6 -S315080009D0CD354B7090F8CF2590F8CE3503EB022332 -S315080009E04B8090F8D12590F8D03503EB02238B8005 -S315080009F090F8D32590F8D23503EB02239BB2CB802F -S31508000A00C0F84031012380F81131704710B504460B -S31508000A10802100F0ADFF2046002100F0A9FF204606 -S31508000A2000F0BCFE10BD00BF70B582B005460C468E -S31508000A304B78092B00F29C81DFE813F02301820131 -S31508000A409A0144019A0193000A009A010301B80029 -S31508000A506288130A013B062B6DD8DFE803F00415FC -S31508000A60226C6C646800D0F8EC351B6880780DF150 -S31508000A70060198470146E388402B03D095F81231C2 -S31508000A80012B5CD108235FE0D0F8E4359B6A8078B7 -S31508000A900DF106019847014602234370C5F8F00593 -S31508000AA04DE0D2B2052A3AD8DFE802F0030C151E4B -S31508000AB02730D0F8EC355B6880780DF10601984749 -S31508000AC001463CE0D0F8EC359B6880780DF10601CC -S31508000AD09847014633E0D0F8EC35DB6880780DF1AD -S31508000AE00601984701462AE0D0F8EC351B6980785C -S31508000AF00DF106019847014621E0D0F8EC355B690F -S31508000B0080780DF106019847014618E0D0F8EC35D3 -S31508000B109B6980780DF10601984701460FE021464A -S31508000B20FFF774FF27E12146FFF770FF23E121460F -S31508000B30FFF76CFF1FE12146FFF768FF1BE1BDF8D1 -S31508000B400630002B00F01781E288002A00F0138196 -S31508000B50934238BF1A46ADF806202846FFF7EEFE40 -S31508000B6009E1A388EBB9E388DBB9A67806F07F0626 -S31508000B7090F81231032B03D12146FFF747FFFAE01D -S31508000B8080F81461314600F033FF2846FFF7FCFE73 -S31508000B901EB1022385F81231EDE0012385F81231E2 -S31508000BA0E9E028462146FFF731FFE4E0A27840F263 -S31508000BB03833C2F200031A70012A03D92146FFF717 -S31508000BC025FFD8E090F81231022B02D0032B10D063 -S31508000BD033E05AB180F81021032380F81231114608 -S31508000BE0FFF798FE2846FFF7CFFEC4E0FFF7CCFED6 -S31508000BF0C1E05AB9022380F81231002180F8101199 -S31508000C00FFF794FE2846FFF7BFFEB4E090F81011F0 -S31508000C108A420FD0FFF78AFE40F23833C2F2000349 -S31508000C20197885F810112846FFF774FE2846FFF74D -S31508000C30ABFEA0E0FFF7A8FE9DE02146FFF7E6FE23 -S31508000C4099E0E388012B03D02146FFF7DFFE92E007 -S31508000C5090F81231022B02D0032B08D00DE040F297 -S31508000C603431C2F200010122FFF768FE83E005F580 -S31508000C7088710122FFF762FE7DE02146FFF7C6FE76 -S31508000C8079E090F81231023B012B17D840F22C3349 -S31508000C90C2F2000301221A60D0F818312BB140F2D3 -S31508000CA02C33C2F2000303221A60284640F22C3184 -S31508000CB0C2F200010222FFF741FE5CE02146FFF77F -S31508000CC0A5FE58E06388012B0AD1C0F81831D0F880 -S31508000CD0E4359B68214698472846FFF755FE4AE0C3 -S31508000CE0022B48D1A38813F0FF0F44D1026952683A -S31508000CF01B0A013B042B17D8DFE803F003070B0F89 -S31508000D001300012363F306120EE0022363F30612AF -S31508000D100AE0032363F3061206E0042363F30612CC -S31508000D2002E0052363F3061241F62813C2F2000314 -S31508000D301A60012385F816312846FFF725FE1AE0C2 -S31508000D4090F81231023B012B0ED86388012B12D181 -S31508000D500023C0F81831D0F8E4359B682146984737 -S31508000D602846FFF711FE06E02146FFF74FFE02E090 -S31508000D702146FFF74BFE002002B070BD38B5044689 -S31508000D800D4690F81231032B0FD10B79012B09D898 -S31508000D90D0F8E4359B689847EB8843B92046FFF7B7 -S31508000DA0F3FD04E0FFF732FE01E0FFF72FFE002017 -S31508000DB038BD00BF38B505460C468A88D1B2637877 -S31508000DC0012B27D0002B48D0032B40F08D8090F8BC -S31508000DD01231022B02D0032B07D017E011F07F0F38 -S31508000DE000F0828000F0C4FD7EE0638823B911F02C -S31508000DF07F0F01D000F0BCFDD5F8E4359B68284686 -S31508000E00214698472846FFF7BFFD6DE02146FFF7C4 -S31508000E10FDFD69E090F81231022B02D0032B06D0B3 -S31508000E2017E011F07F0F5FD000F0A2FD5CE0638849 -S31508000E30002B59D111F07F0F07D000F0B9FDD5F876 -S31508000E40E4359B682846214698472846FFF79CFDC7 -S31508000E504AE02146FFF7DAFD46E090F81231022B08 -S31508000E6002D0032B06D03CE011F07F0F3CD000F0F7 -S31508000E707FFD39E012F0800F16D001F07F0101EBFB -S31508000E80810100EBC10191F81E3133B140F23033D4 -S31508000E90C2F2000301221A601AE040F23033C2F2AD -S31508000EA0000300221A6013E001EB810100EBC10187 -S31508000EB091F8763333B140F23033C2F2000301229F -S31508000EC01A6005E040F23033C2F2000300221A60CD -S31508000ED0284640F23031C2F200010222FFF72EFD09 -S31508000EE002E02146FFF792FD002038BD70B40646A1 -S31508000EF000B3037843B1044600230133DBB214F888 -S31508000F00015F002DF9D100E000235B000233138056 -S31508000F100B7003234B70327862B1304602230025EA -S31508000F205C1CE4B2CA540233DBB20D5510F8012F2B -S31508000F30002AF5D170BC704770B582B0054600230B -S31508000F4001930320FFF792FBEB681A6901924FF4AD -S31508000F505464C0F20304032607E03046FFF786FB15 -S31508000F60EB681A690192013C1CD0019A002AF4DA4E -S31508000F70019A42F001020192019A1A61EB681B6913 -S31508000F8001934FF45463C0F2030304E0EA6812695C -S31508000F900192013B03D0019A12F0010FF6D103200A -S31508000FA0FFF764FB002002B070BD00BF10B4C47820 -S31508000FB06CB9033300EB8200D0F8D0409B1006D002 -S31508000FC0002251F8040B206001329342F9D1002027 -S31508000FD05DF8044B704700BF70B40332D0F8D06098 -S31508000FE0951009D00A460023346842F8044B0133A9 -S31508000FF09D42F9D101EB8501084670BC704700BFD8 -S3150800100070B40023C37001238370402383800129B1 -S315080010100DD10123C37208230370042343704FF4D0 -S31508001020A073C380022303724FF0A0450EE000258B -S3150800103061B90023C3720C230370062343704FF46F -S31508001040A063C3800025C4F20405FFE7C56005F563 -S3150800105000630361467866B105F510620346002110 -S315080010609A6102F500745C650131203204338E42C0 -S31508001070F6D805F58063436105F58863C0F8CC307A -S315080010800678D6B1344605F5A06102460023C2F8B3 -S3150800109090100133203104329C42F8D86EB105F520 -S315080010A0805305EB063101F580510246C2F8D0306F -S315080010B003F5805304328B42F8D105F56065C0F814 -S315080010C00C51002070BC704738B504460025037AD9 -S315080010D0012B21D1C268936B6FF31043417A09B192 -S315080010E043F480139363E268D3686FF386136FF350 -S315080010F096536FF351436FF3D343D3602046FFF7FC -S315080011001BFFE378012B25D1052363F3440545F03E -S315080011102005E3689D6012E0C268D36843F0400387 -S31508001120D360FFF709FF637A002B0CBF4FF45023F7 -S315080011304FF4E813E26893631420FFF7A3FAE37801 -S31508001140012B07D1E3689D68052262F3440545F043 -S3150800115020059D60002038BDC3689A6842F00102E8 -S315080011609A600020704700BFC3689A6822F001029F -S315080011709A600020704700BF00B583B00023019332 -S31508001180019B43F020030193019B61F38A130193AA -S31508001190C368019A1A61C3681B6901934FF45463C3 -S315080011A0C0F2030304E0C26812690192013B03D04E -S315080011B0019A12F0200FF6D10320FFF757FA002004 -S315080011C003B05DF804FB00BF00B583B000230193AC -S315080011D0019B43F010030193C368019A1A61C3681F -S315080011E01B6901934FF45463C0F2030304E0C26819 -S315080011F012690192013B03D0019A12F0100FF6D141 -S315080012000320FFF733FA002003B05DF804FB00BFA4 -S3150800121008B5C268D3686FF35D736FF39E730129CF -S3150800122008BF43F0005302D009B943F08043D360A6 -S315080012303220FFF727FA002008BD00BFC3685B69A4 -S3150800124013F0010F14BF002001207047C3685A69C4 -S3150800125098691040704700BF03691A6861F3010274 -S315080012601A60704710B40023C2689361C1686FF0B2 -S3150800127080424A61C1684FF0FF344C60C1684A61D8 -S315080012804FF40062C8F20002C1688A61C2789A42C5 -S3150800129008BF102343F0804343F4701343F46053AC -S315080012A043F00C03C26891690B43936100205DF813 -S315080012B0044B704770B5044600252E46D0F80C310D -S315080012C01D6003691A6865F3CC221A60C37A012B7C -S315080012D026D10321FFF7C0FFE2688023536220224C -S315080012E062F31F4563F30F05E1688D62A02161F380 -S315080012F00F0663F31F46E368C3F804614FF490735F -S3150800130063F30F0662F31F46E368C3F808614FF4F8 -S31508001310A07363F30F066FF31F46E368C3F80C6107 -S3150800132020461021FFF728FF2046FFF74DFF2269C8 -S31508001330002313612269536122694FF0FF319161DD -S315080013402269D3616378002B2CD0234600221646E7 -S31508001350FF2599690868C00F002814BF4FF0904010 -S315080013600020086099690E6199698D60013261787B -S3150800137004339142EDD8A9B1234600221646FF252B -S31508001380596D0868C00F002814BF4FF09040002020 -S315080013900860596D0E61596D8D60013204336178AC -S315080013A09142EDD823691A6942F480721A61E3788A -S315080013B0012B09D10323402262F38A0343F48033C5 -S315080013C062F35943226913632046FFF74BFF002057 -S315080013D070BD00BF03699B68C3F34103022B05D0A8 -S315080013E0032B05D0012B03D003207047012070473B -S315080013F0022070470369996883691A68C1F3410135 -S31508001400022912BF6FF30A02032161F30A021A6066 -S3150800141003695A6842F480725A600020704700BF18 -S3150800142030B400224B78012B0B7800EB830401BF04 -S31508001430A469012505FA03F363F30F021FBF646D60 -S31508001440012505FA03F363F31F42236813F4004FDB -S315080014500DD18D6865F30A03CD7865F39343C98882 -S3150800146061F3995343F0805343F4004323600369BF -S31508001470D9690A43DA61002030BC704730B40023CA -S315080014801A464C78012C097800EB810401BFA4693F -S31508001490012505FA01F161F30F021FBF646D0125ED -S315080014A005FA01F161F31F426FF3CF332360036935 -S315080014B0D96921EA0202DA61002030BC704700BF10 -S315080014C070B50B464A78012A53D10A7800EB820296 -S315080014D091690A6809695C692CB96FF312010124DC -S315080014E064F3DC410DE064F312019D682C44013C71 -S315080014F0B4FBF5F565F3DC41DC78012C08BF64F331 -S315080015005E711C7800EB8404A4692161C178012905 -S3150800151006D1197800EB81018C69196961610CE0C3 -S31508001520D97801290CD0596999B101694D6B1C7894 -S31508001530012606FA04F42C434C63D978012908D10C -S315080015400169896811F4807F0CBF42F0005242F0AD -S31508001550805242F00442197800EB810189690A60D9 -S31508001560DA78012A41D1D9681A789B8AFFF71EFDD5 -S315080015703BE00A7800EB8202516D0A6809695C69EA -S3150800158034B99C6864F31201012464F3DC410CE06D -S315080015909D682C44013CB4FBF5F4C4F3090464F3D8 -S315080015A0DC4105FB04F565F312011C7800EB8404A5 -S315080015B0646D2161C178012901BF197800EB8101A9 -S315080015C04C6D196908BF6161D978012906D1597925 -S315080015D011B142F0005201E042F0805242F004425A -S315080015E01B7800EB8300436D1A60002070BD00BFB6 -S315080015F030B482B04B78012B49D1826913681469DB -S3150800160000944C696CB99DF800406FF306048DF898 -S3150800161000409DF80240012565F3C4048DF8024098 -S3150800162017E08D68AC4281BF4D619DF8004065F3B7 -S3150800163006048DF800409EBF9DF8005064F3060529 -S315080016408DF800509DF80240012565F3C4048DF815 -S315080016500240009C1461C478012C01BF0C7800EB91 -S315080016608404A5690C6908BF6C6143F004431360E0 -S31508001670C378002B49D14B69002B46D00369586BB8 -S315080016800A78012101FA02F202435A633DE00B7817 -S3150800169000EB83035A6D1368126900924A6972B99E -S315080016A08C689DF8002064F306028DF800209DF8EA -S315080016B00220012464F3C4028DF802200EE08C682F -S315080016C04C619DF8002064F306028DF800209DF811 -S315080016D00220012464F3C4028DF802200A7800EB84 -S315080016E08202546D009A2261C278012A01BF0A78E3 -S315080016F000EB8202546D0A6908BF626143F0044335 -S315080017000A7800EB8200426D1360002002B030BCFC -S31508001710704700BF4B78012B0CD10B7800EB830088 -S3150800172082691368002BB8BF43F0804343F4001363 -S31508001730136007E00B7800EB8300426D136843F4EF -S3150800174000131360002070474B78012B0B7800EBD1 -S3150800175083000CBF8269426D13686FF35553C978CD -S315080017600239C9B2012998BF43F08053136000209B -S31508001770704700BF03699A69D8691040000C704722 -S3150800178000EB81014B6D9B680269506918407047F0 -S3150800179003699869DB69184080B2704782B00023F4 -S315080017A00093C0238DF803304FF00003012262F343 -S315080017B0C4038DF8023018238DF80030436D009A63 -S315080017C01A61C378012B08D1436D00F2CC525A61D5 -S315080017D0436D1A684FF080221A6002B0704700BF46 -S315080017E070B50446FFF70CFC012384F81231002378 -S315080017F084F8143163787BB3234600220126114608 -S31508001800402583F81D6183F81C21A3F8222183F85B -S315080018101F11C3F82451C3F82811C3F83011013237 -S31508001820607828339042ECD8B0B12346002211469E -S31508001830402583F8751383F87423A3F87A2383F86D -S315080018407713C3F87C53C3F88013C3F8881301329F -S31508001850283360789042ECD82046FFF785FC20466E -S31508001860FFF732FC20460021FFF7D2FC2046FFF79F -S3150800187021FD2046FFF770FC70BD00BF38B511F09A -S31508001880800F0FD001F07F0404EB840500EBC5053B -S3150800189005F58E7185F81C4101254D708A60CB705F -S315080018A0CC800DE001F07F0404EB840500EBC50550 -S315080018B005F55D7185F8744300244C708A60CB7019 -S315080018C0022B04BF00230B71FFF7AAFD002038BDC9 -S315080018D008B5CAB212F0800F01F07F0303EB830349 -S315080018E000EBC30314BF03F58E7303F55D7301F0B4 -S315080018F07F011970D2095A701946FFF7BFFD0020FB -S3150800190008BD00BF38B501F07F0404EB840500EB81 -S31508001910C50505F55D71CA604B6100238B614B7087 -S3150800192085F87443C378012B08BF0A6114B9FFF719 -S315080019305FFE01E0FFF7C4FD002038BD70B501F079 -S315080019407F0404EB840500EBC50505F58E710126B9 -S315080019504E7085F81C41CA600A6100228A614B6193 -S3150800196014B9FFF745FE01E0FFF7AAFD002070BD98 -S3150800197010B5CAB212F0800F1FBF01F07F0303EB48 -S31508001980830300EBC30303F58E7302BF01EB8103E8 -S3150800199000EBC30303F55D7301249C7001F07F011E -S315080019A01970D2095A701946FFF7B4FE002010BD07 -S315080019B010B5CAB212F0800F1FBF01F07F0303EB08 -S315080019C0830300EBC30303F58E7302BF01EB8103A8 -S315080019D000EBC30303F55D7300249C7001F07F01DF -S315080019E01970D2095A701946FFF7AEFE204610BD87 -S315080019F0002361F30A13026911680B4313607047E9 -S31508001A0008B503695A6842F002025A600320FEF7D5 -S31508001A1039FE08BD2DE9F04F87B08146FFF70EFC69 -S31508001A20002800F0A0824846FFF710FC83460028ED -S31508001A3000F09B8210F4002F08BF00205CD04846B7 -S31508001A40FFF798FE0446002854D04D464F46002618 -S31508001A5040F29C08C2F20008CDF800B0C34614F064 -S31508001A60010F40D05FFA86FA48465146FFF788FECE -S31508001A70804610F0010F23D04FF001086B6DC3F8B4 -S31508001A80088099F80330434508D16B6D1A69C2F38B -S31508001A901202D7F87C339B1AC7F88C33DBF8003070 -S31508001AA01B6848465146984799F80330012B07D1D9 -S31508001AB036B999F81131052B02D14846FFF76EFE63 -S31508001AC018F0020F1FBF4FF002086B6D42469A606E -S31508001AD018F0080F07D0DBF800309B68484698478F -S31508001AE06B6D082098600136043528376408B6D12E -S31508001AF0DDF800B00120FFE71BF4802F00F0BC8062 -S31508001B004846FFF745FE0646002800F0B4804F46D3 -S31508001B10CA464FF0000840F29C02C2F20002019247 -S31508001B20CDF808B0CDF8009016F0010F00F09780B8 -S31508001B305FFA88F90098036919695C6B00EB8902FA -S31508001B409269926824FA09F4E401E4B20C43144059 -S31508001B5014F0010F1CD0596B012202FA08F021EA91 -S31508001B60000159631446BB699A60019A13685B6859 -S31508001B700098494698470098C378A34208D1B8F117 -S31508001B80000F05D190F81131042B01D1FFF706FE9D -S31508001B9014F0080F1EBF0824BB699C6014F0100FD0 -S31508001BA01EBF1024BB699C6014F0400F1EBF402462 -S31508001BB0BB699C6014F0020F1EBF0224BB699C60BF -S31508001BC014F0800F4BD05446DAF83021DAF8343165 -S31508001BD0D01ADAF82431BB46BA69916989B29842B3 -S31508001BE038BF03460333B1EB930F34D9DAF83451CF -S31508001BF0DAF83031AB422ED96BB30396009E5D1BE3 -S31508001C00D4F82421AA4238BF15463046D4F82811FC -S31508001C104A46ABB2FFF7CAF9D4F828312B44C4F8C0 -S31508001C202831D4F834312B44C4F83431DBF8183071 -S31508001C309B6903359BB2B3EB950F09D9D4F8345198 -S31508001C40D4F83031AB4205D9002BD8D1039E02E037 -S31508001C50039E00E0039EDBF8183080229A6008F1A4 -S31508001C60010804370AF1280A76087FF45DAFDDF823 -S31508001C7008B0DDF8009001201BF0020F1EBFD9F84E -S31508001C800C3002225A61BBF1000F1FDA99F80A30AC -S31508001C9043B1D9F80C316FF341036FF30003D9F858 -S31508001CA00C211360D9F810305A6822F001025A60E4 -S31508001CB040F29C03C2F200031B689B69484698479A -S31508001CC0D9F80C304FF000425A6101201BF4006F1E -S31508001CD03AD000238DF8173099F812318DF817305D -S31508001CE040F29C03C2F200031B685B6948469847AA -S31508001CF0D9F810309968D9F80C304FF400625A6157 -S31508001D0099F80A30FBB111F0010F1CD099F815317A -S31508001D10012B18D19DF81730DBB2032B13D1D9F854 -S31508001D200C311A6842F001021A60D9F80C311A68A7 -S31508001D3042F003021A604FF46D43CEF200031A69AB -S31508001D4042F006021A6101201BF0080F0CD040F27F -S31508001D509C03C2F200031B68DB6848469847D9F81B -S31508001D600C3008225A6101201BF0100F38D0D9F820 -S31508001D700C309A6922F010029A61D9F80C301C6A64 -S31508001D8004F00F0303EB830309EBC30505F55D7543 -S31508001D90C4F34343022B02D0062B0FD019E0C4F339 -S31508001DA00A14B4B14846E9682246FFF715F9EB6804 -S31508001DB02344EB60AB692344AB610AE0484609F269 -S31508001DC0CC510822FFF708F9C4F30A14AB69234477 -S31508001DD0AB61D9F80C309A6942F010029A61012079 -S31508001DE01BF4805F4CD00024274626462546D9F8A2 -S31508001DF010305A6822F001025A6048462146FFF719 -S31508001E00BBF999F8013063B14B462246FF21986920 -S31508001E108160586D81600132043399F8010082426D -S31508001E20F5D3D9F810304FF0FF329A614FF0010818 -S31508001E3068F30F0468F31F44D9F81030DC6147F0E3 -S31508001E400B07D9F810305F6146F00B06D9F8103049 -S31508001E501E61D9F810301A686FF30A121A604846DC -S31508001E60FFF79CFC45F48055D9F80C305D6140F2CB -S31508001E709C03C2F200031B681B6948469847404604 -S31508001E801BF4005F26D04846FFF7B4FAD9F80C30A1 -S31508001E90DC684846FFF79EFA032801BF002389F845 -S31508001EA002304FF40073A9F804300FBF0923012349 -S31508001EB089F8023040231CBFA9F80430052363F3D0 -S31508001EC08D24D9F80C30DC60D9F80C304FF4005268 -S31508001ED05A6101201BF4801F0DD040F29C03C2F208 -S31508001EE000031B68DB6948469847D9F80C304FF45D -S31508001EF080125A6101201BF4001F0DD040F29C038A -S31508001F00C2F200031B681B6A48469847D9F80C308A -S31508001F104FF400125A6101201BF0804F0DD040F299 -S31508001F209C03C2F200031B685B6A48469847D9F8C7 -S31508001F300C304FF080425A6101201BF0040F15D077 -S31508001F40D9F80C305C6814F0040F07D040F29C03F3 -S31508001F50C2F200031B689B6A48469847D9F80C30BA -S31508001F605C60012002E0002000E0002007B0BDE828 -S31508001F70F08F00BF08B54FF43053C4F201035B6B12 -S31508001F8013F0450F07D14FF43052C4F20102536BD8 -S31508001F9013F0450FFBD013F0040F04D0042001F012 -S31508001FA0EDFF032008BD13F0010F04D0012001F056 -S31508001FB0E5FF012008BD40F2FF5001F0DFFF0020D9 -S31508001FC008BD00BF10B504464FF43053C4F20103F0 -S31508001FD05B6B13F0450F07D14FF43052C4F2010280 -S31508001FE0536B13F0450FFBD013F0040F04D00420F5 -S31508001FF001F0C4FF032010BD13F0010F04D0012027 -S3150800200001F0BCFF012010BD01F070FFA04249D1CC -S3150800201040F2FF5001F0B2FF002001F06FFF4EF2D0 -S315080020200803CFF6FF530340002B3DD000283DDBC5 -S3150800203010F0804F3CD110F0005F3BD110F0805F6C -S315080020403AD110F0006F39D110F0806F38D110F006 -S31508002050807F37D110F4000F36D110F4800F35D1B8 -S3150800206010F4001F34D110F4801F33D110F4002F60 -S3150800207032D110F4802F31D110F4003F30D110F452 -S31508002080803F2FD110F4004F2ED110F4804F2DD160 -S3150800209010F4005F2CD100F00800002814BF1A20A5 -S315080020A0002010BD102010BD002010BD1C2010BD42 -S315080020B0092010BD0A2010BD0B2010BD0C2010BD34 -S315080020C00D2010BD0E2010BD0F2010BD102010BD14 -S315080020D0112010BD122010BD132010BD142010BDF4 -S315080020E0152010BD162010BD172010BD182010BDD4 -S315080020F0192010BD2DE9F04383B00446002001F0F5 -S31508002100FDFE10F0007F18BF0E2040F0238100224C -S315080021100092019240F2F030C2F2000008210160FC -S315080021201025456040218160C2604FF480620261DB -S3150800213001F0C4FE2846FFF745FF002840F0068157 -S3150800214040F2F030C2F2000040F29432C2F20002CD -S315080021501268AA4002603725456040228260002244 -S31508002160C2604FF48062026101F0A8FE2846FFF7BC -S3150800217029FF002840F0EB8040F23C30C2F2000014 -S315080021804FF0FF3303600823436030238360022344 -S31508002190C360002505610123436101F0BDFE40F2DD -S315080021A0F030C2F2000005603326466040228260A5 -S315080021B0C5604FF48062026101F080FE3046FFF789 -S315080021C001FF002840F0C48042F211754FF0000963 -S315080021D04FF43056C4F2010640F22A674FF400184D -S315080021E00FE0404601F0C0FE40B101F0ADFE02AA84 -S315080021F002EB890343F8080C09F10109013D00F0D7 -S31508002200A880736B3B42ECD0082001F0ADFE20B1EC -S31508002210082001F0B3FE04209CE0022001F0A4FE91 -S3150800222020B1022001F0AAFE022093E0202001F04E -S315080022309BFE20B1202001F0A1FE06208AE04FF483 -S31508002240007001F091FE28B14FF4007001F096FE7F -S3150800225007207FE040F2FF5001F090FE009A130637 -S3150800226043EA126302F47F4143EA012302F47F0240 -S3150800227043EA1223012C34D113F4802F08BF2520FA -S3150800228068D040F2F030C2F2000040F29432C2F256 -S3150800229000021268120402603724446040228260F9 -S315080022A00022C2604FF48062026101F007FE2046F8 -S315080022B0FFF788FE002847D140F2F030C2F200004E -S315080022C00222026006244460402282600022C26024 -S315080022D04FF48062026101F0F1FD2046FFF772FEBD -S315080022E038E013F4803F08BF252033D040F2F030A1 -S315080022F0C2F2000040F29432C2F2000212681204DE -S31508002300026037244460402282600022C2604FF493 -S315080023108062026101F0D2FD2046FFF753FEA0B9A4 -S3150800232040F2F030C2F20000002202600624446047 -S3150800233040218160C2604FF48062026101F0BEFDF7 -S315080023402046FFF73FFE05E004E003E002E001E077 -S3150800235000E0042003B0BDE8F08300BF00B583B0F9 -S3150800236001238DF807304FF40060C4F202004FF4E1 -S31508002370006101F075FC10B900238DF807309DF84F -S31508002380070003B05DF804FB2DE9F04782B000248E -S315080023908DF8074040F27C30C2F2000076230375C0 -S315080023A0046044608460C460046101F059FD032040 -S315080023B001F076FD012001F06DFD40F2F030C2F229 -S315080023C00000046044608460C4604FF48063036165 -S315080023D001F074FD4FF48034802501E0013C0CD0F7 -S315080023E0284601F0C1FD0028F8D003233CB140F28D -S315080023F0FF5001F0C3FD002301E00323FFE78DF83A -S3150800240007309DF8073013F0FF0F03D09DF807003B -S31508002410C0B2F5E040F2F030C2F200004FF4D573D6 -S31508002420036008234360402383600023C3604FF49E -S315080024308063036101F042FD4FF43053C4F2010397 -S315080024405A6B12F0450F0ED14FF480334FF43051CA -S31508002450C4F20101013B4A6B12F0450F02D1002B71 -S31508002460F8D103E013B112F0040F04D0042001F0F0 -S3150800247085FD032309E012F0400F08BF002304D0AE -S31508002480402001F07BFD0023FFE78DF807309DF81B -S31508002490073013F0FF0F08D140F26433C2F200038D -S315080024A001221A604FF0804514E040F2F030C2F283 -S315080024B00000002505603724446040228260C5601C -S315080024C04FF48062026101F0F9FC2046FFF77AFDBD -S315080024D08DF8070040F2F030C2F2000000220260D8 -S315080024E03724446040218160C2604FF480620261F3 -S315080024F001F0E4FC2046FFF765FD8DF807009DF81E -S31508002500073013F0FF0F78D1002740F2F034C2F2FB -S315080025100004B846B94645F0004545F4801A4FF41C -S315080025203055C4F20105C4F800903726666040238A -S31508002530A360C4F80C904FF480632361204601F031 -S31508002540BDFC3046FFF73EFD8DF807009DF80730C5 -S3150800255013F0FF0F03D09DF80700C0B250E0C4F88F -S3150800256000A0292363604023A360C4F80C804FF4BD -S3150800257080632361204601F0A1FC6B6B13F0450FC5 -S3150800258003D16B6B13F0450FFBD013F0040F04D087 -S31508002590042001F0F3FC032304E040F2FF5001F0AD -S315080025A0EDFC43468DF807309DF8073013F0FF0F12 -S315080025B003D09DF80700C0B222E0404601F09EFC19 -S315080025C0013701464FF6FE73C043C00F9F4288BFCE -S315080025D000200028A7D19F4206D91B238DF8073073 -S315080025E09DF80700C0B20BE011F0804F1FBF40F204 -S315080025F06433C2F2000302221A609DF80700C0B2D3 -S3150800260002B0BDE8F08700BF38B501F04FFC0028DE -S3150800261000F0BC8040F26433C2F200031B68042B4E -S3150800262000F0B68040F2F030C2F2000000230360EA -S3150800263002224260C0228260C3604FF48063036155 -S3150800264001F03CFCFFF796FC002840F0A38001F05F -S3150800265055FC40F26834C2F200042060042001F000 -S315080026604DFC6060082001F049FCA0600C2001F0D8 -S3150800267045FCE06040F26433C2F200031B68062B97 -S3150800268018BF022B88BF01224AD840F2F030C2F2A6 -S315080026900000002303600322426040228260C36078 -S315080026A04FF48063036101F009FC4FF43053C4F220 -S315080026B001035B6B13F0450F07D14FF43052C4F298 -S315080026C00102536B13F0450FFBD013F0040F04D02F -S315080026D0042001F053FC032038BD13F0010F04D089 -S315080026E0012001F04BFC012038BD01F0FFFB032857 -S315080026F054D140F2FF5001F041FC002001F0FEFBEE -S3150800270010F4604F08BF020C0AD010F4005F47D1DE -S3150800271010F4804F46D110F4004F45D10122FFE74F -S3150800272040F26433C2F200031B68042B33D040F234 -S315080027309433C2F200031A6040F2F030C2F200008D -S315080027401204026009234360C02383600023C36028 -S315080027504FF48063036101F0B1FBFFF70BFC0546FC -S31508002760D8B901F0CBFB40F25434C2F20004206021 -S31508002770042001F0C3FB6060082001F0BFFBA060E5 -S315080027800C2001F0BBFBE060284638BD252038BD8B -S31508002790002038BD38BD002038BD38BD102038BDF2 -S315080027A0132038BD102038BD0F2038BDF0B40146BF -S315080027B040F26433C2F200031C6880F8564040F2C7 -S315080027C09433C2F200031B68A0F8543040F2543325 -S315080027D0C2F200031A68150EE8B286090E70C5F330 -S315080027E083054D7000F003008870C2F30740C87077 -S315080027F0C2F307200871D2B24A715B681A0E120139 -S31508002800CA80C3F30742C88880B240EA1210C8805B -S3150800281002F00F020A72C3F30720C2094A72C0F314 -S3150800282080128A72C0F34012CA72C0F300120A7389 -S3150800283000224A73012C42D800F003008002086186 -S315080028400A69DBB242EA83030B6140F25433C2F2EF -S3150800285000039868020ED3B20C6944EA93140C611B -S31508002860C2F3C2020A7503F007034B75C0F30743A8 -S315080028705A098A75C3F38202CA7503F003035B001B -S315080028800B76C0F307200B7E43EAD0130B760F694D -S315080028900A7E0E7AF6B2012303FA06F60E650232AE -S315080028A003FA02F2D517A2FB062306FB05337E1CA4 -S315080028B0A2FB064506FB0355C1E9124524E0022C96 -S315080028C022D103F03F031B040B6140F25433C2F2DA -S315080028D0000398680B69020E43EA02230B610B6931 -S315080028E0C0F3074213430B61C0F307200A690023AC -S315080028F0013243F10003DB0443EA5233D2048A640B -S31508002900CB644FF400730B65C0F380134B7600F06D -S315080029103F004000887640F25433C2F200031A7A28 -S31508002920887E40EAD210887602F07F02CA76DA6894 -S31508002930130ED8B2C4090C77C3F341144C77C3F30A -S3150800294082038B7700F003008000C877C2F3074341 -S31508002950C87F40EA9310C877C3F3401081F8200077 -S31508002960002081F8210003F0010381F82230C2F328 -S315080029700723DC0981F82340C3F3801481F8244037 -S31508002980C3F3401481F82540C3F3001481F82640A8 -S31508002990C3F3810481F8274003F0030381F8283044 -S315080029A0C2F3460281F82920012481F82A4040F220 -S315080029B06833C2F200031A68150E81F82C50C2F368 -S315080029C007452D02CD85CD8DADB2C2F30726354319 -S315080029D0CD8512060A635A680D6B160E45EA06453A -S315080029E00D630D6BC2F3074645EA06250D630D6BAD -S315080029F0C2F3072635430D63D2B281F834209A68AC -S31508002A00150E81F83550C2F307452D068D638D6B7B -S31508002A10C2F3072645EA06458D638D6BD2B245EAB1 -S31508002A2002228A63DB688A6B42EA13628A63C3F30B -S31508002A30074291F83C5045EA121581F83C5002F0DD -S31508002A400F021202CA87CA8F92B2C3F307252A4316 -S31508002A50CA87C3F3460381F8403081F84140F0BC89 -S31508002A60704700BF10B540F26433C2F200031B681A -S31508002A70032B31D0022B31D8B0F5805F30D0B0F5BA -S31508002A80006F15D10120FFF735FB044650BB40F215 -S31508002A907C30C2F200000022027502604260826049 -S31508002AA04FF40061C160026101F0DAF9204610BDF9 -S31508002AB00020FFF71FFB0446A8B940F27C30C2F29B -S31508002AC0000000220275026042608260C2600261F4 -S31508002AD001F0C6F9204610BD272010BD002010BD04 -S31508002AE0272010BD10BD10BD10B540F2F033C2F25C -S31508002AF00003186007245C6040229A600022DA60AE -S31508002B004FF480621A61184601F0D8F92046FFF79B -S31508002B1059FA10BD2DE9F04184B000268DF80F60F2 -S31508002B200C20012101F024F94FF40064C4F20204D8 -S31508002B30204608210C2201F099F8204609210C228A -S31508002B4001F094F820460A210C2201F08FF820465D -S31508002B500B210C2201F08AF820460C210A4601F0C6 -S31508002B6085F84FF44067C4F20207384602210C2262 -S31508002B7001F07CF84FF47063019301258DF8095034 -S31508002B804FF002088DF808808DF80A608DF80B5012 -S31508002B90204601A901F01CF80423019338460DEBE1 -S31508002BA0030101F015F84FF4805301938DF80B607B -S31508002BB0204601A901F00CF84FF4006701978DF83B -S31508002BC008808DF80B60204601A901F001F8384607 -S31508002BD0294601F003F94FF48000294601F0C8F8A8 -S31508002BE001F032F9FFF7D0FB8DF80F009DF80F3092 -S31508002BF013F0FF0F03D09DF80F00C0B240E0FFF7B7 -S31508002C0003FD8DF80F009DF80F3013F0FF0F03D06A -S31508002C109DF80F00C0B233E040F27C30C2F20000EB -S31508002C2000230375036043608360C360036101F09A -S31508002C3017F940F29830C2F20000FFF7B7FD8DF899 -S31508002C400F009DF80F3013F0FF0F0BD140F29833A9 -S31508002C50C2F20003B3F8540000040021FFF744FF52 -S31508002C608DF80F009DF80F3013F0FF0F05D14FF4C4 -S31508002C700060FFF7F7FE8DF80F009DF80F00C0B251 -S31508002C8004B0BDE8F08100BF2DE9F84307461646B3 -S31508002C90BDF8204040F23932C2F20002002111701C -S31508002CA040F27832C2F20002116040F20440C2F2E9 -S31508002CB0000001604FF43052C4F20102D16240F2C2 -S31508002CC06431C2F200010A68022A02BF760A46EA9D -S31508002CD0C3564FF40074A04640F2F030C2F200002A -S31508002CE0046010224260402282600022C2604FF4D3 -S31508002CF08062026101F0E2F84FF48034802501E039 -S31508002D00013C04D0284601F02FF90028F8D01020FD -S31508002D10FFF758F9002840F0868040F23C30C2F2AE -S31508002D2000004FF0FF330360C0F8048090238360EF -S31508002D300223C360002505610123436101F0ECF815 -S31508002D4040F2F030C2F200000660112444604022CE -S31508002D508260C5604FF48062026101F0AFF82046D8 -S31508002D60FFF730F9002860D14FF43055C4F2010559 -S31508002D7040F22A664FF400484FF000090BE040463F -S31508002D8001F0F2F838B14C4601F0DEF83851043457 -S31508002D90202CF9D120376B6B3342F0D0082001F094 -S31508002DA0E3F828B1082001F0E9F80420BDE8F88323 -S31508002DB0022001F0D9F828B1022001F0DFF802203C -S31508002DC0BDE8F883202001F0CFF828B1202001F0D3 -S31508002DD0D5F80620BDE8F8834FF4007001F0C4F872 -S31508002DE04FF0FF344FF4001558B14FF4007001F05E -S31508002DF0C5F80720BDE8F88301F0A6F847F8040BE4 -S31508002E00013C284601F0B0F808B1002CF4D140F294 -S31508002E10FF5001F0B3F840F2CC03C2F200030020E1 -S31508002E201860BDE8F883BDE8F883BDE8F88300BFFD -S31508002E302DE9F84F80461446BDF8282040F239306F -S31508002E40C2F200000021017040F27830C2F20000A0 -S31508002E50016040F20440C2F2000001604FF43050B5 -S31508002E60C4F20100C16240F26431C2F2000109688D -S31508002E70022902BF640A44EAC3544FF40072164694 -S31508002E8040F2F030C2F20000026010254560402290 -S31508002E9082600022C2604FF48062026101F00EF87F -S31508002EA02846FFF78FF8002840F08B8040F2F03074 -S31508002EB0C2F20000046018244460402282600022A6 -S31508002EC0C2604FF48062026100F0F8FF2046FFF707 -S31508002ED079F8002877D140F23C30C2F200004FF072 -S31508002EE0FF3303604660902383600024C460046156 -S31508002EF00123436101F010F8A3464FF43054C4F29D -S31508002F00010440F21A654FF4804625E0304601F088 -S31508002F102BF808B3CBF5007ABAF11F0F10D85FEA81 -S31508002F209A0A19D0C146002759F8040B01F014F87B -S31508002F3001375745F8D14FEA8A0AD044D3440BE003 -S31508002F40002758F8070001F007F80437202FF8D1B2 -S31508002F5008F120080BF1200B636B2B42D6D0082012 -S31508002F6001F002F828B1082001F008F80420BDE8AD -S31508002F70F88F022000F0F8FF28B1022000F0FEFFCB -S31508002F800220BDE8F88F102000F0EEFF28B11020CF -S31508002F9000F0F4FF0520BDE8F88F4FF4007000F04C -S31508002FA0E3FF30B14FF4007000F0E8FF0720BDE8FA -S31508002FB0F88F40F2CC03C2F2000300201860BDE887 -S31508002FC0F88FBDE8F88FBDE8F88F00BF38B505461D -S31508002FD0F8B140F2F030C2F2000040F29432C2F288 -S31508002FE000021268120402600D24446040228260C6 -S31508002FF00022C2604FF48062026100F05FFF204643 -S31508003000FEF7E0FF044630B900F078FF2860204656 -S3150800301038BD262038BD38BD00B583B000230193DE -S31508003020FFF79CF9012818BFFF2008D101A8FFF770 -S31508003030CDFF18B90198C0F3432000E0FF2003B084 -S315080030405DF804FB08B5FFF7E7FF042804D0FF285E -S3150800305014BF0120022008BD002008BD00B597B0A6 -S31508003060FFF758FD60B940F2D003C2F200031A78A0 -S3150800307002F0FE021A706846FFF798FB002006E089 -S3150800308040F2D003C2F2000301221A70032017B0DF -S315080030905DF804FB08B540F2D003C2F20003012232 -S315080030A01A7050B9FFF7CEFF38B940F2D003C2F212 -S315080030B000031A7802F0FE021A7040F2D003C2F238 -S315080030C00003187808BD00BF2DE9F043ADF5037D70 -S315080030D088461746D0B11CE0013BDCB24FF0000928 -S315080030E04FF40075E619009502A872024B46FFF7E1 -S315080030F0CBFD80B9FFF7A6FF0128FBD008EB4420DB -S3150800310002A92A4606F0F0F94CB906E001204BB1AF -S31508003110E2E7012006E0012004E0002002E0013C8D -S31508003120E4B2DFE70DF5037DBDE8F0832DE9F04352 -S31508003130ADF5037D0F469046F0B120E0013BDCB2C9 -S315080031404FF400754FF0000902A807EB44212A4600 -S3150800315006F0CAF904EB0806009502A872024B4667 -S31508003160FFF766FE052818BF00280AD1FFF76AFF91 -S315080031700128FBD04CB906E001204BB1DEE701205F -S3150800318006E0012004E0002002E0013CE4B2DBE7AF -S315080031900DF5037DBDE8F08310B596B0144640F2F0 -S315080031A0D003C2F200031B7813F0010F18BF0320E7 -S315080031B021D103291AD8DFE801F0020410150020EE -S315080031C019E0A8B96846FFF7F1FA129B5B0A139A49 -S315080031D043EAC253236000200DE04FF400731380C6 -S315080031E0002008E030B92023136004E0042002E040 -S315080031F0002000E0002016B010BD00BF0020C4F279 -S31508003200AA20704708B54FF00070012100F0F8FDBC -S315080032104FF00070002100F0F3FD08BD00230360A5 -S3150800322043608360C360036143618361C361036272 -S3150800323043628362C362036343638363C363402257 -S315080032400264202242648364C3640365436583651C -S31508003250C3650366802242668366C366036743675F -S315080032608367C3674FF08062C0F880204FF0007212 -S31508003270C0F884204FF08071C0F888104FF4001110 -S31508003280C0F88C10C0F89030C0F89430C0F8983068 -S31508003290C0F89C30C0F8A030C0F8A420C0F8A83008 -S315080032A04FF40032C0F8AC204FF48072C0F8B0205A -S315080032B0C0F8B430C0F8B830704700BF82B00023F9 -S315080032C001934FF40043C4F202031A6902F01C0288 -S315080032D0890101F4F8610A43C00281B20A4342F047 -S315080032E001021A614FF40042C4F202024FF6FE715F -S315080032F0C0F20401019B01330193136913F0010F16 -S3150800330002D0019B8B42F5D9019A4FF6FF73C0F2A2 -S3150800331004039A421FBF4FF40043C4F202035869DC -S3150800332080B208BF002002B0704700BF10B483B057 -S31508003330002301934FF40043C4F202031C6904F00E -S315080033401C0444F00304890101F4F8610C43C0022B -S3150800335081B20C435A611C614FF40042C4F2020266 -S315080033604FF6FE71C0F20401019B01330193136904 -S3150800337013F0010F02D0019B8B42F5D901984FF645 -S31508003380FF73C0F20403C01A18BF012003B05DF82A -S31508003390044B7047F0B587B004460D4600230593E5 -S315080033A000934FF40043C4F202031E6926F01C067C -S315080033B001A800F06FFC02994FF45343CFF6CE6391 -S315080033C00B444EF2BF12C0F2E402934298BF46F095 -S315080033D008061AD94FF24013CFF6E9530B4447F6BD -S315080033E03F02C0F27D12934298BF46F00C060CD9F4 -S315080033F04FF4F243CFF66C430B444FF4B442C0F299 -S315080034006222934288BF46F004064FF40043C4F292 -S3150800341002031E61284600214FF40042FFF786FF8B -S31508003420002800F00F814FF080630593059B2BB1B0 -S31508003430059B013B0593059B002BF9D12368002BBF -S315080034405ED001274FF6FE76C0F20406009B0133D4 -S31508003450009328463946FFF731FF00F0040083B28F -S3150800346013B9009BB342F1D9009A4FF6FF73C0F225 -S3150800347004039A4208BF002000F0E9800021009169 -S3150800348028464FF48052FFF751FF002800F0DC80F1 -S3150800349001274FF6FE76C0F20406009B013300931F -S315080034A028463946FFF70AFF00F0200080B210B917 -S315080034B0009BB342F1D9009A4FF6FF73C0F204039A -S315080034C09A4208BF002000F0C280002300932846D5 -S315080034D01021FFF7F3FE00F004039BB21BB14FF473 -S315080034E00063236201E00023236200F002039BB21B -S315080034F013B1002363611BE04FF48043636117E057 -S315080035006369226AD20842EA53022846002192B227 -S31508003510FFF70CFF002800F099806FF07F430593B2 -S31508003520059B2BB1059B013B0593059B002BF9D108 -S315080035304FF40043C4F20203196848F20F12CFF69B -S3150800354020720A40A06861680843E1680843216957 -S31508003550084361690843A1690843E1690843216A88 -S315080035600843616A0843A16A0843E16A0843216B74 -S315080035700843616B01430A431A60E16BA26B11436E -S31508003580226C1143626C1143A26C1143E26C114325 -S31508003590226D1143626D0A435A60A26D9A60E26D0C -S315080035A0DA609869A16E626E1143E26E1143226F6A -S315080035B01143626F11434FF6417202400A43216E6E -S315080035C042EA01419961E16FA26F0A43DA6103F5A4 -S315080035D08053996943F62372CFF6DE020A40D4F87F -S315080035E08400D4F880100843D4F888100843D4F827 -S315080035F08C100843D4F890100843D4F89410084364 -S31508003600D4F898100843D4F89C100843D4F8A010AE -S3150800361001430A439A61D4F8A410D4F8A8201143A8 -S3150800362041F40001D4F8AC201143D4F8B02011437A -S31508003630D4F8B8200A43D4F8B41042EA81021A60D2 -S31508003640012004E0002002E0002000E0002007B08E -S31508003650F0BD00BF40B14FF40043C4F202031A683C -S3150800366042F008021A6070474FF40043C4F202039E -S315080036701A6822F008021A60704700BF40B14FF47A -S315080036800043C4F202031A6842F004021A60704743 -S315080036904FF40043C4F202031A6822F004021A60C7 -S315080036A0704700BF4FF41043C4F202031A6842F091 -S315080036B001021A60704700BF4FF41043C4F20203B8 -S315080036C0186800F0010070474FF41043C4F2020373 -S315080036D09A6942F480129A61704700BF40B14FF46C -S315080036E01043C4F202039A6942F400529A61704781 -S315080036F04FF41043C4F202039A6922F400529A6105 -S31508003700704700BF40B14FF41043C4F202039A69F0 -S3150800371042F002029A6170474FF41043C4F2020362 -S315080037209A6922F002029A61704700BF08B5012023 -S31508003730FFF790FFFFF7C8FF0120FFF79FFF012063 -S31508003740FFF7CCFF0120FFF7DDFF08BD2DE9F047A5 -S31508003750B2B04FF0F050012100F00AFB47200121DA -S3150800376000F006FB4FF48040012100F037FB0120F2 -S3150800377000F00AFC8E23309300268DF8C6600224DA -S315080037808DF8C4408DF8C7608DF8C5403746C4F239 -S315080037900207384630A900F01BFA384601210B22E9 -S315080037A000F064FA384621460B2200F05FFA3846E4 -S315080037B003210B2200F05AFA384607210B2200F0A3 -S315080037C055FA4FF4006330938DF8C6608DF8C440FF -S315080037D08DF8C7608DF8C5404FF4C057C4F202078C -S315080037E0384630A900F0F4F938460B210A4600F0AD -S315080037F03DFA322330938DF8C6608DF8C4408DF8B3 -S31508003800C7608DF8C5404FF40068C4F20208404608 -S3150800381030A900F0DDF9404601210B2200F026FA16 -S31508003820404604210B2200F021FA404605210B22CE -S3150800383000F01CFA4FF4C04330938DF8C6608DF83B -S31508003840C4408DF8C7608DF8C540384630A900F0E9 -S31508003850BFF938460D210B2200F008FA38460E212A -S315080038600B2200F003FAFFF7CDFCFFF71BFFFFF76B -S3150800387023FF0128FBD001A8FFF7D0FC0024019400 -S3150800388008944FF400730B930C944FF000430F9376 -S31508003890202312931494159416944FF400630993F5 -S315080038A04FF4804306934FF0020A4FF003094CF297 -S315080038B0F108C0F2070841F21967C0F22207A6B25A -S315080038C030465146FFF7FAFC60F31F453046494635 -S315080038D0FFF7F4FC60F30F05BD4218BF454503D05A -S315080038E00134202CEBD109E0202C07D949F2B46029 -S315080038F0C0F600004FF4A17104F0ECFE01A8A1B2D5 -S31508003900FFF748FD38B949F2B460C0F6000040F246 -S31508003910471104F0DFFE42F28073C2F2000342F25E -S31508003920D002C2F200029A60DB6000221A605A6076 -S315080039304FF41041C4F202010B6141F68023C2F232 -S31508003940000341F69020C2F2000098601A60DB601E -S315080039505A6040225A719A884FF4C86060F30C0284 -S315080039609A808022DA70CB60FFF7E0FE32B0BDE8BD -S31508003970F08700BF40F21C63C2F2000308221A70E7 -S3150800398000225A7027229A706922DA705B221A710D -S3150800399045225A71704700BF38B541F68023C2F2F6 -S315080039A00003DB78DB091DD141F68024C2F200044E -S315080039B06588C5F30D0542F62000C2F2000041F6FF -S315080039C09021C2F200012A4605F08EFDE37843F005 -S315080039D08003E3704FF41043C4F2020301229A6095 -S315080039E0284638BD002038BD38B542F28073C2F289 -S315080039F00003DB78DB0900D0FEE742F29073C2F2DF -S31508003A0000031D8842F2D004C2F20004204642F6A2 -S31508003A102001C2F200012A4605F066FD42F28073D3 -S31508003A20C2F200039C6000221A60102199705A6045 -S31508003A30C5F30B059D80B022DA704FF41043C4F22B -S31508003A40020301225A6038BD4FF47053C4F20203D0 -S31508003A501B69002B0DDA4FF47053C4F2020340F2CF -S31508003A602312C4F267525A6048F6AB12CCF6EF52EC -S31508003A705A6070474FF47053C4F202031A6942F051 -S31508003A8000421A61704700BF4FF47053C4F2020334 -S31508003A90D86070474FF47053C4F20203DB6813F41E -S31508003AA0803F1BD14FF47053C4F20203DB6813F056 -S31508003AB0100F15D14FF47053C4F20203DB6813F0EC -S31508003AC0EF0F0FD14FF47053C4F20203D86800F019 -S31508003AD0020000280CBF0820072070470120704705 -S31508003AE0052070470620704700B583B008238DF877 -S31508003AF00730FFF7CFFF8DF807009DF80730DBB2D8 -S31508003B00012B08D1FFF7C6FF8DF807009DF807308F -S31508003B10DBB2012BF6D09DF8070003B05DF804FB75 -S31508003B2070B50546002659B1012908BF4FF48076BD -S31508003B3006D0022914BF4FF440764FF40076FFE70B -S31508003B40FFF7D2FF082821D14FF47054C4F20204BB -S31508003B50236923F44073236123691E43266123697D -S31508003B6023F0F8032361236943F002031D4325610B -S31508003B70236943F480332361FFF7B6FF236923F0F3 -S31508003B8002032361236923F0F803236170BD00BF94 -S31508003B9070B505460E46FFF7A7FF082816D14FF45D -S31508003BA07054C4F20204236923F440732361236921 -S31508003BB043F400732361236943F0010323612E60F4 -S31508003BC0FFF792FF236923F00103236170BD00BF4D -S31508003BD0F0B400230125032605FA03F20C68144005 -S31508003BE0944238D107685A0006FA02F4E44327409B -S31508003BF00760076891F804C00CFA02FC4CEA07074C -S31508003C0007600F79013FFFB2012F16D887683C403D -S31508003C10846087684C7994403C43846047689CB2CA -S31508003C2005FA04FC27EA0C074760476891F806C0BE -S31508003C300CFA04F4A4B23C434460C7689CB264001E -S31508003C4006FA04F427EA0404C460C468CF7907FABC -S31508003C5002F22243C2600133102BBDD1F0BC70477B -S31508003C60036919420CBF00200120704710B401F007 -S31508003C7007039B00C90800EB8100046A0F219940DD -S31508003C8024EA01010162016A9A40114301625DF862 -S31508003C90044B704710B44FF46053C4F202039B6898 -S31508003CA003F00C03042B09D0082B0DD0002B36D1BA -S31508003CB04FF41053C0F2F403036035E04FF4D853C1 -S31508003CC0C0F2B70303602FE04FF46053C4F2020357 -S31508003CD05C685A6802F03F0214F4800F4FF4605390 -S31508003CE0C4F202035B68C3F3881319BF4FF4D854B0 -S31508003CF0C0F2B7044FF41054C0F2F404B4FBF2F166 -S31508003D0001FB03F14FF46053C4F202035A68C2F38D -S31508003D10014201325200B1FBF2F3036004E04FF4B2 -S31508003D201053C0F2F40303604FF46052C4F2020267 -S31508003D309168C1F3031140F2D403C2F20003595C3F -S31508003D40C9B2046824FA01F141609468C4F3822474 -S31508003D501C5DE4B221FA04F484609268C2F342322C -S31508003D609B5CDBB2D940C1605DF8044B704700BF6D -S31508003D7039B14FF46053C4F202031A6B1043186347 -S31508003D8070474FF46053C4F202031A6B22EA00002C -S31508003D901863704739B14FF46053C4F202035A6B83 -S31508003DA01043586370474FF46053C4F202035A6BCA -S31508003DB022EA00005863704739B14FF46053C4F2E1 -S31508003DC002031A6C1043186470474FF46053C4F228 -S31508003DD002031A6C22EA00001864704739B14FF4DE -S31508003DE06053C4F202035A6C1043586470474FF488 -S31508003DF06053C4F202035A6C22EA00005864704702 -S31508003E0039B14FF46053C4F202031A6910431861BA -S31508003E1070474FF46053C4F202031A6922EA00009D -S31508003E201861704739B14FF46053C4F202035A6AF5 -S31508003E301043586270474FF46053C4F202035A6A3B -S31508003E4022EA00005862704708B54FF40060012165 -S31508003E50FFF7E8FF4FF400600021FFF7E3FF08BD16 -S31508003E6010B44FF43053C4F201035C6841688268A9 -S31508003E701143C26811430268114302690A4324F4D4 -S31508003E80FD4424F07F042243017D0A435A605DF80D -S31508003E90044B704748F2A003C4F225231860704704 -S31508003EA04FF43053C4F20103186070474FF430538F -S31508003EB0C4F20103186800F00300704710B40268E2 -S31508003EC04FF43053C4F201039A60DC6824F4FF64AB -S31508003ED024F00704826841681143C2680A430069EE -S31508003EE002432243DA605DF8044B70474FF43053BF -S31508003EF0C4F201031869C0B2704700BF82B000233C -S31508003F00019342F61443C4F2010303440193019B4F -S31508003F10186802B0704700BF10B402684FF43053F7 -S31508003F20C4F201035A6242689A62DC6A24F0F70412 -S31508003F30C2688168114302690A4340690243224301 -S31508003F40DA625DF8044B70474FF43053C4F201034C -S31508003F50D3F88000704700BF4FF43053C4F2010312 -S31508003F60C3F88000704700BF4FF43053C4F2010312 -S31508003F705B6B18420CBF0020012070474FF430538A -S31508003F80C4F2010398637047DC23C4F22723186040 -S31508003F90704700BF30B585B004460D46038A23F442 -S31508003FA040531B041B0CCA8813430382838923F4DA -S31508003FB0B05323F00C031B041B0C0989AA880A4377 -S31508003FC069890A4392B213438381838A23F440732F -S31508003FD01B041B0CAA89134383826846FFF75AFE03 -S31508003FE04FF4A052C4F201024FF48053C4F2010305 -S31508003FF09C4218BF94420CBF039A029AA3891BB22B -S31508004000002B02EB820202EB8202BDBF2B685B002B -S31508004010B2FBF3F22968A4BF8900B2FBF1F248F2B9 -S315080040201F53C5F2EB13A3FB02135B091D016420A2 -S3150800403003FB1023A08900B200280BDADB00323319 -S3150800404048F21F51C5F2EB11A1FB0321C1F342113E -S3150800405029430AE01B01323348F21F51C5F2EB111E -S31508004060A1FB0321C1F34311294389B2218105B07C -S3150800407030BD00BF29B183899BB243F400538381C5 -S315080040807047838923F400531B041B0C83817047F4 -S31508004090C1F30801818070478088C0F30800704723 -S315080040A0038819420CBF00200120704782B04FF4E4 -S315080040B06053C4F202031A6842F001021A60002231 -S315080040C09A60196821F0847121F48031196043F2ED -S315080040D01001C2F200415960196821F48021196063 -S315080040E0DA60009201921A6842F480321A604FF43C -S315080040F06052C4F20202136803F400330193009B72 -S3150800410001330093019B1BB9009BB3F5A06FF2D155 -S315080041104FF46053C4F202031B6813F4003F14BF44 -S31508004120012300230193019B012B46D14FF46053D1 -S31508004130C4F202031A6C42F080521A644FF4E04249 -S31508004140C4F20002116841F4404111609A689A600D -S315080041509A6842F400429A609A6842F4A0529A60B9 -S3150800416045F20C42C0F240725A601A6842F08072F8 -S315080041701A604FF46052C4F20202136813F0007F0B -S31508004180FBD04FF47053C4F2020340F205621A6082 -S315080041904FF46053C4F202039A6822F003029A604D -S315080041A09A6842F002029A604FF46052C4F2020220 -S315080041B0936803F00C03082BFAD14FF46D43CEF243 -S315080041C000034FF000629A6002B0704732B182185D -S315080041D011F8013B00F8013B9042F9D1704700BF46 -S315080041E0CA7E8B7E43EA02230278032A01BF487DF2 -S315080041F00A7D42EA002243EA02431846704700BF96 -S3150800420000F10B010023DA0142EA530310F8012BEF -S3150800421052FA83F3DBB28842F5D11846704700BFDD -S3150800422010B504460A46407804F134010123FEF726 -S315080042304BFFD0BB94F8332294F8323243EA022279 -S3150800424012B24AF65523CFF6FF739A422FD194F845 -S315080042506D2094F86C301B0443EA026294F86A30C5 -S31508004260134394F86B2043EA022222F07F4244F279 -S315080042704613C0F254039A421BD094F8890094F866 -S3150800428088301B0443EA006094F88630034394F8A8 -S31508004290870043EA002020F07F4044F24613C0F22C -S315080042A05403C01A18BF012010BD032010BD0220F8 -S315080042B010BD002010BD00BF2DE9F041044603796A -S315080042C01BB3056B00F13407407839462A460123AB -S315080042D0FEF72CFFE0B900232371636A9D421AD3C7 -S315080042E0E26913449D4219D2E678012E19D94FF096 -S315080042F00108E2691544607839462A464346FEF7BE -S3150800430015FF013E012EF4D10EE00020BDE8F08134 -S315080043100120BDE8F0810020BDE8F0810020BDE85D -S31508004320F0810020BDE8F0810020BDE8F08100BFE3 -S3150800433038B504460D46036B8B420CD0FFF7BCFF1D -S3150800434058B9607804F134012A460123FEF7BCFE09 -S3150800435028B9256338BD002038BD012038BD0120A5 -S3150800436038BD00BF08B588B103688BB1197889B123 -S31508004370D988828891420FD15878FEF78BFE00F0D3 -S315080043800100002814BF0320002008BD092008BD2D -S31508004390092008BD092008BD092008BD2DE9F041FE -S315080043A0154603681C78303C092C00F2B5815A780A -S315080043B03A2A40F0B1810233036000230B60002CD7 -S315080043C040F0718140F20C63C2F200031C68002CB5 -S315080043D000F06C810C6023788BB16078FEF75AFE8A -S315080043E010F0010F0BD1002D00F0638100F00400DE -S315080043F0C0B2002814BF0A200020BDE8F0810020C2 -S3150800440020706070FEF72AFE10F0010F40F054810C -S315080044101DB110F0040F40F0528120460021FFF72D -S31508004420FFFE012818BF002517D194F8F631002B96 -S3150800443000F0488194F8FD2194F8FC311B0443EA06 -S31508004440026294F8FA31134394F8FB5143EA0525BE -S3150800445020462946FFF7E4FEFFE7032800F03581EA -S31508004460002840F0358194F8402094F83F3043EA1C -S3150800447002231BB2B3F5007F40F02D8194F84B0060 -S3150800448094F84A3053EA00200DD194F85B2094F84A -S315080044905A301B0443EA026294F85830134394F8DE -S315080044A0590043EA0020E06194F84410E1704B1E7D -S315080044B0DBB2012B00F2128194F84130A370002B75 -S315080044C000F00F815A1E1A4240F00E8194F8466099 -S315080044D094F8452042EA0622228112F00F0F40F096 -S315080044E0068194F8487094F8476056EA07260DD175 -S315080044F094F8577094F85660360446EA076794F8B5 -S3150800450054603E4394F8557046EA072694F843C02B -S3150800451094F8427057EA0C2700F0EC8001FB00FC87 -S3150800452007EB121161448E42C0F0E780761AB6FB9B -S31508004530F3F3002B00F0E48040F6F576B3428CBF27 -S31508004540022601264FF6F578434500F2E880023345 -S31508004550A36125622F4467622944E162032E13D1C1 -S31508004560002A40F0D08094F8631094F86220120470 -S3150800457042EA016194F860200A4394F8611042EA1D -S315080045800122A2629B000EE0002A00F0BF80674469 -S31508004590A762022E0FBF5B0003225A4303F00103F2 -S315080045A018BF03EB520303F2FF13B0EB532FC0F00F -S315080045B0B0804FF0FF3323610023E360032E63D1FD -S315080045C0637194F8652094F8643043EA02222A4419 -S315080045D06261607804F134010123FEF775FD002855 -S315080045E052D194F8332294F8323243EA022212B2B4 -S315080045F04AF65523CFF6FF739A4245D194F83720E9 -S3150800460094F836301B0443EA026294F834301343B4 -S3150800461094F8352043EA022245F25223C4F2611384 -S315080046209A4231D194F81B2294F81A321B0443EAB1 -S31508004630026294F81832134394F8192243EA0222C4 -S3150800464047F27223C6F241139A421DD194F82322E7 -S3150800465094F822321B0443EA026294F82032134388 -S3150800466094F8212243EA0223E36094F81F2294F87F -S315080046701E321B0443EA026294F81C32134394F870 -S315080046801D2243EA02232361267040F20863C2F220 -S3150800469000031A88013292B21A80E2800020206351 -S315080046A02071BDE8F0810B20BDE8F0810C20BDE843 -S315080046B0F0810020BDE8F0810320BDE8F0810A20E2 -S315080046C0BDE8F0810D20BDE8F0810120BDE8F0814C -S315080046D00D20BDE8F0810D20BDE8F0810D20BDE874 -S315080046E0F0810D20BDE8F0810D20BDE8F0810D2098 -S315080046F0BDE8F0810D20BDE8F0810D20BDE8F08110 -S315080047000D20BDE8F0810D20BDE8F0810D20BDE843 -S31508004710F0810D20BDE8F08100230B6052E60233DC -S31508004720A36125622F4467622944E162032617E7DD -S315080047302DE9F0410D4601F109020369002B5ED00F -S31508004740416991F80C800B78202B1BD00E4600246B -S3150800475008F00807FFB203E016F8013F202B11D036 -S31508004760052B08BFE52347B1A3F1410C5FFA8CFC82 -S31508004770BCF1190F9CBF2033DBB202F8013B0134B0 -S31508004780082CE9D10B7A202B22D0561C2E23137025 -S315080047900B7A202B1BD001F10804171D324608F0AE -S315080047A010085FFA88F603E014F8013F202B0FD0B3 -S315080047B046B1A3F1410C5FFA8CFCBCF1190F9CBF02 -S315080047C02033DBB202F8013BBA42EDD100E03246B3 -S315080047D0CB7A2B72CC7F8B7F1B0443EA04630C7F56 -S315080047E023434C7F43EA04232B604C7E0B7E43EA2B -S315080047F00423AB80CC7D8B7D43EA0423EB80002326 -S315080048001370AE6946B3EB6933B3036900240BB37F -S31508004810028C4FF6FF739A4208BF00241AD0C76964 -S31508004820388890B10024A046414601F02BFC70B1AF -S31508004830EA69013AA2420CD90134321902F8010C8C -S3150800484037F8020F0028EFD104E0002402E0002424 -S3150800485000E0002400233355BDE8F08110B5044676 -S31508004860FFF72AFD0346002854D12378032B49D1A4 -S315080048706379002B46D00023236304F1340104F541 -S315080048800D700B46002203F8012B8342FBD15523FA -S3150800489084F83232AA2384F83332522384F8343027 -S315080048A084F83530612384F83630412284F837207D -S315080048B0722084F8180284F8190284F81A2284F8F7 -S315080048C01B32236984F81C32C3F3072284F81D229D -S315080048D01A0C84F81E221B0E84F81F32E36884F82B -S315080048E02032C3F3072284F821221A0C84F82222E4 -S315080048F01B0E84F82332607862690123FEF716FCE2 -S3150800490000236371607800210A46FEF745FC031C04 -S3150800491018BF0123184610BD02398369023B994224 -S315080049203DBF8278C36A02FB01300020704700BF92 -S31508004930F8B505460C4601295CD9836999425BD2CC -S315080049400378022B28D0032B38D0012B56D101EB44 -S315080049505106416A01EB5621FFF7EAFC002850D1BF -S31508004960C6F308032B4493F834700136696A28465F -S3150800497001EB5621FFF7DCFC002845D1C6F30806F3 -S31508004980354495F8340047EA002014F0010F14BFA7 -S315080049900009C0F30B00F8BD416A01EB1421FFF7CB -S315080049A0C7FCA0BB640004F4FF742B1993F83430D9 -S315080049B02C4494F8350043EA0020F8BD416A01EB1F -S315080049C0D411FFF7B5FC28BBA40004F4FE742B1918 -S315080049D093F8360093F83720120642EA004293F815 -S315080049E0350042EA00202C4494F83430184320F06D -S315080049F07040F8BD0120F8BD0120F8BD4FF0FF302A -S31508004A00F8BD4FF0FF30F8BD4FF0FF30F8BD4FF05E -S31508004A10FF30F8BD4FF0FF30F8BD00BF70B5044653 -S31508004A200D46E1808168012938D003689A69914268 -S31508004A3036D271B91A78032A01D1996A49B900227E -S31508004A40E2601A89AA422DD99B6A03EB15132361E2 -S31508004A501BE09E783601B54210D32068FFF768FF41 -S31508004A600146B0F1FF3F1FD001281FD923689B6973 -S31508004A7098421DD2AD1BADB2AE42EED9E1602068B8 -S31508004A80FFF74AFF00EB1510206105F00F052368B4 -S31508004A9003EB451334336361002070BD022070BDFB -S31508004AA0022070BD022070BD012070BD022070BDBD -S31508004AB0022070BDF8B505460C461646012998BF72 -S31508004AC002237CD98369994228BF022377D20378C7 -S31508004AD0022B40D0032B50D0012B18BF02236BD1D9 -S31508004AE001EB5107416A01EB5721FFF721FC034609 -S31508004AF0002861D1C7F3080314F001041FBFEA18A0 -S31508004B0092F8342002F00F02F1B21ABF42EA0112FB -S31508004B10D2B2F2B22B4483F83420013701232B7129 -S31508004B20696A284601EB5721FFF702FC034600286D -S31508004B3042D1C7F3080714B1C6F3071607E0EA1906 -S31508004B4092F8342022F00F02C6F3032616432F44A8 -S31508004B5087F8346030E0416A01EB1421FFF7E8FB7F -S31508004B60034648BB640004F4FF742A1982F83460CB -S31508004B70C6F3072682F835601EE0416A01EBD411B8 -S31508004B80FFF7D6FB0346B8B9A40004F4FE742A1945 -S31508004B9092F8371009062C4401F070410E4384F848 -S31508004BA03460C6F3072182F83510310C82F83610C6 -S31508004BB0360E82F83760FFE701222A71FFE71846AA -S31508004BC0F8BD00BF2DE9F0410546884631B9C668EB -S31508004BD076B183699E4228BF01260AE0FFF7A8FE40 -S31508004BE0012847D9AB69984228BF464601D24DE00D -S31508004BF00126344602270134AB699C4202D3012EB2 -S31508004C003BD93C4628462146FFF792FE38B1B0F11B -S31508004C10FF3F18BF012833D0B442ECD132E0264614 -S31508004C20284621466FF07042FFF744FF0346D0F14D -S31508004C30010038BF0020B8F1000F08BF002028B1D6 -S31508004C40284641462246FFF735FF03465BB9EE6024 -S31508004C502B69B3F1FF3F18D0013B2B6101236B7120 -S31508004C602046BDE8F081012B14BF01204FF0FF302C -S31508004C70BDE8F0810120BDE8F0810020BDE8F081A3 -S31508004C80BDE8F0810020BDE8F0812046BDE8F0814E -S31508004C902DE9F84304460E46C5880135ADB2002D08 -S31508004CA06AD00369002B6AD015F00F075BD1013370 -S31508004CB00361C16821B903681B89AB4262D952E016 -S31508004CC000688378013B13EA15134CD1FFF730FED1 -S31508004CD08046012859D9B0F1FF3F59D02068836929 -S31508004CE0984539D3002E56D0E168FFF76BFF80460A -S31508004CF0002853D0012854D0B0F1FF3F54D0206883 -S31508004D00FFF7DAFA002852D1236803F134010023A9 -S31508004D101A46CA540133B3F5007FFAD126683046DD -S31508004D204146FFF7F9FD306300264FF001090CE014 -S31508004D3083F804902068FFF7BFFA00283AD1236861 -S31508004D401A6B01321A630136F6B223689A78B242B0 -S31508004D50EED81A6B921B1A63C4F80C802068414679 -S31508004D60FFF7DAFD2061E580236803EB4713343348 -S31508004D7063610020BDE8F8830420BDE8F8830420B9 -S31508004D80BDE8F8830420BDE8F8830220BDE8F8836F -S31508004D900120BDE8F8830420BDE8F8830720BDE8B4 -S31508004DA0F8830220BDE8F8830120BDE8F8830120D6 -S31508004DB0BDE8F8830120BDE8F88300BF2DE9F04F70 -S31508004DC089B005460021FFF729FE002840F0AC808F -S31508004DD04FF0FF09C8464F4649F25C71C0F600011C -S31508004DE0029101F10C0204924FF6FF7A4FF0000B84 -S31508004DF028682969FFF79CFA002840F096806C69B4 -S31508004E002678002E00F09280E37A03F03F02E52E22 -S31508004E107FD013F0080F04D00F2A18BFB8467BD1ED -S31508004E2001E00F2A58D1EB690193002B74D016F0D4 -S31508004E30400F06D094F80D9006F0BF06EB882B8439 -S31508004E4003E0B04518BFB84666D1617B0391494572 -S31508004E5018BFB84660D1237823F04003013B03EB23 -S31508004E60430203EB82020592029A02F1FF394FF0E0 -S31508004E7001080796059E06954546DDF8108019F83F -S31508004E80013FE2185078E35C43EA00207DB101F067 -S31508004E901FF90546FE2E56D8731C0593019931F85D -S31508004EA0160001F015F985424FD1059E01E05045DF -S31508004EB04DD1C145E3D1A8460596079E069D2378A0 -S31508004EC013F0400F39D0B8F1000F36D0059A019982 -S31508004ED031F812308BB33BE0B8F1000F04D120460D -S31508004EE0FFF78EF9484523D0A5F820A0AB69DA7AF2 -S31508004EF012F0010F08BF04F10B0002D00BE0844248 -S31508004F0018D014F8011B13F8012B9142F7D0B846B4 -S31508004F1002E0B84600E0B84628465946FFF7B8FE0C -S31508004F2000283FF465AF07E016E015E0042013E01B -S31508004F30002011E000200FE00EE0013E5FFA86F83F -S31508004F40DDF80C90E8E7069D02E0069D00E0069D68 -S31508004F50DDF80C90B846DFE709B0BDE8F08F00BF72 -S31508004F602DE9F04F87B0814688460B782F2B18BF5E -S31508004F705C2B08BF01F101080023836098F8003014 -S31508004F801F2B07D80021FFF749FD03460022C9F861 -S31508004F9014207AE14FF0010A49F2C86BC0F6000BFB -S31508004FA049F2D461C0F60001049149F2DC62C0F608 -S31508004FB00002059298F800302F2B18BF5C2B08D1F9 -S31508004FC008F10103984613F8012B2F2A18BF5C2A0B -S31508004FD0F8D0D9F81C5098F800002F2818BF1F28B9 -S31508004FE02CD95C2800F02D81AF1E4646544607E0B2 -S31508004FF05C2B00F02881B2F5807F00F041811446D1 -S31508005000514601F03FF80146002800F039817F2813 -S3150800501009D8222900F034815A4612F8013F13B103 -S315080050209842FAD12CE127F8021F621C16F8013FB4 -S3150800503018462F2B18BF1F2BDAD801E0002452463A -S3150800504090441F2898BF042601D90026FFE7002CA4 -S3150800505000F0168104F10043013B5A0035F813307D -S315080050602E2B18BF202B40F0F080931C2B4407E012 -S3150800507033F8042C023B2E2A18BF202A40F0E5807C -S31508005080013CF5D1FCE003F8011B8342FBD12B88D8 -S31508005090202B18BF2E2B40F0E4802846002301332E -S315080050A030F8021F202918BF2E29F8D0002B00F04F -S315080050B0D98046F00306D5E0013C05D108210391C5 -S315080050C000220192029205E0023A32F8021C2E29C9 -S315080050D0F2D1F3E75F1C35F81300002861D02028C9 -S315080050E008D0E31B18BF01232E2814BF002203F0A3 -S315080050F001021AB146F003063B46EBE7019A03990B -S31508005100BC4218BF8A4214D30B2903D146F00306C2 -S31508005110029A49E00BB146F00306A74243D8029A21 -S315080051209300DBB2029323460B21039108220192D6 -S31508005130D0E77F280DD9002100F0A4FF03460028F8 -S3150800514000F0A08005990B4413F8800C46F002067F -S3150800515050B101462B2807D0049A12F8013F002BBC -S3150800516000F087809942F8D146F003065F2010E0E8 -S31508005170029A42F0020202920BE0A0F161039BB28E -S31508005180192B9FBF029B43F001030293203898BF57 -S3150800519080B2D9F81830019958543B46013101912B -S315080051A098E7029A00E0029AD9F818301978E529A2 -S315080051B004BF05211970039B082B02BF9200D2B2C7 -S315080051C00292029901F00C030C2B03D001F00302A2 -S315080051D0032A01D146F0020616F0020F0AD10299F7 -S315080051E001F00302012A08BF46F01006042B08BF87 -S315080051F046F00806D9F81830DE724846FFF7DEFD95 -S31508005200D9F81830DA7A034648B104283DD102F0B5 -S315080052100403DBB2002B14BF0346052335E012F066 -S31508005220040F32D1D9F81410CB7A13F0100F06D028 -S31508005230D9F80000FEF7D4FFC9F80800BAE6052336 -S3150800524023E0002452469044FFE66700EA194FF02F -S31508005250000325F81430D9F8183003F10B00202183 -S3150800526011E700232F4437F8021C2E293FF426AFF6 -S3150800527022E7A0F141039BB2192B7FF679AF7CE7B1 -S31508005280062302E046F002066EE7184607B0BDE8B8 -S31508005290F08F00BF2DE9F04F83B0044689464FF0E2 -S315080052A0FF0B5E460425D84649F25C7AC0F6000A2A -S315080052B00AF10C030093002770E02068FFF738F81E -S315080052C0054600286ED162691378002B74D0D17A0E -S315080052D0E52B18BF2E2B59D001F03F01082914BF22 -S315080052E000200120484518BF464651D10F2943D111 -S315080052F013F0400F06D092F80DB003F0BF03E18813 -S31508005300218403E09E4218BF464641D192F80DE03B -S31508005310DE4518BF46463BD1D4F81CC0117801F0CB -S315080053203F01013901EB410501EB85050AF1FF3122 -S3150800533001260193DDF800B011F8013FD018407836 -S31508005340D35C43EA002036B1FE2D32D82CF815007E -S315080053500646013503E04FF6FF73984229D15945B1 -S31508005360EAD1019B127812F0400F1ED0FE2D98BF8D -S315080053702CF8157019D91CE010461EB9FEF740FF27 -S3150800538058451BD04FF6FF73238417E04646FFE7C0 -S3150800539020463946FFF77CFC054618B921690029DD -S315080053A08BD15DB10023236108E0013BDEB2F346F1 -S315080053B0EEE7F3464646EBE70425F3E7284603B04F -S315080053C0BDE8F08F2DE9F0410446C588018C4FF6FB -S315080053D0FF73994208BF2946FFF720FB0346D0B959 -S315080053E0E52701264FF0000820682169FEF7A0FF8F -S315080053F0034668B96269177022681671E288AA427C -S3150800540009D220464146FFF743FC03460028EBD065 -S31508005410042B08BF02231846BDE8F0812DE9F041A8 -S3150800542004460E46012998BF02212BD983699E425C -S3150800543028BF022126D200274FF001082046314610 -S31508005440FFF776FA0546C0B1012818D0B0F1FF3F3C -S3150800545017D0204631463A46FFF72CFB014688B955 -S315080054602369B3F1FF3F1EBF0133236184F805802A -S31508005470A369AB4206D92E46E0E7002102E00221E5 -S3150800548000E001210846BDE8F08100BF70B582B092 -S31508005490054616461C460B22FEF798FE052C0BD928 -S315080054A0B21EE30343EA540432F8023F13FA84F4C3 -S315080054B0A4B25388002BF4D1072204F00F0101F19E -S315080054C03003392B88BF01F13703013A00A911448B -S315080054D04B702409F1D114467E2102AB134403F81C -S315080054E0081C62B12B78202B0BD0294600230133E8 -S315080054F0A34207D011F8010F2028F8D102E00023B3 -S3150800550000E000232020072A9FBF02A9891811F866 -S31508005510081C013288BF0146E9540133072BF2D92A -S3150800552002B070BD2DE9F04F87B004468769C66999 -S3150800553003A839460C22FEF749FE9DF8173013F0EA -S31508005540010F21D00023FB72E3610125384603A928 -S3150800555032462B46FFF79AFF2046FFF72FFC0346F5 -S3150800556020B90135ADB2642DF0D1D5E0642D08BF60 -S31508005570072000F0EF80042B18BF184640F0EA8099 -S315080055809DF81730FB72E6619DF8173013F0020F8D -S3150800559008BF012716D033883BB1002301339BB2DD -S315080055A036F81320002AF9D100E0002319334EF605 -S315080055B04F42C4F6C46282FB0317DB17C3EBA70787 -S315080055C0BFB2FFE720460021FFF728FA0346002866 -S315080055D040F0BF800025A846012620682169FEF70D -S315080055E0A7FE0346002840F0B48063691B78E52BC4 -S315080055F018BF002B03D10135AF4201D18EE04546D5 -S3150800560020463146FFF744FB03460028E5D0A0E0D4 -S31508005610E188C9EB0101204689B2FFF7FFF9034685 -S31508005620002840F09680A069FEF7EAFD01904FF049 -S3150800563000084FF6FF7549F25C76C0F60006FF27AC -S3150800564020682169FEF774FE0346002840F0818031 -S31508005650D4F81CA061695FFA89FB019A4A734FF076 -S315080056600F03CB7281F80C8081F81A8081F81B80B1 -S315080056700BF1FF3303EB430003EB800001224346A3 -S3150800568002E070462B460132AB424ED000F1010EC5 -S315080056903AF81030B01810F8010C0B5408444FEAC9 -S315080056A0132C80F801C0002B49D070460C2AEAD981 -S315080056B0AB4202D03AF810300BB94BF0400B81F8E8 -S315080056C000B023684FF00101197120464146FFF7E3 -S315080056D0DFFA034600283CD109F1FF391FFA89F998 -S315080056E0B9F1000FACD12DE0636903F12001002266 -S315080056F003F8012B8B42FBD16069A1690B22FEF7E7 -S3150800570065FD6369A269D27A02F018021A732368E2 -S3150800571001221A7100201DE007201BE0013F1FFA35 -S3150800572087F9B9F1000F0DD072E706EB020E1EF8E5 -S3150800573001EC01F80E708E448EF80170B6E70C2A5B -S315080057409FD9BAE720682169FEF7F2FD0028CBD079 -S3150800575000E0184607B0BDE8F08F00BF88B940F2F0 -S315080057600C63C2F200031B680BB100221A7009B160 -S3150800577000230B7040F20C63C2F20003196000208C -S3150800578070470B20704700BF2DE9F0438FB0019199 -S3150800579015460446002800F094800023036001A8FB -S315080057A005A902F01E02FEF7F9FD002840F08B80DD -S315080057B005F01F0702AB0B9340F20843C2F2000341 -S315080057C00C9305A80199FFF7CBFB0A9E0346002810 -S315080057D07FD1002E78D17BE05BB1042B40F0858029 -S315080057E005A8FFF79FFE47F008070A9E034638B14B -S315080057F07BE0F37A13F0110F70D115F0040F6FD117 -S3150800580017F0080F3CD0FDF7F9FCB073C0F3072377 -S31508005810F373030C3374000E70740025F572357734 -S315080058207577B577F577DDF8148040463146FEF78B -S31508005830D7FCB576F57635757575012388F8043085 -S315080058400546E8B1D8F8309040462946FFF7E6FD08 -S315080058500346002849D10598013DC5604946FEF72B -S3150800586067FD03460AE0F37A13F0100F3AD115F0F4 -S31508005870020F05D013F0010F36D101E0002B34D109 -S3150800588017F0080F18BF47F02007059D2B6BE3613B -S315080058902662A77128463146FEF7A2FC2061F27FF0 -S315080058A0B37F1B0443EA0263327F1343727F43EAE2 -S315080058B00223E3600020A060A0612560EB88A38036 -S315080058C014E0092012E011E015F01C0F91D1CAE787 -S315080058D0062315F01C0F7FF47FAFCFE7072304E0FC -S315080058E0082302E0042300E0072318460FB0BDE8AA -S315080058F0F08300BF2DE9F04F83B004460F4690466B -S315080059001E4600233360FEF72DFD002840F0BF80B9 -S31508005910A37913F0800F18BF022040F0BC8013F063 -S31508005920010F08BF072000F0B680E568A368ED1AE6 -S31508005930A84538BF4546002D00F0AA8004F1240387 -S315080059400193A368C3F30802002A40F08680206802 -S3150800595090F802A00AF1FF3A0AEA532A1AF0FF0A57 -S3150800596017D10BB9206902E06169FEF7E1FF01284A -S3150800597005D8A37963F07F03A37102208BE0B0F109 -S31508005980FF3F05D1A37963F07F03A371012082E06D -S315080059906061D4F8008040466169FEF7BDFF814624 -S315080059A028B9A37963F07F03A371022073E0D14479 -S315080059B05FEA552B29D098F802300BEB0A029A4277 -S315080059C088BFCAEB030B98F8010039464A465FFAC6 -S315080059D08BF3FDF779FB28B1A37963F07F03A371F5 -S315080059E0012058E0A37913F0400F0BD0A369C9EB47 -S315080059F00300834506D907EB402001994FF400724E -S31508005A00FEF7E4FB4FEA4B2B35E0A2694A4522D064 -S31508005A10A37913F0400F10D098F8010001990123DB -S31508005A20FDF784FB28B1A37963F07F03A3710120F6 -S31508005A3031E0A37923F04003A371236858780199CC -S31508005A404A460123FDF740FB28B1A37963F07F039B -S31508005A50A37101201FE0C4F81890A168C1F30801DA -S31508005A60C1F5007B5D4538BFAB4621443846243135 -S31508005A705A46FEF7ABFB5F44A3685B44A3603368F2 -S31508005A805B443360B5EB0B057FF45BAF02E002E0E5 -S31508005A90002000E0002003B0BDE8F08F2DE9F04FAC -S31508005AA083B004460F4615461E4600233360FEF7AC -S31508005AB059FC002840F0DA80A37913F0800F18BF4C -S31508005AC0022040F0D48013F0020F08BF072000F030 -S31508005AD0CE80E368DD4280F0BE80002D00F0BB80FA -S31508005AE004F124030193A368C3F30802002A40F0D3 -S31508005AF09580206890F802B00BF1FF3B0BEA532B18 -S31508005B001BF0FF0B21D13BB9236963B90021FFF7CD -S31508005B1059F80346206103E06169FFF753F8034625 -S31508005B20002B00F09880012B05D1A37963F07F0341 -S31508005B30A37102209BE0B3F1FF3F05D1A37963F07F -S31508005B407F03A371012092E06361A37913F0400FEC -S31508005B5011D0236858780199A2690123FDF7E6FA5E -S31508005B6028B1A37963F07F03A37101207FE0A379AD -S31508005B7023F04003A371D4F8008040466169FEF71C -S31508005B80CBFE814628B9A37963F07F03A37102206F -S31508005B906DE0D9445FEA552A29D098F802300AEB15 -S31508005BA00B029A4288BFCBEB030A98F801003946E4 -S31508005BB04A465FFA8AF3FDF7B9FA28B1A37963F082 -S31508005BC07F03A371012052E0A369C9EB03018A454B -S31508005BD00AD9019807EB41214FF40072FEF7F6FA4D -S31508005BE0A37923F04003A3714FEA4A2A28E0A36960 -S31508005BF04B4511D0A268E3689A420DD298F8010085 -S31508005C0001994A460123FDF75FFA28B1A37963F0A3 -S31508005C107F03A37101202AE0C4F81890A068C0F396 -S31508005C200800C0F5007A554538BFAA4620442430F6 -S31508005C3039465246FEF7CAFAA37943F04003A371E0 -S31508005C405744A3685344A360336853443360B5EBA1 -S31508005C500A057FF448AFA368E268934288BFE36009 -S31508005C60A37943F02003A371002000E0FFE703B007 -S31508005C70BDE8F08F38B50446FEF774FB002849D115 -S31508005C80A37913F0200F46D013F0400F0DD021460C -S31508005C9051F8243B5878A2690123FDF747FA0028F2 -S31508005CA03BD1A37923F04003A3712068E169FEF78D -S31508005CB03FFB002833D1256AEB7A43F02003EB72C9 -S31508005CC0E3682B77A3891B0A6B77E389AB77E37BBA -S31508005CD0EB772369AB76C3F30722EA761B0C2B75A1 -S31508005CE01B0A6B75FDF78AFAA875C0F30723EB75CF -S31508005CF0030C2B76000E68760023AB74EB74A3793D -S31508005D0023F02003A371236801221A712068FEF785 -S31508005D10A5FD38BD38BD002038BD012038BD38BDC9 -S31508005D2010B50446FFF7A6FF034608B9002222600D -S31508005D30184610BD70B504460D46FEF713FB00283D -S31508005D4040F0BD80A37913F0800F40F0B980E26877 -S31508005D50AA4205D203F00203DBB2002B08BF1546A0 -S31508005D60A2680023A360002D00F0AC802068867826 -S31508005D7076026AB1013A691EB1FBF6F1B2FBF6F397 -S31508005D80994205D373421A40A260AD1A616918E0B8 -S31508005D902169A9B9FEF716FF0146012805D1A3799D -S31508005DA063F07F03A371022070BDB0F1FF3F18BFF7 -S31508005DB0206105D1A37963F07F03A371012070BD2B -S31508005DC06161002940D0B5422BD9A27912F0020FA1 -S31508005DD005D02068FEF7F6FE014620B920E02068C7 -S31508005DE0FEF7A6FD0146B1F1FF3F05D1A37963F0A1 -S31508005DF07F03A371012070BD012903D92268926926 -S31508005E00914205D3A37963F07F03A371022070BD85 -S31508005E106161A2683244A260AD1BAE42D5D300E0F0 -S31508005E203546A2682A44A260C5F3080272B1206802 -S31508005E30FEF772FD28B9A37963F07F03A3710220E8 -S31508005E4070BD00EB552502E0002500E00025A3689B -S31508005E50C3F3080343B3A269AA4225D0A37913F072 -S31508005E60400F11D0214651F8243B58780123FDF7FD -S31508005E705DF928B1A37963F07F03A371012070BD92 -S31508005E80A37923F04003A371214651F8243B58789F -S31508005E902A460123FDF718F928B1A37963F07F0391 -S31508005EA0A371012070BDA561A368E26893420BD96E -S31508005EB0E360A37943F02003A371002070BD70BD91 -S31508005EC0022070BD002070BD002070BD30B58FB0B7 -S31508005ED00EAB43F8340D0D46184605A90022FEF709 -S31508005EE05DFA0446A0B902AB0B9340F20843C2F22E -S31508005EF000030C9305A80199FFF732F8044638B950 -S31508005F000A9B23B105A82946FEF712FC00E00624E1 -S31508005F1020460FB030BD00BF30B599B018AB43F876 -S31508005F205C0D18460FA90122FEF738FA0346002829 -S31508005F304DD103AB159340F20843C2F20003169302 -S31508005F400FA80199FFF70CF8034600283FD11499CA -S31508005F50062300293BD0CC7A14F0010F18BF07237B -S31508005F6035D124E0012D98BF022330D906A80FA900 -S31508005F702422FEF72BF9089506A80221FEF74EFD06 -S31508005F80034620BB06A80021FFF784F90346E8B1BB -S31508005F90042814D01BE02DB10F982946FFF73EFAC6 -S31508005FA00346A0B90F98FEF759FC03460FE00F9871 -S31508005FB0FEF716F9054614F0100FD3D1FFE70FA820 -S31508005FC0FFF700FA03460028E5D000E00723184645 -S31508005FD019B030BD2DE9F04383B081469046054699 -S31508005FE000244E1E012711E0404601A93A466B4699 -S31508005FF0FFF780FC009B012B0AD19DF804300D2B7E -S3150800600004D005F8013B01340A2B01D0A642EBDC8B -S3150800601000232B709C4214BF4846184603B0BDE8BF -S31508006020F08300BF30B583B004460D460A2802D176 -S315080060300D20FFF7F7FF02A901F8084D2846694623 -S31508006040012201ABFFF72AFD0198012814BF4FF082 -S31508006050FF30012003B030BD70B505460E46007806 -S3150800606060B100243146FFF7DDFFB0F1FF3F08D0ED -S31508006070013415F8010F0028F4D101E0002070BDA5 -S31508006080204670BD7F2821D941B9C7281EBF49F6C9 -S315080060904C12C0F6000201230AD112E0FF2814D8D8 -S315080060A0803849F64C13C0F6000333F810007047E1 -S315080060B032F8021F814205D001339BB2802BF7D1FB -S315080060C000E000238033D8B270470020704700BF35 -S315080060D061280CD049F26C72C0F600020021013129 -S315080060E032F8023F53B18342F9D10BB97047002108 -S315080060F049F64C23C0F6000333F81100704700BF79 -S3150800610030B4013A8D18A94214D20B461C785A7835 -S3150800611002EB042292B2104480B2824284BF01305C -S3150800612080B202339D42F1D8CB432B4423F00103BE -S3150800613002331944A94207D10B781B02184480B2CE -S31508006140834284BF013080B230BC704738B542F60E -S315080061502004C2F20004657C143D237C05EB03256C -S31508006160ADB2284480B204F11A010822FFF7C8FF2D -S3150800617004F122012A46FFF7C3FF034620B1000AAD -S3150800618040EA032080B238BD4FF6FF7038BD00BF25 -S3150800619070B4C4780C44E4B242F29873C2F20003B5 -S315080061A0DC700D0A82782A44D2B29A7046785E70FC -S315080061B00078187095420DD90136F6B242F29873F6 -S315080061C0C2F200035E702EB942F29873C2F200035F -S315080061D001301870C9B28C4217DA0132D2B242F2D3 -S315080061E09873C2F200039A707AB942F29873C2F2AF -S315080061F000035A780132D2B25A7032B942F2987311 -S31508006200C2F200031A7801321A7070BC704700BFD8 -S3150800621010B5014642F2A474C2F2000420680830A0 -S31508006220FFF7B6FF226842F29873C2F200031978A4 -S3150800623011725978517299789172DB78D37210BDC0 -S3150800624008B5002006491422FFF75AFF034620B175 -S31508006250000A40EA032080B208BD4FF6FF7008BD69 -S315080062602E28002008B50620FFF770FF08BD00BFDE -S3150800627042F61003C2F2000300221A8042F2A87303 -S31508006280C2F200035A7640F22463C2F200030122E6 -S315080062901A7040F21863C2F200034FF480621A8043 -S315080062A0704700BF40F22463C2F2000300221A704E -S315080062B042F61003C2F200031B882BB942F61003FC -S315080062C0C2F200031880704740F22463C2F200034A -S315080062D001221A70704700BF38B542F2A473C2F2A1 -S315080062E000031C6842F2A073C2F20003A54A1A60B2 -S315080062F042F29473C2F200031A60032813D1637E34 -S3150800630003F00F03032B40F05B87238A002B40F032 -S31508006310578742F29C73C2F2000308221A7001F0F2 -S315080063207BFB00F097BD022840F09E8040F2146384 -S31508006330C2F20003DA780132D2B2DA70C2B940F298 -S315080063401463C2F200039A780132D2B29A707AB90B -S3150800635040F21463C2F200035A780132D2B25A707C -S3150800636032B940F21463C2F200031A7801321A7085 -S3150800637042F29073C2F2000300221A8042F6626368 -S31508006380C2F200031A80637E03F0FD02052A09D1D2 -S31508006390A37E0133DBB2A376782B04BF0023637692 -S315080063A000F00EBF002B00F00B87228A002A4CD083 -S315080063B0A27E511EA176002A40F00287E27E082AB4 -S315080063C005D0591EC9B2012914D8052A12D10023AD -S315080063D0637642F29C73C2F2000380221A7001F0BF -S315080063E01BFB42F62003C2F20003142283F82F2077 -S315080063F000F063BE042A9DBF03219140C9B2302133 -S31508006400A1760132E27603F00F03013B072B00F277 -S31508006410D786DFE813F05D0208001000AC04D50645 -S31508006420AC04D506AC0442F62003C2F200030022EF -S3150800643083F82F2053E242F29C73C2F2000304222F -S315080064401A7001F0E9FA00F056BD03F00F03032BAA -S3150800645040F0B68642F29C73C2F2000308221A7014 -S3150800646001F0DAFA00F0F6BC42F62003C2F20003A5 -S315080064709B7B452B40F0A48642F62003C2F200031C -S31508006480197C5A7C02EB012042F29073C2F2000397 -S315080064901B88984200F3948684B242F29073C2F243 -S315080064A000031C8042F62003C2F200031B7D13F092 -S315080064B03F0F40F0858642F62003C2F200035B7D5B -S315080064C0002B40F07D8642F61C03C2F200031D88AD -S315080064D02DB942F61C03C2F200035B88A3B142F64B -S315080064E02003C2F20003DB8BAB4240F0698642F61A -S315080064F02002C2F2000242F61C03C2F20003128C0A -S315080065005B889A4240F05C86FFF79AFE4FF6FF7367 -S31508006510984240F0558642F62003C2F20003DB7D1E -S31508006520062B31D0012B40F04B8642F62003C2F2EF -S31508006530000393F82230082B40F0428642F62003E7 -S31508006540C2F20003002283F822209A8C4FF6F673D3 -S315080065509A4242F62003C2F200038CBF093208327F -S315080065609A8442F62003C2F200035A8BDA839A8B86 -S315080065701A845D8342F61C02C2F2000252889A838C -S3150800658000F017BE56280020FFF76CFE4FF6FF7383 -S31508006590984240F0158642F2A873C2F20003597E6B -S315080065A081B342F62002C2F2000242F2A873C2F296 -S315080065B00003928C9B889A4224D142F62002C2F2AA -S315080065C0000242F2A873C2F20003528CDB889A4298 -S315080065D018D142F62002C2F2000242F2A873C2F2B1 -S315080065E00003528B1B889A420CD142F62002C2F253 -S315080065F0000242F2A873C2F20003928B5B889A42A9 -S3150800660000F08D8142F62003C2F2000393F82F3082 -S3150800661003F03F03022B1CD142F62003C2F200030B -S315080066209A8C40F21063C2F200031A8040F2246387 -S31508006630C2F200030021197042F61003C2F20003E9 -S315080066401B8893427BD040F22463C2F200030122E6 -S315080066501A7042F62003C2F2000393F82F3013F0A3 -S31508006660040F40F0AD8542F62003C2F2000314225F -S3150800667083F82F2042F29072C2F20002282111807C -S31508006680502283F82E2093F8295093F82D2083F86A -S31508006690292093F8284093F82C2083F8282083F89B -S315080066A02C4093F8270093F82B2083F8272083F8AB -S315080066B02B0093F8262040F22461C2F200010A70EA -S315080066C093F82A1083F8261083F82A20691CC9B281 -S315080066D083F82D10C1B9611CC9B242F62003C2F273 -S315080066E0000383F82C1079B9411CC9B242F620037D -S315080066F0C2F2000383F82B1031B942F62003C2F226 -S315080067000003013283F82A2042F62003C2F200036E -S31508006710598C40F21062C2F2000211809A8C5A8497 -S3150800672099845A8BDA839A8B1A8442F61C02C2F22F -S3150800673000021188598352889A8300F00DBD42F2EF -S31508006740A873C2F200035B7E23B1072B40F04C8589 -S3150800675000F042BD42F2A471C2F2000142F2A873EF -S31508006760C2F200030B600321997619760021997508 -S315080067700420D875D9769A8042F62004C2F200041D -S31508006780628CDA80628B1A80A28B5A800120587636 -S3150800679040F21462C2F200021178197351785973E3 -S315080067A091789973D278DA73188294F82920DA7274 -S315080067B094F828209A7294F827205A7294F826207A -S315080067C01A72FFF725FD94F82E3003F0F002502ACE -S315080067D07ADD1B095C1FA40040F22563C2F20003A0 -S315080067E01A78002342F62001C2F200015AE0CA18BC -S315080067F092F8362072B940F22461C2F200010B7099 -S3150800680040F22563C2F200031A7042F2A874C2F27B -S3150800681000045DE0012A02D10133DBB242E0022A1C -S315080068202BD10D1895F83750042D26D140F2246245 -S31508006830C2F20002137040F22563C2F2000302227C -S315080068401A7042F62003C2F20003034493F8382074 -S3150800685093F8393043EA022240F21063C2F2000389 -S315080068601A8040F20A639A4238BF134642F2A87465 -S31508006870C2F200046382A3822AE0084490F8370033 -S3150800688070B940F22461C2F200010B7040F2256330 -S31508006890C2F200031A7042F2A874C2F2000417E0AA -S315080068A00344DBB21846A342A1DB40F22461C2F2DC -S315080068B000010B7040F22563C2F200031A7042F21F -S315080068C0A874C2F2000403E042F2A874C2F20004FB -S315080068D042F62003C2F20003102283F82F2042F664 -S315080068E02003C2F2000393F82F2042F0020283F835 -S315080068F02F20022283F83620042283F83720062226 -S3150800690083F838200A2283F8392042F29072C2F2BC -S3150800691000022C211180602283F82E20DAE342F24D -S31508006920A473C2F2000342F2A872C2F200021A600D -S3150800693042F29C73C2F2000300221A7042F6200348 -S31508006940C2F2000393F82F3013F0040F0ED042F270 -S31508006950A873C2F200035A7642F29C73C2F200038D -S3150800696020221A7001F058F800F02ABC42F62002DC -S31508006970C2F2000292F82E000009800040F224625A -S31508006980C2F200021070143C201A80B242F29072D1 -S31508006990C2F20002108001F00F01022903D103F0B0 -S315080069A03F02122A1DD010B913F0030F19D042F670 -S315080069B02001C2F2000142F2A872C2F20002C98C9A -S315080069C01289914240F06E8342F62001C2F200011C -S315080069D042F2A872C2F20002098D5289914240F031 -S315080069E0618313F0100F77D042F2A873C2F2000346 -S315080069F0198A002970D003F10C00FFF7C9FB42F68B -S31508006A002003C2F2000393F82A4042F29873C2F2B6 -S31508006A1000031B78A3425FD142F62003C2F20003AB -S31508006A2093F82B0042F29873C2F200035B78834214 -S31508006A3052D142F62003C2F2000393F82C1042F218 -S31508006A409873C2F200039B788B4245D142F6200325 -S31508006A50C2F2000393F82D2042F29873C2F20003A3 -S31508006A60DB78934238D142F2A873C2F200031C7352 -S31508006A7058739973DA73DB7E03BB42F2A873C2F2CA -S31508006A800003987D197E9A7E891AA1EBD001C9B2B6 -S31508006A90CAB20844C0B2987512F0800F1CBF4A42A9 -S31508006AA0D2B242F2A873C2F20003D97DA1EB9101DA -S31508006AB00A44D2B2DA7502EBD0021A7642F29C7315 -S31508006AC0C2F2000301221A7042F2A873C2F200034E -S31508006AD01A7E9A7600221A8242F2A873C2F200033C -S31508006AE05A7E02F00F03013B072B00F26983DFE8A9 -S31508006AF013F008003A00040151029B02C702D902AA -S31508006B00390242F29C73C2F200031B7813F0010F9C -S31508006B1000F0568342F2A873C2F2000303225A76A3 -S31508006B2042F29C72C2F200024021117000221A82BF -S31508006B3042F29073C2F20003188838B142F29C738D -S31508006B40C2F2000342221A70FFF762FB42F6626342 -S31508006B50C2F2000300221A8000F05EFF42F2A87417 -S31508006B60C2F2000476E142F29C73C2F200031B787B -S31508006B7013F0010F00F0B18042F62003C2F20003C1 -S31508006B8093F82F3003F03F03122B40F0A68042F60D -S31508006B902003C2F2000393F82E3003F0F002502AC5 -S31508006BA06DDD1B095C1FA40040F22563C2F20003D9 -S31508006BB01A78002342F62001C2F2000152E0CA18F0 -S31508006BC092F8362052B940F22461C2F200010B70E5 -S31508006BD040F22563C2F200031A7050E0012A02D17E -S31508006BE00133DBB23EE0022A2BD10D1895F8375057 -S31508006BF0042D26D140F22462C2F20002137040F23C -S31508006C002563C2F2000302221A7042F62003C2F27A -S31508006C100003034493F8382093F8393043EA0222F4 -S31508006C2040F21063C2F200031A8040F20A639A42E5 -S31508006C3028BF1A4642F2A873C2F200035A829A8201 -S31508006C401DE0084490F8370050B940F22461C2F2BA -S31508006C5000010B7040F22563C2F200031A700EE0C1 -S31508006C600344DBB21846A342A9DB40F22461C2F210 -S31508006C7000010B7040F22563C2F200031A7042F25B -S31508006C80A874C2F200040323637642F62003C2F214 -S31508006C90000393F82620227293F82720627293F84D -S31508006CA02820A27293F82930E3720120FFF7B0FA80 -S31508006CB042F29C73C2F2000342221A700022228218 -S31508006CC042F29073C2F200031A8042F66263C2F27D -S31508006CD000031A8000F0A0FEBCE042F29C73C2F2E8 -S31508006CE0000320221A7000F097FE42F2A473C2F243 -S31508006CF000031B6800225A76ABE442F62003C2F270 -S31508006D00000393F82F3013F0010F38D012F0100F4C -S31508006D1035D142F2A873C2F200031B8A002B40F059 -S31508006D204F8242F29074C2F200042088013080B289 -S31508006D30FFF76EFA42F29C73C2F200031A7842F029 -S31508006D4010011970238833B142F29C73C2F2000312 -S31508006D5042F012021A7000F05FFE42F2A874C2F204 -S31508006D60000401232382082363760023E37642F690 -S31508006D702003C2F20003112283F82F209DE113F0AD -S31508006D80200F18D042F62003C2F2000393F834000D -S31508006D90000293F8351042F2A073C2F2000340EAEB -S31508006DA001051C682C441C6042F29073C2F2000371 -S31508006DB01888411B198042F29073C2F200031888A2 -S31508006DC060B112F0100F09D142F29C73C2F20003AF -S31508006DD01A7842F002021A70FFF71AFA42F62003EE -S31508006DE0C2F2000393F8302093F8313003EB022304 -S31508006DF09BB240F21062C2F20002138042F2A872FD -S31508006E00C2F20002928A934200D823B940F2106374 -S31508006E10C2F200031A8042F2A873C2F2000340F2DB -S31508006E201062C2F2000212885A8242F29C73C2F2BF -S31508006E3000031B7813F0030F00F0C28142F6626369 -S31508006E40C2F2000300221A8000F0E6FD42F2A8749E -S31508006E50C2F2000442F29C73C2F200031B7813F0DC -S31508006E60200F0ED042F66263C2F2000300221A8097 -S31508006E70627642F62003C2F20003142283F82F201A -S31508006E801BE113F0100F12D042F66263C2F2000340 -S31508006E9000221A800123238204236376E27642F6CF -S31508006EA02003C2F20003112283F82F2005E142F6DF -S31508006EB06262C2F200021288DAB113F0010F1CBF37 -S31508006EC00023238201D1218A71B9618A8A4282BF4D -S31508006ED042F66263C2F20003198042F66263C2F2A6 -S31508006EE000031B88238204E042F66263C2F20003B1 -S31508006EF019800023E37642F2A073C2F2000342F23D -S31508006F009472C2F2000212681A6042F66263C2F212 -S31508006F1000031B887BB1238A6BB142F29072C2F2DE -S31508006F2000022833138042F62003C2F20003182217 -S31508006F3083F82F20C7E042F29C73C2F200031B7845 -S31508006F4013F0020F00F03C8142F29073C2F2000384 -S31508006F5028221A8042F62003C2F20003102283F880 -S31508006F602F20B0E042F29C73C2F200031B7813F0A4 -S31508006F70010F00F0258142F2A873C2F20003002235 -S31508006F805A7642F29C73C2F2000310221A7000F07D -S31508006F9043FD15E142F29073C2F20003188808B166 -S31508006FA0FFF736F942F62003C2F2000393F82F30B2 -S31508006FB013F0010F1FD042F29C73C2F200031B7834 -S31508006FC013F0010F42F2A873C2F200031FBF072293 -S31508006FD05A7600229A7612BF1A8206225A7601201B -S31508006FE0FFF716F942F29C73C2F2000310221A70D8 -S31508006FF000F012FD56E042F29C73C2F200031B78C1 -S3150800700013F0010F08D042F2A873C2F2000305225A -S315080070105A7600221A82D3E042F29073C2F2000333 -S315080070201B88002B3ED1CBE042F29073C2F20003DC -S31508007030188808B1FFF7ECF842F62003C2F20003FD -S3150800704093F82F3013F0010F13D042F2A873C2F24F -S31508007050000307225A7600229A760120FFF7D8F80D -S3150800706042F29C73C2F2000310221A7000F0D4FC9C -S3150800707018E042F29073C2F200031B8893B99FE0AE -S3150800708042F29C73C2F200031B7813F0010F00F062 -S31508007090978042F2A873C2F2000307225A760022AA -S315080070A09A768DE042F62003C2F20003102283F896 -S315080070B02F2042F2A874C2F2000442F29073C2F280 -S315080070C0000328221A8042F62003C2F20003502247 -S315080070D083F82E20227A42F62003C2F2000383F8B0 -S315080070E02A20627A83F82B20A27A83F82C20E27A67 -S315080070F083F82D20227B83F82620627B83F82720BD -S31508007100A27B83F82820E27B83F829200622DA75F9 -S31508007110A2885A84E2889A8442F61C02C2F20002C5 -S315080071201188598352889A832288DA8362881A8456 -S31508007130637E13F0100F42F62003C2F200031DBF50 -S31508007140002283F8312083F83020062202BF83F814 -S3150800715030200A2283F8312042F62004C2F20004C5 -S315080071604023A37542F29073C2F200031B881A0AE1 -S3150800717022746374002584F8355084F83450658683 -S31508007180FFF770F8C04360864523A373E5736575FA -S31508007190257540F21263C2F200031A88013292B2D0 -S315080071A01A80130AA374E2742583FFF749F8C043CB -S315080071B0208342F29C73C2F2000300221A7038BD83 -S315080071C042F29073C2F2000300221A8042F29C73C4 -S315080071D0C2F200031A7038BD40F22463C2F20003FB -S315080071E001211970FFF7B6BA40F22463C2F2000310 -S315080071F001221A70E4E700BF030A43EA002080B2BE -S31508007200704700BF10B504460A1E0FDD42F66263DA -S31508007210C2F200031A8042F29473C2F2000318689D -S31508007220844203D0214692B202F05EF910BD00BF37 -S315080072302DE9F00340F22663C2F200034FF0000C7A -S3150800724083F800C040F22865C2F200052B460122E9 -S315080072501F461C88CCB15E88BEB1B0F80080A04538 -S3150800726013D14488B44210D140F22663C2F2000317 -S3150800727083F800C0086878608B883B8140F2896390 -S31508007280C2F200031B78BB725AE0541CE4B20C33FA -S31508007290092C02D094462246DAE72B4600221E46DF -S315080072A01C884CB95C883CB940F22663C2F20003DC -S315080072B01A70082A36D104E00132D2B20C33082AF1 -S315080072C0EDD1002340F28962C2F200021678B04678 -S315080072D01F4699465FFA83FCAA7AC2EB0804BC42A9 -S315080072E0C2BFC2EB0602E146D7B201330C35082B02 -S315080072F0F0D140F22763C2F200031F7040F28863A0 -S31508007300C2F2000383F8009040F22663C2F200033B -S3150800731083F8009040F22863C2F2000309EB49099A -S3150800732003EB89060268334643F8042B0A68726041 -S315080073308A889A8040F28963C2F200031B78B37286 -S31508007340BDE8F003704700BFF0B440F28963C2F2AB -S3150800735000031E780136F6B21E7040F22863C2F2A8 -S3150800736000030122002740F22664C2F2000458886E -S315080073701988014389B259B1997A711A772907DDB3 -S31508007380194601F8017B5F70013101F8017B0F7026 -S3150800739022700132D2B20C33092AE8D1F0BC704708 -S315080073A038B542F29073C2F200031B88292B06D81F -S315080073B042F29073C2F2000300221A8038BD42F2EC -S315080073C09073C2F2000300221A8042F62003C2F22A -S315080073D000039B8AB3F5807F03D0B3F5007F59D0AD -S315080073E038BD42F62002C2F2000242F61C03C2F27F -S315080073F00003D28C1B889A4269D142F62002C2F257 -S31508007400000242F61C03C2F20003128D5B889A4200 -S315080074105DD12F4CA51F20462946FFF709FFA4F189 -S315080074201C03002204F8082C022204F8072C54F83E -S31508007430062C626034F8022C228140F21C62C2F2E9 -S315080074400002106844F8060C928824F8022C44F8C6 -S31508007450160C24F8122C626844F81C2C228924F88D -S31508007460182C9A8B62816288A28142F61C02C2F2AB -S3150800747000021188998352886280082204F8102C29 -S31508007480062204F80F2C42F29073C2F200032A2255 -S315080074901A8038BD42F62002C2F2000242F61C03E8 -S315080074A0C2F20003D28C1B889A4210D142F62002FF -S315080074B0C2F2000242F61C03C2F20003128D5B8878 -S315080074C09A4204D1024908460639FFF7B1FE38BD8B -S315080074D03C28002038B542F62003C2F20003D98BB7 -S315080074E08AB24FF6FF739A4215D142F62003C2F2CA -S315080074F00003188C4FF6FF7398420CD142F620030E -S31508007500C2F2000349F62C42C0F600021068186061 -S3150800751092889A80ADE042F61C03C2F200031B88EB -S315080075205A4042F61803C2F200031B881A4212D1C7 -S3150800753042F62003C2F200031A8C90B242F61C03EC -S31508007540C2F200035B88584042F61803C2F20003F1 -S315080075505B8818420CD040F28C63C2F2000342F6F4 -S315080075601402C2F200021188198052885A8005E076 -S3150800757040F28C63C2F2000319805A8040F28C6391 -S31508007580C2F2000318885D8840F22863C2F200033D -S3150800759000221C46198881420AD15988A94207D176 -S315080075A040F22663C2F200031A70082A58D109E08D -S315080075B00132D2B20C33082AEBD140F22663C2F26A -S315080075C000031A7042F62004C2F200042046FF2186 -S315080075D0062201F0DDFF002384F8203084F82130EC -S315080075E084F8223084F8233084F8243084F825304F -S315080075F040F21C62C2F200021168C4F806109288B2 -S315080076006281C4F81610628340F28C62C2F20002EC -S315080076101188E1845288228542F61C02C2F20002D1 -S315080076201188A1835288E283237501226275A373A8 -S31508007630E2730822227463740623A3740423E37492 -S3150800764022730623637342F2A073C2F20003363430 -S315080076501C6042F29073C2F200032A221A8038BDD7 -S3150800766042F62003C2F2000354F8040F1860A288F9 -S315080076709A8042F62003C2F2000340F21C62C2F26C -S3150800768000021168C3F8061092885A8108221A73F4 -S3150800769000225A7342F29073C2F200031A880E321D -S315080076A01A8038BD08B500F017FC01F0ABFE01F0F2 -S315080076B08BFE00F095FC00F00FF800F0FBFB08BD10 -S315080076C008B500F00BFC01F0B9FE00F0C7FD00F0AC -S315080076D01BF800F0C7FB08BD10B500F0E1F901F092 -S315080076E007F840F2E404C2F200040123237001F013 -S315080076F089FB0023237001F0BFFC0223237000F0EE -S31508007700A9F80323237010BD08B540F29060C2F2B1 -S31508007710000001F0F5F801280BD140F2E403C2F2AB -S31508007720000301221A7040F29060C2F2000000F0D5 -S31508007730D7F940F29060C2F2000001F0B7FB0128C9 -S315080077400BD140F2E403C2F2000300221A7040F2A1 -S315080077509060C2F2000000F0C3F940F29060C2F2F5 -S31508007760000001F03FFD01280BD140F2E403C2F20C -S31508007770000302221A7040F29060C2F2000000F084 -S31508007780AFF940F29060C2F2000000F0BFF801289D -S315080077900BD140F2E403C2F2000303221A7040F24E -S315080077A09060C2F2000000F09BF908BD08B501F030 -S315080077B0CFFC08BD38B505460C4640F2E403C2F2D4 -S315080077C000031B78012B02D1C9B201F045F840F23B -S315080077D0E403C2F200031B781BB92846E1B201F0A4 -S315080077E031FB40F2E403C2F200031B78022B03D1FB -S315080077F02846E1B201F0B8FC40F2E403C2F2000305 -S315080078001B78032B03D12846E1B200F05DF800F09F -S315080078105FF938BD40F2E403C2F200031878012884 -S3150800782004D002280CBF3F2040207047082070472C -S3150800783040F2E403C2F200031878012804D00228B3 -S315080078400CBF3F20402070470820704708B500F05D -S3150800785035F908BD08B5FBF779FF01F001FE40F2DE -S31508007860D463C2F2000300F5FA70186001F0F8FD5F -S3150800787040F2D063C2F2000300F51C5010301860C5 -S31508007880FEF7F6FC42F61C03C2F200034FF6A962A5 -S315080078901A8043F61371598042F61803C2F20003A0 -S315080078A04FF6FF7119800021598042F61403C2F27F -S315080078B000031A8040F213125A804EF60300FEF7B0 -S315080078C0F1FCFCF757F808BDF8B542F2A473C2F20A -S315080078D000031F68FB693B628E4659B14E1EB6B25D -S315080078E00136002307F11C05C45CEA18147201333B -S315080078F0B342F9D10EF10401A7F8641007F120008C -S31508007900FFF780FCFB690133FB61F8BD10B5FCF796 -S3150800791043F800283ED042F29072C2F2000210806C -S3150800792042F62003C2F200039C894FF40060FFF779 -S3150800793063FC844213D10120FEF7CEFC42F2907319 -S31508007940C2F200031B882BB3FFF7C4FDFCF74CF803 -S3150800795042F29073C2F2000300221A801AE042F63D -S315080079602003C2F200039C8940F60600FFF744FC98 -S3150800797084420FD1FFF714FD42F29073C2F200035E -S315080079801B883BB1FCF730F842F29073C2F2000351 -S3150800799000221A8001F064FD40F2D463C2F20003AB -S315080079A01B68984222D340F2D462C2F2000203F561 -S315080079B0FA73136042F2A473C2F2000342F2A87289 -S315080079C0C2F200021A600220FEF786FC42F29073A9 -S315080079D0C2F200031B884BB1FFF77CFDFCF704F8E5 -S315080079E042F29073C2F2000300221A8001F038FDB9 -S315080079F040F2D063C2F200031B68984209D340F2F2 -S31508007A00D062C2F2000203F51C5310331360FFF76D -S31508007A109BFC002010BD00BF10B542F2A473C2F251 -S31508007A2000031C6842F29C73C2F200031B7813F031 -S31508007A30400F05D00123E3610023A4F8643010BD8C -S31508007A4013F0010F1CBF0022A4F8642013F0040FE2 -S31508007A5006D0B4F8641019B104F12000FFF7D2FB80 -S31508007A6042F29C73C2F200031B7813F0020F0AD08D -S31508007A700023A4F8643042F2A073C2F20003186827 -S31508007A80043000F02DF810BD40F2D863C2F20003AE -S31508007A90FE22DA7018710222A3F84420704700BF4C -S31508007AA040F2D863C2F2000300221A709A6483F87F -S31508007AB04320A3F844209A705A70704740F2D8635E -S31508007AC0C2F200031878003018BF0120704700BFC3 -S31508007AD040F2D863C2F20003002283F843207047BD -S31508007AE038B504460178FF2923D100F08FFA18B972 -S31508007AF01020FFF7C9FF96E140F2D864C2F20004ED -S31508007B000023637001252570FF22E270102222717E -S31508007B106371FFF77FFEA071FFF78AFEE071FFF73A -S31508007B2087FE000A20726572A5720823A4F84430FD -S31508007B3079E140F2D863C2F200031B78012B40F0CA -S31508007B409081C939352900F26B81DFE811F0DB0035 -S31508007B50690169016501690169015901FC00420170 -S31508007B602F016901690169016901690169016901F1 -S31508007B7069016901690169016901690169016901A7 +S315080002400010C2F2000005F073FD09F011F900F183 +S3150800025064064FF4A054C4F20104402503E009F0F3 +S3150800026007F9864205D32046294603F021FF0028D0 +S31508000270F5D049F24060C0F6000005F055FE70BDA5 +S3150800028008B540F20013C2F2000393F82432012B9A +S3150800029005D140F20010C2F2000005F049FD08BD84 +S315080002A070B5064640F20013C2F2000393F82432F2 +S315080002B0012B10D140F20011C2F2000105F0D4FE64 +S315080002C0002808DA40F20010C2F20000002380F885 +S315080002D0243205F02DFD317889B14FF4A054C4F2CB +S315080002E001048025204603F0DBFE2046294603F05C +S315080002F0DFFE0028F9D016F8011F0029F2D170BDDB +S3150800030080B582B003F0DAFE0120014603F038FD1D +S315080003100124009400278DF804708DF807700225D3 +S315080003208DF805503846C4F20200694603F058FCB9 +S315080003302020214603F05AFD0420214603F020FD23 +S315080003404FF40066C4F2020630460621082203F07E +S3150800035095FC30460721082203F090FC8DF80670BC +S315080003608DF807408DF80450402300938DF805500A +S315080003703046694603F034FC8DF804508023009318 +S315080003803046694603F02CFC2846214603F0F8FC63 +S315080003904FF48066C4F2020630460521092203F0AE +S315080003A06DFC30460621092203F068FC60230093A1 +S315080003B08DF804508DF805508DF806708DF80740B5 +S315080003C03046694603F00CFC4FF0C060214603F046 +S315080003D0FBFC07F06FF907F07BF9FCE720230B809D +S315080003E040F20000C2F20000704700BF08B590F85E +S315080003F01231032B01D108F061FF002008BD00BFB0 +S3150800040008B508F05BFF002008BD00BF08B5084620 +S3150800041008F0ACFF002008BD08B50B7813F0600F94 +S3150800042028D14B780A2B12D00B2B18D0062B21D1AA +S315080004304B881B0A212B05D1CA88172A28BF1722E1 +S315080004400D4901E00D49172200F080FA12E040F24A +S315080004502831C2F20001012200F078FA0AE08B780E +S3150800046033B940F22833C2F2000300221A6001E0D1 +S3150800047000F0D4FA002008BD120000200900002070 +S3150800048010B50446812101F02BFA2046012101F01E +S3150800049027FA002010BD00BF10B50446812140226E +S315080004A0022301F0F3F9204601214022022301F03C +S315080004B0EDF92046012141F6E802C2F20002402386 +S315080004C001F028FA002010BD41F6E800C2F200004B +S315080004D0704700BF12230B8040F26C00C2F2000086 +S315080004E0704700BF04230B8040F26800C2F2000088 +S315080004F0704700BF10B50A4641F62C14C2F2000434 +S3150800050049F27060C0F60000214600F0F7FC20466C +S3150800051010BD00BF10B50A4641F62C14C2F20004FD +S3150800052049F28460C0F60000214600F0E7FC204648 +S3150800053010BD00BF10B50A4641F62C14C2F20004DD +S3150800054049F29460C0F60000214600F0D7FC204628 +S3150800055010BD00BF10B50A4641F62C14C2F20004BD +S3150800056049F2A460C0F60000214600F0C7FC204608 +S3150800057010BD00BF10B50A4641F62C14C2F200049D +S3150800058049F2AC60C0F60000214600F0B7FC2046F0 +S3150800059010BD00BF704700BF704700BF704700BF5F +S315080005A008B5FFF7F3FD08BD08B5FFF7F1FD08BD6F +S315080005B008B50120FFF7E8FD08BD00BF08B5002013 +S315080005C0FFF7E2FD08BD00BFF0B583B00120014684 +S315080005D003F0D6FB4FF4C853009303278DF8057034 +S315080005E002238DF8043000268DF806608DF8076022 +S315080005F03446C4F202042046694603F0F1FA20465E +S3150800060008210A2203F03AFB20460B210A2203F0AE +S3150800061035FB20460C210A2203F030FB4FF4007309 +S3150800062000938DF805708DF8046001258DF8065045 +S315080006308DF807602046694603F0D2FA4FF48063C6 +S3150800064000938DF806508DF807508DF805702046F2 +S31508000650694603F0C5FA20460A210A4603F00EFB4E +S315080006604FF48040294603F0C1FB8020294603F059 +S3150800067099FB03B0F0BD00BF704700BF1C2202E023 +S3150800068000BF013BFCD10138B0F1FF3F01D0134652 +S31508000690F6E7704708B54FF47A7303FB00F0FFF7E7 +S315080006A0EDFF08BD10B50446D0F8E8351B69984734 +S315080006B0032384F81231002010BD00BF08B590F856 +S315080006C0123180F81331042380F81231D0F8E83556 +S315080006D0DB689847002008BD08B5D0F8E435DB6923 +S315080006E003B19847002008BD08B5D0F8E4351B6A61 +S315080006F09847002008BD00BF08B5D0F8E4355B6A06 +S315080007009847002008BD00BF10B50446D0F8E83564 +S315080007105B699847012384F81531002010BD00BF96 +S3150800072010B50446D0F8E8359B699847D4F8E435FF +S315080007305B68204600219847002084F8150110BD03 +S3150800074010B50446002140220B4601F09FF82046CA +S3150800075080214022002301F099F8012384F8123100 +S31508000760D4F8E8355B68A0789847002010BD00BF2C +S3150800077010B582B00446694600F02EF99DF80010BF +S3150800078001F01F03012B08D013B1022B0AD00EE08B +S315080007902046694600F050F90EE02046694600F00A +S315080007A0F5FA09E02046694600F00CFB04E020460D +S315080007B001F0800101F0E4F8002002B010BD00BF8E +S315080007C010B504460A4600294AD190F81131022B81 +S315080007D037D1D0F83821D0F824319A4210D9D21A14 +S315080007E0C0F83821C178012902BFD0F828115B1852 +S315080007F0C0F82831D4F8281192B200F0B9F820E0F0 +S31508000800D0F83C21B2FBF3F103FB112161B9934205 +S315080008100AD8D0F840319A4206D20A4600F0A8F81B +S315080008200023C4F840310CE0D4F8E435DB682BB17A +S3150800083094F81221032A01D120469847204600F051 +S31508000840BBF894F81631012B14D1226941F6281306 +S31508000850C2F200031B685360002384F8163109E0CE +S31508000860D0F8E4355B692BB190F81211032901D150 +S3150800087011469847002010BD10B504460A4651BBDC +S3150800088090F81131032B30D1D0F89023D0F87C336F +S315080008909A4213D9D21AC0F89023C178012902BF07 +S315080008A0D0F88013C918C0F880139A4228BF1A4690 +S315080008B0D4F8801392B200F065F816E0D0F8E43563 +S315080008C01B6923B190F81221032A00D198472046C4 +S315080008D000F062F809E0D0F8E4359B692BB190F88E +S315080008E01211032901D111469847002010BD00BFF7 +S315080008F0F8B504460D4616461F46FFF765FEC4F8CA +S31508000900E475069BC4F8E835C4F8EC652046294624 +S3150800091000F06EFFD4F8E8351B6898472046FFF7C5 +S31508000920ABFEF8BD10B50446D0F8E4351B68984709 +S31508000930D4F8E8359B689847002010BD08B5D0F86C +S31508000940E4355B689847002008BD00BF38B5044603 +S315080009500D461346C4F83C21C4F83821022280F813 +S31508000960112100212A4600F0F1FF002038BD00BF02 +S3150800097010B50C4613460021224600F0E7FF00207A +S3150800098010BD00BF10B50C4613460021224600F0E4 +S31508000990C1FF002010BD00BF10B50446042380F82F +S315080009A0113100210A460B4600F0D0FF204600F020 +S315080009B0FDFE002010BD00BF10B50446052380F8D3 +S315080009C0113100210A460B4600F0A4FF204600F02C +S315080009D0EDFE002010BD00BF90F8CC350B7090F8E6 +S315080009E0CD354B7090F8CF2590F8CE3503EB022322 +S315080009F04B8090F8D12590F8D03503EB02238B80F5 +S31508000A0090F8D32590F8D23503EB02239BB2CB801E +S31508000A10C0F84031012380F81131704710B50446FB +S31508000A20802100F0ADFF2046002100F0A9FF2046F6 +S31508000A3000F0BCFE10BD00BF70B582B005460C467E +S31508000A404B78092B00F29C81DFE813F02301820121 +S31508000A509A0144019A0193000A009A010301B80019 +S31508000A606288130A013B062B6DD8DFE803F00415EC +S31508000A70226C6C646800D0F8EC351B6880780DF140 +S31508000A80060198470146E388402B03D095F81231B2 +S31508000A90012B5CD108235FE0D0F8E4359B6A8078A7 +S31508000AA00DF106019847014602234370C5F8F00583 +S31508000AB04DE0D2B2052A3AD8DFE802F0030C151E3B +S31508000AC02730D0F8EC355B6880780DF10601984739 +S31508000AD001463CE0D0F8EC359B6880780DF10601BC +S31508000AE09847014633E0D0F8EC35DB6880780DF19D +S31508000AF00601984701462AE0D0F8EC351B6980784C +S31508000B000DF106019847014621E0D0F8EC355B69FE +S31508000B1080780DF106019847014618E0D0F8EC35C3 +S31508000B209B6980780DF10601984701460FE021463A +S31508000B30FFF774FF27E12146FFF770FF23E12146FF +S31508000B40FFF76CFF1FE12146FFF768FF1BE1BDF8C1 +S31508000B500630002B00F01781E288002A00F0138186 +S31508000B60934238BF1A46ADF806202846FFF7EEFE30 +S31508000B7009E1A388EBB9E388DBB9A67806F07F0616 +S31508000B8090F81231032B03D12146FFF747FFFAE00D +S31508000B9080F81461314600F033FF2846FFF7FCFE63 +S31508000BA01EB1022385F81231EDE0012385F81231D2 +S31508000BB0E9E028462146FFF731FFE4E0A27840F253 +S31508000BC03833C2F200031A70012A03D92146FFF707 +S31508000BD025FFD8E090F81231022B02D0032B10D053 +S31508000BE033E05AB180F81021032380F812311146F8 +S31508000BF0FFF798FE2846FFF7CFFEC4E0FFF7CCFEC6 +S31508000C00C1E05AB9022380F81231002180F8101188 +S31508000C10FFF794FE2846FFF7BFFEB4E090F81011E0 +S31508000C208A420FD0FFF78AFE40F23833C2F2000339 +S31508000C30197885F810112846FFF774FE2846FFF73D +S31508000C40ABFEA0E0FFF7A8FE9DE02146FFF7E6FE13 +S31508000C5099E0E388012B03D02146FFF7DFFE92E0F7 +S31508000C6090F81231022B02D0032B08D00DE040F287 +S31508000C703431C2F200010122FFF768FE83E005F570 +S31508000C8088710122FFF762FE7DE02146FFF7C6FE66 +S31508000C9079E090F81231023B012B17D840F22C3339 +S31508000CA0C2F2000301221A60D0F818312BB140F2C3 +S31508000CB02C33C2F2000303221A60284640F22C3174 +S31508000CC0C2F200010222FFF741FE5CE02146FFF76F +S31508000CD0A5FE58E06388012B0AD1C0F81831D0F870 +S31508000CE0E4359B68214698472846FFF755FE4AE0B3 +S31508000CF0022B48D1A38813F0FF0F44D1026952682A +S31508000D001B0A013B042B17D8DFE803F003070B0F78 +S31508000D101300012363F306120EE0022363F306129F +S31508000D200AE0032363F3061206E0042363F30612BC +S31508000D3002E0052363F3061241F62813C2F2000304 +S31508000D401A60012385F816312846FFF725FE1AE0B2 +S31508000D5090F81231023B012B0ED86388012B12D171 +S31508000D600023C0F81831D0F8E4359B682146984727 +S31508000D702846FFF711FE06E02146FFF74FFE02E080 +S31508000D802146FFF74BFE002002B070BD38B5044679 +S31508000D900D4690F81231032B0FD10B79012B09D888 +S31508000DA0D0F8E4359B689847EB8843B92046FFF7A7 +S31508000DB0F3FD04E0FFF732FE01E0FFF72FFE002007 +S31508000DC038BD00BF38B505460C468A88D1B2637867 +S31508000DD0012B27D0002B48D0032B40F08D8090F8AC +S31508000DE01231022B02D0032B07D017E011F07F0F28 +S31508000DF000F0828000F0C4FD7EE0638823B911F01C +S31508000E007F0F01D000F0BCFDD5F8E4359B68284675 +S31508000E10214698472846FFF7BFFD6DE02146FFF7B4 +S31508000E20FDFD69E090F81231022B02D0032B06D0A3 +S31508000E3017E011F07F0F5FD000F0A2FD5CE0638839 +S31508000E40002B59D111F07F0F07D000F0B9FDD5F866 +S31508000E50E4359B682846214698472846FFF79CFDB7 +S31508000E604AE02146FFF7DAFD46E090F81231022BF8 +S31508000E7002D0032B06D03CE011F07F0F3CD000F0E7 +S31508000E807FFD39E012F0800F16D001F07F0101EBEB +S31508000E90810100EBC10191F81E3133B140F23033C4 +S31508000EA0C2F2000301221A601AE040F23033C2F29D +S31508000EB0000300221A6013E001EB810100EBC10177 +S31508000EC091F8763333B140F23033C2F2000301228F +S31508000ED01A6005E040F23033C2F2000300221A60BD +S31508000EE0284640F23031C2F200010222FFF72EFDF9 +S31508000EF002E02146FFF792FD002038BD70B4064691 +S31508000F0000B3037843B1044600230133DBB214F877 +S31508000F10015F002DF9D100E000235B000233138046 +S31508000F200B7003234B70327862B1304602230025DA +S31508000F305C1CE4B2CA540233DBB20D5510F8012F1B +S31508000F40002AF5D170BC704770B582B005460023FB +S31508000F5001930320FFF792FBEB681A6901924FF49D +S31508000F605464C0F20304032607E03046FFF786FB05 +S31508000F70EB681A690192013C1CD0019A002AF4DA3E +S31508000F80019A42F001020192019A1A61EB681B6903 +S31508000F9001934FF45463C0F2030304E0EA6812694C +S31508000FA00192013B03D0019A12F0010FF6D10320FA +S31508000FB0FFF764FB002002B070BD00BF10B4C47810 +S31508000FC06CB9033300EB8200D0F8D0409B1006D0F2 +S31508000FD0002251F8040B206001329342F9D1002017 +S31508000FE05DF8044B704700BF70B40332D0F8D06088 +S31508000FF0951009D00A460023346842F8044B013399 +S315080010009D42F9D101EB8501084670BC704700BFC7 +S3150800101070B40023C37001238370402383800129A1 +S315080010200DD10123C37208230370042343704FF4C0 +S31508001030A073C380022303724FF0A0450EE000257B +S3150800104061B90023C3720C230370062343704FF45F +S31508001050A063C3800025C4F20405FFE7C56005F553 +S3150800106000630361467866B105F510620346002100 +S315080010709A6102F500745C650131203204338E42B0 +S31508001080F6D805F58063436105F58863C0F8CC306A +S315080010900678D6B1344605F5A06102460023C2F8A3 +S315080010A090100133203104329C42F8D86EB105F510 +S315080010B0805305EB063101F580510246C2F8D0305F +S315080010C003F5805304328B42F8D105F56065C0F804 +S315080010D00C51002070BC704738B504460025037AC9 +S315080010E0012B21D1C268936B6FF31043417A09B182 +S315080010F043F480139363E268D3686FF386136FF340 +S3150800110096536FF351436FF3D343D3602046FFF7EB +S315080011101BFFE378012B25D1052363F3440545F02E +S315080011202005E3689D6012E0C268D36843F0400377 +S31508001130D360FFF709FF637A002B0CBF4FF45023E7 +S315080011404FF4E813E26893631420FFF7A3FAE378F1 +S31508001150012B07D1E3689D68052262F3440545F033 +S3150800116020059D60002038BDC3689A6842F00102D8 +S315080011709A600020704700BFC3689A6822F001028F +S315080011809A600020704700BF00B583B00023019322 +S31508001190019B43F020030193019B61F38A1301939A +S315080011A0C368019A1A61C3681B6901934FF45463B3 +S315080011B0C0F2030304E0C26812690192013B03D03E +S315080011C0019A12F0200FF6D10320FFF757FA0020F4 +S315080011D003B05DF804FB00BF00B583B0002301939C +S315080011E0019B43F010030193C368019A1A61C3680F +S315080011F01B6901934FF45463C0F2030304E0C26809 +S3150800120012690192013B03D0019A12F0100FF6D130 +S315080012100320FFF733FA002003B05DF804FB00BF94 +S3150800122008B5C268D3686FF35D736FF39E730129BF +S3150800123008BF43F0005302D009B943F08043D36096 +S315080012403220FFF727FA002008BD00BFC3685B6994 +S3150800125013F0010F14BF002001207047C3685A69B4 +S3150800126098691040704700BF03691A6861F3010264 +S315080012701A60704710B40023C2689361C1686FF0A2 +S3150800128080424A61C1684FF0FF344C60C1684A61C8 +S315080012904FF40062C8F20002C1688A61C2789A42B5 +S315080012A008BF102343F0804343F4701343F460539C +S315080012B043F00C03C26891690B43936100205DF803 +S315080012C0044B704770B5044600252E46D0F80C31FD +S315080012D01D6003691A6865F3CC221A60C37A012B6C +S315080012E026D10321FFF7C0FFE2688023536220223C +S315080012F062F31F4563F30F05E1688D62A02161F370 +S315080013000F0663F31F46E368C3F804614FF490734E +S3150800131063F30F0662F31F46E368C3F808614FF4E8 +S31508001320A07363F30F066FF31F46E368C3F80C61F7 +S3150800133020461021FFF728FF2046FFF74DFF2269B8 +S31508001340002313612269536122694FF0FF319161CD +S315080013502269D3616378002B2CD0234600221646D7 +S31508001360FF2599690868C00F002814BF4FF0904000 +S315080013700020086099690E6199698D60013261786B +S3150800138004339142EDD8A9B1234600221646FF251B +S31508001390596D0868C00F002814BF4FF09040002010 +S315080013A00860596D0E61596D8D600132043361789C +S315080013B09142EDD823691A6942F480721A61E3787A +S315080013C0012B09D10323402262F38A0343F48033B5 +S315080013D062F35943226913632046FFF74BFF002047 +S315080013E070BD00BF03699B68C3F34103022B05D098 +S315080013F0032B05D0012B03D003207047012070472B +S31508001400022070470369996883691A68C1F3410124 +S31508001410022912BF6FF30A02032161F30A021A6056 +S3150800142003695A6842F480725A600020704700BF08 +S3150800143030B400224B78012B0B7800EB830401BFF4 +S31508001440A469012505FA03F363F30F021FBF646D50 +S31508001450012505FA03F363F31F42236813F4004FCB +S315080014600DD18D6865F30A03CD7865F39343C98872 +S3150800147061F3995343F0805343F4004323600369AF +S31508001480D9690A43DA61002030BC704730B40023BA +S315080014901A464C78012C097800EB810401BFA4692F +S315080014A0012505FA01F161F30F021FBF646D0125DD +S315080014B005FA01F161F31F426FF3CF332360036925 +S315080014C0D96921EA0202DA61002030BC704700BF00 +S315080014D070B50B464A78012A53D10A7800EB820286 +S315080014E091690A6809695C692CB96FF312010124CC +S315080014F064F3DC410DE064F312019D682C44013C61 +S31508001500B4FBF5F565F3DC41DC78012C08BF64F320 +S315080015105E711C7800EB8404A4692161C1780129F5 +S3150800152006D1197800EB81018C69196961610CE0B3 +S31508001530D97801290CD0596999B101694D6B1C7884 +S31508001540012606FA04F42C434C63D978012908D1FC +S315080015500169896811F4807F0CBF42F0005242F09D +S31508001560805242F00442197800EB810189690A60C9 +S31508001570DA78012A41D1D9681A789B8AFFF71EFDC5 +S315080015803BE00A7800EB8202516D0A6809695C69DA +S3150800159034B99C6864F31201012464F3DC410CE05D +S315080015A09D682C44013CB4FBF5F4C4F3090464F3C8 +S315080015B0DC4105FB04F565F312011C7800EB840495 +S315080015C0646D2161C178012901BF197800EB810199 +S315080015D04C6D196908BF6161D978012906D1597915 +S315080015E011B142F0005201E042F0805242F004424A +S315080015F01B7800EB8300436D1A60002070BD00BFA6 +S3150800160030B482B04B78012B49D1826913681469CA +S3150800161000944C696CB99DF800406FF306048DF888 +S3150800162000409DF80240012565F3C4048DF8024088 +S3150800163017E08D68AC4281BF4D619DF8004065F3A7 +S3150800164006048DF800409EBF9DF8005064F3060519 +S315080016508DF800509DF80240012565F3C4048DF805 +S315080016600240009C1461C478012C01BF0C7800EB81 +S315080016708404A5690C6908BF6C6143F004431360D0 +S31508001680C378002B49D14B69002B46D00369586BA8 +S315080016900A78012101FA02F202435A633DE00B7807 +S315080016A000EB83035A6D1368126900924A6972B98E +S315080016B08C689DF8002064F306028DF800209DF8DA +S315080016C00220012464F3C4028DF802200EE08C681F +S315080016D04C619DF8002064F306028DF800209DF801 +S315080016E00220012464F3C4028DF802200A7800EB74 +S315080016F08202546D009A2261C278012A01BF0A78D3 +S3150800170000EB8202546D0A6908BF626143F0044324 +S315080017100A7800EB8200426D1360002002B030BCEC +S31508001720704700BF4B78012B0CD10B7800EB830078 +S3150800173082691368002BB8BF43F0804343F4001353 +S31508001740136007E00B7800EB8300426D136843F4DF +S3150800175000131360002070474B78012B0B7800EBC1 +S3150800176083000CBF8269426D13686FF35553C978BD +S315080017700239C9B2012998BF43F08053136000208B +S31508001780704700BF03699A69D8691040000C704712 +S3150800179000EB81014B6D9B680269506918407047E0 +S315080017A003699869DB69184080B2704782B00023E4 +S315080017B00093C0238DF803304FF00003012262F333 +S315080017C0C4038DF8023018238DF80030436D009A53 +S315080017D01A61C378012B08D1436D00F2CC525A61C5 +S315080017E0436D1A684FF080221A6002B0704700BF36 +S315080017F070B50446FFF70CFC012384F81231002368 +S3150800180084F8143163787BB32346002201261146F7 +S31508001810402583F81D6183F81C21A3F8222183F84B +S315080018201F11C3F82451C3F82811C3F83011013227 +S31508001830607828339042ECD8B0B12346002211468E +S31508001840402583F8751383F87423A3F87A2383F85D +S315080018507713C3F87C53C3F88013C3F8881301328F +S31508001860283360789042ECD82046FFF785FC20465E +S31508001870FFF732FC20460021FFF7D2FC2046FFF78F +S3150800188021FD2046FFF770FC70BD00BF38B511F08A +S31508001890800F0FD001F07F0404EB840500EBC5052B +S315080018A005F58E7185F81C4101254D708A60CB704F +S315080018B0CC800DE001F07F0404EB840500EBC50540 +S315080018C005F55D7185F8744300244C708A60CB7009 +S315080018D0022B04BF00230B71FFF7AAFD002038BDB9 +S315080018E008B5CAB212F0800F01F07F0303EB830339 +S315080018F000EBC30314BF03F58E7303F55D7301F0A4 +S315080019007F011970D2095A701946FFF7BFFD0020EA +S3150800191008BD00BF38B501F07F0404EB840500EB71 +S31508001920C50505F55D71CA604B6100238B614B7077 +S3150800193085F87443C378012B08BF0A6114B9FFF709 +S315080019405FFE01E0FFF7C4FD002038BD70B501F069 +S315080019507F0404EB840500EBC50505F58E710126A9 +S315080019604E7085F81C41CA600A6100228A614B6183 +S3150800197014B9FFF745FE01E0FFF7AAFD002070BD88 +S3150800198010B5CAB212F0800F1FBF01F07F0303EB38 +S31508001990830300EBC30303F58E7302BF01EB8103D8 +S315080019A000EBC30303F55D7301249C7001F07F010E +S315080019B01970D2095A701946FFF7B4FE002010BDF7 +S315080019C010B5CAB212F0800F1FBF01F07F0303EBF8 +S315080019D0830300EBC30303F58E7302BF01EB810398 +S315080019E000EBC30303F55D7300249C7001F07F01CF +S315080019F01970D2095A701946FFF7AEFE204610BD77 +S31508001A00002361F30A13026911680B4313607047D8 +S31508001A1008B503695A6842F002025A600320FEF7C5 +S31508001A2039FE08BD2DE9F04F87B08146FFF70EFC59 +S31508001A30002800F0A0824846FFF710FC83460028DD +S31508001A4000F09B8210F4002F08BF00205CD04846A7 +S31508001A50FFF798FE0446002854D04D464F46002608 +S31508001A6040F29C08C2F20008CDF800B0C34614F054 +S31508001A70010F40D05FFA86FA48465146FFF788FEBE +S31508001A80804610F0010F23D04FF001086B6DC3F8A4 +S31508001A90088099F80330434508D16B6D1A69C2F37B +S31508001AA01202D7F87C339B1AC7F88C33DBF8003060 +S31508001AB01B6848465146984799F80330012B07D1C9 +S31508001AC036B999F81131052B02D14846FFF76EFE53 +S31508001AD018F0020F1FBF4FF002086B6D42469A605E +S31508001AE018F0080F07D0DBF800309B68484698477F +S31508001AF06B6D082098600136043528376408B6D11E +S31508001B00DDF800B00120FFE71BF4802F00F0BC8051 +S31508001B104846FFF745FE0646002800F0B4804F46C3 +S31508001B20CA464FF0000840F29C02C2F20002019237 +S31508001B30CDF808B0CDF8009016F0010F00F09780A8 +S31508001B405FFA88F90098036919695C6B00EB8902EA +S31508001B509269926824FA09F4E401E4B20C43144049 +S31508001B6014F0010F1CD0596B012202FA08F021EA81 +S31508001B70000159631446BB699A60019A13685B6849 +S31508001B800098494698470098C378A34208D1B8F107 +S31508001B90000F05D190F81131042B01D1FFF706FE8D +S31508001BA014F0080F1EBF0824BB699C6014F0100FC0 +S31508001BB01EBF1024BB699C6014F0400F1EBF402452 +S31508001BC0BB699C6014F0020F1EBF0224BB699C60AF +S31508001BD014F0800F4BD05446DAF83021DAF8343155 +S31508001BE0D01ADAF82431BB46BA69916989B29842A3 +S31508001BF038BF03460333B1EB930F34D9DAF83451BF +S31508001C00DAF83031AB422ED96BB30396009E5D1BD2 +S31508001C10D4F82421AA4238BF15463046D4F82811EC +S31508001C204A46ABB2FFF7CAF9D4F828312B44C4F8B0 +S31508001C302831D4F834312B44C4F83431DBF8183061 +S31508001C409B6903359BB2B3EB950F09D9D4F8345188 +S31508001C50D4F83031AB4205D9002BD8D1039E02E027 +S31508001C60039E00E0039EDBF8183080229A6008F194 +S31508001C70010804370AF1280A76087FF45DAFDDF813 +S31508001C8008B0DDF8009001201BF0020F1EBFD9F83E +S31508001C900C3002225A61BBF1000F1FDA99F80A309C +S31508001CA043B1D9F80C316FF341036FF30003D9F848 +S31508001CB00C211360D9F810305A6822F001025A60D4 +S31508001CC040F29C03C2F200031B689B69484698478A +S31508001CD0D9F80C304FF000425A6101201BF4006F0E +S31508001CE03AD000238DF8173099F812318DF817304D +S31508001CF040F29C03C2F200031B685B69484698479A +S31508001D00D9F810309968D9F80C304FF400625A6146 +S31508001D1099F80A30FBB111F0010F1CD099F815316A +S31508001D20012B18D19DF81730DBB2032B13D1D9F844 +S31508001D300C311A6842F001021A60D9F80C311A6897 +S31508001D4042F003021A604FF46D43CEF200031A699B +S31508001D5042F006021A6101201BF0080F0CD040F26F +S31508001D609C03C2F200031B68DB6848469847D9F80B +S31508001D700C3008225A6101201BF0100F38D0D9F810 +S31508001D800C309A6922F010029A61D9F80C301C6A54 +S31508001D9004F00F0303EB830309EBC30505F55D7533 +S31508001DA0C4F34343022B02D0062B0FD019E0C4F329 +S31508001DB00A14B4B14846E9682246FFF715F9EB68F4 +S31508001DC02344EB60AB692344AB610AE0484609F259 +S31508001DD0CC510822FFF708F9C4F30A14AB69234467 +S31508001DE0AB61D9F80C309A6942F010029A61012069 +S31508001DF01BF4805F4CD00024274626462546D9F892 +S31508001E0010305A6822F001025A6048462146FFF708 +S31508001E10BBF999F8013063B14B462246FF21986910 +S31508001E208160586D81600132043399F8010082425D +S31508001E30F5D3D9F810304FF0FF329A614FF0010808 +S31508001E4068F30F0468F31F44D9F81030DC6147F0D3 +S31508001E500B07D9F810305F6146F00B06D9F8103039 +S31508001E601E61D9F810301A686FF30A121A604846CC +S31508001E70FFF79CFC45F48055D9F80C305D6140F2BB +S31508001E809C03C2F200031B681B69484698474046F4 +S31508001E901BF4005F26D04846FFF7B4FAD9F80C3091 +S31508001EA0DC684846FFF79EFA032801BF002389F835 +S31508001EB002304FF40073A9F804300FBF0923012339 +S31508001EC089F8023040231CBFA9F80430052363F3C0 +S31508001ED08D24D9F80C30DC60D9F80C304FF4005258 +S31508001EE05A6101201BF4801F0DD040F29C03C2F2F8 +S31508001EF000031B68DB6948469847D9F80C304FF44D +S31508001F0080125A6101201BF4001F0DD040F29C0379 +S31508001F10C2F200031B681B6A48469847D9F80C307A +S31508001F204FF400125A6101201BF0804F0DD040F289 +S31508001F309C03C2F200031B685B6A48469847D9F8B7 +S31508001F400C304FF080425A6101201BF0040F15D067 +S31508001F50D9F80C305C6814F0040F07D040F29C03E3 +S31508001F60C2F200031B689B6A48469847D9F80C30AA +S31508001F705C60012002E0002000E0002007B0BDE818 +S31508001F80F08F00BF08B54FF43053C4F201035B6B02 +S31508001F9013F0450F07D14FF43052C4F20102536BC8 +S31508001FA013F0450FFBD013F0040F04D0042001F002 +S31508001FB0EDFF032008BD13F0010F04D0012001F046 +S31508001FC0E5FF012008BD40F2FF5001F0DFFF0020C9 +S31508001FD008BD00BF10B504464FF43053C4F20103E0 +S31508001FE05B6B13F0450F07D14FF43052C4F2010270 +S31508001FF0536B13F0450FFBD013F0040F04D00420E5 +S3150800200001F0C4FF032010BD13F0010F04D0012016 +S3150800201001F0BCFF012010BD01F070FFA04249D1BC +S3150800202040F2FF5001F0B2FF002001F06FFF4EF2C0 +S315080020300803CFF6FF530340002B3DD000283DDBB5 +S3150800204010F0804F3CD110F0005F3BD110F0805F5C +S315080020503AD110F0006F39D110F0806F38D110F0F6 +S31508002060807F37D110F4000F36D110F4800F35D1A8 +S3150800207010F4001F34D110F4801F33D110F4002F50 +S3150800208032D110F4802F31D110F4003F30D110F442 +S31508002090803F2FD110F4004F2ED110F4804F2DD150 +S315080020A010F4005F2CD100F00800002814BF1A2095 +S315080020B0002010BD102010BD002010BD1C2010BD32 +S315080020C0092010BD0A2010BD0B2010BD0C2010BD24 +S315080020D00D2010BD0E2010BD0F2010BD102010BD04 +S315080020E0112010BD122010BD132010BD142010BDE4 +S315080020F0152010BD162010BD172010BD182010BDC4 +S31508002100192010BD2DE9F04383B00446002001F0E4 +S31508002110FDFE10F0007F18BF0E2040F0238100223C +S315080021200092019240F2F030C2F2000008210160EC +S315080021301025456040218160C2604FF480620261CB +S3150800214001F0C4FE2846FFF745FF002840F0068147 +S3150800215040F2F030C2F2000040F29432C2F20002BD +S315080021601268AA4002603725456040228260002234 +S31508002170C2604FF48062026101F0A8FE2846FFF7AC +S3150800218029FF002840F0EB8040F23C30C2F2000004 +S315080021904FF0FF3303600823436030238360022334 +S315080021A0C360002505610123436101F0BDFE40F2CD +S315080021B0F030C2F200000560332646604022826095 +S315080021C0C5604FF48062026101F080FE3046FFF779 +S315080021D001FF002840F0C48042F211754FF0000953 +S315080021E04FF43056C4F2010640F22A674FF400183D +S315080021F00FE0404601F0C0FE40B101F0ADFE02AA74 +S3150800220002EB890343F8080C09F10109013D00F0C6 +S31508002210A880736B3B42ECD0082001F0ADFE20B1DC +S31508002220082001F0B3FE04209CE0022001F0A4FE81 +S3150800223020B1022001F0AAFE022093E0202001F03E +S315080022409BFE20B1202001F0A1FE06208AE04FF473 +S31508002250007001F091FE28B14FF4007001F096FE6F +S3150800226007207FE040F2FF5001F090FE009A130627 +S3150800227043EA126302F47F4143EA012302F47F0230 +S3150800228043EA1223012C34D113F4802F08BF2520EA +S3150800229068D040F2F030C2F2000040F29432C2F246 +S315080022A000021268120402603724446040228260E9 +S315080022B00022C2604FF48062026101F007FE2046E8 +S315080022C0FFF788FE002847D140F2F030C2F200003E +S315080022D00222026006244460402282600022C26014 +S315080022E04FF48062026101F0F1FD2046FFF772FEAD +S315080022F038E013F4803F08BF252033D040F2F03091 +S31508002300C2F2000040F29432C2F2000212681204CD +S31508002310026037244460402282600022C2604FF483 +S315080023208062026101F0D2FD2046FFF753FEA0B994 +S3150800233040F2F030C2F20000002202600624446037 +S3150800234040218160C2604FF48062026101F0BEFDE7 +S315080023502046FFF73FFE05E004E003E002E001E067 +S3150800236000E0042003B0BDE8F08300BF00B583B0E9 +S3150800237001238DF807304FF40060C4F202004FF4D1 +S31508002380006101F075FC10B900238DF807309DF83F +S31508002390070003B05DF804FB2DE9F04782B000247E +S315080023A08DF8074040F27C30C2F2000076230375B0 +S315080023B0046044608460C460046101F059FD032030 +S315080023C001F076FD012001F06DFD40F2F030C2F219 +S315080023D00000046044608460C4604FF48063036155 +S315080023E001F074FD4FF48034802501E0013C0CD0E7 +S315080023F0284601F0C1FD0028F8D003233CB140F27D +S31508002400FF5001F0C3FD002301E00323FFE78DF829 +S3150800241007309DF8073013F0FF0F03D09DF807002B +S31508002420C0B2F5E040F2F030C2F200004FF4D573C6 +S31508002430036008234360402383600023C3604FF48E +S315080024408063036101F042FD4FF43053C4F2010387 +S315080024505A6B12F0450F0ED14FF480334FF43051BA +S31508002460C4F20101013B4A6B12F0450F02D1002B61 +S31508002470F8D103E013B112F0040F04D0042001F0E0 +S3150800248085FD032309E012F0400F08BF002304D09E +S31508002490402001F07BFD0023FFE78DF807309DF80B +S315080024A0073013F0FF0F08D140F26433C2F200037D +S315080024B001221A604FF0804514E040F2F030C2F273 +S315080024C00000002505603724446040228260C5600C +S315080024D04FF48062026101F0F9FC2046FFF77AFDAD +S315080024E08DF8070040F2F030C2F2000000220260C8 +S315080024F03724446040218160C2604FF480620261E3 +S3150800250001F0E4FC2046FFF765FD8DF807009DF80D +S31508002510073013F0FF0F78D1002740F2F034C2F2EB +S315080025200004B846B94645F0004545F4801A4FF40C +S315080025303055C4F20105C4F800903726666040237A +S31508002540A360C4F80C904FF480632361204601F021 +S31508002550BDFC3046FFF73EFD8DF807009DF80730B5 +S3150800256013F0FF0F03D09DF80700C0B250E0C4F87F +S3150800257000A0292363604023A360C4F80C804FF4AD +S3150800258080632361204601F0A1FC6B6B13F0450FB5 +S3150800259003D16B6B13F0450FFBD013F0040F04D077 +S315080025A0042001F0F3FC032304E040F2FF5001F09D +S315080025B0EDFC43468DF807309DF8073013F0FF0F02 +S315080025C003D09DF80700C0B222E0404601F09EFC09 +S315080025D0013701464FF6FE73C043C00F9F4288BFBE +S315080025E000200028A7D19F4206D91B238DF8073063 +S315080025F09DF80700C0B20BE011F0804F1FBF40F2F4 +S315080026006433C2F2000302221A609DF80700C0B2C2 +S3150800261002B0BDE8F08700BF38B501F04FFC0028CE +S3150800262000F0BC8040F26433C2F200031B68042B3E +S3150800263000F0B68040F2F030C2F2000000230360DA +S3150800264002224260C0228260C3604FF48063036145 +S3150800265001F03CFCFFF796FC002840F0A38001F04F +S3150800266055FC40F26834C2F200042060042001F0F0 +S315080026704DFC6060082001F049FCA0600C2001F0C8 +S3150800268045FCE06040F26433C2F200031B68062B87 +S3150800269018BF022B88BF01224AD840F2F030C2F296 +S315080026A00000002303600322426040228260C36068 +S315080026B04FF48063036101F009FC4FF43053C4F210 +S315080026C001035B6B13F0450F07D14FF43052C4F288 +S315080026D00102536B13F0450FFBD013F0040F04D01F +S315080026E0042001F053FC032038BD13F0010F04D079 +S315080026F0012001F04BFC012038BD01F0FFFB032847 +S3150800270054D140F2FF5001F041FC002001F0FEFBDD +S3150800271010F4604F08BF020C0AD010F4005F47D1CE +S3150800272010F4804F46D110F4004F45D10122FFE73F +S3150800273040F26433C2F200031B68042B33D040F224 +S315080027409433C2F200031A6040F2F030C2F200007D +S315080027501204026009234360C02383600023C36018 +S315080027604FF48063036101F0B1FBFFF70BFC0546EC +S31508002770D8B901F0CBFB40F25434C2F20004206011 +S31508002780042001F0C3FB6060082001F0BFFBA060D5 +S315080027900C2001F0BBFBE060284638BD252038BD7B +S315080027A0002038BD38BD002038BD38BD102038BDE2 +S315080027B0132038BD102038BD0F2038BDF0B40146AF +S315080027C040F26433C2F200031C6880F8564040F2B7 +S315080027D09433C2F200031B68A0F8543040F2543315 +S315080027E0C2F200031A68150EE8B286090E70C5F320 +S315080027F083054D7000F003008870C2F30740C87067 +S31508002800C2F307200871D2B24A715B681A0E120128 +S31508002810CA80C3F30742C88880B240EA1210C8804B +S3150800282002F00F020A72C3F30720C2094A72C0F304 +S3150800283080128A72C0F34012CA72C0F300120A7379 +S3150800284000224A73012C42D800F003008002086176 +S315080028500A69DBB242EA83030B6140F25433C2F2DF +S3150800286000039868020ED3B20C6944EA93140C610B +S31508002870C2F3C2020A7503F007034B75C0F3074398 +S315080028805A098A75C3F38202CA7503F003035B000B +S315080028900B76C0F307200B7E43EAD0130B760F693D +S315080028A00A7E0E7AF6B2012303FA06F60E6502329E +S315080028B003FA02F2D517A2FB062306FB05337E1C94 +S315080028C0A2FB064506FB0355C1E9124524E0022C86 +S315080028D022D103F03F031B040B6140F25433C2F2CA +S315080028E0000398680B69020E43EA02230B610B6921 +S315080028F0C0F3074213430B61C0F307200A6900239C +S31508002900013243F10003DB0443EA5233D2048A64FA +S31508002910CB644FF400730B65C0F380134B7600F05D +S315080029203F004000887640F25433C2F200031A7A18 +S31508002930887E40EAD210887602F07F02CA76DA6884 +S31508002940130ED8B2C4090C77C3F341144C77C3F3FA +S3150800295082038B7700F003008000C877C2F3074331 +S31508002960C87F40EA9310C877C3F3401081F8200067 +S31508002970002081F8210003F0010381F82230C2F318 +S315080029800723DC0981F82340C3F3801481F8244027 +S31508002990C3F3401481F82540C3F3001481F8264098 +S315080029A0C3F3810481F8274003F0030381F8283034 +S315080029B0C2F3460281F82920012481F82A4040F210 +S315080029C06833C2F200031A68150E81F82C50C2F358 +S315080029D007452D02CD85CD8DADB2C2F30726354309 +S315080029E0CD8512060A635A680D6B160E45EA06452A +S315080029F00D630D6BC2F3074645EA06250D630D6B9D +S31508002A00C2F3072635430D63D2B281F834209A689B +S31508002A10150E81F83550C2F307452D068D638D6B6B +S31508002A20C2F3072645EA06458D638D6BD2B245EAA1 +S31508002A3002228A63DB688A6B42EA13628A63C3F3FB +S31508002A40074291F83C5045EA121581F83C5002F0CD +S31508002A500F021202CA87CA8F92B2C3F307252A4306 +S31508002A60CA87C3F3460381F8403081F84140F0BC79 +S31508002A70704700BF10B540F26433C2F200031B680A +S31508002A80032B31D0022B31D8B0F5805F30D0B0F5AA +S31508002A90006F15D10120FFF735FB044650BB40F205 +S31508002AA07C30C2F200000022027502604260826039 +S31508002AB04FF40061C160026101F0DAF9204610BDE9 +S31508002AC00020FFF71FFB0446A8B940F27C30C2F28B +S31508002AD0000000220275026042608260C2600261E4 +S31508002AE001F0C6F9204610BD272010BD002010BDF4 +S31508002AF0272010BD10BD10BD10B540F2F033C2F24C +S31508002B000003186007245C6040229A600022DA609D +S31508002B104FF480621A61184601F0D8F92046FFF78B +S31508002B2059FA10BD2DE9F04184B000268DF80F60E2 +S31508002B300C20012101F024F94FF40064C4F20204C8 +S31508002B40204608210C2201F099F8204609210C227A +S31508002B5001F094F820460A210C2201F08FF820464D +S31508002B600B210C2201F08AF820460C210A4601F0B6 +S31508002B7085F84FF44067C4F20207384602210C2252 +S31508002B8001F07CF84FF47063019301258DF8095024 +S31508002B904FF002088DF808808DF80A608DF80B5002 +S31508002BA0204601A901F01CF80423019338460DEBD1 +S31508002BB0030101F015F84FF4805301938DF80B606B +S31508002BC0204601A901F00CF84FF4006701978DF82B +S31508002BD008808DF80B60204601A901F001F83846F7 +S31508002BE0294601F003F94FF48000294601F0C8F898 +S31508002BF001F032F9FFF7D0FB8DF80F009DF80F3082 +S31508002C0013F0FF0F03D09DF80F00C0B240E0FFF7A6 +S31508002C1003FD8DF80F009DF80F3013F0FF0F03D05A +S31508002C209DF80F00C0B233E040F27C30C2F20000DB +S31508002C3000230375036043608360C360036101F08A +S31508002C4017F940F29830C2F20000FFF7B7FD8DF889 +S31508002C500F009DF80F3013F0FF0F0BD140F2983399 +S31508002C60C2F20003B3F8540000040021FFF744FF42 +S31508002C708DF80F009DF80F3013F0FF0F05D14FF4B4 +S31508002C800060FFF7F7FE8DF80F009DF80F00C0B241 +S31508002C9004B0BDE8F08100BF2DE9F84307461646A3 +S31508002CA0BDF8204040F23932C2F20002002111700C +S31508002CB040F27832C2F20002116040F20440C2F2D9 +S31508002CC0000001604FF43052C4F20102D16240F2B2 +S31508002CD06431C2F200010A68022A02BF760A46EA8D +S31508002CE0C3564FF40074A04640F2F030C2F200001A +S31508002CF0046010224260402282600022C2604FF4C3 +S31508002D008062026101F0E2F84FF48034802501E028 +S31508002D10013C04D0284601F02FF90028F8D01020ED +S31508002D20FFF758F9002840F0868040F23C30C2F29E +S31508002D3000004FF0FF330360C0F8048090238360DF +S31508002D400223C360002505610123436101F0ECF805 +S31508002D5040F2F030C2F200000660112444604022BE +S31508002D608260C5604FF48062026101F0AFF82046C8 +S31508002D70FFF730F9002860D14FF43055C4F2010549 +S31508002D8040F22A664FF400484FF000090BE040462F +S31508002D9001F0F2F838B14C4601F0DEF83851043447 +S31508002DA0202CF9D120376B6B3342F0D0082001F084 +S31508002DB0E3F828B1082001F0E9F80420BDE8F88313 +S31508002DC0022001F0D9F828B1022001F0DFF802202C +S31508002DD0BDE8F883202001F0CFF828B1202001F0C3 +S31508002DE0D5F80620BDE8F8834FF4007001F0C4F862 +S31508002DF04FF0FF344FF4001558B14FF4007001F04E +S31508002E00C5F80720BDE8F88301F0A6F847F8040BD3 +S31508002E10013C284601F0B0F808B1002CF4D140F284 +S31508002E20FF5001F0B3F840F2CC03C2F200030020D1 +S31508002E301860BDE8F883BDE8F883BDE8F88300BFED +S31508002E402DE9F84F80461446BDF8282040F239305F +S31508002E50C2F200000021017040F27830C2F2000090 +S31508002E60016040F20440C2F2000001604FF43050A5 +S31508002E70C4F20100C16240F26431C2F2000109687D +S31508002E80022902BF640A44EAC3544FF40072164684 +S31508002E9040F2F030C2F20000026010254560402280 +S31508002EA082600022C2604FF48062026101F00EF86F +S31508002EB02846FFF78FF8002840F08B8040F2F03064 +S31508002EC0C2F2000004601824446040228260002296 +S31508002ED0C2604FF48062026100F0F8FF2046FFF7F7 +S31508002EE079F8002877D140F23C30C2F200004FF062 +S31508002EF0FF3303604660902383600024C460046146 +S31508002F000123436101F010F8A3464FF43054C4F28C +S31508002F10010440F21A654FF4804625E0304601F078 +S31508002F202BF808B3CBF5007ABAF11F0F10D85FEA71 +S31508002F309A0A19D0C146002759F8040B01F014F86B +S31508002F4001375745F8D14FEA8A0AD044D3440BE0F3 +S31508002F50002758F8070001F007F80437202FF8D1A2 +S31508002F6008F120080BF1200B636B2B42D6D0082002 +S31508002F7001F002F828B1082001F008F80420BDE89D +S31508002F80F88F022000F0F8FF28B1022000F0FEFFBB +S31508002F900220BDE8F88F102000F0EEFF28B11020BF +S31508002FA000F0F4FF0520BDE8F88F4FF4007000F03C +S31508002FB0E3FF30B14FF4007000F0E8FF0720BDE8EA +S31508002FC0F88F40F2CC03C2F2000300201860BDE877 +S31508002FD0F88FBDE8F88FBDE8F88F00BF38B505460D +S31508002FE0F8B140F2F030C2F2000040F29432C2F278 +S31508002FF000021268120402600D24446040228260B6 +S315080030000022C2604FF48062026100F05FFF204632 +S31508003010FEF7E0FF044630B900F078FF2860204646 +S3150800302038BD262038BD38BD00B583B000230193CE +S31508003030FFF79CF9012818BFFF2008D101A8FFF760 +S31508003040CDFF18B90198C0F3432000E0FF2003B074 +S315080030505DF804FB08B5FFF7E7FF042804D0FF284E +S3150800306014BF0120022008BD002008BD00B597B096 +S31508003070FFF758FD60B940F2D003C2F200031A7890 +S3150800308002F0FE021A706846FFF798FB002006E079 +S3150800309040F2D003C2F2000301221A70032017B0CF +S315080030A05DF804FB08B540F2D003C2F20003012222 +S315080030B01A7050B9FFF7CEFF38B940F2D003C2F202 +S315080030C000031A7802F0FE021A7040F2D003C2F228 +S315080030D00003187808BD00BF2DE9F043ADF5037D60 +S315080030E088461746D0B11CE0013BDCB24FF0000918 +S315080030F04FF40075E619009502A872024B46FFF7D1 +S31508003100CBFD80B9FFF7A6FF0128FBD008EB4420CA +S3150800311002A92A4606F0F0F94CB906E001204BB19F +S31508003120E2E7012006E0012004E0002002E0013C7D +S31508003130E4B2DFE70DF5037DBDE8F0832DE9F04342 +S31508003140ADF5037D0F469046F0B120E0013BDCB2B9 +S315080031504FF400754FF0000902A807EB44212A46F0 +S3150800316006F0CAF904EB0806009502A872024B4657 +S31508003170FFF766FE052818BF00280AD1FFF76AFF81 +S315080031800128FBD04CB906E001204BB1DEE701204F +S3150800319006E0012004E0002002E0013CE4B2DBE79F +S315080031A00DF5037DBDE8F08310B596B0144640F2E0 +S315080031B0D003C2F200031B7813F0010F18BF0320D7 +S315080031C021D103291AD8DFE801F0020410150020DE +S315080031D019E0A8B96846FFF7F1FA129B5B0A139A39 +S315080031E043EAC253236000200DE04FF400731380B6 +S315080031F0002008E030B92023136004E0042002E030 +S31508003200002000E0002016B010BD00BF0020C4F268 +S31508003210AA20704708B54FF00070012100F0F8FDAC +S315080032204FF00070002100F0F3FD08BD0023036095 +S3150800323043608360C360036143618361C361036262 +S3150800324043628362C362036343638363C363402247 +S315080032500264202242648364C3640365436583650C +S31508003260C3650366802242668366C366036743674F +S315080032708367C3674FF08062C0F880204FF0007202 +S31508003280C0F884204FF08071C0F888104FF4001100 +S31508003290C0F88C10C0F89030C0F89430C0F8983058 +S315080032A0C0F89C30C0F8A030C0F8A420C0F8A830F8 +S315080032B04FF40032C0F8AC204FF48072C0F8B0204A +S315080032C0C0F8B430C0F8B830704700BF82B00023E9 +S315080032D001934FF40043C4F202031A6902F01C0278 +S315080032E0890101F4F8610A43C00281B20A4342F037 +S315080032F001021A614FF40042C4F202024FF6FE714F +S31508003300C0F20401019B01330193136913F0010F05 +S3150800331002D0019B8B42F5D9019A4FF6FF73C0F292 +S3150800332004039A421FBF4FF40043C4F202035869CC +S3150800333080B208BF002002B0704700BF10B483B047 +S31508003340002301934FF40043C4F202031C6904F0FE +S315080033501C0444F00304890101F4F8610C43C0021B +S3150800336081B20C435A611C614FF40042C4F2020256 +S315080033704FF6FE71C0F20401019B013301931369F4 +S3150800338013F0010F02D0019B8B42F5D901984FF635 +S31508003390FF73C0F20403C01A18BF012003B05DF81A +S315080033A0044B7047F0B587B004460D4600230593D5 +S315080033B000934FF40043C4F202031E6926F01C066C +S315080033C001A800F06FFC02994FF45343CFF6CE6381 +S315080033D00B444EF2BF12C0F2E402934298BF46F085 +S315080033E008061AD94FF24013CFF6E9530B4447F6AD +S315080033F03F02C0F27D12934298BF46F00C060CD9E4 +S315080034004FF4F243CFF66C430B444FF4B442C0F288 +S315080034106222934288BF46F004064FF40043C4F282 +S3150800342002031E61284600214FF40042FFF786FF7B +S31508003430002800F00F814FF080630593059B2BB1A0 +S31508003440059B013B0593059B002BF9D12368002BAF +S315080034505ED001274FF6FE76C0F20406009B0133C4 +S31508003460009328463946FFF731FF00F0040083B27F +S3150800347013B9009BB342F1D9009A4FF6FF73C0F215 +S3150800348004039A4208BF002000F0E9800021009159 +S3150800349028464FF48052FFF751FF002800F0DC80E1 +S315080034A001274FF6FE76C0F20406009B013300930F +S315080034B028463946FFF70AFF00F0200080B210B907 +S315080034C0009BB342F1D9009A4FF6FF73C0F204038A +S315080034D09A4208BF002000F0C280002300932846C5 +S315080034E01021FFF7F3FE00F004039BB21BB14FF463 +S315080034F00063236201E00023236200F002039BB20B +S3150800350013B1002363611BE04FF48043636117E046 +S315080035106369226AD20842EA53022846002192B217 +S31508003520FFF70CFF002800F099806FF07F430593A2 +S31508003530059B2BB1059B013B0593059B002BF9D1F8 +S315080035404FF40043C4F20203196848F20F12CFF68B +S3150800355020720A40A06861680843E1680843216947 +S31508003560084361690843A1690843E1690843216A78 +S315080035700843616A0843A16A0843E16A0843216B64 +S315080035800843616B01430A431A60E16BA26B11435E +S31508003590226C1143626C1143A26C1143E26C114315 +S315080035A0226D1143626D0A435A60A26D9A60E26DFC +S315080035B0DA609869A16E626E1143E26E1143226F5A +S315080035C01143626F11434FF6417202400A43216E5E +S315080035D042EA01419961E16FA26F0A43DA6103F594 +S315080035E08053996943F62372CFF6DE020A40D4F86F +S315080035F08400D4F880100843D4F888100843D4F817 +S315080036008C100843D4F890100843D4F89410084353 +S31508003610D4F898100843D4F89C100843D4F8A0109E +S3150800362001430A439A61D4F8A410D4F8A820114398 +S3150800363041F40001D4F8AC201143D4F8B02011436A +S31508003640D4F8B8200A43D4F8B41042EA81021A60C2 +S31508003650012004E0002002E0002000E0002007B07E +S31508003660F0BD00BF40B14FF40043C4F202031A682C +S3150800367042F008021A6070474FF40043C4F202038E +S315080036801A6822F008021A60704700BF40B14FF46A +S315080036900043C4F202031A6842F004021A60704733 +S315080036A04FF40043C4F202031A6822F004021A60B7 +S315080036B0704700BF4FF41043C4F202031A6842F081 +S315080036C001021A60704700BF4FF41043C4F20203A8 +S315080036D0186800F0010070474FF41043C4F2020363 +S315080036E09A6942F480129A61704700BF40B14FF45C +S315080036F01043C4F202039A6942F400529A61704771 +S315080037004FF41043C4F202039A6922F400529A61F4 +S31508003710704700BF40B14FF41043C4F202039A69E0 +S3150800372042F002029A6170474FF41043C4F2020352 +S315080037309A6922F002029A61704700BF08B5012013 +S31508003740FFF790FFFFF7C8FF0120FFF79FFF012053 +S31508003750FFF7CCFF0120FFF7DDFF08BD2DE9F04795 +S31508003760B2B04FF0F050012100F00AFB47200121CA +S3150800377000F006FB4FF48040012100F037FB0120E2 +S3150800378000F00AFC8E23309300268DF8C6600224CA +S315080037908DF8C4408DF8C7608DF8C5403746C4F229 +S315080037A00207384630A900F01BFA384601210B22D9 +S315080037B000F064FA384621460B2200F05FFA3846D4 +S315080037C003210B2200F05AFA384607210B2200F093 +S315080037D055FA4FF4006330938DF8C6608DF8C440EF +S315080037E08DF8C7608DF8C5404FF4C057C4F202077C +S315080037F0384630A900F0F4F938460B210A4600F09D +S315080038003DFA322330938DF8C6608DF8C4408DF8A2 +S31508003810C7608DF8C5404FF40068C4F202084046F8 +S3150800382030A900F0DDF9404601210B2200F026FA06 +S31508003830404604210B2200F021FA404605210B22BE +S3150800384000F01CFA4FF4C04330938DF8C6608DF82B +S31508003850C4408DF8C7608DF8C540384630A900F0D9 +S31508003860BFF938460D210B2200F008FA38460E211A +S315080038700B2200F003FAFFF7CDFCFFF71BFFFFF75B +S3150800388023FF0128FBD001A8FFF7D0FC00240194F0 +S3150800389008944FF400730B930C944FF000430F9366 +S315080038A0202312931494159416944FF400630993E5 +S315080038B04FF4804306934FF0020A4FF003094CF287 +S315080038C0F108C0F2070841F21967C0F22207A6B24A +S315080038D030465146FFF7FAFC60F31F453046494625 +S315080038E0FFF7F4FC60F30F05BD4218BF454503D04A +S315080038F00134202CEBD109E0202C07D949F2C46009 +S31508003900C0F600004FF4A17104F0ECFE01A8A1B2C4 +S31508003910FFF748FD38B949F2C460C0F6000040F226 +S31508003920471104F0DFFE42F28073C2F2000342F24E +S31508003930D002C2F200029A60DB6000221A605A6066 +S315080039404FF41041C4F202010B6141F68023C2F222 +S31508003950000341F69020C2F2000098601A60DB600E +S315080039605A6040225A719A884FF4C86060F30C0274 +S315080039709A808022DA70CB60FFF7E0FE32B0BDE8AD +S31508003980F08700BF40F21C63C2F2000308221A70D7 +S3150800399000225A7027229A706922DA705B221A71FD +S315080039A045225A71704700BF38B541F68023C2F2E6 +S315080039B00003DB78DB091DD141F68024C2F200043E +S315080039C06588C5F30D0542F62000C2F2000041F6EF +S315080039D09021C2F200012A4605F08EFDE37843F0F5 +S315080039E08003E3704FF41043C4F2020301229A6085 +S315080039F0284638BD002038BD38B542F28073C2F279 +S31508003A000003DB78DB0900D0FEE742F29073C2F2CE +S31508003A1000031D8842F2D004C2F20004204642F692 +S31508003A202001C2F200012A4605F066FD42F28073C3 +S31508003A30C2F200039C6000221A60102199705A6035 +S31508003A40C5F30B059D80B022DA704FF41043C4F21B +S31508003A50020301225A6038BD4FF47053C4F20203C0 +S31508003A601B69002B0DDA4FF47053C4F2020340F2BF +S31508003A702312C4F267525A6048F6AB12CCF6EF52DC +S31508003A805A6070474FF47053C4F202031A6942F041 +S31508003A9000421A61704700BF4FF47053C4F2020324 +S31508003AA0D86070474FF47053C4F20203DB6813F40E +S31508003AB0803F1BD14FF47053C4F20203DB6813F046 +S31508003AC0100F15D14FF47053C4F20203DB6813F0DC +S31508003AD0EF0F0FD14FF47053C4F20203D86800F009 +S31508003AE0020000280CBF08200720704701207047F5 +S31508003AF0052070470620704700B583B008238DF867 +S31508003B000730FFF7CFFF8DF807009DF80730DBB2C7 +S31508003B10012B08D1FFF7C6FF8DF807009DF807307F +S31508003B20DBB2012BF6D09DF8070003B05DF804FB65 +S31508003B3070B50546002659B1012908BF4FF48076AD +S31508003B4006D0022914BF4FF440764FF40076FFE7FB +S31508003B50FFF7D2FF082821D14FF47054C4F20204AB +S31508003B60236923F44073236123691E43266123696D +S31508003B7023F0F8032361236943F002031D432561FB +S31508003B80236943F480332361FFF7B6FF236923F0E3 +S31508003B9002032361236923F0F803236170BD00BF84 +S31508003BA070B505460E46FFF7A7FF082816D14FF44D +S31508003BB07054C4F20204236923F440732361236911 +S31508003BC043F400732361236943F0010323612E60E4 +S31508003BD0FFF792FF236923F00103236170BD00BF3D +S31508003BE0F0B400230125032605FA03F20C681440F5 +S31508003BF0944238D107685A0006FA02F4E44327408B +S31508003C000760076891F804C00CFA02FC4CEA07073B +S31508003C1007600F79013FFFB2012F16D887683C402D +S31508003C20846087684C7994403C43846047689CB2BA +S31508003C3005FA04FC27EA0C074760476891F806C0AE +S31508003C400CFA04F4A4B23C434460C7689CB264000E +S31508003C5006FA04F427EA0404C460C468CF7907FAAC +S31508003C6002F22243C2600133102BBDD1F0BC70476B +S31508003C70036919420CBF00200120704710B401F0F7 +S31508003C8007039B00C90800EB8100046A0F219940CD +S31508003C9024EA01010162016A9A40114301625DF852 +S31508003CA0044B704710B44FF46053C4F202039B6888 +S31508003CB003F00C03042B09D0082B0DD0002B36D1AA +S31508003CC04FF41053C0F2F403036035E04FF4D853B1 +S31508003CD0C0F2B70303602FE04FF46053C4F2020347 +S31508003CE05C685A6802F03F0214F4800F4FF4605380 +S31508003CF0C4F202035B68C3F3881319BF4FF4D854A0 +S31508003D00C0F2B7044FF41054C0F2F404B4FBF2F155 +S31508003D1001FB03F14FF46053C4F202035A68C2F37D +S31508003D20014201325200B1FBF2F3036004E04FF4A2 +S31508003D301053C0F2F40303604FF46052C4F2020257 +S31508003D409168C1F3031140F2D403C2F20003595C2F +S31508003D50C9B2046824FA01F141609468C4F3822464 +S31508003D601C5DE4B221FA04F484609268C2F342321C +S31508003D709B5CDBB2D940C1605DF8044B704700BF5D +S31508003D8039B14FF46053C4F202031A6B1043186337 +S31508003D9070474FF46053C4F202031A6B22EA00001C +S31508003DA01863704739B14FF46053C4F202035A6B73 +S31508003DB01043586370474FF46053C4F202035A6BBA +S31508003DC022EA00005863704739B14FF46053C4F2D1 +S31508003DD002031A6C1043186470474FF46053C4F218 +S31508003DE002031A6C22EA00001864704739B14FF4CE +S31508003DF06053C4F202035A6C1043586470474FF478 +S31508003E006053C4F202035A6C22EA000058647047F1 +S31508003E1039B14FF46053C4F202031A6910431861AA +S31508003E2070474FF46053C4F202031A6922EA00008D +S31508003E301861704739B14FF46053C4F202035A6AE5 +S31508003E401043586270474FF46053C4F202035A6A2B +S31508003E5022EA00005862704708B54FF40060012155 +S31508003E60FFF7E8FF4FF400600021FFF7E3FF08BD06 +S31508003E7010B44FF43053C4F201035C684168826899 +S31508003E801143C26811430268114302690A4324F4C4 +S31508003E90FD4424F07F042243017D0A435A605DF8FD +S31508003EA0044B704748F2A003C4F2252318607047F4 +S31508003EB04FF43053C4F20103186070474FF430537F +S31508003EC0C4F20103186800F00300704710B40268D2 +S31508003ED04FF43053C4F201039A60DC6824F4FF649B +S31508003EE024F00704826841681143C2680A430069DE +S31508003EF002432243DA605DF8044B70474FF43053AF +S31508003F00C4F201031869C0B2704700BF82B000232B +S31508003F10019342F61443C4F2010303440193019B3F +S31508003F20186802B0704700BF10B402684FF43053E7 +S31508003F30C4F201035A6242689A62DC6A24F0F70402 +S31508003F40C2688168114302690A43406902432243F1 +S31508003F50DA625DF8044B70474FF43053C4F201033C +S31508003F60D3F88000704700BF4FF43053C4F2010302 +S31508003F70C3F88000704700BF4FF43053C4F2010302 +S31508003F805B6B18420CBF0020012070474FF430537A +S31508003F90C4F2010398637047DC23C4F22723186030 +S31508003FA0704700BF30B585B004460D46038A23F432 +S31508003FB040531B041B0CCA8813430382838923F4CA +S31508003FC0B05323F00C031B041B0C0989AA880A4367 +S31508003FD069890A4392B213438381838A23F440731F +S31508003FE01B041B0CAA89134383826846FFF75AFEF3 +S31508003FF04FF4A052C4F201024FF48053C4F20103F5 +S315080040009C4218BF94420CBF039A029AA3891BB21A +S31508004010002B02EB820202EB8202BDBF2B685B001B +S31508004020B2FBF3F22968A4BF8900B2FBF1F248F2A9 +S315080040301F53C5F2EB13A3FB02135B091D01642092 +S3150800404003FB1023A08900B200280BDADB00323309 +S3150800405048F21F51C5F2EB11A1FB0321C1F342112E +S3150800406029430AE01B01323348F21F51C5F2EB110E +S31508004070A1FB0321C1F34311294389B2218105B06C +S3150800408030BD00BF29B183899BB243F400538381B5 +S315080040907047838923F400531B041B0C83817047E4 +S315080040A0C1F30801818070478088C0F30800704713 +S315080040B0038819420CBF00200120704782B04FF4D4 +S315080040C06053C4F202031A6842F001021A60002221 +S315080040D09A60196821F0847121F48031196043F2DD +S315080040E01001C2F200415960196821F48021196053 +S315080040F0DA60009201921A6842F480321A604FF42C +S315080041006052C4F20202136803F400330193009B61 +S3150800411001330093019B1BB9009BB3F5A06FF2D145 +S315080041204FF46053C4F202031B6813F4003F14BF34 +S31508004130012300230193019B012B46D14FF46053C1 +S31508004140C4F202031A6C42F080521A644FF4E04239 +S31508004150C4F20002116841F4404111609A689A60FD +S315080041609A6842F400429A609A6842F4A0529A60A9 +S3150800417045F20C42C0F240725A601A6842F08072E8 +S315080041801A604FF46052C4F20202136813F0007FFB +S31508004190FBD04FF47053C4F2020340F205621A6072 +S315080041A04FF46053C4F202039A6822F003029A603D +S315080041B09A6842F002029A604FF46052C4F2020210 +S315080041C0936803F00C03082BFAD14FF46D43CEF233 +S315080041D000034FF000629A6002B0704732B182184D +S315080041E011F8013B00F8013B9042F9D1704700BF36 +S315080041F0CA7E8B7E43EA02230278032A01BF487DE2 +S315080042000A7D42EA002243EA02431846704700BF85 +S3150800421000F10B010023DA0142EA530310F8012BDF +S3150800422052FA83F3DBB28842F5D11846704700BFCD +S3150800423010B504460A46407804F134010123FEF716 +S315080042404BFFD0BB94F8332294F8323243EA022269 +S3150800425012B24AF65523CFF6FF739A422FD194F835 +S315080042606D2094F86C301B0443EA026294F86A30B5 +S31508004270134394F86B2043EA022222F07F4244F269 +S315080042804613C0F254039A421BD094F8890094F856 +S3150800429088301B0443EA006094F88630034394F898 +S315080042A0870043EA002020F07F4044F24613C0F21C +S315080042B05403C01A18BF012010BD032010BD0220E8 +S315080042C010BD002010BD00BF2DE9F041044603795A +S315080042D01BB3056B00F13407407839462A4601239B +S315080042E0FEF72CFFE0B900232371636A9D421AD3B7 +S315080042F0E26913449D4219D2E678012E19D94FF086 +S315080043000108E2691544607839462A464346FEF7AD +S3150800431015FF013E012EF4D10EE00020BDE8F08124 +S315080043200120BDE8F0810020BDE8F0810020BDE84D +S31508004330F0810020BDE8F0810020BDE8F08100BFD3 +S3150800434038B504460D46036B8B420CD0FFF7BCFF0D +S3150800435058B9607804F134012A460123FEF7BCFEF9 +S3150800436028B9256338BD002038BD012038BD012095 +S3150800437038BD00BF08B588B103688BB1197889B113 +S31508004380D988828891420FD15878FEF78BFE00F0C3 +S315080043900100002814BF0320002008BD092008BD1D +S315080043A0092008BD092008BD092008BD2DE9F041EE +S315080043B0154603681C78303C092C00F2B5815A78FA +S315080043C03A2A40F0B1810233036000230B60002CC7 +S315080043D040F0718140F20C63C2F200031C68002CA5 +S315080043E000F06C810C6023788BB16078FEF75AFE7A +S315080043F010F0010F0BD1002D00F0638100F00400CE +S31508004400C0B2002814BF0A200020BDE8F0810020B1 +S3150800441020706070FEF72AFE10F0010F40F05481FC +S315080044201DB110F0040F40F0528120460021FFF71D +S31508004430FFFE012818BF002517D194F8F631002B86 +S3150800444000F0488194F8FD2194F8FC311B0443EAF6 +S31508004450026294F8FA31134394F8FB5143EA0525AE +S3150800446020462946FFF7E4FEFFE7032800F03581DA +S31508004470002840F0358194F8402094F83F3043EA0C +S3150800448002231BB2B3F5007F40F02D8194F84B0050 +S3150800449094F84A3053EA00200DD194F85B2094F83A +S315080044A05A301B0443EA026294F85830134394F8CE +S315080044B0590043EA0020E06194F84410E1704B1E6D +S315080044C0DBB2012B00F2128194F84130A370002B65 +S315080044D000F00F815A1E1A4240F00E8194F8466089 +S315080044E094F8452042EA0622228112F00F0F40F086 +S315080044F0068194F8487094F8476056EA07260DD165 +S3150800450094F8577094F85660360446EA076794F8A4 +S3150800451054603E4394F8557046EA072694F843C01B +S3150800452094F8427057EA0C2700F0EC8001FB00FC77 +S3150800453007EB121161448E42C0F0E780761AB6FB8B +S31508004540F3F3002B00F0E48040F6F576B3428CBF17 +S31508004550022601264FF6F578434500F2E880023335 +S31508004560A36125622F4467622944E162032E13D1B1 +S31508004570002A40F0D08094F8631094F86220120460 +S3150800458042EA016194F860200A4394F8611042EA0D +S315080045900122A2629B000EE0002A00F0BF80674459 +S315080045A0A762022E0FBF5B0003225A4303F00103E2 +S315080045B018BF03EB520303F2FF13B0EB532FC0F0FF +S315080045C0B0804FF0FF3323610023E360032E63D1ED +S315080045D0637194F8652094F8643043EA02222A4409 +S315080045E06261607804F134010123FEF775FD002845 +S315080045F052D194F8332294F8323243EA022212B2A4 +S315080046004AF65523CFF6FF739A4245D194F83720D8 +S3150800461094F836301B0443EA026294F834301343A4 +S3150800462094F8352043EA022245F25223C4F2611374 +S315080046309A4231D194F81B2294F81A321B0443EAA1 +S31508004640026294F81832134394F8192243EA0222B4 +S3150800465047F27223C6F241139A421DD194F82322D7 +S3150800466094F822321B0443EA026294F82032134378 +S3150800467094F8212243EA0223E36094F81F2294F86F +S315080046801E321B0443EA026294F81C32134394F860 +S315080046901D2243EA02232361267040F20863C2F210 +S315080046A000031A88013292B21A80E2800020206341 +S315080046B02071BDE8F0810B20BDE8F0810C20BDE833 +S315080046C0F0810020BDE8F0810320BDE8F0810A20D2 +S315080046D0BDE8F0810D20BDE8F0810120BDE8F0813C +S315080046E00D20BDE8F0810D20BDE8F0810D20BDE864 +S315080046F0F0810D20BDE8F0810D20BDE8F0810D2088 +S31508004700BDE8F0810D20BDE8F0810D20BDE8F081FF +S315080047100D20BDE8F0810D20BDE8F0810D20BDE833 +S31508004720F0810D20BDE8F08100230B6052E60233CC +S31508004730A36125622F4467622944E162032617E7CD +S315080047402DE9F0410D4601F109020369002B5ED0FF +S31508004750416991F80C800B78202B1BD00E4600245B +S3150800476008F00807FFB203E016F8013F202B11D026 +S31508004770052B08BFE52347B1A3F1410C5FFA8CFC72 +S31508004780BCF1190F9CBF2033DBB202F8013B0134A0 +S31508004790082CE9D10B7A202B22D0561C2E23137015 +S315080047A00B7A202B1BD001F10804171D324608F09E +S315080047B010085FFA88F603E014F8013F202B0FD0A3 +S315080047C046B1A3F1410C5FFA8CFCBCF1190F9CBFF2 +S315080047D02033DBB202F8013BBA42EDD100E03246A3 +S315080047E0CB7A2B72CC7F8B7F1B0443EA04630C7F46 +S315080047F023434C7F43EA04232B604C7E0B7E43EA1B +S315080048000423AB80CC7D8B7D43EA0423EB80002315 +S315080048101370AE6946B3EB6933B3036900240BB36F +S31508004820028C4FF6FF739A4208BF00241AD0C76954 +S31508004830388890B10024A046414601F02BFC70B19F +S31508004840EA69013AA2420CD90134321902F8010C7C +S3150800485037F8020F0028EFD104E0002402E0002414 +S3150800486000E0002400233355BDE8F08110B5044666 +S31508004870FFF72AFD0346002854D12378032B49D194 +S315080048806379002B46D00023236304F1340104F531 +S315080048900D700B46002203F8012B8342FBD15523EA +S315080048A084F83232AA2384F83332522384F8343017 +S315080048B084F83530612384F83630412284F837206D +S315080048C0722084F8180284F8190284F81A2284F8E7 +S315080048D01B32236984F81C32C3F3072284F81D228D +S315080048E01A0C84F81E221B0E84F81F32E36884F81B +S315080048F02032C3F3072284F821221A0C84F82222D4 +S315080049001B0E84F82332607862690123FEF716FCD1 +S3150800491000236371607800210A46FEF745FC031CF4 +S3150800492018BF0123184610BD02398369023B994214 +S315080049303DBF8278C36A02FB01300020704700BF82 +S31508004940F8B505460C4601295CD9836999425BD2BC +S315080049500378022B28D0032B38D0012B56D101EB34 +S315080049605106416A01EB5621FFF7EAFC002850D1AF +S31508004970C6F308032B4493F834700136696A28464F +S3150800498001EB5621FFF7DCFC002845D1C6F30806E3 +S31508004990354495F8340047EA002014F0010F14BF97 +S315080049A00009C0F30B00F8BD416A01EB1421FFF7BB +S315080049B0C7FCA0BB640004F4FF742B1993F83430C9 +S315080049C02C4494F8350043EA0020F8BD416A01EB0F +S315080049D0D411FFF7B5FC28BBA40004F4FE742B1908 +S315080049E093F8360093F83720120642EA004293F805 +S315080049F0350042EA00202C4494F83430184320F05D +S31508004A007040F8BD0120F8BD0120F8BD4FF0FF3019 +S31508004A10F8BD4FF0FF30F8BD4FF0FF30F8BD4FF04E +S31508004A20FF30F8BD4FF0FF30F8BD00BF70B5044643 +S31508004A300D46E1808168012938D003689A69914258 +S31508004A4036D271B91A78032A01D1996A49B900226E +S31508004A50E2601A89AA422DD99B6A03EB15132361D2 +S31508004A601BE09E783601B54210D32068FFF768FF31 +S31508004A700146B0F1FF3F1FD001281FD923689B6963 +S31508004A8098421DD2AD1BADB2AE42EED9E1602068A8 +S31508004A90FFF74AFF00EB1510206105F00F052368A4 +S31508004AA003EB451334336361002070BD022070BDEB +S31508004AB0022070BD022070BD012070BD022070BDAD +S31508004AC0022070BDF8B505460C461646012998BF62 +S31508004AD002237CD98369994228BF022377D20378B7 +S31508004AE0022B40D0032B50D0012B18BF02236BD1C9 +S31508004AF001EB5107416A01EB5721FFF721FC0346F9 +S31508004B00002861D1C7F3080314F001041FBFEA188F +S31508004B1092F8342002F00F02F1B21ABF42EA0112EB +S31508004B20D2B2F2B22B4483F83420013701232B7119 +S31508004B30696A284601EB5721FFF702FC034600285D +S31508004B4042D1C7F3080714B1C6F3071607E0EA19F6 +S31508004B5092F8342022F00F02C6F3032616432F4498 +S31508004B6087F8346030E0416A01EB1421FFF7E8FB6F +S31508004B70034648BB640004F4FF742A1982F83460BB +S31508004B80C6F3072682F835601EE0416A01EBD411A8 +S31508004B90FFF7D6FB0346B8B9A40004F4FE742A1935 +S31508004BA092F8371009062C4401F070410E4384F838 +S31508004BB03460C6F3072182F83510310C82F83610B6 +S31508004BC0360E82F83760FFE701222A71FFE718469A +S31508004BD0F8BD00BF2DE9F0410546884631B9C668DB +S31508004BE076B183699E4228BF01260AE0FFF7A8FE30 +S31508004BF0012847D9AB69984228BF464601D24DE0FD +S31508004C000126344602270134AB699C4202D3012EA1 +S31508004C103BD93C4628462146FFF792FE38B1B0F10B +S31508004C20FF3F18BF012833D0B442ECD132E0264604 +S31508004C30284621466FF07042FFF744FF0346D0F13D +S31508004C40010038BF0020B8F1000F08BF002028B1C6 +S31508004C50284641462246FFF735FF03465BB9EE6014 +S31508004C602B69B3F1FF3F18D0013B2B6101236B7110 +S31508004C702046BDE8F081012B14BF01204FF0FF301C +S31508004C80BDE8F0810120BDE8F0810020BDE8F08193 +S31508004C90BDE8F0810020BDE8F0812046BDE8F0813E +S31508004CA02DE9F84304460E46C5880135ADB2002DF8 +S31508004CB06AD00369002B6AD015F00F075BD1013360 +S31508004CC00361C16821B903681B89AB4262D952E006 +S31508004CD000688378013B13EA15134CD1FFF730FEC1 +S31508004CE08046012859D9B0F1FF3F59D02068836919 +S31508004CF0984539D3002E56D0E168FFF76BFF8046FA +S31508004D00002853D0012854D0B0F1FF3F54D0206872 +S31508004D10FFF7DAFA002852D1236803F13401002399 +S31508004D201A46CA540133B3F5007FFAD126683046CD +S31508004D304146FFF7F9FD306300264FF001090CE004 +S31508004D4083F804902068FFF7BFFA00283AD1236851 +S31508004D501A6B01321A630136F6B223689A78B242A0 +S31508004D60EED81A6B921B1A63C4F80C802068414669 +S31508004D70FFF7DAFD2061E580236803EB4713343338 +S31508004D8063610020BDE8F8830420BDE8F8830420A9 +S31508004D90BDE8F8830420BDE8F8830220BDE8F8835F +S31508004DA00120BDE8F8830420BDE8F8830720BDE8A4 +S31508004DB0F8830220BDE8F8830120BDE8F8830120C6 +S31508004DC0BDE8F8830120BDE8F88300BF2DE9F04F60 +S31508004DD089B005460021FFF729FE002840F0AC807F +S31508004DE04FF0FF09C8464F4649F26C71C0F60001FC +S31508004DF0029101F10C0204924FF6FF7A4FF0000B74 +S31508004E0028682969FFF79CFA002840F096806C69A3 +S31508004E102678002E00F09280E37A03F03F02E52E12 +S31508004E207FD013F0080F04D00F2A18BFB8467BD1DD +S31508004E3001E00F2A58D1EB690193002B74D016F0C4 +S31508004E40400F06D094F80D9006F0BF06EB882B8429 +S31508004E5003E0B04518BFB84666D1617B0391494562 +S31508004E6018BFB84660D1237823F04003013B03EB13 +S31508004E70430203EB82020592029A02F1FF394FF0D0 +S31508004E8001080796059E06954546DDF8108019F82F +S31508004E90013FE2185078E35C43EA00207DB101F057 +S31508004EA01FF90546FE2E56D8731C0593019931F84D +S31508004EB0160001F015F985424FD1059E01E05045CF +S31508004EC04DD1C145E3D1A8460596079E069D237890 +S31508004ED013F0400F39D0B8F1000F36D0059A019972 +S31508004EE031F812308BB33BE0B8F1000F04D12046FD +S31508004EF0FFF78EF9484523D0A5F820A0AB69DA7AE2 +S31508004F0012F0010F08BF04F10B0002D00BE0844237 +S31508004F1018D014F8011B13F8012B9142F7D0B846A4 +S31508004F2002E0B84600E0B84628465946FFF7B8FEFC +S31508004F3000283FF465AF07E016E015E0042013E00B +S31508004F40002011E000200FE00EE0013E5FFA86F82F +S31508004F50DDF80C90E8E7069D02E0069D00E0069D58 +S31508004F60DDF80C90B846DFE709B0BDE8F08F00BF62 +S31508004F702DE9F04F87B0814688460B782F2B18BF4E +S31508004F805C2B08BF01F101080023836098F8003004 +S31508004F901F2B07D80021FFF749FD03460022C9F851 +S31508004FA014207AE14FF0010A49F2D86BC0F6000BDB +S31508004FB049F2E461C0F60001049149F2EC62C0F6D8 +S31508004FC00002059298F800302F2B18BF5C2B08D1E9 +S31508004FD008F10103984613F8012B2F2A18BF5C2AFB +S31508004FE0F8D0D9F81C5098F800002F2818BF1F28A9 +S31508004FF02CD95C2800F02D81AF1E4646544607E0A2 +S315080050005C2B00F02881B2F5807F00F041811446C0 +S31508005010514601F03FF80146002800F039817F2803 +S3150800502009D8222900F034815A4612F8013F13B1F3 +S315080050309842FAD12CE127F8021F621C16F8013FA4 +S3150800504018462F2B18BF1F2BDAD801E0002452462A +S3150800505090441F2898BF042601D90026FFE7002C94 +S3150800506000F0168104F10043013B5A0035F813306D +S315080050702E2B18BF202B40F0F080931C2B4407E002 +S3150800508033F8042C023B2E2A18BF202A40F0E5806C +S31508005090013CF5D1FCE003F8011B8342FBD12B88C8 +S315080050A0202B18BF2E2B40F0E4802846002301331E +S315080050B030F8021F202918BF2E29F8D0002B00F03F +S315080050C0D98046F00306D5E0013C05D108210391B5 +S315080050D000220192029205E0023A32F8021C2E29B9 +S315080050E0F2D1F3E75F1C35F81300002861D02028B9 +S315080050F008D0E31B18BF01232E2814BF002203F093 +S3150800510001021AB146F003063B46EBE7019A0399FA +S31508005110BC4218BF8A4214D30B2903D146F00306B2 +S31508005120029A49E00BB146F00306A74243D8029A11 +S315080051309300DBB2029323460B21039108220192C6 +S31508005140D0E77F280DD9002100F0A4FF03460028E8 +S3150800515000F0A08005990B4413F8800C46F002066F +S3150800516050B101462B2807D0049A12F8013F002BAC +S3150800517000F087809942F8D146F003065F2010E0D8 +S31508005180029A42F0020202920BE0A0F161039BB27E +S31508005190192B9FBF029B43F001030293203898BF47 +S315080051A080B2D9F81830019958543B46013101911B +S315080051B098E7029A00E0029AD9F818301978E52992 +S315080051C004BF05211970039B082B02BF9200D2B2B7 +S315080051D00292029901F00C030C2B03D001F0030292 +S315080051E0032A01D146F0020616F0020F0AD10299E7 +S315080051F001F00302012A08BF46F01006042B08BF77 +S3150800520046F00806D9F81830DE724846FFF7DEFD84 +S31508005210D9F81830DA7A034648B104283DD102F0A5 +S315080052200403DBB2002B14BF0346052335E012F056 +S31508005230040F32D1D9F81410CB7A13F0100F06D018 +S31508005240D9F80000FEF7D4FFC9F80800BAE6052326 +S3150800525023E0002452469044FFE66700EA194FF01F +S31508005260000325F81430D9F8183003F10B00202173 +S3150800527011E700232F4437F8021C2E293FF426AFE6 +S3150800528022E7A0F141039BB2192B7FF679AF7CE7A1 +S31508005290062302E046F002066EE7184607B0BDE8A8 +S315080052A0F08F00BF2DE9F04F83B0044689464FF0D2 +S315080052B0FF0B5E460425D84649F26C7AC0F6000A0A +S315080052C00AF10C030093002770E02068FFF738F80E +S315080052D0054600286ED162691378002B74D0D17AFE +S315080052E0E52B18BF2E2B59D001F03F01082914BF12 +S315080052F000200120484518BF464651D10F2943D101 +S3150800530013F0400F06D092F80DB003F0BF03E18802 +S31508005310218403E09E4218BF464641D192F80DE02B +S31508005320DE4518BF46463BD1D4F81CC0117801F0BB +S315080053303F01013901EB410501EB85050AF1FF3112 +S3150800534001260193DDF800B011F8013FD018407826 +S31508005350D35C43EA002036B1FE2D32D82CF815006E +S315080053600646013503E04FF6FF73984229D15945A1 +S31508005370EAD1019B127812F0400F1ED0FE2D98BF7D +S315080053802CF8157019D91CE010461EB9FEF740FF17 +S3150800539058451BD04FF6FF73238417E04646FFE7B0 +S315080053A020463946FFF77CFC054618B921690029CD +S315080053B08BD15DB10023236108E0013BDEB2F346E1 +S315080053C0EEE7F3464646EBE70425F3E7284603B03F +S315080053D0BDE8F08F2DE9F0410446C588018C4FF6EB +S315080053E0FF73994208BF2946FFF720FB0346D0B949 +S315080053F0E52701264FF0000820682169FEF7A0FF7F +S31508005400034668B96269177022681671E288AA426B +S3150800541009D220464146FFF743FC03460028EBD055 +S31508005420042B08BF02231846BDE8F0812DE9F04198 +S3150800543004460E46012998BF02212BD983699E424C +S3150800544028BF022126D200274FF001082046314600 +S31508005450FFF776FA0546C0B1012818D0B0F1FF3F2C +S3150800546017D0204631463A46FFF72CFB014688B945 +S315080054702369B3F1FF3F1EBF0133236184F805801A +S31508005480A369AB4206D92E46E0E7002102E00221D5 +S3150800549000E001210846BDE8F08100BF70B582B082 +S315080054A0054616461C460B22FEF798FE052C0BD918 +S315080054B0B21EE30343EA540432F8023F13FA84F4B3 +S315080054C0A4B25388002BF4D1072204F00F0101F18E +S315080054D03003392B88BF01F13703013A00A911447B +S315080054E04B702409F1D114467E2102AB134403F80C +S315080054F0081C62B12B78202B0BD0294600230133D8 +S31508005500A34207D011F8010F2028F8D102E00023A2 +S3150800551000E000232020072A9FBF02A9891811F856 +S31508005520081C013288BF0146E9540133072BF2D91A +S3150800553002B070BD2DE9F04F87B004468769C66989 +S3150800554003A839460C22FEF749FE9DF8173013F0DA +S31508005550010F21D00023FB72E3610125384603A918 +S3150800556032462B46FFF79AFF2046FFF72FFC0346E5 +S3150800557020B90135ADB2642DF0D1D5E0642D08BF50 +S31508005580072000F0EF80042B18BF184640F0EA8089 +S315080055909DF81730FB72E6619DF8173013F0020F7D +S315080055A008BF012716D033883BB1002301339BB2CD +S315080055B036F81320002AF9D100E0002319334EF6F5 +S315080055C04F42C4F6C46282FB0317DB17C3EBA70777 +S315080055D0BFB2FFE720460021FFF728FA0346002856 +S315080055E040F0BF800025A846012620682169FEF7FD +S315080055F0A7FE0346002840F0B48063691B78E52BB4 +S3150800560018BF002B03D10135AF4201D18EE04546C4 +S3150800561020463146FFF744FB03460028E5D0A0E0C4 +S31508005620E188C9EB0101204689B2FFF7FFF9034675 +S31508005630002840F09680A069FEF7EAFD01904FF039 +S3150800564000084FF6FF7549F26C76C0F60006FF278C +S3150800565020682169FEF774FE0346002840F0818021 +S31508005660D4F81CA061695FFA89FB019A4A734FF066 +S315080056700F03CB7281F80C8081F81A8081F81B80A1 +S315080056800BF1FF3303EB430003EB80000122434693 +S3150800569002E070462B460132AB424ED000F1010EB5 +S315080056A03AF81030B01810F8010C0B5408444FEAB9 +S315080056B0132C80F801C0002B49D070460C2AEAD971 +S315080056C0AB4202D03AF810300BB94BF0400B81F8D8 +S315080056D000B023684FF00101197120464146FFF7D3 +S315080056E0DFFA034600283CD109F1FF391FFA89F988 +S315080056F0B9F1000FACD12DE0636903F12001002256 +S3150800570003F8012B8B42FBD16069A1690B22FEF7D6 +S3150800571065FD6369A269D27A02F018021A732368D2 +S3150800572001221A7100201DE007201BE0013F1FFA25 +S3150800573087F9B9F1000F0DD072E706EB020E1EF8D5 +S3150800574001EC01F80E708E448EF80170B6E70C2A4B +S315080057509FD9BAE720682169FEF7F2FD0028CBD069 +S3150800576000E0184607B0BDE8F08F00BF88B940F2E0 +S315080057700C63C2F200031B680BB100221A7009B150 +S3150800578000230B7040F20C63C2F20003196000207C +S3150800579070470B20704700BF2DE9F0438FB0019189 +S315080057A015460446002800F094800023036001A8EB +S315080057B005A902F01E02FEF7F9FD002840F08B80CD +S315080057C005F01F0702AB0B9340F20843C2F2000331 +S315080057D00C9305A80199FFF7CBFB0A9E0346002800 +S315080057E07FD1002E78D17BE05BB1042B40F0858019 +S315080057F005A8FFF79FFE47F008070A9E034638B13B +S315080058007BE0F37A13F0110F70D115F0040F6FD106 +S3150800581017F0080F3CD0FDF7F9FCB073C0F3072367 +S31508005820F373030C3374000E70740025F572357724 +S315080058307577B577F577DDF8148040463146FEF77B +S31508005840D7FCB576F57635757575012388F8043075 +S315080058500546E8B1D8F8309040462946FFF7E6FDF8 +S315080058600346002849D10598013DC5604946FEF71B +S3150800587067FD03460AE0F37A13F0100F3AD115F0E4 +S31508005880020F05D013F0010F36D101E0002B34D1F9 +S3150800589017F0080F18BF47F02007059D2B6BE3612B +S315080058A02662A77128463146FEF7A2FC2061F27FE0 +S315080058B0B37F1B0443EA0263327F1343727F43EAD2 +S315080058C00223E3600020A060A0612560EB88A38026 +S315080058D014E0092012E011E015F01C0F91D1CAE777 +S315080058E0062315F01C0F7FF47FAFCFE7072304E0EC +S315080058F0082302E0042300E0072318460FB0BDE89A +S31508005900F08300BF2DE9F04F83B004460F4690465A +S315080059101E4600233360FEF72DFD002840F0BF80A9 +S31508005920A37913F0800F18BF022040F0BC8013F053 +S31508005930010F08BF072000F0B680E568A368ED1AD6 +S31508005940A84538BF4546002D00F0AA8004F1240377 +S315080059500193A368C3F30802002A40F086802068F2 +S3150800596090F802A00AF1FF3A0AEA532A1AF0FF0A47 +S3150800597017D10BB9206902E06169FEF7E1FF01283A +S3150800598005D8A37963F07F03A37102208BE0B0F1F9 +S31508005990FF3F05D1A37963F07F03A371012082E05D +S315080059A06061D4F8008040466169FEF7BDFF814614 +S315080059B028B9A37963F07F03A371022073E0D14469 +S315080059C05FEA552B29D098F802300BEB0A029A4267 +S315080059D088BFCAEB030B98F8010039464A465FFAB6 +S315080059E08BF3FDF779FB28B1A37963F07F03A371E5 +S315080059F0012058E0A37913F0400F0BD0A369C9EB37 +S31508005A000300834506D907EB402001994FF400723D +S31508005A10FEF7E4FB4FEA4B2B35E0A2694A4522D054 +S31508005A20A37913F0400F10D098F8010001990123CB +S31508005A30FDF784FB28B1A37963F07F03A3710120E6 +S31508005A4031E0A37923F04003A371236858780199BC +S31508005A504A460123FDF740FB28B1A37963F07F038B +S31508005A60A37101201FE0C4F81890A168C1F30801CA +S31508005A70C1F5007B5D4538BFAB4621443846243125 +S31508005A805A46FEF7ABFB5F44A3685B44A3603368E2 +S31508005A905B443360B5EB0B057FF45BAF02E002E0D5 +S31508005AA0002000E0002003B0BDE8F08F2DE9F04F9C +S31508005AB083B004460F4615461E4600233360FEF79C +S31508005AC059FC002840F0DA80A37913F0800F18BF3C +S31508005AD0022040F0D48013F0020F08BF072000F020 +S31508005AE0CE80E368DD4280F0BE80002D00F0BB80EA +S31508005AF004F124030193A368C3F30802002A40F0C3 +S31508005B009580206890F802B00BF1FF3B0BEA532B07 +S31508005B101BF0FF0B21D13BB9236963B90021FFF7BD +S31508005B2059F80346206103E06169FFF753F8034615 +S31508005B30002B00F09880012B05D1A37963F07F0331 +S31508005B40A37102209BE0B3F1FF3F05D1A37963F06F +S31508005B507F03A371012092E06361A37913F0400FDC +S31508005B6011D0236858780199A2690123FDF7E6FA4E +S31508005B7028B1A37963F07F03A37101207FE0A3799D +S31508005B8023F04003A371D4F8008040466169FEF70C +S31508005B90CBFE814628B9A37963F07F03A37102205F +S31508005BA06DE0D9445FEA552A29D098F802300AEB05 +S31508005BB00B029A4288BFCBEB030A98F801003946D4 +S31508005BC04A465FFA8AF3FDF7B9FA28B1A37963F072 +S31508005BD07F03A371012052E0A369C9EB03018A453B +S31508005BE00AD9019807EB41214FF40072FEF7F6FA3D +S31508005BF0A37923F04003A3714FEA4A2A28E0A36950 +S31508005C004B4511D0A268E3689A420DD298F8010074 +S31508005C1001994A460123FDF75FFA28B1A37963F093 +S31508005C207F03A37101202AE0C4F81890A068C0F386 +S31508005C300800C0F5007A554538BFAA4620442430E6 +S31508005C4039465246FEF7CAFAA37943F04003A371D0 +S31508005C505744A3685344A360336853443360B5EB91 +S31508005C600A057FF448AFA368E268934288BFE360F9 +S31508005C70A37943F02003A371002000E0FFE703B0F7 +S31508005C80BDE8F08F38B50446FEF774FB002849D105 +S31508005C90A37913F0200F46D013F0400F0DD02146FC +S31508005CA051F8243B5878A2690123FDF747FA0028E2 +S31508005CB03BD1A37923F04003A3712068E169FEF77D +S31508005CC03FFB002833D1256AEB7A43F02003EB72B9 +S31508005CD0E3682B77A3891B0A6B77E389AB77E37BAA +S31508005CE0EB772369AB76C3F30722EA761B0C2B7591 +S31508005CF01B0A6B75FDF78AFAA875C0F30723EB75BF +S31508005D00030C2B76000E68760023AB74EB74A3792C +S31508005D1023F02003A371236801221A712068FEF775 +S31508005D20A5FD38BD38BD002038BD012038BD38BDB9 +S31508005D3010B50446FFF7A6FF034608B900222260FD +S31508005D40184610BD70B504460D46FEF713FB00282D +S31508005D5040F0BD80A37913F0800F40F0B980E26867 +S31508005D60AA4205D203F00203DBB2002B08BF154690 +S31508005D70A2680023A360002D00F0AC802068867816 +S31508005D8076026AB1013A691EB1FBF6F1B2FBF6F387 +S31508005D90994205D373421A40A260AD1A616918E0A8 +S31508005DA02169A9B9FEF716FF0146012805D1A3798D +S31508005DB063F07F03A371022070BDB0F1FF3F18BFE7 +S31508005DC0206105D1A37963F07F03A371012070BD1B +S31508005DD06161002940D0B5422BD9A27912F0020F91 +S31508005DE005D02068FEF7F6FE014620B920E02068B7 +S31508005DF0FEF7A6FD0146B1F1FF3F05D1A37963F091 +S31508005E007F03A371012070BD012903D92268926915 +S31508005E10914205D3A37963F07F03A371022070BD75 +S31508005E206161A2683244A260AD1BAE42D5D300E0E0 +S31508005E303546A2682A44A260C5F3080272B12068F2 +S31508005E40FEF772FD28B9A37963F07F03A3710220D8 +S31508005E5070BD00EB552502E0002500E00025A3688B +S31508005E60C3F3080343B3A269AA4225D0A37913F062 +S31508005E70400F11D0214651F8243B58780123FDF7ED +S31508005E805DF928B1A37963F07F03A371012070BD82 +S31508005E90A37923F04003A371214651F8243B58788F +S31508005EA02A460123FDF718F928B1A37963F07F0381 +S31508005EB0A371012070BDA561A368E26893420BD95E +S31508005EC0E360A37943F02003A371002070BD70BD81 +S31508005ED0022070BD002070BD002070BD30B58FB0A7 +S31508005EE00EAB43F8340D0D46184605A90022FEF7F9 +S31508005EF05DFA0446A0B902AB0B9340F20843C2F21E +S31508005F0000030C9305A80199FFF732F8044638B93F +S31508005F100A9B23B105A82946FEF712FC00E00624D1 +S31508005F2020460FB030BD00BF30B599B018AB43F866 +S31508005F305C0D18460FA90122FEF738FA0346002819 +S31508005F404DD103AB159340F20843C2F200031693F2 +S31508005F500FA80199FFF70CF8034600283FD11499BA +S31508005F60062300293BD0CC7A14F0010F18BF07236B +S31508005F7035D124E0012D98BF022330D906A80FA9F0 +S31508005F802422FEF72BF9089506A80221FEF74EFDF6 +S31508005F90034620BB06A80021FFF784F90346E8B1AB +S31508005FA0042814D01BE02DB10F982946FFF73EFAB6 +S31508005FB00346A0B90F98FEF759FC03460FE00F9861 +S31508005FC0FEF716F9054614F0100FD3D1FFE70FA810 +S31508005FD0FFF700FA03460028E5D000E00723184635 +S31508005FE019B030BD2DE9F04383B081469046054689 +S31508005FF000244E1E012711E0404601A93A466B4689 +S31508006000FFF780FC009B012B0AD19DF804300D2B6D +S3150800601004D005F8013B01340A2B01D0A642EBDC7B +S3150800602000232B709C4214BF4846184603B0BDE8AF +S31508006030F08300BF30B583B004460D460A2802D166 +S315080060400D20FFF7F7FF02A901F8084D2846694613 +S31508006050012201ABFFF72AFD0198012814BF4FF072 +S31508006060FF30012003B030BD70B505460E460078F6 +S3150800607060B100243146FFF7DDFFB0F1FF3F08D0DD +S31508006080013415F8010F0028F4D101E0002070BD95 +S31508006090204670BD7F2821D941B9C7281EBF49F6B9 +S315080060A05C12C0F6000201230AD112E0FF2814D8B8 +S315080060B0803849F65C13C0F6000333F810007047C1 +S315080060C032F8021F814205D001339BB2802BF7D1EB +S315080060D000E000238033D8B270470020704700BF25 +S315080060E061280CD049F27C72C0F600020021013109 +S315080060F032F8023F53B18342F9D10BB970470021F8 +S3150800610049F65C23C0F6000333F81100704700BF58 +S3150800611030B4013A8D18A94214D20B461C785A7825 +S3150800612002EB042292B2104480B2824284BF01304C +S3150800613080B202339D42F1D8CB432B4423F00103AE +S3150800614002331944A94207D10B781B02184480B2BE +S31508006150834284BF013080B230BC704738B542F6FE +S315080061602004C2F20004657C143D237C05EB03255C +S31508006170ADB2284480B204F11A010822FFF7C8FF1D +S3150800618004F122012A46FFF7C3FF034620B1000A9D +S3150800619040EA032080B238BD4FF6FF7038BD00BF15 +S315080061A070B4C4780C44E4B242F29873C2F20003A5 +S315080061B0DC700D0A82782A44D2B29A7046785E70EC +S315080061C00078187095420DD90136F6B242F29873E6 +S315080061D0C2F200035E702EB942F29873C2F200034F +S315080061E001301870C9B28C4217DA0132D2B242F2C3 +S315080061F09873C2F200039A707AB942F29873C2F29F +S3150800620000035A780132D2B25A7032B942F2987300 +S31508006210C2F200031A7801321A7070BC704700BFC8 +S3150800622010B5014642F2A474C2F200042068083090 +S31508006230FFF7B6FF226842F29873C2F20003197894 +S3150800624011725978517299789172DB78D37210BDB0 +S3150800625008B5002006491422FFF75AFF034620B165 +S31508006260000A40EA032080B208BD4FF6FF7008BD59 +S315080062702E28002008B50620FFF770FF08BD00BFCE +S3150800628042F61003C2F2000300221A8042F2A873F3 +S31508006290C2F200035A7640F22463C2F200030122D6 +S315080062A01A7040F21863C2F200034FF480621A8033 +S315080062B0704700BF40F22463C2F2000300221A703E +S315080062C042F61003C2F200031B882BB942F61003EC +S315080062D0C2F200031880704740F22463C2F200033A +S315080062E001221A70704700BF38B542F2A473C2F291 +S315080062F000031C6842F2A073C2F20003A54A1A60A2 +S3150800630042F29473C2F200031A60032813D1637E23 +S3150800631003F00F03032B40F05B87238A002B40F022 +S31508006320578742F29C73C2F2000308221A7001F0E2 +S315080063307BFB00F097BD022840F09E8040F2146374 +S31508006340C2F20003DA780132D2B2DA70C2B940F288 +S315080063501463C2F200039A780132D2B29A707AB9FB +S3150800636040F21463C2F200035A780132D2B25A706C +S3150800637032B940F21463C2F200031A7801321A7075 +S3150800638042F29073C2F2000300221A8042F6626358 +S31508006390C2F200031A80637E03F0FD02052A09D1C2 +S315080063A0A37E0133DBB2A376782B04BF0023637682 +S315080063B000F00EBF002B00F00B87228A002A4CD073 +S315080063C0A27E511EA176002A40F00287E27E082AA4 +S315080063D005D0591EC9B2012914D8052A12D100239D +S315080063E0637642F29C73C2F2000380221A7001F0AF +S315080063F01BFB42F62003C2F20003142283F82F2067 +S3150800640000F063BE042A9DBF03219140C9B2302122 +S31508006410A1760132E27603F00F03013B072B00F267 +S31508006420D786DFE813F05D0208001000AC04D50635 +S31508006430AC04D506AC0442F62003C2F200030022DF +S3150800644083F82F2053E242F29C73C2F2000304221F +S315080064501A7001F0E9FA00F056BD03F00F03032B9A +S3150800646040F0B68642F29C73C2F2000308221A7004 +S3150800647001F0DAFA00F0F6BC42F62003C2F2000395 +S315080064809B7B452B40F0A48642F62003C2F200030C +S31508006490197C5A7C02EB012042F29073C2F2000387 +S315080064A01B88984200F3948684B242F29073C2F233 +S315080064B000031C8042F62003C2F200031B7D13F082 +S315080064C03F0F40F0858642F62003C2F200035B7D4B +S315080064D0002B40F07D8642F61C03C2F200031D889D +S315080064E02DB942F61C03C2F200035B88A3B142F63B +S315080064F02003C2F20003DB8BAB4240F0698642F60A +S315080065002002C2F2000242F61C03C2F20003128CF9 +S315080065105B889A4240F05C86FFF79AFE4FF6FF7357 +S31508006520984240F0558642F62003C2F20003DB7D0E +S31508006530062B31D0012B40F04B8642F62003C2F2DF +S31508006540000393F82230082B40F0428642F62003D7 +S31508006550C2F20003002283F822209A8C4FF6F673C3 +S315080065609A4242F62003C2F200038CBF093208326F +S315080065709A8442F62003C2F200035A8BDA839A8B76 +S315080065801A845D8342F61C02C2F2000252889A837C +S3150800659000F017BE56280020FFF76CFE4FF6FF7373 +S315080065A0984240F0158642F2A873C2F20003597E5B +S315080065B081B342F62002C2F2000242F2A873C2F286 +S315080065C00003928C9B889A4224D142F62002C2F29A +S315080065D0000242F2A873C2F20003528CDB889A4288 +S315080065E018D142F62002C2F2000242F2A873C2F2A1 +S315080065F00003528B1B889A420CD142F62002C2F243 +S31508006600000242F2A873C2F20003928B5B889A4298 +S3150800661000F08D8142F62003C2F2000393F82F3072 +S3150800662003F03F03022B1CD142F62003C2F20003FB +S315080066309A8C40F21063C2F200031A8040F2246377 +S31508006640C2F200030021197042F61003C2F20003D9 +S315080066501B8893427BD040F22463C2F200030122D6 +S315080066601A7042F62003C2F2000393F82F3013F093 +S31508006670040F40F0AD8542F62003C2F2000314224F +S3150800668083F82F2042F29072C2F20002282111806C +S31508006690502283F82E2093F8295093F82D2083F85A +S315080066A0292093F8284093F82C2083F8282083F88B +S315080066B02C4093F8270093F82B2083F8272083F89B +S315080066C02B0093F8262040F22461C2F200010A70DA +S315080066D093F82A1083F8261083F82A20691CC9B271 +S315080066E083F82D10C1B9611CC9B242F62003C2F263 +S315080066F0000383F82C1079B9411CC9B242F620036D +S31508006700C2F2000383F82B1031B942F62003C2F215 +S315080067100003013283F82A2042F62003C2F200035E +S31508006720598C40F21062C2F2000211809A8C5A8487 +S3150800673099845A8BDA839A8B1A8442F61C02C2F21F +S3150800674000021188598352889A8300F00DBD42F2DF +S31508006750A873C2F200035B7E23B1072B40F04C8579 +S3150800676000F042BD42F2A471C2F2000142F2A873DF +S31508006770C2F200030B6003219976197600219975F8 +S315080067800420D875D9769A8042F62004C2F200040D +S31508006790628CDA80628B1A80A28B5A800120587626 +S315080067A040F21462C2F200021178197351785973D3 +S315080067B091789973D278DA73188294F82920DA7264 +S315080067C094F828209A7294F827205A7294F826206A +S315080067D01A72FFF725FD94F82E3003F0F002502ABE +S315080067E07ADD1B095C1FA40040F22563C2F2000390 +S315080067F01A78002342F62001C2F200015AE0CA18AC +S3150800680092F8362072B940F22461C2F200010B7088 +S3150800681040F22563C2F200031A7042F2A874C2F26B +S3150800682000045DE0012A02D10133DBB242E0022A0C +S315080068302BD10D1895F83750042D26D140F2246235 +S31508006840C2F20002137040F22563C2F2000302226C +S315080068501A7042F62003C2F20003034493F8382064 +S3150800686093F8393043EA022240F21063C2F2000379 +S315080068701A8040F20A639A4238BF134642F2A87455 +S31508006880C2F200046382A3822AE0084490F8370023 +S3150800689070B940F22461C2F200010B7040F2256320 +S315080068A0C2F200031A7042F2A874C2F2000417E09A +S315080068B00344DBB21846A342A1DB40F22461C2F2CC +S315080068C000010B7040F22563C2F200031A7042F20F +S315080068D0A874C2F2000403E042F2A874C2F20004EB +S315080068E042F62003C2F20003102283F82F2042F654 +S315080068F02003C2F2000393F82F2042F0020283F825 +S315080069002F20022283F83620042283F83720062215 +S3150800691083F838200A2283F8392042F29072C2F2AC +S3150800692000022C211180602283F82E20DAE342F23D +S31508006930A473C2F2000342F2A872C2F200021A60FD +S3150800694042F29C73C2F2000300221A7042F6200338 +S31508006950C2F2000393F82F3013F0040F0ED042F260 +S31508006960A873C2F200035A7642F29C73C2F200037D +S3150800697020221A7001F058F800F02ABC42F62002CC +S31508006980C2F2000292F82E000009800040F224624A +S31508006990C2F200021070143C201A80B242F29072C1 +S315080069A0C2F20002108001F00F01022903D103F0A0 +S315080069B03F02122A1DD010B913F0030F19D042F660 +S315080069C02001C2F2000142F2A872C2F20002C98C8A +S315080069D01289914240F06E8342F62001C2F200010C +S315080069E042F2A872C2F20002098D5289914240F021 +S315080069F0618313F0100F77D042F2A873C2F2000336 +S31508006A00198A002970D003F10C00FFF7C9FB42F67A +S31508006A102003C2F2000393F82A4042F29873C2F2A6 +S31508006A2000031B78A3425FD142F62003C2F200039B +S31508006A3093F82B0042F29873C2F200035B78834204 +S31508006A4052D142F62003C2F2000393F82C1042F208 +S31508006A509873C2F200039B788B4245D142F6200315 +S31508006A60C2F2000393F82D2042F29873C2F2000393 +S31508006A70DB78934238D142F2A873C2F200031C7342 +S31508006A8058739973DA73DB7E03BB42F2A873C2F2BA +S31508006A900003987D197E9A7E891AA1EBD001C9B2A6 +S31508006AA0CAB20844C0B2987512F0800F1CBF4A4299 +S31508006AB0D2B242F2A873C2F20003D97DA1EB9101CA +S31508006AC00A44D2B2DA7502EBD0021A7642F29C7305 +S31508006AD0C2F2000301221A7042F2A873C2F200033E +S31508006AE01A7E9A7600221A8242F2A873C2F200032C +S31508006AF05A7E02F00F03013B072B00F26983DFE899 +S31508006B0013F008003A00040151029B02C702D90299 +S31508006B10390242F29C73C2F200031B7813F0010F8C +S31508006B2000F0568342F2A873C2F2000303225A7693 +S31508006B3042F29C72C2F200024021117000221A82AF +S31508006B4042F29073C2F20003188838B142F29C737D +S31508006B50C2F2000342221A70FFF762FB42F6626332 +S31508006B60C2F2000300221A8000F05EFF42F2A87407 +S31508006B70C2F2000476E142F29C73C2F200031B786B +S31508006B8013F0010F00F0B18042F62003C2F20003B1 +S31508006B9093F82F3003F03F03122B40F0A68042F6FD +S31508006BA02003C2F2000393F82E3003F0F002502AB5 +S31508006BB06DDD1B095C1FA40040F22563C2F20003C9 +S31508006BC01A78002342F62001C2F2000152E0CA18E0 +S31508006BD092F8362052B940F22461C2F200010B70D5 +S31508006BE040F22563C2F200031A7050E0012A02D16E +S31508006BF00133DBB23EE0022A2BD10D1895F8375047 +S31508006C00042D26D140F22462C2F20002137040F22B +S31508006C102563C2F2000302221A7042F62003C2F26A +S31508006C200003034493F8382093F8393043EA0222E4 +S31508006C3040F21063C2F200031A8040F20A639A42D5 +S31508006C4028BF1A4642F2A873C2F200035A829A82F1 +S31508006C501DE0084490F8370050B940F22461C2F2AA +S31508006C6000010B7040F22563C2F200031A700EE0B1 +S31508006C700344DBB21846A342A9DB40F22461C2F200 +S31508006C8000010B7040F22563C2F200031A7042F24B +S31508006C90A874C2F200040323637642F62003C2F204 +S31508006CA0000393F82620227293F82720627293F83D +S31508006CB02820A27293F82930E3720120FFF7B0FA70 +S31508006CC042F29C73C2F2000342221A700022228208 +S31508006CD042F29073C2F200031A8042F66263C2F26D +S31508006CE000031A8000F0A0FEBCE042F29C73C2F2D8 +S31508006CF0000320221A7000F097FE42F2A473C2F233 +S31508006D0000031B6800225A76ABE442F62003C2F25F +S31508006D10000393F82F3013F0010F38D012F0100F3C +S31508006D2035D142F2A873C2F200031B8A002B40F049 +S31508006D304F8242F29074C2F200042088013080B279 +S31508006D40FFF76EFA42F29C73C2F200031A7842F019 +S31508006D5010011970238833B142F29C73C2F2000302 +S31508006D6042F012021A7000F05FFE42F2A874C2F2F4 +S31508006D70000401232382082363760023E37642F680 +S31508006D802003C2F20003112283F82F209DE113F09D +S31508006D90200F18D042F62003C2F2000393F83400FD +S31508006DA0000293F8351042F2A073C2F2000340EADB +S31508006DB001051C682C441C6042F29073C2F2000361 +S31508006DC01888411B198042F29073C2F20003188892 +S31508006DD060B112F0100F09D142F29C73C2F200039F +S31508006DE01A7842F002021A70FFF71AFA42F62003DE +S31508006DF0C2F2000393F8302093F8313003EB0223F4 +S31508006E009BB240F21062C2F20002138042F2A872EC +S31508006E10C2F20002928A934200D823B940F2106364 +S31508006E20C2F200031A8042F2A873C2F2000340F2CB +S31508006E301062C2F2000212885A8242F29C73C2F2AF +S31508006E4000031B7813F0030F00F0C28142F6626359 +S31508006E50C2F2000300221A8000F0E6FD42F2A8748E +S31508006E60C2F2000442F29C73C2F200031B7813F0CC +S31508006E70200F0ED042F66263C2F2000300221A8087 +S31508006E80627642F62003C2F20003142283F82F200A +S31508006E901BE113F0100F12D042F66263C2F2000330 +S31508006EA000221A800123238204236376E27642F6BF +S31508006EB02003C2F20003112283F82F2005E142F6CF +S31508006EC06262C2F200021288DAB113F0010F1CBF27 +S31508006ED00023238201D1218A71B9618A8A4282BF3D +S31508006EE042F66263C2F20003198042F66263C2F296 +S31508006EF000031B88238204E042F66263C2F20003A1 +S31508006F0019800023E37642F2A073C2F2000342F22C +S31508006F109472C2F2000212681A6042F66263C2F202 +S31508006F2000031B887BB1238A6BB142F29072C2F2CE +S31508006F3000022833138042F62003C2F20003182207 +S31508006F4083F82F20C7E042F29C73C2F200031B7835 +S31508006F5013F0020F00F03C8142F29073C2F2000374 +S31508006F6028221A8042F62003C2F20003102283F870 +S31508006F702F20B0E042F29C73C2F200031B7813F094 +S31508006F80010F00F0258142F2A873C2F20003002225 +S31508006F905A7642F29C73C2F2000310221A7000F06D +S31508006FA043FD15E142F29073C2F20003188808B156 +S31508006FB0FFF736F942F62003C2F2000393F82F30A2 +S31508006FC013F0010F1FD042F29C73C2F200031B7824 +S31508006FD013F0010F42F2A873C2F200031FBF072283 +S31508006FE05A7600229A7612BF1A8206225A7601200B +S31508006FF0FFF716F942F29C73C2F2000310221A70C8 +S3150800700000F012FD56E042F29C73C2F200031B78B0 +S3150800701013F0010F08D042F2A873C2F2000305224A +S315080070205A7600221A82D3E042F29073C2F2000323 +S315080070301B88002B3ED1CBE042F29073C2F20003CC +S31508007040188808B1FFF7ECF842F62003C2F20003ED +S3150800705093F82F3013F0010F13D042F2A873C2F23F +S31508007060000307225A7600229A760120FFF7D8F8FD +S3150800707042F29C73C2F2000310221A7000F0D4FC8C +S3150800708018E042F29073C2F200031B8893B99FE09E +S3150800709042F29C73C2F200031B7813F0010F00F052 +S315080070A0978042F2A873C2F2000307225A7600229A +S315080070B09A768DE042F62003C2F20003102283F886 +S315080070C02F2042F2A874C2F2000442F29073C2F270 +S315080070D0000328221A8042F62003C2F20003502237 +S315080070E083F82E20227A42F62003C2F2000383F8A0 +S315080070F02A20627A83F82B20A27A83F82C20E27A57 +S3150800710083F82D20227B83F82620627B83F82720AC +S31508007110A27B83F82820E27B83F829200622DA75E9 +S31508007120A2885A84E2889A8442F61C02C2F20002B5 +S315080071301188598352889A832288DA8362881A8446 +S31508007140637E13F0100F42F62003C2F200031DBF40 +S31508007150002283F8312083F83020062202BF83F804 +S3150800716030200A2283F8312042F62004C2F20004B5 +S315080071704023A37542F29073C2F200031B881A0AD1 +S3150800718022746374002584F8355084F83450658673 +S31508007190FFF770F8C04360864523A373E5736575EA +S315080071A0257540F21263C2F200031A88013292B2C0 +S315080071B01A80130AA374E2742583FFF749F8C043BB +S315080071C0208342F29C73C2F2000300221A7038BD73 +S315080071D042F29073C2F2000300221A8042F29C73B4 +S315080071E0C2F200031A7038BD40F22463C2F20003EB +S315080071F001211970FFF7B6BA40F22463C2F2000300 +S3150800720001221A70E4E700BF030A43EA002080B2AD +S31508007210704700BF10B504460A1E0FDD42F66263CA +S31508007220C2F200031A8042F29473C2F2000318688D +S31508007230844203D0214692B202F05EF910BD00BF27 +S315080072402DE9F00340F22663C2F200034FF0000C6A +S3150800725083F800C040F22865C2F200052B460122D9 +S315080072601F461C88CCB15E88BEB1B0F80080A04528 +S3150800727013D14488B44210D140F22663C2F2000307 +S3150800728083F800C0086878608B883B8140F2896380 +S31508007290C2F200031B78BB725AE0541CE4B20C33EA +S315080072A0092C02D094462246DAE72B4600221E46CF +S315080072B01C884CB95C883CB940F22663C2F20003CC +S315080072C01A70082A36D104E00132D2B20C33082AE1 +S315080072D0EDD1002340F28962C2F200021678B04668 +S315080072E01F4699465FFA83FCAA7AC2EB0804BC4299 +S315080072F0C2BFC2EB0602E146D7B201330C35082BF2 +S31508007300F0D140F22763C2F200031F7040F288638F +S31508007310C2F2000383F8009040F22663C2F200032B +S3150800732083F8009040F22863C2F2000309EB49098A +S3150800733003EB89060268334643F8042B0A68726031 +S315080073408A889A8040F28963C2F200031B78B37276 +S31508007350BDE8F003704700BFF0B440F28963C2F29B +S3150800736000031E780136F6B21E7040F22863C2F298 +S3150800737000030122002740F22664C2F2000458885E +S315080073801988014389B259B1997A711A772907DDA3 +S31508007390194601F8017B5F70013101F8017B0F7016 +S315080073A022700132D2B20C33092AE8D1F0BC7047F8 +S315080073B038B542F29073C2F200031B88292B06D80F +S315080073C042F29073C2F2000300221A8038BD42F2DC +S315080073D09073C2F2000300221A8042F62003C2F21A +S315080073E000039B8AB3F5807F03D0B3F5007F59D09D +S315080073F038BD42F62002C2F2000242F61C03C2F26F +S315080074000003D28C1B889A4269D142F62002C2F246 +S31508007410000242F61C03C2F20003128D5B889A42F0 +S315080074205DD12F4CA51F20462946FFF709FFA4F179 +S315080074301C03002204F8082C022204F8072C54F82E +S31508007440062C626034F8022C228140F21C62C2F2D9 +S315080074500002106844F8060C928824F8022C44F8B6 +S31508007460160C24F8122C626844F81C2C228924F87D +S31508007470182C9A8B62816288A28142F61C02C2F29B +S3150800748000021188998352886280082204F8102C19 +S31508007490062204F80F2C42F29073C2F200032A2245 +S315080074A01A8038BD42F62002C2F2000242F61C03D8 +S315080074B0C2F20003D28C1B889A4210D142F62002EF +S315080074C0C2F2000242F61C03C2F20003128D5B8868 +S315080074D09A4204D1024908460639FFF7B1FE38BD7B +S315080074E03C28002038B542F62003C2F20003D98BA7 +S315080074F08AB24FF6FF739A4215D142F62003C2F2BA +S315080075000003188C4FF6FF7398420CD142F62003FD +S31508007510C2F2000349F63C42C0F600021068186041 +S3150800752092889A80ADE042F61C03C2F200031B88DB +S315080075305A4042F61803C2F200031B881A4212D1B7 +S3150800754042F62003C2F200031A8C90B242F61C03DC +S31508007550C2F200035B88584042F61803C2F20003E1 +S315080075605B8818420CD040F28C63C2F2000342F6E4 +S315080075701402C2F200021188198052885A8005E066 +S3150800758040F28C63C2F2000319805A8040F28C6381 +S31508007590C2F2000318885D8840F22863C2F200032D +S315080075A000221C46198881420AD15988A94207D166 +S315080075B040F22663C2F200031A70082A58D109E07D +S315080075C00132D2B20C33082AEBD140F22663C2F25A +S315080075D000031A7042F62004C2F200042046FF2176 +S315080075E0062201F0DDFF002384F8203084F82130DC +S315080075F084F8223084F8233084F8243084F825303F +S3150800760040F21C62C2F200021168C4F806109288A1 +S315080076106281C4F81610628340F28C62C2F20002DC +S315080076201188E1845288228542F61C02C2F20002C1 +S315080076301188A1835288E283237501226275A37398 +S31508007640E2730822227463740623A3740423E37482 +S3150800765022730623637342F2A073C2F20003363420 +S315080076601C6042F29073C2F200032A221A8038BDC7 +S3150800767042F62003C2F2000354F8040F1860A288E9 +S315080076809A8042F62003C2F2000340F21C62C2F25C +S3150800769000021168C3F8061092885A8108221A73E4 +S315080076A000225A7342F29073C2F200031A880E320D +S315080076B01A8038BD08B500F017FC01F0ABFE01F0E2 +S315080076C08BFE00F095FC00F00FF800F0FBFB08BD00 +S315080076D008B500F00BFC01F0B9FE00F0C7FD00F09C +S315080076E01BF800F0C7FB08BD10B500F0E1F901F082 +S315080076F007F840F2E404C2F200040123237001F003 +S3150800770089FB0023237001F0BFFC0223237000F0DD +S31508007710A9F80323237010BD08B540F29060C2F2A1 +S31508007720000001F0F5F801280BD140F2E403C2F29B +S31508007730000301221A7040F29060C2F2000000F0C5 +S31508007740D7F940F29060C2F2000001F0B7FB0128B9 +S315080077500BD140F2E403C2F2000300221A7040F291 +S315080077609060C2F2000000F0C3F940F29060C2F2E5 +S31508007770000001F03FFD01280BD140F2E403C2F2FC +S31508007780000302221A7040F29060C2F2000000F074 +S31508007790AFF940F29060C2F2000000F0BFF801288D +S315080077A00BD140F2E403C2F2000303221A7040F23E +S315080077B09060C2F2000000F09BF908BD08B501F020 +S315080077C0CFFC08BD38B505460C4640F2E403C2F2C4 +S315080077D000031B78012B02D1C9B201F045F840F22B +S315080077E0E403C2F200031B781BB92846E1B201F094 +S315080077F031FB40F2E403C2F200031B78022B03D1EB +S315080078002846E1B201F0B8FC40F2E403C2F20003F4 +S315080078101B78032B03D12846E1B200F05DF800F08F +S315080078205FF938BD40F2E403C2F200031878012874 +S3150800783004D002280CBF3F2040207047082070471C +S3150800784040F2E403C2F200031878012804D00228A3 +S315080078500CBF3F20402070470820704708B500F04D +S3150800786035F908BD08B5FBF779FF01F001FE40F2CE +S31508007870D463C2F2000300F5FA70186001F0F8FD4F +S3150800788040F2D063C2F2000300F51C5010301860B5 +S31508007890FEF7F6FC42F61C03C2F200034FF6A96295 +S315080078A01A8043F61371598042F61803C2F2000390 +S315080078B04FF6FF7119800021598042F61403C2F26F +S315080078C000031A8040F213125A804EF60300FEF7A0 +S315080078D0F1FCFCF757F808BDF8B542F2A473C2F2FA +S315080078E000031F68FB693B628E4659B14E1EB6B24D +S315080078F00136002307F11C05C45CEA18147201332B +S31508007900B342F9D10EF10401A7F8641007F120007B +S31508007910FFF780FCFB690133FB61F8BD10B5FCF786 +S3150800792043F800283ED042F29072C2F2000210805C +S3150800793042F62003C2F200039C894FF40060FFF769 +S3150800794063FC844213D10120FEF7CEFC42F2907309 +S31508007950C2F200031B882BB3FFF7C4FDFCF74CF8F3 +S3150800796042F29073C2F2000300221A801AE042F62D +S315080079702003C2F200039C8940F60600FFF744FC88 +S3150800798084420FD1FFF714FD42F29073C2F200034E +S315080079901B883BB1FCF730F842F29073C2F2000341 +S315080079A000221A8001F064FD40F2D463C2F200039B +S315080079B01B68984222D340F2D462C2F2000203F551 +S315080079C0FA73136042F2A473C2F2000342F2A87279 +S315080079D0C2F200021A600220FEF786FC42F2907399 +S315080079E0C2F200031B884BB1FFF77CFDFCF704F8D5 +S315080079F042F29073C2F2000300221A8001F038FDA9 +S31508007A0040F2D063C2F200031B68984209D340F2E1 +S31508007A10D062C2F2000203F51C5310331360FFF75D +S31508007A209BFC002010BD00BF10B542F2A473C2F241 +S31508007A3000031C6842F29C73C2F200031B7813F021 +S31508007A40400F05D00123E3610023A4F8643010BD7C +S31508007A5013F0010F1CBF0022A4F8642013F0040FD2 +S31508007A6006D0B4F8641019B104F12000FFF7D2FB70 +S31508007A7042F29C73C2F200031B7813F0020F0AD07D +S31508007A800023A4F8643042F2A073C2F20003186817 +S31508007A90043000F02DF810BD40F2D863C2F200039E +S31508007AA0FE22DA7018710222A3F84420704700BF3C +S31508007AB040F2D863C2F2000300221A709A6483F86F +S31508007AC04320A3F844209A705A70704740F2D8634E +S31508007AD0C2F200031878003018BF0120704700BFB3 +S31508007AE040F2D863C2F20003002283F843207047AD +S31508007AF038B504460178FF2923D100F08FFA18B962 +S31508007B001020FFF7C9FF96E140F2D864C2F20004DC +S31508007B100023637001252570FF22E270102222716E +S31508007B206371FFF77FFEA071FFF78AFEE071FFF72A +S31508007B3087FE000A20726572A5720823A4F84430ED +S31508007B4079E140F2D863C2F200031B78012B40F0BA +S31508007B509081C939352900F26B81DFE811F0DB0025 +S31508007B60690169016501690169015901FC00420160 +S31508007B702F016901690169016901690169016901E1 S31508007B806901690169016901690169016901690197 S31508007B906901690169016901690169016901690187 -S31508007BA069017F00540036007300690169016901A3 -S31508007BB0A1006901B900BD00CE004578FFF72AFE8D -S31508007BC00138854203DD2220FFF75EFF2BE140F2F4 -S31508007BD0D865C2F20005281DA96C627800F0F0FE8F -S31508007BE0FF23EB706278AB6C1344AB6463780133A4 -S31508007BF0A5F8443017E14578FFF70CFE01388542B1 -S31508007C0003DD2220FFF740FF0DE1616840F2D865E9 -S31508007C10C2F20005A964281D627800F0D1FEFF2390 -S31508007C20EB706278AB6C1344AB6463780133A5F8E8 -S31508007C304430F8E040F2D863C2F20003FF22DA705B -S31508007C4042689A640122A3F84420ECE040F2D86323 -S31508007C50C2F20003FF22DA709B6C406840B11844F8 -S31508007C60002213F8011B0A44D2B28342F9D100E07C -S31508007C70002240F2D863C2F20003C3F807200122AB -S31508007C801A7100225A719A710822A3F84420CAE090 -S31508007C9040F2D863C2F20003FF22DA7049F6344292 -S31508007CA0C0F600029A6400221A715A719A71072165 -S31508007CB0D9711A725A729A720822A3F84420B2E04D -S31508007CC00020FFF7E1FEAEE040F2D863C2F20003FF -S31508007CD0FF22DA7000221A71597859719A71DA718D -S31508007CE01A720622A3F844209DE040F2D863C2F235 -S31508007CF0000300221A705A70FF22DA700122A3F8D4 -S31508007D00442090E040F2D863C2F200039D6CFFF76E -S31508007D1081FD411E2846621C01F05AFB18B9312024 -S31508007D20FFF7B2FE7FE040F2D864C2F20004FF23F8 -S31508007D30E370A56CFFF76EFD013D2844A06401239E -S31508007D40A4F844306FE04578FFF764FD02388542B1 -S31508007D5003DD2220FFF798FE65E040F2D863C2F201 -S31508007D600003FF22DA700122A3F84420617839B9AA -S31508007D7001F03EFB002856D13120FFF785FE52E080 -S31508007D8040F2D863C2F20003986CA21C01F020FBF3 -S31508007D9018B93120FFF778FE45E040F2D863C2F201 -S31508007DA0000361789A6C0A449A643CE040F2D8640D -S31508007DB0C2F20004FF23E370002525716571FFF701 -S31508007DC029FDA071E571257265720723A4F8443070 -S31508007DD029E040F2D863C2F20003986C616801F0AA -S31508007DE0FBFA18B93120FFF74FFE1CE040F2D863C2 -S31508007DF0C2F20003FF22DA700122A3F8442012E03F -S31508007E0000F0C2FD40F2D863C2F20003FF22DA7026 -S31508007E100122A3F8442006E03120FFF735FE02E0F0 -S31508007E202020FFF731FE40F2D863C2F2000393F830 -S31508007E304330012B02D11020FFF726FE40F2D8630B -S31508007E40C2F20003B3F844100BB2002B09DD40F26E -S31508007E50D860C2F20000012380F843300330FFF7F0 -S31508007E60A9FC38BD08B5FFF7F1FC012820D000F0C1 -S31508007E70CDF8E8B140F22473C2F200031B78012B57 -S31508007E8016D101F0EDFA40F22873C2F200031B681E -S31508007E9003F51C53103398420AD340F22473C2F2F6 -S31508007EA0000300221A7000F0BBF808B900F06CFD58 -S31508007EB008BD00BF08B540F22473C2F200030122D0 -S31508007EC01A7001F0CDFA40F22873C2F20003186066 -S31508007ED0FFF7C8FF08BD00BF704700BF704700BF67 -S31508007EE000F00F03092802D903F13700704703F1A0 -S31508007EF0300040F2E803C2F200031B6803445B78D3 -S31508007F0003F00303022B08BF2038C0B2704700BF36 -S31508007F1038B505460C460009FFF7E2FF207005F064 -S31508007F200F00FFF7DDFF60700023A370204638BD01 -S31508007F3030B4024603464CF6CD40CCF6CC4001316F -S31508007F40A0FB0343DB08FAD1002301F801394CF6FC -S31508007F50CD45CCF6CC450846A5FB0243DB0803EB2A -S31508007F608304A2EB4402303201F801291A46002B99 -S31508007F70F1D130BC704700BFF0B440F2E803C2F25A -S31508007F8000031F6800231C46C15C7A18527802F069 -S31508007F900302022A08BF2039C9B2A1F13002D2B2BF -S31508007FA0A1F13A05EDB2162A94BF00260126062D40 -S31508007FB08CBF354646F0010565B9092A84BFA1F18B -S31508007FC03702D2B22401E4B22244D4B20133022BDE -S31508007FD0DAD101E0002000E02046F0BC704700BF7F -S31508007FE008B540F26C73C2F200030020187040F224 -S31508007FF07871C2F20001FDF7B1FB30B149F63C4099 -S31508008000C0F600007C2100F065FB08BD40F26C73E9 -S31508008010C2F200031878D0F1010038BF002070477B -S3150800802008B5FFF713FC01280FD040F26C73C2F2B3 -S3150800803000031B785BB9F8F7B9F8012809D140F2B3 -S315080080406C73C2F20003187008BD002008BD00203A -S3150800805008BD002008BD00BF027840F2E803C2F25E -S3150800806000031B689918497801F00301022908BF23 -S31508008070203A532A0ED1407803445B7813F0040F54 -S315080080800AD031280AD032280AD0332814BF032050 -S31508008090022070470320704703207047002070476E -S315080080A00120704770B504460230FFF765FF0646A3 -S315080080B0054604342046FFF75FFF3044C6B2013D4B -S315080080C0ADB20234012DF5D82046FFF755FFF64329 -S315080080D0F6B2864214BF0020012070BD2DE9F0419A -S315080080E015460F460446002918BF002807D149F649 -S315080080F03C40C0F6000040F2362100F0EBFA20467C -S31508008100FFF7AAFF0646032808BF002000F0A28052 -S315080081102046FFF7C7FF002800F08C80012E29D0E3 -S3150800812016B1022E53D088E0A01CFFF725FF804623 -S31508008130201DFFF721FF06023E60A01DFFF71CFF6A -S315080081403044386004F10806A8F103081FFA88F8D5 -S315080081504046002D7ED00FFA88F7002F6FDD0024E9 -S315080081603046FFF709FF285502360134A4B2BC424F -S31508008170F6DB66E0A01CFFF7FFFE8046201DFFF732 -S31508008180FBFE06043E60A01DFFF7F6FE06EB002682 -S315080081903E6004F10800FFF7EFFE3044386004F152 -S315080081A00A06A8F104081FFA88F84046002D51D09F -S315080081B00FFA88F7002F46DD00243046FFF7DCFE6D -S315080081C0285502360134A4B2BC42F6DB3DE0A01CB9 -S315080081D0FFF7D2FE8046201DFFF7CEFE06063E605C -S315080081E0A01DFFF7C9FE06EB00463E6004F1080035 -S315080081F0FFF7C2FE06EB00263E6004F10A00FFF711 -S31508008200BBFE3044386004F10C06A8F105081FFAD5 -S3150800821088F84046F5B10FFA88F7002F17DD0024D5 -S315080082203046FFF7A9FE285502360134A4B2BC42EF -S31508008230F6DB0EE04FF6FF700CE000200AE0404641 -S3150800824008E0404606E0404604E0404602E0404674 -S3150800825000E0404600B2BDE8F08100BF70B540F2CC -S315080082606C73C2F200031B78002B00F02F82012BDF -S315080082703FD1F7F7C3FF49F65440C0F60000F8F7B8 -S3150800828007F849F67840C0F60000F8F701F8F7F75E -S31508008290AFFF0146BC480122FDF776FA48B149F618 -S315080082A0A040C0F60000F7F7F3FF0120F7F7E0FF5C -S315080082B070BD49F6A840C0F60000F7F7E9FF49F691 -S315080082C0B040C0F60000F7F7E3FF49F6D440C0F621 -S315080082D00000F7F7DDFF40F27073C2F200030022D8 -S315080082E01A605A6040F26C73C2F2000302221A70D6 -S315080082F070BD022B40F0FA8040F27874C2F2000496 -S3150800830040F6D030C2F200004FF4807104F50D72C9 -S31508008310FDF760FE94F93A32002B13DA49F6A040CD -S31508008320C0F60000F7F7B4FF0220F7F7A1FF04F53F -S315080083300D70FDF7F5FC40F26C73C2F200030022E3 -S315080083401A7070BD00284CD040F6D031C2F2000138 -S31508008350084601F5C0710022FFF7C0FEB0F1FF3FE5 -S3150800836012D149F6A040C0F60000F7F791FF0320A6 -S31508008370F7F77EFF8448FDF7D3FC40F26C73C2F230 -S31508008380000300221A7070BD00282ADD40F27073BF -S31508008390C2F200035B6863B940F27073C2F200036D -S315080083A040F6D032C2F20002D2F880211A60586034 -S315080083B017E040F6D032C2F20002D2F8801140F23D -S315080083C07072C2F20002126891423EBF40F27072A9 -S315080083D0C2F20002116040F27072C2F20002034457 -S315080083E0536040F27873C2F20003D3F83C22D3F804 -S315080083F040329A4240F06A8163480021FDF79AFCB0 -S3150800840090B149F6A040C0F60000F7F741FF0420F6 -S31508008410F7F72EFF5C48FDF783FC40F26C73C2F257 -S31508008420000300221A7070BD49F6A840C0F6000085 -S31508008430F7F72EFF49F60450C0F60000F7F728FFB5 -S3150800844040F27075C2F2000540F22C74C2F20004C4 -S3150800845068682146FFF76CFD2046F7F719FF49F6CD -S315080084601050C0F60000F7F713FF2E68300E2146AD -S31508008470FFF74EFDC6F30740A11CFFF749FDC6F3FB -S315080084800720211DFFF744FDF0B2A11DFFF740FDAF -S315080084902046F7F7FDFE49F6B450C0F60000F7F798 -S315080084A0F7FE2868696800F097FF90B949F6A0407A -S315080084B0C0F60000F7F7ECFE0520F7F7D9FE3248BC -S315080084C0FDF72EFC40F26C73C2F2000300221A700C -S315080084D070BD49F6A840C0F60000F7F7D9FE40F28D -S315080084E06C73C2F2000303221A7070BD032B40F0AE -S315080084F0ED8040F27874C2F2000440F6D030C2F241 -S3150800850000004FF4807104F50D72FDF763FD94F9D0 -S315080085103A32002B13DA49F62C50C0F60000F7F76A -S31508008520B7FE0220F7F7A4FE04F50D70FDF7F8FB79 -S3150800853040F26C73C2F2000300221A7070BD002864 -S315080085407FD040F6D032C2F20002104602F5C07162 -S3150800855002F58072FFF7C2FD0646B0F1FF3F15D15E -S3150800856049F65050C0F60000F7F792FE0320F7F7D9 -S315080085707FFE0548FDF7D4FB40F26C73C2F2000398 -S3150800858000221A7070BD00BFAC090020002858DD13 -S3150800859049F67450C0F60000F7F77AFE40F22C74DC -S315080085A0C2F2000430462146FFF7C2FC2046F7F720 -S315080085B06FFE49F68450C0F60000F7F769FE40F6EC -S315080085C0D035C2F2000595F883012146FFF7A0FCD5 -S315080085D095F88201A11CFFF79BFC95F88101211DE6 -S315080085E0FFF796FC95F88001A11DFFF791FC204640 -S315080085F0F7F74EFE49F6B450C0F60000F7F748FE06 -S31508008600D5F88001314605F5807200F0E1FE90B993 -S3150800861049F6A040C0F60000F7F73AFE0620F7F73D -S3150800862027FE2B48FDF77CFB40F26C73C2F2000371 -S3150800863000221A7070BD49F6A840C0F60000F7F788 -S3150800864027FE40F27873C2F20003D3F83C22D3F82F -S3150800865040329A423AD149F69C50C0F60000F7F7E4 -S3150800866017FE00F0C5FE90B949F6A040C0F6000016 -S31508008670F7F70EFE0720F7F7FBFD1548FDF750FB49 -S3150800868040F26C73C2F2000300221A7070BD49F6FC -S31508008690A840C0F60000F7F7FBFD49F6B850C0F64B -S315080086A00000F7F7F5FD0A48FDF73AFB49F6D05002 -S315080086B0C0F60000F7F7ECFD40F26C73C2F2000357 -S315080086C000221A70F7F7B2FD00F05EF970BD00BF20 -S315080086D0AC09002008B540F65453C2F200031860EE -S315080086E040F65853C2F200031960FFF7F7FBFCE7A0 -S315080086F02DE9F047002349F62060C0F600004FF444 -S31508008700FA744AF2104113F80080C21892F801C0B0 -S3150800871008EB0C0202FB044291FBF2F902FB191664 -S3150800872036B94D4609F1FF3292B2B2F5806F03D3DE -S315080087300233242BE7D187E04746E2464FF4D0437D -S31508008740C4F2000300225A611A6842F400421A6011 -S315080087501B6813F4004F09D04FF4D044C4F2000448 -S31508008760FFF7BCFB236813F4004FF9D14FF4D0434D -S31508008770C4F200031A6822F002021A601A6842F06C -S3150800878001021A605B6813F0010F09D14FF4D04457 -S31508008790C4F20004FFF7A2FB636813F0010FF9D0D7 -S315080087A0013F0AF1FF36360546EA0747013D3D43D4 -S315080087B04FF4D043C4F20003DD611A6822F00102C7 -S315080087C01A605B6813F0010F09D04FF4D044C4F265 -S315080087D00004FFF783FB636813F0010FF9D14FF428 -S315080087E0C843C4F20003D3F8002242F00102C3F8DA -S315080087F00022D3F81C2222F48042C3F81C22D3F8A4 -S315080088000C2242F48042C3F80C220022C3F8B0229C -S31508008810C3F8B422D3F8042222F48042C3F804220F -S31508008820D3F8142222F48042C3F81422D3F81C2267 -S3150800883042F48042C3F81C22D3F8002222F0010237 -S31508008840C3F80022BDE8F08749F6FC50C0F60000E0 -S31508008850F021FFF73FFF71E738B504460D464FF4A0 -S31508008860D043C4F200039B6813F0806F07D149F622 -S31508008870FC50C0F600004FF4A271FFF72BFF4FF42F -S31508008880D043C4F20003D3F8802102F00102C3F8F2 -S315080088908021D3F8802142F07C4242F40012C3F8CA -S315080088A08021C3F88451E178A278120442EA016271 -S315080088B021780A43617842EA0122C3F88821E179DE -S315080088C0A279120442EA016221790A43617942EAED -S315080088D00122C3F88C21D3F8802142F00102C3F8A3 -S315080088E080219B6813F0806F09D14FF4D044C4F2FD -S315080088F00004FFF7F3FAA36813F0806FF9D038BDC8 -S315080089004FF4D043C4F20003DB6813F0030F39D0E9 -S315080089104FF4D043C4F20003D3F8B02140F26763A2 -S31508008920B3EB525F18BF002023D14FF4D043C4F2F3 -S315080089300003D3F8B8210270D3F8B821120A42709E -S31508008940D3F8B821120C8270D3F8B821120EC2706F -S31508008950D3F8BC210271D3F8BC21120A4271D3F8AC -S31508008960BC21120C8271D3F8BC311B0EC3710120D5 -S31508008970FFE74FF4D043C4F20003DA6842F020025E -S31508008980DA6070470020704708B500F029FDA8B1E5 -S31508008990F7F700FC90B1FEF709FF00F047FD00F07D -S315080089A023FD20F0604020F07F024EF60853CEF2F9 -S315080089B000031A6000F018FD4368984708BD00BF19 -S315080089C070B5561EB6B24AB14C1E0E44451A14F876 -S315080089D0013F2B55FFF782FAB442F8D170BD00BFAC -S315080089E0F8B507460024254649F67466C0F600061B -S315080089F0FFF774FAA359BB420ED8311949680B44DC -S31508008A009F4209D249F67463C0F6000305EB450296 -S31508008A1003EB8203187AF8BD01350C346C2CE7D1C8 -S31508008A20FF20F8BD2DE9F84380460068FFF7D8FF18 -S31508008A30FF2830D0FBF708F8F320FBF725F8FBF7FB -S31508008A4029F801281CBF002408F1040904D1FBF702 -S31508008A5011F80020BDE8F883D8F80060A71959F87E -S31508008A600450FFF73BFA38462946FBF791F80828E1 -S31508008A7007D1A359AB4206D10434B4F5007FEBD134 -S31508008A8003E0002402E0002400E00124FAF7F2FFE4 -S31508008A902046BDE8F8830020BDE8F88338B50446CB -S31508008AA00D4640F65C53C2F20003984209D04FF4D3 -S31508008AB04043C0F6000399420BD0FFF7B3FF20B935 -S31508008AC017E040F66074C2F20004C5F3080393B9D0 -S31508008AD003E040F65C54C2F2000423689D420CD0C1 -S31508008AE0204640F8045B29464FF40072FFF768FFFA -S31508008AF003E0002038BD002038BD204638BD00BF41 -S31508008B002DE9F04106460C4617461D464FEA512800 -S31508008B104FEA48280368B3F1FF3F06D140F8048BB3 -S31508008B2041464FF40072FFF74BFF3368434505D0C3 -S31508008B3030464146FFF7B2FF0646D0B13368E41A1D -S31508008B403444043408F50078FFF7C8F9331DE31AEE -S31508008B50B3F5007F06D330464146FFF79FFF06462A -S31508008B6050B1041D17F8013B04F8013B013DEBD158 -S31508008B7005E00020BDE8F0810020BDE8F081012075 -S31508008B80BDE8F08140F66073C2F200034FF0FF3291 -S31508008B901A6040F65C53C2F200031A60704700BFC1 -S31508008BA070B504460D461646FFF71AFFFF281BD078 -S31508008BB0681E2044FFF714FFFF2817D0620A4FF4F7 -S31508008BC04043C0F60003B3EB422F07BF40F65C50A4 -S31508008BD0C2F2000040F66070C2F20000214632463A -S31508008BE02B46FFF78DFF70BD002070BD002070BDBD -S31508008BF0F8B505460E46FFF7F3FE0446701E2844F0 -S31508008C00FFF7EEFE0546FF2C18BFFF2833D0844237 -S31508008C102BD8022C2BD90B282BD8FAF715FFF320C3 -S31508008C20FAF732FFFAF736FF01281EBF49F64466FF -S31508008C30C0F60006022703D1FAF71CFF0020F8BD8C -S31508008C40FFF74CF936F814003946FAF769FF082891 -S31508008C5003D0FAF70FFF0020F8BD0134E4B2A542AD -S31508008C60EED2FAF707FF0120F8BD0020F8BD002074 -S31508008C70F8BD0020F8BD0020F8BD00BF00B583B0E0 -S31508008C8040F65C53C2F200031B68B3F1FF3F08BF0E -S31508008C9001201CD040F65C53C2F2000399685A685A -S31508008CA01144DA6811441A6911445A6911449A69D7 -S31508008CB00A44D96953185B4202AA42F8043D4CF2A9 -S31508008CC08810C0F600000421FFF76AFFFFE703B02B -S31508008CD05DF804FB4CF20402C0F600024FF4404370 -S31508008CE0C0F6000310681B6818444CF20803C0F667 -S31508008CF000031B6818444CF20C03C0F600031B68FB -S31508008D0018444CF21003C0F600031B6818444CF2D2 -S31508008D101403C0F600031B6818444CF21803C0F687 -S31508008D2000031B6818444CF28813C0F600031B683E -S31508008D301844D0F1010038BF0020704708B540F646 -S31508008D405C53C2F200031B68B3F1FF3F06D040F63E -S31508008D505C50C2F20000FFF765FE88B140F660730A -S31508008D60C2F200031B68B3F1FF3F0BD040F66070F8 -S31508008D70C2F20000FFF756FE003018BF012008BDFA -S31508008D80002008BD012008BD4FF44040C0F6000091 -S31508008D90704700BF38B504464FF4A050C4F201002E -S31508008DA08021FBF77DF990B14FF4A050C4F2010081 -S31508008DB02146FBF76DF94FF4A054C4F2010480254F -S31508008DC020462946FBF76CF90028F9D001E0002077 -S31508008DD038BD012038BD00BF10B504464FF4A05079 -S31508008DE0C4F201002021FBF75BF9012808D14FF4F2 -S31508008DF0A050C4F20100FBF74FF92070012010BD06 -S31508008E00002010BD10B584B04FF4614300930023D1 -S31508008E10ADF80430ADF80630ADF80830ADF80C30D2 -S31508008E200C23ADF80A304FF4A054C4F201042046CE -S31508008E306946FBF7AFF820460121FBF71BF904B09A -S31508008E4010BD00BF2DE9F04106460C46402906D95B -S31508008E5049F6E060C0F600007B21FFF73BFC2046A0 -S31508008E60FFF798FF012806D049F6E060C0F6000033 -S31508008E707F21FFF72FFC2546ACB1002449F6E067B1 -S31508008E80C0F600074FF08808FFF728F8305DFFF7AF -S31508008E9081FF012803D038464146FFF71BFC013401 -S31508008EA0A3B2AB42F0D3BDE8F08100BF10B50446CB -S31508008EB041F2A913C2F200031B7813BB41F26410F6 -S31508008EC0C2F20000FFF788FF012851D141F264136E -S31508008ED0C2F200031B78002B4CD000F0C1FA41F215 -S31508008EE0AC13C2F20003186041F2A813C2F20003E1 -S31508008EF00020187041F2A913C2F2000301221A7069 -S31508008F0010BD41F2A813C2F2000318781C4B18448E -S31508008F10FFF762FF01281AD141F2A813C2F2000333 -S31508008F201A780132D2B21A7041F26413C2F20003FF -S31508008F301B78934220D120461149FFF741FD41F2A3 -S31508008F40A913C2F2000300221A70012010BD00F016 -S31508008F5087FA41F2AC13C2F200031B6864339842E5 -S31508008F600CD941F2A913C2F200030020187010BDF3 -S31508008F70002010BD002010BD002010BD002010BD2F -S31508008F806511002038B504460D46012807D949F66B -S31508008F900470C0F6000040F29F11FFF79BFB41F2F8 -S31508008FA0F413C2F2000304EB440203EBC2035A7C37 -S31508008FB01B7C9A4220D041F2F413C2F2000304EB60 -S31508008FC0440203EBC203DA681570597C01315974FF -S31508008FD0DA680132DA605B689A420FD941F2F41313 -S31508008FE0C2F200036200111953F83110144403EB5E -S31508008FF0C403D960012038BD002038BD012038BD22 -S3150800900038B504460D46012807D949F60470C0F656 -S31508009010000040F2C111FFF75DFB41F2F413C2F202 -S31508009020000304EB440203EBC2035B7CFBB141F291 -S31508009030F413C2F2000303EBC2039A6812782A708B -S31508009040597C013959749A6801329A605B689A4268 -S315080090500FD941F2F413C2F200036200111953F852 -S315080090603110144403EBC4039960012038BD002075 -S3150800907038BD012038BD00BF10B582B041F2F413E7 -S31508009080C2F200030020987403F118025A61012104 -S3150800909083F82A10D86241F2F011C2F200010A6080 -S315080090A04021197441F2AC21C2F200014C1C9C60AB -S315080090B0DC6058741C6001F140045C600870002A8A -S315080090C03DD041F2F011C2F20001D86A0860402191 -S315080090D083F8281041F22421C2F20001481C1862C4 -S315080090E05862002483F82940986101F140035360CF -S315080090F0927C0A7041F2AC23C2F200031B78FF2B64 -S3150800910001D0FF2A06D149F60470C0F600007E2178 -S31508009110FFF7E0FA40F28003C2F20003009341F23F -S31508009120F020C2F20000012140F24C02C2F2000215 -S3150800913040F22003C2F20003F7F7D2FB06E041F241 -S315080091402423C2F20003FF221A70DCE702B010BD26 -S3150800915008B541F2F020C2F20000F8F751FC0020F1 -S31508009160F7F712F808BD00BF2DE9F84307460C4685 -S315080091703F2906D949F60470C0F600009F21FFF77B -S31508009180A9FA41F2AC23C2F2000318782146FFF788 -S31508009190F9FE012806D049F60470C0F60000A3219E -S315080091A0FFF798FA2646D4B1002441F2AC25C2F25C -S315080091B0000549F60478C0F600084FF0AC09FEF73A -S315080091C08DFE2878395DFFF7DDFE012803D040467D -S315080091D04946FFF77FFA0134A3B2B342EFD3BDE89D -S315080091E0F88300BF10B5044641F2F020C2F2000031 -S315080091F0F8F710FC41F2A823C2F200031B7803BB60 -S3150800920041F22423C2F20003187841F26821C2F21F -S315080092100001FFF7F5FE01283ED141F26823C2F2AC -S3150800922000031B78002B39D041F2A823C2F20003B1 -S3150800923001221A7041F2A923C2F200030020187015 -S3150800924010BD41F22423C2F2000341F2A922C2F260 -S31508009250000211781878144B1944FFF7D1FE01283B -S315080092601ED141F2A923C2F200031A780132D2B202 -S315080092701A7041F26823C2F200031B78934211D197 -S3150800928020460949FFF79CFB41F2A823C2F20003D6 -S3150800929000221A70012010BD002010BD002010BD4C -S315080092A0002010BD002010BD691200202DE9F043F2 -S315080092B083B041F2AC23C2F200031C78012C07D913 -S315080092C049F60470C0F6000040F2E111FFF702FA11 -S315080092D041F2F413C2F2000304EB440403EBC403A3 -S315080092E05B7CBBB3402B34BF99464FF04009B9F1BC -S315080092F0000F23D041F2B012C2F20002541E09F147 -S31508009300FF3652FA86F641F2AC25C2F2000549F656 -S315080093100477C0F6000740F2291828780DF10701EE -S31508009320FFF76EFE012803D038464146FFF7D2F90B -S315080093309DF8072004F8012FB442EED141F2F0203F -S31508009340C2F20000812141F2B012C2F200024B467D -S31508009350F8F7F4FA03B0BDE8F08300BF2DE9F84347 -S3150800936041F2F023C2F2000300EB800003EBC003D6 -S31508009370B3F88C73DFB1002441F22426C2F200064A -S3150800938049F60478C0F600084FF4A4793578F7F75B -S3150800939093F8015D2846FFF7F5FD012803D04046FE -S315080093A04946FFF797F90134A3B29F42EED8F7F77B -S315080093B083F8024641F2F020C2F200000121402360 -S315080093C0F8F7A0FABDE8F88308B5FFF7DBFB08BD98 -S315080093D008B5FFF7E5FB08BD08B5FFF709FC08BDAA -S315080093E008B5FFF777FC08BD08B5FFF7CDFC08BD43 -S315080093F008B5FFF743FC10B1FFF7A0FC08BD002035 -S3150800940008BD00BF4EF21003CEF2000300221A6018 -S3150800941049F23F01C0F2020159609A6005211960BC -S3150800942041F6E403C2F200031A6070474EF21003D5 -S31508009430CEF2000300221A60704700BF4EF21003F6 -S31508009440CEF200031B6813F4803F1FBF41F6E40306 -S31508009450C2F200031A68013218BF1A60704700BFCB -S3150800946008B5FFF7EBFF41F6E403C2F200031868FC -S3150800947008BD00BF08B549F62870C0F600003621B9 -S31508009480FFF728F908BD00BF10B572B640F2000212 -S31508009490C2F2000240F2EC03C2F200039A4210D272 -S315080094A0131D0E4CE41A24F003040434002310465A -S315080094B04AF25801C0F600015A581A500433A3421A -S315080094C0FAD1074807494FF000028842B8BF40F86A -S315080094D0042BFADBF6F70CFF10BD00BFEF000020E7 -S315080094E000010020642E00200F2AF0B445D940EA76 -S315080094F001039B0745D1A2F110070C4603463F0915 -S3150800950000EB0716103625681033103443F8105C44 -S3150800951054F80C5C43F80C5C54F8085C43F8085C97 -S3150800952054F8045C43F8045CB342ECD17B1C02F0AB -S315080095300F0CBCF1030F4FEA03131944034422D955 -S315080095400E461D46644656F8047B043C032C45F833 -S31508009550047BF8D8ACF1040402F0030224F00304F7 -S3150800956004342344214432B10A4411F8014B914290 -S3150800957003F8014BF9D1F0BC70470346002AF3D132 -S31508009580F9E70346F0E76246002AEDD1F3E700BFA4 -S315080095908307F0B448D0541E002A43D0CDB2034600 -S315080095A002E0002C3ED0144603F8015B13F0030FCB -S315080095B004F1FF32F5D1032C2DD9CDB20F2C45EA93 -S315080095C0052545EA054518D9A4F1100703F1100643 -S315080095D01A463F0906EB07161560103242F80C5C6E -S315080095E042F8085C42F8045CB242F5D104F00F0474 -S315080095F00137032C03EB07130DD91E462246043AFE -S3150800960046F8045B032AFAD8221F04F0030422F062 -S315080096100302043213442CB1C9B21C4403F8011BDB -S31508009620A342FBD1F0BC704714460346C3E700BF0C -S315080096302F64656D6F70726F675F6F6C696D6578A3 -S315080096405F73746D3332653430372E737265630019 -S315080096502F626F6F746C6F672E7478740000000049 -S3150800966057696E5553422042756C6B20446576697E -S31508009670636500004F70656E424C542055736572E1 -S315080096800000000030303030303030303035304374 -S315080096900000000044656661756C740057696E5574 -S315080096A053422042756C6B20496E7465726661631D -S315080096B0650000002E2F6C69622F7569702F6E6524 -S315080096C0746465762E630000222A3A3C3E3F7C7F0E -S315080096D0000000002B2C3B3D5B5D0000809A90410A -S315080096E08E418F804545454949498E8F9092924FC4 -S315080096F0994F555559999A9B9C9D9E9F41494F55FF -S31508009700A5A5A6A7A8A9AAABAC21AEAFB0B1B2B31E -S31508009710B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C383 -S31508009720C4C5C6C7C8C9CACBCCCDCECFD0D1D2D373 -S31508009730D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E363 -S31508009740E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F353 -S31508009750F4F5F6F7F8F9FAFBFCFDFEFF0103050739 -S31508009760090E10121416181C1E0000006100620073 -S3150800977063006400650066006700680069006A00A7 -S315080097806B006C006D006E006F0070007100720057 -S3150800979073007400750076007700780079007A0007 -S315080097A0A100A200A300A500AC00AF00E000E10004 -S315080097B0E200E300E400E500E600E700E800E9006F -S315080097C0EA00EB00EC00ED00EE00EF00F000F1001F -S315080097D0F200F300F400F500F600F800F900FA00CC -S315080097E0FB00FC00FD00FE00FF000101030105016E -S315080097F0070109010B010D010F01110113011501E3 -S31508009800170119011B011D011F0121012301250152 -S31508009810270129012B012D012F01310133013501C2 -S3150800982037013A013C013E0140014201440146012B -S3150800983048014B014D014F01510153015501570193 -S3150800984059015B015D015F01610163016501670102 -S3150800985069016B016D016F01710173017501770172 -S315080098607A017C017E019201B103B203B303B4030A -S31508009870B503B603B703B803B903BA03BB03BC03FE -S31508009880BD03BE03BF03C003C103C303C403C503AB -S31508009890C603C703C803C903CA0330043104320424 -S315080098A033043404350436043704380439043A04D6 -S315080098B03B043C043D043E043F0440044104420486 -S315080098C043044404450446044704480449044A0436 -S315080098D04B044C044D044E044F04510452045304E3 -S315080098E05404550456045704580459045A045B048E -S315080098F05C045E045F047021712172217321742156 -S31508009900752176217721782179217A217B217C217D -S315080099107D217E217F2141FF42FF43FF44FF45FF12 -S3150800992046FF47FF48FF49FF4AFF4BFF4CFF4DFFE5 -S315080099304EFF4FFF50FF51FF52FF53FF54FF55FF95 -S3150800994056FF57FF58FF59FF5AFF0000C700FC0093 -S31508009950E900E200E400E000E500E700EA00EB00C9 -S31508009960E800EF00EE00EC00C400C500C900E60000 -S31508009970C600F400F600F200FB00F900FF00D6006E -S31508009980DC00A200A300A500A7209201E100ED00DB -S31508009990F300FA00F100D100AA00BA00BF001023B4 -S315080099A0AC00BD00BC00A100AB00BB009125922510 -S315080099B093250225242561256225562555256325E7 -S315080099C0512557255D255C255B251025142534254D -S315080099D02C251C2500253C255E255F255A25542562 -S315080099E069256625602550256C2567256825642523 -S315080099F0652559255825522553256B256A25182589 -S31508009A000C25882584258C2590258025B103DF0023 -S31508009A109303C003A303C303B500C403A6039803B3 -S31508009A20A903B4031E22C603B50329226122B10085 -S31508009A306522642220232123F7004822B000192238 -S31508009A40B7001A227F20B200A025A00041004200DC -S31508009A5043004400450046004700480049004A00C4 -S31508009A604B004C004D004E004F0050005100520074 -S31508009A7053005400550056005700580059005A0024 -S31508009A802100E0FFE1FFE5FFE2FFE3FFC000C100C0 -S31508009A90C200C300C400C500C600C700C800C9008C -S31508009AA0CA00CB00CC00CD00CE00CF00D000D1003C -S31508009AB0D200D300D400D500D600D800D900DA00E9 -S31508009AC0DB00DC00DD00DE00780100010201040194 -S31508009AD0060108010A010C010E0110011201140108 -S31508009AE0160118011A011C011E0120012201240178 -S31508009AF0260128012A012C012E01300132013401E8 -S31508009B00360139013B013D013F0141014301450150 -S31508009B1047014A014C014E015001520154015601B8 -S31508009B2058015A015C015E01600162016401660127 -S31508009B3068016A016C016E01700172017401760197 -S31508009B4079017B017D0191019103920393039403AB -S31508009B50950396039703980399039A039B039C031B -S31508009B609D039E039F03A003A103A303A403A503C8 -S31508009B70A603A703A803A903AA0310041104120441 -S31508009B8013041404150416041704180419041A04F3 -S31508009B901B041C041D041E041F04200421042204A3 -S31508009BA023042404250426042704280429042A0453 -S31508009BB02B042C042D042E042F0401040204030490 -S31508009BC00404050406040704080409040A040B042B -S31508009BD00C040E040F0460216121622163216421B3 -S31508009BE0652166216721682169216A216B216C211B -S31508009BF06D216E216F2121FF22FF23FF24FF25FF00 -S31508009C0026FF27FF28FF29FF2AFF2BFF2CFF2DFF02 -S31508009C102EFF2FFF30FF31FF32FF33FF34FF35FFB2 -S31508009C2036FF37FF38FF39FF3AFF0000FFFFFFFF17 -S31508009C30FFFF00004F70656E424C54002E2E2F2EEB -S31508009C402E2F2E2E2F536F757263652F66696C65DE -S31508009C502E6300004669726D7761726520757064BF -S31508009C6061746520726571756573742064657465C1 -S31508009C70637465640A0D00004F70656E696E67202F -S31508009C806669726D776172652066696C6520666FB4 -S31508009C90722072656164696E672E2E2E00000000C0 -S31508009CA04552524F520A0D004F4B0A0D0000000054 -S31508009CB05374617274696E67207468652070726F78 -S31508009CC06772616D6D696E672073657175656E6320 -S31508009CD0650A0D0050617273696E67206669726D58 -S31508009CE0776172652066696C6520746F206F62748F -S31508009CF061696E2065726173652073697A652E2EB7 -S31508009D002E00000045726173696E6720000000002E -S31508009D102062797465732066726F6D206D656D6F4C -S31508009D207279206174203078000000005265616401 -S31508009D30696E67206C696E652066726F6D2066694C -S31508009D406C652E2E2E4552524F520A0D0000000009 -S31508009D50496E76616C696420636865636B73756DBB -S31508009D6020666F756E642E2E2E4552524F520A0D7E -S31508009D700000000050726F6772616D6D696E672032 -S31508009D800000000020627974657320746F206D6589 -S31508009D906D6F72792061742030780000577269748B -S31508009DA0696E672070726F6772616D20636865639C -S31508009DB06B73756D2E2E2E00436C6F73696E67205C -S31508009DC06669726D776172652066696C650A0D0051 -S31508009DD04669726D77617265207570646174652075 -S31508009DE07375636365737366756C6C7920636F6DE1 -S31508009DF0706C657465640A0D000000002E2E2F2E07 -S31508009E002E2F2E2E2F536F757263652F41524D4399 -S31508009E104D345F53544D33322F63616E2E63000009 -S31508009E2005020602060307030803090309040A04D0 -S31508009E300B040C040C050D050E050F050F06100680 -S31508009E40100710080000080010001800200028005D -S31508009E503000380040004800500058008000880054 -S31508009E6090009800A000A800B000B800C000C80084 -S31508009E70D000D80000C00008004000000300000021 -S31508009E8000000108000001000400000000000208AC -S31508009E90000002000500000000000408000002009F -S31508009EA00600000000000608000002000700000087 -S31508009EB000000808000002000800000000000A0868 -S31508009EC0000002000900000000000C080000020063 -S31508009ED00A00000000000E08000002000B00000047 -S31508009EE02E2E2F2E2E2F2E2E2F536F757263652F23 -S31508009EF041524D434D345F53544D33322F75617281 -S31508009F00742E63002E2E2F2E2E2F2E2E2F536F7566 -S31508009F107263652F41524D434D345F53544D33326E -S31508009F202F7573622E6300002E2E2F2E2E2F2E2EA7 -S31508009F302F536F757263652F41524D434D345F53EE -S31508009F40544D33322F4743432F766563746F7273CC -S31508009F502E630000002020202020202020202828F2 -S31508009F6028282820202020202020202020202020CB -S31508009F70202020202088101010101010101010100B -S31508009F80101010101004040404040404040404103B -S31508009F9010101010101041414141414101010101C9 -S31508009FA00101010101010101010101010101010193 -S31508009FB0101010101010424242424242020202029F -S31508009FC00202020202020202020202020202020263 -S31508009FD01010101020000000000000000000000013 -S31508009FE00000000000000000000000000000000063 +S31508007BA06901690169016901690169016901690177 +S31508007BB069017F0054003600730069016901690193 +S31508007BC0A1006901B900BD00CE004578FFF72AFE7D +S31508007BD00138854203DD2220FFF75EFF2BE140F2E4 +S31508007BE0D865C2F20005281DA96C627800F0F0FE7F +S31508007BF0FF23EB706278AB6C1344AB646378013394 +S31508007C00A5F8443017E14578FFF70CFE01388542A0 +S31508007C1003DD2220FFF740FF0DE1616840F2D865D9 +S31508007C20C2F20005A964281D627800F0D1FEFF2380 +S31508007C30EB706278AB6C1344AB6463780133A5F8D8 +S31508007C404430F8E040F2D863C2F20003FF22DA704B +S31508007C5042689A640122A3F84420ECE040F2D86313 +S31508007C60C2F20003FF22DA709B6C406840B11844E8 +S31508007C70002213F8011B0A44D2B28342F9D100E06C +S31508007C80002240F2D863C2F20003C3F8072001229B +S31508007C901A7100225A719A710822A3F84420CAE080 +S31508007CA040F2D863C2F20003FF22DA7049F6444272 +S31508007CB0C0F600029A6400221A715A719A71072155 +S31508007CC0D9711A725A729A720822A3F84420B2E03D +S31508007CD00020FFF7E1FEAEE040F2D863C2F20003EF +S31508007CE0FF22DA7000221A71597859719A71DA717D +S31508007CF01A720622A3F844209DE040F2D863C2F225 +S31508007D00000300221A705A70FF22DA700122A3F8C3 +S31508007D10442090E040F2D863C2F200039D6CFFF75E +S31508007D2081FD411E2846621C01F05AFB18B9312014 +S31508007D30FFF7B2FE7FE040F2D864C2F20004FF23E8 +S31508007D40E370A56CFFF76EFD013D2844A06401238E +S31508007D50A4F844306FE04578FFF764FD02388542A1 +S31508007D6003DD2220FFF798FE65E040F2D863C2F2F1 +S31508007D700003FF22DA700122A3F84420617839B99A +S31508007D8001F03EFB002856D13120FFF785FE52E070 +S31508007D9040F2D863C2F20003986CA21C01F020FBE3 +S31508007DA018B93120FFF778FE45E040F2D863C2F2F1 +S31508007DB0000361789A6C0A449A643CE040F2D864FD +S31508007DC0C2F20004FF23E370002525716571FFF7F1 +S31508007DD029FDA071E571257265720723A4F8443060 +S31508007DE029E040F2D863C2F20003986C616801F09A +S31508007DF0FBFA18B93120FFF74FFE1CE040F2D863B2 +S31508007E00C2F20003FF22DA700122A3F8442012E02E +S31508007E1000F0C2FD40F2D863C2F20003FF22DA7016 +S31508007E200122A3F8442006E03120FFF735FE02E0E0 +S31508007E302020FFF731FE40F2D863C2F2000393F820 +S31508007E404330012B02D11020FFF726FE40F2D863FB +S31508007E50C2F20003B3F844100BB2002B09DD40F25E +S31508007E60D860C2F20000012380F843300330FFF7E0 +S31508007E70A9FC38BD08B5FFF7F1FC012820D000F0B1 +S31508007E80CDF8E8B140F22473C2F200031B78012B47 +S31508007E9016D101F0EDFA40F22873C2F200031B680E +S31508007EA003F51C53103398420AD340F22473C2F2E6 +S31508007EB0000300221A7000F0BBF808B900F06CFD48 +S31508007EC008BD00BF08B540F22473C2F200030122C0 +S31508007ED01A7001F0CDFA40F22873C2F20003186056 +S31508007EE0FFF7C8FF08BD00BF704700BF704700BF57 +S31508007EF000F00F03092802D903F13700704703F190 +S31508007F00300040F2E803C2F200031B6803445B78C2 +S31508007F1003F00303022B08BF2038C0B2704700BF26 +S31508007F2038B505460C460009FFF7E2FF207005F054 +S31508007F300F00FFF7DDFF60700023A370204638BDF1 +S31508007F4030B4024603464CF6CD40CCF6CC4001315F +S31508007F50A0FB0343DB08FAD1002301F801394CF6EC +S31508007F60CD45CCF6CC450846A5FB0243DB0803EB1A +S31508007F708304A2EB4402303201F801291A46002B89 +S31508007F80F1D130BC704700BFF0B440F2E803C2F24A +S31508007F9000031F6800231C46C15C7A18527802F059 +S31508007FA00302022A08BF2039C9B2A1F13002D2B2AF +S31508007FB0A1F13A05EDB2162A94BF00260126062D30 +S31508007FC08CBF354646F0010565B9092A84BFA1F17B +S31508007FD03702D2B22401E4B22244D4B20133022BCE +S31508007FE0DAD101E0002000E02046F0BC704700BF6F +S31508007FF008B540F26C73C2F200030020187040F214 +S315080080007871C2F20001FDF7B1FB30B149F64C4078 +S31508008010C0F60000772100F065FB08BD40F26C73DE +S31508008020C2F200031878D0F1010038BF002070476B +S3150800803008B5FFF713FC01280FD040F26C73C2F2A3 +S3150800804000031B785BB9F8F7B1F8012809D140F2AB +S315080080506C73C2F20003187008BD002008BD00202A +S3150800806008BD002008BD00BF027840F2E803C2F24E +S3150800807000031B689918497801F00301022908BF13 +S31508008080203A532A0ED1407803445B7813F0040F44 +S315080080900AD031280AD032280AD0332814BF032040 +S315080080A0022070470320704703207047002070475E +S315080080B00120704770B504460230FFF765FF064693 +S315080080C0054604342046FFF75FFF3044C6B2013D3B +S315080080D0ADB20234012DF5D82046FFF755FFF64319 +S315080080E0F6B2864214BF0020012070BD2DE9F0418A +S315080080F015460F460446002918BF002807D149F639 +S315080081004C40C0F6000040F2312100F0EBFA204660 +S31508008110FFF7AAFF0646032808BF002000F0A28042 +S315080081202046FFF7C7FF002800F08C80012E29D0D3 +S3150800813016B1022E53D088E0A01CFFF725FF804613 +S31508008140201DFFF721FF06023E60A01DFFF71CFF5A +S315080081503044386004F10806A8F103081FFA88F8C5 +S315080081604046002D7ED00FFA88F7002F6FDD0024D9 +S315080081703046FFF709FF285502360134A4B2BC423F +S31508008180F6DB66E0A01CFFF7FFFE8046201DFFF722 +S31508008190FBFE06043E60A01DFFF7F6FE06EB002672 +S315080081A03E6004F10800FFF7EFFE3044386004F142 +S315080081B00A06A8F104081FFA88F84046002D51D08F +S315080081C00FFA88F7002F46DD00243046FFF7DCFE5D +S315080081D0285502360134A4B2BC42F6DB3DE0A01CA9 +S315080081E0FFF7D2FE8046201DFFF7CEFE06063E604C +S315080081F0A01DFFF7C9FE06EB00463E6004F1080025 +S31508008200FFF7C2FE06EB00263E6004F10A00FFF700 +S31508008210BBFE3044386004F10C06A8F105081FFAC5 +S3150800822088F84046F5B10FFA88F7002F17DD0024C5 +S315080082303046FFF7A9FE285502360134A4B2BC42DF +S31508008240F6DB0EE04FF6FF700CE000200AE0404631 +S3150800825008E0404606E0404604E0404602E0404664 +S3150800826000E0404600B2BDE8F08100BF70B540F2BC +S315080082706C73C2F200031B78002B00F02F82012BCF +S315080082803FD1F7F7BBFF49F66440C0F60000F8F7A0 +S3150800829007F849F68840C0F60000F8F701F8F7F73E +S315080082A0A7FF0146BC480122FDF776FA48B149F610 +S315080082B0B040C0F60000F7F7F3FF0120F7F7E0FF3C +S315080082C070BD49F6B840C0F60000F7F7E9FF49F671 +S315080082D0C040C0F60000F7F7E3FF49F6E440C0F6F1 +S315080082E00000F7F7DDFF40F27073C2F200030022C8 +S315080082F01A605A6040F26C73C2F2000302221A70C6 +S3150800830070BD022B40F0FA8040F27874C2F2000485 +S3150800831040F6D030C2F200004FF4807104F50D72B9 +S31508008320FDF760FE94F93A32002B13DA49F6B040AD +S31508008330C0F60000F7F7B4FF0220F7F7A1FF04F52F +S315080083400D70FDF7F5FC40F26C73C2F200030022D3 +S315080083501A7070BD00284CD040F6D031C2F2000128 +S31508008360084601F5C0710022FFF7C0FEB0F1FF3FD5 +S3150800837012D149F6B040C0F60000F7F791FF032086 +S31508008380F7F77EFF8448FDF7D3FC40F26C73C2F220 +S31508008390000300221A7070BD00282ADD40F27073AF +S315080083A0C2F200035B6863B940F27073C2F200035D +S315080083B040F6D032C2F20002D2F880211A60586024 +S315080083C017E040F6D032C2F20002D2F8801140F22D +S315080083D07072C2F20002126891423EBF40F2707299 +S315080083E0C2F20002116040F27072C2F20002034447 +S315080083F0536040F27873C2F20003D3F83C22D3F8F4 +S3150800840040329A4240F06A8163480021FDF79AFC9F +S3150800841090B149F6B040C0F60000F7F741FF0420D6 +S31508008420F7F72EFF5C48FDF783FC40F26C73C2F247 +S31508008430000300221A7070BD49F6B840C0F6000065 +S31508008440F7F72EFF49F61450C0F60000F7F728FF95 +S3150800845040F27075C2F2000540F22C74C2F20004B4 +S3150800846068682146FFF76CFD2046F7F719FF49F6BD +S315080084702050C0F60000F7F713FF2E68300E21468D +S31508008480FFF74EFDC6F30740A11CFFF749FDC6F3EB +S315080084900720211DFFF744FDF0B2A11DFFF740FD9F +S315080084A02046F7F7FDFE49F6C450C0F60000F7F778 +S315080084B0F7FE2868696800F097FF90B949F6B0405A +S315080084C0C0F60000F7F7ECFE0520F7F7D9FE3248AC +S315080084D0FDF72EFC40F26C73C2F2000300221A70FC +S315080084E070BD49F6B840C0F60000F7F7D9FE40F26D +S315080084F06C73C2F2000303221A7070BD032B40F09E +S31508008500ED8040F27874C2F2000440F6D030C2F230 +S3150800851000004FF4807104F50D72FDF763FD94F9C0 +S315080085203A32002B13DA49F63C50C0F60000F7F74A +S31508008530B7FE0220F7F7A4FE04F50D70FDF7F8FB69 +S3150800854040F26C73C2F2000300221A7070BD002854 +S315080085507FD040F6D032C2F20002104602F5C07152 +S3150800856002F58072FFF7C2FD0646B0F1FF3F15D14E +S3150800857049F66050C0F60000F7F792FE0320F7F7B9 +S315080085807FFE0548FDF7D4FB40F26C73C2F2000388 +S3150800859000221A7070BD00BFAC090020002858DD03 +S315080085A049F68450C0F60000F7F77AFE40F22C74BC +S315080085B0C2F2000430462146FFF7C2FC2046F7F710 +S315080085C06FFE49F69450C0F60000F7F769FE40F6CC +S315080085D0D035C2F2000595F883012146FFF7A0FCC5 +S315080085E095F88201A11CFFF79BFC95F88101211DD6 +S315080085F0FFF796FC95F88001A11DFFF791FC204630 +S31508008600F7F74EFE49F6C450C0F60000F7F748FEE5 +S31508008610D5F88001314605F5807200F0E1FE90B983 +S3150800862049F6B040C0F60000F7F73AFE0620F7F71D +S3150800863027FE2B48FDF77CFB40F26C73C2F2000361 +S3150800864000221A7070BD49F6B840C0F60000F7F768 +S3150800865027FE40F27873C2F20003D3F83C22D3F81F +S3150800866040329A423AD149F6AC50C0F60000F7F7C4 +S3150800867017FE00F0C5FE90B949F6B040C0F60000F6 +S31508008680F7F70EFE0720F7F7FBFD1548FDF750FB39 +S3150800869040F26C73C2F2000300221A7070BD49F6EC +S315080086A0B840C0F60000F7F7FBFD49F6C850C0F61B +S315080086B00000F7F7F5FD0A48FDF73AFB49F6E050E2 +S315080086C0C0F60000F7F7ECFD40F26C73C2F2000347 +S315080086D000221A70F7F7AAFD00F05EF970BD00BF18 +S315080086E0AC09002008B540F65453C2F200031860DE +S315080086F040F65853C2F200031960FFF7F7FBFCE790 +S315080087002DE9F047002349F63060C0F600004FF423 +S31508008710FA744AF2104113F80080C21892F801C0A0 +S3150800872008EB0C0202FB044291FBF2F902FB191654 +S3150800873036B94D4609F1FF3292B2B2F5806F03D3CE +S315080087400233242BE7D187E04746E2464FF4D0436D +S31508008750C4F2000300225A611A6842F400421A6001 +S315080087601B6813F4004F09D04FF4D044C4F2000438 +S31508008770FFF7BCFB236813F4004FF9D14FF4D0433D +S31508008780C4F200031A6822F002021A601A6842F05C +S3150800879001021A605B6813F0010F09D14FF4D04447 +S315080087A0C4F20004FFF7A2FB636813F0010FF9D0C7 +S315080087B0013F0AF1FF36360546EA0747013D3D43C4 +S315080087C04FF4D043C4F20003DD611A6822F00102B7 +S315080087D01A605B6813F0010F09D04FF4D044C4F255 +S315080087E00004FFF783FB636813F0010FF9D14FF418 +S315080087F0C843C4F20003D3F8002242F00102C3F8CA +S315080088000022D3F81C2222F48042C3F81C22D3F893 +S315080088100C2242F48042C3F80C220022C3F8B0228C +S31508008820C3F8B422D3F8042222F48042C3F80422FF +S31508008830D3F8142222F48042C3F81422D3F81C2257 +S3150800884042F48042C3F81C22D3F8002222F0010227 +S31508008850C3F80022BDE8F08749F60C60C0F60000B0 +S31508008860EC21FFF73FFF71E738B504460D464FF494 +S31508008870D043C4F200039B6813F0806F07D149F612 +S315080088800C60C0F600004FF4A071FFF72BFF4FF401 +S31508008890D043C4F20003D3F8802102F00102C3F8E2 +S315080088A08021D3F8802142F07C4242F40012C3F8BA +S315080088B08021C3F88451E178A278120442EA016261 +S315080088C021780A43617842EA0122C3F88821E179CE +S315080088D0A279120442EA016221790A43617942EADD +S315080088E00122C3F88C21D3F8802142F00102C3F893 +S315080088F080219B6813F0806F09D14FF4D044C4F2ED +S315080089000004FFF7F3FAA36813F0806FF9D038BDB7 +S315080089104FF4D043C4F20003DB6813F0030F39D0D9 +S315080089204FF4D043C4F20003D3F8B02140F2676392 +S31508008930B3EB525F18BF002023D14FF4D043C4F2E3 +S315080089400003D3F8B8210270D3F8B821120A42708E +S31508008950D3F8B821120C8270D3F8B821120EC2705F +S31508008960D3F8BC210271D3F8BC21120A4271D3F89C +S31508008970BC21120C8271D3F8BC311B0EC3710120C5 +S31508008980FFE74FF4D043C4F20003DA6842F020024E +S31508008990DA6070470020704708B500F029FDA8B1D5 +S315080089A0F7F7F8FB90B1FEF709FF00F047FD00F076 +S315080089B023FD20F0604020F07F024EF60853CEF2E9 +S315080089C000031A6000F018FD4368984708BD00BF09 +S315080089D070B5561EB6B24AB14C1E0E44451A14F866 +S315080089E0013F2B55FFF782FAB442F8D170BD00BF9C +S315080089F0F8B507460024254649F68466C0F60006FB +S31508008A00FFF774FAA359BB420ED8311949680B44CB +S31508008A109F4209D249F68463C0F6000305EB450276 +S31508008A2003EB8203187AF8BD01350C346C2CE7D1B8 +S31508008A30FF20F8BD2DE9F84380460068FFF7D8FF08 +S31508008A40FF2830D0FBF708F8F320FBF725F8FBF7EB +S31508008A5029F801281CBF002408F1040904D1FBF7F2 +S31508008A6011F80020BDE8F883D8F80060A71959F86E +S31508008A700450FFF73BFA38462946FBF791F80828D1 +S31508008A8007D1A359AB4206D10434B4F5007FEBD124 +S31508008A9003E0002402E0002400E00124FAF7F2FFD4 +S31508008AA02046BDE8F8830020BDE8F88338B50446BB +S31508008AB00D4640F65C53C2F20003984209D04FF4C3 +S31508008AC04043C0F6000399420BD0FFF7B3FF20B925 +S31508008AD017E040F66074C2F20004C5F3080393B9C0 +S31508008AE003E040F65C54C2F2000423689D420CD0B1 +S31508008AF0204640F8045B29464FF40072FFF768FFEA +S31508008B0003E0002038BD002038BD204638BD00BF30 +S31508008B102DE9F04106460C4617461D464FEA5128F0 +S31508008B204FEA48280368B3F1FF3F06D140F8048BA3 +S31508008B3041464FF40072FFF74BFF3368434505D0B3 +S31508008B4030464146FFF7B2FF0646D0B13368E41A0D +S31508008B503444043408F50078FFF7C8F9331DE31ADE +S31508008B60B3F5007F06D330464146FFF79FFF06461A +S31508008B7050B1041D17F8013B04F8013B013DEBD148 +S31508008B8005E00020BDE8F0810020BDE8F081012065 +S31508008B90BDE8F08140F66073C2F200034FF0FF3281 +S31508008BA01A6040F65C53C2F200031A60704700BFB1 +S31508008BB070B504460D461646FFF71AFFFF281BD068 +S31508008BC0681E2044FFF714FFFF2817D0620A4FF4E7 +S31508008BD04043C0F60003B3EB422F07BF40F65C5094 +S31508008BE0C2F2000040F66070C2F20000214632462A +S31508008BF02B46FFF78DFF70BD002070BD002070BDAD +S31508008C00F8B505460E46FFF7F3FE0446701E2844DF +S31508008C10FFF7EEFE0546FF2C18BFFF2833D0844227 +S31508008C202BD8022C2BD90B282BD8FAF715FFF320B3 +S31508008C30FAF732FFFAF736FF01281EBF49F65466DF +S31508008C40C0F60006022703D1FAF71CFF0020F8BD7C +S31508008C50FFF74CF936F814003946FAF769FF082881 +S31508008C6003D0FAF70FFF0020F8BD0134E4B2A5429D +S31508008C70EED2FAF707FF0120F8BD0020F8BD002064 +S31508008C80F8BD0020F8BD0020F8BD00BF00B583B0D0 +S31508008C9040F65C53C2F200031B68B3F1FF3F08BFFE +S31508008CA001201CD040F65C53C2F2000399685A684A +S31508008CB01144DA6811441A6911445A6911449A69C7 +S31508008CC00A44D96953185B4202AA42F8043D4CF299 +S31508008CD08810C0F600000421FFF76AFFFFE703B01B +S31508008CE05DF804FB4CF20402C0F600024FF4404360 +S31508008CF0C0F6000310681B6818444CF20803C0F657 +S31508008D0000031B6818444CF20C03C0F600031B68EA +S31508008D1018444CF21003C0F600031B6818444CF2C2 +S31508008D201403C0F600031B6818444CF21803C0F677 +S31508008D3000031B6818444CF28813C0F600031B682E +S31508008D401844D0F1010038BF0020704708B540F636 +S31508008D505C53C2F200031B68B3F1FF3F06D040F62E +S31508008D605C50C2F20000FFF765FE88B140F66073FA +S31508008D70C2F200031B68B3F1FF3F0BD040F66070E8 +S31508008D80C2F20000FFF756FE003018BF012008BDEA +S31508008D90002008BD012008BD4FF44040C0F6000081 +S31508008DA0704700BF38B504464FF4A050C4F201001E +S31508008DB08021FBF77DF990B14FF4A050C4F2010071 +S31508008DC02146FBF76DF94FF4A054C4F2010480253F +S31508008DD020462946FBF76CF90028F9D001E0002067 +S31508008DE038BD012038BD00BF10B504464FF4A05069 +S31508008DF0C4F201002021FBF75BF9012808D14FF4E2 +S31508008E00A050C4F20100FBF74FF92070012010BDF5 +S31508008E10002010BD10B584B04FF4614300930023C1 +S31508008E20ADF80430ADF80630ADF80830ADF80C30C2 +S31508008E300C23ADF80A304FF4A054C4F201042046BE +S31508008E406946FBF7AFF820460121FBF71BF904B08A +S31508008E5010BD00BF2DE9F04106460C46402906D94B +S31508008E6049F6F060C0F600007621FFF73BFC204685 +S31508008E70FFF798FF012806D049F6F060C0F6000013 +S31508008E807A21FFF72FFC2546ACB1002449F6F06796 +S31508008E90C0F600074FF08308FFF728F8305DFFF7A4 +S31508008EA081FF012803D038464146FFF71BFC0134F1 +S31508008EB0A3B2AB42F0D3BDE8F08100BF10B50446BB +S31508008EC041F2A913C2F200031B7813BB41F26410E6 +S31508008ED0C2F20000FFF788FF012851D141F264135E +S31508008EE0C2F200031B78002B4CD000F0C1FA41F205 +S31508008EF0AC13C2F20003186041F2A813C2F20003D1 +S31508008F000020187041F2A913C2F2000301221A7058 +S31508008F1010BD41F2A813C2F2000318781C4B18447E +S31508008F20FFF762FF01281AD141F2A813C2F2000323 +S31508008F301A780132D2B21A7041F26413C2F20003EF +S31508008F401B78934220D120461149FFF741FD41F293 +S31508008F50A913C2F2000300221A70012010BD00F006 +S31508008F6087FA41F2AC13C2F200031B6864339842D5 +S31508008F700CD941F2A913C2F200030020187010BDE3 +S31508008F80002010BD002010BD002010BD002010BD1F +S31508008F906511002038B504460D46012807D949F65B +S31508008FA01470C0F600004FF4CD71FFF79BFB41F239 +S31508008FB0F413C2F2000304EB440203EBC2035A7C27 +S31508008FC01B7C9A4220D041F2F413C2F2000304EB50 +S31508008FD0440203EBC203DA681570597C01315974EF +S31508008FE0DA680132DA605B689A420FD941F2F41303 +S31508008FF0C2F200036200111953F83110144403EB4E +S31508009000C403D960012038BD002038BD012038BD11 +S3150800901038B504460D46012807D949F61470C0F636 +S3150800902000004FF4DE71FFF75DFB41F2F413C2F264 +S31508009030000304EB440203EBC2035B7CFBB141F281 +S31508009040F413C2F2000303EBC2039A6812782A707B +S31508009050597C013959749A6801329A605B689A4258 +S315080090600FD941F2F413C2F200036200111953F842 +S315080090703110144403EBC4039960012038BD002065 +S3150800908038BD012038BD00BF10B582B041F2F413D7 +S31508009090C2F200030020987403F118025A610121F4 +S315080090A083F82A10D86241F2F011C2F200010A6070 +S315080090B04021197441F2AC21C2F200014C1C9C609B +S315080090C0DC6058741C6001F140045C600870002A7A +S315080090D03DD041F2F011C2F20001D86A0860402181 +S315080090E083F8281041F22421C2F20001481C1862B4 +S315080090F05862002483F82940986101F140035360BF +S31508009100927C0A7041F2AC23C2F200031B78FF2B53 +S3150800911001D0FF2A06D149F61470C0F6000079215D +S31508009120FFF7E0FA40F28003C2F20003009341F22F +S31508009130F020C2F20000012140F24C02C2F2000205 +S3150800914040F22003C2F20003F7F7D2FB06E041F231 +S315080091502423C2F20003FF221A70DCE702B010BD16 +S3150800916008B541F2F020C2F20000F8F751FC0020E1 +S31508009170F7F70AF808BD00BF2DE9F84307460C467D +S315080091803F2906D949F61470C0F600009A21FFF760 +S31508009190A9FA41F2AC23C2F2000318782146FFF778 +S315080091A0F9FE012806D049F61470C0F600009E2183 +S315080091B0FFF798FA2646D4B1002441F2AC25C2F24C +S315080091C0000549F61478C0F600084FF0A709FEF71F +S315080091D08DFE2878395DFFF7DDFE012803D040466D +S315080091E04946FFF77FFA0134A3B2B342EFD3BDE88D +S315080091F0F88300BF10B5044641F2F020C2F2000021 +S31508009200F8F710FC41F2A823C2F200031B7803BB4F +S3150800921041F22423C2F20003187841F26821C2F20F +S315080092200001FFF7F5FE01283ED141F26823C2F29C +S3150800923000031B78002B39D041F2A823C2F20003A1 +S3150800924001221A7041F2A923C2F200030020187005 +S3150800925010BD41F22423C2F2000341F2A922C2F250 +S31508009260000211781878144B1944FFF7D1FE01282B +S315080092701ED141F2A923C2F200031A780132D2B2F2 +S315080092801A7041F26823C2F200031B78934211D187 +S3150800929020460949FFF79CFB41F2A823C2F20003C6 +S315080092A000221A70012010BD002010BD002010BD3C +S315080092B0002010BD002010BD691200202DE9F043E2 +S315080092C083B041F2AC23C2F200031C78012C07D903 +S315080092D049F61470C0F600004FF4EE71FFF702FA73 +S315080092E041F2F413C2F2000304EB440403EBC40393 +S315080092F05B7CBBB3402B34BF99464FF04009B9F1AC +S31508009300000F23D041F2B012C2F20002541E09F136 +S31508009310FF3652FA86F641F2AC25C2F2000549F646 +S315080093201477C0F600074FF4927828780DF10701F4 +S31508009330FFF76EFE012803D038464146FFF7D2F9FB +S315080093409DF8072004F8012FB442EED141F2F0202F +S31508009350C2F20000812141F2B012C2F200024B466D +S31508009360F8F7F4FA03B0BDE8F08300BF2DE9F84337 +S3150800937041F2F023C2F2000300EB800003EBC003C6 +S31508009380B3F88C73DFB1002441F22426C2F200063A +S3150800939049F61478C0F6000840F243193578F7F70D +S315080093A093F8015D2846FFF7F5FD012803D04046EE +S315080093B04946FFF797F90134A3B29F42EED8F7F76B +S315080093C083F8024641F2F020C2F200000121402350 +S315080093D0F8F7A0FABDE8F88308B5FFF7DBFB08BD88 +S315080093E008B5FFF7E5FB08BD08B5FFF709FC08BD9A +S315080093F008B5FFF777FC08BD08B5FFF7CDFC08BD33 +S3150800940008B5FFF743FC10B1FFF7A0FC08BD002024 +S3150800941008BD00BF4EF21003CEF2000300221A6008 +S3150800942049F23F01C0F2020159609A6005211960AC +S3150800943041F6E403C2F200031A6070474EF21003C5 +S31508009440CEF2000300221A60704700BF4EF21003E6 +S31508009450CEF200031B6813F4803F1FBF41F6E403F6 +S31508009460C2F200031A68013218BF1A60704700BFBB +S3150800947008B5FFF7EBFF41F6E403C2F200031868EC +S3150800948008BD00BF08B549F63870C0F6000031219E +S31508009490FFF728F908BD00BF10B572B640F2000202 +S315080094A0C2F2000240F2EC03C2F200039A4210D262 +S315080094B0131D0E4CE41A24F003040434002310464A +S315080094C04AF26801C0F600015A581A500433A342FA +S315080094D0FAD1074807494FF000028842B8BF40F85A +S315080094E0042BFADBF6F70CFF10BD00BFEF000020D7 +S315080094F000010020642E00200F2AF0B445D940EA66 +S3150800950001039B0745D1A2F110070C4603463F0904 +S3150800951000EB0716103625681033103443F8105C34 +S3150800952054F80C5C43F80C5C54F8085C43F8085C87 +S3150800953054F8045C43F8045CB342ECD17B1C02F09B +S315080095400F0CBCF1030F4FEA03131944034422D945 +S315080095500E461D46644656F8047B043C032C45F823 +S31508009560047BF8D8ACF1040402F0030224F00304E7 +S3150800957004342344214432B10A4411F8014B914280 +S3150800958003F8014BF9D1F0BC70470346002AF3D122 +S31508009590F9E70346F0E76246002AEDD1F3E700BF94 +S315080095A08307F0B448D0541E002A43D0CDB20346F0 +S315080095B002E0002C3ED0144603F8015B13F0030FBB +S315080095C004F1FF32F5D1032C2DD9CDB20F2C45EA83 +S315080095D0052545EA054518D9A4F1100703F1100633 +S315080095E01A463F0906EB07161560103242F80C5C5E +S315080095F042F8085C42F8045CB242F5D104F00F0464 +S315080096000137032C03EB07130DD91E462246043AED +S3150800961046F8045B032AFAD8221F04F0030422F052 +S315080096200302043213442CB1C9B21C4403F8011BCB +S31508009630A342FBD1F0BC704714460346C3E700BFFC +S315080096402F64656D6F70726F675F6F6C696D657893 +S315080096505F73746D3332653430372E737265630009 +S315080096602F626F6F746C6F672E7478740000000039 +S3150800967057696E5553422042756C6B20446576696E +S31508009680636500004F70656E424C542055736572D1 +S315080096900000000030303030303030303035304364 +S315080096A00000000044656661756C740057696E5564 +S315080096B053422042756C6B20496E7465726661630D +S315080096C0650000002E2F6C69622F7569702F6E6514 +S315080096D0746465762E630000222A3A3C3E3F7C7FFE +S315080096E0000000002B2C3B3D5B5D0000809A9041FA +S315080096F08E418F804545454949498E8F9092924FB4 +S31508009700994F555559999A9B9C9D9E9F41494F55EE +S31508009710A5A5A6A7A8A9AAABAC21AEAFB0B1B2B30E +S31508009720B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C373 +S31508009730C4C5C6C7C8C9CACBCCCDCECFD0D1D2D363 +S31508009740D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E353 +S31508009750E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F343 +S31508009760F4F5F6F7F8F9FAFBFCFDFEFF0103050729 +S31508009770090E10121416181C1E0000006100620063 +S3150800978063006400650066006700680069006A0097 +S315080097906B006C006D006E006F0070007100720047 +S315080097A073007400750076007700780079007A00F7 +S315080097B0A100A200A300A500AC00AF00E000E100F4 +S315080097C0E200E300E400E500E600E700E800E9005F +S315080097D0EA00EB00EC00ED00EE00EF00F000F1000F +S315080097E0F200F300F400F500F600F800F900FA00BC +S315080097F0FB00FC00FD00FE00FF000101030105015E +S31508009800070109010B010D010F01110113011501D2 +S31508009810170119011B011D011F0121012301250142 +S31508009820270129012B012D012F01310133013501B2 +S3150800983037013A013C013E0140014201440146011B +S3150800984048014B014D014F01510153015501570183 +S3150800985059015B015D015F016101630165016701F2 +S3150800986069016B016D016F01710173017501770162 +S315080098707A017C017E019201B103B203B303B403FA +S31508009880B503B603B703B803B903BA03BB03BC03EE +S31508009890BD03BE03BF03C003C103C303C403C5039B +S315080098A0C603C703C803C903CA0330043104320414 +S315080098B033043404350436043704380439043A04C6 +S315080098C03B043C043D043E043F0440044104420476 +S315080098D043044404450446044704480449044A0426 +S315080098E04B044C044D044E044F04510452045304D3 +S315080098F05404550456045704580459045A045B047E +S315080099005C045E045F047021712172217321742145 +S31508009910752176217721782179217A217B217C216D +S315080099207D217E217F2141FF42FF43FF44FF45FF02 +S3150800993046FF47FF48FF49FF4AFF4BFF4CFF4DFFD5 +S315080099404EFF4FFF50FF51FF52FF53FF54FF55FF85 +S3150800995056FF57FF58FF59FF5AFF0000C700FC0083 +S31508009960E900E200E400E000E500E700EA00EB00B9 +S31508009970E800EF00EE00EC00C400C500C900E600F0 +S31508009980C600F400F600F200FB00F900FF00D6005E +S31508009990DC00A200A300A500A7209201E100ED00CB +S315080099A0F300FA00F100D100AA00BA00BF001023A4 +S315080099B0AC00BD00BC00A100AB00BB009125922500 +S315080099C093250225242561256225562555256325D7 +S315080099D0512557255D255C255B251025142534253D +S315080099E02C251C2500253C255E255F255A25542552 +S315080099F069256625602550256C2567256825642513 +S31508009A00652559255825522553256B256A25182578 +S31508009A100C25882584258C2590258025B103DF0013 +S31508009A209303C003A303C303B500C403A6039803A3 +S31508009A30A903B4031E22C603B50329226122B10075 +S31508009A406522642220232123F7004822B000192228 +S31508009A50B7001A227F20B200A025A00041004200CC +S31508009A6043004400450046004700480049004A00B4 +S31508009A704B004C004D004E004F0050005100520064 +S31508009A8053005400550056005700580059005A0014 +S31508009A902100E0FFE1FFE5FFE2FFE3FFC000C100B0 +S31508009AA0C200C300C400C500C600C700C800C9007C +S31508009AB0CA00CB00CC00CD00CE00CF00D000D1002C +S31508009AC0D200D300D400D500D600D800D900DA00D9 +S31508009AD0DB00DC00DD00DE00780100010201040184 +S31508009AE0060108010A010C010E01100112011401F8 +S31508009AF0160118011A011C011E0120012201240168 +S31508009B00260128012A012C012E01300132013401D7 +S31508009B10360139013B013D013F0141014301450140 +S31508009B2047014A014C014E015001520154015601A8 +S31508009B3058015A015C015E01600162016401660117 +S31508009B4068016A016C016E01700172017401760187 +S31508009B5079017B017D01910191039203930394039B +S31508009B60950396039703980399039A039B039C030B +S31508009B709D039E039F03A003A103A303A403A503B8 +S31508009B80A603A703A803A903AA0310041104120431 +S31508009B9013041404150416041704180419041A04E3 +S31508009BA01B041C041D041E041F0420042104220493 +S31508009BB023042404250426042704280429042A0443 +S31508009BC02B042C042D042E042F0401040204030480 +S31508009BD00404050406040704080409040A040B041B +S31508009BE00C040E040F0460216121622163216421A3 +S31508009BF0652166216721682169216A216B216C210B +S31508009C006D216E216F2121FF22FF23FF24FF25FFEF +S31508009C1026FF27FF28FF29FF2AFF2BFF2CFF2DFFF2 +S31508009C202EFF2FFF30FF31FF32FF33FF34FF35FFA2 +S31508009C3036FF37FF38FF39FF3AFF0000FFFFFFFF07 +S31508009C40FFFF00004F70656E424C54002E2E2F2EDB +S31508009C502E2F2E2E2F536F757263652F66696C65CE +S31508009C602E6300004669726D7761726520757064AF +S31508009C7061746520726571756573742064657465B1 +S31508009C80637465640A0D00004F70656E696E67201F +S31508009C906669726D776172652066696C6520666FA4 +S31508009CA0722072656164696E672E2E2E00000000B0 +S31508009CB04552524F520A0D004F4B0A0D0000000044 +S31508009CC05374617274696E67207468652070726F68 +S31508009CD06772616D6D696E672073657175656E6310 +S31508009CE0650A0D0050617273696E67206669726D48 +S31508009CF0776172652066696C6520746F206F62747F +S31508009D0061696E2065726173652073697A652E2EA6 +S31508009D102E00000045726173696E6720000000001E +S31508009D202062797465732066726F6D206D656D6F3C +S31508009D3072792061742030780000000052656164F1 +S31508009D40696E67206C696E652066726F6D2066693C +S31508009D506C652E2E2E4552524F520A0D00000000F9 +S31508009D60496E76616C696420636865636B73756DAB +S31508009D7020666F756E642E2E2E4552524F520A0D6E +S31508009D800000000050726F6772616D6D696E672022 +S31508009D900000000020627974657320746F206D6579 +S31508009DA06D6F72792061742030780000577269747B +S31508009DB0696E672070726F6772616D20636865638C +S31508009DC06B73756D2E2E2E00436C6F73696E67204C +S31508009DD06669726D776172652066696C650A0D0041 +S31508009DE04669726D77617265207570646174652065 +S31508009DF07375636365737366756C6C7920636F6DD1 +S31508009E00706C657465640A0D000000002E2E2F2EF6 +S31508009E102E2F2E2E2F536F757263652F41524D4389 +S31508009E204D345F53544D33322F63616E2E630000F9 +S31508009E3005020602060307030803090309040A04C0 +S31508009E400B040C040C050D050E050F050F06100670 +S31508009E50100710080000080010001800200028004D +S31508009E603000380040004800500058008000880044 +S31508009E7090009800A000A800B000B800C000C80074 +S31508009E80D000D80000C00008004000000300000011 +S31508009E90000001080000010004000000000002089C +S31508009EA0000002000500000000000408000002008F +S31508009EB00600000000000608000002000700000077 +S31508009EC000000808000002000800000000000A0858 +S31508009ED0000002000900000000000C080000020053 +S31508009EE00A00000000000E08000002000B00000037 +S31508009EF02E2E2F2E2E2F2E2E2F536F757263652F13 +S31508009F0041524D434D345F53544D33322F75617270 +S31508009F10742E63002E2E2F2E2E2F2E2E2F536F7556 +S31508009F207263652F41524D434D345F53544D33325E +S31508009F302F7573622E6300002E2E2F2E2E2F2E2E97 +S31508009F402F536F757263652F41524D434D345F53DE +S31508009F50544D33322F4743432F766563746F7273BC +S31508009F602E630000002020202020202020202828E2 +S31508009F7028282820202020202020202020202020BB +S31508009F8020202020208810101010101010101010FB +S31508009F90101010101004040404040404040404102B +S31508009FA010101010101041414141414101010101B9 +S31508009FB00101010101010101010101010101010183 +S31508009FC0101010101010424242424242020202028F +S31508009FD00202020202020202020202020202020253 +S31508009FE01010101020000000000000000000000003 S31508009FF00000000000000000000000000000000053 S3150800A0000000000000000000000000000000000042 S3150800A0100000000000000000000000000000000032 S3150800A0200000000000000000000000000000000022 S3150800A0300000000000000000000000000000000012 S3150800A0400000000000000000000000000000000002 -S30D0800A0500000000000000000FA -S3150800A05809022000010100C0320904000002FF00BD -S3150800A0680000070581024000FF070501024000FFBE -S3150800A07889040008710400080904000800000000A3 -S3150800A08800000000F1030008FD030008DD030008CE -S3150800A0980000000000000000CD030008C504000801 -S3150800A0A8D504000805050008E50400082505000884 -S3150800A0B8450500086505000804030904120110018E -S3150800A0C800000040501DAC600001010203010000B9 -S3150800A0D885050008890500088D050008910500080A -S3150800A0E899050008A1050008AD050008A00000208C -S3150800A0F869080008B107000861070008C9060008CA -S3150800A10831070008AD06000895060008D9060008B4 -S3150800A118E9060008F906000811070008010000000A -S3150800A1280100000000000000010203040102030404 -S3110800A1380607080904000000549F0008F0 +S3150800A05000000000000000000000000000000000F2 +S30D0800A0600000000000000000EA +S3150800A06809022000010100C0320904000002FF00AD +S3150800A0780000070581024000FF070501024000FFAE +S3150800A0889904000881040008190400080000000063 +S3150800A09800000000010400080D040008ED0300088C +S3150800A0A80000000000000000DD030008D5040008D1 +S3150800A0B8E504000815050008F50400083505000834 +S3150800A0C8550500087505000804030904120110015E +S3150800A0D800000040501DAC600001010203010000A9 +S3150800A0E895050008990500089D050008A1050008BA +S3150800A0F8A9050008B1050008BD050008A00000204C +S3150800A10879080008C107000871070008D906000879 +S3150800A11841070008BD060008A5060008E906000864 +S3150800A128F9060008090700082107000801000000C9 +S3150800A13801000000000000000102030401020304F4 +S3110800A1480607080904000000649F0008D0 S70508000000F2 diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/hooks.c b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/hooks.c index ca1498e0..496fab8c 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_GCC/Boot/hooks.c @@ -362,13 +362,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while(USART_GetFlagStatus(USART6, USART_FLAG_TC) == RESET); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while(USART_GetFlagStatus(USART6, USART_FLAG_TC) == RESET) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/bin/openbtl_olimex_stm32e407.out b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/bin/openbtl_olimex_stm32e407.out index bbaf461d..20c51e8c 100644 Binary files a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/bin/openbtl_olimex_stm32e407.out and b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/bin/openbtl_olimex_stm32e407.out differ diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/bin/openbtl_olimex_stm32e407.srec b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/bin/openbtl_olimex_stm32e407.srec index 944e0101..b7d2e4e0 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/bin/openbtl_olimex_stm32e407.srec +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/bin/openbtl_olimex_stm32e407.srec @@ -1,29 +1,29 @@ S02000006F70656E62746C5F6F6C696D65785F73746D3332653430372E737265630B -S315080000003036002051AB0008B5AB0008B5AB000888 -S31508000010B5AB0008B5AB0008B5AB0008B5AB000832 -S31508000020B5AB0008B5AB0008B5AB0008B5AB000822 -S31508000030B5AB0008B5AB0008B5AB0008B5AB000812 -S31508000040B5AB0008B5AB0008B5AB0008B5AB000802 -S31508000050B5AB0008B5AB0008B5AB0008B5AB0008F2 -S31508000060B5AB0008B5AB0008B5AB0008B5AB0008E2 -S31508000070B5AB0008B5AB0008B5AB0008B5AB0008D2 -S31508000080B5AB0008B5AB0008B5AB0008B5AB0008C2 -S31508000090B5AB0008B5AB0008B5AB0008B5AB0008B2 -S315080000A0B5AB0008B5AB0008B5AB0008B5AB0008A2 -S315080000B0B5AB0008B5AB0008B5AB0008B5AB000892 -S315080000C0B5AB0008B5AB0008B5AB0008B5AB000882 -S315080000D0B5AB0008B5AB0008B5AB0008B5AB000872 -S315080000E0B5AB0008B5AB0008B5AB0008B5AB000862 -S315080000F0B5AB0008B5AB0008B5AB0008B5AB000852 -S31508000100B5AB0008B5AB0008B5AB0008B5AB000841 -S31508000110B5AB0008B5AB0008B5AB0008B5AB000831 -S31508000120B5AB0008B5AB0008B5AB0008B5AB000821 -S31508000130B5AB0008B5AB0008B5AB0008B5AB000811 -S31508000140B5AB0008B5AB0008B5AB0008B5AB000801 -S31508000150B5AB0008B5AB0008B5AB0008B5AB0008F1 -S31508000160B5AB0008B5AB0008B5AB0008B5AB0008E1 -S31508000170B5AB0008B5AB0008B5AB0008B5AB0008D1 -S30D08000180B5AB0008B5AB000899 +S315080000003036002061AB0008C5AB0008C5AB000858 +S31508000010C5AB0008C5AB0008C5AB0008C5AB0008F2 +S31508000020C5AB0008C5AB0008C5AB0008C5AB0008E2 +S31508000030C5AB0008C5AB0008C5AB0008C5AB0008D2 +S31508000040C5AB0008C5AB0008C5AB0008C5AB0008C2 +S31508000050C5AB0008C5AB0008C5AB0008C5AB0008B2 +S31508000060C5AB0008C5AB0008C5AB0008C5AB0008A2 +S31508000070C5AB0008C5AB0008C5AB0008C5AB000892 +S31508000080C5AB0008C5AB0008C5AB0008C5AB000882 +S31508000090C5AB0008C5AB0008C5AB0008C5AB000872 +S315080000A0C5AB0008C5AB0008C5AB0008C5AB000862 +S315080000B0C5AB0008C5AB0008C5AB0008C5AB000852 +S315080000C0C5AB0008C5AB0008C5AB0008C5AB000842 +S315080000D0C5AB0008C5AB0008C5AB0008C5AB000832 +S315080000E0C5AB0008C5AB0008C5AB0008C5AB000822 +S315080000F0C5AB0008C5AB0008C5AB0008C5AB000812 +S31508000100C5AB0008C5AB0008C5AB0008C5AB000801 +S31508000110C5AB0008C5AB0008C5AB0008C5AB0008F1 +S31508000120C5AB0008C5AB0008C5AB0008C5AB0008E1 +S31508000130C5AB0008C5AB0008C5AB0008C5AB0008D1 +S31508000140C5AB0008C5AB0008C5AB0008C5AB0008C1 +S31508000150C5AB0008C5AB0008C5AB0008C5AB0008B1 +S31508000160C5AB0008C5AB0008C5AB0008C5AB0008A1 +S31508000170C5AB0008C5AB0008C5AB0008C5AB000891 +S30D08000180C5AB0008C5AB000879 S3150800018803E00B780370491C401C13005A1E002B09 S31508000198F7D1704701E00170401C13005A1E002B66 S315080001A8F9D1704710B400231400621E002C06D03B @@ -353,7 +353,7 @@ S315080015D8211250EA012094F820120843E06094F892 S315080015E81F0294F81E12090451EA006094F81D12A5 S315080015F850EA012094F81C12084320612670DFF887 S31508001608C8090088401CDFF8C0190880E080002057 -S315080016182063002020710020F2BD000064AB00089A +S315080016182063002020710020F2BD000074AB00088A S3150800162880B500280BD00168002908D00168097818 S31508001638002904D00168C9888288914201D0092006 S3150800164808E00068407802F010F8C00701D50320C2 @@ -384,8 +384,8 @@ S315080017C8E0612762F6B2002E19D1A5713900009892 S315080017D8FFF76BF82061F87FB97F090451EA0060C2 S315080017E8797F50EA0120397F0843E0600020A0602D S315080017F80020A061009820600098C088A08030006A -S31508001808C0B20DB0BDE8F083C4AB000878A50008DF -S31508001818E8AB00082DE9F047050016001F000C0084 +S31508001808C0B20DB0BDE8F083D4AB000888A50008BF +S31508001818F8AB00082DE9F047050016001F000C0074 S31508001828002038602800FFF7FBFEC0B2002801D068 S31508001838C0B2E3E0A879000601D50220DEE0A8795F S31508001848C00701D40720D9E0E868A968401AB04259 @@ -905,8 +905,8 @@ S3150800385832F8112080B29042F4D111F18000C1B239 S31508003868080080B27047002100E0491C0B4A32F86C S315080038781120002A05D0094A32F8112080B2904250 S31508003888F3D1064A32F81120002A03D0044830F842 -S315080038981100FFE780B27047F4A20008F09D0008FF -S315080038A8D09F000880B501214FF4006000F0EAF9BE +S315080038981100FFE780B2704704A30008009E0008DD +S315080038A8E09F000880B501214FF4006000F0EAF9AE S315080038B800214FF4006000F0E5F901BD0021364A01 S315080038C812681100354A1140027D83681A43436815 S315080038D81A43C3681A4303681A4300691043014325 @@ -1264,7 +1264,7 @@ S31508004EC80021C173002026494875254908752548D3 S31508004ED80088401C2349088021482249098889B244 S31508004EE8090A81741E481F490988C1741C4800218B S31508004EF80183FEF79FFFC043194908831648002116 -S31508004F080170FFF772B80000D02D002018AC000811 +S31508004F080170FFF772B80000D02D002028AC000801 S31508004F1880B2010A51EA002080B2704780B501299B S31508004F280CDB114A118011490968884206D00E49D6 S31508004F380A8801000D480068FEF7CAFE01BD000090 @@ -1364,7 +1364,7 @@ S315080055081749816014481449C1601348006850F463 S315080055188010114908601048002101600E480021D2 S31508005528416012480C4901607047000000000240BB S31508005538001802400008024019162200F1C00700A8 -S31508005548E4A60008982D0020002D00202807002032 +S31508005548F4A60008982D0020002D00202807002022 S31508005558E400002008900240802D00200E2E00202E S31508005568680D0020049002400C90024010900240FA S3150800557880B500F00DF81048104901601048002160 @@ -1444,7 +1444,7 @@ S31508005A0880B541680E48806C01F0D7F9002803D1A3 S31508005A183120FFF792FE06E00948FF21C1700848C1 S31508005A280121A0F8441001BD10B5040001F090F951 S31508005A380348FF21C17002480121A0F8441010BD8F -S31508005A48702900207329002010AC0008742900204A +S31508005A48702900207329002020AC0008742900203A S31508005A587729002080B53120FFF76FFE01BD0000C9 S31508005A6880B5DFF8C8030078401CDFF8C013087053 S31508005A78DFF8B003002101701EE0DFF8A8030078FC @@ -1509,7 +1509,7 @@ S31508005E180A4808218181084800880E300649088002 S31508005E2801BD0000222E002010290020242E002063 S31508005E38252E0020232E00200E2E0020E400002008 S31508005E48D02D0020FA0000200001002004010020BF -S31508005E58982D0020EA0000201CAC000800AC0008B9 +S31508005E58982D0020EA0000202CAC000810AC000899 S31508005E68D82D0020F02D0020D42D0020DC2D002070 S31508005E781A0100200149086070470000DC00274223 S31508005E8880B501215FF00070FDF7ECFE00215FF098 @@ -1628,28 +1628,28 @@ S31508006588032806D007E0402006E0082004E03F205C S3150800659802E0402000E0402080B27047E00000207A S315080065A8E42A002080B5FFF72CF802BD80B5DFF88D S315080065B8780600210170DFF874160020FBF74BF8FF -S315080065C8C0B2002804D07C21DFF86406FFF73CFF38 +S315080065C8C0B2002804D07721DFF86406FFF73CFF3D S315080065D801BDDFF854060078002801D1012000E043 S315080065E80020704780B5FFF7DDFF012801D100209C S315080065F811E0DFF834060078002801D000200AE008 S3150800660801F052F8012805D1DFF81C0601210170AE S31508006618012000E0002002BD10B50024DFF80806B6 S315080066280078002800F0FF81DFF8FC0500780128CB -S3150800663834D101F053F8DFF8FC0501F07DF8DFF8EE -S31508006648F80501F079F801F047F801220100DFF8AA +S3150800663834D101F053F8DFF8FC0501F085F8DFF8E6 +S31508006648F80501F081F801F047F801220100DFF8A2 S31508006658EC05FBF719F8002807D0DFF8E40501F080 -S315080066686BF8012001F05EF8DDE1DFF8D80501F0E6 -S3150800667863F8DFF8D40501F05FF8DFF8D00501F014 -S315080066885BF8DFF8CC0500210160DFF8C4050021B6 +S3150800666873F8012001F066F8DDE1DFF8D80501F0D6 +S315080066786BF8DFF8D40501F067F8DFF8D00501F004 +S3150800668863F8DFF8CC0500210160DFF8C4050021AE S315080066984160DFF8940502210170C4E1DFF8880536 S315080066A80078022840F0F780DFF890254FF48071CB S315080066B8DFF8A005FBF78CFCDFF8701591F83A129D S315080066C8C1F3C01111F0010101290FDBDFF87005CC -S315080066D801F032F8022001F025F8DFF86005FBF72B +S315080066D801F03AF8022001F02DF8DFF86005FBF71B S315080066E8F6FADFF84405002101709CE100281BD062 S315080066F80022DFF86415DFF85C0500F0D5F9040018 -S3150800670824B214F1010F0FD1DFF8340501F014F89B -S31508006718032001F007F8DFF82405FBF7D8FADFF8B5 +S3150800670824B214F1010F0FD1DFF8340501F01CF893 +S31508006718032001F00FF8DFF82405FBF7D8FADFF8AD S315080067280805002101707EE124B2012C28DBDFF878 S315080067382005406800280BD1DFF81805D0F8800135 S31508006748DFF80C150860DFF8080524B2446017E07E @@ -1659,47 +1659,47 @@ S31508006778DFF8DC04406800FA84F0DFF8D4144860CF S31508006788DFF8A804D0F83C02DFF8A014D1F84012C4 S31508006798884201D1012000E000200128C0F2438187 S315080067A80021DFF89804FBF79EFA00280FD0DFF8D7 -S315080067B8900400F0C1FF042000F0B4FFDFF87C0461 +S315080067B8900400F0C9FF042000F0BCFFDFF87C0451 S315080067C8FBF785FADFF86004002101702BE1DFF892 -S315080067D8740400F0B1FFDFF8840400F0ADFFDFF8B9 +S315080067D8740400F0B9FFDFF8840400F0B5FFDFF8A9 S315080067E88014DFF86C04406800F074FADFF8700467 -S315080067F800F0A2FFDFF86C0400F09EFFDFF86014D3 +S315080067F800F0AAFFDFF86C0400F0A6FFDFF86014C3 S31508006808DFF84C040068000EC0B200F052FADFF850 S315080068185814DFF83C040068000CC0B200F049FAC6 S31508006828DFF84814DFF828040068000AC0B200F048 S3150800683840FADFF83C14DFF818040068C0B200F024 -S3150800684838FADFF81C0400F077FF77A000F074FF29 +S3150800684838FADFF81C0400F07FFF77A000F07CFF19 S31508006858DFF8FC034168DFF8F803006800F0ADFAD2 -S3150800686800280FD1DFF8D80300F066FF052000F0EE -S3150800687859FFDFF8C803FBF72AFADFF8AC0300214B -S315080068880170D0E0DFF8BC0300F056FFDFF8980384 +S3150800686800280FD1DFF8D80300F06EFF052000F0E6 +S3150800687861FFDFF8C803FBF72AFADFF8AC03002143 +S315080068880170D0E0DFF8BC0300F05EFFDFF898037C S3150800689803210170C7E0DFF890030078032840F069 S315080068A8C280DFF898234FF48071DFF8A803FBF756 S315080068B88FFBDFF8781391F83A12C1F3C01111F07B -S315080068C8010101290EDBDFF8AC0300F035FF0220D1 -S315080068D800F028FFDFF86403FBF7F9F9D24800212E +S315080068C8010101290EDBDFF8AC0300F03DFF0220C9 +S315080068D800F030FFDFF86403FBF7F9F9D248002126 S315080068E80170A0E000281AD0DFF88C23DFF86813B7 S315080068F8DFF8600300F0D8F8040024B214F1010F99 -S315080069080DD1DFF8780300F017FF032000F00AFF1F +S315080069080DD1DFF8780300F01FFF032000F012FF0F S31508006918CA48FBF7DCF9C4480021017083E024B2B1 -S31508006928012C4CDBD64800F007FFCD4924B22000DD -S3150800693800F0D0F9CA4800F0FFFED24800F0FCFE85 +S31508006928012C4CDBD64800F00FFFCD4924B22000D5 +S3150800693800F0D0F9CA4800F007FFD24800F004FF73 S31508006948C749C448D0F88001000EC0B200F0B1F9B2 S31508006958C549C048D0F88001000CC0B200F0A9F9B2 S31508006968C249BC48D0F88001000AC0B200F0A1F9B3 S31508006978BF49B848D0F88001C0B200F09AF9B848BB -S3150800698800F0DAFE28A000F0D7FEBB4A24B22100A0 +S3150800698800F0E2FE28A000F0DFFEBB4A24B2210090 S31508006998B048D0F8800100F00CFA00280CD1A848B5 -S315080069A800F0CAFE062000F0BDFEA448FBF78FF9E2 -S315080069B89D480021017036E0A24800F0BDFE9B48BC +S315080069A800F0D2FE062000F0C5FEA448FBF78FF9D2 +S315080069B89D480021017036E0A24800F0C5FE9B48B4 S315080069C8D0F83C029949D1F84012884201D10120F1 -S315080069D800E00020012826DBAB4800F0ADFE00F0F9 -S315080069E8F8F900280CD1964800F0A6FE072000F012 -S315080069F899FE9248FBF76BF98B480021017012E063 -S31508006A08904800F099FEA14800F096FE8B48FBF7DF -S31508006A185EF99F4800F090FE83480021017000F057 +S315080069D800E00020012826DBAB4800F0B5FE00F0F1 +S315080069E8F8F900280CD1964800F0AEFE072000F00A +S315080069F8A1FE9248FBF76BF98B480021017012E05B +S31508006A08904800F0A1FEA14800F09EFE8B48FBF7CF +S31508006A185EF99F4800F098FE83480021017000F04F S31508006A286EFE00F095F910BD2E2E2E0010B5040046 -S31508006A38207800F0B1FE532804D1607800F0B0FE43 +S31508006A38207800F0B9FE532804D1607800F0B8FE33 S31508006A48002801D103200FE06078312801D1002001 S31508006A580AE06078322801D1012005E060783328F9 S31508006A6801D1022000E0032010BD70B504000026FD @@ -1708,7 +1708,7 @@ S31508006A8800F041F986196D1EA41CADB2022DF6DA7E S31508006A98F6B2F643200000F036F9F6B2864201D07F S31508006AA8002000E0012070BD2DE9F04105000E0028 S31508006AB814005FF00008002E01D0002D04D140F222 -S31508006AC836215B48FFF7C0FC2800FFF7AFFF070031 +S31508006AC831215B48FFF7C0FC2800FFF7AFFF070036 S31508006AD8FFB2032F01D10020A3E02800FFF7C5FF66 S31508006AE8002802D15FF0FF309BE0FFB2002F03D0E9 S31508006AF8022F5AD028D392E0AD1C280000F003F9DB @@ -1731,14 +1731,14 @@ S31508006BF858FA80F03060AD1CB7F10508002C0DD0A6 S31508006C08002606E0280000F07EF8B6B23055AD1C1E S31508006C18761CB6B20FFA88F84645F3DBFFE7404616 S31508006C2800B2BDE8F08100001B2E00209C19002048 -S31508006C3878A80008A8A9000834A90008D01B0020CD -S31508006C48F0AB0008F8AB0008CCA90008A8A800080B -S31508006C58902D002024260020A4270020D0AB000869 -S31508006C68242B00207CAA0008262B0020282B00208D -S31508006C782A2B0020F0A900082427002014AA0008B7 -S31508006C8874AB0008B4AA000898AA0008CCAA000899 -S31508006C9808A9000880B5010011F00F003030C9B204 -S31508006CA80A2901DBC01D02E0C0B200F075FDC0B2BA +S31508006C3888A80008B8A9000844A90008D01B00209D +S31508006C4800AC000808AC0008DCA90008B8A80008C9 +S31508006C58902D002024260020A4270020E0AB000859 +S31508006C68242B00208CAA0008262B0020282B00207D +S31508006C782A2B002000AA00082427002024AA000896 +S31508006C8884AB0008C4AA0008A8AA0008DCAA000859 +S31508006C9818A9000880B5010011F00F003030C9B2F4 +S31508006CA80A2901DBC01D02E0C0B200F07DFDC0B2B2 S31508006CB802BD38B504000D00E4B22009FFF7EAFF63 S31508006CC8287014F00F00FFF7E5FF68700020A87019 S31508006CD8280032BD0200491C0A23B2FBF3F2002A37 @@ -1747,19 +1747,19 @@ S31508006CF800FB1320303008700A20B2FBF0F2002A95 S31508006D08F2D10800704770B504000025002609E08E S31508006D183038C0B20A2800DBC01FEDB2290151FA83 S31508006D2880F5761CF6B2022E0FDAF6B2305D00F060 -S31508006D3833FDC0B2B0F13001172904D2C0B2B0F1A0 +S31508006D383BFDC0B2B0F13001172904D2C0B2B0F198 S31508006D483A010729E4D2002001E02800C0B270BD44 S31508006D5880B500F036F8002811D000F09AFC002813 S31508006D680DD0FFF7C3FBFEF713FC00F02EF8044915 S31508006D7808400449086000F028F84068804701BDC3 S31508006D8880FFFF1F08ED00E070B504000D0016002F S31508006D9805E0287820706D1C641C00F02FF8300078 -S31508006DA8461E80B20028F4D170BD80B500F000FDFB -S31508006DB801BD80B500F007FD02BD80B500F02DFDC8 -S31508006DC802BD80B500F080FD02BD80B500F0C0FDAB -S31508006DD802BD80B500F03BFD002801D1002001E086 -S31508006DE800F09BFD02BD10B5040010000A00010062 -S31508006DF8200000F0D5FE200010BD7047704700003F +S31508006DA8461E80B20028F4D170BD80B500F008FDF3 +S31508006DB801BD80B500F00FFD02BD80B500F035FDB8 +S31508006DC802BD80B500F088FD02BD80B500F0C8FD9B +S31508006DD802BD80B500F043FD002801D1002001E07E +S31508006DE800F0A3FD02BD10B5040010000A0001005A +S31508006DF8200000F0DDFE200010BD70477047000037 S31508006E08F0B4002400E0641CE4B2122C3CD24AF226 S31508006E18104580B2E4B2994E16F81460E4B2974F5A S31508006E2817EB44077F78BE19761C06FB00F695FB18 @@ -1770,7 +1770,7 @@ S31508006E680D88002DCFD00D88B5F5806FCBDCE4B240 S31508006E78824810F814001070E4B2804810EB4400F9 S31508006E8840781870012000E00020F0BC704780B5F3 S31508006E9800AB0DF101020DF102014FF4FA70FFF78C -S31508006EA8AFFFC0B2012803D0F0217548FFF7CCFA26 +S31508006EA8AFFFC0B2012803D0EC217548FFF7CCFA2A S31508006EB87448002101607448006850F4004072491B S31508006EC8086001E0FFF79AFF6F4800680004F9D4E4 S31508006ED86D48006830F002006B4908606A48006827 @@ -1786,7 +1786,7 @@ S31508006F68006830F48040504908605048006830F49A S31508006F7880404E4908604848006850F480404649B1 S31508006F88086044480068400840004249086001BD56 S31508006F9838B504000D0046480068400104D44FF48B -S31508006FA8A2713748FFF750FA4248006810F0010006 +S31508006FA8A0713748FFF750FA4248006810F0010008 S31508006FB8404908603F4800683F4908433D4908601A S31508006FC83E48EDB20560E078A178090451EA006008 S31508006FD8617850EA01202178084339490860E07940 @@ -1799,8 +1799,8 @@ S3150800703812680270264A1268120A4270244A1268AE S31508007048120C8270224A1268120EC270214A1268FD S315080070580271204A1268120A42711E4A1268120CF4 S3150800706882711C4A1268120EC2711748006850F0DD -S315080070782000154A10600800C0B2704784A90008A5 -S3150800708888A70008146800400068004004680040A3 +S315080070782000154A10600800C0B2704794A9000895 +S3150800708898A7000814680040006800400468004093 S315080070981C680040006600401C6600400C660040FC S315080070A8B0660040B46600400466004014660040B6 S315080070B80868004080690040000020FC8469004098 @@ -1808,12 +1808,12 @@ S315080070C8886900408C6900400C680040B069004037 S315080070D8B8690040BC69004000B585B04FF4614006 S315080070E800900020ADF804000020ADF80600002046 S315080070F8ADF808000020ADF80C000C20ADF80A0021 -S3150800710800A9514800F080FD01214F4800F0DEFD36 +S3150800710800A9514800F088FD01214F4800F0E6FD26 S3150800711805B000BD70B504000D00EDB2412D03DBC6 -S315080071287B214A48FFF790F92800C0B200F074F8A6 -S31508007138C0B2012803D07F214448FFF785F9002605 +S3150800712876214A48FFF790F92800C0B200F074F8AB +S31508007138C0B2012803D07A214448FFF785F900260A S315080071480DE0FFF75BFEB6B2305D00F065F8C0B239 -S31508007158012803D088213D48FFF776F9761C2800D0 +S31508007158012803D083213D48FFF776F9761C2800D5 S31508007168C0B2B6B280B28642EBD370BD10B5040081 S3150800717837480078002813D1364800F03DF801282A S3150800718838D134480078002834D0FEF70FFA324947 @@ -1824,26 +1824,26 @@ S315080071C824490978884215D12448027892B2244974 S315080071D82000FFF7D9FD1E480021017001200AE0AA S315080071E8FEF7E4F91C4909686431814202D2184855 S315080071F800210170002010BD10B504002021124896 -S3150800720800F07AFD012805D10F4800F071FD2070BD +S3150800720800F082FD012805D10F4800F079FD2070AD S31508007218012000E0002010BD10B5040080210A48AE -S3150800722800F06AFD002801D100200CE0E4B2210034 -S3150800723889B2054800F058FD8021034800F05CFD36 -S315080072480028F9D0012010BD00140140C4A7000881 +S3150800722800F072FD002801D100200CE0E4B221002C +S3150800723889B2054800F060FD8021034800F064FD26 +S315080072480028F9D0012010BD00140140D4A7000871 S315080072581E2E0020182A0020CC2D00201D2E0020C6 S31508007268192A002080B500F007F94021DFF8D8036D S3150800727800F015F9DFF8D41308704021DFF8D003B9 S3150800728800F00DF9DFF8CC130870DFF8C0030078B2 -S31508007298FF2804D0DFF8BC030078FF2804D17D2135 +S31508007298FF2804D0DFF8BC030078FF2804D178213A S315080072A8DFF8B403FFF7D0F8DFF8B0030090DFF88B -S315080072B8B033DFF8B0230121DFF8AC0300F02AFD6C -S315080072C801BD80B5DFF8A00300F0D5FF002000F067 +S315080072B8B033DFF8B0230121DFF8AC0300F032FD64 +S315080072C801BD80B5DFF8A00300F0DDFF002000F05F S315080072D8DDF901BD70B504000D00EDB2402D04DBE3 -S315080072E89F21DFF87403FFF7AFF82800C0B200F053 -S315080072F862F8C0B2012804D0A321DFF85C03FFF7BF +S315080072E89A21DFF87403FFF7AFF82800C0B200F058 +S315080072F862F8C0B2012804D09E21DFF85C03FFF7C4 S31508007308A3F800260EE0FFF779FDB6B2305D00F067 -S3150800731852F8C0B2012804D0AC21DFF83C03FFF7C5 +S3150800731852F8C0B2012804D0A721DFF83C03FFF7CA S3150800732893F8761C2800C0B2B6B280B28642EAD371 -S3150800733870BD10B50400CC4800F0A8FFCB4800780B +S3150800733870BD10B50400CC4800F0B0FFCB48007803 S31508007348002810D1CA4800F02EF8012809D1C848E3 S315080073580078002805D0C54801210170C5480021D4 S315080073680170002010BDC3480078C1494018401C68 @@ -1855,21 +1855,21 @@ S315080073B8E7F8C0B202BD80B50100C9B2A348007893 S315080073C800F086F8C0B202BD38B5A048007800F0CB S315080073D82AF90400E4B2002C23D0E4B2412C00DBDD S315080073E84024002512E000A99848007800F0C8F85B -S315080073F8C0B2012804D040F229119748FFF724F8AB +S315080073F8C0B2012804D04FF492719748FFF724F8D1 S31508007408EDB29E489DF8001029546D1CEDB2E4B201 S31508007418A542E8D3E4B22300984A8121924800F0AD -S31508007428BBFE31BD38B50024C0B228218E4A01FBFF -S315080074380020D0F88C030400002510E001F0AFFA0C +S31508007428C3FE31BD38B50024C0B228218E4A01FBF7 +S315080074380020D0F88C030400002510E001F0B7FA04 S31508007448ADB2295C8348007800F042F8C0B201283A -S3150800745804D04FF4A4718048FEF7F6FF6D1CADB250 -S31508007468A4B2A542EAD301F09AFA02004023012100 -S315080074787D4800F06EFE31BD8149824A002004E04D +S3150800745804D040F243118048FEF7F6FF6D1CADB222 +S31508007468A4B2A542EAD301F0A2FA020040230121F8 +S315080074787D4800F076FE31BD8149824A002004E045 S3150800748888744A6118311832401CC0B20028F7D0EF S315080074988874002048617C4879490160704710B4AF S315080074A8794A1268002A01D1FF200FE0764A126845 S315080074B85369754C236011749060D0600023537427 S315080074C81060C9B20818401E5060907C10BC7047FE -S315080074D838B504000D00E4B2022C04DB40F29F1113 +S315080074D838B504000D00E4B2022C04DB4FF4CD7174 S315080074E85D48FEF7B1FFE4B21820654900FB0410B1 S315080074F8407CE4B21821624A01FB0421097C8842CF S3150800750801D100203BE0E4B218205D4900FB0410D5 @@ -1880,7 +1880,7 @@ S315080075484F4A01FB0421C860E4B218204C4900FBE5 S3150800755804104068E4B21821494A01FB0421C968A5 S3150800756888420BD2E4B21820454900FB0410E4B25D S315080075781821434A01FB04210968C160012032BD6C -S3150800758838B504000D00E4B2022C04DB40F2C11140 +S3150800758838B504000D00E4B2022C04DB4FF4DE71B2 S315080075983148FEF759FFE4B21820394900FB0410B0 S315080075A8407C002801D100203CE0E4B21820344988 S315080075B800FB0410806800782870E4B21820304967 @@ -1891,881 +1891,882 @@ S315080075F81820234900FB04104068E4B21821204AE1 S3150800760801FB0421896888420BD2E4B218201C4978 S3150800761800FB0410E4B21821194A01FB0421096881 S315080076288160012032BD10B50400E4B2022C04DBE7 -S3150800763840F2E1110848FEF707FFE4B2182010499E +S315080076384FF4EE710848FEF707FFE4B21820104920 S3150800764800FB0410407C10BD5D2A00205C2A00203F -S31508007658A12A0020A02A002000A8000894000020DB +S31508007658A12A0020A02A002010A8000894000020CB S315080076680000002078000020A8130020272E0020FC S31508007678642B0020262E0020652B0020A42B002032 S31508007688242C00203C2C0020F42D0020704770473D -S31508007698704780B501213B48FCF7EDF9012801D16F +S31508007698704780B501213F48FCF7EDF9012801D16B S315080076A8002000E0012002BD00B589B000A820210D -S315080076B801F08EF900A93448FAF7F2FB002808D138 +S315080076B801F096F900A93848FAF7F2FB002808D12C S315080076C80098002805D09DF80800C00601D40120B6 -S315080076D800E0002009B000BD2B48704780B52B484C -S315080076E8002180F824120A2229492848F9F7CCFFEC -S315080076F8002803D12548012180F8241201BD80B548 -S31508007708224890F82402012802D12048FAF7DFFA1D -S315080077184021204800F0F0FA0028F9D01A48FAF76C -S31508007728E9FB01BD80B5194890F82402012802D161 -S315080077381648FAF7CCFA01BD10B50400134890F8B4 -S315080077482402012819D111492000FAF784FC0028D7 -S3150800775813D50E48002180F824120C48FAF7B7FA10 -S315080077680BE0217889B20B4800F0BEFA8021094857 -S3150800777800F0C2FA0028F9D0641C20780028F0D155 -S3150800778810BD0000000002405CAA0008F41D002095 -S3150800779884AB00080014014080B501F01CF902BD4D -S315080077A830380A2801D2012000E00020C0B270470C -S315080077B8DFF8DC035FF0FF310160DFF8D8035FF01C -S315080077C8FF310160704770B504000D0016002000EF -S315080077D800F0B3F9FF2805D02819401E00F0ADF9C6 -S315080077E8FF2801D1002017E0600A4FF400714843CA -S315080077F8DFF8A4130968884207D12B003200210054 -S31508007808DFF8900300F0DFF806E02B0032002100CD -S31508007818DFF87C0300F0D7F870BD70B504000D00DA -S31508007828200000F08AF906002819401E00F085F99C -S31508007838F6B2FF2E02D0C0B2FF2801D1002005E01B -S315080078480100C9B23000C0B200F03BF970BD80B57E -S3150800785800200090DFF83C03006810F1010F01D101 -S31508007868012030E00098CB4949680818009000982C -S31508007878C8498968081800900098C649C968081848 -S3150800788800900098C3490969081800900098C149EA -S315080078984969081800900098BE498969081800902F -S315080078A80098BC49C969081800900098C043009018 -S315080078B80098401C009000AA0421B748006810F5F3 -S315080078C8C470FFF780FF02BD0020B349096809683C -S315080078D80818B149096849680818AF4909688968DC -S315080078E80818AD490968C9680818AB4909680969D3 -S315080078F80818A949096849690818A74909688969CA -S315080079080818A549096811F5C471096808180028EE -S3150800791801D1012000E00020704780B59D48006825 -S3150800792810F1010F06D09B4800F090F8002801D105 -S3150800793800200CE09648006810F1010F06D094481C -S3150800794800F084F8002801D1002000E0012002BDDB -S3150800795891480068704780B54FF40072B1FBF2F39E -S3150800796803FB1213002B01D000200BE002688A42A1 -S3150800797801D1012006E001604FF40072001DFFF7EF -S3150800798803FA012002BD38B504000D008148844277 -S3150800799808D17F4C29002000FFF7DDFF002810D109 -S315080079A800200FE07C480068854203D1794C7A4864 -S315080079B80568EFE7200000F049F80028EAD100201A -S315080079C800E0200032BD2DE9F04104000F00150043 -S315080079D81E00780A4FF4007101FB00F8206810F1C0 -S315080079E8010F07D141462000FFF7B5FF002801D14E -S315080079F8002029E02068404508D041462000FFF7C6 -S31508007A08C2FF0400002C01D100201DE02068381AA6 -S31508007A180019071DFFF7F2F9201D381AB0F5007F7F -S31508007A280AD318F500712000FFF7ADFF0400002CF3 -S31508007A3801D1002008E0271D287838707F1C6D1CA6 -S31508007A48761E002EE6D10120BDE8F0812DE9F04129 -S31508007A5804000125206800F070F8C0B2FF2801D19B -S31508007A6800202CE000F0C2FFF32001F059F801F0DD -S31508007A785AF8012803D100F0C9FF00201FE05FF07B -S31508007A88000801E018F10108B8F1800F13D2206840 -S31508007A9810EB880614EB88004768FFF7AFF939003A -S31508007AA8300001F014F8082801D0002503E03068F2 -S31508007AB8B842E7D0002500F0A9FF2800C0B2BDE803 -S31508007AC8F08138B504000D00EDB2E4B2A54201D242 -S31508007AD8002031E03048007AE4B2844205D32E48C3 -S31508007AE890F86800EDB2A84201D2002024E000F020 -S31508007AF87DFFF32001F014F801F015F8012803D1E9 -S31508007B0800F084FF002017E000E0641CEDB2E4B240 -S31508007B18A5420ED3FFF772F90221E4B21F4830F8DE -S31508007B28140000F07CFF0828EFD000F06FFF002053 -S31508007B3802E000F06BFF012032BD38B504000025CD -S31508007B4800E06D1CEDB2092D1FD2FFF757F9EDB20B -S31508007B580C20114900FB051000688442F1D3EDB2E8 -S31508007B680C200D4900FB05100068EDB20C210A4AE5 -S31508007B7801FB0521496808188442E2D2EDB20C20B7 -S31508007B88054900FB0510007A00E0FF2032BD000019 -S31508007B981C2000202022002078A60008D8A8000863 -S31508007BA862F30F2262F31F42401810F0030308D04D -S31508007BB8C91A1FD3DB0748BF00F8012D28BF20F8CC -S31508007BC8022D130030B414461546103928BF20E98B -S31508007BD83C00FAD8490728BF20E90C0048BF40F8F6 -S31508007BE8042D890028BF20F8022D48BF00F8012D6A -S31508007BF830BC7047C91818BF00F8012DCB0728BF35 -S31508007C0800F8012D704700007FB504000D0000201C -S31508007C18002100220023AE89002E208A30F4405025 -S31508007C28E98808432082A08927490840A9882A891B -S31508007C3811436A8911430843A081A08A30F4407029 -S31508007C48A9890843A08200A8FBF75AFF1C48844262 -S31508007C5802D01C48844201D1039900E00299A08900 -S31508007C68000407D5192000FB01F029684900B0FB74 -S31508007C78F1F206E0192000FB01F029688900B0FB3B -S31508007C88F1F26420B2FBF0F000010109642303FB5A -S31508007C981123A189090408D5D90032316422B1FB18 -S31508007CA8F2F111F00701084307E01901323164229D -S31508007CB8B1FBF2F111F00F01084320817FBD0000E6 -S31508007CC80010014000140140F3E9FFFFC9B200297A -S31508007CD804D0818951F40051818104E081894DF6E7 -S31508007CE8FF72114081817047C905C90D81807047A7 -S31508007CF88088C005C00D7047002289B2B1F5007F9B -S31508007D080088084201D0012200E000221000C0B213 -S31508007D18704700002DE9F04104000D0016001F0009 -S31508007D28DDF81880200000F039FF200000F014F86C -S31508007D38C4F8E475C4F8E885C4F8EC652900C9B23E -S31508007D48200000F06EF9D4F8E8050068804720009E -S31508007D5800F080FFBDE8F081002070471CB50400DC -S31508007D6800A9200001F04CFA9DF8000010F01F0049 -S31508007D78C0B2002803D002280BD005D30EE000A90C -S31508007D88200000F07BFF10E000A9200000F0A2FF09 -S31508007D980BE000A9200000F0C4FF06E09DF80000EB -S31508007DA810F08001200000F016FA002016BD10B564 -S31508007DB80400C9B2002933D114F55D7094F811117D -S31508007DC803293CD18168C269914217D2C169826880 -S31508007DD8891AC161E178012903D18168C2688918BD -S31508007DE8C160C1698268914201D2C26900E08268AD -S31508007DF892B2C168200001F07FFA20E0D4F8E405C1 -S31508007E080069002808D094F81201032804D1200034 -S31508007E18D4F8E41509698847200001F078FA0EE0D5 -S31508007E28D4F8E4058069002809D094F812010328D3 -S31508007E3805D1C9B22000D4F8E425926990470020F4 -S31508007E4810BD38B50400C9B200294FD114F58E758E -S31508007E5894F8110102283ED1A868E969884211D226 -S31508007E68E869A968401AE861E078012803D1A86892 -S31508007E78E9684018E860EA6992B2E968200001F002 -S31508007E8830FA28E0286AA968B0FBF1F201FB12006B -S31508007E9800280FD1286AA96888420BD3286A696A14 -S31508007EA8884207D200220021200001F01AFA002091 -S31508007EB8686210E0D4F8E405C068002808D094F889 -S31508007EC81201032804D12000D4F8E415C9688847A4 -S31508007ED8200001F02EFA94F81601012815D1200081 -S31508007EE800F015F8002084F816010EE0D4F8E40529 -S31508007EF84069002809D094F81201032805D1C9B2A7 -S31508007F082000D4F8E42552699047002032BD00695C -S31508007F18024909684160002070470000FC2D0020CE -S31508007F2810B50400002340220021200000F0C4F800 -S31508007F38002340228021200000F0BEF8012084F8A2 -S31508007F481201A078D4F8E81549688847002010BDBA -S31508007F5810B50400D4F8E8050069804794F81301B9 -S31508007F6884F81201032084F81201002010BD80B598 -S31508007F7890F8121180F81311042180F81211D0F81C -S31508007F88E805C0688047002002BD80B5D0F8E4152A -S31508007F98C969002903D0D0F8E415C96988470020BB -S31508007FA802BD10B50400C9B22000D4F8E425126849 -S31508007FB89047D4F8E80580688047002010BD80B54A -S31508007FC8C9B2D0F8E42552689047002002BD80B5AA -S31508007FD8D0F8E415096A8847002002BD80B5D0F8AC -S31508007FE8E415496A8847002002BD10B50400D4F88C -S31508007FF8E80540698047012084F81501002010BD6E -S3150800800810B50400D4F8E8058069804700212000E7 -S31508008018D4F8E42552689047002084F81501002012 -S3150800802810BD10B50400C9B2200001F009FA0120F4 -S3150800803884F81201002084F81401002011E0282190 -S3150800804801FB004111F58E7101224A700870C8803B -S315080080580022CA7040228A600022CA6000224A6149 -S31508008068401C61788842EAD3002011E0282101FBE8 -S31508008078004111F55D7100224A700870C880002217 -S31508008088CA7040228A600022CA6000224A61401CDF -S3150800809861788842EAD3200001F0A4FA200001F0AA -S315080080A83CFA0021200001F0F1FA200001F029FB32 -S315080080B8200001F08BFA10BD38B5C9B20C0608D5F0 -S315080080C8C9B211F07F04282505FB040414F58E743B -S315080080D807E0C9B211F07F04282505FB040414F546 -S315080080E85D7411F07F052570C1F3C011617092B2F5 -S315080080F8A260E3706178002901D02178E180DBB2BB -S31508008108022B01D100212171210001F021FC002058 -S3150800811832BD80B5C9B20A0608D5C9B211F07F02C0 -S31508008128282303FB020212F58E7207E0C9B211F082 -S315080081387F02282303FB020212F55D7211F07F0302 -S315080081481370C1F3C0115170110001F03AFC0020F8 -S3150800815802BD38B5C9B211F07F04282505FB040409 -S3150800816814F55D74E2609BB263610023A361002382 -S31508008178637011F07F012170C178012900D122614D -S315080081882178002903D1210001F0F9FC02E0210039 -S3150800819801F042FC002032BD38B5C9B211F07F049F -S315080081A8282505FB040414F58E740125657011F05D -S315080081B87F012170E26022610021A1616361217853 -S315080081C8002903D1210001F0DAFC02E0210001F0C0 -S315080081D823FC002032BD80B5C9B20A0608D5C9B243 -S315080081E811F07F02282303FB020212F58E7205E0BE -S315080081F8C9B2282202FB010212F55D7201239370A7 -S3150800820811F07F031370C1F3C011C9B211F001014F -S315080082185170110001F046FD002002BD80B5C9B2B3 -S315080082280A0608D5C9B211F07F02282303FB020201 -S3150800823812F58E7205E0C9B2282202FB010212F570 -S315080082485D720023937011F07F031370C1F3C01198 -S31508008258C9B211F001015170110001F043FD002067 -S3150800826802BD0022C9B261F30A12016909681143FD -S3150800827800690160704780B50169496851F00201D3 -S3150800828800694160032000F0F2FC01BD70B50400E6 -S315080082980026200001F01AFA00286FD0200001F005 -S315080082A81FFA0500002D01D1002068E0C5F3C0407B -S315080082B8002803D0200000F060F90643C5F3804083 -S315080082C8002803D0200000F0E1F80643C5F3400073 -S315080082D8002804D0002050F00200E1684861E80F41 -S315080082E8002803D0200000F06CF80643C5F3C02028 -S315080082F8002803D0200000F088F80643C5F3C0001C -S31508008308002803D0200000F09AF90643C5F30010A8 -S31508008318002803D0200000F0A0F90643C5F3003072 -S31508008328002803D0200000F028FA0643C5F3403099 -S31508008338002803D0200000F07DFA0643C5F3005054 -S31508008348002803D0200000F09AFA0643C5F34050E7 -S31508008358002803D0200000F0A0FA0643C5F3807071 -S31508008368002803D0200000F00BF80643C5F3800068 -S31508008378002803D0200000F012F80643300070BD2C -S3150800838810B504002000DFF830150968496A8847DF -S31508008398002050F08040E1684861012010BD38B5DA -S315080083A80400E0684568C5F38000002805D0200069 -S315080083B8DFF804150968896A8847E0684560012076 -S315080083C832BD10B50400A07A002808D0D4F80C01EC -S315080083D830F0020040084000D4F80C11086000206C -S315080083E850F001002169496831EA000021694860AE -S315080083F82000DFF8C414096889698847002050F006 -S315080084080040E1684861012010BD10B582B004003B -S3150800841800208DF8000094F812018DF8000020005D -S31508008428DFF8941409684969884720698168002033 -S3150800843850F40060E2685061A07A002824D0C80782 -S3150800844822D594F8150101281ED19DF800000328A5 -S315080084581AD1002050F00100D4F80C11096801431C -S31508008468D4F80C21116050F00200D4F80C110968F0 -S315080084780843D4F80C110860DFF84004006850F087 -S315080084880600DFF838140860012016BDF8B50400A0 -S3150800849800250027200001F055FC060069E0F007D2 -S315080084A865D52900C9B2200000F00AFA0700F807BE -S315080084B822D50120A8402169496B31EA00002169C3 -S315080084C84863002757F0010714EB85008069876021 -S315080084D82900C9B22000DFF8E023126852689047DD -S315080084E8E078012808D1002D06D194F8110104284E -S315080084F802D1200001F02DFCC7F3C000002806D0E1 -S31508008508002757F0080714EB850080698760C7F3CA -S315080085180010002806D0002757F0100714EB85002E -S3150800852880698760C7F38010002806D0002757F0AF -S31508008538400714EB850080698760C7F34000002868 -S3150800854806D0002757F0020714EB85008069876074 -S31508008558C7F3C01000280AD02900200000F0C9F87F -S31508008568002757F0800714EB8500806987606D1C23 -S315080085787608002E93D10120F2BDF8B5040000252F -S315080085880027200001F0CDFB060054E0F00750D57F -S315080085982900C9B2200001F0CBFB0700F8072DD542 -S315080085A8002757F0010714EB8500406D8760E078CF -S315080085B8012810D114EB8500406D0069282101FBBC -S315080085C80541D1F87C134003400B081A282101FB02 -S315080085D80541C1F88C032900C9B22000B64A1268B9 -S315080085E812689047E078012808D1002D06D194F83A -S315080085F81101052802D1200001F0ABFBC7F34000A2 -S31508008608002806D0002757F0020714EB8500406DAE -S315080086188760C7F3C00000280BD02000A649096860 -S3150800862889688847002757F0080714EB8500406DC6 -S3150800863887606D1C7608002EA8D10120F2BD10B5FA -S31508008648040020009C490968C9688847002050F03A -S315080086580800E1684861012010BDF8B50400002546 -S3150800866855F01005E0688069A843E1688861E06804 -S31508008678066A16F00F00282101FB004010F55D7701 -S31508008688700C10F00F00012808D0022807D003281C -S315080086981AD0042819D0062818D023E022E0300971 -S315080086A8400510D0C6F30A1292B2F968200000F005 -S315080086B8B2FEC6F30A10F9684018F860B869C6F336 -S315080086C80A110818B8610DE00CE00BE0082204F25C -S315080086D8CC51200000F09FFEB869C6F30A110818A5 -S315080086E8B861FFE7E06880692843E1688861012086 -S315080086F8F2BD2DE9F04104000D00002600202821CE -S3150800870801FB054111F58E777969BA69891A0E0050 -S31508008718B968B14200D2BE68F01C5FEA900814EB4B -S315080087288500806980691BE07869B969461AB8685E -S31508008738B04200D2BE68F01C5FEA900833009BB2CC -S315080087482A00D2B2F968200000F045FEF868301809 -S31508008758F860B8693018B86114EB850080698069D3 -S3150800876880B2804506D2B8697969884202D27869A2 -S315080087780028D9D10120BDE8F0812DE9F843040085 -S3150800878800200025002600275FF000085FF0000992 -S3150800879850F001002169496831EA000021694860FA -S315080087A80021200000F02BFF00200AE014EB8001CE -S315080087B88969FF228A6014EB8001496DFF228A6065 -S315080087C8401C61788842F1D320695FF0FF318161E6 -S315080087D8012060F30F05012060F31F452069C56174 -S315080087E856F0080656F0010656F002062069466154 -S315080087F857F0010757F0080757F00207206907617D -S315080088082069D0F8008038F4FE682069C0F800802E -S31508008818200001F09EFA5FF0000959F48059E068D3 -S31508008828C0F8149020002449096809698847012076 -S31508008838BDE8F28338B50400200001F064F8E06862 -S31508008848C568200001F049F8032808D10020A0705F -S315080088584FF40070A080092060F38D2506E00120FA -S31508008868A0704020A080052060F38D25E068C560CB -S31508008878002050F40050E1684861012032BD38B53F -S315080088880400002520000C490968C969884755F479 -S315080088988015E0684561012032BD38B50400002519 -S315080088A8200005490968096A884755F40015E068EB -S315080088B84561012032BD0000D800002010ED00E017 -S315080088C80269126903695B6BCB4013F0010352EA2C -S315080088D8C312C9B210EB81008069806810407047DE -S315080088E810B504000223402281212000FFF7E4FB8B -S315080088F80223402201212000FFF7DEFB40232F4AEE -S3150800890801212000FFF725FC002010BD10B5040042 -S3150800891881212000FFF7FDFB01212000FFF7F9FB65 -S31508008928002010BD10B51722254B0C7814F0600FDF -S3150800893827D14C78062C04D00A2C14D00B2C17D027 -S315080089481FE04C88A4B2240AA4B2212C06D11D4BD8 -S31508008958CA88182A01DB172200E0CA8892B21900C9 -S3150800896800F0ABFC0DE00122174900F0A6FC08E070 -S315080089788A78002A03D188781349086001E000F04C -S3150800898861FC002010BD80B5FEF71EFD002002BD63 -S3150800899880B50800C0B2FEF745FD002002BD0748AD -S315080089A8704780B590F81201032801D1FEF70CFD2F -S315080089B8002002BD2020088004487047E42B0020C8 -S315080089C8610000206A000020F82D002058000020C9 -S315080089D8002201F0E7B910B50400200001F0FBF900 -S315080089E8002801D0203CFFE7200010BDDFF8700101 -S315080089F80068002809D5DFF86C01DFF86C110160FA -S31508008A08DFF86001DFF8641101607047DFF850018C -S31508008A18006850F00040DFF848110860704738B51C -S31508008A28040000250820C9B2002901D100250DE057 -S31508008A38C9B2012902D14FF4807507E0C9B20229E3 -S31508008A4802D14FF4007501E04FF4407500F092F832 -S31508008A58C0B2082839D1DFF80801006830F4407038 -S31508008A68DFF8FC100860DFF8F80000682843DFF82C -S31508008A78F0100860DFF8E800006830F0F800DFF862 -S31508008A88E0100860DFF8D800006854F002010843CF -S31508008A98DFF8CC100860DFF8C800006850F48030AA -S31508008AA8DFF8BC10086000F065F8DFF8B41009684C -S31508008AB831F00201DFF8A8201160DFF8A410096870 -S31508008AC831F0F801DFF898201160C0B232BD70B5F0 -S31508008AD804000D00082600F04DF80600F6B2082E28 -S31508008AE81BD11F48006830F440701D4908601C48AF -S31508008AF8006850F400701A4908601948006850F070 -S31508008B08010017490860256000F034F80600144883 -S31508008B18006840084000124908603000C0B270BDBD -S31508008B28134908607047082011490968C90301D51F -S31508008B38012013E00E480068C00601D505200DE09F -S31508008B480B48006810F0EF0F01D0062006E0084829 -S31508008B580068800701D5072000E00820C0B27047E2 -S31508008B68103C0240043C024023016745AB89EFCD1F -S31508008B780C3C024080B508208DF80000FFF7D3FFAB -S31508008B888DF8000003E0FFF7CEFF8DF800009DF88A -S31508008B9800000128F7D09DF8000002BD00B583B093 -S31508008BA801210120FBF71EF84FF4C8500090032056 -S31508008BB88DF8050002208DF8040000208DF80600BF -S31508008BC800208DF8070000A92148FAF701FF0A22B4 -S31508008BD808211F48FAF75AFF0A220B211C48FAF7F8 -S31508008BE855FF0A220C211A48FAF750FF4FF400706D -S31508008BF8009003208DF8050000208DF80400012058 -S31508008C088DF8060000208DF8070000A91048FAF725 -S31508008C18DFFE4FF48060009001208DF806000120E1 -S31508008C288DF8070003208DF8050000A90848FAF70B -S31508008C38CFFE0A220A210648FAF728FF01214FF42F -S31508008C488040FAF7FFFF01218020FAF7DBFF07BD0E -S31508008C5800000240704700000100481E002905D0A0 -S31508008C6800211C29F8D200BF491CFAE7704780B5CD -S31508008C784FF47A714843FFF7EFFF01BD10B500249A -S31508008C884A78002A18D0012A1CD0032A17D0052AA0 -S31508008C9809D0062A04D0082A0BD0092A06D014E0D7 -S31508008CA800F0F3F813E000F080F910E000F0A9F9F5 -S31508008CB80DE000F006FA0AE000F01FFA07E000F0F7 -S31508008CC837FA04E000F082FA01E000F0BBFA200067 -S31508008CD8C0B210BD70B504000D00002694F8120144 -S31508008CE8032817D1287902280FDA29002000D4F892 -S31508008CF8E42592689047E88800280AD1F6B2002E3B -S31508008D0807D1200000F003FB03E02900200000F04B -S31508008D1899FA03E02900200000F094FA3000C0B25E -S31508008D2870BD70B505000E000024B188707800285B -S31508008D3860D0012830D0032840F0A48095F81201A5 -S31508008D48022802D003280BD021E0C9B2002906D090 -S31508008D58C9B2802903D0C9B22800FFF73CFA1AE03D -S31508008D687088002809D1C9B2002906D0C9B2802955 -S31508008D7803D0C9B22800FFF72EFA31002800D5F823 -S31508008D88E42592689047280000F0C1FA03E031000C -S31508008D98280000F057FA75E095F81201022802D063 -S31508008DA803280BD021E0C9B2002906D0C9B2802908 -S31508008DB803D0C9B22800FFF70EFA1AE0708800280F -S31508008DC812D1C9B200290CD0C9B2802909D0C9B2B2 -S31508008DD82800FFF723FA31002800D5F8E425926819 -S31508008DE89047280000F093FA03E03100280000F0C5 -S31508008DF829FA47E095F81201022802D003280BD071 -S31508008E083BE0C9B2002906D0C9B2802903D0C9B245 -S31508008E182800FFF7E0F934E0C9B2080613D5C9B245 -S31508008E2811F07F00282101FB005090F81E01002848 -S31508008E3804D0DFF884030121016017E0DFF878031E -S31508008E480021016012E0080610D4C9B2282000FBE8 -S31508008E58015090F87603002804D0DFF85C03012156 -S31508008E68016003E0DFF85003002101600222DFF801 -S31508008E784813280000F021FA03E03100280000F022 -S31508008E88E1F9FFE72000C0B270BD38B504000D004F -S31508008E98688880B2000AC0B2012808D0022825D0FE -S31508008EA803282ED0062867D007286AD06EE000A9BE -S31508008EB8A078D4F8EC2512689047E988402903D0A9 -S31508008EC894F81211012902D10821ADF80010BDF84D -S31508008ED80010002968D0E988002965D0BDF8001077 -S31508008EE8EA88914257D2BDF8001055E000A9A07843 -S31508008EF8D4F8E425926A904702214170C4F8F0052F -S31508008F08E5E7A878002808D0022814D00CD3042846 -S31508008F181FD017D3052823D029E000A9A078D4F8AC -S31508008F28EC2552689047D2E700A9A078D4F8EC2532 -S31508008F3892689047F7E700A9A078D4F8EC25D26894 -S31508008F489047F0E700A9A078D4F8EC25126990476D -S31508008F58E9E700A9A078D4F8EC2552699047E2E732 -S31508008F6800A9A078D4F8EC2592699047DBE7290090 -S31508008F78200000F067F917E02900200000F062F9E0 -S31508008F8812E02900200000F05DF90DE02900200014 -S31508008F9800F058F908E0E988ADF80010BDF8002097 -S31508008FA80100200000F089F931BD38B50400888829 -S31508008FB8002822D1C88800281FD1887810F07F0594 -S31508008FC894F81201032803D1200000F03BF917E0B2 -S31508008FD884F814512900C9B22000FFF742F9200085 -S31508008FE800F095F9EDB2002D03D0022084F812019D -S31508008FF806E0012084F8120102E0200000F022F9B8 -S3150800900831BD10B5040048886C4A10706B48007862 -S31508009018022803DB200000F015F951E094F8120144 -S31508009028022802D0032818D047E0644800780028A8 -S315080090380FD06248007884F81001032084F81201DA -S315080090485E4801782000FEF7ACFF200000F05FF9C3 -S3150800905802E0200000F05BF932E058480078002862 -S315080090680FD1022084F812015448007884F81001B8 -S31508009078524801782000FEF7A2FF200000F047F9C1 -S315080090881AE04E48007894F81011884211D094F8DE -S3150800909810112000FEF793FF4848007884F810015D -S315080090A8464801782000FEF77CFF200000F02FF9DB -S315080090B802E0200000F02BF902E0200000F0C2F8D8 -S315080090C810BD80B5CA88012A02D000F0BBF813E0A3 -S315080090D890F81221022A02D0032A05D00AE00122B2 -S315080090E8374900F0EAF807E0012210F5887100F020 -S315080090F8E4F801E000F0A6F801BD80B590F8122161 -S31508009108921E012A11D82F4901220A60D0F818118F -S31508009118002905D02B49096851F00201294A11602E -S315080091280222284900F0C9F801E000F08BF801BDD1 -S3150800913810B504000022488801280BD10120C4F87C -S3150800914818012000D4F8E42592689047200000F01A -S31508009158DEF830E0488802282DD1087900062AD199 -S3150800916820694068898889B20A0AD2B2012A07D0D2 -S3150800917819D3032A0CD007D3052A11D00CD312E029 -S31508009188012161F306100EE0022161F306100AE0D8 -S31508009198032161F3061006E0042161F3061002E0D4 -S315080091A8052161F3061008490860012084F81601AC -S315080091B8200000F0ACF810BD002E0020282E002054 -S315080091C8042E0020082E0020FC2D002010B50400CF -S315080091D894F81201801E01280ED8488801280AD159 -S315080091E80020C4F818012000D4F8E42592689047AE -S315080091F8200000F08CF802E0200000F023F810BDEB -S3150800920890F8CC250A7090F8CD254A7090F8CE25A6 -S3150800921890F8CF351B029A184A8090F8D02590F80E -S31508009228D1351B029A188A8090F8D22590F8D3353A -S315080092381B029A18CA80C988C0F84011012180F80B -S315080092481111704710B5040080212000FEF7C3FFEE -S3150800925800212000FEF7BFFF200000F07AFD10BDB0 -S31508009268F8B504000D0017000026002C1AD02000B7 -S3150800927800F019F84000801C3880F6B23888705516 -S31508009288761CF6B203207055761C08E0F6B22078EC -S315080092987055641C761CF6B200207055761C20782A -S315080092A80028F3D1F1BD002101E0491C401C0278D1 -S315080092B8002AFAD10800C0B2704710B5002492B245 -S315080092C8C0F83C2192B2C0F83821022380F811313F -S315080092D892B213000A000021FEF75EFF2000C0B212 -S315080092E810BD10B5002492B213000A000021FEF73B -S315080092F853FF2000C0B210BD10B5002413009BB25E -S315080093080A000021FEF725FF2000C0B210BD38B5B7 -S3150800931804000025042084F81101002300220021F6 -S315080093282000FEF739FF200000F013FD2800C0B220 -S3150800933832BD38B504000025052084F8110100233C -S31508009348002200212000FEF704FF200000F001FD9E -S315080093582800C0B232BD00000021C2685FF0FF33A2 -S315080093685360C2687FF08043536151F0004151F45D -S315080093780061C0688161704770B582B00400002535 -S315080093880026002000900320FFF766FCE0680069C5 -S315080093980090761CBB48864201D300201AE0009844 -S315080093A8C00F0028EFD00026009850F00100009062 -S315080093B8E06800990161E06800690090761CB14888 -S315080093C8864202D20098C007F5D40320FFF744FC6A -S315080093D82800C0B276BDF0B41C000023C578002D5D -S315080093E815D100250026A4B2E41C042794FBF7F43B -S315080093F82500D2B210EB8200D0F8D0000022160061 -S3150800940803E00A680260761C091DAE42F9D3180003 -S31508009418C0B2F0BC704710B4002392B2D21C042420 -S3150800942892FBF4F2D0F8D0000024230003E0046885 -S315080094380C605B1C091D9342F9D3080010BC7047E1 -S3150800944830B40A00002300210024C4700124847063 -S3150800945840248480D2B2012A0DD15FF0A0430122AC -S31508009468C27208220270042242704FF4A072C280A7 -S31508009478022202720CE0D2B2002A09D1824B0022DB -S31508009488C2720C220270062242704FF4A062C28091 -S31508009498C36013F50062026100220EE010EB820435 -S315080094A813EB421515F51065A56110EB820413EB4D -S315080094B8421515F530656565521C4478A242EDD308 -S315080094C813F58062426113F58862C0F8CC20002241 -S315080094D808E010EB820413EB421515F5A065C4F8ED -S315080094E89050521C0478A242F3D300220AE010EBEB -S315080094F882044FF4805505FB023515F58055C4F8E6 -S31508009508D050521C0478A242F1D313F56062C0F811 -S315080095180C210800C0B230BC704770B5040000259D -S31508009528002000210026227A012A26D1E068816BCC -S3150800953831F48031607A002801D051F48011E0684E -S3150800954881630020E168C968080030F0400030F4FB -S31508009558800030F4003030F40020E168C86020004C -S31508009568FFF70AFFE078012821D1052060F34406B1 -S3150800957856F02006E068866019E0E068C06850F092 -S315080095884000E168C8602000FFF7F6FE002151F4A4 -S31508009598803151F4802151F40021607A002801D0E5 -S315080095A851F48011E06881631420FFF760FBE078C6 -S315080095B8012808D1E0688668052060F3440656F055 -S315080095C82006E06886602800C0B270BD0021002227 -S315080095D852F00102C3689B681A43C0688260080093 -S315080095E8C0B270470021002252F00102C3689B6886 -S315080095F833EA0202C06882600800C0B2704710B534 -S3150800960882B00024002200230093009B53F0200315 -S315080096180093009B61F38A130093C168009B0B6152 -S31508009628C16809690091521C16498A4204D20099F0 -S31508009638C1F340110029F3D10320FFF70DFB2000E1 -S31508009648C0B216BD10B582B00024002100220092CF -S31508009658009A52F010020092C268009B1361C26811 -S3150800966812690092491C074A914204D2009AC2F329 -S315080096780012002AF3D10320FFF7EEFA2000C0B241 -S3150800968816BD0000410D03000000044010B5002473 -S31508009698C268D26832F0005232F08042C9B2012953 -S315080096A802D152F0005204E0C9B2002901D152F0A1 -S315080096B88042C068C2603220FFF7D9FA2000C0B2DB -S315080096C810BDC068406910F00100704780B5FFF703 -S315080096D8F8FF012801D0012000E00020C0B202BD31 -S315080096E80021C26852691100C068806901400800F3 -S315080096F8704702691268C9B261F30102006902601B -S315080097087047F8B504000025002000220026002727 -S315080097180021D4F80C315FF0000CC3F800C02369A7 -S315080097281B681A0032F4C05223691A60E27A012AC1 -S315080097382AD103212000FFF7DCFFE0688021416277 -S31508009748202060F31F46802060F30F06E0688662D3 -S3150800975816EB164060F30F07802060F31F47E06892 -S31508009768C0F8047117EB1740C0EA0707202060F312 -S315080097781F47E068C0F8087117EB1740C0EA0707E3 -S31508009788BFB2E068C0F80C7110212000FFF737FF58 -S315080097982000FFF757FF2069002101612069002191 -S315080097A8416120695FF0FF31816120690021C1614B -S315080097B800210FE0002014EB81029269106014EB77 -S315080097C8810080690022026114EB81008069FF220A -S315080097D88260491C607881420CD214EB810080694A -S315080097E80068C00F0028E5D0002050F0804050F0EF -S315080097F80060E0E700210FE0002014EB8102526DBB -S31508009808106014EB8100406D0022026114EB8100A0 -S31508009818406DFF228260491C607881420CD214EBA5 -S315080098288100406D0068C00F0028E5D0002050F080 -S31508009838804050F00060E0E7002151F4807120690B -S3150800984800698843084321690861E07801280ED130 -S31508009858002050F0010050F00200402161F38A0010 -S3150800986850F48030402161F359402169086320008B -S3150800987800F003F82800C0B2F2BD70B50400002550 -S315080098880026E06800218161E0687FF08041416137 -S315080098982000FFF761FDE078002801D156F0100690 -S315080098A856F4006656F4805656F4005656F4802642 -S315080098B856F4002656F0080656F4801656F400168E -S315080098C856F0804656F00406E0688069B04330438F -S315080098D8E16888612800C0B270BD00210069806807 -S315080098E8400810F00300002805D0022807D004D342 -S315080098F8032802D004E0032102E0022100E0012146 -S315080099080800C0B2704710B40021002402699268A2 -S3150800991883691B68520812F00302002A04D0022A37 -S3150800992805D001D3032A05D1DB0ADB0202E00322AC -S3150800993862F30A038269136054F4807402695268F0 -S31508009948A2432243006942600800C0B210BC7047AF -S3150800995870B40A000021002500235478012C0AD186 -S31508009968147810EB8404A469012592F90060B540BF -S3150800997865F30F0309E0147810EB8404646D012578 -S3150800998892F90060B54065F31F432568C5F3C036EC -S31508009998002E0DD1966866F30A05D67866F39345C0 -S315080099A8D28862F3995555F0805555F400452560D7 -S315080099B80269D2691A430069C2610800C0B270BC5C -S315080099C8704770B40A000021002300245578012D39 -S315080099D80BD1157810EB8505AD69012692F900209B -S315080099E816FA02F262F30F040AE0157810EB8505F9 -S315080099F86D6D012692F9002016FA02F262F31F44E9 -S31508009A0833F400432B600269D269A2430069C26134 -S31508009A180800C0B270BC704770B500240025002243 -S31508009A2800234E78012E62D10A7810EB82029269D9 -S31508009A3812680B7810EB83039B691B694D69002D27 -S31508009A4805D1DB0CDB04012565F3DC4311E04D6920 -S31508009A5865F312034D698E6875196D1E8E68B5FB18 -S31508009A68F6F565F3DC43CD78012D02D1012565F3BA -S31508009A785E730D7810EB8505AD692B61C378012BEC -S31508009A8806D10B7810EB83039B690D695D610FE0BE -S31508009A98CB78012B0CD04B69002B09D0012391F9FF -S31508009AA8005013FA05F503695B6B2B4305696B636D -S31508009AB8CB78012B08D103699B68DB0502D452F0E1 -S31508009AC8005201E052F0805252F0806252F0004291 -S31508009AD80B7810EB83039B691A60CA78012A4BD165 -S31508009AE84B699BB20A78C968FFF775FC44E00A789F -S31508009AF810EB8202526D12680B7810EB83035B6DCC -S31508009B081B694D69002D06D18D6865F31203012579 -S31508009B1865F3DC430EE04D698E6875196D1E8E680F -S31508009B28B5FBF6F565F3DC43C3F3C9458E6875439B -S31508009B3865F312030D7810EB85056D6D2B61C378F7 -S31508009B48012B05D10B7810EB83035B6D0D695D61FD -S31508009B58CB78012B07D14B79002B02D052F0005253 -S31508009B6801E052F0805252F0806252F000420978C1 -S31508009B7810EB8100406D02602000C0B270BDFCB4D5 -S31508009B88002200240023002500954D78012D48D190 -S31508009B9885692B682E6900964E69002E09D1009EA4 -S31508009BA8F609F60100960126009F66F3D447009742 -S31508009BB815E08E684F69BE4207D28E684E618E6878 -S31508009BC8009F66F30607009704E04E69009F66F350 -S31508009BD8060700970126009F66F3D4470097009E5C -S31508009BE82E61C678012E05D10E7810EB8606B66961 -S31508009BF80F69776153F0806353F000432B60C3788D -S31508009C08002B4BD14B69002B48D0012391F9001042 -S31508009C1813FA01F10C430169496B21430069416351 -S31508009C283CE00B7810EB83035B6D1B680C7810EB34 -S31508009C388404646D246900944C69002C0AD18C68E4 -S31508009C48009D64F3060500950124009D64F3D44538 -S31508009C5800950BE08C684C618C68009D64F30605DA -S31508009C6800950124009D64F3D44500950C7810EB03 -S31508009C788404646D009D2561C478012C05D10C788F -S31508009C8810EB8404646D0D69656153F0806353F0C5 -S31508009C980043097810EB8100406D03601000C0B2DC -S31508009CA8F6BC704710B4002200234C78012C0DD15D -S31508009CB8097810EB810080690368D90F002901D05B -S31508009CC853F0804353F40013036007E0097810EB58 -S31508009CD88100406D036853F4001303601000C0B296 -S31508009CE810BC704710B4002200234C78012C04D10C -S31508009CF80B7810EB8300806903E00B7810EB830080 -S31508009D08406D036833F40013CC78032C02D0C97865 -S31508009D18022901D153F0805303601000C0B210BC69 -S31508009D287047016989690069C0690140080C70476C -S31508009D38C9B210EB8101496D89680069406901401B -S31508009D4808007047016989690069C069014088B2D5 -S31508009D58704782B000210091009951F04041009166 -S31508009D680121009A61F3D44200921821009A61F3FE -S31508009D7806020092416D009A0A61C17801290ED13E -S31508009D880021426D00F2CC535361426D12681100EE -S31508009D9851F000415FF080221100406D016002B069 -S31508009DA87047000000B500BF130096469446103960 -S31508009DB828BFA0E80C50FAD85FEA417C28BF0CC037 -S31508009DC848BF40F8042BC90728BF20F8022B48BF0C -S31508009DD800F8012B00BD61381A2801D2012000E0DD -S31508009DE80020C0B27047000061006200630064008A -S31508009DF8650066006700680069006A006B006C0009 -S31508009E086D006E006F0070007100720073007400B8 -S31508009E18750076007700780079007A00A100A2001C -S31508009E28A300A500AC00AF00E000E100E200E300F3 -S31508009E38E400E500E600E700E800E900EA00EB00D0 -S31508009E48EC00ED00EE00EF00F000F100F200F30080 -S31508009E58F400F500F600F800F900FA00FB00FC002B -S31508009E68FD00FE00FF0001010301050107010901C4 -S31508009E780B010D010F011101130115011701190134 -S31508009E881B011D011F0121012301250127012901A4 -S31508009E982B012D012F0131013301350137013A0113 -S31508009EA83C013E01400142014401460148014B017B -S31508009EB84D014F01510153015501570159015B01E4 -S31508009EC85D015F01610163016501670169016B0154 -S31508009ED86D016F0171017301750177017A017C01C2 -S31508009EE87E019201B103B203B303B403B503B60303 -S31508009EF8B703B803B903BA03BB03BC03BD03BE0360 -S31508009F08BF03C003C103C303C403C503C603C7030A -S31508009F18C803C903CA0330043104320433043404B9 -S31508009F28350436043704380439043A043B043C0437 -S31508009F383D043E043F0440044104420443044404E7 -S31508009F48450446044704480449044A044B044C0497 -S31508009F584D044E044F045104520453045404550442 -S31508009F6856045704580459045A045B045C045E04EE -S31508009F785F0470217121722173217421752176215C -S31508009F887721782179217A217B217C217D217E21DF -S31508009F987F2141FF42FF43FF44FF45FF46FF47FF36 -S31508009FA848FF49FF4AFF4BFF4CFF4DFF4EFF4FFF47 -S31508009FB850FF51FF52FF53FF54FF55FF56FF57FFF7 -S31508009FC858FF59FF5AFF0000410042004300440069 -S31508009FD8450046004700480049004A004B004C0027 -S31508009FE84D004E004F0050005100520053005400D7 -S31508009FF8550056005700580059005A002100E0FF3E -S3150800A008E1FFE5FFE2FFE3FFC000C100C200C300AD -S3150800A018C400C500C600C700C800C900CA00CB00EE -S3150800A028CC00CD00CE00CF00D000D100D200D3009E -S3150800A038D400D500D600D800D900DA00DB00DC0049 -S3150800A048DD00DE00780100010201040106010801AD -S3150800A0580A010C010E01100112011401160118015A -S3150800A0681A011C011E0120012201240126012801CA -S3150800A0782A012C012E013001320134013601390139 -S3150800A0883B013D013F0141014301450147014A01A1 -S3150800A0984C014E01500152015401560158015A010A -S3150800A0A85C015E01600162016401660168016A017A -S3150800A0B86C016E01700172017401760179017B01E8 -S3150800A0C87D019101910392039303940395039603E3 -S3150800A0D89703980399039A039B039C039D039E037E -S3150800A0E89F03A003A103A303A403A503A603A70329 -S3150800A0F8A803A903AA0310041104120413041404D8 -S3150800A108150416041704180419041A041B041C0455 -S3150800A1181D041E041F042004210422042304240405 -S3150800A128250426042704280429042A042B042C04B5 -S3150800A1382D042E042F040104020403040404050450 -S3150800A14806040704080409040A040B040C040E048C -S3150800A1580F0460216121622163216421652166213A -S3150800A1686721682169216A216B216C216D216E217D -S3150800A1786F2121FF22FF23FF24FF25FF26FF27FF44 -S3150800A18828FF29FF2AFF2BFF2CFF2DFF2EFF2FFF65 -S3150800A19830FF31FF32FF33FF34FF35FF36FF37FF15 -S3150800A1A838FF39FF3AFF000080B54548006850F087 -S3150800A1B80100434908604348002101604048006897 -S3150800A1C8414908403E4908604048414901603C48C1 -S3150800A1D8006830F480203A4908603E48002101604A -S3150800A1E800F005F83C485FF00061016001BD82B0E7 -S3150800A1F800200190002000903148006850F4803013 -S3150800A2082F4908602E48006810F40030009001981D -S3150800A218401C01900098002803D10198B0F5A06F5A -S3150800A228F0D127480068800302D50120009001E094 -S3150800A23800200090009801283ED12848006850F070 -S3150800A2488050264908602648006850F4404024494A -S3150800A25808601C481B49096801601A48006850F4D8 -S3150800A2680040184908601748006850F4A050154976 -S3150800A278086016481B4901601148006850F080704C -S3150800A2880F4908600E4800688001FBD5164840F259 -S3150800A298056101600B480068800880000949086064 -S3150800A2A80848006850F00200064908600548006832 -S3150800A2B810F00C000828F9D102B070470000000019 -S3150800A2C80038024008380240FFFFF6FE043802400C -S3150800A2D8103000240C38024008ED00E040380240EF -S3150800A2E8007000400C544007003C0240C700FC00C0 -S3150800A2F8E900E200E400E000E500E700EA00EB0018 -S3150800A308E800EF00EE00EC00C400C500C900E6004E -S3150800A318C600F400F600F200FB00F900FF00D600BC -S3150800A328DC00A200A300A500A7209201E100ED0029 -S3150800A338F300FA00F100D100AA00BA00BF00102302 -S3150800A348AC00BD00BC00A100AB00BB00912592255E -S3150800A3589325022524256125622556255525632535 -S3150800A368512557255D255C255B251025142534259B -S3150800A3782C251C2500253C255E255F255A255425B0 -S3150800A38869256625602550256C2567256825642571 -S3150800A398652559255825522553256B256A251825D7 -S3150800A3A80C25882584258C2590258025B103DF0072 -S3150800A3B89303C003A303C303B500C403A603980302 -S3150800A3C8A903B4031E22C603B50329226122B100D4 -S3150800A3D86522642220232123F7004822B000192287 -S3150800A3E8B7001A227F20B200A025A00080B500F089 -S3150800A3F805F800F073F800F07FF8FCE700B583B0BD -S3150800A408FFF7D2FE01210120F9F7ECFB01200090A5 -S3150800A41800208DF8040000208DF8070002208DF82A -S3150800A428050000A92A48F9F7D3FA01212020F9F7E7 -S3150800A43809FC01210420F9F7D5FB0822062125483D -S3150800A448F9F724FB082207212248F9F71FFB002001 -S3150800A4588DF8060001208DF8070002208DF8040003 -S3150800A4684020009002208DF8050000A91948F9F740 -S3150800A478AFFA02208DF804008020009000A915483C -S3150800A488F9F7A6FA01210220F9F7ACFB09220521FA -S3150800A4981148F9F7FBFA092206210F48F9F7F6FADF -S3150800A4A86020009002208DF8040002208DF805002F -S3150800A4B800208DF8060001208DF8070000A9064837 -S3150800A4C8F9F786FA01215FF0C060F9F7ABFB07BD1B -S3150800A4D800000240000802400004024080B5FCF76C -S3150800A4E88CFCFBF745F8FCF760FCFCF75FF8FBF714 -S3150800A4F8B7FF00F00DF801BD80B5FCF77FFCFBF748 -S3150800A5084BF8FCF789F8FBF7C3FF00F00CF801BD18 -S3150800A51880B5154801210170FBF748F8134908600A -S3150800A52800F001F801BD80B5FCF73CF8012819D000 -S3150800A538FCF74FF8002815D00B480078012811D1E8 -S3150800A548FBF734F80949096801F51C5110318842A6 -S3150800A55808D3054800210170FCF744F8002801D102 -S3150800A568FCF7F6FB01BD00001A2E0020A82D0020D6 -S3150800A578809A90418E418F804545454949498E8F35 -S3150800A5889092924F994F555559999A9B9C9D9E9F83 -S3150800A59841494F55A5A5A6A7A8A9AAABAC21AEAF10 -S3150800A5A8B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF1D -S3150800A5B8C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF0D -S3150800A5C8D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFFD -S3150800A5D8E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFED -S3150800A5E8F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFFDD -S3150800A5F812200880164870470420088015487047B6 -S3150800A60880B50A0014491548FEF72AFE124802BD05 -S3150800A61880B50A0010491248FEF722FE0E4802BD08 -S3150800A62880B50A000C490F48FEF71AFE0A4802BD0B -S3150800A63880B50A0008490C48FEF712FE064802BD0E -S3150800A64880B50A0004490948FEF70AFE024802BD11 -S3150800A658B0000020DC000020A82700203CAB00083A -S3150800A66894AB0008A4AB000808AC0008E4AA0008E4 -S3150800A67800C00008004000000300000000000108B0 -S3150800A68800000100040000000000020800000200A3 -S3150800A698050000000000040800000200060000008B -S3150800A6A8000006080000020007000000000008086D -S3150800A6B8000002000800000000000A080000020066 -S3150800A6C80900000000000C08000002000A0000004B -S3150800A6D800000E08000002000B000000433A5C5711 -S3150800A6E86F726B5C736F6674776172655C4F7065C1 -S3150800A6F86E424C545C5461726765745C44656D6F50 -S3150800A7085C41524D434D345F53544D33325F4F6C61 -S3150800A718696D65785F53544D3332453430375F4930 -S3150800A72841525C426F6F745C6C69625C7569705CF7 -S3150800A7386E65746465762E6300000000433A5C57BC -S3150800A7486F726B5C736F6674776172655C4F706560 -S3150800A7586E424C545C5461726765745C536F7572CB -S3150800A76863655C41524D434D345F53544D33325CF7 -S3150800A7784941525C766563746F72732E63000000F4 -S3150800A788433A5C576F726B5C736F66747761726570 -S3150800A7985C4F70656E424C545C5461726765745CB4 -S3150800A7A8536F757263655C41524D434D345F53541C -S3150800A7B84D33325C63616E2E63000000433A5C5782 -S3150800A7C86F726B5C736F6674776172655C4F7065E0 -S3150800A7D86E424C545C5461726765745C536F75724B -S3150800A7E863655C41524D434D345F53544D33325C77 -S3150800A7F8756172742E630000433A5C576F726B5C1E -S3150800A808736F6674776172655C4F70656E424C54F7 -S3150800A8185C5461726765745C536F757263655C41F5 -S3150800A828524D434D345F53544D33325C7573622E23 -S3150800A838630000007047C0B2002802D0012801D082 -S3150800A84801E000E0FFE77047704780B5FCF71FFF97 -S3150800A85801BD80B5FCF71CFF01BD80B50120FCF7DA -S3150800A86815FF01BD80B50020FCF710FF01BD0000EB -S3150800A878433A5C576F726B5C736F6674776172657F -S3150800A8885C4F70656E424C545C5461726765745CC3 -S3150800A898536F757263655C66696C652E63000000A4 -S3150800A8A850617273696E67206669726D7761726541 -S3150800A8B82066696C6520746F206F627461696E2002 -S3150800A8C865726173652073697A652E2E2E000000FD -S3150800A8D80000080010001800200028003000380082 -S3150800A8E840004800500058008000880090009800F2 -S3150800A8F8A000A800B000B800C000C800D000D80062 -S3150800A9084669726D77617265207570646174652031 -S3150800A9187375636365737366756C6C7920636F6D9D -S3150800A928706C657465640A0D000000004F70656EEA -S3150800A938696E67206669726D776172652066696CEB -S3150800A9486520666F722072656164696E672E2E2EA1 -S3150800A9580000000010B5074979441831064C7C44B4 -S3150800A968163404E00A68081D511888470146A142AA -S3150800A978F8D110BDBC000000DC0000000502060284 -S3150800A988060307030803090309040A040B040C044D -S3150800A9980C050D050E050F050F06100610071008FD -S3150800A9A84669726D77617265207570646174652091 -S3150800A9B87265717565737420646574656374656416 -S3150800A9C80A0D00005374617274696E6720746865AD -S3150800A9D82070726F6772616D6D696E672073657135 -S3150800A9E875656E63650A0D0052656164696E672050 -S3150800A9F86C696E652066726F6D2066696C652E2EA9 -S3150800AA082E4552524F520A0D00000000496E7661D3 -S3150800AA186C696420636865636B73756D20666F750A -S3150800AA286E642E2E2E4552524F520A0D0000000013 -S3150800AA38AF90FFFF482D0000E4000020000000004A -S3150800AA484376FFFFE4000000D00100000000002064 -S3150800AA58000000002F64656D6F70726F675F6F6C1A -S3150800AA68696D65785F73746D3332653430372E7364 -S3150800AA78726563002062797465732066726F6D204B -S3150800AA886D656D6F7279206174203078000000005A -S3150800AA9857726974696E672070726F6772616D2084 -S3150800AAA8636865636B73756D2E2E2E002062797444 -S3150800AAB8657320746F206D656D6F727920617420D7 -S3150800AAC830780000436C6F73696E67206669726D2B -S3150800AAD8776172652066696C650A0D0057696E5557 -S3150800AAE853422042756C6B20496E746572666163C1 -S3150800AAF86500000000F009F8002801D0FFF72AFFD2 -S3150800AB080020FFF773FC00F002F80120704700F0F8 -S3150800AB1801B800000746384600F002F8FBE70000CF -S3150800AB2880B5C046C046024A11001820ABBEFBE7EE -S3150800AB382600020057696E5553422042756C6B20F1 -S3150800AB484465766963650000034B9D46C046C04662 -S3150800AB58C046C046FFF7CEFF30360020010305077A -S3150800AB68090E10121416181C1E00000050726F6782 -S3150800AB7872616D6D696E6720000000002F626F6F45 -S3150800AB88746C6F672E747874000000004F70656ED9 -S3150800AB98424C54205573657200000000303030303E -S3150800ABA830303030303530430000000080B5412160 -S3150800ABB80148FBF749FC01BD44A70008222A3A3C8C -S3150800ABC83E3F7C7F0000000045726173696E67200E -S3150800ABD800000000C046C046C046C046FFF78AFFC8 -S3150800ABE82B2C3B3D5B5D00004552524F520A0D0027 -S3150800ABF84F4B0A0D00000000FFFFFFFFFFFF000094 -S3150800AC0844656661756C74004F70656E424C5400F5 -S3150800AC1800000000FFFFFFFFE98800081589000803 -S3150800AC282D89000800000000000000008F89000830 -S3150800AC3899890008AB890008000000000000000098 -S3150800AC48BD890008B77D00084B7E0008657D0008A9 -S3150800AC58937F0008297F0008777F0008597F000836 -S3150800AC68D77F0008E57F0008F37F000809800008F9 -S3150800AC7809022000010100C0320904000002FF0091 -S3150800AC880000070581024000FF070501024000FF92 -S3150800AC98F9A5000801A6000819A6000809A60008CB -S3150800ACA829A6000839A6000849A600083DA80008EC -S3150800ACB83FA8000851A8000853A800085BA8000880 -S3150800ACC863A800086DA800081201100100000040DA -S3150800ACD8501DAC60000101020301000000000000DD -S3150800ACE8010203040102030406070809010000001B -S3110800ACF82C0000200403090404010000DD -S7050800ABDD6A +S315080076D800E0002009B000BD2F48704780B52F4844 +S315080076E8002180F824120A222D492C48F9F7CCFFE4 +S315080076F8002803D12948012180F8241201BD10B5B4 +S31508007708264890F82402012802D12448FAF7DFFA15 +S31508007718FDF74CFF10F164044021224800F0F4FA02 +S31508007728002803D1FDF742FF8442F5D21A48FAF732 +S31508007738E1FB10BD80B5194890F82402012802D14A +S315080077481648FAF7C4FA01BD10B50400134890F8AC +S315080077582402012819D111492000FAF77CFC0028CF +S3150800776813D50E48002180F824120C48FAF7AFFA08 +S315080077780BE0217889B20B4800F0BEFA8021094847 +S3150800778800F0C2FA0028F9D0641C20780028F0D145 +S3150800779810BD0000000002406CAA0008F41D002075 +S315080077A894AB00080014014080B501F01CF902BD2D +S315080077B830380A2801D2012000E00020C0B27047FC +S315080077C8DFF8DC035FF0FF310160DFF8D8035FF00C +S315080077D8FF310160704770B504000D0016002000DF +S315080077E800F0B3F9FF2805D02819401E00F0ADF9B6 +S315080077F8FF2801D1002017E0600A4FF400714843BA +S31508007808DFF8A4130968884207D12B003200210043 +S31508007818DFF8900300F0DFF806E02B0032002100BD +S31508007828DFF87C0300F0D7F870BD70B504000D00CA +S31508007838200000F08AF906002819401E00F085F98C +S31508007848F6B2FF2E02D0C0B2FF2801D1002005E00B +S315080078580100C9B23000C0B200F03BF970BD80B56E +S3150800786800200090DFF83C03006810F1010F01D1F1 +S31508007878012030E00098CB4949680818009000981C +S31508007888C8498968081800900098C649C968081838 +S3150800789800900098C3490969081800900098C149DA +S315080078A84969081800900098BE498969081800901F +S315080078B80098BC49C969081800900098C043009008 +S315080078C80098401C009000AA0421B748006810F5E3 +S315080078D8C470FFF780FF02BD0020B349096809682C +S315080078E80818B149096849680818AF4909688968CC +S315080078F80818AD490968C9680818AB4909680969C3 +S315080079080818A949096849690818A74909688969B9 +S315080079180818A549096811F5C471096808180028DE +S3150800792801D1012000E00020704780B59D48006815 +S3150800793810F1010F06D09B4800F090F8002801D1F5 +S3150800794800200CE09648006810F1010F06D094480C +S3150800795800F084F8002801D1002000E0012002BDCB +S3150800796891480068704780B54FF40072B1FBF2F38E +S3150800797803FB1213002B01D000200BE002688A4291 +S3150800798801D1012006E001604FF40072001DFFF7DF +S31508007998FBF9012002BD38B504000D008148844270 +S315080079A808D17F4C29002000FFF7DDFF002810D1F9 +S315080079B800200FE07C480068854203D1794C7A4854 +S315080079C80568EFE7200000F049F80028EAD100200A +S315080079D800E0200032BD2DE9F04104000F00150033 +S315080079E81E00780A4FF4007101FB00F8206810F1B0 +S315080079F8010F07D141462000FFF7B5FF002801D13E +S31508007A08002029E02068404508D041462000FFF7B5 +S31508007A18C2FF0400002C01D100201DE02068381A96 +S31508007A280019071DFFF7EAF9201D381AB0F5007F77 +S31508007A380AD318F500712000FFF7ADFF0400002CE3 +S31508007A4801D1002008E0271D287838707F1C6D1C96 +S31508007A58761E002EE6D10120BDE8F0812DE9F04119 +S31508007A6804000125206800F070F8C0B2FF2801D18B +S31508007A7800202CE000F0C2FFF32001F059F801F0CD +S31508007A885AF8012803D100F0C9FF00201FE05FF06B +S31508007A98000801E018F10108B8F1800F13D2206830 +S31508007AA810EB880614EB88004768FFF7A7F9390032 +S31508007AB8300001F014F8082801D0002503E03068E2 +S31508007AC8B842E7D0002500F0A9FF2800C0B2BDE8F3 +S31508007AD8F08138B504000D00EDB2E4B2A54201D232 +S31508007AE8002031E03048007AE4B2844205D32E48B3 +S31508007AF890F86800EDB2A84201D2002024E000F010 +S31508007B087DFFF32001F014F801F015F8012803D1D8 +S31508007B1800F084FF002017E000E0641CEDB2E4B230 +S31508007B28A5420ED3FFF76AF90221E4B21F4830F8D6 +S31508007B38140000F07CFF0828EFD000F06FFF002043 +S31508007B4802E000F06BFF012032BD38B504000025BD +S31508007B5800E06D1CEDB2092D1FD2FFF74FF9EDB203 +S31508007B680C20114900FB051000688442F1D3EDB2D8 +S31508007B780C200D4900FB05100068EDB20C210A4AD5 +S31508007B8801FB0521496808188442E2D2EDB20C20A7 +S31508007B98054900FB0510007A00E0FF2032BD000009 +S31508007BA81C2000202022002088A60008E8A8000833 +S31508007BB862F30F2262F31F42401810F0030308D03D +S31508007BC8C91A1FD3DB0748BF00F8012D28BF20F8BC +S31508007BD8022D130030B414461546103928BF20E97B +S31508007BE83C00FAD8490728BF20E90C0048BF40F8E6 +S31508007BF8042D890028BF20F8022D48BF00F8012D5A +S31508007C0830BC7047C91818BF00F8012DCB0728BF24 +S31508007C1800F8012D704700007FB504000D0000200C +S31508007C28002100220023AE89002E208A30F4405015 +S31508007C38E98808432082A08927490840A9882A890B +S31508007C4811436A8911430843A081A08A30F4407019 +S31508007C58A9890843A08200A8FBF752FF1C4884425A +S31508007C6802D01C48844201D1039900E00299A089F0 +S31508007C78000407D5192000FB01F029684900B0FB64 +S31508007C88F1F206E0192000FB01F029688900B0FB2B +S31508007C98F1F26420B2FBF0F000010109642303FB4A +S31508007CA81123A189090408D5D90032316422B1FB08 +S31508007CB8F2F111F00701084307E01901323164228D +S31508007CC8B1FBF2F111F00F01084320817FBD0000D6 +S31508007CD80010014000140140F3E9FFFFC9B200296A +S31508007CE804D0818951F40051818104E081894DF6D7 +S31508007CF8FF72114081817047C905C90D8180704797 +S31508007D088088C005C00D7047002289B2B1F5007F8A +S31508007D180088084201D0012200E000221000C0B203 +S31508007D28704700002DE9F04104000D0016001F00F9 +S31508007D38DDF81880200000F039FF200000F014F85C +S31508007D48C4F8E475C4F8E885C4F8EC652900C9B22E +S31508007D58200000F06EF9D4F8E8050068804720008E +S31508007D6800F080FFBDE8F081002070471CB50400CC +S31508007D7800A9200001F04CFA9DF8000010F01F0039 +S31508007D88C0B2002803D002280BD005D30EE000A9FC +S31508007D98200000F07BFF10E000A9200000F0A2FFF9 +S31508007DA80BE000A9200000F0C4FF06E09DF80000DB +S31508007DB810F08001200000F016FA002016BD10B554 +S31508007DC80400C9B2002933D114F55D7094F811116D +S31508007DD803293CD18168C269914217D2C169826870 +S31508007DE8891AC161E178012903D18168C2688918AD +S31508007DF8C160C1698268914201D2C26900E082689D +S31508007E0892B2C168200001F07FFA20E0D4F8E405B0 +S31508007E180069002808D094F81201032804D1200024 +S31508007E28D4F8E41509698847200001F078FA0EE0C5 +S31508007E38D4F8E4058069002809D094F812010328C3 +S31508007E4805D1C9B22000D4F8E425926990470020E4 +S31508007E5810BD38B50400C9B200294FD114F58E757E +S31508007E6894F8110102283ED1A868E969884211D216 +S31508007E78E869A968401AE861E078012803D1A86882 +S31508007E88E9684018E860EA6992B2E968200001F0F2 +S31508007E9830FA28E0286AA968B0FBF1F201FB12005B +S31508007EA800280FD1286AA96888420BD3286A696A04 +S31508007EB8884207D200220021200001F01AFA002081 +S31508007EC8686210E0D4F8E405C068002808D094F879 +S31508007ED81201032804D12000D4F8E415C968884794 +S31508007EE8200001F02EFA94F81601012815D1200071 +S31508007EF800F015F8002084F816010EE0D4F8E40519 +S31508007F084069002809D094F81201032805D1C9B296 +S31508007F182000D4F8E42552699047002032BD00694C +S31508007F28024909684160002070470000FC2D0020BE +S31508007F3810B50400002340220021200000F0C4F8F0 +S31508007F48002340228021200000F0BEF8012084F892 +S31508007F581201A078D4F8E81549688847002010BDAA +S31508007F6810B50400D4F8E8050069804794F81301A9 +S31508007F7884F81201032084F81201002010BD80B588 +S31508007F8890F8121180F81311042180F81211D0F80C +S31508007F98E805C0688047002002BD80B5D0F8E4151A +S31508007FA8C969002903D0D0F8E415C96988470020AB +S31508007FB802BD10B50400C9B22000D4F8E425126839 +S31508007FC89047D4F8E80580688047002010BD80B53A +S31508007FD8C9B2D0F8E42552689047002002BD80B59A +S31508007FE8D0F8E415096A8847002002BD80B5D0F89C +S31508007FF8E415496A8847002002BD10B50400D4F87C +S31508008008E80540698047012084F81501002010BD5D +S3150800801810B50400D4F8E8058069804700212000D7 +S31508008028D4F8E42552689047002084F81501002002 +S3150800803810BD10B50400C9B2200001F009FA0120E4 +S3150800804884F81201002084F81401002011E0282180 +S3150800805801FB004111F58E7101224A700870C8802B +S315080080680022CA7040228A600022CA6000224A6139 +S31508008078401C61788842EAD3002011E0282101FBD8 +S31508008088004111F55D7100224A700870C880002207 +S31508008098CA7040228A600022CA6000224A61401CCF +S315080080A861788842EAD3200001F0A4FA200001F09A +S315080080B83CFA0021200001F0F1FA200001F029FB22 +S315080080C8200001F08BFA10BD38B5C9B20C0608D5E0 +S315080080D8C9B211F07F04282505FB040414F58E742B +S315080080E807E0C9B211F07F04282505FB040414F536 +S315080080F85D7411F07F052570C1F3C011617092B2E5 +S31508008108A260E3706178002901D02178E180DBB2AA +S31508008118022B01D100212171210001F021FC002048 +S3150800812832BD80B5C9B20A0608D5C9B211F07F02B0 +S31508008138282303FB020212F58E7207E0C9B211F072 +S315080081487F02282303FB020212F55D7211F07F03F2 +S315080081581370C1F3C0115170110001F03AFC0020E8 +S3150800816802BD38B5C9B211F07F04282505FB0404F9 +S3150800817814F55D74E2609BB263610023A361002372 +S31508008188637011F07F012170C178012900D122613D +S315080081982178002903D1210001F0F9FC02E0210029 +S315080081A801F042FC002032BD38B5C9B211F07F048F +S315080081B8282505FB040414F58E740125657011F04D +S315080081C87F012170E26022610021A1616361217843 +S315080081D8002903D1210001F0DAFC02E0210001F0B0 +S315080081E823FC002032BD80B5C9B20A0608D5C9B233 +S315080081F811F07F02282303FB020212F58E7205E0AE +S31508008208C9B2282202FB010212F55D720123937096 +S3150800821811F07F031370C1F3C011C9B211F001013F +S315080082285170110001F046FD002002BD80B5C9B2A3 +S315080082380A0608D5C9B211F07F02282303FB0202F1 +S3150800824812F58E7205E0C9B2282202FB010212F560 +S315080082585D720023937011F07F031370C1F3C01188 +S31508008268C9B211F001015170110001F043FD002057 +S3150800827802BD0022C9B261F30A12016909681143ED +S3150800828800690160704780B50169496851F00201C3 +S3150800829800694160032000F0F2FC01BD70B50400D6 +S315080082A80026200001F01AFA00286FD0200001F0F5 +S315080082B81FFA0500002D01D1002068E0C5F3C0406B +S315080082C8002803D0200000F060F90643C5F3804073 +S315080082D8002803D0200000F0E1F80643C5F3400063 +S315080082E8002804D0002050F00200E1684861E80F31 +S315080082F8002803D0200000F06CF80643C5F3C02018 +S31508008308002803D0200000F088F80643C5F3C0000B +S31508008318002803D0200000F09AF90643C5F3001098 +S31508008328002803D0200000F0A0F90643C5F3003062 +S31508008338002803D0200000F028FA0643C5F3403089 +S31508008348002803D0200000F07DFA0643C5F3005044 +S31508008358002803D0200000F09AFA0643C5F34050D7 +S31508008368002803D0200000F0A0FA0643C5F3807061 +S31508008378002803D0200000F00BF80643C5F3800058 +S31508008388002803D0200000F012F80643300070BD1C +S3150800839810B504002000DFF830150968496A8847CF +S315080083A8002050F08040E1684861012010BD38B5CA +S315080083B80400E0684568C5F38000002805D0200059 +S315080083C8DFF804150968896A8847E0684560012066 +S315080083D832BD10B50400A07A002808D0D4F80C01DC +S315080083E830F0020040084000D4F80C11086000205C +S315080083F850F001002169496831EA0000216948609E +S315080084082000DFF8C414096889698847002050F0F5 +S315080084180040E1684861012010BD10B582B004002B +S3150800842800208DF8000094F812018DF8000020004D +S31508008438DFF8941409684969884720698168002023 +S3150800844850F40060E2685061A07A002824D0C80772 +S3150800845822D594F8150101281ED19DF80000032895 +S315080084681AD1002050F00100D4F80C11096801430C +S31508008478D4F80C21116050F00200D4F80C110968E0 +S315080084880843D4F80C110860DFF84004006850F077 +S315080084980600DFF838140860012016BDF8B5040090 +S315080084A800250027200001F055FC060069E0F007C2 +S315080084B865D52900C9B2200000F00AFA0700F807AE +S315080084C822D50120A8402169496B31EA00002169B3 +S315080084D84863002757F0010714EB85008069876011 +S315080084E82900C9B22000DFF8E023126852689047CD +S315080084F8E078012808D1002D06D194F8110104283E +S3150800850802D1200001F02DFCC7F3C000002806D0D0 +S31508008518002757F0080714EB850080698760C7F3BA +S315080085280010002806D0002757F0100714EB85001E +S3150800853880698760C7F38010002806D0002757F09F +S31508008548400714EB850080698760C7F34000002858 +S3150800855806D0002757F0020714EB85008069876064 +S31508008568C7F3C01000280AD02900200000F0C9F86F +S31508008578002757F0800714EB8500806987606D1C13 +S315080085887608002E93D10120F2BDF8B5040000251F +S315080085980027200001F0CDFB060054E0F00750D56F +S315080085A82900C9B2200001F0CBFB0700F8072DD532 +S315080085B8002757F0010714EB8500406D8760E078BF +S315080085C8012810D114EB8500406D0069282101FBAC +S315080085D80541D1F87C134003400B081A282101FBF2 +S315080085E80541C1F88C032900C9B22000B64A1268A9 +S315080085F812689047E078012808D1002D06D194F82A +S315080086081101052802D1200001F0ABFBC7F3400091 +S31508008618002806D0002757F0020714EB8500406D9E +S315080086288760C7F3C00000280BD02000A649096850 +S3150800863889688847002757F0080714EB8500406DB6 +S3150800864887606D1C7608002EA8D10120F2BD10B5EA +S31508008658040020009C490968C9688847002050F02A +S315080086680800E1684861012010BDF8B50400002536 +S3150800867855F01005E0688069A843E1688861E068F4 +S31508008688066A16F00F00282101FB004010F55D77F1 +S31508008698700C10F00F00012808D0022807D003280C +S315080086A81AD0042819D0062818D023E022E0300961 +S315080086B8400510D0C6F30A1292B2F968200000F0F5 +S315080086C8B2FEC6F30A10F9684018F860B869C6F326 +S315080086D80A110818B8610DE00CE00BE0082204F24C +S315080086E8CC51200000F09FFEB869C6F30A11081895 +S315080086F8B861FFE7E06880692843E1688861012076 +S31508008708F2BD2DE9F04104000D00002600202821BD +S3150800871801FB054111F58E777969BA69891A0E0040 +S31508008728B968B14200D2BE68F01C5FEA900814EB3B +S315080087388500806980691BE07869B969461AB8684E +S31508008748B04200D2BE68F01C5FEA900833009BB2BC +S315080087582A00D2B2F968200000F045FEF8683018F9 +S31508008768F860B8693018B86114EB850080698069C3 +S3150800877880B2804506D2B8697969884202D2786992 +S315080087880028D9D10120BDE8F0812DE9F843040075 +S3150800879800200025002600275FF000085FF0000982 +S315080087A850F001002169496831EA000021694860EA +S315080087B80021200000F02BFF00200AE014EB8001BE +S315080087C88969FF228A6014EB8001496DFF228A6055 +S315080087D8401C61788842F1D320695FF0FF318161D6 +S315080087E8012060F30F05012060F31F452069C56164 +S315080087F856F0080656F0010656F002062069466144 +S3150800880857F0010757F0080757F00207206907616C +S315080088182069D0F8008038F4FE682069C0F800801E +S31508008828200001F09EFA5FF0000959F48059E068C3 +S31508008838C0F8149020002449096809698847012066 +S31508008848BDE8F28338B50400200001F064F8E06852 +S31508008858C568200001F049F8032808D10020A0704F +S315080088684FF40070A080092060F38D2506E00120EA +S31508008878A0704020A080052060F38D25E068C560BB +S31508008888002050F40050E1684861012032BD38B52F +S315080088980400002520000C490968C969884755F469 +S315080088A88015E0684561012032BD38B50400002509 +S315080088B8200005490968096A884755F40015E068DB +S315080088C84561012032BD0000D800002010ED00E007 +S315080088D80269126903695B6BCB4013F0010352EA1C +S315080088E8C312C9B210EB81008069806810407047CE +S315080088F810B504000223402281212000FFF7E4FB7B +S315080089080223402201212000FFF7DEFB40232F4ADD +S3150800891801212000FFF725FC002010BD10B5040032 +S3150800892881212000FFF7FDFB01212000FFF7F9FB55 +S31508008938002010BD10B51722254B0C7814F0600FCF +S3150800894827D14C78062C04D00A2C14D00B2C17D017 +S315080089581FE04C88A4B2240AA4B2212C06D11D4BC8 +S31508008968CA88182A01DB172200E0CA8892B21900B9 +S3150800897800F0ABFC0DE00122174900F0A6FC08E060 +S315080089888A78002A03D188781349086001E000F03C +S3150800899861FC002010BD80B5FEF716FD002002BD5B +S315080089A880B50800C0B2FEF73DFD002002BD0748A5 +S315080089B8704780B590F81201032801D1FEF704FD27 +S315080089C8002002BD2020088004487047E42B0020B8 +S315080089D8610000206A000020F82D002058000020B9 +S315080089E8002201F0E7B910B50400200001F0FBF9F0 +S315080089F8002801D0203CFFE7200010BDDFF87001F1 +S31508008A080068002809D5DFF86C01DFF86C110160E9 +S31508008A18DFF86001DFF8641101607047DFF850017C +S31508008A28006850F00040DFF848110860704738B50C +S31508008A38040000250820C9B2002901D100250DE047 +S31508008A48C9B2012902D14FF4807507E0C9B20229D3 +S31508008A5802D14FF4007501E04FF4407500F092F822 +S31508008A68C0B2082839D1DFF80801006830F4407028 +S31508008A78DFF8FC100860DFF8F80000682843DFF81C +S31508008A88F0100860DFF8E800006830F0F800DFF852 +S31508008A98E0100860DFF8D800006854F002010843BF +S31508008AA8DFF8CC100860DFF8C800006850F480309A +S31508008AB8DFF8BC10086000F065F8DFF8B41009683C +S31508008AC831F00201DFF8A8201160DFF8A410096860 +S31508008AD831F0F801DFF898201160C0B232BD70B5E0 +S31508008AE804000D00082600F04DF80600F6B2082E18 +S31508008AF81BD11F48006830F440701D4908601C489F +S31508008B08006850F400701A4908601948006850F05F +S31508008B18010017490860256000F034F80600144873 +S31508008B28006840084000124908603000C0B270BDAD +S31508008B38134908607047082011490968C90301D50F +S31508008B48012013E00E480068C00601D505200DE08F +S31508008B580B48006810F0EF0F01D0062006E0084819 +S31508008B680068800701D5072000E00820C0B27047D2 +S31508008B78103C0240043C024023016745AB89EFCD0F +S31508008B880C3C024080B508208DF80000FFF7D3FF9B +S31508008B988DF8000003E0FFF7CEFF8DF800009DF87A +S31508008BA800000128F7D09DF8000002BD00B583B083 +S31508008BB801210120FBF716F84FF4C850009003204E +S31508008BC88DF8050002208DF8040000208DF80600AF +S31508008BD800208DF8070000A92148FAF7F9FE0A22AD +S31508008BE808211F48FAF752FF0A220B211C48FAF7F0 +S31508008BF84DFF0A220C211A48FAF748FF4FF400706D +S31508008C08009003208DF8050000208DF80400012047 +S31508008C188DF8060000208DF8070000A91048FAF715 +S31508008C28D7FE4FF48060009001208DF806000120D9 +S31508008C388DF8070003208DF8050000A90848FAF7FB +S31508008C48C7FE0A220A210648FAF720FF01214FF42F +S31508008C588040FAF7F7FF01218020FAF7D3FF07BD0E +S31508008C6800000240704700000100481E002905D090 +S31508008C7800211C29F8D200BF491CFAE7704780B5BD +S31508008C884FF47A714843FFF7EFFF01BD10B500248A +S31508008C984A78002A18D0012A1CD0032A17D0052A90 +S31508008CA809D0062A04D0082A0BD0092A06D014E0C7 +S31508008CB800F0F3F813E000F080F910E000F0A9F9E5 +S31508008CC80DE000F006FA0AE000F01FFA07E000F0E7 +S31508008CD837FA04E000F082FA01E000F0BBFA200057 +S31508008CE8C0B210BD70B504000D00002694F8120134 +S31508008CF8032817D1287902280FDA29002000D4F882 +S31508008D08E42592689047E88800280AD1F6B2002E2A +S31508008D1807D1200000F003FB03E02900200000F03B +S31508008D2899FA03E02900200000F094FA3000C0B24E +S31508008D3870BD70B505000E000024B188707800284B +S31508008D4860D0012830D0032840F0A48095F8120195 +S31508008D58022802D003280BD021E0C9B2002906D080 +S31508008D68C9B2802903D0C9B22800FFF73CFA1AE02D +S31508008D787088002809D1C9B2002906D0C9B2802945 +S31508008D8803D0C9B22800FFF72EFA31002800D5F813 +S31508008D98E42592689047280000F0C1FA03E03100FC +S31508008DA8280000F057FA75E095F81201022802D053 +S31508008DB803280BD021E0C9B2002906D0C9B28029F8 +S31508008DC803D0C9B22800FFF70EFA1AE070880028FF +S31508008DD812D1C9B200290CD0C9B2802909D0C9B2A2 +S31508008DE82800FFF723FA31002800D5F8E425926809 +S31508008DF89047280000F093FA03E03100280000F0B5 +S31508008E0829FA47E095F81201022802D003280BD060 +S31508008E183BE0C9B2002906D0C9B2802903D0C9B235 +S31508008E282800FFF7E0F934E0C9B2080613D5C9B235 +S31508008E3811F07F00282101FB005090F81E01002838 +S31508008E4804D0DFF884030121016017E0DFF878030E +S31508008E580021016012E0080610D4C9B2282000FBD8 +S31508008E68015090F87603002804D0DFF85C03012146 +S31508008E78016003E0DFF85003002101600222DFF8F1 +S31508008E884813280000F021FA03E03100280000F012 +S31508008E98E1F9FFE72000C0B270BD38B504000D003F +S31508008EA8688880B2000AC0B2012808D0022825D0EE +S31508008EB803282ED0062867D007286AD06EE000A9AE +S31508008EC8A078D4F8EC2512689047E988402903D099 +S31508008ED894F81211012902D10821ADF80010BDF83D +S31508008EE80010002968D0E988002965D0BDF8001067 +S31508008EF8EA88914257D2BDF8001055E000A9A07833 +S31508008F08D4F8E425926A904702214170C4F8F0051E +S31508008F18E5E7A878002808D0022814D00CD3042836 +S31508008F281FD017D3052823D029E000A9A078D4F89C +S31508008F38EC2552689047D2E700A9A078D4F8EC2522 +S31508008F4892689047F7E700A9A078D4F8EC25D26884 +S31508008F589047F0E700A9A078D4F8EC25126990475D +S31508008F68E9E700A9A078D4F8EC2552699047E2E722 +S31508008F7800A9A078D4F8EC2592699047DBE7290080 +S31508008F88200000F067F917E02900200000F062F9D0 +S31508008F9812E02900200000F05DF90DE02900200004 +S31508008FA800F058F908E0E988ADF80010BDF8002087 +S31508008FB80100200000F089F931BD38B50400888819 +S31508008FC8002822D1C88800281FD1887810F07F0584 +S31508008FD894F81201032803D1200000F03BF917E0A2 +S31508008FE884F814512900C9B22000FFF742F9200075 +S31508008FF800F095F9EDB2002D03D0022084F812018D +S3150800900806E0012084F8120102E0200000F022F9A7 +S3150800901831BD10B5040048886C4A10706B48007852 +S31508009028022803DB200000F015F951E094F8120134 +S31508009038022802D0032818D047E064480078002898 +S315080090480FD06248007884F81001032084F81201CA +S315080090585E4801782000FEF7ACFF200000F05FF9B3 +S3150800906802E0200000F05BF932E058480078002852 +S315080090780FD1022084F812015448007884F81001A8 +S31508009088524801782000FEF7A2FF200000F047F9B1 +S315080090981AE04E48007894F81011884211D094F8CE +S315080090A810112000FEF793FF4848007884F810014D +S315080090B8464801782000FEF77CFF200000F02FF9CB +S315080090C802E0200000F02BF902E0200000F0C2F8C8 +S315080090D810BD80B5CA88012A02D000F0BBF813E093 +S315080090E890F81221022A02D0032A05D00AE00122A2 +S315080090F8374900F0EAF807E0012210F5887100F010 +S31508009108E4F801E000F0A6F801BD80B590F8122150 +S31508009118921E012A11D82F4901220A60D0F818117F +S31508009128002905D02B49096851F00201294A11601E +S315080091380222284900F0C9F801E000F08BF801BDC1 +S3150800914810B504000022488801280BD10120C4F86C +S3150800915818012000D4F8E42592689047200000F00A +S31508009168DEF830E0488802282DD1087900062AD189 +S3150800917820694068898889B20A0AD2B2012A07D0C2 +S3150800918819D3032A0CD007D3052A11D00CD312E019 +S31508009198012161F306100EE0022161F306100AE0C8 +S315080091A8032161F3061006E0042161F3061002E0C4 +S315080091B8052161F3061008490860012084F816019C +S315080091C8200000F0ACF810BD002E0020282E002044 +S315080091D8042E0020082E0020FC2D002010B50400BF +S315080091E894F81201801E01280ED8488801280AD149 +S315080091F80020C4F818012000D4F8E425926890479E +S31508009208200000F08CF802E0200000F023F810BDDA +S3150800921890F8CC250A7090F8CD254A7090F8CE2596 +S3150800922890F8CF351B029A184A8090F8D02590F8FE +S31508009238D1351B029A188A8090F8D22590F8D3352A +S315080092481B029A18CA80C988C0F84011012180F8FB +S315080092581111704710B5040080212000FEF7C3FFDE +S3150800926800212000FEF7BFFF200000F07AFD10BDA0 +S31508009278F8B504000D0017000026002C1AD02000A7 +S3150800928800F019F84000801C3880F6B23888705506 +S31508009298761CF6B203207055761C08E0F6B22078DC +S315080092A87055641C761CF6B200207055761C20781A +S315080092B80028F3D1F1BD002101E0491C401C0278C1 +S315080092C8002AFAD10800C0B2704710B5002492B235 +S315080092D8C0F83C2192B2C0F83821022380F811312F +S315080092E892B213000A000021FEF75EFF2000C0B202 +S315080092F810BD10B5002492B213000A000021FEF72B +S3150800930853FF2000C0B210BD10B5002413009BB24D +S315080093180A000021FEF725FF2000C0B210BD38B5A7 +S3150800932804000025042084F81101002300220021E6 +S315080093382000FEF739FF200000F013FD2800C0B210 +S3150800934832BD38B504000025052084F8110100232C +S31508009358002200212000FEF704FF200000F001FD8E +S315080093682800C0B232BD00000021C2685FF0FF3392 +S315080093785360C2687FF08043536151F0004151F44D +S315080093880061C0688161704770B582B00400002525 +S315080093980026002000900320FFF766FCE0680069B5 +S315080093A80090761CBB48864201D300201AE0009834 +S315080093B8C00F0028EFD00026009850F00100009052 +S315080093C8E06800990161E06800690090761CB14878 +S315080093D8864202D20098C007F5D40320FFF744FC5A +S315080093E82800C0B276BDF0B41C000023C578002D4D +S315080093F815D100250026A4B2E41C042794FBF7F42B +S315080094082500D2B210EB8200D0F8D0000022160050 +S3150800941803E00A680260761C091DAE42F9D31800F3 +S31508009428C0B2F0BC704710B4002392B2D21C042410 +S3150800943892FBF4F2D0F8D0000024230003E0046875 +S315080094480C605B1C091D9342F9D3080010BC7047D1 +S3150800945830B40A00002300210024C4700124847053 +S3150800946840248480D2B2012A0DD15FF0A04301229C +S31508009478C27208220270042242704FF4A072C28097 +S31508009488022202720CE0D2B2002A09D1824B0022CB +S31508009498C2720C220270062242704FF4A062C28081 +S315080094A8C36013F50062026100220EE010EB820425 +S315080094B813EB421515F51065A56110EB820413EB3D +S315080094C8421515F530656565521C4478A242EDD3F8 +S315080094D813F58062426113F58862C0F8CC20002231 +S315080094E808E010EB820413EB421515F5A065C4F8DD +S315080094F89050521C0478A242F3D300220AE010EBDB +S3150800950882044FF4805505FB023515F58055C4F8D5 +S31508009518D050521C0478A242F1D313F56062C0F801 +S315080095280C210800C0B230BC704770B5040000258D +S31508009538002000210026227A012A26D1E068816BBC +S3150800954831F48031607A002801D051F48011E0683E +S3150800955881630020E168C968080030F0400030F4EB +S31508009568800030F4003030F40020E168C86020003C +S31508009578FFF70AFFE078012821D1052060F34406A1 +S3150800958856F02006E068866019E0E068C06850F082 +S315080095984000E168C8602000FFF7F6FE002151F494 +S315080095A8803151F4802151F40021607A002801D0D5 +S315080095B851F48011E06881631420FFF760FBE078B6 +S315080095C8012808D1E0688668052060F3440656F045 +S315080095D82006E06886602800C0B270BD0021002217 +S315080095E852F00102C3689B681A43C0688260080083 +S315080095F8C0B270470021002252F00102C3689B6876 +S3150800960833EA0202C06882600800C0B2704710B523 +S3150800961882B00024002200230093009B53F0200305 +S315080096280093009B61F38A130093C168009B0B6142 +S31508009638C16809690091521C16498A4204D20099E0 +S31508009648C1F340110029F3D10320FFF70DFB2000D1 +S31508009658C0B216BD10B582B00024002100220092BF +S31508009668009A52F010020092C268009B1361C26801 +S3150800967812690092491C074A914204D2009AC2F319 +S315080096880012002AF3D10320FFF7EEFA2000C0B231 +S3150800969816BD0000410D03000000044010B5002463 +S315080096A8C268D26832F0005232F08042C9B2012943 +S315080096B802D152F0005204E0C9B2002901D152F091 +S315080096C88042C068C2603220FFF7D9FA2000C0B2CB +S315080096D810BDC068406910F00100704780B5FFF7F3 +S315080096E8F8FF012801D0012000E00020C0B202BD21 +S315080096F80021C26852691100C068806901400800E3 +S31508009708704702691268C9B261F30102006902600A +S315080097187047F8B504000025002000220026002717 +S315080097280021D4F80C315FF0000CC3F800C0236997 +S315080097381B681A0032F4C05223691A60E27A012AB1 +S315080097482AD103212000FFF7DCFFE0688021416267 +S31508009758202060F31F46802060F30F06E0688662C3 +S3150800976816EB164060F30F07802060F31F47E06882 +S31508009778C0F8047117EB1740C0EA0707202060F302 +S315080097881F47E068C0F8087117EB1740C0EA0707D3 +S31508009798BFB2E068C0F80C7110212000FFF737FF48 +S315080097A82000FFF757FF2069002101612069002181 +S315080097B8416120695FF0FF31816120690021C1613B +S315080097C800210FE0002014EB81029269106014EB67 +S315080097D8810080690022026114EB81008069FF22FA +S315080097E88260491C607881420CD214EB810080693A +S315080097F80068C00F0028E5D0002050F0804050F0DF +S315080098080060E0E700210FE0002014EB8102526DAA +S31508009818106014EB8100406D0022026114EB810090 +S31508009828406DFF228260491C607881420CD214EB95 +S315080098388100406D0068C00F0028E5D0002050F070 +S31508009848804050F00060E0E7002151F480712069FB +S3150800985800698843084321690861E07801280ED120 +S31508009868002050F0010050F00200402161F38A0000 +S3150800987850F48030402161F359402169086320007B +S3150800988800F003F82800C0B2F2BD70B50400002540 +S315080098980026E06800218161E0687FF08041416127 +S315080098A82000FFF761FDE078002801D156F0100680 +S315080098B856F4006656F4805656F4005656F4802632 +S315080098C856F4002656F0080656F4801656F400167E +S315080098D856F0804656F00406E0688069B04330437F +S315080098E8E16888612800C0B270BD002100698068F7 +S315080098F8400810F00300002805D0022807D004D332 +S31508009908032802D004E0032102E0022100E0012135 +S315080099180800C0B2704710B4002100240269926892 +S3150800992883691B68520812F00302002A04D0022A27 +S3150800993805D001D3032A05D1DB0ADB0202E003229C +S3150800994862F30A038269136054F4807402695268E0 +S31508009958A2432243006942600800C0B210BC70479F +S3150800996870B40A000021002500235478012C0AD176 +S31508009978147810EB8404A469012592F90060B540AF +S3150800998865F30F0309E0147810EB8404646D012568 +S3150800999892F90060B54065F31F432568C5F3C036DC +S315080099A8002E0DD1966866F30A05D67866F39345B0 +S315080099B8D28862F3995555F0805555F400452560C7 +S315080099C80269D2691A430069C2610800C0B270BC4C +S315080099D8704770B40A000021002300245578012D29 +S315080099E80BD1157810EB8505AD69012692F900208B +S315080099F816FA02F262F30F040AE0157810EB8505E9 +S31508009A086D6D012692F9002016FA02F262F31F44D8 +S31508009A1833F400432B600269D269A2430069C26124 +S31508009A280800C0B270BC704770B500240025002233 +S31508009A3800234E78012E62D10A7810EB82029269C9 +S31508009A4812680B7810EB83039B691B694D69002D17 +S31508009A5805D1DB0CDB04012565F3DC4311E04D6910 +S31508009A6865F312034D698E6875196D1E8E68B5FB08 +S31508009A78F6F565F3DC43CD78012D02D1012565F3AA +S31508009A885E730D7810EB8505AD692B61C378012BDC +S31508009A9806D10B7810EB83039B690D695D610FE0AE +S31508009AA8CB78012B0CD04B69002B09D0012391F9EF +S31508009AB8005013FA05F503695B6B2B4305696B635D +S31508009AC8CB78012B08D103699B68DB0502D452F0D1 +S31508009AD8005201E052F0805252F0806252F0004281 +S31508009AE80B7810EB83039B691A60CA78012A4BD155 +S31508009AF84B699BB20A78C968FFF775FC44E00A788F +S31508009B0810EB8202526D12680B7810EB83035B6DBB +S31508009B181B694D69002D06D18D6865F31203012569 +S31508009B2865F3DC430EE04D698E6875196D1E8E68FF +S31508009B38B5FBF6F565F3DC43C3F3C9458E6875438B +S31508009B4865F312030D7810EB85056D6D2B61C378E7 +S31508009B58012B05D10B7810EB83035B6D0D695D61ED +S31508009B68CB78012B07D14B79002B02D052F0005243 +S31508009B7801E052F0805252F0806252F000420978B1 +S31508009B8810EB8100406D02602000C0B270BDFCB4C5 +S31508009B98002200240023002500954D78012D48D180 +S31508009BA885692B682E6900964E69002E09D1009E94 +S31508009BB8F609F60100960126009F66F3D447009732 +S31508009BC815E08E684F69BE4207D28E684E618E6868 +S31508009BD8009F66F30607009704E04E69009F66F340 +S31508009BE8060700970126009F66F3D4470097009E4C +S31508009BF82E61C678012E05D10E7810EB8606B66951 +S31508009C080F69776153F0806353F000432B60C3787C +S31508009C18002B4BD14B69002B48D0012391F9001032 +S31508009C2813FA01F10C430169496B21430069416341 +S31508009C383CE00B7810EB83035B6D1B680C7810EB24 +S31508009C488404646D246900944C69002C0AD18C68D4 +S31508009C58009D64F3060500950124009D64F3D44528 +S31508009C6800950BE08C684C618C68009D64F30605CA +S31508009C7800950124009D64F3D44500950C7810EBF3 +S31508009C888404646D009D2561C478012C05D10C787F +S31508009C9810EB8404646D0D69656153F0806353F0B5 +S31508009CA80043097810EB8100406D03601000C0B2CC +S31508009CB8F6BC704710B4002200234C78012C0DD14D +S31508009CC8097810EB810080690368D90F002901D04B +S31508009CD853F0804353F40013036007E0097810EB48 +S31508009CE88100406D036853F4001303601000C0B286 +S31508009CF810BC704710B4002200234C78012C04D1FC +S31508009D080B7810EB8300806903E00B7810EB83006F +S31508009D18406D036833F40013CC78032C02D0C97855 +S31508009D28022901D153F0805303601000C0B210BC59 +S31508009D387047016989690069C0690140080C70475C +S31508009D48C9B210EB8101496D89680069406901400B +S31508009D5808007047016989690069C069014088B2C5 +S31508009D68704782B000210091009951F04041009156 +S31508009D780121009A61F3D44200921821009A61F3EE +S31508009D8806020092416D009A0A61C17801290ED12E +S31508009D980021426D00F2CC535361426D12681100DE +S31508009DA851F000415FF080221100406D016002B059 +S31508009DB87047000000B500BF130096469446103950 +S31508009DC828BFA0E80C50FAD85FEA417C28BF0CC027 +S31508009DD848BF40F8042BC90728BF20F8022B48BFFC +S31508009DE800F8012B00BD61381A2801D2012000E0CD +S31508009DF80020C0B27047000061006200630064007A +S31508009E08650066006700680069006A006B006C00F8 +S31508009E186D006E006F0070007100720073007400A8 +S31508009E28750076007700780079007A00A100A2000C +S31508009E38A300A500AC00AF00E000E100E200E300E3 +S31508009E48E400E500E600E700E800E900EA00EB00C0 +S31508009E58EC00ED00EE00EF00F000F100F200F30070 +S31508009E68F400F500F600F800F900FA00FB00FC001B +S31508009E78FD00FE00FF0001010301050107010901B4 +S31508009E880B010D010F011101130115011701190124 +S31508009E981B011D011F012101230125012701290194 +S31508009EA82B012D012F0131013301350137013A0103 +S31508009EB83C013E01400142014401460148014B016B +S31508009EC84D014F01510153015501570159015B01D4 +S31508009ED85D015F01610163016501670169016B0144 +S31508009EE86D016F0171017301750177017A017C01B2 +S31508009EF87E019201B103B203B303B403B503B603F3 +S31508009F08B703B803B903BA03BB03BC03BD03BE034F +S31508009F18BF03C003C103C303C403C503C603C703FA +S31508009F28C803C903CA0330043104320433043404A9 +S31508009F38350436043704380439043A043B043C0427 +S31508009F483D043E043F0440044104420443044404D7 +S31508009F58450446044704480449044A044B044C0487 +S31508009F684D044E044F045104520453045404550432 +S31508009F7856045704580459045A045B045C045E04DE +S31508009F885F0470217121722173217421752176214C +S31508009F987721782179217A217B217C217D217E21CF +S31508009FA87F2141FF42FF43FF44FF45FF46FF47FF26 +S31508009FB848FF49FF4AFF4BFF4CFF4DFF4EFF4FFF37 +S31508009FC850FF51FF52FF53FF54FF55FF56FF57FFE7 +S31508009FD858FF59FF5AFF0000410042004300440059 +S31508009FE8450046004700480049004A004B004C0017 +S31508009FF84D004E004F0050005100520053005400C7 +S3150800A008550056005700580059005A002100E0FF2D +S3150800A018E1FFE5FFE2FFE3FFC000C100C200C3009D +S3150800A028C400C500C600C700C800C900CA00CB00DE +S3150800A038CC00CD00CE00CF00D000D100D200D3008E +S3150800A048D400D500D600D800D900DA00DB00DC0039 +S3150800A058DD00DE007801000102010401060108019D +S3150800A0680A010C010E01100112011401160118014A +S3150800A0781A011C011E0120012201240126012801BA +S3150800A0882A012C012E013001320134013601390129 +S3150800A0983B013D013F0141014301450147014A0191 +S3150800A0A84C014E01500152015401560158015A01FA +S3150800A0B85C015E01600162016401660168016A016A +S3150800A0C86C016E01700172017401760179017B01D8 +S3150800A0D87D019101910392039303940395039603D3 +S3150800A0E89703980399039A039B039C039D039E036E +S3150800A0F89F03A003A103A303A403A503A603A70319 +S3150800A108A803A903AA0310041104120413041404C7 +S3150800A118150416041704180419041A041B041C0445 +S3150800A1281D041E041F0420042104220423042404F5 +S3150800A138250426042704280429042A042B042C04A5 +S3150800A1482D042E042F040104020403040404050440 +S3150800A15806040704080409040A040B040C040E047C +S3150800A1680F0460216121622163216421652166212A +S3150800A1786721682169216A216B216C216D216E216D +S3150800A1886F2121FF22FF23FF24FF25FF26FF27FF34 +S3150800A19828FF29FF2AFF2BFF2CFF2DFF2EFF2FFF55 +S3150800A1A830FF31FF32FF33FF34FF35FF36FF37FF05 +S3150800A1B838FF39FF3AFF000080B54548006850F077 +S3150800A1C80100434908604348002101604048006887 +S3150800A1D8414908403E4908604048414901603C48B1 +S3150800A1E8006830F480203A4908603E48002101603A +S3150800A1F800F005F83C485FF00061016001BD82B0D7 +S3150800A20800200190002000903148006850F4803002 +S3150800A2182F4908602E48006810F40030009001980D +S3150800A228401C01900098002803D10198B0F5A06F4A +S3150800A238F0D127480068800302D50120009001E084 +S3150800A24800200090009801283ED12848006850F060 +S3150800A2588050264908602648006850F4404024493A +S3150800A26808601C481B49096801601A48006850F4C8 +S3150800A2780040184908601748006850F4A050154966 +S3150800A288086016481B4901601148006850F080703C +S3150800A2980F4908600E4800688001FBD5164840F249 +S3150800A2A8056101600B480068800880000949086054 +S3150800A2B80848006850F00200064908600548006822 +S3150800A2C810F00C000828F9D102B070470000000009 +S3150800A2D80038024008380240FFFFF6FE04380240FC +S3150800A2E8103000240C38024008ED00E040380240DF +S3150800A2F8007000400C544007003C0240C700FC00B0 +S3150800A308E900E200E400E000E500E700EA00EB0007 +S3150800A318E800EF00EE00EC00C400C500C900E6003E +S3150800A328C600F400F600F200FB00F900FF00D600AC +S3150800A338DC00A200A300A500A7209201E100ED0019 +S3150800A348F300FA00F100D100AA00BA00BF001023F2 +S3150800A358AC00BD00BC00A100AB00BB00912592254E +S3150800A3689325022524256125622556255525632525 +S3150800A378512557255D255C255B251025142534258B +S3150800A3882C251C2500253C255E255F255A255425A0 +S3150800A39869256625602550256C2567256825642561 +S3150800A3A8652559255825522553256B256A251825C7 +S3150800A3B80C25882584258C2590258025B103DF0062 +S3150800A3C89303C003A303C303B500C403A6039803F2 +S3150800A3D8A903B4031E22C603B50329226122B100C4 +S3150800A3E86522642220232123F7004822B000192277 +S3150800A3F8B7001A227F20B200A025A00080B500F079 +S3150800A40805F800F073F800F07FF8FCE700B583B0AC +S3150800A418FFF7D2FE01210120F9F7E4FB012000909D +S3150800A42800208DF8040000208DF8070002208DF81A +S3150800A438050000A92A48F9F7CBFA01212020F9F7DF +S3150800A44801FC01210420F9F7CDFB0822062125483D +S3150800A458F9F71CFB082207212248F9F717FB002001 +S3150800A4688DF8060001208DF8070002208DF80400F3 +S3150800A4784020009002208DF8050000A91948F9F730 +S3150800A488A7FA02208DF804008020009000A9154834 +S3150800A498F9F79EFA01210220F9F7A4FB09220521FA +S3150800A4A81148F9F7F3FA092206210F48F9F7EEFADF +S3150800A4B86020009002208DF8040002208DF805001F +S3150800A4C800208DF8060001208DF8070000A9064827 +S3150800A4D8F9F77EFA01215FF0C060F9F7A3FB07BD1B +S3150800A4E800000240000802400004024080B5FCF75C +S3150800A4F884FCFBF73DF8FCF758FCFCF757F8FBF724 +S3150800A508AFFF00F00DF801BD80B5FCF777FCFBF747 +S3150800A51843F8FCF781F8FBF7BBFF00F00CF801BD20 +S3150800A52880B5154801210170FBF740F81349086002 +S3150800A53800F001F801BD80B5FCF734F8012819D0F8 +S3150800A548FCF747F8002815D00B480078012811D1E0 +S3150800A558FBF72CF80949096801F51C51103188429E +S3150800A56808D3054800210170FCF73CF8002801D1FA +S3150800A578FCF7EEFB01BD00001A2E0020A82D0020CE +S3150800A588809A90418E418F804545454949498E8F25 +S3150800A5989092924F994F555559999A9B9C9D9E9F73 +S3150800A5A841494F55A5A5A6A7A8A9AAABAC21AEAF00 +S3150800A5B8B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF0D +S3150800A5C8C0C1C2C3C4C5C6C7C8C9CACBCCCDCECFFD +S3150800A5D8D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFED +S3150800A5E8E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFDD +S3150800A5F8F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFFCD +S3150800A60812200880164870470420088015487047A5 +S3150800A61880B50A0014491548FEF72AFE124802BDF5 +S3150800A62880B50A0010491248FEF722FE0E4802BDF8 +S3150800A63880B50A000C490F48FEF71AFE0A4802BDFB +S3150800A64880B50A0008490C48FEF712FE064802BDFE +S3150800A65880B50A0004490948FEF70AFE024802BD01 +S3150800A668B0000020DC000020A82700204CAB00081A +S3150800A678A4AB0008B4AB000818AC0008F4AA000894 +S3150800A68800C00008004000000300000000000108A0 +S3150800A6980000010004000000000002080000020093 +S3150800A6A8050000000000040800000200060000007B +S3150800A6B8000006080000020007000000000008085D +S3150800A6C8000002000800000000000A080000020056 +S3150800A6D80900000000000C08000002000A0000003B +S3150800A6E800000E08000002000B000000433A5C5701 +S3150800A6F86F726B5C736F6674776172655C4F7065B1 +S3150800A7086E424C545C5461726765745C44656D6F3F +S3150800A7185C41524D434D345F53544D33325F4F6C51 +S3150800A728696D65785F53544D3332453430375F4920 +S3150800A73841525C426F6F745C6C69625C7569705CE7 +S3150800A7486E65746465762E6300000000433A5C57AC +S3150800A7586F726B5C736F6674776172655C4F706550 +S3150800A7686E424C545C5461726765745C536F7572BB +S3150800A77863655C41524D434D345F53544D33325CE7 +S3150800A7884941525C766563746F72732E63000000E4 +S3150800A798433A5C576F726B5C736F66747761726560 +S3150800A7A85C4F70656E424C545C5461726765745CA4 +S3150800A7B8536F757263655C41524D434D345F53540C +S3150800A7C84D33325C63616E2E63000000433A5C5772 +S3150800A7D86F726B5C736F6674776172655C4F7065D0 +S3150800A7E86E424C545C5461726765745C536F75723B +S3150800A7F863655C41524D434D345F53544D33325C67 +S3150800A808756172742E630000433A5C576F726B5C0D +S3150800A818736F6674776172655C4F70656E424C54E7 +S3150800A8285C5461726765745C536F757263655C41E5 +S3150800A838524D434D345F53544D33325C7573622E13 +S3150800A848630000007047C0B2002802D0012801D072 +S3150800A85801E000E0FFE77047704780B5FCF717FF8F +S3150800A86801BD80B5FCF714FF01BD80B50120FCF7D2 +S3150800A8780DFF01BD80B50020FCF708FF01BD0000EB +S3150800A888433A5C576F726B5C736F6674776172656F +S3150800A8985C4F70656E424C545C5461726765745CB3 +S3150800A8A8536F757263655C66696C652E6300000094 +S3150800A8B850617273696E67206669726D7761726531 +S3150800A8C82066696C6520746F206F627461696E20F2 +S3150800A8D865726173652073697A652E2E2E000000ED +S3150800A8E80000080010001800200028003000380072 +S3150800A8F840004800500058008000880090009800E2 +S3150800A908A000A800B000B800C000C800D000D80051 +S3150800A9184669726D77617265207570646174652021 +S3150800A9287375636365737366756C6C7920636F6D8D +S3150800A938706C657465640A0D000000004F70656EDA +S3150800A948696E67206669726D776172652066696CDB +S3150800A9586520666F722072656164696E672E2E2E91 +S3150800A9680000000010B5074979441831064C7C44A4 +S3150800A978163404E00A68081D511888470146A1429A +S3150800A988F8D110BDBC000000DC0000000502060274 +S3150800A998060307030803090309040A040B040C043D +S3150800A9A80C050D050E050F050F06100610071008ED +S3150800A9B84669726D77617265207570646174652081 +S3150800A9C87265717565737420646574656374656406 +S3150800A9D80A0D00005374617274696E67207468659D +S3150800A9E82070726F6772616D6D696E672073657125 +S3150800A9F875656E63650A0D0052656164696E672040 +S3150800AA086C696E652066726F6D2066696C652E2E98 +S3150800AA182E4552524F520A0D00000000496E7661C3 +S3150800AA286C696420636865636B73756D20666F75FA +S3150800AA386E642E2E2E4552524F520A0D0000000003 +S3150800AA489F90FFFF482D0000E4000020000000004A +S3150800AA583376FFFFE4000000D00100000000002064 +S3150800AA68000000002F64656D6F70726F675F6F6C0A +S3150800AA78696D65785F73746D3332653430372E7354 +S3150800AA88726563002062797465732066726F6D203B +S3150800AA986D656D6F7279206174203078000000004A +S3150800AAA857726974696E672070726F6772616D2074 +S3150800AAB8636865636B73756D2E2E2E002062797434 +S3150800AAC8657320746F206D656D6F727920617420C7 +S3150800AAD830780000436C6F73696E67206669726D1B +S3150800AAE8776172652066696C650A0D0057696E5547 +S3150800AAF853422042756C6B20496E746572666163B1 +S3150800AB086500000000F009F8002801D0FFF72AFFC1 +S3150800AB180020FFF773FC00F002F80120704700F0E8 +S3150800AB2801B800000746384600F002F8FBE70000BF +S3150800AB3880B5C046C046024A11001820ABBEFBE7DE +S3150800AB482600020057696E5553422042756C6B20E1 +S3150800AB584465766963650000034B9D46C046C04652 +S3150800AB68C046C046FFF7CEFF30360020010305076A +S3150800AB78090E10121416181C1E00000050726F6772 +S3150800AB8872616D6D696E6720000000002F626F6F35 +S3150800AB98746C6F672E747874000000004F70656EC9 +S3150800ABA8424C54205573657200000000303030302E +S3150800ABB830303030303530430000000080B53C2155 +S3150800ABC80148FBF741FC01BD54A70008222A3A3C74 +S3150800ABD83E3F7C7F0000000045726173696E6720FE +S3150800ABE800000000C046C046C046C046FFF78AFFB8 +S3150800ABF82B2C3B3D5B5D00004552524F520A0D0017 +S3150800AC084F4B0A0D00000000FFFFFFFFFFFF000083 +S3150800AC1844656661756C74004F70656E424C5400E5 +S3150800AC2800000000FFFFFFFFF988000825890008D3 +S3150800AC383D89000800000000000000009F89000800 +S3150800AC48A9890008BB890008000000000000000068 +S3150800AC58CD890008C77D00085B7E0008757D000859 +S3150800AC68A37F0008397F0008877F0008697F0008E6 +S3150800AC78E77F0008F57F00080380000819800008A8 +S3150800AC8809022000010100C0320904000002FF0081 +S3150800AC980000070581024000FF070501024000FF82 +S3150800ACA809A6000811A6000829A6000819A600087A +S3150800ACB839A6000849A6000859A600084DA800089C +S3150800ACC84FA8000861A8000863A800086BA8000830 +S3150800ACD873A800087DA800081201100100000040AA +S3150800ACE8501DAC60000101020301000000000000CD +S3150800ACF8010203040102030406070809010000000B +S3110800AD082C0000200403090404010000CC +S7050800ABED5A diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/hooks.c b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/hooks.c index 30cc2953..d4f0bed8 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/hooks.c @@ -362,13 +362,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while(USART_GetFlagStatus(USART6, USART_FLAG_TC) == RESET); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while(USART_GetFlagStatus(USART6, USART_FLAG_TC) == RESET) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/ide/settings/stm32f407.wsdt b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/ide/settings/stm32f407.wsdt index ab4ba15b..672f0112 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/ide/settings/stm32f407.wsdt +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/ide/settings/stm32f407.wsdt @@ -30,7 +30,7 @@ - + TabID-10231-8055 @@ -42,7 +42,7 @@ - 0TabID-19870-1384BuildBuildTabID-11216-22197Debug LogDebug-LogTabID-16597-313Find All DeclarationsFind-All-DeclarationsTabID-7799-665Ambiguous DefinitionsSelect-Ambiguous-DefinitionsTabID-26870-1945Find in FilesFind-in-Files0 + 0TabID-19870-1384BuildBuildTabID-11216-22197Debug LogDebug-LogTabID-16597-313Find All DeclarationsFind-All-DeclarationsTabID-7799-665Ambiguous DefinitionsSelect-Ambiguous-DefinitionsTabID-26870-1945Find in FilesFind-in-Files0 @@ -55,7 +55,7 @@ - iaridepm.enu1-2-2963354-2-212914367188141865185417957341-2-2963380-2-212914367188141865198958957341 + iaridepm.enu1-2-2963354-2-212914367188141865185417957341-2-2963380-2-212914367188141865198958957341 diff --git a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/ide/stm32f407.dep b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/ide/stm32f407.dep index 697ac50d..3e9cbd59 100644 --- a/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/ide/stm32f407.dep +++ b/Target/Demo/ARMCM4_STM32_Olimex_STM32E407_IAR/Boot/ide/stm32f407.dep @@ -98,138 +98,6 @@ $PROJ_DIR$\..\lib\usbdevicelib\Core\inc\usbd_req.h $PROJ_DIR$\..\lib\usbdevicelib\Core\inc\usbd_usr.h $PROJ_DIR$\..\blt_conf.h - $PROJ_DIR$\..\hooks.c - $PROJ_DIR$\..\main.c - $PROJ_DIR$\..\usb_bsp.c - $PROJ_DIR$\..\usb_conf.h - $PROJ_DIR$\..\usbd_bulk.c - $PROJ_DIR$\..\usbd_bulk.h - $PROJ_DIR$\..\usbd_conf.h - $PROJ_DIR$\..\usbd_desc.c - $PROJ_DIR$\..\usbd_desc.h - $PROJ_DIR$\..\usbd_usr.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\can.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\cstart.s - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\vectors.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\can.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\cpu.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\cpu.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\nvm.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\flash.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\flash.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\nvm.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\timer.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\timer.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\uart.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\types.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\uart.c - $PROJ_DIR$\..\obj\usb_bsp.o - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\usb.c - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\diskio.h - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\usb.h - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\integer.h - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.h - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\clock.h - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip-fw.c - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip-fw.h - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arch.h - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip.c - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip.h - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arp.c - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arp.h - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_timer.c - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_timer.h - $PROJ_DIR$\..\..\..\..\Source\assert.c - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uiplib.c - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uiplib.h - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uipopt.h - $PROJ_DIR$\..\..\..\..\Source\assert.h - $PROJ_DIR$\..\..\..\..\Source\backdoor.c - $PROJ_DIR$\..\..\..\..\Source\backdoor.h - $PROJ_DIR$\..\..\..\..\Source\boot.c - $PROJ_DIR$\..\..\..\..\Source\boot.h - $PROJ_DIR$\..\..\..\..\Source\com.c - $PROJ_DIR$\..\..\..\..\Source\com.h - $PROJ_DIR$\..\..\..\..\Source\cop.c - $PROJ_DIR$\..\..\..\..\Source\cop.h - $PROJ_DIR$\..\..\..\..\Source\file.c - $PROJ_DIR$\..\..\..\..\Source\file.h - $PROJ_DIR$\..\..\..\..\Source\net.c - $PROJ_DIR$\..\..\..\..\Source\net.h - $PROJ_DIR$\..\..\..\..\Source\plausibility.h - $PROJ_DIR$\..\..\..\..\Source\xcp.c - $PROJ_DIR$\..\..\..\..\Source\xcp.h - $PROJ_DIR$\..\obj\usb_dcd_int.lst - $PROJ_DIR$\..\obj\usb.pbi - $PROJ_DIR$\..\obj\usb.o - $PROJ_DIR$\..\obj\usbd_ioreq.pbi - $PROJ_DIR$\..\obj\usbd_bulk.o - $PROJ_DIR$\..\obj\usbd_core.pbi - $PROJ_DIR$\..\obj\usbd_req.o - $PROJ_DIR$\..\obj\usbd_desc.o - $PROJ_DIR$\..\obj\usbd_ioreq.o - $PROJ_DIR$\..\obj\usbd_core.o - $PROJ_DIR$\..\obj\usbd_usr.o - $PROJ_DIR$\..\obj\usbd_usr.pbi - $PROJ_DIR$\..\obj\usb_bsp.pbi - $PROJ_DIR$\..\obj\usbd_bulk.pbi - $PROJ_DIR$\..\obj\usbd_desc.pbi - $PROJ_DIR$\..\obj\backdoor.lst - $PROJ_DIR$\..\obj\file.lst - $PROJ_DIR$\..\obj\boot.lst - $PROJ_DIR$\..\obj\cpu.lst - $PROJ_DIR$\..\obj\flash.lst - $PROJ_DIR$\..\obj\timer.pbi - $PROJ_DIR$\..\obj\uip-fw.lst - $TOOLKIT_DIR$\inc\c\DLib_Product.h - $PROJ_DIR$\..\obj\stm32f4xx_exti.pbi - $PROJ_DIR$\..\obj\stm32f4xx_iwdg.pbi - $PROJ_DIR$\..\obj\stm32f4xx_fsmc.lst - $TOOLKIT_DIR$\lib\m7M_tl.a - $PROJ_DIR$\..\obj\stm32f4xx_fsmc.pbi - $PROJ_DIR$\..\obj\stm32f4xx_sdio.lst - $PROJ_DIR$\..\obj\stm32f4xx_dac.lst - $PROJ_DIR$\..\obj\stm32f4xx_hash.lst - $PROJ_DIR$\..\obj\uart.o - $PROJ_DIR$\..\obj\stm32f4xx_dma.lst - $PROJ_DIR$\..\obj\stm32f4xx_syscfg.lst - $TOOLKIT_DIR$\lib\rt7M_tl.a - $PROJ_DIR$\..\obj\stm32f4xx_dcmi.lst - $TOOLKIT_DIR$\lib\dl7M_tln.a - $PROJ_DIR$\..\obj\stm32f4xx_rng.lst - $PROJ_DIR$\..\obj\stm32f4xx_hash_sha1.lst - $PROJ_DIR$\..\obj\usbd_bulk.lst - $PROJ_DIR$\..\obj\usb.lst - $PROJ_DIR$\..\obj\usb_bsp.lst - $PROJ_DIR$\..\obj\usb_dcd.lst - $TOOLKIT_DIR$\inc\c\DLib_Product_string.h - $PROJ_DIR$\..\obj\main.lst - $PROJ_DIR$\..\obj\com.lst - $TOOLKIT_DIR$\inc\c\stdarg.h - $PROJ_DIR$\..\obj\hooks.lst - $PROJ_DIR$\..\obj\cop.lst - $TOOLKIT_DIR$\inc\c\xmtx.h - $PROJ_DIR$\..\obj\uart.pbi - $PROJ_DIR$\..\obj\mmc.o - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.h - $PROJ_DIR$\..\obj\mmc.lst - $PROJ_DIR$\..\obj\stm32f407.pbd - $PROJ_DIR$\..\obj\ff.lst - $PROJ_DIR$\..\obj\stm32f4xx_tim.lst - $PROJ_DIR$\..\obj\stm32f4xx_spi.lst - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\integer.h - $PROJ_DIR$\..\obj\uart.lst - $PROJ_DIR$\..\obj\stm32f4xx_usart.pbi - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c - $PROJ_DIR$\..\obj\stm32f4xx_i2c.o - $PROJ_DIR$\..\obj\stm32f4xx_cryp_des.pbi - $PROJ_DIR$\..\obj\mmc.pbi - $PROJ_DIR$\..\obj\stm32f4xx_tim.o - $PROJ_DIR$\..\obj\ff.pbi - $PROJ_DIR$\..\obj\stm32f4xx_hash_md5.pbi - $PROJ_DIR$\..\obj\stm32f4xx_can.lst $PROJ_DIR$\..\obj\stm32f4xx_cryp_aes.lst $PROJ_DIR$\..\obj\stm32f4xx_hash.pbi $PROJ_DIR$\..\obj\stm32f4xx_cryp_des.lst @@ -263,8 +131,8 @@ $PROJ_DIR$\..\obj\unicode.lst $PROJ_DIR$\..\obj\uip_timer.o $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\memory.x $PROJ_DIR$\..\obj\stm32_eth.pbi + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\memory.x $PROJ_DIR$\..\..\..\..\Source\fatfs\src\diskio.h $PROJ_DIR$\..\obj\stm32_eth.lst $PROJ_DIR$\..\obj\stm32f4xx_flash.pbi @@ -330,8 +198,8 @@ $PROJ_DIR$\..\obj\boot.pbi $TOOLKIT_DIR$\inc\c\string.h $TOOLKIT_DIR$\inc\c\ycheck.h - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\ccsbcs.c $PROJ_DIR$\..\obj\stm32f4xx_wwdg.pbi + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\ccsbcs.c $PROJ_DIR$\..\obj\stm32f4xx_crc.pbi $PROJ_DIR$\..\obj\stm32f4xx_wwdg.o $PROJ_DIR$\..\obj\cop.pbi @@ -418,33 +286,165 @@ $PROJ_DIR$\..\obj\usbd_desc.lst $PROJ_DIR$\..\obj\usb_core.lst $PROJ_DIR$\..\obj\usbd_ioreq.lst + $PROJ_DIR$\..\obj\usbd_usr.pbi + $PROJ_DIR$\..\obj\usb_bsp.pbi + $PROJ_DIR$\..\obj\usbd_bulk.pbi + $PROJ_DIR$\..\obj\usbd_desc.pbi + $PROJ_DIR$\..\obj\backdoor.lst + $PROJ_DIR$\..\obj\file.lst + $PROJ_DIR$\..\obj\boot.lst + $PROJ_DIR$\..\obj\cpu.lst + $PROJ_DIR$\..\obj\flash.lst + $PROJ_DIR$\..\obj\timer.pbi + $PROJ_DIR$\..\obj\uip-fw.lst + $TOOLKIT_DIR$\inc\c\DLib_Product.h + $PROJ_DIR$\..\obj\stm32f4xx_exti.pbi + $PROJ_DIR$\..\obj\stm32f4xx_iwdg.pbi + $PROJ_DIR$\..\obj\stm32f4xx_fsmc.lst + $TOOLKIT_DIR$\lib\m7M_tl.a + $PROJ_DIR$\..\obj\stm32f4xx_fsmc.pbi + $PROJ_DIR$\..\obj\stm32f4xx_sdio.lst + $PROJ_DIR$\..\obj\stm32f4xx_dac.lst + $PROJ_DIR$\..\obj\stm32f4xx_hash.lst + $PROJ_DIR$\..\obj\uart.o + $PROJ_DIR$\..\obj\stm32f4xx_dma.lst + $PROJ_DIR$\..\obj\stm32f4xx_syscfg.lst + $TOOLKIT_DIR$\lib\rt7M_tl.a + $PROJ_DIR$\..\obj\stm32f4xx_dcmi.lst + $TOOLKIT_DIR$\lib\dl7M_tln.a + $PROJ_DIR$\..\obj\stm32f4xx_rng.lst + $PROJ_DIR$\..\obj\stm32f4xx_hash_sha1.lst + $PROJ_DIR$\..\obj\usbd_bulk.lst + $PROJ_DIR$\..\obj\usb.lst + $PROJ_DIR$\..\obj\usb_bsp.lst + $PROJ_DIR$\..\obj\usb_dcd.lst + $TOOLKIT_DIR$\inc\c\DLib_Product_string.h + $PROJ_DIR$\..\obj\main.lst + $PROJ_DIR$\..\obj\com.lst + $TOOLKIT_DIR$\inc\c\stdarg.h + $PROJ_DIR$\..\obj\hooks.lst + $PROJ_DIR$\..\obj\cop.lst + $TOOLKIT_DIR$\inc\c\xmtx.h + $PROJ_DIR$\..\obj\uart.pbi + $PROJ_DIR$\..\obj\mmc.o + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.h + $PROJ_DIR$\..\obj\mmc.lst + $PROJ_DIR$\..\obj\stm32f407.pbd + $PROJ_DIR$\..\obj\ff.lst + $PROJ_DIR$\..\obj\stm32f4xx_tim.lst + $PROJ_DIR$\..\obj\stm32f4xx_spi.lst + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\integer.h + $PROJ_DIR$\..\obj\uart.lst + $PROJ_DIR$\..\obj\stm32f4xx_usart.pbi + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c + $PROJ_DIR$\..\obj\stm32f4xx_i2c.o + $PROJ_DIR$\..\obj\stm32f4xx_cryp_des.pbi + $PROJ_DIR$\..\obj\mmc.pbi + $PROJ_DIR$\..\obj\stm32f4xx_tim.o + $PROJ_DIR$\..\obj\ff.pbi + $PROJ_DIR$\..\obj\stm32f4xx_hash_md5.pbi + $PROJ_DIR$\..\obj\stm32f4xx_can.lst + $PROJ_DIR$\..\hooks.c + $PROJ_DIR$\..\main.c + $PROJ_DIR$\..\usb_bsp.c + $PROJ_DIR$\..\usb_conf.h + $PROJ_DIR$\..\usbd_bulk.c + $PROJ_DIR$\..\usbd_bulk.h + $PROJ_DIR$\..\usbd_conf.h + $PROJ_DIR$\..\usbd_desc.c + $PROJ_DIR$\..\usbd_desc.h + $PROJ_DIR$\..\usbd_usr.c + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\diskio.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\cstart.s + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\vectors.c + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\can.c + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\cpu.c + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\flash.c + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\flash.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\nvm.c + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\timer.c + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\types.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\uart.c + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\usb.c + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\integer.h + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.h + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\clock.h + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip-fw.c + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip-fw.h + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arch.h + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip.c + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip.h + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arp.c + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arp.h + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_timer.c + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_timer.h + $PROJ_DIR$\..\..\..\..\Source\assert.c + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uiplib.c + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uiplib.h + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uipopt.h + $PROJ_DIR$\..\..\..\..\Source\assert.h + $PROJ_DIR$\..\..\..\..\Source\backdoor.c + $PROJ_DIR$\..\..\..\..\Source\backdoor.h + $PROJ_DIR$\..\..\..\..\Source\boot.c + $PROJ_DIR$\..\..\..\..\Source\boot.h $PROJ_DIR$\..\..\..\..\Source\can.h + $PROJ_DIR$\..\..\..\..\Source\com.c + $PROJ_DIR$\..\..\..\..\Source\com.h + $PROJ_DIR$\..\..\..\..\Source\cop.c + $PROJ_DIR$\..\..\..\..\Source\cop.h + $PROJ_DIR$\..\..\..\..\Source\cpu.h + $PROJ_DIR$\..\..\..\..\Source\file.c + $PROJ_DIR$\..\..\..\..\Source\file.h + $PROJ_DIR$\..\..\..\..\Source\net.c + $PROJ_DIR$\..\..\..\..\Source\net.h + $PROJ_DIR$\..\..\..\..\Source\nvm.h + $PROJ_DIR$\..\..\..\..\Source\plausibility.h + $PROJ_DIR$\..\..\..\..\Source\timer.h $PROJ_DIR$\..\..\..\..\Source\uart.h $PROJ_DIR$\..\..\..\..\Source\usb.h - $PROJ_DIR$\..\..\..\..\Source\nvm.h - $PROJ_DIR$\..\..\..\..\Source\cpu.h - $PROJ_DIR$\..\..\..\..\Source\timer.h + $PROJ_DIR$\..\..\..\..\Source\xcp.c + $PROJ_DIR$\..\..\..\..\Source\xcp.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\nvm.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\can.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\timer.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\uart.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\cpu.h + $PROJ_DIR$\..\obj\usb_bsp.o + $PROJ_DIR$\..\obj\usb_dcd_int.lst + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\usb.h + $PROJ_DIR$\..\obj\usb.pbi + $PROJ_DIR$\..\obj\usb.o + $PROJ_DIR$\..\obj\usbd_ioreq.pbi + $PROJ_DIR$\..\obj\usbd_bulk.o + $PROJ_DIR$\..\obj\usbd_core.pbi + $PROJ_DIR$\..\obj\usbd_req.o + $PROJ_DIR$\..\obj\usbd_desc.o + $PROJ_DIR$\..\obj\usbd_ioreq.o + $PROJ_DIR$\..\obj\usbd_core.o + $PROJ_DIR$\..\obj\usbd_usr.o $PROJ_DIR$\..\lib\ethernetlib\src\stm32_eth.c - BICOMP - 258 + ICCARM + 128 96 - ICCARM - 260 228 + BICOMP + 125 - BICOMP - 0 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 0 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 0 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 0 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -452,22 +452,18 @@ $PROJ_DIR$\..\lib\fatfs\mmc.c - BICOMP - 219 + ICCARM + 322 320 - ICCARM - 208 206 + BICOMP + 333 - - BICOMP - 322 323 290 283 370 177 291 388 364 198 119 121 10 5 334 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 322 323 290 283 370 177 291 388 364 198 119 121 10 5 334 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + 190 191 158 151 238 291 159 256 232 312 348 360 10 5 202 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -475,22 +471,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\misc.c - BICOMP - 335 + ICCARM + 99 237 - ICCARM - 231 369 + BICOMP + 203 - BICOMP - 9 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 + ICCARM + 9 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 - ICCARM - 9 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 + BICOMP + 9 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 @@ -498,18 +494,18 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_adc.c - BICOMP - 275 + ICCARM + 208 139 - ICCARM - 340 271 + BICOMP + 143 ICCARM - 12 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + 12 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -517,22 +513,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_can.c - BICOMP - 278 + ICCARM + 337 141 - ICCARM - 223 273 + BICOMP + 146 - BICOMP - 14 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 14 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 14 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 14 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -540,22 +536,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_crc.c - BICOMP - 326 + ICCARM + 247 156 - ICCARM - 379 288 + BICOMP + 194 - BICOMP - 17 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 17 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 17 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 17 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -563,22 +559,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp.c - BICOMP - 389 + ICCARM + 119 142 - ICCARM - 251 274 + BICOMP + 257 - BICOMP - 19 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 19 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 19 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 19 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -586,22 +582,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_aes.c - BICOMP - 363 + ICCARM + 92 179 - ICCARM - 224 311 + BICOMP + 231 - BICOMP - 19 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 19 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 19 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 19 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -609,22 +605,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_des.c - BICOMP - 218 + ICCARM + 94 169 - ICCARM - 226 301 + BICOMP + 332 - BICOMP - 19 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 19 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 19 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 19 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -632,22 +628,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_tdes.c - BICOMP - 265 + ICCARM + 114 138 - ICCARM - 246 270 + BICOMP + 133 - BICOMP - 19 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 19 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 19 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 19 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -655,22 +651,114 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dac.c - BICOMP - 336 + ICCARM + 298 160 - ICCARM - 184 292 + BICOMP + 204 - BICOMP - 24 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 24 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + BICOMP + 24 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dbgmcu.c + ICCARM - 24 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + 246 140 + + + BICOMP + 218 + + + + + ICCARM + 26 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 26 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dcmi.c + + + ICCARM + 304 161 + + + BICOMP + 157 + + + + + ICCARM + 28 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 28 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma.c + + + ICCARM + 301 162 + + + BICOMP + 261 + + + + + ICCARM + 30 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 30 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_exti.c + + + ICCARM + 212 186 + + + BICOMP + 292 + + + + + ICCARM + 32 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 32 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -679,118 +767,26 @@ ILINK - 371 252 + 239 120 - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dbgmcu.c - - - BICOMP - 350 - - - ICCARM - 378 272 - - - - - BICOMP - 26 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 26 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dcmi.c - - - BICOMP - 289 - - - ICCARM - 190 293 - - - - - BICOMP - 28 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 28 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma.c - - - BICOMP - 393 - - - ICCARM - 187 294 - - - - - BICOMP - 30 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 30 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_exti.c - - - BICOMP - 178 - - - ICCARM - 344 318 - - - - - BICOMP - 32 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 32 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_flash.c - BICOMP - 261 + ICCARM + 109 163 - ICCARM - 241 295 + BICOMP + 129 ICCARM - 34 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + 34 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -798,22 +794,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c - BICOMP - 182 + ICCARM + 294 187 - ICCARM - 180 319 + BICOMP + 296 - BICOMP - 36 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 36 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 36 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 36 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -821,22 +817,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_gpio.c - BICOMP - 227 + ICCARM + 107 150 - ICCARM - 239 282 + BICOMP + 95 - BICOMP - 38 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 38 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 38 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 38 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -844,22 +840,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash.c - BICOMP - 225 + ICCARM + 299 153 - ICCARM - 185 285 + BICOMP + 93 - BICOMP - 40 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 40 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 40 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 40 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -867,22 +863,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash_md5.c - BICOMP - 222 + ICCARM + 243 155 - ICCARM - 375 287 + BICOMP + 336 - BICOMP - 40 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 40 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 40 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 40 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -890,22 +886,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash_sha1.c - BICOMP - 376 + ICCARM + 307 154 - ICCARM - 193 286 + BICOMP + 244 - BICOMP - 40 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 40 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 40 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 40 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -913,22 +909,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_i2c.c - BICOMP - 391 + ICCARM + 111 331 - ICCARM - 243 217 + BICOMP + 259 - BICOMP - 44 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 44 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 44 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 44 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 46 48 50 52 54 56 58 60 62 64 66 9 @@ -936,22 +932,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_iwdg.c - BICOMP - 179 + ICCARM + 104 258 - ICCARM - 236 390 + BICOMP + 293 - BICOMP - 46 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 46 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 46 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 46 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 48 50 52 54 56 58 60 62 64 66 9 @@ -959,22 +955,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_pwr.c - BICOMP - 346 + ICCARM + 106 149 - ICCARM - 238 281 + BICOMP + 214 - BICOMP - 48 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 50 52 54 56 58 60 62 64 66 9 + ICCARM + 48 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 50 52 54 56 58 60 62 64 66 9 - ICCARM - 48 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 50 52 54 56 58 60 62 64 66 9 + BICOMP + 48 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 50 52 54 56 58 60 62 64 66 9 @@ -982,22 +978,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rcc.c - BICOMP - 279 + ICCARM + 105 260 - ICCARM - 237 392 + BICOMP + 147 - BICOMP - 50 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 52 54 56 58 60 62 64 66 9 + ICCARM + 50 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 52 54 56 58 60 62 64 66 9 - ICCARM - 50 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 52 54 56 58 60 62 64 66 9 + BICOMP + 50 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 52 54 56 58 60 62 64 66 9 @@ -1005,22 +1001,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rng.c - BICOMP - 386 + ICCARM + 306 130 - ICCARM - 192 262 + BICOMP + 254 - BICOMP - 52 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 54 56 58 60 62 64 66 9 + ICCARM + 52 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 54 56 58 60 62 64 66 9 - ICCARM - 52 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 54 56 58 60 62 64 66 9 + BICOMP + 52 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 54 56 58 60 62 64 66 9 @@ -1028,22 +1024,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rtc.c - BICOMP - 348 + ICCARM + 103 131 - ICCARM - 235 263 + BICOMP + 216 - BICOMP - 54 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 56 58 60 62 64 66 9 + ICCARM + 54 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 56 58 60 62 64 66 9 - ICCARM - 54 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 56 58 60 62 64 66 9 + BICOMP + 54 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 56 58 60 62 64 66 9 @@ -1051,22 +1047,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_sdio.c - BICOMP - 347 + ICCARM + 297 132 - ICCARM - 183 264 + BICOMP + 215 - BICOMP - 56 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 58 60 62 64 66 9 + ICCARM + 56 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 58 60 62 64 66 9 - ICCARM - 56 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 58 60 62 64 66 9 + BICOMP + 56 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 58 60 62 64 66 9 @@ -1074,22 +1070,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_spi.c - BICOMP - 381 + ICCARM + 326 134 - ICCARM - 212 266 + BICOMP + 249 - BICOMP - 58 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 60 62 64 66 9 + ICCARM + 58 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 60 62 64 66 9 - ICCARM - 58 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 60 62 64 66 9 + BICOMP + 58 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 60 62 64 66 9 @@ -1097,22 +1093,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_syscfg.c - BICOMP - 249 + ICCARM + 302 252 - ICCARM - 188 384 + BICOMP + 117 - BICOMP - 60 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 62 64 66 9 + ICCARM + 60 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 62 64 66 9 - ICCARM - 60 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 62 64 66 9 + BICOMP + 60 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 62 64 66 9 @@ -1120,22 +1116,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_tim.c - BICOMP - 349 + ICCARM + 325 334 - ICCARM - 211 220 + BICOMP + 217 - BICOMP - 62 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 64 66 9 + ICCARM + 62 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 64 66 9 - ICCARM - 62 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 64 66 9 + BICOMP + 62 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 64 66 9 @@ -1143,22 +1139,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_usart.c - BICOMP - 215 + ICCARM + 110 251 - ICCARM - 242 383 + BICOMP + 329 - BICOMP - 64 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 66 9 + ICCARM + 64 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 66 9 - ICCARM - 64 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 66 9 + BICOMP + 64 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 66 9 @@ -1166,22 +1162,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_wwdg.c - BICOMP - 325 + ICCARM + 108 195 - ICCARM - 240 327 + BICOMP + 192 - BICOMP - 66 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 9 + ICCARM + 66 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 9 - ICCARM - 66 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 9 + BICOMP + 66 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 9 @@ -1189,22 +1185,22 @@ $PROJ_DIR$\..\lib\stdperiphlib\CMSIS\Device\ST\STM32F4xx\Source\system_stm32f4xx.c - BICOMP - 296 + ICCARM + 102 170 - ICCARM - 234 302 + BICOMP + 164 - BICOMP - 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + ICCARM + 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - ICCARM - 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + BICOMP + 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 @@ -1212,22 +1208,22 @@ $PROJ_DIR$\..\lib\uip\clock-arch.c - BICOMP - 337 + ICCARM + 172 112 - ICCARM - 304 244 + BICOMP + 205 - BICOMP - 70 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 + ICCARM + 70 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 - ICCARM - 70 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 + BICOMP + 70 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 @@ -1235,22 +1231,22 @@ $PROJ_DIR$\..\lib\uip\netdev.c - BICOMP - 310 + ICCARM + 183 176 - ICCARM - 315 308 + BICOMP + 178 - BICOMP - 130 138 73 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 151 132 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 0 322 364 198 + ICCARM + 369 377 73 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 392 371 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 0 190 232 312 - ICCARM - 130 138 73 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 151 132 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 0 322 364 198 + BICOMP + 369 377 73 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 392 371 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 0 190 232 312 @@ -1258,22 +1254,22 @@ $PROJ_DIR$\..\lib\usbotgdriver\src\usb_core.c - BICOMP - 401 + ICCARM + 278 272 - ICCARM - 410 404 + BICOMP + 269 - BICOMP - 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 74 + ICCARM + 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 74 - ICCARM - 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 74 + BICOMP + 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 74 @@ -1281,22 +1277,22 @@ $PROJ_DIR$\..\lib\usbotgdriver\src\usb_dcd.c - BICOMP - 403 + ICCARM + 311 273 - ICCARM - 197 405 + BICOMP + 271 - BICOMP - 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 74 + ICCARM + 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 74 - ICCARM - 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 74 + BICOMP + 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 74 @@ -1304,22 +1300,22 @@ $PROJ_DIR$\..\lib\usbotgdriver\src\usb_dcd_int.c - BICOMP - 402 + ICCARM + 406 268 - ICCARM - 155 400 + BICOMP + 270 - BICOMP - 80 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 + ICCARM + 80 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 - ICCARM - 80 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 + BICOMP + 80 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 @@ -1327,22 +1323,22 @@ $PROJ_DIR$\..\lib\usbdevicelib\Core\src\usbd_core.c - BICOMP - 160 + ICCARM + 275 416 - ICCARM - 407 164 + BICOMP + 412 - BICOMP - 84 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 98 89 87 80 74 + ICCARM + 84 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 344 89 87 80 74 - ICCARM - 84 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 98 89 87 80 74 + BICOMP + 84 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 344 89 87 80 74 @@ -1350,744 +1346,45 @@ $PROJ_DIR$\..\lib\usbdevicelib\Core\src\usbd_ioreq.c - BICOMP - 158 + ICCARM + 279 415 - ICCARM - 411 163 + BICOMP + 410 - BICOMP - 87 85 98 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 + ICCARM + 87 85 344 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 - ICCARM - 87 85 98 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 + BICOMP + 87 85 344 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 $PROJ_DIR$\..\lib\usbdevicelib\Core\src\usbd_req.c - - BICOMP - 399 - ICCARM - 408 161 + 276 413 - - - - BICOMP - 89 85 98 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 87 100 - - - ICCARM - 89 85 98 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 87 100 - - - - - $PROJ_DIR$\..\hooks.c - - - BICOMP - 357 - - - ICCARM - 202 397 - - - - - BICOMP - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - - - $PROJ_DIR$\..\main.c - - - BICOMP - 358 - - - ICCARM - 199 396 - - - - - BICOMP - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - - - $PROJ_DIR$\..\usb_bsp.c - - - BICOMP - 167 - - - ICCARM - 196 117 - - - - - BICOMP - 74 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 98 - - - ICCARM - 74 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 98 - - - - - $PROJ_DIR$\..\usbd_bulk.c - - - BICOMP - 168 - - - ICCARM - 194 159 - - - - - BICOMP - 97 87 85 98 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 100 89 - - - ICCARM - 97 87 85 98 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 100 89 - - - - - $PROJ_DIR$\..\usbd_desc.c - - - BICOMP - 169 - - - ICCARM - 409 162 - - - - - BICOMP - 84 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 98 100 89 - - - ICCARM - 84 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 98 100 89 - - - - - $PROJ_DIR$\..\usbd_usr.c - - - BICOMP - 166 - - - ICCARM - 406 165 - - - - - BICOMP - 90 84 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 98 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 87 120 - - - ICCARM - 90 84 78 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 98 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 87 414 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\cstart.s - - - AARM - 359 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\vectors.c - - - BICOMP - 353 - - - ICCARM - 233 330 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\can.c - BICOMP 267 - - ICCARM - 269 268 - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 + 89 85 344 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 87 346 - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\cpu.c - BICOMP - 362 - - - ICCARM - 173 354 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\flash.c - - - BICOMP - 360 - - - ICCARM - 174 361 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\nvm.c - - - BICOMP - 230 - - - ICCARM - 245 305 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 110 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\timer.c - - - BICOMP - 175 - - - ICCARM - 374 277 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\uart.c - - - BICOMP - 205 - - - ICCARM - 214 186 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\usb.c - - - BICOMP - 156 - - - ICCARM - 195 157 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 120 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 80 78 84 85 98 90 100 97 87 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 414 76 95 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 80 78 84 85 98 90 100 97 87 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c - - - BICOMP - 221 - - - ICCARM - 210 387 - - - - - BICOMP - 123 121 3 119 201 323 290 283 370 177 291 388 - - - ICCARM - 123 121 3 119 201 323 290 283 370 177 291 388 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c - - - BICOMP - 345 - - - ICCARM - 254 385 - - - - - BICOMP - 123 121 3 333 - - - ICCARM - 123 121 3 333 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip-fw.c - - - BICOMP - 247 - - - ICCARM - 176 377 - - - - - BICOMP - 130 138 73 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 151 128 127 322 323 290 283 370 177 291 388 364 198 - - - ICCARM - 130 138 73 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 151 128 127 322 323 290 283 370 177 291 388 364 198 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip.c - - - BICOMP - 248 - - - ICCARM - 307 317 - - - - - BICOMP - 130 138 73 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 151 128 322 323 290 283 370 177 291 388 364 198 - - - ICCARM - 130 138 73 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 151 128 322 323 290 283 370 177 291 388 364 198 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arp.c - - - BICOMP - 339 - - - ICCARM - 342 312 - - - - - BICOMP - 132 130 138 73 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 151 322 323 290 283 370 177 291 388 364 198 - - - ICCARM - 132 130 138 73 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 151 322 323 290 283 370 177 291 388 364 198 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_timer.c - - - BICOMP - 343 - - - ICCARM - 313 255 - - - - - BICOMP - 125 70 134 - - - ICCARM - 125 70 134 - - - - - $PROJ_DIR$\..\..\..\..\Source\assert.c - - - BICOMP - 366 - - - ICCARM - 367 365 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uiplib.c - - - BICOMP - 341 - - - ICCARM - 316 314 - - - - - BICOMP - 130 138 73 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 151 137 - - - ICCARM - 130 138 73 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 151 137 - - - - - $PROJ_DIR$\..\..\..\..\Source\backdoor.c - - - BICOMP - 280 - - - ICCARM - 170 394 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 - - - - - $PROJ_DIR$\..\..\..\..\Source\boot.c - - - BICOMP - 321 - - - ICCARM - 172 395 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 - - - - - $PROJ_DIR$\..\..\..\..\Source\com.c - - - BICOMP - 352 - - - ICCARM - 200 398 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 102 114 120 151 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 412 413 414 151 - - - - - $PROJ_DIR$\..\..\..\..\Source\cop.c - - - BICOMP - 328 - - - ICCARM - 203 276 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 - - - - - $PROJ_DIR$\..\..\..\..\Source\file.c - - - BICOMP - 329 - - - ICCARM - 171 320 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 322 323 290 283 370 177 291 388 364 198 229 232 303 204 355 332 331 299 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 322 323 290 283 370 177 291 388 364 198 229 232 303 204 355 332 331 299 - - - - - $PROJ_DIR$\..\..\..\..\Source\net.c - - - BICOMP - 300 - - - ICCARM - 309 338 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 72 130 138 73 151 132 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 72 130 138 73 151 132 - - - - - $PROJ_DIR$\..\..\..\..\Source\xcp.c - - - BICOMP - 356 - - - ICCARM - 372 284 - - - - - BICOMP - 143 115 139 91 152 106 147 108 110 112 141 149 123 121 3 145 154 - - - ICCARM - 143 115 139 91 152 416 147 415 417 141 149 123 121 3 145 154 - - - - - $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c - - - BICOMP - 345 - - - ICCARM - 254 385 - - - - - BICOMP - 207 213 3 324 - - - ICCARM - 207 213 3 324 + 89 85 344 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 87 346 @@ -2095,22 +1392,22 @@ $PROJ_DIR$\..\..\..\..\Source\fatfs\src\ff.c - BICOMP - 221 + ICCARM + 324 255 - ICCARM - 210 387 + BICOMP + 335 - BICOMP - 207 213 3 259 201 323 290 283 370 177 291 388 + ICCARM + 321 327 3 127 315 191 158 151 238 291 159 256 - ICCARM - 207 213 3 259 201 323 290 283 370 177 291 388 + BICOMP + 321 327 3 127 315 191 158 151 238 291 159 256 @@ -2119,17 +1416,17 @@ ILINK - 252 + 120 OBJCOPY - 351 + 219 ILINK - 257 365 394 395 268 244 398 276 354 359 387 320 361 397 396 369 206 338 308 305 228 271 273 288 274 311 301 270 292 272 293 294 318 295 319 282 285 287 286 217 390 281 392 262 263 264 266 384 220 383 327 302 277 186 377 317 312 255 314 385 157 117 404 405 400 159 164 162 163 161 165 330 284 373 189 181 191 + 126 233 262 263 136 112 266 144 222 227 255 188 229 265 264 237 320 206 176 173 96 139 141 156 142 179 169 138 160 140 161 162 186 163 187 150 153 155 154 331 258 149 260 130 131 132 134 252 334 251 195 170 145 300 245 185 180 123 182 253 409 405 272 273 268 411 416 414 415 413 417 198 152 241 303 295 305 @@ -2137,22 +1434,721 @@ $PROJ_DIR$\..\lib\ethernetlib\src\stm32f4x7_eth.c - BICOMP - 298 + ICCARM + 174 165 - ICCARM - 306 297 + BICOMP + 166 - BICOMP - 253 250 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 322 364 198 + ICCARM + 121 118 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 190 232 312 + + BICOMP + 121 118 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 190 232 312 + + + + + $PROJ_DIR$\..\..\..\..\Source\fatfs\src\option\unicode.c + ICCARM - 253 250 10 5 334 323 290 283 370 177 291 388 6 382 368 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 322 364 198 + 122 253 + + + BICOMP + 213 + + + + + ICCARM + 321 327 3 193 + + + BICOMP + 321 327 3 193 + + + + + $PROJ_DIR$\..\hooks.c + + + ICCARM + 316 265 + + + BICOMP + 225 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\main.c + + + ICCARM + 313 264 + + + BICOMP + 226 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\usb_bsp.c + + + ICCARM + 310 405 + + + BICOMP + 281 + + + + + ICCARM + 74 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 344 + + + BICOMP + 74 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 344 + + + + + $PROJ_DIR$\..\usbd_bulk.c + + + ICCARM + 308 411 + + + BICOMP + 282 + + + + + ICCARM + 343 87 85 344 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 346 89 + + + BICOMP + 343 87 85 344 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 84 78 76 82 81 346 89 + + + + + $PROJ_DIR$\..\usbd_desc.c + + + ICCARM + 277 414 + + + BICOMP + 283 + + + + + ICCARM + 84 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 344 346 89 + + + BICOMP + 84 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 344 346 89 + + + + + $PROJ_DIR$\..\usbd_usr.c + + + ICCARM + 274 417 + + + BICOMP + 280 + + + + + ICCARM + 90 84 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 344 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 87 397 + + + BICOMP + 90 84 78 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 85 344 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 87 407 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\cstart.s + + + AARM + 227 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\IAR\vectors.c + + + ICCARM + 101 198 + + + BICOMP + 221 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\can.c + + + ICCARM + 137 136 + + + BICOMP + 135 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\cpu.c + + + ICCARM + 287 222 + + + BICOMP + 230 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\flash.c + + + ICCARM + 288 229 + + + BICOMP + 228 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\nvm.c + + + ICCARM + 113 173 + + + BICOMP + 98 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 354 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\timer.c + + + ICCARM + 242 145 + + + BICOMP + 289 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\uart.c + + + ICCARM + 328 300 + + + BICOMP + 319 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_STM32\usb.c + + + ICCARM + 309 409 + + + BICOMP + 408 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 397 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 80 78 84 85 344 90 346 343 87 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 407 76 341 10 5 202 191 158 151 238 291 159 256 6 250 236 7 1 68 15 12 14 17 19 24 26 28 30 32 34 36 40 38 44 46 48 50 52 54 56 58 60 62 64 66 9 82 81 80 78 84 85 344 90 346 343 87 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c + + + ICCARM + 324 255 + + + BICOMP + 335 + + + + + ICCARM + 362 360 3 348 315 191 158 151 238 291 159 256 + + + BICOMP + 362 360 3 348 315 191 158 151 238 291 159 256 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c + + + ICCARM + 122 253 + + + BICOMP + 213 + + + + + ICCARM + 362 360 3 201 + + + BICOMP + 362 360 3 201 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip-fw.c + + + ICCARM + 290 245 + + + BICOMP + 115 + + + + + ICCARM + 369 377 73 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 392 367 366 190 191 158 151 238 291 159 256 232 312 + + + BICOMP + 369 377 73 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 392 367 366 190 191 158 151 238 291 159 256 232 312 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip.c + + + ICCARM + 175 185 + + + BICOMP + 116 + + + + + ICCARM + 369 377 73 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 392 367 190 191 158 151 238 291 159 256 232 312 + + + BICOMP + 369 377 73 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 392 367 190 191 158 151 238 291 159 256 232 312 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_arp.c + + + ICCARM + 210 180 + + + BICOMP + 207 + + + + + ICCARM + 371 369 377 73 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 392 190 191 158 151 238 291 159 256 232 312 + + + BICOMP + 371 369 377 73 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 392 190 191 158 151 238 291 159 256 232 312 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uip_timer.c + + + ICCARM + 181 123 + + + BICOMP + 211 + + + + + ICCARM + 364 70 373 + + + BICOMP + 364 70 373 + + + + + $PROJ_DIR$\..\..\..\..\Source\assert.c + + + ICCARM + 235 233 + + + BICOMP + 234 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\uip\uip\uiplib.c + + + ICCARM + 184 182 + + + BICOMP + 209 + + + + + ICCARM + 369 377 73 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 392 376 + + + BICOMP + 369 377 73 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 392 376 + + + + + $PROJ_DIR$\..\..\..\..\Source\backdoor.c + + + ICCARM + 284 262 + + + BICOMP + 148 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 + + + + + $PROJ_DIR$\..\..\..\..\Source\boot.c + + + ICCARM + 286 263 + + + BICOMP + 189 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 + + + + + $PROJ_DIR$\..\..\..\..\Source\com.c + + + ICCARM + 314 266 + + + BICOMP + 220 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 383 396 397 392 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 401 403 407 392 + + + + + $PROJ_DIR$\..\..\..\..\Source\cop.c + + + ICCARM + 317 144 + + + BICOMP + 196 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 + + + + + $PROJ_DIR$\..\..\..\..\Source\file.c + + + ICCARM + 285 188 + + + BICOMP + 197 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 190 191 158 151 238 291 159 256 232 312 97 100 171 318 223 200 199 167 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 190 191 158 151 238 291 159 256 232 312 97 100 171 318 223 200 199 167 + + + + + $PROJ_DIR$\..\..\..\..\Source\net.c + + + ICCARM + 177 206 + + + BICOMP + 168 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 72 369 377 73 392 371 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 72 369 377 73 392 371 + + + + + $PROJ_DIR$\..\..\..\..\Source\xcp.c + + + ICCARM + 240 152 + + + BICOMP + 224 + + + + + ICCARM + 382 357 378 91 394 388 387 393 395 380 390 362 360 3 385 399 + + + BICOMP + 382 357 378 91 394 404 387 400 354 402 380 390 362 360 3 385 399 diff --git a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/bin/openblt_dk_tm4c123g.bin b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/bin/openblt_dk_tm4c123g.bin index 537a915d..1de1f98e 100644 Binary files a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/bin/openblt_dk_tm4c123g.bin and b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/bin/openblt_dk_tm4c123g.bin differ diff --git a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/bin/openblt_dk_tm4c123g.out b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/bin/openblt_dk_tm4c123g.out index c258bdc1..f91fe418 100644 Binary files a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/bin/openblt_dk_tm4c123g.out and b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/bin/openblt_dk_tm4c123g.out differ diff --git a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/hooks.c b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/hooks.c index 5962ebbc..1c88002f 100644 --- a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/hooks.c @@ -385,13 +385,25 @@ void FileFirmwareUpdateStartedHook(void) void FileFirmwareUpdateCompletedHook(void) { #if (BOOT_FILE_LOGGING_ENABLE > 0) + blt_int32u timeoutTime; + /* close the log file */ if (logfile.canUse == BLT_TRUE) { f_close(&logfile.handle); } - /* wait for all logging related transmission to complete */ - while (UARTBusy(UART0_BASE) == true); + /* wait for all logging related transmission to complete with a maximum wait time of + * 100ms. + */ + timeoutTime = TimerGet() + 100; + while (UARTBusy(UART0_BASE) == true) + { + /* check for timeout */ + if (TimerGet() > timeoutTime) + { + break; + } + } #endif /* now delete the firmware file from the disk since the update was successful */ f_unlink(firmwareFilename); diff --git a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/ide/settings/tm4c123g.wsdt b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/ide/settings/tm4c123g.wsdt index f3ce76eb..56b360c3 100644 --- a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/ide/settings/tm4c123g.wsdt +++ b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/ide/settings/tm4c123g.wsdt @@ -17,7 +17,7 @@ 20139537293142202431837113619234300FileFunctionLine20070010013619234 - + TabID-23736-13759 @@ -29,20 +29,20 @@ - 0TabID-11003-23003BuildBuildTabID-13665-29690Find All DeclarationsFind-All-DeclarationsTabID-2562-1429Debug LogDebug-LogTabID-23273-22207Find in FilesFind-in-FilesTabID-14368-8233Ambiguous DefinitionsSelect-Ambiguous-Definitions0 + 0TabID-11003-23003BuildBuildTabID-13665-29690Find All DeclarationsFind-All-DeclarationsTabID-2562-1429Debug LogDebug-LogTabID-23273-22207Find in FilesFind-in-FilesTabID-14368-8233Ambiguous DefinitionsSelect-Ambiguous-Definitions0 - TextEditor$WS_DIR$\..\blt_conf.h000006041774177TextEditor$WS_DIR$\..\main.c000004230813081TextEditor$WS_DIR$\..\..\..\..\Source\boot.c000001011331133TextEditor$WS_DIR$\..\..\..\..\Source\ARMCM4_TM4C\flash.c00000812522523TextEditor$WS_DIR$\..\..\..\..\Source\ARMCM4_TM4C\flash.h00000023682368TextEditor$WS_DIR$\..\lib\usblib\usbdesc.c0000066966966TextEditor$WS_DIR$\..\..\..\..\Source\ARMCM4_TM4C\usb.c0000011069436956TextEditor$WS_DIR$\..\lib\usblib\usb-ids.h00000014981498TextEditor$WS_DIR$\..\lib\usblib\config\usb_bulk_structs.h00000000TextEditor$WS_DIR$\..\lib\usblib\config\usb_bulk_structs.c0000013253465346TextEditor$WS_DIR$\..\lib\usblib\device\usbdbulk.h0000023611461146TextEditor$WS_DIR$\..\lib\usblib\device\usbdbulk.c000008532940129413TextEditor$WS_DIR$\..\..\..\..\Source\backdoor.c00000123659265920100000010000001 + TextEditor$WS_DIR$\..\blt_conf.h000006041774177TextEditor$WS_DIR$\..\main.c000004230813081TextEditor$WS_DIR$\..\..\..\..\Source\boot.c000001011331133TextEditor$WS_DIR$\..\..\..\..\Source\ARMCM4_TM4C\flash.c00000812522523TextEditor$WS_DIR$\..\..\..\..\Source\ARMCM4_TM4C\flash.h00000022362236TextEditor$WS_DIR$\..\lib\usblib\usbdesc.c0000066966966TextEditor$WS_DIR$\..\..\..\..\Source\ARMCM4_TM4C\usb.c0000011069436956TextEditor$WS_DIR$\..\lib\usblib\usb-ids.h00000014981498TextEditor$WS_DIR$\..\lib\usblib\config\usb_bulk_structs.h00000000TextEditor$WS_DIR$\..\lib\usblib\config\usb_bulk_structs.c0000013253465346TextEditor$WS_DIR$\..\lib\usblib\device\usbdbulk.h0000023611461146TextEditor$WS_DIR$\..\lib\usblib\device\usbdbulk.c000008532940129413TextEditor$WS_DIR$\..\..\..\..\Source\backdoor.c00000118659265920100000010000001 - iaridepm.enu1-2-2579403-2-22002001041671984132109385763890011765302731919381362-257719242001002083198413210938382937 + iaridepm.enu1-2-2579403-2-22002001041671984132109385763890068813847536751-257719242001002083198413210938382937 diff --git a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/ide/tm4c123g.dep b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/ide/tm4c123g.dep index 612f5faf..1ecf3a29 100644 --- a/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/ide/tm4c123g.dep +++ b/Target/Demo/ARMCM4_TM4C_DK_TM4C123G_IAR/Boot/ide/tm4c123g.dep @@ -7,7 +7,62 @@ Debug $PROJ_DIR$\..\lib\driverlib\adc.c + $PROJ_DIR$\..\lib\driverlib\can.h + $PROJ_DIR$\..\lib\driverlib\can.c $PROJ_DIR$\..\lib\driverlib\adc.h + $PROJ_DIR$\..\lib\driverlib\comp.c + $PROJ_DIR$\..\lib\driverlib\comp.h + $PROJ_DIR$\..\lib\driverlib\cpulib.c + $PROJ_DIR$\..\lib\driverlib\cpulib.h + $PROJ_DIR$\..\lib\driverlib\debug.h + $PROJ_DIR$\..\lib\driverlib\eeprom.c + $PROJ_DIR$\..\lib\driverlib\eeprom.h + $PROJ_DIR$\..\lib\driverlib\flashlib.c + $PROJ_DIR$\..\lib\driverlib\flashlib.h + $PROJ_DIR$\..\lib\driverlib\fpu.c + $PROJ_DIR$\..\lib\driverlib\fpu.h + $PROJ_DIR$\..\lib\driverlib\gpio.c + $PROJ_DIR$\..\lib\driverlib\gpio.h + $PROJ_DIR$\..\lib\driverlib\hibernate.c + $PROJ_DIR$\..\lib\driverlib\hibernate.h + $PROJ_DIR$\..\lib\driverlib\i2c.c + $PROJ_DIR$\..\lib\driverlib\i2c.h + $PROJ_DIR$\..\lib\driverlib\interrupt.c + $PROJ_DIR$\..\lib\driverlib\interrupt.h + $PROJ_DIR$\..\lib\driverlib\mpu.c + $PROJ_DIR$\..\lib\driverlib\mpu.h + $PROJ_DIR$\..\lib\driverlib\pwm.c + $PROJ_DIR$\..\lib\driverlib\pwm.h + $PROJ_DIR$\..\lib\driverlib\qei.c + $PROJ_DIR$\..\lib\driverlib\qei.h + $PROJ_DIR$\..\lib\driverlib\rom.h + $PROJ_DIR$\..\lib\driverlib\rom_map.h + $PROJ_DIR$\..\lib\driverlib\rtos_bindings.h + $PROJ_DIR$\..\lib\driverlib\ssi.c + $PROJ_DIR$\..\lib\driverlib\ssi.h + $PROJ_DIR$\..\lib\driverlib\sw_crc.c + $PROJ_DIR$\..\lib\driverlib\sw_crc.h + $PROJ_DIR$\..\lib\driverlib\sysctl.c + $PROJ_DIR$\..\lib\driverlib\sysctl.h + $PROJ_DIR$\..\lib\driverlib\sysexc.c + $PROJ_DIR$\..\lib\driverlib\systick.c + $PROJ_DIR$\..\lib\driverlib\systick.h + $PROJ_DIR$\..\lib\driverlib\timerlib.c + $PROJ_DIR$\..\lib\driverlib\timerlib.h + $PROJ_DIR$\..\lib\driverlib\uartlib.c + $PROJ_DIR$\..\lib\driverlib\uartlib.h + $PROJ_DIR$\..\lib\driverlib\udma.c + $PROJ_DIR$\..\lib\driverlib\udma.h + $PROJ_DIR$\..\lib\driverlib\usbdrv.c + $PROJ_DIR$\..\lib\driverlib\usbdrv.h + $PROJ_DIR$\..\lib\driverlib\watchdog.c + $PROJ_DIR$\..\lib\driverlib\watchdog.h + $PROJ_DIR$\..\lib\fatfs\ffconf.h + $PROJ_DIR$\..\lib\fatfs\mmc.c + $PROJ_DIR$\..\lib\inc\hw_adc.h + $PROJ_DIR$\..\lib\inc\hw_can.h + $PROJ_DIR$\..\lib\inc\hw_comp.h + $PROJ_DIR$\..\lib\inc\hw_eeprom.h $PROJ_DIR$\..\lib\inc\hw_flash.h $PROJ_DIR$\..\lib\inc\hw_gpio.h $PROJ_DIR$\..\lib\inc\hw_hibernate.h @@ -89,21 +144,16 @@ $PROJ_DIR$\..\main.c $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\IAR\vectors.c $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\IAR\cstart.s - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\cpu.h + $PROJ_DIR$\usbstick.c $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\cpu.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\nvm.h $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\flash.c $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\flash.h $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\nvm.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\timer.h $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\timer.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\uart.h + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\types.h $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\uart.c - $PROJ_DIR$\..\obj\usbdenum.o $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\usb.c - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\usb.h - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\diskio.h $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.h @@ -118,17 +168,27 @@ $PROJ_DIR$\..\..\..\..\Source\com.h $PROJ_DIR$\..\..\..\..\Source\cop.c $PROJ_DIR$\..\..\..\..\Source\cop.h + $PROJ_DIR$\..\..\..\..\Source\cpu.h $PROJ_DIR$\..\..\..\..\Source\file.c $PROJ_DIR$\..\..\..\..\Source\file.h + $PROJ_DIR$\..\..\..\..\Source\nvm.h $PROJ_DIR$\..\..\..\..\Source\plausibility.h + $PROJ_DIR$\..\..\..\..\Source\timer.h + $PROJ_DIR$\..\..\..\..\Source\uart.h + $PROJ_DIR$\..\..\..\..\Source\usb.h $PROJ_DIR$\..\..\..\..\Source\xcp.c $PROJ_DIR$\..\..\..\..\Source\xcp.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\nvm.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\cpu.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\uart.h + $PROJ_DIR$\..\obj\usbdenum.o + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\timer.h + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\usb.h $PROJ_DIR$\..\..\..\..\utils\uartstdio.c $PROJ_DIR$\..\drivers\stripchartwidget.c $PROJ_DIR$\startup_ewarm.c $PROJ_DIR$\usbserial.c $PROJ_DIR$\..\..\..\..\utils\ustdlib.c - $PROJ_DIR$\usbstick.c $PROJ_DIR$\usb_serial_structs.c $PROJ_DIR$\..\obj\images.o $PROJ_DIR$\stripchartmanager.c @@ -143,8 +203,8 @@ $PROJ_DIR$\..\obj\pwm.pbi $PROJ_DIR$\..\obj\qei.pbi $PROJ_DIR$\..\obj\usbdbulk.o - $PROJ_DIR$\..\..\..\..\third_party\fatfs\port\fat_usbmsc.c $PROJ_DIR$\..\lib\driverlib\usblib.c + $PROJ_DIR$\..\..\..\..\third_party\fatfs\port\fat_usbmsc.c $PROJ_DIR$\..\lib\driverlib\usblib.h $PROJ_DIR$\..\obj\usbbuffer.o $PROJ_DIR$\..\obj\ssi.pbi @@ -263,8 +323,8 @@ $PROJ_DIR$\..\obj\led.pbi $PROJ_DIR$\..\obj\time.pbi $PROJ_DIR$\..\obj\main.pbi - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\IAR\memory.x $PROJ_DIR$\..\obj\irq.pbi + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\IAR\memory.x $PROJ_DIR$\..\obj\vectors.pbi $PROJ_DIR$\..\obj\boot.pbi $PROJ_DIR$\..\obj\buttons.pbi @@ -385,87 +445,395 @@ $PROJ_DIR$\..\obj\uart.o $PROJ_DIR$\..\obj\udma.o $PROJ_DIR$\..\obj\usb.o - $PROJ_DIR$\..\lib\driverlib\can.c - $PROJ_DIR$\..\lib\driverlib\can.h - $PROJ_DIR$\..\lib\driverlib\comp.c - $PROJ_DIR$\..\lib\driverlib\comp.h - $PROJ_DIR$\..\lib\driverlib\cpulib.c - $PROJ_DIR$\..\lib\driverlib\cpulib.h - $PROJ_DIR$\..\lib\driverlib\debug.h - $PROJ_DIR$\..\lib\driverlib\eeprom.c - $PROJ_DIR$\..\lib\driverlib\eeprom.h - $PROJ_DIR$\..\lib\driverlib\flashlib.c - $PROJ_DIR$\..\lib\driverlib\flashlib.h - $PROJ_DIR$\..\lib\driverlib\fpu.c - $PROJ_DIR$\..\lib\driverlib\fpu.h - $PROJ_DIR$\..\lib\driverlib\gpio.c - $PROJ_DIR$\..\lib\driverlib\gpio.h - $PROJ_DIR$\..\lib\driverlib\hibernate.c - $PROJ_DIR$\..\lib\driverlib\hibernate.h - $PROJ_DIR$\..\lib\driverlib\i2c.c - $PROJ_DIR$\..\lib\driverlib\i2c.h - $PROJ_DIR$\..\lib\driverlib\interrupt.c - $PROJ_DIR$\..\lib\driverlib\interrupt.h - $PROJ_DIR$\..\lib\driverlib\mpu.c - $PROJ_DIR$\..\lib\driverlib\mpu.h - $PROJ_DIR$\..\lib\driverlib\pwm.c - $PROJ_DIR$\..\lib\driverlib\pwm.h - $PROJ_DIR$\..\lib\driverlib\qei.c - $PROJ_DIR$\..\lib\driverlib\qei.h - $PROJ_DIR$\..\lib\driverlib\rom.h - $PROJ_DIR$\..\lib\driverlib\rom_map.h - $PROJ_DIR$\..\lib\driverlib\rtos_bindings.h - $PROJ_DIR$\..\lib\driverlib\ssi.c - $PROJ_DIR$\..\lib\driverlib\ssi.h - $PROJ_DIR$\..\lib\driverlib\sw_crc.c - $PROJ_DIR$\..\lib\driverlib\sw_crc.h - $PROJ_DIR$\..\lib\driverlib\sysctl.c - $PROJ_DIR$\..\lib\driverlib\sysctl.h - $PROJ_DIR$\..\lib\driverlib\sysexc.c - $PROJ_DIR$\..\lib\driverlib\systick.c - $PROJ_DIR$\..\lib\driverlib\systick.h - $PROJ_DIR$\..\lib\driverlib\timerlib.c - $PROJ_DIR$\..\lib\driverlib\timerlib.h - $PROJ_DIR$\..\lib\driverlib\uartlib.c - $PROJ_DIR$\..\lib\driverlib\uartlib.h - $PROJ_DIR$\..\lib\driverlib\udma.c - $PROJ_DIR$\..\lib\driverlib\udma.h - $PROJ_DIR$\..\lib\driverlib\usbdrv.c - $PROJ_DIR$\..\lib\driverlib\usbdrv.h - $PROJ_DIR$\..\lib\driverlib\watchdog.c - $PROJ_DIR$\..\lib\driverlib\watchdog.h - $PROJ_DIR$\..\lib\fatfs\ffconf.h - $PROJ_DIR$\..\lib\fatfs\mmc.c - $PROJ_DIR$\..\lib\inc\hw_adc.h - $PROJ_DIR$\..\lib\inc\hw_can.h - $PROJ_DIR$\..\lib\inc\hw_comp.h - $PROJ_DIR$\..\lib\inc\hw_eeprom.h - $PROJ_DIR$\..\..\..\..\Source\uart.h - $PROJ_DIR$\..\..\..\..\Source\usb.h - $PROJ_DIR$\..\..\..\..\Source\cpu.h - $PROJ_DIR$\..\..\..\..\Source\timer.h - $PROJ_DIR$\..\..\..\..\Source\nvm.h $PROJ_DIR$\..\lib\driverlib\adc.c - BICOMP - 151 + ICCARM + 255 + + BICOMP + 211 + + + ICCARM + 417 416 371 370 292 293 294 295 296 53 61 62 70 67 3 8 22 + + + BICOMP + 417 416 371 370 292 293 294 295 296 53 61 62 70 67 3 8 22 + + + + + $PROJ_DIR$\..\lib\driverlib\can.c + + + ICCARM + 418 + + + BICOMP + 212 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 54 61 63 62 67 70 1 8 22 + + + BICOMP + 417 416 371 370 292 293 294 295 296 54 61 63 62 67 70 1 8 22 + + + + + $PROJ_DIR$\..\lib\driverlib\comp.c + + + ICCARM + 419 + + + BICOMP + 224 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 55 61 62 70 5 8 22 + + + BICOMP + 417 416 371 370 292 293 294 295 296 55 61 62 70 5 8 22 + + + + + $PROJ_DIR$\..\lib\driverlib\cpulib.c + + + ICCARM + 238 + + + BICOMP + 239 + + + + + ICCARM + 416 371 370 292 293 294 295 296 7 + + + BICOMP + 416 371 370 292 293 294 295 296 7 + + + + + $PROJ_DIR$\..\lib\driverlib\eeprom.c + + + ICCARM + 421 + + + BICOMP + 226 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 56 57 61 67 70 8 12 22 37 10 + + + BICOMP + 417 416 371 370 292 293 294 295 296 56 57 61 67 70 8 12 22 37 10 + + + + + $PROJ_DIR$\..\lib\driverlib\flashlib.c + + + ICCARM + 242 + + + BICOMP + 243 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 57 61 67 70 8 12 22 + + + BICOMP + 417 416 371 370 292 293 294 295 296 57 61 67 70 8 12 22 + + + + + $PROJ_DIR$\..\lib\driverlib\fpu.c + + + ICCARM + 208 + + + BICOMP + 228 + + + + + ICCARM + 416 371 370 292 293 294 295 296 63 70 14 + + + BICOMP + 416 371 370 292 293 294 295 296 63 70 14 + + + + + $PROJ_DIR$\..\lib\driverlib\gpio.c + + + ICCARM + 423 + + + BICOMP + 229 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 58 61 62 67 70 8 16 22 + + + BICOMP + 417 416 371 370 292 293 294 295 296 58 61 62 67 70 8 16 22 + + + + + $PROJ_DIR$\..\lib\driverlib\hibernate.c + + + ICCARM + 424 + + + BICOMP + 230 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 374 375 59 61 67 70 8 18 22 37 + + + BICOMP + 417 416 371 370 292 293 294 295 296 374 375 59 61 67 70 8 18 22 37 + + + + + $PROJ_DIR$\..\lib\driverlib\i2c.c + + + ICCARM + 425 + + + BICOMP + 191 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 60 61 62 67 70 8 20 22 + + + BICOMP + 417 416 371 370 292 293 294 295 296 60 61 62 67 70 8 20 22 + + + + + $PROJ_DIR$\..\lib\driverlib\interrupt.c + + + ICCARM + 426 + + + BICOMP + 192 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 63 70 7 8 22 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 63 70 7 8 22 + + + + + $PROJ_DIR$\..\lib\driverlib\mpu.c + + + ICCARM + 427 + + + BICOMP + 193 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 63 70 8 22 24 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 63 70 8 22 24 + + + + + $PROJ_DIR$\..\lib\driverlib\pwm.c + + + ICCARM + 428 + + + BICOMP + 194 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 64 67 70 8 22 26 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 64 67 70 8 22 26 + + + + + $PROJ_DIR$\..\lib\driverlib\qei.c + + + ICCARM + 429 + + + BICOMP 195 - BICOMP - 357 356 311 310 232 233 234 235 236 430 6 7 15 12 1 385 399 + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 65 70 67 8 22 28 + + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 65 70 67 8 22 28 + + + + + $PROJ_DIR$\..\lib\driverlib\ssi.c + ICCARM - 357 356 311 310 232 233 234 235 236 430 6 7 15 12 1 385 399 + 430 + + + BICOMP + 201 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 66 67 70 8 22 33 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 66 67 70 8 22 33 + + + + + $PROJ_DIR$\..\lib\driverlib\sw_crc.c + + + ICCARM + 431 + + + BICOMP + 202 + + + + + ICCARM + 416 371 370 292 293 294 295 296 35 + + + BICOMP + 416 371 370 292 293 294 295 296 35 + + + + + $PROJ_DIR$\..\lib\driverlib\sysctl.c + + + ICCARM + 432 + + + BICOMP + 327 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 63 67 70 57 7 8 22 37 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 63 67 70 57 7 8 22 37 @@ -474,30 +842,210 @@ ILINK - 339 147 + 399 207 + + $PROJ_DIR$\..\lib\driverlib\sysexc.c + + + ICCARM + 433 + + + BICOMP + 409 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 67 68 70 8 22 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 67 68 70 8 22 + + + + + $PROJ_DIR$\..\lib\driverlib\systick.c + + + ICCARM + 434 + + + BICOMP + 410 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 63 70 8 22 40 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 63 70 8 22 40 + + + + + $PROJ_DIR$\..\lib\driverlib\timerlib.c + + + ICCARM + 240 + + + BICOMP + 241 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 69 70 8 22 42 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 69 70 8 22 42 + + + + + $PROJ_DIR$\..\lib\driverlib\uartlib.c + + + ICCARM + 244 + + + BICOMP + 245 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 67 70 71 8 22 44 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 67 70 71 8 22 44 + + + + + $PROJ_DIR$\..\lib\driverlib\udma.c + + + ICCARM + 437 + + + BICOMP + 413 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 67 70 72 8 22 46 + + + + + $PROJ_DIR$\..\lib\driverlib\usbdrv.c + + + ICCARM + 332 + + + BICOMP + 333 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 70 67 73 8 22 37 46 48 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 70 67 73 8 22 37 46 48 + + + + + $PROJ_DIR$\..\lib\driverlib\watchdog.c + + + ICCARM + 210 + + + BICOMP + 415 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 70 74 8 22 50 + + + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 70 74 8 22 50 + + + + + $PROJ_DIR$\..\lib\fatfs\mmc.c + + + ICCARM + 251 + + + BICOMP + 250 + + + + + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 16 33 37 148 151 157 145 153 133 166 162 161 165 167 155 164 150 51 159 171 + + + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 16 33 37 148 151 157 145 153 133 166 162 161 165 167 155 164 150 51 159 171 + + + $PROJ_DIR$\..\lib\usblib\config\usb_bulk_structs.c - BICOMP - 286 + ICCARM + 345 - ICCARM - 285 + BICOMP + 346 - BICOMP - 356 311 310 232 233 234 235 236 357 15 425 72 63 35 36 25 21 + ICCARM + 416 371 370 292 293 294 295 296 417 70 48 127 118 90 91 80 76 - ICCARM - 356 311 310 232 233 234 235 236 357 15 425 72 63 35 36 25 21 + BICOMP + 416 371 370 292 293 294 295 296 417 70 48 127 118 90 91 80 76 @@ -505,22 +1053,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdaudio.c - BICOMP - 210 + ICCARM + 347 - ICCARM - 287 + BICOMP + 270 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 385 406 407 425 72 73 64 35 36 23 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 8 29 30 48 127 128 119 90 91 78 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 385 406 407 425 72 73 64 35 36 23 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 8 29 30 48 127 128 119 90 91 78 @@ -528,22 +1076,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdbulk.c - BICOMP - 211 + ICCARM + 196 - ICCARM - 136 + BICOMP + 271 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 385 406 407 425 72 73 35 36 25 30 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 8 29 30 48 127 128 90 91 80 85 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 385 406 407 425 72 73 35 36 25 30 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 8 29 30 48 127 128 90 91 80 85 @@ -551,22 +1099,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdcdc.c - BICOMP - 212 + ICCARM + 348 - ICCARM - 288 + BICOMP + 272 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 385 406 407 425 72 66 73 35 36 30 27 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 8 29 30 48 127 121 128 90 91 85 82 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 385 406 407 425 72 66 73 35 36 30 27 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 8 29 30 48 127 121 128 90 91 85 82 @@ -574,22 +1122,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdcdesc.c - BICOMP - 213 + ICCARM + 264 - ICCARM - 204 + BICOMP + 273 - BICOMP - 357 356 311 310 232 233 234 235 236 15 385 425 72 73 35 36 + ICCARM + 417 416 371 370 292 293 294 295 296 70 8 48 127 128 90 91 - ICCARM - 357 356 311 310 232 233 234 235 236 15 385 425 72 73 35 36 + BICOMP + 417 416 371 370 292 293 294 295 296 70 8 48 127 128 90 91 @@ -597,22 +1145,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdcomp.c - BICOMP - 214 + ICCARM + 262 - ICCARM - 202 + BICOMP + 274 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 385 414 406 407 425 72 73 63 66 35 36 27 30 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 8 37 29 30 48 127 128 118 121 90 91 82 85 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 385 414 406 407 425 72 73 63 66 35 36 27 30 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 8 37 29 30 48 127 128 118 121 90 91 82 85 @@ -620,22 +1168,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdconfig.c - BICOMP - 215 + ICCARM + 203 - ICCARM - 143 + BICOMP + 275 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 385 425 72 73 35 36 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 8 48 127 128 90 91 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 385 425 72 73 35 36 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 8 48 127 128 90 91 @@ -643,22 +1191,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbddfu-rt.c - BICOMP - 216 + ICCARM + 261 - ICCARM - 201 + BICOMP + 276 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 8 385 425 414 417 399 406 407 72 73 68 63 35 36 33 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 63 8 48 37 40 22 29 30 127 128 123 118 90 91 88 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 8 385 425 414 417 399 406 407 72 73 68 63 35 36 33 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 63 8 48 37 40 22 29 30 127 128 123 118 90 91 88 @@ -666,22 +1214,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdenum.c - BICOMP - 217 + ICCARM + 175 - ICCARM - 94 + BICOMP + 277 - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 15 12 385 399 406 407 414 425 408 72 73 35 36 + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 70 67 8 22 29 30 37 48 31 127 128 90 91 - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 15 12 385 399 406 407 414 425 408 72 73 35 36 + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 70 67 8 22 29 30 37 48 31 127 128 90 91 @@ -689,22 +1237,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdhandler.c - BICOMP - 218 + ICCARM + 263 - ICCARM - 203 + BICOMP + 278 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 406 407 425 72 73 35 36 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 29 30 48 127 128 90 91 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 406 407 425 72 73 35 36 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 29 30 48 127 128 90 91 @@ -712,22 +1260,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdhid.c - BICOMP - 219 + ICCARM + 266 - ICCARM - 206 + BICOMP + 279 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 385 425 406 407 72 73 70 35 36 39 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 8 48 29 30 127 128 125 90 91 94 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 385 425 406 407 72 73 70 35 36 39 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 8 48 29 30 127 128 125 90 91 94 @@ -735,22 +1283,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdhidkeyb.c - BICOMP - 220 + ICCARM + 267 - ICCARM - 207 + BICOMP + 280 - BICOMP - 357 356 311 310 232 233 234 235 236 15 385 425 72 73 35 36 70 39 41 + ICCARM + 417 416 371 370 292 293 294 295 296 70 8 48 127 128 90 91 125 94 96 - ICCARM - 357 356 311 310 232 233 234 235 236 15 385 425 72 73 35 36 70 39 41 + BICOMP + 417 416 371 370 292 293 294 295 296 70 8 48 127 128 90 91 125 94 96 @@ -758,22 +1306,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdhidmouse.c - BICOMP - 221 + ICCARM + 268 - ICCARM - 208 + BICOMP + 281 - BICOMP - 357 356 311 310 232 233 234 235 236 15 385 425 72 73 35 36 70 39 43 + ICCARM + 417 416 371 370 292 293 294 295 296 70 8 48 127 128 90 91 125 94 98 - ICCARM - 357 356 311 310 232 233 234 235 236 15 385 425 72 73 35 36 70 39 43 + BICOMP + 417 416 371 370 292 293 294 295 296 70 8 48 127 128 90 91 125 94 98 @@ -781,22 +1329,22 @@ $PROJ_DIR$\..\lib\usblib\device\usbdmsc.c - BICOMP - 222 + ICCARM + 269 - ICCARM - 209 + BICOMP + 282 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 385 406 407 414 425 72 73 75 35 36 45 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 8 29 30 37 48 127 128 130 90 91 100 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 385 406 407 414 425 72 73 75 35 36 45 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 8 29 30 37 48 127 128 130 90 91 100 @@ -804,22 +1352,22 @@ $PROJ_DIR$\..\lib\usblib\host\usbhaudio.c - BICOMP - 277 + ICCARM + 283 - ICCARM - 223 + BICOMP + 337 - BICOMP - 357 356 311 310 232 233 234 235 236 15 425 72 73 64 58 60 47 + ICCARM + 417 416 371 370 292 293 294 295 296 70 48 127 128 119 113 115 102 - ICCARM - 357 356 311 310 232 233 234 235 236 15 425 72 73 64 58 60 47 + BICOMP + 417 416 371 370 292 293 294 295 296 70 48 127 128 119 113 115 102 @@ -827,22 +1375,22 @@ $PROJ_DIR$\..\lib\usblib\host\usbhhid.c - BICOMP - 278 + ICCARM + 284 - ICCARM - 224 + BICOMP + 338 - BICOMP - 357 356 311 310 232 233 234 235 236 15 425 72 73 70 58 60 49 + ICCARM + 417 416 371 370 292 293 294 295 296 70 48 127 128 125 113 115 104 - ICCARM - 357 356 311 310 232 233 234 235 236 15 425 72 73 70 58 60 49 + BICOMP + 417 416 371 370 292 293 294 295 296 70 48 127 128 125 113 115 104 @@ -850,22 +1398,22 @@ $PROJ_DIR$\..\lib\usblib\host\usbhhidkeyboard.c - BICOMP - 279 + ICCARM + 309 - ICCARM - 249 + BICOMP + 339 - BICOMP - 357 356 311 310 232 233 234 235 236 15 72 58 70 49 51 + ICCARM + 417 416 371 370 292 293 294 295 296 70 127 113 125 104 106 - ICCARM - 357 356 311 310 232 233 234 235 236 15 72 58 70 49 51 + BICOMP + 417 416 371 370 292 293 294 295 296 70 127 113 125 104 106 @@ -873,22 +1421,22 @@ $PROJ_DIR$\..\lib\usblib\host\usbhhidmouse.c - BICOMP - 280 + ICCARM + 308 - ICCARM - 248 + BICOMP + 340 - BICOMP - 357 356 311 310 232 233 234 235 236 15 72 58 70 49 53 + ICCARM + 417 416 371 370 292 293 294 295 296 70 127 113 125 104 108 - ICCARM - 357 356 311 310 232 233 234 235 236 15 72 58 70 49 53 + BICOMP + 417 416 371 370 292 293 294 295 296 70 127 113 125 104 108 @@ -896,22 +1444,22 @@ $PROJ_DIR$\..\lib\usblib\host\usbhhub.c - BICOMP - 281 + ICCARM + 310 - ICCARM - 250 + BICOMP + 341 - BICOMP - 357 356 311 310 232 233 234 235 236 15 6 12 425 399 407 408 72 58 60 55 + ICCARM + 417 416 371 370 292 293 294 295 296 70 61 67 48 22 30 31 127 113 115 110 - ICCARM - 357 356 311 310 232 233 234 235 236 15 6 12 425 399 407 408 72 58 60 55 + BICOMP + 417 416 371 370 292 293 294 295 296 70 61 67 48 22 30 31 127 113 115 110 @@ -919,22 +1467,22 @@ $PROJ_DIR$\..\lib\usblib\host\usbhmsc.c - BICOMP - 282 + ICCARM + 335 - ICCARM - 275 + BICOMP + 342 - BICOMP - 357 356 311 310 232 233 234 235 236 15 425 72 73 75 58 60 57 62 + ICCARM + 417 416 371 370 292 293 294 295 296 70 48 127 128 130 113 115 112 117 - ICCARM - 357 356 311 310 232 233 234 235 236 15 425 72 73 75 58 60 57 62 + BICOMP + 417 416 371 370 292 293 294 295 296 70 48 127 128 130 113 115 112 117 @@ -942,22 +1490,22 @@ $PROJ_DIR$\..\lib\usblib\host\usbhostenum.c - BICOMP - 283 + ICCARM + 334 - ICCARM - 274 + BICOMP + 343 - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 12 15 406 407 385 399 414 425 408 72 73 58 60 55 + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 67 70 29 30 8 22 37 48 31 127 128 113 115 110 - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 12 15 406 407 385 399 414 425 408 72 73 58 60 55 + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 67 70 29 30 8 22 37 48 31 127 128 113 115 110 @@ -965,22 +1513,22 @@ $PROJ_DIR$\..\lib\usblib\host\usbhscsi.c - BICOMP - 284 + ICCARM + 336 - ICCARM - 276 + BICOMP + 344 - BICOMP - 357 356 311 310 232 233 234 235 236 15 72 75 58 57 62 + ICCARM + 417 416 371 370 292 293 294 295 296 70 127 130 113 112 117 - ICCARM - 357 356 311 310 232 233 234 235 236 15 72 75 58 57 62 + BICOMP + 417 416 371 370 292 293 294 295 296 70 127 130 113 112 117 @@ -988,22 +1536,22 @@ $PROJ_DIR$\..\lib\usblib\usbbuffer.c - BICOMP - 295 + ICCARM + 200 - ICCARM - 140 + BICOMP + 355 - BICOMP - 357 356 311 310 232 233 234 235 236 15 385 72 73 + ICCARM + 417 416 371 370 292 293 294 295 296 70 8 127 128 - ICCARM - 357 356 311 310 232 233 234 235 236 15 385 72 73 + BICOMP + 417 416 371 370 292 293 294 295 296 70 8 127 128 @@ -1011,22 +1559,22 @@ $PROJ_DIR$\..\lib\usblib\usbdesc.c - BICOMP - 225 + ICCARM + 349 - ICCARM - 289 + BICOMP + 285 - BICOMP - 357 356 311 310 232 233 234 235 236 15 72 + ICCARM + 417 416 371 370 292 293 294 295 296 70 127 - ICCARM - 357 356 311 310 232 233 234 235 236 15 72 + BICOMP + 417 416 371 370 292 293 294 295 296 70 127 @@ -1034,22 +1582,22 @@ $PROJ_DIR$\..\lib\usblib\usbdma.c - BICOMP - 226 + ICCARM + 350 - ICCARM - 290 + BICOMP + 286 - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 6 12 17 385 399 408 425 406 407 423 72 73 + ICCARM + 417 416 371 370 292 293 294 295 296 62 70 61 67 72 8 22 31 48 29 30 46 127 128 - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 6 12 17 385 399 408 425 406 407 423 72 73 + BICOMP + 417 416 371 370 292 293 294 295 296 62 70 61 67 72 8 22 31 48 29 30 46 127 128 @@ -1057,22 +1605,22 @@ $PROJ_DIR$\..\lib\usblib\usbkeyboardmap.c - BICOMP - 227 + ICCARM + 351 - ICCARM - 291 + BICOMP + 287 - BICOMP - 357 356 311 310 232 233 234 235 236 15 72 70 + ICCARM + 417 416 371 370 292 293 294 295 296 70 127 125 - ICCARM - 357 356 311 310 232 233 234 235 236 15 72 70 + BICOMP + 417 416 371 370 292 293 294 295 296 70 127 125 @@ -1080,22 +1628,22 @@ $PROJ_DIR$\..\lib\usblib\usbmode.c - BICOMP - 228 + ICCARM + 352 - ICCARM - 292 + BICOMP + 288 - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 15 12 18 385 399 406 407 414 425 408 72 73 35 36 58 60 + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 70 67 73 8 22 29 30 37 48 31 127 128 90 91 113 115 - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 15 12 18 385 399 406 407 414 425 408 72 73 35 36 58 60 + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 70 67 73 8 22 29 30 37 48 31 127 128 90 91 113 115 @@ -1103,22 +1651,22 @@ $PROJ_DIR$\..\lib\usblib\usbringbuf.c - BICOMP - 229 + ICCARM + 353 - ICCARM - 293 + BICOMP + 289 - BICOMP - 357 356 311 310 232 233 234 235 236 15 385 399 72 + ICCARM + 417 416 371 370 292 293 294 295 296 70 8 22 127 - ICCARM - 357 356 311 310 232 233 234 235 236 15 385 399 72 + BICOMP + 417 416 371 370 292 293 294 295 296 70 8 22 127 @@ -1126,22 +1674,22 @@ $PROJ_DIR$\..\lib\usblib\usbtick.c - BICOMP - 230 + ICCARM + 354 - ICCARM - 294 + BICOMP + 290 - BICOMP - 357 356 311 310 232 233 234 235 236 15 385 72 73 + ICCARM + 417 416 371 370 292 293 294 295 296 70 8 127 128 - ICCARM - 357 356 311 310 232 233 234 235 236 15 385 72 73 + BICOMP + 417 416 371 370 292 293 294 295 296 70 8 127 128 @@ -1149,22 +1697,22 @@ $PROJ_DIR$\..\hooks.c - BICOMP - 317 + ICCARM + 376 - ICCARM - 316 + BICOMP + 377 - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 7 15 421 414 393 + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 62 70 44 37 16 - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 7 15 421 414 393 + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 62 70 44 37 16 @@ -1172,22 +1720,22 @@ $PROJ_DIR$\..\main.c - BICOMP - 256 + ICCARM + 373 - ICCARM - 313 + BICOMP + 316 - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 6 7 8 12 15 414 393 421 + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 61 62 63 67 70 37 16 44 - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 6 7 8 12 15 414 393 421 + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 61 62 63 67 70 37 16 44 @@ -1195,22 +1743,22 @@ $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\IAR\vectors.c - BICOMP - 259 + ICCARM + 256 - ICCARM - 196 + BICOMP + 319 - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 @@ -1219,430 +1767,430 @@ AARM - 192 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\cpu.c - - - BICOMP - 165 - - - ICCARM - 360 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\flash.c - - - BICOMP - 167 - - - ICCARM - 362 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 7 15 389 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 7 15 389 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\nvm.c - - - BICOMP - 333 - - - ICCARM - 177 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 87 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\timer.c - - - BICOMP - 351 - - - ICCARM - 375 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\uart.c - - - BICOMP - 352 - - - ICCARM - 376 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 7 15 414 421 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 7 15 414 421 - - - - - $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\usb.c - - - BICOMP - 354 - - - ICCARM - 378 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 72 35 36 25 21 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 357 356 311 310 232 233 234 235 236 72 35 36 25 21 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c - - - BICOMP - 187 - - - ICCARM - 188 - - - - - BICOMP - 100 101 428 186 - - - ICCARM - 100 101 428 186 - - - - - $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c - - - BICOMP - 344 - - - ICCARM - 241 - - - - - BICOMP - 100 101 428 98 189 311 310 232 233 234 235 236 - - - ICCARM - 100 101 428 98 189 311 310 232 233 234 235 236 - - - - - $PROJ_DIR$\..\..\..\..\Source\assert.c - - - BICOMP - 324 - - - ICCARM - 318 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 - - - - - $PROJ_DIR$\..\..\..\..\Source\backdoor.c - - - BICOMP - 325 - - - ICCARM - 319 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 - - - - - $PROJ_DIR$\..\..\..\..\Source\boot.c - - - BICOMP - 260 - - - ICCARM 252 - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 - - - - - $PROJ_DIR$\..\..\..\..\Source\com.c - - - BICOMP - 326 - - - ICCARM - 320 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 91 96 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 434 435 - - - - - $PROJ_DIR$\..\..\..\..\Source\cop.c - - - BICOMP - 327 - - - ICCARM - 321 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 - - - - - $PROJ_DIR$\..\..\..\..\Source\file.c - - - BICOMP - 328 - - - ICCARM - 322 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 331 311 310 232 233 234 235 236 315 330 332 334 171 172 173 174 175 176 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 331 311 310 232 233 234 235 236 315 330 332 334 171 172 173 174 175 176 - - - - - $PROJ_DIR$\..\..\..\..\Source\xcp.c - - - BICOMP - 329 - - - ICCARM - 323 - - - - - BICOMP - 107 92 103 78 114 83 111 85 87 89 105 113 100 101 428 109 116 - - - ICCARM - 107 92 103 78 114 436 111 438 437 105 113 100 101 428 109 116 - - - - - $PROJ_DIR$\..\..\..\..\utils\uartstdio.c - - - BICOMP - 306 - - - ICCARM - 245 - - - - - $PROJ_DIR$\..\drivers\stripchartwidget.c - - - BICOMP - 268 - - - ICCARM - 246 - - - - - $PROJ_DIR$\startup_ewarm.c - - - BICOMP - 304 - - - ICCARM - 243 - - - - - $PROJ_DIR$\usbserial.c - - - BICOMP - 307 - - - ICCARM - 247 - - - - - $PROJ_DIR$\..\..\..\..\utils\ustdlib.c - - - BICOMP - 338 - - - ICCARM - 342 - - $PROJ_DIR$\usbstick.c - BICOMP - 309 + ICCARM + 401 + + BICOMP + 369 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\cpu.c + ICCARM - 341 + 420 + + + BICOMP + 225 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\flash.c + + + ICCARM + 422 + + + BICOMP + 227 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 62 70 12 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 62 70 12 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\nvm.c + + + ICCARM + 237 + + + BICOMP + 393 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 141 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\timer.c + + + ICCARM + 435 + + + BICOMP + 411 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\option\unicode.c + + + ICCARM + 248 + + + BICOMP + 247 + + + + + ICCARM + 150 151 51 246 + + + BICOMP + 150 151 51 246 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\uart.c + + + ICCARM + 436 + + + BICOMP + 412 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 62 70 37 44 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 62 70 37 44 + + + + + $PROJ_DIR$\..\..\..\..\Source\ARMCM4_TM4C\usb.c + + + ICCARM + 438 + + + BICOMP + 414 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 127 90 91 80 76 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 417 416 371 370 292 293 294 295 296 127 90 91 80 76 + + + + + $PROJ_DIR$\..\..\..\..\Source\third_party\fatfs\src\ff.c + + + ICCARM + 301 + + + BICOMP + 404 + + + + + ICCARM + 150 151 51 148 249 371 370 292 293 294 295 296 + + + BICOMP + 150 151 51 148 249 371 370 292 293 294 295 296 + + + + + $PROJ_DIR$\..\..\..\..\Source\assert.c + + + ICCARM + 378 + + + BICOMP + 384 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 + + + + + $PROJ_DIR$\..\..\..\..\Source\backdoor.c + + + ICCARM + 379 + + + BICOMP + 385 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 + + + + + $PROJ_DIR$\..\..\..\..\Source\boot.c + + + ICCARM + 312 + + + BICOMP + 320 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 + + + + + $PROJ_DIR$\..\..\..\..\Source\com.c + + + ICCARM + 380 + + + BICOMP + 386 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 168 169 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 174 177 + + + + + $PROJ_DIR$\..\..\..\..\Source\cop.c + + + ICCARM + 381 + + + BICOMP + 387 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 + + + + + $PROJ_DIR$\..\..\..\..\Source\file.c + + + ICCARM + 382 + + + BICOMP + 388 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 391 371 370 292 293 294 295 296 375 390 392 394 231 232 233 234 235 236 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 391 371 370 292 293 294 295 296 375 390 392 394 231 232 233 234 235 236 + + + + + $PROJ_DIR$\..\..\..\..\Source\xcp.c + + + ICCARM + 383 + + + BICOMP + 389 + + + + + ICCARM + 157 145 153 133 166 162 161 165 167 155 164 150 151 51 159 171 + + + BICOMP + 157 145 153 133 166 173 161 172 141 176 155 164 150 151 51 159 171 + + + + + $PROJ_DIR$\..\..\..\..\utils\uartstdio.c + + + ICCARM + 305 + + + BICOMP + 366 + + + + + $PROJ_DIR$\..\drivers\stripchartwidget.c + + + ICCARM + 306 + + + BICOMP + 328 + + + + + $PROJ_DIR$\startup_ewarm.c + + + ICCARM + 303 + + + BICOMP + 364 + + + + + $PROJ_DIR$\usbserial.c + + + ICCARM + 307 + + + BICOMP + 367 + + + + + $PROJ_DIR$\..\..\..\..\utils\ustdlib.c + + + ICCARM + 402 + + + BICOMP + 398 @@ -1650,12 +2198,12 @@ $PROJ_DIR$\usb_serial_structs.c - BICOMP - 308 + ICCARM + 302 - ICCARM - 242 + BICOMP + 368 @@ -1663,38 +2211,25 @@ $PROJ_DIR$\stripchartmanager.c - BICOMP - 340 + ICCARM + 300 - ICCARM - 240 + BICOMP + 400 $PROJ_DIR$\..\drivers\slidemenuwidget.c - - BICOMP - 305 - ICCARM - 271 + 331 - - - - $PROJ_DIR$\..\..\..\..\third_party\fatfs\port\fat_usbmsc.c - BICOMP - 264 - - - ICCARM - 302 + 365 @@ -1702,35 +2237,48 @@ $PROJ_DIR$\..\lib\driverlib\usblib.c - BICOMP - 163 + ICCARM + 291 - ICCARM - 231 + BICOMP + 223 - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 15 12 18 385 399 414 423 139 + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 70 67 73 8 22 37 46 199 - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 15 12 18 385 399 414 423 139 + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 70 67 73 8 22 37 46 199 + + $PROJ_DIR$\..\..\..\..\third_party\fatfs\port\fat_usbmsc.c + + + ICCARM + 362 + + + BICOMP + 324 + + + $PROJ_DIR$\flashstore.c - BICOMP - 345 + ICCARM + 363 - ICCARM - 303 + BICOMP + 405 @@ -1738,12 +2286,12 @@ $PROJ_DIR$\qs-logger.c - BICOMP - 348 + ICCARM + 330 - ICCARM - 270 + BICOMP + 408 @@ -1751,18 +2299,18 @@ $PROJ_DIR$\..\time.c - BICOMP - 255 + ICCARM + 395 - ICCARM - 335 + BICOMP + 315 ICCARM - 297 78 266 299 301 154 357 356 311 310 232 233 234 235 236 6 7 8 12 15 414 393 198 391 399 417 + 357 133 326 359 361 214 417 416 371 370 292 293 294 295 296 61 62 63 67 70 37 16 258 14 22 40 @@ -1770,18 +2318,18 @@ $PROJ_DIR$\..\vectors.c - BICOMP - 259 + ICCARM + 256 - ICCARM - 196 + BICOMP + 319 ICCARM - 297 78 266 299 301 154 357 356 311 310 232 233 234 235 236 6 7 8 12 15 414 393 198 391 399 417 + 357 133 326 359 361 214 417 416 371 370 292 293 294 295 296 61 62 63 67 70 37 16 258 14 22 40 @@ -1789,12 +2337,12 @@ $PROJ_DIR$\acquire.c - BICOMP - 343 + ICCARM + 189 - ICCARM - 129 + BICOMP + 403 @@ -1802,12 +2350,12 @@ $PROJ_DIR$\..\drivers\buttons.c - BICOMP - 261 + ICCARM + 187 - ICCARM - 127 + BICOMP + 321 @@ -1815,12 +2363,12 @@ $PROJ_DIR$\..\drivers\cfal96x64x16.c - BICOMP - 262 + ICCARM + 190 - ICCARM - 130 + BICOMP + 322 @@ -1828,12 +2376,12 @@ $PROJ_DIR$\clocksetwidget.c - BICOMP - 263 + ICCARM + 188 - ICCARM - 128 + BICOMP + 323 @@ -1841,12 +2389,12 @@ $PROJ_DIR$\images.c - BICOMP - 346 + ICCARM + 184 - ICCARM - 124 + BICOMP + 406 @@ -1854,12 +2402,12 @@ $PROJ_DIR$\..\..\..\..\third_party\fatfs\src\ff.c - BICOMP - 344 + ICCARM + 301 - ICCARM - 241 + BICOMP + 404 @@ -1867,12 +2415,12 @@ $PROJ_DIR$\menus.c - BICOMP - 347 + ICCARM + 329 - ICCARM - 269 + BICOMP + 407 @@ -1880,22 +2428,22 @@ $PROJ_DIR$\..\lib\driverlib\timer.c - BICOMP - 351 + ICCARM + 435 - ICCARM - 375 + BICOMP + 411 - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 14 15 385 399 193 + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 69 70 8 22 253 - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 14 15 385 399 193 + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 69 70 8 22 253 @@ -1903,22 +2451,22 @@ $PROJ_DIR$\..\lib\driverlib\uart.c - BICOMP - 352 + ICCARM + 436 - ICCARM - 376 + BICOMP + 412 - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 12 15 16 385 399 198 + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 67 70 71 8 22 258 - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 12 15 16 385 399 198 + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 67 70 71 8 22 258 @@ -1926,22 +2474,22 @@ $PROJ_DIR$\..\lib\driverlib\cpu.c - BICOMP - 165 + ICCARM + 420 - ICCARM - 360 + BICOMP + 225 - BICOMP - 356 311 310 232 233 234 235 236 239 + ICCARM + 416 371 370 292 293 294 295 296 299 - ICCARM - 356 311 310 232 233 234 235 236 239 + BICOMP + 416 371 370 292 293 294 295 296 299 @@ -1949,22 +2497,22 @@ $PROJ_DIR$\..\lib\driverlib\flash.c - BICOMP - 167 + ICCARM + 422 - ICCARM - 362 + BICOMP + 227 - BICOMP - 357 356 311 310 232 233 234 235 236 2 6 12 15 385 238 399 + ICCARM + 417 416 371 370 292 293 294 295 296 57 61 67 70 8 298 22 - ICCARM - 357 356 311 310 232 233 234 235 236 2 6 12 15 385 238 399 + BICOMP + 417 416 371 370 292 293 294 295 296 57 61 67 70 8 298 22 @@ -1972,22 +2520,22 @@ $PROJ_DIR$\..\lib\driverlib\usb.c - BICOMP - 354 + ICCARM + 438 - ICCARM - 378 + BICOMP + 414 - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 15 12 18 385 399 414 423 237 + ICCARM + 417 416 371 370 292 293 294 295 296 61 62 70 67 73 8 22 37 46 297 - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 15 12 18 385 399 414 423 237 + BICOMP + 417 416 371 370 292 293 294 295 296 61 62 70 67 73 8 22 37 46 297 @@ -1995,18 +2543,18 @@ $PROJ_DIR$\..\boot.c - BICOMP - 260 + ICCARM + 312 - ICCARM - 252 + BICOMP + 320 ICCARM - 297 78 266 299 301 154 357 356 311 310 232 233 234 235 236 6 7 8 12 15 414 393 198 391 399 417 + 357 133 326 359 361 214 417 416 371 370 292 293 294 295 296 61 62 63 67 70 37 16 258 14 22 40 @@ -2015,7 +2563,7 @@ AARM - 192 + 252 @@ -2023,18 +2571,18 @@ $PROJ_DIR$\..\irq.c - BICOMP - 258 + ICCARM + 313 - ICCARM - 253 + BICOMP + 317 ICCARM - 297 78 266 299 301 154 357 356 311 310 232 233 234 235 236 6 7 8 12 15 414 393 198 391 399 417 + 357 133 326 359 361 214 417 416 371 370 292 293 294 295 296 61 62 63 67 70 37 16 258 14 22 40 @@ -2042,18 +2590,18 @@ $PROJ_DIR$\..\led.c - BICOMP - 254 + ICCARM + 372 - ICCARM - 312 + BICOMP + 314 ICCARM - 297 78 266 299 301 154 357 356 311 310 232 233 234 235 236 6 7 8 12 15 414 393 198 391 399 417 + 357 133 326 359 361 214 417 416 371 370 292 293 294 295 296 61 62 63 67 70 37 16 258 14 22 40 @@ -2062,565 +2610,17 @@ ILINK - 147 + 207 OBJCOPY - 337 + 397 ILINK - 257 195 318 319 252 358 320 359 321 360 178 192 361 241 322 362 182 148 363 364 316 365 366 313 191 367 177 368 369 370 371 372 373 374 375 180 376 184 377 188 378 285 140 287 136 288 204 202 143 201 94 289 203 206 207 208 290 209 272 223 224 249 248 250 275 274 276 291 292 293 294 196 150 323 144 149 205 251 - - - - - $PROJ_DIR$\..\lib\driverlib\can.c - - - BICOMP - 152 - - - ICCARM - 358 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 431 6 8 7 12 15 380 385 399 - - - ICCARM - 357 356 311 310 232 233 234 235 236 431 6 8 7 12 15 380 385 399 - - - - - $PROJ_DIR$\..\lib\driverlib\comp.c - - - BICOMP - 164 - - - ICCARM - 359 - - - - - ICCARM - 357 356 311 310 232 233 234 235 236 432 6 7 15 382 385 399 - - - - - $PROJ_DIR$\..\lib\driverlib\cpulib.c - - - BICOMP - 179 - - - ICCARM - 178 - - - - - BICOMP - 356 311 310 232 233 234 235 236 384 - - - ICCARM - 356 311 310 232 233 234 235 236 384 - - - - - $PROJ_DIR$\..\lib\driverlib\eeprom.c - - - BICOMP - 166 - - - ICCARM - 361 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 433 2 6 12 15 385 389 399 414 387 - - - ICCARM - 357 356 311 310 232 233 234 235 236 433 2 6 12 15 385 389 399 414 387 - - - - - $PROJ_DIR$\..\lib\driverlib\flashlib.c - - - BICOMP - 183 - - - ICCARM - 182 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 2 6 12 15 385 389 399 - - - ICCARM - 357 356 311 310 232 233 234 235 236 2 6 12 15 385 389 399 - - - - - $PROJ_DIR$\..\lib\driverlib\fpu.c - - - BICOMP - 168 - - - ICCARM - 148 - - - - - BICOMP - 356 311 310 232 233 234 235 236 8 15 391 - - - ICCARM - 356 311 310 232 233 234 235 236 8 15 391 - - - - - $PROJ_DIR$\..\lib\driverlib\gpio.c - - - BICOMP - 169 - - - ICCARM - 363 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 3 6 7 12 15 385 393 399 - - - ICCARM - 357 356 311 310 232 233 234 235 236 3 6 7 12 15 385 393 399 - - - - - $PROJ_DIR$\..\lib\driverlib\hibernate.c - - - BICOMP - 170 - - - ICCARM - 364 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 314 315 4 6 12 15 385 395 399 414 - - - ICCARM - 357 356 311 310 232 233 234 235 236 314 315 4 6 12 15 385 395 399 414 - - - - - $PROJ_DIR$\..\lib\driverlib\i2c.c - - - BICOMP - 131 - - - ICCARM - 365 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 5 6 7 12 15 385 397 399 - - - ICCARM - 357 356 311 310 232 233 234 235 236 5 6 7 12 15 385 397 399 - - - - - $PROJ_DIR$\..\lib\driverlib\interrupt.c - - - BICOMP - 132 - - - ICCARM - 366 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 8 15 384 385 399 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 8 15 384 385 399 - - - - - $PROJ_DIR$\..\lib\driverlib\mpu.c - - - BICOMP - 133 - - - ICCARM - 367 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 8 15 385 399 401 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 8 15 385 399 401 - - - - - $PROJ_DIR$\..\lib\driverlib\pwm.c - - - BICOMP - 134 - - - ICCARM - 368 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 9 12 15 385 399 403 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 9 12 15 385 399 403 - - - - - $PROJ_DIR$\..\lib\driverlib\qei.c - - - BICOMP - 135 - - - ICCARM - 369 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 10 15 12 385 399 405 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 10 15 12 385 399 405 - - - - - $PROJ_DIR$\..\lib\driverlib\ssi.c - - - BICOMP - 141 - - - ICCARM - 370 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 11 12 15 385 399 410 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 11 12 15 385 399 410 - - - - - $PROJ_DIR$\..\lib\driverlib\sw_crc.c - - - BICOMP - 142 - - - ICCARM - 371 - - - - - BICOMP - 356 311 310 232 233 234 235 236 412 - - - ICCARM - 356 311 310 232 233 234 235 236 412 - - - - - $PROJ_DIR$\..\lib\driverlib\sysctl.c - - - BICOMP - 267 - - - ICCARM - 372 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 8 12 15 2 384 385 399 414 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 8 12 15 2 384 385 399 414 - - - - - $PROJ_DIR$\..\lib\driverlib\sysexc.c - - - BICOMP - 349 - - - ICCARM - 373 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 12 13 15 385 399 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 12 13 15 385 399 - - - - - $PROJ_DIR$\..\lib\driverlib\systick.c - - - BICOMP - 350 - - - ICCARM - 374 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 8 15 385 399 417 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 8 15 385 399 417 - - - - - $PROJ_DIR$\..\lib\driverlib\timerlib.c - - - BICOMP - 181 - - - ICCARM - 180 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 14 15 385 399 419 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 14 15 385 399 419 - - - - - $PROJ_DIR$\..\lib\driverlib\uartlib.c - - - BICOMP - 185 - - - ICCARM - 184 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 12 15 16 385 399 421 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 12 15 16 385 399 421 - - - - - $PROJ_DIR$\..\lib\driverlib\udma.c - - - BICOMP - 353 - - - ICCARM - 377 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 12 15 17 385 399 423 - - - ICCARM - 357 356 311 310 232 233 234 235 236 12 15 17 385 399 423 - - - - - $PROJ_DIR$\..\lib\driverlib\usbdrv.c - - - BICOMP - 273 - - - ICCARM - 272 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 15 12 18 385 399 414 423 425 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 15 12 18 385 399 414 423 425 - - - - - $PROJ_DIR$\..\lib\driverlib\watchdog.c - - - BICOMP - 355 - - - ICCARM - 150 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 6 7 15 19 385 399 427 - - - ICCARM - 357 356 311 310 232 233 234 235 236 6 7 15 19 385 399 427 - - - - - $PROJ_DIR$\..\lib\fatfs\mmc.c - - - BICOMP - 190 - - - ICCARM - 191 - - - - - BICOMP - 357 356 311 310 232 233 234 235 236 7 15 393 410 414 98 101 107 92 103 78 114 436 111 438 437 105 113 100 428 109 116 - - - ICCARM - 357 356 311 310 232 233 234 235 236 7 15 393 410 414 98 101 107 92 103 78 114 436 111 438 437 105 113 100 428 109 116 + 318 255 378 379 312 418 380 419 381 420 238 252 421 301 382 422 242 208 423 424 376 425 426 373 251 427 237 428 429 430 431 432 433 434 435 240 436 244 437 248 438 345 200 347 196 348 264 262 203 261 175 349 263 266 267 268 350 269 332 283 284 309 308 310 335 334 336 351 352 353 354 256 210 383 204 209 265 311 diff --git a/Target/Source/ARMCM3_STM32F2/GCC/cstart.S b/Target/Source/ARMCM3_STM32F2/GCC/cstart.S new file mode 100644 index 00000000..e71d3b99 --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/GCC/cstart.S @@ -0,0 +1,365 @@ +/* File: cstart.s + * Purpose: startup file for Cortex-M3 devices. Should use with + * GCC for ARM Embedded Processors + * Version: V1.3 + * Date: 08 Feb 2012 + * + * Copyright (c) 2012, ARM Limited + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the ARM Limited nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL ARM LIMITED BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES// + * LOSS OF USE, DATA, OR PROFITS// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + .syntax unified + .arch armv7-m + + .section .stack + .align 3 +#ifdef __STACK_SIZE + .equ Stack_Size, __STACK_SIZE +#else + .equ Stack_Size, 0x400 +#endif + .globl __StackTop + .globl __StackLimit +__StackLimit: + .space Stack_Size + .size __StackLimit, . - __StackLimit +__StackTop: + .size __StackTop, . - __StackTop + + .section .heap + .align 3 +#ifdef __HEAP_SIZE + .equ Heap_Size, __HEAP_SIZE +#else + .equ Heap_Size, 0xC00 +#endif + .globl __HeapBase + .globl __HeapLimit +__HeapBase: + .if Heap_Size + .space Heap_Size + .endif + .size __HeapBase, . - __HeapBase +__HeapLimit: + .size __HeapLimit, . - __HeapLimit + + .section .isr_vector + .align 2 + .globl __isr_vector +__isr_vector: + .long __StackTop /* Top of Stack */ + .long Reset_Handler /* Reset Handler */ + .long NMI_Handler /* NMI Handler */ + .long HardFault_Handler /* Hard Fault Handler */ + .long MemManage_Handler /* MPU Fault Handler */ + .long BusFault_Handler /* Bus Fault Handler */ + .long UsageFault_Handler /* Usage Fault Handler */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long SVC_Handler /* SVCall Handler */ + .long DebugMon_Handler /* Debug Monitor Handler */ + .long 0 /* Reserved */ + .long PendSV_Handler /* PendSV Handler */ + .long SysTick_Handler /* SysTick Handler */ + + // External Interrupts + .long WWDG_IRQHandler // Window WatchDog + .long PVD_IRQHandler // PVD through EXTI Line detection + .long TAMP_STAMP_IRQHandler // Tamper and TimeStamps through the EXTI line + .long RTC_WKUP_IRQHandler // RTC Wakeup through the EXTI line + .long FLASH_IRQHandler // FLASH + .long RCC_IRQHandler // RCC + .long EXTI0_IRQHandler // EXTI Line0 + .long EXTI1_IRQHandler // EXTI Line1 + .long EXTI2_IRQHandler // EXTI Line2 + .long EXTI3_IRQHandler // EXTI Line3 + .long EXTI4_IRQHandler // EXTI Line4 + .long DMA1_Stream0_IRQHandler // DMA1 Stream 0 + .long DMA1_Stream1_IRQHandler // DMA1 Stream 1 + .long DMA1_Stream2_IRQHandler // DMA1 Stream 2 + .long DMA1_Stream3_IRQHandler // DMA1 Stream 3 + .long DMA1_Stream4_IRQHandler // DMA1 Stream 4 + .long DMA1_Stream5_IRQHandler // DMA1 Stream 5 + .long DMA1_Stream6_IRQHandler // DMA1 Stream 6 + .long ADC_IRQHandler // ADC1, ADC2 and ADC3s + .long CAN1_TX_IRQHandler // CAN1 TX + .long CAN1_RX0_IRQHandler // CAN1 RX0 + .long CAN1_RX1_IRQHandler // CAN1 RX1 + .long CAN1_SCE_IRQHandler // CAN1 SCE + .long EXTI9_5_IRQHandler // External Line[9:5]s + .long TIM1_BRK_TIM9_IRQHandler // TIM1 Break and TIM9 + .long TIM1_UP_TIM10_IRQHandler // TIM1 Update and TIM10 + .long TIM1_TRG_COM_TIM11_IRQHandler // TIM1 Trigger and Commutation and TIM11 + .long TIM1_CC_IRQHandler // TIM1 Capture Compare + .long TIM2_IRQHandler // TIM2 + .long TIM3_IRQHandler // TIM3 + .long TIM4_IRQHandler // TIM4 + .long I2C1_EV_IRQHandler // I2C1 Event + .long I2C1_ER_IRQHandler // I2C1 Error + .long I2C2_EV_IRQHandler // I2C2 Event + .long I2C2_ER_IRQHandler // I2C2 Error + .long SPI1_IRQHandler // SPI1 + .long SPI2_IRQHandler // SPI2 + .long USART1_IRQHandler // USART1 + .long USART2_IRQHandler // USART2 + .long USART3_IRQHandler // USART3 + .long EXTI15_10_IRQHandler // External Line[15:10]s + .long RTC_Alarm_IRQHandler // RTC Alarm (A and B) through EXTI Line + .long OTG_FS_WKUP_IRQHandler // USB OTG FS Wakeup through EXTI line + .long TIM8_BRK_TIM12_IRQHandler // TIM8 Break and TIM12 + .long TIM8_UP_TIM13_IRQHandler // TIM8 Update and TIM13 + .long TIM8_TRG_COM_TIM14_IRQHandler // TIM8 Trigger and Commutation and TIM14 + .long TIM8_CC_IRQHandler // TIM8 Capture Compare + .long DMA1_Stream7_IRQHandler // DMA1 Stream7 + .long FSMC_IRQHandler // FSMC + .long SDIO_IRQHandler // SDIO + .long TIM5_IRQHandler // TIM5 + .long SPI3_IRQHandler // SPI3 + .long UART4_IRQHandler // UART4 + .long UART5_IRQHandler // UART5 + .long TIM6_DAC_IRQHandler // TIM6 and DAC1&2 underrun errors + .long TIM7_IRQHandler // TIM7 + .long DMA2_Stream0_IRQHandler // DMA2 Stream 0 + .long DMA2_Stream1_IRQHandler // DMA2 Stream 1 + .long DMA2_Stream2_IRQHandler // DMA2 Stream 2 + .long DMA2_Stream3_IRQHandler // DMA2 Stream 3 + .long DMA2_Stream4_IRQHandler // DMA2 Stream 4 + .long ETH_IRQHandler // Ethernet + .long ETH_WKUP_IRQHandler // Ethernet Wakeup through EXTI line + .long CAN2_TX_IRQHandler // CAN2 TX + .long CAN2_RX0_IRQHandler // CAN2 RX0 + .long CAN2_RX1_IRQHandler // CAN2 RX1 + .long CAN2_SCE_IRQHandler // CAN2 SCE + .long OTG_FS_IRQHandler // USB OTG FS + .long DMA2_Stream5_IRQHandler // DMA2 Stream 5 + .long DMA2_Stream6_IRQHandler // DMA2 Stream 6 + .long DMA2_Stream7_IRQHandler // DMA2 Stream 7 + .long USART6_IRQHandler // USART6 + .long I2C3_EV_IRQHandler // I2C3 event + .long I2C3_ER_IRQHandler // I2C3 error + .long OTG_HS_EP1_OUT_IRQHandler // USB OTG HS End Point 1 Out + .long OTG_HS_EP1_IN_IRQHandler // USB OTG HS End Point 1 In + .long OTG_HS_WKUP_IRQHandler // USB OTG HS Wakeup through EXTI + .long OTG_HS_IRQHandler // USB OTG HS + .long DCMI_IRQHandler // DCMI + .long CRYP_IRQHandler // CRYP crypto + .long HASH_RNG_IRQHandler // Hash and Rng + + .size __isr_vector, . - __isr_vector + + .text + .thumb + .thumb_func + .align 2 + .globl Reset_Handler + .type Reset_Handler, %function +Reset_Handler: +/* Disable interrupts first */ + cpsid i + +/* Initialize the stackpointer. this is done automatically after a reset event. + * the bootloader performs a software reset by calling this reset handler, in + * which case the stackpointer is not yet initialized. */ + ldr r1, =__StackTop + mov sp, r1 + +/* Loop to copy data from read only memory to RAM. The ranges + * of copy from/to are specified by following symbols evaluated in + * linker script. + * __etext: End of code section, i.e., begin of data sections to copy from. + * __data_start__/__data_end__: RAM address range that data should be + * copied to. Both must be aligned to 4 bytes boundary. */ + + ldr r1, =__etext + ldr r2, =__data_start__ + ldr r3, =__data_end__ + +#if 1 +/* Here are two copies of loop implemenations. First one favors code size + * and the second one favors performance. Default uses the first one. + * Change to "#if 0" to use the second one */ +.flash_to_ram_loop: + cmp r2, r3 + ittt lt + ldrlt r0, [r1], #4 + strlt r0, [r2], #4 + blt .flash_to_ram_loop +#else + subs r3, r2 + ble .flash_to_ram_loop_end +.flash_to_ram_loop: + subs r3, #4 + ldr r0, [r1, r3] + str r0, [r2, r3] + bgt .flash_to_ram_loop +.flash_to_ram_loop_end: +#endif + +#ifndef __NO_SYSTEM_INIT + ldr r0, =SystemInit + blx r0 +#endif + + ldr r0, =_start + bx r0 + .pool + .size Reset_Handler, . - Reset_Handler + +/* Our weak _start alternative if we don't use the library _start + * The zero init section must be cleared, otherwise the librtary is + * doing that */ + .align 1 + .thumb_func + .weak _start + .type _start, %function +_start: + + /* Zero fill the bss segment. */ + ldr r1, = __bss_start__ + ldr r2, = __bss_end__ + movs r3, #0 + b .fill_zero_bss +.loop_zero_bss: + str r3, [r1], #4 + +.fill_zero_bss: + cmp r1, r2 + bcc .loop_zero_bss + + /* Jump to our main */ + bl main + b . + .size _start, . - _start + +/* Macro to define default handlers. Default handler + * will be weak symbol and just dead loops. They can be + * overwritten by other handlers */ + .macro def_irq_handler handler_name + .align 1 + .thumb_func + .weak \handler_name + .type \handler_name, %function +\handler_name : + b . + .size \handler_name, . - \handler_name + .endm + + def_irq_handler NMI_Handler + def_irq_handler HardFault_Handler + def_irq_handler MemManage_Handler + def_irq_handler BusFault_Handler + def_irq_handler UsageFault_Handler + def_irq_handler SVC_Handler + def_irq_handler DebugMon_Handler + def_irq_handler PendSV_Handler + def_irq_handler SysTick_Handler + def_irq_handler Default_Handler + + // External Interrupts + def_irq_handler WWDG_IRQHandler // Window WatchDog + def_irq_handler PVD_IRQHandler // PVD through EXTI Line detection + def_irq_handler TAMP_STAMP_IRQHandler // Tamper and TimeStamps through the EXTI line + def_irq_handler RTC_WKUP_IRQHandler // RTC Wakeup through the EXTI line + def_irq_handler FLASH_IRQHandler // FLASH + def_irq_handler RCC_IRQHandler // RCC + def_irq_handler EXTI0_IRQHandler // EXTI Line0 + def_irq_handler EXTI1_IRQHandler // EXTI Line1 + def_irq_handler EXTI2_IRQHandler // EXTI Line2 + def_irq_handler EXTI3_IRQHandler // EXTI Line3 + def_irq_handler EXTI4_IRQHandler // EXTI Line4 + def_irq_handler DMA1_Stream0_IRQHandler // DMA1 Stream 0 + def_irq_handler DMA1_Stream1_IRQHandler // DMA1 Stream 1 + def_irq_handler DMA1_Stream2_IRQHandler // DMA1 Stream 2 + def_irq_handler DMA1_Stream3_IRQHandler // DMA1 Stream 3 + def_irq_handler DMA1_Stream4_IRQHandler // DMA1 Stream 4 + def_irq_handler DMA1_Stream5_IRQHandler // DMA1 Stream 5 + def_irq_handler DMA1_Stream6_IRQHandler // DMA1 Stream 6 + def_irq_handler ADC_IRQHandler // ADC1, ADC2 and ADC3s + def_irq_handler CAN1_TX_IRQHandler // CAN1 TX + def_irq_handler CAN1_RX0_IRQHandler // CAN1 RX0 + def_irq_handler CAN1_RX1_IRQHandler // CAN1 RX1 + def_irq_handler CAN1_SCE_IRQHandler // CAN1 SCE + def_irq_handler EXTI9_5_IRQHandler // External Line[9:5]s + def_irq_handler TIM1_BRK_TIM9_IRQHandler // TIM1 Break and TIM9 + def_irq_handler TIM1_UP_TIM10_IRQHandler // TIM1 Update and TIM10 + def_irq_handler TIM1_TRG_COM_TIM11_IRQHandler // TIM1 Trigger and Commutation and TIM11 + def_irq_handler TIM1_CC_IRQHandler // TIM1 Capture Compare + def_irq_handler TIM2_IRQHandler // TIM2 + def_irq_handler TIM3_IRQHandler // TIM3 + def_irq_handler TIM4_IRQHandler // TIM4 + def_irq_handler I2C1_EV_IRQHandler // I2C1 Event + def_irq_handler I2C1_ER_IRQHandler // I2C1 Error + def_irq_handler I2C2_EV_IRQHandler // I2C2 Event + def_irq_handler I2C2_ER_IRQHandler // I2C2 Error + def_irq_handler SPI1_IRQHandler // SPI1 + def_irq_handler SPI2_IRQHandler // SPI2 + def_irq_handler USART1_IRQHandler // USART1 + def_irq_handler USART2_IRQHandler // USART2 + def_irq_handler USART3_IRQHandler // USART3 + def_irq_handler EXTI15_10_IRQHandler // External Line[15:10]s + def_irq_handler RTC_Alarm_IRQHandler // RTC Alarm (A and B) through EXTI Line + def_irq_handler OTG_FS_WKUP_IRQHandler // USB OTG FS Wakeup through EXTI line + def_irq_handler TIM8_BRK_TIM12_IRQHandler // TIM8 Break and TIM12 + def_irq_handler TIM8_UP_TIM13_IRQHandler // TIM8 Update and TIM13 + def_irq_handler TIM8_TRG_COM_TIM14_IRQHandler // TIM8 Trigger and Commutation and TIM14 + def_irq_handler TIM8_CC_IRQHandler // TIM8 Capture Compare + def_irq_handler DMA1_Stream7_IRQHandler // DMA1 Stream7 + def_irq_handler FSMC_IRQHandler // FSMC + def_irq_handler SDIO_IRQHandler // SDIO + def_irq_handler TIM5_IRQHandler // TIM5 + def_irq_handler SPI3_IRQHandler // SPI3 + def_irq_handler UART4_IRQHandler // UART4 + def_irq_handler UART5_IRQHandler // UART5 + def_irq_handler TIM6_DAC_IRQHandler // TIM6 and DAC1&2 underrun errors + def_irq_handler TIM7_IRQHandler // TIM7 + def_irq_handler DMA2_Stream0_IRQHandler // DMA2 Stream 0 + def_irq_handler DMA2_Stream1_IRQHandler // DMA2 Stream 1 + def_irq_handler DMA2_Stream2_IRQHandler // DMA2 Stream 2 + def_irq_handler DMA2_Stream3_IRQHandler // DMA2 Stream 3 + def_irq_handler DMA2_Stream4_IRQHandler // DMA2 Stream 4 + def_irq_handler ETH_IRQHandler // Ethernet + def_irq_handler ETH_WKUP_IRQHandler // Ethernet Wakeup through EXTI line + def_irq_handler CAN2_TX_IRQHandler // CAN2 TX + def_irq_handler CAN2_RX0_IRQHandler // CAN2 RX0 + def_irq_handler CAN2_RX1_IRQHandler // CAN2 RX1 + def_irq_handler CAN2_SCE_IRQHandler // CAN2 SCE + def_irq_handler OTG_FS_IRQHandler // USB OTG FS + def_irq_handler DMA2_Stream5_IRQHandler // DMA2 Stream 5 + def_irq_handler DMA2_Stream6_IRQHandler // DMA2 Stream 6 + def_irq_handler DMA2_Stream7_IRQHandler // DMA2 Stream 7 + def_irq_handler USART6_IRQHandler // USART6 + def_irq_handler I2C3_EV_IRQHandler // I2C3 event + def_irq_handler I2C3_ER_IRQHandler // I2C3 error + def_irq_handler OTG_HS_EP1_OUT_IRQHandler // USB OTG HS End Point 1 Out + def_irq_handler OTG_HS_EP1_IN_IRQHandler // USB OTG HS End Point 1 In + def_irq_handler OTG_HS_WKUP_IRQHandler // USB OTG HS Wakeup through EXTI + def_irq_handler OTG_HS_IRQHandler // USB OTG HS + def_irq_handler DCMI_IRQHandler // DCMI + def_irq_handler CRYP_IRQHandler // CRYP crypto + def_irq_handler HASH_RNG_IRQHandler // Hash and Rng + + + .end diff --git a/Target/Source/ARMCM3_STM32F2/GCC/memory.x b/Target/Source/ARMCM3_STM32F2/GCC/memory.x new file mode 100644 index 00000000..b533925c --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/GCC/memory.x @@ -0,0 +1,151 @@ +/*------------------------------------------------------------------------------ + * Linker script for running OpenBLT in internal FLASH on the STM32F2xx + *----------------------------------------------------------------------------*/ +OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") +OUTPUT_ARCH(arm) +SEARCH_DIR(.) + +/* Memory Spaces Definitions */ +MEMORY +{ + ROM (rx) : ORIGIN = 0x08000000, LENGTH = 32K + RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 32K +} + +/* Linker script to place sections and symbol values. Should be used together + * with other linker script that defines memory regions FLASH and RAM. + * It references following symbols, which must be defined in code: + * Reset_Handler : Entry of reset handler + * + * It defines following symbols, which code can use without definition: + * __exidx_start + * __exidx_end + * __etext + * __data_start__ + * __preinit_array_start + * __preinit_array_end + * __init_array_start + * __init_array_end + * __fini_array_start + * __fini_array_end + * __data_end__ + * __bss_start__ + * __bss_end__ + * __end__ + * end + * __HeapLimit + * __StackLimit + * __StackTop + * __stack + */ + + +SECTIONS +{ + .text : + { + KEEP(*(.isr_vector)) + *(.text*) + + KEEP(*(.init)) + KEEP(*(.fini)) + + /* .ctors */ + *crtbegin.o(.ctors) + *crtbegin?.o(.ctors) + *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors) + *(SORT(.ctors.*)) + *(.ctors) + + /* .dtors */ + *crtbegin.o(.dtors) + *crtbegin?.o(.dtors) + *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors) + *(SORT(.dtors.*)) + *(.dtors) + + *(.rodata*) + + KEEP(*(.eh_frame*)) + } > ROM + + .ARM.extab : + { + *(.ARM.extab* .gnu.linkonce.armextab.*) + } > ROM + + __exidx_start = .; + .ARM.exidx : + { + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + } > ROM + __exidx_end = .; + + __etext = .; + + .data : AT (__etext) + { + __data_start__ = .; + *(vtable) + *(.data*) + + . = ALIGN(4); + /* preinit data */ + PROVIDE_HIDDEN (__preinit_array_start = .); + KEEP(*(.preinit_array)) + PROVIDE_HIDDEN (__preinit_array_end = .); + + . = ALIGN(4); + /* init data */ + PROVIDE_HIDDEN (__init_array_start = .); + KEEP(*(SORT(.init_array.*))) + KEEP(*(.init_array)) + PROVIDE_HIDDEN (__init_array_end = .); + + + . = ALIGN(4); + /* finit data */ + PROVIDE_HIDDEN (__fini_array_start = .); + KEEP(*(SORT(.fini_array.*))) + KEEP(*(.fini_array)) + PROVIDE_HIDDEN (__fini_array_end = .); + + . = ALIGN(4); + /* All data end */ + __data_end__ = .; + + } > RAM + + .bss (NOLOAD): + { + __bss_start__ = .; + *(.bss*) + *(COMMON) + __bss_end__ = .; + } > RAM + + .heap (NOLOAD): + { + __end__ = .; + end = __end__; + *(.heap*) + __HeapLimit = .; + } > RAM + + /* .stack_dummy section doesn't contains any symbols. It is only + * used for linker to calculate size of stack sections, and assign + * values to stack symbols later */ + .stack_dummy (NOLOAD): + { + *(.stack) + } > RAM + + /* Set stack top to end of RAM, and stack limit move down by + * size of stack_dummy section */ + __StackTop = ORIGIN(RAM) + LENGTH(RAM); + __StackLimit = __StackTop - SIZEOF(.stack_dummy); + PROVIDE(__stack = __StackTop); + + /* Check if data + heap + stack exceeds RAM limit */ + ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack") +} diff --git a/Target/Source/ARMCM3_STM32F2/cpu.c b/Target/Source/ARMCM3_STM32F2/cpu.c new file mode 100644 index 00000000..0bed3b75 --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/cpu.c @@ -0,0 +1,146 @@ +/************************************************************************************//** +* \file Source\ARMCM3_STM32F2\cpu.c +* \brief Bootloader cpu module source file. +* \ingroup Target_ARMCM3_STM32F2 +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "boot.h" /* bootloader generic header */ + + +/**************************************************************************************** +* Macro definitions +****************************************************************************************/ +/** \brief Pointer to the user program's reset vector. */ +#define CPU_USER_PROGRAM_STARTADDR_PTR ((blt_addr)(NvmGetUserProgBaseAddress() + 0x00000004)) +/** \brief Pointer to the user program's vector table. */ +#define CPU_USER_PROGRAM_VECTABLE_OFFSET ((blt_int32u)NvmGetUserProgBaseAddress()) + + +/**************************************************************************************** +* Register definitions +****************************************************************************************/ +/** \brief Vector table offset register. */ +#define SCB_VTOR (*((volatile blt_int32u *) 0xE000ED08)) + + +/**************************************************************************************** +* Hook functions +****************************************************************************************/ +#if (BOOT_CPU_USER_PROGRAM_START_HOOK > 0) +extern blt_bool CpuUserProgramStartHook(void); +#endif + + +/**************************************************************************************** +* External functions +****************************************************************************************/ +extern void Reset_Handler(void); /* implemented in cstart.s */ + + +/************************************************************************************//** +** \brief Starts the user program, if one is present. In this case this function +** does not return. +** \return none. +** +****************************************************************************************/ +void CpuStartUserProgram(void) +{ + void (*pProgResetHandler)(void); + + /* check if a user program is present by verifying the checksum */ + if (NvmVerifyChecksum() == BLT_FALSE) + { + /* not a valid user program so it cannot be started */ + return; + } +#if (BOOT_CPU_USER_PROGRAM_START_HOOK > 0) + /* invoke callback */ + if (CpuUserProgramStartHook() == BLT_FALSE) + { + /* callback requests the user program to not be started */ + return; + } +#endif +#if (BOOT_COM_ENABLE > 0) + /* release the communication interface */ + ComFree(); +#endif + /* reset the timer */ + TimerReset(); + /* remap user program's vector table */ + SCB_VTOR = CPU_USER_PROGRAM_VECTABLE_OFFSET & (blt_int32u)0x1FFFFF80; + /* set the address where the bootloader needs to jump to. this is the address of + * the 2nd entry in the user program's vector table. this address points to the + * user program's reset handler. + */ + pProgResetHandler = (void(*)(void))(*((blt_addr *)CPU_USER_PROGRAM_STARTADDR_PTR)); + /* start the user program by activating its reset interrupt service routine */ + pProgResetHandler(); +} /*** end of CpuStartUserProgram ***/ + + +/************************************************************************************//** +** \brief Copies data from the source to the destination address. +** \param dest Destination address for the data. +** \param src Source address of the data. +** \param len length of the data in bytes. +** \return none. +** +****************************************************************************************/ +void CpuMemCopy(blt_addr dest, blt_addr src, blt_int16u len) +{ + blt_int8u *from, *to; + + /* set casted pointers */ + from = (blt_int8u *)src; + to = (blt_int8u *)dest; + + /* copy all bytes from source address to destination address */ + while (len-- > 0) + { + /* store byte value from source to destination */ + *to++ = *from++; + /* keep the watchdog happy */ + CopService(); + } +} /*** end of CpuMemCopy ***/ + + +/************************************************************************************//** +** \brief Perform a soft reset of the microcontroller by starting from the reset ISR. +** \return none. +** +****************************************************************************************/ +void CpuReset(void) +{ + /* perform a software reset by calling the reset ISR routine */ + Reset_Handler(); +} /*** end of CpuReset ***/ + + +/*********************************** end of cpu.c **************************************/ diff --git a/Target/Source/ARMCM3_STM32F2/flash.c b/Target/Source/ARMCM3_STM32F2/flash.c new file mode 100644 index 00000000..39723830 --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/flash.c @@ -0,0 +1,686 @@ +/************************************************************************************//** +* \file Source\ARMCM3_STM32F2\flash.c +* \brief Bootloader flash driver source file. +* \ingroup Target_ARMCM3_STM32F2 +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "boot.h" /* bootloader generic header */ +#include "stm32f2xx.h" /* STM32 registers and drivers */ + + +/**************************************************************************************** +* Macro definitions +****************************************************************************************/ +/** \brief Value for an invalid flash sector. */ +#define FLASH_INVALID_SECTOR (0xff) +/** \brief Value for an invalid flash address. */ +#define FLASH_INVALID_ADDRESS (0xffffffff) +/** \brief Standard size of a flash block for writing. */ +#define FLASH_WRITE_BLOCK_SIZE (512) +/** \brief Total numbers of sectors in array flashLayout[]. */ +#define FLASH_TOTAL_SECTORS (sizeof(flashLayout)/sizeof(flashLayout[0])) +/** \brief Offset into the user program's vector table where the checksum is located. */ +#define FLASH_VECTOR_TABLE_CS_OFFSET (0x184) + + +/**************************************************************************************** +* Type definitions +****************************************************************************************/ +/** \brief Flash sector descriptor type. */ +typedef struct +{ + blt_addr sector_start; /**< sector start address */ + blt_int32u sector_size; /**< sector size in bytes */ + blt_int8u sector_num; /**< sector number */ +} tFlashSector; + +/** \brief Structure type for grouping flash block information. + * \details Programming is done per block of max FLASH_WRITE_BLOCK_SIZE. for this a + * flash block manager is implemented in this driver. this flash block manager + * depends on this flash block info structure. It holds the base address of + * the flash block and the data that should be programmed into the flash + * block. The .base_addr must be a multiple of FLASH_WRITE_BLOCK_SIZE. + */ +typedef struct +{ + blt_addr base_addr; + blt_int8u data[FLASH_WRITE_BLOCK_SIZE]; +} tFlashBlockInfo; + + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +static blt_bool FlashInitBlock(tFlashBlockInfo *block, blt_addr address); +static tFlashBlockInfo *FlashSwitchBlock(tFlashBlockInfo *block, blt_addr base_addr); +static blt_bool FlashAddToBlock(tFlashBlockInfo *block, blt_addr address, + blt_int8u *data, blt_int32u len); +static blt_bool FlashWriteBlock(tFlashBlockInfo *block); +static blt_bool FlashEraseSectors(blt_int8u first_sector, blt_int8u last_sector); +static blt_int8u FlashGetSector(blt_addr address); + + +/**************************************************************************************** +* Local constant declarations +****************************************************************************************/ +/** \brief Array wit the layout of the flash memory. + * \details Also controls what part of the flash memory is reserved for the bootloader. + * If the bootloader size changes, the reserved sectors for the bootloader + * might need adjustment to make sure the bootloader doesn't get overwritten. + */ +static const tFlashSector flashLayout[] = +{ + /* space is reserved for a bootloader configuration with all supported communication + * interfaces enabled. when for example only UART is needed, than the space required + * for the bootloader can be made a lot smaller here. + */ + /* { 0x08000000, 0x04000, 0}, flash sector 0 - reserved for bootloader */ + /* { 0x08004000, 0x04000, 1}, flash sector 1 - reserved for bootloader */ + { 0x08008000, 0x04000, 2}, /* flash sector 2 - 16kb */ + { 0x0800c000, 0x04000, 3}, /* flash sector 3 - 16kb */ + { 0x08010000, 0x10000, 4}, /* flash sector 4 - 64kb */ +#if (BOOT_NVM_SIZE_KB > 128) + { 0x08020000, 0x20000, 5}, /* flash sector 5 - 128kb */ +#endif +#if (BOOT_NVM_SIZE_KB > 256) + { 0x08040000, 0x20000, 6}, /* flash sector 6 - 128kb */ + { 0x08060000, 0x20000, 7}, /* flash sector 7 - 128kb */ +#endif +#if (BOOT_NVM_SIZE_KB > 512) + { 0x08080000, 0x20000, 8}, /* flash sector 8 - 128kb */ + { 0x080A0000, 0x20000, 9}, /* flash sector 9 - 128kb */ + { 0x080C0000, 0x20000, 10}, /* flash sector 10 - 128kb */ + { 0x080E0000, 0x20000, 11}, /* flash sector 11 - 128kb */ +#endif +#if (BOOT_NVM_SIZE_KB > 1024) +#error "BOOT_NVM_SIZE_KB > 1024 is currently not supported." +#endif +}; + +/** \brief Lookup table to quickly convert sector number to mask. + * \details The STM32F2x Standard Peripheral Library driver needs a sector mask instead + * of the sector number. this ROM lookup table can quickly convert the sector + * number to its mask. + */ +static const blt_int16u flashSectorNumToMask[] = +{ + FLASH_Sector_0, /* idx 0 - mask for sector 0 */ + FLASH_Sector_1, /* idx 1 - mask for sector 1 */ + FLASH_Sector_2, /* idx 2 - mask for sector 2 */ + FLASH_Sector_3, /* idx 3 - mask for sector 3 */ + FLASH_Sector_4, /* idx 4 - mask for sector 4 */ + FLASH_Sector_5, /* idx 5 - mask for sector 5 */ + FLASH_Sector_6, /* idx 6 - mask for sector 6 */ + FLASH_Sector_7, /* idx 7 - mask for sector 7 */ + FLASH_Sector_8, /* idx 8 - mask for sector 8 */ + FLASH_Sector_9, /* idx 9 - mask for sector 9 */ + FLASH_Sector_10, /* idx 10 - mask for sector 10 */ + FLASH_Sector_11 /* idx 11 - mask for sector 11 */ +}; + + +/**************************************************************************************** +* Local data declarations +****************************************************************************************/ +/** \brief Local variable with information about the flash block that is currently + * being operated on. + * \details The smallest amount of flash that can be programmed is + * FLASH_WRITE_BLOCK_SIZE. A flash block manager is implemented in this driver + * and stores info in this variable. Whenever new data should be flashed, it + * is first added to a RAM buffer, which is part of this variable. Whenever + * the RAM buffer, which has the size of a flash block, is full or data needs + * to be written to a different block, the contents of the RAM buffer are + * programmed to flash. The flash block manager requires some software + * overhead, yet results is faster flash programming because data is first + * harvested, ideally until there is enough to program an entire flash block, + * before the flash device is actually operated on. + */ +static tFlashBlockInfo blockInfo; + +/** \brief Local variable with information about the flash boot block. + * \details The first block of the user program holds the vector table, which on the + * STM32 is also the where the checksum is written to. Is it likely that + * the vector table is first flashed and then, at the end of the programming + * sequence, the checksum. This means that this flash block need to be written + * to twice. Normally this is not a problem with flash memory, as long as you + * write the same values to those bytes that are not supposed to be changed + * and the locations where you do write to are still in the erased 0xFF state. + * Unfortunately, writing twice to flash this way, does not work reliably on + * all micros. This is why we need to have an extra block, the bootblock, + * placed under the management of the block manager. This way is it possible + * to implement functionality so that the bootblock is only written to once + * at the end of the programming sequence. + */ +static tFlashBlockInfo bootBlockInfo; + + +/************************************************************************************//** +** \brief Initializes the flash driver. +** \return none. +** +****************************************************************************************/ +void FlashInit(void) +{ + /* init the flash block info structs by setting the address to an invalid address */ + blockInfo.base_addr = FLASH_INVALID_ADDRESS; + bootBlockInfo.base_addr = FLASH_INVALID_ADDRESS; +} /*** end of FlashInit ***/ + + +/************************************************************************************//** +** \brief Writes the data to flash through a flash block manager. Note that this +** function also checks that no data is programmed outside the flash +** memory region, so the bootloader can never be overwritten. +** \param addr Start address. +** \param len Length in bytes. +** \param data Pointer to the data buffer. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool FlashWrite(blt_addr addr, blt_int32u len, blt_int8u *data) +{ + blt_addr base_addr; + + /* make sure the addresses are within the flash device */ + if ((FlashGetSector(addr) == FLASH_INVALID_SECTOR) || \ + (FlashGetSector(addr+len-1) == FLASH_INVALID_SECTOR)) + { + return BLT_FALSE; + } + + /* if this is the bootblock, then let the boot block manager handle it */ + base_addr = (addr/FLASH_WRITE_BLOCK_SIZE)*FLASH_WRITE_BLOCK_SIZE; + if (base_addr == flashLayout[0].sector_start) + { + /* let the boot block manager handle it */ + return FlashAddToBlock(&bootBlockInfo, addr, data, len); + } + /* let the block manager handle it */ + return FlashAddToBlock(&blockInfo, addr, data, len); +} /*** end of FlashWrite ***/ + + +/************************************************************************************//** +** \brief Erases the flash memory. Note that this function also checks that no +** data is erased outside the flash memory region, so the bootloader can +** never be erased. +** \param addr Start address. +** \param len Length in bytes. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool FlashErase(blt_addr addr, blt_int32u len) +{ + blt_int8u first_sector; + blt_int8u last_sector; + + /* obtain the first and last sector number */ + first_sector = FlashGetSector(addr); + last_sector = FlashGetSector(addr+len-1); + /* check them */ + if ((first_sector == FLASH_INVALID_SECTOR) || (last_sector == FLASH_INVALID_SECTOR)) + { + return BLT_FALSE; + } + /* erase the sectors */ + return FlashEraseSectors(first_sector, last_sector); +} /*** end of FlashErase ***/ + + +/************************************************************************************//** +** \brief Writes a checksum of the user program to non-volatile memory. This is +** performed once the entire user program has been programmed. Through +** the checksum, the bootloader can check if the programming session +** was completed, which indicates that a valid user programming is +** present and can be started. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool FlashWriteChecksum(void) +{ + blt_int32u signature_checksum = 0; + + /* for the STM32 target we defined the checksum as the Two's complement value of the + * sum of the first 7 exception addresses. + * + * Layout of the vector table: + * 0x08000000 Initial stack pointer + * 0x08000004 Reset Handler + * 0x08000008 NMI Handler + * 0x0800000C Hard Fault Handler + * 0x08000010 MPU Fault Handler + * 0x08000014 Bus Fault Handler + * 0x08000018 Usage Fault Handler + * + * signature_checksum = Two's complement of (SUM(exception address values)) + * + * the bootloader writes this 32-bit checksum value right after the vector table + * of the user program. note that this means one extra dummy entry must be added + * at the end of the user program's vector table to reserve storage space for the + * checksum. + */ + + /* first check that the bootblock contains valid data. if not, this means the + * bootblock is not part of the reprogramming this time and therefore no + * new checksum needs to be written + */ + if (bootBlockInfo.base_addr == FLASH_INVALID_ADDRESS) + { + return BLT_TRUE; + } + + /* compute the checksum. note that the user program's vectors are not yet written + * to flash but are present in the bootblock data structure at this point. + */ + signature_checksum += *((blt_int32u *)(&bootBlockInfo.data[0+0x00])); + signature_checksum += *((blt_int32u *)(&bootBlockInfo.data[0+0x04])); + signature_checksum += *((blt_int32u *)(&bootBlockInfo.data[0+0x08])); + signature_checksum += *((blt_int32u *)(&bootBlockInfo.data[0+0x0C])); + signature_checksum += *((blt_int32u *)(&bootBlockInfo.data[0+0x10])); + signature_checksum += *((blt_int32u *)(&bootBlockInfo.data[0+0x14])); + signature_checksum += *((blt_int32u *)(&bootBlockInfo.data[0+0x18])); + signature_checksum = ~signature_checksum; /* one's complement */ + signature_checksum += 1; /* two's complement */ + + /* write the checksum */ + return FlashWrite(flashLayout[0].sector_start+FLASH_VECTOR_TABLE_CS_OFFSET, + sizeof(blt_addr), (blt_int8u *)&signature_checksum); +} /*** end of FlashWriteChecksum ***/ + + +/************************************************************************************//** +** \brief Verifies the checksum, which indicates that a valid user program is +** present and can be started. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool FlashVerifyChecksum(void) +{ + blt_int32u signature_checksum = 0; + + /* verify the checksum based on how it was written by CpuWriteChecksum() */ + signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start)); + signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x04)); + signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x08)); + signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x0C)); + signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x10)); + signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x14)); + signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+0x18)); + signature_checksum += *((blt_int32u *)(flashLayout[0].sector_start+FLASH_VECTOR_TABLE_CS_OFFSET)); + /* sum should add up to an unsigned 32-bit value of 0 */ + if (signature_checksum == 0) + { + /* checksum okay */ + return BLT_TRUE; + } + /* checksum incorrect */ + return BLT_FALSE; +} /*** end of FlashVerifyChecksum ***/ + + +/************************************************************************************//** +** \brief Finalizes the flash driver operations. There could still be data in +** the currently active block that needs to be flashed. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool FlashDone(void) +{ + /* check if there is still data waiting to be programmed in the boot block */ + if (bootBlockInfo.base_addr != FLASH_INVALID_ADDRESS) + { + if (FlashWriteBlock(&bootBlockInfo) == BLT_FALSE) + { + return BLT_FALSE; + } + } + + /* check if there is still data waiting to be programmed */ + if (blockInfo.base_addr != FLASH_INVALID_ADDRESS) + { + if (FlashWriteBlock(&blockInfo) == BLT_FALSE) + { + return BLT_FALSE; + } + } + /* still here so all is okay */ + return BLT_TRUE; +} /*** end of FlashDone ***/ + + +/************************************************************************************//** +** \brief Obtains the base address of the flash memory available to the user program. +** This is basically the first address in the flashLayout table. +** \return Base address. +** +****************************************************************************************/ +blt_addr FlashGetUserProgBaseAddress(void) +{ + return flashLayout[0].sector_start; +} /*** end of FlashGetUserProgBaseAddress ***/ + + +/************************************************************************************//** +** \brief Copies data currently in flash to the block->data and sets the +** base address. +** \param block Pointer to flash block info structure to operate on. +** \param address Base address of the block data. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +static blt_bool FlashInitBlock(tFlashBlockInfo *block, blt_addr address) +{ + /* check address alignment */ + if ((address % FLASH_WRITE_BLOCK_SIZE) != 0) + { + return BLT_FALSE; + } + /* make sure that we are initializing a new block and not the same one */ + if (block->base_addr == address) + { + /* block already initialized, so nothing to do */ + return BLT_TRUE; + } + /* set the base address and copies the current data from flash */ + block->base_addr = address; + CpuMemCopy((blt_addr)block->data, address, FLASH_WRITE_BLOCK_SIZE); + return BLT_TRUE; +} /*** end of FlashInitBlock ***/ + + +/************************************************************************************//** +** \brief Switches blocks by programming the current one and initializing the +** next. +** \param block Pointer to flash block info structure to operate on. +** \param base_addr Base address of the next block. +** \return The pointer of the block info struct that is no being used, or a NULL +** pointer in case of error. +** +****************************************************************************************/ +static tFlashBlockInfo *FlashSwitchBlock(tFlashBlockInfo *block, blt_addr base_addr) +{ + /* check if a switch needs to be made away from the boot block. in this case the boot + * block shouldn't be written yet, because this is done at the end of the programming + * session by FlashDone(), this is right after the checksum was written. + */ + if (block == &bootBlockInfo) + { + /* switch from the boot block to the generic block info structure */ + block = &blockInfo; + } + /* check if a switch back into the bootblock is needed. in this case the generic block + * doesn't need to be written here yet. + */ + else if (base_addr == flashLayout[0].sector_start) + { + /* switch from the generic block to the boot block info structure */ + block = &bootBlockInfo; + base_addr = flashLayout[0].sector_start; + } + else + { + /* need to switch to a new block, so program the current one and init the next */ + if (FlashWriteBlock(block) == BLT_FALSE) + { + return BLT_NULL; + } + } + + /* initialize tne new block when necessary */ + if (FlashInitBlock(block, base_addr) == BLT_FALSE) + { + return BLT_NULL; + } + + /* still here to all is okay */ + return block; +} /*** end of FlashSwitchBlock ***/ + + +/************************************************************************************//** +** \brief Programming is done per block. This function adds data to the block +** that is currently collecting data to be written to flash. If the +** address is outside of the current block, the current block is written +** to flash an a new block is initialized. +** \param block Pointer to flash block info structure to operate on. +** \param address Flash destination address. +** \param data Pointer to the byte array with data. +** \param len Number of bytes to add to the block. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +static blt_bool FlashAddToBlock(tFlashBlockInfo *block, blt_addr address, + blt_int8u *data, blt_int32u len) +{ + blt_addr current_base_addr; + blt_int8u *dst; + blt_int8u *src; + + /* determine the current base address */ + current_base_addr = (address/FLASH_WRITE_BLOCK_SIZE)*FLASH_WRITE_BLOCK_SIZE; + + /* make sure the blockInfo is not uninitialized */ + if (block->base_addr == FLASH_INVALID_ADDRESS) + { + /* initialize the blockInfo struct for the current block */ + if (FlashInitBlock(block, current_base_addr) == BLT_FALSE) + { + return BLT_FALSE; + } + } + + /* check if the new data fits in the current block */ + if (block->base_addr != current_base_addr) + { + /* need to switch to a new block, so program the current one and init the next */ + block = FlashSwitchBlock(block, current_base_addr); + if (block == BLT_NULL) + { + return BLT_FALSE; + } + } + + /* add the data to the current block, but check for block overflow */ + dst = &(block->data[address - block->base_addr]); + src = data; + do + { + /* keep the watchdog happy */ + CopService(); + /* buffer overflow? */ + if ((blt_addr)(dst-&(block->data[0])) >= FLASH_WRITE_BLOCK_SIZE) + { + /* need to switch to a new block, so program the current one and init the next */ + block = FlashSwitchBlock(block, current_base_addr+FLASH_WRITE_BLOCK_SIZE); + if (block == BLT_NULL) + { + return BLT_FALSE; + } + /* reset destination pointer */ + dst = &(block->data[0]); + } + /* write the data to the buffer */ + *dst = *src; + /* update pointers */ + dst++; + src++; + /* decrement byte counter */ + len--; + } + while (len > 0); + /* still here so all is good */ + return BLT_TRUE; +} /*** end of FlashAddToBlock ***/ + + +/************************************************************************************//** +** \brief Programs FLASH_WRITE_BLOCK_SIZE bytes to flash from the block->data +** array. +** \param block Pointer to flash block info structure to operate on. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +static blt_bool FlashWriteBlock(tFlashBlockInfo *block) +{ + blt_int8u sector_num; + blt_bool result = BLT_TRUE; + blt_addr prog_addr; + blt_int32u prog_data; + blt_int32u word_cnt; + + /* check that address is actually within flash */ + sector_num = FlashGetSector(block->base_addr); + if (sector_num == FLASH_INVALID_SECTOR) + { + return BLT_FALSE; + } + /* unlock the flash array */ + FLASH_Unlock(); + /* clear pending flags (if any) */ + FLASH_ClearFlag(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | + FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR|FLASH_FLAG_PGSERR); + /* check that the flash peripheral is not busy */ + if (FLASH_GetStatus() == FLASH_BUSY) + { + /* lock the flash array again */ + FLASH_Lock(); + /* could not perform erase operation */ + return BLT_FALSE; + } + /* program all words in the block one by one */ + for (word_cnt=0; word_cnt<(FLASH_WRITE_BLOCK_SIZE/sizeof(blt_int32u)); word_cnt++) + { + prog_addr = block->base_addr + (word_cnt * sizeof(blt_int32u)); + prog_data = *(volatile blt_int32u *)(&block->data[word_cnt * sizeof(blt_int32u)]); + /* keep the watchdog happy */ + CopService(); + /* program the word */ + if (FLASH_ProgramWord(prog_addr, prog_data) != FLASH_COMPLETE) + { + result = BLT_FALSE; + break; + } + /* verify that the written data is actually there */ + if (*(volatile blt_int32u *)prog_addr != prog_data) + { + result = BLT_FALSE; + break; + } + } + /* lock the flash array again */ + FLASH_Lock(); + /* still here so all is okay */ + return result; +} /*** end of FlashWriteBlock ***/ + + +/************************************************************************************//** +** \brief Erases the flash sectors from first_sector up until last_sector. +** \param first_sector First flash sector number. +** \param last_sector Last flash sector number. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +static blt_bool FlashEraseSectors(blt_int8u first_sector, blt_int8u last_sector) +{ + blt_int8u sector_cnt; + + /* validate the sector numbers */ + if (first_sector > last_sector) + { + return BLT_FALSE; + } + if ((first_sector < flashLayout[0].sector_num) || \ + (last_sector > flashLayout[FLASH_TOTAL_SECTORS-1].sector_num)) + { + return BLT_FALSE; + } + /* unlock the flash array */ + FLASH_Unlock(); + /* clear pending flags (if any) */ + FLASH_ClearFlag(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | + FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR|FLASH_FLAG_PGSERR); + /* check that the flash peripheral is not busy */ + if (FLASH_GetStatus() == FLASH_BUSY) + { + /* lock the flash array again */ + FLASH_Lock(); + /* could not perform erase operation */ + return BLT_FALSE; + } + /* erase all sectors one by one */ + for (sector_cnt=first_sector; sector_cnt<= last_sector; sector_cnt++) + { + /* keep the watchdog happy */ + CopService(); + /* submit the sector erase request */ + if (FLASH_EraseSector(flashSectorNumToMask[sector_cnt], VoltageRange_3) != FLASH_COMPLETE) + { + /* lock the flash array again */ + FLASH_Lock(); + /* could not perform erase operation */ + return BLT_FALSE; + } + } + /* lock the flash array again */ + FLASH_Lock(); + /* still here so all went okay */ + return BLT_TRUE; +} /*** end of FlashEraseSectors ***/ + + +/************************************************************************************//** +** \brief Determines the flash sector the address is in. +** \param address Address in the flash sector. +** \return Flash sector number or FLASH_INVALID_SECTOR. +** +****************************************************************************************/ +static blt_int8u FlashGetSector(blt_addr address) +{ + blt_int8u sectorIdx; + + /* search through the sectors to find the right one */ + for (sectorIdx = 0; sectorIdx < FLASH_TOTAL_SECTORS; sectorIdx++) + { + /* keep the watchdog happy */ + CopService(); + /* is the address in this sector? */ + if ((address >= flashLayout[sectorIdx].sector_start) && \ + (address < (flashLayout[sectorIdx].sector_start + \ + flashLayout[sectorIdx].sector_size))) + { + /* return the sector number */ + return flashLayout[sectorIdx].sector_num; + } + } + /* still here so no valid sector found */ + return FLASH_INVALID_SECTOR; +} /*** end of FlashGetSector ***/ + + +/*********************************** end of flash.c ************************************/ diff --git a/Target/Source/ARMCM3_STM32F2/flash.h b/Target/Source/ARMCM3_STM32F2/flash.h new file mode 100644 index 00000000..08a3fd4d --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/flash.h @@ -0,0 +1,44 @@ +/************************************************************************************//** +* \file Source\ARMCM3_STM32F2\flash.c +* \brief Bootloader flash driver source file. +* \ingroup Target_ARMCM3_STM32F2 +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef FLASH_H +#define FLASH_H + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +void FlashInit(void); +blt_bool FlashWrite(blt_addr addr, blt_int32u len, blt_int8u *data); +blt_bool FlashErase(blt_addr addr, blt_int32u len); +blt_bool FlashWriteChecksum(void); +blt_bool FlashVerifyChecksum(void); +blt_bool FlashDone(void); +blt_addr FlashGetUserProgBaseAddress(void); + + +#endif /* FLASH_H */ +/*********************************** end of flash.h ************************************/ diff --git a/Target/Source/ARMCM3_STM32F2/nvm.c b/Target/Source/ARMCM3_STM32F2/nvm.c new file mode 100644 index 00000000..e1297829 --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/nvm.c @@ -0,0 +1,224 @@ +/************************************************************************************//** +* \file Source\ARMCM3_STM32F2\nvm.c +* \brief Bootloader non-volatile memory driver source file. +* \ingroup Target_ARMCM3_STM32F2 +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "boot.h" /* bootloader generic header */ +#include "flash.h" + + +/**************************************************************************************** +* Hook functions +****************************************************************************************/ +#if (BOOT_NVM_HOOKS_ENABLE > 0) +extern void NvmInitHook(void); +extern blt_int8u NvmWriteHook(blt_addr addr, blt_int32u len, blt_int8u *data); +extern blt_int8u NvmEraseHook(blt_addr addr, blt_int32u len); +extern blt_bool NvmDoneHook(void); +#endif + +#if (BOOT_NVM_CHECKSUM_HOOKS_ENABLE > 0) +extern blt_bool NvmWriteChecksumHook(void); +extern blt_bool NvmVerifyChecksumHook(void); +#endif + + + +/************************************************************************************//** +** \brief Initializes the NVM driver. +** \return none. +** +****************************************************************************************/ +void NvmInit(void) +{ +#if (BOOT_NVM_HOOKS_ENABLE > 0) + /* give the application a chance to initialize a driver for operating on NVM + * that is not by default supported by this driver. + */ + NvmInitHook(); +#endif + + /* init the internal driver */ + FlashInit(); +} /*** end of NvmInit ***/ + + +/************************************************************************************//** +** \brief Programs the non-volatile memory. +** \param addr Start address. +** \param len Length in bytes. +** \param data Pointer to the data buffer. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool NvmWrite(blt_addr addr, blt_int32u len, blt_int8u *data) +{ +#if (BOOT_NVM_HOOKS_ENABLE > 0) + blt_int8u result = BLT_NVM_NOT_IN_RANGE; +#endif + +#if (BOOT_NVM_HOOKS_ENABLE > 0) + /* give the application a chance to operate on memory that is not by default supported + * by this driver. + */ + result = NvmWriteHook(addr, len, data); + + /* process the return code */ + if (result == BLT_NVM_OKAY) + { + /* data was within range of the additionally supported memory and succesfully + * programmed, so we are all done. + */ + return BLT_TRUE; + } + else if (result == BLT_NVM_ERROR) + { + /* data was within range of the additionally supported memory and attempted to be + * programmed, but an error occurred, so we can't continue. + */ + return BLT_FALSE; + } +#endif + + /* still here so the internal driver should try and perform the program operation */ + return FlashWrite(addr, len, data); +} /*** end of NvmWrite ***/ + + +/************************************************************************************//** +** \brief Erases the non-volatile memory. +** \param addr Start address. +** \param len Length in bytes. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool NvmErase(blt_addr addr, blt_int32u len) +{ +#if (BOOT_NVM_HOOKS_ENABLE > 0) + blt_int8u result = BLT_NVM_NOT_IN_RANGE; +#endif + +#if (BOOT_NVM_HOOKS_ENABLE > 0) + /* give the application a chance to operate on memory that is not by default supported + * by this driver. + */ + result = NvmEraseHook(addr, len); + + /* process the return code */ + if (result == BLT_NVM_OKAY) + { + /* address was within range of the additionally supported memory and succesfully + * erased, so we are all done. + */ + return BLT_TRUE; + } + else if (result == BLT_NVM_ERROR) + { + /* address was within range of the additionally supported memory and attempted to be + * erased, but an error occurred, so we can't continue. + */ + return BLT_FALSE; + } +#endif + + /* still here so the internal driver should try and perform the erase operation */ + return FlashErase(addr, len); +} /*** end of NvmErase ***/ + + +/************************************************************************************//** +** \brief Verifies the checksum, which indicates that a valid user program is +** present and can be started. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool NvmVerifyChecksum(void) +{ +#if (BOOT_NVM_CHECKSUM_HOOKS_ENABLE > 0) + /* check checksum using the application specific method. */ + return NvmVerifyChecksumHook(); +#else + /* check checksum using the interally supported method. */ + return FlashVerifyChecksum(); +#endif +} /*** end of NvmVerifyChecksum ***/ + + +/************************************************************************************//** +** \brief Obtains the base address of the non-volatile memory available to the user +** program. This is typically that start of the vector table. +** \return Base address. +** +****************************************************************************************/ +blt_addr NvmGetUserProgBaseAddress(void) +{ + return FlashGetUserProgBaseAddress(); +} /*** end of NvmGetUserProgBaseAddress ***/ + + +/************************************************************************************//** +** \brief Once all erase and programming operations are completed, this +** function is called, so at the end of the programming session and +** right before a software reset is performed. It is used to calculate +** a checksum and program this into flash. This checksum is later used +** to determine if a valid user program is present in flash. +** \return BLT_TRUE if successful, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool NvmDone(void) +{ +#if (BOOT_NVM_HOOKS_ENABLE > 0) + /* give the application's NVM driver a chance to finish up */ + if (NvmDoneHook() == BLT_FALSE) + { + /* error so no need to continue */ + return BLT_FALSE; + } +#endif + +#if (BOOT_NVM_CHECKSUM_HOOKS_ENABLE > 0) + /* compute and write checksum, using the application specific method. */ + if (NvmWriteChecksumHook() == BLT_FALSE) + { + return BLT_FALSE; + } +#else + /* compute and write checksum, which is programmed by the internal driver. */ + if (FlashWriteChecksum() == BLT_FALSE) + { + return BLT_FALSE; + } +#endif + + /* finish up internal driver operations */ + return FlashDone(); +} /*** end of NvmDone ***/ + + +/*********************************** end of nvm.c **************************************/ diff --git a/Target/Source/ARMCM3_STM32F2/target.dox b/Target/Source/ARMCM3_STM32F2/target.dox new file mode 100644 index 00000000..18003b73 --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/target.dox @@ -0,0 +1,8 @@ +/** +\defgroup Target_ARMCM3_STM32F2 Target ARMCM3 STM32F2 +\brief Target dependent code for the ARMCM3 STM32F2xx microcontroller family. +\details This module implements the bootloader's target dependent part for the + ARMCM3 STM32F2xx microcontroller family. +*/ + + diff --git a/Target/Source/ARMCM3_STM32F2/timer.c b/Target/Source/ARMCM3_STM32F2/timer.c new file mode 100644 index 00000000..e051f39f --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/timer.c @@ -0,0 +1,111 @@ +/************************************************************************************//** +* \file Source\ARMCM3_STM32F2\timer.c +* \brief Bootloader timer driver source file. +* \ingroup Target_ARMCM3_STM32F2 +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "boot.h" /* bootloader generic header */ +#include "stm32f2xx.h" /* STM32 registers and drivers */ + + +/**************************************************************************************** +* Local data declarations +****************************************************************************************/ +/** \brief Local variable for storing the number of milliseconds that have elapsed since + * startup. + */ +static blt_int32u millisecond_counter; + + +/************************************************************************************//** +** \brief Initializes the polling based millisecond timer driver. +** \return none. +** +****************************************************************************************/ +void TimerInit(void) +{ + /* reset the timer configuration */ + TimerReset(); + + /* configure the systick frequency as a 1 ms event generator */ + SysTick->LOAD = BOOT_CPU_SYSTEM_SPEED_KHZ - 1; + /* reset the current counter value */ + SysTick->VAL = 0; + /* select core clock as source and enable the timer */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_ENABLE_Msk; + /* reset the millisecond counter value */ + millisecond_counter = 0; +} /*** end of TimerInit ***/ + + +/************************************************************************************//** +** \brief Reset the timer by placing the timer back into it's default reset +** configuration. +** \return none. +** +****************************************************************************************/ +void TimerReset(void) +{ + /* set the systick's status and control register back into the default reset value */ + SysTick->CTRL = 0; +} /* end of TimerReset */ + + +/************************************************************************************//** +** \brief Updates the millisecond timer. +** \return none. +** +****************************************************************************************/ +void TimerUpdate(void) +{ + /* check if the millisecond event occurred */ + if ((SysTick->CTRL & SysTick_CTRL_COUNTFLAG_Msk) != 0) + { + /* increment the millisecond counter */ + millisecond_counter++; + } +} /*** end of TimerUpdate ***/ + + +/************************************************************************************//** +** \brief Obtains the counter value of the millisecond timer. +** \return Current value of the millisecond timer. +** +****************************************************************************************/ +blt_int32u TimerGet(void) +{ + /* updating timer here allows this function to be called in a loop with timeout + * detection. + */ + TimerUpdate(); + /* read and return the amount of milliseconds that passed since initialization */ + return millisecond_counter; +} /*** end of TimerGet ***/ + + +/*********************************** end of timer.c ************************************/ diff --git a/Target/Source/ARMCM3_STM32F2/types.h b/Target/Source/ARMCM3_STM32F2/types.h new file mode 100644 index 00000000..83b80d6e --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/types.h @@ -0,0 +1,58 @@ +/************************************************************************************//** +* \file Source\ARMCM3_STM32F2\types.h +* \brief Bootloader types header file. +* \ingroup Target_ARMCM3_STM32F2 +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ +#ifndef TYPES_H +#define TYPES_H + + +/**************************************************************************************** +* Macro definitions +****************************************************************************************/ +/** \brief Boolean true value. */ +#define BLT_TRUE (1) +/** \brief Boolean false value. */ +#define BLT_FALSE (0) +/** \brief NULL pointer value. */ +#define BLT_NULL ((void *)0) + + +/**************************************************************************************** +* Type definitions +****************************************************************************************/ +typedef unsigned char blt_bool; /**< boolean type */ +typedef char blt_char; /**< character type */ +typedef unsigned long blt_addr; /**< memory address type */ +typedef unsigned char blt_int8u; /**< 8-bit unsigned integer */ +typedef signed char blt_int8s; /**< 8-bit signed integer */ +typedef unsigned short blt_int16u; /**< 16-bit unsigned integer */ +typedef signed short blt_int16s; /**< 16-bit signed integer */ +typedef unsigned int blt_int32u; /**< 32-bit unsigned integer */ +typedef signed int blt_int32s; /**< 32-bit signed integer */ + + +#endif /* TYPES_H */ +/*********************************** end of types.h ************************************/ diff --git a/Target/Source/ARMCM3_STM32F2/uart.c b/Target/Source/ARMCM3_STM32F2/uart.c new file mode 100644 index 00000000..93749ba6 --- /dev/null +++ b/Target/Source/ARMCM3_STM32F2/uart.c @@ -0,0 +1,249 @@ +/************************************************************************************//** +* \file Source\ARMCM3_STM32F2\uart.c +* \brief Bootloader UART communication interface source file. +* \ingroup Target_ARMCM3_STM32F2 +* \internal +*---------------------------------------------------------------------------------------- +* C O P Y R I G H T +*---------------------------------------------------------------------------------------- +* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved +* +*---------------------------------------------------------------------------------------- +* L I C E N S E +*---------------------------------------------------------------------------------------- +* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or +* modify it under the terms of the GNU General Public License as published by the Free +* Software Foundation, either version 3 of the License, or (at your option) any later +* version. +* +* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You have received a copy of the GNU General Public License along with OpenBLT. It +* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. +* +* \endinternal +****************************************************************************************/ + +/**************************************************************************************** +* Include files +****************************************************************************************/ +#include "boot.h" /* bootloader generic header */ +#include "stm32f2xx.h" /* STM32 registers and drivers */ + + +#if (BOOT_COM_UART_ENABLE > 0) +/**************************************************************************************** +* Macro definitions +****************************************************************************************/ +/** \brief Timeout time for the reception of a CTO packet. The timer is started upon + * reception of the first packet byte. + */ +#define UART_CTO_RX_PACKET_TIMEOUT_MS (100u) +/* map the configured UART channel index to the STM32's USART peripheral */ +#if (BOOT_COM_UART_CHANNEL_INDEX == 0) +/** \brief Set UART base address to USART1. */ +#define USART_CHANNEL USART1 +#elif (BOOT_COM_UART_CHANNEL_INDEX == 1) +/** \brief Set UART base address to USART2. */ +#define USART_CHANNEL USART2 +#elif (BOOT_COM_UART_CHANNEL_INDEX == 2) +/** \brief Set UART base address to USART3. */ +#define USART_CHANNEL USART3 +#elif (BOOT_COM_UART_CHANNEL_INDEX == 3) +/** \brief Set UART base address to USART4. */ +#define USART_CHANNEL USART4 +#elif (BOOT_COM_UART_CHANNEL_INDEX == 4) +/** \brief Set UART base address to USART5. */ +#define USART_CHANNEL USART5 +#elif (BOOT_COM_UART_CHANNEL_INDEX == 5) +/** \brief Set UART base address to USART6. */ +#define USART_CHANNEL USART6 +#endif + + +/**************************************************************************************** +* Function prototypes +****************************************************************************************/ +static blt_bool UartReceiveByte(blt_int8u *data); +static blt_bool UartTransmitByte(blt_int8u data); + + +/************************************************************************************//** +** \brief Initializes the UART communication interface. +** \return none. +** +****************************************************************************************/ +void UartInit(void) +{ + USART_InitTypeDef USART_InitStructure; + + /* the current implementation supports USART1 - USART6. throw an assertion error in + * case a different UART channel is configured. + */ + ASSERT_CT((BOOT_COM_UART_CHANNEL_INDEX == 0) || + (BOOT_COM_UART_CHANNEL_INDEX == 1) || + (BOOT_COM_UART_CHANNEL_INDEX == 2) || + (BOOT_COM_UART_CHANNEL_INDEX == 3) || + (BOOT_COM_UART_CHANNEL_INDEX == 4) || + (BOOT_COM_UART_CHANNEL_INDEX == 5)); + /* initialize the uart for the specified communication speed */ + USART_InitStructure.USART_BaudRate = BOOT_COM_UART_BAUDRATE; + USART_InitStructure.USART_WordLength = USART_WordLength_8b; + USART_InitStructure.USART_StopBits = USART_StopBits_1; + USART_InitStructure.USART_Parity = USART_Parity_No; + USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None; + USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; + USART_Init(USART_CHANNEL, &USART_InitStructure); + /* enable UART */ + USART_Cmd(USART_CHANNEL, ENABLE); +} /*** end of UartInit ***/ + + +/************************************************************************************//** +** \brief Transmits a packet formatted for the communication interface. +** \param data Pointer to byte array with data that it to be transmitted. +** \param len Number of bytes that are to be transmitted. +** \return none. +** +****************************************************************************************/ +void UartTransmitPacket(blt_int8u *data, blt_int8u len) +{ + blt_int16u data_index; + blt_bool result; + + /* verify validity of the len-paramenter */ + ASSERT_RT(len <= BOOT_COM_UART_TX_MAX_DATA); + + /* first transmit the length of the packet */ + result = UartTransmitByte(len); + ASSERT_RT(result == BLT_TRUE); + + /* transmit all the packet bytes one-by-one */ + for (data_index = 0; data_index < len; data_index++) + { + /* keep the watchdog happy */ + CopService(); + /* write byte */ + result = UartTransmitByte(data[data_index]); + ASSERT_RT(result == BLT_TRUE); + } +} /*** end of UartTransmitPacket ***/ + + +/************************************************************************************//** +** \brief Receives a communication interface packet if one is present. +** \param data Pointer to byte array where the data is to be stored. +** \return BLT_TRUE if a packet was received, BLT_FALSE otherwise. +** +****************************************************************************************/ +blt_bool UartReceivePacket(blt_int8u *data) +{ + static blt_int8u xcpCtoReqPacket[BOOT_COM_UART_RX_MAX_DATA+1]; /* one extra for length */ + static blt_int8u xcpCtoRxLength; + static blt_bool xcpCtoRxInProgress = BLT_FALSE; + static blt_int32u xcpCtoRxStartTime = 0; + + /* start of cto packet received? */ + if (xcpCtoRxInProgress == BLT_FALSE) + { + /* store the message length when received */ + if (UartReceiveByte(&xcpCtoReqPacket[0]) == BLT_TRUE) + { + if (xcpCtoReqPacket[0] > 0) + { + /* store the start time */ + xcpCtoRxStartTime = TimerGet(); + /* reset packet data count */ + xcpCtoRxLength = 0; + /* indicate that a cto packet is being received */ + xcpCtoRxInProgress = BLT_TRUE; + } + } + } + else + { + /* store the next packet byte */ + if (UartReceiveByte(&xcpCtoReqPacket[xcpCtoRxLength+1]) == BLT_TRUE) + { + /* increment the packet data count */ + xcpCtoRxLength++; + + /* check to see if the entire packet was received */ + if (xcpCtoRxLength == xcpCtoReqPacket[0]) + { + /* copy the packet data */ + CpuMemCopy((blt_int32u)data, (blt_int32u)&xcpCtoReqPacket[1], xcpCtoRxLength); + /* done with cto packet reception */ + xcpCtoRxInProgress = BLT_FALSE; + /* packet reception complete */ + return BLT_TRUE; + } + } + else + { + /* check packet reception timeout */ + if (TimerGet() > (xcpCtoRxStartTime + UART_CTO_RX_PACKET_TIMEOUT_MS)) + { + /* cancel cto packet reception due to timeout. note that that automaticaly + * discards the already received packet bytes, allowing the host to retry. + */ + xcpCtoRxInProgress = BLT_FALSE; + } + } + } + /* packet reception not yet complete */ + return BLT_FALSE; +} /*** end of UartReceivePacket ***/ + + +/************************************************************************************//** +** \brief Receives a communication interface byte if one is present. +** \param data Pointer to byte where the data is to be stored. +** \return BLT_TRUE if a byte was received, BLT_FALSE otherwise. +** +****************************************************************************************/ +static blt_bool UartReceiveByte(blt_int8u *data) +{ + /* check flag to see if a byte was received */ + if (USART_GetFlagStatus(USART_CHANNEL, USART_FLAG_RXNE) == SET) + { + /* retrieve and store the newly received byte */ + *data = (blt_int8u)USART_ReceiveData(USART_CHANNEL); + /* all done */ + return BLT_TRUE; + } + /* still here to no new byte received */ + return BLT_FALSE; +} /*** end of UartReceiveByte ***/ + + +/************************************************************************************//** +** \brief Transmits a communication interface byte. +** \param data Value of byte that is to be transmitted. +** \return BLT_TRUE if the byte was transmitted, BLT_FALSE otherwise. +** +****************************************************************************************/ +static blt_bool UartTransmitByte(blt_int8u data) +{ + /* check if tx holding register can accept new data */ + if (USART_GetFlagStatus(USART_CHANNEL, USART_FLAG_TXE) == RESET) + { + /* UART not ready. should not happen */ + return BLT_FALSE; + } + /* write byte to transmit holding register */ + USART_SendData(USART_CHANNEL, data); + /* wait for tx holding register to be empty */ + while (USART_GetFlagStatus(USART_CHANNEL, USART_FLAG_TXE) == RESET) + { + ; + } + /* byte transmitted */ + return BLT_TRUE; +} /*** end of UartTransmitByte ***/ +#endif /* BOOT_COM_UART_ENABLE > 0 */ + + +/*********************************** end of uart.c *************************************/ diff --git a/Target/Source/file.c b/Target/Source/file.c index 8086b1d1..86ac7874 100644 --- a/Target/Source/file.c +++ b/Target/Source/file.c @@ -20,7 +20,7 @@ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * -* You have received a copy of the GNU General Public License along with OpenBLT. It +* You have received a copy of the GNU General Public License along with OpenBLT. It * should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy. * * \endinternal @@ -469,7 +469,7 @@ void FileTask(void) tSrecLineType FileSrecGetLineType(const blt_char *line) { /* check if the line starts with the 'S' character, followed by a digit */ - if ((toupper(line[0]) != 'S') || (isdigit(line[1]) == 0)) + if ((toupper((blt_int16s)(line[0])) != 'S') || (isdigit((blt_int16s)(line[1])) == 0)) { /* not a valid S-Record line type */ return LINE_TYPE_UNSUPPORTED; @@ -689,7 +689,7 @@ static blt_char FileLibByteNibbleToChar(blt_int8u nibble) } else { - c = toupper(c); + c = toupper((blt_int16s)c); } /* return the character */ return c; @@ -777,7 +777,7 @@ static blt_int8u FileLibHexStringToByte(const blt_char *hexstring) for (counter=0; counter < 2; counter++) { /* read out the character */ - c = toupper(hexstring[counter]); + c = toupper((blt_int16s)(hexstring[counter])); /* check that the character is 0..9 or A..F */ if ((c < '0') || (c > 'F') || ((c > '9') && (c < 'A'))) {