Skip to content

Commit

Permalink
Added build instructions for Duinode V1
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Apr 2, 2012
1 parent ecf5f11 commit 42a43be
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions examples/sensornet/DuinodeV1.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#ifndef __DUINODE_V3_H__
#define __DUINODE_V3_H__

/**
* @file DuinodeV1.h
*
* Contains hardware definitions for RF Duinode V1 (3V3)
*/

#define PINS_DEFINED 1
#define __PLATFORM__ "RF Duinode V1 (3V3)"

const int rf_irq = 0;

const int led_red = 0;
const int led_yellow = 0;
const int led_green = 0;
const int button_a = 0;

const int rf_ce = 8;
const int rf_csn = 9;

const int temp_pin = 2; // analog
const int voltage_pin = 3; // analog

// 1.1V internal reference after 1M/470k divider, in 8-bit fixed point
const unsigned voltage_reference = 0x371;

#endif // __DUINODE_V3_H__
// vim:cin:ai:sts=2 sw=2 ft=cpp
1 change: 1 addition & 0 deletions examples/sensornet/duinode1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jam F_CPU=16000000 "CCFLAGS=-include DuinodeV1.h" -dx UPLOAD_SPEED=115200 u1 && screen /dev/ttyUSB1 57600
File renamed without changes.

0 comments on commit 42a43be

Please sign in to comment.