Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
f5341bfc
Commit
f5341bfc
authored
Sep 17, 2014
by
TMRh20
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19 from reixd/master
Fix "warning: binary constants are a GCC extension".
parents
9e28a602
6f70a3cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
RPi/RF24/bcm2835.h
RPi/RF24/bcm2835.h
+12
-12
No files found.
RPi/RF24/bcm2835.h
View file @
f5341bfc
...
...
@@ -434,24 +434,24 @@ extern volatile uint32_t *bcm2835_bsc1;
/// Port function select modes for bcm2835_gpio_fsel()
typedef
enum
{
BCM2835_GPIO_FSEL_INPT
=
0
b0
00
,
///< Input
BCM2835_GPIO_FSEL_OUTP
=
0
b0
01
,
///< Output
BCM2835_GPIO_FSEL_ALT0
=
0
b100
,
///< Alternate function 0
BCM2835_GPIO_FSEL_ALT1
=
0
b101
,
///< Alternate function 1
BCM2835_GPIO_FSEL_ALT2
=
0
b110
,
///< Alternate function 2
BCM2835_GPIO_FSEL_ALT3
=
0
b111
,
///< Alternate function 3
BCM2835_GPIO_FSEL_ALT4
=
0
b011
,
///< Alternate function 4
BCM2835_GPIO_FSEL_ALT5
=
0
b010
,
///< Alternate function 5
BCM2835_GPIO_FSEL_MASK
=
0
b111
///< Function select bits mask
BCM2835_GPIO_FSEL_INPT
=
0
x
00
,
///< Input
BCM2835_GPIO_FSEL_OUTP
=
0
x
01
,
///< Output
BCM2835_GPIO_FSEL_ALT0
=
0
x04
,
///< Alternate function 0
BCM2835_GPIO_FSEL_ALT1
=
0
x05
,
///< Alternate function 1
BCM2835_GPIO_FSEL_ALT2
=
0
x06
,
///< Alternate function 2
BCM2835_GPIO_FSEL_ALT3
=
0
x07
,
///< Alternate function 3
BCM2835_GPIO_FSEL_ALT4
=
0
x03
,
///< Alternate function 4
BCM2835_GPIO_FSEL_ALT5
=
0
x02
,
///< Alternate function 5
BCM2835_GPIO_FSEL_MASK
=
0
x07
///< Function select bits mask
}
bcm2835FunctionSelect
;
/// \brief bcm2835PUDControl
/// Pullup/Pulldown defines for bcm2835_gpio_pud()
typedef
enum
{
BCM2835_GPIO_PUD_OFF
=
0
b
00
,
///< Off ? disable pull-up/down
BCM2835_GPIO_PUD_DOWN
=
0
b
01
,
///< Enable Pull Down control
BCM2835_GPIO_PUD_UP
=
0
b10
///< Enable Pull Up control
BCM2835_GPIO_PUD_OFF
=
0
x
00
,
///< Off ? disable pull-up/down
BCM2835_GPIO_PUD_DOWN
=
0
x
01
,
///< Enable Pull Down control
BCM2835_GPIO_PUD_UP
=
0
x02
///< Enable Pull Up control
}
bcm2835PUDControl
;
/// Pad control register offsets from BCM2835_GPIO_PADS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment