mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-22 20:59:03 +00:00
add pikascript components and example
This commit is contained in:
parent
d43977f414
commit
3bbbab5e5b
60 changed files with 5703 additions and 0 deletions
4
examples/pikascript/CMakeLists.txt
Normal file
4
examples/pikascript/CMakeLists.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
set(TARGET_REQUIRED_LIBS pikascript)
|
||||
set(mains main.c)
|
||||
generate_bin()
|
||||
|
36
examples/pikascript/main.c
Normal file
36
examples/pikascript/main.c
Normal file
|
@ -0,0 +1,36 @@
|
|||
/**
|
||||
* @file main.c
|
||||
* @brief
|
||||
*
|
||||
* Copyright (c) 2021 Bouffalolab team
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership. The
|
||||
* ASF licenses this file to you 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 applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*
|
||||
*/
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_uart.h"
|
||||
#include <stdio.h>
|
||||
#include <pikaScript.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
bflb_platform_init(0);
|
||||
printf("[info]: BL706 system init ok!\r\n");
|
||||
PikaObj* pikaMain = pikaScriptInit();
|
||||
while (1) {
|
||||
bflb_platform_delay_ms(100);
|
||||
}
|
||||
}
|
5
examples/pikascript/readme.md
Normal file
5
examples/pikascript/readme.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
```bash
|
||||
|
||||
$ make APP=pikascript BOARD=b706_avb
|
||||
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue