Merge pull request #3661 from whik/whik_sf2
add support for Microsemi SmartFusion2 family FPGA
|
@ -138,6 +138,7 @@ env:
|
|||
- RTT_BSP='xplorer4330/M4' RTT_TOOL_CHAIN='sourcery-arm'
|
||||
- RTT_BSP='at32/at32f403a-start' RTT_TOOL_CHAIN='sourcery-arm'
|
||||
- RTT_BSP='at32/at32f407-start' RTT_TOOL_CHAIN='sourcery-arm'
|
||||
- RTT_BSP='smartfusion2' RTT_TOOL_CHAIN='sourcery-arm'
|
||||
|
||||
stage: compile
|
||||
script:
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
from building import *
|
||||
import rtconfig
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
|
||||
if rtconfig.CROSS_TOOL == 'gcc':
|
||||
src += ['startup_gcc/startup_m2sxxx.S']
|
||||
|
||||
elif rtconfig.CROSS_TOOL == 'keil':
|
||||
src += ['startup_arm/startup_m2sxxx.s']
|
||||
|
||||
CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
|
@ -0,0 +1,810 @@
|
|||
/**************************************************************************//**
|
||||
* @file core_cm3.c
|
||||
* @brief CMSIS Cortex-M3 Core Peripheral Access Layer Source File
|
||||
* @version V1.30
|
||||
* @date 30. October 2009
|
||||
*
|
||||
* @note
|
||||
* Copyright (C) 2009 ARM Limited. All rights reserved.
|
||||
*
|
||||
* @par
|
||||
* ARM Limited (ARM) is supplying this software for use with Cortex-M
|
||||
* processor based microcontrollers. This file can be freely distributed
|
||||
* within development tools that are supporting such ARM based processors.
|
||||
*
|
||||
* @par
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
|
||||
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
|
||||
* ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
|
||||
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
|
||||
*
|
||||
******************************************************************************/
|
||||
/*******************************************************************************
|
||||
* Microsemi SoC Products Group SVN revision number for the purpose of tracking
|
||||
* changes done to original file supplied by ARM:
|
||||
* SVN $Revision: 6671 $
|
||||
* SVN $Date: 2014-07-04 12:15:22 +0100 (Fri, 04 Jul 2014) $
|
||||
******************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* define compiler specific symbols */
|
||||
#if defined ( __CC_ARM )
|
||||
#define __ASM __asm /*!< asm keyword for ARM Compiler */
|
||||
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
|
||||
|
||||
#elif defined ( __ICCARM__ )
|
||||
#define __ASM __asm /*!< asm keyword for IAR Compiler */
|
||||
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
|
||||
|
||||
#elif defined ( __GNUC__ )
|
||||
#define __ASM __asm /*!< asm keyword for GNU Compiler */
|
||||
#define __INLINE inline /*!< inline keyword for GNU Compiler */
|
||||
|
||||
#elif defined ( __TASKING__ )
|
||||
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
|
||||
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* ################### Compiler specific Intrinsics ########################### */
|
||||
|
||||
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
|
||||
/* ARM armcc specific functions */
|
||||
|
||||
/**
|
||||
* @brief Return the Process Stack Pointer
|
||||
*
|
||||
* @return ProcessStackPointer
|
||||
*
|
||||
* Return the actual process stack pointer
|
||||
*/
|
||||
__ASM uint32_t __get_PSP(void)
|
||||
{
|
||||
mrs r0, psp
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Process Stack Pointer
|
||||
*
|
||||
* @param topOfProcStack Process Stack Pointer
|
||||
*
|
||||
* Assign the value ProcessStackPointer to the MSP
|
||||
* (process stack pointer) Cortex processor register
|
||||
*/
|
||||
__ASM void __set_PSP(uint32_t topOfProcStack)
|
||||
{
|
||||
msr psp, r0
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Main Stack Pointer
|
||||
*
|
||||
* @return Main Stack Pointer
|
||||
*
|
||||
* Return the current value of the MSP (main stack pointer)
|
||||
* Cortex processor register
|
||||
*/
|
||||
__ASM uint32_t __get_MSP(void)
|
||||
{
|
||||
mrs r0, msp
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Main Stack Pointer
|
||||
*
|
||||
* @param topOfMainStack Main Stack Pointer
|
||||
*
|
||||
* Assign the value mainStackPointer to the MSP
|
||||
* (main stack pointer) Cortex processor register
|
||||
*/
|
||||
__ASM void __set_MSP(uint32_t mainStackPointer)
|
||||
{
|
||||
msr msp, r0
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reverse byte order in unsigned short value
|
||||
*
|
||||
* @param value value to reverse
|
||||
* @return reversed value
|
||||
*
|
||||
* Reverse byte order in unsigned short value
|
||||
*/
|
||||
__ASM uint32_t __REV16(uint16_t value)
|
||||
{
|
||||
rev16 r0, r0
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reverse byte order in signed short value with sign extension to integer
|
||||
*
|
||||
* @param value value to reverse
|
||||
* @return reversed value
|
||||
*
|
||||
* Reverse byte order in signed short value with sign extension to integer
|
||||
*/
|
||||
__ASM int32_t __REVSH(int16_t value)
|
||||
{
|
||||
revsh r0, r0
|
||||
bx lr
|
||||
}
|
||||
|
||||
|
||||
#if (__ARMCC_VERSION < 400000)
|
||||
|
||||
/**
|
||||
* @brief Remove the exclusive lock created by ldrex
|
||||
*
|
||||
* Removes the exclusive lock which is created by ldrex.
|
||||
*/
|
||||
__ASM void __CLREX(void)
|
||||
{
|
||||
clrex
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Base Priority value
|
||||
*
|
||||
* @return BasePriority
|
||||
*
|
||||
* Return the content of the base priority register
|
||||
*/
|
||||
__ASM uint32_t __get_BASEPRI(void)
|
||||
{
|
||||
mrs r0, basepri
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Base Priority value
|
||||
*
|
||||
* @param basePri BasePriority
|
||||
*
|
||||
* Set the base priority register
|
||||
*/
|
||||
__ASM void __set_BASEPRI(uint32_t basePri)
|
||||
{
|
||||
msr basepri, r0
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Priority Mask value
|
||||
*
|
||||
* @return PriMask
|
||||
*
|
||||
* Return state of the priority mask bit from the priority mask register
|
||||
*/
|
||||
__ASM uint32_t __get_PRIMASK(void)
|
||||
{
|
||||
mrs r0, primask
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Priority Mask value
|
||||
*
|
||||
* @param priMask PriMask
|
||||
*
|
||||
* Set the priority mask bit in the priority mask register
|
||||
*/
|
||||
__ASM void __set_PRIMASK(uint32_t priMask)
|
||||
{
|
||||
msr primask, r0
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Fault Mask value
|
||||
*
|
||||
* @return FaultMask
|
||||
*
|
||||
* Return the content of the fault mask register
|
||||
*/
|
||||
__ASM uint32_t __get_FAULTMASK(void)
|
||||
{
|
||||
mrs r0, faultmask
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Fault Mask value
|
||||
*
|
||||
* @param faultMask faultMask value
|
||||
*
|
||||
* Set the fault mask register
|
||||
*/
|
||||
__ASM void __set_FAULTMASK(uint32_t faultMask)
|
||||
{
|
||||
msr faultmask, r0
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Control Register value
|
||||
*
|
||||
* @return Control value
|
||||
*
|
||||
* Return the content of the control register
|
||||
*/
|
||||
__ASM uint32_t __get_CONTROL(void)
|
||||
{
|
||||
mrs r0, control
|
||||
bx lr
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Control Register value
|
||||
*
|
||||
* @param control Control value
|
||||
*
|
||||
* Set the control register
|
||||
*/
|
||||
__ASM void __set_CONTROL(uint32_t control)
|
||||
{
|
||||
msr control, r0
|
||||
bx lr
|
||||
}
|
||||
|
||||
#endif /* __ARMCC_VERSION */
|
||||
|
||||
|
||||
|
||||
#elif (defined (__ICCARM__)) /*------------------ ICC Compiler -------------------*/
|
||||
/* IAR iccarm specific functions */
|
||||
#pragma diag_suppress=Pe940
|
||||
|
||||
/**
|
||||
* @brief Return the Process Stack Pointer
|
||||
*
|
||||
* @return ProcessStackPointer
|
||||
*
|
||||
* Return the actual process stack pointer
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
uint32_t __get_PSP(void)
|
||||
{
|
||||
__ASM("mrs r0, psp");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Set the Process Stack Pointer
|
||||
*
|
||||
* @param topOfProcStack Process Stack Pointer
|
||||
*
|
||||
* Assign the value ProcessStackPointer to the MSP
|
||||
* (process stack pointer) Cortex processor register
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
void __set_PSP(uint32_t topOfProcStack)
|
||||
{
|
||||
__ASM("msr psp, r0");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Return the Main Stack Pointer
|
||||
*
|
||||
* @return Main Stack Pointer
|
||||
*
|
||||
* Return the current value of the MSP (main stack pointer)
|
||||
* Cortex processor register
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
uint32_t __get_MSP(void)
|
||||
{
|
||||
__ASM("mrs r0, msp");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Set the Main Stack Pointer
|
||||
*
|
||||
* @param topOfMainStack Main Stack Pointer
|
||||
*
|
||||
* Assign the value mainStackPointer to the MSP
|
||||
* (main stack pointer) Cortex processor register
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
void __set_MSP(uint32_t topOfMainStack)
|
||||
{
|
||||
__ASM("msr msp, r0");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Reverse byte order in unsigned short value
|
||||
*
|
||||
* @param value value to reverse
|
||||
* @return reversed value
|
||||
*
|
||||
* Reverse byte order in unsigned short value
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
uint32_t __REV16(uint16_t value)
|
||||
{
|
||||
__ASM("rev16 r0, r0");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Reverse bit order of value
|
||||
*
|
||||
* @param value value to reverse
|
||||
* @return reversed value
|
||||
*
|
||||
* Reverse bit order of value
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
uint32_t __RBIT(uint32_t value)
|
||||
{
|
||||
__ASM("rbit r0, r0");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief LDR Exclusive (8 bit)
|
||||
*
|
||||
* @param *addr address pointer
|
||||
* @return value of (*address)
|
||||
*
|
||||
* Exclusive LDR command for 8 bit values)
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
uint8_t __LDREXB(uint8_t *addr)
|
||||
{
|
||||
__ASM("ldrexb r0, [r0]");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief LDR Exclusive (16 bit)
|
||||
*
|
||||
* @param *addr address pointer
|
||||
* @return value of (*address)
|
||||
*
|
||||
* Exclusive LDR command for 16 bit values
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
uint16_t __LDREXH(uint16_t *addr)
|
||||
{
|
||||
__ASM("ldrexh r0, [r0]");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief LDR Exclusive (32 bit)
|
||||
*
|
||||
* @param *addr address pointer
|
||||
* @return value of (*address)
|
||||
*
|
||||
* Exclusive LDR command for 32 bit values
|
||||
*/
|
||||
uint32_t __LDREXW(uint32_t *addr)
|
||||
{
|
||||
__ASM("ldrex r0, [r0]");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief STR Exclusive (8 bit)
|
||||
*
|
||||
* @param value value to store
|
||||
* @param *addr address pointer
|
||||
* @return successful / failed
|
||||
*
|
||||
* Exclusive STR command for 8 bit values
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
uint32_t __STREXB(uint8_t value, uint8_t *addr)
|
||||
{
|
||||
__ASM("strexb r0, r0, [r1]");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief STR Exclusive (16 bit)
|
||||
*
|
||||
* @param value value to store
|
||||
* @param *addr address pointer
|
||||
* @return successful / failed
|
||||
*
|
||||
* Exclusive STR command for 16 bit values
|
||||
*/
|
||||
#if (__VER__ < 6020000)
|
||||
uint32_t __STREXH(uint16_t value, uint16_t *addr)
|
||||
{
|
||||
__ASM("strexh r0, r0, [r1]");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief STR Exclusive (32 bit)
|
||||
*
|
||||
* @param value value to store
|
||||
* @param *addr address pointer
|
||||
* @return successful / failed
|
||||
*
|
||||
* Exclusive STR command for 32 bit values
|
||||
*/
|
||||
uint32_t __STREXW(uint32_t value, uint32_t *addr)
|
||||
{
|
||||
__ASM("strex r0, r0, [r1]");
|
||||
__ASM("bx lr");
|
||||
}
|
||||
|
||||
#pragma diag_default=Pe940
|
||||
|
||||
|
||||
#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/
|
||||
/* GNU gcc specific functions */
|
||||
|
||||
/**
|
||||
* @brief Return the Process Stack Pointer
|
||||
*
|
||||
* @return ProcessStackPointer
|
||||
*
|
||||
* Return the actual process stack pointer
|
||||
*/
|
||||
uint32_t __get_PSP(void) __attribute__( ( naked ) );
|
||||
uint32_t __get_PSP(void)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("MRS %0, psp\n\t"
|
||||
"MOV r0, %0 \n\t"
|
||||
"BX lr \n\t" : "=r" (result) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Process Stack Pointer
|
||||
*
|
||||
* @param topOfProcStack Process Stack Pointer
|
||||
*
|
||||
* Assign the value ProcessStackPointer to the MSP
|
||||
* (process stack pointer) Cortex processor register
|
||||
*/
|
||||
void __set_PSP(uint32_t topOfProcStack) __attribute__( ( naked ) );
|
||||
void __set_PSP(uint32_t topOfProcStack)
|
||||
{
|
||||
__ASM volatile ("MSR psp, %0\n\t"
|
||||
"BX lr \n\t" : : "r" (topOfProcStack) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Main Stack Pointer
|
||||
*
|
||||
* @return Main Stack Pointer
|
||||
*
|
||||
* Return the current value of the MSP (main stack pointer)
|
||||
* Cortex processor register
|
||||
*/
|
||||
uint32_t __get_MSP(void) __attribute__( ( naked ) );
|
||||
uint32_t __get_MSP(void)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("MRS %0, msp\n\t"
|
||||
"MOV r0, %0 \n\t"
|
||||
"BX lr \n\t" : "=r" (result) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Main Stack Pointer
|
||||
*
|
||||
* @param topOfMainStack Main Stack Pointer
|
||||
*
|
||||
* Assign the value mainStackPointer to the MSP
|
||||
* (main stack pointer) Cortex processor register
|
||||
*/
|
||||
void __set_MSP(uint32_t topOfMainStack) __attribute__( ( naked ) );
|
||||
void __set_MSP(uint32_t topOfMainStack)
|
||||
{
|
||||
__ASM volatile ("MSR msp, %0\n\t"
|
||||
"BX lr \n\t" : : "r" (topOfMainStack) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Base Priority value
|
||||
*
|
||||
* @return BasePriority
|
||||
*
|
||||
* Return the content of the base priority register
|
||||
*/
|
||||
uint32_t __get_BASEPRI(void)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("MRS %0, basepri_max" : "=r" (result) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Base Priority value
|
||||
*
|
||||
* @param basePri BasePriority
|
||||
*
|
||||
* Set the base priority register
|
||||
*/
|
||||
void __set_BASEPRI(uint32_t value)
|
||||
{
|
||||
__ASM volatile ("MSR basepri, %0" : : "r" (value) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Priority Mask value
|
||||
*
|
||||
* @return PriMask
|
||||
*
|
||||
* Return state of the priority mask bit from the priority mask register
|
||||
*/
|
||||
uint32_t __get_PRIMASK(void)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("MRS %0, primask" : "=r" (result) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Priority Mask value
|
||||
*
|
||||
* @param priMask PriMask
|
||||
*
|
||||
* Set the priority mask bit in the priority mask register
|
||||
*/
|
||||
void __set_PRIMASK(uint32_t priMask)
|
||||
{
|
||||
__ASM volatile ("MSR primask, %0" : : "r" (priMask) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Fault Mask value
|
||||
*
|
||||
* @return FaultMask
|
||||
*
|
||||
* Return the content of the fault mask register
|
||||
*/
|
||||
uint32_t __get_FAULTMASK(void)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("MRS %0, faultmask" : "=r" (result) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Fault Mask value
|
||||
*
|
||||
* @param faultMask faultMask value
|
||||
*
|
||||
* Set the fault mask register
|
||||
*/
|
||||
void __set_FAULTMASK(uint32_t faultMask)
|
||||
{
|
||||
__ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the Control Register value
|
||||
*
|
||||
* @return Control value
|
||||
*
|
||||
* Return the content of the control register
|
||||
*/
|
||||
uint32_t __get_CONTROL(void)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("MRS %0, control" : "=r" (result) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the Control Register value
|
||||
*
|
||||
* @param control Control value
|
||||
*
|
||||
* Set the control register
|
||||
*/
|
||||
void __set_CONTROL(uint32_t control)
|
||||
{
|
||||
__ASM volatile ("MSR control, %0" : : "r" (control) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Reverse byte order in integer value
|
||||
*
|
||||
* @param value value to reverse
|
||||
* @return reversed value
|
||||
*
|
||||
* Reverse byte order in integer value
|
||||
*/
|
||||
uint32_t __REV(uint32_t value)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reverse byte order in unsigned short value
|
||||
*
|
||||
* @param value value to reverse
|
||||
* @return reversed value
|
||||
*
|
||||
* Reverse byte order in unsigned short value
|
||||
*/
|
||||
uint32_t __REV16(uint16_t value)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reverse byte order in signed short value with sign extension to integer
|
||||
*
|
||||
* @param value value to reverse
|
||||
* @return reversed value
|
||||
*
|
||||
* Reverse byte order in signed short value with sign extension to integer
|
||||
*/
|
||||
int32_t __REVSH(int16_t value)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reverse bit order of value
|
||||
*
|
||||
* @param value value to reverse
|
||||
* @return reversed value
|
||||
*
|
||||
* Reverse bit order of value
|
||||
*/
|
||||
uint32_t __RBIT(uint32_t value)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief LDR Exclusive (8 bit)
|
||||
*
|
||||
* @param *addr address pointer
|
||||
* @return value of (*address)
|
||||
*
|
||||
* Exclusive LDR command for 8 bit value
|
||||
*/
|
||||
uint8_t __LDREXB(uint8_t *addr)
|
||||
{
|
||||
uint8_t result=0;
|
||||
|
||||
__ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief LDR Exclusive (16 bit)
|
||||
*
|
||||
* @param *addr address pointer
|
||||
* @return value of (*address)
|
||||
*
|
||||
* Exclusive LDR command for 16 bit values
|
||||
*/
|
||||
uint16_t __LDREXH(uint16_t *addr)
|
||||
{
|
||||
uint16_t result=0;
|
||||
|
||||
__ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief LDR Exclusive (32 bit)
|
||||
*
|
||||
* @param *addr address pointer
|
||||
* @return value of (*address)
|
||||
*
|
||||
* Exclusive LDR command for 32 bit values
|
||||
*/
|
||||
uint32_t __LDREXW(uint32_t *addr)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief STR Exclusive (8 bit)
|
||||
*
|
||||
* @param value value to store
|
||||
* @param *addr address pointer
|
||||
* @return successful / failed
|
||||
*
|
||||
* Exclusive STR command for 8 bit values
|
||||
*/
|
||||
uint32_t __STREXB(uint8_t value, uint8_t *addr)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief STR Exclusive (16 bit)
|
||||
*
|
||||
* @param value value to store
|
||||
* @param *addr address pointer
|
||||
* @return successful / failed
|
||||
*
|
||||
* Exclusive STR command for 16 bit values
|
||||
*/
|
||||
uint32_t __STREXH(uint16_t value, uint16_t *addr)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief STR Exclusive (32 bit)
|
||||
*
|
||||
* @param value value to store
|
||||
* @param *addr address pointer
|
||||
* @return successful / failed
|
||||
*
|
||||
* Exclusive STR command for 32 bit values
|
||||
*/
|
||||
uint32_t __STREXW(uint32_t value, uint32_t *addr)
|
||||
{
|
||||
uint32_t result=0;
|
||||
|
||||
__ASM volatile ("strex %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) );
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
#elif (defined (__TASKING__)) /*------------------ TASKING Compiler ---------------------*/
|
||||
/* TASKING carm specific functions */
|
||||
|
||||
/*
|
||||
* The CMSIS functions have been implemented as intrinsics in the compiler.
|
||||
* Please use "carm -?i" to get an up to date list of all instrinsics,
|
||||
* Including the CMSIS ones.
|
||||
*/
|
||||
|
||||
#endif
|
|
@ -0,0 +1,113 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2011-2013 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* SmartFusion2 Cortex Microcontroller Software Interface - Peripheral
|
||||
* Access Layer.
|
||||
*
|
||||
* This file provides interfaces to perform register and register bit level
|
||||
* read / write operations. These interfaces support bit-banding in case of
|
||||
* Cortex-M3 CPU.
|
||||
*
|
||||
* SVN $Revision: 5263 $
|
||||
* SVN $Date: 2013-03-21 14:44:58 +0000 (Thu, 21 Mar 2013) $
|
||||
*/
|
||||
|
||||
#ifndef HW_REG_IO_H_
|
||||
#define HW_REG_IO_H_
|
||||
|
||||
#include <stdint.h> /* Include standard types */
|
||||
|
||||
#if defined ( __CC_ARM )
|
||||
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
|
||||
|
||||
#elif defined ( __ICCARM__ )
|
||||
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
|
||||
|
||||
#elif defined ( __GNUC__ )
|
||||
#define __INLINE inline /*!< inline keyword for GNU Compiler */
|
||||
#endif
|
||||
|
||||
/*****************************************************************************************
|
||||
* Definitions for register access
|
||||
*/
|
||||
|
||||
#define HW_REG(addr) (*((volatile uint32_t *) (addr)))
|
||||
|
||||
static __INLINE void write_reg32(volatile uint32_t * reg, uint32_t val)
|
||||
{
|
||||
HW_REG(reg) = val;
|
||||
}
|
||||
static __INLINE void write_reg16(volatile uint16_t * reg, uint16_t val)
|
||||
{
|
||||
HW_REG(reg) = val;
|
||||
}
|
||||
static __INLINE void write_reg8(volatile uint8_t * reg, uint8_t val)
|
||||
{
|
||||
HW_REG(reg) = val;
|
||||
}
|
||||
|
||||
static __INLINE uint32_t read_reg32(volatile uint32_t * reg)
|
||||
{
|
||||
return ( HW_REG(reg) );
|
||||
}
|
||||
static __INLINE uint16_t read_reg16(volatile uint16_t * reg)
|
||||
{
|
||||
return ( HW_REG(reg) );
|
||||
}
|
||||
static __INLINE uint8_t read_reg8(volatile uint8_t * reg)
|
||||
{
|
||||
return ( HW_REG(reg) );
|
||||
}
|
||||
/*****************************************************************************************
|
||||
* Definitions for register bits access using bit-band aliases for Cortex-M3
|
||||
*/
|
||||
#define BITBAND(addr,bitnum) (((uint32_t)addr & 0xF0000000)+0x02000000+(((uint32_t)addr & 0xFFFFF)<<5)+(bitnum<<2))
|
||||
#define HW_REG_BIT(reg,bitnum) (*(volatile unsigned int *)((BITBAND(reg,bitnum))))
|
||||
|
||||
/*****************************************************************************************
|
||||
* Functions to set a bit field in Cortex-M3
|
||||
*/
|
||||
static __INLINE void set_bit_reg32(volatile uint32_t * reg, uint8_t bit)
|
||||
{
|
||||
HW_REG_BIT(reg,bit) = 0x1;
|
||||
}
|
||||
static __INLINE void set_bit_reg16(volatile uint16_t * reg, uint8_t bit)
|
||||
{
|
||||
HW_REG_BIT(reg,bit) = 0x1;
|
||||
}
|
||||
static __INLINE void set_bit_reg8(volatile uint8_t * reg, uint8_t bit)
|
||||
{
|
||||
HW_REG_BIT(reg,bit) = 0x1;
|
||||
}
|
||||
/*****************************************************************************************
|
||||
* Functions to clear a bit field in Cortex-M3
|
||||
*/
|
||||
static __INLINE void clear_bit_reg32(volatile uint32_t * reg, uint8_t bit)
|
||||
{
|
||||
HW_REG_BIT(reg,bit) = 0x0;
|
||||
}
|
||||
static __INLINE void clear_bit_reg16(volatile uint16_t * reg, uint8_t bit)
|
||||
{
|
||||
HW_REG_BIT(reg,bit) = 0x0;
|
||||
}
|
||||
static __INLINE void clear_bit_reg8(volatile uint8_t * reg, uint8_t bit)
|
||||
{
|
||||
HW_REG_BIT(reg,bit) = 0x0;
|
||||
}
|
||||
/*****************************************************************************************
|
||||
* Functions to read a bit field in Cortex-M3
|
||||
*/
|
||||
static __INLINE uint8_t read_bit_reg32(volatile uint32_t * reg, uint8_t bit)
|
||||
{
|
||||
return (HW_REG_BIT(reg,bit));
|
||||
}
|
||||
static __INLINE uint8_t read_bit_reg16(volatile uint16_t * reg, uint8_t bit)
|
||||
{
|
||||
return (HW_REG_BIT(reg,bit));
|
||||
}
|
||||
static __INLINE uint8_t read_bit_reg8(volatile uint8_t * reg, uint8_t bit)
|
||||
{
|
||||
return (HW_REG_BIT(reg,bit));
|
||||
}
|
||||
|
||||
#endif /* HW_REG_IO_H_ */
|
|
@ -0,0 +1,62 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2009-2013 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* Assertion implementation.
|
||||
*
|
||||
* This file provides the implementation of the ASSERT macro. This file can be
|
||||
* modified to cater for project specific requirements regarding the way
|
||||
* assertions are handled.
|
||||
*
|
||||
* SVN $Revision: 6422 $
|
||||
* SVN $Date: 2014-05-14 14:37:56 +0100 (Wed, 14 May 2014) $
|
||||
*/
|
||||
#ifndef __MSS_ASSERT_H_
|
||||
#define __MSS_ASSERT_H_
|
||||
|
||||
#if defined(NDEBUG)
|
||||
|
||||
#define ASSERT(CHECK)
|
||||
|
||||
#else /* NDEBUG */
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#if defined ( __GNUC__ )
|
||||
|
||||
/*
|
||||
* SoftConsole assertion handling
|
||||
*/
|
||||
#define ASSERT(CHECK) \
|
||||
do { \
|
||||
if (!(CHECK)) \
|
||||
{ \
|
||||
__asm volatile ("BKPT\n\t"); \
|
||||
} \
|
||||
} while (0);
|
||||
|
||||
#elif defined ( __ICCARM__ )
|
||||
/*
|
||||
* IAR Embedded Workbench assertion handling.
|
||||
* Call C library assert function which should result in error message
|
||||
* displayed in debugger.
|
||||
*/
|
||||
#define ASSERT(X) assert(X)
|
||||
|
||||
#else
|
||||
/*
|
||||
* Keil assertion handling.
|
||||
* Call C library assert function which should result in error message
|
||||
* displayed in debugger.
|
||||
*/
|
||||
|
||||
#ifndef __MICROLIB
|
||||
#define ASSERT(X) assert(X)
|
||||
#else
|
||||
#define ASSERT(X)
|
||||
#endif
|
||||
|
||||
#endif /* Tool Chain */
|
||||
|
||||
#endif /* NDEBUG */
|
||||
|
||||
#endif /* __MSS_ASSERT_H_ */
|
|
@ -0,0 +1,44 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2014 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* Keil-MDK specific system initialization.
|
||||
*
|
||||
* SVN $Revision: 7375 $
|
||||
* SVN $Date: 2015-05-01 14:57:40 +0100 (Fri, 01 May 2015) $
|
||||
*/
|
||||
#ifdef MSCC_NO_RELATIVE_PATHS
|
||||
#include "m2sxxx.h"
|
||||
#else
|
||||
#include "..\m2sxxx.h"
|
||||
#endif
|
||||
|
||||
#define ENVM_BASE_ADDRESS 0x60000000U
|
||||
#define MDDR_BASE_ADDRESS 0xA0000000U
|
||||
|
||||
//extern unsigned int Image$$ER_RW$$Base;
|
||||
//extern unsigned int Image$$ER_RO$$Base;
|
||||
|
||||
/*==============================================================================
|
||||
* The __low_level_init() function is called after SystemInit. Therefore, the
|
||||
* external RAM should be configured at this stage if it is used.
|
||||
*/
|
||||
/* void low_level_init(void)
|
||||
{
|
||||
volatile unsigned int rw_region_base;
|
||||
volatile unsigned int readonly_region_base;
|
||||
|
||||
rw_region_base = (unsigned int)&Image$$ER_RW$$Base;
|
||||
if (rw_region_base >= MDDR_BASE_ADDRESS)
|
||||
{
|
||||
/ --------------------------------------------------------------------------
|
||||
* Remap MDDR to address 0x00000000.
|
||||
/
|
||||
SYSREG->ESRAM_CR = 0u;
|
||||
SYSREG->ENVM_REMAP_BASE_CR = 0u;
|
||||
SYSREG->DDR_CR = 1u;
|
||||
}
|
||||
|
||||
readonly_region_base = (unsigned int)&Image$$ER_RO$$Base;
|
||||
SCB->VTOR = readonly_region_base;
|
||||
} */
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2013 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* Redirection of the standard library I/O to one of the SmartFusion2
|
||||
* MMUART.
|
||||
*
|
||||
* SVN $Revision: 7375 $
|
||||
* SVN $Date: 2015-05-01 14:57:40 +0100 (Fri, 01 May 2015) $
|
||||
*/
|
||||
|
||||
/*==============================================================================
|
||||
* The content of this source file will only be compiled if either one of the
|
||||
* following two defined symbols are defined in the project settings:
|
||||
* - MICROSEMI_STDIO_THRU_MMUART0
|
||||
* - MICROSEMI_STDIO_THRU_MMUART1
|
||||
*
|
||||
*/
|
||||
#ifdef MICROSEMI_STDIO_THRU_MMUART0
|
||||
#ifndef MICROSEMI_STDIO_THRU_UART
|
||||
#define MICROSEMI_STDIO_THRU_UART
|
||||
#endif
|
||||
#endif /* MICROSEMI_STDIO_THRU_MMUART0 */
|
||||
|
||||
#ifdef MICROSEMI_STDIO_THRU_MMUART1
|
||||
#ifndef MICROSEMI_STDIO_THRU_UART
|
||||
#define MICROSEMI_STDIO_THRU_UART
|
||||
#endif
|
||||
#endif /* MICROSEMI_STDIO_THRU_MMUART1 */
|
||||
|
||||
/*==============================================================================
|
||||
* Actual implementation.
|
||||
*/
|
||||
#ifdef MICROSEMI_STDIO_THRU_UART
|
||||
|
||||
#include <stdio.h>
|
||||
#include <rt_misc.h>
|
||||
|
||||
#include "m2sxxx.h"
|
||||
#include "mss_uart.h"
|
||||
#include "core_uart_apb.h"
|
||||
|
||||
|
||||
/*
|
||||
* The baud rate will default to 57600 baud if no baud rate is specified though the
|
||||
* MICROSEMI_STDIO_BAUD_RATE define.
|
||||
*/
|
||||
#ifndef MICROSEMI_STDIO_BAUD_RATE
|
||||
#define MICROSEMI_STDIO_BAUD_RATE MSS_UART_115200_BAUD
|
||||
#endif
|
||||
|
||||
#ifdef MICROSEMI_STDIO_THRU_MMUART0
|
||||
static mss_uart_instance_t * const gp_my_uart = &g_mss_uart0;
|
||||
#else
|
||||
static mss_uart_instance_t * const gp_my_uart = &g_mss_uart1;
|
||||
#endif
|
||||
|
||||
/*==============================================================================
|
||||
* Flag used to indicate if the UART driver needs to be initialized.
|
||||
*/
|
||||
static int g_stdio_uart_init_done = 0;
|
||||
|
||||
|
||||
#define LSR_THRE_MASK 0x20u
|
||||
|
||||
/*
|
||||
* Disable semihosting apis
|
||||
*/
|
||||
#pragma import(__use_no_semihosting_swi)
|
||||
|
||||
/*==============================================================================
|
||||
* sendchar()
|
||||
*/
|
||||
int sendchar(int ch)
|
||||
{
|
||||
uint32_t tx_ready;
|
||||
//第一次调用时,初始化串口
|
||||
if(!g_stdio_uart_init_done)
|
||||
{
|
||||
MSS_UART_init(gp_my_uart,
|
||||
MICROSEMI_STDIO_BAUD_RATE,
|
||||
MSS_UART_DATA_8_BITS | MSS_UART_NO_PARITY);
|
||||
g_stdio_uart_init_done = 1;
|
||||
}
|
||||
do {
|
||||
tx_ready = gp_my_uart->hw_reg->LSR & LSR_THRE_MASK;
|
||||
} while(!tx_ready);
|
||||
gp_my_uart->hw_reg->THR = ch;
|
||||
return (ch);
|
||||
}
|
||||
|
||||
/*==============================================================================
|
||||
*
|
||||
*/
|
||||
struct __FILE { int handle; /* Add whatever you need here */ };
|
||||
FILE __stdout;
|
||||
FILE __stdin;
|
||||
|
||||
|
||||
/*==============================================================================
|
||||
* fputc()
|
||||
*/
|
||||
int fputc(int ch, FILE *f)
|
||||
{
|
||||
return (sendchar(ch));
|
||||
}
|
||||
|
||||
/*==============================================================================
|
||||
* fgetc()
|
||||
*/
|
||||
int fgetc(FILE *f)
|
||||
{
|
||||
uint8_t rx_size;
|
||||
uint8_t rx_byte;
|
||||
|
||||
do {
|
||||
rx_size = MSS_UART_get_rx(gp_my_uart, &rx_byte, 1);
|
||||
} while(0u == rx_size);
|
||||
|
||||
return rx_byte;
|
||||
}
|
||||
|
||||
/*==============================================================================
|
||||
* ferror()
|
||||
*/
|
||||
int ferror(FILE *f)
|
||||
{
|
||||
/* Your implementation of ferror */
|
||||
return EOF;
|
||||
}
|
||||
|
||||
/*==============================================================================
|
||||
* _ttywrch()
|
||||
*/
|
||||
void _ttywrch(int ch)
|
||||
{
|
||||
sendchar(ch);
|
||||
}
|
||||
|
||||
/*==============================================================================
|
||||
* _sys_exit()
|
||||
*/
|
||||
void _sys_exit(int return_code)
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
; /* endless loop */
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* MICROSEMI_STDIO_THRU_UART */
|
|
@ -0,0 +1,49 @@
|
|||
;*******************************************************************************
|
||||
; (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
; SmartFusion2 scatter file for debugging code executing in internal eSRAM.
|
||||
;
|
||||
; SVN $Revision: 7419 $
|
||||
; SVN $Date: 2015-05-15 16:50:21 +0100 (Fri, 15 May 2015) $
|
||||
;
|
||||
; * Some current (April 2015) dev kit memory map possibilities are
|
||||
; * --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
; * --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
; * --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
; * --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
; * --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
; * --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
; * --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
; * --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
; * --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
; * --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
; * --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
; * --Some older physical memory map possibilities are
|
||||
; * --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
; * --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
; * --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
;
|
||||
; Example linker scripts use lowest practicl values so will work accross dev kits
|
||||
; eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
|
||||
RAM_LOAD 0x20000000 0x10000
|
||||
{
|
||||
; First half of RAM allocated to RO Execute and data
|
||||
ER_RO 0x20000000 0x8000
|
||||
{
|
||||
*.o (RESET, +First)
|
||||
*(InRoot$$Sections)
|
||||
.ANY (+RO)
|
||||
}
|
||||
; Heap size is defined in startup_m2sxxx.s
|
||||
; Heap will be added after RW data in ER_RW unless explicitly
|
||||
; allocated a meemory region in .sct file
|
||||
; Stack size is defined in startup_m2sxxx.s
|
||||
; Stack will be added after heap in ER_RW unless explicitly
|
||||
; allocated a memory region in .sct file
|
||||
; Second half of RAM allocated to RW data, heap and stack
|
||||
ER_RW 0x20008000 0x8000
|
||||
{
|
||||
.ANY (+RW +ZI)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
;*******************************************************************************
|
||||
; (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
; SmartFusion2 scatter file for executing code in internal eNVM.
|
||||
;
|
||||
; SVN $Revision: 7419 $
|
||||
; SVN $Date: 2015-05-15 16:50:21 +0100 (Fri, 15 May 2015) $
|
||||
;
|
||||
; * Some current (April 2015) dev kit memory map possibilities are
|
||||
; * --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
; * --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
; * --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
; * --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
; * --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
; * --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
; * --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
; * --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
; * --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
; * --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
; * --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
; * --Some older physical memory map possibilities are
|
||||
; * --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
; * --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
; * --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
;
|
||||
; Example linker scripts use lowest practicl values so will work accross dev kits
|
||||
; eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
|
||||
FLASH_LOAD 0x00000000 0x40000
|
||||
{
|
||||
; All R only code/data is located in ENVM
|
||||
ER_RO 0x00000000 0x40000
|
||||
{
|
||||
*.o (RESET, +First)
|
||||
*(InRoot$$Sections)
|
||||
.ANY (+RO)
|
||||
}
|
||||
; Heap size is defined in startup_m2sxxx.s
|
||||
; Heap will be added after RW data in ER_RW unless explicitly
|
||||
; allocated a meemory region in .sct file
|
||||
; Stack size is defined in startup_m2sxxx.s
|
||||
; Stack will be added after heap in ER_RW unless explicitly
|
||||
; allocated a memory region in .sct file
|
||||
ER_RW 0x20000000 0x10000
|
||||
{
|
||||
.ANY (+RW +ZI)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
;*******************************************************************************
|
||||
; (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
; SmartFusion2 scatter file for debugging code executing in external MDDR.
|
||||
;
|
||||
; SVN $Revision: 7419 $
|
||||
; SVN $Date: 2015-05-15 16:50:21 +0100 (Fri, 15 May 2015) $
|
||||
;
|
||||
; * Some current (April 2015) dev kit memory map possibilities are
|
||||
; * --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
; * --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
; * --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
; * --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
; * --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
; * --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
; * --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
; * --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
; * --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
; * --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
; * --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
; * --Some older physical memory map possibilities are
|
||||
; * --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
; * --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
; * --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
;
|
||||
; Example linker scripts use lowest practicl values so will work accross dev kits
|
||||
; eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
|
||||
; Extern RAM 64M in total
|
||||
; allocate 1/2 to progam, 1/2 to variable data
|
||||
RAM_LOAD 0x00000000 0x04000000
|
||||
{
|
||||
; Total = 64MB (lowest common amount accross dev kits) 32MB - First half of external memory allocated to RO Code
|
||||
ER_RO 0x00000000 0x02000000
|
||||
{
|
||||
*.o (RESET, +First)
|
||||
*(InRoot$$Sections)
|
||||
.ANY (+RO)
|
||||
}
|
||||
; Heap size is defined in startup_m2sxxx.s
|
||||
; Heap will be added after RW data in ER_RW unless explicitly
|
||||
; allocated a meemory region in .sct file
|
||||
; Stack size is defined in startup_m2sxxx.s
|
||||
; Stack will be added after heap in ER_RW unless explicitly
|
||||
; allocated a memory region in .sct file as is the case below
|
||||
STACKS 0x20000000 UNINIT
|
||||
{
|
||||
startup_m2sxxx.o (STACK)
|
||||
}
|
||||
; 32 MB- Second half of external memory allocated to RW data
|
||||
ER_RW 0xA2000000 0x02000000
|
||||
{
|
||||
.ANY (+RW +ZI)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
;*******************************************************************************
|
||||
; (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
; SmartFusion2 scatter file for relocating code to external RAM.
|
||||
;
|
||||
; SVN $Revision: 7419 $
|
||||
; SVN $Date: 2015-05-15 16:50:21 +0100 (Fri, 15 May 2015) $
|
||||
;
|
||||
; * Some current (April 2015) dev kit memory map possibilities are
|
||||
; * --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
; * --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
; * --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
; * --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
; * --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
; * --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
; * --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
; * --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
; * --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
; * --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
; * --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
; * --Some older physical memory map possibilities are
|
||||
; * --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
; * --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
; * --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
;
|
||||
; Example linker scripts use lowest practicl values so will work accross dev kits
|
||||
; eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
|
||||
FLASH_LOAD 0x60000000 0x40000
|
||||
{
|
||||
; All code required on start-up located here before relocation has occured
|
||||
ER_RO 0x60000000 0x40000
|
||||
{
|
||||
*.o (RESET, +First)
|
||||
*(InRoot$$Sections)
|
||||
startup_m2sxxx.o
|
||||
system_m2sxxx.o
|
||||
sys_config.o
|
||||
low_level_init.o
|
||||
sys_config_SERDESIF_?.o
|
||||
mscc_post_hw_cfg_init.o
|
||||
ecc_error_handler.o
|
||||
}
|
||||
; MDDR_RAM 0xA0000000 0x4000000
|
||||
; -MDDR is mapped to address space from 0 on startup
|
||||
; This allows the use of cache which is restriced to this area.
|
||||
; Code is copied to RAM_EXEC space on startup by boot code.
|
||||
RAM_EXEC 0x00000000 0x00040000
|
||||
{
|
||||
.ANY (+RO)
|
||||
}
|
||||
; Heap size is defined in startup_m2sxxx.s
|
||||
; Heap will be added after RW data in ER_RW unless explicitly
|
||||
; allocated a meemory region in .sct file
|
||||
; Stack size is defined in startup_m2sxxx.s
|
||||
; Stack will be added after heap in ER_RW unless explicitly
|
||||
; allocated a memory region in .sct file as is the case below
|
||||
STACKS 0x20000000 UNINIT
|
||||
{
|
||||
startup_m2sxxx.o (STACK)
|
||||
}
|
||||
; All internal RAM has been allocatd to the stack
|
||||
; INTERNAL_RAM 0x20008000 0x10000
|
||||
; {
|
||||
; .ANY (+RW +ZI)
|
||||
; }
|
||||
|
||||
; MDDR_RAM 0xA0000000 0x4000000 So use top half of this for RW data
|
||||
; Bottom half has been assigned to R only code already
|
||||
ER_RW 0xA2000000 0x2000000
|
||||
{
|
||||
.ANY (+RW +ZI)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,586 @@
|
|||
;*******************************************************************************
|
||||
; (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
; SmartFusion2 startup code for Keil-MDK.
|
||||
;
|
||||
; SmartFusion2 vector table and startup code for ARM tool chain.
|
||||
;
|
||||
; SVN $Revision: 7419 $
|
||||
; SVN $Date: 2015-05-15 16:50:21 +0100 (Fri, 15 May 2015) $
|
||||
;
|
||||
|
||||
; *------- <<< Use Configuration Wizard in Context Menu >>> ------------------
|
||||
|
||||
|
||||
; <h> Stack Configuration
|
||||
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
|
||||
; </h>
|
||||
|
||||
Stack_Size EQU 0x00001000
|
||||
|
||||
AREA STACK, NOINIT, READWRITE, ALIGN=3
|
||||
stack_start
|
||||
Stack_Mem SPACE Stack_Size
|
||||
__initial_sp
|
||||
stack_end
|
||||
|
||||
|
||||
; <h> Heap Configuration
|
||||
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
|
||||
; </h>
|
||||
|
||||
Heap_Size EQU 0x00000200
|
||||
|
||||
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 WdogWakeup_IRQHandler
|
||||
DCD RTC_Wakeup_IRQHandler
|
||||
DCD SPI0_IRQHandler
|
||||
DCD SPI1_IRQHandler
|
||||
DCD I2C0_IRQHandler
|
||||
DCD I2C0_SMBAlert_IRQHandler
|
||||
DCD I2C0_SMBus_IRQHandler
|
||||
DCD I2C1_IRQHandler
|
||||
DCD I2C1_SMBAlert_IRQHandler
|
||||
DCD I2C1_SMBus_IRQHandler
|
||||
DCD UART0_IRQHandler
|
||||
DCD UART1_IRQHandler
|
||||
DCD EthernetMAC_IRQHandler
|
||||
DCD DMA_IRQHandler
|
||||
DCD Timer1_IRQHandler
|
||||
DCD Timer2_IRQHandler
|
||||
DCD CAN_IRQHandler
|
||||
DCD ENVM0_IRQHandler
|
||||
DCD ENVM1_IRQHandler
|
||||
DCD ComBlk_IRQHandler
|
||||
DCD USB_IRQHandler
|
||||
DCD USB_DMA_IRQHandler
|
||||
DCD PLL_Lock_IRQHandler
|
||||
DCD PLL_LockLost_IRQHandler
|
||||
DCD CommSwitchError_IRQHandler
|
||||
DCD CacheError_IRQHandler
|
||||
DCD DDR_IRQHandler
|
||||
DCD HPDMA_Complete_IRQHandler
|
||||
DCD HPDMA_Error_IRQHandler
|
||||
DCD ECC_Error_IRQHandler
|
||||
DCD MDDR_IOCalib_IRQHandler
|
||||
DCD FAB_PLL_Lock_IRQHandler
|
||||
DCD FAB_PLL_LockLost_IRQHandler
|
||||
DCD FIC64_IRQHandler
|
||||
DCD FabricIrq0_IRQHandler
|
||||
DCD FabricIrq1_IRQHandler
|
||||
DCD FabricIrq2_IRQHandler
|
||||
DCD FabricIrq3_IRQHandler
|
||||
DCD FabricIrq4_IRQHandler
|
||||
DCD FabricIrq5_IRQHandler
|
||||
DCD FabricIrq6_IRQHandler
|
||||
DCD FabricIrq7_IRQHandler
|
||||
DCD FabricIrq8_IRQHandler
|
||||
DCD FabricIrq9_IRQHandler
|
||||
DCD FabricIrq10_IRQHandler
|
||||
DCD FabricIrq11_IRQHandler
|
||||
DCD FabricIrq12_IRQHandler
|
||||
DCD FabricIrq13_IRQHandler
|
||||
DCD FabricIrq14_IRQHandler
|
||||
DCD FabricIrq15_IRQHandler
|
||||
DCD GPIO0_IRQHandler
|
||||
DCD GPIO1_IRQHandler
|
||||
DCD GPIO2_IRQHandler
|
||||
DCD GPIO3_IRQHandler
|
||||
DCD GPIO4_IRQHandler
|
||||
DCD GPIO5_IRQHandler
|
||||
DCD GPIO6_IRQHandler
|
||||
DCD GPIO7_IRQHandler
|
||||
DCD GPIO8_IRQHandler
|
||||
DCD GPIO9_IRQHandler
|
||||
DCD GPIO10_IRQHandler
|
||||
DCD GPIO11_IRQHandler
|
||||
DCD GPIO12_IRQHandler
|
||||
DCD GPIO13_IRQHandler
|
||||
DCD GPIO14_IRQHandler
|
||||
DCD GPIO15_IRQHandler
|
||||
DCD GPIO16_IRQHandler
|
||||
DCD GPIO17_IRQHandler
|
||||
DCD GPIO18_IRQHandler
|
||||
DCD GPIO19_IRQHandler
|
||||
DCD GPIO20_IRQHandler
|
||||
DCD GPIO21_IRQHandler
|
||||
DCD GPIO22_IRQHandler
|
||||
DCD GPIO23_IRQHandler
|
||||
DCD GPIO24_IRQHandler
|
||||
DCD GPIO25_IRQHandler
|
||||
DCD GPIO26_IRQHandler
|
||||
DCD GPIO27_IRQHandler
|
||||
DCD GPIO28_IRQHandler
|
||||
DCD GPIO29_IRQHandler
|
||||
DCD GPIO30_IRQHandler
|
||||
DCD GPIO31_IRQHandler
|
||||
|
||||
__Vectors_End
|
||||
|
||||
__Vectors_Size EQU __Vectors_End - __Vectors
|
||||
|
||||
;===============================================================================
|
||||
; Reset Handler
|
||||
;
|
||||
AREA |.text|, CODE, READONLY
|
||||
|
||||
Reset_Handler PROC
|
||||
EXPORT Reset_Handler [WEAK]
|
||||
IMPORT SystemInit
|
||||
; IMPORT low_level_init
|
||||
IMPORT __main
|
||||
|
||||
;---------------------------------------------------------------
|
||||
; Initialize stack RAM content to initialize the error detection
|
||||
; and correction (EDAC). This is done if EDAC is enabled for the
|
||||
; eSRAM blocks or the ECC/SECDED is enabled for the MDDR.
|
||||
; Register R11 is used to keep track of the RAM intialization
|
||||
; decision outcome for later use for heap RAM initialization at
|
||||
; the end of the startup code.
|
||||
; Please note that the stack has to be located in eSRAM at this
|
||||
; point and cannot be located in MDDR since MDDR is not available
|
||||
; at this point.
|
||||
; The bits of the content of register R11 have the foolwing
|
||||
; meaning:
|
||||
; reg11[0]: eSRAM EDAC enabled
|
||||
; reg11[1]: MDDR ECC/SECDED enabled
|
||||
;
|
||||
MOV R11, #0
|
||||
LDR R0, SF2_MDDR_MODE_CR
|
||||
LDR R0, [R0]
|
||||
LDR R1, SF2_EDAC_CR
|
||||
LDR R1, [R1]
|
||||
AND R1, R1, #3
|
||||
AND R0, R0, #0x1C
|
||||
CMP R0, #0x14
|
||||
BNE check_esram_edac
|
||||
ORR R11, R11, #2
|
||||
check_esram_edac
|
||||
CMP R1, #0
|
||||
BEQ check_stack_init
|
||||
ORR R11, R11, #1
|
||||
check_stack_init
|
||||
CMP R11, #0
|
||||
BEQ call_system_init
|
||||
clear_stack
|
||||
LDR R0, =stack_start
|
||||
LDR R1, =stack_end
|
||||
LDR R2, RAM_INIT_PATTERN
|
||||
BL fill_memory ; fill_memory takes r0 - r2 as arguments uses r4, r5, r6, r7, r8, r9, and does not preserve contents */
|
||||
|
||||
;---------------------------------------------------------------
|
||||
; Call SystemInit() to perform Libero specified configuration.
|
||||
;
|
||||
call_system_init
|
||||
LDR R0, =SystemInit
|
||||
BLX R0
|
||||
; LDR R0, =low_level_init
|
||||
; BLX R0
|
||||
|
||||
;---------------------------------------------------------------
|
||||
; Modify MDDR configuration if ECC/SECDED is enabled for MDDR.
|
||||
; Enable write combining on MDDR bridge, disable non-bufferable
|
||||
; regions.
|
||||
;
|
||||
adjust_mddr_cfg
|
||||
AND R10, R11, #0x2
|
||||
CMP R10, #0
|
||||
BEQ branch_to_main
|
||||
LDR R0, SF2_DDRB_NB_SIZE
|
||||
LDR R1, SF2_DDRB_CR
|
||||
LDR R2, [R0]
|
||||
LDR R3, [R1]
|
||||
push {R0, R1, R2, R3}
|
||||
MOV R2, #0
|
||||
MOV R3, #0xFF
|
||||
STR R2, [R0]
|
||||
STR R3, [R1]
|
||||
|
||||
; --------------------------------------------------------------
|
||||
; Initialize heap RAM content to initialize the error detection
|
||||
; and correction (EDAC). We use the decision made earlier in the
|
||||
; startup code of whether or not the stack RAM should be
|
||||
; initialized. This decision is held in register R11. A non-zero
|
||||
; value indicates that the RAM content should be initialized.
|
||||
;
|
||||
clear_heap
|
||||
CMP R11, #0
|
||||
BEQ branch_to_main
|
||||
LDR R0, =__heap_base
|
||||
LDR R1, =__heap_limit
|
||||
LDR R2, HEAP_INIT_PATTERN
|
||||
BL fill_memory ; fill_memory takes r0 - r2 as arguments uses r4, r5, r6, r7, r8, r9, and does not preserve contents */
|
||||
|
||||
;---------------------------------------------------------------
|
||||
; Branch to __main
|
||||
;
|
||||
branch_to_main
|
||||
LDR R0, =__main
|
||||
BX R0
|
||||
ENDP
|
||||
|
||||
SF2_EDAC_CR DCD 0x40038038
|
||||
SF2_DDRB_NB_SIZE DCD 0x40038030
|
||||
SF2_DDRB_CR DCD 0x40038034
|
||||
SF2_MDDR_MODE_CR DCD 0x40020818
|
||||
RAM_INIT_PATTERN DCD 0x00000000
|
||||
HEAP_INIT_PATTERN DCD 0x00000000
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; * fill_memory.
|
||||
; * @brief Fills memory with Pattern contained in r2
|
||||
; * This routine uses the stmne instruction to copy 4 words at a time which is very efficient
|
||||
; * The instruction can only write to word aligned memory, hence the code at the start and end of this routine
|
||||
; * to handle possible unaligned bytes at start and end.
|
||||
; *
|
||||
; * @param param1 r0: start address
|
||||
; * @param param2 r1: end address
|
||||
; * @param param3 r2: FILL PATTETN
|
||||
; *
|
||||
; * @note note: Most efficient if memory aligned. Linker ALIGN(4) command
|
||||
; * should be used as per example linker scripts
|
||||
; * Stack is not used in this routine
|
||||
; * register contents r4, r5, r6, r7, r8, r9, will are used and will be returned undefined
|
||||
; * @return none - Used Registers are not preserved
|
||||
; */
|
||||
|
||||
fill_memory PROC
|
||||
;push {r4, r5, r6, r7, r8, r9, lr} We will not use stack as may be not available */
|
||||
cmp r0, r1
|
||||
beq fill_memory_exit ; Exit early if source and destination the same */
|
||||
; copy non-aligned bytes at the start */
|
||||
and.w r6, r0, #3 ; see if non-alaigned bytes at the start */
|
||||
cmp r6, #0
|
||||
beq fill_memory_end_start ; no spare bytes at start, continue */
|
||||
mov r5, #4
|
||||
sub.w r4, r5, r6 ; now have number of non-aligned bytes in r4 */
|
||||
mov r7, #8
|
||||
mul r8, r7, r6 ; calculate number of shifts required to initalise pattern for non-aligned bytes */
|
||||
mov r9, r2 ; copy pattern */
|
||||
ror r9, r9, r8 ; Rotate right to keep pattern consistent */
|
||||
fill_memory_spare_bytes_start ; From above, R0 contains source address, R1 contains destination address */
|
||||
cmp r4, #0 ; no spare bytes at end- end now */
|
||||
beq fill_memory_end_start
|
||||
strb r9, [r0] ; fill byte */
|
||||
ror.w r9, r9, r7 ; Rotate right by one byte for the next time, to keep pattern consistent */
|
||||
add r0, r0, #1 ; add one to address */
|
||||
subs r4, r4, #1 ; subtract one from byte count 1 */
|
||||
b fill_memory_spare_bytes_start
|
||||
fill_memory_end_start
|
||||
mov r6, #0
|
||||
mov r7, r1 ; save end address */
|
||||
subs r1, r1, r0 ; Calculate number of bytes to fill */
|
||||
mov r8,r1 ; Save copy of byte count */
|
||||
asrs r1,r1, #4 ; Div by 16 to get number of chunks to move */
|
||||
mov r9, r2 ; copy pattern */
|
||||
mov r4, r2 ; copy pattern */
|
||||
mov r5, r2 ; copy pattern */
|
||||
cmp r1, r6 ; compare to see if all chunks copied */
|
||||
beq fill_memory_spare_bytes_end
|
||||
fill_memory_loop
|
||||
it ne
|
||||
stmne r0!, {r2, r4, r5, r9} ; copy pattern- note: stmne instruction must me word aligned (address in r0) */
|
||||
add.w r6, r6, #1 ; use Thumb2- make sure condition code reg. not updated */
|
||||
cmp r1, r6 ; compare to see if all chunks copied */
|
||||
bne fill_memory_loop
|
||||
fill_memory_spare_bytes_end ; copy spare bytes at the end if any */
|
||||
and.w r8, r8, #15 ; get spare bytes --check can you do an ands? */
|
||||
fill_memory_spare_end_loop ; From above, R0 contains source address, R1 contains destination address */
|
||||
cmp r8, #0 ; no spare bytes at end- end now */
|
||||
beq fill_memory_exit
|
||||
strb r2, [r0]
|
||||
ror.w r2, r2, #8 ; Rotate right by one byte for the next time, to keep pattern consistent */
|
||||
add r0, r0, #1 ; add one to address */
|
||||
subs r8, r8, #1 ; subtract one from byte count 1 */
|
||||
b fill_memory_spare_end_loop
|
||||
fill_memory_exit
|
||||
bx lr ; We will not use pop as stack may be not available */
|
||||
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 WdogWakeup_IRQHandler [WEAK]
|
||||
EXPORT RTC_Wakeup_IRQHandler [WEAK]
|
||||
EXPORT SPI0_IRQHandler [WEAK]
|
||||
EXPORT SPI1_IRQHandler [WEAK]
|
||||
EXPORT I2C0_IRQHandler [WEAK]
|
||||
EXPORT I2C0_SMBAlert_IRQHandler [WEAK]
|
||||
EXPORT I2C0_SMBus_IRQHandler [WEAK]
|
||||
EXPORT I2C1_IRQHandler [WEAK]
|
||||
EXPORT I2C1_SMBAlert_IRQHandler [WEAK]
|
||||
EXPORT I2C1_SMBus_IRQHandler [WEAK]
|
||||
EXPORT UART0_IRQHandler [WEAK]
|
||||
EXPORT UART1_IRQHandler [WEAK]
|
||||
EXPORT EthernetMAC_IRQHandler [WEAK]
|
||||
EXPORT DMA_IRQHandler [WEAK]
|
||||
EXPORT Timer1_IRQHandler [WEAK]
|
||||
EXPORT Timer2_IRQHandler [WEAK]
|
||||
EXPORT CAN_IRQHandler [WEAK]
|
||||
EXPORT ENVM0_IRQHandler [WEAK]
|
||||
EXPORT ENVM1_IRQHandler [WEAK]
|
||||
EXPORT ComBlk_IRQHandler [WEAK]
|
||||
EXPORT USB_IRQHandler [WEAK]
|
||||
EXPORT USB_DMA_IRQHandler [WEAK]
|
||||
EXPORT PLL_Lock_IRQHandler [WEAK]
|
||||
EXPORT PLL_LockLost_IRQHandler [WEAK]
|
||||
EXPORT CommSwitchError_IRQHandler [WEAK]
|
||||
EXPORT CacheError_IRQHandler [WEAK]
|
||||
EXPORT DDR_IRQHandler [WEAK]
|
||||
EXPORT HPDMA_Complete_IRQHandler [WEAK]
|
||||
EXPORT HPDMA_Error_IRQHandler [WEAK]
|
||||
EXPORT ECC_Error_IRQHandler [WEAK]
|
||||
EXPORT MDDR_IOCalib_IRQHandler [WEAK]
|
||||
EXPORT FAB_PLL_Lock_IRQHandler [WEAK]
|
||||
EXPORT FAB_PLL_LockLost_IRQHandler [WEAK]
|
||||
EXPORT FIC64_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq0_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq1_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq2_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq3_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq4_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq5_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq6_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq7_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq8_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq9_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq10_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq11_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq12_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq13_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq14_IRQHandler [WEAK]
|
||||
EXPORT FabricIrq15_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 GPIO8_IRQHandler [WEAK]
|
||||
EXPORT GPIO9_IRQHandler [WEAK]
|
||||
EXPORT GPIO10_IRQHandler [WEAK]
|
||||
EXPORT GPIO11_IRQHandler [WEAK]
|
||||
EXPORT GPIO12_IRQHandler [WEAK]
|
||||
EXPORT GPIO13_IRQHandler [WEAK]
|
||||
EXPORT GPIO14_IRQHandler [WEAK]
|
||||
EXPORT GPIO15_IRQHandler [WEAK]
|
||||
EXPORT GPIO16_IRQHandler [WEAK]
|
||||
EXPORT GPIO17_IRQHandler [WEAK]
|
||||
EXPORT GPIO18_IRQHandler [WEAK]
|
||||
EXPORT GPIO19_IRQHandler [WEAK]
|
||||
EXPORT GPIO20_IRQHandler [WEAK]
|
||||
EXPORT GPIO21_IRQHandler [WEAK]
|
||||
EXPORT GPIO22_IRQHandler [WEAK]
|
||||
EXPORT GPIO23_IRQHandler [WEAK]
|
||||
EXPORT GPIO24_IRQHandler [WEAK]
|
||||
EXPORT GPIO25_IRQHandler [WEAK]
|
||||
EXPORT GPIO26_IRQHandler [WEAK]
|
||||
EXPORT GPIO27_IRQHandler [WEAK]
|
||||
EXPORT GPIO28_IRQHandler [WEAK]
|
||||
EXPORT GPIO29_IRQHandler [WEAK]
|
||||
EXPORT GPIO30_IRQHandler [WEAK]
|
||||
EXPORT GPIO31_IRQHandler [WEAK]
|
||||
|
||||
|
||||
WdogWakeup_IRQHandler
|
||||
RTC_Wakeup_IRQHandler
|
||||
SPI0_IRQHandler
|
||||
SPI1_IRQHandler
|
||||
I2C0_IRQHandler
|
||||
I2C0_SMBAlert_IRQHandler
|
||||
I2C0_SMBus_IRQHandler
|
||||
I2C1_IRQHandler
|
||||
I2C1_SMBAlert_IRQHandler
|
||||
I2C1_SMBus_IRQHandler
|
||||
UART0_IRQHandler
|
||||
UART1_IRQHandler
|
||||
EthernetMAC_IRQHandler
|
||||
DMA_IRQHandler
|
||||
Timer1_IRQHandler
|
||||
Timer2_IRQHandler
|
||||
CAN_IRQHandler
|
||||
ENVM0_IRQHandler
|
||||
ENVM1_IRQHandler
|
||||
ComBlk_IRQHandler
|
||||
USB_IRQHandler
|
||||
USB_DMA_IRQHandler
|
||||
PLL_Lock_IRQHandler
|
||||
PLL_LockLost_IRQHandler
|
||||
CommSwitchError_IRQHandler
|
||||
CacheError_IRQHandler
|
||||
DDR_IRQHandler
|
||||
HPDMA_Complete_IRQHandler
|
||||
HPDMA_Error_IRQHandler
|
||||
ECC_Error_IRQHandler
|
||||
MDDR_IOCalib_IRQHandler
|
||||
FAB_PLL_Lock_IRQHandler
|
||||
FAB_PLL_LockLost_IRQHandler
|
||||
FIC64_IRQHandler
|
||||
FabricIrq0_IRQHandler
|
||||
FabricIrq1_IRQHandler
|
||||
FabricIrq2_IRQHandler
|
||||
FabricIrq3_IRQHandler
|
||||
FabricIrq4_IRQHandler
|
||||
FabricIrq5_IRQHandler
|
||||
FabricIrq6_IRQHandler
|
||||
FabricIrq7_IRQHandler
|
||||
FabricIrq8_IRQHandler
|
||||
FabricIrq9_IRQHandler
|
||||
FabricIrq10_IRQHandler
|
||||
FabricIrq11_IRQHandler
|
||||
FabricIrq12_IRQHandler
|
||||
FabricIrq13_IRQHandler
|
||||
FabricIrq14_IRQHandler
|
||||
FabricIrq15_IRQHandler
|
||||
GPIO0_IRQHandler
|
||||
GPIO1_IRQHandler
|
||||
GPIO2_IRQHandler
|
||||
GPIO3_IRQHandler
|
||||
GPIO4_IRQHandler
|
||||
GPIO5_IRQHandler
|
||||
GPIO6_IRQHandler
|
||||
GPIO7_IRQHandler
|
||||
GPIO8_IRQHandler
|
||||
GPIO9_IRQHandler
|
||||
GPIO10_IRQHandler
|
||||
GPIO11_IRQHandler
|
||||
GPIO12_IRQHandler
|
||||
GPIO13_IRQHandler
|
||||
GPIO14_IRQHandler
|
||||
GPIO15_IRQHandler
|
||||
GPIO16_IRQHandler
|
||||
GPIO17_IRQHandler
|
||||
GPIO18_IRQHandler
|
||||
GPIO19_IRQHandler
|
||||
GPIO20_IRQHandler
|
||||
GPIO21_IRQHandler
|
||||
GPIO22_IRQHandler
|
||||
GPIO23_IRQHandler
|
||||
GPIO24_IRQHandler
|
||||
GPIO25_IRQHandler
|
||||
GPIO26_IRQHandler
|
||||
GPIO27_IRQHandler
|
||||
GPIO28_IRQHandler
|
||||
GPIO29_IRQHandler
|
||||
GPIO30_IRQHandler
|
||||
GPIO31_IRQHandler
|
||||
B .
|
||||
|
||||
ENDP
|
||||
|
||||
mscc_post_hw_cfg_init PROC
|
||||
EXPORT mscc_post_hw_cfg_init [WEAK]
|
||||
BX LR
|
||||
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
|
|
@ -0,0 +1,249 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* file name : debug-in-microsemi-smartfusion2-envm.ld
|
||||
* SmartFusion2 Cortex-M3 linker script for creating a SoftConsole downloadable
|
||||
* debug image executing in SmartFusion2 internal eNVM.
|
||||
*
|
||||
* Some current (April 2015) dev kit memory map possibilities are
|
||||
* --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
* --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
* --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
* --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
* --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
* --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
* --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
* --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
* --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
* --Some older physical memory map possibilities are
|
||||
* --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
* --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
* --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
*
|
||||
* Example linker scripts use lowest practicl values so will work accross dev kits
|
||||
* eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
*
|
||||
* On reset, the eNVM region is mapped to 0x00000000
|
||||
* This is changed below by setting the __smartfusion2_memory_remap variable as required.
|
||||
* Options are detailed below.
|
||||
*
|
||||
* SVN $Revision: 7419 $
|
||||
* SVN $Date: 2015-05-15 21:20:21 +0530 (Fri, 15 May 2015) $
|
||||
*/
|
||||
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||
GROUP(-lc -lgcc -lm)
|
||||
OUTPUT_ARCH(arm)
|
||||
ENTRY(Reset_Handler)
|
||||
SEARCH_DIR(.)
|
||||
__DYNAMIC = 0;
|
||||
|
||||
/*******************************************************************************
|
||||
* Start of board customization.
|
||||
*******************************************************************************/
|
||||
MEMORY
|
||||
{
|
||||
/*
|
||||
* In general, example LD scripts use lowest common memory footprint
|
||||
* so will work with all devices.
|
||||
*/
|
||||
/*
|
||||
* WARNING: The words "SOFTCONSOLE", "FLASH", and "USE", the colon ":", and
|
||||
* the name of the type of flash memory are all in a specific order.
|
||||
* Please do not modify that comment line, in order to ensure
|
||||
* debugging of your application will use the flash memory correctly.
|
||||
*/
|
||||
|
||||
/* SOFTCONSOLE FLASH USE: microsemi-smartfusion2-envm */
|
||||
rom (rx) : ORIGIN = 0x60000000, LENGTH = 256k
|
||||
|
||||
/* SmartFusion2 internal eNVM mirrored to 0x00000000 */
|
||||
romMirror (rx) : ORIGIN = 0x00000000, LENGTH = 256k
|
||||
|
||||
/* SmartFusion2 internal eSRAM */
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64k
|
||||
}
|
||||
|
||||
RAM_START_ADDRESS = 0x20000000; /* Must be the same value MEMORY region ram ORIGIN above. */
|
||||
RAM_SIZE = 64k; /* Must be the same value MEMORY region ram LENGTH above. */
|
||||
MAIN_STACK_SIZE = 4k; /* Cortex main stack size. */
|
||||
MIN_SIZE_HEAP = 4k; /* needs to be calculated for your application */
|
||||
|
||||
/*******************************************************************************
|
||||
* End of board customization.
|
||||
*******************************************************************************/
|
||||
|
||||
PROVIDE (__main_stack_start = RAM_START_ADDRESS + RAM_SIZE);
|
||||
PROVIDE (_estack = __main_stack_start);
|
||||
PROVIDE (__mirrored_nvm = 1); /* Indicate to startup code that NVM is mirrored to VMA address and no text copy is required. */
|
||||
|
||||
/*
|
||||
* Remap instruction for startup code and debugger.
|
||||
* set __smartfusion2_memory_remap to one of the following:
|
||||
* 0: remap eNVM to address 0x00000000 Production mode or debugging from eNVM
|
||||
* 1: remap eSRAM to address 0x00000000 Debugging from eSRAM
|
||||
* 2: remap external DDR memory to address 0x00000000 Debugging from DDR memory
|
||||
*/
|
||||
PROVIDE (__smartfusion2_memory_remap = 0);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.vector_table : ALIGN(0x10)
|
||||
{
|
||||
__vector_table_load = LOADADDR(.vector_table);
|
||||
__vector_table_start = .;
|
||||
__vector_table_vma_base_address = .; /* required by debugger for start address */
|
||||
KEEP(*(.isr_vector))
|
||||
. = ALIGN(0x10);
|
||||
_evector_table = .;
|
||||
} >romMirror AT>rom
|
||||
|
||||
/* all data and code run/used before reloaction must be located here */
|
||||
/* When all code in NVRAM, no requirement for this section- but adds clarity when looking at .lst file */
|
||||
.boot_code : ALIGN(0x10)
|
||||
{
|
||||
*(.boot_code) /* reset handler */
|
||||
*system_m2sxxx.o(.text*) /* SystemInit() - called before relocation to RAM so keep in ROM */
|
||||
*sys_config.o(.rodata*)
|
||||
. = ALIGN(0x10);
|
||||
} >romMirror AT>rom
|
||||
|
||||
.text : ALIGN(0x10)
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
__text_load = LOADADDR(.text); /* required when copying to RAM */
|
||||
__text_start = .; /* required when copying to RAM */
|
||||
*(.text .text.* .gnu.linkonce.t.*)
|
||||
*(.plt)
|
||||
*(.gnu.warning)
|
||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer)
|
||||
|
||||
. = ALIGN(4);
|
||||
/* These are for running static constructors and destructors under ELF. */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*crtend.o(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*crtend.o(.dtors))
|
||||
|
||||
*(.rodata .rodata.* .gnu.linkonce.r.*)
|
||||
|
||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||
*(.gcc_except_table)
|
||||
*(.eh_frame_hdr)
|
||||
*(.eh_frame)
|
||||
|
||||
KEEP (*(.vector_table))
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.fini))
|
||||
|
||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||
KEEP (*(.preinit_array))
|
||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||
PROVIDE_HIDDEN (__init_array_start = .);
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||
KEEP (*(.fini_array))
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||
. = ALIGN(0x10);
|
||||
} >romMirror AT>rom
|
||||
|
||||
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
||||
__exidx_start = .;
|
||||
.ARM.exidx :
|
||||
{
|
||||
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
||||
} >ram AT>rom
|
||||
__exidx_end = .;
|
||||
_etext = .; /* required when copying to RAM */
|
||||
|
||||
.data : ALIGN(0x10)
|
||||
{
|
||||
__data_load = LOADADDR(.data); /* used when copying to RAM */
|
||||
_sidata = LOADADDR (.data);
|
||||
__data_start = .; /* used when copying to RAM */
|
||||
_sdata = .;
|
||||
KEEP(*(.jcr))
|
||||
*(.got.plt) *(.got)
|
||||
*(.shdata)
|
||||
*(.data .data.* .gnu.linkonce.d.*)
|
||||
. = ALIGN (0x10);
|
||||
_edata = .; /* used when copying to RAM */
|
||||
} >ram AT>rom
|
||||
|
||||
.bss : ALIGN(0x10)
|
||||
{
|
||||
__bss_start__ = . ;
|
||||
_sbss = .;
|
||||
*(.shbss)
|
||||
*(.bss .bss.* .gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
. = ALIGN(0x10);
|
||||
__bss_end__ = .;
|
||||
_end = .;
|
||||
__end = _end;
|
||||
_ebss = .;
|
||||
PROVIDE(end = .);
|
||||
} >ram AT>rom
|
||||
|
||||
.heap : ALIGN(0x10)
|
||||
{
|
||||
__heap_start__ = .;
|
||||
. += MIN_SIZE_HEAP; /* will generate error if this minimum size not available */
|
||||
. += ((ABSOLUTE(RAM_START_ADDRESS) + RAM_SIZE - MAIN_STACK_SIZE) - .); /* assumes stack starts after heap */
|
||||
_eheap = .;
|
||||
} >ram
|
||||
|
||||
.stack : ALIGN(0x10)
|
||||
{
|
||||
__stack_start__ = .;
|
||||
. += MAIN_STACK_SIZE;
|
||||
_estack = .;
|
||||
} >ram
|
||||
|
||||
.stab 0 (NOLOAD) :
|
||||
{
|
||||
*(.stab)
|
||||
}
|
||||
|
||||
.stabstr 0 (NOLOAD) :
|
||||
{
|
||||
*(.stabstr)
|
||||
}
|
||||
/* DWARF debug sections.
|
||||
Symbols in the DWARF debugging sections are relative to the beginning
|
||||
of the section so we begin them at 0. */
|
||||
/* DWARF 1 */
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
/* GNU DWARF 1 extensions */
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
/* DWARF 1.1 and DWARF 2 */
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
/* DWARF 2 */
|
||||
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
/* SGI/MIPS DWARF 2 extensions */
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
|
||||
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }
|
||||
/DISCARD/ : { *(.note.GNU-stack) }
|
||||
}
|
|
@ -0,0 +1,248 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* file name : debug-in-microsemi-smartfusion2-esram.ld
|
||||
* SmartFusion2 Cortex-M3 linker script for creating a SoftConsole downloadable
|
||||
* debug image executing in SmartFusion2 internal eSRAM.
|
||||
*
|
||||
* Some current (April 2015) dev kit memory map possibilities are
|
||||
* --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
* --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
* --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
* --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
* --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
* --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
* --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
* --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
* --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
* --Some older physical memory map possibilities are
|
||||
* --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
* --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
* --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
*
|
||||
* Example linker scripts use lowest practicl values so will work accross dev kits
|
||||
* eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
*
|
||||
* On reset, the eNVM region is mapped to 0x00000000
|
||||
* This is changed below by setting the __smartfusion2_memory_remap variable as required.
|
||||
* Options are detailed below.
|
||||
*
|
||||
* SVN $Revision: 7478 $
|
||||
* SVN $Date: 2015-06-18 21:48:18 +0530 (Thu, 18 Jun 2015) $
|
||||
*/
|
||||
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||
GROUP(-lc -lgcc -lm)
|
||||
OUTPUT_ARCH(arm)
|
||||
ENTRY(Reset_Handler)
|
||||
SEARCH_DIR(.)
|
||||
__DYNAMIC = 0;
|
||||
|
||||
/*******************************************************************************
|
||||
* Start of board customization.
|
||||
*******************************************************************************/
|
||||
MEMORY
|
||||
{
|
||||
/*
|
||||
* In general, example LD scripts use lowest common memory footprint
|
||||
* so will work with all devices.
|
||||
*/
|
||||
/*
|
||||
* WARNING: The words "SOFTCONSOLE", "FLASH", and "USE", the colon ":", and
|
||||
* the name of the type of flash memory are all in a specific order.
|
||||
* Please do not modify that comment line, in order to ensure
|
||||
* debugging of your application will use the flash memory correctly.
|
||||
*/
|
||||
/* SmartFusion2 internal eSRAM */
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64k
|
||||
}
|
||||
|
||||
RAM_START_ADDRESS = 0x20000000; /* Must be the same value MEMORY region ram ORIGIN above. */
|
||||
RAM_SIZE = 64k; /* Must be the same value MEMORY region ram LENGTH above. */
|
||||
MAIN_STACK_SIZE = 4k; /* Cortex main stack size. */
|
||||
MIN_SIZE_HEAP = 4k; /* needs to be calculated for your application */
|
||||
|
||||
/* Please note that unassigned RAM will be allocated to the .heap section. */
|
||||
|
||||
/*******************************************************************************
|
||||
* End of board customization.
|
||||
*******************************************************************************/
|
||||
|
||||
PROVIDE (__main_stack_start = RAM_START_ADDRESS + RAM_SIZE);
|
||||
PROVIDE (_estack = __main_stack_start);
|
||||
PROVIDE (__mirrored_nvm = 0); /* Indicate to startup code that NVM is not mirrored to VMA address .text copy is required. */
|
||||
|
||||
/*
|
||||
* Remap instruction for start-up code and debugger.
|
||||
* set __smartfusion2_memory_remap to one of the following:
|
||||
* 0: remap eNVM to address 0x00000000 Production mode or debugging from eNVM
|
||||
* 1: remap eSRAM to address 0x00000000 See note 1 below.
|
||||
* 2: remap external DDR memory to address 0x00000000 Debugging from or production relocate to DDR memory
|
||||
* note 1: This option should only be used in production mode if required. When debugging using eSRAM, code is not
|
||||
* relocated and __smartfusion2_memory_remap should be set to option 0. In revision 7419 and below of
|
||||
* this file, __smartfusion2_memory_remap was set to option 1. This remap was not required and could lead to an issue
|
||||
* when displaying some invalid memory locations in the debugger using some Libero designs.
|
||||
*
|
||||
*/
|
||||
|
||||
PROVIDE (__smartfusion2_memory_remap = 0);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.vector_table : ALIGN(0x10)
|
||||
{
|
||||
__vector_table_load = LOADADDR(.vector_table);
|
||||
__vector_table_start = .;
|
||||
__vector_table_vma_base_address = .;
|
||||
KEEP(*(.isr_vector))
|
||||
. = ALIGN(0x10);
|
||||
_evector_table = .;
|
||||
} >ram
|
||||
|
||||
.boot_code : ALIGN(0x10) /* When all code in RAM, no requirement for this section- but adds clarity when looking at .lst file */
|
||||
{
|
||||
*(.boot_code)
|
||||
. = ALIGN(0x10);
|
||||
} >ram
|
||||
|
||||
.text :
|
||||
ALIGN(0x10)
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
__text_load = LOADADDR(.text);
|
||||
__text_start = .;
|
||||
*(.text .text.* .gnu.linkonce.t.*)
|
||||
*(.plt)
|
||||
*(.gnu.warning)
|
||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer)
|
||||
|
||||
. = ALIGN(0x4);
|
||||
/* These are for running static constructors and destructors under ELF. */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*crtend.o(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*crtend.o(.dtors))
|
||||
|
||||
*(.rodata .rodata.* .gnu.linkonce.r.*)
|
||||
|
||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||
*(.gcc_except_table)
|
||||
*(.eh_frame_hdr)
|
||||
*(.eh_frame)
|
||||
|
||||
KEEP (*(.vector_table))
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.fini))
|
||||
|
||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||
KEEP (*(.preinit_array))
|
||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||
PROVIDE_HIDDEN (__init_array_start = .);
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||
KEEP (*(.fini_array))
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||
. = ALIGN(0x10);
|
||||
} >ram
|
||||
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
||||
__exidx_start = .;
|
||||
.ARM.exidx :
|
||||
{
|
||||
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
||||
} >ram
|
||||
__exidx_end = .;
|
||||
_etext = .;
|
||||
PROVIDE(__text_end = .);
|
||||
|
||||
.data :
|
||||
ALIGN(0x10)
|
||||
{
|
||||
__data_load = LOADADDR (.data);
|
||||
_sidata = LOADADDR (.data);
|
||||
__data_start = .;
|
||||
_sdata = .;
|
||||
KEEP(*(.jcr))
|
||||
*(.got.plt) *(.got)
|
||||
*(.shdata)
|
||||
*(.data .data.* .gnu.linkonce.d.*)
|
||||
. = ALIGN(0x10);
|
||||
_edata = .;
|
||||
} >ram
|
||||
|
||||
.bss : ALIGN(0x10)
|
||||
{
|
||||
__bss_start__ = . ;
|
||||
_sbss = .;
|
||||
*(.shbss)
|
||||
*(.bss .bss.* .gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
. = ALIGN(0x10);
|
||||
__bss_end__ = .;
|
||||
_end = .;
|
||||
__end = _end;
|
||||
_ebss = .;
|
||||
PROVIDE(end = .);
|
||||
} >ram
|
||||
|
||||
.heap : ALIGN(0x10)
|
||||
{
|
||||
__heap_start__ = .;
|
||||
. += MIN_SIZE_HEAP; /* will generate error if this minimum size not available */
|
||||
. += ((ABSOLUTE(RAM_START_ADDRESS) + RAM_SIZE - MAIN_STACK_SIZE) - .); /* assumes stack starts after heap */
|
||||
_eheap = .;
|
||||
} >ram
|
||||
|
||||
.stack : ALIGN(0x10)
|
||||
{
|
||||
__stack_start__ = .;
|
||||
. += MAIN_STACK_SIZE;
|
||||
_estack = .;
|
||||
} >ram
|
||||
|
||||
.stab 0 (NOLOAD) :
|
||||
{
|
||||
*(.stab)
|
||||
}
|
||||
|
||||
.stabstr 0 (NOLOAD) :
|
||||
{
|
||||
*(.stabstr)
|
||||
}
|
||||
/* DWARF debug sections.
|
||||
Symbols in the DWARF debugging sections are relative to the beginning
|
||||
of the section so we begin them at 0. */
|
||||
/* DWARF 1 */
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
/* GNU DWARF 1 extensions */
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
/* DWARF 1.1 and DWARF 2 */
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
/* DWARF 2 */
|
||||
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
/* SGI/MIPS DWARF 2 extensions */
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
|
||||
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }
|
||||
/DISCARD/ : { *(.note.GNU-stack) *(.isr_vector) }
|
||||
}
|
|
@ -0,0 +1,238 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* file name : debug-in-microsemi-smartfusion2-external-ram.ld
|
||||
* SmartFusion2 Cortex-M3 linker script for creating a SoftConsole downloadable
|
||||
* debug image executing in external eRAM.
|
||||
*
|
||||
* Some current (April 2015) dev kit memory map possibilities are
|
||||
* --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
* --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
* --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
* --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
* --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
* --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
* --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
* --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
* --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
* --Some older physical memory map possibilities are
|
||||
* --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
* --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
* --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
*
|
||||
* Example linker scripts use lowest practical values so will work accross dev kits
|
||||
* eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
*
|
||||
* On reset, the eNVM region is mapped to 0x00000000
|
||||
* This is changed below by setting the __smartfusion2_memory_remap variable as required.
|
||||
* Options are detailed below.
|
||||
*
|
||||
* SVN $Revision: 7419 $
|
||||
* SVN $Date: 2015-05-15 21:20:21 +0530 (Fri, 15 May 2015) $
|
||||
*/
|
||||
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||
GROUP(-lc -lgcc -lm)
|
||||
OUTPUT_ARCH(arm)
|
||||
ENTRY(Reset_Handler)
|
||||
SEARCH_DIR(.)
|
||||
__DYNAMIC = 0;
|
||||
|
||||
/*******************************************************************************
|
||||
* Start of board customization.
|
||||
*******************************************************************************/
|
||||
MEMORY
|
||||
{
|
||||
/*
|
||||
* In general, example LD scripts use lowest common memory footprint
|
||||
* accross dev boards so will work with all devices. Currently this is 64MB
|
||||
* Program and data space is split evenly in this example 32MB each
|
||||
*/
|
||||
/* SmartFusion2 internal eSRAM */
|
||||
esram (rwx) : ORIGIN = 0x20000000, LENGTH = 64k
|
||||
|
||||
/* SmartFusion2 development board external RAM */
|
||||
external_ram (rwx) : ORIGIN = 0x00000000, LENGTH = 32m
|
||||
|
||||
/* External MDDR RAM used for data section. */
|
||||
/* Must be enough room allocated for data section between 0xA0000000 and data_external_ram */
|
||||
data_external_ram (rw) : ORIGIN = 0xA2000000, LENGTH = 32m
|
||||
}
|
||||
|
||||
ESRAM_START_ADDRESS = 0x20000000; /* Must be the same value MEMORY region ram ORIGIN above. */
|
||||
ESRAM_SIZE = 64k; /* Must be the same value MEMORY region ram LENGTH above. */
|
||||
MAIN_STACK_SIZE = 64k; /* Cortex main stack size. */
|
||||
MIN_SIZE_HEAP = 64k; /* needs to be calculated for your application */
|
||||
TOP_OF_MDDR = 0xA4000000; /* Top address of the external MDDR memory. */
|
||||
|
||||
/*******************************************************************************
|
||||
* End of board customization.
|
||||
*******************************************************************************/
|
||||
/*PROVIDE (__main_ram_size = ESRAM_SIZE); */
|
||||
PROVIDE (__main_stack_start = ESRAM_START_ADDRESS + ESRAM_SIZE);
|
||||
PROVIDE (__process_stack_start = __main_stack_start - MAIN_STACK_SIZE);
|
||||
PROVIDE (_estack = __main_stack_start);
|
||||
PROVIDE (__mirrored_nvm = 0); /* Indicate to startup code that NVM is not mirrored to VMA address .text copy is required. */
|
||||
|
||||
/*
|
||||
* Remap instruction for startup code and debugger.
|
||||
* set __smartfusion2_memory_remap to one of the following:
|
||||
* 0: remap eNVM to address 0x00000000 Production mode or debugging from eNVM
|
||||
* 1: remap eSRAM to address 0x00000000 Debugging from eSRAM
|
||||
* 2: remap external DDR memory to address 0x00000000 Debugging from DDR memory
|
||||
*/
|
||||
PROVIDE (__smartfusion2_memory_remap = 2);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.vector_table : ALIGN(0x10)
|
||||
{
|
||||
__vector_table_load = LOADADDR(.vector_table);
|
||||
__vector_table_start = .;
|
||||
__vector_table_vma_base_address = .; /* required by debugger for start address */
|
||||
KEEP(*(.isr_vector))
|
||||
. = ALIGN(0x10);
|
||||
_evector_table = .;
|
||||
} >external_ram
|
||||
|
||||
.text : ALIGN(0x10)
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
__text_load = LOADADDR(.text);
|
||||
__text_start = .;
|
||||
*(.text .text.* .gnu.linkonce.t.*)
|
||||
*(.plt)
|
||||
*(.gnu.warning)
|
||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer)
|
||||
|
||||
. = ALIGN(0x4);
|
||||
/* These are for running static constructors and destructors under ELF. */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*crtend.o(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*crtend.o(.dtors))
|
||||
|
||||
*(.rodata .rodata.* .gnu.linkonce.r.*)
|
||||
|
||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||
*(.gcc_except_table)
|
||||
*(.eh_frame_hdr)
|
||||
*(.eh_frame)
|
||||
|
||||
KEEP (*(.vector_table))
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.fini))
|
||||
|
||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||
KEEP (*(.preinit_array))
|
||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||
PROVIDE_HIDDEN (__init_array_start = .);
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||
KEEP (*(.fini_array))
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||
. = ALIGN(0x10);
|
||||
} >external_ram
|
||||
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
||||
__exidx_start = .;
|
||||
.ARM.exidx :
|
||||
{
|
||||
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
||||
} >external_ram
|
||||
__exidx_end = .;
|
||||
_etext = .;
|
||||
PROVIDE(__text_end = .);
|
||||
|
||||
.data : ALIGN(0x10)
|
||||
{
|
||||
__data_load = LOADADDR (.data);
|
||||
_sidata = LOADADDR (.data);
|
||||
__data_start = .;
|
||||
_sdata = .;
|
||||
KEEP(*(.jcr))
|
||||
*(.got.plt) *(.got)
|
||||
*(.shdata)
|
||||
*(.data .data.* .gnu.linkonce.d.*)
|
||||
. = ALIGN(0x10);
|
||||
_edata = .;
|
||||
} >data_external_ram
|
||||
|
||||
.bss : ALIGN(0x10)
|
||||
{
|
||||
__bss_start__ = . ;
|
||||
_sbss = .;
|
||||
*(.shbss)
|
||||
*(.bss .bss.* .gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
. = ALIGN(0x10);
|
||||
__bss_end__ = .;
|
||||
_end = .;
|
||||
__end = _end;
|
||||
_ebss = .;
|
||||
PROVIDE(end = .);
|
||||
} >data_external_ram
|
||||
|
||||
.heap : ALIGN(0x10)
|
||||
{
|
||||
__heap_start__ = .;
|
||||
. += MIN_SIZE_HEAP; /* will generate error if this minimum size not available */
|
||||
. += (ABSOLUTE(TOP_OF_MDDR) - . );
|
||||
. = ALIGN(0x10);
|
||||
_eheap = .;
|
||||
} >data_external_ram
|
||||
|
||||
.stack : ALIGN(0x10)
|
||||
{
|
||||
__stack_start__ = .;
|
||||
. += MAIN_STACK_SIZE;
|
||||
. = ALIGN(0x10);
|
||||
_estack = .;
|
||||
} >esram
|
||||
|
||||
.stab 0 (NOLOAD) :
|
||||
{
|
||||
*(.stab)
|
||||
}
|
||||
|
||||
.stabstr 0 (NOLOAD) :
|
||||
{
|
||||
*(.stabstr)
|
||||
}
|
||||
/* DWARF debug sections.
|
||||
Symbols in the DWARF debugging sections are relative to the beginning
|
||||
of the section so we begin them at 0. */
|
||||
/* DWARF 1 */
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
/* GNU DWARF 1 extensions */
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
/* DWARF 1.1 and DWARF 2 */
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
/* DWARF 2 */
|
||||
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
/* SGI/MIPS DWARF 2 extensions */
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
|
||||
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }
|
||||
/DISCARD/ : { *(.note.GNU-stack) *(.isr_vector) }
|
||||
}
|
|
@ -0,0 +1,241 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* file name : production-smartfusion2-execute-in-place.ld
|
||||
* SmartFusion2 Cortex-M3 linker script for creating a SoftConsole downloadable
|
||||
* image executing in SmartFusion2 internal eNVM.
|
||||
*
|
||||
* Some current (April 2015) dev kit memory map possibilities are
|
||||
* --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
* --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
* --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
* --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
* --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
* --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
* --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
* --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
* --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
* --Some older physical memory map possibilities are
|
||||
* --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
* --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
* --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
*
|
||||
* Example linker scripts use lowest practicl values so will work accross dev kits
|
||||
* eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
*
|
||||
* On reset, the eNVM region is mapped to 0x00000000
|
||||
* This is changed below by setting the __smartfusion2_memory_remap variable as required.
|
||||
* Options are detailed below.
|
||||
*
|
||||
* SVN $Revision: 7454 $
|
||||
* SVN $Date: 2015-06-08 20:28:07 +0530 (Mon, 08 Jun 2015) $
|
||||
*/
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||
GROUP(-lc -lgcc -lm)
|
||||
OUTPUT_ARCH(arm)
|
||||
ENTRY(Reset_Handler)
|
||||
SEARCH_DIR(.)
|
||||
__DYNAMIC = 0;
|
||||
|
||||
/*******************************************************************************
|
||||
* Start of board customization.
|
||||
*******************************************************************************/
|
||||
MEMORY
|
||||
{
|
||||
/*
|
||||
* In general, example LD scripts use lowest common memory footprint
|
||||
* so will work with all devices.
|
||||
*/
|
||||
/*
|
||||
* WARNING: The words "SOFTCONSOLE", "FLASH", and "USE", the colon ":", and
|
||||
* the name of the type of flash memory are all in a specific order.
|
||||
* Please do not modify that comment line, in order to ensure
|
||||
* debugging of your application will use the flash memory correctly.
|
||||
*/
|
||||
|
||||
/* SOFTCONSOLE FLASH USE: microsemi-smartfusion2-envm */
|
||||
rom (rx) : ORIGIN = 0x00000000, LENGTH = 256k
|
||||
|
||||
/* SmartFusion2 internal eSRAM */
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64k
|
||||
}
|
||||
|
||||
RAM_START_ADDRESS = 0x20000000; /* Must be the same value MEMORY region ram ORIGIN above. */
|
||||
RAM_SIZE = 64k; /* Must be the same value MEMORY region ram LENGTH above. */
|
||||
MAIN_STACK_SIZE = 4k; /* Cortex main stack size. */
|
||||
MIN_SIZE_HEAP = 4k; /* needs to be calculated for your application */
|
||||
|
||||
/*******************************************************************************
|
||||
* End of board customization.
|
||||
*******************************************************************************/
|
||||
|
||||
PROVIDE (__main_stack_start = RAM_START_ADDRESS + RAM_SIZE);
|
||||
PROVIDE (__process_stack_start = __main_stack_start - MAIN_STACK_SIZE);
|
||||
PROVIDE (_estack = __main_stack_start);
|
||||
PROVIDE (__mirrored_nvm = 0); /* Indicate to startup code that NVM is not mirrored to VMA address .text copy is required. */
|
||||
|
||||
/*
|
||||
* Remap instruction for startup code and debugger:
|
||||
* 0: remap eNVM to address 0x00000000
|
||||
* 1: remap eSRAM to address 0x00000000
|
||||
* 2: remap external DDR memory to address 0x00000000
|
||||
*/
|
||||
PROVIDE (__smartfusion2_memory_remap = 0);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.vector_table :
|
||||
{
|
||||
__vector_table_load = LOADADDR(.vector_table);
|
||||
__vector_table_start = .;
|
||||
__vector_table_vma_base_address = .;
|
||||
KEEP(*(.isr_vector))
|
||||
. = ALIGN(0x10);
|
||||
_evector_table = .;
|
||||
} >rom
|
||||
|
||||
.boot_code : ALIGN(0x10) /* When all code in NVRAM, no requirement for this section- but adds clarity when looking at .lst file */
|
||||
{
|
||||
*(.boot_code)
|
||||
. = ALIGN(0x10);
|
||||
} >rom
|
||||
|
||||
.text : ALIGN(0x10)
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
__text_load = LOADADDR(.text);
|
||||
__text_start = .;
|
||||
|
||||
*(.text .text.* .gnu.linkonce.t.*)
|
||||
*(.plt)
|
||||
*(.gnu.warning)
|
||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer)
|
||||
|
||||
. = ALIGN(0x4);
|
||||
/* These are for running static constructors and destructors under ELF. */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*crtend.o(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*crtend.o(.dtors))
|
||||
|
||||
*(.rodata .rodata.* .gnu.linkonce.r.*)
|
||||
|
||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||
*(.gcc_except_table)
|
||||
*(.eh_frame_hdr)
|
||||
*(.eh_frame)
|
||||
|
||||
KEEP (*(.vector_table))
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.fini))
|
||||
|
||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||
KEEP (*(.preinit_array))
|
||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||
PROVIDE_HIDDEN (__init_array_start = .);
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||
KEEP (*(.fini_array))
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||
. = ALIGN(0x10);
|
||||
} >rom
|
||||
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
||||
__exidx_start = .;
|
||||
.ARM.exidx :
|
||||
{
|
||||
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
||||
} >rom
|
||||
__exidx_end = .;
|
||||
_etext = .;
|
||||
|
||||
.data : ALIGN(0x10)
|
||||
{
|
||||
__data_load = LOADADDR(.data);
|
||||
_sidata = LOADADDR (.data);
|
||||
__data_start = .;
|
||||
_sdata = .;
|
||||
KEEP(*(.jcr))
|
||||
*(.got.plt) *(.got)
|
||||
*(.shdata)
|
||||
*(.data .data.* .gnu.linkonce.d.*)
|
||||
. = ALIGN(0x10);
|
||||
_edata = .;
|
||||
} >ram AT>rom
|
||||
|
||||
.bss : ALIGN(0x10)
|
||||
{
|
||||
__bss_start__ = . ;
|
||||
_sbss = .;
|
||||
*(.shbss)
|
||||
*(.bss .bss.* .gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
. = ALIGN(0x10);
|
||||
__bss_end__ = .;
|
||||
_end = .;
|
||||
__end = _end;
|
||||
_ebss = .;
|
||||
PROVIDE(end = .);
|
||||
} >ram AT>rom
|
||||
|
||||
.heap : ALIGN(0x10)
|
||||
{
|
||||
__heap_start__ = .;
|
||||
. += MIN_SIZE_HEAP; /* will generate error if this minimum size not available */
|
||||
. += ((ABSOLUTE(RAM_START_ADDRESS) + RAM_SIZE - MAIN_STACK_SIZE) - .); /* assumes stack starts after heap */
|
||||
_eheap = .;
|
||||
} >ram
|
||||
|
||||
.stack : ALIGN(0x10)
|
||||
{
|
||||
__stack_start__ = .;
|
||||
. += MAIN_STACK_SIZE;
|
||||
_estack = .;
|
||||
} >ram
|
||||
|
||||
.stab 0 (NOLOAD) :
|
||||
{
|
||||
*(.stab)
|
||||
}
|
||||
|
||||
.stabstr 0 (NOLOAD) :
|
||||
{
|
||||
*(.stabstr)
|
||||
}
|
||||
/* DWARF debug sections.
|
||||
Symbols in the DWARF debugging sections are relative to the beginning
|
||||
of the section so we begin them at 0. */
|
||||
/* DWARF 1 */
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
/* GNU DWARF 1 extensions */
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
/* DWARF 1.1 and DWARF 2 */
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
/* DWARF 2 */
|
||||
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
/* SGI/MIPS DWARF 2 extensions */
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
|
||||
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }
|
||||
/DISCARD/ : { *(.note.GNU-stack) }
|
||||
}
|
|
@ -0,0 +1,260 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2015 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* file name : production-smartfusion2-relocate-to-external-ram.ld
|
||||
* SmartFusion2 Cortex-M3 linker script for creating a SoftConsole downloadable
|
||||
* image which is copied from internal eNVM to external RAM during boot-up.
|
||||
*
|
||||
* Some current (April 2015) dev kit memory map possibilities are
|
||||
* --Type-------Device-----------address start---address end----size---Dbus--RAM IC-------SF2--Comment---------------
|
||||
* --eNVM-------M2S010-----------0x60000000------0x6007FFFF-----256KB---------------------010------------------------
|
||||
* --eNVM-------M2S090-----------0x60000000------0x6007FFFF-----512KB---------------------090------------------------
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x2000FFFF-----64KB----------------------xxx--All have same amount--
|
||||
* --eSRAM------M2Sxxx-----------0x20000000------0x20013FFF-----80KB----------------------xxx--If ECC/SECDED not used
|
||||
* --Fabric-----M2S010-----------0x30000000------0x6007FFFF-----400Kb---------------------010--note-K bits-----------
|
||||
* --Fabric-----M2S090-----------0x30000000------0x6007FFFF-----2074Kb--------------------090--note-K bits-----------
|
||||
* --LPDDR------STARTER-KIT------0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----050------------------------
|
||||
* --LPDDR------484-STARTER-KIT--0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16-----010------------------------
|
||||
* --LPDDR------SEC-EVAL-KIT-----0xA0000000------0xA3FFFFFF-----64MB---16--MT46H32M16LF---090--Security eval kit-----
|
||||
* --DDR3-------ADevKit----------0xA0000000------0xBFFFFFFF-----1GB----32--MT41K256M8DA---150------------------------
|
||||
* --Some older physical memory map possibilities are
|
||||
* --Type-------location---------address start---address end----size---Dbus---RAM IC------SF2--Comment--------------
|
||||
* --LPDDR------EVAL KIT---------0xA0000000------0xA3FFFFFF-----64MB-=-16--MT46H32M16LF---025--Eval Kit--------------
|
||||
* --DDR3-------DevKit-----------0xA0000000------0xAFFFFFFF-----512MB--16--MT41K256M8DA---050------------------------
|
||||
*
|
||||
* Example linker scripts use lowest practicl values so will work accross dev kits
|
||||
* eNVM=256KB eRAM=64KB External memory = 64MB
|
||||
*
|
||||
* On reset, the eNVM region is mapped to 0x00000000
|
||||
* This is changed below by setting the __smartfusion2_memory_remap variable as required.
|
||||
* Options are detailed below.
|
||||
*
|
||||
* SVN $Revision: 7419 $
|
||||
* SVN $Date: 2015-05-15 21:20:21 +0530 (Fri, 15 May 2015) $
|
||||
*/
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||
GROUP(-lc -lgcc -lm)
|
||||
OUTPUT_ARCH(arm)
|
||||
ENTRY(Reset_Handler)
|
||||
SEARCH_DIR(.)
|
||||
__DYNAMIC = 0;
|
||||
|
||||
/*******************************************************************************
|
||||
* Start of board customization.
|
||||
*******************************************************************************/
|
||||
MEMORY
|
||||
{
|
||||
/*
|
||||
* In general, example LD scripts use lowest common memory footprint
|
||||
* so will work with all devices.
|
||||
*/
|
||||
/*
|
||||
* WARNING: The words "SOFTCONSOLE", "FLASH", and "USE", the colon ":", and
|
||||
* the name of the type of flash memory are all in a specific order.
|
||||
* Please do not modify that comment line, in order to ensure
|
||||
* debugging of your application will use the flash memory correctly.
|
||||
*/
|
||||
|
||||
/* SOFTCONSOLE FLASH USE: microsemi-smartfusion2-envm */
|
||||
rom (rx) : ORIGIN = 0x60000000, LENGTH = 256k
|
||||
|
||||
/* External MDDR RAM used for data section. */
|
||||
/* 0xA0000000 where external memory starts */
|
||||
/* first 0x00FFFFF reserved for relocated progam */
|
||||
/* Locate external RX data above reserved program area */
|
||||
/* !!! This must not overlap with external_ram when MDDR is remapped to 0x00000000.!!! */
|
||||
data_external_ram (rw) : ORIGIN = 0xA2000000, LENGTH = 32m
|
||||
/* SmartFusion2 development board external RAM */
|
||||
external_ram (rwx) : ORIGIN = 0x00000000, LENGTH = 32m
|
||||
|
||||
/* SmartFusion2 internal eSRAM */
|
||||
esram (rwx) : ORIGIN = 0x20000000, LENGTH = 64k
|
||||
|
||||
}
|
||||
|
||||
ESRAM_START_ADDRESS = 0x20000000; /* Must be the same value as MEMORY region esram ORIGIN above. */
|
||||
ESRAM_SIZE = 64k; /* Must be the same value as MEMORY region esram LENGTH above. */
|
||||
MAIN_STACK_SIZE = 64k; /* Cortex main stack size. */
|
||||
MIN_SIZE_HEAP = 64k; /* needs to be calculated for your application */
|
||||
TOP_OF_MDDR = 0xA4000000; /* Top address of the external MDDR memory. */
|
||||
|
||||
/*******************************************************************************
|
||||
* End of board customization.
|
||||
*******************************************************************************/
|
||||
|
||||
PROVIDE (__main_stack_start = ESRAM_START_ADDRESS + ESRAM_SIZE);
|
||||
PROVIDE (__process_stack_start = __main_stack_start - MAIN_STACK_SIZE);
|
||||
PROVIDE (_estack = __main_stack_start);
|
||||
PROVIDE (__mirrored_nvm = 0); /* Indicate to startup code that NVM is not mirrored to VMA address .text copy is required. */
|
||||
|
||||
/*
|
||||
* Remap instruction for startup code and debugger.
|
||||
* set __smartfusion2_memory_remap to one of the following:
|
||||
* 0: remap eNVM to address 0x00000000 Production mode or debugging from eNVM
|
||||
* 1: remap eSRAM to address 0x00000000 Debugging from eSRAM
|
||||
* 2: remap external DDR memory to address 0x00000000 Debugging from DDR memory
|
||||
*/
|
||||
PROVIDE (__smartfusion2_memory_remap = 2);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.vector_table : ALIGN(0x10)
|
||||
{
|
||||
__vector_table_load = LOADADDR(.vector_table);
|
||||
__vector_table_start = .;
|
||||
__vector_table_vma_base_address = .;
|
||||
KEEP(*(.isr_vector))
|
||||
. = ALIGN(0x10);
|
||||
_evector_table = .;
|
||||
} >external_ram AT>rom
|
||||
|
||||
/* all data and code run/used before reloaction must be located here */
|
||||
.boot_code : ALIGN(0x10)
|
||||
{
|
||||
*(.boot_code) /* reset handler */
|
||||
*system_m2sxxx.o(.text*) /* SystemInit() - called before relocation to RAM so keep in ROM */
|
||||
*sys_config.o(.rodata*)
|
||||
*sys_config_SERDESIF_?.o(.rodata*) /* data- used to configure external memeory before use */
|
||||
/* note ? is a wildcard, can be upto 4 instances */
|
||||
*mscc_post_hw_cfg_init.o /* used on startup */
|
||||
*ecc_error_handler.o(.text*) /* do we need this???? */
|
||||
. = ALIGN(0x10);
|
||||
} >rom
|
||||
|
||||
.text : ALIGN(0x10)
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
__text_load = LOADADDR(.text);
|
||||
__text_start = .;
|
||||
|
||||
*(.text .text.* .gnu.linkonce.t.*)
|
||||
*(.plt)
|
||||
*(.gnu.warning)
|
||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer)
|
||||
|
||||
. = ALIGN(0x4);
|
||||
/* These are for running static constructors and destructors under ELF. */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*crtend.o(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*crtend.o(.dtors))
|
||||
|
||||
*(.rodata .rodata.* .gnu.linkonce.r.*)
|
||||
|
||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||
*(.gcc_except_table)
|
||||
*(.eh_frame_hdr)
|
||||
*(.eh_frame)
|
||||
|
||||
KEEP (*(.vector_table))
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.fini))
|
||||
|
||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||
KEEP (*(.preinit_array))
|
||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||
PROVIDE_HIDDEN (__init_array_start = .);
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||
KEEP (*(.fini_array))
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||
. = ALIGN(0x10);
|
||||
} >external_ram AT>rom
|
||||
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
||||
__exidx_start = .;
|
||||
.ARM.exidx :
|
||||
{
|
||||
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
||||
} >external_ram AT>rom
|
||||
__exidx_end = .;
|
||||
_etext = .;
|
||||
|
||||
.data : ALIGN(0x10)
|
||||
{
|
||||
__data_load = LOADADDR(.data);
|
||||
_sidata = LOADADDR (.data);
|
||||
__data_start = .;
|
||||
_sdata = .;
|
||||
KEEP(*(.jcr))
|
||||
*(.got.plt) *(.got)
|
||||
*(.shdata)
|
||||
*(.data .data.* .gnu.linkonce.d.*)
|
||||
. = ALIGN(0x10);
|
||||
_edata = .;
|
||||
} >data_external_ram AT>rom
|
||||
|
||||
.bss : ALIGN(0x10)
|
||||
{
|
||||
__bss_start__ = . ;
|
||||
_sbss = .;
|
||||
*(.shbss)
|
||||
*(.bss .bss.* .gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
. = ALIGN(0x10);
|
||||
__bss_end__ = .;
|
||||
_end = .;
|
||||
__end = _end;
|
||||
_ebss = .;
|
||||
PROVIDE(end = .);
|
||||
} >data_external_ram AT>rom
|
||||
|
||||
.heap : ALIGN(0x10)
|
||||
{
|
||||
__heap_start__ = .;
|
||||
. += MIN_SIZE_HEAP; /* will generate error if this minimum size not available */
|
||||
. += (ABSOLUTE(TOP_OF_MDDR) - . );
|
||||
_eheap = .;
|
||||
} >data_external_ram
|
||||
|
||||
.stack : ALIGN(0x10)
|
||||
{
|
||||
__stack_start__ = .;
|
||||
. += MAIN_STACK_SIZE;
|
||||
_estack = .;
|
||||
} >esram
|
||||
|
||||
.stab 0 (NOLOAD) :
|
||||
{
|
||||
*(.stab)
|
||||
}
|
||||
|
||||
.stabstr 0 (NOLOAD) :
|
||||
{
|
||||
*(.stabstr)
|
||||
}
|
||||
/* DWARF debug sections.
|
||||
Symbols in the DWARF debugging sections are relative to the beginning
|
||||
of the section so we begin them at 0. */
|
||||
/* DWARF 1 */
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
/* GNU DWARF 1 extensions */
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
/* DWARF 1.1 and DWARF 2 */
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
/* DWARF 2 */
|
||||
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
/* SGI/MIPS DWARF 2 extensions */
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
|
||||
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }
|
||||
/DISCARD/ : { *(.note.GNU-stack) }
|
||||
}
|
|
@ -0,0 +1,212 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2012 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
*
|
||||
*
|
||||
* SVN $Revision: 4410 $
|
||||
* SVN $Date: 2012-07-16 14:36:17 +0100 (Mon, 16 Jul 2012) $
|
||||
*/
|
||||
|
||||
#ifndef SYSTEM_INIT_CFG_TYPES_H_
|
||||
#define SYSTEM_INIT_CFG_TYPES_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*============================================================================*/
|
||||
/* DDR Configuration */
|
||||
/*============================================================================*/
|
||||
typedef struct
|
||||
{
|
||||
/*--------------------------------------------------------------------------
|
||||
* DDR Controller registers.
|
||||
*/
|
||||
struct
|
||||
{
|
||||
uint16_t DYN_SOFT_RESET_CR;
|
||||
uint16_t RESERVED0;
|
||||
uint16_t DYN_REFRESH_1_CR;
|
||||
uint16_t DYN_REFRESH_2_CR;
|
||||
uint16_t DYN_POWERDOWN_CR;
|
||||
uint16_t DYN_DEBUG_CR;
|
||||
uint16_t MODE_CR;
|
||||
uint16_t ADDR_MAP_BANK_CR;
|
||||
uint16_t ECC_DATA_MASK_CR;
|
||||
uint16_t ADDR_MAP_COL_1_CR;
|
||||
uint16_t ADDR_MAP_COL_2_CR;
|
||||
uint16_t ADDR_MAP_ROW_1_CR;
|
||||
uint16_t ADDR_MAP_ROW_2_CR;
|
||||
uint16_t INIT_1_CR;
|
||||
uint16_t CKE_RSTN_CYCLES_1_CR;
|
||||
uint16_t CKE_RSTN_CYCLES_2_CR;
|
||||
uint16_t INIT_MR_CR;
|
||||
uint16_t INIT_EMR_CR;
|
||||
uint16_t INIT_EMR2_CR;
|
||||
uint16_t INIT_EMR3_CR;
|
||||
uint16_t DRAM_BANK_TIMING_PARAM_CR;
|
||||
uint16_t DRAM_RD_WR_LATENCY_CR;
|
||||
uint16_t DRAM_RD_WR_PRE_CR;
|
||||
uint16_t DRAM_MR_TIMING_PARAM_CR;
|
||||
uint16_t DRAM_RAS_TIMING_CR;
|
||||
uint16_t DRAM_RD_WR_TRNARND_TIME_CR;
|
||||
uint16_t DRAM_T_PD_CR;
|
||||
uint16_t DRAM_BANK_ACT_TIMING_CR;
|
||||
uint16_t ODT_PARAM_1_CR;
|
||||
uint16_t ODT_PARAM_2_CR;
|
||||
uint16_t ADDR_MAP_COL_3_CR;
|
||||
uint16_t MODE_REG_RD_WR_CR;
|
||||
uint16_t MODE_REG_DATA_CR;
|
||||
uint16_t PWR_SAVE_1_CR;
|
||||
uint16_t PWR_SAVE_2_CR;
|
||||
uint16_t ZQ_LONG_TIME_CR;
|
||||
uint16_t ZQ_SHORT_TIME_CR;
|
||||
uint16_t ZQ_SHORT_INT_REFRESH_MARGIN_1_CR;
|
||||
uint16_t ZQ_SHORT_INT_REFRESH_MARGIN_2_CR;
|
||||
uint16_t PERF_PARAM_1_CR;
|
||||
uint16_t HPR_QUEUE_PARAM_1_CR;
|
||||
uint16_t HPR_QUEUE_PARAM_2_CR;
|
||||
uint16_t LPR_QUEUE_PARAM_1_CR;
|
||||
uint16_t LPR_QUEUE_PARAM_2_CR;
|
||||
uint16_t WR_QUEUE_PARAM_CR;
|
||||
uint16_t PERF_PARAM_2_CR;
|
||||
uint16_t PERF_PARAM_3_CR;
|
||||
uint16_t DFI_RDDATA_EN_CR;
|
||||
uint16_t DFI_MIN_CTRLUPD_TIMING_CR;
|
||||
uint16_t DFI_MAX_CTRLUPD_TIMING_CR;
|
||||
uint16_t DFI_WR_LVL_CONTROL_1_CR;
|
||||
uint16_t DFI_WR_LVL_CONTROL_2_CR;
|
||||
uint16_t DFI_RD_LVL_CONTROL_1_CR;
|
||||
uint16_t DFI_RD_LVL_CONTROL_2_CR;
|
||||
uint16_t DFI_CTRLUPD_TIME_INTERVAL_CR;
|
||||
uint16_t DYN_SOFT_RESET_CR2;
|
||||
uint16_t AXI_FABRIC_PRI_ID_CR;
|
||||
} ddrc;
|
||||
|
||||
/*--------------------------------------------------------------------------
|
||||
* DDR PHY configuration registers
|
||||
*/
|
||||
struct
|
||||
{
|
||||
uint16_t LOOPBACK_TEST_CR;
|
||||
uint16_t BOARD_LOOPBACK_CR;
|
||||
uint16_t CTRL_SLAVE_RATIO_CR;
|
||||
uint16_t CTRL_SLAVE_FORCE_CR;
|
||||
uint16_t CTRL_SLAVE_DELAY_CR;
|
||||
uint16_t DATA_SLICE_IN_USE_CR;
|
||||
uint16_t LVL_NUM_OF_DQ0_CR;
|
||||
uint16_t DQ_OFFSET_1_CR;
|
||||
uint16_t DQ_OFFSET_2_CR;
|
||||
uint16_t DQ_OFFSET_3_CR;
|
||||
uint16_t DIS_CALIB_RST_CR;
|
||||
uint16_t DLL_LOCK_DIFF_CR;
|
||||
uint16_t FIFO_WE_IN_DELAY_1_CR;
|
||||
uint16_t FIFO_WE_IN_DELAY_2_CR;
|
||||
uint16_t FIFO_WE_IN_DELAY_3_CR;
|
||||
uint16_t FIFO_WE_IN_FORCE_CR;
|
||||
uint16_t FIFO_WE_SLAVE_RATIO_1_CR;
|
||||
uint16_t FIFO_WE_SLAVE_RATIO_2_CR;
|
||||
uint16_t FIFO_WE_SLAVE_RATIO_3_CR;
|
||||
uint16_t FIFO_WE_SLAVE_RATIO_4_CR;
|
||||
uint16_t GATELVL_INIT_MODE_CR;
|
||||
uint16_t GATELVL_INIT_RATIO_1_CR;
|
||||
uint16_t GATELVL_INIT_RATIO_2_CR;
|
||||
uint16_t GATELVL_INIT_RATIO_3_CR;
|
||||
uint16_t GATELVL_INIT_RATIO_4_CR;
|
||||
uint16_t LOCAL_ODT_CR;
|
||||
uint16_t INVERT_CLKOUT_CR;
|
||||
uint16_t RD_DQS_SLAVE_DELAY_1_CR;
|
||||
uint16_t RD_DQS_SLAVE_DELAY_2_CR;
|
||||
uint16_t RD_DQS_SLAVE_DELAY_3_CR;
|
||||
uint16_t RD_DQS_SLAVE_FORCE_CR;
|
||||
uint16_t RD_DQS_SLAVE_RATIO_1_CR;
|
||||
uint16_t RD_DQS_SLAVE_RATIO_2_CR;
|
||||
uint16_t RD_DQS_SLAVE_RATIO_3_CR;
|
||||
uint16_t RD_DQS_SLAVE_RATIO_4_CR;
|
||||
uint16_t WR_DQS_SLAVE_DELAY_1_CR;
|
||||
uint16_t WR_DQS_SLAVE_DELAY_2_CR;
|
||||
uint16_t WR_DQS_SLAVE_DELAY_3_CR;
|
||||
uint16_t WR_DQS_SLAVE_FORCE_CR;
|
||||
uint16_t WR_DQS_SLAVE_RATIO_1_CR;
|
||||
uint16_t WR_DQS_SLAVE_RATIO_2_CR;
|
||||
uint16_t WR_DQS_SLAVE_RATIO_3_CR;
|
||||
uint16_t WR_DQS_SLAVE_RATIO_4_CR;
|
||||
uint16_t WR_DATA_SLAVE_DELAY_1_CR;
|
||||
uint16_t WR_DATA_SLAVE_DELAY_2_CR;
|
||||
uint16_t WR_DATA_SLAVE_DELAY_3_CR;
|
||||
uint16_t WR_DATA_SLAVE_FORCE_CR;
|
||||
uint16_t WR_DATA_SLAVE_RATIO_1_CR;
|
||||
uint16_t WR_DATA_SLAVE_RATIO_2_CR;
|
||||
uint16_t WR_DATA_SLAVE_RATIO_3_CR;
|
||||
uint16_t WR_DATA_SLAVE_RATIO_4_CR;
|
||||
uint16_t WRLVL_INIT_MODE_CR;
|
||||
uint16_t WRLVL_INIT_RATIO_1_CR;
|
||||
uint16_t WRLVL_INIT_RATIO_2_CR;
|
||||
uint16_t WRLVL_INIT_RATIO_3_CR;
|
||||
uint16_t WRLVL_INIT_RATIO_4_CR;
|
||||
uint16_t WR_RD_RL_CR;
|
||||
uint16_t RDC_FIFO_RST_ERRCNTCLR_CR;
|
||||
uint16_t RDC_WE_TO_RE_DELAY_CR;
|
||||
uint16_t USE_FIXED_RE_CR;
|
||||
uint16_t USE_RANK0_DELAYS_CR;
|
||||
uint16_t USE_LVL_TRNG_LEVEL_CR;
|
||||
uint16_t CONFIG_CR;
|
||||
uint16_t RD_WR_GATE_LVL_CR;
|
||||
uint16_t DYN_RESET_CR;
|
||||
} phy;
|
||||
|
||||
/*--------------------------------------------------------------------------
|
||||
* FIC-64 registers
|
||||
* These registers are 16-bit wide and 32-bit aligned.
|
||||
*/
|
||||
struct
|
||||
{
|
||||
uint16_t NB_ADDR_CR;
|
||||
uint16_t NBRWB_SIZE_CR;
|
||||
uint16_t WB_TIMEOUT_CR;
|
||||
uint16_t HPD_SW_RW_EN_CR;
|
||||
uint16_t HPD_SW_RW_INVAL_CR;
|
||||
uint16_t SW_WR_ERCLR_CR;
|
||||
uint16_t ERR_INT_ENABLE_CR;
|
||||
uint16_t NUM_AHB_MASTERS_CR;
|
||||
uint16_t LOCK_TIMEOUTVAL_1_CR;
|
||||
uint16_t LOCK_TIMEOUTVAL_2_CR;
|
||||
uint16_t LOCK_TIMEOUT_EN_CR;
|
||||
} fic;
|
||||
} ddr_subsys_cfg_t;
|
||||
|
||||
/*============================================================================*/
|
||||
/* FDDR Configuration */
|
||||
/*============================================================================*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint16_t PLL_CONFIG_LOW_1;
|
||||
uint16_t PLL_CONFIG_LOW_2;
|
||||
uint16_t PLL_CONFIG_HIGH;
|
||||
uint16_t FACC_CLK_EN;
|
||||
uint16_t FACC_MUX_CONFIG;
|
||||
uint16_t FACC_DIVISOR_RATIO;
|
||||
uint16_t PLL_DELAY_LINE_SEL;
|
||||
uint16_t SOFT_RESET;
|
||||
uint16_t IO_CALIB;
|
||||
uint16_t INTERRUPT_ENABLE;
|
||||
uint16_t AXI_AHB_MODE_SEL;
|
||||
uint16_t PHY_SELF_REF_EN;
|
||||
} fddr_sysreg_t;
|
||||
|
||||
/*============================================================================*/
|
||||
/* PCI Express Bridge IP Core configuration. */
|
||||
/*============================================================================*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t * p_reg;
|
||||
uint32_t value;
|
||||
} cfg_addr_value_pair_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SYSTEM_INIT_CFG_TYPES_H_ */
|
|
@ -0,0 +1,49 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2012-2013 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* SmartFusion2 CMSIS system initialization.
|
||||
*
|
||||
* SVN $Revision: 5280 $
|
||||
* SVN $Date: 2013-03-22 20:51:50 +0000 (Fri, 22 Mar 2013) $
|
||||
*/
|
||||
|
||||
#ifndef SYSTEM_M2SXXX_H
|
||||
#define SYSTEM_M2SXXX_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Standard CMSIS global variables. */
|
||||
extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
|
||||
|
||||
/* SmartFusion2 specific clocks. */
|
||||
extern uint32_t g_FrequencyPCLK0; /*!< Clock frequency of APB bus 0. */
|
||||
extern uint32_t g_FrequencyPCLK1; /*!< Clock frequency of APB bus 1. */
|
||||
extern uint32_t g_FrequencyPCLK2; /*!< Clock frequency of APB bus 2. */
|
||||
extern uint32_t g_FrequencyFIC0; /*!< Clock frequecny of FPGA fabric interface controller 1. */
|
||||
extern uint32_t g_FrequencyFIC1; /*!< Clock frequecny of FPGA fabric inteface controller 2. */
|
||||
extern uint32_t g_FrequencyFIC64; /*!< Clock frequecny of 64-bit FPGA fabric interface controller. */
|
||||
|
||||
|
||||
/***************************************************************************//**
|
||||
* The SystemInit() is a standard CMSIS function called during system startup.
|
||||
* It is meant to perform low level hardware setup such as configuring DDR and
|
||||
* SERDES controllers.
|
||||
*/
|
||||
void SystemInit(void);
|
||||
|
||||
/***************************************************************************//**
|
||||
* The SystemCoreClockUpdate() is a standard CMSIS function which can be called
|
||||
* by the application in order to ensure that the SystemCoreClock global
|
||||
* variable contains the up to date Cortex-M3 core frequency. Calling this
|
||||
* function also updates the global variables containing the frequencies of the
|
||||
* APB busses connecting the peripherals.
|
||||
*/
|
||||
void SystemCoreClockUpdate(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -0,0 +1,26 @@
|
|||
mainmenu "RT-Thread Configuration"
|
||||
|
||||
config BSP_DIR
|
||||
string
|
||||
option env="BSP_ROOT"
|
||||
default "."
|
||||
|
||||
config RTT_DIR
|
||||
string
|
||||
option env="RTT_ROOT"
|
||||
default "../.."
|
||||
|
||||
config PKGS_DIR
|
||||
string
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "drivers/Kconfig"
|
||||
|
||||
config SOC_SF2_M2S010
|
||||
bool
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
|
@ -0,0 +1,102 @@
|
|||
## 移植RT-Thread到Microsemi SmartFusion2系列FPGA芯片
|
||||
|
||||
### 1. BSP简介
|
||||
|
||||
移植 RT-Thread 操作系统到一款 **FPGA 芯片——M2S010** ,该芯片属于 [Microsemi](https://www.microsemi.com/)(现Microchip)SmartFusion2系列,是一款**智能混合型FPGA**,片上除了 FPGA Fabric 逻辑部分,还包括一个 **ARM® Cortex™-M3 内核的 MCU**,主频最高 166MHz ,256KB eNVM,64KB eSRAM,集成GPIO、UART、I2C、SPI、CAN、USB等基本外设。
|
||||
|
||||
> 关于 Microsemi,第三大 FPGA 厂商,原 Actel 半导体,2010 年,Microsemi 收购 Actel,2018 年, Microchip 收购 Microsemi。
|
||||
|
||||
SmartFusion2 内部框图
|
||||
|
||||
![Microsemi_Smartfusion2_BD](figures/Microsemi_Smartfusion2_BD.jpg)
|
||||
|
||||
### 2. 外设支持
|
||||
|
||||
移植了 RT-Thread 内核,支持线程调度、线程间同步和通信等,目前已经完成了PIN、Serial设备驱动,FinSH组件默认使用uart0设备。
|
||||
|
||||
| **片上外设** | **支持情况** |
|
||||
| :----------------- | :----------: |
|
||||
| GPIO | 支持 |
|
||||
| UART | 支持 |
|
||||
| SPI | 暂不支持 |
|
||||
| I2C | 暂不支持 |
|
||||
| RTC | 暂不支持 |
|
||||
| USB | 暂不支持 |
|
||||
|
||||
### 3. scons构建系统
|
||||
|
||||
通过加入`rtconfig.py`,`SConstruct`,`SConscript`文件,可支持scons构建系统,可以输入`scons`调用env工具中包含的arm-gcc编译器构建工程,支持以下scons命令:
|
||||
|
||||
- `scons`:使用arm-gcc编译BSP
|
||||
- `scons -c`:清除执行 scons 时生成的临时文件和目标文件。
|
||||
- `scons --target=mdk4`:重新生成Keil MDK4环境下的工程。
|
||||
- `scons --target=mdk5`:重新生成Keil MDK5环境下的工程。
|
||||
- `scons --dist`:打包BSP工程,包括RT-Thread源码及BSP相关工程文件。
|
||||
|
||||
添加Kconfig文件,用于生成rtconfig.h。
|
||||
|
||||
### 4. 使用说明
|
||||
|
||||
#### 4.1 FPGA 工程设计
|
||||
|
||||
FPGA 部分使用 SmartDesign 图形化设计,不需要写 HDL 代码,时钟来自外部 50M 晶体输入,PLL 倍频 100M 提供给 MCU 使用,顶层配置如下图所示:
|
||||
|
||||
![](figures/top_sd.jpg)
|
||||
|
||||
MSS 部分仅使用到了GPIO 和UART,GPIO_0配置成输出输出模式用于驱动LED。
|
||||
|
||||
配置完成的 FPGA 工程文件下载:[sf2_fpga_prj.rar](https://wcc-blog.oss-cn-beijing.aliyuncs.com/Libero/RT-Thread/sf2_fpga_prj.rar)
|
||||
|
||||
#### 4.2 ARM 程序设计
|
||||
|
||||
ARM 程序使用 Keil MDK 5.26 开发,需要安装 M2S 系列芯片支持包:[Microsemi.M2Sxxx.1.0.64.pack](http://www.actel-ip.com/repositories/CMSIS-Pack/Microsemi.M2Sxxx.1.0.64.pack)
|
||||
|
||||
如果官网下载失败,可以到以下地址下载:[Microsemi.M2Sxxx.1.0.64.pack](https://wcc-blog.oss-cn-beijing.aliyuncs.com/Libero/RT-Thread/Microsemi.M2Sxxx.1.0.64.pack)
|
||||
|
||||
在官方生成的示例工程目录下,添加 RT-Thread 相关组件,并实现一些对接函数,最终的文件结构:
|
||||
|
||||
![](figures/files.jpg)
|
||||
|
||||
### 5. 下载和运行
|
||||
|
||||
为了能使用 ARM 调试器连接到 ARM 内核,而不是 FPGA,需要把 JTAG_SEL 引脚置为低电平。使用 ARM 调试器,如 JLink,对应连接 JTAG 口的 TMS、TCK、GND 引脚,如果连接正常,可以检测到 ARM 芯片,如下图所示:
|
||||
|
||||
![](figures/jlink-ob.jpg)
|
||||
|
||||
配置对应的 Flash 编程算法:
|
||||
|
||||
![](figures/flash.jpg)
|
||||
|
||||
下载完成:
|
||||
|
||||
![](figures/finished.jpg)
|
||||
|
||||
如果编译 & 烧写无误,下载完成或者按下复位按键之后,会在串口上看到 RT-Thread 的启动 LOG 信息:
|
||||
|
||||
```c
|
||||
\ | /
|
||||
- RT - Thread Operating System
|
||||
/ | \ 4.0.3 build Jun 2 2020
|
||||
2006 - 2020 Copyright by rt-thread team
|
||||
msh >
|
||||
```
|
||||
|
||||
![](figures/log.jpg)
|
||||
|
||||
### 6. 注意事项
|
||||
|
||||
- FPGA 开发环境基于 Libero V11.8.2.4,向上兼容,不支持低版本 IDE。
|
||||
- ARM 开发环境基于 Keil MDK 5.26,如果使用SoftConsole IDE ,需要修改 `libcpu` 内的文件。
|
||||
- 调试内部 ARM 核,需要把 JTAG_SEL 拉低,否则调试器连接不上。
|
||||
- 使用 SoftConsole 开发环境可以直接使用官方的 Flash Pro 调试器进行 ARM 程序的调试。
|
||||
- 内核时钟需要和 FPGA 中 MSS 配置的对应,Libero 自动生成的时钟文件,可以直接替换`bsp\smartfusion2\libraries\sys_config`文件夹下的文件 。
|
||||
|
||||
### 7. 参考资料
|
||||
|
||||
- [学习路线 - RT-Thread 文档中心](https://www.rt-thread.org/document/site/)
|
||||
- [Microsemi Libero系列中文教程](https://blog.csdn.net/whik1194/article/details/102901710)
|
||||
|
||||
### 8. 联系我
|
||||
|
||||
- Github:[whik](https://github.com/whik)
|
||||
- E-Mail:wangchao149@foxmail.com
|
|
@ -0,0 +1,15 @@
|
|||
# for module compiling
|
||||
import os
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
Return('objs')
|
|
@ -0,0 +1,35 @@
|
|||
import os
|
||||
import sys
|
||||
import rtconfig
|
||||
|
||||
if os.getenv('RTT_ROOT'):
|
||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
||||
else:
|
||||
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
|
||||
|
||||
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||
try:
|
||||
from building import *
|
||||
except:
|
||||
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||
print(RTT_ROOT)
|
||||
exit(-1)
|
||||
|
||||
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
|
||||
|
||||
DefaultEnvironment(tools=[])
|
||||
env = Environment(tools = ['mingw'],
|
||||
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
|
||||
CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS,
|
||||
AR = rtconfig.AR, ARFLAGS = '-rc',
|
||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||
|
||||
Export('RTT_ROOT')
|
||||
Export('rtconfig')
|
||||
|
||||
# prepare building environment
|
||||
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||
|
||||
# make a building
|
||||
DoBuilding(TARGET, objs)
|
|
@ -0,0 +1,10 @@
|
|||
from building import *
|
||||
import rtconfig
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
CPPPATH = [cwd]
|
||||
src = Glob('*.c')
|
||||
|
||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
|
@ -0,0 +1,16 @@
|
|||
; *************************************************************
|
||||
; *** Scatter-Loading Description File generated by uVision ***
|
||||
; *************************************************************
|
||||
|
||||
LR_IROM1 0x00000000 0x00040000 { ; load region size_region
|
||||
ER_IROM1 0x00000000 0x00040000 { ; load address = execution address
|
||||
*.o (RESET, +First)
|
||||
*(InRoot$$Sections)
|
||||
.ANY (+RO)
|
||||
.ANY (+XO)
|
||||
}
|
||||
RW_IRAM1 0x20000000 0x00010000 { ; RW data
|
||||
.ANY (+RW +ZI)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2020-08-06 whik first version
|
||||
*/
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
|
||||
#define LED_PIN 0
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int count = 1;
|
||||
|
||||
rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
|
||||
|
||||
while(count++)
|
||||
{
|
||||
rt_pin_write(LED_PIN, PIN_HIGH);
|
||||
rt_thread_mdelay(500);
|
||||
|
||||
rt_pin_write(LED_PIN, PIN_LOW);
|
||||
rt_thread_mdelay(500);
|
||||
}
|
||||
|
||||
return RT_EOK;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
from building import *
|
||||
import rtconfig
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
CPPPATH = [cwd]
|
||||
src = Glob('*.c')
|
||||
|
||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
|
@ -0,0 +1,86 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2020-08-06 whik first version
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
|
||||
#define _SCB_BASE (0xE000E010UL)
|
||||
#define _SYSTICK_CTRL (*(rt_uint32_t *)(_SCB_BASE + 0x0))
|
||||
#define _SYSTICK_LOAD (*(rt_uint32_t *)(_SCB_BASE + 0x4))
|
||||
#define _SYSTICK_VAL (*(rt_uint32_t *)(_SCB_BASE + 0x8))
|
||||
#define _SYSTICK_CALIB (*(rt_uint32_t *)(_SCB_BASE + 0xC))
|
||||
#define _SYSTICK_PRI (*(rt_uint8_t *)(0xE000ED23UL))
|
||||
|
||||
extern void SystemCoreClockUpdate(void);
|
||||
extern uint32_t SystemCoreClock;
|
||||
|
||||
static uint32_t _SysTick_Config(rt_uint32_t ticks)
|
||||
{
|
||||
if ((ticks - 1) > 0xFFFFFF)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
_SYSTICK_LOAD = ticks - 1;
|
||||
_SYSTICK_PRI = 0xFF;
|
||||
_SYSTICK_VAL = 0;
|
||||
_SYSTICK_CTRL = 0x07;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
|
||||
#define RT_HEAP_SIZE 1024
|
||||
static uint32_t rt_heap[RT_HEAP_SIZE]; // heap default size: 4K(1024 * 4)
|
||||
RT_WEAK void *rt_heap_begin_get(void)
|
||||
{
|
||||
return rt_heap;
|
||||
}
|
||||
|
||||
RT_WEAK void *rt_heap_end_get(void)
|
||||
{
|
||||
return rt_heap + RT_HEAP_SIZE;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* This function will initial your board. */
|
||||
void rt_hw_board_init()
|
||||
{
|
||||
/* System Clock Update */
|
||||
SystemCoreClockUpdate();
|
||||
|
||||
/* System Tick Configuration */
|
||||
_SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND);
|
||||
|
||||
/* Call components board initial (use INIT_BOARD_EXPORT()) */
|
||||
#ifdef RT_USING_COMPONENTS_INIT
|
||||
rt_components_board_init();
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_CONSOLE
|
||||
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||
#endif
|
||||
|
||||
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
|
||||
rt_system_heap_init(rt_heap_begin_get(), rt_heap_end_get());
|
||||
#endif
|
||||
}
|
||||
|
||||
void SysTick_Handler(void)
|
||||
{
|
||||
/* enter interrupt */
|
||||
rt_interrupt_enter();
|
||||
|
||||
rt_tick_increase();
|
||||
|
||||
/* leave interrupt */
|
||||
rt_interrupt_leave();
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2020-08-06 whik first version
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
/* hardware initialization */
|
||||
void boardInit(void)
|
||||
{
|
||||
/* disable watchdog timer */
|
||||
SYSREG->WDOG_CR = 0;
|
||||
}
|
||||
INIT_BOARD_EXPORT(boardInit);
|
||||
|
||||
/* custom finish command */
|
||||
extern uint32_t SystemCoreClock;
|
||||
void sayHello(void)
|
||||
{
|
||||
rt_kprintf("Hello RT-Thread! By Microsemi SmartFusion2 Family FPGA-M2S010.\r\n");
|
||||
rt_kprintf("MSS System Core Clock: %d Hz.\r\n", SystemCoreClock);
|
||||
}
|
||||
MSH_CMD_EXPORT(sayHello, "say hello to console");
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2020-08-06 whik first version
|
||||
*/
|
||||
#ifndef __CONFIG_H__
|
||||
#define __CONFIG_H__
|
||||
|
||||
#include "mss_gpio.h"
|
||||
#include "mss_uart.h"
|
||||
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
|
||||
void sw0_isr(void *args);
|
||||
void sw1_isr(void *args);
|
||||
void boardInit(void);
|
||||
void sayHello(void);
|
||||
|
||||
#endif
|
|
@ -0,0 +1,35 @@
|
|||
menu "Hardware Drivers Config"
|
||||
|
||||
menu "On-chip Peripheral Drivers"
|
||||
|
||||
menu "UART Drivers"
|
||||
config BSP_USING_UART0
|
||||
bool "Enable MSS_UART0"
|
||||
select RT_USING_SERIAL
|
||||
default y
|
||||
help
|
||||
config MSS_UART0
|
||||
|
||||
config BSP_USING_UART1
|
||||
bool "Enable MSS_UART1"
|
||||
select RT_USING_SERIAL
|
||||
default y
|
||||
help
|
||||
config MSS_UART1
|
||||
|
||||
config RT_CONSOLE_DEVICE_NAME
|
||||
string "the device name for console"
|
||||
default "uart0"
|
||||
endmenu
|
||||
|
||||
menu "GPIO Drivers"
|
||||
config BSP_USING_GPIO
|
||||
bool "Enable MSS_GPIO"
|
||||
select RT_USING_PIN
|
||||
default y
|
||||
help
|
||||
config MSS_GPIO
|
||||
endmenu
|
||||
endmenu
|
||||
|
||||
endmenu
|
|
@ -0,0 +1,16 @@
|
|||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
|
||||
# add serial driver code
|
||||
if GetDepend('BSP_USING_UART0') or GetDepend('BSP_USING_UART1'):
|
||||
src += ['drv_uart.c']
|
||||
if GetDepend('BSP_USING_GPIO'):
|
||||
src += ['drv_gpio.c']
|
||||
|
||||
CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
|
@ -0,0 +1,442 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2020-07-09 whik first version
|
||||
*/
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <rthw.h>
|
||||
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#ifdef BSP_USING_GPIO
|
||||
|
||||
static struct rt_pin_irq_hdr sf2_pin_irq_hdr_tab[] =
|
||||
{
|
||||
/* pin, hdr, mode, args */
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
{-1, 0, RT_NULL, RT_NULL},
|
||||
};
|
||||
|
||||
/* configure an individual GPIO port */
|
||||
static void sf2_pin_mode(rt_device_t dev, rt_base_t pin, rt_base_t mode)
|
||||
{
|
||||
uint32_t config;
|
||||
switch (mode)
|
||||
{
|
||||
case PIN_MODE_OUTPUT:
|
||||
config = MSS_GPIO_OUTPUT_MODE;
|
||||
break;
|
||||
case PIN_MODE_INPUT:
|
||||
config = MSS_GPIO_INPUT_MODE;
|
||||
break;
|
||||
default:
|
||||
config = MSS_GPIO_INOUT_MODE;
|
||||
break;
|
||||
}
|
||||
MSS_GPIO_config((mss_gpio_id_t )pin, config);
|
||||
}
|
||||
|
||||
static int sf2_pin_read(rt_device_t dev, rt_base_t pin)
|
||||
{
|
||||
uint32_t value;
|
||||
value = MSS_GPIO_get_inputs() & (1<<pin);
|
||||
return ((value) ? PIN_HIGH : PIN_LOW);
|
||||
}
|
||||
|
||||
static void sf2_pin_write(rt_device_t dev, rt_base_t pin, rt_base_t value)
|
||||
{
|
||||
if (value == PIN_HIGH)
|
||||
MSS_GPIO_set_output((mss_gpio_id_t )pin, 1);
|
||||
else
|
||||
MSS_GPIO_set_output((mss_gpio_id_t )pin, 0);
|
||||
}
|
||||
|
||||
static rt_err_t sf2_pin_attach_irq(struct rt_device *device, rt_int32_t pin,
|
||||
rt_uint32_t mode, void (*hdr)(void *args), void *args)
|
||||
{
|
||||
rt_base_t level;
|
||||
|
||||
level = rt_hw_interrupt_disable();
|
||||
|
||||
if (sf2_pin_irq_hdr_tab[pin].pin == pin &&
|
||||
sf2_pin_irq_hdr_tab[pin].hdr == hdr &&
|
||||
sf2_pin_irq_hdr_tab[pin].mode == mode &&
|
||||
sf2_pin_irq_hdr_tab[pin].args == args)
|
||||
{
|
||||
rt_hw_interrupt_enable(level);
|
||||
return RT_EOK;
|
||||
}
|
||||
if (sf2_pin_irq_hdr_tab[pin].pin != -1)
|
||||
{
|
||||
rt_hw_interrupt_enable(level);
|
||||
return -RT_EBUSY;
|
||||
}
|
||||
sf2_pin_irq_hdr_tab[pin].pin = pin;
|
||||
sf2_pin_irq_hdr_tab[pin].hdr = hdr;
|
||||
sf2_pin_irq_hdr_tab[pin].mode = mode;
|
||||
sf2_pin_irq_hdr_tab[pin].args = args;
|
||||
|
||||
rt_hw_interrupt_enable(level);
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
static rt_err_t sf2_pin_detach_irq(struct rt_device *device, rt_int32_t pin)
|
||||
{
|
||||
rt_base_t level;
|
||||
|
||||
level = rt_hw_interrupt_disable();
|
||||
|
||||
if (sf2_pin_irq_hdr_tab[pin].pin == -1)
|
||||
{
|
||||
rt_hw_interrupt_enable(level);
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
sf2_pin_irq_hdr_tab[pin].pin = -1;
|
||||
sf2_pin_irq_hdr_tab[pin].hdr = RT_NULL;
|
||||
sf2_pin_irq_hdr_tab[pin].mode = 0;
|
||||
sf2_pin_irq_hdr_tab[pin].args = RT_NULL;
|
||||
|
||||
rt_hw_interrupt_enable(level);
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
static rt_err_t sf2_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32_t enabled)
|
||||
{
|
||||
uint32_t mode = 0;
|
||||
rt_base_t level;
|
||||
|
||||
if (enabled == PIN_IRQ_ENABLE)
|
||||
{
|
||||
level = rt_hw_interrupt_disable();
|
||||
if (sf2_pin_irq_hdr_tab[pin].pin == -1)
|
||||
{
|
||||
rt_hw_interrupt_enable(level);
|
||||
return -RT_ENOSYS;
|
||||
}
|
||||
switch(sf2_pin_irq_hdr_tab[pin].mode)
|
||||
{
|
||||
case PIN_IRQ_MODE_RISING :
|
||||
mode = MSS_GPIO_IRQ_EDGE_POSITIVE;
|
||||
break;
|
||||
case PIN_IRQ_MODE_FALLING :
|
||||
mode = MSS_GPIO_IRQ_EDGE_NEGATIVE;
|
||||
break;
|
||||
case PIN_IRQ_MODE_RISING_FALLING:
|
||||
mode = MSS_GPIO_IRQ_EDGE_BOTH;
|
||||
break;
|
||||
case PIN_IRQ_MODE_HIGH_LEVEL :
|
||||
mode = MSS_GPIO_IRQ_LEVEL_HIGH;
|
||||
break;
|
||||
case PIN_IRQ_MODE_LOW_LEVEL:
|
||||
mode = MSS_GPIO_IRQ_LEVEL_LOW;
|
||||
break;
|
||||
}
|
||||
MSS_GPIO_config((mss_gpio_id_t )pin, MSS_GPIO_INPUT_MODE | mode);
|
||||
MSS_GPIO_enable_irq((mss_gpio_id_t )pin);
|
||||
|
||||
rt_hw_interrupt_enable(level);
|
||||
}
|
||||
else if (enabled == PIN_IRQ_DISABLE)
|
||||
{
|
||||
MSS_GPIO_config((mss_gpio_id_t )pin, MSS_GPIO_INPUT_MODE);
|
||||
MSS_GPIO_disable_irq((mss_gpio_id_t )pin);
|
||||
}
|
||||
else
|
||||
return -RT_ENOSYS;
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
static const struct rt_pin_ops sf2_pin_ops =
|
||||
{
|
||||
sf2_pin_mode,
|
||||
sf2_pin_write,
|
||||
sf2_pin_read,
|
||||
sf2_pin_attach_irq,
|
||||
sf2_pin_detach_irq,
|
||||
sf2_pin_irq_enable
|
||||
};
|
||||
|
||||
|
||||
int rt_hw_pin_init(void)
|
||||
{
|
||||
rt_err_t result = RT_EOK;
|
||||
MSS_GPIO_init();
|
||||
result = rt_device_pin_register("pin", &sf2_pin_ops, RT_NULL);
|
||||
RT_ASSERT(result == RT_EOK);
|
||||
return result;
|
||||
}
|
||||
INIT_BOARD_EXPORT(rt_hw_pin_init);
|
||||
|
||||
rt_inline void pin_irq_hdr(int pin)
|
||||
{
|
||||
MSS_GPIO_clear_irq((mss_gpio_id_t )pin);
|
||||
|
||||
if (sf2_pin_irq_hdr_tab[pin].hdr)
|
||||
sf2_pin_irq_hdr_tab[pin].hdr(sf2_pin_irq_hdr_tab[pin].args);
|
||||
}
|
||||
|
||||
void GPIO0_IRQHandler( void )
|
||||
{
|
||||
/* enter interrupt */
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(0);
|
||||
/* leave interrupt */
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO1_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(1);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO2_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(2);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO3_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(3);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO4_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(4);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO5_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(5);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO6_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(6);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
void GPIO7_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(7);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO8_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(8);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO9_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(9);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO10_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(10);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO11_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(11);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO12_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(12);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO13_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(13);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO14_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(14);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO15_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(15);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO16_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(16);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO17_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(17);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO18_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(18);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO19_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(19);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO20_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(20);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO21_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(21);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO22_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(22);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO23_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(23);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO24_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(24);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO25_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(25);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO26_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(26);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO27_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(27);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO28_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(28);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO29_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(29);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO30_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(30);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
void GPIO31_IRQHandler( void )
|
||||
{
|
||||
rt_interrupt_enter();
|
||||
pin_irq_hdr(31);
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
#endif
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2020-08-06 whik first version
|
||||
*/
|
||||
#ifndef __DRV_GPIO_H__
|
||||
#define __DRV_GPIO_H__
|
||||
|
||||
#include "mss_gpio.h"
|
||||
|
||||
int rt_hw_pin_init(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
@ -0,0 +1,189 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2020-08-06 whik first version
|
||||
*/
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
|
||||
#include "drv_uart.h"
|
||||
|
||||
struct sf2_uart
|
||||
{
|
||||
mss_uart_instance_t *uart;
|
||||
IRQn_Type irq;
|
||||
};
|
||||
|
||||
struct sf2_uart uart0=
|
||||
{
|
||||
&g_mss_uart0,
|
||||
UART0_IRQn,
|
||||
};
|
||||
struct rt_serial_device serial0;
|
||||
|
||||
void uart0_rx_handler(mss_uart_instance_t *this_uart)
|
||||
{
|
||||
/* enter interrupt */
|
||||
rt_interrupt_enter();
|
||||
rt_hw_serial_isr(&serial0, RT_SERIAL_EVENT_RX_IND);
|
||||
/* leave interrupt */
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
struct sf2_uart uart1=
|
||||
{
|
||||
&g_mss_uart1,
|
||||
UART1_IRQn,
|
||||
};
|
||||
|
||||
struct rt_serial_device serial1;
|
||||
void uart1_rx_handler(mss_uart_instance_t *this_uart)
|
||||
{
|
||||
/* enter interrupt */
|
||||
rt_interrupt_enter();
|
||||
rt_hw_serial_isr(&serial1, RT_SERIAL_EVENT_RX_IND);
|
||||
/* leave interrupt */
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
static rt_err_t sf2_uart_configure(struct rt_serial_device *serial,
|
||||
struct serial_configure *cfg)
|
||||
{
|
||||
uint32_t baudRate;
|
||||
uint8_t datBits, parity, stopBits;
|
||||
uint8_t config;
|
||||
struct sf2_uart *uart;
|
||||
|
||||
RT_ASSERT(serial != RT_NULL);
|
||||
RT_ASSERT(cfg != RT_NULL);
|
||||
|
||||
uart = (struct sf2_uart *)serial->parent.user_data;
|
||||
|
||||
switch(cfg->data_bits)
|
||||
{
|
||||
case DATA_BITS_5: datBits = MSS_UART_DATA_5_BITS; break;
|
||||
case DATA_BITS_6: datBits = MSS_UART_DATA_6_BITS; break;
|
||||
case DATA_BITS_7: datBits = MSS_UART_DATA_7_BITS; break;
|
||||
case DATA_BITS_8: datBits = MSS_UART_DATA_8_BITS; break;
|
||||
default: datBits = MSS_UART_DATA_8_BITS; break;
|
||||
}
|
||||
switch(cfg->parity)
|
||||
{
|
||||
case PARITY_NONE: parity = MSS_UART_NO_PARITY; break;
|
||||
case PARITY_EVEN: parity = MSS_UART_EVEN_PARITY; break;
|
||||
case PARITY_ODD : parity = MSS_UART_ODD_PARITY; break;
|
||||
default : parity = MSS_UART_NO_PARITY; break;
|
||||
}
|
||||
switch(cfg->stop_bits)
|
||||
{
|
||||
case STOP_BITS_1: stopBits = MSS_UART_ONE_STOP_BIT; break;
|
||||
case STOP_BITS_2: stopBits = MSS_UART_TWO_STOP_BITS; break;
|
||||
case STOP_BITS_3: stopBits = MSS_UART_ONEHALF_STOP_BIT; break;
|
||||
default : stopBits = MSS_UART_ONE_STOP_BIT;
|
||||
}
|
||||
|
||||
baudRate = cfg->baud_rate;
|
||||
config = datBits | parity | stopBits;
|
||||
|
||||
MSS_UART_init(uart->uart, baudRate, config);
|
||||
if(uart->uart == &g_mss_uart0)
|
||||
MSS_UART_set_rx_handler(uart->uart, uart0_rx_handler, MSS_UART_FIFO_SINGLE_BYTE);
|
||||
else
|
||||
MSS_UART_set_rx_handler(uart->uart, uart1_rx_handler, MSS_UART_FIFO_SINGLE_BYTE);
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
static rt_err_t sf2_uart_control(struct rt_serial_device *serial,
|
||||
int cmd, void *arg)
|
||||
{
|
||||
struct sf2_uart* uart;
|
||||
|
||||
RT_ASSERT(serial != RT_NULL);
|
||||
uart = (struct sf2_uart*)serial->parent.user_data;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
case RT_DEVICE_CTRL_CLR_INT:
|
||||
NVIC_DisableIRQ(uart->irq);
|
||||
break;
|
||||
case RT_DEVICE_CTRL_SET_INT:
|
||||
NVIC_EnableIRQ(uart->irq);
|
||||
break;
|
||||
}
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
static int sf2_uart_putc(struct rt_serial_device *serial, char c)
|
||||
{
|
||||
struct sf2_uart* uart;
|
||||
uint32_t tx_ready;
|
||||
|
||||
RT_ASSERT(serial != RT_NULL);
|
||||
|
||||
uart = (struct sf2_uart*)serial->parent.user_data;
|
||||
|
||||
do {
|
||||
tx_ready = uart->uart->hw_reg->LSR & 0x20u;
|
||||
} while(!tx_ready);
|
||||
uart->uart->hw_reg->THR = c;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int sf2_uart_getc(struct rt_serial_device *serial)
|
||||
{
|
||||
int ch = -1;
|
||||
uint8_t err_status;
|
||||
struct sf2_uart* uart;
|
||||
|
||||
RT_ASSERT(serial != RT_NULL);
|
||||
uart = (struct sf2_uart*)serial->parent.user_data;
|
||||
|
||||
err_status = MSS_UART_get_rx_status(uart->uart);
|
||||
if(MSS_UART_NO_ERROR == err_status)
|
||||
MSS_UART_get_rx(uart->uart, (uint8_t *)&ch, 1);
|
||||
|
||||
return ch;
|
||||
}
|
||||
|
||||
static const struct rt_uart_ops sf2_uart_ops =
|
||||
{
|
||||
sf2_uart_configure,
|
||||
sf2_uart_control,
|
||||
sf2_uart_putc,
|
||||
sf2_uart_getc,
|
||||
};
|
||||
|
||||
int rt_hw_uart_init(void)
|
||||
{
|
||||
rt_err_t result = RT_EOK;
|
||||
struct sf2_uart* uart;
|
||||
struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT;
|
||||
|
||||
#ifdef BSP_USING_UART0
|
||||
uart = &uart0;
|
||||
serial0.ops = &sf2_uart_ops;
|
||||
/* default config: 115200, 8, no, 1 */
|
||||
serial0.config = config;
|
||||
result = rt_hw_serial_register(&serial0, "uart0", RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, uart);
|
||||
RT_ASSERT(result == RT_EOK);
|
||||
#endif
|
||||
|
||||
#ifdef BSP_USING_UART1
|
||||
uart = &uart1;
|
||||
serial1.ops = &sf2_uart_ops;
|
||||
/* default config: 115200, 8, no, 1 */
|
||||
serial1.config = config;
|
||||
result = rt_hw_serial_register(&serial1, "uart1", RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, uart);
|
||||
RT_ASSERT(result == RT_EOK);
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
INIT_BOARD_EXPORT(rt_hw_uart_init);
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2020, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2020-08-06 whik first version
|
||||
*/
|
||||
#ifndef __DRV_UART_H__
|
||||
#define __DRV_UART_H__
|
||||
|
||||
#include "mss_uart.h"
|
||||
void uart_rx_handler(mss_uart_instance_t *this_uart);
|
||||
|
||||
void uart0_rx_handler(mss_uart_instance_t * this_uart);
|
||||
void uart1_rx_handler(mss_uart_instance_t * this_uart);
|
||||
int rt_hw_uart_init(void);
|
||||
|
||||
#endif
|
After Width: | Height: | Size: 1007 KiB |
After Width: | Height: | Size: 581 KiB |
After Width: | Height: | Size: 158 KiB |
After Width: | Height: | Size: 154 KiB |
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 260 KiB |
After Width: | Height: | Size: 492 KiB |
|
@ -0,0 +1,16 @@
|
|||
from building import *
|
||||
import rtconfig
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
src = [cwd + '/sys_config/sys_config.c']
|
||||
src += [cwd + '/mss_gpio/mss_gpio.c']
|
||||
src += [cwd + '/mss_uart/mss_uart.c']
|
||||
|
||||
CPPPATH = [cwd+'/sys_config']
|
||||
CPPPATH += [cwd+'/mss_gpio']
|
||||
CPPPATH += [cwd+'/mss_uart']
|
||||
|
||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
|
@ -0,0 +1,298 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2008-2015 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* SmartFusion2 microcontroller subsystem GPIO bare metal driver implementation.
|
||||
*
|
||||
* SVN $Revision: 7749 $
|
||||
* SVN $Date: 2015-09-04 14:32:09 +0530 (Fri, 04 Sep 2015) $
|
||||
*/
|
||||
#include "mss_gpio.h"
|
||||
#include "../../CMSIS/mss_assert.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* Defines.
|
||||
*/
|
||||
#define GPIO_INT_ENABLE_MASK ((uint32_t)0x00000008uL)
|
||||
#define OUTPUT_BUFFER_ENABLE_MASK 0x00000004u
|
||||
|
||||
#define NB_OF_GPIO ((uint32_t)32)
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* Lookup table of GPIO configuration registers address indexed on GPIO ID.
|
||||
*/
|
||||
static uint32_t volatile * const g_config_reg_lut[NB_OF_GPIO] =
|
||||
{
|
||||
&(GPIO->GPIO_0_CFG),
|
||||
&(GPIO->GPIO_1_CFG),
|
||||
&(GPIO->GPIO_2_CFG),
|
||||
&(GPIO->GPIO_3_CFG),
|
||||
&(GPIO->GPIO_4_CFG),
|
||||
&(GPIO->GPIO_5_CFG),
|
||||
&(GPIO->GPIO_6_CFG),
|
||||
&(GPIO->GPIO_7_CFG),
|
||||
&(GPIO->GPIO_8_CFG),
|
||||
&(GPIO->GPIO_9_CFG),
|
||||
&(GPIO->GPIO_10_CFG),
|
||||
&(GPIO->GPIO_11_CFG),
|
||||
&(GPIO->GPIO_12_CFG),
|
||||
&(GPIO->GPIO_13_CFG),
|
||||
&(GPIO->GPIO_14_CFG),
|
||||
&(GPIO->GPIO_15_CFG),
|
||||
&(GPIO->GPIO_16_CFG),
|
||||
&(GPIO->GPIO_17_CFG),
|
||||
&(GPIO->GPIO_18_CFG),
|
||||
&(GPIO->GPIO_19_CFG),
|
||||
&(GPIO->GPIO_20_CFG),
|
||||
&(GPIO->GPIO_21_CFG),
|
||||
&(GPIO->GPIO_22_CFG),
|
||||
&(GPIO->GPIO_23_CFG),
|
||||
&(GPIO->GPIO_24_CFG),
|
||||
&(GPIO->GPIO_25_CFG),
|
||||
&(GPIO->GPIO_26_CFG),
|
||||
&(GPIO->GPIO_27_CFG),
|
||||
&(GPIO->GPIO_28_CFG),
|
||||
&(GPIO->GPIO_29_CFG),
|
||||
&(GPIO->GPIO_30_CFG),
|
||||
&(GPIO->GPIO_31_CFG)
|
||||
};
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* Lookup table of Cortex-M3 GPIO interrupt number indexed on GPIO ID.
|
||||
*/
|
||||
static const IRQn_Type g_gpio_irqn_lut[NB_OF_GPIO] =
|
||||
{
|
||||
GPIO0_IRQn,
|
||||
GPIO1_IRQn,
|
||||
GPIO2_IRQn,
|
||||
GPIO3_IRQn,
|
||||
GPIO4_IRQn,
|
||||
GPIO5_IRQn,
|
||||
GPIO6_IRQn,
|
||||
GPIO7_IRQn,
|
||||
GPIO8_IRQn,
|
||||
GPIO9_IRQn,
|
||||
GPIO10_IRQn,
|
||||
GPIO11_IRQn,
|
||||
GPIO12_IRQn,
|
||||
GPIO13_IRQn,
|
||||
GPIO14_IRQn,
|
||||
GPIO15_IRQn,
|
||||
GPIO16_IRQn,
|
||||
GPIO17_IRQn,
|
||||
GPIO18_IRQn,
|
||||
GPIO19_IRQn,
|
||||
GPIO20_IRQn,
|
||||
GPIO21_IRQn,
|
||||
GPIO22_IRQn,
|
||||
GPIO23_IRQn,
|
||||
GPIO24_IRQn,
|
||||
GPIO25_IRQn,
|
||||
GPIO26_IRQn,
|
||||
GPIO27_IRQn,
|
||||
GPIO28_IRQn,
|
||||
GPIO29_IRQn,
|
||||
GPIO30_IRQn,
|
||||
GPIO31_IRQn
|
||||
};
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* MSS_GPIO_init
|
||||
* See "mss_gpio.h" for details of how to use this function.
|
||||
*/
|
||||
void MSS_GPIO_init( void )
|
||||
{
|
||||
uint32_t inc;
|
||||
|
||||
/* reset MSS GPIO hardware */
|
||||
SYSREG->SOFT_RST_CR |= SYSREG_GPIO_SOFTRESET_MASK;
|
||||
SYSREG->SOFT_RST_CR |= (SYSREG_GPIO_7_0_SOFTRESET_MASK |
|
||||
SYSREG_GPIO_15_8_SOFTRESET_MASK |
|
||||
SYSREG_GPIO_23_16_SOFTRESET_MASK |
|
||||
SYSREG_GPIO_31_24_SOFTRESET_MASK);
|
||||
|
||||
/* Clear any previously pended MSS GPIO interrupt */
|
||||
for(inc = 0U; inc < NB_OF_GPIO; ++inc)
|
||||
{
|
||||
NVIC_DisableIRQ(g_gpio_irqn_lut[inc]);
|
||||
NVIC_ClearPendingIRQ(g_gpio_irqn_lut[inc]);
|
||||
}
|
||||
/* Take MSS GPIO hardware out of reset. */
|
||||
SYSREG->SOFT_RST_CR &= ~(SYSREG_GPIO_7_0_SOFTRESET_MASK |
|
||||
SYSREG_GPIO_15_8_SOFTRESET_MASK |
|
||||
SYSREG_GPIO_23_16_SOFTRESET_MASK |
|
||||
SYSREG_GPIO_31_24_SOFTRESET_MASK);
|
||||
SYSREG->SOFT_RST_CR &= ~SYSREG_GPIO_SOFTRESET_MASK;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* MSS_GPIO_config
|
||||
* See "mss_gpio.h" for details of how to use this function.
|
||||
*/
|
||||
void MSS_GPIO_config
|
||||
(
|
||||
mss_gpio_id_t port_id,
|
||||
uint32_t config
|
||||
)
|
||||
{
|
||||
uint32_t gpio_idx = (uint32_t)port_id;
|
||||
|
||||
ASSERT(gpio_idx < NB_OF_GPIO);
|
||||
|
||||
if(gpio_idx < NB_OF_GPIO)
|
||||
{
|
||||
*(g_config_reg_lut[gpio_idx]) = config;
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* MSS_GPIO_set_output
|
||||
* See "mss_gpio.h" for details of how to use this function.
|
||||
*/
|
||||
void MSS_GPIO_set_output
|
||||
(
|
||||
mss_gpio_id_t port_id,
|
||||
uint8_t value
|
||||
)
|
||||
{
|
||||
uint32_t gpio_setting;
|
||||
uint32_t gpio_idx = (uint32_t)port_id;
|
||||
|
||||
ASSERT(gpio_idx < NB_OF_GPIO);
|
||||
|
||||
if(gpio_idx < NB_OF_GPIO)
|
||||
{
|
||||
gpio_setting = GPIO->GPIO_OUT;
|
||||
gpio_setting &= ~((uint32_t)0x01u << gpio_idx);
|
||||
gpio_setting |= ((uint32_t)value & 0x01u) << gpio_idx;
|
||||
GPIO->GPIO_OUT = gpio_setting;
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* MSS_GPIO_drive_inout
|
||||
* See "mss_gpio.h" for details of how to use this function.
|
||||
*/
|
||||
void MSS_GPIO_drive_inout
|
||||
(
|
||||
mss_gpio_id_t port_id,
|
||||
mss_gpio_inout_state_t inout_state
|
||||
)
|
||||
{
|
||||
uint32_t outputs_state;
|
||||
uint32_t config;
|
||||
uint32_t gpio_idx = (uint32_t)port_id;
|
||||
|
||||
ASSERT(gpio_idx < NB_OF_GPIO);
|
||||
|
||||
if(gpio_idx < NB_OF_GPIO)
|
||||
{
|
||||
switch(inout_state)
|
||||
{
|
||||
case MSS_GPIO_DRIVE_HIGH:
|
||||
/* Set output high */
|
||||
outputs_state = GPIO->GPIO_OUT;
|
||||
outputs_state |= (uint32_t)1 << gpio_idx;
|
||||
GPIO->GPIO_OUT = outputs_state;
|
||||
/* Enable output buffer */
|
||||
config = *(g_config_reg_lut[gpio_idx]);
|
||||
config |= OUTPUT_BUFFER_ENABLE_MASK;
|
||||
*(g_config_reg_lut[gpio_idx]) = config;
|
||||
break;
|
||||
|
||||
case MSS_GPIO_DRIVE_LOW:
|
||||
/* Set output low */
|
||||
outputs_state = GPIO->GPIO_OUT;
|
||||
outputs_state &= ~((uint32_t)((uint32_t)1 << gpio_idx));
|
||||
GPIO->GPIO_OUT = outputs_state;
|
||||
/* Enable output buffer */
|
||||
config = *(g_config_reg_lut[gpio_idx]);
|
||||
config |= OUTPUT_BUFFER_ENABLE_MASK;
|
||||
*(g_config_reg_lut[gpio_idx]) = config;
|
||||
break;
|
||||
|
||||
case MSS_GPIO_HIGH_Z:
|
||||
/* Disable output buffer */
|
||||
config = *(g_config_reg_lut[gpio_idx]);
|
||||
config &= ~OUTPUT_BUFFER_ENABLE_MASK;
|
||||
*(g_config_reg_lut[gpio_idx]) = config;
|
||||
break;
|
||||
|
||||
default:
|
||||
ASSERT(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* MSS_GPIO_enable_irq
|
||||
* See "mss_gpio.h" for details of how to use this function.
|
||||
*/
|
||||
void MSS_GPIO_enable_irq
|
||||
(
|
||||
mss_gpio_id_t port_id
|
||||
)
|
||||
{
|
||||
uint32_t cfg_value;
|
||||
uint32_t gpio_idx = (uint32_t)port_id;
|
||||
|
||||
ASSERT(gpio_idx < NB_OF_GPIO);
|
||||
|
||||
if(gpio_idx < NB_OF_GPIO)
|
||||
{
|
||||
cfg_value = *(g_config_reg_lut[gpio_idx]);
|
||||
*(g_config_reg_lut[gpio_idx]) = (cfg_value | GPIO_INT_ENABLE_MASK);
|
||||
NVIC_EnableIRQ(g_gpio_irqn_lut[gpio_idx]);
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* MSS_GPIO_disable_irq
|
||||
* See "mss_gpio.h" for details of how to use this function.
|
||||
*/
|
||||
void MSS_GPIO_disable_irq
|
||||
(
|
||||
mss_gpio_id_t port_id
|
||||
)
|
||||
{
|
||||
uint32_t cfg_value;
|
||||
uint32_t gpio_idx = (uint32_t)port_id;
|
||||
|
||||
ASSERT(gpio_idx < NB_OF_GPIO);
|
||||
|
||||
if(gpio_idx < NB_OF_GPIO)
|
||||
{
|
||||
cfg_value = *(g_config_reg_lut[gpio_idx]);
|
||||
*(g_config_reg_lut[gpio_idx]) = (cfg_value & ~GPIO_INT_ENABLE_MASK);
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
* MSS_GPIO_clear_irq
|
||||
* See "mss_gpio.h" for details of how to use this function.
|
||||
*/
|
||||
void MSS_GPIO_clear_irq
|
||||
(
|
||||
mss_gpio_id_t port_id
|
||||
)
|
||||
{
|
||||
uint32_t gpio_idx = (uint32_t)port_id;
|
||||
|
||||
ASSERT(gpio_idx < NB_OF_GPIO);
|
||||
|
||||
if(gpio_idx < NB_OF_GPIO)
|
||||
{
|
||||
GPIO->GPIO_IRQ = ((uint32_t)1) << gpio_idx;
|
||||
}
|
||||
__ASM volatile ("dsb");
|
||||
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
@ -0,0 +1,507 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2008-2015 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* SmartFusion2 Microcontroller Subsystem GPIO bare metal software driver public
|
||||
* API.
|
||||
*
|
||||
* SVN $Revision: 7748 $
|
||||
* SVN $Date: 2015-09-04 11:36:30 +0530 (Fri, 04 Sep 2015) $
|
||||
*/
|
||||
|
||||
/*=========================================================================*//**
|
||||
@mainpage SmartFusion2 MSS GPIO Bare Metal Driver.
|
||||
|
||||
@section intro_sec Introduction
|
||||
The SmartFusion2 Microcontroller Subsystem (MSS) includes a block of 32 general
|
||||
purpose input/outputs (GPIO).
|
||||
This software driver provides a set of functions for controlling the MSS GPIO
|
||||
block as part of a bare metal system where no operating system is available.
|
||||
This driver can be adapted for use as part of an operating system but the
|
||||
implementation of the adaptation layer between this driver and the operating
|
||||
system's driver model is outside the scope of this driver.
|
||||
|
||||
@section hw_dependencies Hardware Flow Dependencies
|
||||
The configuration of all features of the MSS GPIOs is covered by this driver
|
||||
with the exception of the SmartFusion2 IOMUX configuration. SmartFusion2
|
||||
allows multiple non-concurrent uses of some external pins through IOMUX
|
||||
configuration. This feature allows optimization of external pin usage by
|
||||
assigning external pins for use by either the microcontroller subsystem or the
|
||||
FPGA fabric. The MSS GPIOs share SmartFusion2 device external pins with the
|
||||
FPGA fabric and with other MSS peripherals via an IOMUX. The MSS GPIO ports
|
||||
can alternatively be routed to the FPGA fabric through an IOMUX.
|
||||
The IOMUXs are configured using the SmartFusion2 MSS configurator tool. You
|
||||
must ensure that the MSS GPIOs are enabled and configured in the SmartFusion2
|
||||
MSS configurator if you wish to use them. For more information on IOMUXs,
|
||||
refer to the IOMUX section of the SmartFusion2 Microcontroller Subsystem (MSS)
|
||||
User’s Guide.
|
||||
The base address, register addresses and interrupt number assignment for the
|
||||
MSS GPIO block are defined as constants in the SmartFusion2 CMSIS HAL. You
|
||||
must ensure that the latest SmartFusion2 CMSIS HAL is included in the project
|
||||
settings of the software tool chain used to build your project and that it is
|
||||
generated into your project.
|
||||
|
||||
@section theory_op Theory of Operation
|
||||
The MSS GPIO driver functions are grouped into the following categories:
|
||||
- Initialization
|
||||
- Configuration
|
||||
- Reading and setting GPIO state
|
||||
- Interrupt control
|
||||
|
||||
Initialization
|
||||
The MSS GPIO driver is initialized through a call to the MSS_GPIO_init()
|
||||
function. The MSS_GPIO_init() function must be called before any other MSS
|
||||
GPIO driver functions can be called.
|
||||
|
||||
Configuration
|
||||
Each GPIO port is individually configured through a call to the
|
||||
MSS_GPIO_config() function. Configuration includes deciding if a GPIO port
|
||||
will be used as an input, an output or both. GPIO ports configured as inputs
|
||||
can be further configured to generate interrupts based on the input's state.
|
||||
Interrupts can be level or edge sensitive.
|
||||
|
||||
Reading and Setting GPIO State
|
||||
The state of the GPIO ports can be read and set using the following functions:
|
||||
- MSS_GPIO_get_inputs()
|
||||
- MSS_GPIO_get_outputs()
|
||||
- MSS_GPIO_set_outputs()
|
||||
- MSS_GPIO_set_output()
|
||||
- MSS_GPIO_drive_inout()
|
||||
|
||||
Interrupt Control
|
||||
Interrupts generated by GPIO ports configured as inputs are controlled using
|
||||
the following functions:
|
||||
- MSS_GPIO_enable_irq()
|
||||
- MSS_GPIO_disable_irq()
|
||||
- MSS_GPIO_clear_irq()
|
||||
|
||||
*//*=========================================================================*/
|
||||
#ifndef MSS_GPIO_H_
|
||||
#define MSS_GPIO_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "../../CMSIS/m2sxxx.h"
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The mss_gpio_id_t enumeration is used to identify individual GPIO ports as an
|
||||
argument to functions:
|
||||
- MSS_GPIO_config()
|
||||
- MSS_GPIO_set_output() and MSS_GPIO_drive_inout()
|
||||
- MSS_GPIO_enable_irq(), MSS_GPIO_disable_irq() and MSS_GPIO_clear_irq()
|
||||
*/
|
||||
typedef enum __mss_gpio_id_t
|
||||
{
|
||||
MSS_GPIO_0 = 0,
|
||||
MSS_GPIO_1 = 1,
|
||||
MSS_GPIO_2 = 2,
|
||||
MSS_GPIO_3 = 3,
|
||||
MSS_GPIO_4 = 4,
|
||||
MSS_GPIO_5 = 5,
|
||||
MSS_GPIO_6 = 6,
|
||||
MSS_GPIO_7 = 7,
|
||||
MSS_GPIO_8 = 8,
|
||||
MSS_GPIO_9 = 9,
|
||||
MSS_GPIO_10 = 10,
|
||||
MSS_GPIO_11 = 11,
|
||||
MSS_GPIO_12 = 12,
|
||||
MSS_GPIO_13 = 13,
|
||||
MSS_GPIO_14 = 14,
|
||||
MSS_GPIO_15 = 15,
|
||||
MSS_GPIO_16 = 16,
|
||||
MSS_GPIO_17 = 17,
|
||||
MSS_GPIO_18 = 18,
|
||||
MSS_GPIO_19 = 19,
|
||||
MSS_GPIO_20 = 20,
|
||||
MSS_GPIO_21 = 21,
|
||||
MSS_GPIO_22 = 22,
|
||||
MSS_GPIO_23 = 23,
|
||||
MSS_GPIO_24 = 24,
|
||||
MSS_GPIO_25 = 25,
|
||||
MSS_GPIO_26 = 26,
|
||||
MSS_GPIO_27 = 27,
|
||||
MSS_GPIO_28 = 28,
|
||||
MSS_GPIO_29 = 29,
|
||||
MSS_GPIO_30 = 30,
|
||||
MSS_GPIO_31 = 31
|
||||
} mss_gpio_id_t;
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
These constant definitions are used as an argument to the
|
||||
MSS_GPIO_set_outputs() function to identify GPIO ports. A logical OR of these
|
||||
constants can be used to specify multiple GPIO ports.
|
||||
These definitions can also be used to identify GPIO ports through logical
|
||||
operations on the return value of the MSS_GPIO_get_inputs() function.
|
||||
*/
|
||||
#define MSS_GPIO_0_MASK 0x00000001uL
|
||||
#define MSS_GPIO_1_MASK 0x00000002uL
|
||||
#define MSS_GPIO_2_MASK 0x00000004uL
|
||||
#define MSS_GPIO_3_MASK 0x00000008uL
|
||||
#define MSS_GPIO_4_MASK 0x00000010uL
|
||||
#define MSS_GPIO_5_MASK 0x00000020uL
|
||||
#define MSS_GPIO_6_MASK 0x00000040uL
|
||||
#define MSS_GPIO_7_MASK 0x00000080uL
|
||||
#define MSS_GPIO_8_MASK 0x00000100uL
|
||||
#define MSS_GPIO_9_MASK 0x00000200uL
|
||||
#define MSS_GPIO_10_MASK 0x00000400uL
|
||||
#define MSS_GPIO_11_MASK 0x00000800uL
|
||||
#define MSS_GPIO_12_MASK 0x00001000uL
|
||||
#define MSS_GPIO_13_MASK 0x00002000uL
|
||||
#define MSS_GPIO_14_MASK 0x00004000uL
|
||||
#define MSS_GPIO_15_MASK 0x00008000uL
|
||||
#define MSS_GPIO_16_MASK 0x00010000uL
|
||||
#define MSS_GPIO_17_MASK 0x00020000uL
|
||||
#define MSS_GPIO_18_MASK 0x00040000uL
|
||||
#define MSS_GPIO_19_MASK 0x00080000uL
|
||||
#define MSS_GPIO_20_MASK 0x00100000uL
|
||||
#define MSS_GPIO_21_MASK 0x00200000uL
|
||||
#define MSS_GPIO_22_MASK 0x00400000uL
|
||||
#define MSS_GPIO_23_MASK 0x00800000uL
|
||||
#define MSS_GPIO_24_MASK 0x01000000uL
|
||||
#define MSS_GPIO_25_MASK 0x02000000uL
|
||||
#define MSS_GPIO_26_MASK 0x04000000uL
|
||||
#define MSS_GPIO_27_MASK 0x08000000uL
|
||||
#define MSS_GPIO_28_MASK 0x10000000uL
|
||||
#define MSS_GPIO_29_MASK 0x20000000uL
|
||||
#define MSS_GPIO_30_MASK 0x40000000uL
|
||||
#define MSS_GPIO_31_MASK 0x80000000uL
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
These constant definitions are used as an argument to the MSS_GPIO_config()
|
||||
function to specify the I/O mode of each GPIO port.
|
||||
*/
|
||||
#define MSS_GPIO_INPUT_MODE 0x0000000002uL
|
||||
#define MSS_GPIO_OUTPUT_MODE 0x0000000005uL
|
||||
#define MSS_GPIO_INOUT_MODE 0x0000000003uL
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
These constant definitions are used as an argument to the MSS_GPIO_config()
|
||||
function to specify the interrupt mode of each GPIO port.
|
||||
*/
|
||||
#define MSS_GPIO_IRQ_LEVEL_HIGH 0x0000000000uL
|
||||
#define MSS_GPIO_IRQ_LEVEL_LOW 0x0000000020uL
|
||||
#define MSS_GPIO_IRQ_EDGE_POSITIVE 0x0000000040uL
|
||||
#define MSS_GPIO_IRQ_EDGE_NEGATIVE 0x0000000060uL
|
||||
#define MSS_GPIO_IRQ_EDGE_BOTH 0x0000000080uL
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The mss_gpio_inout_state_t enumeration is used to specify the output state of
|
||||
an INOUT GPIO port as an argument to the MSS_GPIO_drive_inout() function.
|
||||
*/
|
||||
typedef enum mss_gpio_inout_state
|
||||
{
|
||||
MSS_GPIO_DRIVE_LOW = 0,
|
||||
MSS_GPIO_DRIVE_HIGH,
|
||||
MSS_GPIO_HIGH_Z
|
||||
} mss_gpio_inout_state_t;
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_init() function initializes the SmartFusion2 MSS GPIO block. It
|
||||
resets the MSS GPIO hardware block and it also clears any pending MSS GPIO
|
||||
interrupts in the ARM Cortex-M3 interrupt controller. When the function exits,
|
||||
it takes the MSS GPIO block out of reset.
|
||||
|
||||
@param
|
||||
This function has no parameters.
|
||||
|
||||
@return
|
||||
This function does not return a value.
|
||||
*/
|
||||
void MSS_GPIO_init( void );
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_config() function is used to configure an individual GPIO port.
|
||||
|
||||
@param port_id
|
||||
The port_id parameter identifies the GPIO port to be configured. An
|
||||
enumeration item of the form MSS_GPIO_n, where n is the number of the GPIO
|
||||
port, is used to identify the GPIO port. For example, MSS_GPIO_0 identifies
|
||||
the first GPIO port and MSS_GPIO_31 is the last one.
|
||||
|
||||
@param config
|
||||
The config parameter specifies the configuration to be applied to the GPIO
|
||||
port identified by the port_id parameter. It is a logical OR of the required
|
||||
I/O mode and the required interrupt mode. The interrupt mode is not relevant
|
||||
if the GPIO is configured as an output only.
|
||||
These I/O mode constants are allowed:
|
||||
- MSS_GPIO_INPUT_MODE
|
||||
- MSS_GPIO_OUTPUT_MODE
|
||||
- MSS_GPIO_INOUT_MODE
|
||||
These interrupt mode constants are allowed:
|
||||
- MSS_GPIO_IRQ_LEVEL_HIGH
|
||||
- MSS_GPIO_IRQ_LEVEL_LOW
|
||||
- MSS_GPIO_IRQ_EDGE_POSITIVE
|
||||
- MSS_GPIO_IRQ_EDGE_NEGATIVE
|
||||
- MSS_GPIO_IRQ_EDGE_BOTH
|
||||
|
||||
@return
|
||||
none.
|
||||
|
||||
Example:
|
||||
The following call will configure GPIO 4 as an input generating interrupts on
|
||||
a Low to High transition of the input:
|
||||
@code
|
||||
MSS_GPIO_config( MSS_GPIO_4, MSS_GPIO_INPUT_MODE | MSS_GPIO_IRQ_EDGE_POSITIVE );
|
||||
@endcode
|
||||
*/
|
||||
void MSS_GPIO_config
|
||||
(
|
||||
mss_gpio_id_t port_id,
|
||||
uint32_t config
|
||||
);
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_set_outputs() function is used to set the state of all GPIO ports
|
||||
configured as outputs.
|
||||
|
||||
@param value
|
||||
The value parameter specifies the state of the GPIO ports configured as
|
||||
outputs. It is a bit mask of the form (MSS_GPIO_n_MASK | MSS_GPIO_m_MASK)
|
||||
where n and m are numbers identifying GPIOs. For example, (MSS_GPIO_0_MASK |
|
||||
MSS_GPIO_1_MASK | MSS_GPIO_2_MASK ) specifies that the first, second and
|
||||
third GPIO outputs must be set High and all other GPIO outputs set Low. The
|
||||
driver provides 32 mask constants, MSS_GPIO_0_MASK to MSS_GPIO_31_MASK
|
||||
inclusive, for this purpose.
|
||||
|
||||
@return
|
||||
none.
|
||||
|
||||
Example 1:
|
||||
Set GPIOs outputs 0 and 8 high and all other GPIO outputs low.
|
||||
@code
|
||||
MSS_GPIO_set_outputs( MSS_GPIO_0_MASK | MSS_GPIO_8_MASK );
|
||||
@endcode
|
||||
|
||||
Example 2:
|
||||
Set GPIOs outputs 2 and 4 low without affecting other GPIO outputs.
|
||||
@code
|
||||
uint32_t gpio_outputs;
|
||||
gpio_outputs = MSS_GPIO_get_outputs();
|
||||
gpio_outputs &= ~( MSS_GPIO_2_MASK | MSS_GPIO_4_MASK );
|
||||
MSS_GPIO_set_outputs( gpio_outputs );
|
||||
@endcode
|
||||
|
||||
@see MSS_GPIO_get_outputs()
|
||||
*/
|
||||
static __INLINE void
|
||||
MSS_GPIO_set_outputs
|
||||
(
|
||||
uint32_t value
|
||||
)
|
||||
{
|
||||
GPIO->GPIO_OUT = value;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_set_output() function is used to set the state of a single GPIO
|
||||
port configured as an output.
|
||||
Note: Using bit-band writes might be a better option than this function for
|
||||
performance critical applications where the application code is not
|
||||
intended to be ported to a processor other than the ARM Cortex-M3 in
|
||||
SmartFusion2. The bit-band write equivalent to this function would be:
|
||||
GPIO_BITBAND->GPIO_OUT[port_id] = (uint32_t)value;
|
||||
|
||||
@param port_id
|
||||
The port_id parameter identifies the GPIO port that is to have its output
|
||||
set. An enumeration item of the form MSS_GPIO_n, where n is the number of
|
||||
the GPIO port, is used to identify the GPIO port. For example, MSS_GPIO_0
|
||||
identifies the first GPIO port and MSS_GPIO_31 is the last one.
|
||||
|
||||
@param value
|
||||
The value parameter specifies the desired state for the GPIO output. A value
|
||||
of 0 will set the output Low and a value of 1 will set the output High.
|
||||
|
||||
@return
|
||||
This function does not return a value.
|
||||
|
||||
Example:
|
||||
The following call will set GPIO output 12 High, leaving all other GPIO
|
||||
outputs unaffected:
|
||||
@code
|
||||
_GPIO_set_output(MSS_GPIO_12, 1);
|
||||
@endcode
|
||||
*/
|
||||
void MSS_GPIO_set_output
|
||||
(
|
||||
mss_gpio_id_t port_id,
|
||||
uint8_t value
|
||||
);
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_get_inputs() function is used to read the current state all GPIO
|
||||
ports configured as inputs.
|
||||
|
||||
@return
|
||||
This function returns a 32-bit unsigned integer where each bit represents
|
||||
the state of a GPIO input. The least significant bit represents the state of
|
||||
GPIO input 0 and the most significant bit the state of GPIO input 31.
|
||||
|
||||
Example:
|
||||
Read and assign the current state of the GPIO outputs to a variable.
|
||||
@code
|
||||
uint32_t gpio_inputs;
|
||||
gpio_inputs = MSS_GPIO_get_inputs();
|
||||
@endcode
|
||||
*/
|
||||
static __INLINE uint32_t
|
||||
MSS_GPIO_get_inputs( void )
|
||||
{
|
||||
return GPIO->GPIO_IN;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_get_outputs() function is used to read the current state all GPIO
|
||||
ports configured as outputs.
|
||||
|
||||
@return
|
||||
This function returns a 32-bit unsigned integer where each bit represents
|
||||
the state of a GPIO output. The least significant bit represents the state
|
||||
of GPIO output 0 and the most significant bit the state of GPIO output 31.
|
||||
|
||||
Example:
|
||||
Read and assign the current state of the GPIO outputs to a variable.
|
||||
@code
|
||||
uint32_t gpio_outputs;
|
||||
gpio_outputs = MSS_GPIO_get_outputs();
|
||||
@endcode
|
||||
*/
|
||||
static __INLINE uint32_t
|
||||
MSS_GPIO_get_outputs( void )
|
||||
{
|
||||
return GPIO->GPIO_OUT;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_drive_inout() function is used to set the output state of a
|
||||
single GPIO port configured as an INOUT. An INOUT GPIO can be in one of three
|
||||
states:
|
||||
- High
|
||||
- Low
|
||||
- High impedance
|
||||
An INOUT output would typically be used where several devices can drive the
|
||||
state of a shared signal line. The High and Low states are equivalent to the
|
||||
High and Low states of a GPIO configured as an output. The High impedance
|
||||
state is used to prevent the GPIO from driving its output state onto the
|
||||
signal line, while at the same time allowing the input state of the GPIO to
|
||||
be read.
|
||||
|
||||
@param port_id
|
||||
The port_id parameter identifies the GPIO port for which you want to change
|
||||
the output state. An enumeration item of the form MSS_GPIO_n, where n is the
|
||||
number of the GPIO port, is used to identify the GPIO port. For example,
|
||||
MSS_GPIO_0 identifies the first GPIO port and MSS_GPIO_31 is the last one.
|
||||
|
||||
@param inout_state
|
||||
The inout_state parameter specifies the state of the GPIO port identified by
|
||||
the port_id parameter. Allowed values of type mss_gpio_inout_state_t are as
|
||||
follows:
|
||||
- MSS_GPIO_DRIVE_HIGH
|
||||
- MSS_GPIO_DRIVE_LOW
|
||||
- MSS_GPIO_HIGH_Z (High impedance)
|
||||
|
||||
@return
|
||||
This function does not return a value.
|
||||
|
||||
Example:
|
||||
The call to MSS_GPIO_drive_inout() below will set the GPIO 7 output to the
|
||||
high impedance state.
|
||||
@code
|
||||
MSS_GPIO_drive_inout( MSS_GPIO_7, MSS_GPIO_HIGH_Z );
|
||||
@endcode
|
||||
*/
|
||||
void MSS_GPIO_drive_inout
|
||||
(
|
||||
mss_gpio_id_t port_id,
|
||||
mss_gpio_inout_state_t inout_state
|
||||
);
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_enable_irq() function is used to enable interrupt generation for
|
||||
the specified GPIO input. Interrupts are generated based on the state of the
|
||||
GPIO input and the interrupt mode configured for it by MSS_GPIO_config().
|
||||
|
||||
@param port_id
|
||||
The port_id parameter identifies the GPIO port for which you want to enable
|
||||
interrupt generation. An enumeration item of the form MSS_GPIO_n, where n is
|
||||
the number of the GPIO port, is used to identify the GPIO port. For example,
|
||||
MSS_GPIO_0 identifies the first GPIO port and MSS_GPIO_31 is the last one.
|
||||
|
||||
@return
|
||||
This function does not return a value.
|
||||
|
||||
Example:
|
||||
The call to MSS_GPIO_enable_irq() below will allow GPIO 8 to generate
|
||||
interrupts.
|
||||
@code
|
||||
MSS_GPIO_enable_irq( MSS_GPIO_8 );
|
||||
@endcode
|
||||
*/
|
||||
void MSS_GPIO_enable_irq
|
||||
(
|
||||
mss_gpio_id_t port_id
|
||||
);
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_disable_irq() function is used to disable interrupt generation
|
||||
for the specified GPIO input.
|
||||
|
||||
@param port_id
|
||||
The port_id parameter identifies the GPIO port for which you want to disable
|
||||
interrupt generation. An enumeration item of the form MSS_GPIO_n, where n is
|
||||
the number of the GPIO port, is used to identify the GPIO port. For example,
|
||||
MSS_GPIO_0 identifies the first GPIO port and MSS_GPIO_31 is the last one.
|
||||
|
||||
@return
|
||||
This function does not return a value.
|
||||
|
||||
Example:
|
||||
The call to MSS_GPIO_disable_irq() below will prevent GPIO 8 from generating
|
||||
interrupts.
|
||||
@code
|
||||
MSS_GPIO_disable_irq( MSS_GPIO_8 );
|
||||
@endcode
|
||||
*/
|
||||
void MSS_GPIO_disable_irq
|
||||
(
|
||||
mss_gpio_id_t port_id
|
||||
);
|
||||
|
||||
/*-------------------------------------------------------------------------*//**
|
||||
The MSS_GPIO_clear_irq() function is used to clear a pending interrupt from
|
||||
the specified GPIO input.
|
||||
Note: The MSS_GPIO_clear_irq() function must be called as part of any GPIO
|
||||
interrupt service routine (ISR) in order to prevent the same interrupt
|
||||
event retriggering a call to the GPIO ISR.
|
||||
|
||||
@param port_id
|
||||
The port_id parameter identifies the GPIO port for which you want to clear
|
||||
the interrupt. An enumeration item of the form MSS_GPIO_n, where n is the
|
||||
number of the GPIO port, is used to identify the GPIO port. For example,
|
||||
MSS_GPIO_0 identifies the first GPIO port and MSS_GPIO_31 is the last one.
|
||||
|
||||
@return
|
||||
none.
|
||||
|
||||
Example:
|
||||
The example below demonstrates the use of the MSS_GPIO_clear_irq() function
|
||||
as part of the GPIO 9 interrupt service routine.
|
||||
@code
|
||||
void GPIO9_IRQHandler( void )
|
||||
{
|
||||
do_interrupt_processing();
|
||||
|
||||
MSS_GPIO_clear_irq( MSS_GPIO_9 );
|
||||
}
|
||||
@endcode
|
||||
*/
|
||||
void MSS_GPIO_clear_irq
|
||||
(
|
||||
mss_gpio_id_t port_id
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* MSS_GPIO_H_ */
|
|
@ -0,0 +1,83 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2011-2013 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* Register bit offsets and masks defintions for SmartFusion2 MSS MMUART.
|
||||
*
|
||||
* SVN $Revision: 5610 $
|
||||
* SVN $Date: 2013-04-05 18:49:30 +0530 (Fri, 05 Apr 2013) $
|
||||
*/
|
||||
#ifndef MSS_UART_REGS_H_
|
||||
#define MSS_UART_REGS_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
Register Bit definitions
|
||||
*/
|
||||
|
||||
/* Line Control register bit definitions */
|
||||
#define SB 6u /* Set break */
|
||||
#define DLAB 7u /* Divisor latch access bit */
|
||||
|
||||
/* FIFO Control register bit definitions */
|
||||
#define RXRDY_TXRDYN_EN 0u /* Enable TXRDY and RXRDY signals */
|
||||
#define CLEAR_RX_FIFO 1u /* Clear receiver FIFO */
|
||||
#define CLEAR_TX_FIFO 2u /* Clear transimtter FIFO */
|
||||
#define RDYMODE 3u /* Mode 0 or Mode 1 for TXRDY and RXRDY */
|
||||
|
||||
/* Modem Control register bit definitions */
|
||||
#define LOOP 4u /* Local loopback */
|
||||
#define RLOOP 5u /* Remote loopback */
|
||||
#define ECHO 6u /* Automatic echo */
|
||||
#define RLOOP_MASK 0x6u /* Remote loopback & Automatic echo*/
|
||||
|
||||
/* Line Status register bit definitions */
|
||||
#define DR 0u /* Data ready */
|
||||
#define THRE 5u /* Transmitter holding register empty */
|
||||
#define TEMT 6u /* Transitter empty */
|
||||
|
||||
/* Interrupt Enable register bit definitions */
|
||||
#define ERBFI 0u /* Enable receiver buffer full interrupt */
|
||||
#define ETBEI 1u /* Enable transmitter buffer empty interrupt */
|
||||
#define ELSI 2u /* Enable line status interrupt */
|
||||
#define EDSSI 3u /* Enable modem status interrupt */
|
||||
|
||||
/* Multimode register 0 bit definitions */
|
||||
#define ELIN 3u /* Enable LIN header detection */
|
||||
#define ETTG 5u /* Enable transmitter time guard */
|
||||
#define ERTO 6u /* Enable receiver time-out */
|
||||
#define EFBR 7u /* Enable fractional baud rate mode */
|
||||
|
||||
/* Multimode register 1 bit definitions */
|
||||
#define E_MSB_RX 0u /* MSB / LSB first for receiver */
|
||||
#define E_MSB_TX 1u /* MSB / LSB first for transmitter */
|
||||
#define EIRD 2u /* Enable IrDA modem */
|
||||
#define EIRX 3u /* Input polarity for IrDA modem */
|
||||
#define EITX 4u /* Output polarity for IrDA modem */
|
||||
#define EITP 5u /* Output pulse width for IrDA modem */
|
||||
|
||||
/* Multimode register 2 bit definitions */
|
||||
#define EERR 0u /* Enable ERR / NACK during stop time */
|
||||
#define EAFM 1u /* Enable 9-bit address flag mode */
|
||||
#define EAFC 2u /* Enable address flag clear */
|
||||
#define ESWM 3u /* Enable single wire half-duplex mode */
|
||||
|
||||
/* Multimode Interrupt Enable register and
|
||||
Multimode Interrupt Identification register definitions */
|
||||
#define ERTOI 0u /* Enable receiver timeout interrupt */
|
||||
#define ENACKI 1u /* Enable NACK / ERR interrupt */
|
||||
#define EPID_PEI 2u /* Enable PID parity error interrupt */
|
||||
#define ELINBI 3u /* Enable LIN break interrupt */
|
||||
#define ELINSI 4u /* Enable LIN sync detection interrupt */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* MSS_UART_REGS_H_ */
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,385 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2012 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* Smartfusion2 system configuration. This file is automatically generated
|
||||
* by the Libero tools. It contains the Smartfusion2 system configuration that
|
||||
* was selected during the hardware configuration flow.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "../../CMSIS/m2sxxx.h"
|
||||
#include "../../CMSIS/sys_init_cfg_types.h"
|
||||
#include "sys_config.h"
|
||||
|
||||
/*==============================================================================
|
||||
* !!! WARNING !!!
|
||||
*==============================================================================
|
||||
* The project including this file must be linked so that the content of this
|
||||
* file is located in internal eNVM at run time. The content of this file is
|
||||
* used to configure the system prior to RAM content initialization. This means
|
||||
* that the content of the data structures below will be used before the copy
|
||||
* from LMA to VMA takes place. The LMA and VMA locations of the content of this
|
||||
* file must be identical for the system to be seamlessly configured as part of
|
||||
* the CMSIS boot process.
|
||||
*/
|
||||
|
||||
/*==============================================================================
|
||||
* Clock configuration
|
||||
*/
|
||||
/* No configuration data structure required. */
|
||||
|
||||
/*==============================================================================
|
||||
* Memory remapping configuration
|
||||
*/
|
||||
/* TBD. */
|
||||
|
||||
/*==============================================================================
|
||||
* MDDR configuration
|
||||
*/
|
||||
#if MSS_SYS_MDDR_CONFIG_BY_CORTEX
|
||||
|
||||
#include "sys_config_mddr_define.h"
|
||||
|
||||
MDDR_TypeDef * const g_m2s_mddr_addr = (MDDR_TypeDef *)0x40020800;
|
||||
|
||||
const ddr_subsys_cfg_t g_m2s_mddr_subsys_config =
|
||||
{
|
||||
/*---------------------------------------------------------------------
|
||||
* DDR Controller registers.
|
||||
* All registers are 16-bit wide unless mentioned beside the definition.
|
||||
*/
|
||||
{
|
||||
MDDR_DDRC_DYN_SOFT_RESET_CR,
|
||||
MDDR_DDRC_RESERVED0,
|
||||
MDDR_DDRC_DYN_REFRESH_1_CR,
|
||||
MDDR_DDRC_DYN_REFRESH_2_CR,
|
||||
MDDR_DDRC_DYN_POWERDOWN_CR,
|
||||
MDDR_DDRC_DYN_DEBUG_CR,
|
||||
MDDR_DDRC_MODE_CR,
|
||||
MDDR_DDRC_ADDR_MAP_BANK_CR,
|
||||
MDDR_DDRC_ECC_DATA_MASK_CR,
|
||||
MDDR_DDRC_ADDR_MAP_COL_1_CR,
|
||||
MDDR_DDRC_ADDR_MAP_COL_2_CR,
|
||||
MDDR_DDRC_ADDR_MAP_ROW_1_CR,
|
||||
MDDR_DDRC_ADDR_MAP_ROW_2_CR,
|
||||
MDDR_DDRC_INIT_1_CR,
|
||||
MDDR_DDRC_CKE_RSTN_CYCLES_1_CR,
|
||||
MDDR_DDRC_CKE_RSTN_CYCLES_2_CR,
|
||||
MDDR_DDRC_INIT_MR_CR,
|
||||
MDDR_DDRC_INIT_EMR_CR,
|
||||
MDDR_DDRC_INIT_EMR2_CR,
|
||||
MDDR_DDRC_INIT_EMR3_CR,
|
||||
MDDR_DDRC_DRAM_BANK_TIMING_PARAM_CR,
|
||||
MDDR_DDRC_DRAM_RD_WR_LATENCY_CR,
|
||||
MDDR_DDRC_DRAM_RD_WR_PRE_CR,
|
||||
MDDR_DDRC_DRAM_MR_TIMING_PARAM_CR,
|
||||
MDDR_DDRC_DRAM_RAS_TIMING_CR,
|
||||
MDDR_DDRC_DRAM_RD_WR_TRNARND_TIME_CR,
|
||||
MDDR_DDRC_DRAM_T_PD_CR,
|
||||
MDDR_DDRC_DRAM_BANK_ACT_TIMING_CR,
|
||||
MDDR_DDRC_ODT_PARAM_1_CR,
|
||||
MDDR_DDRC_ODT_PARAM_2_CR,
|
||||
MDDR_DDRC_ADDR_MAP_COL_3_CR,
|
||||
MDDR_DDRC_MODE_REG_RD_WR_CR,
|
||||
MDDR_DDRC_MODE_REG_DATA_CR,
|
||||
MDDR_DDRC_PWR_SAVE_1_CR,
|
||||
MDDR_DDRC_PWR_SAVE_2_CR,
|
||||
MDDR_DDRC_ZQ_LONG_TIME_CR,
|
||||
MDDR_DDRC_ZQ_SHORT_TIME_CR,
|
||||
MDDR_DDRC_ZQ_SHORT_INT_REFRESH_MARGIN_1_CR,
|
||||
MDDR_DDRC_ZQ_SHORT_INT_REFRESH_MARGIN_2_CR,
|
||||
MDDR_DDRC_PERF_PARAM_1_CR,
|
||||
MDDR_DDRC_HPR_QUEUE_PARAM_1_CR,
|
||||
MDDR_DDRC_HPR_QUEUE_PARAM_2_CR,
|
||||
MDDR_DDRC_LPR_QUEUE_PARAM_1_CR,
|
||||
MDDR_DDRC_LPR_QUEUE_PARAM_2_CR,
|
||||
MDDR_DDRC_WR_QUEUE_PARAM_CR,
|
||||
MDDR_DDRC_PERF_PARAM_2_CR,
|
||||
MDDR_DDRC_PERF_PARAM_3_CR,
|
||||
MDDR_DDRC_DFI_RDDATA_EN_CR,
|
||||
MDDR_DDRC_DFI_MIN_CTRLUPD_TIMING_CR,
|
||||
MDDR_DDRC_DFI_MAX_CTRLUPD_TIMING_CR,
|
||||
MDDR_DDRC_DFI_WR_LVL_CONTROL_1_CR,
|
||||
MDDR_DDRC_DFI_WR_LVL_CONTROL_2_CR,
|
||||
MDDR_DDRC_DFI_RD_LVL_CONTROL_1_CR,
|
||||
MDDR_DDRC_DFI_RD_LVL_CONTROL_2_CR,
|
||||
MDDR_DDRC_DFI_CTRLUPD_TIME_INTERVAL_CR,
|
||||
MDDR_DDRC_DYN_SOFT_RESET_ALIAS_CR,
|
||||
MDDR_DDRC_AXI_FABRIC_PRI_ID_CR,
|
||||
},
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
* DDR PHY configuration registers
|
||||
*/
|
||||
{
|
||||
MDDR_PHY_LOOPBACK_TEST_CR,
|
||||
MDDR_PHY_BOARD_LOOPBACK_CR,
|
||||
MDDR_PHY_CTRL_SLAVE_RATIO_CR,
|
||||
MDDR_PHY_CTRL_SLAVE_FORCE_CR,
|
||||
MDDR_PHY_CTRL_SLAVE_DELAY_CR,
|
||||
MDDR_PHY_DATA_SLICE_IN_USE_CR,
|
||||
MDDR_PHY_LVL_NUM_OF_DQ0_CR,
|
||||
MDDR_PHY_DQ_OFFSET_1_CR,
|
||||
MDDR_PHY_DQ_OFFSET_2_CR,
|
||||
MDDR_PHY_DQ_OFFSET_3_CR,
|
||||
MDDR_PHY_DIS_CALIB_RST_CR,
|
||||
MDDR_PHY_DLL_LOCK_DIFF_CR,
|
||||
MDDR_PHY_FIFO_WE_IN_DELAY_1_CR,
|
||||
MDDR_PHY_FIFO_WE_IN_DELAY_2_CR,
|
||||
MDDR_PHY_FIFO_WE_IN_DELAY_3_CR,
|
||||
MDDR_PHY_FIFO_WE_IN_FORCE_CR,
|
||||
MDDR_PHY_FIFO_WE_SLAVE_RATIO_1_CR,
|
||||
MDDR_PHY_FIFO_WE_SLAVE_RATIO_2_CR,
|
||||
MDDR_PHY_FIFO_WE_SLAVE_RATIO_3_CR,
|
||||
MDDR_PHY_FIFO_WE_SLAVE_RATIO_4_CR,
|
||||
MDDR_PHY_GATELVL_INIT_MODE_CR,
|
||||
MDDR_PHY_GATELVL_INIT_RATIO_1_CR,
|
||||
MDDR_PHY_GATELVL_INIT_RATIO_2_CR,
|
||||
MDDR_PHY_GATELVL_INIT_RATIO_3_CR,
|
||||
MDDR_PHY_GATELVL_INIT_RATIO_4_CR,
|
||||
MDDR_PHY_LOCAL_ODT_CR,
|
||||
MDDR_PHY_INVERT_CLKOUT_CR,
|
||||
MDDR_PHY_RD_DQS_SLAVE_DELAY_1_CR,
|
||||
MDDR_PHY_RD_DQS_SLAVE_DELAY_2_CR,
|
||||
MDDR_PHY_RD_DQS_SLAVE_DELAY_3_CR,
|
||||
MDDR_PHY_RD_DQS_SLAVE_FORCE_CR,
|
||||
MDDR_PHY_RD_DQS_SLAVE_RATIO_1_CR,
|
||||
MDDR_PHY_RD_DQS_SLAVE_RATIO_2_CR,
|
||||
MDDR_PHY_RD_DQS_SLAVE_RATIO_3_CR,
|
||||
MDDR_PHY_RD_DQS_SLAVE_RATIO_4_CR,
|
||||
MDDR_PHY_WR_DQS_SLAVE_DELAY_1_CR,
|
||||
MDDR_PHY_WR_DQS_SLAVE_DELAY_2_CR,
|
||||
MDDR_PHY_WR_DQS_SLAVE_DELAY_3_CR,
|
||||
MDDR_PHY_WR_DQS_SLAVE_FORCE_CR,
|
||||
MDDR_PHY_WR_DQS_SLAVE_RATIO_1_CR,
|
||||
MDDR_PHY_WR_DQS_SLAVE_RATIO_2_CR,
|
||||
MDDR_PHY_WR_DQS_SLAVE_RATIO_3_CR,
|
||||
MDDR_PHY_WR_DQS_SLAVE_RATIO_4_CR,
|
||||
MDDR_PHY_WR_DATA_SLAVE_DELAY_1_CR,
|
||||
MDDR_PHY_WR_DATA_SLAVE_DELAY_2_CR,
|
||||
MDDR_PHY_WR_DATA_SLAVE_DELAY_3_CR,
|
||||
MDDR_PHY_WR_DATA_SLAVE_FORCE_CR,
|
||||
MDDR_PHY_WR_DATA_SLAVE_RATIO_1_CR,
|
||||
MDDR_PHY_WR_DATA_SLAVE_RATIO_2_CR,
|
||||
MDDR_PHY_WR_DATA_SLAVE_RATIO_3_CR,
|
||||
MDDR_PHY_WR_DATA_SLAVE_RATIO_4_CR,
|
||||
MDDR_PHY_WRLVL_INIT_MODE_CR,
|
||||
MDDR_PHY_WRLVL_INIT_RATIO_1_CR,
|
||||
MDDR_PHY_WRLVL_INIT_RATIO_2_CR,
|
||||
MDDR_PHY_WRLVL_INIT_RATIO_3_CR,
|
||||
MDDR_PHY_WRLVL_INIT_RATIO_4_CR,
|
||||
MDDR_PHY_WR_RD_RL_CR,
|
||||
MDDR_PHY_RDC_FIFO_RST_ERR_CNT_CLR_CR,
|
||||
MDDR_PHY_RDC_WE_TO_RE_DELAY_CR,
|
||||
MDDR_PHY_USE_FIXED_RE_CR,
|
||||
MDDR_PHY_USE_RANK0_DELAYS_CR,
|
||||
MDDR_PHY_USE_LVL_TRNG_LEVEL_CR,
|
||||
MDDR_PHY_DYN_CONFIG_CR,
|
||||
MDDR_PHY_RD_WR_GATE_LVL_CR,
|
||||
MDDR_PHY_DYN_RESET_CR
|
||||
},
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
* FIC-64 registers
|
||||
* These registers are 16-bit wide and 32-bit aligned.
|
||||
*/
|
||||
{
|
||||
MDDR_DDR_FIC_NB_ADDR_CR,
|
||||
MDDR_DDR_FIC_NBRWB_SIZE_CR,
|
||||
MDDR_DDR_FIC_WB_TIMEOUT_CR,
|
||||
MDDR_DDR_FIC_HPD_SW_RW_EN_CR,
|
||||
MDDR_DDR_FIC_HPD_SW_RW_INVAL_CR,
|
||||
MDDR_DDR_FIC_SW_WR_ERCLR_CR,
|
||||
MDDR_DDR_FIC_ERR_INT_ENABLE_CR,
|
||||
MDDR_DDR_FIC_NUM_AHB_MASTERS_CR,
|
||||
MDDR_DDR_FIC_LOCK_TIMEOUTVAL_1_CR,
|
||||
MDDR_DDR_FIC_LOCK_TIMEOUTVAL_2_CR,
|
||||
MDDR_DDR_FIC_LOCK_TIMEOUT_EN_CR
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/*==============================================================================
|
||||
* FDDR configuration
|
||||
*/
|
||||
#if MSS_SYS_FDDR_CONFIG_BY_CORTEX
|
||||
|
||||
#include "sys_config_fddr_define.h"
|
||||
|
||||
FDDR_TypeDef * const g_m2s_fddr_addr = (FDDR_TypeDef *)0x40021000;
|
||||
|
||||
const fddr_sysreg_t g_m2s_fddr_sysreg_subsys_config =
|
||||
{
|
||||
0x0001u, /* PLL_CONFIG_LOW_1 */
|
||||
0x0002u, /* PLL_CONFIG_LOW_2 */
|
||||
0x0003u, /* PLL_CONFIG_HIGH */
|
||||
0x0004u, /* FACC_CLK_EN */
|
||||
0x0005u, /* FACC_MUX_CONFIG */
|
||||
0x0006u, /* FACC_DIVISOR_RATIO */
|
||||
0x0007u, /* PLL_DELAY_LINE_SEL */
|
||||
0x0008u, /* SOFT_RESET */
|
||||
0x0009u, /* IO_CALIB */
|
||||
0x000Au, /* INTERRUPT_ENABLE */
|
||||
0x000Bu, /* AXI_AHB_MODE_SEL */
|
||||
0x000Cu /* PHY_SELF_REF_EN */
|
||||
};
|
||||
|
||||
const ddr_subsys_cfg_t g_m2s_fddr_subsys_config =
|
||||
{
|
||||
/*---------------------------------------------------------------------
|
||||
* DDR Controller registers.
|
||||
* All registers are 16-bit wide unless mentioned beside the definition.
|
||||
*/
|
||||
{
|
||||
FDDR_DDRC_DYN_SOFT_RESET_CR,
|
||||
FDDR_DDRC_RESERVED0,
|
||||
FDDR_DDRC_DYN_REFRESH_1_CR,
|
||||
FDDR_DDRC_DYN_REFRESH_2_CR,
|
||||
FDDR_DDRC_DYN_POWERDOWN_CR,
|
||||
FDDR_DDRC_DYN_DEBUG_CR,
|
||||
FDDR_DDRC_MODE_CR,
|
||||
FDDR_DDRC_ADDR_MAP_BANK_CR,
|
||||
FDDR_DDRC_ECC_DATA_MASK_CR,
|
||||
FDDR_DDRC_ADDR_MAP_COL_1_CR,
|
||||
FDDR_DDRC_ADDR_MAP_COL_2_CR,
|
||||
FDDR_DDRC_ADDR_MAP_ROW_1_CR,
|
||||
FDDR_DDRC_ADDR_MAP_ROW_2_CR,
|
||||
FDDR_DDRC_INIT_1_CR,
|
||||
FDDR_DDRC_CKE_RSTN_CYCLES_1_CR,
|
||||
FDDR_DDRC_CKE_RSTN_CYCLES_2_CR,
|
||||
FDDR_DDRC_INIT_MR_CR,
|
||||
FDDR_DDRC_INIT_EMR_CR,
|
||||
FDDR_DDRC_INIT_EMR2_CR,
|
||||
FDDR_DDRC_INIT_EMR3_CR,
|
||||
FDDR_DDRC_DRAM_BANK_TIMING_PARAM_CR,
|
||||
FDDR_DDRC_DRAM_RD_WR_LATENCY_CR,
|
||||
FDDR_DDRC_DRAM_RD_WR_PRE_CR,
|
||||
FDDR_DDRC_DRAM_MR_TIMING_PARAM_CR,
|
||||
FDDR_DDRC_DRAM_RAS_TIMING_CR,
|
||||
FDDR_DDRC_DRAM_RD_WR_TRNARND_TIME_CR,
|
||||
FDDR_DDRC_DRAM_T_PD_CR,
|
||||
FDDR_DDRC_DRAM_BANK_ACT_TIMING_CR,
|
||||
FDDR_DDRC_ODT_PARAM_1_CR,
|
||||
FDDR_DDRC_ODT_PARAM_2_CR,
|
||||
FDDR_DDRC_ADDR_MAP_COL_3_CR,
|
||||
FDDR_DDRC_MODE_REG_RD_WR_CR,
|
||||
FDDR_DDRC_MODE_REG_DATA_CR,
|
||||
FDDR_DDRC_PWR_SAVE_1_CR,
|
||||
FDDR_DDRC_PWR_SAVE_2_CR,
|
||||
FDDR_DDRC_ZQ_LONG_TIME_CR,
|
||||
FDDR_DDRC_ZQ_SHORT_TIME_CR,
|
||||
FDDR_DDRC_ZQ_SHORT_INT_REFRESH_MARGIN_1_CR,
|
||||
FDDR_DDRC_ZQ_SHORT_INT_REFRESH_MARGIN_2_CR,
|
||||
FDDR_DDRC_PERF_PARAM_1_CR,
|
||||
FDDR_DDRC_HPR_QUEUE_PARAM_1_CR,
|
||||
FDDR_DDRC_HPR_QUEUE_PARAM_2_CR,
|
||||
FDDR_DDRC_LPR_QUEUE_PARAM_1_CR,
|
||||
FDDR_DDRC_LPR_QUEUE_PARAM_2_CR,
|
||||
FDDR_DDRC_WR_QUEUE_PARAM_CR,
|
||||
FDDR_DDRC_PERF_PARAM_2_CR,
|
||||
FDDR_DDRC_PERF_PARAM_3_CR,
|
||||
FDDR_DDRC_DFI_RDDATA_EN_CR,
|
||||
FDDR_DDRC_DFI_MIN_CTRLUPD_TIMING_CR,
|
||||
FDDR_DDRC_DFI_MAX_CTRLUPD_TIMING_CR,
|
||||
FDDR_DDRC_DFI_WR_LVL_CONTROL_1_CR,
|
||||
FDDR_DDRC_DFI_WR_LVL_CONTROL_2_CR,
|
||||
FDDR_DDRC_DFI_RD_LVL_CONTROL_1_CR,
|
||||
FDDR_DDRC_DFI_RD_LVL_CONTROL_2_CR,
|
||||
FDDR_DDRC_DFI_CTRLUPD_TIME_INTERVAL_CR,
|
||||
FDDR_DDRC_DYN_SOFT_RESET_ALIAS_CR,
|
||||
FDDR_DDRC_AXI_FABRIC_PRI_ID_CR
|
||||
},
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
* DDR PHY configuration registers
|
||||
*/
|
||||
{
|
||||
FDDR_PHY_LOOPBACK_TEST_CR,
|
||||
FDDR_PHY_BOARD_LOOPBACK_CR,
|
||||
FDDR_PHY_CTRL_SLAVE_RATIO_CR,
|
||||
FDDR_PHY_CTRL_SLAVE_FORCE_CR,
|
||||
FDDR_PHY_CTRL_SLAVE_DELAY_CR,
|
||||
FDDR_PHY_DATA_SLICE_IN_USE_CR,
|
||||
FDDR_PHY_LVL_NUM_OF_DQ0_CR,
|
||||
FDDR_PHY_DQ_OFFSET_1_CR,
|
||||
FDDR_PHY_DQ_OFFSET_2_CR,
|
||||
FDDR_PHY_DQ_OFFSET_3_CR,
|
||||
FDDR_PHY_DIS_CALIB_RST_CR,
|
||||
FDDR_PHY_DLL_LOCK_DIFF_CR,
|
||||
FDDR_PHY_FIFO_WE_IN_DELAY_1_CR,
|
||||
FDDR_PHY_FIFO_WE_IN_DELAY_2_CR,
|
||||
FDDR_PHY_FIFO_WE_IN_DELAY_3_CR,
|
||||
FDDR_PHY_FIFO_WE_IN_FORCE_CR,
|
||||
FDDR_PHY_FIFO_WE_SLAVE_RATIO_1_CR,
|
||||
FDDR_PHY_FIFO_WE_SLAVE_RATIO_2_CR,
|
||||
FDDR_PHY_FIFO_WE_SLAVE_RATIO_3_CR,
|
||||
FDDR_PHY_FIFO_WE_SLAVE_RATIO_4_CR,
|
||||
FDDR_PHY_GATELVL_INIT_MODE_CR,
|
||||
FDDR_PHY_GATELVL_INIT_RATIO_1_CR,
|
||||
FDDR_PHY_GATELVL_INIT_RATIO_2_CR,
|
||||
FDDR_PHY_GATELVL_INIT_RATIO_3_CR,
|
||||
FDDR_PHY_GATELVL_INIT_RATIO_4_CR,
|
||||
FDDR_PHY_LOCAL_ODT_CR,
|
||||
FDDR_PHY_INVERT_CLKOUT_CR,
|
||||
FDDR_PHY_RD_DQS_SLAVE_DELAY_1_CR,
|
||||
FDDR_PHY_RD_DQS_SLAVE_DELAY_2_CR,
|
||||
FDDR_PHY_RD_DQS_SLAVE_DELAY_3_CR,
|
||||
FDDR_PHY_RD_DQS_SLAVE_FORCE_CR,
|
||||
FDDR_PHY_RD_DQS_SLAVE_RATIO_1_CR,
|
||||
FDDR_PHY_RD_DQS_SLAVE_RATIO_2_CR,
|
||||
FDDR_PHY_RD_DQS_SLAVE_RATIO_3_CR,
|
||||
FDDR_PHY_RD_DQS_SLAVE_RATIO_4_CR,
|
||||
FDDR_PHY_WR_DQS_SLAVE_DELAY_1_CR,
|
||||
FDDR_PHY_WR_DQS_SLAVE_DELAY_2_CR,
|
||||
FDDR_PHY_WR_DQS_SLAVE_DELAY_3_CR,
|
||||
FDDR_PHY_WR_DQS_SLAVE_FORCE_CR,
|
||||
FDDR_PHY_WR_DQS_SLAVE_RATIO_1_CR,
|
||||
FDDR_PHY_WR_DQS_SLAVE_RATIO_2_CR,
|
||||
FDDR_PHY_WR_DQS_SLAVE_RATIO_3_CR,
|
||||
FDDR_PHY_WR_DQS_SLAVE_RATIO_4_CR,
|
||||
FDDR_PHY_WR_DATA_SLAVE_DELAY_1_CR,
|
||||
FDDR_PHY_WR_DATA_SLAVE_DELAY_2_CR,
|
||||
FDDR_PHY_WR_DATA_SLAVE_DELAY_3_CR,
|
||||
FDDR_PHY_WR_DATA_SLAVE_FORCE_CR,
|
||||
FDDR_PHY_WR_DATA_SLAVE_RATIO_1_CR,
|
||||
FDDR_PHY_WR_DATA_SLAVE_RATIO_2_CR,
|
||||
FDDR_PHY_WR_DATA_SLAVE_RATIO_3_CR,
|
||||
FDDR_PHY_WR_DATA_SLAVE_RATIO_4_CR,
|
||||
FDDR_PHY_WRLVL_INIT_MODE_CR,
|
||||
FDDR_PHY_WRLVL_INIT_RATIO_1_CR,
|
||||
FDDR_PHY_WRLVL_INIT_RATIO_2_CR,
|
||||
FDDR_PHY_WRLVL_INIT_RATIO_3_CR,
|
||||
FDDR_PHY_WRLVL_INIT_RATIO_4_CR,
|
||||
FDDR_PHY_WR_RD_RL_CR,
|
||||
FDDR_PHY_RDC_FIFO_RST_ERR_CNT_CLR_CR,
|
||||
FDDR_PHY_RDC_WE_TO_RE_DELAY_CR,
|
||||
FDDR_PHY_USE_FIXED_RE_CR,
|
||||
FDDR_PHY_USE_RANK0_DELAYS_CR,
|
||||
FDDR_PHY_USE_LVL_TRNG_LEVEL_CR,
|
||||
FDDR_PHY_DYN_CONFIG_CR,
|
||||
FDDR_PHY_RD_WR_GATE_LVL_CR,
|
||||
FDDR_PHY_DYN_RESET_CR,
|
||||
},
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
* FIC-64 registers
|
||||
* These registers are 16-bit wide and 32-bit aligned.
|
||||
*/
|
||||
{
|
||||
FDDR_DDR_FIC_NB_ADDR_CR,
|
||||
FDDR_DDR_FIC_NBRWB_SIZE_CR,
|
||||
FDDR_DDR_FIC_WB_TIMEOUT_CR,
|
||||
FDDR_DDR_FIC_HPD_SW_RW_EN_CR,
|
||||
FDDR_DDR_FIC_HPD_SW_RW_INVAL_CR,
|
||||
FDDR_DDR_FIC_SW_WR_ERCLR_CR,
|
||||
FDDR_DDR_FIC_ERR_INT_ENABLE_CR,
|
||||
FDDR_DDR_FIC_NUM_AHB_MASTERS_CR,
|
||||
FDDR_DDR_FIC_LOCK_TIMEOUTVAL_1_CR,
|
||||
FDDR_DDR_FIC_LOCK_TIMEOUTVAL_2_CR,
|
||||
FDDR_DDR_FIC_LOCK_TIMEOUT_EN_CR
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
/*******************************************************************************
|
||||
* (c) Copyright 2012 Microsemi SoC Products Group. All rights reserved.
|
||||
*
|
||||
* Smartfusion2 system configuration. This file is automatically generated
|
||||
* by the Libero tools.
|
||||
*
|
||||
*/
|
||||
#ifndef MSS_SYSTEM_CONFIGURATION
|
||||
#define MSS_SYSTEM_CONFIGURATION
|
||||
|
||||
/*==============================================================================
|
||||
* Clock configuration
|
||||
*/
|
||||
#include "sys_config_mss_clocks.h"
|
||||
|
||||
/*==============================================================================
|
||||
* Memory remapping configuration
|
||||
*/
|
||||
/* TBD */
|
||||
|
||||
/*==============================================================================
|
||||
* FACC_INIT (Cortex-M3 runs the FACC INIT procedure)
|
||||
* Only set to 1 for design targeting the M2S050T_ES device
|
||||
*/
|
||||
#define MSS_SYS_FACC_INIT_BY_CORTEX 0
|
||||
|
||||
/*==============================================================================
|
||||
* MDDR configuration
|
||||
*/
|
||||
#define MSS_SYS_MDDR_CONFIG_BY_CORTEX 0
|
||||
|
||||
/*==============================================================================
|
||||
* FDDR configuration
|
||||
*/
|
||||
#define MSS_SYS_FDDR_CONFIG_BY_CORTEX 0
|
||||
|
||||
/*==============================================================================
|
||||
* SERDES Interface configuration
|
||||
*/
|
||||
#define MSS_SYS_SERDES_0_CONFIG_BY_CORTEX 0
|
||||
#if MSS_SYS_SERDES_0_CONFIG_BY_CORTEX
|
||||
#include "sys_config_SERDESIF_0.h"
|
||||
#endif
|
||||
|
||||
#define MSS_SYS_SERDES_1_CONFIG_BY_CORTEX 0
|
||||
#if MSS_SYS_SERDES_1_CONFIG_BY_CORTEX
|
||||
#include "sys_config_SERDESIF_1.h"
|
||||
#endif
|
||||
|
||||
#define MSS_SYS_SERDES_2_CONFIG_BY_CORTEX 0
|
||||
#if MSS_SYS_SERDES_2_CONFIG_BY_CORTEX
|
||||
#include "sys_config_SERDESIF_2.h"
|
||||
#endif
|
||||
|
||||
#define MSS_SYS_SERDES_3_CONFIG_BY_CORTEX 0
|
||||
#if MSS_SYS_SERDES_3_CONFIG_BY_CORTEX
|
||||
#include "sys_config_SERDESIF_3.h"
|
||||
#endif
|
||||
|
||||
/*==============================================================================
|
||||
* Cache configuration
|
||||
*/
|
||||
#define MSS_SYS_CACHE_CONFIG_BY_CORTEX 0
|
||||
|
||||
#endif /* MSS_SYSTEM_CONFIGURATION */
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
/*=============================================================*/
|
||||
/* Created by Microsemi SmartDesign Fri May 22 15:04:18 2020 */
|
||||
/* */
|
||||
/* Warning: Do not modify this file, it may lead to unexpected */
|
||||
/* functional failures in your design. */
|
||||
/* */
|
||||
/*=============================================================*/
|
||||
|
||||
#ifndef SYS_CONFIG_MSS_CLOCKS
|
||||
#define SYS_CONFIG_MSS_CLOCKS
|
||||
|
||||
#define MSS_SYS_M3_CLK_FREQ 100000000u
|
||||
#define MSS_SYS_MDDR_CLK_FREQ 100000000u
|
||||
#define MSS_SYS_APB_0_CLK_FREQ 100000000u
|
||||
#define MSS_SYS_APB_1_CLK_FREQ 100000000u
|
||||
#define MSS_SYS_APB_2_CLK_FREQ 25000000u
|
||||
#define MSS_SYS_FIC_0_CLK_FREQ 100000000u
|
||||
#define MSS_SYS_FIC_1_CLK_FREQ 100000000u
|
||||
#define MSS_SYS_FIC64_CLK_FREQ 100000000u
|
||||
|
||||
#endif /* SYS_CONFIG_MSS_CLOCKS */
|
|
@ -0,0 +1,987 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_opt.xsd">
|
||||
|
||||
<SchemaVersion>1.0</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Extensions>
|
||||
<cExt>*.c</cExt>
|
||||
<aExt>*.s*; *.src; *.a*</aExt>
|
||||
<oExt>*.obj</oExt>
|
||||
<lExt>*.lib</lExt>
|
||||
<tExt>*.txt; *.h; *.inc</tExt>
|
||||
<pExt>*.plm</pExt>
|
||||
<CppX>*.cpp</CppX>
|
||||
</Extensions>
|
||||
|
||||
<DaveTm>
|
||||
<dwLowDateTime>0</dwLowDateTime>
|
||||
<dwHighDateTime>0</dwHighDateTime>
|
||||
</DaveTm>
|
||||
|
||||
<Target>
|
||||
<TargetName>project</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
<CLKADS>20000000</CLKADS>
|
||||
<OPTTT>
|
||||
<gFlags>1</gFlags>
|
||||
<BeepAtEnd>1</BeepAtEnd>
|
||||
<RunSim>1</RunSim>
|
||||
<RunTarget>0</RunTarget>
|
||||
</OPTTT>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<FlashByte>65535</FlashByte>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
</OPTHX>
|
||||
<OPTLEX>
|
||||
<PageWidth>79</PageWidth>
|
||||
<PageLength>66</PageLength>
|
||||
<TabStop>8</TabStop>
|
||||
<ListingPath>.\obj\</ListingPath>
|
||||
</OPTLEX>
|
||||
<ListingPage>
|
||||
<CreateCListing>1</CreateCListing>
|
||||
<CreateAListing>1</CreateAListing>
|
||||
<CreateLListing>1</CreateLListing>
|
||||
<CreateIListing>0</CreateIListing>
|
||||
<AsmCond>1</AsmCond>
|
||||
<AsmSymb>1</AsmSymb>
|
||||
<AsmXref>0</AsmXref>
|
||||
<CCond>1</CCond>
|
||||
<CCode>0</CCode>
|
||||
<CListInc>0</CListInc>
|
||||
<CSymb>0</CSymb>
|
||||
<LinkerCodeListing>0</LinkerCodeListing>
|
||||
</ListingPage>
|
||||
<OPTXL>
|
||||
<LMap>1</LMap>
|
||||
<LComments>1</LComments>
|
||||
<LGenerateSymbols>1</LGenerateSymbols>
|
||||
<LLibSym>1</LLibSym>
|
||||
<LLines>1</LLines>
|
||||
<LLocSym>1</LLocSym>
|
||||
<LPubSym>1</LPubSym>
|
||||
<LXref>0</LXref>
|
||||
<LExpSel>0</LExpSel>
|
||||
</OPTXL>
|
||||
<OPTFL>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>255</CpuCode>
|
||||
<Books>
|
||||
<Book>
|
||||
<Number>0</Number>
|
||||
<Title>Datasheet</Title>
|
||||
<Path>DATASHTS\Actel\M2Sxxx\SmartFusion2_DS.pdf</Path>
|
||||
</Book>
|
||||
<Book>
|
||||
<Number>1</Number>
|
||||
<Title>Technical Reference Manual</Title>
|
||||
<Path>datashts\arm\cortex_m3\r2p1\DDI0337I_CORTEXM3_R2P1_TRM.PDF</Path>
|
||||
</Book>
|
||||
<Book>
|
||||
<Number>2</Number>
|
||||
<Title>Generic User Guide</Title>
|
||||
<Path>datashts\arm\cortex_m3\r2p1\DUI0552A_CORTEX_M3_DGUG.PDF</Path>
|
||||
</Book>
|
||||
</Books>
|
||||
<DebugOpt>
|
||||
<uSim>0</uSim>
|
||||
<uTrg>1</uTrg>
|
||||
<sLdApp>1</sLdApp>
|
||||
<sGomain>1</sGomain>
|
||||
<sRbreak>1</sRbreak>
|
||||
<sRwatch>1</sRwatch>
|
||||
<sRmem>1</sRmem>
|
||||
<sRfunc>1</sRfunc>
|
||||
<sRbox>1</sRbox>
|
||||
<tLdApp>1</tLdApp>
|
||||
<tGomain>1</tGomain>
|
||||
<tRbreak>1</tRbreak>
|
||||
<tRwatch>1</tRwatch>
|
||||
<tRmem>1</tRmem>
|
||||
<tRfunc>0</tRfunc>
|
||||
<tRbox>1</tRbox>
|
||||
<tRtrace>1</tRtrace>
|
||||
<sRSysVw>1</sRSysVw>
|
||||
<tRSysVw>1</tRSysVw>
|
||||
<tPdscDbg>0</tPdscDbg>
|
||||
<sRunDeb>0</sRunDeb>
|
||||
<sLrtime>0</sLrtime>
|
||||
<nTsel>6</nTsel>
|
||||
<sDll></sDll>
|
||||
<sDllPa></sDllPa>
|
||||
<sDlgDll></sDlgDll>
|
||||
<sDlgPa></sDlgPa>
|
||||
<sIfile></sIfile>
|
||||
<tDll></tDll>
|
||||
<tDllPa></tDllPa>
|
||||
<tDlgDll></tDlgDll>
|
||||
<tDlgPa></tDlgPa>
|
||||
<tIfile></tIfile>
|
||||
<pMon>Segger\JL2CM3.dll</pMon>
|
||||
</DebugOpt>
|
||||
<TargetDriverDllRegistry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>JL2CM3</Key>
|
||||
<Name>-U10000387 -O207 -S8 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC800 -FN1 -FF0M2Sxxx_256 -FS00 -FL040000</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>UL2CM3</Key>
|
||||
<Name>UL2CM3(-O207 -O207 -S9 -C0 -FO7 -FN1 -FC800 -FD20000000 -FF0M2Sxxx_256 -FL040000 -FS00</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
<DebugFlag>
|
||||
<trace>0</trace>
|
||||
<periodic>1</periodic>
|
||||
<aLwin>0</aLwin>
|
||||
<aCover>0</aCover>
|
||||
<aSer1>0</aSer1>
|
||||
<aSer2>0</aSer2>
|
||||
<aPa>0</aPa>
|
||||
<viewmode>0</viewmode>
|
||||
<vrSel>0</vrSel>
|
||||
<aSym>0</aSym>
|
||||
<aTbox>0</aTbox>
|
||||
<AscS1>0</AscS1>
|
||||
<AscS2>0</AscS2>
|
||||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>0</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
<StkLoc>0</StkLoc>
|
||||
<TrcWin>0</TrcWin>
|
||||
<newCpu>0</newCpu>
|
||||
<uProt>0</uProt>
|
||||
</DebugFlag>
|
||||
<LintExecutable></LintExecutable>
|
||||
<LintConfigFile></LintConfigFile>
|
||||
</TargetOption>
|
||||
</Target>
|
||||
|
||||
<Group>
|
||||
<GroupName>Kernel</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>1</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\clock.c</PathWithFileName>
|
||||
<FilenameWithoutPath>clock.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>2</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\components.c</PathWithFileName>
|
||||
<FilenameWithoutPath>components.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>3</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\device.c</PathWithFileName>
|
||||
<FilenameWithoutPath>device.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>4</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\idle.c</PathWithFileName>
|
||||
<FilenameWithoutPath>idle.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>5</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\ipc.c</PathWithFileName>
|
||||
<FilenameWithoutPath>ipc.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>6</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\irq.c</PathWithFileName>
|
||||
<FilenameWithoutPath>irq.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>7</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\kservice.c</PathWithFileName>
|
||||
<FilenameWithoutPath>kservice.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>8</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\mem.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mem.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>9</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\mempool.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mempool.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>10</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\object.c</PathWithFileName>
|
||||
<FilenameWithoutPath>object.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>11</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\scheduler.c</PathWithFileName>
|
||||
<FilenameWithoutPath>scheduler.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>12</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\signal.c</PathWithFileName>
|
||||
<FilenameWithoutPath>signal.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>13</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\thread.c</PathWithFileName>
|
||||
<FilenameWithoutPath>thread.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>14</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\timer.c</PathWithFileName>
|
||||
<FilenameWithoutPath>timer.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Applications</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>15</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>14</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>1</TopLine>
|
||||
<CurrentLine>16</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>applications\main.c</PathWithFileName>
|
||||
<FilenameWithoutPath>main.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>16</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>board\board.c</PathWithFileName>
|
||||
<FilenameWithoutPath>board.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>17</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>board\config.c</PathWithFileName>
|
||||
<FilenameWithoutPath>config.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>CMSIS</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>18</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>CMSIS\core_cm3.c</PathWithFileName>
|
||||
<FilenameWithoutPath>core_cm3.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>19</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>CMSIS\system_m2sxxx.c</PathWithFileName>
|
||||
<FilenameWithoutPath>system_m2sxxx.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>20</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>CMSIS\startup_arm\startup_m2sxxx.s</PathWithFileName>
|
||||
<FilenameWithoutPath>startup_m2sxxx.s</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Drivers</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>4</GroupNumber>
|
||||
<FileNumber>21</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>drivers\drv_uart.c</PathWithFileName>
|
||||
<FilenameWithoutPath>drv_uart.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>4</GroupNumber>
|
||||
<FileNumber>22</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>drivers\drv_gpio.c</PathWithFileName>
|
||||
<FilenameWithoutPath>drv_gpio.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Libraries</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>23</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>libraries\sys_config\sys_config.c</PathWithFileName>
|
||||
<FilenameWithoutPath>sys_config.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>24</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>libraries\mss_gpio\mss_gpio.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mss_gpio.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>25</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>libraries\mss_uart\mss_uart.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mss_uart.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>cpu</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>26</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\common\backtrace.c</PathWithFileName>
|
||||
<FilenameWithoutPath>backtrace.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>27</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\common\div0.c</PathWithFileName>
|
||||
<FilenameWithoutPath>div0.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>28</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\common\showmem.c</PathWithFileName>
|
||||
<FilenameWithoutPath>showmem.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>29</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\cortex-m3\cpuport.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cpuport.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>30</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\cortex-m3\context_rvds.S</PathWithFileName>
|
||||
<FilenameWithoutPath>context_rvds.S</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>DeviceDrivers</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>31</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\misc\pin.c</PathWithFileName>
|
||||
<FilenameWithoutPath>pin.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>32</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\serial\serial.c</PathWithFileName>
|
||||
<FilenameWithoutPath>serial.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>33</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\completion.c</PathWithFileName>
|
||||
<FilenameWithoutPath>completion.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>34</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\dataqueue.c</PathWithFileName>
|
||||
<FilenameWithoutPath>dataqueue.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>35</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\pipe.c</PathWithFileName>
|
||||
<FilenameWithoutPath>pipe.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>36</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\ringblk_buf.c</PathWithFileName>
|
||||
<FilenameWithoutPath>ringblk_buf.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>37</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\ringbuffer.c</PathWithFileName>
|
||||
<FilenameWithoutPath>ringbuffer.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>38</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\waitqueue.c</PathWithFileName>
|
||||
<FilenameWithoutPath>waitqueue.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>39</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\workqueue.c</PathWithFileName>
|
||||
<FilenameWithoutPath>workqueue.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>finsh</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>40</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\finsh\shell.c</PathWithFileName>
|
||||
<FilenameWithoutPath>shell.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>41</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\finsh\cmd.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cmd.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>42</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\finsh\msh.c</PathWithFileName>
|
||||
<FilenameWithoutPath>msh.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>libc</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>43</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\libc\compilers\armlibc\libc.c</PathWithFileName>
|
||||
<FilenameWithoutPath>libc.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>44</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\libc\compilers\armlibc\mem_std.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mem_std.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>45</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\libc\compilers\armlibc\stubs.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stubs.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>46</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<ColumnNumber>0</ColumnNumber>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<TopLine>0</TopLine>
|
||||
<CurrentLine>0</CurrentLine>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\libc\compilers\common\time.c</PathWithFileName>
|
||||
<FilenameWithoutPath>time.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
</ProjectOpt>
|
|
@ -0,0 +1,801 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_optx.xsd">
|
||||
|
||||
<SchemaVersion>1.0</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Extensions>
|
||||
<cExt>*.c</cExt>
|
||||
<aExt>*.s*; *.src; *.a*</aExt>
|
||||
<oExt>*.obj; *.o</oExt>
|
||||
<lExt>*.lib</lExt>
|
||||
<tExt>*.txt; *.h; *.inc</tExt>
|
||||
<pExt>*.plm</pExt>
|
||||
<CppX>*.cpp</CppX>
|
||||
<nMigrate>0</nMigrate>
|
||||
</Extensions>
|
||||
|
||||
<DaveTm>
|
||||
<dwLowDateTime>0</dwLowDateTime>
|
||||
<dwHighDateTime>0</dwHighDateTime>
|
||||
</DaveTm>
|
||||
|
||||
<Target>
|
||||
<TargetName>project</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
<CLKADS>12000000</CLKADS>
|
||||
<OPTTT>
|
||||
<gFlags>1</gFlags>
|
||||
<BeepAtEnd>1</BeepAtEnd>
|
||||
<RunSim>0</RunSim>
|
||||
<RunTarget>1</RunTarget>
|
||||
<RunAbUc>0</RunAbUc>
|
||||
</OPTTT>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<FlashByte>65535</FlashByte>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
</OPTHX>
|
||||
<OPTLEX>
|
||||
<PageWidth>79</PageWidth>
|
||||
<PageLength>66</PageLength>
|
||||
<TabStop>8</TabStop>
|
||||
<ListingPath>.\obj\</ListingPath>
|
||||
</OPTLEX>
|
||||
<ListingPage>
|
||||
<CreateCListing>1</CreateCListing>
|
||||
<CreateAListing>1</CreateAListing>
|
||||
<CreateLListing>1</CreateLListing>
|
||||
<CreateIListing>0</CreateIListing>
|
||||
<AsmCond>1</AsmCond>
|
||||
<AsmSymb>1</AsmSymb>
|
||||
<AsmXref>0</AsmXref>
|
||||
<CCond>1</CCond>
|
||||
<CCode>0</CCode>
|
||||
<CListInc>0</CListInc>
|
||||
<CSymb>0</CSymb>
|
||||
<LinkerCodeListing>0</LinkerCodeListing>
|
||||
</ListingPage>
|
||||
<OPTXL>
|
||||
<LMap>1</LMap>
|
||||
<LComments>1</LComments>
|
||||
<LGenerateSymbols>1</LGenerateSymbols>
|
||||
<LLibSym>1</LLibSym>
|
||||
<LLines>1</LLines>
|
||||
<LLocSym>1</LLocSym>
|
||||
<LPubSym>1</LPubSym>
|
||||
<LXref>0</LXref>
|
||||
<LExpSel>0</LExpSel>
|
||||
</OPTXL>
|
||||
<OPTFL>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>255</CpuCode>
|
||||
<DebugOpt>
|
||||
<uSim>0</uSim>
|
||||
<uTrg>1</uTrg>
|
||||
<sLdApp>1</sLdApp>
|
||||
<sGomain>1</sGomain>
|
||||
<sRbreak>1</sRbreak>
|
||||
<sRwatch>1</sRwatch>
|
||||
<sRmem>1</sRmem>
|
||||
<sRfunc>1</sRfunc>
|
||||
<sRbox>1</sRbox>
|
||||
<tLdApp>1</tLdApp>
|
||||
<tGomain>1</tGomain>
|
||||
<tRbreak>1</tRbreak>
|
||||
<tRwatch>1</tRwatch>
|
||||
<tRmem>1</tRmem>
|
||||
<tRfunc>0</tRfunc>
|
||||
<tRbox>1</tRbox>
|
||||
<tRtrace>1</tRtrace>
|
||||
<sRSysVw>1</sRSysVw>
|
||||
<tRSysVw>1</tRSysVw>
|
||||
<sRunDeb>0</sRunDeb>
|
||||
<sLrtime>0</sLrtime>
|
||||
<bEvRecOn>1</bEvRecOn>
|
||||
<bSchkAxf>0</bSchkAxf>
|
||||
<bTchkAxf>0</bTchkAxf>
|
||||
<nTsel>4</nTsel>
|
||||
<sDll></sDll>
|
||||
<sDllPa></sDllPa>
|
||||
<sDlgDll></sDlgDll>
|
||||
<sDlgPa></sDlgPa>
|
||||
<sIfile></sIfile>
|
||||
<tDll></tDll>
|
||||
<tDllPa></tDllPa>
|
||||
<tDlgDll></tDlgDll>
|
||||
<tDlgPa></tDlgPa>
|
||||
<tIfile></tIfile>
|
||||
<pMon>Segger\JL2CM3.dll</pMon>
|
||||
</DebugOpt>
|
||||
<TargetDriverDllRegistry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>JL2CM3</Key>
|
||||
<Name>-U10000387 -O78 -S8 -ZTIFSpeedSel50000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC1000 -FN1 -FF0M2Sxxx_256.FLM -FS00 -FL040000 -FP0($$Device:M2S010$Flash\M2Sxxx_256.FLM)</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>UL2CM3</Key>
|
||||
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0M2Sxxx_256 -FS00 -FL040000 -FP0($$Device:M2S010$Flash\M2Sxxx_256.FLM))</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
<DebugFlag>
|
||||
<trace>0</trace>
|
||||
<periodic>1</periodic>
|
||||
<aLwin>0</aLwin>
|
||||
<aCover>0</aCover>
|
||||
<aSer1>0</aSer1>
|
||||
<aSer2>0</aSer2>
|
||||
<aPa>0</aPa>
|
||||
<viewmode>0</viewmode>
|
||||
<vrSel>0</vrSel>
|
||||
<aSym>0</aSym>
|
||||
<aTbox>0</aTbox>
|
||||
<AscS1>0</AscS1>
|
||||
<AscS2>0</AscS2>
|
||||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>0</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
<StkLoc>0</StkLoc>
|
||||
<TrcWin>0</TrcWin>
|
||||
<newCpu>0</newCpu>
|
||||
<uProt>0</uProt>
|
||||
</DebugFlag>
|
||||
<LintExecutable></LintExecutable>
|
||||
<LintConfigFile></LintConfigFile>
|
||||
<bLintAuto>0</bLintAuto>
|
||||
<bAutoGenD>0</bAutoGenD>
|
||||
<LntExFlags>0</LntExFlags>
|
||||
<pMisraName></pMisraName>
|
||||
<pszMrule></pszMrule>
|
||||
<pSingCmds></pSingCmds>
|
||||
<pMultCmds></pMultCmds>
|
||||
<pMisraNamep></pMisraNamep>
|
||||
<pszMrulep></pszMrulep>
|
||||
<pSingCmdsp></pSingCmdsp>
|
||||
<pMultCmdsp></pMultCmdsp>
|
||||
</TargetOption>
|
||||
</Target>
|
||||
|
||||
<Group>
|
||||
<GroupName>Kernel</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>1</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\clock.c</PathWithFileName>
|
||||
<FilenameWithoutPath>clock.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>2</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\components.c</PathWithFileName>
|
||||
<FilenameWithoutPath>components.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>3</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\device.c</PathWithFileName>
|
||||
<FilenameWithoutPath>device.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>4</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\idle.c</PathWithFileName>
|
||||
<FilenameWithoutPath>idle.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>5</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\ipc.c</PathWithFileName>
|
||||
<FilenameWithoutPath>ipc.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>6</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\irq.c</PathWithFileName>
|
||||
<FilenameWithoutPath>irq.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>7</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\kservice.c</PathWithFileName>
|
||||
<FilenameWithoutPath>kservice.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>8</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\mem.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mem.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>9</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\mempool.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mempool.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>10</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\object.c</PathWithFileName>
|
||||
<FilenameWithoutPath>object.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>11</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\scheduler.c</PathWithFileName>
|
||||
<FilenameWithoutPath>scheduler.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>12</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\signal.c</PathWithFileName>
|
||||
<FilenameWithoutPath>signal.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>13</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\thread.c</PathWithFileName>
|
||||
<FilenameWithoutPath>thread.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>14</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\src\timer.c</PathWithFileName>
|
||||
<FilenameWithoutPath>timer.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Applications</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>15</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>applications\main.c</PathWithFileName>
|
||||
<FilenameWithoutPath>main.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>16</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>board\board.c</PathWithFileName>
|
||||
<FilenameWithoutPath>board.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>17</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>board\config.c</PathWithFileName>
|
||||
<FilenameWithoutPath>config.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>CMSIS</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>18</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>CMSIS\core_cm3.c</PathWithFileName>
|
||||
<FilenameWithoutPath>core_cm3.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>19</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>CMSIS\system_m2sxxx.c</PathWithFileName>
|
||||
<FilenameWithoutPath>system_m2sxxx.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>20</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>CMSIS\startup_arm\startup_m2sxxx.s</PathWithFileName>
|
||||
<FilenameWithoutPath>startup_m2sxxx.s</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Drivers</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>4</GroupNumber>
|
||||
<FileNumber>21</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>drivers\drv_uart.c</PathWithFileName>
|
||||
<FilenameWithoutPath>drv_uart.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>4</GroupNumber>
|
||||
<FileNumber>22</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>drivers\drv_gpio.c</PathWithFileName>
|
||||
<FilenameWithoutPath>drv_gpio.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Libraries</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>23</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>libraries\sys_config\sys_config.c</PathWithFileName>
|
||||
<FilenameWithoutPath>sys_config.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>24</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>libraries\mss_gpio\mss_gpio.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mss_gpio.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>25</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>libraries\mss_uart\mss_uart.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mss_uart.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>cpu</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>26</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\common\backtrace.c</PathWithFileName>
|
||||
<FilenameWithoutPath>backtrace.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>27</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\common\div0.c</PathWithFileName>
|
||||
<FilenameWithoutPath>div0.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>28</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\common\showmem.c</PathWithFileName>
|
||||
<FilenameWithoutPath>showmem.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>29</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\cortex-m3\cpuport.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cpuport.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>30</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\libcpu\arm\cortex-m3\context_rvds.S</PathWithFileName>
|
||||
<FilenameWithoutPath>context_rvds.S</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>DeviceDrivers</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>31</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\misc\pin.c</PathWithFileName>
|
||||
<FilenameWithoutPath>pin.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>32</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\serial\serial.c</PathWithFileName>
|
||||
<FilenameWithoutPath>serial.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>33</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\completion.c</PathWithFileName>
|
||||
<FilenameWithoutPath>completion.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>34</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\dataqueue.c</PathWithFileName>
|
||||
<FilenameWithoutPath>dataqueue.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>35</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\pipe.c</PathWithFileName>
|
||||
<FilenameWithoutPath>pipe.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>36</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\ringblk_buf.c</PathWithFileName>
|
||||
<FilenameWithoutPath>ringblk_buf.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>37</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\ringbuffer.c</PathWithFileName>
|
||||
<FilenameWithoutPath>ringbuffer.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>38</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\waitqueue.c</PathWithFileName>
|
||||
<FilenameWithoutPath>waitqueue.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>39</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\drivers\src\workqueue.c</PathWithFileName>
|
||||
<FilenameWithoutPath>workqueue.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>finsh</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>40</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\finsh\shell.c</PathWithFileName>
|
||||
<FilenameWithoutPath>shell.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>41</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\finsh\cmd.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cmd.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>42</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\finsh\msh.c</PathWithFileName>
|
||||
<FilenameWithoutPath>msh.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>libc</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>43</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\libc\compilers\armlibc\libc.c</PathWithFileName>
|
||||
<FilenameWithoutPath>libc.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>44</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\libc\compilers\armlibc\mem_std.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mem_std.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>45</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\libc\compilers\armlibc\stubs.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stubs.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>46</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\components\libc\compilers\common\time.c</PathWithFileName>
|
||||
<FilenameWithoutPath>time.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
</ProjectOpt>
|
|
@ -0,0 +1,684 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_proj.xsd">
|
||||
|
||||
<SchemaVersion>1.1</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Targets>
|
||||
<Target>
|
||||
<TargetName>project</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
<Device>M2S010</Device>
|
||||
<Vendor>Microsemi</Vendor>
|
||||
<Cpu>IRAM(0x20000000-0x2000FFFF) IROM(0x0-0x3FFFF) CLOCK(20000000) CPUTYPE("Cortex-M3")</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
<StartupFile></StartupFile>
|
||||
<FlashDriverDll>UL2CM3(-O207 -S9 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0M2Sxxx_256 -FS00 -FL040000)</FlashDriverDll>
|
||||
<DeviceId>6800</DeviceId>
|
||||
<RegisterFile></RegisterFile>
|
||||
<MemoryEnv></MemoryEnv>
|
||||
<Cmp></Cmp>
|
||||
<Asm></Asm>
|
||||
<Linker></Linker>
|
||||
<OHString></OHString>
|
||||
<InfinionOptionDll></InfinionOptionDll>
|
||||
<SLE66CMisc></SLE66CMisc>
|
||||
<SLE66AMisc></SLE66AMisc>
|
||||
<SLE66LinkerMisc></SLE66LinkerMisc>
|
||||
<SFDFile></SFDFile>
|
||||
<bCustSvd>0</bCustSvd>
|
||||
<UseEnv>0</UseEnv>
|
||||
<BinPath></BinPath>
|
||||
<IncludePath></IncludePath>
|
||||
<LibPath></LibPath>
|
||||
<RegisterFilePath></RegisterFilePath>
|
||||
<DBRegisterFilePath></DBRegisterFilePath>
|
||||
<TargetStatus>
|
||||
<Error>0</Error>
|
||||
<ExitCodeStop>0</ExitCodeStop>
|
||||
<ButtonStop>0</ButtonStop>
|
||||
<NotGenerated>0</NotGenerated>
|
||||
<InvalidFlash>1</InvalidFlash>
|
||||
</TargetStatus>
|
||||
<OutputDirectory>.\obj\</OutputDirectory>
|
||||
<OutputName>rtthread</OutputName>
|
||||
<CreateExecutable>1</CreateExecutable>
|
||||
<CreateLib>0</CreateLib>
|
||||
<CreateHexFile>1</CreateHexFile>
|
||||
<DebugInformation>1</DebugInformation>
|
||||
<BrowseInformation>1</BrowseInformation>
|
||||
<ListingPath>.\obj\</ListingPath>
|
||||
<HexFormatSelection>1</HexFormatSelection>
|
||||
<Merge32K>0</Merge32K>
|
||||
<CreateBatchFile>0</CreateBatchFile>
|
||||
<BeforeCompile>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopU1X>0</nStopU1X>
|
||||
<nStopU2X>0</nStopU2X>
|
||||
</BeforeCompile>
|
||||
<BeforeMake>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
</BeforeMake>
|
||||
<AfterMake>
|
||||
<RunUserProg1>1</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name>fromelf --bin -o "$L@L.bin" "#L"</UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
</AfterMake>
|
||||
<SelectedForBatchBuild>0</SelectedForBatchBuild>
|
||||
<SVCSIdString></SVCSIdString>
|
||||
</TargetCommonOption>
|
||||
<CommonProperty>
|
||||
<UseCPPCompiler>0</UseCPPCompiler>
|
||||
<RVCTCodeConst>0</RVCTCodeConst>
|
||||
<RVCTZI>0</RVCTZI>
|
||||
<RVCTOtherData>0</RVCTOtherData>
|
||||
<ModuleSelection>0</ModuleSelection>
|
||||
<IncludeInBuild>1</IncludeInBuild>
|
||||
<AlwaysBuild>0</AlwaysBuild>
|
||||
<GenerateAssemblyFile>0</GenerateAssemblyFile>
|
||||
<AssembleAssemblyFile>0</AssembleAssemblyFile>
|
||||
<PublicsOnly>0</PublicsOnly>
|
||||
<StopOnExitCode>3</StopOnExitCode>
|
||||
<CustomArgument></CustomArgument>
|
||||
<IncludeLibraryModules></IncludeLibraryModules>
|
||||
<ComprImg>1</ComprImg>
|
||||
</CommonProperty>
|
||||
<DllOption>
|
||||
<SimDllName>SARMCM3.DLL</SimDllName>
|
||||
<SimDllArguments>-MPU</SimDllArguments>
|
||||
<SimDlgDll>DCM.DLL</SimDlgDll>
|
||||
<SimDlgDllArguments>-pCM3</SimDlgDllArguments>
|
||||
<TargetDllName>SARMCM3.DLL</TargetDllName>
|
||||
<TargetDllArguments>-MPU</TargetDllArguments>
|
||||
<TargetDlgDll>TCM.DLL</TargetDlgDll>
|
||||
<TargetDlgDllArguments>-pCM3</TargetDlgDllArguments>
|
||||
</DllOption>
|
||||
<DebugOption>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
<Oh166RecLen>16</Oh166RecLen>
|
||||
</OPTHX>
|
||||
<Simulator>
|
||||
<UseSimulator>0</UseSimulator>
|
||||
<LoadApplicationAtStartup>1</LoadApplicationAtStartup>
|
||||
<RunToMain>1</RunToMain>
|
||||
<RestoreBreakpoints>1</RestoreBreakpoints>
|
||||
<RestoreWatchpoints>1</RestoreWatchpoints>
|
||||
<RestoreMemoryDisplay>1</RestoreMemoryDisplay>
|
||||
<RestoreFunctions>1</RestoreFunctions>
|
||||
<RestoreToolbox>1</RestoreToolbox>
|
||||
<LimitSpeedToRealTime>0</LimitSpeedToRealTime>
|
||||
<RestoreSysVw>1</RestoreSysVw>
|
||||
</Simulator>
|
||||
<Target>
|
||||
<UseTarget>1</UseTarget>
|
||||
<LoadApplicationAtStartup>1</LoadApplicationAtStartup>
|
||||
<RunToMain>1</RunToMain>
|
||||
<RestoreBreakpoints>1</RestoreBreakpoints>
|
||||
<RestoreWatchpoints>1</RestoreWatchpoints>
|
||||
<RestoreMemoryDisplay>1</RestoreMemoryDisplay>
|
||||
<RestoreFunctions>0</RestoreFunctions>
|
||||
<RestoreToolbox>1</RestoreToolbox>
|
||||
<RestoreTracepoints>1</RestoreTracepoints>
|
||||
<RestoreSysVw>1</RestoreSysVw>
|
||||
<UsePdscDebugDescription>0</UsePdscDebugDescription>
|
||||
</Target>
|
||||
<RunDebugAfterBuild>0</RunDebugAfterBuild>
|
||||
<TargetSelection>6</TargetSelection>
|
||||
<SimDlls>
|
||||
<CpuDll></CpuDll>
|
||||
<CpuDllArguments></CpuDllArguments>
|
||||
<PeripheralDll></PeripheralDll>
|
||||
<PeripheralDllArguments></PeripheralDllArguments>
|
||||
<InitializationFile></InitializationFile>
|
||||
</SimDlls>
|
||||
<TargetDlls>
|
||||
<CpuDll></CpuDll>
|
||||
<CpuDllArguments></CpuDllArguments>
|
||||
<PeripheralDll></PeripheralDll>
|
||||
<PeripheralDllArguments></PeripheralDllArguments>
|
||||
<InitializationFile></InitializationFile>
|
||||
<Driver>Segger\JL2CM3.dll</Driver>
|
||||
</TargetDlls>
|
||||
</DebugOption>
|
||||
<Utilities>
|
||||
<Flash1>
|
||||
<UseTargetDll>1</UseTargetDll>
|
||||
<UseExternalTool>0</UseExternalTool>
|
||||
<RunIndependent>0</RunIndependent>
|
||||
<UpdateFlashBeforeDebugging>1</UpdateFlashBeforeDebugging>
|
||||
<Capability>0</Capability>
|
||||
<DriverSelection>-1</DriverSelection>
|
||||
</Flash1>
|
||||
<bUseTDR>1</bUseTDR>
|
||||
<Flash2>BIN\UL2CM3.DLL</Flash2>
|
||||
<Flash3></Flash3>
|
||||
<Flash4></Flash4>
|
||||
<pFcarmOut></pFcarmOut>
|
||||
<pFcarmGrp></pFcarmGrp>
|
||||
<pFcArmRoot></pFcArmRoot>
|
||||
<FcArmLst>0</FcArmLst>
|
||||
</Utilities>
|
||||
<TargetArmAds>
|
||||
<ArmAdsMisc>
|
||||
<GenerateListings>0</GenerateListings>
|
||||
<asHll>1</asHll>
|
||||
<asAsm>1</asAsm>
|
||||
<asMacX>1</asMacX>
|
||||
<asSyms>1</asSyms>
|
||||
<asFals>1</asFals>
|
||||
<asDbgD>1</asDbgD>
|
||||
<asForm>1</asForm>
|
||||
<ldLst>0</ldLst>
|
||||
<ldmm>1</ldmm>
|
||||
<ldXref>1</ldXref>
|
||||
<BigEnd>0</BigEnd>
|
||||
<AdsALst>1</AdsALst>
|
||||
<AdsACrf>1</AdsACrf>
|
||||
<AdsANop>0</AdsANop>
|
||||
<AdsANot>0</AdsANot>
|
||||
<AdsLLst>1</AdsLLst>
|
||||
<AdsLmap>1</AdsLmap>
|
||||
<AdsLcgr>1</AdsLcgr>
|
||||
<AdsLsym>1</AdsLsym>
|
||||
<AdsLszi>1</AdsLszi>
|
||||
<AdsLtoi>1</AdsLtoi>
|
||||
<AdsLsun>1</AdsLsun>
|
||||
<AdsLven>1</AdsLven>
|
||||
<AdsLsxf>1</AdsLsxf>
|
||||
<RvctClst>0</RvctClst>
|
||||
<GenPPlst>0</GenPPlst>
|
||||
<AdsCpuType>"Cortex-M3"</AdsCpuType>
|
||||
<RvctDeviceName></RvctDeviceName>
|
||||
<mOS>0</mOS>
|
||||
<uocRom>0</uocRom>
|
||||
<uocRam>0</uocRam>
|
||||
<hadIROM>1</hadIROM>
|
||||
<hadIRAM>1</hadIRAM>
|
||||
<hadXRAM>0</hadXRAM>
|
||||
<uocXRam>0</uocXRam>
|
||||
<RvdsVP>0</RvdsVP>
|
||||
<hadIRAM2>0</hadIRAM2>
|
||||
<hadIROM2>0</hadIROM2>
|
||||
<StupSel>8</StupSel>
|
||||
<useUlib>0</useUlib>
|
||||
<EndSel>0</EndSel>
|
||||
<uLtcg>0</uLtcg>
|
||||
<RoSelD>3</RoSelD>
|
||||
<RwSelD>3</RwSelD>
|
||||
<CodeSel>0</CodeSel>
|
||||
<OptFeed>0</OptFeed>
|
||||
<NoZi1>0</NoZi1>
|
||||
<NoZi2>0</NoZi2>
|
||||
<NoZi3>0</NoZi3>
|
||||
<NoZi4>0</NoZi4>
|
||||
<NoZi5>0</NoZi5>
|
||||
<Ro1Chk>0</Ro1Chk>
|
||||
<Ro2Chk>0</Ro2Chk>
|
||||
<Ro3Chk>0</Ro3Chk>
|
||||
<Ir1Chk>1</Ir1Chk>
|
||||
<Ir2Chk>0</Ir2Chk>
|
||||
<Ra1Chk>0</Ra1Chk>
|
||||
<Ra2Chk>0</Ra2Chk>
|
||||
<Ra3Chk>0</Ra3Chk>
|
||||
<Im1Chk>1</Im1Chk>
|
||||
<Im2Chk>0</Im2Chk>
|
||||
<OnChipMemories>
|
||||
<Ocm1>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm1>
|
||||
<Ocm2>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm2>
|
||||
<Ocm3>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm3>
|
||||
<Ocm4>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm4>
|
||||
<Ocm5>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm5>
|
||||
<Ocm6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm6>
|
||||
<IRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x10000</Size>
|
||||
</IRAM>
|
||||
<IROM>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x40000</Size>
|
||||
</IROM>
|
||||
<XRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</XRAM>
|
||||
<OCR_RVCT1>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT1>
|
||||
<OCR_RVCT2>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT2>
|
||||
<OCR_RVCT3>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT3>
|
||||
<OCR_RVCT4>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x40000</Size>
|
||||
</OCR_RVCT4>
|
||||
<OCR_RVCT5>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT5>
|
||||
<OCR_RVCT6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT6>
|
||||
<OCR_RVCT7>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT7>
|
||||
<OCR_RVCT8>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT8>
|
||||
<OCR_RVCT9>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x10000</Size>
|
||||
</OCR_RVCT9>
|
||||
<OCR_RVCT10>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT10>
|
||||
</OnChipMemories>
|
||||
<RvctStartVector></RvctStartVector>
|
||||
</ArmAdsMisc>
|
||||
<Cads>
|
||||
<interw>1</interw>
|
||||
<Optim>1</Optim>
|
||||
<oTime>0</oTime>
|
||||
<SplitLS>0</SplitLS>
|
||||
<OneElfS>0</OneElfS>
|
||||
<Strict>0</Strict>
|
||||
<EnumInt>0</EnumInt>
|
||||
<PlainCh>0</PlainCh>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<wLevel>0</wLevel>
|
||||
<uThumb>0</uThumb>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<uC99>0</uC99>
|
||||
<useXO>0</useXO>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define>RT_USING_ARM_LIBC</Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath>.;..\..\include;applications;board;CMSIS;drivers;libraries\sys_config;libraries\mss_gpio;libraries\mss_uart;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc;..\..\components\libc\compilers\common</IncludePath>
|
||||
</VariousControls>
|
||||
</Cads>
|
||||
<Aads>
|
||||
<interw>1</interw>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<thumb>0</thumb>
|
||||
<SplitLS>0</SplitLS>
|
||||
<SwStkChk>0</SwStkChk>
|
||||
<NoWarn>0</NoWarn>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<useXO>0</useXO>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Aads>
|
||||
<LDads>
|
||||
<umfTarg>0</umfTarg>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<noStLib>0</noStLib>
|
||||
<RepFail>1</RepFail>
|
||||
<useFile>0</useFile>
|
||||
<TextAddressRange>0x00000000</TextAddressRange>
|
||||
<DataAddressRange>0x20000000</DataAddressRange>
|
||||
<pXoBase></pXoBase>
|
||||
<ScatterFile>.\applications\link.sct</ScatterFile>
|
||||
<IncludeLibs></IncludeLibs>
|
||||
<IncludeLibsPath></IncludeLibsPath>
|
||||
<Misc></Misc>
|
||||
<LinkerInputFile></LinkerInputFile>
|
||||
<DisabledWarnings></DisabledWarnings>
|
||||
</LDads>
|
||||
</TargetArmAds>
|
||||
</TargetOption>
|
||||
<Groups>
|
||||
<Group>
|
||||
<GroupName>Kernel</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>clock.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\clock.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>components.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\components.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>device.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\device.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>idle.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\idle.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>ipc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\ipc.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>irq.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\irq.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>kservice.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\kservice.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mem.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\mem.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mempool.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\mempool.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>object.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\object.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>scheduler.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\scheduler.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>signal.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\signal.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>thread.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\thread.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>timer.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\timer.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Applications</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>main.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>applications\main.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>board.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>board\board.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>config.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>board\config.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>CMSIS</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>core_cm3.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>CMSIS\core_cm3.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>system_m2sxxx.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>CMSIS\system_m2sxxx.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>startup_m2sxxx.s</FileName>
|
||||
<FileType>2</FileType>
|
||||
<FilePath>CMSIS\startup_arm\startup_m2sxxx.s</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Drivers</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>drv_uart.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>drivers\drv_uart.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>drv_gpio.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>drivers\drv_gpio.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Libraries</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>sys_config.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>libraries\sys_config\sys_config.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mss_gpio.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>libraries\mss_gpio\mss_gpio.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mss_uart.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>libraries\mss_uart\mss_uart.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>cpu</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>backtrace.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\libcpu\arm\common\backtrace.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>div0.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\libcpu\arm\common\div0.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>showmem.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\libcpu\arm\common\showmem.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>cpuport.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\libcpu\arm\cortex-m3\cpuport.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>context_rvds.S</FileName>
|
||||
<FileType>2</FileType>
|
||||
<FilePath>..\..\libcpu\arm\cortex-m3\context_rvds.S</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>DeviceDrivers</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>pin.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\misc\pin.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>serial.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\serial\serial.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>completion.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\completion.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>dataqueue.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\dataqueue.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>pipe.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\pipe.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>ringblk_buf.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\ringblk_buf.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>ringbuffer.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\ringbuffer.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>waitqueue.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\waitqueue.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>workqueue.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\workqueue.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>finsh</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>shell.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\finsh\shell.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>cmd.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\finsh\cmd.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>msh.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\finsh\msh.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>libc</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>libc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\libc\compilers\armlibc\libc.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mem_std.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\libc\compilers\armlibc\mem_std.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stubs.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\libc\compilers\armlibc\stubs.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>time.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\libc\compilers\common\time.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
</Groups>
|
||||
</Target>
|
||||
</Targets>
|
||||
|
||||
</Project>
|
|
@ -0,0 +1,667 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_projx.xsd">
|
||||
|
||||
<SchemaVersion>2.1</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Targets>
|
||||
<Target>
|
||||
<TargetName>project</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<pCCUsed>5060750::V5.06 update 6 (build 750)::ARMCC</pCCUsed>
|
||||
<uAC6>0</uAC6>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
<Device>M2S010</Device>
|
||||
<Vendor>Microsemi</Vendor>
|
||||
<PackID>Microsemi.M2Sxxx.1.0.64</PackID>
|
||||
<PackURL>http://cores.actel-ip.com/CMSIS-Pack</PackURL>
|
||||
<Cpu>IRAM(0x20000000,0x10000) IROM(0x00000000,0x40000) CPUTYPE("Cortex-M3") CLOCK(12000000) ELITTLE</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
<StartupFile></StartupFile>
|
||||
<FlashDriverDll>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0M2Sxxx_256 -FS00 -FL040000 -FP0($$Device:M2S010$Flash\M2Sxxx_256.FLM))</FlashDriverDll>
|
||||
<DeviceId>0</DeviceId>
|
||||
<RegisterFile>$$Device:M2S010$CMSIS\m2sxxx.h</RegisterFile>
|
||||
<MemoryEnv></MemoryEnv>
|
||||
<Cmp></Cmp>
|
||||
<Asm></Asm>
|
||||
<Linker></Linker>
|
||||
<OHString></OHString>
|
||||
<InfinionOptionDll></InfinionOptionDll>
|
||||
<SLE66CMisc></SLE66CMisc>
|
||||
<SLE66AMisc></SLE66AMisc>
|
||||
<SLE66LinkerMisc></SLE66LinkerMisc>
|
||||
<SFDFile>$$Device:M2S010$SVD\M2Sxxx.svd</SFDFile>
|
||||
<bCustSvd>0</bCustSvd>
|
||||
<UseEnv>0</UseEnv>
|
||||
<BinPath></BinPath>
|
||||
<IncludePath></IncludePath>
|
||||
<LibPath></LibPath>
|
||||
<RegisterFilePath></RegisterFilePath>
|
||||
<DBRegisterFilePath></DBRegisterFilePath>
|
||||
<TargetStatus>
|
||||
<Error>0</Error>
|
||||
<ExitCodeStop>0</ExitCodeStop>
|
||||
<ButtonStop>0</ButtonStop>
|
||||
<NotGenerated>0</NotGenerated>
|
||||
<InvalidFlash>1</InvalidFlash>
|
||||
</TargetStatus>
|
||||
<OutputDirectory>.\obj\</OutputDirectory>
|
||||
<OutputName>rtthread</OutputName>
|
||||
<CreateExecutable>1</CreateExecutable>
|
||||
<CreateLib>0</CreateLib>
|
||||
<CreateHexFile>1</CreateHexFile>
|
||||
<DebugInformation>1</DebugInformation>
|
||||
<BrowseInformation>1</BrowseInformation>
|
||||
<ListingPath>.\obj\</ListingPath>
|
||||
<HexFormatSelection>1</HexFormatSelection>
|
||||
<Merge32K>0</Merge32K>
|
||||
<CreateBatchFile>0</CreateBatchFile>
|
||||
<BeforeCompile>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopU1X>0</nStopU1X>
|
||||
<nStopU2X>0</nStopU2X>
|
||||
</BeforeCompile>
|
||||
<BeforeMake>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopB1X>0</nStopB1X>
|
||||
<nStopB2X>0</nStopB2X>
|
||||
</BeforeMake>
|
||||
<AfterMake>
|
||||
<RunUserProg1>1</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name>fromelf --bin -o "$L@L.bin" "#L"</UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopA1X>0</nStopA1X>
|
||||
<nStopA2X>0</nStopA2X>
|
||||
</AfterMake>
|
||||
<SelectedForBatchBuild>0</SelectedForBatchBuild>
|
||||
<SVCSIdString></SVCSIdString>
|
||||
</TargetCommonOption>
|
||||
<CommonProperty>
|
||||
<UseCPPCompiler>0</UseCPPCompiler>
|
||||
<RVCTCodeConst>0</RVCTCodeConst>
|
||||
<RVCTZI>0</RVCTZI>
|
||||
<RVCTOtherData>0</RVCTOtherData>
|
||||
<ModuleSelection>0</ModuleSelection>
|
||||
<IncludeInBuild>1</IncludeInBuild>
|
||||
<AlwaysBuild>0</AlwaysBuild>
|
||||
<GenerateAssemblyFile>0</GenerateAssemblyFile>
|
||||
<AssembleAssemblyFile>0</AssembleAssemblyFile>
|
||||
<PublicsOnly>0</PublicsOnly>
|
||||
<StopOnExitCode>3</StopOnExitCode>
|
||||
<CustomArgument></CustomArgument>
|
||||
<IncludeLibraryModules></IncludeLibraryModules>
|
||||
<ComprImg>1</ComprImg>
|
||||
</CommonProperty>
|
||||
<DllOption>
|
||||
<SimDllName>SARMCM3.DLL</SimDllName>
|
||||
<SimDllArguments> </SimDllArguments>
|
||||
<SimDlgDll>DCM.DLL</SimDlgDll>
|
||||
<SimDlgDllArguments>-pCM3</SimDlgDllArguments>
|
||||
<TargetDllName>SARMCM3.DLL</TargetDllName>
|
||||
<TargetDllArguments></TargetDllArguments>
|
||||
<TargetDlgDll>TCM.DLL</TargetDlgDll>
|
||||
<TargetDlgDllArguments>-pCM3</TargetDlgDllArguments>
|
||||
</DllOption>
|
||||
<DebugOption>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
<Oh166RecLen>16</Oh166RecLen>
|
||||
</OPTHX>
|
||||
</DebugOption>
|
||||
<Utilities>
|
||||
<Flash1>
|
||||
<UseTargetDll>1</UseTargetDll>
|
||||
<UseExternalTool>0</UseExternalTool>
|
||||
<RunIndependent>0</RunIndependent>
|
||||
<UpdateFlashBeforeDebugging>1</UpdateFlashBeforeDebugging>
|
||||
<Capability>1</Capability>
|
||||
<DriverSelection>-1</DriverSelection>
|
||||
</Flash1>
|
||||
<bUseTDR>1</bUseTDR>
|
||||
<Flash2>BIN\UL2CM3.DLL</Flash2>
|
||||
<Flash3></Flash3>
|
||||
<Flash4></Flash4>
|
||||
<pFcarmOut></pFcarmOut>
|
||||
<pFcarmGrp></pFcarmGrp>
|
||||
<pFcArmRoot></pFcArmRoot>
|
||||
<FcArmLst>0</FcArmLst>
|
||||
</Utilities>
|
||||
<TargetArmAds>
|
||||
<ArmAdsMisc>
|
||||
<GenerateListings>0</GenerateListings>
|
||||
<asHll>1</asHll>
|
||||
<asAsm>1</asAsm>
|
||||
<asMacX>1</asMacX>
|
||||
<asSyms>1</asSyms>
|
||||
<asFals>1</asFals>
|
||||
<asDbgD>1</asDbgD>
|
||||
<asForm>1</asForm>
|
||||
<ldLst>0</ldLst>
|
||||
<ldmm>1</ldmm>
|
||||
<ldXref>1</ldXref>
|
||||
<BigEnd>0</BigEnd>
|
||||
<AdsALst>1</AdsALst>
|
||||
<AdsACrf>1</AdsACrf>
|
||||
<AdsANop>0</AdsANop>
|
||||
<AdsANot>0</AdsANot>
|
||||
<AdsLLst>1</AdsLLst>
|
||||
<AdsLmap>1</AdsLmap>
|
||||
<AdsLcgr>1</AdsLcgr>
|
||||
<AdsLsym>1</AdsLsym>
|
||||
<AdsLszi>1</AdsLszi>
|
||||
<AdsLtoi>1</AdsLtoi>
|
||||
<AdsLsun>1</AdsLsun>
|
||||
<AdsLven>1</AdsLven>
|
||||
<AdsLsxf>1</AdsLsxf>
|
||||
<RvctClst>0</RvctClst>
|
||||
<GenPPlst>0</GenPPlst>
|
||||
<AdsCpuType>"Cortex-M3"</AdsCpuType>
|
||||
<RvctDeviceName></RvctDeviceName>
|
||||
<mOS>0</mOS>
|
||||
<uocRom>0</uocRom>
|
||||
<uocRam>0</uocRam>
|
||||
<hadIROM>1</hadIROM>
|
||||
<hadIRAM>1</hadIRAM>
|
||||
<hadXRAM>0</hadXRAM>
|
||||
<uocXRam>0</uocXRam>
|
||||
<RvdsVP>0</RvdsVP>
|
||||
<RvdsMve>0</RvdsMve>
|
||||
<hadIRAM2>0</hadIRAM2>
|
||||
<hadIROM2>0</hadIROM2>
|
||||
<StupSel>8</StupSel>
|
||||
<useUlib>0</useUlib>
|
||||
<EndSel>0</EndSel>
|
||||
<uLtcg>0</uLtcg>
|
||||
<nSecure>0</nSecure>
|
||||
<RoSelD>3</RoSelD>
|
||||
<RwSelD>3</RwSelD>
|
||||
<CodeSel>0</CodeSel>
|
||||
<OptFeed>0</OptFeed>
|
||||
<NoZi1>0</NoZi1>
|
||||
<NoZi2>0</NoZi2>
|
||||
<NoZi3>0</NoZi3>
|
||||
<NoZi4>1</NoZi4>
|
||||
<NoZi5>0</NoZi5>
|
||||
<Ro1Chk>0</Ro1Chk>
|
||||
<Ro2Chk>0</Ro2Chk>
|
||||
<Ro3Chk>0</Ro3Chk>
|
||||
<Ir1Chk>1</Ir1Chk>
|
||||
<Ir2Chk>0</Ir2Chk>
|
||||
<Ra1Chk>0</Ra1Chk>
|
||||
<Ra2Chk>0</Ra2Chk>
|
||||
<Ra3Chk>0</Ra3Chk>
|
||||
<Im1Chk>1</Im1Chk>
|
||||
<Im2Chk>0</Im2Chk>
|
||||
<OnChipMemories>
|
||||
<Ocm1>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm1>
|
||||
<Ocm2>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm2>
|
||||
<Ocm3>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm3>
|
||||
<Ocm4>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm4>
|
||||
<Ocm5>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm5>
|
||||
<Ocm6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm6>
|
||||
<IRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x10000</Size>
|
||||
</IRAM>
|
||||
<IROM>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x40000</Size>
|
||||
</IROM>
|
||||
<XRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</XRAM>
|
||||
<OCR_RVCT1>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT1>
|
||||
<OCR_RVCT2>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT2>
|
||||
<OCR_RVCT3>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT3>
|
||||
<OCR_RVCT4>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x40000</Size>
|
||||
</OCR_RVCT4>
|
||||
<OCR_RVCT5>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT5>
|
||||
<OCR_RVCT6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT6>
|
||||
<OCR_RVCT7>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT7>
|
||||
<OCR_RVCT8>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT8>
|
||||
<OCR_RVCT9>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x10000</Size>
|
||||
</OCR_RVCT9>
|
||||
<OCR_RVCT10>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT10>
|
||||
</OnChipMemories>
|
||||
<RvctStartVector></RvctStartVector>
|
||||
</ArmAdsMisc>
|
||||
<Cads>
|
||||
<interw>1</interw>
|
||||
<Optim>1</Optim>
|
||||
<oTime>0</oTime>
|
||||
<SplitLS>0</SplitLS>
|
||||
<OneElfS>1</OneElfS>
|
||||
<Strict>0</Strict>
|
||||
<EnumInt>0</EnumInt>
|
||||
<PlainCh>0</PlainCh>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<wLevel>2</wLevel>
|
||||
<uThumb>0</uThumb>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<uC99>0</uC99>
|
||||
<uGnu>0</uGnu>
|
||||
<useXO>0</useXO>
|
||||
<v6Lang>1</v6Lang>
|
||||
<v6LangP>1</v6LangP>
|
||||
<vShortEn>1</vShortEn>
|
||||
<vShortWch>1</vShortWch>
|
||||
<v6Lto>0</v6Lto>
|
||||
<v6WtE>0</v6WtE>
|
||||
<v6Rtti>0</v6Rtti>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define>RT_USING_ARM_LIBC</Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath>.;..\..\include;applications;board;CMSIS;drivers;libraries\sys_config;libraries\mss_gpio;libraries\mss_uart;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc;..\..\components\libc\compilers\common</IncludePath>
|
||||
</VariousControls>
|
||||
</Cads>
|
||||
<Aads>
|
||||
<interw>1</interw>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<thumb>0</thumb>
|
||||
<SplitLS>0</SplitLS>
|
||||
<SwStkChk>0</SwStkChk>
|
||||
<NoWarn>0</NoWarn>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<useXO>0</useXO>
|
||||
<uClangAs>0</uClangAs>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Aads>
|
||||
<LDads>
|
||||
<umfTarg>0</umfTarg>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<noStLib>0</noStLib>
|
||||
<RepFail>1</RepFail>
|
||||
<useFile>0</useFile>
|
||||
<TextAddressRange>0x00000000</TextAddressRange>
|
||||
<DataAddressRange>0x20000000</DataAddressRange>
|
||||
<pXoBase></pXoBase>
|
||||
<ScatterFile>.\applications\link.sct</ScatterFile>
|
||||
<IncludeLibs></IncludeLibs>
|
||||
<IncludeLibsPath></IncludeLibsPath>
|
||||
<Misc></Misc>
|
||||
<LinkerInputFile></LinkerInputFile>
|
||||
<DisabledWarnings></DisabledWarnings>
|
||||
</LDads>
|
||||
</TargetArmAds>
|
||||
</TargetOption>
|
||||
<Groups>
|
||||
<Group>
|
||||
<GroupName>Kernel</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>clock.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\clock.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>components.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\components.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>device.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\device.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>idle.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\idle.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>ipc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\ipc.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>irq.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\irq.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>kservice.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\kservice.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mem.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\mem.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mempool.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\mempool.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>object.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\object.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>scheduler.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\scheduler.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>signal.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\signal.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>thread.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\thread.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>timer.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\src\timer.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Applications</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>main.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>applications\main.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>board.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>board\board.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>config.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>board\config.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>CMSIS</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>core_cm3.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>CMSIS\core_cm3.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>system_m2sxxx.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>CMSIS\system_m2sxxx.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>startup_m2sxxx.s</FileName>
|
||||
<FileType>2</FileType>
|
||||
<FilePath>CMSIS\startup_arm\startup_m2sxxx.s</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Drivers</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>drv_uart.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>drivers\drv_uart.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>drv_gpio.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>drivers\drv_gpio.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Libraries</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>sys_config.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>libraries\sys_config\sys_config.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mss_gpio.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>libraries\mss_gpio\mss_gpio.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mss_uart.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>libraries\mss_uart\mss_uart.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>cpu</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>backtrace.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\libcpu\arm\common\backtrace.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>div0.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\libcpu\arm\common\div0.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>showmem.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\libcpu\arm\common\showmem.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>cpuport.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\libcpu\arm\cortex-m3\cpuport.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>context_rvds.S</FileName>
|
||||
<FileType>2</FileType>
|
||||
<FilePath>..\..\libcpu\arm\cortex-m3\context_rvds.S</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>DeviceDrivers</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>pin.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\misc\pin.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>serial.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\serial\serial.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>completion.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\completion.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>dataqueue.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\dataqueue.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>pipe.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\pipe.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>ringblk_buf.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\ringblk_buf.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>ringbuffer.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\ringbuffer.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>waitqueue.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\waitqueue.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>workqueue.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\drivers\src\workqueue.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>finsh</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>shell.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\finsh\shell.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>cmd.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\finsh\cmd.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>msh.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\finsh\msh.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>libc</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>libc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\libc\compilers\armlibc\libc.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mem_std.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\libc\compilers\armlibc\mem_std.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stubs.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\libc\compilers\armlibc\stubs.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>time.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\components\libc\compilers\common\time.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
</Groups>
|
||||
</Target>
|
||||
</Targets>
|
||||
|
||||
<RTE>
|
||||
<apis/>
|
||||
<components/>
|
||||
<files/>
|
||||
</RTE>
|
||||
|
||||
</Project>
|
|
@ -0,0 +1,165 @@
|
|||
#ifndef RT_CONFIG_H__
|
||||
#define RT_CONFIG_H__
|
||||
|
||||
/* Automatically generated file; DO NOT EDIT. */
|
||||
/* RT-Thread Configuration */
|
||||
|
||||
/* RT-Thread Kernel */
|
||||
|
||||
#define RT_NAME_MAX 8
|
||||
#define RT_ALIGN_SIZE 4
|
||||
#define RT_THREAD_PRIORITY_32
|
||||
#define RT_THREAD_PRIORITY_MAX 32
|
||||
#define RT_TICK_PER_SECOND 100
|
||||
#define RT_USING_OVERFLOW_CHECK
|
||||
#define RT_USING_HOOK
|
||||
#define RT_USING_IDLE_HOOK
|
||||
#define RT_IDLE_HOOK_LIST_SIZE 4
|
||||
#define IDLE_THREAD_STACK_SIZE 256
|
||||
#define RT_USING_TIMER_SOFT
|
||||
#define RT_TIMER_THREAD_PRIO 4
|
||||
#define RT_TIMER_THREAD_STACK_SIZE 512
|
||||
#define RT_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
#define RT_USING_SEMAPHORE
|
||||
#define RT_USING_MUTEX
|
||||
#define RT_USING_EVENT
|
||||
#define RT_USING_MAILBOX
|
||||
#define RT_USING_MESSAGEQUEUE
|
||||
|
||||
/* Memory Management */
|
||||
|
||||
#define RT_USING_MEMPOOL
|
||||
#define RT_USING_SMALL_MEM
|
||||
#define RT_USING_HEAP
|
||||
|
||||
/* Kernel Device Object */
|
||||
|
||||
#define RT_USING_DEVICE
|
||||
#define RT_USING_CONSOLE
|
||||
#define RT_CONSOLEBUF_SIZE 128
|
||||
#define RT_CONSOLE_DEVICE_NAME "uart0"
|
||||
#define RT_VER_NUM 0x40003
|
||||
|
||||
/* RT-Thread Components */
|
||||
|
||||
#define RT_USING_COMPONENTS_INIT
|
||||
#define RT_USING_USER_MAIN
|
||||
#define RT_MAIN_THREAD_STACK_SIZE 2048
|
||||
#define RT_MAIN_THREAD_PRIORITY 10
|
||||
|
||||
/* C++ features */
|
||||
|
||||
|
||||
/* Command shell */
|
||||
|
||||
#define RT_USING_FINSH
|
||||
#define FINSH_THREAD_NAME "tshell"
|
||||
#define FINSH_USING_HISTORY
|
||||
#define FINSH_HISTORY_LINES 5
|
||||
#define FINSH_USING_SYMTAB
|
||||
#define FINSH_USING_DESCRIPTION
|
||||
#define FINSH_THREAD_PRIORITY 20
|
||||
#define FINSH_THREAD_STACK_SIZE 1024
|
||||
#define FINSH_CMD_SIZE 80
|
||||
#define FINSH_USING_MSH
|
||||
#define FINSH_USING_MSH_DEFAULT
|
||||
#define FINSH_USING_MSH_ONLY
|
||||
#define FINSH_ARG_MAX 10
|
||||
|
||||
/* Device virtual file system */
|
||||
|
||||
|
||||
/* Device Drivers */
|
||||
|
||||
#define RT_USING_DEVICE_IPC
|
||||
#define RT_PIPE_BUFSZ 512
|
||||
#define RT_USING_SERIAL
|
||||
#define RT_SERIAL_USING_DMA
|
||||
#define RT_SERIAL_RB_BUFSZ 64
|
||||
#define RT_USING_PIN
|
||||
|
||||
/* Using USB */
|
||||
|
||||
|
||||
/* POSIX layer and C standard library */
|
||||
|
||||
#define RT_USING_LIBC
|
||||
|
||||
/* Network */
|
||||
|
||||
/* Socket abstraction layer */
|
||||
|
||||
|
||||
/* Network interface device */
|
||||
|
||||
|
||||
/* light weight TCP/IP stack */
|
||||
|
||||
|
||||
/* AT commands */
|
||||
|
||||
|
||||
/* VBUS(Virtual Software BUS) */
|
||||
|
||||
|
||||
/* Utilities */
|
||||
|
||||
|
||||
/* RT-Thread online packages */
|
||||
|
||||
/* IoT - internet of things */
|
||||
|
||||
|
||||
/* Wi-Fi */
|
||||
|
||||
/* Marvell WiFi */
|
||||
|
||||
|
||||
/* Wiced WiFi */
|
||||
|
||||
|
||||
/* IoT Cloud */
|
||||
|
||||
|
||||
/* security packages */
|
||||
|
||||
|
||||
/* language packages */
|
||||
|
||||
|
||||
/* multimedia packages */
|
||||
|
||||
|
||||
/* tools packages */
|
||||
|
||||
|
||||
/* system packages */
|
||||
|
||||
|
||||
/* peripheral libraries and drivers */
|
||||
|
||||
|
||||
/* miscellaneous packages */
|
||||
|
||||
|
||||
/* samples: kernel and components samples */
|
||||
|
||||
|
||||
/* Hardware Drivers Config */
|
||||
|
||||
/* On-chip Peripheral Drivers */
|
||||
|
||||
/* UART Drivers */
|
||||
|
||||
#define BSP_USING_UART0
|
||||
#define BSP_USING_UART1
|
||||
|
||||
/* GPIO Drivers */
|
||||
|
||||
#define BSP_USING_GPIO
|
||||
#define SOC_SF2_M2S010
|
||||
|
||||
#endif
|
|
@ -0,0 +1,82 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
CROSS_TOOL = 'gcc'
|
||||
|
||||
if os.getenv('RTT_CC'):
|
||||
CROSS_TOOL = os.getenv('RTT_CC')
|
||||
# device options
|
||||
ARCH = 'arm'
|
||||
CPU = 'cortex-m3'
|
||||
|
||||
if CROSS_TOOL == 'gcc':
|
||||
PLATFORM = 'gcc'
|
||||
EXEC_PATH = 'D:/Program/env/tools/gnu_gcc/arm_gcc/mingw/bin'
|
||||
elif CROSS_TOOL == 'keil':
|
||||
PLATFORM = 'armcc'
|
||||
EXEC_PATH = 'D:/Program/Keil_v5'
|
||||
|
||||
if os.getenv('RTT_EXEC_PATH'):
|
||||
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
|
||||
|
||||
# BUILD = 'debug'
|
||||
BUILD = 'release'
|
||||
|
||||
if PLATFORM == 'gcc':
|
||||
PREFIX = 'arm-none-eabi-'
|
||||
CC = PREFIX + 'gcc'
|
||||
CXX = PREFIX + 'g++'
|
||||
AS = PREFIX + 'gcc'
|
||||
AR = PREFIX + 'ar'
|
||||
LINK = PREFIX + 'gcc'
|
||||
TARGET_EXT = 'elf'
|
||||
SIZE = PREFIX + 'size'
|
||||
OBJDUMP = PREFIX + 'objdump'
|
||||
OBJCPY = PREFIX + 'objcopy'
|
||||
|
||||
DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -Wall'
|
||||
CFLAGS = DEVICE + ' -std=c99'
|
||||
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
|
||||
# link script file path
|
||||
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T CMSIS/startup_gcc/debug-in-microsemi-smartfusion2-envm.ld'
|
||||
|
||||
CPATH = ''
|
||||
LPATH = ''
|
||||
|
||||
if BUILD == 'debug':
|
||||
CFLAGS += ' -O0 -gdwarf-2 -g'
|
||||
AFLAGS += ' -gdwarf-2'
|
||||
else:
|
||||
CFLAGS += ' -O2'
|
||||
|
||||
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + OBJCPY + ' -O ihex $TARGET rtthread.hex\n' + SIZE + ' $TARGET \n'
|
||||
|
||||
elif PLATFORM == 'armcc':
|
||||
# toolchains
|
||||
CC = 'armcc'
|
||||
AS = 'armasm'
|
||||
AR = 'armar'
|
||||
LINK = 'armlink'
|
||||
TARGET_EXT = 'axf'
|
||||
|
||||
DEVICE = ' --cpu ' + CPU
|
||||
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
|
||||
AFLAGS = DEVICE + ' --apcs=interwork '
|
||||
# link scatter file path
|
||||
LFLAGS = DEVICE + ' --scatter "applications/link.sct" --info sizes --info totals --info unused --info veneers --list rtthread.map --strict'
|
||||
|
||||
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/INC'
|
||||
LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/ARMCC/LIB'
|
||||
|
||||
CFLAGS += ' -D__MICROLIB '
|
||||
AFLAGS += ' --pd "__MICROLIB SETA 1" '
|
||||
LFLAGS += ' --library_type=microlib '
|
||||
EXEC_PATH += '/arm/armcc/bin/'
|
||||
|
||||
if BUILD == 'debug':
|
||||
CFLAGS += ' -g -O0'
|
||||
AFLAGS += ' -g'
|
||||
else:
|
||||
CFLAGS += ' -O2'
|
||||
|
||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
|
@ -0,0 +1,187 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_opt.xsd">
|
||||
|
||||
<SchemaVersion>1.0</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Extensions>
|
||||
<cExt>*.c</cExt>
|
||||
<aExt>*.s*; *.src; *.a*</aExt>
|
||||
<oExt>*.obj</oExt>
|
||||
<lExt>*.lib</lExt>
|
||||
<tExt>*.txt; *.h; *.inc</tExt>
|
||||
<pExt>*.plm</pExt>
|
||||
<CppX>*.cpp</CppX>
|
||||
</Extensions>
|
||||
|
||||
<DaveTm>
|
||||
<dwLowDateTime>0</dwLowDateTime>
|
||||
<dwHighDateTime>0</dwHighDateTime>
|
||||
</DaveTm>
|
||||
|
||||
<Target>
|
||||
<TargetName>project</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
<CLKADS>20000000</CLKADS>
|
||||
<OPTTT>
|
||||
<gFlags>1</gFlags>
|
||||
<BeepAtEnd>1</BeepAtEnd>
|
||||
<RunSim>1</RunSim>
|
||||
<RunTarget>0</RunTarget>
|
||||
</OPTTT>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<FlashByte>65535</FlashByte>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
</OPTHX>
|
||||
<OPTLEX>
|
||||
<PageWidth>79</PageWidth>
|
||||
<PageLength>66</PageLength>
|
||||
<TabStop>8</TabStop>
|
||||
<ListingPath>.\obj\</ListingPath>
|
||||
</OPTLEX>
|
||||
<ListingPage>
|
||||
<CreateCListing>1</CreateCListing>
|
||||
<CreateAListing>1</CreateAListing>
|
||||
<CreateLListing>1</CreateLListing>
|
||||
<CreateIListing>0</CreateIListing>
|
||||
<AsmCond>1</AsmCond>
|
||||
<AsmSymb>1</AsmSymb>
|
||||
<AsmXref>0</AsmXref>
|
||||
<CCond>1</CCond>
|
||||
<CCode>0</CCode>
|
||||
<CListInc>0</CListInc>
|
||||
<CSymb>0</CSymb>
|
||||
<LinkerCodeListing>0</LinkerCodeListing>
|
||||
</ListingPage>
|
||||
<OPTXL>
|
||||
<LMap>1</LMap>
|
||||
<LComments>1</LComments>
|
||||
<LGenerateSymbols>1</LGenerateSymbols>
|
||||
<LLibSym>1</LLibSym>
|
||||
<LLines>1</LLines>
|
||||
<LLocSym>1</LLocSym>
|
||||
<LPubSym>1</LPubSym>
|
||||
<LXref>0</LXref>
|
||||
<LExpSel>0</LExpSel>
|
||||
</OPTXL>
|
||||
<OPTFL>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>255</CpuCode>
|
||||
<Books>
|
||||
<Book>
|
||||
<Number>0</Number>
|
||||
<Title>Datasheet</Title>
|
||||
<Path>DATASHTS\Actel\M2Sxxx\SmartFusion2_DS.pdf</Path>
|
||||
</Book>
|
||||
<Book>
|
||||
<Number>1</Number>
|
||||
<Title>Technical Reference Manual</Title>
|
||||
<Path>datashts\arm\cortex_m3\r2p1\DDI0337I_CORTEXM3_R2P1_TRM.PDF</Path>
|
||||
</Book>
|
||||
<Book>
|
||||
<Number>2</Number>
|
||||
<Title>Generic User Guide</Title>
|
||||
<Path>datashts\arm\cortex_m3\r2p1\DUI0552A_CORTEX_M3_DGUG.PDF</Path>
|
||||
</Book>
|
||||
</Books>
|
||||
<DebugOpt>
|
||||
<uSim>0</uSim>
|
||||
<uTrg>1</uTrg>
|
||||
<sLdApp>1</sLdApp>
|
||||
<sGomain>1</sGomain>
|
||||
<sRbreak>1</sRbreak>
|
||||
<sRwatch>1</sRwatch>
|
||||
<sRmem>1</sRmem>
|
||||
<sRfunc>1</sRfunc>
|
||||
<sRbox>1</sRbox>
|
||||
<tLdApp>1</tLdApp>
|
||||
<tGomain>1</tGomain>
|
||||
<tRbreak>1</tRbreak>
|
||||
<tRwatch>1</tRwatch>
|
||||
<tRmem>1</tRmem>
|
||||
<tRfunc>0</tRfunc>
|
||||
<tRbox>1</tRbox>
|
||||
<tRtrace>1</tRtrace>
|
||||
<sRSysVw>1</sRSysVw>
|
||||
<tRSysVw>1</tRSysVw>
|
||||
<tPdscDbg>0</tPdscDbg>
|
||||
<sRunDeb>0</sRunDeb>
|
||||
<sLrtime>0</sLrtime>
|
||||
<nTsel>6</nTsel>
|
||||
<sDll></sDll>
|
||||
<sDllPa></sDllPa>
|
||||
<sDlgDll></sDlgDll>
|
||||
<sDlgPa></sDlgPa>
|
||||
<sIfile></sIfile>
|
||||
<tDll></tDll>
|
||||
<tDllPa></tDllPa>
|
||||
<tDlgDll></tDlgDll>
|
||||
<tDlgPa></tDlgPa>
|
||||
<tIfile></tIfile>
|
||||
<pMon>Segger\JL2CM3.dll</pMon>
|
||||
</DebugOpt>
|
||||
<TargetDriverDllRegistry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>JL2CM3</Key>
|
||||
<Name>-U10000387 -O207 -S8 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC800 -FN1 -FF0M2Sxxx_256 -FS00 -FL040000</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>UL2CM3</Key>
|
||||
<Name>UL2CM3(-O207 -O207 -S9 -C0 -FO7 -FN1 -FC800 -FD20000000 -FF0M2Sxxx_256 -FL040000 -FS00</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
<DebugFlag>
|
||||
<trace>0</trace>
|
||||
<periodic>1</periodic>
|
||||
<aLwin>0</aLwin>
|
||||
<aCover>0</aCover>
|
||||
<aSer1>0</aSer1>
|
||||
<aSer2>0</aSer2>
|
||||
<aPa>0</aPa>
|
||||
<viewmode>0</viewmode>
|
||||
<vrSel>0</vrSel>
|
||||
<aSym>0</aSym>
|
||||
<aTbox>0</aTbox>
|
||||
<AscS1>0</AscS1>
|
||||
<AscS2>0</AscS2>
|
||||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>0</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
<StkLoc>0</StkLoc>
|
||||
<TrcWin>0</TrcWin>
|
||||
<newCpu>0</newCpu>
|
||||
<uProt>0</uProt>
|
||||
</DebugFlag>
|
||||
<LintExecutable></LintExecutable>
|
||||
<LintConfigFile></LintConfigFile>
|
||||
</TargetOption>
|
||||
</Target>
|
||||
|
||||
<Group>
|
||||
<GroupName>Source Group 1</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
</Group>
|
||||
|
||||
</ProjectOpt>
|
|
@ -0,0 +1,185 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_optx.xsd">
|
||||
|
||||
<SchemaVersion>1.0</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Extensions>
|
||||
<cExt>*.c</cExt>
|
||||
<aExt>*.s*; *.src; *.a*</aExt>
|
||||
<oExt>*.obj; *.o</oExt>
|
||||
<lExt>*.lib</lExt>
|
||||
<tExt>*.txt; *.h; *.inc</tExt>
|
||||
<pExt>*.plm</pExt>
|
||||
<CppX>*.cpp</CppX>
|
||||
<nMigrate>0</nMigrate>
|
||||
</Extensions>
|
||||
|
||||
<DaveTm>
|
||||
<dwLowDateTime>0</dwLowDateTime>
|
||||
<dwHighDateTime>0</dwHighDateTime>
|
||||
</DaveTm>
|
||||
|
||||
<Target>
|
||||
<TargetName>project</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
<CLKADS>12000000</CLKADS>
|
||||
<OPTTT>
|
||||
<gFlags>1</gFlags>
|
||||
<BeepAtEnd>1</BeepAtEnd>
|
||||
<RunSim>0</RunSim>
|
||||
<RunTarget>1</RunTarget>
|
||||
<RunAbUc>0</RunAbUc>
|
||||
</OPTTT>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<FlashByte>65535</FlashByte>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
</OPTHX>
|
||||
<OPTLEX>
|
||||
<PageWidth>79</PageWidth>
|
||||
<PageLength>66</PageLength>
|
||||
<TabStop>8</TabStop>
|
||||
<ListingPath>.\obj\</ListingPath>
|
||||
</OPTLEX>
|
||||
<ListingPage>
|
||||
<CreateCListing>1</CreateCListing>
|
||||
<CreateAListing>1</CreateAListing>
|
||||
<CreateLListing>1</CreateLListing>
|
||||
<CreateIListing>0</CreateIListing>
|
||||
<AsmCond>1</AsmCond>
|
||||
<AsmSymb>1</AsmSymb>
|
||||
<AsmXref>0</AsmXref>
|
||||
<CCond>1</CCond>
|
||||
<CCode>0</CCode>
|
||||
<CListInc>0</CListInc>
|
||||
<CSymb>0</CSymb>
|
||||
<LinkerCodeListing>0</LinkerCodeListing>
|
||||
</ListingPage>
|
||||
<OPTXL>
|
||||
<LMap>1</LMap>
|
||||
<LComments>1</LComments>
|
||||
<LGenerateSymbols>1</LGenerateSymbols>
|
||||
<LLibSym>1</LLibSym>
|
||||
<LLines>1</LLines>
|
||||
<LLocSym>1</LLocSym>
|
||||
<LPubSym>1</LPubSym>
|
||||
<LXref>0</LXref>
|
||||
<LExpSel>0</LExpSel>
|
||||
</OPTXL>
|
||||
<OPTFL>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>255</CpuCode>
|
||||
<DebugOpt>
|
||||
<uSim>0</uSim>
|
||||
<uTrg>1</uTrg>
|
||||
<sLdApp>1</sLdApp>
|
||||
<sGomain>1</sGomain>
|
||||
<sRbreak>1</sRbreak>
|
||||
<sRwatch>1</sRwatch>
|
||||
<sRmem>1</sRmem>
|
||||
<sRfunc>1</sRfunc>
|
||||
<sRbox>1</sRbox>
|
||||
<tLdApp>1</tLdApp>
|
||||
<tGomain>1</tGomain>
|
||||
<tRbreak>1</tRbreak>
|
||||
<tRwatch>1</tRwatch>
|
||||
<tRmem>1</tRmem>
|
||||
<tRfunc>0</tRfunc>
|
||||
<tRbox>1</tRbox>
|
||||
<tRtrace>1</tRtrace>
|
||||
<sRSysVw>1</sRSysVw>
|
||||
<tRSysVw>1</tRSysVw>
|
||||
<sRunDeb>0</sRunDeb>
|
||||
<sLrtime>0</sLrtime>
|
||||
<bEvRecOn>1</bEvRecOn>
|
||||
<bSchkAxf>0</bSchkAxf>
|
||||
<bTchkAxf>0</bTchkAxf>
|
||||
<nTsel>4</nTsel>
|
||||
<sDll></sDll>
|
||||
<sDllPa></sDllPa>
|
||||
<sDlgDll></sDlgDll>
|
||||
<sDlgPa></sDlgPa>
|
||||
<sIfile></sIfile>
|
||||
<tDll></tDll>
|
||||
<tDllPa></tDllPa>
|
||||
<tDlgDll></tDlgDll>
|
||||
<tDlgPa></tDlgPa>
|
||||
<tIfile></tIfile>
|
||||
<pMon>Segger\JL2CM3.dll</pMon>
|
||||
</DebugOpt>
|
||||
<TargetDriverDllRegistry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>JL2CM3</Key>
|
||||
<Name>-U10000387 -O78 -S8 -ZTIFSpeedSel50000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC1000 -FN1 -FF0M2Sxxx_256.FLM -FS00 -FL040000 -FP0($$Device:M2S010$Flash\M2Sxxx_256.FLM)</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>UL2CM3</Key>
|
||||
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0M2Sxxx_256 -FS00 -FL040000 -FP0($$Device:M2S010$Flash\M2Sxxx_256.FLM))</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
<DebugFlag>
|
||||
<trace>0</trace>
|
||||
<periodic>1</periodic>
|
||||
<aLwin>0</aLwin>
|
||||
<aCover>0</aCover>
|
||||
<aSer1>0</aSer1>
|
||||
<aSer2>0</aSer2>
|
||||
<aPa>0</aPa>
|
||||
<viewmode>0</viewmode>
|
||||
<vrSel>0</vrSel>
|
||||
<aSym>0</aSym>
|
||||
<aTbox>0</aTbox>
|
||||
<AscS1>0</AscS1>
|
||||
<AscS2>0</AscS2>
|
||||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>0</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
<StkLoc>0</StkLoc>
|
||||
<TrcWin>0</TrcWin>
|
||||
<newCpu>0</newCpu>
|
||||
<uProt>0</uProt>
|
||||
</DebugFlag>
|
||||
<LintExecutable></LintExecutable>
|
||||
<LintConfigFile></LintConfigFile>
|
||||
<bLintAuto>0</bLintAuto>
|
||||
<bAutoGenD>0</bAutoGenD>
|
||||
<LntExFlags>0</LntExFlags>
|
||||
<pMisraName></pMisraName>
|
||||
<pszMrule></pszMrule>
|
||||
<pSingCmds></pSingCmds>
|
||||
<pMultCmds></pMultCmds>
|
||||
<pMisraNamep></pMisraNamep>
|
||||
<pszMrulep></pszMrulep>
|
||||
<pSingCmdsp></pSingCmdsp>
|
||||
<pMultCmdsp></pMultCmdsp>
|
||||
</TargetOption>
|
||||
</Target>
|
||||
|
||||
<Group>
|
||||
<GroupName>Source Group 1</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
</Group>
|
||||
|
||||
</ProjectOpt>
|
|
@ -0,0 +1,412 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_proj.xsd">
|
||||
|
||||
<SchemaVersion>1.1</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Targets>
|
||||
<Target>
|
||||
<TargetName>project</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
<Device>M2S010</Device>
|
||||
<Vendor>Microsemi</Vendor>
|
||||
<Cpu>IRAM(0x20000000-0x2000FFFF) IROM(0x0-0x3FFFF) CLOCK(20000000) CPUTYPE("Cortex-M3")</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
<StartupFile></StartupFile>
|
||||
<FlashDriverDll>UL2CM3(-O207 -S9 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0M2Sxxx_256 -FS00 -FL040000)</FlashDriverDll>
|
||||
<DeviceId>6800</DeviceId>
|
||||
<RegisterFile></RegisterFile>
|
||||
<MemoryEnv></MemoryEnv>
|
||||
<Cmp></Cmp>
|
||||
<Asm></Asm>
|
||||
<Linker></Linker>
|
||||
<OHString></OHString>
|
||||
<InfinionOptionDll></InfinionOptionDll>
|
||||
<SLE66CMisc></SLE66CMisc>
|
||||
<SLE66AMisc></SLE66AMisc>
|
||||
<SLE66LinkerMisc></SLE66LinkerMisc>
|
||||
<SFDFile></SFDFile>
|
||||
<bCustSvd>0</bCustSvd>
|
||||
<UseEnv>0</UseEnv>
|
||||
<BinPath></BinPath>
|
||||
<IncludePath></IncludePath>
|
||||
<LibPath></LibPath>
|
||||
<RegisterFilePath></RegisterFilePath>
|
||||
<DBRegisterFilePath></DBRegisterFilePath>
|
||||
<TargetStatus>
|
||||
<Error>0</Error>
|
||||
<ExitCodeStop>0</ExitCodeStop>
|
||||
<ButtonStop>0</ButtonStop>
|
||||
<NotGenerated>0</NotGenerated>
|
||||
<InvalidFlash>1</InvalidFlash>
|
||||
</TargetStatus>
|
||||
<OutputDirectory>.\obj\</OutputDirectory>
|
||||
<OutputName>rtthread</OutputName>
|
||||
<CreateExecutable>1</CreateExecutable>
|
||||
<CreateLib>0</CreateLib>
|
||||
<CreateHexFile>1</CreateHexFile>
|
||||
<DebugInformation>1</DebugInformation>
|
||||
<BrowseInformation>1</BrowseInformation>
|
||||
<ListingPath>.\obj\</ListingPath>
|
||||
<HexFormatSelection>1</HexFormatSelection>
|
||||
<Merge32K>0</Merge32K>
|
||||
<CreateBatchFile>0</CreateBatchFile>
|
||||
<BeforeCompile>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopU1X>0</nStopU1X>
|
||||
<nStopU2X>0</nStopU2X>
|
||||
</BeforeCompile>
|
||||
<BeforeMake>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
</BeforeMake>
|
||||
<AfterMake>
|
||||
<RunUserProg1>1</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name>fromelf --bin -o "$L@L.bin" "#L"</UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
</AfterMake>
|
||||
<SelectedForBatchBuild>0</SelectedForBatchBuild>
|
||||
<SVCSIdString></SVCSIdString>
|
||||
</TargetCommonOption>
|
||||
<CommonProperty>
|
||||
<UseCPPCompiler>0</UseCPPCompiler>
|
||||
<RVCTCodeConst>0</RVCTCodeConst>
|
||||
<RVCTZI>0</RVCTZI>
|
||||
<RVCTOtherData>0</RVCTOtherData>
|
||||
<ModuleSelection>0</ModuleSelection>
|
||||
<IncludeInBuild>1</IncludeInBuild>
|
||||
<AlwaysBuild>0</AlwaysBuild>
|
||||
<GenerateAssemblyFile>0</GenerateAssemblyFile>
|
||||
<AssembleAssemblyFile>0</AssembleAssemblyFile>
|
||||
<PublicsOnly>0</PublicsOnly>
|
||||
<StopOnExitCode>3</StopOnExitCode>
|
||||
<CustomArgument></CustomArgument>
|
||||
<IncludeLibraryModules></IncludeLibraryModules>
|
||||
<ComprImg>1</ComprImg>
|
||||
</CommonProperty>
|
||||
<DllOption>
|
||||
<SimDllName>SARMCM3.DLL</SimDllName>
|
||||
<SimDllArguments>-MPU</SimDllArguments>
|
||||
<SimDlgDll>DCM.DLL</SimDlgDll>
|
||||
<SimDlgDllArguments>-pCM3</SimDlgDllArguments>
|
||||
<TargetDllName>SARMCM3.DLL</TargetDllName>
|
||||
<TargetDllArguments>-MPU</TargetDllArguments>
|
||||
<TargetDlgDll>TCM.DLL</TargetDlgDll>
|
||||
<TargetDlgDllArguments>-pCM3</TargetDlgDllArguments>
|
||||
</DllOption>
|
||||
<DebugOption>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
<Oh166RecLen>16</Oh166RecLen>
|
||||
</OPTHX>
|
||||
<Simulator>
|
||||
<UseSimulator>0</UseSimulator>
|
||||
<LoadApplicationAtStartup>1</LoadApplicationAtStartup>
|
||||
<RunToMain>1</RunToMain>
|
||||
<RestoreBreakpoints>1</RestoreBreakpoints>
|
||||
<RestoreWatchpoints>1</RestoreWatchpoints>
|
||||
<RestoreMemoryDisplay>1</RestoreMemoryDisplay>
|
||||
<RestoreFunctions>1</RestoreFunctions>
|
||||
<RestoreToolbox>1</RestoreToolbox>
|
||||
<LimitSpeedToRealTime>0</LimitSpeedToRealTime>
|
||||
<RestoreSysVw>1</RestoreSysVw>
|
||||
</Simulator>
|
||||
<Target>
|
||||
<UseTarget>1</UseTarget>
|
||||
<LoadApplicationAtStartup>1</LoadApplicationAtStartup>
|
||||
<RunToMain>1</RunToMain>
|
||||
<RestoreBreakpoints>1</RestoreBreakpoints>
|
||||
<RestoreWatchpoints>1</RestoreWatchpoints>
|
||||
<RestoreMemoryDisplay>1</RestoreMemoryDisplay>
|
||||
<RestoreFunctions>0</RestoreFunctions>
|
||||
<RestoreToolbox>1</RestoreToolbox>
|
||||
<RestoreTracepoints>1</RestoreTracepoints>
|
||||
<RestoreSysVw>1</RestoreSysVw>
|
||||
<UsePdscDebugDescription>0</UsePdscDebugDescription>
|
||||
</Target>
|
||||
<RunDebugAfterBuild>0</RunDebugAfterBuild>
|
||||
<TargetSelection>6</TargetSelection>
|
||||
<SimDlls>
|
||||
<CpuDll></CpuDll>
|
||||
<CpuDllArguments></CpuDllArguments>
|
||||
<PeripheralDll></PeripheralDll>
|
||||
<PeripheralDllArguments></PeripheralDllArguments>
|
||||
<InitializationFile></InitializationFile>
|
||||
</SimDlls>
|
||||
<TargetDlls>
|
||||
<CpuDll></CpuDll>
|
||||
<CpuDllArguments></CpuDllArguments>
|
||||
<PeripheralDll></PeripheralDll>
|
||||
<PeripheralDllArguments></PeripheralDllArguments>
|
||||
<InitializationFile></InitializationFile>
|
||||
<Driver>Segger\JL2CM3.dll</Driver>
|
||||
</TargetDlls>
|
||||
</DebugOption>
|
||||
<Utilities>
|
||||
<Flash1>
|
||||
<UseTargetDll>1</UseTargetDll>
|
||||
<UseExternalTool>0</UseExternalTool>
|
||||
<RunIndependent>0</RunIndependent>
|
||||
<UpdateFlashBeforeDebugging>1</UpdateFlashBeforeDebugging>
|
||||
<Capability>0</Capability>
|
||||
<DriverSelection>-1</DriverSelection>
|
||||
</Flash1>
|
||||
<bUseTDR>1</bUseTDR>
|
||||
<Flash2>BIN\UL2CM3.DLL</Flash2>
|
||||
<Flash3></Flash3>
|
||||
<Flash4></Flash4>
|
||||
<pFcarmOut></pFcarmOut>
|
||||
<pFcarmGrp></pFcarmGrp>
|
||||
<pFcArmRoot></pFcArmRoot>
|
||||
<FcArmLst>0</FcArmLst>
|
||||
</Utilities>
|
||||
<TargetArmAds>
|
||||
<ArmAdsMisc>
|
||||
<GenerateListings>0</GenerateListings>
|
||||
<asHll>1</asHll>
|
||||
<asAsm>1</asAsm>
|
||||
<asMacX>1</asMacX>
|
||||
<asSyms>1</asSyms>
|
||||
<asFals>1</asFals>
|
||||
<asDbgD>1</asDbgD>
|
||||
<asForm>1</asForm>
|
||||
<ldLst>0</ldLst>
|
||||
<ldmm>1</ldmm>
|
||||
<ldXref>1</ldXref>
|
||||
<BigEnd>0</BigEnd>
|
||||
<AdsALst>1</AdsALst>
|
||||
<AdsACrf>1</AdsACrf>
|
||||
<AdsANop>0</AdsANop>
|
||||
<AdsANot>0</AdsANot>
|
||||
<AdsLLst>1</AdsLLst>
|
||||
<AdsLmap>1</AdsLmap>
|
||||
<AdsLcgr>1</AdsLcgr>
|
||||
<AdsLsym>1</AdsLsym>
|
||||
<AdsLszi>1</AdsLszi>
|
||||
<AdsLtoi>1</AdsLtoi>
|
||||
<AdsLsun>1</AdsLsun>
|
||||
<AdsLven>1</AdsLven>
|
||||
<AdsLsxf>1</AdsLsxf>
|
||||
<RvctClst>0</RvctClst>
|
||||
<GenPPlst>0</GenPPlst>
|
||||
<AdsCpuType>"Cortex-M3"</AdsCpuType>
|
||||
<RvctDeviceName></RvctDeviceName>
|
||||
<mOS>0</mOS>
|
||||
<uocRom>0</uocRom>
|
||||
<uocRam>0</uocRam>
|
||||
<hadIROM>1</hadIROM>
|
||||
<hadIRAM>1</hadIRAM>
|
||||
<hadXRAM>0</hadXRAM>
|
||||
<uocXRam>0</uocXRam>
|
||||
<RvdsVP>0</RvdsVP>
|
||||
<hadIRAM2>0</hadIRAM2>
|
||||
<hadIROM2>0</hadIROM2>
|
||||
<StupSel>8</StupSel>
|
||||
<useUlib>0</useUlib>
|
||||
<EndSel>0</EndSel>
|
||||
<uLtcg>0</uLtcg>
|
||||
<RoSelD>3</RoSelD>
|
||||
<RwSelD>3</RwSelD>
|
||||
<CodeSel>0</CodeSel>
|
||||
<OptFeed>0</OptFeed>
|
||||
<NoZi1>0</NoZi1>
|
||||
<NoZi2>0</NoZi2>
|
||||
<NoZi3>0</NoZi3>
|
||||
<NoZi4>0</NoZi4>
|
||||
<NoZi5>0</NoZi5>
|
||||
<Ro1Chk>0</Ro1Chk>
|
||||
<Ro2Chk>0</Ro2Chk>
|
||||
<Ro3Chk>0</Ro3Chk>
|
||||
<Ir1Chk>1</Ir1Chk>
|
||||
<Ir2Chk>0</Ir2Chk>
|
||||
<Ra1Chk>0</Ra1Chk>
|
||||
<Ra2Chk>0</Ra2Chk>
|
||||
<Ra3Chk>0</Ra3Chk>
|
||||
<Im1Chk>1</Im1Chk>
|
||||
<Im2Chk>0</Im2Chk>
|
||||
<OnChipMemories>
|
||||
<Ocm1>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm1>
|
||||
<Ocm2>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm2>
|
||||
<Ocm3>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm3>
|
||||
<Ocm4>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm4>
|
||||
<Ocm5>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm5>
|
||||
<Ocm6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm6>
|
||||
<IRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x10000</Size>
|
||||
</IRAM>
|
||||
<IROM>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x40000</Size>
|
||||
</IROM>
|
||||
<XRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</XRAM>
|
||||
<OCR_RVCT1>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT1>
|
||||
<OCR_RVCT2>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT2>
|
||||
<OCR_RVCT3>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT3>
|
||||
<OCR_RVCT4>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x40000</Size>
|
||||
</OCR_RVCT4>
|
||||
<OCR_RVCT5>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT5>
|
||||
<OCR_RVCT6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT6>
|
||||
<OCR_RVCT7>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT7>
|
||||
<OCR_RVCT8>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT8>
|
||||
<OCR_RVCT9>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x10000</Size>
|
||||
</OCR_RVCT9>
|
||||
<OCR_RVCT10>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT10>
|
||||
</OnChipMemories>
|
||||
<RvctStartVector></RvctStartVector>
|
||||
</ArmAdsMisc>
|
||||
<Cads>
|
||||
<interw>1</interw>
|
||||
<Optim>1</Optim>
|
||||
<oTime>0</oTime>
|
||||
<SplitLS>0</SplitLS>
|
||||
<OneElfS>0</OneElfS>
|
||||
<Strict>0</Strict>
|
||||
<EnumInt>0</EnumInt>
|
||||
<PlainCh>0</PlainCh>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<wLevel>0</wLevel>
|
||||
<uThumb>0</uThumb>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<uC99>0</uC99>
|
||||
<useXO>0</useXO>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Cads>
|
||||
<Aads>
|
||||
<interw>1</interw>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<thumb>0</thumb>
|
||||
<SplitLS>0</SplitLS>
|
||||
<SwStkChk>0</SwStkChk>
|
||||
<NoWarn>0</NoWarn>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<useXO>0</useXO>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Aads>
|
||||
<LDads>
|
||||
<umfTarg>0</umfTarg>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<noStLib>0</noStLib>
|
||||
<RepFail>1</RepFail>
|
||||
<useFile>0</useFile>
|
||||
<TextAddressRange>0x00000000</TextAddressRange>
|
||||
<DataAddressRange>0x20000000</DataAddressRange>
|
||||
<pXoBase></pXoBase>
|
||||
<ScatterFile>.\applications\link.sct</ScatterFile>
|
||||
<IncludeLibs></IncludeLibs>
|
||||
<IncludeLibsPath></IncludeLibsPath>
|
||||
<Misc></Misc>
|
||||
<LinkerInputFile></LinkerInputFile>
|
||||
<DisabledWarnings></DisabledWarnings>
|
||||
</LDads>
|
||||
</TargetArmAds>
|
||||
</TargetOption>
|
||||
<Groups>
|
||||
<Group>
|
||||
<GroupName>Source Group 1</GroupName>
|
||||
</Group>
|
||||
</Groups>
|
||||
</Target>
|
||||
</Targets>
|
||||
|
||||
</Project>
|
|
@ -0,0 +1,395 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_projx.xsd">
|
||||
|
||||
<SchemaVersion>2.1</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Targets>
|
||||
<Target>
|
||||
<TargetName>project</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<pCCUsed>5060750::V5.06 update 6 (build 750)::ARMCC</pCCUsed>
|
||||
<uAC6>0</uAC6>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
<Device>M2S010</Device>
|
||||
<Vendor>Microsemi</Vendor>
|
||||
<PackID>Microsemi.M2Sxxx.1.0.64</PackID>
|
||||
<PackURL>http://cores.actel-ip.com/CMSIS-Pack</PackURL>
|
||||
<Cpu>IRAM(0x20000000,0x10000) IROM(0x00000000,0x40000) CPUTYPE("Cortex-M3") CLOCK(12000000) ELITTLE</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
<StartupFile></StartupFile>
|
||||
<FlashDriverDll>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0M2Sxxx_256 -FS00 -FL040000 -FP0($$Device:M2S010$Flash\M2Sxxx_256.FLM))</FlashDriverDll>
|
||||
<DeviceId>0</DeviceId>
|
||||
<RegisterFile>$$Device:M2S010$CMSIS\m2sxxx.h</RegisterFile>
|
||||
<MemoryEnv></MemoryEnv>
|
||||
<Cmp></Cmp>
|
||||
<Asm></Asm>
|
||||
<Linker></Linker>
|
||||
<OHString></OHString>
|
||||
<InfinionOptionDll></InfinionOptionDll>
|
||||
<SLE66CMisc></SLE66CMisc>
|
||||
<SLE66AMisc></SLE66AMisc>
|
||||
<SLE66LinkerMisc></SLE66LinkerMisc>
|
||||
<SFDFile>$$Device:M2S010$SVD\M2Sxxx.svd</SFDFile>
|
||||
<bCustSvd>0</bCustSvd>
|
||||
<UseEnv>0</UseEnv>
|
||||
<BinPath></BinPath>
|
||||
<IncludePath></IncludePath>
|
||||
<LibPath></LibPath>
|
||||
<RegisterFilePath></RegisterFilePath>
|
||||
<DBRegisterFilePath></DBRegisterFilePath>
|
||||
<TargetStatus>
|
||||
<Error>0</Error>
|
||||
<ExitCodeStop>0</ExitCodeStop>
|
||||
<ButtonStop>0</ButtonStop>
|
||||
<NotGenerated>0</NotGenerated>
|
||||
<InvalidFlash>1</InvalidFlash>
|
||||
</TargetStatus>
|
||||
<OutputDirectory>.\obj\</OutputDirectory>
|
||||
<OutputName>rtthread</OutputName>
|
||||
<CreateExecutable>1</CreateExecutable>
|
||||
<CreateLib>0</CreateLib>
|
||||
<CreateHexFile>1</CreateHexFile>
|
||||
<DebugInformation>1</DebugInformation>
|
||||
<BrowseInformation>1</BrowseInformation>
|
||||
<ListingPath>.\obj\</ListingPath>
|
||||
<HexFormatSelection>1</HexFormatSelection>
|
||||
<Merge32K>0</Merge32K>
|
||||
<CreateBatchFile>0</CreateBatchFile>
|
||||
<BeforeCompile>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopU1X>0</nStopU1X>
|
||||
<nStopU2X>0</nStopU2X>
|
||||
</BeforeCompile>
|
||||
<BeforeMake>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopB1X>0</nStopB1X>
|
||||
<nStopB2X>0</nStopB2X>
|
||||
</BeforeMake>
|
||||
<AfterMake>
|
||||
<RunUserProg1>1</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name>fromelf --bin -o "$L@L.bin" "#L"</UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopA1X>0</nStopA1X>
|
||||
<nStopA2X>0</nStopA2X>
|
||||
</AfterMake>
|
||||
<SelectedForBatchBuild>0</SelectedForBatchBuild>
|
||||
<SVCSIdString></SVCSIdString>
|
||||
</TargetCommonOption>
|
||||
<CommonProperty>
|
||||
<UseCPPCompiler>0</UseCPPCompiler>
|
||||
<RVCTCodeConst>0</RVCTCodeConst>
|
||||
<RVCTZI>0</RVCTZI>
|
||||
<RVCTOtherData>0</RVCTOtherData>
|
||||
<ModuleSelection>0</ModuleSelection>
|
||||
<IncludeInBuild>1</IncludeInBuild>
|
||||
<AlwaysBuild>0</AlwaysBuild>
|
||||
<GenerateAssemblyFile>0</GenerateAssemblyFile>
|
||||
<AssembleAssemblyFile>0</AssembleAssemblyFile>
|
||||
<PublicsOnly>0</PublicsOnly>
|
||||
<StopOnExitCode>3</StopOnExitCode>
|
||||
<CustomArgument></CustomArgument>
|
||||
<IncludeLibraryModules></IncludeLibraryModules>
|
||||
<ComprImg>1</ComprImg>
|
||||
</CommonProperty>
|
||||
<DllOption>
|
||||
<SimDllName>SARMCM3.DLL</SimDllName>
|
||||
<SimDllArguments> </SimDllArguments>
|
||||
<SimDlgDll>DCM.DLL</SimDlgDll>
|
||||
<SimDlgDllArguments>-pCM3</SimDlgDllArguments>
|
||||
<TargetDllName>SARMCM3.DLL</TargetDllName>
|
||||
<TargetDllArguments></TargetDllArguments>
|
||||
<TargetDlgDll>TCM.DLL</TargetDlgDll>
|
||||
<TargetDlgDllArguments>-pCM3</TargetDlgDllArguments>
|
||||
</DllOption>
|
||||
<DebugOption>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
<Oh166RecLen>16</Oh166RecLen>
|
||||
</OPTHX>
|
||||
</DebugOption>
|
||||
<Utilities>
|
||||
<Flash1>
|
||||
<UseTargetDll>1</UseTargetDll>
|
||||
<UseExternalTool>0</UseExternalTool>
|
||||
<RunIndependent>0</RunIndependent>
|
||||
<UpdateFlashBeforeDebugging>1</UpdateFlashBeforeDebugging>
|
||||
<Capability>1</Capability>
|
||||
<DriverSelection>-1</DriverSelection>
|
||||
</Flash1>
|
||||
<bUseTDR>1</bUseTDR>
|
||||
<Flash2>BIN\UL2CM3.DLL</Flash2>
|
||||
<Flash3></Flash3>
|
||||
<Flash4></Flash4>
|
||||
<pFcarmOut></pFcarmOut>
|
||||
<pFcarmGrp></pFcarmGrp>
|
||||
<pFcArmRoot></pFcArmRoot>
|
||||
<FcArmLst>0</FcArmLst>
|
||||
</Utilities>
|
||||
<TargetArmAds>
|
||||
<ArmAdsMisc>
|
||||
<GenerateListings>0</GenerateListings>
|
||||
<asHll>1</asHll>
|
||||
<asAsm>1</asAsm>
|
||||
<asMacX>1</asMacX>
|
||||
<asSyms>1</asSyms>
|
||||
<asFals>1</asFals>
|
||||
<asDbgD>1</asDbgD>
|
||||
<asForm>1</asForm>
|
||||
<ldLst>0</ldLst>
|
||||
<ldmm>1</ldmm>
|
||||
<ldXref>1</ldXref>
|
||||
<BigEnd>0</BigEnd>
|
||||
<AdsALst>1</AdsALst>
|
||||
<AdsACrf>1</AdsACrf>
|
||||
<AdsANop>0</AdsANop>
|
||||
<AdsANot>0</AdsANot>
|
||||
<AdsLLst>1</AdsLLst>
|
||||
<AdsLmap>1</AdsLmap>
|
||||
<AdsLcgr>1</AdsLcgr>
|
||||
<AdsLsym>1</AdsLsym>
|
||||
<AdsLszi>1</AdsLszi>
|
||||
<AdsLtoi>1</AdsLtoi>
|
||||
<AdsLsun>1</AdsLsun>
|
||||
<AdsLven>1</AdsLven>
|
||||
<AdsLsxf>1</AdsLsxf>
|
||||
<RvctClst>0</RvctClst>
|
||||
<GenPPlst>0</GenPPlst>
|
||||
<AdsCpuType>"Cortex-M3"</AdsCpuType>
|
||||
<RvctDeviceName></RvctDeviceName>
|
||||
<mOS>0</mOS>
|
||||
<uocRom>0</uocRom>
|
||||
<uocRam>0</uocRam>
|
||||
<hadIROM>1</hadIROM>
|
||||
<hadIRAM>1</hadIRAM>
|
||||
<hadXRAM>0</hadXRAM>
|
||||
<uocXRam>0</uocXRam>
|
||||
<RvdsVP>0</RvdsVP>
|
||||
<RvdsMve>0</RvdsMve>
|
||||
<hadIRAM2>0</hadIRAM2>
|
||||
<hadIROM2>0</hadIROM2>
|
||||
<StupSel>8</StupSel>
|
||||
<useUlib>0</useUlib>
|
||||
<EndSel>0</EndSel>
|
||||
<uLtcg>0</uLtcg>
|
||||
<nSecure>0</nSecure>
|
||||
<RoSelD>3</RoSelD>
|
||||
<RwSelD>3</RwSelD>
|
||||
<CodeSel>0</CodeSel>
|
||||
<OptFeed>0</OptFeed>
|
||||
<NoZi1>0</NoZi1>
|
||||
<NoZi2>0</NoZi2>
|
||||
<NoZi3>0</NoZi3>
|
||||
<NoZi4>1</NoZi4>
|
||||
<NoZi5>0</NoZi5>
|
||||
<Ro1Chk>0</Ro1Chk>
|
||||
<Ro2Chk>0</Ro2Chk>
|
||||
<Ro3Chk>0</Ro3Chk>
|
||||
<Ir1Chk>1</Ir1Chk>
|
||||
<Ir2Chk>0</Ir2Chk>
|
||||
<Ra1Chk>0</Ra1Chk>
|
||||
<Ra2Chk>0</Ra2Chk>
|
||||
<Ra3Chk>0</Ra3Chk>
|
||||
<Im1Chk>1</Im1Chk>
|
||||
<Im2Chk>0</Im2Chk>
|
||||
<OnChipMemories>
|
||||
<Ocm1>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm1>
|
||||
<Ocm2>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm2>
|
||||
<Ocm3>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm3>
|
||||
<Ocm4>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm4>
|
||||
<Ocm5>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm5>
|
||||
<Ocm6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm6>
|
||||
<IRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x10000</Size>
|
||||
</IRAM>
|
||||
<IROM>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x40000</Size>
|
||||
</IROM>
|
||||
<XRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</XRAM>
|
||||
<OCR_RVCT1>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT1>
|
||||
<OCR_RVCT2>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT2>
|
||||
<OCR_RVCT3>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT3>
|
||||
<OCR_RVCT4>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x40000</Size>
|
||||
</OCR_RVCT4>
|
||||
<OCR_RVCT5>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT5>
|
||||
<OCR_RVCT6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT6>
|
||||
<OCR_RVCT7>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT7>
|
||||
<OCR_RVCT8>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT8>
|
||||
<OCR_RVCT9>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x10000</Size>
|
||||
</OCR_RVCT9>
|
||||
<OCR_RVCT10>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT10>
|
||||
</OnChipMemories>
|
||||
<RvctStartVector></RvctStartVector>
|
||||
</ArmAdsMisc>
|
||||
<Cads>
|
||||
<interw>1</interw>
|
||||
<Optim>1</Optim>
|
||||
<oTime>0</oTime>
|
||||
<SplitLS>0</SplitLS>
|
||||
<OneElfS>1</OneElfS>
|
||||
<Strict>0</Strict>
|
||||
<EnumInt>0</EnumInt>
|
||||
<PlainCh>0</PlainCh>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<wLevel>2</wLevel>
|
||||
<uThumb>0</uThumb>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<uC99>0</uC99>
|
||||
<uGnu>0</uGnu>
|
||||
<useXO>0</useXO>
|
||||
<v6Lang>1</v6Lang>
|
||||
<v6LangP>1</v6LangP>
|
||||
<vShortEn>1</vShortEn>
|
||||
<vShortWch>1</vShortWch>
|
||||
<v6Lto>0</v6Lto>
|
||||
<v6WtE>0</v6WtE>
|
||||
<v6Rtti>0</v6Rtti>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Cads>
|
||||
<Aads>
|
||||
<interw>1</interw>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<thumb>0</thumb>
|
||||
<SplitLS>0</SplitLS>
|
||||
<SwStkChk>0</SwStkChk>
|
||||
<NoWarn>0</NoWarn>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<useXO>0</useXO>
|
||||
<uClangAs>0</uClangAs>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Aads>
|
||||
<LDads>
|
||||
<umfTarg>0</umfTarg>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<noStLib>0</noStLib>
|
||||
<RepFail>1</RepFail>
|
||||
<useFile>0</useFile>
|
||||
<TextAddressRange>0x00000000</TextAddressRange>
|
||||
<DataAddressRange>0x20000000</DataAddressRange>
|
||||
<pXoBase></pXoBase>
|
||||
<ScatterFile>.\applications\link.sct</ScatterFile>
|
||||
<IncludeLibs></IncludeLibs>
|
||||
<IncludeLibsPath></IncludeLibsPath>
|
||||
<Misc></Misc>
|
||||
<LinkerInputFile></LinkerInputFile>
|
||||
<DisabledWarnings></DisabledWarnings>
|
||||
</LDads>
|
||||
</TargetArmAds>
|
||||
</TargetOption>
|
||||
<Groups>
|
||||
<Group>
|
||||
<GroupName>Source Group 1</GroupName>
|
||||
</Group>
|
||||
</Groups>
|
||||
</Target>
|
||||
</Targets>
|
||||
|
||||
<RTE>
|
||||
<apis/>
|
||||
<components/>
|
||||
<files/>
|
||||
</RTE>
|
||||
|
||||
</Project>
|