diff options
Diffstat (limited to 'software/hhd70dongle/hhd70.c')
-rw-r--r-- | software/hhd70dongle/hhd70.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/software/hhd70dongle/hhd70.c b/software/hhd70dongle/hhd70.c index d2a3558..1e3b5c7 100644 --- a/software/hhd70dongle/hhd70.c +++ b/software/hhd70dongle/hhd70.c @@ -12,6 +12,7 @@ * * * Copyright (C) 2012 Bernhard Tittelbach <xro@realraum.at> + * 2015 Christian Pointner <equinox@mur.at> * * This file is part of mur.sat. * @@ -85,7 +86,12 @@ void hhd70_set_OOK_GDO0_high(void) void hhd70_set_OOK_GDO0_low(void) { //pull low - SPI_PORT &= ~(1<<GDO0); + SPI_PORT &= ~(1<<GDO0); +} + +void hhd70_set_OOK_GDO0_toggle(void) +{ + SPI_PORT ^= (1 << GDO0); } void hhd70_spi_cs_enable(void) @@ -135,7 +141,7 @@ char hhd70_spi_read_byte(void) void hhd70_palna_txmode(void) { SPI_PORT |= (1<<TE); - hhd70_bias_on(); + hhd70_bias_on(); } void hhd70_palna_rxmode(void) |