Root/atusb/fw/flash.c

Source at commit 1dcc83391e51890c76fc8e11aeb24300a99412a2 created 9 years 5 months ago.
By Werner Almesberger, atusb/fw/Makefile: put -mmcu into CFLAGS so that DEPEND uses it, too
1/*
2 * fw/flash.c - Board-specific flash functions
3 *
4 * Written 2011 by Werner Almesberger
5 * Copyright 2011 Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13
14#include <stdint.h>
15
16#include <avr/io.h>
17#include <avr/interrupt.h>
18
19#define F_CPU 8000000UL
20#include <util/delay.h>
21
22#include "dfu.h"
23#include "board.h"
24
25
26
27void flash_start(void)
28{
29}
30
31
32int flash_can_write(uint16_t size)
33{
34    return 0;
35}
36
37
38void flash_write(const uint8_t *buf, uint16_t size)
39{
40}
41
42
43uint16_t flash_read(uint8_t *buf, uint16_t size)
44{
45    return 0;
46}
47

Archive Download this file



interactive