#ifndef __MAIN_H
#define __MAIN_H
#include "stm32c0xx_hal.h"
// ================= PIN DEFINITIONS =================
// LDR (ADC)
#define LDR_PORT GPIOA
#define LDR_PIN GPIO_PIN_0 // PA0
// PIR SENSOR
#define PIR_PORT GPIOA
#define PIR_PIN GPIO_PIN_1 // PA1
// PUSH BUTTON (INTERRUPT)
#define BUTTON_PORT GPIOB
#define BUTTON_PIN GPIO_PIN_1 // PB1
// LED PWM
#define LED_PORT GPIOA
#define LED_PIN GPIO_PIN_6 // PA6 (TIM3_CH1)
// ================= FUNCTION PROTOTYPES =================
void SystemClock_Config(void);
void MX_GPIO_Init(void);
void MX_ADC1_Init(void);
void MX_TIM3_Init(void);
#endifLoading
st-nucleo-c031c6
st-nucleo-c031c6