This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
can/Inc/mmr_can_optimize.h
Stefano Calabretti 4d5c1934a4 Scs (#3)
* Add send scs

* Create scs dict

* Fix compilation errors

* Fix compile error

* Change default include

* Add Timer SCS manager

* Remove unused files

* Fix bugs

* Add documentation

* Add SCS manager

bozza

* Refactor

* Use same naming convention

* Add tick provider

* Update header

* Fix header bit translation

* Test HandleNext OK

* Remove linting

* Remove indents

* Add documentation

* Improve docs

* Remove pointer

* Remove mailbox

* Remove useless comment

* Add newline

* Fix compile errors

* Separate scs entries from manager

* Refactor

* Fix include guards

Co-authored-by: nicolagutierrez <nicolagutierrez.ng@gmail.com>
2022-02-23 21:08:47 +01:00

27 lines
489 B
C

/**
* @file mmr_can_optimize.h
* @brief
* Low level optimization utilities.
*/
#ifndef INC_MMR_CAN_OPTIMIZE_H_
#define INC_MMR_CAN_OPTIMIZE_H_
#ifdef __GNUC__
/**
* @brief
* Tells the compiler that the given method
* must always be inlined.
*
* @example
* static always_inline int min(int a, int b) {
* return a < b ? a : b;
* }
*/
#define always_inline inline __attribute__((always_inline))
#else
#define always_inline inline
#endif
#endif /* INC_MMR_CAN_OPTIMIZE_H_ */