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
8fb610a5
Commit
8fb610a5
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
SAMA5D3: Fix some typos in last blind changes backported from the SAM4e. And verified
parent
e68f6049
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
arch/arm/src/sama5/sam_lowputc.c
+1
-1
1 addition, 1 deletion
arch/arm/src/sama5/sam_lowputc.c
arch/arm/src/sama5/sam_udphs.c
+2
-0
2 additions, 0 deletions
arch/arm/src/sama5/sam_udphs.c
configs/sam4e-ek/README.txt
+17
-1
17 additions, 1 deletion
configs/sam4e-ek/README.txt
with
20 additions
and
2 deletions
arch/arm/src/sama5/sam_lowputc.c
+
1
−
1
View file @
8fb610a5
...
...
@@ -254,7 +254,7 @@ void up_lowputc(char ch)
{
/* Wait for the transmitter to be available */
while
((
(
getreg32
(
SAM_CONSOLE_VBASE
+
SAM_UART_SR_OFFSET
)
&
while
((
getreg32
(
SAM_CONSOLE_VBASE
+
SAM_UART_SR_OFFSET
)
&
UART_INT_TXEMPTY
)
==
0
);
/* Disable interrupts so that the test and the transmission are
...
...
This diff is collapsed.
Click to expand it.
arch/arm/src/sama5/sam_udphs.c
+
2
−
0
View file @
8fb610a5
...
...
@@ -3373,6 +3373,7 @@ static int sam_ep_configure(struct usbdev_ep_s *ep,
bool
last
)
{
struct
sam_ep_s
*
privep
=
(
struct
sam_ep_s
*
)
ep
;
struct
sam_usbdev_s
*
priv
;
int
ret
;
/* Verify parameters. Endpoint 0 is not available at this interface */
...
...
@@ -3394,6 +3395,7 @@ static int sam_ep_configure(struct usbdev_ep_s *ep,
* configured.
*/
priv
=
privep
->
dev
;
priv
->
devstate
=
UDPHS_DEVSTATE_CONFIGURED
;
}
...
...
This diff is collapsed.
Click to expand it.
configs/sam4e-ek/README.txt
+
17
−
1
View file @
8fb610a5
...
...
@@ -622,7 +622,9 @@ USB Full-Speed Device
CONFIG_USBMSC=y : Enable the USB MSC class driver
CONFIG_USBMSC_EPBULKOUT=1 : Use EP1 for the BULK OUT endpoint
CONFIG_USBMSC_EPBULKIN=2 : Use EP2 for the BULK IN endpoint
: Defaults for other settings?
CONFIG_USBMSC_BULKINREQLEN=64 : (Defaults for full speed)
CONFIG_USBMSC_BULKOUTREQLEN=64 :
: Defaults for other settings as well?
Board Selection
CONFIG_SAM4EEK_AT25_BLOCKDEVICE=y : Export AT25 serial FLASH device
CONFIG_SAM4EEK_HSMCI_BLOCKDEVICE=n : Don't export HSMCI SD card
...
...
@@ -667,6 +669,15 @@ USB Full-Speed Device
first have to use mkrd to create the RAM disk and mkfatfs to put
a FAT file system on it.
STATUS:
2014-3-25: Marginally functional. Very slow to come up. USB analyzer
shows several resets before the host decides that it is
happy with the device. There are no obvious errors in the
USB data capture.
2014-3-25: There also seem to be issues about writing files. This
needs more investigation.
CDC/ACM Serial Device Class
---------------------------
...
...
@@ -703,6 +714,11 @@ USB Full-Speed Device
than requires that you first install a serial driver (a .inf file). There
are example .inf files for NuttX in the nuttx/configs/spark directories.
STATUS:
2013-2-23: Checks out OK. See discussion of the usbnsh configuration
below.
Debugging USB Device
--------------------
...
...
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