Permalink
Browse files

Add stm3220g-eval board preset.

  • Loading branch information...
asterix24 committed Mar 7, 2014
1 parent 9996ad8 commit d472d46b538e2faa3f1394437360679a4eefbf46
Showing with 11,028 additions and 0 deletions.
  1. BIN boards/stm3220g-eval/.image.png
  2. +30 −0 boards/stm3220g-eval/.spec
  3. +3 −0 boards/stm3220g-eval/benchmark/.spec
  4. +3 −0 boards/stm3220g-eval/examples/.spec
  5. +153 −0 boards/stm3220g-eval/hw/hw_1wire.h
  6. +85 −0 boards/stm3220g-eval/hw/hw_afsk.h
  7. +51 −0 boards/stm3220g-eval/hw/hw_buzzer.h
  8. +125 −0 boards/stm3220g-eval/hw/hw_dataflash.c
  9. +47 −0 boards/stm3220g-eval/hw/hw_dataflash.h
  10. +71 −0 boards/stm3220g-eval/hw/hw_dc_motor.h
  11. +40 −0 boards/stm3220g-eval/hw/hw_eth.c
  12. +46 −0 boards/stm3220g-eval/hw/hw_eth.h
  13. +64 −0 boards/stm3220g-eval/hw/hw_ft245rl.h
  14. +65 −0 boards/stm3220g-eval/hw/hw_http.c
  15. +52 −0 boards/stm3220g-eval/hw/hw_http.h
  16. +84 −0 boards/stm3220g-eval/hw/hw_hx8347.h
  17. +127 −0 boards/stm3220g-eval/hw/hw_i2c_bitbang.h
  18. +73 −0 boards/stm3220g-eval/hw/hw_ili9225.h
  19. +71 −0 boards/stm3220g-eval/hw/hw_kbd.h
  20. +155 −0 boards/stm3220g-eval/hw/hw_lcd_32122a.h
  21. +157 −0 boards/stm3220g-eval/hw/hw_lcd_hd44.h
  22. +48 −0 boards/stm3220g-eval/hw/hw_led.h
  23. +233 −0 boards/stm3220g-eval/hw/hw_led_7seg.h
  24. +49 −0 boards/stm3220g-eval/hw/hw_lm75.h
  25. +53 −0 boards/stm3220g-eval/hw/hw_max31855.h
  26. +52 −0 boards/stm3220g-eval/hw/hw_mcp41.c
  27. +74 −0 boards/stm3220g-eval/hw/hw_mcp41.h
  28. +45 −0 boards/stm3220g-eval/hw/hw_ntc.c
  29. +135 −0 boards/stm3220g-eval/hw/hw_ntc.h
  30. +56 −0 boards/stm3220g-eval/hw/hw_pcint.h
  31. +45 −0 boards/stm3220g-eval/hw/hw_phase.c
  32. +79 −0 boards/stm3220g-eval/hw/hw_phase.h
  33. +78 −0 boards/stm3220g-eval/hw/hw_rit128x96.h
  34. +57 −0 boards/stm3220g-eval/hw/hw_sd.h
  35. +52 −0 boards/stm3220g-eval/hw/hw_ser.h
  36. +110 −0 boards/stm3220g-eval/hw/hw_sipo.h
  37. +80 −0 boards/stm3220g-eval/hw/hw_spi.h
  38. +308 −0 boards/stm3220g-eval/hw/hw_stepper.h
  39. +64 −0 boards/stm3220g-eval/hw/hw_tas5706a.h
  40. +121 −0 boards/stm3220g-eval/hw/hw_thermo.h
  41. +69 −0 boards/stm3220g-eval/hw/hw_tlv5618.h
  42. +52 −0 boards/stm3220g-eval/hw/hw_tmp123.h
  43. +58 −0 boards/stm3220g-eval/hw/hw_wm8731.h
  44. +70 −0 boards/stm3220g-eval/hw/kbd_map.h
  45. +58 −0 boards/stm3220g-eval/hw/mcp41_map.h
  46. +60 −0 boards/stm3220g-eval/hw/ntc_map.h
  47. +57 −0 boards/stm3220g-eval/hw/phase_map.h
  48. +60 −0 boards/stm3220g-eval/hw/pwm_map.h
  49. +56 −0 boards/stm3220g-eval/hw/thermo_map.h
  50. +3 −0 boards/stm3220g-eval/templates/.spec
  51. +9 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/.spec
  52. +116 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_1wire.h
  53. +149 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_adc.h
  54. +91 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_ads79xx.h
  55. +113 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_afsk.h
  56. +75 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_ax25.h
  57. +67 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_battfs.h
  58. +65 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_cli.h
  59. +71 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_context_switch.h
  60. +88 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_dac.h
  61. +55 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_dataflash.h
  62. +111 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_dc_motor.h
  63. +82 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_debug.h
  64. +64 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_eeprom.h
  65. +73 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_emb_flash.h
  66. +66 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_eth.h
  67. +156 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_fat.h
  68. +51 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_flash25.h
  69. +65 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_formatwr.h
  70. +67 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_gfx.h
  71. +51 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_hashtable.h
  72. +50 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_heap.h
  73. +64 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_http.h
  74. +83 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_i2c.h
  75. +137 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_i2s.h
  76. +54 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_ini_reader.h
  77. +58 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_kbd.h
  78. +61 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_keytag.h
  79. +61 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_kfile.h
  80. +63 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_lcd_32122a.h
  81. +69 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_lcd_hd44.h
  82. +80 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_led_7seg.h
  83. +57 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_lm75.h
  84. +1,863 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_lwip.h
  85. +53 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_md2.h
  86. +47 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_monitor.h
  87. +111 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_nand.h
  88. +85 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_nmea.h
  89. +66 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_parser.h
  90. +48 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_pcint.h
  91. +55 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_phase.h
  92. +71 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_pocketbus.h
  93. +113 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_proc.h
  94. +64 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_pwm.h
  95. +115 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_ramp.h
  96. +65 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_random.h
  97. +55 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_randpool.h
  98. +83 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_sd.h
  99. +47 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_sem.h
  100. +341 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_ser.h
  101. +47 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_signal.h
  102. +51 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_spi_bitbang.h
  103. +69 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_stepper.h
  104. +70 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_syslog.h
  105. +50 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_tas5706a.h
  106. +57 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_tcpsocket.h
  107. +57 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_tftp.h
  108. +71 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_thermo.h
  109. +67 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_timer.h
  110. +85 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_usb.h
  111. +78 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_usbkbd.h
  112. +78 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_usbmouse.h
  113. +78 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_usbser.h
  114. +47 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_wdt.h
  115. +133 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_wm8731.h
  116. +79 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/cfg/cfg_xmodem.h
  117. +107 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/main.c
  118. +79 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/project.bertos
  119. +94 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/stm3220g-eval_kernel.mk
  120. +43 −0 boards/stm3220g-eval/templates/stm3220g-eval_kernel/stm3220g-eval_kernel_user.mk
Binary file not shown.
View
@@ -0,0 +1,30 @@
name = "ST STM3220G-EVAL"
description = '''
<h1 align="center">ST STM3220G-EVALEvaluation</h1>
<p align="center">
<table border="0" cellpadding="5">
<tr>
<td rowspan="4"><img src="$path/.image.png"/></td>
<td><b>CPU</b></td>
<td>ST Microelectronics STM32F207IG</td>
</tr>
<tr>
<td><b>Clock</b></td>
<td>120MHz</td>
</tr>
<tr>
<td><b>Memory</b></td>
<td>512kB Flash, 128kB SRAM</td>
</tr>
<tr>
<td><b>Peripherals</b></td>
<td>timers, ADC, UART, SPI, I&#178;C, ETH, CAN, PWM, USB, DMA, SD card connector</td>
</tr>
</table>
</p>
<p>
STM3220G-EVAL&#174 Evaluation board for STM32 F2 series - with Cortex-M3 MCU. Visit the <a href="http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/PF250374">STM3220G-EVAL page</a> for more information.
</p>
'''
@@ -0,0 +1,3 @@
name='Benchmarks'
ord=2
description='Projects to measure different aspects of BeRTOS performance.'
@@ -0,0 +1,3 @@
name='Examples'
ord=1
description='Full working example projects.'
@@ -0,0 +1,153 @@
/**
* \file
* <!--
* This file is part of BeRTOS.
*
* Bertos is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Copyright (C) 2012 Robin Gilks
* -->
*
* \addtogroup ow_driver 1-wire driver
* \ingroup drivers
* \{
*
*
* \brief Driver for Dallas 1-wire devices
*
*
* \author Peter Dannegger (danni(at)specs.de)
* \author Martin Thomas (mthomas(at)rhrk.uni-kl.de)
* \author Robin Gilks <g8ecj@gilks.org>
*
* $WIZ$ module_name = "hw_1wire"
*/
#ifndef HW_1WIRE_H_
#define HW_1WIRE_H_
#include <stdint.h>
#include "cfg/cfg_arch.h"
#include "cfg/compiler.h"
#warning TODO:This is an example implementation, you must implement it!
/**
* \defgroup 1wirehw_api Hardware API
* Access to this low level driver is mostly from the device specific layer. However, some functions - especially the
* ow_set_bus() function operates at the lowest level.
*
* This functionality is especially useful when devices are hardwired and so removes the need to scan them for their addresses.
*
* API usage example:
* \code
* switch (sensor)
* {
* case SENSOR_LOW:
* // low level sensor (ground) on PE4
* ow_set_bus (&PINE, &PORTE, &DDRE, PE4);
* if (!ow_busy ()) // see if the conversion is complete
* {
* ow_ds18X20_read_temperature (NULL, &temperature_low); // read the result
* ow_ds18X20_start (NULL, false]); // start the conversion process again
* }
* break;
* case SENSOR_HIGH:
* // high level (roof) sensor on PE5
* ow_set_bus (&PINE, &PORTE, &DDRE, PE5);
* if (!ow_busy ()) // see if the conversion is complete
* {
* ow_ds18X20_read_temperature (NULL, &temperature_hi); // read the result
* ow_ds18X20_start (NULL, false); // start the conversion process again
* }
* break;
* \endcode
* \{
*/
/**
* Get the state of an input pin
*
* \return I/O pin value
*/
INLINE uint8_t ow_input_pin_state (void)
{
return 0;
}
/**
* Enable parasitic mode (set line high to power device)
*
*/
INLINE void ow_parasite_enable (void)
{
}
/**
* Disable parasitic mode
*
*/
INLINE void ow_parasite_disable (void)
{
}
/**
* Reset the bus, disable parasitic mode
*
* \return non zero = error code
*/
INLINE uint8_t ow_reset_intern (void)
{
return 0;
}
/**
* Function to output a bit
*
* \param b bit to output
* \param with_parasite_enable flag to indicate leave the data line active high
* \return bit read from I/O
*/
INLINE uint8_t ow_bit_io_intern (uint8_t b, uint8_t with_parasite_enable)
{
(void) (b);
(void) (with_parasite_enable);
return 0;
}
/**
* Set the port/data direction input pin dynamically
*
* \param in input port
* \param out output port
* \param ddr data direction register
* \param pin I/O pin (bit number on port)
*
*/
void ow_set_bus (volatile uint8_t * in, volatile uint8_t * out, volatile uint8_t * ddr, uint8_t pin)
{
(void) in;
(void) out;
(void) ddr;
(void) pin;
}
/** \} */ //defgroup 1wirehw_api
/** \} */ //addtogroup ow_driver
#endif
@@ -0,0 +1,85 @@
/**
* \file
* <!--
* This file is part of BeRTOS.
*
* Bertos is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* As a special exception, you may use this file as part of a free software
* library without restriction. Specifically, if other files instantiate
* templates or use macros or inline functions from this file, or you compile
* this file and link it with other files to produce an executable, this
* file does not by itself cause the resulting executable to be covered by
* the GNU General Public License. This exception does not however
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
* All Rights Reserved.
* -->
*
* \brief AFSK modem hardware-specific definitions.
*
* \author Francesco Sacchi <batt@develer.com>
*/
#ifndef HW_AFSK_H
#define HW_AFSK_H
#include "cfg/cfg_arch.h"
#warning TODO:This is an example implementation, you must implement it!
/**
* Initialize the specified channel of the ADC for AFSK needs.
* The adc should be configured to have a continuos stream of convertions.
* For every convertion there must be an ISR that read the sample
* and call afsk_adc_isr(), passing the context and the sample.
*
* \param ch channel to be used for AFSK demodulation.
* \param ctx AFSK context (\see Afsk). This parameter must be saved and
* passed back to afsk_adc_isr() for every convertion.
*/
#define AFSK_ADC_INIT(ch, ctx) do { (void)ch, (void)ctx; } while (0)
#define AFSK_STROBE_INIT() do { /* Implement me */ } while (0)
#define AFSK_STROBE_ON() do { /* Implement me */ } while (0)
#define AFSK_STROBE_OFF() do { /* Implement me */ } while (0)
/**
* Initialize the specified channel of the DAC for AFSK needs.
* The DAC has to be configured in order to call an ISR for every sample sent.
* The DAC doesn't have to start the IRQ immediatly but have to wait
* the AFSK driver to call AFSK_DAC_IRQ_START().
* The ISR must then call afsk_dac_isr() passing the AFSK context.
* \param ch DAC channel to be used for AFSK modulation.
* \param ctx AFSK context (\see Afsk). This parameter must be saved and
* passed back to afsk_dac_isr() for every convertion.
*/
#define AFSK_DAC_INIT(ch, ctx) do { (void)ch, (void)ctx; } while (0)
/**
* Start DAC convertions on channel \a ch.
* \param ch DAC channel.
*/
#define AFSK_DAC_IRQ_START(ch) do { (void)ch; /* Implement me */ } while (0)
/**
* Stop DAC convertions on channel \a ch.
* \param ch DAC channel.
*/
#define AFSK_DAC_IRQ_STOP(ch) do { (void)ch; /* Implement me */ } while (0)
#endif /* HW_AFSK_H */
@@ -0,0 +1,51 @@
/**
* \file
* <!--
* This file is part of BeRTOS.
*
* Bertos is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* As a special exception, you may use this file as part of a free software
* library without restriction. Specifically, if other files instantiate
* templates or use macros or inline functions from this file, or you compile
* this file and link it with other files to produce an executable, this
* file does not by itself cause the resulting executable to be covered by
* the GNU General Public License. This exception does not however
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* Copyright 2003, 2004, 2005, 2006, 2008 Develer S.r.l. (http://www.develer.com/)
* Copyright 2000 Bernie Innocenti
* All Rights Reserved.
* -->
*
* \brief Buzzer hardware-specific definitions
*
*
* \author Francesco Sacchi <batt@develer.com>
*/
#ifndef HW_BUZZER_H
#define HW_BUZZER_H
#warning TODO:This is an example implementation, you must implement it!
#define BUZZER_BIT 1
#define IS_BUZZER_ON 0
#define BUZZER_HW_INIT do { /* Implement me! */ } while (0)
#define BUZZER_ON do { /* Implement me! */ } while (0)
#define BUZZER_OFF do { /* Implement me! */ } while (0)
#endif /* HW_BUZZER_H */
Oops, something went wrong.

0 comments on commit d472d46

Please sign in to comment.