code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/* * shell_dump.c */ #include "private.h" #include "lub/dump.h" /*--------------------------------------------------------- */ void clish_shell_dump(clish_shell_t * this) { clish_view_t *v; clish_ptype_t *t; clish_var_t *var; lub_bintree_iterator_t iter; lub_dump_printf("shell(%p)\n", this); lub_dump_printf("...
zzysjtu-klish
clish/shell/shell_dump.c
C
bsd
1,103
/* * shell_startup.c */ #include "private.h" #include <assert.h> #include "tinyrl/tinyrl.h" #include "lub/string.h" /*----------------------------------------------------------------------- */ int clish_shell_timeout_fn(tinyrl_t *tinyrl) { clish_context_t *context = tinyrl__get_context(tinyrl); clish_shell_t *thi...
zzysjtu-klish
clish/shell/shell_wdog.c
C
bsd
1,740
/* * shell_pwd.c */ #include <stdlib.h> #include <assert.h> #include "lub/string.h" #include "private.h" /*--------------------------------------------------------- */ void clish_shell__init_pwd(clish_shell_pwd_t *pwd) { pwd->line = NULL; pwd->view = NULL; /* initialise the tree of vars */ lub_bintree_init(&pwd...
zzysjtu-klish
clish/shell/shell_pwd.c
C
bsd
3,713
/* * shell_tinyrl.c * * This is a specialisation of the tinyrl_t class which maps the readline * functionality to the CLISH environment. */ #include "private.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <errno.h> #include <ctype.h> #include "tinyrl/tinyrl.h" #include...
zzysjtu-klish
clish/shell/shell_tinyrl.c
C
bsd
15,681
/* * ------------------------------------------------------ * shell_expat.c * * This file implements the means to read an XML encoded file * and populate the CLI tree based on the contents. It implements * the clish_xml API using the expat XML parser * * expat is not your typicall XML parser. It does not work ...
zzysjtu-klish
clish/shell/shell_expat.c
C
bsd
11,106
/* * shell_new.c */ #include "private.h" #include <assert.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include "lub/string.h" #include "lub/db.h" /*-------------------------------------------------------- */ static void clish_shell_init(clish_shell_t * this, const clish_shell_hooks_t * hooks...
zzysjtu-klish
clish/shell/shell_new.c
C
bsd
5,314
/* * ------------------------------------------------------ * shell_roxml.c * * This file implements the means to read an XML encoded file * and populate the CLI tree based on the contents. It implements * the clish_xml API using roxml * ------------------------------------------------------ */ #ifdef HAVE_CO...
zzysjtu-klish
clish/shell/shell_roxml.c
C
bsd
6,217
/* * shell.h - private interface to the shell class */ #include "lub/bintree.h" #include "tinyrl/tinyrl.h" #include "clish/shell.h" #include "clish/pargv.h" #include "clish/var.h" #include "clish/action.h" /*------------------------------------- * PRIVATE TYPES *------------------------------------- */ /*--------...
zzysjtu-klish
clish/shell/private.h
C
bsd
4,777
/* * xmlapi.h * * private klish file: internal XML API */ #ifndef clish_xmlapi_included_h #define clish_xmlapi_included_h #include <stdlib.h> #include <errno.h> #include <stdio.h> /* need for FILE */ /* * XML document (opaque type) * The real type is defined by the selected external API */ typedef struct cl...
zzysjtu-klish
clish/shell/xmlapi.h
C
bsd
4,583
/* * shell_help.c */ #include "private.h" #include "clish/types.h" #include "lub/string.h" #include <stdio.h> #include <string.h> #include <ctype.h> /*--------------------------------------------------------- */ /* * Provide a detailed list of the possible command completions */ static void available_commands(cli...
zzysjtu-klish
clish/shell/shell_help.c
C
bsd
4,274
#include <stdlib.h> #include <assert.h> #include "lub/string.h" #include "private.h" /*----------------------------------------------------------- */ static int clish_shell_push(clish_shell_t * this, FILE * file, const char *fname, bool_t stop_on_error) { /* Allocate a control node */ clish_shell_file_t *node = ma...
zzysjtu-klish
clish/shell/shell_file.c
C
bsd
2,031
/* * shell_parse.c */ #include <string.h> #include <assert.h> #include "lub/string.h" #include "lub/system.h" #include "private.h" /*----------------------------------------------------------- */ clish_pargv_status_t clish_shell_parse( clish_shell_t *this, const char *line, const clish_command_t **ret_cmd, clish...
zzysjtu-klish
clish/shell/shell_parse.c
C
bsd
8,900
/* * ------------------------------------------------------ * shell_xml.c * * This file implements the means to read an XML encoded file and populate the * CLI tree based on the contents. * ------------------------------------------------------ */ #include "private.h" #include "xmlapi.h" #include "lub/string.h" ...
zzysjtu-klish
clish/shell/shell_xml.c
C
bsd
27,396
/* * shell_var.c */ #include <stdlib.h> #include <assert.h> #include <string.h> #include <ctype.h> #include "lub/string.h" #include "private.h" /*----------------------------------------------------------- */ /* * search the current viewid string for a variable */ void clish_shell__expand_viewid(const char *view...
zzysjtu-klish
clish/shell/shell_var.c
C
bsd
12,418
/* * clish_script_callback.c * * Callback hook to action a shell script. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <signal.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "l...
zzysjtu-klish
clish/callback_script.c
C
bsd
4,052
/* * command.h */ #ifndef _clish_command_h #define _clish_command_h typedef struct clish_command_s clish_command_t; #include "lub/bintree.h" #include "lub/argv.h" #include "clish/types.h" #include "clish/pargv.h" #include "clish/view.h" #include "clish/param.h" #include "clish/action.h" #include "clish/config.h" /...
zzysjtu-klish
clish/command.h
C
bsd
4,478
/* * ptype.c */ #include "private.h" #include "lub/string.h" #include "lub/ctype.h" #include "lub/argv.h" #include <stdlib.h> #include <string.h> #include <assert.h> #include <limits.h> #include <stdio.h> /*--------------------------------------------------------- * PRIVATE METHODS *------------------------------...
zzysjtu-klish
clish/ptype/ptype.c
C
bsd
14,572
/* * ptype_dump.c */ #include "private.h" #include "lub/dump.h" /*--------------------------------------------------------- */ void clish_ptype_dump(clish_ptype_t * this) { lub_dump_printf("ptype(%p)\n", this); lub_dump_indent(); lub_dump_printf("name : %s\n", clish_ptype__get_name(this)); lub_dump_printf(...
zzysjtu-klish
clish/ptype/ptype_dump.c
C
bsd
689
/* * ptype.h */ #include "clish/pargv.h" #include "lub/bintree.h" #include "lub/argv.h" #include <sys/types.h> #include <regex.h> typedef struct clish_ptype_integer_s clish_ptype_integer_t; struct clish_ptype_integer_s { int min; int max; }; typedef struct clish_ptype_select_s clish_ptype_select_t; struct clish_...
zzysjtu-klish
clish/ptype/private.h
C
bsd
695
/* * pargv.h */ #include "clish/pargv.h" #include "clish/param.h" /*--------------------------------------------------------- */ struct clish_parg_s { const clish_param_t *param; char *value; }; struct clish_pargv_s { unsigned pargc; clish_parg_t **pargv; }; /*----------------------------------------------------...
zzysjtu-klish
clish/pargv/private.h
C
bsd
329
/* * pargv_dump.c */ #include "private.h" #include "lub/dump.h" /*--------------------------------------------------------- */ void clish_parg_dump(const clish_parg_t * this) { lub_dump_printf("parg(%p)\n", this); lub_dump_indent(); lub_dump_printf("name : %s\n", clish_parg__get_name(this)); lub_dump_printf("pty...
zzysjtu-klish
clish/pargv/pargv_dump.c
C
bsd
869
/* * pargv.c */ #include "private.h" #include "lub/string.h" #include "lub/argv.h" #include "lub/system.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <assert.h> /*--------------------------------------------------------- */ /* * Search for the specified parameter and return its value */ s...
zzysjtu-klish
clish/pargv/pargv.c
C
bsd
3,760
/* * command.c * * This file provides the implementation of a command definition */ #include "private.h" #include "clish/types.h" #include "lub/bintree.h" #include "lub/string.h" #include <assert.h> #include <stdlib.h> #include <string.h> #include <stdio.h> /*------------------------------------------------...
zzysjtu-klish
clish/command/command.c
C
bsd
12,432
/* * command_dump.c */ #include "lub/dump.h" #include "private.h" /*--------------------------------------------------------- */ void clish_command_dump(const clish_command_t * this) { unsigned i; lub_dump_printf("command(%p)\n", this); lub_dump_indent(); lub_dump_printf("name : %s\n", this->name); lub...
zzysjtu-klish
clish/command/command_dump.c
C
bsd
1,123
/* * command.h */ #include "clish/command.h" /*--------------------------------------------------------- * PRIVATE TYPES *--------------------------------------------------------- */ struct clish_command_s { lub_bintree_node_t bt_node; char *name; char *text; clish_paramv_t *paramv; clish_action_t *action; ...
zzysjtu-klish
clish/command/private.h
C
bsd
648
/* * private.h */ #ifndef _clish_private_h #define _clish_private_h #include "lub/c_decl.h" #endif /* _clish_private_h */
zzysjtu-klish
clish/private.h
C
bsd
127
/* * action.h */ #ifndef _clish_action_h #define _clish_action_h typedef struct clish_action_s clish_action_t; #include "lub/bintree.h" /*===================================== * ACTION INTERFACE *===================================== */ /*----------------- * meta functions *----------------- */ clish_action_t ...
zzysjtu-klish
clish/action.h
C
bsd
1,040
/* * param.h */ /** \ingroup clish \defgroup clish_param param @{ \brief This class represents an instance of a parameter type. Parameter instances are assocated with a command line and used to validate the the arguments which a user is inputing for a command. */ #ifndef _clish_param_h #define _clish_param_h type...
zzysjtu-klish
clish/param.h
C
bsd
3,872
/* * view.h */ /** \ingroup clish \defgroup clish_view view @{ \brief This class is a container of commands. A particular CLI session may contain a number of different views. Each view may contain its own specific commands as well as those available at a global scope. */ #ifndef _clish_view_h #define _clish_view...
zzysjtu-klish
clish/view.h
C
bsd
2,610
/* * action.h */ #include "clish/action.h" /*--------------------------------------------------------- * PRIVATE TYPES *--------------------------------------------------------- */ struct clish_action_s { char *script; char *builtin; char *shebang; };
zzysjtu-klish
clish/action/private.h
C
bsd
261
/* * action_dump.c */ #include "lub/dump.h" #include "private.h" /*--------------------------------------------------------- */ void clish_action_dump(const clish_action_t *this) { lub_dump_printf("action(%p)\n", this); lub_dump_indent(); lub_dump_printf("script : %s\n", this->script ? this->script : "(null)...
zzysjtu-klish
clish/action/action_dump.c
C
bsd
571
/* * action.c * * This file provides the implementation of a action definition */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "private.h" #include "lub/bintree.h" #include "lub/string.h" /*--------------------------------------------------------- * PRIVATE METHODS *-...
zzysjtu-klish
clish/action/action.c
C
bsd
2,644
/* * config_dump.c */ #include "lub/dump.h" #include "private.h" /*--------------------------------------------------------- */ void clish_config_dump(const clish_config_t *this) { char *op; lub_dump_printf("config(%p)\n", this); lub_dump_indent(); switch (this->op) { case CLISH_CONFIG_NONE: op = "NONE"; ...
zzysjtu-klish
clish/config/config_dump.c
C
bsd
642
/* * clish/config/private.h */ #include "clish/config.h" /*--------------------------------------------------------- * PRIVATE TYPES *--------------------------------------------------------- */ struct clish_config_s { clish_config_op_t op; /* CONFIG operation */ unsigned short priority; char *pattern; char *...
zzysjtu-klish
clish/config/private.h
C
bsd
389
/* * config.c * * This file provides the implementation of a config definition */ #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> #include "lub/types.h" #include "lub/string.h" #include "private.h" /*--------------------------------------------------------- * PRIVATE METHODS ...
zzysjtu-klish
clish/config/config.c
C
bsd
4,151
/* * pargv.h */ /** \ingroup clish \defgroup clish_pargv pargv @{ \brief This class represents a vector of command line arguments. */ #ifndef _clish_pargv_h #define _clish_pargv_h typedef enum { CLISH_LINE_OK, CLISH_LINE_PARTIAL, CLISH_BAD_CMD, CLISH_BAD_PARAM, CLISH_BAD_HISTORY } clish_pargv_status_t; typ...
zzysjtu-klish
clish/pargv.h
C
bsd
1,901
/* * config.h */ #ifndef _clish_config_h #define _clish_config_h #include "lub/types.h" typedef struct clish_config_s clish_config_t; /* Possible CONFIG operations */ typedef enum { CLISH_CONFIG_NONE, CLISH_CONFIG_SET, CLISH_CONFIG_UNSET, CLISH_CONFIG_DUMP } clish_config_op_t; /*==============================...
zzysjtu-klish
clish/config.h
C
bsd
1,897
/* * var_dump.c */ #include "lub/dump.h" #include "clish/action.h" #include "private.h" /*--------------------------------------------------------- */ void clish_var_dump(const clish_var_t *this) { lub_dump_printf("var(%p)\n", this); lub_dump_indent(); lub_dump_printf("name : %s\n", this->name); lub_dump_p...
zzysjtu-klish
clish/var/var_dump.c
C
bsd
553
/* * var/private.h */ #include "clish/var.h" /*--------------------------------------------------------- * PRIVATE TYPES *--------------------------------------------------------- */ struct clish_var_s { lub_bintree_node_t bt_node; char *name; bool_t dynamic; char *value; char *saved; /* Saved value of stati...
zzysjtu-klish
clish/var/private.h
C
bsd
362
/* * var.c * * This file provides the implementation of the "var" class */ #include <assert.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "lub/string.h" #include "private.h" /*--------------------------------------------------------- * PRIVATE METHODS *----------------------------------...
zzysjtu-klish
clish/var/var.c
C
bsd
3,465
/* * clish_access_callback.c * * * callback hook to check whether the current user is a * member of the specified group (access string) */ #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <assert.h> #include <string.h> #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ ...
zzysjtu-klish
clish/callback_access.c
C
bsd
1,861
/* * ptype.h */ /** \ingroup clish \defgroup clish_ptype ptype @{ \brief This class represents a parameter type. Types are a syntatical template which parameters reference. */ #ifndef _clish_ptype_h #define _clish_ptype_h typedef struct clish_ptype_s clish_ptype_t; #include "lub/types.h" #include "lub/bintree...
zzysjtu-klish
clish/ptype.h
C
bsd
4,118
#!/bin/sh set -x -e mkdir -p m4 autoreconf -fvi
zzysjtu-klish
autogen.sh
Shell
bsd
49
#include <stm32f10x.h> #include "led.h" const bsp_led_core_group_type led_core_group[ledCoreMax]= { {LED_USER_CORE_PORT, LED_USER_CORE_PIN } }; const bsp_led_bottom_group_type led_bottom_group[ledBottomMax]= { {LED_USER_BOTTOM_PORT, LED_USER_BOTTOM_PIN } }; void bsp_led_gpio_init(void) { GPI...
zzqq5414-jk-rabbit
sw/all_demo/led.c
C
asf20
2,314
#ifndef USART_PRESENT #define USART_PRESENT #include <stm32f10x_usart.h> /* ------------------------------------------------------------------------------------------------- */ /* BSP USART */ /* ------------------------------------------------------------------------------------------------- */ typedef...
zzqq5414-jk-rabbit
sw/all_demo/usart.h
C
asf20
1,616
#ifndef _OV7670_H #define _OV7670_H //#include "hw_config.h" #include "sccb.h" ////////////////////////////////////// #undef CAM_PCLK #undef CAM_HREF #define OV7670_SW_V2 #define CAMERA_OV7670_PORT GPIOE // FIFO Setting #define FIFO_RD_PIN GPIO_Pin_3 #define FIFO_WRST_PIN GPIO_Pin...
zzqq5414-jk-rabbit
sw/all_demo/ov7670.h
C
asf20
10,169
#ifndef RTC_PRESENT #define RTC_PRESENT typedef enum { rtcServiceFunction, rtcServiceFunctionMAX } rtc_register_function_type; typedef void (*rtc_register_function)(void); typedef struct _rtc_service_function_type { rtc_register_function_type service_type; rtc_register_function r...
zzqq5414-jk-rabbit
sw/all_demo/rtc.h
C
asf20
832
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_pwr.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Connection/disconnection & power management header ******************...
zzqq5414-jk-rabbit
sw/all_demo/usb_pwr.h
C
asf20
2,244
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_istr.c * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : ISTR events interrupt service routines *****************************...
zzqq5414-jk-rabbit
sw/all_demo/usb_istr.c
C
asf20
11,753
#include "stm32f10x.h" #include <stm32f10x_spi.h> #include "hw_config.h" #include "mmc_sd.h" #include "spi.h" #include "usart.h" u8 SD_Type = 0; // SD card type // 2010/5/13 // Add some delay, measured to support TF card (1G/2G), Kingston 2G, 4G 16G SD Card // 2010/6/24 // Added u8 SD_GetResponse (u...
zzqq5414-jk-rabbit
sw/all_demo/mmc_sd.c
C
asf20
25,902
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_desc.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Descriptor Header for Joystick Mouse Demo **************************...
zzqq5414-jk-rabbit
sw/all_demo/usb_desc.h
C
asf20
3,030
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_prop.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : All processings related to Joystick Mouse demo *********************...
zzqq5414-jk-rabbit
sw/all_demo/usb_prop.h
C
asf20
3,122
#ifndef LED_PRESENT #define LED_PRESENT #include "hw_config.h" #include <stm32f10x.h> typedef enum { ledUserCore = 0x00, ledCoreMax } BSP_LED_CORE_Def; typedef enum { ledUserBottom = 0x00, ledBottomMax } BSP_LED_BOTTOM_Def; #define LED_USER_CORE_PORT GPIOC #define LED_USER_CORE_PIN ...
zzqq5414-jk-rabbit
sw/all_demo/led.h
C
asf20
1,224
/*---------------------------------------------------------------------------/ / FatFs - FAT file system module include file R0.07c (C)ChaN, 2009 /----------------------------------------------------------------------------/ / FatFs module is an open source software to implement FAT file system to / small e...
zzqq5414-jk-rabbit
sw/all_demo/ff.h
C
asf20
34,621
#ifndef NRF24L01_PRESENT #define NRF24L01_PRESENT #include "hw_config.h" #include <stm32f10x.h> ////////////////////////////////////////////////////////////////////////////////////////////////////////// // NRF24L01 register operation commands #define NRF24L01_READ_REG 0x00 // read configuration register, ...
zzqq5414-jk-rabbit
sw/all_demo/nrf24l01.h
C
asf20
5,517
#include "stm32f10x.h" #include "queue.h" /* ------------------------------------------------------------------------ ** For Win32 Systems, users may want to enable mutual exclusion for the ** queue operations, this provides a mutex per queue along with locking ** and unlocking primitives. ** --------------...
zzqq5414-jk-rabbit
sw/all_demo/queue.c
C
asf20
1,781
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : hw_config.c * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Hardware Configuration & Setup ************************************...
zzqq5414-jk-rabbit
sw/all_demo/hw_config.c
C
asf20
15,506
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : stm32f10x_conf.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Library configuration file. **********************************...
zzqq5414-jk-rabbit
sw/all_demo/stm32f10x_conf.h
C
asf20
3,416
#ifndef TIMER_PRESENT #define TIMER_PRESENT typedef enum { timer1ServiceFunction, timer2ServiceFunction, timerServiceFunctionMAX } timer_register_function_type; typedef void (*timer_register_function)(void); typedef struct _timer_service_function_type { timer_register_function_ty...
zzqq5414-jk-rabbit
sw/all_demo/timer.h
C
asf20
894
/*----------------------------------------------------------------------- / Low level disk interface modlue include file R0.05 (C)ChaN, 2007 /-----------------------------------------------------------------------*/ #ifndef _DISKIO #define _READONLY 0 /* 1: Read-only mode */ #define _USE_IOCTL 1 #includ...
zzqq5414-jk-rabbit
sw/all_demo/diskio.h
C
asf20
1,828
/*-------------------------------------------*/ /* Integer type definitions for FatFs module */ /*-------------------------------------------*/ #ifndef _INTEGER #if 0 #include <windows.h> #else /* These types must be 16-bit, 32-bit or larger integer */ typedef int INT; typedef unsigned int UINT; /*...
zzqq5414-jk-rabbit
sw/all_demo/integer.h
C
asf20
835
#ifndef SPI_PRESENT #define SPI_PRESENT /* ------------------------------------------------------------------------------------------------- */ /* BSP SPI */ /* ------------------------------------------------------------------------------------------------- */ #define SPI_SPEED_2 0 #define SPI_SP...
zzqq5414-jk-rabbit
sw/all_demo/spi.h
C
asf20
1,101
#ifndef _MMC_SD_H_ #define _MMC_SD_H_ //#include <stm32f10x_lib.h> // Mini STM32 development board // SD card driver // Punctuality Atomic @ ALIENTEK // 2010/6/13 // SD data transmission whether to release the bus after the end of the macro definition #define NO_RELEASE 0 #define RELEASE 1 // SD Card Type...
zzqq5414-jk-rabbit
sw/all_demo/mmc_sd.h
C
asf20
3,497
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : stm32f10x_it.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : This file contains the headers of the interrupt handlers. ******...
zzqq5414-jk-rabbit
sw/all_demo/stm32f10x_it.h
C
asf20
2,201
/*-----------------------------------------------------------------------*/ /* Low level disk I/O module skeleton for FatFs (C)ChaN, 2007 */ /*-----------------------------------------------------------------------*/ /* by grqd_xp */ /* This is a...
zzqq5414-jk-rabbit
sw/all_demo/diskio.c
C
asf20
6,191
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : platform_config.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Evaluation board specific configuration file. ***************...
zzqq5414-jk-rabbit
sw/all_demo/platform_config.h
C
asf20
1,613
/*----------------------------------------------------------------------------/ / FatFs - FAT file system module R0.07c (C)ChaN, 2009 /-----------------------------------------------------------------------------/ / FatFs module is an open source software to implement FAT file system to / small...
zzqq5414-jk-rabbit
sw/all_demo/ff.c
C
asf20
99,200
#include <stm32f10x.h> #include "key.h" #include "ov7670.h" const bsp_key_group_type key_group[keyMax]= { {KEY_USER_PORT, KEY1_USER_PIN } #ifdef STM32_MIDDLE_HW_VER1 ,{KEY_USER_PORT, KEY2_USER_PIN } #endif }; exti_key_service_function_type gbl_ar_exti_key_service[extiKeyServiceFunctionMAX] = ...
zzqq5414-jk-rabbit
sw/all_demo/key.c
C
asf20
6,315
/******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** * File Name : main.h * Author : MCD Application Team * Version : V2.0.0 * Date : 04/27/2009 * Description : Header for main.c module ***********************************************...
zzqq5414-jk-rabbit
sw/all_demo/main.h
C
asf20
5,351
#ifndef __LCD_H #define __LCD_H #define ID_AM 001 #define LCD_PORT GPIOC // LCD Setting #define LCD_CS_PIN GPIO_Pin_9 #define LCD_RS_PIN GPIO_Pin_8 #define LCD_WR_PIN GPIO_Pin_7 #define LCD_RD_PIN GPIO_Pin_6 #define LCD_RST_PIN GPIO_Pin_11 // 2.4/2.8 inch TFT LCD driver // Sup...
zzqq5414-jk-rabbit
sw/all_demo/lcd.h
C
asf20
8,119
#include "stm32f10x.h" #include "hw_config.h" #include "rtc.h" #include "usart.h" //#include <stm32f10x_rtc.h> //#include <stm32f10x_bkp.h> #define RTCClockSource_LSE /* Use the external 32.768 KHz oscillator as RTC clock source */ //#define RTCClockOutput_Enable /* RTC Clock/64 is output on tamper pin(...
zzqq5414-jk-rabbit
sw/all_demo/rtc.c
C
asf20
6,142
/* ********************************************************************************************************* * INCLUDE FILES ********************************************************************************************************* */ #include <stdio.h> #include "stm32...
zzqq5414-jk-rabbit
sw/all_demo/spi.c
C
asf20
2,838
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : stm32f10x_it.c * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Main Interrupt Service Routines. * This fil...
zzqq5414-jk-rabbit
sw/all_demo/stm32f10x_it.c
C
asf20
8,933
#ifndef KEY_PRESENT #define KEY_PRESENT #include "hw_config.h" #include <stm32f10x.h> typedef enum { key1User = 0x00, #ifdef STM32_MIDDLE_HW_VER1 key2User = 0x01, #endif keyMax } BSP_KEY_Def; #define KEY_USER_PORT GPIOA #define KEY1_USER_PIN GPIO_Pin_2 #ifdef STM32_MIDDLE_HW_VER1 ...
zzqq5414-jk-rabbit
sw/all_demo/key.h
C
asf20
2,594
#ifndef QUEUE_H #define QUEUE_H #include "hw_config.h" #include <stm32f10x.h> typedef struct struct_q_node { struct struct_q_node *prev; struct struct_q_node *next; s16 len; void* data; } q_node_type; typedef struct struct_q_list { struct struct_q_node *first; struct struct_q_node *last;...
zzqq5414-jk-rabbit
sw/all_demo/queue.h
C
asf20
860
/* ********************************************************************************************************* * INCLUDE FILES ********************************************************************************************************* */ #include <stdio.h> #include <string...
zzqq5414-jk-rabbit
sw/all_demo/usart.c
C
asf20
8,898
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_pwr.c * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Connection/disconnection & power management *************************...
zzqq5414-jk-rabbit
sw/all_demo/usb_pwr.c
C
asf20
8,008
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_prop.c * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : All processings related to Joystick Mouse Demo *********************...
zzqq5414-jk-rabbit
sw/all_demo/usb_prop.c
C
asf20
14,088
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_istr.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : This file includes the peripherals header files in the * ...
zzqq5414-jk-rabbit
sw/all_demo/usb_istr.h
C
asf20
3,903
#ifndef _SCCB_H #define _SCCB_H #include "stm32f10x.h" #define SCCB_USER_PORT GPIOE #define SCCB_SCL_PIN GPIO_Pin_7 #define SCCB_SDA_PIN GPIO_Pin_8 #define SCCB_SIO_C 7 // 4 SCL #define SCCB_SIO_D 8 // 5 SDA #define SIO_C_SET {GPIOE->BSRR =(1<<SCCB_SIO_C);} #define SIO_C_CLR {GPIOE->BRR = ...
zzqq5414-jk-rabbit
sw/all_demo/sccb.h
C
asf20
1,315
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_desc.c * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Descriptors for Joystick Mouse Demo ********************************...
zzqq5414-jk-rabbit
sw/all_demo/usb_desc.c
C
asf20
8,420
#ifndef __FONT_H #define __FONT_H // Common ASCII table // offset 32 // ASCII character set // offset 32 // Size: 12 * 6 const unsigned char asc2_1206[95][12]={ {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/ {0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x00,0x04,0x00,0x00},/*"!",1*/ ...
zzqq5414-jk-rabbit
sw/all_demo/font.h
C
asf20
16,180
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_conf.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Joystick Mouse demo configuration file *****************************...
zzqq5414-jk-rabbit
sw/all_demo/usb_conf.h
C
asf20
8,480
/* /* * newlib_stubs.c * * Created on: 2 Nov 2010 * Author: nanoage.co.uk */ #include <errno.h> #include <sys/stat.h> #include <sys/times.h> #include <sys/unistd.h> #include "stm32f10x_usart.h" #ifndef STDOUT_USART #define STDOUT_USART 2 #endif #ifndef STDERR_USART #define STDERR_USART ...
zzqq5414-jk-rabbit
sw/all_demo/newlib_stubs.c
C
asf20
6,327
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_pwr.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Connection/disconnection & power management header ******************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/usb_pwr.h
C
asf20
2,265
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : memory.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Memory management layer **********************************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/memory.h
C
asf20
1,788
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : nand_if.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : All functions related to the NAND process ***************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/nand_if.h
C
asf20
2,788
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : hw_config.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Hardware Configuration & Setup ************************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/hw_config.h
C
asf20
2,340
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_bot.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : BOT State Machine management ****************************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/usb_bot.h
C
asf20
3,461
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : mass_mal.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Header for mass_mal.c file. ****************************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/mass_mal.h
C
asf20
1,902
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : fsmc_nand.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Header for fsmc_nand.c file. **************************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/fsmc_nand.h
C
asf20
4,768
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_desc.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Descriptor Header for Mass Storage Device **************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/usb_desc.h
C
asf20
2,471
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_prop.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : All processing related to Mass Storage Demo (Endpoint 0) ***********...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/usb_prop.h
C
asf20
2,858
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : stm32f10x_conf.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Library configuration file. **********************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/stm32f10x_conf.h
C
asf20
3,427
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : stm32f10x_it.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : This file contains the headers of the interrupt handlers. ******...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/stm32f10x_it.h
C
asf20
2,240
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : platform_config.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Evaluation board specific configuration file. ***************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/platform_config.h
C
asf20
2,649
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_scsi.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : All processing related to the SCSI commands ************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/usb_scsi.h
C
asf20
6,564
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_istr.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : This file includes the peripherals header files in the * ...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/usb_istr.h
C
asf20
3,903
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_conf.h * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Mass Storage Demo configuration header *****************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/inc/usb_conf.h
C
asf20
7,787
/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : usb_endp.c * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Endpoint routines **************************************************...
zzqq5414-jk-rabbit
sw/lib/STM32_USB-FS-Device_Lib_V3.2.1/Project/Mass_Storage/src/usb_endp.c
C
asf20
2,393