mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 01:28:23 +00:00
*** EFM32 branch ***
1. Add EFM32 development kit support 2. Add USART sync mode (SPI) support 3. Add SPI Flash device (ST M25PX16) driver and demo application git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1401 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
* @section Change Logs
|
||||
* Date Author Notes
|
||||
* 2010-12-21 onelife Initial creation for EFM32
|
||||
* 2011-05-06 onelife Add EFM32 development kit and SPI Flash support
|
||||
*********************************************************************/
|
||||
|
||||
/******************************************************************//**
|
||||
@@ -189,6 +190,11 @@ void rt_hw_board_init(void)
|
||||
/* Chip errata */
|
||||
CHIP_Init();
|
||||
|
||||
#if defined(EFM32_G290_DK)
|
||||
/* Initialize DVK board register access */
|
||||
DVK_init();
|
||||
#endif
|
||||
|
||||
/* NVIC Configuration */
|
||||
NVIC_Configuration();
|
||||
|
||||
@@ -222,6 +228,10 @@ void rt_hw_driver_init(void)
|
||||
rt_hw_dma_init();
|
||||
|
||||
/* Initialize USART */
|
||||
#if defined(EFM32_G290_DK)
|
||||
DVK_enablePeripheral(DVK_RS232A);
|
||||
DVK_enablePeripheral(DVK_SPI);
|
||||
#endif
|
||||
rt_hw_usart_init();
|
||||
|
||||
/* Initialize Timer */
|
||||
|
||||
Reference in New Issue
Block a user