Skip to content

Commit

Permalink
RP2040 build target [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Feb 5, 2022
1 parent a004d4d commit 424593e
Show file tree
Hide file tree
Showing 12 changed files with 1,003 additions and 97 deletions.
3 changes: 2 additions & 1 deletion software/firmware/source/SoftRF/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ PLAT_CPPS := $(PLATFORM_PATH)/ESP8266.cpp \
$(PLATFORM_PATH)/LPC43.cpp \
$(PLATFORM_PATH)/SAMD.cpp \
$(PLATFORM_PATH)/AVR.cpp \
$(PLATFORM_PATH)/ASR66.cpp
$(PLATFORM_PATH)/ASR66.cpp \
$(PLATFORM_PATH)/RP2040.cpp

DRV_CPPS := $(DRIVER_PATH)/RF.cpp \
$(DRIVER_PATH)/GNSS.cpp \
Expand Down
4 changes: 4 additions & 0 deletions software/firmware/source/SoftRF/src/TrafficHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,9 @@ int traffic_cmp_by_distance(const void *a, const void *b)

if (ta->distance > tb->distance) return 1;
if (ta->distance == tb->distance) return 0;
#if 0
if (ta->distance < tb->distance) return -1;
#else
else return -1;
#endif
}
2 changes: 1 addition & 1 deletion software/firmware/source/SoftRF/src/platform/ASR66.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static void ASR66_post_init()
Serial.print(F("RADIO : "));
Serial.println(hw_info.rf == RF_IC_SX1262 ? F("PASS") : F("FAIL"));
Serial.print(F("GNSS : "));
Serial.println(hw_info.gnss != GNSS_MODULE_NONE ? F("PASS") : F("FAIL"));
Serial.println(hw_info.gnss != GNSS_MODULE_NONE ? F("PASS") : F("N/A"));
Serial.print(F("BARO : "));
Serial.println(hw_info.baro != BARO_MODULE_NONE ? F("PASS") : F("N/A"));
Serial.print(F("DISPLAY : "));
Expand Down
Loading

0 comments on commit 424593e

Please sign in to comment.