A simple 128x32 graphical LCD program to quickstart with LCD on ARM mbed IoT Starter Kit. This requires mbed Applciation Shield with FRDM-K64F platform.
mbed/TARGET_RBLAB_NRF51822/system_nrf51822.h@1:eb68c94a8ee5, 2015-04-12 (annotated)
- Committer:
- tushki7
- Date:
- Sun Apr 12 15:45:52 2015 +0000
- Revision:
- 1:eb68c94a8ee5
- Parent:
- 0:60d829a0353a
A simple 128x32 LCD program with ARM mbed IoT Starter Kit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tushki7 | 0:60d829a0353a | 1 | /* mbed Microcontroller Library |
tushki7 | 0:60d829a0353a | 2 | |
tushki7 | 0:60d829a0353a | 3 | * Copyright (c) 2013 Nordic Semiconductor. |
tushki7 | 0:60d829a0353a | 4 | * |
tushki7 | 0:60d829a0353a | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
tushki7 | 0:60d829a0353a | 6 | * you may not use this file except in compliance with the License. |
tushki7 | 0:60d829a0353a | 7 | * You may obtain a copy of the License at |
tushki7 | 0:60d829a0353a | 8 | * |
tushki7 | 0:60d829a0353a | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
tushki7 | 0:60d829a0353a | 10 | * |
tushki7 | 0:60d829a0353a | 11 | * Unless required by applicable law or agreed to in writing, software |
tushki7 | 0:60d829a0353a | 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
tushki7 | 0:60d829a0353a | 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
tushki7 | 0:60d829a0353a | 14 | * See the License for the specific language governing permissions and |
tushki7 | 0:60d829a0353a | 15 | * limitations under the License. |
tushki7 | 0:60d829a0353a | 16 | */ |
tushki7 | 0:60d829a0353a | 17 | |
tushki7 | 0:60d829a0353a | 18 | |
tushki7 | 0:60d829a0353a | 19 | #ifndef SYSTEM_NRF51_H |
tushki7 | 0:60d829a0353a | 20 | #define SYSTEM_NRF51_H |
tushki7 | 0:60d829a0353a | 21 | |
tushki7 | 0:60d829a0353a | 22 | #ifdef __cplusplus |
tushki7 | 0:60d829a0353a | 23 | extern "C" { |
tushki7 | 0:60d829a0353a | 24 | #endif |
tushki7 | 0:60d829a0353a | 25 | |
tushki7 | 0:60d829a0353a | 26 | #include <stdint.h> |
tushki7 | 0:60d829a0353a | 27 | |
tushki7 | 0:60d829a0353a | 28 | |
tushki7 | 0:60d829a0353a | 29 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
tushki7 | 0:60d829a0353a | 30 | |
tushki7 | 0:60d829a0353a | 31 | /** |
tushki7 | 0:60d829a0353a | 32 | * Initialize the system |
tushki7 | 0:60d829a0353a | 33 | * |
tushki7 | 0:60d829a0353a | 34 | * @param none |
tushki7 | 0:60d829a0353a | 35 | * @return none |
tushki7 | 0:60d829a0353a | 36 | * |
tushki7 | 0:60d829a0353a | 37 | * @brief Setup the microcontroller system. |
tushki7 | 0:60d829a0353a | 38 | * Initialize the System and update the SystemCoreClock variable. |
tushki7 | 0:60d829a0353a | 39 | */ |
tushki7 | 0:60d829a0353a | 40 | extern void SystemInit (void); |
tushki7 | 0:60d829a0353a | 41 | |
tushki7 | 0:60d829a0353a | 42 | |
tushki7 | 0:60d829a0353a | 43 | /** |
tushki7 | 0:60d829a0353a | 44 | * Update SystemCoreClock variable |
tushki7 | 0:60d829a0353a | 45 | * |
tushki7 | 0:60d829a0353a | 46 | * @param none |
tushki7 | 0:60d829a0353a | 47 | * @return none |
tushki7 | 0:60d829a0353a | 48 | * |
tushki7 | 0:60d829a0353a | 49 | * @brief Updates the SystemCoreClock with current core Clock |
tushki7 | 0:60d829a0353a | 50 | * retrieved from cpu registers. |
tushki7 | 0:60d829a0353a | 51 | */ |
tushki7 | 0:60d829a0353a | 52 | extern void SystemCoreClockUpdate (void); |
tushki7 | 0:60d829a0353a | 53 | |
tushki7 | 0:60d829a0353a | 54 | #ifdef __cplusplus |
tushki7 | 0:60d829a0353a | 55 | } |
tushki7 | 0:60d829a0353a | 56 | #endif |
tushki7 | 0:60d829a0353a | 57 | |
tushki7 | 0:60d829a0353a | 58 | #endif /* SYSTEM_NRF51_H */ |