-
Notifications
You must be signed in to change notification settings - Fork 7.6k
feat(board): add support for rakwireless rak3112 #11485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DanielCao0
wants to merge
6
commits into
espressif:master
Choose a base branch
from
DanielCao0:feat/support_rakwireless_rak3112
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+209
−0
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
52d56ed
feat(rak3112): add pins_arduino.h for RAKWireless RAK3112 module
danielRAKwireless b836d3e
feat(rak3112): update pins_arduino.h to define LED pins and update bo…
danielRAKwireless c9a1461
Delete the redundant configuration information in board.txt
danielRAKwireless fd192bf
Restore the incorrect modifications to board.txt
danielRAKwireless 6b2ae73
Delete blank lines
danielRAKwireless a8620bc
Move the rak configuration information to the end of the boards.txt .
danielRAKwireless File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,50 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
// Reference: RAK3112 Module Datasheet | ||
// https://docs.rakwireless.com/product-categories/wisduo/rak3112-module/datasheet/ | ||
|
||
// Note:GPIO33,GPIO34,GPIO35.GPIO36,GPIO37 is not available in the 8MB and 16MB Octal PSRAM version | ||
|
||
#define USB_VID 0x303a | ||
#define USB_PID 0x1001 | ||
|
||
#define LED_GREEN 46 | ||
#define LED_BLUE 45 | ||
|
||
static const uint8_t LED_BUILTIN = LED_GREEN; | ||
#define BUILTIN_LED LED_BUILTIN // backward compatibility | ||
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN | ||
|
||
static const uint8_t BAT_VOLT = 21; | ||
|
||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
|
||
static const uint8_t SDA = 9; | ||
static const uint8_t SCL = 40; | ||
|
||
#define WIRE1_PIN_DEFINED | ||
static const uint8_t SDA1 = 17; | ||
static const uint8_t SCL1 = 18; | ||
|
||
static const uint8_t SS = 12; | ||
static const uint8_t MOSI = 11; | ||
static const uint8_t MISO = 10; | ||
static const uint8_t SCK = 13; | ||
|
||
#define LORA_ANT_SWITCH 4 // Antenna switch power control pin | ||
|
||
#define LORA_SCK 5 // SX1262 SCK | ||
#define LORA_MISO 3 // SX1262 MISO | ||
#define LORA_MOSI 6 // SX1262 MOSI | ||
#define LORA_CS 7 // SX1262 CS | ||
#define LORA_RST 8 // SX1262 RST | ||
|
||
#define LORA_DIO1 47 //SX1262 DIO1 | ||
#define LORA_BUSY 48 | ||
#define LORA_IRQ LORA_DIO1 | ||
|
||
#endif /* Pins_Arduino_h */ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I ask where those pins comes from? I don't see anything in the docs as its only a module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.rakwireless.com/product-categories/wisblock/rak19010/overview/
This module can be used with a base board.