1457 Commits

Author SHA1 Message Date
Pat Rogers
52d45960b3 Merge pull request #448 from pat-rogers/master
Extensively refine code for these three serial I/O examples
2025-09-09 13:18:06 -05:00
Pat Rogers
a8bd4794d1 Extensively refine code for these three serial I/O examples
* README.md
- Add new readme indicating that this host program is only intended for the
stream-based demo, and explaining how to use it

* host.adb
- Add much more comments in the header block explaining how to use this program and
why it is needed
- Parameterize the host port number instead of hard-coding it

* demo_serial_port_blocking.adb
- Use normalized (new) procedure names for Send and Receive, for consistency with
other versions
- Add comments re: baud rate and other settings required

* demo_serial_port_nonblocking.adb
- Better name for local procedure
- Add many more comments re: settings

* demo_serial_port_streaming.adb
- Replace source code in comment header block with location of the actual
code and project file.
- Add comment re: serial port settings

* peripherals_blocking.ads
- Peripheral should be a constant
- COM can now reference the designated USART, the component of Peripheral

* peripherals_nonblocking.ads
- Same as for peripherals_blocking.ads

* peripherals_streaming.ads
- Same as for peripherals_blocking.ads

* serial_io-blocking.ads
- Type Serial_Port now designates a USART rather than type Peripheral
- No longer provide call through routines for the Serial_IO package's
Initialize_Hardware and Configure since client can easily call them. Better
separation of concerns as a result.
- Change signatures of internal routines to be access-to-USART

* serial_io-blocking.adb
- Internal simplifications reflecting change to access discriminant now designating type USART
- Remove code for Initialize_Hardware and Configure, per removal from package spec

* serial_io-nonblocking.ads
- Type Serial_Port now designates a USART rather than type Peripheral
- No longer provide call through routines for Serial_IO packages
Initialize_Hardware and Configure since client can easily do so, and simplifies this package
- Change signatures of internal routines to be access-to-USART

* serial_io-nonblocking.adb
- Internal simplifications reflecting change to access discriminant now designating type USART
- Remove code for Initialize_Hardware and Configure, per removal from package spec
- Use short-circuit control forms in ISR since don't need to check both conditions, should be
a little faster

* serial_io-streaming.ads
- Type Serial_Port now designates a USART rather than type Peripheral
- No longer provide call through routines for Serial_IO packages
Initialize_Hardware and Configure since client can easily do so, and simplifies this package
- Change signatures of internal routines to be access-to-USART

* serial_io-streaming.adb
- Internal simplifications reflecting change to access discriminant now designating type USART
- Remove code for Initialize_Hardware and Configure, per removal from package spec

* serial_io.ads
- Procedure Initialize_Hardware's formal parameter is no longer an access parameter
- Procedure Configure's first formal parameter is now access to USART

* serial_io.adb
- Change to prcoedures' signatures as per spec
- Procedure Configure now uses distinguished receiver syntax for USART routines, much cleaner
2025-08-30 14:13:28 -05:00
Pat Rogers
c8c9818771 fix comment to refer to GNAT rather than CE edition bug 2025-08-30 13:24:56 -05:00
Pat Rogers
17d7b4b9f0 Merge pull request #437 from liampwll/master
Wait for STM32 timer output to be enabled before returning from enable procedure.
2025-08-29 16:49:17 -05:00
Andry Ogorodnik
3483cd194c Merge pull request #446 from AdaCore/si4432
Added support for Si4432 ISM Band
2025-06-14 22:24:34 +03:00
Andry Ogorodnik
e7d2a23985 Added support for Si4432 ISM Band 2025-06-14 13:46:46 +03:00
Andrii Fil
8a62be90b9 Data_Register_Address remove prefix 2025-05-23 10:56:31 +03:00
Andrii Fil
be01470f7c Data_Register_Address for Timers 2025-05-23 10:56:31 +03:00
Andrii Fil
08a088016b Append support DMA for PWM. Create example demo_pwm_dma_continuous 2025-05-23 10:56:31 +03:00
Fabien Chouteau
05674c7da2 Replace riscv32-elf with riscv64-elf
GNAT FSF compiler only comes in riscv64-elf version that supports both 32 and 64 RISC-V.
2025-05-15 10:49:56 +02:00
Fabien Chouteau
cc5e769b90 Misc warning fixes 2025-05-15 10:49:56 +02:00
Fabien Chouteau
b8a6f8b9d8 arch/RISC-V/src/riscv-csr_generic.adb: enable zicsr extension for all inline ASM 2025-05-15 10:49:56 +02:00
Andry Ogorodnik
f6a4b8a79c Merge pull request #444 from AdaCore/HM_11
HM-11/cc2541 bluetooth module
2025-05-06 20:41:25 +03:00
Andry Ogorodnik
e2e818b437 HM-11/cc2541 bluetooth module 2025-05-06 19:14:04 +03:00
Andry Ogorodnik
69b17f6127 Merge pull request #441 from AdaCore/nrf24l01p
Add support for nRF24L01+ radio module
2025-02-19 12:24:13 +01:00
Andry Ogorodnik
fcf8caa41f Add support for nRF24L01+ radio module 2025-02-17 18:42:46 +02:00
Maxim Reznik
6b1413da5d Avoid losing input bytes in the UART on STM32F4xx.
The compiler expands an assignment to part of the DR register
to a read-modify-write sequence. However, reading DR has
the side-effect of clearing the SR.RXNE bit, so sending
a byte could result in the loss of input bytes.
2025-01-27 20:11:27 +02:00
Maxim Reznik
983f3b1a33 Add System Reset Request routine. 2025-01-26 18:29:36 +02:00
Fabien Chouteau
2f7e69cc8f arch/ARM/cortex_m: add Systick package 2025-01-26 18:29:36 +02:00
Fabien Chouteau
b3d8558fdb arch/ARM/cotrex_m: preelaborate some units 2025-01-26 18:29:36 +02:00
Maxim Reznik
72e36aad8a Fix ILI9341 display driver with SPI connector
and provide a demo for it.
2025-01-26 18:29:10 +02:00
Maxim Reznik
dba3ecea04 Add enable, reset, configuration routines for Eth periph
To make ethernet driver independent on STM32_SVD.RCC and
STM32_SVD.SYSCFG packages.
2025-01-26 18:28:50 +02:00
Liam Powell
63dc19d1e9 Wait for STM32 timer output to be enabled before returning from enable procedure.
RM0386 Rev 6 22.3.12 notes that there may be a delay before the BDTR.MOE
bit reads as 1 after writing to it. The RM says that only a single
instruction is needed, but testing has shown that this is incorrect.

With the previous code, calling Enable_Main_Output and then immediately
calling a procedure to set a different part of the register could result
in the MOE bit being inadvertently set low.
2024-11-17 20:15:06 +08:00
Fabien Chouteau
b651d01dcf Remove unused with (#430) 2024-05-29 13:31:09 +02:00
Pat Rogers
1c179807ef Merge pull request #427 from simonjwright/callgraph
Provide control over -fcallgraph-info in project wizard.
2024-02-27 11:26:52 -06:00