Compare commits

...

1 Commits

Author SHA1 Message Date
hchen3 7db559a6e7 add HCI 2020-02-15 14:13:52 +08:00
15 changed files with 13 additions and 3 deletions
@@ -0,0 +1,3 @@
int main(void) {
return 0;
}
@@ -0,0 +1,3 @@
int main(void) {
return 0;
}
@@ -114,11 +114,11 @@
#ifndef FEATURE_OAD
// Minimum connection interval (units of 1.25ms, 80=100ms) if automatic
// parameter update request is enabled
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 6
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 80
// Maximum connection interval (units of 1.25ms, 800=1000ms) if automatic
// parameter update request is enabled
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 6
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 80
#else //! FEATURE_OAD
// Minimum connection interval (units of 1.25ms, 8=10ms) if automatic
// parameter update request is enabled
@@ -152,7 +152,7 @@
#define SBP_TASK_PRIORITY 1
#ifndef SBP_TASK_STACK_SIZE
#define SBP_TASK_STACK_SIZE 844
#define SBP_TASK_STACK_SIZE 1024
#endif
// Internal Events for RTOS application
@@ -408,6 +408,10 @@ static void SimpleBLEPeripheral_init(void) {
GATT_RegisterForMsgs(self);
headstage_led_spi_color(COLOR_GREEN);
HCI_LE_ReadMaxDataLenCmd();
HCI_LE_WriteSuggestedDefaultDataLenCmd(251, 2120); // this is used for data length extension
}