📄 portmacro.h
字号:
/*
* iRTOS
* Copyright (C) 2009 Dmitriy Cherepanov
FreeRTOS.org V5.1.2 - Copyright (C) 2003-2009 Richard Barry.
This file was the part of the FreeRTOS.org distribution.
It included here for testing purposes. If you wish to distribute
a combined work that includes this sources you MUST do it under the
terms of the GNU General Public License.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeRTOS.org; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef PORTMACRO_H
#define PORTMACRO_H
/*-----------------------------------------------------------
* Port specific definitions.
*
* The settings in this file configure FreeRTOS correctly for the
* given hardware and compiler.
*
* These settings should not be altered.
*-----------------------------------------------------------
*/
/* Type definitions. */
#define portCHAR char
#define portFLOAT float
#define portDOUBLE double
#define portLONG long
#define portSHORT int
#define portSTACK_TYPE iStack_t
#define portBASE_TYPE iarch
#define portTickType iClock
/*-----------------------------------------------------------*/
/* Architecture specifics. */
#define portSTACK_GROWTH ( iSTACK_DELTA )
#define portTICK_RATE_MS (( portTickType )(1000 / configTICK_RATE_HZ))
#define portBYTE_ALIGNMENT 1
/*-----------------------------------------------------------*/
/* Kernel utilities. */
//extern void vPortYield( void ) __attribute__ ( ( naked ) );
//#define portYIELD() vPortYield()
/*-----------------------------------------------------------*/
/* Task function macros as described on the FreeRTOS.org WEB site. */
//#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void *pvParameters )
//#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
#endif /* PORTMACRO_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -