forked from xuos/xiuos
support mulan on nuttx
This commit is contained in:
parent
1da65160cb
commit
dbca4aa6af
|
@ -11,8 +11,8 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file pm1_0_ps5308.c
|
||||
* @brief PS5308 PM1.0 example
|
||||
* @filepm10_0_ps5308
|
||||
* @brief PS5308 PM10.0 example
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2021.04.23
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file pm1_0_ps5308.c
|
||||
* @brief PS5308 PM1.0 example
|
||||
* @file pm2_5_ps5308
|
||||
* @brief PS5308 PM2.5 example
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2021.04.23
|
||||
* @date 2021.12.28
|
||||
*/
|
||||
|
||||
#ifdef ADD_XIZI_FETURES
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file xiuos.c
|
||||
* @file transform.c
|
||||
* @brief Converts the framework interface to an operating system interface
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* @file apu.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* @file apu.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* @file atomic.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/**
|
||||
* @file bsp.c
|
||||
* @file bsp.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file client.c
|
||||
* @file clint.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -38,10 +38,10 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file client
|
||||
* @file clint.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* @file damc.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* @file damc.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* @file encoding.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 10.2.0
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file fft.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <assert.h>
|
||||
#include "dmac.h"
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file fft.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_FFT_H
|
||||
#define _DRIVER_FFT_H
|
||||
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file fpioa.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include "sysctl.h"
|
||||
|
|
|
@ -12,25 +12,15 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Field Programmable GPIO Array (FPIOA)
|
||||
*
|
||||
* The FPIOA peripheral supports the following features:
|
||||
*
|
||||
* - 48 IO with 256 functions
|
||||
*
|
||||
* - Schmitt trigger
|
||||
*
|
||||
* - Invert input and output
|
||||
*
|
||||
* - Pull up and pull down
|
||||
*
|
||||
* - Driving selector
|
||||
*
|
||||
* - Static input and output
|
||||
*
|
||||
*/
|
||||
* @file fpioa.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_FPIOA_H
|
||||
#define _DRIVER_FPIOA_H
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file gpio.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include "gpio.h"
|
||||
#include "utils.h"
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file gpio.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_GPIO_H
|
||||
#define _DRIVER_GPIO_H
|
||||
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file gpio_common.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _GPIO_COMMON_H
|
||||
#define _GPIO_COMMON_H
|
||||
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file gpiohs.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include "fpioa.h"
|
||||
#include "gpiohs.h"
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file gpiohs.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_GPIOHS_H
|
||||
#define _DRIVER_GPIOHS_H
|
||||
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file i2s.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file i2s.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_I2S_H
|
||||
#define _DRIVER_I2S_H
|
||||
|
||||
|
|
|
@ -15,6 +15,15 @@
|
|||
|
||||
/* Enable kernel-mode log API */
|
||||
|
||||
/**
|
||||
* @file interrupt.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include "interrupt.h"
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file interrupt.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _BSP_INTERRUPT_H
|
||||
#define _BSP_INTERRUPT_H
|
||||
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file io.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_IO_H
|
||||
#define _DRIVER_IO_H
|
||||
|
||||
|
|
|
@ -30,6 +30,15 @@
|
|||
*
|
||||
************************************************************************************/
|
||||
|
||||
/**
|
||||
* @file k210_arch.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <nuttx/arch.h>
|
||||
#include "k210.h"
|
||||
|
|
|
@ -22,6 +22,15 @@
|
|||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @file k210_start.c
|
||||
* @brief nuttx source code
|
||||
* https://github.com/apache/incubator-nuttx.git
|
||||
* @version 10.2.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <nuttx/init.h>
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file platform.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _BSP_PLATFORM_H
|
||||
#define _BSP_PLATFORM_H
|
||||
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file plic.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include "encoding.h"
|
||||
|
|
|
@ -54,6 +54,15 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file plic.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_PLIC_H
|
||||
#define _DRIVER_PLIC_H
|
||||
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file syscall.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
/* Enable kernel-mode log API */
|
||||
#include <nuttx/config.h>
|
||||
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file syscall.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _BSP_SYSCALLS_H
|
||||
#define _BSP_SYSCALLS_H
|
||||
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file sysctl.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
//#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
//#include <math.h>
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file sysctl.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_SYSCTL_H
|
||||
#define _DRIVER_SYSCTL_H
|
||||
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file uarths.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include "uarths.h"
|
||||
|
|
|
@ -45,6 +45,15 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file uarths.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_UARTHS_H
|
||||
#define _DRIVER_UARTHS_H
|
||||
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file utils.c
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include "encoding.h"
|
||||
#include "utils.h"
|
||||
|
|
|
@ -12,6 +12,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file utils.h
|
||||
* @brief kendryte k210 source code
|
||||
* https://github.com/kendryte/kendryte-standalone-sdk.git
|
||||
* @version 1.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-03-17
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_UTILS_H
|
||||
#define _DRIVER_UTILS_H
|
||||
#include "uarths.h"
|
||||
|
|
Loading…
Reference in New Issue