mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-05 13:53:50 -04:00
Starting point for the RX RDK version of the demo app.
This commit is contained in:
parent
07006b001e
commit
17add98d2f
43 changed files with 26218 additions and 0 deletions
55
Demo/RX600_RX62N-RDK_GNURX/RTOSDemo/GNU-Files/hwinit.c
Normal file
55
Demo/RX600_RX62N-RDK_GNURX/RTOSDemo/GNU-Files/hwinit.c
Normal file
|
@ -0,0 +1,55 @@
|
|||
/***********************************************************************/
|
||||
/* */
|
||||
/* FILE :hwinit.c */
|
||||
/* DATE :Wed, Aug 25, 2010 */
|
||||
/* DESCRIPTION :Hardware Setup file */
|
||||
/* CPU TYPE :Other */
|
||||
/* */
|
||||
/* This file is generated by KPIT GNU Project Generator. */
|
||||
/* */
|
||||
/***********************************************************************/
|
||||
|
||||
|
||||
|
||||
#include "iodefine.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern void hw_initialise(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
void hw_initialise(void)
|
||||
{
|
||||
/*
|
||||
SCI.SMR.BYTE = 0;
|
||||
SCI.SMR.BIT.CA = 1;
|
||||
SCI.SMR.BIT.CHR = 1;
|
||||
SCI.SMR.BIT.OE = 1;
|
||||
SCI.SMR.BIT.STOP = 1;
|
||||
SCI.SMR.BIT.MP = 1;
|
||||
SCI.SMR.BIT.CKS = 3;
|
||||
SCI.BRR = 0;
|
||||
SCI.SCR.BYTE = 0;
|
||||
SCI.SCR.BIT.TIE = 1;
|
||||
SCI.SCR.BIT.RIE = 1;
|
||||
SCI.SCR.BIT.TE = 1;
|
||||
SCI.SCR.BIT.RE = 1;
|
||||
SCI.SCR.BIT.MPIE = 1;
|
||||
SCI.SCR.BIT.TEIE = 1;
|
||||
SCI.SCR.BIT.CKE = 3;
|
||||
SCI.TDR = 0;
|
||||
SCI.SSR.BYTE = 0;
|
||||
SCI.SSR.BIT.TDRE = 1;
|
||||
SCI.SSR.BIT.RDRF = 1;
|
||||
SCI.SSR.BIT.ORER = 1;
|
||||
SCI.SSR.BIT.FER = 1;
|
||||
SCI.SSR.BIT.PER = 1;
|
||||
SCI.SSR.BIT.TEND = 1;
|
||||
SCI.SSR.BIT.MPB = 1;
|
||||
SCI.SSR.BIT.MPBT = 1;
|
||||
SCI.RDR = 0;
|
||||
|
||||
*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue