mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Bytes!! enable RM CPU temp
This commit is contained in:
parent
78127ae817
commit
a40f8f5ebd
@ -26,7 +26,6 @@
|
|||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef STM3210E_INS_H_
|
#ifndef STM3210E_INS_H_
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
@ -71,7 +70,6 @@ TIM8 | | | |
|
|||||||
#define BOARD_WRITABLE true
|
#define BOARD_WRITABLE true
|
||||||
#define MAX_DEL_RETRYS 3
|
#define MAX_DEL_RETRYS 3
|
||||||
|
|
||||||
|
|
||||||
//------------------------
|
//------------------------
|
||||||
// PIOS_LED
|
// PIOS_LED
|
||||||
//------------------------
|
//------------------------
|
||||||
@ -222,7 +220,6 @@ extern uint32_t pios_packet_handler;
|
|||||||
#define PIOS_IRQ_PRIO_MID 8 // higher than RTOS
|
#define PIOS_IRQ_PRIO_MID 8 // higher than RTOS
|
||||||
#define PIOS_IRQ_PRIO_HIGH 5 // for SPI, ADC, I2C etc...
|
#define PIOS_IRQ_PRIO_HIGH 5 // for SPI, ADC, I2C etc...
|
||||||
#define PIOS_IRQ_PRIO_HIGHEST 4 // for USART etc...
|
#define PIOS_IRQ_PRIO_HIGHEST 4 // for USART etc...
|
||||||
|
|
||||||
//------------------------
|
//------------------------
|
||||||
// PIOS_RCVR
|
// PIOS_RCVR
|
||||||
// See also pios_board.c
|
// See also pios_board.c
|
||||||
@ -295,6 +292,7 @@ extern uint32_t pios_packet_handler;
|
|||||||
#define PIOS_ADC_MAX_OVERSAMPLING 2
|
#define PIOS_ADC_MAX_OVERSAMPLING 2
|
||||||
#define PIOS_ADC_USE_ADC2 0
|
#define PIOS_ADC_USE_ADC2 0
|
||||||
#define PIOS_ADC_VOLTAGE_SCALE 3.30/4096.0
|
#define PIOS_ADC_VOLTAGE_SCALE 3.30/4096.0
|
||||||
|
#define PIOS_ADC_USE_TEMP_SENSOR 1
|
||||||
|
|
||||||
//-------------------------
|
//-------------------------
|
||||||
// USB
|
// USB
|
||||||
|
@ -220,7 +220,7 @@ int32_t PIOS_SYS_Reset(void)
|
|||||||
*/
|
*/
|
||||||
uint32_t PIOS_SYS_getCPUFlashSize(void)
|
uint32_t PIOS_SYS_getCPUFlashSize(void)
|
||||||
{
|
{
|
||||||
return ((uint32_t) MEM16(0x1fff7a22) * 1000); // it might be possible to locate in the OTP area, but haven't looked and not documented
|
return ((uint32_t) MEM16(0x1fff7a22) * 1024); // it might be possible to locate in the OTP area, but haven't looked and not documented
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user