BA / SerialCom

Fork of OmniWheels by Gustav Atmel

Committer:
gustavatmel
Date:
Tue May 01 15:55:34 2018 +0000
Revision:
2:798925c9e4a8
Parent:
1:9c5af431a1f1
bluetooth

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gustavatmel 1:9c5af431a1f1 1 /* mbed Microcontroller Library
gustavatmel 1:9c5af431a1f1 2 * Copyright (c) 2015-2016 Nuvoton
gustavatmel 1:9c5af431a1f1 3 *
gustavatmel 1:9c5af431a1f1 4 * Licensed under the Apache License, Version 2.0 (the "License");
gustavatmel 1:9c5af431a1f1 5 * you may not use this file except in compliance with the License.
gustavatmel 1:9c5af431a1f1 6 * You may obtain a copy of the License at
gustavatmel 1:9c5af431a1f1 7 *
gustavatmel 1:9c5af431a1f1 8 * http://www.apache.org/licenses/LICENSE-2.0
gustavatmel 1:9c5af431a1f1 9 *
gustavatmel 1:9c5af431a1f1 10 * Unless required by applicable law or agreed to in writing, software
gustavatmel 1:9c5af431a1f1 11 * distributed under the License is distributed on an "AS IS" BASIS,
gustavatmel 1:9c5af431a1f1 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
gustavatmel 1:9c5af431a1f1 13 * See the License for the specific language governing permissions and
gustavatmel 1:9c5af431a1f1 14 * limitations under the License.
gustavatmel 1:9c5af431a1f1 15 */
gustavatmel 1:9c5af431a1f1 16
gustavatmel 1:9c5af431a1f1 17 #ifndef NU_MODULE_UTIL_H
gustavatmel 1:9c5af431a1f1 18 #define NU_MODULE_UTIL_H
gustavatmel 1:9c5af431a1f1 19
gustavatmel 1:9c5af431a1f1 20 #include "cmsis.h"
gustavatmel 1:9c5af431a1f1 21
gustavatmel 1:9c5af431a1f1 22 #ifdef __cplusplus
gustavatmel 1:9c5af431a1f1 23 extern "C" {
gustavatmel 1:9c5af431a1f1 24 #endif
gustavatmel 1:9c5af431a1f1 25
gustavatmel 1:9c5af431a1f1 26 struct nu_modinit_s {
gustavatmel 1:9c5af431a1f1 27 int modname;
gustavatmel 1:9c5af431a1f1 28 uint32_t clkidx;
gustavatmel 1:9c5af431a1f1 29 uint32_t clksrc;
gustavatmel 1:9c5af431a1f1 30 uint32_t clkdiv;
gustavatmel 1:9c5af431a1f1 31 uint32_t rsetidx;
gustavatmel 1:9c5af431a1f1 32
gustavatmel 1:9c5af431a1f1 33 IRQn_Type irq_n;
gustavatmel 1:9c5af431a1f1 34 //int irq_n;
gustavatmel 1:9c5af431a1f1 35
gustavatmel 1:9c5af431a1f1 36 void *var;
gustavatmel 1:9c5af431a1f1 37 };
gustavatmel 1:9c5af431a1f1 38
gustavatmel 1:9c5af431a1f1 39 const struct nu_modinit_s *get_modinit(uint32_t modname, const struct nu_modinit_s *modprop_tab);
gustavatmel 1:9c5af431a1f1 40
gustavatmel 1:9c5af431a1f1 41 #ifdef __cplusplus
gustavatmel 1:9c5af431a1f1 42 }
gustavatmel 1:9c5af431a1f1 43 #endif
gustavatmel 1:9c5af431a1f1 44
gustavatmel 1:9c5af431a1f1 45 #endif