summaryrefslogtreecommitdiffstats
path: root/init.hpp
blob: 59ed45543958e6a9a0f7fa7a4c9e225d86bc78c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __INIT_H__
#define __INIT_H__

// To modify the I2C port used, change the `#define I2C_PORT` in "oled/BitBang_I2C.c"
// Pin numbers are GPIO pins.
#define SDA_PIN 6
#define SCL_PIN 7
#define RESET_PIN -1
#define OLED_DEFAULT_CONTRAST 40

// Initial date & time
// The idea is to have the compiler set the date at compile-time.
// DOTW: 0 is Sunday
#define INIT_DATETIME_YEAR 2020
#define INIT_DATETIME_MONTH 06
#define INIT_DATETIME_DAY 05
#define INIT_DATETIME_DOTW 5
#define INIT_DATETIME_HOUR 15
#define INIT_DATETIME_MIN 45
#define INIT_DATETIME_SEC 00

// Time (ms) before entering sleep
#define ENTER_SLEEP_DELAY 10000


// Init every componement
void init_all();
// Init onboard RTC
void init_rtc();

#endif
; git --git-dir="$PWD/repos/foo/.git" diff-tree -p --no-commit-id --root "$root" >tmp2 && sed "1,4d" tmp >tmp_ && cmp tmp_ tmp2 ' test_expect_success 'generate diff for multiple commits' ' id=$(git --git-dir="$PWD/repos/foo/.git" rev-parse HEAD) && id2=$(git --git-dir="$PWD/repos/foo/.git" rev-parse HEAD~3) && cgit_query "url=foo/rawdiff&id=$id&id2=$id2" >tmp ' test_expect_success 'compare with output of git-diff(1)' ' git --git-dir="$PWD/repos/foo/.git" diff HEAD~3..HEAD >tmp2 && sed "1,4d" tmp >tmp_ && cmp tmp_ tmp2 ' test_done