This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $UID -ne 0 ]]; then | |
sudo -p 'Restarting as root, password: ' bash $0 "$@" | |
exit $? | |
fi | |
#read mirrorlist, "Server =" lines, remove all before and including "= " (10 char) | |
readarray -t mirrorArray < <(grep "^Server =" /etc/pacman.d/mirrorlist | cut -c 10-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SH PB3 | |
#define PHI1 PB4 | |
#define PHI2 PB5 | |
#define BT PB6 | |
#define RS PB7 | |
#define OS A0 //A0 | |
int sadc[2048 + 14]; // signal output values read | |
int sdacCounter = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Entry Point */ | |
ENTRY(reset_handler) | |
/* Specify the memory areas */ | |
/* | |
0x08000000 until 0x08010000 is reserved for BOOTLOADER! (64k) | |
*/ | |
MEMORY | |
{ | |
EEPROM (rwx) : ORIGIN = 0x08010000, LENGTH = 64K /*fake EEPROM!*/ |
OlderNewer