aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr/main.c
blob: 4a3f871a9c99b9741b735de66f60aa4b6e104441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Main starting point for AVR boards.
//
// Copyright (C) 2016  Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU GPLv3 license.

#include "autoconf.h" // CONFIG_MCU
#include "command.h" // DECL_CONSTANT
#include "irq.h" // irq_enable
#include "sched.h" // sched_main

DECL_CONSTANT(MCU, CONFIG_MCU);

// Main entry point for avr code.
int
main(void)
{
    irq_enable();
    sched_main();
    return 0;
}