-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from BlueAndi/release/v0.1.x
Initial release preparation v0.1.0
- Loading branch information
Showing
5 changed files
with
171 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
@startuml ArduinoNative | ||
|
||
package "Library" as DeviceClasses { | ||
|
||
package "Interfaces" as Interfaces { | ||
|
||
interface "Print" as iPrint { | ||
+ {abstract} print(str : const char[]) : void | ||
|
||
+ {abstract} print(value : uint8_t) : void | ||
+ {abstract} print(value : uint16_t) : void | ||
+ {abstract} print(value : uint32_t) : void | ||
|
||
+ {abstract} print(value : int8_t) : void | ||
+ {abstract} print(value : int16_t) : void | ||
+ {abstract} print(value : int32_t) : void | ||
|
||
'* with linefeed: *' | ||
+ {abstract} println(str : const char[]) : void | ||
+ {abstract} println(value : uint8_t) : void | ||
+ {abstract} println(value : uint16_t) : void | ||
+ {abstract} println(value : uint32_t) : void | ||
|
||
+ {abstract} println(value : int8_t) : void | ||
+ {abstract} println(value : int16_t) : void | ||
+ {abstract} println(value : int32_t) : void | ||
|
||
+ {abstract} write(buffer : const uint8_t * , length: size_t ) : size_t | ||
} | ||
|
||
interface "Stream" as iStream { | ||
+ {abstract} available(void) : int | ||
+ {abstract} readBytes(buffer : uint8_t *, length : size_t ) : size_t | ||
} | ||
|
||
iStream <|-- iPrint : <<derive>> | ||
} | ||
|
||
|
||
|
||
class "Serial_" as Serial_ { | ||
# Serial_(stream : Stream& ) | ||
|
||
+ setStream(stream : Stream& ) : void | ||
+ begin(baudrate : unsigned long) : void | ||
+ end(void) : void | ||
} | ||
|
||
iPrint <|.. Serial_ : <<realize>> | ||
|
||
class "Terminal" as Terminal { | ||
} | ||
|
||
iPrint <|.. Terminal : <<realize>> | ||
|
||
|
||
|
||
class Arduino <<namespace>> { | ||
|
||
+ setup( | ||
getSystemTickFunc : (unsigned long (*)() ), | ||
systemDelayFunc : (void (*)(unsigned long)) ) : void | ||
|
||
+ loop () : void | ||
} | ||
|
||
} | ||
' --- end of DeviceClasses | ||
|
||
Terminal <-- Arduino : <<instantiate>> | ||
Serial_ <-- Arduino : <<instantiate>> | ||
|
||
|
||
package Application { | ||
|
||
class App { | ||
+ setup() : void | ||
+ loop() : void | ||
} | ||
|
||
Arduino ..> App : <<call>> | ||
|
||
class main { | ||
+ main(argc : int, argv : char**) : int | ||
} | ||
|
||
Arduino <.. main : <<use>> | ||
} | ||
|
||
} | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@startuml DynamicFlow | ||
|
||
autoactivate on | ||
|
||
participant main | ||
participant Arduino | ||
participant App | ||
|
||
-> main | ||
|
||
main -> Arduino : Arduino::setup() | ||
|
||
Arduino -> App : ::setup() | ||
Arduino <-- App | ||
|
||
main <-- Arduino | ||
|
||
loop | ||
main -> Arduino : Arduino::loop() | ||
|
||
Arduino -> App : ::loop() | ||
Arduino <-- App | ||
|
||
main <-- Arduino | ||
end loop | ||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@startuml Principle | ||
|
||
package "Application" { | ||
class "Aaaa" as Aaaa | ||
} | ||
|
||
package "HAL Interfaces" { | ||
interface "IXxxx" as iXxxx | ||
} | ||
|
||
package "HAL Native" { | ||
class "Yxxx" as YxxxWebots | ||
|
||
note bottom of YxxxWebots | ||
Native environment specific implementation. | ||
end note | ||
} | ||
|
||
Aaaa ...> iXxxx: <<use>> | ||
iXxxx <|... YxxxWebots: <<realize>> | ||
|
||
note top of Aaaa | ||
Target independed application. | ||
end note | ||
|
||
package "Arduino Native" { | ||
|
||
class Arduino | ||
} | ||
|
||
Aaaa ...> Arduino: <<use>> | ||
|
||
note bottom of Arduino | ||
Provides Arduino functionality | ||
for the native environment. | ||
end note | ||
|
||
@enduml |