summaryrefslogtreecommitdiff
path: root/firmware/inc/setup.h
blob: e01bcd3c7807e5514429f64e202086a04872d0fe (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
32
33
34
35
36
37
38
39
/**
 * 
 * Author: Dylan Muller
 * Copyright (c) 2025 
 * All rights reserved.
 * 
 * - Commercial/IP use prohibited.
 * - Attribution required.
 * See License.txt
 *
 */

/* Global Peripheral Configuration*/

#define __AVR_ATmega328__

#define F_CPU 8000000UL

#define BAUD 19200
#define UART_BUF_SIZE 25
#define UART_OVERWRITE

#define TWI_FREQUENCY 350000
#define TWI_PRESCALER 1
#define TWPS0_VALUE 0
#define TWPS1_VALUE 0

#define SPI_FREQUENCY 500000
#define SPI_PRESCALER 16
#define SPR0_VALUE 1
#define SPR1_VALUE 0
#define SPI2X_VALUE 0
#define SPI_MODE 0
#define SPI_DORD 0

#define TRANSACT_DELAY_MS 5
#define INIT_DELAY_MS 10

#define SYS_VER_STR "1.01.5"