Skip to content

Commit

Permalink
#374 Added CortexM4 makefile info and dir struct
Browse files Browse the repository at this point in the history
  • Loading branch information
jcecconi committed Jan 8, 2016
1 parent 5c93b0e commit f0de0ed
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 2 deletions.
87 changes: 87 additions & 0 deletions modules/hisio/inc/cortexM4/lpc43xx/lpc4337/Dio_Arch.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/* Copyright 2015, Mariano Cerdeiro
* Copyright 2016, Juan Cecconi
* All rights reserved.
*
* This file is part of CIAA Firmware.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/

#ifndef DIO_ARCH_H
#define DIO_ARCH_H
/** \brief Dio Architecture Drivers header file
**
** This file contains is the Dio Architecture dependend Drivers header file.
**
**/

/** \addtogroup CIAA_Firmware CIAA Firmware
** @{ */
/** \addtogroup HISIO HisIO Module
** @{ */

/*
* Initials Name
* ---------------------------
* MaCe Mariano Cerdeiro
* JuCe Juan Cecconi
*/

/*
* modification history (new versions first)
* -----------------------------------------------------------
* 20160107 v0.0.1 JuCe initial version
*/

/*==================[inclusions]=============================================*/

/*==================[cplusplus]==============================================*/
#ifdef __cplusplus
extern "C" {
#endif

/*==================[macros]=================================================*/
#define Dio_SetSync_Arch

#define Dio_GetSync_Arch

/*==================[typedef]================================================*/

/*==================[external data declaration]==============================*/

/*==================[external functions declaration]=========================*/

/*==================[cplusplus]==============================================*/
#ifdef __cplusplus
}
#endif
/** @} doxygen end group definition */
/** @} doxygen end group definition */
/*==================[end of file]============================================*/
#endif /* #ifndef DIO_ARCH_H */

10 changes: 8 additions & 2 deletions modules/hisio/mak/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ hisio_PATH = $(ROOT_DIR)$(DS)modules$(DS)hisio
# library source path
hisio_SRC_PATH = $(hisio_PATH)$(DS)src
# library include path
hisio_INC_PATH = $(hisio_PATH)$(DS)inc \
$(hisio_PATH)$(DS)inc$(DS)$(ARCH) \
hisio_INC_PATH = $(hisio_PATH)$(DS)inc \
$(hisio_PATH)$(DS)inc$(DS)$(ARCH) \
$(hisio_PATH)$(DS)inc$(DS)$(ARCH)$(DS)$(CPUTYPE)$(DS) \
$(hisio_PATH)$(DS)inc$(DS)$(ARCH)$(DS)$(CPUTYPE)$(DS)$(CPU)$(DS) \
out$(DS)gen$(DS)inc

# library source files
hisio_SRC_FILES = $(wildcard $(hisio_SRC_PATH)$(DS)*.c)
hisio_SRC_FILES += $(wildcard $(hisio_PATH)$(DS)$(ARCH)$(DS)src$(DS)*.c)
hisio_SRC_FILES += $(wildcard $(hisio_PATH)$(DS)$(ARCH)$(DS)$(CPUTYPE)$(DS)src$(DS)*.c)
hisio_SRC_FILES += $(wildcard $(hisio_PATH)$(DS)$(ARCH)$(DS)$(CPUTYPE)$(DS)$(CPU)$(DS)src$(DS)*.c)

# files to be generated
# TODO see https://github.com/ciaa/Firmware/issues/277
rtos_GEN_FILES += $(hisio_PATH)$(DS)gen$(DS)inc$(DS)IODriver_Cfg.h.php \
Expand Down

0 comments on commit f0de0ed

Please sign in to comment.