efm32 preliminary understanding and learning

efm32 data is relatively small, many of which are on the official website, the official website is efm32 Silicon Labs  https://cn.silabs.com/

How to find specific information.

  1. Direct official website found your chips. For example, I efm32gg380f512
  2.  Find the corresponding manual data, such as chip chip manual, information relevant registers and so on. There are reference code

Using official data simpicity studio ide download

https://cn.silabs.com/products/development-tools/software/simplicity-studio

The purpose of this, the general use of library functions, related peripherals do not know how to write program code.

1 Peripheral I address this directly posted, I also had to find for a while  https://docs.silabs.com/#section-mcu-wireless , find the appropriate model

2 As for how to take the project, Guangzhou ZLG have a special code, or find directly from the ground, there are specific cases https://blog.csdn.net/qq_26602023/article/details/80389330 .

After that study.

About cast address, the time before had seen written, this is a concrete example. The reference is https://zhidao.baidu.com/question/474449950.html

with GPIOA #define ((GPIO_TypeDef *) GPIOA_BASE)
. 1) is cast GPIOA_BASE address space type GPIO_TypeDef be constructed, the first site is GPIOA_BASE, members of the space, the space between the respective allocated by each type of natural order;
2) GPIOA macro expansion, followed by the specific content that is followed, so it is a pointer: the point structure of space led to GPIOA_BASE address. So you give the GPIOA-> a member, set up the operation, such as taking the member address assignment and so on.

Guess you like

Origin www.cnblogs.com/luweiaaa/p/11777063.html