Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hn70ap
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
f4grx
hn70ap
Commits
66bc10b5
Commit
66bc10b5
authored
6 years ago
by
f4grx
Browse files
Options
Downloads
Patches
Plain Diff
Enable support for main radio.
parent
5f1b73e6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
apps/rxt/rxt_main.c
+9
-4
9 additions, 4 deletions
apps/rxt/rxt_main.c
build/full/defconfig
+3
-3
3 additions, 3 deletions
build/full/defconfig
src/hn70ap_genradio.c
+5
-1
5 additions, 1 deletion
src/hn70ap_genradio.c
with
17 additions
and
8 deletions
apps/rxt/rxt_main.c
+
9
−
4
View file @
66bc10b5
...
...
@@ -87,19 +87,24 @@ int rxt_main(int argc, char *argv[])
do
{
ret
=
hn70ap_radio_receive
(
HN70AP_RADIO_AUX
,
buf
,
buflen
);
printf
(
"read done, ret = %d, errno=%d
\n
"
,
ret
,
errno
);
//
printf("read done, ret = %d, errno=%d\n", ret, errno);
if
(
ret
>
0
)
{
for
(
i
=
0
;
i
<
ret
;
i
++
)
/*
for(i=0; i<ret; i++)
{
printf("%02X ", buf[i]);
}
printf
(
"
\n
"
);
printf("\n");*/
for
(
i
=
0
;
i
<
ret
;
i
++
)
{
printf
(
"%c"
,
(
buf
[
i
]
<
0x20
&&
buf
[
i
]
!=
0x0a
)
?
'.'
:
buf
[
i
]);
}
}
else
if
(
ret
<
0
&&
errno
==
ETIMEDOUT
)
{
printf
(
"RX timeout
\n
"
);
continue
;
// ret = 1;
// continue;
}
}
while
(
ret
>
0
);
...
...
This diff is collapsed.
Click to expand it.
build/full/defconfig
+
3
−
3
View file @
66bc10b5
...
...
@@ -741,7 +741,8 @@ CONFIG_HN70AP_SCREEN=y
CONFIG_HN70AP_ETHERNET=y
CONFIG_HN70AP_ETHERNET_EEMAC=y
CONFIG_HN70AP_RADIO=y
# CONFIG_HN70AP_MAINRADIO is not set
CONFIG_HN70AP_MAINRADIO=y
CONFIG_HN70AP_MAINRADIO_TCXO=y
CONFIG_HN70AP_AUXRADIO=y
# CONFIG_HN70AP_AUXRADIO_HIGHPOWER is not set
# CONFIG_BOARD_CRASHDUMP is not set
...
...
@@ -787,7 +788,7 @@ CONFIG_PREALLOC_TIMERS=4
# CONFIG_INIT_NONE is not set
CONFIG_INIT_ENTRYPOINT=y
# CONFIG_INIT_FILEPATH is not set
CONFIG_USER_ENTRYPOINT="
nsh
_main"
CONFIG_USER_ENTRYPOINT="
sysdaemon
_main"
CONFIG_RR_INTERVAL=200
# CONFIG_SCHED_SPORADIC is not set
CONFIG_TASK_NAME_SIZE=0
...
...
@@ -1620,7 +1621,6 @@ CONFIG_EXAMPLES_NSH=y
# CONFIG_EXAMPLES_SERIALBLASTER is not set
# CONFIG_EXAMPLES_SERIALRX is not set
# CONFIG_EXAMPLES_SERLOOP is not set
# CONFIG_EXAMPLES_SI5351 is not set
# CONFIG_EXAMPLES_SLCD is not set
# CONFIG_EXAMPLES_SMART is not set
# CONFIG_EXAMPLES_SMART_TEST is not set
...
...
This diff is collapsed.
Click to expand it.
src/hn70ap_genradio.c
+
5
−
1
View file @
66bc10b5
...
...
@@ -155,7 +155,11 @@ int hn70ap_genradio_initialize(void)
#if defined(CONFIG_HN70AP_MAINRADIO)
_info
(
"Prepare main radio
\n
"
);
si4463_priv_main
.
gpio_irq
=
GPIO_IRQ_RADIOMAIN
;
radio
=
si4463_init
(
spi4
,
0
,
30000000
,
SI4463_IO1
,
SI4463_IO3
,
&
si4463_lower_main
);
#if defined(CONFIG_HN70AP_MAINRADIO_TCXO)
radio
=
si4463_init
(
spi4
,
0
,
25000000
,
SI4463_IO1
,
SI4463_IO3
,
false
,
true
,
&
si4463_lower_main
);
#else
radio
=
si4463_init
(
spi4
,
0
,
30000000
,
SI4463_IO1
,
SI4463_IO3
,
false
,
false
,
&
si4463_lower_main
);
#endif
if
(
radio
==
NULL
)
{
_err
(
"Unable to initialize main si4463
\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