diff options
author | Fabio Utzig <utzig@utzig.org> | 2016-07-17 21:30:35 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-17 21:30:35 -0300 |
commit | 569aa39fbad9b47efe45635850f82c040c765318 (patch) | |
tree | b3f390bbf198388db53ad7490b3d93ee658f1a82 /demos/NRF52/Classic/mcuconf.h | |
parent | bf620a05ed23155fe09111b04ec9915cfd93bf38 (diff) | |
parent | 194e5ec59ce0d58f82c99d17c026de64ba3f1316 (diff) | |
download | ChibiOS-Contrib-569aa39fbad9b47efe45635850f82c040c765318.tar.gz ChibiOS-Contrib-569aa39fbad9b47efe45635850f82c040c765318.tar.bz2 ChibiOS-Contrib-569aa39fbad9b47efe45635850f82c040c765318.zip |
Merge pull request #91 from sdalu/nrf52832
Nrf52832
Diffstat (limited to 'demos/NRF52/Classic/mcuconf.h')
-rw-r--r-- | demos/NRF52/Classic/mcuconf.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/demos/NRF52/Classic/mcuconf.h b/demos/NRF52/Classic/mcuconf.h new file mode 100644 index 0000000..ee51b4d --- /dev/null +++ b/demos/NRF52/Classic/mcuconf.h @@ -0,0 +1,52 @@ +/*
+ Copyright (C) 2016 Stephane D'Alu
+
+ 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.
+*/
+
+#ifndef _MCUCONF_H_
+#define _MCUCONF_H_
+
+/*
+ * Board setting
+ */
+
+
+#define NRF5_SOFTDEVICE_THREAD_WA_SIZE 128
+
+#define SHELL_CMD_TEST_ENABLED FALSE
+#define SHELL_CMD_ECHO_ENABLED FALSE
+#define SHELL_CMD_INFO_ENABLED FALSE
+
+
+
+
+#define NRF5_SOFTDEVICE_LFCLK_SOURCE NRF_CLOCK_LF_SRC_XTAL
+#define NRF5_SOFTDEVICE_LFCLK_ACCURACY NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM
+
+
+/*
+ * HAL driver system settings.
+ */
+#define NRF5_SERIAL_USE_UART0 TRUE
+#define NRF5_SERIAL_USE_HWFLOWCTRL TRUE
+#define NRF5_RNG_USE_RNG0 TRUE
+#define NRF5_GPT_USE_TIMER0 TRUE
+
+#define NRF5_QEI_USE_QDEC0 TRUE
+#define NRF5_QEI_USE_LED FALSE
+
+#define WDG_USE_TIMEOUT_CALLBACK TRUE
+
+
+#endif /* _MCUCONF_H_ */
|