-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added build instructions for Duinode V1
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.