Explorar el Código

Add included header file and fix debug print

tags/v1.9
tmk hace 10 años
padre
commit
8b4fa599cf
Se han modificado 2 ficheros con 5 adiciones y 5 borrados
  1. 3
    2
      protocol/ps2_interrupt.c
  2. 2
    3
      protocol/ps2_usart.c

+ 3
- 2
protocol/ps2_interrupt.c Ver fichero

@@ -40,9 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
*/

#include <stdbool.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "ps2.h"
#include "debug.h"
#include "print.h"


#define WAIT(stat, us, err) do { \
@@ -241,7 +242,7 @@ static inline void pbuf_enqueue(uint8_t data)
pbuf[pbuf_head] = data;
pbuf_head = next;
} else {
debug("pbuf: full\n");
print("pbuf: full\n");
}
SREG = sreg;
}

+ 2
- 3
protocol/ps2_usart.c Ver fichero

@@ -40,11 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
*/

#include <stdbool.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "ps2.h"
#include "debug.h"
#include "print.h"


#define WAIT(stat, us, err) do { \
@@ -188,7 +187,7 @@ static inline void pbuf_enqueue(uint8_t data)
pbuf[pbuf_head] = data;
pbuf_head = next;
} else {
debug("pbuf: full\n");
print("pbuf: full\n");
}
SREG = sreg;
}

Cargando…
Cancelar
Guardar