Skip to content

Commit

Permalink
Update CC3220SF SDK to v3.10.00.04
Browse files Browse the repository at this point in the history
- Update CMakes as required.
- Update code as required.
- Bump platform version.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
  • Loading branch information
josesimoes committed May 16, 2019
1 parent 0bb61ad commit 600017c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 26 deletions.
1 change: 0 additions & 1 deletion CMake/Modules/TI_SimpleLink_CC32xx_sources.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ set(BoardDrivers_SRCS
I2C.c
I2CCC32XX.c
I2S.c
I2SCC32XXDMA.c
PowerCC32XX.c
PowerCC32XX_asm.sm4g
PWM.c
Expand Down
33 changes: 15 additions & 18 deletions targets/TI-SimpleLink/TI_CC3220SF_LAUNCHXL/CC3220SF_LAUNCHXL.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,34 +353,31 @@ const uint_least8_t I2C_count = CC3220SF_LAUNCHXL_I2CCOUNT;
* =============================== I2S ===============================
*/
#include <ti/drivers/I2S.h>
#include <ti/drivers/i2s/I2SCC32XXDMA.h>
#include <ti/drivers/i2s/I2SCC32XX.h>

I2SCC32XXDMA_Object i2sCC3220SObjects[CC3220SF_LAUNCHXL_I2SCOUNT];
I2SCC32XX_Object i2sCC3220SObjects[CC3220S_LAUNCHXL_I2SCOUNT];

const I2SCC32XXDMA_HWAttrsV1 i2sCC3220SHWAttrs[CC3220SF_LAUNCHXL_I2SCOUNT] = {
const I2SCC32XX_HWAttrs i2sCC3220SHWAttrs[CC3220S_LAUNCHXL_I2SCOUNT] = {
{
.baseAddr = I2S_BASE,
.intNum = INT_I2S,
.intPriority = (~0),
.rxChannelIndex = UDMA_CH4_I2S_RX,
.txChannelIndex = UDMA_CH5_I2S_TX,
.xr0Pin = I2SCC32XXDMA_PIN_64_McAXR0,
.xr1Pin = I2SCC32XXDMA_PIN_50_McAXR1,
.clkxPin = I2SCC32XXDMA_PIN_62_McACLKX,
.clkPin = I2SCC32XXDMA_PIN_53_McACLK,
.fsxPin = I2SCC32XXDMA_PIN_63_McAFSX,
.pinSD1 = I2SCC32XX_PIN_50_SD1,
.pinSD0 = I2SCC32XX_PIN_64_SD0,
.pinSCK = I2SCC32XX_PIN_53_SCK,
.pinSCKX = I2SCC32XX_PIN_UNUSED,
.pinWS = I2SCC32XX_PIN_63_WS,
.rxChannelIndex = UDMA_CH4_I2S_RX,
.txChannelIndex = UDMA_CH5_I2S_TX,
.intPriority = 0x40,
}
};

const I2S_Config I2S_config[CC3220SF_LAUNCHXL_I2SCOUNT] = {
const I2S_Config I2S_config[CC3220S_LAUNCHXL_I2SCOUNT] = {
{
.fxnTablePtr = &I2SCC32XXDMA_fxnTable,
.object = &i2sCC3220SObjects[CC3220SF_LAUNCHXL_I2S0],
.hwAttrs = &i2sCC3220SHWAttrs[CC3220SF_LAUNCHXL_I2S0]
.object = &i2sCC3220SObjects[CC3220S_LAUNCHXL_I2S0],
.hwAttrs = &i2sCC3220SHWAttrs[CC3220S_LAUNCHXL_I2S0]
}
};

const uint_least8_t I2S_count = CC3220SF_LAUNCHXL_I2SCOUNT;
const uint_least8_t I2S_count = CC3220S_LAUNCHXL_I2SCOUNT;

/*
* =============================== Power ===============================
Expand Down
12 changes: 6 additions & 6 deletions targets/TI-SimpleLink/TI_CC3220SF_LAUNCHXL/CC3220SF_LAUNCHXL.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ typedef enum CC3220SF_LAUNCHXL_I2CName {
} CC3220SF_LAUNCHXL_I2CName;

/*!
* @def CC3220SF_LAUNCHXL_I2SName
* @brief Enum of I2S names on the CC3220SF_LAUNCHXL dev board
* @def CC3220S_LAUNCHXL_I2SName
* @brief Enum of I2S names on the CC3220S_LAUNCHXL dev board
*/
typedef enum CC3220SF_LAUNCHXL_I2SName {
CC3220SF_LAUNCHXL_I2S0 = 0,
typedef enum CC3220S_LAUNCHXL_I2SName {
CC3220S_LAUNCHXL_I2S0 = 0,

CC3220SF_LAUNCHXL_I2SCOUNT
} CC3220SF_LAUNCHXL_I2SName;
CC3220S_LAUNCHXL_I2SCOUNT
} CC3220S_LAUNCHXL_I2SName;

/*!
* @def CC3220SF_LAUNCHXL_PWMName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define PLATFORM_HAS_RNG TRUE
/////////////////////////////////////

#define OEMSYSTEMINFOSTRING "nanoCLR running @ @TI_BOARD@ built with TI SL CC32xx SDK v2.40.01.01"
#define OEMSYSTEMINFOSTRING "nanoCLR running @ @TI_BOARD@ built with TI SL CC32xx SDK v3.10.00.04"

/////////////////////////////////////
//#define EVENTS_HEART_BEAT GPIO_toggle(Board_GPIO_LED0)
Expand Down

0 comments on commit 600017c

Please sign in to comment.