提交 ad197870 编写于 作者: 似水流年

main.c增加空行,将debug输出移动到board.h

上级 b81dc4a9
...@@ -50,4 +50,4 @@ void assert_errhandler(uint8_t* file, uint32_t line) ...@@ -50,4 +50,4 @@ void assert_errhandler(uint8_t* file, uint32_t line)
{ {
} }
} }
#endif #endif
\ No newline at end of file
...@@ -32,7 +32,13 @@ extern int __bss_end; ...@@ -32,7 +32,13 @@ extern int __bss_end;
#define HEAP_BEGIN ((void *)&__bss_end) #define HEAP_BEGIN ((void *)&__bss_end)
#endif #endif
#define HEAP_END V85XX_SRAM_END #define HEAP_END V85XX_SRAM_END
/* #define DEBUG */
#ifdef DEBUG
#define DEBUG_PRINTF(...) rt_kprintf(__VA_ARGS__)
#else
#define DEBUG_PRINTF(...)
#endif
#endif #endif
...@@ -22,13 +22,6 @@ ...@@ -22,13 +22,6 @@
#error "Please define at least one SPIx" #error "Please define at least one SPIx"
#endif #endif
/* #define DEBUG */
#ifdef DEBUG
#define DEBUG_PRINTF(...) rt_kprintf(__VA_ARGS__)
#else
#define DEBUG_PRINTF(...)
#endif
/* private rt-thread spi ops function */ /* private rt-thread spi ops function */
static rt_err_t configure(struct rt_spi_device* device, struct rt_spi_configuration* configuration); static rt_err_t configure(struct rt_spi_device* device, struct rt_spi_configuration* configuration);
static rt_uint32_t xfer(struct rt_spi_device* device, struct rt_spi_message* message); static rt_uint32_t xfer(struct rt_spi_device* device, struct rt_spi_message* message);
...@@ -199,7 +192,7 @@ int v85xx_hw_spi_init(void) ...@@ -199,7 +192,7 @@ int v85xx_hw_spi_init(void)
result = rt_spi_bus_register(&spi_bus0, "spi1", &v85xx_spi_ops); result = rt_spi_bus_register(&spi_bus0, "spi1", &v85xx_spi_ops);
#endif #endif
#ifdef RT_USING_SPI2 #ifdef RT_USING_SPI2
static struct rt_spi_bus spi_bus1; static struct rt_spi_bus spi_bus1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册