4.3 Program Protection ...........................................48
4.4 ISP Protocol Description ...................................49
4.4.1 ISP Interface Requirements .............................49
4.4.2 ISP PDU Format ...............................................49
4.4.3 ISP Commands ................................................49
4.4.4 ISP Program Flow Diagram ..............................57
5. NVDS ...................................................................58
5.1 BLE Stack TAG ................................................59
5.2 Include Files .....................................................60
6. Application Development ..................................61
6.1 Available hardware resource for APP ...............61
6.1.1 MCU .................................................................61
6.1.2 Memory ............................................................61
6.1.3 Peripheral .........................................................62
6.1.4 Interrupt Controller ............................................63
6.2 Application Execution Flow ...............................64
6.2.1 Startup (Remap) ...............................................65
6.3 Creating a Custom BLE Application .................66
6.3.1 User Configuration ............................................66
6.3.2 BLE Profiles ......................................................68
6.3.3 BLE main function ............................................71
6.3.4 Application Task ...............................................78
6.4 Application Debug ............................................79
6.5 Application Samples .........................................79
6.5.1 Directory Structure ............................................79
6.5.2 Proximity Reporter ............................................81
6.6 Device Driver ....................................................87
6.6.1 Device Driver File Structure ..............................87
6.6.2 Driver Configuration ..........................................89
6.6.3 System Controller Driver ..................................90
6.6.4 GPIO Driver ......................................................90
6.6.5 UART Driver .....................................................91
6.6.6 SPI Driver .........................................................92
6.6.7 I2C Driver .........................................................92
6.6.8 Timer Driver ......................................................93
6.6.9 RTC Driver .......................................................93
6.6.10 Watchdog Timer Driver .....................................94
6.6.11 PWM Driver ......................................................94
6.6.12 DMA Driver .......................................................94
6.6.13 ADC Driver .......................................................95
6.6.14 Analog Driver ....................................................95
6.6.15 Sleep Dirver ......................................................96
6.6.16 Serial Flash Driver ............................................96
6.6.17 RF Driver ..........................................................96
7. Network Processor ............................................97
7.1 ACI PDU Format...............................................98
7.2 ACI Message Example .....................................99
8. Controller Mode ...............................................101
8.1 HCI PDU Format ............................................101
8.2 Supported Commands and Events .................102
8.3 Direct Test Mode ............................................106
9. Legal information .............................................109
9.1 Definitions .......................................................109
9.2 Disclaimers .....................................................109