Instellen syscfg (rode LED out, I2C op BMA222E)
This commit is contained in:
parent
894649cdfa
commit
d9732cd409
269
common.syscfg
269
common.syscfg
@ -1,197 +1,94 @@
|
|||||||
/*
|
/**
|
||||||
* Copyright (c) 2018-2019, Texas Instruments Incorporated
|
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||||
* All rights reserved.
|
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||||
*
|
* @cliArgs --board "/ti/boards/CC3220S_LAUNCHXL" --product "simplelink_cc32xx_sdk@4_20_00_07"
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* @versions {"data":"2020052512","timestamp":"2020052512","tool":"1.5.0+1397","templates":"2020052512"}
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
// @cliArgs --board /ti/boards/CC3220S_LAUNCHXL
|
|
||||||
|
|
||||||
/*
|
|
||||||
* common.syscfg
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var SimpleLinkWifi = scripting.addModule("/ti/drivers/net/wifi/SimpleLinkWifi");
|
/**
|
||||||
var Crypto = scripting.addModule("/ti/drivers/Crypto");
|
* Import the modules used in this configuration.
|
||||||
var Crypto1 = Crypto.addInstance();
|
*/
|
||||||
var Power = scripting.addModule("/ti/drivers/Power");
|
const DriverLib = scripting.addModule("/ti/devices/DriverLib");
|
||||||
var Board = scripting.addModule("/ti/drivers/Board");
|
const Display = scripting.addModule("/ti/display/Display");
|
||||||
var DriverLib = scripting.addModule("/ti/devices/DriverLib");
|
const Display1 = Display.addInstance();
|
||||||
var Display = scripting.addModule("/ti/display/Display");
|
const Board = scripting.addModule("/ti/drivers/Board");
|
||||||
var Display1 = Display.addInstance();
|
const Crypto = scripting.addModule("/ti/drivers/Crypto");
|
||||||
var DMA = scripting.addModule("/ti/drivers/DMA");
|
const Crypto1 = Crypto.addInstance();
|
||||||
var GPIO = scripting.addModule("/ti/drivers/GPIO");
|
const DMA = scripting.addModule("/ti/drivers/DMA");
|
||||||
var GPIO1 = GPIO.addInstance();
|
const GPIO = scripting.addModule("/ti/drivers/GPIO", {}, false);
|
||||||
var GPIO2 = GPIO.addInstance();
|
const GPIO1 = GPIO.addInstance();
|
||||||
var GPIO3 = GPIO.addInstance();
|
const I2C = scripting.addModule("/ti/drivers/I2C", {}, false);
|
||||||
var GPIO4 = GPIO.addInstance();
|
const I2C1 = I2C.addInstance();
|
||||||
var GPIO5 = GPIO.addInstance();
|
const Power = scripting.addModule("/ti/drivers/Power");
|
||||||
var GPIO6 = GPIO.addInstance();
|
const SPI = scripting.addModule("/ti/drivers/SPI");
|
||||||
var GPIO7 = GPIO.addInstance();
|
const SPI1 = SPI.addInstance();
|
||||||
var GPIO8 = GPIO.addInstance();
|
const Timer = scripting.addModule("/ti/drivers/Timer");
|
||||||
var SPI = scripting.addModule("/ti/drivers/SPI");
|
const Timer1 = Timer.addInstance();
|
||||||
var SPI1 = SPI.addInstance();
|
const Timer2 = Timer.addInstance();
|
||||||
var Timer = scripting.addModule("/ti/drivers/Timer");
|
const Timer3 = Timer.addInstance();
|
||||||
var Timer1 = Timer.addInstance();
|
const Watchdog = scripting.addModule("/ti/drivers/Watchdog");
|
||||||
var Timer2 = Timer.addInstance();
|
const Watchdog1 = Watchdog.addInstance();
|
||||||
var Timer3 = Timer.addInstance();
|
const SimpleLinkWifi = scripting.addModule("/ti/drivers/net/wifi/SimpleLinkWifi");
|
||||||
var Watchdog = scripting.addModule("/ti/drivers/Watchdog");
|
const SlNet = scripting.addModule("/ti/net/SlNet");
|
||||||
var Watchdog1 = Watchdog.addInstance();
|
const SlNet1 = SlNet.addInstance();
|
||||||
var SlNet = scripting.addModule("/ti/net/SlNet");
|
|
||||||
var SlNet1 = SlNet.addInstance();
|
/**
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to Crypto runtime APIs
|
* Write custom configuration values to the imported modules.
|
||||||
Crypto1.$name = "CONFIG_Crypto_0";
|
*/
|
||||||
// IO Retention Shutdown - IO groups to be retained during Shutdown
|
Display1.$name = "CONFIG_Display_0";
|
||||||
Power.ioRetentionShutdown = ["GRP_1"];
|
Display1.$hardware = system.deviceData.board.components.XDS110UART;
|
||||||
// Name
|
Display1.uart.$name = "CONFIG_UART_0";
|
||||||
Power.parkPins.$name = "ti_drivers_power_PowerCC32XXPins0";
|
Display1.uart.useDMA = true;
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to Display runtime APIs
|
Display1.uart.uart.$assign = "UART0";
|
||||||
Display1.$name = "CONFIG_Display_0";
|
Display1.uart.uart.txPin.$assign = "GP01";
|
||||||
// Use Hardware - Select the hardware to use, or 'None' to use available header pins
|
Display1.uart.uart.rxPin.$assign = "GP02";
|
||||||
Display1.$hardware = system.deviceData.board.components.XDS110UART;
|
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to UART runtime APIs
|
|
||||||
Display1.uart.$name = "CONFIG_UART_0";
|
|
||||||
// Use DMA
|
|
||||||
Display1.uart.useDMA = true;
|
|
||||||
// Name
|
|
||||||
Display1.uart.uart.$name = "MyUART1";
|
|
||||||
// Use Peripheral
|
|
||||||
Display1.uart.uart.$assign = "UART0";
|
|
||||||
// Assign pin
|
|
||||||
Display1.uart.uart.txPin.$assign = "GP01"; // pin number - 55
|
|
||||||
// Assign pin
|
|
||||||
Display1.uart.uart.rxPin.$assign = "GP02"; // pin number - 57
|
|
||||||
// Assign pin
|
|
||||||
Display1.uart.uart.txDmaChannel.$assign = "UDMA_CH9";
|
Display1.uart.uart.txDmaChannel.$assign = "UDMA_CH9";
|
||||||
// Assign pin
|
|
||||||
Display1.uart.uart.rxDmaChannel.$assign = "UDMA_CH8";
|
Display1.uart.uart.rxDmaChannel.$assign = "UDMA_CH8";
|
||||||
// Use Hardware - Select the hardware to use, or 'None' to use available header pins
|
|
||||||
GPIO1.$hardware = system.deviceData.board.components.SW2;
|
Crypto1.$name = "CONFIG_Crypto_0";
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
|
|
||||||
GPIO1.$name = "CONFIG_GPIO_BUTTON_0";
|
GPIO1.$name = "CONFIG_LED_R";
|
||||||
// Assign pin
|
GPIO1.$hardware = system.deviceData.board.components.LED_RED;
|
||||||
GPIO1.gpioPin.$assign = "boosterpack.3"; // P04
|
|
||||||
// Use Hardware - Select the hardware to use, or 'None' to use available header pins
|
I2C1.$hardware = system.deviceData.board.components.LP_I2C;
|
||||||
GPIO2.$hardware = system.deviceData.board.components.SW3;
|
I2C1.$name = "CONFIG_I2C";
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
|
|
||||||
GPIO2.$name = "CONFIG_GPIO_BUTTON_1";
|
Power.ioRetentionShutdown = ["GRP_1"];
|
||||||
// Assign pin
|
Power.parkPins.$name = "ti_drivers_power_PowerCC32XXPins0";
|
||||||
GPIO2.gpioPin.$assign = "boosterpack.11"; // P15
|
|
||||||
// Use Hardware - Select the hardware to use, or 'None' to use available header pins
|
SPI1.$name = "CONFIG_SPI_0";
|
||||||
GPIO3.$hardware = system.deviceData.board.components.LED0;
|
SPI1.mode = "Four Pin SS Active Low";
|
||||||
// Output Strength - Specifies the output strength
|
SPI1.defaultTxBufferValue = "0";
|
||||||
GPIO3.outputStrength = "High";
|
SPI1.spi.$assign = "SPI0";
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
|
SPI1.spi.sclkPin.$assign = "boosterpack.7";
|
||||||
GPIO3.$name = "CONFIG_GPIO_LED_0";
|
SPI1.spi.misoPin.$assign = "boosterpack.14";
|
||||||
// Use Hardware - Select the hardware to use, or 'None' to use available header pins
|
SPI1.spi.mosiPin.$assign = "boosterpack.15";
|
||||||
GPIO4.$hardware = system.deviceData.board.components.LED2;
|
SPI1.spi.ssPin.$assign = "boosterpack.18";
|
||||||
// Output Strength - Specifies the output strength
|
|
||||||
GPIO4.outputStrength = "High";
|
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
|
|
||||||
GPIO4.$name = "CONFIG_GPIO_LED_1";
|
|
||||||
// Use Hardware - Select the hardware to use, or 'None' to use available header pins
|
|
||||||
GPIO5.$hardware = system.deviceData.board.components.LED1;
|
|
||||||
// Output Strength - Specifies the output strength
|
|
||||||
GPIO5.outputStrength = "High";
|
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
|
|
||||||
GPIO5.$name = "CONFIG_GPIO_LED_2";
|
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
|
|
||||||
GPIO6.$name = "CONFIG_GPIO_0";
|
|
||||||
// Mode - Select the GPIO mode
|
|
||||||
GPIO6.mode = "Dynamic";
|
|
||||||
// Assign pin
|
|
||||||
GPIO6.gpioPin.$assign = "boosterpack.19"; // P18
|
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
|
|
||||||
GPIO7.$name = "CONFIG_GPIO_1";
|
|
||||||
// Mode - Select the GPIO mode
|
|
||||||
GPIO7.mode = "Dynamic";
|
|
||||||
// Assign pin
|
|
||||||
GPIO7.gpioPin.$assign = "boosterpack.2"; // P58*
|
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
|
|
||||||
GPIO8.$name = "CONFIG_GPIO_2";
|
|
||||||
// Mode - Select the GPIO mode
|
|
||||||
GPIO8.mode = "Dynamic";
|
|
||||||
// Assign pin
|
|
||||||
GPIO8.gpioPin.$assign = "boosterpack.4"; // P03
|
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to SPI runtime APIs
|
|
||||||
SPI1.$name = "CONFIG_SPI_0";
|
|
||||||
// Mode - In three pin mode the SS signal is not used.
|
|
||||||
SPI1.mode = "Four Pin SS Active Low";
|
|
||||||
// Default TX Buffer Value - Specifies the default transmit buffer value.
|
|
||||||
SPI1.defaultTxBufferValue = "0";
|
|
||||||
// Name
|
|
||||||
SPI1.spi.$name = "MySPI1";
|
|
||||||
// Use Peripheral
|
|
||||||
SPI1.spi.$assign = "SPI0";
|
|
||||||
// Assign pin
|
|
||||||
SPI1.spi.sclkPin.$assign = "boosterpack.7"; // P05
|
|
||||||
// Assign pin
|
|
||||||
SPI1.spi.misoPin.$assign = "boosterpack.14"; // P06
|
|
||||||
// Assign pin
|
|
||||||
SPI1.spi.mosiPin.$assign = "boosterpack.15"; // P07
|
|
||||||
// Assign pin
|
|
||||||
SPI1.spi.ssPin.$assign = "boosterpack.18"; // P08
|
|
||||||
// Assign pin
|
|
||||||
SPI1.spi.dmaRxChannel.$assign = "UDMA_CH6";
|
SPI1.spi.dmaRxChannel.$assign = "UDMA_CH6";
|
||||||
// Assign pin
|
|
||||||
SPI1.spi.dmaTxChannel.$assign = "UDMA_CH7";
|
SPI1.spi.dmaTxChannel.$assign = "UDMA_CH7";
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to Timer runtime APIs
|
|
||||||
Timer1.$name = "CONFIG_TIMER_0";
|
Timer1.$name = "CONFIG_TIMER_0";
|
||||||
// Timer Type
|
Timer1.timerType = "32 Bits";
|
||||||
Timer1.timerType = "32 Bits";
|
|
||||||
// Name
|
|
||||||
Timer1.timer.$name = "MyTimer1";
|
|
||||||
// Use Peripheral
|
|
||||||
Timer1.timer.$assign = "Timer0";
|
Timer1.timer.$assign = "Timer0";
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to Timer runtime APIs
|
|
||||||
Timer2.$name = "CONFIG_TIMER_1";
|
Timer2.$name = "CONFIG_TIMER_1";
|
||||||
// Name
|
|
||||||
Timer2.timer.$name = "MyTimer1";
|
|
||||||
// Use Peripheral
|
|
||||||
Timer2.timer.$assign = "Timer1";
|
Timer2.timer.$assign = "Timer1";
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to Timer runtime APIs
|
|
||||||
Timer3.$name = "CONFIG_TIMER_2";
|
Timer3.$name = "CONFIG_TIMER_2";
|
||||||
// Name
|
|
||||||
Timer3.timer.$name = "MyTimer1";
|
|
||||||
// Use Peripheral
|
|
||||||
Timer3.timer.$assign = "Timer1";
|
Timer3.timer.$assign = "Timer1";
|
||||||
// Name - The C/C++ identifier used in applications as the index parameter passed to Watchdog runtime APIs
|
|
||||||
Watchdog1.$name = "CONFIG_WATCHDOG_0";
|
Watchdog1.$name = "CONFIG_WATCHDOG_0";
|
||||||
// Name
|
|
||||||
Watchdog1.watchdog.$name = "MyWATCHDOG1";
|
|
||||||
// Use Peripheral
|
|
||||||
Watchdog1.watchdog.$assign = "WATCHDOG0";
|
Watchdog1.watchdog.$assign = "WATCHDOG0";
|
||||||
// Name
|
|
||||||
SlNet1.$name = "CONFIG_SLNET";
|
SlNet1.$name = "CONFIG_SLNET";
|
||||||
// Interface Name - Specifies the name for this interface"
|
|
||||||
SlNet1.ifName = "CC32xx";
|
SlNet1.ifName = "CC32xx";
|
||||||
// Suggest solution
|
|
||||||
GPIO3.gpioPin.$suggestSolution = "64";
|
/**
|
||||||
// Suggest solution
|
* Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
|
||||||
GPIO4.gpioPin.$suggestSolution = "1";
|
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
|
||||||
// Suggest solution
|
* re-solve from scratch.
|
||||||
GPIO5.gpioPin.$suggestSolution = "2";
|
*/
|
||||||
|
GPIO1.gpioPin.$suggestSolution = "boosterpack.29";
|
||||||
|
I2C1.i2c.$suggestSolution = "I2C0";
|
||||||
|
I2C1.i2c.sdaPin.$suggestSolution = "boosterpack.10";
|
||||||
|
I2C1.i2c.sclPin.$suggestSolution = "boosterpack.9";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user