From d7211fc08b077030cf7f065d3834e201d17c18a5 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 13 Apr 2010 00:21:48 +0200 Subject: digital/io/src: refactor position and angle macros --- digital/io/src/defs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'digital/io/src/defs.h') diff --git a/digital/io/src/defs.h b/digital/io/src/defs.h index 507e2766..d80ff96d 100644 --- a/digital/io/src/defs.h +++ b/digital/io/src/defs.h @@ -40,4 +40,7 @@ struct position_t }; typedef struct position_t position_t; +/** Convert degrees to an angle usable in position_t. */ +#define POSITION_A_DEG(a) G_ANGLE_UF016_DEG (a) + #endif /* defs_h */ -- cgit v1.2.3