mbed official / mbed-src

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Committer:
mbed_official
Date:
Thu Sep 18 14:00:17 2014 +0100
Revision:
324:406fd2029f23
Synchronized with git revision a73f28e6fbca9559fbed2726410eeb4c0534a4a5

Full URL: https://github.com/mbedmicro/mbed/commit/a73f28e6fbca9559fbed2726410eeb4c0534a4a5/

Extended #476, which does not break ethernet for K64F

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 324:406fd2029f23 1 /* mbed Microcontroller Library
mbed_official 324:406fd2029f23 2 * Copyright (c) 2006-2013 ARM Limited
mbed_official 324:406fd2029f23 3 *
mbed_official 324:406fd2029f23 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbed_official 324:406fd2029f23 5 * you may not use this file except in compliance with the License.
mbed_official 324:406fd2029f23 6 * You may obtain a copy of the License at
mbed_official 324:406fd2029f23 7 *
mbed_official 324:406fd2029f23 8 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 324:406fd2029f23 9 *
mbed_official 324:406fd2029f23 10 * Unless required by applicable law or agreed to in writing, software
mbed_official 324:406fd2029f23 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 324:406fd2029f23 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 324:406fd2029f23 13 * See the License for the specific language governing permissions and
mbed_official 324:406fd2029f23 14 * limitations under the License.
mbed_official 324:406fd2029f23 15 */
mbed_official 324:406fd2029f23 16 #include "gpio_api.h"
mbed_official 324:406fd2029f23 17 #include "pinmap.h"
mbed_official 324:406fd2029f23 18
mbed_official 324:406fd2029f23 19 // called before main - implement here if board needs it otherwise, let
mbed_official 324:406fd2029f23 20 // the application override this if necessary
mbed_official 324:406fd2029f23 21 void mbed_sdk_init()
mbed_official 324:406fd2029f23 22 {
mbed_official 324:406fd2029f23 23 pin_function(PTA2, 1); //By default the GREEN LED is enabled. This disables it
mbed_official 324:406fd2029f23 24 }
mbed_official 324:406fd2029f23 25
mbed_official 324:406fd2029f23 26 // Change the NMI pin to an input. This allows NMI pin to
mbed_official 324:406fd2029f23 27 // be used as a low power mode wakeup. The application will
mbed_official 324:406fd2029f23 28 // need to change the pin back to NMI_b or wakeup only occurs once!
mbed_official 324:406fd2029f23 29 void NMI_Handler(void)
mbed_official 324:406fd2029f23 30 {
mbed_official 324:406fd2029f23 31 gpio_t gpio;
mbed_official 324:406fd2029f23 32 gpio_init_in(&gpio, PTA4);
mbed_official 324:406fd2029f23 33 }