2019.7.29 stm32 공부

STM32F405RG 사용
datasheet : https://www.st.com/resource/en/datasheet/dm00037051.pdf
HAL and LL driver User Manual : https://www.st.com/content/ccc/resource/technical/document/user_manual/2f/71/ba/b8/75/54/47/cf/DM00105879.pdf/files/DM00105879.pdf/jcr:content/translations/en.DM00105879.pdf

RCC : Reset and Clock Control

GPIO : General Purpose input/output

HAL : Hardware Abstraction Layer
쉬운 프로그래밍을 가능하게한다.
Register를 제어하는 부분이 모두 Library화 돼있다.
속도가 느리며 프로그램 사이즈가 커진다.

LL : Low Level driver
심플한 구조로 제작되어 있으며  함수 내에서 Register를 직접 제어하는 방식이다.

//HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2);
LL_GPIO_TogglePin(GPIOC, LL_GPIO_PIN_0 | LL_GPIO_PIN_1 | LL_GPIO_PIN_2)
HAL_Delay(1000);



Comments