Created
August 26, 2012 06:08
-
-
Save YuuichiAkagawa/3474852 to your computer and use it in GitHub Desktop.
GR-SAKURA Serial parity check enable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <rxduino.h> | |
#include <iodefine_gcc63n.h> | |
void setup() | |
{ | |
Serial.begin( 115200, SCI_SCI0P2x ); | |
//SCI0 偶数パリティ有効 | |
SCI0.SCR.BIT.TE = 0; | |
SCI0.SCR.BIT.RE = 0; | |
SCI0.SMR.BIT.PE = 1; | |
SCI0.SMR.BIT.PM = 0; | |
SCI0.SCR.BIT.TE = 1; | |
SCI0.SCR.BIT.RE = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment