Skip to content

Commit

Permalink
Removed all references to a specific MCU in "generic" files
Browse files Browse the repository at this point in the history
Inclusion of generic <msp430.h> file is done in cpu.h
  • Loading branch information
rousselk committed Dec 18, 2013
1 parent 41da848 commit 6428daf
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 31 deletions.
6 changes: 1 addition & 5 deletions cpu/msp430-common/cpu.c
Expand Up @@ -9,11 +9,7 @@ This file is part of RIOT.
This file is subject to the terms and conditions of the LGPLv2.
See the file LICENSE in the top level directory for more details.
*******************************************************************************/
#ifdef CC430
#include <cc430f6137.h>
#else
#include <msp430x16x.h>
#endif

#include "cpu.h"
#include "kernel.h"
#include "kernel_internal.h"
Expand Down
7 changes: 5 additions & 2 deletions cpu/msp430-common/flashrom.c
@@ -1,7 +1,10 @@
#include <stddef.h>
#include <stdint.h>
#include <msp430x16x.h>
#include <irq.h>

#include "board.h"
#include <msp430.h>

#include "irq.h"

uint8_t ie1, ie2;

Expand Down
10 changes: 7 additions & 3 deletions cpu/msp430-common/include/cpu.h
Expand Up @@ -24,11 +24,15 @@ See the file LICENSE in the top level directory for more details.
* @{
*/

#include <sched.h>
#include <stdio.h>
#include <legacymsp430.h>
#include <msp430_types.h>
#include <cpu-conf.h>

#include "board.h"
#include <msp430.h>

#include "sched.h"
#include "msp430_types.h"
#include "cpu-conf.h"

#define WORDSIZE 16

Expand Down
10 changes: 2 additions & 8 deletions cpu/msp430-common/include/hwtimer_cpu.h
Expand Up @@ -13,16 +13,10 @@ See the file LICENSE in the top level directory for more details.
#ifndef __HWTIMER_CPU_H
#define __HWTIMER_CPU_H

#include "cpu.h"

#ifdef CC430
#include <cc430f6137.h>
#else
#include <msp430x16x.h>
#endif
#include <cpu.h>
#include <stdint.h>

#include "cpu.h"

#ifdef __MSP430_HAS_TA2__
#define ARCH_MAXTIMERS 2
#endif
Expand Down
9 changes: 2 additions & 7 deletions cpu/msp430-common/irq.c
@@ -1,10 +1,5 @@
#include <irq.h>
#ifdef CC430
#include <cc430f6137.h>
#else
#include <msp430x16x.h>
#endif
#include <cpu.h>
#include "irq.h"
#include "cpu.h"

unsigned int disableIRQ()
{
Expand Down
6 changes: 0 additions & 6 deletions cpu/msp430-common/msp430-main.c
Expand Up @@ -34,12 +34,6 @@
*/

#include "cpu.h"
#ifdef CC430
#include <cc430f6137.h>
#else
#include <msp430x16x.h>
#endif


/*---------------------------------------------------------------------------*/
static void
Expand Down

0 comments on commit 6428daf

Please sign in to comment.