![Cypress EZ-BLE PRoC AN9684 Getting Started Download Page 42](http://html1.mh-extra.com/html/cypress/ez-ble-proc-an9684/ez-ble-proc-an9684_getting-started_2705915042.webp)
Getting Started With EZ-
BLE™ PRoC™ Module
www.cypress.com
Document No.: 001-96841 Rev. **
42
B u i l d i n g a n d G e n e r a t i n g H e x F i l e
Compile and Build the project by choosing
Build
>
Build My_First_Project
as shown in
Figure 54.
Figure 54 Compiling the Project
case
MILD_ALERT:
if
(--blinkTimeout == 0)
{
Alert_LED_Write(Alert_LED_Read() ^ 0x01);
blinkTimeout = BLINK_TIMEOUT;
}
break
;
case
HIGH_ALERT:
Alert_LED_Write(LED_ON);
break
;
default
:
break
;
}
bleState = CyBle_GetState();
if
(bleState != CYBLE_STATE_STOPPED &&
bleState != CYBLE_STATE_INITIALIZING)
{
/* Configure BLESS in DeepSleep mode */
CyBle_EnterLPM(CYBLE_BLESS_DEEPSLEEP);
/* Configure PRoC BLE system in sleep mode */
CySysPmSleep();
/* BLE link layer timing interrupt will wake up the system */
}
}
}
}