Classes | Macros | Functions
bootloaderShared.h File Reference
#include <stdint.h>
Include dependency graph for bootloaderShared.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  bootloader_header_t
 

Macros

#define BOOTLOADER_FLASH_BLOCK_SIZE   ((uint32_t)8192)
 
#define BOOTLOADER_FLASH_BOOTLOADER_HEADER_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + BOOTLOADER_FLASH_BOOTLOADER_SIZE - BOOTLOADER_FLASH_BOOTLOADER_HEADER_SIZE)
 
#define BOOTLOADER_FLASH_BOOTLOADER_HEADER_SIZE   BOOTLOADER_FLASH_PAGE_SIZE
 
#define BOOTLOADER_FLASH_BOOTLOADER_SIZE   ((uint32_t)16384)
 
#define BOOTLOADER_FLASH_CALIB_BASE_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + 0x000FC000)
 
#define BOOTLOADER_FLASH_CONFIG_BASE_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + 0x000FE000)
 
#define BOOTLOADER_FLASH_CONFIG_MIRROR_BASE_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + 0x000FA000)
 
#define BOOTLOADER_FLASH_END_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + BOOTLOADER_FLASH_TOTAL_SIZE)
 
#define BOOTLOADER_FLASH_PAGE_SIZE   ((uint32_t)512)
 
#define BOOTLOADER_FLASH_SECTOR_SIZE   ((uint32_t)131072)
 
#define BOOTLOADER_FLASH_START_ADDRESS   ((uint32_t)0x00400000)
 
#define BOOTLOADER_FLASH_TOTAL_SIZE   ((uint32_t)1048576)
 
#define BOOTLOADER_FLASH_USER_APPLICATION_SIZE   ((uint32_t)966656)
 
#define BOOTLOADER_FLASH_USER_APPLICATION_START_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + BOOTLOADER_FLASH_BOOTLOADER_SIZE)
 
#define BOOTLOADER_FLASH_USER_DATA_END_ADDRESS   (BOOTLOADER_FLASH_USER_DATA_START_ADDRESS + BOOTLOADER_FLASH_USER_DATA_SIZE)
 
#define BOOTLOADER_FLASH_USER_DATA_SIZE   (BOOTLOADER_FLASH_TOTAL_SIZE - BOOTLOADER_FLASH_USER_APPLICATION_SIZE - BOOTLOADER_FLASH_BOOTLOADER_SIZE)
 
#define BOOTLOADER_FLASH_USER_DATA_START_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + BOOTLOADER_FLASH_BOOTLOADER_SIZE + BOOTLOADER_FLASH_USER_APPLICATION_SIZE)
 
#define BOOTLOADER_HASH_CODE_START_VALUE   ((uint32_t)435258227)
 
#define BOOTLOADER_HEADER_INITIAL_FILL_BYTE   ((uint8_t)0xFE)
 
#define BOOTLOADER_HEADER_INITIAL_FILL_UINT_32   ((uint32_t)0xFEFEFEFE)
 
#define BOOTLOADER_JUMP_SIGNATURE_SIZE   ((uint32_t)32)
 
#define BOOTLOADER_JUMP_SIGNATURE_STAY_IN_BOOTLOADER   "__StayInBootLoader12345__"
 
#define BOOTLOADER_JUMP_SIGNATURE_STAY_IN_USER_APPLICATION   "__StayInUserApplication__"
 
#define BOOTLOADER_LOGICAL_PAGE_SIZE   ((uint32_t)65536)
 
#define BOOTLOADER_SIGNATURE_FOUND_MARKER   ((uint32_t)1)
 
#define BOOTLOADER_SIGNATURE_REQUIRED_WITHIN_BYTE_COUNT   ((uint32_t)16384)
 
#define BOOTLOADER_SIGNATURE_SIZE   ((uint32_t)16)
 
#define CONF_UART_BAUDRATE   921600
 
#define CONF_UART_BAUDRATE_RS232   230400
 
#define CONF_UART_BAUDRATE_SLOW   115200
 
#define PORT_SEL_KEY_SYS_GPBR_3   0x09ea4f06
 
#define PORT_SEL_KEY_SYS_GPBR_4   0x13d6007e
 
#define PORT_SEL_KEY_SYS_GPBR_5   0x93f035fe
 
#define PORT_SEL_KEY_SYS_GPBR_6   0xd096ae0f
 
#define PORT_SEL_SER0   0
 
#define PORT_SEL_SER1   1
 
#define PORT_SEL_USB   2
 

Functions

uint32_t calculateBootloaderHashCode (uint32_t hashCode, const uint32_t *start, const uint32_t *end)
 

Macro Definition Documentation

◆ BOOTLOADER_FLASH_BLOCK_SIZE

#define BOOTLOADER_FLASH_BLOCK_SIZE   ((uint32_t)8192)

Definition at line 71 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_BOOTLOADER_HEADER_ADDRESS

Definition at line 81 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_BOOTLOADER_HEADER_SIZE

#define BOOTLOADER_FLASH_BOOTLOADER_HEADER_SIZE   BOOTLOADER_FLASH_PAGE_SIZE

Definition at line 76 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_BOOTLOADER_SIZE

#define BOOTLOADER_FLASH_BOOTLOADER_SIZE   ((uint32_t)16384)

Definition at line 51 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_CALIB_BASE_ADDRESS

#define BOOTLOADER_FLASH_CALIB_BASE_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + 0x000FC000)

Definition at line 91 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_CONFIG_BASE_ADDRESS

#define BOOTLOADER_FLASH_CONFIG_BASE_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + 0x000FE000)

Definition at line 96 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_CONFIG_MIRROR_BASE_ADDRESS

#define BOOTLOADER_FLASH_CONFIG_MIRROR_BASE_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + 0x000FA000)

Definition at line 86 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_END_ADDRESS

#define BOOTLOADER_FLASH_END_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + BOOTLOADER_FLASH_TOTAL_SIZE)

Definition at line 120 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_PAGE_SIZE

#define BOOTLOADER_FLASH_PAGE_SIZE   ((uint32_t)512)

Definition at line 66 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_SECTOR_SIZE

#define BOOTLOADER_FLASH_SECTOR_SIZE   ((uint32_t)131072)

Definition at line 61 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_START_ADDRESS

#define BOOTLOADER_FLASH_START_ADDRESS   ((uint32_t)0x00400000)

Definition at line 46 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_TOTAL_SIZE

#define BOOTLOADER_FLASH_TOTAL_SIZE   ((uint32_t)1048576)

Definition at line 41 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_USER_APPLICATION_SIZE

#define BOOTLOADER_FLASH_USER_APPLICATION_SIZE   ((uint32_t)966656)

Definition at line 56 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_USER_APPLICATION_START_ADDRESS

#define BOOTLOADER_FLASH_USER_APPLICATION_START_ADDRESS   (BOOTLOADER_FLASH_START_ADDRESS + BOOTLOADER_FLASH_BOOTLOADER_SIZE)

Definition at line 101 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_USER_DATA_END_ADDRESS

#define BOOTLOADER_FLASH_USER_DATA_END_ADDRESS   (BOOTLOADER_FLASH_USER_DATA_START_ADDRESS + BOOTLOADER_FLASH_USER_DATA_SIZE)

Definition at line 116 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_USER_DATA_SIZE

Definition at line 111 of file bootloaderShared.h.

◆ BOOTLOADER_FLASH_USER_DATA_START_ADDRESS

Definition at line 106 of file bootloaderShared.h.

◆ BOOTLOADER_HASH_CODE_START_VALUE

#define BOOTLOADER_HASH_CODE_START_VALUE   ((uint32_t)435258227)

Definition at line 123 of file bootloaderShared.h.

◆ BOOTLOADER_HEADER_INITIAL_FILL_BYTE

#define BOOTLOADER_HEADER_INITIAL_FILL_BYTE   ((uint8_t)0xFE)

Definition at line 147 of file bootloaderShared.h.

◆ BOOTLOADER_HEADER_INITIAL_FILL_UINT_32

#define BOOTLOADER_HEADER_INITIAL_FILL_UINT_32   ((uint32_t)0xFEFEFEFE)

Definition at line 150 of file bootloaderShared.h.

◆ BOOTLOADER_JUMP_SIGNATURE_SIZE

#define BOOTLOADER_JUMP_SIGNATURE_SIZE   ((uint32_t)32)

Definition at line 132 of file bootloaderShared.h.

◆ BOOTLOADER_JUMP_SIGNATURE_STAY_IN_BOOTLOADER

#define BOOTLOADER_JUMP_SIGNATURE_STAY_IN_BOOTLOADER   "__StayInBootLoader12345__"

Definition at line 126 of file bootloaderShared.h.

◆ BOOTLOADER_JUMP_SIGNATURE_STAY_IN_USER_APPLICATION

#define BOOTLOADER_JUMP_SIGNATURE_STAY_IN_USER_APPLICATION   "__StayInUserApplication__"

Definition at line 129 of file bootloaderShared.h.

◆ BOOTLOADER_LOGICAL_PAGE_SIZE

#define BOOTLOADER_LOGICAL_PAGE_SIZE   ((uint32_t)65536)

Definition at line 144 of file bootloaderShared.h.

◆ BOOTLOADER_SIGNATURE_FOUND_MARKER

#define BOOTLOADER_SIGNATURE_FOUND_MARKER   ((uint32_t)1)

Definition at line 141 of file bootloaderShared.h.

◆ BOOTLOADER_SIGNATURE_REQUIRED_WITHIN_BYTE_COUNT

#define BOOTLOADER_SIGNATURE_REQUIRED_WITHIN_BYTE_COUNT   ((uint32_t)16384)

Definition at line 138 of file bootloaderShared.h.

◆ BOOTLOADER_SIGNATURE_SIZE

#define BOOTLOADER_SIGNATURE_SIZE   ((uint32_t)16)

Definition at line 135 of file bootloaderShared.h.

◆ CONF_UART_BAUDRATE

#define CONF_UART_BAUDRATE   921600

Definition at line 35 of file bootloaderShared.h.

◆ CONF_UART_BAUDRATE_RS232

#define CONF_UART_BAUDRATE_RS232   230400

Definition at line 36 of file bootloaderShared.h.

◆ CONF_UART_BAUDRATE_SLOW

#define CONF_UART_BAUDRATE_SLOW   115200

Definition at line 37 of file bootloaderShared.h.

◆ PORT_SEL_KEY_SYS_GPBR_3

#define PORT_SEL_KEY_SYS_GPBR_3   0x09ea4f06

Definition at line 153 of file bootloaderShared.h.

◆ PORT_SEL_KEY_SYS_GPBR_4

#define PORT_SEL_KEY_SYS_GPBR_4   0x13d6007e

Definition at line 154 of file bootloaderShared.h.

◆ PORT_SEL_KEY_SYS_GPBR_5

#define PORT_SEL_KEY_SYS_GPBR_5   0x93f035fe

Definition at line 155 of file bootloaderShared.h.

◆ PORT_SEL_KEY_SYS_GPBR_6

#define PORT_SEL_KEY_SYS_GPBR_6   0xd096ae0f

Definition at line 156 of file bootloaderShared.h.

◆ PORT_SEL_SER0

#define PORT_SEL_SER0   0

Definition at line 158 of file bootloaderShared.h.

◆ PORT_SEL_SER1

#define PORT_SEL_SER1   1

Definition at line 159 of file bootloaderShared.h.

◆ PORT_SEL_USB

#define PORT_SEL_USB   2

Definition at line 160 of file bootloaderShared.h.

Function Documentation

◆ calculateBootloaderHashCode()

uint32_t calculateBootloaderHashCode ( uint32_t  hashCode,
const uint32_t *  start,
const uint32_t *  end 
)

Definition at line 8 of file bootloaderShared.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58