A bit of clean-up & update configuration.h files (#1717)
* BSP/configuration.h: update & clean-up macro defines * BSP/MHP30/configuration.h: add lost-during-update macro
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
#ifndef CONFIGURATION_H_
|
#ifndef CONFIGURATION_H_
|
||||||
#define CONFIGURATION_H_
|
#define CONFIGURATION_H_
|
||||||
#include "Settings.h"
|
#include "Settings.h"
|
||||||
#include "configuration.h"
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
/**
|
/**
|
||||||
* Configuration.h
|
* Configuration.h
|
||||||
* Define here your default pre settings for TS80 or TS100
|
* Define here your default pre settings for MHP30
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -86,13 +85,9 @@
|
|||||||
#define ADC_MAX_READING (4096 * 8) // Maximum reading of the adc
|
#define ADC_MAX_READING (4096 * 8) // Maximum reading of the adc
|
||||||
#define ADC_VDD_MV 3300 // ADC max reading millivolts
|
#define ADC_VDD_MV 3300 // ADC max reading millivolts
|
||||||
|
|
||||||
#ifdef MODEL_TS100
|
|
||||||
#define POWER_PULSE_DEFAULT 0
|
|
||||||
#else
|
|
||||||
#define POWER_PULSE_DEFAULT 5
|
|
||||||
#endif
|
|
||||||
#define POWER_PULSE_WAIT_DEFAULT 4 // Default rate of the power pulse: 4*2500 = 10000 ms = 10 s
|
#define POWER_PULSE_WAIT_DEFAULT 4 // Default rate of the power pulse: 4*2500 = 10000 ms = 10 s
|
||||||
#define POWER_PULSE_DURATION_DEFAULT 1 // Default duration of the power pulse: 1*250 = 250 ms
|
#define POWER_PULSE_DURATION_DEFAULT 1 // Default duration of the power pulse: 1*250 = 250 ms
|
||||||
|
#define POWER_PULSE_DEFAULT 5
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OLED Orientation Sensitivity on Automatic mode!
|
* OLED Orientation Sensitivity on Automatic mode!
|
||||||
@@ -169,12 +164,13 @@
|
|||||||
#define HARDWARE_MAX_WATTAGE_X10 650
|
#define HARDWARE_MAX_WATTAGE_X10 650
|
||||||
#define TIP_THERMAL_MASS 65 // TODO, needs refinement
|
#define TIP_THERMAL_MASS 65 // TODO, needs refinement
|
||||||
#define TIP_RESISTANCE 60 // x10 ohms, ~6 typical
|
#define TIP_RESISTANCE 60 // x10 ohms, ~6 typical
|
||||||
#endif
|
#endif /* MHP30 */
|
||||||
|
|
||||||
#ifdef ACCEL_EXITS_ON_MOVEMENT
|
#ifdef ACCEL_EXITS_ON_MOVEMENT
|
||||||
#define NO_SLEEP_MODE
|
#define NO_SLEEP_MODE
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
|
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
|
||||||
#define SETTINGS_START_PAGE (0x08000000 + (127 * 1024))
|
#define SETTINGS_START_PAGE (0x08000000 + (127 * 1024))
|
||||||
|
|
||||||
|
#endif /* CONFIGURATION_H_ */
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
/**
|
/**
|
||||||
* Configuration.h
|
* Configuration.h
|
||||||
* Define here your default pre settings for TS80(P) or TS100
|
* Define here your default pre settings for TS80(P) or TS10(0/1)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
#define POWER_PULSE_DEFAULT 0
|
#define POWER_PULSE_DEFAULT 0
|
||||||
#else
|
#else
|
||||||
#define POWER_PULSE_DEFAULT 5
|
#define POWER_PULSE_DEFAULT 5
|
||||||
#endif
|
#endif /* Pinecil */
|
||||||
#define POWER_PULSE_WAIT_DEFAULT 4 // Default rate of the power pulse: 4*2500 = 10000 ms = 10 s
|
#define POWER_PULSE_WAIT_DEFAULT 4 // Default rate of the power pulse: 4*2500 = 10000 ms = 10 s
|
||||||
#define POWER_PULSE_DURATION_DEFAULT 1 // Default duration of the power pulse: 1*250 = 250 ms
|
#define POWER_PULSE_DURATION_DEFAULT 1 // Default duration of the power pulse: 1*250 = 250 ms
|
||||||
|
|
||||||
@@ -164,10 +164,11 @@
|
|||||||
#define TIP_THERMAL_MASS 65 // X10 watts to raise 1 deg C in 1 second
|
#define TIP_THERMAL_MASS 65 // X10 watts to raise 1 deg C in 1 second
|
||||||
#define TIP_RESISTANCE 75 // x10 ohms, 7.5 typical for Pinecil tips
|
#define TIP_RESISTANCE 75 // x10 ohms, 7.5 typical for Pinecil tips
|
||||||
#define CANT_DIRECT_READ_SETTINGS
|
#define CANT_DIRECT_READ_SETTINGS
|
||||||
#endif
|
#endif /* Pinecil */
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FLASH_LOGOADDR (0x08000000 + (126 * 1024))
|
#define FLASH_LOGOADDR (0x08000000 + (126 * 1024))
|
||||||
#define SETTINGS_START_PAGE (0x08000000 + (127 * 1024))
|
#define SETTINGS_START_PAGE (0x08000000 + (127 * 1024))
|
||||||
|
|
||||||
#define HAS_POWER_DEBUG_MENU
|
#define HAS_POWER_DEBUG_MENU
|
||||||
|
|
||||||
|
#endif /* CONFIGURATION_H_ */
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
/**
|
/**
|
||||||
* Configuration.h
|
* Configuration.h
|
||||||
* Define here your default pre settings for Pinecil
|
* Define here your default pre settings for Pinecilv2
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
#define POWER_PULSE_DEFAULT 0
|
#define POWER_PULSE_DEFAULT 0
|
||||||
#else
|
#else
|
||||||
#define POWER_PULSE_DEFAULT 5
|
#define POWER_PULSE_DEFAULT 5
|
||||||
#endif
|
#endif /* Pinecil */
|
||||||
#define POWER_PULSE_WAIT_DEFAULT 4 // Default rate of the power pulse: 4*2500 = 10000 ms = 10 s
|
#define POWER_PULSE_WAIT_DEFAULT 4 // Default rate of the power pulse: 4*2500 = 10000 ms = 10 s
|
||||||
#define POWER_PULSE_DURATION_DEFAULT 1 // Default duration of the power pulse: 1*250 = 250 ms
|
#define POWER_PULSE_DURATION_DEFAULT 1 // Default duration of the power pulse: 1*250 = 250 ms
|
||||||
|
|
||||||
@@ -165,9 +165,10 @@
|
|||||||
#define BLE_ENABLED
|
#define BLE_ENABLED
|
||||||
#define NEEDS_VBUS_PROBE 0
|
#define NEEDS_VBUS_PROBE 0
|
||||||
#define CANT_DIRECT_READ_SETTINGS
|
#define CANT_DIRECT_READ_SETTINGS
|
||||||
#endif
|
#endif /* Pinecilv2 */
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FLASH_LOGOADDR (0x23000000 + (1022 * 1024))
|
#define FLASH_LOGOADDR (0x23000000 + (1022 * 1024))
|
||||||
#define FLASH_PAGE_SIZE (1024)
|
#define FLASH_PAGE_SIZE (1024)
|
||||||
#define SETTINGS_START_PAGE (1023 * FLASH_PAGE_SIZE) // Hal auto offsets base addr
|
#define SETTINGS_START_PAGE (1023 * FLASH_PAGE_SIZE) // Hal auto offsets base addr
|
||||||
|
|
||||||
|
#endif /* CONFIGURATION_H_ */
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
/**
|
/**
|
||||||
* Configuration.h
|
* Configuration.h
|
||||||
* Define here your default pre settings for TS80(P) or S60
|
* Define here your default pre settings for S60
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -163,9 +163,9 @@
|
|||||||
#define OLED_I2CBB2
|
#define OLED_I2CBB2
|
||||||
|
|
||||||
#define MODEL_HAS_DCDC // We dont have DC/DC but have reallly fast PWM that gets us roughly the same place
|
#define MODEL_HAS_DCDC // We dont have DC/DC but have reallly fast PWM that gets us roughly the same place
|
||||||
#endif
|
#endif /* S60 */
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
|
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
|
||||||
#define SETTINGS_START_PAGE (0x08000000 + (63 * 1024))
|
#define SETTINGS_START_PAGE (0x08000000 + (63 * 1024))
|
||||||
|
|
||||||
|
#endif /* CONFIGURATION_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user