summaryrefslogtreecommitdiff
path: root/2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci
diff options
context:
space:
mode:
authoryash11122017-07-07 22:34:47 +0530
committeryash11122017-07-07 22:34:47 +0530
commit2a6c003c67faafd257984f4ae632e40bc6fa9a32 (patch)
tree5eecfb962980f7c32cd167bd7e124166e4741343 /2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci
parentce61940a1398e66d9d09b81241789576c1ceca01 (diff)
parent640f9fcf3f64298c7958f4bde5a7e6a7602a690d (diff)
downloadScilab2C-2a6c003c67faafd257984f4ae632e40bc6fa9a32.tar.gz
Scilab2C-2a6c003c67faafd257984f4ae632e40bc6fa9a32.tar.bz2
Scilab2C-2a6c003c67faafd257984f4ae632e40bc6fa9a32.zip
1.Sci2cDeps updated 2.Windows compatibility resolved
Diffstat (limited to '2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci')
-rw-r--r--2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci31
1 files changed, 31 insertions, 0 deletions
diff --git a/2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci b/2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci
index 6ecf2a07..896674b3 100644
--- a/2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci
+++ b/2.3-1/macros/Hardware/AVR/AVRUARTSetup.sci
@@ -10,6 +10,7 @@
function AVRUARTSetup(mode, baudrate, stopbits, parity)
// Function to Setup Serial Communication i.e UART or USART in ATmega16.
+<<<<<<< HEAD
//
// Parameters
// mode : integer, from 0 to 2
@@ -38,6 +39,31 @@ function AVRUARTSetup(mode, baudrate, stopbits, parity)
// This is curretly dummy function. It provides no functionality but is required
// for providing support for generating C code for AVR.
//
+=======
+// Description
+// This function Setup the UART or USART for Serial Communicaion between ATmega16
+// and different micro controllers or between ATmega16 and Computer.
+//
+// Parameters
+// mode :
+// 0 for Asynchronous Normal mode
+// 1 for Asynchronous Double Speed mode
+// 2 for Synchronous mode
+//
+// baudrate : Enter one of the following available baudrates
+// 2400 , 4800 , 9600 , 14400 , 19200 , 28800 , 38400 , 57600 ,
+// 768000 , 115200 , 230400 , 250000 , 1000000 .
+//
+// stopbits :
+// 0 for one stopbit
+// 1 for two stopbits
+//
+// parity :
+// 0 for parity disabled
+// 1 for even parity
+// 2 for odd parity
+//
+>>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
//Examples
// AVRUARTSetup(0,9600,0,0); //This function will enable UART Communication for ATmega16
// with 9600 as baudrate,one stop bit and parity disabled
@@ -48,7 +74,12 @@ function AVRUARTSetup(mode, baudrate, stopbits, parity)
// Authors
// Ashish Kamble
//
+<<<<<<< HEAD
+=======
+// This is curretly dummy function. It provides no functionality but is required
+// for providing support for generating C code for AVR.
+>>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0
if(mode>=3) then
disp("Error : Invalid input argument ''mode'' in AVRUARTSetup function.");
end