2015-07-08 08:39:24 -07:00
|
|
|
/*
|
|
|
|
ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
|
|
|
|
Copyright (C) 2014 Jared Boone, ShareBrained Technology
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* LPC43xx drivers configuration.
|
|
|
|
* The following settings override the default settings present in
|
|
|
|
* the various device driver implementation headers.
|
|
|
|
* Note that the settings for each driver only have effect if the whole
|
|
|
|
* driver is enabled in halconf.h.
|
|
|
|
*
|
|
|
|
* IRQ priorities:
|
|
|
|
* 7...0 Lowest...Highest.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* NOTE: Beware setting IRQ priorities < "2":
|
|
|
|
* dbg_check_enter_isr "#SV8 means that probably you have some IRQ set at a
|
|
|
|
* priority level above the kernel level (level 0 or 1 usually) so it is able
|
|
|
|
* to preempt the kernel and mess things up.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* DMA driver system settings.
|
|
|
|
*/
|
|
|
|
|
|
|
|
//#define LPC_ADC0_IRQ_PRIORITY 2
|
2023-05-19 08:16:05 +12:00
|
|
|
#define LPC_DMA_IRQ_PRIORITY 3
|
2015-07-08 08:39:24 -07:00
|
|
|
//#define LPC_ADC1_IRQ_PRIORITY 4
|
|
|
|
|
2023-05-19 08:16:05 +12:00
|
|
|
#define LPC43XX_M0APPTXEVENT_IRQ_PRIORITY 4
|
2015-08-14 12:21:49 -07:00
|
|
|
|
|
|
|
/* M4 is initialized by M0, which has already started PLL1 */
|
2016-11-05 10:40:05 -07:00
|
|
|
#if !defined(LPC43XX_M4_CLK) || defined(__DOXYGEN__)
|
2023-05-19 08:16:05 +12:00
|
|
|
#define LPC43XX_M4_CLK 200000000
|
2016-11-05 10:40:05 -07:00
|
|
|
#endif
|