Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
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
f4grx
NuttX RTOS
Commits
12e97600
Commit
12e97600
authored
8 years ago
by
Michał Łyszczek
Browse files
Options
Downloads
Patches
Plain Diff
Remove unncessary FAR pointers
parent
5026c192
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configs/stm32butterfly2/src/stm32_mmcsd.c
+4
-4
4 additions, 4 deletions
configs/stm32butterfly2/src/stm32_mmcsd.c
configs/stm32butterfly2/src/stm32_spi.c
+3
-3
3 additions, 3 deletions
configs/stm32butterfly2/src/stm32_spi.c
with
7 additions
and
7 deletions
configs/stm32butterfly2/src/stm32_mmcsd.c
+
4
−
4
View file @
12e97600
...
...
@@ -125,7 +125,7 @@ static void *stm32_cd_thread(void *arg)
* Card detect interrupt handler.
****************************************************************************/
static
int
stm32_cd
(
int
irq
,
FAR
void
*
context
)
static
int
stm32_cd
(
int
irq
,
void
*
context
)
{
static
const
int
debounce_time
=
100
;
/* [ms] */
static
uint32_t
now
=
0
;
...
...
@@ -160,8 +160,8 @@ static int stm32_cd(int irq, FAR void *context)
* Registers media change callback
****************************************************************************/
int
stm32_spi1register
(
FAR
struct
spi_dev_s
*
dev
,
spi_mediachange_t
callback
,
FAR
void
*
arg
)
int
stm32_spi1register
(
struct
spi_dev_s
*
dev
,
spi_mediachange_t
callback
,
void
*
arg
)
{
spiinfo
(
"INFO: Registering spi1 device
\n
"
);
g_chmediaclbk
=
callback
;
...
...
@@ -178,7 +178,7 @@ int stm32_spi1register(FAR struct spi_dev_s *dev, spi_mediachange_t callback,
int
stm32_mmcsd_initialize
(
int
minor
)
{
FAR
struct
spi_dev_s
*
spi
;
struct
spi_dev_s
*
spi
;
struct
sched_param
schparam
;
pthread_attr_t
pattr
;
int
rv
;
...
...
This diff is collapsed.
Click to expand it.
configs/stm32butterfly2/src/stm32_spi.c
+
3
−
3
View file @
12e97600
...
...
@@ -72,8 +72,8 @@ void stm32_spidev_initialize(void)
* Function asserts given devid based on select
****************************************************************************/
void
stm32_spi1select
(
FAR
struct
spi_dev_s
*
dev
,
enum
spi_dev_e
devid
,
bool
select
)
void
stm32_spi1select
(
struct
spi_dev_s
*
dev
,
enum
spi_dev_e
devid
,
bool
select
)
{
spiinfo
(
"INFO: Selecting spi dev: %d, state: %d
\n
"
,
devid
,
select
);
if
(
devid
==
SPIDEV_MMCSD
)
...
...
@@ -89,7 +89,7 @@ void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
* Return status of devid
****************************************************************************/
uint8_t
stm32_spi1status
(
FAR
struct
spi_dev_s
*
dev
,
enum
spi_dev_e
devid
)
uint8_t
stm32_spi1status
(
struct
spi_dev_s
*
dev
,
enum
spi_dev_e
devid
)
{
spiinfo
(
"INFO: Requesting info from spi dev: %d
\n
"
,
devid
);
if
(
devid
==
SPIDEV_MMCSD
)
...
...
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