Skip to content

Commit

Permalink
Target attiny85 to ensure code remains lean
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Jan 10, 2023
1 parent e1d535e commit c221d79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
gcc --std=c90 -pedantic -c -Wall -Werror -fpic -o src/secplus.o src/secplus.c
gcc --std=c90 -pedantic -shared -o libsecplus.so src/secplus.o
- name: Compile C library for AVR
run: avr-gcc -mmcu=atmega328 -Os -Wall -Werror -o test/avr_test.elf src/secplus.c test/avr_test.c
run: avr-gcc -mmcu=attiny85 -Os -Wall -Werror -o test/avr_test.elf src/secplus.c test/avr_test.c
- name: Test
env:
TEST_CYCLES: 50000
Expand Down
2 changes: 1 addition & 1 deletion test_secplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def decode_wireline(code):


def substitute_avr():
sim = subprocess.Popen(["simulavr", "-d", "atmega328", "-f", "test/avr_test.elf", "-W", "0x20,-", "-R", "0x22,-", "-T", "exit"],
sim = subprocess.Popen(["simulavr", "-d", "attiny85", "-f", "test/avr_test.elf", "-W", "0x20,-", "-R", "0x22,-", "-T", "exit"],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

def encode(rolling, fixed):
Expand Down

0 comments on commit c221d79

Please sign in to comment.