code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <limits.h>
#include <stdio.h>
#include "k_api.h"
/* part of ktask_t */
typedef struct
{
void *task_stack;
}ktask_t_shadow;
//#define OS_BACKTRACE_DEBUG
extern void krhino_task_dea... | YifuLiu/AliOS-Things | hardware/arch/armv8m/common/backtrace.c | C | apache-2.0 | 15,751 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
//#include "debug_api.h"
#define REG_NAME_WIDTH 7
typedef struct
{
/* saved in assembler */
int R0;
int R1;
int R2;
int R3;
int R4;
int R5;
int R6;
int R7;
int R8;
int R9;
int R10;
... | YifuLiu/AliOS-Things | hardware/arch/armv8m/common/panic_c.c | C | apache-2.0 | 4,438 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <k_api.h>
void *cpu_task_stack_init(cpu_stack_t *stack_base, size_t stack_size,
void *arg, task_entry_t entry)
{
cpu_stack_t *stk;
uint32_t temp = (uint32_t)(stack_base ... | YifuLiu/AliOS-Things | hardware/arch/armv8m/common/port_c.c | C | apache-2.0 | 1,743 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef BACKTRACE_H
#define BACKTRACE_H
/* printf call stack
return levels of call stack */
int backtrace_now(int (*print_func)(const char *fmt, ...));
/* printf call stack for task
return levels of call stack */
int backtrace_task(char *taskname,... | YifuLiu/AliOS-Things | hardware/arch/armv8m/include/backtrace.h | C | apache-2.0 | 773 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef K_COMPILER_H
#define K_COMPILER_H
#if defined(__CC_ARM)
#define RHINO_INLINE static __inline
/* get the return address of the current function
unsigned int __return_address(void) */
#define RHINO_GET_RA() (void *)... | YifuLiu/AliOS-Things | hardware/arch/armv8m/include/k_compiler.h | C | apache-2.0 | 3,686 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef K_TYPES_H
#define K_TYPES_H
#include "k_compiler.h"
#define RHINO_TASK_STACK_OVF_MAGIC 0xdeadbeafu /* stack overflow magic value */
#define RHINO_INTRPT_STACK_OVF_MAGIC 0xdeaddeadu /* stack overflow magic value */
#define RHINO_MM_CORR... | YifuLiu/AliOS-Things | hardware/arch/armv8m/include/k_types.h | C | apache-2.0 | 538 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef PORT_H
#define PORT_H
cpu_cpsr_t cpu_intrpt_save(void);
void cpu_intrpt_restore(cpu_cpsr_t cpsr);
void cpu_intrpt_switch(void);
void cpu_task_switch(void);
void cpu_first_task_start(void);
void *cpu_task_stack_init(cpu_stack_t *base, siz... | YifuLiu/AliOS-Things | hardware/arch/armv8m/include/port.h | C | apache-2.0 | 643 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef K_API_H
#define K_API_H
/** @addtogroup rhino API
* All rhino header files.
*
* @{
*/
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <limits.h>
#include "k_config.h"
#include "k_default_config.h"
#include "k_types.h... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv32_32gpr/k_api.h | C | apache-2.0 | 1,071 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef K_ARCH_H
#define K_ARCH_H
#include "riscv_csr.h"
#if __riscv_xlen == 64
#define REGISTER_LEN 8
#define OS_UDF() \
do { \
*(long *)(0xffffffffffffffff) = 1;... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv32_32gpr/k_arch.h | C | apache-2.0 | 5,167 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef PORT_H
#define PORT_H
#include <k_types.h>
#include <k_task.h>
#ifdef CONFIG_OS_TRACE
#include <trcTrig.h>
#include <trcUser.h>
#include <trcKernelPort.h>
#endif
cpu_cpsr_t cpu_intrpt_save(void);
void cpu_intrpt_restore(cpu_cpsr_t cpsr);
void... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv32_32gpr/port.h | C | apache-2.0 | 797 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef RISCV_CSR_H
#define RISCV_CSR_H
/* Status register flags */
#define SR_SIE 0x00000002UL /* Supervisor Interrupt Enable */
#define SR_MIE 0x00000008UL /* Machine Interrupt Enable */
#define SR_SPIE 0x00000020UL ... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv32_32gpr/riscv_csr.h | C | apache-2.0 | 1,117 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef K_ARCH_H
#define K_ARCH_H
#include "riscv_csr.h"
#if __riscv_xlen == 64
#define REGISTER_LEN 8
#define OS_UDF() \
do { \
*(long *)(0xffffffffffffffff) = 1;... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv32fd_32gpr/k_arch.h | C | apache-2.0 | 5,017 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef K_TYPES_H
#define K_TYPES_H
#include "k_compiler.h"
#if __riscv_xlen == 64
#define RHINO_TASK_STACK_OVF_MAGIC 0xdeadbeafdeadbeafull /* stack overflow magic value */
#define RHINO_INTRPT_STACK_OVF_MAGIC 0xdeadbeafdeadbeafull /* stack ov... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv32fd_32gpr/k_types.h | C | apache-2.0 | 1,562 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef PORT_H
#define PORT_H
#include <k_types.h>
#include <k_task.h>
#ifdef CONFIG_OS_TRACE
#include <trcTrig.h>
#include <trcUser.h>
#include <trcKernelPort.h>
#endif
cpu_cpsr_t cpu_intrpt_save(void);
void cpu_intrpt_restore(cpu_cpsr_t cpsr);
void... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv32fd_32gpr/port.h | C | apache-2.0 | 797 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef RISCV_CSR_H
#define RISCV_CSR_H
/* Status register flags */
#define SR_SIE 0x00000002UL /* Supervisor Interrupt Enable */
#define SR_MIE 0x00000008UL /* Machine Interrupt Enable */
#define SR_SPIE 0x00000020UL ... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv32fd_32gpr/riscv_csr.h | C | apache-2.0 | 1,117 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef K_ARCH_H
#define K_ARCH_H
#include "riscv_csr.h"
#if __riscv_xlen == 64
#define REGISTER_LEN 8
#define OS_UDF() \
do { \
*(long *)(0xffffffffffffffff) = 1;... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv64fd_32gpr/k_arch.h | C | apache-2.0 | 5,017 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef K_TYPES_H
#define K_TYPES_H
#include "k_compiler.h"
#if __riscv_xlen == 64
#define RHINO_TASK_STACK_OVF_MAGIC 0xdeadbeafdeadbeafull /* stack overflow magic value */
#define RHINO_INTRPT_STACK_OVF_MAGIC 0xdeadbeafdeadbeafull /* stack ov... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv64fd_32gpr/k_types.h | C | apache-2.0 | 1,562 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef PORT_H
#define PORT_H
#include <k_types.h>
#include <k_task.h>
#ifdef CONFIG_OS_TRACE
#include <trcTrig.h>
#include <trcUser.h>
#include <trcKernelPort.h>
#endif
cpu_cpsr_t cpu_intrpt_save(void);
void cpu_intrpt_restore(cpu_cpsr_t cpsr);
void... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv64fd_32gpr/port.h | C | apache-2.0 | 797 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef RISCV_CSR_H
#define RISCV_CSR_H
/* Status register flags */
#define SR_SIE 0x00000002UL /* Supervisor Interrupt Enable */
#define SR_MIE 0x00000008UL /* Machine Interrupt Enable */
#define SR_SPIE 0x00000020UL ... | YifuLiu/AliOS-Things | hardware/arch/riscv/include/rv64fd_32gpr/riscv_csr.h | C | apache-2.0 | 1,117 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <k_api.h>
#include <k_arch.h>
void dispatcher_exception(long arg, long exc_type, context_t *contex)
{
switch (exc_type) {
case CAUSE_MACHINE_ECALL:
/* This is a task scheduling request */
if (arg == 0) {
retu... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32_32gpr/dispatcher_c.c | C | apache-2.0 | 398 |
#include <k_config.h>
#include <k_arch.h>
/******************************************************************************
@ Declares the function that this file will call
@******************************************************************************/
.extern g_active_task
.extern g_preferred_ready_task
.extern krhino... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32_32gpr/dispatcher_s.S | Motorola 68K Assembly | apache-2.0 | 7,817 |
#include <k_arch.h>
#include <k_api.h>
void dispatcher_interrupt(long irq)
{
krhino_intrpt_enter();
/*
add board irq handler, to do...
*/
krhino_intrpt_exit();
}
| YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32_32gpr/irq_dispatcher.c | C | apache-2.0 | 188 |
/*
* Copyright (C) 2016 YunOS Project. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32_32gpr/port_c.c | C | apache-2.0 | 3,321 |
/*
* Copyright (C) 2016 YunOS Project. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32_32gpr/port_s.S | Unix Assembly | apache-2.0 | 2,061 |
/*
* Copyright (C) 2016 YunOS Project. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32fd_32gpr/cpu_impl.c | C | apache-2.0 | 1,342 |
/*
* Copyright (C) 2016 YunOS Project. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32fd_32gpr/csky_sched.c | C | apache-2.0 | 1,892 |
/*
* Copyright (C) 2016 YunOS Project. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32fd_32gpr/port_c.c | C | apache-2.0 | 6,013 |
/*
* Copyright (C) 2016 YunOS Project. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv32fd_32gpr/port_s.S | Motorola 68K Assembly | apache-2.0 | 6,542 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <limits.h>
#include <stdio.h>
#include "k_api.h"
#include "aos/debug.h"
/* part of ktask_t */
typedef struct
{
void *task_stack;
} ktask_t_shadow;
//#define OS_BACKTRACE_DEBUG
ext... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/backtrace.c | C | apache-2.0 | 8,095 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef BACKTRACE_H
#define BACKTRACE_H
/* printf call stack
return levels of call stack */
int backtrace_now(int (*print_func)(const char *fmt, ...));
/* printf call stack for task
return levels of call stack */
int backtrace_task(char *taskname,... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/backtrace.h | C | apache-2.0 | 773 |
#include <k_arch.h>
/******************************************************************************
@ Declares the function and variable that this file will call
@******************************************************************************/
.extern exception_stack_top
.extern dispatcher_exception
.extern dispatcher_... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/dispatcher_boot.S | Motorola 68K Assembly | apache-2.0 | 6,155 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <k_api.h>
#include <k_arch.h>
void exceptionHandler(void *context);
void dispatcher_exception(long arg, long exc_type, context_t *contex)
{
switch (exc_type) {
case CAUSE_MACHINE_ECALL:
/* This is a task scheduling request */
... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/dispatcher_c.c | C | apache-2.0 | 470 |
#include <k_config.h>
#include <k_arch.h>
/******************************************************************************
@ Declares the function that this file will call
@******************************************************************************/
.extern g_active_task
.extern g_preferred_ready_task
.extern krhino... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/dispatcher_s.S | Motorola 68K Assembly | apache-2.0 | 7,419 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef K_COMPILER_H
#define K_COMPILER_H
#if defined(__CC_ARM)
#define RHINO_INLINE static __inline
/* get the return address of the current function
unsigned int __return_address(void) */
#define RHINO_GET_RA() (void *)... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/k_compiler.h | C | apache-2.0 | 3,472 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <csi_core.h>
#include <k_arch.h>
#include <aos/debug.h>
#define REG_NAME_WIDTH 8
extern volatile uint32_t g_crash_steps;
typedef context_t PANIC_CONTEXT;
typedef struct
{
long mcause;
long mtval;... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/panic_c.c | C | apache-2.0 | 4,468 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <k_api.h>
#include <k_arch.h>
void *cpu_task_stack_init(cpu_stack_t *stack_base, size_t stack_size,
void *arg, task_entry_t entry)
{
cpu_stack_t *stk;
/* stack aligned by 8 byte */
stk = (cpu_stack_t *)((ui... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/port_c.c | C | apache-2.0 | 5,105 |
#include <k_config.h>
#include <k_arch.h>
/******************************************************************************
@ EXPORT FUNCTIONS
@******************************************************************************/
.global cpu_intrpt_save
.global cpu_intrpt_restore
.global cpu_task_sw... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/port_s.S | Unix Assembly | apache-2.0 | 2,024 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file startup.S
* @brief startup file. Should use with
* GCC for RISC-V Embedded Processors
* @version V1.0
* @date 29. July 2019
**************... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/startup.S | Motorola 68K Assembly | apache-2.0 | 2,088 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file startup.S
* @brief startup file. Should use with
* GCC for RISC-V Embedded Processors
* @version V1.0
* @date 29. July 2019
**************... | YifuLiu/AliOS-Things | hardware/arch/riscv/src/rv64fd_32gpr/startup_boot.S | Motorola 68K Assembly | apache-2.0 | 2,163 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*
* License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | YifuLiu/AliOS-Things | hardware/board/c906/adapter/csi_kernel.h | C | apache-2.0 | 30,441 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*
* License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | YifuLiu/AliOS-Things | hardware/board/c906/adapter/csi_rhino.c | C | apache-2.0 | 27,849 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "drv_usart.h"
#include "soc.h"
#include <csi_config.h>
#include <csi_core.h>
#include "pin.h"
#include "aos/init.h"
#include "k_config.h"
#include "board.h"
#include "aos/hal/uart.h"
ex... | YifuLiu/AliOS-Things | hardware/board/c906/config/board.c | C | apache-2.0 | 1,587 |
#ifndef __CSI_CONFIG_H__
#define __CSI_CONFIG_H__
#define CONFIG_ARCH_RV64 1
#define CONFIG_CPU_C910D 1
#define CONFIG_RV64_CORETIM 1
#define CONFIG_SYSTEM_SECURE 1
#define CONFIG_CHIP_SMARTH_RV64 1
#define CONFIG_BOARD_SMARTH_C910_EVB 1
#define CONFIG_BOARD_NAME_STR "smarth_c906_evb"
#define CONFIG_KERNEL_RHINO 1
#def... | YifuLiu/AliOS-Things | hardware/board/c906/config/csi_config.h | C | apache-2.0 | 460 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <k_api.h>
#include <assert.h>
#include <stdio.h>
#include <sys/time.h>
#if (RHINO_CONFIG_HW_COUNT > 0)
void soc_hw_timer_init(void)
{
}
hr_timer_t soc_hr_hw_cnt_get(void)
{
return 0;
//return *(volatile uint64_t *)0xc0000120;
}
lr_time... | YifuLiu/AliOS-Things | hardware/board/c906/config/k_config.c | C | apache-2.0 | 1,780 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef K_CONFIG_H
#define K_CONFIG_H
/* kernel feature conf */
#ifndef RHINO_CONFIG_SEM
#define RHINO_CONFIG_SEM 1
#endif
#ifndef RHINO_CONFIG_QUEUE
#define RHINO_CONFIG_QUEUE 1
#endif
#ifndef RHINO_CONFIG_TASK_SEM
... | YifuLiu/AliOS-Things | hardware/board/c906/config/k_config.h | C | apache-2.0 | 4,098 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
void flash_partition_init(void)
{
}
| YifuLiu/AliOS-Things | hardware/board/c906/config/partition_conf.c | C | apache-2.0 | 103 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file pin.h
* @brief header File for pin definition
* @version V1.0
* @date 02. June 2018
******************************************************************... | YifuLiu/AliOS-Things | hardware/board/c906/config/pin.h | C | apache-2.0 | 1,828 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file core_rv64.h
* @brief CSI RV32 Core Peripheral Access Layer Header File
* @version V1.0
* @date 01. Sep 2018
*****************************************... | YifuLiu/AliOS-Things | hardware/board/c906/csi_core/include/core_rv64.h | C | apache-2.0 | 30,846 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file csi_core.h
* @brief CSI Core Layer Header File
* @version V1.0
* @date 02. June 2017
****************************************************************... | YifuLiu/AliOS-Things | hardware/board/c906/csi_core/include/csi_core.h | C | apache-2.0 | 1,622 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*
* License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | YifuLiu/AliOS-Things | hardware/board/c906/csi_core/include/csi_rv64_gcc.h | C | apache-2.0 | 106,704 |
#include "board.h"
#include <k_api.h>
static ktask_t *g_main_task;
#define OS_MAIN_TASK_STACK (2*1024)
#define OS_MAIN_TASK_PRI 32
extern int aos_maintask(void);
int main(void)
{
krhino_init();
/*main task to run */
krhino_task_dyn_create(&g_main_task, "main_task", 0, OS_MAIN_TASK_PRI, 0, OS_MAIN_TASK_S... | YifuLiu/AliOS-Things | hardware/board/c906/startup/startup_c.c | C | apache-2.0 | 505 |
#include <k_api.h>
#include "cmsis.h"
#include "cmsis_os.h"
#include "hal_timer.h"
#include "hal_trace.h"
#include "hal_gpio.h"
#include "aos/hal/uart.h"
#if (RHINO_CONFIG_HW_COUNT > 0)
#include "haas1000.h"
#endif
#define SYSTICK_USE_FASTTIMER
uart_dev_t uart_0;
extern void haas_wifi_init();
#if (RHINO_CONFIG_HW_CO... | YifuLiu/AliOS-Things | hardware/board/haas100/config/board.c | C | apache-2.0 | 3,899 |
#ifndef BOARD_H
#define BOARD_H
#if (CONFIG_A7_DSP_ENABLE == 1)
#define DEBUG_LASTWORD_RAM_ADDR 0x20166000
#else
#define DEBUG_LASTWORD_RAM_ADDR 0x201e6000
#endif
void soc_systick_start(void);
void soc_systick_stop(void);
#endif /* BOARD_H */
| YifuLiu/AliOS-Things | hardware/board/haas100/config/board.h | C | apache-2.0 | 246 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <k_api.h>
#include "hal_trace.h"
#include "hal_gpio.h"
#include "hal_sleep.h"
#include "hal_timer.h"
#include "hwtimer_list.h"
#include "board.h"
#include "watchdog.h"
#ifdef AOS_COMP_OSAL_POSIX
#include "posix/pthread.h"
extern pthread_key_list... | YifuLiu/AliOS-Things | hardware/board/haas100/config/k_config.c | C | apache-2.0 | 2,898 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef K_CONFIG_H
#define K_CONFIG_H
/* kernel feature conf */
#ifndef RHINO_CONFIG_SEM
#define RHINO_CONFIG_SEM 1
#endif
#ifndef RHINO_CONFIG_QUEUE
#define RHINO_CONFIG_QUEUE 1
#endif
#ifndef RHINO_CONFIG_TASK_SEM... | YifuLiu/AliOS-Things | hardware/board/haas100/config/k_config.h | C | apache-2.0 | 3,701 |
#ifndef NET_CONFIG_H
#define NET_CONFIG_H
#endif
| YifuLiu/AliOS-Things | hardware/board/haas100/config/net_config.h | C | apache-2.0 | 51 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <aos/flashpart_core.h>
#include <aos/hal/flash.h>
static int flash_partitions_init(void)
{
static aos_flashpart_t partitions[] = {
{
.dev = { .id = HAL_PARTITION_BOOTLOADER, },
.flash_id = 0,
.bloc... | YifuLiu/AliOS-Things | hardware/board/haas100/config/partition_conf.c | C | apache-2.0 | 2,637 |
/* Note: this is legacy partition definition, and will be removed with flash hal apis in future.*/
#include <stddef.h>
#include "aos/hal/flash.h"
/* Logic partition on flash devices */
const hal_logic_partition_t hal_partitions[] =
{
[HAL_PARTITION_BOOTLOADER] =
{
.partition_owner = HAL_FLASH_EMB... | YifuLiu/AliOS-Things | hardware/board/haas100/config/partition_conf_legacy.c | C | apache-2.0 | 4,108 |
/*
* Copyright (C) 2020-2023 Alibaba Group Holding Limited
*/
#ifndef _SAL_CONFIG_MODULE
#define _SAL_CONFIG_MODULE
#include "aos/hal/spi.h"
typedef struct {
spi_dev_t spi_dev;
} sal_device_config_t;
#endif
| YifuLiu/AliOS-Things | hardware/board/haas100/drivers/atcmd_config_module.h | C | apache-2.0 | 227 |
/*
* Copyright (C) 2020-2022 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include "aos/kernel.h"
#include "sys/socket.h"
#include <uservice/uservice.h>
#include <uservice/eventid.h>
#include "ulog/ulog.h"
#include "ch395_spi.h"
#include "ch395_cm... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/ch395_cmd.c | C | apache-2.0 | 27,920 |
/*
* Copyright (C) 2020-2022 Alibaba Group Holding Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef CH395_CMD_H
#define CH395_CMD_H
#ifdef __cplusplus
extern "C" {
#endif
/* ********************************************************************************************************************* */
/* 命令代码 ... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/ch395_cmd.h | C | apache-2.0 | 29,239 |
/*
* Copyright (C) 2020-2022 Alibaba Group Holding Limited
*/
#include <string.h>
#include "k_api.h"
#include "aos/kernel.h"
#include "lwip/err.h"
#include "lwip/netif.h"
#include "lwip/tcpip.h"
#include "lwip/ip_addr.h"
#include "netif/etharp.h"
#include "uservice/uservice.h"
#include "uservice/eventid.h"
#includ... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/ch395_lwip.c | C | apache-2.0 | 23,442 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include "k_api.h"
//#include "aos/kernel.h"
#include "ch395_spi.h"
#include "hal_iomux.h"
#include "hal_spi.h"
#include "hal_trace.h"
#include "hal_gpio.h"
#include "hal_iomux_haas1000.h"
#include "hal_cache.h"
#include "cmsis_os.h"
#include "cmsis.h"
#... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/ch395_spi.c | C | apache-2.0 | 15,358 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef CH395_SPI_H
#define CH395_SPI_H
#include "stdint.h"
#include "aos/hal/spi.h"
int32_t hal_ch395_spi_init(spi_dev_t *spi);
int32_t hal_spi_send_ch395(spi_dev_t *spi, const uint8_t *data, uint16_t size, uint32_t timeout);
int32_t hal_spi_send_and... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/ch395_spi.h | C | apache-2.0 | 622 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include "aos/kernel.h"
#include "ulog/ulog.h"
#include "di.h"
#include "hal_iomux_haas1000.h"
#define TAG "ex_di"
#define TIMER_CHECK_INTERVAL 10
#define DI_STABLE_COUNT 5
digital_input_value_change_notify g_di_notify_cb = NULL;... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/di.c | C | apache-2.0 | 7,367 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef GIDITAL_INPUT_H
#define GIDITAL_INPUT_H
#include "stdint.h"
#include "aos/hal/gpio.h"
enum en_di_port {
DI_PORT_0 = 0,
DI_PORT_1,
DI_PORT_2,
DI_PORT_3,
DI_PORT_SIZE
};
typedef int32_t (*digital_input_value_change_notify)(uin... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/di.h | C | apache-2.0 | 554 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include "aos/kernel.h"
#include "ulog/ulog.h"
#include "do.h"
#include "hal_iomux_haas1000.h"
#define TAG "ex_do"
typedef struct {
uint8_t installed;
gpio_dev_t gpio_dev;
} gpio_dev_ouput_t;
/*digital input gpio ... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/do.c | C | apache-2.0 | 2,600 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef GIDITAL_OUTPUT_H
#define GIDITAL_OUTPUT_H
#include "stdint.h"
#include "aos/hal/gpio.h"
enum en_do_port {
DO_PORT_0 = 0,
DO_PORT_1,
DO_PORT_2,
DO_PORT_3,
DO_PORT_SIZE
};
int32_t expansion_board_do_init(void);
int32_t expans... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/do.h | C | apache-2.0 | 407 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include "aos/kernel.h"
#include "ulog/ulog.h"
#include "exp_adc.h"
#include "hal_iomux_haas1000.h"
#define TAG "ex_adc"
typedef struct {
uint8_t installed;
adc_dev_t st_adc_info;
} exp_adc_dev_t;
#define ADC_DEFAU... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/exp_adc.c | C | apache-2.0 | 2,292 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef EXP_ADC_H
#define EXP_ADC_H
#include "stdint.h"
#include "aos/hal/adc.h"
enum en_exp_adc_port {
ADC_PORT_0 = 0,
ADC_PORT_1,
ADC_PORT_SIZE
};
int32_t expansion_board_adc_init(void);
int32_t expansion_board_do_high(uint8_t port);
#e... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/exp_adc.h | C | apache-2.0 | 324 |
#include <stdio.h>
//#include <aos/kernel.h>
#include "aos/hal/gpio.h"
#include "hal_iomux_haas1000.h"
#include "key.h"
static key_cfg_t key_cfg;
static gpio_dev_t key_gpio;
static void key_rising_edge_handle();
static long long key_falling_ms = 0;
static void key_falling_edge_handle()
{
hal_gpio_clear_irq(&key_g... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/key.c | C | apache-2.0 | 1,936 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef K_KEY_H
#define K_KEY_H
#include "stdint.h"
#define KEY_MIN_PRESS_MS 50
#define KEY_SHORT_PRESS_MS 2000
#define KEY_LONG_PRESS_MS 6000
typedef struct {
uint32_t short_press_max_ms; // default 2000
uint32_t long_press_min_ms; // ... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/key.h | C | apache-2.0 | 463 |
#include "aos/hal/gpio.h"
#include "hal_iomux_haas1000.h"
#include "led.h"
void led_switch(int id, led_e onoff)
{
int ret = 0;
gpio_dev_t led;
/* gpio port config */
switch (id) {
case 1: led.port = HAL_IOMUX_PIN_LED1;
break;
case 2: led.port = HAL_IOMUX_PIN_LED2;
... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/led.c | C | apache-2.0 | 1,008 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef K_LED_H
#define K_LED_H
typedef enum {
LED_OFF,
LED_ON
} led_e;
void led_switch(int id, led_e onoff);
#endif
| YifuLiu/AliOS-Things | hardware/board/haas100/drivers/led.h | C | apache-2.0 | 193 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include <k_api.h>
#include "ulog/ulog.h"
#include "aos/hal/i2c.h"
#include "pca9544.h"
#include "mux_i2c.h"
/*********************************************************
... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/mux_i2c.c | C | apache-2.0 | 6,393 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef MUX_I2C_H
#define MUX_I2C_H
/* Muxer I2C Port definition */
#define HAAS_MUX_I2C_PORT2 0x06
#define HAAS_MUX_I2C_PORT3 0x07
#define DFT_MCU_I2C_PORT 1
/*********************************************************
* @fun haas_mux_i2c_in... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/mux_i2c.h | C | apache-2.0 | 3,869 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include <k_api.h>
#include "ulog/ulog.h"
#include "aos/hal/uart.h"
/* RS485 Macro definition */
#define HAAS_RS485_UART_IDX 1
#define HAAS_RS485_BD_DFT 19200
/* s... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/rs485.c | C | apache-2.0 | 1,842 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef RS485_H
#define RS485_H
/* RS485 Macro definition */
#define HAAS_RS485_UART_IDX 1
#define HAAS_RS485_BD_DFT 19200
#define HAAS_RS485_DFT_CFG NULL
int32_t haas_rs485_init(uart_dev_t *uart_dev);
int32_t haas_rs485_send(const void *data, ui... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/rs485.h | C | apache-2.0 | 532 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include "aos/hal/rtc.h"
#include "rx8130ce.h"
/**
* This function will initialize the on board CPU real time clock
*
*
* @param[in] rtc rtc device
*
* @return 0 : on success, EIO : if an error occurred with any step
*/
int32_t hal_rtc_init(rt... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/rtc.c | C | apache-2.0 | 1,723 |
#include "aos/hal/gpio.h"
#include "hal_iomux_haas1000.h"
static gpio_dev_t wdg_gpio = {0, 0, NULL};
static int watchdog_flag = 0;
void watchdog_feeddog(void)
{
if(watchdog_flag == 1) {
return;
}
if(wdg_gpio.port == 0) {
wdg_gpio.port = HAL_IOMUX_PIN_P4_5;
wdg_gpio.config = OUTPU... | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/watchdog.c | C | apache-2.0 | 709 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef WATCHDOG_H
#define WATCHDOG_H
void watchdog_feeddog(void);
void watchdog_stopfeed(void);
#endif | YifuLiu/AliOS-Things | hardware/board/haas100/drivers/watchdog.h | C | apache-2.0 | 170 |
#include "stdio.h"
#include "aos/init.h"
#include "board.h"
#include <k_api.h>
#include "k_config.h"
#include <stdio.h>
#include <stdlib.h>
//#include "aos/yloop.h"
#ifdef AOS_COMP_YUNIT
#include "yts.h"
#endif
#include "ota_port.h"
//#include "apps.h"
#include "hal_trace.h"
#include "led.h"
/*
* If enable this macr... | YifuLiu/AliOS-Things | hardware/board/haas100/startup/startup.c | C | apache-2.0 | 5,829 |
/* File: startup_ARMCM3.S
* Purpose: startup file for Cortex-M3 devices. Should use with
* GCC for ARM Embedded Processors
* Version: V2.0
* Date: 16 August 2013
*
/* Copyright (c) 2011 - 2013 ARM LIMITED
All rights reserved.
Redistribution and use in source and binary forms, with or without
modificati... | YifuLiu/AliOS-Things | hardware/board/haas100/startup/startup_gcc.s | Unix Assembly | apache-2.0 | 8,530 |
linux_only_targets="athostapp blink coapapp helloworld http2app httpapp id2_app itls_app jsengine_app linkkit_gateway linkkitapp lwm2mapp meshapp modbus_demo mqttapp otaapp prov_app tls udata_demo.sensor_cloud_demo udata_demo.sensor_local_demo udata_demo.udata_cloud_demo udata_demo.udata_local_demo udataapp ulocation.b... | YifuLiu/AliOS-Things | hardware/board/haas100/ucube.py | Python | apache-2.0 | 332 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef BLE_CONFIG_H
#define BLE_CONFIG_H
/**
* CONFIG_BT: Tx thread stack size
*/
#ifndef CONFIG_BT_HCI_TX_STACK_SIZE
#define CONFIG_BT_HCI_TX_STACK_SIZE 512
#endif
#ifndef CONFIG_BT_HCI_RX_STACK_SIZE
#define CONFIG_BT_HCI_RX_STACK_SIZE 1024
#endif
... | YifuLiu/AliOS-Things | hardware/board/haas200/config/ble_config.h | C | apache-2.0 | 495 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#define HARDWARE_REVISION "V1.0"
#define MODEL "AmebaD"
#ifdef BOOTLOADER
#define STDIO_UART 0
#define STDIO_UART_BUADRATE 921600
#else
#define STDIO_UART 0
#define STDIO_UART_BUADRATE... | YifuLiu/AliOS-Things | hardware/board/haas200/config/board.h | C | apache-2.0 | 3,942 |
#ifndef _PCA10040_MESH_CONFIG_H_
#define _PCA10040_MESH_CONFIG_H_
/* Generic options */
#define CONFIG_BT_MESH_MODEL_KEY_COUNT 2
#define CONFIG_BT_MESH_MODEL_GROUP_COUNT 2
#define CONFIG_BT_MESH_APP_KEY_COUNT 1
#define CONFIG_BT_MESH_SUBNET_COUNT 2
#define CONFIG_BT_MESH_CRPL 5
#define CONFIG_BT_MESH_ADV_BUF_COUNT 32
... | YifuLiu/AliOS-Things | hardware/board/haas200/config/bt_mesh_opt.h | C | apache-2.0 | 1,706 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <k_api.h>
// #include "hal_gpio.h"
// #include "hal_sleep.h"
// #include "hal_timer.h"
#include "board.h"
//#include "watchdog.h"
#if RHINO_CONFIG_USER_HOOK
extern const k_mm_region_t g_mm_region[];
extern int g_region_num;
static int mem_in_hea... | YifuLiu/AliOS-Things | hardware/board/haas200/config/k_config.c | C | apache-2.0 | 1,632 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef K_CONFIG_H
#define K_CONFIG_H
/* kernel feature conf */
#ifndef RHINO_CONFIG_SEM
#define RHINO_CONFIG_SEM 1
#endif
#ifndef RHINO_CONFIG_QUEUE
#define RHINO_CONFIG_QUEUE 1
#endif
#ifndef RHINO_CONFIG_TASK_SEM... | YifuLiu/AliOS-Things | hardware/board/haas200/config/k_config.h | C | apache-2.0 | 3,701 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <aos/flashpart_core.h>
#include <aos/hal/flash.h>
static int flash_partitions_init(void)
{
static aos_flashpart_t partitions[] = {
{
.dev = { .id = HAL_PARTITION_BOOTLOADER, },
.flash_id = 0,
.bloc... | YifuLiu/AliOS-Things | hardware/board/haas200/config/partition_conf.c | C | apache-2.0 | 2,127 |
#include "aos/hal/gpio.h"
#include "gpio_test.h"
const qc_test_gpio_pair_t qc_test_gpio_pairs[1];
const int qc_test_gpio_pairs_num = 0;
| YifuLiu/AliOS-Things | hardware/board/haas200/gpio_test_pair.c | C | apache-2.0 | 150 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <aos/kernel.h>
#include "board.h"
#include "aos/hal/uart.h"
#include <aos/init.h>
static uart_dev_t uart_0;
void board_stduart_init()
{
uart_0.port = MICO_UART_1;
uart_0.config.baud_rate = 115200;
uart_0.config.dat... | YifuLiu/AliOS-Things | hardware/board/haas200/startup/board.c | C | apache-2.0 | 756 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include "aos/kernel.h"
#include <k_api.h>
#include <stdio.h>
#include <stdlib.h>
#include "aos/init.h"
#include "aos/kernel.h"
#include "aos/hal/wdg.h"
#include "aos/hal/gpio.h"
#include "rtl8721d.h"
#include "core_armv8mml.h"
#include "osdep_service.h... | YifuLiu/AliOS-Things | hardware/board/haas200/startup/startup.c | C | apache-2.0 | 4,042 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include <k_api.h>
#include "aos/hal/adc.h"
#include "aos/cli.h"
struct adc_check {
adc_dev_t st_adc_info;
uint32_t test_threshold;
uint32_t test_jitter;
};
... | YifuLiu/AliOS-Things | hardware/board/haaseduk1/board_test/adc_test.c | C | apache-2.0 | 3,288 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "k_api.h"
#include "aos/cli.h"
#include "uvoice_types.h"
#include "uvoice_event.h"
#include "uvoice_player.h"
#include "uvoice_recorder.h"
#include <aos/kernel.h>
#in... | YifuLiu/AliOS-Things | hardware/board/haaseduk1/board_test/audio_test.c | C | apache-2.0 | 3,858 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include <k_api.h>
#include "board.h"
#include "aos/cli.h"
#include <aos/ble.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/conn.h>
#include <atomic.h>
#include... | YifuLiu/AliOS-Things | hardware/board/haaseduk1/board_test/ble_test.c | C | apache-2.0 | 3,613 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include "aos/init.h"
#include "board.h"
#include <k_api.h>
#include "aos/cli.h"
#include "aos/hal/flash.h"
#include "do.h"
#include "led.h"
#include "key.h"
#include "h... | YifuLiu/AliOS-Things | hardware/board/haaseduk1/board_test/board_test.c | C | apache-2.0 | 16,635 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include "aos/init.h"
#include "board.h"
#include <k_api.h>
#include "aos/cli.h"
#include "led.h"
#include "key.h"
#include "hal_gpio.h"
#include "hal_iomux_haas1000.h"
... | YifuLiu/AliOS-Things | hardware/board/haaseduk1/board_test/key_test.c | C | apache-2.0 | 1,409 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include "aos/init.h"
#include "board.h"
#include <k_api.h>
#include "aos/cli.h"
#include "led.h"
#include "hal_gpio.h"
#include "hal_iomux_haas1000.h"
extern uint32_t ... | YifuLiu/AliOS-Things | hardware/board/haaseduk1/board_test/led_test.c | C | apache-2.0 | 2,132 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include "aos/init.h"
#include "board.h"
#include <k_api.h>
#include "aos/cli.h"
#include "led.h"
#include "hal_gpio.h"
#include "hal_iomux_haas1000.h"
#include "hal_oled... | YifuLiu/AliOS-Things | hardware/board/haaseduk1/board_test/oled_test.c | C | apache-2.0 | 1,637 |