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 <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" |
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 <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 |
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 <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" |
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 <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 |
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 <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 |
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 <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" |
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 <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" |
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 "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 | |
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 <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) | |
| { |
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
| ;; -*- 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)) |