mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
update uart and spi driver
This commit is contained in:
1 parent
b7cf7c5fc0
commit
d766ababec
5 files changed
+247
-241
No files matched your search
@@ -17,6 +17,14 @@
|
||||
#include <board.h>
|
||||
#include <finsh.h>
|
||||
|
||||
#ifdef RT_USING_SPI
|
||||
|
||||
#if !defined(RT_USING_SPI0) && !defined(RT_USING_SPI1) && \
|
||||
!defined(RT_USING_SPI2) && !defined(RT_USING_SPI3) && \
|
||||
!defined(RT_USING_SPI4) && !defined(RT_USING_SPI5)
|
||||
#error "Please define at least one SPIx"
|
||||
#endif
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
#define ARR_LEN(__N) (sizeof(__N) / sizeof(__N[0]))
|
||||
@@ -345,3 +353,4 @@ rt_err_t stm32_spi_bus_register(uint32_t spi_periph,
|
||||
p_spi_bus->hdma_rx.Init.PeriphBurst = DMA_PBURST_INC4;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,15 @@
|
||||
; *************************************************************
|
||||
; *** Scatter-Loading Description File generated by uVision ***
|
||||
; *************************************************************
|
||||
|
||||
LR_IROM1 0x08000000 0x00300000 { ; load region size_region
|
||||
ER_IROM1 0x08000000 0x00300000 { ; load address = execution address
|
||||
*.o (RESET, +First)
|
||||
*(InRoot$$Sections)
|
||||
.ANY (+RO)
|
||||
}
|
||||
RW_IRAM1 0x20000000 0x00030000 { ; RW data
|
||||
.ANY (+RW +ZI)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@
|
||||
</option>
|
||||
<option>
|
||||
<name>DSPExtension</name>
|
||||
<state>0</state>
|
||||
<state>1</state>
|
||||
</option>
|
||||
</data>
|
||||
</settings>
|
||||
@@ -2515,19 +2515,4 @@
|
||||
<name>$PROJ_DIR$\..\..\components\net\lwip-1.4.1\src\core\udp.c</name>
|
||||
</file>
|
||||
</group>
|
||||
<group>
|
||||
<name>trace</name>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\components\trace\SystemView_Src_V240\SEGGER\SEGGER_RTT.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\components\trace\SystemView_Src_V240\SEGGER\SEGGER_SYSVIEW.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\components\trace\SystemView_Src_V240\Config\SEGGER_SYSVIEW_Config_RTThread.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\components\trace\SystemView_Src_V240\Config\SEGGER_SYSVIEW_RTThread.c</name>
|
||||
</file>
|
||||
</group>
|
||||
</project>
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user