Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466

Dependencies:   ssd1331

Committer:
kadonotakashi
Date:
Wed Oct 10 00:33:53 2018 +0000
Revision:
0:8fdf9a60065b
how to make mbed librry

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kadonotakashi 0:8fdf9a60065b 1 /*
kadonotakashi 0:8fdf9a60065b 2 * Copyright (c) , Arm Limited and affiliates.
kadonotakashi 0:8fdf9a60065b 3 * SPDX-License-Identifier: Apache-2.0
kadonotakashi 0:8fdf9a60065b 4 *
kadonotakashi 0:8fdf9a60065b 5 * Licensed under the Apache License, Version 2.0 (the "License");
kadonotakashi 0:8fdf9a60065b 6 * you may not use this file except in compliance with the License.
kadonotakashi 0:8fdf9a60065b 7 * You may obtain a copy of the License at
kadonotakashi 0:8fdf9a60065b 8 *
kadonotakashi 0:8fdf9a60065b 9 * http://www.apache.org/licenses/LICENSE-2.0
kadonotakashi 0:8fdf9a60065b 10 *
kadonotakashi 0:8fdf9a60065b 11 * Unless required by applicable law or agreed to in writing, software
kadonotakashi 0:8fdf9a60065b 12 * distributed under the License is distributed on an "AS IS" BASIS,
kadonotakashi 0:8fdf9a60065b 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
kadonotakashi 0:8fdf9a60065b 14 * See the License for the specific language governing permissions and
kadonotakashi 0:8fdf9a60065b 15 * limitations under the License.
kadonotakashi 0:8fdf9a60065b 16 */
kadonotakashi 0:8fdf9a60065b 17
kadonotakashi 0:8fdf9a60065b 18 #ifndef __RTX_OS__
kadonotakashi 0:8fdf9a60065b 19 #define __RTX_OS__
kadonotakashi 0:8fdf9a60065b 20
kadonotakashi 0:8fdf9a60065b 21 #include "inttypes.h"
kadonotakashi 0:8fdf9a60065b 22
kadonotakashi 0:8fdf9a60065b 23 typedef struct osRtxSemaphore_s {
kadonotakashi 0:8fdf9a60065b 24 uint8_t id; ///< Object Identifier
kadonotakashi 0:8fdf9a60065b 25 uint8_t state; ///< Object State
kadonotakashi 0:8fdf9a60065b 26 uint8_t flags; ///< Object Flags
kadonotakashi 0:8fdf9a60065b 27 uint8_t reserved;
kadonotakashi 0:8fdf9a60065b 28 const char *name; ///< Object Name
kadonotakashi 0:8fdf9a60065b 29 uint16_t tokens; ///< Current number of tokens
kadonotakashi 0:8fdf9a60065b 30 uint16_t max_tokens; ///< Maximum number of tokens
kadonotakashi 0:8fdf9a60065b 31 } osRtxSemaphore_t;
kadonotakashi 0:8fdf9a60065b 32
kadonotakashi 0:8fdf9a60065b 33 typedef struct osRtxThread_s {
kadonotakashi 0:8fdf9a60065b 34 uint8_t id; ///< Object Identifier
kadonotakashi 0:8fdf9a60065b 35 uint8_t state; ///< Object State
kadonotakashi 0:8fdf9a60065b 36 uint8_t flags; ///< Object Flags
kadonotakashi 0:8fdf9a60065b 37 uint8_t attr; ///< Object Attributes
kadonotakashi 0:8fdf9a60065b 38 const char *name; ///< Object Name
kadonotakashi 0:8fdf9a60065b 39 struct osRtxThread_s *thread_next; ///< Link pointer to next Thread in Object list
kadonotakashi 0:8fdf9a60065b 40 struct osRtxThread_s *thread_prev; ///< Link pointer to previous Thread in Object list
kadonotakashi 0:8fdf9a60065b 41 struct osRtxThread_s *delay_next; ///< Link pointer to next Thread in Delay list
kadonotakashi 0:8fdf9a60065b 42 struct osRtxThread_s *delay_prev; ///< Link pointer to previous Thread in Delay list
kadonotakashi 0:8fdf9a60065b 43 struct osRtxThread_s *thread_join; ///< Thread waiting to Join
kadonotakashi 0:8fdf9a60065b 44 uint32_t delay; ///< Delay Time
kadonotakashi 0:8fdf9a60065b 45 int8_t priority; ///< Thread Priority
kadonotakashi 0:8fdf9a60065b 46 int8_t priority_base; ///< Base Priority
kadonotakashi 0:8fdf9a60065b 47 uint8_t stack_frame; ///< Stack Frame (EXC_RETURN[7..0])
kadonotakashi 0:8fdf9a60065b 48 uint8_t flags_options; ///< Thread/Event Flags Options
kadonotakashi 0:8fdf9a60065b 49 uint32_t wait_flags; ///< Waiting Thread/Event Flags
kadonotakashi 0:8fdf9a60065b 50 uint32_t thread_flags; ///< Thread Flags
kadonotakashi 0:8fdf9a60065b 51 struct osRtxMutex_s *mutex_list; ///< Link pointer to list of owned Mutexes
kadonotakashi 0:8fdf9a60065b 52 void *stack_mem; ///< Stack Memory
kadonotakashi 0:8fdf9a60065b 53 uint32_t stack_size; ///< Stack Size
kadonotakashi 0:8fdf9a60065b 54 uint32_t sp; ///< Current Stack Pointer
kadonotakashi 0:8fdf9a60065b 55 uint32_t thread_addr; ///< Thread entry address
kadonotakashi 0:8fdf9a60065b 56 uint32_t tz_memory; ///< TrustZone Memory Identifier
kadonotakashi 0:8fdf9a60065b 57 void *context; ///< Context for OsEventObserver objects
kadonotakashi 0:8fdf9a60065b 58 } osRtxThread_t;
kadonotakashi 0:8fdf9a60065b 59
kadonotakashi 0:8fdf9a60065b 60 typedef struct {
kadonotakashi 0:8fdf9a60065b 61 uint8_t id; ///< Object Identifier
kadonotakashi 0:8fdf9a60065b 62 uint8_t state; ///< Object State
kadonotakashi 0:8fdf9a60065b 63 uint8_t flags; ///< Object Flags
kadonotakashi 0:8fdf9a60065b 64 uint8_t reserved;
kadonotakashi 0:8fdf9a60065b 65 const char *name; ///< Object Name
kadonotakashi 0:8fdf9a60065b 66 osRtxThread_t *thread_list; ///< Waiting Threads List
kadonotakashi 0:8fdf9a60065b 67 uint32_t event_flags; ///< Event Flags
kadonotakashi 0:8fdf9a60065b 68 } osRtxEventFlags_t;
kadonotakashi 0:8fdf9a60065b 69
kadonotakashi 0:8fdf9a60065b 70 #endif