Skip to content

Commit 09f9409

Browse files
authored
Merge pull request #10378 from jeromecoutant/PR_USTICKER
STM32: protect compilation when DEVICE_USTICKER is disabled
2 parents 1e3aa39 + 9c63d91 commit 09f9409

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

targets/TARGET_STM/hal_tick_overrides.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
#if DEVICE_USTICKER
18+
1619
#include "hal/us_ticker_api.h"
1720
#include "us_ticker_data.h"
1821

@@ -75,3 +78,5 @@ void HAL_ResumeTick(void)
7578
{
7679
// Do nothing
7780
}
81+
82+
#endif /* DEVICE_USTICKER */

targets/TARGET_STM/us_ticker.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
#if DEVICE_USTICKER
18+
1619
#include <stddef.h>
1720
#include "us_ticker_api.h"
1821
#include "PeripheralNames.h"
@@ -264,3 +267,4 @@ void us_ticker_free(void)
264267
us_ticker_disable_interrupt();
265268
}
266269

270+
#endif /* DEVICE_USTICKER */

0 commit comments

Comments
 (0)