Bläddra i källkod

Step out from SPL.

Vladimir N. Shilov 1 år sedan
förälder
incheckning
043601aefd
3 ändrade filer med 7 tillägg och 51 borttagningar
  1. 7 7
      Makefile
  2. 0 24
      inc/stm8s_conf.h
  3. 0 20
      src/main.c

+ 7 - 7
Makefile

@@ -51,21 +51,21 @@ APP_OBJECTS = $(notdir $(patsubst %.c,%.o,$(wildcard $(APP_SRC)/*.c)))
 LIB_OBJECTS = $(notdir $(patsubst %.c,%.o,$(wildcard $(LIB_SRC)/*.c)))
 
 # STM8S Peripheral driver object files
-PERIPH_OBJECTS = stm8s_adc1.o
+#PERIPH_OBJECTS = stm8s_adc1.o
 #PERIPH_OBJECTS += stm8s_awu.o
 #PERIPH_OBJECTS += stm8s_beep.o
-PERIPH_OBJECTS += stm8s_clk.o
-PERIPH_OBJECTS += stm8s_exti.o
+#PERIPH_OBJECTS += stm8s_clk.o
+#PERIPH_OBJECTS += stm8s_exti.o
 #PERIPH_OBJECTS += stm8s_flash.o
-PERIPH_OBJECTS += stm8s_gpio.o
+#PERIPH_OBJECTS += stm8s_gpio.o
 #PERIPH_OBJECTS += stm8s_i2c.o
-PERIPH_OBJECTS += stm8s_itc.o
+#PERIPH_OBJECTS += stm8s_itc.o
 #PERIPH_OBJECTS += stm8s_iwdg.o
 #PERIPH_OBJECTS += stm8s_rst.o
 #PERIPH_OBJECTS += stm8s_spi.o
-PERIPH_OBJECTS += stm8s_tim1.o
+#PERIPH_OBJECTS += stm8s_tim1.o
 #PERIPH_OBJECTS += stm8s_tim2.o
-PERIPH_OBJECTS += stm8s_tim4.o
+#PERIPH_OBJECTS += stm8s_tim4.o
 #PERIPH_OBJECTS += stm8s_uart1.o
 #PERIPH_OBJECTS += stm8s_wwdg.o
 

+ 0 - 24
inc/stm8s_conf.h

@@ -86,30 +86,6 @@
 #endif /* (STM8AF622x) */      
 #include "stm8s_wwdg.h"
 
-/* Exported types ------------------------------------------------------------*/
-/* Exported constants --------------------------------------------------------*/
-/* Uncomment the line below to expanse the "assert_param" macro in the
-   Standard Peripheral Library drivers code */
-//#define USE_FULL_ASSERT    (1) 
-
-/* Exported macro ------------------------------------------------------------*/
-#ifdef  USE_FULL_ASSERT
-
-/**
-  * @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 that failed.
-  *   If expr is true, it returns no value.
-  * @retval : None
-  */
-#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
-/* Exported functions ------------------------------------------------------- */
-void assert_failed(uint8_t* file, uint32_t line);
-#else
-#define assert_param(expr) ((void)0)
-#endif /* USE_FULL_ASSERT */
-
 #endif /* __STM8S_CONF_H */
 
 

+ 0 - 20
src/main.c

@@ -193,24 +193,4 @@ static void boardInit(void) {
   TIM4->CR1 |= (uint8_t)TIM4_CR1_CEN;
 }
 
-#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(u8* file, u32 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 */
-  while (1)
-  {
-  }
-}
-#endif
-
 /************************ (C) COPYRIGHT Shilov V.N. *****END OF FILE****/