uart: increase index type to allow larger buffer

This commit is contained in:
King Kévin 2020-02-19 21:07:58 +01:00
parent becf280d9a
commit 4141c43682
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/** library for UART communication (code)
/** library for UART communication
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @date 2016-2020
@ -44,8 +44,8 @@
/* output ring buffer, indexes, and available memory */
static volatile uint8_t tx_buffer[64] = {0}; /**< ring buffer for data to transmit */
static volatile uint8_t tx_i = 0; /**< current position of transmitted data */
static volatile uint8_t tx_used = 0; /**< how much data needs to be transmitted */
static volatile uint16_t tx_i = 0; /**< current position of transmitted data */
static volatile uint16_t tx_used = 0; /**< how much data needs to be transmitted */
void uart_setup(void)
{

View File

@ -12,7 +12,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/** library for UART communication (API)
/** library for UART communication
* @file
* @author King Kévin <kingkevin@cuvoodoo.info>
* @date 2016-2020