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 | |
# GitHub SSH Key Updater | |
# --------------------- | |
# SECURITY WARNING: This script grants SSH access to your machine! | |
# Only add keys from GitHub users you absolutely trust with full SSH access to your system. | |
# Each added public key will allow that user to log into your machine via SSH. | |
# | |
# Purpose: | |
# Fetches and merges public SSH keys from a GitHub user into your ~/.ssh/authorized_keys file, |
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
USART: | |
//BRR = (Pclk + (BaudRate / 2)) / BaudRate | |
static uint16_t calc_brr(uint32_t Pclk, uint32_t BaudRate) | |
{ | |
uint16_t brr = (Pclk + (BaudRate / 2)) / BaudRate; | |
return brr; | |
} |