Midnight Sun Firmware
Loading...
Searching...
No Matches
display.h
1#pragma once
2
3/************************************************************************************************
4 * @file display.h
5 *
6 * @brief Header file for display control
7 *
8 * @date 2025-07-28
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13#include <stdbool.h>
14
15/* Inter-component Headers */
16#include "status.h"
17
18/* Intra-component Headers */
19#include "steering.h"
20
32#define HORIZONTAL_SYNC_WIDTH 4
33#define VERTICAL_SYNC_WIDTH 4
34#define HORIZONTAL_BACK_PORCH 43
35#define VERTICAL_BACK_PORCH 12
36#define HORIZONTAL_FRONT_PORCH 8
37#define VERTICAL_FRONT_PORCH 8
38
39#ifdef STM32L4P5xx /* Framebuffer takes up too much RAM on other STMs otherwise*/
40#define DISPLAY_WIDTH 480
41#define DISPLAY_HEIGHT 272
42#else
43#define DISPLAY_WIDTH 1
44#define DISPLAY_HEIGHT 1
45#endif
46
54
StatusCode
StatusCodes for various errors.
Definition: status.h:27
StatusCode display_init(SteeringStorage *storage)
Initialize the display.
Definition: display.c:34
Steering storage.
Definition: steering.h:73