Uwe Gartmann
/
SBUS-Library_16channel
Futaba S-BUS Library. Let you control 16 servos and 2 digital channels
MODSERIAL/ChangeLog.c@0:83e415034198, 2012-03-07 (annotated)
- Committer:
- Digixx
- Date:
- Wed Mar 07 18:18:43 2012 +0000
- Revision:
- 0:83e415034198
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Digixx | 0:83e415034198 | 1 | /* $Id:$ |
Digixx | 0:83e415034198 | 2 | |
Digixx | 0:83e415034198 | 3 | 1.21 10 May 2011 |
Digixx | 0:83e415034198 | 4 | |
Digixx | 0:83e415034198 | 5 | * http://mbed.org/forum/mbed/topic/2264 |
Digixx | 0:83e415034198 | 6 | |
Digixx | 0:83e415034198 | 7 | 1.20 26 April 2011 |
Digixx | 0:83e415034198 | 8 | |
Digixx | 0:83e415034198 | 9 | * Bug fix, not blocking on transmit |
Digixx | 0:83e415034198 | 10 | by Erik Petrich, http://mbed.org/forum/bugs-suggestions/topic/2200 |
Digixx | 0:83e415034198 | 11 | |
Digixx | 0:83e415034198 | 12 | 1.19 20 April 2011 |
Digixx | 0:83e415034198 | 13 | |
Digixx | 0:83e415034198 | 14 | * Fixed some doxygen comment bugs. |
Digixx | 0:83e415034198 | 15 | |
Digixx | 0:83e415034198 | 16 | 1.18 20 April 2011 |
Digixx | 0:83e415034198 | 17 | |
Digixx | 0:83e415034198 | 18 | * All callbacks now use MODSERIAL_callback (rather than Mbed's FunctionPointer[1] type) |
Digixx | 0:83e415034198 | 19 | to store and invoke it's callbacks. This allows MODSERIAL to pass a parameter |
Digixx | 0:83e415034198 | 20 | to callbacks. The function prototype is now void func(MODSERIAL_IRQ_INFO *q). |
Digixx | 0:83e415034198 | 21 | * Callbacks now pass a pointer to a MODSERIAL_IRQ_INFO class type. |
Digixx | 0:83e415034198 | 22 | This class holds a pointer to the MODSERIAL object that invoked the callback |
Digixx | 0:83e415034198 | 23 | thus freeing callbacks need to use the global variable of the original |
Digixx | 0:83e415034198 | 24 | MODSERIAL instance. |
Digixx | 0:83e415034198 | 25 | * MODSERIAL_IRQ_INFO also declares public functions that are protected within MODSERIAL |
Digixx | 0:83e415034198 | 26 | thus allowing certain functions to be restricted to callback context only. |
Digixx | 0:83e415034198 | 27 | * New function MODSERIAL_IRQ_INFO::rxDiscardLastChar() allows an rxCallback function |
Digixx | 0:83e415034198 | 28 | to remove the character that was just placed into the RX buffer. |
Digixx | 0:83e415034198 | 29 | |
Digixx | 0:83e415034198 | 30 | [1] http://mbed.org/users/AjK/libraries/FPointer/latest/docs/ |
Digixx | 0:83e415034198 | 31 | |
Digixx | 0:83e415034198 | 32 | 1.17 08/Mar/2011 |
Digixx | 0:83e415034198 | 33 | Fixed a memory leak in the DMA code. |
Digixx | 0:83e415034198 | 34 | |
Digixx | 0:83e415034198 | 35 | 1.16 - 12 Feb 2011 |
Digixx | 0:83e415034198 | 36 | |
Digixx | 0:83e415034198 | 37 | * Missed one, doh! |
Digixx | 0:83e415034198 | 38 | |
Digixx | 0:83e415034198 | 39 | 1.15 - 12 Feb 2011 |
Digixx | 0:83e415034198 | 40 | |
Digixx | 0:83e415034198 | 41 | * Fixed some typos. |
Digixx | 0:83e415034198 | 42 | |
Digixx | 0:83e415034198 | 43 | 1.14 - 7 Feb 2011 |
Digixx | 0:83e415034198 | 44 | |
Digixx | 0:83e415034198 | 45 | * Fixed a bug in __putc() that caused the output buffer pointer to |
Digixx | 0:83e415034198 | 46 | become corrupted. |
Digixx | 0:83e415034198 | 47 | |
Digixx | 0:83e415034198 | 48 | 1.13 - 20/01/2011 |
Digixx | 0:83e415034198 | 49 | |
Digixx | 0:83e415034198 | 50 | * Added extra documentation. |
Digixx | 0:83e415034198 | 51 | * Fixed some typos. |
Digixx | 0:83e415034198 | 52 | |
Digixx | 0:83e415034198 | 53 | 1.12 - 20/01/2011 |
Digixx | 0:83e415034198 | 54 | |
Digixx | 0:83e415034198 | 55 | * Added new "autoDetectChar()" function. To use:- |
Digixx | 0:83e415034198 | 56 | 1st: Add a callback to invoke when the char is detected:- |
Digixx | 0:83e415034198 | 57 | .attach(&detectedChar, MODSERIAL::RxAutoDetect); |
Digixx | 0:83e415034198 | 58 | 2nd: Send the char to detect. |
Digixx | 0:83e415034198 | 59 | .autoDectectChar('\n'); |
Digixx | 0:83e415034198 | 60 | Whenever that char goes into the RX buffer your callback will be invoked. |
Digixx | 0:83e415034198 | 61 | Added example2.cpp to demo a simple messaging system using this auto feature. |
Digixx | 0:83e415034198 | 62 | |
Digixx | 0:83e415034198 | 63 | |
Digixx | 0:83e415034198 | 64 | 1.11 - 23/11/2010 |
Digixx | 0:83e415034198 | 65 | |
Digixx | 0:83e415034198 | 66 | * Fixed a minor issue with 1.10 missed an alteration of name change. |
Digixx | 0:83e415034198 | 67 | |
Digixx | 0:83e415034198 | 68 | 1.10 - 23/11/2010 |
Digixx | 0:83e415034198 | 69 | |
Digixx | 0:83e415034198 | 70 | * Rename the DMA callback from attach_dma_complete() to attach_dmaSendComplete() |
Digixx | 0:83e415034198 | 71 | |
Digixx | 0:83e415034198 | 72 | 1.9 - 23/11/2010 |
Digixx | 0:83e415034198 | 73 | |
Digixx | 0:83e415034198 | 74 | * Added support for DMA sending of characters. Required is |
Digixx | 0:83e415034198 | 75 | the MODDMA library module:- |
Digixx | 0:83e415034198 | 76 | http://mbed.org/users/AjK/libraries/MODDMA/latest |
Digixx | 0:83e415034198 | 77 | See example_dma.cpp for more information. |
Digixx | 0:83e415034198 | 78 | |
Digixx | 0:83e415034198 | 79 | 1.8 - 22/11/2010 |
Digixx | 0:83e415034198 | 80 | |
Digixx | 0:83e415034198 | 81 | * Added code so that if a buffer is set to zero length then |
Digixx | 0:83e415034198 | 82 | MODSERIAL defaults to just using the FIFO for that stream |
Digixx | 0:83e415034198 | 83 | thus making the library "fall back" to teh same operation |
Digixx | 0:83e415034198 | 84 | that the Mbed Serial library performs. |
Digixx | 0:83e415034198 | 85 | * Removed dmaSend() function that should have been removed |
Digixx | 0:83e415034198 | 86 | at 1.7 |
Digixx | 0:83e415034198 | 87 | |
Digixx | 0:83e415034198 | 88 | 1.7 - 21/11/2010 |
Digixx | 0:83e415034198 | 89 | |
Digixx | 0:83e415034198 | 90 | * Remove the DMA enum from MODSERIAL.h as it's not currently |
Digixx | 0:83e415034198 | 91 | ready for release. |
Digixx | 0:83e415034198 | 92 | * Added page doxygen comments. |
Digixx | 0:83e415034198 | 93 | |
Digixx | 0:83e415034198 | 94 | 1.6 - 21/11/2010 |
Digixx | 0:83e415034198 | 95 | |
Digixx | 0:83e415034198 | 96 | * Version 1.5 solved a blocking problem on putc() when called |
Digixx | 0:83e415034198 | 97 | from another ISR. However, isr_tx() invokes a callback of it's |
Digixx | 0:83e415034198 | 98 | own when a byte is tranferred from TX buffer to TX FIFO. User |
Digixx | 0:83e415034198 | 99 | programs may interpret that as an IRQ callback. That's an ISR |
Digixx | 0:83e415034198 | 100 | call from within an existing ISR which is not good. So the |
Digixx | 0:83e415034198 | 101 | TxIrq callback from isr_tx is now conditional. It will only |
Digixx | 0:83e415034198 | 102 | be called when isr_tx() is actually within it's own ISR and |
Digixx | 0:83e415034198 | 103 | not when called from alternate ISR handlers. |
Digixx | 0:83e415034198 | 104 | |
Digixx | 0:83e415034198 | 105 | 1.5 - 21/11/2010 |
Digixx | 0:83e415034198 | 106 | |
Digixx | 0:83e415034198 | 107 | * Calling putc() (or any derived function that uses it like |
Digixx | 0:83e415034198 | 108 | printf()) while inside an interrupt service routine can |
Digixx | 0:83e415034198 | 109 | cause the system to lock up if the TX buffer is full. This |
Digixx | 0:83e415034198 | 110 | is because bytes are only transferred from the TX buffer to |
Digixx | 0:83e415034198 | 111 | the TX FIFO via the TX ISR. If we are, say in an RX ISR already, |
Digixx | 0:83e415034198 | 112 | then the TX ISR will never trigger. The TX buffer stays full and |
Digixx | 0:83e415034198 | 113 | there is never space to putc() the byte. So, while putc() blocks |
Digixx | 0:83e415034198 | 114 | waiting for space it calls isr_tx() to ensure if TX FIFO space |
Digixx | 0:83e415034198 | 115 | becomes available it will move bytes from the TX buffer to TX |
Digixx | 0:83e415034198 | 116 | FIFO thus removing the blocking condition within putc(). |
Digixx | 0:83e415034198 | 117 | |
Digixx | 0:83e415034198 | 118 | 1.4 - 21/11/2010 |
Digixx | 0:83e415034198 | 119 | |
Digixx | 0:83e415034198 | 120 | * Removed all the new DMA code. I wish mbed.org had proper SVN |
Digixx | 0:83e415034198 | 121 | versioning, I'm use to working in HEAD and BRANCHES after I've |
Digixx | 0:83e415034198 | 122 | released a project. Getting bug reports in current releases |
Digixx | 0:83e415034198 | 123 | while trying to dev new code is hard to manage without source |
Digixx | 0:83e415034198 | 124 | control of some type! |
Digixx | 0:83e415034198 | 125 | |
Digixx | 0:83e415034198 | 126 | 1.3 - 21/11/2010 |
Digixx | 0:83e415034198 | 127 | |
Digixx | 0:83e415034198 | 128 | * Fixed a macro problem with txIsBusy() |
Digixx | 0:83e415034198 | 129 | * Started adding code to use "block data" sending using DMA |
Digixx | 0:83e415034198 | 130 | * Removed #include "IOMACROS.h" |
Digixx | 0:83e415034198 | 131 | |
Digixx | 0:83e415034198 | 132 | 1.2 - 21/11/2010 |
Digixx | 0:83e415034198 | 133 | |
Digixx | 0:83e415034198 | 134 | * Removed unsed variables from flushBuffer() |
Digixx | 0:83e415034198 | 135 | * Fixed a bug where both RX AND TX fifos are cleared/reset |
Digixx | 0:83e415034198 | 136 | when just TX OR RX should be cleared. |
Digixx | 0:83e415034198 | 137 | * Fixed a bug that cleared IIR when in fact it should be left |
Digixx | 0:83e415034198 | 138 | alone so that any pending interrupt after flush is handled. |
Digixx | 0:83e415034198 | 139 | * Merged setBase() into init() as it wasn't required anywhere else. |
Digixx | 0:83e415034198 | 140 | * Changed init() to enforce _uidx is set by Serial to define the _base |
Digixx | 0:83e415034198 | 141 | address of the Uart in use. |
Digixx | 0:83e415034198 | 142 | |
Digixx | 0:83e415034198 | 143 | 1.1 - 20/11/2010 |
Digixx | 0:83e415034198 | 144 | |
Digixx | 0:83e415034198 | 145 | * Added this file |
Digixx | 0:83e415034198 | 146 | * Removed cruft from GETC.cpp |
Digixx | 0:83e415034198 | 147 | * "teh" should be "the", why do my fingers do that? |
Digixx | 0:83e415034198 | 148 | |
Digixx | 0:83e415034198 | 149 | 1.0 - 20/11/2010 |
Digixx | 0:83e415034198 | 150 | |
Digixx | 0:83e415034198 | 151 | * First release. |
Digixx | 0:83e415034198 | 152 | |
Digixx | 0:83e415034198 | 153 | */ |