Add ADC code to measure temperature. Supervisor not yet implemented

This commit is contained in:
2021-04-03 22:48:53 +02:00
parent f47631b2cf
commit e8606bcea8
6 changed files with 125 additions and 9 deletions

View File

@@ -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
}

View 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_ */

View File

@@ -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