SPRAC94D September 2018 – March 2022 AFE030 , AFE031 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28076 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
Below are the steps taken to port boostxl_afe031_f28379d_pwmmode and boostxl_afe031_f28379d_dacmode from the LAUNCHXL-F28379D to the LAUNCHXL-F280049C after importing the projects into Code Composer Studio™.
//GPIO-23 - LaunchPad RED LED
GPIO_SetupPinMux(23, GPIO_MUX_CPU1, 0);
GPIO_SetupPinOptions(23, GPIO_OUTPUT, GPIO_PUSHPULL);
// GPIO-34 - LaunchPad GREEN LED
GPIO_SetupPinMux(34, GPIO_MUX_CPU1, 0);
GPIO_SetupPinOptions(34, GPIO_OUTPUT, GPIO_PUSHPULL);
//SD PIN
GPIO_SetupPinMux(9, GPIO_MUX_CPU1, 0);
GPIO_SetupPinOptions(9, GPIO_OUTPUT, GPIO_PUSHPULL);
// SD=0
GPIO_WritePin(9, 0);
//DAC Pin Enable
GPIO_SetupPinMux(8, GPIO_MUX_CPU1, 0);
GPIO_SetupPinOptions(8, GPIO_OUTPUT, GPIO_PUSHPULL);
// DAC=0
GPIO_WritePin(8, 0);
// INT Pin - Not available on LAUNCHXL-F280049C
// GPIO_SetupPinMux(123, GPIO_MUX_CPU1, 0);
// GPIO_SetupPinOptions(123, GPIO_OUTPUT, GPIO_PUSHPULL);
EALLOW;
// SPI_MOSI
GPIO_SetupPinOptions(16, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
// SPI_MISO
GPIO_SetupPinOptions(17, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
// SPI_CS
GPIO_SetupPinOptions(57, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
// SPI_CLK
GPIO_SetupPinOptions(56, GPIO_INPUT, GPIO_ASYNC | GPIO_PULLUP);
GPIO_SetupPinMux(16, GPIO_MUX_CPU1, 1);
GPIO_SetupPinMux(17, GPIO_MUX_CPU1, 1);
GPIO_SetupPinMux(57, GPIO_MUX_CPU1, 1);
GPIO_SetupPinMux(56, GPIO_MUX_CPU1, 1);
EDIS;
GPIO_WritePin(8, 1);}
GPIO_WritePin(8, 0); \