-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Arduino: Adapt Arduino code to basicmac
Examples are untouched, those will be updated separately.
- Loading branch information
1 parent
3b8bc60
commit 3ccfb5b
Showing
8 changed files
with
206 additions
and
63 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "../hal/target-config.h" |
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
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,45 @@ | ||
// __ __ ___ __ __ _________________________________ | ||
// (_ |_ |V| | |_ / |_| (C) 2018-2018 Semtech Corporation | ||
// __)|__| | | |__\__| | All rights reserved | ||
|
||
#ifndef _hw_h_ | ||
#define _hw_h_ | ||
|
||
/* | ||
#define PERIPH_EEPROM | ||
#define EEPROM_BASE 0x30000000 | ||
#define EEPROM_SZ (8 * 1024) | ||
#define EEPROM_END (EEPROM_BASE + EEPROM_SZ) | ||
// 0x0000-0x003f 64 B : reserved for bootloader | ||
// 0x0040-0x005f 32 B : reserved for persistent stack data | ||
// 0x0060-0x00ff 160 B : reserved for personalization data | ||
// 0x0100-...... : reserved for application | ||
#define STACKDATA_BASE (EEPROM_BASE + 0x0040) | ||
#define PERSODATA_BASE (EEPROM_BASE + 0x0060) | ||
#define APPDATA_BASE (EEPROM_BASE + 0x0100) | ||
#define STACKDATA_SZ (PERSODATA_BASE - STACKDATA_BASE) | ||
#define PERSODATA_SZ (APPDATA_BASE - PERSODATA_BASE) | ||
#define APPDATA_SZ (EEPROM_END - APPDATA_BASE) | ||
#define FLASH_BASE 0x20000000 | ||
#define FLASH_SZ (128 * 1024) | ||
#define FLASH_END (FLASH_BASE + FLASH_SZ) | ||
#define FLASH_PAGE_SZ 128 | ||
#define PERIPH_USART | ||
#define USART_BR_9600 9600 | ||
#define USART_BR_115200 115200 | ||
#define PERIPH_PIO | ||
#define PIO_IRQ_LINE(gpio) (gpio) | ||
#define PERIPH_CRC | ||
#define PERIPH_SHA256 | ||
*/ | ||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name=IBM LMIC framework | ||
version=1.5.0+arduino-1 | ||
author=IBM | ||
name=Basicmac LoRaWAN stack | ||
version=2.1.0 | ||
author=Various | ||
maintainer=Matthijs Kooijman <matthijs@stdin.nl> | ||
sentence=Arduino port of the LMIC (LoraWAN-in-C, formerly LoraMAC-in-C) framework provided by IBM. | ||
paragraph=Supports SX1272/SX1276 and HopeRF RFM92/RFM95 tranceivers | ||
category=Communication | ||
url=http://www.research.ibm.com/labs/zurich/ics/lrsc/lmic.html | ||
url=https://github.com/lorabasics/basicmac | ||
architectures=* |