00001 /********************************************************************************* 00002 00003 Copyright 2006-2008 MakingThings 00004 00005 Licensed under the Apache License, 00006 Version 2.0 (the "License"); you may not use this file except in compliance 00007 with the License. You may obtain a copy of the License at 00008 00009 http://www.apache.org/licenses/LICENSE-2.0 00010 00011 Unless required by applicable law or agreed to in writing, software distributed 00012 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 00013 CONDITIONS OF ANY KIND, either express or implied. See the License for 00014 the specific language governing permissions and limitations under the License. 00015 00016 *********************************************************************************/ 00017 00018 /* 00019 serial_internal.h 00020 00021 serial Internal headers 00022 00023 MakingThings 00024 */ 00025 00026 #ifndef SERIAL_INTERNAL_H 00027 #define SERIAL_INTERNAL_H 00028 00029 #include "types.h" 00030 00031 /* OS includes. */ 00032 #include "queue.h" 00033 00034 #define SERIAL_PORTS 2 00035 00036 typedef struct 00037 { 00038 bool active; 00039 int baud; 00040 int bits; 00041 int parity; 00042 int stopBits; 00043 int hardwareHandshake; 00044 00045 int rxQSize; 00046 int txQSize; 00047 00048 int detailsInitialized; 00049 00050 AT91S_USART* at91UARTRegs; 00051 00052 xQueueHandle receiveQueue; 00053 xQueueHandle transmitQueue; 00054 00055 } Serial_; 00056 00057 #endif
The Make Controller Kit is an open source project maintained by MakingThings.
MakingThings code is released under the Apache 2.0 license.
Bug tracker, development wiki and status can be found at http://dev.makingthings.com.
This document was last updated on 18 May 2009.