os.h 980 Bytes
Newer Older
prp1u19's avatar
prp1u19 committed
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
40
41
/* FortunaOS
   _____             _                          ___   ____
  |  ___|___   _ __ | |_  _   _  _ __    __ _  / _ \ / ___|
  | |_  / _ \ | '__|| __|| | | || '_ \  / _` || | | |\___ \
  |  _|| (_) || |   | |_ | |_| || | | || (_| || |_| | ___) |
  |_|   \___/ |_|    \__| \__,_||_| |_| \__,_| \___/ |____/

  Minimalist Operating System for LaFortuna board, build on:
    - The RIOS Scheduler
    - Peter Dannegger’s Code for the Rotary Encoder
    - Peter Dannegger’s Code for Switch debouncing
    - Steve Gunn’s display driver
    - ChanN’s FAT File System

  Occupies Timer T0 for scheduling and LED brightness.

*/

#ifndef OS_H
#define OS_H

#include <stdio.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "lcd.h"
#include "rios.h"
#include "ruota.h"
#include "ff.h"



#define LED_ON      PORTB |=  _BV(PINB7)
#define LED_OFF     PORTB &= ~_BV(PINB7)
#define LED_TOGGLE  PINB  |=  _BV(PINB7)


FATFS FatFs;

void os_init(void);

#endif /* OS_H */