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
e53e9501
Commit
e53e9501
authored
12 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
zkit-arm-1769 ADC and SPI/USB MSC updates from MKannan
parent
25270695
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
configs/zkit-arm-1769/src/up_ssp.c
+16
-0
16 additions, 0 deletions
configs/zkit-arm-1769/src/up_ssp.c
configs/zkit-arm-1769/src/up_usbmsc.c
+4
-4
4 additions, 4 deletions
configs/zkit-arm-1769/src/up_usbmsc.c
with
22 additions
and
4 deletions
ChangeLog
+
2
−
0
View file @
e53e9501
...
...
@@ -4592,3 +4592,5 @@
* arch/arm/src/lpc17xx/lpc17_adc.c: Only one ADC pin was configured.
Need to configure all that are in the ADC0 set. From MKannan
(2014-4-23).
* configs/zkit-arm-1769/src: ADC and SPI/USB MSC updates from
MKannan (2014-4-23).
This diff is collapsed.
Click to expand it.
configs/zkit-arm-1769/src/up_ssp.c
+
16
−
0
View file @
e53e9501
...
...
@@ -160,6 +160,22 @@ uint8_t lpc17_ssp1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
sspdbg
(
"Returning SPI_STATUS_PRESENT
\n
"
);
return
SPI_STATUS_PRESENT
;
}
/******************************************************************************
* Name: lpc17_ssp1cmddata
*
* Description: Dummy Function
*
******************************************************************************/
#ifdef CONFIG_SPI_CMDDATA
int
weak_function
lpc17_ssp1cmddata
(
FAR
struct
spi_dev_s
*
dev
,
enum
spi_dev_e
devid
,
bool
cmd
)
{
return
OK
;
}
#endif
/* CONFIG_SPI_CMDDATA */
#endif
/* CONFIG_LPC17_SSP1 */
#ifdef CONFIG_LPC17_SSP0
...
...
This diff is collapsed.
Click to expand it.
configs/zkit-arm-1769/src/up_usbmsc.c
+
4
−
4
View file @
e53e9501
...
...
@@ -79,7 +79,7 @@
#ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG
# define message(...) l
ib_lowprintf
(__VA_ARGS__)
# define message(...) l
owsyslog
(__VA_ARGS__)
# define msgflush()
# else
# define message(...) printf(__VA_ARGS__)
...
...
@@ -87,7 +87,7 @@
# endif
#else
# ifdef CONFIG_DEBUG
# define message l
ib_lowprintf
# define message l
owsyslog
# define msgflush()
# else
# define message printf
...
...
@@ -116,8 +116,8 @@ int usbmsc_archinitialize(void)
message
(
"usbmsc_archinitialize: Initializing SPI port %d
\n
"
,
LPC17XX_MMCSDSPIPORTNO
);
spi
=
lpc17_s
s
pinitialize
(
LPC17XX_MMCSDSPIPORTNO
);
zkit_spiinitialize
();
spi
=
lpc17_sp
i
initialize
(
LPC17XX_MMCSDSPIPORTNO
);
if
(
!
spi
)
{
message
(
"usbmsc_archinitialize: Failed to initialize SPI port %d
\n
"
,
...
...
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