Initial commit

Dependencies:   FastPWM

Committer:
lypinator
Date:
Wed Sep 16 01:11:49 2020 +0000
Revision:
0:bb348c97df44
Added PWM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lypinator 0:bb348c97df44 1 /*---------------------------------------------------------------------------
lypinator 0:bb348c97df44 2 * Copyright (c) 2016, u-blox Malmö, All Rights Reserved
lypinator 0:bb348c97df44 3 * SPDX-License-Identifier: LicenseRef-PBL
lypinator 0:bb348c97df44 4 *
lypinator 0:bb348c97df44 5 * This file and the related binary are licensed under the
lypinator 0:bb348c97df44 6 * Permissive Binary License, Version 1.0 (the "License");
lypinator 0:bb348c97df44 7 * you may not use these files except in compliance with the License.
lypinator 0:bb348c97df44 8 *
lypinator 0:bb348c97df44 9 * You may obtain a copy of the License here:
lypinator 0:bb348c97df44 10 * LICENSE-permissive-binary-license-1.0.txt and at
lypinator 0:bb348c97df44 11 * https://www.mbed.com/licenses/PBL-1.0
lypinator 0:bb348c97df44 12 *
lypinator 0:bb348c97df44 13 * See the License for the specific language governing permissions and
lypinator 0:bb348c97df44 14 * limitations under the License.
lypinator 0:bb348c97df44 15 *
lypinator 0:bb348c97df44 16 * Component : RTSL
lypinator 0:bb348c97df44 17 * File : cb_status.h
lypinator 0:bb348c97df44 18 *
lypinator 0:bb348c97df44 19 * Description : Common RTSL status codes
lypinator 0:bb348c97df44 20 *-------------------------------------------------------------------------*/
lypinator 0:bb348c97df44 21 #ifndef _CB_STATUS_H_
lypinator 0:bb348c97df44 22 #define _CB_STATUS_H_
lypinator 0:bb348c97df44 23
lypinator 0:bb348c97df44 24 /*===========================================================================
lypinator 0:bb348c97df44 25 * DEFINES
lypinator 0:bb348c97df44 26 *=========================================================================*/
lypinator 0:bb348c97df44 27
lypinator 0:bb348c97df44 28 #define OK(status) (status == cbSTATUS_OK)
lypinator 0:bb348c97df44 29 #define BUSY(status) (status == cbSTATUS_BUSY)
lypinator 0:bb348c97df44 30 #define ERR(status) (status == cbSTATUS_ERROR)
lypinator 0:bb348c97df44 31
lypinator 0:bb348c97df44 32 /*===========================================================================
lypinator 0:bb348c97df44 33 * TYPES
lypinator 0:bb348c97df44 34 *=========================================================================*/
lypinator 0:bb348c97df44 35
lypinator 0:bb348c97df44 36 typedef enum
lypinator 0:bb348c97df44 37 {
lypinator 0:bb348c97df44 38 cbSTATUS_OK,
lypinator 0:bb348c97df44 39 cbSTATUS_ERROR,
lypinator 0:bb348c97df44 40 cbSTATUS_BUSY,
lypinator 0:bb348c97df44 41 cbSTATUS_RECEIVE_DATA_MODE,
lypinator 0:bb348c97df44 42 cbSTATUS_TIMEOUT
lypinator 0:bb348c97df44 43
lypinator 0:bb348c97df44 44 } cbRTSL_Status;
lypinator 0:bb348c97df44 45
lypinator 0:bb348c97df44 46 #endif /* _CB_STATUS_H_ */
lypinator 0:bb348c97df44 47