26 Commits

Author SHA1 Message Date
RedHawk
cd097d7883 logging: Base for Clock.
*Doesn't work, yet.
2023-05-14 16:20:46 +03:00
RedHawk
3012ee1b20 logging: Better logging. Fixed pins printout. 2023-05-12 17:16:19 +03:00
RedHawk
e5bb200789 logging: Better logging. Fixed pins printout. 2023-05-12 17:08:01 +03:00
RedHawk
734393831e logging: Fixing hard faults. Small cleanup.
*Lesser queue size.
*Removed recursive master task creation.
*Logging task now has a loop.
*Little fixes and cleanup here and there.
2023-05-12 16:44:11 +03:00
Vasily Davydov
970081991d peripherals: add logging 2023-05-12 01:12:26 +03:00
RedHawk
0e64099a56 DigitalIoPin: Added LPC11U68 specific pin functions
*In order for pin to act as IO, it must be configured with
according function. Usually it is IOCON_FUNC0,
but some pins on port 0 are an exception (IOCON_FUNC1).
2023-05-10 13:45:47 +03:00
RedHawk
356b3ebbe9 LiquidCrystal.cpp: [#35] LCD now wraps text. 2023-05-10 13:12:13 +03:00
RedHawk
052d015425 LiquidCrystal: Added destructor. 2023-05-08 15:35:46 +03:00
RedHawk
6787f03f0a LiquidCrystal.cpp: [#22] Fixed the interrupt. 2023-05-07 17:42:39 +03:00
RedHawk
4532191da6 LCD:[#22] rewritten delayMicroseconds().
* Now it uses timer peripheral with interrupt.
* It sets interrupt to trigger after certain time and waits for it to clear the "interrupt pending" flag.
2023-05-07 17:42:39 +03:00
RedHawk
01604edcfd LpcUart:[#22] Added USART0 wrapper. (LpcDebugUart)
* Refactored LpcUart for USART0, the handling is a bit different,
so it would have been painful to add that to LpcUart class.
* scanf() still doesn't work, but hey, we have debug prints now!
* Can't believe it actually worked.
2023-05-06 12:37:25 +03:00
RedHawk
13e392f37b LpcUart: [#22] This could have worked.
* It appears that LPC11u68 has ony USART0 redirected to USB as debug UART.
* The code here was written only for USART1-4.
2023-05-05 19:31:30 +03:00
RedHawk
620439fff4 LpcUart: [#22] rewritten wrapper for lpc11u68.
* We have UART1-4 (from UARTN, UART0 handling is different.)
* Added Fmutex
* Removed movable pins.
* Disabled handshakes. (Not sure how to configure those.)
* 1 and 4, as well as 2 and 3 share their interrupts with each other. (Again, not sure how it should work.)
2023-04-28 14:32:25 +03:00
Vasily Davydov
da50fa4de1 rotary:[#9] enable interrupts on three pins 2023-04-27 00:47:55 +03:00
Vasily Davydov
a57f814875 digitalio: add interrupt support and append to rotary 2023-04-26 18:19:42 +03:00
Vasily Davydov
b8935a9bdc eeprom: [#22] remove <map> dependency 2023-04-26 16:14:42 +03:00
Vasily Davydov
1b6cbdb725 eeprom:[#22] fix lib to be compatible for 11u6x 2023-04-26 16:11:18 +03:00
RedHawk
48d577f8fb I2C: Fixing pin Muxing. #15 2023-04-18 12:01:12 +03:00
RedHawk
88d68aac56 I2C: Adapted 15xx wrapper to 11u6x. #15
* Refactured class initialisation.
* Refactured I2C::I2CM_XferBlocking() function.
* (!Chip_I2CM_IsMasterPending(pI2C)) -> (Chip_I2CM_StateChanged(pI2C) == 0)
2023-04-16 16:00:35 +03:00
RedHawk
8977eeb8f6 DigitalIoPin: Fine 2023-04-06 11:43:42 +03:00
RedHawk
c662936689 peripherals: Commented out until fixed.
Peripherals were following old lpc chip pinout (lpc15xx). We have different (lpc11u6x). I decided to comment them out until we figure out correct pinout. (project should always build in master)
2023-04-06 11:12:47 +03:00
Vasily Davydov
0f45c4adbb peripherals: add I2C lib [#2] 2023-04-04 22:24:43 +03:00
Vasily Davydov
4fda9a4128 peripherals: add LpcUart lib [#2] 2023-04-04 22:21:30 +03:00
Vasily Davydov
785f8a6806 peripherals: add EEPROM lib [#2] 2023-04-04 22:19:24 +03:00
Vasily Davydov
208fbab92c peripherals: add LCD lib [#2] 2023-04-04 22:18:10 +03:00
Vasily Davydov
740da3f39a peripherals: add GPIO pin lib [#2] 2023-04-04 22:13:55 +03:00