Skip to content

Commit

Permalink
Modified ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Oct 10, 2023
1 parent b509e55 commit 8880a54
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 78 deletions.
4 changes: 3 additions & 1 deletion uCNC/src/hal/mcus/esp32/mcu_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,14 +606,16 @@ uint8_t mcu_get_pwm(uint8_t pwm)
#ifndef UART_TX_BUFFER_SIZE
#define UART_TX_BUFFER_SIZE 64
#endif
DECL_BUFFER(uint8_t, uart, UART_TX_BUFFER_SIZE);
DECL_BUFFER(uint8_t, uart_rx, RX_BUFFER_SIZE);
DECL_BUFFER(uint8_t, uart_tx, UART_TX_BUFFER_SIZE);
uint8_t mcu_uart_getc(void)
{
uint8_t c = 0;
BUFFER_DEQUEUE(uart_rx, &c);
return c;
}

uint8_t mcu_uart_available(void)
{
return BUFFER_READ_AVAILABLE(uart_rx);
}
Expand Down
Loading

0 comments on commit 8880a54

Please sign in to comment.