Arduino-Atmega2560: Updates from review of merge plus name changes to be consistent with the new conventions that I am trying to establish

This commit is contained in:
Gregory Nutt 2015-12-29 12:36:59 -06:00
parent 321d8f1441
commit 9bde162fd6
6 changed files with 22 additions and 24 deletions

View File

@ -20,4 +20,3 @@ http://www.atmel.com/tools/atmelavrtoolchainforwindows.aspx
It is basically WinAVR compatible so sub-projects may define WinAVR as a
tool-chain but specify path to the Atmel AVR8 in path. See
arduino-mega2560/hello for example.

View File

@ -1,8 +1,7 @@
/****************************************************************************
* configs/arduino-mega2560/include/board.h
* include/arch/board/board.h
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without

View File

@ -1,7 +1,7 @@
############################################################################
# configs/arduino-mega2560/src/Makefile
#
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@ -36,10 +36,10 @@
-include $(TOPDIR)/Make.defs
ASRCS =
CSRCS = up_boot.c
CSRCS = avr_boot.c
ifeq ($(CONFIG_ARCH_LEDS),y)
CSRCS += up_leds.c
CSRCS += avr_leds.c
endif
AOBJS = $(ASRCS:.S=$(OBJEXT))

View File

@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __CONFIGS_ARDUINO_MEGA2560_SRC_ARDUINO_MEGA2560_INTERNAL_H
#define __CONFIGS_ARDUINO_MEGA2560_SRC_ARDUINO_MEGA2560_INTERNAL_H
#ifndef __CONFIGS_ARDUINO_MEGA2560_SRC_ARDUINO_MEGA2560_H
#define __CONFIGS_ARDUINO_MEGA2560_SRC_ARDUINO_MEGA2560_H
/****************************************************************************
* Included Files
@ -74,4 +74,4 @@ void atmega_led_initialize(void);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_ARDUINO_MEGA2560_SRC_ARDUINO_MEGA2560_INTERNAL_H */
#endif /* __CONFIGS_ARDUINO_MEGA2560_SRC_ARDUINO_MEGA2560_H */

View File

@ -1,7 +1,7 @@
/******************************************************************************
* configs/arduino-mega2560/src/up_boot.c
* configs/arduino-mega2560/src/avr_boot.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -47,7 +47,7 @@
#include "up_internal.h"
#include "atmega_internal.h"
#include "arduino_mega2560_internal.h"
#include "arduino_mega2560.h"
/******************************************************************************
* Definitions
@ -80,4 +80,3 @@ void atmega_boardinitialize(void)
atmega_led_initialize();
#endif
}

View File

@ -1,7 +1,7 @@
/******************************************************************************
* configs/arduino-mega2560/src/up_boot.c
* configs/arduino-mega2560/src/avr_leds.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -47,7 +47,7 @@
#include "up_internal.h"
#include "atmega2560_internal.h"
#include "arduino_mega2560_internal.h"
#include "arduino_mega2560.h"
/****************************************************************************
* Name: board_autoled_initialize
@ -73,4 +73,5 @@ void board_autoled_on(int led)
void board_autoled_off(int led)
{
}
#endoif
#endif /* CONFIG_ARCH_LEDS */