@@ -709,8 +709,6 @@ static inline const struct can_timing *z_impl_can_get_timing_max(const struct de
709
709
__syscall int can_calc_timing (const struct device * dev , struct can_timing * res ,
710
710
uint32_t bitrate , uint16_t sample_pnt );
711
711
712
- #if defined(CONFIG_CAN_FD_MODE ) || defined(__DOXYGEN__ )
713
-
714
712
/**
715
713
* @brief Get the minimum supported timing parameter values for the data phase.
716
714
*
@@ -726,12 +724,14 @@ __syscall int can_calc_timing(const struct device *dev, struct can_timing *res,
726
724
*/
727
725
__syscall const struct can_timing * can_get_timing_data_min (const struct device * dev );
728
726
727
+ #ifdef CONFIG_CAN_FD_MODE
729
728
static inline const struct can_timing * z_impl_can_get_timing_data_min (const struct device * dev )
730
729
{
731
730
const struct can_driver_api * api = (const struct can_driver_api * )dev -> api ;
732
731
733
732
return & api -> timing_data_min ;
734
733
}
734
+ #endif /* CONFIG_CAN_FD_MODE */
735
735
736
736
/**
737
737
* @brief Get the maximum supported timing parameter values for the data phase.
@@ -748,12 +748,14 @@ static inline const struct can_timing *z_impl_can_get_timing_data_min(const stru
748
748
*/
749
749
__syscall const struct can_timing * can_get_timing_data_max (const struct device * dev );
750
750
751
+ #ifdef CONFIG_CAN_FD_MODE
751
752
static inline const struct can_timing * z_impl_can_get_timing_data_max (const struct device * dev )
752
753
{
753
754
const struct can_driver_api * api = (const struct can_driver_api * )dev -> api ;
754
755
755
756
return & api -> timing_data_max ;
756
757
}
758
+ #endif /* CONFIG_CAN_FD_MODE */
757
759
758
760
/**
759
761
* @brief Calculate timing parameters for the data phase
@@ -795,13 +797,15 @@ __syscall int can_calc_timing_data(const struct device *dev, struct can_timing *
795
797
__syscall int can_set_timing_data (const struct device * dev ,
796
798
const struct can_timing * timing_data );
797
799
800
+ #ifdef CONFIG_CAN_FD_MODE
798
801
static inline int z_impl_can_set_timing_data (const struct device * dev ,
799
802
const struct can_timing * timing_data )
800
803
{
801
804
const struct can_driver_api * api = (const struct can_driver_api * )dev -> api ;
802
805
803
806
return api -> set_timing_data (dev , timing_data );
804
807
}
808
+ #endif /* CONFIG_CAN_FD_MODE */
805
809
806
810
/**
807
811
* @brief Set the bitrate for the data phase of the CAN-FD controller
@@ -830,8 +834,6 @@ static inline int z_impl_can_set_timing_data(const struct device *dev,
830
834
*/
831
835
__syscall int can_set_bitrate_data (const struct device * dev , uint32_t bitrate_data );
832
836
833
- #endif /* CONFIG_CAN_FD_MODE */
834
-
835
837
/**
836
838
* @brief Fill in the prescaler value for a given bitrate and timing
837
839
*
0 commit comments