Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jack Humbert
reform-boundary-uboot
Commits
ced209c5
Commit
ced209c5
authored
16 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
sacsng board: fix warnings "suggest explicit braces to avoid ambiguous 'else'"
Signed-off-by:
Wolfgang Denk
<
wd@denx.de
>
parent
4ff170a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/configs/sacsng.h
+8
-4
8 additions, 4 deletions
include/configs/sacsng.h
with
8 additions
and
4 deletions
include/configs/sacsng.h
+
8
−
4
View file @
ced209c5
...
@@ -272,10 +272,14 @@
...
@@ -272,10 +272,14 @@
#undef SPI_INIT
/* no port initialization needed */
#undef SPI_INIT
/* no port initialization needed */
#define SPI_READ ((immr->im_ioport.iop_pdatd & I2C_MISO) != 0)
#define SPI_READ ((immr->im_ioport.iop_pdatd & I2C_MISO) != 0)
#define SPI_SDA(bit) if(bit) immr->im_ioport.iop_pdatd |= I2C_MOSI; \
#define SPI_SDA(bit) do { \
else immr->im_ioport.iop_pdatd &= ~I2C_MOSI
if(bit) immr->im_ioport.iop_pdatd |= I2C_MOSI; \
#define SPI_SCL(bit) if(bit) immr->im_ioport.iop_pdatd |= I2C_SCLK; \
else immr->im_ioport.iop_pdatd &= ~I2C_MOSI; \
else immr->im_ioport.iop_pdatd &= ~I2C_SCLK
} while (0)
#define SPI_SCL(bit) do { \
if(bit) immr->im_ioport.iop_pdatd |= I2C_SCLK; \
else immr->im_ioport.iop_pdatd &= ~I2C_SCLK; \
} while (0)
#define SPI_DELAY
/* No delay is needed */
#define SPI_DELAY
/* No delay is needed */
#endif
/* CONFIG_SOFT_SPI */
#endif
/* CONFIG_SOFT_SPI */
...
...
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