Commit Graph

1433 Commits

Author SHA1 Message Date
Thomas Quinot 419345d7eb Ensure value of State is correct even in state change callbacks
Update the States array prior to calling button state change callbacks,
so that it reflects the current, not previous, state of buttons.
2018-10-05 14:38:12 +02:00
Fabien Chouteau eccb09c8d8
Merge pull request #277 from quinot/master
Add minimal example of servo motor control.
2018-09-27 17:46:55 +02:00
Thomas Quinot 466f0dc4a2 Add minimal example of servo motor control. 2018-09-26 18:32:21 +02:00
Fabien Chouteau 0b1cab1b01
Merge pull request #276 from simonjwright/dma-ignore-half-transfer
Don't use DMA Half Transfer Complete
2018-09-18 18:20:22 +02:00
Simon Wright 894c600e00 Don't use DMA Half Transfer Complete
* arch/ARM/STM32/drivers/dma_interrupts/stm32-dma-interrupts.adb
    (Start_Transfer): don't enable Half_Transfer_Complete_Interrupt.
    (Interrupt_Handler): don't check/clear Half_Transfer_Complete_Indicated.
2018-09-18 14:45:12 +01:00
Fabien Chouteau c2398257e9
Merge pull request #273 from AdaCore/style_checks_to_prod_only
Optional style checks and warning as error switches
2018-09-05 18:37:05 +02:00
Fabien Chouteau bf3abbe818 AppVeyor: only compile examples in production mode
To avoid the 1 hour timeout.
2018-09-04 19:24:03 +02:00
Fabien Chouteau 48a4f35c38 Optional style checks and warning as error switches
This patch makes style checks and warning as error switches controllable
with a scenario variable: ADL_BUILD_CHECKS (disabled by default).

With this we can enforce style checks on all contributions by enabling
ADL_BUILD_CHECKS in testsuite runs and CI builds.

On the other hand the checks are disabled by default which means it is
easier and more friendly to play with the library and the examples.

Part of #271
2018-09-03 20:00:01 +02:00
Fabien Chouteau 8acc358f52
Merge pull request #270 from mosteo/master
Added Ide info to micro:bit text/button GPR files
2018-07-20 10:19:26 +02:00
Alejandro R. Mosteo d293be1395 Added Ide package to remaining micro:bit examples 2018-07-19 18:53:00 +02:00
Alejandro R. Mosteo 531e674cd1 Added Ide info to micro:bit text/button GPR files 2018-07-19 18:01:32 +02:00
Fabien Chouteau eca364e8e3
Merge pull request #269 from AdaCore/microbit_features_and_examples
Improve micro:bit support and add examples
2018-07-16 11:04:33 +02:00
Fabien Chouteau 8da0dc5bfb MicroBit: Add a buttons example 2018-07-13 19:51:43 +02:00
Fabien Chouteau f2bb372931 MicroBit: Split the original example in two 2018-07-13 19:44:34 +02:00
Fabien Chouteau f1da6fb70b MicroBit: Add a documented examples 2018-07-13 19:44:34 +02:00
Fabien Chouteau 21cc91b974 MicroBit: Add Music package to play simple tunes on a buzzer 2018-07-13 19:44:34 +02:00
Fabien Chouteau b1329b9421 MicroBit.IOs: Remove Touched function until it is actually implemented 2018-07-13 19:44:34 +02:00
Fabien Chouteau c6c6881365 MicroBit.IOs: Implement analog output using PWM signals 2018-07-13 19:44:34 +02:00
Fabien Chouteau 195be507b2 nRF51.GPIO.Tasks_And_Events: Add functions to access out tasks and in events 2018-07-13 19:44:34 +02:00
Fabien Chouteau 45de87cbcf MicroBit: Add accelerometer driver 2018-07-13 19:44:34 +02:00
Fabien Chouteau 0eb5d1c6d4 MicroBit.I2C: Fix precondition and initialization 2018-07-13 19:44:34 +02:00
Fabien Chouteau 1494491598 nRF51.TWI: Fix Master_Receive 2018-07-13 19:44:34 +02:00
Fabien Chouteau 09a8d57920 Components: Improve MMA8653 driver 2018-07-13 19:44:34 +02:00
Fabien Chouteau 6ccd49829d Micro:bit: Add I2C package 2018-07-13 19:44:34 +02:00
Fabien Chouteau 556ea3edf2 BLE: Allow custom MAC in beacon packet definition
And change the MAC for micro:bit example.
2018-07-13 19:44:34 +02:00
Fabien Chouteau 6efe216660
Merge pull request #268 from AdaCore/microbit_button_b
MicroBit: Fix button B
2018-07-13 18:36:18 +02:00
Fabien Chouteau ddab92871d
Merge pull request #265 from AdaCore/gpio_capabilities
[RFC] HAL.GPIO: Switch to a capability system
2018-07-13 18:35:46 +02:00
Fabien Chouteau 954bf11fd9
Merge pull request #266 from AdaCore/riscv32_travis_ci
Travis-CI: Enable RISC-V32 project compilation
2018-07-13 18:34:50 +02:00
Fabien Chouteau b454fe106d MicroBit: Fix button B
As discussed in #267, MicroBit.Time was configuring the Low Frequency
Clock to use an external crystal, but there is no LFC external crystal
on the micro:bit. Also the button B is connected to the pin used for the
LFC crystal, so this configuration meant the pin was actually not
available as GPIO for the button code.

MicroBit.Time now uses synthesized clock for LFC so the pin is available
for button B.
2018-07-13 11:37:44 +02:00
Fabien Chouteau cbdffd1b9c FE310: Remove useless with 2018-07-11 19:56:51 +02:00
Fabien Chouteau 00a34a81a1 script/build_all_examples.py: Fix build mode selection 2018-07-11 19:44:05 +02:00
Fabien Chouteau 4cb4825355 Travis-CI: Enable RISC-V32 project compilation 2018-07-11 19:43:32 +02:00
Fabien Chouteau 4d32971732 HAL.GPIO: Switch to a capability system
Instead of returning False when a configuration is not supported, users
can call a function beforehand to know if it is supported. The
capability is also now a precondition of the setup procedures.
2018-07-11 18:46:16 +02:00
Fabien Chouteau eb8f8b4d8a
Merge pull request #264 from AdaCore/stm32_dma_interrupt
STM32 DMA interrupt controller
2018-07-11 17:45:19 +02:00
Fabien Chouteau a711e1fc46
Merge pull request #261 from AdaCore/community_2018_compiler_only
Switching to GNAT Community 2018
2018-07-11 17:43:38 +02:00
Fabien Chouteau 991725aab8 STM32.DMA.Interrupt: Allow custom priority
As discussed in #218.
2018-07-09 17:06:05 +02:00
Fabien Chouteau ad9f282a73 STM32.Device: Remove pre-declaration of DMA_Interrupt_Controller
As discussed in #218, the declaration of all possible
DMA_Interrupt_Controller is not practical for users. In particular, it
means that all controllers will be included in the binary (even if they
are not used) and it doesn't give the possibility to set the priority of
the protected object.
2018-07-09 17:06:05 +02:00
Fabien Chouteau 35a2e8b1dd Update examples/HiFive1/README.md 2018-07-04 11:22:53 +02:00
Fabien Chouteau e1568986c3 Update examlpes/MicroBit/README.md 2018-07-04 11:22:53 +02:00
Fabien Chouteau 6a182269e8 Update examples/README.md 2018-07-04 11:22:53 +02:00
Fabien Chouteau 6bec366fe1 Update design.md 2018-07-04 11:22:53 +02:00
Fabien Chouteau 3fa7c1a593 Update README.md 2018-07-04 11:22:53 +02:00
Fabien Chouteau 74216b4ce8 Update CI scripts for Travis and Appveyor 2018-07-04 11:22:53 +02:00
Fabien Chouteau cd24698ba3 STM32F429: Fix example project files 2018-06-27 15:57:37 +02:00
Fabien Chouteau 30c0300926 scripts/install_dependencies.py: Update for community-2018 branch 2018-06-27 15:57:37 +02:00
Fabien Chouteau 4393bb829d Micro:bit example: Update for GNAT Community 2018 2018-06-27 15:57:37 +02:00
Fabien Chouteau dac5ef5d7f HiFive1 example: Update for GNAT Community 2018 2018-06-27 15:57:37 +02:00
Fabien Chouteau 91eff5154b Semihosting.Filesystem: Fix unreferenced param warning 2018-06-27 15:57:37 +02:00
Fabien Chouteau da702579ca
Merge pull request #260 from AdaCore/unref_fix
Semihosting.Filesystem: Fix unreferenced param warning
2018-06-12 20:33:21 +02:00
Fabien Chouteau 5f99d8bc13 Semihosting.Filesystem: Fix unreferenced param warning 2018-06-12 19:02:25 +02:00