DIS10/dis10_lab2.2/audio.syscfg
2024-02-22 11:29:05 +01:00

84 lines
3.5 KiB
Plaintext

/*
* Copyright (c) 2018-2021, 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.
*/
// @cliArgs --board /ti/boards/CC3220S_LAUNCHXL --rtos nortos
/*
* gpiointerrupt.syscfg
*/
/* ======== Boosterpacks ========= BroJZ 20220415*/
const CC3200AUDBOOST = scripting.addHardware("/ti/boards/boosterpacks/CC3200AUDBOOST");
/* ======== TIRTOS7 ======== */
if (system.getRTOS() === "tirtos7") {
const tirtos7_release_syscfg_js = system.getScript("tirtos7_release.syscfg.js");
}
/**
* Import the modules used in this configuration.
*/
const I2C = scripting.addModule("/ti/drivers/I2C");
const I2C1 = I2C.addInstance();
const I2S = scripting.addModule("/ti/drivers/I2S");
const I2S1 = I2S.addInstance();
const RTOS = scripting.addModule("/ti/drivers/RTOS");
/**
* Write custom configuration values to the imported modules.
*/
I2C1.$name = "CONFIG_I2C_0";
I2C1.$hardware = system.deviceData.board.components.LP_I2C;
I2S1.$name = "CONFIG_I2S_0";
I2S1.interruptPriority = "2";
I2S1.$hardware = CC3200AUDBOOST.components.CC3200AUDBOOST_I2S;
const Power = scripting.addModule("/ti/drivers/Power", {}, false);
Power.parkPins.$name = "ti_drivers_power_PowerCC32XXPins0";
RTOS.name = "NoRTOS";
/**
* Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
I2C1.i2c.$suggestSolution = "I2C0";
I2C1.i2c.sdaPin.$suggestSolution = "boosterpack.10";
I2C1.i2c.sclPin.$suggestSolution = "boosterpack.9";
I2S1.i2s.$suggestSolution = "McASP0";
I2S1.i2s.SD0Pin.$suggestSolution = "boosterpack.29";
I2S1.i2s.SD1Pin.$suggestSolution = "boosterpack.30";
I2S1.i2s.SCKPin.$suggestSolution = "boosterpack.28";
I2S1.i2s.WSPin.$suggestSolution = "boosterpack.27";
I2S1.i2s.dmaRxChannel.$suggestSolution = "UDMA_CH18";
I2S1.i2s.dmaTxChannel.$suggestSolution = "UDMA_CH19";