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
63e53e05
Commit
63e53e05
authored
5 years ago
by
Edward Longman
Browse files
Options
Downloads
Patches
Plain Diff
Correct SPI config in main
parent
d71fb23a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/test/min2.c
+5
-6
5 additions, 6 deletions
source/test/min2.c
with
5 additions
and
6 deletions
source/test/min2.c
+
5
−
6
View file @
63e53e05
...
@@ -65,10 +65,9 @@ void main (void)
...
@@ -65,10 +65,9 @@ void main (void)
P3DIR
|=
BIT4
;
P3DIR
|=
BIT4
;
P3SEL0
&=
~
BIT4
;
P3SEL0
&=
~
BIT4
;
P3SEL1
&=
~
BIT4
;
P3SEL1
&=
~
BIT4
;
//Setup SPI
/* Keep peripheral in reset state*/
/* Keep peripheral in reset state*/
UCB1CTLW1
|=
UCSWRST
;
UCB1CTLW0
|=
UCSWRST
;
UCB1CTL1
&=
~
(
UCSSEL_3
);
//Reset all config
//Reset all config
UCB1CTLW0
=
~
(
UCCKPH
+
UCCKPL
+
UC7BIT
+
UCMSB
+
UCB1CTLW0
=
~
(
UCCKPH
+
UCCKPL
+
UC7BIT
+
UCMSB
+
UCMST
+
UCMODE_3
+
UCSYNC
);
UCMST
+
UCMODE_3
+
UCSYNC
);
...
@@ -86,9 +85,8 @@ void main (void)
...
@@ -86,9 +85,8 @@ void main (void)
* supported by the supported radios: this could be optimized and done
* supported by the supported radios: this could be optimized and done
* after chip detect.
* after chip detect.
*/
*/
UCB1CTLW0
|=
0x00
+
UCMST
+
UCSYNC
+
UCMODE_0
+
UCMSB
+
UCCKPH
;
UCB1CTLW0
|=
0x00
+
UCMST
+
UCSYNC
+
UCMODE_0
+
UCMSB
+
UCCKPH
;
UCB1CTLW0
|=
UCSSEL_2
;
UCB1CTLW0
|=
UCSSEL_2
;
UCB1BRW
=
0x00
;
UCB1BRW
=
4
;
UCB1BRW
=
4
;
// select bit RF_MISO_PIN, RF_MOSI_PIN, RF_SCLK as peripheral
// select bit RF_MISO_PIN, RF_MOSI_PIN, RF_SCLK as peripheral
...
@@ -106,7 +104,8 @@ void main (void)
...
@@ -106,7 +104,8 @@ void main (void)
RF_CS_N_PORT_OUT
|=
RF_CS_N_PIN
;
RF_CS_N_PORT_OUT
|=
RF_CS_N_PIN
;
/* Release for operation */
/* Release for operation */
UCB1CTL1
&=
~
UCSWRST
;
UCB1CTLW0
&=
~
UCSWRST
;
//trxRfSpiInterfaceInit(4);
__enable_interrupt
();
__enable_interrupt
();
/* Infinite loop with a 1 second timer */
/* Infinite loop with a 1 second timer */
...
...
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