Commit Graph

1381 Commits

Author SHA1 Message Date
Fabien Chouteau
3e788fb1c1 Add a script to split ADL in multiple Alire crates 2020-10-02 18:41:08 +02:00
Simon Wright
a955b10f90 Add interrupt support for Nordic GPIO. (#371)
* Add GPIO interrupt support for Nordic GPIO.

  * arch/ARM/Nordic/drivers/nrf_common/nrf-gpio-tasks_and_events.ad[sb]:
      Added subprograms to enable, test for presence, acknowledge and
      disable both channel and port interrupts.

* Correct style warnings for Nordic GPIO interrupts.

* Match Nordic GPIO changes to AdaCore style.

  * arch/ARM/Nordic/drivers/nrf_common/nrf-gpio-tasks_and_events.ads
    (Channel_Event_Is_Set): renamed to Channel_Event_Set.
    (Port_Event_Is_Set): similarly.
  * arch/ARM/Nordic/drivers/nrf_common/nrf-gpio-tasks_and_events.adb:
    likewise. Keyword 'is' always on new line.
2020-09-24 18:32:33 +02:00
Fabien Chouteau
93f7045a3c components: add driver for solder.party BBQ10 keyboard I2C interface (#368) 2020-09-18 13:17:48 +02:00
Fabien Chouteau
f67115ada7 Various Microbit examples fixes and improvements (#367)
* micro:bit examples digital_out: fix resistor value

* micro:bit examples digital_in: fix resistor value

* Update README.md

* Typo

* Typo

* Update README.md

* Update README.md

* Update README.md (#366)
2020-09-18 13:16:44 +02:00
Jeremy Grosser
830fde073a PCD8544 LCD driver (#364) 2020-09-17 14:49:10 +02:00
Fabien Chouteau
c9290bc39d Add RISC-V performance CSR support (#363)
* Add RISC-V performance CSR support

* RISC-V Read_CSR_64: fix rv32 version

* RISC-V improve CSR support

Add sub-program to swap, set bits, clear bits, etc.
Instantiate sub-programs for all machine CSRs.
2020-09-15 18:08:30 +02:00
Stian Onarheim
c753e3ef25 Added Frown, Cross, Checkmark and Heart symbols (#360)
* Added Frown, Cross, Checkmark and Heart symbols

* Removed trailing spaces
2020-09-01 16:21:25 +02:00
Fabien Chouteau
0650636272 Fix GH workflow on Windows (#361) 2020-09-01 14:22:04 +02:00
Pat Rogers
9b6737eb5a Merge pull request #358 from AdaCore/microbit_readme
Update README.md
2020-08-06 14:42:27 -05:00
Fabien Chouteau
4b5b967ed8 Update README.md 2020-08-06 19:24:16 +02:00
Jeremy Grosser
0c93f623d0 Olimex STM32-H405 board support (#356)
* Olimex STM32-H405 board support

* Add STM32-H405 to build_all_examples.py, fix for style checks

* Use stm32f4 runtime for STM32-H405 board

* Add STM32_H405 to board_projects_generator.py
2020-07-30 12:31:31 +02:00
Fabien Chouteau
9f88a65a31 scripts/config/user_input/console.py: Python3 migration
raw_input() is renamed to input().

Part of #354.
2020-07-08 09:55:15 +02:00
Simon Wright
a5014924e5 Reduce optimization opportunities in Semihosting.
* arch/ARM/cortex_m/src/semihosting.adb (Write_0): Data is of new
      type Byte_Array, which is a new UInt8_Array with volatile
      components (FSF GCC was miscompiling at -O3).
2020-06-17 16:41:11 +02:00
Fabien Chouteau
46be7f2d30 Switch continuous integration to GitHub Action workflow 2020-06-16 16:31:37 +02:00
Fabien Chouteau
4bb75b423f scripts/install_dependencies.py: report errors from dependency script 2020-06-16 16:31:37 +02:00
Simon Wright
87cd0d4165 Add PMW3901 (flow) sensor support (2). (#348)
* Added PMW3901 (flow) sensor support.
Includes general-purpose check for whether this SPI port is clocked.

  * components/src/motion/pmw3901/pmw3901.ads: new.
  * components/src/motion/pmw3901/pmw3901.adb: new.

  * components/src/motion/pmw3901/pmw3901-is_clocked.adb: new. The
      check for the associated SPI port being clocked is implemented
      as a separate because it really belongs in the Device package.

* PMW3901 driver no longer depends on STM32.

  * components/src/motion/pmw3901/pmw3901.ads: remove dependency on
      STM32, replace by HAL equivalent.
    (Initialize): replace precondition using Is_Clocked to 'not
      Is_Initialized'.
    (Is_Clocked): removed.
  * components/src/motion/pmw3901/pmw3901.adb: likewise.
  * components/src/motion/pmw3901/pmw3901-is_clocked.adb: removed.

* PMW3901 copyright/clarity updates.

  * components/src/motion/pmw3901/pmw3901.adb: Updated copyright
      notice, as requested.
  * components/src/motion/pmw3901/pmw3901.ads: Likewise.
    (Motion's rep spec): moved to private part, to reduce clutter.
2020-06-09 16:17:28 +02:00
Simon Wright
4b3873548b Added procedure to configure the external SPI Computer Select pin.
* boards/crazyflie/src/stm32-board.ads fixed (C) to AdaCore style.
    (Configure_EXT_CS): new.
  * boards/crazyflie/src/stm32-board.adb: likewise. Added box comments.
2020-06-08 10:58:46 +02:00
Simon Wright
a7ac949393 Add board feature to initialize the Crazyflie external SPI.
* boards/crazyflie/src/stm32-board.ads (Initialize_EXT_SPI): new.
  * boards/crazyflie/src/stm32-board.adb (Initialize_EXT_SPI): new.
2020-06-08 10:58:46 +02:00
Fabien Chouteau
924af1fffa .appveyor.yml: remove all the arm-elf run-times before installing new ones
This is a workaround for "Access is denied" in the Python script.
2020-05-29 18:56:37 +02:00
Fabien Chouteau
859cff4fff .appveyor.yml: Add python in PATH 2020-05-29 18:56:37 +02:00
Fabien Chouteau
3eae3567cc .appveyor.yml: use python3 2020-05-29 18:56:37 +02:00
Fabien Chouteau
9151a3c096 Python3 migration 2020-05-29 18:56:37 +02:00
Fabien Chouteau
5a197cfbeb Migration to GNAT Community 2020 2020-05-29 18:56:37 +02:00
Wilbert van de Ridder
c7c545c2f2 doc: fix typo in README.md 2020-04-27 14:42:44 +02:00
Simon Wright
26e722d271 Use HAL.Time facilities.
* components/src/range_sensor/VL53L0X/vl53l0x.ads
    (VL53L0X_Ranging_Sensor): add discriminant Timing.
    (Read_Range_Single_Millimeters): no longer generic.
  * components/src/range_sensor/VL53L0X/vl53l0x.adb
    (Read_Range_Single_Millimeters): use This.Timing.Delay_Milliseconds.
2020-04-21 11:29:40 +02:00