Commit Graph

33 Commits

Author SHA1 Message Date
Felix Ruess 0f014a2562 [mcu] move mcu peripheral event functions to common mcu_event 2015-03-05 17:01:34 +01:00
Felix Ruess 603b40a513 [airborne] fix code style on (nearly) all files
```
find sw/airborne/ -regextype posix-extended -regex 'sw/airborne/.*(chibios-libopencm3|lpcusb|efsl|lpc21/include|lpc21/test/bootloader|subsystems/ahrs)' -prune -o -name '*.[ch]' -exec ./fix_code_style.sh {} +
```

ignored ahrs (for now) to not create unnecessary conflicts for some pending changes..
2014-12-17 02:15:06 +01:00
Felix Ruess e6040cf012 [airborne] cleanup USE_USB_SERIAL 2014-12-06 16:15:41 +01:00
Felix Ruess e2181a69d7 [i2c] also check I2C3 2014-10-06 22:37:53 +02:00
Freek van Tienen aae158b084 [datalink] Fix specific UDP datalink to transparent
with error message when using an old version of telemetry udp
2014-09-29 15:06:30 +02:00
Felix Ruess 81d3759f73 [i2c] use #if USE_I2Cx instead of #ifdef 2014-05-18 13:44:03 +02:00
Felix Ruess 6f22616cf7 [uart] if USE_UARTx instead of defined USE_UARTx 2013-12-29 05:09:28 +01:00
Felix Ruess 0166f097ad [uart] replace #ifdef USE_UARTx with #if USE_UARTx 2013-12-27 18:59:34 +01:00
Felix Ruess 0d7316580e [adc] replace #ifdef USE_ADC_x by #if USE_ADC_x
this makes it possible to explicitly disable them with -DUSE_ADC_x=0
2013-12-19 19:23:29 +01:00
Felix Ruess 93372df379 [fix][lpc21] workaround for init of spi_slave_hs 2013-07-31 00:35:01 +02:00
softsr d4d1dfeec8 [mcu] Added i2c3 initializationto mcu.c
closes #489
2013-07-26 09:15:24 +02:00
Felix Ruess 639b0ee447 Merge branch 'master' into stm32f4
* master: (31 commits)
  [tcas] tcas always runs on AP. Proposed solution for compile error.
  [umarim] remove warning if no mag are used with umarim
  [Makefile] use -fPIC for all architectures
  [rotorcraft] TRANSITION_MAX_OFFSET in radians, float fixes
  [rotorcraft] Add forward mode for transitioning vehicles
  [Makefile] improve detection of lablgtk2-gnome.*
  [makefile] fix sim build on OS X after broken from no_custom, can't seem to build the autopilot.so properly so back to -custom just for simsitl
  [rotorcraft] alternate buses when sending I2C_ERRORS message
  [rotorcraft] silence warning in guidance
  [stm32] Fixes for USART interrupt handler.
  [airframes] update GUIDANCE_H gains for quadrotor example
  [rotorcraft][messages] GUIDANCE_H_INT message
  [nps] don't bypass ahrs by default
  [rotorcraft] use horizontal guidance ref by default
  [supervision] allow launching of external tools with absolute path
  [dfu] print exception
  [spi] remove warning
  [doc][modules] minor update to sonar doc
  [sonar] split sonar modules with and without ins binding
  [sonar] and event hook to use the sonar with the ins
  ...
2013-04-24 10:47:59 +02:00
Gautier Hattenberger 60c78127f8 [uart] uart4 and 6 on stm32f4, generic set function (used on uart1) 2013-04-23 22:40:46 +02:00
Felix Ruess 5d866ae587 [mcu] add missing include for INFO macro 2013-04-09 19:09:26 +02:00
Felix Ruess 5c7f9790b7 [config] consistent foo_I2C_DEV and PRINT_CONFIG 2013-04-09 14:27:19 +02:00
Felix Ruess 7ce7fc917a [nps] fix time: initialize sys_time by adding missing PERIPHERALS_AUTO_INIT 2013-02-27 21:47:42 +01:00
Felix Ruess a9a532769f [mcu] initialize spi3 if USE_SPI3 2013-02-25 18:43:09 +01:00
Felix Ruess 2270cc3c47 [spi][stm32] get rid of stupid remapping, SPI3 is now really spi3 (spi0 doesn't exist on stm32) 2013-02-14 16:14:39 +01:00
Felix Ruess ecae43d551 [doxygen] only doxygen updates 2012-12-14 18:21:09 +01:00
Gautier Hattenberger 91dd732f88 [spi] add spi_init_slaves back and fix makefile for b2 2012-11-13 16:44:47 +01:00
Gautier Hattenberger 3c97058ae4 [spi] spi slave mode for general interface and lpc arch 2012-11-09 23:15:13 +01:00
Gerard Toonstra 14ab44741c cleaning up spi work for other spi buses 2012-10-20 15:41:43 -03:00
Felix Ruess aa506c9110 picked changes from spi_rewrite
* up to 30c07a6ba53e45453ed766c6ffefd6cd0d606493
2012-03-27 00:26:47 +02:00
Felix Ruess 810a3c45a9 use new sys_time for rotorcrafts on stm32
SYS_TIME_RESOLUTION is now in seconds
renamed tics to ticks
renamed SYS_TIME_TICS to CPU_TICKS
2012-01-05 18:39:23 +01:00
Antoine Drouin 4c804a1dca rotorcraft uses electrical subsystem like fixedwing - both for lpc21 and stm32 2011-03-22 16:14:34 +01:00
Felix Ruess 5fce185812 made i2c clock timing configurable for actuators_mkk subsystem 2010-12-27 23:55:52 +01:00
Christophe De Wagter 687d149d82 #define I2C0 issue in mcu 2010-12-15 16:02:53 +01:00
Felix Ruess 208902ae59 cleanup some trailing whitespaces 2010-12-06 20:52:05 +01:00
Antoine Drouin 357a1eaa13 made spi_init() called from mcu_init() when PERIPHERALS_AUTO_INIT is defined 2010-12-06 01:40:33 +01:00
Antoine Drouin eea4e8c6ea made adc_init called by mcu_init when PERIPHERALS_AUTO_INIT is defined 2010-12-06 01:27:51 +01:00
Antoine Drouin 998abd95aa changed i2c to mcu_periph/i2c 2010-12-05 02:17:38 +01:00
Antoine Drouin 6504390b91 moved uart to mcu_periph/uart 2010-12-04 23:32:33 +01:00
Antoine Drouin 088a33afa0 merged init_hw.h and interrupt_hw.h into mcu.h - added battery voltage monitoring for fixedwing on stm32 2010-12-03 14:25:12 +01:00