Prof Greg Egan
/
UAVXArm-GKE
UAVX Multicopter Flight Controller.
sb_globals.cpp@2:90292f8bd179, 2011-04-26 (annotated)
- Committer:
- gke
- Date:
- Tue Apr 26 12:12:29 2011 +0000
- Revision:
- 2:90292f8bd179
- Parent:
- 0:62a1c91a859a
Not flightworthy. Posted for others to make use of the I2C SW code.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gke | 2:90292f8bd179 | 1 | /* |
gke | 2:90292f8bd179 | 2 | Copyright (c) 2010 Andy Kirkham |
gke | 2:90292f8bd179 | 3 | |
gke | 2:90292f8bd179 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy |
gke | 2:90292f8bd179 | 5 | of this software and associated documentation files (the "Software"), to deal |
gke | 2:90292f8bd179 | 6 | in the Software without restriction, including without limitation the rights |
gke | 2:90292f8bd179 | 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
gke | 2:90292f8bd179 | 8 | copies of the Software, and to permit persons to whom the Software is |
gke | 2:90292f8bd179 | 9 | furnished to do so, subject to the following conditions: |
gke | 2:90292f8bd179 | 10 | |
gke | 2:90292f8bd179 | 11 | The above copyright notice and this permission notice shall be included in |
gke | 2:90292f8bd179 | 12 | all copies or substantial portions of the Software. |
gke | 2:90292f8bd179 | 13 | |
gke | 2:90292f8bd179 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
gke | 2:90292f8bd179 | 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
gke | 2:90292f8bd179 | 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
gke | 2:90292f8bd179 | 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
gke | 2:90292f8bd179 | 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
gke | 2:90292f8bd179 | 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
gke | 2:90292f8bd179 | 20 | THE SOFTWARE. |
gke | 2:90292f8bd179 | 21 | */ |
gke | 2:90292f8bd179 | 22 | |
gke | 2:90292f8bd179 | 23 | /* Module globals, defined here rather than as private |
gke | 2:90292f8bd179 | 24 | variables in the class so the C interrupt routine can |
gke | 2:90292f8bd179 | 25 | access these variables rather than trying to discover |
gke | 2:90292f8bd179 | 26 | where they are at runtime. */ |
gke | 2:90292f8bd179 | 27 | char *_tx_buffer[4]; |
gke | 2:90292f8bd179 | 28 | int _tx_buffer_size[4]; |
gke | 2:90292f8bd179 | 29 | int _tx_buffer_in[4]; |
gke | 2:90292f8bd179 | 30 | int _tx_buffer_out[4]; |
gke | 2:90292f8bd179 | 31 | bool _tx_buffer_full[4]; |
gke | 2:90292f8bd179 | 32 | bool _tx_buffer_overflow[4]; |
gke | 2:90292f8bd179 | 33 | bool _tx_buffer_used_malloc[4]; |
gke | 2:90292f8bd179 | 34 | |
gke | 2:90292f8bd179 | 35 | char *_rx_buffer[4]; |
gke | 2:90292f8bd179 | 36 | int _rx_buffer_size[4]; |
gke | 2:90292f8bd179 | 37 | int _rx_buffer_in[4]; |
gke | 2:90292f8bd179 | 38 | int _rx_buffer_out[4]; |
gke | 2:90292f8bd179 | 39 | bool _rx_buffer_full[4]; |
gke | 2:90292f8bd179 | 40 | bool _rx_buffer_overflow[4]; |
gke | 2:90292f8bd179 | 41 | bool _rx_buffer_used_malloc[4]; |
gke | 2:90292f8bd179 | 42 |