- Download ATmega's support pack from Microchip's website
- Unzip the relevant files
unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \
unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \
The following are instructions for building a GCC cross-compiler for the MSP430. They are based in part on Peter Bigot's post to mspgcc-users and the gist this was forked from.
export PREFIX=/usr/local/msp430
Let's say the plugin is at a GitHub URL https://github.com/manasthakur/foo.
First get the plugin by either cloning it (git clone https://github.com/manasthakur.foo.git) or simply downloading it as a zip (from its GitHub page).
Adding a plugin in Vim is equivalent to adding the plugin's code properly into its runtimepath (includes the $HOME/.vim directory by default).
For example, if the layout of a plugin foo is as follows:
foo/autoload/foo.vim
foo/plugin/foo.vim
| #!/bin/sh | |
| # POSIX | |
| # Reset all variables that might be set | |
| file= | |
| verbose=0 # Variables to be evaluated as shell arithmetic should be initialized to a default or validated beforehand. | |
| while :; do | |
| case $1 in | |
| -h|-\?|--help) # Call a "show_help" function to display a synopsis, then exit. |
| # -------- | |
| # Hardware | |
| # -------- | |
| # Opcode - operational code | |
| # Assebly mnemonic - abbreviation for an operation | |
| # Instruction Code Format (IA-32) | |
| # - Optional instruction prefix | |
| # - Operational code |
| /* | |
| * A simple libpng example program | |
| * http://zarb.org/~gc/html/libpng.html | |
| * | |
| * Modified by Yoshimasa Niwa to make it much simpler | |
| * and support all defined color_type. | |
| * | |
| * To build, use the next instruction on OS X. | |
| * $ brew install libpng | |
| * $ clang -lz -lpng16 libpng_test.c |
| Large Object Motions: | |
| ( | |
| ) | |
| { | |
| } | |
| [[ | |
| [] | |
| ][ | |
| ]] | |
| [m |
| # Thanks to @danger89 and @Ilothar for updating the gist. | |
| # Set the name and the supported language of the project | |
| project(hello-world C CXX) | |
| # Set the minimum version of cmake required to build this project | |
| cmake_minimum_required(VERSION 3.10) | |
| # Use the package PkgConfig to detect GTK+ headers/library files | |
| find_package(PkgConfig REQUIRED) | |
| pkg_check_modules(GTK REQUIRED gtkmm-3.0) |
| /* vi:set ts=8 sts=4 sw=4: */ | |
| /* | |
| * strtod implementation. | |
| * author: Yasuhiro Matsumoto | |
| * license: public domain | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <math.h> |