Skip to content
Snippets Groups Projects
Commit d71fb23a authored by Edward Longman's avatar Edward Longman
Browse files

Change Synonyms to better represent their contents for the fr59xx

parent 5e1ecad2
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ extern "C" {
*/
/* Transceiver SPI signal */
#define RF_PORT_SEL P5SEL0
#define RF_PORT_SEL0 P5SEL0
#define RF_PORT_OUT P5OUT
#define RF_PORT_DIR P5DIR
#define RF_PORT_IN P5IN
......@@ -78,13 +78,13 @@ extern "C" {
#define RF_SCLK_PIN BIT2
/* Transceiver chip select signal */
#define RF_CS_N_PORT_SEL P4SEL0
#define RF_CS_N_PORT_SEL0 P4SEL0
#define RF_CS_N_PORT_DIR P4DIR
#define RF_CS_N_PORT_OUT P4OUT
#define RF_CS_N_PIN BIT4
/* Transciever optional reset signal */
#define RF_RESET_N_PORT_SEL P8SEL0
#define RF_RESET_N_PORT_SEL0 P8SEL0
#define RF_RESET_N_PORT_DIR P8DIR
#define RF_RESET_N_PORT_OUT P8OUT
#define RF_RESET_N_PIN BIT3
......
......@@ -92,7 +92,7 @@ void main (void)
UCB1BRW = 4;
// select bit RF_MISO_PIN, RF_MOSI_PIN, RF_SCLK as peripheral
RF_PORT_SEL |= RF_MISO_PIN + RF_MOSI_PIN + RF_SCLK_PIN;
RF_PORT_SEL0 |= RF_MISO_PIN + RF_MOSI_PIN + RF_SCLK_PIN;
// and set the correct direction on the port
RF_PORT_DIR |= RF_MOSI_PIN + RF_SCLK_PIN;
......@@ -101,7 +101,7 @@ void main (void)
RF_PORT_DIR &= ~(RF_MISO_PIN);
// select chip select bit RF_CS_N_PORT_SEL as a port
RF_CS_N_PORT_SEL &= ~RF_CS_N_PIN;
RF_CS_N_PORT_SEL0 &= ~RF_CS_N_PIN;
RF_CS_N_PORT_DIR |= RF_CS_N_PIN;
RF_CS_N_PORT_OUT |= RF_CS_N_PIN;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment