Initial public release.
This commit is contained in:
parent
7b169e8116
commit
dac4af8d25
255 changed files with 68595 additions and 2 deletions
30
2020TPCAppNoDFU.cydsn/main_cm0p.c
Normal file
30
2020TPCAppNoDFU.cydsn/main_cm0p.c
Normal file
|
@ -0,0 +1,30 @@
|
|||
#include "project.h"
|
||||
|
||||
#include "COMM_IPC_Messages.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
__enable_irq();
|
||||
|
||||
#if(CY_BLE_STACK_MODE_IPC)
|
||||
/* Start BLE Controller for dual core mode */
|
||||
Cy_BLE_Start(NULL);
|
||||
#endif /* (CY_BLE_STACK_MODE_IPC)*/
|
||||
|
||||
COMM_InitIPCMessages();
|
||||
|
||||
/* Enable CM4. CY_CORTEX_M4_APPL_ADDR must be updated if CM4 memory layout is changed. */
|
||||
Cy_SysEnableCM4(CY_CORTEX_M4_APPL_ADDR);
|
||||
|
||||
while(true)
|
||||
{
|
||||
#if(CY_BLE_STACK_MODE_IPC)
|
||||
/* Process BLE events continuously for controller in dual core mode */
|
||||
Cy_BLE_ProcessEvents();
|
||||
#endif /* CY_BLE_STACK_MODE_IPC */
|
||||
|
||||
/* To achieve low power in the device */
|
||||
Cy_SysPm_DeepSleep(CY_SYSPM_WAIT_FOR_INTERRUPT);
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue