This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void si4463(uint8_t argc, char **argv) { | |
enum { | |
CMD_SEND_INDEX, | |
CMD_RECV_INDEX, | |
CMD_STAT_INDEX, | |
CMD_PROP_INDEX, | |
CMD_TEST_INDEX, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example use of the iterator. Intended for the ESP32 console | |
// Caveat emptor: No express or implied warranty, functionality | |
// or fitness for any particular purpose | |
.... | |
static int nvsdump_cmd(int argc, char** argv) | |
{ | |
bool all = argc == 2 && *argv[1] == '*'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: **************************************************************************** | |
:: Copyright (c) 2018 Armink (armink.ztl@gmail.com) | |
:: This file is add for RT-Thread ENV initialization command | |
:: Happy coding on RT-Thread ENV :) | |
:: **************************************************************************** | |
:: 1. copy this file to cmder_mini/config/ | |
:: 2. change your ENV path to ENV_ROOT on this file; | |
:: 3. add cmder_mini folder to windows PATH; | |
:: 4. execute 'Cmder.exe /REGISTER ALL' on windows command line by administrator permission; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* FreeModbus Libary: STM32 Port | |
* Copyright (C) 2013 Armink <armink.ztl@gmail.com> | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* FreeModbus Libary: STM32 Port | |
* Copyright (C) 2013 Armink <armink.ztl@gmail.com> | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* RT-Thread config file */ | |
#ifndef __RTTHREAD_CFG_H__ | |
#define __RTTHREAD_CFG_H__ | |
/* RT_NAME_MAX*/ | |
#define RT_NAME_MAX 24 | |
/* RT_ALIGN_SIZE*/ | |
#define RT_ALIGN_SIZE 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo ntpdate cn.ntp.org.cn | |
sudo hwclock --systohc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Jump to user application. | |
* | |
* @return result | |
*/ | |
IbootErrCode iap_jump_to_app(void) { | |
uint32_t jump_addr; | |
void (*jump_to_app)(void); | |
/* iap_app_addr must be initialize */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void rtt_flash_driver_bench(void) { | |
uint32_t start_time, time_cast; | |
static char buffer[4096] = { 0 }; | |
size_t i; | |
w25qxx_init("rtt_w25q_driver", "spi10"); | |
rt_device_t rtt_w25q_driver = rt_device_find("rtt_w25q_driver"); | |
rt_device_t rtt_sfud_driver = rt_device_find("W25Q64"); | |
rt_device_open(rtt_w25q_driver, RT_DEVICE_OFLAG_RDWR); | |
rt_device_open(rtt_sfud_driver, RT_DEVICE_OFLAG_RDWR); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File : usart.c | |
* This file is part of RT-Thread RTOS | |
* COPYRIGHT (C) 2006-2013, RT-Thread Development Team | |
* | |
* The license and distribution terms for this file may be | |
* found in the file LICENSE in this distribution or at | |
* http://www.rt-thread.org/license/LICENSE | |
* | |
* Change Logs: |
NewerOlder