Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
zzha zzha
OpenXG-RAN
Commits
efb786d8
Commit
efb786d8
authored
Jul 13, 2020
by
Andrew Burger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'episys/sfn_semaphore' into episys/new_queue_system
parents
42709fce
f3d30dae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
1 deletion
+21
-1
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+7
-0
openair2/PHY_INTERFACE/phy_stub_UE.h
openair2/PHY_INTERFACE/phy_stub_UE.h
+3
-0
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+5
-1
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+6
-0
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
efb786d8
...
...
@@ -49,6 +49,7 @@ queue_t ul_config_req_queue;
queue_t
hi_dci0_req_queue
;
int
current_sfn_sf
;
sem_t
sfn_semaphore
;
static
int
ue_tx_sock_descriptor
=
-
1
;
static
int
ue_rx_sock_descriptor
=
-
1
;
...
...
@@ -1204,6 +1205,12 @@ void *ue_standalone_pnf_task(void *context)
uint16_t
sfn_sf
=
0
;
memcpy
((
void
*
)
&
sfn_sf
,
buffer
,
sizeof
(
sfn_sf
));
current_sfn_sf
=
sfn_sf
;
if
(
sem_post
(
&
sfn_semaphore
)
!=
0
)
{
LOG_E
(
MAC
,
"sem_post() error
\n
"
);
abort
();
}
}
else
{
...
...
openair2/PHY_INTERFACE/phy_stub_UE.h
View file @
efb786d8
...
...
@@ -14,6 +14,7 @@
#include "nfapi_interface.h"
#include "nfapi_pnf_interface.h"
#include <pthread.h>
#include <semaphore.h>
#include "nfapi/oai_integration/vendor_ext.h"
//#include "openair1/PHY/LTE_TRANSPORT/defs.h"
//#include "openair1/PHY/defs.h"
...
...
@@ -156,4 +157,6 @@ extern nfapi_hi_dci0_request_t* hi_dci0_req;
extern
int
current_sfn_sf
;
extern
sem_t
sfn_semaphore
;
#endif
/* PHY_STUB_UE_H_ */
targets/RT/USER/lte-ue.c
View file @
efb786d8
...
...
@@ -1046,7 +1046,11 @@ static void *UE_phy_stub_standalone_pnf_task(void *arg)
bool
sent_any
=
false
;
int
sfn_sf
=
current_sfn_sf
;
if
(
sfn_sf
==
last_sfn_sf
)
{
usleep
(
100
);
if
(
sem_wait
(
&
sfn_semaphore
)
!=
0
)
{
LOG_E
(
MAC
,
"sem_wait() error
\n
"
);
abort
();
}
continue
;
}
...
...
targets/RT/USER/lte-uesoftmodem.c
View file @
efb786d8
...
...
@@ -733,7 +733,13 @@ int main( int argc, char **argv ) {
init_queue
(
&
tx_req_pdu_queue
);
init_queue
(
&
hi_dci0_req_queue
);
init_queue
(
&
ul_config_req_queue
);
config_sync_var
=
0
;
if
(
sem_init
(
&
sfn_semaphore
,
0
,
0
)
!=
0
)
{
LOG_E
(
MAC
,
"sem_init() error
\n
"
);
abort
();
}
init_UE_stub_single_thread
(
NB_UE_INST
,
eMBMS_active
,
uecap_xer_in
,
emul_iface
);
init_UE_standalone_thread
();
}
else
{
...
...
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