Timer cleanup
by chrisy 5 years 9 months
Timer cleanup

* Rework some of the timer management. This started as an exercise in reducing
compiler warnings at the highest setting (though that proved fruitless when it
came to type size reduction to __bit values). Instead ended up breaking out some
of the timer management macros for better control of what is going on. Still a
slight inconsistency between Timer0 and Timer1, but nothing egregious.
3cea3237
Workaround for potential compiler bug
by chrisy 5 years 9 months
Workaround for potential compiler bug

* The ctypes macros for detecting ASCII character class seem to confuse the
compiler into not generating code for them. By undefining the 'isprint'
macro we fall-through to the stdlib implementation instead.
45b0032d
Relay reporting after button presses and timer exp...
by chrisy 5 years 9 months
Relay reporting after button presses and timer expiration

* Use a flag to signal relay reporting to the UARTS
* Report after button presses have been executed
* Report when relays turn off at timer expiration
be75d45c
Add a simple clock diagnostic
by chrisy 5 years 9 months
Add a simple clock diagnostic

* Dump various system clock statuses
* Adds a way to use stdlib stdio on UART 1
18876e6d
Rework the PIC configuration to use keywords
by chrisy 5 years 9 months
Rework the PIC configuration to use keywords

* Turns out keywords can be used for PIC configuration values, and the IDE
config tool will tell you what these words are; shame they're not in the
datasheet, really.
a50a9c01
Update gerbers; minor layout tweaks
by chrisy 5 years 9 months
Update gerbers; minor layout tweaks

* Add ICSP text next to ISCP header
* Better spacing around channel 2 button traces
* Update 3d preview, gerbers and board PDF
eef2d3aa
Fix channel 2 button reversal
by chrisy 5 years 9 months
Fix channel 2 button reversal

* The hierarchical schematic pins for channel 2 buttons were reversed in the
root schematic. Correct this, and add board revision logic to the firmware so
board versions can be targeted by the build.
e8f61cc9
Serial protocol tweaks
by chrisy 5 years 9 months
Serial protocol tweaks

* Add serial reports, to both UARTs, whenever button presses result in
action
* Ignore all non-printable characters received
e1aade2c
Channel 2 buttons are reversed; fix in code
by chrisy 5 years 9 months
68918c64
Minor cleanup to layout
by chrisy 5 years 9 months
86c201cd
Report a bug