forked from mirrors/qmk_userspace
		
	Add included header file and fix debug print
This commit is contained in:
		
					parent
					
						
							
								05be3d85d1
							
						
					
				
			
			
				commit
				
					
						8b4fa599cf
					
				
			
		
					 2 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -40,9 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
 | 
					#include <avr/interrupt.h>
 | 
				
			||||||
#include <util/delay.h>
 | 
					#include <util/delay.h>
 | 
				
			||||||
#include "ps2.h"
 | 
					#include "ps2.h"
 | 
				
			||||||
#include "debug.h"
 | 
					#include "print.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define WAIT(stat, us, err) do { \
 | 
					#define WAIT(stat, us, err) do { \
 | 
				
			||||||
| 
						 | 
					@ -241,7 +242,7 @@ static inline void pbuf_enqueue(uint8_t data)
 | 
				
			||||||
        pbuf[pbuf_head] = data;
 | 
					        pbuf[pbuf_head] = data;
 | 
				
			||||||
        pbuf_head = next;
 | 
					        pbuf_head = next;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        debug("pbuf: full\n");
 | 
					        print("pbuf: full\n");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    SREG = sreg;
 | 
					    SREG = sreg;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,11 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include <avr/io.h>
 | 
					 | 
				
			||||||
#include <avr/interrupt.h>
 | 
					#include <avr/interrupt.h>
 | 
				
			||||||
#include <util/delay.h>
 | 
					#include <util/delay.h>
 | 
				
			||||||
#include "ps2.h"
 | 
					#include "ps2.h"
 | 
				
			||||||
#include "debug.h"
 | 
					#include "print.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define WAIT(stat, us, err) do { \
 | 
					#define WAIT(stat, us, err) do { \
 | 
				
			||||||
| 
						 | 
					@ -188,7 +187,7 @@ static inline void pbuf_enqueue(uint8_t data)
 | 
				
			||||||
        pbuf[pbuf_head] = data;
 | 
					        pbuf[pbuf_head] = data;
 | 
				
			||||||
        pbuf_head = next;
 | 
					        pbuf_head = next;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        debug("pbuf: full\n");
 | 
					        print("pbuf: full\n");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    SREG = sreg;
 | 
					    SREG = sreg;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue