Add ADC code to measure temperature. Supervisor not yet implemented
This commit is contained in:
@@ -145,8 +145,8 @@
|
||||
#endif
|
||||
|
||||
#include <stdint.h> /* standard types definitions */
|
||||
#include <core_cmInstr.h> /* Core Instruction Access */
|
||||
#include <core_cmFunc.h> /* Core Function Access */
|
||||
#include <cmsis/core_cmInstr.h> /* Core Instruction Access */
|
||||
#include <cmsis/core_cmFunc.h> /* Core Function Access */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
10
firmware/include/ring-light/temp-adc.h
Normal file
10
firmware/include/ring-light/temp-adc.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef _TEMP_ADC_H_
|
||||
#define _TEMP_ADC_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void temperature_adc_init(void);
|
||||
|
||||
int32_t temperature_adc_get_temp(void);
|
||||
|
||||
#endif /* _TEMP_ADC_H_ */
|
@@ -9,7 +9,7 @@
|
||||
* This file contains:
|
||||
* - Data structures and the address mapping for all peripherals
|
||||
* - Peripheral's registers declarations and bits definition
|
||||
* - Macros to access peripheral<61>s registers hardware
|
||||
* - Macros to access peripheral<61>s registers hardware
|
||||
*
|
||||
******************************************************************************
|
||||
* @attention
|
||||
@@ -114,8 +114,8 @@ typedef enum
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
|
||||
#include "system_stm32f0xx.h" /* STM32F0xx System Header */
|
||||
#include <cmsis/core_cm0.h> /* Cortex-M0 processor and core peripherals */
|
||||
#include <system_stm32f0xx.h> /* STM32F0xx System Header */
|
||||
#include <stdint.h>
|
||||
|
||||
/** @addtogroup Peripheral_registers_structures
|
||||
|
Reference in New Issue
Block a user