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