Racket driver for PICkit2 v2.

This project is a Staapl[3] spin-off.  It interfaces the PK2[1]
programmer to the Racket programming language[2].

The PK2 v2 firmware contains a collection of communication primitives
that implement the basic Microchip ICD protocol, and provides a simple
scripting engine on top to tailor programming algorithms to different

My ultimate goal is to use the PK2 together with the Staapl framework
as a programmer and debugger.

Old information is scattered around the Staapl dev log [4].

[1] http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023805
[2] http://racket-lang.org
[3] entry://../staapl-blog/
[4] entry://../staapl/

20110328 Bi-directional point-to-point link
Try to use only 2 wires.
I2C or SPI?
20110327 Busy
Read PGD
20110326 Read a packet
Send out a data packet using standard PIC protocol.
FFI changes
20110321 Previous work
The plan
20110301 Picking back up
20090308 tried to re-integrate with staapl
20090215 next