mirror of https://github.com/ARMmbed/mbed-os.git
Cordio: Split get_buffer_pool_description() in pure virtual + default implementation to avoid allocating two memory pools in a static fashion
parent
a7c5523081
commit
4ece9023a2
|
@ -78,7 +78,7 @@ void CordioHCIDriver::terminate()
|
|||
_transport_driver.terminate();
|
||||
}
|
||||
|
||||
buf_pool_desc_t CordioHCIDriver::get_buffer_pool_description()
|
||||
buf_pool_desc_t CordioHCIDriver::get_default_buffer_pool_description()
|
||||
{
|
||||
static union {
|
||||
uint8_t buffer[2250];
|
||||
|
|
|
@ -77,7 +77,7 @@ public:
|
|||
/**
|
||||
* Return the set of memory pool which will be used by the Cordio stack
|
||||
*/
|
||||
virtual buf_pool_desc_t get_buffer_pool_description();
|
||||
virtual buf_pool_desc_t get_buffer_pool_description() = 0;
|
||||
|
||||
/**
|
||||
* Initialize the HCI driver.
|
||||
|
@ -126,6 +126,12 @@ public:
|
|||
*/
|
||||
uint16_t write(uint8_t type, uint16_t len, uint8_t *pData);
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Return a defai;t set of memory pool which will be used by the Cordio stack
|
||||
*/
|
||||
buf_pool_desc_t get_default_buffer_pool_description();
|
||||
|
||||
private:
|
||||
/**
|
||||
* Initialize the chip.
|
||||
|
|
Loading…
Reference in New Issue