| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title PinMuxStub.cpp | ||
| 3 | // \author tumbar | ||
| 4 | // \brief Stub PinMux implementation for Linux/test builds | ||
| 5 | // | ||
| 6 | // This file is compiled for Linux/test builds so that components depending on | ||
| 7 | // fprime-samd_Drv_Types can link under native unit testing without pulling in | ||
| 8 | // the SAMD21 CMSIS device headers. For SAMD21 target builds, PinMux.cpp is | ||
| 9 | // used instead. | ||
| 10 | // ====================================================================== | ||
| 11 | |||
| 12 | #include <Fw/FPrimeBasicTypes.hpp> | ||
| 13 | |||
| 14 | namespace Samd21 { | ||
| 15 | class PinMux { | ||
| 16 | public: | ||
| 17 | static void configure(U32 pin_mux_cfg); | ||
| 18 | }; | ||
| 19 | |||
| 20 | ✗ | void PinMux::configure(U32 pin_mux_cfg) { | |
| 21 | // Stub: no-op for tests (no hardware PORT registers on the host) | ||
| 22 | (void)pin_mux_cfg; | ||
| 23 | ✗ | } | |
| 24 | } // namespace Samd21 | ||
| 25 |