Relation between config and .c/.h files

Programmable 6-Channel Router for CAN and CAN FD with I/O and Data Logger
Post Reply
DJdeven
Posts: 4
Joined: Thu 6. Jan 2022, 18:29

Relation between config and .c/.h files

Post by DJdeven » Mon 17. Jan 2022, 10:30

Hi,

What is relation between config file and .c/.h files present in dev package and how to relate configuration keywords with function present in code files?
Example: CAN_OPTIONS_CAN1, CAN_BITRATE_CAN1, TRC_OPTIONS_CAN1, TRC_FILE_MAX_SZ_MB

If we update existing code or add new functions, how can we reflect those into config files?

M.Heidemann
Sales & Support
Sales & Support
Posts: 786
Joined: Fri 20. Sep 2019, 13:31

Re: Relation between config and .c/.h files

Post by M.Heidemann » Mon 17. Jan 2022, 10:55

Hello,

I think you are refering to something completely unrelated to PCANBasic,
can you please clearify?

Sounds to me like you are talking about the PCAN-Router Pro FD Logging Firmware,
which is in no way related to PCANBasic.

Can you confirm?

Best Regards

Marvin

DJdeven
Posts: 4
Joined: Thu 6. Jan 2022, 18:29

Re: Relation between config and .c/.h files

Post by DJdeven » Mon 17. Jan 2022, 13:41

Sorry, I moved my query to correct category now.
Moved to Board Index-->Hardware-->PCAN-Router Pro FD

M.Heidemann
Sales & Support
Sales & Support
Posts: 786
Joined: Fri 20. Sep 2019, 13:31

Re: Relation between config and .c/.h files

Post by M.Heidemann » Mon 17. Jan 2022, 13:47

Hi,

The config files belong to the Logger firmware, for
which the sources are not avilable in the PEAK-DevPack.
The default firmware examples do not come with configuration files and
do not showcase how they might be used in the context of a firmware.

So if you write your own firmware, by default a config file parsing will not be implemented.

If you do not need to have configurations files in your firmware
you can simply ignore the config file altogether and only work in code.

Best Regards

Marvin

Post Reply