- Aug 17, 2016
-
-
Lucas Russo authored
-
Lucas Russo authored
github lnls-dig/bpm-gw@6a66271665 changed it, so we updated it here.
-
- Aug 15, 2016
-
-
Lucas Russo authored
We already have the trigger type from a previous "get". So, we don't need to read it again.
-
- Aug 10, 2016
-
-
Lucas Russo authored
-
Lucas Russo authored
See github issue #62.
-
- Aug 09, 2016
-
-
Janito Vaqueiro Ferreira Filho authored
Avoid adding unnecessary padding.
-
Janito Vaqueiro Ferreira Filho authored
Avoid adding unnecessary padding and simplify the code.
-
Janito Vaqueiro Ferreira Filho authored
Add functions to align a given value to a given alignment and to calculate the necessary padding to align the value.
-
Lucas Russo authored
-
Lucas Russo authored
-
Lucas Russo authored
-
Lucas Russo authored
Theere were multiple trivial errors in the handling of buffers, such as putting an extra "&" to get the address and not copying the read data back to user.
-
Lucas Russo authored
-
Lucas Russo authored
The smpr_[write/read]_block () functions return the number of data bytes actually written. So, we must follow the same convention on checking for errors.
-
Lucas Russo authored
-
Lucas Russo authored
We must read/write to/from 32-bit registers, but we can specify how many bytes to read/write via "charlen" register. So, align size to 32-bit sizes and handle it according to "charlen".
-
Lucas Russo authored
There are unused address bits, so even if we can use it, the instruction size is 16-bits and we must extend it with 0s
-
Lucas Russo authored
-
Lucas Russo authored
We must account for cases when the user did not "correctly" specified data pointer and/or data size.
-
- Aug 08, 2016
-
-
Lucas Russo authored
Now, the protocol is "more" independent of the higher layer. So, any specific changes to it must be done explicitly by the caller.
-
Lucas Russo authored
-
Lucas Russo authored
-
Lucas Russo authored
Now, we use the offs parameter as the address to be written by the protocol. This fixes the protocol semantics, and makes it easier to support new protocols.
-
Lucas Russo authored
-
Lucas Russo authored
-
Lucas Russo authored
Some chips have 8, 16 or 24-bit (and more )address size definitions. So, allow the higher layer to specify its size.
-
- Aug 06, 2016
-
-
Lucas Russo authored
-
Lucas Russo authored
In this way, the only option to get the operations table for a particular "protocol" is to instantiate the appropriate class and use the *_get_ops () function. With this, we can be safe that the user will always pass the pointer ops that is inside the "protocol" structure (along with its options).
-
- Aug 05, 2016
-
-
Lucas Russo authored
Now, the same information needs to be read from the appropriate structure through the access methods.
-
Lucas Russo authored
The idea here is to have SPI/I2C-obj objects to customize the objects dynamically, instead of having a "flags" parameter that needs knowledge of the inner protocol.
-
Lucas Russo authored
-
Lucas Russo authored
-
Janito Vaqueiro Ferreira Filho authored
-
Janito Vaqueiro Ferreira Filho authored
Force compared expressions into unsigned values.
-
Lucas Russo authored
-
- Aug 03, 2016
-
-
Lucas Russo authored
Now, we pass the pointer to the operation we want to use it, instead of the enum.
-
Lucas Russo authored
This will make it easier to declare a new operation and use it. In the previous way, we had to manually add the operation to the enumeration.
-
Lucas Russo authored
Now, we pass the pointer to the operation we want to use it, instead of the enum.
-
Lucas Russo authored
This will make it easier to declare a new operation and use it. In the previous way, we had to manually add the operation to the enumeration.
-
- Aug 02, 2016
-
-
Lucas Russo authored
-