Commit cfc10443 authored by Sandeep Mistry's avatar Sandeep Mistry

Update #ifdef NRF52 -> #if defined(NRF52_SERIES)

parent 85798d15
...@@ -61,7 +61,7 @@ loop ...@@ -61,7 +61,7 @@ loop
NOP NOP
NOP NOP
NOP NOP
#ifdef NRF52 #if defined(NRF52_SERIES)
NOP NOP
NOP NOP
NOP NOP
...@@ -130,7 +130,7 @@ __ASM ( ...@@ -130,7 +130,7 @@ __ASM (
" NOP\n\t" " NOP\n\t"
" NOP\n\t" " NOP\n\t"
" NOP\n\t" " NOP\n\t"
#ifdef NRF52 #if defined(NRF52_SERIES)
" NOP\n\t" " NOP\n\t"
" NOP\n\t" " NOP\n\t"
" NOP\n\t" " NOP\n\t"
...@@ -213,7 +213,7 @@ __ASM volatile ( ...@@ -213,7 +213,7 @@ __ASM volatile (
" NOP\n" " NOP\n"
" NOP\n" " NOP\n"
" NOP\n" " NOP\n"
#ifdef NRF52 #if defined(NRF52_SERIES)
" NOP\n" " NOP\n"
" NOP\n" " NOP\n"
" NOP\n" " NOP\n"
......
...@@ -78,7 +78,7 @@ void Uart::begin(unsigned long baudrate, uint16_t /*config*/) ...@@ -78,7 +78,7 @@ void Uart::begin(unsigned long baudrate, uint16_t /*config*/)
uint32_t nrfBaudRate; uint32_t nrfBaudRate;
#ifdef NRF52 #if defined(NRF52_SERIES)
if (baudrate <= 1200) { if (baudrate <= 1200) {
nrfBaudRate = UARTE_BAUDRATE_BAUDRATE_Baud1200; nrfBaudRate = UARTE_BAUDRATE_BAUDRATE_Baud1200;
} else if (baudrate <= 2400) { } else if (baudrate <= 2400) {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <string.h> #include <string.h>
#ifdef NRF52 #if defined(NRF52_SERIES)
#define NUMBER_OF_GPIO_TE 8 #define NUMBER_OF_GPIO_TE 8
#else #else
#define NUMBER_OF_GPIO_TE 4 #define NUMBER_OF_GPIO_TE 4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment