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
/* | |
* pcmplayer.c - play the apple startup sound | |
* | |
* P1.2 - pwm output should be run through low pass filter. | |
* | |
* Like this one: | |
* | |
* http://www.arduino.cc/playground/Code/PCMAudio | |
*/ |
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
//----------------------------------------------------------------------------- | |
// SPI.h - common function declarations for different SPI implementations | |
//----------------------------------------------------------------------------- | |
#ifndef SPI_H_ | |
#define SPI_H_ | |
/** | |
* SMCLK divider arguments for spi_set_divisor | |
* assumes 16MHz SMCLK. You need to change if you | |
* use a different frequency |
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
/* | |
* main.c | |
* | |
* MSP-EXP430G2-LaunchPad User Experience Application | |
* | |
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ | |
* | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions |
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
/* | |
* | |
* File : 910.c | |
* Author : Minifloat | |
* Project: Launchprog | |
* Version: 1.2 on 10 May 2012 | |
* | |
*/ | |
#include <msp430.h> |
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
/* | |
* main.c | |
*/ | |
#include "inc\hw_types.h" | |
#include "inc\hw_memmap.h" | |
#include "driverlib\pin_map.h" | |
#include "inc\lm4f120h5qr.h" | |
#include "driverlib\sysctl.h" | |
#include "driverlib\ssi.h" | |
#include "driverlib\gpio.h" |
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
/* | |
* main.c - really simple USCI hardware UART code | |
*/ | |
#include <msp430.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#if !defined(__MSP430_HAS_USCI__) | |
#error "This code written for the msp430g2553" |
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
$ diff linux/work/hardware/lm4f/cores/lm4f/startup_gcc.c ../hardware/lm4f/cores/lm4f/startup_gcc.c | |
71d70 | |
< __attribute__((weak)) extern void Timer0IntHandler(void) {} | |
123c122 | |
< Timer0IntHandler, // Timer 0 subtimer A | |
--- | |
> IntDefaultHandler, // Timer 0 subtimer A | |
$ |
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
uint32_t max31855::memory_read(void) | |
{ | |
uint32_t mask = 0x80000000; | |
uint32_t data = 0; | |
digitalWrite(_cs,LOW); | |
do { | |
digitalWrite(_sclk, HIGH); | |
if (digitalRead(_so)) { | |
data |= mask; |
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
/* | |
* lp_logo - nokia 5110 style bitmap | |
* | |
* Generated by xbmto5110 on Feb 3 2013 14:19:20 | |
* Note: visualize the '1' and '0's rotated 90 degrees counterclockwise | |
*/ | |
static const unsigned char lp_logo[] = { | |
/* width, height/8 */ | |
56,48/8, |
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
/* | |
* aciitable - example of using the blocking sw_serial_t template | |
*/ | |
#include "streaming.h" /* pull in insertion operator overloads */ | |
#include "sw_serial.h" | |
// typedefs for software only rx/tx using software pin settings * J3 default jumper settings | |
// this is a good setting for the g2452 and g2231 | |
sw_serial_t<9600, SS_P1_2, SS_NO_PIN> swserial; // HW jumper version TX=P1.2, RX=NOT CONNECTED |