【これは旧バージョンです】 AndroidのBLEラジコンプロポアプリ「BLEPropo」と接続し、RCサーボとDCモータを制御するプログラムです。 mbed HRM1017で動作を確認しています。 BLEPropo → https://github.com/lipoyang/BLEPropo
Fork of BLE_RCBController2 by
BLEを使ったAndroid用ラジコンプロポアプリ「BLEPropo」に対応するmbed HRM1017用ファームウェアです。
BLEPropoは、GitHubにて公開中。
https://github.com/lipoyang/BLEPropo
ラジコンは、mbed HRM1017とRCサーボやDCモータを組み合わせて作ります。
nRF51822/nordic/nrf-sdk/system_nrf51.h@1:48f6e08a3ac2, 2014-08-20 (annotated)
- Committer:
- jksoft
- Date:
- Wed Aug 20 13:24:20 2014 +0000
- Revision:
- 1:48f6e08a3ac2
2014.08.20?????BLE?????????????; ???mbed?????????????????; mbed HRM1017; Nordic nRF51822
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 1:48f6e08a3ac2 | 1 | /* Copyright (c) 2013, Nordic Semiconductor ASA |
jksoft | 1:48f6e08a3ac2 | 2 | * All rights reserved. |
jksoft | 1:48f6e08a3ac2 | 3 | * |
jksoft | 1:48f6e08a3ac2 | 4 | * Redistribution and use in source and binary forms, with or without |
jksoft | 1:48f6e08a3ac2 | 5 | * modification, are permitted provided that the following conditions are met: |
jksoft | 1:48f6e08a3ac2 | 6 | * |
jksoft | 1:48f6e08a3ac2 | 7 | * * Redistributions of source code must retain the above copyright notice, this |
jksoft | 1:48f6e08a3ac2 | 8 | * list of conditions and the following disclaimer. |
jksoft | 1:48f6e08a3ac2 | 9 | * |
jksoft | 1:48f6e08a3ac2 | 10 | * * Redistributions in binary form must reproduce the above copyright notice, |
jksoft | 1:48f6e08a3ac2 | 11 | * this list of conditions and the following disclaimer in the documentation |
jksoft | 1:48f6e08a3ac2 | 12 | * and/or other materials provided with the distribution. |
jksoft | 1:48f6e08a3ac2 | 13 | * |
jksoft | 1:48f6e08a3ac2 | 14 | * * Neither the name of Nordic Semiconductor ASA nor the names of its |
jksoft | 1:48f6e08a3ac2 | 15 | * contributors may be used to endorse or promote products derived from |
jksoft | 1:48f6e08a3ac2 | 16 | * this software without specific prior written permission. |
jksoft | 1:48f6e08a3ac2 | 17 | * |
jksoft | 1:48f6e08a3ac2 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
jksoft | 1:48f6e08a3ac2 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
jksoft | 1:48f6e08a3ac2 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
jksoft | 1:48f6e08a3ac2 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
jksoft | 1:48f6e08a3ac2 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
jksoft | 1:48f6e08a3ac2 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
jksoft | 1:48f6e08a3ac2 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
jksoft | 1:48f6e08a3ac2 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
jksoft | 1:48f6e08a3ac2 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
jksoft | 1:48f6e08a3ac2 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
jksoft | 1:48f6e08a3ac2 | 28 | * |
jksoft | 1:48f6e08a3ac2 | 29 | */ |
jksoft | 1:48f6e08a3ac2 | 30 | #ifndef SYSTEM_NRF51_H |
jksoft | 1:48f6e08a3ac2 | 31 | #define SYSTEM_NRF51_H |
jksoft | 1:48f6e08a3ac2 | 32 | |
jksoft | 1:48f6e08a3ac2 | 33 | #ifdef __cplusplus |
jksoft | 1:48f6e08a3ac2 | 34 | extern "C" { |
jksoft | 1:48f6e08a3ac2 | 35 | #endif |
jksoft | 1:48f6e08a3ac2 | 36 | |
jksoft | 1:48f6e08a3ac2 | 37 | #include <stdint.h> |
jksoft | 1:48f6e08a3ac2 | 38 | |
jksoft | 1:48f6e08a3ac2 | 39 | |
jksoft | 1:48f6e08a3ac2 | 40 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
jksoft | 1:48f6e08a3ac2 | 41 | |
jksoft | 1:48f6e08a3ac2 | 42 | /** |
jksoft | 1:48f6e08a3ac2 | 43 | * Initialize the system |
jksoft | 1:48f6e08a3ac2 | 44 | * |
jksoft | 1:48f6e08a3ac2 | 45 | * @param none |
jksoft | 1:48f6e08a3ac2 | 46 | * @return none |
jksoft | 1:48f6e08a3ac2 | 47 | * |
jksoft | 1:48f6e08a3ac2 | 48 | * @brief Setup the microcontroller system. |
jksoft | 1:48f6e08a3ac2 | 49 | * Initialize the System and update the SystemCoreClock variable. |
jksoft | 1:48f6e08a3ac2 | 50 | */ |
jksoft | 1:48f6e08a3ac2 | 51 | extern void SystemInit (void); |
jksoft | 1:48f6e08a3ac2 | 52 | |
jksoft | 1:48f6e08a3ac2 | 53 | /** |
jksoft | 1:48f6e08a3ac2 | 54 | * Update SystemCoreClock variable |
jksoft | 1:48f6e08a3ac2 | 55 | * |
jksoft | 1:48f6e08a3ac2 | 56 | * @param none |
jksoft | 1:48f6e08a3ac2 | 57 | * @return none |
jksoft | 1:48f6e08a3ac2 | 58 | * |
jksoft | 1:48f6e08a3ac2 | 59 | * @brief Updates the SystemCoreClock with current core Clock |
jksoft | 1:48f6e08a3ac2 | 60 | * retrieved from cpu registers. |
jksoft | 1:48f6e08a3ac2 | 61 | */ |
jksoft | 1:48f6e08a3ac2 | 62 | extern void SystemCoreClockUpdate (void); |
jksoft | 1:48f6e08a3ac2 | 63 | |
jksoft | 1:48f6e08a3ac2 | 64 | #ifdef __cplusplus |
jksoft | 1:48f6e08a3ac2 | 65 | } |
jksoft | 1:48f6e08a3ac2 | 66 | #endif |
jksoft | 1:48f6e08a3ac2 | 67 | |
jksoft | 1:48f6e08a3ac2 | 68 | #endif /* SYSTEM_NRF51_H */ |