Skip to content

Commit c72272a

Browse files
author
Kyle Wenner
committed
add CORDIO_HCI_ZERO_COPY in HCI driver, for ArduinoBLE
1 parent 7c1897f commit c72272a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

features/FEATURE_BLE/targets/TARGET_Ambiq_Micro/TARGET_Apollo3/AP3CordioHCITransportDriver.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ uint16_t AP3CordioHCITransportDriver::write(uint8_t packet_type, uint16_t len, u
6363
#endif
6464
data[8] = 0;
6565
}
66-
return ap3_hciDrvWrite(packet_type, len, data);
66+
uint16_t retLen = ap3_hciDrvWrite(packet_type, len, data);
67+
#if CORDIO_ZERO_COPY_HCI
68+
WsfMsgFree(data);
69+
#endif
70+
return retLen;
6771
}
6872

6973
//Ugly Mutlifile implementation

targets/targets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7429,7 +7429,7 @@
74297429
"components": [
74307430
"FLASHIAP"
74317431
],
7432-
"macros": []
7432+
"macros": ["CORDIO_ZERO_COPY_HCI"]
74337433
},
74347434
"AMA3B1KK": {
74357435
"public": false,

0 commit comments

Comments
 (0)