F💻W/Coding

Silicon Lab EFR32 코드 분석

천숭이 2023. 6. 26. 13:42

보드 : EFR32MG22

 

GPIO

LED0 : GPIOD2

LED1 : GPIOD3

BUTTON0 : GPIOB0

BUTTON2 : GPIOB1

 

- GPIO 세팅

  // Configure Button PB1 as input and enable interrupt
  GPIO_PinModeSet(BSP_GPIO_PB1_PORT, BSP_GPIO_PB1_PIN, gpioModeInputPull, 1);
  GPIO_ExtIntConfig(BSP_GPIO_PB1_PORT,
                    BSP_GPIO_PB1_PIN,
                    BSP_GPIO_PB1_PIN,
                    false,
                    true,
                    true);

 

'F💻W > Coding' 카테고리의 다른 글

Atmega로 UART, SPI 통신 구현  (0) 2023.12.04
ATMEGA UART 출력  (0) 2023.11.21
gpio mode 참고  (0) 2023.07.10
[STM32F030C6T6] Bootloader 구현  (3) 2023.03.30
JSON Encoding/Decoding in C  (0) 2022.10.18
손가락 제스처(1~5) 학습 및 테스트 -> 라즈베리파이 에러  (0) 2022.07.30