summaryrefslogtreecommitdiff
path: root/cesar/tools/sniffer_phy/src/sniffer_phy.c
blob: da1c9b390a448a9b369eff3780bd1489a21e71ec (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
/* Cesar project {{{
 *
 * Copyright (C) 2010 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    src/sniffer_phy.c
 * \brief   Sniffer entry point.
 * \ingroup sniffer_phy
 */
#include "common/std.h"

#include "lib/trace.h"
#include "hal/arch/arch.h"

#include "inc/context.h"

/** Global Sniffer Phy context. */
static sniffer_phy_t ARCH_DLRAM_BSS sniffer_phy_global;

/**
 * Initialise sniffer.
 * \param  ctx  sniffer context
 */
static void
sniffer_phy_init (sniffer_phy_t *ctx)
{
    mme_init (ctx);
    lhle_init (ctx);
    lowlevel_init (ctx);
}

/** Entry point. */
void
cyg_user_start (void)
{
    trace_init ();
    sniffer_phy_init (&sniffer_phy_global);
}