driver progress

This commit is contained in:
rusefillc 2023-05-23 22:51:28 -04:00
parent 8ccb085343
commit b57022b223
4 changed files with 65 additions and 1 deletions

View File

@ -0,0 +1,12 @@
#ifndef HAL_LLD_H_
#define HAL_LLD_H_
#ifdef __cplusplus
extern "C" {
#endif
void hal_lld_init(void);
#ifdef __cplusplus
}
#endif
#endif /* HAL_LLD_H_ */

View File

@ -0,0 +1,38 @@
/**
* @brief Digital I/O port sized unsigned type.
*/
typedef uint32_t ioportmask_t;
/**
* @brief Digital I/O modes.
*/
typedef uint32_t iomode_t;
/**
* @brief Type of an I/O line.
*/
typedef uint32_t ioline_t;
/**
* @brief Type of an event mode.
*/
typedef uint32_t ioeventmode_t;
typedef gpio_type *ioportid_t;
/**
* @brief Type of an pad identifier.
*/
typedef uint32_t iopadid_t;
#define pal_lld_init(config) _pal_lld_init(config)
#ifdef __cplusplus
extern "C" {
#endif
void _pal_lld_init(void);
#ifdef __cplusplus
}
#endif

View File

@ -0,0 +1,14 @@
#ifndef HAL_ST_LLD_H_
#define HAL_ST_LLD_H_
#include "mcuconf.h"
#ifdef __cplusplus
extern "C" {
#endif
void st_lld_init(void);
#ifdef __cplusplus
}
#endif
#endif /* HAL_ST_LLD_H_ */

View File

@ -100,7 +100,7 @@
* @brief Enables the SPI subsystem.
*/
#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
#define HAL_USE_SPI TRUE
#define HAL_USE_SPI FALSE
#endif
/**