add doxygen config

add mac main loop
add system interface