| #define J10_NUM_PINS 0 |
| #define J10_NUM_PINS 0 |
| #define J15_AVAILABLE 0 |
| #define J15_AVAILABLE 0 |
| #define J28_NUM_PINS 0 |
| #define J28_NUM_PINS 0 |
| #define J5_NUM_PINS 0 |
| #define J5_NUM_PINS 0 |
This function enables or disables one of the two DAC channels provided by STM32F103RE (and not by STM32F103RB).
| [in] | chn | channel number (0 or 1) |
| [in] | enable | 0: channel disabled, 1: channel enabled. |
This function sets an output channel to a given 16-bit value.
Note that actually the DAC will work at 12-bit resolution. The lowest 4 bits are ignored (reserved for future STM chips).
| [in] | chn | channel number (0 or 1) |
| [in] | value | the 16-bit value (0..65535). Lowest 4 bits are ignored. |
Initializes MIOS32_BOARD driver
| [in] | mode | currently only mode 0 supported |
| s32 MIOS32_BOARD_J10_Get | ( | void | ) |
This function returns the state of all pins of J10
This function returns the state of a single pin of J10
| [in] | pin | the pin number (0..7) |
>= 0: input state of pin
| s32 MIOS32_BOARD_J10_PinInit | ( | u8 | pin, | |
| mios32_board_pin_mode_t | mode | |||
| ) |
Initializes a J10 pin
| [in] | pin | the pin number (0..7) |
| [in] | mode | the pin mode
|
This function sets a single pin of J10
| [in] | pin | the pin number (0..7) |
| [in] | value | the pin value (0 or 1) |
This function sets all pins of J10 at once
| [in] | value | 8 bits which are forwarded to J10 |
This function is used by LCD drivers under $MIOS32_PATH/modules/app_lcd to output an 8bit value on the data lines
| [in] | data | the 8bit value |
This function is used by LCD drivers under $MIOS32_PATH/modules/app_lcd to set the E pin
| [in] | lcd | display port (0=J15A, 1=J15B) |
| [in] | e | state of the E pin |
This function is used by LCD drivers under $MIOS32_PATH/modules/app_lcd to poll the busy bit (D7) of a LCD
| [in] | lcd | display port (0=J15A, 1=J15B) |
| [in] | time_out | how many times should the busy bit be polled? |
-2 on timeout return >= 0 on success
Initializes the J15 port
| [in] | mode |
|
This function is used by LCD drivers under $MIOS32_PATH/modules/app_lcd to set the RS pin
| [in] | rs | state of the RS pin |
This function is used by LCD drivers under $MIOS32_PATH/modules/app_lcd to set the RW pin
| [in] | rw | state of the RW pin |
This function is used by LCD drivers under $MIOS32_PATH/modules/app_lcd to shift an 8bit data value to LCDs with serial interface (SCLK connected to J15A:E, Data line connected to J15A:RW)
| [in] | data | the 8bit value |
| s32 MIOS32_BOARD_J28_Get | ( | void | ) |
This function returns the state of all pins of J28
This function returns the state of a single pin of J28
| [in] | pin | the pin number (0..7) |
>= 0: input state of pin
| s32 MIOS32_BOARD_J28_PinInit | ( | u8 | pin, | |
| mios32_board_pin_mode_t | mode | |||
| ) |
Initializes a J28 pin
| [in] | pin | the pin number (0..3) |
| [in] | mode | the pin mode
|
This function sets a single pin of J28
| [in] | pin | the pin number (0..7) |
| [in] | value | the pin value (0 or 1) |
This function sets all pins of J28 at once
| [in] | value | 8 bits which are forwarded to J28 |
| s32 MIOS32_BOARD_J5_Get | ( | void | ) |
This function returns the state of all pins of J5
This function returns the state of a single pin of J5
| [in] | pin | the pin number (0..7) |
>= 0: input state of pin
| s32 MIOS32_BOARD_J5_PinInit | ( | u8 | pin, | |
| mios32_board_pin_mode_t | mode | |||
| ) |
Initializes a J5 pin
| [in] | pin | the pin number (0..7) |
| [in] | mode | the pin mode
|
This function sets a single pin of J5
| [in] | pin | the pin number (0..7) |
| [in] | value | the pin value (0 or 1) |
This function sets all pins of J5 at once
| [in] | value | 8 bits which are forwarded to J5A/B |
| u32 MIOS32_BOARD_LED_Get | ( | void | ) |
Returns the status of all LEDs
Initializes LEDs of the board
| [in] | leds | mask contains a flag for each LED which should be initialized
|
-1 if no LEDs specified for board
-2 if one or more LEDs not available on board
Sets one or more LEDs to the given value(s)
| [in] | leds | mask contains a flag for each LED which should be changed |
| [in] | value | contains the value which should be set |
-1 if no LEDs specified for board
-2 if one or more LEDs not available on board
1.4.7