mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Add FreeRTOS-Plus directory.
This commit is contained in:
parent
7bd5f21ad5
commit
f508a5f653
6798 changed files with 134949 additions and 19 deletions
34
FreeRTOS/Demo/HCS12_GCC_banked/sci.h
Normal file
34
FreeRTOS/Demo/HCS12_GCC_banked/sci.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* sci.h controls SCI for GCC/HCS12 version of FreeRTOS Demo
|
||||
* Parts taken from the CodeWarrior Demo in order to work similar.
|
||||
*
|
||||
* Author Jefferson L Smith, Robotronics Inc.
|
||||
*/
|
||||
|
||||
#ifndef __SCI
|
||||
#define __SCI
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
#define COM0_Bm_38400baud 0 /* Constant for switch to mode 0 */
|
||||
#define COM0_Bm_19200baud 1 /* Constant for switch to mode 1 */
|
||||
#define COM0_Bm_9600baud 2 /* Constant for switch to mode 2 */
|
||||
#define COM0_Bm_4800baud 3 /* Constant for switch to mode 3 */
|
||||
|
||||
|
||||
/**
|
||||
* SCI_SetBaudRateMode
|
||||
*
|
||||
* Changes the speed (baud rate).
|
||||
*/
|
||||
byte SCI_SetBaudRateMode(byte Mod);
|
||||
|
||||
|
||||
/**
|
||||
* SCI_Init (bean AsynchroSerial)
|
||||
*
|
||||
* This enables SCI.
|
||||
*/
|
||||
void SCI_Init(void);
|
||||
|
||||
#endif /* ifndef __SCI */
|
Loading…
Add table
Add a link
Reference in a new issue