diff --git a/cpu/atmega_common/avr-libc-extra/errno.h b/cpu/atmega_common/avr-libc-extra/errno.h index 1dcf5aab8670bc295113a15d87e9aafd4906796c..c418aa26cab0d604a245af9ebd664fc535085d62 100644 --- a/cpu/atmega_common/avr-libc-extra/errno.h +++ b/cpu/atmega_common/avr-libc-extra/errno.h @@ -28,9 +28,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - #ifndef ERRNO_H -#define ERRNO_H_ 1 +#define ERRNO_H /** * @addtogroup cpu_atmega_common @@ -55,6 +54,9 @@ extern "C" { #endif +/** + * @brief Export errno value + */ extern int errno; #ifdef __cplusplus diff --git a/cpu/atmega_common/include/sys/time.h b/cpu/atmega_common/include/sys/time.h index 08100565f24fe69943ca303e2ccdf8bc5b02b4b7..7339088cb8984daab99d2f101880e964f9c53d05 100644 --- a/cpu/atmega_common/include/sys/time.h +++ b/cpu/atmega_common/include/sys/time.h @@ -16,9 +16,13 @@ extern "C" { #endif +/** + * @brief Definition of struct timeval for the atmega + * + */ struct timeval { - time_t tv_sec; - suseconds_t tv_usec; + time_t tv_sec; /**< seconds */ + suseconds_t tv_usec; /**< microseconds */ }; #ifdef __cplusplus