diff options
| author | Selene ToyKeeper | 2023-11-04 16:14:16 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-04 16:14:16 -0600 |
| commit | b118fb6b2689889e93bf3be2f62e4a3d4d50181c (patch) | |
| tree | b4aefbd2f4dcc25a38dd85abca47186c837ab261 /bin/dfp-install.sh | |
| parent | @hank-*-boost: reduced ripple on low modes (diff) | |
| download | anduril-b118fb6b2689889e93bf3be2f62e4a3d4d50181c.tar.gz anduril-b118fb6b2689889e93bf3be2f62e4a3d4d50181c.tar.bz2 anduril-b118fb6b2689889e93bf3be2f62e4a3d4d50181c.zip | |
improved DFP setup and support:
- `./make dfp` downloads and installs Atmel DFPs for each supported MCU
- build.sh detects and uses attiny or avrdd, and others are simple to add
- updated setup info in /README.md
... also some other small documentation updates.
Diffstat (limited to '')
| -rwxr-xr-x | bin/dfp-install.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/dfp-install.sh b/bin/dfp-install.sh new file mode 100755 index 0000000..a73c4d5 --- /dev/null +++ b/bin/dfp-install.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# Atmel DFP download/install/setup script +# Copyright (C) 2023 Selene ToyKeeper +# SPDX-License-Identifier: GPL-3.0-or-later + +set -e + +V_ATTINY='2.0.368' +V_AVRDD='2.2.253' +F_ATTINY="Atmel.ATtiny_DFP.${V_ATTINY}.atpack" +F_AVRDD="Atmel.AVR-Dx_DFP.${V_AVRDD}.atpack" + +cd arch + +# make the base DFP dir +mkdir -p dfp +cd dfp + +# download the zipped pack files if they don't exist yet +mkdir -p zip +cd zip +[ ! -f "${F_ATTINY}" ] && wget "http://packs.download.atmel.com/${F_ATTINY}" +[ ! -f "${F_AVRDD}" ] && wget "http://packs.download.atmel.com/${F_AVRDD}" + +# extract the packs +# attiny +cd .. +mkdir -p attiny +cd attiny +unzip "../zip/${F_ATTINY}" +# avrdd +cd .. +mkdir -p avrdd +cd avrdd +unzip "../zip/${F_AVRDD}" + |
