Simple test of tool chain with OSHChip

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
OSHChip
Date:
Sat Mar 26 07:32:50 2016 +0000
Parent:
0:69ded1c7cad0
Commit message:
Added code to OSHChip_Init.c to change Baud

Changed in this revision

OSHChip_Init.c Show annotated file Show diff for this revision Revisions of this file
diff -r 69ded1c7cad0 -r 23b7ed707d25 OSHChip_Init.c
--- a/OSHChip_Init.c	Tue Mar 22 07:57:23 2016 +0000
+++ b/OSHChip_Init.c	Sat Mar 26 07:32:50 2016 +0000
@@ -33,6 +33,7 @@
 //
 
 #include "nrf51.h"
+#include "nrf51_bitfields.h"
 #include "OSHChip_Pin_Names.h"
 
 void OSHChip_Init(void)
@@ -41,4 +42,19 @@
     NRF_UART0->PSELRXD = RX_PIN_NUMBER;
     NRF_UART0->PSELRTS = 0xFFFFFFFF;
     NRF_UART0->PSELCTS = 0xFFFFFFFF;
+
+//
+//  If you want to change the default Baud, uncomment the following assignment
+//
+//  Here are the pre-defined Baud values:
+//
+// UART_BAUDRATE_BAUDRATE_Baud1200,    UART_BAUDRATE_BAUDRATE_Baud2400,    UART_BAUDRATE_BAUDRATE_Baud4800,
+// UART_BAUDRATE_BAUDRATE_Baud9600,    UART_BAUDRATE_BAUDRATE_Baud14400,   UART_BAUDRATE_BAUDRATE_Baud19200,
+// UART_BAUDRATE_BAUDRATE_Baud28800,   UART_BAUDRATE_BAUDRATE_Baud38400,   UART_BAUDRATE_BAUDRATE_Baud57600,
+// UART_BAUDRATE_BAUDRATE_Baud76800,   UART_BAUDRATE_BAUDRATE_Baud115200,  UART_BAUDRATE_BAUDRATE_Baud230400,
+// UART_BAUDRATE_BAUDRATE_Baud250000,  UART_BAUDRATE_BAUDRATE_Baud460800,  UART_BAUDRATE_BAUDRATE_Baud921600,
+// UART_BAUDRATE_BAUDRATE_Baud1M
+
+ //  NRF_UART0->BAUDRATE = UART_BAUDRATE_BAUDRATE_Baud115200;
+
 }