Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Heltec-Aaron-Lee committed Mar 2, 2022
2 parents cce07f1 + 34bbf82 commit 6beda4c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
1 change: 0 additions & 1 deletion cores/asr650x/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
#define bit(b) (1 << (b))
#define _BV(b) (1UL << (b))
#define nullptr NULL
#define yield()

//#ifdef __cplusplus
Expand Down
1 change: 0 additions & 1 deletion cores/asr6601/base/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
#define bit(b) (1 << (b))
#define _BV(b) (1UL << (b))
#define nullptr NULL

#define min(a, b) ((a)<(b)?(a):(b))
#define max(a, b) ((a)>(b)?(a):(b))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "Arduino.h"

#include "LoRa_APP.h"

#define timetillsleep 5000
#define timetillwakeup 5000
Expand Down
6 changes: 6 additions & 0 deletions libraries/Basics/src/softSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ void softSerial::begin(uint16_t Baudrate)
digitalWrite(TX_GPIO,HIGH);
}

void softSerial::end()
{
digitalWrite(TX_GPIO, LOW);
detachInterrupt(RX_GPIO);
}

int softSerial::available(void)
{
if(IRREC_RX_CNT){
Expand Down
1 change: 1 addition & 0 deletions libraries/Basics/src/softSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ uint8_t pbuffer;
~softSerial() {}

void begin(uint16_t Baudrate);
void end();

void sendByte(uint8_t value);
void sendStr(uint8_t *st, uint16_t len);
Expand Down
5 changes: 3 additions & 2 deletions libraries/EEPROM/EEPROM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@
#define DEBUGV(...) do { (void)0; } while (0)
#endif
#ifdef __asr650x__
#define _EEPROM_SIZE (CY_FLASH_SIZEOF_ROW * 3)
#define _EEPROM_SIZE (CY_FLASH_SIZEOF_ROW * 3)
#define _EEPROM_BASE CY_SFLASH_USERBASE
#else
#define #define _EEPROM_SIZE 0xC00
#define _EEPROM_SIZE 0xC00
#define _EEPROM_BASE FLASH_BASE+0x7400
#endif

EEPROMClass::EEPROMClass(uint32_t baddr)
: _baddr(baddr)
, _data(0)
Expand Down
4 changes: 2 additions & 2 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"type": "git",
"url": "https://github.com/HelTecAutomation/platform-asrmicro650x.git"
},
"version": "1.2.0",
"version": "1.4.0",
"frameworks": {
"arduino": {
"package": "framework-arduinoasrmicro650x",
Expand All @@ -38,7 +38,7 @@
"framework-arduinoasrmicro650x": {
"type": "framework",
"owner": "heltecautomation",
"version": "~1.2.0",
"version": "~1.4.0",
"optional": true
},
"tool-cubecellelftool": {
Expand Down

0 comments on commit 6beda4c

Please sign in to comment.