This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! ********************************************************************************* | |
* Copyright (c) 2015, Freescale Semiconductor, Inc. | |
* Copyright 2016-2017, 2019 NXP | |
* All rights reserved. | |
* | |
* | |
* This is the source file for the OS Abstraction layer for freertos. | |
* | |
* SPDX-License-Identifier: BSD-3-Clause | |
********************************************************************************** */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc. | |
* Copyright 2016-2020 NXP | |
* | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
#if !defined(__FSL_OS_ABSTRACTION_CMSIS_RTOS2_H__) | |
#define __FSL_OS_ABSTRACTION_CMSIS_RTOS2_H__ | |
#if defined(__IAR_SYSTEMS_ICC__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Doubly Linked List implementation */ | |
#include<stdio.h> | |
#include<stdlib.h> | |
struct Node { | |
int data; | |
struct Node* next; | |
struct Node* prev; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
UIStoryboard *mainStoryboard = nil; | |
BOOL showLogin = NO; | |
if(showLogin == NO) | |
{ | |
// mainStoryboard method looks like: | |
// return [UIStoryboard storyboardWithName:@"Main" bundle:nil]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UIViewController *)topViewController{ | |
return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; | |
} | |
- (UIViewController *)topViewController:(UIViewController *)rootViewController | |
{ | |
if (rootViewController.presentedViewController == nil) { | |
return rootViewController; | |
} | |