mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Compare commits
16 Commits
816b1b03a1
...
f9bf1c7c73
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9bf1c7c73 | ||
|
|
0ed2d84fca | ||
|
|
622d8aac07 | ||
|
|
4087fc60ed | ||
|
|
c4df679b21 | ||
|
|
166339e74d | ||
|
|
786a0a41e5 | ||
|
|
5c7cfe2e19 | ||
|
|
48b28123a6 | ||
|
|
c2ec65cafb | ||
|
|
53982efa14 | ||
|
|
be1536b82f | ||
|
|
05158321ba | ||
|
|
f810921b0c | ||
|
|
2b8568ce37 | ||
|
|
d122a9fb52 |
@@ -10,6 +10,7 @@
|
|||||||
#include "TipThermoModel.h"
|
#include "TipThermoModel.h"
|
||||||
#include "USBPD.h"
|
#include "USBPD.h"
|
||||||
#include "Utils.hpp"
|
#include "Utils.hpp"
|
||||||
|
#include "bflb_platform.h"
|
||||||
#include "bl702_adc.h"
|
#include "bl702_adc.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "crc32.h"
|
#include "crc32.h"
|
||||||
@@ -282,16 +283,3 @@ void showBootLogo(void) {
|
|||||||
|
|
||||||
BootLogo::handleShowingLogo(scratch);
|
BootLogo::handleShowingLogo(scratch);
|
||||||
}
|
}
|
||||||
|
|
||||||
TemperatureType_t getCustomTipMaxInC() {
|
|
||||||
// have to lookup the max temp while being aware of the coe scaling value
|
|
||||||
float max_reading = ADC_MAX_READING - 1.0;
|
|
||||||
|
|
||||||
if (adcGainCoeffCal.adcGainCoeffEnable) {
|
|
||||||
max_reading /= adcGainCoeffCal.coe;
|
|
||||||
}
|
|
||||||
|
|
||||||
TemperatureType_t maximumTipTemp = TipThermoModel::convertTipRawADCToDegC(max_reading);
|
|
||||||
maximumTipTemp += getHandleTemperature(0) / 10; // Add handle offset
|
|
||||||
return maximumTipTemp - 1;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -161,7 +161,6 @@
|
|||||||
#define OLED_96x16 1
|
#define OLED_96x16 1
|
||||||
#define TEMP_NTC
|
#define TEMP_NTC
|
||||||
#define ACCEL_BMA
|
#define ACCEL_BMA
|
||||||
#define CUSTOM_MAX_TEMP_C 1 // Uses custom max temp lookup
|
|
||||||
#define ACCEL_SC7
|
#define ACCEL_SC7
|
||||||
#define HALL_SENSOR
|
#define HALL_SENSOR
|
||||||
#define HALL_SI7210
|
#define HALL_SI7210
|
||||||
|
|||||||
@@ -397,6 +397,9 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
|
|||||||
/* Check for multiplication overflow. */
|
/* Check for multiplication overflow. */
|
||||||
configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) );
|
configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) );
|
||||||
|
|
||||||
|
/* Check for addition overflow. */
|
||||||
|
configASSERT( ( sizeof( Queue_t ) + xQueueSizeInBytes ) > xQueueSizeInBytes );
|
||||||
|
|
||||||
/* Allocate the queue and storage area. Justification for MISRA
|
/* Allocate the queue and storage area. Justification for MISRA
|
||||||
* deviation as follows: pvPortMalloc() always ensures returned memory
|
* deviation as follows: pvPortMalloc() always ensures returned memory
|
||||||
* blocks are aligned per the requirements of the MCU stack. In this case
|
* blocks are aligned per the requirements of the MCU stack. In this case
|
||||||
|
|||||||
Reference in New Issue
Block a user