Skip to content

Commit 6874fde

Browse files
committed
TESTS-MBED_DRIVERS-TIMER: include ticker_free() function in the ticker interface.
1 parent ace8210 commit 6874fde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

TESTS/mbed_drivers/timer/main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ static void stub_fire_interrupt(void)
103103
/* do nothing. */
104104
}
105105

106+
/* User ticker interface function. */
107+
static void stub_free(void)
108+
{
109+
/* do nothing. */
110+
}
111+
106112
ticker_info_t info =
107113
{ TICKER_FREQ_1MHZ, TICKER_BITS };
108114

@@ -122,6 +128,7 @@ static const ticker_interface_t us_interface = {
122128
.clear_interrupt = stub_clear_interrupt,
123129
.set_interrupt = stub_set_interrupt,
124130
.fire_interrupt = stub_fire_interrupt,
131+
.free = stub_free,
125132
.get_info = stub_get_info,
126133
};
127134

0 commit comments

Comments
 (0)