Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MSP430FR5994 BOOSTXL-CC1120-90 Library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
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
Energy-Driven Computing
MSP430FR5994 BOOSTXL-CC1120-90 Library
Commits
8d12af21
Commit
8d12af21
authored
5 years ago
by
Edward Longman
Browse files
Options
Downloads
Patches
Plain Diff
Fix library inludes in demo code
parent
b7f16132
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/test/LaunchPad_trx_demo.c
+8
-9
8 additions, 9 deletions
source/test/LaunchPad_trx_demo.c
source/test/LaunchPad_trx_main.c
+7
-7
7 additions, 7 deletions
source/test/LaunchPad_trx_main.c
with
15 additions
and
16 deletions
source/test/LaunchPad_trx_demo.c
+
8
−
9
View file @
8d12af21
...
...
@@ -41,15 +41,15 @@
*
*******************************************************************************/
#include
<cc1x_utils.h>
#include
<
lib/radio_drv/
cc1x_utils.h>
#include
"stdio.h"
#include
"stdlib.h"
#include
"msp430.h"
#include
"hal_timer.h"
#include
"
lib/hal_mcu/
hal_timer.h"
#include
"LaunchPad_trx_demo.h"
#include
"uart_drv.h"
#include
"hal_spi_rf.h"
#include
"radio_drv.h"
#include
"
lib/uart_drv/
uart_drv.h"
#include
"
lib/radio_drv/
hal_spi_rf.h"
#include
"
lib/radio_drv/
radio_drv.h"
/******************************************************************************
* DEFINES - define the system ID and channel hopping scheme
...
...
@@ -680,7 +680,7 @@ void rx_ber_fhss(unsigned char *txBuffer, trx_cfg_struct *trx_cfg)
uartSendString
(
"
\n\r
"
);
uartSendString
(
"Perform RF burst receive function with frequency hopping
\n\r
"
);
#endif
#endif
// Generate the frequency hopping sequence table that we will be using
generate_hopping_table
(
chan_hop_seq
,
MAX_HOP_CHANNELS
);
...
...
@@ -833,7 +833,7 @@ void rx_ber_fhss(unsigned char *txBuffer, trx_cfg_struct *trx_cfg)
curr_pkt_id
=
(
txBuffer
[
1
]
<<
8
)
+
txBuffer
[
2
];
ee_printf
(
"N: %d %d %i %d %d
\n\r
"
,
channel_index
,
chan_hop_seq
[
channel_index
],
curr_pkt_id
,
rssi
,
freq_error
);
#endif
#endif
}
else
{
...
...
@@ -851,7 +851,7 @@ void rx_ber_fhss(unsigned char *txBuffer, trx_cfg_struct *trx_cfg)
}
#if ENABLE_DEBUG_UART == TRUE
ee_printf
(
"M:%d %d
\n\r
"
,
channel_index
,
chan_hop_seq
[
channel_index
]);
#endif
#endif
}
}
// Check to see if the user button has been pressed, exit the rx_ber()
...
...
@@ -1383,4 +1383,3 @@ unsigned char str_to_data(char *str, unsigned int *data, unsigned char length)
}
return
cc
;
}
This diff is collapsed.
Click to expand it.
source/test/LaunchPad_trx_main.c
+
7
−
7
View file @
8d12af21
...
...
@@ -43,10 +43,10 @@
*/
#include
"msp430.h"
#include
"stdio.h"
#include
"radio_drv.h"
#include
"cc1x_utils.h"
#include
"hal_spi_rf.h"
#include
"uart_drv.h"
#include
"
lib/radio_drv/
radio_drv.h"
#include
"
lib/radio_drv/
cc1x_utils.h"
#include
"
lib/radio_drv/
hal_spi_rf.h"
#include
"
lib/uart_drv/
uart_drv.h"
#include
"LaunchPad_trx_demo.h"
/******************************************************************************
...
...
@@ -105,10 +105,10 @@ void main (void)
msp_setup
();
/* Initialize the UART port */
hal_uart_init
();
//
hal_uart_init();
/* enable uart echo function */
uart_drv_toggle_echo
();
//
uart_drv_toggle_echo();
/* initialize the radio subsystem */
trx_cfg
.
bit_rate
=
radio_init
(
1
);
...
...
@@ -277,7 +277,7 @@ void main (void)
break
;
}
}
}
}
/******************************************************************************
...
...
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