diff --git a/IDE/MDK-ARM/LPC43xx/startup_LPC43xx.s b/IDE/MDK-ARM/LPC43xx/startup_LPC43xx.s
deleted file mode 100644
index 6fdb7ab70..000000000
--- a/IDE/MDK-ARM/LPC43xx/startup_LPC43xx.s
+++ /dev/null
@@ -1,338 +0,0 @@
-;/***********************************************************************
-; * $Id: startup_LPC43xx.s 6473 2011-02-16 17:40:54Z nxp27266 $
-; *
-; * Project: LPC43xx CMSIS Package
-; *
-; * Description: Cortex-M3 Core Device Startup File for the NXP LPC43xx
-; * Device Series.
-; *
-; * Copyright(C) 2011, NXP Semiconductor
-; * All rights reserved.
-; *
-; * modified by KEIL
-; ***********************************************************************
-; * Software that is described herein is for illustrative purposes only
-; * which provides customers with programming information regarding the
-; * products. This software is supplied "AS IS" without any warranties.
-; * NXP Semiconductors assumes no responsibility or liability for the
-; * use of the software, conveys no license or title under any patent,
-; * copyright, or mask work right to the product. NXP Semiconductors
-; * reserves the right to make changes in the software without
-; * notification. NXP Semiconductors also make no representation or
-; * warranty that such application will be suitable for the specified
-; * use without further testing or modification.
-; **********************************************************************/
-
-; Stack Configuration
-; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Stack_Size EQU 0x00003000
-
- AREA STACK, NOINIT, READWRITE, ALIGN=3
-Stack_Mem SPACE Stack_Size
-__initial_sp
-
-
-; Heap Configuration
-; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Heap_Size EQU 0x0000a000
-
- AREA HEAP, NOINIT, READWRITE, ALIGN=3
-__heap_base
-Heap_Mem SPACE Heap_Size
-__heap_limit
-
- PRESERVE8
- THUMB
-
-; Vector Table Mapped to Address 0 at Reset
-
- AREA RESET, DATA, READONLY
- EXPORT __Vectors
-
-Sign_Value EQU 0x5A5A5A5A
-
-__Vectors DCD __initial_sp ; 0 Top of Stack
- DCD Reset_Handler ; 1 Reset Handler
- DCD NMI_Handler ; 2 NMI Handler
- DCD HardFault_Handler ; 3 Hard Fault Handler
- DCD MemManage_Handler ; 4 MPU Fault Handler
- DCD BusFault_Handler ; 5 Bus Fault Handler
- DCD UsageFault_Handler ; 6 Usage Fault Handler
- DCD Sign_Value ; 7 Reserved
- DCD 0 ; 8 Reserved
- DCD 0 ; 9 Reserved
- DCD 0 ; 10 Reserved
- DCD SVC_Handler ; 11 SVCall Handler
- DCD DebugMon_Handler ; 12 Debug Monitor Handler
- DCD 0 ; 13 Reserved
- DCD PendSV_Handler ; 14 PendSV Handler
- DCD SysTick_Handler ; 15 SysTick Handler
-
- ; External Interrupts
- DCD DAC_IRQHandler ; 16 D/A Converter
- DCD M0CORE_IRQHandler ; 17 M0 Core
- DCD DMA_IRQHandler ; 18 General Purpose DMA
- DCD EZH_IRQHandler ; 19 EZH/EDM
- DCD FLASH_EEPROM_IRQHandler ; 20 Reserved for Typhoon
- DCD ETH_IRQHandler ; 21 Ethernet
- DCD SDIO_IRQHandler ; 22 SD/MMC
- DCD LCD_IRQHandler ; 23 LCD
- DCD USB0_IRQHandler ; 24 USB0
- DCD USB1_IRQHandler ; 25 USB1
- DCD SCT_IRQHandler ; 26 State Configurable Timer
- DCD RIT_IRQHandler ; 27 Repetitive Interrupt Timer
- DCD TIMER0_IRQHandler ; 28 Timer0
- DCD TIMER1_IRQHandler ; 29 Timer1
- DCD TIMER2_IRQHandler ; 30 Timer2
- DCD TIMER3_IRQHandler ; 31 Timer3
- DCD MCPWM_IRQHandler ; 32 Motor Control PWM
- DCD ADC0_IRQHandler ; 33 A/D Converter 0
- DCD I2C0_IRQHandler ; 34 I2C0
- DCD I2C1_IRQHandler ; 35 I2C1
- DCD SPI_IRQHandler ; 36 SPI
- DCD ADC1_IRQHandler ; 37 A/D Converter 1
- DCD SSP0_IRQHandler ; 38 SSP0
- DCD SSP1_IRQHandler ; 39 SSP1
- DCD UART0_IRQHandler ; 40 UART0
- DCD UART1_IRQHandler ; 41 UART1
- DCD UART2_IRQHandler ; 42 UART2
- DCD UART3_IRQHandler ; 43 UART3
- DCD I2S0_IRQHandler ; 44 I2S0
- DCD I2S1_IRQHandler ; 45 I2S1
- DCD SPIFI_IRQHandler ; 46 SPI Flash Interface
- DCD SGPIO_IRQHandler ; 47 SGPIO
- DCD GPIO0_IRQHandler ; 48 GPIO0
- DCD GPIO1_IRQHandler ; 49 GPIO1
- DCD GPIO2_IRQHandler ; 50 GPIO2
- DCD GPIO3_IRQHandler ; 51 GPIO3
- DCD GPIO4_IRQHandler ; 52 GPIO4
- DCD GPIO5_IRQHandler ; 53 GPIO5
- DCD GPIO6_IRQHandler ; 54 GPIO6
- DCD GPIO7_IRQHandler ; 55 GPIO7
- DCD GINT0_IRQHandler ; 56 GINT0
- DCD GINT1_IRQHandler ; 57 GINT1
- DCD EVRT_IRQHandler ; 58 Event Router
- DCD CAN1_IRQHandler ; 59 C_CAN1
- DCD 0 ; 60 Reserved
- DCD VADC_IRQHandler ; 61 VADC
- DCD ATIMER_IRQHandler ; 62 ATIMER
- DCD RTC_IRQHandler ; 63 RTC
- DCD 0 ; 64 Reserved
- DCD WDT_IRQHandler ; 65 WDT
- DCD M0s_IRQHandler ; 66 M0s
- DCD CAN0_IRQHandler ; 67 C_CAN0
- DCD QEI_IRQHandler ; 68 QEI
-
-
-;CRP address at offset 0x2FC relative to the BOOT Bank address
- IF :LNOT::DEF:NO_CRP
- SPACE (0x2FC - (. - __Vectors))
-; EXPORT CRP_Key
-CRP_Key DCD 0xFFFFFFFF
-; 0xFFFFFFFF => CRP Disabled
-; 0x12345678 => CRP Level 1
-; 0x87654321 => CRP Level 2
-; 0x43218765 => CRP Level 3 (ARE YOU SURE?)
-; 0x4E697370 => NO ISP (ARE YOU SURE?)
- ENDIF
-
- AREA |.text|, CODE, READONLY
-
-; Reset Handler
-
-Reset_Handler PROC
- EXPORT Reset_Handler [WEAK]
- IMPORT SystemInit
- IMPORT __main
- LDR R0, =SystemInit
- BLX R0
- LDR R0, =__main
- BX R0
- ENDP
-
-; Dummy Exception Handlers (infinite loops which can be modified)
-
-NMI_Handler PROC
- EXPORT NMI_Handler [WEAK]
- B .
- ENDP
-HardFault_Handler\
- PROC
- EXPORT HardFault_Handler [WEAK]
- B .
- ENDP
-MemManage_Handler\
- PROC
- EXPORT MemManage_Handler [WEAK]
- B .
- ENDP
-BusFault_Handler\
- PROC
- EXPORT BusFault_Handler [WEAK]
- B .
- ENDP
-UsageFault_Handler\
- PROC
- EXPORT UsageFault_Handler [WEAK]
- B .
- ENDP
-SVC_Handler PROC
- EXPORT SVC_Handler [WEAK]
- B .
- ENDP
-DebugMon_Handler\
- PROC
- EXPORT DebugMon_Handler [WEAK]
- B .
- ENDP
-PendSV_Handler PROC
- EXPORT PendSV_Handler [WEAK]
- B .
- ENDP
-SysTick_Handler PROC
- EXPORT SysTick_Handler [WEAK]
- B .
- ENDP
-
-Default_Handler PROC
-
- EXPORT DAC_IRQHandler [WEAK]
- EXPORT M0CORE_IRQHandler [WEAK]
- EXPORT DMA_IRQHandler [WEAK]
- EXPORT EZH_IRQHandler [WEAK]
- EXPORT FLASH_EEPROM_IRQHandler [WEAK]
- EXPORT ETH_IRQHandler [WEAK]
- EXPORT SDIO_IRQHandler [WEAK]
- EXPORT LCD_IRQHandler [WEAK]
- EXPORT USB0_IRQHandler [WEAK]
- EXPORT USB1_IRQHandler [WEAK]
- EXPORT SCT_IRQHandler [WEAK]
- EXPORT RIT_IRQHandler [WEAK]
- EXPORT TIMER0_IRQHandler [WEAK]
- EXPORT TIMER1_IRQHandler [WEAK]
- EXPORT TIMER2_IRQHandler [WEAK]
- EXPORT TIMER3_IRQHandler [WEAK]
- EXPORT MCPWM_IRQHandler [WEAK]
- EXPORT ADC0_IRQHandler [WEAK]
- EXPORT I2C0_IRQHandler [WEAK]
- EXPORT I2C1_IRQHandler [WEAK]
- EXPORT SPI_IRQHandler [WEAK]
- EXPORT ADC1_IRQHandler [WEAK]
- EXPORT SSP0_IRQHandler [WEAK]
- EXPORT SSP1_IRQHandler [WEAK]
- EXPORT UART0_IRQHandler [WEAK]
- EXPORT UART1_IRQHandler [WEAK]
- EXPORT UART2_IRQHandler [WEAK]
- EXPORT UART3_IRQHandler [WEAK]
- EXPORT I2S0_IRQHandler [WEAK]
- EXPORT I2S1_IRQHandler [WEAK]
- EXPORT SPIFI_IRQHandler [WEAK]
- EXPORT SGPIO_IRQHandler [WEAK]
- EXPORT GPIO0_IRQHandler [WEAK]
- EXPORT GPIO1_IRQHandler [WEAK]
- EXPORT GPIO2_IRQHandler [WEAK]
- EXPORT GPIO3_IRQHandler [WEAK]
- EXPORT GPIO4_IRQHandler [WEAK]
- EXPORT GPIO5_IRQHandler [WEAK]
- EXPORT GPIO6_IRQHandler [WEAK]
- EXPORT GPIO7_IRQHandler [WEAK]
- EXPORT GINT0_IRQHandler [WEAK]
- EXPORT GINT1_IRQHandler [WEAK]
- EXPORT EVRT_IRQHandler [WEAK]
- EXPORT CAN1_IRQHandler [WEAK]
- EXPORT VADC_IRQHandler [WEAK]
- EXPORT ATIMER_IRQHandler [WEAK]
- EXPORT RTC_IRQHandler [WEAK]
- EXPORT WDT_IRQHandler [WEAK]
- EXPORT M0s_IRQHandler [WEAK]
- EXPORT CAN0_IRQHandler [WEAK]
- EXPORT QEI_IRQHandler [WEAK]
-
-DAC_IRQHandler
-M0CORE_IRQHandler
-DMA_IRQHandler
-EZH_IRQHandler
-FLASH_EEPROM_IRQHandler
-ETH_IRQHandler
-SDIO_IRQHandler
-LCD_IRQHandler
-USB0_IRQHandler
-USB1_IRQHandler
-SCT_IRQHandler
-RIT_IRQHandler
-TIMER0_IRQHandler
-TIMER1_IRQHandler
-TIMER2_IRQHandler
-TIMER3_IRQHandler
-MCPWM_IRQHandler
-ADC0_IRQHandler
-I2C0_IRQHandler
-I2C1_IRQHandler
-SPI_IRQHandler
-ADC1_IRQHandler
-SSP0_IRQHandler
-SSP1_IRQHandler
-UART0_IRQHandler
-UART1_IRQHandler
-UART2_IRQHandler
-UART3_IRQHandler
-I2S0_IRQHandler
-I2S1_IRQHandler
-SPIFI_IRQHandler
-SGPIO_IRQHandler
-GPIO0_IRQHandler
-GPIO1_IRQHandler
-GPIO2_IRQHandler
-GPIO3_IRQHandler
-GPIO4_IRQHandler
-GPIO5_IRQHandler
-GPIO6_IRQHandler
-GPIO7_IRQHandler
-GINT0_IRQHandler
-GINT1_IRQHandler
-EVRT_IRQHandler
-CAN1_IRQHandler
-VADC_IRQHandler
-ATIMER_IRQHandler
-RTC_IRQHandler
-WDT_IRQHandler
-M0s_IRQHandler
-CAN0_IRQHandler
-QEI_IRQHandler
-
- B .
-
- ENDP
-
- ALIGN
-
-; User Initial Stack & Heap
-
- IF :DEF:__MICROLIB
-
- EXPORT __initial_sp
- EXPORT __heap_base
- EXPORT __heap_limit
-
- ELSE
-
- IMPORT __use_two_region_memory
- EXPORT __user_initial_stackheap
-__user_initial_stackheap
-
- LDR R0, = Heap_Mem
- LDR R1, =(Stack_Mem + Stack_Size)
- LDR R2, = (Heap_Mem + Heap_Size)
- LDR R3, = Stack_Mem
- BX LR
-
- ALIGN
-
- ENDIF
-
-
- END
diff --git a/IDE/MDK-ARM/MDK-ARM/config/Dbg_Flash.ini b/IDE/MDK-ARM/MDK-ARM/config/Dbg_Flash.ini
deleted file mode 100644
index 5f72e1102..000000000
--- a/IDE/MDK-ARM/MDK-ARM/config/Dbg_Flash.ini
+++ /dev/null
@@ -1,22 +0,0 @@
-/******************************************************************************/
-/* Dbg_Flash.ini Initialization File for Debugging from Internal */
-/* Flash for NXP LPC18xx/LPC43xx */
-/******************************************************************************/
-/* This file is part of the uVision/ARM development tools. */
-/* Copyright (c) 2005-2012 Keil Software. All rights reserved. */
-/* This software may only be used under the terms of a valid, current, */
-/* end user licence from KEIL for a compatible version of KEIL software */
-/* development tools. Nothing else gives you the right to use this software. */
-/******************************************************************************/
-
-FUNC void Per_Reset (void) {
- // Reset peripherals: LCD, USB0, USB1, DMA, SDIO, ETHERNET
- _WDWORD(0x40053100, 0x005F0000); // Issue reset
- _sleep_(1);
-}
-
-Per_Reset(); // Reset some peripherals
-
-KILL BUTTON * // Kill all buttons
-DEFINE BUTTON "Reset Peripherals", "Per_Reset()" // Create peripheral reset button
-
diff --git a/IDE/MDK-ARM/MDK-ARM/config/File_Config.c b/IDE/MDK-ARM/MDK-ARM/config/File_Config.c
deleted file mode 100644
index 9a162ba88..000000000
--- a/IDE/MDK-ARM/MDK-ARM/config/File_Config.c
+++ /dev/null
@@ -1,401 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - FlashFS
- *----------------------------------------------------------------------------
- * Name: FILE_CONFIG.C
- * Purpose: Configuration of RL FlashFS by user
- * Rev.: V4.70
- *----------------------------------------------------------------------------
- * This code is part of the RealView Run-Time Library.
- * Copyright (c) 2004-2013 KEIL - An ARM Company. All rights reserved.
- *---------------------------------------------------------------------------*/
-
-#include
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// File System
-// ==============
-// Define File System global parameters
-
-// Number of open files <4-16>
-// Define number of files that can be
-// opened at the same time.
-// Default: 8
-#define N_FILES 6
-
-// FAT Name Cache Size <0-1000000>
-// Define number of cached FAT file or directory names.
-// 48 bytes of RAM is required for each cached name.
-#define FAT_NAME_CACNT 0
-
-// Relocate FAT Name Cache Buffer
-// Locate Cache Buffer at a specific address.
-#define FAT_NAME_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define the Cache buffer base address.
-#define FAT_NAME_CADR 0x60000000
-
-//
-// CPU Clock Frequency [Hz]<0-1000000000>
-// Define the CPU Clock frequency used for
-// flash programming and erasing.
-#define CPU_CLK 180000000
-
-//
-// Flash Drive
-// ==============
-// Enable Embedded Flash Drive [F:]
-#define FL0_EN 0
-
-// Base address <0x0-0xFFFFF000:0x1000>
-// Define the target device Base address
-// Default: 0x80000000
-#define FL0_BADR 0x80000000
-
-// Device Size <0x4000-0xFFFFF000:0x4000>
-// Define the size of Flash device in bytes
-// Default: 0x100000 (1MB)
-#define FL0_SIZE 0x0200000
-
-// Content of Erased Memory <0=>0x00 <0xFF=>0xFF
-// Define the initial value for erased Flash data
-// Default: 0xFF
-#define FL0_INITV 0xFF
-
-// Device Description file
-// Specify a file name with a relative path
-// Default: FS_FlashDev.h
-#define FL0_HFILE "FS_FlashDev.h"
-
-// Default Drive [F:]
-// Used when Drive letter not specified
-#define FL0_DEF 1
-
-//
-// SPI Flash Drive
-// ==================
-// Enable SPI Flash Drive [S:]
-#define SF0_EN 0
-
-// Device Size <0x10000-0xFFFFF000:0x8000>
-// Define the size of SPI Flash device in bytes
-// Default: 0x100000 (1MB)
-#define SF0_SIZE 0x0200000
-
-// Content of Erased Memory <0=>0x00 <0xFF=>0xFF
-// Define the initial value for erased Flash data
-// Default: 0xFF
-#define SF0_INITV 0xFF
-
-// Device Description file
-// Specify a file name with a relative path
-// Default: FS_SPI_FlashDev.h
-#define SF0_HFILE "FS_SPI_FlashDev.h"
-
-// Default Drive [S:]
-// Used when Drive letter not specified
-#define SF0_DEF 0
-
-//
-// RAM Drive
-// ============
-// Enable Embedded RAM Drive [R:]
-#define RAM0_EN 0
-
-// Device Size <0x4000-0xFFFFF000:0x4000>
-// Define the size of RAM device in bytes
-// Default: 0x40000
-#define RAM0_SIZE 0x004000
-
-// Number of Sectors <8=>8 <16=>16 <32=>32 <64=>64 <128=>128
-// Define number of virtual sectors for RAM device
-// Default: 32
-#define RAM0_NSECT 64
-
-// Relocate Device Buffer
-// Locate RAM Device Buffer at a specific address.
-// If not enabled, the linker selects base address.
-#define RAM0_RELOC 1
-
-// Base address <0x0-0xFFFFF000:0x1000>
-// Define the target device Base address.
-// Default: 0x81000000
-#define RAM0_BADR 0x81010000
-
-//
-// Default Drive [R:]
-// Used when Drive letter not specified
-#define RAM0_DEF 0
-
-//
-// Memory Card Drive 0
-// ======================
-// Enable Memory Card Drive [M0:]
-#define MC0_EN 1
-
-// Bus Mode <0=>SD-Native <1=>SPI
-// Define Memory Card bus interface mode.
-// SD-Native mode needs MCI peripheral.
-// SPI mode uses SD Card in SPI mode.
-#define MC0_SPI 0
-
-// File System Cache <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Define System Cache buffer size for file IO.
-// Increase this number for faster r/w access.
-// Default: 4 kB
-#define MC0_CASZ 4
-
-// Relocate Cache Buffer
-// Locate Cache Buffer at a specific address.
-// Some devices like NXP LPC23xx require a Cache buffer
-// for DMA transfer located at specific address.
-#define MC0_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define the Cache buffer base address.
-// For LPC23xx/24xx devices this is USB RAM
-// starting at 0x7FD00000.
-#define MC0_CADR 0x7FD00000
-
-//
-// FAT Journal
-// Enable FAT Journal in order to guarantee
-// fail-safe FAT file system operation.
-#define MC0_FSJ 0
-
-// Default Drive [M0:]
-// Used when Drive letter not specified
-#define MC0_DEF 1
-
-//
-// Memory Card Drive 1
-// ======================
-// Enable Memory Card Drive [M1:]
-#define MC1_EN 0
-
-// Bus Mode <0=>SD-Native <1=>SPI
-// Define Memory Card bus interface mode.
-// SD-Native mode needs MCI peripheral.
-// SPI mode uses SD Card in SPI mode.
-#define MC1_SPI 1
-
-// File System Cache <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Define System Cache buffer size for file IO.
-// Increase this number for faster r/w access.
-// Default: 4 kB
-#define MC1_CASZ 0
-
-// Relocate Cache Buffer
-// Locate Cache Buffer at a specific address.
-// Some devices like NXP LPC23xx require a Cache buffer
-// for DMA transfer located at specific address.
-#define MC1_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define the Cache buffer base address.
-// For LPC23xx/24xx devices this is USB RAM
-// starting at 0x7FD00000.
-#define MC1_CADR 0x7FD00000
-
-//
-// FAT Journal
-// Enable FAT Journal in order to guarantee
-// fail-safe FAT file system operation.
-#define MC1_FSJ 0
-
-// Default Drive [M1:]
-// Used when Drive letter not specified
-#define MC1_DEF 0
-
-//
-// USB Flash Drive 0
-// ====================
-// Enable USB Flash Drive [U0:]
-#define USB0_EN 0
-
-// File System Cache <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Define System Cache buffer size for file IO.
-// Increase this number for faster r/w access.
-// Default: 4 kB
-#define USB0_CASZ 8
-
-// FAT Journal
-// Enable FAT Journal in order to guarantee
-// fail-safe FAT file system operation.
-#define USB0_FSJ 0
-
-// Default Drive [U0:]
-// Used when Drive letter not specified
-#define USB0_DEF 0
-
-//
-// USB Flash Drive 1
-// ====================
-// Enable USB Flash Drive [U1:]
-#define USB1_EN 0
-
-// File System Cache <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Define System Cache buffer size for file IO.
-// Increase this number for faster r/w access.
-// Default: 4 kB
-#define USB1_CASZ 8
-
-// FAT Journal
-// Enable FAT Journal in order to guarantee
-// fail-safe FAT file system operation.
-#define USB1_FSJ 0
-
-// Default Drive [U1:]
-// Used when Drive letter not specified
-#define USB1_DEF 0
-
-//
-// NAND Flash Drive 0
-// ===================
-// Enable NAND Flash Drive [N0:]
-#define NAND0_EN 0
-
-// Page size <528=> 512 + 16 bytes
-// <2112=>2048 + 64 bytes
-// <4224=>4096 + 128 bytes
-// <8448=>8192 + 256 bytes
-// Define program Page size in bytes (User + Spare area).
-#define NAND0_PGSZ 2112
-
-// Block Size <8=>8 pages <16=>16 pages <32=>32 pages
-// <64=>64 pages <128=>128 pages <256=>256 pages
-// Define number of pages in a block.
-#define NAND0_PGCNT 64
-
-// Device Size [blocks] <512-32768>
-// Define number of blocks in NAND Flash device.
-#define NAND0_BLCNT 4096
-
-// Page Caching <0=>OFF <1=>1 page <2=>2 pages <4=>4 pages
-// <8=>8 pages <16=>16 pages <32=>32 pages
-// Define number of cached Pages.
-// Default: 4 pages
-#define NAND0_CAPG 2
-
-// Block Indexing <0=>OFF <1=>1 block <2=>2 blocks <4=>4 blocks
-// <8=>8 blocks <16=>16 blocks <32=>32 blocks
-// <64=>64 blocks <128=>128 blocks <256=>256 blocks
-// Define number of indexed Flash Blocks.
-// Increase this number for better performance.
-// Default: 16 blocks
-#define NAND0_CABL 16
-
-// Software ECC <0=>None <1=>Hamming (SLC)
-// Enable software ECC calculation only,
-// if not supported by hardware.
-#define NAND0_SWECC 1
-
-// File System Cache <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Define System Cache buffer size for file IO.
-// Increase this number for faster r/w access.
-// Default: 4 kB
-#define NAND0_CASZ 4
-
-// Relocate Cache Buffers
-// Use this option to locate Cache buffers
-// at specific address in RAM or SDRAM.
-#define NAND0_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define base address for Cache Buffers.
-#define NAND0_CADR 0x80000000
-
-//
-// FAT Journal
-// Enable FAT Journal in order to guarantee
-// fail-safe FAT file system operation.
-#define NAND0_FSJ 0
-
-// Default Drive [N0:]
-// Used when Drive letter not specified
-#define NAND0_DEF 0
-
-//
-// NAND Flash Drive 1
-// ===================
-// Enable NAND Flash Drive [N1:]
-#define NAND1_EN 0
-
-// Page size <528=> 512 + 16 bytes
-// <2112=>2048 + 64 bytes
-// <4224=>4096 + 128 bytes
-// <8448=>8192 + 256 bytes
-// Define program Page size in bytes (User + Spare area).
-#define NAND1_PGSZ 2112
-
-// Block Size <8=>8 pages <16=>16 pages <32=>32 pages
-// <64=>64 pages <128=>128 pages <256=>256 pages
-// Define number of pages in a block.
-#define NAND1_PGCNT 32
-
-// Device Size [blocks] <512-32768>
-// Define number of blocks in NAND Flash device.
-#define NAND1_BLCNT 512
-
-// Page Caching <0=>OFF <1=>1 page <2=>2 pages <4=>4 pages
-// <8=>8 pages <16=>16 pages <32=>32 pages
-// Define number of cached Pages.
-// Default: 4 pages
-#define NAND1_CAPG 4
-
-// Block Indexing <0=>OFF <1=>1 block <2=>2 blocks <4=>4 blocks
-// <8=>8 blocks <16=>16 blocks <32=>32 blocks
-// <64=>64 blocks <128=>128 blocks <256=>256 blocks
-// Define number of indexed Flash Blocks.
-// Increase this number for better performance.
-// Default: 16 blocks
-#define NAND1_CABL 16
-
-// Software ECC <0=>None <1=>Hamming (SLC)
-// Enable software ECC calculation only,
-// if not supported by hardware.
-#define NAND1_SWECC 0
-
-// File System Cache <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Define System Cache buffer size for file IO.
-// Increase this number for faster r/w access.
-// Default: 4 kB
-#define NAND1_CASZ 4
-
-// Relocate Cache Buffers
-// Use this option to locate Cache buffers
-// at specific address in RAM or SDRAM.
-#define NAND1_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define base address for Cache Buffers.
-#define NAND1_CADR 0x80000000
-
-//
-// FAT Journal
-// Enable FAT Journal in order to guarantee
-// fail-safe FAT file system operation.
-#define NAND1_FSJ 0
-
-// Default Drive [N1:]
-// Used when Drive letter not specified
-#define NAND1_DEF 0
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-#ifndef __NO_FILE_LIB_C
-#include
-#endif
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK-ARM/MDK-ARM/config/Net_Config.c b/IDE/MDK-ARM/MDK-ARM/config/Net_Config.c
deleted file mode 100644
index dc0922308..000000000
--- a/IDE/MDK-ARM/MDK-ARM/config/Net_Config.c
+++ /dev/null
@@ -1,892 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - TCPnet
- *----------------------------------------------------------------------------
- * Name: NET_CONFIG.C
- * Purpose: Configuration of RL TCPnet by user.
- * Rev.: V4.60
- *----------------------------------------------------------------------------
- * This code is part of the RealView Run-Time Library.
- * Copyright (c) 2004-2012 KEIL - An ARM Company. All rights reserved.
- *---------------------------------------------------------------------------*/
-
-#include
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// System Definitions
-// =====================
-// Global TCPnet System definitions
-// Local Host Name
-// This is the name under which embedded host can be
-// accessed on a local area network.
-// Default: "mcb2300"
-#define LHOST_NAME "mcb2300"
-
-// Memory Pool size <1500-64000:4><#/4>
-// This is the size of a memory pool in bytes. Buffers for
-// TCPnet packets are allocated from this memory pool.
-// Default: 8000 bytes
-#define MEM_SIZE 4000
-
-// Tick Timer interval <10=> 10 ms <20=> 20 ms <25=> 25 ms
-// <40=> 40 ms <50=> 50 ms <100=> 100 ms
-// <200=> 200 ms
-// System Tick Timer interval for software timers
-// Default: 100 ms
-#define TICK_INTERVAL 10
-
-//
-// Ethernet Network Interface
-// =============================
-// Enable or disable Ethernet Network Interface
-#define ETH_ENABLE 1
-
-// MAC Address
-// ==============
-// Local Ethernet MAC Address
-// Value FF:FF:FF:FF:FF:FF is not allowed.
-// It is an ethernet Broadcast MAC address.
-// Address byte 1 <0x00-0xff:2>
-// LSB is an ethernet Multicast bit.
-// Must be 0 for local MAC address.
-// Default: 0x00
-#define _MAC1 0x30
-
-// Address byte 2 <0x00-0xff>
-// Default: 0x30
-#define _MAC2 0x06
-
-// Address byte 3 <0x00-0xff>
-// Default: 0x6C
-#define _MAC3 0x6C
-
-// Address byte 4 <0x00-0xff>
-// Default: 0x00
-#define _MAC4 0x00
-
-// Address byte 5 <0x00-0xff>
-// Default: 0x00
-#define _MAC5 0x00
-
-// Address byte 6 <0x00-0xff>
-// Default: 0x01
-#define _MAC6 0x01
-
-//
-// IP Address
-// =============
-// Local Static IP Address
-// Value 255.255.255.255 is not allowed.
-// It is a Broadcast IP address.
-// Address byte 1 <0-255>
-// Default: 192
-#define _IP1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define _IP2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define _IP3 0
-
-// Address byte 4 <0-255>
-// Default: 100
-#define _IP4 100
-
-//
-// Subnet mask
-// ==============
-// Local Subnet mask
-// Mask byte 1 <0-255>
-// Default: 255
-#define _MSK1 255
-
-// Mask byte 2 <0-255>
-// Default: 255
-#define _MSK2 255
-
-// Mask byte 3 <0-255>
-// Default: 255
-#define _MSK3 255
-
-// Mask byte 4 <0-255>
-// Default: 0
-#define _MSK4 0
-
-//
-// Default Gateway
-// ==================
-// Default Gateway IP Address
-// Address byte 1 <0-255>
-// Default: 192
-#define _GW1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define _GW2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define _GW3 0
-
-// Address byte 4 <0-255>
-// Default: 254
-#define _GW4 254
-
-//
-// Primary DNS Server
-// =====================
-// Primary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define _pDNS1 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define _pDNS2 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define _pDNS3 2
-
-// Address byte 4 <0-255>
-// Default: 129
-#define _pDNS4 129
-
-//
-// Secondary DNS Server
-// =======================
-// Secondary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define _sDNS1 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define _sDNS2 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define _sDNS3 2
-
-// Address byte 4 <0-255>
-// Default: 130
-#define _sDNS4 130
-
-//
-// ARP Definitions
-// ==================
-// Address Resolution Protocol Definitions
-// Cache Table size <5-100>
-// Number of cached hardware/IP addresses
-// Default: 10
-#define ARP_TABSIZE 10
-
-// Cache Timeout in seconds <5-255>
-// A timeout for a cached hardware/IP addresses
-// Default: 150
-#define ARP_TIMEOUT 150
-
-// Number of Retries <0-20>
-// Number of Retries to resolve an IP address
-// before ARP module gives up
-// Default: 4
-#define ARP_MAXRETRY 4
-
-// Resend Timeout in seconds <1-10>
-// A timeout to resend the ARP Request
-// Default: 2
-#define ARP_RESEND 10
-
-// Send Notification on Address changes
-// When this option is enabled, the embedded host
-// will send a Gratuitous ARP notification at startup,
-// or when the device IP address has changed.
-// Default: Disabled
-#define ARP_NOTIFY 1
-
-//
-// IGMP Group Management
-// ========================
-// Enable or disable Internet Group Management Protocol
-#define IGMP_ENABLE 0
-
-// Membership Table size <2-50>
-// Number of Groups this host can join
-// Default: 5
-#define IGMP_TABSIZE 5
-
-//
-// NetBIOS Name Service
-// =======================
-// When this option is enabled, the embedded host can be
-// accessed by his name on the local LAN using NBNS protocol.
-// You need to modify also the number of UDP Sockets,
-// because NBNS protocol uses one UDP socket to run.
-#define NBNS_ENABLE 0
-
-// Dynamic Host Configuration
-// =============================
-// When this option is enabled, local IP address, Net Mask
-// and Default Gateway are obtained automatically from
-// the DHCP Server on local LAN.
-// You need to modify also the number of UDP Sockets,
-// because DHCP protocol uses one UDP socket to run.
-#define DHCP_ENABLE 1
-
-// Vendor Class Identifier
-// This value is optional. If specified, it is added
-// to DHCP request message, identifying vendor type.
-// Default: ""
-#define DHCP_VCID ""
-
-// Bootfile Name
-// This value is optional. If enabled, the Bootfile Name
-// (option 67) is also requested from DHCP server.
-// Default: disabled
-#define DHCP_BOOTF 1
-
-//
-//
-
-// PPP Network Interface
-// ========================
-// Enable or disable PPP Network Interface
-#define PPP_ENABLE 0
-
-// IP Address
-// =============
-// Local Static IP Address
-// Address byte 1 <0-255>
-// Default: 192
-#define _IP1P 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define _IP2P 168
-
-// Address byte 3 <0-255>
-// Default: 125
-#define _IP3P 125
-
-// Address byte 4 <0-255>
-// Default: 1
-#define _IP4P 1
-
-//
-// Subnet mask
-// ==============
-// Local Subnet mask
-// Mask byte 1 <0-255>
-// Default: 255
-#define _MSK1P 255
-
-// Mask byte 2 <0-255>
-// Default: 255
-#define _MSK2P 255
-
-// Mask byte 3 <0-255>
-// Default: 255
-#define _MSK3P 255
-
-// Mask byte 4 <0-255>
-// Default: 0
-#define _MSK4P 0
-
-//
-// Primary DNS Server
-// =====================
-// Primary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define _pDNS1P 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define _pDNS2P 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define _pDNS3P 2
-
-// Address byte 4 <0-255>
-// Default: 129
-#define _pDNS4P 129
-
-//
-// Secondary DNS Server
-// =======================
-// Secondary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define _sDNS1P 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define _sDNS2P 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define _sDNS3P 2
-
-// Address byte 4 <0-255>
-// Default: 130
-#define _sDNS4P 130
-
-//
-// Logon Authentication
-// =======================
-// Enable or disable user authentication
-#define PPP_AUTHEN 1
-
-// Unsecured password (PAP)
-// Allow or use Password Authentication Protocol.
-#define PPP_PAPEN 1
-
-// Secured password (CHAP-MD5)
-// Request or use Challenge Handshake Authentication
-// Protocol with MD5 digest algorithm.
-#define PPP_CHAPEN 1
-
-//
-// Obtain Client IP address automatically
-// =========================================
-// This option only applies when PPP Dial-up is used to dial
-// to remote PPP Server. If checked, network connection
-// dynamically obtains an IP address from remote PPP Server.
-#define PPP_GETIP 1
-
-// Use Default Gateway on remote Network
-// ========================================
-// This option only applies when both Ethernet and PPP Dial-up
-// are used. If checked, data that cannot be sent to local LAN
-// is forwarded to Dial-up network instead.
-#define PPP_DEFGW 1
-
-// Async Control Character Map <0x0-0xffffffff>
-// A bit-map of control characters 0-31, which are
-// transmitted escaped as a 2 byte sequence.
-// For XON/XOFF set this value to: 0x000A 0000
-// Default: 0x00000000
-#define PPP_ACCM 0x00000000
-
-// LCP Echo Interval in seconds <0-3600>
-// If no frames are received within this interval, PPP sends an
-// Echo Request and expects an Echo Response from the peer.
-// If the response is not received, the link is terminated.
-// A value of 0 disables the LCP Echo test.
-// Default: 30
-#define PPP_ECHOTOUT 30
-
-// Number of Retries <0-20>
-// How many times PPP will try to retransmit data
-// before giving up. Increase this value for links
-// with low baud rates or high latency.
-// Default: 3
-#define PPP_MAXRETRY 3
-
-// Retry Timeout in seconds <1-10>
-// If no response received within this time frame,
-// PPP module will try to resend the data again.
-// Default: 2
-#define PPP_RETRYTOUT 2
-
-//
-// SLIP Network Interface
-// ========================
-// Enable or disable SLIP Network Interface
-#define SLIP_ENABLE 0
-
-// IP Address
-// =============
-// Local Static IP Address
-// Address byte 1 <0-255>
-// Default: 192
-#define _IP1S 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define _IP2S 168
-
-// Address byte 3 <0-255>
-// Default: 225
-#define _IP3S 225
-
-// Address byte 4 <0-255>
-// Default: 1
-#define _IP4S 1
-
-//
-// Subnet mask
-// ==============
-// Local Subnet mask
-// Mask byte 1 <0-255>
-// Default: 255
-#define _MSK1S 255
-
-// Mask byte 2 <0-255>
-// Default: 255
-#define _MSK2S 255
-
-// Mask byte 3 <0-255>
-// Default: 255
-#define _MSK3S 255
-
-// Mask byte 4 <0-255>
-// Default: 0
-#define _MSK4S 0
-
-//
-// Primary DNS Server
-// =====================
-// Primary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define _pDNS1S 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define _pDNS2S 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define _pDNS3S 2
-
-// Address byte 4 <0-255>
-// Default: 129
-#define _pDNS4S 129
-
-//
-// Secondary DNS Server
-// =======================
-// Secondary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define _sDNS1S 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define _sDNS2S 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define _sDNS3S 2
-
-// Address byte 4 <0-255>
-// Default: 130
-#define _sDNS4S 130
-
-//
-// Use Default Gateway on remote Network
-// ========================================
-// This option only applies when both Ethernet and SLIP Dial-up
-// are used. If checked, data that cannot be sent to local LAN
-// is forwarded to Dial-up network instead.
-#define SLIP_DEFGW 1
-
-//
-// UDP Sockets
-// ==============
-// Enable or disable UDP Sockets
-#define UDP_ENABLE 1
-
-// Number of UDP Sockets <1-20>
-// Number of available UDP sockets
-// Default: 5
-#define UDP_NUMSOCKS 20
-
-//
-// TCP Sockets
-// ==============
-// Enable or disable TCP Sockets
-#define TCP_ENABLE 1
-
-// Number of TCP Sockets <1-20>
-// Number of available TCP sockets
-// Default: 5
-#define TCP_NUMSOCKS 10
-
-// Number of Retries <0-20>
-// How many times TCP module will try to retransmit data
-// before giving up. Increase this value for high-latency
-// and low_throughput networks.
-// Default: 5
-#define TCP_MAXRETRY 20
-
-// Retry Timeout in seconds <1-10>
-// If data frame not acknowledged within this time frame,
-// TCP module will try to resend the data again.
-// Default: 4
-#define TCP_RETRYTOUT 4
-
-// Default Connect Timeout in seconds <1-600>
-// Default TCP Socket Keep Alive timeout. When it expires
-// with no TCP data frame send, TCP Connection is closed.
-// Default: 120
-#define TCP_DEFTOUT 120
-
-// Maximum Segment Size <536-1460>
-// The Maximum Segment Size specifies the maximum
-// number of bytes in the TCP segment's Data field.
-// Default: 1460
-#define TCP_MAXSEGSZ 1460
-
-/* TCP fixed timeouts */
-#define TCP_INIT_RETRY_TOUT 1 /* TCP initial Retransmit period in sec. */
-#define TCP_SYN_RETRY_TOUT 2 /* TCP SYN frame retransmit period in sec. */
-#define TCP_CONRETRY 7 /* Number of retries to establish a conn. */
-
-//
-// HTTP Server
-// ==============
-// Enable or disable HTTP Server
-#define HTTP_ENABLE 0
-
-// Number of HTTP Sessions <1-10>
-// Number of simultaneously active HTTP Sessions.
-// Default: 3
-#define HTTP_NUMSESS 3
-
-// Port Number <1-65535>
-// Listening port number.
-// Default: 80
-#define HTTP_PORTNUM 80
-
-// Server-Id header
-// This value is optional. If specified, it overrides
-// the default HTTP Server header from the library.
-// Default: ""
-#define HTTP_SRVID ""
-
-// Enable User Authentication
-// When enabled, the user will have to authenticate
-// himself by username and password before accessing
-// any page on this Embedded WEB server.
-#define HTTP_ENAUTH 1
-
-// Authentication Realm
-// Default: "Embedded WEB Server"
-#define HTTP_AUTHREALM "Embedded WEB Server"
-
-// Authentication Username
-// Default: "admin"
-#define HTTP_AUTHUSER "admin"
-
-// Authentication Password
-// Default: ""
-#define HTTP_AUTHPASSW ""
-
-//
-//
-// Telnet Server
-// ================
-// Enable or disable Telnet Server
-#define TNET_ENABLE 0
-
-// Number of Telnet Connections <1-10>
-// Number of simultaneously active Telnet Connections.
-// Default: 1
-#define TNET_NUMSESS 1
-
-// Port Number <1-65535>
-// Listening port number.
-// Default: 23
-#define TNET_PORTNUM 23
-
-// Idle Connection Timeout in seconds <0-3600>
-// When timeout expires, the connection is closed.
-// A value of 0 disables disconnection on timeout.
-// Default: 120
-#define TNET_IDLETOUT 120
-
-// Disable Echo
-// When disabled, the server will not echo
-// characters it receives.
-// Default: Not disabled
-#define TNET_NOECHO 0
-
-// Enable User Authentication
-// When enabled, the user will have to authenticate
-// himself by username and password before access
-// to the system is allowed.
-#define TNET_ENAUTH 1
-
-// Authentication Username
-// Default: "admin"
-#define TNET_AUTHUSER "admin"
-
-// Authentication Password
-// Default: ""
-#define TNET_AUTHPASSW ""
-
-//
-//
-// TFTP Server
-// ==============
-// Enable or disable TFTP Server
-#define TFTP_ENABLE 0
-
-// Number of TFTP Sessions <1-10>
-// Number of simultaneously active TFTP Sessions
-// Default: 1
-#define TFTP_NUMSESS 1
-
-// Port Number <1-65535>
-// Listening port number.
-// Default: 69
-#define TFTP_PORTNUM 69
-
-// Enable Firewall Support
-// Use the same Port Number to receive
-// requests and send answers to clients.
-// Default: Not Enabled
-#define TFTP_ENFWALL 0
-
-// Inactive Session Timeout in seconds <5-120>
-// When timeout expires TFTP Session is closed.
-// Default: 15
-#define TFTP_DEFTOUT 15
-
-// Number of Retries <1-10>
-// How many times TFTP Server will try to
-// retransmit the data before giving up.
-// Default: 4
-#define TFTP_MAXRETRY 4
-
-//
-// TFTP Client
-// ==============
-// Enable or disable TFTP Client
-#define TFTPC_ENABLE 0
-
-// Block Size <128=>128 <256=>256 <512=>512
-// <1024=>1024 <1428=>1428
-// Size of transfer block in bytes.
-// Default: 512
-#define TFTPC_BLOCKSZ 512
-
-// Number of Retries <1-10>
-// How many times TFTP Client will try to
-// retransmit the data before giving up.
-// Default: 4
-#define TFTPC_MAXRETRY 4
-
-// Retry Timeout <2=>200 ms <5=>500 ms <10=>1 sec
-// <20=>2 sec <50=>5 sec <100=>10 sec
-// If data frame not acknowledged within this time frame,
-// TFTP Client will try to resend the data again.
-// Default: 500 ms
-#define TFTPC_RETRYTO 5
-
-//
-// FTP Server
-// ==============
-// Enable or disable FTP Server
-#define FTP_ENABLE 0
-
-// Number of FTP Sessions <1-10>
-// Number of simultaneously active FTP Sessions
-// Default: 1
-#define FTP_NUMSESS 1
-
-// Port Number <1-65535>
-// Listening port number.
-// Default: 21
-#define FTP_PORTNUM 21
-
-// Welcome Message
-// This value is optional. If specified,
-// it overrides the default welcome message.
-// Default: ""
-#define FTP_WELMSG ""
-
-// Idle Session Timeout in seconds <0-3600>
-// When timeout expires, the connection is closed.
-// A value of 0 disables disconnection on timeout.
-// Default: 120
-#define FTP_IDLETOUT 120
-
-// Enable User Authentication
-// When enabled, the user will have to authenticate
-// himself by username and password before access
-// to the system is allowed.
-#define FTP_ENAUTH 1
-
-// Authentication Username
-// Default: "admin"
-#define FTP_AUTHUSER "admin"
-
-// Authentication Password
-// Default: ""
-#define FTP_AUTHPASSW ""
-
-//
-//
-// FTP Client
-// =============
-// Enable or disable FTP Client
-#define FTPC_ENABLE 0
-
-// Response Timeout in seconds <1-120>
-// This is a time for FTP Client to wait for a response from
-// the Server. If timeout expires, Client aborts operation.
-// Default: 10
-#define FTPC_DEFTOUT 10
-
-// Passive mode (PASV)
-// The client initiates a data connection to the server.
-// Default: Not passive (Active)
-#define FTPC_PASVMODE 0
-
-//
-// DNS Client
-// =============
-// Enable or disable DNS Client
-#define DNS_ENABLE 1
-
-// Cache Table size <5-100>
-// Number of cached DNS host names/IP addresses
-// Default: 20
-#define DNS_TABSIZE 20
-
-//
-// SMTP Client
-// ==============
-// Enable or disable SMTP Client
-#define SMTP_ENABLE 0
-
-// Response Timeout in seconds <5-120>
-// This is a time for SMTP Client to wait for a response from
-// SMTP Server. If timeout expires, Client aborts operation.
-// Default: 20
-#define SMTP_DEFTOUT 20
-
-//
-// SNMP Agent
-// =============
-// Enable or disable SNMP Agent
-#define SNMP_ENABLE 0
-
-// Community Name
-// Defines where an SNMP message is destined for.
-// Default: "public"
-#define SNMP_COMMUNITY "public"
-
-// Port Number <1-65535>
-// Listening port number.
-// Default: 161
-#define SNMP_PORTNUM 161
-
-// Trap Port Number <1-65535>
-// Port number for Trap operations.
-// Default: 162
-#define SNMP_TRAPPORT 162
-
-// Trap Server
-// ==============
-// Trap Server IP Address
-// Address byte 1 <0-255>
-// Default: 192
-#define SNMP_TRAPIP1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define SNMP_TRAPIP2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define SNMP_TRAPIP3 0
-
-// Address byte 4 <0-255>
-// Default: 100
-#define SNMP_TRAPIP4 100
-
-//
-//
-// BSD Socket Interface
-// =======================
-// Enable or disable Berkeley Socket Programming Interface
-#define BSD_ENABLE 1
-
-// Number of BSD Sockets <1-20>
-// Number of available Berkeley Sockets
-// Default: 2
-#define BSD_NUMSOCKS 10
-
-// Number of Streaming Server Sockets <0-20>
-// Defines a number of Streaming (TCP) Server sockets,
-// that listen for an incoming connection from the client.
-// Default: 1
-#define BSD_SRVSOCKS 2
-
-// Receive Timeout in seconds <0-600>
-// A timeout for socket receive in blocking mode.
-// Timeout value of 0 means indefinite timeout.
-// Default: 20
-#define BSD_RCVTOUT 20
-
-// Hostname Resolver
-// Enable or disable Berkeley style hostname resolver.
-#define BSD_GETHOSTEN 1
-
-//
-//------------- <<< end of configuration section >>> -----------------------
-
-/*----------------------------------------------------------------------------
- * Fatal Error Handler
- *---------------------------------------------------------------------------*/
-
-void sys_error (ERROR_CODE code) {
- /* This function is called when a fatal error is encountered. The normal */
- /* program execution is not possible anymore. Add your crytical error .*/
- /* handler code here. */
-
- switch (code) {
- case ERR_MEM_ALLOC:
- /* Out of memory. */
- break;
-
- case ERR_MEM_FREE:
- /* Trying to release non existing memory block. */
- break;
-
- case ERR_MEM_CORRUPT:
- /* Memory Link pointer is Corrupted. */
- /* More data written than the size of allocated mem block. */
- break;
-
- case ERR_MEM_LOCK:
- /* Locked Memory management function (alloc/free) re-entered. */
- /* RTX multithread protection malfunctioning, not implemented */
- /* or interrupt disable is not functioning correctly. */
- break;
-
- case ERR_UDP_ALLOC:
- /* Out of UDP Sockets. */
- break;
-
- case ERR_TCP_ALLOC:
- /* Out of TCP Sockets. */
- break;
-
- case ERR_TCP_STATE:
- /* TCP State machine in undefined state. */
- break;
- }
-
- /* End-less loop */
- while (1);
-}
-
-/*----------------------------------------------------------------------------
- * TCPnet Config Functions
- *---------------------------------------------------------------------------*/
-
-#define __NET_CONFIG__
-
-#include
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK-ARM/MDK-ARM/config/Net_Debug.c b/IDE/MDK-ARM/MDK-ARM/config/Net_Debug.c
deleted file mode 100644
index f7a5c9af0..000000000
--- a/IDE/MDK-ARM/MDK-ARM/config/Net_Debug.c
+++ /dev/null
@@ -1,139 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - TCPnet
- *----------------------------------------------------------------------------
- * Name: NET_DEBUG.C
- * Purpose: Debug Module
- * Rev.: V4.60
- *----------------------------------------------------------------------------
- * This code is part of the RealView Run-Time Library.
- * Copyright (c) 2004-2012 KEIL - An ARM Company. All rights reserved.
- *---------------------------------------------------------------------------*/
-
-#include
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-
-// Print Time Stamp
-// ===================
-// Enable printing the time-info in debug messages
-#define DBG_TIME 1
-
-// TCPnet Debug Definitions
-// ===========================
-// Memory Management Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Dynamic Memory debug messages
-#define DBG_MEM 1
-
-// Ethernet Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Ethernet debug messages
-#define DBG_ETH 1
-
-// PPP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off PPP debug messages
-#define DBG_PPP 0
-
-// SLIP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off SLIP debug messages
-#define DBG_SLIP 0
-
-// ARP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off ARP debug messages
-#define DBG_ARP 1
-
-// IP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off IP debug messages
-#define DBG_IP 1
-
-// ICMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off ICMP debug messages
-#define DBG_ICMP 1
-
-// IGMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off IGMP debug messages
-#define DBG_IGMP 1
-
-// UDP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off UDP debug messages
-#define DBG_UDP 1
-
-// TCP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TCP debug messages
-#define DBG_TCP 2
-
-// NBNS Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off NetBIOS Name Service debug messages
-#define DBG_NBNS 1
-
-// DHCP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Dynamic Host Configuration debug messages
-#define DBG_DHCP 2
-
-// DNS Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Domain Name Service debug messages
-#define DBG_DNS 1
-
-// SNMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Simple Network Management debug messages
-#define DBG_SNMP 1
-
-// BSD Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off BSD Interface debug messages
-#define DBG_BSD 2
-
-//
-// Application Debug Definitions
-// ================================
-// HTTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Web Server debug messages
-#define DBG_HTTP 1
-
-// FTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off FTP Server debug messages
-#define DBG_FTP 1
-
-// FTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off FTP Client debug messages
-#define DBG_FTPC 1
-
-// Telnet Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Telnet Server debug messages
-#define DBG_TNET 1
-
-// TFTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TFTP Server debug messages
-#define DBG_TFTP 1
-
-// TFTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TFTP Client debug messages
-#define DBG_TFTPC 1
-
-// SMTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off SMTP Client debug messages
-#define DBG_SMTP 1
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-
-/*--------------------------- init_debug ------------------------------------*/
-
-void init_debug (void) {
- /* Add your code to initialize the Debug output. This is usually the */
- /* serial interface. The function is called at TCPnet system startup. */
- /* You may need to customize also the 'putchar()' function. */
-
-}
-
-
-/*----------------------------------------------------------------------------
- * TCPnet Debug Functions
- *---------------------------------------------------------------------------*/
-
-#define __NET_DEBUG__
-
-#include
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK-ARM/MDK-ARM/config/RTX_Conf_CM.c b/IDE/MDK-ARM/MDK-ARM/config/RTX_Conf_CM.c
deleted file mode 100644
index a03892045..000000000
--- a/IDE/MDK-ARM/MDK-ARM/config/RTX_Conf_CM.c
+++ /dev/null
@@ -1,205 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - RTX
- *----------------------------------------------------------------------------
- * Name: RTX_CONFIG.C
- * Purpose: Configuration of RTX Kernel for Cortex-M
- * Rev.: V4.60
- *----------------------------------------------------------------------------
- * This code is part of the RealView Run-Time Library.
- * Copyright (c) 2004-2012 KEIL - An ARM Company. All rights reserved.
- *---------------------------------------------------------------------------*/
-
-#include
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part BEGIN
- *---------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// Task Configuration
-// =====================
-//
-// Number of concurrent running tasks <0-250>
-// Define max. number of tasks that will run at the same time.
-// Default: 6
-#ifndef OS_TASKCNT
- #define OS_TASKCNT 6
-#endif
-
-// Number of tasks with user-provided stack <0-250>
-// Define the number of tasks that will use a bigger stack.
-// The memory space for the stack is provided by the user.
-// Default: 0
-#ifndef OS_PRIVCNT
- #define OS_PRIVCNT 2
-#endif
-
-// Task stack size [bytes] <20-4096:8><#/4>
-// Set the stack size for tasks which is assigned by the system.
-// Default: 512
-#ifndef OS_STKSIZE
- #define OS_STKSIZE 499
-#endif
-
-// Check for the stack overflow
-// ===============================
-// Include the stack checking code for a stack overflow.
-// Note that additional code reduces the Kernel performance.
-#ifndef OS_STKCHECK
- #define OS_STKCHECK 1
-#endif
-
-// Run in privileged mode
-// =========================
-// Run all Tasks in privileged mode.
-// Default: Unprivileged
-#ifndef OS_RUNPRIV
- #define OS_RUNPRIV 1
-#endif
-
-//
-// Tick Timer Configuration
-// =============================
-// Hardware timer <0=> Core SysTick <1=> Peripheral Timer
-// Define the on-chip timer used as a time-base for RTX.
-// Default: Core SysTick
-#ifndef OS_TIMER
- #define OS_TIMER 0
-#endif
-
-// Timer clock value [Hz] <1-1000000000>
-// Set the timer clock value for selected timer.
-// Default: 6000000 (6MHz)
-#ifndef OS_CLOCK
- #define OS_CLOCK 120000000
-#endif
-
-// Timer tick value [us] <1-1000000>
-// Set the timer tick value for selected timer.
-// Default: 10000 (10ms)
-#ifndef OS_TICK
- #define OS_TICK 1000
-#endif
-
-//
-
-// System Configuration
-// =======================
-// Round-Robin Task switching
-// =============================
-// Enable Round-Robin Task switching.
-#ifndef OS_ROBIN
- #define OS_ROBIN 1
-#endif
-
-// Round-Robin Timeout [ticks] <1-1000>
-// Define how long a task will execute before a task switch.
-// Default: 5
-#ifndef OS_ROBINTOUT
- #define OS_ROBINTOUT 5
-#endif
-
-//
-
-// Number of user timers <0-250>
-// Define max. number of user timers that will run at the same time.
-// Default: 0 (User timers disabled)
-#ifndef OS_TIMERCNT
- #define OS_TIMERCNT 1
-#endif
-
-// ISR FIFO Queue size<4=> 4 entries <8=> 8 entries
-// <12=> 12 entries <16=> 16 entries
-// <24=> 24 entries <32=> 32 entries
-// <48=> 48 entries <64=> 64 entries
-// <96=> 96 entries
-// ISR functions store requests to this buffer,
-// when they are called from the iterrupt handler.
-// Default: 16 entries
-#ifndef OS_FIFOSZ
- #define OS_FIFOSZ 16
-#endif
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-// Standard library system mutexes
-// ===============================
-// Define max. number system mutexes that are used to protect
-// the arm standard runtime library. For microlib they are not used.
-#ifndef OS_MUTEXCNT
- #define OS_MUTEXCNT 8
-#endif
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part END
- *---------------------------------------------------------------------------*/
-
-#define OS_TRV ((U32)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
-
-/*----------------------------------------------------------------------------
- * Global Functions
- *---------------------------------------------------------------------------*/
-
-/*--------------------------- os_idle_demon ---------------------------------*/
-
-__task void os_idle_demon (void) {
- /* The idle demon is a system task, running when no other task is ready */
- /* to run. The 'os_xxx' function calls are not allowed from this task. */
-
- for (;;) {
- /* HERE: include optional user code to be executed when no task runs.*/
- }
-}
-
-/*--------------------------- os_tick_init ----------------------------------*/
-
-#if (OS_TIMER != 0)
-int os_tick_init (void) {
- /* Initialize hardware timer as system tick timer. */
- /* ... */
- return (-1); /* Return IRQ number of timer (0..239) */
-}
-#endif
-
-/*--------------------------- os_tick_irqack --------------------------------*/
-
-#if (OS_TIMER != 0)
-void os_tick_irqack (void) {
- /* Acknowledge timer interrupt. */
- /* ... */
-}
-#endif
-
-/*--------------------------- os_tmr_call -----------------------------------*/
-
-void os_tmr_call (U16 info) {
- /* This function is called when the user timer has expired. Parameter */
- /* 'info' holds the value, defined when the timer was created. */
-
- /* HERE: include optional user code to be executed on timeout. */
-}
-
-
-/*--------------------------- os_error --------------------------------------*/
-
-void os_error (U32 err_code) {
- /* This function is called when a runtime error is detected. Parameter */
- /* 'err_code' holds the runtime error code (defined in RTL.H). */
-
- /* HERE: include optional code to be executed on runtime error. */
- for (;;);
-}
-
-
-/*----------------------------------------------------------------------------
- * RTX Configuration Functions
- *---------------------------------------------------------------------------*/
-
-#include
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK-ARM/MDK-ARM/config/STM32_SWO.ini b/IDE/MDK-ARM/MDK-ARM/config/STM32_SWO.ini
deleted file mode 100644
index c6512217a..000000000
--- a/IDE/MDK-ARM/MDK-ARM/config/STM32_SWO.ini
+++ /dev/null
@@ -1,36 +0,0 @@
-/******************************************************************************/
-/* STM32_SWO.ini: STM32 Debugger Initialization File */
-/******************************************************************************/
-// <<< Use Configuration Wizard in Context Menu >>> //
-/******************************************************************************/
-/* This file is part of the uVision/ARM development tools. */
-/* Copyright (c) 2005-2009 Keil Software. All rights reserved. */
-/* This software may only be used under the terms of a valid, current, */
-/* end user licence from KEIL for a compatible version of KEIL software */
-/* development tools. Nothing else gives you the right to use this software. */
-/******************************************************************************/
-
-
-FUNC void DebugSetup (void) {
-// Debug MCU Configuration
-// DBG_SLEEP Debug Sleep Mode
-// DBG_STOP Debug Stop Mode
-// DBG_STANDBY Debug Standby Mode
-// TRACE_IOEN Trace I/O Enable
-// TRACE_MODE Trace Mode
-// <0=> Asynchronous
-// <1=> Synchronous: TRACEDATA Size 1
-// <2=> Synchronous: TRACEDATA Size 2
-// <3=> Synchronous: TRACEDATA Size 4
-// DBG_IWDG_STOP Independant Watchdog Stopped when Core is halted
-// DBG_WWDG_STOP Window Watchdog Stopped when Core is halted
-// DBG_TIM1_STOP Timer 1 Stopped when Core is halted
-// DBG_TIM2_STOP Timer 2 Stopped when Core is halted
-// DBG_TIM3_STOP Timer 3 Stopped when Core is halted
-// DBG_TIM4_STOP Timer 4 Stopped when Core is halted
-// DBG_CAN_STOP CAN Stopped when Core is halted
-//
- _WDWORD(0xE0042004, 0x00000027); // DBGMCU_CR
-}
-
-DebugSetup(); // Debugger Setup
diff --git a/IDE/MDK-ARM/MDK-ARM/config/startup_stm32f2xx.s b/IDE/MDK-ARM/MDK-ARM/config/startup_stm32f2xx.s
deleted file mode 100644
index c31ce1991..000000000
--- a/IDE/MDK-ARM/MDK-ARM/config/startup_stm32f2xx.s
+++ /dev/null
@@ -1,419 +0,0 @@
-;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
-;* File Name : startup_stm32f2xx.s
-;* Author : MCD Application Team
-;* Version : V1.0.0
-;* Date : 18-April-2011
-;* Description : STM32F2xx devices vector table for MDK-ARM toolchain.
-;* This module performs:
-;* - Set the initial SP
-;* - Set the initial PC == Reset_Handler
-;* - Set the vector table entries with the exceptions ISR address
-;* - Branches to __main in the C library (which eventually
-;* calls main()).
-;* After Reset the CortexM3 processor is in Thread mode,
-;* priority is Privileged, and the Stack is set to Main.
-;* <<< Use Configuration Wizard in Context Menu >>>
-;*******************************************************************************
-; 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.
-;*******************************************************************************
-
-; Amount of memory (in bytes) allocated for Stack
-; Tailor this value to your application needs
-; Stack Configuration
-; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Stack_Size EQU 0x00001000
-
- AREA STACK, NOINIT, READWRITE, ALIGN=3
-Stack_Mem SPACE Stack_Size
-__initial_sp
-
-
-; Heap Configuration
-; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Heap_Size EQU 0x00009000
-
- AREA HEAP, NOINIT, READWRITE, ALIGN=3
-__heap_base
-Heap_Mem SPACE Heap_Size
-__heap_limit
-
- PRESERVE8
- THUMB
-
-
-; Vector Table Mapped to Address 0 at Reset
- AREA RESET, DATA, READONLY
- EXPORT __Vectors
- EXPORT __Vectors_End
- EXPORT __Vectors_Size
-
-__Vectors DCD __initial_sp ; Top of Stack
- DCD Reset_Handler ; Reset Handler
- DCD NMI_Handler ; NMI Handler
- DCD HardFault_Handler ; Hard Fault Handler
- DCD MemManage_Handler ; MPU Fault Handler
- DCD BusFault_Handler ; Bus Fault Handler
- DCD UsageFault_Handler ; Usage Fault Handler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD SVC_Handler ; SVCall Handler
- DCD DebugMon_Handler ; Debug Monitor Handler
- DCD 0 ; Reserved
- DCD PendSV_Handler ; PendSV Handler
- DCD SysTick_Handler ; SysTick Handler
-
- ; External Interrupts
- DCD WWDG_IRQHandler ; Window WatchDog
- DCD PVD_IRQHandler ; PVD through EXTI Line detection
- DCD TAMP_STAMP_IRQHandler ; Tamper and TimeStamps through the EXTI line
- DCD RTC_WKUP_IRQHandler ; RTC Wakeup through the EXTI line
- DCD FLASH_IRQHandler ; FLASH
- DCD RCC_IRQHandler ; RCC
- DCD EXTI0_IRQHandler ; EXTI Line0
- DCD EXTI1_IRQHandler ; EXTI Line1
- DCD EXTI2_IRQHandler ; EXTI Line2
- DCD EXTI3_IRQHandler ; EXTI Line3
- DCD EXTI4_IRQHandler ; EXTI Line4
- DCD DMA1_Stream0_IRQHandler ; DMA1 Stream 0
- DCD DMA1_Stream1_IRQHandler ; DMA1 Stream 1
- DCD DMA1_Stream2_IRQHandler ; DMA1 Stream 2
- DCD DMA1_Stream3_IRQHandler ; DMA1 Stream 3
- DCD DMA1_Stream4_IRQHandler ; DMA1 Stream 4
- DCD DMA1_Stream5_IRQHandler ; DMA1 Stream 5
- DCD DMA1_Stream6_IRQHandler ; DMA1 Stream 6
- DCD ADC_IRQHandler ; ADC1, ADC2 and ADC3s
- DCD CAN1_TX_IRQHandler ; CAN1 TX
- DCD CAN1_RX0_IRQHandler ; CAN1 RX0
- DCD CAN1_RX1_IRQHandler ; CAN1 RX1
- DCD CAN1_SCE_IRQHandler ; CAN1 SCE
- DCD EXTI9_5_IRQHandler ; External Line[9:5]s
- DCD TIM1_BRK_TIM9_IRQHandler ; TIM1 Break and TIM9
- DCD TIM1_UP_TIM10_IRQHandler ; TIM1 Update and TIM10
- DCD TIM1_TRG_COM_TIM11_IRQHandler ; TIM1 Trigger and Commutation and TIM11
- DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
- DCD TIM2_IRQHandler ; TIM2
- DCD TIM3_IRQHandler ; TIM3
- DCD TIM4_IRQHandler ; TIM4
- DCD I2C1_EV_IRQHandler ; I2C1 Event
- DCD I2C1_ER_IRQHandler ; I2C1 Error
- DCD I2C2_EV_IRQHandler ; I2C2 Event
- DCD I2C2_ER_IRQHandler ; I2C2 Error
- DCD SPI1_IRQHandler ; SPI1
- DCD SPI2_IRQHandler ; SPI2
- DCD USART1_IRQHandler ; USART1
- DCD USART2_IRQHandler ; USART2
- DCD USART3_IRQHandler ; USART3
- DCD EXTI15_10_IRQHandler ; External Line[15:10]s
- DCD RTC_Alarm_IRQHandler ; RTC Alarm (A and B) through EXTI Line
- DCD OTG_FS_WKUP_IRQHandler ; USB OTG FS Wakeup through EXTI line
- DCD TIM8_BRK_TIM12_IRQHandler ; TIM8 Break and TIM12
- DCD TIM8_UP_TIM13_IRQHandler ; TIM8 Update and TIM13
- DCD TIM8_TRG_COM_TIM14_IRQHandler ; TIM8 Trigger and Commutation and TIM14
- DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare
- DCD DMA1_Stream7_IRQHandler ; DMA1 Stream7
- DCD FSMC_IRQHandler ; FSMC
- DCD SDIO_IRQHandler ; SDIO
- DCD TIM5_IRQHandler ; TIM5
- DCD SPI3_IRQHandler ; SPI3
- DCD UART4_IRQHandler ; UART4
- DCD UART5_IRQHandler ; UART5
- DCD TIM6_DAC_IRQHandler ; TIM6 and DAC1&2 underrun errors
- DCD TIM7_IRQHandler ; TIM7
- DCD DMA2_Stream0_IRQHandler ; DMA2 Stream 0
- DCD DMA2_Stream1_IRQHandler ; DMA2 Stream 1
- DCD DMA2_Stream2_IRQHandler ; DMA2 Stream 2
- DCD DMA2_Stream3_IRQHandler ; DMA2 Stream 3
- DCD DMA2_Stream4_IRQHandler ; DMA2 Stream 4
- DCD ETH_IRQHandler ; Ethernet
- DCD ETH_WKUP_IRQHandler ; Ethernet Wakeup through EXTI line
- DCD CAN2_TX_IRQHandler ; CAN2 TX
- DCD CAN2_RX0_IRQHandler ; CAN2 RX0
- DCD CAN2_RX1_IRQHandler ; CAN2 RX1
- DCD CAN2_SCE_IRQHandler ; CAN2 SCE
- DCD OTG_FS_IRQHandler ; USB OTG FS
- DCD DMA2_Stream5_IRQHandler ; DMA2 Stream 5
- DCD DMA2_Stream6_IRQHandler ; DMA2 Stream 6
- DCD DMA2_Stream7_IRQHandler ; DMA2 Stream 7
- DCD USART6_IRQHandler ; USART6
- DCD I2C3_EV_IRQHandler ; I2C3 event
- DCD I2C3_ER_IRQHandler ; I2C3 error
- DCD OTG_HS_EP1_OUT_IRQHandler ; USB OTG HS End Point 1 Out
- DCD OTG_HS_EP1_IN_IRQHandler ; USB OTG HS End Point 1 In
- DCD OTG_HS_WKUP_IRQHandler ; USB OTG HS Wakeup through EXTI
- DCD OTG_HS_IRQHandler ; USB OTG HS
- DCD DCMI_IRQHandler ; DCMI
- DCD CRYP_IRQHandler ; CRYP crypto
- DCD HASH_RNG_IRQHandler ; Hash and Rng
-__Vectors_End
-
-__Vectors_Size EQU __Vectors_End - __Vectors
-
- AREA |.text|, CODE, READONLY
-
-; Reset handler
-Reset_Handler PROC
- EXPORT Reset_Handler [WEAK]
- IMPORT SystemInit
- IMPORT __main
- LDR R0, =SystemInit
- BLX R0
- LDR R0, =__main
- BX R0
- ENDP
-
-; Dummy Exception Handlers (infinite loops which can be modified)
-
-NMI_Handler PROC
- EXPORT NMI_Handler [WEAK]
- B .
- ENDP
-HardFault_Handler\
- PROC
- EXPORT HardFault_Handler [WEAK]
- B .
- ENDP
-MemManage_Handler\
- PROC
- EXPORT MemManage_Handler [WEAK]
- B .
- ENDP
-BusFault_Handler\
- PROC
- EXPORT BusFault_Handler [WEAK]
- B .
- ENDP
-UsageFault_Handler\
- PROC
- EXPORT UsageFault_Handler [WEAK]
- B .
- ENDP
-SVC_Handler PROC
- EXPORT SVC_Handler [WEAK]
- B .
- ENDP
-DebugMon_Handler\
- PROC
- EXPORT DebugMon_Handler [WEAK]
- B .
- ENDP
-PendSV_Handler PROC
- EXPORT PendSV_Handler [WEAK]
- B .
- ENDP
-SysTick_Handler PROC
- EXPORT SysTick_Handler [WEAK]
- B .
- ENDP
-
-Default_Handler PROC
-
- EXPORT WWDG_IRQHandler [WEAK]
- EXPORT PVD_IRQHandler [WEAK]
- EXPORT TAMP_STAMP_IRQHandler [WEAK]
- EXPORT RTC_WKUP_IRQHandler [WEAK]
- EXPORT FLASH_IRQHandler [WEAK]
- EXPORT RCC_IRQHandler [WEAK]
- EXPORT EXTI0_IRQHandler [WEAK]
- EXPORT EXTI1_IRQHandler [WEAK]
- EXPORT EXTI2_IRQHandler [WEAK]
- EXPORT EXTI3_IRQHandler [WEAK]
- EXPORT EXTI4_IRQHandler [WEAK]
- EXPORT DMA1_Stream0_IRQHandler [WEAK]
- EXPORT DMA1_Stream1_IRQHandler [WEAK]
- EXPORT DMA1_Stream2_IRQHandler [WEAK]
- EXPORT DMA1_Stream3_IRQHandler [WEAK]
- EXPORT DMA1_Stream4_IRQHandler [WEAK]
- EXPORT DMA1_Stream5_IRQHandler [WEAK]
- EXPORT DMA1_Stream6_IRQHandler [WEAK]
- EXPORT ADC_IRQHandler [WEAK]
- EXPORT CAN1_TX_IRQHandler [WEAK]
- EXPORT CAN1_RX0_IRQHandler [WEAK]
- EXPORT CAN1_RX1_IRQHandler [WEAK]
- EXPORT CAN1_SCE_IRQHandler [WEAK]
- EXPORT EXTI9_5_IRQHandler [WEAK]
- EXPORT TIM1_BRK_TIM9_IRQHandler [WEAK]
- EXPORT TIM1_UP_TIM10_IRQHandler [WEAK]
- EXPORT TIM1_TRG_COM_TIM11_IRQHandler [WEAK]
- EXPORT TIM1_CC_IRQHandler [WEAK]
- EXPORT TIM2_IRQHandler [WEAK]
- EXPORT TIM3_IRQHandler [WEAK]
- EXPORT TIM4_IRQHandler [WEAK]
- EXPORT I2C1_EV_IRQHandler [WEAK]
- EXPORT I2C1_ER_IRQHandler [WEAK]
- EXPORT I2C2_EV_IRQHandler [WEAK]
- EXPORT I2C2_ER_IRQHandler [WEAK]
- EXPORT SPI1_IRQHandler [WEAK]
- EXPORT SPI2_IRQHandler [WEAK]
- EXPORT USART1_IRQHandler [WEAK]
- EXPORT USART2_IRQHandler [WEAK]
- EXPORT USART3_IRQHandler [WEAK]
- EXPORT EXTI15_10_IRQHandler [WEAK]
- EXPORT RTC_Alarm_IRQHandler [WEAK]
- EXPORT OTG_FS_WKUP_IRQHandler [WEAK]
- EXPORT TIM8_BRK_TIM12_IRQHandler [WEAK]
- EXPORT TIM8_UP_TIM13_IRQHandler [WEAK]
- EXPORT TIM8_TRG_COM_TIM14_IRQHandler [WEAK]
- EXPORT TIM8_CC_IRQHandler [WEAK]
- EXPORT DMA1_Stream7_IRQHandler [WEAK]
- EXPORT FSMC_IRQHandler [WEAK]
- EXPORT SDIO_IRQHandler [WEAK]
- EXPORT TIM5_IRQHandler [WEAK]
- EXPORT SPI3_IRQHandler [WEAK]
- EXPORT UART4_IRQHandler [WEAK]
- EXPORT UART5_IRQHandler [WEAK]
- EXPORT TIM6_DAC_IRQHandler [WEAK]
- EXPORT TIM7_IRQHandler [WEAK]
- EXPORT DMA2_Stream0_IRQHandler [WEAK]
- EXPORT DMA2_Stream1_IRQHandler [WEAK]
- EXPORT DMA2_Stream2_IRQHandler [WEAK]
- EXPORT DMA2_Stream3_IRQHandler [WEAK]
- EXPORT DMA2_Stream4_IRQHandler [WEAK]
- EXPORT ETH_IRQHandler [WEAK]
- EXPORT ETH_WKUP_IRQHandler [WEAK]
- EXPORT CAN2_TX_IRQHandler [WEAK]
- EXPORT CAN2_RX0_IRQHandler [WEAK]
- EXPORT CAN2_RX1_IRQHandler [WEAK]
- EXPORT CAN2_SCE_IRQHandler [WEAK]
- EXPORT OTG_FS_IRQHandler [WEAK]
- EXPORT DMA2_Stream5_IRQHandler [WEAK]
- EXPORT DMA2_Stream6_IRQHandler [WEAK]
- EXPORT DMA2_Stream7_IRQHandler [WEAK]
- EXPORT USART6_IRQHandler [WEAK]
- EXPORT I2C3_EV_IRQHandler [WEAK]
- EXPORT I2C3_ER_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_OUT_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_IN_IRQHandler [WEAK]
- EXPORT OTG_HS_WKUP_IRQHandler [WEAK]
- EXPORT OTG_HS_IRQHandler [WEAK]
- EXPORT DCMI_IRQHandler [WEAK]
- EXPORT CRYP_IRQHandler [WEAK]
- EXPORT HASH_RNG_IRQHandler [WEAK]
-
-WWDG_IRQHandler
-PVD_IRQHandler
-TAMP_STAMP_IRQHandler
-RTC_WKUP_IRQHandler
-FLASH_IRQHandler
-RCC_IRQHandler
-EXTI0_IRQHandler
-EXTI1_IRQHandler
-EXTI2_IRQHandler
-EXTI3_IRQHandler
-EXTI4_IRQHandler
-DMA1_Stream0_IRQHandler
-DMA1_Stream1_IRQHandler
-DMA1_Stream2_IRQHandler
-DMA1_Stream3_IRQHandler
-DMA1_Stream4_IRQHandler
-DMA1_Stream5_IRQHandler
-DMA1_Stream6_IRQHandler
-ADC_IRQHandler
-CAN1_TX_IRQHandler
-CAN1_RX0_IRQHandler
-CAN1_RX1_IRQHandler
-CAN1_SCE_IRQHandler
-EXTI9_5_IRQHandler
-TIM1_BRK_TIM9_IRQHandler
-TIM1_UP_TIM10_IRQHandler
-TIM1_TRG_COM_TIM11_IRQHandler
-TIM1_CC_IRQHandler
-TIM2_IRQHandler
-TIM3_IRQHandler
-TIM4_IRQHandler
-I2C1_EV_IRQHandler
-I2C1_ER_IRQHandler
-I2C2_EV_IRQHandler
-I2C2_ER_IRQHandler
-SPI1_IRQHandler
-SPI2_IRQHandler
-USART1_IRQHandler
-USART2_IRQHandler
-USART3_IRQHandler
-EXTI15_10_IRQHandler
-RTC_Alarm_IRQHandler
-OTG_FS_WKUP_IRQHandler
-TIM8_BRK_TIM12_IRQHandler
-TIM8_UP_TIM13_IRQHandler
-TIM8_TRG_COM_TIM14_IRQHandler
-TIM8_CC_IRQHandler
-DMA1_Stream7_IRQHandler
-FSMC_IRQHandler
-SDIO_IRQHandler
-TIM5_IRQHandler
-SPI3_IRQHandler
-UART4_IRQHandler
-UART5_IRQHandler
-TIM6_DAC_IRQHandler
-TIM7_IRQHandler
-DMA2_Stream0_IRQHandler
-DMA2_Stream1_IRQHandler
-DMA2_Stream2_IRQHandler
-DMA2_Stream3_IRQHandler
-DMA2_Stream4_IRQHandler
-ETH_IRQHandler
-ETH_WKUP_IRQHandler
-CAN2_TX_IRQHandler
-CAN2_RX0_IRQHandler
-CAN2_RX1_IRQHandler
-CAN2_SCE_IRQHandler
-OTG_FS_IRQHandler
-DMA2_Stream5_IRQHandler
-DMA2_Stream6_IRQHandler
-DMA2_Stream7_IRQHandler
-USART6_IRQHandler
-I2C3_EV_IRQHandler
-I2C3_ER_IRQHandler
-OTG_HS_EP1_OUT_IRQHandler
-OTG_HS_EP1_IN_IRQHandler
-OTG_HS_WKUP_IRQHandler
-OTG_HS_IRQHandler
-DCMI_IRQHandler
-CRYP_IRQHandler
-HASH_RNG_IRQHandler
-
- B .
-
- ENDP
-
- ALIGN
-
-;*******************************************************************************
-; User Stack and Heap initialization
-;*******************************************************************************
- IF :DEF:__MICROLIB
-
- EXPORT __initial_sp
- EXPORT __heap_base
- EXPORT __heap_limit
-
- ELSE
-
- IMPORT __use_two_region_memory
- EXPORT __user_initial_stackheap
-
-__user_initial_stackheap
-
- LDR R0, = Heap_Mem
- LDR R1, =(Stack_Mem + Stack_Size)
- LDR R2, = (Heap_Mem + Heap_Size)
- LDR R3, = Stack_Mem
- BX LR
-
- ALIGN
-
- ENDIF
-
- END
-
-;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/CMSIS/RTX_Conf_CM.c b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/CMSIS/RTX_Conf_CM.c
deleted file mode 100644
index a13ecc5b6..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/CMSIS/RTX_Conf_CM.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - RTX
- *----------------------------------------------------------------------------
- * Name: RTX_Conf_CM.C
- * Purpose: Configuration of CMSIS RTX Kernel for Cortex-M
- * Rev.: V4.73
- *----------------------------------------------------------------------------
- *
- * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
- * 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 ARM 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 COPYRIGHT HOLDERS AND CONTRIBUTORS 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.
- *---------------------------------------------------------------------------*/
-
-#include "cmsis_os.h"
-
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part BEGIN
- *---------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// Thread Configuration
-// =======================
-//
-// Number of concurrent running threads <0-250>
-// Defines max. number of threads that will run at the same time.
-// Default: 6
-#ifndef OS_TASKCNT
- #define OS_TASKCNT 6
-#endif
-
-// Default Thread stack size [bytes] <64-4096:8><#/4>
-// Defines default stack size for threads with osThreadDef stacksz = 0
-// Default: 200
-#ifndef OS_STKSIZE
- #define OS_STKSIZE 50
-#endif
-
-// Main Thread stack size [bytes] <64-32768:8><#/4>
-// Defines stack size for main thread.
-// Default: 200
-#ifndef OS_MAINSTKSIZE
- #define OS_MAINSTKSIZE 2000
-#endif
-
-// Number of threads with user-provided stack size <0-250>
-// Defines the number of threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVCNT
- #define OS_PRIVCNT 0
-#endif
-
-// Total stack size [bytes] for threads with user-provided stack size <0-1048576:8><#/4>
-// Defines the combined stack size for threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVSTKSIZE
- #define OS_PRIVSTKSIZE 0
-#endif
-
-// Check for stack overflow
-// Includes the stack checking code for stack overflow.
-// Note that additional code reduces the Kernel performance.
-#ifndef OS_STKCHECK
- #define OS_STKCHECK 1
-#endif
-
-// Processor mode for thread execution
-// <0=> Unprivileged mode
-// <1=> Privileged mode
-// Default: Privileged mode
-#ifndef OS_RUNPRIV
- #define OS_RUNPRIV 1
-#endif
-
-//
-
-// RTX Kernel Timer Tick Configuration
-// ======================================
-// Use Cortex-M SysTick timer as RTX Kernel Timer
-// Use the Cortex-M SysTick timer as a time-base for RTX.
-#ifndef OS_SYSTICK
- #define OS_SYSTICK 1
-#endif
-//
-// Timer clock value [Hz] <1-1000000000>
-// Defines the timer clock value.
-// Default: 12000000 (12MHz)
-#ifndef OS_CLOCK
- #define OS_CLOCK 12000000
-#endif
-
-// Timer tick value [us] <1-1000000>
-// Defines the timer tick value.
-// Default: 1000 (1ms)
-#ifndef OS_TICK
- #define OS_TICK 1000
-#endif
-
-//
-
-// System Configuration
-// =======================
-//
-// Round-Robin Thread switching
-// ===============================
-//
-// Enables Round-Robin Thread switching.
-#ifndef OS_ROBIN
- #define OS_ROBIN 1
-#endif
-
-// Round-Robin Timeout [ticks] <1-1000>
-// Defines how long a thread will execute before a thread switch.
-// Default: 5
-#ifndef OS_ROBINTOUT
- #define OS_ROBINTOUT 5
-#endif
-
-//
-
-// User Timers
-// ==============
-// Enables user Timers
-#ifndef OS_TIMERS
- #define OS_TIMERS 1
-#endif
-
-// Timer Thread Priority
-// <1=> Low
-// <2=> Below Normal <3=> Normal <4=> Above Normal
-// <5=> High
-// <6=> Realtime (highest)
-// Defines priority for Timer Thread
-// Default: High
-#ifndef OS_TIMERPRIO
- #define OS_TIMERPRIO 5
-#endif
-
-// Timer Thread stack size [bytes] <64-4096:8><#/4>
-// Defines stack size for Timer thread.
-// Default: 200
-#ifndef OS_TIMERSTKSZ
- #define OS_TIMERSTKSZ 50
-#endif
-
-// Timer Callback Queue size <1-32>
-// Number of concurrent active timer callback functions.
-// Default: 4
-#ifndef OS_TIMERCBQS
- #define OS_TIMERCBQS 4
-#endif
-
-//
-
-// ISR FIFO Queue size<4=> 4 entries <8=> 8 entries
-// <12=> 12 entries <16=> 16 entries
-// <24=> 24 entries <32=> 32 entries
-// <48=> 48 entries <64=> 64 entries
-// <96=> 96 entries
-// ISR functions store requests to this buffer,
-// when they are called from the interrupt handler.
-// Default: 16 entries
-#ifndef OS_FIFOSZ
- #define OS_FIFOSZ 16
-#endif
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-// Standard library system mutexes
-// ===============================
-// Define max. number system mutexes that are used to protect
-// the arm standard runtime library. For microlib they are not used.
-#ifndef OS_MUTEXCNT
- #define OS_MUTEXCNT 8
-#endif
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part END
- *---------------------------------------------------------------------------*/
-
-#define OS_TRV ((uint32_t)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
-
-
-/*----------------------------------------------------------------------------
- * Global Functions
- *---------------------------------------------------------------------------*/
-
-/*--------------------------- os_idle_demon ---------------------------------*/
-
-void os_idle_demon (void) {
- /* The idle demon is a system thread, running when no other thread is */
- /* ready to run. */
-
- for (;;) {
- /* HERE: include optional user code to be executed when no thread runs.*/
- }
-}
-
-#if (OS_SYSTICK == 0) // Functions for alternative timer as RTX kernel timer
-
-/*--------------------------- os_tick_init ----------------------------------*/
-
-// Initialize alternative hardware timer as RTX kernel timer
-// Return: IRQ number of the alternative hardware timer
-int os_tick_init (void) {
- return (-1); /* Return IRQ number of timer (0..239) */
-}
-
-/*--------------------------- os_tick_val -----------------------------------*/
-
-// Get alternative hardware timer current value (0 .. OS_TRV)
-uint32_t os_tick_val (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_ovf -----------------------------------*/
-
-// Get alternative hardware timer overflow flag
-// Return: 1 - overflow, 0 - no overflow
-uint32_t os_tick_ovf (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_irqack --------------------------------*/
-
-// Acknowledge alternative hardware timer interrupt
-void os_tick_irqack (void) {
- /* ... */
-}
-
-#endif // (OS_SYSTICK == 0)
-
-/*--------------------------- os_error --------------------------------------*/
-
-/* OS Error Codes */
-#define OS_ERROR_STACK_OVF 1
-#define OS_ERROR_FIFO_OVF 2
-#define OS_ERROR_MBX_OVF 3
-
-extern osThreadId svcThreadGetId (void);
-
-void os_error (uint32_t error_code) {
- /* This function is called when a runtime error is detected. */
- /* Parameter 'error_code' holds the runtime error code. */
-
- /* HERE: include optional code to be executed on runtime error. */
- switch (error_code) {
- case OS_ERROR_STACK_OVF:
- /* Stack overflow detected for the currently running task. */
- /* Thread can be identified by calling svcThreadGetId(). */
- break;
- case OS_ERROR_FIFO_OVF:
- /* ISR FIFO Queue buffer overflow detected. */
- break;
- case OS_ERROR_MBX_OVF:
- /* Mailbox overflow detected. */
- break;
- }
- for (;;);
-}
-
-
-/*----------------------------------------------------------------------------
- * RTX Configuration Functions
- *---------------------------------------------------------------------------*/
-
-#include "RTX_CM_lib.h"
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/RTE_Device.h b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/RTE_Device.h
deleted file mode 100644
index 2648e44d4..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/RTE_Device.h
+++ /dev/null
@@ -1,3127 +0,0 @@
-/* -----------------------------------------------------------------------------
- * Copyright (C) 2013 ARM Limited. All rights reserved.
- *
- * $Date: 27. June 2013
- * $Revision: V1.01
- *
- * Project: RTE Device Configuration for ST STM32F2xx
- * -------------------------------------------------------------------------- */
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-#ifndef __RTE_DEVICE_H
-#define __RTE_DEVICE_H
-
-
-#define GPIO_PORT(num) \
- ((num == 0) ? GPIOA : \
- (num == 1) ? GPIOB : \
- (num == 2) ? GPIOC : \
- (num == 3) ? GPIOD : \
- (num == 4) ? GPIOE : \
- (num == 5) ? GPIOF : \
- (num == 6) ? GPIOG : \
- (num == 7) ? GPIOH : \
- (num == 8) ? GPIOI : \
- NULL)
-
-
-// Clock Configuration
-// High-speed Internal Clock <1-999999999>
-#define RTE_HSI 16000000
-// High-speed External Clock <1-999999999>
-#define RTE_HSE 25000000
-// System Clock <1-999999999>
-#define RTE_SYSCLK 120000000
-// AHB Clock <1-999999999>
-#define RTE_HCLK 120000000
-// APB1 Clock <1-999999999>
-#define RTE_PCLK1 30000000
-// APB2 Clock <1-999999999>
-#define RTE_PCLK2 60000000
-// 48MHz Clock
-#define RTE_PLL48CK 48000000
-//
-
-
-// USART1 (Universal synchronous asynchronous receiver transmitter) [Driver_UART1]
-// Configuration settings for Driver_UART1 in component ::Drivers:UART
-#define RTE_USART1 0
-
-// USART1_TX Pin <0=>PA9 <1=>PB6
-#define RTE_USART1_TX_ID 0
-#if (RTE_USART1_TX_ID == 0)
-#define RTE_USART1_TX_PORT GPIOA
-#define RTE_USART1_TX_BIT 9
-#elif (RTE_USART1_TX_ID == 1)
-#define RTE_USART1_TX_PORT GPIOB
-#define RTE_USART1_TX_BIT 6
-#else
-#error "Invalid USART1_TX Pin Configuration!"
-#endif
-
-// USART1_RX Pin <0=>PA10 <1=>PB7
-#define RTE_USART1_RX_ID 0
-#if (RTE_USART1_RX_ID == 0)
-#define RTE_USART1_RX_PORT GPIOA
-#define RTE_USART1_RX_BIT 10
-#elif (RTE_USART1_RX_ID == 1)
-#define RTE_USART1_RX_PORT GPIOB
-#define RTE_USART1_RX_BIT 7
-#else
-#error "Invalid USART1_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART1_CK Pin <0=>PA8
-//
-#define RTE_USART1_CK 0
-#define RTE_USART1_CK_ID 0
-#if (RTE_USART1_CK_ID == 0)
-#define RTE_USART1_CK_PORT GPIOA
-#define RTE_USART1_CK_BIT 8
-#else
-#error "Invalid USART1_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART1_CTS Pin <0=>PA11
-// USART1_RTS Pin <0=>PA12
-// Manual CTS/RTS
-//
-#define RTE_USART1_HW_FLOW 0
-#define RTE_USART1_CTS_ID 0
-#define RTE_USART1_RTS_ID 0
-#define RTE_USART1_MANUAL_FLOW 0
-#if (RTE_USART1_CTS_ID == 0)
-#define RTE_USART1_CTS_PORT GPIOA
-#define RTE_USART1_CTS_BIT 11
-#else
-#error "Invalid USART1_CTS Pin Configuration!"
-#endif
-#if (RTE_USART1_RTS_ID == 0)
-#define RTE_USART1_RTS_PORT GPIOA
-#define RTE_USART1_RTS_BIT 12
-#else
-#error "Invalid USART1_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <2=>2 <5=>5
-// Selects DMA Stream (only Stream 2 or 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_RX_DMA 1
-#define RTE_USART1_RX_DMA_NUMBER 2
-#define RTE_USART1_RX_DMA_STREAM 2
-#define RTE_USART1_RX_DMA_CHANNEL 4
-#define RTE_USART1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_TX_DMA 1
-#define RTE_USART1_TX_DMA_NUMBER 2
-#define RTE_USART1_TX_DMA_STREAM 7
-#define RTE_USART1_TX_DMA_CHANNEL 4
-#define RTE_USART1_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART2 (Universal synchronous asynchronous receiver transmitter) [Driver_UART2]
-// Configuration settings for Driver_UART2 in component ::Drivers:UART
-#define RTE_USART2 0
-
-// USART2_TX Pin <0=>PA2 <1=>PD5
-#define RTE_USART2_TX_ID 0
-#if (RTE_USART2_TX_ID == 0)
-#define RTE_USART2_TX_PORT GPIOA
-#define RTE_USART2_TX_BIT 2
-#elif (RTE_USART2_TX_ID == 1)
-#define RTE_USART2_TX_PORT GPIOD
-#define RTE_USART2_TX_BIT 5
-#else
-#error "Invalid USART2_TX Pin Configuration!"
-#endif
-
-// USART2_RX Pin <0=>PA3 <1=>PD6
-#define RTE_USART2_RX_ID 0
-#if (RTE_USART2_RX_ID == 0)
-#define RTE_USART2_RX_PORT GPIOA
-#define RTE_USART2_RX_BIT 3
-#elif (RTE_USART2_RX_ID == 1)
-#define RTE_USART2_RX_PORT GPIOD
-#define RTE_USART2_RX_BIT 6
-#else
-#error "Invalid USART2_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART2_CK Pin <0=>PA4 <1=>PD7
-//
-#define RTE_USART2_CK 0
-#define RTE_USART2_CK_ID 0
-#if (RTE_USART2_CK_ID == 0)
-#define RTE_USART2_CK_PORT GPIOA
-#define RTE_USART2_CK_BIT 4
-#elif (RTE_USART2_CK_ID == 1)
-#define RTE_USART2_CK_PORT GPIOD
-#define RTE_USART2_CK_BIT 7
-#else
-#error "Invalid USART2_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART2_CTS Pin <0=>PA0 <1=>PD3
-// USART2_RTS Pin <0=>PA1 <1=>PD4
-// Manual CTS/RTS
-//
-#define RTE_USART2_HW_FLOW 0
-#define RTE_USART2_CTS_ID 0
-#define RTE_USART2_RTS_ID 0
-#define RTE_USART2_MANUAL_FLOW 0
-#if (RTE_USART2_CTS_ID == 0)
-#define RTE_USART2_CTS_PORT GPIOA
-#define RTE_USART2_CTS_BIT 0
-#elif (RTE_USART2_CTS_ID == 1)
-#define RTE_USART2_CTS_PORT GPIOD
-#define RTE_USART2_CTS_BIT 3
-#else
-#error "Invalid USART2_CTS Pin Configuration!"
-#endif
-#if (RTE_USART2_RTS_ID == 0)
-#define RTE_USART2_RTS_PORT GPIOA
-#define RTE_USART2_RTS_BIT 1
-#elif (RTE_USART2_RTS_ID == 1)
-#define RTE_USART2_RTS_PORT GPIOD
-#define RTE_USART2_RTS_BIT 4
-#else
-#error "Invalid USART2_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5
-// Selects DMA Stream (only Stream 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_RX_DMA 1
-#define RTE_USART2_RX_DMA_NUMBER 1
-#define RTE_USART2_RX_DMA_STREAM 5
-#define RTE_USART2_RX_DMA_CHANNEL 4
-#define RTE_USART2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6
-// Selects DMA Stream (only Stream 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_TX_DMA 1
-#define RTE_USART2_TX_DMA_NUMBER 1
-#define RTE_USART2_TX_DMA_STREAM 6
-#define RTE_USART2_TX_DMA_CHANNEL 4
-#define RTE_USART2_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART3 (Universal synchronous asynchronous receiver transmitter) [Driver_UART3]
-// Configuration settings for Driver_UART3 in component ::Drivers:UART
-#define RTE_USART3 0
-
-// USART3_TX Pin <0=>PB10 <1=>PC10 <2=>PD8
-#define RTE_USART3_TX_ID 0
-#if (RTE_USART3_TX_ID == 0)
-#define RTE_USART3_TX_PORT GPIOB
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 1)
-#define RTE_USART3_TX_PORT GPIOC
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 2)
-#define RTE_USART3_TX_PORT GPIOD
-#define RTE_USART3_TX_BIT 8
-#else
-#error "Invalid USART3_TX Pin Configuration!"
-#endif
-
-// USART3_RX Pin <0=>PB11 <1=>PC11 <2=>PD9
-#define RTE_USART3_RX_ID 0
-#if (RTE_USART3_RX_ID == 0)
-#define RTE_USART3_RX_PORT GPIOB
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 1)
-#define RTE_USART3_RX_PORT GPIOC
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 2)
-#define RTE_USART3_RX_PORT GPIOD
-#define RTE_USART3_RX_BIT 9
-#else
-#error "Invalid USART3_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART3_CK Pin <0=>PB12 <1=>PC12 <2=>PD10
-//
-#define RTE_USART3_CK 0
-#define RTE_USART3_CK_ID 0
-#if (RTE_USART3_CK_ID == 0)
-#define RTE_USART3_CK_PORT GPIOB
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 1)
-#define RTE_USART3_CK_PORT GPIOC
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 2)
-#define RTE_USART3_CK_PORT GPIOD
-#define RTE_USART3_CK_BIT 10
-#else
-#error "Invalid USART3_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART3_CTS Pin <0=>PB13 <1=>PD11
-// USART3_RTS Pin <0=>PB14 <1=>PD12
-// Manual CTS/RTS
-//
-#define RTE_USART3_HW_FLOW 0
-#define RTE_USART3_CTS_ID 0
-#define RTE_USART3_RTS_ID 0
-#define RTE_USART3_MANUAL_FLOW 0
-#if (RTE_USART3_CTS_ID == 0)
-#define RTE_USART3_CTS_PORT GPIOB
-#define RTE_USART3_CTS_BIT 13
-#elif (RTE_USART3_CTS_ID == 1)
-#define RTE_USART3_CTS_PORT GPIOD
-#define RTE_USART3_CTS_BIT 11
-#else
-#error "Invalid USART3_CTS Pin Configuration!"
-#endif
-#if (RTE_USART3_RTS_ID == 0)
-#define RTE_USART3_RTS_PORT GPIOB
-#define RTE_USART3_RTS_BIT 14
-#elif (RTE_USART3_RTS_ID == 1)
-#define RTE_USART3_RTS_PORT GPIOD
-#define RTE_USART3_RTS_BIT 12
-#else
-#error "Invalid USART3_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <1=>1
-// Selects DMA Stream (only Stream 1 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_RX_DMA 1
-#define RTE_USART3_RX_DMA_NUMBER 1
-#define RTE_USART3_RX_DMA_STREAM 1
-#define RTE_USART3_RX_DMA_CHANNEL 4
-#define RTE_USART3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_TX_DMA 1
-#define RTE_USART3_TX_DMA_NUMBER 1
-#define RTE_USART3_TX_DMA_STREAM 3
-#define RTE_USART3_TX_DMA_CHANNEL 4
-#define RTE_USART3_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART4 (Universal asynchronous receiver transmitter) [Driver_UART4]
-// Configuration settings for Driver_UART4 in component ::Drivers:UART
-#define RTE_UART4 0
-
-// UART4_TX Pin <0=>PA0 <1=>PC10
-#define RTE_UART4_TX_ID 0
-#if (RTE_UART4_TX_ID == 0)
-#define RTE_UART4_TX_PORT GPIOA
-#define RTE_UART4_TX_BIT 0
-#elif (RTE_UART4_TX_ID == 1)
-#define RTE_UART4_TX_PORT GPIOC
-#define RTE_UART4_TX_BIT 10
-#else
-#error "Invalid UART4_TX Pin Configuration!"
-#endif
-
-// UART4_RX Pin <0=>PA1 <1=>PC11
-#define RTE_UART4_RX_ID 0
-#if (RTE_UART4_RX_ID == 0)
-#define RTE_UART4_RX_PORT GPIOA
-#define RTE_UART4_RX_BIT 1
-#elif (RTE_UART4_RX_ID == 1)
-#define RTE_UART4_RX_PORT GPIOC
-#define RTE_UART4_RX_BIT 11
-#else
-#error "Invalid UART4_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_RX_DMA 1
-#define RTE_UART4_RX_DMA_NUMBER 1
-#define RTE_UART4_RX_DMA_STREAM 2
-#define RTE_UART4_RX_DMA_CHANNEL 4
-#define RTE_UART4_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_TX_DMA 1
-#define RTE_UART4_TX_DMA_NUMBER 1
-#define RTE_UART4_TX_DMA_STREAM 4
-#define RTE_UART4_TX_DMA_CHANNEL 4
-#define RTE_UART4_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART5 (Universal asynchronous receiver transmitter) [Driver_UART5]
-// Configuration settings for Driver_UART5 in component ::Drivers:UART
-#define RTE_UART5 0
-
-// UART5_TX Pin <0=>PC12
-#define RTE_UART5_TX_ID 0
-#if (RTE_UART5_TX_ID == 0)
-#define RTE_UART5_TX_PORT GPIOC
-#define RTE_UART5_TX_BIT 12
-#else
-#error "Invalid UART5_TX Pin Configuration!"
-#endif
-
-// UART5_RX Pin <0=>PD2
-#define RTE_UART5_RX_ID 0
-#if (RTE_UART5_RX_ID == 0)
-#define RTE_UART5_RX_PORT GPIOD
-#define RTE_UART5_RX_BIT 2
-#else
-#error "Invalid UART5_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0
-// Selects DMA Stream (only Stream 0 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_RX_DMA 1
-#define RTE_UART5_RX_DMA_NUMBER 1
-#define RTE_UART5_RX_DMA_STREAM 0
-#define RTE_UART5_RX_DMA_CHANNEL 4
-#define RTE_UART5_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_TX_DMA 1
-#define RTE_UART5_TX_DMA_NUMBER 1
-#define RTE_UART5_TX_DMA_STREAM 7
-#define RTE_UART5_TX_DMA_CHANNEL 4
-#define RTE_UART5_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART6 (Universal synchronous asynchronous receiver transmitter) [Driver_UART6]
-// Configuration settings for Driver_UART6 in component ::Drivers:UART
-#define RTE_USART6 0
-
-// USART6_TX Pin <0=>PC6 <1=>PG14
-#define RTE_USART6_TX_ID 0
-#if (RTE_USART6_TX_ID == 0)
-#define RTE_USART6_TX_PORT GPIOC
-#define RTE_USART6_TX_BIT 6
-#elif (RTE_USART6_TX_ID == 1)
-#define RTE_USART6_TX_PORT GPIOG
-#define RTE_USART6_TX_BIT 14
-#else
-#error "Invalid USART6_TX Pin Configuration!"
-#endif
-
-// USART6_RX Pin <0=>PC7 <1=>PG9
-#define RTE_USART6_RX_ID 0
-#if (RTE_USART6_RX_ID == 0)
-#define RTE_USART6_RX_PORT GPIOC
-#define RTE_USART6_RX_BIT 7
-#elif (RTE_USART6_RX_ID == 1)
-#define RTE_USART6_RX_PORT GPIOG
-#define RTE_USART6_RX_BIT 9
-#else
-#error "Invalid USART6_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART6_CK Pin <0=>PC8 <1=>PG7
-//
-#define RTE_USART6_CK 0
-#define RTE_USART6_CK_ID 0
-#if (RTE_USART6_CK_ID == 0)
-#define RTE_USART6_CK_PORT GPIOC
-#define RTE_USART6_CK_BIT 8
-#elif (RTE_USART6_CK_ID == 1)
-#define RTE_USART6_CK_PORT GPIOG
-#define RTE_USART6_CK_BIT 7
-#else
-#error "Invalid USART6_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART6_CTS Pin <0=>PG13 <1=>PG15
-// USART6_RTS Pin <0=>PG8 <1=>PG12
-// Manual CTS/RTS
-//
-#define RTE_USART6_HW_FLOW 0
-#define RTE_USART6_CTS_ID 0
-#define RTE_USART6_RTS_ID 0
-#define RTE_USART6_MANUAL_FLOW 0
-#if (RTE_USART6_CTS_ID == 0)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 13
-#elif (RTE_USART6_CTS_ID == 1)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 15
-#else
-#error "Invalid USART6_CTS Pin Configuration!"
-#endif
-#if (RTE_USART6_RTS_ID == 0)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 8
-#elif (RTE_USART6_RTS_ID == 1)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 12
-#else
-#error "Invalid USART6_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <1=>1 <2=>2
-// Selects DMA Stream (only Stream 1 or 2 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_RX_DMA 1
-#define RTE_USART6_RX_DMA_NUMBER 2
-#define RTE_USART6_RX_DMA_STREAM 1
-#define RTE_USART6_RX_DMA_CHANNEL 5
-#define RTE_USART6_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_TX_DMA 1
-#define RTE_USART6_TX_DMA_NUMBER 2
-#define RTE_USART6_TX_DMA_STREAM 6
-#define RTE_USART6_TX_DMA_CHANNEL 5
-#define RTE_USART6_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C1 (Inter-integrated Circuit Interface 1) [Driver_I2C1]
-// Configuration settings for Driver_I2C1 in component ::Drivers:I2C
-#define RTE_I2C1 0
-
-// I2C1_SCL Pin <0=>PB6 <1=>PB8
-#define RTE_I2C1_SCL_PORT_ID 0
-#if (RTE_I2C1_SCL_PORT_ID == 0)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 6
-#elif (RTE_I2C1_SCL_PORT_ID == 1)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 8
-#else
-#error "Invalid I2C1_SCL Pin Configuration!"
-#endif
-
-// I2C1_SDA Pin <0=>PB7 <1=>PB9
-#define RTE_I2C1_SDA_PORT_ID 0
-#if (RTE_I2C1_SDA_PORT_ID == 0)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 7
-#elif (RTE_I2C1_SDA_PORT_ID == 1)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 9
-#else
-#error "Invalid I2C1_SDA Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <5=>5
-// Selects DMA Stream (only Stream 0 or 5 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_RX_DMA 1
-#define RTE_I2C1_RX_DMA_NUMBER 1
-#define RTE_I2C1_RX_DMA_STREAM 0
-#define RTE_I2C1_RX_DMA_CHANNEL 1
-#define RTE_I2C1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_TX_DMA 1
-#define RTE_I2C1_TX_DMA_NUMBER 1
-#define RTE_I2C1_TX_DMA_STREAM 6
-#define RTE_I2C1_TX_DMA_CHANNEL 1
-#define RTE_I2C1_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C2 (Inter-integrated Circuit Interface 2) [Driver_I2C2]
-// Configuration settings for Driver_I2C2 in component ::Drivers:I2C
-#define RTE_I2C2 0
-
-// I2C2_SCL Pin <0=>PF1 <1=>PH4 <2=>PB10
-#define RTE_I2C2_SCL_PORT_ID 0
-#if (RTE_I2C2_SCL_PORT_ID == 0)
-#define RTE_I2C2_SCL_PORT GPIOF
-#define RTE_I2C2_SCL_BIT 1
-#elif (RTE_I2C2_SCL_PORT_ID == 1)
-#define RTE_I2C2_SCL_PORT GPIOH
-#define RTE_I2C2_SCL_BIT 4
-#elif (RTE_I2C2_SCL_PORT_ID == 2)
-#define RTE_I2C2_SCL_PORT GPIOB
-#define RTE_I2C2_SCL_BIT 10
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// I2C2_SDA Pin <0=>PF0 <1=>PH5 <2=>PB11
-#define RTE_I2C2_SDA_PORT_ID 0
-#if (RTE_I2C2_SDA_PORT_ID == 0)
-#define RTE_I2C2_SDA_PORT GPIOF
-#define RTE_I2C2_SDA_BIT 0
-#elif (RTE_I2C2_SDA_PORT_ID == 1)
-#define RTE_I2C2_SDA_PORT GPIOH
-#define RTE_I2C2_SDA_BIT 5
-#elif (RTE_I2C2_SDA_PORT_ID == 2)
-#define RTE_I2C2_SDA_PORT GPIOB
-#define RTE_I2C2_SDA_BIT 11
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2 <3=>3
-// Selects DMA Stream (only Stream 2 or 3 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 7 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_RX_DMA 1
-#define RTE_I2C2_RX_DMA_NUMBER 1
-#define RTE_I2C2_RX_DMA_STREAM 2
-#define RTE_I2C2_RX_DMA_CHANNEL 7
-#define RTE_I2C2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_TX_DMA 1
-#define RTE_I2C2_TX_DMA_NUMBER 1
-#define RTE_I2C2_TX_DMA_STREAM 7
-#define RTE_I2C2_TX_DMA_CHANNEL 7
-#define RTE_I2C2_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C3 (Inter-integrated Circuit Interface 3) [Driver_I2C3]
-// Configuration settings for Driver_I2C3 in component ::Drivers:I2C
-#define RTE_I2C3 0
-
-// I2C3_SCL Pin <0=>PH7 <1=>PA8
-#define RTE_I2C3_SCL_PORT_ID 0
-#if (RTE_I2C3_SCL_PORT_ID == 0)
-#define RTE_I2C3_SCL_PORT GPIOH
-#define RTE_I2C3_SCL_BIT 7
-#elif (RTE_I2C3_SCL_PORT_ID == 1)
-#define RTE_I2C3_SCL_PORT GPIOA
-#define RTE_I2C3_SCL_BIT 8
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// I2C3_SDA Pin <0=>PH8 <1=>PC9
-#define RTE_I2C3_SDA_PORT_ID 0
-#if (RTE_I2C3_SDA_PORT_ID == 0)
-#define RTE_I2C3_SDA_PORT GPIOH
-#define RTE_I2C3_SDA_BIT 8
-#elif (RTE_I2C3_SDA_PORT_ID == 1)
-#define RTE_I2C3_SDA_PORT GPIOC
-#define RTE_I2C3_SDA_BIT 9
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_RX_DMA 1
-#define RTE_I2C3_RX_DMA_NUMBER 1
-#define RTE_I2C3_RX_DMA_STREAM 2
-#define RTE_I2C3_RX_DMA_CHANNEL 3
-#define RTE_I2C3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_TX_DMA 1
-#define RTE_I2C3_TX_DMA_NUMBER 1
-#define RTE_I2C3_TX_DMA_STREAM 4
-#define RTE_I2C3_TX_DMA_CHANNEL 3
-#define RTE_I2C3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI1 (Serial Peripheral Interface 1) [Driver_SPI1]
-// Configuration settings for Driver_SPI1 in component ::Drivers:SPI
-#define RTE_SPI1 0
-
-// SPI1_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI1_NSS_PIN 1
-#define RTE_SPI1_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI1_NSS_BIT 4
-
-// SPI1_SCK Pin <0=>PA5 <1=>PB3
-#define RTE_SPI1_SCL_PORT_ID 0
-#if (RTE_SPI1_SCL_PORT_ID == 0)
-#define RTE_SPI1_SCL_PORT GPIOA
-#define RTE_SPI1_SCL_BIT 5
-#elif (RTE_SPI1_SCL_PORT_ID == 1)
-#define RTE_SPI1_SCL_PORT GPIOB
-#define RTE_SPI1_SCL_BIT 3
-#else
-#error "Invalid SPI1_SCK Pin Configuration!"
-#endif
-
-// SPI1_MISO Pin <0=>PA6 <1=>PB4
-#define RTE_SPI1_MISO_PORT_ID 0
-#if (RTE_SPI1_MISO_PORT_ID == 0)
-#define RTE_SPI1_MISO_PORT GPIOA
-#define RTE_SPI1_MISO_BIT 6
-#elif (RTE_SPI1_MISO_PORT_ID == 1)
-#define RTE_SPI1_MISO_PORT GPIOB
-#define RTE_SPI1_MISO_BIT 4
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// SPI1_MOSI Pin <0=>PA7 <1=>PB5
-#define RTE_SPI1_MOSI_PORT_ID 0
-#if (RTE_SPI1_MOSI_PORT_ID == 0)
-#define RTE_SPI1_MOSI_PORT GPIOA
-#define RTE_SPI1_MOSI_BIT 7
-#elif (RTE_SPI1_MOSI_PORT_ID == 1)
-#define RTE_SPI1_MOSI_PORT GPIOB
-#define RTE_SPI1_MOSI_BIT 5
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_RX_DMA 1
-#define RTE_SPI1_RX_DMA_NUMBER 2
-#define RTE_SPI1_RX_DMA_STREAM 0
-#define RTE_SPI1_RX_DMA_CHANNEL 3
-#define RTE_SPI1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <5=>5
-// Selects DMA Stream (only Stream 3 or 5 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_TX_DMA 1
-#define RTE_SPI1_TX_DMA_NUMBER 2
-#define RTE_SPI1_TX_DMA_STREAM 5
-#define RTE_SPI1_TX_DMA_CHANNEL 3
-#define RTE_SPI1_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI2 (Serial Peripheral Interface 2) [Driver_SPI2]
-// Configuration settings for Driver_SPI2 in component ::Drivers:SPI
-#define RTE_SPI2 0
-
-// SPI2_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI2_NSS_PIN 1
-#define RTE_SPI2_NSS_PORT GPIO_PORT(1)
-#define RTE_SPI2_NSS_BIT 12
-
-// SPI2_SCK Pin <0=>PB10 <1=>PB13 <2=>PI1
-#define RTE_SPI2_SCL_PORT_ID 0
-#if (RTE_SPI2_SCL_PORT_ID == 0)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 10
-#elif (RTE_SPI2_SCL_PORT_ID == 1)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 13
-#elif (RTE_SPI2_SCL_PORT_ID == 2)
-#define RTE_SPI2_SCL_PORT GPIOI
-#define RTE_SPI2_SCL_BIT 1
-#else
-#error "Invalid SPI2_SCK Pin Configuration!"
-#endif
-
-// SPI2_MISO Pin <0=>PB14 <1=>PC2 <2=>PI2
-#define RTE_SPI2_MISO_PORT_ID 0
-#if (RTE_SPI2_MISO_PORT_ID == 0)
-#define RTE_SPI2_MISO_PORT GPIOB
-#define RTE_SPI2_MISO_BIT 14
-#elif (RTE_SPI2_MISO_PORT_ID == 1)
-#define RTE_SPI2_MISO_PORT GPIOC
-#define RTE_SPI2_MISO_BIT 2
-#elif (RTE_SPI2_MISO_PORT_ID == 2)
-#define RTE_SPI2_MISO_PORT GPIOI
-#define RTE_SPI2_MISO_BIT 2
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// SPI2_MOSI Pin <0=>PB15 <1=>PC3 <2=>OI3
-#define RTE_SPI2_MOSI_PORT_ID 0
-#if (RTE_SPI2_MOSI_PORT_ID == 0)
-#define RTE_SPI2_MOSI_PORT GPIOB
-#define RTE_SPI2_MOSI_BIT 15
-#elif (RTE_SPI2_MOSI_PORT_ID == 1)
-#define RTE_SPI2_MOSI_PORT GPIOC
-#define RTE_SPI2_MOSI_BIT 3
-#elif (RTE_SPI2_MOSI_PORT_ID == 2)
-#define RTE_SPI2_MOSI_PORT GPIOI
-#define RTE_SPI2_MOSI_BIT 3
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_RX_DMA 1
-#define RTE_SPI2_RX_DMA_NUMBER 1
-#define RTE_SPI2_RX_DMA_STREAM 2
-#define RTE_SPI2_RX_DMA_CHANNEL 0
-#define RTE_SPI2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_TX_DMA 1
-#define RTE_SPI2_TX_DMA_NUMBER 1
-#define RTE_SPI2_TX_DMA_STREAM 3
-#define RTE_SPI2_TX_DMA_CHANNEL 0
-#define RTE_SPI2_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI3 (Serial Peripheral Interface 3) [Driver_SPI3]
-// Configuration settings for Driver_SPI3 in component ::Drivers:SPI
-#define RTE_SPI3 0
-
-// SPI3_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI3_NSS_PIN 1
-#define RTE_SPI3_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI3_NSS_BIT 15
-
-// SPI3_SCK Pin <0=>PB3 <1=>PC10
-#define RTE_SPI3_SCL_PORT_ID 0
-#if (RTE_SPI3_SCL_PORT_ID == 0)
-#define RTE_SPI3_SCL_PORT GPIOB
-#define RTE_SPI3_SCL_BIT 3
-#elif (RTE_SPI3_SCL_PORT_ID == 1)
-#define RTE_SPI3_SCL_PORT GPIOC
-#define RTE_SPI3_SCL_BIT 10
-#else
-#error "Invalid SPI3_SCK Pin Configuration!"
-#endif
-
-// SPI3_MISO Pin <0=>PB4 <1=>PC11
-#define RTE_SPI3_MISO_PORT_ID 0
-#if (RTE_SPI3_MISO_PORT_ID == 0)
-#define RTE_SPI3_MISO_PORT GPIOB
-#define RTE_SPI3_MISO_BIT 4
-#elif (RTE_SPI3_MISO_PORT_ID == 1)
-#define RTE_SPI3_MISO_PORT GPIOC
-#define RTE_SPI3_MISO_BIT 11
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// SPI3_MOSI Pin <0=>PB5 <1=>PC12
-#define RTE_SPI3_MOSI_PORT_ID 0
-#if (RTE_SPI3_MOSI_PORT_ID == 0)
-#define RTE_SPI3_MOSI_PORT GPIOB
-#define RTE_SPI3_MOSI_BIT 5
-#elif (RTE_SPI3_MOSI_PORT_ID == 1)
-#define RTE_SPI3_MOSI_PORT GPIOC
-#define RTE_SPI3_MOSI_BIT 12
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_RX_DMA 1
-#define RTE_SPI3_RX_DMA_NUMBER 1
-#define RTE_SPI3_RX_DMA_STREAM 0
-#define RTE_SPI3_RX_DMA_CHANNEL 0
-#define RTE_SPI3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5 <7=>7
-// Selects DMA Stream (only Stream 5 or 7 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_TX_DMA 1
-#define RTE_SPI3_TX_DMA_NUMBER 1
-#define RTE_SPI3_TX_DMA_STREAM 5
-#define RTE_SPI3_TX_DMA_CHANNEL 0
-#define RTE_SPI3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SDIO (Secure Digital Input/Output) [Driver_MCI0]
-// Configuration settings for Driver_MCI0 in component ::Drivers:MCI
-#define RTE_SDIO 1
-
-// SDIO_CD (Card Detect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_CD_PIN 1
-#define RTE_SDIO_CD_ACTIVE 0
-#define RTE_SDIO_CD_PORT GPIO_PORT(7)
-#define RTE_SDIO_CD_BIT 15
-
-// SDIO_WP (Write Protect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_WP_PIN 0
-#define RTE_SDIO_WP_ACTIVE 0
-#define RTE_SDIO_WP_PORT GPIO_PORT(7)
-#define RTE_SDIO_WP_BIT 16
-
-// SDIO Bus
-// SDIO_CK Pin <0=>PC12
-#define RTE_SDIO_CK_PORT_ID 0
-#if (RTE_SDIO_CK_PORT_ID == 0)
-#define RTE_SDIO_CK_PORT GPIOC
-#define RTE_SDIO_CK_PIN 12
-#else
-#error "Invalid SDIO_CK Pin Configuration!"
-#endif
-// SDIO_CMD Pin <0=>PD2
-#define RTE_SDIO_CMD_PORT_ID 0
-#if (RTE_SDIO_CMD_PORT_ID == 0)
-#define RTE_SDIO_CMD_PORT GPIOD
-#define RTE_SDIO_CMD_PIN 2
-#else
-#error "Invalid SDIO_CDM Pin Configuration!"
-#endif
-// SDIO_D0 Pin <0=>PC8
-#define RTE_SDIO_D0_PORT_ID 0
-#if (RTE_SDIO_D0_PORT_ID == 0)
-#define RTE_SDIO_D0_PORT GPIOC
-#define RTE_SDIO_D0_PIN 8
-#else
-#error "Invalid SDIO_D0 Pin Configuration!"
-#endif
-// SDIO_D1 Pin <0=>PC9
-#define RTE_SDIO_D1_PORT_ID 0
-#if (RTE_SDIO_D1_PORT_ID == 0)
-#define RTE_SDIO_D1_PORT GPIOC
-#define RTE_SDIO_D1_PIN 9
-#else
-#error "Invalid SDIO_D1 Pin Configuration!"
-#endif
-// SDIO_D2 Pin <0=>PC10
-#define RTE_SDIO_D2_PORT_ID 0
-#if (RTE_SDIO_D2_PORT_ID == 0)
-#define RTE_SDIO_D2_PORT GPIOC
-#define RTE_SDIO_D2_PIN 10
-#else
-#error "Invalid SDIO_D2 Pin Configuration!"
-#endif
-// SDIO_D3 Pin <0=>PC11
-#define RTE_SDIO_D3_PORT_ID 0
-#if (RTE_SDIO_D3_PORT_ID == 0)
-#define RTE_SDIO_D3_PORT GPIOC
-#define RTE_SDIO_D3_PIN 11
-#else
-#error "Invalid SDIO_D3 Pin Configuration!"
-#endif
-// SDIO_D4 Pin <0=>PB8
-#define RTE_SDIO_D4_PORT_ID 0
-#if (RTE_SDIO_D4_PORT_ID == 0)
-#define RTE_SDIO_D4_PORT GPIOB
-#define RTE_SDIO_D4_PIN 8
-#else
-#error "Invalid SDIO_D4 Pin Configuration!"
-#endif
-// SDIO_D5 Pin <0=>PB9
-#define RTE_SDIO_D5_PORT_ID 0
-#if (RTE_SDIO_D5_PORT_ID == 0)
-#define RTE_SDIO_D5_PORT GPIOB
-#define RTE_SDIO_D5_PIN 9
-#else
-#error "Invalid SDIO_D5 Pin Configuration!"
-#endif
-// SDIO_D6 Pin <0=>PC6
-#define RTE_SDIO_D6_PORT_ID 0
-#if (RTE_SDIO_D6_PORT_ID == 0)
-#define RTE_SDIO_D6_PORT GPIOC
-#define RTE_SDIO_D6_PIN 6
-#else
-#error "Invalid SDIO_D6 Pin Configuration!"
-#endif
-// SDIO_D7 Pin <0=>PC7
-#define RTE_SDIO_D7_PORT_ID 0
-#if (RTE_SDIO_D7_PORT_ID == 0)
-#define RTE_SDIO_D7_PORT GPIOC
-#define RTE_SDIO_D7_PIN 7
-#else
-#error "Invalid SDIO_D7 Pin Configuration!"
-#endif
-//
-
-// DMA
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <6=>6
-// Selects DMA Stream (only Stream 3 or 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SDIO_DMA 1
-#define RTE_SDIO_DMA_NUMBER 2
-#define RTE_SDIO_DMA_STREAM 3
-#define RTE_SDIO_DMA_CHANNEL 4
-#define RTE_SDIO_DMA_PRIORITY 0
-
-//
-
-
-// ETH (Ethernet Interface) [Driver_ETH_MAC0]
-// Configuration settings for Driver_ETH_MAC0 in component ::Drivers:Ethernet MAC
-#define RTE_ETH 0
-
-// MII (Media Independent Interface)
-#define RTE_ETH_MII 0
-
-// ETH_MII_TX_CLK Pin <0=>PC3
-#define RTE_ETH_MII_TX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_TX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_TX_CLK_PORT GPIOC
-#define RTE_ETH_MII_TX_CLK_PIN 3
-#else
-#error "Invalid ETH_MII_TX_CLK Pin Configuration!"
-#endif
-// ETH_MII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_MII_TXD0_PORT_ID 0
-#if (RTE_ETH_MII_TXD0_PORT_ID == 0)
-#define RTE_ETH_MII_TXD0_PORT GPIOB
-#define RTE_ETH_MII_TXD0_PIN 12
-#elif (RTE_ETH_MII_TXD0_PORT_ID == 1)
-#define RTE_ETH_MII_TXD0_PORT GPIOG
-#define RTE_ETH_MII_TXD0_PIN 13
-#else
-#error "Invalid ETH_MII_TXD0 Pin Configuration!"
-#endif
-// ETH_MII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_MII_TXD1_PORT_ID 0
-#if (RTE_ETH_MII_TXD1_PORT_ID == 0)
-#define RTE_ETH_MII_TXD1_PORT GPIOB
-#define RTE_ETH_MII_TXD1_PIN 13
-#elif (RTE_ETH_MII_TXD1_PORT_ID == 1)
-#define RTE_ETH_MII_TXD1_PORT GPIOG
-#define RTE_ETH_MII_TXD1_PIN 14
-#else
-#error "Invalid ETH_MII_TXD1 Pin Configuration!"
-#endif
-// ETH_MII_TXD2 Pin <0=>PC2
-#define RTE_ETH_MII_TXD2_PORT_ID 0
-#if (RTE_ETH_MII_TXD2_PORT_ID == 0)
-#define RTE_ETH_MII_TXD2_PORT GPIOC
-#define RTE_ETH_MII_TXD2_PIN 2
-#else
-#error "Invalid ETH_MII_TXD2 Pin Configuration!"
-#endif
-// ETH_MII_TXD3 Pin <0=>PB8 <1=>PE2
-#define RTE_ETH_MII_TXD3_PORT_ID 0
-#if (RTE_ETH_MII_TXD3_PORT_ID == 0)
-#define RTE_ETH_MII_TXD3_PORT GPIOB
-#define RTE_ETH_MII_TXD3_PIN 8
-#elif (RTE_ETH_MII_TXD3_PORT_ID == 1)
-#define RTE_ETH_MII_TXD3_PORT GPIOE
-#define RTE_ETH_MII_TXD3_PIN 2
-#else
-#error "Invalid ETH_MII_TXD3 Pin Configuration!"
-#endif
-// ETH_MII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_MII_TX_EN_PORT_ID 0
-#if (RTE_ETH_MII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_MII_TX_EN_PORT GPIOB
-#define RTE_ETH_MII_TX_EN_PIN 11
-#elif (RTE_ETH_MII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_MII_TX_EN_PORT GPIOG
-#define RTE_ETH_MII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_MII_TX_EN Pin Configuration!"
-#endif
-// ETH_MII_RX_CLK Pin <0=>PA1
-#define RTE_ETH_MII_RX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_RX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_RX_CLK_PORT GPIOA
-#define RTE_ETH_MII_RX_CLK_PIN 1
-#else
-#error "Invalid ETH_MII_RX_CLK Pin Configuration!"
-#endif
-// ETH_MII_RXD0 Pin <0=>PC4
-#define RTE_ETH_MII_RXD0_PORT_ID 0
-#if (RTE_ETH_MII_RXD0_PORT_ID == 0)
-#define RTE_ETH_MII_RXD0_PORT GPIOC
-#define RTE_ETH_MII_RXD0_PIN 4
-#else
-#error "Invalid ETH_MII_RXD0 Pin Configuration!"
-#endif
-// ETH_MII_RXD1 Pin <0=>PC5
-#define RTE_ETH_MII_RXD1_PORT_ID 0
-#if (RTE_ETH_MII_RXD1_PORT_ID == 0)
-#define RTE_ETH_MII_RXD1_PORT GPIOC
-#define RTE_ETH_MII_RXD1_PIN 5
-#else
-#error "Invalid ETH_MII_RXD1 Pin Configuration!"
-#endif
-// ETH_MII_RXD2 Pin <0=>PB0 <1=>PH6
-#define RTE_ETH_MII_RXD2_PORT_ID 0
-#if (RTE_ETH_MII_RXD2_PORT_ID == 0)
-#define RTE_ETH_MII_RXD2_PORT GPIOB
-#define RTE_ETH_MII_RXD2_PIN 0
-#elif (RTE_ETH_MII_RXD2_PORT_ID == 1)
-#define RTE_ETH_MII_RXD2_PORT GPIOH
-#define RTE_ETH_MII_RXD2_PIN 6
-#else
-#error "Invalid ETH_MII_RXD2 Pin Configuration!"
-#endif
-// ETH_MII_RXD3 Pin <0=>PB1 <1=>PH7
-#define RTE_ETH_MII_RXD3_PORT_ID 0
-#if (RTE_ETH_MII_RXD3_PORT_ID == 0)
-#define RTE_ETH_MII_RXD3_PORT GPIOB
-#define RTE_ETH_MII_RXD3_PIN 1
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RXD3_PORT GPIOH
-#define RTE_ETH_MII_RXD3_PIN 7
-#else
-#error "Invalid ETH_MII_RXD3 Pin Configuration!"
-#endif
-// ETH_MII_RX_DV Pin <0=>PA7
-#define RTE_ETH_MII_RX_DV_PORT_ID 0
-#if (RTE_ETH_MII_RX_DV_PORT_ID == 0)
-#define RTE_ETH_MII_RX_DV_PORT GPIOA
-#define RTE_ETH_MII_RX_DV_PIN 7
-#else
-#error "Invalid ETH_MII_RX_DV Pin Configuration!"
-#endif
-// ETH_MII_RX_ER Pin <0=>PB10 <1=>PI10
-#define RTE_ETH_MII_RX_ER_PORT_ID 0
-#if (RTE_ETH_MII_RX_ER_PORT_ID == 0)
-#define RTE_ETH_MII_RX_ER_PORT GPIOB
-#define RTE_ETH_MII_RX_ER_PIN 10
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RX_ER_PORT GPIOI
-#define RTE_ETH_MII_RX_ER_PIN 10
-#else
-#error "Invalid ETH_MII_RX_ER Pin Configuration!"
-#endif
-// ETH_MII_CRS Pin <0=>PA0 <1=>PH2
-#define RTE_ETH_MII_CRS_PORT_ID 0
-#if (RTE_ETH_MII_CRS_PORT_ID == 0)
-#define RTE_ETH_MII_CRS_PORT GPIOA
-#define RTE_ETH_MII_CRS_PIN 0
-#elif (RTE_ETH_MII_CRS_PORT_ID == 1)
-#define RTE_ETH_MII_CRS_PORT GPIOH
-#define RTE_ETH_MII_CRS_PIN 2
-#else
-#error "Invalid ETH_MII_CRS Pin Configuration!"
-#endif
-// ETH_MII_COL Pin <0=>PA3 <1=>PH3
-#define RTE_ETH_MII_COL_PORT_ID 0
-#if (RTE_ETH_MII_COL_PORT_ID == 0)
-#define RTE_ETH_MII_COL_PORT GPIOA
-#define RTE_ETH_MII_COL_PIN 3
-#elif (RTE_ETH_MII_COL_PORT_ID == 1)
-#define RTE_ETH_MII_COL_PORT GPIOH
-#define RTE_ETH_MII_COL_PIN 3
-#else
-#error "Invalid ETH_MII_COL Pin Configuration!"
-#endif
-
-//
-
-// RMII (Reduced Media Independent Interface)
-#define RTE_ETH_RMII 1
-
-// ETH_RMII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_RMII_TXD0_PORT_ID 1
-#if (RTE_ETH_RMII_TXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD0_PORT GPIOB
-#define RTE_ETH_RMII_TXD0_PIN 12
-#elif (RTE_ETH_RMII_TXD0_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD0_PORT GPIOG
-#define RTE_ETH_RMII_TXD0_PIN 13
-#else
-#error "Invalid ETH_RMII_TXD0 Pin Configuration!"
-#endif
-// ETH_RMII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_RMII_TXD1_PORT_ID 1
-#if (RTE_ETH_RMII_TXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD1_PORT GPIOB
-#define RTE_ETH_RMII_TXD1_PIN 13
-#elif (RTE_ETH_RMII_TXD1_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD1_PORT GPIOG
-#define RTE_ETH_RMII_TXD1_PIN 14
-#else
-#error "Invalid ETH_RMII_TXD1 Pin Configuration!"
-#endif
-// ETH_RMII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_RMII_TX_EN_PORT_ID 1
-#if (RTE_ETH_RMII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOB
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#elif (RTE_ETH_RMII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOG
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_RMII_TX_EN Pin Configuration!"
-#endif
-// ETH_RMII_RXD0 Pin <0=>PC4
-#define RTE_ETH_RMII_RXD0_PORT_ID 0
-#if (RTE_ETH_RMII_RXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD0_PORT GPIOC
-#define RTE_ETH_RMII_RXD0_PIN 4
-#else
-#error "Invalid ETH_RMII_RXD0 Pin Configuration!"
-#endif
-// ETH_RMII_RXD1 Pin <0=>PC5
-#define RTE_ETH_RMII_RXD1_PORT_ID 0
-#if (RTE_ETH_RMII_RXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD1_PORT GPIOC
-#define RTE_ETH_RMII_RXD1_PIN 5
-#else
-#error "Invalid ETH_RMII_RXD1 Pin Configuration!"
-#endif
-// ETH_RMII_REF_CLK Pin <0=>PA1
-#define RTE_ETH_RMII_REF_CLK_PORT_ID 0
-#if (RTE_ETH_RMII_REF_CLK_PORT_ID == 0)
-#define RTE_ETH_RMII_REF_CLK_PORT GPIOA
-#define RTE_ETH_RMII_REF_CLK_PIN 1
-#else
-#error "Invalid ETH_RMII_REF_CLK Pin Configuration!"
-#endif
-// ETH_RMII_CRS_DV Pin <0=>PA7
-#define RTE_ETH_RMII_CRS_DV_PORT_ID 0
-#if (RTE_ETH_RMII_CRS_DV_PORT_ID == 0)
-#define RTE_ETH_RMII_CRS_DV_PORT GPIOA
-#define RTE_ETH_RMII_CRS_DV_PIN 7
-#else
-#error "Invalid ETH_RMII_CRS_DV Pin Configuration!"
-#endif
-
-//
-
-// Management Data Interface
-// ETH_MDC Pin <0=>PC1
-#define RTE_ETH_MDI_MDC_PORT_ID 0
-#if (RTE_ETH_MDI_MDC_PORT_ID == 0)
-#define RTE_ETH_MDI_MDC_PORT GPIOC
-#define RTE_ETH_MDI_MDC_PIN 1
-#else
-#error "Invalid ETH_MDC Pin Configuration!"
-#endif
-// ETH_MDIO Pin <0=>PA2
-#define RTE_ETH_MDI_MDIO_PORT_ID 0
-#if (RTE_ETH_MDI_MDIO_PORT_ID == 0)
-#define RTE_ETH_MDI_MDIO_PORT GPIOA
-#define RTE_ETH_MDI_MDIO_PIN 2
-#else
-#error "Invalid ETH_MDIO Pin Configuration!"
-#endif
-//
-
-// Reference 25MHz/50MHz Clock generation
-#define RTE_ETH_REF_CLOCK 0
-
-// MCO Pin <0=>PA2 <1=>PC9
-#define RTE_ETH_REF_CLOCK_PORT_ID 0
-#if (RTE_ETH_REF_CLOCK_PORT_ID == 0)
-#define RTE_ETH_REF_CLOCK_PORT GPIOA
-#define RTE_ETH_REF_CLOCK_PIN 8
-#elif (RTE_ETH_REF_CLOCK_PORT_ID == 1)
-#define RTE_ETH_REF_CLOCK_PORT GPIOC
-#define RTE_ETH_REF_CLOCK_PIN 9
-#else
-#error "Invalid MCO Pin Configuration!"
-#endif
-
-//
-
-//
-
-
-// USB OTG Full-speed
-#define RTE_USB_OTG_FS 0
-
-// Device [Driver_USBD0]
-// Configuration settings for Driver_USBD0 in component ::Drivers:USB Device
-#define RTE_USB_OTG_FS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_FS_DEV_EP 0x0000000F
-#define RTE_USB_OTG_FS_DEV_EP_BULK 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_INT 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_ISO 0x000E000E
-
-//
-
-// Host [Driver_USBH0]
-// Configuration settings for Driver_USBH0 in component ::Drivers:USB Host
-
-#define RTE_USB_OTG_FS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_VBUS_PIN 1
-#define RTE_OTG_FS_VBUS_ACTIVE 0
-#define RTE_OTG_FS_VBUS_PORT GPIO_PORT(7)
-#define RTE_OTG_FS_VBUS_BIT 5
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_OC_PIN 1
-#define RTE_OTG_FS_OC_ACTIVE 0
-#define RTE_OTG_FS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_FS_OC_BIT 11
-//
-
-//
-
-
-// USB OTG High-speed
-#define RTE_USB_OTG_HS 0
-
-// PHY (Physical Layer)
-
-// PHY Interface
-// <0=>On-chip full-speed PHY
-// <1=>External ULPI high-speed PHY
-#define RTE_USB_OTG_HS_PHY 1
-
-// External ULPI Pins (UTMI+ Low Pin Interface)
-
-// OTG_HS_ULPI_CK Pin <0=>PA5
-#define RTE_USB_OTG_HS_ULPI_CK_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_CK_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_CK_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_CK_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_CK Pin Configuration!"
-#endif
-// OTG_HS_ULPI_DIR Pin <0=>PI11 <1=>PC2
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOI
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 11
-#elif (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 2
-#else
-#error "Invalid OTG_HS_ULPI_DIR Pin Configuration!"
-#endif
-// OTG_HS_ULPI_STP Pin <0=>PC0
-#define RTE_USB_OTG_HS_ULPI_STP_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_STP_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_STP_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_STP_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_STP Pin Configuration!"
-#endif
-// OTG_HS_ULPI_NXT Pin <0=>PC2 <1=>PH4
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT_ID 1
-#if (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 2
-#elif (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOH
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 4
-#else
-#error "Invalid OTG_HS_ULPI_NXT Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D0 Pin <0=>PA3
-#define RTE_USB_OTG_HS_ULPI_D0_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D0_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D0_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_D0_PIN 3
-#else
-#error "Invalid OTG_HS_ULPI_D0 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D1 Pin <0=>PB0
-#define RTE_USB_OTG_HS_ULPI_D1_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D1_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D1_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D1_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_D1 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D2 Pin <0=>PB1
-#define RTE_USB_OTG_HS_ULPI_D2_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D2_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D2_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D2_PIN 1
-#else
-#error "Invalid OTG_HS_ULPI_D2 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D3 Pin <0=>PB10
-#define RTE_USB_OTG_HS_ULPI_D3_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D3_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D3_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D3_PIN 10
-#else
-#error "Invalid OTG_HS_ULPI_D3 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D4 Pin <0=>PB11
-#define RTE_USB_OTG_HS_ULPI_D4_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D4_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D4_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D4_PIN 11
-#else
-#error "Invalid OTG_HS_ULPI_D4 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D5 Pin <0=>PB12
-#define RTE_USB_OTG_HS_ULPI_D5_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D5_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D5_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D5_PIN 12
-#else
-#error "Invalid OTG_HS_ULPI_D5 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D6 Pin <0=>PB13
-#define RTE_USB_OTG_HS_ULPI_D6_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D6_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D6_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D6_PIN 13
-#else
-#error "Invalid OTG_HS_ULPI_D6 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D7 Pin <0=>PB5
-#define RTE_USB_OTG_HS_ULPI_D7_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D7_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D7_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D7_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_D7 Pin Configuration!"
-#endif
-
-//
-
-//
-
-// Device [Driver_USBD1]
-// Configuration settings for Driver_USBD1 in component ::Drivers:USB Device
-#define RTE_USB_OTG_HS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 4
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 5
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_HS_DEV_EP 0x0000003F
-#define RTE_USB_OTG_HS_DEV_EP_BULK 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_INT 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_ISO 0x003E003E
-
-//
-
-// Host [Driver_USBH1]
-// Configuration settings for Driver_USBH1 in component ::Drivers:USB Host
-#define RTE_USB_OTG_HS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_VBUS_PIN 1
-#define RTE_OTG_HS_VBUS_ACTIVE 0
-#define RTE_OTG_HS_VBUS_PORT GPIO_PORT(2)
-#define RTE_OTG_HS_VBUS_BIT 2
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_OC_PIN 1
-#define RTE_OTG_HS_OC_ACTIVE 0
-#define RTE_OTG_HS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_HS_OC_BIT 12
-//
-
-//
-
-
-// EXTI (External Interrupt/Event Controller)
-#define RTE_EXTI 0
-
-// EXTI0 Line
-#define RTE_EXTI0 0
-// Pin <0=>PA0 <1=>PB0 <2=>PC0 <3=>PD0 <4=>PE0 <5=>PF0 <6=>PG0 <7=>PH0 <8=>PI0
-#define RTE_EXTI0_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI0_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI0_TRIGGER 0
-//
-
-// EXTI1 Line
-#define RTE_EXTI1 0
-// Pin <0=>PA1 <1=>PB1 <2=>PC1 <3=>PD1 <4=>PE1 <5=>PF1 <6=>PG1 <7=>PH1 <8=>PI1
-#define RTE_EXTI1_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI1_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI1_TRIGGER 0
-//
-
-// EXTI2 Line
-#define RTE_EXTI2 0
-// Pin <0=>PA2 <1=>PB2 <2=>PC2 <3=>PD2 <4=>PE2 <5=>PF2 <6=>PG2 <7=>PH2 <8=>PI2
-#define RTE_EXTI2_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI2_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI2_TRIGGER 0
-//
-
-// EXTI3 Line
-#define RTE_EXTI3 0
-// Pin <0=>PA3 <1=>PB3 <2=>PC3 <3=>PD3 <4=>PE3 <5=>PF3 <6=>PG3 <7=>PH3 <8=>PI3
-#define RTE_EXTI3_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI3_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI3_TRIGGER 0
-//
-
-// EXTI4 Line
-#define RTE_EXTI4 0
-// Pin <0=>PA4 <1=>PB4 <2=>PC4 <3=>PD4 <4=>PE4 <5=>PF4 <6=>PG4 <7=>PH4 <8=>PI4
-#define RTE_EXTI4_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI4_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI4_TRIGGER 0
-//
-
-// EXTI5 Line
-#define RTE_EXTI5 0
-// Pin <0=>PA5 <1=>PB5 <2=>PC5 <3=>PD5 <4=>PE5 <5=>PF5 <6=>PG5 <7=>PH5 <8=>PI5
-#define RTE_EXTI5_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI5_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI5_TRIGGER 0
-//
-
-// EXTI6 Line
-#define RTE_EXTI6 0
-// Pin <0=>PA6 <1=>PB6 <2=>PC6 <3=>PD6 <4=>PE6 <5=>PF6 <6=>PG6 <7=>PH6 <8=>PI6
-#define RTE_EXTI6_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI6_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI6_TRIGGER 0
-//
-
-// EXTI7 Line
-#define RTE_EXTI7 0
-// Pin <0=>PA7 <1=>PB7 <2=>PC7 <3=>PD7 <4=>PE7 <5=>PF7 <6=>PG7 <7=>PH7 <8=>PI7
-#define RTE_EXTI7_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI7_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI7_TRIGGER 0
-//
-
-// EXTI8 Line
-#define RTE_EXTI8 0
-// Pin <0=>PA8 <1=>PB8 <2=>PC8 <3=>PD8 <4=>PE8 <5=>PF8 <6=>PG8 <7=>PH8 <8=>PI8
-#define RTE_EXTI8_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI8_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI8_TRIGGER 0
-//
-
-// EXTI9 Line
-#define RTE_EXTI9 0
-// Pin <0=>PA9 <1=>PB9 <2=>PC9 <3=>PD9 <4=>PE9 <5=>PF9 <6=>PG9 <7=>PH9 <8=>PI9
-#define RTE_EXTI9_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI9_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI9_TRIGGER 0
-//
-
-// EXTI10 Line
-#define RTE_EXTI10 0
-// Pin <0=>PA10 <1=>PB10 <2=>PC10 <3=>PD10 <4=>PE10 <5=>PF10 <6=>PG10 <7=>PH10 <8=>PI10
-#define RTE_EXTI10_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI10_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI10_TRIGGER 0
-//
-
-// EXTI11 Line
-#define RTE_EXTI11 0
-// Pin <0=>PA11 <1=>PB11 <2=>PC11 <3=>PD11 <4=>PE11 <5=>PF11 <6=>PG11 <7=>PH11 <8=>PI11
-#define RTE_EXTI11_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI11_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI11_TRIGGER 0
-//
-
-// EXTI12 Line
-#define RTE_EXTI12 0
-// Pin <0=>PA12 <1=>PB12 <2=>PC12 <3=>PD12 <4=>PE12 <5=>PF12 <6=>PG12 <7=>PH12
-#define RTE_EXTI12_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI12_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI12_TRIGGER 0
-//
-
-// EXTI13 Line
-#define RTE_EXTI13 0
-// Pin <0=>PA13 <1=>PB13 <2=>PC13 <3=>PD13 <4=>PE13 <5=>PF13 <6=>PG13 <7=>PH13
-#define RTE_EXTI13_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI13_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI13_TRIGGER 0
-//
-
-// EXTI14 Line
-#define RTE_EXTI14 0
-// Pin <0=>PA14 <1=>PB14 <2=>PC14 <3=>PD14 <4=>PE14 <5=>PF14 <6=>PG14 <7=>PH14
-#define RTE_EXTI14_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI14_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI14_TRIGGER 0
-//
-
-// EXTI15 Line
-#define RTE_EXTI15 0
-// Pin <0=>PA15 <1=>PB15 <2=>PC15 <3=>PD15 <4=>PE15 <5=>PF15 <6=>PG15 <7=>PH15
-#define RTE_EXTI15_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI15_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI15_TRIGGER 0
-//
-
-// EXTI16 Line: PVD Output
-#define RTE_EXTI16 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI16_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI16_TRIGGER 0
-//
-
-// EXTI17 Line: RTC Alarm
-#define RTE_EXTI17 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI17_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI17_TRIGGER 0
-//
-
-// EXTI18 Line: USB OTG FS Wakeup
-#define RTE_EXTI18 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI18_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI18_TRIGGER 0
-//
-
-// EXTI19 Line: Ethernet Wakeup
-#define RTE_EXTI19 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI19_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI19_TRIGGER 0
-//
-
-// EXTI20 Line: USB OTG HS Wakeup
-#define RTE_EXTI20 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI20_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI20_TRIGGER 0
-//
-
-// EXTI21 Line: RTC Tamper and TimeStamp
-#define RTE_EXTI21 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI21_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI21_TRIGGER 0
-//
-
-// EXTI22 Line: RTC Wakeup
-#define RTE_EXTI22 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI22_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI22_TRIGGER 0
-//
-
-//
-
-
-// FSMC (Flexible Static Memory Controller)
-#define RTE_FSMC 0
-
-// Pin Configuration
-// Configure Pins
-#define RTE_FSMC_PINS 0
-
-// Address Bus Pins
-// <0=>A[17:16]
-// <1=>A[10:0] <2=>A[15:0] <3=>A[16:0] <4=>A[17:0]
-// <5=>A[18:0] <6=>A[19:0] <7=>A[20:0] <8=>A[21:0]
-// <9=>A[22:0] <10=>A[23:0] <11=>A[24:0] <12=>A[25:0]
-#define RTE_FSMC_ABUS_PINS 10
-// Data Bus Pins <0=>D[7:0] <1=>D[15:0]
-#define RTE_FSMC_DBUS_PINS 0
-// FSMC_NOE Pin
-#define RTE_FSMC_NOE_PIN 0
-// FSMC_NWE Pin
-#define RTE_FSMC_NWE_PIN 0
-// FSMC_NBL0 Pin
-#define RTE_FSMC_NBL0_PIN 0
-// FSMC_NBL1 Pin
-#define RTE_FSMC_NBL1_PIN 0
-// FSMC_NL Pin
-#define RTE_FSMC_NL_PIN 0
-// FSMC_NWAIT Pin
-#define RTE_FSMC_NWAIT_PIN 0
-// FSMC_CLK Pin
-#define RTE_FSMC_CLK_PIN 0
-// FSMC_NE1/NCE2 Pin
-#define RTE_FSMC_NE1_PIN 0
-// FSMC_NE2/NCE3 Pin
-#define RTE_FSMC_NE2_PIN 0
-// FSMC_NE3/NCE4_1 Pin
-#define RTE_FSMC_NE3_PIN 0
-// FSMC_NE4 Pin
-#define RTE_FSMC_NE4_PIN 0
-// FSMC_NCE4_2 Pin
-#define RTE_FSMC_NCE42_PIN 0
-// FSMC_INT2 Pin
-#define RTE_FSMC_INT2_PIN 0
-// FSMC_INT3 Pin
-#define RTE_FSMC_INT3_PIN 0
-// FSMC_INTR Pin
-#define RTE_FSMC_INTR_PIN 0
-// FSMC_NIORD Pin
-#define RTE_FSMC_NIORD_PIN 0
-// FSMC_NIOWR Pin
-#define RTE_FSMC_NIOWR_PIN 0
-// FSMC_NREG Pin
-#define RTE_FSMC_NREG_PIN 0
-// FSMC_CD Pin
-#define RTE_FSMC_CD_PIN 0
-
-//
-
-// NOR Flash / PSRAM Controller
-
-// FSMC_NE1 Chip Select
-// Configure Device on Chip Select FSMC_NE1
-#define RTE_FSMC_NE1 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR1_CBURSTRW 0
-#define RTE_FSMC_BCR1_ASYNCWAIT 0
-#define RTE_FSMC_BCR1_EXTMOD 0
-#define RTE_FSMC_BCR1_WAITEN 1
-#define RTE_FSMC_BCR1_WREN 1
-#define RTE_FSMC_BCR1_WAITCFG 0
-#define RTE_FSMC_BCR1_WRAPMOD 0
-#define RTE_FSMC_BCR1_WAITPOL 0
-#define RTE_FSMC_BCR1_BURSTEN 0
-#define RTE_FSMC_BCR1_FACCEN 1
-#define RTE_FSMC_BCR1_MWID 1
-#define RTE_FSMC_BCR1_MTYP 2
-#define RTE_FSMC_BCR1_MUXEN 1
-#define RTE_FSMC_BCR1_MBKEN 1
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR1_ACCMOD 0
-#define RTE_FSMC_BTR1_DATLAT 15
-#define RTE_FSMC_BTR1_CLKDIV 15
-#define RTE_FSMC_BTR1_BUSTURN 15
-#define RTE_FSMC_BTR1_DATAST 255
-#define RTE_FSMC_BTR1_ADDHLD 15
-#define RTE_FSMC_BTR1_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR1_ACCMOD 0
-#define RTE_FSMC_BWTR1_DATLAT 15
-#define RTE_FSMC_BWTR1_CLKDIV 15
-#define RTE_FSMC_BWTR1_BUSTURN 15
-#define RTE_FSMC_BWTR1_DATAST 255
-#define RTE_FSMC_BWTR1_ADDHLD 15
-#define RTE_FSMC_BWTR1_ADDSET 15
-//
-//
-
-// FSMC_NE2 Chip Select
-// Configure Device on Chip Select FSMC_NE2
-#define RTE_FSMC_NE2 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR2_CBURSTRW 0
-#define RTE_FSMC_BCR2_ASYNCWAIT 0
-#define RTE_FSMC_BCR2_EXTMOD 0
-#define RTE_FSMC_BCR2_WAITEN 1
-#define RTE_FSMC_BCR2_WREN 1
-#define RTE_FSMC_BCR2_WAITCFG 0
-#define RTE_FSMC_BCR2_WRAPMOD 0
-#define RTE_FSMC_BCR2_WAITPOL 0
-#define RTE_FSMC_BCR2_BURSTEN 0
-#define RTE_FSMC_BCR2_FACCEN 1
-#define RTE_FSMC_BCR2_MWID 1
-#define RTE_FSMC_BCR2_MTYP 0
-#define RTE_FSMC_BCR2_MUXEN 1
-#define RTE_FSMC_BCR2_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR2_ACCMOD 0
-#define RTE_FSMC_BTR2_DATLAT 15
-#define RTE_FSMC_BTR2_CLKDIV 15
-#define RTE_FSMC_BTR2_BUSTURN 15
-#define RTE_FSMC_BTR2_DATAST 255
-#define RTE_FSMC_BTR2_ADDHLD 15
-#define RTE_FSMC_BTR2_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR2_ACCMOD 0
-#define RTE_FSMC_BWTR2_DATLAT 15
-#define RTE_FSMC_BWTR2_CLKDIV 15
-#define RTE_FSMC_BWTR2_BUSTURN 15
-#define RTE_FSMC_BWTR2_DATAST 255
-#define RTE_FSMC_BWTR2_ADDHLD 15
-#define RTE_FSMC_BWTR2_ADDSET 15
-//
-//
-
-// FSMC_NE3 Chip Select
-// Configure Device on Chip Select FSMC_NE3
-#define RTE_FSMC_NE3 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR3_CBURSTRW 0
-#define RTE_FSMC_BCR3_ASYNCWAIT 0
-#define RTE_FSMC_BCR3_EXTMOD 0
-#define RTE_FSMC_BCR3_WAITEN 1
-#define RTE_FSMC_BCR3_WREN 1
-#define RTE_FSMC_BCR3_WAITCFG 0
-#define RTE_FSMC_BCR3_WRAPMOD 0
-#define RTE_FSMC_BCR3_WAITPOL 0
-#define RTE_FSMC_BCR3_BURSTEN 0
-#define RTE_FSMC_BCR3_FACCEN 1
-#define RTE_FSMC_BCR3_MWID 1
-#define RTE_FSMC_BCR3_MTYP 0
-#define RTE_FSMC_BCR3_MUXEN 1
-#define RTE_FSMC_BCR3_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR3_ACCMOD 0
-#define RTE_FSMC_BTR3_DATLAT 15
-#define RTE_FSMC_BTR3_CLKDIV 15
-#define RTE_FSMC_BTR3_BUSTURN 15
-#define RTE_FSMC_BTR3_DATAST 255
-#define RTE_FSMC_BTR3_ADDHLD 15
-#define RTE_FSMC_BTR3_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR3_ACCMOD 0
-#define RTE_FSMC_BWTR3_DATLAT 15
-#define RTE_FSMC_BWTR3_CLKDIV 15
-#define RTE_FSMC_BWTR3_BUSTURN 15
-#define RTE_FSMC_BWTR3_DATAST 255
-#define RTE_FSMC_BWTR3_ADDHLD 15
-#define RTE_FSMC_BWTR3_ADDSET 15
-//
-//
-
-// FSMC_NE4 Chip Select
-// Configure Device on Chip Select FSMC_NE4
-#define RTE_FSMC_NE4 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR4_CBURSTRW 0
-#define RTE_FSMC_BCR4_ASYNCWAIT 0
-#define RTE_FSMC_BCR4_EXTMOD 0
-#define RTE_FSMC_BCR4_WAITEN 1
-#define RTE_FSMC_BCR4_WREN 1
-#define RTE_FSMC_BCR4_WAITCFG 0
-#define RTE_FSMC_BCR4_WRAPMOD 0
-#define RTE_FSMC_BCR4_WAITPOL 0
-#define RTE_FSMC_BCR4_BURSTEN 0
-#define RTE_FSMC_BCR4_FACCEN 1
-#define RTE_FSMC_BCR4_MWID 1
-#define RTE_FSMC_BCR4_MTYP 0
-#define RTE_FSMC_BCR4_MUXEN 1
-#define RTE_FSMC_BCR4_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR4_ACCMOD 0
-#define RTE_FSMC_BTR4_DATLAT 15
-#define RTE_FSMC_BTR4_CLKDIV 15
-#define RTE_FSMC_BTR4_BUSTURN 15
-#define RTE_FSMC_BTR4_DATAST 255
-#define RTE_FSMC_BTR4_ADDHLD 15
-#define RTE_FSMC_BTR4_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR4_ACCMOD 0
-#define RTE_FSMC_BWTR4_DATLAT 15
-#define RTE_FSMC_BWTR4_CLKDIV 15
-#define RTE_FSMC_BWTR4_BUSTURN 15
-#define RTE_FSMC_BWTR4_DATAST 255
-#define RTE_FSMC_BWTR4_ADDHLD 15
-#define RTE_FSMC_BWTR4_ADDSET 15
-//
-//
-
-//
-
-// NAND Flash Controller
-
-// FSMC_NCE2 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE2
-#define RTE_FSMC_NCE2 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR2_ECCPS 0
-#define RTE_FSMC_PCR2_TAR 0
-#define RTE_FSMC_PCR2_TCLR 0
-#define RTE_FSMC_PCR2_ECCEN 0
-#define RTE_FSMC_PCR2_PWID 0
-#define RTE_FSMC_PCR2_PTYP 1
-#define RTE_FSMC_PCR2_PBKEN 0
-#define RTE_FSMC_PCR2_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR2_IFEN 0
-#define RTE_FSMC_SR2_ILEN 0
-#define RTE_FSMC_SR2_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM2_MEMHIZ 255
-#define RTE_FSMC_PMEM2_MEMHOLD 255
-#define RTE_FSMC_PMEM2_MEMWAIT 255
-#define RTE_FSMC_PMEM2_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT2_ATTHIZ 255
-#define RTE_FSMC_PATT2_ATTHOLD 255
-#define RTE_FSMC_PATT2_ATTWAIT 255
-#define RTE_FSMC_PATT2_ATTSET 255
-
-//
-
-//
-
-// FSMC_NCE3 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE3
-#define RTE_FSMC_NCE3 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR3_ECCPS 0
-#define RTE_FSMC_PCR3_TAR 0
-#define RTE_FSMC_PCR3_TCLR 0
-#define RTE_FSMC_PCR3_ECCEN 0
-#define RTE_FSMC_PCR3_PWID 0
-#define RTE_FSMC_PCR3_PTYP 1
-#define RTE_FSMC_PCR3_PBKEN 0
-#define RTE_FSMC_PCR3_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR3_IFEN 0
-#define RTE_FSMC_SR3_ILEN 0
-#define RTE_FSMC_SR3_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM3_MEMHIZ 255
-#define RTE_FSMC_PMEM3_MEMHOLD 255
-#define RTE_FSMC_PMEM3_MEMWAIT 255
-#define RTE_FSMC_PMEM3_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT3_ATTHIZ 255
-#define RTE_FSMC_PATT3_ATTHOLD 255
-#define RTE_FSMC_PATT3_ATTWAIT 255
-#define RTE_FSMC_PATT3_ATTSET 255
-
-//
-
-//
-
-//
-
-// PC Card Controller
-
-// FSMC_NCE4_x Chip Select
-// Configure PC Card/CompactFlash Device on Chip Select FSMC_NCE4_1/FSMC_NCE4_2
-#define RTE_FSMC_NCE4 0
-
-// PC Card Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <0=>PC Card, CompactFlash, CF+ or PCMCIOA
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: PC Card memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR4_ECCPS 0
-#define RTE_FSMC_PCR4_TAR 0
-#define RTE_FSMC_PCR4_TCLR 0
-#define RTE_FSMC_PCR4_ECCEN 0
-#define RTE_FSMC_PCR4_PWID 0
-#define RTE_FSMC_PCR4_PTYP 0
-#define RTE_FSMC_PCR4_PBKEN 0
-#define RTE_FSMC_PCR4_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR4_IFEN 0
-#define RTE_FSMC_SR4_ILEN 0
-#define RTE_FSMC_SR4_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM4_MEMHIZ 255
-#define RTE_FSMC_PMEM4_MEMHOLD 255
-#define RTE_FSMC_PMEM4_MEMWAIT 255
-#define RTE_FSMC_PMEM4_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT4_ATTHIZ 255
-#define RTE_FSMC_PATT4_ATTHOLD 255
-#define RTE_FSMC_PATT4_ATTWAIT 255
-#define RTE_FSMC_PATT4_ATTSET 255
-
-//
-
-// I/O space timing
-// IOHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a PC Card write access. Only valid for write transaction.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (SMNWE,
-// SMNOE), for PC Card read or write access. The duration for command assertion is
-// extended if the wait signal (NWAIT) is active (low) at the end of the
-// programmed value of HCLK.
-// 0000 0000: reserved, do not use this value
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles
-// IOSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PIO4_IOHIZ 255
-#define RTE_FSMC_PIO4_IOHOLD 255
-#define RTE_FSMC_PIO4_IOWAIT 255
-#define RTE_FSMC_PIO4_IOSET 255
-
-//
-
-//
-
-//
-
-//
-
-
-#endif /* __RTE_DEVICE_H */
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/startup_stm32f2xx.s b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/startup_stm32f2xx.s
deleted file mode 100644
index eae6859dd..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/startup_stm32f2xx.s
+++ /dev/null
@@ -1,419 +0,0 @@
-;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
-;* File Name : startup_stm32f2xx.s
-;* Author : MCD Application Team
-;* Version : V1.0.0
-;* Date : 18-April-2011
-;* Description : STM32F2xx devices vector table for MDK-ARM toolchain.
-;* This module performs:
-;* - Set the initial SP
-;* - Set the initial PC == Reset_Handler
-;* - Set the vector table entries with the exceptions ISR address
-;* - Branches to __main in the C library (which eventually
-;* calls main()).
-;* After Reset the CortexM3 processor is in Thread mode,
-;* priority is Privileged, and the Stack is set to Main.
-;* <<< Use Configuration Wizard in Context Menu >>>
-;*******************************************************************************
-; 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.
-;*******************************************************************************
-
-; Amount of memory (in bytes) allocated for Stack
-; Tailor this value to your application needs
-; Stack Configuration
-; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Stack_Size EQU 0x00002000
-
- AREA STACK, NOINIT, READWRITE, ALIGN=3
-Stack_Mem SPACE Stack_Size
-__initial_sp
-
-
-; Heap Configuration
-; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Heap_Size EQU 0x00009000
-
- AREA HEAP, NOINIT, READWRITE, ALIGN=3
-__heap_base
-Heap_Mem SPACE Heap_Size
-__heap_limit
-
- PRESERVE8
- THUMB
-
-
-; Vector Table Mapped to Address 0 at Reset
- AREA RESET, DATA, READONLY
- EXPORT __Vectors
- EXPORT __Vectors_End
- EXPORT __Vectors_Size
-
-__Vectors DCD __initial_sp ; Top of Stack
- DCD Reset_Handler ; Reset Handler
- DCD NMI_Handler ; NMI Handler
- DCD HardFault_Handler ; Hard Fault Handler
- DCD MemManage_Handler ; MPU Fault Handler
- DCD BusFault_Handler ; Bus Fault Handler
- DCD UsageFault_Handler ; Usage Fault Handler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD SVC_Handler ; SVCall Handler
- DCD DebugMon_Handler ; Debug Monitor Handler
- DCD 0 ; Reserved
- DCD PendSV_Handler ; PendSV Handler
- DCD SysTick_Handler ; SysTick Handler
-
- ; External Interrupts
- DCD WWDG_IRQHandler ; Window WatchDog
- DCD PVD_IRQHandler ; PVD through EXTI Line detection
- DCD TAMP_STAMP_IRQHandler ; Tamper and TimeStamps through the EXTI line
- DCD RTC_WKUP_IRQHandler ; RTC Wakeup through the EXTI line
- DCD FLASH_IRQHandler ; FLASH
- DCD RCC_IRQHandler ; RCC
- DCD EXTI0_IRQHandler ; EXTI Line0
- DCD EXTI1_IRQHandler ; EXTI Line1
- DCD EXTI2_IRQHandler ; EXTI Line2
- DCD EXTI3_IRQHandler ; EXTI Line3
- DCD EXTI4_IRQHandler ; EXTI Line4
- DCD DMA1_Stream0_IRQHandler ; DMA1 Stream 0
- DCD DMA1_Stream1_IRQHandler ; DMA1 Stream 1
- DCD DMA1_Stream2_IRQHandler ; DMA1 Stream 2
- DCD DMA1_Stream3_IRQHandler ; DMA1 Stream 3
- DCD DMA1_Stream4_IRQHandler ; DMA1 Stream 4
- DCD DMA1_Stream5_IRQHandler ; DMA1 Stream 5
- DCD DMA1_Stream6_IRQHandler ; DMA1 Stream 6
- DCD ADC_IRQHandler ; ADC1, ADC2 and ADC3s
- DCD CAN1_TX_IRQHandler ; CAN1 TX
- DCD CAN1_RX0_IRQHandler ; CAN1 RX0
- DCD CAN1_RX1_IRQHandler ; CAN1 RX1
- DCD CAN1_SCE_IRQHandler ; CAN1 SCE
- DCD EXTI9_5_IRQHandler ; External Line[9:5]s
- DCD TIM1_BRK_TIM9_IRQHandler ; TIM1 Break and TIM9
- DCD TIM1_UP_TIM10_IRQHandler ; TIM1 Update and TIM10
- DCD TIM1_TRG_COM_TIM11_IRQHandler ; TIM1 Trigger and Commutation and TIM11
- DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
- DCD TIM2_IRQHandler ; TIM2
- DCD TIM3_IRQHandler ; TIM3
- DCD TIM4_IRQHandler ; TIM4
- DCD I2C1_EV_IRQHandler ; I2C1 Event
- DCD I2C1_ER_IRQHandler ; I2C1 Error
- DCD I2C2_EV_IRQHandler ; I2C2 Event
- DCD I2C2_ER_IRQHandler ; I2C2 Error
- DCD SPI1_IRQHandler ; SPI1
- DCD SPI2_IRQHandler ; SPI2
- DCD USART1_IRQHandler ; USART1
- DCD USART2_IRQHandler ; USART2
- DCD USART3_IRQHandler ; USART3
- DCD EXTI15_10_IRQHandler ; External Line[15:10]s
- DCD RTC_Alarm_IRQHandler ; RTC Alarm (A and B) through EXTI Line
- DCD OTG_FS_WKUP_IRQHandler ; USB OTG FS Wakeup through EXTI line
- DCD TIM8_BRK_TIM12_IRQHandler ; TIM8 Break and TIM12
- DCD TIM8_UP_TIM13_IRQHandler ; TIM8 Update and TIM13
- DCD TIM8_TRG_COM_TIM14_IRQHandler ; TIM8 Trigger and Commutation and TIM14
- DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare
- DCD DMA1_Stream7_IRQHandler ; DMA1 Stream7
- DCD FSMC_IRQHandler ; FSMC
- DCD SDIO_IRQHandler ; SDIO
- DCD TIM5_IRQHandler ; TIM5
- DCD SPI3_IRQHandler ; SPI3
- DCD UART4_IRQHandler ; UART4
- DCD UART5_IRQHandler ; UART5
- DCD TIM6_DAC_IRQHandler ; TIM6 and DAC1&2 underrun errors
- DCD TIM7_IRQHandler ; TIM7
- DCD DMA2_Stream0_IRQHandler ; DMA2 Stream 0
- DCD DMA2_Stream1_IRQHandler ; DMA2 Stream 1
- DCD DMA2_Stream2_IRQHandler ; DMA2 Stream 2
- DCD DMA2_Stream3_IRQHandler ; DMA2 Stream 3
- DCD DMA2_Stream4_IRQHandler ; DMA2 Stream 4
- DCD ETH_IRQHandler ; Ethernet
- DCD ETH_WKUP_IRQHandler ; Ethernet Wakeup through EXTI line
- DCD CAN2_TX_IRQHandler ; CAN2 TX
- DCD CAN2_RX0_IRQHandler ; CAN2 RX0
- DCD CAN2_RX1_IRQHandler ; CAN2 RX1
- DCD CAN2_SCE_IRQHandler ; CAN2 SCE
- DCD OTG_FS_IRQHandler ; USB OTG FS
- DCD DMA2_Stream5_IRQHandler ; DMA2 Stream 5
- DCD DMA2_Stream6_IRQHandler ; DMA2 Stream 6
- DCD DMA2_Stream7_IRQHandler ; DMA2 Stream 7
- DCD USART6_IRQHandler ; USART6
- DCD I2C3_EV_IRQHandler ; I2C3 event
- DCD I2C3_ER_IRQHandler ; I2C3 error
- DCD OTG_HS_EP1_OUT_IRQHandler ; USB OTG HS End Point 1 Out
- DCD OTG_HS_EP1_IN_IRQHandler ; USB OTG HS End Point 1 In
- DCD OTG_HS_WKUP_IRQHandler ; USB OTG HS Wakeup through EXTI
- DCD OTG_HS_IRQHandler ; USB OTG HS
- DCD DCMI_IRQHandler ; DCMI
- DCD CRYP_IRQHandler ; CRYP crypto
- DCD HASH_RNG_IRQHandler ; Hash and Rng
-__Vectors_End
-
-__Vectors_Size EQU __Vectors_End - __Vectors
-
- AREA |.text|, CODE, READONLY
-
-; Reset handler
-Reset_Handler PROC
- EXPORT Reset_Handler [WEAK]
- IMPORT SystemInit
- IMPORT __main
- LDR R0, =SystemInit
- BLX R0
- LDR R0, =__main
- BX R0
- ENDP
-
-; Dummy Exception Handlers (infinite loops which can be modified)
-
-NMI_Handler PROC
- EXPORT NMI_Handler [WEAK]
- B .
- ENDP
-HardFault_Handler\
- PROC
- EXPORT HardFault_Handler [WEAK]
- B .
- ENDP
-MemManage_Handler\
- PROC
- EXPORT MemManage_Handler [WEAK]
- B .
- ENDP
-BusFault_Handler\
- PROC
- EXPORT BusFault_Handler [WEAK]
- B .
- ENDP
-UsageFault_Handler\
- PROC
- EXPORT UsageFault_Handler [WEAK]
- B .
- ENDP
-SVC_Handler PROC
- EXPORT SVC_Handler [WEAK]
- B .
- ENDP
-DebugMon_Handler\
- PROC
- EXPORT DebugMon_Handler [WEAK]
- B .
- ENDP
-PendSV_Handler PROC
- EXPORT PendSV_Handler [WEAK]
- B .
- ENDP
-SysTick_Handler PROC
- EXPORT SysTick_Handler [WEAK]
- B .
- ENDP
-
-Default_Handler PROC
-
- EXPORT WWDG_IRQHandler [WEAK]
- EXPORT PVD_IRQHandler [WEAK]
- EXPORT TAMP_STAMP_IRQHandler [WEAK]
- EXPORT RTC_WKUP_IRQHandler [WEAK]
- EXPORT FLASH_IRQHandler [WEAK]
- EXPORT RCC_IRQHandler [WEAK]
- EXPORT EXTI0_IRQHandler [WEAK]
- EXPORT EXTI1_IRQHandler [WEAK]
- EXPORT EXTI2_IRQHandler [WEAK]
- EXPORT EXTI3_IRQHandler [WEAK]
- EXPORT EXTI4_IRQHandler [WEAK]
- EXPORT DMA1_Stream0_IRQHandler [WEAK]
- EXPORT DMA1_Stream1_IRQHandler [WEAK]
- EXPORT DMA1_Stream2_IRQHandler [WEAK]
- EXPORT DMA1_Stream3_IRQHandler [WEAK]
- EXPORT DMA1_Stream4_IRQHandler [WEAK]
- EXPORT DMA1_Stream5_IRQHandler [WEAK]
- EXPORT DMA1_Stream6_IRQHandler [WEAK]
- EXPORT ADC_IRQHandler [WEAK]
- EXPORT CAN1_TX_IRQHandler [WEAK]
- EXPORT CAN1_RX0_IRQHandler [WEAK]
- EXPORT CAN1_RX1_IRQHandler [WEAK]
- EXPORT CAN1_SCE_IRQHandler [WEAK]
- EXPORT EXTI9_5_IRQHandler [WEAK]
- EXPORT TIM1_BRK_TIM9_IRQHandler [WEAK]
- EXPORT TIM1_UP_TIM10_IRQHandler [WEAK]
- EXPORT TIM1_TRG_COM_TIM11_IRQHandler [WEAK]
- EXPORT TIM1_CC_IRQHandler [WEAK]
- EXPORT TIM2_IRQHandler [WEAK]
- EXPORT TIM3_IRQHandler [WEAK]
- EXPORT TIM4_IRQHandler [WEAK]
- EXPORT I2C1_EV_IRQHandler [WEAK]
- EXPORT I2C1_ER_IRQHandler [WEAK]
- EXPORT I2C2_EV_IRQHandler [WEAK]
- EXPORT I2C2_ER_IRQHandler [WEAK]
- EXPORT SPI1_IRQHandler [WEAK]
- EXPORT SPI2_IRQHandler [WEAK]
- EXPORT USART1_IRQHandler [WEAK]
- EXPORT USART2_IRQHandler [WEAK]
- EXPORT USART3_IRQHandler [WEAK]
- EXPORT EXTI15_10_IRQHandler [WEAK]
- EXPORT RTC_Alarm_IRQHandler [WEAK]
- EXPORT OTG_FS_WKUP_IRQHandler [WEAK]
- EXPORT TIM8_BRK_TIM12_IRQHandler [WEAK]
- EXPORT TIM8_UP_TIM13_IRQHandler [WEAK]
- EXPORT TIM8_TRG_COM_TIM14_IRQHandler [WEAK]
- EXPORT TIM8_CC_IRQHandler [WEAK]
- EXPORT DMA1_Stream7_IRQHandler [WEAK]
- EXPORT FSMC_IRQHandler [WEAK]
- EXPORT SDIO_IRQHandler [WEAK]
- EXPORT TIM5_IRQHandler [WEAK]
- EXPORT SPI3_IRQHandler [WEAK]
- EXPORT UART4_IRQHandler [WEAK]
- EXPORT UART5_IRQHandler [WEAK]
- EXPORT TIM6_DAC_IRQHandler [WEAK]
- EXPORT TIM7_IRQHandler [WEAK]
- EXPORT DMA2_Stream0_IRQHandler [WEAK]
- EXPORT DMA2_Stream1_IRQHandler [WEAK]
- EXPORT DMA2_Stream2_IRQHandler [WEAK]
- EXPORT DMA2_Stream3_IRQHandler [WEAK]
- EXPORT DMA2_Stream4_IRQHandler [WEAK]
- EXPORT ETH_IRQHandler [WEAK]
- EXPORT ETH_WKUP_IRQHandler [WEAK]
- EXPORT CAN2_TX_IRQHandler [WEAK]
- EXPORT CAN2_RX0_IRQHandler [WEAK]
- EXPORT CAN2_RX1_IRQHandler [WEAK]
- EXPORT CAN2_SCE_IRQHandler [WEAK]
- EXPORT OTG_FS_IRQHandler [WEAK]
- EXPORT DMA2_Stream5_IRQHandler [WEAK]
- EXPORT DMA2_Stream6_IRQHandler [WEAK]
- EXPORT DMA2_Stream7_IRQHandler [WEAK]
- EXPORT USART6_IRQHandler [WEAK]
- EXPORT I2C3_EV_IRQHandler [WEAK]
- EXPORT I2C3_ER_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_OUT_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_IN_IRQHandler [WEAK]
- EXPORT OTG_HS_WKUP_IRQHandler [WEAK]
- EXPORT OTG_HS_IRQHandler [WEAK]
- EXPORT DCMI_IRQHandler [WEAK]
- EXPORT CRYP_IRQHandler [WEAK]
- EXPORT HASH_RNG_IRQHandler [WEAK]
-
-WWDG_IRQHandler
-PVD_IRQHandler
-TAMP_STAMP_IRQHandler
-RTC_WKUP_IRQHandler
-FLASH_IRQHandler
-RCC_IRQHandler
-EXTI0_IRQHandler
-EXTI1_IRQHandler
-EXTI2_IRQHandler
-EXTI3_IRQHandler
-EXTI4_IRQHandler
-DMA1_Stream0_IRQHandler
-DMA1_Stream1_IRQHandler
-DMA1_Stream2_IRQHandler
-DMA1_Stream3_IRQHandler
-DMA1_Stream4_IRQHandler
-DMA1_Stream5_IRQHandler
-DMA1_Stream6_IRQHandler
-ADC_IRQHandler
-CAN1_TX_IRQHandler
-CAN1_RX0_IRQHandler
-CAN1_RX1_IRQHandler
-CAN1_SCE_IRQHandler
-EXTI9_5_IRQHandler
-TIM1_BRK_TIM9_IRQHandler
-TIM1_UP_TIM10_IRQHandler
-TIM1_TRG_COM_TIM11_IRQHandler
-TIM1_CC_IRQHandler
-TIM2_IRQHandler
-TIM3_IRQHandler
-TIM4_IRQHandler
-I2C1_EV_IRQHandler
-I2C1_ER_IRQHandler
-I2C2_EV_IRQHandler
-I2C2_ER_IRQHandler
-SPI1_IRQHandler
-SPI2_IRQHandler
-USART1_IRQHandler
-USART2_IRQHandler
-USART3_IRQHandler
-EXTI15_10_IRQHandler
-RTC_Alarm_IRQHandler
-OTG_FS_WKUP_IRQHandler
-TIM8_BRK_TIM12_IRQHandler
-TIM8_UP_TIM13_IRQHandler
-TIM8_TRG_COM_TIM14_IRQHandler
-TIM8_CC_IRQHandler
-DMA1_Stream7_IRQHandler
-FSMC_IRQHandler
-SDIO_IRQHandler
-TIM5_IRQHandler
-SPI3_IRQHandler
-UART4_IRQHandler
-UART5_IRQHandler
-TIM6_DAC_IRQHandler
-TIM7_IRQHandler
-DMA2_Stream0_IRQHandler
-DMA2_Stream1_IRQHandler
-DMA2_Stream2_IRQHandler
-DMA2_Stream3_IRQHandler
-DMA2_Stream4_IRQHandler
-ETH_IRQHandler
-ETH_WKUP_IRQHandler
-CAN2_TX_IRQHandler
-CAN2_RX0_IRQHandler
-CAN2_RX1_IRQHandler
-CAN2_SCE_IRQHandler
-OTG_FS_IRQHandler
-DMA2_Stream5_IRQHandler
-DMA2_Stream6_IRQHandler
-DMA2_Stream7_IRQHandler
-USART6_IRQHandler
-I2C3_EV_IRQHandler
-I2C3_ER_IRQHandler
-OTG_HS_EP1_OUT_IRQHandler
-OTG_HS_EP1_IN_IRQHandler
-OTG_HS_WKUP_IRQHandler
-OTG_HS_IRQHandler
-DCMI_IRQHandler
-CRYP_IRQHandler
-HASH_RNG_IRQHandler
-
- B .
-
- ENDP
-
- ALIGN
-
-;*******************************************************************************
-; User Stack and Heap initialization
-;*******************************************************************************
- IF :DEF:__MICROLIB
-
- EXPORT __initial_sp
- EXPORT __heap_base
- EXPORT __heap_limit
-
- ELSE
-
- IMPORT __use_two_region_memory
- EXPORT __user_initial_stackheap
-
-__user_initial_stackheap
-
- LDR R0, = Heap_Mem
- LDR R1, =(Stack_Mem + Stack_Size)
- LDR R2, = (Heap_Mem + Heap_Size)
- LDR R3, = Stack_Mem
- BX LR
-
- ALIGN
-
- ENDIF
-
- END
-
-;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/system_stm32f2xx.c b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/system_stm32f2xx.c
deleted file mode 100644
index da0e189c8..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/Device/STM32F207IG/system_stm32f2xx.c
+++ /dev/null
@@ -1,536 +0,0 @@
-/**
- ******************************************************************************
- * @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();
-
- /* Configure the Vector Table location add offset address ------------------*/
-#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
-}
-
-/**
- * @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/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/File_System/FS_Config.c b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/File_System/FS_Config.c
deleted file mode 100644
index 78564b080..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/File_System/FS_Config.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config.c
- * Purpose: File System Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// File System
-// Define File System global parameters
-
-// Number of open files <4-16>
-// Define number of files that can be
-// opened at the same time.
-// Default: 8
-#define NUM_FILES 8
-
-// FAT Name Cache Size <0-1000000>
-// Define number of cached FAT file or directory names.
-// 48 bytes of RAM is required for each cached name.
-#define FAT_NAME_CACHE_SIZE 0
-
-// Relocate FAT Name Cache Buffer
-// Locate Cache Buffer at a specific address.
-#define FAT_NAME_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define the Cache buffer base address.
-#define FAT_NAME_CACHE_ADDR 0x60000000
-
-//
-
-//
-
-#include "..\RTE_Components.h"
-
-#ifdef RTE_FileSystem_Drive_RAM
-#include "FS_Config_RAM.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NOR_0
-#include "FS_Config_NOR_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NOR_1
-#include "FS_Config_NOR_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NAND_0
-#include "FS_Config_NAND_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NAND_1
-#include "FS_Config_NAND_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_MC_0
-#include "FS_Config_MC_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_MC_1
-#include "FS_Config_MC_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_USB_0
-#include "FS_Config_USB_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_USB_1
-#include "FS_Config_USB_1.h"
-#endif
-
-#include "fs_config.h"
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/File_System/FS_Config_MC_0.h b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/File_System/FS_Config_MC_0.h
deleted file mode 100644
index 0b1c6d3a7..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/File_System/FS_Config_MC_0.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System:Drive
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config_MC_0.h
- * Purpose: File System Configuration for Memory Card Drive
- * Rev.: V5.01
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Memory Card Drive 0
-// Configuration for SD/SDHC/MMC Memory Card assigned to drive letter "M0:"
-#define MC0_ENABLE 1
-
-// Connect to hardware via Driver_MCI# <0-255>
-// Select driver control block for hardware interface
-#define MC0_MCI_DRIVER 0
-
-// Connect to hardware via Driver_SPI# <0-255>
-// Select driver control block for hardware interface when in SPI mode
-#define MC0_SPI_DRIVER 0
-
-// Memory Card Interface Mode <0=>Native <1=>SPI
-// Native uses a SD Bus with up to 8 data lines, CLK, and CMD
-// SPI uses 2 data lines (MOSI and MISO), SCLK and CS
-// When using SPI both Driver_SPI# and Driver_MCI# must be specified
-// since the MCI driver provides the control interface lines.
-#define MC0_SPI 0
-
-// Drive Cache Size <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Drive Cache stores data sectors and may be increased to speed-up
-// file read/write operations on this drive (default: 4 KB)
-#define MC0_CACHE_SIZE 4
-
-// Locate Drive Cache and Drive Buffer
-// Some microcontrollers support DMA only in specific memory areas and
-// require to locate the drive buffers at a fixed address.
-#define MC0_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Set buffer base address to RAM areas that support DMA with the drive.
-#define MC0_CACHE_ADDR 0x7FD00000
-
-//
-
-// Use FAT Journal
-// Protect File Allocation Table and Directory Entries for
-// fail-safe operation.
-#define MC0_FAT_JOURNAL 0
-
-// Default Drive "M0:"
-// Use this drive when no drive letter is specified.
-#define MC0_DEFAULT_DRIVE 1
-
-//
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/RTE_Components.h b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/RTE_Components.h
deleted file mode 100644
index aa51462ab..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/RTE_Components.h
+++ /dev/null
@@ -1,19 +0,0 @@
-
-/*
- * Auto generated Run-Time-Environment Component Configuration File
- * *** Do not modify ! ***
- *
- * Project: 'CryptBenchmark'
- * Target: 'CryptBenchmark'
- */
-
-#ifndef RTE_COMPONENTS_H
-#define RTE_COMPONENTS_H
-
-#define RTE_DEVICE_STARTUP_STM32F2xx /* Device Startup for STM32F2 */
-#define RTE_Drivers_MCI0 /* Driver MCI0 */
-#define RTE_FileSystem_Core /* File System Core */
- #define RTE_FileSystem_LFN /* File System with Long Filename support */
-#define RTE_FileSystem_Drive_MC_0 /* File System Memory Card Drive 0 */
-
-#endif /* RTE_COMPONENTS_H */
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/wolfSSL/config-Crypt.h b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/wolfSSL/config-Crypt.h
deleted file mode 100644
index a11c3ef24..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/wolfSSL/config-Crypt.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/* config-FS.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-// <<< Use Configuration Wizard in Context Menu >>>
-
-// wolfCrypt Configuration
-
-// Cert/Key Strage
-// Cert Storage <0=> SD Card <1=> Mem Buff (1024bytes) <2=> Mem Buff (2048bytes)
-#define MDK_CONF_CERT_BUFF 0
-#if MDK_CONF_CERT_BUFF== 1
-#define USE_CERT_BUFFERS_1024
-#elif MDK_CONF_CERT_BUFF == 2
-#define USE_CERT_BUFFERS_2048
-#endif
-//
-
-// Crypt Algrithm
-
-// MD5, SHA, SHA-256, AES, RC4, ASN, RSA
-//
-
-// MD2
-#define MDK_CONF_MD2 0
-#if MDK_CONF_MD2 == 1
-#define CYASSL_MD2
-#endif
-//
-// MD4
-#define MDK_CONF_MD4 1
-#if MDK_CONF_MD4 == 0
-#define NO_MD4
-#endif
-//
-// SHA-384
-// This has to be with SHA512
-#define MDK_CONF_SHA384 0
-#if MDK_CONF_SHA384 == 1
-#define CYASSL_SHA384
-#endif
-//
-// SHA-512
-#define MDK_CONF_SHA512 0
-#if MDK_CONF_SHA512 == 1
-#define CYASSL_SHA512
-#endif
-//
-// RIPEMD
-#define MDK_CONF_RIPEMD 0
-#if MDK_CONF_RIPEMD == 1
-#define CYASSL_RIPEMD
-#endif
-//
-// HMAC
-#define MDK_CONF_HMAC 1
-#if MDK_CONF_HMAC == 0
-#define NO_HMAC
-#endif
-//
-// HC128
-#define MDK_CONF_HC128 0
-#if MDK_CONF_HC128 == 1
-#define HAVE_HC128
-#endif
-//
-// RABBIT
-#define MDK_CONF_RABBIT 1
-#if MDK_CONF_RABBI == 0
-#define NO_RABBIT
-#endif
-//
-
-// AEAD
-#define MDK_CONF_AEAD 0
-#if MDK_CONF_AEAD == 1
-#define HAVE_AEAD
-#endif
-//
-// DES3
-#define MDK_CONF_DES3 1
-#if MDK_CONF_DES3 == 0
-#define NO_DES3
-#endif
-//
-// CAMELLIA
-#define MDK_CONF_CAMELLIA 0
-#if MDK_CONF_CAMELLIA == 1
-#define HAVE_CAMELLIA
-#endif
-//
-
-// DH
-// need this for CYASSL_SERVER, OPENSSL_EXTRA
-#define MDK_CONF_DH 1
-#if MDK_CONF_DH == 0
-#define NO_DH
-#endif
-//
-// DSA
-#define MDK_CONF_DSA 1
-#if MDK_CONF_DSA == 0
-#define NO_DSA
-#endif
-//
-// PWDBASED
-#define MDK_CONF_PWDBASED 1
-#if MDK_CONF_PWDBASED == 0
-#define NO_PWDBASED
-#endif
-//
-
-// ECC
-#define MDK_CONF_ECC 0
-#if MDK_CONF_ECC == 1
-#define HAVE_ECC
-#endif
-//
-// PSK
-#define MDK_CONF_PSK 1
-#if MDK_CONF_PSK == 0
-#define NO_PSK
-#endif
-//
-// AESCCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESCCM 0
-#if MDK_CONF_AESCCM == 1
-#define HAVE_AESCCM
-#endif
-//
-// AESGCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESGCM 0
-#if MDK_CONF_AESGCM == 1
-#define HAVE_AESGCM
-#define BUILD_AESGCM
-#endif
-//
-// NTRU (need License, "crypto_ntru.h")
-#define MDK_CONF_NTRU 0
-#if MDK_CONF_NTRU == 1
-#define HAVE_NTRU
-#endif
-//
-//
-
-// Hardware Crypt (See document for usage)
-// Hardware RNG
-#define MDK_CONF_STM32F2_RNG 0
-#if MDK_CONF_STM32F2_RNG == 1
-#define STM32F2_RNG
-#else
-
-#endif
-//
-// Hardware Crypt
-#define MDK_CONF_STM32F2_CRYPTO 0
-#if MDK_CONF_STM32F2_CRYPTO == 1
-#define STM32F2_CRYPTO
-#endif
-//
-
-//
-
-
-
-//
-// <<< end of configuration section >>>
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/wolfSSL/settings.h b/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/wolfSSL/settings.h
deleted file mode 100644
index 33d41cfdb..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/wolfSSL/settings.h
+++ /dev/null
@@ -1,667 +0,0 @@
-/* settings.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-/* Place OS specific preprocessor flags, defines, includes here, will be
- included into every file because types.h includes it */
-
-
-#ifndef CTAO_CRYPT_SETTINGS_H
-#define CTAO_CRYPT_SETTINGS_H
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
-/* Uncomment next line if using IPHONE */
-/* #define IPHONE */
-
-/* Uncomment next line if using ThreadX */
-/* #define THREADX */
-
-/* Uncomment next line if using Micrium ucOS */
-/* #define MICRIUM */
-
-/* Uncomment next line if using Mbed */
-/* #define MBED */
-
-/* Uncomment next line if using Microchip PIC32 ethernet starter kit */
-/* #define MICROCHIP_PIC32 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 5 */
-/* #define MICROCHIP_TCPIP_V5 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 6 or later */
-/* #define MICROCHIP_TCPIP */
-
-/* Uncomment next line if using PIC32MZ Crypto Engine */
-/* #define CYASSL_MICROCHIP_PIC32MZ */
-
-/* Uncomment next line if using FreeRTOS */
-/* #define FREERTOS */
-
-/* Uncomment next line if using FreeRTOS Windows Simulator */
-/* #define FREERTOS_WINSIM */
-
-/* Uncomment next line if using RTIP */
-/* #define EBSNET */
-
-/* Uncomment next line if using lwip */
-/* #define CYASSL_LWIP */
-
-/* Uncomment next line if building CyaSSL for a game console */
-/* #define CYASSL_GAME_BUILD */
-
-/* Uncomment next line if building CyaSSL for LSR */
-/* #define CYASSL_LSR */
-
-/* Uncomment next line if building CyaSSL for Freescale MQX/RTCS/MFS */
-/* #define FREESCALE_MQX */
-
-/* Uncomment next line if using STM32F2 */
-/* #define CYASSL_STM32F2 */
-
-/* Uncomment next line if using Comverge settings */
-/* #define COMVERGE */
-
-/* Uncomment next line if using QL SEP settings */
-/* #define CYASSL_QL */
-
-/* Uncomment next line if using LwIP native TCP socket settings */
-/* #define HAVE_LWIP_NATIVE */
-
-/* Uncomment next line if building for EROAD */
-/* #define CYASSL_EROAD */
-
-#include
-
-#ifdef IPHONE
- #define SIZEOF_LONG_LONG 8
-#endif
-
-
-#ifdef CYASSL_USER_SETTINGS
- #include
-#endif
-
-
-#ifdef COMVERGE
- #define THREADX
- #define HAVE_NETX
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_RSA
- #define NO_SESSION_CACHE
- #define HAVE_ECC
-#endif
-
-
-#ifdef THREADX
- #define SIZEOF_LONG_LONG 8
-#endif
-
-#ifdef HAVE_NETX
- #include "nx_api.h"
-#endif
-
-#if defined(HAVE_LWIP_NATIVE) /* using LwIP native TCP socket */
- #define CYASSL_LWIP
- #define NO_WRITEV
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_FILESYSTEM
-#endif
-
-#ifdef MICROCHIP_PIC32
- /* #define CYASSL_MICROCHIP_PIC32MZ */
- #define SIZEOF_LONG_LONG 8
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef CYASSL_MICROCHIP_PIC32MZ
- #define CYASSL_PIC32MZ_CE
- #define CYASSL_PIC32MZ_CRYPT
- #define HAVE_AES_ENGINE
- #define CYASSL_PIC32MZ_RNG
- /* #define CYASSL_PIC32MZ_HASH */
- #define CYASSL_AES_COUNTER
- #define HAVE_AESGCM
- #define NO_BIG_INT
-
-#endif
-
-#ifdef MICROCHIP_TCPIP_V5
- /* include timer functions */
- #include "TCPIP Stack/TCPIP.h"
-#endif
-
-#ifdef MICROCHIP_TCPIP
- /* include timer, NTP functions */
- #ifdef MICROCHIP_MPLAB_HARMONY
- #include "tcpip/tcpip.h"
- #else
- #include "system/system_services.h"
- #include "tcpip/sntp.h"
- #endif
-#endif
-
-#ifdef MBED
- #define CYASSL_USER_IO
- #define NO_FILESYSTEM
- #define NO_CERT
- #define USE_CERT_BUFFERS_1024
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define HAVE_ECC
- #define NO_SESSION_CACHE
- #define CYASSL_CMSIS_RTOS
-#endif
-
-
-#ifdef CYASSL_EROAD
- #define FREESCALE_MQX
- #define FREESCALE_MMCAU
- #define SINGLE_THREADED
- #define NO_STDIO_FILESYSTEM
- #define CYASSL_LEANPSK
- #define HAVE_NULL_CIPHER
- #define NO_OLD_TLS
- #define NO_ASN
- #define NO_BIG_INT
- #define NO_RSA
- #define NO_DSA
- #define NO_DH
- #define NO_CERTS
- #define NO_PWDBASED
- #define NO_DES3
- #define NO_MD4
- #define NO_RC4
- #define NO_MD5
- #define NO_SESSION_CACHE
- #define NO_MAIN_DRIVER
-#endif
-
-#ifdef FREERTOS_WINSIM
- #define FREERTOS
- #define USE_WINDOWS_API
-#endif
-
-
-/* Micrium will use Visual Studio for compilation but not the Win32 API */
-#if defined(_WIN32) && !defined(MICRIUM) && !defined(FREERTOS) \
- && !defined(EBSNET) && !defined(CYASSL_EROAD)
- #define USE_WINDOWS_API
-#endif
-
-
-#if defined(CYASSL_LEANPSK) && !defined(XMALLOC_USER)
- #include
- #define XMALLOC(s, h, type) malloc((s))
- #define XFREE(p, h, type) free((p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
-#if defined(XMALLOC_USER) && defined(SSN_BUILDING_LIBYASSL)
- #undef XMALLOC
- #define XMALLOC yaXMALLOC
- #undef XFREE
- #define XFREE yaXFREE
- #undef XREALLOC
- #define XREALLOC yaXREALLOC
-#endif
-
-
-#ifdef FREERTOS
- #ifndef NO_WRITEV
- #define NO_WRITEV
- #endif
- #ifndef NO_SHA512
- #define NO_SHA512
- #endif
- #ifndef NO_DH
- #define NO_DH
- #endif
- #ifndef NO_DSA
- #define NO_DSA
- #endif
- #ifndef NO_HC128
- #define NO_HC128
- #endif
-
- #ifndef SINGLE_THREADED
- #include "FreeRTOS.h"
- #include "semphr.h"
- #endif
-#endif
-
-#ifdef EBSNET
- #include "rtip.h"
-
- /* #define DEBUG_CYASSL */
- #define NO_CYASSL_DIR /* tbd */
-
- #if (POLLOS)
- #define SINGLE_THREADED
- #endif
-
- #if (RTPLATFORM)
- #if (!RTP_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #else
- #if (!KS_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #endif
-
- #if (WINMSP3)
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #else
- #sslpro: settings.h - please implement SIZEOF_LONG and SIZEOF_LONG_LONG
- #endif
-
- #define XMALLOC(s, h, type) ((void *)rtp_malloc((s), SSL_PRO_MALLOC))
- #define XFREE(p, h, type) (rtp_free(p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-
-#endif /* EBSNET */
-
-#ifdef CYASSL_GAME_BUILD
- #define SIZEOF_LONG_LONG 8
- #if defined(__PPU) || defined(__XENON)
- #define BIG_ENDIAN_ORDER
- #endif
-#endif
-
-#ifdef CYASSL_LSR
- #define HAVE_WEBSERVER
- #define SIZEOF_LONG_LONG 8
- #define CYASSL_LOW_MEMORY
- #define NO_WRITEV
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #ifndef NO_FILESYSTEM
- #define LSR_FS
- #include "inc/hw_types.h"
- #include "fs.h"
- #endif
- #define CYASSL_LWIP
- #include /* for tcp errno */
- #define CYASSL_SAFERTOS
- #if defined(__IAR_SYSTEMS_ICC__)
- /* enum uses enum */
- #pragma diag_suppress=Pa089
- #endif
-#endif
-
-#ifdef CYASSL_SAFERTOS
- #ifndef SINGLE_THREADED
- #include "SafeRTOS/semphr.h"
- #endif
-
- #include "SafeRTOS/heap.h"
- #define XMALLOC(s, h, type) pvPortMalloc((s))
- #define XFREE(p, h, type) vPortFree((p))
- #define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
-#endif
-
-#ifdef CYASSL_LOW_MEMORY
- #undef RSA_LOW_MEM
- #define RSA_LOW_MEM
- #undef CYASSL_SMALL_STACK
- #define CYASSL_SMALL_STACK
- #undef TFM_TIMING_RESISTANT
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef FREESCALE_MQX
- #define SIZEOF_LONG_LONG 8
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_RABBIT
- #define NO_CYASSL_DIR
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
- #define FREESCALE_K70_RNGA
- /* #define FREESCALE_K53_RNGB */
- #include "mqx.h"
- #ifndef NO_FILESYSTEM
- #include "mfs.h"
- #include "fio.h"
- #endif
- #ifndef SINGLE_THREADED
- #include "mutex.h"
- #endif
-
- #define XMALLOC(s, h, t) (void *)_mem_alloc_system((s))
- #define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));}
- /* Note: MQX has no realloc, using fastmath above */
-#endif
-
-#ifdef CYASSL_STM32F2
- #define SIZEOF_LONG_LONG 8
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #define STM32F2_RNG
- #define STM32F2_CRYPTO
- #define KEIL_INTRINSICS
-#endif
-
-#ifdef MICRIUM
-
- #include "stdlib.h"
- #include "net_cfg.h"
- #include "ssl_cfg.h"
- #include "net_secure_os.h"
-
- #define CYASSL_TYPES
-
- typedef CPU_INT08U byte;
- typedef CPU_INT16U word16;
- typedef CPU_INT32U word32;
-
- #if (NET_SECURE_MGR_CFG_WORD_SIZE == CPU_WORD_SIZE_32)
- #define SIZEOF_LONG 4
- #undef SIZEOF_LONG_LONG
- #else
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #endif
-
- #define STRING_USER
-
- #define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr)))
- #define XSTRNCPY(pstr_dest, pstr_src, len_max) \
- ((CPU_CHAR *)Str_Copy_N((CPU_CHAR *)(pstr_dest), \
- (CPU_CHAR *)(pstr_src), (CPU_SIZE_T)(len_max)))
- #define XSTRNCMP(pstr_1, pstr_2, len_max) \
- ((CPU_INT16S)Str_Cmp_N((CPU_CHAR *)(pstr_1), \
- (CPU_CHAR *)(pstr_2), (CPU_SIZE_T)(len_max)))
- #define XSTRSTR(pstr, pstr_srch) \
- ((CPU_CHAR *)Str_Str((CPU_CHAR *)(pstr), \
- (CPU_CHAR *)(pstr_srch)))
- #define XMEMSET(pmem, data_val, size) \
- ((void)Mem_Set((void *)(pmem), (CPU_INT08U) (data_val), \
- (CPU_SIZE_T)(size)))
- #define XMEMCPY(pdest, psrc, size) ((void)Mem_Copy((void *)(pdest), \
- (void *)(psrc), (CPU_SIZE_T)(size)))
- #define XMEMCMP(pmem_1, pmem_2, size) \
- (((CPU_BOOLEAN)Mem_Cmp((void *)(pmem_1), (void *)(pmem_2), \
- (CPU_SIZE_T)(size))) ? DEF_NO : DEF_YES)
- #define XMEMMOVE XMEMCPY
-
-#if (NET_SECURE_MGR_CFG_EN == DEF_ENABLED)
- #define MICRIUM_MALLOC
- #define XMALLOC(s, h, type) ((void *)NetSecure_BlkGet((CPU_INT08U)(type), \
- (CPU_SIZE_T)(s), (void *)0))
- #define XFREE(p, h, type) (NetSecure_BlkFree((CPU_INT08U)(type), \
- (p), (void *)0))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
- #if (NET_SECURE_MGR_CFG_FS_EN == DEF_ENABLED)
- #undef NO_FILESYSTEM
- #else
- #define NO_FILESYSTEM
- #endif
-
- #if (SSL_CFG_TRACE_LEVEL == CYASSL_TRACE_LEVEL_DBG)
- #define DEBUG_CYASSL
- #else
- #undef DEBUG_CYASSL
- #endif
-
- #if (SSL_CFG_OPENSSL_EN == DEF_ENABLED)
- #define OPENSSL_EXTRA
- #else
- #undef OPENSSL_EXTRA
- #endif
-
- #if (SSL_CFG_MULTI_THREAD_EN == DEF_ENABLED)
- #undef SINGLE_THREADED
- #else
- #define SINGLE_THREADED
- #endif
-
- #if (SSL_CFG_DH_EN == DEF_ENABLED)
- #undef NO_DH
- #else
- #define NO_DH
- #endif
-
- #if (SSL_CFG_DSA_EN == DEF_ENABLED)
- #undef NO_DSA
- #else
- #define NO_DSA
- #endif
-
- #if (SSL_CFG_PSK_EN == DEF_ENABLED)
- #undef NO_PSK
- #else
- #define NO_PSK
- #endif
-
- #if (SSL_CFG_3DES_EN == DEF_ENABLED)
- #undef NO_DES
- #else
- #define NO_DES
- #endif
-
- #if (SSL_CFG_AES_EN == DEF_ENABLED)
- #undef NO_AES
- #else
- #define NO_AES
- #endif
-
- #if (SSL_CFG_RC4_EN == DEF_ENABLED)
- #undef NO_RC4
- #else
- #define NO_RC4
- #endif
-
- #if (SSL_CFG_RABBIT_EN == DEF_ENABLED)
- #undef NO_RABBIT
- #else
- #define NO_RABBIT
- #endif
-
- #if (SSL_CFG_HC128_EN == DEF_ENABLED)
- #undef NO_HC128
- #else
- #define NO_HC128
- #endif
-
- #if (CPU_CFG_ENDIAN_TYPE == CPU_ENDIAN_TYPE_BIG)
- #define BIG_ENDIAN_ORDER
- #else
- #undef BIG_ENDIAN_ORDER
- #define LITTLE_ENDIAN_ORDER
- #endif
-
- #if (SSL_CFG_MD4_EN == DEF_ENABLED)
- #undef NO_MD4
- #else
- #define NO_MD4
- #endif
-
- #if (SSL_CFG_WRITEV_EN == DEF_ENABLED)
- #undef NO_WRITEV
- #else
- #define NO_WRITEV
- #endif
-
- #if (SSL_CFG_USER_RNG_SEED_EN == DEF_ENABLED)
- #define NO_DEV_RANDOM
- #else
- #undef NO_DEV_RANDOM
- #endif
-
- #if (SSL_CFG_USER_IO_EN == DEF_ENABLED)
- #define CYASSL_USER_IO
- #else
- #undef CYASSL_USER_IO
- #endif
-
- #if (SSL_CFG_DYNAMIC_BUFFERS_EN == DEF_ENABLED)
- #undef LARGE_STATIC_BUFFERS
- #undef STATIC_CHUNKS_ONLY
- #else
- #define LARGE_STATIC_BUFFERS
- #define STATIC_CHUNKS_ONLY
- #endif
-
- #if (SSL_CFG_DER_LOAD_EN == DEF_ENABLED)
- #define CYASSL_DER_LOAD
- #else
- #undef CYASSL_DER_LOAD
- #endif
-
- #if (SSL_CFG_DTLS_EN == DEF_ENABLED)
- #define CYASSL_DTLS
- #else
- #undef CYASSL_DTLS
- #endif
-
- #if (SSL_CFG_CALLBACKS_EN == DEF_ENABLED)
- #define CYASSL_CALLBACKS
- #else
- #undef CYASSL_CALLBACKS
- #endif
-
- #if (SSL_CFG_FAST_MATH_EN == DEF_ENABLED)
- #define USE_FAST_MATH
- #else
- #undef USE_FAST_MATH
- #endif
-
- #if (SSL_CFG_TFM_TIMING_RESISTANT_EN == DEF_ENABLED)
- #define TFM_TIMING_RESISTANT
- #else
- #undef TFM_TIMING_RESISTANT
- #endif
-
-#endif /* MICRIUM */
-
-
-#ifdef CYASSL_QL
- #ifndef CYASSL_SEP
- #define CYASSL_SEP
- #endif
- #ifndef OPENSSL_EXTRA
- #define OPENSSL_EXTRA
- #endif
- #ifndef SESSION_CERTS
- #define SESSION_CERTS
- #endif
- #ifndef HAVE_AESCCM
- #define HAVE_AESCCM
- #endif
- #ifndef ATOMIC_USER
- #define ATOMIC_USER
- #endif
- #ifndef CYASSL_DER_LOAD
- #define CYASSL_DER_LOAD
- #endif
- #ifndef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
- #endif
- #ifndef HAVE_ECC
- #define HAVE_ECC
- #endif
- #ifndef SESSION_INDEX
- #define SESSION_INDEX
- #endif
-#endif /* CYASSL_QL */
-
-
-#if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \
- !defined(CYASSL_LEANPSK) && !defined(NO_CYASSL_MEMORY)
- #define USE_CYASSL_MEMORY
-#endif
-
-
-#if defined(OPENSSL_EXTRA) && !defined(NO_CERTS)
- #undef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
-#endif
-
-
-/* stream ciphers except arc4 need 32bit alignment, intel ok without */
-#ifndef XSTREAM_ALIGNMENT
- #if defined(__x86_64__) || defined(__ia64__) || defined(__i386__)
- #define NO_XSTREAM_ALIGNMENT
- #else
- #define XSTREAM_ALIGNMENT
- #endif
-#endif
-
-
-/* if using hardware crypto and have alignment requirements, specify the
- requirement here. The record header of SSL/TLS will prvent easy alignment.
- This hint tries to help as much as possible. */
-#ifndef CYASSL_GENERAL_ALIGNMENT
- #ifdef CYASSL_AESNI
- #define CYASSL_GENERAL_ALIGNMENT 16
- #elif defined(XSTREAM_ALIGNMENT)
- #define CYASSL_GENERAL_ALIGNMENT 4
- #else
- #define CYASSL_GENERAL_ALIGNMENT 0
- #endif
-#endif
-
-#ifdef HAVE_CRL
- /* not widely supported yet */
- #undef NO_SKID
- #define NO_SKID
-#endif
-
-/* Place any other flags or defines here */
-
-
-#ifdef __cplusplus
- } /* extern "C" */
-#endif
-
-
-#endif /* CTAO_CRYPT_SETTINGS_H */
-
diff --git a/IDE/MDK5-ARM/Projects/CryptBenchmark/STM32_SWO.ini b/IDE/MDK5-ARM/Projects/CryptBenchmark/STM32_SWO.ini
deleted file mode 100644
index 239abce37..000000000
--- a/IDE/MDK5-ARM/Projects/CryptBenchmark/STM32_SWO.ini
+++ /dev/null
@@ -1,36 +0,0 @@
-/******************************************************************************/
-/* STM32_SWO.ini: STM32 Debugger Initialization File */
-/******************************************************************************/
-// <<< Use Configuration Wizard in Context Menu >>> //
-/******************************************************************************/
-/* This file is part of the uVision/ARM development tools. */
-/* Copyright (c) 2004-2013 Keil Software. All rights reserved. */
-/* This software may only be used under the terms of a valid, current, */
-/* end user licence from KEIL for a compatible version of KEIL software */
-/* development tools. Nothing else gives you the right to use this software. */
-/******************************************************************************/
-
-
-FUNC void DebugSetup (void) {
-// Debug MCU Configuration
-// DBG_SLEEP Debug Sleep Mode
-// DBG_STOP Debug Stop Mode
-// DBG_STANDBY Debug Standby Mode
-// TRACE_IOEN Trace I/O Enable
-// TRACE_MODE Trace Mode
-// <0=> Asynchronous
-// <1=> Synchronous: TRACEDATA Size 1
-// <2=> Synchronous: TRACEDATA Size 2
-// <3=> Synchronous: TRACEDATA Size 4
-// DBG_IWDG_STOP Independant Watchdog Stopped when Core is halted
-// DBG_WWDG_STOP Window Watchdog Stopped when Core is halted
-// DBG_TIM1_STOP Timer 1 Stopped when Core is halted
-// DBG_TIM2_STOP Timer 2 Stopped when Core is halted
-// DBG_TIM3_STOP Timer 3 Stopped when Core is halted
-// DBG_TIM4_STOP Timer 4 Stopped when Core is halted
-// DBG_CAN_STOP CAN Stopped when Core is halted
-//
- _WDWORD(0xE0042004, 0x00000027); // DBGMCU_CR
-}
-
-DebugSetup(); // Debugger Setup
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/RTE/CMSIS/RTX_Conf_CM.c b/IDE/MDK5-ARM/Projects/CryptTest/RTE/CMSIS/RTX_Conf_CM.c
deleted file mode 100644
index a13ecc5b6..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/CMSIS/RTX_Conf_CM.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - RTX
- *----------------------------------------------------------------------------
- * Name: RTX_Conf_CM.C
- * Purpose: Configuration of CMSIS RTX Kernel for Cortex-M
- * Rev.: V4.73
- *----------------------------------------------------------------------------
- *
- * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
- * 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 ARM 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 COPYRIGHT HOLDERS AND CONTRIBUTORS 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.
- *---------------------------------------------------------------------------*/
-
-#include "cmsis_os.h"
-
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part BEGIN
- *---------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// Thread Configuration
-// =======================
-//
-// Number of concurrent running threads <0-250>
-// Defines max. number of threads that will run at the same time.
-// Default: 6
-#ifndef OS_TASKCNT
- #define OS_TASKCNT 6
-#endif
-
-// Default Thread stack size [bytes] <64-4096:8><#/4>
-// Defines default stack size for threads with osThreadDef stacksz = 0
-// Default: 200
-#ifndef OS_STKSIZE
- #define OS_STKSIZE 50
-#endif
-
-// Main Thread stack size [bytes] <64-32768:8><#/4>
-// Defines stack size for main thread.
-// Default: 200
-#ifndef OS_MAINSTKSIZE
- #define OS_MAINSTKSIZE 2000
-#endif
-
-// Number of threads with user-provided stack size <0-250>
-// Defines the number of threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVCNT
- #define OS_PRIVCNT 0
-#endif
-
-// Total stack size [bytes] for threads with user-provided stack size <0-1048576:8><#/4>
-// Defines the combined stack size for threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVSTKSIZE
- #define OS_PRIVSTKSIZE 0
-#endif
-
-// Check for stack overflow
-// Includes the stack checking code for stack overflow.
-// Note that additional code reduces the Kernel performance.
-#ifndef OS_STKCHECK
- #define OS_STKCHECK 1
-#endif
-
-// Processor mode for thread execution
-// <0=> Unprivileged mode
-// <1=> Privileged mode
-// Default: Privileged mode
-#ifndef OS_RUNPRIV
- #define OS_RUNPRIV 1
-#endif
-
-//
-
-// RTX Kernel Timer Tick Configuration
-// ======================================
-// Use Cortex-M SysTick timer as RTX Kernel Timer
-// Use the Cortex-M SysTick timer as a time-base for RTX.
-#ifndef OS_SYSTICK
- #define OS_SYSTICK 1
-#endif
-//
-// Timer clock value [Hz] <1-1000000000>
-// Defines the timer clock value.
-// Default: 12000000 (12MHz)
-#ifndef OS_CLOCK
- #define OS_CLOCK 12000000
-#endif
-
-// Timer tick value [us] <1-1000000>
-// Defines the timer tick value.
-// Default: 1000 (1ms)
-#ifndef OS_TICK
- #define OS_TICK 1000
-#endif
-
-//
-
-// System Configuration
-// =======================
-//
-// Round-Robin Thread switching
-// ===============================
-//
-// Enables Round-Robin Thread switching.
-#ifndef OS_ROBIN
- #define OS_ROBIN 1
-#endif
-
-// Round-Robin Timeout [ticks] <1-1000>
-// Defines how long a thread will execute before a thread switch.
-// Default: 5
-#ifndef OS_ROBINTOUT
- #define OS_ROBINTOUT 5
-#endif
-
-//
-
-// User Timers
-// ==============
-// Enables user Timers
-#ifndef OS_TIMERS
- #define OS_TIMERS 1
-#endif
-
-// Timer Thread Priority
-// <1=> Low
-// <2=> Below Normal <3=> Normal <4=> Above Normal
-// <5=> High
-// <6=> Realtime (highest)
-// Defines priority for Timer Thread
-// Default: High
-#ifndef OS_TIMERPRIO
- #define OS_TIMERPRIO 5
-#endif
-
-// Timer Thread stack size [bytes] <64-4096:8><#/4>
-// Defines stack size for Timer thread.
-// Default: 200
-#ifndef OS_TIMERSTKSZ
- #define OS_TIMERSTKSZ 50
-#endif
-
-// Timer Callback Queue size <1-32>
-// Number of concurrent active timer callback functions.
-// Default: 4
-#ifndef OS_TIMERCBQS
- #define OS_TIMERCBQS 4
-#endif
-
-//
-
-// ISR FIFO Queue size<4=> 4 entries <8=> 8 entries
-// <12=> 12 entries <16=> 16 entries
-// <24=> 24 entries <32=> 32 entries
-// <48=> 48 entries <64=> 64 entries
-// <96=> 96 entries
-// ISR functions store requests to this buffer,
-// when they are called from the interrupt handler.
-// Default: 16 entries
-#ifndef OS_FIFOSZ
- #define OS_FIFOSZ 16
-#endif
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-// Standard library system mutexes
-// ===============================
-// Define max. number system mutexes that are used to protect
-// the arm standard runtime library. For microlib they are not used.
-#ifndef OS_MUTEXCNT
- #define OS_MUTEXCNT 8
-#endif
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part END
- *---------------------------------------------------------------------------*/
-
-#define OS_TRV ((uint32_t)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
-
-
-/*----------------------------------------------------------------------------
- * Global Functions
- *---------------------------------------------------------------------------*/
-
-/*--------------------------- os_idle_demon ---------------------------------*/
-
-void os_idle_demon (void) {
- /* The idle demon is a system thread, running when no other thread is */
- /* ready to run. */
-
- for (;;) {
- /* HERE: include optional user code to be executed when no thread runs.*/
- }
-}
-
-#if (OS_SYSTICK == 0) // Functions for alternative timer as RTX kernel timer
-
-/*--------------------------- os_tick_init ----------------------------------*/
-
-// Initialize alternative hardware timer as RTX kernel timer
-// Return: IRQ number of the alternative hardware timer
-int os_tick_init (void) {
- return (-1); /* Return IRQ number of timer (0..239) */
-}
-
-/*--------------------------- os_tick_val -----------------------------------*/
-
-// Get alternative hardware timer current value (0 .. OS_TRV)
-uint32_t os_tick_val (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_ovf -----------------------------------*/
-
-// Get alternative hardware timer overflow flag
-// Return: 1 - overflow, 0 - no overflow
-uint32_t os_tick_ovf (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_irqack --------------------------------*/
-
-// Acknowledge alternative hardware timer interrupt
-void os_tick_irqack (void) {
- /* ... */
-}
-
-#endif // (OS_SYSTICK == 0)
-
-/*--------------------------- os_error --------------------------------------*/
-
-/* OS Error Codes */
-#define OS_ERROR_STACK_OVF 1
-#define OS_ERROR_FIFO_OVF 2
-#define OS_ERROR_MBX_OVF 3
-
-extern osThreadId svcThreadGetId (void);
-
-void os_error (uint32_t error_code) {
- /* This function is called when a runtime error is detected. */
- /* Parameter 'error_code' holds the runtime error code. */
-
- /* HERE: include optional code to be executed on runtime error. */
- switch (error_code) {
- case OS_ERROR_STACK_OVF:
- /* Stack overflow detected for the currently running task. */
- /* Thread can be identified by calling svcThreadGetId(). */
- break;
- case OS_ERROR_FIFO_OVF:
- /* ISR FIFO Queue buffer overflow detected. */
- break;
- case OS_ERROR_MBX_OVF:
- /* Mailbox overflow detected. */
- break;
- }
- for (;;);
-}
-
-
-/*----------------------------------------------------------------------------
- * RTX Configuration Functions
- *---------------------------------------------------------------------------*/
-
-#include "RTX_CM_lib.h"
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/RTE_Device.h b/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/RTE_Device.h
deleted file mode 100644
index 2648e44d4..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/RTE_Device.h
+++ /dev/null
@@ -1,3127 +0,0 @@
-/* -----------------------------------------------------------------------------
- * Copyright (C) 2013 ARM Limited. All rights reserved.
- *
- * $Date: 27. June 2013
- * $Revision: V1.01
- *
- * Project: RTE Device Configuration for ST STM32F2xx
- * -------------------------------------------------------------------------- */
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-#ifndef __RTE_DEVICE_H
-#define __RTE_DEVICE_H
-
-
-#define GPIO_PORT(num) \
- ((num == 0) ? GPIOA : \
- (num == 1) ? GPIOB : \
- (num == 2) ? GPIOC : \
- (num == 3) ? GPIOD : \
- (num == 4) ? GPIOE : \
- (num == 5) ? GPIOF : \
- (num == 6) ? GPIOG : \
- (num == 7) ? GPIOH : \
- (num == 8) ? GPIOI : \
- NULL)
-
-
-// Clock Configuration
-// High-speed Internal Clock <1-999999999>
-#define RTE_HSI 16000000
-// High-speed External Clock <1-999999999>
-#define RTE_HSE 25000000
-// System Clock <1-999999999>
-#define RTE_SYSCLK 120000000
-// AHB Clock <1-999999999>
-#define RTE_HCLK 120000000
-// APB1 Clock <1-999999999>
-#define RTE_PCLK1 30000000
-// APB2 Clock <1-999999999>
-#define RTE_PCLK2 60000000
-// 48MHz Clock
-#define RTE_PLL48CK 48000000
-//
-
-
-// USART1 (Universal synchronous asynchronous receiver transmitter) [Driver_UART1]
-// Configuration settings for Driver_UART1 in component ::Drivers:UART
-#define RTE_USART1 0
-
-// USART1_TX Pin <0=>PA9 <1=>PB6
-#define RTE_USART1_TX_ID 0
-#if (RTE_USART1_TX_ID == 0)
-#define RTE_USART1_TX_PORT GPIOA
-#define RTE_USART1_TX_BIT 9
-#elif (RTE_USART1_TX_ID == 1)
-#define RTE_USART1_TX_PORT GPIOB
-#define RTE_USART1_TX_BIT 6
-#else
-#error "Invalid USART1_TX Pin Configuration!"
-#endif
-
-// USART1_RX Pin <0=>PA10 <1=>PB7
-#define RTE_USART1_RX_ID 0
-#if (RTE_USART1_RX_ID == 0)
-#define RTE_USART1_RX_PORT GPIOA
-#define RTE_USART1_RX_BIT 10
-#elif (RTE_USART1_RX_ID == 1)
-#define RTE_USART1_RX_PORT GPIOB
-#define RTE_USART1_RX_BIT 7
-#else
-#error "Invalid USART1_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART1_CK Pin <0=>PA8
-//
-#define RTE_USART1_CK 0
-#define RTE_USART1_CK_ID 0
-#if (RTE_USART1_CK_ID == 0)
-#define RTE_USART1_CK_PORT GPIOA
-#define RTE_USART1_CK_BIT 8
-#else
-#error "Invalid USART1_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART1_CTS Pin <0=>PA11
-// USART1_RTS Pin <0=>PA12
-// Manual CTS/RTS
-//
-#define RTE_USART1_HW_FLOW 0
-#define RTE_USART1_CTS_ID 0
-#define RTE_USART1_RTS_ID 0
-#define RTE_USART1_MANUAL_FLOW 0
-#if (RTE_USART1_CTS_ID == 0)
-#define RTE_USART1_CTS_PORT GPIOA
-#define RTE_USART1_CTS_BIT 11
-#else
-#error "Invalid USART1_CTS Pin Configuration!"
-#endif
-#if (RTE_USART1_RTS_ID == 0)
-#define RTE_USART1_RTS_PORT GPIOA
-#define RTE_USART1_RTS_BIT 12
-#else
-#error "Invalid USART1_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <2=>2 <5=>5
-// Selects DMA Stream (only Stream 2 or 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_RX_DMA 1
-#define RTE_USART1_RX_DMA_NUMBER 2
-#define RTE_USART1_RX_DMA_STREAM 2
-#define RTE_USART1_RX_DMA_CHANNEL 4
-#define RTE_USART1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_TX_DMA 1
-#define RTE_USART1_TX_DMA_NUMBER 2
-#define RTE_USART1_TX_DMA_STREAM 7
-#define RTE_USART1_TX_DMA_CHANNEL 4
-#define RTE_USART1_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART2 (Universal synchronous asynchronous receiver transmitter) [Driver_UART2]
-// Configuration settings for Driver_UART2 in component ::Drivers:UART
-#define RTE_USART2 0
-
-// USART2_TX Pin <0=>PA2 <1=>PD5
-#define RTE_USART2_TX_ID 0
-#if (RTE_USART2_TX_ID == 0)
-#define RTE_USART2_TX_PORT GPIOA
-#define RTE_USART2_TX_BIT 2
-#elif (RTE_USART2_TX_ID == 1)
-#define RTE_USART2_TX_PORT GPIOD
-#define RTE_USART2_TX_BIT 5
-#else
-#error "Invalid USART2_TX Pin Configuration!"
-#endif
-
-// USART2_RX Pin <0=>PA3 <1=>PD6
-#define RTE_USART2_RX_ID 0
-#if (RTE_USART2_RX_ID == 0)
-#define RTE_USART2_RX_PORT GPIOA
-#define RTE_USART2_RX_BIT 3
-#elif (RTE_USART2_RX_ID == 1)
-#define RTE_USART2_RX_PORT GPIOD
-#define RTE_USART2_RX_BIT 6
-#else
-#error "Invalid USART2_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART2_CK Pin <0=>PA4 <1=>PD7
-//
-#define RTE_USART2_CK 0
-#define RTE_USART2_CK_ID 0
-#if (RTE_USART2_CK_ID == 0)
-#define RTE_USART2_CK_PORT GPIOA
-#define RTE_USART2_CK_BIT 4
-#elif (RTE_USART2_CK_ID == 1)
-#define RTE_USART2_CK_PORT GPIOD
-#define RTE_USART2_CK_BIT 7
-#else
-#error "Invalid USART2_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART2_CTS Pin <0=>PA0 <1=>PD3
-// USART2_RTS Pin <0=>PA1 <1=>PD4
-// Manual CTS/RTS
-//
-#define RTE_USART2_HW_FLOW 0
-#define RTE_USART2_CTS_ID 0
-#define RTE_USART2_RTS_ID 0
-#define RTE_USART2_MANUAL_FLOW 0
-#if (RTE_USART2_CTS_ID == 0)
-#define RTE_USART2_CTS_PORT GPIOA
-#define RTE_USART2_CTS_BIT 0
-#elif (RTE_USART2_CTS_ID == 1)
-#define RTE_USART2_CTS_PORT GPIOD
-#define RTE_USART2_CTS_BIT 3
-#else
-#error "Invalid USART2_CTS Pin Configuration!"
-#endif
-#if (RTE_USART2_RTS_ID == 0)
-#define RTE_USART2_RTS_PORT GPIOA
-#define RTE_USART2_RTS_BIT 1
-#elif (RTE_USART2_RTS_ID == 1)
-#define RTE_USART2_RTS_PORT GPIOD
-#define RTE_USART2_RTS_BIT 4
-#else
-#error "Invalid USART2_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5
-// Selects DMA Stream (only Stream 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_RX_DMA 1
-#define RTE_USART2_RX_DMA_NUMBER 1
-#define RTE_USART2_RX_DMA_STREAM 5
-#define RTE_USART2_RX_DMA_CHANNEL 4
-#define RTE_USART2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6
-// Selects DMA Stream (only Stream 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_TX_DMA 1
-#define RTE_USART2_TX_DMA_NUMBER 1
-#define RTE_USART2_TX_DMA_STREAM 6
-#define RTE_USART2_TX_DMA_CHANNEL 4
-#define RTE_USART2_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART3 (Universal synchronous asynchronous receiver transmitter) [Driver_UART3]
-// Configuration settings for Driver_UART3 in component ::Drivers:UART
-#define RTE_USART3 0
-
-// USART3_TX Pin <0=>PB10 <1=>PC10 <2=>PD8
-#define RTE_USART3_TX_ID 0
-#if (RTE_USART3_TX_ID == 0)
-#define RTE_USART3_TX_PORT GPIOB
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 1)
-#define RTE_USART3_TX_PORT GPIOC
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 2)
-#define RTE_USART3_TX_PORT GPIOD
-#define RTE_USART3_TX_BIT 8
-#else
-#error "Invalid USART3_TX Pin Configuration!"
-#endif
-
-// USART3_RX Pin <0=>PB11 <1=>PC11 <2=>PD9
-#define RTE_USART3_RX_ID 0
-#if (RTE_USART3_RX_ID == 0)
-#define RTE_USART3_RX_PORT GPIOB
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 1)
-#define RTE_USART3_RX_PORT GPIOC
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 2)
-#define RTE_USART3_RX_PORT GPIOD
-#define RTE_USART3_RX_BIT 9
-#else
-#error "Invalid USART3_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART3_CK Pin <0=>PB12 <1=>PC12 <2=>PD10
-//
-#define RTE_USART3_CK 0
-#define RTE_USART3_CK_ID 0
-#if (RTE_USART3_CK_ID == 0)
-#define RTE_USART3_CK_PORT GPIOB
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 1)
-#define RTE_USART3_CK_PORT GPIOC
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 2)
-#define RTE_USART3_CK_PORT GPIOD
-#define RTE_USART3_CK_BIT 10
-#else
-#error "Invalid USART3_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART3_CTS Pin <0=>PB13 <1=>PD11
-// USART3_RTS Pin <0=>PB14 <1=>PD12
-// Manual CTS/RTS
-//
-#define RTE_USART3_HW_FLOW 0
-#define RTE_USART3_CTS_ID 0
-#define RTE_USART3_RTS_ID 0
-#define RTE_USART3_MANUAL_FLOW 0
-#if (RTE_USART3_CTS_ID == 0)
-#define RTE_USART3_CTS_PORT GPIOB
-#define RTE_USART3_CTS_BIT 13
-#elif (RTE_USART3_CTS_ID == 1)
-#define RTE_USART3_CTS_PORT GPIOD
-#define RTE_USART3_CTS_BIT 11
-#else
-#error "Invalid USART3_CTS Pin Configuration!"
-#endif
-#if (RTE_USART3_RTS_ID == 0)
-#define RTE_USART3_RTS_PORT GPIOB
-#define RTE_USART3_RTS_BIT 14
-#elif (RTE_USART3_RTS_ID == 1)
-#define RTE_USART3_RTS_PORT GPIOD
-#define RTE_USART3_RTS_BIT 12
-#else
-#error "Invalid USART3_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <1=>1
-// Selects DMA Stream (only Stream 1 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_RX_DMA 1
-#define RTE_USART3_RX_DMA_NUMBER 1
-#define RTE_USART3_RX_DMA_STREAM 1
-#define RTE_USART3_RX_DMA_CHANNEL 4
-#define RTE_USART3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_TX_DMA 1
-#define RTE_USART3_TX_DMA_NUMBER 1
-#define RTE_USART3_TX_DMA_STREAM 3
-#define RTE_USART3_TX_DMA_CHANNEL 4
-#define RTE_USART3_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART4 (Universal asynchronous receiver transmitter) [Driver_UART4]
-// Configuration settings for Driver_UART4 in component ::Drivers:UART
-#define RTE_UART4 0
-
-// UART4_TX Pin <0=>PA0 <1=>PC10
-#define RTE_UART4_TX_ID 0
-#if (RTE_UART4_TX_ID == 0)
-#define RTE_UART4_TX_PORT GPIOA
-#define RTE_UART4_TX_BIT 0
-#elif (RTE_UART4_TX_ID == 1)
-#define RTE_UART4_TX_PORT GPIOC
-#define RTE_UART4_TX_BIT 10
-#else
-#error "Invalid UART4_TX Pin Configuration!"
-#endif
-
-// UART4_RX Pin <0=>PA1 <1=>PC11
-#define RTE_UART4_RX_ID 0
-#if (RTE_UART4_RX_ID == 0)
-#define RTE_UART4_RX_PORT GPIOA
-#define RTE_UART4_RX_BIT 1
-#elif (RTE_UART4_RX_ID == 1)
-#define RTE_UART4_RX_PORT GPIOC
-#define RTE_UART4_RX_BIT 11
-#else
-#error "Invalid UART4_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_RX_DMA 1
-#define RTE_UART4_RX_DMA_NUMBER 1
-#define RTE_UART4_RX_DMA_STREAM 2
-#define RTE_UART4_RX_DMA_CHANNEL 4
-#define RTE_UART4_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_TX_DMA 1
-#define RTE_UART4_TX_DMA_NUMBER 1
-#define RTE_UART4_TX_DMA_STREAM 4
-#define RTE_UART4_TX_DMA_CHANNEL 4
-#define RTE_UART4_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART5 (Universal asynchronous receiver transmitter) [Driver_UART5]
-// Configuration settings for Driver_UART5 in component ::Drivers:UART
-#define RTE_UART5 0
-
-// UART5_TX Pin <0=>PC12
-#define RTE_UART5_TX_ID 0
-#if (RTE_UART5_TX_ID == 0)
-#define RTE_UART5_TX_PORT GPIOC
-#define RTE_UART5_TX_BIT 12
-#else
-#error "Invalid UART5_TX Pin Configuration!"
-#endif
-
-// UART5_RX Pin <0=>PD2
-#define RTE_UART5_RX_ID 0
-#if (RTE_UART5_RX_ID == 0)
-#define RTE_UART5_RX_PORT GPIOD
-#define RTE_UART5_RX_BIT 2
-#else
-#error "Invalid UART5_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0
-// Selects DMA Stream (only Stream 0 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_RX_DMA 1
-#define RTE_UART5_RX_DMA_NUMBER 1
-#define RTE_UART5_RX_DMA_STREAM 0
-#define RTE_UART5_RX_DMA_CHANNEL 4
-#define RTE_UART5_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_TX_DMA 1
-#define RTE_UART5_TX_DMA_NUMBER 1
-#define RTE_UART5_TX_DMA_STREAM 7
-#define RTE_UART5_TX_DMA_CHANNEL 4
-#define RTE_UART5_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART6 (Universal synchronous asynchronous receiver transmitter) [Driver_UART6]
-// Configuration settings for Driver_UART6 in component ::Drivers:UART
-#define RTE_USART6 0
-
-// USART6_TX Pin <0=>PC6 <1=>PG14
-#define RTE_USART6_TX_ID 0
-#if (RTE_USART6_TX_ID == 0)
-#define RTE_USART6_TX_PORT GPIOC
-#define RTE_USART6_TX_BIT 6
-#elif (RTE_USART6_TX_ID == 1)
-#define RTE_USART6_TX_PORT GPIOG
-#define RTE_USART6_TX_BIT 14
-#else
-#error "Invalid USART6_TX Pin Configuration!"
-#endif
-
-// USART6_RX Pin <0=>PC7 <1=>PG9
-#define RTE_USART6_RX_ID 0
-#if (RTE_USART6_RX_ID == 0)
-#define RTE_USART6_RX_PORT GPIOC
-#define RTE_USART6_RX_BIT 7
-#elif (RTE_USART6_RX_ID == 1)
-#define RTE_USART6_RX_PORT GPIOG
-#define RTE_USART6_RX_BIT 9
-#else
-#error "Invalid USART6_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART6_CK Pin <0=>PC8 <1=>PG7
-//
-#define RTE_USART6_CK 0
-#define RTE_USART6_CK_ID 0
-#if (RTE_USART6_CK_ID == 0)
-#define RTE_USART6_CK_PORT GPIOC
-#define RTE_USART6_CK_BIT 8
-#elif (RTE_USART6_CK_ID == 1)
-#define RTE_USART6_CK_PORT GPIOG
-#define RTE_USART6_CK_BIT 7
-#else
-#error "Invalid USART6_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART6_CTS Pin <0=>PG13 <1=>PG15
-// USART6_RTS Pin <0=>PG8 <1=>PG12
-// Manual CTS/RTS
-//
-#define RTE_USART6_HW_FLOW 0
-#define RTE_USART6_CTS_ID 0
-#define RTE_USART6_RTS_ID 0
-#define RTE_USART6_MANUAL_FLOW 0
-#if (RTE_USART6_CTS_ID == 0)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 13
-#elif (RTE_USART6_CTS_ID == 1)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 15
-#else
-#error "Invalid USART6_CTS Pin Configuration!"
-#endif
-#if (RTE_USART6_RTS_ID == 0)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 8
-#elif (RTE_USART6_RTS_ID == 1)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 12
-#else
-#error "Invalid USART6_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <1=>1 <2=>2
-// Selects DMA Stream (only Stream 1 or 2 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_RX_DMA 1
-#define RTE_USART6_RX_DMA_NUMBER 2
-#define RTE_USART6_RX_DMA_STREAM 1
-#define RTE_USART6_RX_DMA_CHANNEL 5
-#define RTE_USART6_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_TX_DMA 1
-#define RTE_USART6_TX_DMA_NUMBER 2
-#define RTE_USART6_TX_DMA_STREAM 6
-#define RTE_USART6_TX_DMA_CHANNEL 5
-#define RTE_USART6_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C1 (Inter-integrated Circuit Interface 1) [Driver_I2C1]
-// Configuration settings for Driver_I2C1 in component ::Drivers:I2C
-#define RTE_I2C1 0
-
-// I2C1_SCL Pin <0=>PB6 <1=>PB8
-#define RTE_I2C1_SCL_PORT_ID 0
-#if (RTE_I2C1_SCL_PORT_ID == 0)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 6
-#elif (RTE_I2C1_SCL_PORT_ID == 1)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 8
-#else
-#error "Invalid I2C1_SCL Pin Configuration!"
-#endif
-
-// I2C1_SDA Pin <0=>PB7 <1=>PB9
-#define RTE_I2C1_SDA_PORT_ID 0
-#if (RTE_I2C1_SDA_PORT_ID == 0)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 7
-#elif (RTE_I2C1_SDA_PORT_ID == 1)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 9
-#else
-#error "Invalid I2C1_SDA Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <5=>5
-// Selects DMA Stream (only Stream 0 or 5 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_RX_DMA 1
-#define RTE_I2C1_RX_DMA_NUMBER 1
-#define RTE_I2C1_RX_DMA_STREAM 0
-#define RTE_I2C1_RX_DMA_CHANNEL 1
-#define RTE_I2C1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_TX_DMA 1
-#define RTE_I2C1_TX_DMA_NUMBER 1
-#define RTE_I2C1_TX_DMA_STREAM 6
-#define RTE_I2C1_TX_DMA_CHANNEL 1
-#define RTE_I2C1_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C2 (Inter-integrated Circuit Interface 2) [Driver_I2C2]
-// Configuration settings for Driver_I2C2 in component ::Drivers:I2C
-#define RTE_I2C2 0
-
-// I2C2_SCL Pin <0=>PF1 <1=>PH4 <2=>PB10
-#define RTE_I2C2_SCL_PORT_ID 0
-#if (RTE_I2C2_SCL_PORT_ID == 0)
-#define RTE_I2C2_SCL_PORT GPIOF
-#define RTE_I2C2_SCL_BIT 1
-#elif (RTE_I2C2_SCL_PORT_ID == 1)
-#define RTE_I2C2_SCL_PORT GPIOH
-#define RTE_I2C2_SCL_BIT 4
-#elif (RTE_I2C2_SCL_PORT_ID == 2)
-#define RTE_I2C2_SCL_PORT GPIOB
-#define RTE_I2C2_SCL_BIT 10
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// I2C2_SDA Pin <0=>PF0 <1=>PH5 <2=>PB11
-#define RTE_I2C2_SDA_PORT_ID 0
-#if (RTE_I2C2_SDA_PORT_ID == 0)
-#define RTE_I2C2_SDA_PORT GPIOF
-#define RTE_I2C2_SDA_BIT 0
-#elif (RTE_I2C2_SDA_PORT_ID == 1)
-#define RTE_I2C2_SDA_PORT GPIOH
-#define RTE_I2C2_SDA_BIT 5
-#elif (RTE_I2C2_SDA_PORT_ID == 2)
-#define RTE_I2C2_SDA_PORT GPIOB
-#define RTE_I2C2_SDA_BIT 11
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2 <3=>3
-// Selects DMA Stream (only Stream 2 or 3 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 7 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_RX_DMA 1
-#define RTE_I2C2_RX_DMA_NUMBER 1
-#define RTE_I2C2_RX_DMA_STREAM 2
-#define RTE_I2C2_RX_DMA_CHANNEL 7
-#define RTE_I2C2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_TX_DMA 1
-#define RTE_I2C2_TX_DMA_NUMBER 1
-#define RTE_I2C2_TX_DMA_STREAM 7
-#define RTE_I2C2_TX_DMA_CHANNEL 7
-#define RTE_I2C2_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C3 (Inter-integrated Circuit Interface 3) [Driver_I2C3]
-// Configuration settings for Driver_I2C3 in component ::Drivers:I2C
-#define RTE_I2C3 0
-
-// I2C3_SCL Pin <0=>PH7 <1=>PA8
-#define RTE_I2C3_SCL_PORT_ID 0
-#if (RTE_I2C3_SCL_PORT_ID == 0)
-#define RTE_I2C3_SCL_PORT GPIOH
-#define RTE_I2C3_SCL_BIT 7
-#elif (RTE_I2C3_SCL_PORT_ID == 1)
-#define RTE_I2C3_SCL_PORT GPIOA
-#define RTE_I2C3_SCL_BIT 8
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// I2C3_SDA Pin <0=>PH8 <1=>PC9
-#define RTE_I2C3_SDA_PORT_ID 0
-#if (RTE_I2C3_SDA_PORT_ID == 0)
-#define RTE_I2C3_SDA_PORT GPIOH
-#define RTE_I2C3_SDA_BIT 8
-#elif (RTE_I2C3_SDA_PORT_ID == 1)
-#define RTE_I2C3_SDA_PORT GPIOC
-#define RTE_I2C3_SDA_BIT 9
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_RX_DMA 1
-#define RTE_I2C3_RX_DMA_NUMBER 1
-#define RTE_I2C3_RX_DMA_STREAM 2
-#define RTE_I2C3_RX_DMA_CHANNEL 3
-#define RTE_I2C3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_TX_DMA 1
-#define RTE_I2C3_TX_DMA_NUMBER 1
-#define RTE_I2C3_TX_DMA_STREAM 4
-#define RTE_I2C3_TX_DMA_CHANNEL 3
-#define RTE_I2C3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI1 (Serial Peripheral Interface 1) [Driver_SPI1]
-// Configuration settings for Driver_SPI1 in component ::Drivers:SPI
-#define RTE_SPI1 0
-
-// SPI1_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI1_NSS_PIN 1
-#define RTE_SPI1_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI1_NSS_BIT 4
-
-// SPI1_SCK Pin <0=>PA5 <1=>PB3
-#define RTE_SPI1_SCL_PORT_ID 0
-#if (RTE_SPI1_SCL_PORT_ID == 0)
-#define RTE_SPI1_SCL_PORT GPIOA
-#define RTE_SPI1_SCL_BIT 5
-#elif (RTE_SPI1_SCL_PORT_ID == 1)
-#define RTE_SPI1_SCL_PORT GPIOB
-#define RTE_SPI1_SCL_BIT 3
-#else
-#error "Invalid SPI1_SCK Pin Configuration!"
-#endif
-
-// SPI1_MISO Pin <0=>PA6 <1=>PB4
-#define RTE_SPI1_MISO_PORT_ID 0
-#if (RTE_SPI1_MISO_PORT_ID == 0)
-#define RTE_SPI1_MISO_PORT GPIOA
-#define RTE_SPI1_MISO_BIT 6
-#elif (RTE_SPI1_MISO_PORT_ID == 1)
-#define RTE_SPI1_MISO_PORT GPIOB
-#define RTE_SPI1_MISO_BIT 4
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// SPI1_MOSI Pin <0=>PA7 <1=>PB5
-#define RTE_SPI1_MOSI_PORT_ID 0
-#if (RTE_SPI1_MOSI_PORT_ID == 0)
-#define RTE_SPI1_MOSI_PORT GPIOA
-#define RTE_SPI1_MOSI_BIT 7
-#elif (RTE_SPI1_MOSI_PORT_ID == 1)
-#define RTE_SPI1_MOSI_PORT GPIOB
-#define RTE_SPI1_MOSI_BIT 5
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_RX_DMA 1
-#define RTE_SPI1_RX_DMA_NUMBER 2
-#define RTE_SPI1_RX_DMA_STREAM 0
-#define RTE_SPI1_RX_DMA_CHANNEL 3
-#define RTE_SPI1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <5=>5
-// Selects DMA Stream (only Stream 3 or 5 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_TX_DMA 1
-#define RTE_SPI1_TX_DMA_NUMBER 2
-#define RTE_SPI1_TX_DMA_STREAM 5
-#define RTE_SPI1_TX_DMA_CHANNEL 3
-#define RTE_SPI1_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI2 (Serial Peripheral Interface 2) [Driver_SPI2]
-// Configuration settings for Driver_SPI2 in component ::Drivers:SPI
-#define RTE_SPI2 0
-
-// SPI2_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI2_NSS_PIN 1
-#define RTE_SPI2_NSS_PORT GPIO_PORT(1)
-#define RTE_SPI2_NSS_BIT 12
-
-// SPI2_SCK Pin <0=>PB10 <1=>PB13 <2=>PI1
-#define RTE_SPI2_SCL_PORT_ID 0
-#if (RTE_SPI2_SCL_PORT_ID == 0)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 10
-#elif (RTE_SPI2_SCL_PORT_ID == 1)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 13
-#elif (RTE_SPI2_SCL_PORT_ID == 2)
-#define RTE_SPI2_SCL_PORT GPIOI
-#define RTE_SPI2_SCL_BIT 1
-#else
-#error "Invalid SPI2_SCK Pin Configuration!"
-#endif
-
-// SPI2_MISO Pin <0=>PB14 <1=>PC2 <2=>PI2
-#define RTE_SPI2_MISO_PORT_ID 0
-#if (RTE_SPI2_MISO_PORT_ID == 0)
-#define RTE_SPI2_MISO_PORT GPIOB
-#define RTE_SPI2_MISO_BIT 14
-#elif (RTE_SPI2_MISO_PORT_ID == 1)
-#define RTE_SPI2_MISO_PORT GPIOC
-#define RTE_SPI2_MISO_BIT 2
-#elif (RTE_SPI2_MISO_PORT_ID == 2)
-#define RTE_SPI2_MISO_PORT GPIOI
-#define RTE_SPI2_MISO_BIT 2
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// SPI2_MOSI Pin <0=>PB15 <1=>PC3 <2=>OI3
-#define RTE_SPI2_MOSI_PORT_ID 0
-#if (RTE_SPI2_MOSI_PORT_ID == 0)
-#define RTE_SPI2_MOSI_PORT GPIOB
-#define RTE_SPI2_MOSI_BIT 15
-#elif (RTE_SPI2_MOSI_PORT_ID == 1)
-#define RTE_SPI2_MOSI_PORT GPIOC
-#define RTE_SPI2_MOSI_BIT 3
-#elif (RTE_SPI2_MOSI_PORT_ID == 2)
-#define RTE_SPI2_MOSI_PORT GPIOI
-#define RTE_SPI2_MOSI_BIT 3
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_RX_DMA 1
-#define RTE_SPI2_RX_DMA_NUMBER 1
-#define RTE_SPI2_RX_DMA_STREAM 2
-#define RTE_SPI2_RX_DMA_CHANNEL 0
-#define RTE_SPI2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_TX_DMA 1
-#define RTE_SPI2_TX_DMA_NUMBER 1
-#define RTE_SPI2_TX_DMA_STREAM 3
-#define RTE_SPI2_TX_DMA_CHANNEL 0
-#define RTE_SPI2_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI3 (Serial Peripheral Interface 3) [Driver_SPI3]
-// Configuration settings for Driver_SPI3 in component ::Drivers:SPI
-#define RTE_SPI3 0
-
-// SPI3_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI3_NSS_PIN 1
-#define RTE_SPI3_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI3_NSS_BIT 15
-
-// SPI3_SCK Pin <0=>PB3 <1=>PC10
-#define RTE_SPI3_SCL_PORT_ID 0
-#if (RTE_SPI3_SCL_PORT_ID == 0)
-#define RTE_SPI3_SCL_PORT GPIOB
-#define RTE_SPI3_SCL_BIT 3
-#elif (RTE_SPI3_SCL_PORT_ID == 1)
-#define RTE_SPI3_SCL_PORT GPIOC
-#define RTE_SPI3_SCL_BIT 10
-#else
-#error "Invalid SPI3_SCK Pin Configuration!"
-#endif
-
-// SPI3_MISO Pin <0=>PB4 <1=>PC11
-#define RTE_SPI3_MISO_PORT_ID 0
-#if (RTE_SPI3_MISO_PORT_ID == 0)
-#define RTE_SPI3_MISO_PORT GPIOB
-#define RTE_SPI3_MISO_BIT 4
-#elif (RTE_SPI3_MISO_PORT_ID == 1)
-#define RTE_SPI3_MISO_PORT GPIOC
-#define RTE_SPI3_MISO_BIT 11
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// SPI3_MOSI Pin <0=>PB5 <1=>PC12
-#define RTE_SPI3_MOSI_PORT_ID 0
-#if (RTE_SPI3_MOSI_PORT_ID == 0)
-#define RTE_SPI3_MOSI_PORT GPIOB
-#define RTE_SPI3_MOSI_BIT 5
-#elif (RTE_SPI3_MOSI_PORT_ID == 1)
-#define RTE_SPI3_MOSI_PORT GPIOC
-#define RTE_SPI3_MOSI_BIT 12
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_RX_DMA 1
-#define RTE_SPI3_RX_DMA_NUMBER 1
-#define RTE_SPI3_RX_DMA_STREAM 0
-#define RTE_SPI3_RX_DMA_CHANNEL 0
-#define RTE_SPI3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5 <7=>7
-// Selects DMA Stream (only Stream 5 or 7 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_TX_DMA 1
-#define RTE_SPI3_TX_DMA_NUMBER 1
-#define RTE_SPI3_TX_DMA_STREAM 5
-#define RTE_SPI3_TX_DMA_CHANNEL 0
-#define RTE_SPI3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SDIO (Secure Digital Input/Output) [Driver_MCI0]
-// Configuration settings for Driver_MCI0 in component ::Drivers:MCI
-#define RTE_SDIO 1
-
-// SDIO_CD (Card Detect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_CD_PIN 1
-#define RTE_SDIO_CD_ACTIVE 0
-#define RTE_SDIO_CD_PORT GPIO_PORT(7)
-#define RTE_SDIO_CD_BIT 15
-
-// SDIO_WP (Write Protect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_WP_PIN 0
-#define RTE_SDIO_WP_ACTIVE 0
-#define RTE_SDIO_WP_PORT GPIO_PORT(7)
-#define RTE_SDIO_WP_BIT 16
-
-// SDIO Bus
-// SDIO_CK Pin <0=>PC12
-#define RTE_SDIO_CK_PORT_ID 0
-#if (RTE_SDIO_CK_PORT_ID == 0)
-#define RTE_SDIO_CK_PORT GPIOC
-#define RTE_SDIO_CK_PIN 12
-#else
-#error "Invalid SDIO_CK Pin Configuration!"
-#endif
-// SDIO_CMD Pin <0=>PD2
-#define RTE_SDIO_CMD_PORT_ID 0
-#if (RTE_SDIO_CMD_PORT_ID == 0)
-#define RTE_SDIO_CMD_PORT GPIOD
-#define RTE_SDIO_CMD_PIN 2
-#else
-#error "Invalid SDIO_CDM Pin Configuration!"
-#endif
-// SDIO_D0 Pin <0=>PC8
-#define RTE_SDIO_D0_PORT_ID 0
-#if (RTE_SDIO_D0_PORT_ID == 0)
-#define RTE_SDIO_D0_PORT GPIOC
-#define RTE_SDIO_D0_PIN 8
-#else
-#error "Invalid SDIO_D0 Pin Configuration!"
-#endif
-// SDIO_D1 Pin <0=>PC9
-#define RTE_SDIO_D1_PORT_ID 0
-#if (RTE_SDIO_D1_PORT_ID == 0)
-#define RTE_SDIO_D1_PORT GPIOC
-#define RTE_SDIO_D1_PIN 9
-#else
-#error "Invalid SDIO_D1 Pin Configuration!"
-#endif
-// SDIO_D2 Pin <0=>PC10
-#define RTE_SDIO_D2_PORT_ID 0
-#if (RTE_SDIO_D2_PORT_ID == 0)
-#define RTE_SDIO_D2_PORT GPIOC
-#define RTE_SDIO_D2_PIN 10
-#else
-#error "Invalid SDIO_D2 Pin Configuration!"
-#endif
-// SDIO_D3 Pin <0=>PC11
-#define RTE_SDIO_D3_PORT_ID 0
-#if (RTE_SDIO_D3_PORT_ID == 0)
-#define RTE_SDIO_D3_PORT GPIOC
-#define RTE_SDIO_D3_PIN 11
-#else
-#error "Invalid SDIO_D3 Pin Configuration!"
-#endif
-// SDIO_D4 Pin <0=>PB8
-#define RTE_SDIO_D4_PORT_ID 0
-#if (RTE_SDIO_D4_PORT_ID == 0)
-#define RTE_SDIO_D4_PORT GPIOB
-#define RTE_SDIO_D4_PIN 8
-#else
-#error "Invalid SDIO_D4 Pin Configuration!"
-#endif
-// SDIO_D5 Pin <0=>PB9
-#define RTE_SDIO_D5_PORT_ID 0
-#if (RTE_SDIO_D5_PORT_ID == 0)
-#define RTE_SDIO_D5_PORT GPIOB
-#define RTE_SDIO_D5_PIN 9
-#else
-#error "Invalid SDIO_D5 Pin Configuration!"
-#endif
-// SDIO_D6 Pin <0=>PC6
-#define RTE_SDIO_D6_PORT_ID 0
-#if (RTE_SDIO_D6_PORT_ID == 0)
-#define RTE_SDIO_D6_PORT GPIOC
-#define RTE_SDIO_D6_PIN 6
-#else
-#error "Invalid SDIO_D6 Pin Configuration!"
-#endif
-// SDIO_D7 Pin <0=>PC7
-#define RTE_SDIO_D7_PORT_ID 0
-#if (RTE_SDIO_D7_PORT_ID == 0)
-#define RTE_SDIO_D7_PORT GPIOC
-#define RTE_SDIO_D7_PIN 7
-#else
-#error "Invalid SDIO_D7 Pin Configuration!"
-#endif
-//
-
-// DMA
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <6=>6
-// Selects DMA Stream (only Stream 3 or 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SDIO_DMA 1
-#define RTE_SDIO_DMA_NUMBER 2
-#define RTE_SDIO_DMA_STREAM 3
-#define RTE_SDIO_DMA_CHANNEL 4
-#define RTE_SDIO_DMA_PRIORITY 0
-
-//
-
-
-// ETH (Ethernet Interface) [Driver_ETH_MAC0]
-// Configuration settings for Driver_ETH_MAC0 in component ::Drivers:Ethernet MAC
-#define RTE_ETH 0
-
-// MII (Media Independent Interface)
-#define RTE_ETH_MII 0
-
-// ETH_MII_TX_CLK Pin <0=>PC3
-#define RTE_ETH_MII_TX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_TX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_TX_CLK_PORT GPIOC
-#define RTE_ETH_MII_TX_CLK_PIN 3
-#else
-#error "Invalid ETH_MII_TX_CLK Pin Configuration!"
-#endif
-// ETH_MII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_MII_TXD0_PORT_ID 0
-#if (RTE_ETH_MII_TXD0_PORT_ID == 0)
-#define RTE_ETH_MII_TXD0_PORT GPIOB
-#define RTE_ETH_MII_TXD0_PIN 12
-#elif (RTE_ETH_MII_TXD0_PORT_ID == 1)
-#define RTE_ETH_MII_TXD0_PORT GPIOG
-#define RTE_ETH_MII_TXD0_PIN 13
-#else
-#error "Invalid ETH_MII_TXD0 Pin Configuration!"
-#endif
-// ETH_MII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_MII_TXD1_PORT_ID 0
-#if (RTE_ETH_MII_TXD1_PORT_ID == 0)
-#define RTE_ETH_MII_TXD1_PORT GPIOB
-#define RTE_ETH_MII_TXD1_PIN 13
-#elif (RTE_ETH_MII_TXD1_PORT_ID == 1)
-#define RTE_ETH_MII_TXD1_PORT GPIOG
-#define RTE_ETH_MII_TXD1_PIN 14
-#else
-#error "Invalid ETH_MII_TXD1 Pin Configuration!"
-#endif
-// ETH_MII_TXD2 Pin <0=>PC2
-#define RTE_ETH_MII_TXD2_PORT_ID 0
-#if (RTE_ETH_MII_TXD2_PORT_ID == 0)
-#define RTE_ETH_MII_TXD2_PORT GPIOC
-#define RTE_ETH_MII_TXD2_PIN 2
-#else
-#error "Invalid ETH_MII_TXD2 Pin Configuration!"
-#endif
-// ETH_MII_TXD3 Pin <0=>PB8 <1=>PE2
-#define RTE_ETH_MII_TXD3_PORT_ID 0
-#if (RTE_ETH_MII_TXD3_PORT_ID == 0)
-#define RTE_ETH_MII_TXD3_PORT GPIOB
-#define RTE_ETH_MII_TXD3_PIN 8
-#elif (RTE_ETH_MII_TXD3_PORT_ID == 1)
-#define RTE_ETH_MII_TXD3_PORT GPIOE
-#define RTE_ETH_MII_TXD3_PIN 2
-#else
-#error "Invalid ETH_MII_TXD3 Pin Configuration!"
-#endif
-// ETH_MII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_MII_TX_EN_PORT_ID 0
-#if (RTE_ETH_MII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_MII_TX_EN_PORT GPIOB
-#define RTE_ETH_MII_TX_EN_PIN 11
-#elif (RTE_ETH_MII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_MII_TX_EN_PORT GPIOG
-#define RTE_ETH_MII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_MII_TX_EN Pin Configuration!"
-#endif
-// ETH_MII_RX_CLK Pin <0=>PA1
-#define RTE_ETH_MII_RX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_RX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_RX_CLK_PORT GPIOA
-#define RTE_ETH_MII_RX_CLK_PIN 1
-#else
-#error "Invalid ETH_MII_RX_CLK Pin Configuration!"
-#endif
-// ETH_MII_RXD0 Pin <0=>PC4
-#define RTE_ETH_MII_RXD0_PORT_ID 0
-#if (RTE_ETH_MII_RXD0_PORT_ID == 0)
-#define RTE_ETH_MII_RXD0_PORT GPIOC
-#define RTE_ETH_MII_RXD0_PIN 4
-#else
-#error "Invalid ETH_MII_RXD0 Pin Configuration!"
-#endif
-// ETH_MII_RXD1 Pin <0=>PC5
-#define RTE_ETH_MII_RXD1_PORT_ID 0
-#if (RTE_ETH_MII_RXD1_PORT_ID == 0)
-#define RTE_ETH_MII_RXD1_PORT GPIOC
-#define RTE_ETH_MII_RXD1_PIN 5
-#else
-#error "Invalid ETH_MII_RXD1 Pin Configuration!"
-#endif
-// ETH_MII_RXD2 Pin <0=>PB0 <1=>PH6
-#define RTE_ETH_MII_RXD2_PORT_ID 0
-#if (RTE_ETH_MII_RXD2_PORT_ID == 0)
-#define RTE_ETH_MII_RXD2_PORT GPIOB
-#define RTE_ETH_MII_RXD2_PIN 0
-#elif (RTE_ETH_MII_RXD2_PORT_ID == 1)
-#define RTE_ETH_MII_RXD2_PORT GPIOH
-#define RTE_ETH_MII_RXD2_PIN 6
-#else
-#error "Invalid ETH_MII_RXD2 Pin Configuration!"
-#endif
-// ETH_MII_RXD3 Pin <0=>PB1 <1=>PH7
-#define RTE_ETH_MII_RXD3_PORT_ID 0
-#if (RTE_ETH_MII_RXD3_PORT_ID == 0)
-#define RTE_ETH_MII_RXD3_PORT GPIOB
-#define RTE_ETH_MII_RXD3_PIN 1
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RXD3_PORT GPIOH
-#define RTE_ETH_MII_RXD3_PIN 7
-#else
-#error "Invalid ETH_MII_RXD3 Pin Configuration!"
-#endif
-// ETH_MII_RX_DV Pin <0=>PA7
-#define RTE_ETH_MII_RX_DV_PORT_ID 0
-#if (RTE_ETH_MII_RX_DV_PORT_ID == 0)
-#define RTE_ETH_MII_RX_DV_PORT GPIOA
-#define RTE_ETH_MII_RX_DV_PIN 7
-#else
-#error "Invalid ETH_MII_RX_DV Pin Configuration!"
-#endif
-// ETH_MII_RX_ER Pin <0=>PB10 <1=>PI10
-#define RTE_ETH_MII_RX_ER_PORT_ID 0
-#if (RTE_ETH_MII_RX_ER_PORT_ID == 0)
-#define RTE_ETH_MII_RX_ER_PORT GPIOB
-#define RTE_ETH_MII_RX_ER_PIN 10
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RX_ER_PORT GPIOI
-#define RTE_ETH_MII_RX_ER_PIN 10
-#else
-#error "Invalid ETH_MII_RX_ER Pin Configuration!"
-#endif
-// ETH_MII_CRS Pin <0=>PA0 <1=>PH2
-#define RTE_ETH_MII_CRS_PORT_ID 0
-#if (RTE_ETH_MII_CRS_PORT_ID == 0)
-#define RTE_ETH_MII_CRS_PORT GPIOA
-#define RTE_ETH_MII_CRS_PIN 0
-#elif (RTE_ETH_MII_CRS_PORT_ID == 1)
-#define RTE_ETH_MII_CRS_PORT GPIOH
-#define RTE_ETH_MII_CRS_PIN 2
-#else
-#error "Invalid ETH_MII_CRS Pin Configuration!"
-#endif
-// ETH_MII_COL Pin <0=>PA3 <1=>PH3
-#define RTE_ETH_MII_COL_PORT_ID 0
-#if (RTE_ETH_MII_COL_PORT_ID == 0)
-#define RTE_ETH_MII_COL_PORT GPIOA
-#define RTE_ETH_MII_COL_PIN 3
-#elif (RTE_ETH_MII_COL_PORT_ID == 1)
-#define RTE_ETH_MII_COL_PORT GPIOH
-#define RTE_ETH_MII_COL_PIN 3
-#else
-#error "Invalid ETH_MII_COL Pin Configuration!"
-#endif
-
-//
-
-// RMII (Reduced Media Independent Interface)
-#define RTE_ETH_RMII 1
-
-// ETH_RMII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_RMII_TXD0_PORT_ID 1
-#if (RTE_ETH_RMII_TXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD0_PORT GPIOB
-#define RTE_ETH_RMII_TXD0_PIN 12
-#elif (RTE_ETH_RMII_TXD0_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD0_PORT GPIOG
-#define RTE_ETH_RMII_TXD0_PIN 13
-#else
-#error "Invalid ETH_RMII_TXD0 Pin Configuration!"
-#endif
-// ETH_RMII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_RMII_TXD1_PORT_ID 1
-#if (RTE_ETH_RMII_TXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD1_PORT GPIOB
-#define RTE_ETH_RMII_TXD1_PIN 13
-#elif (RTE_ETH_RMII_TXD1_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD1_PORT GPIOG
-#define RTE_ETH_RMII_TXD1_PIN 14
-#else
-#error "Invalid ETH_RMII_TXD1 Pin Configuration!"
-#endif
-// ETH_RMII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_RMII_TX_EN_PORT_ID 1
-#if (RTE_ETH_RMII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOB
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#elif (RTE_ETH_RMII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOG
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_RMII_TX_EN Pin Configuration!"
-#endif
-// ETH_RMII_RXD0 Pin <0=>PC4
-#define RTE_ETH_RMII_RXD0_PORT_ID 0
-#if (RTE_ETH_RMII_RXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD0_PORT GPIOC
-#define RTE_ETH_RMII_RXD0_PIN 4
-#else
-#error "Invalid ETH_RMII_RXD0 Pin Configuration!"
-#endif
-// ETH_RMII_RXD1 Pin <0=>PC5
-#define RTE_ETH_RMII_RXD1_PORT_ID 0
-#if (RTE_ETH_RMII_RXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD1_PORT GPIOC
-#define RTE_ETH_RMII_RXD1_PIN 5
-#else
-#error "Invalid ETH_RMII_RXD1 Pin Configuration!"
-#endif
-// ETH_RMII_REF_CLK Pin <0=>PA1
-#define RTE_ETH_RMII_REF_CLK_PORT_ID 0
-#if (RTE_ETH_RMII_REF_CLK_PORT_ID == 0)
-#define RTE_ETH_RMII_REF_CLK_PORT GPIOA
-#define RTE_ETH_RMII_REF_CLK_PIN 1
-#else
-#error "Invalid ETH_RMII_REF_CLK Pin Configuration!"
-#endif
-// ETH_RMII_CRS_DV Pin <0=>PA7
-#define RTE_ETH_RMII_CRS_DV_PORT_ID 0
-#if (RTE_ETH_RMII_CRS_DV_PORT_ID == 0)
-#define RTE_ETH_RMII_CRS_DV_PORT GPIOA
-#define RTE_ETH_RMII_CRS_DV_PIN 7
-#else
-#error "Invalid ETH_RMII_CRS_DV Pin Configuration!"
-#endif
-
-//
-
-// Management Data Interface
-// ETH_MDC Pin <0=>PC1
-#define RTE_ETH_MDI_MDC_PORT_ID 0
-#if (RTE_ETH_MDI_MDC_PORT_ID == 0)
-#define RTE_ETH_MDI_MDC_PORT GPIOC
-#define RTE_ETH_MDI_MDC_PIN 1
-#else
-#error "Invalid ETH_MDC Pin Configuration!"
-#endif
-// ETH_MDIO Pin <0=>PA2
-#define RTE_ETH_MDI_MDIO_PORT_ID 0
-#if (RTE_ETH_MDI_MDIO_PORT_ID == 0)
-#define RTE_ETH_MDI_MDIO_PORT GPIOA
-#define RTE_ETH_MDI_MDIO_PIN 2
-#else
-#error "Invalid ETH_MDIO Pin Configuration!"
-#endif
-//
-
-// Reference 25MHz/50MHz Clock generation
-#define RTE_ETH_REF_CLOCK 0
-
-// MCO Pin <0=>PA2 <1=>PC9
-#define RTE_ETH_REF_CLOCK_PORT_ID 0
-#if (RTE_ETH_REF_CLOCK_PORT_ID == 0)
-#define RTE_ETH_REF_CLOCK_PORT GPIOA
-#define RTE_ETH_REF_CLOCK_PIN 8
-#elif (RTE_ETH_REF_CLOCK_PORT_ID == 1)
-#define RTE_ETH_REF_CLOCK_PORT GPIOC
-#define RTE_ETH_REF_CLOCK_PIN 9
-#else
-#error "Invalid MCO Pin Configuration!"
-#endif
-
-//
-
-//
-
-
-// USB OTG Full-speed
-#define RTE_USB_OTG_FS 0
-
-// Device [Driver_USBD0]
-// Configuration settings for Driver_USBD0 in component ::Drivers:USB Device
-#define RTE_USB_OTG_FS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_FS_DEV_EP 0x0000000F
-#define RTE_USB_OTG_FS_DEV_EP_BULK 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_INT 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_ISO 0x000E000E
-
-//
-
-// Host [Driver_USBH0]
-// Configuration settings for Driver_USBH0 in component ::Drivers:USB Host
-
-#define RTE_USB_OTG_FS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_VBUS_PIN 1
-#define RTE_OTG_FS_VBUS_ACTIVE 0
-#define RTE_OTG_FS_VBUS_PORT GPIO_PORT(7)
-#define RTE_OTG_FS_VBUS_BIT 5
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_OC_PIN 1
-#define RTE_OTG_FS_OC_ACTIVE 0
-#define RTE_OTG_FS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_FS_OC_BIT 11
-//
-
-//
-
-
-// USB OTG High-speed
-#define RTE_USB_OTG_HS 0
-
-// PHY (Physical Layer)
-
-// PHY Interface
-// <0=>On-chip full-speed PHY
-// <1=>External ULPI high-speed PHY
-#define RTE_USB_OTG_HS_PHY 1
-
-// External ULPI Pins (UTMI+ Low Pin Interface)
-
-// OTG_HS_ULPI_CK Pin <0=>PA5
-#define RTE_USB_OTG_HS_ULPI_CK_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_CK_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_CK_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_CK_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_CK Pin Configuration!"
-#endif
-// OTG_HS_ULPI_DIR Pin <0=>PI11 <1=>PC2
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOI
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 11
-#elif (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 2
-#else
-#error "Invalid OTG_HS_ULPI_DIR Pin Configuration!"
-#endif
-// OTG_HS_ULPI_STP Pin <0=>PC0
-#define RTE_USB_OTG_HS_ULPI_STP_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_STP_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_STP_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_STP_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_STP Pin Configuration!"
-#endif
-// OTG_HS_ULPI_NXT Pin <0=>PC2 <1=>PH4
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT_ID 1
-#if (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 2
-#elif (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOH
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 4
-#else
-#error "Invalid OTG_HS_ULPI_NXT Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D0 Pin <0=>PA3
-#define RTE_USB_OTG_HS_ULPI_D0_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D0_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D0_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_D0_PIN 3
-#else
-#error "Invalid OTG_HS_ULPI_D0 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D1 Pin <0=>PB0
-#define RTE_USB_OTG_HS_ULPI_D1_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D1_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D1_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D1_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_D1 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D2 Pin <0=>PB1
-#define RTE_USB_OTG_HS_ULPI_D2_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D2_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D2_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D2_PIN 1
-#else
-#error "Invalid OTG_HS_ULPI_D2 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D3 Pin <0=>PB10
-#define RTE_USB_OTG_HS_ULPI_D3_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D3_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D3_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D3_PIN 10
-#else
-#error "Invalid OTG_HS_ULPI_D3 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D4 Pin <0=>PB11
-#define RTE_USB_OTG_HS_ULPI_D4_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D4_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D4_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D4_PIN 11
-#else
-#error "Invalid OTG_HS_ULPI_D4 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D5 Pin <0=>PB12
-#define RTE_USB_OTG_HS_ULPI_D5_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D5_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D5_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D5_PIN 12
-#else
-#error "Invalid OTG_HS_ULPI_D5 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D6 Pin <0=>PB13
-#define RTE_USB_OTG_HS_ULPI_D6_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D6_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D6_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D6_PIN 13
-#else
-#error "Invalid OTG_HS_ULPI_D6 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D7 Pin <0=>PB5
-#define RTE_USB_OTG_HS_ULPI_D7_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D7_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D7_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D7_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_D7 Pin Configuration!"
-#endif
-
-//
-
-//
-
-// Device [Driver_USBD1]
-// Configuration settings for Driver_USBD1 in component ::Drivers:USB Device
-#define RTE_USB_OTG_HS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 4
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 5
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_HS_DEV_EP 0x0000003F
-#define RTE_USB_OTG_HS_DEV_EP_BULK 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_INT 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_ISO 0x003E003E
-
-//
-
-// Host [Driver_USBH1]
-// Configuration settings for Driver_USBH1 in component ::Drivers:USB Host
-#define RTE_USB_OTG_HS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_VBUS_PIN 1
-#define RTE_OTG_HS_VBUS_ACTIVE 0
-#define RTE_OTG_HS_VBUS_PORT GPIO_PORT(2)
-#define RTE_OTG_HS_VBUS_BIT 2
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_OC_PIN 1
-#define RTE_OTG_HS_OC_ACTIVE 0
-#define RTE_OTG_HS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_HS_OC_BIT 12
-//
-
-//
-
-
-// EXTI (External Interrupt/Event Controller)
-#define RTE_EXTI 0
-
-// EXTI0 Line
-#define RTE_EXTI0 0
-// Pin <0=>PA0 <1=>PB0 <2=>PC0 <3=>PD0 <4=>PE0 <5=>PF0 <6=>PG0 <7=>PH0 <8=>PI0
-#define RTE_EXTI0_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI0_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI0_TRIGGER 0
-//
-
-// EXTI1 Line
-#define RTE_EXTI1 0
-// Pin <0=>PA1 <1=>PB1 <2=>PC1 <3=>PD1 <4=>PE1 <5=>PF1 <6=>PG1 <7=>PH1 <8=>PI1
-#define RTE_EXTI1_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI1_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI1_TRIGGER 0
-//
-
-// EXTI2 Line
-#define RTE_EXTI2 0
-// Pin <0=>PA2 <1=>PB2 <2=>PC2 <3=>PD2 <4=>PE2 <5=>PF2 <6=>PG2 <7=>PH2 <8=>PI2
-#define RTE_EXTI2_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI2_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI2_TRIGGER 0
-//
-
-// EXTI3 Line
-#define RTE_EXTI3 0
-// Pin <0=>PA3 <1=>PB3 <2=>PC3 <3=>PD3 <4=>PE3 <5=>PF3 <6=>PG3 <7=>PH3 <8=>PI3
-#define RTE_EXTI3_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI3_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI3_TRIGGER 0
-//
-
-// EXTI4 Line
-#define RTE_EXTI4 0
-// Pin <0=>PA4 <1=>PB4 <2=>PC4 <3=>PD4 <4=>PE4 <5=>PF4 <6=>PG4 <7=>PH4 <8=>PI4
-#define RTE_EXTI4_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI4_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI4_TRIGGER 0
-//
-
-// EXTI5 Line
-#define RTE_EXTI5 0
-// Pin <0=>PA5 <1=>PB5 <2=>PC5 <3=>PD5 <4=>PE5 <5=>PF5 <6=>PG5 <7=>PH5 <8=>PI5
-#define RTE_EXTI5_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI5_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI5_TRIGGER 0
-//
-
-// EXTI6 Line
-#define RTE_EXTI6 0
-// Pin <0=>PA6 <1=>PB6 <2=>PC6 <3=>PD6 <4=>PE6 <5=>PF6 <6=>PG6 <7=>PH6 <8=>PI6
-#define RTE_EXTI6_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI6_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI6_TRIGGER 0
-//
-
-// EXTI7 Line
-#define RTE_EXTI7 0
-// Pin <0=>PA7 <1=>PB7 <2=>PC7 <3=>PD7 <4=>PE7 <5=>PF7 <6=>PG7 <7=>PH7 <8=>PI7
-#define RTE_EXTI7_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI7_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI7_TRIGGER 0
-//
-
-// EXTI8 Line
-#define RTE_EXTI8 0
-// Pin <0=>PA8 <1=>PB8 <2=>PC8 <3=>PD8 <4=>PE8 <5=>PF8 <6=>PG8 <7=>PH8 <8=>PI8
-#define RTE_EXTI8_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI8_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI8_TRIGGER 0
-//
-
-// EXTI9 Line
-#define RTE_EXTI9 0
-// Pin <0=>PA9 <1=>PB9 <2=>PC9 <3=>PD9 <4=>PE9 <5=>PF9 <6=>PG9 <7=>PH9 <8=>PI9
-#define RTE_EXTI9_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI9_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI9_TRIGGER 0
-//
-
-// EXTI10 Line
-#define RTE_EXTI10 0
-// Pin <0=>PA10 <1=>PB10 <2=>PC10 <3=>PD10 <4=>PE10 <5=>PF10 <6=>PG10 <7=>PH10 <8=>PI10
-#define RTE_EXTI10_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI10_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI10_TRIGGER 0
-//
-
-// EXTI11 Line
-#define RTE_EXTI11 0
-// Pin <0=>PA11 <1=>PB11 <2=>PC11 <3=>PD11 <4=>PE11 <5=>PF11 <6=>PG11 <7=>PH11 <8=>PI11
-#define RTE_EXTI11_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI11_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI11_TRIGGER 0
-//
-
-// EXTI12 Line
-#define RTE_EXTI12 0
-// Pin <0=>PA12 <1=>PB12 <2=>PC12 <3=>PD12 <4=>PE12 <5=>PF12 <6=>PG12 <7=>PH12
-#define RTE_EXTI12_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI12_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI12_TRIGGER 0
-//
-
-// EXTI13 Line
-#define RTE_EXTI13 0
-// Pin <0=>PA13 <1=>PB13 <2=>PC13 <3=>PD13 <4=>PE13 <5=>PF13 <6=>PG13 <7=>PH13
-#define RTE_EXTI13_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI13_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI13_TRIGGER 0
-//
-
-// EXTI14 Line
-#define RTE_EXTI14 0
-// Pin <0=>PA14 <1=>PB14 <2=>PC14 <3=>PD14 <4=>PE14 <5=>PF14 <6=>PG14 <7=>PH14
-#define RTE_EXTI14_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI14_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI14_TRIGGER 0
-//
-
-// EXTI15 Line
-#define RTE_EXTI15 0
-// Pin <0=>PA15 <1=>PB15 <2=>PC15 <3=>PD15 <4=>PE15 <5=>PF15 <6=>PG15 <7=>PH15
-#define RTE_EXTI15_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI15_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI15_TRIGGER 0
-//
-
-// EXTI16 Line: PVD Output
-#define RTE_EXTI16 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI16_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI16_TRIGGER 0
-//
-
-// EXTI17 Line: RTC Alarm
-#define RTE_EXTI17 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI17_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI17_TRIGGER 0
-//
-
-// EXTI18 Line: USB OTG FS Wakeup
-#define RTE_EXTI18 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI18_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI18_TRIGGER 0
-//
-
-// EXTI19 Line: Ethernet Wakeup
-#define RTE_EXTI19 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI19_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI19_TRIGGER 0
-//
-
-// EXTI20 Line: USB OTG HS Wakeup
-#define RTE_EXTI20 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI20_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI20_TRIGGER 0
-//
-
-// EXTI21 Line: RTC Tamper and TimeStamp
-#define RTE_EXTI21 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI21_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI21_TRIGGER 0
-//
-
-// EXTI22 Line: RTC Wakeup
-#define RTE_EXTI22 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI22_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI22_TRIGGER 0
-//
-
-//
-
-
-// FSMC (Flexible Static Memory Controller)
-#define RTE_FSMC 0
-
-// Pin Configuration
-// Configure Pins
-#define RTE_FSMC_PINS 0
-
-// Address Bus Pins
-// <0=>A[17:16]
-// <1=>A[10:0] <2=>A[15:0] <3=>A[16:0] <4=>A[17:0]
-// <5=>A[18:0] <6=>A[19:0] <7=>A[20:0] <8=>A[21:0]
-// <9=>A[22:0] <10=>A[23:0] <11=>A[24:0] <12=>A[25:0]
-#define RTE_FSMC_ABUS_PINS 10
-// Data Bus Pins <0=>D[7:0] <1=>D[15:0]
-#define RTE_FSMC_DBUS_PINS 0
-// FSMC_NOE Pin
-#define RTE_FSMC_NOE_PIN 0
-// FSMC_NWE Pin
-#define RTE_FSMC_NWE_PIN 0
-// FSMC_NBL0 Pin
-#define RTE_FSMC_NBL0_PIN 0
-// FSMC_NBL1 Pin
-#define RTE_FSMC_NBL1_PIN 0
-// FSMC_NL Pin
-#define RTE_FSMC_NL_PIN 0
-// FSMC_NWAIT Pin
-#define RTE_FSMC_NWAIT_PIN 0
-// FSMC_CLK Pin
-#define RTE_FSMC_CLK_PIN 0
-// FSMC_NE1/NCE2 Pin
-#define RTE_FSMC_NE1_PIN 0
-// FSMC_NE2/NCE3 Pin
-#define RTE_FSMC_NE2_PIN 0
-// FSMC_NE3/NCE4_1 Pin
-#define RTE_FSMC_NE3_PIN 0
-// FSMC_NE4 Pin
-#define RTE_FSMC_NE4_PIN 0
-// FSMC_NCE4_2 Pin
-#define RTE_FSMC_NCE42_PIN 0
-// FSMC_INT2 Pin
-#define RTE_FSMC_INT2_PIN 0
-// FSMC_INT3 Pin
-#define RTE_FSMC_INT3_PIN 0
-// FSMC_INTR Pin
-#define RTE_FSMC_INTR_PIN 0
-// FSMC_NIORD Pin
-#define RTE_FSMC_NIORD_PIN 0
-// FSMC_NIOWR Pin
-#define RTE_FSMC_NIOWR_PIN 0
-// FSMC_NREG Pin
-#define RTE_FSMC_NREG_PIN 0
-// FSMC_CD Pin
-#define RTE_FSMC_CD_PIN 0
-
-//
-
-// NOR Flash / PSRAM Controller
-
-// FSMC_NE1 Chip Select
-// Configure Device on Chip Select FSMC_NE1
-#define RTE_FSMC_NE1 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR1_CBURSTRW 0
-#define RTE_FSMC_BCR1_ASYNCWAIT 0
-#define RTE_FSMC_BCR1_EXTMOD 0
-#define RTE_FSMC_BCR1_WAITEN 1
-#define RTE_FSMC_BCR1_WREN 1
-#define RTE_FSMC_BCR1_WAITCFG 0
-#define RTE_FSMC_BCR1_WRAPMOD 0
-#define RTE_FSMC_BCR1_WAITPOL 0
-#define RTE_FSMC_BCR1_BURSTEN 0
-#define RTE_FSMC_BCR1_FACCEN 1
-#define RTE_FSMC_BCR1_MWID 1
-#define RTE_FSMC_BCR1_MTYP 2
-#define RTE_FSMC_BCR1_MUXEN 1
-#define RTE_FSMC_BCR1_MBKEN 1
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR1_ACCMOD 0
-#define RTE_FSMC_BTR1_DATLAT 15
-#define RTE_FSMC_BTR1_CLKDIV 15
-#define RTE_FSMC_BTR1_BUSTURN 15
-#define RTE_FSMC_BTR1_DATAST 255
-#define RTE_FSMC_BTR1_ADDHLD 15
-#define RTE_FSMC_BTR1_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR1_ACCMOD 0
-#define RTE_FSMC_BWTR1_DATLAT 15
-#define RTE_FSMC_BWTR1_CLKDIV 15
-#define RTE_FSMC_BWTR1_BUSTURN 15
-#define RTE_FSMC_BWTR1_DATAST 255
-#define RTE_FSMC_BWTR1_ADDHLD 15
-#define RTE_FSMC_BWTR1_ADDSET 15
-//
-//
-
-// FSMC_NE2 Chip Select
-// Configure Device on Chip Select FSMC_NE2
-#define RTE_FSMC_NE2 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR2_CBURSTRW 0
-#define RTE_FSMC_BCR2_ASYNCWAIT 0
-#define RTE_FSMC_BCR2_EXTMOD 0
-#define RTE_FSMC_BCR2_WAITEN 1
-#define RTE_FSMC_BCR2_WREN 1
-#define RTE_FSMC_BCR2_WAITCFG 0
-#define RTE_FSMC_BCR2_WRAPMOD 0
-#define RTE_FSMC_BCR2_WAITPOL 0
-#define RTE_FSMC_BCR2_BURSTEN 0
-#define RTE_FSMC_BCR2_FACCEN 1
-#define RTE_FSMC_BCR2_MWID 1
-#define RTE_FSMC_BCR2_MTYP 0
-#define RTE_FSMC_BCR2_MUXEN 1
-#define RTE_FSMC_BCR2_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR2_ACCMOD 0
-#define RTE_FSMC_BTR2_DATLAT 15
-#define RTE_FSMC_BTR2_CLKDIV 15
-#define RTE_FSMC_BTR2_BUSTURN 15
-#define RTE_FSMC_BTR2_DATAST 255
-#define RTE_FSMC_BTR2_ADDHLD 15
-#define RTE_FSMC_BTR2_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR2_ACCMOD 0
-#define RTE_FSMC_BWTR2_DATLAT 15
-#define RTE_FSMC_BWTR2_CLKDIV 15
-#define RTE_FSMC_BWTR2_BUSTURN 15
-#define RTE_FSMC_BWTR2_DATAST 255
-#define RTE_FSMC_BWTR2_ADDHLD 15
-#define RTE_FSMC_BWTR2_ADDSET 15
-//
-//
-
-// FSMC_NE3 Chip Select
-// Configure Device on Chip Select FSMC_NE3
-#define RTE_FSMC_NE3 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR3_CBURSTRW 0
-#define RTE_FSMC_BCR3_ASYNCWAIT 0
-#define RTE_FSMC_BCR3_EXTMOD 0
-#define RTE_FSMC_BCR3_WAITEN 1
-#define RTE_FSMC_BCR3_WREN 1
-#define RTE_FSMC_BCR3_WAITCFG 0
-#define RTE_FSMC_BCR3_WRAPMOD 0
-#define RTE_FSMC_BCR3_WAITPOL 0
-#define RTE_FSMC_BCR3_BURSTEN 0
-#define RTE_FSMC_BCR3_FACCEN 1
-#define RTE_FSMC_BCR3_MWID 1
-#define RTE_FSMC_BCR3_MTYP 0
-#define RTE_FSMC_BCR3_MUXEN 1
-#define RTE_FSMC_BCR3_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR3_ACCMOD 0
-#define RTE_FSMC_BTR3_DATLAT 15
-#define RTE_FSMC_BTR3_CLKDIV 15
-#define RTE_FSMC_BTR3_BUSTURN 15
-#define RTE_FSMC_BTR3_DATAST 255
-#define RTE_FSMC_BTR3_ADDHLD 15
-#define RTE_FSMC_BTR3_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR3_ACCMOD 0
-#define RTE_FSMC_BWTR3_DATLAT 15
-#define RTE_FSMC_BWTR3_CLKDIV 15
-#define RTE_FSMC_BWTR3_BUSTURN 15
-#define RTE_FSMC_BWTR3_DATAST 255
-#define RTE_FSMC_BWTR3_ADDHLD 15
-#define RTE_FSMC_BWTR3_ADDSET 15
-//
-//
-
-// FSMC_NE4 Chip Select
-// Configure Device on Chip Select FSMC_NE4
-#define RTE_FSMC_NE4 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR4_CBURSTRW 0
-#define RTE_FSMC_BCR4_ASYNCWAIT 0
-#define RTE_FSMC_BCR4_EXTMOD 0
-#define RTE_FSMC_BCR4_WAITEN 1
-#define RTE_FSMC_BCR4_WREN 1
-#define RTE_FSMC_BCR4_WAITCFG 0
-#define RTE_FSMC_BCR4_WRAPMOD 0
-#define RTE_FSMC_BCR4_WAITPOL 0
-#define RTE_FSMC_BCR4_BURSTEN 0
-#define RTE_FSMC_BCR4_FACCEN 1
-#define RTE_FSMC_BCR4_MWID 1
-#define RTE_FSMC_BCR4_MTYP 0
-#define RTE_FSMC_BCR4_MUXEN 1
-#define RTE_FSMC_BCR4_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR4_ACCMOD 0
-#define RTE_FSMC_BTR4_DATLAT 15
-#define RTE_FSMC_BTR4_CLKDIV 15
-#define RTE_FSMC_BTR4_BUSTURN 15
-#define RTE_FSMC_BTR4_DATAST 255
-#define RTE_FSMC_BTR4_ADDHLD 15
-#define RTE_FSMC_BTR4_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR4_ACCMOD 0
-#define RTE_FSMC_BWTR4_DATLAT 15
-#define RTE_FSMC_BWTR4_CLKDIV 15
-#define RTE_FSMC_BWTR4_BUSTURN 15
-#define RTE_FSMC_BWTR4_DATAST 255
-#define RTE_FSMC_BWTR4_ADDHLD 15
-#define RTE_FSMC_BWTR4_ADDSET 15
-//
-//
-
-//
-
-// NAND Flash Controller
-
-// FSMC_NCE2 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE2
-#define RTE_FSMC_NCE2 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR2_ECCPS 0
-#define RTE_FSMC_PCR2_TAR 0
-#define RTE_FSMC_PCR2_TCLR 0
-#define RTE_FSMC_PCR2_ECCEN 0
-#define RTE_FSMC_PCR2_PWID 0
-#define RTE_FSMC_PCR2_PTYP 1
-#define RTE_FSMC_PCR2_PBKEN 0
-#define RTE_FSMC_PCR2_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR2_IFEN 0
-#define RTE_FSMC_SR2_ILEN 0
-#define RTE_FSMC_SR2_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM2_MEMHIZ 255
-#define RTE_FSMC_PMEM2_MEMHOLD 255
-#define RTE_FSMC_PMEM2_MEMWAIT 255
-#define RTE_FSMC_PMEM2_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT2_ATTHIZ 255
-#define RTE_FSMC_PATT2_ATTHOLD 255
-#define RTE_FSMC_PATT2_ATTWAIT 255
-#define RTE_FSMC_PATT2_ATTSET 255
-
-//
-
-//
-
-// FSMC_NCE3 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE3
-#define RTE_FSMC_NCE3 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR3_ECCPS 0
-#define RTE_FSMC_PCR3_TAR 0
-#define RTE_FSMC_PCR3_TCLR 0
-#define RTE_FSMC_PCR3_ECCEN 0
-#define RTE_FSMC_PCR3_PWID 0
-#define RTE_FSMC_PCR3_PTYP 1
-#define RTE_FSMC_PCR3_PBKEN 0
-#define RTE_FSMC_PCR3_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR3_IFEN 0
-#define RTE_FSMC_SR3_ILEN 0
-#define RTE_FSMC_SR3_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM3_MEMHIZ 255
-#define RTE_FSMC_PMEM3_MEMHOLD 255
-#define RTE_FSMC_PMEM3_MEMWAIT 255
-#define RTE_FSMC_PMEM3_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT3_ATTHIZ 255
-#define RTE_FSMC_PATT3_ATTHOLD 255
-#define RTE_FSMC_PATT3_ATTWAIT 255
-#define RTE_FSMC_PATT3_ATTSET 255
-
-//
-
-//
-
-//
-
-// PC Card Controller
-
-// FSMC_NCE4_x Chip Select
-// Configure PC Card/CompactFlash Device on Chip Select FSMC_NCE4_1/FSMC_NCE4_2
-#define RTE_FSMC_NCE4 0
-
-// PC Card Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <0=>PC Card, CompactFlash, CF+ or PCMCIOA
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: PC Card memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR4_ECCPS 0
-#define RTE_FSMC_PCR4_TAR 0
-#define RTE_FSMC_PCR4_TCLR 0
-#define RTE_FSMC_PCR4_ECCEN 0
-#define RTE_FSMC_PCR4_PWID 0
-#define RTE_FSMC_PCR4_PTYP 0
-#define RTE_FSMC_PCR4_PBKEN 0
-#define RTE_FSMC_PCR4_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR4_IFEN 0
-#define RTE_FSMC_SR4_ILEN 0
-#define RTE_FSMC_SR4_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM4_MEMHIZ 255
-#define RTE_FSMC_PMEM4_MEMHOLD 255
-#define RTE_FSMC_PMEM4_MEMWAIT 255
-#define RTE_FSMC_PMEM4_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT4_ATTHIZ 255
-#define RTE_FSMC_PATT4_ATTHOLD 255
-#define RTE_FSMC_PATT4_ATTWAIT 255
-#define RTE_FSMC_PATT4_ATTSET 255
-
-//
-
-// I/O space timing
-// IOHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a PC Card write access. Only valid for write transaction.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (SMNWE,
-// SMNOE), for PC Card read or write access. The duration for command assertion is
-// extended if the wait signal (NWAIT) is active (low) at the end of the
-// programmed value of HCLK.
-// 0000 0000: reserved, do not use this value
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles
-// IOSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PIO4_IOHIZ 255
-#define RTE_FSMC_PIO4_IOHOLD 255
-#define RTE_FSMC_PIO4_IOWAIT 255
-#define RTE_FSMC_PIO4_IOSET 255
-
-//
-
-//
-
-//
-
-//
-
-
-#endif /* __RTE_DEVICE_H */
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/startup_stm32f2xx.s b/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/startup_stm32f2xx.s
deleted file mode 100644
index c31ce1991..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/startup_stm32f2xx.s
+++ /dev/null
@@ -1,419 +0,0 @@
-;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
-;* File Name : startup_stm32f2xx.s
-;* Author : MCD Application Team
-;* Version : V1.0.0
-;* Date : 18-April-2011
-;* Description : STM32F2xx devices vector table for MDK-ARM toolchain.
-;* This module performs:
-;* - Set the initial SP
-;* - Set the initial PC == Reset_Handler
-;* - Set the vector table entries with the exceptions ISR address
-;* - Branches to __main in the C library (which eventually
-;* calls main()).
-;* After Reset the CortexM3 processor is in Thread mode,
-;* priority is Privileged, and the Stack is set to Main.
-;* <<< Use Configuration Wizard in Context Menu >>>
-;*******************************************************************************
-; 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.
-;*******************************************************************************
-
-; Amount of memory (in bytes) allocated for Stack
-; Tailor this value to your application needs
-; Stack Configuration
-; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Stack_Size EQU 0x00001000
-
- AREA STACK, NOINIT, READWRITE, ALIGN=3
-Stack_Mem SPACE Stack_Size
-__initial_sp
-
-
-; Heap Configuration
-; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Heap_Size EQU 0x00009000
-
- AREA HEAP, NOINIT, READWRITE, ALIGN=3
-__heap_base
-Heap_Mem SPACE Heap_Size
-__heap_limit
-
- PRESERVE8
- THUMB
-
-
-; Vector Table Mapped to Address 0 at Reset
- AREA RESET, DATA, READONLY
- EXPORT __Vectors
- EXPORT __Vectors_End
- EXPORT __Vectors_Size
-
-__Vectors DCD __initial_sp ; Top of Stack
- DCD Reset_Handler ; Reset Handler
- DCD NMI_Handler ; NMI Handler
- DCD HardFault_Handler ; Hard Fault Handler
- DCD MemManage_Handler ; MPU Fault Handler
- DCD BusFault_Handler ; Bus Fault Handler
- DCD UsageFault_Handler ; Usage Fault Handler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD SVC_Handler ; SVCall Handler
- DCD DebugMon_Handler ; Debug Monitor Handler
- DCD 0 ; Reserved
- DCD PendSV_Handler ; PendSV Handler
- DCD SysTick_Handler ; SysTick Handler
-
- ; External Interrupts
- DCD WWDG_IRQHandler ; Window WatchDog
- DCD PVD_IRQHandler ; PVD through EXTI Line detection
- DCD TAMP_STAMP_IRQHandler ; Tamper and TimeStamps through the EXTI line
- DCD RTC_WKUP_IRQHandler ; RTC Wakeup through the EXTI line
- DCD FLASH_IRQHandler ; FLASH
- DCD RCC_IRQHandler ; RCC
- DCD EXTI0_IRQHandler ; EXTI Line0
- DCD EXTI1_IRQHandler ; EXTI Line1
- DCD EXTI2_IRQHandler ; EXTI Line2
- DCD EXTI3_IRQHandler ; EXTI Line3
- DCD EXTI4_IRQHandler ; EXTI Line4
- DCD DMA1_Stream0_IRQHandler ; DMA1 Stream 0
- DCD DMA1_Stream1_IRQHandler ; DMA1 Stream 1
- DCD DMA1_Stream2_IRQHandler ; DMA1 Stream 2
- DCD DMA1_Stream3_IRQHandler ; DMA1 Stream 3
- DCD DMA1_Stream4_IRQHandler ; DMA1 Stream 4
- DCD DMA1_Stream5_IRQHandler ; DMA1 Stream 5
- DCD DMA1_Stream6_IRQHandler ; DMA1 Stream 6
- DCD ADC_IRQHandler ; ADC1, ADC2 and ADC3s
- DCD CAN1_TX_IRQHandler ; CAN1 TX
- DCD CAN1_RX0_IRQHandler ; CAN1 RX0
- DCD CAN1_RX1_IRQHandler ; CAN1 RX1
- DCD CAN1_SCE_IRQHandler ; CAN1 SCE
- DCD EXTI9_5_IRQHandler ; External Line[9:5]s
- DCD TIM1_BRK_TIM9_IRQHandler ; TIM1 Break and TIM9
- DCD TIM1_UP_TIM10_IRQHandler ; TIM1 Update and TIM10
- DCD TIM1_TRG_COM_TIM11_IRQHandler ; TIM1 Trigger and Commutation and TIM11
- DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
- DCD TIM2_IRQHandler ; TIM2
- DCD TIM3_IRQHandler ; TIM3
- DCD TIM4_IRQHandler ; TIM4
- DCD I2C1_EV_IRQHandler ; I2C1 Event
- DCD I2C1_ER_IRQHandler ; I2C1 Error
- DCD I2C2_EV_IRQHandler ; I2C2 Event
- DCD I2C2_ER_IRQHandler ; I2C2 Error
- DCD SPI1_IRQHandler ; SPI1
- DCD SPI2_IRQHandler ; SPI2
- DCD USART1_IRQHandler ; USART1
- DCD USART2_IRQHandler ; USART2
- DCD USART3_IRQHandler ; USART3
- DCD EXTI15_10_IRQHandler ; External Line[15:10]s
- DCD RTC_Alarm_IRQHandler ; RTC Alarm (A and B) through EXTI Line
- DCD OTG_FS_WKUP_IRQHandler ; USB OTG FS Wakeup through EXTI line
- DCD TIM8_BRK_TIM12_IRQHandler ; TIM8 Break and TIM12
- DCD TIM8_UP_TIM13_IRQHandler ; TIM8 Update and TIM13
- DCD TIM8_TRG_COM_TIM14_IRQHandler ; TIM8 Trigger and Commutation and TIM14
- DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare
- DCD DMA1_Stream7_IRQHandler ; DMA1 Stream7
- DCD FSMC_IRQHandler ; FSMC
- DCD SDIO_IRQHandler ; SDIO
- DCD TIM5_IRQHandler ; TIM5
- DCD SPI3_IRQHandler ; SPI3
- DCD UART4_IRQHandler ; UART4
- DCD UART5_IRQHandler ; UART5
- DCD TIM6_DAC_IRQHandler ; TIM6 and DAC1&2 underrun errors
- DCD TIM7_IRQHandler ; TIM7
- DCD DMA2_Stream0_IRQHandler ; DMA2 Stream 0
- DCD DMA2_Stream1_IRQHandler ; DMA2 Stream 1
- DCD DMA2_Stream2_IRQHandler ; DMA2 Stream 2
- DCD DMA2_Stream3_IRQHandler ; DMA2 Stream 3
- DCD DMA2_Stream4_IRQHandler ; DMA2 Stream 4
- DCD ETH_IRQHandler ; Ethernet
- DCD ETH_WKUP_IRQHandler ; Ethernet Wakeup through EXTI line
- DCD CAN2_TX_IRQHandler ; CAN2 TX
- DCD CAN2_RX0_IRQHandler ; CAN2 RX0
- DCD CAN2_RX1_IRQHandler ; CAN2 RX1
- DCD CAN2_SCE_IRQHandler ; CAN2 SCE
- DCD OTG_FS_IRQHandler ; USB OTG FS
- DCD DMA2_Stream5_IRQHandler ; DMA2 Stream 5
- DCD DMA2_Stream6_IRQHandler ; DMA2 Stream 6
- DCD DMA2_Stream7_IRQHandler ; DMA2 Stream 7
- DCD USART6_IRQHandler ; USART6
- DCD I2C3_EV_IRQHandler ; I2C3 event
- DCD I2C3_ER_IRQHandler ; I2C3 error
- DCD OTG_HS_EP1_OUT_IRQHandler ; USB OTG HS End Point 1 Out
- DCD OTG_HS_EP1_IN_IRQHandler ; USB OTG HS End Point 1 In
- DCD OTG_HS_WKUP_IRQHandler ; USB OTG HS Wakeup through EXTI
- DCD OTG_HS_IRQHandler ; USB OTG HS
- DCD DCMI_IRQHandler ; DCMI
- DCD CRYP_IRQHandler ; CRYP crypto
- DCD HASH_RNG_IRQHandler ; Hash and Rng
-__Vectors_End
-
-__Vectors_Size EQU __Vectors_End - __Vectors
-
- AREA |.text|, CODE, READONLY
-
-; Reset handler
-Reset_Handler PROC
- EXPORT Reset_Handler [WEAK]
- IMPORT SystemInit
- IMPORT __main
- LDR R0, =SystemInit
- BLX R0
- LDR R0, =__main
- BX R0
- ENDP
-
-; Dummy Exception Handlers (infinite loops which can be modified)
-
-NMI_Handler PROC
- EXPORT NMI_Handler [WEAK]
- B .
- ENDP
-HardFault_Handler\
- PROC
- EXPORT HardFault_Handler [WEAK]
- B .
- ENDP
-MemManage_Handler\
- PROC
- EXPORT MemManage_Handler [WEAK]
- B .
- ENDP
-BusFault_Handler\
- PROC
- EXPORT BusFault_Handler [WEAK]
- B .
- ENDP
-UsageFault_Handler\
- PROC
- EXPORT UsageFault_Handler [WEAK]
- B .
- ENDP
-SVC_Handler PROC
- EXPORT SVC_Handler [WEAK]
- B .
- ENDP
-DebugMon_Handler\
- PROC
- EXPORT DebugMon_Handler [WEAK]
- B .
- ENDP
-PendSV_Handler PROC
- EXPORT PendSV_Handler [WEAK]
- B .
- ENDP
-SysTick_Handler PROC
- EXPORT SysTick_Handler [WEAK]
- B .
- ENDP
-
-Default_Handler PROC
-
- EXPORT WWDG_IRQHandler [WEAK]
- EXPORT PVD_IRQHandler [WEAK]
- EXPORT TAMP_STAMP_IRQHandler [WEAK]
- EXPORT RTC_WKUP_IRQHandler [WEAK]
- EXPORT FLASH_IRQHandler [WEAK]
- EXPORT RCC_IRQHandler [WEAK]
- EXPORT EXTI0_IRQHandler [WEAK]
- EXPORT EXTI1_IRQHandler [WEAK]
- EXPORT EXTI2_IRQHandler [WEAK]
- EXPORT EXTI3_IRQHandler [WEAK]
- EXPORT EXTI4_IRQHandler [WEAK]
- EXPORT DMA1_Stream0_IRQHandler [WEAK]
- EXPORT DMA1_Stream1_IRQHandler [WEAK]
- EXPORT DMA1_Stream2_IRQHandler [WEAK]
- EXPORT DMA1_Stream3_IRQHandler [WEAK]
- EXPORT DMA1_Stream4_IRQHandler [WEAK]
- EXPORT DMA1_Stream5_IRQHandler [WEAK]
- EXPORT DMA1_Stream6_IRQHandler [WEAK]
- EXPORT ADC_IRQHandler [WEAK]
- EXPORT CAN1_TX_IRQHandler [WEAK]
- EXPORT CAN1_RX0_IRQHandler [WEAK]
- EXPORT CAN1_RX1_IRQHandler [WEAK]
- EXPORT CAN1_SCE_IRQHandler [WEAK]
- EXPORT EXTI9_5_IRQHandler [WEAK]
- EXPORT TIM1_BRK_TIM9_IRQHandler [WEAK]
- EXPORT TIM1_UP_TIM10_IRQHandler [WEAK]
- EXPORT TIM1_TRG_COM_TIM11_IRQHandler [WEAK]
- EXPORT TIM1_CC_IRQHandler [WEAK]
- EXPORT TIM2_IRQHandler [WEAK]
- EXPORT TIM3_IRQHandler [WEAK]
- EXPORT TIM4_IRQHandler [WEAK]
- EXPORT I2C1_EV_IRQHandler [WEAK]
- EXPORT I2C1_ER_IRQHandler [WEAK]
- EXPORT I2C2_EV_IRQHandler [WEAK]
- EXPORT I2C2_ER_IRQHandler [WEAK]
- EXPORT SPI1_IRQHandler [WEAK]
- EXPORT SPI2_IRQHandler [WEAK]
- EXPORT USART1_IRQHandler [WEAK]
- EXPORT USART2_IRQHandler [WEAK]
- EXPORT USART3_IRQHandler [WEAK]
- EXPORT EXTI15_10_IRQHandler [WEAK]
- EXPORT RTC_Alarm_IRQHandler [WEAK]
- EXPORT OTG_FS_WKUP_IRQHandler [WEAK]
- EXPORT TIM8_BRK_TIM12_IRQHandler [WEAK]
- EXPORT TIM8_UP_TIM13_IRQHandler [WEAK]
- EXPORT TIM8_TRG_COM_TIM14_IRQHandler [WEAK]
- EXPORT TIM8_CC_IRQHandler [WEAK]
- EXPORT DMA1_Stream7_IRQHandler [WEAK]
- EXPORT FSMC_IRQHandler [WEAK]
- EXPORT SDIO_IRQHandler [WEAK]
- EXPORT TIM5_IRQHandler [WEAK]
- EXPORT SPI3_IRQHandler [WEAK]
- EXPORT UART4_IRQHandler [WEAK]
- EXPORT UART5_IRQHandler [WEAK]
- EXPORT TIM6_DAC_IRQHandler [WEAK]
- EXPORT TIM7_IRQHandler [WEAK]
- EXPORT DMA2_Stream0_IRQHandler [WEAK]
- EXPORT DMA2_Stream1_IRQHandler [WEAK]
- EXPORT DMA2_Stream2_IRQHandler [WEAK]
- EXPORT DMA2_Stream3_IRQHandler [WEAK]
- EXPORT DMA2_Stream4_IRQHandler [WEAK]
- EXPORT ETH_IRQHandler [WEAK]
- EXPORT ETH_WKUP_IRQHandler [WEAK]
- EXPORT CAN2_TX_IRQHandler [WEAK]
- EXPORT CAN2_RX0_IRQHandler [WEAK]
- EXPORT CAN2_RX1_IRQHandler [WEAK]
- EXPORT CAN2_SCE_IRQHandler [WEAK]
- EXPORT OTG_FS_IRQHandler [WEAK]
- EXPORT DMA2_Stream5_IRQHandler [WEAK]
- EXPORT DMA2_Stream6_IRQHandler [WEAK]
- EXPORT DMA2_Stream7_IRQHandler [WEAK]
- EXPORT USART6_IRQHandler [WEAK]
- EXPORT I2C3_EV_IRQHandler [WEAK]
- EXPORT I2C3_ER_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_OUT_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_IN_IRQHandler [WEAK]
- EXPORT OTG_HS_WKUP_IRQHandler [WEAK]
- EXPORT OTG_HS_IRQHandler [WEAK]
- EXPORT DCMI_IRQHandler [WEAK]
- EXPORT CRYP_IRQHandler [WEAK]
- EXPORT HASH_RNG_IRQHandler [WEAK]
-
-WWDG_IRQHandler
-PVD_IRQHandler
-TAMP_STAMP_IRQHandler
-RTC_WKUP_IRQHandler
-FLASH_IRQHandler
-RCC_IRQHandler
-EXTI0_IRQHandler
-EXTI1_IRQHandler
-EXTI2_IRQHandler
-EXTI3_IRQHandler
-EXTI4_IRQHandler
-DMA1_Stream0_IRQHandler
-DMA1_Stream1_IRQHandler
-DMA1_Stream2_IRQHandler
-DMA1_Stream3_IRQHandler
-DMA1_Stream4_IRQHandler
-DMA1_Stream5_IRQHandler
-DMA1_Stream6_IRQHandler
-ADC_IRQHandler
-CAN1_TX_IRQHandler
-CAN1_RX0_IRQHandler
-CAN1_RX1_IRQHandler
-CAN1_SCE_IRQHandler
-EXTI9_5_IRQHandler
-TIM1_BRK_TIM9_IRQHandler
-TIM1_UP_TIM10_IRQHandler
-TIM1_TRG_COM_TIM11_IRQHandler
-TIM1_CC_IRQHandler
-TIM2_IRQHandler
-TIM3_IRQHandler
-TIM4_IRQHandler
-I2C1_EV_IRQHandler
-I2C1_ER_IRQHandler
-I2C2_EV_IRQHandler
-I2C2_ER_IRQHandler
-SPI1_IRQHandler
-SPI2_IRQHandler
-USART1_IRQHandler
-USART2_IRQHandler
-USART3_IRQHandler
-EXTI15_10_IRQHandler
-RTC_Alarm_IRQHandler
-OTG_FS_WKUP_IRQHandler
-TIM8_BRK_TIM12_IRQHandler
-TIM8_UP_TIM13_IRQHandler
-TIM8_TRG_COM_TIM14_IRQHandler
-TIM8_CC_IRQHandler
-DMA1_Stream7_IRQHandler
-FSMC_IRQHandler
-SDIO_IRQHandler
-TIM5_IRQHandler
-SPI3_IRQHandler
-UART4_IRQHandler
-UART5_IRQHandler
-TIM6_DAC_IRQHandler
-TIM7_IRQHandler
-DMA2_Stream0_IRQHandler
-DMA2_Stream1_IRQHandler
-DMA2_Stream2_IRQHandler
-DMA2_Stream3_IRQHandler
-DMA2_Stream4_IRQHandler
-ETH_IRQHandler
-ETH_WKUP_IRQHandler
-CAN2_TX_IRQHandler
-CAN2_RX0_IRQHandler
-CAN2_RX1_IRQHandler
-CAN2_SCE_IRQHandler
-OTG_FS_IRQHandler
-DMA2_Stream5_IRQHandler
-DMA2_Stream6_IRQHandler
-DMA2_Stream7_IRQHandler
-USART6_IRQHandler
-I2C3_EV_IRQHandler
-I2C3_ER_IRQHandler
-OTG_HS_EP1_OUT_IRQHandler
-OTG_HS_EP1_IN_IRQHandler
-OTG_HS_WKUP_IRQHandler
-OTG_HS_IRQHandler
-DCMI_IRQHandler
-CRYP_IRQHandler
-HASH_RNG_IRQHandler
-
- B .
-
- ENDP
-
- ALIGN
-
-;*******************************************************************************
-; User Stack and Heap initialization
-;*******************************************************************************
- IF :DEF:__MICROLIB
-
- EXPORT __initial_sp
- EXPORT __heap_base
- EXPORT __heap_limit
-
- ELSE
-
- IMPORT __use_two_region_memory
- EXPORT __user_initial_stackheap
-
-__user_initial_stackheap
-
- LDR R0, = Heap_Mem
- LDR R1, =(Stack_Mem + Stack_Size)
- LDR R2, = (Heap_Mem + Heap_Size)
- LDR R3, = Stack_Mem
- BX LR
-
- ALIGN
-
- ENDIF
-
- END
-
-;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/system_stm32f2xx.c b/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/system_stm32f2xx.c
deleted file mode 100644
index da0e189c8..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/Device/STM32F207IG/system_stm32f2xx.c
+++ /dev/null
@@ -1,536 +0,0 @@
-/**
- ******************************************************************************
- * @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();
-
- /* Configure the Vector Table location add offset address ------------------*/
-#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
-}
-
-/**
- * @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/IDE/MDK5-ARM/Projects/CryptTest/RTE/File_System/FS_Config.c b/IDE/MDK5-ARM/Projects/CryptTest/RTE/File_System/FS_Config.c
deleted file mode 100644
index 78564b080..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/File_System/FS_Config.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config.c
- * Purpose: File System Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// File System
-// Define File System global parameters
-
-// Number of open files <4-16>
-// Define number of files that can be
-// opened at the same time.
-// Default: 8
-#define NUM_FILES 8
-
-// FAT Name Cache Size <0-1000000>
-// Define number of cached FAT file or directory names.
-// 48 bytes of RAM is required for each cached name.
-#define FAT_NAME_CACHE_SIZE 0
-
-// Relocate FAT Name Cache Buffer
-// Locate Cache Buffer at a specific address.
-#define FAT_NAME_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define the Cache buffer base address.
-#define FAT_NAME_CACHE_ADDR 0x60000000
-
-//
-
-//
-
-#include "..\RTE_Components.h"
-
-#ifdef RTE_FileSystem_Drive_RAM
-#include "FS_Config_RAM.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NOR_0
-#include "FS_Config_NOR_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NOR_1
-#include "FS_Config_NOR_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NAND_0
-#include "FS_Config_NAND_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NAND_1
-#include "FS_Config_NAND_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_MC_0
-#include "FS_Config_MC_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_MC_1
-#include "FS_Config_MC_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_USB_0
-#include "FS_Config_USB_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_USB_1
-#include "FS_Config_USB_1.h"
-#endif
-
-#include "fs_config.h"
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/RTE/File_System/FS_Config_MC_0.h b/IDE/MDK5-ARM/Projects/CryptTest/RTE/File_System/FS_Config_MC_0.h
deleted file mode 100644
index 0b1c6d3a7..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/File_System/FS_Config_MC_0.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System:Drive
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config_MC_0.h
- * Purpose: File System Configuration for Memory Card Drive
- * Rev.: V5.01
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Memory Card Drive 0
-// Configuration for SD/SDHC/MMC Memory Card assigned to drive letter "M0:"
-#define MC0_ENABLE 1
-
-// Connect to hardware via Driver_MCI# <0-255>
-// Select driver control block for hardware interface
-#define MC0_MCI_DRIVER 0
-
-// Connect to hardware via Driver_SPI# <0-255>
-// Select driver control block for hardware interface when in SPI mode
-#define MC0_SPI_DRIVER 0
-
-// Memory Card Interface Mode <0=>Native <1=>SPI
-// Native uses a SD Bus with up to 8 data lines, CLK, and CMD
-// SPI uses 2 data lines (MOSI and MISO), SCLK and CS
-// When using SPI both Driver_SPI# and Driver_MCI# must be specified
-// since the MCI driver provides the control interface lines.
-#define MC0_SPI 0
-
-// Drive Cache Size <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Drive Cache stores data sectors and may be increased to speed-up
-// file read/write operations on this drive (default: 4 KB)
-#define MC0_CACHE_SIZE 4
-
-// Locate Drive Cache and Drive Buffer
-// Some microcontrollers support DMA only in specific memory areas and
-// require to locate the drive buffers at a fixed address.
-#define MC0_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Set buffer base address to RAM areas that support DMA with the drive.
-#define MC0_CACHE_ADDR 0x7FD00000
-
-//
-
-// Use FAT Journal
-// Protect File Allocation Table and Directory Entries for
-// fail-safe operation.
-#define MC0_FAT_JOURNAL 0
-
-// Default Drive "M0:"
-// Use this drive when no drive letter is specified.
-#define MC0_DEFAULT_DRIVE 1
-
-//
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/RTE/RTE_Components.h b/IDE/MDK5-ARM/Projects/CryptTest/RTE/RTE_Components.h
deleted file mode 100644
index 4d1a63720..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/RTE_Components.h
+++ /dev/null
@@ -1,19 +0,0 @@
-
-/*
- * Auto generated Run-Time-Environment Component Configuration File
- * *** Do not modify ! ***
- *
- * Project: 'CryptTest'
- * Target: 'CryptTest'
- */
-
-#ifndef RTE_COMPONENTS_H
-#define RTE_COMPONENTS_H
-
-#define RTE_DEVICE_STARTUP_STM32F2xx /* Device Startup for STM32F2 */
-#define RTE_Drivers_MCI0 /* Driver MCI0 */
-#define RTE_FileSystem_Core /* File System Core */
- #define RTE_FileSystem_LFN /* File System with Long Filename support */
-#define RTE_FileSystem_Drive_MC_0 /* File System Memory Card Drive 0 */
-
-#endif /* RTE_COMPONENTS_H */
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/RTE/wolfSSL/config-Crypt.h b/IDE/MDK5-ARM/Projects/CryptTest/RTE/wolfSSL/config-Crypt.h
deleted file mode 100644
index a11c3ef24..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/wolfSSL/config-Crypt.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/* config-FS.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-// <<< Use Configuration Wizard in Context Menu >>>
-
-// wolfCrypt Configuration
-
-// Cert/Key Strage
-// Cert Storage <0=> SD Card <1=> Mem Buff (1024bytes) <2=> Mem Buff (2048bytes)
-#define MDK_CONF_CERT_BUFF 0
-#if MDK_CONF_CERT_BUFF== 1
-#define USE_CERT_BUFFERS_1024
-#elif MDK_CONF_CERT_BUFF == 2
-#define USE_CERT_BUFFERS_2048
-#endif
-//
-
-// Crypt Algrithm
-
-// MD5, SHA, SHA-256, AES, RC4, ASN, RSA
-//
-
-// MD2
-#define MDK_CONF_MD2 0
-#if MDK_CONF_MD2 == 1
-#define CYASSL_MD2
-#endif
-//
-// MD4
-#define MDK_CONF_MD4 1
-#if MDK_CONF_MD4 == 0
-#define NO_MD4
-#endif
-//
-// SHA-384
-// This has to be with SHA512
-#define MDK_CONF_SHA384 0
-#if MDK_CONF_SHA384 == 1
-#define CYASSL_SHA384
-#endif
-//
-// SHA-512
-#define MDK_CONF_SHA512 0
-#if MDK_CONF_SHA512 == 1
-#define CYASSL_SHA512
-#endif
-//
-// RIPEMD
-#define MDK_CONF_RIPEMD 0
-#if MDK_CONF_RIPEMD == 1
-#define CYASSL_RIPEMD
-#endif
-//
-// HMAC
-#define MDK_CONF_HMAC 1
-#if MDK_CONF_HMAC == 0
-#define NO_HMAC
-#endif
-//
-// HC128
-#define MDK_CONF_HC128 0
-#if MDK_CONF_HC128 == 1
-#define HAVE_HC128
-#endif
-//
-// RABBIT
-#define MDK_CONF_RABBIT 1
-#if MDK_CONF_RABBI == 0
-#define NO_RABBIT
-#endif
-//
-
-// AEAD
-#define MDK_CONF_AEAD 0
-#if MDK_CONF_AEAD == 1
-#define HAVE_AEAD
-#endif
-//
-// DES3
-#define MDK_CONF_DES3 1
-#if MDK_CONF_DES3 == 0
-#define NO_DES3
-#endif
-//
-// CAMELLIA
-#define MDK_CONF_CAMELLIA 0
-#if MDK_CONF_CAMELLIA == 1
-#define HAVE_CAMELLIA
-#endif
-//
-
-// DH
-// need this for CYASSL_SERVER, OPENSSL_EXTRA
-#define MDK_CONF_DH 1
-#if MDK_CONF_DH == 0
-#define NO_DH
-#endif
-//
-// DSA
-#define MDK_CONF_DSA 1
-#if MDK_CONF_DSA == 0
-#define NO_DSA
-#endif
-//
-// PWDBASED
-#define MDK_CONF_PWDBASED 1
-#if MDK_CONF_PWDBASED == 0
-#define NO_PWDBASED
-#endif
-//
-
-// ECC
-#define MDK_CONF_ECC 0
-#if MDK_CONF_ECC == 1
-#define HAVE_ECC
-#endif
-//
-// PSK
-#define MDK_CONF_PSK 1
-#if MDK_CONF_PSK == 0
-#define NO_PSK
-#endif
-//
-// AESCCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESCCM 0
-#if MDK_CONF_AESCCM == 1
-#define HAVE_AESCCM
-#endif
-//
-// AESGCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESGCM 0
-#if MDK_CONF_AESGCM == 1
-#define HAVE_AESGCM
-#define BUILD_AESGCM
-#endif
-//
-// NTRU (need License, "crypto_ntru.h")
-#define MDK_CONF_NTRU 0
-#if MDK_CONF_NTRU == 1
-#define HAVE_NTRU
-#endif
-//
-//
-
-// Hardware Crypt (See document for usage)
-// Hardware RNG
-#define MDK_CONF_STM32F2_RNG 0
-#if MDK_CONF_STM32F2_RNG == 1
-#define STM32F2_RNG
-#else
-
-#endif
-//
-// Hardware Crypt
-#define MDK_CONF_STM32F2_CRYPTO 0
-#if MDK_CONF_STM32F2_CRYPTO == 1
-#define STM32F2_CRYPTO
-#endif
-//
-
-//
-
-
-
-//
-// <<< end of configuration section >>>
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/RTE/wolfSSL/settings.h b/IDE/MDK5-ARM/Projects/CryptTest/RTE/wolfSSL/settings.h
deleted file mode 100644
index 33d41cfdb..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/RTE/wolfSSL/settings.h
+++ /dev/null
@@ -1,667 +0,0 @@
-/* settings.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-/* Place OS specific preprocessor flags, defines, includes here, will be
- included into every file because types.h includes it */
-
-
-#ifndef CTAO_CRYPT_SETTINGS_H
-#define CTAO_CRYPT_SETTINGS_H
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
-/* Uncomment next line if using IPHONE */
-/* #define IPHONE */
-
-/* Uncomment next line if using ThreadX */
-/* #define THREADX */
-
-/* Uncomment next line if using Micrium ucOS */
-/* #define MICRIUM */
-
-/* Uncomment next line if using Mbed */
-/* #define MBED */
-
-/* Uncomment next line if using Microchip PIC32 ethernet starter kit */
-/* #define MICROCHIP_PIC32 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 5 */
-/* #define MICROCHIP_TCPIP_V5 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 6 or later */
-/* #define MICROCHIP_TCPIP */
-
-/* Uncomment next line if using PIC32MZ Crypto Engine */
-/* #define CYASSL_MICROCHIP_PIC32MZ */
-
-/* Uncomment next line if using FreeRTOS */
-/* #define FREERTOS */
-
-/* Uncomment next line if using FreeRTOS Windows Simulator */
-/* #define FREERTOS_WINSIM */
-
-/* Uncomment next line if using RTIP */
-/* #define EBSNET */
-
-/* Uncomment next line if using lwip */
-/* #define CYASSL_LWIP */
-
-/* Uncomment next line if building CyaSSL for a game console */
-/* #define CYASSL_GAME_BUILD */
-
-/* Uncomment next line if building CyaSSL for LSR */
-/* #define CYASSL_LSR */
-
-/* Uncomment next line if building CyaSSL for Freescale MQX/RTCS/MFS */
-/* #define FREESCALE_MQX */
-
-/* Uncomment next line if using STM32F2 */
-/* #define CYASSL_STM32F2 */
-
-/* Uncomment next line if using Comverge settings */
-/* #define COMVERGE */
-
-/* Uncomment next line if using QL SEP settings */
-/* #define CYASSL_QL */
-
-/* Uncomment next line if using LwIP native TCP socket settings */
-/* #define HAVE_LWIP_NATIVE */
-
-/* Uncomment next line if building for EROAD */
-/* #define CYASSL_EROAD */
-
-#include
-
-#ifdef IPHONE
- #define SIZEOF_LONG_LONG 8
-#endif
-
-
-#ifdef CYASSL_USER_SETTINGS
- #include
-#endif
-
-
-#ifdef COMVERGE
- #define THREADX
- #define HAVE_NETX
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_RSA
- #define NO_SESSION_CACHE
- #define HAVE_ECC
-#endif
-
-
-#ifdef THREADX
- #define SIZEOF_LONG_LONG 8
-#endif
-
-#ifdef HAVE_NETX
- #include "nx_api.h"
-#endif
-
-#if defined(HAVE_LWIP_NATIVE) /* using LwIP native TCP socket */
- #define CYASSL_LWIP
- #define NO_WRITEV
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_FILESYSTEM
-#endif
-
-#ifdef MICROCHIP_PIC32
- /* #define CYASSL_MICROCHIP_PIC32MZ */
- #define SIZEOF_LONG_LONG 8
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef CYASSL_MICROCHIP_PIC32MZ
- #define CYASSL_PIC32MZ_CE
- #define CYASSL_PIC32MZ_CRYPT
- #define HAVE_AES_ENGINE
- #define CYASSL_PIC32MZ_RNG
- /* #define CYASSL_PIC32MZ_HASH */
- #define CYASSL_AES_COUNTER
- #define HAVE_AESGCM
- #define NO_BIG_INT
-
-#endif
-
-#ifdef MICROCHIP_TCPIP_V5
- /* include timer functions */
- #include "TCPIP Stack/TCPIP.h"
-#endif
-
-#ifdef MICROCHIP_TCPIP
- /* include timer, NTP functions */
- #ifdef MICROCHIP_MPLAB_HARMONY
- #include "tcpip/tcpip.h"
- #else
- #include "system/system_services.h"
- #include "tcpip/sntp.h"
- #endif
-#endif
-
-#ifdef MBED
- #define CYASSL_USER_IO
- #define NO_FILESYSTEM
- #define NO_CERT
- #define USE_CERT_BUFFERS_1024
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define HAVE_ECC
- #define NO_SESSION_CACHE
- #define CYASSL_CMSIS_RTOS
-#endif
-
-
-#ifdef CYASSL_EROAD
- #define FREESCALE_MQX
- #define FREESCALE_MMCAU
- #define SINGLE_THREADED
- #define NO_STDIO_FILESYSTEM
- #define CYASSL_LEANPSK
- #define HAVE_NULL_CIPHER
- #define NO_OLD_TLS
- #define NO_ASN
- #define NO_BIG_INT
- #define NO_RSA
- #define NO_DSA
- #define NO_DH
- #define NO_CERTS
- #define NO_PWDBASED
- #define NO_DES3
- #define NO_MD4
- #define NO_RC4
- #define NO_MD5
- #define NO_SESSION_CACHE
- #define NO_MAIN_DRIVER
-#endif
-
-#ifdef FREERTOS_WINSIM
- #define FREERTOS
- #define USE_WINDOWS_API
-#endif
-
-
-/* Micrium will use Visual Studio for compilation but not the Win32 API */
-#if defined(_WIN32) && !defined(MICRIUM) && !defined(FREERTOS) \
- && !defined(EBSNET) && !defined(CYASSL_EROAD)
- #define USE_WINDOWS_API
-#endif
-
-
-#if defined(CYASSL_LEANPSK) && !defined(XMALLOC_USER)
- #include
- #define XMALLOC(s, h, type) malloc((s))
- #define XFREE(p, h, type) free((p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
-#if defined(XMALLOC_USER) && defined(SSN_BUILDING_LIBYASSL)
- #undef XMALLOC
- #define XMALLOC yaXMALLOC
- #undef XFREE
- #define XFREE yaXFREE
- #undef XREALLOC
- #define XREALLOC yaXREALLOC
-#endif
-
-
-#ifdef FREERTOS
- #ifndef NO_WRITEV
- #define NO_WRITEV
- #endif
- #ifndef NO_SHA512
- #define NO_SHA512
- #endif
- #ifndef NO_DH
- #define NO_DH
- #endif
- #ifndef NO_DSA
- #define NO_DSA
- #endif
- #ifndef NO_HC128
- #define NO_HC128
- #endif
-
- #ifndef SINGLE_THREADED
- #include "FreeRTOS.h"
- #include "semphr.h"
- #endif
-#endif
-
-#ifdef EBSNET
- #include "rtip.h"
-
- /* #define DEBUG_CYASSL */
- #define NO_CYASSL_DIR /* tbd */
-
- #if (POLLOS)
- #define SINGLE_THREADED
- #endif
-
- #if (RTPLATFORM)
- #if (!RTP_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #else
- #if (!KS_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #endif
-
- #if (WINMSP3)
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #else
- #sslpro: settings.h - please implement SIZEOF_LONG and SIZEOF_LONG_LONG
- #endif
-
- #define XMALLOC(s, h, type) ((void *)rtp_malloc((s), SSL_PRO_MALLOC))
- #define XFREE(p, h, type) (rtp_free(p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-
-#endif /* EBSNET */
-
-#ifdef CYASSL_GAME_BUILD
- #define SIZEOF_LONG_LONG 8
- #if defined(__PPU) || defined(__XENON)
- #define BIG_ENDIAN_ORDER
- #endif
-#endif
-
-#ifdef CYASSL_LSR
- #define HAVE_WEBSERVER
- #define SIZEOF_LONG_LONG 8
- #define CYASSL_LOW_MEMORY
- #define NO_WRITEV
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #ifndef NO_FILESYSTEM
- #define LSR_FS
- #include "inc/hw_types.h"
- #include "fs.h"
- #endif
- #define CYASSL_LWIP
- #include /* for tcp errno */
- #define CYASSL_SAFERTOS
- #if defined(__IAR_SYSTEMS_ICC__)
- /* enum uses enum */
- #pragma diag_suppress=Pa089
- #endif
-#endif
-
-#ifdef CYASSL_SAFERTOS
- #ifndef SINGLE_THREADED
- #include "SafeRTOS/semphr.h"
- #endif
-
- #include "SafeRTOS/heap.h"
- #define XMALLOC(s, h, type) pvPortMalloc((s))
- #define XFREE(p, h, type) vPortFree((p))
- #define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
-#endif
-
-#ifdef CYASSL_LOW_MEMORY
- #undef RSA_LOW_MEM
- #define RSA_LOW_MEM
- #undef CYASSL_SMALL_STACK
- #define CYASSL_SMALL_STACK
- #undef TFM_TIMING_RESISTANT
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef FREESCALE_MQX
- #define SIZEOF_LONG_LONG 8
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_RABBIT
- #define NO_CYASSL_DIR
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
- #define FREESCALE_K70_RNGA
- /* #define FREESCALE_K53_RNGB */
- #include "mqx.h"
- #ifndef NO_FILESYSTEM
- #include "mfs.h"
- #include "fio.h"
- #endif
- #ifndef SINGLE_THREADED
- #include "mutex.h"
- #endif
-
- #define XMALLOC(s, h, t) (void *)_mem_alloc_system((s))
- #define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));}
- /* Note: MQX has no realloc, using fastmath above */
-#endif
-
-#ifdef CYASSL_STM32F2
- #define SIZEOF_LONG_LONG 8
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #define STM32F2_RNG
- #define STM32F2_CRYPTO
- #define KEIL_INTRINSICS
-#endif
-
-#ifdef MICRIUM
-
- #include "stdlib.h"
- #include "net_cfg.h"
- #include "ssl_cfg.h"
- #include "net_secure_os.h"
-
- #define CYASSL_TYPES
-
- typedef CPU_INT08U byte;
- typedef CPU_INT16U word16;
- typedef CPU_INT32U word32;
-
- #if (NET_SECURE_MGR_CFG_WORD_SIZE == CPU_WORD_SIZE_32)
- #define SIZEOF_LONG 4
- #undef SIZEOF_LONG_LONG
- #else
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #endif
-
- #define STRING_USER
-
- #define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr)))
- #define XSTRNCPY(pstr_dest, pstr_src, len_max) \
- ((CPU_CHAR *)Str_Copy_N((CPU_CHAR *)(pstr_dest), \
- (CPU_CHAR *)(pstr_src), (CPU_SIZE_T)(len_max)))
- #define XSTRNCMP(pstr_1, pstr_2, len_max) \
- ((CPU_INT16S)Str_Cmp_N((CPU_CHAR *)(pstr_1), \
- (CPU_CHAR *)(pstr_2), (CPU_SIZE_T)(len_max)))
- #define XSTRSTR(pstr, pstr_srch) \
- ((CPU_CHAR *)Str_Str((CPU_CHAR *)(pstr), \
- (CPU_CHAR *)(pstr_srch)))
- #define XMEMSET(pmem, data_val, size) \
- ((void)Mem_Set((void *)(pmem), (CPU_INT08U) (data_val), \
- (CPU_SIZE_T)(size)))
- #define XMEMCPY(pdest, psrc, size) ((void)Mem_Copy((void *)(pdest), \
- (void *)(psrc), (CPU_SIZE_T)(size)))
- #define XMEMCMP(pmem_1, pmem_2, size) \
- (((CPU_BOOLEAN)Mem_Cmp((void *)(pmem_1), (void *)(pmem_2), \
- (CPU_SIZE_T)(size))) ? DEF_NO : DEF_YES)
- #define XMEMMOVE XMEMCPY
-
-#if (NET_SECURE_MGR_CFG_EN == DEF_ENABLED)
- #define MICRIUM_MALLOC
- #define XMALLOC(s, h, type) ((void *)NetSecure_BlkGet((CPU_INT08U)(type), \
- (CPU_SIZE_T)(s), (void *)0))
- #define XFREE(p, h, type) (NetSecure_BlkFree((CPU_INT08U)(type), \
- (p), (void *)0))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
- #if (NET_SECURE_MGR_CFG_FS_EN == DEF_ENABLED)
- #undef NO_FILESYSTEM
- #else
- #define NO_FILESYSTEM
- #endif
-
- #if (SSL_CFG_TRACE_LEVEL == CYASSL_TRACE_LEVEL_DBG)
- #define DEBUG_CYASSL
- #else
- #undef DEBUG_CYASSL
- #endif
-
- #if (SSL_CFG_OPENSSL_EN == DEF_ENABLED)
- #define OPENSSL_EXTRA
- #else
- #undef OPENSSL_EXTRA
- #endif
-
- #if (SSL_CFG_MULTI_THREAD_EN == DEF_ENABLED)
- #undef SINGLE_THREADED
- #else
- #define SINGLE_THREADED
- #endif
-
- #if (SSL_CFG_DH_EN == DEF_ENABLED)
- #undef NO_DH
- #else
- #define NO_DH
- #endif
-
- #if (SSL_CFG_DSA_EN == DEF_ENABLED)
- #undef NO_DSA
- #else
- #define NO_DSA
- #endif
-
- #if (SSL_CFG_PSK_EN == DEF_ENABLED)
- #undef NO_PSK
- #else
- #define NO_PSK
- #endif
-
- #if (SSL_CFG_3DES_EN == DEF_ENABLED)
- #undef NO_DES
- #else
- #define NO_DES
- #endif
-
- #if (SSL_CFG_AES_EN == DEF_ENABLED)
- #undef NO_AES
- #else
- #define NO_AES
- #endif
-
- #if (SSL_CFG_RC4_EN == DEF_ENABLED)
- #undef NO_RC4
- #else
- #define NO_RC4
- #endif
-
- #if (SSL_CFG_RABBIT_EN == DEF_ENABLED)
- #undef NO_RABBIT
- #else
- #define NO_RABBIT
- #endif
-
- #if (SSL_CFG_HC128_EN == DEF_ENABLED)
- #undef NO_HC128
- #else
- #define NO_HC128
- #endif
-
- #if (CPU_CFG_ENDIAN_TYPE == CPU_ENDIAN_TYPE_BIG)
- #define BIG_ENDIAN_ORDER
- #else
- #undef BIG_ENDIAN_ORDER
- #define LITTLE_ENDIAN_ORDER
- #endif
-
- #if (SSL_CFG_MD4_EN == DEF_ENABLED)
- #undef NO_MD4
- #else
- #define NO_MD4
- #endif
-
- #if (SSL_CFG_WRITEV_EN == DEF_ENABLED)
- #undef NO_WRITEV
- #else
- #define NO_WRITEV
- #endif
-
- #if (SSL_CFG_USER_RNG_SEED_EN == DEF_ENABLED)
- #define NO_DEV_RANDOM
- #else
- #undef NO_DEV_RANDOM
- #endif
-
- #if (SSL_CFG_USER_IO_EN == DEF_ENABLED)
- #define CYASSL_USER_IO
- #else
- #undef CYASSL_USER_IO
- #endif
-
- #if (SSL_CFG_DYNAMIC_BUFFERS_EN == DEF_ENABLED)
- #undef LARGE_STATIC_BUFFERS
- #undef STATIC_CHUNKS_ONLY
- #else
- #define LARGE_STATIC_BUFFERS
- #define STATIC_CHUNKS_ONLY
- #endif
-
- #if (SSL_CFG_DER_LOAD_EN == DEF_ENABLED)
- #define CYASSL_DER_LOAD
- #else
- #undef CYASSL_DER_LOAD
- #endif
-
- #if (SSL_CFG_DTLS_EN == DEF_ENABLED)
- #define CYASSL_DTLS
- #else
- #undef CYASSL_DTLS
- #endif
-
- #if (SSL_CFG_CALLBACKS_EN == DEF_ENABLED)
- #define CYASSL_CALLBACKS
- #else
- #undef CYASSL_CALLBACKS
- #endif
-
- #if (SSL_CFG_FAST_MATH_EN == DEF_ENABLED)
- #define USE_FAST_MATH
- #else
- #undef USE_FAST_MATH
- #endif
-
- #if (SSL_CFG_TFM_TIMING_RESISTANT_EN == DEF_ENABLED)
- #define TFM_TIMING_RESISTANT
- #else
- #undef TFM_TIMING_RESISTANT
- #endif
-
-#endif /* MICRIUM */
-
-
-#ifdef CYASSL_QL
- #ifndef CYASSL_SEP
- #define CYASSL_SEP
- #endif
- #ifndef OPENSSL_EXTRA
- #define OPENSSL_EXTRA
- #endif
- #ifndef SESSION_CERTS
- #define SESSION_CERTS
- #endif
- #ifndef HAVE_AESCCM
- #define HAVE_AESCCM
- #endif
- #ifndef ATOMIC_USER
- #define ATOMIC_USER
- #endif
- #ifndef CYASSL_DER_LOAD
- #define CYASSL_DER_LOAD
- #endif
- #ifndef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
- #endif
- #ifndef HAVE_ECC
- #define HAVE_ECC
- #endif
- #ifndef SESSION_INDEX
- #define SESSION_INDEX
- #endif
-#endif /* CYASSL_QL */
-
-
-#if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \
- !defined(CYASSL_LEANPSK) && !defined(NO_CYASSL_MEMORY)
- #define USE_CYASSL_MEMORY
-#endif
-
-
-#if defined(OPENSSL_EXTRA) && !defined(NO_CERTS)
- #undef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
-#endif
-
-
-/* stream ciphers except arc4 need 32bit alignment, intel ok without */
-#ifndef XSTREAM_ALIGNMENT
- #if defined(__x86_64__) || defined(__ia64__) || defined(__i386__)
- #define NO_XSTREAM_ALIGNMENT
- #else
- #define XSTREAM_ALIGNMENT
- #endif
-#endif
-
-
-/* if using hardware crypto and have alignment requirements, specify the
- requirement here. The record header of SSL/TLS will prvent easy alignment.
- This hint tries to help as much as possible. */
-#ifndef CYASSL_GENERAL_ALIGNMENT
- #ifdef CYASSL_AESNI
- #define CYASSL_GENERAL_ALIGNMENT 16
- #elif defined(XSTREAM_ALIGNMENT)
- #define CYASSL_GENERAL_ALIGNMENT 4
- #else
- #define CYASSL_GENERAL_ALIGNMENT 0
- #endif
-#endif
-
-#ifdef HAVE_CRL
- /* not widely supported yet */
- #undef NO_SKID
- #define NO_SKID
-#endif
-
-/* Place any other flags or defines here */
-
-
-#ifdef __cplusplus
- } /* extern "C" */
-#endif
-
-
-#endif /* CTAO_CRYPT_SETTINGS_H */
-
diff --git a/IDE/MDK5-ARM/Projects/CryptTest/STM32_SWO.ini b/IDE/MDK5-ARM/Projects/CryptTest/STM32_SWO.ini
deleted file mode 100644
index 239abce37..000000000
--- a/IDE/MDK5-ARM/Projects/CryptTest/STM32_SWO.ini
+++ /dev/null
@@ -1,36 +0,0 @@
-/******************************************************************************/
-/* STM32_SWO.ini: STM32 Debugger Initialization File */
-/******************************************************************************/
-// <<< Use Configuration Wizard in Context Menu >>> //
-/******************************************************************************/
-/* This file is part of the uVision/ARM development tools. */
-/* Copyright (c) 2004-2013 Keil Software. All rights reserved. */
-/* This software may only be used under the terms of a valid, current, */
-/* end user licence from KEIL for a compatible version of KEIL software */
-/* development tools. Nothing else gives you the right to use this software. */
-/******************************************************************************/
-
-
-FUNC void DebugSetup (void) {
-// Debug MCU Configuration
-// DBG_SLEEP Debug Sleep Mode
-// DBG_STOP Debug Stop Mode
-// DBG_STANDBY Debug Standby Mode
-// TRACE_IOEN Trace I/O Enable
-// TRACE_MODE Trace Mode
-// <0=> Asynchronous
-// <1=> Synchronous: TRACEDATA Size 1
-// <2=> Synchronous: TRACEDATA Size 2
-// <3=> Synchronous: TRACEDATA Size 4
-// DBG_IWDG_STOP Independant Watchdog Stopped when Core is halted
-// DBG_WWDG_STOP Window Watchdog Stopped when Core is halted
-// DBG_TIM1_STOP Timer 1 Stopped when Core is halted
-// DBG_TIM2_STOP Timer 2 Stopped when Core is halted
-// DBG_TIM3_STOP Timer 3 Stopped when Core is halted
-// DBG_TIM4_STOP Timer 4 Stopped when Core is halted
-// DBG_CAN_STOP CAN Stopped when Core is halted
-//
- _WDWORD(0xE0042004, 0x00000027); // DBGMCU_CR
-}
-
-DebugSetup(); // Debugger Setup
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/CMSIS/RTX_Conf_CM.c b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/CMSIS/RTX_Conf_CM.c
deleted file mode 100644
index cc5980000..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/CMSIS/RTX_Conf_CM.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - RTX
- *----------------------------------------------------------------------------
- * Name: RTX_Conf_CM.C
- * Purpose: Configuration of CMSIS RTX Kernel for Cortex-M
- * Rev.: V4.73
- *----------------------------------------------------------------------------
- *
- * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
- * 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 ARM 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 COPYRIGHT HOLDERS AND CONTRIBUTORS 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.
- *---------------------------------------------------------------------------*/
-
-#include "cmsis_os.h"
-
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part BEGIN
- *---------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// Thread Configuration
-// =======================
-//
-// Number of concurrent running threads <0-250>
-// Defines max. number of threads that will run at the same time.
-// Default: 6
-#ifndef OS_TASKCNT
- #define OS_TASKCNT 6
-#endif
-
-// Default Thread stack size [bytes] <64-4096:8><#/4>
-// Defines default stack size for threads with osThreadDef stacksz = 0
-// Default: 200
-#ifndef OS_STKSIZE
- #define OS_STKSIZE 300
-#endif
-
-// Main Thread stack size [bytes] <64-32768:8><#/4>
-// Defines stack size for main thread.
-// Default: 200
-#ifndef OS_MAINSTKSIZE
- #define OS_MAINSTKSIZE 1000
-#endif
-
-// Number of threads with user-provided stack size <0-250>
-// Defines the number of threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVCNT
- #define OS_PRIVCNT 0
-#endif
-
-// Total stack size [bytes] for threads with user-provided stack size <0-1048576:8><#/4>
-// Defines the combined stack size for threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVSTKSIZE
- #define OS_PRIVSTKSIZE 6000
-#endif
-
-// Check for stack overflow
-// Includes the stack checking code for stack overflow.
-// Note that additional code reduces the Kernel performance.
-#ifndef OS_STKCHECK
- #define OS_STKCHECK 1
-#endif
-
-// Processor mode for thread execution
-// <0=> Unprivileged mode
-// <1=> Privileged mode
-// Default: Privileged mode
-#ifndef OS_RUNPRIV
- #define OS_RUNPRIV 1
-#endif
-
-//
-
-// RTX Kernel Timer Tick Configuration
-// ======================================
-// Use Cortex-M SysTick timer as RTX Kernel Timer
-// Use the Cortex-M SysTick timer as a time-base for RTX.
-#ifndef OS_SYSTICK
- #define OS_SYSTICK 1
-#endif
-//
-// Timer clock value [Hz] <1-1000000000>
-// Defines the timer clock value.
-// Default: 12000000 (12MHz)
-#ifndef OS_CLOCK
- #define OS_CLOCK 12000000
-#endif
-
-// Timer tick value [us] <1-1000000>
-// Defines the timer tick value.
-// Default: 1000 (1ms)
-#ifndef OS_TICK
- #define OS_TICK 1000
-#endif
-
-//
-
-// System Configuration
-// =======================
-//
-// Round-Robin Thread switching
-// ===============================
-//
-// Enables Round-Robin Thread switching.
-#ifndef OS_ROBIN
- #define OS_ROBIN 1
-#endif
-
-// Round-Robin Timeout [ticks] <1-1000>
-// Defines how long a thread will execute before a thread switch.
-// Default: 5
-#ifndef OS_ROBINTOUT
- #define OS_ROBINTOUT 5
-#endif
-
-//
-
-// User Timers
-// ==============
-// Enables user Timers
-#ifndef OS_TIMERS
- #define OS_TIMERS 1
-#endif
-
-// Timer Thread Priority
-// <1=> Low
-// <2=> Below Normal <3=> Normal <4=> Above Normal
-// <5=> High
-// <6=> Realtime (highest)
-// Defines priority for Timer Thread
-// Default: High
-#ifndef OS_TIMERPRIO
- #define OS_TIMERPRIO 5
-#endif
-
-// Timer Thread stack size [bytes] <64-4096:8><#/4>
-// Defines stack size for Timer thread.
-// Default: 200
-#ifndef OS_TIMERSTKSZ
- #define OS_TIMERSTKSZ 50
-#endif
-
-// Timer Callback Queue size <1-32>
-// Number of concurrent active timer callback functions.
-// Default: 4
-#ifndef OS_TIMERCBQS
- #define OS_TIMERCBQS 4
-#endif
-
-//
-
-// ISR FIFO Queue size<4=> 4 entries <8=> 8 entries
-// <12=> 12 entries <16=> 16 entries
-// <24=> 24 entries <32=> 32 entries
-// <48=> 48 entries <64=> 64 entries
-// <96=> 96 entries
-// ISR functions store requests to this buffer,
-// when they are called from the interrupt handler.
-// Default: 16 entries
-#ifndef OS_FIFOSZ
- #define OS_FIFOSZ 16
-#endif
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-// Standard library system mutexes
-// ===============================
-// Define max. number system mutexes that are used to protect
-// the arm standard runtime library. For microlib they are not used.
-#ifndef OS_MUTEXCNT
- #define OS_MUTEXCNT 8
-#endif
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part END
- *---------------------------------------------------------------------------*/
-
-#define OS_TRV ((uint32_t)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
-
-
-/*----------------------------------------------------------------------------
- * Global Functions
- *---------------------------------------------------------------------------*/
-
-/*--------------------------- os_idle_demon ---------------------------------*/
-
-void os_idle_demon (void) {
- /* The idle demon is a system thread, running when no other thread is */
- /* ready to run. */
-
- for (;;) {
- /* HERE: include optional user code to be executed when no thread runs.*/
- }
-}
-
-#if (OS_SYSTICK == 0) // Functions for alternative timer as RTX kernel timer
-
-/*--------------------------- os_tick_init ----------------------------------*/
-
-// Initialize alternative hardware timer as RTX kernel timer
-// Return: IRQ number of the alternative hardware timer
-int os_tick_init (void) {
- return (-1); /* Return IRQ number of timer (0..239) */
-}
-
-/*--------------------------- os_tick_val -----------------------------------*/
-
-// Get alternative hardware timer current value (0 .. OS_TRV)
-uint32_t os_tick_val (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_ovf -----------------------------------*/
-
-// Get alternative hardware timer overflow flag
-// Return: 1 - overflow, 0 - no overflow
-uint32_t os_tick_ovf (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_irqack --------------------------------*/
-
-// Acknowledge alternative hardware timer interrupt
-void os_tick_irqack (void) {
- /* ... */
-}
-
-#endif // (OS_SYSTICK == 0)
-
-/*--------------------------- os_error --------------------------------------*/
-
-/* OS Error Codes */
-#define OS_ERROR_STACK_OVF 1
-#define OS_ERROR_FIFO_OVF 2
-#define OS_ERROR_MBX_OVF 3
-
-extern osThreadId svcThreadGetId (void);
-
-void os_error (uint32_t error_code) {
- /* This function is called when a runtime error is detected. */
- /* Parameter 'error_code' holds the runtime error code. */
-
- /* HERE: include optional code to be executed on runtime error. */
- switch (error_code) {
- case OS_ERROR_STACK_OVF:
- /* Stack overflow detected for the currently running task. */
- /* Thread can be identified by calling svcThreadGetId(). */
- break;
- case OS_ERROR_FIFO_OVF:
- /* ISR FIFO Queue buffer overflow detected. */
- break;
- case OS_ERROR_MBX_OVF:
- /* Mailbox overflow detected. */
- break;
- }
- for (;;);
-}
-
-
-/*----------------------------------------------------------------------------
- * RTX Configuration Functions
- *---------------------------------------------------------------------------*/
-
-#include "RTX_CM_lib.h"
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/RTE_Device.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/RTE_Device.h
deleted file mode 100644
index 4a09246f3..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/RTE_Device.h
+++ /dev/null
@@ -1,3127 +0,0 @@
-/* -----------------------------------------------------------------------------
- * Copyright (C) 2013 ARM Limited. All rights reserved.
- *
- * $Date: 27. June 2013
- * $Revision: V1.01
- *
- * Project: RTE Device Configuration for ST STM32F2xx
- * -------------------------------------------------------------------------- */
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-#ifndef __RTE_DEVICE_H
-#define __RTE_DEVICE_H
-
-
-#define GPIO_PORT(num) \
- ((num == 0) ? GPIOA : \
- (num == 1) ? GPIOB : \
- (num == 2) ? GPIOC : \
- (num == 3) ? GPIOD : \
- (num == 4) ? GPIOE : \
- (num == 5) ? GPIOF : \
- (num == 6) ? GPIOG : \
- (num == 7) ? GPIOH : \
- (num == 8) ? GPIOI : \
- NULL)
-
-
-// Clock Configuration
-// High-speed Internal Clock <1-999999999>
-#define RTE_HSI 16000000
-// High-speed External Clock <1-999999999>
-#define RTE_HSE 25000000
-// System Clock <1-999999999>
-#define RTE_SYSCLK 120000000
-// AHB Clock <1-999999999>
-#define RTE_HCLK 120000000
-// APB1 Clock <1-999999999>
-#define RTE_PCLK1 30000000
-// APB2 Clock <1-999999999>
-#define RTE_PCLK2 60000000
-// 48MHz Clock
-#define RTE_PLL48CK 48000000
-//
-
-
-// USART1 (Universal synchronous asynchronous receiver transmitter) [Driver_UART1]
-// Configuration settings for Driver_UART1 in component ::Drivers:UART
-#define RTE_USART1 0
-
-// USART1_TX Pin <0=>PA9 <1=>PB6
-#define RTE_USART1_TX_ID 0
-#if (RTE_USART1_TX_ID == 0)
-#define RTE_USART1_TX_PORT GPIOA
-#define RTE_USART1_TX_BIT 9
-#elif (RTE_USART1_TX_ID == 1)
-#define RTE_USART1_TX_PORT GPIOB
-#define RTE_USART1_TX_BIT 6
-#else
-#error "Invalid USART1_TX Pin Configuration!"
-#endif
-
-// USART1_RX Pin <0=>PA10 <1=>PB7
-#define RTE_USART1_RX_ID 0
-#if (RTE_USART1_RX_ID == 0)
-#define RTE_USART1_RX_PORT GPIOA
-#define RTE_USART1_RX_BIT 10
-#elif (RTE_USART1_RX_ID == 1)
-#define RTE_USART1_RX_PORT GPIOB
-#define RTE_USART1_RX_BIT 7
-#else
-#error "Invalid USART1_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART1_CK Pin <0=>PA8
-//
-#define RTE_USART1_CK 0
-#define RTE_USART1_CK_ID 0
-#if (RTE_USART1_CK_ID == 0)
-#define RTE_USART1_CK_PORT GPIOA
-#define RTE_USART1_CK_BIT 8
-#else
-#error "Invalid USART1_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART1_CTS Pin <0=>PA11
-// USART1_RTS Pin <0=>PA12
-// Manual CTS/RTS
-//
-#define RTE_USART1_HW_FLOW 0
-#define RTE_USART1_CTS_ID 0
-#define RTE_USART1_RTS_ID 0
-#define RTE_USART1_MANUAL_FLOW 0
-#if (RTE_USART1_CTS_ID == 0)
-#define RTE_USART1_CTS_PORT GPIOA
-#define RTE_USART1_CTS_BIT 11
-#else
-#error "Invalid USART1_CTS Pin Configuration!"
-#endif
-#if (RTE_USART1_RTS_ID == 0)
-#define RTE_USART1_RTS_PORT GPIOA
-#define RTE_USART1_RTS_BIT 12
-#else
-#error "Invalid USART1_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <2=>2 <5=>5
-// Selects DMA Stream (only Stream 2 or 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_RX_DMA 1
-#define RTE_USART1_RX_DMA_NUMBER 2
-#define RTE_USART1_RX_DMA_STREAM 2
-#define RTE_USART1_RX_DMA_CHANNEL 4
-#define RTE_USART1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_TX_DMA 1
-#define RTE_USART1_TX_DMA_NUMBER 2
-#define RTE_USART1_TX_DMA_STREAM 7
-#define RTE_USART1_TX_DMA_CHANNEL 4
-#define RTE_USART1_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART2 (Universal synchronous asynchronous receiver transmitter) [Driver_UART2]
-// Configuration settings for Driver_UART2 in component ::Drivers:UART
-#define RTE_USART2 0
-
-// USART2_TX Pin <0=>PA2 <1=>PD5
-#define RTE_USART2_TX_ID 0
-#if (RTE_USART2_TX_ID == 0)
-#define RTE_USART2_TX_PORT GPIOA
-#define RTE_USART2_TX_BIT 2
-#elif (RTE_USART2_TX_ID == 1)
-#define RTE_USART2_TX_PORT GPIOD
-#define RTE_USART2_TX_BIT 5
-#else
-#error "Invalid USART2_TX Pin Configuration!"
-#endif
-
-// USART2_RX Pin <0=>PA3 <1=>PD6
-#define RTE_USART2_RX_ID 0
-#if (RTE_USART2_RX_ID == 0)
-#define RTE_USART2_RX_PORT GPIOA
-#define RTE_USART2_RX_BIT 3
-#elif (RTE_USART2_RX_ID == 1)
-#define RTE_USART2_RX_PORT GPIOD
-#define RTE_USART2_RX_BIT 6
-#else
-#error "Invalid USART2_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART2_CK Pin <0=>PA4 <1=>PD7
-//
-#define RTE_USART2_CK 0
-#define RTE_USART2_CK_ID 0
-#if (RTE_USART2_CK_ID == 0)
-#define RTE_USART2_CK_PORT GPIOA
-#define RTE_USART2_CK_BIT 4
-#elif (RTE_USART2_CK_ID == 1)
-#define RTE_USART2_CK_PORT GPIOD
-#define RTE_USART2_CK_BIT 7
-#else
-#error "Invalid USART2_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART2_CTS Pin <0=>PA0 <1=>PD3
-// USART2_RTS Pin <0=>PA1 <1=>PD4
-// Manual CTS/RTS
-//
-#define RTE_USART2_HW_FLOW 0
-#define RTE_USART2_CTS_ID 0
-#define RTE_USART2_RTS_ID 0
-#define RTE_USART2_MANUAL_FLOW 0
-#if (RTE_USART2_CTS_ID == 0)
-#define RTE_USART2_CTS_PORT GPIOA
-#define RTE_USART2_CTS_BIT 0
-#elif (RTE_USART2_CTS_ID == 1)
-#define RTE_USART2_CTS_PORT GPIOD
-#define RTE_USART2_CTS_BIT 3
-#else
-#error "Invalid USART2_CTS Pin Configuration!"
-#endif
-#if (RTE_USART2_RTS_ID == 0)
-#define RTE_USART2_RTS_PORT GPIOA
-#define RTE_USART2_RTS_BIT 1
-#elif (RTE_USART2_RTS_ID == 1)
-#define RTE_USART2_RTS_PORT GPIOD
-#define RTE_USART2_RTS_BIT 4
-#else
-#error "Invalid USART2_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5
-// Selects DMA Stream (only Stream 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_RX_DMA 1
-#define RTE_USART2_RX_DMA_NUMBER 1
-#define RTE_USART2_RX_DMA_STREAM 5
-#define RTE_USART2_RX_DMA_CHANNEL 4
-#define RTE_USART2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6
-// Selects DMA Stream (only Stream 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_TX_DMA 1
-#define RTE_USART2_TX_DMA_NUMBER 1
-#define RTE_USART2_TX_DMA_STREAM 6
-#define RTE_USART2_TX_DMA_CHANNEL 4
-#define RTE_USART2_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART3 (Universal synchronous asynchronous receiver transmitter) [Driver_UART3]
-// Configuration settings for Driver_UART3 in component ::Drivers:UART
-#define RTE_USART3 0
-
-// USART3_TX Pin <0=>PB10 <1=>PC10 <2=>PD8
-#define RTE_USART3_TX_ID 0
-#if (RTE_USART3_TX_ID == 0)
-#define RTE_USART3_TX_PORT GPIOB
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 1)
-#define RTE_USART3_TX_PORT GPIOC
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 2)
-#define RTE_USART3_TX_PORT GPIOD
-#define RTE_USART3_TX_BIT 8
-#else
-#error "Invalid USART3_TX Pin Configuration!"
-#endif
-
-// USART3_RX Pin <0=>PB11 <1=>PC11 <2=>PD9
-#define RTE_USART3_RX_ID 0
-#if (RTE_USART3_RX_ID == 0)
-#define RTE_USART3_RX_PORT GPIOB
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 1)
-#define RTE_USART3_RX_PORT GPIOC
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 2)
-#define RTE_USART3_RX_PORT GPIOD
-#define RTE_USART3_RX_BIT 9
-#else
-#error "Invalid USART3_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART3_CK Pin <0=>PB12 <1=>PC12 <2=>PD10
-//
-#define RTE_USART3_CK 0
-#define RTE_USART3_CK_ID 0
-#if (RTE_USART3_CK_ID == 0)
-#define RTE_USART3_CK_PORT GPIOB
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 1)
-#define RTE_USART3_CK_PORT GPIOC
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 2)
-#define RTE_USART3_CK_PORT GPIOD
-#define RTE_USART3_CK_BIT 10
-#else
-#error "Invalid USART3_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART3_CTS Pin <0=>PB13 <1=>PD11
-// USART3_RTS Pin <0=>PB14 <1=>PD12
-// Manual CTS/RTS
-//
-#define RTE_USART3_HW_FLOW 0
-#define RTE_USART3_CTS_ID 0
-#define RTE_USART3_RTS_ID 0
-#define RTE_USART3_MANUAL_FLOW 0
-#if (RTE_USART3_CTS_ID == 0)
-#define RTE_USART3_CTS_PORT GPIOB
-#define RTE_USART3_CTS_BIT 13
-#elif (RTE_USART3_CTS_ID == 1)
-#define RTE_USART3_CTS_PORT GPIOD
-#define RTE_USART3_CTS_BIT 11
-#else
-#error "Invalid USART3_CTS Pin Configuration!"
-#endif
-#if (RTE_USART3_RTS_ID == 0)
-#define RTE_USART3_RTS_PORT GPIOB
-#define RTE_USART3_RTS_BIT 14
-#elif (RTE_USART3_RTS_ID == 1)
-#define RTE_USART3_RTS_PORT GPIOD
-#define RTE_USART3_RTS_BIT 12
-#else
-#error "Invalid USART3_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <1=>1
-// Selects DMA Stream (only Stream 1 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_RX_DMA 1
-#define RTE_USART3_RX_DMA_NUMBER 1
-#define RTE_USART3_RX_DMA_STREAM 1
-#define RTE_USART3_RX_DMA_CHANNEL 4
-#define RTE_USART3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_TX_DMA 1
-#define RTE_USART3_TX_DMA_NUMBER 1
-#define RTE_USART3_TX_DMA_STREAM 3
-#define RTE_USART3_TX_DMA_CHANNEL 4
-#define RTE_USART3_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART4 (Universal asynchronous receiver transmitter) [Driver_UART4]
-// Configuration settings for Driver_UART4 in component ::Drivers:UART
-#define RTE_UART4 0
-
-// UART4_TX Pin <0=>PA0 <1=>PC10
-#define RTE_UART4_TX_ID 0
-#if (RTE_UART4_TX_ID == 0)
-#define RTE_UART4_TX_PORT GPIOA
-#define RTE_UART4_TX_BIT 0
-#elif (RTE_UART4_TX_ID == 1)
-#define RTE_UART4_TX_PORT GPIOC
-#define RTE_UART4_TX_BIT 10
-#else
-#error "Invalid UART4_TX Pin Configuration!"
-#endif
-
-// UART4_RX Pin <0=>PA1 <1=>PC11
-#define RTE_UART4_RX_ID 0
-#if (RTE_UART4_RX_ID == 0)
-#define RTE_UART4_RX_PORT GPIOA
-#define RTE_UART4_RX_BIT 1
-#elif (RTE_UART4_RX_ID == 1)
-#define RTE_UART4_RX_PORT GPIOC
-#define RTE_UART4_RX_BIT 11
-#else
-#error "Invalid UART4_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_RX_DMA 1
-#define RTE_UART4_RX_DMA_NUMBER 1
-#define RTE_UART4_RX_DMA_STREAM 2
-#define RTE_UART4_RX_DMA_CHANNEL 4
-#define RTE_UART4_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_TX_DMA 1
-#define RTE_UART4_TX_DMA_NUMBER 1
-#define RTE_UART4_TX_DMA_STREAM 4
-#define RTE_UART4_TX_DMA_CHANNEL 4
-#define RTE_UART4_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART5 (Universal asynchronous receiver transmitter) [Driver_UART5]
-// Configuration settings for Driver_UART5 in component ::Drivers:UART
-#define RTE_UART5 0
-
-// UART5_TX Pin <0=>PC12
-#define RTE_UART5_TX_ID 0
-#if (RTE_UART5_TX_ID == 0)
-#define RTE_UART5_TX_PORT GPIOC
-#define RTE_UART5_TX_BIT 12
-#else
-#error "Invalid UART5_TX Pin Configuration!"
-#endif
-
-// UART5_RX Pin <0=>PD2
-#define RTE_UART5_RX_ID 0
-#if (RTE_UART5_RX_ID == 0)
-#define RTE_UART5_RX_PORT GPIOD
-#define RTE_UART5_RX_BIT 2
-#else
-#error "Invalid UART5_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0
-// Selects DMA Stream (only Stream 0 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_RX_DMA 1
-#define RTE_UART5_RX_DMA_NUMBER 1
-#define RTE_UART5_RX_DMA_STREAM 0
-#define RTE_UART5_RX_DMA_CHANNEL 4
-#define RTE_UART5_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_TX_DMA 1
-#define RTE_UART5_TX_DMA_NUMBER 1
-#define RTE_UART5_TX_DMA_STREAM 7
-#define RTE_UART5_TX_DMA_CHANNEL 4
-#define RTE_UART5_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART6 (Universal synchronous asynchronous receiver transmitter) [Driver_UART6]
-// Configuration settings for Driver_UART6 in component ::Drivers:UART
-#define RTE_USART6 0
-
-// USART6_TX Pin <0=>PC6 <1=>PG14
-#define RTE_USART6_TX_ID 0
-#if (RTE_USART6_TX_ID == 0)
-#define RTE_USART6_TX_PORT GPIOC
-#define RTE_USART6_TX_BIT 6
-#elif (RTE_USART6_TX_ID == 1)
-#define RTE_USART6_TX_PORT GPIOG
-#define RTE_USART6_TX_BIT 14
-#else
-#error "Invalid USART6_TX Pin Configuration!"
-#endif
-
-// USART6_RX Pin <0=>PC7 <1=>PG9
-#define RTE_USART6_RX_ID 0
-#if (RTE_USART6_RX_ID == 0)
-#define RTE_USART6_RX_PORT GPIOC
-#define RTE_USART6_RX_BIT 7
-#elif (RTE_USART6_RX_ID == 1)
-#define RTE_USART6_RX_PORT GPIOG
-#define RTE_USART6_RX_BIT 9
-#else
-#error "Invalid USART6_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART6_CK Pin <0=>PC8 <1=>PG7
-//
-#define RTE_USART6_CK 0
-#define RTE_USART6_CK_ID 0
-#if (RTE_USART6_CK_ID == 0)
-#define RTE_USART6_CK_PORT GPIOC
-#define RTE_USART6_CK_BIT 8
-#elif (RTE_USART6_CK_ID == 1)
-#define RTE_USART6_CK_PORT GPIOG
-#define RTE_USART6_CK_BIT 7
-#else
-#error "Invalid USART6_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART6_CTS Pin <0=>PG13 <1=>PG15
-// USART6_RTS Pin <0=>PG8 <1=>PG12
-// Manual CTS/RTS
-//
-#define RTE_USART6_HW_FLOW 0
-#define RTE_USART6_CTS_ID 0
-#define RTE_USART6_RTS_ID 0
-#define RTE_USART6_MANUAL_FLOW 0
-#if (RTE_USART6_CTS_ID == 0)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 13
-#elif (RTE_USART6_CTS_ID == 1)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 15
-#else
-#error "Invalid USART6_CTS Pin Configuration!"
-#endif
-#if (RTE_USART6_RTS_ID == 0)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 8
-#elif (RTE_USART6_RTS_ID == 1)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 12
-#else
-#error "Invalid USART6_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <1=>1 <2=>2
-// Selects DMA Stream (only Stream 1 or 2 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_RX_DMA 1
-#define RTE_USART6_RX_DMA_NUMBER 2
-#define RTE_USART6_RX_DMA_STREAM 1
-#define RTE_USART6_RX_DMA_CHANNEL 5
-#define RTE_USART6_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_TX_DMA 1
-#define RTE_USART6_TX_DMA_NUMBER 2
-#define RTE_USART6_TX_DMA_STREAM 6
-#define RTE_USART6_TX_DMA_CHANNEL 5
-#define RTE_USART6_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C1 (Inter-integrated Circuit Interface 1) [Driver_I2C1]
-// Configuration settings for Driver_I2C1 in component ::Drivers:I2C
-#define RTE_I2C1 0
-
-// I2C1_SCL Pin <0=>PB6 <1=>PB8
-#define RTE_I2C1_SCL_PORT_ID 0
-#if (RTE_I2C1_SCL_PORT_ID == 0)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 6
-#elif (RTE_I2C1_SCL_PORT_ID == 1)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 8
-#else
-#error "Invalid I2C1_SCL Pin Configuration!"
-#endif
-
-// I2C1_SDA Pin <0=>PB7 <1=>PB9
-#define RTE_I2C1_SDA_PORT_ID 0
-#if (RTE_I2C1_SDA_PORT_ID == 0)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 7
-#elif (RTE_I2C1_SDA_PORT_ID == 1)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 9
-#else
-#error "Invalid I2C1_SDA Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <5=>5
-// Selects DMA Stream (only Stream 0 or 5 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_RX_DMA 1
-#define RTE_I2C1_RX_DMA_NUMBER 1
-#define RTE_I2C1_RX_DMA_STREAM 0
-#define RTE_I2C1_RX_DMA_CHANNEL 1
-#define RTE_I2C1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_TX_DMA 1
-#define RTE_I2C1_TX_DMA_NUMBER 1
-#define RTE_I2C1_TX_DMA_STREAM 6
-#define RTE_I2C1_TX_DMA_CHANNEL 1
-#define RTE_I2C1_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C2 (Inter-integrated Circuit Interface 2) [Driver_I2C2]
-// Configuration settings for Driver_I2C2 in component ::Drivers:I2C
-#define RTE_I2C2 0
-
-// I2C2_SCL Pin <0=>PF1 <1=>PH4 <2=>PB10
-#define RTE_I2C2_SCL_PORT_ID 0
-#if (RTE_I2C2_SCL_PORT_ID == 0)
-#define RTE_I2C2_SCL_PORT GPIOF
-#define RTE_I2C2_SCL_BIT 1
-#elif (RTE_I2C2_SCL_PORT_ID == 1)
-#define RTE_I2C2_SCL_PORT GPIOH
-#define RTE_I2C2_SCL_BIT 4
-#elif (RTE_I2C2_SCL_PORT_ID == 2)
-#define RTE_I2C2_SCL_PORT GPIOB
-#define RTE_I2C2_SCL_BIT 10
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// I2C2_SDA Pin <0=>PF0 <1=>PH5 <2=>PB11
-#define RTE_I2C2_SDA_PORT_ID 0
-#if (RTE_I2C2_SDA_PORT_ID == 0)
-#define RTE_I2C2_SDA_PORT GPIOF
-#define RTE_I2C2_SDA_BIT 0
-#elif (RTE_I2C2_SDA_PORT_ID == 1)
-#define RTE_I2C2_SDA_PORT GPIOH
-#define RTE_I2C2_SDA_BIT 5
-#elif (RTE_I2C2_SDA_PORT_ID == 2)
-#define RTE_I2C2_SDA_PORT GPIOB
-#define RTE_I2C2_SDA_BIT 11
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2 <3=>3
-// Selects DMA Stream (only Stream 2 or 3 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 7 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_RX_DMA 1
-#define RTE_I2C2_RX_DMA_NUMBER 1
-#define RTE_I2C2_RX_DMA_STREAM 2
-#define RTE_I2C2_RX_DMA_CHANNEL 7
-#define RTE_I2C2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_TX_DMA 1
-#define RTE_I2C2_TX_DMA_NUMBER 1
-#define RTE_I2C2_TX_DMA_STREAM 7
-#define RTE_I2C2_TX_DMA_CHANNEL 7
-#define RTE_I2C2_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C3 (Inter-integrated Circuit Interface 3) [Driver_I2C3]
-// Configuration settings for Driver_I2C3 in component ::Drivers:I2C
-#define RTE_I2C3 0
-
-// I2C3_SCL Pin <0=>PH7 <1=>PA8
-#define RTE_I2C3_SCL_PORT_ID 0
-#if (RTE_I2C3_SCL_PORT_ID == 0)
-#define RTE_I2C3_SCL_PORT GPIOH
-#define RTE_I2C3_SCL_BIT 7
-#elif (RTE_I2C3_SCL_PORT_ID == 1)
-#define RTE_I2C3_SCL_PORT GPIOA
-#define RTE_I2C3_SCL_BIT 8
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// I2C3_SDA Pin <0=>PH8 <1=>PC9
-#define RTE_I2C3_SDA_PORT_ID 0
-#if (RTE_I2C3_SDA_PORT_ID == 0)
-#define RTE_I2C3_SDA_PORT GPIOH
-#define RTE_I2C3_SDA_BIT 8
-#elif (RTE_I2C3_SDA_PORT_ID == 1)
-#define RTE_I2C3_SDA_PORT GPIOC
-#define RTE_I2C3_SDA_BIT 9
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_RX_DMA 1
-#define RTE_I2C3_RX_DMA_NUMBER 1
-#define RTE_I2C3_RX_DMA_STREAM 2
-#define RTE_I2C3_RX_DMA_CHANNEL 3
-#define RTE_I2C3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_TX_DMA 1
-#define RTE_I2C3_TX_DMA_NUMBER 1
-#define RTE_I2C3_TX_DMA_STREAM 4
-#define RTE_I2C3_TX_DMA_CHANNEL 3
-#define RTE_I2C3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI1 (Serial Peripheral Interface 1) [Driver_SPI1]
-// Configuration settings for Driver_SPI1 in component ::Drivers:SPI
-#define RTE_SPI1 0
-
-// SPI1_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI1_NSS_PIN 1
-#define RTE_SPI1_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI1_NSS_BIT 4
-
-// SPI1_SCK Pin <0=>PA5 <1=>PB3
-#define RTE_SPI1_SCL_PORT_ID 0
-#if (RTE_SPI1_SCL_PORT_ID == 0)
-#define RTE_SPI1_SCL_PORT GPIOA
-#define RTE_SPI1_SCL_BIT 5
-#elif (RTE_SPI1_SCL_PORT_ID == 1)
-#define RTE_SPI1_SCL_PORT GPIOB
-#define RTE_SPI1_SCL_BIT 3
-#else
-#error "Invalid SPI1_SCK Pin Configuration!"
-#endif
-
-// SPI1_MISO Pin <0=>PA6 <1=>PB4
-#define RTE_SPI1_MISO_PORT_ID 0
-#if (RTE_SPI1_MISO_PORT_ID == 0)
-#define RTE_SPI1_MISO_PORT GPIOA
-#define RTE_SPI1_MISO_BIT 6
-#elif (RTE_SPI1_MISO_PORT_ID == 1)
-#define RTE_SPI1_MISO_PORT GPIOB
-#define RTE_SPI1_MISO_BIT 4
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// SPI1_MOSI Pin <0=>PA7 <1=>PB5
-#define RTE_SPI1_MOSI_PORT_ID 0
-#if (RTE_SPI1_MOSI_PORT_ID == 0)
-#define RTE_SPI1_MOSI_PORT GPIOA
-#define RTE_SPI1_MOSI_BIT 7
-#elif (RTE_SPI1_MOSI_PORT_ID == 1)
-#define RTE_SPI1_MOSI_PORT GPIOB
-#define RTE_SPI1_MOSI_BIT 5
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_RX_DMA 1
-#define RTE_SPI1_RX_DMA_NUMBER 2
-#define RTE_SPI1_RX_DMA_STREAM 0
-#define RTE_SPI1_RX_DMA_CHANNEL 3
-#define RTE_SPI1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <5=>5
-// Selects DMA Stream (only Stream 3 or 5 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_TX_DMA 1
-#define RTE_SPI1_TX_DMA_NUMBER 2
-#define RTE_SPI1_TX_DMA_STREAM 5
-#define RTE_SPI1_TX_DMA_CHANNEL 3
-#define RTE_SPI1_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI2 (Serial Peripheral Interface 2) [Driver_SPI2]
-// Configuration settings for Driver_SPI2 in component ::Drivers:SPI
-#define RTE_SPI2 0
-
-// SPI2_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI2_NSS_PIN 1
-#define RTE_SPI2_NSS_PORT GPIO_PORT(1)
-#define RTE_SPI2_NSS_BIT 12
-
-// SPI2_SCK Pin <0=>PB10 <1=>PB13 <2=>PI1
-#define RTE_SPI2_SCL_PORT_ID 0
-#if (RTE_SPI2_SCL_PORT_ID == 0)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 10
-#elif (RTE_SPI2_SCL_PORT_ID == 1)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 13
-#elif (RTE_SPI2_SCL_PORT_ID == 2)
-#define RTE_SPI2_SCL_PORT GPIOI
-#define RTE_SPI2_SCL_BIT 1
-#else
-#error "Invalid SPI2_SCK Pin Configuration!"
-#endif
-
-// SPI2_MISO Pin <0=>PB14 <1=>PC2 <2=>PI2
-#define RTE_SPI2_MISO_PORT_ID 0
-#if (RTE_SPI2_MISO_PORT_ID == 0)
-#define RTE_SPI2_MISO_PORT GPIOB
-#define RTE_SPI2_MISO_BIT 14
-#elif (RTE_SPI2_MISO_PORT_ID == 1)
-#define RTE_SPI2_MISO_PORT GPIOC
-#define RTE_SPI2_MISO_BIT 2
-#elif (RTE_SPI2_MISO_PORT_ID == 2)
-#define RTE_SPI2_MISO_PORT GPIOI
-#define RTE_SPI2_MISO_BIT 2
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// SPI2_MOSI Pin <0=>PB15 <1=>PC3 <2=>OI3
-#define RTE_SPI2_MOSI_PORT_ID 0
-#if (RTE_SPI2_MOSI_PORT_ID == 0)
-#define RTE_SPI2_MOSI_PORT GPIOB
-#define RTE_SPI2_MOSI_BIT 15
-#elif (RTE_SPI2_MOSI_PORT_ID == 1)
-#define RTE_SPI2_MOSI_PORT GPIOC
-#define RTE_SPI2_MOSI_BIT 3
-#elif (RTE_SPI2_MOSI_PORT_ID == 2)
-#define RTE_SPI2_MOSI_PORT GPIOI
-#define RTE_SPI2_MOSI_BIT 3
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_RX_DMA 1
-#define RTE_SPI2_RX_DMA_NUMBER 1
-#define RTE_SPI2_RX_DMA_STREAM 2
-#define RTE_SPI2_RX_DMA_CHANNEL 0
-#define RTE_SPI2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_TX_DMA 1
-#define RTE_SPI2_TX_DMA_NUMBER 1
-#define RTE_SPI2_TX_DMA_STREAM 3
-#define RTE_SPI2_TX_DMA_CHANNEL 0
-#define RTE_SPI2_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI3 (Serial Peripheral Interface 3) [Driver_SPI3]
-// Configuration settings for Driver_SPI3 in component ::Drivers:SPI
-#define RTE_SPI3 0
-
-// SPI3_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI3_NSS_PIN 1
-#define RTE_SPI3_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI3_NSS_BIT 15
-
-// SPI3_SCK Pin <0=>PB3 <1=>PC10
-#define RTE_SPI3_SCL_PORT_ID 0
-#if (RTE_SPI3_SCL_PORT_ID == 0)
-#define RTE_SPI3_SCL_PORT GPIOB
-#define RTE_SPI3_SCL_BIT 3
-#elif (RTE_SPI3_SCL_PORT_ID == 1)
-#define RTE_SPI3_SCL_PORT GPIOC
-#define RTE_SPI3_SCL_BIT 10
-#else
-#error "Invalid SPI3_SCK Pin Configuration!"
-#endif
-
-// SPI3_MISO Pin <0=>PB4 <1=>PC11
-#define RTE_SPI3_MISO_PORT_ID 0
-#if (RTE_SPI3_MISO_PORT_ID == 0)
-#define RTE_SPI3_MISO_PORT GPIOB
-#define RTE_SPI3_MISO_BIT 4
-#elif (RTE_SPI3_MISO_PORT_ID == 1)
-#define RTE_SPI3_MISO_PORT GPIOC
-#define RTE_SPI3_MISO_BIT 11
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// SPI3_MOSI Pin <0=>PB5 <1=>PC12
-#define RTE_SPI3_MOSI_PORT_ID 0
-#if (RTE_SPI3_MOSI_PORT_ID == 0)
-#define RTE_SPI3_MOSI_PORT GPIOB
-#define RTE_SPI3_MOSI_BIT 5
-#elif (RTE_SPI3_MOSI_PORT_ID == 1)
-#define RTE_SPI3_MOSI_PORT GPIOC
-#define RTE_SPI3_MOSI_BIT 12
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_RX_DMA 1
-#define RTE_SPI3_RX_DMA_NUMBER 1
-#define RTE_SPI3_RX_DMA_STREAM 0
-#define RTE_SPI3_RX_DMA_CHANNEL 0
-#define RTE_SPI3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5 <7=>7
-// Selects DMA Stream (only Stream 5 or 7 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_TX_DMA 1
-#define RTE_SPI3_TX_DMA_NUMBER 1
-#define RTE_SPI3_TX_DMA_STREAM 5
-#define RTE_SPI3_TX_DMA_CHANNEL 0
-#define RTE_SPI3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SDIO (Secure Digital Input/Output) [Driver_MCI0]
-// Configuration settings for Driver_MCI0 in component ::Drivers:MCI
-#define RTE_SDIO 1
-
-// SDIO_CD (Card Detect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_CD_PIN 1
-#define RTE_SDIO_CD_ACTIVE 0
-#define RTE_SDIO_CD_PORT GPIO_PORT(7)
-#define RTE_SDIO_CD_BIT 15
-
-// SDIO_WP (Write Protect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_WP_PIN 0
-#define RTE_SDIO_WP_ACTIVE 0
-#define RTE_SDIO_WP_PORT GPIO_PORT(7)
-#define RTE_SDIO_WP_BIT 16
-
-// SDIO Bus
-// SDIO_CK Pin <0=>PC12
-#define RTE_SDIO_CK_PORT_ID 0
-#if (RTE_SDIO_CK_PORT_ID == 0)
-#define RTE_SDIO_CK_PORT GPIOC
-#define RTE_SDIO_CK_PIN 12
-#else
-#error "Invalid SDIO_CK Pin Configuration!"
-#endif
-// SDIO_CMD Pin <0=>PD2
-#define RTE_SDIO_CMD_PORT_ID 0
-#if (RTE_SDIO_CMD_PORT_ID == 0)
-#define RTE_SDIO_CMD_PORT GPIOD
-#define RTE_SDIO_CMD_PIN 2
-#else
-#error "Invalid SDIO_CDM Pin Configuration!"
-#endif
-// SDIO_D0 Pin <0=>PC8
-#define RTE_SDIO_D0_PORT_ID 0
-#if (RTE_SDIO_D0_PORT_ID == 0)
-#define RTE_SDIO_D0_PORT GPIOC
-#define RTE_SDIO_D0_PIN 8
-#else
-#error "Invalid SDIO_D0 Pin Configuration!"
-#endif
-// SDIO_D1 Pin <0=>PC9
-#define RTE_SDIO_D1_PORT_ID 0
-#if (RTE_SDIO_D1_PORT_ID == 0)
-#define RTE_SDIO_D1_PORT GPIOC
-#define RTE_SDIO_D1_PIN 9
-#else
-#error "Invalid SDIO_D1 Pin Configuration!"
-#endif
-// SDIO_D2 Pin <0=>PC10
-#define RTE_SDIO_D2_PORT_ID 0
-#if (RTE_SDIO_D2_PORT_ID == 0)
-#define RTE_SDIO_D2_PORT GPIOC
-#define RTE_SDIO_D2_PIN 10
-#else
-#error "Invalid SDIO_D2 Pin Configuration!"
-#endif
-// SDIO_D3 Pin <0=>PC11
-#define RTE_SDIO_D3_PORT_ID 0
-#if (RTE_SDIO_D3_PORT_ID == 0)
-#define RTE_SDIO_D3_PORT GPIOC
-#define RTE_SDIO_D3_PIN 11
-#else
-#error "Invalid SDIO_D3 Pin Configuration!"
-#endif
-// SDIO_D4 Pin <0=>PB8
-#define RTE_SDIO_D4_PORT_ID 0
-#if (RTE_SDIO_D4_PORT_ID == 0)
-#define RTE_SDIO_D4_PORT GPIOB
-#define RTE_SDIO_D4_PIN 8
-#else
-#error "Invalid SDIO_D4 Pin Configuration!"
-#endif
-// SDIO_D5 Pin <0=>PB9
-#define RTE_SDIO_D5_PORT_ID 0
-#if (RTE_SDIO_D5_PORT_ID == 0)
-#define RTE_SDIO_D5_PORT GPIOB
-#define RTE_SDIO_D5_PIN 9
-#else
-#error "Invalid SDIO_D5 Pin Configuration!"
-#endif
-// SDIO_D6 Pin <0=>PC6
-#define RTE_SDIO_D6_PORT_ID 0
-#if (RTE_SDIO_D6_PORT_ID == 0)
-#define RTE_SDIO_D6_PORT GPIOC
-#define RTE_SDIO_D6_PIN 6
-#else
-#error "Invalid SDIO_D6 Pin Configuration!"
-#endif
-// SDIO_D7 Pin <0=>PC7
-#define RTE_SDIO_D7_PORT_ID 0
-#if (RTE_SDIO_D7_PORT_ID == 0)
-#define RTE_SDIO_D7_PORT GPIOC
-#define RTE_SDIO_D7_PIN 7
-#else
-#error "Invalid SDIO_D7 Pin Configuration!"
-#endif
-//
-
-// DMA
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <6=>6
-// Selects DMA Stream (only Stream 3 or 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SDIO_DMA 1
-#define RTE_SDIO_DMA_NUMBER 2
-#define RTE_SDIO_DMA_STREAM 3
-#define RTE_SDIO_DMA_CHANNEL 4
-#define RTE_SDIO_DMA_PRIORITY 0
-
-//
-
-
-// ETH (Ethernet Interface) [Driver_ETH_MAC0]
-// Configuration settings for Driver_ETH_MAC0 in component ::Drivers:Ethernet MAC
-#define RTE_ETH 1
-
-// MII (Media Independent Interface)
-#define RTE_ETH_MII 0
-
-// ETH_MII_TX_CLK Pin <0=>PC3
-#define RTE_ETH_MII_TX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_TX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_TX_CLK_PORT GPIOC
-#define RTE_ETH_MII_TX_CLK_PIN 3
-#else
-#error "Invalid ETH_MII_TX_CLK Pin Configuration!"
-#endif
-// ETH_MII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_MII_TXD0_PORT_ID 0
-#if (RTE_ETH_MII_TXD0_PORT_ID == 0)
-#define RTE_ETH_MII_TXD0_PORT GPIOB
-#define RTE_ETH_MII_TXD0_PIN 12
-#elif (RTE_ETH_MII_TXD0_PORT_ID == 1)
-#define RTE_ETH_MII_TXD0_PORT GPIOG
-#define RTE_ETH_MII_TXD0_PIN 13
-#else
-#error "Invalid ETH_MII_TXD0 Pin Configuration!"
-#endif
-// ETH_MII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_MII_TXD1_PORT_ID 0
-#if (RTE_ETH_MII_TXD1_PORT_ID == 0)
-#define RTE_ETH_MII_TXD1_PORT GPIOB
-#define RTE_ETH_MII_TXD1_PIN 13
-#elif (RTE_ETH_MII_TXD1_PORT_ID == 1)
-#define RTE_ETH_MII_TXD1_PORT GPIOG
-#define RTE_ETH_MII_TXD1_PIN 14
-#else
-#error "Invalid ETH_MII_TXD1 Pin Configuration!"
-#endif
-// ETH_MII_TXD2 Pin <0=>PC2
-#define RTE_ETH_MII_TXD2_PORT_ID 0
-#if (RTE_ETH_MII_TXD2_PORT_ID == 0)
-#define RTE_ETH_MII_TXD2_PORT GPIOC
-#define RTE_ETH_MII_TXD2_PIN 2
-#else
-#error "Invalid ETH_MII_TXD2 Pin Configuration!"
-#endif
-// ETH_MII_TXD3 Pin <0=>PB8 <1=>PE2
-#define RTE_ETH_MII_TXD3_PORT_ID 0
-#if (RTE_ETH_MII_TXD3_PORT_ID == 0)
-#define RTE_ETH_MII_TXD3_PORT GPIOB
-#define RTE_ETH_MII_TXD3_PIN 8
-#elif (RTE_ETH_MII_TXD3_PORT_ID == 1)
-#define RTE_ETH_MII_TXD3_PORT GPIOE
-#define RTE_ETH_MII_TXD3_PIN 2
-#else
-#error "Invalid ETH_MII_TXD3 Pin Configuration!"
-#endif
-// ETH_MII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_MII_TX_EN_PORT_ID 0
-#if (RTE_ETH_MII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_MII_TX_EN_PORT GPIOB
-#define RTE_ETH_MII_TX_EN_PIN 11
-#elif (RTE_ETH_MII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_MII_TX_EN_PORT GPIOG
-#define RTE_ETH_MII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_MII_TX_EN Pin Configuration!"
-#endif
-// ETH_MII_RX_CLK Pin <0=>PA1
-#define RTE_ETH_MII_RX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_RX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_RX_CLK_PORT GPIOA
-#define RTE_ETH_MII_RX_CLK_PIN 1
-#else
-#error "Invalid ETH_MII_RX_CLK Pin Configuration!"
-#endif
-// ETH_MII_RXD0 Pin <0=>PC4
-#define RTE_ETH_MII_RXD0_PORT_ID 0
-#if (RTE_ETH_MII_RXD0_PORT_ID == 0)
-#define RTE_ETH_MII_RXD0_PORT GPIOC
-#define RTE_ETH_MII_RXD0_PIN 4
-#else
-#error "Invalid ETH_MII_RXD0 Pin Configuration!"
-#endif
-// ETH_MII_RXD1 Pin <0=>PC5
-#define RTE_ETH_MII_RXD1_PORT_ID 0
-#if (RTE_ETH_MII_RXD1_PORT_ID == 0)
-#define RTE_ETH_MII_RXD1_PORT GPIOC
-#define RTE_ETH_MII_RXD1_PIN 5
-#else
-#error "Invalid ETH_MII_RXD1 Pin Configuration!"
-#endif
-// ETH_MII_RXD2 Pin <0=>PB0 <1=>PH6
-#define RTE_ETH_MII_RXD2_PORT_ID 0
-#if (RTE_ETH_MII_RXD2_PORT_ID == 0)
-#define RTE_ETH_MII_RXD2_PORT GPIOB
-#define RTE_ETH_MII_RXD2_PIN 0
-#elif (RTE_ETH_MII_RXD2_PORT_ID == 1)
-#define RTE_ETH_MII_RXD2_PORT GPIOH
-#define RTE_ETH_MII_RXD2_PIN 6
-#else
-#error "Invalid ETH_MII_RXD2 Pin Configuration!"
-#endif
-// ETH_MII_RXD3 Pin <0=>PB1 <1=>PH7
-#define RTE_ETH_MII_RXD3_PORT_ID 0
-#if (RTE_ETH_MII_RXD3_PORT_ID == 0)
-#define RTE_ETH_MII_RXD3_PORT GPIOB
-#define RTE_ETH_MII_RXD3_PIN 1
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RXD3_PORT GPIOH
-#define RTE_ETH_MII_RXD3_PIN 7
-#else
-#error "Invalid ETH_MII_RXD3 Pin Configuration!"
-#endif
-// ETH_MII_RX_DV Pin <0=>PA7
-#define RTE_ETH_MII_RX_DV_PORT_ID 0
-#if (RTE_ETH_MII_RX_DV_PORT_ID == 0)
-#define RTE_ETH_MII_RX_DV_PORT GPIOA
-#define RTE_ETH_MII_RX_DV_PIN 7
-#else
-#error "Invalid ETH_MII_RX_DV Pin Configuration!"
-#endif
-// ETH_MII_RX_ER Pin <0=>PB10 <1=>PI10
-#define RTE_ETH_MII_RX_ER_PORT_ID 0
-#if (RTE_ETH_MII_RX_ER_PORT_ID == 0)
-#define RTE_ETH_MII_RX_ER_PORT GPIOB
-#define RTE_ETH_MII_RX_ER_PIN 10
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RX_ER_PORT GPIOI
-#define RTE_ETH_MII_RX_ER_PIN 10
-#else
-#error "Invalid ETH_MII_RX_ER Pin Configuration!"
-#endif
-// ETH_MII_CRS Pin <0=>PA0 <1=>PH2
-#define RTE_ETH_MII_CRS_PORT_ID 0
-#if (RTE_ETH_MII_CRS_PORT_ID == 0)
-#define RTE_ETH_MII_CRS_PORT GPIOA
-#define RTE_ETH_MII_CRS_PIN 0
-#elif (RTE_ETH_MII_CRS_PORT_ID == 1)
-#define RTE_ETH_MII_CRS_PORT GPIOH
-#define RTE_ETH_MII_CRS_PIN 2
-#else
-#error "Invalid ETH_MII_CRS Pin Configuration!"
-#endif
-// ETH_MII_COL Pin <0=>PA3 <1=>PH3
-#define RTE_ETH_MII_COL_PORT_ID 0
-#if (RTE_ETH_MII_COL_PORT_ID == 0)
-#define RTE_ETH_MII_COL_PORT GPIOA
-#define RTE_ETH_MII_COL_PIN 3
-#elif (RTE_ETH_MII_COL_PORT_ID == 1)
-#define RTE_ETH_MII_COL_PORT GPIOH
-#define RTE_ETH_MII_COL_PIN 3
-#else
-#error "Invalid ETH_MII_COL Pin Configuration!"
-#endif
-
-//
-
-// RMII (Reduced Media Independent Interface)
-#define RTE_ETH_RMII 1
-
-// ETH_RMII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_RMII_TXD0_PORT_ID 1
-#if (RTE_ETH_RMII_TXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD0_PORT GPIOB
-#define RTE_ETH_RMII_TXD0_PIN 12
-#elif (RTE_ETH_RMII_TXD0_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD0_PORT GPIOG
-#define RTE_ETH_RMII_TXD0_PIN 13
-#else
-#error "Invalid ETH_RMII_TXD0 Pin Configuration!"
-#endif
-// ETH_RMII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_RMII_TXD1_PORT_ID 1
-#if (RTE_ETH_RMII_TXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD1_PORT GPIOB
-#define RTE_ETH_RMII_TXD1_PIN 13
-#elif (RTE_ETH_RMII_TXD1_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD1_PORT GPIOG
-#define RTE_ETH_RMII_TXD1_PIN 14
-#else
-#error "Invalid ETH_RMII_TXD1 Pin Configuration!"
-#endif
-// ETH_RMII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_RMII_TX_EN_PORT_ID 1
-#if (RTE_ETH_RMII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOB
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#elif (RTE_ETH_RMII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOG
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_RMII_TX_EN Pin Configuration!"
-#endif
-// ETH_RMII_RXD0 Pin <0=>PC4
-#define RTE_ETH_RMII_RXD0_PORT_ID 0
-#if (RTE_ETH_RMII_RXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD0_PORT GPIOC
-#define RTE_ETH_RMII_RXD0_PIN 4
-#else
-#error "Invalid ETH_RMII_RXD0 Pin Configuration!"
-#endif
-// ETH_RMII_RXD1 Pin <0=>PC5
-#define RTE_ETH_RMII_RXD1_PORT_ID 0
-#if (RTE_ETH_RMII_RXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD1_PORT GPIOC
-#define RTE_ETH_RMII_RXD1_PIN 5
-#else
-#error "Invalid ETH_RMII_RXD1 Pin Configuration!"
-#endif
-// ETH_RMII_REF_CLK Pin <0=>PA1
-#define RTE_ETH_RMII_REF_CLK_PORT_ID 0
-#if (RTE_ETH_RMII_REF_CLK_PORT_ID == 0)
-#define RTE_ETH_RMII_REF_CLK_PORT GPIOA
-#define RTE_ETH_RMII_REF_CLK_PIN 1
-#else
-#error "Invalid ETH_RMII_REF_CLK Pin Configuration!"
-#endif
-// ETH_RMII_CRS_DV Pin <0=>PA7
-#define RTE_ETH_RMII_CRS_DV_PORT_ID 0
-#if (RTE_ETH_RMII_CRS_DV_PORT_ID == 0)
-#define RTE_ETH_RMII_CRS_DV_PORT GPIOA
-#define RTE_ETH_RMII_CRS_DV_PIN 7
-#else
-#error "Invalid ETH_RMII_CRS_DV Pin Configuration!"
-#endif
-
-//
-
-// Management Data Interface
-// ETH_MDC Pin <0=>PC1
-#define RTE_ETH_MDI_MDC_PORT_ID 0
-#if (RTE_ETH_MDI_MDC_PORT_ID == 0)
-#define RTE_ETH_MDI_MDC_PORT GPIOC
-#define RTE_ETH_MDI_MDC_PIN 1
-#else
-#error "Invalid ETH_MDC Pin Configuration!"
-#endif
-// ETH_MDIO Pin <0=>PA2
-#define RTE_ETH_MDI_MDIO_PORT_ID 0
-#if (RTE_ETH_MDI_MDIO_PORT_ID == 0)
-#define RTE_ETH_MDI_MDIO_PORT GPIOA
-#define RTE_ETH_MDI_MDIO_PIN 2
-#else
-#error "Invalid ETH_MDIO Pin Configuration!"
-#endif
-//
-
-// Reference 25MHz/50MHz Clock generation
-#define RTE_ETH_REF_CLOCK 0
-
-// MCO Pin <0=>PA2 <1=>PC9
-#define RTE_ETH_REF_CLOCK_PORT_ID 0
-#if (RTE_ETH_REF_CLOCK_PORT_ID == 0)
-#define RTE_ETH_REF_CLOCK_PORT GPIOA
-#define RTE_ETH_REF_CLOCK_PIN 8
-#elif (RTE_ETH_REF_CLOCK_PORT_ID == 1)
-#define RTE_ETH_REF_CLOCK_PORT GPIOC
-#define RTE_ETH_REF_CLOCK_PIN 9
-#else
-#error "Invalid MCO Pin Configuration!"
-#endif
-
-//
-
-//
-
-
-// USB OTG Full-speed
-#define RTE_USB_OTG_FS 0
-
-// Device [Driver_USBD0]
-// Configuration settings for Driver_USBD0 in component ::Drivers:USB Device
-#define RTE_USB_OTG_FS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_FS_DEV_EP 0x0000000F
-#define RTE_USB_OTG_FS_DEV_EP_BULK 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_INT 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_ISO 0x000E000E
-
-//
-
-// Host [Driver_USBH0]
-// Configuration settings for Driver_USBH0 in component ::Drivers:USB Host
-
-#define RTE_USB_OTG_FS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_VBUS_PIN 1
-#define RTE_OTG_FS_VBUS_ACTIVE 0
-#define RTE_OTG_FS_VBUS_PORT GPIO_PORT(7)
-#define RTE_OTG_FS_VBUS_BIT 5
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_OC_PIN 1
-#define RTE_OTG_FS_OC_ACTIVE 0
-#define RTE_OTG_FS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_FS_OC_BIT 11
-//
-
-//
-
-
-// USB OTG High-speed
-#define RTE_USB_OTG_HS 0
-
-// PHY (Physical Layer)
-
-// PHY Interface
-// <0=>On-chip full-speed PHY
-// <1=>External ULPI high-speed PHY
-#define RTE_USB_OTG_HS_PHY 1
-
-// External ULPI Pins (UTMI+ Low Pin Interface)
-
-// OTG_HS_ULPI_CK Pin <0=>PA5
-#define RTE_USB_OTG_HS_ULPI_CK_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_CK_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_CK_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_CK_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_CK Pin Configuration!"
-#endif
-// OTG_HS_ULPI_DIR Pin <0=>PI11 <1=>PC2
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOI
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 11
-#elif (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 2
-#else
-#error "Invalid OTG_HS_ULPI_DIR Pin Configuration!"
-#endif
-// OTG_HS_ULPI_STP Pin <0=>PC0
-#define RTE_USB_OTG_HS_ULPI_STP_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_STP_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_STP_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_STP_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_STP Pin Configuration!"
-#endif
-// OTG_HS_ULPI_NXT Pin <0=>PC2 <1=>PH4
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT_ID 1
-#if (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 2
-#elif (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOH
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 4
-#else
-#error "Invalid OTG_HS_ULPI_NXT Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D0 Pin <0=>PA3
-#define RTE_USB_OTG_HS_ULPI_D0_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D0_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D0_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_D0_PIN 3
-#else
-#error "Invalid OTG_HS_ULPI_D0 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D1 Pin <0=>PB0
-#define RTE_USB_OTG_HS_ULPI_D1_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D1_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D1_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D1_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_D1 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D2 Pin <0=>PB1
-#define RTE_USB_OTG_HS_ULPI_D2_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D2_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D2_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D2_PIN 1
-#else
-#error "Invalid OTG_HS_ULPI_D2 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D3 Pin <0=>PB10
-#define RTE_USB_OTG_HS_ULPI_D3_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D3_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D3_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D3_PIN 10
-#else
-#error "Invalid OTG_HS_ULPI_D3 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D4 Pin <0=>PB11
-#define RTE_USB_OTG_HS_ULPI_D4_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D4_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D4_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D4_PIN 11
-#else
-#error "Invalid OTG_HS_ULPI_D4 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D5 Pin <0=>PB12
-#define RTE_USB_OTG_HS_ULPI_D5_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D5_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D5_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D5_PIN 12
-#else
-#error "Invalid OTG_HS_ULPI_D5 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D6 Pin <0=>PB13
-#define RTE_USB_OTG_HS_ULPI_D6_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D6_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D6_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D6_PIN 13
-#else
-#error "Invalid OTG_HS_ULPI_D6 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D7 Pin <0=>PB5
-#define RTE_USB_OTG_HS_ULPI_D7_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D7_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D7_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D7_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_D7 Pin Configuration!"
-#endif
-
-//
-
-//
-
-// Device [Driver_USBD1]
-// Configuration settings for Driver_USBD1 in component ::Drivers:USB Device
-#define RTE_USB_OTG_HS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 4
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 5
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_HS_DEV_EP 0x0000003F
-#define RTE_USB_OTG_HS_DEV_EP_BULK 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_INT 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_ISO 0x003E003E
-
-//
-
-// Host [Driver_USBH1]
-// Configuration settings for Driver_USBH1 in component ::Drivers:USB Host
-#define RTE_USB_OTG_HS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_VBUS_PIN 1
-#define RTE_OTG_HS_VBUS_ACTIVE 0
-#define RTE_OTG_HS_VBUS_PORT GPIO_PORT(2)
-#define RTE_OTG_HS_VBUS_BIT 2
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_OC_PIN 1
-#define RTE_OTG_HS_OC_ACTIVE 0
-#define RTE_OTG_HS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_HS_OC_BIT 12
-//
-
-//
-
-
-// EXTI (External Interrupt/Event Controller)
-#define RTE_EXTI 0
-
-// EXTI0 Line
-#define RTE_EXTI0 0
-// Pin <0=>PA0 <1=>PB0 <2=>PC0 <3=>PD0 <4=>PE0 <5=>PF0 <6=>PG0 <7=>PH0 <8=>PI0
-#define RTE_EXTI0_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI0_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI0_TRIGGER 0
-//
-
-// EXTI1 Line
-#define RTE_EXTI1 0
-// Pin <0=>PA1 <1=>PB1 <2=>PC1 <3=>PD1 <4=>PE1 <5=>PF1 <6=>PG1 <7=>PH1 <8=>PI1
-#define RTE_EXTI1_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI1_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI1_TRIGGER 0
-//
-
-// EXTI2 Line
-#define RTE_EXTI2 0
-// Pin <0=>PA2 <1=>PB2 <2=>PC2 <3=>PD2 <4=>PE2 <5=>PF2 <6=>PG2 <7=>PH2 <8=>PI2
-#define RTE_EXTI2_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI2_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI2_TRIGGER 0
-//
-
-// EXTI3 Line
-#define RTE_EXTI3 0
-// Pin <0=>PA3 <1=>PB3 <2=>PC3 <3=>PD3 <4=>PE3 <5=>PF3 <6=>PG3 <7=>PH3 <8=>PI3
-#define RTE_EXTI3_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI3_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI3_TRIGGER 0
-//
-
-// EXTI4 Line
-#define RTE_EXTI4 0
-// Pin <0=>PA4 <1=>PB4 <2=>PC4 <3=>PD4 <4=>PE4 <5=>PF4 <6=>PG4 <7=>PH4 <8=>PI4
-#define RTE_EXTI4_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI4_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI4_TRIGGER 0
-//
-
-// EXTI5 Line
-#define RTE_EXTI5 0
-// Pin <0=>PA5 <1=>PB5 <2=>PC5 <3=>PD5 <4=>PE5 <5=>PF5 <6=>PG5 <7=>PH5 <8=>PI5
-#define RTE_EXTI5_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI5_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI5_TRIGGER 0
-//
-
-// EXTI6 Line
-#define RTE_EXTI6 0
-// Pin <0=>PA6 <1=>PB6 <2=>PC6 <3=>PD6 <4=>PE6 <5=>PF6 <6=>PG6 <7=>PH6 <8=>PI6
-#define RTE_EXTI6_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI6_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI6_TRIGGER 0
-//
-
-// EXTI7 Line
-#define RTE_EXTI7 0
-// Pin <0=>PA7 <1=>PB7 <2=>PC7 <3=>PD7 <4=>PE7 <5=>PF7 <6=>PG7 <7=>PH7 <8=>PI7
-#define RTE_EXTI7_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI7_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI7_TRIGGER 0
-//
-
-// EXTI8 Line
-#define RTE_EXTI8 0
-// Pin <0=>PA8 <1=>PB8 <2=>PC8 <3=>PD8 <4=>PE8 <5=>PF8 <6=>PG8 <7=>PH8 <8=>PI8
-#define RTE_EXTI8_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI8_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI8_TRIGGER 0
-//
-
-// EXTI9 Line
-#define RTE_EXTI9 0
-// Pin <0=>PA9 <1=>PB9 <2=>PC9 <3=>PD9 <4=>PE9 <5=>PF9 <6=>PG9 <7=>PH9 <8=>PI9
-#define RTE_EXTI9_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI9_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI9_TRIGGER 0
-//
-
-// EXTI10 Line
-#define RTE_EXTI10 0
-// Pin <0=>PA10 <1=>PB10 <2=>PC10 <3=>PD10 <4=>PE10 <5=>PF10 <6=>PG10 <7=>PH10 <8=>PI10
-#define RTE_EXTI10_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI10_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI10_TRIGGER 0
-//
-
-// EXTI11 Line
-#define RTE_EXTI11 0
-// Pin <0=>PA11 <1=>PB11 <2=>PC11 <3=>PD11 <4=>PE11 <5=>PF11 <6=>PG11 <7=>PH11 <8=>PI11
-#define RTE_EXTI11_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI11_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI11_TRIGGER 0
-//
-
-// EXTI12 Line
-#define RTE_EXTI12 0
-// Pin <0=>PA12 <1=>PB12 <2=>PC12 <3=>PD12 <4=>PE12 <5=>PF12 <6=>PG12 <7=>PH12
-#define RTE_EXTI12_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI12_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI12_TRIGGER 0
-//
-
-// EXTI13 Line
-#define RTE_EXTI13 0
-// Pin <0=>PA13 <1=>PB13 <2=>PC13 <3=>PD13 <4=>PE13 <5=>PF13 <6=>PG13 <7=>PH13
-#define RTE_EXTI13_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI13_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI13_TRIGGER 0
-//
-
-// EXTI14 Line
-#define RTE_EXTI14 0
-// Pin <0=>PA14 <1=>PB14 <2=>PC14 <3=>PD14 <4=>PE14 <5=>PF14 <6=>PG14 <7=>PH14
-#define RTE_EXTI14_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI14_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI14_TRIGGER 0
-//
-
-// EXTI15 Line
-#define RTE_EXTI15 0
-// Pin <0=>PA15 <1=>PB15 <2=>PC15 <3=>PD15 <4=>PE15 <5=>PF15 <6=>PG15 <7=>PH15
-#define RTE_EXTI15_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI15_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI15_TRIGGER 0
-//
-
-// EXTI16 Line: PVD Output
-#define RTE_EXTI16 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI16_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI16_TRIGGER 0
-//
-
-// EXTI17 Line: RTC Alarm
-#define RTE_EXTI17 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI17_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI17_TRIGGER 0
-//
-
-// EXTI18 Line: USB OTG FS Wakeup
-#define RTE_EXTI18 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI18_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI18_TRIGGER 0
-//
-
-// EXTI19 Line: Ethernet Wakeup
-#define RTE_EXTI19 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI19_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI19_TRIGGER 0
-//
-
-// EXTI20 Line: USB OTG HS Wakeup
-#define RTE_EXTI20 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI20_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI20_TRIGGER 0
-//
-
-// EXTI21 Line: RTC Tamper and TimeStamp
-#define RTE_EXTI21 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI21_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI21_TRIGGER 0
-//
-
-// EXTI22 Line: RTC Wakeup
-#define RTE_EXTI22 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI22_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI22_TRIGGER 0
-//
-
-//
-
-
-// FSMC (Flexible Static Memory Controller)
-#define RTE_FSMC 0
-
-// Pin Configuration
-// Configure Pins
-#define RTE_FSMC_PINS 0
-
-// Address Bus Pins
-// <0=>A[17:16]
-// <1=>A[10:0] <2=>A[15:0] <3=>A[16:0] <4=>A[17:0]
-// <5=>A[18:0] <6=>A[19:0] <7=>A[20:0] <8=>A[21:0]
-// <9=>A[22:0] <10=>A[23:0] <11=>A[24:0] <12=>A[25:0]
-#define RTE_FSMC_ABUS_PINS 10
-// Data Bus Pins <0=>D[7:0] <1=>D[15:0]
-#define RTE_FSMC_DBUS_PINS 0
-// FSMC_NOE Pin
-#define RTE_FSMC_NOE_PIN 0
-// FSMC_NWE Pin
-#define RTE_FSMC_NWE_PIN 0
-// FSMC_NBL0 Pin
-#define RTE_FSMC_NBL0_PIN 0
-// FSMC_NBL1 Pin
-#define RTE_FSMC_NBL1_PIN 0
-// FSMC_NL Pin
-#define RTE_FSMC_NL_PIN 0
-// FSMC_NWAIT Pin
-#define RTE_FSMC_NWAIT_PIN 0
-// FSMC_CLK Pin
-#define RTE_FSMC_CLK_PIN 0
-// FSMC_NE1/NCE2 Pin
-#define RTE_FSMC_NE1_PIN 0
-// FSMC_NE2/NCE3 Pin
-#define RTE_FSMC_NE2_PIN 0
-// FSMC_NE3/NCE4_1 Pin
-#define RTE_FSMC_NE3_PIN 0
-// FSMC_NE4 Pin
-#define RTE_FSMC_NE4_PIN 0
-// FSMC_NCE4_2 Pin
-#define RTE_FSMC_NCE42_PIN 0
-// FSMC_INT2 Pin
-#define RTE_FSMC_INT2_PIN 0
-// FSMC_INT3 Pin
-#define RTE_FSMC_INT3_PIN 0
-// FSMC_INTR Pin
-#define RTE_FSMC_INTR_PIN 0
-// FSMC_NIORD Pin
-#define RTE_FSMC_NIORD_PIN 0
-// FSMC_NIOWR Pin
-#define RTE_FSMC_NIOWR_PIN 0
-// FSMC_NREG Pin
-#define RTE_FSMC_NREG_PIN 0
-// FSMC_CD Pin
-#define RTE_FSMC_CD_PIN 0
-
-//
-
-// NOR Flash / PSRAM Controller
-
-// FSMC_NE1 Chip Select
-// Configure Device on Chip Select FSMC_NE1
-#define RTE_FSMC_NE1 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR1_CBURSTRW 0
-#define RTE_FSMC_BCR1_ASYNCWAIT 0
-#define RTE_FSMC_BCR1_EXTMOD 0
-#define RTE_FSMC_BCR1_WAITEN 1
-#define RTE_FSMC_BCR1_WREN 1
-#define RTE_FSMC_BCR1_WAITCFG 0
-#define RTE_FSMC_BCR1_WRAPMOD 0
-#define RTE_FSMC_BCR1_WAITPOL 0
-#define RTE_FSMC_BCR1_BURSTEN 0
-#define RTE_FSMC_BCR1_FACCEN 1
-#define RTE_FSMC_BCR1_MWID 1
-#define RTE_FSMC_BCR1_MTYP 2
-#define RTE_FSMC_BCR1_MUXEN 1
-#define RTE_FSMC_BCR1_MBKEN 1
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR1_ACCMOD 0
-#define RTE_FSMC_BTR1_DATLAT 15
-#define RTE_FSMC_BTR1_CLKDIV 15
-#define RTE_FSMC_BTR1_BUSTURN 15
-#define RTE_FSMC_BTR1_DATAST 255
-#define RTE_FSMC_BTR1_ADDHLD 15
-#define RTE_FSMC_BTR1_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR1_ACCMOD 0
-#define RTE_FSMC_BWTR1_DATLAT 15
-#define RTE_FSMC_BWTR1_CLKDIV 15
-#define RTE_FSMC_BWTR1_BUSTURN 15
-#define RTE_FSMC_BWTR1_DATAST 255
-#define RTE_FSMC_BWTR1_ADDHLD 15
-#define RTE_FSMC_BWTR1_ADDSET 15
-//
-//
-
-// FSMC_NE2 Chip Select
-// Configure Device on Chip Select FSMC_NE2
-#define RTE_FSMC_NE2 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR2_CBURSTRW 0
-#define RTE_FSMC_BCR2_ASYNCWAIT 0
-#define RTE_FSMC_BCR2_EXTMOD 0
-#define RTE_FSMC_BCR2_WAITEN 1
-#define RTE_FSMC_BCR2_WREN 1
-#define RTE_FSMC_BCR2_WAITCFG 0
-#define RTE_FSMC_BCR2_WRAPMOD 0
-#define RTE_FSMC_BCR2_WAITPOL 0
-#define RTE_FSMC_BCR2_BURSTEN 0
-#define RTE_FSMC_BCR2_FACCEN 1
-#define RTE_FSMC_BCR2_MWID 1
-#define RTE_FSMC_BCR2_MTYP 0
-#define RTE_FSMC_BCR2_MUXEN 1
-#define RTE_FSMC_BCR2_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR2_ACCMOD 0
-#define RTE_FSMC_BTR2_DATLAT 15
-#define RTE_FSMC_BTR2_CLKDIV 15
-#define RTE_FSMC_BTR2_BUSTURN 15
-#define RTE_FSMC_BTR2_DATAST 255
-#define RTE_FSMC_BTR2_ADDHLD 15
-#define RTE_FSMC_BTR2_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR2_ACCMOD 0
-#define RTE_FSMC_BWTR2_DATLAT 15
-#define RTE_FSMC_BWTR2_CLKDIV 15
-#define RTE_FSMC_BWTR2_BUSTURN 15
-#define RTE_FSMC_BWTR2_DATAST 255
-#define RTE_FSMC_BWTR2_ADDHLD 15
-#define RTE_FSMC_BWTR2_ADDSET 15
-//
-//
-
-// FSMC_NE3 Chip Select
-// Configure Device on Chip Select FSMC_NE3
-#define RTE_FSMC_NE3 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR3_CBURSTRW 0
-#define RTE_FSMC_BCR3_ASYNCWAIT 0
-#define RTE_FSMC_BCR3_EXTMOD 0
-#define RTE_FSMC_BCR3_WAITEN 1
-#define RTE_FSMC_BCR3_WREN 1
-#define RTE_FSMC_BCR3_WAITCFG 0
-#define RTE_FSMC_BCR3_WRAPMOD 0
-#define RTE_FSMC_BCR3_WAITPOL 0
-#define RTE_FSMC_BCR3_BURSTEN 0
-#define RTE_FSMC_BCR3_FACCEN 1
-#define RTE_FSMC_BCR3_MWID 1
-#define RTE_FSMC_BCR3_MTYP 0
-#define RTE_FSMC_BCR3_MUXEN 1
-#define RTE_FSMC_BCR3_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR3_ACCMOD 0
-#define RTE_FSMC_BTR3_DATLAT 15
-#define RTE_FSMC_BTR3_CLKDIV 15
-#define RTE_FSMC_BTR3_BUSTURN 15
-#define RTE_FSMC_BTR3_DATAST 255
-#define RTE_FSMC_BTR3_ADDHLD 15
-#define RTE_FSMC_BTR3_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR3_ACCMOD 0
-#define RTE_FSMC_BWTR3_DATLAT 15
-#define RTE_FSMC_BWTR3_CLKDIV 15
-#define RTE_FSMC_BWTR3_BUSTURN 15
-#define RTE_FSMC_BWTR3_DATAST 255
-#define RTE_FSMC_BWTR3_ADDHLD 15
-#define RTE_FSMC_BWTR3_ADDSET 15
-//
-//
-
-// FSMC_NE4 Chip Select
-// Configure Device on Chip Select FSMC_NE4
-#define RTE_FSMC_NE4 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR4_CBURSTRW 0
-#define RTE_FSMC_BCR4_ASYNCWAIT 0
-#define RTE_FSMC_BCR4_EXTMOD 0
-#define RTE_FSMC_BCR4_WAITEN 1
-#define RTE_FSMC_BCR4_WREN 1
-#define RTE_FSMC_BCR4_WAITCFG 0
-#define RTE_FSMC_BCR4_WRAPMOD 0
-#define RTE_FSMC_BCR4_WAITPOL 0
-#define RTE_FSMC_BCR4_BURSTEN 0
-#define RTE_FSMC_BCR4_FACCEN 1
-#define RTE_FSMC_BCR4_MWID 1
-#define RTE_FSMC_BCR4_MTYP 0
-#define RTE_FSMC_BCR4_MUXEN 1
-#define RTE_FSMC_BCR4_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR4_ACCMOD 0
-#define RTE_FSMC_BTR4_DATLAT 15
-#define RTE_FSMC_BTR4_CLKDIV 15
-#define RTE_FSMC_BTR4_BUSTURN 15
-#define RTE_FSMC_BTR4_DATAST 255
-#define RTE_FSMC_BTR4_ADDHLD 15
-#define RTE_FSMC_BTR4_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR4_ACCMOD 0
-#define RTE_FSMC_BWTR4_DATLAT 15
-#define RTE_FSMC_BWTR4_CLKDIV 15
-#define RTE_FSMC_BWTR4_BUSTURN 15
-#define RTE_FSMC_BWTR4_DATAST 255
-#define RTE_FSMC_BWTR4_ADDHLD 15
-#define RTE_FSMC_BWTR4_ADDSET 15
-//
-//
-
-//
-
-// NAND Flash Controller
-
-// FSMC_NCE2 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE2
-#define RTE_FSMC_NCE2 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR2_ECCPS 0
-#define RTE_FSMC_PCR2_TAR 0
-#define RTE_FSMC_PCR2_TCLR 0
-#define RTE_FSMC_PCR2_ECCEN 0
-#define RTE_FSMC_PCR2_PWID 0
-#define RTE_FSMC_PCR2_PTYP 1
-#define RTE_FSMC_PCR2_PBKEN 0
-#define RTE_FSMC_PCR2_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR2_IFEN 0
-#define RTE_FSMC_SR2_ILEN 0
-#define RTE_FSMC_SR2_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM2_MEMHIZ 255
-#define RTE_FSMC_PMEM2_MEMHOLD 255
-#define RTE_FSMC_PMEM2_MEMWAIT 255
-#define RTE_FSMC_PMEM2_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT2_ATTHIZ 255
-#define RTE_FSMC_PATT2_ATTHOLD 255
-#define RTE_FSMC_PATT2_ATTWAIT 255
-#define RTE_FSMC_PATT2_ATTSET 255
-
-//
-
-//
-
-// FSMC_NCE3 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE3
-#define RTE_FSMC_NCE3 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR3_ECCPS 0
-#define RTE_FSMC_PCR3_TAR 0
-#define RTE_FSMC_PCR3_TCLR 0
-#define RTE_FSMC_PCR3_ECCEN 0
-#define RTE_FSMC_PCR3_PWID 0
-#define RTE_FSMC_PCR3_PTYP 1
-#define RTE_FSMC_PCR3_PBKEN 0
-#define RTE_FSMC_PCR3_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR3_IFEN 0
-#define RTE_FSMC_SR3_ILEN 0
-#define RTE_FSMC_SR3_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM3_MEMHIZ 255
-#define RTE_FSMC_PMEM3_MEMHOLD 255
-#define RTE_FSMC_PMEM3_MEMWAIT 255
-#define RTE_FSMC_PMEM3_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT3_ATTHIZ 255
-#define RTE_FSMC_PATT3_ATTHOLD 255
-#define RTE_FSMC_PATT3_ATTWAIT 255
-#define RTE_FSMC_PATT3_ATTSET 255
-
-//
-
-//
-
-//
-
-// PC Card Controller
-
-// FSMC_NCE4_x Chip Select
-// Configure PC Card/CompactFlash Device on Chip Select FSMC_NCE4_1/FSMC_NCE4_2
-#define RTE_FSMC_NCE4 0
-
-// PC Card Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <0=>PC Card, CompactFlash, CF+ or PCMCIOA
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: PC Card memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR4_ECCPS 0
-#define RTE_FSMC_PCR4_TAR 0
-#define RTE_FSMC_PCR4_TCLR 0
-#define RTE_FSMC_PCR4_ECCEN 0
-#define RTE_FSMC_PCR4_PWID 0
-#define RTE_FSMC_PCR4_PTYP 0
-#define RTE_FSMC_PCR4_PBKEN 0
-#define RTE_FSMC_PCR4_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR4_IFEN 0
-#define RTE_FSMC_SR4_ILEN 0
-#define RTE_FSMC_SR4_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM4_MEMHIZ 255
-#define RTE_FSMC_PMEM4_MEMHOLD 255
-#define RTE_FSMC_PMEM4_MEMWAIT 255
-#define RTE_FSMC_PMEM4_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT4_ATTHIZ 255
-#define RTE_FSMC_PATT4_ATTHOLD 255
-#define RTE_FSMC_PATT4_ATTWAIT 255
-#define RTE_FSMC_PATT4_ATTSET 255
-
-//
-
-// I/O space timing
-// IOHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a PC Card write access. Only valid for write transaction.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (SMNWE,
-// SMNOE), for PC Card read or write access. The duration for command assertion is
-// extended if the wait signal (NWAIT) is active (low) at the end of the
-// programmed value of HCLK.
-// 0000 0000: reserved, do not use this value
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles
-// IOSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PIO4_IOHIZ 255
-#define RTE_FSMC_PIO4_IOHOLD 255
-#define RTE_FSMC_PIO4_IOWAIT 255
-#define RTE_FSMC_PIO4_IOSET 255
-
-//
-
-//
-
-//
-
-//
-
-
-#endif /* __RTE_DEVICE_H */
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/startup_stm32f2xx.s b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/startup_stm32f2xx.s
deleted file mode 100644
index 84191d1ed..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/startup_stm32f2xx.s
+++ /dev/null
@@ -1,419 +0,0 @@
-;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
-;* File Name : startup_stm32f2xx.s
-;* Author : MCD Application Team
-;* Version : V1.0.0
-;* Date : 18-April-2011
-;* Description : STM32F2xx devices vector table for MDK-ARM toolchain.
-;* This module performs:
-;* - Set the initial SP
-;* - Set the initial PC == Reset_Handler
-;* - Set the vector table entries with the exceptions ISR address
-;* - Branches to __main in the C library (which eventually
-;* calls main()).
-;* After Reset the CortexM3 processor is in Thread mode,
-;* priority is Privileged, and the Stack is set to Main.
-;* <<< Use Configuration Wizard in Context Menu >>>
-;*******************************************************************************
-; 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.
-;*******************************************************************************
-
-; Amount of memory (in bytes) allocated for Stack
-; Tailor this value to your application needs
-; Stack Configuration
-; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Stack_Size EQU 0x00000400
-
- AREA STACK, NOINIT, READWRITE, ALIGN=3
-Stack_Mem SPACE Stack_Size
-__initial_sp
-
-
-; Heap Configuration
-; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Heap_Size EQU 0x0000A000
-
- AREA HEAP, NOINIT, READWRITE, ALIGN=3
-__heap_base
-Heap_Mem SPACE Heap_Size
-__heap_limit
-
- PRESERVE8
- THUMB
-
-
-; Vector Table Mapped to Address 0 at Reset
- AREA RESET, DATA, READONLY
- EXPORT __Vectors
- EXPORT __Vectors_End
- EXPORT __Vectors_Size
-
-__Vectors DCD __initial_sp ; Top of Stack
- DCD Reset_Handler ; Reset Handler
- DCD NMI_Handler ; NMI Handler
- DCD HardFault_Handler ; Hard Fault Handler
- DCD MemManage_Handler ; MPU Fault Handler
- DCD BusFault_Handler ; Bus Fault Handler
- DCD UsageFault_Handler ; Usage Fault Handler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD SVC_Handler ; SVCall Handler
- DCD DebugMon_Handler ; Debug Monitor Handler
- DCD 0 ; Reserved
- DCD PendSV_Handler ; PendSV Handler
- DCD SysTick_Handler ; SysTick Handler
-
- ; External Interrupts
- DCD WWDG_IRQHandler ; Window WatchDog
- DCD PVD_IRQHandler ; PVD through EXTI Line detection
- DCD TAMP_STAMP_IRQHandler ; Tamper and TimeStamps through the EXTI line
- DCD RTC_WKUP_IRQHandler ; RTC Wakeup through the EXTI line
- DCD FLASH_IRQHandler ; FLASH
- DCD RCC_IRQHandler ; RCC
- DCD EXTI0_IRQHandler ; EXTI Line0
- DCD EXTI1_IRQHandler ; EXTI Line1
- DCD EXTI2_IRQHandler ; EXTI Line2
- DCD EXTI3_IRQHandler ; EXTI Line3
- DCD EXTI4_IRQHandler ; EXTI Line4
- DCD DMA1_Stream0_IRQHandler ; DMA1 Stream 0
- DCD DMA1_Stream1_IRQHandler ; DMA1 Stream 1
- DCD DMA1_Stream2_IRQHandler ; DMA1 Stream 2
- DCD DMA1_Stream3_IRQHandler ; DMA1 Stream 3
- DCD DMA1_Stream4_IRQHandler ; DMA1 Stream 4
- DCD DMA1_Stream5_IRQHandler ; DMA1 Stream 5
- DCD DMA1_Stream6_IRQHandler ; DMA1 Stream 6
- DCD ADC_IRQHandler ; ADC1, ADC2 and ADC3s
- DCD CAN1_TX_IRQHandler ; CAN1 TX
- DCD CAN1_RX0_IRQHandler ; CAN1 RX0
- DCD CAN1_RX1_IRQHandler ; CAN1 RX1
- DCD CAN1_SCE_IRQHandler ; CAN1 SCE
- DCD EXTI9_5_IRQHandler ; External Line[9:5]s
- DCD TIM1_BRK_TIM9_IRQHandler ; TIM1 Break and TIM9
- DCD TIM1_UP_TIM10_IRQHandler ; TIM1 Update and TIM10
- DCD TIM1_TRG_COM_TIM11_IRQHandler ; TIM1 Trigger and Commutation and TIM11
- DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
- DCD TIM2_IRQHandler ; TIM2
- DCD TIM3_IRQHandler ; TIM3
- DCD TIM4_IRQHandler ; TIM4
- DCD I2C1_EV_IRQHandler ; I2C1 Event
- DCD I2C1_ER_IRQHandler ; I2C1 Error
- DCD I2C2_EV_IRQHandler ; I2C2 Event
- DCD I2C2_ER_IRQHandler ; I2C2 Error
- DCD SPI1_IRQHandler ; SPI1
- DCD SPI2_IRQHandler ; SPI2
- DCD USART1_IRQHandler ; USART1
- DCD USART2_IRQHandler ; USART2
- DCD USART3_IRQHandler ; USART3
- DCD EXTI15_10_IRQHandler ; External Line[15:10]s
- DCD RTC_Alarm_IRQHandler ; RTC Alarm (A and B) through EXTI Line
- DCD OTG_FS_WKUP_IRQHandler ; USB OTG FS Wakeup through EXTI line
- DCD TIM8_BRK_TIM12_IRQHandler ; TIM8 Break and TIM12
- DCD TIM8_UP_TIM13_IRQHandler ; TIM8 Update and TIM13
- DCD TIM8_TRG_COM_TIM14_IRQHandler ; TIM8 Trigger and Commutation and TIM14
- DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare
- DCD DMA1_Stream7_IRQHandler ; DMA1 Stream7
- DCD FSMC_IRQHandler ; FSMC
- DCD SDIO_IRQHandler ; SDIO
- DCD TIM5_IRQHandler ; TIM5
- DCD SPI3_IRQHandler ; SPI3
- DCD UART4_IRQHandler ; UART4
- DCD UART5_IRQHandler ; UART5
- DCD TIM6_DAC_IRQHandler ; TIM6 and DAC1&2 underrun errors
- DCD TIM7_IRQHandler ; TIM7
- DCD DMA2_Stream0_IRQHandler ; DMA2 Stream 0
- DCD DMA2_Stream1_IRQHandler ; DMA2 Stream 1
- DCD DMA2_Stream2_IRQHandler ; DMA2 Stream 2
- DCD DMA2_Stream3_IRQHandler ; DMA2 Stream 3
- DCD DMA2_Stream4_IRQHandler ; DMA2 Stream 4
- DCD ETH_IRQHandler ; Ethernet
- DCD ETH_WKUP_IRQHandler ; Ethernet Wakeup through EXTI line
- DCD CAN2_TX_IRQHandler ; CAN2 TX
- DCD CAN2_RX0_IRQHandler ; CAN2 RX0
- DCD CAN2_RX1_IRQHandler ; CAN2 RX1
- DCD CAN2_SCE_IRQHandler ; CAN2 SCE
- DCD OTG_FS_IRQHandler ; USB OTG FS
- DCD DMA2_Stream5_IRQHandler ; DMA2 Stream 5
- DCD DMA2_Stream6_IRQHandler ; DMA2 Stream 6
- DCD DMA2_Stream7_IRQHandler ; DMA2 Stream 7
- DCD USART6_IRQHandler ; USART6
- DCD I2C3_EV_IRQHandler ; I2C3 event
- DCD I2C3_ER_IRQHandler ; I2C3 error
- DCD OTG_HS_EP1_OUT_IRQHandler ; USB OTG HS End Point 1 Out
- DCD OTG_HS_EP1_IN_IRQHandler ; USB OTG HS End Point 1 In
- DCD OTG_HS_WKUP_IRQHandler ; USB OTG HS Wakeup through EXTI
- DCD OTG_HS_IRQHandler ; USB OTG HS
- DCD DCMI_IRQHandler ; DCMI
- DCD CRYP_IRQHandler ; CRYP crypto
- DCD HASH_RNG_IRQHandler ; Hash and Rng
-__Vectors_End
-
-__Vectors_Size EQU __Vectors_End - __Vectors
-
- AREA |.text|, CODE, READONLY
-
-; Reset handler
-Reset_Handler PROC
- EXPORT Reset_Handler [WEAK]
- IMPORT SystemInit
- IMPORT __main
- LDR R0, =SystemInit
- BLX R0
- LDR R0, =__main
- BX R0
- ENDP
-
-; Dummy Exception Handlers (infinite loops which can be modified)
-
-NMI_Handler PROC
- EXPORT NMI_Handler [WEAK]
- B .
- ENDP
-HardFault_Handler\
- PROC
- EXPORT HardFault_Handler [WEAK]
- B .
- ENDP
-MemManage_Handler\
- PROC
- EXPORT MemManage_Handler [WEAK]
- B .
- ENDP
-BusFault_Handler\
- PROC
- EXPORT BusFault_Handler [WEAK]
- B .
- ENDP
-UsageFault_Handler\
- PROC
- EXPORT UsageFault_Handler [WEAK]
- B .
- ENDP
-SVC_Handler PROC
- EXPORT SVC_Handler [WEAK]
- B .
- ENDP
-DebugMon_Handler\
- PROC
- EXPORT DebugMon_Handler [WEAK]
- B .
- ENDP
-PendSV_Handler PROC
- EXPORT PendSV_Handler [WEAK]
- B .
- ENDP
-SysTick_Handler PROC
- EXPORT SysTick_Handler [WEAK]
- B .
- ENDP
-
-Default_Handler PROC
-
- EXPORT WWDG_IRQHandler [WEAK]
- EXPORT PVD_IRQHandler [WEAK]
- EXPORT TAMP_STAMP_IRQHandler [WEAK]
- EXPORT RTC_WKUP_IRQHandler [WEAK]
- EXPORT FLASH_IRQHandler [WEAK]
- EXPORT RCC_IRQHandler [WEAK]
- EXPORT EXTI0_IRQHandler [WEAK]
- EXPORT EXTI1_IRQHandler [WEAK]
- EXPORT EXTI2_IRQHandler [WEAK]
- EXPORT EXTI3_IRQHandler [WEAK]
- EXPORT EXTI4_IRQHandler [WEAK]
- EXPORT DMA1_Stream0_IRQHandler [WEAK]
- EXPORT DMA1_Stream1_IRQHandler [WEAK]
- EXPORT DMA1_Stream2_IRQHandler [WEAK]
- EXPORT DMA1_Stream3_IRQHandler [WEAK]
- EXPORT DMA1_Stream4_IRQHandler [WEAK]
- EXPORT DMA1_Stream5_IRQHandler [WEAK]
- EXPORT DMA1_Stream6_IRQHandler [WEAK]
- EXPORT ADC_IRQHandler [WEAK]
- EXPORT CAN1_TX_IRQHandler [WEAK]
- EXPORT CAN1_RX0_IRQHandler [WEAK]
- EXPORT CAN1_RX1_IRQHandler [WEAK]
- EXPORT CAN1_SCE_IRQHandler [WEAK]
- EXPORT EXTI9_5_IRQHandler [WEAK]
- EXPORT TIM1_BRK_TIM9_IRQHandler [WEAK]
- EXPORT TIM1_UP_TIM10_IRQHandler [WEAK]
- EXPORT TIM1_TRG_COM_TIM11_IRQHandler [WEAK]
- EXPORT TIM1_CC_IRQHandler [WEAK]
- EXPORT TIM2_IRQHandler [WEAK]
- EXPORT TIM3_IRQHandler [WEAK]
- EXPORT TIM4_IRQHandler [WEAK]
- EXPORT I2C1_EV_IRQHandler [WEAK]
- EXPORT I2C1_ER_IRQHandler [WEAK]
- EXPORT I2C2_EV_IRQHandler [WEAK]
- EXPORT I2C2_ER_IRQHandler [WEAK]
- EXPORT SPI1_IRQHandler [WEAK]
- EXPORT SPI2_IRQHandler [WEAK]
- EXPORT USART1_IRQHandler [WEAK]
- EXPORT USART2_IRQHandler [WEAK]
- EXPORT USART3_IRQHandler [WEAK]
- EXPORT EXTI15_10_IRQHandler [WEAK]
- EXPORT RTC_Alarm_IRQHandler [WEAK]
- EXPORT OTG_FS_WKUP_IRQHandler [WEAK]
- EXPORT TIM8_BRK_TIM12_IRQHandler [WEAK]
- EXPORT TIM8_UP_TIM13_IRQHandler [WEAK]
- EXPORT TIM8_TRG_COM_TIM14_IRQHandler [WEAK]
- EXPORT TIM8_CC_IRQHandler [WEAK]
- EXPORT DMA1_Stream7_IRQHandler [WEAK]
- EXPORT FSMC_IRQHandler [WEAK]
- EXPORT SDIO_IRQHandler [WEAK]
- EXPORT TIM5_IRQHandler [WEAK]
- EXPORT SPI3_IRQHandler [WEAK]
- EXPORT UART4_IRQHandler [WEAK]
- EXPORT UART5_IRQHandler [WEAK]
- EXPORT TIM6_DAC_IRQHandler [WEAK]
- EXPORT TIM7_IRQHandler [WEAK]
- EXPORT DMA2_Stream0_IRQHandler [WEAK]
- EXPORT DMA2_Stream1_IRQHandler [WEAK]
- EXPORT DMA2_Stream2_IRQHandler [WEAK]
- EXPORT DMA2_Stream3_IRQHandler [WEAK]
- EXPORT DMA2_Stream4_IRQHandler [WEAK]
- EXPORT ETH_IRQHandler [WEAK]
- EXPORT ETH_WKUP_IRQHandler [WEAK]
- EXPORT CAN2_TX_IRQHandler [WEAK]
- EXPORT CAN2_RX0_IRQHandler [WEAK]
- EXPORT CAN2_RX1_IRQHandler [WEAK]
- EXPORT CAN2_SCE_IRQHandler [WEAK]
- EXPORT OTG_FS_IRQHandler [WEAK]
- EXPORT DMA2_Stream5_IRQHandler [WEAK]
- EXPORT DMA2_Stream6_IRQHandler [WEAK]
- EXPORT DMA2_Stream7_IRQHandler [WEAK]
- EXPORT USART6_IRQHandler [WEAK]
- EXPORT I2C3_EV_IRQHandler [WEAK]
- EXPORT I2C3_ER_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_OUT_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_IN_IRQHandler [WEAK]
- EXPORT OTG_HS_WKUP_IRQHandler [WEAK]
- EXPORT OTG_HS_IRQHandler [WEAK]
- EXPORT DCMI_IRQHandler [WEAK]
- EXPORT CRYP_IRQHandler [WEAK]
- EXPORT HASH_RNG_IRQHandler [WEAK]
-
-WWDG_IRQHandler
-PVD_IRQHandler
-TAMP_STAMP_IRQHandler
-RTC_WKUP_IRQHandler
-FLASH_IRQHandler
-RCC_IRQHandler
-EXTI0_IRQHandler
-EXTI1_IRQHandler
-EXTI2_IRQHandler
-EXTI3_IRQHandler
-EXTI4_IRQHandler
-DMA1_Stream0_IRQHandler
-DMA1_Stream1_IRQHandler
-DMA1_Stream2_IRQHandler
-DMA1_Stream3_IRQHandler
-DMA1_Stream4_IRQHandler
-DMA1_Stream5_IRQHandler
-DMA1_Stream6_IRQHandler
-ADC_IRQHandler
-CAN1_TX_IRQHandler
-CAN1_RX0_IRQHandler
-CAN1_RX1_IRQHandler
-CAN1_SCE_IRQHandler
-EXTI9_5_IRQHandler
-TIM1_BRK_TIM9_IRQHandler
-TIM1_UP_TIM10_IRQHandler
-TIM1_TRG_COM_TIM11_IRQHandler
-TIM1_CC_IRQHandler
-TIM2_IRQHandler
-TIM3_IRQHandler
-TIM4_IRQHandler
-I2C1_EV_IRQHandler
-I2C1_ER_IRQHandler
-I2C2_EV_IRQHandler
-I2C2_ER_IRQHandler
-SPI1_IRQHandler
-SPI2_IRQHandler
-USART1_IRQHandler
-USART2_IRQHandler
-USART3_IRQHandler
-EXTI15_10_IRQHandler
-RTC_Alarm_IRQHandler
-OTG_FS_WKUP_IRQHandler
-TIM8_BRK_TIM12_IRQHandler
-TIM8_UP_TIM13_IRQHandler
-TIM8_TRG_COM_TIM14_IRQHandler
-TIM8_CC_IRQHandler
-DMA1_Stream7_IRQHandler
-FSMC_IRQHandler
-SDIO_IRQHandler
-TIM5_IRQHandler
-SPI3_IRQHandler
-UART4_IRQHandler
-UART5_IRQHandler
-TIM6_DAC_IRQHandler
-TIM7_IRQHandler
-DMA2_Stream0_IRQHandler
-DMA2_Stream1_IRQHandler
-DMA2_Stream2_IRQHandler
-DMA2_Stream3_IRQHandler
-DMA2_Stream4_IRQHandler
-ETH_IRQHandler
-ETH_WKUP_IRQHandler
-CAN2_TX_IRQHandler
-CAN2_RX0_IRQHandler
-CAN2_RX1_IRQHandler
-CAN2_SCE_IRQHandler
-OTG_FS_IRQHandler
-DMA2_Stream5_IRQHandler
-DMA2_Stream6_IRQHandler
-DMA2_Stream7_IRQHandler
-USART6_IRQHandler
-I2C3_EV_IRQHandler
-I2C3_ER_IRQHandler
-OTG_HS_EP1_OUT_IRQHandler
-OTG_HS_EP1_IN_IRQHandler
-OTG_HS_WKUP_IRQHandler
-OTG_HS_IRQHandler
-DCMI_IRQHandler
-CRYP_IRQHandler
-HASH_RNG_IRQHandler
-
- B .
-
- ENDP
-
- ALIGN
-
-;*******************************************************************************
-; User Stack and Heap initialization
-;*******************************************************************************
- IF :DEF:__MICROLIB
-
- EXPORT __initial_sp
- EXPORT __heap_base
- EXPORT __heap_limit
-
- ELSE
-
- IMPORT __use_two_region_memory
- EXPORT __user_initial_stackheap
-
-__user_initial_stackheap
-
- LDR R0, = Heap_Mem
- LDR R1, =(Stack_Mem + Stack_Size)
- LDR R2, = (Heap_Mem + Heap_Size)
- LDR R3, = Stack_Mem
- BX LR
-
- ALIGN
-
- ENDIF
-
- END
-
-;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/system_stm32f2xx.c b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/system_stm32f2xx.c
deleted file mode 100644
index da0e189c8..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Device/STM32F207IG/system_stm32f2xx.c
+++ /dev/null
@@ -1,536 +0,0 @@
-/**
- ******************************************************************************
- * @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();
-
- /* Configure the Vector Table location add offset address ------------------*/
-#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
-}
-
-/**
- * @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/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/File_System/FS_Config.c b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/File_System/FS_Config.c
deleted file mode 100644
index 78564b080..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/File_System/FS_Config.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config.c
- * Purpose: File System Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// File System
-// Define File System global parameters
-
-// Number of open files <4-16>
-// Define number of files that can be
-// opened at the same time.
-// Default: 8
-#define NUM_FILES 8
-
-// FAT Name Cache Size <0-1000000>
-// Define number of cached FAT file or directory names.
-// 48 bytes of RAM is required for each cached name.
-#define FAT_NAME_CACHE_SIZE 0
-
-// Relocate FAT Name Cache Buffer
-// Locate Cache Buffer at a specific address.
-#define FAT_NAME_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define the Cache buffer base address.
-#define FAT_NAME_CACHE_ADDR 0x60000000
-
-//
-
-//
-
-#include "..\RTE_Components.h"
-
-#ifdef RTE_FileSystem_Drive_RAM
-#include "FS_Config_RAM.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NOR_0
-#include "FS_Config_NOR_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NOR_1
-#include "FS_Config_NOR_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NAND_0
-#include "FS_Config_NAND_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NAND_1
-#include "FS_Config_NAND_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_MC_0
-#include "FS_Config_MC_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_MC_1
-#include "FS_Config_MC_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_USB_0
-#include "FS_Config_USB_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_USB_1
-#include "FS_Config_USB_1.h"
-#endif
-
-#include "fs_config.h"
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/File_System/FS_Config_MC_0.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/File_System/FS_Config_MC_0.h
deleted file mode 100644
index 0b1c6d3a7..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/File_System/FS_Config_MC_0.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System:Drive
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config_MC_0.h
- * Purpose: File System Configuration for Memory Card Drive
- * Rev.: V5.01
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Memory Card Drive 0
-// Configuration for SD/SDHC/MMC Memory Card assigned to drive letter "M0:"
-#define MC0_ENABLE 1
-
-// Connect to hardware via Driver_MCI# <0-255>
-// Select driver control block for hardware interface
-#define MC0_MCI_DRIVER 0
-
-// Connect to hardware via Driver_SPI# <0-255>
-// Select driver control block for hardware interface when in SPI mode
-#define MC0_SPI_DRIVER 0
-
-// Memory Card Interface Mode <0=>Native <1=>SPI
-// Native uses a SD Bus with up to 8 data lines, CLK, and CMD
-// SPI uses 2 data lines (MOSI and MISO), SCLK and CS
-// When using SPI both Driver_SPI# and Driver_MCI# must be specified
-// since the MCI driver provides the control interface lines.
-#define MC0_SPI 0
-
-// Drive Cache Size <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Drive Cache stores data sectors and may be increased to speed-up
-// file read/write operations on this drive (default: 4 KB)
-#define MC0_CACHE_SIZE 4
-
-// Locate Drive Cache and Drive Buffer
-// Some microcontrollers support DMA only in specific memory areas and
-// require to locate the drive buffers at a fixed address.
-#define MC0_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Set buffer base address to RAM areas that support DMA with the drive.
-#define MC0_CACHE_ADDR 0x7FD00000
-
-//
-
-// Use FAT Journal
-// Protect File Allocation Table and Directory Entries for
-// fail-safe operation.
-#define MC0_FAT_JOURNAL 0
-
-// Default Drive "M0:"
-// Use this drive when no drive letter is specified.
-#define MC0_DEFAULT_DRIVE 1
-
-//
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config.c b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config.c
deleted file mode 100644
index 6b9dc8e00..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config.c
+++ /dev/null
@@ -1,153 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config.c
- * Purpose: Network Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// System Definitions
-// Global Network System definitions
-// Local Host Name
-// This is the name under which embedded host can be
-// accessed on a local area network.
-// Default: "my_host"
-#define NET_HOST_NAME "my_host"
-
-// Memory Pool size <1536-262144:4><#/4>
-// This is the size of a memory pool in bytes. Buffers for
-// Network packets are allocated from this memory pool.
-// Default: 12000 bytes
-#define NET_MEM_SIZE 3000
-
-//
-
-#include "..\RTE_Components.h"
-
-#ifdef RTE_Network_Interface_ETH_0
-#include "Net_Config_ETH_0.h"
-#endif
-#ifdef RTE_Network_Interface_ETH_1
-#include "Net_Config_ETH_1.h"
-#endif
-
-#ifdef RTE_Network_Interface_PPP_0
-#include "Net_Config_PPP_0.h"
-#endif
-#ifdef RTE_Network_Interface_PPP_1
-#include "Net_Config_PPP_1.h"
-#endif
-
-#ifdef RTE_Network_Interface_SLIP_0
-#include "Net_Config_SLIP_0.h"
-#endif
-#ifdef RTE_Network_Interface_SLIP_1
-#include "Net_Config_SLIP_1.h"
-#endif
-
-#ifdef RTE_Network_Socket_UDP
-#include "Net_Config_UDP.h"
-#endif
-#ifdef RTE_Network_Socket_TCP
-#include "Net_Config_TCP.h"
-#endif
-#ifdef RTE_Network_Socket_BSD
-#include "Net_Config_BSD.h"
-#endif
-
-#ifdef RTE_Network_Web_Server_RO
-#include "Net_Config_HTTP_Server.h"
-#endif
-#ifdef RTE_Network_Web_Server_FS
-#include "Net_Config_HTTP_Server.h"
-#endif
-
-#ifdef RTE_Network_Telnet_Server
-#include "Net_Config_Telnet_Server.h"
-#endif
-
-#ifdef RTE_Network_TFTP_Server
-#include "Net_Config_TFTP_Server.h"
-#endif
-#ifdef RTE_Network_TFTP_Client
-#include "Net_Config_TFTP_Client.h"
-#endif
-
-#ifdef RTE_Network_FTP_Server
-#include "Net_Config_FTP_Server.h"
-#endif
-#ifdef RTE_Network_FTP_Client
-#include "Net_Config_FTP_Client.h"
-#endif
-
-#ifdef RTE_Network_DNS_Client
-#include "Net_Config_DNS_Client.h"
-#endif
-
-#ifdef RTE_Network_SMTP_Client
-#include "Net_Config_SMTP_Client.h"
-#endif
-
-#ifdef RTE_Network_SNMP_Agent
-#include "Net_Config_SNMP_Agent.h"
-#endif
-
-#ifdef RTE_Network_SNTP_Client
-#include "Net_Config_SNTP_Client.h"
-#endif
-
-#include "net_config.h"
-
-/**
-\addtogroup net_genFunc
-@{
-*/
-/**
- \fn void net_sys_error (ERROR_CODE error)
- \ingroup net_cores
- \brief Network system error handler.
-*/
-void net_sys_error (ERROR_CODE error) {
- /* This function is called when a fatal error is encountered. */
- /* The normal program execution is not possible anymore. */
-
- switch (error) {
- case ERR_MEM_ALLOC:
- /* Out of memory */
- break;
-
- case ERR_MEM_FREE:
- /* Trying to release non existing memory block */
- break;
-
- case ERR_MEM_CORRUPT:
- /* Memory Link pointer Corrupted */
- /* More data written than the size of allocated mem block */
- break;
-
- case ERR_MEM_LOCK:
- /* Locked Memory management function (alloc/free) re-entered */
- break;
-
- case ERR_UDP_ALLOC:
- /* Out of UDP Sockets */
- break;
-
- case ERR_TCP_ALLOC:
- /* Out of TCP Sockets */
- break;
-
- case ERR_TCP_STATE:
- /* TCP State machine in undefined state */
- break;
- }
-
- /* End-less loop */
- while (1);
-}
-/**
-@}
-*/
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_BSD.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_BSD.h
deleted file mode 100644
index 7d515a507..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_BSD.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_BSD.h
- * Purpose: Network Configuration BSD Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Berkley (BSD) Sockets
-#define BSD_ENABLE 1
-
-// Number of BSD Sockets <1-20>
-// Number of available Berkeley Sockets
-// Default: 2
-#define BSD_NUM_SOCKS 10
-
-// Number of Streaming Server Sockets <0-20>
-// Defines a number of Streaming (TCP) Server sockets,
-// that listen for an incoming connection from the client.
-// Default: 1
-#define BSD_SERVER_SOCKS 1
-
-// Receive Timeout in seconds <0-600>
-// A timeout for socket receive in blocking mode.
-// Timeout value of 0 means indefinite timeout.
-// Default: 20
-#define BSD_RECEIVE_TOUT 20
-
-// Hostname Resolver
-// Enable or disable Berkeley style hostname resolver.
-#define BSD_HOSTNAME_ENABLE 0
-
-//
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_DNS_Client.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_DNS_Client.h
deleted file mode 100644
index d30b71807..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_DNS_Client.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Service
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_DNS_Client.h
- * Purpose: Network Configuration DNS Client
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// DNS Client
-#define DNS_CLIENT_ENABLE 1
-
-// Cache Table size <5-100>
-// Number of cached DNS host names/IP addresses
-// Default: 20
-#define DNS_CLIENT_TAB_SIZE 20
-
-//
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_ETH_0.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_ETH_0.h
deleted file mode 100644
index fb38650b7..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_ETH_0.h
+++ /dev/null
@@ -1,222 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Interface
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_ETH_0.h
- * Purpose: Network Configuration ETH Interface
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Ethernet Network Interface 0
-#define ETH0_ENABLE 1
-
-// Connect to hardware via Driver_ETH# <0-255>
-// Select driver control block for MAC and PHY interface
-#define ETH0_DRIVER 0
-
-// MAC Address
-// Local Ethernet MAC Address
-// Value FF:FF:FF:FF:FF:FF is not allowed.
-// It is an ethernet Broadcast MAC address.
-// A0dress byte 1 <0x00-0xff:2>
-// LSB is an ethernet Multicast bit.
-// Must be 0 for local MAC address.
-// Default: 0x1E
-#define ETH0_MAC1 0x1E
-
-// Address byte 2 <0x00-0xff>
-// Default: 0x30
-#define ETH0_MAC2 0x30
-
-// Address byte 3 <0x00-0xff>
-// Default: 0x6C
-#define ETH0_MAC3 0x6C
-
-// Address byte 4 <0x00-0xff>
-// Default: 0xA2
-#define ETH0_MAC4 0xA2
-
-// Address byte 5 <0x00-0xff>
-// Default: 0x45
-#define ETH0_MAC5 0x45
-
-// Address byte 6 <0x00-0xff>
-// Default: 0x5E
-#define ETH0_MAC6 0x5E
-//
-
-// IP Address
-// Local Static IP Address
-// Value 255.255.255.255 is not allowed.
-// It is a Broadcast IP address.
-// Address byte 1 <0-255>
-// Default: 192
-#define ETH0_IP1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define ETH0_IP2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define ETH0_IP3 11
-
-// Address byte 4 <0-255>
-// Default: 100
-#define ETH0_IP4 101
-//
-
-// Subnet mask
-// Local Subnet mask
-// Mask byte 1 <0-255>
-// Default: 255
-#define ETH0_MASK1 255
-
-// Mask byte 2 <0-255>
-// Default: 255
-#define ETH0_MASK2 255
-
-// Mask byte 3 <0-255>
-// Default: 255
-#define ETH0_MASK3 255
-
-// Mask byte 4 <0-255>
-// Default: 0
-#define ETH0_MASK4 0
-//
-
-// Default Gateway
-// Default Gateway IP Address
-// Address byte 1 <0-255>
-// Default: 192
-#define ETH0_GW1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define ETH0_GW2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define ETH0_GW3 11
-
-// Address byte 4 <0-255>
-// Default: 254
-#define ETH0_GW4 1
-//
-
-// Primary DNS Server
-// Primary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define ETH0_PRI_DNS1 192
-
-// Address byte 2 <0-255>
-// Default: 25
-#define ETH0_PRI_DNS2 168
-
-// Address byte 3 <0-255>
-// Default: 2
-#define ETH0_PRI_DNS3 11
-
-// Address byte 4 <0-255>
-// Default: 129
-#define ETH0_PRI_DNS4 1
-//
-
-// Secondary DNS Server
-// Secondary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define ETH0_SEC_DNS1 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define ETH0_SEC_DNS2 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define ETH0_SEC_DNS3 2
-
-// Address byte 4 <0-255>
-// Default: 130
-#define ETH0_SEC_DNS4 130
-//
-
-// ARP Definitions
-// Address Resolution Protocol Definitions
-// Cache Table size <5-100>
-// Number of cached hardware/IP addresses
-// Default: 10
-#define ETH0_ARP_TAB_SIZE 10
-
-// Cache Timeout in seconds <5-255>
-// A timeout for a cached hardware/IP addresses
-// Default: 150
-#define ETH0_ARP_CACHE_TOUT 150
-
-// Number of Retries <0-20>
-// Number of Retries to resolve an IP address
-// before ARP module gives up
-// Default: 4
-#define ETH0_ARP_MAX_RETRY 4
-
-// Resend Timeout in seconds <1-10>
-// A timeout to resend the ARP Request
-// Default: 2
-#define ETH0_ARP_RESEND_TOUT 2
-
-// Send Notification on Address changes
-// When this option is enabled, the embedded host
-// will send a Gratuitous ARP notification at startup,
-// or when the device IP address has changed.
-// Default: Disabled
-#define ETH0_ARP_NOTIFY 0
-//
-
-// IGMP Group Management
-// Enable or disable Internet Group Management Protocol
-#define ETH0_IGMP_ENABLE 0
-
-// Membership Table size <2-50>
-// Number of Groups this host can join
-// Default: 5
-#define ETH0_IGMP_TAB_SIZE 5
-//
-
-// NetBIOS Name Service
-// When this option is enabled, the embedded host can be
-// accessed by his name on the local LAN using NBNS protocol.
-// You need to modify also the number of UDP Sockets,
-// because NBNS protocol uses one UDP socket to run.
-#define ETH0_NBNS_ENABLE 1
-
-// Dynamic Host Configuration
-// When this option is enabled, local IP address, Net Mask
-// and Default Gateway are obtained automatically from
-// the DHCP Server on local LAN.
-// You need to modify also the number of UDP Sockets,
-// because DHCP protocol uses one UDP socket to run.
-#define ETH0_DHCP_ENABLE 0
-
-// Vendor Class Identifier
-// This value is optional. If specified, it is added
-// to DHCP request message, identifying vendor type.
-// Default: ""
-#define ETH0_DHCP_VCID ""
-
-// Bootfile Name
-// This value is optional. If enabled, the Bootfile Name
-// (option 67) is also requested from DHCP server.
-// Default: disabled
-#define ETH0_DHCP_BOOTFILE 0
-
-// NTP Servers
-// This value is optional. If enabled, a list of NTP Servers
-// (option 42) is also requested from DHCP server.
-// Default: disabled
-#define ETH0_DHCP_NTP_SERVERS 0
-//
-
-//
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_TCP.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_TCP.h
deleted file mode 100644
index e659ce921..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_TCP.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_TCP.h
- * Purpose: Network Configuration TCP Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// TCP Sockets
-#define TCP_ENABLE 1
-
-// Number of TCP Sockets <1-20>
-// Number of available TCP sockets
-// Default: 5
-#define TCP_NUM_SOCKS 10
-
-// Number of Retries <0-20>
-// How many times TCP module will try to retransmit data
-// before giving up. Increase this value for high-latency
-// and low_throughput networks.
-// Default: 5
-#define TCP_MAX_RETRY 5
-
-// Retry Timeout in seconds <1-10>
-// If data frame not acknowledged within this time frame,
-// TCP module will try to resend the data again.
-// Default: 4
-#define TCP_RETRY_TOUT 4
-
-// Default Connect Timeout in seconds <1-600>
-// Default TCP Socket Keep Alive timeout. When it expires
-// with no TCP data frame send, TCP Connection is closed.
-// Default: 120
-#define TCP_DEFAULT_TOUT 120
-
-// Maximum Segment Size <536-1460>
-// The Maximum Segment Size specifies the maximum
-// number of bytes in the TCP segment's Data field.
-// Default: 1460
-#define TCP_MAX_SEG_SIZE 1460
-
-// Receive Window Size <536-65535>
-// Receive Window Size specifies the size of data,
-// that the socket is able to buffer in flow-control mode.
-// Default: 4380
-#define TCP_RECEIVE_WIN_SIZE 4380
-
-//
-
-// TCP Initial Retransmit period in seconds
-#define TCP_INITIAL_RETRY_TOUT 1
-
-// TCP SYN frame retransmit period in seconds
-#define TCP_SYN_RETRY_TOUT 2
-
-// Number of retries to establish a connection
-#define TCP_CONNECT_RETRY 7
-
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_UDP.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_UDP.h
deleted file mode 100644
index 55e7f21ba..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Config_UDP.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_UDP.h
- * Purpose: Network Configuration UDP Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// UDP Sockets
-#define UDP_ENABLE 1
-
-// Number of UDP Sockets <1-30>
-// Number of available UDP sockets
-// Default: 5
-#define UDP_NUM_SOCKS 15
-
-//
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Debug.c b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Debug.c
deleted file mode 100644
index 735089a40..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/Network/Net_Debug.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Debug.c
- * Purpose: Network Debug Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Print Time Stamp
-// Enable printing the time-info in debug messages
-#define DBG_TIME 1
-
-// TCPnet Debug Definitions
-// Memory Management Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Dynamic Memory debug messages
-#define DBG_MEM 1
-
-// Ethernet Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Ethernet debug messages
-#define DBG_ETH 0
-
-// PPP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off PPP debug messages
-#define DBG_PPP 0
-
-// SLIP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off SLIP debug messages
-#define DBG_SLIP 0
-
-// ARP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off ARP debug messages
-#define DBG_ARP 0
-
-// IP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off IP debug messages
-#define DBG_IP 1
-
-// ICMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off ICMP debug messages
-#define DBG_ICMP 1
-
-// IGMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off IGMP debug messages
-#define DBG_IGMP 1
-
-// UDP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off UDP debug messages
-#define DBG_UDP 1
-
-// TCP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TCP debug messages
-#define DBG_TCP 1
-
-// NBNS Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off NetBIOS Name Service debug messages
-#define DBG_NBNS 1
-
-// DHCP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Dynamic Host Configuration debug messages
-#define DBG_DHCP 1
-
-// DNS Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Domain Name Service debug messages
-#define DBG_DNS 1
-
-// SNMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Simple Network Management debug messages
-#define DBG_SNMP 1
-
-// SNTP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Simple Network Time debug messages
-#define DBG_SNTP 1
-
-// BSD Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off BSD Interface debug messages
-#define DBG_BSD 1
-//
-
-// Application Debug Definitions
-// HTTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Web Server debug messages
-#define DBG_HTTP_SERVER 1
-
-// FTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off FTP Server debug messages
-#define DBG_FTP_SERVER 1
-
-// FTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off FTP Client debug messages
-#define DBG_FTP_CLIENT 1
-
-// Telnet Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Telnet Server debug messages
-#define DBG_TELNET_SERVER 1
-
-// TFTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TFTP Server debug messages
-#define DBG_TFTP_SERVER 1
-
-// TFTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TFTP Client debug messages
-#define DBG_TFTP_CLIENT 1
-
-// SMTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off SMTP Client debug messages
-#define DBG_SMTP_CLIENT 1
-//
-
-
-#include "net_debug.h"
-
-
-/**
- \fn void net_debug_init (void)
- \brief Initialize Network Debug Interface.
-*/
-void net_debug_init (void) {
- /* Add your code to initialize the Debug output. This is usually the */
- /* serial interface. The function is called at TCPnet system startup. */
- /* You may need to customize also the 'putchar()' function. */
-
-}
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/RTE_Components.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/RTE_Components.h
deleted file mode 100644
index 07fef4e5e..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/RTE_Components.h
+++ /dev/null
@@ -1,28 +0,0 @@
-
-/*
- * Auto generated Run-Time-Environment Component Configuration File
- * *** Do not modify ! ***
- *
- * Project: 'CyaSSL-Full'
- * Target: 'CyaSSL-Full'
- */
-
-#ifndef RTE_COMPONENTS_H
-#define RTE_COMPONENTS_H
-
-#define RTE_DEVICE_STARTUP_STM32F2xx /* Device Startup for STM32F2 */
-#define RTE_Drivers_ETH_MAC0 /* Driver ETH_MAC0 */
-#define RTE_Drivers_MCI0 /* Driver MCI0 */
-#define RTE_Drivers_PHY_ST802RT1 /* Driver PHY ST802RT1 */
-#define RTE_FileSystem_Core /* File System Core */
- #define RTE_FileSystem_LFN /* File System with Long Filename support */
-#define RTE_FileSystem_Drive_MC_0 /* File System Memory Card Drive 0 */
-#define RTE_Network_Core /* Network Core */
- #define RTE_Network_Debug /* Network Debug Version */
-#define RTE_Network_DNS_Client /* Network DNS Client */
-#define RTE_Network_Interface_ETH_0 /* Network Interface ETH 0 */
-#define RTE_Network_Socket_BSD /* Network Socket BSD */
-#define RTE_Network_Socket_TCP /* Network Socket TCP */
-#define RTE_Network_Socket_UDP /* Network Socket UDP */
-
-#endif /* RTE_COMPONENTS_H */
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/config-Crypt.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/config-Crypt.h
deleted file mode 100644
index a11c3ef24..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/config-Crypt.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/* config-FS.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-// <<< Use Configuration Wizard in Context Menu >>>
-
-// wolfCrypt Configuration
-
-// Cert/Key Strage
-// Cert Storage <0=> SD Card <1=> Mem Buff (1024bytes) <2=> Mem Buff (2048bytes)
-#define MDK_CONF_CERT_BUFF 0
-#if MDK_CONF_CERT_BUFF== 1
-#define USE_CERT_BUFFERS_1024
-#elif MDK_CONF_CERT_BUFF == 2
-#define USE_CERT_BUFFERS_2048
-#endif
-//
-
-// Crypt Algrithm
-
-// MD5, SHA, SHA-256, AES, RC4, ASN, RSA
-//
-
-// MD2
-#define MDK_CONF_MD2 0
-#if MDK_CONF_MD2 == 1
-#define CYASSL_MD2
-#endif
-//
-// MD4
-#define MDK_CONF_MD4 1
-#if MDK_CONF_MD4 == 0
-#define NO_MD4
-#endif
-//
-// SHA-384
-// This has to be with SHA512
-#define MDK_CONF_SHA384 0
-#if MDK_CONF_SHA384 == 1
-#define CYASSL_SHA384
-#endif
-//
-// SHA-512
-#define MDK_CONF_SHA512 0
-#if MDK_CONF_SHA512 == 1
-#define CYASSL_SHA512
-#endif
-//
-// RIPEMD
-#define MDK_CONF_RIPEMD 0
-#if MDK_CONF_RIPEMD == 1
-#define CYASSL_RIPEMD
-#endif
-//
-// HMAC
-#define MDK_CONF_HMAC 1
-#if MDK_CONF_HMAC == 0
-#define NO_HMAC
-#endif
-//
-// HC128
-#define MDK_CONF_HC128 0
-#if MDK_CONF_HC128 == 1
-#define HAVE_HC128
-#endif
-//
-// RABBIT
-#define MDK_CONF_RABBIT 1
-#if MDK_CONF_RABBI == 0
-#define NO_RABBIT
-#endif
-//
-
-// AEAD
-#define MDK_CONF_AEAD 0
-#if MDK_CONF_AEAD == 1
-#define HAVE_AEAD
-#endif
-//
-// DES3
-#define MDK_CONF_DES3 1
-#if MDK_CONF_DES3 == 0
-#define NO_DES3
-#endif
-//
-// CAMELLIA
-#define MDK_CONF_CAMELLIA 0
-#if MDK_CONF_CAMELLIA == 1
-#define HAVE_CAMELLIA
-#endif
-//
-
-// DH
-// need this for CYASSL_SERVER, OPENSSL_EXTRA
-#define MDK_CONF_DH 1
-#if MDK_CONF_DH == 0
-#define NO_DH
-#endif
-//
-// DSA
-#define MDK_CONF_DSA 1
-#if MDK_CONF_DSA == 0
-#define NO_DSA
-#endif
-//
-// PWDBASED
-#define MDK_CONF_PWDBASED 1
-#if MDK_CONF_PWDBASED == 0
-#define NO_PWDBASED
-#endif
-//
-
-// ECC
-#define MDK_CONF_ECC 0
-#if MDK_CONF_ECC == 1
-#define HAVE_ECC
-#endif
-//
-// PSK
-#define MDK_CONF_PSK 1
-#if MDK_CONF_PSK == 0
-#define NO_PSK
-#endif
-//
-// AESCCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESCCM 0
-#if MDK_CONF_AESCCM == 1
-#define HAVE_AESCCM
-#endif
-//
-// AESGCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESGCM 0
-#if MDK_CONF_AESGCM == 1
-#define HAVE_AESGCM
-#define BUILD_AESGCM
-#endif
-//
-// NTRU (need License, "crypto_ntru.h")
-#define MDK_CONF_NTRU 0
-#if MDK_CONF_NTRU == 1
-#define HAVE_NTRU
-#endif
-//
-//
-
-// Hardware Crypt (See document for usage)
-// Hardware RNG
-#define MDK_CONF_STM32F2_RNG 0
-#if MDK_CONF_STM32F2_RNG == 1
-#define STM32F2_RNG
-#else
-
-#endif
-//
-// Hardware Crypt
-#define MDK_CONF_STM32F2_CRYPTO 0
-#if MDK_CONF_STM32F2_CRYPTO == 1
-#define STM32F2_CRYPTO
-#endif
-//
-
-//
-
-
-
-//
-// <<< end of configuration section >>>
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/config-CyaSSL.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/config-CyaSSL.h
deleted file mode 100644
index 02ba94bd4..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/config-CyaSSL.h
+++ /dev/null
@@ -1,144 +0,0 @@
-/* config-RTX-TCP-FS.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-/**** CyaSSL for KEIL-RL Configuration ****/
-
-#define __CORTEX_M3__
-#define CYASSL_MDK_ARM
-#define NO_WRITEV
-#define NO_CYASSL_DIR
-#define NO_MAIN_DRIVER
-
-
-#define CYASSL_DER_LOAD
-#define HAVE_NULL_CIPHER
-
-#define HAVE_KEIL_RTX
-#define CYASSL_CMSIS_RTOS
-#define CYASSL_KEIL_TCP_NET
-
-
-// <<< Use Configuration Wizard in Context Menu >>>
-// CyaSSL Configuration
-
-// SSL (Included by default)
-//
-
-// TLS
-#define MDK_CONF_TLS 1
-#if MDK_CONF_TLS == 0
-#define NO_TLS
-#endif
-//
-
-// CRL
-#define MDK_CONF_DER_LOAD 0
-#if MDK_CONF_DER_LOAD == 1
-#define CYASSL_DER_LOAD
-#endif
-//
-// OpenSSL Extra
-#define MDK_CONF_OPENSSL_EXTRA 1
-#if MDK_CONF_OPENSSL_EXTRA == 1
-#define OPENSSL_EXTRA
-#endif
-//
-//
-
-// Cert/Key Generation
-// CertGen
-#define MDK_CONF_CERT_GEN 0
-#if MDK_CONF_CERT_GEN == 1
-#define CYASSL_CERT_GEN
-#endif
-//
-// KeyGen
-#define MDK_CONF_KEY_GEN 0
-#if MDK_CONF_KEY_GEN == 1
-#define CYASSL_KEY_GEN
-#endif
-//
-//
-
-// Others
-
-// Inline
-#define MDK_CONF_INLINE 0
-#if MDK_CONF_INLINE == 0
-#define NO_INLINE
-#endif
-//
-// Debug
-// Debug Message
-#define MDK_CONF_DebugMessage 0
-#if MDK_CONF_DebugMessage == 1
-#define DEBUG_CYASSL
-#endif
-//
-// Check malloc
-#define MDK_CONF_CheckMalloc 1
-#if MDK_CONF_CheckMalloc == 1
-#define CYASSL_MALLOC_CHECK
-#endif
-//
-
-
-//
-// ErrNo.h
-#define MDK_CONF_ErrNo 0
-#if MDK_CONF_ErrNo == 1
-#define HAVE_ERRNO
-#endif
-//
-// Error Strings
-#define MDK_CONF_ErrorStrings 1
-#if MDK_CONF_ErrorStrings == 0
-#define NO_ERROR_STRINGS
-#endif
-//
-// zlib (need "zlib.h")
-#define MDK_CONF_LIBZ 0
-#if MDK_CONF_LIBZ == 1
-#define HAVE_LIBZ
-#endif
-//
-// CAVIUM (need CAVIUM headers)
-#define MDK_CONF_CAVIUM 0
-#if MDK_CONF_CAVIUM == 1
-#define HAVE_CAVIUM
-#endif
-//
-// Small Stack
-#define MDK_CONF_SmallStack 1
-#if MDK_CONF_SmallStack == 0
-#define NO_CYASSL_SMALL_STACK
-#endif
-//
-// Use Fast Math
-#define MDK_CONF_FASTMATH 0
-#if MDK_CONF_FASTMATH == 1
-#define USE_FAST_MATH
-#endif
-//
-//
-
-// <<< end of configuration section >>>
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/settings.h b/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/settings.h
deleted file mode 100644
index 33d41cfdb..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/RTE/wolfSSL/settings.h
+++ /dev/null
@@ -1,667 +0,0 @@
-/* settings.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-/* Place OS specific preprocessor flags, defines, includes here, will be
- included into every file because types.h includes it */
-
-
-#ifndef CTAO_CRYPT_SETTINGS_H
-#define CTAO_CRYPT_SETTINGS_H
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
-/* Uncomment next line if using IPHONE */
-/* #define IPHONE */
-
-/* Uncomment next line if using ThreadX */
-/* #define THREADX */
-
-/* Uncomment next line if using Micrium ucOS */
-/* #define MICRIUM */
-
-/* Uncomment next line if using Mbed */
-/* #define MBED */
-
-/* Uncomment next line if using Microchip PIC32 ethernet starter kit */
-/* #define MICROCHIP_PIC32 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 5 */
-/* #define MICROCHIP_TCPIP_V5 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 6 or later */
-/* #define MICROCHIP_TCPIP */
-
-/* Uncomment next line if using PIC32MZ Crypto Engine */
-/* #define CYASSL_MICROCHIP_PIC32MZ */
-
-/* Uncomment next line if using FreeRTOS */
-/* #define FREERTOS */
-
-/* Uncomment next line if using FreeRTOS Windows Simulator */
-/* #define FREERTOS_WINSIM */
-
-/* Uncomment next line if using RTIP */
-/* #define EBSNET */
-
-/* Uncomment next line if using lwip */
-/* #define CYASSL_LWIP */
-
-/* Uncomment next line if building CyaSSL for a game console */
-/* #define CYASSL_GAME_BUILD */
-
-/* Uncomment next line if building CyaSSL for LSR */
-/* #define CYASSL_LSR */
-
-/* Uncomment next line if building CyaSSL for Freescale MQX/RTCS/MFS */
-/* #define FREESCALE_MQX */
-
-/* Uncomment next line if using STM32F2 */
-/* #define CYASSL_STM32F2 */
-
-/* Uncomment next line if using Comverge settings */
-/* #define COMVERGE */
-
-/* Uncomment next line if using QL SEP settings */
-/* #define CYASSL_QL */
-
-/* Uncomment next line if using LwIP native TCP socket settings */
-/* #define HAVE_LWIP_NATIVE */
-
-/* Uncomment next line if building for EROAD */
-/* #define CYASSL_EROAD */
-
-#include
-
-#ifdef IPHONE
- #define SIZEOF_LONG_LONG 8
-#endif
-
-
-#ifdef CYASSL_USER_SETTINGS
- #include
-#endif
-
-
-#ifdef COMVERGE
- #define THREADX
- #define HAVE_NETX
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_RSA
- #define NO_SESSION_CACHE
- #define HAVE_ECC
-#endif
-
-
-#ifdef THREADX
- #define SIZEOF_LONG_LONG 8
-#endif
-
-#ifdef HAVE_NETX
- #include "nx_api.h"
-#endif
-
-#if defined(HAVE_LWIP_NATIVE) /* using LwIP native TCP socket */
- #define CYASSL_LWIP
- #define NO_WRITEV
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_FILESYSTEM
-#endif
-
-#ifdef MICROCHIP_PIC32
- /* #define CYASSL_MICROCHIP_PIC32MZ */
- #define SIZEOF_LONG_LONG 8
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef CYASSL_MICROCHIP_PIC32MZ
- #define CYASSL_PIC32MZ_CE
- #define CYASSL_PIC32MZ_CRYPT
- #define HAVE_AES_ENGINE
- #define CYASSL_PIC32MZ_RNG
- /* #define CYASSL_PIC32MZ_HASH */
- #define CYASSL_AES_COUNTER
- #define HAVE_AESGCM
- #define NO_BIG_INT
-
-#endif
-
-#ifdef MICROCHIP_TCPIP_V5
- /* include timer functions */
- #include "TCPIP Stack/TCPIP.h"
-#endif
-
-#ifdef MICROCHIP_TCPIP
- /* include timer, NTP functions */
- #ifdef MICROCHIP_MPLAB_HARMONY
- #include "tcpip/tcpip.h"
- #else
- #include "system/system_services.h"
- #include "tcpip/sntp.h"
- #endif
-#endif
-
-#ifdef MBED
- #define CYASSL_USER_IO
- #define NO_FILESYSTEM
- #define NO_CERT
- #define USE_CERT_BUFFERS_1024
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define HAVE_ECC
- #define NO_SESSION_CACHE
- #define CYASSL_CMSIS_RTOS
-#endif
-
-
-#ifdef CYASSL_EROAD
- #define FREESCALE_MQX
- #define FREESCALE_MMCAU
- #define SINGLE_THREADED
- #define NO_STDIO_FILESYSTEM
- #define CYASSL_LEANPSK
- #define HAVE_NULL_CIPHER
- #define NO_OLD_TLS
- #define NO_ASN
- #define NO_BIG_INT
- #define NO_RSA
- #define NO_DSA
- #define NO_DH
- #define NO_CERTS
- #define NO_PWDBASED
- #define NO_DES3
- #define NO_MD4
- #define NO_RC4
- #define NO_MD5
- #define NO_SESSION_CACHE
- #define NO_MAIN_DRIVER
-#endif
-
-#ifdef FREERTOS_WINSIM
- #define FREERTOS
- #define USE_WINDOWS_API
-#endif
-
-
-/* Micrium will use Visual Studio for compilation but not the Win32 API */
-#if defined(_WIN32) && !defined(MICRIUM) && !defined(FREERTOS) \
- && !defined(EBSNET) && !defined(CYASSL_EROAD)
- #define USE_WINDOWS_API
-#endif
-
-
-#if defined(CYASSL_LEANPSK) && !defined(XMALLOC_USER)
- #include
- #define XMALLOC(s, h, type) malloc((s))
- #define XFREE(p, h, type) free((p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
-#if defined(XMALLOC_USER) && defined(SSN_BUILDING_LIBYASSL)
- #undef XMALLOC
- #define XMALLOC yaXMALLOC
- #undef XFREE
- #define XFREE yaXFREE
- #undef XREALLOC
- #define XREALLOC yaXREALLOC
-#endif
-
-
-#ifdef FREERTOS
- #ifndef NO_WRITEV
- #define NO_WRITEV
- #endif
- #ifndef NO_SHA512
- #define NO_SHA512
- #endif
- #ifndef NO_DH
- #define NO_DH
- #endif
- #ifndef NO_DSA
- #define NO_DSA
- #endif
- #ifndef NO_HC128
- #define NO_HC128
- #endif
-
- #ifndef SINGLE_THREADED
- #include "FreeRTOS.h"
- #include "semphr.h"
- #endif
-#endif
-
-#ifdef EBSNET
- #include "rtip.h"
-
- /* #define DEBUG_CYASSL */
- #define NO_CYASSL_DIR /* tbd */
-
- #if (POLLOS)
- #define SINGLE_THREADED
- #endif
-
- #if (RTPLATFORM)
- #if (!RTP_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #else
- #if (!KS_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #endif
-
- #if (WINMSP3)
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #else
- #sslpro: settings.h - please implement SIZEOF_LONG and SIZEOF_LONG_LONG
- #endif
-
- #define XMALLOC(s, h, type) ((void *)rtp_malloc((s), SSL_PRO_MALLOC))
- #define XFREE(p, h, type) (rtp_free(p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-
-#endif /* EBSNET */
-
-#ifdef CYASSL_GAME_BUILD
- #define SIZEOF_LONG_LONG 8
- #if defined(__PPU) || defined(__XENON)
- #define BIG_ENDIAN_ORDER
- #endif
-#endif
-
-#ifdef CYASSL_LSR
- #define HAVE_WEBSERVER
- #define SIZEOF_LONG_LONG 8
- #define CYASSL_LOW_MEMORY
- #define NO_WRITEV
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #ifndef NO_FILESYSTEM
- #define LSR_FS
- #include "inc/hw_types.h"
- #include "fs.h"
- #endif
- #define CYASSL_LWIP
- #include /* for tcp errno */
- #define CYASSL_SAFERTOS
- #if defined(__IAR_SYSTEMS_ICC__)
- /* enum uses enum */
- #pragma diag_suppress=Pa089
- #endif
-#endif
-
-#ifdef CYASSL_SAFERTOS
- #ifndef SINGLE_THREADED
- #include "SafeRTOS/semphr.h"
- #endif
-
- #include "SafeRTOS/heap.h"
- #define XMALLOC(s, h, type) pvPortMalloc((s))
- #define XFREE(p, h, type) vPortFree((p))
- #define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
-#endif
-
-#ifdef CYASSL_LOW_MEMORY
- #undef RSA_LOW_MEM
- #define RSA_LOW_MEM
- #undef CYASSL_SMALL_STACK
- #define CYASSL_SMALL_STACK
- #undef TFM_TIMING_RESISTANT
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef FREESCALE_MQX
- #define SIZEOF_LONG_LONG 8
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_RABBIT
- #define NO_CYASSL_DIR
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
- #define FREESCALE_K70_RNGA
- /* #define FREESCALE_K53_RNGB */
- #include "mqx.h"
- #ifndef NO_FILESYSTEM
- #include "mfs.h"
- #include "fio.h"
- #endif
- #ifndef SINGLE_THREADED
- #include "mutex.h"
- #endif
-
- #define XMALLOC(s, h, t) (void *)_mem_alloc_system((s))
- #define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));}
- /* Note: MQX has no realloc, using fastmath above */
-#endif
-
-#ifdef CYASSL_STM32F2
- #define SIZEOF_LONG_LONG 8
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #define STM32F2_RNG
- #define STM32F2_CRYPTO
- #define KEIL_INTRINSICS
-#endif
-
-#ifdef MICRIUM
-
- #include "stdlib.h"
- #include "net_cfg.h"
- #include "ssl_cfg.h"
- #include "net_secure_os.h"
-
- #define CYASSL_TYPES
-
- typedef CPU_INT08U byte;
- typedef CPU_INT16U word16;
- typedef CPU_INT32U word32;
-
- #if (NET_SECURE_MGR_CFG_WORD_SIZE == CPU_WORD_SIZE_32)
- #define SIZEOF_LONG 4
- #undef SIZEOF_LONG_LONG
- #else
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #endif
-
- #define STRING_USER
-
- #define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr)))
- #define XSTRNCPY(pstr_dest, pstr_src, len_max) \
- ((CPU_CHAR *)Str_Copy_N((CPU_CHAR *)(pstr_dest), \
- (CPU_CHAR *)(pstr_src), (CPU_SIZE_T)(len_max)))
- #define XSTRNCMP(pstr_1, pstr_2, len_max) \
- ((CPU_INT16S)Str_Cmp_N((CPU_CHAR *)(pstr_1), \
- (CPU_CHAR *)(pstr_2), (CPU_SIZE_T)(len_max)))
- #define XSTRSTR(pstr, pstr_srch) \
- ((CPU_CHAR *)Str_Str((CPU_CHAR *)(pstr), \
- (CPU_CHAR *)(pstr_srch)))
- #define XMEMSET(pmem, data_val, size) \
- ((void)Mem_Set((void *)(pmem), (CPU_INT08U) (data_val), \
- (CPU_SIZE_T)(size)))
- #define XMEMCPY(pdest, psrc, size) ((void)Mem_Copy((void *)(pdest), \
- (void *)(psrc), (CPU_SIZE_T)(size)))
- #define XMEMCMP(pmem_1, pmem_2, size) \
- (((CPU_BOOLEAN)Mem_Cmp((void *)(pmem_1), (void *)(pmem_2), \
- (CPU_SIZE_T)(size))) ? DEF_NO : DEF_YES)
- #define XMEMMOVE XMEMCPY
-
-#if (NET_SECURE_MGR_CFG_EN == DEF_ENABLED)
- #define MICRIUM_MALLOC
- #define XMALLOC(s, h, type) ((void *)NetSecure_BlkGet((CPU_INT08U)(type), \
- (CPU_SIZE_T)(s), (void *)0))
- #define XFREE(p, h, type) (NetSecure_BlkFree((CPU_INT08U)(type), \
- (p), (void *)0))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
- #if (NET_SECURE_MGR_CFG_FS_EN == DEF_ENABLED)
- #undef NO_FILESYSTEM
- #else
- #define NO_FILESYSTEM
- #endif
-
- #if (SSL_CFG_TRACE_LEVEL == CYASSL_TRACE_LEVEL_DBG)
- #define DEBUG_CYASSL
- #else
- #undef DEBUG_CYASSL
- #endif
-
- #if (SSL_CFG_OPENSSL_EN == DEF_ENABLED)
- #define OPENSSL_EXTRA
- #else
- #undef OPENSSL_EXTRA
- #endif
-
- #if (SSL_CFG_MULTI_THREAD_EN == DEF_ENABLED)
- #undef SINGLE_THREADED
- #else
- #define SINGLE_THREADED
- #endif
-
- #if (SSL_CFG_DH_EN == DEF_ENABLED)
- #undef NO_DH
- #else
- #define NO_DH
- #endif
-
- #if (SSL_CFG_DSA_EN == DEF_ENABLED)
- #undef NO_DSA
- #else
- #define NO_DSA
- #endif
-
- #if (SSL_CFG_PSK_EN == DEF_ENABLED)
- #undef NO_PSK
- #else
- #define NO_PSK
- #endif
-
- #if (SSL_CFG_3DES_EN == DEF_ENABLED)
- #undef NO_DES
- #else
- #define NO_DES
- #endif
-
- #if (SSL_CFG_AES_EN == DEF_ENABLED)
- #undef NO_AES
- #else
- #define NO_AES
- #endif
-
- #if (SSL_CFG_RC4_EN == DEF_ENABLED)
- #undef NO_RC4
- #else
- #define NO_RC4
- #endif
-
- #if (SSL_CFG_RABBIT_EN == DEF_ENABLED)
- #undef NO_RABBIT
- #else
- #define NO_RABBIT
- #endif
-
- #if (SSL_CFG_HC128_EN == DEF_ENABLED)
- #undef NO_HC128
- #else
- #define NO_HC128
- #endif
-
- #if (CPU_CFG_ENDIAN_TYPE == CPU_ENDIAN_TYPE_BIG)
- #define BIG_ENDIAN_ORDER
- #else
- #undef BIG_ENDIAN_ORDER
- #define LITTLE_ENDIAN_ORDER
- #endif
-
- #if (SSL_CFG_MD4_EN == DEF_ENABLED)
- #undef NO_MD4
- #else
- #define NO_MD4
- #endif
-
- #if (SSL_CFG_WRITEV_EN == DEF_ENABLED)
- #undef NO_WRITEV
- #else
- #define NO_WRITEV
- #endif
-
- #if (SSL_CFG_USER_RNG_SEED_EN == DEF_ENABLED)
- #define NO_DEV_RANDOM
- #else
- #undef NO_DEV_RANDOM
- #endif
-
- #if (SSL_CFG_USER_IO_EN == DEF_ENABLED)
- #define CYASSL_USER_IO
- #else
- #undef CYASSL_USER_IO
- #endif
-
- #if (SSL_CFG_DYNAMIC_BUFFERS_EN == DEF_ENABLED)
- #undef LARGE_STATIC_BUFFERS
- #undef STATIC_CHUNKS_ONLY
- #else
- #define LARGE_STATIC_BUFFERS
- #define STATIC_CHUNKS_ONLY
- #endif
-
- #if (SSL_CFG_DER_LOAD_EN == DEF_ENABLED)
- #define CYASSL_DER_LOAD
- #else
- #undef CYASSL_DER_LOAD
- #endif
-
- #if (SSL_CFG_DTLS_EN == DEF_ENABLED)
- #define CYASSL_DTLS
- #else
- #undef CYASSL_DTLS
- #endif
-
- #if (SSL_CFG_CALLBACKS_EN == DEF_ENABLED)
- #define CYASSL_CALLBACKS
- #else
- #undef CYASSL_CALLBACKS
- #endif
-
- #if (SSL_CFG_FAST_MATH_EN == DEF_ENABLED)
- #define USE_FAST_MATH
- #else
- #undef USE_FAST_MATH
- #endif
-
- #if (SSL_CFG_TFM_TIMING_RESISTANT_EN == DEF_ENABLED)
- #define TFM_TIMING_RESISTANT
- #else
- #undef TFM_TIMING_RESISTANT
- #endif
-
-#endif /* MICRIUM */
-
-
-#ifdef CYASSL_QL
- #ifndef CYASSL_SEP
- #define CYASSL_SEP
- #endif
- #ifndef OPENSSL_EXTRA
- #define OPENSSL_EXTRA
- #endif
- #ifndef SESSION_CERTS
- #define SESSION_CERTS
- #endif
- #ifndef HAVE_AESCCM
- #define HAVE_AESCCM
- #endif
- #ifndef ATOMIC_USER
- #define ATOMIC_USER
- #endif
- #ifndef CYASSL_DER_LOAD
- #define CYASSL_DER_LOAD
- #endif
- #ifndef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
- #endif
- #ifndef HAVE_ECC
- #define HAVE_ECC
- #endif
- #ifndef SESSION_INDEX
- #define SESSION_INDEX
- #endif
-#endif /* CYASSL_QL */
-
-
-#if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \
- !defined(CYASSL_LEANPSK) && !defined(NO_CYASSL_MEMORY)
- #define USE_CYASSL_MEMORY
-#endif
-
-
-#if defined(OPENSSL_EXTRA) && !defined(NO_CERTS)
- #undef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
-#endif
-
-
-/* stream ciphers except arc4 need 32bit alignment, intel ok without */
-#ifndef XSTREAM_ALIGNMENT
- #if defined(__x86_64__) || defined(__ia64__) || defined(__i386__)
- #define NO_XSTREAM_ALIGNMENT
- #else
- #define XSTREAM_ALIGNMENT
- #endif
-#endif
-
-
-/* if using hardware crypto and have alignment requirements, specify the
- requirement here. The record header of SSL/TLS will prvent easy alignment.
- This hint tries to help as much as possible. */
-#ifndef CYASSL_GENERAL_ALIGNMENT
- #ifdef CYASSL_AESNI
- #define CYASSL_GENERAL_ALIGNMENT 16
- #elif defined(XSTREAM_ALIGNMENT)
- #define CYASSL_GENERAL_ALIGNMENT 4
- #else
- #define CYASSL_GENERAL_ALIGNMENT 0
- #endif
-#endif
-
-#ifdef HAVE_CRL
- /* not widely supported yet */
- #undef NO_SKID
- #define NO_SKID
-#endif
-
-/* Place any other flags or defines here */
-
-
-#ifdef __cplusplus
- } /* extern "C" */
-#endif
-
-
-#endif /* CTAO_CRYPT_SETTINGS_H */
-
diff --git a/IDE/MDK5-ARM/Projects/CyaSSL-Full/STM32_SWO.ini b/IDE/MDK5-ARM/Projects/CyaSSL-Full/STM32_SWO.ini
deleted file mode 100644
index 239abce37..000000000
--- a/IDE/MDK5-ARM/Projects/CyaSSL-Full/STM32_SWO.ini
+++ /dev/null
@@ -1,36 +0,0 @@
-/******************************************************************************/
-/* STM32_SWO.ini: STM32 Debugger Initialization File */
-/******************************************************************************/
-// <<< Use Configuration Wizard in Context Menu >>> //
-/******************************************************************************/
-/* This file is part of the uVision/ARM development tools. */
-/* Copyright (c) 2004-2013 Keil Software. All rights reserved. */
-/* This software may only be used under the terms of a valid, current, */
-/* end user licence from KEIL for a compatible version of KEIL software */
-/* development tools. Nothing else gives you the right to use this software. */
-/******************************************************************************/
-
-
-FUNC void DebugSetup (void) {
-// Debug MCU Configuration
-// DBG_SLEEP Debug Sleep Mode
-// DBG_STOP Debug Stop Mode
-// DBG_STANDBY Debug Standby Mode
-// TRACE_IOEN Trace I/O Enable
-// TRACE_MODE Trace Mode
-// <0=> Asynchronous
-// <1=> Synchronous: TRACEDATA Size 1
-// <2=> Synchronous: TRACEDATA Size 2
-// <3=> Synchronous: TRACEDATA Size 4
-// DBG_IWDG_STOP Independant Watchdog Stopped when Core is halted
-// DBG_WWDG_STOP Window Watchdog Stopped when Core is halted
-// DBG_TIM1_STOP Timer 1 Stopped when Core is halted
-// DBG_TIM2_STOP Timer 2 Stopped when Core is halted
-// DBG_TIM3_STOP Timer 3 Stopped when Core is halted
-// DBG_TIM4_STOP Timer 4 Stopped when Core is halted
-// DBG_CAN_STOP CAN Stopped when Core is halted
-//
- _WDWORD(0xE0042004, 0x00000027); // DBGMCU_CR
-}
-
-DebugSetup(); // Debugger Setup
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/CMSIS/RTX_Conf_CM.c b/IDE/MDK5-ARM/Projects/EchoClient/RTE/CMSIS/RTX_Conf_CM.c
deleted file mode 100644
index 435c44ad9..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/CMSIS/RTX_Conf_CM.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - RTX
- *----------------------------------------------------------------------------
- * Name: RTX_Conf_CM.C
- * Purpose: Configuration of CMSIS RTX Kernel for Cortex-M
- * Rev.: V4.73
- *----------------------------------------------------------------------------
- *
- * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
- * 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 ARM 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 COPYRIGHT HOLDERS AND CONTRIBUTORS 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.
- *---------------------------------------------------------------------------*/
-
-#include "cmsis_os.h"
-
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part BEGIN
- *---------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// Thread Configuration
-// =======================
-//
-// Number of concurrent running threads <0-250>
-// Defines max. number of threads that will run at the same time.
-// Default: 6
-#ifndef OS_TASKCNT
- #define OS_TASKCNT 6
-#endif
-
-// Default Thread stack size [bytes] <64-4096:8><#/4>
-// Defines default stack size for threads with osThreadDef stacksz = 0
-// Default: 200
-#ifndef OS_STKSIZE
- #define OS_STKSIZE 300
-#endif
-
-// Main Thread stack size [bytes] <64-32768:8><#/4>
-// Defines stack size for main thread.
-// Default: 200
-#ifndef OS_MAINSTKSIZE
- #define OS_MAINSTKSIZE 2000
-#endif
-
-// Number of threads with user-provided stack size <0-250>
-// Defines the number of threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVCNT
- #define OS_PRIVCNT 0
-#endif
-
-// Total stack size [bytes] for threads with user-provided stack size <0-1048576:8><#/4>
-// Defines the combined stack size for threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVSTKSIZE
- #define OS_PRIVSTKSIZE 2500
-#endif
-
-// Check for stack overflow
-// Includes the stack checking code for stack overflow.
-// Note that additional code reduces the Kernel performance.
-#ifndef OS_STKCHECK
- #define OS_STKCHECK 1
-#endif
-
-// Processor mode for thread execution
-// <0=> Unprivileged mode
-// <1=> Privileged mode
-// Default: Privileged mode
-#ifndef OS_RUNPRIV
- #define OS_RUNPRIV 1
-#endif
-
-//
-
-// RTX Kernel Timer Tick Configuration
-// ======================================
-// Use Cortex-M SysTick timer as RTX Kernel Timer
-// Use the Cortex-M SysTick timer as a time-base for RTX.
-#ifndef OS_SYSTICK
- #define OS_SYSTICK 1
-#endif
-//
-// Timer clock value [Hz] <1-1000000000>
-// Defines the timer clock value.
-// Default: 12000000 (12MHz)
-#ifndef OS_CLOCK
- #define OS_CLOCK 12000000
-#endif
-
-// Timer tick value [us] <1-1000000>
-// Defines the timer tick value.
-// Default: 1000 (1ms)
-#ifndef OS_TICK
- #define OS_TICK 1000
-#endif
-
-//
-
-// System Configuration
-// =======================
-//
-// Round-Robin Thread switching
-// ===============================
-//
-// Enables Round-Robin Thread switching.
-#ifndef OS_ROBIN
- #define OS_ROBIN 1
-#endif
-
-// Round-Robin Timeout [ticks] <1-1000>
-// Defines how long a thread will execute before a thread switch.
-// Default: 5
-#ifndef OS_ROBINTOUT
- #define OS_ROBINTOUT 5
-#endif
-
-//
-
-// User Timers
-// ==============
-// Enables user Timers
-#ifndef OS_TIMERS
- #define OS_TIMERS 1
-#endif
-
-// Timer Thread Priority
-// <1=> Low
-// <2=> Below Normal <3=> Normal <4=> Above Normal
-// <5=> High
-// <6=> Realtime (highest)
-// Defines priority for Timer Thread
-// Default: High
-#ifndef OS_TIMERPRIO
- #define OS_TIMERPRIO 5
-#endif
-
-// Timer Thread stack size [bytes] <64-4096:8><#/4>
-// Defines stack size for Timer thread.
-// Default: 200
-#ifndef OS_TIMERSTKSZ
- #define OS_TIMERSTKSZ 50
-#endif
-
-// Timer Callback Queue size <1-32>
-// Number of concurrent active timer callback functions.
-// Default: 4
-#ifndef OS_TIMERCBQS
- #define OS_TIMERCBQS 4
-#endif
-
-//
-
-// ISR FIFO Queue size<4=> 4 entries <8=> 8 entries
-// <12=> 12 entries <16=> 16 entries
-// <24=> 24 entries <32=> 32 entries
-// <48=> 48 entries <64=> 64 entries
-// <96=> 96 entries
-// ISR functions store requests to this buffer,
-// when they are called from the interrupt handler.
-// Default: 16 entries
-#ifndef OS_FIFOSZ
- #define OS_FIFOSZ 16
-#endif
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-// Standard library system mutexes
-// ===============================
-// Define max. number system mutexes that are used to protect
-// the arm standard runtime library. For microlib they are not used.
-#ifndef OS_MUTEXCNT
- #define OS_MUTEXCNT 8
-#endif
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part END
- *---------------------------------------------------------------------------*/
-
-#define OS_TRV ((uint32_t)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
-
-
-/*----------------------------------------------------------------------------
- * Global Functions
- *---------------------------------------------------------------------------*/
-
-/*--------------------------- os_idle_demon ---------------------------------*/
-
-void os_idle_demon (void) {
- /* The idle demon is a system thread, running when no other thread is */
- /* ready to run. */
-
- for (;;) {
- /* HERE: include optional user code to be executed when no thread runs.*/
- }
-}
-
-#if (OS_SYSTICK == 0) // Functions for alternative timer as RTX kernel timer
-
-/*--------------------------- os_tick_init ----------------------------------*/
-
-// Initialize alternative hardware timer as RTX kernel timer
-// Return: IRQ number of the alternative hardware timer
-int os_tick_init (void) {
- return (-1); /* Return IRQ number of timer (0..239) */
-}
-
-/*--------------------------- os_tick_val -----------------------------------*/
-
-// Get alternative hardware timer current value (0 .. OS_TRV)
-uint32_t os_tick_val (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_ovf -----------------------------------*/
-
-// Get alternative hardware timer overflow flag
-// Return: 1 - overflow, 0 - no overflow
-uint32_t os_tick_ovf (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_irqack --------------------------------*/
-
-// Acknowledge alternative hardware timer interrupt
-void os_tick_irqack (void) {
- /* ... */
-}
-
-#endif // (OS_SYSTICK == 0)
-
-/*--------------------------- os_error --------------------------------------*/
-
-/* OS Error Codes */
-#define OS_ERROR_STACK_OVF 1
-#define OS_ERROR_FIFO_OVF 2
-#define OS_ERROR_MBX_OVF 3
-
-extern osThreadId svcThreadGetId (void);
-
-void os_error (uint32_t error_code) {
- /* This function is called when a runtime error is detected. */
- /* Parameter 'error_code' holds the runtime error code. */
-
- /* HERE: include optional code to be executed on runtime error. */
- switch (error_code) {
- case OS_ERROR_STACK_OVF:
- /* Stack overflow detected for the currently running task. */
- /* Thread can be identified by calling svcThreadGetId(). */
- break;
- case OS_ERROR_FIFO_OVF:
- /* ISR FIFO Queue buffer overflow detected. */
- break;
- case OS_ERROR_MBX_OVF:
- /* Mailbox overflow detected. */
- break;
- }
- for (;;);
-}
-
-
-/*----------------------------------------------------------------------------
- * RTX Configuration Functions
- *---------------------------------------------------------------------------*/
-
-#include "RTX_CM_lib.h"
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/RTE_Device.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/RTE_Device.h
deleted file mode 100644
index 4a09246f3..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/RTE_Device.h
+++ /dev/null
@@ -1,3127 +0,0 @@
-/* -----------------------------------------------------------------------------
- * Copyright (C) 2013 ARM Limited. All rights reserved.
- *
- * $Date: 27. June 2013
- * $Revision: V1.01
- *
- * Project: RTE Device Configuration for ST STM32F2xx
- * -------------------------------------------------------------------------- */
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-#ifndef __RTE_DEVICE_H
-#define __RTE_DEVICE_H
-
-
-#define GPIO_PORT(num) \
- ((num == 0) ? GPIOA : \
- (num == 1) ? GPIOB : \
- (num == 2) ? GPIOC : \
- (num == 3) ? GPIOD : \
- (num == 4) ? GPIOE : \
- (num == 5) ? GPIOF : \
- (num == 6) ? GPIOG : \
- (num == 7) ? GPIOH : \
- (num == 8) ? GPIOI : \
- NULL)
-
-
-// Clock Configuration
-// High-speed Internal Clock <1-999999999>
-#define RTE_HSI 16000000
-// High-speed External Clock <1-999999999>
-#define RTE_HSE 25000000
-// System Clock <1-999999999>
-#define RTE_SYSCLK 120000000
-// AHB Clock <1-999999999>
-#define RTE_HCLK 120000000
-// APB1 Clock <1-999999999>
-#define RTE_PCLK1 30000000
-// APB2 Clock <1-999999999>
-#define RTE_PCLK2 60000000
-// 48MHz Clock
-#define RTE_PLL48CK 48000000
-//
-
-
-// USART1 (Universal synchronous asynchronous receiver transmitter) [Driver_UART1]
-// Configuration settings for Driver_UART1 in component ::Drivers:UART
-#define RTE_USART1 0
-
-// USART1_TX Pin <0=>PA9 <1=>PB6
-#define RTE_USART1_TX_ID 0
-#if (RTE_USART1_TX_ID == 0)
-#define RTE_USART1_TX_PORT GPIOA
-#define RTE_USART1_TX_BIT 9
-#elif (RTE_USART1_TX_ID == 1)
-#define RTE_USART1_TX_PORT GPIOB
-#define RTE_USART1_TX_BIT 6
-#else
-#error "Invalid USART1_TX Pin Configuration!"
-#endif
-
-// USART1_RX Pin <0=>PA10 <1=>PB7
-#define RTE_USART1_RX_ID 0
-#if (RTE_USART1_RX_ID == 0)
-#define RTE_USART1_RX_PORT GPIOA
-#define RTE_USART1_RX_BIT 10
-#elif (RTE_USART1_RX_ID == 1)
-#define RTE_USART1_RX_PORT GPIOB
-#define RTE_USART1_RX_BIT 7
-#else
-#error "Invalid USART1_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART1_CK Pin <0=>PA8
-//
-#define RTE_USART1_CK 0
-#define RTE_USART1_CK_ID 0
-#if (RTE_USART1_CK_ID == 0)
-#define RTE_USART1_CK_PORT GPIOA
-#define RTE_USART1_CK_BIT 8
-#else
-#error "Invalid USART1_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART1_CTS Pin <0=>PA11
-// USART1_RTS Pin <0=>PA12
-// Manual CTS/RTS
-//
-#define RTE_USART1_HW_FLOW 0
-#define RTE_USART1_CTS_ID 0
-#define RTE_USART1_RTS_ID 0
-#define RTE_USART1_MANUAL_FLOW 0
-#if (RTE_USART1_CTS_ID == 0)
-#define RTE_USART1_CTS_PORT GPIOA
-#define RTE_USART1_CTS_BIT 11
-#else
-#error "Invalid USART1_CTS Pin Configuration!"
-#endif
-#if (RTE_USART1_RTS_ID == 0)
-#define RTE_USART1_RTS_PORT GPIOA
-#define RTE_USART1_RTS_BIT 12
-#else
-#error "Invalid USART1_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <2=>2 <5=>5
-// Selects DMA Stream (only Stream 2 or 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_RX_DMA 1
-#define RTE_USART1_RX_DMA_NUMBER 2
-#define RTE_USART1_RX_DMA_STREAM 2
-#define RTE_USART1_RX_DMA_CHANNEL 4
-#define RTE_USART1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_TX_DMA 1
-#define RTE_USART1_TX_DMA_NUMBER 2
-#define RTE_USART1_TX_DMA_STREAM 7
-#define RTE_USART1_TX_DMA_CHANNEL 4
-#define RTE_USART1_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART2 (Universal synchronous asynchronous receiver transmitter) [Driver_UART2]
-// Configuration settings for Driver_UART2 in component ::Drivers:UART
-#define RTE_USART2 0
-
-// USART2_TX Pin <0=>PA2 <1=>PD5
-#define RTE_USART2_TX_ID 0
-#if (RTE_USART2_TX_ID == 0)
-#define RTE_USART2_TX_PORT GPIOA
-#define RTE_USART2_TX_BIT 2
-#elif (RTE_USART2_TX_ID == 1)
-#define RTE_USART2_TX_PORT GPIOD
-#define RTE_USART2_TX_BIT 5
-#else
-#error "Invalid USART2_TX Pin Configuration!"
-#endif
-
-// USART2_RX Pin <0=>PA3 <1=>PD6
-#define RTE_USART2_RX_ID 0
-#if (RTE_USART2_RX_ID == 0)
-#define RTE_USART2_RX_PORT GPIOA
-#define RTE_USART2_RX_BIT 3
-#elif (RTE_USART2_RX_ID == 1)
-#define RTE_USART2_RX_PORT GPIOD
-#define RTE_USART2_RX_BIT 6
-#else
-#error "Invalid USART2_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART2_CK Pin <0=>PA4 <1=>PD7
-//
-#define RTE_USART2_CK 0
-#define RTE_USART2_CK_ID 0
-#if (RTE_USART2_CK_ID == 0)
-#define RTE_USART2_CK_PORT GPIOA
-#define RTE_USART2_CK_BIT 4
-#elif (RTE_USART2_CK_ID == 1)
-#define RTE_USART2_CK_PORT GPIOD
-#define RTE_USART2_CK_BIT 7
-#else
-#error "Invalid USART2_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART2_CTS Pin <0=>PA0 <1=>PD3
-// USART2_RTS Pin <0=>PA1 <1=>PD4
-// Manual CTS/RTS
-//
-#define RTE_USART2_HW_FLOW 0
-#define RTE_USART2_CTS_ID 0
-#define RTE_USART2_RTS_ID 0
-#define RTE_USART2_MANUAL_FLOW 0
-#if (RTE_USART2_CTS_ID == 0)
-#define RTE_USART2_CTS_PORT GPIOA
-#define RTE_USART2_CTS_BIT 0
-#elif (RTE_USART2_CTS_ID == 1)
-#define RTE_USART2_CTS_PORT GPIOD
-#define RTE_USART2_CTS_BIT 3
-#else
-#error "Invalid USART2_CTS Pin Configuration!"
-#endif
-#if (RTE_USART2_RTS_ID == 0)
-#define RTE_USART2_RTS_PORT GPIOA
-#define RTE_USART2_RTS_BIT 1
-#elif (RTE_USART2_RTS_ID == 1)
-#define RTE_USART2_RTS_PORT GPIOD
-#define RTE_USART2_RTS_BIT 4
-#else
-#error "Invalid USART2_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5
-// Selects DMA Stream (only Stream 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_RX_DMA 1
-#define RTE_USART2_RX_DMA_NUMBER 1
-#define RTE_USART2_RX_DMA_STREAM 5
-#define RTE_USART2_RX_DMA_CHANNEL 4
-#define RTE_USART2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6
-// Selects DMA Stream (only Stream 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_TX_DMA 1
-#define RTE_USART2_TX_DMA_NUMBER 1
-#define RTE_USART2_TX_DMA_STREAM 6
-#define RTE_USART2_TX_DMA_CHANNEL 4
-#define RTE_USART2_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART3 (Universal synchronous asynchronous receiver transmitter) [Driver_UART3]
-// Configuration settings for Driver_UART3 in component ::Drivers:UART
-#define RTE_USART3 0
-
-// USART3_TX Pin <0=>PB10 <1=>PC10 <2=>PD8
-#define RTE_USART3_TX_ID 0
-#if (RTE_USART3_TX_ID == 0)
-#define RTE_USART3_TX_PORT GPIOB
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 1)
-#define RTE_USART3_TX_PORT GPIOC
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 2)
-#define RTE_USART3_TX_PORT GPIOD
-#define RTE_USART3_TX_BIT 8
-#else
-#error "Invalid USART3_TX Pin Configuration!"
-#endif
-
-// USART3_RX Pin <0=>PB11 <1=>PC11 <2=>PD9
-#define RTE_USART3_RX_ID 0
-#if (RTE_USART3_RX_ID == 0)
-#define RTE_USART3_RX_PORT GPIOB
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 1)
-#define RTE_USART3_RX_PORT GPIOC
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 2)
-#define RTE_USART3_RX_PORT GPIOD
-#define RTE_USART3_RX_BIT 9
-#else
-#error "Invalid USART3_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART3_CK Pin <0=>PB12 <1=>PC12 <2=>PD10
-//
-#define RTE_USART3_CK 0
-#define RTE_USART3_CK_ID 0
-#if (RTE_USART3_CK_ID == 0)
-#define RTE_USART3_CK_PORT GPIOB
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 1)
-#define RTE_USART3_CK_PORT GPIOC
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 2)
-#define RTE_USART3_CK_PORT GPIOD
-#define RTE_USART3_CK_BIT 10
-#else
-#error "Invalid USART3_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART3_CTS Pin <0=>PB13 <1=>PD11
-// USART3_RTS Pin <0=>PB14 <1=>PD12
-// Manual CTS/RTS
-//
-#define RTE_USART3_HW_FLOW 0
-#define RTE_USART3_CTS_ID 0
-#define RTE_USART3_RTS_ID 0
-#define RTE_USART3_MANUAL_FLOW 0
-#if (RTE_USART3_CTS_ID == 0)
-#define RTE_USART3_CTS_PORT GPIOB
-#define RTE_USART3_CTS_BIT 13
-#elif (RTE_USART3_CTS_ID == 1)
-#define RTE_USART3_CTS_PORT GPIOD
-#define RTE_USART3_CTS_BIT 11
-#else
-#error "Invalid USART3_CTS Pin Configuration!"
-#endif
-#if (RTE_USART3_RTS_ID == 0)
-#define RTE_USART3_RTS_PORT GPIOB
-#define RTE_USART3_RTS_BIT 14
-#elif (RTE_USART3_RTS_ID == 1)
-#define RTE_USART3_RTS_PORT GPIOD
-#define RTE_USART3_RTS_BIT 12
-#else
-#error "Invalid USART3_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <1=>1
-// Selects DMA Stream (only Stream 1 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_RX_DMA 1
-#define RTE_USART3_RX_DMA_NUMBER 1
-#define RTE_USART3_RX_DMA_STREAM 1
-#define RTE_USART3_RX_DMA_CHANNEL 4
-#define RTE_USART3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_TX_DMA 1
-#define RTE_USART3_TX_DMA_NUMBER 1
-#define RTE_USART3_TX_DMA_STREAM 3
-#define RTE_USART3_TX_DMA_CHANNEL 4
-#define RTE_USART3_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART4 (Universal asynchronous receiver transmitter) [Driver_UART4]
-// Configuration settings for Driver_UART4 in component ::Drivers:UART
-#define RTE_UART4 0
-
-// UART4_TX Pin <0=>PA0 <1=>PC10
-#define RTE_UART4_TX_ID 0
-#if (RTE_UART4_TX_ID == 0)
-#define RTE_UART4_TX_PORT GPIOA
-#define RTE_UART4_TX_BIT 0
-#elif (RTE_UART4_TX_ID == 1)
-#define RTE_UART4_TX_PORT GPIOC
-#define RTE_UART4_TX_BIT 10
-#else
-#error "Invalid UART4_TX Pin Configuration!"
-#endif
-
-// UART4_RX Pin <0=>PA1 <1=>PC11
-#define RTE_UART4_RX_ID 0
-#if (RTE_UART4_RX_ID == 0)
-#define RTE_UART4_RX_PORT GPIOA
-#define RTE_UART4_RX_BIT 1
-#elif (RTE_UART4_RX_ID == 1)
-#define RTE_UART4_RX_PORT GPIOC
-#define RTE_UART4_RX_BIT 11
-#else
-#error "Invalid UART4_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_RX_DMA 1
-#define RTE_UART4_RX_DMA_NUMBER 1
-#define RTE_UART4_RX_DMA_STREAM 2
-#define RTE_UART4_RX_DMA_CHANNEL 4
-#define RTE_UART4_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_TX_DMA 1
-#define RTE_UART4_TX_DMA_NUMBER 1
-#define RTE_UART4_TX_DMA_STREAM 4
-#define RTE_UART4_TX_DMA_CHANNEL 4
-#define RTE_UART4_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART5 (Universal asynchronous receiver transmitter) [Driver_UART5]
-// Configuration settings for Driver_UART5 in component ::Drivers:UART
-#define RTE_UART5 0
-
-// UART5_TX Pin <0=>PC12
-#define RTE_UART5_TX_ID 0
-#if (RTE_UART5_TX_ID == 0)
-#define RTE_UART5_TX_PORT GPIOC
-#define RTE_UART5_TX_BIT 12
-#else
-#error "Invalid UART5_TX Pin Configuration!"
-#endif
-
-// UART5_RX Pin <0=>PD2
-#define RTE_UART5_RX_ID 0
-#if (RTE_UART5_RX_ID == 0)
-#define RTE_UART5_RX_PORT GPIOD
-#define RTE_UART5_RX_BIT 2
-#else
-#error "Invalid UART5_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0
-// Selects DMA Stream (only Stream 0 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_RX_DMA 1
-#define RTE_UART5_RX_DMA_NUMBER 1
-#define RTE_UART5_RX_DMA_STREAM 0
-#define RTE_UART5_RX_DMA_CHANNEL 4
-#define RTE_UART5_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_TX_DMA 1
-#define RTE_UART5_TX_DMA_NUMBER 1
-#define RTE_UART5_TX_DMA_STREAM 7
-#define RTE_UART5_TX_DMA_CHANNEL 4
-#define RTE_UART5_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART6 (Universal synchronous asynchronous receiver transmitter) [Driver_UART6]
-// Configuration settings for Driver_UART6 in component ::Drivers:UART
-#define RTE_USART6 0
-
-// USART6_TX Pin <0=>PC6 <1=>PG14
-#define RTE_USART6_TX_ID 0
-#if (RTE_USART6_TX_ID == 0)
-#define RTE_USART6_TX_PORT GPIOC
-#define RTE_USART6_TX_BIT 6
-#elif (RTE_USART6_TX_ID == 1)
-#define RTE_USART6_TX_PORT GPIOG
-#define RTE_USART6_TX_BIT 14
-#else
-#error "Invalid USART6_TX Pin Configuration!"
-#endif
-
-// USART6_RX Pin <0=>PC7 <1=>PG9
-#define RTE_USART6_RX_ID 0
-#if (RTE_USART6_RX_ID == 0)
-#define RTE_USART6_RX_PORT GPIOC
-#define RTE_USART6_RX_BIT 7
-#elif (RTE_USART6_RX_ID == 1)
-#define RTE_USART6_RX_PORT GPIOG
-#define RTE_USART6_RX_BIT 9
-#else
-#error "Invalid USART6_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART6_CK Pin <0=>PC8 <1=>PG7
-//
-#define RTE_USART6_CK 0
-#define RTE_USART6_CK_ID 0
-#if (RTE_USART6_CK_ID == 0)
-#define RTE_USART6_CK_PORT GPIOC
-#define RTE_USART6_CK_BIT 8
-#elif (RTE_USART6_CK_ID == 1)
-#define RTE_USART6_CK_PORT GPIOG
-#define RTE_USART6_CK_BIT 7
-#else
-#error "Invalid USART6_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART6_CTS Pin <0=>PG13 <1=>PG15
-// USART6_RTS Pin <0=>PG8 <1=>PG12
-// Manual CTS/RTS
-//
-#define RTE_USART6_HW_FLOW 0
-#define RTE_USART6_CTS_ID 0
-#define RTE_USART6_RTS_ID 0
-#define RTE_USART6_MANUAL_FLOW 0
-#if (RTE_USART6_CTS_ID == 0)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 13
-#elif (RTE_USART6_CTS_ID == 1)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 15
-#else
-#error "Invalid USART6_CTS Pin Configuration!"
-#endif
-#if (RTE_USART6_RTS_ID == 0)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 8
-#elif (RTE_USART6_RTS_ID == 1)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 12
-#else
-#error "Invalid USART6_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <1=>1 <2=>2
-// Selects DMA Stream (only Stream 1 or 2 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_RX_DMA 1
-#define RTE_USART6_RX_DMA_NUMBER 2
-#define RTE_USART6_RX_DMA_STREAM 1
-#define RTE_USART6_RX_DMA_CHANNEL 5
-#define RTE_USART6_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_TX_DMA 1
-#define RTE_USART6_TX_DMA_NUMBER 2
-#define RTE_USART6_TX_DMA_STREAM 6
-#define RTE_USART6_TX_DMA_CHANNEL 5
-#define RTE_USART6_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C1 (Inter-integrated Circuit Interface 1) [Driver_I2C1]
-// Configuration settings for Driver_I2C1 in component ::Drivers:I2C
-#define RTE_I2C1 0
-
-// I2C1_SCL Pin <0=>PB6 <1=>PB8
-#define RTE_I2C1_SCL_PORT_ID 0
-#if (RTE_I2C1_SCL_PORT_ID == 0)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 6
-#elif (RTE_I2C1_SCL_PORT_ID == 1)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 8
-#else
-#error "Invalid I2C1_SCL Pin Configuration!"
-#endif
-
-// I2C1_SDA Pin <0=>PB7 <1=>PB9
-#define RTE_I2C1_SDA_PORT_ID 0
-#if (RTE_I2C1_SDA_PORT_ID == 0)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 7
-#elif (RTE_I2C1_SDA_PORT_ID == 1)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 9
-#else
-#error "Invalid I2C1_SDA Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <5=>5
-// Selects DMA Stream (only Stream 0 or 5 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_RX_DMA 1
-#define RTE_I2C1_RX_DMA_NUMBER 1
-#define RTE_I2C1_RX_DMA_STREAM 0
-#define RTE_I2C1_RX_DMA_CHANNEL 1
-#define RTE_I2C1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_TX_DMA 1
-#define RTE_I2C1_TX_DMA_NUMBER 1
-#define RTE_I2C1_TX_DMA_STREAM 6
-#define RTE_I2C1_TX_DMA_CHANNEL 1
-#define RTE_I2C1_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C2 (Inter-integrated Circuit Interface 2) [Driver_I2C2]
-// Configuration settings for Driver_I2C2 in component ::Drivers:I2C
-#define RTE_I2C2 0
-
-// I2C2_SCL Pin <0=>PF1 <1=>PH4 <2=>PB10
-#define RTE_I2C2_SCL_PORT_ID 0
-#if (RTE_I2C2_SCL_PORT_ID == 0)
-#define RTE_I2C2_SCL_PORT GPIOF
-#define RTE_I2C2_SCL_BIT 1
-#elif (RTE_I2C2_SCL_PORT_ID == 1)
-#define RTE_I2C2_SCL_PORT GPIOH
-#define RTE_I2C2_SCL_BIT 4
-#elif (RTE_I2C2_SCL_PORT_ID == 2)
-#define RTE_I2C2_SCL_PORT GPIOB
-#define RTE_I2C2_SCL_BIT 10
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// I2C2_SDA Pin <0=>PF0 <1=>PH5 <2=>PB11
-#define RTE_I2C2_SDA_PORT_ID 0
-#if (RTE_I2C2_SDA_PORT_ID == 0)
-#define RTE_I2C2_SDA_PORT GPIOF
-#define RTE_I2C2_SDA_BIT 0
-#elif (RTE_I2C2_SDA_PORT_ID == 1)
-#define RTE_I2C2_SDA_PORT GPIOH
-#define RTE_I2C2_SDA_BIT 5
-#elif (RTE_I2C2_SDA_PORT_ID == 2)
-#define RTE_I2C2_SDA_PORT GPIOB
-#define RTE_I2C2_SDA_BIT 11
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2 <3=>3
-// Selects DMA Stream (only Stream 2 or 3 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 7 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_RX_DMA 1
-#define RTE_I2C2_RX_DMA_NUMBER 1
-#define RTE_I2C2_RX_DMA_STREAM 2
-#define RTE_I2C2_RX_DMA_CHANNEL 7
-#define RTE_I2C2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_TX_DMA 1
-#define RTE_I2C2_TX_DMA_NUMBER 1
-#define RTE_I2C2_TX_DMA_STREAM 7
-#define RTE_I2C2_TX_DMA_CHANNEL 7
-#define RTE_I2C2_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C3 (Inter-integrated Circuit Interface 3) [Driver_I2C3]
-// Configuration settings for Driver_I2C3 in component ::Drivers:I2C
-#define RTE_I2C3 0
-
-// I2C3_SCL Pin <0=>PH7 <1=>PA8
-#define RTE_I2C3_SCL_PORT_ID 0
-#if (RTE_I2C3_SCL_PORT_ID == 0)
-#define RTE_I2C3_SCL_PORT GPIOH
-#define RTE_I2C3_SCL_BIT 7
-#elif (RTE_I2C3_SCL_PORT_ID == 1)
-#define RTE_I2C3_SCL_PORT GPIOA
-#define RTE_I2C3_SCL_BIT 8
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// I2C3_SDA Pin <0=>PH8 <1=>PC9
-#define RTE_I2C3_SDA_PORT_ID 0
-#if (RTE_I2C3_SDA_PORT_ID == 0)
-#define RTE_I2C3_SDA_PORT GPIOH
-#define RTE_I2C3_SDA_BIT 8
-#elif (RTE_I2C3_SDA_PORT_ID == 1)
-#define RTE_I2C3_SDA_PORT GPIOC
-#define RTE_I2C3_SDA_BIT 9
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_RX_DMA 1
-#define RTE_I2C3_RX_DMA_NUMBER 1
-#define RTE_I2C3_RX_DMA_STREAM 2
-#define RTE_I2C3_RX_DMA_CHANNEL 3
-#define RTE_I2C3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_TX_DMA 1
-#define RTE_I2C3_TX_DMA_NUMBER 1
-#define RTE_I2C3_TX_DMA_STREAM 4
-#define RTE_I2C3_TX_DMA_CHANNEL 3
-#define RTE_I2C3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI1 (Serial Peripheral Interface 1) [Driver_SPI1]
-// Configuration settings for Driver_SPI1 in component ::Drivers:SPI
-#define RTE_SPI1 0
-
-// SPI1_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI1_NSS_PIN 1
-#define RTE_SPI1_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI1_NSS_BIT 4
-
-// SPI1_SCK Pin <0=>PA5 <1=>PB3
-#define RTE_SPI1_SCL_PORT_ID 0
-#if (RTE_SPI1_SCL_PORT_ID == 0)
-#define RTE_SPI1_SCL_PORT GPIOA
-#define RTE_SPI1_SCL_BIT 5
-#elif (RTE_SPI1_SCL_PORT_ID == 1)
-#define RTE_SPI1_SCL_PORT GPIOB
-#define RTE_SPI1_SCL_BIT 3
-#else
-#error "Invalid SPI1_SCK Pin Configuration!"
-#endif
-
-// SPI1_MISO Pin <0=>PA6 <1=>PB4
-#define RTE_SPI1_MISO_PORT_ID 0
-#if (RTE_SPI1_MISO_PORT_ID == 0)
-#define RTE_SPI1_MISO_PORT GPIOA
-#define RTE_SPI1_MISO_BIT 6
-#elif (RTE_SPI1_MISO_PORT_ID == 1)
-#define RTE_SPI1_MISO_PORT GPIOB
-#define RTE_SPI1_MISO_BIT 4
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// SPI1_MOSI Pin <0=>PA7 <1=>PB5
-#define RTE_SPI1_MOSI_PORT_ID 0
-#if (RTE_SPI1_MOSI_PORT_ID == 0)
-#define RTE_SPI1_MOSI_PORT GPIOA
-#define RTE_SPI1_MOSI_BIT 7
-#elif (RTE_SPI1_MOSI_PORT_ID == 1)
-#define RTE_SPI1_MOSI_PORT GPIOB
-#define RTE_SPI1_MOSI_BIT 5
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_RX_DMA 1
-#define RTE_SPI1_RX_DMA_NUMBER 2
-#define RTE_SPI1_RX_DMA_STREAM 0
-#define RTE_SPI1_RX_DMA_CHANNEL 3
-#define RTE_SPI1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <5=>5
-// Selects DMA Stream (only Stream 3 or 5 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_TX_DMA 1
-#define RTE_SPI1_TX_DMA_NUMBER 2
-#define RTE_SPI1_TX_DMA_STREAM 5
-#define RTE_SPI1_TX_DMA_CHANNEL 3
-#define RTE_SPI1_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI2 (Serial Peripheral Interface 2) [Driver_SPI2]
-// Configuration settings for Driver_SPI2 in component ::Drivers:SPI
-#define RTE_SPI2 0
-
-// SPI2_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI2_NSS_PIN 1
-#define RTE_SPI2_NSS_PORT GPIO_PORT(1)
-#define RTE_SPI2_NSS_BIT 12
-
-// SPI2_SCK Pin <0=>PB10 <1=>PB13 <2=>PI1
-#define RTE_SPI2_SCL_PORT_ID 0
-#if (RTE_SPI2_SCL_PORT_ID == 0)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 10
-#elif (RTE_SPI2_SCL_PORT_ID == 1)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 13
-#elif (RTE_SPI2_SCL_PORT_ID == 2)
-#define RTE_SPI2_SCL_PORT GPIOI
-#define RTE_SPI2_SCL_BIT 1
-#else
-#error "Invalid SPI2_SCK Pin Configuration!"
-#endif
-
-// SPI2_MISO Pin <0=>PB14 <1=>PC2 <2=>PI2
-#define RTE_SPI2_MISO_PORT_ID 0
-#if (RTE_SPI2_MISO_PORT_ID == 0)
-#define RTE_SPI2_MISO_PORT GPIOB
-#define RTE_SPI2_MISO_BIT 14
-#elif (RTE_SPI2_MISO_PORT_ID == 1)
-#define RTE_SPI2_MISO_PORT GPIOC
-#define RTE_SPI2_MISO_BIT 2
-#elif (RTE_SPI2_MISO_PORT_ID == 2)
-#define RTE_SPI2_MISO_PORT GPIOI
-#define RTE_SPI2_MISO_BIT 2
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// SPI2_MOSI Pin <0=>PB15 <1=>PC3 <2=>OI3
-#define RTE_SPI2_MOSI_PORT_ID 0
-#if (RTE_SPI2_MOSI_PORT_ID == 0)
-#define RTE_SPI2_MOSI_PORT GPIOB
-#define RTE_SPI2_MOSI_BIT 15
-#elif (RTE_SPI2_MOSI_PORT_ID == 1)
-#define RTE_SPI2_MOSI_PORT GPIOC
-#define RTE_SPI2_MOSI_BIT 3
-#elif (RTE_SPI2_MOSI_PORT_ID == 2)
-#define RTE_SPI2_MOSI_PORT GPIOI
-#define RTE_SPI2_MOSI_BIT 3
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_RX_DMA 1
-#define RTE_SPI2_RX_DMA_NUMBER 1
-#define RTE_SPI2_RX_DMA_STREAM 2
-#define RTE_SPI2_RX_DMA_CHANNEL 0
-#define RTE_SPI2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_TX_DMA 1
-#define RTE_SPI2_TX_DMA_NUMBER 1
-#define RTE_SPI2_TX_DMA_STREAM 3
-#define RTE_SPI2_TX_DMA_CHANNEL 0
-#define RTE_SPI2_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI3 (Serial Peripheral Interface 3) [Driver_SPI3]
-// Configuration settings for Driver_SPI3 in component ::Drivers:SPI
-#define RTE_SPI3 0
-
-// SPI3_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI3_NSS_PIN 1
-#define RTE_SPI3_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI3_NSS_BIT 15
-
-// SPI3_SCK Pin <0=>PB3 <1=>PC10
-#define RTE_SPI3_SCL_PORT_ID 0
-#if (RTE_SPI3_SCL_PORT_ID == 0)
-#define RTE_SPI3_SCL_PORT GPIOB
-#define RTE_SPI3_SCL_BIT 3
-#elif (RTE_SPI3_SCL_PORT_ID == 1)
-#define RTE_SPI3_SCL_PORT GPIOC
-#define RTE_SPI3_SCL_BIT 10
-#else
-#error "Invalid SPI3_SCK Pin Configuration!"
-#endif
-
-// SPI3_MISO Pin <0=>PB4 <1=>PC11
-#define RTE_SPI3_MISO_PORT_ID 0
-#if (RTE_SPI3_MISO_PORT_ID == 0)
-#define RTE_SPI3_MISO_PORT GPIOB
-#define RTE_SPI3_MISO_BIT 4
-#elif (RTE_SPI3_MISO_PORT_ID == 1)
-#define RTE_SPI3_MISO_PORT GPIOC
-#define RTE_SPI3_MISO_BIT 11
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// SPI3_MOSI Pin <0=>PB5 <1=>PC12
-#define RTE_SPI3_MOSI_PORT_ID 0
-#if (RTE_SPI3_MOSI_PORT_ID == 0)
-#define RTE_SPI3_MOSI_PORT GPIOB
-#define RTE_SPI3_MOSI_BIT 5
-#elif (RTE_SPI3_MOSI_PORT_ID == 1)
-#define RTE_SPI3_MOSI_PORT GPIOC
-#define RTE_SPI3_MOSI_BIT 12
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_RX_DMA 1
-#define RTE_SPI3_RX_DMA_NUMBER 1
-#define RTE_SPI3_RX_DMA_STREAM 0
-#define RTE_SPI3_RX_DMA_CHANNEL 0
-#define RTE_SPI3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5 <7=>7
-// Selects DMA Stream (only Stream 5 or 7 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_TX_DMA 1
-#define RTE_SPI3_TX_DMA_NUMBER 1
-#define RTE_SPI3_TX_DMA_STREAM 5
-#define RTE_SPI3_TX_DMA_CHANNEL 0
-#define RTE_SPI3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SDIO (Secure Digital Input/Output) [Driver_MCI0]
-// Configuration settings for Driver_MCI0 in component ::Drivers:MCI
-#define RTE_SDIO 1
-
-// SDIO_CD (Card Detect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_CD_PIN 1
-#define RTE_SDIO_CD_ACTIVE 0
-#define RTE_SDIO_CD_PORT GPIO_PORT(7)
-#define RTE_SDIO_CD_BIT 15
-
-// SDIO_WP (Write Protect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_WP_PIN 0
-#define RTE_SDIO_WP_ACTIVE 0
-#define RTE_SDIO_WP_PORT GPIO_PORT(7)
-#define RTE_SDIO_WP_BIT 16
-
-// SDIO Bus
-// SDIO_CK Pin <0=>PC12
-#define RTE_SDIO_CK_PORT_ID 0
-#if (RTE_SDIO_CK_PORT_ID == 0)
-#define RTE_SDIO_CK_PORT GPIOC
-#define RTE_SDIO_CK_PIN 12
-#else
-#error "Invalid SDIO_CK Pin Configuration!"
-#endif
-// SDIO_CMD Pin <0=>PD2
-#define RTE_SDIO_CMD_PORT_ID 0
-#if (RTE_SDIO_CMD_PORT_ID == 0)
-#define RTE_SDIO_CMD_PORT GPIOD
-#define RTE_SDIO_CMD_PIN 2
-#else
-#error "Invalid SDIO_CDM Pin Configuration!"
-#endif
-// SDIO_D0 Pin <0=>PC8
-#define RTE_SDIO_D0_PORT_ID 0
-#if (RTE_SDIO_D0_PORT_ID == 0)
-#define RTE_SDIO_D0_PORT GPIOC
-#define RTE_SDIO_D0_PIN 8
-#else
-#error "Invalid SDIO_D0 Pin Configuration!"
-#endif
-// SDIO_D1 Pin <0=>PC9
-#define RTE_SDIO_D1_PORT_ID 0
-#if (RTE_SDIO_D1_PORT_ID == 0)
-#define RTE_SDIO_D1_PORT GPIOC
-#define RTE_SDIO_D1_PIN 9
-#else
-#error "Invalid SDIO_D1 Pin Configuration!"
-#endif
-// SDIO_D2 Pin <0=>PC10
-#define RTE_SDIO_D2_PORT_ID 0
-#if (RTE_SDIO_D2_PORT_ID == 0)
-#define RTE_SDIO_D2_PORT GPIOC
-#define RTE_SDIO_D2_PIN 10
-#else
-#error "Invalid SDIO_D2 Pin Configuration!"
-#endif
-// SDIO_D3 Pin <0=>PC11
-#define RTE_SDIO_D3_PORT_ID 0
-#if (RTE_SDIO_D3_PORT_ID == 0)
-#define RTE_SDIO_D3_PORT GPIOC
-#define RTE_SDIO_D3_PIN 11
-#else
-#error "Invalid SDIO_D3 Pin Configuration!"
-#endif
-// SDIO_D4 Pin <0=>PB8
-#define RTE_SDIO_D4_PORT_ID 0
-#if (RTE_SDIO_D4_PORT_ID == 0)
-#define RTE_SDIO_D4_PORT GPIOB
-#define RTE_SDIO_D4_PIN 8
-#else
-#error "Invalid SDIO_D4 Pin Configuration!"
-#endif
-// SDIO_D5 Pin <0=>PB9
-#define RTE_SDIO_D5_PORT_ID 0
-#if (RTE_SDIO_D5_PORT_ID == 0)
-#define RTE_SDIO_D5_PORT GPIOB
-#define RTE_SDIO_D5_PIN 9
-#else
-#error "Invalid SDIO_D5 Pin Configuration!"
-#endif
-// SDIO_D6 Pin <0=>PC6
-#define RTE_SDIO_D6_PORT_ID 0
-#if (RTE_SDIO_D6_PORT_ID == 0)
-#define RTE_SDIO_D6_PORT GPIOC
-#define RTE_SDIO_D6_PIN 6
-#else
-#error "Invalid SDIO_D6 Pin Configuration!"
-#endif
-// SDIO_D7 Pin <0=>PC7
-#define RTE_SDIO_D7_PORT_ID 0
-#if (RTE_SDIO_D7_PORT_ID == 0)
-#define RTE_SDIO_D7_PORT GPIOC
-#define RTE_SDIO_D7_PIN 7
-#else
-#error "Invalid SDIO_D7 Pin Configuration!"
-#endif
-//
-
-// DMA
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <6=>6
-// Selects DMA Stream (only Stream 3 or 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SDIO_DMA 1
-#define RTE_SDIO_DMA_NUMBER 2
-#define RTE_SDIO_DMA_STREAM 3
-#define RTE_SDIO_DMA_CHANNEL 4
-#define RTE_SDIO_DMA_PRIORITY 0
-
-//
-
-
-// ETH (Ethernet Interface) [Driver_ETH_MAC0]
-// Configuration settings for Driver_ETH_MAC0 in component ::Drivers:Ethernet MAC
-#define RTE_ETH 1
-
-// MII (Media Independent Interface)
-#define RTE_ETH_MII 0
-
-// ETH_MII_TX_CLK Pin <0=>PC3
-#define RTE_ETH_MII_TX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_TX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_TX_CLK_PORT GPIOC
-#define RTE_ETH_MII_TX_CLK_PIN 3
-#else
-#error "Invalid ETH_MII_TX_CLK Pin Configuration!"
-#endif
-// ETH_MII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_MII_TXD0_PORT_ID 0
-#if (RTE_ETH_MII_TXD0_PORT_ID == 0)
-#define RTE_ETH_MII_TXD0_PORT GPIOB
-#define RTE_ETH_MII_TXD0_PIN 12
-#elif (RTE_ETH_MII_TXD0_PORT_ID == 1)
-#define RTE_ETH_MII_TXD0_PORT GPIOG
-#define RTE_ETH_MII_TXD0_PIN 13
-#else
-#error "Invalid ETH_MII_TXD0 Pin Configuration!"
-#endif
-// ETH_MII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_MII_TXD1_PORT_ID 0
-#if (RTE_ETH_MII_TXD1_PORT_ID == 0)
-#define RTE_ETH_MII_TXD1_PORT GPIOB
-#define RTE_ETH_MII_TXD1_PIN 13
-#elif (RTE_ETH_MII_TXD1_PORT_ID == 1)
-#define RTE_ETH_MII_TXD1_PORT GPIOG
-#define RTE_ETH_MII_TXD1_PIN 14
-#else
-#error "Invalid ETH_MII_TXD1 Pin Configuration!"
-#endif
-// ETH_MII_TXD2 Pin <0=>PC2
-#define RTE_ETH_MII_TXD2_PORT_ID 0
-#if (RTE_ETH_MII_TXD2_PORT_ID == 0)
-#define RTE_ETH_MII_TXD2_PORT GPIOC
-#define RTE_ETH_MII_TXD2_PIN 2
-#else
-#error "Invalid ETH_MII_TXD2 Pin Configuration!"
-#endif
-// ETH_MII_TXD3 Pin <0=>PB8 <1=>PE2
-#define RTE_ETH_MII_TXD3_PORT_ID 0
-#if (RTE_ETH_MII_TXD3_PORT_ID == 0)
-#define RTE_ETH_MII_TXD3_PORT GPIOB
-#define RTE_ETH_MII_TXD3_PIN 8
-#elif (RTE_ETH_MII_TXD3_PORT_ID == 1)
-#define RTE_ETH_MII_TXD3_PORT GPIOE
-#define RTE_ETH_MII_TXD3_PIN 2
-#else
-#error "Invalid ETH_MII_TXD3 Pin Configuration!"
-#endif
-// ETH_MII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_MII_TX_EN_PORT_ID 0
-#if (RTE_ETH_MII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_MII_TX_EN_PORT GPIOB
-#define RTE_ETH_MII_TX_EN_PIN 11
-#elif (RTE_ETH_MII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_MII_TX_EN_PORT GPIOG
-#define RTE_ETH_MII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_MII_TX_EN Pin Configuration!"
-#endif
-// ETH_MII_RX_CLK Pin <0=>PA1
-#define RTE_ETH_MII_RX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_RX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_RX_CLK_PORT GPIOA
-#define RTE_ETH_MII_RX_CLK_PIN 1
-#else
-#error "Invalid ETH_MII_RX_CLK Pin Configuration!"
-#endif
-// ETH_MII_RXD0 Pin <0=>PC4
-#define RTE_ETH_MII_RXD0_PORT_ID 0
-#if (RTE_ETH_MII_RXD0_PORT_ID == 0)
-#define RTE_ETH_MII_RXD0_PORT GPIOC
-#define RTE_ETH_MII_RXD0_PIN 4
-#else
-#error "Invalid ETH_MII_RXD0 Pin Configuration!"
-#endif
-// ETH_MII_RXD1 Pin <0=>PC5
-#define RTE_ETH_MII_RXD1_PORT_ID 0
-#if (RTE_ETH_MII_RXD1_PORT_ID == 0)
-#define RTE_ETH_MII_RXD1_PORT GPIOC
-#define RTE_ETH_MII_RXD1_PIN 5
-#else
-#error "Invalid ETH_MII_RXD1 Pin Configuration!"
-#endif
-// ETH_MII_RXD2 Pin <0=>PB0 <1=>PH6
-#define RTE_ETH_MII_RXD2_PORT_ID 0
-#if (RTE_ETH_MII_RXD2_PORT_ID == 0)
-#define RTE_ETH_MII_RXD2_PORT GPIOB
-#define RTE_ETH_MII_RXD2_PIN 0
-#elif (RTE_ETH_MII_RXD2_PORT_ID == 1)
-#define RTE_ETH_MII_RXD2_PORT GPIOH
-#define RTE_ETH_MII_RXD2_PIN 6
-#else
-#error "Invalid ETH_MII_RXD2 Pin Configuration!"
-#endif
-// ETH_MII_RXD3 Pin <0=>PB1 <1=>PH7
-#define RTE_ETH_MII_RXD3_PORT_ID 0
-#if (RTE_ETH_MII_RXD3_PORT_ID == 0)
-#define RTE_ETH_MII_RXD3_PORT GPIOB
-#define RTE_ETH_MII_RXD3_PIN 1
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RXD3_PORT GPIOH
-#define RTE_ETH_MII_RXD3_PIN 7
-#else
-#error "Invalid ETH_MII_RXD3 Pin Configuration!"
-#endif
-// ETH_MII_RX_DV Pin <0=>PA7
-#define RTE_ETH_MII_RX_DV_PORT_ID 0
-#if (RTE_ETH_MII_RX_DV_PORT_ID == 0)
-#define RTE_ETH_MII_RX_DV_PORT GPIOA
-#define RTE_ETH_MII_RX_DV_PIN 7
-#else
-#error "Invalid ETH_MII_RX_DV Pin Configuration!"
-#endif
-// ETH_MII_RX_ER Pin <0=>PB10 <1=>PI10
-#define RTE_ETH_MII_RX_ER_PORT_ID 0
-#if (RTE_ETH_MII_RX_ER_PORT_ID == 0)
-#define RTE_ETH_MII_RX_ER_PORT GPIOB
-#define RTE_ETH_MII_RX_ER_PIN 10
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RX_ER_PORT GPIOI
-#define RTE_ETH_MII_RX_ER_PIN 10
-#else
-#error "Invalid ETH_MII_RX_ER Pin Configuration!"
-#endif
-// ETH_MII_CRS Pin <0=>PA0 <1=>PH2
-#define RTE_ETH_MII_CRS_PORT_ID 0
-#if (RTE_ETH_MII_CRS_PORT_ID == 0)
-#define RTE_ETH_MII_CRS_PORT GPIOA
-#define RTE_ETH_MII_CRS_PIN 0
-#elif (RTE_ETH_MII_CRS_PORT_ID == 1)
-#define RTE_ETH_MII_CRS_PORT GPIOH
-#define RTE_ETH_MII_CRS_PIN 2
-#else
-#error "Invalid ETH_MII_CRS Pin Configuration!"
-#endif
-// ETH_MII_COL Pin <0=>PA3 <1=>PH3
-#define RTE_ETH_MII_COL_PORT_ID 0
-#if (RTE_ETH_MII_COL_PORT_ID == 0)
-#define RTE_ETH_MII_COL_PORT GPIOA
-#define RTE_ETH_MII_COL_PIN 3
-#elif (RTE_ETH_MII_COL_PORT_ID == 1)
-#define RTE_ETH_MII_COL_PORT GPIOH
-#define RTE_ETH_MII_COL_PIN 3
-#else
-#error "Invalid ETH_MII_COL Pin Configuration!"
-#endif
-
-//
-
-// RMII (Reduced Media Independent Interface)
-#define RTE_ETH_RMII 1
-
-// ETH_RMII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_RMII_TXD0_PORT_ID 1
-#if (RTE_ETH_RMII_TXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD0_PORT GPIOB
-#define RTE_ETH_RMII_TXD0_PIN 12
-#elif (RTE_ETH_RMII_TXD0_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD0_PORT GPIOG
-#define RTE_ETH_RMII_TXD0_PIN 13
-#else
-#error "Invalid ETH_RMII_TXD0 Pin Configuration!"
-#endif
-// ETH_RMII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_RMII_TXD1_PORT_ID 1
-#if (RTE_ETH_RMII_TXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD1_PORT GPIOB
-#define RTE_ETH_RMII_TXD1_PIN 13
-#elif (RTE_ETH_RMII_TXD1_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD1_PORT GPIOG
-#define RTE_ETH_RMII_TXD1_PIN 14
-#else
-#error "Invalid ETH_RMII_TXD1 Pin Configuration!"
-#endif
-// ETH_RMII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_RMII_TX_EN_PORT_ID 1
-#if (RTE_ETH_RMII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOB
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#elif (RTE_ETH_RMII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOG
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_RMII_TX_EN Pin Configuration!"
-#endif
-// ETH_RMII_RXD0 Pin <0=>PC4
-#define RTE_ETH_RMII_RXD0_PORT_ID 0
-#if (RTE_ETH_RMII_RXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD0_PORT GPIOC
-#define RTE_ETH_RMII_RXD0_PIN 4
-#else
-#error "Invalid ETH_RMII_RXD0 Pin Configuration!"
-#endif
-// ETH_RMII_RXD1 Pin <0=>PC5
-#define RTE_ETH_RMII_RXD1_PORT_ID 0
-#if (RTE_ETH_RMII_RXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD1_PORT GPIOC
-#define RTE_ETH_RMII_RXD1_PIN 5
-#else
-#error "Invalid ETH_RMII_RXD1 Pin Configuration!"
-#endif
-// ETH_RMII_REF_CLK Pin <0=>PA1
-#define RTE_ETH_RMII_REF_CLK_PORT_ID 0
-#if (RTE_ETH_RMII_REF_CLK_PORT_ID == 0)
-#define RTE_ETH_RMII_REF_CLK_PORT GPIOA
-#define RTE_ETH_RMII_REF_CLK_PIN 1
-#else
-#error "Invalid ETH_RMII_REF_CLK Pin Configuration!"
-#endif
-// ETH_RMII_CRS_DV Pin <0=>PA7
-#define RTE_ETH_RMII_CRS_DV_PORT_ID 0
-#if (RTE_ETH_RMII_CRS_DV_PORT_ID == 0)
-#define RTE_ETH_RMII_CRS_DV_PORT GPIOA
-#define RTE_ETH_RMII_CRS_DV_PIN 7
-#else
-#error "Invalid ETH_RMII_CRS_DV Pin Configuration!"
-#endif
-
-//
-
-// Management Data Interface
-// ETH_MDC Pin <0=>PC1
-#define RTE_ETH_MDI_MDC_PORT_ID 0
-#if (RTE_ETH_MDI_MDC_PORT_ID == 0)
-#define RTE_ETH_MDI_MDC_PORT GPIOC
-#define RTE_ETH_MDI_MDC_PIN 1
-#else
-#error "Invalid ETH_MDC Pin Configuration!"
-#endif
-// ETH_MDIO Pin <0=>PA2
-#define RTE_ETH_MDI_MDIO_PORT_ID 0
-#if (RTE_ETH_MDI_MDIO_PORT_ID == 0)
-#define RTE_ETH_MDI_MDIO_PORT GPIOA
-#define RTE_ETH_MDI_MDIO_PIN 2
-#else
-#error "Invalid ETH_MDIO Pin Configuration!"
-#endif
-//
-
-// Reference 25MHz/50MHz Clock generation
-#define RTE_ETH_REF_CLOCK 0
-
-// MCO Pin <0=>PA2 <1=>PC9
-#define RTE_ETH_REF_CLOCK_PORT_ID 0
-#if (RTE_ETH_REF_CLOCK_PORT_ID == 0)
-#define RTE_ETH_REF_CLOCK_PORT GPIOA
-#define RTE_ETH_REF_CLOCK_PIN 8
-#elif (RTE_ETH_REF_CLOCK_PORT_ID == 1)
-#define RTE_ETH_REF_CLOCK_PORT GPIOC
-#define RTE_ETH_REF_CLOCK_PIN 9
-#else
-#error "Invalid MCO Pin Configuration!"
-#endif
-
-//
-
-//
-
-
-// USB OTG Full-speed
-#define RTE_USB_OTG_FS 0
-
-// Device [Driver_USBD0]
-// Configuration settings for Driver_USBD0 in component ::Drivers:USB Device
-#define RTE_USB_OTG_FS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_FS_DEV_EP 0x0000000F
-#define RTE_USB_OTG_FS_DEV_EP_BULK 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_INT 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_ISO 0x000E000E
-
-//
-
-// Host [Driver_USBH0]
-// Configuration settings for Driver_USBH0 in component ::Drivers:USB Host
-
-#define RTE_USB_OTG_FS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_VBUS_PIN 1
-#define RTE_OTG_FS_VBUS_ACTIVE 0
-#define RTE_OTG_FS_VBUS_PORT GPIO_PORT(7)
-#define RTE_OTG_FS_VBUS_BIT 5
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_OC_PIN 1
-#define RTE_OTG_FS_OC_ACTIVE 0
-#define RTE_OTG_FS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_FS_OC_BIT 11
-//
-
-//
-
-
-// USB OTG High-speed
-#define RTE_USB_OTG_HS 0
-
-// PHY (Physical Layer)
-
-// PHY Interface
-// <0=>On-chip full-speed PHY
-// <1=>External ULPI high-speed PHY
-#define RTE_USB_OTG_HS_PHY 1
-
-// External ULPI Pins (UTMI+ Low Pin Interface)
-
-// OTG_HS_ULPI_CK Pin <0=>PA5
-#define RTE_USB_OTG_HS_ULPI_CK_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_CK_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_CK_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_CK_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_CK Pin Configuration!"
-#endif
-// OTG_HS_ULPI_DIR Pin <0=>PI11 <1=>PC2
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOI
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 11
-#elif (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 2
-#else
-#error "Invalid OTG_HS_ULPI_DIR Pin Configuration!"
-#endif
-// OTG_HS_ULPI_STP Pin <0=>PC0
-#define RTE_USB_OTG_HS_ULPI_STP_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_STP_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_STP_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_STP_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_STP Pin Configuration!"
-#endif
-// OTG_HS_ULPI_NXT Pin <0=>PC2 <1=>PH4
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT_ID 1
-#if (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 2
-#elif (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOH
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 4
-#else
-#error "Invalid OTG_HS_ULPI_NXT Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D0 Pin <0=>PA3
-#define RTE_USB_OTG_HS_ULPI_D0_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D0_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D0_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_D0_PIN 3
-#else
-#error "Invalid OTG_HS_ULPI_D0 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D1 Pin <0=>PB0
-#define RTE_USB_OTG_HS_ULPI_D1_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D1_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D1_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D1_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_D1 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D2 Pin <0=>PB1
-#define RTE_USB_OTG_HS_ULPI_D2_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D2_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D2_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D2_PIN 1
-#else
-#error "Invalid OTG_HS_ULPI_D2 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D3 Pin <0=>PB10
-#define RTE_USB_OTG_HS_ULPI_D3_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D3_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D3_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D3_PIN 10
-#else
-#error "Invalid OTG_HS_ULPI_D3 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D4 Pin <0=>PB11
-#define RTE_USB_OTG_HS_ULPI_D4_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D4_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D4_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D4_PIN 11
-#else
-#error "Invalid OTG_HS_ULPI_D4 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D5 Pin <0=>PB12
-#define RTE_USB_OTG_HS_ULPI_D5_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D5_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D5_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D5_PIN 12
-#else
-#error "Invalid OTG_HS_ULPI_D5 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D6 Pin <0=>PB13
-#define RTE_USB_OTG_HS_ULPI_D6_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D6_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D6_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D6_PIN 13
-#else
-#error "Invalid OTG_HS_ULPI_D6 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D7 Pin <0=>PB5
-#define RTE_USB_OTG_HS_ULPI_D7_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D7_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D7_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D7_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_D7 Pin Configuration!"
-#endif
-
-//
-
-//
-
-// Device [Driver_USBD1]
-// Configuration settings for Driver_USBD1 in component ::Drivers:USB Device
-#define RTE_USB_OTG_HS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 4
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 5
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_HS_DEV_EP 0x0000003F
-#define RTE_USB_OTG_HS_DEV_EP_BULK 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_INT 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_ISO 0x003E003E
-
-//
-
-// Host [Driver_USBH1]
-// Configuration settings for Driver_USBH1 in component ::Drivers:USB Host
-#define RTE_USB_OTG_HS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_VBUS_PIN 1
-#define RTE_OTG_HS_VBUS_ACTIVE 0
-#define RTE_OTG_HS_VBUS_PORT GPIO_PORT(2)
-#define RTE_OTG_HS_VBUS_BIT 2
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_OC_PIN 1
-#define RTE_OTG_HS_OC_ACTIVE 0
-#define RTE_OTG_HS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_HS_OC_BIT 12
-//
-
-//
-
-
-// EXTI (External Interrupt/Event Controller)
-#define RTE_EXTI 0
-
-// EXTI0 Line
-#define RTE_EXTI0 0
-// Pin <0=>PA0 <1=>PB0 <2=>PC0 <3=>PD0 <4=>PE0 <5=>PF0 <6=>PG0 <7=>PH0 <8=>PI0
-#define RTE_EXTI0_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI0_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI0_TRIGGER 0
-//
-
-// EXTI1 Line
-#define RTE_EXTI1 0
-// Pin <0=>PA1 <1=>PB1 <2=>PC1 <3=>PD1 <4=>PE1 <5=>PF1 <6=>PG1 <7=>PH1 <8=>PI1
-#define RTE_EXTI1_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI1_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI1_TRIGGER 0
-//
-
-// EXTI2 Line
-#define RTE_EXTI2 0
-// Pin <0=>PA2 <1=>PB2 <2=>PC2 <3=>PD2 <4=>PE2 <5=>PF2 <6=>PG2 <7=>PH2 <8=>PI2
-#define RTE_EXTI2_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI2_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI2_TRIGGER 0
-//
-
-// EXTI3 Line
-#define RTE_EXTI3 0
-// Pin <0=>PA3 <1=>PB3 <2=>PC3 <3=>PD3 <4=>PE3 <5=>PF3 <6=>PG3 <7=>PH3 <8=>PI3
-#define RTE_EXTI3_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI3_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI3_TRIGGER 0
-//
-
-// EXTI4 Line
-#define RTE_EXTI4 0
-// Pin <0=>PA4 <1=>PB4 <2=>PC4 <3=>PD4 <4=>PE4 <5=>PF4 <6=>PG4 <7=>PH4 <8=>PI4
-#define RTE_EXTI4_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI4_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI4_TRIGGER 0
-//
-
-// EXTI5 Line
-#define RTE_EXTI5 0
-// Pin <0=>PA5 <1=>PB5 <2=>PC5 <3=>PD5 <4=>PE5 <5=>PF5 <6=>PG5 <7=>PH5 <8=>PI5
-#define RTE_EXTI5_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI5_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI5_TRIGGER 0
-//
-
-// EXTI6 Line
-#define RTE_EXTI6 0
-// Pin <0=>PA6 <1=>PB6 <2=>PC6 <3=>PD6 <4=>PE6 <5=>PF6 <6=>PG6 <7=>PH6 <8=>PI6
-#define RTE_EXTI6_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI6_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI6_TRIGGER 0
-//
-
-// EXTI7 Line
-#define RTE_EXTI7 0
-// Pin <0=>PA7 <1=>PB7 <2=>PC7 <3=>PD7 <4=>PE7 <5=>PF7 <6=>PG7 <7=>PH7 <8=>PI7
-#define RTE_EXTI7_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI7_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI7_TRIGGER 0
-//
-
-// EXTI8 Line
-#define RTE_EXTI8 0
-// Pin <0=>PA8 <1=>PB8 <2=>PC8 <3=>PD8 <4=>PE8 <5=>PF8 <6=>PG8 <7=>PH8 <8=>PI8
-#define RTE_EXTI8_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI8_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI8_TRIGGER 0
-//
-
-// EXTI9 Line
-#define RTE_EXTI9 0
-// Pin <0=>PA9 <1=>PB9 <2=>PC9 <3=>PD9 <4=>PE9 <5=>PF9 <6=>PG9 <7=>PH9 <8=>PI9
-#define RTE_EXTI9_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI9_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI9_TRIGGER 0
-//
-
-// EXTI10 Line
-#define RTE_EXTI10 0
-// Pin <0=>PA10 <1=>PB10 <2=>PC10 <3=>PD10 <4=>PE10 <5=>PF10 <6=>PG10 <7=>PH10 <8=>PI10
-#define RTE_EXTI10_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI10_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI10_TRIGGER 0
-//
-
-// EXTI11 Line
-#define RTE_EXTI11 0
-// Pin <0=>PA11 <1=>PB11 <2=>PC11 <3=>PD11 <4=>PE11 <5=>PF11 <6=>PG11 <7=>PH11 <8=>PI11
-#define RTE_EXTI11_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI11_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI11_TRIGGER 0
-//
-
-// EXTI12 Line
-#define RTE_EXTI12 0
-// Pin <0=>PA12 <1=>PB12 <2=>PC12 <3=>PD12 <4=>PE12 <5=>PF12 <6=>PG12 <7=>PH12
-#define RTE_EXTI12_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI12_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI12_TRIGGER 0
-//
-
-// EXTI13 Line
-#define RTE_EXTI13 0
-// Pin <0=>PA13 <1=>PB13 <2=>PC13 <3=>PD13 <4=>PE13 <5=>PF13 <6=>PG13 <7=>PH13
-#define RTE_EXTI13_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI13_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI13_TRIGGER 0
-//
-
-// EXTI14 Line
-#define RTE_EXTI14 0
-// Pin <0=>PA14 <1=>PB14 <2=>PC14 <3=>PD14 <4=>PE14 <5=>PF14 <6=>PG14 <7=>PH14
-#define RTE_EXTI14_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI14_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI14_TRIGGER 0
-//
-
-// EXTI15 Line
-#define RTE_EXTI15 0
-// Pin <0=>PA15 <1=>PB15 <2=>PC15 <3=>PD15 <4=>PE15 <5=>PF15 <6=>PG15 <7=>PH15
-#define RTE_EXTI15_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI15_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI15_TRIGGER 0
-//
-
-// EXTI16 Line: PVD Output
-#define RTE_EXTI16 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI16_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI16_TRIGGER 0
-//
-
-// EXTI17 Line: RTC Alarm
-#define RTE_EXTI17 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI17_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI17_TRIGGER 0
-//
-
-// EXTI18 Line: USB OTG FS Wakeup
-#define RTE_EXTI18 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI18_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI18_TRIGGER 0
-//
-
-// EXTI19 Line: Ethernet Wakeup
-#define RTE_EXTI19 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI19_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI19_TRIGGER 0
-//
-
-// EXTI20 Line: USB OTG HS Wakeup
-#define RTE_EXTI20 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI20_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI20_TRIGGER 0
-//
-
-// EXTI21 Line: RTC Tamper and TimeStamp
-#define RTE_EXTI21 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI21_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI21_TRIGGER 0
-//
-
-// EXTI22 Line: RTC Wakeup
-#define RTE_EXTI22 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI22_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI22_TRIGGER 0
-//
-
-//
-
-
-// FSMC (Flexible Static Memory Controller)
-#define RTE_FSMC 0
-
-// Pin Configuration
-// Configure Pins
-#define RTE_FSMC_PINS 0
-
-// Address Bus Pins
-// <0=>A[17:16]
-// <1=>A[10:0] <2=>A[15:0] <3=>A[16:0] <4=>A[17:0]
-// <5=>A[18:0] <6=>A[19:0] <7=>A[20:0] <8=>A[21:0]
-// <9=>A[22:0] <10=>A[23:0] <11=>A[24:0] <12=>A[25:0]
-#define RTE_FSMC_ABUS_PINS 10
-// Data Bus Pins <0=>D[7:0] <1=>D[15:0]
-#define RTE_FSMC_DBUS_PINS 0
-// FSMC_NOE Pin
-#define RTE_FSMC_NOE_PIN 0
-// FSMC_NWE Pin
-#define RTE_FSMC_NWE_PIN 0
-// FSMC_NBL0 Pin
-#define RTE_FSMC_NBL0_PIN 0
-// FSMC_NBL1 Pin
-#define RTE_FSMC_NBL1_PIN 0
-// FSMC_NL Pin
-#define RTE_FSMC_NL_PIN 0
-// FSMC_NWAIT Pin
-#define RTE_FSMC_NWAIT_PIN 0
-// FSMC_CLK Pin
-#define RTE_FSMC_CLK_PIN 0
-// FSMC_NE1/NCE2 Pin
-#define RTE_FSMC_NE1_PIN 0
-// FSMC_NE2/NCE3 Pin
-#define RTE_FSMC_NE2_PIN 0
-// FSMC_NE3/NCE4_1 Pin
-#define RTE_FSMC_NE3_PIN 0
-// FSMC_NE4 Pin
-#define RTE_FSMC_NE4_PIN 0
-// FSMC_NCE4_2 Pin
-#define RTE_FSMC_NCE42_PIN 0
-// FSMC_INT2 Pin
-#define RTE_FSMC_INT2_PIN 0
-// FSMC_INT3 Pin
-#define RTE_FSMC_INT3_PIN 0
-// FSMC_INTR Pin
-#define RTE_FSMC_INTR_PIN 0
-// FSMC_NIORD Pin
-#define RTE_FSMC_NIORD_PIN 0
-// FSMC_NIOWR Pin
-#define RTE_FSMC_NIOWR_PIN 0
-// FSMC_NREG Pin
-#define RTE_FSMC_NREG_PIN 0
-// FSMC_CD Pin
-#define RTE_FSMC_CD_PIN 0
-
-//
-
-// NOR Flash / PSRAM Controller
-
-// FSMC_NE1 Chip Select
-// Configure Device on Chip Select FSMC_NE1
-#define RTE_FSMC_NE1 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR1_CBURSTRW 0
-#define RTE_FSMC_BCR1_ASYNCWAIT 0
-#define RTE_FSMC_BCR1_EXTMOD 0
-#define RTE_FSMC_BCR1_WAITEN 1
-#define RTE_FSMC_BCR1_WREN 1
-#define RTE_FSMC_BCR1_WAITCFG 0
-#define RTE_FSMC_BCR1_WRAPMOD 0
-#define RTE_FSMC_BCR1_WAITPOL 0
-#define RTE_FSMC_BCR1_BURSTEN 0
-#define RTE_FSMC_BCR1_FACCEN 1
-#define RTE_FSMC_BCR1_MWID 1
-#define RTE_FSMC_BCR1_MTYP 2
-#define RTE_FSMC_BCR1_MUXEN 1
-#define RTE_FSMC_BCR1_MBKEN 1
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR1_ACCMOD 0
-#define RTE_FSMC_BTR1_DATLAT 15
-#define RTE_FSMC_BTR1_CLKDIV 15
-#define RTE_FSMC_BTR1_BUSTURN 15
-#define RTE_FSMC_BTR1_DATAST 255
-#define RTE_FSMC_BTR1_ADDHLD 15
-#define RTE_FSMC_BTR1_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR1_ACCMOD 0
-#define RTE_FSMC_BWTR1_DATLAT 15
-#define RTE_FSMC_BWTR1_CLKDIV 15
-#define RTE_FSMC_BWTR1_BUSTURN 15
-#define RTE_FSMC_BWTR1_DATAST 255
-#define RTE_FSMC_BWTR1_ADDHLD 15
-#define RTE_FSMC_BWTR1_ADDSET 15
-//
-//
-
-// FSMC_NE2 Chip Select
-// Configure Device on Chip Select FSMC_NE2
-#define RTE_FSMC_NE2 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR2_CBURSTRW 0
-#define RTE_FSMC_BCR2_ASYNCWAIT 0
-#define RTE_FSMC_BCR2_EXTMOD 0
-#define RTE_FSMC_BCR2_WAITEN 1
-#define RTE_FSMC_BCR2_WREN 1
-#define RTE_FSMC_BCR2_WAITCFG 0
-#define RTE_FSMC_BCR2_WRAPMOD 0
-#define RTE_FSMC_BCR2_WAITPOL 0
-#define RTE_FSMC_BCR2_BURSTEN 0
-#define RTE_FSMC_BCR2_FACCEN 1
-#define RTE_FSMC_BCR2_MWID 1
-#define RTE_FSMC_BCR2_MTYP 0
-#define RTE_FSMC_BCR2_MUXEN 1
-#define RTE_FSMC_BCR2_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR2_ACCMOD 0
-#define RTE_FSMC_BTR2_DATLAT 15
-#define RTE_FSMC_BTR2_CLKDIV 15
-#define RTE_FSMC_BTR2_BUSTURN 15
-#define RTE_FSMC_BTR2_DATAST 255
-#define RTE_FSMC_BTR2_ADDHLD 15
-#define RTE_FSMC_BTR2_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR2_ACCMOD 0
-#define RTE_FSMC_BWTR2_DATLAT 15
-#define RTE_FSMC_BWTR2_CLKDIV 15
-#define RTE_FSMC_BWTR2_BUSTURN 15
-#define RTE_FSMC_BWTR2_DATAST 255
-#define RTE_FSMC_BWTR2_ADDHLD 15
-#define RTE_FSMC_BWTR2_ADDSET 15
-//
-//
-
-// FSMC_NE3 Chip Select
-// Configure Device on Chip Select FSMC_NE3
-#define RTE_FSMC_NE3 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR3_CBURSTRW 0
-#define RTE_FSMC_BCR3_ASYNCWAIT 0
-#define RTE_FSMC_BCR3_EXTMOD 0
-#define RTE_FSMC_BCR3_WAITEN 1
-#define RTE_FSMC_BCR3_WREN 1
-#define RTE_FSMC_BCR3_WAITCFG 0
-#define RTE_FSMC_BCR3_WRAPMOD 0
-#define RTE_FSMC_BCR3_WAITPOL 0
-#define RTE_FSMC_BCR3_BURSTEN 0
-#define RTE_FSMC_BCR3_FACCEN 1
-#define RTE_FSMC_BCR3_MWID 1
-#define RTE_FSMC_BCR3_MTYP 0
-#define RTE_FSMC_BCR3_MUXEN 1
-#define RTE_FSMC_BCR3_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR3_ACCMOD 0
-#define RTE_FSMC_BTR3_DATLAT 15
-#define RTE_FSMC_BTR3_CLKDIV 15
-#define RTE_FSMC_BTR3_BUSTURN 15
-#define RTE_FSMC_BTR3_DATAST 255
-#define RTE_FSMC_BTR3_ADDHLD 15
-#define RTE_FSMC_BTR3_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR3_ACCMOD 0
-#define RTE_FSMC_BWTR3_DATLAT 15
-#define RTE_FSMC_BWTR3_CLKDIV 15
-#define RTE_FSMC_BWTR3_BUSTURN 15
-#define RTE_FSMC_BWTR3_DATAST 255
-#define RTE_FSMC_BWTR3_ADDHLD 15
-#define RTE_FSMC_BWTR3_ADDSET 15
-//
-//
-
-// FSMC_NE4 Chip Select
-// Configure Device on Chip Select FSMC_NE4
-#define RTE_FSMC_NE4 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR4_CBURSTRW 0
-#define RTE_FSMC_BCR4_ASYNCWAIT 0
-#define RTE_FSMC_BCR4_EXTMOD 0
-#define RTE_FSMC_BCR4_WAITEN 1
-#define RTE_FSMC_BCR4_WREN 1
-#define RTE_FSMC_BCR4_WAITCFG 0
-#define RTE_FSMC_BCR4_WRAPMOD 0
-#define RTE_FSMC_BCR4_WAITPOL 0
-#define RTE_FSMC_BCR4_BURSTEN 0
-#define RTE_FSMC_BCR4_FACCEN 1
-#define RTE_FSMC_BCR4_MWID 1
-#define RTE_FSMC_BCR4_MTYP 0
-#define RTE_FSMC_BCR4_MUXEN 1
-#define RTE_FSMC_BCR4_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR4_ACCMOD 0
-#define RTE_FSMC_BTR4_DATLAT 15
-#define RTE_FSMC_BTR4_CLKDIV 15
-#define RTE_FSMC_BTR4_BUSTURN 15
-#define RTE_FSMC_BTR4_DATAST 255
-#define RTE_FSMC_BTR4_ADDHLD 15
-#define RTE_FSMC_BTR4_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR4_ACCMOD 0
-#define RTE_FSMC_BWTR4_DATLAT 15
-#define RTE_FSMC_BWTR4_CLKDIV 15
-#define RTE_FSMC_BWTR4_BUSTURN 15
-#define RTE_FSMC_BWTR4_DATAST 255
-#define RTE_FSMC_BWTR4_ADDHLD 15
-#define RTE_FSMC_BWTR4_ADDSET 15
-//
-//
-
-//
-
-// NAND Flash Controller
-
-// FSMC_NCE2 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE2
-#define RTE_FSMC_NCE2 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR2_ECCPS 0
-#define RTE_FSMC_PCR2_TAR 0
-#define RTE_FSMC_PCR2_TCLR 0
-#define RTE_FSMC_PCR2_ECCEN 0
-#define RTE_FSMC_PCR2_PWID 0
-#define RTE_FSMC_PCR2_PTYP 1
-#define RTE_FSMC_PCR2_PBKEN 0
-#define RTE_FSMC_PCR2_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR2_IFEN 0
-#define RTE_FSMC_SR2_ILEN 0
-#define RTE_FSMC_SR2_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM2_MEMHIZ 255
-#define RTE_FSMC_PMEM2_MEMHOLD 255
-#define RTE_FSMC_PMEM2_MEMWAIT 255
-#define RTE_FSMC_PMEM2_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT2_ATTHIZ 255
-#define RTE_FSMC_PATT2_ATTHOLD 255
-#define RTE_FSMC_PATT2_ATTWAIT 255
-#define RTE_FSMC_PATT2_ATTSET 255
-
-//
-
-//
-
-// FSMC_NCE3 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE3
-#define RTE_FSMC_NCE3 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR3_ECCPS 0
-#define RTE_FSMC_PCR3_TAR 0
-#define RTE_FSMC_PCR3_TCLR 0
-#define RTE_FSMC_PCR3_ECCEN 0
-#define RTE_FSMC_PCR3_PWID 0
-#define RTE_FSMC_PCR3_PTYP 1
-#define RTE_FSMC_PCR3_PBKEN 0
-#define RTE_FSMC_PCR3_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR3_IFEN 0
-#define RTE_FSMC_SR3_ILEN 0
-#define RTE_FSMC_SR3_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM3_MEMHIZ 255
-#define RTE_FSMC_PMEM3_MEMHOLD 255
-#define RTE_FSMC_PMEM3_MEMWAIT 255
-#define RTE_FSMC_PMEM3_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT3_ATTHIZ 255
-#define RTE_FSMC_PATT3_ATTHOLD 255
-#define RTE_FSMC_PATT3_ATTWAIT 255
-#define RTE_FSMC_PATT3_ATTSET 255
-
-//
-
-//
-
-//
-
-// PC Card Controller
-
-// FSMC_NCE4_x Chip Select
-// Configure PC Card/CompactFlash Device on Chip Select FSMC_NCE4_1/FSMC_NCE4_2
-#define RTE_FSMC_NCE4 0
-
-// PC Card Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <0=>PC Card, CompactFlash, CF+ or PCMCIOA
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: PC Card memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR4_ECCPS 0
-#define RTE_FSMC_PCR4_TAR 0
-#define RTE_FSMC_PCR4_TCLR 0
-#define RTE_FSMC_PCR4_ECCEN 0
-#define RTE_FSMC_PCR4_PWID 0
-#define RTE_FSMC_PCR4_PTYP 0
-#define RTE_FSMC_PCR4_PBKEN 0
-#define RTE_FSMC_PCR4_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR4_IFEN 0
-#define RTE_FSMC_SR4_ILEN 0
-#define RTE_FSMC_SR4_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM4_MEMHIZ 255
-#define RTE_FSMC_PMEM4_MEMHOLD 255
-#define RTE_FSMC_PMEM4_MEMWAIT 255
-#define RTE_FSMC_PMEM4_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT4_ATTHIZ 255
-#define RTE_FSMC_PATT4_ATTHOLD 255
-#define RTE_FSMC_PATT4_ATTWAIT 255
-#define RTE_FSMC_PATT4_ATTSET 255
-
-//
-
-// I/O space timing
-// IOHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a PC Card write access. Only valid for write transaction.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (SMNWE,
-// SMNOE), for PC Card read or write access. The duration for command assertion is
-// extended if the wait signal (NWAIT) is active (low) at the end of the
-// programmed value of HCLK.
-// 0000 0000: reserved, do not use this value
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles
-// IOSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PIO4_IOHIZ 255
-#define RTE_FSMC_PIO4_IOHOLD 255
-#define RTE_FSMC_PIO4_IOWAIT 255
-#define RTE_FSMC_PIO4_IOSET 255
-
-//
-
-//
-
-//
-
-//
-
-
-#endif /* __RTE_DEVICE_H */
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/startup_stm32f2xx.s b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/startup_stm32f2xx.s
deleted file mode 100644
index d398143ef..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/startup_stm32f2xx.s
+++ /dev/null
@@ -1,419 +0,0 @@
-;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
-;* File Name : startup_stm32f2xx.s
-;* Author : MCD Application Team
-;* Version : V1.0.0
-;* Date : 18-April-2011
-;* Description : STM32F2xx devices vector table for MDK-ARM toolchain.
-;* This module performs:
-;* - Set the initial SP
-;* - Set the initial PC == Reset_Handler
-;* - Set the vector table entries with the exceptions ISR address
-;* - Branches to __main in the C library (which eventually
-;* calls main()).
-;* After Reset the CortexM3 processor is in Thread mode,
-;* priority is Privileged, and the Stack is set to Main.
-;* <<< Use Configuration Wizard in Context Menu >>>
-;*******************************************************************************
-; 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.
-;*******************************************************************************
-
-; Amount of memory (in bytes) allocated for Stack
-; Tailor this value to your application needs
-; Stack Configuration
-; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Stack_Size EQU 0x00000400
-
- AREA STACK, NOINIT, READWRITE, ALIGN=3
-Stack_Mem SPACE Stack_Size
-__initial_sp
-
-
-; Heap Configuration
-; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Heap_Size EQU 0x00007000
-
- AREA HEAP, NOINIT, READWRITE, ALIGN=3
-__heap_base
-Heap_Mem SPACE Heap_Size
-__heap_limit
-
- PRESERVE8
- THUMB
-
-
-; Vector Table Mapped to Address 0 at Reset
- AREA RESET, DATA, READONLY
- EXPORT __Vectors
- EXPORT __Vectors_End
- EXPORT __Vectors_Size
-
-__Vectors DCD __initial_sp ; Top of Stack
- DCD Reset_Handler ; Reset Handler
- DCD NMI_Handler ; NMI Handler
- DCD HardFault_Handler ; Hard Fault Handler
- DCD MemManage_Handler ; MPU Fault Handler
- DCD BusFault_Handler ; Bus Fault Handler
- DCD UsageFault_Handler ; Usage Fault Handler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD SVC_Handler ; SVCall Handler
- DCD DebugMon_Handler ; Debug Monitor Handler
- DCD 0 ; Reserved
- DCD PendSV_Handler ; PendSV Handler
- DCD SysTick_Handler ; SysTick Handler
-
- ; External Interrupts
- DCD WWDG_IRQHandler ; Window WatchDog
- DCD PVD_IRQHandler ; PVD through EXTI Line detection
- DCD TAMP_STAMP_IRQHandler ; Tamper and TimeStamps through the EXTI line
- DCD RTC_WKUP_IRQHandler ; RTC Wakeup through the EXTI line
- DCD FLASH_IRQHandler ; FLASH
- DCD RCC_IRQHandler ; RCC
- DCD EXTI0_IRQHandler ; EXTI Line0
- DCD EXTI1_IRQHandler ; EXTI Line1
- DCD EXTI2_IRQHandler ; EXTI Line2
- DCD EXTI3_IRQHandler ; EXTI Line3
- DCD EXTI4_IRQHandler ; EXTI Line4
- DCD DMA1_Stream0_IRQHandler ; DMA1 Stream 0
- DCD DMA1_Stream1_IRQHandler ; DMA1 Stream 1
- DCD DMA1_Stream2_IRQHandler ; DMA1 Stream 2
- DCD DMA1_Stream3_IRQHandler ; DMA1 Stream 3
- DCD DMA1_Stream4_IRQHandler ; DMA1 Stream 4
- DCD DMA1_Stream5_IRQHandler ; DMA1 Stream 5
- DCD DMA1_Stream6_IRQHandler ; DMA1 Stream 6
- DCD ADC_IRQHandler ; ADC1, ADC2 and ADC3s
- DCD CAN1_TX_IRQHandler ; CAN1 TX
- DCD CAN1_RX0_IRQHandler ; CAN1 RX0
- DCD CAN1_RX1_IRQHandler ; CAN1 RX1
- DCD CAN1_SCE_IRQHandler ; CAN1 SCE
- DCD EXTI9_5_IRQHandler ; External Line[9:5]s
- DCD TIM1_BRK_TIM9_IRQHandler ; TIM1 Break and TIM9
- DCD TIM1_UP_TIM10_IRQHandler ; TIM1 Update and TIM10
- DCD TIM1_TRG_COM_TIM11_IRQHandler ; TIM1 Trigger and Commutation and TIM11
- DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
- DCD TIM2_IRQHandler ; TIM2
- DCD TIM3_IRQHandler ; TIM3
- DCD TIM4_IRQHandler ; TIM4
- DCD I2C1_EV_IRQHandler ; I2C1 Event
- DCD I2C1_ER_IRQHandler ; I2C1 Error
- DCD I2C2_EV_IRQHandler ; I2C2 Event
- DCD I2C2_ER_IRQHandler ; I2C2 Error
- DCD SPI1_IRQHandler ; SPI1
- DCD SPI2_IRQHandler ; SPI2
- DCD USART1_IRQHandler ; USART1
- DCD USART2_IRQHandler ; USART2
- DCD USART3_IRQHandler ; USART3
- DCD EXTI15_10_IRQHandler ; External Line[15:10]s
- DCD RTC_Alarm_IRQHandler ; RTC Alarm (A and B) through EXTI Line
- DCD OTG_FS_WKUP_IRQHandler ; USB OTG FS Wakeup through EXTI line
- DCD TIM8_BRK_TIM12_IRQHandler ; TIM8 Break and TIM12
- DCD TIM8_UP_TIM13_IRQHandler ; TIM8 Update and TIM13
- DCD TIM8_TRG_COM_TIM14_IRQHandler ; TIM8 Trigger and Commutation and TIM14
- DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare
- DCD DMA1_Stream7_IRQHandler ; DMA1 Stream7
- DCD FSMC_IRQHandler ; FSMC
- DCD SDIO_IRQHandler ; SDIO
- DCD TIM5_IRQHandler ; TIM5
- DCD SPI3_IRQHandler ; SPI3
- DCD UART4_IRQHandler ; UART4
- DCD UART5_IRQHandler ; UART5
- DCD TIM6_DAC_IRQHandler ; TIM6 and DAC1&2 underrun errors
- DCD TIM7_IRQHandler ; TIM7
- DCD DMA2_Stream0_IRQHandler ; DMA2 Stream 0
- DCD DMA2_Stream1_IRQHandler ; DMA2 Stream 1
- DCD DMA2_Stream2_IRQHandler ; DMA2 Stream 2
- DCD DMA2_Stream3_IRQHandler ; DMA2 Stream 3
- DCD DMA2_Stream4_IRQHandler ; DMA2 Stream 4
- DCD ETH_IRQHandler ; Ethernet
- DCD ETH_WKUP_IRQHandler ; Ethernet Wakeup through EXTI line
- DCD CAN2_TX_IRQHandler ; CAN2 TX
- DCD CAN2_RX0_IRQHandler ; CAN2 RX0
- DCD CAN2_RX1_IRQHandler ; CAN2 RX1
- DCD CAN2_SCE_IRQHandler ; CAN2 SCE
- DCD OTG_FS_IRQHandler ; USB OTG FS
- DCD DMA2_Stream5_IRQHandler ; DMA2 Stream 5
- DCD DMA2_Stream6_IRQHandler ; DMA2 Stream 6
- DCD DMA2_Stream7_IRQHandler ; DMA2 Stream 7
- DCD USART6_IRQHandler ; USART6
- DCD I2C3_EV_IRQHandler ; I2C3 event
- DCD I2C3_ER_IRQHandler ; I2C3 error
- DCD OTG_HS_EP1_OUT_IRQHandler ; USB OTG HS End Point 1 Out
- DCD OTG_HS_EP1_IN_IRQHandler ; USB OTG HS End Point 1 In
- DCD OTG_HS_WKUP_IRQHandler ; USB OTG HS Wakeup through EXTI
- DCD OTG_HS_IRQHandler ; USB OTG HS
- DCD DCMI_IRQHandler ; DCMI
- DCD CRYP_IRQHandler ; CRYP crypto
- DCD HASH_RNG_IRQHandler ; Hash and Rng
-__Vectors_End
-
-__Vectors_Size EQU __Vectors_End - __Vectors
-
- AREA |.text|, CODE, READONLY
-
-; Reset handler
-Reset_Handler PROC
- EXPORT Reset_Handler [WEAK]
- IMPORT SystemInit
- IMPORT __main
- LDR R0, =SystemInit
- BLX R0
- LDR R0, =__main
- BX R0
- ENDP
-
-; Dummy Exception Handlers (infinite loops which can be modified)
-
-NMI_Handler PROC
- EXPORT NMI_Handler [WEAK]
- B .
- ENDP
-HardFault_Handler\
- PROC
- EXPORT HardFault_Handler [WEAK]
- B .
- ENDP
-MemManage_Handler\
- PROC
- EXPORT MemManage_Handler [WEAK]
- B .
- ENDP
-BusFault_Handler\
- PROC
- EXPORT BusFault_Handler [WEAK]
- B .
- ENDP
-UsageFault_Handler\
- PROC
- EXPORT UsageFault_Handler [WEAK]
- B .
- ENDP
-SVC_Handler PROC
- EXPORT SVC_Handler [WEAK]
- B .
- ENDP
-DebugMon_Handler\
- PROC
- EXPORT DebugMon_Handler [WEAK]
- B .
- ENDP
-PendSV_Handler PROC
- EXPORT PendSV_Handler [WEAK]
- B .
- ENDP
-SysTick_Handler PROC
- EXPORT SysTick_Handler [WEAK]
- B .
- ENDP
-
-Default_Handler PROC
-
- EXPORT WWDG_IRQHandler [WEAK]
- EXPORT PVD_IRQHandler [WEAK]
- EXPORT TAMP_STAMP_IRQHandler [WEAK]
- EXPORT RTC_WKUP_IRQHandler [WEAK]
- EXPORT FLASH_IRQHandler [WEAK]
- EXPORT RCC_IRQHandler [WEAK]
- EXPORT EXTI0_IRQHandler [WEAK]
- EXPORT EXTI1_IRQHandler [WEAK]
- EXPORT EXTI2_IRQHandler [WEAK]
- EXPORT EXTI3_IRQHandler [WEAK]
- EXPORT EXTI4_IRQHandler [WEAK]
- EXPORT DMA1_Stream0_IRQHandler [WEAK]
- EXPORT DMA1_Stream1_IRQHandler [WEAK]
- EXPORT DMA1_Stream2_IRQHandler [WEAK]
- EXPORT DMA1_Stream3_IRQHandler [WEAK]
- EXPORT DMA1_Stream4_IRQHandler [WEAK]
- EXPORT DMA1_Stream5_IRQHandler [WEAK]
- EXPORT DMA1_Stream6_IRQHandler [WEAK]
- EXPORT ADC_IRQHandler [WEAK]
- EXPORT CAN1_TX_IRQHandler [WEAK]
- EXPORT CAN1_RX0_IRQHandler [WEAK]
- EXPORT CAN1_RX1_IRQHandler [WEAK]
- EXPORT CAN1_SCE_IRQHandler [WEAK]
- EXPORT EXTI9_5_IRQHandler [WEAK]
- EXPORT TIM1_BRK_TIM9_IRQHandler [WEAK]
- EXPORT TIM1_UP_TIM10_IRQHandler [WEAK]
- EXPORT TIM1_TRG_COM_TIM11_IRQHandler [WEAK]
- EXPORT TIM1_CC_IRQHandler [WEAK]
- EXPORT TIM2_IRQHandler [WEAK]
- EXPORT TIM3_IRQHandler [WEAK]
- EXPORT TIM4_IRQHandler [WEAK]
- EXPORT I2C1_EV_IRQHandler [WEAK]
- EXPORT I2C1_ER_IRQHandler [WEAK]
- EXPORT I2C2_EV_IRQHandler [WEAK]
- EXPORT I2C2_ER_IRQHandler [WEAK]
- EXPORT SPI1_IRQHandler [WEAK]
- EXPORT SPI2_IRQHandler [WEAK]
- EXPORT USART1_IRQHandler [WEAK]
- EXPORT USART2_IRQHandler [WEAK]
- EXPORT USART3_IRQHandler [WEAK]
- EXPORT EXTI15_10_IRQHandler [WEAK]
- EXPORT RTC_Alarm_IRQHandler [WEAK]
- EXPORT OTG_FS_WKUP_IRQHandler [WEAK]
- EXPORT TIM8_BRK_TIM12_IRQHandler [WEAK]
- EXPORT TIM8_UP_TIM13_IRQHandler [WEAK]
- EXPORT TIM8_TRG_COM_TIM14_IRQHandler [WEAK]
- EXPORT TIM8_CC_IRQHandler [WEAK]
- EXPORT DMA1_Stream7_IRQHandler [WEAK]
- EXPORT FSMC_IRQHandler [WEAK]
- EXPORT SDIO_IRQHandler [WEAK]
- EXPORT TIM5_IRQHandler [WEAK]
- EXPORT SPI3_IRQHandler [WEAK]
- EXPORT UART4_IRQHandler [WEAK]
- EXPORT UART5_IRQHandler [WEAK]
- EXPORT TIM6_DAC_IRQHandler [WEAK]
- EXPORT TIM7_IRQHandler [WEAK]
- EXPORT DMA2_Stream0_IRQHandler [WEAK]
- EXPORT DMA2_Stream1_IRQHandler [WEAK]
- EXPORT DMA2_Stream2_IRQHandler [WEAK]
- EXPORT DMA2_Stream3_IRQHandler [WEAK]
- EXPORT DMA2_Stream4_IRQHandler [WEAK]
- EXPORT ETH_IRQHandler [WEAK]
- EXPORT ETH_WKUP_IRQHandler [WEAK]
- EXPORT CAN2_TX_IRQHandler [WEAK]
- EXPORT CAN2_RX0_IRQHandler [WEAK]
- EXPORT CAN2_RX1_IRQHandler [WEAK]
- EXPORT CAN2_SCE_IRQHandler [WEAK]
- EXPORT OTG_FS_IRQHandler [WEAK]
- EXPORT DMA2_Stream5_IRQHandler [WEAK]
- EXPORT DMA2_Stream6_IRQHandler [WEAK]
- EXPORT DMA2_Stream7_IRQHandler [WEAK]
- EXPORT USART6_IRQHandler [WEAK]
- EXPORT I2C3_EV_IRQHandler [WEAK]
- EXPORT I2C3_ER_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_OUT_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_IN_IRQHandler [WEAK]
- EXPORT OTG_HS_WKUP_IRQHandler [WEAK]
- EXPORT OTG_HS_IRQHandler [WEAK]
- EXPORT DCMI_IRQHandler [WEAK]
- EXPORT CRYP_IRQHandler [WEAK]
- EXPORT HASH_RNG_IRQHandler [WEAK]
-
-WWDG_IRQHandler
-PVD_IRQHandler
-TAMP_STAMP_IRQHandler
-RTC_WKUP_IRQHandler
-FLASH_IRQHandler
-RCC_IRQHandler
-EXTI0_IRQHandler
-EXTI1_IRQHandler
-EXTI2_IRQHandler
-EXTI3_IRQHandler
-EXTI4_IRQHandler
-DMA1_Stream0_IRQHandler
-DMA1_Stream1_IRQHandler
-DMA1_Stream2_IRQHandler
-DMA1_Stream3_IRQHandler
-DMA1_Stream4_IRQHandler
-DMA1_Stream5_IRQHandler
-DMA1_Stream6_IRQHandler
-ADC_IRQHandler
-CAN1_TX_IRQHandler
-CAN1_RX0_IRQHandler
-CAN1_RX1_IRQHandler
-CAN1_SCE_IRQHandler
-EXTI9_5_IRQHandler
-TIM1_BRK_TIM9_IRQHandler
-TIM1_UP_TIM10_IRQHandler
-TIM1_TRG_COM_TIM11_IRQHandler
-TIM1_CC_IRQHandler
-TIM2_IRQHandler
-TIM3_IRQHandler
-TIM4_IRQHandler
-I2C1_EV_IRQHandler
-I2C1_ER_IRQHandler
-I2C2_EV_IRQHandler
-I2C2_ER_IRQHandler
-SPI1_IRQHandler
-SPI2_IRQHandler
-USART1_IRQHandler
-USART2_IRQHandler
-USART3_IRQHandler
-EXTI15_10_IRQHandler
-RTC_Alarm_IRQHandler
-OTG_FS_WKUP_IRQHandler
-TIM8_BRK_TIM12_IRQHandler
-TIM8_UP_TIM13_IRQHandler
-TIM8_TRG_COM_TIM14_IRQHandler
-TIM8_CC_IRQHandler
-DMA1_Stream7_IRQHandler
-FSMC_IRQHandler
-SDIO_IRQHandler
-TIM5_IRQHandler
-SPI3_IRQHandler
-UART4_IRQHandler
-UART5_IRQHandler
-TIM6_DAC_IRQHandler
-TIM7_IRQHandler
-DMA2_Stream0_IRQHandler
-DMA2_Stream1_IRQHandler
-DMA2_Stream2_IRQHandler
-DMA2_Stream3_IRQHandler
-DMA2_Stream4_IRQHandler
-ETH_IRQHandler
-ETH_WKUP_IRQHandler
-CAN2_TX_IRQHandler
-CAN2_RX0_IRQHandler
-CAN2_RX1_IRQHandler
-CAN2_SCE_IRQHandler
-OTG_FS_IRQHandler
-DMA2_Stream5_IRQHandler
-DMA2_Stream6_IRQHandler
-DMA2_Stream7_IRQHandler
-USART6_IRQHandler
-I2C3_EV_IRQHandler
-I2C3_ER_IRQHandler
-OTG_HS_EP1_OUT_IRQHandler
-OTG_HS_EP1_IN_IRQHandler
-OTG_HS_WKUP_IRQHandler
-OTG_HS_IRQHandler
-DCMI_IRQHandler
-CRYP_IRQHandler
-HASH_RNG_IRQHandler
-
- B .
-
- ENDP
-
- ALIGN
-
-;*******************************************************************************
-; User Stack and Heap initialization
-;*******************************************************************************
- IF :DEF:__MICROLIB
-
- EXPORT __initial_sp
- EXPORT __heap_base
- EXPORT __heap_limit
-
- ELSE
-
- IMPORT __use_two_region_memory
- EXPORT __user_initial_stackheap
-
-__user_initial_stackheap
-
- LDR R0, = Heap_Mem
- LDR R1, =(Stack_Mem + Stack_Size)
- LDR R2, = (Heap_Mem + Heap_Size)
- LDR R3, = Stack_Mem
- BX LR
-
- ALIGN
-
- ENDIF
-
- END
-
-;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/system_stm32f2xx.c b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/system_stm32f2xx.c
deleted file mode 100644
index da0e189c8..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Device/STM32F207IG/system_stm32f2xx.c
+++ /dev/null
@@ -1,536 +0,0 @@
-/**
- ******************************************************************************
- * @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();
-
- /* Configure the Vector Table location add offset address ------------------*/
-#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
-}
-
-/**
- * @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/IDE/MDK5-ARM/Projects/EchoClient/RTE/File_System/FS_Config.c b/IDE/MDK5-ARM/Projects/EchoClient/RTE/File_System/FS_Config.c
deleted file mode 100644
index 78564b080..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/File_System/FS_Config.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config.c
- * Purpose: File System Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// File System
-// Define File System global parameters
-
-// Number of open files <4-16>
-// Define number of files that can be
-// opened at the same time.
-// Default: 8
-#define NUM_FILES 8
-
-// FAT Name Cache Size <0-1000000>
-// Define number of cached FAT file or directory names.
-// 48 bytes of RAM is required for each cached name.
-#define FAT_NAME_CACHE_SIZE 0
-
-// Relocate FAT Name Cache Buffer
-// Locate Cache Buffer at a specific address.
-#define FAT_NAME_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define the Cache buffer base address.
-#define FAT_NAME_CACHE_ADDR 0x60000000
-
-//
-
-//
-
-#include "..\RTE_Components.h"
-
-#ifdef RTE_FileSystem_Drive_RAM
-#include "FS_Config_RAM.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NOR_0
-#include "FS_Config_NOR_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NOR_1
-#include "FS_Config_NOR_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NAND_0
-#include "FS_Config_NAND_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NAND_1
-#include "FS_Config_NAND_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_MC_0
-#include "FS_Config_MC_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_MC_1
-#include "FS_Config_MC_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_USB_0
-#include "FS_Config_USB_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_USB_1
-#include "FS_Config_USB_1.h"
-#endif
-
-#include "fs_config.h"
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/File_System/FS_Config_MC_0.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/File_System/FS_Config_MC_0.h
deleted file mode 100644
index 0b1c6d3a7..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/File_System/FS_Config_MC_0.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System:Drive
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config_MC_0.h
- * Purpose: File System Configuration for Memory Card Drive
- * Rev.: V5.01
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Memory Card Drive 0
-// Configuration for SD/SDHC/MMC Memory Card assigned to drive letter "M0:"
-#define MC0_ENABLE 1
-
-// Connect to hardware via Driver_MCI# <0-255>
-// Select driver control block for hardware interface
-#define MC0_MCI_DRIVER 0
-
-// Connect to hardware via Driver_SPI# <0-255>
-// Select driver control block for hardware interface when in SPI mode
-#define MC0_SPI_DRIVER 0
-
-// Memory Card Interface Mode <0=>Native <1=>SPI
-// Native uses a SD Bus with up to 8 data lines, CLK, and CMD
-// SPI uses 2 data lines (MOSI and MISO), SCLK and CS
-// When using SPI both Driver_SPI# and Driver_MCI# must be specified
-// since the MCI driver provides the control interface lines.
-#define MC0_SPI 0
-
-// Drive Cache Size <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Drive Cache stores data sectors and may be increased to speed-up
-// file read/write operations on this drive (default: 4 KB)
-#define MC0_CACHE_SIZE 4
-
-// Locate Drive Cache and Drive Buffer
-// Some microcontrollers support DMA only in specific memory areas and
-// require to locate the drive buffers at a fixed address.
-#define MC0_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Set buffer base address to RAM areas that support DMA with the drive.
-#define MC0_CACHE_ADDR 0x7FD00000
-
-//
-
-// Use FAT Journal
-// Protect File Allocation Table and Directory Entries for
-// fail-safe operation.
-#define MC0_FAT_JOURNAL 0
-
-// Default Drive "M0:"
-// Use this drive when no drive letter is specified.
-#define MC0_DEFAULT_DRIVE 1
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config.c b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config.c
deleted file mode 100644
index 6b9dc8e00..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config.c
+++ /dev/null
@@ -1,153 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config.c
- * Purpose: Network Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// System Definitions
-// Global Network System definitions
-// Local Host Name
-// This is the name under which embedded host can be
-// accessed on a local area network.
-// Default: "my_host"
-#define NET_HOST_NAME "my_host"
-
-// Memory Pool size <1536-262144:4><#/4>
-// This is the size of a memory pool in bytes. Buffers for
-// Network packets are allocated from this memory pool.
-// Default: 12000 bytes
-#define NET_MEM_SIZE 3000
-
-//
-
-#include "..\RTE_Components.h"
-
-#ifdef RTE_Network_Interface_ETH_0
-#include "Net_Config_ETH_0.h"
-#endif
-#ifdef RTE_Network_Interface_ETH_1
-#include "Net_Config_ETH_1.h"
-#endif
-
-#ifdef RTE_Network_Interface_PPP_0
-#include "Net_Config_PPP_0.h"
-#endif
-#ifdef RTE_Network_Interface_PPP_1
-#include "Net_Config_PPP_1.h"
-#endif
-
-#ifdef RTE_Network_Interface_SLIP_0
-#include "Net_Config_SLIP_0.h"
-#endif
-#ifdef RTE_Network_Interface_SLIP_1
-#include "Net_Config_SLIP_1.h"
-#endif
-
-#ifdef RTE_Network_Socket_UDP
-#include "Net_Config_UDP.h"
-#endif
-#ifdef RTE_Network_Socket_TCP
-#include "Net_Config_TCP.h"
-#endif
-#ifdef RTE_Network_Socket_BSD
-#include "Net_Config_BSD.h"
-#endif
-
-#ifdef RTE_Network_Web_Server_RO
-#include "Net_Config_HTTP_Server.h"
-#endif
-#ifdef RTE_Network_Web_Server_FS
-#include "Net_Config_HTTP_Server.h"
-#endif
-
-#ifdef RTE_Network_Telnet_Server
-#include "Net_Config_Telnet_Server.h"
-#endif
-
-#ifdef RTE_Network_TFTP_Server
-#include "Net_Config_TFTP_Server.h"
-#endif
-#ifdef RTE_Network_TFTP_Client
-#include "Net_Config_TFTP_Client.h"
-#endif
-
-#ifdef RTE_Network_FTP_Server
-#include "Net_Config_FTP_Server.h"
-#endif
-#ifdef RTE_Network_FTP_Client
-#include "Net_Config_FTP_Client.h"
-#endif
-
-#ifdef RTE_Network_DNS_Client
-#include "Net_Config_DNS_Client.h"
-#endif
-
-#ifdef RTE_Network_SMTP_Client
-#include "Net_Config_SMTP_Client.h"
-#endif
-
-#ifdef RTE_Network_SNMP_Agent
-#include "Net_Config_SNMP_Agent.h"
-#endif
-
-#ifdef RTE_Network_SNTP_Client
-#include "Net_Config_SNTP_Client.h"
-#endif
-
-#include "net_config.h"
-
-/**
-\addtogroup net_genFunc
-@{
-*/
-/**
- \fn void net_sys_error (ERROR_CODE error)
- \ingroup net_cores
- \brief Network system error handler.
-*/
-void net_sys_error (ERROR_CODE error) {
- /* This function is called when a fatal error is encountered. */
- /* The normal program execution is not possible anymore. */
-
- switch (error) {
- case ERR_MEM_ALLOC:
- /* Out of memory */
- break;
-
- case ERR_MEM_FREE:
- /* Trying to release non existing memory block */
- break;
-
- case ERR_MEM_CORRUPT:
- /* Memory Link pointer Corrupted */
- /* More data written than the size of allocated mem block */
- break;
-
- case ERR_MEM_LOCK:
- /* Locked Memory management function (alloc/free) re-entered */
- break;
-
- case ERR_UDP_ALLOC:
- /* Out of UDP Sockets */
- break;
-
- case ERR_TCP_ALLOC:
- /* Out of TCP Sockets */
- break;
-
- case ERR_TCP_STATE:
- /* TCP State machine in undefined state */
- break;
- }
-
- /* End-less loop */
- while (1);
-}
-/**
-@}
-*/
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_BSD.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_BSD.h
deleted file mode 100644
index d7e6a614a..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_BSD.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_BSD.h
- * Purpose: Network Configuration BSD Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Berkley (BSD) Sockets
-#define BSD_ENABLE 1
-
-// Number of BSD Sockets <1-20>
-// Number of available Berkeley Sockets
-// Default: 2
-#define BSD_NUM_SOCKS 7
-
-// Number of Streaming Server Sockets <0-20>
-// Defines a number of Streaming (TCP) Server sockets,
-// that listen for an incoming connection from the client.
-// Default: 1
-#define BSD_SERVER_SOCKS 1
-
-// Receive Timeout in seconds <0-600>
-// A timeout for socket receive in blocking mode.
-// Timeout value of 0 means indefinite timeout.
-// Default: 20
-#define BSD_RECEIVE_TOUT 20
-
-// Hostname Resolver
-// Enable or disable Berkeley style hostname resolver.
-#define BSD_HOSTNAME_ENABLE 0
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_DNS_Client.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_DNS_Client.h
deleted file mode 100644
index d30b71807..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_DNS_Client.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Service
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_DNS_Client.h
- * Purpose: Network Configuration DNS Client
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// DNS Client
-#define DNS_CLIENT_ENABLE 1
-
-// Cache Table size <5-100>
-// Number of cached DNS host names/IP addresses
-// Default: 20
-#define DNS_CLIENT_TAB_SIZE 20
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_ETH_0.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_ETH_0.h
deleted file mode 100644
index 1f3f69ae1..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_ETH_0.h
+++ /dev/null
@@ -1,222 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Interface
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_ETH_0.h
- * Purpose: Network Configuration ETH Interface
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Ethernet Network Interface 0
-#define ETH0_ENABLE 1
-
-// Connect to hardware via Driver_ETH# <0-255>
-// Select driver control block for MAC and PHY interface
-#define ETH0_DRIVER 0
-
-// MAC Address
-// Local Ethernet MAC Address
-// Value FF:FF:FF:FF:FF:FF is not allowed.
-// It is an ethernet Broadcast MAC address.
-// Address byte 1 <0x00-0xff:2>
-// LSB is an ethernet Multicast bit.
-// Must be 0 for local MAC address.
-// Default: 0x1E
-#define ETH0_MAC1 0x1E
-
-// Address byte 2 <0x00-0xff>
-// Default: 0x30
-#define ETH0_MAC2 0x30
-
-// Address byte 3 <0x00-0xff>
-// Default: 0x6C
-#define ETH0_MAC3 0x6C
-
-// Address byte 4 <0x00-0xff>
-// Default: 0xA2
-#define ETH0_MAC4 0xA2
-
-// Address byte 5 <0x00-0xff>
-// Default: 0x45
-#define ETH0_MAC5 0x45
-
-// Address byte 6 <0x00-0xff>
-// Default: 0x5E
-#define ETH0_MAC6 0x5E
-//
-
-// IP Address
-// Local Static IP Address
-// Value 255.255.255.255 is not allowed.
-// It is a Broadcast IP address.
-// Address byte 1 <0-255>
-// Default: 192
-#define ETH0_IP1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define ETH0_IP2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define ETH0_IP3 11
-
-// Address byte 4 <0-255>
-// Default: 100
-#define ETH0_IP4 101
-//
-
-// Subnet mask
-// Local Subnet mask
-// Mask byte 1 <0-255>
-// Default: 255
-#define ETH0_MASK1 255
-
-// Mask byte 2 <0-255>
-// Default: 255
-#define ETH0_MASK2 255
-
-// Mask byte 3 <0-255>
-// Default: 255
-#define ETH0_MASK3 255
-
-// Mask byte 4 <0-255>
-// Default: 0
-#define ETH0_MASK4 0
-//
-
-// Default Gateway
-// Default Gateway IP Address
-// Address byte 1 <0-255>
-// Default: 192
-#define ETH0_GW1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define ETH0_GW2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define ETH0_GW3 11
-
-// Address byte 4 <0-255>
-// Default: 254
-#define ETH0_GW4 1
-//
-
-// Primary DNS Server
-// Primary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define ETH0_PRI_DNS1 192
-
-// Address byte 2 <0-255>
-// Default: 25
-#define ETH0_PRI_DNS2 168
-
-// Address byte 3 <0-255>
-// Default: 2
-#define ETH0_PRI_DNS3 11
-
-// Address byte 4 <0-255>
-// Default: 129
-#define ETH0_PRI_DNS4 1
-//
-
-// Secondary DNS Server
-// Secondary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define ETH0_SEC_DNS1 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define ETH0_SEC_DNS2 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define ETH0_SEC_DNS3 2
-
-// Address byte 4 <0-255>
-// Default: 130
-#define ETH0_SEC_DNS4 130
-//
-
-// ARP Definitions
-// Address Resolution Protocol Definitions
-// Cache Table size <5-100>
-// Number of cached hardware/IP addresses
-// Default: 10
-#define ETH0_ARP_TAB_SIZE 10
-
-// Cache Timeout in seconds <5-255>
-// A timeout for a cached hardware/IP addresses
-// Default: 150
-#define ETH0_ARP_CACHE_TOUT 150
-
-// Number of Retries <0-20>
-// Number of Retries to resolve an IP address
-// before ARP module gives up
-// Default: 4
-#define ETH0_ARP_MAX_RETRY 4
-
-// Resend Timeout in seconds <1-10>
-// A timeout to resend the ARP Request
-// Default: 2
-#define ETH0_ARP_RESEND_TOUT 2
-
-// Send Notification on Address changes
-// When this option is enabled, the embedded host
-// will send a Gratuitous ARP notification at startup,
-// or when the device IP address has changed.
-// Default: Disabled
-#define ETH0_ARP_NOTIFY 0
-//
-
-// IGMP Group Management
-// Enable or disable Internet Group Management Protocol
-#define ETH0_IGMP_ENABLE 0
-
-// Membership Table size <2-50>
-// Number of Groups this host can join
-// Default: 5
-#define ETH0_IGMP_TAB_SIZE 5
-//
-
-// NetBIOS Name Service
-// When this option is enabled, the embedded host can be
-// accessed by his name on the local LAN using NBNS protocol.
-// You need to modify also the number of UDP Sockets,
-// because NBNS protocol uses one UDP socket to run.
-#define ETH0_NBNS_ENABLE 0
-
-// Dynamic Host Configuration
-// When this option is enabled, local IP address, Net Mask
-// and Default Gateway are obtained automatically from
-// the DHCP Server on local LAN.
-// You need to modify also the number of UDP Sockets,
-// because DHCP protocol uses one UDP socket to run.
-#define ETH0_DHCP_ENABLE 1
-
-// Vendor Class Identifier
-// This value is optional. If specified, it is added
-// to DHCP request message, identifying vendor type.
-// Default: ""
-#define ETH0_DHCP_VCID ""
-
-// Bootfile Name
-// This value is optional. If enabled, the Bootfile Name
-// (option 67) is also requested from DHCP server.
-// Default: disabled
-#define ETH0_DHCP_BOOTFILE 0
-
-// NTP Servers
-// This value is optional. If enabled, a list of NTP Servers
-// (option 42) is also requested from DHCP server.
-// Default: disabled
-#define ETH0_DHCP_NTP_SERVERS 0
-//
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_TCP.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_TCP.h
deleted file mode 100644
index e659ce921..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_TCP.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_TCP.h
- * Purpose: Network Configuration TCP Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// TCP Sockets
-#define TCP_ENABLE 1
-
-// Number of TCP Sockets <1-20>
-// Number of available TCP sockets
-// Default: 5
-#define TCP_NUM_SOCKS 10
-
-// Number of Retries <0-20>
-// How many times TCP module will try to retransmit data
-// before giving up. Increase this value for high-latency
-// and low_throughput networks.
-// Default: 5
-#define TCP_MAX_RETRY 5
-
-// Retry Timeout in seconds <1-10>
-// If data frame not acknowledged within this time frame,
-// TCP module will try to resend the data again.
-// Default: 4
-#define TCP_RETRY_TOUT 4
-
-// Default Connect Timeout in seconds <1-600>
-// Default TCP Socket Keep Alive timeout. When it expires
-// with no TCP data frame send, TCP Connection is closed.
-// Default: 120
-#define TCP_DEFAULT_TOUT 120
-
-// Maximum Segment Size <536-1460>
-// The Maximum Segment Size specifies the maximum
-// number of bytes in the TCP segment's Data field.
-// Default: 1460
-#define TCP_MAX_SEG_SIZE 1460
-
-// Receive Window Size <536-65535>
-// Receive Window Size specifies the size of data,
-// that the socket is able to buffer in flow-control mode.
-// Default: 4380
-#define TCP_RECEIVE_WIN_SIZE 4380
-
-//
-
-// TCP Initial Retransmit period in seconds
-#define TCP_INITIAL_RETRY_TOUT 1
-
-// TCP SYN frame retransmit period in seconds
-#define TCP_SYN_RETRY_TOUT 2
-
-// Number of retries to establish a connection
-#define TCP_CONNECT_RETRY 7
-
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_UDP.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_UDP.h
deleted file mode 100644
index 8c088e47b..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Config_UDP.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_UDP.h
- * Purpose: Network Configuration UDP Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// UDP Sockets
-#define UDP_ENABLE 1
-
-// Number of UDP Sockets <1-20>
-// Number of available UDP sockets
-// Default: 5
-#define UDP_NUM_SOCKS 15
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Debug.c b/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Debug.c
deleted file mode 100644
index 0636cdfd9..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/Network/Net_Debug.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Debug.c
- * Purpose: Network Debug Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Print Time Stamp
-// Enable printing the time-info in debug messages
-#define DBG_TIME 1
-
-// TCPnet Debug Definitions
-// Memory Management Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Dynamic Memory debug messages
-#define DBG_MEM 1
-
-// Ethernet Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Ethernet debug messages
-#define DBG_ETH 0
-
-// PPP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off PPP debug messages
-#define DBG_PPP 0
-
-// SLIP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off SLIP debug messages
-#define DBG_SLIP 0
-
-// ARP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off ARP debug messages
-#define DBG_ARP 0
-
-// IP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off IP debug messages
-#define DBG_IP 1
-
-// ICMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off ICMP debug messages
-#define DBG_ICMP 1
-
-// IGMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off IGMP debug messages
-#define DBG_IGMP 1
-
-// UDP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off UDP debug messages
-#define DBG_UDP 1
-
-// TCP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TCP debug messages
-#define DBG_TCP 2
-
-// NBNS Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off NetBIOS Name Service debug messages
-#define DBG_NBNS 1
-
-// DHCP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Dynamic Host Configuration debug messages
-#define DBG_DHCP 1
-
-// DNS Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Domain Name Service debug messages
-#define DBG_DNS 1
-
-// SNMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Simple Network Management debug messages
-#define DBG_SNMP 1
-
-// SNTP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Simple Network Time debug messages
-#define DBG_SNTP 1
-
-// BSD Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off BSD Interface debug messages
-#define DBG_BSD 1
-//
-
-// Application Debug Definitions
-// HTTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Web Server debug messages
-#define DBG_HTTP_SERVER 1
-
-// FTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off FTP Server debug messages
-#define DBG_FTP_SERVER 1
-
-// FTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off FTP Client debug messages
-#define DBG_FTP_CLIENT 1
-
-// Telnet Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Telnet Server debug messages
-#define DBG_TELNET_SERVER 1
-
-// TFTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TFTP Server debug messages
-#define DBG_TFTP_SERVER 1
-
-// TFTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TFTP Client debug messages
-#define DBG_TFTP_CLIENT 1
-
-// SMTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off SMTP Client debug messages
-#define DBG_SMTP_CLIENT 1
-//
-
-
-#include "net_debug.h"
-
-
-/**
- \fn void net_debug_init (void)
- \brief Initialize Network Debug Interface.
-*/
-void net_debug_init (void) {
- /* Add your code to initialize the Debug output. This is usually the */
- /* serial interface. The function is called at TCPnet system startup. */
- /* You may need to customize also the 'putchar()' function. */
-
-}
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/RTE_Components.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/RTE_Components.h
deleted file mode 100644
index 631a77143..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/RTE_Components.h
+++ /dev/null
@@ -1,28 +0,0 @@
-
-/*
- * Auto generated Run-Time-Environment Component Configuration File
- * *** Do not modify ! ***
- *
- * Project: 'EchoClient'
- * Target: 'EchoClient'
- */
-
-#ifndef RTE_COMPONENTS_H
-#define RTE_COMPONENTS_H
-
-#define RTE_DEVICE_STARTUP_STM32F2xx /* Device Startup for STM32F2 */
-#define RTE_Drivers_ETH_MAC0 /* Driver ETH_MAC0 */
-#define RTE_Drivers_MCI0 /* Driver MCI0 */
-#define RTE_Drivers_PHY_ST802RT1 /* Driver PHY ST802RT1 */
-#define RTE_FileSystem_Core /* File System Core */
- #define RTE_FileSystem_LFN /* File System with Long Filename support */
-#define RTE_FileSystem_Drive_MC_0 /* File System Memory Card Drive 0 */
-#define RTE_Network_Core /* Network Core */
- #define RTE_Network_Debug /* Network Debug Version */
-#define RTE_Network_DNS_Client /* Network DNS Client */
-#define RTE_Network_Interface_ETH_0 /* Network Interface ETH 0 */
-#define RTE_Network_Socket_BSD /* Network Socket BSD */
-#define RTE_Network_Socket_TCP /* Network Socket TCP */
-#define RTE_Network_Socket_UDP /* Network Socket UDP */
-
-#endif /* RTE_COMPONENTS_H */
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/config-Crypt.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/config-Crypt.h
deleted file mode 100644
index a11c3ef24..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/config-Crypt.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/* config-FS.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-// <<< Use Configuration Wizard in Context Menu >>>
-
-// wolfCrypt Configuration
-
-// Cert/Key Strage
-// Cert Storage <0=> SD Card <1=> Mem Buff (1024bytes) <2=> Mem Buff (2048bytes)
-#define MDK_CONF_CERT_BUFF 0
-#if MDK_CONF_CERT_BUFF== 1
-#define USE_CERT_BUFFERS_1024
-#elif MDK_CONF_CERT_BUFF == 2
-#define USE_CERT_BUFFERS_2048
-#endif
-//
-
-// Crypt Algrithm
-
-// MD5, SHA, SHA-256, AES, RC4, ASN, RSA
-//
-
-// MD2
-#define MDK_CONF_MD2 0
-#if MDK_CONF_MD2 == 1
-#define CYASSL_MD2
-#endif
-//
-// MD4
-#define MDK_CONF_MD4 1
-#if MDK_CONF_MD4 == 0
-#define NO_MD4
-#endif
-//
-// SHA-384
-// This has to be with SHA512
-#define MDK_CONF_SHA384 0
-#if MDK_CONF_SHA384 == 1
-#define CYASSL_SHA384
-#endif
-//
-// SHA-512
-#define MDK_CONF_SHA512 0
-#if MDK_CONF_SHA512 == 1
-#define CYASSL_SHA512
-#endif
-//
-// RIPEMD
-#define MDK_CONF_RIPEMD 0
-#if MDK_CONF_RIPEMD == 1
-#define CYASSL_RIPEMD
-#endif
-//
-// HMAC
-#define MDK_CONF_HMAC 1
-#if MDK_CONF_HMAC == 0
-#define NO_HMAC
-#endif
-//
-// HC128
-#define MDK_CONF_HC128 0
-#if MDK_CONF_HC128 == 1
-#define HAVE_HC128
-#endif
-//
-// RABBIT
-#define MDK_CONF_RABBIT 1
-#if MDK_CONF_RABBI == 0
-#define NO_RABBIT
-#endif
-//
-
-// AEAD
-#define MDK_CONF_AEAD 0
-#if MDK_CONF_AEAD == 1
-#define HAVE_AEAD
-#endif
-//
-// DES3
-#define MDK_CONF_DES3 1
-#if MDK_CONF_DES3 == 0
-#define NO_DES3
-#endif
-//
-// CAMELLIA
-#define MDK_CONF_CAMELLIA 0
-#if MDK_CONF_CAMELLIA == 1
-#define HAVE_CAMELLIA
-#endif
-//
-
-// DH
-// need this for CYASSL_SERVER, OPENSSL_EXTRA
-#define MDK_CONF_DH 1
-#if MDK_CONF_DH == 0
-#define NO_DH
-#endif
-//
-// DSA
-#define MDK_CONF_DSA 1
-#if MDK_CONF_DSA == 0
-#define NO_DSA
-#endif
-//
-// PWDBASED
-#define MDK_CONF_PWDBASED 1
-#if MDK_CONF_PWDBASED == 0
-#define NO_PWDBASED
-#endif
-//
-
-// ECC
-#define MDK_CONF_ECC 0
-#if MDK_CONF_ECC == 1
-#define HAVE_ECC
-#endif
-//
-// PSK
-#define MDK_CONF_PSK 1
-#if MDK_CONF_PSK == 0
-#define NO_PSK
-#endif
-//
-// AESCCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESCCM 0
-#if MDK_CONF_AESCCM == 1
-#define HAVE_AESCCM
-#endif
-//
-// AESGCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESGCM 0
-#if MDK_CONF_AESGCM == 1
-#define HAVE_AESGCM
-#define BUILD_AESGCM
-#endif
-//
-// NTRU (need License, "crypto_ntru.h")
-#define MDK_CONF_NTRU 0
-#if MDK_CONF_NTRU == 1
-#define HAVE_NTRU
-#endif
-//
-//
-
-// Hardware Crypt (See document for usage)
-// Hardware RNG
-#define MDK_CONF_STM32F2_RNG 0
-#if MDK_CONF_STM32F2_RNG == 1
-#define STM32F2_RNG
-#else
-
-#endif
-//
-// Hardware Crypt
-#define MDK_CONF_STM32F2_CRYPTO 0
-#if MDK_CONF_STM32F2_CRYPTO == 1
-#define STM32F2_CRYPTO
-#endif
-//
-
-//
-
-
-
-//
-// <<< end of configuration section >>>
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/config-CyaSSL.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/config-CyaSSL.h
deleted file mode 100644
index 02ba94bd4..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/config-CyaSSL.h
+++ /dev/null
@@ -1,144 +0,0 @@
-/* config-RTX-TCP-FS.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-/**** CyaSSL for KEIL-RL Configuration ****/
-
-#define __CORTEX_M3__
-#define CYASSL_MDK_ARM
-#define NO_WRITEV
-#define NO_CYASSL_DIR
-#define NO_MAIN_DRIVER
-
-
-#define CYASSL_DER_LOAD
-#define HAVE_NULL_CIPHER
-
-#define HAVE_KEIL_RTX
-#define CYASSL_CMSIS_RTOS
-#define CYASSL_KEIL_TCP_NET
-
-
-// <<< Use Configuration Wizard in Context Menu >>>
-// CyaSSL Configuration
-
-// SSL (Included by default)
-//
-
-// TLS
-#define MDK_CONF_TLS 1
-#if MDK_CONF_TLS == 0
-#define NO_TLS
-#endif
-//
-
-// CRL
-#define MDK_CONF_DER_LOAD 0
-#if MDK_CONF_DER_LOAD == 1
-#define CYASSL_DER_LOAD
-#endif
-//
-// OpenSSL Extra
-#define MDK_CONF_OPENSSL_EXTRA 1
-#if MDK_CONF_OPENSSL_EXTRA == 1
-#define OPENSSL_EXTRA
-#endif
-//
-//
-
-// Cert/Key Generation
-// CertGen
-#define MDK_CONF_CERT_GEN 0
-#if MDK_CONF_CERT_GEN == 1
-#define CYASSL_CERT_GEN
-#endif
-//
-// KeyGen
-#define MDK_CONF_KEY_GEN 0
-#if MDK_CONF_KEY_GEN == 1
-#define CYASSL_KEY_GEN
-#endif
-//
-//
-
-// Others
-
-// Inline
-#define MDK_CONF_INLINE 0
-#if MDK_CONF_INLINE == 0
-#define NO_INLINE
-#endif
-//
-// Debug
-// Debug Message
-#define MDK_CONF_DebugMessage 0
-#if MDK_CONF_DebugMessage == 1
-#define DEBUG_CYASSL
-#endif
-//
-// Check malloc
-#define MDK_CONF_CheckMalloc 1
-#if MDK_CONF_CheckMalloc == 1
-#define CYASSL_MALLOC_CHECK
-#endif
-//
-
-
-//
-// ErrNo.h
-#define MDK_CONF_ErrNo 0
-#if MDK_CONF_ErrNo == 1
-#define HAVE_ERRNO
-#endif
-//
-// Error Strings
-#define MDK_CONF_ErrorStrings 1
-#if MDK_CONF_ErrorStrings == 0
-#define NO_ERROR_STRINGS
-#endif
-//
-// zlib (need "zlib.h")
-#define MDK_CONF_LIBZ 0
-#if MDK_CONF_LIBZ == 1
-#define HAVE_LIBZ
-#endif
-//
-// CAVIUM (need CAVIUM headers)
-#define MDK_CONF_CAVIUM 0
-#if MDK_CONF_CAVIUM == 1
-#define HAVE_CAVIUM
-#endif
-//
-// Small Stack
-#define MDK_CONF_SmallStack 1
-#if MDK_CONF_SmallStack == 0
-#define NO_CYASSL_SMALL_STACK
-#endif
-//
-// Use Fast Math
-#define MDK_CONF_FASTMATH 0
-#if MDK_CONF_FASTMATH == 1
-#define USE_FAST_MATH
-#endif
-//
-//
-
-// <<< end of configuration section >>>
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/settings.h b/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/settings.h
deleted file mode 100644
index 22dea06d0..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/settings.h
+++ /dev/null
@@ -1,627 +0,0 @@
-/* settings.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-/* Place OS specific preprocessor flags, defines, includes here, will be
- included into every file because types.h includes it */
-
-
-#ifndef CTAO_CRYPT_SETTINGS_H
-#define CTAO_CRYPT_SETTINGS_H
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
-/* Uncomment next line if using IPHONE */
-/* #define IPHONE */
-
-/* Uncomment next line if using ThreadX */
-/* #define THREADX */
-
-/* Uncomment next line if using Micrium ucOS */
-/* #define MICRIUM */
-
-/* Uncomment next line if using Mbed */
-/* #define MBED */
-
-/* Uncomment next line if using Microchip PIC32 ethernet starter kit */
-/* #define MICROCHIP_PIC32 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 5 */
-/* #define MICROCHIP_TCPIP_V5 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 6 or later */
-/* #define MICROCHIP_TCPIP */
-
-/* Uncomment next line if using FreeRTOS */
-/* #define FREERTOS */
-
-/* Uncomment next line if using FreeRTOS Windows Simulator */
-/* #define FREERTOS_WINSIM */
-
-/* Uncomment next line if using RTIP */
-/* #define EBSNET */
-
-/* Uncomment next line if using lwip */
-/* #define CYASSL_LWIP */
-
-/* Uncomment next line if building CyaSSL for a game console */
-/* #define CYASSL_GAME_BUILD */
-
-/* Uncomment next line if building CyaSSL for LSR */
-/* #define CYASSL_LSR */
-
-/* Uncomment next line if building CyaSSL for Freescale MQX/RTCS/MFS */
-/* #define FREESCALE_MQX */
-
-/* Uncomment next line if using STM32F2 */
-/* #define CYASSL_STM32F2 */
-
-/* Uncomment next line if using Comverge settings */
-/* #define COMVERGE */
-
-/* Uncomment next line if using QL SEP settings */
-/* #define CYASSL_QL */
-
-
-#include
-
-#ifdef IPHONE
- #define SIZEOF_LONG_LONG 8
-#endif
-
-
-#ifdef COMVERGE
- #define THREADX
- #define HAVE_NETX
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_RSA
- #define NO_SESSION_CACHE
- #define HAVE_ECC
-#endif
-
-
-#ifdef THREADX
- #define SIZEOF_LONG_LONG 8
-#endif
-
-#ifdef HAVE_NETX
- #include "nx_api.h"
-#endif
-
-#ifdef MICROCHIP_PIC32
- #define SIZEOF_LONG_LONG 8
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef MICROCHIP_TCPIP_V5
- /* include timer functions */
- #include "TCPIP Stack/TCPIP.h"
-#endif
-
-#ifdef MICROCHIP_TCPIP
- /* include timer, NTP functions */
- #include "system/system_services.h"
- #ifdef MICROCHIP_MPLAB_HARMONY
- #include "tcpip/tcpip.h"
- #else
- #include "tcpip/sntp.h"
- #endif
-#endif
-
-#ifdef MBED
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
-#endif /* MBED */
-
-#ifdef CYASSL_TYTO
- #include "rand.h"
- #define FREERTOS
- #define NO_FILESYSTEM
- #define CYASSL_USER_IO
- #define NO_DEV_RANDOM
- #define HAVE_ECC
- #define HAVE_ECC_ENCRYPT
- #define ECC_SHAMIR
- #define HAVE_HKDF
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
- #define FP_MAX_BITS 512
- #define NO_OLD_TLS
- #define NO_MD4
- #define NO_RABBIT
- #define NO_HC128
- #define NO_RSA
- #define NO_DSA
- #define NO_PWDBASED
- #define NO_PSK
-#endif
-
-#ifdef FREERTOS_WINSIM
- #define FREERTOS
- #define USE_WINDOWS_API
-#endif
-
-
-/* Micrium will use Visual Studio for compilation but not the Win32 API */
-#if defined(_WIN32) && !defined(MICRIUM) && !defined(FREERTOS) \
- && !defined(EBSNET)
- #define USE_WINDOWS_API
-#endif
-
-
-#if defined(CYASSL_LEANPSK) && !defined(XMALLOC_USER)
- #include
- #define XMALLOC(s, h, type) malloc((s))
- #define XFREE(p, h, type) free((p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
-#if defined(XMALLOC_USER) && defined(SSN_BUILDING_LIBYASSL)
- #undef XMALLOC
- #define XMALLOC yaXMALLOC
- #undef XFREE
- #define XFREE yaXFREE
- #undef XREALLOC
- #define XREALLOC yaXREALLOC
-#endif
-
-
-#ifdef FREERTOS
- #ifndef NO_WRITEV
- #define NO_WRITEV
- #endif
- #ifndef NO_SHA512
- #define NO_SHA512
- #endif
- #ifndef NO_DH
- #define NO_DH
- #endif
- #ifndef NO_DSA
- #define NO_DSA
- #endif
- #ifndef NO_HC128
- #define NO_HC128
- #endif
-
- #ifndef SINGLE_THREADED
- #include "FreeRTOS.h"
- #include "semphr.h"
- #endif
-#endif
-
-#ifdef EBSNET
- #include "rtip.h"
-
- /* #define DEBUG_CYASSL */
- #define NO_CYASSL_DIR /* tbd */
-
- #if (POLLOS)
- #define SINGLE_THREADED
- #endif
-
- #if (RTPLATFORM)
- #if (!RTP_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #else
- #if (!KS_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #endif
-
- #if (WINMSP3)
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #else
- #sslpro: settings.h - please implement SIZEOF_LONG and SIZEOF_LONG_LONG
- #endif
-
- #define XMALLOC(s, h, type) ((void *)rtp_malloc((s), SSL_PRO_MALLOC))
- #define XFREE(p, h, type) (rtp_free(p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-
-#endif /* EBSNET */
-
-#ifdef CYASSL_GAME_BUILD
- #define SIZEOF_LONG_LONG 8
- #if defined(__PPU) || defined(__XENON)
- #define BIG_ENDIAN_ORDER
- #endif
-#endif
-
-#ifdef CYASSL_LSR
- #define HAVE_WEBSERVER
- #define SIZEOF_LONG_LONG 8
- #define CYASSL_LOW_MEMORY
- #define NO_WRITEV
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #ifndef NO_FILESYSTEM
- #define LSR_FS
- #include "inc/hw_types.h"
- #include "fs.h"
- #endif
- #define CYASSL_LWIP
- #include /* for tcp errno */
- #define CYASSL_SAFERTOS
- #if defined(__IAR_SYSTEMS_ICC__)
- /* enum uses enum */
- #pragma diag_suppress=Pa089
- #endif
-#endif
-
-#ifdef CYASSL_SAFERTOS
- #ifndef SINGLE_THREADED
- #include "SafeRTOS/semphr.h"
- #endif
-
- #include "SafeRTOS/heap.h"
- #define XMALLOC(s, h, type) pvPortMalloc((s))
- #define XFREE(p, h, type) vPortFree((p))
- #define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
-#endif
-
-#ifdef CYASSL_LOW_MEMORY
- #undef RSA_LOW_MEM
- #define RSA_LOW_MEM
- #undef CYASSL_SMALL_STACK
- #define CYASSL_SMALL_STACK
- #undef TFM_TIMING_RESISTANT
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef FREESCALE_MQX
- #define SIZEOF_LONG_LONG 8
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_RABBIT
- #define NO_CYASSL_DIR
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
- #define FREESCALE_K70_RNGA
- /* #define FREESCALE_K53_RNGB */
- #include "mqx.h"
- #ifndef NO_FILESYSTEM
- #include "mfs.h"
- #include "fio.h"
- #endif
- #ifndef SINGLE_THREADED
- #include "mutex.h"
- #endif
-
- #define XMALLOC(s, h, t) (void *)_mem_alloc_system((s))
- #define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));}
- /* Note: MQX has no realloc, using fastmath above */
-#endif
-
-#ifdef CYASSL_STM32F2
- #define SIZEOF_LONG_LONG 8
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #define STM32F2_RNG
- #define STM32F2_CRYPTO
- #define KEIL_INTRINSICS
-#endif
-
-#ifdef MICRIUM
-
- #include "stdlib.h"
- #include "net_cfg.h"
- #include "ssl_cfg.h"
- #include "net_secure_os.h"
-
- #define CYASSL_TYPES
-
- typedef CPU_INT08U byte;
- typedef CPU_INT16U word16;
- typedef CPU_INT32U word32;
-
- #if (NET_SECURE_MGR_CFG_WORD_SIZE == CPU_WORD_SIZE_32)
- #define SIZEOF_LONG 4
- #undef SIZEOF_LONG_LONG
- #else
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #endif
-
- #define STRING_USER
-
- #define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr)))
- #define XSTRNCPY(pstr_dest, pstr_src, len_max) \
- ((CPU_CHAR *)Str_Copy_N((CPU_CHAR *)(pstr_dest), \
- (CPU_CHAR *)(pstr_src), (CPU_SIZE_T)(len_max)))
- #define XSTRNCMP(pstr_1, pstr_2, len_max) \
- ((CPU_INT16S)Str_Cmp_N((CPU_CHAR *)(pstr_1), \
- (CPU_CHAR *)(pstr_2), (CPU_SIZE_T)(len_max)))
- #define XSTRSTR(pstr, pstr_srch) \
- ((CPU_CHAR *)Str_Str((CPU_CHAR *)(pstr), \
- (CPU_CHAR *)(pstr_srch)))
- #define XMEMSET(pmem, data_val, size) \
- ((void)Mem_Set((void *)(pmem), (CPU_INT08U) (data_val), \
- (CPU_SIZE_T)(size)))
- #define XMEMCPY(pdest, psrc, size) ((void)Mem_Copy((void *)(pdest), \
- (void *)(psrc), (CPU_SIZE_T)(size)))
- #define XMEMCMP(pmem_1, pmem_2, size) \
- (((CPU_BOOLEAN)Mem_Cmp((void *)(pmem_1), (void *)(pmem_2), \
- (CPU_SIZE_T)(size))) ? DEF_NO : DEF_YES)
- #define XMEMMOVE XMEMCPY
-
-#if (NET_SECURE_MGR_CFG_EN == DEF_ENABLED)
- #define MICRIUM_MALLOC
- #define XMALLOC(s, h, type) ((void *)NetSecure_BlkGet((CPU_INT08U)(type), \
- (CPU_SIZE_T)(s), (void *)0))
- #define XFREE(p, h, type) (NetSecure_BlkFree((CPU_INT08U)(type), \
- (p), (void *)0))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
- #if (NET_SECURE_MGR_CFG_FS_EN == DEF_ENABLED)
- #undef NO_FILESYSTEM
- #else
- #define NO_FILESYSTEM
- #endif
-
- #if (SSL_CFG_TRACE_LEVEL == CYASSL_TRACE_LEVEL_DBG)
- #define DEBUG_CYASSL
- #else
- #undef DEBUG_CYASSL
- #endif
-
- #if (SSL_CFG_OPENSSL_EN == DEF_ENABLED)
- #define OPENSSL_EXTRA
- #else
- #undef OPENSSL_EXTRA
- #endif
-
- #if (SSL_CFG_MULTI_THREAD_EN == DEF_ENABLED)
- #undef SINGLE_THREADED
- #else
- #define SINGLE_THREADED
- #endif
-
- #if (SSL_CFG_DH_EN == DEF_ENABLED)
- #undef NO_DH
- #else
- #define NO_DH
- #endif
-
- #if (SSL_CFG_DSA_EN == DEF_ENABLED)
- #undef NO_DSA
- #else
- #define NO_DSA
- #endif
-
- #if (SSL_CFG_PSK_EN == DEF_ENABLED)
- #undef NO_PSK
- #else
- #define NO_PSK
- #endif
-
- #if (SSL_CFG_3DES_EN == DEF_ENABLED)
- #undef NO_DES
- #else
- #define NO_DES
- #endif
-
- #if (SSL_CFG_AES_EN == DEF_ENABLED)
- #undef NO_AES
- #else
- #define NO_AES
- #endif
-
- #if (SSL_CFG_RC4_EN == DEF_ENABLED)
- #undef NO_RC4
- #else
- #define NO_RC4
- #endif
-
- #if (SSL_CFG_RABBIT_EN == DEF_ENABLED)
- #undef NO_RABBIT
- #else
- #define NO_RABBIT
- #endif
-
- #if (SSL_CFG_HC128_EN == DEF_ENABLED)
- #undef NO_HC128
- #else
- #define NO_HC128
- #endif
-
- #if (CPU_CFG_ENDIAN_TYPE == CPU_ENDIAN_TYPE_BIG)
- #define BIG_ENDIAN_ORDER
- #else
- #undef BIG_ENDIAN_ORDER
- #define LITTLE_ENDIAN_ORDER
- #endif
-
- #if (SSL_CFG_MD4_EN == DEF_ENABLED)
- #undef NO_MD4
- #else
- #define NO_MD4
- #endif
-
- #if (SSL_CFG_WRITEV_EN == DEF_ENABLED)
- #undef NO_WRITEV
- #else
- #define NO_WRITEV
- #endif
-
- #if (SSL_CFG_USER_RNG_SEED_EN == DEF_ENABLED)
- #define NO_DEV_RANDOM
- #else
- #undef NO_DEV_RANDOM
- #endif
-
- #if (SSL_CFG_USER_IO_EN == DEF_ENABLED)
- #define CYASSL_USER_IO
- #else
- #undef CYASSL_USER_IO
- #endif
-
- #if (SSL_CFG_DYNAMIC_BUFFERS_EN == DEF_ENABLED)
- #undef LARGE_STATIC_BUFFERS
- #undef STATIC_CHUNKS_ONLY
- #else
- #define LARGE_STATIC_BUFFERS
- #define STATIC_CHUNKS_ONLY
- #endif
-
- #if (SSL_CFG_DER_LOAD_EN == DEF_ENABLED)
- #define CYASSL_DER_LOAD
- #else
- #undef CYASSL_DER_LOAD
- #endif
-
- #if (SSL_CFG_DTLS_EN == DEF_ENABLED)
- #define CYASSL_DTLS
- #else
- #undef CYASSL_DTLS
- #endif
-
- #if (SSL_CFG_CALLBACKS_EN == DEF_ENABLED)
- #define CYASSL_CALLBACKS
- #else
- #undef CYASSL_CALLBACKS
- #endif
-
- #if (SSL_CFG_FAST_MATH_EN == DEF_ENABLED)
- #define USE_FAST_MATH
- #else
- #undef USE_FAST_MATH
- #endif
-
- #if (SSL_CFG_TFM_TIMING_RESISTANT_EN == DEF_ENABLED)
- #define TFM_TIMING_RESISTANT
- #else
- #undef TFM_TIMING_RESISTANT
- #endif
-
-#endif /* MICRIUM */
-
-
-#ifdef CYASSL_QL
- #ifndef CYASSL_SEP
- #define CYASSL_SEP
- #endif
- #ifndef OPENSSL_EXTRA
- #define OPENSSL_EXTRA
- #endif
- #ifndef SESSION_CERTS
- #define SESSION_CERTS
- #endif
- #ifndef HAVE_AESCCM
- #define HAVE_AESCCM
- #endif
- #ifndef ATOMIC_USER
- #define ATOMIC_USER
- #endif
- #ifndef CYASSL_DER_LOAD
- #define CYASSL_DER_LOAD
- #endif
- #ifndef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
- #endif
- #ifndef HAVE_ECC
- #define HAVE_ECC
- #endif
- #ifndef SESSION_INDEX
- #define SESSION_INDEX
- #endif
-#endif /* CYASSL_QL */
-
-
-#if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \
- !defined(CYASSL_LEANPSK) && !defined(NO_CYASSL_MEMORY)
- #define USE_CYASSL_MEMORY
-#endif
-
-
-#if defined(OPENSSL_EXTRA) && !defined(NO_CERTS)
- #undef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
-#endif
-
-
-/* stream ciphers except arc4 need 32bit alignment, intel ok without */
-#ifndef XSTREAM_ALIGNMENT
- #if defined(__x86_64__) || defined(__ia64__) || defined(__i386__)
- #define NO_XSTREAM_ALIGNMENT
- #else
- #define XSTREAM_ALIGNMENT
- #endif
-#endif
-
-
-/* if using hardware crypto and have alignment requirements, specify the
- requirement here. The record header of SSL/TLS will prvent easy alignment.
- This hint tries to help as much as possible. */
-#ifndef CYASSL_GENERAL_ALIGNMENT
- #ifdef CYASSL_AESNI
- #define CYASSL_GENERAL_ALIGNMENT 16
- #elif defined(XSTREAM_ALIGNMENT)
- #define CYASSL_GENERAL_ALIGNMENT 4
- #else
- #define CYASSL_GENERAL_ALIGNMENT 0
- #endif
-#endif
-
-#ifdef HAVE_CRL
- /* not widely supported yet */
- #undef NO_SKID
- #define NO_SKID
-#endif
-
-/* Place any other flags or defines here */
-
-
-#ifdef __cplusplus
- } /* extern "C" */
-#endif
-
-
-#endif /* CTAO_CRYPT_SETTINGS_H */
-
diff --git a/IDE/MDK5-ARM/Projects/EchoClient/STM32_SWO.ini b/IDE/MDK5-ARM/Projects/EchoClient/STM32_SWO.ini
deleted file mode 100644
index 239abce37..000000000
--- a/IDE/MDK5-ARM/Projects/EchoClient/STM32_SWO.ini
+++ /dev/null
@@ -1,36 +0,0 @@
-/******************************************************************************/
-/* STM32_SWO.ini: STM32 Debugger Initialization File */
-/******************************************************************************/
-// <<< Use Configuration Wizard in Context Menu >>> //
-/******************************************************************************/
-/* This file is part of the uVision/ARM development tools. */
-/* Copyright (c) 2004-2013 Keil Software. All rights reserved. */
-/* This software may only be used under the terms of a valid, current, */
-/* end user licence from KEIL for a compatible version of KEIL software */
-/* development tools. Nothing else gives you the right to use this software. */
-/******************************************************************************/
-
-
-FUNC void DebugSetup (void) {
-// Debug MCU Configuration
-// DBG_SLEEP Debug Sleep Mode
-// DBG_STOP Debug Stop Mode
-// DBG_STANDBY Debug Standby Mode
-// TRACE_IOEN Trace I/O Enable
-// TRACE_MODE Trace Mode
-// <0=> Asynchronous
-// <1=> Synchronous: TRACEDATA Size 1
-// <2=> Synchronous: TRACEDATA Size 2
-// <3=> Synchronous: TRACEDATA Size 4
-// DBG_IWDG_STOP Independant Watchdog Stopped when Core is halted
-// DBG_WWDG_STOP Window Watchdog Stopped when Core is halted
-// DBG_TIM1_STOP Timer 1 Stopped when Core is halted
-// DBG_TIM2_STOP Timer 2 Stopped when Core is halted
-// DBG_TIM3_STOP Timer 3 Stopped when Core is halted
-// DBG_TIM4_STOP Timer 4 Stopped when Core is halted
-// DBG_CAN_STOP CAN Stopped when Core is halted
-//
- _WDWORD(0xE0042004, 0x00000027); // DBGMCU_CR
-}
-
-DebugSetup(); // Debugger Setup
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/CMSIS/RTX_Conf_CM.c b/IDE/MDK5-ARM/Projects/EchoServer/RTE/CMSIS/RTX_Conf_CM.c
deleted file mode 100644
index 435c44ad9..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/CMSIS/RTX_Conf_CM.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - RTX
- *----------------------------------------------------------------------------
- * Name: RTX_Conf_CM.C
- * Purpose: Configuration of CMSIS RTX Kernel for Cortex-M
- * Rev.: V4.73
- *----------------------------------------------------------------------------
- *
- * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
- * 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 ARM 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 COPYRIGHT HOLDERS AND CONTRIBUTORS 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.
- *---------------------------------------------------------------------------*/
-
-#include "cmsis_os.h"
-
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part BEGIN
- *---------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// Thread Configuration
-// =======================
-//
-// Number of concurrent running threads <0-250>
-// Defines max. number of threads that will run at the same time.
-// Default: 6
-#ifndef OS_TASKCNT
- #define OS_TASKCNT 6
-#endif
-
-// Default Thread stack size [bytes] <64-4096:8><#/4>
-// Defines default stack size for threads with osThreadDef stacksz = 0
-// Default: 200
-#ifndef OS_STKSIZE
- #define OS_STKSIZE 300
-#endif
-
-// Main Thread stack size [bytes] <64-32768:8><#/4>
-// Defines stack size for main thread.
-// Default: 200
-#ifndef OS_MAINSTKSIZE
- #define OS_MAINSTKSIZE 2000
-#endif
-
-// Number of threads with user-provided stack size <0-250>
-// Defines the number of threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVCNT
- #define OS_PRIVCNT 0
-#endif
-
-// Total stack size [bytes] for threads with user-provided stack size <0-1048576:8><#/4>
-// Defines the combined stack size for threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVSTKSIZE
- #define OS_PRIVSTKSIZE 2500
-#endif
-
-// Check for stack overflow
-// Includes the stack checking code for stack overflow.
-// Note that additional code reduces the Kernel performance.
-#ifndef OS_STKCHECK
- #define OS_STKCHECK 1
-#endif
-
-// Processor mode for thread execution
-// <0=> Unprivileged mode
-// <1=> Privileged mode
-// Default: Privileged mode
-#ifndef OS_RUNPRIV
- #define OS_RUNPRIV 1
-#endif
-
-//
-
-// RTX Kernel Timer Tick Configuration
-// ======================================
-// Use Cortex-M SysTick timer as RTX Kernel Timer
-// Use the Cortex-M SysTick timer as a time-base for RTX.
-#ifndef OS_SYSTICK
- #define OS_SYSTICK 1
-#endif
-//
-// Timer clock value [Hz] <1-1000000000>
-// Defines the timer clock value.
-// Default: 12000000 (12MHz)
-#ifndef OS_CLOCK
- #define OS_CLOCK 12000000
-#endif
-
-// Timer tick value [us] <1-1000000>
-// Defines the timer tick value.
-// Default: 1000 (1ms)
-#ifndef OS_TICK
- #define OS_TICK 1000
-#endif
-
-//
-
-// System Configuration
-// =======================
-//
-// Round-Robin Thread switching
-// ===============================
-//
-// Enables Round-Robin Thread switching.
-#ifndef OS_ROBIN
- #define OS_ROBIN 1
-#endif
-
-// Round-Robin Timeout [ticks] <1-1000>
-// Defines how long a thread will execute before a thread switch.
-// Default: 5
-#ifndef OS_ROBINTOUT
- #define OS_ROBINTOUT 5
-#endif
-
-//
-
-// User Timers
-// ==============
-// Enables user Timers
-#ifndef OS_TIMERS
- #define OS_TIMERS 1
-#endif
-
-// Timer Thread Priority
-// <1=> Low
-// <2=> Below Normal <3=> Normal <4=> Above Normal
-// <5=> High
-// <6=> Realtime (highest)
-// Defines priority for Timer Thread
-// Default: High
-#ifndef OS_TIMERPRIO
- #define OS_TIMERPRIO 5
-#endif
-
-// Timer Thread stack size [bytes] <64-4096:8><#/4>
-// Defines stack size for Timer thread.
-// Default: 200
-#ifndef OS_TIMERSTKSZ
- #define OS_TIMERSTKSZ 50
-#endif
-
-// Timer Callback Queue size <1-32>
-// Number of concurrent active timer callback functions.
-// Default: 4
-#ifndef OS_TIMERCBQS
- #define OS_TIMERCBQS 4
-#endif
-
-//
-
-// ISR FIFO Queue size<4=> 4 entries <8=> 8 entries
-// <12=> 12 entries <16=> 16 entries
-// <24=> 24 entries <32=> 32 entries
-// <48=> 48 entries <64=> 64 entries
-// <96=> 96 entries
-// ISR functions store requests to this buffer,
-// when they are called from the interrupt handler.
-// Default: 16 entries
-#ifndef OS_FIFOSZ
- #define OS_FIFOSZ 16
-#endif
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-// Standard library system mutexes
-// ===============================
-// Define max. number system mutexes that are used to protect
-// the arm standard runtime library. For microlib they are not used.
-#ifndef OS_MUTEXCNT
- #define OS_MUTEXCNT 8
-#endif
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part END
- *---------------------------------------------------------------------------*/
-
-#define OS_TRV ((uint32_t)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
-
-
-/*----------------------------------------------------------------------------
- * Global Functions
- *---------------------------------------------------------------------------*/
-
-/*--------------------------- os_idle_demon ---------------------------------*/
-
-void os_idle_demon (void) {
- /* The idle demon is a system thread, running when no other thread is */
- /* ready to run. */
-
- for (;;) {
- /* HERE: include optional user code to be executed when no thread runs.*/
- }
-}
-
-#if (OS_SYSTICK == 0) // Functions for alternative timer as RTX kernel timer
-
-/*--------------------------- os_tick_init ----------------------------------*/
-
-// Initialize alternative hardware timer as RTX kernel timer
-// Return: IRQ number of the alternative hardware timer
-int os_tick_init (void) {
- return (-1); /* Return IRQ number of timer (0..239) */
-}
-
-/*--------------------------- os_tick_val -----------------------------------*/
-
-// Get alternative hardware timer current value (0 .. OS_TRV)
-uint32_t os_tick_val (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_ovf -----------------------------------*/
-
-// Get alternative hardware timer overflow flag
-// Return: 1 - overflow, 0 - no overflow
-uint32_t os_tick_ovf (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_irqack --------------------------------*/
-
-// Acknowledge alternative hardware timer interrupt
-void os_tick_irqack (void) {
- /* ... */
-}
-
-#endif // (OS_SYSTICK == 0)
-
-/*--------------------------- os_error --------------------------------------*/
-
-/* OS Error Codes */
-#define OS_ERROR_STACK_OVF 1
-#define OS_ERROR_FIFO_OVF 2
-#define OS_ERROR_MBX_OVF 3
-
-extern osThreadId svcThreadGetId (void);
-
-void os_error (uint32_t error_code) {
- /* This function is called when a runtime error is detected. */
- /* Parameter 'error_code' holds the runtime error code. */
-
- /* HERE: include optional code to be executed on runtime error. */
- switch (error_code) {
- case OS_ERROR_STACK_OVF:
- /* Stack overflow detected for the currently running task. */
- /* Thread can be identified by calling svcThreadGetId(). */
- break;
- case OS_ERROR_FIFO_OVF:
- /* ISR FIFO Queue buffer overflow detected. */
- break;
- case OS_ERROR_MBX_OVF:
- /* Mailbox overflow detected. */
- break;
- }
- for (;;);
-}
-
-
-/*----------------------------------------------------------------------------
- * RTX Configuration Functions
- *---------------------------------------------------------------------------*/
-
-#include "RTX_CM_lib.h"
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/RTE_Device.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/RTE_Device.h
deleted file mode 100644
index 4a09246f3..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/RTE_Device.h
+++ /dev/null
@@ -1,3127 +0,0 @@
-/* -----------------------------------------------------------------------------
- * Copyright (C) 2013 ARM Limited. All rights reserved.
- *
- * $Date: 27. June 2013
- * $Revision: V1.01
- *
- * Project: RTE Device Configuration for ST STM32F2xx
- * -------------------------------------------------------------------------- */
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-#ifndef __RTE_DEVICE_H
-#define __RTE_DEVICE_H
-
-
-#define GPIO_PORT(num) \
- ((num == 0) ? GPIOA : \
- (num == 1) ? GPIOB : \
- (num == 2) ? GPIOC : \
- (num == 3) ? GPIOD : \
- (num == 4) ? GPIOE : \
- (num == 5) ? GPIOF : \
- (num == 6) ? GPIOG : \
- (num == 7) ? GPIOH : \
- (num == 8) ? GPIOI : \
- NULL)
-
-
-// Clock Configuration
-// High-speed Internal Clock <1-999999999>
-#define RTE_HSI 16000000
-// High-speed External Clock <1-999999999>
-#define RTE_HSE 25000000
-// System Clock <1-999999999>
-#define RTE_SYSCLK 120000000
-// AHB Clock <1-999999999>
-#define RTE_HCLK 120000000
-// APB1 Clock <1-999999999>
-#define RTE_PCLK1 30000000
-// APB2 Clock <1-999999999>
-#define RTE_PCLK2 60000000
-// 48MHz Clock
-#define RTE_PLL48CK 48000000
-//
-
-
-// USART1 (Universal synchronous asynchronous receiver transmitter) [Driver_UART1]
-// Configuration settings for Driver_UART1 in component ::Drivers:UART
-#define RTE_USART1 0
-
-// USART1_TX Pin <0=>PA9 <1=>PB6
-#define RTE_USART1_TX_ID 0
-#if (RTE_USART1_TX_ID == 0)
-#define RTE_USART1_TX_PORT GPIOA
-#define RTE_USART1_TX_BIT 9
-#elif (RTE_USART1_TX_ID == 1)
-#define RTE_USART1_TX_PORT GPIOB
-#define RTE_USART1_TX_BIT 6
-#else
-#error "Invalid USART1_TX Pin Configuration!"
-#endif
-
-// USART1_RX Pin <0=>PA10 <1=>PB7
-#define RTE_USART1_RX_ID 0
-#if (RTE_USART1_RX_ID == 0)
-#define RTE_USART1_RX_PORT GPIOA
-#define RTE_USART1_RX_BIT 10
-#elif (RTE_USART1_RX_ID == 1)
-#define RTE_USART1_RX_PORT GPIOB
-#define RTE_USART1_RX_BIT 7
-#else
-#error "Invalid USART1_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART1_CK Pin <0=>PA8
-//
-#define RTE_USART1_CK 0
-#define RTE_USART1_CK_ID 0
-#if (RTE_USART1_CK_ID == 0)
-#define RTE_USART1_CK_PORT GPIOA
-#define RTE_USART1_CK_BIT 8
-#else
-#error "Invalid USART1_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART1_CTS Pin <0=>PA11
-// USART1_RTS Pin <0=>PA12
-// Manual CTS/RTS
-//
-#define RTE_USART1_HW_FLOW 0
-#define RTE_USART1_CTS_ID 0
-#define RTE_USART1_RTS_ID 0
-#define RTE_USART1_MANUAL_FLOW 0
-#if (RTE_USART1_CTS_ID == 0)
-#define RTE_USART1_CTS_PORT GPIOA
-#define RTE_USART1_CTS_BIT 11
-#else
-#error "Invalid USART1_CTS Pin Configuration!"
-#endif
-#if (RTE_USART1_RTS_ID == 0)
-#define RTE_USART1_RTS_PORT GPIOA
-#define RTE_USART1_RTS_BIT 12
-#else
-#error "Invalid USART1_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <2=>2 <5=>5
-// Selects DMA Stream (only Stream 2 or 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_RX_DMA 1
-#define RTE_USART1_RX_DMA_NUMBER 2
-#define RTE_USART1_RX_DMA_STREAM 2
-#define RTE_USART1_RX_DMA_CHANNEL 4
-#define RTE_USART1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_TX_DMA 1
-#define RTE_USART1_TX_DMA_NUMBER 2
-#define RTE_USART1_TX_DMA_STREAM 7
-#define RTE_USART1_TX_DMA_CHANNEL 4
-#define RTE_USART1_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART2 (Universal synchronous asynchronous receiver transmitter) [Driver_UART2]
-// Configuration settings for Driver_UART2 in component ::Drivers:UART
-#define RTE_USART2 0
-
-// USART2_TX Pin <0=>PA2 <1=>PD5
-#define RTE_USART2_TX_ID 0
-#if (RTE_USART2_TX_ID == 0)
-#define RTE_USART2_TX_PORT GPIOA
-#define RTE_USART2_TX_BIT 2
-#elif (RTE_USART2_TX_ID == 1)
-#define RTE_USART2_TX_PORT GPIOD
-#define RTE_USART2_TX_BIT 5
-#else
-#error "Invalid USART2_TX Pin Configuration!"
-#endif
-
-// USART2_RX Pin <0=>PA3 <1=>PD6
-#define RTE_USART2_RX_ID 0
-#if (RTE_USART2_RX_ID == 0)
-#define RTE_USART2_RX_PORT GPIOA
-#define RTE_USART2_RX_BIT 3
-#elif (RTE_USART2_RX_ID == 1)
-#define RTE_USART2_RX_PORT GPIOD
-#define RTE_USART2_RX_BIT 6
-#else
-#error "Invalid USART2_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART2_CK Pin <0=>PA4 <1=>PD7
-//
-#define RTE_USART2_CK 0
-#define RTE_USART2_CK_ID 0
-#if (RTE_USART2_CK_ID == 0)
-#define RTE_USART2_CK_PORT GPIOA
-#define RTE_USART2_CK_BIT 4
-#elif (RTE_USART2_CK_ID == 1)
-#define RTE_USART2_CK_PORT GPIOD
-#define RTE_USART2_CK_BIT 7
-#else
-#error "Invalid USART2_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART2_CTS Pin <0=>PA0 <1=>PD3
-// USART2_RTS Pin <0=>PA1 <1=>PD4
-// Manual CTS/RTS
-//
-#define RTE_USART2_HW_FLOW 0
-#define RTE_USART2_CTS_ID 0
-#define RTE_USART2_RTS_ID 0
-#define RTE_USART2_MANUAL_FLOW 0
-#if (RTE_USART2_CTS_ID == 0)
-#define RTE_USART2_CTS_PORT GPIOA
-#define RTE_USART2_CTS_BIT 0
-#elif (RTE_USART2_CTS_ID == 1)
-#define RTE_USART2_CTS_PORT GPIOD
-#define RTE_USART2_CTS_BIT 3
-#else
-#error "Invalid USART2_CTS Pin Configuration!"
-#endif
-#if (RTE_USART2_RTS_ID == 0)
-#define RTE_USART2_RTS_PORT GPIOA
-#define RTE_USART2_RTS_BIT 1
-#elif (RTE_USART2_RTS_ID == 1)
-#define RTE_USART2_RTS_PORT GPIOD
-#define RTE_USART2_RTS_BIT 4
-#else
-#error "Invalid USART2_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5
-// Selects DMA Stream (only Stream 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_RX_DMA 1
-#define RTE_USART2_RX_DMA_NUMBER 1
-#define RTE_USART2_RX_DMA_STREAM 5
-#define RTE_USART2_RX_DMA_CHANNEL 4
-#define RTE_USART2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6
-// Selects DMA Stream (only Stream 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_TX_DMA 1
-#define RTE_USART2_TX_DMA_NUMBER 1
-#define RTE_USART2_TX_DMA_STREAM 6
-#define RTE_USART2_TX_DMA_CHANNEL 4
-#define RTE_USART2_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART3 (Universal synchronous asynchronous receiver transmitter) [Driver_UART3]
-// Configuration settings for Driver_UART3 in component ::Drivers:UART
-#define RTE_USART3 0
-
-// USART3_TX Pin <0=>PB10 <1=>PC10 <2=>PD8
-#define RTE_USART3_TX_ID 0
-#if (RTE_USART3_TX_ID == 0)
-#define RTE_USART3_TX_PORT GPIOB
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 1)
-#define RTE_USART3_TX_PORT GPIOC
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 2)
-#define RTE_USART3_TX_PORT GPIOD
-#define RTE_USART3_TX_BIT 8
-#else
-#error "Invalid USART3_TX Pin Configuration!"
-#endif
-
-// USART3_RX Pin <0=>PB11 <1=>PC11 <2=>PD9
-#define RTE_USART3_RX_ID 0
-#if (RTE_USART3_RX_ID == 0)
-#define RTE_USART3_RX_PORT GPIOB
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 1)
-#define RTE_USART3_RX_PORT GPIOC
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 2)
-#define RTE_USART3_RX_PORT GPIOD
-#define RTE_USART3_RX_BIT 9
-#else
-#error "Invalid USART3_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART3_CK Pin <0=>PB12 <1=>PC12 <2=>PD10
-//
-#define RTE_USART3_CK 0
-#define RTE_USART3_CK_ID 0
-#if (RTE_USART3_CK_ID == 0)
-#define RTE_USART3_CK_PORT GPIOB
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 1)
-#define RTE_USART3_CK_PORT GPIOC
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 2)
-#define RTE_USART3_CK_PORT GPIOD
-#define RTE_USART3_CK_BIT 10
-#else
-#error "Invalid USART3_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART3_CTS Pin <0=>PB13 <1=>PD11
-// USART3_RTS Pin <0=>PB14 <1=>PD12
-// Manual CTS/RTS
-//
-#define RTE_USART3_HW_FLOW 0
-#define RTE_USART3_CTS_ID 0
-#define RTE_USART3_RTS_ID 0
-#define RTE_USART3_MANUAL_FLOW 0
-#if (RTE_USART3_CTS_ID == 0)
-#define RTE_USART3_CTS_PORT GPIOB
-#define RTE_USART3_CTS_BIT 13
-#elif (RTE_USART3_CTS_ID == 1)
-#define RTE_USART3_CTS_PORT GPIOD
-#define RTE_USART3_CTS_BIT 11
-#else
-#error "Invalid USART3_CTS Pin Configuration!"
-#endif
-#if (RTE_USART3_RTS_ID == 0)
-#define RTE_USART3_RTS_PORT GPIOB
-#define RTE_USART3_RTS_BIT 14
-#elif (RTE_USART3_RTS_ID == 1)
-#define RTE_USART3_RTS_PORT GPIOD
-#define RTE_USART3_RTS_BIT 12
-#else
-#error "Invalid USART3_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <1=>1
-// Selects DMA Stream (only Stream 1 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_RX_DMA 1
-#define RTE_USART3_RX_DMA_NUMBER 1
-#define RTE_USART3_RX_DMA_STREAM 1
-#define RTE_USART3_RX_DMA_CHANNEL 4
-#define RTE_USART3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_TX_DMA 1
-#define RTE_USART3_TX_DMA_NUMBER 1
-#define RTE_USART3_TX_DMA_STREAM 3
-#define RTE_USART3_TX_DMA_CHANNEL 4
-#define RTE_USART3_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART4 (Universal asynchronous receiver transmitter) [Driver_UART4]
-// Configuration settings for Driver_UART4 in component ::Drivers:UART
-#define RTE_UART4 0
-
-// UART4_TX Pin <0=>PA0 <1=>PC10
-#define RTE_UART4_TX_ID 0
-#if (RTE_UART4_TX_ID == 0)
-#define RTE_UART4_TX_PORT GPIOA
-#define RTE_UART4_TX_BIT 0
-#elif (RTE_UART4_TX_ID == 1)
-#define RTE_UART4_TX_PORT GPIOC
-#define RTE_UART4_TX_BIT 10
-#else
-#error "Invalid UART4_TX Pin Configuration!"
-#endif
-
-// UART4_RX Pin <0=>PA1 <1=>PC11
-#define RTE_UART4_RX_ID 0
-#if (RTE_UART4_RX_ID == 0)
-#define RTE_UART4_RX_PORT GPIOA
-#define RTE_UART4_RX_BIT 1
-#elif (RTE_UART4_RX_ID == 1)
-#define RTE_UART4_RX_PORT GPIOC
-#define RTE_UART4_RX_BIT 11
-#else
-#error "Invalid UART4_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_RX_DMA 1
-#define RTE_UART4_RX_DMA_NUMBER 1
-#define RTE_UART4_RX_DMA_STREAM 2
-#define RTE_UART4_RX_DMA_CHANNEL 4
-#define RTE_UART4_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_TX_DMA 1
-#define RTE_UART4_TX_DMA_NUMBER 1
-#define RTE_UART4_TX_DMA_STREAM 4
-#define RTE_UART4_TX_DMA_CHANNEL 4
-#define RTE_UART4_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART5 (Universal asynchronous receiver transmitter) [Driver_UART5]
-// Configuration settings for Driver_UART5 in component ::Drivers:UART
-#define RTE_UART5 0
-
-// UART5_TX Pin <0=>PC12
-#define RTE_UART5_TX_ID 0
-#if (RTE_UART5_TX_ID == 0)
-#define RTE_UART5_TX_PORT GPIOC
-#define RTE_UART5_TX_BIT 12
-#else
-#error "Invalid UART5_TX Pin Configuration!"
-#endif
-
-// UART5_RX Pin <0=>PD2
-#define RTE_UART5_RX_ID 0
-#if (RTE_UART5_RX_ID == 0)
-#define RTE_UART5_RX_PORT GPIOD
-#define RTE_UART5_RX_BIT 2
-#else
-#error "Invalid UART5_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0
-// Selects DMA Stream (only Stream 0 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_RX_DMA 1
-#define RTE_UART5_RX_DMA_NUMBER 1
-#define RTE_UART5_RX_DMA_STREAM 0
-#define RTE_UART5_RX_DMA_CHANNEL 4
-#define RTE_UART5_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_TX_DMA 1
-#define RTE_UART5_TX_DMA_NUMBER 1
-#define RTE_UART5_TX_DMA_STREAM 7
-#define RTE_UART5_TX_DMA_CHANNEL 4
-#define RTE_UART5_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART6 (Universal synchronous asynchronous receiver transmitter) [Driver_UART6]
-// Configuration settings for Driver_UART6 in component ::Drivers:UART
-#define RTE_USART6 0
-
-// USART6_TX Pin <0=>PC6 <1=>PG14
-#define RTE_USART6_TX_ID 0
-#if (RTE_USART6_TX_ID == 0)
-#define RTE_USART6_TX_PORT GPIOC
-#define RTE_USART6_TX_BIT 6
-#elif (RTE_USART6_TX_ID == 1)
-#define RTE_USART6_TX_PORT GPIOG
-#define RTE_USART6_TX_BIT 14
-#else
-#error "Invalid USART6_TX Pin Configuration!"
-#endif
-
-// USART6_RX Pin <0=>PC7 <1=>PG9
-#define RTE_USART6_RX_ID 0
-#if (RTE_USART6_RX_ID == 0)
-#define RTE_USART6_RX_PORT GPIOC
-#define RTE_USART6_RX_BIT 7
-#elif (RTE_USART6_RX_ID == 1)
-#define RTE_USART6_RX_PORT GPIOG
-#define RTE_USART6_RX_BIT 9
-#else
-#error "Invalid USART6_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART6_CK Pin <0=>PC8 <1=>PG7
-//
-#define RTE_USART6_CK 0
-#define RTE_USART6_CK_ID 0
-#if (RTE_USART6_CK_ID == 0)
-#define RTE_USART6_CK_PORT GPIOC
-#define RTE_USART6_CK_BIT 8
-#elif (RTE_USART6_CK_ID == 1)
-#define RTE_USART6_CK_PORT GPIOG
-#define RTE_USART6_CK_BIT 7
-#else
-#error "Invalid USART6_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART6_CTS Pin <0=>PG13 <1=>PG15
-// USART6_RTS Pin <0=>PG8 <1=>PG12
-// Manual CTS/RTS
-//
-#define RTE_USART6_HW_FLOW 0
-#define RTE_USART6_CTS_ID 0
-#define RTE_USART6_RTS_ID 0
-#define RTE_USART6_MANUAL_FLOW 0
-#if (RTE_USART6_CTS_ID == 0)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 13
-#elif (RTE_USART6_CTS_ID == 1)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 15
-#else
-#error "Invalid USART6_CTS Pin Configuration!"
-#endif
-#if (RTE_USART6_RTS_ID == 0)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 8
-#elif (RTE_USART6_RTS_ID == 1)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 12
-#else
-#error "Invalid USART6_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <1=>1 <2=>2
-// Selects DMA Stream (only Stream 1 or 2 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_RX_DMA 1
-#define RTE_USART6_RX_DMA_NUMBER 2
-#define RTE_USART6_RX_DMA_STREAM 1
-#define RTE_USART6_RX_DMA_CHANNEL 5
-#define RTE_USART6_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_TX_DMA 1
-#define RTE_USART6_TX_DMA_NUMBER 2
-#define RTE_USART6_TX_DMA_STREAM 6
-#define RTE_USART6_TX_DMA_CHANNEL 5
-#define RTE_USART6_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C1 (Inter-integrated Circuit Interface 1) [Driver_I2C1]
-// Configuration settings for Driver_I2C1 in component ::Drivers:I2C
-#define RTE_I2C1 0
-
-// I2C1_SCL Pin <0=>PB6 <1=>PB8
-#define RTE_I2C1_SCL_PORT_ID 0
-#if (RTE_I2C1_SCL_PORT_ID == 0)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 6
-#elif (RTE_I2C1_SCL_PORT_ID == 1)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 8
-#else
-#error "Invalid I2C1_SCL Pin Configuration!"
-#endif
-
-// I2C1_SDA Pin <0=>PB7 <1=>PB9
-#define RTE_I2C1_SDA_PORT_ID 0
-#if (RTE_I2C1_SDA_PORT_ID == 0)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 7
-#elif (RTE_I2C1_SDA_PORT_ID == 1)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 9
-#else
-#error "Invalid I2C1_SDA Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <5=>5
-// Selects DMA Stream (only Stream 0 or 5 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_RX_DMA 1
-#define RTE_I2C1_RX_DMA_NUMBER 1
-#define RTE_I2C1_RX_DMA_STREAM 0
-#define RTE_I2C1_RX_DMA_CHANNEL 1
-#define RTE_I2C1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_TX_DMA 1
-#define RTE_I2C1_TX_DMA_NUMBER 1
-#define RTE_I2C1_TX_DMA_STREAM 6
-#define RTE_I2C1_TX_DMA_CHANNEL 1
-#define RTE_I2C1_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C2 (Inter-integrated Circuit Interface 2) [Driver_I2C2]
-// Configuration settings for Driver_I2C2 in component ::Drivers:I2C
-#define RTE_I2C2 0
-
-// I2C2_SCL Pin <0=>PF1 <1=>PH4 <2=>PB10
-#define RTE_I2C2_SCL_PORT_ID 0
-#if (RTE_I2C2_SCL_PORT_ID == 0)
-#define RTE_I2C2_SCL_PORT GPIOF
-#define RTE_I2C2_SCL_BIT 1
-#elif (RTE_I2C2_SCL_PORT_ID == 1)
-#define RTE_I2C2_SCL_PORT GPIOH
-#define RTE_I2C2_SCL_BIT 4
-#elif (RTE_I2C2_SCL_PORT_ID == 2)
-#define RTE_I2C2_SCL_PORT GPIOB
-#define RTE_I2C2_SCL_BIT 10
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// I2C2_SDA Pin <0=>PF0 <1=>PH5 <2=>PB11
-#define RTE_I2C2_SDA_PORT_ID 0
-#if (RTE_I2C2_SDA_PORT_ID == 0)
-#define RTE_I2C2_SDA_PORT GPIOF
-#define RTE_I2C2_SDA_BIT 0
-#elif (RTE_I2C2_SDA_PORT_ID == 1)
-#define RTE_I2C2_SDA_PORT GPIOH
-#define RTE_I2C2_SDA_BIT 5
-#elif (RTE_I2C2_SDA_PORT_ID == 2)
-#define RTE_I2C2_SDA_PORT GPIOB
-#define RTE_I2C2_SDA_BIT 11
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2 <3=>3
-// Selects DMA Stream (only Stream 2 or 3 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 7 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_RX_DMA 1
-#define RTE_I2C2_RX_DMA_NUMBER 1
-#define RTE_I2C2_RX_DMA_STREAM 2
-#define RTE_I2C2_RX_DMA_CHANNEL 7
-#define RTE_I2C2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_TX_DMA 1
-#define RTE_I2C2_TX_DMA_NUMBER 1
-#define RTE_I2C2_TX_DMA_STREAM 7
-#define RTE_I2C2_TX_DMA_CHANNEL 7
-#define RTE_I2C2_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C3 (Inter-integrated Circuit Interface 3) [Driver_I2C3]
-// Configuration settings for Driver_I2C3 in component ::Drivers:I2C
-#define RTE_I2C3 0
-
-// I2C3_SCL Pin <0=>PH7 <1=>PA8
-#define RTE_I2C3_SCL_PORT_ID 0
-#if (RTE_I2C3_SCL_PORT_ID == 0)
-#define RTE_I2C3_SCL_PORT GPIOH
-#define RTE_I2C3_SCL_BIT 7
-#elif (RTE_I2C3_SCL_PORT_ID == 1)
-#define RTE_I2C3_SCL_PORT GPIOA
-#define RTE_I2C3_SCL_BIT 8
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// I2C3_SDA Pin <0=>PH8 <1=>PC9
-#define RTE_I2C3_SDA_PORT_ID 0
-#if (RTE_I2C3_SDA_PORT_ID == 0)
-#define RTE_I2C3_SDA_PORT GPIOH
-#define RTE_I2C3_SDA_BIT 8
-#elif (RTE_I2C3_SDA_PORT_ID == 1)
-#define RTE_I2C3_SDA_PORT GPIOC
-#define RTE_I2C3_SDA_BIT 9
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_RX_DMA 1
-#define RTE_I2C3_RX_DMA_NUMBER 1
-#define RTE_I2C3_RX_DMA_STREAM 2
-#define RTE_I2C3_RX_DMA_CHANNEL 3
-#define RTE_I2C3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_TX_DMA 1
-#define RTE_I2C3_TX_DMA_NUMBER 1
-#define RTE_I2C3_TX_DMA_STREAM 4
-#define RTE_I2C3_TX_DMA_CHANNEL 3
-#define RTE_I2C3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI1 (Serial Peripheral Interface 1) [Driver_SPI1]
-// Configuration settings for Driver_SPI1 in component ::Drivers:SPI
-#define RTE_SPI1 0
-
-// SPI1_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI1_NSS_PIN 1
-#define RTE_SPI1_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI1_NSS_BIT 4
-
-// SPI1_SCK Pin <0=>PA5 <1=>PB3
-#define RTE_SPI1_SCL_PORT_ID 0
-#if (RTE_SPI1_SCL_PORT_ID == 0)
-#define RTE_SPI1_SCL_PORT GPIOA
-#define RTE_SPI1_SCL_BIT 5
-#elif (RTE_SPI1_SCL_PORT_ID == 1)
-#define RTE_SPI1_SCL_PORT GPIOB
-#define RTE_SPI1_SCL_BIT 3
-#else
-#error "Invalid SPI1_SCK Pin Configuration!"
-#endif
-
-// SPI1_MISO Pin <0=>PA6 <1=>PB4
-#define RTE_SPI1_MISO_PORT_ID 0
-#if (RTE_SPI1_MISO_PORT_ID == 0)
-#define RTE_SPI1_MISO_PORT GPIOA
-#define RTE_SPI1_MISO_BIT 6
-#elif (RTE_SPI1_MISO_PORT_ID == 1)
-#define RTE_SPI1_MISO_PORT GPIOB
-#define RTE_SPI1_MISO_BIT 4
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// SPI1_MOSI Pin <0=>PA7 <1=>PB5
-#define RTE_SPI1_MOSI_PORT_ID 0
-#if (RTE_SPI1_MOSI_PORT_ID == 0)
-#define RTE_SPI1_MOSI_PORT GPIOA
-#define RTE_SPI1_MOSI_BIT 7
-#elif (RTE_SPI1_MOSI_PORT_ID == 1)
-#define RTE_SPI1_MOSI_PORT GPIOB
-#define RTE_SPI1_MOSI_BIT 5
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_RX_DMA 1
-#define RTE_SPI1_RX_DMA_NUMBER 2
-#define RTE_SPI1_RX_DMA_STREAM 0
-#define RTE_SPI1_RX_DMA_CHANNEL 3
-#define RTE_SPI1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <5=>5
-// Selects DMA Stream (only Stream 3 or 5 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_TX_DMA 1
-#define RTE_SPI1_TX_DMA_NUMBER 2
-#define RTE_SPI1_TX_DMA_STREAM 5
-#define RTE_SPI1_TX_DMA_CHANNEL 3
-#define RTE_SPI1_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI2 (Serial Peripheral Interface 2) [Driver_SPI2]
-// Configuration settings for Driver_SPI2 in component ::Drivers:SPI
-#define RTE_SPI2 0
-
-// SPI2_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI2_NSS_PIN 1
-#define RTE_SPI2_NSS_PORT GPIO_PORT(1)
-#define RTE_SPI2_NSS_BIT 12
-
-// SPI2_SCK Pin <0=>PB10 <1=>PB13 <2=>PI1
-#define RTE_SPI2_SCL_PORT_ID 0
-#if (RTE_SPI2_SCL_PORT_ID == 0)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 10
-#elif (RTE_SPI2_SCL_PORT_ID == 1)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 13
-#elif (RTE_SPI2_SCL_PORT_ID == 2)
-#define RTE_SPI2_SCL_PORT GPIOI
-#define RTE_SPI2_SCL_BIT 1
-#else
-#error "Invalid SPI2_SCK Pin Configuration!"
-#endif
-
-// SPI2_MISO Pin <0=>PB14 <1=>PC2 <2=>PI2
-#define RTE_SPI2_MISO_PORT_ID 0
-#if (RTE_SPI2_MISO_PORT_ID == 0)
-#define RTE_SPI2_MISO_PORT GPIOB
-#define RTE_SPI2_MISO_BIT 14
-#elif (RTE_SPI2_MISO_PORT_ID == 1)
-#define RTE_SPI2_MISO_PORT GPIOC
-#define RTE_SPI2_MISO_BIT 2
-#elif (RTE_SPI2_MISO_PORT_ID == 2)
-#define RTE_SPI2_MISO_PORT GPIOI
-#define RTE_SPI2_MISO_BIT 2
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// SPI2_MOSI Pin <0=>PB15 <1=>PC3 <2=>OI3
-#define RTE_SPI2_MOSI_PORT_ID 0
-#if (RTE_SPI2_MOSI_PORT_ID == 0)
-#define RTE_SPI2_MOSI_PORT GPIOB
-#define RTE_SPI2_MOSI_BIT 15
-#elif (RTE_SPI2_MOSI_PORT_ID == 1)
-#define RTE_SPI2_MOSI_PORT GPIOC
-#define RTE_SPI2_MOSI_BIT 3
-#elif (RTE_SPI2_MOSI_PORT_ID == 2)
-#define RTE_SPI2_MOSI_PORT GPIOI
-#define RTE_SPI2_MOSI_BIT 3
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_RX_DMA 1
-#define RTE_SPI2_RX_DMA_NUMBER 1
-#define RTE_SPI2_RX_DMA_STREAM 2
-#define RTE_SPI2_RX_DMA_CHANNEL 0
-#define RTE_SPI2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_TX_DMA 1
-#define RTE_SPI2_TX_DMA_NUMBER 1
-#define RTE_SPI2_TX_DMA_STREAM 3
-#define RTE_SPI2_TX_DMA_CHANNEL 0
-#define RTE_SPI2_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI3 (Serial Peripheral Interface 3) [Driver_SPI3]
-// Configuration settings for Driver_SPI3 in component ::Drivers:SPI
-#define RTE_SPI3 0
-
-// SPI3_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI3_NSS_PIN 1
-#define RTE_SPI3_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI3_NSS_BIT 15
-
-// SPI3_SCK Pin <0=>PB3 <1=>PC10
-#define RTE_SPI3_SCL_PORT_ID 0
-#if (RTE_SPI3_SCL_PORT_ID == 0)
-#define RTE_SPI3_SCL_PORT GPIOB
-#define RTE_SPI3_SCL_BIT 3
-#elif (RTE_SPI3_SCL_PORT_ID == 1)
-#define RTE_SPI3_SCL_PORT GPIOC
-#define RTE_SPI3_SCL_BIT 10
-#else
-#error "Invalid SPI3_SCK Pin Configuration!"
-#endif
-
-// SPI3_MISO Pin <0=>PB4 <1=>PC11
-#define RTE_SPI3_MISO_PORT_ID 0
-#if (RTE_SPI3_MISO_PORT_ID == 0)
-#define RTE_SPI3_MISO_PORT GPIOB
-#define RTE_SPI3_MISO_BIT 4
-#elif (RTE_SPI3_MISO_PORT_ID == 1)
-#define RTE_SPI3_MISO_PORT GPIOC
-#define RTE_SPI3_MISO_BIT 11
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// SPI3_MOSI Pin <0=>PB5 <1=>PC12
-#define RTE_SPI3_MOSI_PORT_ID 0
-#if (RTE_SPI3_MOSI_PORT_ID == 0)
-#define RTE_SPI3_MOSI_PORT GPIOB
-#define RTE_SPI3_MOSI_BIT 5
-#elif (RTE_SPI3_MOSI_PORT_ID == 1)
-#define RTE_SPI3_MOSI_PORT GPIOC
-#define RTE_SPI3_MOSI_BIT 12
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_RX_DMA 1
-#define RTE_SPI3_RX_DMA_NUMBER 1
-#define RTE_SPI3_RX_DMA_STREAM 0
-#define RTE_SPI3_RX_DMA_CHANNEL 0
-#define RTE_SPI3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5 <7=>7
-// Selects DMA Stream (only Stream 5 or 7 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_TX_DMA 1
-#define RTE_SPI3_TX_DMA_NUMBER 1
-#define RTE_SPI3_TX_DMA_STREAM 5
-#define RTE_SPI3_TX_DMA_CHANNEL 0
-#define RTE_SPI3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SDIO (Secure Digital Input/Output) [Driver_MCI0]
-// Configuration settings for Driver_MCI0 in component ::Drivers:MCI
-#define RTE_SDIO 1
-
-// SDIO_CD (Card Detect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_CD_PIN 1
-#define RTE_SDIO_CD_ACTIVE 0
-#define RTE_SDIO_CD_PORT GPIO_PORT(7)
-#define RTE_SDIO_CD_BIT 15
-
-// SDIO_WP (Write Protect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_WP_PIN 0
-#define RTE_SDIO_WP_ACTIVE 0
-#define RTE_SDIO_WP_PORT GPIO_PORT(7)
-#define RTE_SDIO_WP_BIT 16
-
-// SDIO Bus
-// SDIO_CK Pin <0=>PC12
-#define RTE_SDIO_CK_PORT_ID 0
-#if (RTE_SDIO_CK_PORT_ID == 0)
-#define RTE_SDIO_CK_PORT GPIOC
-#define RTE_SDIO_CK_PIN 12
-#else
-#error "Invalid SDIO_CK Pin Configuration!"
-#endif
-// SDIO_CMD Pin <0=>PD2
-#define RTE_SDIO_CMD_PORT_ID 0
-#if (RTE_SDIO_CMD_PORT_ID == 0)
-#define RTE_SDIO_CMD_PORT GPIOD
-#define RTE_SDIO_CMD_PIN 2
-#else
-#error "Invalid SDIO_CDM Pin Configuration!"
-#endif
-// SDIO_D0 Pin <0=>PC8
-#define RTE_SDIO_D0_PORT_ID 0
-#if (RTE_SDIO_D0_PORT_ID == 0)
-#define RTE_SDIO_D0_PORT GPIOC
-#define RTE_SDIO_D0_PIN 8
-#else
-#error "Invalid SDIO_D0 Pin Configuration!"
-#endif
-// SDIO_D1 Pin <0=>PC9
-#define RTE_SDIO_D1_PORT_ID 0
-#if (RTE_SDIO_D1_PORT_ID == 0)
-#define RTE_SDIO_D1_PORT GPIOC
-#define RTE_SDIO_D1_PIN 9
-#else
-#error "Invalid SDIO_D1 Pin Configuration!"
-#endif
-// SDIO_D2 Pin <0=>PC10
-#define RTE_SDIO_D2_PORT_ID 0
-#if (RTE_SDIO_D2_PORT_ID == 0)
-#define RTE_SDIO_D2_PORT GPIOC
-#define RTE_SDIO_D2_PIN 10
-#else
-#error "Invalid SDIO_D2 Pin Configuration!"
-#endif
-// SDIO_D3 Pin <0=>PC11
-#define RTE_SDIO_D3_PORT_ID 0
-#if (RTE_SDIO_D3_PORT_ID == 0)
-#define RTE_SDIO_D3_PORT GPIOC
-#define RTE_SDIO_D3_PIN 11
-#else
-#error "Invalid SDIO_D3 Pin Configuration!"
-#endif
-// SDIO_D4 Pin <0=>PB8
-#define RTE_SDIO_D4_PORT_ID 0
-#if (RTE_SDIO_D4_PORT_ID == 0)
-#define RTE_SDIO_D4_PORT GPIOB
-#define RTE_SDIO_D4_PIN 8
-#else
-#error "Invalid SDIO_D4 Pin Configuration!"
-#endif
-// SDIO_D5 Pin <0=>PB9
-#define RTE_SDIO_D5_PORT_ID 0
-#if (RTE_SDIO_D5_PORT_ID == 0)
-#define RTE_SDIO_D5_PORT GPIOB
-#define RTE_SDIO_D5_PIN 9
-#else
-#error "Invalid SDIO_D5 Pin Configuration!"
-#endif
-// SDIO_D6 Pin <0=>PC6
-#define RTE_SDIO_D6_PORT_ID 0
-#if (RTE_SDIO_D6_PORT_ID == 0)
-#define RTE_SDIO_D6_PORT GPIOC
-#define RTE_SDIO_D6_PIN 6
-#else
-#error "Invalid SDIO_D6 Pin Configuration!"
-#endif
-// SDIO_D7 Pin <0=>PC7
-#define RTE_SDIO_D7_PORT_ID 0
-#if (RTE_SDIO_D7_PORT_ID == 0)
-#define RTE_SDIO_D7_PORT GPIOC
-#define RTE_SDIO_D7_PIN 7
-#else
-#error "Invalid SDIO_D7 Pin Configuration!"
-#endif
-//
-
-// DMA
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <6=>6
-// Selects DMA Stream (only Stream 3 or 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SDIO_DMA 1
-#define RTE_SDIO_DMA_NUMBER 2
-#define RTE_SDIO_DMA_STREAM 3
-#define RTE_SDIO_DMA_CHANNEL 4
-#define RTE_SDIO_DMA_PRIORITY 0
-
-//
-
-
-// ETH (Ethernet Interface) [Driver_ETH_MAC0]
-// Configuration settings for Driver_ETH_MAC0 in component ::Drivers:Ethernet MAC
-#define RTE_ETH 1
-
-// MII (Media Independent Interface)
-#define RTE_ETH_MII 0
-
-// ETH_MII_TX_CLK Pin <0=>PC3
-#define RTE_ETH_MII_TX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_TX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_TX_CLK_PORT GPIOC
-#define RTE_ETH_MII_TX_CLK_PIN 3
-#else
-#error "Invalid ETH_MII_TX_CLK Pin Configuration!"
-#endif
-// ETH_MII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_MII_TXD0_PORT_ID 0
-#if (RTE_ETH_MII_TXD0_PORT_ID == 0)
-#define RTE_ETH_MII_TXD0_PORT GPIOB
-#define RTE_ETH_MII_TXD0_PIN 12
-#elif (RTE_ETH_MII_TXD0_PORT_ID == 1)
-#define RTE_ETH_MII_TXD0_PORT GPIOG
-#define RTE_ETH_MII_TXD0_PIN 13
-#else
-#error "Invalid ETH_MII_TXD0 Pin Configuration!"
-#endif
-// ETH_MII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_MII_TXD1_PORT_ID 0
-#if (RTE_ETH_MII_TXD1_PORT_ID == 0)
-#define RTE_ETH_MII_TXD1_PORT GPIOB
-#define RTE_ETH_MII_TXD1_PIN 13
-#elif (RTE_ETH_MII_TXD1_PORT_ID == 1)
-#define RTE_ETH_MII_TXD1_PORT GPIOG
-#define RTE_ETH_MII_TXD1_PIN 14
-#else
-#error "Invalid ETH_MII_TXD1 Pin Configuration!"
-#endif
-// ETH_MII_TXD2 Pin <0=>PC2
-#define RTE_ETH_MII_TXD2_PORT_ID 0
-#if (RTE_ETH_MII_TXD2_PORT_ID == 0)
-#define RTE_ETH_MII_TXD2_PORT GPIOC
-#define RTE_ETH_MII_TXD2_PIN 2
-#else
-#error "Invalid ETH_MII_TXD2 Pin Configuration!"
-#endif
-// ETH_MII_TXD3 Pin <0=>PB8 <1=>PE2
-#define RTE_ETH_MII_TXD3_PORT_ID 0
-#if (RTE_ETH_MII_TXD3_PORT_ID == 0)
-#define RTE_ETH_MII_TXD3_PORT GPIOB
-#define RTE_ETH_MII_TXD3_PIN 8
-#elif (RTE_ETH_MII_TXD3_PORT_ID == 1)
-#define RTE_ETH_MII_TXD3_PORT GPIOE
-#define RTE_ETH_MII_TXD3_PIN 2
-#else
-#error "Invalid ETH_MII_TXD3 Pin Configuration!"
-#endif
-// ETH_MII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_MII_TX_EN_PORT_ID 0
-#if (RTE_ETH_MII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_MII_TX_EN_PORT GPIOB
-#define RTE_ETH_MII_TX_EN_PIN 11
-#elif (RTE_ETH_MII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_MII_TX_EN_PORT GPIOG
-#define RTE_ETH_MII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_MII_TX_EN Pin Configuration!"
-#endif
-// ETH_MII_RX_CLK Pin <0=>PA1
-#define RTE_ETH_MII_RX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_RX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_RX_CLK_PORT GPIOA
-#define RTE_ETH_MII_RX_CLK_PIN 1
-#else
-#error "Invalid ETH_MII_RX_CLK Pin Configuration!"
-#endif
-// ETH_MII_RXD0 Pin <0=>PC4
-#define RTE_ETH_MII_RXD0_PORT_ID 0
-#if (RTE_ETH_MII_RXD0_PORT_ID == 0)
-#define RTE_ETH_MII_RXD0_PORT GPIOC
-#define RTE_ETH_MII_RXD0_PIN 4
-#else
-#error "Invalid ETH_MII_RXD0 Pin Configuration!"
-#endif
-// ETH_MII_RXD1 Pin <0=>PC5
-#define RTE_ETH_MII_RXD1_PORT_ID 0
-#if (RTE_ETH_MII_RXD1_PORT_ID == 0)
-#define RTE_ETH_MII_RXD1_PORT GPIOC
-#define RTE_ETH_MII_RXD1_PIN 5
-#else
-#error "Invalid ETH_MII_RXD1 Pin Configuration!"
-#endif
-// ETH_MII_RXD2 Pin <0=>PB0 <1=>PH6
-#define RTE_ETH_MII_RXD2_PORT_ID 0
-#if (RTE_ETH_MII_RXD2_PORT_ID == 0)
-#define RTE_ETH_MII_RXD2_PORT GPIOB
-#define RTE_ETH_MII_RXD2_PIN 0
-#elif (RTE_ETH_MII_RXD2_PORT_ID == 1)
-#define RTE_ETH_MII_RXD2_PORT GPIOH
-#define RTE_ETH_MII_RXD2_PIN 6
-#else
-#error "Invalid ETH_MII_RXD2 Pin Configuration!"
-#endif
-// ETH_MII_RXD3 Pin <0=>PB1 <1=>PH7
-#define RTE_ETH_MII_RXD3_PORT_ID 0
-#if (RTE_ETH_MII_RXD3_PORT_ID == 0)
-#define RTE_ETH_MII_RXD3_PORT GPIOB
-#define RTE_ETH_MII_RXD3_PIN 1
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RXD3_PORT GPIOH
-#define RTE_ETH_MII_RXD3_PIN 7
-#else
-#error "Invalid ETH_MII_RXD3 Pin Configuration!"
-#endif
-// ETH_MII_RX_DV Pin <0=>PA7
-#define RTE_ETH_MII_RX_DV_PORT_ID 0
-#if (RTE_ETH_MII_RX_DV_PORT_ID == 0)
-#define RTE_ETH_MII_RX_DV_PORT GPIOA
-#define RTE_ETH_MII_RX_DV_PIN 7
-#else
-#error "Invalid ETH_MII_RX_DV Pin Configuration!"
-#endif
-// ETH_MII_RX_ER Pin <0=>PB10 <1=>PI10
-#define RTE_ETH_MII_RX_ER_PORT_ID 0
-#if (RTE_ETH_MII_RX_ER_PORT_ID == 0)
-#define RTE_ETH_MII_RX_ER_PORT GPIOB
-#define RTE_ETH_MII_RX_ER_PIN 10
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RX_ER_PORT GPIOI
-#define RTE_ETH_MII_RX_ER_PIN 10
-#else
-#error "Invalid ETH_MII_RX_ER Pin Configuration!"
-#endif
-// ETH_MII_CRS Pin <0=>PA0 <1=>PH2
-#define RTE_ETH_MII_CRS_PORT_ID 0
-#if (RTE_ETH_MII_CRS_PORT_ID == 0)
-#define RTE_ETH_MII_CRS_PORT GPIOA
-#define RTE_ETH_MII_CRS_PIN 0
-#elif (RTE_ETH_MII_CRS_PORT_ID == 1)
-#define RTE_ETH_MII_CRS_PORT GPIOH
-#define RTE_ETH_MII_CRS_PIN 2
-#else
-#error "Invalid ETH_MII_CRS Pin Configuration!"
-#endif
-// ETH_MII_COL Pin <0=>PA3 <1=>PH3
-#define RTE_ETH_MII_COL_PORT_ID 0
-#if (RTE_ETH_MII_COL_PORT_ID == 0)
-#define RTE_ETH_MII_COL_PORT GPIOA
-#define RTE_ETH_MII_COL_PIN 3
-#elif (RTE_ETH_MII_COL_PORT_ID == 1)
-#define RTE_ETH_MII_COL_PORT GPIOH
-#define RTE_ETH_MII_COL_PIN 3
-#else
-#error "Invalid ETH_MII_COL Pin Configuration!"
-#endif
-
-//
-
-// RMII (Reduced Media Independent Interface)
-#define RTE_ETH_RMII 1
-
-// ETH_RMII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_RMII_TXD0_PORT_ID 1
-#if (RTE_ETH_RMII_TXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD0_PORT GPIOB
-#define RTE_ETH_RMII_TXD0_PIN 12
-#elif (RTE_ETH_RMII_TXD0_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD0_PORT GPIOG
-#define RTE_ETH_RMII_TXD0_PIN 13
-#else
-#error "Invalid ETH_RMII_TXD0 Pin Configuration!"
-#endif
-// ETH_RMII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_RMII_TXD1_PORT_ID 1
-#if (RTE_ETH_RMII_TXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD1_PORT GPIOB
-#define RTE_ETH_RMII_TXD1_PIN 13
-#elif (RTE_ETH_RMII_TXD1_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD1_PORT GPIOG
-#define RTE_ETH_RMII_TXD1_PIN 14
-#else
-#error "Invalid ETH_RMII_TXD1 Pin Configuration!"
-#endif
-// ETH_RMII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_RMII_TX_EN_PORT_ID 1
-#if (RTE_ETH_RMII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOB
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#elif (RTE_ETH_RMII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOG
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_RMII_TX_EN Pin Configuration!"
-#endif
-// ETH_RMII_RXD0 Pin <0=>PC4
-#define RTE_ETH_RMII_RXD0_PORT_ID 0
-#if (RTE_ETH_RMII_RXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD0_PORT GPIOC
-#define RTE_ETH_RMII_RXD0_PIN 4
-#else
-#error "Invalid ETH_RMII_RXD0 Pin Configuration!"
-#endif
-// ETH_RMII_RXD1 Pin <0=>PC5
-#define RTE_ETH_RMII_RXD1_PORT_ID 0
-#if (RTE_ETH_RMII_RXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD1_PORT GPIOC
-#define RTE_ETH_RMII_RXD1_PIN 5
-#else
-#error "Invalid ETH_RMII_RXD1 Pin Configuration!"
-#endif
-// ETH_RMII_REF_CLK Pin <0=>PA1
-#define RTE_ETH_RMII_REF_CLK_PORT_ID 0
-#if (RTE_ETH_RMII_REF_CLK_PORT_ID == 0)
-#define RTE_ETH_RMII_REF_CLK_PORT GPIOA
-#define RTE_ETH_RMII_REF_CLK_PIN 1
-#else
-#error "Invalid ETH_RMII_REF_CLK Pin Configuration!"
-#endif
-// ETH_RMII_CRS_DV Pin <0=>PA7
-#define RTE_ETH_RMII_CRS_DV_PORT_ID 0
-#if (RTE_ETH_RMII_CRS_DV_PORT_ID == 0)
-#define RTE_ETH_RMII_CRS_DV_PORT GPIOA
-#define RTE_ETH_RMII_CRS_DV_PIN 7
-#else
-#error "Invalid ETH_RMII_CRS_DV Pin Configuration!"
-#endif
-
-//
-
-// Management Data Interface
-// ETH_MDC Pin <0=>PC1
-#define RTE_ETH_MDI_MDC_PORT_ID 0
-#if (RTE_ETH_MDI_MDC_PORT_ID == 0)
-#define RTE_ETH_MDI_MDC_PORT GPIOC
-#define RTE_ETH_MDI_MDC_PIN 1
-#else
-#error "Invalid ETH_MDC Pin Configuration!"
-#endif
-// ETH_MDIO Pin <0=>PA2
-#define RTE_ETH_MDI_MDIO_PORT_ID 0
-#if (RTE_ETH_MDI_MDIO_PORT_ID == 0)
-#define RTE_ETH_MDI_MDIO_PORT GPIOA
-#define RTE_ETH_MDI_MDIO_PIN 2
-#else
-#error "Invalid ETH_MDIO Pin Configuration!"
-#endif
-//
-
-// Reference 25MHz/50MHz Clock generation
-#define RTE_ETH_REF_CLOCK 0
-
-// MCO Pin <0=>PA2 <1=>PC9
-#define RTE_ETH_REF_CLOCK_PORT_ID 0
-#if (RTE_ETH_REF_CLOCK_PORT_ID == 0)
-#define RTE_ETH_REF_CLOCK_PORT GPIOA
-#define RTE_ETH_REF_CLOCK_PIN 8
-#elif (RTE_ETH_REF_CLOCK_PORT_ID == 1)
-#define RTE_ETH_REF_CLOCK_PORT GPIOC
-#define RTE_ETH_REF_CLOCK_PIN 9
-#else
-#error "Invalid MCO Pin Configuration!"
-#endif
-
-//
-
-//
-
-
-// USB OTG Full-speed
-#define RTE_USB_OTG_FS 0
-
-// Device [Driver_USBD0]
-// Configuration settings for Driver_USBD0 in component ::Drivers:USB Device
-#define RTE_USB_OTG_FS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_FS_DEV_EP 0x0000000F
-#define RTE_USB_OTG_FS_DEV_EP_BULK 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_INT 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_ISO 0x000E000E
-
-//
-
-// Host [Driver_USBH0]
-// Configuration settings for Driver_USBH0 in component ::Drivers:USB Host
-
-#define RTE_USB_OTG_FS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_VBUS_PIN 1
-#define RTE_OTG_FS_VBUS_ACTIVE 0
-#define RTE_OTG_FS_VBUS_PORT GPIO_PORT(7)
-#define RTE_OTG_FS_VBUS_BIT 5
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_OC_PIN 1
-#define RTE_OTG_FS_OC_ACTIVE 0
-#define RTE_OTG_FS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_FS_OC_BIT 11
-//
-
-//
-
-
-// USB OTG High-speed
-#define RTE_USB_OTG_HS 0
-
-// PHY (Physical Layer)
-
-// PHY Interface
-// <0=>On-chip full-speed PHY
-// <1=>External ULPI high-speed PHY
-#define RTE_USB_OTG_HS_PHY 1
-
-// External ULPI Pins (UTMI+ Low Pin Interface)
-
-// OTG_HS_ULPI_CK Pin <0=>PA5
-#define RTE_USB_OTG_HS_ULPI_CK_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_CK_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_CK_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_CK_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_CK Pin Configuration!"
-#endif
-// OTG_HS_ULPI_DIR Pin <0=>PI11 <1=>PC2
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOI
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 11
-#elif (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 2
-#else
-#error "Invalid OTG_HS_ULPI_DIR Pin Configuration!"
-#endif
-// OTG_HS_ULPI_STP Pin <0=>PC0
-#define RTE_USB_OTG_HS_ULPI_STP_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_STP_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_STP_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_STP_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_STP Pin Configuration!"
-#endif
-// OTG_HS_ULPI_NXT Pin <0=>PC2 <1=>PH4
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT_ID 1
-#if (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 2
-#elif (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOH
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 4
-#else
-#error "Invalid OTG_HS_ULPI_NXT Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D0 Pin <0=>PA3
-#define RTE_USB_OTG_HS_ULPI_D0_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D0_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D0_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_D0_PIN 3
-#else
-#error "Invalid OTG_HS_ULPI_D0 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D1 Pin <0=>PB0
-#define RTE_USB_OTG_HS_ULPI_D1_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D1_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D1_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D1_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_D1 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D2 Pin <0=>PB1
-#define RTE_USB_OTG_HS_ULPI_D2_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D2_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D2_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D2_PIN 1
-#else
-#error "Invalid OTG_HS_ULPI_D2 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D3 Pin <0=>PB10
-#define RTE_USB_OTG_HS_ULPI_D3_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D3_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D3_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D3_PIN 10
-#else
-#error "Invalid OTG_HS_ULPI_D3 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D4 Pin <0=>PB11
-#define RTE_USB_OTG_HS_ULPI_D4_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D4_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D4_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D4_PIN 11
-#else
-#error "Invalid OTG_HS_ULPI_D4 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D5 Pin <0=>PB12
-#define RTE_USB_OTG_HS_ULPI_D5_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D5_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D5_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D5_PIN 12
-#else
-#error "Invalid OTG_HS_ULPI_D5 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D6 Pin <0=>PB13
-#define RTE_USB_OTG_HS_ULPI_D6_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D6_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D6_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D6_PIN 13
-#else
-#error "Invalid OTG_HS_ULPI_D6 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D7 Pin <0=>PB5
-#define RTE_USB_OTG_HS_ULPI_D7_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D7_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D7_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D7_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_D7 Pin Configuration!"
-#endif
-
-//
-
-//
-
-// Device [Driver_USBD1]
-// Configuration settings for Driver_USBD1 in component ::Drivers:USB Device
-#define RTE_USB_OTG_HS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 4
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 5
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_HS_DEV_EP 0x0000003F
-#define RTE_USB_OTG_HS_DEV_EP_BULK 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_INT 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_ISO 0x003E003E
-
-//
-
-// Host [Driver_USBH1]
-// Configuration settings for Driver_USBH1 in component ::Drivers:USB Host
-#define RTE_USB_OTG_HS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_VBUS_PIN 1
-#define RTE_OTG_HS_VBUS_ACTIVE 0
-#define RTE_OTG_HS_VBUS_PORT GPIO_PORT(2)
-#define RTE_OTG_HS_VBUS_BIT 2
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_OC_PIN 1
-#define RTE_OTG_HS_OC_ACTIVE 0
-#define RTE_OTG_HS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_HS_OC_BIT 12
-//
-
-//
-
-
-// EXTI (External Interrupt/Event Controller)
-#define RTE_EXTI 0
-
-// EXTI0 Line
-#define RTE_EXTI0 0
-// Pin <0=>PA0 <1=>PB0 <2=>PC0 <3=>PD0 <4=>PE0 <5=>PF0 <6=>PG0 <7=>PH0 <8=>PI0
-#define RTE_EXTI0_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI0_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI0_TRIGGER 0
-//
-
-// EXTI1 Line
-#define RTE_EXTI1 0
-// Pin <0=>PA1 <1=>PB1 <2=>PC1 <3=>PD1 <4=>PE1 <5=>PF1 <6=>PG1 <7=>PH1 <8=>PI1
-#define RTE_EXTI1_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI1_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI1_TRIGGER 0
-//
-
-// EXTI2 Line
-#define RTE_EXTI2 0
-// Pin <0=>PA2 <1=>PB2 <2=>PC2 <3=>PD2 <4=>PE2 <5=>PF2 <6=>PG2 <7=>PH2 <8=>PI2
-#define RTE_EXTI2_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI2_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI2_TRIGGER 0
-//
-
-// EXTI3 Line
-#define RTE_EXTI3 0
-// Pin <0=>PA3 <1=>PB3 <2=>PC3 <3=>PD3 <4=>PE3 <5=>PF3 <6=>PG3 <7=>PH3 <8=>PI3
-#define RTE_EXTI3_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI3_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI3_TRIGGER 0
-//
-
-// EXTI4 Line
-#define RTE_EXTI4 0
-// Pin <0=>PA4 <1=>PB4 <2=>PC4 <3=>PD4 <4=>PE4 <5=>PF4 <6=>PG4 <7=>PH4 <8=>PI4
-#define RTE_EXTI4_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI4_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI4_TRIGGER 0
-//
-
-// EXTI5 Line
-#define RTE_EXTI5 0
-// Pin <0=>PA5 <1=>PB5 <2=>PC5 <3=>PD5 <4=>PE5 <5=>PF5 <6=>PG5 <7=>PH5 <8=>PI5
-#define RTE_EXTI5_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI5_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI5_TRIGGER 0
-//
-
-// EXTI6 Line
-#define RTE_EXTI6 0
-// Pin <0=>PA6 <1=>PB6 <2=>PC6 <3=>PD6 <4=>PE6 <5=>PF6 <6=>PG6 <7=>PH6 <8=>PI6
-#define RTE_EXTI6_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI6_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI6_TRIGGER 0
-//
-
-// EXTI7 Line
-#define RTE_EXTI7 0
-// Pin <0=>PA7 <1=>PB7 <2=>PC7 <3=>PD7 <4=>PE7 <5=>PF7 <6=>PG7 <7=>PH7 <8=>PI7
-#define RTE_EXTI7_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI7_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI7_TRIGGER 0
-//
-
-// EXTI8 Line
-#define RTE_EXTI8 0
-// Pin <0=>PA8 <1=>PB8 <2=>PC8 <3=>PD8 <4=>PE8 <5=>PF8 <6=>PG8 <7=>PH8 <8=>PI8
-#define RTE_EXTI8_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI8_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI8_TRIGGER 0
-//
-
-// EXTI9 Line
-#define RTE_EXTI9 0
-// Pin <0=>PA9 <1=>PB9 <2=>PC9 <3=>PD9 <4=>PE9 <5=>PF9 <6=>PG9 <7=>PH9 <8=>PI9
-#define RTE_EXTI9_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI9_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI9_TRIGGER 0
-//
-
-// EXTI10 Line
-#define RTE_EXTI10 0
-// Pin <0=>PA10 <1=>PB10 <2=>PC10 <3=>PD10 <4=>PE10 <5=>PF10 <6=>PG10 <7=>PH10 <8=>PI10
-#define RTE_EXTI10_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI10_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI10_TRIGGER 0
-//
-
-// EXTI11 Line
-#define RTE_EXTI11 0
-// Pin <0=>PA11 <1=>PB11 <2=>PC11 <3=>PD11 <4=>PE11 <5=>PF11 <6=>PG11 <7=>PH11 <8=>PI11
-#define RTE_EXTI11_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI11_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI11_TRIGGER 0
-//
-
-// EXTI12 Line
-#define RTE_EXTI12 0
-// Pin <0=>PA12 <1=>PB12 <2=>PC12 <3=>PD12 <4=>PE12 <5=>PF12 <6=>PG12 <7=>PH12
-#define RTE_EXTI12_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI12_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI12_TRIGGER 0
-//
-
-// EXTI13 Line
-#define RTE_EXTI13 0
-// Pin <0=>PA13 <1=>PB13 <2=>PC13 <3=>PD13 <4=>PE13 <5=>PF13 <6=>PG13 <7=>PH13
-#define RTE_EXTI13_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI13_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI13_TRIGGER 0
-//
-
-// EXTI14 Line
-#define RTE_EXTI14 0
-// Pin <0=>PA14 <1=>PB14 <2=>PC14 <3=>PD14 <4=>PE14 <5=>PF14 <6=>PG14 <7=>PH14
-#define RTE_EXTI14_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI14_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI14_TRIGGER 0
-//
-
-// EXTI15 Line
-#define RTE_EXTI15 0
-// Pin <0=>PA15 <1=>PB15 <2=>PC15 <3=>PD15 <4=>PE15 <5=>PF15 <6=>PG15 <7=>PH15
-#define RTE_EXTI15_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI15_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI15_TRIGGER 0
-//
-
-// EXTI16 Line: PVD Output
-#define RTE_EXTI16 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI16_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI16_TRIGGER 0
-//
-
-// EXTI17 Line: RTC Alarm
-#define RTE_EXTI17 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI17_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI17_TRIGGER 0
-//
-
-// EXTI18 Line: USB OTG FS Wakeup
-#define RTE_EXTI18 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI18_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI18_TRIGGER 0
-//
-
-// EXTI19 Line: Ethernet Wakeup
-#define RTE_EXTI19 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI19_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI19_TRIGGER 0
-//
-
-// EXTI20 Line: USB OTG HS Wakeup
-#define RTE_EXTI20 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI20_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI20_TRIGGER 0
-//
-
-// EXTI21 Line: RTC Tamper and TimeStamp
-#define RTE_EXTI21 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI21_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI21_TRIGGER 0
-//
-
-// EXTI22 Line: RTC Wakeup
-#define RTE_EXTI22 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI22_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI22_TRIGGER 0
-//
-
-//
-
-
-// FSMC (Flexible Static Memory Controller)
-#define RTE_FSMC 0
-
-// Pin Configuration
-// Configure Pins
-#define RTE_FSMC_PINS 0
-
-// Address Bus Pins
-// <0=>A[17:16]
-// <1=>A[10:0] <2=>A[15:0] <3=>A[16:0] <4=>A[17:0]
-// <5=>A[18:0] <6=>A[19:0] <7=>A[20:0] <8=>A[21:0]
-// <9=>A[22:0] <10=>A[23:0] <11=>A[24:0] <12=>A[25:0]
-#define RTE_FSMC_ABUS_PINS 10
-// Data Bus Pins <0=>D[7:0] <1=>D[15:0]
-#define RTE_FSMC_DBUS_PINS 0
-// FSMC_NOE Pin
-#define RTE_FSMC_NOE_PIN 0
-// FSMC_NWE Pin
-#define RTE_FSMC_NWE_PIN 0
-// FSMC_NBL0 Pin
-#define RTE_FSMC_NBL0_PIN 0
-// FSMC_NBL1 Pin
-#define RTE_FSMC_NBL1_PIN 0
-// FSMC_NL Pin
-#define RTE_FSMC_NL_PIN 0
-// FSMC_NWAIT Pin
-#define RTE_FSMC_NWAIT_PIN 0
-// FSMC_CLK Pin
-#define RTE_FSMC_CLK_PIN 0
-// FSMC_NE1/NCE2 Pin
-#define RTE_FSMC_NE1_PIN 0
-// FSMC_NE2/NCE3 Pin
-#define RTE_FSMC_NE2_PIN 0
-// FSMC_NE3/NCE4_1 Pin
-#define RTE_FSMC_NE3_PIN 0
-// FSMC_NE4 Pin
-#define RTE_FSMC_NE4_PIN 0
-// FSMC_NCE4_2 Pin
-#define RTE_FSMC_NCE42_PIN 0
-// FSMC_INT2 Pin
-#define RTE_FSMC_INT2_PIN 0
-// FSMC_INT3 Pin
-#define RTE_FSMC_INT3_PIN 0
-// FSMC_INTR Pin
-#define RTE_FSMC_INTR_PIN 0
-// FSMC_NIORD Pin
-#define RTE_FSMC_NIORD_PIN 0
-// FSMC_NIOWR Pin
-#define RTE_FSMC_NIOWR_PIN 0
-// FSMC_NREG Pin
-#define RTE_FSMC_NREG_PIN 0
-// FSMC_CD Pin
-#define RTE_FSMC_CD_PIN 0
-
-//
-
-// NOR Flash / PSRAM Controller
-
-// FSMC_NE1 Chip Select
-// Configure Device on Chip Select FSMC_NE1
-#define RTE_FSMC_NE1 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR1_CBURSTRW 0
-#define RTE_FSMC_BCR1_ASYNCWAIT 0
-#define RTE_FSMC_BCR1_EXTMOD 0
-#define RTE_FSMC_BCR1_WAITEN 1
-#define RTE_FSMC_BCR1_WREN 1
-#define RTE_FSMC_BCR1_WAITCFG 0
-#define RTE_FSMC_BCR1_WRAPMOD 0
-#define RTE_FSMC_BCR1_WAITPOL 0
-#define RTE_FSMC_BCR1_BURSTEN 0
-#define RTE_FSMC_BCR1_FACCEN 1
-#define RTE_FSMC_BCR1_MWID 1
-#define RTE_FSMC_BCR1_MTYP 2
-#define RTE_FSMC_BCR1_MUXEN 1
-#define RTE_FSMC_BCR1_MBKEN 1
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR1_ACCMOD 0
-#define RTE_FSMC_BTR1_DATLAT 15
-#define RTE_FSMC_BTR1_CLKDIV 15
-#define RTE_FSMC_BTR1_BUSTURN 15
-#define RTE_FSMC_BTR1_DATAST 255
-#define RTE_FSMC_BTR1_ADDHLD 15
-#define RTE_FSMC_BTR1_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR1_ACCMOD 0
-#define RTE_FSMC_BWTR1_DATLAT 15
-#define RTE_FSMC_BWTR1_CLKDIV 15
-#define RTE_FSMC_BWTR1_BUSTURN 15
-#define RTE_FSMC_BWTR1_DATAST 255
-#define RTE_FSMC_BWTR1_ADDHLD 15
-#define RTE_FSMC_BWTR1_ADDSET 15
-//
-//
-
-// FSMC_NE2 Chip Select
-// Configure Device on Chip Select FSMC_NE2
-#define RTE_FSMC_NE2 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR2_CBURSTRW 0
-#define RTE_FSMC_BCR2_ASYNCWAIT 0
-#define RTE_FSMC_BCR2_EXTMOD 0
-#define RTE_FSMC_BCR2_WAITEN 1
-#define RTE_FSMC_BCR2_WREN 1
-#define RTE_FSMC_BCR2_WAITCFG 0
-#define RTE_FSMC_BCR2_WRAPMOD 0
-#define RTE_FSMC_BCR2_WAITPOL 0
-#define RTE_FSMC_BCR2_BURSTEN 0
-#define RTE_FSMC_BCR2_FACCEN 1
-#define RTE_FSMC_BCR2_MWID 1
-#define RTE_FSMC_BCR2_MTYP 0
-#define RTE_FSMC_BCR2_MUXEN 1
-#define RTE_FSMC_BCR2_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR2_ACCMOD 0
-#define RTE_FSMC_BTR2_DATLAT 15
-#define RTE_FSMC_BTR2_CLKDIV 15
-#define RTE_FSMC_BTR2_BUSTURN 15
-#define RTE_FSMC_BTR2_DATAST 255
-#define RTE_FSMC_BTR2_ADDHLD 15
-#define RTE_FSMC_BTR2_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR2_ACCMOD 0
-#define RTE_FSMC_BWTR2_DATLAT 15
-#define RTE_FSMC_BWTR2_CLKDIV 15
-#define RTE_FSMC_BWTR2_BUSTURN 15
-#define RTE_FSMC_BWTR2_DATAST 255
-#define RTE_FSMC_BWTR2_ADDHLD 15
-#define RTE_FSMC_BWTR2_ADDSET 15
-//
-//
-
-// FSMC_NE3 Chip Select
-// Configure Device on Chip Select FSMC_NE3
-#define RTE_FSMC_NE3 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR3_CBURSTRW 0
-#define RTE_FSMC_BCR3_ASYNCWAIT 0
-#define RTE_FSMC_BCR3_EXTMOD 0
-#define RTE_FSMC_BCR3_WAITEN 1
-#define RTE_FSMC_BCR3_WREN 1
-#define RTE_FSMC_BCR3_WAITCFG 0
-#define RTE_FSMC_BCR3_WRAPMOD 0
-#define RTE_FSMC_BCR3_WAITPOL 0
-#define RTE_FSMC_BCR3_BURSTEN 0
-#define RTE_FSMC_BCR3_FACCEN 1
-#define RTE_FSMC_BCR3_MWID 1
-#define RTE_FSMC_BCR3_MTYP 0
-#define RTE_FSMC_BCR3_MUXEN 1
-#define RTE_FSMC_BCR3_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR3_ACCMOD 0
-#define RTE_FSMC_BTR3_DATLAT 15
-#define RTE_FSMC_BTR3_CLKDIV 15
-#define RTE_FSMC_BTR3_BUSTURN 15
-#define RTE_FSMC_BTR3_DATAST 255
-#define RTE_FSMC_BTR3_ADDHLD 15
-#define RTE_FSMC_BTR3_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR3_ACCMOD 0
-#define RTE_FSMC_BWTR3_DATLAT 15
-#define RTE_FSMC_BWTR3_CLKDIV 15
-#define RTE_FSMC_BWTR3_BUSTURN 15
-#define RTE_FSMC_BWTR3_DATAST 255
-#define RTE_FSMC_BWTR3_ADDHLD 15
-#define RTE_FSMC_BWTR3_ADDSET 15
-//
-//
-
-// FSMC_NE4 Chip Select
-// Configure Device on Chip Select FSMC_NE4
-#define RTE_FSMC_NE4 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR4_CBURSTRW 0
-#define RTE_FSMC_BCR4_ASYNCWAIT 0
-#define RTE_FSMC_BCR4_EXTMOD 0
-#define RTE_FSMC_BCR4_WAITEN 1
-#define RTE_FSMC_BCR4_WREN 1
-#define RTE_FSMC_BCR4_WAITCFG 0
-#define RTE_FSMC_BCR4_WRAPMOD 0
-#define RTE_FSMC_BCR4_WAITPOL 0
-#define RTE_FSMC_BCR4_BURSTEN 0
-#define RTE_FSMC_BCR4_FACCEN 1
-#define RTE_FSMC_BCR4_MWID 1
-#define RTE_FSMC_BCR4_MTYP 0
-#define RTE_FSMC_BCR4_MUXEN 1
-#define RTE_FSMC_BCR4_MBKEN 0
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is not used, the address hold phase is always 1
-// memory clock period duration.
-// ADDSET: Address setup phase duration <0-15>
-// Define the duration of the address setup phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 1615 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don’t care.
-#define RTE_FSMC_BTR4_ACCMOD 0
-#define RTE_FSMC_BTR4_DATLAT 15
-#define RTE_FSMC_BTR4_CLKDIV 15
-#define RTE_FSMC_BTR4_BUSTURN 15
-#define RTE_FSMC_BTR4_DATAST 255
-#define RTE_FSMC_BTR4_ADDHLD 15
-#define RTE_FSMC_BTR4_ADDSET 15
-//
-
-// Write timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles
-// (+2) to issue to the memory before getting the first data.
-// 0000: (0x0) Data latency of 2 CLK clock cycles for first burst access
-// ...
-// 1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In
-// asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of
-// CRAM, this field must be set to 0
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles.
-// 0000: Reserved
-// 0001 CLK period = 2 × HCLK periods
-// 0010 CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Defines a delay at the end of a write transaction to match the minimum time between consecutive transactions (tEHEL from ENx high to ENx low).
-// (BUSTRUN + 1) HCLK period = tEHELmin.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Defines the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Defines the duration of the address hold phase used in SRAMs, ROMs and asynchronous multiplexed NOR Flash accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration = 1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-// ...
-// 1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.
-// ADDSET: Address setup phase duration <1-15>
-// Defines the duration of the address setup phase in HCLK cycles used in SRAMs, ROMs and asynchronous NOR Flash accessed.
-// 0000: ADDSET phase duration = 0 × HCLK clock cycle
-// ...
-// 1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)
-// Note: In synchronous NOR Flash accesses, this value is don’t care.
-#define RTE_FSMC_BWTR4_ACCMOD 0
-#define RTE_FSMC_BWTR4_DATLAT 15
-#define RTE_FSMC_BWTR4_CLKDIV 15
-#define RTE_FSMC_BWTR4_BUSTURN 15
-#define RTE_FSMC_BWTR4_DATAST 255
-#define RTE_FSMC_BWTR4_ADDHLD 15
-#define RTE_FSMC_BWTR4_ADDSET 15
-//
-//
-
-//
-
-// NAND Flash Controller
-
-// FSMC_NCE2 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE2
-#define RTE_FSMC_NCE2 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR2_ECCPS 0
-#define RTE_FSMC_PCR2_TAR 0
-#define RTE_FSMC_PCR2_TCLR 0
-#define RTE_FSMC_PCR2_ECCEN 0
-#define RTE_FSMC_PCR2_PWID 0
-#define RTE_FSMC_PCR2_PTYP 1
-#define RTE_FSMC_PCR2_PBKEN 0
-#define RTE_FSMC_PCR2_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR2_IFEN 0
-#define RTE_FSMC_SR2_ILEN 0
-#define RTE_FSMC_SR2_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM2_MEMHIZ 255
-#define RTE_FSMC_PMEM2_MEMHOLD 255
-#define RTE_FSMC_PMEM2_MEMWAIT 255
-#define RTE_FSMC_PMEM2_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT2_ATTHIZ 255
-#define RTE_FSMC_PATT2_ATTHOLD 255
-#define RTE_FSMC_PATT2_ATTWAIT 255
-#define RTE_FSMC_PATT2_ATTSET 255
-
-//
-
-//
-
-// FSMC_NCE3 Chip Select
-// Configure NAND Device on Chip Select FSMC_NCE3
-#define RTE_FSMC_NCE3 0
-
-// NAND Flash Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <1=>NAND Flash
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: NAND Flash memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR3_ECCPS 0
-#define RTE_FSMC_PCR3_TAR 0
-#define RTE_FSMC_PCR3_TCLR 0
-#define RTE_FSMC_PCR3_ECCEN 0
-#define RTE_FSMC_PCR3_PWID 0
-#define RTE_FSMC_PCR3_PTYP 1
-#define RTE_FSMC_PCR3_PBKEN 0
-#define RTE_FSMC_PCR3_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR3_IFEN 0
-#define RTE_FSMC_SR3_ILEN 0
-#define RTE_FSMC_SR3_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM3_MEMHIZ 255
-#define RTE_FSMC_PMEM3_MEMHOLD 255
-#define RTE_FSMC_PMEM3_MEMWAIT 255
-#define RTE_FSMC_PMEM3_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT3_ATTHIZ 255
-#define RTE_FSMC_PATT3_ATTHOLD 255
-#define RTE_FSMC_PATT3_ATTWAIT 255
-#define RTE_FSMC_PATT3_ATTSET 255
-
-//
-
-//
-
-//
-
-// PC Card Controller
-
-// FSMC_NCE4_x Chip Select
-// Configure PC Card/CompactFlash Device on Chip Select FSMC_NCE4_1/FSMC_NCE4_2
-#define RTE_FSMC_NCE4 0
-
-// PC Card Control
-// ECCPS: ECC page size <0=> 256 bytes <1=> 512 bytes <2=> 1024 bytes <3=> 2048 bytes <4=> 4096 bytes <5=> 8192 bytes
-// Defines the page size for the extended ECC.
-// TAR: ALE to RE delay <0-15>
-// Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).
-// Time is: t_ar = (TAR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// TCLR: CLE to RE delay <0-15>
-// Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).
-// Time is t_clr = (TCLR + SET + 2) × THCLK where THCLK is the HCLK clock period
-// 0000: 1 HCLK cycle (default)
-// 1111: 16 HCLK cycles
-// Note: SET is MEMSET or ATTSET according to the addressed space.
-// ECCEN: ECC computation logic enable
-// PWID: Databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width.
-// PTYP: Memory type <0=>PC Card, CompactFlash, CF+ or PCMCIOA
-// Defines the type of device attached to the corresponding memory bank.
-// PBKEN: PC Card memory bank enable
-// Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus.
-// PWAITEN: Wait feature enable
-// Enables the Wait feature for the PC Card/NAND Flash memory bank.
-#define RTE_FSMC_PCR4_ECCPS 0
-#define RTE_FSMC_PCR4_TAR 0
-#define RTE_FSMC_PCR4_TCLR 0
-#define RTE_FSMC_PCR4_ECCEN 0
-#define RTE_FSMC_PCR4_PWID 0
-#define RTE_FSMC_PCR4_PTYP 0
-#define RTE_FSMC_PCR4_PBKEN 0
-#define RTE_FSMC_PCR4_PWAITEN 0
-
-//
-
-// Interrupt configuration
-// IFEN: Falling edge detection enable
-// ILEN: High-level detection enable
-// IREN: Rising edge detection enable
-#define RTE_FSMC_SR4_IFEN 0
-#define RTE_FSMC_SR4_ILEN 0
-#define RTE_FSMC_SR4_IREN 0
-
-//
-
-// Common memory space timing
-// MEMHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// MEMWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access to. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the Card deasserting NWAIT) (default value after reset)
-// MEMSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 2 HCLK cycles (for NAND Flash)
-// 1111 1111: 257 HCLK cycles (for NAND Flash) (default value after reset)
-#define RTE_FSMC_PMEM4_MEMHIZ 255
-#define RTE_FSMC_PMEM4_MEMHOLD 255
-#define RTE_FSMC_PMEM4_MEMWAIT 255
-#define RTE_FSMC_PMEM4_MEMSET 255
-
-//
-
-// Attribute memory space timing
-// ATTHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a NAND Flash write access.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// ATTWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE,
-// NOE), for NAND Flash read or write access. The duration for command assertion
-// is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value.
-// 0000 0000: reserved
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles (+ wait cycle introduced by the card deasserting NWAIT)
-// ATTSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up address before the command
-// assertion (NWE, NOE), for NAND Flash read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PATT4_ATTHIZ 255
-#define RTE_FSMC_PATT4_ATTHOLD 255
-#define RTE_FSMC_PATT4_ATTWAIT 255
-#define RTE_FSMC_PATT4_ATTSET 255
-
-//
-
-// I/O space timing
-// IOHIZ: Databus HiZ time <0-255>
-// Defines the number of HCLK clock cycles during which the databus is kept in HiZ after the
-// start of a PC Card write access. Only valid for write transaction.
-// 0000 0000: 0 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOHOLD: Hold time <1-255>
-// Defines the number of HCLK clock cycles to hold address (and data for write access) after
-// the command deassertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: reserved
-// 0000 0001: 1 HCLK cycle
-// 1111 1111: 255 HCLK cycles (default value after reset)
-// IOWAIT: Wait time <1-255>
-// Defines the minimum number of HCLK (+1) clock cycles to assert the command (SMNWE,
-// SMNOE), for PC Card read or write access. The duration for command assertion is
-// extended if the wait signal (NWAIT) is active (low) at the end of the
-// programmed value of HCLK.
-// 0000 0000: reserved, do not use this value
-// 0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)
-// 1111 1111: 256 HCLK cycles
-// IOSET: Setup time <0-255>
-// Defines the number of HCLK (+1) clock cycles to set up the address before the command
-// assertion (NWE, NOE), for PC Card read or write access.
-// 0000 0000: 1 HCLK cycle
-// 1111 1111: 256 HCLK cycles (default value after reset)
-#define RTE_FSMC_PIO4_IOHIZ 255
-#define RTE_FSMC_PIO4_IOHOLD 255
-#define RTE_FSMC_PIO4_IOWAIT 255
-#define RTE_FSMC_PIO4_IOSET 255
-
-//
-
-//
-
-//
-
-//
-
-
-#endif /* __RTE_DEVICE_H */
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/startup_stm32f2xx.s b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/startup_stm32f2xx.s
deleted file mode 100644
index c4e2ab9fa..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/startup_stm32f2xx.s
+++ /dev/null
@@ -1,419 +0,0 @@
-;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
-;* File Name : startup_stm32f2xx.s
-;* Author : MCD Application Team
-;* Version : V1.0.0
-;* Date : 18-April-2011
-;* Description : STM32F2xx devices vector table for MDK-ARM toolchain.
-;* This module performs:
-;* - Set the initial SP
-;* - Set the initial PC == Reset_Handler
-;* - Set the vector table entries with the exceptions ISR address
-;* - Branches to __main in the C library (which eventually
-;* calls main()).
-;* After Reset the CortexM3 processor is in Thread mode,
-;* priority is Privileged, and the Stack is set to Main.
-;* <<< Use Configuration Wizard in Context Menu >>>
-;*******************************************************************************
-; 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.
-;*******************************************************************************
-
-; Amount of memory (in bytes) allocated for Stack
-; Tailor this value to your application needs
-; Stack Configuration
-; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Stack_Size EQU 0x00002000
-
- AREA STACK, NOINIT, READWRITE, ALIGN=3
-Stack_Mem SPACE Stack_Size
-__initial_sp
-
-
-; Heap Configuration
-; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
-;
-
-Heap_Size EQU 0x00007000
-
- AREA HEAP, NOINIT, READWRITE, ALIGN=3
-__heap_base
-Heap_Mem SPACE Heap_Size
-__heap_limit
-
- PRESERVE8
- THUMB
-
-
-; Vector Table Mapped to Address 0 at Reset
- AREA RESET, DATA, READONLY
- EXPORT __Vectors
- EXPORT __Vectors_End
- EXPORT __Vectors_Size
-
-__Vectors DCD __initial_sp ; Top of Stack
- DCD Reset_Handler ; Reset Handler
- DCD NMI_Handler ; NMI Handler
- DCD HardFault_Handler ; Hard Fault Handler
- DCD MemManage_Handler ; MPU Fault Handler
- DCD BusFault_Handler ; Bus Fault Handler
- DCD UsageFault_Handler ; Usage Fault Handler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD SVC_Handler ; SVCall Handler
- DCD DebugMon_Handler ; Debug Monitor Handler
- DCD 0 ; Reserved
- DCD PendSV_Handler ; PendSV Handler
- DCD SysTick_Handler ; SysTick Handler
-
- ; External Interrupts
- DCD WWDG_IRQHandler ; Window WatchDog
- DCD PVD_IRQHandler ; PVD through EXTI Line detection
- DCD TAMP_STAMP_IRQHandler ; Tamper and TimeStamps through the EXTI line
- DCD RTC_WKUP_IRQHandler ; RTC Wakeup through the EXTI line
- DCD FLASH_IRQHandler ; FLASH
- DCD RCC_IRQHandler ; RCC
- DCD EXTI0_IRQHandler ; EXTI Line0
- DCD EXTI1_IRQHandler ; EXTI Line1
- DCD EXTI2_IRQHandler ; EXTI Line2
- DCD EXTI3_IRQHandler ; EXTI Line3
- DCD EXTI4_IRQHandler ; EXTI Line4
- DCD DMA1_Stream0_IRQHandler ; DMA1 Stream 0
- DCD DMA1_Stream1_IRQHandler ; DMA1 Stream 1
- DCD DMA1_Stream2_IRQHandler ; DMA1 Stream 2
- DCD DMA1_Stream3_IRQHandler ; DMA1 Stream 3
- DCD DMA1_Stream4_IRQHandler ; DMA1 Stream 4
- DCD DMA1_Stream5_IRQHandler ; DMA1 Stream 5
- DCD DMA1_Stream6_IRQHandler ; DMA1 Stream 6
- DCD ADC_IRQHandler ; ADC1, ADC2 and ADC3s
- DCD CAN1_TX_IRQHandler ; CAN1 TX
- DCD CAN1_RX0_IRQHandler ; CAN1 RX0
- DCD CAN1_RX1_IRQHandler ; CAN1 RX1
- DCD CAN1_SCE_IRQHandler ; CAN1 SCE
- DCD EXTI9_5_IRQHandler ; External Line[9:5]s
- DCD TIM1_BRK_TIM9_IRQHandler ; TIM1 Break and TIM9
- DCD TIM1_UP_TIM10_IRQHandler ; TIM1 Update and TIM10
- DCD TIM1_TRG_COM_TIM11_IRQHandler ; TIM1 Trigger and Commutation and TIM11
- DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
- DCD TIM2_IRQHandler ; TIM2
- DCD TIM3_IRQHandler ; TIM3
- DCD TIM4_IRQHandler ; TIM4
- DCD I2C1_EV_IRQHandler ; I2C1 Event
- DCD I2C1_ER_IRQHandler ; I2C1 Error
- DCD I2C2_EV_IRQHandler ; I2C2 Event
- DCD I2C2_ER_IRQHandler ; I2C2 Error
- DCD SPI1_IRQHandler ; SPI1
- DCD SPI2_IRQHandler ; SPI2
- DCD USART1_IRQHandler ; USART1
- DCD USART2_IRQHandler ; USART2
- DCD USART3_IRQHandler ; USART3
- DCD EXTI15_10_IRQHandler ; External Line[15:10]s
- DCD RTC_Alarm_IRQHandler ; RTC Alarm (A and B) through EXTI Line
- DCD OTG_FS_WKUP_IRQHandler ; USB OTG FS Wakeup through EXTI line
- DCD TIM8_BRK_TIM12_IRQHandler ; TIM8 Break and TIM12
- DCD TIM8_UP_TIM13_IRQHandler ; TIM8 Update and TIM13
- DCD TIM8_TRG_COM_TIM14_IRQHandler ; TIM8 Trigger and Commutation and TIM14
- DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare
- DCD DMA1_Stream7_IRQHandler ; DMA1 Stream7
- DCD FSMC_IRQHandler ; FSMC
- DCD SDIO_IRQHandler ; SDIO
- DCD TIM5_IRQHandler ; TIM5
- DCD SPI3_IRQHandler ; SPI3
- DCD UART4_IRQHandler ; UART4
- DCD UART5_IRQHandler ; UART5
- DCD TIM6_DAC_IRQHandler ; TIM6 and DAC1&2 underrun errors
- DCD TIM7_IRQHandler ; TIM7
- DCD DMA2_Stream0_IRQHandler ; DMA2 Stream 0
- DCD DMA2_Stream1_IRQHandler ; DMA2 Stream 1
- DCD DMA2_Stream2_IRQHandler ; DMA2 Stream 2
- DCD DMA2_Stream3_IRQHandler ; DMA2 Stream 3
- DCD DMA2_Stream4_IRQHandler ; DMA2 Stream 4
- DCD ETH_IRQHandler ; Ethernet
- DCD ETH_WKUP_IRQHandler ; Ethernet Wakeup through EXTI line
- DCD CAN2_TX_IRQHandler ; CAN2 TX
- DCD CAN2_RX0_IRQHandler ; CAN2 RX0
- DCD CAN2_RX1_IRQHandler ; CAN2 RX1
- DCD CAN2_SCE_IRQHandler ; CAN2 SCE
- DCD OTG_FS_IRQHandler ; USB OTG FS
- DCD DMA2_Stream5_IRQHandler ; DMA2 Stream 5
- DCD DMA2_Stream6_IRQHandler ; DMA2 Stream 6
- DCD DMA2_Stream7_IRQHandler ; DMA2 Stream 7
- DCD USART6_IRQHandler ; USART6
- DCD I2C3_EV_IRQHandler ; I2C3 event
- DCD I2C3_ER_IRQHandler ; I2C3 error
- DCD OTG_HS_EP1_OUT_IRQHandler ; USB OTG HS End Point 1 Out
- DCD OTG_HS_EP1_IN_IRQHandler ; USB OTG HS End Point 1 In
- DCD OTG_HS_WKUP_IRQHandler ; USB OTG HS Wakeup through EXTI
- DCD OTG_HS_IRQHandler ; USB OTG HS
- DCD DCMI_IRQHandler ; DCMI
- DCD CRYP_IRQHandler ; CRYP crypto
- DCD HASH_RNG_IRQHandler ; Hash and Rng
-__Vectors_End
-
-__Vectors_Size EQU __Vectors_End - __Vectors
-
- AREA |.text|, CODE, READONLY
-
-; Reset handler
-Reset_Handler PROC
- EXPORT Reset_Handler [WEAK]
- IMPORT SystemInit
- IMPORT __main
- LDR R0, =SystemInit
- BLX R0
- LDR R0, =__main
- BX R0
- ENDP
-
-; Dummy Exception Handlers (infinite loops which can be modified)
-
-NMI_Handler PROC
- EXPORT NMI_Handler [WEAK]
- B .
- ENDP
-HardFault_Handler\
- PROC
- EXPORT HardFault_Handler [WEAK]
- B .
- ENDP
-MemManage_Handler\
- PROC
- EXPORT MemManage_Handler [WEAK]
- B .
- ENDP
-BusFault_Handler\
- PROC
- EXPORT BusFault_Handler [WEAK]
- B .
- ENDP
-UsageFault_Handler\
- PROC
- EXPORT UsageFault_Handler [WEAK]
- B .
- ENDP
-SVC_Handler PROC
- EXPORT SVC_Handler [WEAK]
- B .
- ENDP
-DebugMon_Handler\
- PROC
- EXPORT DebugMon_Handler [WEAK]
- B .
- ENDP
-PendSV_Handler PROC
- EXPORT PendSV_Handler [WEAK]
- B .
- ENDP
-SysTick_Handler PROC
- EXPORT SysTick_Handler [WEAK]
- B .
- ENDP
-
-Default_Handler PROC
-
- EXPORT WWDG_IRQHandler [WEAK]
- EXPORT PVD_IRQHandler [WEAK]
- EXPORT TAMP_STAMP_IRQHandler [WEAK]
- EXPORT RTC_WKUP_IRQHandler [WEAK]
- EXPORT FLASH_IRQHandler [WEAK]
- EXPORT RCC_IRQHandler [WEAK]
- EXPORT EXTI0_IRQHandler [WEAK]
- EXPORT EXTI1_IRQHandler [WEAK]
- EXPORT EXTI2_IRQHandler [WEAK]
- EXPORT EXTI3_IRQHandler [WEAK]
- EXPORT EXTI4_IRQHandler [WEAK]
- EXPORT DMA1_Stream0_IRQHandler [WEAK]
- EXPORT DMA1_Stream1_IRQHandler [WEAK]
- EXPORT DMA1_Stream2_IRQHandler [WEAK]
- EXPORT DMA1_Stream3_IRQHandler [WEAK]
- EXPORT DMA1_Stream4_IRQHandler [WEAK]
- EXPORT DMA1_Stream5_IRQHandler [WEAK]
- EXPORT DMA1_Stream6_IRQHandler [WEAK]
- EXPORT ADC_IRQHandler [WEAK]
- EXPORT CAN1_TX_IRQHandler [WEAK]
- EXPORT CAN1_RX0_IRQHandler [WEAK]
- EXPORT CAN1_RX1_IRQHandler [WEAK]
- EXPORT CAN1_SCE_IRQHandler [WEAK]
- EXPORT EXTI9_5_IRQHandler [WEAK]
- EXPORT TIM1_BRK_TIM9_IRQHandler [WEAK]
- EXPORT TIM1_UP_TIM10_IRQHandler [WEAK]
- EXPORT TIM1_TRG_COM_TIM11_IRQHandler [WEAK]
- EXPORT TIM1_CC_IRQHandler [WEAK]
- EXPORT TIM2_IRQHandler [WEAK]
- EXPORT TIM3_IRQHandler [WEAK]
- EXPORT TIM4_IRQHandler [WEAK]
- EXPORT I2C1_EV_IRQHandler [WEAK]
- EXPORT I2C1_ER_IRQHandler [WEAK]
- EXPORT I2C2_EV_IRQHandler [WEAK]
- EXPORT I2C2_ER_IRQHandler [WEAK]
- EXPORT SPI1_IRQHandler [WEAK]
- EXPORT SPI2_IRQHandler [WEAK]
- EXPORT USART1_IRQHandler [WEAK]
- EXPORT USART2_IRQHandler [WEAK]
- EXPORT USART3_IRQHandler [WEAK]
- EXPORT EXTI15_10_IRQHandler [WEAK]
- EXPORT RTC_Alarm_IRQHandler [WEAK]
- EXPORT OTG_FS_WKUP_IRQHandler [WEAK]
- EXPORT TIM8_BRK_TIM12_IRQHandler [WEAK]
- EXPORT TIM8_UP_TIM13_IRQHandler [WEAK]
- EXPORT TIM8_TRG_COM_TIM14_IRQHandler [WEAK]
- EXPORT TIM8_CC_IRQHandler [WEAK]
- EXPORT DMA1_Stream7_IRQHandler [WEAK]
- EXPORT FSMC_IRQHandler [WEAK]
- EXPORT SDIO_IRQHandler [WEAK]
- EXPORT TIM5_IRQHandler [WEAK]
- EXPORT SPI3_IRQHandler [WEAK]
- EXPORT UART4_IRQHandler [WEAK]
- EXPORT UART5_IRQHandler [WEAK]
- EXPORT TIM6_DAC_IRQHandler [WEAK]
- EXPORT TIM7_IRQHandler [WEAK]
- EXPORT DMA2_Stream0_IRQHandler [WEAK]
- EXPORT DMA2_Stream1_IRQHandler [WEAK]
- EXPORT DMA2_Stream2_IRQHandler [WEAK]
- EXPORT DMA2_Stream3_IRQHandler [WEAK]
- EXPORT DMA2_Stream4_IRQHandler [WEAK]
- EXPORT ETH_IRQHandler [WEAK]
- EXPORT ETH_WKUP_IRQHandler [WEAK]
- EXPORT CAN2_TX_IRQHandler [WEAK]
- EXPORT CAN2_RX0_IRQHandler [WEAK]
- EXPORT CAN2_RX1_IRQHandler [WEAK]
- EXPORT CAN2_SCE_IRQHandler [WEAK]
- EXPORT OTG_FS_IRQHandler [WEAK]
- EXPORT DMA2_Stream5_IRQHandler [WEAK]
- EXPORT DMA2_Stream6_IRQHandler [WEAK]
- EXPORT DMA2_Stream7_IRQHandler [WEAK]
- EXPORT USART6_IRQHandler [WEAK]
- EXPORT I2C3_EV_IRQHandler [WEAK]
- EXPORT I2C3_ER_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_OUT_IRQHandler [WEAK]
- EXPORT OTG_HS_EP1_IN_IRQHandler [WEAK]
- EXPORT OTG_HS_WKUP_IRQHandler [WEAK]
- EXPORT OTG_HS_IRQHandler [WEAK]
- EXPORT DCMI_IRQHandler [WEAK]
- EXPORT CRYP_IRQHandler [WEAK]
- EXPORT HASH_RNG_IRQHandler [WEAK]
-
-WWDG_IRQHandler
-PVD_IRQHandler
-TAMP_STAMP_IRQHandler
-RTC_WKUP_IRQHandler
-FLASH_IRQHandler
-RCC_IRQHandler
-EXTI0_IRQHandler
-EXTI1_IRQHandler
-EXTI2_IRQHandler
-EXTI3_IRQHandler
-EXTI4_IRQHandler
-DMA1_Stream0_IRQHandler
-DMA1_Stream1_IRQHandler
-DMA1_Stream2_IRQHandler
-DMA1_Stream3_IRQHandler
-DMA1_Stream4_IRQHandler
-DMA1_Stream5_IRQHandler
-DMA1_Stream6_IRQHandler
-ADC_IRQHandler
-CAN1_TX_IRQHandler
-CAN1_RX0_IRQHandler
-CAN1_RX1_IRQHandler
-CAN1_SCE_IRQHandler
-EXTI9_5_IRQHandler
-TIM1_BRK_TIM9_IRQHandler
-TIM1_UP_TIM10_IRQHandler
-TIM1_TRG_COM_TIM11_IRQHandler
-TIM1_CC_IRQHandler
-TIM2_IRQHandler
-TIM3_IRQHandler
-TIM4_IRQHandler
-I2C1_EV_IRQHandler
-I2C1_ER_IRQHandler
-I2C2_EV_IRQHandler
-I2C2_ER_IRQHandler
-SPI1_IRQHandler
-SPI2_IRQHandler
-USART1_IRQHandler
-USART2_IRQHandler
-USART3_IRQHandler
-EXTI15_10_IRQHandler
-RTC_Alarm_IRQHandler
-OTG_FS_WKUP_IRQHandler
-TIM8_BRK_TIM12_IRQHandler
-TIM8_UP_TIM13_IRQHandler
-TIM8_TRG_COM_TIM14_IRQHandler
-TIM8_CC_IRQHandler
-DMA1_Stream7_IRQHandler
-FSMC_IRQHandler
-SDIO_IRQHandler
-TIM5_IRQHandler
-SPI3_IRQHandler
-UART4_IRQHandler
-UART5_IRQHandler
-TIM6_DAC_IRQHandler
-TIM7_IRQHandler
-DMA2_Stream0_IRQHandler
-DMA2_Stream1_IRQHandler
-DMA2_Stream2_IRQHandler
-DMA2_Stream3_IRQHandler
-DMA2_Stream4_IRQHandler
-ETH_IRQHandler
-ETH_WKUP_IRQHandler
-CAN2_TX_IRQHandler
-CAN2_RX0_IRQHandler
-CAN2_RX1_IRQHandler
-CAN2_SCE_IRQHandler
-OTG_FS_IRQHandler
-DMA2_Stream5_IRQHandler
-DMA2_Stream6_IRQHandler
-DMA2_Stream7_IRQHandler
-USART6_IRQHandler
-I2C3_EV_IRQHandler
-I2C3_ER_IRQHandler
-OTG_HS_EP1_OUT_IRQHandler
-OTG_HS_EP1_IN_IRQHandler
-OTG_HS_WKUP_IRQHandler
-OTG_HS_IRQHandler
-DCMI_IRQHandler
-CRYP_IRQHandler
-HASH_RNG_IRQHandler
-
- B .
-
- ENDP
-
- ALIGN
-
-;*******************************************************************************
-; User Stack and Heap initialization
-;*******************************************************************************
- IF :DEF:__MICROLIB
-
- EXPORT __initial_sp
- EXPORT __heap_base
- EXPORT __heap_limit
-
- ELSE
-
- IMPORT __use_two_region_memory
- EXPORT __user_initial_stackheap
-
-__user_initial_stackheap
-
- LDR R0, = Heap_Mem
- LDR R1, =(Stack_Mem + Stack_Size)
- LDR R2, = (Heap_Mem + Heap_Size)
- LDR R3, = Stack_Mem
- BX LR
-
- ALIGN
-
- ENDIF
-
- END
-
-;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/system_stm32f2xx.c b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/system_stm32f2xx.c
deleted file mode 100644
index da0e189c8..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Device/STM32F207IG/system_stm32f2xx.c
+++ /dev/null
@@ -1,536 +0,0 @@
-/**
- ******************************************************************************
- * @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();
-
- /* Configure the Vector Table location add offset address ------------------*/
-#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
-}
-
-/**
- * @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/IDE/MDK5-ARM/Projects/EchoServer/RTE/File_System/FS_Config.c b/IDE/MDK5-ARM/Projects/EchoServer/RTE/File_System/FS_Config.c
deleted file mode 100644
index 78564b080..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/File_System/FS_Config.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config.c
- * Purpose: File System Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// File System
-// Define File System global parameters
-
-// Number of open files <4-16>
-// Define number of files that can be
-// opened at the same time.
-// Default: 8
-#define NUM_FILES 8
-
-// FAT Name Cache Size <0-1000000>
-// Define number of cached FAT file or directory names.
-// 48 bytes of RAM is required for each cached name.
-#define FAT_NAME_CACHE_SIZE 0
-
-// Relocate FAT Name Cache Buffer
-// Locate Cache Buffer at a specific address.
-#define FAT_NAME_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Define the Cache buffer base address.
-#define FAT_NAME_CACHE_ADDR 0x60000000
-
-//
-
-//
-
-#include "..\RTE_Components.h"
-
-#ifdef RTE_FileSystem_Drive_RAM
-#include "FS_Config_RAM.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NOR_0
-#include "FS_Config_NOR_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NOR_1
-#include "FS_Config_NOR_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_NAND_0
-#include "FS_Config_NAND_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_NAND_1
-#include "FS_Config_NAND_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_MC_0
-#include "FS_Config_MC_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_MC_1
-#include "FS_Config_MC_1.h"
-#endif
-
-#ifdef RTE_FileSystem_Drive_USB_0
-#include "FS_Config_USB_0.h"
-#endif
-#ifdef RTE_FileSystem_Drive_USB_1
-#include "FS_Config_USB_1.h"
-#endif
-
-#include "fs_config.h"
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/File_System/FS_Config_MC_0.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/File_System/FS_Config_MC_0.h
deleted file mode 100644
index 0b1c6d3a7..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/File_System/FS_Config_MC_0.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::File System:Drive
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: FS_Config_MC_0.h
- * Purpose: File System Configuration for Memory Card Drive
- * Rev.: V5.01
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Memory Card Drive 0
-// Configuration for SD/SDHC/MMC Memory Card assigned to drive letter "M0:"
-#define MC0_ENABLE 1
-
-// Connect to hardware via Driver_MCI# <0-255>
-// Select driver control block for hardware interface
-#define MC0_MCI_DRIVER 0
-
-// Connect to hardware via Driver_SPI# <0-255>
-// Select driver control block for hardware interface when in SPI mode
-#define MC0_SPI_DRIVER 0
-
-// Memory Card Interface Mode <0=>Native <1=>SPI
-// Native uses a SD Bus with up to 8 data lines, CLK, and CMD
-// SPI uses 2 data lines (MOSI and MISO), SCLK and CS
-// When using SPI both Driver_SPI# and Driver_MCI# must be specified
-// since the MCI driver provides the control interface lines.
-#define MC0_SPI 0
-
-// Drive Cache Size <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB
-// <8=>8 KB <16=>16 KB <32=>32 KB
-// Drive Cache stores data sectors and may be increased to speed-up
-// file read/write operations on this drive (default: 4 KB)
-#define MC0_CACHE_SIZE 4
-
-// Locate Drive Cache and Drive Buffer
-// Some microcontrollers support DMA only in specific memory areas and
-// require to locate the drive buffers at a fixed address.
-#define MC0_CACHE_RELOC 0
-
-// Base address <0x0000-0xFFFFFE00:0x200>
-// Set buffer base address to RAM areas that support DMA with the drive.
-#define MC0_CACHE_ADDR 0x7FD00000
-
-//
-
-// Use FAT Journal
-// Protect File Allocation Table and Directory Entries for
-// fail-safe operation.
-#define MC0_FAT_JOURNAL 0
-
-// Default Drive "M0:"
-// Use this drive when no drive letter is specified.
-#define MC0_DEFAULT_DRIVE 1
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config.c b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config.c
deleted file mode 100644
index 6b9dc8e00..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config.c
+++ /dev/null
@@ -1,153 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config.c
- * Purpose: Network Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// System Definitions
-// Global Network System definitions
-// Local Host Name
-// This is the name under which embedded host can be
-// accessed on a local area network.
-// Default: "my_host"
-#define NET_HOST_NAME "my_host"
-
-// Memory Pool size <1536-262144:4><#/4>
-// This is the size of a memory pool in bytes. Buffers for
-// Network packets are allocated from this memory pool.
-// Default: 12000 bytes
-#define NET_MEM_SIZE 3000
-
-//
-
-#include "..\RTE_Components.h"
-
-#ifdef RTE_Network_Interface_ETH_0
-#include "Net_Config_ETH_0.h"
-#endif
-#ifdef RTE_Network_Interface_ETH_1
-#include "Net_Config_ETH_1.h"
-#endif
-
-#ifdef RTE_Network_Interface_PPP_0
-#include "Net_Config_PPP_0.h"
-#endif
-#ifdef RTE_Network_Interface_PPP_1
-#include "Net_Config_PPP_1.h"
-#endif
-
-#ifdef RTE_Network_Interface_SLIP_0
-#include "Net_Config_SLIP_0.h"
-#endif
-#ifdef RTE_Network_Interface_SLIP_1
-#include "Net_Config_SLIP_1.h"
-#endif
-
-#ifdef RTE_Network_Socket_UDP
-#include "Net_Config_UDP.h"
-#endif
-#ifdef RTE_Network_Socket_TCP
-#include "Net_Config_TCP.h"
-#endif
-#ifdef RTE_Network_Socket_BSD
-#include "Net_Config_BSD.h"
-#endif
-
-#ifdef RTE_Network_Web_Server_RO
-#include "Net_Config_HTTP_Server.h"
-#endif
-#ifdef RTE_Network_Web_Server_FS
-#include "Net_Config_HTTP_Server.h"
-#endif
-
-#ifdef RTE_Network_Telnet_Server
-#include "Net_Config_Telnet_Server.h"
-#endif
-
-#ifdef RTE_Network_TFTP_Server
-#include "Net_Config_TFTP_Server.h"
-#endif
-#ifdef RTE_Network_TFTP_Client
-#include "Net_Config_TFTP_Client.h"
-#endif
-
-#ifdef RTE_Network_FTP_Server
-#include "Net_Config_FTP_Server.h"
-#endif
-#ifdef RTE_Network_FTP_Client
-#include "Net_Config_FTP_Client.h"
-#endif
-
-#ifdef RTE_Network_DNS_Client
-#include "Net_Config_DNS_Client.h"
-#endif
-
-#ifdef RTE_Network_SMTP_Client
-#include "Net_Config_SMTP_Client.h"
-#endif
-
-#ifdef RTE_Network_SNMP_Agent
-#include "Net_Config_SNMP_Agent.h"
-#endif
-
-#ifdef RTE_Network_SNTP_Client
-#include "Net_Config_SNTP_Client.h"
-#endif
-
-#include "net_config.h"
-
-/**
-\addtogroup net_genFunc
-@{
-*/
-/**
- \fn void net_sys_error (ERROR_CODE error)
- \ingroup net_cores
- \brief Network system error handler.
-*/
-void net_sys_error (ERROR_CODE error) {
- /* This function is called when a fatal error is encountered. */
- /* The normal program execution is not possible anymore. */
-
- switch (error) {
- case ERR_MEM_ALLOC:
- /* Out of memory */
- break;
-
- case ERR_MEM_FREE:
- /* Trying to release non existing memory block */
- break;
-
- case ERR_MEM_CORRUPT:
- /* Memory Link pointer Corrupted */
- /* More data written than the size of allocated mem block */
- break;
-
- case ERR_MEM_LOCK:
- /* Locked Memory management function (alloc/free) re-entered */
- break;
-
- case ERR_UDP_ALLOC:
- /* Out of UDP Sockets */
- break;
-
- case ERR_TCP_ALLOC:
- /* Out of TCP Sockets */
- break;
-
- case ERR_TCP_STATE:
- /* TCP State machine in undefined state */
- break;
- }
-
- /* End-less loop */
- while (1);
-}
-/**
-@}
-*/
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_BSD.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_BSD.h
deleted file mode 100644
index 4166a0a2d..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_BSD.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_BSD.h
- * Purpose: Network Configuration BSD Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Berkley (BSD) Sockets
-#define BSD_ENABLE 1
-
-// Number of BSD Sockets <1-20>
-// Number of available Berkeley Sockets
-// Default: 2
-#define BSD_NUM_SOCKS 15
-
-// Number of Streaming Server Sockets <0-20>
-// Defines a number of Streaming (TCP) Server sockets,
-// that listen for an incoming connection from the client.
-// Default: 1
-#define BSD_SERVER_SOCKS 1
-
-// Receive Timeout in seconds <0-600>
-// A timeout for socket receive in blocking mode.
-// Timeout value of 0 means indefinite timeout.
-// Default: 20
-#define BSD_RECEIVE_TOUT 20
-
-// Hostname Resolver
-// Enable or disable Berkeley style hostname resolver.
-#define BSD_HOSTNAME_ENABLE 0
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_DNS_Client.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_DNS_Client.h
deleted file mode 100644
index d30b71807..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_DNS_Client.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Service
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_DNS_Client.h
- * Purpose: Network Configuration DNS Client
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// DNS Client
-#define DNS_CLIENT_ENABLE 1
-
-// Cache Table size <5-100>
-// Number of cached DNS host names/IP addresses
-// Default: 20
-#define DNS_CLIENT_TAB_SIZE 20
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_ETH_0.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_ETH_0.h
deleted file mode 100644
index 546eb08c9..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_ETH_0.h
+++ /dev/null
@@ -1,222 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Interface
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_ETH_0.h
- * Purpose: Network Configuration ETH Interface
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Ethernet Network Interface 0
-#define ETH0_ENABLE 1
-
-// Connect to hardware via Driver_ETH# <0-255>
-// Select driver control block for MAC and PHY interface
-#define ETH0_DRIVER 0
-
-// MAC Address
-// Local Ethernet MAC Address
-// Value FF:FF:FF:FF:FF:FF is not allowed.
-// It is an ethernet Broadcast MAC address.
-// Address byte 1 <0x00-0xff:2>
-// LSB is an ethernet Multicast bit.
-// Must be 0 for local MAC address.
-// Default: 0x1E
-#define ETH0_MAC1 0x1E
-
-// Address byte 2 <0x00-0xff>
-// Default: 0x30
-#define ETH0_MAC2 0x30
-
-// Address byte 3 <0x00-0xff>
-// Default: 0x6C
-#define ETH0_MAC3 0x6C
-
-// Address byte 4 <0x00-0xff>
-// Default: 0xA2
-#define ETH0_MAC4 0xA2
-
-// Address byte 5 <0x00-0xff>
-// Default: 0x45
-#define ETH0_MAC5 0x45
-
-// Address byte 6 <0x00-0xff>
-// Default: 0x5E
-#define ETH0_MAC6 0x5E
-//
-
-// IP Address
-// Local Static IP Address
-// Value 255.255.255.255 is not allowed.
-// It is a Broadcast IP address.
-// Address byte 1 <0-255>
-// Default: 192
-#define ETH0_IP1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define ETH0_IP2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define ETH0_IP3 11
-
-// Address byte 4 <0-255>
-// Default: 100
-#define ETH0_IP4 101
-//
-
-// Subnet mask
-// Local Subnet mask
-// Mask byte 1 <0-255>
-// Default: 255
-#define ETH0_MASK1 255
-
-// Mask byte 2 <0-255>
-// Default: 255
-#define ETH0_MASK2 255
-
-// Mask byte 3 <0-255>
-// Default: 255
-#define ETH0_MASK3 255
-
-// Mask byte 4 <0-255>
-// Default: 0
-#define ETH0_MASK4 0
-//
-
-// Default Gateway
-// Default Gateway IP Address
-// Address byte 1 <0-255>
-// Default: 192
-#define ETH0_GW1 192
-
-// Address byte 2 <0-255>
-// Default: 168
-#define ETH0_GW2 168
-
-// Address byte 3 <0-255>
-// Default: 0
-#define ETH0_GW3 11
-
-// Address byte 4 <0-255>
-// Default: 254
-#define ETH0_GW4 1
-//
-
-// Primary DNS Server
-// Primary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define ETH0_PRI_DNS1 192
-
-// Address byte 2 <0-255>
-// Default: 25
-#define ETH0_PRI_DNS2 168
-
-// Address byte 3 <0-255>
-// Default: 2
-#define ETH0_PRI_DNS3 11
-
-// Address byte 4 <0-255>
-// Default: 129
-#define ETH0_PRI_DNS4 1
-//
-
-// Secondary DNS Server
-// Secondary DNS Server IP Address
-// Address byte 1 <0-255>
-// Default: 194
-#define ETH0_SEC_DNS1 194
-
-// Address byte 2 <0-255>
-// Default: 25
-#define ETH0_SEC_DNS2 25
-
-// Address byte 3 <0-255>
-// Default: 2
-#define ETH0_SEC_DNS3 2
-
-// Address byte 4 <0-255>
-// Default: 130
-#define ETH0_SEC_DNS4 130
-//
-
-// ARP Definitions
-// Address Resolution Protocol Definitions
-// Cache Table size <5-100>
-// Number of cached hardware/IP addresses
-// Default: 10
-#define ETH0_ARP_TAB_SIZE 10
-
-// Cache Timeout in seconds <5-255>
-// A timeout for a cached hardware/IP addresses
-// Default: 150
-#define ETH0_ARP_CACHE_TOUT 150
-
-// Number of Retries <0-20>
-// Number of Retries to resolve an IP address
-// before ARP module gives up
-// Default: 4
-#define ETH0_ARP_MAX_RETRY 4
-
-// Resend Timeout in seconds <1-10>
-// A timeout to resend the ARP Request
-// Default: 2
-#define ETH0_ARP_RESEND_TOUT 2
-
-// Send Notification on Address changes
-// When this option is enabled, the embedded host
-// will send a Gratuitous ARP notification at startup,
-// or when the device IP address has changed.
-// Default: Disabled
-#define ETH0_ARP_NOTIFY 0
-//
-
-// IGMP Group Management
-// Enable or disable Internet Group Management Protocol
-#define ETH0_IGMP_ENABLE 0
-
-// Membership Table size <2-50>
-// Number of Groups this host can join
-// Default: 5
-#define ETH0_IGMP_TAB_SIZE 5
-//
-
-// NetBIOS Name Service
-// When this option is enabled, the embedded host can be
-// accessed by his name on the local LAN using NBNS protocol.
-// You need to modify also the number of UDP Sockets,
-// because NBNS protocol uses one UDP socket to run.
-#define ETH0_NBNS_ENABLE 1
-
-// Dynamic Host Configuration
-// When this option is enabled, local IP address, Net Mask
-// and Default Gateway are obtained automatically from
-// the DHCP Server on local LAN.
-// You need to modify also the number of UDP Sockets,
-// because DHCP protocol uses one UDP socket to run.
-#define ETH0_DHCP_ENABLE 0
-
-// Vendor Class Identifier
-// This value is optional. If specified, it is added
-// to DHCP request message, identifying vendor type.
-// Default: ""
-#define ETH0_DHCP_VCID ""
-
-// Bootfile Name
-// This value is optional. If enabled, the Bootfile Name
-// (option 67) is also requested from DHCP server.
-// Default: disabled
-#define ETH0_DHCP_BOOTFILE 0
-
-// NTP Servers
-// This value is optional. If enabled, a list of NTP Servers
-// (option 42) is also requested from DHCP server.
-// Default: disabled
-#define ETH0_DHCP_NTP_SERVERS 0
-//
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_TCP.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_TCP.h
deleted file mode 100644
index 9d5b419e4..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_TCP.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_TCP.h
- * Purpose: Network Configuration TCP Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// TCP Sockets
-#define TCP_ENABLE 1
-
-// Number of TCP Sockets <1-20>
-// Number of available TCP sockets
-// Default: 5
-#define TCP_NUM_SOCKS 15
-
-// Number of Retries <0-20>
-// How many times TCP module will try to retransmit data
-// before giving up. Increase this value for high-latency
-// and low_throughput networks.
-// Default: 5
-#define TCP_MAX_RETRY 5
-
-// Retry Timeout in seconds <1-10>
-// If data frame not acknowledged within this time frame,
-// TCP module will try to resend the data again.
-// Default: 4
-#define TCP_RETRY_TOUT 4
-
-// Default Connect Timeout in seconds <1-600>
-// Default TCP Socket Keep Alive timeout. When it expires
-// with no TCP data frame send, TCP Connection is closed.
-// Default: 120
-#define TCP_DEFAULT_TOUT 120
-
-// Maximum Segment Size <536-1460>
-// The Maximum Segment Size specifies the maximum
-// number of bytes in the TCP segment's Data field.
-// Default: 1460
-#define TCP_MAX_SEG_SIZE 1460
-
-// Receive Window Size <536-65535>
-// Receive Window Size specifies the size of data,
-// that the socket is able to buffer in flow-control mode.
-// Default: 4380
-#define TCP_RECEIVE_WIN_SIZE 4380
-
-//
-
-// TCP Initial Retransmit period in seconds
-#define TCP_INITIAL_RETRY_TOUT 1
-
-// TCP SYN frame retransmit period in seconds
-#define TCP_SYN_RETRY_TOUT 2
-
-// Number of retries to establish a connection
-#define TCP_CONNECT_RETRY 7
-
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_UDP.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_UDP.h
deleted file mode 100644
index 113f314a9..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Config_UDP.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network:Socket
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Config_UDP.h
- * Purpose: Network Configuration UDP Sockets
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// UDP Sockets
-#define UDP_ENABLE 1
-
-// Number of UDP Sockets <1-20>
-// Number of available UDP sockets
-// Default: 5
-#define UDP_NUM_SOCKS 20
-
-//
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Debug.c b/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Debug.c
deleted file mode 100644
index 735089a40..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/Network/Net_Debug.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/*------------------------------------------------------------------------------
- * MDK Middleware - Component ::Network
- * Copyright (c) 2004-2013 ARM Germany GmbH. All rights reserved.
- *------------------------------------------------------------------------------
- * Name: Net_Debug.c
- * Purpose: Network Debug Configuration
- * Rev.: V5.00
- *----------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-// Print Time Stamp
-// Enable printing the time-info in debug messages
-#define DBG_TIME 1
-
-// TCPnet Debug Definitions
-// Memory Management Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Dynamic Memory debug messages
-#define DBG_MEM 1
-
-// Ethernet Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Ethernet debug messages
-#define DBG_ETH 0
-
-// PPP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off PPP debug messages
-#define DBG_PPP 0
-
-// SLIP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off SLIP debug messages
-#define DBG_SLIP 0
-
-// ARP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off ARP debug messages
-#define DBG_ARP 0
-
-// IP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off IP debug messages
-#define DBG_IP 1
-
-// ICMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off ICMP debug messages
-#define DBG_ICMP 1
-
-// IGMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off IGMP debug messages
-#define DBG_IGMP 1
-
-// UDP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off UDP debug messages
-#define DBG_UDP 1
-
-// TCP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TCP debug messages
-#define DBG_TCP 1
-
-// NBNS Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off NetBIOS Name Service debug messages
-#define DBG_NBNS 1
-
-// DHCP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Dynamic Host Configuration debug messages
-#define DBG_DHCP 1
-
-// DNS Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Domain Name Service debug messages
-#define DBG_DNS 1
-
-// SNMP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Simple Network Management debug messages
-#define DBG_SNMP 1
-
-// SNTP Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Simple Network Time debug messages
-#define DBG_SNTP 1
-
-// BSD Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off BSD Interface debug messages
-#define DBG_BSD 1
-//
-
-// Application Debug Definitions
-// HTTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Web Server debug messages
-#define DBG_HTTP_SERVER 1
-
-// FTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off FTP Server debug messages
-#define DBG_FTP_SERVER 1
-
-// FTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off FTP Client debug messages
-#define DBG_FTP_CLIENT 1
-
-// Telnet Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off Telnet Server debug messages
-#define DBG_TELNET_SERVER 1
-
-// TFTP Server Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TFTP Server debug messages
-#define DBG_TFTP_SERVER 1
-
-// TFTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off TFTP Client debug messages
-#define DBG_TFTP_CLIENT 1
-
-// SMTP Client Debug <0=> Off <1=> Errors only <2=> Full debug
-// Turn On/Off SMTP Client debug messages
-#define DBG_SMTP_CLIENT 1
-//
-
-
-#include "net_debug.h"
-
-
-/**
- \fn void net_debug_init (void)
- \brief Initialize Network Debug Interface.
-*/
-void net_debug_init (void) {
- /* Add your code to initialize the Debug output. This is usually the */
- /* serial interface. The function is called at TCPnet system startup. */
- /* You may need to customize also the 'putchar()' function. */
-
-}
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/RTE_Components.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/RTE_Components.h
deleted file mode 100644
index 20773df02..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/RTE_Components.h
+++ /dev/null
@@ -1,28 +0,0 @@
-
-/*
- * Auto generated Run-Time-Environment Component Configuration File
- * *** Do not modify ! ***
- *
- * Project: 'EchoServer'
- * Target: 'EchoServer'
- */
-
-#ifndef RTE_COMPONENTS_H
-#define RTE_COMPONENTS_H
-
-#define RTE_DEVICE_STARTUP_STM32F2xx /* Device Startup for STM32F2 */
-#define RTE_Drivers_ETH_MAC0 /* Driver ETH_MAC0 */
-#define RTE_Drivers_MCI0 /* Driver MCI0 */
-#define RTE_Drivers_PHY_ST802RT1 /* Driver PHY ST802RT1 */
-#define RTE_FileSystem_Core /* File System Core */
- #define RTE_FileSystem_LFN /* File System with Long Filename support */
-#define RTE_FileSystem_Drive_MC_0 /* File System Memory Card Drive 0 */
-#define RTE_Network_Core /* Network Core */
- #define RTE_Network_Debug /* Network Debug Version */
-#define RTE_Network_DNS_Client /* Network DNS Client */
-#define RTE_Network_Interface_ETH_0 /* Network Interface ETH 0 */
-#define RTE_Network_Socket_BSD /* Network Socket BSD */
-#define RTE_Network_Socket_TCP /* Network Socket TCP */
-#define RTE_Network_Socket_UDP /* Network Socket UDP */
-
-#endif /* RTE_COMPONENTS_H */
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/config-Crypt.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/config-Crypt.h
deleted file mode 100644
index a11c3ef24..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/config-Crypt.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/* config-FS.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-// <<< Use Configuration Wizard in Context Menu >>>
-
-// wolfCrypt Configuration
-
-// Cert/Key Strage
-// Cert Storage <0=> SD Card <1=> Mem Buff (1024bytes) <2=> Mem Buff (2048bytes)
-#define MDK_CONF_CERT_BUFF 0
-#if MDK_CONF_CERT_BUFF== 1
-#define USE_CERT_BUFFERS_1024
-#elif MDK_CONF_CERT_BUFF == 2
-#define USE_CERT_BUFFERS_2048
-#endif
-//
-
-// Crypt Algrithm
-
-// MD5, SHA, SHA-256, AES, RC4, ASN, RSA
-//
-
-// MD2
-#define MDK_CONF_MD2 0
-#if MDK_CONF_MD2 == 1
-#define CYASSL_MD2
-#endif
-//
-// MD4
-#define MDK_CONF_MD4 1
-#if MDK_CONF_MD4 == 0
-#define NO_MD4
-#endif
-//
-// SHA-384
-// This has to be with SHA512
-#define MDK_CONF_SHA384 0
-#if MDK_CONF_SHA384 == 1
-#define CYASSL_SHA384
-#endif
-//
-// SHA-512
-#define MDK_CONF_SHA512 0
-#if MDK_CONF_SHA512 == 1
-#define CYASSL_SHA512
-#endif
-//
-// RIPEMD
-#define MDK_CONF_RIPEMD 0
-#if MDK_CONF_RIPEMD == 1
-#define CYASSL_RIPEMD
-#endif
-//
-// HMAC
-#define MDK_CONF_HMAC 1
-#if MDK_CONF_HMAC == 0
-#define NO_HMAC
-#endif
-//
-// HC128
-#define MDK_CONF_HC128 0
-#if MDK_CONF_HC128 == 1
-#define HAVE_HC128
-#endif
-//
-// RABBIT
-#define MDK_CONF_RABBIT 1
-#if MDK_CONF_RABBI == 0
-#define NO_RABBIT
-#endif
-//
-
-// AEAD
-#define MDK_CONF_AEAD 0
-#if MDK_CONF_AEAD == 1
-#define HAVE_AEAD
-#endif
-//
-// DES3
-#define MDK_CONF_DES3 1
-#if MDK_CONF_DES3 == 0
-#define NO_DES3
-#endif
-//
-// CAMELLIA
-#define MDK_CONF_CAMELLIA 0
-#if MDK_CONF_CAMELLIA == 1
-#define HAVE_CAMELLIA
-#endif
-//
-
-// DH
-// need this for CYASSL_SERVER, OPENSSL_EXTRA
-#define MDK_CONF_DH 1
-#if MDK_CONF_DH == 0
-#define NO_DH
-#endif
-//
-// DSA
-#define MDK_CONF_DSA 1
-#if MDK_CONF_DSA == 0
-#define NO_DSA
-#endif
-//
-// PWDBASED
-#define MDK_CONF_PWDBASED 1
-#if MDK_CONF_PWDBASED == 0
-#define NO_PWDBASED
-#endif
-//
-
-// ECC
-#define MDK_CONF_ECC 0
-#if MDK_CONF_ECC == 1
-#define HAVE_ECC
-#endif
-//
-// PSK
-#define MDK_CONF_PSK 1
-#if MDK_CONF_PSK == 0
-#define NO_PSK
-#endif
-//
-// AESCCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESCCM 0
-#if MDK_CONF_AESCCM == 1
-#define HAVE_AESCCM
-#endif
-//
-// AESGCM (Turn off Hardware Crypt)
-#define MDK_CONF_AESGCM 0
-#if MDK_CONF_AESGCM == 1
-#define HAVE_AESGCM
-#define BUILD_AESGCM
-#endif
-//
-// NTRU (need License, "crypto_ntru.h")
-#define MDK_CONF_NTRU 0
-#if MDK_CONF_NTRU == 1
-#define HAVE_NTRU
-#endif
-//
-//
-
-// Hardware Crypt (See document for usage)
-// Hardware RNG
-#define MDK_CONF_STM32F2_RNG 0
-#if MDK_CONF_STM32F2_RNG == 1
-#define STM32F2_RNG
-#else
-
-#endif
-//
-// Hardware Crypt
-#define MDK_CONF_STM32F2_CRYPTO 0
-#if MDK_CONF_STM32F2_CRYPTO == 1
-#define STM32F2_CRYPTO
-#endif
-//
-
-//
-
-
-
-//
-// <<< end of configuration section >>>
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/config-CyaSSL.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/config-CyaSSL.h
deleted file mode 100644
index 02ba94bd4..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/config-CyaSSL.h
+++ /dev/null
@@ -1,144 +0,0 @@
-/* config-RTX-TCP-FS.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-
-/**** CyaSSL for KEIL-RL Configuration ****/
-
-#define __CORTEX_M3__
-#define CYASSL_MDK_ARM
-#define NO_WRITEV
-#define NO_CYASSL_DIR
-#define NO_MAIN_DRIVER
-
-
-#define CYASSL_DER_LOAD
-#define HAVE_NULL_CIPHER
-
-#define HAVE_KEIL_RTX
-#define CYASSL_CMSIS_RTOS
-#define CYASSL_KEIL_TCP_NET
-
-
-// <<< Use Configuration Wizard in Context Menu >>>
-// CyaSSL Configuration
-
-// SSL (Included by default)
-//
-
-// TLS
-#define MDK_CONF_TLS 1
-#if MDK_CONF_TLS == 0
-#define NO_TLS
-#endif
-//
-
-// CRL
-#define MDK_CONF_DER_LOAD 0
-#if MDK_CONF_DER_LOAD == 1
-#define CYASSL_DER_LOAD
-#endif
-//
-// OpenSSL Extra
-#define MDK_CONF_OPENSSL_EXTRA 1
-#if MDK_CONF_OPENSSL_EXTRA == 1
-#define OPENSSL_EXTRA
-#endif
-//
-//
-
-// Cert/Key Generation
-// CertGen
-#define MDK_CONF_CERT_GEN 0
-#if MDK_CONF_CERT_GEN == 1
-#define CYASSL_CERT_GEN
-#endif
-//
-// KeyGen
-#define MDK_CONF_KEY_GEN 0
-#if MDK_CONF_KEY_GEN == 1
-#define CYASSL_KEY_GEN
-#endif
-//
-//
-
-// Others
-
-// Inline
-#define MDK_CONF_INLINE 0
-#if MDK_CONF_INLINE == 0
-#define NO_INLINE
-#endif
-//
-// Debug
-// Debug Message
-#define MDK_CONF_DebugMessage 0
-#if MDK_CONF_DebugMessage == 1
-#define DEBUG_CYASSL
-#endif
-//
-// Check malloc
-#define MDK_CONF_CheckMalloc 1
-#if MDK_CONF_CheckMalloc == 1
-#define CYASSL_MALLOC_CHECK
-#endif
-//
-
-
-//
-// ErrNo.h
-#define MDK_CONF_ErrNo 0
-#if MDK_CONF_ErrNo == 1
-#define HAVE_ERRNO
-#endif
-//
-// Error Strings
-#define MDK_CONF_ErrorStrings 1
-#if MDK_CONF_ErrorStrings == 0
-#define NO_ERROR_STRINGS
-#endif
-//
-// zlib (need "zlib.h")
-#define MDK_CONF_LIBZ 0
-#if MDK_CONF_LIBZ == 1
-#define HAVE_LIBZ
-#endif
-//
-// CAVIUM (need CAVIUM headers)
-#define MDK_CONF_CAVIUM 0
-#if MDK_CONF_CAVIUM == 1
-#define HAVE_CAVIUM
-#endif
-//
-// Small Stack
-#define MDK_CONF_SmallStack 1
-#if MDK_CONF_SmallStack == 0
-#define NO_CYASSL_SMALL_STACK
-#endif
-//
-// Use Fast Math
-#define MDK_CONF_FASTMATH 0
-#if MDK_CONF_FASTMATH == 1
-#define USE_FAST_MATH
-#endif
-//
-//
-
-// <<< end of configuration section >>>
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/settings.h b/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/settings.h
deleted file mode 100644
index 22dea06d0..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/settings.h
+++ /dev/null
@@ -1,627 +0,0 @@
-/* settings.h
- *
- * Copyright (C) 2006-2013 wolfSSL Inc.
- *
- * This file is part of CyaSSL.
- *
- * CyaSSL 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 2 of the License, or
- * (at your option) any later version.
- *
- * CyaSSL 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 should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-/* Place OS specific preprocessor flags, defines, includes here, will be
- included into every file because types.h includes it */
-
-
-#ifndef CTAO_CRYPT_SETTINGS_H
-#define CTAO_CRYPT_SETTINGS_H
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
-/* Uncomment next line if using IPHONE */
-/* #define IPHONE */
-
-/* Uncomment next line if using ThreadX */
-/* #define THREADX */
-
-/* Uncomment next line if using Micrium ucOS */
-/* #define MICRIUM */
-
-/* Uncomment next line if using Mbed */
-/* #define MBED */
-
-/* Uncomment next line if using Microchip PIC32 ethernet starter kit */
-/* #define MICROCHIP_PIC32 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 5 */
-/* #define MICROCHIP_TCPIP_V5 */
-
-/* Uncomment next line if using Microchip TCP/IP stack, version 6 or later */
-/* #define MICROCHIP_TCPIP */
-
-/* Uncomment next line if using FreeRTOS */
-/* #define FREERTOS */
-
-/* Uncomment next line if using FreeRTOS Windows Simulator */
-/* #define FREERTOS_WINSIM */
-
-/* Uncomment next line if using RTIP */
-/* #define EBSNET */
-
-/* Uncomment next line if using lwip */
-/* #define CYASSL_LWIP */
-
-/* Uncomment next line if building CyaSSL for a game console */
-/* #define CYASSL_GAME_BUILD */
-
-/* Uncomment next line if building CyaSSL for LSR */
-/* #define CYASSL_LSR */
-
-/* Uncomment next line if building CyaSSL for Freescale MQX/RTCS/MFS */
-/* #define FREESCALE_MQX */
-
-/* Uncomment next line if using STM32F2 */
-/* #define CYASSL_STM32F2 */
-
-/* Uncomment next line if using Comverge settings */
-/* #define COMVERGE */
-
-/* Uncomment next line if using QL SEP settings */
-/* #define CYASSL_QL */
-
-
-#include
-
-#ifdef IPHONE
- #define SIZEOF_LONG_LONG 8
-#endif
-
-
-#ifdef COMVERGE
- #define THREADX
- #define HAVE_NETX
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_RSA
- #define NO_SESSION_CACHE
- #define HAVE_ECC
-#endif
-
-
-#ifdef THREADX
- #define SIZEOF_LONG_LONG 8
-#endif
-
-#ifdef HAVE_NETX
- #include "nx_api.h"
-#endif
-
-#ifdef MICROCHIP_PIC32
- #define SIZEOF_LONG_LONG 8
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_FILESYSTEM
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef MICROCHIP_TCPIP_V5
- /* include timer functions */
- #include "TCPIP Stack/TCPIP.h"
-#endif
-
-#ifdef MICROCHIP_TCPIP
- /* include timer, NTP functions */
- #include "system/system_services.h"
- #ifdef MICROCHIP_MPLAB_HARMONY
- #include "tcpip/tcpip.h"
- #else
- #include "tcpip/sntp.h"
- #endif
-#endif
-
-#ifdef MBED
- #define SINGLE_THREADED
- #define CYASSL_USER_IO
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
-#endif /* MBED */
-
-#ifdef CYASSL_TYTO
- #include "rand.h"
- #define FREERTOS
- #define NO_FILESYSTEM
- #define CYASSL_USER_IO
- #define NO_DEV_RANDOM
- #define HAVE_ECC
- #define HAVE_ECC_ENCRYPT
- #define ECC_SHAMIR
- #define HAVE_HKDF
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
- #define FP_MAX_BITS 512
- #define NO_OLD_TLS
- #define NO_MD4
- #define NO_RABBIT
- #define NO_HC128
- #define NO_RSA
- #define NO_DSA
- #define NO_PWDBASED
- #define NO_PSK
-#endif
-
-#ifdef FREERTOS_WINSIM
- #define FREERTOS
- #define USE_WINDOWS_API
-#endif
-
-
-/* Micrium will use Visual Studio for compilation but not the Win32 API */
-#if defined(_WIN32) && !defined(MICRIUM) && !defined(FREERTOS) \
- && !defined(EBSNET)
- #define USE_WINDOWS_API
-#endif
-
-
-#if defined(CYASSL_LEANPSK) && !defined(XMALLOC_USER)
- #include
- #define XMALLOC(s, h, type) malloc((s))
- #define XFREE(p, h, type) free((p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
-#if defined(XMALLOC_USER) && defined(SSN_BUILDING_LIBYASSL)
- #undef XMALLOC
- #define XMALLOC yaXMALLOC
- #undef XFREE
- #define XFREE yaXFREE
- #undef XREALLOC
- #define XREALLOC yaXREALLOC
-#endif
-
-
-#ifdef FREERTOS
- #ifndef NO_WRITEV
- #define NO_WRITEV
- #endif
- #ifndef NO_SHA512
- #define NO_SHA512
- #endif
- #ifndef NO_DH
- #define NO_DH
- #endif
- #ifndef NO_DSA
- #define NO_DSA
- #endif
- #ifndef NO_HC128
- #define NO_HC128
- #endif
-
- #ifndef SINGLE_THREADED
- #include "FreeRTOS.h"
- #include "semphr.h"
- #endif
-#endif
-
-#ifdef EBSNET
- #include "rtip.h"
-
- /* #define DEBUG_CYASSL */
- #define NO_CYASSL_DIR /* tbd */
-
- #if (POLLOS)
- #define SINGLE_THREADED
- #endif
-
- #if (RTPLATFORM)
- #if (!RTP_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #else
- #if (!KS_LITTLE_ENDIAN)
- #define BIG_ENDIAN_ORDER
- #endif
- #endif
-
- #if (WINMSP3)
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #else
- #sslpro: settings.h - please implement SIZEOF_LONG and SIZEOF_LONG_LONG
- #endif
-
- #define XMALLOC(s, h, type) ((void *)rtp_malloc((s), SSL_PRO_MALLOC))
- #define XFREE(p, h, type) (rtp_free(p))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-
-#endif /* EBSNET */
-
-#ifdef CYASSL_GAME_BUILD
- #define SIZEOF_LONG_LONG 8
- #if defined(__PPU) || defined(__XENON)
- #define BIG_ENDIAN_ORDER
- #endif
-#endif
-
-#ifdef CYASSL_LSR
- #define HAVE_WEBSERVER
- #define SIZEOF_LONG_LONG 8
- #define CYASSL_LOW_MEMORY
- #define NO_WRITEV
- #define NO_SHA512
- #define NO_DH
- #define NO_DSA
- #define NO_HC128
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #ifndef NO_FILESYSTEM
- #define LSR_FS
- #include "inc/hw_types.h"
- #include "fs.h"
- #endif
- #define CYASSL_LWIP
- #include /* for tcp errno */
- #define CYASSL_SAFERTOS
- #if defined(__IAR_SYSTEMS_ICC__)
- /* enum uses enum */
- #pragma diag_suppress=Pa089
- #endif
-#endif
-
-#ifdef CYASSL_SAFERTOS
- #ifndef SINGLE_THREADED
- #include "SafeRTOS/semphr.h"
- #endif
-
- #include "SafeRTOS/heap.h"
- #define XMALLOC(s, h, type) pvPortMalloc((s))
- #define XFREE(p, h, type) vPortFree((p))
- #define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
-#endif
-
-#ifdef CYASSL_LOW_MEMORY
- #undef RSA_LOW_MEM
- #define RSA_LOW_MEM
- #undef CYASSL_SMALL_STACK
- #define CYASSL_SMALL_STACK
- #undef TFM_TIMING_RESISTANT
- #define TFM_TIMING_RESISTANT
-#endif
-
-#ifdef FREESCALE_MQX
- #define SIZEOF_LONG_LONG 8
- #define NO_WRITEV
- #define NO_DEV_RANDOM
- #define NO_RABBIT
- #define NO_CYASSL_DIR
- #define USE_FAST_MATH
- #define TFM_TIMING_RESISTANT
- #define FREESCALE_K70_RNGA
- /* #define FREESCALE_K53_RNGB */
- #include "mqx.h"
- #ifndef NO_FILESYSTEM
- #include "mfs.h"
- #include "fio.h"
- #endif
- #ifndef SINGLE_THREADED
- #include "mutex.h"
- #endif
-
- #define XMALLOC(s, h, t) (void *)_mem_alloc_system((s))
- #define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));}
- /* Note: MQX has no realloc, using fastmath above */
-#endif
-
-#ifdef CYASSL_STM32F2
- #define SIZEOF_LONG_LONG 8
- #define NO_DEV_RANDOM
- #define NO_CYASSL_DIR
- #define NO_RABBIT
- #define STM32F2_RNG
- #define STM32F2_CRYPTO
- #define KEIL_INTRINSICS
-#endif
-
-#ifdef MICRIUM
-
- #include "stdlib.h"
- #include "net_cfg.h"
- #include "ssl_cfg.h"
- #include "net_secure_os.h"
-
- #define CYASSL_TYPES
-
- typedef CPU_INT08U byte;
- typedef CPU_INT16U word16;
- typedef CPU_INT32U word32;
-
- #if (NET_SECURE_MGR_CFG_WORD_SIZE == CPU_WORD_SIZE_32)
- #define SIZEOF_LONG 4
- #undef SIZEOF_LONG_LONG
- #else
- #undef SIZEOF_LONG
- #define SIZEOF_LONG_LONG 8
- #endif
-
- #define STRING_USER
-
- #define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr)))
- #define XSTRNCPY(pstr_dest, pstr_src, len_max) \
- ((CPU_CHAR *)Str_Copy_N((CPU_CHAR *)(pstr_dest), \
- (CPU_CHAR *)(pstr_src), (CPU_SIZE_T)(len_max)))
- #define XSTRNCMP(pstr_1, pstr_2, len_max) \
- ((CPU_INT16S)Str_Cmp_N((CPU_CHAR *)(pstr_1), \
- (CPU_CHAR *)(pstr_2), (CPU_SIZE_T)(len_max)))
- #define XSTRSTR(pstr, pstr_srch) \
- ((CPU_CHAR *)Str_Str((CPU_CHAR *)(pstr), \
- (CPU_CHAR *)(pstr_srch)))
- #define XMEMSET(pmem, data_val, size) \
- ((void)Mem_Set((void *)(pmem), (CPU_INT08U) (data_val), \
- (CPU_SIZE_T)(size)))
- #define XMEMCPY(pdest, psrc, size) ((void)Mem_Copy((void *)(pdest), \
- (void *)(psrc), (CPU_SIZE_T)(size)))
- #define XMEMCMP(pmem_1, pmem_2, size) \
- (((CPU_BOOLEAN)Mem_Cmp((void *)(pmem_1), (void *)(pmem_2), \
- (CPU_SIZE_T)(size))) ? DEF_NO : DEF_YES)
- #define XMEMMOVE XMEMCPY
-
-#if (NET_SECURE_MGR_CFG_EN == DEF_ENABLED)
- #define MICRIUM_MALLOC
- #define XMALLOC(s, h, type) ((void *)NetSecure_BlkGet((CPU_INT08U)(type), \
- (CPU_SIZE_T)(s), (void *)0))
- #define XFREE(p, h, type) (NetSecure_BlkFree((CPU_INT08U)(type), \
- (p), (void *)0))
- #define XREALLOC(p, n, h, t) realloc((p), (n))
-#endif
-
- #if (NET_SECURE_MGR_CFG_FS_EN == DEF_ENABLED)
- #undef NO_FILESYSTEM
- #else
- #define NO_FILESYSTEM
- #endif
-
- #if (SSL_CFG_TRACE_LEVEL == CYASSL_TRACE_LEVEL_DBG)
- #define DEBUG_CYASSL
- #else
- #undef DEBUG_CYASSL
- #endif
-
- #if (SSL_CFG_OPENSSL_EN == DEF_ENABLED)
- #define OPENSSL_EXTRA
- #else
- #undef OPENSSL_EXTRA
- #endif
-
- #if (SSL_CFG_MULTI_THREAD_EN == DEF_ENABLED)
- #undef SINGLE_THREADED
- #else
- #define SINGLE_THREADED
- #endif
-
- #if (SSL_CFG_DH_EN == DEF_ENABLED)
- #undef NO_DH
- #else
- #define NO_DH
- #endif
-
- #if (SSL_CFG_DSA_EN == DEF_ENABLED)
- #undef NO_DSA
- #else
- #define NO_DSA
- #endif
-
- #if (SSL_CFG_PSK_EN == DEF_ENABLED)
- #undef NO_PSK
- #else
- #define NO_PSK
- #endif
-
- #if (SSL_CFG_3DES_EN == DEF_ENABLED)
- #undef NO_DES
- #else
- #define NO_DES
- #endif
-
- #if (SSL_CFG_AES_EN == DEF_ENABLED)
- #undef NO_AES
- #else
- #define NO_AES
- #endif
-
- #if (SSL_CFG_RC4_EN == DEF_ENABLED)
- #undef NO_RC4
- #else
- #define NO_RC4
- #endif
-
- #if (SSL_CFG_RABBIT_EN == DEF_ENABLED)
- #undef NO_RABBIT
- #else
- #define NO_RABBIT
- #endif
-
- #if (SSL_CFG_HC128_EN == DEF_ENABLED)
- #undef NO_HC128
- #else
- #define NO_HC128
- #endif
-
- #if (CPU_CFG_ENDIAN_TYPE == CPU_ENDIAN_TYPE_BIG)
- #define BIG_ENDIAN_ORDER
- #else
- #undef BIG_ENDIAN_ORDER
- #define LITTLE_ENDIAN_ORDER
- #endif
-
- #if (SSL_CFG_MD4_EN == DEF_ENABLED)
- #undef NO_MD4
- #else
- #define NO_MD4
- #endif
-
- #if (SSL_CFG_WRITEV_EN == DEF_ENABLED)
- #undef NO_WRITEV
- #else
- #define NO_WRITEV
- #endif
-
- #if (SSL_CFG_USER_RNG_SEED_EN == DEF_ENABLED)
- #define NO_DEV_RANDOM
- #else
- #undef NO_DEV_RANDOM
- #endif
-
- #if (SSL_CFG_USER_IO_EN == DEF_ENABLED)
- #define CYASSL_USER_IO
- #else
- #undef CYASSL_USER_IO
- #endif
-
- #if (SSL_CFG_DYNAMIC_BUFFERS_EN == DEF_ENABLED)
- #undef LARGE_STATIC_BUFFERS
- #undef STATIC_CHUNKS_ONLY
- #else
- #define LARGE_STATIC_BUFFERS
- #define STATIC_CHUNKS_ONLY
- #endif
-
- #if (SSL_CFG_DER_LOAD_EN == DEF_ENABLED)
- #define CYASSL_DER_LOAD
- #else
- #undef CYASSL_DER_LOAD
- #endif
-
- #if (SSL_CFG_DTLS_EN == DEF_ENABLED)
- #define CYASSL_DTLS
- #else
- #undef CYASSL_DTLS
- #endif
-
- #if (SSL_CFG_CALLBACKS_EN == DEF_ENABLED)
- #define CYASSL_CALLBACKS
- #else
- #undef CYASSL_CALLBACKS
- #endif
-
- #if (SSL_CFG_FAST_MATH_EN == DEF_ENABLED)
- #define USE_FAST_MATH
- #else
- #undef USE_FAST_MATH
- #endif
-
- #if (SSL_CFG_TFM_TIMING_RESISTANT_EN == DEF_ENABLED)
- #define TFM_TIMING_RESISTANT
- #else
- #undef TFM_TIMING_RESISTANT
- #endif
-
-#endif /* MICRIUM */
-
-
-#ifdef CYASSL_QL
- #ifndef CYASSL_SEP
- #define CYASSL_SEP
- #endif
- #ifndef OPENSSL_EXTRA
- #define OPENSSL_EXTRA
- #endif
- #ifndef SESSION_CERTS
- #define SESSION_CERTS
- #endif
- #ifndef HAVE_AESCCM
- #define HAVE_AESCCM
- #endif
- #ifndef ATOMIC_USER
- #define ATOMIC_USER
- #endif
- #ifndef CYASSL_DER_LOAD
- #define CYASSL_DER_LOAD
- #endif
- #ifndef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
- #endif
- #ifndef HAVE_ECC
- #define HAVE_ECC
- #endif
- #ifndef SESSION_INDEX
- #define SESSION_INDEX
- #endif
-#endif /* CYASSL_QL */
-
-
-#if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \
- !defined(CYASSL_LEANPSK) && !defined(NO_CYASSL_MEMORY)
- #define USE_CYASSL_MEMORY
-#endif
-
-
-#if defined(OPENSSL_EXTRA) && !defined(NO_CERTS)
- #undef KEEP_PEER_CERT
- #define KEEP_PEER_CERT
-#endif
-
-
-/* stream ciphers except arc4 need 32bit alignment, intel ok without */
-#ifndef XSTREAM_ALIGNMENT
- #if defined(__x86_64__) || defined(__ia64__) || defined(__i386__)
- #define NO_XSTREAM_ALIGNMENT
- #else
- #define XSTREAM_ALIGNMENT
- #endif
-#endif
-
-
-/* if using hardware crypto and have alignment requirements, specify the
- requirement here. The record header of SSL/TLS will prvent easy alignment.
- This hint tries to help as much as possible. */
-#ifndef CYASSL_GENERAL_ALIGNMENT
- #ifdef CYASSL_AESNI
- #define CYASSL_GENERAL_ALIGNMENT 16
- #elif defined(XSTREAM_ALIGNMENT)
- #define CYASSL_GENERAL_ALIGNMENT 4
- #else
- #define CYASSL_GENERAL_ALIGNMENT 0
- #endif
-#endif
-
-#ifdef HAVE_CRL
- /* not widely supported yet */
- #undef NO_SKID
- #define NO_SKID
-#endif
-
-/* Place any other flags or defines here */
-
-
-#ifdef __cplusplus
- } /* extern "C" */
-#endif
-
-
-#endif /* CTAO_CRYPT_SETTINGS_H */
-
diff --git a/IDE/MDK5-ARM/Projects/EchoServer/STM32_SWO.ini b/IDE/MDK5-ARM/Projects/EchoServer/STM32_SWO.ini
deleted file mode 100644
index 239abce37..000000000
--- a/IDE/MDK5-ARM/Projects/EchoServer/STM32_SWO.ini
+++ /dev/null
@@ -1,36 +0,0 @@
-/******************************************************************************/
-/* STM32_SWO.ini: STM32 Debugger Initialization File */
-/******************************************************************************/
-// <<< Use Configuration Wizard in Context Menu >>> //
-/******************************************************************************/
-/* This file is part of the uVision/ARM development tools. */
-/* Copyright (c) 2004-2013 Keil Software. All rights reserved. */
-/* This software may only be used under the terms of a valid, current, */
-/* end user licence from KEIL for a compatible version of KEIL software */
-/* development tools. Nothing else gives you the right to use this software. */
-/******************************************************************************/
-
-
-FUNC void DebugSetup (void) {
-// Debug MCU Configuration
-// DBG_SLEEP Debug Sleep Mode
-// DBG_STOP Debug Stop Mode
-// DBG_STANDBY Debug Standby Mode
-// TRACE_IOEN Trace I/O Enable
-// TRACE_MODE Trace Mode
-// <0=> Asynchronous
-// <1=> Synchronous: TRACEDATA Size 1
-// <2=> Synchronous: TRACEDATA Size 2
-// <3=> Synchronous: TRACEDATA Size 4
-// DBG_IWDG_STOP Independant Watchdog Stopped when Core is halted
-// DBG_WWDG_STOP Window Watchdog Stopped when Core is halted
-// DBG_TIM1_STOP Timer 1 Stopped when Core is halted
-// DBG_TIM2_STOP Timer 2 Stopped when Core is halted
-// DBG_TIM3_STOP Timer 3 Stopped when Core is halted
-// DBG_TIM4_STOP Timer 4 Stopped when Core is halted
-// DBG_CAN_STOP CAN Stopped when Core is halted
-//
- _WDWORD(0xE0042004, 0x00000027); // DBGMCU_CR
-}
-
-DebugSetup(); // Debugger Setup
diff --git a/IDE/MDK5-ARM/Projects/SimpleClient/RTE/CMSIS/RTX_Conf_CM.c b/IDE/MDK5-ARM/Projects/SimpleClient/RTE/CMSIS/RTX_Conf_CM.c
deleted file mode 100644
index 435c44ad9..000000000
--- a/IDE/MDK5-ARM/Projects/SimpleClient/RTE/CMSIS/RTX_Conf_CM.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/*----------------------------------------------------------------------------
- * RL-ARM - RTX
- *----------------------------------------------------------------------------
- * Name: RTX_Conf_CM.C
- * Purpose: Configuration of CMSIS RTX Kernel for Cortex-M
- * Rev.: V4.73
- *----------------------------------------------------------------------------
- *
- * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
- * 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 ARM 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 COPYRIGHT HOLDERS AND CONTRIBUTORS 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.
- *---------------------------------------------------------------------------*/
-
-#include "cmsis_os.h"
-
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part BEGIN
- *---------------------------------------------------------------------------*/
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
-//
-// Thread Configuration
-// =======================
-//
-// Number of concurrent running threads <0-250>
-// Defines max. number of threads that will run at the same time.
-// Default: 6
-#ifndef OS_TASKCNT
- #define OS_TASKCNT 6
-#endif
-
-// Default Thread stack size [bytes] <64-4096:8><#/4>
-// Defines default stack size for threads with osThreadDef stacksz = 0
-// Default: 200
-#ifndef OS_STKSIZE
- #define OS_STKSIZE 300
-#endif
-
-// Main Thread stack size [bytes] <64-32768:8><#/4>
-// Defines stack size for main thread.
-// Default: 200
-#ifndef OS_MAINSTKSIZE
- #define OS_MAINSTKSIZE 2000
-#endif
-
-// Number of threads with user-provided stack size <0-250>
-// Defines the number of threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVCNT
- #define OS_PRIVCNT 0
-#endif
-
-// Total stack size [bytes] for threads with user-provided stack size <0-1048576:8><#/4>
-// Defines the combined stack size for threads with user-provided stack size.
-// Default: 0
-#ifndef OS_PRIVSTKSIZE
- #define OS_PRIVSTKSIZE 2500
-#endif
-
-// Check for stack overflow
-// Includes the stack checking code for stack overflow.
-// Note that additional code reduces the Kernel performance.
-#ifndef OS_STKCHECK
- #define OS_STKCHECK 1
-#endif
-
-// Processor mode for thread execution
-// <0=> Unprivileged mode
-// <1=> Privileged mode
-// Default: Privileged mode
-#ifndef OS_RUNPRIV
- #define OS_RUNPRIV 1
-#endif
-
-//
-
-// RTX Kernel Timer Tick Configuration
-// ======================================
-// Use Cortex-M SysTick timer as RTX Kernel Timer
-// Use the Cortex-M SysTick timer as a time-base for RTX.
-#ifndef OS_SYSTICK
- #define OS_SYSTICK 1
-#endif
-//
-// Timer clock value [Hz] <1-1000000000>
-// Defines the timer clock value.
-// Default: 12000000 (12MHz)
-#ifndef OS_CLOCK
- #define OS_CLOCK 12000000
-#endif
-
-// Timer tick value [us] <1-1000000>
-// Defines the timer tick value.
-// Default: 1000 (1ms)
-#ifndef OS_TICK
- #define OS_TICK 1000
-#endif
-
-//
-
-// System Configuration
-// =======================
-//
-// Round-Robin Thread switching
-// ===============================
-//
-// Enables Round-Robin Thread switching.
-#ifndef OS_ROBIN
- #define OS_ROBIN 1
-#endif
-
-// Round-Robin Timeout [ticks] <1-1000>
-// Defines how long a thread will execute before a thread switch.
-// Default: 5
-#ifndef OS_ROBINTOUT
- #define OS_ROBINTOUT 5
-#endif
-
-//
-
-// User Timers
-// ==============
-// Enables user Timers
-#ifndef OS_TIMERS
- #define OS_TIMERS 1
-#endif
-
-// Timer Thread Priority
-// <1=> Low
-// <2=> Below Normal <3=> Normal <4=> Above Normal
-// <5=> High
-// <6=> Realtime (highest)
-// Defines priority for Timer Thread
-// Default: High
-#ifndef OS_TIMERPRIO
- #define OS_TIMERPRIO 5
-#endif
-
-// Timer Thread stack size [bytes] <64-4096:8><#/4>
-// Defines stack size for Timer thread.
-// Default: 200
-#ifndef OS_TIMERSTKSZ
- #define OS_TIMERSTKSZ 50
-#endif
-
-// Timer Callback Queue size <1-32>
-// Number of concurrent active timer callback functions.
-// Default: 4
-#ifndef OS_TIMERCBQS
- #define OS_TIMERCBQS 4
-#endif
-
-//
-
-// ISR FIFO Queue size<4=> 4 entries <8=> 8 entries
-// <12=> 12 entries <16=> 16 entries
-// <24=> 24 entries <32=> 32 entries
-// <48=> 48 entries <64=> 64 entries
-// <96=> 96 entries
-// ISR functions store requests to this buffer,
-// when they are called from the interrupt handler.
-// Default: 16 entries
-#ifndef OS_FIFOSZ
- #define OS_FIFOSZ 16
-#endif
-
-//
-
-//------------- <<< end of configuration section >>> -----------------------
-
-// Standard library system mutexes
-// ===============================
-// Define max. number system mutexes that are used to protect
-// the arm standard runtime library. For microlib they are not used.
-#ifndef OS_MUTEXCNT
- #define OS_MUTEXCNT 8
-#endif
-
-/*----------------------------------------------------------------------------
- * RTX User configuration part END
- *---------------------------------------------------------------------------*/
-
-#define OS_TRV ((uint32_t)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
-
-
-/*----------------------------------------------------------------------------
- * Global Functions
- *---------------------------------------------------------------------------*/
-
-/*--------------------------- os_idle_demon ---------------------------------*/
-
-void os_idle_demon (void) {
- /* The idle demon is a system thread, running when no other thread is */
- /* ready to run. */
-
- for (;;) {
- /* HERE: include optional user code to be executed when no thread runs.*/
- }
-}
-
-#if (OS_SYSTICK == 0) // Functions for alternative timer as RTX kernel timer
-
-/*--------------------------- os_tick_init ----------------------------------*/
-
-// Initialize alternative hardware timer as RTX kernel timer
-// Return: IRQ number of the alternative hardware timer
-int os_tick_init (void) {
- return (-1); /* Return IRQ number of timer (0..239) */
-}
-
-/*--------------------------- os_tick_val -----------------------------------*/
-
-// Get alternative hardware timer current value (0 .. OS_TRV)
-uint32_t os_tick_val (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_ovf -----------------------------------*/
-
-// Get alternative hardware timer overflow flag
-// Return: 1 - overflow, 0 - no overflow
-uint32_t os_tick_ovf (void) {
- return (0);
-}
-
-/*--------------------------- os_tick_irqack --------------------------------*/
-
-// Acknowledge alternative hardware timer interrupt
-void os_tick_irqack (void) {
- /* ... */
-}
-
-#endif // (OS_SYSTICK == 0)
-
-/*--------------------------- os_error --------------------------------------*/
-
-/* OS Error Codes */
-#define OS_ERROR_STACK_OVF 1
-#define OS_ERROR_FIFO_OVF 2
-#define OS_ERROR_MBX_OVF 3
-
-extern osThreadId svcThreadGetId (void);
-
-void os_error (uint32_t error_code) {
- /* This function is called when a runtime error is detected. */
- /* Parameter 'error_code' holds the runtime error code. */
-
- /* HERE: include optional code to be executed on runtime error. */
- switch (error_code) {
- case OS_ERROR_STACK_OVF:
- /* Stack overflow detected for the currently running task. */
- /* Thread can be identified by calling svcThreadGetId(). */
- break;
- case OS_ERROR_FIFO_OVF:
- /* ISR FIFO Queue buffer overflow detected. */
- break;
- case OS_ERROR_MBX_OVF:
- /* Mailbox overflow detected. */
- break;
- }
- for (;;);
-}
-
-
-/*----------------------------------------------------------------------------
- * RTX Configuration Functions
- *---------------------------------------------------------------------------*/
-
-#include "RTX_CM_lib.h"
-
-/*----------------------------------------------------------------------------
- * end of file
- *---------------------------------------------------------------------------*/
diff --git a/IDE/MDK5-ARM/Projects/SimpleClient/RTE/Device/STM32F207IG/RTE_Device.h b/IDE/MDK5-ARM/Projects/SimpleClient/RTE/Device/STM32F207IG/RTE_Device.h
deleted file mode 100644
index 4a09246f3..000000000
--- a/IDE/MDK5-ARM/Projects/SimpleClient/RTE/Device/STM32F207IG/RTE_Device.h
+++ /dev/null
@@ -1,3127 +0,0 @@
-/* -----------------------------------------------------------------------------
- * Copyright (C) 2013 ARM Limited. All rights reserved.
- *
- * $Date: 27. June 2013
- * $Revision: V1.01
- *
- * Project: RTE Device Configuration for ST STM32F2xx
- * -------------------------------------------------------------------------- */
-
-//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
-
-#ifndef __RTE_DEVICE_H
-#define __RTE_DEVICE_H
-
-
-#define GPIO_PORT(num) \
- ((num == 0) ? GPIOA : \
- (num == 1) ? GPIOB : \
- (num == 2) ? GPIOC : \
- (num == 3) ? GPIOD : \
- (num == 4) ? GPIOE : \
- (num == 5) ? GPIOF : \
- (num == 6) ? GPIOG : \
- (num == 7) ? GPIOH : \
- (num == 8) ? GPIOI : \
- NULL)
-
-
-// Clock Configuration
-// High-speed Internal Clock <1-999999999>
-#define RTE_HSI 16000000
-// High-speed External Clock <1-999999999>
-#define RTE_HSE 25000000
-// System Clock <1-999999999>
-#define RTE_SYSCLK 120000000
-// AHB Clock <1-999999999>
-#define RTE_HCLK 120000000
-// APB1 Clock <1-999999999>
-#define RTE_PCLK1 30000000
-// APB2 Clock <1-999999999>
-#define RTE_PCLK2 60000000
-// 48MHz Clock
-#define RTE_PLL48CK 48000000
-//
-
-
-// USART1 (Universal synchronous asynchronous receiver transmitter) [Driver_UART1]
-// Configuration settings for Driver_UART1 in component ::Drivers:UART
-#define RTE_USART1 0
-
-// USART1_TX Pin <0=>PA9 <1=>PB6
-#define RTE_USART1_TX_ID 0
-#if (RTE_USART1_TX_ID == 0)
-#define RTE_USART1_TX_PORT GPIOA
-#define RTE_USART1_TX_BIT 9
-#elif (RTE_USART1_TX_ID == 1)
-#define RTE_USART1_TX_PORT GPIOB
-#define RTE_USART1_TX_BIT 6
-#else
-#error "Invalid USART1_TX Pin Configuration!"
-#endif
-
-// USART1_RX Pin <0=>PA10 <1=>PB7
-#define RTE_USART1_RX_ID 0
-#if (RTE_USART1_RX_ID == 0)
-#define RTE_USART1_RX_PORT GPIOA
-#define RTE_USART1_RX_BIT 10
-#elif (RTE_USART1_RX_ID == 1)
-#define RTE_USART1_RX_PORT GPIOB
-#define RTE_USART1_RX_BIT 7
-#else
-#error "Invalid USART1_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART1_CK Pin <0=>PA8
-//
-#define RTE_USART1_CK 0
-#define RTE_USART1_CK_ID 0
-#if (RTE_USART1_CK_ID == 0)
-#define RTE_USART1_CK_PORT GPIOA
-#define RTE_USART1_CK_BIT 8
-#else
-#error "Invalid USART1_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART1_CTS Pin <0=>PA11
-// USART1_RTS Pin <0=>PA12
-// Manual CTS/RTS
-//
-#define RTE_USART1_HW_FLOW 0
-#define RTE_USART1_CTS_ID 0
-#define RTE_USART1_RTS_ID 0
-#define RTE_USART1_MANUAL_FLOW 0
-#if (RTE_USART1_CTS_ID == 0)
-#define RTE_USART1_CTS_PORT GPIOA
-#define RTE_USART1_CTS_BIT 11
-#else
-#error "Invalid USART1_CTS Pin Configuration!"
-#endif
-#if (RTE_USART1_RTS_ID == 0)
-#define RTE_USART1_RTS_PORT GPIOA
-#define RTE_USART1_RTS_BIT 12
-#else
-#error "Invalid USART1_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <2=>2 <5=>5
-// Selects DMA Stream (only Stream 2 or 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_RX_DMA 1
-#define RTE_USART1_RX_DMA_NUMBER 2
-#define RTE_USART1_RX_DMA_STREAM 2
-#define RTE_USART1_RX_DMA_CHANNEL 4
-#define RTE_USART1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART1_TX_DMA 1
-#define RTE_USART1_TX_DMA_NUMBER 2
-#define RTE_USART1_TX_DMA_STREAM 7
-#define RTE_USART1_TX_DMA_CHANNEL 4
-#define RTE_USART1_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART2 (Universal synchronous asynchronous receiver transmitter) [Driver_UART2]
-// Configuration settings for Driver_UART2 in component ::Drivers:UART
-#define RTE_USART2 0
-
-// USART2_TX Pin <0=>PA2 <1=>PD5
-#define RTE_USART2_TX_ID 0
-#if (RTE_USART2_TX_ID == 0)
-#define RTE_USART2_TX_PORT GPIOA
-#define RTE_USART2_TX_BIT 2
-#elif (RTE_USART2_TX_ID == 1)
-#define RTE_USART2_TX_PORT GPIOD
-#define RTE_USART2_TX_BIT 5
-#else
-#error "Invalid USART2_TX Pin Configuration!"
-#endif
-
-// USART2_RX Pin <0=>PA3 <1=>PD6
-#define RTE_USART2_RX_ID 0
-#if (RTE_USART2_RX_ID == 0)
-#define RTE_USART2_RX_PORT GPIOA
-#define RTE_USART2_RX_BIT 3
-#elif (RTE_USART2_RX_ID == 1)
-#define RTE_USART2_RX_PORT GPIOD
-#define RTE_USART2_RX_BIT 6
-#else
-#error "Invalid USART2_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART2_CK Pin <0=>PA4 <1=>PD7
-//
-#define RTE_USART2_CK 0
-#define RTE_USART2_CK_ID 0
-#if (RTE_USART2_CK_ID == 0)
-#define RTE_USART2_CK_PORT GPIOA
-#define RTE_USART2_CK_BIT 4
-#elif (RTE_USART2_CK_ID == 1)
-#define RTE_USART2_CK_PORT GPIOD
-#define RTE_USART2_CK_BIT 7
-#else
-#error "Invalid USART2_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART2_CTS Pin <0=>PA0 <1=>PD3
-// USART2_RTS Pin <0=>PA1 <1=>PD4
-// Manual CTS/RTS
-//
-#define RTE_USART2_HW_FLOW 0
-#define RTE_USART2_CTS_ID 0
-#define RTE_USART2_RTS_ID 0
-#define RTE_USART2_MANUAL_FLOW 0
-#if (RTE_USART2_CTS_ID == 0)
-#define RTE_USART2_CTS_PORT GPIOA
-#define RTE_USART2_CTS_BIT 0
-#elif (RTE_USART2_CTS_ID == 1)
-#define RTE_USART2_CTS_PORT GPIOD
-#define RTE_USART2_CTS_BIT 3
-#else
-#error "Invalid USART2_CTS Pin Configuration!"
-#endif
-#if (RTE_USART2_RTS_ID == 0)
-#define RTE_USART2_RTS_PORT GPIOA
-#define RTE_USART2_RTS_BIT 1
-#elif (RTE_USART2_RTS_ID == 1)
-#define RTE_USART2_RTS_PORT GPIOD
-#define RTE_USART2_RTS_BIT 4
-#else
-#error "Invalid USART2_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5
-// Selects DMA Stream (only Stream 5 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_RX_DMA 1
-#define RTE_USART2_RX_DMA_NUMBER 1
-#define RTE_USART2_RX_DMA_STREAM 5
-#define RTE_USART2_RX_DMA_CHANNEL 4
-#define RTE_USART2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6
-// Selects DMA Stream (only Stream 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART2_TX_DMA 1
-#define RTE_USART2_TX_DMA_NUMBER 1
-#define RTE_USART2_TX_DMA_STREAM 6
-#define RTE_USART2_TX_DMA_CHANNEL 4
-#define RTE_USART2_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART3 (Universal synchronous asynchronous receiver transmitter) [Driver_UART3]
-// Configuration settings for Driver_UART3 in component ::Drivers:UART
-#define RTE_USART3 0
-
-// USART3_TX Pin <0=>PB10 <1=>PC10 <2=>PD8
-#define RTE_USART3_TX_ID 0
-#if (RTE_USART3_TX_ID == 0)
-#define RTE_USART3_TX_PORT GPIOB
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 1)
-#define RTE_USART3_TX_PORT GPIOC
-#define RTE_USART3_TX_BIT 10
-#elif (RTE_USART3_TX_ID == 2)
-#define RTE_USART3_TX_PORT GPIOD
-#define RTE_USART3_TX_BIT 8
-#else
-#error "Invalid USART3_TX Pin Configuration!"
-#endif
-
-// USART3_RX Pin <0=>PB11 <1=>PC11 <2=>PD9
-#define RTE_USART3_RX_ID 0
-#if (RTE_USART3_RX_ID == 0)
-#define RTE_USART3_RX_PORT GPIOB
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 1)
-#define RTE_USART3_RX_PORT GPIOC
-#define RTE_USART3_RX_BIT 11
-#elif (RTE_USART3_RX_ID == 2)
-#define RTE_USART3_RX_PORT GPIOD
-#define RTE_USART3_RX_BIT 9
-#else
-#error "Invalid USART3_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART3_CK Pin <0=>PB12 <1=>PC12 <2=>PD10
-//
-#define RTE_USART3_CK 0
-#define RTE_USART3_CK_ID 0
-#if (RTE_USART3_CK_ID == 0)
-#define RTE_USART3_CK_PORT GPIOB
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 1)
-#define RTE_USART3_CK_PORT GPIOC
-#define RTE_USART3_CK_BIT 12
-#elif (RTE_USART3_CK_ID == 2)
-#define RTE_USART3_CK_PORT GPIOD
-#define RTE_USART3_CK_BIT 10
-#else
-#error "Invalid USART3_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART3_CTS Pin <0=>PB13 <1=>PD11
-// USART3_RTS Pin <0=>PB14 <1=>PD12
-// Manual CTS/RTS
-//
-#define RTE_USART3_HW_FLOW 0
-#define RTE_USART3_CTS_ID 0
-#define RTE_USART3_RTS_ID 0
-#define RTE_USART3_MANUAL_FLOW 0
-#if (RTE_USART3_CTS_ID == 0)
-#define RTE_USART3_CTS_PORT GPIOB
-#define RTE_USART3_CTS_BIT 13
-#elif (RTE_USART3_CTS_ID == 1)
-#define RTE_USART3_CTS_PORT GPIOD
-#define RTE_USART3_CTS_BIT 11
-#else
-#error "Invalid USART3_CTS Pin Configuration!"
-#endif
-#if (RTE_USART3_RTS_ID == 0)
-#define RTE_USART3_RTS_PORT GPIOB
-#define RTE_USART3_RTS_BIT 14
-#elif (RTE_USART3_RTS_ID == 1)
-#define RTE_USART3_RTS_PORT GPIOD
-#define RTE_USART3_RTS_BIT 12
-#else
-#error "Invalid USART3_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <1=>1
-// Selects DMA Stream (only Stream 1 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_RX_DMA 1
-#define RTE_USART3_RX_DMA_NUMBER 1
-#define RTE_USART3_RX_DMA_STREAM 1
-#define RTE_USART3_RX_DMA_CHANNEL 4
-#define RTE_USART3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART3_TX_DMA 1
-#define RTE_USART3_TX_DMA_NUMBER 1
-#define RTE_USART3_TX_DMA_STREAM 3
-#define RTE_USART3_TX_DMA_CHANNEL 4
-#define RTE_USART3_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART4 (Universal asynchronous receiver transmitter) [Driver_UART4]
-// Configuration settings for Driver_UART4 in component ::Drivers:UART
-#define RTE_UART4 0
-
-// UART4_TX Pin <0=>PA0 <1=>PC10
-#define RTE_UART4_TX_ID 0
-#if (RTE_UART4_TX_ID == 0)
-#define RTE_UART4_TX_PORT GPIOA
-#define RTE_UART4_TX_BIT 0
-#elif (RTE_UART4_TX_ID == 1)
-#define RTE_UART4_TX_PORT GPIOC
-#define RTE_UART4_TX_BIT 10
-#else
-#error "Invalid UART4_TX Pin Configuration!"
-#endif
-
-// UART4_RX Pin <0=>PA1 <1=>PC11
-#define RTE_UART4_RX_ID 0
-#if (RTE_UART4_RX_ID == 0)
-#define RTE_UART4_RX_PORT GPIOA
-#define RTE_UART4_RX_BIT 1
-#elif (RTE_UART4_RX_ID == 1)
-#define RTE_UART4_RX_PORT GPIOC
-#define RTE_UART4_RX_BIT 11
-#else
-#error "Invalid UART4_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_RX_DMA 1
-#define RTE_UART4_RX_DMA_NUMBER 1
-#define RTE_UART4_RX_DMA_STREAM 2
-#define RTE_UART4_RX_DMA_CHANNEL 4
-#define RTE_UART4_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART4_TX_DMA 1
-#define RTE_UART4_TX_DMA_NUMBER 1
-#define RTE_UART4_TX_DMA_STREAM 4
-#define RTE_UART4_TX_DMA_CHANNEL 4
-#define RTE_UART4_TX_DMA_PRIORITY 0
-
-//
-
-
-// UART5 (Universal asynchronous receiver transmitter) [Driver_UART5]
-// Configuration settings for Driver_UART5 in component ::Drivers:UART
-#define RTE_UART5 0
-
-// UART5_TX Pin <0=>PC12
-#define RTE_UART5_TX_ID 0
-#if (RTE_UART5_TX_ID == 0)
-#define RTE_UART5_TX_PORT GPIOC
-#define RTE_UART5_TX_BIT 12
-#else
-#error "Invalid UART5_TX Pin Configuration!"
-#endif
-
-// UART5_RX Pin <0=>PD2
-#define RTE_UART5_RX_ID 0
-#if (RTE_UART5_RX_ID == 0)
-#define RTE_UART5_RX_PORT GPIOD
-#define RTE_UART5_RX_BIT 2
-#else
-#error "Invalid UART5_RX Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0
-// Selects DMA Stream (only Stream 0 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_RX_DMA 1
-#define RTE_UART5_RX_DMA_NUMBER 1
-#define RTE_UART5_RX_DMA_STREAM 0
-#define RTE_UART5_RX_DMA_CHANNEL 4
-#define RTE_UART5_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_UART5_TX_DMA 1
-#define RTE_UART5_TX_DMA_NUMBER 1
-#define RTE_UART5_TX_DMA_STREAM 7
-#define RTE_UART5_TX_DMA_CHANNEL 4
-#define RTE_UART5_TX_DMA_PRIORITY 0
-
-//
-
-
-// USART6 (Universal synchronous asynchronous receiver transmitter) [Driver_UART6]
-// Configuration settings for Driver_UART6 in component ::Drivers:UART
-#define RTE_USART6 0
-
-// USART6_TX Pin <0=>PC6 <1=>PG14
-#define RTE_USART6_TX_ID 0
-#if (RTE_USART6_TX_ID == 0)
-#define RTE_USART6_TX_PORT GPIOC
-#define RTE_USART6_TX_BIT 6
-#elif (RTE_USART6_TX_ID == 1)
-#define RTE_USART6_TX_PORT GPIOG
-#define RTE_USART6_TX_BIT 14
-#else
-#error "Invalid USART6_TX Pin Configuration!"
-#endif
-
-// USART6_RX Pin <0=>PC7 <1=>PG9
-#define RTE_USART6_RX_ID 0
-#if (RTE_USART6_RX_ID == 0)
-#define RTE_USART6_RX_PORT GPIOC
-#define RTE_USART6_RX_BIT 7
-#elif (RTE_USART6_RX_ID == 1)
-#define RTE_USART6_RX_PORT GPIOG
-#define RTE_USART6_RX_BIT 9
-#else
-#error "Invalid USART6_RX Pin Configuration!"
-#endif
-
-// Synchronous
-// USART6_CK Pin <0=>PC8 <1=>PG7
-//
-#define RTE_USART6_CK 0
-#define RTE_USART6_CK_ID 0
-#if (RTE_USART6_CK_ID == 0)
-#define RTE_USART6_CK_PORT GPIOC
-#define RTE_USART6_CK_BIT 8
-#elif (RTE_USART6_CK_ID == 1)
-#define RTE_USART6_CK_PORT GPIOG
-#define RTE_USART6_CK_BIT 7
-#else
-#error "Invalid USART6_CK Pin Configuration!"
-#endif
-
-// Hardware flow control
-// USART6_CTS Pin <0=>PG13 <1=>PG15
-// USART6_RTS Pin <0=>PG8 <1=>PG12
-// Manual CTS/RTS
-//
-#define RTE_USART6_HW_FLOW 0
-#define RTE_USART6_CTS_ID 0
-#define RTE_USART6_RTS_ID 0
-#define RTE_USART6_MANUAL_FLOW 0
-#if (RTE_USART6_CTS_ID == 0)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 13
-#elif (RTE_USART6_CTS_ID == 1)
-#define RTE_USART6_CTS_PORT GPIOG
-#define RTE_USART6_CTS_BIT 15
-#else
-#error "Invalid USART6_CTS Pin Configuration!"
-#endif
-#if (RTE_USART6_RTS_ID == 0)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 8
-#elif (RTE_USART6_RTS_ID == 1)
-#define RTE_USART6_RTS_PORT GPIOG
-#define RTE_USART6_RTS_BIT 12
-#else
-#error "Invalid USART6_RTS Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <1=>1 <2=>2
-// Selects DMA Stream (only Stream 1 or 2 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_RX_DMA 1
-#define RTE_USART6_RX_DMA_NUMBER 2
-#define RTE_USART6_RX_DMA_STREAM 1
-#define RTE_USART6_RX_DMA_CHANNEL 5
-#define RTE_USART6_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <5=>5
-// Selects DMA Channel (only Channel 5 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_USART6_TX_DMA 1
-#define RTE_USART6_TX_DMA_NUMBER 2
-#define RTE_USART6_TX_DMA_STREAM 6
-#define RTE_USART6_TX_DMA_CHANNEL 5
-#define RTE_USART6_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C1 (Inter-integrated Circuit Interface 1) [Driver_I2C1]
-// Configuration settings for Driver_I2C1 in component ::Drivers:I2C
-#define RTE_I2C1 0
-
-// I2C1_SCL Pin <0=>PB6 <1=>PB8
-#define RTE_I2C1_SCL_PORT_ID 0
-#if (RTE_I2C1_SCL_PORT_ID == 0)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 6
-#elif (RTE_I2C1_SCL_PORT_ID == 1)
-#define RTE_I2C1_SCL_PORT GPIOB
-#define RTE_I2C1_SCL_BIT 8
-#else
-#error "Invalid I2C1_SCL Pin Configuration!"
-#endif
-
-// I2C1_SDA Pin <0=>PB7 <1=>PB9
-#define RTE_I2C1_SDA_PORT_ID 0
-#if (RTE_I2C1_SDA_PORT_ID == 0)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 7
-#elif (RTE_I2C1_SDA_PORT_ID == 1)
-#define RTE_I2C1_SDA_PORT GPIOB
-#define RTE_I2C1_SDA_BIT 9
-#else
-#error "Invalid I2C1_SDA Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <5=>5
-// Selects DMA Stream (only Stream 0 or 5 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_RX_DMA 1
-#define RTE_I2C1_RX_DMA_NUMBER 1
-#define RTE_I2C1_RX_DMA_STREAM 0
-#define RTE_I2C1_RX_DMA_CHANNEL 1
-#define RTE_I2C1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <6=>6 <7=>7
-// Selects DMA Stream (only Stream 6 or 7 can be used)
-// Channel <1=>1
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C1_TX_DMA 1
-#define RTE_I2C1_TX_DMA_NUMBER 1
-#define RTE_I2C1_TX_DMA_STREAM 6
-#define RTE_I2C1_TX_DMA_CHANNEL 1
-#define RTE_I2C1_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C2 (Inter-integrated Circuit Interface 2) [Driver_I2C2]
-// Configuration settings for Driver_I2C2 in component ::Drivers:I2C
-#define RTE_I2C2 0
-
-// I2C2_SCL Pin <0=>PF1 <1=>PH4 <2=>PB10
-#define RTE_I2C2_SCL_PORT_ID 0
-#if (RTE_I2C2_SCL_PORT_ID == 0)
-#define RTE_I2C2_SCL_PORT GPIOF
-#define RTE_I2C2_SCL_BIT 1
-#elif (RTE_I2C2_SCL_PORT_ID == 1)
-#define RTE_I2C2_SCL_PORT GPIOH
-#define RTE_I2C2_SCL_BIT 4
-#elif (RTE_I2C2_SCL_PORT_ID == 2)
-#define RTE_I2C2_SCL_PORT GPIOB
-#define RTE_I2C2_SCL_BIT 10
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// I2C2_SDA Pin <0=>PF0 <1=>PH5 <2=>PB11
-#define RTE_I2C2_SDA_PORT_ID 0
-#if (RTE_I2C2_SDA_PORT_ID == 0)
-#define RTE_I2C2_SDA_PORT GPIOF
-#define RTE_I2C2_SDA_BIT 0
-#elif (RTE_I2C2_SDA_PORT_ID == 1)
-#define RTE_I2C2_SDA_PORT GPIOH
-#define RTE_I2C2_SDA_BIT 5
-#elif (RTE_I2C2_SDA_PORT_ID == 2)
-#define RTE_I2C2_SDA_PORT GPIOB
-#define RTE_I2C2_SDA_BIT 11
-#else
-#error "Invalid I2C2_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2 <3=>3
-// Selects DMA Stream (only Stream 2 or 3 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 7 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_RX_DMA 1
-#define RTE_I2C2_RX_DMA_NUMBER 1
-#define RTE_I2C2_RX_DMA_STREAM 2
-#define RTE_I2C2_RX_DMA_CHANNEL 7
-#define RTE_I2C2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <7=>7
-// Selects DMA Stream (only Stream 7 can be used)
-// Channel <7=>7
-// Selects DMA Channel (only Channel 1 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C2_TX_DMA 1
-#define RTE_I2C2_TX_DMA_NUMBER 1
-#define RTE_I2C2_TX_DMA_STREAM 7
-#define RTE_I2C2_TX_DMA_CHANNEL 7
-#define RTE_I2C2_TX_DMA_PRIORITY 0
-
-//
-
-
-// I2C3 (Inter-integrated Circuit Interface 3) [Driver_I2C3]
-// Configuration settings for Driver_I2C3 in component ::Drivers:I2C
-#define RTE_I2C3 0
-
-// I2C3_SCL Pin <0=>PH7 <1=>PA8
-#define RTE_I2C3_SCL_PORT_ID 0
-#if (RTE_I2C3_SCL_PORT_ID == 0)
-#define RTE_I2C3_SCL_PORT GPIOH
-#define RTE_I2C3_SCL_BIT 7
-#elif (RTE_I2C3_SCL_PORT_ID == 1)
-#define RTE_I2C3_SCL_PORT GPIOA
-#define RTE_I2C3_SCL_BIT 8
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// I2C3_SDA Pin <0=>PH8 <1=>PC9
-#define RTE_I2C3_SDA_PORT_ID 0
-#if (RTE_I2C3_SDA_PORT_ID == 0)
-#define RTE_I2C3_SDA_PORT GPIOH
-#define RTE_I2C3_SDA_BIT 8
-#elif (RTE_I2C3_SDA_PORT_ID == 1)
-#define RTE_I2C3_SDA_PORT GPIOC
-#define RTE_I2C3_SDA_BIT 9
-#else
-#error "Invalid I2C3_SCL Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_RX_DMA 1
-#define RTE_I2C3_RX_DMA_NUMBER 1
-#define RTE_I2C3_RX_DMA_STREAM 2
-#define RTE_I2C3_RX_DMA_CHANNEL 3
-#define RTE_I2C3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <4=>4
-// Selects DMA Stream (only Stream 4 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_I2C3_TX_DMA 1
-#define RTE_I2C3_TX_DMA_NUMBER 1
-#define RTE_I2C3_TX_DMA_STREAM 4
-#define RTE_I2C3_TX_DMA_CHANNEL 3
-#define RTE_I2C3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI1 (Serial Peripheral Interface 1) [Driver_SPI1]
-// Configuration settings for Driver_SPI1 in component ::Drivers:SPI
-#define RTE_SPI1 0
-
-// SPI1_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI1_NSS_PIN 1
-#define RTE_SPI1_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI1_NSS_BIT 4
-
-// SPI1_SCK Pin <0=>PA5 <1=>PB3
-#define RTE_SPI1_SCL_PORT_ID 0
-#if (RTE_SPI1_SCL_PORT_ID == 0)
-#define RTE_SPI1_SCL_PORT GPIOA
-#define RTE_SPI1_SCL_BIT 5
-#elif (RTE_SPI1_SCL_PORT_ID == 1)
-#define RTE_SPI1_SCL_PORT GPIOB
-#define RTE_SPI1_SCL_BIT 3
-#else
-#error "Invalid SPI1_SCK Pin Configuration!"
-#endif
-
-// SPI1_MISO Pin <0=>PA6 <1=>PB4
-#define RTE_SPI1_MISO_PORT_ID 0
-#if (RTE_SPI1_MISO_PORT_ID == 0)
-#define RTE_SPI1_MISO_PORT GPIOA
-#define RTE_SPI1_MISO_BIT 6
-#elif (RTE_SPI1_MISO_PORT_ID == 1)
-#define RTE_SPI1_MISO_PORT GPIOB
-#define RTE_SPI1_MISO_BIT 4
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// SPI1_MOSI Pin <0=>PA7 <1=>PB5
-#define RTE_SPI1_MOSI_PORT_ID 0
-#if (RTE_SPI1_MOSI_PORT_ID == 0)
-#define RTE_SPI1_MOSI_PORT GPIOA
-#define RTE_SPI1_MOSI_BIT 7
-#elif (RTE_SPI1_MOSI_PORT_ID == 1)
-#define RTE_SPI1_MOSI_PORT GPIOB
-#define RTE_SPI1_MOSI_BIT 5
-#else
-#error "Invalid SPI1_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_RX_DMA 1
-#define RTE_SPI1_RX_DMA_NUMBER 2
-#define RTE_SPI1_RX_DMA_STREAM 0
-#define RTE_SPI1_RX_DMA_CHANNEL 3
-#define RTE_SPI1_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <5=>5
-// Selects DMA Stream (only Stream 3 or 5 can be used)
-// Channel <3=>3
-// Selects DMA Channel (only Channel 3 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI1_TX_DMA 1
-#define RTE_SPI1_TX_DMA_NUMBER 2
-#define RTE_SPI1_TX_DMA_STREAM 5
-#define RTE_SPI1_TX_DMA_CHANNEL 3
-#define RTE_SPI1_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI2 (Serial Peripheral Interface 2) [Driver_SPI2]
-// Configuration settings for Driver_SPI2 in component ::Drivers:SPI
-#define RTE_SPI2 0
-
-// SPI2_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI2_NSS_PIN 1
-#define RTE_SPI2_NSS_PORT GPIO_PORT(1)
-#define RTE_SPI2_NSS_BIT 12
-
-// SPI2_SCK Pin <0=>PB10 <1=>PB13 <2=>PI1
-#define RTE_SPI2_SCL_PORT_ID 0
-#if (RTE_SPI2_SCL_PORT_ID == 0)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 10
-#elif (RTE_SPI2_SCL_PORT_ID == 1)
-#define RTE_SPI2_SCL_PORT GPIOB
-#define RTE_SPI2_SCL_BIT 13
-#elif (RTE_SPI2_SCL_PORT_ID == 2)
-#define RTE_SPI2_SCL_PORT GPIOI
-#define RTE_SPI2_SCL_BIT 1
-#else
-#error "Invalid SPI2_SCK Pin Configuration!"
-#endif
-
-// SPI2_MISO Pin <0=>PB14 <1=>PC2 <2=>PI2
-#define RTE_SPI2_MISO_PORT_ID 0
-#if (RTE_SPI2_MISO_PORT_ID == 0)
-#define RTE_SPI2_MISO_PORT GPIOB
-#define RTE_SPI2_MISO_BIT 14
-#elif (RTE_SPI2_MISO_PORT_ID == 1)
-#define RTE_SPI2_MISO_PORT GPIOC
-#define RTE_SPI2_MISO_BIT 2
-#elif (RTE_SPI2_MISO_PORT_ID == 2)
-#define RTE_SPI2_MISO_PORT GPIOI
-#define RTE_SPI2_MISO_BIT 2
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// SPI2_MOSI Pin <0=>PB15 <1=>PC3 <2=>OI3
-#define RTE_SPI2_MOSI_PORT_ID 0
-#if (RTE_SPI2_MOSI_PORT_ID == 0)
-#define RTE_SPI2_MOSI_PORT GPIOB
-#define RTE_SPI2_MOSI_BIT 15
-#elif (RTE_SPI2_MOSI_PORT_ID == 1)
-#define RTE_SPI2_MOSI_PORT GPIOC
-#define RTE_SPI2_MOSI_BIT 3
-#elif (RTE_SPI2_MOSI_PORT_ID == 2)
-#define RTE_SPI2_MOSI_PORT GPIOI
-#define RTE_SPI2_MOSI_BIT 3
-#else
-#error "Invalid SPI2_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <2=>2
-// Selects DMA Stream (only Stream 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_RX_DMA 1
-#define RTE_SPI2_RX_DMA_NUMBER 1
-#define RTE_SPI2_RX_DMA_STREAM 2
-#define RTE_SPI2_RX_DMA_CHANNEL 0
-#define RTE_SPI2_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <3=>3
-// Selects DMA Stream (only Stream 3 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI2_TX_DMA 1
-#define RTE_SPI2_TX_DMA_NUMBER 1
-#define RTE_SPI2_TX_DMA_STREAM 3
-#define RTE_SPI2_TX_DMA_CHANNEL 0
-#define RTE_SPI2_TX_DMA_PRIORITY 0
-
-//
-
-
-// SPI3 (Serial Peripheral Interface 3) [Driver_SPI3]
-// Configuration settings for Driver_SPI3 in component ::Drivers:SPI
-#define RTE_SPI3 0
-
-// SPI3_NSS Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SPI3_NSS_PIN 1
-#define RTE_SPI3_NSS_PORT GPIO_PORT(0)
-#define RTE_SPI3_NSS_BIT 15
-
-// SPI3_SCK Pin <0=>PB3 <1=>PC10
-#define RTE_SPI3_SCL_PORT_ID 0
-#if (RTE_SPI3_SCL_PORT_ID == 0)
-#define RTE_SPI3_SCL_PORT GPIOB
-#define RTE_SPI3_SCL_BIT 3
-#elif (RTE_SPI3_SCL_PORT_ID == 1)
-#define RTE_SPI3_SCL_PORT GPIOC
-#define RTE_SPI3_SCL_BIT 10
-#else
-#error "Invalid SPI3_SCK Pin Configuration!"
-#endif
-
-// SPI3_MISO Pin <0=>PB4 <1=>PC11
-#define RTE_SPI3_MISO_PORT_ID 0
-#if (RTE_SPI3_MISO_PORT_ID == 0)
-#define RTE_SPI3_MISO_PORT GPIOB
-#define RTE_SPI3_MISO_BIT 4
-#elif (RTE_SPI3_MISO_PORT_ID == 1)
-#define RTE_SPI3_MISO_PORT GPIOC
-#define RTE_SPI3_MISO_BIT 11
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// SPI3_MOSI Pin <0=>PB5 <1=>PC12
-#define RTE_SPI3_MOSI_PORT_ID 0
-#if (RTE_SPI3_MOSI_PORT_ID == 0)
-#define RTE_SPI3_MOSI_PORT GPIOB
-#define RTE_SPI3_MOSI_BIT 5
-#elif (RTE_SPI3_MOSI_PORT_ID == 1)
-#define RTE_SPI3_MOSI_PORT GPIOC
-#define RTE_SPI3_MOSI_BIT 12
-#else
-#error "Invalid SPI3_MISO Pin Configuration!"
-#endif
-
-// DMA Rx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <0=>0 <2=>2
-// Selects DMA Stream (only Stream 0 or 2 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_RX_DMA 1
-#define RTE_SPI3_RX_DMA_NUMBER 1
-#define RTE_SPI3_RX_DMA_STREAM 0
-#define RTE_SPI3_RX_DMA_CHANNEL 0
-#define RTE_SPI3_RX_DMA_PRIORITY 0
-
-// DMA Tx
-// Number <1=>1
-// Selects DMA Number (only DMA1 can be used)
-// Stream <5=>5 <7=>7
-// Selects DMA Stream (only Stream 5 or 7 can be used)
-// Channel <0=>0
-// Selects DMA Channel (only Channel 0 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SPI3_TX_DMA 1
-#define RTE_SPI3_TX_DMA_NUMBER 1
-#define RTE_SPI3_TX_DMA_STREAM 5
-#define RTE_SPI3_TX_DMA_CHANNEL 0
-#define RTE_SPI3_TX_DMA_PRIORITY 0
-
-//
-
-
-// SDIO (Secure Digital Input/Output) [Driver_MCI0]
-// Configuration settings for Driver_MCI0 in component ::Drivers:MCI
-#define RTE_SDIO 1
-
-// SDIO_CD (Card Detect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_CD_PIN 1
-#define RTE_SDIO_CD_ACTIVE 0
-#define RTE_SDIO_CD_PORT GPIO_PORT(7)
-#define RTE_SDIO_CD_BIT 15
-
-// SDIO_WP (Write Protect) Pin
-// Configure Pin if exists
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_SDIO_WP_PIN 0
-#define RTE_SDIO_WP_ACTIVE 0
-#define RTE_SDIO_WP_PORT GPIO_PORT(7)
-#define RTE_SDIO_WP_BIT 16
-
-// SDIO Bus
-// SDIO_CK Pin <0=>PC12
-#define RTE_SDIO_CK_PORT_ID 0
-#if (RTE_SDIO_CK_PORT_ID == 0)
-#define RTE_SDIO_CK_PORT GPIOC
-#define RTE_SDIO_CK_PIN 12
-#else
-#error "Invalid SDIO_CK Pin Configuration!"
-#endif
-// SDIO_CMD Pin <0=>PD2
-#define RTE_SDIO_CMD_PORT_ID 0
-#if (RTE_SDIO_CMD_PORT_ID == 0)
-#define RTE_SDIO_CMD_PORT GPIOD
-#define RTE_SDIO_CMD_PIN 2
-#else
-#error "Invalid SDIO_CDM Pin Configuration!"
-#endif
-// SDIO_D0 Pin <0=>PC8
-#define RTE_SDIO_D0_PORT_ID 0
-#if (RTE_SDIO_D0_PORT_ID == 0)
-#define RTE_SDIO_D0_PORT GPIOC
-#define RTE_SDIO_D0_PIN 8
-#else
-#error "Invalid SDIO_D0 Pin Configuration!"
-#endif
-// SDIO_D1 Pin <0=>PC9
-#define RTE_SDIO_D1_PORT_ID 0
-#if (RTE_SDIO_D1_PORT_ID == 0)
-#define RTE_SDIO_D1_PORT GPIOC
-#define RTE_SDIO_D1_PIN 9
-#else
-#error "Invalid SDIO_D1 Pin Configuration!"
-#endif
-// SDIO_D2 Pin <0=>PC10
-#define RTE_SDIO_D2_PORT_ID 0
-#if (RTE_SDIO_D2_PORT_ID == 0)
-#define RTE_SDIO_D2_PORT GPIOC
-#define RTE_SDIO_D2_PIN 10
-#else
-#error "Invalid SDIO_D2 Pin Configuration!"
-#endif
-// SDIO_D3 Pin <0=>PC11
-#define RTE_SDIO_D3_PORT_ID 0
-#if (RTE_SDIO_D3_PORT_ID == 0)
-#define RTE_SDIO_D3_PORT GPIOC
-#define RTE_SDIO_D3_PIN 11
-#else
-#error "Invalid SDIO_D3 Pin Configuration!"
-#endif
-// SDIO_D4 Pin <0=>PB8
-#define RTE_SDIO_D4_PORT_ID 0
-#if (RTE_SDIO_D4_PORT_ID == 0)
-#define RTE_SDIO_D4_PORT GPIOB
-#define RTE_SDIO_D4_PIN 8
-#else
-#error "Invalid SDIO_D4 Pin Configuration!"
-#endif
-// SDIO_D5 Pin <0=>PB9
-#define RTE_SDIO_D5_PORT_ID 0
-#if (RTE_SDIO_D5_PORT_ID == 0)
-#define RTE_SDIO_D5_PORT GPIOB
-#define RTE_SDIO_D5_PIN 9
-#else
-#error "Invalid SDIO_D5 Pin Configuration!"
-#endif
-// SDIO_D6 Pin <0=>PC6
-#define RTE_SDIO_D6_PORT_ID 0
-#if (RTE_SDIO_D6_PORT_ID == 0)
-#define RTE_SDIO_D6_PORT GPIOC
-#define RTE_SDIO_D6_PIN 6
-#else
-#error "Invalid SDIO_D6 Pin Configuration!"
-#endif
-// SDIO_D7 Pin <0=>PC7
-#define RTE_SDIO_D7_PORT_ID 0
-#if (RTE_SDIO_D7_PORT_ID == 0)
-#define RTE_SDIO_D7_PORT GPIOC
-#define RTE_SDIO_D7_PIN 7
-#else
-#error "Invalid SDIO_D7 Pin Configuration!"
-#endif
-//
-
-// DMA
-// Number <2=>2
-// Selects DMA Number (only DMA2 can be used)
-// Stream <3=>3 <6=>6
-// Selects DMA Stream (only Stream 3 or 6 can be used)
-// Channel <4=>4
-// Selects DMA Channel (only Channel 4 can be used)
-// Priority <0=>Low <1=>Medium <2=>High <3=>Very High
-// Selects DMA Priority
-//
-#define RTE_SDIO_DMA 1
-#define RTE_SDIO_DMA_NUMBER 2
-#define RTE_SDIO_DMA_STREAM 3
-#define RTE_SDIO_DMA_CHANNEL 4
-#define RTE_SDIO_DMA_PRIORITY 0
-
-//
-
-
-// ETH (Ethernet Interface) [Driver_ETH_MAC0]
-// Configuration settings for Driver_ETH_MAC0 in component ::Drivers:Ethernet MAC
-#define RTE_ETH 1
-
-// MII (Media Independent Interface)
-#define RTE_ETH_MII 0
-
-// ETH_MII_TX_CLK Pin <0=>PC3
-#define RTE_ETH_MII_TX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_TX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_TX_CLK_PORT GPIOC
-#define RTE_ETH_MII_TX_CLK_PIN 3
-#else
-#error "Invalid ETH_MII_TX_CLK Pin Configuration!"
-#endif
-// ETH_MII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_MII_TXD0_PORT_ID 0
-#if (RTE_ETH_MII_TXD0_PORT_ID == 0)
-#define RTE_ETH_MII_TXD0_PORT GPIOB
-#define RTE_ETH_MII_TXD0_PIN 12
-#elif (RTE_ETH_MII_TXD0_PORT_ID == 1)
-#define RTE_ETH_MII_TXD0_PORT GPIOG
-#define RTE_ETH_MII_TXD0_PIN 13
-#else
-#error "Invalid ETH_MII_TXD0 Pin Configuration!"
-#endif
-// ETH_MII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_MII_TXD1_PORT_ID 0
-#if (RTE_ETH_MII_TXD1_PORT_ID == 0)
-#define RTE_ETH_MII_TXD1_PORT GPIOB
-#define RTE_ETH_MII_TXD1_PIN 13
-#elif (RTE_ETH_MII_TXD1_PORT_ID == 1)
-#define RTE_ETH_MII_TXD1_PORT GPIOG
-#define RTE_ETH_MII_TXD1_PIN 14
-#else
-#error "Invalid ETH_MII_TXD1 Pin Configuration!"
-#endif
-// ETH_MII_TXD2 Pin <0=>PC2
-#define RTE_ETH_MII_TXD2_PORT_ID 0
-#if (RTE_ETH_MII_TXD2_PORT_ID == 0)
-#define RTE_ETH_MII_TXD2_PORT GPIOC
-#define RTE_ETH_MII_TXD2_PIN 2
-#else
-#error "Invalid ETH_MII_TXD2 Pin Configuration!"
-#endif
-// ETH_MII_TXD3 Pin <0=>PB8 <1=>PE2
-#define RTE_ETH_MII_TXD3_PORT_ID 0
-#if (RTE_ETH_MII_TXD3_PORT_ID == 0)
-#define RTE_ETH_MII_TXD3_PORT GPIOB
-#define RTE_ETH_MII_TXD3_PIN 8
-#elif (RTE_ETH_MII_TXD3_PORT_ID == 1)
-#define RTE_ETH_MII_TXD3_PORT GPIOE
-#define RTE_ETH_MII_TXD3_PIN 2
-#else
-#error "Invalid ETH_MII_TXD3 Pin Configuration!"
-#endif
-// ETH_MII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_MII_TX_EN_PORT_ID 0
-#if (RTE_ETH_MII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_MII_TX_EN_PORT GPIOB
-#define RTE_ETH_MII_TX_EN_PIN 11
-#elif (RTE_ETH_MII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_MII_TX_EN_PORT GPIOG
-#define RTE_ETH_MII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_MII_TX_EN Pin Configuration!"
-#endif
-// ETH_MII_RX_CLK Pin <0=>PA1
-#define RTE_ETH_MII_RX_CLK_PORT_ID 0
-#if (RTE_ETH_MII_RX_CLK_PORT_ID == 0)
-#define RTE_ETH_MII_RX_CLK_PORT GPIOA
-#define RTE_ETH_MII_RX_CLK_PIN 1
-#else
-#error "Invalid ETH_MII_RX_CLK Pin Configuration!"
-#endif
-// ETH_MII_RXD0 Pin <0=>PC4
-#define RTE_ETH_MII_RXD0_PORT_ID 0
-#if (RTE_ETH_MII_RXD0_PORT_ID == 0)
-#define RTE_ETH_MII_RXD0_PORT GPIOC
-#define RTE_ETH_MII_RXD0_PIN 4
-#else
-#error "Invalid ETH_MII_RXD0 Pin Configuration!"
-#endif
-// ETH_MII_RXD1 Pin <0=>PC5
-#define RTE_ETH_MII_RXD1_PORT_ID 0
-#if (RTE_ETH_MII_RXD1_PORT_ID == 0)
-#define RTE_ETH_MII_RXD1_PORT GPIOC
-#define RTE_ETH_MII_RXD1_PIN 5
-#else
-#error "Invalid ETH_MII_RXD1 Pin Configuration!"
-#endif
-// ETH_MII_RXD2 Pin <0=>PB0 <1=>PH6
-#define RTE_ETH_MII_RXD2_PORT_ID 0
-#if (RTE_ETH_MII_RXD2_PORT_ID == 0)
-#define RTE_ETH_MII_RXD2_PORT GPIOB
-#define RTE_ETH_MII_RXD2_PIN 0
-#elif (RTE_ETH_MII_RXD2_PORT_ID == 1)
-#define RTE_ETH_MII_RXD2_PORT GPIOH
-#define RTE_ETH_MII_RXD2_PIN 6
-#else
-#error "Invalid ETH_MII_RXD2 Pin Configuration!"
-#endif
-// ETH_MII_RXD3 Pin <0=>PB1 <1=>PH7
-#define RTE_ETH_MII_RXD3_PORT_ID 0
-#if (RTE_ETH_MII_RXD3_PORT_ID == 0)
-#define RTE_ETH_MII_RXD3_PORT GPIOB
-#define RTE_ETH_MII_RXD3_PIN 1
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RXD3_PORT GPIOH
-#define RTE_ETH_MII_RXD3_PIN 7
-#else
-#error "Invalid ETH_MII_RXD3 Pin Configuration!"
-#endif
-// ETH_MII_RX_DV Pin <0=>PA7
-#define RTE_ETH_MII_RX_DV_PORT_ID 0
-#if (RTE_ETH_MII_RX_DV_PORT_ID == 0)
-#define RTE_ETH_MII_RX_DV_PORT GPIOA
-#define RTE_ETH_MII_RX_DV_PIN 7
-#else
-#error "Invalid ETH_MII_RX_DV Pin Configuration!"
-#endif
-// ETH_MII_RX_ER Pin <0=>PB10 <1=>PI10
-#define RTE_ETH_MII_RX_ER_PORT_ID 0
-#if (RTE_ETH_MII_RX_ER_PORT_ID == 0)
-#define RTE_ETH_MII_RX_ER_PORT GPIOB
-#define RTE_ETH_MII_RX_ER_PIN 10
-#elif (RTE_ETH_MII_RXD3_PORT_ID == 1)
-#define RTE_ETH_MII_RX_ER_PORT GPIOI
-#define RTE_ETH_MII_RX_ER_PIN 10
-#else
-#error "Invalid ETH_MII_RX_ER Pin Configuration!"
-#endif
-// ETH_MII_CRS Pin <0=>PA0 <1=>PH2
-#define RTE_ETH_MII_CRS_PORT_ID 0
-#if (RTE_ETH_MII_CRS_PORT_ID == 0)
-#define RTE_ETH_MII_CRS_PORT GPIOA
-#define RTE_ETH_MII_CRS_PIN 0
-#elif (RTE_ETH_MII_CRS_PORT_ID == 1)
-#define RTE_ETH_MII_CRS_PORT GPIOH
-#define RTE_ETH_MII_CRS_PIN 2
-#else
-#error "Invalid ETH_MII_CRS Pin Configuration!"
-#endif
-// ETH_MII_COL Pin <0=>PA3 <1=>PH3
-#define RTE_ETH_MII_COL_PORT_ID 0
-#if (RTE_ETH_MII_COL_PORT_ID == 0)
-#define RTE_ETH_MII_COL_PORT GPIOA
-#define RTE_ETH_MII_COL_PIN 3
-#elif (RTE_ETH_MII_COL_PORT_ID == 1)
-#define RTE_ETH_MII_COL_PORT GPIOH
-#define RTE_ETH_MII_COL_PIN 3
-#else
-#error "Invalid ETH_MII_COL Pin Configuration!"
-#endif
-
-//
-
-// RMII (Reduced Media Independent Interface)
-#define RTE_ETH_RMII 1
-
-// ETH_RMII_TXD0 Pin <0=>PB12 <1=>PG13
-#define RTE_ETH_RMII_TXD0_PORT_ID 1
-#if (RTE_ETH_RMII_TXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD0_PORT GPIOB
-#define RTE_ETH_RMII_TXD0_PIN 12
-#elif (RTE_ETH_RMII_TXD0_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD0_PORT GPIOG
-#define RTE_ETH_RMII_TXD0_PIN 13
-#else
-#error "Invalid ETH_RMII_TXD0 Pin Configuration!"
-#endif
-// ETH_RMII_TXD1 Pin <0=>PB13 <1=>PG14
-#define RTE_ETH_RMII_TXD1_PORT_ID 1
-#if (RTE_ETH_RMII_TXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_TXD1_PORT GPIOB
-#define RTE_ETH_RMII_TXD1_PIN 13
-#elif (RTE_ETH_RMII_TXD1_PORT_ID == 1)
-#define RTE_ETH_RMII_TXD1_PORT GPIOG
-#define RTE_ETH_RMII_TXD1_PIN 14
-#else
-#error "Invalid ETH_RMII_TXD1 Pin Configuration!"
-#endif
-// ETH_RMII_TX_EN Pin <0=>PB11 <1=>PG11
-#define RTE_ETH_RMII_TX_EN_PORT_ID 1
-#if (RTE_ETH_RMII_TX_EN_PORT_ID == 0)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOB
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#elif (RTE_ETH_RMII_TX_EN_PORT_ID == 1)
-#define RTE_ETH_RMII_TX_EN_PORT GPIOG
-#define RTE_ETH_RMII_TX_EN_PIN 11
-#else
-#error "Invalid ETH_RMII_TX_EN Pin Configuration!"
-#endif
-// ETH_RMII_RXD0 Pin <0=>PC4
-#define RTE_ETH_RMII_RXD0_PORT_ID 0
-#if (RTE_ETH_RMII_RXD0_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD0_PORT GPIOC
-#define RTE_ETH_RMII_RXD0_PIN 4
-#else
-#error "Invalid ETH_RMII_RXD0 Pin Configuration!"
-#endif
-// ETH_RMII_RXD1 Pin <0=>PC5
-#define RTE_ETH_RMII_RXD1_PORT_ID 0
-#if (RTE_ETH_RMII_RXD1_PORT_ID == 0)
-#define RTE_ETH_RMII_RXD1_PORT GPIOC
-#define RTE_ETH_RMII_RXD1_PIN 5
-#else
-#error "Invalid ETH_RMII_RXD1 Pin Configuration!"
-#endif
-// ETH_RMII_REF_CLK Pin <0=>PA1
-#define RTE_ETH_RMII_REF_CLK_PORT_ID 0
-#if (RTE_ETH_RMII_REF_CLK_PORT_ID == 0)
-#define RTE_ETH_RMII_REF_CLK_PORT GPIOA
-#define RTE_ETH_RMII_REF_CLK_PIN 1
-#else
-#error "Invalid ETH_RMII_REF_CLK Pin Configuration!"
-#endif
-// ETH_RMII_CRS_DV Pin <0=>PA7
-#define RTE_ETH_RMII_CRS_DV_PORT_ID 0
-#if (RTE_ETH_RMII_CRS_DV_PORT_ID == 0)
-#define RTE_ETH_RMII_CRS_DV_PORT GPIOA
-#define RTE_ETH_RMII_CRS_DV_PIN 7
-#else
-#error "Invalid ETH_RMII_CRS_DV Pin Configuration!"
-#endif
-
-//
-
-// Management Data Interface
-// ETH_MDC Pin <0=>PC1
-#define RTE_ETH_MDI_MDC_PORT_ID 0
-#if (RTE_ETH_MDI_MDC_PORT_ID == 0)
-#define RTE_ETH_MDI_MDC_PORT GPIOC
-#define RTE_ETH_MDI_MDC_PIN 1
-#else
-#error "Invalid ETH_MDC Pin Configuration!"
-#endif
-// ETH_MDIO Pin <0=>PA2
-#define RTE_ETH_MDI_MDIO_PORT_ID 0
-#if (RTE_ETH_MDI_MDIO_PORT_ID == 0)
-#define RTE_ETH_MDI_MDIO_PORT GPIOA
-#define RTE_ETH_MDI_MDIO_PIN 2
-#else
-#error "Invalid ETH_MDIO Pin Configuration!"
-#endif
-//
-
-// Reference 25MHz/50MHz Clock generation
-#define RTE_ETH_REF_CLOCK 0
-
-// MCO Pin <0=>PA2 <1=>PC9
-#define RTE_ETH_REF_CLOCK_PORT_ID 0
-#if (RTE_ETH_REF_CLOCK_PORT_ID == 0)
-#define RTE_ETH_REF_CLOCK_PORT GPIOA
-#define RTE_ETH_REF_CLOCK_PIN 8
-#elif (RTE_ETH_REF_CLOCK_PORT_ID == 1)
-#define RTE_ETH_REF_CLOCK_PORT GPIOC
-#define RTE_ETH_REF_CLOCK_PIN 9
-#else
-#error "Invalid MCO Pin Configuration!"
-#endif
-
-//
-
-//
-
-
-// USB OTG Full-speed
-#define RTE_USB_OTG_FS 0
-
-// Device [Driver_USBD0]
-// Configuration settings for Driver_USBD0 in component ::Drivers:USB Device
-#define RTE_USB_OTG_FS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_FS_DEV_EP 0x0000000F
-#define RTE_USB_OTG_FS_DEV_EP_BULK 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_INT 0x000E000E
-#define RTE_USB_OTG_FS_DEV_EP_ISO 0x000E000E
-
-//
-
-// Host [Driver_USBH0]
-// Configuration settings for Driver_USBH0 in component ::Drivers:USB Host
-
-#define RTE_USB_OTG_FS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_VBUS_PIN 1
-#define RTE_OTG_FS_VBUS_ACTIVE 0
-#define RTE_OTG_FS_VBUS_PORT GPIO_PORT(7)
-#define RTE_OTG_FS_VBUS_BIT 5
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_FS_OC_PIN 1
-#define RTE_OTG_FS_OC_ACTIVE 0
-#define RTE_OTG_FS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_FS_OC_BIT 11
-//
-
-//
-
-
-// USB OTG High-speed
-#define RTE_USB_OTG_HS 0
-
-// PHY (Physical Layer)
-
-// PHY Interface
-// <0=>On-chip full-speed PHY
-// <1=>External ULPI high-speed PHY
-#define RTE_USB_OTG_HS_PHY 1
-
-// External ULPI Pins (UTMI+ Low Pin Interface)
-
-// OTG_HS_ULPI_CK Pin <0=>PA5
-#define RTE_USB_OTG_HS_ULPI_CK_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_CK_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_CK_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_CK_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_CK Pin Configuration!"
-#endif
-// OTG_HS_ULPI_DIR Pin <0=>PI11 <1=>PC2
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOI
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 11
-#elif (RTE_USB_OTG_HS_ULPI_DIR_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_DIR_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_DIR_PIN 2
-#else
-#error "Invalid OTG_HS_ULPI_DIR Pin Configuration!"
-#endif
-// OTG_HS_ULPI_STP Pin <0=>PC0
-#define RTE_USB_OTG_HS_ULPI_STP_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_STP_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_STP_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_STP_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_STP Pin Configuration!"
-#endif
-// OTG_HS_ULPI_NXT Pin <0=>PC2 <1=>PH4
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT_ID 1
-#if (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOC
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 2
-#elif (RTE_USB_OTG_HS_ULPI_NXT_PORT_ID == 1)
-#define RTE_USB_OTG_HS_ULPI_NXT_PORT GPIOH
-#define RTE_USB_OTG_HS_ULPI_NXT_PIN 4
-#else
-#error "Invalid OTG_HS_ULPI_NXT Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D0 Pin <0=>PA3
-#define RTE_USB_OTG_HS_ULPI_D0_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D0_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D0_PORT GPIOA
-#define RTE_USB_OTG_HS_ULPI_D0_PIN 3
-#else
-#error "Invalid OTG_HS_ULPI_D0 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D1 Pin <0=>PB0
-#define RTE_USB_OTG_HS_ULPI_D1_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D1_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D1_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D1_PIN 0
-#else
-#error "Invalid OTG_HS_ULPI_D1 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D2 Pin <0=>PB1
-#define RTE_USB_OTG_HS_ULPI_D2_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D2_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D2_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D2_PIN 1
-#else
-#error "Invalid OTG_HS_ULPI_D2 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D3 Pin <0=>PB10
-#define RTE_USB_OTG_HS_ULPI_D3_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D3_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D3_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D3_PIN 10
-#else
-#error "Invalid OTG_HS_ULPI_D3 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D4 Pin <0=>PB11
-#define RTE_USB_OTG_HS_ULPI_D4_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D4_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D4_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D4_PIN 11
-#else
-#error "Invalid OTG_HS_ULPI_D4 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D5 Pin <0=>PB12
-#define RTE_USB_OTG_HS_ULPI_D5_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D5_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D5_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D5_PIN 12
-#else
-#error "Invalid OTG_HS_ULPI_D5 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D6 Pin <0=>PB13
-#define RTE_USB_OTG_HS_ULPI_D6_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D6_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D6_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D6_PIN 13
-#else
-#error "Invalid OTG_HS_ULPI_D6 Pin Configuration!"
-#endif
-// OTG_HS_ULPI_D7 Pin <0=>PB5
-#define RTE_USB_OTG_HS_ULPI_D7_PORT_ID 0
-#if (RTE_USB_OTG_HS_ULPI_D7_PORT_ID == 0)
-#define RTE_USB_OTG_HS_ULPI_D7_PORT GPIOB
-#define RTE_USB_OTG_HS_ULPI_D7_PIN 5
-#else
-#error "Invalid OTG_HS_ULPI_D7 Pin Configuration!"
-#endif
-
-//
-
-//
-
-// Device [Driver_USBD1]
-// Configuration settings for Driver_USBD1 in component ::Drivers:USB Device
-#define RTE_USB_OTG_HS_DEV 1
-
-// Endpoints
-// Reduce memory requirements of Driver by disabling unused endpoints
-// Endpoint 1
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 2
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 3
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 4
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-// Endpoint 5
-// Bulk OUT
-// Bulk IN
-// Interrupt OUT
-// Interrupt IN
-// Isochronous OUT
-// Isochronous IN
-//
-//
-#define RTE_USB_OTG_HS_DEV_EP 0x0000003F
-#define RTE_USB_OTG_HS_DEV_EP_BULK 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_INT 0x003E003E
-#define RTE_USB_OTG_HS_DEV_EP_ISO 0x003E003E
-
-//
-
-// Host [Driver_USBH1]
-// Configuration settings for Driver_USBH1 in component ::Drivers:USB Host
-#define RTE_USB_OTG_HS_HOST 1
-
-// VBUS Power On/Off Pin
-// Configure Pin for driving VBUS
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_VBUS_PIN 1
-#define RTE_OTG_HS_VBUS_ACTIVE 0
-#define RTE_OTG_HS_VBUS_PORT GPIO_PORT(2)
-#define RTE_OTG_HS_VBUS_BIT 2
-
-// Overcurrent Detection Pin
-// Configure Pin for overcurrent detection
-// GPIO Pxy (x = A..H, y = 0..15) or (x = I, y = 0..11)
-// Active State <0=>Low <1=>High
-// Selects Active State Logical Level
-// Port <0=>GPIOA <1=>GPIOB <2=>GPIOC <3=>GPIOD
-// <4=>GPIOE <5=>GPIOF <6=>GPIOG <7=>GPIOH <8=>GPIOI
-// Selects Port Name
-// Bit <0-15>
-// Selects Port Bit
-//
-#define RTE_OTG_HS_OC_PIN 1
-#define RTE_OTG_HS_OC_ACTIVE 0
-#define RTE_OTG_HS_OC_PORT GPIO_PORT(5)
-#define RTE_OTG_HS_OC_BIT 12
-//
-
-//
-
-
-// EXTI (External Interrupt/Event Controller)
-#define RTE_EXTI 0
-
-// EXTI0 Line
-#define RTE_EXTI0 0
-// Pin <0=>PA0 <1=>PB0 <2=>PC0 <3=>PD0 <4=>PE0 <5=>PF0 <6=>PG0 <7=>PH0 <8=>PI0
-#define RTE_EXTI0_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI0_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI0_TRIGGER 0
-//
-
-// EXTI1 Line
-#define RTE_EXTI1 0
-// Pin <0=>PA1 <1=>PB1 <2=>PC1 <3=>PD1 <4=>PE1 <5=>PF1 <6=>PG1 <7=>PH1 <8=>PI1
-#define RTE_EXTI1_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI1_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI1_TRIGGER 0
-//
-
-// EXTI2 Line
-#define RTE_EXTI2 0
-// Pin <0=>PA2 <1=>PB2 <2=>PC2 <3=>PD2 <4=>PE2 <5=>PF2 <6=>PG2 <7=>PH2 <8=>PI2
-#define RTE_EXTI2_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI2_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI2_TRIGGER 0
-//
-
-// EXTI3 Line
-#define RTE_EXTI3 0
-// Pin <0=>PA3 <1=>PB3 <2=>PC3 <3=>PD3 <4=>PE3 <5=>PF3 <6=>PG3 <7=>PH3 <8=>PI3
-#define RTE_EXTI3_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI3_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI3_TRIGGER 0
-//
-
-// EXTI4 Line
-#define RTE_EXTI4 0
-// Pin <0=>PA4 <1=>PB4 <2=>PC4 <3=>PD4 <4=>PE4 <5=>PF4 <6=>PG4 <7=>PH4 <8=>PI4
-#define RTE_EXTI4_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI4_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI4_TRIGGER 0
-//
-
-// EXTI5 Line
-#define RTE_EXTI5 0
-// Pin <0=>PA5 <1=>PB5 <2=>PC5 <3=>PD5 <4=>PE5 <5=>PF5 <6=>PG5 <7=>PH5 <8=>PI5
-#define RTE_EXTI5_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI5_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI5_TRIGGER 0
-//
-
-// EXTI6 Line
-#define RTE_EXTI6 0
-// Pin <0=>PA6 <1=>PB6 <2=>PC6 <3=>PD6 <4=>PE6 <5=>PF6 <6=>PG6 <7=>PH6 <8=>PI6
-#define RTE_EXTI6_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI6_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI6_TRIGGER 0
-//
-
-// EXTI7 Line
-#define RTE_EXTI7 0
-// Pin <0=>PA7 <1=>PB7 <2=>PC7 <3=>PD7 <4=>PE7 <5=>PF7 <6=>PG7 <7=>PH7 <8=>PI7
-#define RTE_EXTI7_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI7_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI7_TRIGGER 0
-//
-
-// EXTI8 Line
-#define RTE_EXTI8 0
-// Pin <0=>PA8 <1=>PB8 <2=>PC8 <3=>PD8 <4=>PE8 <5=>PF8 <6=>PG8 <7=>PH8 <8=>PI8
-#define RTE_EXTI8_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI8_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI8_TRIGGER 0
-//
-
-// EXTI9 Line
-#define RTE_EXTI9 0
-// Pin <0=>PA9 <1=>PB9 <2=>PC9 <3=>PD9 <4=>PE9 <5=>PF9 <6=>PG9 <7=>PH9 <8=>PI9
-#define RTE_EXTI9_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI9_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI9_TRIGGER 0
-//
-
-// EXTI10 Line
-#define RTE_EXTI10 0
-// Pin <0=>PA10 <1=>PB10 <2=>PC10 <3=>PD10 <4=>PE10 <5=>PF10 <6=>PG10 <7=>PH10 <8=>PI10
-#define RTE_EXTI10_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI10_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI10_TRIGGER 0
-//
-
-// EXTI11 Line
-#define RTE_EXTI11 0
-// Pin <0=>PA11 <1=>PB11 <2=>PC11 <3=>PD11 <4=>PE11 <5=>PF11 <6=>PG11 <7=>PH11 <8=>PI11
-#define RTE_EXTI11_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI11_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI11_TRIGGER 0
-//
-
-// EXTI12 Line
-#define RTE_EXTI12 0
-// Pin <0=>PA12 <1=>PB12 <2=>PC12 <3=>PD12 <4=>PE12 <5=>PF12 <6=>PG12 <7=>PH12
-#define RTE_EXTI12_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI12_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI12_TRIGGER 0
-//
-
-// EXTI13 Line
-#define RTE_EXTI13 0
-// Pin <0=>PA13 <1=>PB13 <2=>PC13 <3=>PD13 <4=>PE13 <5=>PF13 <6=>PG13 <7=>PH13
-#define RTE_EXTI13_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI13_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI13_TRIGGER 0
-//
-
-// EXTI14 Line
-#define RTE_EXTI14 0
-// Pin <0=>PA14 <1=>PB14 <2=>PC14 <3=>PD14 <4=>PE14 <5=>PF14 <6=>PG14 <7=>PH14
-#define RTE_EXTI14_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI14_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI14_TRIGGER 0
-//
-
-// EXTI15 Line
-#define RTE_EXTI15 0
-// Pin <0=>PA15 <1=>PB15 <2=>PC15 <3=>PD15 <4=>PE15 <5=>PF15 <6=>PG15 <7=>PH15
-#define RTE_EXTI15_PIN 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI15_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI15_TRIGGER 0
-//
-
-// EXTI16 Line: PVD Output
-#define RTE_EXTI16 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI16_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI16_TRIGGER 0
-//
-
-// EXTI17 Line: RTC Alarm
-#define RTE_EXTI17 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI17_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI17_TRIGGER 0
-//
-
-// EXTI18 Line: USB OTG FS Wakeup
-#define RTE_EXTI18 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI18_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI18_TRIGGER 0
-//
-
-// EXTI19 Line: Ethernet Wakeup
-#define RTE_EXTI19 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI19_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI19_TRIGGER 0
-//
-
-// EXTI20 Line: USB OTG HS Wakeup
-#define RTE_EXTI20 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI20_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI20_TRIGGER 0
-//
-
-// EXTI21 Line: RTC Tamper and TimeStamp
-#define RTE_EXTI21 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI21_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI21_TRIGGER 0
-//
-
-// EXTI22 Line: RTC Wakeup
-#define RTE_EXTI22 0
-// Mode <0=>Interrupt <1=>Event
-#define RTE_EXTI22_MODE 0
-// Trigger <0=>None <1=>Raising edge <2=>Falling edge <3=>Any edge
-#define RTE_EXTI22_TRIGGER 0
-//
-
-//
-
-
-// FSMC (Flexible Static Memory Controller)
-#define RTE_FSMC 0
-
-// Pin Configuration
-// Configure Pins
-#define RTE_FSMC_PINS 0
-
-// Address Bus Pins
-// <0=>A[17:16]
-// <1=>A[10:0] <2=>A[15:0] <3=>A[16:0] <4=>A[17:0]
-// <5=>A[18:0] <6=>A[19:0] <7=>A[20:0] <8=>A[21:0]
-// <9=>A[22:0] <10=>A[23:0] <11=>A[24:0] <12=>A[25:0]
-#define RTE_FSMC_ABUS_PINS 10
-// Data Bus Pins <0=>D[7:0] <1=>D[15:0]
-#define RTE_FSMC_DBUS_PINS 0
-// FSMC_NOE Pin
-#define RTE_FSMC_NOE_PIN 0
-// FSMC_NWE Pin
-#define RTE_FSMC_NWE_PIN 0
-// FSMC_NBL0 Pin
-#define RTE_FSMC_NBL0_PIN 0
-// FSMC_NBL1 Pin
-#define RTE_FSMC_NBL1_PIN 0
-// FSMC_NL Pin
-#define RTE_FSMC_NL_PIN 0
-// FSMC_NWAIT Pin
-#define RTE_FSMC_NWAIT_PIN 0
-// FSMC_CLK Pin
-#define RTE_FSMC_CLK_PIN 0
-// FSMC_NE1/NCE2 Pin
-#define RTE_FSMC_NE1_PIN 0
-// FSMC_NE2/NCE3 Pin
-#define RTE_FSMC_NE2_PIN 0
-// FSMC_NE3/NCE4_1 Pin
-#define RTE_FSMC_NE3_PIN 0
-// FSMC_NE4 Pin
-#define RTE_FSMC_NE4_PIN 0
-// FSMC_NCE4_2 Pin
-#define RTE_FSMC_NCE42_PIN 0
-// FSMC_INT2 Pin
-#define RTE_FSMC_INT2_PIN 0
-// FSMC_INT3 Pin
-#define RTE_FSMC_INT3_PIN 0
-// FSMC_INTR Pin
-#define RTE_FSMC_INTR_PIN 0
-// FSMC_NIORD Pin
-#define RTE_FSMC_NIORD_PIN 0
-// FSMC_NIOWR Pin
-#define RTE_FSMC_NIOWR_PIN 0
-// FSMC_NREG Pin
-#define RTE_FSMC_NREG_PIN 0
-// FSMC_CD Pin
-#define RTE_FSMC_CD_PIN 0
-
-//
-
-// NOR Flash / PSRAM Controller
-
-// FSMC_NE1 Chip Select
-// Configure Device on Chip Select FSMC_NE1
-#define RTE_FSMC_NE1 0
-
-// Chip-select control
-// CBURSTRW: Write burst enable <0=>Asynchronous write <1=>Synchronous write
-// For Cellular RAM, this enables synchronous burst protocol during write operations. For Flash
-// memory access in burst mode, this enables/disables the wait state insertion via the NWAIT signal.
-// ASYNCWAIT: Wait signal during asynchronous transfer
-// Enables the FSMC to use the wait signal even during an asynchronous protocol.
-// EXTMOD: Extended mode enable
-// Enables the FSMC to program inside the write timing register, so it allows different timings for read and write.
-// WAITEN: Wait enable
-// For Flash memory access in burst mode, this enables/disables wait-state insertion via the NWAIT signal.
-// WREN: Write enable
-// Enable/disable write operations in the current bank by the FSMC
-// WAITCFG: Wait timing configuration <0=> NWAIT active before wait state <1=>NWAIT active during wait state
-// For memory access in burst mode, the NWAIT signal indicates whether the data from the memory
-// are valid or if a wait state must be inserted. This configuration bit determines if NWAIT is asserted
-// by the memory one clock cycle before the wait state or during the wait state
-// WAITPOL: Wait signal polarity <0=>NWAIT active low <1=>NWAIT active high
-// Defines the polarity of the wait signal from memory. Valid only when accessing the memory in burst mode.
-// BURSTEN: Burst enable
-// Enables the burst access mode for the memory. Valid only with synchronous burst memories.
-// FACCEN: Flash access enable
-// Enables NOR Flash memory access operations.
-// MWID: Memory databus width <0=>8 bits <1=>16 bits
-// Defines the external memory device width, valid for all type of memories.
-// MTYP: Memory type <0=>SRAM, ROM <1=>PSRAM (Cellular RAM: CRAM) <2=>NOR Flash/OneNAND Flash
-// Defines the type of external memory attached to the corresponding memory bank.
-// MUXEN: Address/data multiplexing enable
-// When enabled, the address and data values are multiplexed on the databus, valid only with NOR and PSRAM memories.
-// MBKEN: Memory bank enable
-// Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a
-// disabled bank causes an ERROR on AHB bus.
-#define RTE_FSMC_BCR1_CBURSTRW 0
-#define RTE_FSMC_BCR1_ASYNCWAIT 0
-#define RTE_FSMC_BCR1_EXTMOD 0
-#define RTE_FSMC_BCR1_WAITEN 1
-#define RTE_FSMC_BCR1_WREN 1
-#define RTE_FSMC_BCR1_WAITCFG 0
-#define RTE_FSMC_BCR1_WRAPMOD 0
-#define RTE_FSMC_BCR1_WAITPOL 0
-#define RTE_FSMC_BCR1_BURSTEN 0
-#define RTE_FSMC_BCR1_FACCEN 1
-#define RTE_FSMC_BCR1_MWID 1
-#define RTE_FSMC_BCR1_MTYP 2
-#define RTE_FSMC_BCR1_MUXEN 1
-#define RTE_FSMC_BCR1_MBKEN 1
-//
-
-// Chip-select timing
-// ACCMOD: Access mode <0=>Mode A <1=>Mode B <2=>Mode C <3=>Mode D
-// Specifies the asynchronous access modes. Access mode is taken into account only when
-// Extended mode is enabled in the Chip-select control register.
-// DATLAT: Data latency <0-15>
-// For NOR Flash with synchronous burst mode enabled, defines the number of memory clock
-// cycles (+2) to issue to the memory before getting the first data:
-// 0000: Data latency of 2 CLK clock cycles for first burst access
-// 1111: Data latency of 17 CLK clock cycles for first burst access (default value after reset)
-// Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK)
-// periods. In asynchronous NOR Flash, SRAM or ROM accesses, this value is don't care.
-// In the case of CRAM, this field must be set to ‘0’.
-// CLKDIV: Clock divide ratio (for CLK signal) <1-15>
-// Defines the period of CLK clock output signal, expressed in number of HCLK cycles:
-// 0000: Reserved
-// 0001: CLK period = 2 × HCLK periods
-// 0010: CLK period = 3 × HCLK periods
-// 1111: CLK period = 16 × HCLK periods (default value after reset)
-// In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.
-// BUSTURN: Bus turnaround phase duration <0-15>
-// Define the bus turnaround delay after a read access only
-// from multiplexed NOR Flash memory to avoid bus contention if the controller needs to drive
-// addresses on the databus for the next side-by-side transaction. BUSTURN can be set to the
-// minimum if the slowest memory does not take more than 6 HCLK clock cycles to put the
-// databus in Hi-Z state.
-// These bits are written by software to add a delay at the end of a write/read transaction. This
-// delay allows to match the minimum time between consecutive transactions (tEHEL from NEx
-// high to NEx low) and the maximum time needed by the memory to free the data bus after a
-// read access (tEHQZ):
-// (BUSTRUN + 1)HCLK period = tEHELmin and (BUSTRUN + 2)HCLK period = tEHQZmax if
-// EXTMOD = ‘0’
-// (BUSTRUN + 2)HCLK period = max (tEHELmin, tEHQZmax) if EXTMOD = ‘1’.
-// 0000: BUSTURN phase duration = 0 HCLK clock cycle added
-// ...
-// 1111: BUSTURN phase duration = 15 × HCLK clock cycles (default value after reset)
-// DATAST: Data phase duration <1-255>
-// Define the duration of the data phase used in SRAMs, ROMs and asynchronous NOR Flash accesses.
-// 0000 0000: Reserved
-// 0000 0001: DATAST phase duration = 1 × HCLK clock cycles
-// 0000 0010: DATAST phase duration = 2 × HCLK clock cycles
-// ...
-// 1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)
-// Note: In synchronous accesses, this value is don't care.
-// ADDHLD: Address hold phase duration <1-15>
-// Define the duration of the address hold phase used in mode D and multiplexed accesses.
-// 0000: Reserved
-// 0001: ADDHLD phase duration =1 × HCLK clock cycle
-// 0010: ADDHLD phase duration = 2 × HCLK clock cycle
-//