support mulan on nuttx

This commit is contained in:
wgzAIIT 2022-03-21 09:34:32 +08:00
parent 1da65160cb
commit dbca4aa6af
39 changed files with 276 additions and 36 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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>

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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"