BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
cc0f06d
Branches
Tags
master
mips_sys
fw
macros.h
implementation of ethernet and ARP (not completely working yet, hangs on received ARP request)
Stefan Schuermans
commited
cc0f06d
at 2012-03-17 01:03:19
macros.h
Blame
History
Raw
#ifndef MACROS_H #define MACROS_H // minimum and maximum #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b)) // number of entries in an array #define count(array) (sizeof((array)) / sizeof((array)[0])) #endif // #ifndef INC_macros