Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/us_ticker.c
- Revision:
- 18:da299f395b9e
- Parent:
- 15:a81a8d6c1dfe
- Child:
- 64:41a834223ea3
diff -r 0b20abc991ca -r da299f395b9e targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/us_ticker.c --- a/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/us_ticker.c Thu Nov 05 09:00:10 2015 +0000 +++ b/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/us_ticker.c Mon Nov 09 13:30:11 2015 +0000 @@ -23,9 +23,15 @@ #include "tc.h" #include "tc_interrupt.h" +#if (SAMD21) || (SAMR21) #define TICKER_COUNTER_uS TC4 #define TICKER_COUNTER_IRQn TC4_IRQn #define TICKER_COUNTER_Handlr TC4_Handler +#elif (SAML21) /*SAML21 TCC4 does not support 32 bit counter operations*/ +#define TICKER_COUNTER_uS TC0 +#define TICKER_COUNTER_IRQn TC0_IRQn +#define TICKER_COUNTER_Handlr TC0_Handler +#endif static int us_ticker_inited = 0; extern uint8_t g_sys_init;
