git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5509 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
0a69d7dd41
commit
ee1eb36086
|
@ -1,9 +1,13 @@
|
||||||
# List of all the SPC560Pxx platform files.
|
# List of all the SPC560Pxx platform files.
|
||||||
PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/SPC560Pxx/hal_lld.c \
|
PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/SPC560Pxx/hal_lld.c \
|
||||||
|
${CHIBIOS}/os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.c \
|
||||||
|
${CHIBIOS}/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c \
|
||||||
${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1/pal_lld.c \
|
${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1/pal_lld.c \
|
||||||
${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c
|
${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c
|
||||||
|
|
||||||
# Required include directories
|
# Required include directories
|
||||||
PLATFORMINC = ${CHIBIOS}/os/hal/platforms/SPC560Pxx \
|
PLATFORMINC = ${CHIBIOS}/os/hal/platforms/SPC560Pxx \
|
||||||
|
${CHIBIOS}/os/hal/platforms/SPC5xx/eTimer_v1 \
|
||||||
|
${CHIBIOS}/os/hal/platforms/SPC5xx/FlexPWM_v1 \
|
||||||
${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1 \
|
${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1 \
|
||||||
${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1
|
${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
# List of all the SPC56ELxx platform files.
|
# List of all the SPC56ELxx platform files.
|
||||||
PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/SPC56ELxx/hal_lld.c \
|
PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/SPC56ELxx/hal_lld.c \
|
||||||
|
${CHIBIOS}/os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.c \
|
||||||
|
${CHIBIOS}/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c \
|
||||||
${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1/pal_lld.c \
|
${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1/pal_lld.c \
|
||||||
${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c
|
${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1/serial_lld.c
|
||||||
|
|
||||||
# Required include directories
|
# Required include directories
|
||||||
PLATFORMINC = ${CHIBIOS}/os/hal/platforms/SPC56ELxx \
|
PLATFORMINC = ${CHIBIOS}/os/hal/platforms/SPC56ELxx \
|
||||||
|
${CHIBIOS}/os/hal/platforms/SPC5xx/eTimer_v1 \
|
||||||
|
${CHIBIOS}/os/hal/platforms/SPC5xx/FlexPWM_v1 \
|
||||||
${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1 \
|
${CHIBIOS}/os/hal/platforms/SPC5xx/SIUL_v1 \
|
||||||
${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1
|
${CHIBIOS}/os/hal/platforms/SPC5xx/LINFlex_v1
|
||||||
|
|
|
@ -458,11 +458,11 @@
|
||||||
#error "EQADC not present in the selected device"
|
#error "EQADC not present in the selected device"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SPC5_ADC_USE_ADC0 (SPC5_ADC_USE_ADC0_Q0 | \
|
#define SPC5_ADC_USE_ADC0 (SPC5_ADC_USE_ADC0_Q0 || \
|
||||||
SPC5_ADC_USE_ADC0_Q1 | \
|
SPC5_ADC_USE_ADC0_Q1 || \
|
||||||
SPC5_ADC_USE_ADC0_Q2)
|
SPC5_ADC_USE_ADC0_Q2)
|
||||||
#define SPC5_ADC_USE_ADC1 (SPC5_ADC_USE_ADC1_Q3 | \
|
#define SPC5_ADC_USE_ADC1 (SPC5_ADC_USE_ADC1_Q3 || \
|
||||||
SPC5_ADC_USE_ADC1_Q4 | \
|
SPC5_ADC_USE_ADC1_Q4 || \
|
||||||
SPC5_ADC_USE_ADC1_Q5)
|
SPC5_ADC_USE_ADC1_Q5)
|
||||||
|
|
||||||
#if !SPC5_ADC_USE_ADC0 && !SPC5_ADC_USE_ADC1
|
#if !SPC5_ADC_USE_ADC0 && !SPC5_ADC_USE_ADC1
|
||||||
|
|
|
@ -1,23 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Licensed under ST Liberty SW License Agreement V2, (the "License");
|
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
|
||||||
* You may not use this file except in compliance with the License.
|
2011,2012,2013 Giovanni Di Sirio.
|
||||||
* You may obtain a copy of the License at:
|
|
||||||
*
|
|
||||||
* http://www.st.com/software_license_agreement_liberty_v2
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Inclusion of the main header files of all the imported components in the
|
This file is part of ChibiOS/RT.
|
||||||
order specified in the application wizard. The file is generated
|
|
||||||
automatically.*/
|
|
||||||
#include "components.h"
|
|
||||||
|
|
||||||
#include "shellcmd.h"
|
ChibiOS/RT is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
ChibiOS/RT is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "ch.h"
|
||||||
|
#include "hal.h"
|
||||||
|
|
||||||
static void pwmpcb(PWMDriver *pwmp) {
|
static void pwmpcb(PWMDriver *pwmp) {
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Licensed under ST Liberty SW License Agreement V2, (the "License");
|
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
|
||||||
* You may not use this file except in compliance with the License.
|
2011,2012,2013 Giovanni Di Sirio.
|
||||||
* You may obtain a copy of the License at:
|
|
||||||
*
|
|
||||||
* http://www.st.com/software_license_agreement_liberty_v2
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Inclusion of the main header files of all the imported components in the
|
This file is part of ChibiOS/RT.
|
||||||
order specified in the application wizard. The file is generated
|
|
||||||
automatically.*/
|
|
||||||
#include "components.h"
|
|
||||||
|
|
||||||
#include "shellcmd.h"
|
ChibiOS/RT is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
ChibiOS/RT is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "ch.h"
|
||||||
|
#include "hal.h"
|
||||||
|
|
||||||
static void pwmpcb(PWMDriver *pwmp) {
|
static void pwmpcb(PWMDriver *pwmp) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue