diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2025-09-02 14:45:40 -0400 |
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2025-09-02 14:45:40 -0400 |
| commit | e3a880051ccf1ba9a16fd9cf031b7386b2533bf1 (patch) | |
| tree | 96a096b2a668bf7b7929385ebb54c1a3cbd1b9d2 /project/Core/Src/GPIO.c | |
| parent | 0ff718e7cd7159c30636aa323a666ac1af684f63 (diff) | |
| download | 340-repo-Sowgro-e3a880051ccf1ba9a16fd9cf031b7386b2533bf1.tar.gz 340-repo-Sowgro-e3a880051ccf1ba9a16fd9cf031b7386b2533bf1.tar.bz2 340-repo-Sowgro-e3a880051ccf1ba9a16fd9cf031b7386b2533bf1.zip | |
Organized project
Diffstat (limited to 'project/Core/Src/GPIO.c')
| -rw-r--r-- | project/Core/Src/GPIO.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/project/Core/Src/GPIO.c b/project/Core/Src/GPIO.c deleted file mode 100644 index f3812fa..0000000 --- a/project/Core/Src/GPIO.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * gpio.c - * - * Created on: Nov 4, 2021 - * Author: Mitesh Parikh - */ - - -/* Includes ------------------------------------------------------------------*/ -#include "GPIO.h" -#include <stdbool.h> -#include "stm32l4xx.h" - -// External Global Variables that we will need access to - - -/*----------------------------------------------------------------------------*/ -/* Configure GPIO */ -/*----------------------------------------------------------------------------*/ -void GPIO_Init(void) -{ - GPIO_InitTypeDef GPIO_InitStruct = {0}; - - /* GPIO Ports Clock Enable */ - __HAL_RCC_GPIOC_CLK_ENABLE(); - __HAL_RCC_GPIOH_CLK_ENABLE(); - __HAL_RCC_GPIOA_CLK_ENABLE(); - __HAL_RCC_GPIOB_CLK_ENABLE(); - - /*Configure GPIO pin : PtPin */ - GPIO_InitStruct.Pin = B1_Pin; - GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING; - GPIO_InitStruct.Pull = GPIO_NOPULL; - HAL_GPIO_Init(B1_GPIO_Port, &GPIO_InitStruct); - - GPIO_InitStruct.Pin = S1_Pin; - GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING; - GPIO_InitStruct.Pull = GPIO_PULLDOWN; - HAL_GPIO_Init(S1_GPIO_Port, &GPIO_InitStruct); - - /* EXTI15_10_IRQn interrupt init*/ - // Note you will have to add EXTI15_10_IRQn Interrupt handler function as well - // This is the interrupt handler for the blue button - - - /* EXTI9_5_IRQn interrupt init*/ - // Note you will have to add EXTI9_15_IRQn Interrupt handler function as well - // This is the interrupt handler for the external buttons (S1) -} - |
