aboutsummaryrefslogtreecommitdiffstats
path: root/BuildTests/ModuleTest/Modules.h
blob: 6f50a996c82f6aacbaee373ffa17d5cdbaec9fa7 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
             LUFA Library
     Copyright (C) Dean Camera, 2012.

  dean [at] fourwalledcubicle [dot] com
           www.lufa-lib.org
*/

/*
  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)

  Permission to use, copy, modify, distribute, and sell this
  software and its documentation for any purpose is hereby granted
  without fee, provided that the above copyright notice appear in
  all copies and that both that the copyright notice and this
  permission notice and warranty disclaimer appear in supporting
  documentation, and that the name of the author not be used in
  advertising or publicity pertaining to distribution of the
  software without specific, written prior permission.

  The author disclaim all warranties with regard to this
  software, including all implied warranties of merchantability
  and fitness.  In no event shall the author be liable for any
  special, indirect or consequential damages or any damages
  whatsoever resulting from loss of use, data or profits, whether
  in an action of contract, negligence or other tortious action,
  arising out of or in connection with the use or performance of
  this software.
*/

#include <LUFA/Common/Common.h>

#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Misc/RingBuffer.h>
#include <LUFA/Drivers/Misc/TerminalCodes.h>

#if (ARCH == ARCH_AVR8)
	#include <LUFA/Drivers/Peripheral/Serial.h>
	#include <LUFA/Drivers/Peripheral/TWI.h>
	#include <LUFA/Drivers/Peripheral/ADC.h>
	#include <LUFA/Drivers/Peripheral/SPI.h>
	#include <LUFA/Drivers/Peripheral/SerialSPI.h>
#elif (ARCH == ARCH_XMEGA)
	#include <LUFA/Drivers/Peripheral/Serial.h>
	#include <LUFA/Drivers/Peripheral/SPI.h>
	#include <LUFA/Drivers/Peripheral/SerialSPI.h>
	
	#include <LUFA/Platform/XMEGA/ClockManagement.h>
#elif (ARCH == ARCH_UC3)
	#include <LUFA/Platform/UC3/ClockManagement.h>
	#include <LUFA/Platform/UC3/InterruptManagement.h>
#endif
class="k">static int null_dump_stats(u8 *buf, u16 buf_size) { /* no stats for NULL policy */ return 0; } static int null_dump_ssid_types(ssidref_t ssidref, u8 *buffer, u16 buf_size) { /* no types */ return 0; } /* now define the hook structure similarly to LSM */ struct acm_operations acm_null_ops = { .init_domain_ssid = null_init_domain_ssid, .free_domain_ssid = null_free_domain_ssid, .dump_binary_policy = null_dump_binary_policy, .set_binary_policy = null_set_binary_policy, .dump_statistics = null_dump_stats, .dump_ssid_types = null_dump_ssid_types, /* domain management control hooks */ .pre_domain_create = NULL, .post_domain_create = NULL, .fail_domain_create = NULL, .post_domain_destroy = NULL, /* event channel control hooks */ .pre_eventchannel_unbound = NULL, .fail_eventchannel_unbound = NULL, .pre_eventchannel_interdomain = NULL, .fail_eventchannel_interdomain = NULL, /* grant table control hooks */ .pre_grant_map_ref = NULL, .fail_grant_map_ref = NULL, .pre_grant_setup = NULL, .fail_grant_setup = NULL }; /* * Local variables: * mode: C * c-set-style: "BSD" * c-basic-offset: 4 * tab-width: 4 * indent-tabs-mode: nil * End: */