Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IQRF Gateway Daemon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open source
IQRF Gateway Daemon
Commits
744fc1bd
Commit
744fc1bd
authored
Oct 01, 2020
by
Rostislav Spinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix in SPI and UART mapping
- data type for IO mapping
parent
099e2ee1
Pipeline
#3769
passed with stages
in 25 minutes and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/IqrfSpi/IqrfSpi.cpp
src/IqrfSpi/IqrfSpi.cpp
+3
-3
src/IqrfUart/IqrfUart.cpp
src/IqrfUart/IqrfUart.cpp
+3
-3
No files found.
src/IqrfSpi/IqrfSpi.cpp
View file @
744fc1bd
...
...
@@ -414,8 +414,8 @@ namespace iqrf {
m_cfg
.
pgmSwitchGpioPin
=
PGM_SWITCH_GPIO
;
m_cfg
.
trModuleReset
=
TR_MODULE_RESET_DISABLE
;
m_cfg
.
powerEnableGpioPin
=
(
u
int8_t
)
Pointer
(
"/powerEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
powerEnableGpioPin
).
GetInt
();
m_cfg
.
busEnableGpioPin
=
(
u
int8_t
)
Pointer
(
"/busEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
busEnableGpioPin
).
GetInt
();
m_cfg
.
powerEnableGpioPin
=
(
int8_t
)
Pointer
(
"/powerEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
powerEnableGpioPin
).
GetInt
();
m_cfg
.
busEnableGpioPin
=
(
int8_t
)
Pointer
(
"/busEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
busEnableGpioPin
).
GetInt
();
// bus signal separated into more
if
(
m_cfg
.
busEnableGpioPin
==
-
1
)
{
...
...
@@ -424,7 +424,7 @@ namespace iqrf {
m_cfg
.
i2cEnableGpioPin
=
(
int8_t
)
Pointer
(
"/i2cEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
i2cEnableGpioPin
).
GetInt
();
}
m_cfg
.
pgmSwitchGpioPin
=
(
u
int8_t
)
Pointer
(
"/pgmSwitchGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
pgmSwitchGpioPin
).
GetInt
();
m_cfg
.
pgmSwitchGpioPin
=
(
int8_t
)
Pointer
(
"/pgmSwitchGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
pgmSwitchGpioPin
).
GetInt
();
Value
*
v
=
Pointer
(
"/spiReset"
).
Get
(
d
);
if
(
v
&&
v
->
IsBool
())
m_cfg
.
trModuleReset
=
v
->
GetBool
()
?
TR_MODULE_RESET_ENABLE
:
TR_MODULE_RESET_DISABLE
;
...
...
src/IqrfUart/IqrfUart.cpp
View file @
744fc1bd
...
...
@@ -354,8 +354,8 @@ namespace iqrf {
m_cfg
.
pgmSwitchGpioPin
=
PGM_SWITCH_GPIO
;
m_cfg
.
trModuleReset
=
TR_MODULE_RESET_DISABLE
;
m_cfg
.
powerEnableGpioPin
=
(
u
int8_t
)
Pointer
(
"/powerEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
powerEnableGpioPin
).
GetInt
();
m_cfg
.
busEnableGpioPin
=
(
u
int8_t
)
Pointer
(
"/busEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
busEnableGpioPin
).
GetInt
();
m_cfg
.
powerEnableGpioPin
=
(
int8_t
)
Pointer
(
"/powerEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
powerEnableGpioPin
).
GetInt
();
m_cfg
.
busEnableGpioPin
=
(
int8_t
)
Pointer
(
"/busEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
busEnableGpioPin
).
GetInt
();
// bus signal separated into more
if
(
m_cfg
.
busEnableGpioPin
==
-
1
)
{
...
...
@@ -364,7 +364,7 @@ namespace iqrf {
m_cfg
.
i2cEnableGpioPin
=
(
int8_t
)
Pointer
(
"/i2cEnableGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
i2cEnableGpioPin
).
GetInt
();
}
m_cfg
.
pgmSwitchGpioPin
=
(
u
int8_t
)
Pointer
(
"/pgmSwitchGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
pgmSwitchGpioPin
).
GetInt
();
m_cfg
.
pgmSwitchGpioPin
=
(
int8_t
)
Pointer
(
"/pgmSwitchGpioPin"
).
GetWithDefault
(
d
,
(
int
)
m_cfg
.
pgmSwitchGpioPin
).
GetInt
();
Value
*
v
=
Pointer
(
"/uartReset"
).
Get
(
d
);
if
(
v
&&
v
->
IsBool
())
...
...
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