STM32: protect compilation when DEVICE_USTICKER is disabled

pull/10378/head
jeromecoutant 2019-04-11 17:41:25 +02:00
parent f56808f9bf
commit 9c63d91c11
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if DEVICE_USTICKER
#include "hal/us_ticker_api.h"
#include "us_ticker_data.h"
@ -75,3 +78,5 @@ void HAL_ResumeTick(void)
{
// Do nothing
}
#endif /* DEVICE_USTICKER */

View File

@ -13,6 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if DEVICE_USTICKER
#include <stddef.h>
#include "us_ticker_api.h"
#include "PeripheralNames.h"
@ -264,3 +267,4 @@ void us_ticker_free(void)
us_ticker_disable_interrupt();
}
#endif /* DEVICE_USTICKER */