File tree Expand file tree Collapse file tree 2 files changed +12
-33
lines changed
Expand file tree Collapse file tree 2 files changed +12
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1616 * @author Jens Wetterich <[email protected] > 1717 */
1818
19+ #include < stdbool.h>
20+
21+ /* prevent the inclusion of irq.h on irq.hpp */
22+ #define IRQ_H
23+ unsigned irq_disable (void );
24+ unsigned irq_enable (void );
25+ bool irq_is_enabled (void );
26+ bool irq_is_in (void );
27+ void irq_restore (unsigned state);
28+
1929#define FFF_ARG_HISTORY_LEN 1u
2030#define FFF_CALL_HISTORY_LEN 1u
2131#include " cppunit.hpp"
2232#include " fff.h"
23- #include " irq.h"
2433#include " irq.hpp"
2534DEFINE_FFF_GLOBALS
2635
2736FAKE_VALUE_FUNC (unsigned , irq_disable)
2837FAKE_VALUE_FUNC(unsigned , irq_enable)
29- FAKE_VALUE_FUNC(int , irq_is_enabled)
30- FAKE_VALUE_FUNC(int , irq_is_in)
38+ FAKE_VALUE_FUNC(bool , irq_is_enabled)
39+ FAKE_VALUE_FUNC(bool , irq_is_in)
3140FAKE_VOID_FUNC(irq_restore, unsigned )
3241
3342class irq_suite : public riot::testing::test_suite {
You can’t perform that action at this time.
0 commit comments