aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/NRF51/NRF51822/hal_lld.h
diff options
context:
space:
mode:
authorUladzimir Pylinski <barthess@yandex.ru>2015-05-16 14:12:39 +0300
committerUladzimir Pylinski <barthess@yandex.ru>2015-05-16 14:12:39 +0300
commita6a7dec0da22f10ea1f814118072e1968ee191c0 (patch)
tree980e1c68e65b73880e4a5b51a1d776823b874195 /os/hal/ports/NRF51/NRF51822/hal_lld.h
parent67ccbf4da02f5be9b6cac213ee0ffdbf8797b7bf (diff)
parent2ba20d691dd398b3ef46d41d62edf20bcd97188b (diff)
downloadChibiOS-Contrib-a6a7dec0da22f10ea1f814118072e1968ee191c0.tar.gz
ChibiOS-Contrib-a6a7dec0da22f10ea1f814118072e1968ee191c0.tar.bz2
ChibiOS-Contrib-a6a7dec0da22f10ea1f814118072e1968ee191c0.zip
Merge pull request #7 from utzig/add-nrf51822-support
Add nrf51822 support
Diffstat (limited to 'os/hal/ports/NRF51/NRF51822/hal_lld.h')
-rw-r--r--os/hal/ports/NRF51/NRF51822/hal_lld.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/os/hal/ports/NRF51/NRF51822/hal_lld.h b/os/hal/ports/NRF51/NRF51822/hal_lld.h
new file mode 100644
index 0000000..1cc9057
--- /dev/null
+++ b/os/hal/ports/NRF51/NRF51822/hal_lld.h
@@ -0,0 +1,77 @@
+/*
+ Copyright (C) 2015 Fabio Utzig
+
+ 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.
+*/
+
+/**
+ * @file NRF51/NRF51822/hal_lld.h
+ * @brief NRF51822 HAL subsystem low level driver header.
+ *
+ * @addtogroup HAL
+ * @{
+ */
+
+#ifndef _HAL_LLD_H_
+#define _HAL_LLD_H_
+
+/*===========================================================================*/
+/* Driver constants. */
+/*===========================================================================*/
+
+/**
+ * @name Platform identification
+ * @{
+ */
+#define PLATFORM_NAME "Nordic Semiconductor nRF51822"
+
+/**
+ * @}
+ */
+
+/*===========================================================================*/
+/* Driver pre-compile time settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Derived constants and error checks. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver data structures and types. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver macros. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* External declarations. */
+/*===========================================================================*/
+
+#include "nvic.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void hal_lld_init(void);
+ void nrf51_clock_init(void);
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _HAL_LLD_H_ */
+
+/**
+ * @}
+ */