Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
88d3421e
Commit
88d3421e
authored
14 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
* missing part of last commit
parent
51e72774
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cpu/lpc2387/include/lpc2387-rtc.h
+0
-1
0 additions, 1 deletion
cpu/lpc2387/include/lpc2387-rtc.h
cpu/lpc2387/lpc2387-rtc.c
+0
-3
0 additions, 3 deletions
cpu/lpc2387/lpc2387-rtc.c
sys/include/swtimer.h
+9
-0
9 additions, 0 deletions
sys/include/swtimer.h
with
9 additions
and
4 deletions
cpu/lpc2387/include/lpc2387-rtc.h
+
0
−
1
View file @
88d3421e
...
@@ -51,7 +51,6 @@ and the mailinglist (subscription via web site)
...
@@ -51,7 +51,6 @@ and the mailinglist (subscription via web site)
#include
<time.h>
#include
<time.h>
#include
<sys/time.h>
#include
<sys/time.h>
#include
"lpc2387.h"
#include
"lpc2387.h"
#include
"clock.h"
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
/**
/**
...
...
This diff is collapsed.
Click to expand it.
cpu/lpc2387/lpc2387-rtc.c
+
0
−
3
View file @
88d3421e
...
@@ -45,7 +45,6 @@ and the mailinglist (subscription via web site)
...
@@ -45,7 +45,6 @@ and the mailinglist (subscription via web site)
#include
"lpc2387.h"
#include
"lpc2387.h"
#include
"lpc2387-rtc.h"
#include
"lpc2387-rtc.h"
#include
"lpm.h"
#include
"lpm.h"
#include
"clock.h"
#define PREINT_RTC 0x000001C8
/* Prescaler value, integer portion, PCLK = 15Mhz */
#define PREINT_RTC 0x000001C8
/* Prescaler value, integer portion, PCLK = 15Mhz */
#define PREFRAC_RTC 0x000061C0
/* Prescaler value, fraction portion, PCLK = 15Mhz */
#define PREFRAC_RTC 0x000061C0
/* Prescaler value, fraction portion, PCLK = 15Mhz */
...
@@ -58,7 +57,6 @@ and the mailinglist (subscription via web site)
...
@@ -58,7 +57,6 @@ and the mailinglist (subscription via web site)
#define PRINTF(fmt, args...)
#define PRINTF(fmt, args...)
#endif
#endif
extern
void
_clock_alarm
(
void
);
/**
/**
* @brief epoch time in hour granularity
* @brief epoch time in hour granularity
...
@@ -155,7 +153,6 @@ void RTC_IRQHandler (void)
...
@@ -155,7 +153,6 @@ void RTC_IRQHandler (void)
RTC_AMR
=
0xff
;
// disable alarm irq
RTC_AMR
=
0xff
;
// disable alarm irq
PRINTF
(
"alarm"
);
PRINTF
(
"alarm"
);
lpm_end_awake
();
lpm_end_awake
();
_clock_alarm
();
}
}
VICVectAddr
=
0
;
// Acknowledge Interrupt
VICVectAddr
=
0
;
// Acknowledge Interrupt
...
...
This diff is collapsed.
Click to expand it.
sys/include/swtimer.h
+
9
−
0
View file @
88d3421e
...
@@ -64,14 +64,23 @@ typedef struct swtimer_t {
...
@@ -64,14 +64,23 @@ typedef struct swtimer_t {
}
action
;
}
action
;
}
swtimer_t
;
}
swtimer_t
;
/**
* @brief Current system time
* @return Time in ticks since system boot
*/
swtime_t
swtimer_now
();
swtime_t
swtimer_now
();
/**
* @brief Initializes swtimer
* @return always 0
*/
int
swtimer_init
();
int
swtimer_init
();
/**
/**
* @brief set swtimer interval and activate
* @brief set swtimer interval and activate
* @param[in] t pointer to preinitialised swtimer_t
* @param[in] t pointer to preinitialised swtimer_t
* @param[in] interval swtimer interval
* @param[in] interval swtimer interval
* @return always 0
*/
*/
int
swtimer_set
(
swtimer_t
*
t
,
swtime_t
interval
);
int
swtimer_set
(
swtimer_t
*
t
,
swtime_t
interval
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment