43 #include <ti/devices/DeviceFamily.h> 44 #include DeviceFamily_constructPath(driverlib/ioc.h) 45 #include DeviceFamily_constructPath(driverlib/cpu.h) 46 #include <ti/drivers/rf/RF.h> 47 #include <ti/drivers/pin/PINCC26XX.h> 49 #include <ti/drivers/Board.h> 57 void CC1352R1_LAUNCHXL_sendExtFlashByte(PIN_Handle pinHandle, uint8_t byte)
62 PIN_setOutputValue(pinHandle, IOID_20, 0);
64 for (i = 0; i < 8; i++) {
65 PIN_setOutputValue(pinHandle, IOID_10, 0);
68 PIN_setOutputValue(pinHandle, IOID_9, (byte >> (7 - i)) & 0x01);
69 PIN_setOutputValue(pinHandle, IOID_10, 1);
79 PIN_setOutputValue(pinHandle, IOID_10, 0);
80 PIN_setOutputValue(pinHandle, IOID_20, 1);
94 PIN_Config extFlashPinTable[] = {
96 IOID_20 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL |
97 PIN_INPUT_DIS | PIN_DRVSTR_MED,
100 PIN_State extFlashPinState;
101 PIN_Handle extFlashPinHandle = PIN_open(&extFlashPinState, extFlashPinTable);
109 PIN_setOutputValue(extFlashPinHandle, IOID_20, 0);
112 PIN_setOutputValue(extFlashPinHandle, IOID_20, 1);
116 PIN_close(extFlashPinHandle);
130 PIN_Config extFlashPinTable[] = {
132 IOID_20 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL |
133 PIN_INPUT_DIS | PIN_DRVSTR_MED,
135 IOID_10 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL |
136 PIN_INPUT_DIS | PIN_DRVSTR_MED,
138 IOID_9 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL |
139 PIN_INPUT_DIS | PIN_DRVSTR_MED,
141 IOID_8 | PIN_INPUT_EN | PIN_PULLDOWN,
144 PIN_State extFlashPinState;
145 PIN_Handle extFlashPinHandle = PIN_open(&extFlashPinState, extFlashPinTable);
147 uint8_t extFlashShutdown = 0xB9;
149 CC1352R1_LAUNCHXL_sendExtFlashByte(extFlashPinHandle, extFlashShutdown);
151 PIN_close(extFlashPinHandle);
158 void Board_initHook()
void CC1352R1_LAUNCHXL_shutDownExtFlash(void)
Shut down the external flash present on the board files.
void CC1352R1_LAUNCHXL_wakeUpExtFlash(void)
Wake up the external flash present on the board files.