File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed
TARGET_Freescale/TARGET_MCUXpresso_MCUS
TARGET_KL82Z/TARGET_USENSE
TARGET_Silicon_Labs/TARGET_EFM32 Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ void NMI_Handler(void)
46
46
gpio_init_in (& gpio , PTA4 );
47
47
}
48
48
49
- #ifdef DEVICE_RTC
49
+ #if DEVICE_RTC || DEVICE_LOWPOWERTIMER
50
50
// Enable the RTC oscillator if available on the board
51
51
void rtc_setup_oscillator (RTC_Type * base )
52
52
{
53
53
/* Enable the RTC oscillator */
54
54
RTC -> CR |= RTC_CR_OSCE_MASK ;
55
55
}
56
- #endif
56
+ #endif
Original file line number Diff line number Diff line change 15
15
*/
16
16
#include "rtc_api.h"
17
17
18
- #if DEVICE_RTC
18
+ #if DEVICE_RTC || DEVICE_LOWPOWERTIMER
19
19
20
20
#include "pinmap.h"
21
21
#include "fsl_rtc.h"
Original file line number Diff line number Diff line change 27
27
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
*******************************************************************************
29
29
*/
30
- #if DEVICE_RTC
30
+ #if DEVICE_RTC || DEVICE_LOWPOWERTIMER
31
31
32
32
#include "rtc_api.h"
33
33
#include "rtc_api_hal.h"
@@ -292,8 +292,6 @@ int rtc_isenabled(void)
292
292
#endif /* TARGET_STM32F1 */
293
293
}
294
294
295
- #if DEVICE_LOWPOWERTIMER
296
-
297
295
static void RTC_IRQHandler (void )
298
296
{
299
297
/* Update HAL state */
@@ -333,6 +331,5 @@ void rtc_synchronize(void)
333
331
{
334
332
HAL_RTC_WaitForSynchro (& RtcHandle );
335
333
}
336
- #endif /* DEVICE_LOWPOWERTIMER */
337
334
338
- #endif /* DEVICE_RTC */
335
+ #endif /* DEVICE_RTC || DEVICE_LOWPOWERTIMER */
Original file line number Diff line number Diff line change 22
22
******************************************************************************/
23
23
24
24
#include "device.h"
25
- #if DEVICE_RTC
25
+ #if DEVICE_RTC || DEVICE_LOWPOWERTIMER
26
26
27
27
#include "rtc_api.h"
28
28
#include "rtc_api_HAL.h"
You can’t perform that action at this time.
0 commit comments