summaryrefslogtreecommitdiff
path: root/doc/debugging.mdwn
AgeCommit message (Expand)Author
2014-11-25propellor.debug can be set in the git config to enable more persistent debugg...Joey Hess
2014-11-20updateJoey Hess
ue='1'>ssdiff
Diffstat (limited to 'digital/avr/modules/spi/spi_hard.avr.c')
-rw-r--r--digital/avr/modules/spi/spi_hard.avr.c109
1 files changed, 109 insertions, 0 deletions
diff --git a/digital/avr/modules/spi/spi_hard.avr.c b/digital/avr/modules/spi/spi_hard.avr.c
new file mode 100644
index 00000000..15282dde
--- /dev/null
+++ b/digital/avr/modules/spi/spi_hard.avr.c
@@ -0,0 +1,109 @@
+/* spi_hard.avr.c - SPI driver using hardware implementation. */
+/* avr.spi - SPI AVR module. {{{
+ *
+ * Copyright (C) 2008 NĂ©lio Laranjeiro
+ *
+ * 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.
+ *
+ * }}} */
+#include "common.h"
+
+#include "io.h"
+
+#include "spi.h"
+
+#if SPI0_DRIVER == SPI_DRIVER_HARD || SPI1_DRIVER == SPI_DRIVER_HARD
+
+#if defined (__AVR_ATmega128__) \
+ || defined (__AVR_ATmega64__) \
+