Move master branch from from mios git repo

This commit is contained in:
hek
2014-01-23 00:23:15 +01:00
commit 609d9e5be9
352 changed files with 53418 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/*
Copyright (C) 2012 jaseg <s@jaseg.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 3 as published by the Free Software Foundation.
*/
#ifndef __UTIL_H__
#define __UTIL_H__
#include <avr/io.h>
void uart_puthex_nibble(uint8_t nibble);
void uart_puthex(uint8_t data);
void uart_puthex_16(uint16_t data);
void uart_puthex_32(uint32_t data);
void uart_puthex_flip_16(uint16_t data);
void uart_puthex_flip_32(uint32_t data);
void uart_putdec(uint8_t data);
inline uint8_t min(uint8_t a, uint8_t b){
return a>b?b:a;
}
#endif//__UTIL_H__