diff --git a/LICENSE b/LICENSE index 6c5a7a3434..4d0cb1fe53 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,21 @@ -Copyright (c) 2013 Ibrahim Abd Elkader -This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License. -To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ +The MIT License (MIT) + +Copyright (c) 2014 Ibrahim Abdelkader + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE diff --git a/src/omv/array.c b/src/omv/array.c index f7f2bef11e..3c4b9ff834 100644 --- a/src/omv/array.c +++ b/src/omv/array.c @@ -1,6 +1,10 @@ -/** - * Copyright (c) 2013 Ibrahim Abd Elkader - * See the file COPYING for copying permission. +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Dynamic array. + * */ #include #include diff --git a/src/omv/array.h b/src/omv/array.h index 51dc6fdbce..d1ee055352 100644 --- a/src/omv/array.h +++ b/src/omv/array.h @@ -1,6 +1,10 @@ -/** - * Copyright (c) 2013 Ibrahim Abd Elkader - * See the file COPYING for copying permission. +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Dynamic array. + * */ #ifndef __ARRAY_H__ #define __ARRAY_H__ @@ -18,4 +22,4 @@ void *array_pop_back(struct array *array); void array_sort(struct array *array, array_comp); void array_erase(struct array *array, int index); void array_resize(struct array *array, int index); -#endif//__ARRAY_H__ +#endif //__ARRAY_H__ diff --git a/src/omv/framebuffer.h b/src/omv/framebuffer.h index 1dff1761ac..9124b1dbc3 100644 --- a/src/omv/framebuffer.h +++ b/src/omv/framebuffer.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Global framebuffer pointer. + * + */ #ifndef __FRAMEBUFFER_H__ #define __FRAMEBUFFER_H__ #include "mutex.h" @@ -9,5 +17,6 @@ static struct framebuffer { int ready; mutex_t lock; uint8_t pixels[]; +// Note all instances of fb point to the same memory address. }*fb = (struct framebuffer *) &_fb_base; #endif /* __FRAMEBUFFER_H__ */ diff --git a/src/omv/img/blob.c b/src/omv/img/blob.c index 19d9a4f2ba..602c804531 100644 --- a/src/omv/img/blob.c +++ b/src/omv/img/blob.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Blob count. + * + */ #include "xalloc.h" #include "imlib.h" #include diff --git a/src/omv/img/fmath.c b/src/omv/img/fmath.c index a0a57fb446..c8f0e2187f 100644 --- a/src/omv/img/fmath.c +++ b/src/omv/img/fmath.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Fast approximate math functions. + * + */ #include "mdefs.h" #include "fmath.h" diff --git a/src/omv/img/fmath.h b/src/omv/img/fmath.h index a292aaf32a..29dfadb5ba 100644 --- a/src/omv/img/fmath.h +++ b/src/omv/img/fmath.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Fast approximate math functions. + * + */ #ifndef __FMATH_H__ #define __FMATH_H__ #include @@ -12,4 +20,4 @@ float fast_cbrtf(float d); float fast_fabsf(float d); float fast_log(float x); float fast_log2(float x); -#endif /* __FMATH_H__ */ +#endif // __FMATH_H__ diff --git a/src/omv/img/font.c b/src/omv/img/font.c index ce795983d3..ac561c69b7 100644 --- a/src/omv/img/font.c +++ b/src/omv/img/font.c @@ -1,25 +1,29 @@ -/******************************************************************************* -* name: Font -* family: Ubuntu -* size: 8 -* style: Normal -* included characters: !"#$%&'()*+,-./0123456789:;<=>?\x0040ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ -* antialiasing: yes -* type: monospaced -* encoding: ASMO-708 -* unicode bom: no -* -* preset name: Monochrome -* data block size: 8 bit(s), uint8_t -* RLE compression enabled: no -* conversion type: Monochrome, Diffuse Dither 128 -* bits per pixel: 1 -* -* preprocess: -* main scan direction: top_to_bottom -* line scan direction: forward -* inverse: yes -*******************************************************************************/ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Font data. + * + * Size: 8 Style: Normal + * Included characters: + * !"#$%&'()*+,-./0123456789:;<=>?\x0040ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ + * Antialiasing: yes + * Type: monospaced + * Encoding: ASMO-708 + * Unicode bom: no + * + * Preset name: Monochrome + * Data block size: 8 bit(s), uint8_t + * RLE compression enabled: no + * Conversion type: Monochrome, Diffuse Dither 128 + * Bits per pixel: 1 + * + * Preprocess: + * main scan direction: top_to_bottom + * line scan direction: forward + * inverse: yes + */ #include #include "font.h" diff --git a/src/omv/img/font.h b/src/omv/img/font.h index 1690fc0f9a..911e580802 100644 --- a/src/omv/img/font.h +++ b/src/omv/img/font.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Font data. + * + */ #ifndef __FONT_H__ #define __FONT_H__ typedef struct { @@ -6,4 +14,4 @@ typedef struct { uint8_t data[10]; } glyph_t; extern const glyph_t font[95]; -#endif //__FONT_H__ +#endif // __FONT_H__ diff --git a/src/omv/img/haar.c b/src/omv/img/haar.c index a8eb2a1269..e858973211 100644 --- a/src/omv/img/haar.c +++ b/src/omv/img/haar.c @@ -1,8 +1,7 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013 Ibrahim Abd Elkader - * This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License. - * To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. * * Viola-Jones face detector implementation. * Original Author: Francesco Comaschi (f.comaschi@tue.nl) diff --git a/src/omv/img/imlib.c b/src/omv/img/imlib.c index 0178a0d197..840fd01091 100644 --- a/src/omv/img/imlib.c +++ b/src/omv/img/imlib.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Image library. + * + */ #include #include #include diff --git a/src/omv/img/imlib.h b/src/omv/img/imlib.h index 2c3885ff4b..edcdb7dfb6 100644 --- a/src/omv/img/imlib.h +++ b/src/omv/img/imlib.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Image library. + * + */ #ifndef __IMLIB_H__ #define __IMLIB_H__ #include diff --git a/src/omv/img/integral.c b/src/omv/img/integral.c index c2c457d53b..c399f9606e 100644 --- a/src/omv/img/integral.c +++ b/src/omv/img/integral.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Integral image. + * + */ #include #include #include diff --git a/src/omv/img/jpeg.c b/src/omv/img/jpeg.c index 91a294fce2..33d0679b28 100644 --- a/src/omv/img/jpeg.c +++ b/src/omv/img/jpeg.c @@ -1,13 +1,11 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013 Ibrahim Abd Elkader - * This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License. - * To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. * - * Public domain Minimalistic JPEG baseline encoder + * Minimalistic JPEG baseline encoder. * - * */ - + */ #include "ff.h" #include "std.h" #include "xalloc.h" diff --git a/src/omv/img/kmeans.c b/src/omv/img/kmeans.c index 8eca358d5f..91d0d46131 100644 --- a/src/omv/img/kmeans.c +++ b/src/omv/img/kmeans.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Kmeans clustering. + * + */ #include #include #include diff --git a/src/omv/img/lbp.c b/src/omv/img/lbp.c index 84ebfc035f..0c42b32450 100644 --- a/src/omv/img/lbp.c +++ b/src/omv/img/lbp.c @@ -1,12 +1,11 @@ /* - * This file is part of the OpenMV project. - * Copyright (c) 2013 Ibrahim Abd Elkader - * This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License. - * To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ - * - * LBPu2⁄8,2 Operator. - * - */ +* This file is part of the OpenMV project. +* Copyright (c) 2013/2014 Ibrahim Abdelkader +* This work is licensed under the MIT license, see the file LICENSE for details. +* +* LBPu2⁄8,2 Operator. +* +*/ #include "imlib.h" #include "xalloc.h" diff --git a/src/omv/img/median.c b/src/omv/img/median.c index b495fba80e..5baf23d9cd 100644 --- a/src/omv/img/median.c +++ b/src/omv/img/median.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * O(N) median filter with histograms. + * + */ #include "xalloc.h" #include "imlib.h" #include diff --git a/src/omv/img/point.c b/src/omv/img/point.c index b4af5ed800..e8806eaf6b 100644 --- a/src/omv/img/point.c +++ b/src/omv/img/point.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * X,Y Point. + * + */ #include #include #include diff --git a/src/omv/img/ppm.c b/src/omv/img/ppm.c index c29465f3bf..418765681e 100644 --- a/src/omv/img/ppm.c +++ b/src/omv/img/ppm.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * PPM/PGM reader/writer. + * + */ #include #include #include "xalloc.h" diff --git a/src/omv/img/rectangle.c b/src/omv/img/rectangle.c index 5b3757e433..fe6c075860 100644 --- a/src/omv/img/rectangle.c +++ b/src/omv/img/rectangle.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Rectangle functions. + * + */ #include #include #include diff --git a/src/omv/img/template.c b/src/omv/img/template.c index f7f6c1d06a..eb116fd4b9 100644 --- a/src/omv/img/template.c +++ b/src/omv/img/template.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Template matching with NCC (Normalized Cross Correlation). + * + */ #include "xalloc.h" #include "imlib.h" #include diff --git a/src/omv/main.c b/src/omv/main.c index 28be82dd0a..989e25d6e0 100644 --- a/src/omv/main.c +++ b/src/omv/main.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * main function. + * + */ #include #include #include diff --git a/src/omv/mdefs.h b/src/omv/mdefs.h index 3184f4c3bd..a090ea13db 100644 --- a/src/omv/mdefs.h +++ b/src/omv/mdefs.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Misc macros. + * + */ #ifndef ALWAYS_INLINE #define ALWAYS_INLINE inline __attribute__((always_inline)) #endif diff --git a/src/omv/mutex.c b/src/omv/mutex.c index 923fdac4cc..c5b54dbc88 100644 --- a/src/omv/mutex.c +++ b/src/omv/mutex.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Mutex. + * + */ #include #include #include @@ -11,12 +19,12 @@ void mutex_init(mutex_t *mutex) void mutex_lock(mutex_t *mutex) { volatile int locked = 0; - /* wait for mutex to be unlocked */ + // Wait for mutex to be unlocked do { - /* attemp ex read */ + // Attempt exclusive read while (__LDREXW(mutex) != 0); - /* attempt to lock mutex */ + // Attempt to lock mutex locked = __STREXW(1, mutex); } while (locked != 0); __DMB(); @@ -30,7 +38,7 @@ int mutex_try_lock(mutex_t *mutex) return 0; } - /* attempt to lock mutex */ + // Attempt to lock mutex locked = __STREXW(1, mutex); __DMB(); diff --git a/src/omv/mutex.h b/src/omv/mutex.h index 1f1856dd4c..6782459407 100644 --- a/src/omv/mutex.h +++ b/src/omv/mutex.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Mutex. + * + */ #ifndef __MUTEX_H__ #define __MUTEX_H__ #include diff --git a/src/omv/ov2640.c b/src/omv/ov2640.c index d3cb8f2f3e..97ae40f25c 100644 --- a/src/omv/ov2640.c +++ b/src/omv/ov2640.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV2640 driver. + * + */ #include #include #include diff --git a/src/omv/ov2640.h b/src/omv/ov2640.h index eb01189402..b8325839c2 100644 --- a/src/omv/ov2640.h +++ b/src/omv/ov2640.h @@ -1,5 +1,13 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV2640 driver. + * + */ #ifndef __OV2640_H__ #define __OV2640_H__ #include "sensor.h" int ov2640_init(struct sensor_dev *sensor); -#endif /* __OV2640_H__ */ +#endif // __OV2640_H__ diff --git a/src/omv/ov2640_regs.h b/src/omv/ov2640_regs.h index afb9be37d8..2d501e5657 100644 --- a/src/omv/ov2640_regs.h +++ b/src/omv/ov2640_regs.h @@ -1,6 +1,12 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV2640 register definitions. + */ #ifndef __REG_REGS_H__ #define __REG_REGS_H__ -/* OV2640 Registers definition */ /* DSP register bank FF=0x00*/ #define QS 0x44 #define HSIZE 0x51 diff --git a/src/omv/ov9650.c b/src/omv/ov9650.c index a35c0bb558..0ea6112edf 100644 --- a/src/omv/ov9650.c +++ b/src/omv/ov9650.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV9650 driver. + * + */ #include #include #include diff --git a/src/omv/ov9650.h b/src/omv/ov9650.h index d71bb13b88..d1ac25b3a4 100644 --- a/src/omv/ov9650.h +++ b/src/omv/ov9650.h @@ -1,5 +1,13 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV9650 driver. + * + */ #ifndef __OV9650_H__ #define __OV9650_H__ #include "sensor.h" int ov9650_init(struct sensor_dev *sensor); -#endif /* __OV9650_H__ */ +#endif // __OV9650_H__ diff --git a/src/omv/ov9650_regs.h b/src/omv/ov9650_regs.h index df15e54e36..c11b472a70 100644 --- a/src/omv/ov9650_regs.h +++ b/src/omv/ov9650_regs.h @@ -1,6 +1,12 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV9650 register definitions. + */ #ifndef __REG_REGS_H__ #define __REG_REGS_H__ -/* OV9650 Registers definition */ #define REG_GAIN 0x00 #define REG_BLUE 0x01 #define REG_RED 0x02 diff --git a/src/omv/pincfg.h b/src/omv/pincfg.h index d776d55761..e05d9dac19 100644 --- a/src/omv/pincfg.h +++ b/src/omv/pincfg.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Pin definitions. + * + */ #ifndef __PINCFG_H__ #define __PINCFG_H__ #include diff --git a/src/omv/py/mlx90620.c b/src/omv/py/mlx90620.c index 7338bccfd3..00ea9bcf06 100644 --- a/src/omv/py/mlx90620.c +++ b/src/omv/py/mlx90620.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * MLX90620 Python module. + * + */ #include #include #include diff --git a/src/omv/py/mlx90620.h b/src/omv/py/mlx90620.h index 455cef592d..3e3188a82a 100644 --- a/src/omv/py/mlx90620.h +++ b/src/omv/py/mlx90620.h @@ -1,5 +1,13 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * MLX90620 Python module. + * + */ #ifndef __MLX90620_H__ #define __MLX90620_H__ const mp_obj_module_t *py_mlx90620_init(); -#endif /* __PY_mlx_H__ */ +#endif // __PY_mlx_H__ diff --git a/src/omv/py/mp.h b/src/omv/py/mp.h index bdcc231b35..c0f4b8c42b 100644 --- a/src/omv/py/mp.h +++ b/src/omv/py/mp.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * MicroPython header. + * + */ #ifndef __MP_H__ #define __MP_H__ #include @@ -24,4 +32,4 @@ #include "usb.h" #include "storage.h" #include "sdcard.h" -#endif /* __MP_H__ */ +#endif // __MP_H__ diff --git a/src/omv/py/py_assert.h b/src/omv/py/py_assert.h index 2f6fe1a56a..f73d747a43 100644 --- a/src/omv/py/py_assert.h +++ b/src/omv/py/py_assert.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * MP assertions. + * + */ #ifndef __PY_ASSERT_H__ #define __PY_ASSERT_H__ #define PY_ASSERT_TRUE(cond) \ @@ -34,4 +42,4 @@ } \ } while(0) -#endif /* __PY_ASSERT_H__ */ +#endif // __PY_ASSERT_H__ diff --git a/src/omv/py/py_clock.c b/src/omv/py/py_clock.c index da17f1eadd..39d95b6223 100644 --- a/src/omv/py/py_clock.c +++ b/src/omv/py/py_clock.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Clock Python module. + * + */ #include #include "systick.h" #include "py_clock.h" diff --git a/src/omv/py/py_clock.h b/src/omv/py/py_clock.h index 640fbd969e..144f013423 100644 --- a/src/omv/py/py_clock.h +++ b/src/omv/py/py_clock.h @@ -1,4 +1,12 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Clock Python module. + * + */ #ifndef __PY_CLOCK_H__ #define __PY_CLOCK_H__ mp_obj_t py_clock(); -#endif /* __PY_CLOCK_H__ */ +#endif // __PY_CLOCK_H__ diff --git a/src/omv/py/py_file.c b/src/omv/py/py_file.c index 4c809d104b..c47490c27b 100644 --- a/src/omv/py/py_file.c +++ b/src/omv/py/py_file.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * File Python module. + * + */ #include #include "py_assert.h" #include "py_file.h" diff --git a/src/omv/py/py_file.h b/src/omv/py/py_file.h index fe5e4ab174..c5c3a272a1 100644 --- a/src/omv/py/py_file.h +++ b/src/omv/py/py_file.h @@ -1,8 +1,15 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * File Python module. + * + */ #ifndef __PY_FILE_H__ #define __PY_FILE_H__ #include const char *ffs_strerror(FRESULT res); mp_obj_t py_file_open(mp_obj_t path, mp_obj_t mode); void *py_file_cobj(mp_obj_t file); -#endif /* __PY_FILE_H__ */ - +#endif // __PY_FILE_H__ diff --git a/src/omv/py/py_gpio.c b/src/omv/py/py_gpio.c index 1d9c891992..c145851dce 100644 --- a/src/omv/py/py_gpio.c +++ b/src/omv/py/py_gpio.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * GPIO Python module. + * + */ #include "mp.h" #include "pincfg.h" #include "py_gpio.h" diff --git a/src/omv/py/py_gpio.h b/src/omv/py/py_gpio.h index 571157a7b2..ec7ae4c4d7 100644 --- a/src/omv/py/py_gpio.h +++ b/src/omv/py/py_gpio.h @@ -1,5 +1,13 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * GPIO Python module. + * + */ #ifndef __PY_GPIO_H__ #define __PY_GPIO_H__ const mp_obj_module_t *py_gpio_init(); -#endif /* __PY_GPIO_H__ */ +#endif // __PY_GPIO_H__ diff --git a/src/omv/py/py_image.c b/src/omv/py/py_image.c index 4a112d4c09..28e3649ce5 100644 --- a/src/omv/py/py_image.c +++ b/src/omv/py/py_image.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Image Python module. + * + */ #include "mp.h" #include "imlib.h" #include "array.h" diff --git a/src/omv/py/py_image.h b/src/omv/py/py_image.h index 880e545cd4..6d26c16416 100644 --- a/src/omv/py/py_image.h +++ b/src/omv/py/py_image.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Image Python module. + * + */ #ifndef __PY_IMAGE_H__ #define __PY_IMAGE_H__ #include "imlib.h" @@ -9,5 +17,5 @@ mp_obj_t py_image(int width, int height, int bpp, void *pixels); mp_obj_t py_image_from_struct(image_t *image); void *py_image_cobj(mp_obj_t image); int py_image_descriptor_from_roi(image_t *image, const char *path, rectangle_t *roi); -#endif /* __PY_IMAGE_H__ */ +#endif // __PY_IMAGE_H__ diff --git a/src/omv/py/py_led.c b/src/omv/py/py_led.c index ab40bdaf30..6077f693c9 100644 --- a/src/omv/py/py_led.c +++ b/src/omv/py/py_led.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * LED Python module. + * + */ #include "mp.h" #include "pincfg.h" #include "py_led.h" diff --git a/src/omv/py/py_led.h b/src/omv/py/py_led.h index af67f7bd1c..a38e61f4fc 100644 --- a/src/omv/py/py_led.h +++ b/src/omv/py/py_led.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * LED Python module. + * + */ #ifndef __PY_LED_H__ #define __PY_LED_H__ enum led_id { @@ -14,4 +22,4 @@ void led_init(enum led_id color); void led_toggle(enum led_id color); void led_state(enum led_id color, int state); const mp_obj_module_t *py_led_init(); -#endif /* __PY_LED_H__ */ +#endif // __PY_LED_H__ diff --git a/src/omv/py/py_select.c b/src/omv/py/py_select.c index c885966adc..8b588baacd 100644 --- a/src/omv/py/py_select.c +++ b/src/omv/py/py_select.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Select Python module. + * + */ #include #include #include diff --git a/src/omv/py/py_select.h b/src/omv/py/py_select.h index b8b48c31be..5ae04fc3a1 100644 --- a/src/omv/py/py_select.h +++ b/src/omv/py/py_select.h @@ -1,4 +1,12 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Select Python module. + * + */ #ifndef __PY_SELECT_H__ #define __PY_SELECT_H__ const mp_obj_module_t *py_select_init(); -#endif /* __PY_SELECT_H__ */ +#endif // __PY_SELECT_H__ diff --git a/src/omv/py/py_sensor.c b/src/omv/py/py_sensor.c index 36b137441c..fefa8ec085 100644 --- a/src/omv/py/py_sensor.c +++ b/src/omv/py/py_sensor.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Sensor Python module. + * + */ #include "mp.h" #include "sccb.h" #include "sensor.h" diff --git a/src/omv/py/py_sensor.h b/src/omv/py/py_sensor.h index b991537301..9add13daea 100644 --- a/src/omv/py/py_sensor.h +++ b/src/omv/py/py_sensor.h @@ -1,4 +1,12 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Sensor Python module. + * + */ #ifndef __PY_SENSOR_H__ #define __PY_SENSOR_H__ const mp_obj_module_t *py_sensor_init(); -#endif /* __PY_SENSOR_H__ */ +#endif // __PY_SENSOR_H__ diff --git a/src/omv/py/py_socket.c b/src/omv/py/py_socket.c index 708f791310..fe20e57aaa 100644 --- a/src/omv/py/py_socket.c +++ b/src/omv/py/py_socket.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Socket Python module. + * + */ #include #include #include @@ -7,6 +15,7 @@ #include #include #include + #define MAX_FD (8) #define MAX_ADDRSTRLEN (128) #define MAX_RX_PACKET (CC3000_RX_BUFFER_SIZE-CC3000_MINIMAL_RX_SIZE-1) diff --git a/src/omv/py/py_socket.h b/src/omv/py/py_socket.h index 38e106d3fa..4fbe7356ed 100644 --- a/src/omv/py/py_socket.h +++ b/src/omv/py/py_socket.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Socket Python module. + * + */ #ifndef __PY_SOCKET_H__ #define __PY_SOCKET_H__ typedef struct { @@ -6,4 +14,4 @@ typedef struct { } socket_t; extern const mp_obj_type_t socket_type; const mp_obj_module_t *py_socket_init(); -#endif /* __PY_SOCKET_H__ */ +#endif // __PY_SOCKET_H__ diff --git a/src/omv/py/py_spi.c b/src/omv/py/py_spi.c index 9984c0a437..dc3d861cdb 100644 --- a/src/omv/py/py_spi.c +++ b/src/omv/py/py_spi.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * SPI Python module. + * + */ #include "mp.h" #include "pincfg.h" #include "spi.h" diff --git a/src/omv/py/py_spi.h b/src/omv/py/py_spi.h index 00afe13709..ff4c5e27f7 100644 --- a/src/omv/py/py_spi.h +++ b/src/omv/py/py_spi.h @@ -1,5 +1,13 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * SPI Python module. + * + */ #ifndef __PY_SPI_H__ #define __PY_SPI_H__ const mp_obj_module_t *py_spi_init(); -#endif /* __PY_SPI_H__ */ +#endif // __PY_SPI_H__ diff --git a/src/omv/py/py_time.c b/src/omv/py/py_time.c index 37403a71a4..c40e695f3f 100644 --- a/src/omv/py/py_time.c +++ b/src/omv/py/py_time.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Time Python module. + * + */ #include #include "systick.h" #include "py_time.h" diff --git a/src/omv/py/py_time.h b/src/omv/py/py_time.h index a6b97c57ac..89b50fa165 100644 --- a/src/omv/py/py_time.h +++ b/src/omv/py/py_time.h @@ -1,4 +1,12 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Time Python module. + * + */ #ifndef __PY_TIME_H__ #define __PY_TIME_H__ const mp_obj_module_t *py_time_init(); -#endif /* __PY_TIME_H__ */ +#endif // __PY_TIME_H__ diff --git a/src/omv/py/py_wlan.c b/src/omv/py/py_wlan.c index a0a6fd9bfd..d2753a4662 100644 --- a/src/omv/py/py_wlan.c +++ b/src/omv/py/py_wlan.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * WLAN Python module. + * + */ #include #include #include diff --git a/src/omv/py/py_wlan.h b/src/omv/py/py_wlan.h index 24c8c61228..b7536b1715 100644 --- a/src/omv/py/py_wlan.h +++ b/src/omv/py/py_wlan.h @@ -1,6 +1,14 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * WLAN Python module. + * + */ #ifndef __PY_WLAN_H__ #define __PY_WLAN_H__ int wlan_get_fd_state(int fd); void wlan_clear_fd_state(int fd); const mp_obj_module_t *py_wlan_init(); -#endif /* __PY_WLAN_H__ */ +#endif // __PY_WLAN_H__ diff --git a/src/omv/py/uart.c b/src/omv/py/uart.c index 28ae5bfcd8..cd9d030b45 100644 --- a/src/omv/py/uart.c +++ b/src/omv/py/uart.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * UART Python module. + * + */ #include "mp.h" #include "pincfg.h" #include "uart.h" diff --git a/src/omv/py/uart.h b/src/omv/py/uart.h index 53933ef668..d2b9711aac 100644 --- a/src/omv/py/uart.h +++ b/src/omv/py/uart.h @@ -1,5 +1,13 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * UART Python module. + * + */ #ifndef __UART_H__ #define __UART_H__ const mp_obj_module_t *py_uart_init(); -#endif /* __UART_H__ */ +#endif // __UART_H__ diff --git a/src/omv/rcc_ctrl.c b/src/omv/rcc_ctrl.c index 6af4003e00..c25dd8b409 100644 --- a/src/omv/rcc_ctrl.c +++ b/src/omv/rcc_ctrl.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * RCC (Reset and Clock Control). + * + */ #include #include #include diff --git a/src/omv/rcc_ctrl.h b/src/omv/rcc_ctrl.h index 11f3bc773d..aacf53dff0 100644 --- a/src/omv/rcc_ctrl.h +++ b/src/omv/rcc_ctrl.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * RCC (Reset and Clock Control). + * + */ #ifndef __RCC_CTRL_H__ #define __RCC_CTRL_H__ enum sysclk_freq { @@ -8,4 +16,4 @@ enum sysclk_freq { SYSCLK_240_MHZ, }; void rcc_ctrl_set_frequency(enum sysclk_freq); -#endif //__RCC_CTRL_H__ +#endif // __RCC_CTRL_H__ diff --git a/src/omv/rng.c b/src/omv/rng.c index f44fa4e042..f42807675a 100644 --- a/src/omv/rng.c +++ b/src/omv/rng.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * RNG (Random Number Generator). + * + */ #include #include "rng.h" diff --git a/src/omv/rng.h b/src/omv/rng.h index da39fee26c..3157ad45d8 100644 --- a/src/omv/rng.h +++ b/src/omv/rng.h @@ -1,5 +1,13 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * RNG (Random Number Generator). + * + */ #ifndef __RNG_H__ #define __RNG_H__ void rng_init(); uint32_t rng_randint(uint32_t min, uint32_t max); -#endif /* __RNG_H__ */ +#endif // __RNG_H__ diff --git a/src/omv/sccb.c b/src/omv/sccb.c index 1da0fc2481..f5bc666e0d 100644 --- a/src/omv/sccb.c +++ b/src/omv/sccb.c @@ -1,9 +1,15 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * SCCB (I2C like) driver. + * + */ #include #include "sccb.h" #include "pincfg.h" #include "mdefs.h" - -/* I2C defs */ #define SCCB_FREQ (30000) #define SLAVE_ADDR (0x60) #define TIMEOUT (100000) diff --git a/src/omv/sccb.h b/src/omv/sccb.h index d4241c3e42..4253aaceb6 100644 --- a/src/omv/sccb.h +++ b/src/omv/sccb.h @@ -1,7 +1,15 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * SCCB (I2C like) driver. + * + */ #ifndef __SCCB_H__ #define __SCCB_H__ #include void SCCB_Init(); uint8_t SCCB_Read(uint8_t addr); uint8_t SCCB_Write(uint8_t addr, uint8_t data); -#endif /* __SCCB_H__ */ +#endif // __SCCB_H__ diff --git a/src/omv/sdcard_sdio.c b/src/omv/sdcard_sdio.c index 7be2b0dd00..56a25a008c 100644 --- a/src/omv/sdcard_sdio.c +++ b/src/omv/sdcard_sdio.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * SD card SDIO driver. + * + */ #include #include #include "mdefs.h" diff --git a/src/omv/sdcard_spi.c b/src/omv/sdcard_spi.c index b2ffc30151..0e5bfe54db 100644 --- a/src/omv/sdcard_spi.c +++ b/src/omv/sdcard_spi.c @@ -1,11 +1,4 @@ -/*-----------------------------------------------------------------------*/ -/* MMC/SDSC/SDHC (in SPI mode) control module for STM32 Version 1.1.6 */ -/* (C) Martin Thomas, 2010 - based on the AVR MMC module (C)ChaN, 2007 */ -/*-----------------------------------------------------------------------*/ - -/* Copyright (c) 2010, Martin Thomas, ChaN - All rights reserved. - +/* Copyright (c) 2010, Martin Thomas, ChaN All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/src/omv/sdram.c b/src/omv/sdram.c index d1e9cf2e0d..8439874444 100644 --- a/src/omv/sdram.c +++ b/src/omv/sdram.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * SDRAM Driver. + * + */ #include #include #include diff --git a/src/omv/sdram.h b/src/omv/sdram.h index 75366ce590..f4e7915ad1 100644 --- a/src/omv/sdram.h +++ b/src/omv/sdram.h @@ -1,5 +1,13 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * SDRAM Driver. + * + */ #ifndef __SDRAM_H__ #define __SDRAM_H__ bool sdram_init(); bool sdram_test(); -#endif //__SDRAM_H__ +#endif // __SDRAM_H__ diff --git a/src/omv/sensor.c b/src/omv/sensor.c index e853f6d162..caeba4ec82 100644 --- a/src/omv/sensor.c +++ b/src/omv/sensor.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Sensor abstraction layer. + * + */ #include #include #include "sccb.h" diff --git a/src/omv/sensor.h b/src/omv/sensor.h index 7c505ee538..26348a885d 100644 --- a/src/omv/sensor.h +++ b/src/omv/sensor.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Sensor abstraction layer. + * + */ #ifndef __SENSOR_H__ #define __SENSOR_H__ #include diff --git a/src/omv/soft_i2c.c b/src/omv/soft_i2c.c index e39bdb02f8..5f5da25f81 100644 --- a/src/omv/soft_i2c.c +++ b/src/omv/soft_i2c.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Software I2C implementation. + * + */ #include #include #include "soft_i2c.h" diff --git a/src/omv/soft_i2c.h b/src/omv/soft_i2c.h index 8251ee1fc8..f509166192 100644 --- a/src/omv/soft_i2c.h +++ b/src/omv/soft_i2c.h @@ -1,7 +1,15 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Software I2C implementation. + * + */ #ifndef __SOFT_I2C_H__ #define __SOFT_I2C_H__ #include void soft_i2c_init(); int soft_i2c_read_bytes(uint8_t slv_addr, uint8_t *buf, int len, bool stop); int soft_i2c_write_bytes(uint8_t slv_addr, uint8_t *buf, int len, bool stop); -#endif //__SOFT_I2C_H__ +#endif // __SOFT_I2C_H__ diff --git a/src/omv/stm32f4xx.ld.S b/src/omv/stm32f4xx.ld.S index 30fdc675ee..c2fb4bbc47 100755 --- a/src/omv/stm32f4xx.ld.S +++ b/src/omv/stm32f4xx.ld.S @@ -1,5 +1,10 @@ -/** - * Linker script for STM32F4xx Devices with 1MB FLASH, 192KB RAM (64KB CCM) +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Linker script for STM32F4xx Devices. + * */ /* Entry Point */ diff --git a/src/omv/stm32f4xx_hal_msp.c b/src/omv/stm32f4xx_hal_msp.c index 5f68926848..c812a566cc 100644 --- a/src/omv/stm32f4xx_hal_msp.c +++ b/src/omv/stm32f4xx_hal_msp.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * HAL MSP. + * + */ #include "pincfg.h" #include diff --git a/src/omv/stm32f4xx_it.c b/src/omv/stm32f4xx_it.c index 8c71700a4a..2eff66e602 100644 --- a/src/omv/stm32f4xx_it.c +++ b/src/omv/stm32f4xx_it.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Interrupt handlers. + * + */ #include #include #include diff --git a/src/omv/systick.c b/src/omv/systick.c index 8be2370889..063095b5e8 100644 --- a/src/omv/systick.c +++ b/src/omv/systick.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Systick driver. + * + */ #include #include #include diff --git a/src/omv/systick.h b/src/omv/systick.h index 6e32d99fea..b05dcc4d68 100644 --- a/src/omv/systick.h +++ b/src/omv/systick.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Systick driver. + * + */ #ifndef __SYSTICK_H__ #define __SYSTICK_H__ #include @@ -5,4 +13,4 @@ int systick_init(); void systick_sleep(uint32_t ms); uint32_t systick_current_millis(); bool sys_tick_has_passed(uint32_t stc, uint32_t delay_ms); -#endif /* __SYSTICK_H__ */ +#endif // __SYSTICK_H__ diff --git a/src/omv/usbdbg.c b/src/omv/usbdbg.c index afab9cdfbd..5babe259db 100644 --- a/src/omv/usbdbg.c +++ b/src/omv/usbdbg.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * USB debug support. + * + */ #include "mp.h" #include "imlib.h" #include "sensor.h" diff --git a/src/omv/usbdbg.h b/src/omv/usbdbg.h index 0013e1550d..43beef9b55 100644 --- a/src/omv/usbdbg.h +++ b/src/omv/usbdbg.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * USB debug support. + * + */ #ifndef __USBDBG_H__ #define __USBDBG_H__ enum usbdbg_cmd { diff --git a/src/omv/xalloc.c b/src/omv/xalloc.c index e49f5b1d6a..4245edc0a6 100644 --- a/src/omv/xalloc.c +++ b/src/omv/xalloc.c @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Memory allocation functions. + * + */ #include #include "mdefs.h" #include "xalloc.h" diff --git a/src/omv/xalloc.h b/src/omv/xalloc.h index 0fe59577c0..75cce71134 100644 --- a/src/omv/xalloc.h +++ b/src/omv/xalloc.h @@ -1,3 +1,11 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Memory allocation functions. + * + */ #ifndef __XALLOC_H__ #define __XALLOC_H__ #include @@ -6,4 +14,4 @@ void *xalloc(uint32_t size); void *xalloc0(uint32_t size); void xfree(void *ptr); void *xrealloc(void *ptr, uint32_t size); -#endif /* __XALLOC_H__ */ +#endif // __XALLOC_H__