Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
librfm12-simple-callback
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Avon Gingell
librfm12-simple-callback
Commits
e9a5ebea
Commit
e9a5ebea
authored
4 years ago
by
Edward Longman
Browse files
Options
Downloads
Plain Diff
Merge branch 'pin-change-int-adaption'
parents
e3e46b16
ecbbec4e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/rfm12.c
+4
-0
4 additions, 0 deletions
src/rfm12.c
src/rfm12_config.h.demo
+6
-0
6 additions, 0 deletions
src/rfm12_config.h.demo
with
10 additions
and
0 deletions
src/rfm12.c
+
4
−
0
View file @
e9a5ebea
...
@@ -138,6 +138,10 @@ void rfm12_poll(void)
...
@@ -138,6 +138,10 @@ void rfm12_poll(void)
ISR
(
RFM12_INT_VECT
,
ISR_NOBLOCK
)
ISR
(
RFM12_INT_VECT
,
ISR_NOBLOCK
)
#endif
#endif
{
{
#ifdef USE_INT_PIN_CHECK
uint8_t
interrupt_high_inactive
=
nIRQ_PIN
&
_BV
(
BIT_nIRQ
);
// Masked input of interrupt pin for PCINT
if
(
interrupt_high_inactive
)
return
;
#endif
RFM12_INT_OFF
();
RFM12_INT_OFF
();
uint8_t
status
;
uint8_t
status
;
uint8_t
recheck_interrupt
=
1
;
uint8_t
recheck_interrupt
=
1
;
...
...
This diff is collapsed.
Click to expand it.
src/rfm12_config.h.demo
+
6
−
0
View file @
e9a5ebea
...
@@ -119,6 +119,12 @@
...
@@ -119,6 +119,12 @@
//the interrupt vector
//the interrupt vector
#define RFM12_INT_VECT (INT1_vect)
#define RFM12_INT_VECT (INT1_vect)
//The interrupt pin and pin mask details (needed for pin change interrupt)
// #define USE_INT_PIN_CHECK
// #define nIRQ_PORT PORTB
// #define nIRQ_PIN PINB
// #define BIT_nIRQ 1
//the interrupt mask register
//the interrupt mask register
#define RFM12_INT_MSK GICR
#define RFM12_INT_MSK GICR
...
...
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