1
0
forked from me/IronOS

More hooks for hall effect

This commit is contained in:
Ben V. Brown
2020-10-27 18:38:40 +11:00
parent 77dbc9df56
commit 4496cfd41d
4 changed files with 7 additions and 7 deletions

View File

@@ -63,6 +63,7 @@ uint8_t showBootLogoIfavailable();
void delay_ms(uint16_t count) ;
//Used to allow knowledge of if usb_pd is being used
uint8_t usb_pd_detect();
bool getHallSensorFitted();
// If the iron has a hall effect sensor in the handle, return an signed count of the reading
// If the sensor is single polarity (or polarity insensitive) just return 0..32768
int16_t getRawHallEffect();

View File

@@ -21,7 +21,7 @@
#define TEMP_TMP36
#define ACCEL_BMA
#define HALL_SENSOR
#define HALL_SI7210
//#define HALL_SI7210
#define BATTFILTERDEPTH 32
#endif

View File

@@ -31,3 +31,7 @@ int16_t getRawHallEffect() {
return 0;
}
bool getHallSensorFitted() {
return hall_effect_present;
}

View File

@@ -7,11 +7,6 @@ MEMORY
/* Run in FLASH */
flash (rxai!w) : ORIGIN = 0x08000000, LENGTH = 128k
ram (wxa!ri) : ORIGIN = 0x20000000, LENGTH = 32K
/* Run in RAM */
/* flash (rxai!w) : ORIGIN = 0x20000000, LENGTH = 24k
ram (wxa!ri) : ORIGIN = 0x20006000, LENGTH = 8K
*/
}
@@ -173,4 +168,4 @@ SECTIONS
. = __stack_size;
PROVIDE( _sp = . );
} >ram AT>ram
}
}