joey shelton / LED_Demo

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers export_table_exports.h Source File

export_table_exports.h

00001 /*
00002  * Copyright (c) 2016, ARM Limited, All Rights Reserved
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License"); you may
00006  * not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  * http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00013  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 #ifndef __UVISOR_API_EXPORT_TABLE_EXPORTS_H__
00018 #define __UVISOR_API_EXPORT_TABLE_EXPORTS_H__
00019 
00020 #include "rt_OsEventObserver.h"
00021 #include <stdint.h>
00022 
00023 /* If this magic doesn't match what you get in a TUvisorExportTable, then you
00024  * didn't find a TUvisorExportTable and all bets are off as to what will be
00025  * contained in what you found. */
00026 #define UVISOR_EXPORT_MAGIC 0x5C9411B4
00027 
00028 /* This is the export table API version. If this version doesn't match what you
00029  * get in TUvisorExportTable, then you need a different header file to
00030  * understand the TUvisorExportTable. */
00031 #define UVISOR_EXPORT_VERSION 0
00032 
00033 typedef struct {
00034     /* magic and version must be present as the first two elements in this
00035      * table so that across various versions of the table layout, the table can
00036      * be interpreted correctly. */
00037     uint32_t magic;
00038     uint32_t version;
00039 
00040     OsEventObserver os_event_observer;
00041 
00042     /* This must be the last element of the table so that uvisor-input.S can
00043      * export the size statically. */
00044     uint32_t size;
00045 } TUvisorExportTable;
00046 
00047 #endif