Home
last modified time | relevance | path

Searched refs:ringbuf_alloc (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dringbuf.h48 #define ringbuf_alloc(r, sz) \ macro
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmodbluetooth.c274 ringbuf_alloc(&o->ringbuf, MICROPY_PY_BLUETOOTH_RINGBUF_SIZE); in bluetooth_ble_make_new()
347 mp_int_t ringbuf_alloc = mp_obj_get_int(e->value); in bluetooth_ble_config() local
348 if (ringbuf_alloc < 16 || ringbuf_alloc > 0xffff) { in bluetooth_ble_config()
351 … size_t irq_data_alloc = MICROPY_PY_BLUETOOTH_MAX_EVENT_DATA_BYTES_LEN(ringbuf_alloc); in bluetooth_ble_config()
354 uint8_t *ringbuf = m_new(uint8_t, ringbuf_alloc); in bluetooth_ble_config()
366 self->ringbuf.size = ringbuf_alloc; in bluetooth_ble_config()

Completed in 12 milliseconds