mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
Change the simulator to use the generic timer_irq.c and serial_irq.c code for (dummy) timer and io handling. This is just to make the code a better example for other developers (most micro-controllers will use the timer_irq.c and serial_irq.c code). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
14 lines
294 B
C
14 lines
294 B
C
#ifndef __GENERIC_SERIAL_IRQ_H
|
|
#define __GENERIC_SERIAL_IRQ_H
|
|
|
|
#include <stdint.h> // uint32_t
|
|
|
|
// callback provided by board specific code
|
|
void serial_enable_tx_irq(void);
|
|
|
|
// serial_irq.c
|
|
void serial_rx_byte(uint_fast8_t data);
|
|
int serial_get_tx_byte(uint8_t *pdata);
|
|
|
|
#endif // serial_irq.h
|