Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
makestuff
committed
Dec 8, 2013
1 parent
74bb776
commit e27b5e6
Showing
7 changed files
with
448 additions
and
341 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,39 @@ | ||
#ifndef MOJO_H | ||
#define MOJO_H | ||
|
||
// Platform definitions | ||
#define MCU at90usb162 | ||
#define XTAL 16000000 | ||
|
||
// Bootloader definitions | ||
#define FLASH_SIZE_BYTES 16384 | ||
#define BOOTLOADER_SEC_SIZE_BYTES 4096 | ||
|
||
// JTAG/SPI definitions | ||
#define TDO_PORT 1 | ||
#define TDI_PORT 1 | ||
#define TMS_PORT 1 | ||
#define TCK_PORT 1 | ||
#define TDO_BIT 3 | ||
#define TDI_BIT 2 | ||
#define TMS_BIT 0 | ||
#define TCK_BIT 1 | ||
|
||
// EPP definitions | ||
#define EPP_CTRL_NAME C | ||
#define EPP_DATA_NAME D | ||
#define EPP_ADDRSTB 4 | ||
#define EPP_DATASTB 5 | ||
#define EPP_WRITE 6 | ||
#define EPP_WAIT 7 | ||
|
||
// Serial port definitions | ||
#define SER_NAME D | ||
#define SER_RX 2 | ||
#define SER_TX 3 | ||
#define SER_CK 5 | ||
|
||
#define PROG_HWSPI 0 | ||
#define REG_ENABLED 0 | ||
|
||
#endif |
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
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
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
Oops, something went wrong.