42 #include <ti/devices/DeviceFamily.h> 43 #include DeviceFamily_constructPath(driverlib/ioc.h) 44 #include DeviceFamily_constructPath(driverlib/cpu.h) 46 #include <ti/drivers/pin/PINCC26XX.h> 53 void CC26X2R1_LAUNCHXL_sendExtFlashByte(PIN_Handle pinHandle, uint8_t byte)
58 PIN_setOutputValue(pinHandle, IOID_20, 0);
60 for (i = 0; i < 8; i++) {
61 PIN_setOutputValue(pinHandle, IOID_10, 0);
64 PIN_setOutputValue(pinHandle, IOID_9, (byte >> (7 - i)) & 0x01);
65 PIN_setOutputValue(pinHandle, IOID_10, 1);
75 PIN_setOutputValue(pinHandle, IOID_10, 0);
76 PIN_setOutputValue(pinHandle, IOID_20, 1);
90 PIN_Config extFlashPinTable[] = {
92 IOID_20 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL |
93 PIN_INPUT_DIS | PIN_DRVSTR_MED,
96 PIN_State extFlashPinState;
97 PIN_Handle extFlashPinHandle = PIN_open(&extFlashPinState, extFlashPinTable);
105 PIN_setOutputValue(extFlashPinHandle, IOID_20, 0);
108 PIN_setOutputValue(extFlashPinHandle, IOID_20, 1);
112 PIN_close(extFlashPinHandle);
126 PIN_Config extFlashPinTable[] = {
128 IOID_20 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL |
129 PIN_INPUT_DIS | PIN_DRVSTR_MED,
131 IOID_10 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL |
132 PIN_INPUT_DIS | PIN_DRVSTR_MED,
134 IOID_9 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL |
135 PIN_INPUT_DIS | PIN_DRVSTR_MED,
137 IOID_8 | PIN_INPUT_EN | PIN_PULLDOWN,
140 PIN_State extFlashPinState;
141 PIN_Handle extFlashPinHandle = PIN_open(&extFlashPinState, extFlashPinTable);
143 uint8_t extFlashShutdown = 0xB9;
145 CC26X2R1_LAUNCHXL_sendExtFlashByte(extFlashPinHandle, extFlashShutdown);
147 PIN_close(extFlashPinHandle);
154 void Board_initHook()
void CC26X2R1_LAUNCHXL_shutDownExtFlash(void)
Shut down the external flash present on the board files.
void CC26X2R1_LAUNCHXL_wakeUpExtFlash(void)
Wake up the external flash present on the board files.