diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2021-02-25 16:50:57 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2021-02-25 16:50:57 -0800 |
| commit | 52bc935fa7aa9e5c94f75fec8b2fa746c83f0be7 (patch) | |
| tree | 6167dbc2b9e3c51a3322975ec303c0d9155a9356 /py/objfloat.c | |
| parent | 8170e26a869b1f00e2dc7aade84cb459155bf920 (diff) | |
A few minor fixes for corner cases
* Always clear the peripheral interrupt so we don't hang when full
* Store the ringbuf in the object so it gets collected when we're alive
* Make UART objects have a finaliser so they are deinit when their
memory is freed
* Copy bytes into the ringbuf from the FIFO after we read to ensure
the interrupt is enabled ASAP
* Copy bytes into the ringbuf from the FIFO before measuring our
rx available because the interrupt is based on a threshold (not
> 0). For example, a single byte won't trigger an interrupt.
Diffstat (limited to 'py/objfloat.c')
0 files changed, 0 insertions, 0 deletions
