This file contains hidden or 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
// Working example of 25 MHz SPI on Intel Edison using DMA | |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/sched.h> | |
#include <linux/init.h> | |
#include <linux/kthread.h> | |
#include <linux/spi/spi.h> | |
#include <linux/interrupt.h> | |
#define BUF_SIZE 4096 |
This file contains hidden or 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
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/sched.h> | |
#include <linux/init.h> | |
#include <linux/kthread.h> | |
#include <linux/spi/spi.h> | |
struct task_struct* worker; | |
static struct spi_device* spi_dev = NULL; | |
#define BUF_SIZE 512 |
This file contains hidden or 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
#!/usr/bin/env python | |
# Copyright 2015 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
import json | |
import sys | |
def main(): |
This file contains hidden or 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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../paper-slider/paper-slider.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="home-automation"> | |
<template> | |
<style> | |
:host { |
NewerOlder