Skip to content

Commit

Permalink
modify strchrnul and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fangjianzhou committed Nov 16, 2023
1 parent 9333b1b commit 70e1676
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions components/drivers/ofw/ofw_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define __OFW_INTERNAL_H__

#include <rtthread.h>

#include <posix/string.h>
#include <drivers/ofw.h>

#define OFW_PHANDLE_MIN 1
Expand All @@ -23,9 +23,6 @@

#define OFW_ROOT_NODE_ADDR_CELLS_DEFAULT 1
#define OFW_ROOT_NODE_SIZE_CELLS_DEFAULT 1

extern char* strchrnul(const char* s, int c);

struct fdt_info
{
/* Always "/", because we save "ofw" information in root node. */
Expand Down
4 changes: 4 additions & 0 deletions components/drivers/pm/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
#endif
#endif

/*
* Callbacks for platform drivers to implement. This is a function called
* at the end of the SoC power down procedure
*/
void (*rt_pm_machine_shutdown)(void) = RT_NULL;
void (*rt_pm_machine_reset)(void) = RT_NULL;

Expand Down

0 comments on commit 70e1676

Please sign in to comment.