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