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