Skip to content

Commit

Permalink
Merge pull request #10378 from jeromecoutant/PR_USTICKER
Browse files Browse the repository at this point in the history
STM32: protect compilation when DEVICE_USTICKER is disabled
  • Loading branch information
0xc0170 committed Apr 15, 2019
2 parents 1e3aa39 + 9c63d91 commit 09f9409
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions targets/TARGET_STM/hal_tick_overrides.c
Expand Up @@ -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"

Expand Down Expand Up @@ -75,3 +78,5 @@ void HAL_ResumeTick(void)
{
// Do nothing
}

#endif /* DEVICE_USTICKER */
4 changes: 4 additions & 0 deletions targets/TARGET_STM/us_ticker.c
Expand Up @@ -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"
Expand Down Expand Up @@ -264,3 +267,4 @@ void us_ticker_free(void)
us_ticker_disable_interrupt();
}

#endif /* DEVICE_USTICKER */

0 comments on commit 09f9409

Please sign in to comment.