Skip to content

Instantly share code, notes, and snippets.

@YuuichiAkagawa
Created August 26, 2012 06:08
Show Gist options
  • Save YuuichiAkagawa/3474852 to your computer and use it in GitHub Desktop.
Save YuuichiAkagawa/3474852 to your computer and use it in GitHub Desktop.
GR-SAKURA Serial parity check enable
#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