mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-29 02:51:17 +00:00
old RF95 driver probably works on NRF52 now
This commit is contained in:
parent
4f3a9d8646
commit
3c9c01189d
@ -1,9 +1,9 @@
|
|||||||
# Initial work items
|
# Initial work items
|
||||||
|
|
||||||
- get old radio driver working on NRF52
|
- DONE get old radio driver working on NRF52
|
||||||
- get BLE working
|
- get BLE working
|
||||||
- add PMU driver
|
- add PMU driver
|
||||||
- add new radio driver
|
- add new radio driver - possibly start with https://os.mbed.com/teams/Semtech/code/SX126xLib/
|
||||||
- make a file system implementation (preferably one that can see the files the bootloader also sees)
|
- make a file system implementation (preferably one that can see the files the bootloader also sees)
|
||||||
- add LCD driver
|
- add LCD driver
|
||||||
- make a new boarddef with a variant.h file. Fix pins in that file. In particular:
|
- make a new boarddef with a variant.h file. Fix pins in that file. In particular:
|
||||||
|
@ -136,3 +136,8 @@ lib_ignore =
|
|||||||
lib_deps =
|
lib_deps =
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
monitor_port = /dev/ttyACM1
|
monitor_port = /dev/ttyACM1
|
||||||
|
|
||||||
|
; Set initial breakpoint (defaults to main)
|
||||||
|
debug_init_break =
|
||||||
|
;debug_init_break = tbreak loop
|
||||||
|
;debug_init_break = tbreak Reset_Handler
|
@ -153,7 +153,7 @@ void NRF52Bluetooth::setup()
|
|||||||
Bluefruit.begin();
|
Bluefruit.begin();
|
||||||
|
|
||||||
// Set the advertised device name (keep it short!)
|
// Set the advertised device name (keep it short!)
|
||||||
Bluefruit.setName("Meshtastic52");
|
Bluefruit.setName("Meshtastic52"); // FIXME
|
||||||
|
|
||||||
// Set the connect/disconnect callback handlers
|
// Set the connect/disconnect callback handlers
|
||||||
Bluefruit.Periph.setConnectCallback(connect_callback);
|
Bluefruit.Periph.setConnectCallback(connect_callback);
|
||||||
@ -162,7 +162,7 @@ void NRF52Bluetooth::setup()
|
|||||||
// Configure and Start the Device Information Service
|
// Configure and Start the Device Information Service
|
||||||
DEBUG_MSG("Configuring the Device Information Service\n");
|
DEBUG_MSG("Configuring the Device Information Service\n");
|
||||||
bledis.setManufacturer("meshtastic.org");
|
bledis.setManufacturer("meshtastic.org");
|
||||||
bledis.setModel("NRF52-meshtastic");
|
bledis.setModel("NRF52-meshtastic"); // FIXME
|
||||||
bledis.begin();
|
bledis.begin();
|
||||||
|
|
||||||
// Start the BLE Battery Service and set it to 100%
|
// Start the BLE Battery Service and set it to 100%
|
||||||
|
@ -213,6 +213,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#undef LED_INVERTED
|
#undef LED_INVERTED
|
||||||
#define LED_INVERTED 1
|
#define LED_INVERTED 1
|
||||||
|
|
||||||
|
// Temporarily testing if we can build the RF95 driver for NRF52
|
||||||
|
#define RESET_GPIO 14 // If defined, this pin will be used to reset the LORA radio
|
||||||
|
#define RF95_IRQ_GPIO 26 // IRQ line for the LORA radio
|
||||||
|
#define DIO1_GPIO 35 // DIO1 & DIO2 are not currently used, but they must be assigned to a pin number
|
||||||
|
#define DIO2_GPIO 34 // DIO1 & DIO2 are not currently used, but they must be assigned to a pin number
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user