Ad hoc fix of print and debug for mbed
This commit is contained in:
		
							parent
							
								
									06527bde4f
								
							
						
					
					
						commit
						8f1e311cd7
					
				
					 2 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -22,13 +22,14 @@
 | 
			
		|||
 * THE SOFTWARE.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <avr/io.h>
 | 
			
		||||
#include <avr/pgmspace.h>
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include "print.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#ifndef NO_PRINT
 | 
			
		||||
 | 
			
		||||
#if defined(__AVR__)
 | 
			
		||||
 | 
			
		||||
#define sendchar(c)    xputc(c)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -37,4 +38,11 @@ void print_set_sendchar(int8_t (*sendchar_func)(uint8_t))
 | 
			
		|||
    xdev_out(sendchar_func);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#elif defined(__arm__)
 | 
			
		||||
 | 
			
		||||
// TODO
 | 
			
		||||
//void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) { }
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue