brazos-trapezoidal
Version.h
1/*
2 * Version.h
3 *
4 * Created on: Nov 30, 2021
5 * Author: pegorf
6 */
7
8#ifndef VERSION_H_
9#define VERSION_H_
10
11typedef enum {
12 BOARD_ID_CMCS_B = 0,
13 BOARD_ID_SABINE
14} BOARD_ID_LIST;
15
16typedef enum {
17 BOARD_CMCS_B_VARIANT_3_0 = 0,
18 BOARD_CMCS_B_VARIANT_3_1
19} BOARD_CMCS_VARIANT_LIST;
20
21typedef enum {
22 CTRL_DTFC = 0,
23 CTRL_TRAP,
24 CTRL_FOC
25} CTRL_LIST;
26
27/*
28 * Versioning of the firmware has the following structure
29 *
30 * Board ID: 1 byte (msb)
31 * Board Version: 1 byte
32 * Firmware Major: 1 byte
33 * Firmware Minor: 1 byte
34 *
35 * This will create a number that will be stored in the calibration area
36 * Parameter at 0x0000F000
37 *
38 * */
39
40#define FW_MAJOR 3
41#define FW_MINOR 4
42#define BOARD_ID BOARD_ID_CMCS_B
43#define BOARD_VARIANT BOARD_CMCS_B_VARIANT_3_1
44
45#define FW_VERSION ((BOARD_ID << 24) + (BOARD_VARIANT << 16) + (FW_MAJOR << 8) + (FW_MINOR << 0))
46
47/*
48 * Versioning of the CALIBRATION has the following structure
49 *
50 * Data Structure: 1 byte (msb)
51 * Data Content: 1 byte
52 *
53 * This will create a number that will be stored in the calibration area
54 * Parameter at 0x0000F001
55 *
56 * */
57
58#define CTRL_TYPE CTRL_TRAP
59
60#endif /* VERSION_H_ */
61
62
63/* V1.0 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
64 * - Initial for versioning
65 *
66 * V1.1 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
67 * - implemented a pass phrase in the TSP communication
68 *
69 * V1.2 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
70 * - fixed check if motor stopped before flash memory
71 *
72 * V1.3 Optimization for processing time
73 * - Current clamp not present yet
74 *
75 * V1.4 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
76 * - Delay in openloop speed before go to target speed
77 *
78 * V1.5 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
79 * - Add Feedback Library
80 *
81 * V2.0 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
82 * - Update the feedback items for more than 3 items
83 * - Fixed a issue in Speed Profile time
84 *
85 * V3.0 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
86 * - Update Pass phrase to check the control type and the major version
87 *
88 * V3.1 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
89 * - Current minimization at startup
90 * - Fast start up
91
92 * V3.4 BOARD_ID_CMCS_B BOARD_CMCS_B_VARIANT_3_1
93 * - Parameters renaming
94 * - some unused code removed
95 *
96 * */
97