first and last commit
This commit is contained in:
commit
1bf4efd552
2612 files changed
+636500
No files matched your search
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C) 2012-2014 Apple Inc. All rights reserved.
|
||||
*
|
||||
* This document is the property of Apple Inc.
|
||||
* It is considered confidential and proprietary.
|
||||
*
|
||||
* This document may not be reproduced or transmitted in any form,
|
||||
* in whole or in part, without the express written permission of
|
||||
* Apple Inc.
|
||||
*/
|
||||
|
||||
#include <platform.h>
|
||||
#include <stdbool.h>
|
||||
#include <target.h>
|
||||
|
||||
bool target_config_ap(void)
|
||||
{
|
||||
static bool valid = false;
|
||||
static bool result;
|
||||
|
||||
if (!valid) {
|
||||
result = (platform_get_board_id() & 1) == 0;
|
||||
valid = true;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
bool target_config_dev(void)
|
||||
{
|
||||
static bool valid = false;
|
||||
static bool result;
|
||||
|
||||
if (!valid) {
|
||||
result = (platform_get_board_id() & 1) != 0;
|
||||
valid = true;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in new issue
Block a user