Midnight Sun Firmware
Loading...
Searching...
No Matches
bootloader.h
1#pragma once
2
3/************************************************************************************************
4 * @file bootloader.h
5 *
6 * @brief Header file for bootloader
7 *
8 * @date 2025-01-08
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13#include <stdint.h>
14
15/* Inter-component Headers */
16
17/* Intra-component Headers */
18#include "bootloader_can.h"
19#include "bootloader_error.h"
20#include "bootloader_flash.h"
21#include "bootloader_memory_map.h"
22
42
54
60
67
74
BootloaderError bootloader_run(Boot_CanMessage *msg)
Run the bootloader.
Definition bootloader.c:54
BootloaderStates
Bootloader State Machine.
Definition bootloader.h:32
BootloaderError bootloader_init(void)
Initialize the bootloader.
Definition bootloader.c:44
BootloaderError bootloader_jump_app(void)
Jump application.
Definition bootloader_dfu.c:54
BootloaderPingStates
Bootloader Ping States.
Definition bootloader.h:46
BootloaderError
Bootloader error definitions.
Definition bootloader_error.h:28
@ BOOTLOADER_JUMP_APP
Definition bootloader.h:38
@ BOOTLOADER_PING
Definition bootloader.h:40
@ BOOTLOADER_WAIT_SEQUENCING
Definition bootloader.h:36
@ BOOTLOADER_DATA_RECEIVE
Definition bootloader.h:37
@ BOOTLOADER_START
Definition bootloader.h:35
@ BOOTLOADER_FAULT
Definition bootloader.h:39
@ BOOTLOADER_UNINITIALIZED
Definition bootloader.h:33
@ BOOTLOADER_IDLE
Definition bootloader.h:34
@ BOOTLOADER_PING_BRANCH
Bootloader ping should do branch stuff.
Definition bootloader.h:50
@ BOOTLOADER_PING_NODES
Bootloader should start pinging MCU's.
Definition bootloader.h:48
@ BOOTLOADER_PING_PROJECT
Bootloader ping should do group stuff.
Definition bootloader.h:52
CAN message structure.
Definition bootloader_can.h:80