-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial checkin of core version 4.9.1
- Loading branch information
1 parent
c8fdc2b
commit 57227b8
Showing
4,182 changed files
with
909,489 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
############################################################## | ||
menu.cpu=Processor | ||
MSP-EXP432P401R.vid.0=0x2341 | ||
MSP-EXP432P401R.pid.0=0x0c9f | ||
MSP-EXP432P401R.name=RED LaunchPad w/ msp432 EMT (48MHz) | ||
MSP-EXP432P401R.build.mcu=cortex-m4 | ||
MSP-EXP432P401R.build.f_cpu=48000000L | ||
MSP-EXP432P401R.build.core=msp432 | ||
MSP-EXP432P401R.build.variant=MSP_EXP432P401R | ||
MSP-EXP432P401R.build.board=MSP_EXP432P401R | ||
MSP-EXP432P401R.build.ldscript=linker.cmd | ||
MSP-EXP432P401R.upload.tool=dslite | ||
MSP-EXP432P401R.upload.protocol=dslite | ||
MSP-EXP432P401R.upload.maximum_size=262144 | ||
MSP-EXP432P401R.upload.maximum_data_size=65536 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
/* | ||
* Copyright (c) 2014, Texas Instruments Incorporated | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* * Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* * Neither the name of Texas Instruments Incorporated nor the names of | ||
* its contributors may be used to endorse or promote products derived | ||
* from this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
/** ============================================================================ | ||
* @file Board.h | ||
* | ||
* @brief Generic Board Support APIs | ||
* | ||
* This header file should be included in library modules as follows: | ||
* @code | ||
* #include <ti/drivers/bsp/Board.h> | ||
* @endcode | ||
* | ||
* ============================================================================ | ||
*/ | ||
#ifndef __ti_drivers_bsp_Board_H | ||
#define __ti_drivers_bsp_Board_H | ||
|
||
#include <ti/drivers/UART.h> | ||
#include <ti/drivers/I2C.h> | ||
#include <ti/drivers/SPI.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define Board_LED_OFF (0) /* turn LED off */ | ||
#define Board_LED_ON (~0) /* turn LED on */ | ||
|
||
/* 0 is always a valid id for any configured driver with an "open" method */ | ||
#define Board_UART (0) | ||
#define Board_SPI (0) | ||
#define Board_SDSPI (0) | ||
#define Board_I2C (0) | ||
#define Board_WATCHDOG (0) | ||
#define Board_WIFI (0) | ||
#define Board_WIFI_SPI (1) | ||
|
||
/*! | ||
* @brief Initialize all board specific peripherals | ||
* | ||
* This function calls the peripheral specific initilization functions for all peripherals used. | ||
*/ | ||
extern void Board_init(void); | ||
|
||
/*! | ||
* @brief Initialize board specific DMA settings | ||
* | ||
* This function creates a hwi in case the DMA controller creates an error | ||
* interrupt, enables the DMA and supplies it with a uDMA control table. | ||
*/ | ||
extern void Board_initDMA(void); | ||
|
||
/*! | ||
* @brief Initialize the general board specific settings | ||
* | ||
* This function initializes the general board specific settings. This include | ||
* - Enable clock sources for peripherals | ||
*/ | ||
extern void Board_initGeneral(void); | ||
|
||
/*! | ||
* @brief Initialize board specific GPIO settings | ||
* | ||
* This function initializes the board specific GPIO settings and | ||
* then calls the GPIO_init API to initialize the GPIO module. | ||
* | ||
* The GPIOs controlled by the GPIO module are determined by the GPIO_config | ||
* variable. | ||
*/ | ||
extern void Board_initGPIO(void); | ||
|
||
/*! | ||
* @brief Initialize board specific SDSPI settings | ||
* | ||
* This function initializes the board specific SDSPI settings and then calls | ||
* the SDSPI_init API to initialize the SDSPI module. | ||
* | ||
* The SDSPI peripherals controlled by the SDSPI module are determined by the | ||
* SDSPI_config variable. | ||
*/ | ||
extern void Board_initSDSPI(void); | ||
|
||
/*! | ||
* @brief Initialize board specific Power management | ||
* | ||
* This function initializes the board specific power settings and then calls | ||
* the Power_init API to initialize the Power module. | ||
* | ||
*/ | ||
extern void Board_initPower(void); | ||
|
||
/*! | ||
* @brief Initialize board specific Watchdog settings | ||
* | ||
* This function initializes the board specific Watchdog settings and then | ||
* calls the Watchdog_init API to initialize the Watchdog module. | ||
* | ||
* The Watchdog peripherals controlled by the Watchdog module are determined | ||
* by the Watchdog_config variable. | ||
*/ | ||
extern void Board_initWatchdog(void); | ||
|
||
/*! | ||
* @brief Initialize board specific WiFi settings | ||
* | ||
* This function initializes the board specific WiFi settings and then calls | ||
* the WiFi_init API to initialize the WiFi module. | ||
* | ||
* The hardware resources controlled by the WiFi module are determined by the | ||
* WiFi_config variable. | ||
*/ | ||
extern void Board_initWiFi(void); | ||
|
||
/*! | ||
* @brief Initialize all board specific settings | ||
* | ||
* This function simply calls all defined board specific initilization | ||
* functions; e.g., driver initializtion, device pin configuration, ... | ||
*/ | ||
extern void Board_init(void); | ||
|
||
/*! | ||
* @brief Board specific I2C open function | ||
* | ||
* This function initializes the board specific I2C driver, the port specific | ||
* I2C pins, and then calls I2C_open() to return a I2C handle. | ||
* | ||
* The I2C peripherals controlled by the I2C module are determined by the | ||
* I2C_config variable. | ||
*/ | ||
extern I2C_Handle Board_openI2C(UInt i2cPortIndex, I2C_Params *i2cParams); | ||
|
||
/*! | ||
* @brief Board specific SPI open function | ||
* | ||
* This function initializes the board specific SPI driver, the port specific | ||
* SPI pins, and then calls SPI_open() to return a SPI handle. | ||
* | ||
* The SPI peripherals controlled by the SPI module are determined by the | ||
* SPI_config variable. | ||
*/ | ||
extern SPI_Handle Board_openSPI(UInt spiPortIndex, SPI_Params *spiParams); | ||
|
||
/*! | ||
* @brief Board specific UART open function | ||
* | ||
* This function initializes the board specific UART driver, the port specific | ||
* UART pins, and then calls UART_open() to return a UART handle. | ||
* | ||
* The UART peripherals controlled by the UART module are determined by the | ||
* UART_config variable. | ||
*/ | ||
extern UART_Handle Board_openUART(UInt uartPortIndex, UART_Params *uartParams); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __ti_drivers_bsp_Board_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Do not modify this file; it is automatically | ||
* generated and any modifications will be overwritten. | ||
* | ||
* @(#) xdc-D05 | ||
*/ | ||
|
||
#ifndef ti_drivers_bsp__ | ||
#define ti_drivers_bsp__ | ||
|
||
|
||
|
||
#endif /* ti_drivers_bsp__ */ |
137 changes: 137 additions & 0 deletions
137
cores/msp432/ti/platforms/emt432/include_gnu/MSP432P401R.lds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
/****************************************************************************** | ||
* | ||
* Copyright (C) 2012 - 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* | ||
* Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the | ||
* distribution. | ||
* | ||
* Neither the name of Texas Instruments Incorporated nor the names of | ||
* its contributors may be used to endorse or promote products derived | ||
* from this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
* GCC linker script for Texas Instruments MSP432P401R | ||
* | ||
* File creation date: 2015-01-20 | ||
* | ||
******************************************************************************/ | ||
|
||
MEMORY | ||
{ | ||
FLASH (RX) : ORIGIN = 0x00000000, LENGTH = 0x00040000 | ||
INFO_FLASH (RX) : ORIGIN = 0x00200000, LENGTH = 0x00004000 | ||
SRAM (RWX): ORIGIN = 0x20000000, LENGTH = 0x00010000 | ||
} | ||
|
||
REGION_ALIAS("REGION_TEXT", FLASH); | ||
REGION_ALIAS("REGION_BSS", SRAM); | ||
REGION_ALIAS("REGION_DATA", SRAM); | ||
REGION_ALIAS("REGION_STACK", SRAM); | ||
REGION_ALIAS("REGION_HEAP", SRAM); | ||
REGION_ALIAS("REGION_ARM_EXIDX", FLASH); | ||
REGION_ALIAS("REGION_ARM_EXTAB", FLASH); | ||
|
||
SECTIONS { | ||
|
||
PROVIDE (_intvecs_base_address = | ||
DEFINED(_intvecs_base_address) ? _intvecs_base_address : 0x0); | ||
|
||
.intvecs (_intvecs_base_address) : AT (_intvecs_base_address) { | ||
KEEP (*(.intvecs)) | ||
} > REGION_TEXT | ||
|
||
PROVIDE (_vtable_base_address = | ||
DEFINED(_vtable_base_address) ? _vtable_base_address : 0x20000000); | ||
|
||
.vtable (_vtable_base_address) : AT (_vtable_base_address) { | ||
KEEP (*(.vtable)) | ||
} > REGION_DATA | ||
|
||
.text : { | ||
CREATE_OBJECT_SYMBOLS | ||
KEEP (*(.text)) | ||
*(.text.*) | ||
. = ALIGN(0x4); | ||
KEEP (*(.ctors)) | ||
. = ALIGN(0x4); | ||
KEEP (*(.dtors)) | ||
. = ALIGN(0x4); | ||
__init_array_start = .; | ||
KEEP (*(.init_array*)) | ||
__init_array_end = .; | ||
*(.init) | ||
*(.fini*) | ||
} > REGION_TEXT | ||
|
||
.rodata : { | ||
*(.rodata) | ||
*(.rodata.*) | ||
} > REGION_TEXT | ||
|
||
__etext = .; | ||
|
||
.data : { | ||
__data_load__ = LOADADDR (.data); | ||
__data_start__ = .; | ||
KEEP (*(.data)) | ||
KEEP (*(.data*)) | ||
. = ALIGN (4); | ||
__data_end__ = .; | ||
} > REGION_DATA AT> REGION_TEXT | ||
|
||
.ARM.exidx : { | ||
__exidx_start = .; | ||
*(.ARM.exidx* .gnu.linkonce.armexidx.*) | ||
__exidx_end = .; | ||
} > REGION_ARM_EXIDX | ||
|
||
.ARM.extab : { | ||
*(.ARM.extab* .gnu.linkonce.armextab.*) | ||
} > REGION_ARM_EXTAB | ||
|
||
.bss : { | ||
__bss_start__ = .; | ||
*(.shbss) | ||
KEEP (*(.bss)) | ||
*(.bss.*) | ||
*(COMMON) | ||
. = ALIGN (4); | ||
__bss_end__ = .; | ||
} > REGION_BSS | ||
|
||
.stack : ALIGN(0x8) { | ||
_stack = .; | ||
__stack = .; | ||
KEEP(*(.stack)) | ||
} > REGION_STACK | ||
|
||
.heap : { | ||
__heap_start__ = .; | ||
end = __heap_start__; | ||
_end = end; | ||
__end = end; | ||
KEEP (*(.heap)) | ||
__heap_end__ = .; | ||
__HeapLimit = __heap_end__; | ||
} > REGION_HEAP | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Stub for Arduino header file - For added compatibility with existing arduino libraries | ||
// Include Energia instead | ||
#include "Energia.h" | ||
|
Oops, something went wrong.