cc3000_ntp_demo_F446RE

Dependencies:   NTPClient2 NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed

Fork of cc3000_ntp_demo by Martin Kojtal

Committer:
JackB
Date:
Sat Oct 17 23:12:10 2015 +0000
Revision:
8:6870e6801838
Parent:
3:4a2dfa38a61e
CC3000 NTP demo on Nucleo F446RE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 3:4a2dfa38a61e 1 /* mbed Microcontroller Library
Kojto 3:4a2dfa38a61e 2 * Copyright (c) 2006-2013 ARM Limited
Kojto 3:4a2dfa38a61e 3 *
Kojto 3:4a2dfa38a61e 4 * Licensed under the Apache License, Version 2.0 (the "License");
Kojto 3:4a2dfa38a61e 5 * you may not use this file except in compliance with the License.
Kojto 3:4a2dfa38a61e 6 * You may obtain a copy of the License at
Kojto 3:4a2dfa38a61e 7 *
Kojto 3:4a2dfa38a61e 8 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 3:4a2dfa38a61e 9 *
Kojto 3:4a2dfa38a61e 10 * Unless required by applicable law or agreed to in writing, software
Kojto 3:4a2dfa38a61e 11 * distributed under the License is distributed on an "AS IS" BASIS,
Kojto 3:4a2dfa38a61e 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 3:4a2dfa38a61e 13 * See the License for the specific language governing permissions and
Kojto 3:4a2dfa38a61e 14 * limitations under the License.
Kojto 3:4a2dfa38a61e 15 */
Kojto 3:4a2dfa38a61e 16 #include "main.h"
Kojto 3:4a2dfa38a61e 17 #include "mbed.h"
Kojto 3:4a2dfa38a61e 18
JackB 8:6870e6801838 19 #if defined (TARGET_NUCLEO_F446RE)
JackB 8:6870e6801838 20 #include "NVIC_set_all_priorities.h"
JackB 8:6870e6801838 21 void init() {
JackB 8:6870e6801838 22 NVIC_set_all_irq_priorities(3);
JackB 8:6870e6801838 23 NVIC_SetPriority(SPI1_IRQn, 0x0); // Wi-Fi SPI interrupt must be higher priority than SysTick
JackB 8:6870e6801838 24 NVIC_SetPriority(EXTI3_IRQn, 0x1); // PB3 interrupt
JackB 8:6870e6801838 25 NVIC_SetPriority(SysTick_IRQn, 0x2); // SysTick set to lower priority than Wi-Fi SPI bus interrupt
JackB 8:6870e6801838 26 }
Kojto 3:4a2dfa38a61e 27 #endif