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