4 - Add drawTriangle() and drawTriangleFilled() to
6 - Added cpuReset() to reset the board via AIRCR
7 - Removed text input dialogue from LCD CLI ('T') to
8 save a few KB. Command file still exists, just no
9 longer included in cmd_tbl.h by default.
14 - Added ISL12022M RTC Driver (/drivers/rtc/isl12022m)
15 - Fixed a bug drawing filled circles with lcdDrawVLine
16 - Added CLI command to toggle LCD backlight
17 - Added rounded rectangle command to CLI
18 - Added CFG_INTERFACE_DROPCR to projectconfig.h to
19 ignore CR (\r) characters in incoming data for
21 - Added CFG_INTERFACE_SHORTERRORS to projectconfig.h
22 to only send short (1 char + new line) CLI error
23 messages rather than something verbose
24 - Added CFG_INTERFACE_CONFIRMREADY to projectconfig.h
25 to provide a character to indicate when a command
26 is complete in case the IRQ pin
27 (CFG_INTERFACE_ENABLEIRQ) can't be used
28 - Fixed a bug with reversed R and B bits when reading
29 a pixel from the LCD in CLI mode
30 - Added lcdDrawPixels() to lcd.h and the current lcd
31 drivers to render rows of raw lcd data much quicker
32 than addressing consecutive pixels individually.
33 Can be used with windowing in future for fast
34 animation, continuously writing raw pixels in a
35 32x32 pixel frame, etc.
36 - Fixed ili9328SetWindow() and ili9325SetWindow().
37 They can now be used for fast screen paints of
38 restricted areas of the screen, such as animations
39 where raw pixel data is constantly fed to the LCD.
40 - Fixed pixel overflow bugs in drawCircleFilled(). Any
41 pixels that exceed screen limits will now be dropped,
42 though at the expense of slightly slower code.
43 - Added drawLineDotted() to drawing.c to draw lines with
44 a fixed pattern of empty and solid pixels
45 - Added __resetBootloader() macro to lpc134x.h to
46 reset and enter the USB bootloader (LPC1343 Reference
47 Design Base Board only since this depends on the
48 existance of the RC combination on the ISP pin).
49 To reset and executre code normally, the watchdog
50 time can be used (see "core/wdt").
51 - Added AIRCR register to lpc134x.h (Application Interrupt
52 and Reset Control Register).
53 - Added drawIcon16() to drawing.c to render monochrome
54 16x16 pixel icons from a byte array.
55 - Added a handful of common 16x16 icon definitions in
56 /drivers/lcd/icons16.h ... adapted from Gentleface
57 Toolbar Icon Set. For license terms see
58 http://www.gentleface.com/free_icon_set.html
59 - Added a few basic RGB565 color schemes to colors.h and
60 an image file showing the colors in /tools/colors_h.png
61 - Updated alphanumeric dialogue form to use new buttons.
62 - Rewrote drawButton() to use rounded rectangle and
63 all colors are now passed in as parameters. Also
64 modified the button command in the CLI to match this.
65 - Rewrote drawProgressBar() to take advantage of the
66 new rounded rectangle function (below). Also
67 modified the progress bar command in the CLI to
68 allow more colors to be indicated when rendering.
69 - Added drawRectangleRounded() to drawing.c (filled
70 rectangle with configurable rounded corners).
71 - Added drawArrow() to drawing.c to make small rectangles
72 for left/right menu items, etc.
73 - Completely rewrote the touch screen calibration code to
74 be much more accurate.
76 v0.9.0 - 28 March 2011
77 ======================
79 - Calibration process no longer starts automatically when
80 calibration data is not found in EEPROM. tsCalibrate()
81 now needs to called manually or from the CLI.
82 - Fixed a bug in cmd_tswait.c when no delay was passed.
83 - Added CLI command to set touch screen threshold
84 to register a touch event (since this can vary from
85 screen to screen). Type 'x' at the CLI to get/set
86 the value. The setting is persisted to EEPROM, and if
87 no value is found on EEPROM CFG_TFTLCD_TS_DEFAULTTHRESHOLD
88 from projectconfig.h is used.
89 - Adjusted touch screen code to check ADC values twice
90 and compare. If mismatch occurs, and error is returned.
91 This provides far more consistent TS values at the
92 expense of having to check the error results. See
93 'alphanumeric.c' for an example of doing this
95 - Added seperate driver for ILI9328 based displays, even
96 though it seems to be identical to the ILI9325. Files
97 were seperated in case the initialisation needs to be
98 tweeked later or if incompatibilities are found.
99 - Added the ability to write the contents of the LCD
100 to a bitmap image, though it's very slow reading data
101 pixel by pixel and converting it to 24-bit RGB values.
102 Performance can definately be improved.
103 - Added 'drawRGB565toBGRA32' to drawing.c to convert
104 RGB565 colors back to the canonical BGRA32 format
105 - Added gain controls to TSL2561 driver to increase or
106 decrease sensitivity. Should be easy to implement
107 auto-gain functionality now.
108 - Changed USB VID to a valid value. Source files and
109 lpc134x-vcom.inf updated accordingly.
110 - Moved USB VID and PID to projectconfig.h
111 - Added '-mcpu' flag to the linker in Makefile (the wrong
112 libm was being linked because of this).
115 --------------------------------------------------------
116 - Some config settings in EEPROM were relocated in v0.90+
117 of the LPC1343 Code Base to take into account the new
118 touch screen calibration code. See projectconfig.h
119 for more details of the new EEPROM layout.
121 v0.8.6 - 21 March 2011
122 ======================
124 - Added DWT section to LPC134x.h (see Cortex-M3
125 Technical Reference Manual section 8.3)
126 - Added CPU_RESET_CYCLECOUNTER to cpu.c to do rough
127 in-code performance checks (counts CPU cycles)
128 - Added '-lm' to linker in Makefile for math.c support
129 - Increased MAX_STRING_SIZE from 100 to 255 in stdio.c
130 - Added driver for the TCS3414 RGB color sensor
131 - Added driver for the TSL2561 digital light sensor
132 - Added CFG_USBCDC_BUFFERSIZE to projectconfig.h
133 instead of cdc_buf.h.
134 - Added a PWM example using a piezo buzzer (see
135 'tools/examples/basics/pwm_piezobuzzer' for details)
136 - Added ctype.c to 'core/libc'
137 - Changed Crossworks project to use libc files from
138 'core/libc' and modified the USB CDC printf to be
139 much faster by redirecting inside 'puts' rather than
140 '__putchar' (see 'sysinit.c').
141 - Fixed a bug in LPC134x.h ... USB_CMDCODE write and read
143 - Added a simple example of reading the card ID from an
144 ISO14443A (Mifare Classic, etc.) card using the PN532
145 ('/tools/examples/sensors/pn532/ISO14443A_ID').
146 - Added an 'lcd' folder to 'tools/examples' showing how to use
147 the generic lcd drawing routines, the touch-screen, etc.
148 - Rewrote part of the touch screen calibration code to get more
149 accurate results. Each point is now tested twice and the
150 results are averaged. Values beyond a certain limit are also
151 rejected to ignore wacky readings.
152 - Added a preliminary PN532 (NFC/RFID) driver. Currently UART
153 only, and only allows simple commands to be sent and received.
154 By default, all data is fed out to the console via printf.
155 Will be elaborated and expanded in future releases.
156 - Cleaned up the ILI9325 TFT LCD driver a bit, adding a proper
157 enum for the commands, etc.
160 v0.8.5 - 7 March 2011
161 =====================
163 - Fixed a problem with GDB script when deploying firmware
164 with Segger J-Link in CodeLite. Code will now deploy
165 and start executing properly when F5 is pressed (assuming
166 the Segger GDB Server software is running in the background).
167 - Interrupts are now disabled while feeding the watchdog as per
168 a warning in the usermanual.
169 - Changed fonts for TTF LCDs. DejaVu Sans 9 is now used by default
170 in the LPC1343 Code Base. The following open source fonts have
171 been converted using The Dot Factory (see '/tools/dotfactory') and
172 can be found in '/drivers/lcd/tft/fonts':
175 ------------------------------- ----------
176 - Bitstream Vera Mono 9 Fixed (8)
177 - Bitstream Vera Mono 9 Bold Fixed (8)
178 - Bitstream Vera Mono 11 Fixed (9)
179 - Bitstream Vera Mono 11 Bold Fixed (9)
180 - DejaVu Sans 9 Variable
181 - DejaVu Sans 9 Bold Variable
182 - DejaVu Sans Condensed 9 Variable
183 - DejaVu Sans Mono 8 Fixed (8)
184 - DejaVu Sans Mono 8 Bold Fixed (8)
186 - Modified projectconfig.h to select the target board and configure
187 the project accordingly. This isn't ideal, but it's a lot more
188 maintainable than have a seperate code base for every board since
189 they share 95% of the same code.
190 - Modified WDT code to use the WDT oscillator (rather than the
192 - Fixed a bug when waking up from sleep in Chibi. Removed systick
193 delay when toggling reset and slptr pins since this was causing
194 a blocking condition with the wakeup ISR.
195 - Added an example of how to retrieve the MCU's unique
196 128-bit serial number using IAP (core/iap)
197 - Added an option to projectconfig.h to select which pin to use for
198 SCK on SSP0, since the QFN33 package doesn't have all the same
200 - Updated Chibi to v0.91 (adds sleep method and promiscuous mode to allow
201 Chibi to act as an 802.15.4 packet sniffer, etc.).
202 - Added lcdProperties_t to lcd.h to indicate the properties of different
203 LCDs (to determine if there is a touch screen present, whether the
204 screen orientation can be changed, etc.)
205 - Added basic ST7735 LCD driver (128x160 pixel TFT LCD using 6-pin
206 SPI-esque interface). Work in progress (no orientation support, etc.).
207 - Added some simple examples in the 'tools/examples' folder.
212 - Added optimised lcdDrawVLine using orientation
213 though this should only be used on lines
214 greate than 20 pixels or so to see any real
216 - Added cmd_uart to allow the HW UART speed
217 to be set in EEPROM (between 9600 and
218 115200). Use the 'U' command.
219 - Updated Crossworks projects files to use
220 custom printf in 'core/libc' (gains about
221 1.3KB in release mode)
222 - Added driver for SSD1306 OLED displays
223 to '/drivers/bitmap/ssd1306'
224 - Changed commands in the CLI to single
225 characters and shortened descriptions
226 to save flash space (~0.7KB)
227 - Updated ILI9325 to allow the screen
228 orientation to be changed to portrait
230 - Added cmd_orientation to change the LCD
231 orientation from the CLI
232 - Fixed a bug in the PMU Wakeup interrupt
234 - Added a circular buffer for outgoing CDC
235 data (cdc_buf.c) since you can only feed one
236 frame per ms (max 64 bytes). The speed needs
237 to be improved finding the right balance
238 between caching data and sending it to the EP,
239 but this should avoid any dropped characters.
240 More testing will be needed to improve this.
241 - Fixed a bug with the USB CDC buffer
242 - Added SILENTMODE to the CLI to disable the
243 command prompt and echo of input characters
244 (see CFG_INTERFACE_SILENTMODE). Useful
245 when another MCU is use the CLI rather than
247 - Added IRQ pin to the CLI to indicate when a
248 command is being processed (pin = low) and
249 when it has completed or a new command can
250 be processed (pin = high).
251 - Added 'cmd_tswait' to wait for a touch event
252 - Removed 'drivers/nfc/pn532' until proper drivers
254 - Added 'cmd_text' and 'cmd_textw' to the CLI to
255 render text on the LCD and get the width in
256 pixels of the specified text before rendering.
261 - Added 'calibrate' and 'gettext' commands to the CLI
262 - Added a dialogue box for the TFT LCD/Touchscreen
263 to input alpha-numeric data and return the
264 results as a string ('drivers/lcd/tft/dialogues/*')
265 - Added touch screen calibration code and UI
266 ('drivers/lcd/tft/touchscreen.c')
267 - Fixed a bug in ILI9325.c to make sure that the LCD
268 is reset during initialisation
269 - ** IMPORTANT ** Changed 'core/i2c/*' to fix a number
270 of bugs (thanks Rob65!) ... though this means all
271 i2c peripherals and drivers will need to be tested.
272 - Added 'colorscheme_t' to drawing.h to try to use a
273 standard color palette across GUI controls and make
274 it easy to change later. Currently only the button
275 and progress bar make use of this.
276 - Added 'lcdBacklightOn()' and 'lcdBacklightOff()' to
278 - Added 'CFG_TFTLCD_TS_THRESHOLD' to projectconfig.h
279 to configure touch-screen sensitivity when waiting
281 - Modified 'core/gpio/gpio.c' to reduce the compiled code
282 size. Repetitive switches where only the registers
283 change were modified to use temporary registers and
284 execute the code only once.
285 - Added the source and binaries for TheDotFactory to
286 'tools/dotfactory' for convenience sake. See:
287 http://www.pavius.net/downloads/tools/53-the-dot-factory
288 - Removed 'drivers/lcd/tft/tscalibration.c' and moved
289 the relevant code to touchscreen.c
290 - Removed the imgconv tool from 'tools/imgconv' (see
291 point below for more information)
292 - Removed the previous custom image code and replaced
293 it with 24-bit Windows bitmap files. This is a bit
294 slower (since 24-bit data needs to be converted to
295 RGB565 for each pixel and rows are rendered bottom
296 up making pixel drawing harder to optimise) but
297 converting and eventually saving images is easier.
298 The current code is functional but needs to be
300 - Made some minor optimisations to the data and cmd
301 functions in the ILI9325 driver. Other functions
302 need to be optimised as well, but these two should
303 be close to optimal now. Currently 25 cycles
304 compiled with -Os, 36 cycles with no optimisation.
305 - Added 'projects/command/drawing/cmd_bmp.c' to load
306 24-bit Windows bitmap images from the SD card and
307 display them on the TFT LCD.
308 - Added some schematics to '/tools/schematics' to
309 show the assumed pin configurations
311 v0.60 - 8 December 2010
312 =======================
314 - Added a number of CLI commands for the TFT LCD
315 (see 'project/commands/drawing')
316 - Modified FCLK_FAST() in 'drivers/fatfs/mmc.c' to set
317 the max speed to 6.0MHz for improved reliability.
318 Tested with a 4GB microSD card, 300KB/s can be read
319 using a 512 byte read buffer.
320 - Modified Chibi to use 16-bit timer 0 for us delays
322 - Added a number of commands to
323 '/projects/commands/drawing' for basic TFT LCD
324 operations. Removed 'lcd-test.c' and 'lcd-fill.c'.
325 - Added a flag to projectconfig.h to make FATFS read-only
326 (to save a couple KB when space is tight).
327 - Moved 'project/eeprom.*' to 'drivers/eeprom' to add a
328 level of abstraction to eeprom access throughout the code
329 - Added a table to projectconfig.h to manage eeprom
330 addresses. First 256 byte of eeprom should be reserved
332 - Added 'drivers/lcd/tft/colors.h' to keep all common
333 16-bit RGB565 color definitions in one location
334 - Added some sample images to 'tools/imgconv' that can
335 be used to render a basic clock on a TFT LCD screen
336 (using drawImageFromFile in 'drivers/lcd/tft/drawing.c')
337 - Modified the makefile to automatically run './lpcrc'
339 - Added drawButton() to 'drivers/lcd/tft/drawing.c'
340 - Updated 'drivers/lcd/tft/touchscreen.c' to do basic
341 debouncing. tsReadZ() was added to detect pressure on
342 the touch screen, and tsWaitForEvent() will only exit
343 when the pressure passes a minimum threshold. (Thanks
344 to Limor for pointing out some code by Rossum for this.)
345 - Fixed some off-by-one pixel errors in cmd-test and
348 v0.51 - 27 November 2010
349 ========================
351 - Added simple RSA encryption/decryption driver. Currently limited to
352 using 64-bit and 32-bit numbers in key pairs, which isn't terribly secure,
353 but allows much smaller code size than if huge number support was included.
354 - Added a driver for the MCP4725 I2C DAC (see "drivers/dac/mcp4725").
355 - Moved 'rom_drivers.h' from 'core/usbhid-rom' to 'core' since it can be used
356 for usbmsd-rom as well if it is implemented at a later date.
357 - ili9325ReadData() added to ili9325.c by Adafruit Industries (thanks!)
358 - Modified FCLK_FAST() in 'drivers/fatfs/mmc.c' to set fast SPI speed
359 to 18MHz instead of the previous 4MHz. This allows for slightly faster
360 rendering of bitmap images from SD cards, amongst other things.
361 - Fixed ILI9325 driver to use 0,0 based pixels and not 1x1, meaning the
362 pixel co-ordinates are 0..239 for X and 0..319 for Y. There may still be
363 some off-by-one pixel issues that need to be further tested.
365 v0.50 - 26 October 2010
366 =======================
368 - Moved command.c and cmd_tbl.h to /project to try to keep all
369 project-specific files in one location to improve code-sharing and make
371 - Created seperate .c files for every command for the command-line interface
372 to make it easier to maintain and share code between projects. All commands
373 listed in cmd_tbl.h are now stored in their own files in /project/commands
374 (ex.: "/project/commands/cmd_hello.c", etc.)
375 - Added a CLI command to demonstrate how to draw to the ILI9325 TFT LCD
376 - Added a CLI command to show the contents of any directory from the SD card
377 (/project/commmands/cmd_sd_dir.c)
378 - Added a CLI command showing how to enter deep-sleep and exit with a SW
379 wakeup (/project/commands/cmd_deepsleep.c). Please note that the wakeup
380 will not work if you are using USB for the CLI. To see the wakeup message,
381 you must use UART for the CLI, which is selected by uncommenting
382 CFG_PRINTF_UART in projectconfig.h
383 - Fixed pmu.c to set the core clock back to an appropriate state after wakeup
384 - Added simple wrapper for eeprom access (projects/eeprom.c)
385 - Reorganised drivers/lcd to take into account non TFT LCD displays.
386 - Added a preliminary (experimental) driver for 128x64 pixel ST7565-based
387 bitmap LCDs (ex: Adafruit Industries - http://bit.ly/9xj5vw) ... based on a
388 driver from Limor Fried at Adafruit
389 - Numerous bug fixes added by Roel Verdult (Linux compatibility, GCC warnings, etc.)
390 - Added stub files for PN532 driver (/drivers/nfc/pn532), and added CFG_PN532 to
391 projectconfig.h as an option
392 - Added a simple pwm example using 16-bit timer 1 and p1.9 (MAT0) for the output. PWM can be used
393 to drive stepper motors, or to dim LEDs by adjusting the duty-cycle, etc. The example can be
395 - Added a bi-polar stepper motor driver based on the Arduino library. Basic position data was added
396 to detece deviation from the 'Home' position and to retrieve the spindle's current angle. See
397 "drivers/motor/stepper" for more information.
398 - Added test firmware for the UART and USBCDC CLI (tools/testfirmware)
399 - Added a table to projectconfig.h to try to keep track of pin and peripherals
400 usage by drivers and the included SW examples.
401 - Reorganised some pins used by drivers to avoid pin conflicts.
402 - Modified core/timer16/timer16.c to allow PWM output to be stopped after a
403 certain number of pulses have been sent out.
407 - The SPI code needs to be modified to allow several SPI devices to be safely
408 connected on the same bus. At present, this has not been tested since the
409 SSP/SPI blocks are used exclusively in the current drivers.