Port ps2_usb to mbed
This commit is contained in:
		
							parent
							
								
									80c3ff5fa0
								
							
						
					
					
						commit
						4c8e0fd0bd
					
				
					 15 changed files with 343 additions and 90 deletions
				
			
		| 
						 | 
				
			
			@ -17,8 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
#include <avr/io.h>
 | 
			
		||||
#include <util/delay.h>
 | 
			
		||||
#include "action.h"
 | 
			
		||||
#include "print.h"
 | 
			
		||||
#include "util.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -189,6 +187,7 @@ uint8_t matrix_scan(void)
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    uint8_t code = ps2_host_recv();
 | 
			
		||||
    if (code) xprintf("%i\r\n", code);
 | 
			
		||||
    if (!ps2_error) {
 | 
			
		||||
        switch (state) {
 | 
			
		||||
            case INIT:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue