Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
delete unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenzeliu committed Apr 2, 2023
1 parent 2361da5 commit 552d6e2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 102 deletions.
10 changes: 5 additions & 5 deletions Template.uvoptx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</DaveTm>

<Target>
<TargetName>Target 1</TargetName>
<TargetName>Template_STM32F0</TargetName>
<ToolsetNumber>0x4</ToolsetNumber>
<ToolsetName>ARM-ADS</ToolsetName>
<TargetOption>
Expand Down Expand Up @@ -858,8 +858,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\System\SysDelay.c</PathWithFileName>
<FilenameWithoutPath>SysDelay.c</FilenameWithoutPath>
<PathWithFileName>.\System\template_delay.c</PathWithFileName>
<FilenameWithoutPath>template_delay.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
Expand All @@ -870,8 +870,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\System\SysDelay.h</PathWithFileName>
<FilenameWithoutPath>SysDelay.h</FilenameWithoutPath>
<PathWithFileName>.\System\template_delay.h</PathWithFileName>
<FilenameWithoutPath>template_delay.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
Expand Down
10 changes: 5 additions & 5 deletions Template.uvprojx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<Targets>
<Target>
<TargetName>Target 1</TargetName>
<TargetName>Template_STM32F0</TargetName>
<ToolsetNumber>0x4</ToolsetNumber>
<ToolsetName>ARM-ADS</ToolsetName>
<pCCUsed>5060960::V5.06 update 7 (build 960)::.\ARM_Compiler_5.06u7</pCCUsed>
Expand Down Expand Up @@ -665,14 +665,14 @@
<GroupName>System</GroupName>
<Files>
<File>
<FileName>SysDelay.c</FileName>
<FileName>template_delay.c</FileName>
<FileType>1</FileType>
<FilePath>.\System\SysDelay.c</FilePath>
<FilePath>.\System\template_delay.c</FilePath>
</File>
<File>
<FileName>SysDelay.h</FileName>
<FileName>template_delay.h</FileName>
<FileType>5</FileType>
<FilePath>.\System\SysDelay.h</FilePath>
<FilePath>.\System\template_delay.h</FilePath>
</File>
</Files>
</Group>
Expand Down
65 changes: 1 addition & 64 deletions User/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,10 @@
* @date 13-October-2021
* @brief Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2014 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/

/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "SysDelay.h"

/** @addtogroup STM32F0xx_StdPeriph_Templates
* @{
*/

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

/**
* @brief Main program.
Expand All @@ -40,50 +18,9 @@
*/
int main(void)
{

/*!< At this stage the microcontroller clock setting is already configured,
this is done through SystemInit() function which is called from startup
file (startup_stm32f0xx.s) before to branch to application main.
To reconfigure the default setting of SystemInit() function, refer to
system_stm32f0xx.c file
*/

/* Add your application code here
*/


/* Infinite loop */
while (1)
{

}
}


#ifdef USE_FULL_ASSERT

/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t* file, uint32_t line)
{
/* User can add his own implementation to report the file name and line number,
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */

/* Infinite loop */
/* Infinite loop */
while (1)
{

}
}
#endif

/**
* @}
*/


31 changes: 3 additions & 28 deletions User/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,14 @@
* @date 13-October-2021
* @brief Header for main.c module
******************************************************************************
* @attention
*
* Copyright (c) 2014 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

/* Includes ------------------------------------------------------------------*/
#include "stm32f0xx.h"
#include "template_delay.h"

#ifdef USE_STM320518_EVAL
#include "stm320518_eval.h"
#include "stm320518_eval_lcd.h"
#endif /* USE_STM320518_EVAL */

#ifdef USE_STM32072B_EVAL
#include "stm32072b_eval.h"
#include "stm32072b_eval_lcd.h"
#endif /* USE_STM32072B_EVAL */

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

#endif /* __MAIN_H */

#endif

0 comments on commit 552d6e2

Please sign in to comment.