More hooks for hall effect
This commit is contained in:
@@ -63,6 +63,7 @@ uint8_t showBootLogoIfavailable();
|
|||||||
void delay_ms(uint16_t count) ;
|
void delay_ms(uint16_t count) ;
|
||||||
//Used to allow knowledge of if usb_pd is being used
|
//Used to allow knowledge of if usb_pd is being used
|
||||||
uint8_t usb_pd_detect();
|
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 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
|
// If the sensor is single polarity (or polarity insensitive) just return 0..32768
|
||||||
int16_t getRawHallEffect();
|
int16_t getRawHallEffect();
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#define TEMP_TMP36
|
#define TEMP_TMP36
|
||||||
#define ACCEL_BMA
|
#define ACCEL_BMA
|
||||||
#define HALL_SENSOR
|
#define HALL_SENSOR
|
||||||
#define HALL_SI7210
|
//#define HALL_SI7210
|
||||||
|
|
||||||
#define BATTFILTERDEPTH 32
|
#define BATTFILTERDEPTH 32
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -31,3 +31,7 @@ int16_t getRawHallEffect() {
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool getHallSensorFitted() {
|
||||||
|
return hall_effect_present;
|
||||||
|
}
|
||||||
|
|||||||
@@ -7,11 +7,6 @@ MEMORY
|
|||||||
/* Run in FLASH */
|
/* Run in FLASH */
|
||||||
flash (rxai!w) : ORIGIN = 0x08000000, LENGTH = 128k
|
flash (rxai!w) : ORIGIN = 0x08000000, LENGTH = 128k
|
||||||
ram (wxa!ri) : ORIGIN = 0x20000000, LENGTH = 32K
|
ram (wxa!ri) : ORIGIN = 0x20000000, LENGTH = 32K
|
||||||
|
|
||||||
/* Run in RAM */
|
|
||||||
/* flash (rxai!w) : ORIGIN = 0x20000000, LENGTH = 24k
|
|
||||||
ram (wxa!ri) : ORIGIN = 0x20006000, LENGTH = 8K
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user