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