mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
Remove unused files from STM32L discovery board demo directory structure and build.
This commit is contained in:
parent
751103d848
commit
0028cc48c1
48 changed files with 330 additions and 21393 deletions
|
@ -89,7 +89,7 @@ assembler. */
|
|||
|
||||
/* Set configCREATE_LOW_POWER_DEMO to one to run the simple blinky low power
|
||||
demo, or 0 to run the more comprehensive test and demo application. */
|
||||
#define configCREATE_LOW_POWER_DEMO 0
|
||||
#define configCREATE_LOW_POWER_DEMO 1
|
||||
|
||||
/* A few settings are dependent on the configCREATE_LOW_POWER_DEMO setting. */
|
||||
#if configCREATE_LOW_POWER_DEMO == 1
|
||||
|
|
|
@ -1,126 +0,0 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file discover_functions.h
|
||||
* @author Microcontroller Division
|
||||
* @version V1.0.3
|
||||
* @date May-2013
|
||||
* @brief This file contains measurement values and board
|
||||
******************************************************************************
|
||||
* @copy
|
||||
*
|
||||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||
*
|
||||
* <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __DISCOVER_FUNCTIONS_H
|
||||
#define __DISCOVER_FUNCTIONS_H
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "stm32l1xx.h"
|
||||
|
||||
#define DELAY Delay(150)
|
||||
#define TEMPO if(!KeyPressed) DELAY
|
||||
|
||||
//#define SLIDER_DETECTED (sMCKeyInfo[0].Setting.b.DETECTED)
|
||||
//#define SLIDER_POSITION (sMCKeyInfo[0].UnScaledPosition)
|
||||
|
||||
#define enableGlobalInterrupts() __set_PRIMASK(0);
|
||||
#define disableGlobalInterrupts() __set_PRIMASK(1);
|
||||
|
||||
#define STR_VERSION tab[1] = 'V';tab[2] = '2'|DOT; tab[3] = '0'|DOT; tab[4] = '4'
|
||||
|
||||
#define STATE_VREF 0
|
||||
#define STATE_SLIDER_VALUE 1
|
||||
#define STATE_SLIDER_BUTTON 2
|
||||
#define STATE_ICC_RUN 3
|
||||
#define STATE_ICC_LP_RUN 4
|
||||
#define STATE_ICC_STOP 5
|
||||
#define STATE_ICC_STBY 6
|
||||
|
||||
#define MAX_STATE 7
|
||||
|
||||
|
||||
/* Theorically BandGAP 1.224volt */
|
||||
#define VREF 1.224L
|
||||
|
||||
|
||||
/*
|
||||
ADC Converter
|
||||
LSBIdeal = VREF/4096 or VDA/4096
|
||||
*/
|
||||
#define ADC_CONV 4096
|
||||
|
||||
/*
|
||||
VDD Factory for VREFINT measurement
|
||||
*/
|
||||
#define VDD_FACTORY 3.0L
|
||||
|
||||
#define MAX_CURRENT 99999
|
||||
|
||||
/* AUTO TEST VALUE */
|
||||
|
||||
#define VCC_MIN 2920 /* nominal Vcc/Vdd is 2.99V, allow 2.5% lower - Vref can be ~2% lower than 1.225 */
|
||||
#define VCC_MAX 3100
|
||||
#define ICC_RUN_MIN 6000
|
||||
#define ICC_RUN_MAX 11000 /* typical ICC_RUN is ~0.9mA */
|
||||
#define ICC_STOP_MIN 250
|
||||
#define ICC_STOP_MAX 800 /* typical ICC_STOP is 0.6uA */
|
||||
#define ICC_BIAS_MAX 30 /* ! converter value in decimal ! --> 3.0volts/4036* 30 = 21 mV */
|
||||
|
||||
#define ICC_STBY_MIN 150 /* typical ICC_STAND BY is 0.3 uA */
|
||||
#define ICC_STBY_MAX 450
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
|
||||
#define AUTOTEST(a) DATA_EEPROM_Unlock(); DATA_EEPROM_FastProgramByte((uint32_t)&self_test,a ) ; DATA_EEPROM_Lock()
|
||||
|
||||
/* Exported functions ------------------------------------------------------- */
|
||||
|
||||
|
||||
void Init_Port (void);
|
||||
void convert_into_char(uint32_t number, uint16_t *p_tab);
|
||||
void LPR_init(void);
|
||||
void Halt_Init(void);
|
||||
uint16_t Vref_measure(void);
|
||||
void Icc_measure(void);
|
||||
float Icc_RUN(void);
|
||||
float Icc_SLEEP(void);
|
||||
float Icc_LPRUN(void);
|
||||
float Icc_LPSLEEP(void);
|
||||
float Icc_STOP(void);
|
||||
float Icc_Stop_NoRTC(void);
|
||||
void Icc_STBY(void);
|
||||
float Icc_STBY_NoRTC(void);
|
||||
void auto_test(void);
|
||||
void Bias_measurement(void);
|
||||
void test_vdd(void);
|
||||
void test_icc_Run(void);
|
||||
void test_icc_STOP(void);
|
||||
void test_icc_STBY(void);
|
||||
void display_MuAmp (uint32_t);
|
||||
void FLASH_ProgramBias(uint8_t) ;
|
||||
float Vdd_appli(void);
|
||||
uint16_t wake_up_measurement (void);
|
||||
void RCC_Configuration(void);
|
||||
void Init_clocks(void);
|
||||
void Init_GPIOs (void);
|
||||
void TimingDelay_Decrement(void);
|
||||
void Delay(uint32_t nTime);
|
||||
void ExtraCode_StateMachine(void);
|
||||
void Config_Systick(void);
|
||||
void Config_Systick_50ms(void);
|
||||
void Button_value(void);
|
||||
void Slider_value(void);
|
||||
void auto_test_part2(void);
|
||||
|
||||
#endif /* __DISCOVER_FUNCTIONS_H*/
|
||||
|
||||
/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file Project/STM32L1xx_StdPeriph_Template/main.h
|
||||
* @file Project/STM32L1xx_StdPeriph_Template/main.h
|
||||
* @author MCD Application Team
|
||||
* @version V1.0.3
|
||||
* @date May-2013
|
||||
|
@ -17,8 +17,8 @@
|
|||
*
|
||||
* <h2><center>© COPYRIGHT 2010 STMicroelectronics</center></h2>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __MAIN_H
|
||||
#define __MAIN_H
|
||||
|
@ -36,7 +36,6 @@
|
|||
/* discovery board and specific drivers headers*/
|
||||
#include "discover_board.h"
|
||||
#include "icc_measure.h"
|
||||
#include "discover_functions.h"
|
||||
#include "stm32l_discovery_lcd.h"
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file Project/STM32L1xx_StdPeriph_Template/stm32l1xx_conf.h
|
||||
* @file Project/STM32L1xx_StdPeriph_Template/stm32l1xx_conf.h
|
||||
* @author MCD Application Team
|
||||
* @version V1.0.3
|
||||
* @date May-2013
|
||||
|
@ -17,7 +17,7 @@
|
|||
*
|
||||
* <h2><center>© COPYRIGHT 2010 STMicroelectronics</center></h2>
|
||||
******************************************************************************
|
||||
*/
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __STM32L1xx_CONF_H
|
||||
|
@ -25,31 +25,31 @@
|
|||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
/* Comment the line below to disable peripheral header file inclusion */
|
||||
#include "stm32l1xx_adc.h"
|
||||
#include "stm32l1xx_crc.h"
|
||||
#include "stm32l1xx_comp.h"
|
||||
#include "stm32l1xx_dac.h"
|
||||
#include "stm32l1xx_dbgmcu.h"
|
||||
#include "stm32l1xx_dma.h"
|
||||
//#include "stm32l1xx_adc.h"
|
||||
//#include "stm32l1xx_crc.h"
|
||||
//#include "stm32l1xx_comp.h"
|
||||
//#include "stm32l1xx_dac.h"
|
||||
//#include "stm32l1xx_dbgmcu.h"
|
||||
//#include "stm32l1xx_dma.h"
|
||||
#include "stm32l1xx_exti.h"
|
||||
#include "stm32l1xx_flash.h"
|
||||
//#include "stm32l1xx_flash.h"
|
||||
#include "stm32l1xx_gpio.h"
|
||||
#include "stm32l1xx_syscfg.h"
|
||||
#include "stm32l1xx_i2c.h"
|
||||
#include "stm32l1xx_iwdg.h"
|
||||
//#include "stm32l1xx_i2c.h"
|
||||
//#include "stm32l1xx_iwdg.h"
|
||||
#include "stm32l1xx_lcd.h"
|
||||
#include "stm32l1xx_pwr.h"
|
||||
#include "stm32l1xx_rcc.h"
|
||||
#include "stm32l1xx_rtc.h"
|
||||
#include "stm32l1xx_spi.h"
|
||||
//#include "stm32l1xx_spi.h"
|
||||
#include "stm32l1xx_tim.h"
|
||||
#include "stm32l1xx_usart.h"
|
||||
#include "stm32l1xx_wwdg.h"
|
||||
//#include "stm32l1xx_usart.h"
|
||||
//#include "stm32l1xx_wwdg.h"
|
||||
#include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* Uncomment the line below to expanse the "assert_param" macro in the
|
||||
/* Uncomment the line below to expanse the "assert_param" macro in the
|
||||
Standard Peripheral Library drivers code */
|
||||
/* #define USE_FULL_ASSERT 1 */
|
||||
|
||||
|
@ -58,8 +58,8 @@
|
|||
|
||||
/**
|
||||
* @brief The assert_param macro is used for function's parameters check.
|
||||
* @param expr: If expr is false, it calls assert_failed function which reports
|
||||
* the name of the source file and the source line number of the call
|
||||
* @param expr: If expr is false, it calls assert_failed function which reports
|
||||
* the name of the source file and the source line number of the call
|
||||
* that failed. If expr is true, it returns no value.
|
||||
* @retval None
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue