4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-08 15:51:08 +08:00
YuQi 7c122cca25
[bsp][c28x] add driver for GPIO and improve pwm's driver (#6493)
1. 增加PWM模块的配置kconfig代码
2. 调整目录结构,新增c28x文件夹,将原有tms320f28379的porting移动至c28x文件夹下,通用设备驱动移动至c28x/libraries下
3. 增加gpio驱动代码以及外部中断触发驱动代码

目前已经在tms320f28379上通过测试
2022-10-08 23:24:05 -04:00

28 lines
1.0 KiB
C

/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-03-27 xuzhuoyi the first version
* 2022-08-22 guyunjie remove data types other than 8bit for compatibility with libc
*/
#ifndef __RTCONFIG_PROJECT_H__
#define __RTCONFIG_PROJECT_H__
/* C28X does not support 8bit data type by hardward (char = 16bit) so
* 8bit data types are not defined in its standard libs. We define them
* here. Be careful that the 8bit is actually 16bit. */
#define UINT8_MAX 0xff /**< Maximum number of UINT8 */
typedef signed char int8_t; /**< 8bit integer type */
typedef unsigned char uint8_t; /**< 8bit unsigned integer type */
/* C28X automatically disable interrupt in interrupt service routine.
* We need to enable manually to allow for interrupt nesting by calling
* this macro at the start of preemptible interrupt service routines*/
#define ALLOW_ISR_PREEMPT() __asm(" CLRC INTM")
#endif