Commit Graph

25 Commits

Author SHA1 Message Date
e032c5f0f2 Update .clang-format and apply
Update .clang-format for LLVM 14.0, available on Ubuntu 22.04.

There is still plenty that clang-format sucks at or does wrong, so
either add some more blocks to disable it, or just put up with it.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-01-10 12:02:21 -07:00
b70a09e205 Disable clang-format for sensitive blocks
Things like macro blocks should not be auto-formatted.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-03-22 12:52:47 -06:00
84f9aad7d8 Add force console mode to arduino firmware 2022-02-14 18:55:14 -07:00
99af8a35f5 Use explicitly sized types from stdint
Replace bare int types with stdint types. This was done with:

    grep -rwl 'int' src/ | xargs sed -i 's/\<int\>/int16_t/g'
    grep -rwl 'unsigned long' src/ | xargs sed -i 's/\<unsigned long\>/uint32_t/g'
    grep -rwl 'unsigned char' src/ | xargs sed -i 's/\<unsigned char\>/uint8_t/g'

Then reverted for *main(), putchar(), and getchar().

The Arduino declarations for parallel_main() were also corrected to
match their definitions.

SDCC does *not* generate the same code in all instances, due to `int`
being treated different than `short int`.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-08-02 07:46:44 -06:00
932dbe8e71 mega2560/parallel.c: return immediately when perif cycle not ready 2021-01-05 12:17:16 -07:00
5fd9df0ed0 Add SPDX license identifiers
Add license information to files. Mostly automated with:

    find src/ -name '*.[c,h]' | xargs sed -i '1s,^,// SPDX-License-Identifier: GPL-3.0-only\n\n,'
    find src/ -name '*.mk' | xargs sed -i '1s,^,# SPDX-License-Identifier: GPL-3.0-only\n\n,'
2020-09-17 09:17:08 -06:00
f179052dcb Orientation for use with new adapter 2020-03-16 15:38:23 -06:00
d800af5ed6 Fix unflipped pin mapping 2020-03-14 20:41:40 -06:00
abcc8c00e0 Remove unnecessary sleeps from parallel_transaction 2020-03-14 20:38:52 -06:00
8f3588ef6b Leave parallel pins in HiZ until a command is issued. 2020-03-14 20:05:35 -06:00
abf5c3f20b mega2560: Add pin configuration for IT5570 2020-03-06 11:16:09 -07:00
0f666abb25 mega2560: Implement debug console command
Reconfigure the Mega 2560 as a parallel peripheral device to receive
logs from the EC over the keyboard port and output them to the serial
console.
2020-03-06 11:15:45 -07:00
97eb217650 Add flipped connector for parallel arduino 2020-01-16 14:38:53 -07:00
236d2b5afd Flip pins to match FPC adapter 2020-01-03 15:30:09 -07:00
873be2d664 Add accelerated SPI program, update ecflash 2020-01-03 15:00:20 -07:00
caba9a8ff4 Increase parallel speed 2020-01-03 10:28:24 -07:00
07eb7b7ad4 Cleanup parallel programmer firmware, update ecflash 2020-01-02 20:04:09 -07:00
bd243a0700 Implement multi-byte read and write 2020-01-02 19:47:22 -07:00
0a07213412 Implement ISP programmer firmware 2020-01-02 15:46:33 -07:00
49bde8176f Only drive wait line low in peripheral 2020-01-02 09:12:44 -07:00
e79620989f Implement parallel host and peripheral tests 2020-01-01 19:47:28 -07:00
6c70fa0752 Implement EPP protocol 2020-01-01 14:08:08 -07:00
f220046ce2 Organize parallel example 2019-12-31 22:00:56 -07:00
155a1c62bd Add documentation 2019-12-31 21:59:34 -07:00
3675419ee3 WIP: add parallel port example 2019-12-31 21:59:04 -07:00