diff --git a/a__box_2main_8h_source.html b/a__box_2main_8h_source.html index 6bd4de05..f9cc265d 100644 --- a/a__box_2main_8h_source.html +++ b/a__box_2main_8h_source.html @@ -207,7 +207,7 @@
114
115#endif
adc_readings
volatile ADCReadings_t adc_readings
Definition main.c:113
-
canTxSendToBack
void canTxSendToBack(CanMsgTypeDef_t *msg)
Definition main.c:371
+
canTxSendToBack
void canTxSendToBack(CanMsgTypeDef_t *msg)
Definition main.c:116
bms_daq_override
bool bms_daq_override
Definition main.c:84
bms_daq_stat
bool bms_daq_stat
Definition main.c:85
__attribute__
struct eeprom __attribute__
Definition daq_hub.h:70
diff --git a/bootloader_2can_2can__parse_8h_source.html b/bootloader_2can_2can__parse_8h_source.html index e291964e..369cd63a 100644 --- a/bootloader_2can_2can__parse_8h_source.html +++ b/bootloader_2can_2can__parse_8h_source.html @@ -436,14 +436,14 @@
q_rx_can_a
q_handle_t * q_rx_can_a
Definition can_parse.c:17
f7_testing_bl_cmd_CALLBACK
void f7_testing_bl_cmd_CALLBACK(CanParsedData_t *msg_data_a)
f4_testing_bl_cmd_CALLBACK
void f4_testing_bl_cmd_CALLBACK(CanParsedData_t *msg_data_a)
-
bitstream_data_CALLBACK
void bitstream_data_CALLBACK(CanParsedData_t *msg_data_a)
Definition bootloader.c:148
+
bitstream_data_CALLBACK
void bitstream_data_CALLBACK(CanParsedData_t *msg_data_a)
Definition bootloader.c:188
pdu_bl_cmd_CALLBACK
void pdu_bl_cmd_CALLBACK(CanParsedData_t *msg_data_a)
Definition main.c:350
torquevector_bl_cmd_CALLBACK
void torquevector_bl_cmd_CALLBACK(CanParsedData_t *msg_data_a)
Definition main.c:438
main_module_bl_cmd_CALLBACK
void main_module_bl_cmd_CALLBACK(CanParsedData_t *msg_data_a)
Definition main.c:495
dashboard_bl_cmd_CALLBACK
void dashboard_bl_cmd_CALLBACK(CanParsedData_t *msg_data_a)
Definition main.c:555
daq_bl_cmd_CALLBACK
void daq_bl_cmd_CALLBACK(CanParsedData_t *msg_data_a)
l4_testing_bl_cmd_CALLBACK
void l4_testing_bl_cmd_CALLBACK(CanParsedData_t *msg_data_a)
Definition main.c:484
-
canTxSendToBack
void canTxSendToBack(CanMsgTypeDef_t *msg)
Definition main.c:371
+
canTxSendToBack
void canTxSendToBack(CanMsgTypeDef_t *msg)
Definition main.c:116
cmd
uint8_t cmd[NXT_STR_SIZE]
Definition main.c:541
__attribute__
struct eeprom __attribute__
Definition daq_hub.h:70
msg
char msg[100]
Definition main.c:105
diff --git a/bootloader_2main_8c.html b/bootloader_2main_8c.html index bd5cfb4a..91a5fcab 100644 --- a/bootloader_2main_8c.html +++ b/bootloader_2main_8c.html @@ -95,44 +95,37 @@
main.c File Reference
-
#include "inttypes.h"
+
#include "common/bootloader/bootloader_common.h"
#include "can_parse.h"
-#include "common/bootloader/bootloader_common.h"
#include "node_defs.h"
#include "bootloader.h"
- - + + + +

Macros

#define CAN_TX_BLOCK_TIMEOUT   (30 * 16000)
 
#define TargetCoreClockrateHz   16000000
 
#define BOOTLOADER_INITIAL_TIMEOUT   3000
 
#define CAN_TX_BLOCK_TIMEOUT   (30 * 16000)
 
- - - - - - - - + +

Functions

void HardFault_Handler ()
 
void Default_Handler ()
 
void jump_to_application (void)
 
bool check_boot_health (void)
 
void canTxSendToBack (CanMsgTypeDef_t *msg)
 
int main (void)
 
void SysTick_Handler (void)
 
void CAN1_RX0_IRQHandler ()
 
void SysTick_Handler (void)
 
- - @@ -141,18 +134,28 @@ + + - - - - - -

Variables

GPIOInitConfig_t gpio_config []
 
ClockRateConfig_t clock_config
 
uint32_t APB1ClockRateHz
 
uint32_t APB2ClockRateHz
 
uint32_t PLLClockRateHz
 
ClockRateConfig_t clock_config
 
q_handle_t q_tx_can
 
q_handle_t q_rx_can
 
char __isr_vector_start
 
char _eboot_flash
 
char _estack
 

Macro Definition Documentation

+ +

◆ BOOTLOADER_INITIAL_TIMEOUT

+ +
+
+ + + + +
#define BOOTLOADER_INITIAL_TIMEOUT   3000
+
+ +
+

◆ CAN_TX_BLOCK_TIMEOUT

@@ -214,48 +217,6 @@

-

-
- -

◆ check_boot_health()

- -
-
- - - - - - - -
bool check_boot_health (void )
-
- -
-
- -

◆ Default_Handler()

- -
-
- - - - - -
- - - - - - - -
void Default_Handler ()
-
-extern
-
-
@@ -273,23 +234,6 @@

- - - -

◆ jump_to_application()

- -
-
- - - - - - - -
void jump_to_application (void )
-
-
@@ -327,72 +271,6 @@

Variable Documentation

- -

◆ __isr_vector_start

- -
-
- - - - - -
- - - - -
char __isr_vector_start
-
-extern
-
- -
-
- -

◆ _eboot_flash

- -
-
- - - - - -
- - - - -
char _eboot_flash
-
-extern
-
- -
-
- -

◆ _estack

- -
-
- - - - - -
- - - - -
char _estack
-
-extern
-
- -
-

◆ AHBClockRateHz

@@ -496,24 +374,7 @@

= {
CAN_RX_GPIO_CONFIG,
CAN_TX_GPIO_CONFIG,
-
-
GPIO_INIT_OUTPUT(STATUS_LED_GPIO_Port, STATUS_LED_Pin, GPIO_OUTPUT_LOW_SPEED),
-
-
-
-
-
-
-
-
-
-
-
-
-
}
-
#define GPIO_INIT_OUTPUT(gpio_bank, pin_num, ospeed_sel)
Create GPIO Init struct to intilize a GPIO pin for output.
Definition gpio.h:101
-
@ GPIO_OUTPUT_LOW_SPEED
Slew rate control, max 8Mhz.
Definition gpio.h:35
diff --git a/bootloader_8c.html b/bootloader_8c.html index 26e49f3b..9003d45e 100644 --- a/bootloader_8c.html +++ b/bootloader_8c.html @@ -95,10 +95,33 @@
bootloader.c File Reference
+ +

CAN Bootloader: +More...

#include "bootloader.h"
+ + + + + + + + + + + + + + + + + + + + @@ -106,32 +129,178 @@

Macros

#define MAX_FIRMWARE_SIZE   0x40000
 
#define BL_ADDRESS_BOOTLOADER   0x08000000
 
#define BL_ADDRESS_CRC   0x08004000
 
#define BL_ADDRESS_APP   0x08008000
 
#define BL_ADDRESS_BUFFER   BL_ADDRESS_APP
 
#define BL_ADDRESS_BACKUP   0x08080000
 
#define BL_ADDRESS_CRC_CRC   ((BL_ADDRESS_CRC) + 0)
 
#define BL_ADDRESS_CRC_ADDR   ((BL_ADDRESS_CRC) + 4)
 
#define BL_ADDRESS_CRC_SIZE   ((BL_ADDRESS_CRC) + 8)
 
#define BUFFER_SIZE   128
 
#define NODE_CASE_BL_RESPONSE(app_id, resp_func)
 
#define NODE_BL_CMD_CALLBACK(callback_name, can_msg_name, node_id)
- - + + + + - - - - - - - - - - -

Functions

void BL_init (uint32_t *app_flash_start, volatile uint32_t *bootloader_ms_ptr)
 
void BL_checkAndBoot (void)
 
void bitstream_data_CALLBACK (CanParsedData_t *msg_data_a)
 
void BL_processCommand (BLCmd_t cmd, uint32_t data)
 Process an incoming bootlaoder command.
 
bool BL_flashStarted (void)
 
bool BL_flashComplete (void)
 The entire application has been written to flash.
 
volatile uint32_t * BL_getCurrentFlashAddress (void)
 
void BL_timeout (void)
 
void bitstream_data_CALLBACK (CanParsedData_t *msg_data_a)
 
void BL_sendStatusMessage (uint8_t cmd, uint32_t data)
 Send a Bootloader status message with the correct app ID.
 
- - + + + + + +

Variables

q_handle_t q_tx_can
 
char __isr_vector_start
 
char _eboot_flash
 
char _estack
 
-

Macro Definition Documentation

+

Detailed Description

+

CAN Bootloader:

+
Author
Eileen Yoon (eyn@p.nosp@m.urdu.nosp@m.e.edu)
    +
  • Double bank flash buffer + CRC
  • +
  • Download/Upload firmware over buffered CAN TP
  • +
  • Load/store backup firmware
  • +
+
+
Version
0.1
+
Date
2024-11-24
+ +

Macro Definition Documentation

+ +

◆ BL_ADDRESS_APP

+ +
+
+ + + + +
#define BL_ADDRESS_APP   0x08008000
+
+ +
+
+ +

◆ BL_ADDRESS_BACKUP

+ +
+
+ + + + +
#define BL_ADDRESS_BACKUP   0x08080000
+
+ +
+
+ +

◆ BL_ADDRESS_BOOTLOADER

+ +
+
+ + + + +
#define BL_ADDRESS_BOOTLOADER   0x08000000
+
+ +
+
+ +

◆ BL_ADDRESS_BUFFER

+ +
+
+ + + + +
#define BL_ADDRESS_BUFFER   BL_ADDRESS_APP
+
+ +
+
+ +

◆ BL_ADDRESS_CRC

+ +
+
+ + + + +
#define BL_ADDRESS_CRC   0x08004000
+
+ +
+
+ +

◆ BL_ADDRESS_CRC_ADDR

+ +
+
+ + + + +
#define BL_ADDRESS_CRC_ADDR   ((BL_ADDRESS_CRC) + 4)
+
+ +
+
+ +

◆ BL_ADDRESS_CRC_CRC

+ +
+
+ + + + +
#define BL_ADDRESS_CRC_CRC   ((BL_ADDRESS_CRC) + 0)
+
+ +
+
+ +

◆ BL_ADDRESS_CRC_SIZE

+ +
+
+ + + + +
#define BL_ADDRESS_CRC_SIZE   ((BL_ADDRESS_CRC) + 8)
+
+ +
+
+ +

◆ BUFFER_SIZE

+ +
+
+ + + + +
#define BUFFER_SIZE   128
+
+ +
+
+ +

◆ MAX_FIRMWARE_SIZE

+ +
+
+ + + + +
#define MAX_FIRMWARE_SIZE   0x40000
+
+ +
+

◆ NODE_BL_CMD_CALLBACK

@@ -206,14 +375,14 @@

-

◆ BL_flashComplete()

+ +

◆ BL_checkAndBoot()

- + @@ -221,11 +390,6 @@

-

The entire application has been written to flash.

-
Returns
true
-
-false
-
@@ -245,54 +409,37 @@

-

◆ BL_getCurrentFlashAddress()

- -
-
-

bool BL_flashComplete void BL_checkAndBoot ( void )
- - - - - - -
volatile uint32_t * BL_getCurrentFlashAddress (void )
-
- -
-
- -

◆ BL_init()

+ +

◆ BL_processCommand()

- + - + - +
void BL_init void BL_processCommand (uint32_t * app_flash_start, BLCmd_t cmd,
volatile uint32_t * bootloader_ms_ptr )uint32_t data )
- -

◆ BL_processCommand()

+ +

◆ BL_sendStatusMessage()

- + - + @@ -302,67 +449,55 @@

-

Process an incoming bootlaoder command.

-
Parameters
-

void BL_processCommand void BL_sendStatusMessage (BLCmd_t cmd, uint8_t cmd,
- - -
cmd
data
- - -
- -

◆ BL_sendStatusMessage()

+

Variable Documentation

+ +

◆ __isr_vector_start

+ + + + + +
- - - - - - - - +
void BL_sendStatusMessage (uint8_t cmd,
uint32_t data )char __isr_vector_start
+
+extern
-

Send a Bootloader status message with the correct app ID.

-
Parameters
- - - -
cmdCommand/status enum, see BLStatus_t
dataStatus data, context specific
-
-
-
- -

◆ BL_timeout()

+ +

◆ _eboot_flash

+ + + + + +
- - - - +
void BL_timeout (void )char _eboot_flash
+
+extern
-

Variable Documentation

- -

◆ q_tx_can

+ +

◆ _estack

@@ -184,28 +168,23 @@

- - - - - - - - + + +
Enumerator
BLSTAT_INVALID 
BLSTAT_BOOT 
BLSTAT_WAIT 
BLSTAT_METDATA_RX 
BLSTAT_PROGRESS 
BLSTAT_DONE 
BLSTAT_JUMP_TO_APP 
BLSTAT_INVAID_APP 
Enumerator
BLSTAT_VALID 
BLSTAT_INVALID 
BLSTAT_INVALID_CRC 
BLSTAT_UNKNOWN_CMD 

Function Documentation

-
-

◆ BL_flashComplete()

+ +

◆ BL_checkAndBoot()

- + @@ -213,11 +192,6 @@

-

The entire application has been written to flash.

-
Returns
true
-
-false
-
@@ -235,44 +209,6 @@

- - - -

◆ BL_getCurrentFlashAddress()

- -
-
-

bool BL_flashComplete void BL_checkAndBoot ( void )
- - - - - - -
volatile uint32_t * BL_getCurrentFlashAddress (void )
-
- -
-
- -

◆ BL_init()

- -
-
- - - - - - - - - - - -
void BL_init (uint32_t * app_flash_start,
volatile uint32_t * bootloader_ms_ptr )
-
-
@@ -294,15 +230,6 @@

-

Process an incoming bootlaoder command.

-
Parameters
- - - -
cmd
data
-
-
-
@@ -324,32 +251,6 @@

-

Send a Bootloader status message with the correct app ID.

-
Parameters
- - - -
cmdCommand/status enum, see BLStatus_t
dataStatus data, context specific
-
-
- - - -
-

◆ BL_timeout()

- -
-
- - - - - - - -
void BL_timeout (void )
-
-
diff --git a/bootloader_8h_source.html b/bootloader_8h_source.html index c81775a8..d811ae14 100644 --- a/bootloader_8h_source.html +++ b/bootloader_8h_source.html @@ -101,70 +101,53 @@
17#include "node_defs.h"
18#include "common/bootloader/bootloader_common.h"
19
-
20
-
-
21typedef enum
-
22{
-
23 BLSTAT_INVALID = 0, /* Invalid operation */
-
24 BLSTAT_BOOT = 1, /* Bootloader boot alert */
-
25 BLSTAT_WAIT = 2, /* Waiting to get BLCMD */
-
26 BLSTAT_METDATA_RX = 3, /* Progress update for bootloader download */
-
27 BLSTAT_PROGRESS = 4, /* Progress update for bootloader download */
-
28 BLSTAT_DONE = 5, /* Completed the application download with CRC pass */
-
29 BLSTAT_JUMP_TO_APP = 6, /* About to jump to application */
-
30 BLSTAT_INVAID_APP = 7, /* Did not attempt to boot because the starting address was invalid */
-
31 BLSTAT_UNKNOWN_CMD = 8, /* Incorrect CAN command message format */
- +
+
20typedef enum
+
21{
+ + + + +
-
33
-
-
34typedef enum
-
35{
- - - - - -
41} BLError_t;
+
27
+ -
42
-
43void BL_init(uint32_t* app_flash_start, volatile uint32_t* bootloader_ms_ptr);
-
44
-
51void BL_processCommand(BLCmd_t cmd, uint32_t data);
-
52
-
59bool BL_flashComplete(void);
-
60
-
67void BL_sendStatusMessage(uint8_t cmd, uint32_t data);
-
68
-
69bool BL_flashStarted(void);
-
70void BL_timeout(void);
-
71volatile uint32_t* BL_getCurrentFlashAddress(void);
-
72
-
73
-
74#endif
-
volatile uint32_t * BL_getCurrentFlashAddress(void)
Definition bootloader.c:136
-
BLError_t
Definition bootloader.h:35
-
@ BLERROR_FLASH
Definition bootloader.h:40
-
@ BLERROR_LOCKED
Definition bootloader.h:37
-
@ BLERROR_CRC_FAIL
Definition bootloader.h:36
-
@ BLERROR_LOW_ADDR
Definition bootloader.h:38
-
@ BLERROR_ADDR_BOUND
Definition bootloader.h:39
-
void BL_timeout(void)
Definition bootloader.c:141
-
BLStatus_t
Definition bootloader.h:22
-
@ BLSTAT_METDATA_RX
Definition bootloader.h:26
-
@ BLSTAT_BOOT
Definition bootloader.h:24
-
@ BLSTAT_DONE
Definition bootloader.h:28
-
@ BLSTAT_UNKNOWN_CMD
Definition bootloader.h:31
-
@ BLSTAT_PROGRESS
Definition bootloader.h:27
-
@ BLSTAT_WAIT
Definition bootloader.h:25
+
37
+
38void BL_checkAndBoot(void);
+
39
+
40void BL_processCommand(BLCmd_t cmd, uint32_t data);
+
41
+
42void BL_sendStatusMessage(uint8_t cmd, uint32_t data);
+
43
+
44bool BL_flashStarted(void);
+
45
+
46#endif
+
BLError_t
Definition bootloader.h:29
+
@ BLERROR_FLASH
Definition bootloader.h:34
+
@ BLERROR_LOCKED
Definition bootloader.h:31
+
@ BLERROR_CRC_FAIL
Definition bootloader.h:30
+
@ BLERROR_SIZE
Definition bootloader.h:35
+
@ BLERROR_LOW_ADDR
Definition bootloader.h:32
+
@ BLERROR_ADDR_BOUND
Definition bootloader.h:33
+
BLStatus_t
Definition bootloader.h:21
+
@ BLSTAT_VALID
Definition bootloader.h:22
+
@ BLSTAT_UNKNOWN_CMD
Definition bootloader.h:25
+
@ BLSTAT_INVALID_CRC
Definition bootloader.h:24
@ BLSTAT_INVALID
Definition bootloader.h:23
-
@ BLSTAT_INVAID_APP
Definition bootloader.h:30
-
@ BLSTAT_JUMP_TO_APP
Definition bootloader.h:29
-
void BL_processCommand(BLCmd_t cmd, uint32_t data)
Process an incoming bootlaoder command.
Definition bootloader.c:56
-
void BL_sendStatusMessage(uint8_t cmd, uint32_t data)
Send a Bootloader status message with the correct app ID.
Definition bootloader.c:207
-
bool BL_flashComplete(void)
The entire application has been written to flash.
Definition bootloader.c:131
-
bool BL_flashStarted(void)
Definition bootloader.c:126
-
void BL_init(uint32_t *app_flash_start, volatile uint32_t *bootloader_ms_ptr)
Definition bootloader.c:29
+
void BL_processCommand(BLCmd_t cmd, uint32_t data)
Definition bootloader.c:271
+
void BL_sendStatusMessage(uint8_t cmd, uint32_t data)
Definition bootloader.c:311
+
bool BL_flashStarted(void)
Definition bootloader.c:298
+
void BL_checkAndBoot(void)
Definition bootloader.c:99
uint8_t cmd[NXT_STR_SIZE]
Definition main.c:541
diff --git a/crc_8c.html b/crc_8c.html new file mode 100644 index 00000000..834dce41 --- /dev/null +++ b/crc_8c.html @@ -0,0 +1,202 @@ + + + + + + + +PER Firmware: common/phal_F4_F7/crc/crc.c File Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
PER Firmware +
+
+
+ + + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+ +
crc.c File Reference
+
+
+ +

Hardware CRC32 w/ software fallback. +More...

+
#include "crc.h"
+
+ + + + + + + + + +

+Functions

void PHAL_CRC32_Reset (void)
 
void PHAL_CRC32_Init (void)
 
uint32_t PHAL_CRC32_Calculate (uint32_t *data, uint32_t count)
 
uint32_t PHAL_CRC32_CalculateSW (uint32_t *data, uint32_t count)
 
+

Detailed Description

+

Hardware CRC32 w/ software fallback.

+
Author
Eileen Yoon (eyn@p.nosp@m.urdu.nosp@m.e.edu)
+
Version
0.1
+
Date
2024-11-25
+ +

Function Documentation

+ +

◆ PHAL_CRC32_Calculate()

+ +
+
+ + + + + + + + + + + +
uint32_t PHAL_CRC32_Calculate (uint32_t * data,
uint32_t count )
+
+ +
+
+ +

◆ PHAL_CRC32_CalculateSW()

+ +
+
+ + + + + + + + + + + +
uint32_t PHAL_CRC32_CalculateSW (uint32_t * data,
uint32_t count )
+
+ +
+
+ +

◆ PHAL_CRC32_Init()

+ +
+
+ + + + + + + +
void PHAL_CRC32_Init (void )
+
+ +
+
+ +

◆ PHAL_CRC32_Reset()

+ +
+
+ + + + + + + +
void PHAL_CRC32_Reset (void )
+
+ +
+
+
+ + +
+ + diff --git a/crc_8h.html b/crc_8h.html new file mode 100644 index 00000000..267d4203 --- /dev/null +++ b/crc_8h.html @@ -0,0 +1,184 @@ + + + + + + + +PER Firmware: common/phal_F4_F7/crc/crc.h File Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
PER Firmware +
+
+
+ + + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+ +
crc.h File Reference
+
+
+ +

Hardware CRC32 w/ software fallback. +More...

+ +

Go to the source code of this file.

+ + + + + + + + +

+Functions

void PHAL_CRC32_Reset (void)
 
uint32_t PHAL_CRC32_Calculate (uint32_t *data, uint32_t count)
 
uint32_t PHAL_CRC32_CalculateSW (uint32_t *data, uint32_t count)
 
+

Detailed Description

+

Hardware CRC32 w/ software fallback.

+
Author
Eileen Yoon (eyn@p.nosp@m.urdu.nosp@m.e.edu)
+
Version
0.1
+
Date
2024-11-25
+ +

Function Documentation

+ +

◆ PHAL_CRC32_Calculate()

+ +
+
+ + + + + + + + + + + +
uint32_t PHAL_CRC32_Calculate (uint32_t * data,
uint32_t count )
+
+ +
+
+ +

◆ PHAL_CRC32_CalculateSW()

+ +
+
+ + + + + + + + + + + +
uint32_t PHAL_CRC32_CalculateSW (uint32_t * data,
uint32_t count )
+
+ +
+
+ +

◆ PHAL_CRC32_Reset()

+ +
+
+ + + + + + + +
void PHAL_CRC32_Reset (void )
+
+ +
+
+
+ + +
+ + diff --git a/crc_8h_source.html b/crc_8h_source.html new file mode 100644 index 00000000..54637e20 --- /dev/null +++ b/crc_8h_source.html @@ -0,0 +1,125 @@ + + + + + + + +PER Firmware: common/phal_F4_F7/crc/crc.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
PER Firmware +
+
+
+ + + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+
crc.h
+
+
+Go to the documentation of this file.
1
+
12#ifndef _PHAL_CRC_H
+
13#define _PHAL_CRC_H
+
14
+
15#if defined(STM32F407xx)
+
16#include "stm32f4xx.h"
+
17#include "system_stm32f4xx.h"
+
18#elif defined(STM32F732xx)
+
19#include "stm32f7xx.h"
+
20#include "system_stm32f7xx.h"
+
21#else
+
22#error "Please define a MCU arch"
+
23#endif
+
24
+
25void PHAL_CRC32_Reset(void);
+
26
+
27uint32_t PHAL_CRC32_Calculate(uint32_t *data, uint32_t count);
+
28
+
29uint32_t PHAL_CRC32_CalculateSW(uint32_t *data, uint32_t count);
+
30
+
31#endif // _PHAL_CRC_H
+
uint32_t PHAL_CRC32_Calculate(uint32_t *data, uint32_t count)
Definition crc.c:34
+
uint32_t PHAL_CRC32_CalculateSW(uint32_t *data, uint32_t count)
Definition crc.c:69
+
void PHAL_CRC32_Reset(void)
Definition crc.c:14
+
+ + +
+ + diff --git a/dashboard_2main_8h_source.html b/dashboard_2main_8h_source.html index 69ebf8c4..e4ff3b75 100644 --- a/dashboard_2main_8h_source.html +++ b/dashboard_2main_8h_source.html @@ -270,7 +270,7 @@
184
185#endif
-
void canTxSendToBack(CanMsgTypeDef_t *msg)
Definition main.c:371
+
void canTxSendToBack(CanMsgTypeDef_t *msg)
Definition main.c:116
dashboard_input_t
Definition main.h:53
@ DASH_INPUT_INVALID
Definition main.h:61
@ DASH_INPUT_SELECT_BUTTON
Definition main.h:58
diff --git a/dir_45263005a082e8f93b7ba1faacf81494.html b/dir_45263005a082e8f93b7ba1faacf81494.html index 6b60d91f..724b0d0e 100644 --- a/dir_45263005a082e8f93b7ba1faacf81494.html +++ b/dir_45263005a082e8f93b7ba1faacf81494.html @@ -95,6 +95,7 @@

Files

 bootloader.c + CAN Bootloader:
   bootloader.h   diff --git a/globals_func_j.html b/dir_54f1ee824785fa14e318fbbbd0623e9e.html similarity index 68% rename from globals_func_j.html rename to dir_54f1ee824785fa14e318fbbbd0623e9e.html index a85b7ba0..95fcb7b0 100644 --- a/globals_func_j.html +++ b/dir_54f1ee824785fa14e318fbbbd0623e9e.html @@ -5,7 +5,7 @@ -PER Firmware: File Members +PER Firmware: common/phal_F4_F7/crc Directory Reference @@ -55,8 +55,6 @@ /* @license-end */ - -
- - - - - - - - - - - -
-
- - - - - - -
-
PER Firmware -
-
-
- - - - - - - - -
-
- - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- -
-
Here is a list of all file members with links to the files they belong to:
- -

- j -

    -
  • jump_to_application() : main.c
  • -
-
- - -
- - diff --git a/globals_m.html b/globals_m.html index d676b833..abb9bf22 100644 --- a/globals_m.html +++ b/globals_m.html @@ -115,6 +115,7 @@

- m -

diff --git a/globals_vars_q.html b/globals_vars_q.html index 166d83c2..c6c47032 100644 --- a/globals_vars_q.html +++ b/globals_vars_q.html @@ -90,7 +90,7 @@

- q -

  • q_fault_history : lcd.c
  • q_rx_can : bms.h, main.c
  • q_rx_can_a : can_parse.c
  • -
  • q_tx_can : imu.c, orion.c, tmu.c, bms.h, main.c, bootloader.c, main.c, lcd.c, pedals.c, car.c, cooling.c, gps.c, imu.c
  • +
  • q_tx_can : imu.c, orion.c, tmu.c, bms.h, main.c, lcd.c, pedals.c, car.c, cooling.c, gps.c, imu.c
  • q_tx_can2_to_can1 : main.c, main.h
  • q_tx_can_0 : main.c
  • q_tx_can_1 : main.c
  • diff --git a/l4__testing_2main_8h_source.html b/l4__testing_2main_8h_source.html index 0d61fb1b..2e2e585f 100644 --- a/l4__testing_2main_8h_source.html +++ b/l4__testing_2main_8h_source.html @@ -148,7 +148,7 @@
    55
    57#endif
    -
    void canTxSendToBack(CanMsgTypeDef_t *msg)
    Definition main.c:371
    +
    void canTxSendToBack(CanMsgTypeDef_t *msg)
    Definition main.c:116
    char msg[100]
    Definition main.c:105
    Definition can.h:31
    diff --git a/main__module_2main_8h_source.html b/main__module_2main_8h_source.html index 713f58a5..7abbf56f 100644 --- a/main__module_2main_8h_source.html +++ b/main__module_2main_8h_source.html @@ -267,7 +267,7 @@
    184
    185#endif
    volatile ADCReadings_t adc_readings
    Definition main.c:113
    -
    void canTxSendToBack(CanMsgTypeDef_t *msg)
    Definition main.c:371
    +
    void canTxSendToBack(CanMsgTypeDef_t *msg)
    Definition main.c:116
    struct eeprom __attribute__
    Definition daq_hub.h:70
    char msg[100]
    Definition main.c:105
    diff --git a/menudata.js b/menudata.js index 36364f3c..8b45c7dd 100644 --- a/menudata.js +++ b/menudata.js @@ -103,7 +103,6 @@ var menudata={children:[ {text:"g",url:"globals_g.html#index_g"}, {text:"h",url:"globals_h.html#index_h"}, {text:"i",url:"globals_i.html#index_i"}, -{text:"j",url:"globals_j.html#index_j"}, {text:"k",url:"globals_k.html#index_k"}, {text:"l",url:"globals_l.html#index_l"}, {text:"m",url:"globals_m.html#index_m"}, @@ -131,7 +130,6 @@ var menudata={children:[ {text:"g",url:"globals_func_g.html#index_g"}, {text:"h",url:"globals_func_h.html#index_h"}, {text:"i",url:"globals_func_i.html#index_i"}, -{text:"j",url:"globals_func_j.html#index_j"}, {text:"l",url:"globals_func_l.html#index_l"}, {text:"m",url:"globals_func_m.html#index_m"}, {text:"o",url:"globals_func_o.html#index_o"}, diff --git a/pdu_2main_8h_source.html b/pdu_2main_8h_source.html index e9cd80d9..927f8eaa 100644 --- a/pdu_2main_8h_source.html +++ b/pdu_2main_8h_source.html @@ -348,7 +348,7 @@
    266#endif
    volatile ADCReadings_t adc_readings
    Definition main.c:113
    -
    void canTxSendToBack(CanMsgTypeDef_t *msg)
    Definition main.c:371
    +
    void canTxSendToBack(CanMsgTypeDef_t *msg)
    Definition main.c:116
    struct eeprom __attribute__
    Definition daq_hub.h:70
    char msg[100]
    Definition main.c:105
    diff --git a/phal__F4__F7_2flash_2flash_8c.html b/phal__F4__F7_2flash_2flash_8c.html index 6e81b830..34b4b77e 100644 --- a/phal__F4__F7_2flash_2flash_8c.html +++ b/phal__F4__F7_2flash_2flash_8c.html @@ -97,11 +97,15 @@ + + + + @@ -160,6 +164,23 @@

    + + + +

    ◆ PHAL_flashReadU32()

    + +
    +
    +

    Functions

    uint32_t PHAL_flashReadU32 (uint32_t addr)
     
    uint8_t PHAL_flashWriteU32 (uint32_t Address, uint32_t value)
     
    uint8_t PHAL_flashWriteU64 (uint32_t Address, uint64_t Data)
     Writes 64 bits to flash memory.
     
    uint8_t PHAL_flashWriteU32_Buffered (uint32_t Address, uint32_t *data, uint32_t count)
     
    uint8_t PHAL_flashErasePage (uint8_t page)
     
    uint8_t PHAL_flashErase (uint32_t *addr, uint32_t words)
    + + + + + + +
    uint32_t PHAL_flashReadU32 (uint32_t addr)
    +
    +
    @@ -181,6 +202,32 @@

    + + + +

    ◆ PHAL_flashWriteU32_Buffered()

    + +
    +
    + + + + + + + + + + + + + + + + +
    uint8_t PHAL_flashWriteU32_Buffered (uint32_t Address,
    uint32_t * data,
    uint32_t count )
    +
    +
    diff --git a/phal__F4__F7_2flash_2flash_8h.html b/phal__F4__F7_2flash_2flash_8h.html index b4484118..034f56b5 100644 --- a/phal__F4__F7_2flash_2flash_8h.html +++ b/phal__F4__F7_2flash_2flash_8h.html @@ -118,8 +118,12 @@ + + + + @@ -245,6 +249,23 @@

    + + + +

    ◆ PHAL_flashReadU32()

    + +
    +
    +

    Functions

    uint32_t PHAL_flashReadU32 (uint32_t addr)
     
    uint8_t PHAL_flashWriteU32 (uint32_t address, uint32_t value)
     
    uint8_t PHAL_flashWriteU32_Buffered (uint32_t Address, uint32_t *data, uint32_t count)
     
    uint8_t PHAL_flashWriteU64 (uint32_t address, uint64_t data)
     Writes 64 bits to flash memory.
     
    + + + + + + +
    uint32_t PHAL_flashReadU32 (uint32_t addr)
    +
    +
    @@ -266,6 +287,32 @@

    + + + +

    ◆ PHAL_flashWriteU32_Buffered()

    + +
    +
    + + + + + + + + + + + + + + + + +
    uint8_t PHAL_flashWriteU32_Buffered (uint32_t Address,
    uint32_t * data,
    uint32_t count )
    +
    +
    diff --git a/phal__F4__F7_2flash_2flash_8h_source.html b/phal__F4__F7_2flash_2flash_8h_source.html index f4a3eb10..ed1a1ca5 100644 --- a/phal__F4__F7_2flash_2flash_8h_source.html +++ b/phal__F4__F7_2flash_2flash_8h_source.html @@ -149,20 +149,26 @@
    66#define MAX_FLASH_SECTOR (8-1)
    67#endif
    68
    -
    69uint8_t PHAL_flashWriteU32(uint32_t address, uint32_t value);
    -
    70uint8_t PHAL_flashWriteU64(uint32_t address, uint64_t data);
    -
    71uint8_t PHAL_flashErasePage(uint8_t page);
    -
    72uint8_t PHAL_flashErase(uint32_t *addr, uint32_t words);
    +
    69uint32_t PHAL_flashReadU32(uint32_t addr);
    +
    70
    +
    71uint8_t PHAL_flashWriteU32(uint32_t address, uint32_t value);
    +
    72uint8_t PHAL_flashWriteU32_Buffered(uint32_t Address, uint32_t *data, uint32_t count);
    73
    -
    74#endif
    +
    74uint8_t PHAL_flashWriteU64(uint32_t address, uint64_t data);
    +
    75uint8_t PHAL_flashErasePage(uint8_t page);
    +
    76uint8_t PHAL_flashErase(uint32_t *addr, uint32_t words);
    +
    77
    +
    78#endif
    +
    uint8_t PHAL_flashWriteU32_Buffered(uint32_t Address, uint32_t *data, uint32_t count)
    Definition flash.c:137
    +
    uint32_t PHAL_flashReadU32(uint32_t addr)
    Definition flash.c:63
    uint8_t PHAL_flashWriteU64(uint32_t address, uint64_t data)
    Writes 64 bits to flash memory.
    Definition flash.c:46
    @ FLASH_FAIL
    Definition flash.h:26
    @ FLASH_TIMEOUT
    Definition flash.h:28
    @ FLASH_OK
    Definition flash.h:25
    @ FLASH_ADDR_NOT_CLEARED
    Definition flash.h:27
    -
    uint8_t PHAL_flashWriteU32(uint32_t address, uint32_t value)
    Definition flash.c:63
    +
    uint8_t PHAL_flashWriteU32(uint32_t address, uint32_t value)
    Definition flash.c:84
    uint8_t PHAL_flashErase(uint32_t *addr, uint32_t words)
    Erase pages containing [addr, addr+words)
    Definition flash.c:138
    -
    uint8_t PHAL_flashErasePage(uint8_t page)
    Definition flash.c:117
    +
    uint8_t PHAL_flashErasePage(uint8_t page)
    Definition flash.c:172