Skip to content

Instantly share code, notes, and snippets.

View monpetit's full-sized avatar
💭
I may be slow to respond.

YoungSik Won monpetit

💭
I may be slow to respond.
View GitHub Profile
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "em_device.h"
#include "em_chip.h"
#include "em_usart.h"
#include "em_cmu.h"
#include "em_emu.h"
#include <avr/io.h>
#include <util/delay.h>
#include <avr/wdt.h>
#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/interrupt.h>
// Routines to set and claer bits (used in the sleep code)
#ifndef cbi
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "em_device.h"
#include "em_chip.h"
#include "em_usart.h"
#include "em_cmu.h"
#include "em_emu.h"
#include "em_int.h"
#include <avr/io.h>
#include <util/delay.h>
#include <avr/wdt.h>
#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/interrupt.h>
// Routines to set and claer bits (used in the sleep code)
#ifndef cbi
#include <avr/io.h>
#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/interrupt.h>
#include <Wire.h>
#define PCF8563_ADDR 0x51
#define RTCC_SQW_ADDR 0x0D
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "em_device.h"
#include "em_chip.h"
#include "em_usart.h"
#include "em_cmu.h"
#include "em_emu.h"
#include "em_int.h"
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "em_device.h"
#include "em_chip.h"
#include "em_cmu.h"
#include "em_emu.h"
#include "em_int.h"
#include "em_timer.h"
#include "mbed.h"
#include "LCD_DISCO_F429ZI.h"
#include "TrueRandom.h"
#define MAX(a, b) ((a >= b) ? a : b)
#define MIN(a, b) ((a < b) ? a : b)
#define LCD_WIDTH 240
#define LCD_HEIGHT 320
#include <avr/io.h>
#include <stdio.h>
void usart_putchar(char data);
int usart_putchar_printf(char var, FILE *stream);
static FILE mystdout; /* FDEV_SETUP_STREAM(usart_putchar_printf, NULL, _FDEV_SETUP_WRITE); */
void usart_putchar(char data)
{
@monpetit
monpetit / dot_guile.scm
Created August 4, 2017 04:42
GUILE Scheme: init file
;; -*- mode: scheme -*-
;; vim: set ft=scheme et:
(setlocale LC_ALL "")
(use-modules (ice-9 readline))
(activate-readline)
(let ((%local-lib-path (string-append (getenv "HOME") "/.local/share/guile")))
(set! %load-path (cons %local-lib-path %load-path))