serial_irq: Add new generic/serial_irq.c code

Extract out common code from avr/serial.c, sam3x8e/serial.c, and
stm32f1/serial.c into a new generic/serial_irq.c file.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-04-12 18:04:00 -04:00
parent 606222da5b
commit 6793970198
8 changed files with 166 additions and 343 deletions

View File

@@ -20,7 +20,7 @@ src-y += generic/crc16_ccitt.c generic/alloc.c
src-y += generic/armcm_irq.c generic/timer_irq.c
src-y += ../lib/cmsis-sam3x8e/source/system_sam3xa.c
src-y += ../lib/cmsis-sam3x8e/source/gcc/startup_sam3xa.c
src-$(CONFIG_SERIAL) += sam3x8e/serial.c
src-$(CONFIG_SERIAL) += sam3x8e/serial.c generic/serial_irq.c
# Build the additional hex output file
target-y += $(OUT)klipper.bin