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