Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: removed unused enum CanMode and CanType. #17

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions include/can_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ typedef enum
CANAny = 2
} CANFormat;

typedef enum
{
CANData = 0,
CANRemote = 1
} CANType;

union x8h7_can_message
{
struct __attribute__((packed))
Expand All @@ -67,15 +61,6 @@ union x8h7_can_message
uint8_t buf[X8H7_CAN_HEADER_SIZE + X8H7_CAN_FRAME_MAX_DATA_LEN];
};

typedef enum {
MODE_RESET,
MODE_NORMAL,
MODE_SILENT,
MODE_TEST_LOCAL,
MODE_TEST_GLOBAL,
MODE_TEST_SILENT
} CanMode;

typedef enum {
CAN_1 = (int)FDCAN1_BASE,
CAN_2 = (int)FDCAN2_BASE
Expand All @@ -86,6 +71,10 @@ typedef struct
FDCAN_HandleTypeDef CanHandle;
} can_t;

/**************************************************************************************
* FUNCTION DECLARATION
**************************************************************************************/

void canInit();
void can_handle_data();

Expand Down