You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/10/11 16:25:57 UTC

[38/45] incubator-mynewt-core git commit: mcu: MK64F12: add basic includes for hardware

mcu: MK64F12: add basic includes for hardware

Signed-off-by: Michael Scott <mi...@linaro.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/65e6a3b8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/65e6a3b8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/65e6a3b8

Branch: refs/heads/develop
Commit: 65e6a3b8a9ed2c263a2ed68984dd3295da709920
Parents: c623074
Author: Michael Scott <mi...@linaro.org>
Authored: Fri Oct 7 16:34:18 2016 -0700
Committer: Michael Scott <mi...@linaro.org>
Committed: Mon Oct 10 23:59:41 2016 -0700

----------------------------------------------------------------------
 hw/mcu/nxp/MK64F12/include/mcu/cortex_m4.h     | 39 +++++++++++++++++++++
 hw/mcu/nxp/MK64F12/include/mcu/frdm-k64f_hal.h | 34 ++++++++++++++++++
 2 files changed, 73 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/65e6a3b8/hw/mcu/nxp/MK64F12/include/mcu/cortex_m4.h
----------------------------------------------------------------------
diff --git a/hw/mcu/nxp/MK64F12/include/mcu/cortex_m4.h b/hw/mcu/nxp/MK64F12/include/mcu/cortex_m4.h
new file mode 100644
index 0000000..50d63ac
--- /dev/null
+++ b/hw/mcu/nxp/MK64F12/include/mcu/cortex_m4.h
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 __MCU_CORTEX_M4_H__
+#define __MCU_CORTEX_M4_H__
+
+/*
+ * include board definition file here so that
+ * SCB register can be defined for os_fault.c
+ */
+#include "MK64F12.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define OS_TICKS_PER_SEC	(1000)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MCU_CORTEX_M4_H__ */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/65e6a3b8/hw/mcu/nxp/MK64F12/include/mcu/frdm-k64f_hal.h
----------------------------------------------------------------------
diff --git a/hw/mcu/nxp/MK64F12/include/mcu/frdm-k64f_hal.h b/hw/mcu/nxp/MK64F12/include/mcu/frdm-k64f_hal.h
new file mode 100644
index 0000000..cba9a23
--- /dev/null
+++ b/hw/mcu/nxp/MK64F12/include/mcu/frdm-k64f_hal.h
@@ -0,0 +1,34 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 __MCU_FRDMK64F_BSP_H_
+#define __MCU_FRDMK64F_BSP_H_
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
+struct hal_flash;
+extern const struct hal_flash mk64f12_flash_dev;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MCU_FRDMK64F_BSP_H_ */