1
0

quantum/split_common/serial.c change to helix-serial.c style serial configuration

This commit is contained in:
mtei
2018-11-13 00:03:49 +09:00
parent a7af2ad718
commit e5eeb93cc8
3 changed files with 64 additions and 17 deletions

View File

@@ -3,18 +3,16 @@
#include <stdbool.h>
// ///////////////////////////////////////
// Need Soft Serial defines in config.h
// ///////////////////////////////////////
// eg.
// #define SERIAL_PIN_DDR DDRD
// #define SERIAL_PIN_PORT PORTD
// #define SERIAL_PIN_INPUT PIND
// #define SERIAL_PIN_MASK _BV(PD0)
// #define SERIAL_PIN_INTERRUPT INT0_vect
// /////////////////////////////////////////////////////////////////
// Need Soft Serial defines in config.h
// /////////////////////////////////////////////////////////////////
// ex.
// /* Configuration of lower interface with the lower layer(hardware) of serial.c */
// #define SOFT_SERIAL_PIN ?? // ?? = D0,D1,D2,D3,E6
//
// #define SERIAL_SLAVE_BUFFER_LENGTH MATRIX_ROWS/2
// #define SERIAL_MASTER_BUFFER_LENGTH 1
// /* Configuration of upper interface with the upper layer of serial.c */
// #define SERIAL_SLAVE_BUFFER_LENGTH MATRIX_ROWS/2
// #define SERIAL_MASTER_BUFFER_LENGTH 1
// Buffers for master - slave communication
extern volatile uint8_t serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH];