* Updated NTC lookup * remove float compute from adc (as we dont use it) * Updated adc settings * Updated ADC Init * Custom max temp lookup * Mask Timer around changing timer rate * Use timer channels in sane order * Update IRQ.cpp * Remove ADC dummy wait on start/stop * Dont use ADC IRQ * Disable sampling delay * Update Setup.cpp * PinecilV2 disable ROM driver utils Always use our source * Force settings upgrade on PinecilV2 Fix forced settings upgrade on Pinecilv2 * Prevent ADC rollover * Update Setup.cpp * ADC cleanup * Rollover prevention * Measure tip temperature 2nd * Rebase Buffalo SDK to 1.4.5 (#1923) * Update bl702_adc.c * Update board.c * . * Update bl702_adc.c * Import updated hal_drv * Remove accidental dupe of stack in linker * First pass update BLE stack * Update ReleaseNotes * Update push.yml * Drop BT Audio which we dont use * . * Reformat * Update conn.c * Update hog.c
34 lines
613 B
C
34 lines
613 B
C
#include "stdint.h"
|
|
/*
|
|
* BSP_Power.h -- Board Support for Power control
|
|
*
|
|
* These functions are hooks used to allow for power control
|
|
*
|
|
*/
|
|
|
|
#ifndef BSP_POWER_H_
|
|
#define BSP_POWER_H_
|
|
#include "Types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Called periodically in the movement handling thread
|
|
// Can be used to check any details for the power system
|
|
void power_check();
|
|
|
|
// Returns the tip resistance in x10 ohms, so 7.5 = 75; 14=140 etc
|
|
uint8_t getTipResistanceX10();
|
|
|
|
uint16_t getTipThermalMass();
|
|
uint16_t getTipInertia();
|
|
|
|
TemperatureType_t getCustomTipMaxInC();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|