41#include <ti/devices/DeviceFamily.h>
42#include DeviceFamily_constructPath(driverlib/ioc.h)
43#include DeviceFamily_constructPath(driverlib/cpu.h)
45#include <ti/drivers/Board.h>
54void CC2650STK_sendExtFlashByte(PIN_Handle pinHandle, uint8_t
byte)
59 PIN_setOutputValue(pinHandle, IOID_14, 0);
61 for (i = 0; i < 8; i++) {
62 PIN_setOutputValue(pinHandle, IOID_17, 0);
65 PIN_setOutputValue(pinHandle, IOID_19, (
byte >> (7 - i)) & 0x01);
66 PIN_setOutputValue(pinHandle, IOID_17, 1);
76 PIN_setOutputValue(pinHandle, IOID_17, 0);
77 PIN_setOutputValue(pinHandle, IOID_14, 1);
91 PIN_Config extFlashPinTable[] = {
92 IOID_14 | 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_14, 0);
108 PIN_setOutputValue(extFlashPinHandle, IOID_14, 1);
112 PIN_close(extFlashPinHandle);
126 PIN_Config extFlashPinTable[] = {
128 IOID_14 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL |
129 PIN_INPUT_DIS | PIN_DRVSTR_MED,
131 IOID_17 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL |
132 PIN_INPUT_DIS | PIN_DRVSTR_MED,
134 IOID_19 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL |
135 PIN_INPUT_DIS | PIN_DRVSTR_MED,
137 IOID_18 | PIN_INPUT_EN | PIN_PULLDOWN,
140 PIN_State extFlashPinState;
141 PIN_Handle extFlashPinHandle = PIN_open(&extFlashPinState, extFlashPinTable);
143 uint8_t extFlashShutdown = 0xB9;
145 CC2650STK_sendExtFlashByte(extFlashPinHandle, extFlashShutdown);
147 PIN_close(extFlashPinHandle);
void CC2650STK_wakeUpExtFlash(void)
Wake up the external flash present on the board files.
void CC2650STK_shutDownExtFlash(void)
Turn off the external flash on LaunchPads.
void buzzer_init()
Initialise the buzzer.