Commit Graph

15 Commits

Author SHA1 Message Date
A.M. Rowsell b0735b0ba4 Fixed some filenames, added test code for writing to DAC 2020-10-06 23:53:54 -04:00
AMRowsell 1eb171f3ae Added links to license files. Need to update the licenses image to reflect CERN OHL2.0 2020-10-06 16:32:25 +00:00
AMRowsell 416a4eb68c Added newlines to make copyright section easier to read 2020-10-06 16:28:12 +00:00
AMRowsell 18ea90025a Smaller image, trying to align the text properly so it doesn't wrap 2020-10-06 16:27:42 +00:00
A.M. Rowsell ef33f928cf
Added README to explain this mess of a project :-) 2020-10-06 12:23:13 -04:00
A.M. Rowsell f8eab9ebd9
Renamed .h files, formatted all code with astyle -A14
I now have a post-build step which formats all the code using
astyle -n -z2 -Z -A14 *.hpp *.cpp
The options are to preserve the dates of each file, force the
Linux line endings, and format the files directly omitting the
creation of the .orig file. The -A14 is "Google" style which
happens to be the style I've always personally used, which is
handy.
2020-10-06 12:01:34 -04:00
A.M. Rowsell d9b5b15b96
Added the scripts used for combining the audio files and flashing
The makebin.sh script takes all the .wav files in a directory,
resamples them to 8kHz, 8-bit unsigned integer RAW files. It then
concatenates these all together, while creating a text listing of
how long each clip is and the start position for that clip. It also
spits out some useful C code that does require some modification
before being pasted into the code, but makes things much easier
for fast prototyping.

The programFlash.py script connects to the chip over UART, sends it
64 bytes at a time to program into the flash chip, and repeats this
until all the data has been transferred. This mechanism does seem
to work, the only part that needs to be tested still is the SPI
connection to the flash chip.
2020-10-06 11:39:43 -04:00
A.M. Rowsell 28cacf7258
Huge update which finally got interrupts working, plus more
Interrupts finally solved, bloody confusing literature.
All the pins *should* be set up correctly now. Next step is to
test SPI (and possibly split SPI out into its own class). The DAC
update function may eventually be put in a DAC class if there are
other related functions that need to be associated.
2020-10-06 11:36:13 -04:00
A.M. Rowsell 399e55b5e8
Separated out UART into its own class.
This was staged interactively, and so a few other minor
changes that happened subsequently got staged as well.
2020-10-06 11:35:16 -04:00
A.M. Rowsell 57e462ac98 Merge branch 'master' of gitlab.com:MrAureliusR/rotl_quotes into master 2020-10-01 17:24:12 -04:00
A.M. Rowsell 981780c643
All fixed now, I believe 2020-10-01 17:22:10 -04:00
A.M. Rowsell e23b89e122
Converted everything to C++, added Flash and FIFO class files 2020-10-01 17:20:20 -04:00
AMRowsell dcf5147be4 Add LICENSE 2020-10-01 20:56:00 +00:00
A.M. Rowsell 3b0424306b
Mostly finished converting to PIC32 registers
Haven't tested on-chip yet, but I think things look correct,
so I will wire it up and begin testing soon.

Eventually this will be merged back into master.
2020-10-01 16:51:21 -04:00
A.M. Rowsell 0a5be6b7fa Initial commit of project. 2020-09-30 12:58:55 -04:00