Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

io_repeater app: Added adc.lib and adc.h.

  • Loading branch information...
commit 7ce9a6d6ab3734f3ebebf08cf5c859422c2a9a6b 1 parent 0842142
@DavidEGrayson DavidEGrayson authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  apps/io_repeater/io_repeater.c
  2. +1 −1  apps/io_repeater/options.mk
View
3  apps/io_repeater/io_repeater.c
@@ -17,6 +17,7 @@ For complete documentation and a precompiled version of this app, see the
#include <time.h>
#include <gpio.h>
#include <radio_queue.h>
+#include <adc.h>
#define PIN_COUNT 15
static uint8 CODE pins[PIN_COUNT] = {0, 1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15, 16, 17, 21};
@@ -196,7 +197,7 @@ void main(void)
// Decide when to send the next packet. We take a noisy reading of the temperature sensor
// to get two random bits, so that we can avoid accidentally getting synchronized with another
- // transmtiting Wixel.
+ // transmitting Wixel.
txInterval = 7 + (adcRead(14 | ADC_BITS_7) & 3);
}
}
View
2  apps/io_repeater/options.mk
@@ -1 +1 @@
-APP_LIBS := dma.lib radio_mac.lib radio_queue.lib radio_registers.lib random.lib usb.lib usb_cdc_acm.lib wixel.lib gpio.lib
+APP_LIBS := dma.lib radio_mac.lib radio_queue.lib radio_registers.lib random.lib usb.lib usb_cdc_acm.lib wixel.lib gpio.lib adc.lib
Please sign in to comment.
Something went wrong with that request. Please try again.