mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
zephyr/zephyr_getchar: Use native k_sem instead of legacy nano_sem.
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
extern int mp_interrupt_char;
|
extern int mp_interrupt_char;
|
||||||
void mp_keyboard_interrupt(void);
|
void mp_keyboard_interrupt(void);
|
||||||
|
|
||||||
static struct nano_sem uart_sem;
|
static struct k_sem uart_sem;
|
||||||
#define UART_BUFSIZE 256
|
#define UART_BUFSIZE 256
|
||||||
static uint8_t uart_ringbuf[UART_BUFSIZE];
|
static uint8_t uart_ringbuf[UART_BUFSIZE];
|
||||||
static uint8_t i_get, i_put;
|
static uint8_t i_get, i_put;
|
||||||
|
|||||||
Reference in New Issue
Block a user