summaryrefslogtreecommitdiff
path: root/analog/motor-power-avr/src/utils.h
diff options
context:
space:
mode:
authorGuillaume Chevillot2008-02-11 11:41:31 +0100
committerGuillaume Chevillot2008-02-11 11:41:31 +0100
commitee77553fad33ba351358639bdb23738f837020f0 (patch)
treee1c8998d8da8243da054ba6bbe1e8c6331e4c036 /analog/motor-power-avr/src/utils.h
parentead4346d89da1fbff254557b3e63a183a0e33881 (diff)
Found the good regv macro and use it.
Diffstat (limited to 'analog/motor-power-avr/src/utils.h')
-rw-r--r--analog/motor-power-avr/src/utils.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/analog/motor-power-avr/src/utils.h b/analog/motor-power-avr/src/utils.h
deleted file mode 100644
index 54cb978e..00000000
--- a/analog/motor-power-avr/src/utils.h
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef utils_h
-#define utils_h
-/* utils.h */
-/* {{{
- *
- * Copyright (C) 2008 Pierre Prot
- *
- * APBTeam:
- * Web: http://apbteam.org/
- * Email: team AT apbteam DOT org
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * }}} */
-
-
-/* Concatenate 8 bits values.
- * vx: bit value
- * bx: bit shift
- */
-#define regv(b0, b1, b2, b3, b4, b5, b6, b7, v0, v1, v2, v3, v4, v5, v6, v7) \
- ( \
- ((v0 && 1) << b0) | \
- ((v1 && 1) << b1) | \
- ((v2 && 1) << b2) | \
- ((v3 && 1) << b3) | \
- ((v4 && 1) << b4) | \
- ((v5 && 1) << b5) | \
- ((v6 && 1) << b6) | \
- ((v7 && 1) << b7) \
- )
-
-#endif