52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
/*
|
|
* pansi.c
|
|
*
|
|
* Created on: Nov 13, 2025
|
|
* Author: pansi21
|
|
* Copyright (c) 2025 PANSI21.xyz.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "pansi.h"
|
|
#include <stdint.h>
|
|
|
|
// ================= USART =======================
|
|
|
|
// =============== END USART =====================
|
|
|
|
|
|
// ================= TIM6 ========================
|
|
|
|
// =============== END TIM6 =====================
|
|
|
|
|
|
// ================= ADC-TEMP =======================
|
|
|
|
// =============== END ADC-TEMP =====================
|
|
|
|
|
|
// ================= ADC-IN =======================
|
|
|
|
// =============== END ADC-IN =====================
|
|
|
|
// ================== UTILS =======================
|
|
|
|
/**
|
|
* @brief Funzione di Accensione onBoard
|
|
*
|
|
* Permette di far accendere e spegnere contemporaneamente tutti i leg
|
|
* presenti sulla board.
|
|
*/
|
|
void MOTD_init(void) {
|
|
HAL_Delay(500);
|
|
GPIOB->BSRR |= GPIO_BSRR_BS0;
|
|
GPIOB->BSRR |= GPIO_BSRR_BS14;
|
|
GPIOE->BSRR |= GPIO_BSRR_BS1;
|
|
HAL_Delay(500);
|
|
GPIOB->BSRR |= GPIO_BSRR_BR0;
|
|
GPIOB->BSRR |= GPIO_BSRR_BR14;
|
|
GPIOE->BSRR |= GPIO_BSRR_BR1;
|
|
}
|
|
|
|
// ================== END UTILS ===================
|