Midnight Sun Firmware
Loading...
Searching...
No Matches
mcu.h
1#pragma once
2
3/************************************************************************************************
4 * @file mcu.h
5 *
6 * @brief Header file for MCU intialization
7 *
8 * @date 2024-10-27
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13
14/* Inter-component Headers */
15
16/* Intra-component Headers*/
17#include "status.h"
18
25/* Timeout for HSE/LSE pins to stabilize. Should not take more than 5 seconds */
26#define HSE_LSE_TIMEOUT_MS 5000U
27
28#define USE_INTERNAL_OSCILLATOR 1U
29
35
StatusCode mcu_init(void)
Initialize MCU system clock and HAL.
Definition: mcu.c:89
StatusCode
StatusCodes for various errors.
Definition: status.h:27